From 1722f84cacffdbee1db8d9303ff6e9eb996a201c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 11 Nov 2023 18:59:57 +0000 Subject: [PATCH] Bump golang.org/x/net from 0.15.0 to 0.17.0 Bumps [golang.org/x/net](https://github.com/golang/net) from 0.15.0 to 0.17.0. - [Commits](https://github.com/golang/net/compare/v0.15.0...v0.17.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- go.mod | 8 +- go.sum | 16 +- .../internal/benchwrapper/proto/pubsub.proto | 32 - .../go/pubsub/testdata/schema/us-states.proto | 23 - .../google/s2a-go/example/proto/echo.proto | 36 - .../s2a-go/internal/proto/common/common.proto | 58 - .../internal/proto/examples/helloworld.proto | 44 - .../s2a-go/internal/proto/s2a/s2a.proto | 267 - .../proto/s2a_context/s2a_context.proto | 53 - .../internal/proto/v2/common/common.proto | 55 - .../s2a-go/internal/proto/v2/s2a/s2a.proto | 365 - .../proto/v2/s2a_context/s2a_context.proto | 58 - .../runtime/internal/examplepb/example.proto | 138 - .../examplepb/non_standard_names.proto | 82 - .../runtime/internal/examplepb/proto2.proto | 18 - .../runtime/internal/examplepb/proto3.proto | 70 - .../v4/parser/include/access/amapi.h | 290 - .../v4/parser/include/access/attmap.h | 52 - .../v4/parser/include/access/attnum.h | 64 - .../v4/parser/include/access/clog.h | 63 - .../v4/parser/include/access/commit_ts.h | 74 - .../v4/parser/include/access/detoast.h | 82 - .../v4/parser/include/access/genam.h | 231 - .../v4/parser/include/access/gin.h | 78 - .../v4/parser/include/access/htup.h | 89 - .../v4/parser/include/access/htup_details.h | 807 - .../v4/parser/include/access/itup.h | 167 - .../v4/parser/include/access/parallel.h | 82 - .../v4/parser/include/access/printtup.h | 35 - .../v4/parser/include/access/relation.h | 28 - .../v4/parser/include/access/relscan.h | 191 - .../v4/parser/include/access/rmgr.h | 62 - .../v4/parser/include/access/rmgrlist.h | 49 - .../v4/parser/include/access/sdir.h | 58 - .../v4/parser/include/access/skey.h | 151 - .../v4/parser/include/access/stratnum.h | 85 - .../v4/parser/include/access/sysattr.h | 29 - .../v4/parser/include/access/table.h | 28 - .../v4/parser/include/access/tableam.h | 2077 - .../parser/include/access/toast_compression.h | 73 - .../v4/parser/include/access/transam.h | 375 - .../v4/parser/include/access/tupconvert.h | 51 - .../v4/parser/include/access/tupdesc.h | 154 - .../v4/parser/include/access/tupmacs.h | 247 - .../v4/parser/include/access/twophase.h | 65 - .../v4/parser/include/access/xact.h | 523 - .../v4/parser/include/access/xlog.h | 303 - .../v4/parser/include/access/xlog_internal.h | 366 - .../v4/parser/include/access/xlogdefs.h | 101 - .../v4/parser/include/access/xlogprefetcher.h | 55 - .../v4/parser/include/access/xlogreader.h | 443 - .../v4/parser/include/access/xlogrecord.h | 236 - .../v4/parser/include/access/xlogrecovery.h | 157 - .../pg_query_go/v4/parser/include/c.h | 1391 - .../v4/parser/include/catalog/catalog.h | 44 - .../v4/parser/include/catalog/catversion.h | 58 - .../v4/parser/include/catalog/dependency.h | 269 - .../v4/parser/include/catalog/genbki.h | 142 - .../v4/parser/include/catalog/index.h | 214 - .../v4/parser/include/catalog/indexing.h | 54 - .../v4/parser/include/catalog/namespace.h | 190 - .../v4/parser/include/catalog/objectaccess.h | 265 - .../v4/parser/include/catalog/objectaddress.h | 89 - .../v4/parser/include/catalog/pg_aggregate.h | 180 - .../parser/include/catalog/pg_aggregate_d.h | 78 - .../v4/parser/include/catalog/pg_am.h | 63 - .../v4/parser/include/catalog/pg_am_d.h | 47 - .../v4/parser/include/catalog/pg_attribute.h | 221 - .../parser/include/catalog/pg_attribute_d.h | 62 - .../v4/parser/include/catalog/pg_authid.h | 63 - .../v4/parser/include/catalog/pg_authid_d.h | 57 - .../v4/parser/include/catalog/pg_class.h | 230 - .../v4/parser/include/catalog/pg_class_d.h | 132 - .../v4/parser/include/catalog/pg_collation.h | 98 - .../parser/include/catalog/pg_collation_d.h | 62 - .../v4/parser/include/catalog/pg_constraint.h | 273 - .../parser/include/catalog/pg_constraint_d.h | 73 - .../v4/parser/include/catalog/pg_control.h | 250 - .../v4/parser/include/catalog/pg_conversion.h | 75 - .../parser/include/catalog/pg_conversion_d.h | 38 - .../v4/parser/include/catalog/pg_depend.h | 77 - .../v4/parser/include/catalog/pg_depend_d.h | 36 - .../parser/include/catalog/pg_event_trigger.h | 57 - .../include/catalog/pg_event_trigger_d.h | 36 - .../v4/parser/include/catalog/pg_index.h | 90 - .../v4/parser/include/catalog/pg_index_d.h | 59 - .../v4/parser/include/catalog/pg_language.h | 72 - .../v4/parser/include/catalog/pg_language_d.h | 41 - .../v4/parser/include/catalog/pg_namespace.h | 64 - .../parser/include/catalog/pg_namespace_d.h | 36 - .../v4/parser/include/catalog/pg_opclass.h | 88 - .../v4/parser/include/catalog/pg_opclass_d.h | 51 - .../v4/parser/include/catalog/pg_operator.h | 107 - .../v4/parser/include/catalog/pg_operator_d.h | 142 - .../v4/parser/include/catalog/pg_opfamily.h | 63 - .../v4/parser/include/catalog/pg_opfamily_d.h | 49 - .../parser/include/catalog/pg_parameter_acl.h | 60 - .../include/catalog/pg_parameter_acl_d.h | 34 - .../include/catalog/pg_partitioned_table.h | 74 - .../include/catalog/pg_partitioned_table_d.h | 36 - .../v4/parser/include/catalog/pg_proc.h | 220 - .../v4/parser/include/catalog/pg_proc_d.h | 101 - .../parser/include/catalog/pg_publication.h | 161 - .../parser/include/catalog/pg_publication_d.h | 38 - .../include/catalog/pg_replication_origin.h | 62 - .../include/catalog/pg_replication_origin_d.h | 33 - .../v4/parser/include/catalog/pg_statistic.h | 282 - .../parser/include/catalog/pg_statistic_d.h | 195 - .../parser/include/catalog/pg_statistic_ext.h | 88 - .../include/catalog/pg_statistic_ext_d.h | 45 - .../v4/parser/include/catalog/pg_transform.h | 48 - .../parser/include/catalog/pg_transform_d.h | 34 - .../v4/parser/include/catalog/pg_trigger.h | 153 - .../v4/parser/include/catalog/pg_trigger_d.h | 109 - .../v4/parser/include/catalog/pg_ts_config.h | 53 - .../parser/include/catalog/pg_ts_config_d.h | 34 - .../v4/parser/include/catalog/pg_ts_dict.h | 59 - .../v4/parser/include/catalog/pg_ts_dict_d.h | 35 - .../v4/parser/include/catalog/pg_ts_parser.h | 60 - .../parser/include/catalog/pg_ts_parser_d.h | 37 - .../parser/include/catalog/pg_ts_template.h | 51 - .../parser/include/catalog/pg_ts_template_d.h | 34 - .../v4/parser/include/catalog/pg_type.h | 404 - .../v4/parser/include/catalog/pg_type_d.h | 324 - .../v4/parser/include/catalog/storage.h | 50 - .../v4/parser/include/commands/async.h | 53 - .../v4/parser/include/commands/dbcommands.h | 36 - .../v4/parser/include/commands/defrem.h | 160 - .../parser/include/commands/event_trigger.h | 88 - .../v4/parser/include/commands/explain.h | 127 - .../v4/parser/include/commands/prepare.h | 61 - .../v4/parser/include/commands/tablespace.h | 69 - .../v4/parser/include/commands/trigger.h | 287 - .../v4/parser/include/commands/user.h | 37 - .../v4/parser/include/commands/vacuum.h | 340 - .../v4/parser/include/commands/variable.h | 38 - .../v4/parser/include/common/file_perm.h | 56 - .../v4/parser/include/common/hashfn.h | 104 - .../pg_query_go/v4/parser/include/common/ip.h | 31 - .../v4/parser/include/common/keywords.h | 29 - .../v4/parser/include/common/kwlookup.h | 44 - .../v4/parser/include/common/pg_prng.h | 60 - .../v4/parser/include/common/relpath.h | 90 - .../v4/parser/include/common/string.h | 42 - .../include/common/unicode_combining_table.h | 308 - .../common/unicode_east_asian_fw_table.h | 125 - .../v4/parser/include/datatype/timestamp.h | 236 - .../v4/parser/include/executor/execdesc.h | 70 - .../v4/parser/include/executor/executor.h | 663 - .../v4/parser/include/executor/functions.h | 55 - .../v4/parser/include/executor/instrument.h | 118 - .../v4/parser/include/executor/spi.h | 213 - .../v4/parser/include/executor/tablefunc.h | 67 - .../v4/parser/include/executor/tuptable.h | 487 - .../pg_query_go/v4/parser/include/fmgr.h | 781 - .../pg_query_go/v4/parser/include/funcapi.h | 360 - .../v4/parser/include/getaddrinfo.h | 162 - .../pg_query_go/v4/parser/include/jit/jit.h | 105 - .../pg_query_go/v4/parser/include/kwlist_d.h | 1095 - .../v4/parser/include/lib/dshash.h | 112 - .../pg_query_go/v4/parser/include/lib/ilist.h | 746 - .../v4/parser/include/lib/pairingheap.h | 102 - .../v4/parser/include/lib/simplehash.h | 1184 - .../v4/parser/include/lib/sort_template.h | 432 - .../v4/parser/include/lib/stringinfo.h | 161 - .../v4/parser/include/libpq/auth.h | 31 - .../v4/parser/include/libpq/crypt.h | 47 - .../pg_query_go/v4/parser/include/libpq/hba.h | 179 - .../v4/parser/include/libpq/libpq-be.h | 343 - .../v4/parser/include/libpq/libpq.h | 144 - .../v4/parser/include/libpq/pqcomm.h | 194 - .../v4/parser/include/libpq/pqformat.h | 210 - .../v4/parser/include/libpq/pqsignal.h | 42 - .../v4/parser/include/mb/pg_wchar.h | 755 - .../v4/parser/include/mb/stringinfo_mb.h | 24 - .../pg_query_go/v4/parser/include/miscadmin.h | 495 - .../v4/parser/include/nodes/bitmapset.h | 122 - .../v4/parser/include/nodes/execnodes.h | 2715 - .../v4/parser/include/nodes/extensible.h | 162 - .../v4/parser/include/nodes/lockoptions.h | 61 - .../v4/parser/include/nodes/makefuncs.h | 109 - .../v4/parser/include/nodes/memnodes.h | 110 - .../v4/parser/include/nodes/nodeFuncs.h | 162 - .../v4/parser/include/nodes/nodes.h | 861 - .../v4/parser/include/nodes/params.h | 170 - .../v4/parser/include/nodes/parsenodes.h | 3812 - .../v4/parser/include/nodes/pathnodes.h | 2734 - .../v4/parser/include/nodes/pg_list.h | 612 - .../v4/parser/include/nodes/plannodes.h | 1349 - .../v4/parser/include/nodes/primnodes.h | 1593 - .../v4/parser/include/nodes/print.h | 34 - .../v4/parser/include/nodes/tidbitmap.h | 75 - .../v4/parser/include/nodes/value.h | 80 - .../v4/parser/include/optimizer/cost.h | 213 - .../v4/parser/include/optimizer/geqo.h | 90 - .../v4/parser/include/optimizer/geqo_gene.h | 45 - .../v4/parser/include/optimizer/optimizer.h | 202 - .../v4/parser/include/optimizer/paths.h | 257 - .../v4/parser/include/optimizer/planmain.h | 120 - .../v4/parser/include/parser/analyze.h | 63 - .../v4/parser/include/parser/gram.h | 1101 - .../v4/parser/include/parser/gramparse.h | 75 - .../v4/parser/include/parser/kwlist.h | 487 - .../v4/parser/include/parser/parse_agg.h | 63 - .../v4/parser/include/parser/parse_coerce.h | 100 - .../v4/parser/include/parser/parse_expr.h | 25 - .../v4/parser/include/parser/parse_func.h | 74 - .../v4/parser/include/parser/parse_node.h | 339 - .../v4/parser/include/parser/parse_oper.h | 65 - .../v4/parser/include/parser/parse_relation.h | 124 - .../v4/parser/include/parser/parse_type.h | 60 - .../v4/parser/include/parser/parser.h | 68 - .../v4/parser/include/parser/parsetree.h | 61 - .../v4/parser/include/parser/scanner.h | 152 - .../v4/parser/include/parser/scansup.h | 27 - .../v4/parser/include/partitioning/partdefs.h | 26 - .../pg_query_go/v4/parser/include/pg_config.h | 1037 - .../v4/parser/include/pg_config_ext.h | 8 - .../v4/parser/include/pg_config_manual.h | 410 - .../v4/parser/include/pg_config_os.h | 8 - .../pg_query_go/v4/parser/include/pg_getopt.h | 56 - .../pg_query_go/v4/parser/include/pg_query.h | 122 - .../v4/parser/include/pg_query_enum_defs.c | 2571 - .../include/pg_query_fingerprint_conds.c | 912 - .../include/pg_query_fingerprint_defs.c | 13211 -- .../v4/parser/include/pg_query_json_helper.c | 61 - .../parser/include/pg_query_outfuncs_conds.c | 716 - .../parser/include/pg_query_outfuncs_defs.c | 2564 - .../parser/include/pg_query_readfuncs_conds.c | 231 - .../parser/include/pg_query_readfuncs_defs.c | 3023 - .../pg_query_go/v4/parser/include/pg_trace.h | 17 - .../pg_query_go/v4/parser/include/pgstat.h | 699 - .../pg_query_go/v4/parser/include/pgtime.h | 94 - .../pg_query_go/v4/parser/include/pl_gram.h | 383 - .../v4/parser/include/pl_reserved_kwlist.h | 52 - .../v4/parser/include/pl_reserved_kwlist_d.h | 114 - .../v4/parser/include/pl_unreserved_kwlist.h | 111 - .../parser/include/pl_unreserved_kwlist_d.h | 244 - .../v4/parser/include/plerrcodes.h | 998 - .../pg_query_go/v4/parser/include/plpgsql.h | 1345 - .../pg_query_go/v4/parser/include/port.h | 553 - .../v4/parser/include/port/atomics.h | 524 - .../v4/parser/include/port/atomics/arch-arm.h | 32 - .../v4/parser/include/port/atomics/arch-ppc.h | 254 - .../v4/parser/include/port/atomics/arch-x86.h | 252 - .../v4/parser/include/port/atomics/fallback.h | 170 - .../parser/include/port/atomics/generic-gcc.h | 286 - .../v4/parser/include/port/atomics/generic.h | 401 - .../v4/parser/include/port/pg_bitutils.h | 302 - .../v4/parser/include/port/pg_bswap.h | 161 - .../v4/parser/include/port/pg_crc32c.h | 101 - .../parser/include/portability/instr_time.h | 256 - .../pg_query_go/v4/parser/include/postgres.h | 808 - .../v4/parser/include/postgres_ext.h | 74 - .../v4/parser/include/postmaster/autovacuum.h | 83 - .../v4/parser/include/postmaster/auxprocess.h | 20 - .../v4/parser/include/postmaster/bgworker.h | 162 - .../include/postmaster/bgworker_internals.h | 64 - .../v4/parser/include/postmaster/bgwriter.h | 45 - .../parser/include/postmaster/fork_process.h | 17 - .../v4/parser/include/postmaster/interrupt.h | 32 - .../v4/parser/include/postmaster/pgarch.h | 73 - .../v4/parser/include/postmaster/postmaster.h | 78 - .../v4/parser/include/postmaster/startup.h | 39 - .../v4/parser/include/postmaster/syslogger.h | 103 - .../v4/parser/include/postmaster/walwriter.h | 21 - .../v4/parser/include/protobuf-c.h | 1110 - .../v4/parser/include/protobuf-c/protobuf-c.h | 1110 - .../parser/include/protobuf/pg_query.pb-c.h | 11357 -- .../v4/parser/include/protobuf/pg_query.pb.h | 135627 --------------- .../v4/parser/include/regex/regex.h | 186 - .../include/replication/logicallauncher.h | 29 - .../parser/include/replication/logicalproto.h | 254 - .../include/replication/logicalworker.h | 19 - .../v4/parser/include/replication/origin.h | 73 - .../include/replication/reorderbuffer.h | 685 - .../v4/parser/include/replication/slot.h | 230 - .../v4/parser/include/replication/syncrep.h | 115 - .../parser/include/replication/walreceiver.h | 472 - .../v4/parser/include/replication/walsender.h | 74 - .../v4/parser/include/rewrite/prs2lock.h | 46 - .../parser/include/rewrite/rewriteHandler.h | 38 - .../v4/parser/include/rewrite/rewriteManip.h | 87 - .../parser/include/rewrite/rewriteSupport.h | 26 - .../v4/parser/include/storage/backendid.h | 37 - .../v4/parser/include/storage/block.h | 115 - .../v4/parser/include/storage/buf.h | 46 - .../v4/parser/include/storage/bufmgr.h | 297 - .../v4/parser/include/storage/bufpage.h | 457 - .../include/storage/condition_variable.h | 73 - .../v4/parser/include/storage/dsm.h | 64 - .../v4/parser/include/storage/dsm_impl.h | 76 - .../v4/parser/include/storage/fd.h | 198 - .../v4/parser/include/storage/fileset.h | 40 - .../v4/parser/include/storage/ipc.h | 84 - .../v4/parser/include/storage/item.h | 19 - .../v4/parser/include/storage/itemid.h | 184 - .../v4/parser/include/storage/itemptr.h | 208 - .../v4/parser/include/storage/large_object.h | 100 - .../v4/parser/include/storage/latch.h | 186 - .../v4/parser/include/storage/lmgr.h | 115 - .../v4/parser/include/storage/lock.h | 616 - .../v4/parser/include/storage/lockdefs.h | 59 - .../v4/parser/include/storage/lwlock.h | 206 - .../v4/parser/include/storage/lwlocknames.h | 50 - .../v4/parser/include/storage/off.h | 57 - .../v4/parser/include/storage/pg_sema.h | 61 - .../v4/parser/include/storage/pg_shmem.h | 92 - .../v4/parser/include/storage/pmsignal.h | 105 - .../v4/parser/include/storage/predicate.h | 87 - .../v4/parser/include/storage/proc.h | 461 - .../v4/parser/include/storage/procarray.h | 98 - .../parser/include/storage/proclist_types.h | 51 - .../v4/parser/include/storage/procsignal.h | 71 - .../v4/parser/include/storage/relfilenode.h | 99 - .../v4/parser/include/storage/s_lock.h | 1110 - .../v4/parser/include/storage/sharedfileset.h | 37 - .../v4/parser/include/storage/shm_mq.h | 86 - .../v4/parser/include/storage/shm_toc.h | 58 - .../v4/parser/include/storage/shmem.h | 81 - .../v4/parser/include/storage/sinval.h | 153 - .../v4/parser/include/storage/sinvaladt.h | 43 - .../v4/parser/include/storage/smgr.h | 111 - .../v4/parser/include/storage/spin.h | 77 - .../v4/parser/include/storage/standby.h | 98 - .../v4/parser/include/storage/standbydefs.h | 74 - .../v4/parser/include/storage/sync.h | 66 - .../v4/parser/include/tcop/cmdtag.h | 58 - .../v4/parser/include/tcop/cmdtaglist.h | 218 - .../v4/parser/include/tcop/deparse_utility.h | 108 - .../pg_query_go/v4/parser/include/tcop/dest.h | 149 - .../v4/parser/include/tcop/fastpath.h | 20 - .../v4/parser/include/tcop/pquery.h | 51 - .../v4/parser/include/tcop/tcopprot.h | 97 - .../v4/parser/include/tcop/utility.h | 112 - .../v4/parser/include/tsearch/ts_cache.h | 98 - .../pg_query_go/v4/parser/include/utils/acl.h | 333 - .../v4/parser/include/utils/aclchk_internal.h | 45 - .../v4/parser/include/utils/array.h | 464 - .../parser/include/utils/backend_progress.h | 44 - .../v4/parser/include/utils/backend_status.h | 321 - .../v4/parser/include/utils/builtins.h | 127 - .../v4/parser/include/utils/bytea.h | 28 - .../v4/parser/include/utils/catcache.h | 231 - .../v4/parser/include/utils/date.h | 90 - .../v4/parser/include/utils/datetime.h | 344 - .../v4/parser/include/utils/datum.h | 76 - .../pg_query_go/v4/parser/include/utils/dsa.h | 123 - .../v4/parser/include/utils/dynahash.h | 20 - .../v4/parser/include/utils/elog.h | 470 - .../v4/parser/include/utils/errcodes.h | 354 - .../v4/parser/include/utils/expandeddatum.h | 159 - .../v4/parser/include/utils/expandedrecord.h | 231 - .../v4/parser/include/utils/float.h | 356 - .../v4/parser/include/utils/fmgroids.h | 3261 - .../v4/parser/include/utils/fmgrprotos.h | 2829 - .../v4/parser/include/utils/fmgrtab.h | 49 - .../pg_query_go/v4/parser/include/utils/guc.h | 469 - .../v4/parser/include/utils/guc_tables.h | 276 - .../v4/parser/include/utils/hsearch.h | 153 - .../v4/parser/include/utils/inval.h | 68 - .../v4/parser/include/utils/lsyscache.h | 208 - .../v4/parser/include/utils/memdebug.h | 82 - .../v4/parser/include/utils/memutils.h | 230 - .../v4/parser/include/utils/numeric.h | 90 - .../v4/parser/include/utils/palloc.h | 158 - .../v4/parser/include/utils/partcache.h | 102 - .../v4/parser/include/utils/pg_locale.h | 127 - .../v4/parser/include/utils/pg_lsn.h | 29 - .../v4/parser/include/utils/pgstat_internal.h | 784 - .../v4/parser/include/utils/pidfile.h | 56 - .../v4/parser/include/utils/plancache.h | 236 - .../v4/parser/include/utils/portal.h | 252 - .../v4/parser/include/utils/probes.h | 114 - .../v4/parser/include/utils/ps_status.h | 25 - .../parser/include/utils/queryenvironment.h | 74 - .../v4/parser/include/utils/queryjumble.h | 88 - .../v4/parser/include/utils/regproc.h | 39 - .../pg_query_go/v4/parser/include/utils/rel.h | 695 - .../v4/parser/include/utils/relcache.h | 153 - .../v4/parser/include/utils/reltrigger.h | 81 - .../v4/parser/include/utils/resowner.h | 86 - .../pg_query_go/v4/parser/include/utils/rls.h | 50 - .../v4/parser/include/utils/ruleutils.h | 47 - .../parser/include/utils/sharedtuplestore.h | 61 - .../v4/parser/include/utils/snapmgr.h | 179 - .../v4/parser/include/utils/snapshot.h | 219 - .../v4/parser/include/utils/sortsupport.h | 391 - .../v4/parser/include/utils/syscache.h | 224 - .../v4/parser/include/utils/timeout.h | 95 - .../v4/parser/include/utils/timestamp.h | 117 - .../v4/parser/include/utils/tuplesort.h | 291 - .../v4/parser/include/utils/tuplestore.h | 91 - .../v4/parser/include/utils/typcache.h | 209 - .../v4/parser/include/utils/tzparser.h | 39 - .../v4/parser/include/utils/varlena.h | 41 - .../v4/parser/include/utils/wait_event.h | 289 - .../pg_query_go/v4/parser/include/utils/xml.h | 84 - .../pg_query_go/v4/parser/include/xxhash.h | 5445 - .../v4/parser/include/xxhash/xxhash.h | 5445 - .../gopsutil/host/freebsd_headers/utxdb.h | 63 - .../examples/grpc/proto/helloworld.proto | 37 - .../internal/testpb/test.proto | 16 - .../x/crypto/chacha20/chacha_arm64.go | 4 +- .../x/crypto/chacha20/chacha_arm64.s | 4 +- .../x/crypto/chacha20/chacha_noasm.go | 4 +- .../golang.org/x/crypto/cryptobyte/builder.go | 5 + .../golang.org/x/crypto/cryptobyte/string.go | 11 + vendor/golang.org/x/net/http2/server.go | 78 +- vendor/golang.org/x/sys/cpu/cpu_riscv64.go | 2 +- vendor/golang.org/x/sys/cpu/hwcap_linux.go | 4 +- .../sys/internal/unsafeheader/unsafeheader.go | 30 - vendor/golang.org/x/sys/unix/ptrace_darwin.go | 6 - vendor/golang.org/x/sys/unix/ptrace_ios.go | 6 - vendor/golang.org/x/sys/unix/syscall_aix.go | 2 - .../golang.org/x/sys/unix/syscall_darwin.go | 186 - .../x/sys/unix/syscall_darwin_amd64.go | 1 - .../x/sys/unix/syscall_darwin_arm64.go | 1 - .../x/sys/unix/syscall_dragonfly.go | 198 - .../golang.org/x/sys/unix/syscall_freebsd.go | 192 - vendor/golang.org/x/sys/unix/syscall_linux.go | 115 +- .../golang.org/x/sys/unix/syscall_netbsd.go | 261 - .../golang.org/x/sys/unix/syscall_openbsd.go | 74 - .../golang.org/x/sys/unix/syscall_solaris.go | 18 - .../x/sys/unix/syscall_zos_s390x.go | 1 - vendor/golang.org/x/sys/unix/zerrors_linux.go | 9 + .../x/sys/unix/zerrors_linux_386.go | 2 + .../x/sys/unix/zerrors_linux_amd64.go | 2 + .../x/sys/unix/zerrors_linux_arm.go | 2 + .../x/sys/unix/zerrors_linux_arm64.go | 2 + .../x/sys/unix/zerrors_linux_loong64.go | 4 + .../x/sys/unix/zerrors_linux_mips.go | 2 + .../x/sys/unix/zerrors_linux_mips64.go | 2 + .../x/sys/unix/zerrors_linux_mips64le.go | 2 + .../x/sys/unix/zerrors_linux_mipsle.go | 2 + .../x/sys/unix/zerrors_linux_ppc.go | 2 + .../x/sys/unix/zerrors_linux_ppc64.go | 2 + .../x/sys/unix/zerrors_linux_ppc64le.go | 2 + .../x/sys/unix/zerrors_linux_riscv64.go | 2 + .../x/sys/unix/zerrors_linux_s390x.go | 2 + .../x/sys/unix/zerrors_linux_sparc64.go | 2 + .../golang.org/x/sys/unix/zsyscall_aix_ppc.go | 22 - .../x/sys/unix/zsyscall_aix_ppc64.go | 22 - .../x/sys/unix/zsyscall_darwin_amd64.go | 40 +- .../x/sys/unix/zsyscall_darwin_amd64.s | 149 - .../x/sys/unix/zsyscall_darwin_arm64.go | 40 +- .../x/sys/unix/zsyscall_darwin_arm64.s | 149 - .../x/sys/unix/zsyscall_dragonfly_amd64.go | 22 - .../x/sys/unix/zsyscall_freebsd_386.go | 22 - .../x/sys/unix/zsyscall_freebsd_amd64.go | 22 - .../x/sys/unix/zsyscall_freebsd_arm.go | 22 - .../x/sys/unix/zsyscall_freebsd_arm64.go | 22 - .../x/sys/unix/zsyscall_freebsd_riscv64.go | 22 - .../x/sys/unix/zsyscall_illumos_amd64.go | 10 +- .../golang.org/x/sys/unix/zsyscall_linux.go | 22 - .../x/sys/unix/zsyscall_netbsd_386.go | 22 - .../x/sys/unix/zsyscall_netbsd_amd64.go | 22 - .../x/sys/unix/zsyscall_netbsd_arm.go | 22 - .../x/sys/unix/zsyscall_netbsd_arm64.go | 22 - .../x/sys/unix/zsyscall_openbsd_386.go | 32 +- .../x/sys/unix/zsyscall_openbsd_amd64.go | 22 - .../x/sys/unix/zsyscall_openbsd_arm.go | 32 +- .../x/sys/unix/zsyscall_openbsd_arm64.go | 32 +- .../x/sys/unix/zsyscall_openbsd_mips64.go | 32 +- .../x/sys/unix/zsyscall_openbsd_ppc64.go | 32 +- .../x/sys/unix/zsyscall_openbsd_riscv64.go | 32 +- .../x/sys/unix/zsyscall_solaris_amd64.go | 256 +- .../x/sys/unix/zsyscall_zos_s390x.go | 11 - .../x/sys/unix/zsysnum_linux_386.go | 1 + .../x/sys/unix/zsysnum_linux_amd64.go | 1 + .../x/sys/unix/zsysnum_linux_arm.go | 1 + .../x/sys/unix/zsysnum_linux_arm64.go | 1 + .../x/sys/unix/zsysnum_linux_loong64.go | 1 + .../x/sys/unix/zsysnum_linux_mips.go | 1 + .../x/sys/unix/zsysnum_linux_mips64.go | 1 + .../x/sys/unix/zsysnum_linux_mips64le.go | 1 + .../x/sys/unix/zsysnum_linux_mipsle.go | 1 + .../x/sys/unix/zsysnum_linux_ppc.go | 1 + .../x/sys/unix/zsysnum_linux_ppc64.go | 1 + .../x/sys/unix/zsysnum_linux_ppc64le.go | 1 + .../x/sys/unix/zsysnum_linux_riscv64.go | 1 + .../x/sys/unix/zsysnum_linux_s390x.go | 1 + .../x/sys/unix/zsysnum_linux_sparc64.go | 1 + vendor/golang.org/x/sys/unix/ztypes_linux.go | 8 +- .../x/sys/unix/ztypes_linux_riscv64.go | 4 + .../golang.org/x/sys/windows/exec_windows.go | 89 +- .../x/sys/windows/security_windows.go | 21 +- .../x/sys/windows/syscall_windows.go | 42 +- .../golang.org/x/sys/windows/types_windows.go | 7 + .../x/sys/windows/zsyscall_windows.go | 28 +- .../blobstore/blobstore_service.proto | 71 - .../capability/capability_service.proto | 28 - .../internal/channel/channel_service.proto | 30 - .../internal/image/images_service.proto | 162 - .../internal/mail/mail_service.proto | 45 - .../internal/memcache/memcache_service.proto | 174 - .../appengine/internal/search/search.proto | 394 - .../internal/socket/socket_service.proto | 460 - .../internal/system/system_service.proto | 49 - .../taskqueue/taskqueue_service.proto | 342 - .../internal/user/user_service.proto | 58 - .../internal/xmpp/xmpp_service.proto | 83 - .../grpc/profiling/proto/service.proto | 98 - .../grpc/reflection/grpc_testing/proto2.proto | 24 - .../reflection/grpc_testing/proto2_ext.proto | 32 - .../reflection/grpc_testing/proto2_ext2.proto | 30 - .../grpc/reflection/grpc_testing/test.proto | 37 - .../grpc_testing_not_regenerate/dynamic.proto | 33 - .../grpc_testing_not_regenerate/testv3.proto | 58 - .../grpc/stress/grpc_testing/metrics.proto | 51 - .../grpc/test/codec_perf/perf.proto | 27 - .../testdata/annotations/annotations.proto | 21 - .../testdata/comments/comments.proto | 61 - .../testdata/comments/deprecated.proto | 20 - .../testdata/extensions/base/base.proto | 20 - .../testdata/extensions/ext/ext.proto | 108 - .../testdata/extensions/extra/extra.proto | 13 - .../testdata/extensions/proto3/ext3.proto | 53 - .../testdata/fieldnames/fieldnames.proto | 55 - .../testdata/import_public/a.proto | 18 - .../testdata/import_public/b.proto | 16 - .../testdata/import_public/c.proto | 19 - .../testdata/import_public/sub/a.proto | 50 - .../testdata/import_public/sub/b.proto | 12 - .../testdata/import_public/sub2/a.proto | 11 - .../testdata/imports/fmt/m.proto | 8 - .../testdata/imports/test_a_1/m1.proto | 17 - .../testdata/imports/test_a_1/m2.proto | 8 - .../testdata/imports/test_a_2/m3.proto | 8 - .../testdata/imports/test_a_2/m4.proto | 8 - .../testdata/imports/test_b_1/m1.proto | 8 - .../testdata/imports/test_b_1/m2.proto | 8 - .../testdata/imports/test_import_a1m1.proto | 15 - .../testdata/imports/test_import_a1m2.proto | 15 - .../testdata/imports/test_import_all.proto | 29 - .../issue780_oneof_conflict/test.proto | 15 - .../testdata/nopackage/nopackage.proto | 16 - .../protoc-gen-go/testdata/proto2/enum.proto | 54 - .../testdata/proto2/fields.proto | 143 - .../testdata/proto2/nested_messages.proto | 19 - .../testdata/proto2/proto2.proto | 15 - .../protoc-gen-go/testdata/proto3/enum.proto | 15 - .../testdata/proto3/fields.proto | 55 - .../testdata/retention/options_message.proto | 30 - .../testdata/retention/retention.proto | 176 - vendor/modules.txt | 9 +- 546 files changed, 499 insertions(+), 274804 deletions(-) delete mode 100644 vendor/cloud.google.com/go/pubsub/internal/benchwrapper/proto/pubsub.proto delete mode 100644 vendor/cloud.google.com/go/pubsub/testdata/schema/us-states.proto delete mode 100644 vendor/github.com/google/s2a-go/example/proto/echo.proto delete mode 100644 vendor/github.com/google/s2a-go/internal/proto/common/common.proto delete mode 100644 vendor/github.com/google/s2a-go/internal/proto/examples/helloworld.proto delete mode 100644 vendor/github.com/google/s2a-go/internal/proto/s2a/s2a.proto delete mode 100644 vendor/github.com/google/s2a-go/internal/proto/s2a_context/s2a_context.proto delete mode 100644 vendor/github.com/google/s2a-go/internal/proto/v2/common/common.proto delete mode 100644 vendor/github.com/google/s2a-go/internal/proto/v2/s2a/s2a.proto delete mode 100644 vendor/github.com/google/s2a-go/internal/proto/v2/s2a_context/s2a_context.proto delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/internal/examplepb/example.proto delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/internal/examplepb/non_standard_names.proto delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/internal/examplepb/proto2.proto delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/internal/examplepb/proto3.proto delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/amapi.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/attmap.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/attnum.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/clog.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/commit_ts.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/detoast.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/genam.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/gin.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/htup.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/htup_details.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/itup.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/parallel.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/printtup.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/relation.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/relscan.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/rmgr.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/rmgrlist.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/sdir.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/skey.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/stratnum.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/sysattr.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/table.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/tableam.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/toast_compression.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/transam.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/tupconvert.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/tupdesc.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/tupmacs.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/twophase.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xact.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlog.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlog_internal.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlogdefs.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlogprefetcher.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlogreader.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlogrecord.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlogrecovery.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/c.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/catalog.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/catversion.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/dependency.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/genbki.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/index.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/indexing.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/namespace.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/objectaccess.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/objectaddress.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_aggregate.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_aggregate_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_am.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_am_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_attribute.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_attribute_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_authid.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_authid_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_class.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_class_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_collation.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_collation_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_constraint.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_constraint_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_control.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_conversion.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_conversion_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_depend.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_depend_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_event_trigger.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_event_trigger_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_index.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_index_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_language.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_language_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_namespace.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_namespace_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_opclass.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_opclass_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_operator.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_operator_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_opfamily.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_opfamily_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_parameter_acl.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_parameter_acl_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_partitioned_table.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_partitioned_table_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_proc.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_proc_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_publication.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_publication_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_replication_origin.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_replication_origin_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_statistic.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_statistic_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_statistic_ext.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_statistic_ext_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_transform.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_transform_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_trigger.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_trigger_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_config.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_config_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_dict.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_dict_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_parser.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_parser_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_template.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_template_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_type.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_type_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/storage.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/async.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/dbcommands.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/defrem.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/event_trigger.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/explain.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/prepare.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/tablespace.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/trigger.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/user.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/vacuum.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/variable.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/file_perm.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/hashfn.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/ip.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/keywords.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/kwlookup.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/pg_prng.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/relpath.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/string.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/unicode_combining_table.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/unicode_east_asian_fw_table.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/datatype/timestamp.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/execdesc.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/executor.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/functions.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/instrument.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/spi.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/tablefunc.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/tuptable.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/fmgr.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/funcapi.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/getaddrinfo.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/jit/jit.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/kwlist_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/dshash.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/ilist.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/pairingheap.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/simplehash.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/sort_template.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/stringinfo.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/auth.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/crypt.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/hba.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/libpq-be.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/libpq.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/pqcomm.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/pqformat.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/pqsignal.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/mb/pg_wchar.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/mb/stringinfo_mb.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/miscadmin.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/bitmapset.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/execnodes.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/extensible.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/lockoptions.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/makefuncs.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/memnodes.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/nodeFuncs.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/nodes.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/params.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/parsenodes.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/pathnodes.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/pg_list.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/plannodes.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/primnodes.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/print.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/tidbitmap.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/value.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/cost.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/geqo.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/geqo_gene.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/optimizer.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/paths.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/planmain.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/analyze.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/gram.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/gramparse.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/kwlist.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_agg.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_coerce.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_expr.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_func.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_node.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_oper.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_relation.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_type.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parser.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parsetree.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/scanner.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/scansup.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/partitioning/partdefs.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_config.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_config_ext.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_config_manual.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_config_os.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_getopt.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_enum_defs.c delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_fingerprint_conds.c delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_fingerprint_defs.c delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_json_helper.c delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_outfuncs_conds.c delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_outfuncs_defs.c delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_readfuncs_conds.c delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_readfuncs_defs.c delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_trace.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pgstat.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pgtime.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pl_gram.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pl_reserved_kwlist.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pl_reserved_kwlist_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pl_unreserved_kwlist.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pl_unreserved_kwlist_d.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/plerrcodes.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/plpgsql.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/arch-arm.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/arch-ppc.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/arch-x86.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/fallback.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/generic-gcc.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/generic.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/pg_bitutils.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/pg_bswap.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/pg_crc32c.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/portability/instr_time.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postgres.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postgres_ext.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/autovacuum.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/auxprocess.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/bgworker.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/bgworker_internals.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/bgwriter.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/fork_process.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/interrupt.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/pgarch.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/postmaster.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/startup.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/syslogger.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/walwriter.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/protobuf-c.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/protobuf-c/protobuf-c.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/protobuf/pg_query.pb-c.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/protobuf/pg_query.pb.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/regex/regex.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/logicallauncher.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/logicalproto.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/logicalworker.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/origin.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/reorderbuffer.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/slot.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/syncrep.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/walreceiver.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/walsender.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/rewrite/prs2lock.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/rewrite/rewriteHandler.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/rewrite/rewriteManip.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/rewrite/rewriteSupport.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/backendid.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/block.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/buf.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/bufmgr.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/bufpage.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/condition_variable.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/dsm.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/dsm_impl.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/fd.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/fileset.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/ipc.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/item.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/itemid.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/itemptr.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/large_object.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/latch.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/lmgr.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/lock.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/lockdefs.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/lwlock.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/lwlocknames.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/off.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/pg_sema.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/pg_shmem.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/pmsignal.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/predicate.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/proc.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/procarray.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/proclist_types.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/procsignal.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/relfilenode.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/s_lock.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/sharedfileset.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/shm_mq.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/shm_toc.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/shmem.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/sinval.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/sinvaladt.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/smgr.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/spin.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/standby.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/standbydefs.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/sync.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/cmdtag.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/cmdtaglist.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/deparse_utility.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/dest.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/fastpath.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/pquery.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/tcopprot.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/utility.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tsearch/ts_cache.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/acl.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/aclchk_internal.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/array.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/backend_progress.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/backend_status.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/builtins.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/bytea.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/catcache.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/date.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/datetime.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/datum.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/dsa.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/dynahash.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/elog.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/errcodes.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/expandeddatum.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/expandedrecord.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/float.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/fmgroids.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/fmgrprotos.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/fmgrtab.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/guc.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/guc_tables.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/hsearch.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/inval.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/lsyscache.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/memdebug.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/memutils.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/numeric.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/palloc.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/partcache.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/pg_locale.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/pg_lsn.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/pgstat_internal.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/pidfile.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/plancache.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/portal.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/probes.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/ps_status.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/queryenvironment.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/queryjumble.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/regproc.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/rel.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/relcache.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/reltrigger.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/resowner.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/rls.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/ruleutils.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/sharedtuplestore.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/snapmgr.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/snapshot.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/sortsupport.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/syscache.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/timeout.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/timestamp.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/tuplesort.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/tuplestore.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/typcache.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/tzparser.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/varlena.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/wait_event.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/xml.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/xxhash.h delete mode 100644 vendor/github.com/pganalyze/pg_query_go/v4/parser/include/xxhash/xxhash.h delete mode 100644 vendor/github.com/shirou/gopsutil/host/freebsd_headers/utxdb.h delete mode 100644 vendor/go.opencensus.io/examples/grpc/proto/helloworld.proto delete mode 100644 vendor/go.opencensus.io/internal/testpb/test.proto delete mode 100644 vendor/golang.org/x/sys/internal/unsafeheader/unsafeheader.go delete mode 100644 vendor/google.golang.org/appengine/internal/blobstore/blobstore_service.proto delete mode 100644 vendor/google.golang.org/appengine/internal/capability/capability_service.proto delete mode 100644 vendor/google.golang.org/appengine/internal/channel/channel_service.proto delete mode 100644 vendor/google.golang.org/appengine/internal/image/images_service.proto delete mode 100644 vendor/google.golang.org/appengine/internal/mail/mail_service.proto delete mode 100644 vendor/google.golang.org/appengine/internal/memcache/memcache_service.proto delete mode 100644 vendor/google.golang.org/appengine/internal/search/search.proto delete mode 100644 vendor/google.golang.org/appengine/internal/socket/socket_service.proto delete mode 100644 vendor/google.golang.org/appengine/internal/system/system_service.proto delete mode 100644 vendor/google.golang.org/appengine/internal/taskqueue/taskqueue_service.proto delete mode 100644 vendor/google.golang.org/appengine/internal/user/user_service.proto delete mode 100644 vendor/google.golang.org/appengine/internal/xmpp/xmpp_service.proto delete mode 100644 vendor/google.golang.org/grpc/profiling/proto/service.proto delete mode 100644 vendor/google.golang.org/grpc/reflection/grpc_testing/proto2.proto delete mode 100644 vendor/google.golang.org/grpc/reflection/grpc_testing/proto2_ext.proto delete mode 100644 vendor/google.golang.org/grpc/reflection/grpc_testing/proto2_ext2.proto delete mode 100644 vendor/google.golang.org/grpc/reflection/grpc_testing/test.proto delete mode 100644 vendor/google.golang.org/grpc/reflection/grpc_testing_not_regenerate/dynamic.proto delete mode 100644 vendor/google.golang.org/grpc/reflection/grpc_testing_not_regenerate/testv3.proto delete mode 100644 vendor/google.golang.org/grpc/stress/grpc_testing/metrics.proto delete mode 100644 vendor/google.golang.org/grpc/test/codec_perf/perf.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/annotations/annotations.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/comments/comments.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/comments/deprecated.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/base/base.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/ext/ext.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/extra/extra.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/proto3/ext3.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/fieldnames/fieldnames.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/a.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/b.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/c.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub/a.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub/b.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub2/a.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/fmt/m.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_1/m1.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_1/m2.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_2/m3.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_2/m4.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_b_1/m1.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_b_1/m2.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_import_a1m1.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_import_a1m2.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_import_all.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/issue780_oneof_conflict/test.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/nopackage/nopackage.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2/enum.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2/fields.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2/nested_messages.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2/proto2.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto3/enum.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto3/fields.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/retention/options_message.proto delete mode 100644 vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/retention/retention.proto diff --git a/go.mod b/go.mod index 1d2f2be63..d22394d94 100644 --- a/go.mod +++ b/go.mod @@ -32,8 +32,8 @@ require ( github.com/shirou/gopsutil v3.21.10+incompatible github.com/smartystreets/assertions v0.0.0-20160707190355-2063fd1cc7c9 // indirect github.com/smartystreets/goconvey v0.0.0-20160704134950-4622128e06c7 // indirect - golang.org/x/crypto v0.13.0 // indirect - golang.org/x/net v0.15.0 + golang.org/x/crypto v0.14.0 // indirect + golang.org/x/net v0.17.0 google.golang.org/api v0.143.0 google.golang.org/protobuf v1.31.0 gopkg.in/ini.v1 v1.62.0 // indirect @@ -85,8 +85,8 @@ require ( go.opentelemetry.io/proto/otlp v1.0.0 // indirect golang.org/x/oauth2 v0.12.0 // indirect golang.org/x/sync v0.3.0 // indirect - golang.org/x/sys v0.12.0 // indirect - golang.org/x/term v0.12.0 // indirect + golang.org/x/sys v0.13.0 // indirect + golang.org/x/term v0.13.0 // indirect golang.org/x/text v0.13.0 // indirect google.golang.org/appengine v1.6.8 // indirect google.golang.org/genproto v0.0.0-20231002182017-d307bd883b97 // indirect diff --git a/go.sum b/go.sum index 76c361020..c9a3f5fa8 100644 --- a/go.sum +++ b/go.sum @@ -212,8 +212,8 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.13.0 h1:mvySKfSWJ+UKUii46M40LOvyWfN0s2U+46/jDd0e6Ck= -golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= +golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= +golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= @@ -228,8 +228,8 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.15.0 h1:ugBLEUaxABaB5AJqW9enI0ACdci2RUd4eP51NTBvuJ8= -golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.12.0 h1:smVPGxink+n1ZI5pkQa8y6fZT0RW0MgCO5bFpepy4B4= golang.org/x/oauth2 v0.12.0/go.mod h1:A74bZ3aGXgCY0qaIC9Ahg6Lglin4AMAco8cIv9baba4= @@ -254,12 +254,12 @@ golang.org/x/sys v0.0.0-20210616045830-e2b7044e8c71/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20210816074244-15123e1e1f71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o= -golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.12.0 h1:/ZfYdc3zq+q02Rv9vGqTeSItdzZTSNDmfTi0mBAuidU= -golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU= +golang.org/x/term v0.13.0 h1:bb+I9cTfFazGW51MZqBVmZy7+JEJMouUHTUSKVQLBek= +golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= diff --git a/vendor/cloud.google.com/go/pubsub/internal/benchwrapper/proto/pubsub.proto b/vendor/cloud.google.com/go/pubsub/internal/benchwrapper/proto/pubsub.proto deleted file mode 100644 index efb37e221..000000000 --- a/vendor/cloud.google.com/go/pubsub/internal/benchwrapper/proto/pubsub.proto +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package pubsub_bench; - -option java_multiple_files = true; - -message PubsubRecv { - // The subscription identifier corresponding to number of messages sent. - string sub_name = 1; -} - -// TODO(deklerk): Replace with Google's canonical Empty. -message EmptyResponse {} - -service PubsubBenchWrapper { - // Recv represents opening a streaming pull stream to receive messages on. - rpc Recv(PubsubRecv) returns (EmptyResponse) {} -} \ No newline at end of file diff --git a/vendor/cloud.google.com/go/pubsub/testdata/schema/us-states.proto b/vendor/cloud.google.com/go/pubsub/testdata/schema/us-states.proto deleted file mode 100644 index 3482fe121..000000000 --- a/vendor/cloud.google.com/go/pubsub/testdata/schema/us-states.proto +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package utilities; -option java_outer_classname = "StateProto"; - -message State { - string name = 1; - string post_abbr = 2; -} \ No newline at end of file diff --git a/vendor/github.com/google/s2a-go/example/proto/echo.proto b/vendor/github.com/google/s2a-go/example/proto/echo.proto deleted file mode 100644 index 8a899bb8d..000000000 --- a/vendor/github.com/google/s2a-go/example/proto/echo.proto +++ /dev/null @@ -1,36 +0,0 @@ -/* - * - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -syntax = "proto3"; - -package s2av2.example.proto; - -option go_package = "github.com/google/s2a/example/proto/echo_go_proto"; - -service Echo { - // The echo service replies back the same message in the request. - rpc Echo(EchoRequest) returns (EchoResponse) {} -} - -message EchoRequest { - string msg = 1; -} - -message EchoResponse { - string msg = 1; -} diff --git a/vendor/github.com/google/s2a-go/internal/proto/common/common.proto b/vendor/github.com/google/s2a-go/internal/proto/common/common.proto deleted file mode 100644 index b06fe6b79..000000000 --- a/vendor/github.com/google/s2a-go/internal/proto/common/common.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package s2a.proto; - -option go_package = "github.com/google/s2a/internal/proto/common_go_proto"; - -// The ciphersuites supported by S2A. The name determines the confidentiality, -// and authentication ciphers as well as the hash algorithm used for PRF in -// TLS 1.2 or HKDF in TLS 1.3. Thus, the components of the name are: -// - AEAD -- for encryption and authentication, e.g., AES_128_GCM. -// - Hash algorithm -- used in PRF or HKDF, e.g., SHA256. -enum Ciphersuite { - AES_128_GCM_SHA256 = 0; - AES_256_GCM_SHA384 = 1; - CHACHA20_POLY1305_SHA256 = 2; -} - -// The TLS versions supported by S2A's handshaker module. -enum TLSVersion { - TLS1_2 = 0; - TLS1_3 = 1; -} - -message Identity { - oneof identity_oneof { - // The SPIFFE ID of a connection endpoint. - string spiffe_id = 1; - - // The hostname of a connection endpoint. - string hostname = 2; - - // The UID of a connection endpoint. - string uid = 4; - - // The MDB username of a connection endpoint. - string mdb_username = 5; - - // The Gaia ID of a connection endpoint. - string gaia_id = 6; - } - - // Additional identity-specific attributes. - map attributes = 3; -} diff --git a/vendor/github.com/google/s2a-go/internal/proto/examples/helloworld.proto b/vendor/github.com/google/s2a-go/internal/proto/examples/helloworld.proto deleted file mode 100644 index 3927cf2b2..000000000 --- a/vendor/github.com/google/s2a-go/internal/proto/examples/helloworld.proto +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package s2a.examples; - -option go_package = "github.com/google/s2a/internal/proto/examples/helloworld_go_proto"; - -// The greeting service definition. -service Greeter { - // A unary RPC. - rpc SayHello(HelloRequest) returns (HelloReply) {} - - // A client-side streaming RPC. - rpc SayHelloManyRequests(stream HelloRequest) returns (HelloReply) {} - - // A server-side streaming RPC. - rpc SayHelloManyReplies(HelloRequest) returns (stream HelloReply) {} - - // A bidirectional streaming RPC. - rpc SayHelloConversation(stream HelloRequest) returns (stream HelloReply) {} -} - -// The request message containing the user's name. -message HelloRequest { - string name = 1; -} - -// The response message containing the greetings -message HelloReply { - string message = 1; -} diff --git a/vendor/github.com/google/s2a-go/internal/proto/s2a/s2a.proto b/vendor/github.com/google/s2a-go/internal/proto/s2a/s2a.proto deleted file mode 100644 index 9e00ef580..000000000 --- a/vendor/github.com/google/s2a-go/internal/proto/s2a/s2a.proto +++ /dev/null @@ -1,267 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package s2a.proto; - -option go_package = "github.com/google/s2a/internal/proto/s2a_go_proto"; - -import "internal/proto/common/common.proto"; - -message AuthenticationMechanism { - // (Optional) Application may specify an identity associated to an - // authentication mechanism. Otherwise, S2A assumes that the authentication - // mechanism is associated with the default identity. If the default identity - // cannot be determined, session setup fails. - Identity identity = 1; - - oneof mechanism_oneof { - // A token that the application uses to authenticate itself to the S2A. - string token = 2; - } -} - -message ClientSessionStartReq { - // The application protocols supported by the client, e.g., "grpc". - repeated string application_protocols = 1; - - // (Optional) The minimum TLS version number that the S2A's handshaker module - // will use to set up the session. If this field is not provided, S2A will use - // the minimum version it supports. - TLSVersion min_tls_version = 2; - - // (Optional) The maximum TLS version number that the S2A's handshaker module - // will use to set up the session. If this field is not provided, S2A will use - // the maximum version it supports. - TLSVersion max_tls_version = 3; - - // The TLS ciphersuites that the client is willing to support. - repeated Ciphersuite tls_ciphersuites = 4; - - // (Optional) Describes which server identities are acceptable by the client. - // If target identities are provided and none of them matches the peer - // identity of the server, session setup fails. - repeated Identity target_identities = 5; - - // (Optional) Application may specify a local identity. Otherwise, S2A chooses - // the default local identity. If the default identity cannot be determined, - // session setup fails. - Identity local_identity = 6; - - // The target name that is used by S2A to configure SNI in the TLS handshake. - // It is also used to perform server authorization check if avaiable. This - // check is intended to verify that the peer authenticated identity is - // authorized to run a service with the target name. - // This field MUST only contain the host portion of the server address. It - // MUST not contain the scheme or the port number. For example, if the server - // address is dns://www.example.com:443, the value of this field should be - // set to www.example.com. - string target_name = 7; -} - -message ServerSessionStartReq { - // The application protocols supported by the server, e.g., "grpc". - repeated string application_protocols = 1; - - // (Optional) The minimum TLS version number that the S2A's handshaker module - // will use to set up the session. If this field is not provided, S2A will use - // the minimum version it supports. - TLSVersion min_tls_version = 2; - - // (Optional) The maximum TLS version number that the S2A's handshaker module - // will use to set up the session. If this field is not provided, S2A will use - // the maximum version it supports. - TLSVersion max_tls_version = 3; - - // The TLS ciphersuites that the server is willing to support. - repeated Ciphersuite tls_ciphersuites = 4; - - // (Optional) A list of local identities supported by the server, if - // specified. Otherwise, S2A chooses the default local identity. If the - // default identity cannot be determined, session setup fails. - repeated Identity local_identities = 5; - - // The byte representation of the first handshake message received from the - // client peer. It is possible that this first message is split into multiple - // chunks. In this case, the first chunk is sent using this field and the - // following chunks are sent using the in_bytes field of SessionNextReq - // Specifically, if the client peer is using S2A, this field contains the - // bytes in the out_frames field of SessionResp message that the client peer - // received from its S2A after initiating the handshake. - bytes in_bytes = 6; -} - -message SessionNextReq { - // The byte representation of session setup, i.e., handshake messages. - // Specifically: - // - All handshake messages sent from the server to the client. - // - All, except for the first, handshake messages sent from the client to - // the server. Note that the first message is communicated to S2A using the - // in_bytes field of ServerSessionStartReq. - // If the peer is using S2A, this field contains the bytes in the out_frames - // field of SessionResp message that the peer received from its S2A. - bytes in_bytes = 1; -} - -message ResumptionTicketReq { - // The byte representation of a NewSessionTicket message received from the - // server. - repeated bytes in_bytes = 1; - - // A connection identifier that was created and sent by S2A at the end of a - // handshake. - uint64 connection_id = 2; - - // The local identity that was used by S2A during session setup and included - // in |SessionResult|. - Identity local_identity = 3; -} - -message SessionReq { - oneof req_oneof { - // The client session setup request message. - ClientSessionStartReq client_start = 1; - - // The server session setup request message. - ServerSessionStartReq server_start = 2; - - // The next session setup message request message. - SessionNextReq next = 3; - - // The resumption ticket that is received from the server. This message is - // only accepted by S2A if it is running as a client and if it is received - // after session setup is complete. If S2A is running as a server and it - // receives this message, the session is terminated. - ResumptionTicketReq resumption_ticket = 4; - } - - // (Optional) The authentication mechanisms that the client wishes to use to - // authenticate to the S2A, ordered by preference. The S2A will always use the - // first authentication mechanism that appears in the list and is supported by - // the S2A. - repeated AuthenticationMechanism auth_mechanisms = 5; -} - -message SessionState { - // The TLS version number that the S2A's handshaker module used to set up the - // session. - TLSVersion tls_version = 1; - - // The TLS ciphersuite negotiated by the S2A's handshaker module. - Ciphersuite tls_ciphersuite = 2; - - // The sequence number of the next, incoming, TLS record. - uint64 in_sequence = 3; - // The sequence number of the next, outgoing, TLS record. - uint64 out_sequence = 4; - - // The key for the inbound direction. - bytes in_key = 5; - // The key for the outbound direction. - bytes out_key = 6; - - // The constant part of the record nonce for the outbound direction. - bytes in_fixed_nonce = 7; - // The constant part of the record nonce for the inbound direction. - bytes out_fixed_nonce = 8; - - // A connection identifier that can be provided to S2A to perform operations - // related to this connection. This identifier will be stored by the record - // protocol, and included in the |ResumptionTicketReq| message that is later - // sent back to S2A. This field is set only for client-side connections. - uint64 connection_id = 9; - - // Set to true if a cached session was reused to do an abbreviated handshake. - bool is_handshake_resumed = 10; -} - -message SessionResult { - // The application protocol negotiated for this session. - string application_protocol = 1; - - // The session state at the end. This state contains all cryptographic - // material required to initialize the record protocol object. - SessionState state = 2; - - // The authenticated identity of the peer. - Identity peer_identity = 4; - - // The local identity used during session setup. This could be: - // - The local identity that the client specifies in ClientSessionStartReq. - // - One of the local identities that the server specifies in - // ServerSessionStartReq. - // - If neither client or server specifies local identities, the S2A picks the - // default one. In this case, this field will contain that identity. - Identity local_identity = 5; - - // The SHA256 hash of the local certificate used in the handshake. - bytes local_cert_fingerprint = 6; - - // The SHA256 hash of the peer certificate used in the handshake. - bytes peer_cert_fingerprint = 7; -} - -message SessionStatus { - // The status code that is specific to the application and the implementation - // of S2A, e.g., gRPC status code. - uint32 code = 1; - - // The status details. - string details = 2; -} - -message SessionResp { - // The local identity used during session setup. This could be: - // - The local identity that the client specifies in ClientSessionStartReq. - // - One of the local identities that the server specifies in - // ServerSessionStartReq. - // - If neither client or server specifies local identities, the S2A picks the - // default one. In this case, this field will contain that identity. - // If the SessionResult is populated, then this must coincide with the local - // identity specified in the SessionResult; otherwise, the handshake must - // fail. - Identity local_identity = 1; - - // The byte representation of the frames that should be sent to the peer. May - // be empty if nothing needs to be sent to the peer or if in_bytes in the - // SessionReq is incomplete. All bytes in a non-empty out_frames must be sent - // to the peer even if the session setup status is not OK as these frames may - // contain appropriate alerts. - bytes out_frames = 2; - - // Number of bytes in the in_bytes field that are consumed by S2A. It is - // possible that part of in_bytes is unrelated to the session setup process. - uint32 bytes_consumed = 3; - - // This is set if the session is successfully set up. out_frames may - // still be set to frames that needs to be forwarded to the peer. - SessionResult result = 4; - - // Status of session setup at the current stage. - SessionStatus status = 5; -} - -service S2AService { - // S2A service accepts a stream of session setup requests and returns a stream - // of session setup responses. The client of this service is expected to send - // exactly one client_start or server_start message followed by at least one - // next message. Applications running TLS clients can send requests with - // resumption_ticket messages only after the session is successfully set up. - // - // Every time S2A client sends a request, this service sends a response. - // However, clients do not have to wait for service response before sending - // the next request. - rpc SetUpSession(stream SessionReq) returns (stream SessionResp) {} -} diff --git a/vendor/github.com/google/s2a-go/internal/proto/s2a_context/s2a_context.proto b/vendor/github.com/google/s2a-go/internal/proto/s2a_context/s2a_context.proto deleted file mode 100644 index f97517b35..000000000 --- a/vendor/github.com/google/s2a-go/internal/proto/s2a_context/s2a_context.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package s2a.proto; - -option go_package = "github.com/google/s2a/internal/proto/s2a_context_go_proto"; - -import "internal/proto/common/common.proto"; - -message S2AContext { - // The application protocol negotiated for this connection, e.g., 'grpc'. - string application_protocol = 1; - - // The TLS version number that the S2A's handshaker module used to set up the - // session. - TLSVersion tls_version = 2; - - // The TLS ciphersuite negotiated by the S2A's handshaker module. - Ciphersuite ciphersuite = 3; - - // The authenticated identity of the peer. - Identity peer_identity = 4; - - // The local identity used during session setup. This could be: - // - The local identity that the client specifies in ClientSessionStartReq. - // - One of the local identities that the server specifies in - // ServerSessionStartReq. - // - If neither client or server specifies local identities, the S2A picks the - // default one. In this case, this field will contain that identity. - Identity local_identity = 5; - - // The SHA256 hash of the peer certificate used in the handshake. - bytes peer_cert_fingerprint = 6; - - // The SHA256 hash of the local certificate used in the handshake. - bytes local_cert_fingerprint = 7; - - // Set to true if a cached session was reused to resume the handshake. - bool is_handshake_resumed = 8; -} diff --git a/vendor/github.com/google/s2a-go/internal/proto/v2/common/common.proto b/vendor/github.com/google/s2a-go/internal/proto/v2/common/common.proto deleted file mode 100644 index f45c00e16..000000000 --- a/vendor/github.com/google/s2a-go/internal/proto/v2/common/common.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package s2a.proto.v2; - -option go_package = "github.com/google/s2a/internal/proto/v2/common_go_proto"; - -// The TLS 1.0-1.2 ciphersuites that the application can negotiate when using -// S2A. -enum Ciphersuite { - CIPHERSUITE_UNSPECIFIED = 0; - CIPHERSUITE_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = 1; - CIPHERSUITE_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = 2; - CIPHERSUITE_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 = 3; - CIPHERSUITE_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = 4; - CIPHERSUITE_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = 5; - CIPHERSUITE_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 = 6; -} - -// The TLS versions supported by S2A's handshaker module. -enum TLSVersion { - TLS_VERSION_UNSPECIFIED = 0; - TLS_VERSION_1_0 = 1; - TLS_VERSION_1_1 = 2; - TLS_VERSION_1_2 = 3; - TLS_VERSION_1_3 = 4; -} - -// The side in the TLS connection. -enum ConnectionSide { - CONNECTION_SIDE_UNSPECIFIED = 0; - CONNECTION_SIDE_CLIENT = 1; - CONNECTION_SIDE_SERVER = 2; -} - -// The ALPN protocols that the application can negotiate during a TLS handshake. -enum AlpnProtocol { - ALPN_PROTOCOL_UNSPECIFIED = 0; - ALPN_PROTOCOL_GRPC = 1; - ALPN_PROTOCOL_HTTP2 = 2; - ALPN_PROTOCOL_HTTP1_1 = 3; -} diff --git a/vendor/github.com/google/s2a-go/internal/proto/v2/s2a/s2a.proto b/vendor/github.com/google/s2a-go/internal/proto/v2/s2a/s2a.proto deleted file mode 100644 index c7152b62c..000000000 --- a/vendor/github.com/google/s2a-go/internal/proto/v2/s2a/s2a.proto +++ /dev/null @@ -1,365 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package s2a.proto.v2; - -option go_package = "github.com/google/s2a/internal/proto/v2/s2a_go_proto"; - -import "internal/proto/common/common.proto"; -import "internal/proto/v2/common/common.proto"; -import "internal/proto/v2/s2a_context/s2a_context.proto"; - -enum SignatureAlgorithm { - S2A_SSL_SIGN_UNSPECIFIED = 0; - // RSA Public-Key Cryptography Standards #1. - S2A_SSL_SIGN_RSA_PKCS1_SHA256 = 1; - S2A_SSL_SIGN_RSA_PKCS1_SHA384 = 2; - S2A_SSL_SIGN_RSA_PKCS1_SHA512 = 3; - // ECDSA. - S2A_SSL_SIGN_ECDSA_SECP256R1_SHA256 = 4; - S2A_SSL_SIGN_ECDSA_SECP384R1_SHA384 = 5; - S2A_SSL_SIGN_ECDSA_SECP521R1_SHA512 = 6; - // RSA Probabilistic Signature Scheme. - S2A_SSL_SIGN_RSA_PSS_RSAE_SHA256 = 7; - S2A_SSL_SIGN_RSA_PSS_RSAE_SHA384 = 8; - S2A_SSL_SIGN_RSA_PSS_RSAE_SHA512 = 9; - // ED25519. - S2A_SSL_SIGN_ED25519 = 10; -} - -message AlpnPolicy { - // If true, the application MUST perform ALPN negotiation. - bool enable_alpn_negotiation = 1; - - // The ordered list of ALPN protocols that specify how the application SHOULD - // negotiate ALPN during the TLS handshake. - // - // The application MAY ignore any ALPN protocols in this list that are not - // supported by the application. - repeated AlpnProtocol alpn_protocols = 2; -} - -message AuthenticationMechanism { - // Applications may specify an identity associated to an authentication - // mechanism. Otherwise, S2A assumes that the authentication mechanism is - // associated with the default identity. If the default identity cannot be - // determined, the request is rejected. - s2a.proto.Identity identity = 1; - - oneof mechanism_oneof { - // A token that the application uses to authenticate itself to S2A. - string token = 2; - } -} - -message Status { - // The status code that is specific to the application and the implementation - // of S2A, e.g., gRPC status code. - uint32 code = 1; - - // The status details. - string details = 2; -} - -message GetTlsConfigurationReq { - // The role of the application in the TLS connection. - ConnectionSide connection_side = 1; - - // The server name indication (SNI) extension, which MAY be populated when a - // server is offloading to S2A. The SNI is used to determine the server - // identity if the local identity in the request is empty. - string sni = 2; -} - -message GetTlsConfigurationResp { - // Next ID: 8 - message ClientTlsConfiguration { - reserved 4, 5; - - // The certificate chain that the client MUST use for the TLS handshake. - // It's a list of PEM-encoded certificates, ordered from leaf to root, - // excluding the root. - repeated string certificate_chain = 1; - - // The minimum TLS version number that the client MUST use for the TLS - // handshake. If this field is not provided, the client MUST use the default - // minimum version of the client's TLS library. - TLSVersion min_tls_version = 2; - - // The maximum TLS version number that the client MUST use for the TLS - // handshake. If this field is not provided, the client MUST use the default - // maximum version of the client's TLS library. - TLSVersion max_tls_version = 3; - - // The ordered list of TLS 1.0-1.2 ciphersuites that the client MAY offer to - // negotiate in the TLS handshake. - repeated Ciphersuite ciphersuites = 6; - - // The policy that dictates how the client negotiates ALPN during the TLS - // handshake. - AlpnPolicy alpn_policy = 7; - } - - // Next ID: 12 - message ServerTlsConfiguration { - reserved 4, 5; - - enum RequestClientCertificate { - UNSPECIFIED = 0; - DONT_REQUEST_CLIENT_CERTIFICATE = 1; - REQUEST_CLIENT_CERTIFICATE_BUT_DONT_VERIFY = 2; - REQUEST_CLIENT_CERTIFICATE_AND_VERIFY = 3; - REQUEST_AND_REQUIRE_CLIENT_CERTIFICATE_BUT_DONT_VERIFY = 4; - REQUEST_AND_REQUIRE_CLIENT_CERTIFICATE_AND_VERIFY = 5; - } - - // The certificate chain that the server MUST use for the TLS handshake. - // It's a list of PEM-encoded certificates, ordered from leaf to root, - // excluding the root. - repeated string certificate_chain = 1; - - // The minimum TLS version number that the server MUST use for the TLS - // handshake. If this field is not provided, the server MUST use the default - // minimum version of the server's TLS library. - TLSVersion min_tls_version = 2; - - // The maximum TLS version number that the server MUST use for the TLS - // handshake. If this field is not provided, the server MUST use the default - // maximum version of the server's TLS library. - TLSVersion max_tls_version = 3; - - // The ordered list of TLS 1.0-1.2 ciphersuites that the server MAY offer to - // negotiate in the TLS handshake. - repeated Ciphersuite ciphersuites = 10; - - // Whether to enable TLS resumption. - bool tls_resumption_enabled = 6; - - // Whether the server MUST request a client certificate (i.e. to negotiate - // TLS vs. mTLS). - RequestClientCertificate request_client_certificate = 7; - - // Returns the maximum number of extra bytes that - // |OffloadResumptionKeyOperation| can add to the number of unencrypted - // bytes to form the encrypted bytes. - uint32 max_overhead_of_ticket_aead = 9; - - // The policy that dictates how the server negotiates ALPN during the TLS - // handshake. - AlpnPolicy alpn_policy = 11; - } - - oneof tls_configuration { - ClientTlsConfiguration client_tls_configuration = 1; - ServerTlsConfiguration server_tls_configuration = 2; - } -} - -message OffloadPrivateKeyOperationReq { - enum PrivateKeyOperation { - UNSPECIFIED = 0; - // When performing a TLS 1.2 or 1.3 handshake, the (partial) transcript of - // the TLS handshake must be signed to prove possession of the private key. - // - // See https://www.rfc-editor.org/rfc/rfc8446.html#section-4.4.3. - SIGN = 1; - // When performing a TLS 1.2 handshake using an RSA algorithm, the key - // exchange algorithm involves the client generating a premaster secret, - // encrypting it using the server's public key, and sending this encrypted - // blob to the server in a ClientKeyExchange message. - // - // See https://www.rfc-editor.org/rfc/rfc4346#section-7.4.7.1. - DECRYPT = 2; - } - - // The operation the private key is used for. - PrivateKeyOperation operation = 1; - - // The signature algorithm to be used for signing operations. - SignatureAlgorithm signature_algorithm = 2; - - // The input bytes to be signed or decrypted. - oneof in_bytes { - // Raw bytes to be hashed and signed, or decrypted. - bytes raw_bytes = 4; - // A SHA256 hash to be signed. Must be 32 bytes. - bytes sha256_digest = 5; - // A SHA384 hash to be signed. Must be 48 bytes. - bytes sha384_digest = 6; - // A SHA512 hash to be signed. Must be 64 bytes. - bytes sha512_digest = 7; - } -} - -message OffloadPrivateKeyOperationResp { - // The signed or decrypted output bytes. - bytes out_bytes = 1; -} - -message OffloadResumptionKeyOperationReq { - enum ResumptionKeyOperation { - UNSPECIFIED = 0; - ENCRYPT = 1; - DECRYPT = 2; - } - - // The operation the resumption key is used for. - ResumptionKeyOperation operation = 1; - - // The bytes to be encrypted or decrypted. - bytes in_bytes = 2; -} - -message OffloadResumptionKeyOperationResp { - // The encrypted or decrypted bytes. - bytes out_bytes = 1; -} - -message ValidatePeerCertificateChainReq { - enum VerificationMode { - // The default verification mode supported by S2A. - UNSPECIFIED = 0; - // The SPIFFE verification mode selects the set of trusted certificates to - // use for path building based on the SPIFFE trust domain in the peer's leaf - // certificate. - SPIFFE = 1; - // The connect-to-Google verification mode uses the trust bundle for - // connecting to Google, e.g. *.mtls.googleapis.com endpoints. - CONNECT_TO_GOOGLE = 2; - } - - message ClientPeer { - // The certificate chain to be verified. The chain MUST be a list of - // DER-encoded certificates, ordered from leaf to root, excluding the root. - repeated bytes certificate_chain = 1; - } - - message ServerPeer { - // The certificate chain to be verified. The chain MUST be a list of - // DER-encoded certificates, ordered from leaf to root, excluding the root. - repeated bytes certificate_chain = 1; - - // The expected hostname of the server. - string server_hostname = 2; - - // The UnrestrictedClientPolicy specified by the user. - bytes serialized_unrestricted_client_policy = 3; - } - - // The verification mode that S2A MUST use to validate the peer certificate - // chain. - VerificationMode mode = 1; - - oneof peer_oneof { - ClientPeer client_peer = 2; - ServerPeer server_peer = 3; - } -} - -message ValidatePeerCertificateChainResp { - enum ValidationResult { - UNSPECIFIED = 0; - SUCCESS = 1; - FAILURE = 2; - } - - // The result of validating the peer certificate chain. - ValidationResult validation_result = 1; - - // The validation details. This field is only populated when the validation - // result is NOT SUCCESS. - string validation_details = 2; - - // The S2A context contains information from the peer certificate chain. - // - // The S2A context MAY be populated even if validation of the peer certificate - // chain fails. - S2AContext context = 3; -} - -message SessionReq { - // The identity corresponding to the TLS configurations that MUST be used for - // the TLS handshake. - // - // If a managed identity already exists, the local identity and authentication - // mechanisms are ignored. If a managed identity doesn't exist and the local - // identity is not populated, S2A will try to deduce the managed identity to - // use from the SNI extension. If that also fails, S2A uses the default - // identity (if one exists). - s2a.proto.Identity local_identity = 1; - - // The authentication mechanisms that the application wishes to use to - // authenticate to S2A, ordered by preference. S2A will always use the first - // authentication mechanism that matches the managed identity. - repeated AuthenticationMechanism authentication_mechanisms = 2; - - oneof req_oneof { - // Requests the certificate chain and TLS configuration corresponding to the - // local identity, which the application MUST use to negotiate the TLS - // handshake. - GetTlsConfigurationReq get_tls_configuration_req = 3; - - // Signs or decrypts the input bytes using a private key corresponding to - // the local identity in the request. - // - // WARNING: More than one OffloadPrivateKeyOperationReq may be sent to the - // S2Av2 by a server during a TLS 1.2 handshake. - OffloadPrivateKeyOperationReq offload_private_key_operation_req = 4; - - // Encrypts or decrypts the input bytes using a resumption key corresponding - // to the local identity in the request. - OffloadResumptionKeyOperationReq offload_resumption_key_operation_req = 5; - - // Verifies the peer's certificate chain using - // (a) trust bundles corresponding to the local identity in the request, and - // (b) the verification mode in the request. - ValidatePeerCertificateChainReq validate_peer_certificate_chain_req = 6; - } -} - -message SessionResp { - // Status of the session response. - // - // The status field is populated so that if an error occurs when making an - // individual request, then communication with the S2A may continue. If an - // error is returned directly (e.g. at the gRPC layer), then it may result - // that the bidirectional stream being closed. - Status status = 1; - - oneof resp_oneof { - // Contains the certificate chain and TLS configurations corresponding to - // the local identity. - GetTlsConfigurationResp get_tls_configuration_resp = 2; - - // Contains the signed or encrypted output bytes using the private key - // corresponding to the local identity. - OffloadPrivateKeyOperationResp offload_private_key_operation_resp = 3; - - // Contains the encrypted or decrypted output bytes using the resumption key - // corresponding to the local identity. - OffloadResumptionKeyOperationResp offload_resumption_key_operation_resp = 4; - - // Contains the validation result, peer identity and fingerprints of peer - // certificates. - ValidatePeerCertificateChainResp validate_peer_certificate_chain_resp = 5; - } -} - -service S2AService { - // SetUpSession is a bidirectional stream used by applications to offload - // operations from the TLS handshake. - rpc SetUpSession(stream SessionReq) returns (stream SessionResp) {} -} diff --git a/vendor/github.com/google/s2a-go/internal/proto/v2/s2a_context/s2a_context.proto b/vendor/github.com/google/s2a-go/internal/proto/v2/s2a_context/s2a_context.proto deleted file mode 100644 index 24f043fac..000000000 --- a/vendor/github.com/google/s2a-go/internal/proto/v2/s2a_context/s2a_context.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package s2a.proto.v2; - -option go_package = "github.com/google/s2a/internal/proto/v2/s2a_context_go_proto"; - -import "internal/proto/common/common.proto"; - -message S2AContext { - // The SPIFFE ID from the peer leaf certificate, if present. - // - // This field is only populated if the leaf certificate is a valid SPIFFE - // SVID; in particular, there is a unique URI SAN and this URI SAN is a valid - // SPIFFE ID. - string leaf_cert_spiffe_id = 1; - - // The URIs that are present in the SubjectAltName extension of the peer leaf - // certificate. - // - // Note that the extracted URIs are not validated and may not be properly - // formatted. - repeated string leaf_cert_uris = 2; - - // The DNSNames that are present in the SubjectAltName extension of the peer - // leaf certificate. - repeated string leaf_cert_dnsnames = 3; - - // The (ordered) list of fingerprints in the certificate chain used to verify - // the given leaf certificate. The order MUST be from leaf certificate - // fingerprint to root certificate fingerprint. - // - // A fingerprint is the base-64 encoding of the SHA256 hash of the - // DER-encoding of a certificate. The list MAY be populated even if the peer - // certificate chain was NOT validated successfully. - repeated string peer_certificate_chain_fingerprints = 4; - - // The local identity used during session setup. - s2a.proto.Identity local_identity = 5; - - // The SHA256 hash of the DER-encoding of the local leaf certificate used in - // the handshake. - bytes local_leaf_cert_fingerprint = 6; -} - diff --git a/vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/internal/examplepb/example.proto b/vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/internal/examplepb/example.proto deleted file mode 100644 index 778271d20..000000000 --- a/vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/internal/examplepb/example.proto +++ /dev/null @@ -1,138 +0,0 @@ -syntax = "proto3"; - -package grpc.gateway.runtime.internal.examplepb; - -import "google/protobuf/any.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "github.com/grpc-ecosystem/grpc-gateway/v2/runtime/internal/examplepb"; - -// SimpleMessage represents a simple message sent to the Echo service. -message SimpleMessage { - string id = 1; -} - -message ABitOfEverything { - // Nested is nested type. - message Nested { - // name is nested field. - string name = 1; - uint32 amount = 2; - // DeepEnum is one or zero. - enum DeepEnum { - // FALSE is false. - FALSE = 0; - // TRUE is true. - TRUE = 1; - } - // DeepEnum comment. - DeepEnum ok = 3; - } - Nested single_nested = 25; - string uuid = 1; - repeated Nested nested = 2; - float float_value = 3; - double double_value = 4; - int64 int64_value = 5; - uint64 uint64_value = 6; - int32 int32_value = 7; - fixed64 fixed64_value = 8; - fixed32 fixed32_value = 9; - bool bool_value = 10; - string string_value = 11; - bytes bytes_value = 29; - uint32 uint32_value = 13; - NumericEnum enum_value = 14; - sfixed32 sfixed32_value = 15; - sfixed64 sfixed64_value = 16; - sint32 sint32_value = 17; - sint64 sint64_value = 18; - repeated string repeated_string_value = 19; - oneof oneof_value { - google.protobuf.Empty oneof_empty = 20; - string oneof_string = 21; - } - map map_value = 22; - map mapped_string_value = 23; - map mapped_nested_value = 24; - string nonConventionalNameValue = 26; - google.protobuf.Timestamp timestamp_value = 27; - // repeated enum value. it is comma-separated in query - repeated NumericEnum repeated_enum_value = 28; - // repeated numeric enum comment (This comment is overridden by the field - // annotation) - repeated NumericEnum repeated_enum_annotation = 32; - // numeric enum comment (This comment is overridden by the field annotation) - NumericEnum enum_value_annotation = 33; - // repeated string comment (This comment is overridden by the field - // annotation) - repeated string repeated_string_annotation = 34; - // repeated nested object comment (This comment is overridden by the field - // annotation) - repeated Nested repeated_nested_annotation = 35; - // nested object comments (This comment is overridden by the field annotation) - Nested nested_annotation = 36; - int64 int64_override_type = 37; - google.protobuf.Any anytype = 38; - repeated google.protobuf.Any repeated_anytype = 39; -} - -// NumericEnum is one or zero. -enum NumericEnum { - // ZERO means 0 - ZERO = 0; - // ONE means 1 - ONE = 1; -} - -message ResponseBodyOut { - message Response { - string data = 1; - } - Response response = 2; -} - -message RepeatedResponseBodyOut { - message Response { - string data = 1; - enum ResponseType { - // UNKNOWN - UNKNOWN = 0; - // A is 1 - A = 1; - // B is 2 - B = 2; - } - ResponseType type = 3; - } - repeated Response response = 2; -} - -message UpdateMessage { - google.protobuf.FieldMask update_mask = 1; - ABitOfEverything a_bit_of_everything = 2; -} - -message NestedOuter { - NestedOne one = 1; -} - -message NestedOne { - NestedTwo two = 1; -} - -message NestedTwo { - NestedThree three = 1; -} - -message NestedThree { - bool a = 1; - bool b = 2; -} - -message UpdateNestedRequest { - NestedOuter nested = 1; - google.protobuf.FieldMask update_mask = 2; -} diff --git a/vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/internal/examplepb/non_standard_names.proto b/vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/internal/examplepb/non_standard_names.proto deleted file mode 100644 index d5d6a9099..000000000 --- a/vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/internal/examplepb/non_standard_names.proto +++ /dev/null @@ -1,82 +0,0 @@ -syntax = "proto3"; - -package grpc.gateway.runtime.internal.examplepb; - -import "google/api/annotations.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/struct.proto"; - -option go_package = "github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/examplepb"; - -// NonStandardMessage has oddly named fields. -message NonStandardMessage { - // Id represents the message identifier. - string id = 1; - int64 Num = 2; - int64 line_num = 3; - string langIdent = 4; - string STATUS = 5; - int64 en_GB = 6; - string no = 7; - - message Thing { - message SubThing { - string sub_value = 1; - } - SubThing subThing = 1; - } - Thing thing = 8; - google.protobuf.Struct struct_field = 9; - google.protobuf.Value value_field = 10; -} - -message NonStandardUpdateRequest { - NonStandardMessage body = 1; - google.protobuf.FieldMask update_mask = 2; -} - -// NonStandardMessageWithJSONNames maps odd field names to odd JSON names for maximum confusion. -message NonStandardMessageWithJSONNames { - // Id represents the message identifier. - string id = 1 [json_name = "ID"]; - int64 Num = 2 [json_name = "Num"]; - int64 line_num = 3 [json_name = "LineNum"]; - string langIdent = 4 [json_name = "langIdent"]; - string STATUS = 5 [json_name = "status"]; - int64 en_GB = 6 [json_name = "En_GB"]; - string no = 7 [json_name = "yes"]; - - message Thing { - message SubThing { - string sub_value = 1 [json_name = "sub_Value"]; - } - SubThing subThing = 1 [json_name = "SubThing"]; - } - Thing thing = 8 [json_name = "Thingy"]; - google.protobuf.Struct struct_field = 9 [json_name = "StructField"]; - google.protobuf.Value value_field = 10 [json_name = "ValueField"]; -} - -message NonStandardWithJSONNamesUpdateRequest { - NonStandardMessageWithJSONNames body = 1; - google.protobuf.FieldMask update_mask = 2; -} - -// NonStandardService responds to incoming messages, applies a field mask and returns the masked response. -service NonStandardService { - // Apply field mask to empty NonStandardMessage and return result. - rpc Update(NonStandardUpdateRequest) returns (NonStandardMessage) { - option (google.api.http) = { - patch: "/v1/example/non_standard/update" - body: "body" - }; - } - - // Apply field mask to empty NonStandardMessageWithJSONNames and return result. - rpc UpdateWithJSONNames(NonStandardWithJSONNamesUpdateRequest) returns (NonStandardMessageWithJSONNames) { - option (google.api.http) = { - patch: "/v1/example/non_standard/update_with_json_names" - body: "body" - }; - } -} diff --git a/vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/internal/examplepb/proto2.proto b/vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/internal/examplepb/proto2.proto deleted file mode 100644 index 62fb7bc5d..000000000 --- a/vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/internal/examplepb/proto2.proto +++ /dev/null @@ -1,18 +0,0 @@ -syntax = "proto2"; - -package grpc.gateway.runtime.internal.examplepb; - -option go_package = "github.com/grpc-ecosystem/grpc-gateway/v2/runtime/internal/examplepb"; - -message Proto2Message { - optional float float_value = 42; - optional double double_value = 43; - optional int64 int64_value = 3; - optional int32 int32_value = 4; - optional uint64 uint64_value = 5; - optional uint32 uint32_value = 6; - optional bool bool_value = 7; - optional string string_value = 8; - optional bytes bytes_value = 9; - repeated string repeated_value = 10; -} diff --git a/vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/internal/examplepb/proto3.proto b/vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/internal/examplepb/proto3.proto deleted file mode 100644 index 7e492d391..000000000 --- a/vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/internal/examplepb/proto3.proto +++ /dev/null @@ -1,70 +0,0 @@ -syntax = "proto3"; - -package grpc.gateway.runtime.internal.examplepb; - -import "google/protobuf/duration.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/struct.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/wrappers.proto"; - -option go_package = "github.com/grpc-ecosystem/grpc-gateway/v2/runtime/internal/examplepb"; - -message Proto3Message { - // Next number: 49 - Proto3Message nested = 41; - float float_value = 42; - double double_value = 43; - int64 int64_value = 3; - int32 int32_value = 4; - uint64 uint64_value = 5; - uint32 uint32_value = 6; - bool bool_value = 7; - string string_value = 8; - bytes bytes_value = 9; - repeated string repeated_value = 10; - repeated google.protobuf.UInt64Value repeated_message = 44; - EnumValue enum_value = 11; - repeated EnumValue repeated_enum = 12; - google.protobuf.Timestamp timestamp_value = 13; - google.protobuf.Duration duration_value = 14; - google.protobuf.FieldMask fieldmask_value = 15; - oneof oneof_value { - bool oneof_bool_value = 1; - string oneof_string_value = 2; - } - oneof nested_oneof_value { - Proto3Message nested_oneof_value_one = 46; - } - google.protobuf.DoubleValue wrapper_double_value = 17; - google.protobuf.FloatValue wrapper_float_value = 18; - google.protobuf.Int64Value wrapper_int64_value = 19; - google.protobuf.Int32Value wrapper_int32_value = 20; - google.protobuf.UInt64Value wrapper_u_int64_value = 21; - google.protobuf.UInt32Value wrapper_u_int32_value = 22; - google.protobuf.BoolValue wrapper_bool_value = 23; - google.protobuf.StringValue wrapper_string_value = 24; - google.protobuf.BytesValue wrapper_bytes_value = 25; - map map_value = 26; - map map_value2 = 27; - map map_value3 = 28; - map map_value4 = 29; - map map_value5 = 30; - map map_value6 = 31; - map map_value7 = 32; - map map_value8 = 33; - map map_value9 = 34; - map map_value10 = 35; - map map_value12 = 37; - map map_value14 = 39; - map map_value15 = 40; - map map_value16 = 45; - google.protobuf.Value struct_value_value = 47; - google.protobuf.Struct struct_value = 48; -} - -enum EnumValue { - X = 0; - Y = 1; - Z = 2; -} diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/amapi.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/amapi.h deleted file mode 100644 index 1dc674d23..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/amapi.h +++ /dev/null @@ -1,290 +0,0 @@ -/*------------------------------------------------------------------------- - * - * amapi.h - * API for Postgres index access methods. - * - * Copyright (c) 2015-2022, PostgreSQL Global Development Group - * - * src/include/access/amapi.h - * - *------------------------------------------------------------------------- - */ -#ifndef AMAPI_H -#define AMAPI_H - -#include "access/genam.h" - -/* - * We don't wish to include planner header files here, since most of an index - * AM's implementation isn't concerned with those data structures. To allow - * declaring amcostestimate_function here, use forward struct references. - */ -struct PlannerInfo; -struct IndexPath; - -/* Likewise, this file shouldn't depend on execnodes.h. */ -struct IndexInfo; - - -/* - * Properties for amproperty API. This list covers properties known to the - * core code, but an index AM can define its own properties, by matching the - * string property name. - */ -typedef enum IndexAMProperty -{ - AMPROP_UNKNOWN = 0, /* anything not known to core code */ - AMPROP_ASC, /* column properties */ - AMPROP_DESC, - AMPROP_NULLS_FIRST, - AMPROP_NULLS_LAST, - AMPROP_ORDERABLE, - AMPROP_DISTANCE_ORDERABLE, - AMPROP_RETURNABLE, - AMPROP_SEARCH_ARRAY, - AMPROP_SEARCH_NULLS, - AMPROP_CLUSTERABLE, /* index properties */ - AMPROP_INDEX_SCAN, - AMPROP_BITMAP_SCAN, - AMPROP_BACKWARD_SCAN, - AMPROP_CAN_ORDER, /* AM properties */ - AMPROP_CAN_UNIQUE, - AMPROP_CAN_MULTI_COL, - AMPROP_CAN_EXCLUDE, - AMPROP_CAN_INCLUDE -} IndexAMProperty; - -/* - * We use lists of this struct type to keep track of both operators and - * support functions while building or adding to an opclass or opfamily. - * amadjustmembers functions receive lists of these structs, and are allowed - * to alter their "ref" fields. - * - * The "ref" fields define how the pg_amop or pg_amproc entry should depend - * on the associated objects (that is, which dependency type to use, and - * which opclass or opfamily it should depend on). - * - * If ref_is_hard is true, the entry will have a NORMAL dependency on the - * operator or support func, and an INTERNAL dependency on the opclass or - * opfamily. This forces the opclass or opfamily to be dropped if the - * operator or support func is dropped, and requires the CASCADE option - * to do so. Nor will ALTER OPERATOR FAMILY DROP be allowed. This is - * the right behavior for objects that are essential to an opclass. - * - * If ref_is_hard is false, the entry will have an AUTO dependency on the - * operator or support func, and also an AUTO dependency on the opclass or - * opfamily. This allows ALTER OPERATOR FAMILY DROP, and causes that to - * happen automatically if the operator or support func is dropped. This - * is the right behavior for inessential ("loose") objects. - */ -typedef struct OpFamilyMember -{ - bool is_func; /* is this an operator, or support func? */ - Oid object; /* operator or support func's OID */ - int number; /* strategy or support func number */ - Oid lefttype; /* lefttype */ - Oid righttype; /* righttype */ - Oid sortfamily; /* ordering operator's sort opfamily, or 0 */ - bool ref_is_hard; /* hard or soft dependency? */ - bool ref_is_family; /* is dependency on opclass or opfamily? */ - Oid refobjid; /* OID of opclass or opfamily */ -} OpFamilyMember; - - -/* - * Callback function signatures --- see indexam.sgml for more info. - */ - -/* build new index */ -typedef IndexBuildResult *(*ambuild_function) (Relation heapRelation, - Relation indexRelation, - struct IndexInfo *indexInfo); - -/* build empty index */ -typedef void (*ambuildempty_function) (Relation indexRelation); - -/* insert this tuple */ -typedef bool (*aminsert_function) (Relation indexRelation, - Datum *values, - bool *isnull, - ItemPointer heap_tid, - Relation heapRelation, - IndexUniqueCheck checkUnique, - bool indexUnchanged, - struct IndexInfo *indexInfo); - -/* bulk delete */ -typedef IndexBulkDeleteResult *(*ambulkdelete_function) (IndexVacuumInfo *info, - IndexBulkDeleteResult *stats, - IndexBulkDeleteCallback callback, - void *callback_state); - -/* post-VACUUM cleanup */ -typedef IndexBulkDeleteResult *(*amvacuumcleanup_function) (IndexVacuumInfo *info, - IndexBulkDeleteResult *stats); - -/* can indexscan return IndexTuples? */ -typedef bool (*amcanreturn_function) (Relation indexRelation, int attno); - -/* estimate cost of an indexscan */ -typedef void (*amcostestimate_function) (struct PlannerInfo *root, - struct IndexPath *path, - double loop_count, - Cost *indexStartupCost, - Cost *indexTotalCost, - Selectivity *indexSelectivity, - double *indexCorrelation, - double *indexPages); - -/* parse index reloptions */ -typedef bytea *(*amoptions_function) (Datum reloptions, - bool validate); - -/* report AM, index, or index column property */ -typedef bool (*amproperty_function) (Oid index_oid, int attno, - IndexAMProperty prop, const char *propname, - bool *res, bool *isnull); - -/* name of phase as used in progress reporting */ -typedef char *(*ambuildphasename_function) (int64 phasenum); - -/* validate definition of an opclass for this AM */ -typedef bool (*amvalidate_function) (Oid opclassoid); - -/* validate operators and support functions to be added to an opclass/family */ -typedef void (*amadjustmembers_function) (Oid opfamilyoid, - Oid opclassoid, - List *operators, - List *functions); - -/* prepare for index scan */ -typedef IndexScanDesc (*ambeginscan_function) (Relation indexRelation, - int nkeys, - int norderbys); - -/* (re)start index scan */ -typedef void (*amrescan_function) (IndexScanDesc scan, - ScanKey keys, - int nkeys, - ScanKey orderbys, - int norderbys); - -/* next valid tuple */ -typedef bool (*amgettuple_function) (IndexScanDesc scan, - ScanDirection direction); - -/* fetch all valid tuples */ -typedef int64 (*amgetbitmap_function) (IndexScanDesc scan, - TIDBitmap *tbm); - -/* end index scan */ -typedef void (*amendscan_function) (IndexScanDesc scan); - -/* mark current scan position */ -typedef void (*ammarkpos_function) (IndexScanDesc scan); - -/* restore marked scan position */ -typedef void (*amrestrpos_function) (IndexScanDesc scan); - -/* - * Callback function signatures - for parallel index scans. - */ - -/* estimate size of parallel scan descriptor */ -typedef Size (*amestimateparallelscan_function) (void); - -/* prepare for parallel index scan */ -typedef void (*aminitparallelscan_function) (void *target); - -/* (re)start parallel index scan */ -typedef void (*amparallelrescan_function) (IndexScanDesc scan); - -/* - * API struct for an index AM. Note this must be stored in a single palloc'd - * chunk of memory. - */ -typedef struct IndexAmRoutine -{ - NodeTag type; - - /* - * Total number of strategies (operators) by which we can traverse/search - * this AM. Zero if AM does not have a fixed set of strategy assignments. - */ - uint16 amstrategies; - /* total number of support functions that this AM uses */ - uint16 amsupport; - /* opclass options support function number or 0 */ - uint16 amoptsprocnum; - /* does AM support ORDER BY indexed column's value? */ - bool amcanorder; - /* does AM support ORDER BY result of an operator on indexed column? */ - bool amcanorderbyop; - /* does AM support backward scanning? */ - bool amcanbackward; - /* does AM support UNIQUE indexes? */ - bool amcanunique; - /* does AM support multi-column indexes? */ - bool amcanmulticol; - /* does AM require scans to have a constraint on the first index column? */ - bool amoptionalkey; - /* does AM handle ScalarArrayOpExpr quals? */ - bool amsearcharray; - /* does AM handle IS NULL/IS NOT NULL quals? */ - bool amsearchnulls; - /* can index storage data type differ from column data type? */ - bool amstorage; - /* can an index of this type be clustered on? */ - bool amclusterable; - /* does AM handle predicate locks? */ - bool ampredlocks; - /* does AM support parallel scan? */ - bool amcanparallel; - /* does AM support columns included with clause INCLUDE? */ - bool amcaninclude; - /* does AM use maintenance_work_mem? */ - bool amusemaintenanceworkmem; - /* OR of parallel vacuum flags. See vacuum.h for flags. */ - uint8 amparallelvacuumoptions; - /* type of data stored in index, or InvalidOid if variable */ - Oid amkeytype; - - /* - * If you add new properties to either the above or the below lists, then - * they should also (usually) be exposed via the property API (see - * IndexAMProperty at the top of the file, and utils/adt/amutils.c). - */ - - /* interface functions */ - ambuild_function ambuild; - ambuildempty_function ambuildempty; - aminsert_function aminsert; - ambulkdelete_function ambulkdelete; - amvacuumcleanup_function amvacuumcleanup; - amcanreturn_function amcanreturn; /* can be NULL */ - amcostestimate_function amcostestimate; - amoptions_function amoptions; - amproperty_function amproperty; /* can be NULL */ - ambuildphasename_function ambuildphasename; /* can be NULL */ - amvalidate_function amvalidate; - amadjustmembers_function amadjustmembers; /* can be NULL */ - ambeginscan_function ambeginscan; - amrescan_function amrescan; - amgettuple_function amgettuple; /* can be NULL */ - amgetbitmap_function amgetbitmap; /* can be NULL */ - amendscan_function amendscan; - ammarkpos_function ammarkpos; /* can be NULL */ - amrestrpos_function amrestrpos; /* can be NULL */ - - /* interface functions to support parallel index scans */ - amestimateparallelscan_function amestimateparallelscan; /* can be NULL */ - aminitparallelscan_function aminitparallelscan; /* can be NULL */ - amparallelrescan_function amparallelrescan; /* can be NULL */ -} IndexAmRoutine; - - -/* Functions in access/index/amapi.c */ -extern IndexAmRoutine *GetIndexAmRoutine(Oid amhandler); -extern IndexAmRoutine *GetIndexAmRoutineByAmId(Oid amoid, bool noerror); - -#endif /* AMAPI_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/attmap.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/attmap.h deleted file mode 100644 index 3ae40cade..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/attmap.h +++ /dev/null @@ -1,52 +0,0 @@ -/*------------------------------------------------------------------------- - * - * attmap.h - * Definitions for PostgreSQL attribute mappings - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/attmap.h - * - *------------------------------------------------------------------------- - */ -#ifndef ATTMAP_H -#define ATTMAP_H - -#include "access/attnum.h" -#include "access/tupdesc.h" - -/* - * Attribute mapping structure - * - * This maps attribute numbers between a pair of relations, designated - * 'input' and 'output' (most typically inheritance parent and child - * relations), whose common columns may have different attribute numbers. - * Such difference may arise due to the columns being ordered differently - * in the two relations or the two relations having dropped columns at - * different positions. - * - * 'maplen' is set to the number of attributes of the 'output' relation, - * taking into account any of its dropped attributes, with the corresponding - * elements of the 'attnums' array set to 0. - */ -typedef struct AttrMap -{ - AttrNumber *attnums; - int maplen; -} AttrMap; - -extern AttrMap *make_attrmap(int maplen); -extern void free_attrmap(AttrMap *map); - -/* Conversion routines to build mappings */ -extern AttrMap *build_attrmap_by_name(TupleDesc indesc, - TupleDesc outdesc); -extern AttrMap *build_attrmap_by_name_if_req(TupleDesc indesc, - TupleDesc outdesc); -extern AttrMap *build_attrmap_by_position(TupleDesc indesc, - TupleDesc outdesc, - const char *msg); - -#endif /* ATTMAP_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/attnum.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/attnum.h deleted file mode 100644 index 508c583eb..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/attnum.h +++ /dev/null @@ -1,64 +0,0 @@ -/*------------------------------------------------------------------------- - * - * attnum.h - * POSTGRES attribute number definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/attnum.h - * - *------------------------------------------------------------------------- - */ -#ifndef ATTNUM_H -#define ATTNUM_H - - -/* - * user defined attribute numbers start at 1. -ay 2/95 - */ -typedef int16 AttrNumber; - -#define InvalidAttrNumber 0 -#define MaxAttrNumber 32767 - -/* ---------------- - * support macros - * ---------------- - */ -/* - * AttributeNumberIsValid - * True iff the attribute number is valid. - */ -#define AttributeNumberIsValid(attributeNumber) \ - ((bool) ((attributeNumber) != InvalidAttrNumber)) - -/* - * AttrNumberIsForUserDefinedAttr - * True iff the attribute number corresponds to a user defined attribute. - */ -#define AttrNumberIsForUserDefinedAttr(attributeNumber) \ - ((bool) ((attributeNumber) > 0)) - -/* - * AttrNumberGetAttrOffset - * Returns the attribute offset for an attribute number. - * - * Note: - * Assumes the attribute number is for a user defined attribute. - */ -#define AttrNumberGetAttrOffset(attNum) \ -( \ - AssertMacro(AttrNumberIsForUserDefinedAttr(attNum)), \ - ((attNum) - 1) \ -) - -/* - * AttrOffsetGetAttrNumber - * Returns the attribute number for an attribute offset. - */ -#define AttrOffsetGetAttrNumber(attributeOffset) \ - ((AttrNumber) (1 + (attributeOffset))) - -#endif /* ATTNUM_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/clog.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/clog.h deleted file mode 100644 index 543f2e264..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/clog.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * clog.h - * - * PostgreSQL transaction-commit-log manager - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/clog.h - */ -#ifndef CLOG_H -#define CLOG_H - -#include "access/xlogreader.h" -#include "storage/sync.h" -#include "lib/stringinfo.h" - -/* - * Possible transaction statuses --- note that all-zeroes is the initial - * state. - * - * A "subcommitted" transaction is a committed subtransaction whose parent - * hasn't committed or aborted yet. - */ -typedef int XidStatus; - -#define TRANSACTION_STATUS_IN_PROGRESS 0x00 -#define TRANSACTION_STATUS_COMMITTED 0x01 -#define TRANSACTION_STATUS_ABORTED 0x02 -#define TRANSACTION_STATUS_SUB_COMMITTED 0x03 - -typedef struct xl_clog_truncate -{ - int pageno; - TransactionId oldestXact; - Oid oldestXactDb; -} xl_clog_truncate; - -extern void TransactionIdSetTreeStatus(TransactionId xid, int nsubxids, - TransactionId *subxids, XidStatus status, XLogRecPtr lsn); -extern XidStatus TransactionIdGetStatus(TransactionId xid, XLogRecPtr *lsn); - -extern Size CLOGShmemBuffers(void); -extern Size CLOGShmemSize(void); -extern void CLOGShmemInit(void); -extern void BootStrapCLOG(void); -extern void StartupCLOG(void); -extern void TrimCLOG(void); -extern void CheckPointCLOG(void); -extern void ExtendCLOG(TransactionId newestXact); -extern void TruncateCLOG(TransactionId oldestXact, Oid oldestxid_datoid); - -extern int clogsyncfiletag(const FileTag *ftag, char *path); - -/* XLOG stuff */ -#define CLOG_ZEROPAGE 0x00 -#define CLOG_TRUNCATE 0x10 - -extern void clog_redo(XLogReaderState *record); -extern void clog_desc(StringInfo buf, XLogReaderState *record); -extern const char *clog_identify(uint8 info); - -#endif /* CLOG_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/commit_ts.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/commit_ts.h deleted file mode 100644 index 7662f8e1a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/commit_ts.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - * commit_ts.h - * - * PostgreSQL commit timestamp manager - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/commit_ts.h - */ -#ifndef COMMIT_TS_H -#define COMMIT_TS_H - -#include "access/xlog.h" -#include "datatype/timestamp.h" -#include "replication/origin.h" -#include "storage/sync.h" - - -extern PGDLLIMPORT bool track_commit_timestamp; - -extern void TransactionTreeSetCommitTsData(TransactionId xid, int nsubxids, - TransactionId *subxids, TimestampTz timestamp, - RepOriginId nodeid); -extern bool TransactionIdGetCommitTsData(TransactionId xid, - TimestampTz *ts, RepOriginId *nodeid); -extern TransactionId GetLatestCommitTsData(TimestampTz *ts, - RepOriginId *nodeid); - -extern Size CommitTsShmemBuffers(void); -extern Size CommitTsShmemSize(void); -extern void CommitTsShmemInit(void); -extern void BootStrapCommitTs(void); -extern void StartupCommitTs(void); -extern void CommitTsParameterChange(bool newvalue, bool oldvalue); -extern void CompleteCommitTsInitialization(void); -extern void CheckPointCommitTs(void); -extern void ExtendCommitTs(TransactionId newestXact); -extern void TruncateCommitTs(TransactionId oldestXact); -extern void SetCommitTsLimit(TransactionId oldestXact, - TransactionId newestXact); -extern void AdvanceOldestCommitTsXid(TransactionId oldestXact); - -extern int committssyncfiletag(const FileTag *ftag, char *path); - -/* XLOG stuff */ -#define COMMIT_TS_ZEROPAGE 0x00 -#define COMMIT_TS_TRUNCATE 0x10 - -typedef struct xl_commit_ts_set -{ - TimestampTz timestamp; - RepOriginId nodeid; - TransactionId mainxid; - /* subxact Xids follow */ -} xl_commit_ts_set; - -#define SizeOfCommitTsSet (offsetof(xl_commit_ts_set, mainxid) + \ - sizeof(TransactionId)) - -typedef struct xl_commit_ts_truncate -{ - int pageno; - TransactionId oldestXid; -} xl_commit_ts_truncate; - -#define SizeOfCommitTsTruncate (offsetof(xl_commit_ts_truncate, oldestXid) + \ - sizeof(TransactionId)) - -extern void commit_ts_redo(XLogReaderState *record); -extern void commit_ts_desc(StringInfo buf, XLogReaderState *record); -extern const char *commit_ts_identify(uint8 info); - -#endif /* COMMIT_TS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/detoast.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/detoast.h deleted file mode 100644 index b1d8ea09d..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/detoast.h +++ /dev/null @@ -1,82 +0,0 @@ -/*------------------------------------------------------------------------- - * - * detoast.h - * Access to compressed and external varlena values. - * - * Copyright (c) 2000-2022, PostgreSQL Global Development Group - * - * src/include/access/detoast.h - * - *------------------------------------------------------------------------- - */ -#ifndef DETOAST_H -#define DETOAST_H - -/* - * Macro to fetch the possibly-unaligned contents of an EXTERNAL datum - * into a local "struct varatt_external" toast pointer. This should be - * just a memcpy, but some versions of gcc seem to produce broken code - * that assumes the datum contents are aligned. Introducing an explicit - * intermediate "varattrib_1b_e *" variable seems to fix it. - */ -#define VARATT_EXTERNAL_GET_POINTER(toast_pointer, attr) \ -do { \ - varattrib_1b_e *attre = (varattrib_1b_e *) (attr); \ - Assert(VARATT_IS_EXTERNAL(attre)); \ - Assert(VARSIZE_EXTERNAL(attre) == sizeof(toast_pointer) + VARHDRSZ_EXTERNAL); \ - memcpy(&(toast_pointer), VARDATA_EXTERNAL(attre), sizeof(toast_pointer)); \ -} while (0) - -/* Size of an EXTERNAL datum that contains a standard TOAST pointer */ -#define TOAST_POINTER_SIZE (VARHDRSZ_EXTERNAL + sizeof(varatt_external)) - -/* Size of an EXTERNAL datum that contains an indirection pointer */ -#define INDIRECT_POINTER_SIZE (VARHDRSZ_EXTERNAL + sizeof(varatt_indirect)) - -/* ---------- - * detoast_external_attr() - - * - * Fetches an external stored attribute from the toast - * relation. Does NOT decompress it, if stored external - * in compressed format. - * ---------- - */ -extern struct varlena *detoast_external_attr(struct varlena *attr); - -/* ---------- - * detoast_attr() - - * - * Fully detoasts one attribute, fetching and/or decompressing - * it as needed. - * ---------- - */ -extern struct varlena *detoast_attr(struct varlena *attr); - -/* ---------- - * detoast_attr_slice() - - * - * Fetches only the specified portion of an attribute. - * (Handles all cases for attribute storage) - * ---------- - */ -extern struct varlena *detoast_attr_slice(struct varlena *attr, - int32 sliceoffset, - int32 slicelength); - -/* ---------- - * toast_raw_datum_size - - * - * Return the raw (detoasted) size of a varlena datum - * ---------- - */ -extern Size toast_raw_datum_size(Datum value); - -/* ---------- - * toast_datum_size - - * - * Return the storage size of a varlena datum - * ---------- - */ -extern Size toast_datum_size(Datum value); - -#endif /* DETOAST_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/genam.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/genam.h deleted file mode 100644 index 134b20f1e..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/genam.h +++ /dev/null @@ -1,231 +0,0 @@ -/*------------------------------------------------------------------------- - * - * genam.h - * POSTGRES generalized index access method definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/genam.h - * - *------------------------------------------------------------------------- - */ -#ifndef GENAM_H -#define GENAM_H - -#include "access/sdir.h" -#include "access/skey.h" -#include "nodes/tidbitmap.h" -#include "storage/lockdefs.h" -#include "utils/relcache.h" -#include "utils/snapshot.h" - -/* We don't want this file to depend on execnodes.h. */ -struct IndexInfo; - -/* - * Struct for statistics returned by ambuild - */ -typedef struct IndexBuildResult -{ - double heap_tuples; /* # of tuples seen in parent table */ - double index_tuples; /* # of tuples inserted into index */ -} IndexBuildResult; - -/* - * Struct for input arguments passed to ambulkdelete and amvacuumcleanup - * - * num_heap_tuples is accurate only when estimated_count is false; - * otherwise it's just an estimate (currently, the estimate is the - * prior value of the relation's pg_class.reltuples field, so it could - * even be -1). It will always just be an estimate during ambulkdelete. - */ -typedef struct IndexVacuumInfo -{ - Relation index; /* the index being vacuumed */ - bool analyze_only; /* ANALYZE (without any actual vacuum) */ - bool report_progress; /* emit progress.h status reports */ - bool estimated_count; /* num_heap_tuples is an estimate */ - int message_level; /* ereport level for progress messages */ - double num_heap_tuples; /* tuples remaining in heap */ - BufferAccessStrategy strategy; /* access strategy for reads */ -} IndexVacuumInfo; - -/* - * Struct for statistics returned by ambulkdelete and amvacuumcleanup - * - * This struct is normally allocated by the first ambulkdelete call and then - * passed along through subsequent ones until amvacuumcleanup; however, - * amvacuumcleanup must be prepared to allocate it in the case where no - * ambulkdelete calls were made (because no tuples needed deletion). - * Note that an index AM could choose to return a larger struct - * of which this is just the first field; this provides a way for ambulkdelete - * to communicate additional private data to amvacuumcleanup. - * - * Note: pages_newly_deleted is the number of pages in the index that were - * deleted by the current vacuum operation. pages_deleted and pages_free - * refer to free space within the index file. - * - * Note: Some index AMs may compute num_index_tuples by reference to - * num_heap_tuples, in which case they should copy the estimated_count field - * from IndexVacuumInfo. - */ -typedef struct IndexBulkDeleteResult -{ - BlockNumber num_pages; /* pages remaining in index */ - bool estimated_count; /* num_index_tuples is an estimate */ - double num_index_tuples; /* tuples remaining */ - double tuples_removed; /* # removed during vacuum operation */ - BlockNumber pages_newly_deleted; /* # pages marked deleted by us */ - BlockNumber pages_deleted; /* # pages marked deleted (could be by us) */ - BlockNumber pages_free; /* # pages available for reuse */ -} IndexBulkDeleteResult; - -/* Typedef for callback function to determine if a tuple is bulk-deletable */ -typedef bool (*IndexBulkDeleteCallback) (ItemPointer itemptr, void *state); - -/* struct definitions appear in relscan.h */ -typedef struct IndexScanDescData *IndexScanDesc; -typedef struct SysScanDescData *SysScanDesc; - -typedef struct ParallelIndexScanDescData *ParallelIndexScanDesc; - -/* - * Enumeration specifying the type of uniqueness check to perform in - * index_insert(). - * - * UNIQUE_CHECK_YES is the traditional Postgres immediate check, possibly - * blocking to see if a conflicting transaction commits. - * - * For deferrable unique constraints, UNIQUE_CHECK_PARTIAL is specified at - * insertion time. The index AM should test if the tuple is unique, but - * should not throw error, block, or prevent the insertion if the tuple - * appears not to be unique. We'll recheck later when it is time for the - * constraint to be enforced. The AM must return true if the tuple is - * known unique, false if it is possibly non-unique. In the "true" case - * it is safe to omit the later recheck. - * - * When it is time to recheck the deferred constraint, a pseudo-insertion - * call is made with UNIQUE_CHECK_EXISTING. The tuple is already in the - * index in this case, so it should not be inserted again. Rather, just - * check for conflicting live tuples (possibly blocking). - */ -typedef enum IndexUniqueCheck -{ - UNIQUE_CHECK_NO, /* Don't do any uniqueness checking */ - UNIQUE_CHECK_YES, /* Enforce uniqueness at insertion time */ - UNIQUE_CHECK_PARTIAL, /* Test uniqueness, but no error */ - UNIQUE_CHECK_EXISTING /* Check if existing tuple is unique */ -} IndexUniqueCheck; - - -/* Nullable "ORDER BY col op const" distance */ -typedef struct IndexOrderByDistance -{ - double value; - bool isnull; -} IndexOrderByDistance; - -/* - * generalized index_ interface routines (in indexam.c) - */ - -/* - * IndexScanIsValid - * True iff the index scan is valid. - */ -#define IndexScanIsValid(scan) PointerIsValid(scan) - -extern Relation index_open(Oid relationId, LOCKMODE lockmode); -extern void index_close(Relation relation, LOCKMODE lockmode); - -extern bool index_insert(Relation indexRelation, - Datum *values, bool *isnull, - ItemPointer heap_t_ctid, - Relation heapRelation, - IndexUniqueCheck checkUnique, - bool indexUnchanged, - struct IndexInfo *indexInfo); - -extern IndexScanDesc index_beginscan(Relation heapRelation, - Relation indexRelation, - Snapshot snapshot, - int nkeys, int norderbys); -extern IndexScanDesc index_beginscan_bitmap(Relation indexRelation, - Snapshot snapshot, - int nkeys); -extern void index_rescan(IndexScanDesc scan, - ScanKey keys, int nkeys, - ScanKey orderbys, int norderbys); -extern void index_endscan(IndexScanDesc scan); -extern void index_markpos(IndexScanDesc scan); -extern void index_restrpos(IndexScanDesc scan); -extern Size index_parallelscan_estimate(Relation indexrel, Snapshot snapshot); -extern void index_parallelscan_initialize(Relation heaprel, Relation indexrel, - Snapshot snapshot, ParallelIndexScanDesc target); -extern void index_parallelrescan(IndexScanDesc scan); -extern IndexScanDesc index_beginscan_parallel(Relation heaprel, - Relation indexrel, int nkeys, int norderbys, - ParallelIndexScanDesc pscan); -extern ItemPointer index_getnext_tid(IndexScanDesc scan, - ScanDirection direction); -struct TupleTableSlot; -extern bool index_fetch_heap(IndexScanDesc scan, struct TupleTableSlot *slot); -extern bool index_getnext_slot(IndexScanDesc scan, ScanDirection direction, - struct TupleTableSlot *slot); -extern int64 index_getbitmap(IndexScanDesc scan, TIDBitmap *bitmap); - -extern IndexBulkDeleteResult *index_bulk_delete(IndexVacuumInfo *info, - IndexBulkDeleteResult *istat, - IndexBulkDeleteCallback callback, - void *callback_state); -extern IndexBulkDeleteResult *index_vacuum_cleanup(IndexVacuumInfo *info, - IndexBulkDeleteResult *istat); -extern bool index_can_return(Relation indexRelation, int attno); -extern RegProcedure index_getprocid(Relation irel, AttrNumber attnum, - uint16 procnum); -extern FmgrInfo *index_getprocinfo(Relation irel, AttrNumber attnum, - uint16 procnum); -extern void index_store_float8_orderby_distances(IndexScanDesc scan, - Oid *orderByTypes, - IndexOrderByDistance *distances, - bool recheckOrderBy); -extern bytea *index_opclass_options(Relation relation, AttrNumber attnum, - Datum attoptions, bool validate); - - -/* - * index access method support routines (in genam.c) - */ -extern IndexScanDesc RelationGetIndexScan(Relation indexRelation, - int nkeys, int norderbys); -extern void IndexScanEnd(IndexScanDesc scan); -extern char *BuildIndexValueDescription(Relation indexRelation, - Datum *values, bool *isnull); -extern TransactionId index_compute_xid_horizon_for_tuples(Relation irel, - Relation hrel, - Buffer ibuf, - OffsetNumber *itemnos, - int nitems); - -/* - * heap-or-index access to system catalogs (in genam.c) - */ -extern SysScanDesc systable_beginscan(Relation heapRelation, - Oid indexId, - bool indexOK, - Snapshot snapshot, - int nkeys, ScanKey key); -extern HeapTuple systable_getnext(SysScanDesc sysscan); -extern bool systable_recheck_tuple(SysScanDesc sysscan, HeapTuple tup); -extern void systable_endscan(SysScanDesc sysscan); -extern SysScanDesc systable_beginscan_ordered(Relation heapRelation, - Relation indexRelation, - Snapshot snapshot, - int nkeys, ScanKey key); -extern HeapTuple systable_getnext_ordered(SysScanDesc sysscan, - ScanDirection direction); -extern void systable_endscan_ordered(SysScanDesc sysscan); - -#endif /* GENAM_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/gin.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/gin.h deleted file mode 100644 index aacc665fd..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/gin.h +++ /dev/null @@ -1,78 +0,0 @@ -/*-------------------------------------------------------------------------- - * gin.h - * Public header file for Generalized Inverted Index access method. - * - * Copyright (c) 2006-2022, PostgreSQL Global Development Group - * - * src/include/access/gin.h - *-------------------------------------------------------------------------- - */ -#ifndef GIN_H -#define GIN_H - -#include "access/xlogreader.h" -#include "lib/stringinfo.h" -#include "storage/block.h" -#include "utils/relcache.h" - - -/* - * amproc indexes for inverted indexes. - */ -#define GIN_COMPARE_PROC 1 -#define GIN_EXTRACTVALUE_PROC 2 -#define GIN_EXTRACTQUERY_PROC 3 -#define GIN_CONSISTENT_PROC 4 -#define GIN_COMPARE_PARTIAL_PROC 5 -#define GIN_TRICONSISTENT_PROC 6 -#define GIN_OPTIONS_PROC 7 -#define GINNProcs 7 - -/* - * searchMode settings for extractQueryFn. - */ -#define GIN_SEARCH_MODE_DEFAULT 0 -#define GIN_SEARCH_MODE_INCLUDE_EMPTY 1 -#define GIN_SEARCH_MODE_ALL 2 -#define GIN_SEARCH_MODE_EVERYTHING 3 /* for internal use only */ - -/* - * GinStatsData represents stats data for planner use - */ -typedef struct GinStatsData -{ - BlockNumber nPendingPages; - BlockNumber nTotalPages; - BlockNumber nEntryPages; - BlockNumber nDataPages; - int64 nEntries; - int32 ginVersion; -} GinStatsData; - -/* - * A ternary value used by tri-consistent functions. - * - * This must be of the same size as a bool because some code will cast a - * pointer to a bool to a pointer to a GinTernaryValue. - */ -typedef char GinTernaryValue; - -#define GIN_FALSE 0 /* item is not present / does not match */ -#define GIN_TRUE 1 /* item is present / matches */ -#define GIN_MAYBE 2 /* don't know if item is present / don't know - * if matches */ - -#define DatumGetGinTernaryValue(X) ((GinTernaryValue)(X)) -#define GinTernaryValueGetDatum(X) ((Datum)(X)) -#define PG_RETURN_GIN_TERNARY_VALUE(x) return GinTernaryValueGetDatum(x) - -/* GUC parameters */ -extern PGDLLIMPORT int GinFuzzySearchLimit; -extern PGDLLIMPORT int gin_pending_list_limit; - -/* ginutil.c */ -extern void ginGetStats(Relation index, GinStatsData *stats); -extern void ginUpdateStats(Relation index, const GinStatsData *stats, - bool is_build); - -#endif /* GIN_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/htup.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/htup.h deleted file mode 100644 index a4bc7256e..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/htup.h +++ /dev/null @@ -1,89 +0,0 @@ -/*------------------------------------------------------------------------- - * - * htup.h - * POSTGRES heap tuple definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/htup.h - * - *------------------------------------------------------------------------- - */ -#ifndef HTUP_H -#define HTUP_H - -#include "storage/itemptr.h" - -/* typedefs and forward declarations for structs defined in htup_details.h */ - -typedef struct HeapTupleHeaderData HeapTupleHeaderData; - -typedef HeapTupleHeaderData *HeapTupleHeader; - -typedef struct MinimalTupleData MinimalTupleData; - -typedef MinimalTupleData *MinimalTuple; - - -/* - * HeapTupleData is an in-memory data structure that points to a tuple. - * - * There are several ways in which this data structure is used: - * - * * Pointer to a tuple in a disk buffer: t_data points directly into the - * buffer (which the code had better be holding a pin on, but this is not - * reflected in HeapTupleData itself). - * - * * Pointer to nothing: t_data is NULL. This is used as a failure indication - * in some functions. - * - * * Part of a palloc'd tuple: the HeapTupleData itself and the tuple - * form a single palloc'd chunk. t_data points to the memory location - * immediately following the HeapTupleData struct (at offset HEAPTUPLESIZE). - * This is the output format of heap_form_tuple and related routines. - * - * * Separately allocated tuple: t_data points to a palloc'd chunk that - * is not adjacent to the HeapTupleData. (This case is deprecated since - * it's difficult to tell apart from case #1. It should be used only in - * limited contexts where the code knows that case #1 will never apply.) - * - * * Separately allocated minimal tuple: t_data points MINIMAL_TUPLE_OFFSET - * bytes before the start of a MinimalTuple. As with the previous case, - * this can't be told apart from case #1 by inspection; code setting up - * or destroying this representation has to know what it's doing. - * - * t_len should always be valid, except in the pointer-to-nothing case. - * t_self and t_tableOid should be valid if the HeapTupleData points to - * a disk buffer, or if it represents a copy of a tuple on disk. They - * should be explicitly set invalid in manufactured tuples. - */ -typedef struct HeapTupleData -{ - uint32 t_len; /* length of *t_data */ - ItemPointerData t_self; /* SelfItemPointer */ - Oid t_tableOid; /* table the tuple came from */ -#define FIELDNO_HEAPTUPLEDATA_DATA 3 - HeapTupleHeader t_data; /* -> tuple header and data */ -} HeapTupleData; - -typedef HeapTupleData *HeapTuple; - -#define HEAPTUPLESIZE MAXALIGN(sizeof(HeapTupleData)) - -/* - * Accessor macros to be used with HeapTuple pointers. - */ -#define HeapTupleIsValid(tuple) PointerIsValid(tuple) - -/* HeapTupleHeader functions implemented in utils/time/combocid.c */ -extern CommandId HeapTupleHeaderGetCmin(HeapTupleHeader tup); -extern CommandId HeapTupleHeaderGetCmax(HeapTupleHeader tup); -extern void HeapTupleHeaderAdjustCmax(HeapTupleHeader tup, - CommandId *cmax, bool *iscombo); - -/* Prototype for HeapTupleHeader accessors in heapam.c */ -extern TransactionId HeapTupleGetUpdateXid(HeapTupleHeader tuple); - -#endif /* HTUP_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/htup_details.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/htup_details.h deleted file mode 100644 index 51a60eda0..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/htup_details.h +++ /dev/null @@ -1,807 +0,0 @@ -/*------------------------------------------------------------------------- - * - * htup_details.h - * POSTGRES heap tuple header definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/htup_details.h - * - *------------------------------------------------------------------------- - */ -#ifndef HTUP_DETAILS_H -#define HTUP_DETAILS_H - -#include "access/htup.h" -#include "access/transam.h" -#include "access/tupdesc.h" -#include "access/tupmacs.h" -#include "storage/bufpage.h" - -/* - * MaxTupleAttributeNumber limits the number of (user) columns in a tuple. - * The key limit on this value is that the size of the fixed overhead for - * a tuple, plus the size of the null-values bitmap (at 1 bit per column), - * plus MAXALIGN alignment, must fit into t_hoff which is uint8. On most - * machines the upper limit without making t_hoff wider would be a little - * over 1700. We use round numbers here and for MaxHeapAttributeNumber - * so that alterations in HeapTupleHeaderData layout won't change the - * supported max number of columns. - */ -#define MaxTupleAttributeNumber 1664 /* 8 * 208 */ - -/* - * MaxHeapAttributeNumber limits the number of (user) columns in a table. - * This should be somewhat less than MaxTupleAttributeNumber. It must be - * at least one less, else we will fail to do UPDATEs on a maximal-width - * table (because UPDATE has to form working tuples that include CTID). - * In practice we want some additional daylight so that we can gracefully - * support operations that add hidden "resjunk" columns, for example - * SELECT * FROM wide_table ORDER BY foo, bar, baz. - * In any case, depending on column data types you will likely be running - * into the disk-block-based limit on overall tuple size if you have more - * than a thousand or so columns. TOAST won't help. - */ -#define MaxHeapAttributeNumber 1600 /* 8 * 200 */ - -/* - * Heap tuple header. To avoid wasting space, the fields should be - * laid out in such a way as to avoid structure padding. - * - * Datums of composite types (row types) share the same general structure - * as on-disk tuples, so that the same routines can be used to build and - * examine them. However the requirements are slightly different: a Datum - * does not need any transaction visibility information, and it does need - * a length word and some embedded type information. We can achieve this - * by overlaying the xmin/cmin/xmax/cmax/xvac fields of a heap tuple - * with the fields needed in the Datum case. Typically, all tuples built - * in-memory will be initialized with the Datum fields; but when a tuple is - * about to be inserted in a table, the transaction fields will be filled, - * overwriting the datum fields. - * - * The overall structure of a heap tuple looks like: - * fixed fields (HeapTupleHeaderData struct) - * nulls bitmap (if HEAP_HASNULL is set in t_infomask) - * alignment padding (as needed to make user data MAXALIGN'd) - * object ID (if HEAP_HASOID_OLD is set in t_infomask, not created - * anymore) - * user data fields - * - * We store five "virtual" fields Xmin, Cmin, Xmax, Cmax, and Xvac in three - * physical fields. Xmin and Xmax are always really stored, but Cmin, Cmax - * and Xvac share a field. This works because we know that Cmin and Cmax - * are only interesting for the lifetime of the inserting and deleting - * transaction respectively. If a tuple is inserted and deleted in the same - * transaction, we store a "combo" command id that can be mapped to the real - * cmin and cmax, but only by use of local state within the originating - * backend. See combocid.c for more details. Meanwhile, Xvac is only set by - * old-style VACUUM FULL, which does not have any command sub-structure and so - * does not need either Cmin or Cmax. (This requires that old-style VACUUM - * FULL never try to move a tuple whose Cmin or Cmax is still interesting, - * ie, an insert-in-progress or delete-in-progress tuple.) - * - * A word about t_ctid: whenever a new tuple is stored on disk, its t_ctid - * is initialized with its own TID (location). If the tuple is ever updated, - * its t_ctid is changed to point to the replacement version of the tuple. Or - * if the tuple is moved from one partition to another, due to an update of - * the partition key, t_ctid is set to a special value to indicate that - * (see ItemPointerSetMovedPartitions). Thus, a tuple is the latest version - * of its row iff XMAX is invalid or - * t_ctid points to itself (in which case, if XMAX is valid, the tuple is - * either locked or deleted). One can follow the chain of t_ctid links - * to find the newest version of the row, unless it was moved to a different - * partition. Beware however that VACUUM might - * erase the pointed-to (newer) tuple before erasing the pointing (older) - * tuple. Hence, when following a t_ctid link, it is necessary to check - * to see if the referenced slot is empty or contains an unrelated tuple. - * Check that the referenced tuple has XMIN equal to the referencing tuple's - * XMAX to verify that it is actually the descendant version and not an - * unrelated tuple stored into a slot recently freed by VACUUM. If either - * check fails, one may assume that there is no live descendant version. - * - * t_ctid is sometimes used to store a speculative insertion token, instead - * of a real TID. A speculative token is set on a tuple that's being - * inserted, until the inserter is sure that it wants to go ahead with the - * insertion. Hence a token should only be seen on a tuple with an XMAX - * that's still in-progress, or invalid/aborted. The token is replaced with - * the tuple's real TID when the insertion is confirmed. One should never - * see a speculative insertion token while following a chain of t_ctid links, - * because they are not used on updates, only insertions. - * - * Following the fixed header fields, the nulls bitmap is stored (beginning - * at t_bits). The bitmap is *not* stored if t_infomask shows that there - * are no nulls in the tuple. If an OID field is present (as indicated by - * t_infomask), then it is stored just before the user data, which begins at - * the offset shown by t_hoff. Note that t_hoff must be a multiple of - * MAXALIGN. - */ - -typedef struct HeapTupleFields -{ - TransactionId t_xmin; /* inserting xact ID */ - TransactionId t_xmax; /* deleting or locking xact ID */ - - union - { - CommandId t_cid; /* inserting or deleting command ID, or both */ - TransactionId t_xvac; /* old-style VACUUM FULL xact ID */ - } t_field3; -} HeapTupleFields; - -typedef struct DatumTupleFields -{ - int32 datum_len_; /* varlena header (do not touch directly!) */ - - int32 datum_typmod; /* -1, or identifier of a record type */ - - Oid datum_typeid; /* composite type OID, or RECORDOID */ - - /* - * datum_typeid cannot be a domain over composite, only plain composite, - * even if the datum is meant as a value of a domain-over-composite type. - * This is in line with the general principle that CoerceToDomain does not - * change the physical representation of the base type value. - * - * Note: field ordering is chosen with thought that Oid might someday - * widen to 64 bits. - */ -} DatumTupleFields; - -struct HeapTupleHeaderData -{ - union - { - HeapTupleFields t_heap; - DatumTupleFields t_datum; - } t_choice; - - ItemPointerData t_ctid; /* current TID of this or newer tuple (or a - * speculative insertion token) */ - - /* Fields below here must match MinimalTupleData! */ - -#define FIELDNO_HEAPTUPLEHEADERDATA_INFOMASK2 2 - uint16 t_infomask2; /* number of attributes + various flags */ - -#define FIELDNO_HEAPTUPLEHEADERDATA_INFOMASK 3 - uint16 t_infomask; /* various flag bits, see below */ - -#define FIELDNO_HEAPTUPLEHEADERDATA_HOFF 4 - uint8 t_hoff; /* sizeof header incl. bitmap, padding */ - - /* ^ - 23 bytes - ^ */ - -#define FIELDNO_HEAPTUPLEHEADERDATA_BITS 5 - bits8 t_bits[FLEXIBLE_ARRAY_MEMBER]; /* bitmap of NULLs */ - - /* MORE DATA FOLLOWS AT END OF STRUCT */ -}; - -/* typedef appears in htup.h */ - -#define SizeofHeapTupleHeader offsetof(HeapTupleHeaderData, t_bits) - -/* - * information stored in t_infomask: - */ -#define HEAP_HASNULL 0x0001 /* has null attribute(s) */ -#define HEAP_HASVARWIDTH 0x0002 /* has variable-width attribute(s) */ -#define HEAP_HASEXTERNAL 0x0004 /* has external stored attribute(s) */ -#define HEAP_HASOID_OLD 0x0008 /* has an object-id field */ -#define HEAP_XMAX_KEYSHR_LOCK 0x0010 /* xmax is a key-shared locker */ -#define HEAP_COMBOCID 0x0020 /* t_cid is a combo CID */ -#define HEAP_XMAX_EXCL_LOCK 0x0040 /* xmax is exclusive locker */ -#define HEAP_XMAX_LOCK_ONLY 0x0080 /* xmax, if valid, is only a locker */ - - /* xmax is a shared locker */ -#define HEAP_XMAX_SHR_LOCK (HEAP_XMAX_EXCL_LOCK | HEAP_XMAX_KEYSHR_LOCK) - -#define HEAP_LOCK_MASK (HEAP_XMAX_SHR_LOCK | HEAP_XMAX_EXCL_LOCK | \ - HEAP_XMAX_KEYSHR_LOCK) -#define HEAP_XMIN_COMMITTED 0x0100 /* t_xmin committed */ -#define HEAP_XMIN_INVALID 0x0200 /* t_xmin invalid/aborted */ -#define HEAP_XMIN_FROZEN (HEAP_XMIN_COMMITTED|HEAP_XMIN_INVALID) -#define HEAP_XMAX_COMMITTED 0x0400 /* t_xmax committed */ -#define HEAP_XMAX_INVALID 0x0800 /* t_xmax invalid/aborted */ -#define HEAP_XMAX_IS_MULTI 0x1000 /* t_xmax is a MultiXactId */ -#define HEAP_UPDATED 0x2000 /* this is UPDATEd version of row */ -#define HEAP_MOVED_OFF 0x4000 /* moved to another place by pre-9.0 - * VACUUM FULL; kept for binary - * upgrade support */ -#define HEAP_MOVED_IN 0x8000 /* moved from another place by pre-9.0 - * VACUUM FULL; kept for binary - * upgrade support */ -#define HEAP_MOVED (HEAP_MOVED_OFF | HEAP_MOVED_IN) - -#define HEAP_XACT_MASK 0xFFF0 /* visibility-related bits */ - -/* - * A tuple is only locked (i.e. not updated by its Xmax) if the - * HEAP_XMAX_LOCK_ONLY bit is set; or, for pg_upgrade's sake, if the Xmax is - * not a multi and the EXCL_LOCK bit is set. - * - * See also HeapTupleHeaderIsOnlyLocked, which also checks for a possible - * aborted updater transaction. - * - * Beware of multiple evaluations of the argument. - */ -#define HEAP_XMAX_IS_LOCKED_ONLY(infomask) \ - (((infomask) & HEAP_XMAX_LOCK_ONLY) || \ - (((infomask) & (HEAP_XMAX_IS_MULTI | HEAP_LOCK_MASK)) == HEAP_XMAX_EXCL_LOCK)) - -/* - * A tuple that has HEAP_XMAX_IS_MULTI and HEAP_XMAX_LOCK_ONLY but neither of - * HEAP_XMAX_EXCL_LOCK and HEAP_XMAX_KEYSHR_LOCK must come from a tuple that was - * share-locked in 9.2 or earlier and then pg_upgrade'd. - * - * In 9.2 and prior, HEAP_XMAX_IS_MULTI was only set when there were multiple - * FOR SHARE lockers of that tuple. That set HEAP_XMAX_LOCK_ONLY (with a - * different name back then) but neither of HEAP_XMAX_EXCL_LOCK and - * HEAP_XMAX_KEYSHR_LOCK. That combination is no longer possible in 9.3 and - * up, so if we see that combination we know for certain that the tuple was - * locked in an earlier release; since all such lockers are gone (they cannot - * survive through pg_upgrade), such tuples can safely be considered not - * locked. - * - * We must not resolve such multixacts locally, because the result would be - * bogus, regardless of where they stand with respect to the current valid - * multixact range. - */ -#define HEAP_LOCKED_UPGRADED(infomask) \ -( \ - ((infomask) & HEAP_XMAX_IS_MULTI) != 0 && \ - ((infomask) & HEAP_XMAX_LOCK_ONLY) != 0 && \ - (((infomask) & (HEAP_XMAX_EXCL_LOCK | HEAP_XMAX_KEYSHR_LOCK)) == 0) \ -) - -/* - * Use these to test whether a particular lock is applied to a tuple - */ -#define HEAP_XMAX_IS_SHR_LOCKED(infomask) \ - (((infomask) & HEAP_LOCK_MASK) == HEAP_XMAX_SHR_LOCK) -#define HEAP_XMAX_IS_EXCL_LOCKED(infomask) \ - (((infomask) & HEAP_LOCK_MASK) == HEAP_XMAX_EXCL_LOCK) -#define HEAP_XMAX_IS_KEYSHR_LOCKED(infomask) \ - (((infomask) & HEAP_LOCK_MASK) == HEAP_XMAX_KEYSHR_LOCK) - -/* turn these all off when Xmax is to change */ -#define HEAP_XMAX_BITS (HEAP_XMAX_COMMITTED | HEAP_XMAX_INVALID | \ - HEAP_XMAX_IS_MULTI | HEAP_LOCK_MASK | HEAP_XMAX_LOCK_ONLY) - -/* - * information stored in t_infomask2: - */ -#define HEAP_NATTS_MASK 0x07FF /* 11 bits for number of attributes */ -/* bits 0x1800 are available */ -#define HEAP_KEYS_UPDATED 0x2000 /* tuple was updated and key cols - * modified, or tuple deleted */ -#define HEAP_HOT_UPDATED 0x4000 /* tuple was HOT-updated */ -#define HEAP_ONLY_TUPLE 0x8000 /* this is heap-only tuple */ - -#define HEAP2_XACT_MASK 0xE000 /* visibility-related bits */ - -/* - * HEAP_TUPLE_HAS_MATCH is a temporary flag used during hash joins. It is - * only used in tuples that are in the hash table, and those don't need - * any visibility information, so we can overlay it on a visibility flag - * instead of using up a dedicated bit. - */ -#define HEAP_TUPLE_HAS_MATCH HEAP_ONLY_TUPLE /* tuple has a join match */ - -/* - * HeapTupleHeader accessor macros - * - * Note: beware of multiple evaluations of "tup" argument. But the Set - * macros evaluate their other argument only once. - */ - -/* - * HeapTupleHeaderGetRawXmin returns the "raw" xmin field, which is the xid - * originally used to insert the tuple. However, the tuple might actually - * be frozen (via HeapTupleHeaderSetXminFrozen) in which case the tuple's xmin - * is visible to every snapshot. Prior to PostgreSQL 9.4, we actually changed - * the xmin to FrozenTransactionId, and that value may still be encountered - * on disk. - */ -#define HeapTupleHeaderGetRawXmin(tup) \ -( \ - (tup)->t_choice.t_heap.t_xmin \ -) - -#define HeapTupleHeaderGetXmin(tup) \ -( \ - HeapTupleHeaderXminFrozen(tup) ? \ - FrozenTransactionId : HeapTupleHeaderGetRawXmin(tup) \ -) - -#define HeapTupleHeaderSetXmin(tup, xid) \ -( \ - (tup)->t_choice.t_heap.t_xmin = (xid) \ -) - -#define HeapTupleHeaderXminCommitted(tup) \ -( \ - ((tup)->t_infomask & HEAP_XMIN_COMMITTED) != 0 \ -) - -#define HeapTupleHeaderXminInvalid(tup) \ -( \ - ((tup)->t_infomask & (HEAP_XMIN_COMMITTED|HEAP_XMIN_INVALID)) == \ - HEAP_XMIN_INVALID \ -) - -#define HeapTupleHeaderXminFrozen(tup) \ -( \ - ((tup)->t_infomask & (HEAP_XMIN_FROZEN)) == HEAP_XMIN_FROZEN \ -) - -#define HeapTupleHeaderSetXminCommitted(tup) \ -( \ - AssertMacro(!HeapTupleHeaderXminInvalid(tup)), \ - ((tup)->t_infomask |= HEAP_XMIN_COMMITTED) \ -) - -#define HeapTupleHeaderSetXminInvalid(tup) \ -( \ - AssertMacro(!HeapTupleHeaderXminCommitted(tup)), \ - ((tup)->t_infomask |= HEAP_XMIN_INVALID) \ -) - -#define HeapTupleHeaderSetXminFrozen(tup) \ -( \ - AssertMacro(!HeapTupleHeaderXminInvalid(tup)), \ - ((tup)->t_infomask |= HEAP_XMIN_FROZEN) \ -) - -/* - * HeapTupleHeaderGetRawXmax gets you the raw Xmax field. To find out the Xid - * that updated a tuple, you might need to resolve the MultiXactId if certain - * bits are set. HeapTupleHeaderGetUpdateXid checks those bits and takes care - * to resolve the MultiXactId if necessary. This might involve multixact I/O, - * so it should only be used if absolutely necessary. - */ -#define HeapTupleHeaderGetUpdateXid(tup) \ -( \ - (!((tup)->t_infomask & HEAP_XMAX_INVALID) && \ - ((tup)->t_infomask & HEAP_XMAX_IS_MULTI) && \ - !((tup)->t_infomask & HEAP_XMAX_LOCK_ONLY)) ? \ - HeapTupleGetUpdateXid(tup) \ - : \ - HeapTupleHeaderGetRawXmax(tup) \ -) - -#define HeapTupleHeaderGetRawXmax(tup) \ -( \ - (tup)->t_choice.t_heap.t_xmax \ -) - -#define HeapTupleHeaderSetXmax(tup, xid) \ -( \ - (tup)->t_choice.t_heap.t_xmax = (xid) \ -) - -/* - * HeapTupleHeaderGetRawCommandId will give you what's in the header whether - * it is useful or not. Most code should use HeapTupleHeaderGetCmin or - * HeapTupleHeaderGetCmax instead, but note that those Assert that you can - * get a legitimate result, ie you are in the originating transaction! - */ -#define HeapTupleHeaderGetRawCommandId(tup) \ -( \ - (tup)->t_choice.t_heap.t_field3.t_cid \ -) - -/* SetCmin is reasonably simple since we never need a combo CID */ -#define HeapTupleHeaderSetCmin(tup, cid) \ -do { \ - Assert(!((tup)->t_infomask & HEAP_MOVED)); \ - (tup)->t_choice.t_heap.t_field3.t_cid = (cid); \ - (tup)->t_infomask &= ~HEAP_COMBOCID; \ -} while (0) - -/* SetCmax must be used after HeapTupleHeaderAdjustCmax; see combocid.c */ -#define HeapTupleHeaderSetCmax(tup, cid, iscombo) \ -do { \ - Assert(!((tup)->t_infomask & HEAP_MOVED)); \ - (tup)->t_choice.t_heap.t_field3.t_cid = (cid); \ - if (iscombo) \ - (tup)->t_infomask |= HEAP_COMBOCID; \ - else \ - (tup)->t_infomask &= ~HEAP_COMBOCID; \ -} while (0) - -#define HeapTupleHeaderGetXvac(tup) \ -( \ - ((tup)->t_infomask & HEAP_MOVED) ? \ - (tup)->t_choice.t_heap.t_field3.t_xvac \ - : \ - InvalidTransactionId \ -) - -#define HeapTupleHeaderSetXvac(tup, xid) \ -do { \ - Assert((tup)->t_infomask & HEAP_MOVED); \ - (tup)->t_choice.t_heap.t_field3.t_xvac = (xid); \ -} while (0) - -#define HeapTupleHeaderIsSpeculative(tup) \ -( \ - (ItemPointerGetOffsetNumberNoCheck(&(tup)->t_ctid) == SpecTokenOffsetNumber) \ -) - -#define HeapTupleHeaderGetSpeculativeToken(tup) \ -( \ - AssertMacro(HeapTupleHeaderIsSpeculative(tup)), \ - ItemPointerGetBlockNumber(&(tup)->t_ctid) \ -) - -#define HeapTupleHeaderSetSpeculativeToken(tup, token) \ -( \ - ItemPointerSet(&(tup)->t_ctid, token, SpecTokenOffsetNumber) \ -) - -#define HeapTupleHeaderIndicatesMovedPartitions(tup) \ - ItemPointerIndicatesMovedPartitions(&(tup)->t_ctid) - -#define HeapTupleHeaderSetMovedPartitions(tup) \ - ItemPointerSetMovedPartitions(&(tup)->t_ctid) - -#define HeapTupleHeaderGetDatumLength(tup) \ - VARSIZE(tup) - -#define HeapTupleHeaderSetDatumLength(tup, len) \ - SET_VARSIZE(tup, len) - -#define HeapTupleHeaderGetTypeId(tup) \ -( \ - (tup)->t_choice.t_datum.datum_typeid \ -) - -#define HeapTupleHeaderSetTypeId(tup, typeid) \ -( \ - (tup)->t_choice.t_datum.datum_typeid = (typeid) \ -) - -#define HeapTupleHeaderGetTypMod(tup) \ -( \ - (tup)->t_choice.t_datum.datum_typmod \ -) - -#define HeapTupleHeaderSetTypMod(tup, typmod) \ -( \ - (tup)->t_choice.t_datum.datum_typmod = (typmod) \ -) - -/* - * Note that we stop considering a tuple HOT-updated as soon as it is known - * aborted or the would-be updating transaction is known aborted. For best - * efficiency, check tuple visibility before using this macro, so that the - * INVALID bits will be as up to date as possible. - */ -#define HeapTupleHeaderIsHotUpdated(tup) \ -( \ - ((tup)->t_infomask2 & HEAP_HOT_UPDATED) != 0 && \ - ((tup)->t_infomask & HEAP_XMAX_INVALID) == 0 && \ - !HeapTupleHeaderXminInvalid(tup) \ -) - -#define HeapTupleHeaderSetHotUpdated(tup) \ -( \ - (tup)->t_infomask2 |= HEAP_HOT_UPDATED \ -) - -#define HeapTupleHeaderClearHotUpdated(tup) \ -( \ - (tup)->t_infomask2 &= ~HEAP_HOT_UPDATED \ -) - -#define HeapTupleHeaderIsHeapOnly(tup) \ -( \ - ((tup)->t_infomask2 & HEAP_ONLY_TUPLE) != 0 \ -) - -#define HeapTupleHeaderSetHeapOnly(tup) \ -( \ - (tup)->t_infomask2 |= HEAP_ONLY_TUPLE \ -) - -#define HeapTupleHeaderClearHeapOnly(tup) \ -( \ - (tup)->t_infomask2 &= ~HEAP_ONLY_TUPLE \ -) - -#define HeapTupleHeaderHasMatch(tup) \ -( \ - ((tup)->t_infomask2 & HEAP_TUPLE_HAS_MATCH) != 0 \ -) - -#define HeapTupleHeaderSetMatch(tup) \ -( \ - (tup)->t_infomask2 |= HEAP_TUPLE_HAS_MATCH \ -) - -#define HeapTupleHeaderClearMatch(tup) \ -( \ - (tup)->t_infomask2 &= ~HEAP_TUPLE_HAS_MATCH \ -) - -#define HeapTupleHeaderGetNatts(tup) \ - ((tup)->t_infomask2 & HEAP_NATTS_MASK) - -#define HeapTupleHeaderSetNatts(tup, natts) \ -( \ - (tup)->t_infomask2 = ((tup)->t_infomask2 & ~HEAP_NATTS_MASK) | (natts) \ -) - -#define HeapTupleHeaderHasExternal(tup) \ - (((tup)->t_infomask & HEAP_HASEXTERNAL) != 0) - - -/* - * BITMAPLEN(NATTS) - - * Computes size of null bitmap given number of data columns. - */ -#define BITMAPLEN(NATTS) (((int)(NATTS) + 7) / 8) - -/* - * MaxHeapTupleSize is the maximum allowed size of a heap tuple, including - * header and MAXALIGN alignment padding. Basically it's BLCKSZ minus the - * other stuff that has to be on a disk page. Since heap pages use no - * "special space", there's no deduction for that. - * - * NOTE: we allow for the ItemId that must point to the tuple, ensuring that - * an otherwise-empty page can indeed hold a tuple of this size. Because - * ItemIds and tuples have different alignment requirements, don't assume that - * you can, say, fit 2 tuples of size MaxHeapTupleSize/2 on the same page. - */ -#define MaxHeapTupleSize (BLCKSZ - MAXALIGN(SizeOfPageHeaderData + sizeof(ItemIdData))) -#define MinHeapTupleSize MAXALIGN(SizeofHeapTupleHeader) - -/* - * MaxHeapTuplesPerPage is an upper bound on the number of tuples that can - * fit on one heap page. (Note that indexes could have more, because they - * use a smaller tuple header.) We arrive at the divisor because each tuple - * must be maxaligned, and it must have an associated line pointer. - * - * Note: with HOT, there could theoretically be more line pointers (not actual - * tuples) than this on a heap page. However we constrain the number of line - * pointers to this anyway, to avoid excessive line-pointer bloat and not - * require increases in the size of work arrays. - */ -#define MaxHeapTuplesPerPage \ - ((int) ((BLCKSZ - SizeOfPageHeaderData) / \ - (MAXALIGN(SizeofHeapTupleHeader) + sizeof(ItemIdData)))) - -/* - * MaxAttrSize is a somewhat arbitrary upper limit on the declared size of - * data fields of char(n) and similar types. It need not have anything - * directly to do with the *actual* upper limit of varlena values, which - * is currently 1Gb (see TOAST structures in postgres.h). I've set it - * at 10Mb which seems like a reasonable number --- tgl 8/6/00. - */ -#define MaxAttrSize (10 * 1024 * 1024) - - -/* - * MinimalTuple is an alternative representation that is used for transient - * tuples inside the executor, in places where transaction status information - * is not required, the tuple rowtype is known, and shaving off a few bytes - * is worthwhile because we need to store many tuples. The representation - * is chosen so that tuple access routines can work with either full or - * minimal tuples via a HeapTupleData pointer structure. The access routines - * see no difference, except that they must not access the transaction status - * or t_ctid fields because those aren't there. - * - * For the most part, MinimalTuples should be accessed via TupleTableSlot - * routines. These routines will prevent access to the "system columns" - * and thereby prevent accidental use of the nonexistent fields. - * - * MinimalTupleData contains a length word, some padding, and fields matching - * HeapTupleHeaderData beginning with t_infomask2. The padding is chosen so - * that offsetof(t_infomask2) is the same modulo MAXIMUM_ALIGNOF in both - * structs. This makes data alignment rules equivalent in both cases. - * - * When a minimal tuple is accessed via a HeapTupleData pointer, t_data is - * set to point MINIMAL_TUPLE_OFFSET bytes before the actual start of the - * minimal tuple --- that is, where a full tuple matching the minimal tuple's - * data would start. This trick is what makes the structs seem equivalent. - * - * Note that t_hoff is computed the same as in a full tuple, hence it includes - * the MINIMAL_TUPLE_OFFSET distance. t_len does not include that, however. - * - * MINIMAL_TUPLE_DATA_OFFSET is the offset to the first useful (non-pad) data - * other than the length word. tuplesort.c and tuplestore.c use this to avoid - * writing the padding to disk. - */ -#define MINIMAL_TUPLE_OFFSET \ - ((offsetof(HeapTupleHeaderData, t_infomask2) - sizeof(uint32)) / MAXIMUM_ALIGNOF * MAXIMUM_ALIGNOF) -#define MINIMAL_TUPLE_PADDING \ - ((offsetof(HeapTupleHeaderData, t_infomask2) - sizeof(uint32)) % MAXIMUM_ALIGNOF) -#define MINIMAL_TUPLE_DATA_OFFSET \ - offsetof(MinimalTupleData, t_infomask2) - -struct MinimalTupleData -{ - uint32 t_len; /* actual length of minimal tuple */ - - char mt_padding[MINIMAL_TUPLE_PADDING]; - - /* Fields below here must match HeapTupleHeaderData! */ - - uint16 t_infomask2; /* number of attributes + various flags */ - - uint16 t_infomask; /* various flag bits, see below */ - - uint8 t_hoff; /* sizeof header incl. bitmap, padding */ - - /* ^ - 23 bytes - ^ */ - - bits8 t_bits[FLEXIBLE_ARRAY_MEMBER]; /* bitmap of NULLs */ - - /* MORE DATA FOLLOWS AT END OF STRUCT */ -}; - -/* typedef appears in htup.h */ - -#define SizeofMinimalTupleHeader offsetof(MinimalTupleData, t_bits) - - -/* - * GETSTRUCT - given a HeapTuple pointer, return address of the user data - */ -#define GETSTRUCT(TUP) ((char *) ((TUP)->t_data) + (TUP)->t_data->t_hoff) - -/* - * Accessor macros to be used with HeapTuple pointers. - */ - -#define HeapTupleHasNulls(tuple) \ - (((tuple)->t_data->t_infomask & HEAP_HASNULL) != 0) - -#define HeapTupleNoNulls(tuple) \ - (!((tuple)->t_data->t_infomask & HEAP_HASNULL)) - -#define HeapTupleHasVarWidth(tuple) \ - (((tuple)->t_data->t_infomask & HEAP_HASVARWIDTH) != 0) - -#define HeapTupleAllFixed(tuple) \ - (!((tuple)->t_data->t_infomask & HEAP_HASVARWIDTH)) - -#define HeapTupleHasExternal(tuple) \ - (((tuple)->t_data->t_infomask & HEAP_HASEXTERNAL) != 0) - -#define HeapTupleIsHotUpdated(tuple) \ - HeapTupleHeaderIsHotUpdated((tuple)->t_data) - -#define HeapTupleSetHotUpdated(tuple) \ - HeapTupleHeaderSetHotUpdated((tuple)->t_data) - -#define HeapTupleClearHotUpdated(tuple) \ - HeapTupleHeaderClearHotUpdated((tuple)->t_data) - -#define HeapTupleIsHeapOnly(tuple) \ - HeapTupleHeaderIsHeapOnly((tuple)->t_data) - -#define HeapTupleSetHeapOnly(tuple) \ - HeapTupleHeaderSetHeapOnly((tuple)->t_data) - -#define HeapTupleClearHeapOnly(tuple) \ - HeapTupleHeaderClearHeapOnly((tuple)->t_data) - -/* prototypes for functions in common/heaptuple.c */ -extern Size heap_compute_data_size(TupleDesc tupleDesc, - Datum *values, bool *isnull); -extern void heap_fill_tuple(TupleDesc tupleDesc, - Datum *values, bool *isnull, - char *data, Size data_size, - uint16 *infomask, bits8 *bit); -extern bool heap_attisnull(HeapTuple tup, int attnum, TupleDesc tupleDesc); -extern Datum nocachegetattr(HeapTuple tup, int attnum, - TupleDesc att); -extern Datum heap_getsysattr(HeapTuple tup, int attnum, TupleDesc tupleDesc, - bool *isnull); -extern Datum getmissingattr(TupleDesc tupleDesc, - int attnum, bool *isnull); -extern HeapTuple heap_copytuple(HeapTuple tuple); -extern void heap_copytuple_with_tuple(HeapTuple src, HeapTuple dest); -extern Datum heap_copy_tuple_as_datum(HeapTuple tuple, TupleDesc tupleDesc); -extern HeapTuple heap_form_tuple(TupleDesc tupleDescriptor, - Datum *values, bool *isnull); -extern HeapTuple heap_modify_tuple(HeapTuple tuple, - TupleDesc tupleDesc, - Datum *replValues, - bool *replIsnull, - bool *doReplace); -extern HeapTuple heap_modify_tuple_by_cols(HeapTuple tuple, - TupleDesc tupleDesc, - int nCols, - int *replCols, - Datum *replValues, - bool *replIsnull); -extern void heap_deform_tuple(HeapTuple tuple, TupleDesc tupleDesc, - Datum *values, bool *isnull); -extern void heap_freetuple(HeapTuple htup); -extern MinimalTuple heap_form_minimal_tuple(TupleDesc tupleDescriptor, - Datum *values, bool *isnull); -extern void heap_free_minimal_tuple(MinimalTuple mtup); -extern MinimalTuple heap_copy_minimal_tuple(MinimalTuple mtup); -extern HeapTuple heap_tuple_from_minimal_tuple(MinimalTuple mtup); -extern MinimalTuple minimal_tuple_from_heap_tuple(HeapTuple htup); -extern size_t varsize_any(void *p); -extern HeapTuple heap_expand_tuple(HeapTuple sourceTuple, TupleDesc tupleDesc); -extern MinimalTuple minimal_expand_tuple(HeapTuple sourceTuple, TupleDesc tupleDesc); - -#ifndef FRONTEND -/* - * fastgetattr - * Fetch a user attribute's value as a Datum (might be either a - * value, or a pointer into the data area of the tuple). - * - * This must not be used when a system attribute might be requested. - * Furthermore, the passed attnum MUST be valid. Use heap_getattr() - * instead, if in doubt. - * - * This gets called many times, so we macro the cacheable and NULL - * lookups, and call nocachegetattr() for the rest. - */ -static inline Datum -fastgetattr(HeapTuple tup, int attnum, TupleDesc tupleDesc, bool *isnull) -{ - Assert(attnum > 0); - - *isnull = false; - if (HeapTupleNoNulls(tup)) - { - Form_pg_attribute att; - - att = TupleDescAttr(tupleDesc, attnum - 1); - if (att->attcacheoff >= 0) - return fetchatt(att, (char *) tup->t_data + tup->t_data->t_hoff + - att->attcacheoff); - else - return nocachegetattr(tup, attnum, tupleDesc); - } - else - { - if (att_isnull(attnum - 1, tup->t_data->t_bits)) - { - *isnull = true; - return (Datum) NULL; - } - else - return nocachegetattr(tup, attnum, tupleDesc); - } -} - -/* - * heap_getattr - * Extract an attribute of a heap tuple and return it as a Datum. - * This works for either system or user attributes. The given attnum - * is properly range-checked. - * - * If the field in question has a NULL value, we return a zero Datum - * and set *isnull == true. Otherwise, we set *isnull == false. - * - * is the pointer to the heap tuple. is the attribute - * number of the column (field) caller wants. is a - * pointer to the structure describing the row and all its fields. - * - */ -static inline Datum -heap_getattr(HeapTuple tup, int attnum, TupleDesc tupleDesc, bool *isnull) -{ - if (attnum > 0) - { - if (attnum > (int) HeapTupleHeaderGetNatts(tup->t_data)) - return getmissingattr(tupleDesc, attnum, isnull); - else - return fastgetattr(tup, attnum, tupleDesc, isnull); - } - else - return heap_getsysattr(tup, attnum, tupleDesc, isnull); -} -#endif /* FRONTEND */ - -#endif /* HTUP_DETAILS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/itup.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/itup.h deleted file mode 100644 index 7458bc2fd..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/itup.h +++ /dev/null @@ -1,167 +0,0 @@ -/*------------------------------------------------------------------------- - * - * itup.h - * POSTGRES index tuple definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/itup.h - * - *------------------------------------------------------------------------- - */ -#ifndef ITUP_H -#define ITUP_H - -#include "access/tupdesc.h" -#include "access/tupmacs.h" -#include "storage/bufpage.h" -#include "storage/itemptr.h" - -/* - * Index tuple header structure - * - * All index tuples start with IndexTupleData. If the HasNulls bit is set, - * this is followed by an IndexAttributeBitMapData. The index attribute - * values follow, beginning at a MAXALIGN boundary. - * - * Note that the space allocated for the bitmap does not vary with the number - * of attributes; that is because we don't have room to store the number of - * attributes in the header. Given the MAXALIGN constraint there's no space - * savings to be had anyway, for usual values of INDEX_MAX_KEYS. - */ - -typedef struct IndexTupleData -{ - ItemPointerData t_tid; /* reference TID to heap tuple */ - - /* --------------- - * t_info is laid out in the following fashion: - * - * 15th (high) bit: has nulls - * 14th bit: has var-width attributes - * 13th bit: AM-defined meaning - * 12-0 bit: size of tuple - * --------------- - */ - - unsigned short t_info; /* various info about tuple */ - -} IndexTupleData; /* MORE DATA FOLLOWS AT END OF STRUCT */ - -typedef IndexTupleData *IndexTuple; - -typedef struct IndexAttributeBitMapData -{ - bits8 bits[(INDEX_MAX_KEYS + 8 - 1) / 8]; -} IndexAttributeBitMapData; - -typedef IndexAttributeBitMapData * IndexAttributeBitMap; - -/* - * t_info manipulation macros - */ -#define INDEX_SIZE_MASK 0x1FFF -#define INDEX_AM_RESERVED_BIT 0x2000 /* reserved for index-AM specific - * usage */ -#define INDEX_VAR_MASK 0x4000 -#define INDEX_NULL_MASK 0x8000 - -#define IndexTupleSize(itup) ((Size) ((itup)->t_info & INDEX_SIZE_MASK)) -#define IndexTupleHasNulls(itup) ((((IndexTuple) (itup))->t_info & INDEX_NULL_MASK)) -#define IndexTupleHasVarwidths(itup) ((((IndexTuple) (itup))->t_info & INDEX_VAR_MASK)) - - -/* - * Takes an infomask as argument (primarily because this needs to be usable - * at index_form_tuple time so enough space is allocated). - */ -#define IndexInfoFindDataOffset(t_info) \ -( \ - (!((t_info) & INDEX_NULL_MASK)) ? \ - ( \ - (Size)MAXALIGN(sizeof(IndexTupleData)) \ - ) \ - : \ - ( \ - (Size)MAXALIGN(sizeof(IndexTupleData) + sizeof(IndexAttributeBitMapData)) \ - ) \ -) - -/* ---------------- - * index_getattr - * - * This gets called many times, so we macro the cacheable and NULL - * lookups, and call nocache_index_getattr() for the rest. - * - * ---------------- - */ -#define index_getattr(tup, attnum, tupleDesc, isnull) \ -( \ - AssertMacro(PointerIsValid(isnull) && (attnum) > 0), \ - *(isnull) = false, \ - !IndexTupleHasNulls(tup) ? \ - ( \ - TupleDescAttr((tupleDesc), (attnum)-1)->attcacheoff >= 0 ? \ - ( \ - fetchatt(TupleDescAttr((tupleDesc), (attnum)-1), \ - (char *) (tup) + IndexInfoFindDataOffset((tup)->t_info) \ - + TupleDescAttr((tupleDesc), (attnum)-1)->attcacheoff) \ - ) \ - : \ - nocache_index_getattr((tup), (attnum), (tupleDesc)) \ - ) \ - : \ - ( \ - (att_isnull((attnum)-1, (char *)(tup) + sizeof(IndexTupleData))) ? \ - ( \ - *(isnull) = true, \ - (Datum)NULL \ - ) \ - : \ - ( \ - nocache_index_getattr((tup), (attnum), (tupleDesc)) \ - ) \ - ) \ -) - -/* - * MaxIndexTuplesPerPage is an upper bound on the number of tuples that can - * fit on one index page. An index tuple must have either data or a null - * bitmap, so we can safely assume it's at least 1 byte bigger than a bare - * IndexTupleData struct. We arrive at the divisor because each tuple - * must be maxaligned, and it must have an associated line pointer. - * - * To be index-type-independent, this does not account for any special space - * on the page, and is thus conservative. - * - * Note: in btree non-leaf pages, the first tuple has no key (it's implicitly - * minus infinity), thus breaking the "at least 1 byte bigger" assumption. - * On such a page, N tuples could take one MAXALIGN quantum less space than - * estimated here, seemingly allowing one more tuple than estimated here. - * But such a page always has at least MAXALIGN special space, so we're safe. - */ -#define MaxIndexTuplesPerPage \ - ((int) ((BLCKSZ - SizeOfPageHeaderData) / \ - (MAXALIGN(sizeof(IndexTupleData) + 1) + sizeof(ItemIdData)))) - - -/* routines in indextuple.c */ -extern IndexTuple index_form_tuple(TupleDesc tupleDescriptor, - Datum *values, bool *isnull); -extern IndexTuple index_form_tuple_context(TupleDesc tupleDescriptor, - Datum *values, bool *isnull, - MemoryContext context); -extern Datum nocache_index_getattr(IndexTuple tup, int attnum, - TupleDesc tupleDesc); -extern void index_deform_tuple(IndexTuple tup, TupleDesc tupleDescriptor, - Datum *values, bool *isnull); -extern void index_deform_tuple_internal(TupleDesc tupleDescriptor, - Datum *values, bool *isnull, - char *tp, bits8 *bp, int hasnulls); -extern IndexTuple CopyIndexTuple(IndexTuple source); -extern IndexTuple index_truncate_tuple(TupleDesc sourceDescriptor, - IndexTuple source, int leavenatts); - -#endif /* ITUP_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/parallel.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/parallel.h deleted file mode 100644 index 983841d45..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/parallel.h +++ /dev/null @@ -1,82 +0,0 @@ -/*------------------------------------------------------------------------- - * - * parallel.h - * Infrastructure for launching parallel workers - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/parallel.h - * - *------------------------------------------------------------------------- - */ - -#ifndef PARALLEL_H -#define PARALLEL_H - -#include "access/xlogdefs.h" -#include "lib/ilist.h" -#include "postmaster/bgworker.h" -#include "storage/shm_mq.h" -#include "storage/shm_toc.h" - -typedef void (*parallel_worker_main_type) (dsm_segment *seg, shm_toc *toc); - -typedef struct ParallelWorkerInfo -{ - BackgroundWorkerHandle *bgwhandle; - shm_mq_handle *error_mqh; - int32 pid; -} ParallelWorkerInfo; - -typedef struct ParallelContext -{ - dlist_node node; - SubTransactionId subid; - int nworkers; /* Maximum number of workers to launch */ - int nworkers_to_launch; /* Actual number of workers to launch */ - int nworkers_launched; - char *library_name; - char *function_name; - ErrorContextCallback *error_context_stack; - shm_toc_estimator estimator; - dsm_segment *seg; - void *private_memory; - shm_toc *toc; - ParallelWorkerInfo *worker; - int nknown_attached_workers; - bool *known_attached_workers; -} ParallelContext; - -typedef struct ParallelWorkerContext -{ - dsm_segment *seg; - shm_toc *toc; -} ParallelWorkerContext; - -extern PGDLLIMPORT volatile bool ParallelMessagePending; -extern PGDLLIMPORT int ParallelWorkerNumber; -extern PGDLLIMPORT bool InitializingParallelWorker; - -#define IsParallelWorker() (ParallelWorkerNumber >= 0) - -extern ParallelContext *CreateParallelContext(const char *library_name, - const char *function_name, int nworkers); -extern void InitializeParallelDSM(ParallelContext *pcxt); -extern void ReinitializeParallelDSM(ParallelContext *pcxt); -extern void ReinitializeParallelWorkers(ParallelContext *pcxt, int nworkers_to_launch); -extern void LaunchParallelWorkers(ParallelContext *pcxt); -extern void WaitForParallelWorkersToAttach(ParallelContext *pcxt); -extern void WaitForParallelWorkersToFinish(ParallelContext *pcxt); -extern void DestroyParallelContext(ParallelContext *pcxt); -extern bool ParallelContextActive(void); - -extern void HandleParallelMessageInterrupt(void); -extern void HandleParallelMessages(void); -extern void AtEOXact_Parallel(bool isCommit); -extern void AtEOSubXact_Parallel(bool isCommit, SubTransactionId mySubId); -extern void ParallelWorkerReportLastRecEnd(XLogRecPtr last_xlog_end); - -extern void ParallelWorkerMain(Datum main_arg); - -#endif /* PARALLEL_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/printtup.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/printtup.h deleted file mode 100644 index 971a74cf2..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/printtup.h +++ /dev/null @@ -1,35 +0,0 @@ -/*------------------------------------------------------------------------- - * - * printtup.h - * - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/printtup.h - * - *------------------------------------------------------------------------- - */ -#ifndef PRINTTUP_H -#define PRINTTUP_H - -#include "utils/portal.h" - -extern DestReceiver *printtup_create_DR(CommandDest dest); - -extern void SetRemoteDestReceiverParams(DestReceiver *self, Portal portal); - -extern void SendRowDescriptionMessage(StringInfo buf, - TupleDesc typeinfo, List *targetlist, int16 *formats); - -extern void debugStartup(DestReceiver *self, int operation, - TupleDesc typeinfo); -extern bool debugtup(TupleTableSlot *slot, DestReceiver *self); - -/* XXX these are really in executor/spi.c */ -extern void spi_dest_startup(DestReceiver *self, int operation, - TupleDesc typeinfo); -extern bool spi_printtup(TupleTableSlot *slot, DestReceiver *self); - -#endif /* PRINTTUP_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/relation.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/relation.h deleted file mode 100644 index d3627931f..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/relation.h +++ /dev/null @@ -1,28 +0,0 @@ -/*------------------------------------------------------------------------- - * - * relation.h - * Generic relation related routines. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/relation.h - * - *------------------------------------------------------------------------- - */ -#ifndef ACCESS_RELATION_H -#define ACCESS_RELATION_H - -#include "nodes/primnodes.h" -#include "storage/lockdefs.h" -#include "utils/relcache.h" - -extern Relation relation_open(Oid relationId, LOCKMODE lockmode); -extern Relation try_relation_open(Oid relationId, LOCKMODE lockmode); -extern Relation relation_openrv(const RangeVar *relation, LOCKMODE lockmode); -extern Relation relation_openrv_extended(const RangeVar *relation, - LOCKMODE lockmode, bool missing_ok); -extern void relation_close(Relation relation, LOCKMODE lockmode); - -#endif /* ACCESS_RELATION_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/relscan.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/relscan.h deleted file mode 100644 index 53a93ccbe..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/relscan.h +++ /dev/null @@ -1,191 +0,0 @@ -/*------------------------------------------------------------------------- - * - * relscan.h - * POSTGRES relation scan descriptor definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/relscan.h - * - *------------------------------------------------------------------------- - */ -#ifndef RELSCAN_H -#define RELSCAN_H - -#include "access/htup_details.h" -#include "access/itup.h" -#include "port/atomics.h" -#include "storage/buf.h" -#include "storage/spin.h" -#include "utils/relcache.h" - - -struct ParallelTableScanDescData; - -/* - * Generic descriptor for table scans. This is the base-class for table scans, - * which needs to be embedded in the scans of individual AMs. - */ -typedef struct TableScanDescData -{ - /* scan parameters */ - Relation rs_rd; /* heap relation descriptor */ - struct SnapshotData *rs_snapshot; /* snapshot to see */ - int rs_nkeys; /* number of scan keys */ - struct ScanKeyData *rs_key; /* array of scan key descriptors */ - - /* Range of ItemPointers for table_scan_getnextslot_tidrange() to scan. */ - ItemPointerData rs_mintid; - ItemPointerData rs_maxtid; - - /* - * Information about type and behaviour of the scan, a bitmask of members - * of the ScanOptions enum (see tableam.h). - */ - uint32 rs_flags; - - struct ParallelTableScanDescData *rs_parallel; /* parallel scan - * information */ -} TableScanDescData; -typedef struct TableScanDescData *TableScanDesc; - -/* - * Shared state for parallel table scan. - * - * Each backend participating in a parallel table scan has its own - * TableScanDesc in backend-private memory, and those objects all contain a - * pointer to this structure. The information here must be sufficient to - * properly initialize each new TableScanDesc as workers join the scan, and it - * must act as a information what to scan for those workers. - */ -typedef struct ParallelTableScanDescData -{ - Oid phs_relid; /* OID of relation to scan */ - bool phs_syncscan; /* report location to syncscan logic? */ - bool phs_snapshot_any; /* SnapshotAny, not phs_snapshot_data? */ - Size phs_snapshot_off; /* data for snapshot */ -} ParallelTableScanDescData; -typedef struct ParallelTableScanDescData *ParallelTableScanDesc; - -/* - * Shared state for parallel table scans, for block oriented storage. - */ -typedef struct ParallelBlockTableScanDescData -{ - ParallelTableScanDescData base; - - BlockNumber phs_nblocks; /* # blocks in relation at start of scan */ - slock_t phs_mutex; /* mutual exclusion for setting startblock */ - BlockNumber phs_startblock; /* starting block number */ - pg_atomic_uint64 phs_nallocated; /* number of blocks allocated to - * workers so far. */ -} ParallelBlockTableScanDescData; -typedef struct ParallelBlockTableScanDescData *ParallelBlockTableScanDesc; - -/* - * Per backend state for parallel table scan, for block-oriented storage. - */ -typedef struct ParallelBlockTableScanWorkerData -{ - uint64 phsw_nallocated; /* Current # of blocks into the scan */ - uint32 phsw_chunk_remaining; /* # blocks left in this chunk */ - uint32 phsw_chunk_size; /* The number of blocks to allocate in - * each I/O chunk for the scan */ -} ParallelBlockTableScanWorkerData; -typedef struct ParallelBlockTableScanWorkerData *ParallelBlockTableScanWorker; - -/* - * Base class for fetches from a table via an index. This is the base-class - * for such scans, which needs to be embedded in the respective struct for - * individual AMs. - */ -typedef struct IndexFetchTableData -{ - Relation rel; -} IndexFetchTableData; - -/* - * We use the same IndexScanDescData structure for both amgettuple-based - * and amgetbitmap-based index scans. Some fields are only relevant in - * amgettuple-based scans. - */ -typedef struct IndexScanDescData -{ - /* scan parameters */ - Relation heapRelation; /* heap relation descriptor, or NULL */ - Relation indexRelation; /* index relation descriptor */ - struct SnapshotData *xs_snapshot; /* snapshot to see */ - int numberOfKeys; /* number of index qualifier conditions */ - int numberOfOrderBys; /* number of ordering operators */ - struct ScanKeyData *keyData; /* array of index qualifier descriptors */ - struct ScanKeyData *orderByData; /* array of ordering op descriptors */ - bool xs_want_itup; /* caller requests index tuples */ - bool xs_temp_snap; /* unregister snapshot at scan end? */ - - /* signaling to index AM about killing index tuples */ - bool kill_prior_tuple; /* last-returned tuple is dead */ - bool ignore_killed_tuples; /* do not return killed entries */ - bool xactStartedInRecovery; /* prevents killing/seeing killed - * tuples */ - - /* index access method's private state */ - void *opaque; /* access-method-specific info */ - - /* - * In an index-only scan, a successful amgettuple call must fill either - * xs_itup (and xs_itupdesc) or xs_hitup (and xs_hitupdesc) to provide the - * data returned by the scan. It can fill both, in which case the heap - * format will be used. - */ - IndexTuple xs_itup; /* index tuple returned by AM */ - struct TupleDescData *xs_itupdesc; /* rowtype descriptor of xs_itup */ - HeapTuple xs_hitup; /* index data returned by AM, as HeapTuple */ - struct TupleDescData *xs_hitupdesc; /* rowtype descriptor of xs_hitup */ - - ItemPointerData xs_heaptid; /* result */ - bool xs_heap_continue; /* T if must keep walking, potential - * further results */ - IndexFetchTableData *xs_heapfetch; - - bool xs_recheck; /* T means scan keys must be rechecked */ - - /* - * When fetching with an ordering operator, the values of the ORDER BY - * expressions of the last returned tuple, according to the index. If - * xs_recheckorderby is true, these need to be rechecked just like the - * scan keys, and the values returned here are a lower-bound on the actual - * values. - */ - Datum *xs_orderbyvals; - bool *xs_orderbynulls; - bool xs_recheckorderby; - - /* parallel index scan information, in shared memory */ - struct ParallelIndexScanDescData *parallel_scan; -} IndexScanDescData; - -/* Generic structure for parallel scans */ -typedef struct ParallelIndexScanDescData -{ - Oid ps_relid; - Oid ps_indexid; - Size ps_offset; /* Offset in bytes of am specific structure */ - char ps_snapshot_data[FLEXIBLE_ARRAY_MEMBER]; -} ParallelIndexScanDescData; - -struct TupleTableSlot; - -/* Struct for storage-or-index scans of system tables */ -typedef struct SysScanDescData -{ - Relation heap_rel; /* catalog being scanned */ - Relation irel; /* NULL if doing heap scan */ - struct TableScanDescData *scan; /* only valid in storage-scan case */ - struct IndexScanDescData *iscan; /* only valid in index-scan case */ - struct SnapshotData *snapshot; /* snapshot to unregister at end of scan */ - struct TupleTableSlot *slot; -} SysScanDescData; - -#endif /* RELSCAN_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/rmgr.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/rmgr.h deleted file mode 100644 index 3b6a497e1..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/rmgr.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * rmgr.h - * - * Resource managers definition - * - * src/include/access/rmgr.h - */ -#ifndef RMGR_H -#define RMGR_H - -typedef uint8 RmgrId; - -/* - * Built-in resource managers - * - * The actual numerical values for each rmgr ID are defined by the order - * of entries in rmgrlist.h. - * - * Note: RM_MAX_ID must fit in RmgrId; widening that type will affect the XLOG - * file format. - */ -#define PG_RMGR(symname,name,redo,desc,identify,startup,cleanup,mask,decode) \ - symname, - -typedef enum RmgrIds -{ -#include "access/rmgrlist.h" - RM_NEXT_ID -} RmgrIds; - -#undef PG_RMGR - -#define RM_MAX_ID UINT8_MAX -#define RM_MAX_BUILTIN_ID (RM_NEXT_ID - 1) -#define RM_MIN_CUSTOM_ID 128 -#define RM_MAX_CUSTOM_ID UINT8_MAX -#define RM_N_IDS (UINT8_MAX + 1) -#define RM_N_BUILTIN_IDS (RM_MAX_BUILTIN_ID + 1) -#define RM_N_CUSTOM_IDS (RM_MAX_CUSTOM_ID - RM_MIN_CUSTOM_ID + 1) - -static inline bool -RmgrIdIsBuiltin(int rmid) -{ - return rmid <= RM_MAX_BUILTIN_ID; -} - -static inline bool -RmgrIdIsCustom(int rmid) -{ - return rmid >= RM_MIN_CUSTOM_ID && rmid <= RM_MAX_CUSTOM_ID; -} - -#define RmgrIdIsValid(rmid) (RmgrIdIsBuiltin((rmid)) || RmgrIdIsCustom((rmid))) - -/* - * RmgrId to use for extensions that require an RmgrId, but are still in - * development and have not reserved their own unique RmgrId yet. See: - * https://wiki.postgresql.org/wiki/CustomWALResourceManagers - */ -#define RM_EXPERIMENTAL_ID 128 - -#endif /* RMGR_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/rmgrlist.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/rmgrlist.h deleted file mode 100644 index 9a74721c9..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/rmgrlist.h +++ /dev/null @@ -1,49 +0,0 @@ -/*--------------------------------------------------------------------------- - * rmgrlist.h - * - * The resource manager list is kept in its own source file for possible - * use by automatic tools. The exact representation of a rmgr is determined - * by the PG_RMGR macro, which is not defined in this file; it can be - * defined by the caller for special purposes. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/rmgrlist.h - *--------------------------------------------------------------------------- - */ - -/* there is deliberately not an #ifndef RMGRLIST_H here */ - -/* - * List of resource manager entries. Note that order of entries defines the - * numerical values of each rmgr's ID, which is stored in WAL records. New - * entries should be added at the end, to avoid changing IDs of existing - * entries. - * - * Changes to this list possibly need an XLOG_PAGE_MAGIC bump. - */ - -/* symbol name, textual name, redo, desc, identify, startup, cleanup */ -PG_RMGR(RM_XLOG_ID, "XLOG", xlog_redo, xlog_desc, xlog_identify, NULL, NULL, NULL, xlog_decode) -PG_RMGR(RM_XACT_ID, "Transaction", xact_redo, xact_desc, xact_identify, NULL, NULL, NULL, xact_decode) -PG_RMGR(RM_SMGR_ID, "Storage", smgr_redo, smgr_desc, smgr_identify, NULL, NULL, NULL, NULL) -PG_RMGR(RM_CLOG_ID, "CLOG", clog_redo, clog_desc, clog_identify, NULL, NULL, NULL, NULL) -PG_RMGR(RM_DBASE_ID, "Database", dbase_redo, dbase_desc, dbase_identify, NULL, NULL, NULL, NULL) -PG_RMGR(RM_TBLSPC_ID, "Tablespace", tblspc_redo, tblspc_desc, tblspc_identify, NULL, NULL, NULL, NULL) -PG_RMGR(RM_MULTIXACT_ID, "MultiXact", multixact_redo, multixact_desc, multixact_identify, NULL, NULL, NULL, NULL) -PG_RMGR(RM_RELMAP_ID, "RelMap", relmap_redo, relmap_desc, relmap_identify, NULL, NULL, NULL, NULL) -PG_RMGR(RM_STANDBY_ID, "Standby", standby_redo, standby_desc, standby_identify, NULL, NULL, NULL, standby_decode) -PG_RMGR(RM_HEAP2_ID, "Heap2", heap2_redo, heap2_desc, heap2_identify, NULL, NULL, heap_mask, heap2_decode) -PG_RMGR(RM_HEAP_ID, "Heap", heap_redo, heap_desc, heap_identify, NULL, NULL, heap_mask, heap_decode) -PG_RMGR(RM_BTREE_ID, "Btree", btree_redo, btree_desc, btree_identify, btree_xlog_startup, btree_xlog_cleanup, btree_mask, NULL) -PG_RMGR(RM_HASH_ID, "Hash", hash_redo, hash_desc, hash_identify, NULL, NULL, hash_mask, NULL) -PG_RMGR(RM_GIN_ID, "Gin", gin_redo, gin_desc, gin_identify, gin_xlog_startup, gin_xlog_cleanup, gin_mask, NULL) -PG_RMGR(RM_GIST_ID, "Gist", gist_redo, gist_desc, gist_identify, gist_xlog_startup, gist_xlog_cleanup, gist_mask, NULL) -PG_RMGR(RM_SEQ_ID, "Sequence", seq_redo, seq_desc, seq_identify, NULL, NULL, seq_mask, NULL) -PG_RMGR(RM_SPGIST_ID, "SPGist", spg_redo, spg_desc, spg_identify, spg_xlog_startup, spg_xlog_cleanup, spg_mask, NULL) -PG_RMGR(RM_BRIN_ID, "BRIN", brin_redo, brin_desc, brin_identify, NULL, NULL, brin_mask, NULL) -PG_RMGR(RM_COMMIT_TS_ID, "CommitTs", commit_ts_redo, commit_ts_desc, commit_ts_identify, NULL, NULL, NULL, NULL) -PG_RMGR(RM_REPLORIGIN_ID, "ReplicationOrigin", replorigin_redo, replorigin_desc, replorigin_identify, NULL, NULL, NULL, NULL) -PG_RMGR(RM_GENERIC_ID, "Generic", generic_redo, generic_desc, generic_identify, NULL, NULL, generic_mask, NULL) -PG_RMGR(RM_LOGICALMSG_ID, "LogicalMessage", logicalmsg_redo, logicalmsg_desc, logicalmsg_identify, NULL, NULL, NULL, logicalmsg_decode) diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/sdir.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/sdir.h deleted file mode 100644 index 1ab4d5e19..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/sdir.h +++ /dev/null @@ -1,58 +0,0 @@ -/*------------------------------------------------------------------------- - * - * sdir.h - * POSTGRES scan direction definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/sdir.h - * - *------------------------------------------------------------------------- - */ -#ifndef SDIR_H -#define SDIR_H - - -/* - * ScanDirection was an int8 for no apparent reason. I kept the original - * values because I'm not sure if I'll break anything otherwise. -ay 2/95 - */ -typedef enum ScanDirection -{ - BackwardScanDirection = -1, - NoMovementScanDirection = 0, - ForwardScanDirection = 1 -} ScanDirection; - -/* - * ScanDirectionIsValid - * True iff scan direction is valid. - */ -#define ScanDirectionIsValid(direction) \ - ((bool) (BackwardScanDirection <= (direction) && \ - (direction) <= ForwardScanDirection)) - -/* - * ScanDirectionIsBackward - * True iff scan direction is backward. - */ -#define ScanDirectionIsBackward(direction) \ - ((bool) ((direction) == BackwardScanDirection)) - -/* - * ScanDirectionIsNoMovement - * True iff scan direction indicates no movement. - */ -#define ScanDirectionIsNoMovement(direction) \ - ((bool) ((direction) == NoMovementScanDirection)) - -/* - * ScanDirectionIsForward - * True iff scan direction is forward. - */ -#define ScanDirectionIsForward(direction) \ - ((bool) ((direction) == ForwardScanDirection)) - -#endif /* SDIR_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/skey.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/skey.h deleted file mode 100644 index b5ab17f7d..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/skey.h +++ /dev/null @@ -1,151 +0,0 @@ -/*------------------------------------------------------------------------- - * - * skey.h - * POSTGRES scan key definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/skey.h - * - *------------------------------------------------------------------------- - */ -#ifndef SKEY_H -#define SKEY_H - -#include "access/attnum.h" -#include "access/stratnum.h" -#include "fmgr.h" - - -/* - * A ScanKey represents the application of a comparison operator between - * a table or index column and a constant. When it's part of an array of - * ScanKeys, the comparison conditions are implicitly ANDed. The index - * column is the left argument of the operator, if it's a binary operator. - * (The data structure can support unary indexable operators too; in that - * case sk_argument would go unused. This is not currently implemented.) - * - * For an index scan, sk_strategy and sk_subtype must be set correctly for - * the operator. When using a ScanKey in a heap scan, these fields are not - * used and may be set to InvalidStrategy/InvalidOid. - * - * If the operator is collation-sensitive, sk_collation must be set - * correctly as well. - * - * A ScanKey can also represent a ScalarArrayOpExpr, that is a condition - * "column op ANY(ARRAY[...])". This is signaled by the SK_SEARCHARRAY - * flag bit. The sk_argument is not a value of the operator's right-hand - * argument type, but rather an array of such values, and the per-element - * comparisons are to be ORed together. - * - * A ScanKey can also represent a condition "column IS NULL" or "column - * IS NOT NULL"; these cases are signaled by the SK_SEARCHNULL and - * SK_SEARCHNOTNULL flag bits respectively. The argument is always NULL, - * and the sk_strategy, sk_subtype, sk_collation, and sk_func fields are - * not used (unless set by the index AM). - * - * SK_SEARCHARRAY, SK_SEARCHNULL and SK_SEARCHNOTNULL are supported only - * for index scans, not heap scans; and not all index AMs support them, - * only those that set amsearcharray or amsearchnulls respectively. - * - * A ScanKey can also represent an ordering operator invocation, that is - * an ordering requirement "ORDER BY indexedcol op constant". This looks - * the same as a comparison operator, except that the operator doesn't - * (usually) yield boolean. We mark such ScanKeys with SK_ORDER_BY. - * SK_SEARCHARRAY, SK_SEARCHNULL, SK_SEARCHNOTNULL cannot be used here. - * - * Note: in some places, ScanKeys are used as a convenient representation - * for the invocation of an access method support procedure. In this case - * sk_strategy/sk_subtype are not meaningful (but sk_collation can be); and - * sk_func may refer to a function that returns something other than boolean. - */ -typedef struct ScanKeyData -{ - int sk_flags; /* flags, see below */ - AttrNumber sk_attno; /* table or index column number */ - StrategyNumber sk_strategy; /* operator strategy number */ - Oid sk_subtype; /* strategy subtype */ - Oid sk_collation; /* collation to use, if needed */ - FmgrInfo sk_func; /* lookup info for function to call */ - Datum sk_argument; /* data to compare */ -} ScanKeyData; - -typedef ScanKeyData *ScanKey; - -/* - * About row comparisons: - * - * The ScanKey data structure also supports row comparisons, that is ordered - * tuple comparisons like (x, y) > (c1, c2), having the SQL-spec semantics - * "x > c1 OR (x = c1 AND y > c2)". Note that this is currently only - * implemented for btree index searches, not for heapscans or any other index - * type. A row comparison is represented by a "header" ScanKey entry plus - * a separate array of ScanKeys, one for each column of the row comparison. - * The header entry has these properties: - * sk_flags = SK_ROW_HEADER - * sk_attno = index column number for leading column of row comparison - * sk_strategy = btree strategy code for semantics of row comparison - * (ie, < <= > or >=) - * sk_subtype, sk_collation, sk_func: not used - * sk_argument: pointer to subsidiary ScanKey array - * If the header is part of a ScanKey array that's sorted by attno, it - * must be sorted according to the leading column number. - * - * The subsidiary ScanKey array appears in logical column order of the row - * comparison, which may be different from index column order. The array - * elements are like a normal ScanKey array except that: - * sk_flags must include SK_ROW_MEMBER, plus SK_ROW_END in the last - * element (needed since row header does not include a count) - * sk_func points to the btree comparison support function for the - * opclass, NOT the operator's implementation function. - * sk_strategy must be the same in all elements of the subsidiary array, - * that is, the same as in the header entry. - * SK_SEARCHARRAY, SK_SEARCHNULL, SK_SEARCHNOTNULL cannot be used here. - */ - -/* - * ScanKeyData sk_flags - * - * sk_flags bits 0-15 are reserved for system-wide use (symbols for those - * bits should be defined here). Bits 16-31 are reserved for use within - * individual index access methods. - */ -#define SK_ISNULL 0x0001 /* sk_argument is NULL */ -#define SK_UNARY 0x0002 /* unary operator (not supported!) */ -#define SK_ROW_HEADER 0x0004 /* row comparison header (see above) */ -#define SK_ROW_MEMBER 0x0008 /* row comparison member (see above) */ -#define SK_ROW_END 0x0010 /* last row comparison member */ -#define SK_SEARCHARRAY 0x0020 /* scankey represents ScalarArrayOp */ -#define SK_SEARCHNULL 0x0040 /* scankey represents "col IS NULL" */ -#define SK_SEARCHNOTNULL 0x0080 /* scankey represents "col IS NOT NULL" */ -#define SK_ORDER_BY 0x0100 /* scankey is for ORDER BY op */ - - -/* - * prototypes for functions in access/common/scankey.c - */ -extern void ScanKeyInit(ScanKey entry, - AttrNumber attributeNumber, - StrategyNumber strategy, - RegProcedure procedure, - Datum argument); -extern void ScanKeyEntryInitialize(ScanKey entry, - int flags, - AttrNumber attributeNumber, - StrategyNumber strategy, - Oid subtype, - Oid collation, - RegProcedure procedure, - Datum argument); -extern void ScanKeyEntryInitializeWithInfo(ScanKey entry, - int flags, - AttrNumber attributeNumber, - StrategyNumber strategy, - Oid subtype, - Oid collation, - FmgrInfo *finfo, - Datum argument); - -#endif /* SKEY_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/stratnum.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/stratnum.h deleted file mode 100644 index ac15f8447..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/stratnum.h +++ /dev/null @@ -1,85 +0,0 @@ -/*------------------------------------------------------------------------- - * - * stratnum.h - * POSTGRES strategy number definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/stratnum.h - * - *------------------------------------------------------------------------- - */ -#ifndef STRATNUM_H -#define STRATNUM_H - -/* - * Strategy numbers identify the semantics that particular operators have - * with respect to particular operator classes. In some cases a strategy - * subtype (an OID) is used as further information. - */ -typedef uint16 StrategyNumber; - -#define InvalidStrategy ((StrategyNumber) 0) - -/* - * Strategy numbers for B-tree indexes. - */ -#define BTLessStrategyNumber 1 -#define BTLessEqualStrategyNumber 2 -#define BTEqualStrategyNumber 3 -#define BTGreaterEqualStrategyNumber 4 -#define BTGreaterStrategyNumber 5 - -#define BTMaxStrategyNumber 5 - -/* - * Strategy numbers for hash indexes. There's only one valid strategy for - * hashing: equality. - */ -#define HTEqualStrategyNumber 1 - -#define HTMaxStrategyNumber 1 - -/* - * Strategy numbers common to (some) GiST, SP-GiST and BRIN opclasses. - * - * The first few of these come from the R-Tree indexing method (hence the - * names); the others have been added over time as they have been needed. - */ -#define RTLeftStrategyNumber 1 /* for << */ -#define RTOverLeftStrategyNumber 2 /* for &< */ -#define RTOverlapStrategyNumber 3 /* for && */ -#define RTOverRightStrategyNumber 4 /* for &> */ -#define RTRightStrategyNumber 5 /* for >> */ -#define RTSameStrategyNumber 6 /* for ~= */ -#define RTContainsStrategyNumber 7 /* for @> */ -#define RTContainedByStrategyNumber 8 /* for <@ */ -#define RTOverBelowStrategyNumber 9 /* for &<| */ -#define RTBelowStrategyNumber 10 /* for <<| */ -#define RTAboveStrategyNumber 11 /* for |>> */ -#define RTOverAboveStrategyNumber 12 /* for |&> */ -#define RTOldContainsStrategyNumber 13 /* for old spelling of @> */ -#define RTOldContainedByStrategyNumber 14 /* for old spelling of <@ */ -#define RTKNNSearchStrategyNumber 15 /* for <-> (distance) */ -#define RTContainsElemStrategyNumber 16 /* for range types @> elem */ -#define RTAdjacentStrategyNumber 17 /* for -|- */ -#define RTEqualStrategyNumber 18 /* for = */ -#define RTNotEqualStrategyNumber 19 /* for != */ -#define RTLessStrategyNumber 20 /* for < */ -#define RTLessEqualStrategyNumber 21 /* for <= */ -#define RTGreaterStrategyNumber 22 /* for > */ -#define RTGreaterEqualStrategyNumber 23 /* for >= */ -#define RTSubStrategyNumber 24 /* for inet >> */ -#define RTSubEqualStrategyNumber 25 /* for inet <<= */ -#define RTSuperStrategyNumber 26 /* for inet << */ -#define RTSuperEqualStrategyNumber 27 /* for inet >>= */ -#define RTPrefixStrategyNumber 28 /* for text ^@ */ -#define RTOldBelowStrategyNumber 29 /* for old spelling of <<| */ -#define RTOldAboveStrategyNumber 30 /* for old spelling of |>> */ - -#define RTMaxStrategyNumber 30 - - -#endif /* STRATNUM_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/sysattr.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/sysattr.h deleted file mode 100644 index c0b1d5ab7..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/sysattr.h +++ /dev/null @@ -1,29 +0,0 @@ -/*------------------------------------------------------------------------- - * - * sysattr.h - * POSTGRES system attribute definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/sysattr.h - * - *------------------------------------------------------------------------- - */ -#ifndef SYSATTR_H -#define SYSATTR_H - - -/* - * Attribute numbers for the system-defined attributes - */ -#define SelfItemPointerAttributeNumber (-1) -#define MinTransactionIdAttributeNumber (-2) -#define MinCommandIdAttributeNumber (-3) -#define MaxTransactionIdAttributeNumber (-4) -#define MaxCommandIdAttributeNumber (-5) -#define TableOidAttributeNumber (-6) -#define FirstLowInvalidHeapAttributeNumber (-7) - -#endif /* SYSATTR_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/table.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/table.h deleted file mode 100644 index 969952d64..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/table.h +++ /dev/null @@ -1,28 +0,0 @@ -/*------------------------------------------------------------------------- - * - * table.h - * Generic routines for table related code. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/table.h - * - *------------------------------------------------------------------------- - */ -#ifndef TABLE_H -#define TABLE_H - -#include "nodes/primnodes.h" -#include "storage/lockdefs.h" -#include "utils/relcache.h" - -extern Relation table_open(Oid relationId, LOCKMODE lockmode); -extern Relation table_openrv(const RangeVar *relation, LOCKMODE lockmode); -extern Relation table_openrv_extended(const RangeVar *relation, - LOCKMODE lockmode, bool missing_ok); -extern Relation try_table_open(Oid relationId, LOCKMODE lockmode); -extern void table_close(Relation relation, LOCKMODE lockmode); - -#endif /* TABLE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/tableam.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/tableam.h deleted file mode 100644 index fe869c6c1..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/tableam.h +++ /dev/null @@ -1,2077 +0,0 @@ -/*------------------------------------------------------------------------- - * - * tableam.h - * POSTGRES table access method definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/tableam.h - * - * NOTES - * See tableam.sgml for higher level documentation. - * - *------------------------------------------------------------------------- - */ -#ifndef TABLEAM_H -#define TABLEAM_H - -#include "access/relscan.h" -#include "access/sdir.h" -#include "access/xact.h" -#include "utils/guc.h" -#include "utils/rel.h" -#include "utils/snapshot.h" - - -#define DEFAULT_TABLE_ACCESS_METHOD "heap" - -/* GUCs */ -extern PGDLLIMPORT char *default_table_access_method; -extern PGDLLIMPORT bool synchronize_seqscans; - - -struct BulkInsertStateData; -struct IndexInfo; -struct SampleScanState; -struct TBMIterateResult; -struct VacuumParams; -struct ValidateIndexState; - -/* - * Bitmask values for the flags argument to the scan_begin callback. - */ -typedef enum ScanOptions -{ - /* one of SO_TYPE_* may be specified */ - SO_TYPE_SEQSCAN = 1 << 0, - SO_TYPE_BITMAPSCAN = 1 << 1, - SO_TYPE_SAMPLESCAN = 1 << 2, - SO_TYPE_TIDSCAN = 1 << 3, - SO_TYPE_TIDRANGESCAN = 1 << 4, - SO_TYPE_ANALYZE = 1 << 5, - - /* several of SO_ALLOW_* may be specified */ - /* allow or disallow use of access strategy */ - SO_ALLOW_STRAT = 1 << 6, - /* report location to syncscan logic? */ - SO_ALLOW_SYNC = 1 << 7, - /* verify visibility page-at-a-time? */ - SO_ALLOW_PAGEMODE = 1 << 8, - - /* unregister snapshot at scan end? */ - SO_TEMP_SNAPSHOT = 1 << 9 -} ScanOptions; - -/* - * Result codes for table_{update,delete,lock_tuple}, and for visibility - * routines inside table AMs. - */ -typedef enum TM_Result -{ - /* - * Signals that the action succeeded (i.e. update/delete performed, lock - * was acquired) - */ - TM_Ok, - - /* The affected tuple wasn't visible to the relevant snapshot */ - TM_Invisible, - - /* The affected tuple was already modified by the calling backend */ - TM_SelfModified, - - /* - * The affected tuple was updated by another transaction. This includes - * the case where tuple was moved to another partition. - */ - TM_Updated, - - /* The affected tuple was deleted by another transaction */ - TM_Deleted, - - /* - * The affected tuple is currently being modified by another session. This - * will only be returned if table_(update/delete/lock_tuple) are - * instructed not to wait. - */ - TM_BeingModified, - - /* lock couldn't be acquired, action skipped. Only used by lock_tuple */ - TM_WouldBlock -} TM_Result; - -/* - * When table_tuple_update, table_tuple_delete, or table_tuple_lock fail - * because the target tuple is already outdated, they fill in this struct to - * provide information to the caller about what happened. - * - * ctid is the target's ctid link: it is the same as the target's TID if the - * target was deleted, or the location of the replacement tuple if the target - * was updated. - * - * xmax is the outdating transaction's XID. If the caller wants to visit the - * replacement tuple, it must check that this matches before believing the - * replacement is really a match. - * - * cmax is the outdating command's CID, but only when the failure code is - * TM_SelfModified (i.e., something in the current transaction outdated the - * tuple); otherwise cmax is zero. (We make this restriction because - * HeapTupleHeaderGetCmax doesn't work for tuples outdated in other - * transactions.) - */ -typedef struct TM_FailureData -{ - ItemPointerData ctid; - TransactionId xmax; - CommandId cmax; - bool traversed; -} TM_FailureData; - -/* - * State used when calling table_index_delete_tuples(). - * - * Represents the status of table tuples, referenced by table TID and taken by - * index AM from index tuples. State consists of high level parameters of the - * deletion operation, plus two mutable palloc()'d arrays for information - * about the status of individual table tuples. These are conceptually one - * single array. Using two arrays keeps the TM_IndexDelete struct small, - * which makes sorting the first array (the deltids array) fast. - * - * Some index AM callers perform simple index tuple deletion (by specifying - * bottomup = false), and include only known-dead deltids. These known-dead - * entries are all marked knowndeletable = true directly (typically these are - * TIDs from LP_DEAD-marked index tuples), but that isn't strictly required. - * - * Callers that specify bottomup = true are "bottom-up index deletion" - * callers. The considerations for the tableam are more subtle with these - * callers because they ask the tableam to perform highly speculative work, - * and might only expect the tableam to check a small fraction of all entries. - * Caller is not allowed to specify knowndeletable = true for any entry - * because everything is highly speculative. Bottom-up caller provides - * context and hints to tableam -- see comments below for details on how index - * AMs and tableams should coordinate during bottom-up index deletion. - * - * Simple index deletion callers may ask the tableam to perform speculative - * work, too. This is a little like bottom-up deletion, but not too much. - * The tableam will only perform speculative work when it's practically free - * to do so in passing for simple deletion caller (while always performing - * whatever work is needed to enable knowndeletable/LP_DEAD index tuples to - * be deleted within index AM). This is the real reason why it's possible for - * simple index deletion caller to specify knowndeletable = false up front - * (this means "check if it's possible for me to delete corresponding index - * tuple when it's cheap to do so in passing"). The index AM should only - * include "extra" entries for index tuples whose TIDs point to a table block - * that tableam is expected to have to visit anyway (in the event of a block - * orientated tableam). The tableam isn't strictly obligated to check these - * "extra" TIDs, but a block-based AM should always manage to do so in - * practice. - * - * The final contents of the deltids/status arrays are interesting to callers - * that ask tableam to perform speculative work (i.e. when _any_ items have - * knowndeletable set to false up front). These index AM callers will - * naturally need to consult final state to determine which index tuples are - * in fact deletable. - * - * The index AM can keep track of which index tuple relates to which deltid by - * setting idxoffnum (and/or relying on each entry being uniquely identifiable - * using tid), which is important when the final contents of the array will - * need to be interpreted -- the array can shrink from initial size after - * tableam processing and/or have entries in a new order (tableam may sort - * deltids array for its own reasons). Bottom-up callers may find that final - * ndeltids is 0 on return from call to tableam, in which case no index tuple - * deletions are possible. Simple deletion callers can rely on any entries - * they know to be deletable appearing in the final array as deletable. - */ -typedef struct TM_IndexDelete -{ - ItemPointerData tid; /* table TID from index tuple */ - int16 id; /* Offset into TM_IndexStatus array */ -} TM_IndexDelete; - -typedef struct TM_IndexStatus -{ - OffsetNumber idxoffnum; /* Index am page offset number */ - bool knowndeletable; /* Currently known to be deletable? */ - - /* Bottom-up index deletion specific fields follow */ - bool promising; /* Promising (duplicate) index tuple? */ - int16 freespace; /* Space freed in index if deleted */ -} TM_IndexStatus; - -/* - * Index AM/tableam coordination is central to the design of bottom-up index - * deletion. The index AM provides hints about where to look to the tableam - * by marking some entries as "promising". Index AM does this with duplicate - * index tuples that are strongly suspected to be old versions left behind by - * UPDATEs that did not logically modify indexed values. Index AM may find it - * helpful to only mark entries as promising when they're thought to have been - * affected by such an UPDATE in the recent past. - * - * Bottom-up index deletion casts a wide net at first, usually by including - * all TIDs on a target index page. It is up to the tableam to worry about - * the cost of checking transaction status information. The tableam is in - * control, but needs careful guidance from the index AM. Index AM requests - * that bottomupfreespace target be met, while tableam measures progress - * towards that goal by tallying the per-entry freespace value for known - * deletable entries. (All !bottomup callers can just set these space related - * fields to zero.) - */ -typedef struct TM_IndexDeleteOp -{ - Relation irel; /* Target index relation */ - BlockNumber iblknum; /* Index block number (for error reports) */ - bool bottomup; /* Bottom-up (not simple) deletion? */ - int bottomupfreespace; /* Bottom-up space target */ - - /* Mutable per-TID information follows (index AM initializes entries) */ - int ndeltids; /* Current # of deltids/status elements */ - TM_IndexDelete *deltids; - TM_IndexStatus *status; -} TM_IndexDeleteOp; - -/* "options" flag bits for table_tuple_insert */ -/* TABLE_INSERT_SKIP_WAL was 0x0001; RelationNeedsWAL() now governs */ -#define TABLE_INSERT_SKIP_FSM 0x0002 -#define TABLE_INSERT_FROZEN 0x0004 -#define TABLE_INSERT_NO_LOGICAL 0x0008 - -/* flag bits for table_tuple_lock */ -/* Follow tuples whose update is in progress if lock modes don't conflict */ -#define TUPLE_LOCK_FLAG_LOCK_UPDATE_IN_PROGRESS (1 << 0) -/* Follow update chain and lock latest version of tuple */ -#define TUPLE_LOCK_FLAG_FIND_LAST_VERSION (1 << 1) - - -/* Typedef for callback function for table_index_build_scan */ -typedef void (*IndexBuildCallback) (Relation index, - ItemPointer tid, - Datum *values, - bool *isnull, - bool tupleIsAlive, - void *state); - -/* - * API struct for a table AM. Note this must be allocated in a - * server-lifetime manner, typically as a static const struct, which then gets - * returned by FormData_pg_am.amhandler. - * - * In most cases it's not appropriate to call the callbacks directly, use the - * table_* wrapper functions instead. - * - * GetTableAmRoutine() asserts that required callbacks are filled in, remember - * to update when adding a callback. - */ -typedef struct TableAmRoutine -{ - /* this must be set to T_TableAmRoutine */ - NodeTag type; - - - /* ------------------------------------------------------------------------ - * Slot related callbacks. - * ------------------------------------------------------------------------ - */ - - /* - * Return slot implementation suitable for storing a tuple of this AM. - */ - const TupleTableSlotOps *(*slot_callbacks) (Relation rel); - - - /* ------------------------------------------------------------------------ - * Table scan callbacks. - * ------------------------------------------------------------------------ - */ - - /* - * Start a scan of `rel`. The callback has to return a TableScanDesc, - * which will typically be embedded in a larger, AM specific, struct. - * - * If nkeys != 0, the results need to be filtered by those scan keys. - * - * pscan, if not NULL, will have already been initialized with - * parallelscan_initialize(), and has to be for the same relation. Will - * only be set coming from table_beginscan_parallel(). - * - * `flags` is a bitmask indicating the type of scan (ScanOptions's - * SO_TYPE_*, currently only one may be specified), options controlling - * the scan's behaviour (ScanOptions's SO_ALLOW_*, several may be - * specified, an AM may ignore unsupported ones) and whether the snapshot - * needs to be deallocated at scan_end (ScanOptions's SO_TEMP_SNAPSHOT). - */ - TableScanDesc (*scan_begin) (Relation rel, - Snapshot snapshot, - int nkeys, struct ScanKeyData *key, - ParallelTableScanDesc pscan, - uint32 flags); - - /* - * Release resources and deallocate scan. If TableScanDesc.temp_snap, - * TableScanDesc.rs_snapshot needs to be unregistered. - */ - void (*scan_end) (TableScanDesc scan); - - /* - * Restart relation scan. If set_params is set to true, allow_{strat, - * sync, pagemode} (see scan_begin) changes should be taken into account. - */ - void (*scan_rescan) (TableScanDesc scan, struct ScanKeyData *key, - bool set_params, bool allow_strat, - bool allow_sync, bool allow_pagemode); - - /* - * Return next tuple from `scan`, store in slot. - */ - bool (*scan_getnextslot) (TableScanDesc scan, - ScanDirection direction, - TupleTableSlot *slot); - - /*----------- - * Optional functions to provide scanning for ranges of ItemPointers. - * Implementations must either provide both of these functions, or neither - * of them. - * - * Implementations of scan_set_tidrange must themselves handle - * ItemPointers of any value. i.e, they must handle each of the following: - * - * 1) mintid or maxtid is beyond the end of the table; and - * 2) mintid is above maxtid; and - * 3) item offset for mintid or maxtid is beyond the maximum offset - * allowed by the AM. - * - * Implementations can assume that scan_set_tidrange is always called - * before can_getnextslot_tidrange or after scan_rescan and before any - * further calls to scan_getnextslot_tidrange. - */ - void (*scan_set_tidrange) (TableScanDesc scan, - ItemPointer mintid, - ItemPointer maxtid); - - /* - * Return next tuple from `scan` that's in the range of TIDs defined by - * scan_set_tidrange. - */ - bool (*scan_getnextslot_tidrange) (TableScanDesc scan, - ScanDirection direction, - TupleTableSlot *slot); - - /* ------------------------------------------------------------------------ - * Parallel table scan related functions. - * ------------------------------------------------------------------------ - */ - - /* - * Estimate the size of shared memory needed for a parallel scan of this - * relation. The snapshot does not need to be accounted for. - */ - Size (*parallelscan_estimate) (Relation rel); - - /* - * Initialize ParallelTableScanDesc for a parallel scan of this relation. - * `pscan` will be sized according to parallelscan_estimate() for the same - * relation. - */ - Size (*parallelscan_initialize) (Relation rel, - ParallelTableScanDesc pscan); - - /* - * Reinitialize `pscan` for a new scan. `rel` will be the same relation as - * when `pscan` was initialized by parallelscan_initialize. - */ - void (*parallelscan_reinitialize) (Relation rel, - ParallelTableScanDesc pscan); - - - /* ------------------------------------------------------------------------ - * Index Scan Callbacks - * ------------------------------------------------------------------------ - */ - - /* - * Prepare to fetch tuples from the relation, as needed when fetching - * tuples for an index scan. The callback has to return an - * IndexFetchTableData, which the AM will typically embed in a larger - * structure with additional information. - * - * Tuples for an index scan can then be fetched via index_fetch_tuple. - */ - struct IndexFetchTableData *(*index_fetch_begin) (Relation rel); - - /* - * Reset index fetch. Typically this will release cross index fetch - * resources held in IndexFetchTableData. - */ - void (*index_fetch_reset) (struct IndexFetchTableData *data); - - /* - * Release resources and deallocate index fetch. - */ - void (*index_fetch_end) (struct IndexFetchTableData *data); - - /* - * Fetch tuple at `tid` into `slot`, after doing a visibility test - * according to `snapshot`. If a tuple was found and passed the visibility - * test, return true, false otherwise. - * - * Note that AMs that do not necessarily update indexes when indexed - * columns do not change, need to return the current/correct version of - * the tuple that is visible to the snapshot, even if the tid points to an - * older version of the tuple. - * - * *call_again is false on the first call to index_fetch_tuple for a tid. - * If there potentially is another tuple matching the tid, *call_again - * needs to be set to true by index_fetch_tuple, signaling to the caller - * that index_fetch_tuple should be called again for the same tid. - * - * *all_dead, if all_dead is not NULL, should be set to true by - * index_fetch_tuple iff it is guaranteed that no backend needs to see - * that tuple. Index AMs can use that to avoid returning that tid in - * future searches. - */ - bool (*index_fetch_tuple) (struct IndexFetchTableData *scan, - ItemPointer tid, - Snapshot snapshot, - TupleTableSlot *slot, - bool *call_again, bool *all_dead); - - - /* ------------------------------------------------------------------------ - * Callbacks for non-modifying operations on individual tuples - * ------------------------------------------------------------------------ - */ - - /* - * Fetch tuple at `tid` into `slot`, after doing a visibility test - * according to `snapshot`. If a tuple was found and passed the visibility - * test, returns true, false otherwise. - */ - bool (*tuple_fetch_row_version) (Relation rel, - ItemPointer tid, - Snapshot snapshot, - TupleTableSlot *slot); - - /* - * Is tid valid for a scan of this relation. - */ - bool (*tuple_tid_valid) (TableScanDesc scan, - ItemPointer tid); - - /* - * Return the latest version of the tuple at `tid`, by updating `tid` to - * point at the newest version. - */ - void (*tuple_get_latest_tid) (TableScanDesc scan, - ItemPointer tid); - - /* - * Does the tuple in `slot` satisfy `snapshot`? The slot needs to be of - * the appropriate type for the AM. - */ - bool (*tuple_satisfies_snapshot) (Relation rel, - TupleTableSlot *slot, - Snapshot snapshot); - - /* see table_index_delete_tuples() */ - TransactionId (*index_delete_tuples) (Relation rel, - TM_IndexDeleteOp *delstate); - - - /* ------------------------------------------------------------------------ - * Manipulations of physical tuples. - * ------------------------------------------------------------------------ - */ - - /* see table_tuple_insert() for reference about parameters */ - void (*tuple_insert) (Relation rel, TupleTableSlot *slot, - CommandId cid, int options, - struct BulkInsertStateData *bistate); - - /* see table_tuple_insert_speculative() for reference about parameters */ - void (*tuple_insert_speculative) (Relation rel, - TupleTableSlot *slot, - CommandId cid, - int options, - struct BulkInsertStateData *bistate, - uint32 specToken); - - /* see table_tuple_complete_speculative() for reference about parameters */ - void (*tuple_complete_speculative) (Relation rel, - TupleTableSlot *slot, - uint32 specToken, - bool succeeded); - - /* see table_multi_insert() for reference about parameters */ - void (*multi_insert) (Relation rel, TupleTableSlot **slots, int nslots, - CommandId cid, int options, struct BulkInsertStateData *bistate); - - /* see table_tuple_delete() for reference about parameters */ - TM_Result (*tuple_delete) (Relation rel, - ItemPointer tid, - CommandId cid, - Snapshot snapshot, - Snapshot crosscheck, - bool wait, - TM_FailureData *tmfd, - bool changingPart); - - /* see table_tuple_update() for reference about parameters */ - TM_Result (*tuple_update) (Relation rel, - ItemPointer otid, - TupleTableSlot *slot, - CommandId cid, - Snapshot snapshot, - Snapshot crosscheck, - bool wait, - TM_FailureData *tmfd, - LockTupleMode *lockmode, - bool *update_indexes); - - /* see table_tuple_lock() for reference about parameters */ - TM_Result (*tuple_lock) (Relation rel, - ItemPointer tid, - Snapshot snapshot, - TupleTableSlot *slot, - CommandId cid, - LockTupleMode mode, - LockWaitPolicy wait_policy, - uint8 flags, - TM_FailureData *tmfd); - - /* - * Perform operations necessary to complete insertions made via - * tuple_insert and multi_insert with a BulkInsertState specified. In-tree - * access methods ceased to use this. - * - * Typically callers of tuple_insert and multi_insert will just pass all - * the flags that apply to them, and each AM has to decide which of them - * make sense for it, and then only take actions in finish_bulk_insert for - * those flags, and ignore others. - * - * Optional callback. - */ - void (*finish_bulk_insert) (Relation rel, int options); - - - /* ------------------------------------------------------------------------ - * DDL related functionality. - * ------------------------------------------------------------------------ - */ - - /* - * This callback needs to create a new relation filenode for `rel`, with - * appropriate durability behaviour for `persistence`. - * - * Note that only the subset of the relcache filled by - * RelationBuildLocalRelation() can be relied upon and that the relation's - * catalog entries will either not yet exist (new relation), or will still - * reference the old relfilenode. - * - * As output *freezeXid, *minmulti must be set to the values appropriate - * for pg_class.{relfrozenxid, relminmxid}. For AMs that don't need those - * fields to be filled they can be set to InvalidTransactionId and - * InvalidMultiXactId, respectively. - * - * See also table_relation_set_new_filenode(). - */ - void (*relation_set_new_filenode) (Relation rel, - const RelFileNode *newrnode, - char persistence, - TransactionId *freezeXid, - MultiXactId *minmulti); - - /* - * This callback needs to remove all contents from `rel`'s current - * relfilenode. No provisions for transactional behaviour need to be made. - * Often this can be implemented by truncating the underlying storage to - * its minimal size. - * - * See also table_relation_nontransactional_truncate(). - */ - void (*relation_nontransactional_truncate) (Relation rel); - - /* - * See table_relation_copy_data(). - * - * This can typically be implemented by directly copying the underlying - * storage, unless it contains references to the tablespace internally. - */ - void (*relation_copy_data) (Relation rel, - const RelFileNode *newrnode); - - /* See table_relation_copy_for_cluster() */ - void (*relation_copy_for_cluster) (Relation NewTable, - Relation OldTable, - Relation OldIndex, - bool use_sort, - TransactionId OldestXmin, - TransactionId *xid_cutoff, - MultiXactId *multi_cutoff, - double *num_tuples, - double *tups_vacuumed, - double *tups_recently_dead); - - /* - * React to VACUUM command on the relation. The VACUUM can be triggered by - * a user or by autovacuum. The specific actions performed by the AM will - * depend heavily on the individual AM. - * - * On entry a transaction is already established, and the relation is - * locked with a ShareUpdateExclusive lock. - * - * Note that neither VACUUM FULL (and CLUSTER), nor ANALYZE go through - * this routine, even if (for ANALYZE) it is part of the same VACUUM - * command. - * - * There probably, in the future, needs to be a separate callback to - * integrate with autovacuum's scheduling. - */ - void (*relation_vacuum) (Relation rel, - struct VacuumParams *params, - BufferAccessStrategy bstrategy); - - /* - * Prepare to analyze block `blockno` of `scan`. The scan has been started - * with table_beginscan_analyze(). See also - * table_scan_analyze_next_block(). - * - * The callback may acquire resources like locks that are held until - * table_scan_analyze_next_tuple() returns false. It e.g. can make sense - * to hold a lock until all tuples on a block have been analyzed by - * scan_analyze_next_tuple. - * - * The callback can return false if the block is not suitable for - * sampling, e.g. because it's a metapage that could never contain tuples. - * - * XXX: This obviously is primarily suited for block-based AMs. It's not - * clear what a good interface for non block based AMs would be, so there - * isn't one yet. - */ - bool (*scan_analyze_next_block) (TableScanDesc scan, - BlockNumber blockno, - BufferAccessStrategy bstrategy); - - /* - * See table_scan_analyze_next_tuple(). - * - * Not every AM might have a meaningful concept of dead rows, in which - * case it's OK to not increment *deadrows - but note that that may - * influence autovacuum scheduling (see comment for relation_vacuum - * callback). - */ - bool (*scan_analyze_next_tuple) (TableScanDesc scan, - TransactionId OldestXmin, - double *liverows, - double *deadrows, - TupleTableSlot *slot); - - /* see table_index_build_range_scan for reference about parameters */ - double (*index_build_range_scan) (Relation table_rel, - Relation index_rel, - struct IndexInfo *index_info, - bool allow_sync, - bool anyvisible, - bool progress, - BlockNumber start_blockno, - BlockNumber numblocks, - IndexBuildCallback callback, - void *callback_state, - TableScanDesc scan); - - /* see table_index_validate_scan for reference about parameters */ - void (*index_validate_scan) (Relation table_rel, - Relation index_rel, - struct IndexInfo *index_info, - Snapshot snapshot, - struct ValidateIndexState *state); - - - /* ------------------------------------------------------------------------ - * Miscellaneous functions. - * ------------------------------------------------------------------------ - */ - - /* - * See table_relation_size(). - * - * Note that currently a few callers use the MAIN_FORKNUM size to figure - * out the range of potentially interesting blocks (brin, analyze). It's - * probable that we'll need to revise the interface for those at some - * point. - */ - uint64 (*relation_size) (Relation rel, ForkNumber forkNumber); - - - /* - * This callback should return true if the relation requires a TOAST table - * and false if it does not. It may wish to examine the relation's tuple - * descriptor before making a decision, but if it uses some other method - * of storing large values (or if it does not support them) it can simply - * return false. - */ - bool (*relation_needs_toast_table) (Relation rel); - - /* - * This callback should return the OID of the table AM that implements - * TOAST tables for this AM. If the relation_needs_toast_table callback - * always returns false, this callback is not required. - */ - Oid (*relation_toast_am) (Relation rel); - - /* - * This callback is invoked when detoasting a value stored in a toast - * table implemented by this AM. See table_relation_fetch_toast_slice() - * for more details. - */ - void (*relation_fetch_toast_slice) (Relation toastrel, Oid valueid, - int32 attrsize, - int32 sliceoffset, - int32 slicelength, - struct varlena *result); - - - /* ------------------------------------------------------------------------ - * Planner related functions. - * ------------------------------------------------------------------------ - */ - - /* - * See table_relation_estimate_size(). - * - * While block oriented, it shouldn't be too hard for an AM that doesn't - * internally use blocks to convert into a usable representation. - * - * This differs from the relation_size callback by returning size - * estimates (both relation size and tuple count) for planning purposes, - * rather than returning a currently correct estimate. - */ - void (*relation_estimate_size) (Relation rel, int32 *attr_widths, - BlockNumber *pages, double *tuples, - double *allvisfrac); - - - /* ------------------------------------------------------------------------ - * Executor related functions. - * ------------------------------------------------------------------------ - */ - - /* - * Prepare to fetch / check / return tuples from `tbmres->blockno` as part - * of a bitmap table scan. `scan` was started via table_beginscan_bm(). - * Return false if there are no tuples to be found on the page, true - * otherwise. - * - * This will typically read and pin the target block, and do the necessary - * work to allow scan_bitmap_next_tuple() to return tuples (e.g. it might - * make sense to perform tuple visibility checks at this time). For some - * AMs it will make more sense to do all the work referencing `tbmres` - * contents here, for others it might be better to defer more work to - * scan_bitmap_next_tuple. - * - * If `tbmres->blockno` is -1, this is a lossy scan and all visible tuples - * on the page have to be returned, otherwise the tuples at offsets in - * `tbmres->offsets` need to be returned. - * - * XXX: Currently this may only be implemented if the AM uses md.c as its - * storage manager, and uses ItemPointer->ip_blkid in a manner that maps - * blockids directly to the underlying storage. nodeBitmapHeapscan.c - * performs prefetching directly using that interface. This probably - * needs to be rectified at a later point. - * - * XXX: Currently this may only be implemented if the AM uses the - * visibilitymap, as nodeBitmapHeapscan.c unconditionally accesses it to - * perform prefetching. This probably needs to be rectified at a later - * point. - * - * Optional callback, but either both scan_bitmap_next_block and - * scan_bitmap_next_tuple need to exist, or neither. - */ - bool (*scan_bitmap_next_block) (TableScanDesc scan, - struct TBMIterateResult *tbmres); - - /* - * Fetch the next tuple of a bitmap table scan into `slot` and return true - * if a visible tuple was found, false otherwise. - * - * For some AMs it will make more sense to do all the work referencing - * `tbmres` contents in scan_bitmap_next_block, for others it might be - * better to defer more work to this callback. - * - * Optional callback, but either both scan_bitmap_next_block and - * scan_bitmap_next_tuple need to exist, or neither. - */ - bool (*scan_bitmap_next_tuple) (TableScanDesc scan, - struct TBMIterateResult *tbmres, - TupleTableSlot *slot); - - /* - * Prepare to fetch tuples from the next block in a sample scan. Return - * false if the sample scan is finished, true otherwise. `scan` was - * started via table_beginscan_sampling(). - * - * Typically this will first determine the target block by calling the - * TsmRoutine's NextSampleBlock() callback if not NULL, or alternatively - * perform a sequential scan over all blocks. The determined block is - * then typically read and pinned. - * - * As the TsmRoutine interface is block based, a block needs to be passed - * to NextSampleBlock(). If that's not appropriate for an AM, it - * internally needs to perform mapping between the internal and a block - * based representation. - * - * Note that it's not acceptable to hold deadlock prone resources such as - * lwlocks until scan_sample_next_tuple() has exhausted the tuples on the - * block - the tuple is likely to be returned to an upper query node, and - * the next call could be off a long while. Holding buffer pins and such - * is obviously OK. - * - * Currently it is required to implement this interface, as there's no - * alternative way (contrary e.g. to bitmap scans) to implement sample - * scans. If infeasible to implement, the AM may raise an error. - */ - bool (*scan_sample_next_block) (TableScanDesc scan, - struct SampleScanState *scanstate); - - /* - * This callback, only called after scan_sample_next_block has returned - * true, should determine the next tuple to be returned from the selected - * block using the TsmRoutine's NextSampleTuple() callback. - * - * The callback needs to perform visibility checks, and only return - * visible tuples. That obviously can mean calling NextSampleTuple() - * multiple times. - * - * The TsmRoutine interface assumes that there's a maximum offset on a - * given page, so if that doesn't apply to an AM, it needs to emulate that - * assumption somehow. - */ - bool (*scan_sample_next_tuple) (TableScanDesc scan, - struct SampleScanState *scanstate, - TupleTableSlot *slot); - -} TableAmRoutine; - - -/* ---------------------------------------------------------------------------- - * Slot functions. - * ---------------------------------------------------------------------------- - */ - -/* - * Returns slot callbacks suitable for holding tuples of the appropriate type - * for the relation. Works for tables, views, foreign tables and partitioned - * tables. - */ -extern const TupleTableSlotOps *table_slot_callbacks(Relation rel); - -/* - * Returns slot using the callbacks returned by table_slot_callbacks(), and - * registers it on *reglist. - */ -extern TupleTableSlot *table_slot_create(Relation rel, List **reglist); - - -/* ---------------------------------------------------------------------------- - * Table scan functions. - * ---------------------------------------------------------------------------- - */ - -/* - * Start a scan of `rel`. Returned tuples pass a visibility test of - * `snapshot`, and if nkeys != 0, the results are filtered by those scan keys. - */ -static inline TableScanDesc -table_beginscan(Relation rel, Snapshot snapshot, - int nkeys, struct ScanKeyData *key) -{ - uint32 flags = SO_TYPE_SEQSCAN | - SO_ALLOW_STRAT | SO_ALLOW_SYNC | SO_ALLOW_PAGEMODE; - - return rel->rd_tableam->scan_begin(rel, snapshot, nkeys, key, NULL, flags); -} - -/* - * Like table_beginscan(), but for scanning catalog. It'll automatically use a - * snapshot appropriate for scanning catalog relations. - */ -extern TableScanDesc table_beginscan_catalog(Relation rel, int nkeys, - struct ScanKeyData *key); - -/* - * Like table_beginscan(), but table_beginscan_strat() offers an extended API - * that lets the caller control whether a nondefault buffer access strategy - * can be used, and whether syncscan can be chosen (possibly resulting in the - * scan not starting from block zero). Both of these default to true with - * plain table_beginscan. - */ -static inline TableScanDesc -table_beginscan_strat(Relation rel, Snapshot snapshot, - int nkeys, struct ScanKeyData *key, - bool allow_strat, bool allow_sync) -{ - uint32 flags = SO_TYPE_SEQSCAN | SO_ALLOW_PAGEMODE; - - if (allow_strat) - flags |= SO_ALLOW_STRAT; - if (allow_sync) - flags |= SO_ALLOW_SYNC; - - return rel->rd_tableam->scan_begin(rel, snapshot, nkeys, key, NULL, flags); -} - -/* - * table_beginscan_bm is an alternative entry point for setting up a - * TableScanDesc for a bitmap heap scan. Although that scan technology is - * really quite unlike a standard seqscan, there is just enough commonality to - * make it worth using the same data structure. - */ -static inline TableScanDesc -table_beginscan_bm(Relation rel, Snapshot snapshot, - int nkeys, struct ScanKeyData *key) -{ - uint32 flags = SO_TYPE_BITMAPSCAN | SO_ALLOW_PAGEMODE; - - return rel->rd_tableam->scan_begin(rel, snapshot, nkeys, key, NULL, flags); -} - -/* - * table_beginscan_sampling is an alternative entry point for setting up a - * TableScanDesc for a TABLESAMPLE scan. As with bitmap scans, it's worth - * using the same data structure although the behavior is rather different. - * In addition to the options offered by table_beginscan_strat, this call - * also allows control of whether page-mode visibility checking is used. - */ -static inline TableScanDesc -table_beginscan_sampling(Relation rel, Snapshot snapshot, - int nkeys, struct ScanKeyData *key, - bool allow_strat, bool allow_sync, - bool allow_pagemode) -{ - uint32 flags = SO_TYPE_SAMPLESCAN; - - if (allow_strat) - flags |= SO_ALLOW_STRAT; - if (allow_sync) - flags |= SO_ALLOW_SYNC; - if (allow_pagemode) - flags |= SO_ALLOW_PAGEMODE; - - return rel->rd_tableam->scan_begin(rel, snapshot, nkeys, key, NULL, flags); -} - -/* - * table_beginscan_tid is an alternative entry point for setting up a - * TableScanDesc for a Tid scan. As with bitmap scans, it's worth using - * the same data structure although the behavior is rather different. - */ -static inline TableScanDesc -table_beginscan_tid(Relation rel, Snapshot snapshot) -{ - uint32 flags = SO_TYPE_TIDSCAN; - - return rel->rd_tableam->scan_begin(rel, snapshot, 0, NULL, NULL, flags); -} - -/* - * table_beginscan_analyze is an alternative entry point for setting up a - * TableScanDesc for an ANALYZE scan. As with bitmap scans, it's worth using - * the same data structure although the behavior is rather different. - */ -static inline TableScanDesc -table_beginscan_analyze(Relation rel) -{ - uint32 flags = SO_TYPE_ANALYZE; - - return rel->rd_tableam->scan_begin(rel, NULL, 0, NULL, NULL, flags); -} - -/* - * End relation scan. - */ -static inline void -table_endscan(TableScanDesc scan) -{ - scan->rs_rd->rd_tableam->scan_end(scan); -} - -/* - * Restart a relation scan. - */ -static inline void -table_rescan(TableScanDesc scan, - struct ScanKeyData *key) -{ - scan->rs_rd->rd_tableam->scan_rescan(scan, key, false, false, false, false); -} - -/* - * Restart a relation scan after changing params. - * - * This call allows changing the buffer strategy, syncscan, and pagemode - * options before starting a fresh scan. Note that although the actual use of - * syncscan might change (effectively, enabling or disabling reporting), the - * previously selected startblock will be kept. - */ -static inline void -table_rescan_set_params(TableScanDesc scan, struct ScanKeyData *key, - bool allow_strat, bool allow_sync, bool allow_pagemode) -{ - scan->rs_rd->rd_tableam->scan_rescan(scan, key, true, - allow_strat, allow_sync, - allow_pagemode); -} - -/* - * Update snapshot used by the scan. - */ -extern void table_scan_update_snapshot(TableScanDesc scan, Snapshot snapshot); - -/* - * Return next tuple from `scan`, store in slot. - */ -static inline bool -table_scan_getnextslot(TableScanDesc sscan, ScanDirection direction, TupleTableSlot *slot) -{ - slot->tts_tableOid = RelationGetRelid(sscan->rs_rd); - - /* - * We don't expect direct calls to table_scan_getnextslot with valid - * CheckXidAlive for catalog or regular tables. See detailed comments in - * xact.c where these variables are declared. - */ - if (unlikely(TransactionIdIsValid(CheckXidAlive) && !bsysscan)) - elog(ERROR, "unexpected table_scan_getnextslot call during logical decoding"); - - return sscan->rs_rd->rd_tableam->scan_getnextslot(sscan, direction, slot); -} - -/* ---------------------------------------------------------------------------- - * TID Range scanning related functions. - * ---------------------------------------------------------------------------- - */ - -/* - * table_beginscan_tidrange is the entry point for setting up a TableScanDesc - * for a TID range scan. - */ -static inline TableScanDesc -table_beginscan_tidrange(Relation rel, Snapshot snapshot, - ItemPointer mintid, - ItemPointer maxtid) -{ - TableScanDesc sscan; - uint32 flags = SO_TYPE_TIDRANGESCAN | SO_ALLOW_PAGEMODE; - - sscan = rel->rd_tableam->scan_begin(rel, snapshot, 0, NULL, NULL, flags); - - /* Set the range of TIDs to scan */ - sscan->rs_rd->rd_tableam->scan_set_tidrange(sscan, mintid, maxtid); - - return sscan; -} - -/* - * table_rescan_tidrange resets the scan position and sets the minimum and - * maximum TID range to scan for a TableScanDesc created by - * table_beginscan_tidrange. - */ -static inline void -table_rescan_tidrange(TableScanDesc sscan, ItemPointer mintid, - ItemPointer maxtid) -{ - /* Ensure table_beginscan_tidrange() was used. */ - Assert((sscan->rs_flags & SO_TYPE_TIDRANGESCAN) != 0); - - sscan->rs_rd->rd_tableam->scan_rescan(sscan, NULL, false, false, false, false); - sscan->rs_rd->rd_tableam->scan_set_tidrange(sscan, mintid, maxtid); -} - -/* - * Fetch the next tuple from `sscan` for a TID range scan created by - * table_beginscan_tidrange(). Stores the tuple in `slot` and returns true, - * or returns false if no more tuples exist in the range. - */ -static inline bool -table_scan_getnextslot_tidrange(TableScanDesc sscan, ScanDirection direction, - TupleTableSlot *slot) -{ - /* Ensure table_beginscan_tidrange() was used. */ - Assert((sscan->rs_flags & SO_TYPE_TIDRANGESCAN) != 0); - - return sscan->rs_rd->rd_tableam->scan_getnextslot_tidrange(sscan, - direction, - slot); -} - - -/* ---------------------------------------------------------------------------- - * Parallel table scan related functions. - * ---------------------------------------------------------------------------- - */ - -/* - * Estimate the size of shared memory needed for a parallel scan of this - * relation. - */ -extern Size table_parallelscan_estimate(Relation rel, Snapshot snapshot); - -/* - * Initialize ParallelTableScanDesc for a parallel scan of this - * relation. `pscan` needs to be sized according to parallelscan_estimate() - * for the same relation. Call this just once in the leader process; then, - * individual workers attach via table_beginscan_parallel. - */ -extern void table_parallelscan_initialize(Relation rel, - ParallelTableScanDesc pscan, - Snapshot snapshot); - -/* - * Begin a parallel scan. `pscan` needs to have been initialized with - * table_parallelscan_initialize(), for the same relation. The initialization - * does not need to have happened in this backend. - * - * Caller must hold a suitable lock on the relation. - */ -extern TableScanDesc table_beginscan_parallel(Relation rel, - ParallelTableScanDesc pscan); - -/* - * Restart a parallel scan. Call this in the leader process. Caller is - * responsible for making sure that all workers have finished the scan - * beforehand. - */ -static inline void -table_parallelscan_reinitialize(Relation rel, ParallelTableScanDesc pscan) -{ - rel->rd_tableam->parallelscan_reinitialize(rel, pscan); -} - - -/* ---------------------------------------------------------------------------- - * Index scan related functions. - * ---------------------------------------------------------------------------- - */ - -/* - * Prepare to fetch tuples from the relation, as needed when fetching tuples - * for an index scan. - * - * Tuples for an index scan can then be fetched via table_index_fetch_tuple(). - */ -static inline IndexFetchTableData * -table_index_fetch_begin(Relation rel) -{ - return rel->rd_tableam->index_fetch_begin(rel); -} - -/* - * Reset index fetch. Typically this will release cross index fetch resources - * held in IndexFetchTableData. - */ -static inline void -table_index_fetch_reset(struct IndexFetchTableData *scan) -{ - scan->rel->rd_tableam->index_fetch_reset(scan); -} - -/* - * Release resources and deallocate index fetch. - */ -static inline void -table_index_fetch_end(struct IndexFetchTableData *scan) -{ - scan->rel->rd_tableam->index_fetch_end(scan); -} - -/* - * Fetches, as part of an index scan, tuple at `tid` into `slot`, after doing - * a visibility test according to `snapshot`. If a tuple was found and passed - * the visibility test, returns true, false otherwise. Note that *tid may be - * modified when we return true (see later remarks on multiple row versions - * reachable via a single index entry). - * - * *call_again needs to be false on the first call to table_index_fetch_tuple() for - * a tid. If there potentially is another tuple matching the tid, *call_again - * will be set to true, signaling that table_index_fetch_tuple() should be called - * again for the same tid. - * - * *all_dead, if all_dead is not NULL, will be set to true by - * table_index_fetch_tuple() iff it is guaranteed that no backend needs to see - * that tuple. Index AMs can use that to avoid returning that tid in future - * searches. - * - * The difference between this function and table_tuple_fetch_row_version() - * is that this function returns the currently visible version of a row if - * the AM supports storing multiple row versions reachable via a single index - * entry (like heap's HOT). Whereas table_tuple_fetch_row_version() only - * evaluates the tuple exactly at `tid`. Outside of index entry ->table tuple - * lookups, table_tuple_fetch_row_version() is what's usually needed. - */ -static inline bool -table_index_fetch_tuple(struct IndexFetchTableData *scan, - ItemPointer tid, - Snapshot snapshot, - TupleTableSlot *slot, - bool *call_again, bool *all_dead) -{ - /* - * We don't expect direct calls to table_index_fetch_tuple with valid - * CheckXidAlive for catalog or regular tables. See detailed comments in - * xact.c where these variables are declared. - */ - if (unlikely(TransactionIdIsValid(CheckXidAlive) && !bsysscan)) - elog(ERROR, "unexpected table_index_fetch_tuple call during logical decoding"); - - return scan->rel->rd_tableam->index_fetch_tuple(scan, tid, snapshot, - slot, call_again, - all_dead); -} - -/* - * This is a convenience wrapper around table_index_fetch_tuple() which - * returns whether there are table tuple items corresponding to an index - * entry. This likely is only useful to verify if there's a conflict in a - * unique index. - */ -extern bool table_index_fetch_tuple_check(Relation rel, - ItemPointer tid, - Snapshot snapshot, - bool *all_dead); - - -/* ------------------------------------------------------------------------ - * Functions for non-modifying operations on individual tuples - * ------------------------------------------------------------------------ - */ - - -/* - * Fetch tuple at `tid` into `slot`, after doing a visibility test according to - * `snapshot`. If a tuple was found and passed the visibility test, returns - * true, false otherwise. - * - * See table_index_fetch_tuple's comment about what the difference between - * these functions is. It is correct to use this function outside of index - * entry->table tuple lookups. - */ -static inline bool -table_tuple_fetch_row_version(Relation rel, - ItemPointer tid, - Snapshot snapshot, - TupleTableSlot *slot) -{ - /* - * We don't expect direct calls to table_tuple_fetch_row_version with - * valid CheckXidAlive for catalog or regular tables. See detailed - * comments in xact.c where these variables are declared. - */ - if (unlikely(TransactionIdIsValid(CheckXidAlive) && !bsysscan)) - elog(ERROR, "unexpected table_tuple_fetch_row_version call during logical decoding"); - - return rel->rd_tableam->tuple_fetch_row_version(rel, tid, snapshot, slot); -} - -/* - * Verify that `tid` is a potentially valid tuple identifier. That doesn't - * mean that the pointed to row needs to exist or be visible, but that - * attempting to fetch the row (e.g. with table_tuple_get_latest_tid() or - * table_tuple_fetch_row_version()) should not error out if called with that - * tid. - * - * `scan` needs to have been started via table_beginscan(). - */ -static inline bool -table_tuple_tid_valid(TableScanDesc scan, ItemPointer tid) -{ - return scan->rs_rd->rd_tableam->tuple_tid_valid(scan, tid); -} - -/* - * Return the latest version of the tuple at `tid`, by updating `tid` to - * point at the newest version. - */ -extern void table_tuple_get_latest_tid(TableScanDesc scan, ItemPointer tid); - -/* - * Return true iff tuple in slot satisfies the snapshot. - * - * This assumes the slot's tuple is valid, and of the appropriate type for the - * AM. - * - * Some AMs might modify the data underlying the tuple as a side-effect. If so - * they ought to mark the relevant buffer dirty. - */ -static inline bool -table_tuple_satisfies_snapshot(Relation rel, TupleTableSlot *slot, - Snapshot snapshot) -{ - return rel->rd_tableam->tuple_satisfies_snapshot(rel, slot, snapshot); -} - -/* - * Determine which index tuples are safe to delete based on their table TID. - * - * Determines which entries from index AM caller's TM_IndexDeleteOp state - * point to vacuumable table tuples. Entries that are found by tableam to be - * vacuumable are naturally safe for index AM to delete, and so get directly - * marked as deletable. See comments above TM_IndexDelete and comments above - * TM_IndexDeleteOp for full details. - * - * Returns a latestRemovedXid transaction ID that caller generally places in - * its index deletion WAL record. This might be used during subsequent REDO - * of the WAL record when in Hot Standby mode -- a recovery conflict for the - * index deletion operation might be required on the standby. - */ -static inline TransactionId -table_index_delete_tuples(Relation rel, TM_IndexDeleteOp *delstate) -{ - return rel->rd_tableam->index_delete_tuples(rel, delstate); -} - - -/* ---------------------------------------------------------------------------- - * Functions for manipulations of physical tuples. - * ---------------------------------------------------------------------------- - */ - -/* - * Insert a tuple from a slot into table AM routine. - * - * The options bitmask allows the caller to specify options that may change the - * behaviour of the AM. The AM will ignore options that it does not support. - * - * If the TABLE_INSERT_SKIP_FSM option is specified, AMs are free to not reuse - * free space in the relation. This can save some cycles when we know the - * relation is new and doesn't contain useful amounts of free space. - * TABLE_INSERT_SKIP_FSM is commonly passed directly to - * RelationGetBufferForTuple. See that method for more information. - * - * TABLE_INSERT_FROZEN should only be specified for inserts into - * relfilenodes created during the current subtransaction and when - * there are no prior snapshots or pre-existing portals open. - * This causes rows to be frozen, which is an MVCC violation and - * requires explicit options chosen by user. - * - * TABLE_INSERT_NO_LOGICAL force-disables the emitting of logical decoding - * information for the tuple. This should solely be used during table rewrites - * where RelationIsLogicallyLogged(relation) is not yet accurate for the new - * relation. - * - * Note that most of these options will be applied when inserting into the - * heap's TOAST table, too, if the tuple requires any out-of-line data. - * - * The BulkInsertState object (if any; bistate can be NULL for default - * behavior) is also just passed through to RelationGetBufferForTuple. If - * `bistate` is provided, table_finish_bulk_insert() needs to be called. - * - * On return the slot's tts_tid and tts_tableOid are updated to reflect the - * insertion. But note that any toasting of fields within the slot is NOT - * reflected in the slots contents. - */ -static inline void -table_tuple_insert(Relation rel, TupleTableSlot *slot, CommandId cid, - int options, struct BulkInsertStateData *bistate) -{ - rel->rd_tableam->tuple_insert(rel, slot, cid, options, - bistate); -} - -/* - * Perform a "speculative insertion". These can be backed out afterwards - * without aborting the whole transaction. Other sessions can wait for the - * speculative insertion to be confirmed, turning it into a regular tuple, or - * aborted, as if it never existed. Speculatively inserted tuples behave as - * "value locks" of short duration, used to implement INSERT .. ON CONFLICT. - * - * A transaction having performed a speculative insertion has to either abort, - * or finish the speculative insertion with - * table_tuple_complete_speculative(succeeded = ...). - */ -static inline void -table_tuple_insert_speculative(Relation rel, TupleTableSlot *slot, - CommandId cid, int options, - struct BulkInsertStateData *bistate, - uint32 specToken) -{ - rel->rd_tableam->tuple_insert_speculative(rel, slot, cid, options, - bistate, specToken); -} - -/* - * Complete "speculative insertion" started in the same transaction. If - * succeeded is true, the tuple is fully inserted, if false, it's removed. - */ -static inline void -table_tuple_complete_speculative(Relation rel, TupleTableSlot *slot, - uint32 specToken, bool succeeded) -{ - rel->rd_tableam->tuple_complete_speculative(rel, slot, specToken, - succeeded); -} - -/* - * Insert multiple tuples into a table. - * - * This is like table_tuple_insert(), but inserts multiple tuples in one - * operation. That's often faster than calling table_tuple_insert() in a loop, - * because e.g. the AM can reduce WAL logging and page locking overhead. - * - * Except for taking `nslots` tuples as input, and an array of TupleTableSlots - * in `slots`, the parameters for table_multi_insert() are the same as for - * table_tuple_insert(). - * - * Note: this leaks memory into the current memory context. You can create a - * temporary context before calling this, if that's a problem. - */ -static inline void -table_multi_insert(Relation rel, TupleTableSlot **slots, int nslots, - CommandId cid, int options, struct BulkInsertStateData *bistate) -{ - rel->rd_tableam->multi_insert(rel, slots, nslots, - cid, options, bistate); -} - -/* - * Delete a tuple. - * - * NB: do not call this directly unless prepared to deal with - * concurrent-update conditions. Use simple_table_tuple_delete instead. - * - * Input parameters: - * relation - table to be modified (caller must hold suitable lock) - * tid - TID of tuple to be deleted - * cid - delete command ID (used for visibility test, and stored into - * cmax if successful) - * crosscheck - if not InvalidSnapshot, also check tuple against this - * wait - true if should wait for any conflicting update to commit/abort - * Output parameters: - * tmfd - filled in failure cases (see below) - * changingPart - true iff the tuple is being moved to another partition - * table due to an update of the partition key. Otherwise, false. - * - * Normal, successful return value is TM_Ok, which means we did actually - * delete it. Failure return codes are TM_SelfModified, TM_Updated, and - * TM_BeingModified (the last only possible if wait == false). - * - * In the failure cases, the routine fills *tmfd with the tuple's t_ctid, - * t_xmax, and, if possible, and, if possible, t_cmax. See comments for - * struct TM_FailureData for additional info. - */ -static inline TM_Result -table_tuple_delete(Relation rel, ItemPointer tid, CommandId cid, - Snapshot snapshot, Snapshot crosscheck, bool wait, - TM_FailureData *tmfd, bool changingPart) -{ - return rel->rd_tableam->tuple_delete(rel, tid, cid, - snapshot, crosscheck, - wait, tmfd, changingPart); -} - -/* - * Update a tuple. - * - * NB: do not call this directly unless you are prepared to deal with - * concurrent-update conditions. Use simple_table_tuple_update instead. - * - * Input parameters: - * relation - table to be modified (caller must hold suitable lock) - * otid - TID of old tuple to be replaced - * slot - newly constructed tuple data to store - * cid - update command ID (used for visibility test, and stored into - * cmax/cmin if successful) - * crosscheck - if not InvalidSnapshot, also check old tuple against this - * wait - true if should wait for any conflicting update to commit/abort - * Output parameters: - * tmfd - filled in failure cases (see below) - * lockmode - filled with lock mode acquired on tuple - * update_indexes - in success cases this is set to true if new index entries - * are required for this tuple - * - * Normal, successful return value is TM_Ok, which means we did actually - * update it. Failure return codes are TM_SelfModified, TM_Updated, and - * TM_BeingModified (the last only possible if wait == false). - * - * On success, the slot's tts_tid and tts_tableOid are updated to match the new - * stored tuple; in particular, slot->tts_tid is set to the TID where the - * new tuple was inserted, and its HEAP_ONLY_TUPLE flag is set iff a HOT - * update was done. However, any TOAST changes in the new tuple's - * data are not reflected into *newtup. - * - * In the failure cases, the routine fills *tmfd with the tuple's t_ctid, - * t_xmax, and, if possible, t_cmax. See comments for struct TM_FailureData - * for additional info. - */ -static inline TM_Result -table_tuple_update(Relation rel, ItemPointer otid, TupleTableSlot *slot, - CommandId cid, Snapshot snapshot, Snapshot crosscheck, - bool wait, TM_FailureData *tmfd, LockTupleMode *lockmode, - bool *update_indexes) -{ - return rel->rd_tableam->tuple_update(rel, otid, slot, - cid, snapshot, crosscheck, - wait, tmfd, - lockmode, update_indexes); -} - -/* - * Lock a tuple in the specified mode. - * - * Input parameters: - * relation: relation containing tuple (caller must hold suitable lock) - * tid: TID of tuple to lock - * snapshot: snapshot to use for visibility determinations - * cid: current command ID (used for visibility test, and stored into - * tuple's cmax if lock is successful) - * mode: lock mode desired - * wait_policy: what to do if tuple lock is not available - * flags: - * If TUPLE_LOCK_FLAG_LOCK_UPDATE_IN_PROGRESS, follow the update chain to - * also lock descendant tuples if lock modes don't conflict. - * If TUPLE_LOCK_FLAG_FIND_LAST_VERSION, follow the update chain and lock - * latest version. - * - * Output parameters: - * *slot: contains the target tuple - * *tmfd: filled in failure cases (see below) - * - * Function result may be: - * TM_Ok: lock was successfully acquired - * TM_Invisible: lock failed because tuple was never visible to us - * TM_SelfModified: lock failed because tuple updated by self - * TM_Updated: lock failed because tuple updated by other xact - * TM_Deleted: lock failed because tuple deleted by other xact - * TM_WouldBlock: lock couldn't be acquired and wait_policy is skip - * - * In the failure cases other than TM_Invisible and TM_Deleted, the routine - * fills *tmfd with the tuple's t_ctid, t_xmax, and, if possible, t_cmax. See - * comments for struct TM_FailureData for additional info. - */ -static inline TM_Result -table_tuple_lock(Relation rel, ItemPointer tid, Snapshot snapshot, - TupleTableSlot *slot, CommandId cid, LockTupleMode mode, - LockWaitPolicy wait_policy, uint8 flags, - TM_FailureData *tmfd) -{ - return rel->rd_tableam->tuple_lock(rel, tid, snapshot, slot, - cid, mode, wait_policy, - flags, tmfd); -} - -/* - * Perform operations necessary to complete insertions made via - * tuple_insert and multi_insert with a BulkInsertState specified. - */ -static inline void -table_finish_bulk_insert(Relation rel, int options) -{ - /* optional callback */ - if (rel->rd_tableam && rel->rd_tableam->finish_bulk_insert) - rel->rd_tableam->finish_bulk_insert(rel, options); -} - - -/* ------------------------------------------------------------------------ - * DDL related functionality. - * ------------------------------------------------------------------------ - */ - -/* - * Create storage for `rel` in `newrnode`, with persistence set to - * `persistence`. - * - * This is used both during relation creation and various DDL operations to - * create a new relfilenode that can be filled from scratch. When creating - * new storage for an existing relfilenode, this should be called before the - * relcache entry has been updated. - * - * *freezeXid, *minmulti are set to the xid / multixact horizon for the table - * that pg_class.{relfrozenxid, relminmxid} have to be set to. - */ -static inline void -table_relation_set_new_filenode(Relation rel, - const RelFileNode *newrnode, - char persistence, - TransactionId *freezeXid, - MultiXactId *minmulti) -{ - rel->rd_tableam->relation_set_new_filenode(rel, newrnode, persistence, - freezeXid, minmulti); -} - -/* - * Remove all table contents from `rel`, in a non-transactional manner. - * Non-transactional meaning that there's no need to support rollbacks. This - * commonly only is used to perform truncations for relfilenodes created in the - * current transaction. - */ -static inline void -table_relation_nontransactional_truncate(Relation rel) -{ - rel->rd_tableam->relation_nontransactional_truncate(rel); -} - -/* - * Copy data from `rel` into the new relfilenode `newrnode`. The new - * relfilenode may not have storage associated before this function is - * called. This is only supposed to be used for low level operations like - * changing a relation's tablespace. - */ -static inline void -table_relation_copy_data(Relation rel, const RelFileNode *newrnode) -{ - rel->rd_tableam->relation_copy_data(rel, newrnode); -} - -/* - * Copy data from `OldTable` into `NewTable`, as part of a CLUSTER or VACUUM - * FULL. - * - * Additional Input parameters: - * - use_sort - if true, the table contents are sorted appropriate for - * `OldIndex`; if false and OldIndex is not InvalidOid, the data is copied - * in that index's order; if false and OldIndex is InvalidOid, no sorting is - * performed - * - OldIndex - see use_sort - * - OldestXmin - computed by vacuum_set_xid_limits(), even when - * not needed for the relation's AM - * - *xid_cutoff - ditto - * - *multi_cutoff - ditto - * - * Output parameters: - * - *xid_cutoff - rel's new relfrozenxid value, may be invalid - * - *multi_cutoff - rel's new relminmxid value, may be invalid - * - *tups_vacuumed - stats, for logging, if appropriate for AM - * - *tups_recently_dead - stats, for logging, if appropriate for AM - */ -static inline void -table_relation_copy_for_cluster(Relation OldTable, Relation NewTable, - Relation OldIndex, - bool use_sort, - TransactionId OldestXmin, - TransactionId *xid_cutoff, - MultiXactId *multi_cutoff, - double *num_tuples, - double *tups_vacuumed, - double *tups_recently_dead) -{ - OldTable->rd_tableam->relation_copy_for_cluster(OldTable, NewTable, OldIndex, - use_sort, OldestXmin, - xid_cutoff, multi_cutoff, - num_tuples, tups_vacuumed, - tups_recently_dead); -} - -/* - * Perform VACUUM on the relation. The VACUUM can be triggered by a user or by - * autovacuum. The specific actions performed by the AM will depend heavily on - * the individual AM. - * - * On entry a transaction needs to already been established, and the - * table is locked with a ShareUpdateExclusive lock. - * - * Note that neither VACUUM FULL (and CLUSTER), nor ANALYZE go through this - * routine, even if (for ANALYZE) it is part of the same VACUUM command. - */ -static inline void -table_relation_vacuum(Relation rel, struct VacuumParams *params, - BufferAccessStrategy bstrategy) -{ - rel->rd_tableam->relation_vacuum(rel, params, bstrategy); -} - -/* - * Prepare to analyze block `blockno` of `scan`. The scan needs to have been - * started with table_beginscan_analyze(). Note that this routine might - * acquire resources like locks that are held until - * table_scan_analyze_next_tuple() returns false. - * - * Returns false if block is unsuitable for sampling, true otherwise. - */ -static inline bool -table_scan_analyze_next_block(TableScanDesc scan, BlockNumber blockno, - BufferAccessStrategy bstrategy) -{ - return scan->rs_rd->rd_tableam->scan_analyze_next_block(scan, blockno, - bstrategy); -} - -/* - * Iterate over tuples in the block selected with - * table_scan_analyze_next_block() (which needs to have returned true, and - * this routine may not have returned false for the same block before). If a - * tuple that's suitable for sampling is found, true is returned and a tuple - * is stored in `slot`. - * - * *liverows and *deadrows are incremented according to the encountered - * tuples. - */ -static inline bool -table_scan_analyze_next_tuple(TableScanDesc scan, TransactionId OldestXmin, - double *liverows, double *deadrows, - TupleTableSlot *slot) -{ - return scan->rs_rd->rd_tableam->scan_analyze_next_tuple(scan, OldestXmin, - liverows, deadrows, - slot); -} - -/* - * table_index_build_scan - scan the table to find tuples to be indexed - * - * This is called back from an access-method-specific index build procedure - * after the AM has done whatever setup it needs. The parent table relation - * is scanned to find tuples that should be entered into the index. Each - * such tuple is passed to the AM's callback routine, which does the right - * things to add it to the new index. After we return, the AM's index - * build procedure does whatever cleanup it needs. - * - * The total count of live tuples is returned. This is for updating pg_class - * statistics. (It's annoying not to be able to do that here, but we want to - * merge that update with others; see index_update_stats.) Note that the - * index AM itself must keep track of the number of index tuples; we don't do - * so here because the AM might reject some of the tuples for its own reasons, - * such as being unable to store NULLs. - * - * If 'progress', the PROGRESS_SCAN_BLOCKS_TOTAL counter is updated when - * starting the scan, and PROGRESS_SCAN_BLOCKS_DONE is updated as we go along. - * - * A side effect is to set indexInfo->ii_BrokenHotChain to true if we detect - * any potentially broken HOT chains. Currently, we set this if there are any - * RECENTLY_DEAD or DELETE_IN_PROGRESS entries in a HOT chain, without trying - * very hard to detect whether they're really incompatible with the chain tip. - * This only really makes sense for heap AM, it might need to be generalized - * for other AMs later. - */ -static inline double -table_index_build_scan(Relation table_rel, - Relation index_rel, - struct IndexInfo *index_info, - bool allow_sync, - bool progress, - IndexBuildCallback callback, - void *callback_state, - TableScanDesc scan) -{ - return table_rel->rd_tableam->index_build_range_scan(table_rel, - index_rel, - index_info, - allow_sync, - false, - progress, - 0, - InvalidBlockNumber, - callback, - callback_state, - scan); -} - -/* - * As table_index_build_scan(), except that instead of scanning the complete - * table, only the given number of blocks are scanned. Scan to end-of-rel can - * be signaled by passing InvalidBlockNumber as numblocks. Note that - * restricting the range to scan cannot be done when requesting syncscan. - * - * When "anyvisible" mode is requested, all tuples visible to any transaction - * are indexed and counted as live, including those inserted or deleted by - * transactions that are still in progress. - */ -static inline double -table_index_build_range_scan(Relation table_rel, - Relation index_rel, - struct IndexInfo *index_info, - bool allow_sync, - bool anyvisible, - bool progress, - BlockNumber start_blockno, - BlockNumber numblocks, - IndexBuildCallback callback, - void *callback_state, - TableScanDesc scan) -{ - return table_rel->rd_tableam->index_build_range_scan(table_rel, - index_rel, - index_info, - allow_sync, - anyvisible, - progress, - start_blockno, - numblocks, - callback, - callback_state, - scan); -} - -/* - * table_index_validate_scan - second table scan for concurrent index build - * - * See validate_index() for an explanation. - */ -static inline void -table_index_validate_scan(Relation table_rel, - Relation index_rel, - struct IndexInfo *index_info, - Snapshot snapshot, - struct ValidateIndexState *state) -{ - table_rel->rd_tableam->index_validate_scan(table_rel, - index_rel, - index_info, - snapshot, - state); -} - - -/* ---------------------------------------------------------------------------- - * Miscellaneous functionality - * ---------------------------------------------------------------------------- - */ - -/* - * Return the current size of `rel` in bytes. If `forkNumber` is - * InvalidForkNumber, return the relation's overall size, otherwise the size - * for the indicated fork. - * - * Note that the overall size might not be the equivalent of the sum of sizes - * for the individual forks for some AMs, e.g. because the AMs storage does - * not neatly map onto the builtin types of forks. - */ -static inline uint64 -table_relation_size(Relation rel, ForkNumber forkNumber) -{ - return rel->rd_tableam->relation_size(rel, forkNumber); -} - -/* - * table_relation_needs_toast_table - does this relation need a toast table? - */ -static inline bool -table_relation_needs_toast_table(Relation rel) -{ - return rel->rd_tableam->relation_needs_toast_table(rel); -} - -/* - * Return the OID of the AM that should be used to implement the TOAST table - * for this relation. - */ -static inline Oid -table_relation_toast_am(Relation rel) -{ - return rel->rd_tableam->relation_toast_am(rel); -} - -/* - * Fetch all or part of a TOAST value from a TOAST table. - * - * If this AM is never used to implement a TOAST table, then this callback - * is not needed. But, if toasted values are ever stored in a table of this - * type, then you will need this callback. - * - * toastrel is the relation in which the toasted value is stored. - * - * valueid identifes which toast value is to be fetched. For the heap, - * this corresponds to the values stored in the chunk_id column. - * - * attrsize is the total size of the toast value to be fetched. - * - * sliceoffset is the offset within the toast value of the first byte that - * should be fetched. - * - * slicelength is the number of bytes from the toast value that should be - * fetched. - * - * result is caller-allocated space into which the fetched bytes should be - * stored. - */ -static inline void -table_relation_fetch_toast_slice(Relation toastrel, Oid valueid, - int32 attrsize, int32 sliceoffset, - int32 slicelength, struct varlena *result) -{ - toastrel->rd_tableam->relation_fetch_toast_slice(toastrel, valueid, - attrsize, - sliceoffset, slicelength, - result); -} - - -/* ---------------------------------------------------------------------------- - * Planner related functionality - * ---------------------------------------------------------------------------- - */ - -/* - * Estimate the current size of the relation, as an AM specific workhorse for - * estimate_rel_size(). Look there for an explanation of the parameters. - */ -static inline void -table_relation_estimate_size(Relation rel, int32 *attr_widths, - BlockNumber *pages, double *tuples, - double *allvisfrac) -{ - rel->rd_tableam->relation_estimate_size(rel, attr_widths, pages, tuples, - allvisfrac); -} - - -/* ---------------------------------------------------------------------------- - * Executor related functionality - * ---------------------------------------------------------------------------- - */ - -/* - * Prepare to fetch / check / return tuples from `tbmres->blockno` as part of - * a bitmap table scan. `scan` needs to have been started via - * table_beginscan_bm(). Returns false if there are no tuples to be found on - * the page, true otherwise. - * - * Note, this is an optionally implemented function, therefore should only be - * used after verifying the presence (at plan time or such). - */ -static inline bool -table_scan_bitmap_next_block(TableScanDesc scan, - struct TBMIterateResult *tbmres) -{ - /* - * We don't expect direct calls to table_scan_bitmap_next_block with valid - * CheckXidAlive for catalog or regular tables. See detailed comments in - * xact.c where these variables are declared. - */ - if (unlikely(TransactionIdIsValid(CheckXidAlive) && !bsysscan)) - elog(ERROR, "unexpected table_scan_bitmap_next_block call during logical decoding"); - - return scan->rs_rd->rd_tableam->scan_bitmap_next_block(scan, - tbmres); -} - -/* - * Fetch the next tuple of a bitmap table scan into `slot` and return true if - * a visible tuple was found, false otherwise. - * table_scan_bitmap_next_block() needs to previously have selected a - * block (i.e. returned true), and no previous - * table_scan_bitmap_next_tuple() for the same block may have - * returned false. - */ -static inline bool -table_scan_bitmap_next_tuple(TableScanDesc scan, - struct TBMIterateResult *tbmres, - TupleTableSlot *slot) -{ - /* - * We don't expect direct calls to table_scan_bitmap_next_tuple with valid - * CheckXidAlive for catalog or regular tables. See detailed comments in - * xact.c where these variables are declared. - */ - if (unlikely(TransactionIdIsValid(CheckXidAlive) && !bsysscan)) - elog(ERROR, "unexpected table_scan_bitmap_next_tuple call during logical decoding"); - - return scan->rs_rd->rd_tableam->scan_bitmap_next_tuple(scan, - tbmres, - slot); -} - -/* - * Prepare to fetch tuples from the next block in a sample scan. Returns false - * if the sample scan is finished, true otherwise. `scan` needs to have been - * started via table_beginscan_sampling(). - * - * This will call the TsmRoutine's NextSampleBlock() callback if necessary - * (i.e. NextSampleBlock is not NULL), or perform a sequential scan over the - * underlying relation. - */ -static inline bool -table_scan_sample_next_block(TableScanDesc scan, - struct SampleScanState *scanstate) -{ - /* - * We don't expect direct calls to table_scan_sample_next_block with valid - * CheckXidAlive for catalog or regular tables. See detailed comments in - * xact.c where these variables are declared. - */ - if (unlikely(TransactionIdIsValid(CheckXidAlive) && !bsysscan)) - elog(ERROR, "unexpected table_scan_sample_next_block call during logical decoding"); - return scan->rs_rd->rd_tableam->scan_sample_next_block(scan, scanstate); -} - -/* - * Fetch the next sample tuple into `slot` and return true if a visible tuple - * was found, false otherwise. table_scan_sample_next_block() needs to - * previously have selected a block (i.e. returned true), and no previous - * table_scan_sample_next_tuple() for the same block may have returned false. - * - * This will call the TsmRoutine's NextSampleTuple() callback. - */ -static inline bool -table_scan_sample_next_tuple(TableScanDesc scan, - struct SampleScanState *scanstate, - TupleTableSlot *slot) -{ - /* - * We don't expect direct calls to table_scan_sample_next_tuple with valid - * CheckXidAlive for catalog or regular tables. See detailed comments in - * xact.c where these variables are declared. - */ - if (unlikely(TransactionIdIsValid(CheckXidAlive) && !bsysscan)) - elog(ERROR, "unexpected table_scan_sample_next_tuple call during logical decoding"); - return scan->rs_rd->rd_tableam->scan_sample_next_tuple(scan, scanstate, - slot); -} - - -/* ---------------------------------------------------------------------------- - * Functions to make modifications a bit simpler. - * ---------------------------------------------------------------------------- - */ - -extern void simple_table_tuple_insert(Relation rel, TupleTableSlot *slot); -extern void simple_table_tuple_delete(Relation rel, ItemPointer tid, - Snapshot snapshot); -extern void simple_table_tuple_update(Relation rel, ItemPointer otid, - TupleTableSlot *slot, Snapshot snapshot, - bool *update_indexes); - - -/* ---------------------------------------------------------------------------- - * Helper functions to implement parallel scans for block oriented AMs. - * ---------------------------------------------------------------------------- - */ - -extern Size table_block_parallelscan_estimate(Relation rel); -extern Size table_block_parallelscan_initialize(Relation rel, - ParallelTableScanDesc pscan); -extern void table_block_parallelscan_reinitialize(Relation rel, - ParallelTableScanDesc pscan); -extern BlockNumber table_block_parallelscan_nextpage(Relation rel, - ParallelBlockTableScanWorker pbscanwork, - ParallelBlockTableScanDesc pbscan); -extern void table_block_parallelscan_startblock_init(Relation rel, - ParallelBlockTableScanWorker pbscanwork, - ParallelBlockTableScanDesc pbscan); - - -/* ---------------------------------------------------------------------------- - * Helper functions to implement relation sizing for block oriented AMs. - * ---------------------------------------------------------------------------- - */ - -extern uint64 table_block_relation_size(Relation rel, ForkNumber forkNumber); -extern void table_block_relation_estimate_size(Relation rel, - int32 *attr_widths, - BlockNumber *pages, - double *tuples, - double *allvisfrac, - Size overhead_bytes_per_tuple, - Size usable_bytes_per_page); - -/* ---------------------------------------------------------------------------- - * Functions in tableamapi.c - * ---------------------------------------------------------------------------- - */ - -extern const TableAmRoutine *GetTableAmRoutine(Oid amhandler); -extern const TableAmRoutine *GetHeapamTableAmRoutine(void); -extern bool check_default_table_access_method(char **newval, void **extra, - GucSource source); - -#endif /* TABLEAM_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/toast_compression.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/toast_compression.h deleted file mode 100644 index deb8f99da..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/toast_compression.h +++ /dev/null @@ -1,73 +0,0 @@ -/*------------------------------------------------------------------------- - * - * toast_compression.h - * Functions for toast compression. - * - * Copyright (c) 2021-2022, PostgreSQL Global Development Group - * - * src/include/access/toast_compression.h - * - *------------------------------------------------------------------------- - */ - -#ifndef TOAST_COMPRESSION_H -#define TOAST_COMPRESSION_H - -/* - * GUC support. - * - * default_toast_compression is an integer for purposes of the GUC machinery, - * but the value is one of the char values defined below, as they appear in - * pg_attribute.attcompression, e.g. TOAST_PGLZ_COMPRESSION. - */ -extern PGDLLIMPORT int default_toast_compression; - -/* - * Built-in compression method ID. The toast compression header will store - * this in the first 2 bits of the raw length. These built-in compression - * method IDs are directly mapped to the built-in compression methods. - * - * Don't use these values for anything other than understanding the meaning - * of the raw bits from a varlena; in particular, if the goal is to identify - * a compression method, use the constants TOAST_PGLZ_COMPRESSION, etc. - * below. We might someday support more than 4 compression methods, but - * we can never have more than 4 values in this enum, because there are - * only 2 bits available in the places where this is stored. - */ -typedef enum ToastCompressionId -{ - TOAST_PGLZ_COMPRESSION_ID = 0, - TOAST_LZ4_COMPRESSION_ID = 1, - TOAST_INVALID_COMPRESSION_ID = 2 -} ToastCompressionId; - -/* - * Built-in compression methods. pg_attribute will store these in the - * attcompression column. In attcompression, InvalidCompressionMethod - * denotes the default behavior. - */ -#define TOAST_PGLZ_COMPRESSION 'p' -#define TOAST_LZ4_COMPRESSION 'l' -#define InvalidCompressionMethod '\0' - -#define CompressionMethodIsValid(cm) ((cm) != InvalidCompressionMethod) - - -/* pglz compression/decompression routines */ -extern struct varlena *pglz_compress_datum(const struct varlena *value); -extern struct varlena *pglz_decompress_datum(const struct varlena *value); -extern struct varlena *pglz_decompress_datum_slice(const struct varlena *value, - int32 slicelength); - -/* lz4 compression/decompression routines */ -extern struct varlena *lz4_compress_datum(const struct varlena *value); -extern struct varlena *lz4_decompress_datum(const struct varlena *value); -extern struct varlena *lz4_decompress_datum_slice(const struct varlena *value, - int32 slicelength); - -/* other stuff */ -extern ToastCompressionId toast_get_compression_id(struct varlena *attr); -extern char CompressionNameToMethod(const char *compression); -extern const char *GetCompressionMethodName(char method); - -#endif /* TOAST_COMPRESSION_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/transam.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/transam.h deleted file mode 100644 index 775471d2a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/transam.h +++ /dev/null @@ -1,375 +0,0 @@ -/*------------------------------------------------------------------------- - * - * transam.h - * postgres transaction access method support code - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/transam.h - * - *------------------------------------------------------------------------- - */ -#ifndef TRANSAM_H -#define TRANSAM_H - -#include "access/xlogdefs.h" - - -/* ---------------- - * Special transaction ID values - * - * BootstrapTransactionId is the XID for "bootstrap" operations, and - * FrozenTransactionId is used for very old tuples. Both should - * always be considered valid. - * - * FirstNormalTransactionId is the first "normal" transaction id. - * Note: if you need to change it, you must change pg_class.h as well. - * ---------------- - */ -#define InvalidTransactionId ((TransactionId) 0) -#define BootstrapTransactionId ((TransactionId) 1) -#define FrozenTransactionId ((TransactionId) 2) -#define FirstNormalTransactionId ((TransactionId) 3) -#define MaxTransactionId ((TransactionId) 0xFFFFFFFF) - -/* ---------------- - * transaction ID manipulation macros - * ---------------- - */ -#define TransactionIdIsValid(xid) ((xid) != InvalidTransactionId) -#define TransactionIdIsNormal(xid) ((xid) >= FirstNormalTransactionId) -#define TransactionIdEquals(id1, id2) ((id1) == (id2)) -#define TransactionIdStore(xid, dest) (*(dest) = (xid)) -#define StoreInvalidTransactionId(dest) (*(dest) = InvalidTransactionId) - -#define EpochFromFullTransactionId(x) ((uint32) ((x).value >> 32)) -#define XidFromFullTransactionId(x) ((uint32) (x).value) -#define U64FromFullTransactionId(x) ((x).value) -#define FullTransactionIdEquals(a, b) ((a).value == (b).value) -#define FullTransactionIdPrecedes(a, b) ((a).value < (b).value) -#define FullTransactionIdPrecedesOrEquals(a, b) ((a).value <= (b).value) -#define FullTransactionIdFollows(a, b) ((a).value > (b).value) -#define FullTransactionIdFollowsOrEquals(a, b) ((a).value >= (b).value) -#define FullTransactionIdIsValid(x) TransactionIdIsValid(XidFromFullTransactionId(x)) -#define InvalidFullTransactionId FullTransactionIdFromEpochAndXid(0, InvalidTransactionId) -#define FirstNormalFullTransactionId FullTransactionIdFromEpochAndXid(0, FirstNormalTransactionId) -#define FullTransactionIdIsNormal(x) FullTransactionIdFollowsOrEquals(x, FirstNormalFullTransactionId) - -/* - * A 64 bit value that contains an epoch and a TransactionId. This is - * wrapped in a struct to prevent implicit conversion to/from TransactionId. - * Not all values represent valid normal XIDs. - */ -typedef struct FullTransactionId -{ - uint64 value; -} FullTransactionId; - -static inline FullTransactionId -FullTransactionIdFromEpochAndXid(uint32 epoch, TransactionId xid) -{ - FullTransactionId result; - - result.value = ((uint64) epoch) << 32 | xid; - - return result; -} - -static inline FullTransactionId -FullTransactionIdFromU64(uint64 value) -{ - FullTransactionId result; - - result.value = value; - - return result; -} - -/* advance a transaction ID variable, handling wraparound correctly */ -#define TransactionIdAdvance(dest) \ - do { \ - (dest)++; \ - if ((dest) < FirstNormalTransactionId) \ - (dest) = FirstNormalTransactionId; \ - } while(0) - -/* - * Retreat a FullTransactionId variable, stepping over xids that would appear - * to be special only when viewed as 32bit XIDs. - */ -static inline void -FullTransactionIdRetreat(FullTransactionId *dest) -{ - dest->value--; - - /* - * In contrast to 32bit XIDs don't step over the "actual" special xids. - * For 64bit xids these can't be reached as part of a wraparound as they - * can in the 32bit case. - */ - if (FullTransactionIdPrecedes(*dest, FirstNormalFullTransactionId)) - return; - - /* - * But we do need to step over XIDs that'd appear special only for 32bit - * XIDs. - */ - while (XidFromFullTransactionId(*dest) < FirstNormalTransactionId) - dest->value--; -} - -/* - * Advance a FullTransactionId variable, stepping over xids that would appear - * to be special only when viewed as 32bit XIDs. - */ -static inline void -FullTransactionIdAdvance(FullTransactionId *dest) -{ - dest->value++; - - /* see FullTransactionIdAdvance() */ - if (FullTransactionIdPrecedes(*dest, FirstNormalFullTransactionId)) - return; - - while (XidFromFullTransactionId(*dest) < FirstNormalTransactionId) - dest->value++; -} - -/* back up a transaction ID variable, handling wraparound correctly */ -#define TransactionIdRetreat(dest) \ - do { \ - (dest)--; \ - } while ((dest) < FirstNormalTransactionId) - -/* compare two XIDs already known to be normal; this is a macro for speed */ -#define NormalTransactionIdPrecedes(id1, id2) \ - (AssertMacro(TransactionIdIsNormal(id1) && TransactionIdIsNormal(id2)), \ - (int32) ((id1) - (id2)) < 0) - -/* compare two XIDs already known to be normal; this is a macro for speed */ -#define NormalTransactionIdFollows(id1, id2) \ - (AssertMacro(TransactionIdIsNormal(id1) && TransactionIdIsNormal(id2)), \ - (int32) ((id1) - (id2)) > 0) - -/* ---------- - * Object ID (OID) zero is InvalidOid. - * - * OIDs 1-9999 are reserved for manual assignment (see .dat files in - * src/include/catalog/). Of these, 8000-9999 are reserved for - * development purposes (such as in-progress patches and forks); - * they should not appear in released versions. - * - * OIDs 10000-11999 are reserved for assignment by genbki.pl, for use - * when the .dat files in src/include/catalog/ do not specify an OID - * for a catalog entry that requires one. Note that genbki.pl assigns - * these OIDs independently in each catalog, so they're not guaranteed - * to be globally unique. Furthermore, the bootstrap backend and - * initdb's post-bootstrap processing can also assign OIDs in this range. - * The normal OID-generation logic takes care of any OID conflicts that - * might arise from that. - * - * OIDs 12000-16383 are reserved for unpinned objects created by initdb's - * post-bootstrap processing. initdb forces the OID generator up to - * 12000 as soon as it's made the pinned objects it's responsible for. - * - * OIDs beginning at 16384 are assigned from the OID generator - * during normal multiuser operation. (We force the generator up to - * 16384 as soon as we are in normal operation.) - * - * The choices of 8000, 10000 and 12000 are completely arbitrary, and can be - * moved if we run low on OIDs in any category. Changing the macros below, - * and updating relevant documentation (see bki.sgml and RELEASE_CHANGES), - * should be sufficient to do this. Moving the 16384 boundary between - * initdb-assigned OIDs and user-defined objects would be substantially - * more painful, however, since some user-defined OIDs will appear in - * on-disk data; such a change would probably break pg_upgrade. - * - * NOTE: if the OID generator wraps around, we skip over OIDs 0-16383 - * and resume with 16384. This minimizes the odds of OID conflict, by not - * reassigning OIDs that might have been assigned during initdb. Critically, - * it also ensures that no user-created object will be considered pinned. - * ---------- - */ -#define FirstGenbkiObjectId 10000 -#define FirstUnpinnedObjectId 12000 -#define FirstNormalObjectId 16384 - -/* - * VariableCache is a data structure in shared memory that is used to track - * OID and XID assignment state. For largely historical reasons, there is - * just one struct with different fields that are protected by different - * LWLocks. - * - * Note: xidWrapLimit and oldestXidDB are not "active" values, but are - * used just to generate useful messages when xidWarnLimit or xidStopLimit - * are exceeded. - */ -typedef struct VariableCacheData -{ - /* - * These fields are protected by OidGenLock. - */ - Oid nextOid; /* next OID to assign */ - uint32 oidCount; /* OIDs available before must do XLOG work */ - - /* - * These fields are protected by XidGenLock. - */ - FullTransactionId nextXid; /* next XID to assign */ - - TransactionId oldestXid; /* cluster-wide minimum datfrozenxid */ - TransactionId xidVacLimit; /* start forcing autovacuums here */ - TransactionId xidWarnLimit; /* start complaining here */ - TransactionId xidStopLimit; /* refuse to advance nextXid beyond here */ - TransactionId xidWrapLimit; /* where the world ends */ - Oid oldestXidDB; /* database with minimum datfrozenxid */ - - /* - * These fields are protected by CommitTsLock - */ - TransactionId oldestCommitTsXid; - TransactionId newestCommitTsXid; - - /* - * These fields are protected by ProcArrayLock. - */ - FullTransactionId latestCompletedXid; /* newest full XID that has - * committed or aborted */ - - /* - * Number of top-level transactions with xids (i.e. which may have - * modified the database) that completed in some form since the start of - * the server. This currently is solely used to check whether - * GetSnapshotData() needs to recompute the contents of the snapshot, or - * not. There are likely other users of this. Always above 1. - */ - uint64 xactCompletionCount; - - /* - * These fields are protected by XactTruncationLock - */ - TransactionId oldestClogXid; /* oldest it's safe to look up in clog */ - -} VariableCacheData; - -typedef VariableCacheData *VariableCache; - - -/* ---------------- - * extern declarations - * ---------------- - */ - -/* in transam/xact.c */ -extern bool TransactionStartedDuringRecovery(void); - -/* in transam/varsup.c */ -extern PGDLLIMPORT VariableCache ShmemVariableCache; - -/* - * prototypes for functions in transam/transam.c - */ -extern bool TransactionIdDidCommit(TransactionId transactionId); -extern bool TransactionIdDidAbort(TransactionId transactionId); -extern void TransactionIdCommitTree(TransactionId xid, int nxids, TransactionId *xids); -extern void TransactionIdAsyncCommitTree(TransactionId xid, int nxids, TransactionId *xids, XLogRecPtr lsn); -extern void TransactionIdAbortTree(TransactionId xid, int nxids, TransactionId *xids); -extern bool TransactionIdPrecedes(TransactionId id1, TransactionId id2); -extern bool TransactionIdPrecedesOrEquals(TransactionId id1, TransactionId id2); -extern bool TransactionIdFollows(TransactionId id1, TransactionId id2); -extern bool TransactionIdFollowsOrEquals(TransactionId id1, TransactionId id2); -extern TransactionId TransactionIdLatest(TransactionId mainxid, - int nxids, const TransactionId *xids); -extern XLogRecPtr TransactionIdGetCommitLSN(TransactionId xid); - -/* in transam/varsup.c */ -extern FullTransactionId GetNewTransactionId(bool isSubXact); -extern void AdvanceNextFullTransactionIdPastXid(TransactionId xid); -extern FullTransactionId ReadNextFullTransactionId(void); -extern void SetTransactionIdLimit(TransactionId oldest_datfrozenxid, - Oid oldest_datoid); -extern void AdvanceOldestClogXid(TransactionId oldest_datfrozenxid); -extern bool ForceTransactionIdLimitUpdate(void); -extern Oid GetNewObjectId(void); -extern void StopGeneratingPinnedObjectIds(void); - -#ifdef USE_ASSERT_CHECKING -extern void AssertTransactionIdInAllowableRange(TransactionId xid); -#else -#define AssertTransactionIdInAllowableRange(xid) ((void)true) -#endif - -/* - * Some frontend programs include this header. For compilers that emit static - * inline functions even when they're unused, that leads to unsatisfied - * external references; hence hide them with #ifndef FRONTEND. - */ -#ifndef FRONTEND - -/* - * For callers that just need the XID part of the next transaction ID. - */ -static inline TransactionId -ReadNextTransactionId(void) -{ - return XidFromFullTransactionId(ReadNextFullTransactionId()); -} - -/* return transaction ID backed up by amount, handling wraparound correctly */ -static inline TransactionId -TransactionIdRetreatedBy(TransactionId xid, uint32 amount) -{ - xid -= amount; - - while (xid < FirstNormalTransactionId) - xid--; - - return xid; -} - -/* return the older of the two IDs */ -static inline TransactionId -TransactionIdOlder(TransactionId a, TransactionId b) -{ - if (!TransactionIdIsValid(a)) - return b; - - if (!TransactionIdIsValid(b)) - return a; - - if (TransactionIdPrecedes(a, b)) - return a; - return b; -} - -/* return the older of the two IDs, assuming they're both normal */ -static inline TransactionId -NormalTransactionIdOlder(TransactionId a, TransactionId b) -{ - Assert(TransactionIdIsNormal(a)); - Assert(TransactionIdIsNormal(b)); - if (NormalTransactionIdPrecedes(a, b)) - return a; - return b; -} - -/* return the newer of the two IDs */ -static inline FullTransactionId -FullTransactionIdNewer(FullTransactionId a, FullTransactionId b) -{ - if (!FullTransactionIdIsValid(a)) - return b; - - if (!FullTransactionIdIsValid(b)) - return a; - - if (FullTransactionIdFollows(a, b)) - return a; - return b; -} - -#endif /* FRONTEND */ - -#endif /* TRANSAM_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/tupconvert.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/tupconvert.h deleted file mode 100644 index f5a5fd826..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/tupconvert.h +++ /dev/null @@ -1,51 +0,0 @@ -/*------------------------------------------------------------------------- - * - * tupconvert.h - * Tuple conversion support. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/tupconvert.h - * - *------------------------------------------------------------------------- - */ -#ifndef TUPCONVERT_H -#define TUPCONVERT_H - -#include "access/attmap.h" -#include "access/htup.h" -#include "access/tupdesc.h" -#include "executor/tuptable.h" -#include "nodes/bitmapset.h" - - -typedef struct TupleConversionMap -{ - TupleDesc indesc; /* tupdesc for source rowtype */ - TupleDesc outdesc; /* tupdesc for result rowtype */ - AttrMap *attrMap; /* indexes of input fields, or 0 for null */ - Datum *invalues; /* workspace for deconstructing source */ - bool *inisnull; - Datum *outvalues; /* workspace for constructing result */ - bool *outisnull; -} TupleConversionMap; - - -extern TupleConversionMap *convert_tuples_by_position(TupleDesc indesc, - TupleDesc outdesc, - const char *msg); - -extern TupleConversionMap *convert_tuples_by_name(TupleDesc indesc, - TupleDesc outdesc); - -extern HeapTuple execute_attr_map_tuple(HeapTuple tuple, TupleConversionMap *map); -extern TupleTableSlot *execute_attr_map_slot(AttrMap *attrMap, - TupleTableSlot *in_slot, - TupleTableSlot *out_slot); -extern Bitmapset *execute_attr_map_cols(AttrMap *attrMap, Bitmapset *inbitmap); - -extern void free_conversion_map(TupleConversionMap *map); - -#endif /* TUPCONVERT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/tupdesc.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/tupdesc.h deleted file mode 100644 index 28dd6de18..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/tupdesc.h +++ /dev/null @@ -1,154 +0,0 @@ -/*------------------------------------------------------------------------- - * - * tupdesc.h - * POSTGRES tuple descriptor definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/tupdesc.h - * - *------------------------------------------------------------------------- - */ -#ifndef TUPDESC_H -#define TUPDESC_H - -#include "access/attnum.h" -#include "catalog/pg_attribute.h" -#include "nodes/pg_list.h" - - -typedef struct AttrDefault -{ - AttrNumber adnum; - char *adbin; /* nodeToString representation of expr */ -} AttrDefault; - -typedef struct ConstrCheck -{ - char *ccname; - char *ccbin; /* nodeToString representation of expr */ - bool ccvalid; - bool ccnoinherit; /* this is a non-inheritable constraint */ -} ConstrCheck; - -/* This structure contains constraints of a tuple */ -typedef struct TupleConstr -{ - AttrDefault *defval; /* array */ - ConstrCheck *check; /* array */ - struct AttrMissing *missing; /* missing attributes values, NULL if none */ - uint16 num_defval; - uint16 num_check; - bool has_not_null; - bool has_generated_stored; -} TupleConstr; - -/* - * This struct is passed around within the backend to describe the structure - * of tuples. For tuples coming from on-disk relations, the information is - * collected from the pg_attribute, pg_attrdef, and pg_constraint catalogs. - * Transient row types (such as the result of a join query) have anonymous - * TupleDesc structs that generally omit any constraint info; therefore the - * structure is designed to let the constraints be omitted efficiently. - * - * Note that only user attributes, not system attributes, are mentioned in - * TupleDesc. - * - * If the tupdesc is known to correspond to a named rowtype (such as a table's - * rowtype) then tdtypeid identifies that type and tdtypmod is -1. Otherwise - * tdtypeid is RECORDOID, and tdtypmod can be either -1 for a fully anonymous - * row type, or a value >= 0 to allow the rowtype to be looked up in the - * typcache.c type cache. - * - * Note that tdtypeid is never the OID of a domain over composite, even if - * we are dealing with values that are known (at some higher level) to be of - * a domain-over-composite type. This is because tdtypeid/tdtypmod need to - * match up with the type labeling of composite Datums, and those are never - * explicitly marked as being of a domain type, either. - * - * Tuple descriptors that live in caches (relcache or typcache, at present) - * are reference-counted: they can be deleted when their reference count goes - * to zero. Tuple descriptors created by the executor need no reference - * counting, however: they are simply created in the appropriate memory - * context and go away when the context is freed. We set the tdrefcount - * field of such a descriptor to -1, while reference-counted descriptors - * always have tdrefcount >= 0. - */ -typedef struct TupleDescData -{ - int natts; /* number of attributes in the tuple */ - Oid tdtypeid; /* composite type ID for tuple type */ - int32 tdtypmod; /* typmod for tuple type */ - int tdrefcount; /* reference count, or -1 if not counting */ - TupleConstr *constr; /* constraints, or NULL if none */ - /* attrs[N] is the description of Attribute Number N+1 */ - FormData_pg_attribute attrs[FLEXIBLE_ARRAY_MEMBER]; -} TupleDescData; -typedef struct TupleDescData *TupleDesc; - -/* Accessor for the i'th attribute of tupdesc. */ -#define TupleDescAttr(tupdesc, i) (&(tupdesc)->attrs[(i)]) - -extern TupleDesc CreateTemplateTupleDesc(int natts); - -extern TupleDesc CreateTupleDesc(int natts, Form_pg_attribute *attrs); - -extern TupleDesc CreateTupleDescCopy(TupleDesc tupdesc); - -extern TupleDesc CreateTupleDescCopyConstr(TupleDesc tupdesc); - -#define TupleDescSize(src) \ - (offsetof(struct TupleDescData, attrs) + \ - (src)->natts * sizeof(FormData_pg_attribute)) - -extern void TupleDescCopy(TupleDesc dst, TupleDesc src); - -extern void TupleDescCopyEntry(TupleDesc dst, AttrNumber dstAttno, - TupleDesc src, AttrNumber srcAttno); - -extern void FreeTupleDesc(TupleDesc tupdesc); - -extern void IncrTupleDescRefCount(TupleDesc tupdesc); -extern void DecrTupleDescRefCount(TupleDesc tupdesc); - -#define PinTupleDesc(tupdesc) \ - do { \ - if ((tupdesc)->tdrefcount >= 0) \ - IncrTupleDescRefCount(tupdesc); \ - } while (0) - -#define ReleaseTupleDesc(tupdesc) \ - do { \ - if ((tupdesc)->tdrefcount >= 0) \ - DecrTupleDescRefCount(tupdesc); \ - } while (0) - -extern bool equalTupleDescs(TupleDesc tupdesc1, TupleDesc tupdesc2); - -extern uint32 hashTupleDesc(TupleDesc tupdesc); - -extern void TupleDescInitEntry(TupleDesc desc, - AttrNumber attributeNumber, - const char *attributeName, - Oid oidtypeid, - int32 typmod, - int attdim); - -extern void TupleDescInitBuiltinEntry(TupleDesc desc, - AttrNumber attributeNumber, - const char *attributeName, - Oid oidtypeid, - int32 typmod, - int attdim); - -extern void TupleDescInitEntryCollation(TupleDesc desc, - AttrNumber attributeNumber, - Oid collationid); - -extern TupleDesc BuildDescForRelation(List *schema); - -extern TupleDesc BuildDescFromLists(List *names, List *types, List *typmods, List *collations); - -#endif /* TUPDESC_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/tupmacs.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/tupmacs.h deleted file mode 100644 index 16c74a581..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/tupmacs.h +++ /dev/null @@ -1,247 +0,0 @@ -/*------------------------------------------------------------------------- - * - * tupmacs.h - * Tuple macros used by both index tuples and heap tuples. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/tupmacs.h - * - *------------------------------------------------------------------------- - */ -#ifndef TUPMACS_H -#define TUPMACS_H - -#include "catalog/pg_type_d.h" /* for TYPALIGN macros */ - - -/* - * Check a tuple's null bitmap to determine whether the attribute is null. - * Note that a 0 in the null bitmap indicates a null, while 1 indicates - * non-null. - */ -#define att_isnull(ATT, BITS) (!((BITS)[(ATT) >> 3] & (1 << ((ATT) & 0x07)))) - -/* - * Given a Form_pg_attribute and a pointer into a tuple's data area, - * return the correct value or pointer. - * - * We return a Datum value in all cases. If the attribute has "byval" false, - * we return the same pointer into the tuple data area that we're passed. - * Otherwise, we return the correct number of bytes fetched from the data - * area and extended to Datum form. - * - * On machines where Datum is 8 bytes, we support fetching 8-byte byval - * attributes; otherwise, only 1, 2, and 4-byte values are supported. - * - * Note that T must already be properly aligned for this to work correctly. - */ -#define fetchatt(A,T) fetch_att(T, (A)->attbyval, (A)->attlen) - -/* - * Same, but work from byval/len parameters rather than Form_pg_attribute. - */ -#if SIZEOF_DATUM == 8 - -#define fetch_att(T,attbyval,attlen) \ -( \ - (attbyval) ? \ - ( \ - (attlen) == (int) sizeof(Datum) ? \ - *((Datum *)(T)) \ - : \ - ( \ - (attlen) == (int) sizeof(int32) ? \ - Int32GetDatum(*((int32 *)(T))) \ - : \ - ( \ - (attlen) == (int) sizeof(int16) ? \ - Int16GetDatum(*((int16 *)(T))) \ - : \ - ( \ - AssertMacro((attlen) == 1), \ - CharGetDatum(*((char *)(T))) \ - ) \ - ) \ - ) \ - ) \ - : \ - PointerGetDatum((char *) (T)) \ -) -#else /* SIZEOF_DATUM != 8 */ - -#define fetch_att(T,attbyval,attlen) \ -( \ - (attbyval) ? \ - ( \ - (attlen) == (int) sizeof(int32) ? \ - Int32GetDatum(*((int32 *)(T))) \ - : \ - ( \ - (attlen) == (int) sizeof(int16) ? \ - Int16GetDatum(*((int16 *)(T))) \ - : \ - ( \ - AssertMacro((attlen) == 1), \ - CharGetDatum(*((char *)(T))) \ - ) \ - ) \ - ) \ - : \ - PointerGetDatum((char *) (T)) \ -) -#endif /* SIZEOF_DATUM == 8 */ - -/* - * att_align_datum aligns the given offset as needed for a datum of alignment - * requirement attalign and typlen attlen. attdatum is the Datum variable - * we intend to pack into a tuple (it's only accessed if we are dealing with - * a varlena type). Note that this assumes the Datum will be stored as-is; - * callers that are intending to convert non-short varlena datums to short - * format have to account for that themselves. - */ -#define att_align_datum(cur_offset, attalign, attlen, attdatum) \ -( \ - ((attlen) == -1 && VARATT_IS_SHORT(DatumGetPointer(attdatum))) ? \ - (uintptr_t) (cur_offset) : \ - att_align_nominal(cur_offset, attalign) \ -) - -/* - * att_align_pointer performs the same calculation as att_align_datum, - * but is used when walking a tuple. attptr is the current actual data - * pointer; when accessing a varlena field we have to "peek" to see if we - * are looking at a pad byte or the first byte of a 1-byte-header datum. - * (A zero byte must be either a pad byte, or the first byte of a correctly - * aligned 4-byte length word; in either case we can align safely. A non-zero - * byte must be either a 1-byte length word, or the first byte of a correctly - * aligned 4-byte length word; in either case we need not align.) - * - * Note: some callers pass a "char *" pointer for cur_offset. This is - * a bit of a hack but should work all right as long as uintptr_t is the - * correct width. - */ -#define att_align_pointer(cur_offset, attalign, attlen, attptr) \ -( \ - ((attlen) == -1 && VARATT_NOT_PAD_BYTE(attptr)) ? \ - (uintptr_t) (cur_offset) : \ - att_align_nominal(cur_offset, attalign) \ -) - -/* - * att_align_nominal aligns the given offset as needed for a datum of alignment - * requirement attalign, ignoring any consideration of packed varlena datums. - * There are three main use cases for using this macro directly: - * * we know that the att in question is not varlena (attlen != -1); - * in this case it is cheaper than the above macros and just as good. - * * we need to estimate alignment padding cost abstractly, ie without - * reference to a real tuple. We must assume the worst case that - * all varlenas are aligned. - * * within arrays and multiranges, we unconditionally align varlenas (XXX this - * should be revisited, probably). - * - * The attalign cases are tested in what is hopefully something like their - * frequency of occurrence. - */ -#define att_align_nominal(cur_offset, attalign) \ -( \ - ((attalign) == TYPALIGN_INT) ? INTALIGN(cur_offset) : \ - (((attalign) == TYPALIGN_CHAR) ? (uintptr_t) (cur_offset) : \ - (((attalign) == TYPALIGN_DOUBLE) ? DOUBLEALIGN(cur_offset) : \ - ( \ - AssertMacro((attalign) == TYPALIGN_SHORT), \ - SHORTALIGN(cur_offset) \ - ))) \ -) - -/* - * att_addlength_datum increments the given offset by the space needed for - * the given Datum variable. attdatum is only accessed if we are dealing - * with a variable-length attribute. - */ -#define att_addlength_datum(cur_offset, attlen, attdatum) \ - att_addlength_pointer(cur_offset, attlen, DatumGetPointer(attdatum)) - -/* - * att_addlength_pointer performs the same calculation as att_addlength_datum, - * but is used when walking a tuple --- attptr is the pointer to the field - * within the tuple. - * - * Note: some callers pass a "char *" pointer for cur_offset. This is - * actually perfectly OK, but probably should be cleaned up along with - * the same practice for att_align_pointer. - */ -#define att_addlength_pointer(cur_offset, attlen, attptr) \ -( \ - ((attlen) > 0) ? \ - ( \ - (cur_offset) + (attlen) \ - ) \ - : (((attlen) == -1) ? \ - ( \ - (cur_offset) + VARSIZE_ANY(attptr) \ - ) \ - : \ - ( \ - AssertMacro((attlen) == -2), \ - (cur_offset) + (strlen((char *) (attptr)) + 1) \ - )) \ -) - -/* - * store_att_byval is a partial inverse of fetch_att: store a given Datum - * value into a tuple data area at the specified address. However, it only - * handles the byval case, because in typical usage the caller needs to - * distinguish by-val and by-ref cases anyway, and so a do-it-all macro - * wouldn't be convenient. - */ -#if SIZEOF_DATUM == 8 - -#define store_att_byval(T,newdatum,attlen) \ - do { \ - switch (attlen) \ - { \ - case sizeof(char): \ - *(char *) (T) = DatumGetChar(newdatum); \ - break; \ - case sizeof(int16): \ - *(int16 *) (T) = DatumGetInt16(newdatum); \ - break; \ - case sizeof(int32): \ - *(int32 *) (T) = DatumGetInt32(newdatum); \ - break; \ - case sizeof(Datum): \ - *(Datum *) (T) = (newdatum); \ - break; \ - default: \ - elog(ERROR, "unsupported byval length: %d", \ - (int) (attlen)); \ - break; \ - } \ - } while (0) -#else /* SIZEOF_DATUM != 8 */ - -#define store_att_byval(T,newdatum,attlen) \ - do { \ - switch (attlen) \ - { \ - case sizeof(char): \ - *(char *) (T) = DatumGetChar(newdatum); \ - break; \ - case sizeof(int16): \ - *(int16 *) (T) = DatumGetInt16(newdatum); \ - break; \ - case sizeof(int32): \ - *(int32 *) (T) = DatumGetInt32(newdatum); \ - break; \ - default: \ - elog(ERROR, "unsupported byval length: %d", \ - (int) (attlen)); \ - break; \ - } \ - } while (0) -#endif /* SIZEOF_DATUM == 8 */ - -#endif diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/twophase.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/twophase.h deleted file mode 100644 index 5d6544e26..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/twophase.h +++ /dev/null @@ -1,65 +0,0 @@ -/*------------------------------------------------------------------------- - * - * twophase.h - * Two-phase-commit related declarations. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/twophase.h - * - *------------------------------------------------------------------------- - */ -#ifndef TWOPHASE_H -#define TWOPHASE_H - -#include "access/xact.h" -#include "access/xlogdefs.h" -#include "datatype/timestamp.h" -#include "storage/lock.h" - -/* - * GlobalTransactionData is defined in twophase.c; other places have no - * business knowing the internal definition. - */ -typedef struct GlobalTransactionData *GlobalTransaction; - -/* GUC variable */ -extern PGDLLIMPORT int max_prepared_xacts; - -extern Size TwoPhaseShmemSize(void); -extern void TwoPhaseShmemInit(void); - -extern void AtAbort_Twophase(void); -extern void PostPrepare_Twophase(void); - -extern TransactionId TwoPhaseGetXidByVirtualXID(VirtualTransactionId vxid, - bool *have_more); -extern PGPROC *TwoPhaseGetDummyProc(TransactionId xid, bool lock_held); -extern BackendId TwoPhaseGetDummyBackendId(TransactionId xid, bool lock_held); - -extern GlobalTransaction MarkAsPreparing(TransactionId xid, const char *gid, - TimestampTz prepared_at, - Oid owner, Oid databaseid); - -extern void StartPrepare(GlobalTransaction gxact); -extern void EndPrepare(GlobalTransaction gxact); -extern bool StandbyTransactionIdIsPrepared(TransactionId xid); - -extern TransactionId PrescanPreparedTransactions(TransactionId **xids_p, - int *nxids_p); -extern void StandbyRecoverPreparedTransactions(void); -extern void RecoverPreparedTransactions(void); - -extern void CheckPointTwoPhase(XLogRecPtr redo_horizon); - -extern void FinishPreparedTransaction(const char *gid, bool isCommit); - -extern void PrepareRedoAdd(char *buf, XLogRecPtr start_lsn, - XLogRecPtr end_lsn, RepOriginId origin_id); -extern void PrepareRedoRemove(TransactionId xid, bool giveWarning); -extern void restoreTwoPhaseData(void); -extern bool LookupGXact(const char *gid, XLogRecPtr prepare_at_lsn, - TimestampTz origin_prepare_timestamp); -#endif /* TWOPHASE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xact.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xact.h deleted file mode 100644 index 65616ca2f..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xact.h +++ /dev/null @@ -1,523 +0,0 @@ -/*------------------------------------------------------------------------- - * - * xact.h - * postgres transaction system definitions - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/xact.h - * - *------------------------------------------------------------------------- - */ -#ifndef XACT_H -#define XACT_H - -#include "access/transam.h" -#include "access/xlogreader.h" -#include "datatype/timestamp.h" -#include "lib/stringinfo.h" -#include "nodes/pg_list.h" -#include "storage/relfilenode.h" -#include "storage/sinval.h" - -/* - * Maximum size of Global Transaction ID (including '\0'). - * - * Note that the max value of GIDSIZE must fit in the uint16 gidlen, - * specified in TwoPhaseFileHeader. - */ -#define GIDSIZE 200 - -/* - * Xact isolation levels - */ -#define XACT_READ_UNCOMMITTED 0 -#define XACT_READ_COMMITTED 1 -#define XACT_REPEATABLE_READ 2 -#define XACT_SERIALIZABLE 3 - -extern PGDLLIMPORT int DefaultXactIsoLevel; -extern PGDLLIMPORT int XactIsoLevel; - -/* - * We implement three isolation levels internally. - * The two stronger ones use one snapshot per database transaction; - * the others use one snapshot per statement. - * Serializable uses predicate locks in addition to snapshots. - * These macros should be used to check which isolation level is selected. - */ -#define IsolationUsesXactSnapshot() (XactIsoLevel >= XACT_REPEATABLE_READ) -#define IsolationIsSerializable() (XactIsoLevel == XACT_SERIALIZABLE) - -/* Xact read-only state */ -extern PGDLLIMPORT bool DefaultXactReadOnly; -extern PGDLLIMPORT bool XactReadOnly; - -/* flag for logging statements in this transaction */ -extern PGDLLIMPORT bool xact_is_sampled; - -/* - * Xact is deferrable -- only meaningful (currently) for read only - * SERIALIZABLE transactions - */ -extern PGDLLIMPORT bool DefaultXactDeferrable; -extern PGDLLIMPORT bool XactDeferrable; - -typedef enum -{ - SYNCHRONOUS_COMMIT_OFF, /* asynchronous commit */ - SYNCHRONOUS_COMMIT_LOCAL_FLUSH, /* wait for local flush only */ - SYNCHRONOUS_COMMIT_REMOTE_WRITE, /* wait for local flush and remote - * write */ - SYNCHRONOUS_COMMIT_REMOTE_FLUSH, /* wait for local and remote flush */ - SYNCHRONOUS_COMMIT_REMOTE_APPLY /* wait for local and remote flush and - * remote apply */ -} SyncCommitLevel; - -/* Define the default setting for synchronous_commit */ -#define SYNCHRONOUS_COMMIT_ON SYNCHRONOUS_COMMIT_REMOTE_FLUSH - -/* Synchronous commit level */ -extern PGDLLIMPORT int synchronous_commit; - -/* used during logical streaming of a transaction */ -extern PGDLLIMPORT TransactionId CheckXidAlive; -extern PGDLLIMPORT bool bsysscan; - -/* - * Miscellaneous flag bits to record events which occur on the top level - * transaction. These flags are only persisted in MyXactFlags and are intended - * so we remember to do certain things later in the transaction. This is - * globally accessible, so can be set from anywhere in the code which requires - * recording flags. - */ -extern PGDLLIMPORT int MyXactFlags; - -/* - * XACT_FLAGS_ACCESSEDTEMPNAMESPACE - set when a temporary object is accessed. - * We don't allow PREPARE TRANSACTION in that case. - */ -#define XACT_FLAGS_ACCESSEDTEMPNAMESPACE (1U << 0) - -/* - * XACT_FLAGS_ACQUIREDACCESSEXCLUSIVELOCK - records whether the top level xact - * logged any Access Exclusive Locks. - */ -#define XACT_FLAGS_ACQUIREDACCESSEXCLUSIVELOCK (1U << 1) - -/* - * XACT_FLAGS_NEEDIMMEDIATECOMMIT - records whether the top level statement - * is one that requires immediate commit, such as CREATE DATABASE. - */ -#define XACT_FLAGS_NEEDIMMEDIATECOMMIT (1U << 2) - -/* - * start- and end-of-transaction callbacks for dynamically loaded modules - */ -typedef enum -{ - XACT_EVENT_COMMIT, - XACT_EVENT_PARALLEL_COMMIT, - XACT_EVENT_ABORT, - XACT_EVENT_PARALLEL_ABORT, - XACT_EVENT_PREPARE, - XACT_EVENT_PRE_COMMIT, - XACT_EVENT_PARALLEL_PRE_COMMIT, - XACT_EVENT_PRE_PREPARE -} XactEvent; - -typedef void (*XactCallback) (XactEvent event, void *arg); - -typedef enum -{ - SUBXACT_EVENT_START_SUB, - SUBXACT_EVENT_COMMIT_SUB, - SUBXACT_EVENT_ABORT_SUB, - SUBXACT_EVENT_PRE_COMMIT_SUB -} SubXactEvent; - -typedef void (*SubXactCallback) (SubXactEvent event, SubTransactionId mySubid, - SubTransactionId parentSubid, void *arg); - -/* Data structure for Save/RestoreTransactionCharacteristics */ -typedef struct SavedTransactionCharacteristics -{ - int save_XactIsoLevel; - bool save_XactReadOnly; - bool save_XactDeferrable; -} SavedTransactionCharacteristics; - - -/* ---------------- - * transaction-related XLOG entries - * ---------------- - */ - -/* - * XLOG allows to store some information in high 4 bits of log record xl_info - * field. We use 3 for the opcode, and one about an optional flag variable. - */ -#define XLOG_XACT_COMMIT 0x00 -#define XLOG_XACT_PREPARE 0x10 -#define XLOG_XACT_ABORT 0x20 -#define XLOG_XACT_COMMIT_PREPARED 0x30 -#define XLOG_XACT_ABORT_PREPARED 0x40 -#define XLOG_XACT_ASSIGNMENT 0x50 -#define XLOG_XACT_INVALIDATIONS 0x60 -/* free opcode 0x70 */ - -/* mask for filtering opcodes out of xl_info */ -#define XLOG_XACT_OPMASK 0x70 - -/* does this record have a 'xinfo' field or not */ -#define XLOG_XACT_HAS_INFO 0x80 - -/* - * The following flags, stored in xinfo, determine which information is - * contained in commit/abort records. - */ -#define XACT_XINFO_HAS_DBINFO (1U << 0) -#define XACT_XINFO_HAS_SUBXACTS (1U << 1) -#define XACT_XINFO_HAS_RELFILENODES (1U << 2) -#define XACT_XINFO_HAS_INVALS (1U << 3) -#define XACT_XINFO_HAS_TWOPHASE (1U << 4) -#define XACT_XINFO_HAS_ORIGIN (1U << 5) -#define XACT_XINFO_HAS_AE_LOCKS (1U << 6) -#define XACT_XINFO_HAS_GID (1U << 7) -#define XACT_XINFO_HAS_DROPPED_STATS (1U << 8) - -/* - * Also stored in xinfo, these indicating a variety of additional actions that - * need to occur when emulating transaction effects during recovery. - * - * They are named XactCompletion... to differentiate them from - * EOXact... routines which run at the end of the original transaction - * completion. - */ -#define XACT_COMPLETION_APPLY_FEEDBACK (1U << 29) -#define XACT_COMPLETION_UPDATE_RELCACHE_FILE (1U << 30) -#define XACT_COMPLETION_FORCE_SYNC_COMMIT (1U << 31) - -/* Access macros for above flags */ -#define XactCompletionApplyFeedback(xinfo) \ - ((xinfo & XACT_COMPLETION_APPLY_FEEDBACK) != 0) -#define XactCompletionRelcacheInitFileInval(xinfo) \ - ((xinfo & XACT_COMPLETION_UPDATE_RELCACHE_FILE) != 0) -#define XactCompletionForceSyncCommit(xinfo) \ - ((xinfo & XACT_COMPLETION_FORCE_SYNC_COMMIT) != 0) - -typedef struct xl_xact_assignment -{ - TransactionId xtop; /* assigned XID's top-level XID */ - int nsubxacts; /* number of subtransaction XIDs */ - TransactionId xsub[FLEXIBLE_ARRAY_MEMBER]; /* assigned subxids */ -} xl_xact_assignment; - -#define MinSizeOfXactAssignment offsetof(xl_xact_assignment, xsub) - -/* - * Commit and abort records can contain a lot of information. But a large - * portion of the records won't need all possible pieces of information. So we - * only include what's needed. - * - * A minimal commit/abort record only consists of a xl_xact_commit/abort - * struct. The presence of additional information is indicated by bits set in - * 'xl_xact_xinfo->xinfo'. The presence of the xinfo field itself is signaled - * by a set XLOG_XACT_HAS_INFO bit in the xl_info field. - * - * NB: All the individual data chunks should be sized to multiples of - * sizeof(int) and only require int32 alignment. If they require bigger - * alignment, they need to be copied upon reading. - */ - -/* sub-records for commit/abort */ - -typedef struct xl_xact_xinfo -{ - /* - * Even though we right now only require two bytes of space in xinfo we - * use four so following records don't have to care about alignment. - * Commit records can be large, so copying large portions isn't - * attractive. - */ - uint32 xinfo; -} xl_xact_xinfo; - -typedef struct xl_xact_dbinfo -{ - Oid dbId; /* MyDatabaseId */ - Oid tsId; /* MyDatabaseTableSpace */ -} xl_xact_dbinfo; - -typedef struct xl_xact_subxacts -{ - int nsubxacts; /* number of subtransaction XIDs */ - TransactionId subxacts[FLEXIBLE_ARRAY_MEMBER]; -} xl_xact_subxacts; -#define MinSizeOfXactSubxacts offsetof(xl_xact_subxacts, subxacts) - -typedef struct xl_xact_relfilenodes -{ - int nrels; /* number of relations */ - RelFileNode xnodes[FLEXIBLE_ARRAY_MEMBER]; -} xl_xact_relfilenodes; -#define MinSizeOfXactRelfilenodes offsetof(xl_xact_relfilenodes, xnodes) - -/* - * A transactionally dropped statistics entry. - * - * Declared here rather than pgstat.h because pgstat.h can't be included from - * frontend code, but the WAL format needs to be readable by frontend - * programs. - */ -typedef struct xl_xact_stats_item -{ - int kind; - Oid dboid; - Oid objoid; -} xl_xact_stats_item; - -typedef struct xl_xact_stats_items -{ - int nitems; - xl_xact_stats_item items[FLEXIBLE_ARRAY_MEMBER]; -} xl_xact_stats_items; -#define MinSizeOfXactStatsItems offsetof(xl_xact_stats_items, items) - -typedef struct xl_xact_invals -{ - int nmsgs; /* number of shared inval msgs */ - SharedInvalidationMessage msgs[FLEXIBLE_ARRAY_MEMBER]; -} xl_xact_invals; -#define MinSizeOfXactInvals offsetof(xl_xact_invals, msgs) - -typedef struct xl_xact_twophase -{ - TransactionId xid; -} xl_xact_twophase; - -typedef struct xl_xact_origin -{ - XLogRecPtr origin_lsn; - TimestampTz origin_timestamp; -} xl_xact_origin; - -typedef struct xl_xact_commit -{ - TimestampTz xact_time; /* time of commit */ - - /* xl_xact_xinfo follows if XLOG_XACT_HAS_INFO */ - /* xl_xact_dbinfo follows if XINFO_HAS_DBINFO */ - /* xl_xact_subxacts follows if XINFO_HAS_SUBXACT */ - /* xl_xact_relfilenodes follows if XINFO_HAS_RELFILENODES */ - /* xl_xact_stats_items follows if XINFO_HAS_DROPPED_STATS */ - /* xl_xact_invals follows if XINFO_HAS_INVALS */ - /* xl_xact_twophase follows if XINFO_HAS_TWOPHASE */ - /* twophase_gid follows if XINFO_HAS_GID. As a null-terminated string. */ - /* xl_xact_origin follows if XINFO_HAS_ORIGIN, stored unaligned! */ -} xl_xact_commit; -#define MinSizeOfXactCommit (offsetof(xl_xact_commit, xact_time) + sizeof(TimestampTz)) - -typedef struct xl_xact_abort -{ - TimestampTz xact_time; /* time of abort */ - - /* xl_xact_xinfo follows if XLOG_XACT_HAS_INFO */ - /* xl_xact_dbinfo follows if XINFO_HAS_DBINFO */ - /* xl_xact_subxacts follows if XINFO_HAS_SUBXACT */ - /* xl_xact_relfilenodes follows if XINFO_HAS_RELFILENODES */ - /* xl_xact_stats_items follows if XINFO_HAS_DROPPED_STATS */ - /* No invalidation messages needed. */ - /* xl_xact_twophase follows if XINFO_HAS_TWOPHASE */ - /* twophase_gid follows if XINFO_HAS_GID. As a null-terminated string. */ - /* xl_xact_origin follows if XINFO_HAS_ORIGIN, stored unaligned! */ -} xl_xact_abort; -#define MinSizeOfXactAbort sizeof(xl_xact_abort) - -typedef struct xl_xact_prepare -{ - uint32 magic; /* format identifier */ - uint32 total_len; /* actual file length */ - TransactionId xid; /* original transaction XID */ - Oid database; /* OID of database it was in */ - TimestampTz prepared_at; /* time of preparation */ - Oid owner; /* user running the transaction */ - int32 nsubxacts; /* number of following subxact XIDs */ - int32 ncommitrels; /* number of delete-on-commit rels */ - int32 nabortrels; /* number of delete-on-abort rels */ - int32 ncommitstats; /* number of stats to drop on commit */ - int32 nabortstats; /* number of stats to drop on abort */ - int32 ninvalmsgs; /* number of cache invalidation messages */ - bool initfileinval; /* does relcache init file need invalidation? */ - uint16 gidlen; /* length of the GID - GID follows the header */ - XLogRecPtr origin_lsn; /* lsn of this record at origin node */ - TimestampTz origin_timestamp; /* time of prepare at origin node */ -} xl_xact_prepare; - -/* - * Commit/Abort records in the above form are a bit verbose to parse, so - * there's a deconstructed versions generated by ParseCommit/AbortRecord() for - * easier consumption. - */ -typedef struct xl_xact_parsed_commit -{ - TimestampTz xact_time; - uint32 xinfo; - - Oid dbId; /* MyDatabaseId */ - Oid tsId; /* MyDatabaseTableSpace */ - - int nsubxacts; - TransactionId *subxacts; - - int nrels; - RelFileNode *xnodes; - - int nstats; - xl_xact_stats_item *stats; - - int nmsgs; - SharedInvalidationMessage *msgs; - - TransactionId twophase_xid; /* only for 2PC */ - char twophase_gid[GIDSIZE]; /* only for 2PC */ - int nabortrels; /* only for 2PC */ - RelFileNode *abortnodes; /* only for 2PC */ - int nabortstats; /* only for 2PC */ - xl_xact_stats_item *abortstats; /* only for 2PC */ - - XLogRecPtr origin_lsn; - TimestampTz origin_timestamp; -} xl_xact_parsed_commit; - -typedef xl_xact_parsed_commit xl_xact_parsed_prepare; - -typedef struct xl_xact_parsed_abort -{ - TimestampTz xact_time; - uint32 xinfo; - - Oid dbId; /* MyDatabaseId */ - Oid tsId; /* MyDatabaseTableSpace */ - - int nsubxacts; - TransactionId *subxacts; - - int nrels; - RelFileNode *xnodes; - - int nstats; - xl_xact_stats_item *stats; - - TransactionId twophase_xid; /* only for 2PC */ - char twophase_gid[GIDSIZE]; /* only for 2PC */ - - XLogRecPtr origin_lsn; - TimestampTz origin_timestamp; -} xl_xact_parsed_abort; - - -/* ---------------- - * extern definitions - * ---------------- - */ -extern bool IsTransactionState(void); -extern bool IsAbortedTransactionBlockState(void); -extern TransactionId GetTopTransactionId(void); -extern TransactionId GetTopTransactionIdIfAny(void); -extern TransactionId GetCurrentTransactionId(void); -extern TransactionId GetCurrentTransactionIdIfAny(void); -extern TransactionId GetStableLatestTransactionId(void); -extern SubTransactionId GetCurrentSubTransactionId(void); -extern FullTransactionId GetTopFullTransactionId(void); -extern FullTransactionId GetTopFullTransactionIdIfAny(void); -extern FullTransactionId GetCurrentFullTransactionId(void); -extern FullTransactionId GetCurrentFullTransactionIdIfAny(void); -extern void MarkCurrentTransactionIdLoggedIfAny(void); -extern bool SubTransactionIsActive(SubTransactionId subxid); -extern CommandId GetCurrentCommandId(bool used); -extern void SetParallelStartTimestamps(TimestampTz xact_ts, TimestampTz stmt_ts); -extern TimestampTz GetCurrentTransactionStartTimestamp(void); -extern TimestampTz GetCurrentStatementStartTimestamp(void); -extern TimestampTz GetCurrentTransactionStopTimestamp(void); -extern void SetCurrentStatementStartTimestamp(void); -extern int GetCurrentTransactionNestLevel(void); -extern bool TransactionIdIsCurrentTransactionId(TransactionId xid); -extern void CommandCounterIncrement(void); -extern void ForceSyncCommit(void); -extern void StartTransactionCommand(void); -extern void SaveTransactionCharacteristics(SavedTransactionCharacteristics *s); -extern void RestoreTransactionCharacteristics(const SavedTransactionCharacteristics *s); -extern void CommitTransactionCommand(void); -extern void AbortCurrentTransaction(void); -extern void BeginTransactionBlock(void); -extern bool EndTransactionBlock(bool chain); -extern bool PrepareTransactionBlock(const char *gid); -extern void UserAbortTransactionBlock(bool chain); -extern void BeginImplicitTransactionBlock(void); -extern void EndImplicitTransactionBlock(void); -extern void ReleaseSavepoint(const char *name); -extern void DefineSavepoint(const char *name); -extern void RollbackToSavepoint(const char *name); -extern void BeginInternalSubTransaction(const char *name); -extern void ReleaseCurrentSubTransaction(void); -extern void RollbackAndReleaseCurrentSubTransaction(void); -extern bool IsSubTransaction(void); -extern Size EstimateTransactionStateSpace(void); -extern void SerializeTransactionState(Size maxsize, char *start_address); -extern void StartParallelWorkerTransaction(char *tstatespace); -extern void EndParallelWorkerTransaction(void); -extern bool IsTransactionBlock(void); -extern bool IsTransactionOrTransactionBlock(void); -extern char TransactionBlockStatusCode(void); -extern void AbortOutOfAnyTransaction(void); -extern void PreventInTransactionBlock(bool isTopLevel, const char *stmtType); -extern void RequireTransactionBlock(bool isTopLevel, const char *stmtType); -extern void WarnNoTransactionBlock(bool isTopLevel, const char *stmtType); -extern bool IsInTransactionBlock(bool isTopLevel); -extern void RegisterXactCallback(XactCallback callback, void *arg); -extern void UnregisterXactCallback(XactCallback callback, void *arg); -extern void RegisterSubXactCallback(SubXactCallback callback, void *arg); -extern void UnregisterSubXactCallback(SubXactCallback callback, void *arg); - -extern bool IsSubxactTopXidLogPending(void); -extern void MarkSubxactTopXidLogged(void); - -extern int xactGetCommittedChildren(TransactionId **ptr); - -extern XLogRecPtr XactLogCommitRecord(TimestampTz commit_time, - int nsubxacts, TransactionId *subxacts, - int nrels, RelFileNode *rels, - int nstats, - xl_xact_stats_item *stats, - int nmsgs, SharedInvalidationMessage *msgs, - bool relcacheInval, - int xactflags, - TransactionId twophase_xid, - const char *twophase_gid); - -extern XLogRecPtr XactLogAbortRecord(TimestampTz abort_time, - int nsubxacts, TransactionId *subxacts, - int nrels, RelFileNode *rels, - int nstats, - xl_xact_stats_item *stats, - int xactflags, TransactionId twophase_xid, - const char *twophase_gid); -extern void xact_redo(XLogReaderState *record); - -/* xactdesc.c */ -extern void xact_desc(StringInfo buf, XLogReaderState *record); -extern const char *xact_identify(uint8 info); - -/* also in xactdesc.c, so they can be shared between front/backend code */ -extern void ParseCommitRecord(uint8 info, xl_xact_commit *xlrec, xl_xact_parsed_commit *parsed); -extern void ParseAbortRecord(uint8 info, xl_xact_abort *xlrec, xl_xact_parsed_abort *parsed); -extern void ParsePrepareRecord(uint8 info, xl_xact_prepare *xlrec, xl_xact_parsed_prepare *parsed); - -extern void EnterParallelMode(void); -extern void ExitParallelMode(void); -extern bool IsInParallelMode(void); - -#endif /* XACT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlog.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlog.h deleted file mode 100644 index cd674c3c2..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlog.h +++ /dev/null @@ -1,303 +0,0 @@ -/* - * xlog.h - * - * PostgreSQL write-ahead log manager - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/xlog.h - */ -#ifndef XLOG_H -#define XLOG_H - -#include "access/xlogdefs.h" -#include "access/xlogreader.h" -#include "datatype/timestamp.h" -#include "lib/stringinfo.h" -#include "nodes/pg_list.h" - - -/* Sync methods */ -#define SYNC_METHOD_FSYNC 0 -#define SYNC_METHOD_FDATASYNC 1 -#define SYNC_METHOD_OPEN 2 /* for O_SYNC */ -#define SYNC_METHOD_FSYNC_WRITETHROUGH 3 -#define SYNC_METHOD_OPEN_DSYNC 4 /* for O_DSYNC */ -extern PGDLLIMPORT int sync_method; - -extern PGDLLIMPORT XLogRecPtr ProcLastRecPtr; -extern PGDLLIMPORT XLogRecPtr XactLastRecEnd; -extern PGDLLIMPORT XLogRecPtr XactLastCommitEnd; - -/* these variables are GUC parameters related to XLOG */ -extern PGDLLIMPORT int wal_segment_size; -extern PGDLLIMPORT int min_wal_size_mb; -extern PGDLLIMPORT int max_wal_size_mb; -extern PGDLLIMPORT int wal_keep_size_mb; -extern PGDLLIMPORT int max_slot_wal_keep_size_mb; -extern PGDLLIMPORT int XLOGbuffers; -extern PGDLLIMPORT int XLogArchiveTimeout; -extern PGDLLIMPORT int wal_retrieve_retry_interval; -extern PGDLLIMPORT char *XLogArchiveCommand; -extern PGDLLIMPORT bool EnableHotStandby; -extern PGDLLIMPORT bool fullPageWrites; -extern PGDLLIMPORT bool wal_log_hints; -extern PGDLLIMPORT int wal_compression; -extern PGDLLIMPORT bool wal_init_zero; -extern PGDLLIMPORT bool wal_recycle; -extern PGDLLIMPORT bool *wal_consistency_checking; -extern PGDLLIMPORT char *wal_consistency_checking_string; -extern PGDLLIMPORT bool log_checkpoints; -extern PGDLLIMPORT bool track_wal_io_timing; -extern PGDLLIMPORT int wal_decode_buffer_size; - -extern PGDLLIMPORT int CheckPointSegments; - -/* Archive modes */ -typedef enum ArchiveMode -{ - ARCHIVE_MODE_OFF = 0, /* disabled */ - ARCHIVE_MODE_ON, /* enabled while server is running normally */ - ARCHIVE_MODE_ALWAYS /* enabled always (even during recovery) */ -} ArchiveMode; -extern PGDLLIMPORT int XLogArchiveMode; - -/* WAL levels */ -typedef enum WalLevel -{ - WAL_LEVEL_MINIMAL = 0, - WAL_LEVEL_REPLICA, - WAL_LEVEL_LOGICAL -} WalLevel; - -/* Compression algorithms for WAL */ -typedef enum WalCompression -{ - WAL_COMPRESSION_NONE = 0, - WAL_COMPRESSION_PGLZ, - WAL_COMPRESSION_LZ4, - WAL_COMPRESSION_ZSTD -} WalCompression; - -/* Recovery states */ -typedef enum RecoveryState -{ - RECOVERY_STATE_CRASH = 0, /* crash recovery */ - RECOVERY_STATE_ARCHIVE, /* archive recovery */ - RECOVERY_STATE_DONE /* currently in production */ -} RecoveryState; - -extern PGDLLIMPORT int wal_level; - -/* Is WAL archiving enabled (always or only while server is running normally)? */ -#define XLogArchivingActive() \ - (AssertMacro(XLogArchiveMode == ARCHIVE_MODE_OFF || wal_level >= WAL_LEVEL_REPLICA), XLogArchiveMode > ARCHIVE_MODE_OFF) -/* Is WAL archiving enabled always (even during recovery)? */ -#define XLogArchivingAlways() \ - (AssertMacro(XLogArchiveMode == ARCHIVE_MODE_OFF || wal_level >= WAL_LEVEL_REPLICA), XLogArchiveMode == ARCHIVE_MODE_ALWAYS) - -/* - * Is WAL-logging necessary for archival or log-shipping, or can we skip - * WAL-logging if we fsync() the data before committing instead? - */ -#define XLogIsNeeded() (wal_level >= WAL_LEVEL_REPLICA) - -/* - * Is a full-page image needed for hint bit updates? - * - * Normally, we don't WAL-log hint bit updates, but if checksums are enabled, - * we have to protect them against torn page writes. When you only set - * individual bits on a page, it's still consistent no matter what combination - * of the bits make it to disk, but the checksum wouldn't match. Also WAL-log - * them if forced by wal_log_hints=on. - */ -#define XLogHintBitIsNeeded() (DataChecksumsEnabled() || wal_log_hints) - -/* Do we need to WAL-log information required only for Hot Standby and logical replication? */ -#define XLogStandbyInfoActive() (wal_level >= WAL_LEVEL_REPLICA) - -/* Do we need to WAL-log information required only for logical replication? */ -#define XLogLogicalInfoActive() (wal_level >= WAL_LEVEL_LOGICAL) - -#ifdef WAL_DEBUG -extern PGDLLIMPORT bool XLOG_DEBUG; -#endif - -/* - * OR-able request flag bits for checkpoints. The "cause" bits are used only - * for logging purposes. Note: the flags must be defined so that it's - * sensible to OR together request flags arising from different requestors. - */ - -/* These directly affect the behavior of CreateCheckPoint and subsidiaries */ -#define CHECKPOINT_IS_SHUTDOWN 0x0001 /* Checkpoint is for shutdown */ -#define CHECKPOINT_END_OF_RECOVERY 0x0002 /* Like shutdown checkpoint, but - * issued at end of WAL recovery */ -#define CHECKPOINT_IMMEDIATE 0x0004 /* Do it without delays */ -#define CHECKPOINT_FORCE 0x0008 /* Force even if no activity */ -#define CHECKPOINT_FLUSH_ALL 0x0010 /* Flush all pages, including those - * belonging to unlogged tables */ -/* These are important to RequestCheckpoint */ -#define CHECKPOINT_WAIT 0x0020 /* Wait for completion */ -#define CHECKPOINT_REQUESTED 0x0040 /* Checkpoint request has been made */ -/* These indicate the cause of a checkpoint request */ -#define CHECKPOINT_CAUSE_XLOG 0x0080 /* XLOG consumption */ -#define CHECKPOINT_CAUSE_TIME 0x0100 /* Elapsed time */ - -/* - * Flag bits for the record being inserted, set using XLogSetRecordFlags(). - */ -#define XLOG_INCLUDE_ORIGIN 0x01 /* include the replication origin */ -#define XLOG_MARK_UNIMPORTANT 0x02 /* record not important for durability */ - - -/* Checkpoint statistics */ -typedef struct CheckpointStatsData -{ - TimestampTz ckpt_start_t; /* start of checkpoint */ - TimestampTz ckpt_write_t; /* start of flushing buffers */ - TimestampTz ckpt_sync_t; /* start of fsyncs */ - TimestampTz ckpt_sync_end_t; /* end of fsyncs */ - TimestampTz ckpt_end_t; /* end of checkpoint */ - - int ckpt_bufs_written; /* # of buffers written */ - - int ckpt_segs_added; /* # of new xlog segments created */ - int ckpt_segs_removed; /* # of xlog segments deleted */ - int ckpt_segs_recycled; /* # of xlog segments recycled */ - - int ckpt_sync_rels; /* # of relations synced */ - uint64 ckpt_longest_sync; /* Longest sync for one relation */ - uint64 ckpt_agg_sync_time; /* The sum of all the individual sync - * times, which is not necessarily the - * same as the total elapsed time for the - * entire sync phase. */ -} CheckpointStatsData; - -extern PGDLLIMPORT CheckpointStatsData CheckpointStats; - -/* - * GetWALAvailability return codes - */ -typedef enum WALAvailability -{ - WALAVAIL_INVALID_LSN, /* parameter error */ - WALAVAIL_RESERVED, /* WAL segment is within max_wal_size */ - WALAVAIL_EXTENDED, /* WAL segment is reserved by a slot or - * wal_keep_size */ - WALAVAIL_UNRESERVED, /* no longer reserved, but not removed yet */ - WALAVAIL_REMOVED /* WAL segment has been removed */ -} WALAvailability; - -struct XLogRecData; - -extern XLogRecPtr XLogInsertRecord(struct XLogRecData *rdata, - XLogRecPtr fpw_lsn, - uint8 flags, - int num_fpi, - bool topxid_included); -extern void XLogFlush(XLogRecPtr RecPtr); -extern bool XLogBackgroundFlush(void); -extern bool XLogNeedsFlush(XLogRecPtr RecPtr); -extern int XLogFileInit(XLogSegNo segno, TimeLineID tli); -extern int XLogFileOpen(XLogSegNo segno, TimeLineID tli); - -extern void CheckXLogRemoved(XLogSegNo segno, TimeLineID tli); -extern XLogSegNo XLogGetLastRemovedSegno(void); -extern void XLogSetAsyncXactLSN(XLogRecPtr record); -extern void XLogSetReplicationSlotMinimumLSN(XLogRecPtr lsn); - -extern void xlog_redo(XLogReaderState *record); -extern void xlog_desc(StringInfo buf, XLogReaderState *record); -extern const char *xlog_identify(uint8 info); - -extern void issue_xlog_fsync(int fd, XLogSegNo segno, TimeLineID tli); - -extern bool RecoveryInProgress(void); -extern RecoveryState GetRecoveryState(void); -extern bool XLogInsertAllowed(void); -extern XLogRecPtr GetXLogInsertRecPtr(void); -extern XLogRecPtr GetXLogWriteRecPtr(void); - -extern uint64 GetSystemIdentifier(void); -extern char *GetMockAuthenticationNonce(void); -extern bool DataChecksumsEnabled(void); -extern XLogRecPtr GetFakeLSNForUnloggedRel(void); -extern Size XLOGShmemSize(void); -extern void XLOGShmemInit(void); -extern void BootStrapXLOG(void); -extern void LocalProcessControlFile(bool reset); -extern void StartupXLOG(void); -extern void ShutdownXLOG(int code, Datum arg); -extern void CreateCheckPoint(int flags); -extern bool CreateRestartPoint(int flags); -extern WALAvailability GetWALAvailability(XLogRecPtr targetLSN); -extern void XLogPutNextOid(Oid nextOid); -extern XLogRecPtr XLogRestorePoint(const char *rpName); -extern void UpdateFullPageWrites(void); -extern void GetFullPageWriteInfo(XLogRecPtr *RedoRecPtr_p, bool *doPageWrites_p); -extern XLogRecPtr GetRedoRecPtr(void); -extern XLogRecPtr GetInsertRecPtr(void); -extern XLogRecPtr GetFlushRecPtr(TimeLineID *insertTLI); -extern TimeLineID GetWALInsertionTimeLine(void); -extern XLogRecPtr GetLastImportantRecPtr(void); - -extern void SetWalWriterSleeping(bool sleeping); - -extern void assign_max_wal_size(int newval, void *extra); -extern void assign_checkpoint_completion_target(double newval, void *extra); - -/* - * Routines used by xlogrecovery.c to call back into xlog.c during recovery. - */ -extern void RemoveNonParentXlogFiles(XLogRecPtr switchpoint, TimeLineID newTLI); -extern bool XLogCheckpointNeeded(XLogSegNo new_segno); -extern void SwitchIntoArchiveRecovery(XLogRecPtr EndRecPtr, TimeLineID replayTLI); -extern void ReachedEndOfBackup(XLogRecPtr EndRecPtr, TimeLineID tli); -extern void SetInstallXLogFileSegmentActive(void); -extern bool IsInstallXLogFileSegmentActive(void); -extern void XLogShutdownWalRcv(void); - -/* - * Routines to start, stop, and get status of a base backup. - */ - -/* - * Session-level status of base backups - * - * This is used in parallel with the shared memory status to control parallel - * execution of base backup functions for a given session, be it a backend - * dedicated to replication or a normal backend connected to a database. The - * update of the session-level status happens at the same time as the shared - * memory counters to keep a consistent global and local state of the backups - * running. - */ -typedef enum SessionBackupState -{ - SESSION_BACKUP_NONE, - SESSION_BACKUP_RUNNING, -} SessionBackupState; - -extern XLogRecPtr do_pg_backup_start(const char *backupidstr, bool fast, - TimeLineID *starttli_p, StringInfo labelfile, - List **tablespaces, StringInfo tblspcmapfile); -extern XLogRecPtr do_pg_backup_stop(char *labelfile, bool waitforarchive, - TimeLineID *stoptli_p); -extern void do_pg_abort_backup(int code, Datum arg); -extern void register_persistent_abort_backup_handler(void); -extern SessionBackupState get_backup_status(void); - -/* File path names (all relative to $PGDATA) */ -#define RECOVERY_SIGNAL_FILE "recovery.signal" -#define STANDBY_SIGNAL_FILE "standby.signal" -#define BACKUP_LABEL_FILE "backup_label" -#define BACKUP_LABEL_OLD "backup_label.old" - -#define TABLESPACE_MAP "tablespace_map" -#define TABLESPACE_MAP_OLD "tablespace_map.old" - -/* files to signal promotion to primary */ -#define PROMOTE_SIGNAL_FILE "promote" - -#endif /* XLOG_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlog_internal.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlog_internal.h deleted file mode 100644 index fae0bef8f..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlog_internal.h +++ /dev/null @@ -1,366 +0,0 @@ -/* - * xlog_internal.h - * - * PostgreSQL write-ahead log internal declarations - * - * NOTE: this file is intended to contain declarations useful for - * manipulating the XLOG files directly, but it is not supposed to be - * needed by rmgr routines (redo support for individual record types). - * So the XLogRecord typedef and associated stuff appear in xlogrecord.h. - * - * Note: This file must be includable in both frontend and backend contexts, - * to allow stand-alone tools like pg_receivewal to deal with WAL files. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/xlog_internal.h - */ -#ifndef XLOG_INTERNAL_H -#define XLOG_INTERNAL_H - -#include "access/xlogdefs.h" -#include "access/xlogreader.h" -#include "datatype/timestamp.h" -#include "lib/stringinfo.h" -#include "pgtime.h" -#include "storage/block.h" -#include "storage/relfilenode.h" - - -/* - * Each page of XLOG file has a header like this: - */ -#define XLOG_PAGE_MAGIC 0xD110 /* can be used as WAL version indicator */ - -typedef struct XLogPageHeaderData -{ - uint16 xlp_magic; /* magic value for correctness checks */ - uint16 xlp_info; /* flag bits, see below */ - TimeLineID xlp_tli; /* TimeLineID of first record on page */ - XLogRecPtr xlp_pageaddr; /* XLOG address of this page */ - - /* - * When there is not enough space on current page for whole record, we - * continue on the next page. xlp_rem_len is the number of bytes - * remaining from a previous page; it tracks xl_tot_len in the initial - * header. Note that the continuation data isn't necessarily aligned. - */ - uint32 xlp_rem_len; /* total len of remaining data for record */ -} XLogPageHeaderData; - -#define SizeOfXLogShortPHD MAXALIGN(sizeof(XLogPageHeaderData)) - -typedef XLogPageHeaderData *XLogPageHeader; - -/* - * When the XLP_LONG_HEADER flag is set, we store additional fields in the - * page header. (This is ordinarily done just in the first page of an - * XLOG file.) The additional fields serve to identify the file accurately. - */ -typedef struct XLogLongPageHeaderData -{ - XLogPageHeaderData std; /* standard header fields */ - uint64 xlp_sysid; /* system identifier from pg_control */ - uint32 xlp_seg_size; /* just as a cross-check */ - uint32 xlp_xlog_blcksz; /* just as a cross-check */ -} XLogLongPageHeaderData; - -#define SizeOfXLogLongPHD MAXALIGN(sizeof(XLogLongPageHeaderData)) - -typedef XLogLongPageHeaderData *XLogLongPageHeader; - -/* When record crosses page boundary, set this flag in new page's header */ -#define XLP_FIRST_IS_CONTRECORD 0x0001 -/* This flag indicates a "long" page header */ -#define XLP_LONG_HEADER 0x0002 -/* This flag indicates backup blocks starting in this page are optional */ -#define XLP_BKP_REMOVABLE 0x0004 -/* Replaces a missing contrecord; see CreateOverwriteContrecordRecord */ -#define XLP_FIRST_IS_OVERWRITE_CONTRECORD 0x0008 -/* All defined flag bits in xlp_info (used for validity checking of header) */ -#define XLP_ALL_FLAGS 0x000F - -#define XLogPageHeaderSize(hdr) \ - (((hdr)->xlp_info & XLP_LONG_HEADER) ? SizeOfXLogLongPHD : SizeOfXLogShortPHD) - -/* wal_segment_size can range from 1MB to 1GB */ -#define WalSegMinSize 1024 * 1024 -#define WalSegMaxSize 1024 * 1024 * 1024 -/* default number of min and max wal segments */ -#define DEFAULT_MIN_WAL_SEGS 5 -#define DEFAULT_MAX_WAL_SEGS 64 - -/* check that the given size is a valid wal_segment_size */ -#define IsPowerOf2(x) (x > 0 && ((x) & ((x)-1)) == 0) -#define IsValidWalSegSize(size) \ - (IsPowerOf2(size) && \ - ((size) >= WalSegMinSize && (size) <= WalSegMaxSize)) - -#define XLogSegmentsPerXLogId(wal_segsz_bytes) \ - (UINT64CONST(0x100000000) / (wal_segsz_bytes)) - -#define XLogSegNoOffsetToRecPtr(segno, offset, wal_segsz_bytes, dest) \ - (dest) = (segno) * (wal_segsz_bytes) + (offset) - -#define XLogSegmentOffset(xlogptr, wal_segsz_bytes) \ - ((xlogptr) & ((wal_segsz_bytes) - 1)) - -/* - * Compute a segment number from an XLogRecPtr. - * - * For XLByteToSeg, do the computation at face value. For XLByteToPrevSeg, - * a boundary byte is taken to be in the previous segment. This is suitable - * for deciding which segment to write given a pointer to a record end, - * for example. - */ -#define XLByteToSeg(xlrp, logSegNo, wal_segsz_bytes) \ - logSegNo = (xlrp) / (wal_segsz_bytes) - -#define XLByteToPrevSeg(xlrp, logSegNo, wal_segsz_bytes) \ - logSegNo = ((xlrp) - 1) / (wal_segsz_bytes) - -/* - * Convert values of GUCs measured in megabytes to equiv. segment count. - * Rounds down. - */ -#define XLogMBVarToSegs(mbvar, wal_segsz_bytes) \ - ((mbvar) / ((wal_segsz_bytes) / (1024 * 1024))) - -/* - * Is an XLogRecPtr within a particular XLOG segment? - * - * For XLByteInSeg, do the computation at face value. For XLByteInPrevSeg, - * a boundary byte is taken to be in the previous segment. - */ -#define XLByteInSeg(xlrp, logSegNo, wal_segsz_bytes) \ - (((xlrp) / (wal_segsz_bytes)) == (logSegNo)) - -#define XLByteInPrevSeg(xlrp, logSegNo, wal_segsz_bytes) \ - ((((xlrp) - 1) / (wal_segsz_bytes)) == (logSegNo)) - -/* Check if an XLogRecPtr value is in a plausible range */ -#define XRecOffIsValid(xlrp) \ - ((xlrp) % XLOG_BLCKSZ >= SizeOfXLogShortPHD) - -/* - * The XLog directory and control file (relative to $PGDATA) - */ -#define XLOGDIR "pg_wal" -#define XLOG_CONTROL_FILE "global/pg_control" - -/* - * These macros encapsulate knowledge about the exact layout of XLog file - * names, timeline history file names, and archive-status file names. - */ -#define MAXFNAMELEN 64 - -/* Length of XLog file name */ -#define XLOG_FNAME_LEN 24 - -/* - * Generate a WAL segment file name. Do not use this macro in a helper - * function allocating the result generated. - */ -#define XLogFileName(fname, tli, logSegNo, wal_segsz_bytes) \ - snprintf(fname, MAXFNAMELEN, "%08X%08X%08X", tli, \ - (uint32) ((logSegNo) / XLogSegmentsPerXLogId(wal_segsz_bytes)), \ - (uint32) ((logSegNo) % XLogSegmentsPerXLogId(wal_segsz_bytes))) - -#define XLogFileNameById(fname, tli, log, seg) \ - snprintf(fname, MAXFNAMELEN, "%08X%08X%08X", tli, log, seg) - -#define IsXLogFileName(fname) \ - (strlen(fname) == XLOG_FNAME_LEN && \ - strspn(fname, "0123456789ABCDEF") == XLOG_FNAME_LEN) - -/* - * XLOG segment with .partial suffix. Used by pg_receivewal and at end of - * archive recovery, when we want to archive a WAL segment but it might not - * be complete yet. - */ -#define IsPartialXLogFileName(fname) \ - (strlen(fname) == XLOG_FNAME_LEN + strlen(".partial") && \ - strspn(fname, "0123456789ABCDEF") == XLOG_FNAME_LEN && \ - strcmp((fname) + XLOG_FNAME_LEN, ".partial") == 0) - -#define XLogFromFileName(fname, tli, logSegNo, wal_segsz_bytes) \ - do { \ - uint32 log; \ - uint32 seg; \ - sscanf(fname, "%08X%08X%08X", tli, &log, &seg); \ - *logSegNo = (uint64) log * XLogSegmentsPerXLogId(wal_segsz_bytes) + seg; \ - } while (0) - -#define XLogFilePath(path, tli, logSegNo, wal_segsz_bytes) \ - snprintf(path, MAXPGPATH, XLOGDIR "/%08X%08X%08X", tli, \ - (uint32) ((logSegNo) / XLogSegmentsPerXLogId(wal_segsz_bytes)), \ - (uint32) ((logSegNo) % XLogSegmentsPerXLogId(wal_segsz_bytes))) - -#define TLHistoryFileName(fname, tli) \ - snprintf(fname, MAXFNAMELEN, "%08X.history", tli) - -#define IsTLHistoryFileName(fname) \ - (strlen(fname) == 8 + strlen(".history") && \ - strspn(fname, "0123456789ABCDEF") == 8 && \ - strcmp((fname) + 8, ".history") == 0) - -#define TLHistoryFilePath(path, tli) \ - snprintf(path, MAXPGPATH, XLOGDIR "/%08X.history", tli) - -#define StatusFilePath(path, xlog, suffix) \ - snprintf(path, MAXPGPATH, XLOGDIR "/archive_status/%s%s", xlog, suffix) - -#define BackupHistoryFileName(fname, tli, logSegNo, startpoint, wal_segsz_bytes) \ - snprintf(fname, MAXFNAMELEN, "%08X%08X%08X.%08X.backup", tli, \ - (uint32) ((logSegNo) / XLogSegmentsPerXLogId(wal_segsz_bytes)), \ - (uint32) ((logSegNo) % XLogSegmentsPerXLogId(wal_segsz_bytes)), \ - (uint32) (XLogSegmentOffset(startpoint, wal_segsz_bytes))) - -#define IsBackupHistoryFileName(fname) \ - (strlen(fname) > XLOG_FNAME_LEN && \ - strspn(fname, "0123456789ABCDEF") == XLOG_FNAME_LEN && \ - strcmp((fname) + strlen(fname) - strlen(".backup"), ".backup") == 0) - -#define BackupHistoryFilePath(path, tli, logSegNo, startpoint, wal_segsz_bytes) \ - snprintf(path, MAXPGPATH, XLOGDIR "/%08X%08X%08X.%08X.backup", tli, \ - (uint32) ((logSegNo) / XLogSegmentsPerXLogId(wal_segsz_bytes)), \ - (uint32) ((logSegNo) % XLogSegmentsPerXLogId(wal_segsz_bytes)), \ - (uint32) (XLogSegmentOffset((startpoint), wal_segsz_bytes))) - -/* - * Information logged when we detect a change in one of the parameters - * important for Hot Standby. - */ -typedef struct xl_parameter_change -{ - int MaxConnections; - int max_worker_processes; - int max_wal_senders; - int max_prepared_xacts; - int max_locks_per_xact; - int wal_level; - bool wal_log_hints; - bool track_commit_timestamp; -} xl_parameter_change; - -/* logs restore point */ -typedef struct xl_restore_point -{ - TimestampTz rp_time; - char rp_name[MAXFNAMELEN]; -} xl_restore_point; - -/* Overwrite of prior contrecord */ -typedef struct xl_overwrite_contrecord -{ - XLogRecPtr overwritten_lsn; - TimestampTz overwrite_time; -} xl_overwrite_contrecord; - -/* End of recovery mark, when we don't do an END_OF_RECOVERY checkpoint */ -typedef struct xl_end_of_recovery -{ - TimestampTz end_time; - TimeLineID ThisTimeLineID; /* new TLI */ - TimeLineID PrevTimeLineID; /* previous TLI we forked off from */ -} xl_end_of_recovery; - -/* - * The functions in xloginsert.c construct a chain of XLogRecData structs - * to represent the final WAL record. - */ -typedef struct XLogRecData -{ - struct XLogRecData *next; /* next struct in chain, or NULL */ - char *data; /* start of rmgr data to include */ - uint32 len; /* length of rmgr data to include */ -} XLogRecData; - -/* - * Recovery target action. - */ -typedef enum -{ - RECOVERY_TARGET_ACTION_PAUSE, - RECOVERY_TARGET_ACTION_PROMOTE, - RECOVERY_TARGET_ACTION_SHUTDOWN -} RecoveryTargetAction; - -struct LogicalDecodingContext; -struct XLogRecordBuffer; - -/* - * Method table for resource managers. - * - * This struct must be kept in sync with the PG_RMGR definition in - * rmgr.c. - * - * rm_identify must return a name for the record based on xl_info (without - * reference to the rmid). For example, XLOG_BTREE_VACUUM would be named - * "VACUUM". rm_desc can then be called to obtain additional detail for the - * record, if available (e.g. the last block). - * - * rm_mask takes as input a page modified by the resource manager and masks - * out bits that shouldn't be flagged by wal_consistency_checking. - * - * RmgrTable[] is indexed by RmgrId values (see rmgrlist.h). If rm_name is - * NULL, the corresponding RmgrTable entry is considered invalid. - */ -typedef struct RmgrData -{ - const char *rm_name; - void (*rm_redo) (XLogReaderState *record); - void (*rm_desc) (StringInfo buf, XLogReaderState *record); - const char *(*rm_identify) (uint8 info); - void (*rm_startup) (void); - void (*rm_cleanup) (void); - void (*rm_mask) (char *pagedata, BlockNumber blkno); - void (*rm_decode) (struct LogicalDecodingContext *ctx, - struct XLogRecordBuffer *buf); -} RmgrData; - -extern PGDLLIMPORT RmgrData RmgrTable[]; -extern void RmgrStartup(void); -extern void RmgrCleanup(void); -extern void RmgrNotFound(RmgrId rmid); -extern void RegisterCustomRmgr(RmgrId rmid, RmgrData *rmgr); - -#ifndef FRONTEND -static inline bool -RmgrIdExists(RmgrId rmid) -{ - return RmgrTable[rmid].rm_name != NULL; -} - -static inline RmgrData -GetRmgr(RmgrId rmid) -{ - if (unlikely(!RmgrIdExists(rmid))) - RmgrNotFound(rmid); - return RmgrTable[rmid]; -} -#endif - -/* - * Exported to support xlog switching from checkpointer - */ -extern pg_time_t GetLastSegSwitchData(XLogRecPtr *lastSwitchLSN); -extern XLogRecPtr RequestXLogSwitch(bool mark_unimportant); - -extern void GetOldestRestartPoint(XLogRecPtr *oldrecptr, TimeLineID *oldtli); - -extern void XLogRecGetBlockRefInfo(XLogReaderState *record, bool pretty, - bool detailed_format, StringInfo buf, - uint32 *fpi_len); - -/* - * Exported for the functions in timeline.c and xlogarchive.c. Only valid - * in the startup process. - */ -extern PGDLLIMPORT bool ArchiveRecoveryRequested; -extern PGDLLIMPORT bool InArchiveRecovery; -extern PGDLLIMPORT bool StandbyMode; -extern PGDLLIMPORT char *recoveryRestoreCommand; - -#endif /* XLOG_INTERNAL_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlogdefs.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlogdefs.h deleted file mode 100644 index a47e3eeb1..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlogdefs.h +++ /dev/null @@ -1,101 +0,0 @@ -/* - * xlogdefs.h - * - * Postgres write-ahead log manager record pointer and - * timeline number definitions - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/xlogdefs.h - */ -#ifndef XLOG_DEFS_H -#define XLOG_DEFS_H - -#include /* need open() flags */ - -/* - * Pointer to a location in the XLOG. These pointers are 64 bits wide, - * because we don't want them ever to overflow. - */ -typedef uint64 XLogRecPtr; - -/* - * Zero is used indicate an invalid pointer. Bootstrap skips the first possible - * WAL segment, initializing the first WAL page at WAL segment size, so no XLOG - * record can begin at zero. - */ -#define InvalidXLogRecPtr 0 -#define XLogRecPtrIsInvalid(r) ((r) == InvalidXLogRecPtr) - -/* - * First LSN to use for "fake" LSNs. - * - * Values smaller than this can be used for special per-AM purposes. - */ -#define FirstNormalUnloggedLSN ((XLogRecPtr) 1000) - -/* - * Handy macro for printing XLogRecPtr in conventional format, e.g., - * - * printf("%X/%X", LSN_FORMAT_ARGS(lsn)); - */ -#define LSN_FORMAT_ARGS(lsn) (AssertVariableIsOfTypeMacro((lsn), XLogRecPtr), (uint32) ((lsn) >> 32)), ((uint32) (lsn)) - -/* - * XLogSegNo - physical log file sequence number. - */ -typedef uint64 XLogSegNo; - -/* - * TimeLineID (TLI) - identifies different database histories to prevent - * confusion after restoring a prior state of a database installation. - * TLI does not change in a normal stop/restart of the database (including - * crash-and-recover cases); but we must assign a new TLI after doing - * a recovery to a prior state, a/k/a point-in-time recovery. This makes - * the new WAL logfile sequence we generate distinguishable from the - * sequence that was generated in the previous incarnation. - */ -typedef uint32 TimeLineID; - -/* - * Replication origin id - this is located in this file to avoid having to - * include origin.h in a bunch of xlog related places. - */ -typedef uint16 RepOriginId; - -/* - * This chunk of hackery attempts to determine which file sync methods - * are available on the current platform, and to choose an appropriate - * default method. We assume that fsync() is always available, and that - * configure determined whether fdatasync() is. - */ -#if defined(O_SYNC) -#define OPEN_SYNC_FLAG O_SYNC -#elif defined(O_FSYNC) -#define OPEN_SYNC_FLAG O_FSYNC -#endif - -#if defined(O_DSYNC) -#if defined(OPEN_SYNC_FLAG) -/* O_DSYNC is distinct? */ -#if O_DSYNC != OPEN_SYNC_FLAG -#define OPEN_DATASYNC_FLAG O_DSYNC -#endif -#else /* !defined(OPEN_SYNC_FLAG) */ -/* Win32 only has O_DSYNC */ -#define OPEN_DATASYNC_FLAG O_DSYNC -#endif -#endif - -#if defined(PLATFORM_DEFAULT_SYNC_METHOD) -#define DEFAULT_SYNC_METHOD PLATFORM_DEFAULT_SYNC_METHOD -#elif defined(OPEN_DATASYNC_FLAG) -#define DEFAULT_SYNC_METHOD SYNC_METHOD_OPEN_DSYNC -#elif defined(HAVE_FDATASYNC) -#define DEFAULT_SYNC_METHOD SYNC_METHOD_FDATASYNC -#else -#define DEFAULT_SYNC_METHOD SYNC_METHOD_FSYNC -#endif - -#endif /* XLOG_DEFS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlogprefetcher.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlogprefetcher.h deleted file mode 100644 index fdd67fced..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlogprefetcher.h +++ /dev/null @@ -1,55 +0,0 @@ -/*------------------------------------------------------------------------- - * - * xlogprefetcher.h - * Declarations for the recovery prefetching module. - * - * Portions Copyright (c) 2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * IDENTIFICATION - * src/include/access/xlogprefetcher.h - *------------------------------------------------------------------------- - */ -#ifndef XLOGPREFETCHER_H -#define XLOGPREFETCHER_H - -#include "access/xlogdefs.h" -#include "access/xlogreader.h" -#include "access/xlogrecord.h" - -/* GUCs */ -extern PGDLLIMPORT int recovery_prefetch; - -/* Possible values for recovery_prefetch */ -typedef enum -{ - RECOVERY_PREFETCH_OFF, - RECOVERY_PREFETCH_ON, - RECOVERY_PREFETCH_TRY -} RecoveryPrefetchValue; - -struct XLogPrefetcher; -typedef struct XLogPrefetcher XLogPrefetcher; - - -extern void XLogPrefetchReconfigure(void); - -extern size_t XLogPrefetchShmemSize(void); -extern void XLogPrefetchShmemInit(void); - -extern void XLogPrefetchResetStats(void); - -extern XLogPrefetcher *XLogPrefetcherAllocate(XLogReaderState *reader); -extern void XLogPrefetcherFree(XLogPrefetcher *prefetcher); - -extern XLogReaderState *XLogPrefetcherGetReader(XLogPrefetcher *prefetcher); - -extern void XLogPrefetcherBeginRead(XLogPrefetcher *prefetcher, - XLogRecPtr recPtr); - -extern XLogRecord *XLogPrefetcherReadRecord(XLogPrefetcher *prefetcher, - char **errmsg); - -extern void XLogPrefetcherComputeStats(XLogPrefetcher *prefetcher); - -#endif diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlogreader.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlogreader.h deleted file mode 100644 index 9e63162e4..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlogreader.h +++ /dev/null @@ -1,443 +0,0 @@ -/*------------------------------------------------------------------------- - * - * xlogreader.h - * Definitions for the generic XLog reading facility - * - * Portions Copyright (c) 2013-2022, PostgreSQL Global Development Group - * - * IDENTIFICATION - * src/include/access/xlogreader.h - * - * NOTES - * See the definition of the XLogReaderState struct for instructions on - * how to use the XLogReader infrastructure. - * - * The basic idea is to allocate an XLogReaderState via - * XLogReaderAllocate(), position the reader to the first record with - * XLogBeginRead() or XLogFindNextRecord(), and call XLogReadRecord() - * until it returns NULL. - * - * Callers supply a page_read callback if they want to call - * XLogReadRecord or XLogFindNextRecord; it can be passed in as NULL - * otherwise. The WALRead function can be used as a helper to write - * page_read callbacks, but it is not mandatory; callers that use it, - * must supply segment_open callbacks. The segment_close callback - * must always be supplied. - * - * After reading a record with XLogReadRecord(), it's decomposed into - * the per-block and main data parts, and the parts can be accessed - * with the XLogRec* macros and functions. You can also decode a - * record that's already constructed in memory, without reading from - * disk, by calling the DecodeXLogRecord() function. - *------------------------------------------------------------------------- - */ -#ifndef XLOGREADER_H -#define XLOGREADER_H - -#ifndef FRONTEND -#include "access/transam.h" -#endif - -#include "access/xlogrecord.h" -#include "storage/buf.h" - -/* WALOpenSegment represents a WAL segment being read. */ -typedef struct WALOpenSegment -{ - int ws_file; /* segment file descriptor */ - XLogSegNo ws_segno; /* segment number */ - TimeLineID ws_tli; /* timeline ID of the currently open file */ -} WALOpenSegment; - -/* WALSegmentContext carries context information about WAL segments to read */ -typedef struct WALSegmentContext -{ - char ws_dir[MAXPGPATH]; - int ws_segsize; -} WALSegmentContext; - -typedef struct XLogReaderState XLogReaderState; - -/* Function type definitions for various xlogreader interactions */ -typedef int (*XLogPageReadCB) (XLogReaderState *xlogreader, - XLogRecPtr targetPagePtr, - int reqLen, - XLogRecPtr targetRecPtr, - char *readBuf); -typedef void (*WALSegmentOpenCB) (XLogReaderState *xlogreader, - XLogSegNo nextSegNo, - TimeLineID *tli_p); -typedef void (*WALSegmentCloseCB) (XLogReaderState *xlogreader); - -typedef struct XLogReaderRoutine -{ - /* - * Data input callback - * - * This callback shall read at least reqLen valid bytes of the xlog page - * starting at targetPagePtr, and store them in readBuf. The callback - * shall return the number of bytes read (never more than XLOG_BLCKSZ), or - * -1 on failure. The callback shall sleep, if necessary, to wait for the - * requested bytes to become available. The callback will not be invoked - * again for the same page unless more than the returned number of bytes - * are needed. - * - * targetRecPtr is the position of the WAL record we're reading. Usually - * it is equal to targetPagePtr + reqLen, but sometimes xlogreader needs - * to read and verify the page or segment header, before it reads the - * actual WAL record it's interested in. In that case, targetRecPtr can - * be used to determine which timeline to read the page from. - * - * The callback shall set ->seg.ws_tli to the TLI of the file the page was - * read from. - */ - XLogPageReadCB page_read; - - /* - * Callback to open the specified WAL segment for reading. ->seg.ws_file - * shall be set to the file descriptor of the opened segment. In case of - * failure, an error shall be raised by the callback and it shall not - * return. - * - * "nextSegNo" is the number of the segment to be opened. - * - * "tli_p" is an input/output argument. WALRead() uses it to pass the - * timeline in which the new segment should be found, but the callback can - * use it to return the TLI that it actually opened. - */ - WALSegmentOpenCB segment_open; - - /* - * WAL segment close callback. ->seg.ws_file shall be set to a negative - * number. - */ - WALSegmentCloseCB segment_close; -} XLogReaderRoutine; - -#define XL_ROUTINE(...) &(XLogReaderRoutine){__VA_ARGS__} - -typedef struct -{ - /* Is this block ref in use? */ - bool in_use; - - /* Identify the block this refers to */ - RelFileNode rnode; - ForkNumber forknum; - BlockNumber blkno; - - /* Prefetching workspace. */ - Buffer prefetch_buffer; - - /* copy of the fork_flags field from the XLogRecordBlockHeader */ - uint8 flags; - - /* Information on full-page image, if any */ - bool has_image; /* has image, even for consistency checking */ - bool apply_image; /* has image that should be restored */ - char *bkp_image; - uint16 hole_offset; - uint16 hole_length; - uint16 bimg_len; - uint8 bimg_info; - - /* Buffer holding the rmgr-specific data associated with this block */ - bool has_data; - char *data; - uint16 data_len; - uint16 data_bufsz; -} DecodedBkpBlock; - -/* - * The decoded contents of a record. This occupies a contiguous region of - * memory, with main_data and blocks[n].data pointing to memory after the - * members declared here. - */ -typedef struct DecodedXLogRecord -{ - /* Private member used for resource management. */ - size_t size; /* total size of decoded record */ - bool oversized; /* outside the regular decode buffer? */ - struct DecodedXLogRecord *next; /* decoded record queue link */ - - /* Public members. */ - XLogRecPtr lsn; /* location */ - XLogRecPtr next_lsn; /* location of next record */ - XLogRecord header; /* header */ - RepOriginId record_origin; - TransactionId toplevel_xid; /* XID of top-level transaction */ - char *main_data; /* record's main data portion */ - uint32 main_data_len; /* main data portion's length */ - int max_block_id; /* highest block_id in use (-1 if none) */ - DecodedBkpBlock blocks[FLEXIBLE_ARRAY_MEMBER]; -} DecodedXLogRecord; - -struct XLogReaderState -{ - /* - * Operational callbacks - */ - XLogReaderRoutine routine; - - /* ---------------------------------------- - * Public parameters - * ---------------------------------------- - */ - - /* - * System identifier of the xlog files we're about to read. Set to zero - * (the default value) if unknown or unimportant. - */ - uint64 system_identifier; - - /* - * Opaque data for callbacks to use. Not used by XLogReader. - */ - void *private_data; - - /* - * Start and end point of last record read. EndRecPtr is also used as the - * position to read next. Calling XLogBeginRead() sets EndRecPtr to the - * starting position and ReadRecPtr to invalid. - * - * Start and end point of last record returned by XLogReadRecord(). These - * are also available as record->lsn and record->next_lsn. - */ - XLogRecPtr ReadRecPtr; /* start of last record read */ - XLogRecPtr EndRecPtr; /* end+1 of last record read */ - - /* - * Set at the end of recovery: the start point of a partial record at the - * end of WAL (InvalidXLogRecPtr if there wasn't one), and the start - * location of its first contrecord that went missing. - */ - XLogRecPtr abortedRecPtr; - XLogRecPtr missingContrecPtr; - /* Set when XLP_FIRST_IS_OVERWRITE_CONTRECORD is found */ - XLogRecPtr overwrittenRecPtr; - - - /* ---------------------------------------- - * Decoded representation of current record - * - * Use XLogRecGet* functions to investigate the record; these fields - * should not be accessed directly. - * ---------------------------------------- - * Start and end point of the last record read and decoded by - * XLogReadRecordInternal(). NextRecPtr is also used as the position to - * decode next. Calling XLogBeginRead() sets NextRecPtr and EndRecPtr to - * the requested starting position. - */ - XLogRecPtr DecodeRecPtr; /* start of last record decoded */ - XLogRecPtr NextRecPtr; /* end+1 of last record decoded */ - XLogRecPtr PrevRecPtr; /* start of previous record decoded */ - - /* Last record returned by XLogReadRecord(). */ - DecodedXLogRecord *record; - - /* ---------------------------------------- - * private/internal state - * ---------------------------------------- - */ - - /* - * Buffer for decoded records. This is a circular buffer, though - * individual records can't be split in the middle, so some space is often - * wasted at the end. Oversized records that don't fit in this space are - * allocated separately. - */ - char *decode_buffer; - size_t decode_buffer_size; - bool free_decode_buffer; /* need to free? */ - char *decode_buffer_head; /* data is read from the head */ - char *decode_buffer_tail; /* new data is written at the tail */ - - /* - * Queue of records that have been decoded. This is a linked list that - * usually consists of consecutive records in decode_buffer, but may also - * contain oversized records allocated with palloc(). - */ - DecodedXLogRecord *decode_queue_head; /* oldest decoded record */ - DecodedXLogRecord *decode_queue_tail; /* newest decoded record */ - - /* - * Buffer for currently read page (XLOG_BLCKSZ bytes, valid up to at least - * readLen bytes) - */ - char *readBuf; - uint32 readLen; - - /* last read XLOG position for data currently in readBuf */ - WALSegmentContext segcxt; - WALOpenSegment seg; - uint32 segoff; - - /* - * beginning of prior page read, and its TLI. Doesn't necessarily - * correspond to what's in readBuf; used for timeline sanity checks. - */ - XLogRecPtr latestPagePtr; - TimeLineID latestPageTLI; - - /* beginning of the WAL record being read. */ - XLogRecPtr currRecPtr; - /* timeline to read it from, 0 if a lookup is required */ - TimeLineID currTLI; - - /* - * Safe point to read to in currTLI if current TLI is historical - * (tliSwitchPoint) or InvalidXLogRecPtr if on current timeline. - * - * Actually set to the start of the segment containing the timeline switch - * that ends currTLI's validity, not the LSN of the switch its self, since - * we can't assume the old segment will be present. - */ - XLogRecPtr currTLIValidUntil; - - /* - * If currTLI is not the most recent known timeline, the next timeline to - * read from when currTLIValidUntil is reached. - */ - TimeLineID nextTLI; - - /* - * Buffer for current ReadRecord result (expandable), used when a record - * crosses a page boundary. - */ - char *readRecordBuf; - uint32 readRecordBufSize; - - /* Buffer to hold error message */ - char *errormsg_buf; - bool errormsg_deferred; - - /* - * Flag to indicate to XLogPageReadCB that it should not block waiting for - * data. - */ - bool nonblocking; -}; - -/* - * Check if XLogNextRecord() has any more queued records or an error to return. - */ -static inline bool -XLogReaderHasQueuedRecordOrError(XLogReaderState *state) -{ - return (state->decode_queue_head != NULL) || state->errormsg_deferred; -} - -/* Get a new XLogReader */ -extern XLogReaderState *XLogReaderAllocate(int wal_segment_size, - const char *waldir, - XLogReaderRoutine *routine, - void *private_data); -extern XLogReaderRoutine *LocalXLogReaderRoutine(void); - -/* Free an XLogReader */ -extern void XLogReaderFree(XLogReaderState *state); - -/* Optionally provide a circular decoding buffer to allow readahead. */ -extern void XLogReaderSetDecodeBuffer(XLogReaderState *state, - void *buffer, - size_t size); - -/* Position the XLogReader to given record */ -extern void XLogBeginRead(XLogReaderState *state, XLogRecPtr RecPtr); -extern XLogRecPtr XLogFindNextRecord(XLogReaderState *state, XLogRecPtr RecPtr); - -/* Return values from XLogPageReadCB. */ -typedef enum XLogPageReadResult -{ - XLREAD_SUCCESS = 0, /* record is successfully read */ - XLREAD_FAIL = -1, /* failed during reading a record */ - XLREAD_WOULDBLOCK = -2 /* nonblocking mode only, no data */ -} XLogPageReadResult; - -/* Read the next XLog record. Returns NULL on end-of-WAL or failure */ -extern struct XLogRecord *XLogReadRecord(XLogReaderState *state, - char **errormsg); - -/* Consume the next record or error. */ -extern DecodedXLogRecord *XLogNextRecord(XLogReaderState *state, - char **errormsg); - -/* Release the previously returned record, if necessary. */ -extern XLogRecPtr XLogReleasePreviousRecord(XLogReaderState *state); - -/* Try to read ahead, if there is data and space. */ -extern DecodedXLogRecord *XLogReadAhead(XLogReaderState *state, - bool nonblocking); - -/* Validate a page */ -extern bool XLogReaderValidatePageHeader(XLogReaderState *state, - XLogRecPtr recptr, char *phdr); - -/* Forget error produced by XLogReaderValidatePageHeader(). */ -extern void XLogReaderResetError(XLogReaderState *state); - -/* - * Error information from WALRead that both backend and frontend caller can - * process. Currently only errors from pg_pread can be reported. - */ -typedef struct WALReadError -{ - int wre_errno; /* errno set by the last pg_pread() */ - int wre_off; /* Offset we tried to read from. */ - int wre_req; /* Bytes requested to be read. */ - int wre_read; /* Bytes read by the last read(). */ - WALOpenSegment wre_seg; /* Segment we tried to read from. */ -} WALReadError; - -extern bool WALRead(XLogReaderState *state, - char *buf, XLogRecPtr startptr, Size count, - TimeLineID tli, WALReadError *errinfo); - -/* Functions for decoding an XLogRecord */ - -extern size_t DecodeXLogRecordRequiredSpace(size_t xl_tot_len); -extern bool DecodeXLogRecord(XLogReaderState *state, - DecodedXLogRecord *decoded, - XLogRecord *record, - XLogRecPtr lsn, - char **errmsg); - -/* - * Macros that provide access to parts of the record most recently returned by - * XLogReadRecord() or XLogNextRecord(). - */ -#define XLogRecGetTotalLen(decoder) ((decoder)->record->header.xl_tot_len) -#define XLogRecGetPrev(decoder) ((decoder)->record->header.xl_prev) -#define XLogRecGetInfo(decoder) ((decoder)->record->header.xl_info) -#define XLogRecGetRmid(decoder) ((decoder)->record->header.xl_rmid) -#define XLogRecGetXid(decoder) ((decoder)->record->header.xl_xid) -#define XLogRecGetOrigin(decoder) ((decoder)->record->record_origin) -#define XLogRecGetTopXid(decoder) ((decoder)->record->toplevel_xid) -#define XLogRecGetData(decoder) ((decoder)->record->main_data) -#define XLogRecGetDataLen(decoder) ((decoder)->record->main_data_len) -#define XLogRecHasAnyBlockRefs(decoder) ((decoder)->record->max_block_id >= 0) -#define XLogRecMaxBlockId(decoder) ((decoder)->record->max_block_id) -#define XLogRecGetBlock(decoder, i) (&(decoder)->record->blocks[(i)]) -#define XLogRecHasBlockRef(decoder, block_id) \ - (((decoder)->record->max_block_id >= (block_id)) && \ - ((decoder)->record->blocks[block_id].in_use)) -#define XLogRecHasBlockImage(decoder, block_id) \ - ((decoder)->record->blocks[block_id].has_image) -#define XLogRecBlockImageApply(decoder, block_id) \ - ((decoder)->record->blocks[block_id].apply_image) - -#ifndef FRONTEND -extern FullTransactionId XLogRecGetFullXid(XLogReaderState *record); -#endif - -extern bool RestoreBlockImage(XLogReaderState *record, uint8 block_id, char *page); -extern char *XLogRecGetBlockData(XLogReaderState *record, uint8 block_id, Size *len); -extern void XLogRecGetBlockTag(XLogReaderState *record, uint8 block_id, - RelFileNode *rnode, ForkNumber *forknum, - BlockNumber *blknum); -extern bool XLogRecGetBlockTagExtended(XLogReaderState *record, uint8 block_id, - RelFileNode *rnode, ForkNumber *forknum, - BlockNumber *blknum, - Buffer *prefetch_buffer); - -#endif /* XLOGREADER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlogrecord.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlogrecord.h deleted file mode 100644 index 052ac6817..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlogrecord.h +++ /dev/null @@ -1,236 +0,0 @@ -/* - * xlogrecord.h - * - * Definitions for the WAL record format. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/xlogrecord.h - */ -#ifndef XLOGRECORD_H -#define XLOGRECORD_H - -#include "access/rmgr.h" -#include "access/xlogdefs.h" -#include "port/pg_crc32c.h" -#include "storage/block.h" -#include "storage/relfilenode.h" - -/* - * The overall layout of an XLOG record is: - * Fixed-size header (XLogRecord struct) - * XLogRecordBlockHeader struct - * XLogRecordBlockHeader struct - * ... - * XLogRecordDataHeader[Short|Long] struct - * block data - * block data - * ... - * main data - * - * There can be zero or more XLogRecordBlockHeaders, and 0 or more bytes of - * rmgr-specific data not associated with a block. XLogRecord structs - * always start on MAXALIGN boundaries in the WAL files, but the rest of - * the fields are not aligned. - * - * The XLogRecordBlockHeader, XLogRecordDataHeaderShort and - * XLogRecordDataHeaderLong structs all begin with a single 'id' byte. It's - * used to distinguish between block references, and the main data structs. - */ -typedef struct XLogRecord -{ - uint32 xl_tot_len; /* total len of entire record */ - TransactionId xl_xid; /* xact id */ - XLogRecPtr xl_prev; /* ptr to previous record in log */ - uint8 xl_info; /* flag bits, see below */ - RmgrId xl_rmid; /* resource manager for this record */ - /* 2 bytes of padding here, initialize to zero */ - pg_crc32c xl_crc; /* CRC for this record */ - - /* XLogRecordBlockHeaders and XLogRecordDataHeader follow, no padding */ - -} XLogRecord; - -#define SizeOfXLogRecord (offsetof(XLogRecord, xl_crc) + sizeof(pg_crc32c)) - -/* - * The high 4 bits in xl_info may be used freely by rmgr. The - * XLR_SPECIAL_REL_UPDATE and XLR_CHECK_CONSISTENCY bits can be passed by - * XLogInsert caller. The rest are set internally by XLogInsert. - */ -#define XLR_INFO_MASK 0x0F -#define XLR_RMGR_INFO_MASK 0xF0 - -/* - * If a WAL record modifies any relation files, in ways not covered by the - * usual block references, this flag is set. This is not used for anything - * by PostgreSQL itself, but it allows external tools that read WAL and keep - * track of modified blocks to recognize such special record types. - */ -#define XLR_SPECIAL_REL_UPDATE 0x01 - -/* - * Enforces consistency checks of replayed WAL at recovery. If enabled, - * each record will log a full-page write for each block modified by the - * record and will reuse it afterwards for consistency checks. The caller - * of XLogInsert can use this value if necessary, but if - * wal_consistency_checking is enabled for a rmgr this is set unconditionally. - */ -#define XLR_CHECK_CONSISTENCY 0x02 - -/* - * Header info for block data appended to an XLOG record. - * - * 'data_length' is the length of the rmgr-specific payload data associated - * with this block. It does not include the possible full page image, nor - * XLogRecordBlockHeader struct itself. - * - * Note that we don't attempt to align the XLogRecordBlockHeader struct! - * So, the struct must be copied to aligned local storage before use. - */ -typedef struct XLogRecordBlockHeader -{ - uint8 id; /* block reference ID */ - uint8 fork_flags; /* fork within the relation, and flags */ - uint16 data_length; /* number of payload bytes (not including page - * image) */ - - /* If BKPBLOCK_HAS_IMAGE, an XLogRecordBlockImageHeader struct follows */ - /* If BKPBLOCK_SAME_REL is not set, a RelFileNode follows */ - /* BlockNumber follows */ -} XLogRecordBlockHeader; - -#define SizeOfXLogRecordBlockHeader (offsetof(XLogRecordBlockHeader, data_length) + sizeof(uint16)) - -/* - * Additional header information when a full-page image is included - * (i.e. when BKPBLOCK_HAS_IMAGE is set). - * - * The XLOG code is aware that PG data pages usually contain an unused "hole" - * in the middle, which contains only zero bytes. Since we know that the - * "hole" is all zeros, we remove it from the stored data (and it's not counted - * in the XLOG record's CRC, either). Hence, the amount of block data actually - * present is (BLCKSZ - ). - * - * Additionally, when wal_compression is enabled, we will try to compress full - * page images using one of the supported algorithms, after removing the - * "hole". This can reduce the WAL volume, but at some extra cost of CPU spent - * on the compression during WAL logging. In this case, since the "hole" - * length cannot be calculated by subtracting the number of page image bytes - * from BLCKSZ, basically it needs to be stored as an extra information. - * But when no "hole" exists, we can assume that the "hole" length is zero - * and no such an extra information needs to be stored. Note that - * the original version of page image is stored in WAL instead of the - * compressed one if the number of bytes saved by compression is less than - * the length of extra information. Hence, when a page image is successfully - * compressed, the amount of block data actually present is less than - * BLCKSZ - the length of "hole" bytes - the length of extra information. - */ -typedef struct XLogRecordBlockImageHeader -{ - uint16 length; /* number of page image bytes */ - uint16 hole_offset; /* number of bytes before "hole" */ - uint8 bimg_info; /* flag bits, see below */ - - /* - * If BKPIMAGE_HAS_HOLE and BKPIMAGE_COMPRESSED(), an - * XLogRecordBlockCompressHeader struct follows. - */ -} XLogRecordBlockImageHeader; - -#define SizeOfXLogRecordBlockImageHeader \ - (offsetof(XLogRecordBlockImageHeader, bimg_info) + sizeof(uint8)) - -/* Information stored in bimg_info */ -#define BKPIMAGE_HAS_HOLE 0x01 /* page image has "hole" */ -#define BKPIMAGE_APPLY 0x02 /* page image should be restored - * during replay */ -/* compression methods supported */ -#define BKPIMAGE_COMPRESS_PGLZ 0x04 -#define BKPIMAGE_COMPRESS_LZ4 0x08 -#define BKPIMAGE_COMPRESS_ZSTD 0x10 - -#define BKPIMAGE_COMPRESSED(info) \ - ((info & (BKPIMAGE_COMPRESS_PGLZ | BKPIMAGE_COMPRESS_LZ4 | \ - BKPIMAGE_COMPRESS_ZSTD)) != 0) - -/* - * Extra header information used when page image has "hole" and - * is compressed. - */ -typedef struct XLogRecordBlockCompressHeader -{ - uint16 hole_length; /* number of bytes in "hole" */ -} XLogRecordBlockCompressHeader; - -#define SizeOfXLogRecordBlockCompressHeader \ - sizeof(XLogRecordBlockCompressHeader) - -/* - * Maximum size of the header for a block reference. This is used to size a - * temporary buffer for constructing the header. - */ -#define MaxSizeOfXLogRecordBlockHeader \ - (SizeOfXLogRecordBlockHeader + \ - SizeOfXLogRecordBlockImageHeader + \ - SizeOfXLogRecordBlockCompressHeader + \ - sizeof(RelFileNode) + \ - sizeof(BlockNumber)) - -/* - * The fork number fits in the lower 4 bits in the fork_flags field. The upper - * bits are used for flags. - */ -#define BKPBLOCK_FORK_MASK 0x0F -#define BKPBLOCK_FLAG_MASK 0xF0 -#define BKPBLOCK_HAS_IMAGE 0x10 /* block data is an XLogRecordBlockImage */ -#define BKPBLOCK_HAS_DATA 0x20 -#define BKPBLOCK_WILL_INIT 0x40 /* redo will re-init the page */ -#define BKPBLOCK_SAME_REL 0x80 /* RelFileNode omitted, same as previous */ - -/* - * XLogRecordDataHeaderShort/Long are used for the "main data" portion of - * the record. If the length of the data is less than 256 bytes, the short - * form is used, with a single byte to hold the length. Otherwise the long - * form is used. - * - * (These structs are currently not used in the code, they are here just for - * documentation purposes). - */ -typedef struct XLogRecordDataHeaderShort -{ - uint8 id; /* XLR_BLOCK_ID_DATA_SHORT */ - uint8 data_length; /* number of payload bytes */ -} XLogRecordDataHeaderShort; - -#define SizeOfXLogRecordDataHeaderShort (sizeof(uint8) * 2) - -typedef struct XLogRecordDataHeaderLong -{ - uint8 id; /* XLR_BLOCK_ID_DATA_LONG */ - /* followed by uint32 data_length, unaligned */ -} XLogRecordDataHeaderLong; - -#define SizeOfXLogRecordDataHeaderLong (sizeof(uint8) + sizeof(uint32)) - -/* - * Block IDs used to distinguish different kinds of record fragments. Block - * references are numbered from 0 to XLR_MAX_BLOCK_ID. A rmgr is free to use - * any ID number in that range (although you should stick to small numbers, - * because the WAL machinery is optimized for that case). A few ID - * numbers are reserved to denote the "main" data portion of the record, - * as well as replication-supporting transaction metadata. - * - * The maximum is currently set at 32, quite arbitrarily. Most records only - * need a handful of block references, but there are a few exceptions that - * need more. - */ -#define XLR_MAX_BLOCK_ID 32 - -#define XLR_BLOCK_ID_DATA_SHORT 255 -#define XLR_BLOCK_ID_DATA_LONG 254 -#define XLR_BLOCK_ID_ORIGIN 253 -#define XLR_BLOCK_ID_TOPLEVEL_XID 252 - -#endif /* XLOGRECORD_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlogrecovery.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlogrecovery.h deleted file mode 100644 index 0aa85d90e..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/access/xlogrecovery.h +++ /dev/null @@ -1,157 +0,0 @@ -/* - * xlogrecovery.h - * - * Functions for WAL recovery and standby mode - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/access/xlogrecovery.h - */ -#ifndef XLOGRECOVERY_H -#define XLOGRECOVERY_H - -#include "access/xlogreader.h" -#include "catalog/pg_control.h" -#include "lib/stringinfo.h" -#include "utils/timestamp.h" - -/* - * Recovery target type. - * Only set during a Point in Time recovery, not when in standby mode. - */ -typedef enum -{ - RECOVERY_TARGET_UNSET, - RECOVERY_TARGET_XID, - RECOVERY_TARGET_TIME, - RECOVERY_TARGET_NAME, - RECOVERY_TARGET_LSN, - RECOVERY_TARGET_IMMEDIATE -} RecoveryTargetType; - -/* - * Recovery target TimeLine goal - */ -typedef enum -{ - RECOVERY_TARGET_TIMELINE_CONTROLFILE, - RECOVERY_TARGET_TIMELINE_LATEST, - RECOVERY_TARGET_TIMELINE_NUMERIC -} RecoveryTargetTimeLineGoal; - -/* Recovery pause states */ -typedef enum RecoveryPauseState -{ - RECOVERY_NOT_PAUSED, /* pause not requested */ - RECOVERY_PAUSE_REQUESTED, /* pause requested, but not yet paused */ - RECOVERY_PAUSED /* recovery is paused */ -} RecoveryPauseState; - -/* User-settable GUC parameters */ -extern PGDLLIMPORT bool recoveryTargetInclusive; -extern PGDLLIMPORT int recoveryTargetAction; -extern PGDLLIMPORT int recovery_min_apply_delay; -extern PGDLLIMPORT char *PrimaryConnInfo; -extern PGDLLIMPORT char *PrimarySlotName; -extern PGDLLIMPORT char *recoveryRestoreCommand; -extern PGDLLIMPORT char *recoveryEndCommand; -extern PGDLLIMPORT char *archiveCleanupCommand; - -/* indirectly set via GUC system */ -extern PGDLLIMPORT TransactionId recoveryTargetXid; -extern PGDLLIMPORT char *recovery_target_time_string; -extern PGDLLIMPORT TimestampTz recoveryTargetTime; -extern PGDLLIMPORT const char *recoveryTargetName; -extern PGDLLIMPORT XLogRecPtr recoveryTargetLSN; -extern PGDLLIMPORT RecoveryTargetType recoveryTarget; -extern PGDLLIMPORT char *PromoteTriggerFile; -extern PGDLLIMPORT bool wal_receiver_create_temp_slot; -extern PGDLLIMPORT RecoveryTargetTimeLineGoal recoveryTargetTimeLineGoal; -extern PGDLLIMPORT TimeLineID recoveryTargetTLIRequested; -extern PGDLLIMPORT TimeLineID recoveryTargetTLI; - -/* Have we already reached a consistent database state? */ -extern PGDLLIMPORT bool reachedConsistency; - -/* Are we currently in standby mode? */ -extern PGDLLIMPORT bool StandbyMode; - -extern Size XLogRecoveryShmemSize(void); -extern void XLogRecoveryShmemInit(void); - -extern void InitWalRecovery(ControlFileData *ControlFile, bool *wasShutdownPtr, bool *haveBackupLabel, bool *haveTblspcMap); -extern void PerformWalRecovery(void); - -/* - * FinishWalRecovery() returns this. It contains information about the point - * where recovery ended, and why it ended. - */ -typedef struct -{ - /* - * Information about the last valid or applied record, after which new WAL - * can be appended. 'lastRec' is the position where the last record - * starts, and 'endOfLog' is its end. 'lastPage' is a copy of the last - * partial page that contains endOfLog (or NULL if endOfLog is exactly at - * page boundary). 'lastPageBeginPtr' is the position where the last page - * begins. - * - * endOfLogTLI is the TLI in the filename of the XLOG segment containing - * the last applied record. It could be different from lastRecTLI, if - * there was a timeline switch in that segment, and we were reading the - * old WAL from a segment belonging to a higher timeline. - */ - XLogRecPtr lastRec; /* start of last valid or applied record */ - TimeLineID lastRecTLI; - XLogRecPtr endOfLog; /* end of last valid or applied record */ - TimeLineID endOfLogTLI; - - XLogRecPtr lastPageBeginPtr; /* LSN of page that contains endOfLog */ - char *lastPage; /* copy of the last page, up to endOfLog */ - - /* - * abortedRecPtr is the start pointer of a broken record at end of WAL - * when recovery completes; missingContrecPtr is the location of the first - * contrecord that went missing. See CreateOverwriteContrecordRecord for - * details. - */ - XLogRecPtr abortedRecPtr; - XLogRecPtr missingContrecPtr; - - /* short human-readable string describing why recovery ended */ - char *recoveryStopReason; - - /* - * If standby or recovery signal file was found, these flags are set - * accordingly. - */ - bool standby_signal_file_found; - bool recovery_signal_file_found; -} EndOfWalRecoveryInfo; - -extern EndOfWalRecoveryInfo *FinishWalRecovery(void); -extern void ShutdownWalRecovery(void); -extern void RemovePromoteSignalFiles(void); - -extern bool HotStandbyActive(void); -extern XLogRecPtr GetXLogReplayRecPtr(TimeLineID *replayTLI); -extern RecoveryPauseState GetRecoveryPauseState(void); -extern void SetRecoveryPause(bool recoveryPause); -extern void GetXLogReceiptTime(TimestampTz *rtime, bool *fromStream); -extern TimestampTz GetLatestXTime(void); -extern TimestampTz GetCurrentChunkReplayStartTime(void); -extern XLogRecPtr GetCurrentReplayRecPtr(TimeLineID *replayEndTLI); - -extern bool PromoteIsTriggered(void); -extern bool CheckPromoteSignal(void); -extern void WakeupRecovery(void); - -extern void StartupRequestWalReceiverRestart(void); -extern void XLogRequestWalReceiverReply(void); - -extern void RecoveryRequiresIntParameter(const char *param_name, int currValue, int minValue); - -extern void xlog_outdesc(StringInfo buf, XLogReaderState *record); - -#endif /* XLOGRECOVERY_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/c.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/c.h deleted file mode 100644 index e2f608075..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/c.h +++ /dev/null @@ -1,1391 +0,0 @@ -/*------------------------------------------------------------------------- - * - * c.h - * Fundamental C definitions. This is included by every .c file in - * PostgreSQL (via either postgres.h or postgres_fe.h, as appropriate). - * - * Note that the definitions here are not intended to be exposed to clients - * of the frontend interface libraries --- so we don't worry much about - * polluting the namespace with lots of stuff... - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/c.h - * - *------------------------------------------------------------------------- - */ -/* - *---------------------------------------------------------------- - * TABLE OF CONTENTS - * - * When adding stuff to this file, please try to put stuff - * into the relevant section, or add new sections as appropriate. - * - * section description - * ------- ------------------------------------------------ - * 0) pg_config.h and standard system headers - * 1) compiler characteristics - * 2) bool, true, false - * 3) standard system types - * 4) IsValid macros for system types - * 5) offsetof, lengthof, alignment - * 6) assertions - * 7) widely useful macros - * 8) random stuff - * 9) system-specific hacks - * - * NOTE: since this file is included by both frontend and backend modules, - * it's usually wrong to put an "extern" declaration here, unless it's - * ifdef'd so that it's seen in only one case or the other. - * typedefs and macros are the kind of thing that might go here. - * - *---------------------------------------------------------------- - */ -#ifndef C_H -#define C_H - -#include "postgres_ext.h" - -/* Must undef pg_config_ext.h symbols before including pg_config.h */ -#undef PG_INT64_TYPE - -#include "pg_config.h" -#include "pg_config_manual.h" /* must be after pg_config.h */ -#include "pg_config_os.h" /* must be before any system header files */ - -/* System header files that should be available everywhere in Postgres */ -#include -#include -#include -#include -#include -#ifdef HAVE_STRINGS_H -#include -#endif -#include -#include -#include -#if defined(WIN32) || defined(__CYGWIN__) -#include /* ensure O_BINARY is available */ -#endif -#include -#ifdef ENABLE_NLS -#include -#endif - - -/* ---------------------------------------------------------------- - * Section 1: compiler characteristics - * - * type prefixes (const, signed, volatile, inline) are handled in pg_config.h. - * ---------------------------------------------------------------- - */ - -/* - * Disable "inline" if PG_FORCE_DISABLE_INLINE is defined. - * This is used to work around compiler bugs and might also be useful for - * investigatory purposes. - */ -#ifdef PG_FORCE_DISABLE_INLINE -#undef inline -#define inline -#endif - -/* - * Attribute macros - * - * GCC: https://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html - * GCC: https://gcc.gnu.org/onlinedocs/gcc/Type-Attributes.html - * Clang: https://clang.llvm.org/docs/AttributeReference.html - * Sunpro: https://docs.oracle.com/cd/E18659_01/html/821-1384/gjzke.html - * XLC: https://www.ibm.com/support/knowledgecenter/SSGH2K_13.1.2/com.ibm.xlc131.aix.doc/language_ref/function_attributes.html - * XLC: https://www.ibm.com/support/knowledgecenter/SSGH2K_13.1.2/com.ibm.xlc131.aix.doc/language_ref/type_attrib.html - */ - -/* - * For compilers which don't support __has_attribute, we just define - * __has_attribute(x) to 0 so that we can define macros for various - * __attribute__s more easily below. - */ -#ifndef __has_attribute -#define __has_attribute(attribute) 0 -#endif - -/* only GCC supports the unused attribute */ -#ifdef __GNUC__ -#define pg_attribute_unused() __attribute__((unused)) -#else -#define pg_attribute_unused() -#endif - -/* - * pg_nodiscard means the compiler should warn if the result of a function - * call is ignored. The name "nodiscard" is chosen in alignment with - * (possibly future) C and C++ standards. For maximum compatibility, use it - * as a function declaration specifier, so it goes before the return type. - */ -#ifdef __GNUC__ -#define pg_nodiscard __attribute__((warn_unused_result)) -#else -#define pg_nodiscard -#endif - -/* - * Place this macro before functions that should be allowed to make misaligned - * accesses. Think twice before using it on non-x86-specific code! - * Testing can be done with "-fsanitize=alignment -fsanitize-trap=alignment" - * on clang, or "-fsanitize=alignment -fno-sanitize-recover=alignment" on gcc. - */ -#if __clang_major__ >= 7 || __GNUC__ >= 8 -#define pg_attribute_no_sanitize_alignment() __attribute__((no_sanitize("alignment"))) -#else -#define pg_attribute_no_sanitize_alignment() -#endif - -/* - * Append PG_USED_FOR_ASSERTS_ONLY to definitions of variables that are only - * used in assert-enabled builds, to avoid compiler warnings about unused - * variables in assert-disabled builds. - */ -#ifdef USE_ASSERT_CHECKING -#define PG_USED_FOR_ASSERTS_ONLY -#else -#define PG_USED_FOR_ASSERTS_ONLY pg_attribute_unused() -#endif - -/* GCC and XLC support format attributes */ -#if defined(__GNUC__) || defined(__IBMC__) -#define pg_attribute_format_arg(a) __attribute__((format_arg(a))) -#define pg_attribute_printf(f,a) __attribute__((format(PG_PRINTF_ATTRIBUTE, f, a))) -#else -#define pg_attribute_format_arg(a) -#define pg_attribute_printf(f,a) -#endif - -/* GCC, Sunpro and XLC support aligned, packed and noreturn */ -#if defined(__GNUC__) || defined(__SUNPRO_C) || defined(__IBMC__) -#define pg_attribute_aligned(a) __attribute__((aligned(a))) -#define pg_attribute_noreturn() __attribute__((noreturn)) -#define pg_attribute_packed() __attribute__((packed)) -#define HAVE_PG_ATTRIBUTE_NORETURN 1 -#else -/* - * NB: aligned and packed are not given default definitions because they - * affect code functionality; they *must* be implemented by the compiler - * if they are to be used. - */ -#define pg_attribute_noreturn() -#endif - -/* - * Use "pg_attribute_always_inline" in place of "inline" for functions that - * we wish to force inlining of, even when the compiler's heuristics would - * choose not to. But, if possible, don't force inlining in unoptimized - * debug builds. - */ -#if (defined(__GNUC__) && __GNUC__ > 3 && defined(__OPTIMIZE__)) || defined(__SUNPRO_C) || defined(__IBMC__) -/* GCC > 3, Sunpro and XLC support always_inline via __attribute__ */ -#define pg_attribute_always_inline __attribute__((always_inline)) inline -#elif defined(_MSC_VER) -/* MSVC has a special keyword for this */ -#define pg_attribute_always_inline __forceinline -#else -/* Otherwise, the best we can do is to say "inline" */ -#define pg_attribute_always_inline inline -#endif - -/* - * Forcing a function not to be inlined can be useful if it's the slow path of - * a performance-critical function, or should be visible in profiles to allow - * for proper cost attribution. Note that unlike the pg_attribute_XXX macros - * above, this should be placed before the function's return type and name. - */ -/* GCC, Sunpro and XLC support noinline via __attribute__ */ -#if (defined(__GNUC__) && __GNUC__ > 2) || defined(__SUNPRO_C) || defined(__IBMC__) -#define pg_noinline __attribute__((noinline)) -/* msvc via declspec */ -#elif defined(_MSC_VER) -#define pg_noinline __declspec(noinline) -#else -#define pg_noinline -#endif - -/* - * For now, just define pg_attribute_cold and pg_attribute_hot to be empty - * macros on minGW 8.1. There appears to be a compiler bug that results in - * compilation failure. At this time, we still have at least one buildfarm - * animal running that compiler, so this should make that green again. It's - * likely this compiler is not popular enough to warrant keeping this code - * around forever, so let's just remove it once the last buildfarm animal - * upgrades. - */ -#if defined(__MINGW64__) && __GNUC__ == 8 && __GNUC_MINOR__ == 1 - -#define pg_attribute_cold -#define pg_attribute_hot - -#else -/* - * Marking certain functions as "hot" or "cold" can be useful to assist the - * compiler in arranging the assembly code in a more efficient way. - */ -#if __has_attribute (cold) -#define pg_attribute_cold __attribute__((cold)) -#else -#define pg_attribute_cold -#endif - -#if __has_attribute (hot) -#define pg_attribute_hot __attribute__((hot)) -#else -#define pg_attribute_hot -#endif - -#endif /* defined(__MINGW64__) && __GNUC__ == 8 && - * __GNUC_MINOR__ == 1 */ -/* - * Mark a point as unreachable in a portable fashion. This should preferably - * be something that the compiler understands, to aid code generation. - * In assert-enabled builds, we prefer abort() for debugging reasons. - */ -#if defined(HAVE__BUILTIN_UNREACHABLE) && !defined(USE_ASSERT_CHECKING) -#define pg_unreachable() __builtin_unreachable() -#elif defined(_MSC_VER) && !defined(USE_ASSERT_CHECKING) -#define pg_unreachable() __assume(0) -#else -#define pg_unreachable() abort() -#endif - -/* - * Hints to the compiler about the likelihood of a branch. Both likely() and - * unlikely() return the boolean value of the contained expression. - * - * These should only be used sparingly, in very hot code paths. It's very easy - * to mis-estimate likelihoods. - */ -#if __GNUC__ >= 3 -#define likely(x) __builtin_expect((x) != 0, 1) -#define unlikely(x) __builtin_expect((x) != 0, 0) -#else -#define likely(x) ((x) != 0) -#define unlikely(x) ((x) != 0) -#endif - -/* - * CppAsString - * Convert the argument to a string, using the C preprocessor. - * CppAsString2 - * Convert the argument to a string, after one round of macro expansion. - * CppConcat - * Concatenate two arguments together, using the C preprocessor. - * - * Note: There used to be support here for pre-ANSI C compilers that didn't - * support # and ##. Nowadays, these macros are just for clarity and/or - * backward compatibility with existing PostgreSQL code. - */ -#define CppAsString(identifier) #identifier -#define CppAsString2(x) CppAsString(x) -#define CppConcat(x, y) x##y - -/* - * VA_ARGS_NARGS - * Returns the number of macro arguments it is passed. - * - * An empty argument still counts as an argument, so effectively, this is - * "one more than the number of commas in the argument list". - * - * This works for up to 63 arguments. Internally, VA_ARGS_NARGS_() is passed - * 64+N arguments, and the C99 standard only requires macros to allow up to - * 127 arguments, so we can't portably go higher. The implementation is - * pretty trivial: VA_ARGS_NARGS_() returns its 64th argument, and we set up - * the call so that that is the appropriate one of the list of constants. - * This idea is due to Laurent Deniau. - */ -#define VA_ARGS_NARGS(...) \ - VA_ARGS_NARGS_(__VA_ARGS__, \ - 63,62,61,60, \ - 59,58,57,56,55,54,53,52,51,50, \ - 49,48,47,46,45,44,43,42,41,40, \ - 39,38,37,36,35,34,33,32,31,30, \ - 29,28,27,26,25,24,23,22,21,20, \ - 19,18,17,16,15,14,13,12,11,10, \ - 9, 8, 7, 6, 5, 4, 3, 2, 1, 0) -#define VA_ARGS_NARGS_( \ - _01,_02,_03,_04,_05,_06,_07,_08,_09,_10, \ - _11,_12,_13,_14,_15,_16,_17,_18,_19,_20, \ - _21,_22,_23,_24,_25,_26,_27,_28,_29,_30, \ - _31,_32,_33,_34,_35,_36,_37,_38,_39,_40, \ - _41,_42,_43,_44,_45,_46,_47,_48,_49,_50, \ - _51,_52,_53,_54,_55,_56,_57,_58,_59,_60, \ - _61,_62,_63, N, ...) \ - (N) - -/* - * dummyret is used to set return values in macros that use ?: to make - * assignments. gcc wants these to be void, other compilers like char - */ -#ifdef __GNUC__ /* GNU cc */ -#define dummyret void -#else -#define dummyret char -#endif - -/* - * Generic function pointer. This can be used in the rare cases where it's - * necessary to cast a function pointer to a seemingly incompatible function - * pointer type while avoiding gcc's -Wcast-function-type warnings. - */ -typedef void (*pg_funcptr_t) (void); - -/* - * We require C99, hence the compiler should understand flexible array - * members. However, for documentation purposes we still consider it to be - * project style to write "field[FLEXIBLE_ARRAY_MEMBER]" not just "field[]". - * When computing the size of such an object, use "offsetof(struct s, f)" - * for portability. Don't use "offsetof(struct s, f[0])", as this doesn't - * work with MSVC and with C++ compilers. - */ -#define FLEXIBLE_ARRAY_MEMBER /* empty */ - -/* Which __func__ symbol do we have, if any? */ -#ifdef HAVE_FUNCNAME__FUNC -#define PG_FUNCNAME_MACRO __func__ -#else -#ifdef HAVE_FUNCNAME__FUNCTION -#define PG_FUNCNAME_MACRO __FUNCTION__ -#else -#define PG_FUNCNAME_MACRO NULL -#endif -#endif - - -/* ---------------------------------------------------------------- - * Section 2: bool, true, false - * ---------------------------------------------------------------- - */ - -/* - * bool - * Boolean value, either true or false. - * - * We use stdbool.h if available and its bool has size 1. That's useful for - * better compiler and debugger output and for compatibility with third-party - * libraries. But PostgreSQL currently cannot deal with bool of other sizes; - * there are static assertions around the code to prevent that. - * - * For C++ compilers, we assume the compiler has a compatible built-in - * definition of bool. - * - * See also the version of this code in src/interfaces/ecpg/include/ecpglib.h. - */ - -#ifndef __cplusplus - -#ifdef PG_USE_STDBOOL -#include -#else - -#ifndef bool -typedef unsigned char bool; -#endif - -#ifndef true -#define true ((bool) 1) -#endif - -#ifndef false -#define false ((bool) 0) -#endif - -#endif /* not PG_USE_STDBOOL */ -#endif /* not C++ */ - - -/* ---------------------------------------------------------------- - * Section 3: standard system types - * ---------------------------------------------------------------- - */ - -/* - * Pointer - * Variable holding address of any memory resident object. - * - * XXX Pointer arithmetic is done with this, so it can't be void * - * under "true" ANSI compilers. - */ -typedef char *Pointer; - -/* - * intN - * Signed integer, EXACTLY N BITS IN SIZE, - * used for numerical computations and the - * frontend/backend protocol. - */ -#ifndef HAVE_INT8 -typedef signed char int8; /* == 8 bits */ -typedef signed short int16; /* == 16 bits */ -typedef signed int int32; /* == 32 bits */ -#endif /* not HAVE_INT8 */ - -/* - * uintN - * Unsigned integer, EXACTLY N BITS IN SIZE, - * used for numerical computations and the - * frontend/backend protocol. - */ -#ifndef HAVE_UINT8 -typedef unsigned char uint8; /* == 8 bits */ -typedef unsigned short uint16; /* == 16 bits */ -typedef unsigned int uint32; /* == 32 bits */ -#endif /* not HAVE_UINT8 */ - -/* - * bitsN - * Unit of bitwise operation, AT LEAST N BITS IN SIZE. - */ -typedef uint8 bits8; /* >= 8 bits */ -typedef uint16 bits16; /* >= 16 bits */ -typedef uint32 bits32; /* >= 32 bits */ - -/* - * 64-bit integers - */ -#ifdef HAVE_LONG_INT_64 -/* Plain "long int" fits, use it */ - -#ifndef HAVE_INT64 -typedef long int int64; -#endif -#ifndef HAVE_UINT64 -typedef unsigned long int uint64; -#endif -#define INT64CONST(x) (x##L) -#define UINT64CONST(x) (x##UL) -#elif defined(HAVE_LONG_LONG_INT_64) -/* We have working support for "long long int", use that */ - -#ifndef HAVE_INT64 -typedef long long int int64; -#endif -#ifndef HAVE_UINT64 -typedef unsigned long long int uint64; -#endif -#define INT64CONST(x) (x##LL) -#define UINT64CONST(x) (x##ULL) -#else -/* neither HAVE_LONG_INT_64 nor HAVE_LONG_LONG_INT_64 */ -#error must have a working 64-bit integer datatype -#endif - -/* snprintf format strings to use for 64-bit integers */ -#define INT64_FORMAT "%" INT64_MODIFIER "d" -#define UINT64_FORMAT "%" INT64_MODIFIER "u" - -/* - * 128-bit signed and unsigned integers - * There currently is only limited support for such types. - * E.g. 128bit literals and snprintf are not supported; but math is. - * Also, because we exclude such types when choosing MAXIMUM_ALIGNOF, - * it must be possible to coerce the compiler to allocate them on no - * more than MAXALIGN boundaries. - */ -#if defined(PG_INT128_TYPE) -#if defined(pg_attribute_aligned) || ALIGNOF_PG_INT128_TYPE <= MAXIMUM_ALIGNOF -#define HAVE_INT128 1 - -typedef PG_INT128_TYPE int128 -#if defined(pg_attribute_aligned) - pg_attribute_aligned(MAXIMUM_ALIGNOF) -#endif - ; - -typedef unsigned PG_INT128_TYPE uint128 -#if defined(pg_attribute_aligned) - pg_attribute_aligned(MAXIMUM_ALIGNOF) -#endif - ; - -#endif -#endif - -/* - * stdint.h limits aren't guaranteed to have compatible types with our fixed - * width types. So just define our own. - */ -#define PG_INT8_MIN (-0x7F-1) -#define PG_INT8_MAX (0x7F) -#define PG_UINT8_MAX (0xFF) -#define PG_INT16_MIN (-0x7FFF-1) -#define PG_INT16_MAX (0x7FFF) -#define PG_UINT16_MAX (0xFFFF) -#define PG_INT32_MIN (-0x7FFFFFFF-1) -#define PG_INT32_MAX (0x7FFFFFFF) -#define PG_UINT32_MAX (0xFFFFFFFFU) -#define PG_INT64_MIN (-INT64CONST(0x7FFFFFFFFFFFFFFF) - 1) -#define PG_INT64_MAX INT64CONST(0x7FFFFFFFFFFFFFFF) -#define PG_UINT64_MAX UINT64CONST(0xFFFFFFFFFFFFFFFF) - -/* - * We now always use int64 timestamps, but keep this symbol defined for the - * benefit of external code that might test it. - */ -#define HAVE_INT64_TIMESTAMP - -/* - * Size - * Size of any memory resident object, as returned by sizeof. - */ -typedef size_t Size; - -/* - * Index - * Index into any memory resident array. - * - * Note: - * Indices are non negative. - */ -typedef unsigned int Index; - -/* - * Offset - * Offset into any memory resident array. - * - * Note: - * This differs from an Index in that an Index is always - * non negative, whereas Offset may be negative. - */ -typedef signed int Offset; - -/* - * Common Postgres datatype names (as used in the catalogs) - */ -typedef float float4; -typedef double float8; - -#ifdef USE_FLOAT8_BYVAL -#define FLOAT8PASSBYVAL true -#else -#define FLOAT8PASSBYVAL false -#endif - -/* - * Oid, RegProcedure, TransactionId, SubTransactionId, MultiXactId, - * CommandId - */ - -/* typedef Oid is in postgres_ext.h */ - -/* - * regproc is the type name used in the include/catalog headers, but - * RegProcedure is the preferred name in C code. - */ -typedef Oid regproc; -typedef regproc RegProcedure; - -typedef uint32 TransactionId; - -typedef uint32 LocalTransactionId; - -typedef uint32 SubTransactionId; - -#define InvalidSubTransactionId ((SubTransactionId) 0) -#define TopSubTransactionId ((SubTransactionId) 1) - -/* MultiXactId must be equivalent to TransactionId, to fit in t_xmax */ -typedef TransactionId MultiXactId; - -typedef uint32 MultiXactOffset; - -typedef uint32 CommandId; - -#define FirstCommandId ((CommandId) 0) -#define InvalidCommandId (~(CommandId)0) - - -/* ---------------- - * Variable-length datatypes all share the 'struct varlena' header. - * - * NOTE: for TOASTable types, this is an oversimplification, since the value - * may be compressed or moved out-of-line. However datatype-specific routines - * are mostly content to deal with de-TOASTed values only, and of course - * client-side routines should never see a TOASTed value. But even in a - * de-TOASTed value, beware of touching vl_len_ directly, as its - * representation is no longer convenient. It's recommended that code always - * use macros VARDATA_ANY, VARSIZE_ANY, VARSIZE_ANY_EXHDR, VARDATA, VARSIZE, - * and SET_VARSIZE instead of relying on direct mentions of the struct fields. - * See postgres.h for details of the TOASTed form. - * ---------------- - */ -struct varlena -{ - char vl_len_[4]; /* Do not touch this field directly! */ - char vl_dat[FLEXIBLE_ARRAY_MEMBER]; /* Data content is here */ -}; - -#define VARHDRSZ ((int32) sizeof(int32)) - -/* - * These widely-used datatypes are just a varlena header and the data bytes. - * There is no terminating null or anything like that --- the data length is - * always VARSIZE_ANY_EXHDR(ptr). - */ -typedef struct varlena bytea; -typedef struct varlena text; -typedef struct varlena BpChar; /* blank-padded char, ie SQL char(n) */ -typedef struct varlena VarChar; /* var-length char, ie SQL varchar(n) */ - -/* - * Specialized array types. These are physically laid out just the same - * as regular arrays (so that the regular array subscripting code works - * with them). They exist as distinct types mostly for historical reasons: - * they have nonstandard I/O behavior which we don't want to change for fear - * of breaking applications that look at the system catalogs. There is also - * an implementation issue for oidvector: it's part of the primary key for - * pg_proc, and we can't use the normal btree array support routines for that - * without circularity. - */ -typedef struct -{ - int32 vl_len_; /* these fields must match ArrayType! */ - int ndim; /* always 1 for int2vector */ - int32 dataoffset; /* always 0 for int2vector */ - Oid elemtype; - int dim1; - int lbound1; - int16 values[FLEXIBLE_ARRAY_MEMBER]; -} int2vector; - -typedef struct -{ - int32 vl_len_; /* these fields must match ArrayType! */ - int ndim; /* always 1 for oidvector */ - int32 dataoffset; /* always 0 for oidvector */ - Oid elemtype; - int dim1; - int lbound1; - Oid values[FLEXIBLE_ARRAY_MEMBER]; -} oidvector; - -/* - * Representation of a Name: effectively just a C string, but null-padded to - * exactly NAMEDATALEN bytes. The use of a struct is historical. - */ -typedef struct nameData -{ - char data[NAMEDATALEN]; -} NameData; -typedef NameData *Name; - -#define NameStr(name) ((name).data) - - -/* ---------------------------------------------------------------- - * Section 4: IsValid macros for system types - * ---------------------------------------------------------------- - */ -/* - * BoolIsValid - * True iff bool is valid. - */ -#define BoolIsValid(boolean) ((boolean) == false || (boolean) == true) - -/* - * PointerIsValid - * True iff pointer is valid. - */ -#define PointerIsValid(pointer) ((const void*)(pointer) != NULL) - -/* - * PointerIsAligned - * True iff pointer is properly aligned to point to the given type. - */ -#define PointerIsAligned(pointer, type) \ - (((uintptr_t)(pointer) % (sizeof (type))) == 0) - -#define OffsetToPointer(base, offset) \ - ((void *)((char *) base + offset)) - -#define OidIsValid(objectId) ((bool) ((objectId) != InvalidOid)) - -#define RegProcedureIsValid(p) OidIsValid(p) - - -/* ---------------------------------------------------------------- - * Section 5: offsetof, lengthof, alignment - * ---------------------------------------------------------------- - */ -/* - * offsetof - * Offset of a structure/union field within that structure/union. - * - * XXX This is supposed to be part of stddef.h, but isn't on - * some systems (like SunOS 4). - */ -#ifndef offsetof -#define offsetof(type, field) ((long) &((type *)0)->field) -#endif /* offsetof */ - -/* - * lengthof - * Number of elements in an array. - */ -#define lengthof(array) (sizeof (array) / sizeof ((array)[0])) - -/* ---------------- - * Alignment macros: align a length or address appropriately for a given type. - * The fooALIGN() macros round up to a multiple of the required alignment, - * while the fooALIGN_DOWN() macros round down. The latter are more useful - * for problems like "how many X-sized structures will fit in a page?". - * - * NOTE: TYPEALIGN[_DOWN] will not work if ALIGNVAL is not a power of 2. - * That case seems extremely unlikely to be needed in practice, however. - * - * NOTE: MAXIMUM_ALIGNOF, and hence MAXALIGN(), intentionally exclude any - * larger-than-8-byte types the compiler might have. - * ---------------- - */ - -#define TYPEALIGN(ALIGNVAL,LEN) \ - (((uintptr_t) (LEN) + ((ALIGNVAL) - 1)) & ~((uintptr_t) ((ALIGNVAL) - 1))) - -#define SHORTALIGN(LEN) TYPEALIGN(ALIGNOF_SHORT, (LEN)) -#define INTALIGN(LEN) TYPEALIGN(ALIGNOF_INT, (LEN)) -#define LONGALIGN(LEN) TYPEALIGN(ALIGNOF_LONG, (LEN)) -#define DOUBLEALIGN(LEN) TYPEALIGN(ALIGNOF_DOUBLE, (LEN)) -#define MAXALIGN(LEN) TYPEALIGN(MAXIMUM_ALIGNOF, (LEN)) -/* MAXALIGN covers only built-in types, not buffers */ -#define BUFFERALIGN(LEN) TYPEALIGN(ALIGNOF_BUFFER, (LEN)) -#define CACHELINEALIGN(LEN) TYPEALIGN(PG_CACHE_LINE_SIZE, (LEN)) - -#define TYPEALIGN_DOWN(ALIGNVAL,LEN) \ - (((uintptr_t) (LEN)) & ~((uintptr_t) ((ALIGNVAL) - 1))) - -#define SHORTALIGN_DOWN(LEN) TYPEALIGN_DOWN(ALIGNOF_SHORT, (LEN)) -#define INTALIGN_DOWN(LEN) TYPEALIGN_DOWN(ALIGNOF_INT, (LEN)) -#define LONGALIGN_DOWN(LEN) TYPEALIGN_DOWN(ALIGNOF_LONG, (LEN)) -#define DOUBLEALIGN_DOWN(LEN) TYPEALIGN_DOWN(ALIGNOF_DOUBLE, (LEN)) -#define MAXALIGN_DOWN(LEN) TYPEALIGN_DOWN(MAXIMUM_ALIGNOF, (LEN)) -#define BUFFERALIGN_DOWN(LEN) TYPEALIGN_DOWN(ALIGNOF_BUFFER, (LEN)) - -/* - * The above macros will not work with types wider than uintptr_t, like with - * uint64 on 32-bit platforms. That's not problem for the usual use where a - * pointer or a length is aligned, but for the odd case that you need to - * align something (potentially) wider, use TYPEALIGN64. - */ -#define TYPEALIGN64(ALIGNVAL,LEN) \ - (((uint64) (LEN) + ((ALIGNVAL) - 1)) & ~((uint64) ((ALIGNVAL) - 1))) - -/* we don't currently need wider versions of the other ALIGN macros */ -#define MAXALIGN64(LEN) TYPEALIGN64(MAXIMUM_ALIGNOF, (LEN)) - - -/* ---------------------------------------------------------------- - * Section 6: assertions - * ---------------------------------------------------------------- - */ - -/* - * USE_ASSERT_CHECKING, if defined, turns on all the assertions. - * - plai 9/5/90 - * - * It should _NOT_ be defined in releases or in benchmark copies - */ - -/* - * Assert() can be used in both frontend and backend code. In frontend code it - * just calls the standard assert, if it's available. If use of assertions is - * not configured, it does nothing. - */ -#ifndef USE_ASSERT_CHECKING - -#define Assert(condition) ((void)true) -#define AssertMacro(condition) ((void)true) -#define AssertArg(condition) ((void)true) -#define AssertState(condition) ((void)true) -#define AssertPointerAlignment(ptr, bndr) ((void)true) -#define Trap(condition, errorType) ((void)true) -#define TrapMacro(condition, errorType) (true) - -#elif defined(FRONTEND) - -#include -#define Assert(p) assert(p) -#define AssertMacro(p) ((void) assert(p)) -#define AssertArg(condition) assert(condition) -#define AssertState(condition) assert(condition) -#define AssertPointerAlignment(ptr, bndr) ((void)true) - -#else /* USE_ASSERT_CHECKING && !FRONTEND */ - -/* - * Trap - * Generates an exception if the given condition is true. - */ -#define Trap(condition, errorType) \ - do { \ - if (condition) \ - ExceptionalCondition(#condition, (errorType), \ - __FILE__, __LINE__); \ - } while (0) - -/* - * TrapMacro is the same as Trap but it's intended for use in macros: - * - * #define foo(x) (AssertMacro(x != 0), bar(x)) - * - * Isn't CPP fun? - */ -#define TrapMacro(condition, errorType) \ - ((bool) (! (condition) || \ - (ExceptionalCondition(#condition, (errorType), \ - __FILE__, __LINE__), 0))) - -#define Assert(condition) \ - do { \ - if (!(condition)) \ - ExceptionalCondition(#condition, "FailedAssertion", \ - __FILE__, __LINE__); \ - } while (0) - -#define AssertMacro(condition) \ - ((void) ((condition) || \ - (ExceptionalCondition(#condition, "FailedAssertion", \ - __FILE__, __LINE__), 0))) - -#define AssertArg(condition) \ - do { \ - if (!(condition)) \ - ExceptionalCondition(#condition, "BadArgument", \ - __FILE__, __LINE__); \ - } while (0) - -#define AssertState(condition) \ - do { \ - if (!(condition)) \ - ExceptionalCondition(#condition, "BadState", \ - __FILE__, __LINE__); \ - } while (0) - -/* - * Check that `ptr' is `bndr' aligned. - */ -#define AssertPointerAlignment(ptr, bndr) \ - Trap(TYPEALIGN(bndr, (uintptr_t)(ptr)) != (uintptr_t)(ptr), \ - "UnalignedPointer") - -#endif /* USE_ASSERT_CHECKING && !FRONTEND */ - -/* - * ExceptionalCondition is compiled into the backend whether or not - * USE_ASSERT_CHECKING is defined, so as to support use of extensions - * that are built with that #define with a backend that isn't. Hence, - * we should declare it as long as !FRONTEND. - */ -#ifndef FRONTEND -extern void ExceptionalCondition(const char *conditionName, - const char *errorType, - const char *fileName, int lineNumber) pg_attribute_noreturn(); -#endif - -/* - * Macros to support compile-time assertion checks. - * - * If the "condition" (a compile-time-constant expression) evaluates to false, - * throw a compile error using the "errmessage" (a string literal). - * - * gcc 4.6 and up supports _Static_assert(), but there are bizarre syntactic - * placement restrictions. Macros StaticAssertStmt() and StaticAssertExpr() - * make it safe to use as a statement or in an expression, respectively. - * The macro StaticAssertDecl() is suitable for use at file scope (outside of - * any function). - * - * Otherwise we fall back on a kluge that assumes the compiler will complain - * about a negative width for a struct bit-field. This will not include a - * helpful error message, but it beats not getting an error at all. - */ -#ifndef __cplusplus -#ifdef HAVE__STATIC_ASSERT -#define StaticAssertStmt(condition, errmessage) \ - do { _Static_assert(condition, errmessage); } while(0) -#define StaticAssertExpr(condition, errmessage) \ - ((void) ({ StaticAssertStmt(condition, errmessage); true; })) -#define StaticAssertDecl(condition, errmessage) \ - _Static_assert(condition, errmessage) -#else /* !HAVE__STATIC_ASSERT */ -#define StaticAssertStmt(condition, errmessage) \ - ((void) sizeof(struct { int static_assert_failure : (condition) ? 1 : -1; })) -#define StaticAssertExpr(condition, errmessage) \ - StaticAssertStmt(condition, errmessage) -#define StaticAssertDecl(condition, errmessage) \ - extern void static_assert_func(int static_assert_failure[(condition) ? 1 : -1]) -#endif /* HAVE__STATIC_ASSERT */ -#else /* C++ */ -#if defined(__cpp_static_assert) && __cpp_static_assert >= 200410 -#define StaticAssertStmt(condition, errmessage) \ - static_assert(condition, errmessage) -#define StaticAssertExpr(condition, errmessage) \ - ({ static_assert(condition, errmessage); }) -#define StaticAssertDecl(condition, errmessage) \ - static_assert(condition, errmessage) -#else /* !__cpp_static_assert */ -#define StaticAssertStmt(condition, errmessage) \ - do { struct static_assert_struct { int static_assert_failure : (condition) ? 1 : -1; }; } while(0) -#define StaticAssertExpr(condition, errmessage) \ - ((void) ({ StaticAssertStmt(condition, errmessage); })) -#define StaticAssertDecl(condition, errmessage) \ - extern void static_assert_func(int static_assert_failure[(condition) ? 1 : -1]) -#endif /* __cpp_static_assert */ -#endif /* C++ */ - - -/* - * Compile-time checks that a variable (or expression) has the specified type. - * - * AssertVariableIsOfType() can be used as a statement. - * AssertVariableIsOfTypeMacro() is intended for use in macros, eg - * #define foo(x) (AssertVariableIsOfTypeMacro(x, int), bar(x)) - * - * If we don't have __builtin_types_compatible_p, we can still assert that - * the types have the same size. This is far from ideal (especially on 32-bit - * platforms) but it provides at least some coverage. - */ -#ifdef HAVE__BUILTIN_TYPES_COMPATIBLE_P -#define AssertVariableIsOfType(varname, typename) \ - StaticAssertStmt(__builtin_types_compatible_p(__typeof__(varname), typename), \ - CppAsString(varname) " does not have type " CppAsString(typename)) -#define AssertVariableIsOfTypeMacro(varname, typename) \ - (StaticAssertExpr(__builtin_types_compatible_p(__typeof__(varname), typename), \ - CppAsString(varname) " does not have type " CppAsString(typename))) -#else /* !HAVE__BUILTIN_TYPES_COMPATIBLE_P */ -#define AssertVariableIsOfType(varname, typename) \ - StaticAssertStmt(sizeof(varname) == sizeof(typename), \ - CppAsString(varname) " does not have type " CppAsString(typename)) -#define AssertVariableIsOfTypeMacro(varname, typename) \ - (StaticAssertExpr(sizeof(varname) == sizeof(typename), \ - CppAsString(varname) " does not have type " CppAsString(typename))) -#endif /* HAVE__BUILTIN_TYPES_COMPATIBLE_P */ - - -/* ---------------------------------------------------------------- - * Section 7: widely useful macros - * ---------------------------------------------------------------- - */ -/* - * Max - * Return the maximum of two numbers. - */ -#define Max(x, y) ((x) > (y) ? (x) : (y)) - -/* - * Min - * Return the minimum of two numbers. - */ -#define Min(x, y) ((x) < (y) ? (x) : (y)) - -/* - * Abs - * Return the absolute value of the argument. - */ -#define Abs(x) ((x) >= 0 ? (x) : -(x)) - - -/* Get a bit mask of the bits set in non-long aligned addresses */ -#define LONG_ALIGN_MASK (sizeof(long) - 1) - -/* - * MemSet - * Exactly the same as standard library function memset(), but considerably - * faster for zeroing small word-aligned structures (such as parsetree nodes). - * This has to be a macro because the main point is to avoid function-call - * overhead. However, we have also found that the loop is faster than - * native libc memset() on some platforms, even those with assembler - * memset() functions. More research needs to be done, perhaps with - * MEMSET_LOOP_LIMIT tests in configure. - */ -#define MemSet(start, val, len) \ - do \ - { \ - /* must be void* because we don't know if it is integer aligned yet */ \ - void *_vstart = (void *) (start); \ - int _val = (val); \ - Size _len = (len); \ -\ - if ((((uintptr_t) _vstart) & LONG_ALIGN_MASK) == 0 && \ - (_len & LONG_ALIGN_MASK) == 0 && \ - _val == 0 && \ - _len <= MEMSET_LOOP_LIMIT && \ - /* \ - * If MEMSET_LOOP_LIMIT == 0, optimizer should find \ - * the whole "if" false at compile time. \ - */ \ - MEMSET_LOOP_LIMIT != 0) \ - { \ - long *_start = (long *) _vstart; \ - long *_stop = (long *) ((char *) _start + _len); \ - while (_start < _stop) \ - *_start++ = 0; \ - } \ - else \ - memset(_vstart, _val, _len); \ - } while (0) - -/* - * MemSetAligned is the same as MemSet except it omits the test to see if - * "start" is word-aligned. This is okay to use if the caller knows a-priori - * that the pointer is suitably aligned (typically, because he just got it - * from palloc(), which always delivers a max-aligned pointer). - */ -#define MemSetAligned(start, val, len) \ - do \ - { \ - long *_start = (long *) (start); \ - int _val = (val); \ - Size _len = (len); \ -\ - if ((_len & LONG_ALIGN_MASK) == 0 && \ - _val == 0 && \ - _len <= MEMSET_LOOP_LIMIT && \ - MEMSET_LOOP_LIMIT != 0) \ - { \ - long *_stop = (long *) ((char *) _start + _len); \ - while (_start < _stop) \ - *_start++ = 0; \ - } \ - else \ - memset(_start, _val, _len); \ - } while (0) - - -/* - * MemSetTest/MemSetLoop are a variant version that allow all the tests in - * MemSet to be done at compile time in cases where "val" and "len" are - * constants *and* we know the "start" pointer must be word-aligned. - * If MemSetTest succeeds, then it is okay to use MemSetLoop, otherwise use - * MemSetAligned. Beware of multiple evaluations of the arguments when using - * this approach. - */ -#define MemSetTest(val, len) \ - ( ((len) & LONG_ALIGN_MASK) == 0 && \ - (len) <= MEMSET_LOOP_LIMIT && \ - MEMSET_LOOP_LIMIT != 0 && \ - (val) == 0 ) - -#define MemSetLoop(start, val, len) \ - do \ - { \ - long * _start = (long *) (start); \ - long * _stop = (long *) ((char *) _start + (Size) (len)); \ - \ - while (_start < _stop) \ - *_start++ = 0; \ - } while (0) - -/* - * Macros for range-checking float values before converting to integer. - * We must be careful here that the boundary values are expressed exactly - * in the float domain. PG_INTnn_MIN is an exact power of 2, so it will - * be represented exactly; but PG_INTnn_MAX isn't, and might get rounded - * off, so avoid using that. - * The input must be rounded to an integer beforehand, typically with rint(), - * else we might draw the wrong conclusion about close-to-the-limit values. - * These macros will do the right thing for Inf, but not necessarily for NaN, - * so check isnan(num) first if that's a possibility. - */ -#define FLOAT4_FITS_IN_INT16(num) \ - ((num) >= (float4) PG_INT16_MIN && (num) < -((float4) PG_INT16_MIN)) -#define FLOAT4_FITS_IN_INT32(num) \ - ((num) >= (float4) PG_INT32_MIN && (num) < -((float4) PG_INT32_MIN)) -#define FLOAT4_FITS_IN_INT64(num) \ - ((num) >= (float4) PG_INT64_MIN && (num) < -((float4) PG_INT64_MIN)) -#define FLOAT8_FITS_IN_INT16(num) \ - ((num) >= (float8) PG_INT16_MIN && (num) < -((float8) PG_INT16_MIN)) -#define FLOAT8_FITS_IN_INT32(num) \ - ((num) >= (float8) PG_INT32_MIN && (num) < -((float8) PG_INT32_MIN)) -#define FLOAT8_FITS_IN_INT64(num) \ - ((num) >= (float8) PG_INT64_MIN && (num) < -((float8) PG_INT64_MIN)) - - -/* ---------------------------------------------------------------- - * Section 8: random stuff - * ---------------------------------------------------------------- - */ - -#ifdef HAVE_STRUCT_SOCKADDR_UN -#define HAVE_UNIX_SOCKETS 1 -#endif - -/* - * Invert the sign of a qsort-style comparison result, ie, exchange negative - * and positive integer values, being careful not to get the wrong answer - * for INT_MIN. The argument should be an integral variable. - */ -#define INVERT_COMPARE_RESULT(var) \ - ((var) = ((var) < 0) ? 1 : -(var)) - -/* - * Use this, not "char buf[BLCKSZ]", to declare a field or local variable - * holding a page buffer, if that page might be accessed as a page and not - * just a string of bytes. Otherwise the variable might be under-aligned, - * causing problems on alignment-picky hardware. (In some places, we use - * this to declare buffers even though we only pass them to read() and - * write(), because copying to/from aligned buffers is usually faster than - * using unaligned buffers.) We include both "double" and "int64" in the - * union to ensure that the compiler knows the value must be MAXALIGN'ed - * (cf. configure's computation of MAXIMUM_ALIGNOF). - */ -typedef union PGAlignedBlock -{ - char data[BLCKSZ]; - double force_align_d; - int64 force_align_i64; -} PGAlignedBlock; - -/* Same, but for an XLOG_BLCKSZ-sized buffer */ -typedef union PGAlignedXLogBlock -{ - char data[XLOG_BLCKSZ]; - double force_align_d; - int64 force_align_i64; -} PGAlignedXLogBlock; - -/* msb for char */ -#define HIGHBIT (0x80) -#define IS_HIGHBIT_SET(ch) ((unsigned char)(ch) & HIGHBIT) - -/* - * Support macros for escaping strings. escape_backslash should be true - * if generating a non-standard-conforming string. Prefixing a string - * with ESCAPE_STRING_SYNTAX guarantees it is non-standard-conforming. - * Beware of multiple evaluation of the "ch" argument! - */ -#define SQL_STR_DOUBLE(ch, escape_backslash) \ - ((ch) == '\'' || ((ch) == '\\' && (escape_backslash))) - -#define ESCAPE_STRING_SYNTAX 'E' - - -#define STATUS_OK (0) -#define STATUS_ERROR (-1) -#define STATUS_EOF (-2) - -/* - * gettext support - */ - -#ifndef ENABLE_NLS -/* stuff we'd otherwise get from */ -#define gettext(x) (x) -#define dgettext(d,x) (x) -#define ngettext(s,p,n) ((n) == 1 ? (s) : (p)) -#define dngettext(d,s,p,n) ((n) == 1 ? (s) : (p)) -#endif - -#define _(x) gettext(x) - -/* - * Use this to mark string constants as needing translation at some later - * time, rather than immediately. This is useful for cases where you need - * access to the original string and translated string, and for cases where - * immediate translation is not possible, like when initializing global - * variables. - * - * https://www.gnu.org/software/gettext/manual/html_node/Special-cases.html - */ -#define gettext_noop(x) (x) - -/* - * To better support parallel installations of major PostgreSQL - * versions as well as parallel installations of major library soname - * versions, we mangle the gettext domain name by appending those - * version numbers. The coding rule ought to be that wherever the - * domain name is mentioned as a literal, it must be wrapped into - * PG_TEXTDOMAIN(). The macros below do not work on non-literals; but - * that is somewhat intentional because it avoids having to worry - * about multiple states of premangling and postmangling as the values - * are being passed around. - * - * Make sure this matches the installation rules in nls-global.mk. - */ -#ifdef SO_MAJOR_VERSION -#define PG_TEXTDOMAIN(domain) (domain CppAsString2(SO_MAJOR_VERSION) "-" PG_MAJORVERSION) -#else -#define PG_TEXTDOMAIN(domain) (domain "-" PG_MAJORVERSION) -#endif - -/* - * Macro that allows to cast constness and volatile away from an expression, but doesn't - * allow changing the underlying type. Enforcement of the latter - * currently only works for gcc like compilers. - * - * Please note IT IS NOT SAFE to cast constness away if the result will ever - * be modified (it would be undefined behaviour). Doing so anyway can cause - * compiler misoptimizations or runtime crashes (modifying readonly memory). - * It is only safe to use when the result will not be modified, but API - * design or language restrictions prevent you from declaring that - * (e.g. because a function returns both const and non-const variables). - * - * Note that this only works in function scope, not for global variables (it'd - * be nice, but not trivial, to improve that). - */ -#if defined(HAVE__BUILTIN_TYPES_COMPATIBLE_P) -#define unconstify(underlying_type, expr) \ - (StaticAssertExpr(__builtin_types_compatible_p(__typeof(expr), const underlying_type), \ - "wrong cast"), \ - (underlying_type) (expr)) -#define unvolatize(underlying_type, expr) \ - (StaticAssertExpr(__builtin_types_compatible_p(__typeof(expr), volatile underlying_type), \ - "wrong cast"), \ - (underlying_type) (expr)) -#else -#define unconstify(underlying_type, expr) \ - ((underlying_type) (expr)) -#define unvolatize(underlying_type, expr) \ - ((underlying_type) (expr)) -#endif - -/* ---------------------------------------------------------------- - * Section 9: system-specific hacks - * - * This should be limited to things that absolutely have to be - * included in every source file. The port-specific header file - * is usually a better place for this sort of thing. - * ---------------------------------------------------------------- - */ - -/* - * NOTE: this is also used for opening text files. - * WIN32 treats Control-Z as EOF in files opened in text mode. - * Therefore, we open files in binary mode on Win32 so we can read - * literal control-Z. The other affect is that we see CRLF, but - * that is OK because we can already handle those cleanly. - */ -#if defined(WIN32) || defined(__CYGWIN__) -#define PG_BINARY O_BINARY -#define PG_BINARY_A "ab" -#define PG_BINARY_R "rb" -#define PG_BINARY_W "wb" -#else -#define PG_BINARY 0 -#define PG_BINARY_A "a" -#define PG_BINARY_R "r" -#define PG_BINARY_W "w" -#endif - -/* - * Provide prototypes for routines not present in a particular machine's - * standard C library. - */ - -#if defined(HAVE_FDATASYNC) && !HAVE_DECL_FDATASYNC -extern int fdatasync(int fildes); -#endif - -/* Older platforms may provide strto[u]ll functionality under other names */ -#if !defined(HAVE_STRTOLL) && defined(HAVE___STRTOLL) -#define strtoll __strtoll -#define HAVE_STRTOLL 1 -#endif - -#if !defined(HAVE_STRTOLL) && defined(HAVE_STRTOQ) -#define strtoll strtoq -#define HAVE_STRTOLL 1 -#endif - -#if !defined(HAVE_STRTOULL) && defined(HAVE___STRTOULL) -#define strtoull __strtoull -#define HAVE_STRTOULL 1 -#endif - -#if !defined(HAVE_STRTOULL) && defined(HAVE_STRTOUQ) -#define strtoull strtouq -#define HAVE_STRTOULL 1 -#endif - -#if defined(HAVE_STRTOLL) && !HAVE_DECL_STRTOLL -extern long long strtoll(const char *str, char **endptr, int base); -#endif - -#if defined(HAVE_STRTOULL) && !HAVE_DECL_STRTOULL -extern unsigned long long strtoull(const char *str, char **endptr, int base); -#endif - -/* - * Thin wrappers that convert strings to exactly 64-bit integers, matching our - * definition of int64. (For the naming, compare that POSIX has - * strtoimax()/strtoumax() which return intmax_t/uintmax_t.) - */ -#ifdef HAVE_LONG_INT_64 -#define strtoi64(str, endptr, base) ((int64) strtol(str, endptr, base)) -#define strtou64(str, endptr, base) ((uint64) strtoul(str, endptr, base)) -#else -#define strtoi64(str, endptr, base) ((int64) strtoll(str, endptr, base)) -#define strtou64(str, endptr, base) ((uint64) strtoull(str, endptr, base)) -#endif - -/* - * Use "extern PGDLLIMPORT ..." to declare variables that are defined - * in the core backend and need to be accessible by loadable modules. - * No special marking is required on most ports. - */ -#ifndef PGDLLIMPORT -#define PGDLLIMPORT -#endif - -/* - * Use "extern PGDLLEXPORT ..." to declare functions that are defined in - * loadable modules and need to be callable by the core backend. (Usually, - * this is not necessary because our build process automatically exports - * such symbols, but sometimes manual marking is required.) - * No special marking is required on most ports. - */ -#ifndef PGDLLEXPORT -#define PGDLLEXPORT -#endif - -/* - * The following is used as the arg list for signal handlers. Any ports - * that take something other than an int argument should override this in - * their pg_config_os.h file. Note that variable names are required - * because it is used in both the prototypes as well as the definitions. - * Note also the long name. We expect that this won't collide with - * other names causing compiler warnings. - */ - -#ifndef SIGNAL_ARGS -#define SIGNAL_ARGS int postgres_signal_arg -#endif - -/* - * When there is no sigsetjmp, its functionality is provided by plain - * setjmp. We now support the case only on Windows. However, it seems - * that MinGW-64 has some longstanding issues in its setjmp support, - * so on that toolchain we cheat and use gcc's builtins. - */ -#ifdef WIN32 -#ifdef __MINGW64__ -typedef intptr_t sigjmp_buf[5]; -#define sigsetjmp(x,y) __builtin_setjmp(x) -#define siglongjmp __builtin_longjmp -#else /* !__MINGW64__ */ -#define sigjmp_buf jmp_buf -#define sigsetjmp(x,y) setjmp(x) -#define siglongjmp longjmp -#endif /* __MINGW64__ */ -#endif /* WIN32 */ - -/* EXEC_BACKEND defines */ -#ifdef EXEC_BACKEND -#define NON_EXEC_STATIC -#else -#define NON_EXEC_STATIC static -#endif - -/* /port compatibility functions */ -#include "port.h" - -#endif /* C_H */ -#undef StaticAssertDecl -#define StaticAssertDecl(condition, errmessage) diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/catalog.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/catalog.h deleted file mode 100644 index 60c121536..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/catalog.h +++ /dev/null @@ -1,44 +0,0 @@ -/*------------------------------------------------------------------------- - * - * catalog.h - * prototypes for functions in backend/catalog/catalog.c - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/catalog.h - * - *------------------------------------------------------------------------- - */ -#ifndef CATALOG_H -#define CATALOG_H - -#include "catalog/pg_class.h" -#include "utils/relcache.h" - - -extern bool IsSystemRelation(Relation relation); -extern bool IsToastRelation(Relation relation); -extern bool IsCatalogRelation(Relation relation); - -extern bool IsSystemClass(Oid relid, Form_pg_class reltuple); -extern bool IsToastClass(Form_pg_class reltuple); - -extern bool IsCatalogRelationOid(Oid relid); - -extern bool IsCatalogNamespace(Oid namespaceId); -extern bool IsToastNamespace(Oid namespaceId); - -extern bool IsReservedName(const char *name); - -extern bool IsSharedRelation(Oid relationId); - -extern bool IsPinnedObject(Oid classId, Oid objectId); - -extern Oid GetNewOidWithIndex(Relation relation, Oid indexId, - AttrNumber oidcolumn); -extern Oid GetNewRelFileNode(Oid reltablespace, Relation pg_class, - char relpersistence); - -#endif /* CATALOG_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/catversion.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/catversion.h deleted file mode 100644 index c616a258d..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/catversion.h +++ /dev/null @@ -1,58 +0,0 @@ -/*------------------------------------------------------------------------- - * - * catversion.h - * "Catalog version number" for PostgreSQL. - * - * The catalog version number is used to flag incompatible changes in - * the PostgreSQL system catalogs. Whenever anyone changes the format of - * a system catalog relation, or adds, deletes, or modifies standard - * catalog entries in such a way that an updated backend wouldn't work - * with an old database (or vice versa), the catalog version number - * should be changed. The version number stored in pg_control by initdb - * is checked against the version number compiled into the backend at - * startup time, so that a backend can refuse to run in an incompatible - * database. - * - * The point of this feature is to provide a finer grain of compatibility - * checking than is possible from looking at the major version number - * stored in PG_VERSION. It shouldn't matter to end users, but during - * development cycles we usually make quite a few incompatible changes - * to the contents of the system catalogs, and we don't want to bump the - * major version number for each one. What we can do instead is bump - * this internal version number. This should save some grief for - * developers who might otherwise waste time tracking down "bugs" that - * are really just code-vs-database incompatibilities. - * - * The rule for developers is: if you commit a change that requires - * an initdb, you should update the catalog version number (as well as - * notifying the pgsql-hackers mailing list, which has been the - * informal practice for a long time). - * - * The catalog version number is placed here since modifying files in - * include/catalog is the most common kind of initdb-forcing change. - * But it could be used to protect any kind of incompatible change in - * database contents or layout, such as altering tuple headers. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/catversion.h - * - *------------------------------------------------------------------------- - */ -#ifndef CATVERSION_H -#define CATVERSION_H - -/* - * We could use anything we wanted for version numbers, but I recommend - * following the "YYYYMMDDN" style often used for DNS zone serial numbers. - * YYYYMMDD are the date of the change, and N is the number of the change - * on that day. (Hopefully we'll never commit ten independent sets of - * catalog changes on the same day...) - */ - -/* yyyymmddN */ -#define CATALOG_VERSION_NO 202209061 - -#endif diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/dependency.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/dependency.h deleted file mode 100644 index 6684933da..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/dependency.h +++ /dev/null @@ -1,269 +0,0 @@ -/*------------------------------------------------------------------------- - * - * dependency.h - * Routines to support inter-object dependencies. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/dependency.h - * - *------------------------------------------------------------------------- - */ -#ifndef DEPENDENCY_H -#define DEPENDENCY_H - -#include "catalog/objectaddress.h" - - -/* - * Precise semantics of a dependency relationship are specified by the - * DependencyType code (which is stored in a "char" field in pg_depend, - * so we assign ASCII-code values to the enumeration members). - * - * In all cases, a dependency relationship indicates that the referenced - * object may not be dropped without also dropping the dependent object. - * However, there are several subflavors; see the description of pg_depend - * in catalogs.sgml for details. - */ - -typedef enum DependencyType -{ - DEPENDENCY_NORMAL = 'n', - DEPENDENCY_AUTO = 'a', - DEPENDENCY_INTERNAL = 'i', - DEPENDENCY_PARTITION_PRI = 'P', - DEPENDENCY_PARTITION_SEC = 'S', - DEPENDENCY_EXTENSION = 'e', - DEPENDENCY_AUTO_EXTENSION = 'x' -} DependencyType; - -/* - * There is also a SharedDependencyType enum type that determines the exact - * semantics of an entry in pg_shdepend. Just like regular dependency entries, - * any pg_shdepend entry means that the referenced object cannot be dropped - * unless the dependent object is dropped at the same time. There are some - * additional rules however: - * - * (a) a SHARED_DEPENDENCY_OWNER entry means that the referenced object is - * the role owning the dependent object. The referenced object must be - * a pg_authid entry. - * - * (b) a SHARED_DEPENDENCY_ACL entry means that the referenced object is - * a role mentioned in the ACL field of the dependent object. The referenced - * object must be a pg_authid entry. (SHARED_DEPENDENCY_ACL entries are not - * created for the owner of an object; hence two objects may be linked by - * one or the other, but not both, of these dependency types.) - * - * (c) a SHARED_DEPENDENCY_POLICY entry means that the referenced object is - * a role mentioned in a policy object. The referenced object must be a - * pg_authid entry. - * - * (d) a SHARED_DEPENDENCY_TABLESPACE entry means that the referenced - * object is a tablespace mentioned in a relation without storage. The - * referenced object must be a pg_tablespace entry. (Relations that have - * storage don't need this: they are protected by the existence of a physical - * file in the tablespace.) - * - * SHARED_DEPENDENCY_INVALID is a value used as a parameter in internal - * routines, and is not valid in the catalog itself. - */ -typedef enum SharedDependencyType -{ - SHARED_DEPENDENCY_OWNER = 'o', - SHARED_DEPENDENCY_ACL = 'a', - SHARED_DEPENDENCY_POLICY = 'r', - SHARED_DEPENDENCY_TABLESPACE = 't', - SHARED_DEPENDENCY_INVALID = 0 -} SharedDependencyType; - -/* expansible list of ObjectAddresses (private in dependency.c) */ -typedef struct ObjectAddresses ObjectAddresses; - -/* - * This enum covers all system catalogs whose OIDs can appear in - * pg_depend.classId or pg_shdepend.classId. Keep object_classes[] in sync. - */ -typedef enum ObjectClass -{ - OCLASS_CLASS, /* pg_class */ - OCLASS_PROC, /* pg_proc */ - OCLASS_TYPE, /* pg_type */ - OCLASS_CAST, /* pg_cast */ - OCLASS_COLLATION, /* pg_collation */ - OCLASS_CONSTRAINT, /* pg_constraint */ - OCLASS_CONVERSION, /* pg_conversion */ - OCLASS_DEFAULT, /* pg_attrdef */ - OCLASS_LANGUAGE, /* pg_language */ - OCLASS_LARGEOBJECT, /* pg_largeobject */ - OCLASS_OPERATOR, /* pg_operator */ - OCLASS_OPCLASS, /* pg_opclass */ - OCLASS_OPFAMILY, /* pg_opfamily */ - OCLASS_AM, /* pg_am */ - OCLASS_AMOP, /* pg_amop */ - OCLASS_AMPROC, /* pg_amproc */ - OCLASS_REWRITE, /* pg_rewrite */ - OCLASS_TRIGGER, /* pg_trigger */ - OCLASS_SCHEMA, /* pg_namespace */ - OCLASS_STATISTIC_EXT, /* pg_statistic_ext */ - OCLASS_TSPARSER, /* pg_ts_parser */ - OCLASS_TSDICT, /* pg_ts_dict */ - OCLASS_TSTEMPLATE, /* pg_ts_template */ - OCLASS_TSCONFIG, /* pg_ts_config */ - OCLASS_ROLE, /* pg_authid */ - OCLASS_DATABASE, /* pg_database */ - OCLASS_TBLSPACE, /* pg_tablespace */ - OCLASS_FDW, /* pg_foreign_data_wrapper */ - OCLASS_FOREIGN_SERVER, /* pg_foreign_server */ - OCLASS_USER_MAPPING, /* pg_user_mapping */ - OCLASS_DEFACL, /* pg_default_acl */ - OCLASS_EXTENSION, /* pg_extension */ - OCLASS_EVENT_TRIGGER, /* pg_event_trigger */ - OCLASS_PARAMETER_ACL, /* pg_parameter_acl */ - OCLASS_POLICY, /* pg_policy */ - OCLASS_PUBLICATION, /* pg_publication */ - OCLASS_PUBLICATION_NAMESPACE, /* pg_publication_namespace */ - OCLASS_PUBLICATION_REL, /* pg_publication_rel */ - OCLASS_SUBSCRIPTION, /* pg_subscription */ - OCLASS_TRANSFORM /* pg_transform */ -} ObjectClass; - -#define LAST_OCLASS OCLASS_TRANSFORM - -/* flag bits for performDeletion/performMultipleDeletions: */ -#define PERFORM_DELETION_INTERNAL 0x0001 /* internal action */ -#define PERFORM_DELETION_CONCURRENTLY 0x0002 /* concurrent drop */ -#define PERFORM_DELETION_QUIETLY 0x0004 /* suppress notices */ -#define PERFORM_DELETION_SKIP_ORIGINAL 0x0008 /* keep original obj */ -#define PERFORM_DELETION_SKIP_EXTENSIONS 0x0010 /* keep extensions */ -#define PERFORM_DELETION_CONCURRENT_LOCK 0x0020 /* normal drop with - * concurrent lock mode */ - - -/* in dependency.c */ - -extern void AcquireDeletionLock(const ObjectAddress *object, int flags); - -extern void ReleaseDeletionLock(const ObjectAddress *object); - -extern void performDeletion(const ObjectAddress *object, - DropBehavior behavior, int flags); - -extern void performMultipleDeletions(const ObjectAddresses *objects, - DropBehavior behavior, int flags); - -extern void recordDependencyOnExpr(const ObjectAddress *depender, - Node *expr, List *rtable, - DependencyType behavior); - -extern void recordDependencyOnSingleRelExpr(const ObjectAddress *depender, - Node *expr, Oid relId, - DependencyType behavior, - DependencyType self_behavior, - bool reverse_self); - -extern ObjectClass getObjectClass(const ObjectAddress *object); - -extern ObjectAddresses *new_object_addresses(void); - -extern void add_exact_object_address(const ObjectAddress *object, - ObjectAddresses *addrs); - -extern bool object_address_present(const ObjectAddress *object, - const ObjectAddresses *addrs); - -extern void record_object_address_dependencies(const ObjectAddress *depender, - ObjectAddresses *referenced, - DependencyType behavior); - -extern void sort_object_addresses(ObjectAddresses *addrs); - -extern void free_object_addresses(ObjectAddresses *addrs); - -/* in pg_depend.c */ - -extern void recordDependencyOn(const ObjectAddress *depender, - const ObjectAddress *referenced, - DependencyType behavior); - -extern void recordMultipleDependencies(const ObjectAddress *depender, - const ObjectAddress *referenced, - int nreferenced, - DependencyType behavior); - -extern void recordDependencyOnCurrentExtension(const ObjectAddress *object, - bool isReplace); - -extern void checkMembershipInCurrentExtension(const ObjectAddress *object); - -extern long deleteDependencyRecordsFor(Oid classId, Oid objectId, - bool skipExtensionDeps); - -extern long deleteDependencyRecordsForClass(Oid classId, Oid objectId, - Oid refclassId, char deptype); - -extern long deleteDependencyRecordsForSpecific(Oid classId, Oid objectId, - char deptype, - Oid refclassId, Oid refobjectId); - -extern long changeDependencyFor(Oid classId, Oid objectId, - Oid refClassId, Oid oldRefObjectId, - Oid newRefObjectId); - -extern long changeDependenciesOf(Oid classId, Oid oldObjectId, - Oid newObjectId); - -extern long changeDependenciesOn(Oid refClassId, Oid oldRefObjectId, - Oid newRefObjectId); - -extern Oid getExtensionOfObject(Oid classId, Oid objectId); -extern List *getAutoExtensionsOfObject(Oid classId, Oid objectId); - -extern bool sequenceIsOwned(Oid seqId, char deptype, Oid *tableId, int32 *colId); -extern List *getOwnedSequences(Oid relid); -extern Oid getIdentitySequence(Oid relid, AttrNumber attnum, bool missing_ok); - -extern Oid get_index_constraint(Oid indexId); - -extern List *get_index_ref_constraints(Oid indexId); - -/* in pg_shdepend.c */ - -extern void recordSharedDependencyOn(ObjectAddress *depender, - ObjectAddress *referenced, - SharedDependencyType deptype); - -extern void deleteSharedDependencyRecordsFor(Oid classId, Oid objectId, - int32 objectSubId); - -extern void recordDependencyOnOwner(Oid classId, Oid objectId, Oid owner); - -extern void changeDependencyOnOwner(Oid classId, Oid objectId, - Oid newOwnerId); - -extern void recordDependencyOnTablespace(Oid classId, Oid objectId, - Oid tablespace); - -extern void changeDependencyOnTablespace(Oid classId, Oid objectId, - Oid newTablespaceId); - -extern void updateAclDependencies(Oid classId, Oid objectId, int32 objectSubId, - Oid ownerId, - int noldmembers, Oid *oldmembers, - int nnewmembers, Oid *newmembers); - -extern bool checkSharedDependencies(Oid classId, Oid objectId, - char **detail_msg, char **detail_log_msg); - -extern void shdepLockAndCheckObject(Oid classId, Oid objectId); - -extern void copyTemplateDependencies(Oid templateDbId, Oid newDbId); - -extern void dropDatabaseDependencies(Oid databaseId); - -extern void shdepDropOwned(List *relids, DropBehavior behavior); - -extern void shdepReassignOwned(List *relids, Oid newrole); - -#endif /* DEPENDENCY_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/genbki.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/genbki.h deleted file mode 100644 index 992b78423..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/genbki.h +++ /dev/null @@ -1,142 +0,0 @@ -/*------------------------------------------------------------------------- - * - * genbki.h - * Required include file for all POSTGRES catalog header files - * - * genbki.h defines CATALOG(), BKI_BOOTSTRAP and related macros - * so that the catalog header files can be read by the C compiler. - * (These same words are recognized by genbki.pl to build the BKI - * bootstrap file from these header files.) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/genbki.h - * - *------------------------------------------------------------------------- - */ -#ifndef GENBKI_H -#define GENBKI_H - -/* Introduces a catalog's structure definition */ -#define CATALOG(name,oid,oidmacro) typedef struct CppConcat(FormData_,name) - -/* Options that may appear after CATALOG (on the same line) */ -#define BKI_BOOTSTRAP -#define BKI_SHARED_RELATION -#define BKI_ROWTYPE_OID(oid,oidmacro) -#define BKI_SCHEMA_MACRO - -/* Options that may appear after an attribute (on the same line) */ -#define BKI_FORCE_NULL -#define BKI_FORCE_NOT_NULL -/* Specifies a default value for a catalog field */ -#define BKI_DEFAULT(value) -/* Specifies a default value for auto-generated array types */ -#define BKI_ARRAY_DEFAULT(value) -/* - * Indicates that the attribute contains OIDs referencing the named catalog; - * can be applied to columns of oid, regproc, oid[], or oidvector type. - * genbki.pl uses this to know how to perform name lookups in the initial - * data (if any), and it also feeds into regression-test validity checks. - * The _OPT suffix indicates that values can be zero instead of - * a valid OID reference. - */ -#define BKI_LOOKUP(catalog) -#define BKI_LOOKUP_OPT(catalog) - -/* - * These lines are processed by genbki.pl to create the statements - * the bootstrap parser will turn into BootstrapToastTable commands. - * Each line specifies the system catalog that needs a toast table, - * the OID to assign to the toast table, and the OID to assign to the - * toast table's index. The reason we hard-wire these OIDs is that we - * need stable OIDs for shared relations, and that includes toast tables - * of shared relations. - * - * The DECLARE_TOAST_WITH_MACRO variant is used when C macros are needed - * for the toast table/index OIDs (usually only for shared catalogs). - * - * The macro definitions are just to keep the C compiler from spitting up. - */ -#define DECLARE_TOAST(name,toastoid,indexoid) extern int no_such_variable -#define DECLARE_TOAST_WITH_MACRO(name,toastoid,indexoid,toastoidmacro,indexoidmacro) extern int no_such_variable - -/* - * These lines are processed by genbki.pl to create the statements - * the bootstrap parser will turn into DefineIndex calls. - * - * The keyword is DECLARE_INDEX or DECLARE_UNIQUE_INDEX or - * DECLARE_UNIQUE_INDEX_PKEY. ("PKEY" marks the index as being the catalog's - * primary key; currently this is only cosmetically different from a regular - * unique index. By convention, we usually make a catalog's OID column its - * pkey, if it has one.) The first two arguments are the index's name and - * OID, the rest is much like a standard 'create index' SQL command. - * - * For each index, we also provide a #define for its OID. References to - * the index in the C code should always use these #defines, not the actual - * index name (much less the numeric OID). - * - * The macro definitions are just to keep the C compiler from spitting up. - */ -#define DECLARE_INDEX(name,oid,oidmacro,decl) extern int no_such_variable -#define DECLARE_UNIQUE_INDEX(name,oid,oidmacro,decl) extern int no_such_variable -#define DECLARE_UNIQUE_INDEX_PKEY(name,oid,oidmacro,decl) extern int no_such_variable - -/* - * These lines inform genbki.pl about manually-assigned OIDs that do not - * correspond to any entry in the catalog *.dat files, but should be subject - * to uniqueness verification and renumber_oids.pl renumbering. A C macro - * to #define the given name is emitted into the corresponding *_d.h file. - */ -#define DECLARE_OID_DEFINING_MACRO(name,oid) extern int no_such_variable - -/* - * These lines are processed by genbki.pl to create a table for use - * by the pg_get_catalog_foreign_keys() function. We do not have any - * mechanism that actually enforces foreign-key relationships in the - * system catalogs, but it is still useful to record the intended - * relationships in a machine-readable form. - * - * The keyword is DECLARE_FOREIGN_KEY[_OPT] or DECLARE_ARRAY_FOREIGN_KEY[_OPT]. - * The first argument is a parenthesized list of the referencing columns; - * the second, the name of the referenced table; the third, a parenthesized - * list of the referenced columns. Use of the ARRAY macros means that the - * last referencing column is an array, each of whose elements is supposed - * to match some entry in the last referenced column. Use of the OPT suffix - * indicates that the referencing column(s) can be zero instead of a valid - * reference. - * - * Columns that are marked with a BKI_LOOKUP rule do not need an explicit - * DECLARE_FOREIGN_KEY macro, as genbki.pl can infer the FK relationship - * from that. Thus, these macros are only needed in special cases. - * - * The macro definitions are just to keep the C compiler from spitting up. - */ -#define DECLARE_FOREIGN_KEY(cols,reftbl,refcols) extern int no_such_variable -#define DECLARE_FOREIGN_KEY_OPT(cols,reftbl,refcols) extern int no_such_variable -#define DECLARE_ARRAY_FOREIGN_KEY(cols,reftbl,refcols) extern int no_such_variable -#define DECLARE_ARRAY_FOREIGN_KEY_OPT(cols,reftbl,refcols) extern int no_such_variable - -/* The following are never defined; they are here only for documentation. */ - -/* - * Variable-length catalog fields (except possibly the first not nullable one) - * should not be visible in C structures, so they are made invisible by #ifdefs - * of an undefined symbol. See also the BOOTCOL_NULL_AUTO code in bootstrap.c - * for how this is handled. - */ -#undef CATALOG_VARLEN - -/* - * There is code in some catalog headers that needs to be visible to clients, - * but we don't want clients to include the full header because of safety - * issues with other code in the header. To handle that, surround code that - * should be visible to clients with "#ifdef EXPOSE_TO_CLIENT_CODE". That - * instructs genbki.pl to copy the section when generating the corresponding - * "_d" header, which can be included by both client and backend code. - */ -#undef EXPOSE_TO_CLIENT_CODE - -#endif /* GENBKI_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/index.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/index.h deleted file mode 100644 index a1d6e3b64..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/index.h +++ /dev/null @@ -1,214 +0,0 @@ -/*------------------------------------------------------------------------- - * - * index.h - * prototypes for catalog/index.c. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/index.h - * - *------------------------------------------------------------------------- - */ -#ifndef INDEX_H -#define INDEX_H - -#include "catalog/objectaddress.h" -#include "nodes/execnodes.h" - - -#define DEFAULT_INDEX_TYPE "btree" - -/* Action code for index_set_state_flags */ -typedef enum -{ - INDEX_CREATE_SET_READY, - INDEX_CREATE_SET_VALID, - INDEX_DROP_CLEAR_VALID, - INDEX_DROP_SET_DEAD -} IndexStateFlagsAction; - -/* options for REINDEX */ -typedef struct ReindexParams -{ - bits32 options; /* bitmask of REINDEXOPT_* */ - Oid tablespaceOid; /* New tablespace to move indexes to. - * InvalidOid to do nothing. */ -} ReindexParams; - -/* flag bits for ReindexParams->flags */ -#define REINDEXOPT_VERBOSE 0x01 /* print progress info */ -#define REINDEXOPT_REPORT_PROGRESS 0x02 /* report pgstat progress */ -#define REINDEXOPT_MISSING_OK 0x04 /* skip missing relations */ -#define REINDEXOPT_CONCURRENTLY 0x08 /* concurrent mode */ - -/* state info for validate_index bulkdelete callback */ -typedef struct ValidateIndexState -{ - Tuplesortstate *tuplesort; /* for sorting the index TIDs */ - /* statistics (for debug purposes only): */ - double htups, - itups, - tups_inserted; -} ValidateIndexState; - -extern void index_check_primary_key(Relation heapRel, - IndexInfo *indexInfo, - bool is_alter_table, - IndexStmt *stmt); - -#define INDEX_CREATE_IS_PRIMARY (1 << 0) -#define INDEX_CREATE_ADD_CONSTRAINT (1 << 1) -#define INDEX_CREATE_SKIP_BUILD (1 << 2) -#define INDEX_CREATE_CONCURRENT (1 << 3) -#define INDEX_CREATE_IF_NOT_EXISTS (1 << 4) -#define INDEX_CREATE_PARTITIONED (1 << 5) -#define INDEX_CREATE_INVALID (1 << 6) - -extern Oid index_create(Relation heapRelation, - const char *indexRelationName, - Oid indexRelationId, - Oid parentIndexRelid, - Oid parentConstraintId, - Oid relFileNode, - IndexInfo *indexInfo, - List *indexColNames, - Oid accessMethodObjectId, - Oid tableSpaceId, - Oid *collationObjectId, - Oid *classObjectId, - int16 *coloptions, - Datum reloptions, - bits16 flags, - bits16 constr_flags, - bool allow_system_table_mods, - bool is_internal, - Oid *constraintId); - -#define INDEX_CONSTR_CREATE_MARK_AS_PRIMARY (1 << 0) -#define INDEX_CONSTR_CREATE_DEFERRABLE (1 << 1) -#define INDEX_CONSTR_CREATE_INIT_DEFERRED (1 << 2) -#define INDEX_CONSTR_CREATE_UPDATE_INDEX (1 << 3) -#define INDEX_CONSTR_CREATE_REMOVE_OLD_DEPS (1 << 4) - -extern Oid index_concurrently_create_copy(Relation heapRelation, - Oid oldIndexId, - Oid tablespaceOid, - const char *newName); - -extern void index_concurrently_build(Oid heapRelationId, - Oid indexRelationId); - -extern void index_concurrently_swap(Oid newIndexId, - Oid oldIndexId, - const char *oldName); - -extern void index_concurrently_set_dead(Oid heapId, - Oid indexId); - -extern ObjectAddress index_constraint_create(Relation heapRelation, - Oid indexRelationId, - Oid parentConstraintId, - IndexInfo *indexInfo, - const char *constraintName, - char constraintType, - bits16 constr_flags, - bool allow_system_table_mods, - bool is_internal); - -extern void index_drop(Oid indexId, bool concurrent, bool concurrent_lock_mode); - -extern IndexInfo *BuildIndexInfo(Relation index); - -extern IndexInfo *BuildDummyIndexInfo(Relation index); - -extern bool CompareIndexInfo(IndexInfo *info1, IndexInfo *info2, - Oid *collations1, Oid *collations2, - Oid *opfamilies1, Oid *opfamilies2, - AttrMap *attmap); - -extern void BuildSpeculativeIndexInfo(Relation index, IndexInfo *ii); - -extern void FormIndexDatum(IndexInfo *indexInfo, - TupleTableSlot *slot, - EState *estate, - Datum *values, - bool *isnull); - -extern void index_build(Relation heapRelation, - Relation indexRelation, - IndexInfo *indexInfo, - bool isreindex, - bool parallel); - -extern void validate_index(Oid heapId, Oid indexId, Snapshot snapshot); - -extern void index_set_state_flags(Oid indexId, IndexStateFlagsAction action); - -extern Oid IndexGetRelation(Oid indexId, bool missing_ok); - -extern void reindex_index(Oid indexId, bool skip_constraint_checks, - char relpersistence, ReindexParams *params); - -/* Flag bits for reindex_relation(): */ -#define REINDEX_REL_PROCESS_TOAST 0x01 -#define REINDEX_REL_SUPPRESS_INDEX_USE 0x02 -#define REINDEX_REL_CHECK_CONSTRAINTS 0x04 -#define REINDEX_REL_FORCE_INDEXES_UNLOGGED 0x08 -#define REINDEX_REL_FORCE_INDEXES_PERMANENT 0x10 - -extern bool reindex_relation(Oid relid, int flags, ReindexParams *params); - -extern bool ReindexIsProcessingHeap(Oid heapOid); -extern bool ReindexIsProcessingIndex(Oid indexOid); - -extern void ResetReindexState(int nestLevel); -extern Size EstimateReindexStateSpace(void); -extern void SerializeReindexState(Size maxsize, char *start_address); -extern void RestoreReindexState(void *reindexstate); - -extern void IndexSetParentIndex(Relation idx, Oid parentOid); - - -/* - * itemptr_encode - Encode ItemPointer as int64/int8 - * - * This representation must produce values encoded as int64 that sort in the - * same order as their corresponding original TID values would (using the - * default int8 opclass to produce a result equivalent to the default TID - * opclass). - * - * As noted in validate_index(), this can be significantly faster. - */ -static inline int64 -itemptr_encode(ItemPointer itemptr) -{ - BlockNumber block = ItemPointerGetBlockNumber(itemptr); - OffsetNumber offset = ItemPointerGetOffsetNumber(itemptr); - int64 encoded; - - /* - * Use the 16 least significant bits for the offset. 32 adjacent bits are - * used for the block number. Since remaining bits are unused, there - * cannot be negative encoded values (We assume a two's complement - * representation). - */ - encoded = ((uint64) block << 16) | (uint16) offset; - - return encoded; -} - -/* - * itemptr_decode - Decode int64/int8 representation back to ItemPointer - */ -static inline void -itemptr_decode(ItemPointer itemptr, int64 encoded) -{ - BlockNumber block = (BlockNumber) (encoded >> 16); - OffsetNumber offset = (OffsetNumber) (encoded & 0xFFFF); - - ItemPointerSet(itemptr, block, offset); -} - -#endif /* INDEX_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/indexing.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/indexing.h deleted file mode 100644 index 3fe769be9..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/indexing.h +++ /dev/null @@ -1,54 +0,0 @@ -/*------------------------------------------------------------------------- - * - * indexing.h - * This file provides some definitions to support indexing - * on system catalogs - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/indexing.h - * - *------------------------------------------------------------------------- - */ -#ifndef INDEXING_H -#define INDEXING_H - -#include "access/htup.h" -#include "nodes/execnodes.h" -#include "utils/relcache.h" - -/* - * The state object used by CatalogOpenIndexes and friends is actually the - * same as the executor's ResultRelInfo, but we give it another type name - * to decouple callers from that fact. - */ -typedef struct ResultRelInfo *CatalogIndexState; - -/* - * Cap the maximum amount of bytes allocated for multi-inserts with system - * catalogs, limiting the number of slots used. - */ -#define MAX_CATALOG_MULTI_INSERT_BYTES 65535 - -/* - * indexing.c prototypes - */ -extern CatalogIndexState CatalogOpenIndexes(Relation heapRel); -extern void CatalogCloseIndexes(CatalogIndexState indstate); -extern void CatalogTupleInsert(Relation heapRel, HeapTuple tup); -extern void CatalogTupleInsertWithInfo(Relation heapRel, HeapTuple tup, - CatalogIndexState indstate); -extern void CatalogTuplesMultiInsertWithInfo(Relation heapRel, - TupleTableSlot **slot, - int ntuples, - CatalogIndexState indstate); -extern void CatalogTupleUpdate(Relation heapRel, ItemPointer otid, - HeapTuple tup); -extern void CatalogTupleUpdateWithInfo(Relation heapRel, - ItemPointer otid, HeapTuple tup, - CatalogIndexState indstate); -extern void CatalogTupleDelete(Relation heapRel, ItemPointer tid); - -#endif /* INDEXING_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/namespace.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/namespace.h deleted file mode 100644 index 1bc55c01a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/namespace.h +++ /dev/null @@ -1,190 +0,0 @@ -/*------------------------------------------------------------------------- - * - * namespace.h - * prototypes for functions in backend/catalog/namespace.c - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/namespace.h - * - *------------------------------------------------------------------------- - */ -#ifndef NAMESPACE_H -#define NAMESPACE_H - -#include "nodes/primnodes.h" -#include "storage/lock.h" - - -/* - * This structure holds a list of possible functions or operators - * found by namespace lookup. Each function/operator is identified - * by OID and by argument types; the list must be pruned by type - * resolution rules that are embodied in the parser, not here. - * See FuncnameGetCandidates's comments for more info. - */ -typedef struct _FuncCandidateList -{ - struct _FuncCandidateList *next; - int pathpos; /* for internal use of namespace lookup */ - Oid oid; /* the function or operator's OID */ - int nominalnargs; /* either pronargs or length(proallargtypes) */ - int nargs; /* number of arg types returned */ - int nvargs; /* number of args to become variadic array */ - int ndargs; /* number of defaulted args */ - int *argnumbers; /* args' positional indexes, if named call */ - Oid args[FLEXIBLE_ARRAY_MEMBER]; /* arg types */ -} *FuncCandidateList; - -/* - * Result of checkTempNamespaceStatus - */ -typedef enum TempNamespaceStatus -{ - TEMP_NAMESPACE_NOT_TEMP, /* nonexistent, or non-temp namespace */ - TEMP_NAMESPACE_IDLE, /* exists, belongs to no active session */ - TEMP_NAMESPACE_IN_USE /* belongs to some active session */ -} TempNamespaceStatus; - -/* - * Structure for xxxOverrideSearchPath functions - * - * The generation counter is private to namespace.c and shouldn't be touched - * by other code. It can be initialized to zero if necessary (that means - * "not known equal to the current active path"). - */ -typedef struct OverrideSearchPath -{ - List *schemas; /* OIDs of explicitly named schemas */ - bool addCatalog; /* implicitly prepend pg_catalog? */ - bool addTemp; /* implicitly prepend temp schema? */ - uint64 generation; /* for quick detection of equality to active */ -} OverrideSearchPath; - -/* - * Option flag bits for RangeVarGetRelidExtended(). - */ -typedef enum RVROption -{ - RVR_MISSING_OK = 1 << 0, /* don't error if relation doesn't exist */ - RVR_NOWAIT = 1 << 1, /* error if relation cannot be locked */ - RVR_SKIP_LOCKED = 1 << 2 /* skip if relation cannot be locked */ -} RVROption; - -typedef void (*RangeVarGetRelidCallback) (const RangeVar *relation, Oid relId, - Oid oldRelId, void *callback_arg); - -#define RangeVarGetRelid(relation, lockmode, missing_ok) \ - RangeVarGetRelidExtended(relation, lockmode, \ - (missing_ok) ? RVR_MISSING_OK : 0, NULL, NULL) - -extern Oid RangeVarGetRelidExtended(const RangeVar *relation, - LOCKMODE lockmode, uint32 flags, - RangeVarGetRelidCallback callback, - void *callback_arg); -extern Oid RangeVarGetCreationNamespace(const RangeVar *newRelation); -extern Oid RangeVarGetAndCheckCreationNamespace(RangeVar *newRelation, - LOCKMODE lockmode, - Oid *existing_relation_id); -extern void RangeVarAdjustRelationPersistence(RangeVar *newRelation, Oid nspid); -extern Oid RelnameGetRelid(const char *relname); -extern bool RelationIsVisible(Oid relid); - -extern Oid TypenameGetTypid(const char *typname); -extern Oid TypenameGetTypidExtended(const char *typname, bool temp_ok); -extern bool TypeIsVisible(Oid typid); - -extern FuncCandidateList FuncnameGetCandidates(List *names, - int nargs, List *argnames, - bool expand_variadic, - bool expand_defaults, - bool include_out_arguments, - bool missing_ok); -extern bool FunctionIsVisible(Oid funcid); - -extern Oid OpernameGetOprid(List *names, Oid oprleft, Oid oprright); -extern FuncCandidateList OpernameGetCandidates(List *names, char oprkind, - bool missing_schema_ok); -extern bool OperatorIsVisible(Oid oprid); - -extern Oid OpclassnameGetOpcid(Oid amid, const char *opcname); -extern bool OpclassIsVisible(Oid opcid); - -extern Oid OpfamilynameGetOpfid(Oid amid, const char *opfname); -extern bool OpfamilyIsVisible(Oid opfid); - -extern Oid CollationGetCollid(const char *collname); -extern bool CollationIsVisible(Oid collid); - -extern Oid ConversionGetConid(const char *conname); -extern bool ConversionIsVisible(Oid conid); - -extern Oid get_statistics_object_oid(List *names, bool missing_ok); -extern bool StatisticsObjIsVisible(Oid relid); - -extern Oid get_ts_parser_oid(List *names, bool missing_ok); -extern bool TSParserIsVisible(Oid prsId); - -extern Oid get_ts_dict_oid(List *names, bool missing_ok); -extern bool TSDictionaryIsVisible(Oid dictId); - -extern Oid get_ts_template_oid(List *names, bool missing_ok); -extern bool TSTemplateIsVisible(Oid tmplId); - -extern Oid get_ts_config_oid(List *names, bool missing_ok); -extern bool TSConfigIsVisible(Oid cfgid); - -extern void DeconstructQualifiedName(List *names, - char **nspname_p, - char **objname_p); -extern Oid LookupNamespaceNoError(const char *nspname); -extern Oid LookupExplicitNamespace(const char *nspname, bool missing_ok); -extern Oid get_namespace_oid(const char *nspname, bool missing_ok); - -extern Oid LookupCreationNamespace(const char *nspname); -extern void CheckSetNamespace(Oid oldNspOid, Oid nspOid); -extern Oid QualifiedNameGetCreationNamespace(List *names, char **objname_p); -extern RangeVar *makeRangeVarFromNameList(List *names); -extern char *NameListToString(List *names); -extern char *NameListToQuotedString(List *names); - -extern bool isTempNamespace(Oid namespaceId); -extern bool isTempToastNamespace(Oid namespaceId); -extern bool isTempOrTempToastNamespace(Oid namespaceId); -extern bool isAnyTempNamespace(Oid namespaceId); -extern bool isOtherTempNamespace(Oid namespaceId); -extern TempNamespaceStatus checkTempNamespaceStatus(Oid namespaceId); -extern int GetTempNamespaceBackendId(Oid namespaceId); -extern Oid GetTempToastNamespace(void); -extern void GetTempNamespaceState(Oid *tempNamespaceId, - Oid *tempToastNamespaceId); -extern void SetTempNamespaceState(Oid tempNamespaceId, - Oid tempToastNamespaceId); -extern void ResetTempTableNamespace(void); - -extern OverrideSearchPath *GetOverrideSearchPath(MemoryContext context); -extern OverrideSearchPath *CopyOverrideSearchPath(OverrideSearchPath *path); -extern bool OverrideSearchPathMatchesCurrent(OverrideSearchPath *path); -extern void PushOverrideSearchPath(OverrideSearchPath *newpath); -extern void PopOverrideSearchPath(void); - -extern Oid get_collation_oid(List *collname, bool missing_ok); -extern Oid get_conversion_oid(List *conname, bool missing_ok); -extern Oid FindDefaultConversionProc(int32 for_encoding, int32 to_encoding); - - -/* initialization & transaction cleanup code */ -extern void InitializeSearchPath(void); -extern void AtEOXact_Namespace(bool isCommit, bool parallel); -extern void AtEOSubXact_Namespace(bool isCommit, SubTransactionId mySubid, - SubTransactionId parentSubid); - -/* stuff for search_path GUC variable */ -extern PGDLLIMPORT char *namespace_search_path; - -extern List *fetch_search_path(bool includeImplicit); -extern int fetch_search_path_array(Oid *sarray, int sarray_len); - -#endif /* NAMESPACE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/objectaccess.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/objectaccess.h deleted file mode 100644 index 567ab63e8..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/objectaccess.h +++ /dev/null @@ -1,265 +0,0 @@ -/* - * objectaccess.h - * - * Object access hooks. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - */ - -#ifndef OBJECTACCESS_H -#define OBJECTACCESS_H - -/* - * Object access hooks are intended to be called just before or just after - * performing certain actions on a SQL object. This is intended as - * infrastructure for security or logging plugins. - * - * OAT_POST_CREATE should be invoked just after the object is created. - * Typically, this is done after inserting the primary catalog records and - * associated dependencies. - * - * OAT_DROP should be invoked just before deletion of objects; typically - * deleteOneObject(). Its arguments are packed within ObjectAccessDrop. - * - * OAT_POST_ALTER should be invoked just after the object is altered, - * but before the command counter is incremented. An extension using the - * hook can use a current MVCC snapshot to get the old version of the tuple, - * and can use SnapshotSelf to get the new version of the tuple. - * - * OAT_NAMESPACE_SEARCH should be invoked prior to object name lookup under - * a particular namespace. This event is equivalent to usage permission - * on a schema under the default access control mechanism. - * - * OAT_FUNCTION_EXECUTE should be invoked prior to function execution. - * This event is almost equivalent to execute permission on functions, - * except for the case when execute permission is checked during object - * creation or altering, because OAT_POST_CREATE or OAT_POST_ALTER are - * sufficient for extensions to track these kind of checks. - * - * OAT_TRUNCATE should be invoked just before truncation of objects. This - * event is equivalent to truncate permission on a relation under the - * default access control mechanism. - * - * Other types may be added in the future. - */ -typedef enum ObjectAccessType -{ - OAT_POST_CREATE, - OAT_DROP, - OAT_POST_ALTER, - OAT_NAMESPACE_SEARCH, - OAT_FUNCTION_EXECUTE, - OAT_TRUNCATE -} ObjectAccessType; - -/* - * Arguments of OAT_POST_CREATE event - */ -typedef struct -{ - /* - * This flag informs extensions whether the context of this creation is - * invoked by user's operations, or not. E.g, it shall be dealt as - * internal stuff on toast tables or indexes due to type changes. - */ - bool is_internal; -} ObjectAccessPostCreate; - -/* - * Arguments of OAT_DROP event - */ -typedef struct -{ - /* - * Flags to inform extensions the context of this deletion. Also see - * PERFORM_DELETION_* in dependency.h - */ - int dropflags; -} ObjectAccessDrop; - -/* - * Arguments of OAT_POST_ALTER event - */ -typedef struct -{ - /* - * This identifier is used when system catalog takes two IDs to identify a - * particular tuple of the catalog. It is only used when the caller want - * to identify an entry of pg_inherits, pg_db_role_setting or - * pg_user_mapping. Elsewhere, InvalidOid should be set. - */ - Oid auxiliary_id; - - /* - * If this flag is set, the user hasn't requested that the object be - * altered, but we're doing it anyway for some internal reason. - * Permissions-checking hooks may want to skip checks if, say, we're alter - * the constraints of a temporary heap during CLUSTER. - */ - bool is_internal; -} ObjectAccessPostAlter; - -/* - * Arguments of OAT_NAMESPACE_SEARCH - */ -typedef struct -{ - /* - * If true, hook should report an error when permission to search this - * schema is denied. - */ - bool ereport_on_violation; - - /* - * This is, in essence, an out parameter. Core code should initialize - * this to true, and any extension that wants to deny access should reset - * it to false. But an extension should be careful never to store a true - * value here, so that in case there are multiple extensions access is - * only allowed if all extensions agree. - */ - bool result; -} ObjectAccessNamespaceSearch; - -/* Plugin provides a hook function matching one or both of these signatures. */ -typedef void (*object_access_hook_type) (ObjectAccessType access, - Oid classId, - Oid objectId, - int subId, - void *arg); - -typedef void (*object_access_hook_type_str) (ObjectAccessType access, - Oid classId, - const char *objectStr, - int subId, - void *arg); - -/* Plugin sets this variable to a suitable hook function. */ -extern PGDLLIMPORT object_access_hook_type object_access_hook; -extern PGDLLIMPORT object_access_hook_type_str object_access_hook_str; - - -/* Core code uses these functions to call the hook (see macros below). */ -extern void RunObjectPostCreateHook(Oid classId, Oid objectId, int subId, - bool is_internal); -extern void RunObjectDropHook(Oid classId, Oid objectId, int subId, - int dropflags); -extern void RunObjectTruncateHook(Oid objectId); -extern void RunObjectPostAlterHook(Oid classId, Oid objectId, int subId, - Oid auxiliaryId, bool is_internal); -extern bool RunNamespaceSearchHook(Oid objectId, bool ereport_on_violation); -extern void RunFunctionExecuteHook(Oid objectId); - -/* String versions */ -extern void RunObjectPostCreateHookStr(Oid classId, const char *objectStr, int subId, - bool is_internal); -extern void RunObjectDropHookStr(Oid classId, const char *objectStr, int subId, - int dropflags); -extern void RunObjectTruncateHookStr(const char *objectStr); -extern void RunObjectPostAlterHookStr(Oid classId, const char *objectStr, int subId, - Oid auxiliaryId, bool is_internal); -extern bool RunNamespaceSearchHookStr(const char *objectStr, bool ereport_on_violation); -extern void RunFunctionExecuteHookStr(const char *objectStr); - - -/* - * The following macros are wrappers around the functions above; these should - * normally be used to invoke the hook in lieu of calling the above functions - * directly. - */ - -#define InvokeObjectPostCreateHook(classId,objectId,subId) \ - InvokeObjectPostCreateHookArg((classId),(objectId),(subId),false) -#define InvokeObjectPostCreateHookArg(classId,objectId,subId,is_internal) \ - do { \ - if (object_access_hook) \ - RunObjectPostCreateHook((classId),(objectId),(subId), \ - (is_internal)); \ - } while(0) - -#define InvokeObjectDropHook(classId,objectId,subId) \ - InvokeObjectDropHookArg((classId),(objectId),(subId),0) -#define InvokeObjectDropHookArg(classId,objectId,subId,dropflags) \ - do { \ - if (object_access_hook) \ - RunObjectDropHook((classId),(objectId),(subId), \ - (dropflags)); \ - } while(0) - -#define InvokeObjectTruncateHook(objectId) \ - do { \ - if (object_access_hook) \ - RunObjectTruncateHook(objectId); \ - } while(0) - -#define InvokeObjectPostAlterHook(classId,objectId,subId) \ - InvokeObjectPostAlterHookArg((classId),(objectId),(subId), \ - InvalidOid,false) -#define InvokeObjectPostAlterHookArg(classId,objectId,subId, \ - auxiliaryId,is_internal) \ - do { \ - if (object_access_hook) \ - RunObjectPostAlterHook((classId),(objectId),(subId), \ - (auxiliaryId),(is_internal)); \ - } while(0) - -#define InvokeNamespaceSearchHook(objectId, ereport_on_violation) \ - (!object_access_hook \ - ? true \ - : RunNamespaceSearchHook((objectId), (ereport_on_violation))) - -#define InvokeFunctionExecuteHook(objectId) \ - do { \ - if (object_access_hook) \ - RunFunctionExecuteHook(objectId); \ - } while(0) - - -#define InvokeObjectPostCreateHookStr(classId,objectName,subId) \ - InvokeObjectPostCreateHookArgStr((classId),(objectName),(subId),false) -#define InvokeObjectPostCreateHookArgStr(classId,objectName,subId,is_internal) \ - do { \ - if (object_access_hook_str) \ - RunObjectPostCreateHookStr((classId),(objectName),(subId), \ - (is_internal)); \ - } while(0) - -#define InvokeObjectDropHookStr(classId,objectName,subId) \ - InvokeObjectDropHookArgStr((classId),(objectName),(subId),0) -#define InvokeObjectDropHookArgStr(classId,objectName,subId,dropflags) \ - do { \ - if (object_access_hook_str) \ - RunObjectDropHookStr((classId),(objectName),(subId), \ - (dropflags)); \ - } while(0) - -#define InvokeObjectTruncateHookStr(objectName) \ - do { \ - if (object_access_hook_str) \ - RunObjectTruncateHookStr(objectName); \ - } while(0) - -#define InvokeObjectPostAlterHookStr(classId,objectName,subId) \ - InvokeObjectPostAlterHookArgStr((classId),(objectName),(subId), \ - InvalidOid,false) -#define InvokeObjectPostAlterHookArgStr(classId,objectName,subId, \ - auxiliaryId,is_internal) \ - do { \ - if (object_access_hook_str) \ - RunObjectPostAlterHookStr((classId),(objectName),(subId), \ - (auxiliaryId),(is_internal)); \ - } while(0) - -#define InvokeNamespaceSearchHookStr(objectName, ereport_on_violation) \ - (!object_access_hook_str \ - ? true \ - : RunNamespaceSearchHookStr((objectName), (ereport_on_violation))) - -#define InvokeFunctionExecuteHookStr(objectName) \ - do { \ - if (object_access_hook_str) \ - RunFunctionExecuteHookStr(objectName); \ - } while(0) - - -#endif /* OBJECTACCESS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/objectaddress.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/objectaddress.h deleted file mode 100644 index cf4d8b310..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/objectaddress.h +++ /dev/null @@ -1,89 +0,0 @@ -/*------------------------------------------------------------------------- - * - * objectaddress.h - * functions for working with object addresses - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/objectaddress.h - * - *------------------------------------------------------------------------- - */ -#ifndef OBJECTADDRESS_H -#define OBJECTADDRESS_H - -#include "access/htup.h" -#include "nodes/parsenodes.h" -#include "storage/lockdefs.h" -#include "utils/relcache.h" - -/* - * An ObjectAddress represents a database object of any type. - */ -typedef struct ObjectAddress -{ - Oid classId; /* Class Id from pg_class */ - Oid objectId; /* OID of the object */ - int32 objectSubId; /* Subitem within object (eg column), or 0 */ -} ObjectAddress; - -extern PGDLLIMPORT const ObjectAddress InvalidObjectAddress; - -#define ObjectAddressSubSet(addr, class_id, object_id, object_sub_id) \ - do { \ - (addr).classId = (class_id); \ - (addr).objectId = (object_id); \ - (addr).objectSubId = (object_sub_id); \ - } while (0) - -#define ObjectAddressSet(addr, class_id, object_id) \ - ObjectAddressSubSet(addr, class_id, object_id, 0) - -extern ObjectAddress get_object_address(ObjectType objtype, Node *object, - Relation *relp, - LOCKMODE lockmode, bool missing_ok); - -extern ObjectAddress get_object_address_rv(ObjectType objtype, RangeVar *rel, - List *object, Relation *relp, - LOCKMODE lockmode, bool missing_ok); - -extern void check_object_ownership(Oid roleid, - ObjectType objtype, ObjectAddress address, - Node *object, Relation relation); - -extern Oid get_object_namespace(const ObjectAddress *address); - -extern bool is_objectclass_supported(Oid class_id); -extern const char *get_object_class_descr(Oid class_id); -extern Oid get_object_oid_index(Oid class_id); -extern int get_object_catcache_oid(Oid class_id); -extern int get_object_catcache_name(Oid class_id); -extern AttrNumber get_object_attnum_oid(Oid class_id); -extern AttrNumber get_object_attnum_name(Oid class_id); -extern AttrNumber get_object_attnum_namespace(Oid class_id); -extern AttrNumber get_object_attnum_owner(Oid class_id); -extern AttrNumber get_object_attnum_acl(Oid class_id); -extern ObjectType get_object_type(Oid class_id, Oid object_id); -extern bool get_object_namensp_unique(Oid class_id); - -extern HeapTuple get_catalog_object_by_oid(Relation catalog, - AttrNumber oidcol, Oid objectId); - -extern char *getObjectDescription(const ObjectAddress *object, - bool missing_ok); -extern char *getObjectDescriptionOids(Oid classid, Oid objid); - -extern int read_objtype_from_string(const char *objtype); -extern char *getObjectTypeDescription(const ObjectAddress *object, - bool missing_ok); -extern char *getObjectIdentity(const ObjectAddress *address, - bool missing_ok); -extern char *getObjectIdentityParts(const ObjectAddress *address, - List **objname, List **objargs, - bool missing_ok); -extern struct ArrayType *strlist_to_textarray(List *list); - -extern ObjectType get_relkind_objtype(char relkind); - -#endif /* OBJECTADDRESS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_aggregate.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_aggregate.h deleted file mode 100644 index 593da9f76..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_aggregate.h +++ /dev/null @@ -1,180 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_aggregate.h - * definition of the "aggregate" system catalog (pg_aggregate) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_aggregate.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_AGGREGATE_H -#define PG_AGGREGATE_H - -#include "catalog/genbki.h" -#include "catalog/pg_aggregate_d.h" - -#include "catalog/objectaddress.h" -#include "nodes/pg_list.h" - -/* ---------------------------------------------------------------- - * pg_aggregate definition. - * cpp turns this into typedef struct FormData_pg_aggregate - * ---------------------------------------------------------------- - */ -CATALOG(pg_aggregate,2600,AggregateRelationId) -{ - /* pg_proc OID of the aggregate itself */ - regproc aggfnoid BKI_LOOKUP(pg_proc); - - /* aggregate kind, see AGGKIND_ categories below */ - char aggkind BKI_DEFAULT(n); - - /* number of arguments that are "direct" arguments */ - int16 aggnumdirectargs BKI_DEFAULT(0); - - /* transition function */ - regproc aggtransfn BKI_LOOKUP(pg_proc); - - /* final function (0 if none) */ - regproc aggfinalfn BKI_DEFAULT(-) BKI_LOOKUP_OPT(pg_proc); - - /* combine function (0 if none) */ - regproc aggcombinefn BKI_DEFAULT(-) BKI_LOOKUP_OPT(pg_proc); - - /* function to convert transtype to bytea (0 if none) */ - regproc aggserialfn BKI_DEFAULT(-) BKI_LOOKUP_OPT(pg_proc); - - /* function to convert bytea to transtype (0 if none) */ - regproc aggdeserialfn BKI_DEFAULT(-) BKI_LOOKUP_OPT(pg_proc); - - /* forward function for moving-aggregate mode (0 if none) */ - regproc aggmtransfn BKI_DEFAULT(-) BKI_LOOKUP_OPT(pg_proc); - - /* inverse function for moving-aggregate mode (0 if none) */ - regproc aggminvtransfn BKI_DEFAULT(-) BKI_LOOKUP_OPT(pg_proc); - - /* final function for moving-aggregate mode (0 if none) */ - regproc aggmfinalfn BKI_DEFAULT(-) BKI_LOOKUP_OPT(pg_proc); - - /* true to pass extra dummy arguments to aggfinalfn */ - bool aggfinalextra BKI_DEFAULT(f); - - /* true to pass extra dummy arguments to aggmfinalfn */ - bool aggmfinalextra BKI_DEFAULT(f); - - /* tells whether aggfinalfn modifies transition state */ - char aggfinalmodify BKI_DEFAULT(r); - - /* tells whether aggmfinalfn modifies transition state */ - char aggmfinalmodify BKI_DEFAULT(r); - - /* associated sort operator (0 if none) */ - Oid aggsortop BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_operator); - - /* type of aggregate's transition (state) data */ - Oid aggtranstype BKI_LOOKUP(pg_type); - - /* estimated size of state data (0 for default estimate) */ - int32 aggtransspace BKI_DEFAULT(0); - - /* type of moving-aggregate state data (0 if none) */ - Oid aggmtranstype BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_type); - - /* estimated size of moving-agg state (0 for default est) */ - int32 aggmtransspace BKI_DEFAULT(0); - -#ifdef CATALOG_VARLEN /* variable-length fields start here */ - - /* initial value for transition state (can be NULL) */ - text agginitval BKI_DEFAULT(_null_); - - /* initial value for moving-agg state (can be NULL) */ - text aggminitval BKI_DEFAULT(_null_); -#endif -} FormData_pg_aggregate; - -/* ---------------- - * Form_pg_aggregate corresponds to a pointer to a tuple with - * the format of pg_aggregate relation. - * ---------------- - */ -typedef FormData_pg_aggregate *Form_pg_aggregate; - -DECLARE_TOAST(pg_aggregate, 4159, 4160); - -DECLARE_UNIQUE_INDEX_PKEY(pg_aggregate_fnoid_index, 2650, AggregateFnoidIndexId, on pg_aggregate using btree(aggfnoid oid_ops)); - -#ifdef EXPOSE_TO_CLIENT_CODE - -/* - * Symbolic values for aggkind column. We distinguish normal aggregates - * from ordered-set aggregates (which have two sets of arguments, namely - * direct and aggregated arguments) and from hypothetical-set aggregates - * (which are a subclass of ordered-set aggregates in which the last - * direct arguments have to match up in number and datatypes with the - * aggregated arguments). - */ -#define AGGKIND_NORMAL 'n' -#define AGGKIND_ORDERED_SET 'o' -#define AGGKIND_HYPOTHETICAL 'h' - -/* Use this macro to test for "ordered-set agg including hypothetical case" */ -#define AGGKIND_IS_ORDERED_SET(kind) ((kind) != AGGKIND_NORMAL) - -/* - * Symbolic values for aggfinalmodify and aggmfinalmodify columns. - * Preferably, finalfns do not modify the transition state value at all, - * but in some cases that would cost too much performance. We distinguish - * "pure read only" and "trashes it arbitrarily" cases, as well as the - * intermediate case where multiple finalfn calls are allowed but the - * transfn cannot be applied anymore after the first finalfn call. - */ -#define AGGMODIFY_READ_ONLY 'r' -#define AGGMODIFY_SHAREABLE 's' -#define AGGMODIFY_READ_WRITE 'w' - -#endif /* EXPOSE_TO_CLIENT_CODE */ - - -extern ObjectAddress AggregateCreate(const char *aggName, - Oid aggNamespace, - bool replace, - char aggKind, - int numArgs, - int numDirectArgs, - oidvector *parameterTypes, - Datum allParameterTypes, - Datum parameterModes, - Datum parameterNames, - List *parameterDefaults, - Oid variadicArgType, - List *aggtransfnName, - List *aggfinalfnName, - List *aggcombinefnName, - List *aggserialfnName, - List *aggdeserialfnName, - List *aggmtransfnName, - List *aggminvtransfnName, - List *aggmfinalfnName, - bool finalfnExtraArgs, - bool mfinalfnExtraArgs, - char finalfnModify, - char mfinalfnModify, - List *aggsortopName, - Oid aggTransType, - int32 aggTransSpace, - Oid aggmTransType, - int32 aggmTransSpace, - const char *agginitval, - const char *aggminitval, - char proparallel); - -#endif /* PG_AGGREGATE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_aggregate_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_aggregate_d.h deleted file mode 100644 index 1b82972a3..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_aggregate_d.h +++ /dev/null @@ -1,78 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_aggregate_d.h - * Macro definitions for pg_aggregate - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_AGGREGATE_D_H -#define PG_AGGREGATE_D_H - -#define AggregateRelationId 2600 -#define AggregateFnoidIndexId 2650 - -#define Anum_pg_aggregate_aggfnoid 1 -#define Anum_pg_aggregate_aggkind 2 -#define Anum_pg_aggregate_aggnumdirectargs 3 -#define Anum_pg_aggregate_aggtransfn 4 -#define Anum_pg_aggregate_aggfinalfn 5 -#define Anum_pg_aggregate_aggcombinefn 6 -#define Anum_pg_aggregate_aggserialfn 7 -#define Anum_pg_aggregate_aggdeserialfn 8 -#define Anum_pg_aggregate_aggmtransfn 9 -#define Anum_pg_aggregate_aggminvtransfn 10 -#define Anum_pg_aggregate_aggmfinalfn 11 -#define Anum_pg_aggregate_aggfinalextra 12 -#define Anum_pg_aggregate_aggmfinalextra 13 -#define Anum_pg_aggregate_aggfinalmodify 14 -#define Anum_pg_aggregate_aggmfinalmodify 15 -#define Anum_pg_aggregate_aggsortop 16 -#define Anum_pg_aggregate_aggtranstype 17 -#define Anum_pg_aggregate_aggtransspace 18 -#define Anum_pg_aggregate_aggmtranstype 19 -#define Anum_pg_aggregate_aggmtransspace 20 -#define Anum_pg_aggregate_agginitval 21 -#define Anum_pg_aggregate_aggminitval 22 - -#define Natts_pg_aggregate 22 - - -/* - * Symbolic values for aggkind column. We distinguish normal aggregates - * from ordered-set aggregates (which have two sets of arguments, namely - * direct and aggregated arguments) and from hypothetical-set aggregates - * (which are a subclass of ordered-set aggregates in which the last - * direct arguments have to match up in number and datatypes with the - * aggregated arguments). - */ -#define AGGKIND_NORMAL 'n' -#define AGGKIND_ORDERED_SET 'o' -#define AGGKIND_HYPOTHETICAL 'h' - -/* Use this macro to test for "ordered-set agg including hypothetical case" */ -#define AGGKIND_IS_ORDERED_SET(kind) ((kind) != AGGKIND_NORMAL) - -/* - * Symbolic values for aggfinalmodify and aggmfinalmodify columns. - * Preferably, finalfns do not modify the transition state value at all, - * but in some cases that would cost too much performance. We distinguish - * "pure read only" and "trashes it arbitrarily" cases, as well as the - * intermediate case where multiple finalfn calls are allowed but the - * transfn cannot be applied anymore after the first finalfn call. - */ -#define AGGMODIFY_READ_ONLY 'r' -#define AGGMODIFY_SHAREABLE 's' -#define AGGMODIFY_READ_WRITE 'w' - - -#endif /* PG_AGGREGATE_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_am.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_am.h deleted file mode 100644 index 50a68fe4c..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_am.h +++ /dev/null @@ -1,63 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_am.h - * definition of the "access method" system catalog (pg_am) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_am.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_AM_H -#define PG_AM_H - -#include "catalog/genbki.h" -#include "catalog/pg_am_d.h" - -/* ---------------- - * pg_am definition. cpp turns this into - * typedef struct FormData_pg_am - * ---------------- - */ -CATALOG(pg_am,2601,AccessMethodRelationId) -{ - Oid oid; /* oid */ - - /* access method name */ - NameData amname; - - /* handler function */ - regproc amhandler BKI_LOOKUP(pg_proc); - - /* see AMTYPE_xxx constants below */ - char amtype; -} FormData_pg_am; - -/* ---------------- - * Form_pg_am corresponds to a pointer to a tuple with - * the format of pg_am relation. - * ---------------- - */ -typedef FormData_pg_am *Form_pg_am; - -DECLARE_UNIQUE_INDEX(pg_am_name_index, 2651, AmNameIndexId, on pg_am using btree(amname name_ops)); -DECLARE_UNIQUE_INDEX_PKEY(pg_am_oid_index, 2652, AmOidIndexId, on pg_am using btree(oid oid_ops)); - -#ifdef EXPOSE_TO_CLIENT_CODE - -/* - * Allowed values for amtype - */ -#define AMTYPE_INDEX 'i' /* index access method */ -#define AMTYPE_TABLE 't' /* table access method */ - -#endif /* EXPOSE_TO_CLIENT_CODE */ - -#endif /* PG_AM_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_am_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_am_d.h deleted file mode 100644 index 0391b9c2d..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_am_d.h +++ /dev/null @@ -1,47 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_am_d.h - * Macro definitions for pg_am - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_AM_D_H -#define PG_AM_D_H - -#define AccessMethodRelationId 2601 -#define AmNameIndexId 2651 -#define AmOidIndexId 2652 - -#define Anum_pg_am_oid 1 -#define Anum_pg_am_amname 2 -#define Anum_pg_am_amhandler 3 -#define Anum_pg_am_amtype 4 - -#define Natts_pg_am 4 - - -/* - * Allowed values for amtype - */ -#define AMTYPE_INDEX 'i' /* index access method */ -#define AMTYPE_TABLE 't' /* table access method */ - -#define HEAP_TABLE_AM_OID 2 -#define BTREE_AM_OID 403 -#define HASH_AM_OID 405 -#define GIST_AM_OID 783 -#define GIN_AM_OID 2742 -#define SPGIST_AM_OID 4000 -#define BRIN_AM_OID 3580 - -#endif /* PG_AM_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_attribute.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_attribute.h deleted file mode 100644 index 053294c99..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_attribute.h +++ /dev/null @@ -1,221 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_attribute.h - * definition of the "attribute" system catalog (pg_attribute) - * - * The initial contents of pg_attribute are generated at compile time by - * genbki.pl, so there is no pg_attribute.dat file. Only "bootstrapped" - * relations need be included. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_attribute.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_ATTRIBUTE_H -#define PG_ATTRIBUTE_H - -#include "catalog/genbki.h" -#include "catalog/pg_attribute_d.h" - -/* ---------------- - * pg_attribute definition. cpp turns this into - * typedef struct FormData_pg_attribute - * - * If you change the following, make sure you change the structs for - * system attributes in catalog/heap.c also. - * You may need to change catalog/genbki.pl as well. - * ---------------- - */ -CATALOG(pg_attribute,1249,AttributeRelationId) BKI_BOOTSTRAP BKI_ROWTYPE_OID(75,AttributeRelation_Rowtype_Id) BKI_SCHEMA_MACRO -{ - Oid attrelid BKI_LOOKUP(pg_class); /* OID of relation containing - * this attribute */ - NameData attname; /* name of attribute */ - - /* - * atttypid is the OID of the instance in Catalog Class pg_type that - * defines the data type of this attribute (e.g. int4). Information in - * that instance is redundant with the attlen, attbyval, and attalign - * attributes of this instance, so they had better match or Postgres will - * fail. In an entry for a dropped column, this field is set to zero - * since the pg_type entry may no longer exist; but we rely on attlen, - * attbyval, and attalign to still tell us how large the values in the - * table are. - */ - Oid atttypid BKI_LOOKUP_OPT(pg_type); - - /* - * attstattarget is the target number of statistics datapoints to collect - * during VACUUM ANALYZE of this column. A zero here indicates that we do - * not wish to collect any stats about this column. A "-1" here indicates - * that no value has been explicitly set for this column, so ANALYZE - * should use the default setting. - */ - int32 attstattarget BKI_DEFAULT(-1); - - /* - * attlen is a copy of the typlen field from pg_type for this attribute. - * See atttypid comments above. - */ - int16 attlen; - - /* - * attnum is the "attribute number" for the attribute: A value that - * uniquely identifies this attribute within its class. For user - * attributes, Attribute numbers are greater than 0 and not greater than - * the number of attributes in the class. I.e. if the Class pg_class says - * that Class XYZ has 10 attributes, then the user attribute numbers in - * Class pg_attribute must be 1-10. - * - * System attributes have attribute numbers less than 0 that are unique - * within the class, but not constrained to any particular range. - * - * Note that (attnum - 1) is often used as the index to an array. - */ - int16 attnum; - - /* - * attndims is the declared number of dimensions, if an array type, - * otherwise zero. - */ - int32 attndims; - - /* - * fastgetattr() uses attcacheoff to cache byte offsets of attributes in - * heap tuples. The value actually stored in pg_attribute (-1) indicates - * no cached value. But when we copy these tuples into a tuple - * descriptor, we may then update attcacheoff in the copies. This speeds - * up the attribute walking process. - */ - int32 attcacheoff BKI_DEFAULT(-1); - - /* - * atttypmod records type-specific data supplied at table creation time - * (for example, the max length of a varchar field). It is passed to - * type-specific input and output functions as the third argument. The - * value will generally be -1 for types that do not need typmod. - */ - int32 atttypmod BKI_DEFAULT(-1); - - /* - * attbyval is a copy of the typbyval field from pg_type for this - * attribute. See atttypid comments above. - */ - bool attbyval; - - /* - * attalign is a copy of the typalign field from pg_type for this - * attribute. See atttypid comments above. - */ - char attalign; - - /*---------- - * attstorage tells for VARLENA attributes, what the heap access - * methods can do to it if a given tuple doesn't fit into a page. - * Possible values are as for pg_type.typstorage (see TYPSTORAGE macros). - *---------- - */ - char attstorage; - - /* - * attcompression sets the current compression method of the attribute. - * Typically this is InvalidCompressionMethod ('\0') to specify use of the - * current default setting (see default_toast_compression). Otherwise, - * 'p' selects pglz compression, while 'l' selects LZ4 compression. - * However, this field is ignored whenever attstorage does not allow - * compression. - */ - char attcompression BKI_DEFAULT('\0'); - - /* This flag represents the "NOT NULL" constraint */ - bool attnotnull; - - /* Has DEFAULT value or not */ - bool atthasdef BKI_DEFAULT(f); - - /* Has a missing value or not */ - bool atthasmissing BKI_DEFAULT(f); - - /* One of the ATTRIBUTE_IDENTITY_* constants below, or '\0' */ - char attidentity BKI_DEFAULT('\0'); - - /* One of the ATTRIBUTE_GENERATED_* constants below, or '\0' */ - char attgenerated BKI_DEFAULT('\0'); - - /* Is dropped (ie, logically invisible) or not */ - bool attisdropped BKI_DEFAULT(f); - - /* - * This flag specifies whether this column has ever had a local - * definition. It is set for normal non-inherited columns, but also for - * columns that are inherited from parents if also explicitly listed in - * CREATE TABLE INHERITS. It is also set when inheritance is removed from - * a table with ALTER TABLE NO INHERIT. If the flag is set, the column is - * not dropped by a parent's DROP COLUMN even if this causes the column's - * attinhcount to become zero. - */ - bool attislocal BKI_DEFAULT(t); - - /* Number of times inherited from direct parent relation(s) */ - int32 attinhcount BKI_DEFAULT(0); - - /* attribute's collation, if any */ - Oid attcollation BKI_LOOKUP_OPT(pg_collation); - -#ifdef CATALOG_VARLEN /* variable-length fields start here */ - /* NOTE: The following fields are not present in tuple descriptors. */ - - /* Column-level access permissions */ - aclitem attacl[1] BKI_DEFAULT(_null_); - - /* Column-level options */ - text attoptions[1] BKI_DEFAULT(_null_); - - /* Column-level FDW options */ - text attfdwoptions[1] BKI_DEFAULT(_null_); - - /* - * Missing value for added columns. This is a one element array which lets - * us store a value of the attribute type here. - */ - anyarray attmissingval BKI_DEFAULT(_null_); -#endif -} FormData_pg_attribute; - -/* - * ATTRIBUTE_FIXED_PART_SIZE is the size of the fixed-layout, - * guaranteed-not-null part of a pg_attribute row. This is in fact as much - * of the row as gets copied into tuple descriptors, so don't expect you - * can access the variable-length fields except in a real tuple! - */ -#define ATTRIBUTE_FIXED_PART_SIZE \ - (offsetof(FormData_pg_attribute,attcollation) + sizeof(Oid)) - -/* ---------------- - * Form_pg_attribute corresponds to a pointer to a tuple with - * the format of pg_attribute relation. - * ---------------- - */ -typedef FormData_pg_attribute *Form_pg_attribute; - -DECLARE_UNIQUE_INDEX(pg_attribute_relid_attnam_index, 2658, AttributeRelidNameIndexId, on pg_attribute using btree(attrelid oid_ops, attname name_ops)); -DECLARE_UNIQUE_INDEX_PKEY(pg_attribute_relid_attnum_index, 2659, AttributeRelidNumIndexId, on pg_attribute using btree(attrelid oid_ops, attnum int2_ops)); - -#ifdef EXPOSE_TO_CLIENT_CODE - -#define ATTRIBUTE_IDENTITY_ALWAYS 'a' -#define ATTRIBUTE_IDENTITY_BY_DEFAULT 'd' - -#define ATTRIBUTE_GENERATED_STORED 's' - -#endif /* EXPOSE_TO_CLIENT_CODE */ - -#endif /* PG_ATTRIBUTE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_attribute_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_attribute_d.h deleted file mode 100644 index 01656dd14..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_attribute_d.h +++ /dev/null @@ -1,62 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_attribute_d.h - * Macro definitions for pg_attribute - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_ATTRIBUTE_D_H -#define PG_ATTRIBUTE_D_H - -#define AttributeRelationId 1249 -#define AttributeRelation_Rowtype_Id 75 -#define AttributeRelidNameIndexId 2658 -#define AttributeRelidNumIndexId 2659 - -#define Anum_pg_attribute_attrelid 1 -#define Anum_pg_attribute_attname 2 -#define Anum_pg_attribute_atttypid 3 -#define Anum_pg_attribute_attstattarget 4 -#define Anum_pg_attribute_attlen 5 -#define Anum_pg_attribute_attnum 6 -#define Anum_pg_attribute_attndims 7 -#define Anum_pg_attribute_attcacheoff 8 -#define Anum_pg_attribute_atttypmod 9 -#define Anum_pg_attribute_attbyval 10 -#define Anum_pg_attribute_attalign 11 -#define Anum_pg_attribute_attstorage 12 -#define Anum_pg_attribute_attcompression 13 -#define Anum_pg_attribute_attnotnull 14 -#define Anum_pg_attribute_atthasdef 15 -#define Anum_pg_attribute_atthasmissing 16 -#define Anum_pg_attribute_attidentity 17 -#define Anum_pg_attribute_attgenerated 18 -#define Anum_pg_attribute_attisdropped 19 -#define Anum_pg_attribute_attislocal 20 -#define Anum_pg_attribute_attinhcount 21 -#define Anum_pg_attribute_attcollation 22 -#define Anum_pg_attribute_attacl 23 -#define Anum_pg_attribute_attoptions 24 -#define Anum_pg_attribute_attfdwoptions 25 -#define Anum_pg_attribute_attmissingval 26 - -#define Natts_pg_attribute 26 - - -#define ATTRIBUTE_IDENTITY_ALWAYS 'a' -#define ATTRIBUTE_IDENTITY_BY_DEFAULT 'd' - -#define ATTRIBUTE_GENERATED_STORED 's' - - -#endif /* PG_ATTRIBUTE_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_authid.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_authid.h deleted file mode 100644 index 3512601c8..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_authid.h +++ /dev/null @@ -1,63 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_authid.h - * definition of the "authorization identifier" system catalog (pg_authid) - * - * pg_shadow and pg_group are now publicly accessible views on pg_authid. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_authid.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_AUTHID_H -#define PG_AUTHID_H - -#include "catalog/genbki.h" -#include "catalog/pg_authid_d.h" - -/* ---------------- - * pg_authid definition. cpp turns this into - * typedef struct FormData_pg_authid - * ---------------- - */ -CATALOG(pg_authid,1260,AuthIdRelationId) BKI_SHARED_RELATION BKI_ROWTYPE_OID(2842,AuthIdRelation_Rowtype_Id) BKI_SCHEMA_MACRO -{ - Oid oid; /* oid */ - NameData rolname; /* name of role */ - bool rolsuper; /* read this field via superuser() only! */ - bool rolinherit; /* inherit privileges from other roles? */ - bool rolcreaterole; /* allowed to create more roles? */ - bool rolcreatedb; /* allowed to create databases? */ - bool rolcanlogin; /* allowed to log in as session user? */ - bool rolreplication; /* role used for streaming replication */ - bool rolbypassrls; /* bypasses row-level security? */ - int32 rolconnlimit; /* max connections allowed (-1=no limit) */ - - /* remaining fields may be null; use heap_getattr to read them! */ -#ifdef CATALOG_VARLEN /* variable-length fields start here */ - text rolpassword; /* password, if any */ - timestamptz rolvaliduntil; /* password expiration time, if any */ -#endif -} FormData_pg_authid; - -/* ---------------- - * Form_pg_authid corresponds to a pointer to a tuple with - * the format of pg_authid relation. - * ---------------- - */ -typedef FormData_pg_authid *Form_pg_authid; - -DECLARE_TOAST_WITH_MACRO(pg_authid, 4175, 4176, PgAuthidToastTable, PgAuthidToastIndex); - -DECLARE_UNIQUE_INDEX(pg_authid_rolname_index, 2676, AuthIdRolnameIndexId, on pg_authid using btree(rolname name_ops)); -DECLARE_UNIQUE_INDEX_PKEY(pg_authid_oid_index, 2677, AuthIdOidIndexId, on pg_authid using btree(oid oid_ops)); - -#endif /* PG_AUTHID_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_authid_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_authid_d.h deleted file mode 100644 index 19325e4cb..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_authid_d.h +++ /dev/null @@ -1,57 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_authid_d.h - * Macro definitions for pg_authid - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_AUTHID_D_H -#define PG_AUTHID_D_H - -#define AuthIdRelationId 1260 -#define AuthIdRelation_Rowtype_Id 2842 -#define PgAuthidToastTable 4175 -#define PgAuthidToastIndex 4176 -#define AuthIdRolnameIndexId 2676 -#define AuthIdOidIndexId 2677 - -#define Anum_pg_authid_oid 1 -#define Anum_pg_authid_rolname 2 -#define Anum_pg_authid_rolsuper 3 -#define Anum_pg_authid_rolinherit 4 -#define Anum_pg_authid_rolcreaterole 5 -#define Anum_pg_authid_rolcreatedb 6 -#define Anum_pg_authid_rolcanlogin 7 -#define Anum_pg_authid_rolreplication 8 -#define Anum_pg_authid_rolbypassrls 9 -#define Anum_pg_authid_rolconnlimit 10 -#define Anum_pg_authid_rolpassword 11 -#define Anum_pg_authid_rolvaliduntil 12 - -#define Natts_pg_authid 12 - -#define BOOTSTRAP_SUPERUSERID 10 -#define ROLE_PG_DATABASE_OWNER 6171 -#define ROLE_PG_READ_ALL_DATA 6181 -#define ROLE_PG_WRITE_ALL_DATA 6182 -#define ROLE_PG_MONITOR 3373 -#define ROLE_PG_READ_ALL_SETTINGS 3374 -#define ROLE_PG_READ_ALL_STATS 3375 -#define ROLE_PG_STAT_SCAN_TABLES 3377 -#define ROLE_PG_READ_SERVER_FILES 4569 -#define ROLE_PG_WRITE_SERVER_FILES 4570 -#define ROLE_PG_EXECUTE_SERVER_PROGRAM 4571 -#define ROLE_PG_SIGNAL_BACKEND 4200 -#define ROLE_PG_CHECKPOINT 4544 - -#endif /* PG_AUTHID_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_class.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_class.h deleted file mode 100644 index e1f4eefa2..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_class.h +++ /dev/null @@ -1,230 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_class.h - * definition of the "relation" system catalog (pg_class) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_class.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_CLASS_H -#define PG_CLASS_H - -#include "catalog/genbki.h" -#include "catalog/pg_class_d.h" - -/* ---------------- - * pg_class definition. cpp turns this into - * typedef struct FormData_pg_class - * - * Note that the BKI_DEFAULT values below are only used for rows describing - * BKI_BOOTSTRAP catalogs, since only those rows appear in pg_class.dat. - * ---------------- - */ -CATALOG(pg_class,1259,RelationRelationId) BKI_BOOTSTRAP BKI_ROWTYPE_OID(83,RelationRelation_Rowtype_Id) BKI_SCHEMA_MACRO -{ - /* oid */ - Oid oid; - - /* class name */ - NameData relname; - - /* OID of namespace containing this class */ - Oid relnamespace BKI_DEFAULT(pg_catalog) BKI_LOOKUP(pg_namespace); - - /* OID of entry in pg_type for relation's implicit row type, if any */ - Oid reltype BKI_LOOKUP_OPT(pg_type); - - /* OID of entry in pg_type for underlying composite type, if any */ - Oid reloftype BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_type); - - /* class owner */ - Oid relowner BKI_DEFAULT(POSTGRES) BKI_LOOKUP(pg_authid); - - /* access method; 0 if not a table / index */ - Oid relam BKI_DEFAULT(heap) BKI_LOOKUP_OPT(pg_am); - - /* identifier of physical storage file */ - /* relfilenode == 0 means it is a "mapped" relation, see relmapper.c */ - Oid relfilenode BKI_DEFAULT(0); - - /* identifier of table space for relation (0 means default for database) */ - Oid reltablespace BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_tablespace); - - /* # of blocks (not always up-to-date) */ - int32 relpages BKI_DEFAULT(0); - - /* # of tuples (not always up-to-date; -1 means "unknown") */ - float4 reltuples BKI_DEFAULT(-1); - - /* # of all-visible blocks (not always up-to-date) */ - int32 relallvisible BKI_DEFAULT(0); - - /* OID of toast table; 0 if none */ - Oid reltoastrelid BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_class); - - /* T if has (or has had) any indexes */ - bool relhasindex BKI_DEFAULT(f); - - /* T if shared across databases */ - bool relisshared BKI_DEFAULT(f); - - /* see RELPERSISTENCE_xxx constants below */ - char relpersistence BKI_DEFAULT(p); - - /* see RELKIND_xxx constants below */ - char relkind BKI_DEFAULT(r); - - /* number of user attributes */ - int16 relnatts BKI_DEFAULT(0); /* genbki.pl will fill this in */ - - /* - * Class pg_attribute must contain exactly "relnatts" user attributes - * (with attnums ranging from 1 to relnatts) for this class. It may also - * contain entries with negative attnums for system attributes. - */ - - /* # of CHECK constraints for class */ - int16 relchecks BKI_DEFAULT(0); - - /* has (or has had) any rules */ - bool relhasrules BKI_DEFAULT(f); - - /* has (or has had) any TRIGGERs */ - bool relhastriggers BKI_DEFAULT(f); - - /* has (or has had) child tables or indexes */ - bool relhassubclass BKI_DEFAULT(f); - - /* row security is enabled or not */ - bool relrowsecurity BKI_DEFAULT(f); - - /* row security forced for owners or not */ - bool relforcerowsecurity BKI_DEFAULT(f); - - /* matview currently holds query results */ - bool relispopulated BKI_DEFAULT(t); - - /* see REPLICA_IDENTITY_xxx constants */ - char relreplident BKI_DEFAULT(n); - - /* is relation a partition? */ - bool relispartition BKI_DEFAULT(f); - - /* link to original rel during table rewrite; otherwise 0 */ - Oid relrewrite BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_class); - - /* all Xids < this are frozen in this rel */ - TransactionId relfrozenxid BKI_DEFAULT(3); /* FirstNormalTransactionId */ - - /* all multixacts in this rel are >= this; it is really a MultiXactId */ - TransactionId relminmxid BKI_DEFAULT(1); /* FirstMultiXactId */ - -#ifdef CATALOG_VARLEN /* variable-length fields start here */ - /* NOTE: These fields are not present in a relcache entry's rd_rel field. */ - /* access permissions */ - aclitem relacl[1] BKI_DEFAULT(_null_); - - /* access-method-specific options */ - text reloptions[1] BKI_DEFAULT(_null_); - - /* partition bound node tree */ - pg_node_tree relpartbound BKI_DEFAULT(_null_); -#endif -} FormData_pg_class; - -/* Size of fixed part of pg_class tuples, not counting var-length fields */ -#define CLASS_TUPLE_SIZE \ - (offsetof(FormData_pg_class,relminmxid) + sizeof(TransactionId)) - -/* ---------------- - * Form_pg_class corresponds to a pointer to a tuple with - * the format of pg_class relation. - * ---------------- - */ -typedef FormData_pg_class *Form_pg_class; - -DECLARE_UNIQUE_INDEX_PKEY(pg_class_oid_index, 2662, ClassOidIndexId, on pg_class using btree(oid oid_ops)); -DECLARE_UNIQUE_INDEX(pg_class_relname_nsp_index, 2663, ClassNameNspIndexId, on pg_class using btree(relname name_ops, relnamespace oid_ops)); -DECLARE_INDEX(pg_class_tblspc_relfilenode_index, 3455, ClassTblspcRelfilenodeIndexId, on pg_class using btree(reltablespace oid_ops, relfilenode oid_ops)); - -#ifdef EXPOSE_TO_CLIENT_CODE - -#define RELKIND_RELATION 'r' /* ordinary table */ -#define RELKIND_INDEX 'i' /* secondary index */ -#define RELKIND_SEQUENCE 'S' /* sequence object */ -#define RELKIND_TOASTVALUE 't' /* for out-of-line values */ -#define RELKIND_VIEW 'v' /* view */ -#define RELKIND_MATVIEW 'm' /* materialized view */ -#define RELKIND_COMPOSITE_TYPE 'c' /* composite type */ -#define RELKIND_FOREIGN_TABLE 'f' /* foreign table */ -#define RELKIND_PARTITIONED_TABLE 'p' /* partitioned table */ -#define RELKIND_PARTITIONED_INDEX 'I' /* partitioned index */ - -#define RELPERSISTENCE_PERMANENT 'p' /* regular table */ -#define RELPERSISTENCE_UNLOGGED 'u' /* unlogged permanent table */ -#define RELPERSISTENCE_TEMP 't' /* temporary table */ - -/* default selection for replica identity (primary key or nothing) */ -#define REPLICA_IDENTITY_DEFAULT 'd' -/* no replica identity is logged for this relation */ -#define REPLICA_IDENTITY_NOTHING 'n' -/* all columns are logged as replica identity */ -#define REPLICA_IDENTITY_FULL 'f' -/* - * an explicitly chosen candidate key's columns are used as replica identity. - * Note this will still be set if the index has been dropped; in that case it - * has the same meaning as 'n'. - */ -#define REPLICA_IDENTITY_INDEX 'i' - -/* - * Relation kinds that have physical storage. These relations normally have - * relfilenode set to non-zero, but it can also be zero if the relation is - * mapped. - */ -#define RELKIND_HAS_STORAGE(relkind) \ - ((relkind) == RELKIND_RELATION || \ - (relkind) == RELKIND_INDEX || \ - (relkind) == RELKIND_SEQUENCE || \ - (relkind) == RELKIND_TOASTVALUE || \ - (relkind) == RELKIND_MATVIEW) - -#define RELKIND_HAS_PARTITIONS(relkind) \ - ((relkind) == RELKIND_PARTITIONED_TABLE || \ - (relkind) == RELKIND_PARTITIONED_INDEX) - -/* - * Relation kinds that support tablespaces: All relation kinds with storage - * support tablespaces, except that we don't support moving sequences around - * into different tablespaces. Partitioned tables and indexes don't have - * physical storage, but they have a tablespace settings so that their - * children can inherit it. - */ -#define RELKIND_HAS_TABLESPACE(relkind) \ - ((RELKIND_HAS_STORAGE(relkind) || RELKIND_HAS_PARTITIONS(relkind)) \ - && (relkind) != RELKIND_SEQUENCE) - -/* - * Relation kinds with a table access method (rd_tableam). Although sequences - * use the heap table AM, they are enough of a special case in most uses that - * they are not included here. - */ -#define RELKIND_HAS_TABLE_AM(relkind) \ - ((relkind) == RELKIND_RELATION || \ - (relkind) == RELKIND_TOASTVALUE || \ - (relkind) == RELKIND_MATVIEW) - -extern int errdetail_relkind_not_supported(char relkind); - -#endif /* EXPOSE_TO_CLIENT_CODE */ - -#endif /* PG_CLASS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_class_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_class_d.h deleted file mode 100644 index e4cb9940e..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_class_d.h +++ /dev/null @@ -1,132 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_class_d.h - * Macro definitions for pg_class - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_CLASS_D_H -#define PG_CLASS_D_H - -#define RelationRelationId 1259 -#define RelationRelation_Rowtype_Id 83 -#define ClassOidIndexId 2662 -#define ClassNameNspIndexId 2663 -#define ClassTblspcRelfilenodeIndexId 3455 - -#define Anum_pg_class_oid 1 -#define Anum_pg_class_relname 2 -#define Anum_pg_class_relnamespace 3 -#define Anum_pg_class_reltype 4 -#define Anum_pg_class_reloftype 5 -#define Anum_pg_class_relowner 6 -#define Anum_pg_class_relam 7 -#define Anum_pg_class_relfilenode 8 -#define Anum_pg_class_reltablespace 9 -#define Anum_pg_class_relpages 10 -#define Anum_pg_class_reltuples 11 -#define Anum_pg_class_relallvisible 12 -#define Anum_pg_class_reltoastrelid 13 -#define Anum_pg_class_relhasindex 14 -#define Anum_pg_class_relisshared 15 -#define Anum_pg_class_relpersistence 16 -#define Anum_pg_class_relkind 17 -#define Anum_pg_class_relnatts 18 -#define Anum_pg_class_relchecks 19 -#define Anum_pg_class_relhasrules 20 -#define Anum_pg_class_relhastriggers 21 -#define Anum_pg_class_relhassubclass 22 -#define Anum_pg_class_relrowsecurity 23 -#define Anum_pg_class_relforcerowsecurity 24 -#define Anum_pg_class_relispopulated 25 -#define Anum_pg_class_relreplident 26 -#define Anum_pg_class_relispartition 27 -#define Anum_pg_class_relrewrite 28 -#define Anum_pg_class_relfrozenxid 29 -#define Anum_pg_class_relminmxid 30 -#define Anum_pg_class_relacl 31 -#define Anum_pg_class_reloptions 32 -#define Anum_pg_class_relpartbound 33 - -#define Natts_pg_class 33 - - -#define RELKIND_RELATION 'r' /* ordinary table */ -#define RELKIND_INDEX 'i' /* secondary index */ -#define RELKIND_SEQUENCE 'S' /* sequence object */ -#define RELKIND_TOASTVALUE 't' /* for out-of-line values */ -#define RELKIND_VIEW 'v' /* view */ -#define RELKIND_MATVIEW 'm' /* materialized view */ -#define RELKIND_COMPOSITE_TYPE 'c' /* composite type */ -#define RELKIND_FOREIGN_TABLE 'f' /* foreign table */ -#define RELKIND_PARTITIONED_TABLE 'p' /* partitioned table */ -#define RELKIND_PARTITIONED_INDEX 'I' /* partitioned index */ - -#define RELPERSISTENCE_PERMANENT 'p' /* regular table */ -#define RELPERSISTENCE_UNLOGGED 'u' /* unlogged permanent table */ -#define RELPERSISTENCE_TEMP 't' /* temporary table */ - -/* default selection for replica identity (primary key or nothing) */ -#define REPLICA_IDENTITY_DEFAULT 'd' -/* no replica identity is logged for this relation */ -#define REPLICA_IDENTITY_NOTHING 'n' -/* all columns are logged as replica identity */ -#define REPLICA_IDENTITY_FULL 'f' -/* - * an explicitly chosen candidate key's columns are used as replica identity. - * Note this will still be set if the index has been dropped; in that case it - * has the same meaning as 'n'. - */ -#define REPLICA_IDENTITY_INDEX 'i' - -/* - * Relation kinds that have physical storage. These relations normally have - * relfilenode set to non-zero, but it can also be zero if the relation is - * mapped. - */ -#define RELKIND_HAS_STORAGE(relkind) \ - ((relkind) == RELKIND_RELATION || \ - (relkind) == RELKIND_INDEX || \ - (relkind) == RELKIND_SEQUENCE || \ - (relkind) == RELKIND_TOASTVALUE || \ - (relkind) == RELKIND_MATVIEW) - -#define RELKIND_HAS_PARTITIONS(relkind) \ - ((relkind) == RELKIND_PARTITIONED_TABLE || \ - (relkind) == RELKIND_PARTITIONED_INDEX) - -/* - * Relation kinds that support tablespaces: All relation kinds with storage - * support tablespaces, except that we don't support moving sequences around - * into different tablespaces. Partitioned tables and indexes don't have - * physical storage, but they have a tablespace settings so that their - * children can inherit it. - */ -#define RELKIND_HAS_TABLESPACE(relkind) \ - ((RELKIND_HAS_STORAGE(relkind) || RELKIND_HAS_PARTITIONS(relkind)) \ - && (relkind) != RELKIND_SEQUENCE) - -/* - * Relation kinds with a table access method (rd_tableam). Although sequences - * use the heap table AM, they are enough of a special case in most uses that - * they are not included here. - */ -#define RELKIND_HAS_TABLE_AM(relkind) \ - ((relkind) == RELKIND_RELATION || \ - (relkind) == RELKIND_TOASTVALUE || \ - (relkind) == RELKIND_MATVIEW) - -extern int errdetail_relkind_not_supported(char relkind); - - -#endif /* PG_CLASS_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_collation.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_collation.h deleted file mode 100644 index 2190ccb5b..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_collation.h +++ /dev/null @@ -1,98 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_collation.h - * definition of the "collation" system catalog (pg_collation) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_collation.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_COLLATION_H -#define PG_COLLATION_H - -#include "catalog/genbki.h" -#include "catalog/pg_collation_d.h" - -/* ---------------- - * pg_collation definition. cpp turns this into - * typedef struct FormData_pg_collation - * ---------------- - */ -CATALOG(pg_collation,3456,CollationRelationId) -{ - Oid oid; /* oid */ - NameData collname; /* collation name */ - - /* OID of namespace containing this collation */ - Oid collnamespace BKI_DEFAULT(pg_catalog) BKI_LOOKUP(pg_namespace); - - /* owner of collation */ - Oid collowner BKI_DEFAULT(POSTGRES) BKI_LOOKUP(pg_authid); - char collprovider; /* see constants below */ - bool collisdeterministic BKI_DEFAULT(t); - int32 collencoding; /* encoding for this collation; -1 = "all" */ -#ifdef CATALOG_VARLEN /* variable-length fields start here */ - text collcollate BKI_DEFAULT(_null_); /* LC_COLLATE setting */ - text collctype BKI_DEFAULT(_null_); /* LC_CTYPE setting */ - text colliculocale BKI_DEFAULT(_null_); /* ICU locale ID */ - text collversion BKI_DEFAULT(_null_); /* provider-dependent - * version of collation - * data */ -#endif -} FormData_pg_collation; - -/* ---------------- - * Form_pg_collation corresponds to a pointer to a row with - * the format of pg_collation relation. - * ---------------- - */ -typedef FormData_pg_collation *Form_pg_collation; - -DECLARE_TOAST(pg_collation, 6175, 6176); - -DECLARE_UNIQUE_INDEX(pg_collation_name_enc_nsp_index, 3164, CollationNameEncNspIndexId, on pg_collation using btree(collname name_ops, collencoding int4_ops, collnamespace oid_ops)); -DECLARE_UNIQUE_INDEX_PKEY(pg_collation_oid_index, 3085, CollationOidIndexId, on pg_collation using btree(oid oid_ops)); - -#ifdef EXPOSE_TO_CLIENT_CODE - -#define COLLPROVIDER_DEFAULT 'd' -#define COLLPROVIDER_ICU 'i' -#define COLLPROVIDER_LIBC 'c' - -static inline const char * -collprovider_name(char c) -{ - switch (c) - { - case COLLPROVIDER_ICU: - return "icu"; - case COLLPROVIDER_LIBC: - return "libc"; - default: - return "???"; - } -} - -#endif /* EXPOSE_TO_CLIENT_CODE */ - - -extern Oid CollationCreate(const char *collname, Oid collnamespace, - Oid collowner, - char collprovider, - bool collisdeterministic, - int32 collencoding, - const char *collcollate, const char *collctype, - const char *colliculocale, - const char *collversion, - bool if_not_exists, - bool quiet); - -#endif /* PG_COLLATION_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_collation_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_collation_d.h deleted file mode 100644 index c257e3271..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_collation_d.h +++ /dev/null @@ -1,62 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_collation_d.h - * Macro definitions for pg_collation - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_COLLATION_D_H -#define PG_COLLATION_D_H - -#define CollationRelationId 3456 -#define CollationNameEncNspIndexId 3164 -#define CollationOidIndexId 3085 - -#define Anum_pg_collation_oid 1 -#define Anum_pg_collation_collname 2 -#define Anum_pg_collation_collnamespace 3 -#define Anum_pg_collation_collowner 4 -#define Anum_pg_collation_collprovider 5 -#define Anum_pg_collation_collisdeterministic 6 -#define Anum_pg_collation_collencoding 7 -#define Anum_pg_collation_collcollate 8 -#define Anum_pg_collation_collctype 9 -#define Anum_pg_collation_colliculocale 10 -#define Anum_pg_collation_collversion 11 - -#define Natts_pg_collation 11 - - -#define COLLPROVIDER_DEFAULT 'd' -#define COLLPROVIDER_ICU 'i' -#define COLLPROVIDER_LIBC 'c' - -static inline const char * -collprovider_name(char c) -{ - switch (c) - { - case COLLPROVIDER_ICU: - return "icu"; - case COLLPROVIDER_LIBC: - return "libc"; - default: - return "???"; - } -} - -#define DEFAULT_COLLATION_OID 100 -#define C_COLLATION_OID 950 -#define POSIX_COLLATION_OID 951 - -#endif /* PG_COLLATION_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_constraint.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_constraint.h deleted file mode 100644 index e7d967f13..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_constraint.h +++ /dev/null @@ -1,273 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_constraint.h - * definition of the "constraint" system catalog (pg_constraint) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_constraint.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_CONSTRAINT_H -#define PG_CONSTRAINT_H - -#include "catalog/dependency.h" -#include "catalog/genbki.h" -#include "catalog/pg_constraint_d.h" -#include "nodes/pg_list.h" - -/* ---------------- - * pg_constraint definition. cpp turns this into - * typedef struct FormData_pg_constraint - * ---------------- - */ -CATALOG(pg_constraint,2606,ConstraintRelationId) -{ - Oid oid; /* oid */ - - /* - * conname + connamespace is deliberately not unique; we allow, for - * example, the same name to be used for constraints of different - * relations. This is partly for backwards compatibility with past - * Postgres practice, and partly because we don't want to have to obtain a - * global lock to generate a globally unique name for a nameless - * constraint. We associate a namespace with constraint names only for - * SQL-spec compatibility. - * - * However, we do require conname to be unique among the constraints of a - * single relation or domain. This is enforced by a unique index on - * conrelid + contypid + conname. - */ - NameData conname; /* name of this constraint */ - Oid connamespace BKI_LOOKUP(pg_namespace); /* OID of namespace - * containing constraint */ - char contype; /* constraint type; see codes below */ - bool condeferrable; /* deferrable constraint? */ - bool condeferred; /* deferred by default? */ - bool convalidated; /* constraint has been validated? */ - - /* - * conrelid and conkey are only meaningful if the constraint applies to a - * specific relation (this excludes domain constraints and assertions). - * Otherwise conrelid is 0 and conkey is NULL. - */ - Oid conrelid BKI_LOOKUP_OPT(pg_class); /* relation this - * constraint constrains */ - - /* - * contypid links to the pg_type row for a domain if this is a domain - * constraint. Otherwise it's 0. - * - * For SQL-style global ASSERTIONs, both conrelid and contypid would be - * zero. This is not presently supported, however. - */ - Oid contypid BKI_LOOKUP_OPT(pg_type); /* domain this constraint - * constrains */ - - /* - * conindid links to the index supporting the constraint, if any; - * otherwise it's 0. This is used for unique, primary-key, and exclusion - * constraints, and less obviously for foreign-key constraints (where the - * index is a unique index on the referenced relation's referenced - * columns). Notice that the index is on conrelid in the first case but - * confrelid in the second. - */ - Oid conindid BKI_LOOKUP_OPT(pg_class); /* index supporting this - * constraint */ - - /* - * If this constraint is on a partition inherited from a partitioned - * table, this is the OID of the corresponding constraint in the parent. - */ - Oid conparentid BKI_LOOKUP_OPT(pg_constraint); - - /* - * These fields, plus confkey, are only meaningful for a foreign-key - * constraint. Otherwise confrelid is 0 and the char fields are spaces. - */ - Oid confrelid BKI_LOOKUP_OPT(pg_class); /* relation referenced by - * foreign key */ - char confupdtype; /* foreign key's ON UPDATE action */ - char confdeltype; /* foreign key's ON DELETE action */ - char confmatchtype; /* foreign key's match type */ - - /* Has a local definition (hence, do not drop when coninhcount is 0) */ - bool conislocal; - - /* Number of times inherited from direct parent relation(s) */ - int32 coninhcount; - - /* Has a local definition and cannot be inherited */ - bool connoinherit; - -#ifdef CATALOG_VARLEN /* variable-length fields start here */ - - /* - * Columns of conrelid that the constraint applies to, if known (this is - * NULL for trigger constraints) - */ - int16 conkey[1]; - - /* - * If a foreign key, the referenced columns of confrelid - */ - int16 confkey[1]; - - /* - * If a foreign key, the OIDs of the PK = FK equality operators for each - * column of the constraint - */ - Oid conpfeqop[1] BKI_LOOKUP(pg_operator); - - /* - * If a foreign key, the OIDs of the PK = PK equality operators for each - * column of the constraint (i.e., equality for the referenced columns) - */ - Oid conppeqop[1] BKI_LOOKUP(pg_operator); - - /* - * If a foreign key, the OIDs of the FK = FK equality operators for each - * column of the constraint (i.e., equality for the referencing columns) - */ - Oid conffeqop[1] BKI_LOOKUP(pg_operator); - - /* - * If a foreign key with an ON DELETE SET NULL/DEFAULT action, the subset - * of conkey to updated. If null, all columns are updated. - */ - int16 confdelsetcols[1]; - - /* - * If an exclusion constraint, the OIDs of the exclusion operators for - * each column of the constraint - */ - Oid conexclop[1] BKI_LOOKUP(pg_operator); - - /* - * If a check constraint, nodeToString representation of expression - */ - pg_node_tree conbin; -#endif -} FormData_pg_constraint; - -/* ---------------- - * Form_pg_constraint corresponds to a pointer to a tuple with - * the format of pg_constraint relation. - * ---------------- - */ -typedef FormData_pg_constraint *Form_pg_constraint; - -DECLARE_TOAST(pg_constraint, 2832, 2833); - -DECLARE_INDEX(pg_constraint_conname_nsp_index, 2664, ConstraintNameNspIndexId, on pg_constraint using btree(conname name_ops, connamespace oid_ops)); -DECLARE_UNIQUE_INDEX(pg_constraint_conrelid_contypid_conname_index, 2665, ConstraintRelidTypidNameIndexId, on pg_constraint using btree(conrelid oid_ops, contypid oid_ops, conname name_ops)); -DECLARE_INDEX(pg_constraint_contypid_index, 2666, ConstraintTypidIndexId, on pg_constraint using btree(contypid oid_ops)); -DECLARE_UNIQUE_INDEX_PKEY(pg_constraint_oid_index, 2667, ConstraintOidIndexId, on pg_constraint using btree(oid oid_ops)); -DECLARE_INDEX(pg_constraint_conparentid_index, 2579, ConstraintParentIndexId, on pg_constraint using btree(conparentid oid_ops)); - -/* conkey can contain zero (InvalidAttrNumber) if a whole-row Var is used */ -DECLARE_ARRAY_FOREIGN_KEY_OPT((conrelid, conkey), pg_attribute, (attrelid, attnum)); -DECLARE_ARRAY_FOREIGN_KEY((confrelid, confkey), pg_attribute, (attrelid, attnum)); - -#ifdef EXPOSE_TO_CLIENT_CODE - -/* Valid values for contype */ -#define CONSTRAINT_CHECK 'c' -#define CONSTRAINT_FOREIGN 'f' -#define CONSTRAINT_PRIMARY 'p' -#define CONSTRAINT_UNIQUE 'u' -#define CONSTRAINT_TRIGGER 't' -#define CONSTRAINT_EXCLUSION 'x' - -/* - * Valid values for confupdtype and confdeltype are the FKCONSTR_ACTION_xxx - * constants defined in parsenodes.h. Valid values for confmatchtype are - * the FKCONSTR_MATCH_xxx constants defined in parsenodes.h. - */ - -#endif /* EXPOSE_TO_CLIENT_CODE */ - -/* - * Identify constraint type for lookup purposes - */ -typedef enum ConstraintCategory -{ - CONSTRAINT_RELATION, - CONSTRAINT_DOMAIN, - CONSTRAINT_ASSERTION /* for future expansion */ -} ConstraintCategory; - - -extern Oid CreateConstraintEntry(const char *constraintName, - Oid constraintNamespace, - char constraintType, - bool isDeferrable, - bool isDeferred, - bool isValidated, - Oid parentConstrId, - Oid relId, - const int16 *constraintKey, - int constraintNKeys, - int constraintNTotalKeys, - Oid domainId, - Oid indexRelId, - Oid foreignRelId, - const int16 *foreignKey, - const Oid *pfEqOp, - const Oid *ppEqOp, - const Oid *ffEqOp, - int foreignNKeys, - char foreignUpdateType, - char foreignDeleteType, - const int16 *fkDeleteSetCols, - int numFkDeleteSetCols, - char foreignMatchType, - const Oid *exclOp, - Node *conExpr, - const char *conBin, - bool conIsLocal, - int conInhCount, - bool conNoInherit, - bool is_internal); - -extern void RemoveConstraintById(Oid conId); -extern void RenameConstraintById(Oid conId, const char *newname); - -extern bool ConstraintNameIsUsed(ConstraintCategory conCat, Oid objId, - const char *conname); -extern bool ConstraintNameExists(const char *conname, Oid namespaceid); -extern char *ChooseConstraintName(const char *name1, const char *name2, - const char *label, Oid namespaceid, - List *others); - -extern void AlterConstraintNamespaces(Oid ownerId, Oid oldNspId, - Oid newNspId, bool isType, ObjectAddresses *objsMoved); -extern void ConstraintSetParentConstraint(Oid childConstrId, - Oid parentConstrId, - Oid childTableId); -extern Oid get_relation_constraint_oid(Oid relid, const char *conname, bool missing_ok); -extern Bitmapset *get_relation_constraint_attnos(Oid relid, const char *conname, - bool missing_ok, Oid *constraintOid); -extern Oid get_domain_constraint_oid(Oid typid, const char *conname, bool missing_ok); -extern Oid get_relation_idx_constraint_oid(Oid relationId, Oid indexId); - -extern Bitmapset *get_primary_key_attnos(Oid relid, bool deferrableOk, - Oid *constraintOid); -extern void DeconstructFkConstraintRow(HeapTuple tuple, int *numfks, - AttrNumber *conkey, AttrNumber *confkey, - Oid *pf_eq_oprs, Oid *pp_eq_oprs, Oid *ff_eq_oprs, - int *num_fk_del_set_cols, AttrNumber *fk_del_set_cols); - -extern bool check_functional_grouping(Oid relid, - Index varno, Index varlevelsup, - List *grouping_columns, - List **constraintDeps); - -#endif /* PG_CONSTRAINT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_constraint_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_constraint_d.h deleted file mode 100644 index 307c33150..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_constraint_d.h +++ /dev/null @@ -1,73 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_constraint_d.h - * Macro definitions for pg_constraint - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_CONSTRAINT_D_H -#define PG_CONSTRAINT_D_H - -#define ConstraintRelationId 2606 -#define ConstraintNameNspIndexId 2664 -#define ConstraintRelidTypidNameIndexId 2665 -#define ConstraintTypidIndexId 2666 -#define ConstraintOidIndexId 2667 -#define ConstraintParentIndexId 2579 - -#define Anum_pg_constraint_oid 1 -#define Anum_pg_constraint_conname 2 -#define Anum_pg_constraint_connamespace 3 -#define Anum_pg_constraint_contype 4 -#define Anum_pg_constraint_condeferrable 5 -#define Anum_pg_constraint_condeferred 6 -#define Anum_pg_constraint_convalidated 7 -#define Anum_pg_constraint_conrelid 8 -#define Anum_pg_constraint_contypid 9 -#define Anum_pg_constraint_conindid 10 -#define Anum_pg_constraint_conparentid 11 -#define Anum_pg_constraint_confrelid 12 -#define Anum_pg_constraint_confupdtype 13 -#define Anum_pg_constraint_confdeltype 14 -#define Anum_pg_constraint_confmatchtype 15 -#define Anum_pg_constraint_conislocal 16 -#define Anum_pg_constraint_coninhcount 17 -#define Anum_pg_constraint_connoinherit 18 -#define Anum_pg_constraint_conkey 19 -#define Anum_pg_constraint_confkey 20 -#define Anum_pg_constraint_conpfeqop 21 -#define Anum_pg_constraint_conppeqop 22 -#define Anum_pg_constraint_conffeqop 23 -#define Anum_pg_constraint_confdelsetcols 24 -#define Anum_pg_constraint_conexclop 25 -#define Anum_pg_constraint_conbin 26 - -#define Natts_pg_constraint 26 - - -/* Valid values for contype */ -#define CONSTRAINT_CHECK 'c' -#define CONSTRAINT_FOREIGN 'f' -#define CONSTRAINT_PRIMARY 'p' -#define CONSTRAINT_UNIQUE 'u' -#define CONSTRAINT_TRIGGER 't' -#define CONSTRAINT_EXCLUSION 'x' - -/* - * Valid values for confupdtype and confdeltype are the FKCONSTR_ACTION_xxx - * constants defined in parsenodes.h. Valid values for confmatchtype are - * the FKCONSTR_MATCH_xxx constants defined in parsenodes.h. - */ - - -#endif /* PG_CONSTRAINT_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_control.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_control.h deleted file mode 100644 index 06368e236..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_control.h +++ /dev/null @@ -1,250 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_control.h - * The system control file "pg_control" is not a heap relation. - * However, we define it here so that the format is documented. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_control.h - * - *------------------------------------------------------------------------- - */ -#ifndef PG_CONTROL_H -#define PG_CONTROL_H - -#include "access/transam.h" -#include "access/xlogdefs.h" -#include "pgtime.h" /* for pg_time_t */ -#include "port/pg_crc32c.h" - - -/* Version identifier for this pg_control format */ -#define PG_CONTROL_VERSION 1300 - -/* Nonce key length, see below */ -#define MOCK_AUTH_NONCE_LEN 32 - -/* - * Body of CheckPoint XLOG records. This is declared here because we keep - * a copy of the latest one in pg_control for possible disaster recovery. - * Changing this struct requires a PG_CONTROL_VERSION bump. - */ -typedef struct CheckPoint -{ - XLogRecPtr redo; /* next RecPtr available when we began to - * create CheckPoint (i.e. REDO start point) */ - TimeLineID ThisTimeLineID; /* current TLI */ - TimeLineID PrevTimeLineID; /* previous TLI, if this record begins a new - * timeline (equals ThisTimeLineID otherwise) */ - bool fullPageWrites; /* current full_page_writes */ - FullTransactionId nextXid; /* next free transaction ID */ - Oid nextOid; /* next free OID */ - MultiXactId nextMulti; /* next free MultiXactId */ - MultiXactOffset nextMultiOffset; /* next free MultiXact offset */ - TransactionId oldestXid; /* cluster-wide minimum datfrozenxid */ - Oid oldestXidDB; /* database with minimum datfrozenxid */ - MultiXactId oldestMulti; /* cluster-wide minimum datminmxid */ - Oid oldestMultiDB; /* database with minimum datminmxid */ - pg_time_t time; /* time stamp of checkpoint */ - TransactionId oldestCommitTsXid; /* oldest Xid with valid commit - * timestamp */ - TransactionId newestCommitTsXid; /* newest Xid with valid commit - * timestamp */ - - /* - * Oldest XID still running. This is only needed to initialize hot standby - * mode from an online checkpoint, so we only bother calculating this for - * online checkpoints and only when wal_level is replica. Otherwise it's - * set to InvalidTransactionId. - */ - TransactionId oldestActiveXid; -} CheckPoint; - -/* XLOG info values for XLOG rmgr */ -#define XLOG_CHECKPOINT_SHUTDOWN 0x00 -#define XLOG_CHECKPOINT_ONLINE 0x10 -#define XLOG_NOOP 0x20 -#define XLOG_NEXTOID 0x30 -#define XLOG_SWITCH 0x40 -#define XLOG_BACKUP_END 0x50 -#define XLOG_PARAMETER_CHANGE 0x60 -#define XLOG_RESTORE_POINT 0x70 -#define XLOG_FPW_CHANGE 0x80 -#define XLOG_END_OF_RECOVERY 0x90 -#define XLOG_FPI_FOR_HINT 0xA0 -#define XLOG_FPI 0xB0 -/* 0xC0 is used in Postgres 9.5-11 */ -#define XLOG_OVERWRITE_CONTRECORD 0xD0 - - -/* - * System status indicator. Note this is stored in pg_control; if you change - * it, you must bump PG_CONTROL_VERSION - */ -typedef enum DBState -{ - DB_STARTUP = 0, - DB_SHUTDOWNED, - DB_SHUTDOWNED_IN_RECOVERY, - DB_SHUTDOWNING, - DB_IN_CRASH_RECOVERY, - DB_IN_ARCHIVE_RECOVERY, - DB_IN_PRODUCTION -} DBState; - -/* - * Contents of pg_control. - */ - -typedef struct ControlFileData -{ - /* - * Unique system identifier --- to ensure we match up xlog files with the - * installation that produced them. - */ - uint64 system_identifier; - - /* - * Version identifier information. Keep these fields at the same offset, - * especially pg_control_version; they won't be real useful if they move - * around. (For historical reasons they must be 8 bytes into the file - * rather than immediately at the front.) - * - * pg_control_version identifies the format of pg_control itself. - * catalog_version_no identifies the format of the system catalogs. - * - * There are additional version identifiers in individual files; for - * example, WAL logs contain per-page magic numbers that can serve as - * version cues for the WAL log. - */ - uint32 pg_control_version; /* PG_CONTROL_VERSION */ - uint32 catalog_version_no; /* see catversion.h */ - - /* - * System status data - */ - DBState state; /* see enum above */ - pg_time_t time; /* time stamp of last pg_control update */ - XLogRecPtr checkPoint; /* last check point record ptr */ - - CheckPoint checkPointCopy; /* copy of last check point record */ - - XLogRecPtr unloggedLSN; /* current fake LSN value, for unlogged rels */ - - /* - * These two values determine the minimum point we must recover up to - * before starting up: - * - * minRecoveryPoint is updated to the latest replayed LSN whenever we - * flush a data change during archive recovery. That guards against - * starting archive recovery, aborting it, and restarting with an earlier - * stop location. If we've already flushed data changes from WAL record X - * to disk, we mustn't start up until we reach X again. Zero when not - * doing archive recovery. - * - * backupStartPoint is the redo pointer of the backup start checkpoint, if - * we are recovering from an online backup and haven't reached the end of - * backup yet. It is reset to zero when the end of backup is reached, and - * we mustn't start up before that. A boolean would suffice otherwise, but - * we use the redo pointer as a cross-check when we see an end-of-backup - * record, to make sure the end-of-backup record corresponds the base - * backup we're recovering from. - * - * backupEndPoint is the backup end location, if we are recovering from an - * online backup which was taken from the standby and haven't reached the - * end of backup yet. It is initialized to the minimum recovery point in - * pg_control which was backed up last. It is reset to zero when the end - * of backup is reached, and we mustn't start up before that. - * - * If backupEndRequired is true, we know for sure that we're restoring - * from a backup, and must see a backup-end record before we can safely - * start up. - */ - XLogRecPtr minRecoveryPoint; - TimeLineID minRecoveryPointTLI; - XLogRecPtr backupStartPoint; - XLogRecPtr backupEndPoint; - bool backupEndRequired; - - /* - * Parameter settings that determine if the WAL can be used for archival - * or hot standby. - */ - int wal_level; - bool wal_log_hints; - int MaxConnections; - int max_worker_processes; - int max_wal_senders; - int max_prepared_xacts; - int max_locks_per_xact; - bool track_commit_timestamp; - - /* - * This data is used to check for hardware-architecture compatibility of - * the database and the backend executable. We need not check endianness - * explicitly, since the pg_control version will surely look wrong to a - * machine of different endianness, but we do need to worry about MAXALIGN - * and floating-point format. (Note: storage layout nominally also - * depends on SHORTALIGN and INTALIGN, but in practice these are the same - * on all architectures of interest.) - * - * Testing just one double value is not a very bulletproof test for - * floating-point compatibility, but it will catch most cases. - */ - uint32 maxAlign; /* alignment requirement for tuples */ - double floatFormat; /* constant 1234567.0 */ -#define FLOATFORMAT_VALUE 1234567.0 - - /* - * This data is used to make sure that configuration of this database is - * compatible with the backend executable. - */ - uint32 blcksz; /* data block size for this DB */ - uint32 relseg_size; /* blocks per segment of large relation */ - - uint32 xlog_blcksz; /* block size within WAL files */ - uint32 xlog_seg_size; /* size of each WAL segment */ - - uint32 nameDataLen; /* catalog name field width */ - uint32 indexMaxKeys; /* max number of columns in an index */ - - uint32 toast_max_chunk_size; /* chunk size in TOAST tables */ - uint32 loblksize; /* chunk size in pg_largeobject */ - - bool float8ByVal; /* float8, int8, etc pass-by-value? */ - - /* Are data pages protected by checksums? Zero if no checksum version */ - uint32 data_checksum_version; - - /* - * Random nonce, used in authentication requests that need to proceed - * based on values that are cluster-unique, like a SASL exchange that - * failed at an early stage. - */ - char mock_authentication_nonce[MOCK_AUTH_NONCE_LEN]; - - /* CRC of all above ... MUST BE LAST! */ - pg_crc32c crc; -} ControlFileData; - -/* - * Maximum safe value of sizeof(ControlFileData). For reliability's sake, - * it's critical that pg_control updates be atomic writes. That generally - * means the active data can't be more than one disk sector, which is 512 - * bytes on common hardware. Be very careful about raising this limit. - */ -#define PG_CONTROL_MAX_SAFE_SIZE 512 - -/* - * Physical size of the pg_control file. Note that this is considerably - * bigger than the actually used size (ie, sizeof(ControlFileData)). - * The idea is to keep the physical size constant independent of format - * changes, so that ReadControlFile will deliver a suitable wrong-version - * message instead of a read error if it's looking at an incompatible file. - */ -#define PG_CONTROL_FILE_SIZE 8192 - -#endif /* PG_CONTROL_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_conversion.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_conversion.h deleted file mode 100644 index fb26123aa..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_conversion.h +++ /dev/null @@ -1,75 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_conversion.h - * definition of the "conversion" system catalog (pg_conversion) - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_conversion.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_CONVERSION_H -#define PG_CONVERSION_H - -#include "catalog/genbki.h" -#include "catalog/objectaddress.h" -#include "catalog/pg_conversion_d.h" - -/* ---------------- - * pg_conversion definition. cpp turns this into - * typedef struct FormData_pg_conversion - * ---------------- - */ -CATALOG(pg_conversion,2607,ConversionRelationId) -{ - /* oid */ - Oid oid; - - /* name of the conversion */ - NameData conname; - - /* namespace that the conversion belongs to */ - Oid connamespace BKI_DEFAULT(pg_catalog) BKI_LOOKUP(pg_namespace); - - /* owner of the conversion */ - Oid conowner BKI_DEFAULT(POSTGRES) BKI_LOOKUP(pg_authid); - - /* FOR encoding id */ - int32 conforencoding BKI_LOOKUP(encoding); - - /* TO encoding id */ - int32 contoencoding BKI_LOOKUP(encoding); - - /* OID of the conversion proc */ - regproc conproc BKI_LOOKUP(pg_proc); - - /* true if this is a default conversion */ - bool condefault BKI_DEFAULT(t); -} FormData_pg_conversion; - -/* ---------------- - * Form_pg_conversion corresponds to a pointer to a tuple with - * the format of pg_conversion relation. - * ---------------- - */ -typedef FormData_pg_conversion *Form_pg_conversion; - -DECLARE_UNIQUE_INDEX(pg_conversion_default_index, 2668, ConversionDefaultIndexId, on pg_conversion using btree(connamespace oid_ops, conforencoding int4_ops, contoencoding int4_ops, oid oid_ops)); -DECLARE_UNIQUE_INDEX(pg_conversion_name_nsp_index, 2669, ConversionNameNspIndexId, on pg_conversion using btree(conname name_ops, connamespace oid_ops)); -DECLARE_UNIQUE_INDEX_PKEY(pg_conversion_oid_index, 2670, ConversionOidIndexId, on pg_conversion using btree(oid oid_ops)); - - -extern ObjectAddress ConversionCreate(const char *conname, Oid connamespace, - Oid conowner, - int32 conforencoding, int32 contoencoding, - Oid conproc, bool def); -extern Oid FindDefaultConversion(Oid connamespace, int32 for_encoding, - int32 to_encoding); - -#endif /* PG_CONVERSION_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_conversion_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_conversion_d.h deleted file mode 100644 index 33e4bb486..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_conversion_d.h +++ /dev/null @@ -1,38 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_conversion_d.h - * Macro definitions for pg_conversion - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_CONVERSION_D_H -#define PG_CONVERSION_D_H - -#define ConversionRelationId 2607 -#define ConversionDefaultIndexId 2668 -#define ConversionNameNspIndexId 2669 -#define ConversionOidIndexId 2670 - -#define Anum_pg_conversion_oid 1 -#define Anum_pg_conversion_conname 2 -#define Anum_pg_conversion_connamespace 3 -#define Anum_pg_conversion_conowner 4 -#define Anum_pg_conversion_conforencoding 5 -#define Anum_pg_conversion_contoencoding 6 -#define Anum_pg_conversion_conproc 7 -#define Anum_pg_conversion_condefault 8 - -#define Natts_pg_conversion 8 - - -#endif /* PG_CONVERSION_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_depend.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_depend.h deleted file mode 100644 index 2f736ecd6..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_depend.h +++ /dev/null @@ -1,77 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_depend.h - * definition of the "dependency" system catalog (pg_depend) - * - * pg_depend has no preloaded contents, so there is no pg_depend.dat - * file; dependencies for system-defined objects are loaded into it - * on-the-fly during initdb. Most built-in objects are pinned anyway, - * and hence need no explicit entries in pg_depend. - * - * NOTE: we do not represent all possible dependency pairs in pg_depend; - * for example, there's not much value in creating an explicit dependency - * from an attribute to its relation. Usually we make a dependency for - * cases where the relationship is conditional rather than essential - * (for example, not all triggers are dependent on constraints, but all - * attributes are dependent on relations) or where the dependency is not - * convenient to find from the contents of other catalogs. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_depend.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_DEPEND_H -#define PG_DEPEND_H - -#include "catalog/genbki.h" -#include "catalog/pg_depend_d.h" - -/* ---------------- - * pg_depend definition. cpp turns this into - * typedef struct FormData_pg_depend - * ---------------- - */ -CATALOG(pg_depend,2608,DependRelationId) -{ - /* - * Identification of the dependent (referencing) object. - */ - Oid classid BKI_LOOKUP(pg_class); /* OID of table containing - * object */ - Oid objid; /* OID of object itself */ - int32 objsubid; /* column number, or 0 if not used */ - - /* - * Identification of the independent (referenced) object. - */ - Oid refclassid BKI_LOOKUP(pg_class); /* OID of table containing - * object */ - Oid refobjid; /* OID of object itself */ - int32 refobjsubid; /* column number, or 0 if not used */ - - /* - * Precise semantics of the relationship are specified by the deptype - * field. See DependencyType in catalog/dependency.h. - */ - char deptype; /* see codes in dependency.h */ -} FormData_pg_depend; - -/* ---------------- - * Form_pg_depend corresponds to a pointer to a row with - * the format of pg_depend relation. - * ---------------- - */ -typedef FormData_pg_depend *Form_pg_depend; - -DECLARE_INDEX(pg_depend_depender_index, 2673, DependDependerIndexId, on pg_depend using btree(classid oid_ops, objid oid_ops, objsubid int4_ops)); -DECLARE_INDEX(pg_depend_reference_index, 2674, DependReferenceIndexId, on pg_depend using btree(refclassid oid_ops, refobjid oid_ops, refobjsubid int4_ops)); - -#endif /* PG_DEPEND_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_depend_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_depend_d.h deleted file mode 100644 index 812e19a3a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_depend_d.h +++ /dev/null @@ -1,36 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_depend_d.h - * Macro definitions for pg_depend - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_DEPEND_D_H -#define PG_DEPEND_D_H - -#define DependRelationId 2608 -#define DependDependerIndexId 2673 -#define DependReferenceIndexId 2674 - -#define Anum_pg_depend_classid 1 -#define Anum_pg_depend_objid 2 -#define Anum_pg_depend_objsubid 3 -#define Anum_pg_depend_refclassid 4 -#define Anum_pg_depend_refobjid 5 -#define Anum_pg_depend_refobjsubid 6 -#define Anum_pg_depend_deptype 7 - -#define Natts_pg_depend 7 - - -#endif /* PG_DEPEND_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_event_trigger.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_event_trigger.h deleted file mode 100644 index 3fe0e8db7..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_event_trigger.h +++ /dev/null @@ -1,57 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_event_trigger.h - * definition of the "event trigger" system catalog (pg_event_trigger) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_event_trigger.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_EVENT_TRIGGER_H -#define PG_EVENT_TRIGGER_H - -#include "catalog/genbki.h" -#include "catalog/pg_event_trigger_d.h" - -/* ---------------- - * pg_event_trigger definition. cpp turns this into - * typedef struct FormData_pg_event_trigger - * ---------------- - */ -CATALOG(pg_event_trigger,3466,EventTriggerRelationId) -{ - Oid oid; /* oid */ - NameData evtname; /* trigger's name */ - NameData evtevent; /* trigger's event */ - Oid evtowner BKI_LOOKUP(pg_authid); /* trigger's owner */ - Oid evtfoid BKI_LOOKUP(pg_proc); /* OID of function to be - * called */ - char evtenabled; /* trigger's firing configuration WRT - * session_replication_role */ - -#ifdef CATALOG_VARLEN - text evttags[1]; /* command TAGs this event trigger targets */ -#endif -} FormData_pg_event_trigger; - -/* ---------------- - * Form_pg_event_trigger corresponds to a pointer to a tuple with - * the format of pg_event_trigger relation. - * ---------------- - */ -typedef FormData_pg_event_trigger *Form_pg_event_trigger; - -DECLARE_TOAST(pg_event_trigger, 4145, 4146); - -DECLARE_UNIQUE_INDEX(pg_event_trigger_evtname_index, 3467, EventTriggerNameIndexId, on pg_event_trigger using btree(evtname name_ops)); -DECLARE_UNIQUE_INDEX_PKEY(pg_event_trigger_oid_index, 3468, EventTriggerOidIndexId, on pg_event_trigger using btree(oid oid_ops)); - -#endif /* PG_EVENT_TRIGGER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_event_trigger_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_event_trigger_d.h deleted file mode 100644 index 1f44e4e91..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_event_trigger_d.h +++ /dev/null @@ -1,36 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_event_trigger_d.h - * Macro definitions for pg_event_trigger - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_EVENT_TRIGGER_D_H -#define PG_EVENT_TRIGGER_D_H - -#define EventTriggerRelationId 3466 -#define EventTriggerNameIndexId 3467 -#define EventTriggerOidIndexId 3468 - -#define Anum_pg_event_trigger_oid 1 -#define Anum_pg_event_trigger_evtname 2 -#define Anum_pg_event_trigger_evtevent 3 -#define Anum_pg_event_trigger_evtowner 4 -#define Anum_pg_event_trigger_evtfoid 5 -#define Anum_pg_event_trigger_evtenabled 6 -#define Anum_pg_event_trigger_evttags 7 - -#define Natts_pg_event_trigger 7 - - -#endif /* PG_EVENT_TRIGGER_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_index.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_index.h deleted file mode 100644 index f853846ee..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_index.h +++ /dev/null @@ -1,90 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_index.h - * definition of the "index" system catalog (pg_index) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_index.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_INDEX_H -#define PG_INDEX_H - -#include "catalog/genbki.h" -#include "catalog/pg_index_d.h" - -/* ---------------- - * pg_index definition. cpp turns this into - * typedef struct FormData_pg_index. - * ---------------- - */ -CATALOG(pg_index,2610,IndexRelationId) BKI_SCHEMA_MACRO -{ - Oid indexrelid BKI_LOOKUP(pg_class); /* OID of the index */ - Oid indrelid BKI_LOOKUP(pg_class); /* OID of the relation it - * indexes */ - int16 indnatts; /* total number of columns in index */ - int16 indnkeyatts; /* number of key columns in index */ - bool indisunique; /* is this a unique index? */ - bool indnullsnotdistinct; /* null treatment in unique index */ - bool indisprimary; /* is this index for primary key? */ - bool indisexclusion; /* is this index for exclusion constraint? */ - bool indimmediate; /* is uniqueness enforced immediately? */ - bool indisclustered; /* is this the index last clustered by? */ - bool indisvalid; /* is this index valid for use by queries? */ - bool indcheckxmin; /* must we wait for xmin to be old? */ - bool indisready; /* is this index ready for inserts? */ - bool indislive; /* is this index alive at all? */ - bool indisreplident; /* is this index the identity for replication? */ - - /* variable-length fields start here, but we allow direct access to indkey */ - int2vector indkey BKI_FORCE_NOT_NULL; /* column numbers of indexed cols, - * or 0 */ - -#ifdef CATALOG_VARLEN - oidvector indcollation BKI_LOOKUP_OPT(pg_collation) BKI_FORCE_NOT_NULL; /* collation identifiers */ - oidvector indclass BKI_LOOKUP(pg_opclass) BKI_FORCE_NOT_NULL; /* opclass identifiers */ - int2vector indoption BKI_FORCE_NOT_NULL; /* per-column flags - * (AM-specific meanings) */ - pg_node_tree indexprs; /* expression trees for index attributes that - * are not simple column references; one for - * each zero entry in indkey[] */ - pg_node_tree indpred; /* expression tree for predicate, if a partial - * index; else NULL */ -#endif -} FormData_pg_index; - -/* ---------------- - * Form_pg_index corresponds to a pointer to a tuple with - * the format of pg_index relation. - * ---------------- - */ -typedef FormData_pg_index *Form_pg_index; - -DECLARE_INDEX(pg_index_indrelid_index, 2678, IndexIndrelidIndexId, on pg_index using btree(indrelid oid_ops)); -DECLARE_UNIQUE_INDEX_PKEY(pg_index_indexrelid_index, 2679, IndexRelidIndexId, on pg_index using btree(indexrelid oid_ops)); - -/* indkey can contain zero (InvalidAttrNumber) to represent expressions */ -DECLARE_ARRAY_FOREIGN_KEY_OPT((indrelid, indkey), pg_attribute, (attrelid, attnum)); - -#ifdef EXPOSE_TO_CLIENT_CODE - -/* - * Index AMs that support ordered scans must support these two indoption - * bits. Otherwise, the content of the per-column indoption fields is - * open for future definition. - */ -#define INDOPTION_DESC 0x0001 /* values are in reverse order */ -#define INDOPTION_NULLS_FIRST 0x0002 /* NULLs are first instead of last */ - -#endif /* EXPOSE_TO_CLIENT_CODE */ - -#endif /* PG_INDEX_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_index_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_index_d.h deleted file mode 100644 index 1716a3f1a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_index_d.h +++ /dev/null @@ -1,59 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_index_d.h - * Macro definitions for pg_index - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_INDEX_D_H -#define PG_INDEX_D_H - -#define IndexRelationId 2610 -#define IndexIndrelidIndexId 2678 -#define IndexRelidIndexId 2679 - -#define Anum_pg_index_indexrelid 1 -#define Anum_pg_index_indrelid 2 -#define Anum_pg_index_indnatts 3 -#define Anum_pg_index_indnkeyatts 4 -#define Anum_pg_index_indisunique 5 -#define Anum_pg_index_indnullsnotdistinct 6 -#define Anum_pg_index_indisprimary 7 -#define Anum_pg_index_indisexclusion 8 -#define Anum_pg_index_indimmediate 9 -#define Anum_pg_index_indisclustered 10 -#define Anum_pg_index_indisvalid 11 -#define Anum_pg_index_indcheckxmin 12 -#define Anum_pg_index_indisready 13 -#define Anum_pg_index_indislive 14 -#define Anum_pg_index_indisreplident 15 -#define Anum_pg_index_indkey 16 -#define Anum_pg_index_indcollation 17 -#define Anum_pg_index_indclass 18 -#define Anum_pg_index_indoption 19 -#define Anum_pg_index_indexprs 20 -#define Anum_pg_index_indpred 21 - -#define Natts_pg_index 21 - - -/* - * Index AMs that support ordered scans must support these two indoption - * bits. Otherwise, the content of the per-column indoption fields is - * open for future definition. - */ -#define INDOPTION_DESC 0x0001 /* values are in reverse order */ -#define INDOPTION_NULLS_FIRST 0x0002 /* NULLs are first instead of last */ - - -#endif /* PG_INDEX_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_language.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_language.h deleted file mode 100644 index 4b9c25955..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_language.h +++ /dev/null @@ -1,72 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_language.h - * definition of the "language" system catalog (pg_language) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_language.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_LANGUAGE_H -#define PG_LANGUAGE_H - -#include "catalog/genbki.h" -#include "catalog/pg_language_d.h" - -/* ---------------- - * pg_language definition. cpp turns this into - * typedef struct FormData_pg_language - * ---------------- - */ -CATALOG(pg_language,2612,LanguageRelationId) -{ - Oid oid; /* oid */ - - /* Language name */ - NameData lanname; - - /* Language's owner */ - Oid lanowner BKI_DEFAULT(POSTGRES) BKI_LOOKUP(pg_authid); - - /* Is a procedural language */ - bool lanispl BKI_DEFAULT(f); - - /* PL is trusted */ - bool lanpltrusted BKI_DEFAULT(f); - - /* Call handler, if it's a PL */ - Oid lanplcallfoid BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_proc); - - /* Optional anonymous-block handler function */ - Oid laninline BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_proc); - - /* Optional validation function */ - Oid lanvalidator BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_proc); - -#ifdef CATALOG_VARLEN /* variable-length fields start here */ - /* Access privileges */ - aclitem lanacl[1] BKI_DEFAULT(_null_); -#endif -} FormData_pg_language; - -/* ---------------- - * Form_pg_language corresponds to a pointer to a tuple with - * the format of pg_language relation. - * ---------------- - */ -typedef FormData_pg_language *Form_pg_language; - -DECLARE_TOAST(pg_language, 4157, 4158); - -DECLARE_UNIQUE_INDEX(pg_language_name_index, 2681, LanguageNameIndexId, on pg_language using btree(lanname name_ops)); -DECLARE_UNIQUE_INDEX_PKEY(pg_language_oid_index, 2682, LanguageOidIndexId, on pg_language using btree(oid oid_ops)); - -#endif /* PG_LANGUAGE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_language_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_language_d.h deleted file mode 100644 index 53f26af26..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_language_d.h +++ /dev/null @@ -1,41 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_language_d.h - * Macro definitions for pg_language - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_LANGUAGE_D_H -#define PG_LANGUAGE_D_H - -#define LanguageRelationId 2612 -#define LanguageNameIndexId 2681 -#define LanguageOidIndexId 2682 - -#define Anum_pg_language_oid 1 -#define Anum_pg_language_lanname 2 -#define Anum_pg_language_lanowner 3 -#define Anum_pg_language_lanispl 4 -#define Anum_pg_language_lanpltrusted 5 -#define Anum_pg_language_lanplcallfoid 6 -#define Anum_pg_language_laninline 7 -#define Anum_pg_language_lanvalidator 8 -#define Anum_pg_language_lanacl 9 - -#define Natts_pg_language 9 - -#define INTERNALlanguageId 12 -#define ClanguageId 13 -#define SQLlanguageId 14 - -#endif /* PG_LANGUAGE_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_namespace.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_namespace.h deleted file mode 100644 index ba56e44d6..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_namespace.h +++ /dev/null @@ -1,64 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_namespace.h - * definition of the "namespace" system catalog (pg_namespace) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_namespace.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_NAMESPACE_H -#define PG_NAMESPACE_H - -#include "catalog/genbki.h" -#include "catalog/pg_namespace_d.h" -#include "utils/acl.h" - -/* ---------------------------------------------------------------- - * pg_namespace definition. - * - * cpp turns this into typedef struct FormData_pg_namespace - * - * nspname name of the namespace - * nspowner owner (creator) of the namespace - * nspacl access privilege list - * ---------------------------------------------------------------- - */ -CATALOG(pg_namespace,2615,NamespaceRelationId) -{ - Oid oid; /* oid */ - - NameData nspname; - Oid nspowner BKI_DEFAULT(POSTGRES) BKI_LOOKUP(pg_authid); - -#ifdef CATALOG_VARLEN /* variable-length fields start here */ - aclitem nspacl[1]; -#endif -} FormData_pg_namespace; - -/* ---------------- - * Form_pg_namespace corresponds to a pointer to a tuple with - * the format of pg_namespace relation. - * ---------------- - */ -typedef FormData_pg_namespace *Form_pg_namespace; - -DECLARE_TOAST(pg_namespace, 4163, 4164); - -DECLARE_UNIQUE_INDEX(pg_namespace_nspname_index, 2684, NamespaceNameIndexId, on pg_namespace using btree(nspname name_ops)); -DECLARE_UNIQUE_INDEX_PKEY(pg_namespace_oid_index, 2685, NamespaceOidIndexId, on pg_namespace using btree(oid oid_ops)); - -/* - * prototypes for functions in pg_namespace.c - */ -extern Oid NamespaceCreate(const char *nspName, Oid ownerId, bool isTemp); - -#endif /* PG_NAMESPACE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_namespace_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_namespace_d.h deleted file mode 100644 index 5ca92cc2d..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_namespace_d.h +++ /dev/null @@ -1,36 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_namespace_d.h - * Macro definitions for pg_namespace - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_NAMESPACE_D_H -#define PG_NAMESPACE_D_H - -#define NamespaceRelationId 2615 -#define NamespaceNameIndexId 2684 -#define NamespaceOidIndexId 2685 - -#define Anum_pg_namespace_oid 1 -#define Anum_pg_namespace_nspname 2 -#define Anum_pg_namespace_nspowner 3 -#define Anum_pg_namespace_nspacl 4 - -#define Natts_pg_namespace 4 - -#define PG_CATALOG_NAMESPACE 11 -#define PG_TOAST_NAMESPACE 99 -#define PG_PUBLIC_NAMESPACE 2200 - -#endif /* PG_NAMESPACE_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_opclass.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_opclass.h deleted file mode 100644 index 3a3a19b83..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_opclass.h +++ /dev/null @@ -1,88 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_opclass.h - * definition of the "operator class" system catalog (pg_opclass) - * - * The primary key for this table is --- - * that is, there is a row for each valid combination of opclass name and - * index access method type. This row specifies the expected input data type - * for the opclass (the type of the heap column, or the expression output type - * in the case of an index expression). Note that types binary-coercible to - * the specified type will be accepted too. - * - * For a given pair, there can be at most one row that - * has opcdefault = true; this row is the default opclass for such data in - * such an index. (This is not currently enforced by an index, because we - * don't support partial indexes on system catalogs.) - * - * Normally opckeytype = InvalidOid (zero), indicating that the data stored - * in the index is the same as the data in the indexed column. If opckeytype - * is nonzero then it indicates that a conversion step is needed to produce - * the stored index data, which will be of type opckeytype (which might be - * the same or different from the input datatype). Performing such a - * conversion is the responsibility of the index access method --- not all - * AMs support this. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_opclass.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_OPCLASS_H -#define PG_OPCLASS_H - -#include "catalog/genbki.h" -#include "catalog/pg_opclass_d.h" - -/* ---------------- - * pg_opclass definition. cpp turns this into - * typedef struct FormData_pg_opclass - * ---------------- - */ -CATALOG(pg_opclass,2616,OperatorClassRelationId) -{ - Oid oid; /* oid */ - - /* index access method opclass is for */ - Oid opcmethod BKI_LOOKUP(pg_am); - - /* name of this opclass */ - NameData opcname; - - /* namespace of this opclass */ - Oid opcnamespace BKI_DEFAULT(pg_catalog) BKI_LOOKUP(pg_namespace); - - /* opclass owner */ - Oid opcowner BKI_DEFAULT(POSTGRES) BKI_LOOKUP(pg_authid); - - /* containing operator family */ - Oid opcfamily BKI_LOOKUP(pg_opfamily); - - /* type of data indexed by opclass */ - Oid opcintype BKI_LOOKUP(pg_type); - - /* T if opclass is default for opcintype */ - bool opcdefault BKI_DEFAULT(t); - - /* type of data in index, or InvalidOid if same as input column type */ - Oid opckeytype BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_type); -} FormData_pg_opclass; - -/* ---------------- - * Form_pg_opclass corresponds to a pointer to a tuple with - * the format of pg_opclass relation. - * ---------------- - */ -typedef FormData_pg_opclass *Form_pg_opclass; - -DECLARE_UNIQUE_INDEX(pg_opclass_am_name_nsp_index, 2686, OpclassAmNameNspIndexId, on pg_opclass using btree(opcmethod oid_ops, opcname name_ops, opcnamespace oid_ops)); -DECLARE_UNIQUE_INDEX_PKEY(pg_opclass_oid_index, 2687, OpclassOidIndexId, on pg_opclass using btree(oid oid_ops)); - -#endif /* PG_OPCLASS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_opclass_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_opclass_d.h deleted file mode 100644 index d66780566..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_opclass_d.h +++ /dev/null @@ -1,51 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_opclass_d.h - * Macro definitions for pg_opclass - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_OPCLASS_D_H -#define PG_OPCLASS_D_H - -#define OperatorClassRelationId 2616 -#define OpclassAmNameNspIndexId 2686 -#define OpclassOidIndexId 2687 - -#define Anum_pg_opclass_oid 1 -#define Anum_pg_opclass_opcmethod 2 -#define Anum_pg_opclass_opcname 3 -#define Anum_pg_opclass_opcnamespace 4 -#define Anum_pg_opclass_opcowner 5 -#define Anum_pg_opclass_opcfamily 6 -#define Anum_pg_opclass_opcintype 7 -#define Anum_pg_opclass_opcdefault 8 -#define Anum_pg_opclass_opckeytype 9 - -#define Natts_pg_opclass 9 - -#define DATE_BTREE_OPS_OID 3122 -#define FLOAT8_BTREE_OPS_OID 3123 -#define INT2_BTREE_OPS_OID 1979 -#define INT4_BTREE_OPS_OID 1978 -#define INT8_BTREE_OPS_OID 3124 -#define NUMERIC_BTREE_OPS_OID 3125 -#define OID_BTREE_OPS_OID 1981 -#define TEXT_BTREE_OPS_OID 3126 -#define TIMESTAMPTZ_BTREE_OPS_OID 3127 -#define TIMESTAMP_BTREE_OPS_OID 3128 -#define TEXT_BTREE_PATTERN_OPS_OID 4217 -#define VARCHAR_BTREE_PATTERN_OPS_OID 4218 -#define BPCHAR_BTREE_PATTERN_OPS_OID 4219 - -#endif /* PG_OPCLASS_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_operator.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_operator.h deleted file mode 100644 index 51263f550..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_operator.h +++ /dev/null @@ -1,107 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_operator.h - * definition of the "operator" system catalog (pg_operator) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_operator.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_OPERATOR_H -#define PG_OPERATOR_H - -#include "catalog/genbki.h" -#include "catalog/objectaddress.h" -#include "catalog/pg_operator_d.h" -#include "nodes/pg_list.h" - -/* ---------------- - * pg_operator definition. cpp turns this into - * typedef struct FormData_pg_operator - * ---------------- - */ -CATALOG(pg_operator,2617,OperatorRelationId) -{ - Oid oid; /* oid */ - - /* name of operator */ - NameData oprname; - - /* OID of namespace containing this oper */ - Oid oprnamespace BKI_DEFAULT(pg_catalog) BKI_LOOKUP(pg_namespace); - - /* operator owner */ - Oid oprowner BKI_DEFAULT(POSTGRES) BKI_LOOKUP(pg_authid); - - /* 'l' for prefix or 'b' for infix */ - char oprkind BKI_DEFAULT(b); - - /* can be used in merge join? */ - bool oprcanmerge BKI_DEFAULT(f); - - /* can be used in hash join? */ - bool oprcanhash BKI_DEFAULT(f); - - /* left arg type, or 0 if prefix operator */ - Oid oprleft BKI_LOOKUP_OPT(pg_type); - - /* right arg type */ - Oid oprright BKI_LOOKUP(pg_type); - - /* result datatype; can be 0 in a "shell" operator */ - Oid oprresult BKI_LOOKUP_OPT(pg_type); - - /* OID of commutator oper, or 0 if none */ - Oid oprcom BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_operator); - - /* OID of negator oper, or 0 if none */ - Oid oprnegate BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_operator); - - /* OID of underlying function; can be 0 in a "shell" operator */ - regproc oprcode BKI_LOOKUP_OPT(pg_proc); - - /* OID of restriction estimator, or 0 */ - regproc oprrest BKI_DEFAULT(-) BKI_LOOKUP_OPT(pg_proc); - - /* OID of join estimator, or 0 */ - regproc oprjoin BKI_DEFAULT(-) BKI_LOOKUP_OPT(pg_proc); -} FormData_pg_operator; - -/* ---------------- - * Form_pg_operator corresponds to a pointer to a tuple with - * the format of pg_operator relation. - * ---------------- - */ -typedef FormData_pg_operator *Form_pg_operator; - -DECLARE_UNIQUE_INDEX_PKEY(pg_operator_oid_index, 2688, OperatorOidIndexId, on pg_operator using btree(oid oid_ops)); -DECLARE_UNIQUE_INDEX(pg_operator_oprname_l_r_n_index, 2689, OperatorNameNspIndexId, on pg_operator using btree(oprname name_ops, oprleft oid_ops, oprright oid_ops, oprnamespace oid_ops)); - - -extern ObjectAddress OperatorCreate(const char *operatorName, - Oid operatorNamespace, - Oid leftTypeId, - Oid rightTypeId, - Oid procedureId, - List *commutatorName, - List *negatorName, - Oid restrictionId, - Oid joinId, - bool canMerge, - bool canHash); - -extern ObjectAddress makeOperatorDependencies(HeapTuple tuple, - bool makeExtensionDep, - bool isUpdate); - -extern void OperatorUpd(Oid baseId, Oid commId, Oid negId, bool isDelete); - -#endif /* PG_OPERATOR_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_operator_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_operator_d.h deleted file mode 100644 index 6b350eb28..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_operator_d.h +++ /dev/null @@ -1,142 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_operator_d.h - * Macro definitions for pg_operator - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_OPERATOR_D_H -#define PG_OPERATOR_D_H - -#define OperatorRelationId 2617 -#define OperatorOidIndexId 2688 -#define OperatorNameNspIndexId 2689 - -#define Anum_pg_operator_oid 1 -#define Anum_pg_operator_oprname 2 -#define Anum_pg_operator_oprnamespace 3 -#define Anum_pg_operator_oprowner 4 -#define Anum_pg_operator_oprkind 5 -#define Anum_pg_operator_oprcanmerge 6 -#define Anum_pg_operator_oprcanhash 7 -#define Anum_pg_operator_oprleft 8 -#define Anum_pg_operator_oprright 9 -#define Anum_pg_operator_oprresult 10 -#define Anum_pg_operator_oprcom 11 -#define Anum_pg_operator_oprnegate 12 -#define Anum_pg_operator_oprcode 13 -#define Anum_pg_operator_oprrest 14 -#define Anum_pg_operator_oprjoin 15 - -#define Natts_pg_operator 15 - -#define BooleanNotEqualOperator 85 -#define BooleanEqualOperator 91 -#define Int4EqualOperator 96 -#define Int4LessOperator 97 -#define TextEqualOperator 98 -#define TextPrefixOperator 3877 -#define NameEqualTextOperator 254 -#define NameLessTextOperator 255 -#define NameGreaterEqualTextOperator 257 -#define TIDEqualOperator 387 -#define TIDLessOperator 2799 -#define TIDGreaterOperator 2800 -#define TIDLessEqOperator 2801 -#define TIDGreaterEqOperator 2802 -#define Int8LessOperator 412 -#define OID_NAME_REGEXEQ_OP 639 -#define OID_TEXT_REGEXEQ_OP 641 -#define TextLessOperator 664 -#define TextGreaterEqualOperator 667 -#define Float8LessOperator 672 -#define BpcharEqualOperator 1054 -#define OID_BPCHAR_REGEXEQ_OP 1055 -#define BpcharLessOperator 1058 -#define BpcharGreaterEqualOperator 1061 -#define ARRAY_EQ_OP 1070 -#define ARRAY_LT_OP 1072 -#define ARRAY_GT_OP 1073 -#define OID_NAME_LIKE_OP 1207 -#define OID_TEXT_LIKE_OP 1209 -#define OID_BPCHAR_LIKE_OP 1211 -#define OID_NAME_ICREGEXEQ_OP 1226 -#define OID_TEXT_ICREGEXEQ_OP 1228 -#define OID_BPCHAR_ICREGEXEQ_OP 1234 -#define OID_INET_SUB_OP 931 -#define OID_INET_SUBEQ_OP 932 -#define OID_INET_SUP_OP 933 -#define OID_INET_SUPEQ_OP 934 -#define OID_INET_OVERLAP_OP 3552 -#define OID_NAME_ICLIKE_OP 1625 -#define OID_TEXT_ICLIKE_OP 1627 -#define OID_BPCHAR_ICLIKE_OP 1629 -#define ByteaEqualOperator 1955 -#define ByteaLessOperator 1957 -#define ByteaGreaterEqualOperator 1960 -#define OID_BYTEA_LIKE_OP 2016 -#define TextPatternLessOperator 2314 -#define TextPatternGreaterEqualOperator 2317 -#define BpcharPatternLessOperator 2326 -#define BpcharPatternGreaterEqualOperator 2329 -#define OID_ARRAY_OVERLAP_OP 2750 -#define OID_ARRAY_CONTAINS_OP 2751 -#define OID_ARRAY_CONTAINED_OP 2752 -#define RECORD_EQ_OP 2988 -#define RECORD_LT_OP 2990 -#define RECORD_GT_OP 2991 -#define OID_RANGE_LESS_OP 3884 -#define OID_RANGE_LESS_EQUAL_OP 3885 -#define OID_RANGE_GREATER_EQUAL_OP 3886 -#define OID_RANGE_GREATER_OP 3887 -#define OID_RANGE_OVERLAP_OP 3888 -#define OID_RANGE_CONTAINS_ELEM_OP 3889 -#define OID_RANGE_CONTAINS_OP 3890 -#define OID_RANGE_ELEM_CONTAINED_OP 3891 -#define OID_RANGE_CONTAINED_OP 3892 -#define OID_RANGE_LEFT_OP 3893 -#define OID_RANGE_RIGHT_OP 3894 -#define OID_RANGE_OVERLAPS_LEFT_OP 3895 -#define OID_RANGE_OVERLAPS_RIGHT_OP 3896 -#define OID_MULTIRANGE_LESS_OP 2862 -#define OID_MULTIRANGE_LESS_EQUAL_OP 2863 -#define OID_MULTIRANGE_GREATER_EQUAL_OP 2864 -#define OID_MULTIRANGE_GREATER_OP 2865 -#define OID_RANGE_OVERLAPS_MULTIRANGE_OP 2866 -#define OID_MULTIRANGE_OVERLAPS_RANGE_OP 2867 -#define OID_MULTIRANGE_OVERLAPS_MULTIRANGE_OP 2868 -#define OID_MULTIRANGE_CONTAINS_ELEM_OP 2869 -#define OID_MULTIRANGE_CONTAINS_RANGE_OP 2870 -#define OID_MULTIRANGE_CONTAINS_MULTIRANGE_OP 2871 -#define OID_MULTIRANGE_ELEM_CONTAINED_OP 2872 -#define OID_MULTIRANGE_RANGE_CONTAINED_OP 2873 -#define OID_MULTIRANGE_MULTIRANGE_CONTAINED_OP 2874 -#define OID_RANGE_CONTAINS_MULTIRANGE_OP 4539 -#define OID_RANGE_MULTIRANGE_CONTAINED_OP 4540 -#define OID_RANGE_OVERLAPS_LEFT_MULTIRANGE_OP 2875 -#define OID_MULTIRANGE_OVERLAPS_LEFT_RANGE_OP 2876 -#define OID_MULTIRANGE_OVERLAPS_LEFT_MULTIRANGE_OP 2877 -#define OID_RANGE_OVERLAPS_RIGHT_MULTIRANGE_OP 3585 -#define OID_MULTIRANGE_OVERLAPS_RIGHT_RANGE_OP 4035 -#define OID_MULTIRANGE_OVERLAPS_RIGHT_MULTIRANGE_OP 4142 -#define OID_RANGE_ADJACENT_MULTIRANGE_OP 4179 -#define OID_MULTIRANGE_ADJACENT_RANGE_OP 4180 -#define OID_MULTIRANGE_ADJACENT_MULTIRANGE_OP 4198 -#define OID_RANGE_LEFT_MULTIRANGE_OP 4395 -#define OID_MULTIRANGE_LEFT_RANGE_OP 4396 -#define OID_MULTIRANGE_LEFT_MULTIRANGE_OP 4397 -#define OID_RANGE_RIGHT_MULTIRANGE_OP 4398 -#define OID_MULTIRANGE_RIGHT_RANGE_OP 4399 -#define OID_MULTIRANGE_RIGHT_MULTIRANGE_OP 4400 - -#endif /* PG_OPERATOR_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_opfamily.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_opfamily.h deleted file mode 100644 index 8dc9ce01b..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_opfamily.h +++ /dev/null @@ -1,63 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_opfamily.h - * definition of the "operator family" system catalog (pg_opfamily) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_opfamily.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_OPFAMILY_H -#define PG_OPFAMILY_H - -#include "catalog/genbki.h" -#include "catalog/pg_opfamily_d.h" - -/* ---------------- - * pg_opfamily definition. cpp turns this into - * typedef struct FormData_pg_opfamily - * ---------------- - */ -CATALOG(pg_opfamily,2753,OperatorFamilyRelationId) -{ - Oid oid; /* oid */ - - /* index access method opfamily is for */ - Oid opfmethod BKI_LOOKUP(pg_am); - - /* name of this opfamily */ - NameData opfname; - - /* namespace of this opfamily */ - Oid opfnamespace BKI_DEFAULT(pg_catalog) BKI_LOOKUP(pg_namespace); - - /* opfamily owner */ - Oid opfowner BKI_DEFAULT(POSTGRES) BKI_LOOKUP(pg_authid); -} FormData_pg_opfamily; - -/* ---------------- - * Form_pg_opfamily corresponds to a pointer to a tuple with - * the format of pg_opfamily relation. - * ---------------- - */ -typedef FormData_pg_opfamily *Form_pg_opfamily; - -DECLARE_UNIQUE_INDEX(pg_opfamily_am_name_nsp_index, 2754, OpfamilyAmNameNspIndexId, on pg_opfamily using btree(opfmethod oid_ops, opfname name_ops, opfnamespace oid_ops)); -DECLARE_UNIQUE_INDEX_PKEY(pg_opfamily_oid_index, 2755, OpfamilyOidIndexId, on pg_opfamily using btree(oid oid_ops)); - -#ifdef EXPOSE_TO_CLIENT_CODE - -#define IsBooleanOpfamily(opfamily) \ - ((opfamily) == BOOL_BTREE_FAM_OID || (opfamily) == BOOL_HASH_FAM_OID) - -#endif /* EXPOSE_TO_CLIENT_CODE */ - -#endif /* PG_OPFAMILY_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_opfamily_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_opfamily_d.h deleted file mode 100644 index 5b00cfc13..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_opfamily_d.h +++ /dev/null @@ -1,49 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_opfamily_d.h - * Macro definitions for pg_opfamily - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_OPFAMILY_D_H -#define PG_OPFAMILY_D_H - -#define OperatorFamilyRelationId 2753 -#define OpfamilyAmNameNspIndexId 2754 -#define OpfamilyOidIndexId 2755 - -#define Anum_pg_opfamily_oid 1 -#define Anum_pg_opfamily_opfmethod 2 -#define Anum_pg_opfamily_opfname 3 -#define Anum_pg_opfamily_opfnamespace 4 -#define Anum_pg_opfamily_opfowner 5 - -#define Natts_pg_opfamily 5 - - -#define IsBooleanOpfamily(opfamily) \ - ((opfamily) == BOOL_BTREE_FAM_OID || (opfamily) == BOOL_HASH_FAM_OID) - -#define BOOL_BTREE_FAM_OID 424 -#define BPCHAR_BTREE_FAM_OID 426 -#define BYTEA_BTREE_FAM_OID 428 -#define NETWORK_BTREE_FAM_OID 1974 -#define INTEGER_BTREE_FAM_OID 1976 -#define OID_BTREE_FAM_OID 1989 -#define TEXT_BTREE_FAM_OID 1994 -#define TEXT_PATTERN_BTREE_FAM_OID 2095 -#define BPCHAR_PATTERN_BTREE_FAM_OID 2097 -#define BOOL_HASH_FAM_OID 2222 -#define TEXT_SPGIST_FAM_OID 4017 - -#endif /* PG_OPFAMILY_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_parameter_acl.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_parameter_acl.h deleted file mode 100644 index 4bd52c2d7..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_parameter_acl.h +++ /dev/null @@ -1,60 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_parameter_acl.h - * definition of the "configuration parameter ACL" system catalog - * (pg_parameter_acl). - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_parameter_acl.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_PARAMETER_ACL_H -#define PG_PARAMETER_ACL_H - -#include "catalog/genbki.h" -#include "catalog/pg_parameter_acl_d.h" - -/* ---------------- - * pg_parameter_acl definition. cpp turns this into - * typedef struct FormData_pg_parameter_acl - * ---------------- - */ -CATALOG(pg_parameter_acl,6243,ParameterAclRelationId) BKI_SHARED_RELATION -{ - Oid oid; /* oid */ - -#ifdef CATALOG_VARLEN /* variable-length fields start here */ - /* name of parameter */ - text parname BKI_FORCE_NOT_NULL; - - /* access permissions */ - aclitem paracl[1] BKI_DEFAULT(_null_); -#endif -} FormData_pg_parameter_acl; - - -/* ---------------- - * Form_pg_parameter_acl corresponds to a pointer to a tuple with - * the format of pg_parameter_acl relation. - * ---------------- - */ -typedef FormData_pg_parameter_acl * Form_pg_parameter_acl; - -DECLARE_TOAST_WITH_MACRO(pg_parameter_acl, 6244, 6245, PgParameterAclToastTable, PgParameterAclToastIndex); - -DECLARE_UNIQUE_INDEX(pg_parameter_acl_parname_index, 6246, ParameterAclParnameIndexId, on pg_parameter_acl using btree(parname text_ops)); -DECLARE_UNIQUE_INDEX_PKEY(pg_parameter_acl_oid_index, 6247, ParameterAclOidIndexId, on pg_parameter_acl using btree(oid oid_ops)); - - -extern Oid ParameterAclLookup(const char *parameter, bool missing_ok); -extern Oid ParameterAclCreate(const char *parameter); - -#endif /* PG_PARAMETER_ACL_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_parameter_acl_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_parameter_acl_d.h deleted file mode 100644 index 8a27703a9..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_parameter_acl_d.h +++ /dev/null @@ -1,34 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_parameter_acl_d.h - * Macro definitions for pg_parameter_acl - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_PARAMETER_ACL_D_H -#define PG_PARAMETER_ACL_D_H - -#define ParameterAclRelationId 6243 -#define PgParameterAclToastTable 6244 -#define PgParameterAclToastIndex 6245 -#define ParameterAclParnameIndexId 6246 -#define ParameterAclOidIndexId 6247 - -#define Anum_pg_parameter_acl_oid 1 -#define Anum_pg_parameter_acl_parname 2 -#define Anum_pg_parameter_acl_paracl 3 - -#define Natts_pg_parameter_acl 3 - - -#endif /* PG_PARAMETER_ACL_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_partitioned_table.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_partitioned_table.h deleted file mode 100644 index 9b78f84cd..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_partitioned_table.h +++ /dev/null @@ -1,74 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_partitioned_table.h - * definition of the "partitioned table" system catalog - * (pg_partitioned_table) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_partitioned_table.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_PARTITIONED_TABLE_H -#define PG_PARTITIONED_TABLE_H - -#include "catalog/genbki.h" -#include "catalog/pg_partitioned_table_d.h" - -/* ---------------- - * pg_partitioned_table definition. cpp turns this into - * typedef struct FormData_pg_partitioned_table - * ---------------- - */ -CATALOG(pg_partitioned_table,3350,PartitionedRelationId) -{ - Oid partrelid BKI_LOOKUP(pg_class); /* partitioned table oid */ - char partstrat; /* partitioning strategy */ - int16 partnatts; /* number of partition key columns */ - Oid partdefid BKI_LOOKUP_OPT(pg_class); /* default partition oid; - * 0 if there isn't one */ - - /* - * variable-length fields start here, but we allow direct access to - * partattrs via the C struct. That's because the first variable-length - * field of a heap tuple can be reliably accessed using its C struct - * offset, as previous fields are all non-nullable fixed-length fields. - */ - int2vector partattrs BKI_FORCE_NOT_NULL; /* each member of the array is - * the attribute number of a - * partition key column, or 0 - * if the column is actually - * an expression */ - -#ifdef CATALOG_VARLEN - oidvector partclass BKI_LOOKUP(pg_opclass) BKI_FORCE_NOT_NULL; /* operator class to - * compare keys */ - oidvector partcollation BKI_LOOKUP_OPT(pg_collation) BKI_FORCE_NOT_NULL; /* user-specified - * collation for keys */ - pg_node_tree partexprs; /* list of expressions in the partition key; - * one item for each zero entry in partattrs[] */ -#endif -} FormData_pg_partitioned_table; - -/* ---------------- - * Form_pg_partitioned_table corresponds to a pointer to a tuple with - * the format of pg_partitioned_table relation. - * ---------------- - */ -typedef FormData_pg_partitioned_table *Form_pg_partitioned_table; - -DECLARE_TOAST(pg_partitioned_table, 4165, 4166); - -DECLARE_UNIQUE_INDEX_PKEY(pg_partitioned_table_partrelid_index, 3351, PartitionedRelidIndexId, on pg_partitioned_table using btree(partrelid oid_ops)); - -/* partattrs can contain zero (InvalidAttrNumber) to represent expressions */ -DECLARE_ARRAY_FOREIGN_KEY_OPT((partrelid, partattrs), pg_attribute, (attrelid, attnum)); - -#endif /* PG_PARTITIONED_TABLE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_partitioned_table_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_partitioned_table_d.h deleted file mode 100644 index 6f4338a11..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_partitioned_table_d.h +++ /dev/null @@ -1,36 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_partitioned_table_d.h - * Macro definitions for pg_partitioned_table - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_PARTITIONED_TABLE_D_H -#define PG_PARTITIONED_TABLE_D_H - -#define PartitionedRelationId 3350 -#define PartitionedRelidIndexId 3351 - -#define Anum_pg_partitioned_table_partrelid 1 -#define Anum_pg_partitioned_table_partstrat 2 -#define Anum_pg_partitioned_table_partnatts 3 -#define Anum_pg_partitioned_table_partdefid 4 -#define Anum_pg_partitioned_table_partattrs 5 -#define Anum_pg_partitioned_table_partclass 6 -#define Anum_pg_partitioned_table_partcollation 7 -#define Anum_pg_partitioned_table_partexprs 8 - -#define Natts_pg_partitioned_table 8 - - -#endif /* PG_PARTITIONED_TABLE_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_proc.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_proc.h deleted file mode 100644 index 76310d4cc..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_proc.h +++ /dev/null @@ -1,220 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_proc.h - * definition of the "procedure" system catalog (pg_proc) - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_proc.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_PROC_H -#define PG_PROC_H - -#include "catalog/genbki.h" -#include "catalog/objectaddress.h" -#include "catalog/pg_proc_d.h" -#include "nodes/pg_list.h" - -/* ---------------- - * pg_proc definition. cpp turns this into - * typedef struct FormData_pg_proc - * ---------------- - */ -CATALOG(pg_proc,1255,ProcedureRelationId) BKI_BOOTSTRAP BKI_ROWTYPE_OID(81,ProcedureRelation_Rowtype_Id) BKI_SCHEMA_MACRO -{ - Oid oid; /* oid */ - - /* procedure name */ - NameData proname; - - /* OID of namespace containing this proc */ - Oid pronamespace BKI_DEFAULT(pg_catalog) BKI_LOOKUP(pg_namespace); - - /* procedure owner */ - Oid proowner BKI_DEFAULT(POSTGRES) BKI_LOOKUP(pg_authid); - - /* OID of pg_language entry */ - Oid prolang BKI_DEFAULT(internal) BKI_LOOKUP(pg_language); - - /* estimated execution cost */ - float4 procost BKI_DEFAULT(1); - - /* estimated # of rows out (if proretset) */ - float4 prorows BKI_DEFAULT(0); - - /* element type of variadic array, or 0 if not variadic */ - Oid provariadic BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_type); - - /* planner support function for this function, or 0 if none */ - regproc prosupport BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_proc); - - /* see PROKIND_ categories below */ - char prokind BKI_DEFAULT(f); - - /* security definer */ - bool prosecdef BKI_DEFAULT(f); - - /* is it a leak-proof function? */ - bool proleakproof BKI_DEFAULT(f); - - /* strict with respect to NULLs? */ - bool proisstrict BKI_DEFAULT(t); - - /* returns a set? */ - bool proretset BKI_DEFAULT(f); - - /* see PROVOLATILE_ categories below */ - char provolatile BKI_DEFAULT(i); - - /* see PROPARALLEL_ categories below */ - char proparallel BKI_DEFAULT(s); - - /* number of arguments */ - /* Note: need not be given in pg_proc.dat; genbki.pl will compute it */ - int16 pronargs; - - /* number of arguments with defaults */ - int16 pronargdefaults BKI_DEFAULT(0); - - /* OID of result type */ - Oid prorettype BKI_LOOKUP(pg_type); - - /* - * variable-length fields start here, but we allow direct access to - * proargtypes - */ - - /* parameter types (excludes OUT params) */ - oidvector proargtypes BKI_LOOKUP(pg_type) BKI_FORCE_NOT_NULL; - -#ifdef CATALOG_VARLEN - - /* all param types (NULL if IN only) */ - Oid proallargtypes[1] BKI_DEFAULT(_null_) BKI_LOOKUP(pg_type); - - /* parameter modes (NULL if IN only) */ - char proargmodes[1] BKI_DEFAULT(_null_); - - /* parameter names (NULL if no names) */ - text proargnames[1] BKI_DEFAULT(_null_); - - /* list of expression trees for argument defaults (NULL if none) */ - pg_node_tree proargdefaults BKI_DEFAULT(_null_); - - /* types for which to apply transforms */ - Oid protrftypes[1] BKI_DEFAULT(_null_) BKI_LOOKUP(pg_type); - - /* procedure source text */ - text prosrc BKI_FORCE_NOT_NULL; - - /* secondary procedure info (can be NULL) */ - text probin BKI_DEFAULT(_null_); - - /* pre-parsed SQL function body */ - pg_node_tree prosqlbody BKI_DEFAULT(_null_); - - /* procedure-local GUC settings */ - text proconfig[1] BKI_DEFAULT(_null_); - - /* access permissions */ - aclitem proacl[1] BKI_DEFAULT(_null_); -#endif -} FormData_pg_proc; - -/* ---------------- - * Form_pg_proc corresponds to a pointer to a tuple with - * the format of pg_proc relation. - * ---------------- - */ -typedef FormData_pg_proc *Form_pg_proc; - -DECLARE_TOAST(pg_proc, 2836, 2837); - -DECLARE_UNIQUE_INDEX_PKEY(pg_proc_oid_index, 2690, ProcedureOidIndexId, on pg_proc using btree(oid oid_ops)); -DECLARE_UNIQUE_INDEX(pg_proc_proname_args_nsp_index, 2691, ProcedureNameArgsNspIndexId, on pg_proc using btree(proname name_ops, proargtypes oidvector_ops, pronamespace oid_ops)); - -#ifdef EXPOSE_TO_CLIENT_CODE - -/* - * Symbolic values for prokind column - */ -#define PROKIND_FUNCTION 'f' -#define PROKIND_AGGREGATE 'a' -#define PROKIND_WINDOW 'w' -#define PROKIND_PROCEDURE 'p' - -/* - * Symbolic values for provolatile column: these indicate whether the result - * of a function is dependent *only* on the values of its explicit arguments, - * or can change due to outside factors (such as parameter variables or - * table contents). NOTE: functions having side-effects, such as setval(), - * must be labeled volatile to ensure they will not get optimized away, - * even if the actual return value is not changeable. - */ -#define PROVOLATILE_IMMUTABLE 'i' /* never changes for given input */ -#define PROVOLATILE_STABLE 's' /* does not change within a scan */ -#define PROVOLATILE_VOLATILE 'v' /* can change even within a scan */ - -/* - * Symbolic values for proparallel column: these indicate whether a function - * can be safely be run in a parallel backend, during parallelism but - * necessarily in the leader, or only in non-parallel mode. - */ -#define PROPARALLEL_SAFE 's' /* can run in worker or leader */ -#define PROPARALLEL_RESTRICTED 'r' /* can run in parallel leader only */ -#define PROPARALLEL_UNSAFE 'u' /* banned while in parallel mode */ - -/* - * Symbolic values for proargmodes column. Note that these must agree with - * the FunctionParameterMode enum in parsenodes.h; we declare them here to - * be accessible from either header. - */ -#define PROARGMODE_IN 'i' -#define PROARGMODE_OUT 'o' -#define PROARGMODE_INOUT 'b' -#define PROARGMODE_VARIADIC 'v' -#define PROARGMODE_TABLE 't' - -#endif /* EXPOSE_TO_CLIENT_CODE */ - - -extern ObjectAddress ProcedureCreate(const char *procedureName, - Oid procNamespace, - bool replace, - bool returnsSet, - Oid returnType, - Oid proowner, - Oid languageObjectId, - Oid languageValidator, - const char *prosrc, - const char *probin, - Node *prosqlbody, - char prokind, - bool security_definer, - bool isLeakProof, - bool isStrict, - char volatility, - char parallel, - oidvector *parameterTypes, - Datum allParameterTypes, - Datum parameterModes, - Datum parameterNames, - List *parameterDefaults, - Datum trftypes, - Datum proconfig, - Oid prosupport, - float4 procost, - float4 prorows); - -extern bool function_parse_error_transpose(const char *prosrc); - -extern List *oid_array_to_list(Datum datum); - -#endif /* PG_PROC_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_proc_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_proc_d.h deleted file mode 100644 index 27fbfdd1c..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_proc_d.h +++ /dev/null @@ -1,101 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_proc_d.h - * Macro definitions for pg_proc - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_PROC_D_H -#define PG_PROC_D_H - -#define ProcedureRelationId 1255 -#define ProcedureRelation_Rowtype_Id 81 -#define ProcedureOidIndexId 2690 -#define ProcedureNameArgsNspIndexId 2691 - -#define Anum_pg_proc_oid 1 -#define Anum_pg_proc_proname 2 -#define Anum_pg_proc_pronamespace 3 -#define Anum_pg_proc_proowner 4 -#define Anum_pg_proc_prolang 5 -#define Anum_pg_proc_procost 6 -#define Anum_pg_proc_prorows 7 -#define Anum_pg_proc_provariadic 8 -#define Anum_pg_proc_prosupport 9 -#define Anum_pg_proc_prokind 10 -#define Anum_pg_proc_prosecdef 11 -#define Anum_pg_proc_proleakproof 12 -#define Anum_pg_proc_proisstrict 13 -#define Anum_pg_proc_proretset 14 -#define Anum_pg_proc_provolatile 15 -#define Anum_pg_proc_proparallel 16 -#define Anum_pg_proc_pronargs 17 -#define Anum_pg_proc_pronargdefaults 18 -#define Anum_pg_proc_prorettype 19 -#define Anum_pg_proc_proargtypes 20 -#define Anum_pg_proc_proallargtypes 21 -#define Anum_pg_proc_proargmodes 22 -#define Anum_pg_proc_proargnames 23 -#define Anum_pg_proc_proargdefaults 24 -#define Anum_pg_proc_protrftypes 25 -#define Anum_pg_proc_prosrc 26 -#define Anum_pg_proc_probin 27 -#define Anum_pg_proc_prosqlbody 28 -#define Anum_pg_proc_proconfig 29 -#define Anum_pg_proc_proacl 30 - -#define Natts_pg_proc 30 - - -/* - * Symbolic values for prokind column - */ -#define PROKIND_FUNCTION 'f' -#define PROKIND_AGGREGATE 'a' -#define PROKIND_WINDOW 'w' -#define PROKIND_PROCEDURE 'p' - -/* - * Symbolic values for provolatile column: these indicate whether the result - * of a function is dependent *only* on the values of its explicit arguments, - * or can change due to outside factors (such as parameter variables or - * table contents). NOTE: functions having side-effects, such as setval(), - * must be labeled volatile to ensure they will not get optimized away, - * even if the actual return value is not changeable. - */ -#define PROVOLATILE_IMMUTABLE 'i' /* never changes for given input */ -#define PROVOLATILE_STABLE 's' /* does not change within a scan */ -#define PROVOLATILE_VOLATILE 'v' /* can change even within a scan */ - -/* - * Symbolic values for proparallel column: these indicate whether a function - * can be safely be run in a parallel backend, during parallelism but - * necessarily in the leader, or only in non-parallel mode. - */ -#define PROPARALLEL_SAFE 's' /* can run in worker or leader */ -#define PROPARALLEL_RESTRICTED 'r' /* can run in parallel leader only */ -#define PROPARALLEL_UNSAFE 'u' /* banned while in parallel mode */ - -/* - * Symbolic values for proargmodes column. Note that these must agree with - * the FunctionParameterMode enum in parsenodes.h; we declare them here to - * be accessible from either header. - */ -#define PROARGMODE_IN 'i' -#define PROARGMODE_OUT 'o' -#define PROARGMODE_INOUT 'b' -#define PROARGMODE_VARIADIC 'v' -#define PROARGMODE_TABLE 't' - - -#endif /* PG_PROC_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_publication.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_publication.h deleted file mode 100644 index 48205ba42..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_publication.h +++ /dev/null @@ -1,161 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_publication.h - * definition of the "publication" system catalog (pg_publication) - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_publication.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_PUBLICATION_H -#define PG_PUBLICATION_H - -#include "catalog/genbki.h" -#include "catalog/objectaddress.h" -#include "catalog/pg_publication_d.h" - -/* ---------------- - * pg_publication definition. cpp turns this into - * typedef struct FormData_pg_publication - * ---------------- - */ -CATALOG(pg_publication,6104,PublicationRelationId) -{ - Oid oid; /* oid */ - - NameData pubname; /* name of the publication */ - - Oid pubowner BKI_LOOKUP(pg_authid); /* publication owner */ - - /* - * indicates that this is special publication which should encompass all - * tables in the database (except for the unlogged and temp ones) - */ - bool puballtables; - - /* true if inserts are published */ - bool pubinsert; - - /* true if updates are published */ - bool pubupdate; - - /* true if deletes are published */ - bool pubdelete; - - /* true if truncates are published */ - bool pubtruncate; - - /* true if partition changes are published using root schema */ - bool pubviaroot; -} FormData_pg_publication; - -/* ---------------- - * Form_pg_publication corresponds to a pointer to a tuple with - * the format of pg_publication relation. - * ---------------- - */ -typedef FormData_pg_publication *Form_pg_publication; - -DECLARE_UNIQUE_INDEX_PKEY(pg_publication_oid_index, 6110, PublicationObjectIndexId, on pg_publication using btree(oid oid_ops)); -DECLARE_UNIQUE_INDEX(pg_publication_pubname_index, 6111, PublicationNameIndexId, on pg_publication using btree(pubname name_ops)); - -typedef struct PublicationActions -{ - bool pubinsert; - bool pubupdate; - bool pubdelete; - bool pubtruncate; -} PublicationActions; - -typedef struct PublicationDesc -{ - PublicationActions pubactions; - - /* - * true if the columns referenced in row filters which are used for UPDATE - * or DELETE are part of the replica identity or the publication actions - * do not include UPDATE or DELETE. - */ - bool rf_valid_for_update; - bool rf_valid_for_delete; - - /* - * true if the columns are part of the replica identity or the publication - * actions do not include UPDATE or DELETE. - */ - bool cols_valid_for_update; - bool cols_valid_for_delete; -} PublicationDesc; - -typedef struct Publication -{ - Oid oid; - char *name; - bool alltables; - bool pubviaroot; - PublicationActions pubactions; -} Publication; - -typedef struct PublicationRelInfo -{ - Relation relation; - Node *whereClause; - List *columns; -} PublicationRelInfo; - -extern Publication *GetPublication(Oid pubid); -extern Publication *GetPublicationByName(const char *pubname, bool missing_ok); -extern List *GetRelationPublications(Oid relid); - -/*--------- - * Expected values for pub_partopt parameter of GetRelationPublications(), - * which allows callers to specify which partitions of partitioned tables - * mentioned in the publication they expect to see. - * - * ROOT: only the table explicitly mentioned in the publication - * LEAF: only leaf partitions in given tree - * ALL: all partitions in given tree - */ -typedef enum PublicationPartOpt -{ - PUBLICATION_PART_ROOT, - PUBLICATION_PART_LEAF, - PUBLICATION_PART_ALL, -} PublicationPartOpt; - -extern List *GetPublicationRelations(Oid pubid, PublicationPartOpt pub_partopt); -extern List *GetAllTablesPublications(void); -extern List *GetAllTablesPublicationRelations(bool pubviaroot); -extern List *GetPublicationSchemas(Oid pubid); -extern List *GetSchemaPublications(Oid schemaid); -extern List *GetSchemaPublicationRelations(Oid schemaid, - PublicationPartOpt pub_partopt); -extern List *GetAllSchemaPublicationRelations(Oid puboid, - PublicationPartOpt pub_partopt); -extern List *GetPubPartitionOptionRelations(List *result, - PublicationPartOpt pub_partopt, - Oid relid); -extern Oid GetTopMostAncestorInPublication(Oid puboid, List *ancestors, - int *ancestor_level); - -extern bool is_publishable_relation(Relation rel); -extern bool is_schema_publication(Oid pubid); -extern ObjectAddress publication_add_relation(Oid pubid, PublicationRelInfo *pri, - bool if_not_exists); -extern ObjectAddress publication_add_schema(Oid pubid, Oid schemaid, - bool if_not_exists); - -extern Bitmapset *pub_collist_to_bitmapset(Bitmapset *columns, Datum pubcols, - MemoryContext mcxt); - -extern Oid get_publication_oid(const char *pubname, bool missing_ok); -extern char *get_publication_name(Oid pubid, bool missing_ok); - -#endif /* PG_PUBLICATION_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_publication_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_publication_d.h deleted file mode 100644 index 189d7df6f..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_publication_d.h +++ /dev/null @@ -1,38 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_publication_d.h - * Macro definitions for pg_publication - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_PUBLICATION_D_H -#define PG_PUBLICATION_D_H - -#define PublicationRelationId 6104 -#define PublicationObjectIndexId 6110 -#define PublicationNameIndexId 6111 - -#define Anum_pg_publication_oid 1 -#define Anum_pg_publication_pubname 2 -#define Anum_pg_publication_pubowner 3 -#define Anum_pg_publication_puballtables 4 -#define Anum_pg_publication_pubinsert 5 -#define Anum_pg_publication_pubupdate 6 -#define Anum_pg_publication_pubdelete 7 -#define Anum_pg_publication_pubtruncate 8 -#define Anum_pg_publication_pubviaroot 9 - -#define Natts_pg_publication 9 - - -#endif /* PG_PUBLICATION_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_replication_origin.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_replication_origin.h deleted file mode 100644 index 3b11cd21c..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_replication_origin.h +++ /dev/null @@ -1,62 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_replication_origin.h - * definition of the "replication origin" system catalog - * (pg_replication_origin) - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_replication_origin.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_REPLICATION_ORIGIN_H -#define PG_REPLICATION_ORIGIN_H - -#include "access/xlogdefs.h" -#include "catalog/genbki.h" -#include "catalog/pg_replication_origin_d.h" - -/* ---------------- - * pg_replication_origin. cpp turns this into - * typedef struct FormData_pg_replication_origin - * ---------------- - */ -CATALOG(pg_replication_origin,6000,ReplicationOriginRelationId) BKI_SHARED_RELATION -{ - /* - * Locally known id that get included into WAL. - * - * This should never leave the system. - * - * Needs to fit into an uint16, so we don't waste too much space in WAL - * records. For this reason we don't use a normal Oid column here, since - * we need to handle allocation of new values manually. - */ - Oid roident; - - /* - * Variable-length fields start here, but we allow direct access to - * roname. - */ - - /* external, free-format, name */ - text roname BKI_FORCE_NOT_NULL; - -#ifdef CATALOG_VARLEN /* further variable-length fields */ -#endif -} FormData_pg_replication_origin; - -typedef FormData_pg_replication_origin *Form_pg_replication_origin; - -DECLARE_TOAST_WITH_MACRO(pg_replication_origin, 4181, 4182, PgReplicationOriginToastTable, PgReplicationOriginToastIndex); - -DECLARE_UNIQUE_INDEX_PKEY(pg_replication_origin_roiident_index, 6001, ReplicationOriginIdentIndex, on pg_replication_origin using btree(roident oid_ops)); -DECLARE_UNIQUE_INDEX(pg_replication_origin_roname_index, 6002, ReplicationOriginNameIndex, on pg_replication_origin using btree(roname text_ops)); - -#endif /* PG_REPLICATION_ORIGIN_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_replication_origin_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_replication_origin_d.h deleted file mode 100644 index 2cfa387a7..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_replication_origin_d.h +++ /dev/null @@ -1,33 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_replication_origin_d.h - * Macro definitions for pg_replication_origin - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_REPLICATION_ORIGIN_D_H -#define PG_REPLICATION_ORIGIN_D_H - -#define ReplicationOriginRelationId 6000 -#define PgReplicationOriginToastTable 4181 -#define PgReplicationOriginToastIndex 4182 -#define ReplicationOriginIdentIndex 6001 -#define ReplicationOriginNameIndex 6002 - -#define Anum_pg_replication_origin_roident 1 -#define Anum_pg_replication_origin_roname 2 - -#define Natts_pg_replication_origin 2 - - -#endif /* PG_REPLICATION_ORIGIN_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_statistic.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_statistic.h deleted file mode 100644 index cdf744813..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_statistic.h +++ /dev/null @@ -1,282 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_statistic.h - * definition of the "statistics" system catalog (pg_statistic) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_statistic.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_STATISTIC_H -#define PG_STATISTIC_H - -#include "catalog/genbki.h" -#include "catalog/pg_statistic_d.h" - -/* ---------------- - * pg_statistic definition. cpp turns this into - * typedef struct FormData_pg_statistic - * ---------------- - */ -CATALOG(pg_statistic,2619,StatisticRelationId) -{ - /* These fields form the unique key for the entry: */ - Oid starelid BKI_LOOKUP(pg_class); /* relation containing - * attribute */ - int16 staattnum; /* attribute (column) stats are for */ - bool stainherit; /* true if inheritance children are included */ - - /* the fraction of the column's entries that are NULL: */ - float4 stanullfrac; - - /* - * stawidth is the average width in bytes of non-null entries. For - * fixed-width datatypes this is of course the same as the typlen, but for - * var-width types it is more useful. Note that this is the average width - * of the data as actually stored, post-TOASTing (eg, for a - * moved-out-of-line value, only the size of the pointer object is - * counted). This is the appropriate definition for the primary use of - * the statistic, which is to estimate sizes of in-memory hash tables of - * tuples. - */ - int32 stawidth; - - /* ---------------- - * stadistinct indicates the (approximate) number of distinct non-null - * data values in the column. The interpretation is: - * 0 unknown or not computed - * > 0 actual number of distinct values - * < 0 negative of multiplier for number of rows - * The special negative case allows us to cope with columns that are - * unique (stadistinct = -1) or nearly so (for example, a column in which - * non-null values appear about twice on the average could be represented - * by stadistinct = -0.5 if there are no nulls, or -0.4 if 20% of the - * column is nulls). Because the number-of-rows statistic in pg_class may - * be updated more frequently than pg_statistic is, it's important to be - * able to describe such situations as a multiple of the number of rows, - * rather than a fixed number of distinct values. But in other cases a - * fixed number is correct (eg, a boolean column). - * ---------------- - */ - float4 stadistinct; - - /* ---------------- - * To allow keeping statistics on different kinds of datatypes, - * we do not hard-wire any particular meaning for the remaining - * statistical fields. Instead, we provide several "slots" in which - * statistical data can be placed. Each slot includes: - * kind integer code identifying kind of data (see below) - * op OID of associated operator, if needed - * coll OID of relevant collation, or 0 if none - * numbers float4 array (for statistical values) - * values anyarray (for representations of data values) - * The ID, operator, and collation fields are never NULL; they are zeroes - * in an unused slot. The numbers and values fields are NULL in an - * unused slot, and might also be NULL in a used slot if the slot kind - * has no need for one or the other. - * ---------------- - */ - - int16 stakind1; - int16 stakind2; - int16 stakind3; - int16 stakind4; - int16 stakind5; - - Oid staop1 BKI_LOOKUP_OPT(pg_operator); - Oid staop2 BKI_LOOKUP_OPT(pg_operator); - Oid staop3 BKI_LOOKUP_OPT(pg_operator); - Oid staop4 BKI_LOOKUP_OPT(pg_operator); - Oid staop5 BKI_LOOKUP_OPT(pg_operator); - - Oid stacoll1 BKI_LOOKUP_OPT(pg_collation); - Oid stacoll2 BKI_LOOKUP_OPT(pg_collation); - Oid stacoll3 BKI_LOOKUP_OPT(pg_collation); - Oid stacoll4 BKI_LOOKUP_OPT(pg_collation); - Oid stacoll5 BKI_LOOKUP_OPT(pg_collation); - -#ifdef CATALOG_VARLEN /* variable-length fields start here */ - float4 stanumbers1[1]; - float4 stanumbers2[1]; - float4 stanumbers3[1]; - float4 stanumbers4[1]; - float4 stanumbers5[1]; - - /* - * Values in these arrays are values of the column's data type, or of some - * related type such as an array element type. We presently have to cheat - * quite a bit to allow polymorphic arrays of this kind, but perhaps - * someday it'll be a less bogus facility. - */ - anyarray stavalues1; - anyarray stavalues2; - anyarray stavalues3; - anyarray stavalues4; - anyarray stavalues5; -#endif -} FormData_pg_statistic; - -#define STATISTIC_NUM_SLOTS 5 - - -/* ---------------- - * Form_pg_statistic corresponds to a pointer to a tuple with - * the format of pg_statistic relation. - * ---------------- - */ -typedef FormData_pg_statistic *Form_pg_statistic; - -DECLARE_TOAST(pg_statistic, 2840, 2841); - -DECLARE_UNIQUE_INDEX_PKEY(pg_statistic_relid_att_inh_index, 2696, StatisticRelidAttnumInhIndexId, on pg_statistic using btree(starelid oid_ops, staattnum int2_ops, stainherit bool_ops)); - -DECLARE_FOREIGN_KEY((starelid, staattnum), pg_attribute, (attrelid, attnum)); - -#ifdef EXPOSE_TO_CLIENT_CODE - -/* - * Several statistical slot "kinds" are defined by core PostgreSQL, as - * documented below. Also, custom data types can define their own "kind" - * codes by mutual agreement between a custom typanalyze routine and the - * selectivity estimation functions of the type's operators. - * - * Code reading the pg_statistic relation should not assume that a particular - * data "kind" will appear in any particular slot. Instead, search the - * stakind fields to see if the desired data is available. (The standard - * function get_attstatsslot() may be used for this.) - */ - -/* - * The present allocation of "kind" codes is: - * - * 1-99: reserved for assignment by the core PostgreSQL project - * (values in this range will be documented in this file) - * 100-199: reserved for assignment by the PostGIS project - * (values to be documented in PostGIS documentation) - * 200-299: reserved for assignment by the ESRI ST_Geometry project - * (values to be documented in ESRI ST_Geometry documentation) - * 300-9999: reserved for future public assignments - * - * For private use you may choose a "kind" code at random in the range - * 10000-30000. However, for code that is to be widely disseminated it is - * better to obtain a publicly defined "kind" code by request from the - * PostgreSQL Global Development Group. - */ - -/* - * In a "most common values" slot, staop is the OID of the "=" operator - * used to decide whether values are the same or not, and stacoll is the - * collation used (same as column's collation). stavalues contains - * the K most common non-null values appearing in the column, and stanumbers - * contains their frequencies (fractions of total row count). The values - * shall be ordered in decreasing frequency. Note that since the arrays are - * variable-size, K may be chosen by the statistics collector. Values should - * not appear in MCV unless they have been observed to occur more than once; - * a unique column will have no MCV slot. - */ -#define STATISTIC_KIND_MCV 1 - -/* - * A "histogram" slot describes the distribution of scalar data. staop is - * the OID of the "<" operator that describes the sort ordering, and stacoll - * is the relevant collation. (In theory more than one histogram could appear, - * if a datatype has more than one useful sort operator or we care about more - * than one collation. Currently the collation will always be that of the - * underlying column.) stavalues contains M (>=2) non-null values that - * divide the non-null column data values into M-1 bins of approximately equal - * population. The first stavalues item is the MIN and the last is the MAX. - * stanumbers is not used and should be NULL. IMPORTANT POINT: if an MCV - * slot is also provided, then the histogram describes the data distribution - * *after removing the values listed in MCV* (thus, it's a "compressed - * histogram" in the technical parlance). This allows a more accurate - * representation of the distribution of a column with some very-common - * values. In a column with only a few distinct values, it's possible that - * the MCV list describes the entire data population; in this case the - * histogram reduces to empty and should be omitted. - */ -#define STATISTIC_KIND_HISTOGRAM 2 - -/* - * A "correlation" slot describes the correlation between the physical order - * of table tuples and the ordering of data values of this column, as seen - * by the "<" operator identified by staop with the collation identified by - * stacoll. (As with the histogram, more than one entry could theoretically - * appear.) stavalues is not used and should be NULL. stanumbers contains - * a single entry, the correlation coefficient between the sequence of data - * values and the sequence of their actual tuple positions. The coefficient - * ranges from +1 to -1. - */ -#define STATISTIC_KIND_CORRELATION 3 - -/* - * A "most common elements" slot is similar to a "most common values" slot, - * except that it stores the most common non-null *elements* of the column - * values. This is useful when the column datatype is an array or some other - * type with identifiable elements (for instance, tsvector). staop contains - * the equality operator appropriate to the element type, and stacoll - * contains the collation to use with it. stavalues contains - * the most common element values, and stanumbers their frequencies. Unlike - * MCV slots, frequencies are measured as the fraction of non-null rows the - * element value appears in, not the frequency of all rows. Also unlike - * MCV slots, the values are sorted into the element type's default order - * (to support binary search for a particular value). Since this puts the - * minimum and maximum frequencies at unpredictable spots in stanumbers, - * there are two extra members of stanumbers, holding copies of the minimum - * and maximum frequencies. Optionally, there can be a third extra member, - * which holds the frequency of null elements (expressed in the same terms: - * the fraction of non-null rows that contain at least one null element). If - * this member is omitted, the column is presumed to contain no null elements. - * - * Note: in current usage for tsvector columns, the stavalues elements are of - * type text, even though their representation within tsvector is not - * exactly text. - */ -#define STATISTIC_KIND_MCELEM 4 - -/* - * A "distinct elements count histogram" slot describes the distribution of - * the number of distinct element values present in each row of an array-type - * column. Only non-null rows are considered, and only non-null elements. - * staop contains the equality operator appropriate to the element type, - * and stacoll contains the collation to use with it. - * stavalues is not used and should be NULL. The last member of stanumbers is - * the average count of distinct element values over all non-null rows. The - * preceding M (>=2) members form a histogram that divides the population of - * distinct-elements counts into M-1 bins of approximately equal population. - * The first of these is the minimum observed count, and the last the maximum. - */ -#define STATISTIC_KIND_DECHIST 5 - -/* - * A "length histogram" slot describes the distribution of range lengths in - * rows of a range-type column. stanumbers contains a single entry, the - * fraction of empty ranges. stavalues is a histogram of non-empty lengths, in - * a format similar to STATISTIC_KIND_HISTOGRAM: it contains M (>=2) range - * values that divide the column data values into M-1 bins of approximately - * equal population. The lengths are stored as float8s, as measured by the - * range type's subdiff function. Only non-null rows are considered. - */ -#define STATISTIC_KIND_RANGE_LENGTH_HISTOGRAM 6 - -/* - * A "bounds histogram" slot is similar to STATISTIC_KIND_HISTOGRAM, but for - * a range-type column. stavalues contains M (>=2) range values that divide - * the column data values into M-1 bins of approximately equal population. - * Unlike a regular scalar histogram, this is actually two histograms combined - * into a single array, with the lower bounds of each value forming a - * histogram of lower bounds, and the upper bounds a histogram of upper - * bounds. Only non-NULL, non-empty ranges are included. - */ -#define STATISTIC_KIND_BOUNDS_HISTOGRAM 7 - -#endif /* EXPOSE_TO_CLIENT_CODE */ - -#endif /* PG_STATISTIC_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_statistic_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_statistic_d.h deleted file mode 100644 index a9e6aa99d..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_statistic_d.h +++ /dev/null @@ -1,195 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_statistic_d.h - * Macro definitions for pg_statistic - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_STATISTIC_D_H -#define PG_STATISTIC_D_H - -#define StatisticRelationId 2619 -#define StatisticRelidAttnumInhIndexId 2696 - -#define Anum_pg_statistic_starelid 1 -#define Anum_pg_statistic_staattnum 2 -#define Anum_pg_statistic_stainherit 3 -#define Anum_pg_statistic_stanullfrac 4 -#define Anum_pg_statistic_stawidth 5 -#define Anum_pg_statistic_stadistinct 6 -#define Anum_pg_statistic_stakind1 7 -#define Anum_pg_statistic_stakind2 8 -#define Anum_pg_statistic_stakind3 9 -#define Anum_pg_statistic_stakind4 10 -#define Anum_pg_statistic_stakind5 11 -#define Anum_pg_statistic_staop1 12 -#define Anum_pg_statistic_staop2 13 -#define Anum_pg_statistic_staop3 14 -#define Anum_pg_statistic_staop4 15 -#define Anum_pg_statistic_staop5 16 -#define Anum_pg_statistic_stacoll1 17 -#define Anum_pg_statistic_stacoll2 18 -#define Anum_pg_statistic_stacoll3 19 -#define Anum_pg_statistic_stacoll4 20 -#define Anum_pg_statistic_stacoll5 21 -#define Anum_pg_statistic_stanumbers1 22 -#define Anum_pg_statistic_stanumbers2 23 -#define Anum_pg_statistic_stanumbers3 24 -#define Anum_pg_statistic_stanumbers4 25 -#define Anum_pg_statistic_stanumbers5 26 -#define Anum_pg_statistic_stavalues1 27 -#define Anum_pg_statistic_stavalues2 28 -#define Anum_pg_statistic_stavalues3 29 -#define Anum_pg_statistic_stavalues4 30 -#define Anum_pg_statistic_stavalues5 31 - -#define Natts_pg_statistic 31 - - -/* - * Several statistical slot "kinds" are defined by core PostgreSQL, as - * documented below. Also, custom data types can define their own "kind" - * codes by mutual agreement between a custom typanalyze routine and the - * selectivity estimation functions of the type's operators. - * - * Code reading the pg_statistic relation should not assume that a particular - * data "kind" will appear in any particular slot. Instead, search the - * stakind fields to see if the desired data is available. (The standard - * function get_attstatsslot() may be used for this.) - */ - -/* - * The present allocation of "kind" codes is: - * - * 1-99: reserved for assignment by the core PostgreSQL project - * (values in this range will be documented in this file) - * 100-199: reserved for assignment by the PostGIS project - * (values to be documented in PostGIS documentation) - * 200-299: reserved for assignment by the ESRI ST_Geometry project - * (values to be documented in ESRI ST_Geometry documentation) - * 300-9999: reserved for future public assignments - * - * For private use you may choose a "kind" code at random in the range - * 10000-30000. However, for code that is to be widely disseminated it is - * better to obtain a publicly defined "kind" code by request from the - * PostgreSQL Global Development Group. - */ - -/* - * In a "most common values" slot, staop is the OID of the "=" operator - * used to decide whether values are the same or not, and stacoll is the - * collation used (same as column's collation). stavalues contains - * the K most common non-null values appearing in the column, and stanumbers - * contains their frequencies (fractions of total row count). The values - * shall be ordered in decreasing frequency. Note that since the arrays are - * variable-size, K may be chosen by the statistics collector. Values should - * not appear in MCV unless they have been observed to occur more than once; - * a unique column will have no MCV slot. - */ -#define STATISTIC_KIND_MCV 1 - -/* - * A "histogram" slot describes the distribution of scalar data. staop is - * the OID of the "<" operator that describes the sort ordering, and stacoll - * is the relevant collation. (In theory more than one histogram could appear, - * if a datatype has more than one useful sort operator or we care about more - * than one collation. Currently the collation will always be that of the - * underlying column.) stavalues contains M (>=2) non-null values that - * divide the non-null column data values into M-1 bins of approximately equal - * population. The first stavalues item is the MIN and the last is the MAX. - * stanumbers is not used and should be NULL. IMPORTANT POINT: if an MCV - * slot is also provided, then the histogram describes the data distribution - * *after removing the values listed in MCV* (thus, it's a "compressed - * histogram" in the technical parlance). This allows a more accurate - * representation of the distribution of a column with some very-common - * values. In a column with only a few distinct values, it's possible that - * the MCV list describes the entire data population; in this case the - * histogram reduces to empty and should be omitted. - */ -#define STATISTIC_KIND_HISTOGRAM 2 - -/* - * A "correlation" slot describes the correlation between the physical order - * of table tuples and the ordering of data values of this column, as seen - * by the "<" operator identified by staop with the collation identified by - * stacoll. (As with the histogram, more than one entry could theoretically - * appear.) stavalues is not used and should be NULL. stanumbers contains - * a single entry, the correlation coefficient between the sequence of data - * values and the sequence of their actual tuple positions. The coefficient - * ranges from +1 to -1. - */ -#define STATISTIC_KIND_CORRELATION 3 - -/* - * A "most common elements" slot is similar to a "most common values" slot, - * except that it stores the most common non-null *elements* of the column - * values. This is useful when the column datatype is an array or some other - * type with identifiable elements (for instance, tsvector). staop contains - * the equality operator appropriate to the element type, and stacoll - * contains the collation to use with it. stavalues contains - * the most common element values, and stanumbers their frequencies. Unlike - * MCV slots, frequencies are measured as the fraction of non-null rows the - * element value appears in, not the frequency of all rows. Also unlike - * MCV slots, the values are sorted into the element type's default order - * (to support binary search for a particular value). Since this puts the - * minimum and maximum frequencies at unpredictable spots in stanumbers, - * there are two extra members of stanumbers, holding copies of the minimum - * and maximum frequencies. Optionally, there can be a third extra member, - * which holds the frequency of null elements (expressed in the same terms: - * the fraction of non-null rows that contain at least one null element). If - * this member is omitted, the column is presumed to contain no null elements. - * - * Note: in current usage for tsvector columns, the stavalues elements are of - * type text, even though their representation within tsvector is not - * exactly text. - */ -#define STATISTIC_KIND_MCELEM 4 - -/* - * A "distinct elements count histogram" slot describes the distribution of - * the number of distinct element values present in each row of an array-type - * column. Only non-null rows are considered, and only non-null elements. - * staop contains the equality operator appropriate to the element type, - * and stacoll contains the collation to use with it. - * stavalues is not used and should be NULL. The last member of stanumbers is - * the average count of distinct element values over all non-null rows. The - * preceding M (>=2) members form a histogram that divides the population of - * distinct-elements counts into M-1 bins of approximately equal population. - * The first of these is the minimum observed count, and the last the maximum. - */ -#define STATISTIC_KIND_DECHIST 5 - -/* - * A "length histogram" slot describes the distribution of range lengths in - * rows of a range-type column. stanumbers contains a single entry, the - * fraction of empty ranges. stavalues is a histogram of non-empty lengths, in - * a format similar to STATISTIC_KIND_HISTOGRAM: it contains M (>=2) range - * values that divide the column data values into M-1 bins of approximately - * equal population. The lengths are stored as float8s, as measured by the - * range type's subdiff function. Only non-null rows are considered. - */ -#define STATISTIC_KIND_RANGE_LENGTH_HISTOGRAM 6 - -/* - * A "bounds histogram" slot is similar to STATISTIC_KIND_HISTOGRAM, but for - * a range-type column. stavalues contains M (>=2) range values that divide - * the column data values into M-1 bins of approximately equal population. - * Unlike a regular scalar histogram, this is actually two histograms combined - * into a single array, with the lower bounds of each value forming a - * histogram of lower bounds, and the upper bounds a histogram of upper - * bounds. Only non-NULL, non-empty ranges are included. - */ -#define STATISTIC_KIND_BOUNDS_HISTOGRAM 7 - - -#endif /* PG_STATISTIC_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_statistic_ext.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_statistic_ext.h deleted file mode 100644 index b8520ba92..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_statistic_ext.h +++ /dev/null @@ -1,88 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_statistic_ext.h - * definition of the "extended statistics" system catalog - * (pg_statistic_ext) - * - * Note that pg_statistic_ext contains the definitions of extended statistics - * objects, created by CREATE STATISTICS, but not the actual statistical data, - * created by running ANALYZE. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_statistic_ext.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_STATISTIC_EXT_H -#define PG_STATISTIC_EXT_H - -#include "catalog/genbki.h" -#include "catalog/pg_statistic_ext_d.h" - -/* ---------------- - * pg_statistic_ext definition. cpp turns this into - * typedef struct FormData_pg_statistic_ext - * ---------------- - */ -CATALOG(pg_statistic_ext,3381,StatisticExtRelationId) -{ - Oid oid; /* oid */ - - Oid stxrelid BKI_LOOKUP(pg_class); /* relation containing - * attributes */ - - /* These two fields form the unique key for the entry: */ - NameData stxname; /* statistics object name */ - Oid stxnamespace BKI_LOOKUP(pg_namespace); /* OID of statistics - * object's namespace */ - - Oid stxowner BKI_LOOKUP(pg_authid); /* statistics object's owner */ - int32 stxstattarget BKI_DEFAULT(-1); /* statistics target */ - - /* - * variable-length fields start here, but we allow direct access to - * stxkeys - */ - int2vector stxkeys BKI_FORCE_NOT_NULL; /* array of column keys */ - -#ifdef CATALOG_VARLEN - char stxkind[1] BKI_FORCE_NOT_NULL; /* statistics kinds requested - * to build */ - pg_node_tree stxexprs; /* A list of expression trees for stats - * attributes that are not simple column - * references. */ -#endif - -} FormData_pg_statistic_ext; - -/* ---------------- - * Form_pg_statistic_ext corresponds to a pointer to a tuple with - * the format of pg_statistic_ext relation. - * ---------------- - */ -typedef FormData_pg_statistic_ext *Form_pg_statistic_ext; - -DECLARE_TOAST(pg_statistic_ext, 3439, 3440); - -DECLARE_UNIQUE_INDEX_PKEY(pg_statistic_ext_oid_index, 3380, StatisticExtOidIndexId, on pg_statistic_ext using btree(oid oid_ops)); -DECLARE_UNIQUE_INDEX(pg_statistic_ext_name_index, 3997, StatisticExtNameIndexId, on pg_statistic_ext using btree(stxname name_ops, stxnamespace oid_ops)); -DECLARE_INDEX(pg_statistic_ext_relid_index, 3379, StatisticExtRelidIndexId, on pg_statistic_ext using btree(stxrelid oid_ops)); - -DECLARE_ARRAY_FOREIGN_KEY((stxrelid, stxkeys), pg_attribute, (attrelid, attnum)); - -#ifdef EXPOSE_TO_CLIENT_CODE - -#define STATS_EXT_NDISTINCT 'd' -#define STATS_EXT_DEPENDENCIES 'f' -#define STATS_EXT_MCV 'm' -#define STATS_EXT_EXPRESSIONS 'e' - -#endif /* EXPOSE_TO_CLIENT_CODE */ - -#endif /* PG_STATISTIC_EXT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_statistic_ext_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_statistic_ext_d.h deleted file mode 100644 index 937585955..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_statistic_ext_d.h +++ /dev/null @@ -1,45 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_statistic_ext_d.h - * Macro definitions for pg_statistic_ext - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_STATISTIC_EXT_D_H -#define PG_STATISTIC_EXT_D_H - -#define StatisticExtRelationId 3381 -#define StatisticExtOidIndexId 3380 -#define StatisticExtNameIndexId 3997 -#define StatisticExtRelidIndexId 3379 - -#define Anum_pg_statistic_ext_oid 1 -#define Anum_pg_statistic_ext_stxrelid 2 -#define Anum_pg_statistic_ext_stxname 3 -#define Anum_pg_statistic_ext_stxnamespace 4 -#define Anum_pg_statistic_ext_stxowner 5 -#define Anum_pg_statistic_ext_stxstattarget 6 -#define Anum_pg_statistic_ext_stxkeys 7 -#define Anum_pg_statistic_ext_stxkind 8 -#define Anum_pg_statistic_ext_stxexprs 9 - -#define Natts_pg_statistic_ext 9 - - -#define STATS_EXT_NDISTINCT 'd' -#define STATS_EXT_DEPENDENCIES 'f' -#define STATS_EXT_MCV 'm' -#define STATS_EXT_EXPRESSIONS 'e' - - -#endif /* PG_STATISTIC_EXT_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_transform.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_transform.h deleted file mode 100644 index 2a0269151..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_transform.h +++ /dev/null @@ -1,48 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_transform.h - * definition of the "transform" system catalog (pg_transform) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_transform.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_TRANSFORM_H -#define PG_TRANSFORM_H - -#include "catalog/genbki.h" -#include "catalog/pg_transform_d.h" - -/* ---------------- - * pg_transform definition. cpp turns this into - * typedef struct FormData_pg_transform - * ---------------- - */ -CATALOG(pg_transform,3576,TransformRelationId) -{ - Oid oid; /* oid */ - Oid trftype BKI_LOOKUP(pg_type); - Oid trflang BKI_LOOKUP(pg_language); - regproc trffromsql BKI_LOOKUP_OPT(pg_proc); - regproc trftosql BKI_LOOKUP_OPT(pg_proc); -} FormData_pg_transform; - -/* ---------------- - * Form_pg_transform corresponds to a pointer to a tuple with - * the format of pg_transform relation. - * ---------------- - */ -typedef FormData_pg_transform *Form_pg_transform; - -DECLARE_UNIQUE_INDEX_PKEY(pg_transform_oid_index, 3574, TransformOidIndexId, on pg_transform using btree(oid oid_ops)); -DECLARE_UNIQUE_INDEX(pg_transform_type_lang_index, 3575, TransformTypeLangIndexId, on pg_transform using btree(trftype oid_ops, trflang oid_ops)); - -#endif /* PG_TRANSFORM_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_transform_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_transform_d.h deleted file mode 100644 index ca3a1dcb4..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_transform_d.h +++ /dev/null @@ -1,34 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_transform_d.h - * Macro definitions for pg_transform - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_TRANSFORM_D_H -#define PG_TRANSFORM_D_H - -#define TransformRelationId 3576 -#define TransformOidIndexId 3574 -#define TransformTypeLangIndexId 3575 - -#define Anum_pg_transform_oid 1 -#define Anum_pg_transform_trftype 2 -#define Anum_pg_transform_trflang 3 -#define Anum_pg_transform_trffromsql 4 -#define Anum_pg_transform_trftosql 5 - -#define Natts_pg_transform 5 - - -#endif /* PG_TRANSFORM_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_trigger.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_trigger.h deleted file mode 100644 index 194277bca..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_trigger.h +++ /dev/null @@ -1,153 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_trigger.h - * definition of the "trigger" system catalog (pg_trigger) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_trigger.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_TRIGGER_H -#define PG_TRIGGER_H - -#include "catalog/genbki.h" -#include "catalog/pg_trigger_d.h" - -/* ---------------- - * pg_trigger definition. cpp turns this into - * typedef struct FormData_pg_trigger - * - * Note: when tgconstraint is nonzero, tgconstrrelid, tgconstrindid, - * tgdeferrable, and tginitdeferred are largely redundant with the referenced - * pg_constraint entry. However, it is possible for a non-deferrable trigger - * to be associated with a deferrable constraint. - * ---------------- - */ -CATALOG(pg_trigger,2620,TriggerRelationId) -{ - Oid oid; /* oid */ - Oid tgrelid BKI_LOOKUP(pg_class); /* relation trigger is - * attached to */ - Oid tgparentid BKI_LOOKUP_OPT(pg_trigger); /* OID of parent - * trigger, if any */ - NameData tgname; /* trigger's name */ - Oid tgfoid BKI_LOOKUP(pg_proc); /* OID of function to be called */ - int16 tgtype; /* BEFORE/AFTER/INSTEAD, UPDATE/DELETE/INSERT, - * ROW/STATEMENT; see below */ - char tgenabled; /* trigger's firing configuration WRT - * session_replication_role */ - bool tgisinternal; /* trigger is system-generated */ - Oid tgconstrrelid BKI_LOOKUP_OPT(pg_class); /* constraint's FROM - * table, if any */ - Oid tgconstrindid BKI_LOOKUP_OPT(pg_class); /* constraint's - * supporting index, if - * any */ - Oid tgconstraint BKI_LOOKUP_OPT(pg_constraint); /* associated - * pg_constraint entry, - * if any */ - bool tgdeferrable; /* constraint trigger is deferrable */ - bool tginitdeferred; /* constraint trigger is deferred initially */ - int16 tgnargs; /* # of extra arguments in tgargs */ - - /* - * Variable-length fields start here, but we allow direct access to - * tgattr. Note: tgattr and tgargs must not be null. - */ - int2vector tgattr BKI_FORCE_NOT_NULL; /* column numbers, if trigger is - * on columns */ - -#ifdef CATALOG_VARLEN - bytea tgargs BKI_FORCE_NOT_NULL; /* first\000second\000tgnargs\000 */ - pg_node_tree tgqual; /* WHEN expression, or NULL if none */ - NameData tgoldtable; /* old transition table, or NULL if none */ - NameData tgnewtable; /* new transition table, or NULL if none */ -#endif -} FormData_pg_trigger; - -/* ---------------- - * Form_pg_trigger corresponds to a pointer to a tuple with - * the format of pg_trigger relation. - * ---------------- - */ -typedef FormData_pg_trigger *Form_pg_trigger; - -DECLARE_TOAST(pg_trigger, 2336, 2337); - -DECLARE_INDEX(pg_trigger_tgconstraint_index, 2699, TriggerConstraintIndexId, on pg_trigger using btree(tgconstraint oid_ops)); -DECLARE_UNIQUE_INDEX(pg_trigger_tgrelid_tgname_index, 2701, TriggerRelidNameIndexId, on pg_trigger using btree(tgrelid oid_ops, tgname name_ops)); -DECLARE_UNIQUE_INDEX_PKEY(pg_trigger_oid_index, 2702, TriggerOidIndexId, on pg_trigger using btree(oid oid_ops)); - -DECLARE_ARRAY_FOREIGN_KEY((tgrelid, tgattr), pg_attribute, (attrelid, attnum)); - -#ifdef EXPOSE_TO_CLIENT_CODE - -/* Bits within tgtype */ -#define TRIGGER_TYPE_ROW (1 << 0) -#define TRIGGER_TYPE_BEFORE (1 << 1) -#define TRIGGER_TYPE_INSERT (1 << 2) -#define TRIGGER_TYPE_DELETE (1 << 3) -#define TRIGGER_TYPE_UPDATE (1 << 4) -#define TRIGGER_TYPE_TRUNCATE (1 << 5) -#define TRIGGER_TYPE_INSTEAD (1 << 6) - -#define TRIGGER_TYPE_LEVEL_MASK (TRIGGER_TYPE_ROW) -#define TRIGGER_TYPE_STATEMENT 0 - -/* Note bits within TRIGGER_TYPE_TIMING_MASK aren't adjacent */ -#define TRIGGER_TYPE_TIMING_MASK \ - (TRIGGER_TYPE_BEFORE | TRIGGER_TYPE_INSTEAD) -#define TRIGGER_TYPE_AFTER 0 - -#define TRIGGER_TYPE_EVENT_MASK \ - (TRIGGER_TYPE_INSERT | TRIGGER_TYPE_DELETE | TRIGGER_TYPE_UPDATE | TRIGGER_TYPE_TRUNCATE) - -/* Macros for manipulating tgtype */ -#define TRIGGER_CLEAR_TYPE(type) ((type) = 0) - -#define TRIGGER_SETT_ROW(type) ((type) |= TRIGGER_TYPE_ROW) -#define TRIGGER_SETT_STATEMENT(type) ((type) |= TRIGGER_TYPE_STATEMENT) -#define TRIGGER_SETT_BEFORE(type) ((type) |= TRIGGER_TYPE_BEFORE) -#define TRIGGER_SETT_AFTER(type) ((type) |= TRIGGER_TYPE_AFTER) -#define TRIGGER_SETT_INSTEAD(type) ((type) |= TRIGGER_TYPE_INSTEAD) -#define TRIGGER_SETT_INSERT(type) ((type) |= TRIGGER_TYPE_INSERT) -#define TRIGGER_SETT_DELETE(type) ((type) |= TRIGGER_TYPE_DELETE) -#define TRIGGER_SETT_UPDATE(type) ((type) |= TRIGGER_TYPE_UPDATE) -#define TRIGGER_SETT_TRUNCATE(type) ((type) |= TRIGGER_TYPE_TRUNCATE) - -#define TRIGGER_FOR_ROW(type) ((type) & TRIGGER_TYPE_ROW) -#define TRIGGER_FOR_BEFORE(type) (((type) & TRIGGER_TYPE_TIMING_MASK) == TRIGGER_TYPE_BEFORE) -#define TRIGGER_FOR_AFTER(type) (((type) & TRIGGER_TYPE_TIMING_MASK) == TRIGGER_TYPE_AFTER) -#define TRIGGER_FOR_INSTEAD(type) (((type) & TRIGGER_TYPE_TIMING_MASK) == TRIGGER_TYPE_INSTEAD) -#define TRIGGER_FOR_INSERT(type) ((type) & TRIGGER_TYPE_INSERT) -#define TRIGGER_FOR_DELETE(type) ((type) & TRIGGER_TYPE_DELETE) -#define TRIGGER_FOR_UPDATE(type) ((type) & TRIGGER_TYPE_UPDATE) -#define TRIGGER_FOR_TRUNCATE(type) ((type) & TRIGGER_TYPE_TRUNCATE) - -/* - * Efficient macro for checking if tgtype matches a particular level - * (TRIGGER_TYPE_ROW or TRIGGER_TYPE_STATEMENT), timing (TRIGGER_TYPE_BEFORE, - * TRIGGER_TYPE_AFTER or TRIGGER_TYPE_INSTEAD), and event (TRIGGER_TYPE_INSERT, - * TRIGGER_TYPE_DELETE, TRIGGER_TYPE_UPDATE, or TRIGGER_TYPE_TRUNCATE). Note - * that a tgtype can match more than one event, but only one level or timing. - */ -#define TRIGGER_TYPE_MATCHES(type, level, timing, event) \ - (((type) & (TRIGGER_TYPE_LEVEL_MASK | TRIGGER_TYPE_TIMING_MASK | (event))) == ((level) | (timing) | (event))) - -/* - * Macro to determine whether tgnewtable or tgoldtable has been specified for - * a trigger. - */ -#define TRIGGER_USES_TRANSITION_TABLE(namepointer) \ - ((namepointer) != (char *) NULL) - -#endif /* EXPOSE_TO_CLIENT_CODE */ - -#endif /* PG_TRIGGER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_trigger_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_trigger_d.h deleted file mode 100644 index e20967b44..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_trigger_d.h +++ /dev/null @@ -1,109 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_trigger_d.h - * Macro definitions for pg_trigger - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_TRIGGER_D_H -#define PG_TRIGGER_D_H - -#define TriggerRelationId 2620 -#define TriggerConstraintIndexId 2699 -#define TriggerRelidNameIndexId 2701 -#define TriggerOidIndexId 2702 - -#define Anum_pg_trigger_oid 1 -#define Anum_pg_trigger_tgrelid 2 -#define Anum_pg_trigger_tgparentid 3 -#define Anum_pg_trigger_tgname 4 -#define Anum_pg_trigger_tgfoid 5 -#define Anum_pg_trigger_tgtype 6 -#define Anum_pg_trigger_tgenabled 7 -#define Anum_pg_trigger_tgisinternal 8 -#define Anum_pg_trigger_tgconstrrelid 9 -#define Anum_pg_trigger_tgconstrindid 10 -#define Anum_pg_trigger_tgconstraint 11 -#define Anum_pg_trigger_tgdeferrable 12 -#define Anum_pg_trigger_tginitdeferred 13 -#define Anum_pg_trigger_tgnargs 14 -#define Anum_pg_trigger_tgattr 15 -#define Anum_pg_trigger_tgargs 16 -#define Anum_pg_trigger_tgqual 17 -#define Anum_pg_trigger_tgoldtable 18 -#define Anum_pg_trigger_tgnewtable 19 - -#define Natts_pg_trigger 19 - - -/* Bits within tgtype */ -#define TRIGGER_TYPE_ROW (1 << 0) -#define TRIGGER_TYPE_BEFORE (1 << 1) -#define TRIGGER_TYPE_INSERT (1 << 2) -#define TRIGGER_TYPE_DELETE (1 << 3) -#define TRIGGER_TYPE_UPDATE (1 << 4) -#define TRIGGER_TYPE_TRUNCATE (1 << 5) -#define TRIGGER_TYPE_INSTEAD (1 << 6) - -#define TRIGGER_TYPE_LEVEL_MASK (TRIGGER_TYPE_ROW) -#define TRIGGER_TYPE_STATEMENT 0 - -/* Note bits within TRIGGER_TYPE_TIMING_MASK aren't adjacent */ -#define TRIGGER_TYPE_TIMING_MASK \ - (TRIGGER_TYPE_BEFORE | TRIGGER_TYPE_INSTEAD) -#define TRIGGER_TYPE_AFTER 0 - -#define TRIGGER_TYPE_EVENT_MASK \ - (TRIGGER_TYPE_INSERT | TRIGGER_TYPE_DELETE | TRIGGER_TYPE_UPDATE | TRIGGER_TYPE_TRUNCATE) - -/* Macros for manipulating tgtype */ -#define TRIGGER_CLEAR_TYPE(type) ((type) = 0) - -#define TRIGGER_SETT_ROW(type) ((type) |= TRIGGER_TYPE_ROW) -#define TRIGGER_SETT_STATEMENT(type) ((type) |= TRIGGER_TYPE_STATEMENT) -#define TRIGGER_SETT_BEFORE(type) ((type) |= TRIGGER_TYPE_BEFORE) -#define TRIGGER_SETT_AFTER(type) ((type) |= TRIGGER_TYPE_AFTER) -#define TRIGGER_SETT_INSTEAD(type) ((type) |= TRIGGER_TYPE_INSTEAD) -#define TRIGGER_SETT_INSERT(type) ((type) |= TRIGGER_TYPE_INSERT) -#define TRIGGER_SETT_DELETE(type) ((type) |= TRIGGER_TYPE_DELETE) -#define TRIGGER_SETT_UPDATE(type) ((type) |= TRIGGER_TYPE_UPDATE) -#define TRIGGER_SETT_TRUNCATE(type) ((type) |= TRIGGER_TYPE_TRUNCATE) - -#define TRIGGER_FOR_ROW(type) ((type) & TRIGGER_TYPE_ROW) -#define TRIGGER_FOR_BEFORE(type) (((type) & TRIGGER_TYPE_TIMING_MASK) == TRIGGER_TYPE_BEFORE) -#define TRIGGER_FOR_AFTER(type) (((type) & TRIGGER_TYPE_TIMING_MASK) == TRIGGER_TYPE_AFTER) -#define TRIGGER_FOR_INSTEAD(type) (((type) & TRIGGER_TYPE_TIMING_MASK) == TRIGGER_TYPE_INSTEAD) -#define TRIGGER_FOR_INSERT(type) ((type) & TRIGGER_TYPE_INSERT) -#define TRIGGER_FOR_DELETE(type) ((type) & TRIGGER_TYPE_DELETE) -#define TRIGGER_FOR_UPDATE(type) ((type) & TRIGGER_TYPE_UPDATE) -#define TRIGGER_FOR_TRUNCATE(type) ((type) & TRIGGER_TYPE_TRUNCATE) - -/* - * Efficient macro for checking if tgtype matches a particular level - * (TRIGGER_TYPE_ROW or TRIGGER_TYPE_STATEMENT), timing (TRIGGER_TYPE_BEFORE, - * TRIGGER_TYPE_AFTER or TRIGGER_TYPE_INSTEAD), and event (TRIGGER_TYPE_INSERT, - * TRIGGER_TYPE_DELETE, TRIGGER_TYPE_UPDATE, or TRIGGER_TYPE_TRUNCATE). Note - * that a tgtype can match more than one event, but only one level or timing. - */ -#define TRIGGER_TYPE_MATCHES(type, level, timing, event) \ - (((type) & (TRIGGER_TYPE_LEVEL_MASK | TRIGGER_TYPE_TIMING_MASK | (event))) == ((level) | (timing) | (event))) - -/* - * Macro to determine whether tgnewtable or tgoldtable has been specified for - * a trigger. - */ -#define TRIGGER_USES_TRANSITION_TABLE(namepointer) \ - ((namepointer) != (char *) NULL) - - -#endif /* PG_TRIGGER_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_config.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_config.h deleted file mode 100644 index e5a308475..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_config.h +++ /dev/null @@ -1,53 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_ts_config.h - * definition of the "text search configuration" system catalog - * (pg_ts_config) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_ts_config.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_TS_CONFIG_H -#define PG_TS_CONFIG_H - -#include "catalog/genbki.h" -#include "catalog/pg_ts_config_d.h" - -/* ---------------- - * pg_ts_config definition. cpp turns this into - * typedef struct FormData_pg_ts_config - * ---------------- - */ -CATALOG(pg_ts_config,3602,TSConfigRelationId) -{ - /* oid */ - Oid oid; - - /* name of configuration */ - NameData cfgname; - - /* name space */ - Oid cfgnamespace BKI_DEFAULT(pg_catalog) BKI_LOOKUP(pg_namespace); - - /* owner */ - Oid cfgowner BKI_DEFAULT(POSTGRES) BKI_LOOKUP(pg_authid); - - /* OID of parser */ - Oid cfgparser BKI_LOOKUP(pg_ts_parser); -} FormData_pg_ts_config; - -typedef FormData_pg_ts_config *Form_pg_ts_config; - -DECLARE_UNIQUE_INDEX(pg_ts_config_cfgname_index, 3608, TSConfigNameNspIndexId, on pg_ts_config using btree(cfgname name_ops, cfgnamespace oid_ops)); -DECLARE_UNIQUE_INDEX_PKEY(pg_ts_config_oid_index, 3712, TSConfigOidIndexId, on pg_ts_config using btree(oid oid_ops)); - -#endif /* PG_TS_CONFIG_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_config_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_config_d.h deleted file mode 100644 index 9a9bda7ba..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_config_d.h +++ /dev/null @@ -1,34 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_ts_config_d.h - * Macro definitions for pg_ts_config - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_TS_CONFIG_D_H -#define PG_TS_CONFIG_D_H - -#define TSConfigRelationId 3602 -#define TSConfigNameNspIndexId 3608 -#define TSConfigOidIndexId 3712 - -#define Anum_pg_ts_config_oid 1 -#define Anum_pg_ts_config_cfgname 2 -#define Anum_pg_ts_config_cfgnamespace 3 -#define Anum_pg_ts_config_cfgowner 4 -#define Anum_pg_ts_config_cfgparser 5 - -#define Natts_pg_ts_config 5 - - -#endif /* PG_TS_CONFIG_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_dict.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_dict.h deleted file mode 100644 index 4b6188f4f..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_dict.h +++ /dev/null @@ -1,59 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_ts_dict.h - * definition of the "text search dictionary" system catalog (pg_ts_dict) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_ts_dict.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_TS_DICT_H -#define PG_TS_DICT_H - -#include "catalog/genbki.h" -#include "catalog/pg_ts_dict_d.h" - -/* ---------------- - * pg_ts_dict definition. cpp turns this into - * typedef struct FormData_pg_ts_dict - * ---------------- - */ -CATALOG(pg_ts_dict,3600,TSDictionaryRelationId) -{ - /* oid */ - Oid oid; - - /* dictionary name */ - NameData dictname; - - /* name space */ - Oid dictnamespace BKI_DEFAULT(pg_catalog) BKI_LOOKUP(pg_namespace); - - /* owner */ - Oid dictowner BKI_DEFAULT(POSTGRES) BKI_LOOKUP(pg_authid); - - /* dictionary's template */ - Oid dicttemplate BKI_LOOKUP(pg_ts_template); - -#ifdef CATALOG_VARLEN /* variable-length fields start here */ - /* options passed to dict_init() */ - text dictinitoption; -#endif -} FormData_pg_ts_dict; - -typedef FormData_pg_ts_dict *Form_pg_ts_dict; - -DECLARE_TOAST(pg_ts_dict, 4169, 4170); - -DECLARE_UNIQUE_INDEX(pg_ts_dict_dictname_index, 3604, TSDictionaryNameNspIndexId, on pg_ts_dict using btree(dictname name_ops, dictnamespace oid_ops)); -DECLARE_UNIQUE_INDEX_PKEY(pg_ts_dict_oid_index, 3605, TSDictionaryOidIndexId, on pg_ts_dict using btree(oid oid_ops)); - -#endif /* PG_TS_DICT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_dict_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_dict_d.h deleted file mode 100644 index 34614093d..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_dict_d.h +++ /dev/null @@ -1,35 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_ts_dict_d.h - * Macro definitions for pg_ts_dict - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_TS_DICT_D_H -#define PG_TS_DICT_D_H - -#define TSDictionaryRelationId 3600 -#define TSDictionaryNameNspIndexId 3604 -#define TSDictionaryOidIndexId 3605 - -#define Anum_pg_ts_dict_oid 1 -#define Anum_pg_ts_dict_dictname 2 -#define Anum_pg_ts_dict_dictnamespace 3 -#define Anum_pg_ts_dict_dictowner 4 -#define Anum_pg_ts_dict_dicttemplate 5 -#define Anum_pg_ts_dict_dictinitoption 6 - -#define Natts_pg_ts_dict 6 - - -#endif /* PG_TS_DICT_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_parser.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_parser.h deleted file mode 100644 index c2d474dca..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_parser.h +++ /dev/null @@ -1,60 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_ts_parser.h - * definition of the "text search parser" system catalog (pg_ts_parser) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_ts_parser.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_TS_PARSER_H -#define PG_TS_PARSER_H - -#include "catalog/genbki.h" -#include "catalog/pg_ts_parser_d.h" - -/* ---------------- - * pg_ts_parser definition. cpp turns this into - * typedef struct FormData_pg_ts_parser - * ---------------- - */ -CATALOG(pg_ts_parser,3601,TSParserRelationId) -{ - Oid oid; /* oid */ - - /* parser's name */ - NameData prsname; - - /* name space */ - Oid prsnamespace BKI_DEFAULT(pg_catalog) BKI_LOOKUP(pg_namespace); - - /* init parsing session */ - regproc prsstart BKI_LOOKUP(pg_proc); - - /* return next token */ - regproc prstoken BKI_LOOKUP(pg_proc); - - /* finalize parsing session */ - regproc prsend BKI_LOOKUP(pg_proc); - - /* return data for headline creation */ - regproc prsheadline BKI_LOOKUP_OPT(pg_proc); - - /* return descriptions of lexeme's types */ - regproc prslextype BKI_LOOKUP(pg_proc); -} FormData_pg_ts_parser; - -typedef FormData_pg_ts_parser *Form_pg_ts_parser; - -DECLARE_UNIQUE_INDEX(pg_ts_parser_prsname_index, 3606, TSParserNameNspIndexId, on pg_ts_parser using btree(prsname name_ops, prsnamespace oid_ops)); -DECLARE_UNIQUE_INDEX_PKEY(pg_ts_parser_oid_index, 3607, TSParserOidIndexId, on pg_ts_parser using btree(oid oid_ops)); - -#endif /* PG_TS_PARSER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_parser_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_parser_d.h deleted file mode 100644 index 64032e860..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_parser_d.h +++ /dev/null @@ -1,37 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_ts_parser_d.h - * Macro definitions for pg_ts_parser - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_TS_PARSER_D_H -#define PG_TS_PARSER_D_H - -#define TSParserRelationId 3601 -#define TSParserNameNspIndexId 3606 -#define TSParserOidIndexId 3607 - -#define Anum_pg_ts_parser_oid 1 -#define Anum_pg_ts_parser_prsname 2 -#define Anum_pg_ts_parser_prsnamespace 3 -#define Anum_pg_ts_parser_prsstart 4 -#define Anum_pg_ts_parser_prstoken 5 -#define Anum_pg_ts_parser_prsend 6 -#define Anum_pg_ts_parser_prsheadline 7 -#define Anum_pg_ts_parser_prslextype 8 - -#define Natts_pg_ts_parser 8 - - -#endif /* PG_TS_PARSER_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_template.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_template.h deleted file mode 100644 index 2a553fef5..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_template.h +++ /dev/null @@ -1,51 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_ts_template.h - * definition of the "text search template" system catalog (pg_ts_template) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_ts_template.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_TS_TEMPLATE_H -#define PG_TS_TEMPLATE_H - -#include "catalog/genbki.h" -#include "catalog/pg_ts_template_d.h" - -/* ---------------- - * pg_ts_template definition. cpp turns this into - * typedef struct FormData_pg_ts_template - * ---------------- - */ -CATALOG(pg_ts_template,3764,TSTemplateRelationId) -{ - Oid oid; /* oid */ - - /* template name */ - NameData tmplname; - - /* name space */ - Oid tmplnamespace BKI_DEFAULT(pg_catalog) BKI_LOOKUP(pg_namespace); - - /* initialization method of dict (may be 0) */ - regproc tmplinit BKI_LOOKUP_OPT(pg_proc); - - /* base method of dictionary */ - regproc tmpllexize BKI_LOOKUP(pg_proc); -} FormData_pg_ts_template; - -typedef FormData_pg_ts_template *Form_pg_ts_template; - -DECLARE_UNIQUE_INDEX(pg_ts_template_tmplname_index, 3766, TSTemplateNameNspIndexId, on pg_ts_template using btree(tmplname name_ops, tmplnamespace oid_ops)); -DECLARE_UNIQUE_INDEX_PKEY(pg_ts_template_oid_index, 3767, TSTemplateOidIndexId, on pg_ts_template using btree(oid oid_ops)); - -#endif /* PG_TS_TEMPLATE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_template_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_template_d.h deleted file mode 100644 index cac7d9bb4..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_ts_template_d.h +++ /dev/null @@ -1,34 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_ts_template_d.h - * Macro definitions for pg_ts_template - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_TS_TEMPLATE_D_H -#define PG_TS_TEMPLATE_D_H - -#define TSTemplateRelationId 3764 -#define TSTemplateNameNspIndexId 3766 -#define TSTemplateOidIndexId 3767 - -#define Anum_pg_ts_template_oid 1 -#define Anum_pg_ts_template_tmplname 2 -#define Anum_pg_ts_template_tmplnamespace 3 -#define Anum_pg_ts_template_tmplinit 4 -#define Anum_pg_ts_template_tmpllexize 5 - -#define Natts_pg_ts_template 5 - - -#endif /* PG_TS_TEMPLATE_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_type.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_type.h deleted file mode 100644 index 48a255913..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_type.h +++ /dev/null @@ -1,404 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_type.h - * definition of the "type" system catalog (pg_type) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/pg_type.h - * - * NOTES - * The Catalog.pm module reads this file and derives schema - * information. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_TYPE_H -#define PG_TYPE_H - -#include "catalog/genbki.h" -#include "catalog/objectaddress.h" -#include "catalog/pg_type_d.h" -#include "nodes/nodes.h" - -/* ---------------- - * pg_type definition. cpp turns this into - * typedef struct FormData_pg_type - * - * Some of the values in a pg_type instance are copied into - * pg_attribute instances. Some parts of Postgres use the pg_type copy, - * while others use the pg_attribute copy, so they must match. - * See struct FormData_pg_attribute for details. - * ---------------- - */ -CATALOG(pg_type,1247,TypeRelationId) BKI_BOOTSTRAP BKI_ROWTYPE_OID(71,TypeRelation_Rowtype_Id) BKI_SCHEMA_MACRO -{ - Oid oid; /* oid */ - - /* type name */ - NameData typname; - - /* OID of namespace containing this type */ - Oid typnamespace BKI_DEFAULT(pg_catalog) BKI_LOOKUP(pg_namespace); - - /* type owner */ - Oid typowner BKI_DEFAULT(POSTGRES) BKI_LOOKUP(pg_authid); - - /* - * For a fixed-size type, typlen is the number of bytes we use to - * represent a value of this type, e.g. 4 for an int4. But for a - * variable-length type, typlen is negative. We use -1 to indicate a - * "varlena" type (one that has a length word), -2 to indicate a - * null-terminated C string. - */ - int16 typlen BKI_ARRAY_DEFAULT(-1); - - /* - * typbyval determines whether internal Postgres routines pass a value of - * this type by value or by reference. typbyval had better be false if - * the length is not 1, 2, or 4 (or 8 on 8-byte-Datum machines). - * Variable-length types are always passed by reference. Note that - * typbyval can be false even if the length would allow pass-by-value; for - * example, type macaddr8 is pass-by-ref even when Datum is 8 bytes. - */ - bool typbyval BKI_ARRAY_DEFAULT(f); - - /* - * typtype is 'b' for a base type, 'c' for a composite type (e.g., a - * table's rowtype), 'd' for a domain, 'e' for an enum type, 'p' for a - * pseudo-type, or 'r' for a range type. (Use the TYPTYPE macros below.) - * - * If typtype is 'c', typrelid is the OID of the class' entry in pg_class. - */ - char typtype BKI_DEFAULT(b) BKI_ARRAY_DEFAULT(b); - - /* - * typcategory and typispreferred help the parser distinguish preferred - * and non-preferred coercions. The category can be any single ASCII - * character (but not \0). The categories used for built-in types are - * identified by the TYPCATEGORY macros below. - */ - - /* arbitrary type classification */ - char typcategory BKI_ARRAY_DEFAULT(A); - - /* is type "preferred" within its category? */ - bool typispreferred BKI_DEFAULT(f) BKI_ARRAY_DEFAULT(f); - - /* - * If typisdefined is false, the entry is only a placeholder (forward - * reference). We know the type's name and owner, but not yet anything - * else about it. - */ - bool typisdefined BKI_DEFAULT(t); - - /* delimiter for arrays of this type */ - char typdelim BKI_DEFAULT(','); - - /* associated pg_class OID if a composite type, else 0 */ - Oid typrelid BKI_DEFAULT(0) BKI_ARRAY_DEFAULT(0) BKI_LOOKUP_OPT(pg_class); - - /* - * Type-specific subscripting handler. If typsubscript is 0, it means - * that this type doesn't support subscripting. Note that various parts - * of the system deem types to be "true" array types only if their - * typsubscript is array_subscript_handler. - */ - regproc typsubscript BKI_DEFAULT(-) BKI_ARRAY_DEFAULT(array_subscript_handler) BKI_LOOKUP_OPT(pg_proc); - - /* - * If typelem is not 0 then it identifies another row in pg_type, defining - * the type yielded by subscripting. This should be 0 if typsubscript is - * 0. However, it can be 0 when typsubscript isn't 0, if the handler - * doesn't need typelem to determine the subscripting result type. Note - * that a typelem dependency is considered to imply physical containment - * of the element type in this type; so DDL changes on the element type - * might be restricted by the presence of this type. - */ - Oid typelem BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_type); - - /* - * If there is a "true" array type having this type as element type, - * typarray links to it. Zero if no associated "true" array type. - */ - Oid typarray BKI_DEFAULT(0) BKI_ARRAY_DEFAULT(0) BKI_LOOKUP_OPT(pg_type); - - /* - * I/O conversion procedures for the datatype. - */ - - /* text format (required) */ - regproc typinput BKI_ARRAY_DEFAULT(array_in) BKI_LOOKUP(pg_proc); - regproc typoutput BKI_ARRAY_DEFAULT(array_out) BKI_LOOKUP(pg_proc); - - /* binary format (optional) */ - regproc typreceive BKI_ARRAY_DEFAULT(array_recv) BKI_LOOKUP_OPT(pg_proc); - regproc typsend BKI_ARRAY_DEFAULT(array_send) BKI_LOOKUP_OPT(pg_proc); - - /* - * I/O functions for optional type modifiers. - */ - regproc typmodin BKI_DEFAULT(-) BKI_LOOKUP_OPT(pg_proc); - regproc typmodout BKI_DEFAULT(-) BKI_LOOKUP_OPT(pg_proc); - - /* - * Custom ANALYZE procedure for the datatype (0 selects the default). - */ - regproc typanalyze BKI_DEFAULT(-) BKI_ARRAY_DEFAULT(array_typanalyze) BKI_LOOKUP_OPT(pg_proc); - - /* ---------------- - * typalign is the alignment required when storing a value of this - * type. It applies to storage on disk as well as most - * representations of the value inside Postgres. When multiple values - * are stored consecutively, such as in the representation of a - * complete row on disk, padding is inserted before a datum of this - * type so that it begins on the specified boundary. The alignment - * reference is the beginning of the first datum in the sequence. - * - * 'c' = CHAR alignment, ie no alignment needed. - * 's' = SHORT alignment (2 bytes on most machines). - * 'i' = INT alignment (4 bytes on most machines). - * 'd' = DOUBLE alignment (8 bytes on many machines, but by no means all). - * (Use the TYPALIGN macros below for these.) - * - * See include/access/tupmacs.h for the macros that compute these - * alignment requirements. Note also that we allow the nominal alignment - * to be violated when storing "packed" varlenas; the TOAST mechanism - * takes care of hiding that from most code. - * - * NOTE: for types used in system tables, it is critical that the - * size and alignment defined in pg_type agree with the way that the - * compiler will lay out the field in a struct representing a table row. - * ---------------- - */ - char typalign; - - /* ---------------- - * typstorage tells if the type is prepared for toasting and what - * the default strategy for attributes of this type should be. - * - * 'p' PLAIN type not prepared for toasting - * 'e' EXTERNAL external storage possible, don't try to compress - * 'x' EXTENDED try to compress and store external if required - * 'm' MAIN like 'x' but try to keep in main tuple - * (Use the TYPSTORAGE macros below for these.) - * - * Note that 'm' fields can also be moved out to secondary storage, - * but only as a last resort ('e' and 'x' fields are moved first). - * ---------------- - */ - char typstorage BKI_DEFAULT(p) BKI_ARRAY_DEFAULT(x); - - /* - * This flag represents a "NOT NULL" constraint against this datatype. - * - * If true, the attnotnull column for a corresponding table column using - * this datatype will always enforce the NOT NULL constraint. - * - * Used primarily for domain types. - */ - bool typnotnull BKI_DEFAULT(f); - - /* - * Domains use typbasetype to show the base (or domain) type that the - * domain is based on. Zero if the type is not a domain. - */ - Oid typbasetype BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_type); - - /* - * Domains use typtypmod to record the typmod to be applied to their base - * type (-1 if base type does not use a typmod). -1 if this type is not a - * domain. - */ - int32 typtypmod BKI_DEFAULT(-1); - - /* - * typndims is the declared number of dimensions for an array domain type - * (i.e., typbasetype is an array type). Otherwise zero. - */ - int32 typndims BKI_DEFAULT(0); - - /* - * Collation: 0 if type cannot use collations, nonzero (typically - * DEFAULT_COLLATION_OID) for collatable base types, possibly some other - * OID for domains over collatable types - */ - Oid typcollation BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_collation); - -#ifdef CATALOG_VARLEN /* variable-length fields start here */ - - /* - * If typdefaultbin is not NULL, it is the nodeToString representation of - * a default expression for the type. Currently this is only used for - * domains. - */ - pg_node_tree typdefaultbin BKI_DEFAULT(_null_) BKI_ARRAY_DEFAULT(_null_); - - /* - * typdefault is NULL if the type has no associated default value. If - * typdefaultbin is not NULL, typdefault must contain a human-readable - * version of the default expression represented by typdefaultbin. If - * typdefaultbin is NULL and typdefault is not, then typdefault is the - * external representation of the type's default value, which may be fed - * to the type's input converter to produce a constant. - */ - text typdefault BKI_DEFAULT(_null_) BKI_ARRAY_DEFAULT(_null_); - - /* - * Access permissions - */ - aclitem typacl[1] BKI_DEFAULT(_null_); -#endif -} FormData_pg_type; - -/* ---------------- - * Form_pg_type corresponds to a pointer to a row with - * the format of pg_type relation. - * ---------------- - */ -typedef FormData_pg_type *Form_pg_type; - -DECLARE_TOAST(pg_type, 4171, 4172); - -DECLARE_UNIQUE_INDEX_PKEY(pg_type_oid_index, 2703, TypeOidIndexId, on pg_type using btree(oid oid_ops)); -DECLARE_UNIQUE_INDEX(pg_type_typname_nsp_index, 2704, TypeNameNspIndexId, on pg_type using btree(typname name_ops, typnamespace oid_ops)); - -#ifdef EXPOSE_TO_CLIENT_CODE - -/* - * macros for values of poor-mans-enumerated-type columns - */ -#define TYPTYPE_BASE 'b' /* base type (ordinary scalar type) */ -#define TYPTYPE_COMPOSITE 'c' /* composite (e.g., table's rowtype) */ -#define TYPTYPE_DOMAIN 'd' /* domain over another type */ -#define TYPTYPE_ENUM 'e' /* enumerated type */ -#define TYPTYPE_MULTIRANGE 'm' /* multirange type */ -#define TYPTYPE_PSEUDO 'p' /* pseudo-type */ -#define TYPTYPE_RANGE 'r' /* range type */ - -#define TYPCATEGORY_INVALID '\0' /* not an allowed category */ -#define TYPCATEGORY_ARRAY 'A' -#define TYPCATEGORY_BOOLEAN 'B' -#define TYPCATEGORY_COMPOSITE 'C' -#define TYPCATEGORY_DATETIME 'D' -#define TYPCATEGORY_ENUM 'E' -#define TYPCATEGORY_GEOMETRIC 'G' -#define TYPCATEGORY_NETWORK 'I' /* think INET */ -#define TYPCATEGORY_NUMERIC 'N' -#define TYPCATEGORY_PSEUDOTYPE 'P' -#define TYPCATEGORY_RANGE 'R' -#define TYPCATEGORY_STRING 'S' -#define TYPCATEGORY_TIMESPAN 'T' -#define TYPCATEGORY_USER 'U' -#define TYPCATEGORY_BITSTRING 'V' /* er ... "varbit"? */ -#define TYPCATEGORY_UNKNOWN 'X' -#define TYPCATEGORY_INTERNAL 'Z' - -#define TYPALIGN_CHAR 'c' /* char alignment (i.e. unaligned) */ -#define TYPALIGN_SHORT 's' /* short alignment (typically 2 bytes) */ -#define TYPALIGN_INT 'i' /* int alignment (typically 4 bytes) */ -#define TYPALIGN_DOUBLE 'd' /* double alignment (often 8 bytes) */ - -#define TYPSTORAGE_PLAIN 'p' /* type not prepared for toasting */ -#define TYPSTORAGE_EXTERNAL 'e' /* toastable, don't try to compress */ -#define TYPSTORAGE_EXTENDED 'x' /* fully toastable */ -#define TYPSTORAGE_MAIN 'm' /* like 'x' but try to store inline */ - -/* Is a type OID a polymorphic pseudotype? (Beware of multiple evaluation) */ -#define IsPolymorphicType(typid) \ - (IsPolymorphicTypeFamily1(typid) || \ - IsPolymorphicTypeFamily2(typid)) - -/* Code not part of polymorphic type resolution should not use these macros: */ -#define IsPolymorphicTypeFamily1(typid) \ - ((typid) == ANYELEMENTOID || \ - (typid) == ANYARRAYOID || \ - (typid) == ANYNONARRAYOID || \ - (typid) == ANYENUMOID || \ - (typid) == ANYRANGEOID || \ - (typid) == ANYMULTIRANGEOID) - -#define IsPolymorphicTypeFamily2(typid) \ - ((typid) == ANYCOMPATIBLEOID || \ - (typid) == ANYCOMPATIBLEARRAYOID || \ - (typid) == ANYCOMPATIBLENONARRAYOID || \ - (typid) == ANYCOMPATIBLERANGEOID || \ - (typid) == ANYCOMPATIBLEMULTIRANGEOID) - -/* Is this a "true" array type? (Requires fmgroids.h) */ -#define IsTrueArrayType(typeForm) \ - (OidIsValid((typeForm)->typelem) && \ - (typeForm)->typsubscript == F_ARRAY_SUBSCRIPT_HANDLER) - -/* - * Backwards compatibility for ancient random spellings of pg_type OID macros. - * Don't use these names in new code. - */ -#define CASHOID MONEYOID -#define LSNOID PG_LSNOID - -#endif /* EXPOSE_TO_CLIENT_CODE */ - - -extern ObjectAddress TypeShellMake(const char *typeName, - Oid typeNamespace, - Oid ownerId); - -extern ObjectAddress TypeCreate(Oid newTypeOid, - const char *typeName, - Oid typeNamespace, - Oid relationOid, - char relationKind, - Oid ownerId, - int16 internalSize, - char typeType, - char typeCategory, - bool typePreferred, - char typDelim, - Oid inputProcedure, - Oid outputProcedure, - Oid receiveProcedure, - Oid sendProcedure, - Oid typmodinProcedure, - Oid typmodoutProcedure, - Oid analyzeProcedure, - Oid subscriptProcedure, - Oid elementType, - bool isImplicitArray, - Oid arrayType, - Oid baseType, - const char *defaultTypeValue, - char *defaultTypeBin, - bool passedByValue, - char alignment, - char storage, - int32 typeMod, - int32 typNDims, - bool typeNotNull, - Oid typeCollation); - -extern void GenerateTypeDependencies(HeapTuple typeTuple, - Relation typeCatalog, - Node *defaultExpr, - void *typacl, - char relationKind, /* only for relation - * rowtypes */ - bool isImplicitArray, - bool isDependentType, - bool makeExtensionDep, - bool rebuild); - -extern void RenameTypeInternal(Oid typeOid, const char *newTypeName, - Oid typeNamespace); - -extern char *makeArrayTypeName(const char *typeName, Oid typeNamespace); - -extern bool moveArrayTypeName(Oid typeOid, const char *typeName, - Oid typeNamespace); - -extern char *makeMultirangeTypeName(const char *rangeTypeName, - Oid typeNamespace); - -#endif /* PG_TYPE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_type_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_type_d.h deleted file mode 100644 index 3877e0b73..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/pg_type_d.h +++ /dev/null @@ -1,324 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_type_d.h - * Macro definitions for pg_type - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/catalog/genbki.pl - * - *------------------------------------------------------------------------- - */ -#ifndef PG_TYPE_D_H -#define PG_TYPE_D_H - -#define TypeRelationId 1247 -#define TypeRelation_Rowtype_Id 71 -#define TypeOidIndexId 2703 -#define TypeNameNspIndexId 2704 - -#define Anum_pg_type_oid 1 -#define Anum_pg_type_typname 2 -#define Anum_pg_type_typnamespace 3 -#define Anum_pg_type_typowner 4 -#define Anum_pg_type_typlen 5 -#define Anum_pg_type_typbyval 6 -#define Anum_pg_type_typtype 7 -#define Anum_pg_type_typcategory 8 -#define Anum_pg_type_typispreferred 9 -#define Anum_pg_type_typisdefined 10 -#define Anum_pg_type_typdelim 11 -#define Anum_pg_type_typrelid 12 -#define Anum_pg_type_typsubscript 13 -#define Anum_pg_type_typelem 14 -#define Anum_pg_type_typarray 15 -#define Anum_pg_type_typinput 16 -#define Anum_pg_type_typoutput 17 -#define Anum_pg_type_typreceive 18 -#define Anum_pg_type_typsend 19 -#define Anum_pg_type_typmodin 20 -#define Anum_pg_type_typmodout 21 -#define Anum_pg_type_typanalyze 22 -#define Anum_pg_type_typalign 23 -#define Anum_pg_type_typstorage 24 -#define Anum_pg_type_typnotnull 25 -#define Anum_pg_type_typbasetype 26 -#define Anum_pg_type_typtypmod 27 -#define Anum_pg_type_typndims 28 -#define Anum_pg_type_typcollation 29 -#define Anum_pg_type_typdefaultbin 30 -#define Anum_pg_type_typdefault 31 -#define Anum_pg_type_typacl 32 - -#define Natts_pg_type 32 - - -/* - * macros for values of poor-mans-enumerated-type columns - */ -#define TYPTYPE_BASE 'b' /* base type (ordinary scalar type) */ -#define TYPTYPE_COMPOSITE 'c' /* composite (e.g., table's rowtype) */ -#define TYPTYPE_DOMAIN 'd' /* domain over another type */ -#define TYPTYPE_ENUM 'e' /* enumerated type */ -#define TYPTYPE_MULTIRANGE 'm' /* multirange type */ -#define TYPTYPE_PSEUDO 'p' /* pseudo-type */ -#define TYPTYPE_RANGE 'r' /* range type */ - -#define TYPCATEGORY_INVALID '\0' /* not an allowed category */ -#define TYPCATEGORY_ARRAY 'A' -#define TYPCATEGORY_BOOLEAN 'B' -#define TYPCATEGORY_COMPOSITE 'C' -#define TYPCATEGORY_DATETIME 'D' -#define TYPCATEGORY_ENUM 'E' -#define TYPCATEGORY_GEOMETRIC 'G' -#define TYPCATEGORY_NETWORK 'I' /* think INET */ -#define TYPCATEGORY_NUMERIC 'N' -#define TYPCATEGORY_PSEUDOTYPE 'P' -#define TYPCATEGORY_RANGE 'R' -#define TYPCATEGORY_STRING 'S' -#define TYPCATEGORY_TIMESPAN 'T' -#define TYPCATEGORY_USER 'U' -#define TYPCATEGORY_BITSTRING 'V' /* er ... "varbit"? */ -#define TYPCATEGORY_UNKNOWN 'X' -#define TYPCATEGORY_INTERNAL 'Z' - -#define TYPALIGN_CHAR 'c' /* char alignment (i.e. unaligned) */ -#define TYPALIGN_SHORT 's' /* short alignment (typically 2 bytes) */ -#define TYPALIGN_INT 'i' /* int alignment (typically 4 bytes) */ -#define TYPALIGN_DOUBLE 'd' /* double alignment (often 8 bytes) */ - -#define TYPSTORAGE_PLAIN 'p' /* type not prepared for toasting */ -#define TYPSTORAGE_EXTERNAL 'e' /* toastable, don't try to compress */ -#define TYPSTORAGE_EXTENDED 'x' /* fully toastable */ -#define TYPSTORAGE_MAIN 'm' /* like 'x' but try to store inline */ - -/* Is a type OID a polymorphic pseudotype? (Beware of multiple evaluation) */ -#define IsPolymorphicType(typid) \ - (IsPolymorphicTypeFamily1(typid) || \ - IsPolymorphicTypeFamily2(typid)) - -/* Code not part of polymorphic type resolution should not use these macros: */ -#define IsPolymorphicTypeFamily1(typid) \ - ((typid) == ANYELEMENTOID || \ - (typid) == ANYARRAYOID || \ - (typid) == ANYNONARRAYOID || \ - (typid) == ANYENUMOID || \ - (typid) == ANYRANGEOID || \ - (typid) == ANYMULTIRANGEOID) - -#define IsPolymorphicTypeFamily2(typid) \ - ((typid) == ANYCOMPATIBLEOID || \ - (typid) == ANYCOMPATIBLEARRAYOID || \ - (typid) == ANYCOMPATIBLENONARRAYOID || \ - (typid) == ANYCOMPATIBLERANGEOID || \ - (typid) == ANYCOMPATIBLEMULTIRANGEOID) - -/* Is this a "true" array type? (Requires fmgroids.h) */ -#define IsTrueArrayType(typeForm) \ - (OidIsValid((typeForm)->typelem) && \ - (typeForm)->typsubscript == F_ARRAY_SUBSCRIPT_HANDLER) - -/* - * Backwards compatibility for ancient random spellings of pg_type OID macros. - * Don't use these names in new code. - */ -#define CASHOID MONEYOID -#define LSNOID PG_LSNOID - -#define BOOLOID 16 -#define BYTEAOID 17 -#define CHAROID 18 -#define NAMEOID 19 -#define INT8OID 20 -#define INT2OID 21 -#define INT2VECTOROID 22 -#define INT4OID 23 -#define REGPROCOID 24 -#define TEXTOID 25 -#define OIDOID 26 -#define TIDOID 27 -#define XIDOID 28 -#define CIDOID 29 -#define OIDVECTOROID 30 -#define JSONOID 114 -#define XMLOID 142 -#define PG_NODE_TREEOID 194 -#define PG_NDISTINCTOID 3361 -#define PG_DEPENDENCIESOID 3402 -#define PG_MCV_LISTOID 5017 -#define PG_DDL_COMMANDOID 32 -#define XID8OID 5069 -#define POINTOID 600 -#define LSEGOID 601 -#define PATHOID 602 -#define BOXOID 603 -#define POLYGONOID 604 -#define LINEOID 628 -#define FLOAT4OID 700 -#define FLOAT8OID 701 -#define UNKNOWNOID 705 -#define CIRCLEOID 718 -#define MONEYOID 790 -#define MACADDROID 829 -#define INETOID 869 -#define CIDROID 650 -#define MACADDR8OID 774 -#define ACLITEMOID 1033 -#define BPCHAROID 1042 -#define VARCHAROID 1043 -#define DATEOID 1082 -#define TIMEOID 1083 -#define TIMESTAMPOID 1114 -#define TIMESTAMPTZOID 1184 -#define INTERVALOID 1186 -#define TIMETZOID 1266 -#define BITOID 1560 -#define VARBITOID 1562 -#define NUMERICOID 1700 -#define REFCURSOROID 1790 -#define REGPROCEDUREOID 2202 -#define REGOPEROID 2203 -#define REGOPERATOROID 2204 -#define REGCLASSOID 2205 -#define REGCOLLATIONOID 4191 -#define REGTYPEOID 2206 -#define REGROLEOID 4096 -#define REGNAMESPACEOID 4089 -#define UUIDOID 2950 -#define PG_LSNOID 3220 -#define TSVECTOROID 3614 -#define GTSVECTOROID 3642 -#define TSQUERYOID 3615 -#define REGCONFIGOID 3734 -#define REGDICTIONARYOID 3769 -#define JSONBOID 3802 -#define JSONPATHOID 4072 -#define TXID_SNAPSHOTOID 2970 -#define PG_SNAPSHOTOID 5038 -#define INT4RANGEOID 3904 -#define NUMRANGEOID 3906 -#define TSRANGEOID 3908 -#define TSTZRANGEOID 3910 -#define DATERANGEOID 3912 -#define INT8RANGEOID 3926 -#define INT4MULTIRANGEOID 4451 -#define NUMMULTIRANGEOID 4532 -#define TSMULTIRANGEOID 4533 -#define TSTZMULTIRANGEOID 4534 -#define DATEMULTIRANGEOID 4535 -#define INT8MULTIRANGEOID 4536 -#define RECORDOID 2249 -#define RECORDARRAYOID 2287 -#define CSTRINGOID 2275 -#define ANYOID 2276 -#define ANYARRAYOID 2277 -#define VOIDOID 2278 -#define TRIGGEROID 2279 -#define EVENT_TRIGGEROID 3838 -#define LANGUAGE_HANDLEROID 2280 -#define INTERNALOID 2281 -#define ANYELEMENTOID 2283 -#define ANYNONARRAYOID 2776 -#define ANYENUMOID 3500 -#define FDW_HANDLEROID 3115 -#define INDEX_AM_HANDLEROID 325 -#define TSM_HANDLEROID 3310 -#define TABLE_AM_HANDLEROID 269 -#define ANYRANGEOID 3831 -#define ANYCOMPATIBLEOID 5077 -#define ANYCOMPATIBLEARRAYOID 5078 -#define ANYCOMPATIBLENONARRAYOID 5079 -#define ANYCOMPATIBLERANGEOID 5080 -#define ANYMULTIRANGEOID 4537 -#define ANYCOMPATIBLEMULTIRANGEOID 4538 -#define PG_BRIN_BLOOM_SUMMARYOID 4600 -#define PG_BRIN_MINMAX_MULTI_SUMMARYOID 4601 -#define BOOLARRAYOID 1000 -#define BYTEAARRAYOID 1001 -#define CHARARRAYOID 1002 -#define NAMEARRAYOID 1003 -#define INT8ARRAYOID 1016 -#define INT2ARRAYOID 1005 -#define INT2VECTORARRAYOID 1006 -#define INT4ARRAYOID 1007 -#define REGPROCARRAYOID 1008 -#define TEXTARRAYOID 1009 -#define OIDARRAYOID 1028 -#define TIDARRAYOID 1010 -#define XIDARRAYOID 1011 -#define CIDARRAYOID 1012 -#define OIDVECTORARRAYOID 1013 -#define PG_TYPEARRAYOID 210 -#define PG_ATTRIBUTEARRAYOID 270 -#define PG_PROCARRAYOID 272 -#define PG_CLASSARRAYOID 273 -#define JSONARRAYOID 199 -#define XMLARRAYOID 143 -#define XID8ARRAYOID 271 -#define POINTARRAYOID 1017 -#define LSEGARRAYOID 1018 -#define PATHARRAYOID 1019 -#define BOXARRAYOID 1020 -#define POLYGONARRAYOID 1027 -#define LINEARRAYOID 629 -#define FLOAT4ARRAYOID 1021 -#define FLOAT8ARRAYOID 1022 -#define CIRCLEARRAYOID 719 -#define MONEYARRAYOID 791 -#define MACADDRARRAYOID 1040 -#define INETARRAYOID 1041 -#define CIDRARRAYOID 651 -#define MACADDR8ARRAYOID 775 -#define ACLITEMARRAYOID 1034 -#define BPCHARARRAYOID 1014 -#define VARCHARARRAYOID 1015 -#define DATEARRAYOID 1182 -#define TIMEARRAYOID 1183 -#define TIMESTAMPARRAYOID 1115 -#define TIMESTAMPTZARRAYOID 1185 -#define INTERVALARRAYOID 1187 -#define TIMETZARRAYOID 1270 -#define BITARRAYOID 1561 -#define VARBITARRAYOID 1563 -#define NUMERICARRAYOID 1231 -#define REFCURSORARRAYOID 2201 -#define REGPROCEDUREARRAYOID 2207 -#define REGOPERARRAYOID 2208 -#define REGOPERATORARRAYOID 2209 -#define REGCLASSARRAYOID 2210 -#define REGCOLLATIONARRAYOID 4192 -#define REGTYPEARRAYOID 2211 -#define REGROLEARRAYOID 4097 -#define REGNAMESPACEARRAYOID 4090 -#define UUIDARRAYOID 2951 -#define PG_LSNARRAYOID 3221 -#define TSVECTORARRAYOID 3643 -#define GTSVECTORARRAYOID 3644 -#define TSQUERYARRAYOID 3645 -#define REGCONFIGARRAYOID 3735 -#define REGDICTIONARYARRAYOID 3770 -#define JSONBARRAYOID 3807 -#define JSONPATHARRAYOID 4073 -#define TXID_SNAPSHOTARRAYOID 2949 -#define PG_SNAPSHOTARRAYOID 5039 -#define INT4RANGEARRAYOID 3905 -#define NUMRANGEARRAYOID 3907 -#define TSRANGEARRAYOID 3909 -#define TSTZRANGEARRAYOID 3911 -#define DATERANGEARRAYOID 3913 -#define INT8RANGEARRAYOID 3927 -#define INT4MULTIRANGEARRAYOID 6150 -#define NUMMULTIRANGEARRAYOID 6151 -#define TSMULTIRANGEARRAYOID 6152 -#define TSTZMULTIRANGEARRAYOID 6153 -#define DATEMULTIRANGEARRAYOID 6155 -#define INT8MULTIRANGEARRAYOID 6157 -#define CSTRINGARRAYOID 1263 - -#endif /* PG_TYPE_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/storage.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/storage.h deleted file mode 100644 index 59f3404ac..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/catalog/storage.h +++ /dev/null @@ -1,50 +0,0 @@ -/*------------------------------------------------------------------------- - * - * storage.h - * prototypes for functions in backend/catalog/storage.c - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/catalog/storage.h - * - *------------------------------------------------------------------------- - */ -#ifndef STORAGE_H -#define STORAGE_H - -#include "storage/block.h" -#include "storage/relfilenode.h" -#include "storage/smgr.h" -#include "utils/relcache.h" - -/* GUC variables */ -extern PGDLLIMPORT int wal_skip_threshold; - -extern SMgrRelation RelationCreateStorage(RelFileNode rnode, - char relpersistence, - bool register_delete); -extern void RelationDropStorage(Relation rel); -extern void RelationPreserveStorage(RelFileNode rnode, bool atCommit); -extern void RelationPreTruncate(Relation rel); -extern void RelationTruncate(Relation rel, BlockNumber nblocks); -extern void RelationCopyStorage(SMgrRelation src, SMgrRelation dst, - ForkNumber forkNum, char relpersistence); -extern bool RelFileNodeSkippingWAL(RelFileNode rnode); -extern Size EstimatePendingSyncsSpace(void); -extern void SerializePendingSyncs(Size maxSize, char *startAddress); -extern void RestorePendingSyncs(char *startAddress); - -/* - * These functions used to be in storage/smgr/smgr.c, which explains the - * naming - */ -extern void smgrDoPendingDeletes(bool isCommit); -extern void smgrDoPendingSyncs(bool isCommit, bool isParallelWorker); -extern int smgrGetPendingDeletes(bool forCommit, RelFileNode **ptr); -extern void AtSubCommit_smgr(void); -extern void AtSubAbort_smgr(void); -extern void PostPrepare_smgr(void); - -#endif /* STORAGE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/async.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/async.h deleted file mode 100644 index 926af933d..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/async.h +++ /dev/null @@ -1,53 +0,0 @@ -/*------------------------------------------------------------------------- - * - * async.h - * Asynchronous notification: NOTIFY, LISTEN, UNLISTEN - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/commands/async.h - * - *------------------------------------------------------------------------- - */ -#ifndef ASYNC_H -#define ASYNC_H - -#include - -/* - * The number of SLRU page buffers we use for the notification queue. - */ -#define NUM_NOTIFY_BUFFERS 8 - -extern PGDLLIMPORT bool Trace_notify; -extern PGDLLIMPORT volatile sig_atomic_t notifyInterruptPending; - -extern Size AsyncShmemSize(void); -extern void AsyncShmemInit(void); - -extern void NotifyMyFrontEnd(const char *channel, - const char *payload, - int32 srcPid); - -/* notify-related SQL statements */ -extern void Async_Notify(const char *channel, const char *payload); -extern void Async_Listen(const char *channel); -extern void Async_Unlisten(const char *channel); -extern void Async_UnlistenAll(void); - -/* perform (or cancel) outbound notify processing at transaction commit */ -extern void PreCommit_Notify(void); -extern void AtCommit_Notify(void); -extern void AtAbort_Notify(void); -extern void AtSubCommit_Notify(void); -extern void AtSubAbort_Notify(void); -extern void AtPrepare_Notify(void); - -/* signal handler for inbound notifies (PROCSIG_NOTIFY_INTERRUPT) */ -extern void HandleNotifyInterrupt(void); - -/* process interrupts */ -extern void ProcessNotifyInterrupt(bool flush); - -#endif /* ASYNC_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/dbcommands.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/dbcommands.h deleted file mode 100644 index c4947fa71..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/dbcommands.h +++ /dev/null @@ -1,36 +0,0 @@ -/*------------------------------------------------------------------------- - * - * dbcommands.h - * Database management commands (create/drop database). - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/commands/dbcommands.h - * - *------------------------------------------------------------------------- - */ -#ifndef DBCOMMANDS_H -#define DBCOMMANDS_H - -#include "access/xlogreader.h" -#include "catalog/objectaddress.h" -#include "lib/stringinfo.h" -#include "parser/parse_node.h" - -extern Oid createdb(ParseState *pstate, const CreatedbStmt *stmt); -extern void dropdb(const char *dbname, bool missing_ok, bool force); -extern void DropDatabase(ParseState *pstate, DropdbStmt *stmt); -extern ObjectAddress RenameDatabase(const char *oldname, const char *newname); -extern Oid AlterDatabase(ParseState *pstate, AlterDatabaseStmt *stmt, bool isTopLevel); -extern ObjectAddress AlterDatabaseRefreshColl(AlterDatabaseRefreshCollStmt *stmt); -extern Oid AlterDatabaseSet(AlterDatabaseSetStmt *stmt); -extern ObjectAddress AlterDatabaseOwner(const char *dbname, Oid newOwnerId); - -extern Oid get_database_oid(const char *dbname, bool missing_ok); -extern char *get_database_name(Oid dbid); - -extern void check_encoding_locale_matches(int encoding, const char *collate, const char *ctype); - -#endif /* DBCOMMANDS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/defrem.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/defrem.h deleted file mode 100644 index 1d3ce246c..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/defrem.h +++ /dev/null @@ -1,160 +0,0 @@ -/*------------------------------------------------------------------------- - * - * defrem.h - * POSTGRES define and remove utility definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/commands/defrem.h - * - *------------------------------------------------------------------------- - */ -#ifndef DEFREM_H -#define DEFREM_H - -#include "catalog/objectaddress.h" -#include "nodes/params.h" -#include "parser/parse_node.h" -#include "tcop/dest.h" -#include "utils/array.h" - -/* commands/dropcmds.c */ -extern void RemoveObjects(DropStmt *stmt); - -/* commands/indexcmds.c */ -extern ObjectAddress DefineIndex(Oid relationId, - IndexStmt *stmt, - Oid indexRelationId, - Oid parentIndexId, - Oid parentConstraintId, - bool is_alter_table, - bool check_rights, - bool check_not_in_use, - bool skip_build, - bool quiet); -extern void ExecReindex(ParseState *pstate, ReindexStmt *stmt, bool isTopLevel); -extern char *makeObjectName(const char *name1, const char *name2, - const char *label); -extern char *ChooseRelationName(const char *name1, const char *name2, - const char *label, Oid namespaceid, - bool isconstraint); -extern bool CheckIndexCompatible(Oid oldId, - const char *accessMethodName, - List *attributeList, - List *exclusionOpNames); -extern Oid GetDefaultOpClass(Oid type_id, Oid am_id); -extern Oid ResolveOpClass(List *opclass, Oid attrType, - const char *accessMethodName, Oid accessMethodId); - -/* commands/functioncmds.c */ -extern ObjectAddress CreateFunction(ParseState *pstate, CreateFunctionStmt *stmt); -extern void RemoveFunctionById(Oid funcOid); -extern ObjectAddress AlterFunction(ParseState *pstate, AlterFunctionStmt *stmt); -extern ObjectAddress CreateCast(CreateCastStmt *stmt); -extern ObjectAddress CreateTransform(CreateTransformStmt *stmt); -extern void IsThereFunctionInNamespace(const char *proname, int pronargs, - oidvector *proargtypes, Oid nspOid); -extern void ExecuteDoStmt(ParseState *pstate, DoStmt *stmt, bool atomic); -extern void ExecuteCallStmt(CallStmt *stmt, ParamListInfo params, bool atomic, DestReceiver *dest); -extern TupleDesc CallStmtResultDesc(CallStmt *stmt); -extern Oid get_transform_oid(Oid type_id, Oid lang_id, bool missing_ok); -extern void interpret_function_parameter_list(ParseState *pstate, - List *parameters, - Oid languageOid, - ObjectType objtype, - oidvector **parameterTypes, - List **parameterTypes_list, - ArrayType **allParameterTypes, - ArrayType **parameterModes, - ArrayType **parameterNames, - List **inParameterNames_list, - List **parameterDefaults, - Oid *variadicArgType, - Oid *requiredResultType); - -/* commands/operatorcmds.c */ -extern ObjectAddress DefineOperator(List *names, List *parameters); -extern void RemoveOperatorById(Oid operOid); -extern ObjectAddress AlterOperator(AlterOperatorStmt *stmt); - -/* commands/statscmds.c */ -extern ObjectAddress CreateStatistics(CreateStatsStmt *stmt); -extern ObjectAddress AlterStatistics(AlterStatsStmt *stmt); -extern void RemoveStatisticsById(Oid statsOid); -extern void RemoveStatisticsDataById(Oid statsOid, bool inh); -extern Oid StatisticsGetRelation(Oid statId, bool missing_ok); - -/* commands/aggregatecmds.c */ -extern ObjectAddress DefineAggregate(ParseState *pstate, List *name, List *args, bool oldstyle, - List *parameters, bool replace); - -/* commands/opclasscmds.c */ -extern ObjectAddress DefineOpClass(CreateOpClassStmt *stmt); -extern ObjectAddress DefineOpFamily(CreateOpFamilyStmt *stmt); -extern Oid AlterOpFamily(AlterOpFamilyStmt *stmt); -extern void IsThereOpClassInNamespace(const char *opcname, Oid opcmethod, - Oid opcnamespace); -extern void IsThereOpFamilyInNamespace(const char *opfname, Oid opfmethod, - Oid opfnamespace); -extern Oid get_opclass_oid(Oid amID, List *opclassname, bool missing_ok); -extern Oid get_opfamily_oid(Oid amID, List *opfamilyname, bool missing_ok); - -/* commands/tsearchcmds.c */ -extern ObjectAddress DefineTSParser(List *names, List *parameters); - -extern ObjectAddress DefineTSDictionary(List *names, List *parameters); -extern ObjectAddress AlterTSDictionary(AlterTSDictionaryStmt *stmt); - -extern ObjectAddress DefineTSTemplate(List *names, List *parameters); - -extern ObjectAddress DefineTSConfiguration(List *names, List *parameters, - ObjectAddress *copied); -extern void RemoveTSConfigurationById(Oid cfgId); -extern ObjectAddress AlterTSConfiguration(AlterTSConfigurationStmt *stmt); - -extern text *serialize_deflist(List *deflist); -extern List *deserialize_deflist(Datum txt); - -/* commands/foreigncmds.c */ -extern ObjectAddress AlterForeignServerOwner(const char *name, Oid newOwnerId); -extern void AlterForeignServerOwner_oid(Oid, Oid newOwnerId); -extern ObjectAddress AlterForeignDataWrapperOwner(const char *name, Oid newOwnerId); -extern void AlterForeignDataWrapperOwner_oid(Oid fwdId, Oid newOwnerId); -extern ObjectAddress CreateForeignDataWrapper(ParseState *pstate, CreateFdwStmt *stmt); -extern ObjectAddress AlterForeignDataWrapper(ParseState *pstate, AlterFdwStmt *stmt); -extern ObjectAddress CreateForeignServer(CreateForeignServerStmt *stmt); -extern ObjectAddress AlterForeignServer(AlterForeignServerStmt *stmt); -extern ObjectAddress CreateUserMapping(CreateUserMappingStmt *stmt); -extern ObjectAddress AlterUserMapping(AlterUserMappingStmt *stmt); -extern Oid RemoveUserMapping(DropUserMappingStmt *stmt); -extern void CreateForeignTable(CreateForeignTableStmt *stmt, Oid relid); -extern void ImportForeignSchema(ImportForeignSchemaStmt *stmt); -extern Datum transformGenericOptions(Oid catalogId, - Datum oldOptions, - List *options, - Oid fdwvalidator); - -/* commands/amcmds.c */ -extern ObjectAddress CreateAccessMethod(CreateAmStmt *stmt); -extern Oid get_index_am_oid(const char *amname, bool missing_ok); -extern Oid get_table_am_oid(const char *amname, bool missing_ok); -extern Oid get_am_oid(const char *amname, bool missing_ok); -extern char *get_am_name(Oid amOid); - -/* support routines in commands/define.c */ - -extern char *defGetString(DefElem *def); -extern double defGetNumeric(DefElem *def); -extern bool defGetBoolean(DefElem *def); -extern int32 defGetInt32(DefElem *def); -extern int64 defGetInt64(DefElem *def); -extern Oid defGetObjectId(DefElem *def); -extern List *defGetQualifiedName(DefElem *def); -extern TypeName *defGetTypeName(DefElem *def); -extern int defGetTypeLength(DefElem *def); -extern List *defGetStringList(DefElem *def); -extern void errorConflictingDefElem(DefElem *defel, ParseState *pstate) pg_attribute_noreturn(); - -#endif /* DEFREM_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/event_trigger.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/event_trigger.h deleted file mode 100644 index 10091c3aa..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/event_trigger.h +++ /dev/null @@ -1,88 +0,0 @@ -/*------------------------------------------------------------------------- - * - * event_trigger.h - * Declarations for command trigger handling. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/commands/event_trigger.h - * - *------------------------------------------------------------------------- - */ -#ifndef EVENT_TRIGGER_H -#define EVENT_TRIGGER_H - -#include "catalog/dependency.h" -#include "catalog/objectaddress.h" -#include "catalog/pg_event_trigger.h" -#include "nodes/parsenodes.h" -#include "tcop/cmdtag.h" -#include "tcop/deparse_utility.h" -#include "utils/aclchk_internal.h" - -typedef struct EventTriggerData -{ - NodeTag type; - const char *event; /* event name */ - Node *parsetree; /* parse tree */ - CommandTag tag; -} EventTriggerData; - -#define AT_REWRITE_ALTER_PERSISTENCE 0x01 -#define AT_REWRITE_DEFAULT_VAL 0x02 -#define AT_REWRITE_COLUMN_REWRITE 0x04 -#define AT_REWRITE_ACCESS_METHOD 0x08 - -/* - * EventTriggerData is the node type that is passed as fmgr "context" info - * when a function is called by the event trigger manager. - */ -#define CALLED_AS_EVENT_TRIGGER(fcinfo) \ - ((fcinfo)->context != NULL && IsA((fcinfo)->context, EventTriggerData)) - -extern Oid CreateEventTrigger(CreateEventTrigStmt *stmt); -extern Oid get_event_trigger_oid(const char *trigname, bool missing_ok); - -extern Oid AlterEventTrigger(AlterEventTrigStmt *stmt); -extern ObjectAddress AlterEventTriggerOwner(const char *name, Oid newOwnerId); -extern void AlterEventTriggerOwner_oid(Oid, Oid newOwnerId); - -extern bool EventTriggerSupportsObjectType(ObjectType obtype); -extern bool EventTriggerSupportsObjectClass(ObjectClass objclass); -extern void EventTriggerDDLCommandStart(Node *parsetree); -extern void EventTriggerDDLCommandEnd(Node *parsetree); -extern void EventTriggerSQLDrop(Node *parsetree); -extern void EventTriggerTableRewrite(Node *parsetree, Oid tableOid, int reason); - -extern bool EventTriggerBeginCompleteQuery(void); -extern void EventTriggerEndCompleteQuery(void); -extern bool trackDroppedObjectsNeeded(void); -extern void EventTriggerSQLDropAddObject(const ObjectAddress *object, - bool original, bool normal); - -extern void EventTriggerInhibitCommandCollection(void); -extern void EventTriggerUndoInhibitCommandCollection(void); - -extern void EventTriggerCollectSimpleCommand(ObjectAddress address, - ObjectAddress secondaryObject, - Node *parsetree); - -extern void EventTriggerAlterTableStart(Node *parsetree); -extern void EventTriggerAlterTableRelid(Oid objectId); -extern void EventTriggerCollectAlterTableSubcmd(Node *subcmd, - ObjectAddress address); -extern void EventTriggerAlterTableEnd(void); - -extern void EventTriggerCollectGrant(InternalGrant *istmt); -extern void EventTriggerCollectAlterOpFam(AlterOpFamilyStmt *stmt, - Oid opfamoid, List *operators, - List *procedures); -extern void EventTriggerCollectCreateOpClass(CreateOpClassStmt *stmt, - Oid opcoid, List *operators, - List *procedures); -extern void EventTriggerCollectAlterTSConfig(AlterTSConfigurationStmt *stmt, - Oid cfgId, Oid *dictIds, int ndicts); -extern void EventTriggerCollectAlterDefPrivs(AlterDefaultPrivilegesStmt *stmt); - -#endif /* EVENT_TRIGGER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/explain.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/explain.h deleted file mode 100644 index 666977fb1..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/explain.h +++ /dev/null @@ -1,127 +0,0 @@ -/*------------------------------------------------------------------------- - * - * explain.h - * prototypes for explain.c - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994-5, Regents of the University of California - * - * src/include/commands/explain.h - * - *------------------------------------------------------------------------- - */ -#ifndef EXPLAIN_H -#define EXPLAIN_H - -#include "executor/executor.h" -#include "lib/stringinfo.h" -#include "parser/parse_node.h" - -typedef enum ExplainFormat -{ - EXPLAIN_FORMAT_TEXT, - EXPLAIN_FORMAT_XML, - EXPLAIN_FORMAT_JSON, - EXPLAIN_FORMAT_YAML -} ExplainFormat; - -typedef struct ExplainWorkersState -{ - int num_workers; /* # of worker processes the plan used */ - bool *worker_inited; /* per-worker state-initialized flags */ - StringInfoData *worker_str; /* per-worker transient output buffers */ - int *worker_state_save; /* per-worker grouping state save areas */ - StringInfo prev_str; /* saved output buffer while redirecting */ -} ExplainWorkersState; - -typedef struct ExplainState -{ - StringInfo str; /* output buffer */ - /* options */ - bool verbose; /* be verbose */ - bool analyze; /* print actual times */ - bool costs; /* print estimated costs */ - bool buffers; /* print buffer usage */ - bool wal; /* print WAL usage */ - bool timing; /* print detailed node timing */ - bool summary; /* print total planning and execution timing */ - bool settings; /* print modified settings */ - ExplainFormat format; /* output format */ - /* state for output formatting --- not reset for each new plan tree */ - int indent; /* current indentation level */ - List *grouping_stack; /* format-specific grouping state */ - /* state related to the current plan tree (filled by ExplainPrintPlan) */ - PlannedStmt *pstmt; /* top of plan */ - List *rtable; /* range table */ - List *rtable_names; /* alias names for RTEs */ - List *deparse_cxt; /* context list for deparsing expressions */ - Bitmapset *printed_subplans; /* ids of SubPlans we've printed */ - bool hide_workers; /* set if we find an invisible Gather */ - /* state related to the current plan node */ - ExplainWorkersState *workers_state; /* needed if parallel plan */ -} ExplainState; - -/* Hook for plugins to get control in ExplainOneQuery() */ -typedef void (*ExplainOneQuery_hook_type) (Query *query, - int cursorOptions, - IntoClause *into, - ExplainState *es, - const char *queryString, - ParamListInfo params, - QueryEnvironment *queryEnv); -extern PGDLLIMPORT ExplainOneQuery_hook_type ExplainOneQuery_hook; - -/* Hook for plugins to get control in explain_get_index_name() */ -typedef const char *(*explain_get_index_name_hook_type) (Oid indexId); -extern PGDLLIMPORT explain_get_index_name_hook_type explain_get_index_name_hook; - - -extern void ExplainQuery(ParseState *pstate, ExplainStmt *stmt, - ParamListInfo params, DestReceiver *dest); - -extern ExplainState *NewExplainState(void); - -extern TupleDesc ExplainResultDesc(ExplainStmt *stmt); - -extern void ExplainOneUtility(Node *utilityStmt, IntoClause *into, - ExplainState *es, const char *queryString, - ParamListInfo params, QueryEnvironment *queryEnv); - -extern void ExplainOnePlan(PlannedStmt *plannedstmt, IntoClause *into, - ExplainState *es, const char *queryString, - ParamListInfo params, QueryEnvironment *queryEnv, - const instr_time *planduration, - const BufferUsage *bufusage); - -extern void ExplainPrintPlan(ExplainState *es, QueryDesc *queryDesc); -extern void ExplainPrintTriggers(ExplainState *es, QueryDesc *queryDesc); - -extern void ExplainPrintJITSummary(ExplainState *es, QueryDesc *queryDesc); - -extern void ExplainQueryText(ExplainState *es, QueryDesc *queryDesc); - -extern void ExplainBeginOutput(ExplainState *es); -extern void ExplainEndOutput(ExplainState *es); -extern void ExplainSeparatePlans(ExplainState *es); - -extern void ExplainPropertyList(const char *qlabel, List *data, - ExplainState *es); -extern void ExplainPropertyListNested(const char *qlabel, List *data, - ExplainState *es); -extern void ExplainPropertyText(const char *qlabel, const char *value, - ExplainState *es); -extern void ExplainPropertyInteger(const char *qlabel, const char *unit, - int64 value, ExplainState *es); -extern void ExplainPropertyUInteger(const char *qlabel, const char *unit, - uint64 value, ExplainState *es); -extern void ExplainPropertyFloat(const char *qlabel, const char *unit, - double value, int ndigits, ExplainState *es); -extern void ExplainPropertyBool(const char *qlabel, bool value, - ExplainState *es); - -extern void ExplainOpenGroup(const char *objtype, const char *labelname, - bool labeled, ExplainState *es); -extern void ExplainCloseGroup(const char *objtype, const char *labelname, - bool labeled, ExplainState *es); - -#endif /* EXPLAIN_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/prepare.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/prepare.h deleted file mode 100644 index e30df8f76..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/prepare.h +++ /dev/null @@ -1,61 +0,0 @@ -/*------------------------------------------------------------------------- - * - * prepare.h - * PREPARE, EXECUTE and DEALLOCATE commands, and prepared-stmt storage - * - * - * Copyright (c) 2002-2022, PostgreSQL Global Development Group - * - * src/include/commands/prepare.h - * - *------------------------------------------------------------------------- - */ -#ifndef PREPARE_H -#define PREPARE_H - -#include "commands/explain.h" -#include "datatype/timestamp.h" -#include "utils/plancache.h" - -/* - * The data structure representing a prepared statement. This is now just - * a thin veneer over a plancache entry --- the main addition is that of - * a name. - * - * Note: all subsidiary storage lives in the referenced plancache entry. - */ -typedef struct -{ - /* dynahash.c requires key to be first field */ - char stmt_name[NAMEDATALEN]; - CachedPlanSource *plansource; /* the actual cached plan */ - bool from_sql; /* prepared via SQL, not FE/BE protocol? */ - TimestampTz prepare_time; /* the time when the stmt was prepared */ -} PreparedStatement; - - -/* Utility statements PREPARE, EXECUTE, DEALLOCATE, EXPLAIN EXECUTE */ -extern void PrepareQuery(ParseState *pstate, PrepareStmt *stmt, - int stmt_location, int stmt_len); -extern void ExecuteQuery(ParseState *pstate, - ExecuteStmt *stmt, IntoClause *intoClause, - ParamListInfo params, - DestReceiver *dest, QueryCompletion *qc); -extern void DeallocateQuery(DeallocateStmt *stmt); -extern void ExplainExecuteQuery(ExecuteStmt *execstmt, IntoClause *into, - ExplainState *es, const char *queryString, - ParamListInfo params, QueryEnvironment *queryEnv); - -/* Low-level access to stored prepared statements */ -extern void StorePreparedStatement(const char *stmt_name, - CachedPlanSource *plansource, - bool from_sql); -extern PreparedStatement *FetchPreparedStatement(const char *stmt_name, - bool throwError); -extern void DropPreparedStatement(const char *stmt_name, bool showError); -extern TupleDesc FetchPreparedStatementResultDesc(PreparedStatement *stmt); -extern List *FetchPreparedStatementTargetList(PreparedStatement *stmt); - -extern void DropAllPreparedStatements(void); - -#endif /* PREPARE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/tablespace.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/tablespace.h deleted file mode 100644 index 24b647332..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/tablespace.h +++ /dev/null @@ -1,69 +0,0 @@ -/*------------------------------------------------------------------------- - * - * tablespace.h - * Tablespace management commands (create/drop tablespace). - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/commands/tablespace.h - * - *------------------------------------------------------------------------- - */ -#ifndef TABLESPACE_H -#define TABLESPACE_H - -#include "access/xlogreader.h" -#include "catalog/objectaddress.h" -#include "lib/stringinfo.h" -#include "nodes/parsenodes.h" - -extern PGDLLIMPORT bool allow_in_place_tablespaces; - -/* XLOG stuff */ -#define XLOG_TBLSPC_CREATE 0x00 -#define XLOG_TBLSPC_DROP 0x10 - -typedef struct xl_tblspc_create_rec -{ - Oid ts_id; - char ts_path[FLEXIBLE_ARRAY_MEMBER]; /* null-terminated string */ -} xl_tblspc_create_rec; - -typedef struct xl_tblspc_drop_rec -{ - Oid ts_id; -} xl_tblspc_drop_rec; - -typedef struct TableSpaceOpts -{ - int32 vl_len_; /* varlena header (do not touch directly!) */ - float8 random_page_cost; - float8 seq_page_cost; - int effective_io_concurrency; - int maintenance_io_concurrency; -} TableSpaceOpts; - -extern Oid CreateTableSpace(CreateTableSpaceStmt *stmt); -extern void DropTableSpace(DropTableSpaceStmt *stmt); -extern ObjectAddress RenameTableSpace(const char *oldname, const char *newname); -extern Oid AlterTableSpaceOptions(AlterTableSpaceOptionsStmt *stmt); - -extern void TablespaceCreateDbspace(Oid spcNode, Oid dbNode, bool isRedo); - -extern Oid GetDefaultTablespace(char relpersistence, bool partitioned); - -extern void PrepareTempTablespaces(void); - -extern Oid get_tablespace_oid(const char *tablespacename, bool missing_ok); -extern char *get_tablespace_name(Oid spc_oid); - -extern bool directory_is_empty(const char *path); -extern void remove_tablespace_symlink(const char *linkloc); - -extern void tblspc_redo(XLogReaderState *rptr); -extern void tblspc_desc(StringInfo buf, XLogReaderState *rptr); -extern const char *tblspc_identify(uint8 info); - -#endif /* TABLESPACE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/trigger.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/trigger.h deleted file mode 100644 index 037743886..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/trigger.h +++ /dev/null @@ -1,287 +0,0 @@ -/*------------------------------------------------------------------------- - * - * trigger.h - * Declarations for trigger handling. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/commands/trigger.h - * - *------------------------------------------------------------------------- - */ -#ifndef TRIGGER_H -#define TRIGGER_H - -#include "access/tableam.h" -#include "catalog/objectaddress.h" -#include "nodes/execnodes.h" -#include "nodes/parsenodes.h" - -/* - * TriggerData is the node type that is passed as fmgr "context" info - * when a function is called by the trigger manager. - */ - -#define CALLED_AS_TRIGGER(fcinfo) \ - ((fcinfo)->context != NULL && IsA((fcinfo)->context, TriggerData)) - -typedef uint32 TriggerEvent; - -typedef struct TriggerData -{ - NodeTag type; - TriggerEvent tg_event; - Relation tg_relation; - HeapTuple tg_trigtuple; - HeapTuple tg_newtuple; - Trigger *tg_trigger; - TupleTableSlot *tg_trigslot; - TupleTableSlot *tg_newslot; - Tuplestorestate *tg_oldtable; - Tuplestorestate *tg_newtable; - const Bitmapset *tg_updatedcols; -} TriggerData; - -/* - * The state for capturing old and new tuples into transition tables for a - * single ModifyTable node (or other operation source, e.g. copyfrom.c). - * - * This is per-caller to avoid conflicts in setting - * tcs_original_insert_tuple. Note, however, that the pointed-to - * private data may be shared across multiple callers. - */ -struct AfterTriggersTableData; /* private in trigger.c */ - -typedef struct TransitionCaptureState -{ - /* - * Is there at least one trigger specifying each transition relation on - * the relation explicitly named in the DML statement or COPY command? - * Note: in current usage, these flags could be part of the private state, - * but it seems possibly useful to let callers see them. - */ - bool tcs_delete_old_table; - bool tcs_update_old_table; - bool tcs_update_new_table; - bool tcs_insert_new_table; - - /* - * For INSERT and COPY, it would be wasteful to convert tuples from child - * format to parent format after they have already been converted in the - * opposite direction during routing. In that case we bypass conversion - * and allow the inserting code (copyfrom.c and nodeModifyTable.c) to - * provide a slot containing the original tuple directly. - */ - TupleTableSlot *tcs_original_insert_tuple; - - /* - * Private data including the tuplestore(s) into which to insert tuples. - */ - struct AfterTriggersTableData *tcs_private; -} TransitionCaptureState; - -/* - * TriggerEvent bit flags - * - * Note that we assume different event types (INSERT/DELETE/UPDATE/TRUNCATE) - * can't be OR'd together in a single TriggerEvent. This is unlike the - * situation for pg_trigger rows, so pg_trigger.tgtype uses a different - * representation! - */ -#define TRIGGER_EVENT_INSERT 0x00000000 -#define TRIGGER_EVENT_DELETE 0x00000001 -#define TRIGGER_EVENT_UPDATE 0x00000002 -#define TRIGGER_EVENT_TRUNCATE 0x00000003 -#define TRIGGER_EVENT_OPMASK 0x00000003 - -#define TRIGGER_EVENT_ROW 0x00000004 - -#define TRIGGER_EVENT_BEFORE 0x00000008 -#define TRIGGER_EVENT_AFTER 0x00000000 -#define TRIGGER_EVENT_INSTEAD 0x00000010 -#define TRIGGER_EVENT_TIMINGMASK 0x00000018 - -/* More TriggerEvent flags, used only within trigger.c */ - -#define AFTER_TRIGGER_DEFERRABLE 0x00000020 -#define AFTER_TRIGGER_INITDEFERRED 0x00000040 - -#define TRIGGER_FIRED_BY_INSERT(event) \ - (((event) & TRIGGER_EVENT_OPMASK) == TRIGGER_EVENT_INSERT) - -#define TRIGGER_FIRED_BY_DELETE(event) \ - (((event) & TRIGGER_EVENT_OPMASK) == TRIGGER_EVENT_DELETE) - -#define TRIGGER_FIRED_BY_UPDATE(event) \ - (((event) & TRIGGER_EVENT_OPMASK) == TRIGGER_EVENT_UPDATE) - -#define TRIGGER_FIRED_BY_TRUNCATE(event) \ - (((event) & TRIGGER_EVENT_OPMASK) == TRIGGER_EVENT_TRUNCATE) - -#define TRIGGER_FIRED_FOR_ROW(event) \ - ((event) & TRIGGER_EVENT_ROW) - -#define TRIGGER_FIRED_FOR_STATEMENT(event) \ - (!TRIGGER_FIRED_FOR_ROW(event)) - -#define TRIGGER_FIRED_BEFORE(event) \ - (((event) & TRIGGER_EVENT_TIMINGMASK) == TRIGGER_EVENT_BEFORE) - -#define TRIGGER_FIRED_AFTER(event) \ - (((event) & TRIGGER_EVENT_TIMINGMASK) == TRIGGER_EVENT_AFTER) - -#define TRIGGER_FIRED_INSTEAD(event) \ - (((event) & TRIGGER_EVENT_TIMINGMASK) == TRIGGER_EVENT_INSTEAD) - -/* - * Definitions for replication role based firing. - */ -#define SESSION_REPLICATION_ROLE_ORIGIN 0 -#define SESSION_REPLICATION_ROLE_REPLICA 1 -#define SESSION_REPLICATION_ROLE_LOCAL 2 -extern PGDLLIMPORT int SessionReplicationRole; - -/* - * States at which a trigger can be fired. These are the - * possible values for pg_trigger.tgenabled. - */ -#define TRIGGER_FIRES_ON_ORIGIN 'O' -#define TRIGGER_FIRES_ALWAYS 'A' -#define TRIGGER_FIRES_ON_REPLICA 'R' -#define TRIGGER_DISABLED 'D' - -extern ObjectAddress CreateTrigger(CreateTrigStmt *stmt, const char *queryString, - Oid relOid, Oid refRelOid, Oid constraintOid, Oid indexOid, - Oid funcoid, Oid parentTriggerOid, Node *whenClause, - bool isInternal, bool in_partition); -extern ObjectAddress CreateTriggerFiringOn(CreateTrigStmt *stmt, const char *queryString, - Oid relOid, Oid refRelOid, Oid constraintOid, - Oid indexOid, Oid funcoid, Oid parentTriggerOid, - Node *whenClause, bool isInternal, bool in_partition, - char trigger_fires_when); - -extern void TriggerSetParentTrigger(Relation trigRel, - Oid childTrigId, - Oid parentTrigId, - Oid childTableId); -extern void RemoveTriggerById(Oid trigOid); -extern Oid get_trigger_oid(Oid relid, const char *name, bool missing_ok); - -extern ObjectAddress renametrig(RenameStmt *stmt); - -extern void EnableDisableTriggerNew(Relation rel, const char *tgname, - char fires_when, bool skip_system, bool recurse, - LOCKMODE lockmode); -extern void EnableDisableTrigger(Relation rel, const char *tgname, - char fires_when, bool skip_system, LOCKMODE lockmode); - -extern void RelationBuildTriggers(Relation relation); - -extern TriggerDesc *CopyTriggerDesc(TriggerDesc *trigdesc); - -extern const char *FindTriggerIncompatibleWithInheritance(TriggerDesc *trigdesc); - -extern TransitionCaptureState *MakeTransitionCaptureState(TriggerDesc *trigdesc, - Oid relid, CmdType cmdType); - -extern void FreeTriggerDesc(TriggerDesc *trigdesc); - -extern void ExecBSInsertTriggers(EState *estate, - ResultRelInfo *relinfo); -extern void ExecASInsertTriggers(EState *estate, - ResultRelInfo *relinfo, - TransitionCaptureState *transition_capture); -extern bool ExecBRInsertTriggers(EState *estate, - ResultRelInfo *relinfo, - TupleTableSlot *slot); -extern void ExecARInsertTriggers(EState *estate, - ResultRelInfo *relinfo, - TupleTableSlot *slot, - List *recheckIndexes, - TransitionCaptureState *transition_capture); -extern bool ExecIRInsertTriggers(EState *estate, - ResultRelInfo *relinfo, - TupleTableSlot *slot); -extern void ExecBSDeleteTriggers(EState *estate, - ResultRelInfo *relinfo); -extern void ExecASDeleteTriggers(EState *estate, - ResultRelInfo *relinfo, - TransitionCaptureState *transition_capture); -extern bool ExecBRDeleteTriggers(EState *estate, - EPQState *epqstate, - ResultRelInfo *relinfo, - ItemPointer tupleid, - HeapTuple fdw_trigtuple, - TupleTableSlot **epqslot); -extern void ExecARDeleteTriggers(EState *estate, - ResultRelInfo *relinfo, - ItemPointer tupleid, - HeapTuple fdw_trigtuple, - TransitionCaptureState *transition_capture, - bool is_crosspart_update); -extern bool ExecIRDeleteTriggers(EState *estate, - ResultRelInfo *relinfo, - HeapTuple trigtuple); -extern void ExecBSUpdateTriggers(EState *estate, - ResultRelInfo *relinfo); -extern void ExecASUpdateTriggers(EState *estate, - ResultRelInfo *relinfo, - TransitionCaptureState *transition_capture); -extern bool ExecBRUpdateTriggers(EState *estate, - EPQState *epqstate, - ResultRelInfo *relinfo, - ItemPointer tupleid, - HeapTuple fdw_trigtuple, - TupleTableSlot *slot, - TM_FailureData *tmfdp); -extern void ExecARUpdateTriggers(EState *estate, - ResultRelInfo *relinfo, - ResultRelInfo *src_partinfo, - ResultRelInfo *dst_partinfo, - ItemPointer tupleid, - HeapTuple fdw_trigtuple, - TupleTableSlot *slot, - List *recheckIndexes, - TransitionCaptureState *transition_capture, - bool is_crosspart_update); -extern bool ExecIRUpdateTriggers(EState *estate, - ResultRelInfo *relinfo, - HeapTuple trigtuple, - TupleTableSlot *slot); -extern void ExecBSTruncateTriggers(EState *estate, - ResultRelInfo *relinfo); -extern void ExecASTruncateTriggers(EState *estate, - ResultRelInfo *relinfo); - -extern void AfterTriggerBeginXact(void); -extern void AfterTriggerBeginQuery(void); -extern void AfterTriggerEndQuery(EState *estate); -extern void AfterTriggerFireDeferred(void); -extern void AfterTriggerEndXact(bool isCommit); -extern void AfterTriggerBeginSubXact(void); -extern void AfterTriggerEndSubXact(bool isCommit); -extern void AfterTriggerSetState(ConstraintsSetStmt *stmt); -extern bool AfterTriggerPendingOnRel(Oid relid); - - -/* - * in utils/adt/ri_triggers.c - */ -extern bool RI_FKey_pk_upd_check_required(Trigger *trigger, Relation pk_rel, - TupleTableSlot *old_slot, TupleTableSlot *new_slot); -extern bool RI_FKey_fk_upd_check_required(Trigger *trigger, Relation fk_rel, - TupleTableSlot *old_slot, TupleTableSlot *new_slot); -extern bool RI_Initial_Check(Trigger *trigger, - Relation fk_rel, Relation pk_rel); -extern void RI_PartitionRemove_Check(Trigger *trigger, Relation fk_rel, - Relation pk_rel); - -/* result values for RI_FKey_trigger_type: */ -#define RI_TRIGGER_PK 1 /* is a trigger on the PK relation */ -#define RI_TRIGGER_FK 2 /* is a trigger on the FK relation */ -#define RI_TRIGGER_NONE 0 /* is not an RI trigger function */ - -extern int RI_FKey_trigger_type(Oid tgfoid); - -#endif /* TRIGGER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/user.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/user.h deleted file mode 100644 index d3dd8303d..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/user.h +++ /dev/null @@ -1,37 +0,0 @@ -/*------------------------------------------------------------------------- - * - * user.h - * Commands for manipulating roles (formerly called users). - * - * - * src/include/commands/user.h - * - *------------------------------------------------------------------------- - */ -#ifndef USER_H -#define USER_H - -#include "catalog/objectaddress.h" -#include "libpq/crypt.h" -#include "nodes/parsenodes.h" -#include "parser/parse_node.h" - -/* GUC. Is actually of type PasswordType. */ -extern PGDLLIMPORT int Password_encryption; - -/* Hook to check passwords in CreateRole() and AlterRole() */ -typedef void (*check_password_hook_type) (const char *username, const char *shadow_pass, PasswordType password_type, Datum validuntil_time, bool validuntil_null); - -extern PGDLLIMPORT check_password_hook_type check_password_hook; - -extern Oid CreateRole(ParseState *pstate, CreateRoleStmt *stmt); -extern Oid AlterRole(ParseState *pstate, AlterRoleStmt *stmt); -extern Oid AlterRoleSet(AlterRoleSetStmt *stmt); -extern void DropRole(DropRoleStmt *stmt); -extern void GrantRole(GrantRoleStmt *stmt); -extern ObjectAddress RenameRole(const char *oldname, const char *newname); -extern void DropOwnedObjects(DropOwnedStmt *stmt); -extern void ReassignOwnedObjects(ReassignOwnedStmt *stmt); -extern List *roleSpecsToIds(List *memberNames); - -#endif /* USER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/vacuum.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/vacuum.h deleted file mode 100644 index f38e1148f..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/vacuum.h +++ /dev/null @@ -1,340 +0,0 @@ -/*------------------------------------------------------------------------- - * - * vacuum.h - * header file for postgres vacuum cleaner and statistics analyzer - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/commands/vacuum.h - * - *------------------------------------------------------------------------- - */ -#ifndef VACUUM_H -#define VACUUM_H - -#include "access/htup.h" -#include "access/genam.h" -#include "access/parallel.h" -#include "catalog/pg_class.h" -#include "catalog/pg_statistic.h" -#include "catalog/pg_type.h" -#include "parser/parse_node.h" -#include "storage/buf.h" -#include "storage/lock.h" -#include "utils/relcache.h" - -/* - * Flags for amparallelvacuumoptions to control the participation of bulkdelete - * and vacuumcleanup in parallel vacuum. - */ - -/* - * Both bulkdelete and vacuumcleanup are disabled by default. This will be - * used by IndexAM's that don't want to or cannot participate in parallel - * vacuum. For example, if an index AM doesn't have a way to communicate the - * index statistics allocated by the first ambulkdelete call to the subsequent - * ones until amvacuumcleanup, the index AM cannot participate in parallel - * vacuum. - */ -#define VACUUM_OPTION_NO_PARALLEL 0 - -/* - * bulkdelete can be performed in parallel. This option can be used by - * index AMs that need to scan indexes to delete tuples. - */ -#define VACUUM_OPTION_PARALLEL_BULKDEL (1 << 0) - -/* - * vacuumcleanup can be performed in parallel if bulkdelete is not performed - * yet. This will be used by IndexAM's that can scan the index if the - * bulkdelete is not performed. - */ -#define VACUUM_OPTION_PARALLEL_COND_CLEANUP (1 << 1) - -/* - * vacuumcleanup can be performed in parallel even if bulkdelete has already - * processed the index. This will be used by IndexAM's that scan the index - * during the cleanup phase of index irrespective of whether the index is - * already scanned or not during bulkdelete phase. - */ -#define VACUUM_OPTION_PARALLEL_CLEANUP (1 << 2) - -/* value for checking vacuum flags */ -#define VACUUM_OPTION_MAX_VALID_VALUE ((1 << 3) - 1) - -/* Abstract type for parallel vacuum state */ -typedef struct ParallelVacuumState ParallelVacuumState; - -/*---------- - * ANALYZE builds one of these structs for each attribute (column) that is - * to be analyzed. The struct and subsidiary data are in anl_context, - * so they live until the end of the ANALYZE operation. - * - * The type-specific typanalyze function is passed a pointer to this struct - * and must return true to continue analysis, false to skip analysis of this - * column. In the true case it must set the compute_stats and minrows fields, - * and can optionally set extra_data to pass additional info to compute_stats. - * minrows is its request for the minimum number of sample rows to be gathered - * (but note this request might not be honored, eg if there are fewer rows - * than that in the table). - * - * The compute_stats routine will be called after sample rows have been - * gathered. Aside from this struct, it is passed: - * fetchfunc: a function for accessing the column values from the - * sample rows - * samplerows: the number of sample tuples - * totalrows: estimated total number of rows in relation - * The fetchfunc may be called with rownum running from 0 to samplerows-1. - * It returns a Datum and an isNull flag. - * - * compute_stats should set stats_valid true if it is able to compute - * any useful statistics. If it does, the remainder of the struct holds - * the information to be stored in a pg_statistic row for the column. Be - * careful to allocate any pointed-to data in anl_context, which will NOT - * be CurrentMemoryContext when compute_stats is called. - * - * Note: all comparisons done for statistical purposes should use the - * underlying column's collation (attcollation), except in situations - * where a noncollatable container type contains a collatable type; - * in that case use the type's default collation. Be sure to record - * the appropriate collation in stacoll. - *---------- - */ -typedef struct VacAttrStats *VacAttrStatsP; - -typedef Datum (*AnalyzeAttrFetchFunc) (VacAttrStatsP stats, int rownum, - bool *isNull); - -typedef void (*AnalyzeAttrComputeStatsFunc) (VacAttrStatsP stats, - AnalyzeAttrFetchFunc fetchfunc, - int samplerows, - double totalrows); - -typedef struct VacAttrStats -{ - /* - * These fields are set up by the main ANALYZE code before invoking the - * type-specific typanalyze function. - * - * Note: do not assume that the data being analyzed has the same datatype - * shown in attr, ie do not trust attr->atttypid, attlen, etc. This is - * because some index opclasses store a different type than the underlying - * column/expression. Instead use attrtypid, attrtypmod, and attrtype for - * information about the datatype being fed to the typanalyze function. - * Likewise, use attrcollid not attr->attcollation. - */ - Form_pg_attribute attr; /* copy of pg_attribute row for column */ - Oid attrtypid; /* type of data being analyzed */ - int32 attrtypmod; /* typmod of data being analyzed */ - Form_pg_type attrtype; /* copy of pg_type row for attrtypid */ - Oid attrcollid; /* collation of data being analyzed */ - MemoryContext anl_context; /* where to save long-lived data */ - - /* - * These fields must be filled in by the typanalyze routine, unless it - * returns false. - */ - AnalyzeAttrComputeStatsFunc compute_stats; /* function pointer */ - int minrows; /* Minimum # of rows wanted for stats */ - void *extra_data; /* for extra type-specific data */ - - /* - * These fields are to be filled in by the compute_stats routine. (They - * are initialized to zero when the struct is created.) - */ - bool stats_valid; - float4 stanullfrac; /* fraction of entries that are NULL */ - int32 stawidth; /* average width of column values */ - float4 stadistinct; /* # distinct values */ - int16 stakind[STATISTIC_NUM_SLOTS]; - Oid staop[STATISTIC_NUM_SLOTS]; - Oid stacoll[STATISTIC_NUM_SLOTS]; - int numnumbers[STATISTIC_NUM_SLOTS]; - float4 *stanumbers[STATISTIC_NUM_SLOTS]; - int numvalues[STATISTIC_NUM_SLOTS]; - Datum *stavalues[STATISTIC_NUM_SLOTS]; - - /* - * These fields describe the stavalues[n] element types. They will be - * initialized to match attrtypid, but a custom typanalyze function might - * want to store an array of something other than the analyzed column's - * elements. It should then overwrite these fields. - */ - Oid statypid[STATISTIC_NUM_SLOTS]; - int16 statyplen[STATISTIC_NUM_SLOTS]; - bool statypbyval[STATISTIC_NUM_SLOTS]; - char statypalign[STATISTIC_NUM_SLOTS]; - - /* - * These fields are private to the main ANALYZE code and should not be - * looked at by type-specific functions. - */ - int tupattnum; /* attribute number within tuples */ - HeapTuple *rows; /* access info for std fetch function */ - TupleDesc tupDesc; - Datum *exprvals; /* access info for index fetch function */ - bool *exprnulls; - int rowstride; -} VacAttrStats; - -/* flag bits for VacuumParams->options */ -#define VACOPT_VACUUM 0x01 /* do VACUUM */ -#define VACOPT_ANALYZE 0x02 /* do ANALYZE */ -#define VACOPT_VERBOSE 0x04 /* output INFO instrumentation messages */ -#define VACOPT_FREEZE 0x08 /* FREEZE option */ -#define VACOPT_FULL 0x10 /* FULL (non-concurrent) vacuum */ -#define VACOPT_SKIP_LOCKED 0x20 /* skip if cannot get lock */ -#define VACOPT_PROCESS_TOAST 0x40 /* process the TOAST table, if any */ -#define VACOPT_DISABLE_PAGE_SKIPPING 0x80 /* don't skip any pages */ - -/* - * Values used by index_cleanup and truncate params. - * - * VACOPTVALUE_UNSPECIFIED is used as an initial placeholder when VACUUM - * command has no explicit value. When that happens the final usable value - * comes from the corresponding reloption (though the reloption default is - * usually used). - */ -typedef enum VacOptValue -{ - VACOPTVALUE_UNSPECIFIED = 0, - VACOPTVALUE_AUTO, - VACOPTVALUE_DISABLED, - VACOPTVALUE_ENABLED, -} VacOptValue; - -/* - * Parameters customizing behavior of VACUUM and ANALYZE. - * - * Note that at least one of VACOPT_VACUUM and VACOPT_ANALYZE must be set - * in options. - */ -typedef struct VacuumParams -{ - bits32 options; /* bitmask of VACOPT_* */ - int freeze_min_age; /* min freeze age, -1 to use default */ - int freeze_table_age; /* age at which to scan whole table */ - int multixact_freeze_min_age; /* min multixact freeze age, -1 to - * use default */ - int multixact_freeze_table_age; /* multixact age at which to scan - * whole table */ - bool is_wraparound; /* force a for-wraparound vacuum */ - int log_min_duration; /* minimum execution threshold in ms at - * which autovacuum is logged, -1 to use - * default */ - VacOptValue index_cleanup; /* Do index vacuum and cleanup */ - VacOptValue truncate; /* Truncate empty pages at the end */ - - /* - * The number of parallel vacuum workers. 0 by default which means choose - * based on the number of indexes. -1 indicates parallel vacuum is - * disabled. - */ - int nworkers; -} VacuumParams; - -/* - * VacDeadItems stores TIDs whose index tuples are deleted by index vacuuming. - */ -typedef struct VacDeadItems -{ - int max_items; /* # slots allocated in array */ - int num_items; /* current # of entries */ - - /* Sorted array of TIDs to delete from indexes */ - ItemPointerData items[FLEXIBLE_ARRAY_MEMBER]; -} VacDeadItems; - -#define MAXDEADITEMS(avail_mem) \ - (((avail_mem) - offsetof(VacDeadItems, items)) / sizeof(ItemPointerData)) - -/* GUC parameters */ -extern PGDLLIMPORT int default_statistics_target; /* PGDLLIMPORT for PostGIS */ -extern PGDLLIMPORT int vacuum_freeze_min_age; -extern PGDLLIMPORT int vacuum_freeze_table_age; -extern PGDLLIMPORT int vacuum_multixact_freeze_min_age; -extern PGDLLIMPORT int vacuum_multixact_freeze_table_age; -extern PGDLLIMPORT int vacuum_failsafe_age; -extern PGDLLIMPORT int vacuum_multixact_failsafe_age; - -/* Variables for cost-based parallel vacuum */ -extern PGDLLIMPORT pg_atomic_uint32 *VacuumSharedCostBalance; -extern PGDLLIMPORT pg_atomic_uint32 *VacuumActiveNWorkers; -extern PGDLLIMPORT int VacuumCostBalanceLocal; - - -/* in commands/vacuum.c */ -extern void ExecVacuum(ParseState *pstate, VacuumStmt *vacstmt, bool isTopLevel); -extern void vacuum(List *relations, VacuumParams *params, - BufferAccessStrategy bstrategy, bool isTopLevel); -extern void vac_open_indexes(Relation relation, LOCKMODE lockmode, - int *nindexes, Relation **Irel); -extern void vac_close_indexes(int nindexes, Relation *Irel, LOCKMODE lockmode); -extern double vac_estimate_reltuples(Relation relation, - BlockNumber total_pages, - BlockNumber scanned_pages, - double scanned_tuples); -extern void vac_update_relstats(Relation relation, - BlockNumber num_pages, - double num_tuples, - BlockNumber num_all_visible_pages, - bool hasindex, - TransactionId frozenxid, - MultiXactId minmulti, - bool *frozenxid_updated, - bool *minmulti_updated, - bool in_outer_xact); -extern bool vacuum_set_xid_limits(Relation rel, - int freeze_min_age, int freeze_table_age, - int multixact_freeze_min_age, - int multixact_freeze_table_age, - TransactionId *oldestXmin, - MultiXactId *oldestMxact, - TransactionId *freezeLimit, - MultiXactId *multiXactCutoff); -extern bool vacuum_xid_failsafe_check(TransactionId relfrozenxid, - MultiXactId relminmxid); -extern void vac_update_datfrozenxid(void); -extern void vacuum_delay_point(void); -extern bool vacuum_is_relation_owner(Oid relid, Form_pg_class reltuple, - bits32 options); -extern Relation vacuum_open_relation(Oid relid, RangeVar *relation, - bits32 options, bool verbose, - LOCKMODE lmode); -extern IndexBulkDeleteResult *vac_bulkdel_one_index(IndexVacuumInfo *ivinfo, - IndexBulkDeleteResult *istat, - VacDeadItems *dead_items); -extern IndexBulkDeleteResult *vac_cleanup_one_index(IndexVacuumInfo *ivinfo, - IndexBulkDeleteResult *istat); -extern Size vac_max_items_to_alloc_size(int max_items); - -/* in commands/vacuumparallel.c */ -extern ParallelVacuumState *parallel_vacuum_init(Relation rel, Relation *indrels, - int nindexes, int nrequested_workers, - int max_items, int elevel, - BufferAccessStrategy bstrategy); -extern void parallel_vacuum_end(ParallelVacuumState *pvs, IndexBulkDeleteResult **istats); -extern VacDeadItems *parallel_vacuum_get_dead_items(ParallelVacuumState *pvs); -extern void parallel_vacuum_bulkdel_all_indexes(ParallelVacuumState *pvs, - long num_table_tuples, - int num_index_scans); -extern void parallel_vacuum_cleanup_all_indexes(ParallelVacuumState *pvs, - long num_table_tuples, - int num_index_scans, - bool estimated_count); -extern void parallel_vacuum_main(dsm_segment *seg, shm_toc *toc); - -/* in commands/analyze.c */ -extern void analyze_rel(Oid relid, RangeVar *relation, - VacuumParams *params, List *va_cols, bool in_outer_xact, - BufferAccessStrategy bstrategy); -extern bool std_typanalyze(VacAttrStats *stats); - -/* in utils/misc/sampling.c --- duplicate of declarations in utils/sampling.h */ -extern double anl_random_fract(void); -extern double anl_init_selection_state(int n); -extern double anl_get_next_S(double t, int n, double *stateptr); - -#endif /* VACUUM_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/variable.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/variable.h deleted file mode 100644 index 0e5ddcbcf..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/commands/variable.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * variable.h - * Routines for handling specialized SET variables. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/commands/variable.h - */ -#ifndef VARIABLE_H -#define VARIABLE_H - -#include "utils/guc.h" - - -extern bool check_datestyle(char **newval, void **extra, GucSource source); -extern void assign_datestyle(const char *newval, void *extra); -extern bool check_timezone(char **newval, void **extra, GucSource source); -extern void assign_timezone(const char *newval, void *extra); -extern const char *show_timezone(void); -extern bool check_log_timezone(char **newval, void **extra, GucSource source); -extern void assign_log_timezone(const char *newval, void *extra); -extern const char *show_log_timezone(void); -extern bool check_transaction_read_only(bool *newval, void **extra, GucSource source); -extern bool check_XactIsoLevel(int *newval, void **extra, GucSource source); -extern bool check_transaction_deferrable(bool *newval, void **extra, GucSource source); -extern bool check_random_seed(double *newval, void **extra, GucSource source); -extern void assign_random_seed(double newval, void *extra); -extern const char *show_random_seed(void); -extern bool check_client_encoding(char **newval, void **extra, GucSource source); -extern void assign_client_encoding(const char *newval, void *extra); -extern bool check_session_authorization(char **newval, void **extra, GucSource source); -extern void assign_session_authorization(const char *newval, void *extra); -extern bool check_role(char **newval, void **extra, GucSource source); -extern void assign_role(const char *newval, void *extra); -extern const char *show_role(void); - -#endif /* VARIABLE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/file_perm.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/file_perm.h deleted file mode 100644 index 48d68ef27..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/file_perm.h +++ /dev/null @@ -1,56 +0,0 @@ -/*------------------------------------------------------------------------- - * - * File and directory permission definitions - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/common/file_perm.h - * - *------------------------------------------------------------------------- - */ -#ifndef FILE_PERM_H -#define FILE_PERM_H - -#include - -/* - * Mode mask for data directory permissions that only allows the owner to - * read/write directories and files. - * - * This is the default. - */ -#define PG_MODE_MASK_OWNER (S_IRWXG | S_IRWXO) - -/* - * Mode mask for data directory permissions that also allows group read/execute. - */ -#define PG_MODE_MASK_GROUP (S_IWGRP | S_IRWXO) - -/* Default mode for creating directories */ -#define PG_DIR_MODE_OWNER S_IRWXU - -/* Mode for creating directories that allows group read/execute */ -#define PG_DIR_MODE_GROUP (S_IRWXU | S_IRGRP | S_IXGRP) - -/* Default mode for creating files */ -#define PG_FILE_MODE_OWNER (S_IRUSR | S_IWUSR) - -/* Mode for creating files that allows group read */ -#define PG_FILE_MODE_GROUP (S_IRUSR | S_IWUSR | S_IRGRP) - -/* Modes for creating directories and files in the data directory */ -extern PGDLLIMPORT int pg_dir_create_mode; -extern PGDLLIMPORT int pg_file_create_mode; - -/* Mode mask to pass to umask() */ -extern PGDLLIMPORT int pg_mode_mask; - -/* Set permissions and mask based on the provided mode */ -extern void SetDataDirectoryCreatePerm(int dataDirMode); - -/* Set permissions and mask based on the mode of the data directory */ -extern bool GetDataDirectoryCreatePerm(const char *dataDir); - -#endif /* FILE_PERM_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/hashfn.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/hashfn.h deleted file mode 100644 index 8d539c0a9..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/hashfn.h +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Utilities for working with hash values. - * - * Portions Copyright (c) 2017-2022, PostgreSQL Global Development Group - */ - -#ifndef HASHFN_H -#define HASHFN_H - - -/* - * Rotate the high 32 bits and the low 32 bits separately. The standard - * hash function sometimes rotates the low 32 bits by one bit when - * combining elements. We want extended hash functions to be compatible with - * that algorithm when the seed is 0, so we can't just do a normal rotation. - * This works, though. - */ -#define ROTATE_HIGH_AND_LOW_32BITS(v) \ - ((((v) << 1) & UINT64CONST(0xfffffffefffffffe)) | \ - (((v) >> 31) & UINT64CONST(0x100000001))) - - -extern uint32 hash_bytes(const unsigned char *k, int keylen); -extern uint64 hash_bytes_extended(const unsigned char *k, - int keylen, uint64 seed); -extern uint32 hash_bytes_uint32(uint32 k); -extern uint64 hash_bytes_uint32_extended(uint32 k, uint64 seed); - -#ifndef FRONTEND -static inline Datum -hash_any(const unsigned char *k, int keylen) -{ - return UInt32GetDatum(hash_bytes(k, keylen)); -} - -static inline Datum -hash_any_extended(const unsigned char *k, int keylen, uint64 seed) -{ - return UInt64GetDatum(hash_bytes_extended(k, keylen, seed)); -} - -static inline Datum -hash_uint32(uint32 k) -{ - return UInt32GetDatum(hash_bytes_uint32(k)); -} - -static inline Datum -hash_uint32_extended(uint32 k, uint64 seed) -{ - return UInt64GetDatum(hash_bytes_uint32_extended(k, seed)); -} -#endif - -extern uint32 string_hash(const void *key, Size keysize); -extern uint32 tag_hash(const void *key, Size keysize); -extern uint32 uint32_hash(const void *key, Size keysize); - -#define oid_hash uint32_hash /* Remove me eventually */ - -/* - * Combine two 32-bit hash values, resulting in another hash value, with - * decent bit mixing. - * - * Similar to boost's hash_combine(). - */ -static inline uint32 -hash_combine(uint32 a, uint32 b) -{ - a ^= b + 0x9e3779b9 + (a << 6) + (a >> 2); - return a; -} - -/* - * Combine two 64-bit hash values, resulting in another hash value, using the - * same kind of technique as hash_combine(). Testing shows that this also - * produces good bit mixing. - */ -static inline uint64 -hash_combine64(uint64 a, uint64 b) -{ - /* 0x49a0f4dd15e5a8e3 is 64bit random data */ - a ^= b + UINT64CONST(0x49a0f4dd15e5a8e3) + (a << 54) + (a >> 7); - return a; -} - -/* - * Simple inline murmur hash implementation hashing a 32 bit integer, for - * performance. - */ -static inline uint32 -murmurhash32(uint32 data) -{ - uint32 h = data; - - h ^= h >> 16; - h *= 0x85ebca6b; - h ^= h >> 13; - h *= 0xc2b2ae35; - h ^= h >> 16; - return h; -} - -#endif /* HASHFN_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/ip.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/ip.h deleted file mode 100644 index 841452098..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/ip.h +++ /dev/null @@ -1,31 +0,0 @@ -/*------------------------------------------------------------------------- - * - * ip.h - * Definitions for IPv6-aware network access. - * - * These definitions are used by both frontend and backend code. - * - * Copyright (c) 2003-2022, PostgreSQL Global Development Group - * - * src/include/common/ip.h - * - *------------------------------------------------------------------------- - */ -#ifndef IP_H -#define IP_H - -#include "getaddrinfo.h" /* pgrminclude ignore */ -#include "libpq/pqcomm.h" /* pgrminclude ignore */ - - -extern int pg_getaddrinfo_all(const char *hostname, const char *servname, - const struct addrinfo *hintp, - struct addrinfo **result); -extern void pg_freeaddrinfo_all(int hint_ai_family, struct addrinfo *ai); - -extern int pg_getnameinfo_all(const struct sockaddr_storage *addr, int salen, - char *node, int nodelen, - char *service, int servicelen, - int flags); - -#endif /* IP_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/keywords.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/keywords.h deleted file mode 100644 index b85237f90..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/keywords.h +++ /dev/null @@ -1,29 +0,0 @@ -/*------------------------------------------------------------------------- - * - * keywords.h - * PostgreSQL's list of SQL keywords - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/common/keywords.h - * - *------------------------------------------------------------------------- - */ -#ifndef KEYWORDS_H -#define KEYWORDS_H - -#include "common/kwlookup.h" - -/* Keyword categories --- should match lists in gram.y */ -#define UNRESERVED_KEYWORD 0 -#define COL_NAME_KEYWORD 1 -#define TYPE_FUNC_NAME_KEYWORD 2 -#define RESERVED_KEYWORD 3 - -extern PGDLLIMPORT const ScanKeywordList ScanKeywords; -extern PGDLLIMPORT const uint8 ScanKeywordCategories[]; -extern PGDLLIMPORT const bool ScanKeywordBareLabel[]; - -#endif /* KEYWORDS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/kwlookup.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/kwlookup.h deleted file mode 100644 index 48d7f08b8..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/kwlookup.h +++ /dev/null @@ -1,44 +0,0 @@ -/*------------------------------------------------------------------------- - * - * kwlookup.h - * Key word lookup for PostgreSQL - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/common/kwlookup.h - * - *------------------------------------------------------------------------- - */ -#ifndef KWLOOKUP_H -#define KWLOOKUP_H - -/* Hash function used by ScanKeywordLookup */ -typedef int (*ScanKeywordHashFunc) (const void *key, size_t keylen); - -/* - * This struct contains the data needed by ScanKeywordLookup to perform a - * search within a set of keywords. The contents are typically generated by - * src/tools/gen_keywordlist.pl from a header containing PG_KEYWORD macros. - */ -typedef struct ScanKeywordList -{ - const char *kw_string; /* all keywords in order, separated by \0 */ - const uint16 *kw_offsets; /* offsets to the start of each keyword */ - ScanKeywordHashFunc hash; /* perfect hash function for keywords */ - int num_keywords; /* number of keywords */ - int max_kw_len; /* length of longest keyword */ -} ScanKeywordList; - - -extern int ScanKeywordLookup(const char *text, const ScanKeywordList *keywords); - -/* Code that wants to retrieve the text of the N'th keyword should use this. */ -static inline const char * -GetScanKeyword(int n, const ScanKeywordList *keywords) -{ - return keywords->kw_string + keywords->kw_offsets[n]; -} - -#endif /* KWLOOKUP_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/pg_prng.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/pg_prng.h deleted file mode 100644 index 4be9a83ef..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/pg_prng.h +++ /dev/null @@ -1,60 +0,0 @@ -/*------------------------------------------------------------------------- - * - * Pseudo-Random Number Generator - * - * Copyright (c) 2021-2022, PostgreSQL Global Development Group - * - * src/include/common/pg_prng.h - * - *------------------------------------------------------------------------- - */ -#ifndef PG_PRNG_H -#define PG_PRNG_H - -/* - * State vector for PRNG generation. Callers should treat this as an - * opaque typedef, but we expose its definition to allow it to be - * embedded in other structs. - */ -typedef struct pg_prng_state -{ - uint64 s0, - s1; -} pg_prng_state; - -/* - * Callers not needing local PRNG series may use this global state vector, - * after initializing it with one of the pg_prng_...seed functions. - */ -extern PGDLLIMPORT __thread pg_prng_state pg_global_prng_state; - -extern void pg_prng_seed(pg_prng_state *state, uint64 seed); -extern void pg_prng_fseed(pg_prng_state *state, double fseed); -extern bool pg_prng_seed_check(pg_prng_state *state); - -/* - * Initialize the PRNG state from the pg_strong_random source, - * taking care that we don't produce all-zeroes. If this returns false, - * caller should initialize the PRNG state from some other random seed, - * using pg_prng_[f]seed. - * - * We implement this as a macro, so that the pg_strong_random() call is - * in the caller. If it were in pg_prng.c, programs using pg_prng.c - * but not needing strong seeding would nonetheless be forced to pull in - * pg_strong_random.c and thence OpenSSL. - */ -#define pg_prng_strong_seed(state) \ - (pg_strong_random((void *) (state), sizeof(pg_prng_state)) ? \ - pg_prng_seed_check(state) : false) - -extern uint64 pg_prng_uint64(pg_prng_state *state); -extern uint64 pg_prng_uint64_range(pg_prng_state *state, uint64 rmin, uint64 rmax); -extern int64 pg_prng_int64(pg_prng_state *state); -extern int64 pg_prng_int64p(pg_prng_state *state); -extern uint32 pg_prng_uint32(pg_prng_state *state); -extern int32 pg_prng_int32(pg_prng_state *state); -extern int32 pg_prng_int32p(pg_prng_state *state); -extern double pg_prng_double(pg_prng_state *state); -extern bool pg_prng_bool(pg_prng_state *state); - -#endif /* PG_PRNG_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/relpath.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/relpath.h deleted file mode 100644 index 13849a379..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/relpath.h +++ /dev/null @@ -1,90 +0,0 @@ -/*------------------------------------------------------------------------- - * - * relpath.h - * Declarations for GetRelationPath() and friends - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/common/relpath.h - * - *------------------------------------------------------------------------- - */ -#ifndef RELPATH_H -#define RELPATH_H - -/* - * 'pgrminclude ignore' needed here because CppAsString2() does not throw - * an error if the symbol is not defined. - */ -#include "catalog/catversion.h" /* pgrminclude ignore */ - - -/* - * Name of major-version-specific tablespace subdirectories - */ -#define TABLESPACE_VERSION_DIRECTORY "PG_" PG_MAJORVERSION "_" \ - CppAsString2(CATALOG_VERSION_NO) - -/* Characters to allow for an OID in a relation path */ -#define OIDCHARS 10 /* max chars printed by %u */ - -/* - * Stuff for fork names. - * - * The physical storage of a relation consists of one or more forks. - * The main fork is always created, but in addition to that there can be - * additional forks for storing various metadata. ForkNumber is used when - * we need to refer to a specific fork in a relation. - */ -typedef enum ForkNumber -{ - InvalidForkNumber = -1, - MAIN_FORKNUM = 0, - FSM_FORKNUM, - VISIBILITYMAP_FORKNUM, - INIT_FORKNUM - - /* - * NOTE: if you add a new fork, change MAX_FORKNUM and possibly - * FORKNAMECHARS below, and update the forkNames array in - * src/common/relpath.c - */ -} ForkNumber; - -#define MAX_FORKNUM INIT_FORKNUM - -#define FORKNAMECHARS 4 /* max chars for a fork name */ - -extern PGDLLIMPORT const char *const forkNames[]; - -extern ForkNumber forkname_to_number(const char *forkName); -extern int forkname_chars(const char *str, ForkNumber *fork); - -/* - * Stuff for computing filesystem pathnames for relations. - */ -extern char *GetDatabasePath(Oid dbNode, Oid spcNode); - -extern char *GetRelationPath(Oid dbNode, Oid spcNode, Oid relNode, - int backendId, ForkNumber forkNumber); - -/* - * Wrapper macros for GetRelationPath. Beware of multiple - * evaluation of the RelFileNode or RelFileNodeBackend argument! - */ - -/* First argument is a RelFileNode */ -#define relpathbackend(rnode, backend, forknum) \ - GetRelationPath((rnode).dbNode, (rnode).spcNode, (rnode).relNode, \ - backend, forknum) - -/* First argument is a RelFileNode */ -#define relpathperm(rnode, forknum) \ - relpathbackend(rnode, InvalidBackendId, forknum) - -/* First argument is a RelFileNodeBackend */ -#define relpath(rnode, forknum) \ - relpathbackend((rnode).node, (rnode).backend, forknum) - -#endif /* RELPATH_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/string.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/string.h deleted file mode 100644 index cf00fb53c..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/string.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * string.h - * string handling helpers - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/common/string.h - */ -#ifndef COMMON_STRING_H -#define COMMON_STRING_H - -struct StringInfoData; /* avoid including stringinfo.h here */ - -typedef struct PromptInterruptContext -{ - /* To avoid including here, jmpbuf is declared "void *" */ - void *jmpbuf; /* existing longjmp buffer */ - volatile bool *enabled; /* flag that enables longjmp-on-interrupt */ - bool canceled; /* indicates whether cancellation occurred */ -} PromptInterruptContext; - -/* functions in src/common/string.c */ -extern bool pg_str_endswith(const char *str, const char *end); -extern int strtoint(const char *pg_restrict str, char **pg_restrict endptr, - int base); -extern void pg_clean_ascii(char *str); -extern int pg_strip_crlf(char *str); -extern bool pg_is_ascii(const char *str); - -/* functions in src/common/pg_get_line.c */ -extern char *pg_get_line(FILE *stream, PromptInterruptContext *prompt_ctx); -extern bool pg_get_line_buf(FILE *stream, struct StringInfoData *buf); -extern bool pg_get_line_append(FILE *stream, struct StringInfoData *buf, - PromptInterruptContext *prompt_ctx); - -/* functions in src/common/sprompt.c */ -extern char *simple_prompt(const char *prompt, bool echo); -extern char *simple_prompt_extended(const char *prompt, bool echo, - PromptInterruptContext *prompt_ctx); - -#endif /* COMMON_STRING_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/unicode_combining_table.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/unicode_combining_table.h deleted file mode 100644 index de1eab3a9..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/unicode_combining_table.h +++ /dev/null @@ -1,308 +0,0 @@ -/* generated by src/common/unicode/generate-unicode_combining_table.pl, do not edit */ - -static const struct mbinterval combining[] = { - {0x0300, 0x036F}, - {0x0483, 0x0489}, - {0x0591, 0x05BD}, - {0x05BF, 0x05BF}, - {0x05C1, 0x05C2}, - {0x05C4, 0x05C5}, - {0x05C7, 0x05C7}, - {0x0610, 0x061A}, - {0x064B, 0x065F}, - {0x0670, 0x0670}, - {0x06D6, 0x06DC}, - {0x06DF, 0x06E4}, - {0x06E7, 0x06E8}, - {0x06EA, 0x06ED}, - {0x0711, 0x0711}, - {0x0730, 0x074A}, - {0x07A6, 0x07B0}, - {0x07EB, 0x07F3}, - {0x07FD, 0x07FD}, - {0x0816, 0x0819}, - {0x081B, 0x0823}, - {0x0825, 0x0827}, - {0x0829, 0x082D}, - {0x0859, 0x085B}, - {0x0898, 0x089F}, - {0x08CA, 0x08E1}, - {0x08E3, 0x0902}, - {0x093A, 0x093A}, - {0x093C, 0x093C}, - {0x0941, 0x0948}, - {0x094D, 0x094D}, - {0x0951, 0x0957}, - {0x0962, 0x0963}, - {0x0981, 0x0981}, - {0x09BC, 0x09BC}, - {0x09C1, 0x09C4}, - {0x09CD, 0x09CD}, - {0x09E2, 0x09E3}, - {0x09FE, 0x0A02}, - {0x0A3C, 0x0A3C}, - {0x0A41, 0x0A51}, - {0x0A70, 0x0A71}, - {0x0A75, 0x0A75}, - {0x0A81, 0x0A82}, - {0x0ABC, 0x0ABC}, - {0x0AC1, 0x0AC8}, - {0x0ACD, 0x0ACD}, - {0x0AE2, 0x0AE3}, - {0x0AFA, 0x0B01}, - {0x0B3C, 0x0B3C}, - {0x0B3F, 0x0B3F}, - {0x0B41, 0x0B44}, - {0x0B4D, 0x0B56}, - {0x0B62, 0x0B63}, - {0x0B82, 0x0B82}, - {0x0BC0, 0x0BC0}, - {0x0BCD, 0x0BCD}, - {0x0C00, 0x0C00}, - {0x0C04, 0x0C04}, - {0x0C3C, 0x0C3C}, - {0x0C3E, 0x0C40}, - {0x0C46, 0x0C56}, - {0x0C62, 0x0C63}, - {0x0C81, 0x0C81}, - {0x0CBC, 0x0CBC}, - {0x0CBF, 0x0CBF}, - {0x0CC6, 0x0CC6}, - {0x0CCC, 0x0CCD}, - {0x0CE2, 0x0CE3}, - {0x0D00, 0x0D01}, - {0x0D3B, 0x0D3C}, - {0x0D41, 0x0D44}, - {0x0D4D, 0x0D4D}, - {0x0D62, 0x0D63}, - {0x0D81, 0x0D81}, - {0x0DCA, 0x0DCA}, - {0x0DD2, 0x0DD6}, - {0x0E31, 0x0E31}, - {0x0E34, 0x0E3A}, - {0x0E47, 0x0E4E}, - {0x0EB1, 0x0EB1}, - {0x0EB4, 0x0EBC}, - {0x0EC8, 0x0ECD}, - {0x0F18, 0x0F19}, - {0x0F35, 0x0F35}, - {0x0F37, 0x0F37}, - {0x0F39, 0x0F39}, - {0x0F71, 0x0F7E}, - {0x0F80, 0x0F84}, - {0x0F86, 0x0F87}, - {0x0F8D, 0x0FBC}, - {0x0FC6, 0x0FC6}, - {0x102D, 0x1030}, - {0x1032, 0x1037}, - {0x1039, 0x103A}, - {0x103D, 0x103E}, - {0x1058, 0x1059}, - {0x105E, 0x1060}, - {0x1071, 0x1074}, - {0x1082, 0x1082}, - {0x1085, 0x1086}, - {0x108D, 0x108D}, - {0x109D, 0x109D}, - {0x135D, 0x135F}, - {0x1712, 0x1714}, - {0x1732, 0x1733}, - {0x1752, 0x1753}, - {0x1772, 0x1773}, - {0x17B4, 0x17B5}, - {0x17B7, 0x17BD}, - {0x17C6, 0x17C6}, - {0x17C9, 0x17D3}, - {0x17DD, 0x17DD}, - {0x180B, 0x180D}, - {0x180F, 0x180F}, - {0x1885, 0x1886}, - {0x18A9, 0x18A9}, - {0x1920, 0x1922}, - {0x1927, 0x1928}, - {0x1932, 0x1932}, - {0x1939, 0x193B}, - {0x1A17, 0x1A18}, - {0x1A1B, 0x1A1B}, - {0x1A56, 0x1A56}, - {0x1A58, 0x1A60}, - {0x1A62, 0x1A62}, - {0x1A65, 0x1A6C}, - {0x1A73, 0x1A7F}, - {0x1AB0, 0x1B03}, - {0x1B34, 0x1B34}, - {0x1B36, 0x1B3A}, - {0x1B3C, 0x1B3C}, - {0x1B42, 0x1B42}, - {0x1B6B, 0x1B73}, - {0x1B80, 0x1B81}, - {0x1BA2, 0x1BA5}, - {0x1BA8, 0x1BA9}, - {0x1BAB, 0x1BAD}, - {0x1BE6, 0x1BE6}, - {0x1BE8, 0x1BE9}, - {0x1BED, 0x1BED}, - {0x1BEF, 0x1BF1}, - {0x1C2C, 0x1C33}, - {0x1C36, 0x1C37}, - {0x1CD0, 0x1CD2}, - {0x1CD4, 0x1CE0}, - {0x1CE2, 0x1CE8}, - {0x1CED, 0x1CED}, - {0x1CF4, 0x1CF4}, - {0x1CF8, 0x1CF9}, - {0x1DC0, 0x1DFF}, - {0x20D0, 0x20F0}, - {0x2CEF, 0x2CF1}, - {0x2D7F, 0x2D7F}, - {0x2DE0, 0x2DFF}, - {0x302A, 0x302D}, - {0x3099, 0x309A}, - {0xA66F, 0xA672}, - {0xA674, 0xA67D}, - {0xA69E, 0xA69F}, - {0xA6F0, 0xA6F1}, - {0xA802, 0xA802}, - {0xA806, 0xA806}, - {0xA80B, 0xA80B}, - {0xA825, 0xA826}, - {0xA82C, 0xA82C}, - {0xA8C4, 0xA8C5}, - {0xA8E0, 0xA8F1}, - {0xA8FF, 0xA8FF}, - {0xA926, 0xA92D}, - {0xA947, 0xA951}, - {0xA980, 0xA982}, - {0xA9B3, 0xA9B3}, - {0xA9B6, 0xA9B9}, - {0xA9BC, 0xA9BD}, - {0xA9E5, 0xA9E5}, - {0xAA29, 0xAA2E}, - {0xAA31, 0xAA32}, - {0xAA35, 0xAA36}, - {0xAA43, 0xAA43}, - {0xAA4C, 0xAA4C}, - {0xAA7C, 0xAA7C}, - {0xAAB0, 0xAAB0}, - {0xAAB2, 0xAAB4}, - {0xAAB7, 0xAAB8}, - {0xAABE, 0xAABF}, - {0xAAC1, 0xAAC1}, - {0xAAEC, 0xAAED}, - {0xAAF6, 0xAAF6}, - {0xABE5, 0xABE5}, - {0xABE8, 0xABE8}, - {0xABED, 0xABED}, - {0xFB1E, 0xFB1E}, - {0xFE00, 0xFE0F}, - {0xFE20, 0xFE2F}, - {0x101FD, 0x101FD}, - {0x102E0, 0x102E0}, - {0x10376, 0x1037A}, - {0x10A01, 0x10A0F}, - {0x10A38, 0x10A3F}, - {0x10AE5, 0x10AE6}, - {0x10D24, 0x10D27}, - {0x10EAB, 0x10EAC}, - {0x10F46, 0x10F50}, - {0x10F82, 0x10F85}, - {0x11001, 0x11001}, - {0x11038, 0x11046}, - {0x11070, 0x11070}, - {0x11073, 0x11074}, - {0x1107F, 0x11081}, - {0x110B3, 0x110B6}, - {0x110B9, 0x110BA}, - {0x110C2, 0x110C2}, - {0x11100, 0x11102}, - {0x11127, 0x1112B}, - {0x1112D, 0x11134}, - {0x11173, 0x11173}, - {0x11180, 0x11181}, - {0x111B6, 0x111BE}, - {0x111C9, 0x111CC}, - {0x111CF, 0x111CF}, - {0x1122F, 0x11231}, - {0x11234, 0x11234}, - {0x11236, 0x11237}, - {0x1123E, 0x1123E}, - {0x112DF, 0x112DF}, - {0x112E3, 0x112EA}, - {0x11300, 0x11301}, - {0x1133B, 0x1133C}, - {0x11340, 0x11340}, - {0x11366, 0x11374}, - {0x11438, 0x1143F}, - {0x11442, 0x11444}, - {0x11446, 0x11446}, - {0x1145E, 0x1145E}, - {0x114B3, 0x114B8}, - {0x114BA, 0x114BA}, - {0x114BF, 0x114C0}, - {0x114C2, 0x114C3}, - {0x115B2, 0x115B5}, - {0x115BC, 0x115BD}, - {0x115BF, 0x115C0}, - {0x115DC, 0x115DD}, - {0x11633, 0x1163A}, - {0x1163D, 0x1163D}, - {0x1163F, 0x11640}, - {0x116AB, 0x116AB}, - {0x116AD, 0x116AD}, - {0x116B0, 0x116B5}, - {0x116B7, 0x116B7}, - {0x1171D, 0x1171F}, - {0x11722, 0x11725}, - {0x11727, 0x1172B}, - {0x1182F, 0x11837}, - {0x11839, 0x1183A}, - {0x1193B, 0x1193C}, - {0x1193E, 0x1193E}, - {0x11943, 0x11943}, - {0x119D4, 0x119DB}, - {0x119E0, 0x119E0}, - {0x11A01, 0x11A0A}, - {0x11A33, 0x11A38}, - {0x11A3B, 0x11A3E}, - {0x11A47, 0x11A47}, - {0x11A51, 0x11A56}, - {0x11A59, 0x11A5B}, - {0x11A8A, 0x11A96}, - {0x11A98, 0x11A99}, - {0x11C30, 0x11C3D}, - {0x11C3F, 0x11C3F}, - {0x11C92, 0x11CA7}, - {0x11CAA, 0x11CB0}, - {0x11CB2, 0x11CB3}, - {0x11CB5, 0x11CB6}, - {0x11D31, 0x11D45}, - {0x11D47, 0x11D47}, - {0x11D90, 0x11D91}, - {0x11D95, 0x11D95}, - {0x11D97, 0x11D97}, - {0x11EF3, 0x11EF4}, - {0x16AF0, 0x16AF4}, - {0x16B30, 0x16B36}, - {0x16F4F, 0x16F4F}, - {0x16F8F, 0x16F92}, - {0x16FE4, 0x16FE4}, - {0x1BC9D, 0x1BC9E}, - {0x1CF00, 0x1CF46}, - {0x1D167, 0x1D169}, - {0x1D17B, 0x1D182}, - {0x1D185, 0x1D18B}, - {0x1D1AA, 0x1D1AD}, - {0x1D242, 0x1D244}, - {0x1DA00, 0x1DA36}, - {0x1DA3B, 0x1DA6C}, - {0x1DA75, 0x1DA75}, - {0x1DA84, 0x1DA84}, - {0x1DA9B, 0x1DAAF}, - {0x1E000, 0x1E02A}, - {0x1E130, 0x1E136}, - {0x1E2AE, 0x1E2AE}, - {0x1E2EC, 0x1E2EF}, - {0x1E8D0, 0x1E8D6}, - {0x1E944, 0x1E94A}, - {0xE0100, 0xE01EF}, -}; diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/unicode_east_asian_fw_table.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/unicode_east_asian_fw_table.h deleted file mode 100644 index e9abfa244..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/common/unicode_east_asian_fw_table.h +++ /dev/null @@ -1,125 +0,0 @@ -/* generated by src/common/unicode/generate-unicode_east_asian_fw_table.pl, do not edit */ - -static const struct mbinterval east_asian_fw[] = { - {0x1100, 0x115F}, - {0x231A, 0x231B}, - {0x2329, 0x232A}, - {0x23E9, 0x23EC}, - {0x23F0, 0x23F0}, - {0x23F3, 0x23F3}, - {0x25FD, 0x25FE}, - {0x2614, 0x2615}, - {0x2648, 0x2653}, - {0x267F, 0x267F}, - {0x2693, 0x2693}, - {0x26A1, 0x26A1}, - {0x26AA, 0x26AB}, - {0x26BD, 0x26BE}, - {0x26C4, 0x26C5}, - {0x26CE, 0x26CE}, - {0x26D4, 0x26D4}, - {0x26EA, 0x26EA}, - {0x26F2, 0x26F3}, - {0x26F5, 0x26F5}, - {0x26FA, 0x26FA}, - {0x26FD, 0x26FD}, - {0x2705, 0x2705}, - {0x270A, 0x270B}, - {0x2728, 0x2728}, - {0x274C, 0x274C}, - {0x274E, 0x274E}, - {0x2753, 0x2755}, - {0x2757, 0x2757}, - {0x2795, 0x2797}, - {0x27B0, 0x27B0}, - {0x27BF, 0x27BF}, - {0x2B1B, 0x2B1C}, - {0x2B50, 0x2B50}, - {0x2B55, 0x2B55}, - {0x2E80, 0x2E99}, - {0x2E9B, 0x2EF3}, - {0x2F00, 0x2FD5}, - {0x2FF0, 0x2FFB}, - {0x3000, 0x303E}, - {0x3041, 0x3096}, - {0x3099, 0x30FF}, - {0x3105, 0x312F}, - {0x3131, 0x318E}, - {0x3190, 0x31E3}, - {0x31F0, 0x321E}, - {0x3220, 0x3247}, - {0x3250, 0x4DBF}, - {0x4E00, 0xA48C}, - {0xA490, 0xA4C6}, - {0xA960, 0xA97C}, - {0xAC00, 0xD7A3}, - {0xF900, 0xFAFF}, - {0xFE10, 0xFE19}, - {0xFE30, 0xFE52}, - {0xFE54, 0xFE66}, - {0xFE68, 0xFE6B}, - {0xFF01, 0xFF60}, - {0xFFE0, 0xFFE6}, - {0x16FE0, 0x16FE4}, - {0x16FF0, 0x16FF1}, - {0x17000, 0x187F7}, - {0x18800, 0x18CD5}, - {0x18D00, 0x18D08}, - {0x1AFF0, 0x1AFF3}, - {0x1AFF5, 0x1AFFB}, - {0x1AFFD, 0x1AFFE}, - {0x1B000, 0x1B122}, - {0x1B150, 0x1B152}, - {0x1B164, 0x1B167}, - {0x1B170, 0x1B2FB}, - {0x1F004, 0x1F004}, - {0x1F0CF, 0x1F0CF}, - {0x1F18E, 0x1F18E}, - {0x1F191, 0x1F19A}, - {0x1F200, 0x1F202}, - {0x1F210, 0x1F23B}, - {0x1F240, 0x1F248}, - {0x1F250, 0x1F251}, - {0x1F260, 0x1F265}, - {0x1F300, 0x1F320}, - {0x1F32D, 0x1F335}, - {0x1F337, 0x1F37C}, - {0x1F37E, 0x1F393}, - {0x1F3A0, 0x1F3CA}, - {0x1F3CF, 0x1F3D3}, - {0x1F3E0, 0x1F3F0}, - {0x1F3F4, 0x1F3F4}, - {0x1F3F8, 0x1F43E}, - {0x1F440, 0x1F440}, - {0x1F442, 0x1F4FC}, - {0x1F4FF, 0x1F53D}, - {0x1F54B, 0x1F54E}, - {0x1F550, 0x1F567}, - {0x1F57A, 0x1F57A}, - {0x1F595, 0x1F596}, - {0x1F5A4, 0x1F5A4}, - {0x1F5FB, 0x1F64F}, - {0x1F680, 0x1F6C5}, - {0x1F6CC, 0x1F6CC}, - {0x1F6D0, 0x1F6D2}, - {0x1F6D5, 0x1F6D7}, - {0x1F6DD, 0x1F6DF}, - {0x1F6EB, 0x1F6EC}, - {0x1F6F4, 0x1F6FC}, - {0x1F7E0, 0x1F7EB}, - {0x1F7F0, 0x1F7F0}, - {0x1F90C, 0x1F93A}, - {0x1F93C, 0x1F945}, - {0x1F947, 0x1F9FF}, - {0x1FA70, 0x1FA74}, - {0x1FA78, 0x1FA7C}, - {0x1FA80, 0x1FA86}, - {0x1FA90, 0x1FAAC}, - {0x1FAB0, 0x1FABA}, - {0x1FAC0, 0x1FAC5}, - {0x1FAD0, 0x1FAD9}, - {0x1FAE0, 0x1FAE7}, - {0x1FAF0, 0x1FAF6}, - {0x20000, 0x2FFFD}, - {0x30000, 0x3FFFD}, -}; diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/datatype/timestamp.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/datatype/timestamp.h deleted file mode 100644 index d155f1b03..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/datatype/timestamp.h +++ /dev/null @@ -1,236 +0,0 @@ -/*------------------------------------------------------------------------- - * - * timestamp.h - * Timestamp and Interval typedefs and related macros. - * - * Note: this file must be includable in both frontend and backend contexts. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/datatype/timestamp.h - * - *------------------------------------------------------------------------- - */ -#ifndef DATATYPE_TIMESTAMP_H -#define DATATYPE_TIMESTAMP_H - -/* - * Timestamp represents absolute time. - * - * Interval represents delta time. Keep track of months (and years), days, - * and hours/minutes/seconds separately since the elapsed time spanned is - * unknown until instantiated relative to an absolute time. - * - * Note that Postgres uses "time interval" to mean a bounded interval, - * consisting of a beginning and ending time, not a time span - thomas 97/03/20 - * - * Timestamps, as well as the h/m/s fields of intervals, are stored as - * int64 values with units of microseconds. (Once upon a time they were - * double values with units of seconds.) - * - * TimeOffset and fsec_t are convenience typedefs for temporary variables. - * Do not use fsec_t in values stored on-disk. - * Also, fsec_t is only meant for *fractional* seconds; beware of overflow - * if the value you need to store could be many seconds. - */ - -typedef int64 Timestamp; -typedef int64 TimestampTz; -typedef int64 TimeOffset; -typedef int32 fsec_t; /* fractional seconds (in microseconds) */ - - -/* - * Storage format for type interval. - */ -typedef struct -{ - TimeOffset time; /* all time units other than days, months and - * years */ - int32 day; /* days, after time for alignment */ - int32 month; /* months and years, after time for alignment */ -} Interval; - -/* - * Data structure representing a broken-down interval. - * - * For historical reasons, this is modeled on struct pg_tm for timestamps. - * Unlike the situation for timestamps, there's no magic interpretation - * needed for months or years: they're just zero or not. Note that fields - * can be negative; however, because of the divisions done while converting - * from struct Interval, only tm_mday could be INT_MIN. This is important - * because we may need to negate the values in some code paths. - */ -struct pg_itm -{ - int tm_usec; - int tm_sec; - int tm_min; - int64 tm_hour; /* needs to be wide */ - int tm_mday; - int tm_mon; - int tm_year; -}; - -/* - * Data structure for decoding intervals. We could just use struct pg_itm, - * but then the requirement for tm_usec to be 64 bits would propagate to - * places where it's not really needed. Also, omitting the fields that - * aren't used during decoding seems like a good error-prevention measure. - */ -struct pg_itm_in -{ - int64 tm_usec; /* needs to be wide */ - int tm_mday; - int tm_mon; - int tm_year; -}; - - -/* Limits on the "precision" option (typmod) for these data types */ -#define MAX_TIMESTAMP_PRECISION 6 -#define MAX_INTERVAL_PRECISION 6 - -/* - * Round off to MAX_TIMESTAMP_PRECISION decimal places. - * Note: this is also used for rounding off intervals. - */ -#define TS_PREC_INV 1000000.0 -#define TSROUND(j) (rint(((double) (j)) * TS_PREC_INV) / TS_PREC_INV) - - -/* - * Assorted constants for datetime-related calculations - */ - -#define DAYS_PER_YEAR 365.25 /* assumes leap year every four years */ -#define MONTHS_PER_YEAR 12 -/* - * DAYS_PER_MONTH is very imprecise. The more accurate value is - * 365.2425/12 = 30.436875, or '30 days 10:29:06'. Right now we only - * return an integral number of days, but someday perhaps we should - * also return a 'time' value to be used as well. ISO 8601 suggests - * 30 days. - */ -#define DAYS_PER_MONTH 30 /* assumes exactly 30 days per month */ -#define HOURS_PER_DAY 24 /* assume no daylight savings time changes */ - -/* - * This doesn't adjust for uneven daylight savings time intervals or leap - * seconds, and it crudely estimates leap years. A more accurate value - * for days per years is 365.2422. - */ -#define SECS_PER_YEAR (36525 * 864) /* avoid floating-point computation */ -#define SECS_PER_DAY 86400 -#define SECS_PER_HOUR 3600 -#define SECS_PER_MINUTE 60 -#define MINS_PER_HOUR 60 - -#define USECS_PER_DAY INT64CONST(86400000000) -#define USECS_PER_HOUR INT64CONST(3600000000) -#define USECS_PER_MINUTE INT64CONST(60000000) -#define USECS_PER_SEC INT64CONST(1000000) - -/* - * We allow numeric timezone offsets up to 15:59:59 either way from Greenwich. - * Currently, the record holders for wackiest offsets in actual use are zones - * Asia/Manila, at -15:56:00 until 1844, and America/Metlakatla, at +15:13:42 - * until 1867. If we were to reject such values we would fail to dump and - * restore old timestamptz values with these zone settings. - */ -#define MAX_TZDISP_HOUR 15 /* maximum allowed hour part */ -#define TZDISP_LIMIT ((MAX_TZDISP_HOUR + 1) * SECS_PER_HOUR) - -/* - * DT_NOBEGIN represents timestamp -infinity; DT_NOEND represents +infinity - */ -#define DT_NOBEGIN PG_INT64_MIN -#define DT_NOEND PG_INT64_MAX - -#define TIMESTAMP_NOBEGIN(j) \ - do {(j) = DT_NOBEGIN;} while (0) - -#define TIMESTAMP_IS_NOBEGIN(j) ((j) == DT_NOBEGIN) - -#define TIMESTAMP_NOEND(j) \ - do {(j) = DT_NOEND;} while (0) - -#define TIMESTAMP_IS_NOEND(j) ((j) == DT_NOEND) - -#define TIMESTAMP_NOT_FINITE(j) (TIMESTAMP_IS_NOBEGIN(j) || TIMESTAMP_IS_NOEND(j)) - - -/* - * Julian date support. - * - * date2j() and j2date() nominally handle the Julian date range 0..INT_MAX, - * or 4714-11-24 BC to 5874898-06-03 AD. In practice, date2j() will work and - * give correct negative Julian dates for dates before 4714-11-24 BC as well. - * We rely on it to do so back to 4714-11-01 BC. Allowing at least one day's - * slop is necessary so that timestamp rotation doesn't produce dates that - * would be rejected on input. For example, '4714-11-24 00:00 GMT BC' is a - * legal timestamptz value, but in zones east of Greenwich it would print as - * sometime in the afternoon of 4714-11-23 BC; if we couldn't process such a - * date we'd have a dump/reload failure. So the idea is for IS_VALID_JULIAN - * to accept a slightly wider range of dates than we really support, and - * then we apply the exact checks in IS_VALID_DATE or IS_VALID_TIMESTAMP, - * after timezone rotation if any. To save a few cycles, we can make - * IS_VALID_JULIAN check only to the month boundary, since its exact cutoffs - * are not very critical in this scheme. - * - * It is correct that JULIAN_MINYEAR is -4713, not -4714; it is defined to - * allow easy comparison to tm_year values, in which we follow the convention - * that tm_year <= 0 represents abs(tm_year)+1 BC. - */ - -#define JULIAN_MINYEAR (-4713) -#define JULIAN_MINMONTH (11) -#define JULIAN_MINDAY (24) -#define JULIAN_MAXYEAR (5874898) -#define JULIAN_MAXMONTH (6) -#define JULIAN_MAXDAY (3) - -#define IS_VALID_JULIAN(y,m,d) \ - (((y) > JULIAN_MINYEAR || \ - ((y) == JULIAN_MINYEAR && ((m) >= JULIAN_MINMONTH))) && \ - ((y) < JULIAN_MAXYEAR || \ - ((y) == JULIAN_MAXYEAR && ((m) < JULIAN_MAXMONTH)))) - -/* Julian-date equivalents of Day 0 in Unix and Postgres reckoning */ -#define UNIX_EPOCH_JDATE 2440588 /* == date2j(1970, 1, 1) */ -#define POSTGRES_EPOCH_JDATE 2451545 /* == date2j(2000, 1, 1) */ - -/* - * Range limits for dates and timestamps. - * - * We have traditionally allowed Julian day zero as a valid datetime value, - * so that is the lower bound for both dates and timestamps. - * - * The upper limit for dates is 5874897-12-31, which is a bit less than what - * the Julian-date code can allow. For timestamps, the upper limit is - * 294276-12-31. The int64 overflow limit would be a few days later; again, - * leaving some slop avoids worries about corner-case overflow, and provides - * a simpler user-visible definition. - */ - -/* First allowed date, and first disallowed date, in Julian-date form */ -#define DATETIME_MIN_JULIAN (0) -#define DATE_END_JULIAN (2147483494) /* == date2j(JULIAN_MAXYEAR, 1, 1) */ -#define TIMESTAMP_END_JULIAN (109203528) /* == date2j(294277, 1, 1) */ - -/* Timestamp limits */ -#define MIN_TIMESTAMP INT64CONST(-211813488000000000) -/* == (DATETIME_MIN_JULIAN - POSTGRES_EPOCH_JDATE) * USECS_PER_DAY */ -#define END_TIMESTAMP INT64CONST(9223371331200000000) -/* == (TIMESTAMP_END_JULIAN - POSTGRES_EPOCH_JDATE) * USECS_PER_DAY */ - -/* Range-check a date (given in Postgres, not Julian, numbering) */ -#define IS_VALID_DATE(d) \ - ((DATETIME_MIN_JULIAN - POSTGRES_EPOCH_JDATE) <= (d) && \ - (d) < (DATE_END_JULIAN - POSTGRES_EPOCH_JDATE)) - -/* Range-check a timestamp */ -#define IS_VALID_TIMESTAMP(t) (MIN_TIMESTAMP <= (t) && (t) < END_TIMESTAMP) - -#endif /* DATATYPE_TIMESTAMP_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/execdesc.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/execdesc.h deleted file mode 100644 index e79e2c001..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/execdesc.h +++ /dev/null @@ -1,70 +0,0 @@ -/*------------------------------------------------------------------------- - * - * execdesc.h - * plan and query descriptor accessor macros used by the executor - * and related modules. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/executor/execdesc.h - * - *------------------------------------------------------------------------- - */ -#ifndef EXECDESC_H -#define EXECDESC_H - -#include "nodes/execnodes.h" -#include "tcop/dest.h" - - -/* ---------------- - * query descriptor: - * - * a QueryDesc encapsulates everything that the executor - * needs to execute the query. - * - * For the convenience of SQL-language functions, we also support QueryDescs - * containing utility statements; these must not be passed to the executor - * however. - * --------------------- - */ -typedef struct QueryDesc -{ - /* These fields are provided by CreateQueryDesc */ - CmdType operation; /* CMD_SELECT, CMD_UPDATE, etc. */ - PlannedStmt *plannedstmt; /* planner's output (could be utility, too) */ - const char *sourceText; /* source text of the query */ - Snapshot snapshot; /* snapshot to use for query */ - Snapshot crosscheck_snapshot; /* crosscheck for RI update/delete */ - DestReceiver *dest; /* the destination for tuple output */ - ParamListInfo params; /* param values being passed in */ - QueryEnvironment *queryEnv; /* query environment passed in */ - int instrument_options; /* OR of InstrumentOption flags */ - - /* These fields are set by ExecutorStart */ - TupleDesc tupDesc; /* descriptor for result tuples */ - EState *estate; /* executor's query-wide state */ - PlanState *planstate; /* tree of per-plan-node state */ - - /* This field is set by ExecutorRun */ - bool already_executed; /* true if previously executed */ - - /* This is always set NULL by the core system, but plugins can change it */ - struct Instrumentation *totaltime; /* total time spent in ExecutorRun */ -} QueryDesc; - -/* in pquery.c */ -extern QueryDesc *CreateQueryDesc(PlannedStmt *plannedstmt, - const char *sourceText, - Snapshot snapshot, - Snapshot crosscheck_snapshot, - DestReceiver *dest, - ParamListInfo params, - QueryEnvironment *queryEnv, - int instrument_options); - -extern void FreeQueryDesc(QueryDesc *qdesc); - -#endif /* EXECDESC_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/executor.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/executor.h deleted file mode 100644 index 82925b4b6..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/executor.h +++ /dev/null @@ -1,663 +0,0 @@ -/*------------------------------------------------------------------------- - * - * executor.h - * support for the POSTGRES executor module - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/executor/executor.h - * - *------------------------------------------------------------------------- - */ -#ifndef EXECUTOR_H -#define EXECUTOR_H - -#include "executor/execdesc.h" -#include "fmgr.h" -#include "nodes/lockoptions.h" -#include "nodes/parsenodes.h" -#include "utils/memutils.h" - - -/* - * The "eflags" argument to ExecutorStart and the various ExecInitNode - * routines is a bitwise OR of the following flag bits, which tell the - * called plan node what to expect. Note that the flags will get modified - * as they are passed down the plan tree, since an upper node may require - * functionality in its subnode not demanded of the plan as a whole - * (example: MergeJoin requires mark/restore capability in its inner input), - * or an upper node may shield its input from some functionality requirement - * (example: Materialize shields its input from needing to do backward scan). - * - * EXPLAIN_ONLY indicates that the plan tree is being initialized just so - * EXPLAIN can print it out; it will not be run. Hence, no side-effects - * of startup should occur. However, error checks (such as permission checks) - * should be performed. - * - * REWIND indicates that the plan node should try to efficiently support - * rescans without parameter changes. (Nodes must support ExecReScan calls - * in any case, but if this flag was not given, they are at liberty to do it - * through complete recalculation. Note that a parameter change forces a - * full recalculation in any case.) - * - * BACKWARD indicates that the plan node must respect the es_direction flag. - * When this is not passed, the plan node will only be run forwards. - * - * MARK indicates that the plan node must support Mark/Restore calls. - * When this is not passed, no Mark/Restore will occur. - * - * SKIP_TRIGGERS tells ExecutorStart/ExecutorFinish to skip calling - * AfterTriggerBeginQuery/AfterTriggerEndQuery. This does not necessarily - * mean that the plan can't queue any AFTER triggers; just that the caller - * is responsible for there being a trigger context for them to be queued in. - */ -#define EXEC_FLAG_EXPLAIN_ONLY 0x0001 /* EXPLAIN, no ANALYZE */ -#define EXEC_FLAG_REWIND 0x0002 /* need efficient rescan */ -#define EXEC_FLAG_BACKWARD 0x0004 /* need backward scan */ -#define EXEC_FLAG_MARK 0x0008 /* need mark/restore */ -#define EXEC_FLAG_SKIP_TRIGGERS 0x0010 /* skip AfterTrigger calls */ -#define EXEC_FLAG_WITH_NO_DATA 0x0020 /* rel scannability doesn't matter */ - - -/* Hook for plugins to get control in ExecutorStart() */ -typedef void (*ExecutorStart_hook_type) (QueryDesc *queryDesc, int eflags); -extern PGDLLIMPORT ExecutorStart_hook_type ExecutorStart_hook; - -/* Hook for plugins to get control in ExecutorRun() */ -typedef void (*ExecutorRun_hook_type) (QueryDesc *queryDesc, - ScanDirection direction, - uint64 count, - bool execute_once); -extern PGDLLIMPORT ExecutorRun_hook_type ExecutorRun_hook; - -/* Hook for plugins to get control in ExecutorFinish() */ -typedef void (*ExecutorFinish_hook_type) (QueryDesc *queryDesc); -extern PGDLLIMPORT ExecutorFinish_hook_type ExecutorFinish_hook; - -/* Hook for plugins to get control in ExecutorEnd() */ -typedef void (*ExecutorEnd_hook_type) (QueryDesc *queryDesc); -extern PGDLLIMPORT ExecutorEnd_hook_type ExecutorEnd_hook; - -/* Hook for plugins to get control in ExecCheckRTPerms() */ -typedef bool (*ExecutorCheckPerms_hook_type) (List *, bool); -extern PGDLLIMPORT ExecutorCheckPerms_hook_type ExecutorCheckPerms_hook; - - -/* - * prototypes from functions in execAmi.c - */ -struct Path; /* avoid including pathnodes.h here */ - -extern void ExecReScan(PlanState *node); -extern void ExecMarkPos(PlanState *node); -extern void ExecRestrPos(PlanState *node); -extern bool ExecSupportsMarkRestore(struct Path *pathnode); -extern bool ExecSupportsBackwardScan(Plan *node); -extern bool ExecMaterializesOutput(NodeTag plantype); - -/* - * prototypes from functions in execCurrent.c - */ -extern bool execCurrentOf(CurrentOfExpr *cexpr, - ExprContext *econtext, - Oid table_oid, - ItemPointer current_tid); - -/* - * prototypes from functions in execGrouping.c - */ -extern ExprState *execTuplesMatchPrepare(TupleDesc desc, - int numCols, - const AttrNumber *keyColIdx, - const Oid *eqOperators, - const Oid *collations, - PlanState *parent); -extern void execTuplesHashPrepare(int numCols, - const Oid *eqOperators, - Oid **eqFuncOids, - FmgrInfo **hashFunctions); -extern TupleHashTable BuildTupleHashTable(PlanState *parent, - TupleDesc inputDesc, - int numCols, AttrNumber *keyColIdx, - const Oid *eqfuncoids, - FmgrInfo *hashfunctions, - Oid *collations, - long nbuckets, Size additionalsize, - MemoryContext tablecxt, - MemoryContext tempcxt, bool use_variable_hash_iv); -extern TupleHashTable BuildTupleHashTableExt(PlanState *parent, - TupleDesc inputDesc, - int numCols, AttrNumber *keyColIdx, - const Oid *eqfuncoids, - FmgrInfo *hashfunctions, - Oid *collations, - long nbuckets, Size additionalsize, - MemoryContext metacxt, - MemoryContext tablecxt, - MemoryContext tempcxt, bool use_variable_hash_iv); -extern TupleHashEntry LookupTupleHashEntry(TupleHashTable hashtable, - TupleTableSlot *slot, - bool *isnew, uint32 *hash); -extern uint32 TupleHashTableHash(TupleHashTable hashtable, - TupleTableSlot *slot); -extern TupleHashEntry LookupTupleHashEntryHash(TupleHashTable hashtable, - TupleTableSlot *slot, - bool *isnew, uint32 hash); -extern TupleHashEntry FindTupleHashEntry(TupleHashTable hashtable, - TupleTableSlot *slot, - ExprState *eqcomp, - FmgrInfo *hashfunctions); -extern void ResetTupleHashTable(TupleHashTable hashtable); - -/* - * prototypes from functions in execJunk.c - */ -extern JunkFilter *ExecInitJunkFilter(List *targetList, - TupleTableSlot *slot); -extern JunkFilter *ExecInitJunkFilterConversion(List *targetList, - TupleDesc cleanTupType, - TupleTableSlot *slot); -extern AttrNumber ExecFindJunkAttribute(JunkFilter *junkfilter, - const char *attrName); -extern AttrNumber ExecFindJunkAttributeInTlist(List *targetlist, - const char *attrName); -extern TupleTableSlot *ExecFilterJunk(JunkFilter *junkfilter, - TupleTableSlot *slot); - -/* - * ExecGetJunkAttribute - * - * Given a junk filter's input tuple (slot) and a junk attribute's number - * previously found by ExecFindJunkAttribute, extract & return the value and - * isNull flag of the attribute. - */ -#ifndef FRONTEND -static inline Datum -ExecGetJunkAttribute(TupleTableSlot *slot, AttrNumber attno, bool *isNull) -{ - Assert(attno > 0); - return slot_getattr(slot, attno, isNull); -} -#endif - -/* - * prototypes from functions in execMain.c - */ -extern void ExecutorStart(QueryDesc *queryDesc, int eflags); -extern void standard_ExecutorStart(QueryDesc *queryDesc, int eflags); -extern void ExecutorRun(QueryDesc *queryDesc, - ScanDirection direction, uint64 count, bool execute_once); -extern void standard_ExecutorRun(QueryDesc *queryDesc, - ScanDirection direction, uint64 count, bool execute_once); -extern void ExecutorFinish(QueryDesc *queryDesc); -extern void standard_ExecutorFinish(QueryDesc *queryDesc); -extern void ExecutorEnd(QueryDesc *queryDesc); -extern void standard_ExecutorEnd(QueryDesc *queryDesc); -extern void ExecutorRewind(QueryDesc *queryDesc); -extern bool ExecCheckRTPerms(List *rangeTable, bool ereport_on_violation); -extern void CheckValidResultRel(ResultRelInfo *resultRelInfo, CmdType operation); -extern void InitResultRelInfo(ResultRelInfo *resultRelInfo, - Relation resultRelationDesc, - Index resultRelationIndex, - ResultRelInfo *partition_root_rri, - int instrument_options); -extern ResultRelInfo *ExecGetTriggerResultRel(EState *estate, Oid relid, - ResultRelInfo *rootRelInfo); -extern List *ExecGetAncestorResultRels(EState *estate, ResultRelInfo *resultRelInfo); -extern void ExecConstraints(ResultRelInfo *resultRelInfo, - TupleTableSlot *slot, EState *estate); -extern bool ExecPartitionCheck(ResultRelInfo *resultRelInfo, - TupleTableSlot *slot, EState *estate, bool emitError); -extern void ExecPartitionCheckEmitError(ResultRelInfo *resultRelInfo, - TupleTableSlot *slot, EState *estate); -extern void ExecWithCheckOptions(WCOKind kind, ResultRelInfo *resultRelInfo, - TupleTableSlot *slot, EState *estate); -extern LockTupleMode ExecUpdateLockMode(EState *estate, ResultRelInfo *relinfo); -extern ExecRowMark *ExecFindRowMark(EState *estate, Index rti, bool missing_ok); -extern ExecAuxRowMark *ExecBuildAuxRowMark(ExecRowMark *erm, List *targetlist); -extern TupleTableSlot *EvalPlanQual(EPQState *epqstate, Relation relation, - Index rti, TupleTableSlot *testslot); -extern void EvalPlanQualInit(EPQState *epqstate, EState *parentestate, - Plan *subplan, List *auxrowmarks, int epqParam); -extern void EvalPlanQualSetPlan(EPQState *epqstate, - Plan *subplan, List *auxrowmarks); -extern TupleTableSlot *EvalPlanQualSlot(EPQState *epqstate, - Relation relation, Index rti); - -#define EvalPlanQualSetSlot(epqstate, slot) ((epqstate)->origslot = (slot)) -extern bool EvalPlanQualFetchRowMark(EPQState *epqstate, Index rti, TupleTableSlot *slot); -extern TupleTableSlot *EvalPlanQualNext(EPQState *epqstate); -extern void EvalPlanQualBegin(EPQState *epqstate); -extern void EvalPlanQualEnd(EPQState *epqstate); - -/* - * functions in execProcnode.c - */ -extern PlanState *ExecInitNode(Plan *node, EState *estate, int eflags); -extern void ExecSetExecProcNode(PlanState *node, ExecProcNodeMtd function); -extern Node *MultiExecProcNode(PlanState *node); -extern void ExecEndNode(PlanState *node); -extern bool ExecShutdownNode(PlanState *node); -extern void ExecSetTupleBound(int64 tuples_needed, PlanState *child_node); - - -/* ---------------------------------------------------------------- - * ExecProcNode - * - * Execute the given node to return a(nother) tuple. - * ---------------------------------------------------------------- - */ -#ifndef FRONTEND -static inline TupleTableSlot * -ExecProcNode(PlanState *node) -{ - if (node->chgParam != NULL) /* something changed? */ - ExecReScan(node); /* let ReScan handle this */ - - return node->ExecProcNode(node); -} -#endif - -/* - * prototypes from functions in execExpr.c - */ -extern ExprState *ExecInitExpr(Expr *node, PlanState *parent); -extern ExprState *ExecInitExprWithParams(Expr *node, ParamListInfo ext_params); -extern ExprState *ExecInitQual(List *qual, PlanState *parent); -extern ExprState *ExecInitCheck(List *qual, PlanState *parent); -extern List *ExecInitExprList(List *nodes, PlanState *parent); -extern ExprState *ExecBuildAggTrans(AggState *aggstate, struct AggStatePerPhaseData *phase, - bool doSort, bool doHash, bool nullcheck); -extern ExprState *ExecBuildGroupingEqual(TupleDesc ldesc, TupleDesc rdesc, - const TupleTableSlotOps *lops, const TupleTableSlotOps *rops, - int numCols, - const AttrNumber *keyColIdx, - const Oid *eqfunctions, - const Oid *collations, - PlanState *parent); -extern ExprState *ExecBuildParamSetEqual(TupleDesc desc, - const TupleTableSlotOps *lops, - const TupleTableSlotOps *rops, - const Oid *eqfunctions, - const Oid *collations, - const List *param_exprs, - PlanState *parent); -extern ProjectionInfo *ExecBuildProjectionInfo(List *targetList, - ExprContext *econtext, - TupleTableSlot *slot, - PlanState *parent, - TupleDesc inputDesc); -extern ProjectionInfo *ExecBuildUpdateProjection(List *targetList, - bool evalTargetList, - List *targetColnos, - TupleDesc relDesc, - ExprContext *econtext, - TupleTableSlot *slot, - PlanState *parent); -extern ExprState *ExecPrepareExpr(Expr *node, EState *estate); -extern ExprState *ExecPrepareQual(List *qual, EState *estate); -extern ExprState *ExecPrepareCheck(List *qual, EState *estate); -extern List *ExecPrepareExprList(List *nodes, EState *estate); - -/* - * ExecEvalExpr - * - * Evaluate expression identified by "state" in the execution context - * given by "econtext". *isNull is set to the is-null flag for the result, - * and the Datum value is the function result. - * - * The caller should already have switched into the temporary memory - * context econtext->ecxt_per_tuple_memory. The convenience entry point - * ExecEvalExprSwitchContext() is provided for callers who don't prefer to - * do the switch in an outer loop. - */ -#ifndef FRONTEND -static inline Datum -ExecEvalExpr(ExprState *state, - ExprContext *econtext, - bool *isNull) -{ - return state->evalfunc(state, econtext, isNull); -} -#endif - -/* - * ExecEvalExprSwitchContext - * - * Same as ExecEvalExpr, but get into the right allocation context explicitly. - */ -#ifndef FRONTEND -static inline Datum -ExecEvalExprSwitchContext(ExprState *state, - ExprContext *econtext, - bool *isNull) -{ - Datum retDatum; - MemoryContext oldContext; - - oldContext = MemoryContextSwitchTo(econtext->ecxt_per_tuple_memory); - retDatum = state->evalfunc(state, econtext, isNull); - MemoryContextSwitchTo(oldContext); - return retDatum; -} -#endif - -/* - * ExecProject - * - * Projects a tuple based on projection info and stores it in the slot passed - * to ExecBuildProjectionInfo(). - * - * Note: the result is always a virtual tuple; therefore it may reference - * the contents of the exprContext's scan tuples and/or temporary results - * constructed in the exprContext. If the caller wishes the result to be - * valid longer than that data will be valid, he must call ExecMaterializeSlot - * on the result slot. - */ -#ifndef FRONTEND -static inline TupleTableSlot * -ExecProject(ProjectionInfo *projInfo) -{ - ExprContext *econtext = projInfo->pi_exprContext; - ExprState *state = &projInfo->pi_state; - TupleTableSlot *slot = state->resultslot; - bool isnull; - - /* - * Clear any former contents of the result slot. This makes it safe for - * us to use the slot's Datum/isnull arrays as workspace. - */ - ExecClearTuple(slot); - - /* Run the expression, discarding scalar result from the last column. */ - (void) ExecEvalExprSwitchContext(state, econtext, &isnull); - - /* - * Successfully formed a result row. Mark the result slot as containing a - * valid virtual tuple (inlined version of ExecStoreVirtualTuple()). - */ - slot->tts_flags &= ~TTS_FLAG_EMPTY; - slot->tts_nvalid = slot->tts_tupleDescriptor->natts; - - return slot; -} -#endif - -/* - * ExecQual - evaluate a qual prepared with ExecInitQual (possibly via - * ExecPrepareQual). Returns true if qual is satisfied, else false. - * - * Note: ExecQual used to have a third argument "resultForNull". The - * behavior of this function now corresponds to resultForNull == false. - * If you want the resultForNull == true behavior, see ExecCheck. - */ -#ifndef FRONTEND -static inline bool -ExecQual(ExprState *state, ExprContext *econtext) -{ - Datum ret; - bool isnull; - - /* short-circuit (here and in ExecInitQual) for empty restriction list */ - if (state == NULL) - return true; - - /* verify that expression was compiled using ExecInitQual */ - Assert(state->flags & EEO_FLAG_IS_QUAL); - - ret = ExecEvalExprSwitchContext(state, econtext, &isnull); - - /* EEOP_QUAL should never return NULL */ - Assert(!isnull); - - return DatumGetBool(ret); -} -#endif - -/* - * ExecQualAndReset() - evaluate qual with ExecQual() and reset expression - * context. - */ -#ifndef FRONTEND -static inline bool -ExecQualAndReset(ExprState *state, ExprContext *econtext) -{ - bool ret = ExecQual(state, econtext); - - /* inline ResetExprContext, to avoid ordering issue in this file */ - MemoryContextReset(econtext->ecxt_per_tuple_memory); - return ret; -} -#endif - -extern bool ExecCheck(ExprState *state, ExprContext *context); - -/* - * prototypes from functions in execSRF.c - */ -extern SetExprState *ExecInitTableFunctionResult(Expr *expr, - ExprContext *econtext, PlanState *parent); -extern Tuplestorestate *ExecMakeTableFunctionResult(SetExprState *setexpr, - ExprContext *econtext, - MemoryContext argContext, - TupleDesc expectedDesc, - bool randomAccess); -extern SetExprState *ExecInitFunctionResultSet(Expr *expr, - ExprContext *econtext, PlanState *parent); -extern Datum ExecMakeFunctionResultSet(SetExprState *fcache, - ExprContext *econtext, - MemoryContext argContext, - bool *isNull, - ExprDoneCond *isDone); - -/* - * prototypes from functions in execScan.c - */ -typedef TupleTableSlot *(*ExecScanAccessMtd) (ScanState *node); -typedef bool (*ExecScanRecheckMtd) (ScanState *node, TupleTableSlot *slot); - -extern TupleTableSlot *ExecScan(ScanState *node, ExecScanAccessMtd accessMtd, - ExecScanRecheckMtd recheckMtd); -extern void ExecAssignScanProjectionInfo(ScanState *node); -extern void ExecAssignScanProjectionInfoWithVarno(ScanState *node, int varno); -extern void ExecScanReScan(ScanState *node); - -/* - * prototypes from functions in execTuples.c - */ -extern void ExecInitResultTypeTL(PlanState *planstate); -extern void ExecInitResultSlot(PlanState *planstate, - const TupleTableSlotOps *tts_ops); -extern void ExecInitResultTupleSlotTL(PlanState *planstate, - const TupleTableSlotOps *tts_ops); -extern void ExecInitScanTupleSlot(EState *estate, ScanState *scanstate, - TupleDesc tupleDesc, - const TupleTableSlotOps *tts_ops); -extern TupleTableSlot *ExecInitExtraTupleSlot(EState *estate, - TupleDesc tupledesc, - const TupleTableSlotOps *tts_ops); -extern TupleTableSlot *ExecInitNullTupleSlot(EState *estate, TupleDesc tupType, - const TupleTableSlotOps *tts_ops); -extern TupleDesc ExecTypeFromTL(List *targetList); -extern TupleDesc ExecCleanTypeFromTL(List *targetList); -extern TupleDesc ExecTypeFromExprList(List *exprList); -extern void ExecTypeSetColNames(TupleDesc typeInfo, List *namesList); -extern void UpdateChangedParamSet(PlanState *node, Bitmapset *newchg); - -typedef struct TupOutputState -{ - TupleTableSlot *slot; - DestReceiver *dest; -} TupOutputState; - -extern TupOutputState *begin_tup_output_tupdesc(DestReceiver *dest, - TupleDesc tupdesc, - const TupleTableSlotOps *tts_ops); -extern void do_tup_output(TupOutputState *tstate, Datum *values, bool *isnull); -extern void do_text_output_multiline(TupOutputState *tstate, const char *txt); -extern void end_tup_output(TupOutputState *tstate); - -/* - * Write a single line of text given as a C string. - * - * Should only be used with a single-TEXT-attribute tupdesc. - */ -#define do_text_output_oneline(tstate, str_to_emit) \ - do { \ - Datum values_[1]; \ - bool isnull_[1]; \ - values_[0] = PointerGetDatum(cstring_to_text(str_to_emit)); \ - isnull_[0] = false; \ - do_tup_output(tstate, values_, isnull_); \ - pfree(DatumGetPointer(values_[0])); \ - } while (0) - - -/* - * prototypes from functions in execUtils.c - */ -extern EState *CreateExecutorState(void); -extern void FreeExecutorState(EState *estate); -extern ExprContext *CreateExprContext(EState *estate); -extern ExprContext *CreateWorkExprContext(EState *estate); -extern ExprContext *CreateStandaloneExprContext(void); -extern void FreeExprContext(ExprContext *econtext, bool isCommit); -extern void ReScanExprContext(ExprContext *econtext); - -#define ResetExprContext(econtext) \ - MemoryContextReset((econtext)->ecxt_per_tuple_memory) - -extern ExprContext *MakePerTupleExprContext(EState *estate); - -/* Get an EState's per-output-tuple exprcontext, making it if first use */ -#define GetPerTupleExprContext(estate) \ - ((estate)->es_per_tuple_exprcontext ? \ - (estate)->es_per_tuple_exprcontext : \ - MakePerTupleExprContext(estate)) - -#define GetPerTupleMemoryContext(estate) \ - (GetPerTupleExprContext(estate)->ecxt_per_tuple_memory) - -/* Reset an EState's per-output-tuple exprcontext, if one's been created */ -#define ResetPerTupleExprContext(estate) \ - do { \ - if ((estate)->es_per_tuple_exprcontext) \ - ResetExprContext((estate)->es_per_tuple_exprcontext); \ - } while (0) - -extern void ExecAssignExprContext(EState *estate, PlanState *planstate); -extern TupleDesc ExecGetResultType(PlanState *planstate); -extern const TupleTableSlotOps *ExecGetResultSlotOps(PlanState *planstate, - bool *isfixed); -extern void ExecAssignProjectionInfo(PlanState *planstate, - TupleDesc inputDesc); -extern void ExecConditionalAssignProjectionInfo(PlanState *planstate, - TupleDesc inputDesc, int varno); -extern void ExecFreeExprContext(PlanState *planstate); -extern void ExecAssignScanType(ScanState *scanstate, TupleDesc tupDesc); -extern void ExecCreateScanSlotFromOuterPlan(EState *estate, - ScanState *scanstate, - const TupleTableSlotOps *tts_ops); - -extern bool ExecRelationIsTargetRelation(EState *estate, Index scanrelid); - -extern Relation ExecOpenScanRelation(EState *estate, Index scanrelid, int eflags); - -extern void ExecInitRangeTable(EState *estate, List *rangeTable); -extern void ExecCloseRangeTableRelations(EState *estate); -extern void ExecCloseResultRelations(EState *estate); - -static inline RangeTblEntry * -exec_rt_fetch(Index rti, EState *estate) -{ - return (RangeTblEntry *) list_nth(estate->es_range_table, rti - 1); -} - -extern Relation ExecGetRangeTableRelation(EState *estate, Index rti); -extern void ExecInitResultRelation(EState *estate, ResultRelInfo *resultRelInfo, - Index rti); - -extern int executor_errposition(EState *estate, int location); - -extern void RegisterExprContextCallback(ExprContext *econtext, - ExprContextCallbackFunction function, - Datum arg); -extern void UnregisterExprContextCallback(ExprContext *econtext, - ExprContextCallbackFunction function, - Datum arg); - -extern Datum GetAttributeByName(HeapTupleHeader tuple, const char *attname, - bool *isNull); -extern Datum GetAttributeByNum(HeapTupleHeader tuple, AttrNumber attrno, - bool *isNull); - -extern int ExecTargetListLength(List *targetlist); -extern int ExecCleanTargetListLength(List *targetlist); - -extern TupleTableSlot *ExecGetTriggerOldSlot(EState *estate, ResultRelInfo *relInfo); -extern TupleTableSlot *ExecGetTriggerNewSlot(EState *estate, ResultRelInfo *relInfo); -extern TupleTableSlot *ExecGetReturningSlot(EState *estate, ResultRelInfo *relInfo); -extern TupleConversionMap *ExecGetChildToRootMap(ResultRelInfo *resultRelInfo); - -extern Bitmapset *ExecGetInsertedCols(ResultRelInfo *relinfo, EState *estate); -extern Bitmapset *ExecGetUpdatedCols(ResultRelInfo *relinfo, EState *estate); -extern Bitmapset *ExecGetExtraUpdatedCols(ResultRelInfo *relinfo, EState *estate); -extern Bitmapset *ExecGetAllUpdatedCols(ResultRelInfo *relinfo, EState *estate); - -/* - * prototypes from functions in execIndexing.c - */ -extern void ExecOpenIndices(ResultRelInfo *resultRelInfo, bool speculative); -extern void ExecCloseIndices(ResultRelInfo *resultRelInfo); -extern List *ExecInsertIndexTuples(ResultRelInfo *resultRelInfo, - TupleTableSlot *slot, EState *estate, - bool update, - bool noDupErr, - bool *specConflict, List *arbiterIndexes); -extern bool ExecCheckIndexConstraints(ResultRelInfo *resultRelInfo, - TupleTableSlot *slot, - EState *estate, ItemPointer conflictTid, - List *arbiterIndexes); -extern void check_exclusion_constraint(Relation heap, Relation index, - IndexInfo *indexInfo, - ItemPointer tupleid, - Datum *values, bool *isnull, - EState *estate, bool newIndex); - -/* - * prototypes from functions in execReplication.c - */ -extern bool RelationFindReplTupleByIndex(Relation rel, Oid idxoid, - LockTupleMode lockmode, - TupleTableSlot *searchslot, - TupleTableSlot *outslot); -extern bool RelationFindReplTupleSeq(Relation rel, LockTupleMode lockmode, - TupleTableSlot *searchslot, TupleTableSlot *outslot); - -extern void ExecSimpleRelationInsert(ResultRelInfo *resultRelInfo, - EState *estate, TupleTableSlot *slot); -extern void ExecSimpleRelationUpdate(ResultRelInfo *resultRelInfo, - EState *estate, EPQState *epqstate, - TupleTableSlot *searchslot, TupleTableSlot *slot); -extern void ExecSimpleRelationDelete(ResultRelInfo *resultRelInfo, - EState *estate, EPQState *epqstate, - TupleTableSlot *searchslot); -extern void CheckCmdReplicaIdentity(Relation rel, CmdType cmd); - -extern void CheckSubscriptionRelkind(char relkind, const char *nspname, - const char *relname); - -/* - * prototypes from functions in nodeModifyTable.c - */ -extern TupleTableSlot *ExecGetUpdateNewTuple(ResultRelInfo *relinfo, - TupleTableSlot *planSlot, - TupleTableSlot *oldSlot); -extern ResultRelInfo *ExecLookupResultRelByOid(ModifyTableState *node, - Oid resultoid, - bool missing_ok, - bool update_cache); - -#endif /* EXECUTOR_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/functions.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/functions.h deleted file mode 100644 index 4c20cf4df..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/functions.h +++ /dev/null @@ -1,55 +0,0 @@ -/*------------------------------------------------------------------------- - * - * functions.h - * Declarations for execution of SQL-language functions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/executor/functions.h - * - *------------------------------------------------------------------------- - */ -#ifndef FUNCTIONS_H -#define FUNCTIONS_H - -#include "nodes/execnodes.h" -#include "tcop/dest.h" - -/* - * Data structure needed by the parser callback hooks to resolve parameter - * references during parsing of a SQL function's body. This is separate from - * SQLFunctionCache since we sometimes do parsing separately from execution. - */ -typedef struct SQLFunctionParseInfo -{ - char *fname; /* function's name */ - int nargs; /* number of input arguments */ - Oid *argtypes; /* resolved types of input arguments */ - char **argnames; /* names of input arguments; NULL if none */ - /* Note that argnames[i] can be NULL, if some args are unnamed */ - Oid collation; /* function's input collation, if known */ -} SQLFunctionParseInfo; - -typedef SQLFunctionParseInfo *SQLFunctionParseInfoPtr; - -extern Datum fmgr_sql(PG_FUNCTION_ARGS); - -extern SQLFunctionParseInfoPtr prepare_sql_fn_parse_info(HeapTuple procedureTuple, - Node *call_expr, - Oid inputCollation); - -extern void sql_fn_parser_setup(struct ParseState *pstate, - SQLFunctionParseInfoPtr pinfo); - -extern void check_sql_fn_statements(List *queryTreeLists); - -extern bool check_sql_fn_retval(List *queryTreeLists, - Oid rettype, TupleDesc rettupdesc, - bool insertDroppedCols, - List **resultTargetList); - -extern DestReceiver *CreateSQLFunctionDestReceiver(void); - -#endif /* FUNCTIONS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/instrument.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/instrument.h deleted file mode 100644 index 2945cce3a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/instrument.h +++ /dev/null @@ -1,118 +0,0 @@ -/*------------------------------------------------------------------------- - * - * instrument.h - * definitions for run-time statistics collection - * - * - * Copyright (c) 2001-2022, PostgreSQL Global Development Group - * - * src/include/executor/instrument.h - * - *------------------------------------------------------------------------- - */ -#ifndef INSTRUMENT_H -#define INSTRUMENT_H - -#include "portability/instr_time.h" - - -/* - * BufferUsage and WalUsage counters keep being incremented infinitely, - * i.e., must never be reset to zero, so that we can calculate how much - * the counters are incremented in an arbitrary period. - */ -typedef struct BufferUsage -{ - int64 shared_blks_hit; /* # of shared buffer hits */ - int64 shared_blks_read; /* # of shared disk blocks read */ - int64 shared_blks_dirtied; /* # of shared blocks dirtied */ - int64 shared_blks_written; /* # of shared disk blocks written */ - int64 local_blks_hit; /* # of local buffer hits */ - int64 local_blks_read; /* # of local disk blocks read */ - int64 local_blks_dirtied; /* # of local blocks dirtied */ - int64 local_blks_written; /* # of local disk blocks written */ - int64 temp_blks_read; /* # of temp blocks read */ - int64 temp_blks_written; /* # of temp blocks written */ - instr_time blk_read_time; /* time spent reading blocks */ - instr_time blk_write_time; /* time spent writing blocks */ - instr_time temp_blk_read_time; /* time spent reading temp blocks */ - instr_time temp_blk_write_time; /* time spent writing temp blocks */ -} BufferUsage; - -/* - * WalUsage tracks only WAL activity like WAL records generation that - * can be measured per query and is displayed by EXPLAIN command, - * pg_stat_statements extension, etc. It does not track other WAL activity - * like WAL writes that it's not worth measuring per query. That's tracked - * by WAL global statistics counters in WalStats, instead. - */ -typedef struct WalUsage -{ - int64 wal_records; /* # of WAL records produced */ - int64 wal_fpi; /* # of WAL full page images produced */ - uint64 wal_bytes; /* size of WAL records produced */ -} WalUsage; - -/* Flag bits included in InstrAlloc's instrument_options bitmask */ -typedef enum InstrumentOption -{ - INSTRUMENT_TIMER = 1 << 0, /* needs timer (and row counts) */ - INSTRUMENT_BUFFERS = 1 << 1, /* needs buffer usage */ - INSTRUMENT_ROWS = 1 << 2, /* needs row count */ - INSTRUMENT_WAL = 1 << 3, /* needs WAL usage */ - INSTRUMENT_ALL = PG_INT32_MAX -} InstrumentOption; - -typedef struct Instrumentation -{ - /* Parameters set at node creation: */ - bool need_timer; /* true if we need timer data */ - bool need_bufusage; /* true if we need buffer usage data */ - bool need_walusage; /* true if we need WAL usage data */ - bool async_mode; /* true if node is in async mode */ - /* Info about current plan cycle: */ - bool running; /* true if we've completed first tuple */ - instr_time starttime; /* start time of current iteration of node */ - instr_time counter; /* accumulated runtime for this node */ - double firsttuple; /* time for first tuple of this cycle */ - double tuplecount; /* # of tuples emitted so far this cycle */ - BufferUsage bufusage_start; /* buffer usage at start */ - WalUsage walusage_start; /* WAL usage at start */ - /* Accumulated statistics across all completed cycles: */ - double startup; /* total startup time (in seconds) */ - double total; /* total time (in seconds) */ - double ntuples; /* total tuples produced */ - double ntuples2; /* secondary node-specific tuple counter */ - double nloops; /* # of run cycles for this node */ - double nfiltered1; /* # of tuples removed by scanqual or joinqual */ - double nfiltered2; /* # of tuples removed by "other" quals */ - BufferUsage bufusage; /* total buffer usage */ - WalUsage walusage; /* total WAL usage */ -} Instrumentation; - -typedef struct WorkerInstrumentation -{ - int num_workers; /* # of structures that follow */ - Instrumentation instrument[FLEXIBLE_ARRAY_MEMBER]; -} WorkerInstrumentation; - -extern PGDLLIMPORT BufferUsage pgBufferUsage; -extern PGDLLIMPORT WalUsage pgWalUsage; - -extern Instrumentation *InstrAlloc(int n, int instrument_options, - bool async_mode); -extern void InstrInit(Instrumentation *instr, int instrument_options); -extern void InstrStartNode(Instrumentation *instr); -extern void InstrStopNode(Instrumentation *instr, double nTuples); -extern void InstrUpdateTupleCount(Instrumentation *instr, double nTuples); -extern void InstrEndLoop(Instrumentation *instr); -extern void InstrAggNode(Instrumentation *dst, Instrumentation *add); -extern void InstrStartParallelQuery(void); -extern void InstrEndParallelQuery(BufferUsage *bufusage, WalUsage *walusage); -extern void InstrAccumParallelQuery(BufferUsage *bufusage, WalUsage *walusage); -extern void BufferUsageAccumDiff(BufferUsage *dst, - const BufferUsage *add, const BufferUsage *sub); -extern void WalUsageAccumDiff(WalUsage *dst, const WalUsage *add, - const WalUsage *sub); - -#endif /* INSTRUMENT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/spi.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/spi.h deleted file mode 100644 index b2c0c7486..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/spi.h +++ /dev/null @@ -1,213 +0,0 @@ -/*------------------------------------------------------------------------- - * - * spi.h - * Server Programming Interface public declarations - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/executor/spi.h - * - *------------------------------------------------------------------------- - */ -#ifndef SPI_H -#define SPI_H - -#include "commands/trigger.h" -#include "lib/ilist.h" -#include "parser/parser.h" -#include "utils/portal.h" - - -typedef struct SPITupleTable -{ - /* Public members */ - TupleDesc tupdesc; /* tuple descriptor */ - HeapTuple *vals; /* array of tuples */ - uint64 numvals; /* number of valid tuples */ - - /* Private members, not intended for external callers */ - uint64 alloced; /* allocated length of vals array */ - MemoryContext tuptabcxt; /* memory context of result table */ - slist_node next; /* link for internal bookkeeping */ - SubTransactionId subid; /* subxact in which tuptable was created */ -} SPITupleTable; - -/* Optional arguments for SPI_prepare_extended */ -typedef struct SPIPrepareOptions -{ - ParserSetupHook parserSetup; - void *parserSetupArg; - RawParseMode parseMode; - int cursorOptions; -} SPIPrepareOptions; - -/* Optional arguments for SPI_execute[_plan]_extended */ -typedef struct SPIExecuteOptions -{ - ParamListInfo params; - bool read_only; - bool allow_nonatomic; - bool must_return_tuples; - uint64 tcount; - DestReceiver *dest; - ResourceOwner owner; -} SPIExecuteOptions; - -/* Optional arguments for SPI_cursor_parse_open */ -typedef struct SPIParseOpenOptions -{ - ParamListInfo params; - int cursorOptions; - bool read_only; -} SPIParseOpenOptions; - -/* Plans are opaque structs for standard users of SPI */ -typedef struct _SPI_plan *SPIPlanPtr; - -#define SPI_ERROR_CONNECT (-1) -#define SPI_ERROR_COPY (-2) -#define SPI_ERROR_OPUNKNOWN (-3) -#define SPI_ERROR_UNCONNECTED (-4) -#define SPI_ERROR_CURSOR (-5) /* not used anymore */ -#define SPI_ERROR_ARGUMENT (-6) -#define SPI_ERROR_PARAM (-7) -#define SPI_ERROR_TRANSACTION (-8) -#define SPI_ERROR_NOATTRIBUTE (-9) -#define SPI_ERROR_NOOUTFUNC (-10) -#define SPI_ERROR_TYPUNKNOWN (-11) -#define SPI_ERROR_REL_DUPLICATE (-12) -#define SPI_ERROR_REL_NOT_FOUND (-13) - -#define SPI_OK_CONNECT 1 -#define SPI_OK_FINISH 2 -#define SPI_OK_FETCH 3 -#define SPI_OK_UTILITY 4 -#define SPI_OK_SELECT 5 -#define SPI_OK_SELINTO 6 -#define SPI_OK_INSERT 7 -#define SPI_OK_DELETE 8 -#define SPI_OK_UPDATE 9 -#define SPI_OK_CURSOR 10 -#define SPI_OK_INSERT_RETURNING 11 -#define SPI_OK_DELETE_RETURNING 12 -#define SPI_OK_UPDATE_RETURNING 13 -#define SPI_OK_REWRITTEN 14 -#define SPI_OK_REL_REGISTER 15 -#define SPI_OK_REL_UNREGISTER 16 -#define SPI_OK_TD_REGISTER 17 -#define SPI_OK_MERGE 18 - -#define SPI_OPT_NONATOMIC (1 << 0) - -/* These used to be functions, now just no-ops for backwards compatibility */ -#define SPI_push() ((void) 0) -#define SPI_pop() ((void) 0) -#define SPI_push_conditional() false -#define SPI_pop_conditional(pushed) ((void) 0) -#define SPI_restore_connection() ((void) 0) - -extern PGDLLIMPORT uint64 SPI_processed; -extern PGDLLIMPORT SPITupleTable *SPI_tuptable; -extern PGDLLIMPORT int SPI_result; - -extern int SPI_connect(void); -extern int SPI_connect_ext(int options); -extern int SPI_finish(void); -extern int SPI_execute(const char *src, bool read_only, long tcount); -extern int SPI_execute_extended(const char *src, - const SPIExecuteOptions *options); -extern int SPI_execute_plan(SPIPlanPtr plan, Datum *Values, const char *Nulls, - bool read_only, long tcount); -extern int SPI_execute_plan_extended(SPIPlanPtr plan, - const SPIExecuteOptions *options); -extern int SPI_execute_plan_with_paramlist(SPIPlanPtr plan, - ParamListInfo params, - bool read_only, long tcount); -extern int SPI_exec(const char *src, long tcount); -extern int SPI_execp(SPIPlanPtr plan, Datum *Values, const char *Nulls, - long tcount); -extern int SPI_execute_snapshot(SPIPlanPtr plan, - Datum *Values, const char *Nulls, - Snapshot snapshot, - Snapshot crosscheck_snapshot, - bool read_only, bool fire_triggers, long tcount); -extern int SPI_execute_with_args(const char *src, - int nargs, Oid *argtypes, - Datum *Values, const char *Nulls, - bool read_only, long tcount); -extern SPIPlanPtr SPI_prepare(const char *src, int nargs, Oid *argtypes); -extern SPIPlanPtr SPI_prepare_cursor(const char *src, int nargs, Oid *argtypes, - int cursorOptions); -extern SPIPlanPtr SPI_prepare_extended(const char *src, - const SPIPrepareOptions *options); -extern SPIPlanPtr SPI_prepare_params(const char *src, - ParserSetupHook parserSetup, - void *parserSetupArg, - int cursorOptions); -extern int SPI_keepplan(SPIPlanPtr plan); -extern SPIPlanPtr SPI_saveplan(SPIPlanPtr plan); -extern int SPI_freeplan(SPIPlanPtr plan); - -extern Oid SPI_getargtypeid(SPIPlanPtr plan, int argIndex); -extern int SPI_getargcount(SPIPlanPtr plan); -extern bool SPI_is_cursor_plan(SPIPlanPtr plan); -extern bool SPI_plan_is_valid(SPIPlanPtr plan); -extern const char *SPI_result_code_string(int code); - -extern List *SPI_plan_get_plan_sources(SPIPlanPtr plan); -extern CachedPlan *SPI_plan_get_cached_plan(SPIPlanPtr plan); - -extern HeapTuple SPI_copytuple(HeapTuple tuple); -extern HeapTupleHeader SPI_returntuple(HeapTuple tuple, TupleDesc tupdesc); -extern HeapTuple SPI_modifytuple(Relation rel, HeapTuple tuple, int natts, - int *attnum, Datum *Values, const char *Nulls); -extern int SPI_fnumber(TupleDesc tupdesc, const char *fname); -extern char *SPI_fname(TupleDesc tupdesc, int fnumber); -extern char *SPI_getvalue(HeapTuple tuple, TupleDesc tupdesc, int fnumber); -extern Datum SPI_getbinval(HeapTuple tuple, TupleDesc tupdesc, int fnumber, bool *isnull); -extern char *SPI_gettype(TupleDesc tupdesc, int fnumber); -extern Oid SPI_gettypeid(TupleDesc tupdesc, int fnumber); -extern char *SPI_getrelname(Relation rel); -extern char *SPI_getnspname(Relation rel); -extern void *SPI_palloc(Size size); -extern void *SPI_repalloc(void *pointer, Size size); -extern void SPI_pfree(void *pointer); -extern Datum SPI_datumTransfer(Datum value, bool typByVal, int typLen); -extern void SPI_freetuple(HeapTuple pointer); -extern void SPI_freetuptable(SPITupleTable *tuptable); - -extern Portal SPI_cursor_open(const char *name, SPIPlanPtr plan, - Datum *Values, const char *Nulls, bool read_only); -extern Portal SPI_cursor_open_with_args(const char *name, - const char *src, - int nargs, Oid *argtypes, - Datum *Values, const char *Nulls, - bool read_only, int cursorOptions); -extern Portal SPI_cursor_open_with_paramlist(const char *name, SPIPlanPtr plan, - ParamListInfo params, bool read_only); -extern Portal SPI_cursor_parse_open(const char *name, - const char *src, - const SPIParseOpenOptions *options); -extern Portal SPI_cursor_find(const char *name); -extern void SPI_cursor_fetch(Portal portal, bool forward, long count); -extern void SPI_cursor_move(Portal portal, bool forward, long count); -extern void SPI_scroll_cursor_fetch(Portal, FetchDirection direction, long count); -extern void SPI_scroll_cursor_move(Portal, FetchDirection direction, long count); -extern void SPI_cursor_close(Portal portal); - -extern int SPI_register_relation(EphemeralNamedRelation enr); -extern int SPI_unregister_relation(const char *name); -extern int SPI_register_trigger_data(TriggerData *tdata); - -extern void SPI_start_transaction(void); -extern void SPI_commit(void); -extern void SPI_commit_and_chain(void); -extern void SPI_rollback(void); -extern void SPI_rollback_and_chain(void); - -extern void AtEOXact_SPI(bool isCommit); -extern void AtEOSubXact_SPI(bool isCommit, SubTransactionId mySubid); -extern bool SPI_inside_nonatomic_context(void); - -#endif /* SPI_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/tablefunc.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/tablefunc.h deleted file mode 100644 index 23b7ae558..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/tablefunc.h +++ /dev/null @@ -1,67 +0,0 @@ -/*------------------------------------------------------------------------- - * - * tablefunc.h - * interface for TableFunc executor node - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/executor/tablefunc.h - * - *------------------------------------------------------------------------- - */ -#ifndef _TABLEFUNC_H -#define _TABLEFUNC_H - -/* Forward-declare this to avoid including execnodes.h here */ -struct TableFuncScanState; - -/* - * TableFuncRoutine holds function pointers used for generating content of - * table-producer functions, such as XMLTABLE. - * - * InitOpaque initializes table builder private objects. The output tuple - * descriptor, input functions for the columns, and typioparams are passed - * from executor state. - * - * SetDocument is called to define the input document. The table builder may - * apply additional transformations not exposed outside the table builder - * context. - * - * SetNamespace is called to pass namespace declarations from the table - * expression. This function may be NULL if namespaces are not supported by - * the table builder. Namespaces must be given before setting the row and - * column filters. If the name is given as NULL, the entry shall be for the - * default namespace. - * - * SetRowFilter is called do define the row-generating filter, which shall be - * used to extract each row from the input document. - * - * SetColumnFilter is called once for each column, to define the column- - * generating filter for the given column. - * - * FetchRow shall be called repeatedly until it returns that no more rows are - * found in the document. On each invocation it shall set state in the table - * builder context such that each subsequent GetValue call returns the values - * for the indicated column for the row being processed. - * - * DestroyOpaque shall release all resources associated with a table builder - * context. It may be called either because all rows have been consumed, or - * because an error occurred while processing the table expression. - */ -typedef struct TableFuncRoutine -{ - void (*InitOpaque) (struct TableFuncScanState *state, int natts); - void (*SetDocument) (struct TableFuncScanState *state, Datum value); - void (*SetNamespace) (struct TableFuncScanState *state, const char *name, - const char *uri); - void (*SetRowFilter) (struct TableFuncScanState *state, const char *path); - void (*SetColumnFilter) (struct TableFuncScanState *state, - const char *path, int colnum); - bool (*FetchRow) (struct TableFuncScanState *state); - Datum (*GetValue) (struct TableFuncScanState *state, int colnum, - Oid typid, int32 typmod, bool *isnull); - void (*DestroyOpaque) (struct TableFuncScanState *state); -} TableFuncRoutine; - -#endif /* _TABLEFUNC_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/tuptable.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/tuptable.h deleted file mode 100644 index 6306bb6fc..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/executor/tuptable.h +++ /dev/null @@ -1,487 +0,0 @@ -/*------------------------------------------------------------------------- - * - * tuptable.h - * tuple table support stuff - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/executor/tuptable.h - * - *------------------------------------------------------------------------- - */ -#ifndef TUPTABLE_H -#define TUPTABLE_H - -#include "access/htup.h" -#include "access/htup_details.h" -#include "access/sysattr.h" -#include "access/tupdesc.h" -#include "storage/buf.h" - -/*---------- - * The executor stores tuples in a "tuple table" which is a List of - * independent TupleTableSlots. - * - * There's various different types of tuple table slots, each being able to - * store different types of tuples. Additional types of slots can be added - * without modifying core code. The type of a slot is determined by the - * TupleTableSlotOps* passed to the slot creation routine. The builtin types - * of slots are - * - * 1. physical tuple in a disk buffer page (TTSOpsBufferHeapTuple) - * 2. physical tuple constructed in palloc'ed memory (TTSOpsHeapTuple) - * 3. "minimal" physical tuple constructed in palloc'ed memory - * (TTSOpsMinimalTuple) - * 4. "virtual" tuple consisting of Datum/isnull arrays (TTSOpsVirtual) - * - * - * The first two cases are similar in that they both deal with "materialized" - * tuples, but resource management is different. For a tuple in a disk page - * we need to hold a pin on the buffer until the TupleTableSlot's reference - * to the tuple is dropped; while for a palloc'd tuple we usually want the - * tuple pfree'd when the TupleTableSlot's reference is dropped. - * - * A "minimal" tuple is handled similarly to a palloc'd regular tuple. - * At present, minimal tuples never are stored in buffers, so there is no - * parallel to case 1. Note that a minimal tuple has no "system columns". - * (Actually, it could have an OID, but we have no need to access the OID.) - * - * A "virtual" tuple is an optimization used to minimize physical data copying - * in a nest of plan nodes. Until materialized pass-by-reference Datums in - * the slot point to storage that is not directly associated with the - * TupleTableSlot; generally they will point to part of a tuple stored in a - * lower plan node's output TupleTableSlot, or to a function result - * constructed in a plan node's per-tuple econtext. It is the responsibility - * of the generating plan node to be sure these resources are not released for - * as long as the virtual tuple needs to be valid or is materialized. Note - * also that a virtual tuple does not have any "system columns". - * - * The Datum/isnull arrays of a TupleTableSlot serve double duty. For virtual - * slots they are the authoritative data. For the other builtin slots, - * the arrays contain data extracted from the tuple. (In this state, any - * pass-by-reference Datums point into the physical tuple.) The extracted - * information is built "lazily", ie, only as needed. This serves to avoid - * repeated extraction of data from the physical tuple. - * - * A TupleTableSlot can also be "empty", indicated by flag TTS_FLAG_EMPTY set - * in tts_flags, holding no valid data. This is the only valid state for a - * freshly-created slot that has not yet had a tuple descriptor assigned to - * it. In this state, TTS_SHOULDFREE should not be set in tts_flags, tts_tuple - * must be NULL and tts_nvalid zero. - * - * The tupleDescriptor is simply referenced, not copied, by the TupleTableSlot - * code. The caller of ExecSetSlotDescriptor() is responsible for providing - * a descriptor that will live as long as the slot does. (Typically, both - * slots and descriptors are in per-query memory and are freed by memory - * context deallocation at query end; so it's not worth providing any extra - * mechanism to do more. However, the slot will increment the tupdesc - * reference count if a reference-counted tupdesc is supplied.) - * - * When TTS_SHOULDFREE is set in tts_flags, the physical tuple is "owned" by - * the slot and should be freed when the slot's reference to the tuple is - * dropped. - * - * tts_values/tts_isnull are allocated either when the slot is created (when - * the descriptor is provided), or when a descriptor is assigned to the slot; - * they are of length equal to the descriptor's natts. - * - * The TTS_FLAG_SLOW flag is saved state for - * slot_deform_heap_tuple, and should not be touched by any other code. - *---------- - */ - -/* true = slot is empty */ -#define TTS_FLAG_EMPTY (1 << 1) -#define TTS_EMPTY(slot) (((slot)->tts_flags & TTS_FLAG_EMPTY) != 0) - -/* should pfree tuple "owned" by the slot? */ -#define TTS_FLAG_SHOULDFREE (1 << 2) -#define TTS_SHOULDFREE(slot) (((slot)->tts_flags & TTS_FLAG_SHOULDFREE) != 0) - -/* saved state for slot_deform_heap_tuple */ -#define TTS_FLAG_SLOW (1 << 3) -#define TTS_SLOW(slot) (((slot)->tts_flags & TTS_FLAG_SLOW) != 0) - -/* fixed tuple descriptor */ -#define TTS_FLAG_FIXED (1 << 4) -#define TTS_FIXED(slot) (((slot)->tts_flags & TTS_FLAG_FIXED) != 0) - -struct TupleTableSlotOps; -typedef struct TupleTableSlotOps TupleTableSlotOps; - -/* base tuple table slot type */ -typedef struct TupleTableSlot -{ - NodeTag type; -#define FIELDNO_TUPLETABLESLOT_FLAGS 1 - uint16 tts_flags; /* Boolean states */ -#define FIELDNO_TUPLETABLESLOT_NVALID 2 - AttrNumber tts_nvalid; /* # of valid values in tts_values */ - const TupleTableSlotOps *const tts_ops; /* implementation of slot */ -#define FIELDNO_TUPLETABLESLOT_TUPLEDESCRIPTOR 4 - TupleDesc tts_tupleDescriptor; /* slot's tuple descriptor */ -#define FIELDNO_TUPLETABLESLOT_VALUES 5 - Datum *tts_values; /* current per-attribute values */ -#define FIELDNO_TUPLETABLESLOT_ISNULL 6 - bool *tts_isnull; /* current per-attribute isnull flags */ - MemoryContext tts_mcxt; /* slot itself is in this context */ - ItemPointerData tts_tid; /* stored tuple's tid */ - Oid tts_tableOid; /* table oid of tuple */ -} TupleTableSlot; - -/* routines for a TupleTableSlot implementation */ -struct TupleTableSlotOps -{ - /* Minimum size of the slot */ - size_t base_slot_size; - - /* Initialization. */ - void (*init) (TupleTableSlot *slot); - - /* Destruction. */ - void (*release) (TupleTableSlot *slot); - - /* - * Clear the contents of the slot. Only the contents are expected to be - * cleared and not the tuple descriptor. Typically an implementation of - * this callback should free the memory allocated for the tuple contained - * in the slot. - */ - void (*clear) (TupleTableSlot *slot); - - /* - * Fill up first natts entries of tts_values and tts_isnull arrays with - * values from the tuple contained in the slot. The function may be called - * with natts more than the number of attributes available in the tuple, - * in which case it should set tts_nvalid to the number of returned - * columns. - */ - void (*getsomeattrs) (TupleTableSlot *slot, int natts); - - /* - * Returns value of the given system attribute as a datum and sets isnull - * to false, if it's not NULL. Throws an error if the slot type does not - * support system attributes. - */ - Datum (*getsysattr) (TupleTableSlot *slot, int attnum, bool *isnull); - - /* - * Make the contents of the slot solely depend on the slot, and not on - * underlying resources (like another memory context, buffers, etc). - */ - void (*materialize) (TupleTableSlot *slot); - - /* - * Copy the contents of the source slot into the destination slot's own - * context. Invoked using callback of the destination slot. - */ - void (*copyslot) (TupleTableSlot *dstslot, TupleTableSlot *srcslot); - - /* - * Return a heap tuple "owned" by the slot. It is slot's responsibility to - * free the memory consumed by the heap tuple. If the slot can not "own" a - * heap tuple, it should not implement this callback and should set it as - * NULL. - */ - HeapTuple (*get_heap_tuple) (TupleTableSlot *slot); - - /* - * Return a minimal tuple "owned" by the slot. It is slot's responsibility - * to free the memory consumed by the minimal tuple. If the slot can not - * "own" a minimal tuple, it should not implement this callback and should - * set it as NULL. - */ - MinimalTuple (*get_minimal_tuple) (TupleTableSlot *slot); - - /* - * Return a copy of heap tuple representing the contents of the slot. The - * copy needs to be palloc'd in the current memory context. The slot - * itself is expected to remain unaffected. It is *not* expected to have - * meaningful "system columns" in the copy. The copy is not be "owned" by - * the slot i.e. the caller has to take responsibility to free memory - * consumed by the slot. - */ - HeapTuple (*copy_heap_tuple) (TupleTableSlot *slot); - - /* - * Return a copy of minimal tuple representing the contents of the slot. - * The copy needs to be palloc'd in the current memory context. The slot - * itself is expected to remain unaffected. It is *not* expected to have - * meaningful "system columns" in the copy. The copy is not be "owned" by - * the slot i.e. the caller has to take responsibility to free memory - * consumed by the slot. - */ - MinimalTuple (*copy_minimal_tuple) (TupleTableSlot *slot); -}; - -/* - * Predefined TupleTableSlotOps for various types of TupleTableSlotOps. The - * same are used to identify the type of a given slot. - */ -extern PGDLLIMPORT const TupleTableSlotOps TTSOpsVirtual; -extern PGDLLIMPORT const TupleTableSlotOps TTSOpsHeapTuple; -extern PGDLLIMPORT const TupleTableSlotOps TTSOpsMinimalTuple; -extern PGDLLIMPORT const TupleTableSlotOps TTSOpsBufferHeapTuple; - -#define TTS_IS_VIRTUAL(slot) ((slot)->tts_ops == &TTSOpsVirtual) -#define TTS_IS_HEAPTUPLE(slot) ((slot)->tts_ops == &TTSOpsHeapTuple) -#define TTS_IS_MINIMALTUPLE(slot) ((slot)->tts_ops == &TTSOpsMinimalTuple) -#define TTS_IS_BUFFERTUPLE(slot) ((slot)->tts_ops == &TTSOpsBufferHeapTuple) - - -/* - * Tuple table slot implementations. - */ - -typedef struct VirtualTupleTableSlot -{ - TupleTableSlot base; - - char *data; /* data for materialized slots */ -} VirtualTupleTableSlot; - -typedef struct HeapTupleTableSlot -{ - TupleTableSlot base; - -#define FIELDNO_HEAPTUPLETABLESLOT_TUPLE 1 - HeapTuple tuple; /* physical tuple */ -#define FIELDNO_HEAPTUPLETABLESLOT_OFF 2 - uint32 off; /* saved state for slot_deform_heap_tuple */ - HeapTupleData tupdata; /* optional workspace for storing tuple */ -} HeapTupleTableSlot; - -/* heap tuple residing in a buffer */ -typedef struct BufferHeapTupleTableSlot -{ - HeapTupleTableSlot base; - - /* - * If buffer is not InvalidBuffer, then the slot is holding a pin on the - * indicated buffer page; drop the pin when we release the slot's - * reference to that buffer. (TTS_FLAG_SHOULDFREE should not be set in - * such a case, since presumably tts_tuple is pointing into the buffer.) - */ - Buffer buffer; /* tuple's buffer, or InvalidBuffer */ -} BufferHeapTupleTableSlot; - -typedef struct MinimalTupleTableSlot -{ - TupleTableSlot base; - - /* - * In a minimal slot tuple points at minhdr and the fields of that struct - * are set correctly for access to the minimal tuple; in particular, - * minhdr.t_data points MINIMAL_TUPLE_OFFSET bytes before mintuple. This - * allows column extraction to treat the case identically to regular - * physical tuples. - */ -#define FIELDNO_MINIMALTUPLETABLESLOT_TUPLE 1 - HeapTuple tuple; /* tuple wrapper */ - MinimalTuple mintuple; /* minimal tuple, or NULL if none */ - HeapTupleData minhdr; /* workspace for minimal-tuple-only case */ -#define FIELDNO_MINIMALTUPLETABLESLOT_OFF 4 - uint32 off; /* saved state for slot_deform_heap_tuple */ -} MinimalTupleTableSlot; - -/* - * TupIsNull -- is a TupleTableSlot empty? - */ -#define TupIsNull(slot) \ - ((slot) == NULL || TTS_EMPTY(slot)) - -/* in executor/execTuples.c */ -extern TupleTableSlot *MakeTupleTableSlot(TupleDesc tupleDesc, - const TupleTableSlotOps *tts_ops); -extern TupleTableSlot *ExecAllocTableSlot(List **tupleTable, TupleDesc desc, - const TupleTableSlotOps *tts_ops); -extern void ExecResetTupleTable(List *tupleTable, bool shouldFree); -extern TupleTableSlot *MakeSingleTupleTableSlot(TupleDesc tupdesc, - const TupleTableSlotOps *tts_ops); -extern void ExecDropSingleTupleTableSlot(TupleTableSlot *slot); -extern void ExecSetSlotDescriptor(TupleTableSlot *slot, TupleDesc tupdesc); -extern TupleTableSlot *ExecStoreHeapTuple(HeapTuple tuple, - TupleTableSlot *slot, - bool shouldFree); -extern void ExecForceStoreHeapTuple(HeapTuple tuple, - TupleTableSlot *slot, - bool shouldFree); -extern TupleTableSlot *ExecStoreBufferHeapTuple(HeapTuple tuple, - TupleTableSlot *slot, - Buffer buffer); -extern TupleTableSlot *ExecStorePinnedBufferHeapTuple(HeapTuple tuple, - TupleTableSlot *slot, - Buffer buffer); -extern TupleTableSlot *ExecStoreMinimalTuple(MinimalTuple mtup, - TupleTableSlot *slot, - bool shouldFree); -extern void ExecForceStoreMinimalTuple(MinimalTuple mtup, TupleTableSlot *slot, - bool shouldFree); -extern TupleTableSlot *ExecStoreVirtualTuple(TupleTableSlot *slot); -extern TupleTableSlot *ExecStoreAllNullTuple(TupleTableSlot *slot); -extern void ExecStoreHeapTupleDatum(Datum data, TupleTableSlot *slot); -extern HeapTuple ExecFetchSlotHeapTuple(TupleTableSlot *slot, bool materialize, bool *shouldFree); -extern MinimalTuple ExecFetchSlotMinimalTuple(TupleTableSlot *slot, - bool *shouldFree); -extern Datum ExecFetchSlotHeapTupleDatum(TupleTableSlot *slot); -extern void slot_getmissingattrs(TupleTableSlot *slot, int startAttNum, - int lastAttNum); -extern void slot_getsomeattrs_int(TupleTableSlot *slot, int attnum); - - -#ifndef FRONTEND - -/* - * This function forces the entries of the slot's Datum/isnull arrays to be - * valid at least up through the attnum'th entry. - */ -static inline void -slot_getsomeattrs(TupleTableSlot *slot, int attnum) -{ - if (slot->tts_nvalid < attnum) - slot_getsomeattrs_int(slot, attnum); -} - -/* - * slot_getallattrs - * This function forces all the entries of the slot's Datum/isnull - * arrays to be valid. The caller may then extract data directly - * from those arrays instead of using slot_getattr. - */ -static inline void -slot_getallattrs(TupleTableSlot *slot) -{ - slot_getsomeattrs(slot, slot->tts_tupleDescriptor->natts); -} - - -/* - * slot_attisnull - * - * Detect whether an attribute of the slot is null, without actually fetching - * it. - */ -static inline bool -slot_attisnull(TupleTableSlot *slot, int attnum) -{ - AssertArg(attnum > 0); - - if (attnum > slot->tts_nvalid) - slot_getsomeattrs(slot, attnum); - - return slot->tts_isnull[attnum - 1]; -} - -/* - * slot_getattr - fetch one attribute of the slot's contents. - */ -static inline Datum -slot_getattr(TupleTableSlot *slot, int attnum, - bool *isnull) -{ - AssertArg(attnum > 0); - - if (attnum > slot->tts_nvalid) - slot_getsomeattrs(slot, attnum); - - *isnull = slot->tts_isnull[attnum - 1]; - - return slot->tts_values[attnum - 1]; -} - -/* - * slot_getsysattr - fetch a system attribute of the slot's current tuple. - * - * If the slot type does not contain system attributes, this will throw an - * error. Hence before calling this function, callers should make sure that - * the slot type is the one that supports system attributes. - */ -static inline Datum -slot_getsysattr(TupleTableSlot *slot, int attnum, bool *isnull) -{ - AssertArg(attnum < 0); /* caller error */ - - if (attnum == TableOidAttributeNumber) - { - *isnull = false; - return ObjectIdGetDatum(slot->tts_tableOid); - } - else if (attnum == SelfItemPointerAttributeNumber) - { - *isnull = false; - return PointerGetDatum(&slot->tts_tid); - } - - /* Fetch the system attribute from the underlying tuple. */ - return slot->tts_ops->getsysattr(slot, attnum, isnull); -} - -/* - * ExecClearTuple - clear the slot's contents - */ -static inline TupleTableSlot * -ExecClearTuple(TupleTableSlot *slot) -{ - slot->tts_ops->clear(slot); - - return slot; -} - -/* ExecMaterializeSlot - force a slot into the "materialized" state. - * - * This causes the slot's tuple to be a local copy not dependent on any - * external storage (i.e. pointing into a Buffer, or having allocations in - * another memory context). - * - * A typical use for this operation is to prepare a computed tuple for being - * stored on disk. The original data may or may not be virtual, but in any - * case we need a private copy for heap_insert to scribble on. - */ -static inline void -ExecMaterializeSlot(TupleTableSlot *slot) -{ - slot->tts_ops->materialize(slot); -} - -/* - * ExecCopySlotHeapTuple - return HeapTuple allocated in caller's context - */ -static inline HeapTuple -ExecCopySlotHeapTuple(TupleTableSlot *slot) -{ - Assert(!TTS_EMPTY(slot)); - - return slot->tts_ops->copy_heap_tuple(slot); -} - -/* - * ExecCopySlotMinimalTuple - return MinimalTuple allocated in caller's context - */ -static inline MinimalTuple -ExecCopySlotMinimalTuple(TupleTableSlot *slot) -{ - return slot->tts_ops->copy_minimal_tuple(slot); -} - -/* - * ExecCopySlot - copy one slot's contents into another. - * - * If a source's system attributes are supposed to be accessed in the target - * slot, the target slot and source slot types need to match. - */ -static inline TupleTableSlot * -ExecCopySlot(TupleTableSlot *dstslot, TupleTableSlot *srcslot) -{ - Assert(!TTS_EMPTY(srcslot)); - AssertArg(srcslot != dstslot); - - dstslot->tts_ops->copyslot(dstslot, srcslot); - - return dstslot; -} - -#endif /* FRONTEND */ - -#endif /* TUPTABLE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/fmgr.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/fmgr.h deleted file mode 100644 index 5314b7370..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/fmgr.h +++ /dev/null @@ -1,781 +0,0 @@ -/*------------------------------------------------------------------------- - * - * fmgr.h - * Definitions for the Postgres function manager and function-call - * interface. - * - * This file must be included by all Postgres modules that either define - * or call fmgr-callable functions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/fmgr.h - * - *------------------------------------------------------------------------- - */ -#ifndef FMGR_H -#define FMGR_H - -/* We don't want to include primnodes.h here, so make some stub references */ -typedef struct Node *fmNodePtr; -typedef struct Aggref *fmAggrefPtr; - -/* Likewise, avoid including execnodes.h here */ -typedef void (*fmExprContextCallbackFunction) (Datum arg); - -/* Likewise, avoid including stringinfo.h here */ -typedef struct StringInfoData *fmStringInfo; - - -/* - * All functions that can be called directly by fmgr must have this signature. - * (Other functions can be called by using a handler that does have this - * signature.) - */ - -typedef struct FunctionCallInfoBaseData *FunctionCallInfo; - -typedef Datum (*PGFunction) (FunctionCallInfo fcinfo); - -/* - * This struct holds the system-catalog information that must be looked up - * before a function can be called through fmgr. If the same function is - * to be called multiple times, the lookup need be done only once and the - * info struct saved for re-use. - * - * Note that fn_expr really is parse-time-determined information about the - * arguments, rather than about the function itself. But it's convenient to - * store it here rather than in FunctionCallInfoBaseData, where it might more - * logically belong. - * - * fn_extra is available for use by the called function; all other fields - * should be treated as read-only after the struct is created. - */ -typedef struct FmgrInfo -{ - PGFunction fn_addr; /* pointer to function or handler to be called */ - Oid fn_oid; /* OID of function (NOT of handler, if any) */ - short fn_nargs; /* number of input args (0..FUNC_MAX_ARGS) */ - bool fn_strict; /* function is "strict" (NULL in => NULL out) */ - bool fn_retset; /* function returns a set */ - unsigned char fn_stats; /* collect stats if track_functions > this */ - void *fn_extra; /* extra space for use by handler */ - MemoryContext fn_mcxt; /* memory context to store fn_extra in */ - fmNodePtr fn_expr; /* expression parse tree for call, or NULL */ -} FmgrInfo; - -/* - * This struct is the data actually passed to an fmgr-called function. - * - * The called function is expected to set isnull, and possibly resultinfo or - * fields in whatever resultinfo points to. It should not change any other - * fields. (In particular, scribbling on the argument arrays is a bad idea, - * since some callers assume they can re-call with the same arguments.) - * - * Note that enough space for arguments needs to be provided, either by using - * SizeForFunctionCallInfo() in dynamic allocations, or by using - * LOCAL_FCINFO() for on-stack allocations. - * - * This struct is named *BaseData, rather than *Data, to break pre v12 code - * that allocated FunctionCallInfoData itself, as it'd often silently break - * old code due to no space for arguments being provided. - */ -typedef struct FunctionCallInfoBaseData -{ - FmgrInfo *flinfo; /* ptr to lookup info used for this call */ - fmNodePtr context; /* pass info about context of call */ - fmNodePtr resultinfo; /* pass or return extra info about result */ - Oid fncollation; /* collation for function to use */ -#define FIELDNO_FUNCTIONCALLINFODATA_ISNULL 4 - bool isnull; /* function must set true if result is NULL */ - short nargs; /* # arguments actually passed */ -#define FIELDNO_FUNCTIONCALLINFODATA_ARGS 6 - NullableDatum args[FLEXIBLE_ARRAY_MEMBER]; -} FunctionCallInfoBaseData; - -/* - * Space needed for a FunctionCallInfoBaseData struct with sufficient space - * for `nargs` arguments. - */ -#define SizeForFunctionCallInfo(nargs) \ - (offsetof(FunctionCallInfoBaseData, args) + \ - sizeof(NullableDatum) * (nargs)) - -/* - * This macro ensures that `name` points to a stack-allocated - * FunctionCallInfoBaseData struct with sufficient space for `nargs` arguments. - */ -#define LOCAL_FCINFO(name, nargs) \ - /* use union with FunctionCallInfoBaseData to guarantee alignment */ \ - union \ - { \ - FunctionCallInfoBaseData fcinfo; \ - /* ensure enough space for nargs args is available */ \ - char fcinfo_data[SizeForFunctionCallInfo(nargs)]; \ - } name##data; \ - FunctionCallInfo name = &name##data.fcinfo - -/* - * This routine fills a FmgrInfo struct, given the OID - * of the function to be called. - */ -extern void fmgr_info(Oid functionId, FmgrInfo *finfo); - -/* - * Same, when the FmgrInfo struct is in a memory context longer-lived than - * CurrentMemoryContext. The specified context will be set as fn_mcxt - * and used to hold all subsidiary data of finfo. - */ -extern void fmgr_info_cxt(Oid functionId, FmgrInfo *finfo, - MemoryContext mcxt); - -/* Convenience macro for setting the fn_expr field */ -#define fmgr_info_set_expr(expr, finfo) \ - ((finfo)->fn_expr = (expr)) - -/* - * Copy an FmgrInfo struct - */ -extern void fmgr_info_copy(FmgrInfo *dstinfo, FmgrInfo *srcinfo, - MemoryContext destcxt); - -extern void fmgr_symbol(Oid functionId, char **mod, char **fn); - -/* - * This macro initializes all the fields of a FunctionCallInfoBaseData except - * for the args[] array. - */ -#define InitFunctionCallInfoData(Fcinfo, Flinfo, Nargs, Collation, Context, Resultinfo) \ - do { \ - (Fcinfo).flinfo = (Flinfo); \ - (Fcinfo).context = (Context); \ - (Fcinfo).resultinfo = (Resultinfo); \ - (Fcinfo).fncollation = (Collation); \ - (Fcinfo).isnull = false; \ - (Fcinfo).nargs = (Nargs); \ - } while (0) - -/* - * This macro invokes a function given a filled-in FunctionCallInfoBaseData - * struct. The macro result is the returned Datum --- but note that - * caller must still check fcinfo->isnull! Also, if function is strict, - * it is caller's responsibility to verify that no null arguments are present - * before calling. - * - * Some code performs multiple calls without redoing InitFunctionCallInfoData, - * possibly altering the argument values. This is okay, but be sure to reset - * the fcinfo->isnull flag before each call, since callees are permitted to - * assume that starts out false. - */ -#define FunctionCallInvoke(fcinfo) ((* (fcinfo)->flinfo->fn_addr) (fcinfo)) - - -/*------------------------------------------------------------------------- - * Support macros to ease writing fmgr-compatible functions - * - * A C-coded fmgr-compatible function should be declared as - * - * Datum - * function_name(PG_FUNCTION_ARGS) - * { - * ... - * } - * - * It should access its arguments using appropriate PG_GETARG_xxx macros - * and should return its result using PG_RETURN_xxx. - * - *------------------------------------------------------------------------- - */ - -/* Standard parameter list for fmgr-compatible functions */ -#define PG_FUNCTION_ARGS FunctionCallInfo fcinfo - -/* - * Get collation function should use. - */ -#define PG_GET_COLLATION() (fcinfo->fncollation) - -/* - * Get number of arguments passed to function. - */ -#define PG_NARGS() (fcinfo->nargs) - -/* - * If function is not marked "proisstrict" in pg_proc, it must check for - * null arguments using this macro. Do not try to GETARG a null argument! - */ -#define PG_ARGISNULL(n) (fcinfo->args[n].isnull) - -/* - * Support for fetching detoasted copies of toastable datatypes (all of - * which are varlena types). pg_detoast_datum() gives you either the input - * datum (if not toasted) or a detoasted copy allocated with palloc(). - * pg_detoast_datum_copy() always gives you a palloc'd copy --- use it - * if you need a modifiable copy of the input. Caller is expected to have - * checked for null inputs first, if necessary. - * - * pg_detoast_datum_packed() will return packed (1-byte header) datums - * unmodified. It will still expand an externally toasted or compressed datum. - * The resulting datum can be accessed using VARSIZE_ANY() and VARDATA_ANY() - * (beware of multiple evaluations in those macros!) - * - * In consumers oblivious to data alignment, call PG_DETOAST_DATUM_PACKED(), - * VARDATA_ANY(), VARSIZE_ANY() and VARSIZE_ANY_EXHDR(). Elsewhere, call - * PG_DETOAST_DATUM(), VARDATA() and VARSIZE(). Directly fetching an int16, - * int32 or wider field in the struct representing the datum layout requires - * aligned data. memcpy() is alignment-oblivious, as are most operations on - * datatypes, such as text, whose layout struct contains only char fields. - * - * Note: it'd be nice if these could be macros, but I see no way to do that - * without evaluating the arguments multiple times, which is NOT acceptable. - */ -extern struct varlena *pg_detoast_datum(struct varlena *datum); -extern struct varlena *pg_detoast_datum_copy(struct varlena *datum); -extern struct varlena *pg_detoast_datum_slice(struct varlena *datum, - int32 first, int32 count); -extern struct varlena *pg_detoast_datum_packed(struct varlena *datum); - -#define PG_DETOAST_DATUM(datum) \ - pg_detoast_datum((struct varlena *) DatumGetPointer(datum)) -#define PG_DETOAST_DATUM_COPY(datum) \ - pg_detoast_datum_copy((struct varlena *) DatumGetPointer(datum)) -#define PG_DETOAST_DATUM_SLICE(datum,f,c) \ - pg_detoast_datum_slice((struct varlena *) DatumGetPointer(datum), \ - (int32) (f), (int32) (c)) -/* WARNING -- unaligned pointer */ -#define PG_DETOAST_DATUM_PACKED(datum) \ - pg_detoast_datum_packed((struct varlena *) DatumGetPointer(datum)) - -/* - * Support for cleaning up detoasted copies of inputs. This must only - * be used for pass-by-ref datatypes, and normally would only be used - * for toastable types. If the given pointer is different from the - * original argument, assume it's a palloc'd detoasted copy, and pfree it. - * NOTE: most functions on toastable types do not have to worry about this, - * but we currently require that support functions for indexes not leak - * memory. - */ -#define PG_FREE_IF_COPY(ptr,n) \ - do { \ - if ((Pointer) (ptr) != PG_GETARG_POINTER(n)) \ - pfree(ptr); \ - } while (0) - -/* Macros for fetching arguments of standard types */ - -#define PG_GETARG_DATUM(n) (fcinfo->args[n].value) -#define PG_GETARG_INT32(n) DatumGetInt32(PG_GETARG_DATUM(n)) -#define PG_GETARG_UINT32(n) DatumGetUInt32(PG_GETARG_DATUM(n)) -#define PG_GETARG_INT16(n) DatumGetInt16(PG_GETARG_DATUM(n)) -#define PG_GETARG_UINT16(n) DatumGetUInt16(PG_GETARG_DATUM(n)) -#define PG_GETARG_CHAR(n) DatumGetChar(PG_GETARG_DATUM(n)) -#define PG_GETARG_BOOL(n) DatumGetBool(PG_GETARG_DATUM(n)) -#define PG_GETARG_OID(n) DatumGetObjectId(PG_GETARG_DATUM(n)) -#define PG_GETARG_POINTER(n) DatumGetPointer(PG_GETARG_DATUM(n)) -#define PG_GETARG_CSTRING(n) DatumGetCString(PG_GETARG_DATUM(n)) -#define PG_GETARG_NAME(n) DatumGetName(PG_GETARG_DATUM(n)) -#define PG_GETARG_TRANSACTIONID(n) DatumGetTransactionId(PG_GETARG_DATUM(n)) -/* these macros hide the pass-by-reference-ness of the datatype: */ -#define PG_GETARG_FLOAT4(n) DatumGetFloat4(PG_GETARG_DATUM(n)) -#define PG_GETARG_FLOAT8(n) DatumGetFloat8(PG_GETARG_DATUM(n)) -#define PG_GETARG_INT64(n) DatumGetInt64(PG_GETARG_DATUM(n)) -/* use this if you want the raw, possibly-toasted input datum: */ -#define PG_GETARG_RAW_VARLENA_P(n) ((struct varlena *) PG_GETARG_POINTER(n)) -/* use this if you want the input datum de-toasted: */ -#define PG_GETARG_VARLENA_P(n) PG_DETOAST_DATUM(PG_GETARG_DATUM(n)) -/* and this if you can handle 1-byte-header datums: */ -#define PG_GETARG_VARLENA_PP(n) PG_DETOAST_DATUM_PACKED(PG_GETARG_DATUM(n)) -/* DatumGetFoo macros for varlena types will typically look like this: */ -#define DatumGetByteaPP(X) ((bytea *) PG_DETOAST_DATUM_PACKED(X)) -#define DatumGetTextPP(X) ((text *) PG_DETOAST_DATUM_PACKED(X)) -#define DatumGetBpCharPP(X) ((BpChar *) PG_DETOAST_DATUM_PACKED(X)) -#define DatumGetVarCharPP(X) ((VarChar *) PG_DETOAST_DATUM_PACKED(X)) -#define DatumGetHeapTupleHeader(X) ((HeapTupleHeader) PG_DETOAST_DATUM(X)) -/* And we also offer variants that return an OK-to-write copy */ -#define DatumGetByteaPCopy(X) ((bytea *) PG_DETOAST_DATUM_COPY(X)) -#define DatumGetTextPCopy(X) ((text *) PG_DETOAST_DATUM_COPY(X)) -#define DatumGetBpCharPCopy(X) ((BpChar *) PG_DETOAST_DATUM_COPY(X)) -#define DatumGetVarCharPCopy(X) ((VarChar *) PG_DETOAST_DATUM_COPY(X)) -#define DatumGetHeapTupleHeaderCopy(X) ((HeapTupleHeader) PG_DETOAST_DATUM_COPY(X)) -/* Variants which return n bytes starting at pos. m */ -#define DatumGetByteaPSlice(X,m,n) ((bytea *) PG_DETOAST_DATUM_SLICE(X,m,n)) -#define DatumGetTextPSlice(X,m,n) ((text *) PG_DETOAST_DATUM_SLICE(X,m,n)) -#define DatumGetBpCharPSlice(X,m,n) ((BpChar *) PG_DETOAST_DATUM_SLICE(X,m,n)) -#define DatumGetVarCharPSlice(X,m,n) ((VarChar *) PG_DETOAST_DATUM_SLICE(X,m,n)) -/* GETARG macros for varlena types will typically look like this: */ -#define PG_GETARG_BYTEA_PP(n) DatumGetByteaPP(PG_GETARG_DATUM(n)) -#define PG_GETARG_TEXT_PP(n) DatumGetTextPP(PG_GETARG_DATUM(n)) -#define PG_GETARG_BPCHAR_PP(n) DatumGetBpCharPP(PG_GETARG_DATUM(n)) -#define PG_GETARG_VARCHAR_PP(n) DatumGetVarCharPP(PG_GETARG_DATUM(n)) -#define PG_GETARG_HEAPTUPLEHEADER(n) DatumGetHeapTupleHeader(PG_GETARG_DATUM(n)) -/* And we also offer variants that return an OK-to-write copy */ -#define PG_GETARG_BYTEA_P_COPY(n) DatumGetByteaPCopy(PG_GETARG_DATUM(n)) -#define PG_GETARG_TEXT_P_COPY(n) DatumGetTextPCopy(PG_GETARG_DATUM(n)) -#define PG_GETARG_BPCHAR_P_COPY(n) DatumGetBpCharPCopy(PG_GETARG_DATUM(n)) -#define PG_GETARG_VARCHAR_P_COPY(n) DatumGetVarCharPCopy(PG_GETARG_DATUM(n)) -#define PG_GETARG_HEAPTUPLEHEADER_COPY(n) DatumGetHeapTupleHeaderCopy(PG_GETARG_DATUM(n)) -/* And a b-byte slice from position a -also OK to write */ -#define PG_GETARG_BYTEA_P_SLICE(n,a,b) DatumGetByteaPSlice(PG_GETARG_DATUM(n),a,b) -#define PG_GETARG_TEXT_P_SLICE(n,a,b) DatumGetTextPSlice(PG_GETARG_DATUM(n),a,b) -#define PG_GETARG_BPCHAR_P_SLICE(n,a,b) DatumGetBpCharPSlice(PG_GETARG_DATUM(n),a,b) -#define PG_GETARG_VARCHAR_P_SLICE(n,a,b) DatumGetVarCharPSlice(PG_GETARG_DATUM(n),a,b) -/* - * Obsolescent variants that guarantee INT alignment for the return value. - * Few operations on these particular types need alignment, mainly operations - * that cast the VARDATA pointer to a type like int16[]. Most code should use - * the ...PP(X) counterpart. Nonetheless, these appear frequently in code - * predating the PostgreSQL 8.3 introduction of the ...PP(X) variants. - */ -#define DatumGetByteaP(X) ((bytea *) PG_DETOAST_DATUM(X)) -#define DatumGetTextP(X) ((text *) PG_DETOAST_DATUM(X)) -#define DatumGetBpCharP(X) ((BpChar *) PG_DETOAST_DATUM(X)) -#define DatumGetVarCharP(X) ((VarChar *) PG_DETOAST_DATUM(X)) -#define PG_GETARG_BYTEA_P(n) DatumGetByteaP(PG_GETARG_DATUM(n)) -#define PG_GETARG_TEXT_P(n) DatumGetTextP(PG_GETARG_DATUM(n)) -#define PG_GETARG_BPCHAR_P(n) DatumGetBpCharP(PG_GETARG_DATUM(n)) -#define PG_GETARG_VARCHAR_P(n) DatumGetVarCharP(PG_GETARG_DATUM(n)) - -/* To access options from opclass support functions use this: */ -#define PG_HAS_OPCLASS_OPTIONS() has_fn_opclass_options(fcinfo->flinfo) -#define PG_GET_OPCLASS_OPTIONS() get_fn_opclass_options(fcinfo->flinfo) - -/* To return a NULL do this: */ -#define PG_RETURN_NULL() \ - do { fcinfo->isnull = true; return (Datum) 0; } while (0) - -/* A few internal functions return void (which is not the same as NULL!) */ -#define PG_RETURN_VOID() return (Datum) 0 - -/* Macros for returning results of standard types */ - -#define PG_RETURN_DATUM(x) return (x) -#define PG_RETURN_INT32(x) return Int32GetDatum(x) -#define PG_RETURN_UINT32(x) return UInt32GetDatum(x) -#define PG_RETURN_INT16(x) return Int16GetDatum(x) -#define PG_RETURN_UINT16(x) return UInt16GetDatum(x) -#define PG_RETURN_CHAR(x) return CharGetDatum(x) -#define PG_RETURN_BOOL(x) return BoolGetDatum(x) -#define PG_RETURN_OID(x) return ObjectIdGetDatum(x) -#define PG_RETURN_POINTER(x) return PointerGetDatum(x) -#define PG_RETURN_CSTRING(x) return CStringGetDatum(x) -#define PG_RETURN_NAME(x) return NameGetDatum(x) -#define PG_RETURN_TRANSACTIONID(x) return TransactionIdGetDatum(x) -/* these macros hide the pass-by-reference-ness of the datatype: */ -#define PG_RETURN_FLOAT4(x) return Float4GetDatum(x) -#define PG_RETURN_FLOAT8(x) return Float8GetDatum(x) -#define PG_RETURN_INT64(x) return Int64GetDatum(x) -#define PG_RETURN_UINT64(x) return UInt64GetDatum(x) -/* RETURN macros for other pass-by-ref types will typically look like this: */ -#define PG_RETURN_BYTEA_P(x) PG_RETURN_POINTER(x) -#define PG_RETURN_TEXT_P(x) PG_RETURN_POINTER(x) -#define PG_RETURN_BPCHAR_P(x) PG_RETURN_POINTER(x) -#define PG_RETURN_VARCHAR_P(x) PG_RETURN_POINTER(x) -#define PG_RETURN_HEAPTUPLEHEADER(x) return HeapTupleHeaderGetDatum(x) - - -/*------------------------------------------------------------------------- - * Support for detecting call convention of dynamically-loaded functions - * - * Dynamically loaded functions currently can only use the version-1 ("new - * style") calling convention. Version-0 ("old style") is not supported - * anymore. Version 1 is the call convention defined in this header file, and - * must be accompanied by the macro call - * - * PG_FUNCTION_INFO_V1(function_name); - * - * Note that internal functions do not need this decoration since they are - * assumed to be version-1. - * - *------------------------------------------------------------------------- - */ - -typedef struct -{ - int api_version; /* specifies call convention version number */ - /* More fields may be added later, for version numbers > 1. */ -} Pg_finfo_record; - -/* Expected signature of an info function */ -typedef const Pg_finfo_record *(*PGFInfoFunction) (void); - -/* - * Macro to build an info function associated with the given function name. - * - * As a convenience, also provide an "extern" declaration for the given - * function name, so that writers of C functions need not write that too. - * - * On Windows, the function and info function must be exported. Our normal - * build processes take care of that via .DEF files or --export-all-symbols. - * Module authors using a different build process might need to manually - * declare the function PGDLLEXPORT. We do that automatically here for the - * info function, since authors shouldn't need to be explicitly aware of it. - */ -#define PG_FUNCTION_INFO_V1(funcname) \ -extern Datum funcname(PG_FUNCTION_ARGS); \ -extern PGDLLEXPORT const Pg_finfo_record * CppConcat(pg_finfo_,funcname)(void); \ -const Pg_finfo_record * \ -CppConcat(pg_finfo_,funcname) (void) \ -{ \ - static const Pg_finfo_record my_finfo = { 1 }; \ - return &my_finfo; \ -} \ -extern int no_such_variable - - -/*------------------------------------------------------------------------- - * Support for verifying backend compatibility of loaded modules - * - * We require dynamically-loaded modules to include the macro call - * PG_MODULE_MAGIC; - * so that we can check for obvious incompatibility, such as being compiled - * for a different major PostgreSQL version. - * - * To compile with versions of PostgreSQL that do not support this, - * you may put an #ifdef/#endif test around it. Note that in a multiple- - * source-file module, the macro call should only appear once. - * - * The specific items included in the magic block are intended to be ones that - * are custom-configurable and especially likely to break dynamically loaded - * modules if they were compiled with other values. Also, the length field - * can be used to detect definition changes. - * - * Note: we compare magic blocks with memcmp(), so there had better not be - * any alignment pad bytes in them. - * - * Note: when changing the contents of magic blocks, be sure to adjust the - * incompatible_module_error() function in dfmgr.c. - *------------------------------------------------------------------------- - */ - -/* Definition of the magic block structure */ -typedef struct -{ - int len; /* sizeof(this struct) */ - int version; /* PostgreSQL major version */ - int funcmaxargs; /* FUNC_MAX_ARGS */ - int indexmaxkeys; /* INDEX_MAX_KEYS */ - int namedatalen; /* NAMEDATALEN */ - int float8byval; /* FLOAT8PASSBYVAL */ - char abi_extra[32]; /* see pg_config_manual.h */ -} Pg_magic_struct; - -/* The actual data block contents */ -#define PG_MODULE_MAGIC_DATA \ -{ \ - sizeof(Pg_magic_struct), \ - PG_VERSION_NUM / 100, \ - FUNC_MAX_ARGS, \ - INDEX_MAX_KEYS, \ - NAMEDATALEN, \ - FLOAT8PASSBYVAL, \ - FMGR_ABI_EXTRA, \ -} - -StaticAssertDecl(sizeof(FMGR_ABI_EXTRA) <= sizeof(((Pg_magic_struct *) 0)->abi_extra), - "FMGR_ABI_EXTRA too long"); - -/* - * Declare the module magic function. It needs to be a function as the dlsym - * in the backend is only guaranteed to work on functions, not data - */ -typedef const Pg_magic_struct *(*PGModuleMagicFunction) (void); - -#define PG_MAGIC_FUNCTION_NAME Pg_magic_func -#define PG_MAGIC_FUNCTION_NAME_STRING "Pg_magic_func" - -#define PG_MODULE_MAGIC \ -extern PGDLLEXPORT const Pg_magic_struct *PG_MAGIC_FUNCTION_NAME(void); \ -const Pg_magic_struct * \ -PG_MAGIC_FUNCTION_NAME(void) \ -{ \ - static const Pg_magic_struct Pg_magic_data = PG_MODULE_MAGIC_DATA; \ - return &Pg_magic_data; \ -} \ -extern int no_such_variable - - -/*------------------------------------------------------------------------- - * Support routines and macros for callers of fmgr-compatible functions - *------------------------------------------------------------------------- - */ - -/* These are for invocation of a specifically named function with a - * directly-computed parameter list. Note that neither arguments nor result - * are allowed to be NULL. Also, the function cannot be one that needs to - * look at FmgrInfo, since there won't be any. - */ -extern Datum DirectFunctionCall1Coll(PGFunction func, Oid collation, - Datum arg1); -extern Datum DirectFunctionCall2Coll(PGFunction func, Oid collation, - Datum arg1, Datum arg2); -extern Datum DirectFunctionCall3Coll(PGFunction func, Oid collation, - Datum arg1, Datum arg2, - Datum arg3); -extern Datum DirectFunctionCall4Coll(PGFunction func, Oid collation, - Datum arg1, Datum arg2, - Datum arg3, Datum arg4); -extern Datum DirectFunctionCall5Coll(PGFunction func, Oid collation, - Datum arg1, Datum arg2, - Datum arg3, Datum arg4, Datum arg5); -extern Datum DirectFunctionCall6Coll(PGFunction func, Oid collation, - Datum arg1, Datum arg2, - Datum arg3, Datum arg4, Datum arg5, - Datum arg6); -extern Datum DirectFunctionCall7Coll(PGFunction func, Oid collation, - Datum arg1, Datum arg2, - Datum arg3, Datum arg4, Datum arg5, - Datum arg6, Datum arg7); -extern Datum DirectFunctionCall8Coll(PGFunction func, Oid collation, - Datum arg1, Datum arg2, - Datum arg3, Datum arg4, Datum arg5, - Datum arg6, Datum arg7, Datum arg8); -extern Datum DirectFunctionCall9Coll(PGFunction func, Oid collation, - Datum arg1, Datum arg2, - Datum arg3, Datum arg4, Datum arg5, - Datum arg6, Datum arg7, Datum arg8, - Datum arg9); - -/* - * These functions work like the DirectFunctionCall functions except that - * they use the flinfo parameter to initialise the fcinfo for the call. - * It's recommended that the callee only use the fn_extra and fn_mcxt - * fields, as other fields will typically describe the calling function - * not the callee. Conversely, the calling function should not have - * used fn_extra, unless its use is known to be compatible with the callee's. - */ -extern Datum CallerFInfoFunctionCall1(PGFunction func, FmgrInfo *flinfo, - Oid collation, Datum arg1); -extern Datum CallerFInfoFunctionCall2(PGFunction func, FmgrInfo *flinfo, - Oid collation, Datum arg1, Datum arg2); - -/* These are for invocation of a previously-looked-up function with a - * directly-computed parameter list. Note that neither arguments nor result - * are allowed to be NULL. - */ -extern Datum FunctionCall0Coll(FmgrInfo *flinfo, Oid collation); -extern Datum FunctionCall1Coll(FmgrInfo *flinfo, Oid collation, - Datum arg1); -extern Datum FunctionCall2Coll(FmgrInfo *flinfo, Oid collation, - Datum arg1, Datum arg2); -extern Datum FunctionCall3Coll(FmgrInfo *flinfo, Oid collation, - Datum arg1, Datum arg2, - Datum arg3); -extern Datum FunctionCall4Coll(FmgrInfo *flinfo, Oid collation, - Datum arg1, Datum arg2, - Datum arg3, Datum arg4); -extern Datum FunctionCall5Coll(FmgrInfo *flinfo, Oid collation, - Datum arg1, Datum arg2, - Datum arg3, Datum arg4, Datum arg5); -extern Datum FunctionCall6Coll(FmgrInfo *flinfo, Oid collation, - Datum arg1, Datum arg2, - Datum arg3, Datum arg4, Datum arg5, - Datum arg6); -extern Datum FunctionCall7Coll(FmgrInfo *flinfo, Oid collation, - Datum arg1, Datum arg2, - Datum arg3, Datum arg4, Datum arg5, - Datum arg6, Datum arg7); -extern Datum FunctionCall8Coll(FmgrInfo *flinfo, Oid collation, - Datum arg1, Datum arg2, - Datum arg3, Datum arg4, Datum arg5, - Datum arg6, Datum arg7, Datum arg8); -extern Datum FunctionCall9Coll(FmgrInfo *flinfo, Oid collation, - Datum arg1, Datum arg2, - Datum arg3, Datum arg4, Datum arg5, - Datum arg6, Datum arg7, Datum arg8, - Datum arg9); - -/* These are for invocation of a function identified by OID with a - * directly-computed parameter list. Note that neither arguments nor result - * are allowed to be NULL. These are essentially fmgr_info() followed by - * FunctionCallN(). If the same function is to be invoked repeatedly, do the - * fmgr_info() once and then use FunctionCallN(). - */ -extern Datum OidFunctionCall0Coll(Oid functionId, Oid collation); -extern Datum OidFunctionCall1Coll(Oid functionId, Oid collation, - Datum arg1); -extern Datum OidFunctionCall2Coll(Oid functionId, Oid collation, - Datum arg1, Datum arg2); -extern Datum OidFunctionCall3Coll(Oid functionId, Oid collation, - Datum arg1, Datum arg2, - Datum arg3); -extern Datum OidFunctionCall4Coll(Oid functionId, Oid collation, - Datum arg1, Datum arg2, - Datum arg3, Datum arg4); -extern Datum OidFunctionCall5Coll(Oid functionId, Oid collation, - Datum arg1, Datum arg2, - Datum arg3, Datum arg4, Datum arg5); -extern Datum OidFunctionCall6Coll(Oid functionId, Oid collation, - Datum arg1, Datum arg2, - Datum arg3, Datum arg4, Datum arg5, - Datum arg6); -extern Datum OidFunctionCall7Coll(Oid functionId, Oid collation, - Datum arg1, Datum arg2, - Datum arg3, Datum arg4, Datum arg5, - Datum arg6, Datum arg7); -extern Datum OidFunctionCall8Coll(Oid functionId, Oid collation, - Datum arg1, Datum arg2, - Datum arg3, Datum arg4, Datum arg5, - Datum arg6, Datum arg7, Datum arg8); -extern Datum OidFunctionCall9Coll(Oid functionId, Oid collation, - Datum arg1, Datum arg2, - Datum arg3, Datum arg4, Datum arg5, - Datum arg6, Datum arg7, Datum arg8, - Datum arg9); - -/* These macros allow the collation argument to be omitted (with a default of - * InvalidOid, ie, no collation). They exist mostly for backwards - * compatibility of source code. - */ -#define DirectFunctionCall1(func, arg1) \ - DirectFunctionCall1Coll(func, InvalidOid, arg1) -#define DirectFunctionCall2(func, arg1, arg2) \ - DirectFunctionCall2Coll(func, InvalidOid, arg1, arg2) -#define DirectFunctionCall3(func, arg1, arg2, arg3) \ - DirectFunctionCall3Coll(func, InvalidOid, arg1, arg2, arg3) -#define DirectFunctionCall4(func, arg1, arg2, arg3, arg4) \ - DirectFunctionCall4Coll(func, InvalidOid, arg1, arg2, arg3, arg4) -#define DirectFunctionCall5(func, arg1, arg2, arg3, arg4, arg5) \ - DirectFunctionCall5Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5) -#define DirectFunctionCall6(func, arg1, arg2, arg3, arg4, arg5, arg6) \ - DirectFunctionCall6Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6) -#define DirectFunctionCall7(func, arg1, arg2, arg3, arg4, arg5, arg6, arg7) \ - DirectFunctionCall7Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7) -#define DirectFunctionCall8(func, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \ - DirectFunctionCall8Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) -#define DirectFunctionCall9(func, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) \ - DirectFunctionCall9Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) -#define FunctionCall1(flinfo, arg1) \ - FunctionCall1Coll(flinfo, InvalidOid, arg1) -#define FunctionCall2(flinfo, arg1, arg2) \ - FunctionCall2Coll(flinfo, InvalidOid, arg1, arg2) -#define FunctionCall3(flinfo, arg1, arg2, arg3) \ - FunctionCall3Coll(flinfo, InvalidOid, arg1, arg2, arg3) -#define FunctionCall4(flinfo, arg1, arg2, arg3, arg4) \ - FunctionCall4Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4) -#define FunctionCall5(flinfo, arg1, arg2, arg3, arg4, arg5) \ - FunctionCall5Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5) -#define FunctionCall6(flinfo, arg1, arg2, arg3, arg4, arg5, arg6) \ - FunctionCall6Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6) -#define FunctionCall7(flinfo, arg1, arg2, arg3, arg4, arg5, arg6, arg7) \ - FunctionCall7Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7) -#define FunctionCall8(flinfo, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \ - FunctionCall8Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) -#define FunctionCall9(flinfo, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) \ - FunctionCall9Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) -#define OidFunctionCall0(functionId) \ - OidFunctionCall0Coll(functionId, InvalidOid) -#define OidFunctionCall1(functionId, arg1) \ - OidFunctionCall1Coll(functionId, InvalidOid, arg1) -#define OidFunctionCall2(functionId, arg1, arg2) \ - OidFunctionCall2Coll(functionId, InvalidOid, arg1, arg2) -#define OidFunctionCall3(functionId, arg1, arg2, arg3) \ - OidFunctionCall3Coll(functionId, InvalidOid, arg1, arg2, arg3) -#define OidFunctionCall4(functionId, arg1, arg2, arg3, arg4) \ - OidFunctionCall4Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4) -#define OidFunctionCall5(functionId, arg1, arg2, arg3, arg4, arg5) \ - OidFunctionCall5Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5) -#define OidFunctionCall6(functionId, arg1, arg2, arg3, arg4, arg5, arg6) \ - OidFunctionCall6Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6) -#define OidFunctionCall7(functionId, arg1, arg2, arg3, arg4, arg5, arg6, arg7) \ - OidFunctionCall7Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7) -#define OidFunctionCall8(functionId, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \ - OidFunctionCall8Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) -#define OidFunctionCall9(functionId, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) \ - OidFunctionCall9Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) - - -/* Special cases for convenient invocation of datatype I/O functions. */ -extern Datum InputFunctionCall(FmgrInfo *flinfo, char *str, - Oid typioparam, int32 typmod); -extern Datum OidInputFunctionCall(Oid functionId, char *str, - Oid typioparam, int32 typmod); -extern char *OutputFunctionCall(FmgrInfo *flinfo, Datum val); -extern char *OidOutputFunctionCall(Oid functionId, Datum val); -extern Datum ReceiveFunctionCall(FmgrInfo *flinfo, fmStringInfo buf, - Oid typioparam, int32 typmod); -extern Datum OidReceiveFunctionCall(Oid functionId, fmStringInfo buf, - Oid typioparam, int32 typmod); -extern bytea *SendFunctionCall(FmgrInfo *flinfo, Datum val); -extern bytea *OidSendFunctionCall(Oid functionId, Datum val); - - -/* - * Routines in fmgr.c - */ -extern const Pg_finfo_record *fetch_finfo_record(void *filehandle, const char *funcname); -extern Oid fmgr_internal_function(const char *proname); -extern Oid get_fn_expr_rettype(FmgrInfo *flinfo); -extern Oid get_fn_expr_argtype(FmgrInfo *flinfo, int argnum); -extern Oid get_call_expr_argtype(fmNodePtr expr, int argnum); -extern bool get_fn_expr_arg_stable(FmgrInfo *flinfo, int argnum); -extern bool get_call_expr_arg_stable(fmNodePtr expr, int argnum); -extern bool get_fn_expr_variadic(FmgrInfo *flinfo); -extern bytea *get_fn_opclass_options(FmgrInfo *flinfo); -extern bool has_fn_opclass_options(FmgrInfo *flinfo); -extern void set_fn_opclass_options(FmgrInfo *flinfo, bytea *options); -extern bool CheckFunctionValidatorAccess(Oid validatorOid, Oid functionOid); - -/* - * Routines in dfmgr.c - */ -extern PGDLLIMPORT char *Dynamic_library_path; - -extern void *load_external_function(const char *filename, const char *funcname, - bool signalNotFound, void **filehandle); -extern void *lookup_external_function(void *filehandle, const char *funcname); -extern void load_file(const char *filename, bool restricted); -extern void **find_rendezvous_variable(const char *varName); -extern Size EstimateLibraryStateSpace(void); -extern void SerializeLibraryState(Size maxsize, char *start_address); -extern void RestoreLibraryState(char *start_address); - -/* - * Support for aggregate functions - * - * These are actually in executor/nodeAgg.c, but we declare them here since - * the whole point is for callers to not be overly friendly with nodeAgg. - */ - -/* AggCheckCallContext can return one of the following codes, or 0: */ -#define AGG_CONTEXT_AGGREGATE 1 /* regular aggregate */ -#define AGG_CONTEXT_WINDOW 2 /* window function */ - -extern int AggCheckCallContext(FunctionCallInfo fcinfo, - MemoryContext *aggcontext); -extern fmAggrefPtr AggGetAggref(FunctionCallInfo fcinfo); -extern MemoryContext AggGetTempMemoryContext(FunctionCallInfo fcinfo); -extern bool AggStateIsShared(FunctionCallInfo fcinfo); -extern void AggRegisterCallback(FunctionCallInfo fcinfo, - fmExprContextCallbackFunction func, - Datum arg); - -/* - * We allow plugin modules to hook function entry/exit. This is intended - * as support for loadable security policy modules, which may want to - * perform additional privilege checks on function entry or exit, or to do - * other internal bookkeeping. To make this possible, such modules must be - * able not only to support normal function entry and exit, but also to trap - * the case where we bail out due to an error; and they must also be able to - * prevent inlining. - */ -typedef enum FmgrHookEventType -{ - FHET_START, - FHET_END, - FHET_ABORT -} FmgrHookEventType; - -typedef bool (*needs_fmgr_hook_type) (Oid fn_oid); - -typedef void (*fmgr_hook_type) (FmgrHookEventType event, - FmgrInfo *flinfo, Datum *arg); - -extern PGDLLIMPORT needs_fmgr_hook_type needs_fmgr_hook; -extern PGDLLIMPORT fmgr_hook_type fmgr_hook; - -#define FmgrHookIsNeeded(fn_oid) \ - (!needs_fmgr_hook ? false : (*needs_fmgr_hook)(fn_oid)) - -#endif /* FMGR_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/funcapi.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/funcapi.h deleted file mode 100644 index 8c47054ed..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/funcapi.h +++ /dev/null @@ -1,360 +0,0 @@ -/*------------------------------------------------------------------------- - * - * funcapi.h - * Definitions for functions which return composite type and/or sets - * or work on VARIADIC inputs. - * - * This file must be included by all Postgres modules that either define - * or call FUNCAPI-callable functions or macros. - * - * - * Copyright (c) 2002-2022, PostgreSQL Global Development Group - * - * src/include/funcapi.h - * - *------------------------------------------------------------------------- - */ -#ifndef FUNCAPI_H -#define FUNCAPI_H - -#include "access/tupdesc.h" -#include "executor/executor.h" -#include "executor/tuptable.h" -#include "fmgr.h" - -/*------------------------------------------------------------------------- - * Support to ease writing Functions returning composite types - *------------------------------------------------------------------------- - * - * This struct holds arrays of individual attribute information - * needed to create a tuple from raw C strings. It also requires - * a copy of the TupleDesc. The information carried here - * is derived from the TupleDesc, but it is stored here to - * avoid redundant cpu cycles on each call to an SRF. - */ -typedef struct AttInMetadata -{ - /* full TupleDesc */ - TupleDesc tupdesc; - - /* array of attribute type input function finfo */ - FmgrInfo *attinfuncs; - - /* array of attribute type i/o parameter OIDs */ - Oid *attioparams; - - /* array of attribute typmod */ - int32 *atttypmods; -} AttInMetadata; - -/*------------------------------------------------------------------------- - * Support struct to ease writing Set Returning Functions (SRFs) - *------------------------------------------------------------------------- - * - * This struct holds function context for Set Returning Functions. - * Use fn_extra to hold a pointer to it across calls - */ -typedef struct FuncCallContext -{ - /* - * Number of times we've been called before - * - * call_cntr is initialized to 0 for you by SRF_FIRSTCALL_INIT(), and - * incremented for you every time SRF_RETURN_NEXT() is called. - */ - uint64 call_cntr; - - /* - * OPTIONAL maximum number of calls - * - * max_calls is here for convenience only and setting it is optional. If - * not set, you must provide alternative means to know when the function - * is done. - */ - uint64 max_calls; - - /* - * OPTIONAL pointer to miscellaneous user-provided context information - * - * user_fctx is for use as a pointer to your own struct to retain - * arbitrary context information between calls of your function. - */ - void *user_fctx; - - /* - * OPTIONAL pointer to struct containing attribute type input metadata - * - * attinmeta is for use when returning tuples (i.e. composite data types) - * and is not used when returning base data types. It is only needed if - * you intend to use BuildTupleFromCStrings() to create the return tuple. - */ - AttInMetadata *attinmeta; - - /* - * memory context used for structures that must live for multiple calls - * - * multi_call_memory_ctx is set by SRF_FIRSTCALL_INIT() for you, and used - * by SRF_RETURN_DONE() for cleanup. It is the most appropriate memory - * context for any memory that is to be reused across multiple calls of - * the SRF. - */ - MemoryContext multi_call_memory_ctx; - - /* - * OPTIONAL pointer to struct containing tuple description - * - * tuple_desc is for use when returning tuples (i.e. composite data types) - * and is only needed if you are going to build the tuples with - * heap_form_tuple() rather than with BuildTupleFromCStrings(). Note that - * the TupleDesc pointer stored here should usually have been run through - * BlessTupleDesc() first. - */ - TupleDesc tuple_desc; - -} FuncCallContext; - -/*---------- - * Support to ease writing functions returning composite types - * - * External declarations: - * get_call_result_type: - * Given a function's call info record, determine the kind of datatype - * it is supposed to return. If resultTypeId isn't NULL, *resultTypeId - * receives the actual datatype OID (this is mainly useful for scalar - * result types). If resultTupleDesc isn't NULL, *resultTupleDesc - * receives a pointer to a TupleDesc when the result is of a composite - * type, or NULL when it's a scalar result or the rowtype could not be - * determined. NB: the tupledesc should be copied if it is to be - * accessed over a long period. - * get_expr_result_type: - * Given an expression node, return the same info as for - * get_call_result_type. Note: the cases in which rowtypes cannot be - * determined are different from the cases for get_call_result_type. - * get_func_result_type: - * Given only a function's OID, return the same info as for - * get_call_result_type. Note: the cases in which rowtypes cannot be - * determined are different from the cases for get_call_result_type. - * Do *not* use this if you can use one of the others. - * - * See also get_expr_result_tupdesc(), which is a convenient wrapper around - * get_expr_result_type() for use when the caller only cares about - * determinable-rowtype cases. - *---------- - */ - -/* Type categories for get_call_result_type and siblings */ -typedef enum TypeFuncClass -{ - TYPEFUNC_SCALAR, /* scalar result type */ - TYPEFUNC_COMPOSITE, /* determinable rowtype result */ - TYPEFUNC_COMPOSITE_DOMAIN, /* domain over determinable rowtype result */ - TYPEFUNC_RECORD, /* indeterminate rowtype result */ - TYPEFUNC_OTHER /* bogus type, eg pseudotype */ -} TypeFuncClass; - -extern TypeFuncClass get_call_result_type(FunctionCallInfo fcinfo, - Oid *resultTypeId, - TupleDesc *resultTupleDesc); -extern TypeFuncClass get_expr_result_type(Node *expr, - Oid *resultTypeId, - TupleDesc *resultTupleDesc); -extern TypeFuncClass get_func_result_type(Oid functionId, - Oid *resultTypeId, - TupleDesc *resultTupleDesc); - -extern TupleDesc get_expr_result_tupdesc(Node *expr, bool noError); - -extern bool resolve_polymorphic_argtypes(int numargs, Oid *argtypes, - char *argmodes, - Node *call_expr); - -extern int get_func_arg_info(HeapTuple procTup, - Oid **p_argtypes, char ***p_argnames, - char **p_argmodes); - -extern int get_func_input_arg_names(Datum proargnames, Datum proargmodes, - char ***arg_names); - -extern int get_func_trftypes(HeapTuple procTup, Oid **p_trftypes); -extern char *get_func_result_name(Oid functionId); - -extern TupleDesc build_function_result_tupdesc_d(char prokind, - Datum proallargtypes, - Datum proargmodes, - Datum proargnames); -extern TupleDesc build_function_result_tupdesc_t(HeapTuple procTuple); - - -/*---------- - * Support to ease writing functions returning composite types - * - * External declarations: - * TupleDesc BlessTupleDesc(TupleDesc tupdesc) - "Bless" a completed tuple - * descriptor so that it can be used to return properly labeled tuples. - * You need to call this if you are going to use heap_form_tuple directly. - * TupleDescGetAttInMetadata does it for you, however, so no need to call - * it if you call TupleDescGetAttInMetadata. - * AttInMetadata *TupleDescGetAttInMetadata(TupleDesc tupdesc) - Build an - * AttInMetadata struct based on the given TupleDesc. AttInMetadata can - * be used in conjunction with C strings to produce a properly formed - * tuple. - * HeapTuple BuildTupleFromCStrings(AttInMetadata *attinmeta, char **values) - - * build a HeapTuple given user data in C string form. values is an array - * of C strings, one for each attribute of the return tuple. - * Datum HeapTupleHeaderGetDatum(HeapTupleHeader tuple) - convert a - * HeapTupleHeader to a Datum. - * - * Macro declarations: - * HeapTupleGetDatum(HeapTuple tuple) - convert a HeapTuple to a Datum. - * - * Obsolete routines and macros: - * TupleDesc RelationNameGetTupleDesc(const char *relname) - Use to get a - * TupleDesc based on a named relation. - * TupleDesc TypeGetTupleDesc(Oid typeoid, List *colaliases) - Use to get a - * TupleDesc based on a type OID. - * TupleGetDatum(TupleTableSlot *slot, HeapTuple tuple) - get a Datum - * given a tuple and a slot. - *---------- - */ - -#define HeapTupleGetDatum(tuple) HeapTupleHeaderGetDatum((tuple)->t_data) -/* obsolete version of above */ -#define TupleGetDatum(_slot, _tuple) HeapTupleGetDatum(_tuple) - -extern TupleDesc RelationNameGetTupleDesc(const char *relname); -extern TupleDesc TypeGetTupleDesc(Oid typeoid, List *colaliases); - -/* from execTuples.c */ -extern TupleDesc BlessTupleDesc(TupleDesc tupdesc); -extern AttInMetadata *TupleDescGetAttInMetadata(TupleDesc tupdesc); -extern HeapTuple BuildTupleFromCStrings(AttInMetadata *attinmeta, char **values); -extern Datum HeapTupleHeaderGetDatum(HeapTupleHeader tuple); - - -/*---------- - * Support for Set Returning Functions (SRFs) - * - * The basic API for SRFs using ValuePerCall mode looks something like this: - * - * Datum - * my_Set_Returning_Function(PG_FUNCTION_ARGS) - * { - * FuncCallContext *funcctx; - * Datum result; - * MemoryContext oldcontext; - * - * - * if (SRF_IS_FIRSTCALL()) - * { - * funcctx = SRF_FIRSTCALL_INIT(); - * // switch context when allocating stuff to be used in later calls - * oldcontext = MemoryContextSwitchTo(funcctx->multi_call_memory_ctx); - * - * - * - * - * - * // return to original context when allocating transient memory - * MemoryContextSwitchTo(oldcontext); - * } - * - * funcctx = SRF_PERCALL_SETUP(); - * - * - * if (funcctx->call_cntr < funcctx->max_calls) - * { - * - * - * SRF_RETURN_NEXT(funcctx, result); - * } - * else - * SRF_RETURN_DONE(funcctx); - * } - * - * NOTE: there is no guarantee that a SRF using ValuePerCall mode will be - * run to completion; for example, a query with LIMIT might stop short of - * fetching all the rows. Therefore, do not expect that you can do resource - * cleanup just before SRF_RETURN_DONE(). You need not worry about releasing - * memory allocated in multi_call_memory_ctx, but holding file descriptors or - * other non-memory resources open across calls is a bug. SRFs that need - * such resources should not use these macros, but instead populate a - * tuplestore during a single call, as set up by InitMaterializedSRF() (see - * fmgr/README). Alternatively, set up a callback to release resources - * at query shutdown, using RegisterExprContextCallback(). - * - *---------- - */ - -/* from funcapi.c */ - -/* flag bits for InitMaterializedSRF() */ -#define MAT_SRF_USE_EXPECTED_DESC 0x01 /* use expectedDesc as tupdesc. */ -#define MAT_SRF_BLESS 0x02 /* "Bless" a tuple descriptor with - * BlessTupleDesc(). */ -extern void InitMaterializedSRF(FunctionCallInfo fcinfo, bits32 flags); - -/* Compatibility declarations, for v15 */ -#define SRF_SINGLE_USE_EXPECTED MAT_SRF_USE_EXPECTED_DESC -#define SRF_SINGLE_BLESS MAT_SRF_BLESS -extern void SetSingleFuncCall(FunctionCallInfo fcinfo, bits32 flags); - -extern FuncCallContext *init_MultiFuncCall(PG_FUNCTION_ARGS); -extern FuncCallContext *per_MultiFuncCall(PG_FUNCTION_ARGS); -extern void end_MultiFuncCall(PG_FUNCTION_ARGS, FuncCallContext *funcctx); - -#define SRF_IS_FIRSTCALL() (fcinfo->flinfo->fn_extra == NULL) - -#define SRF_FIRSTCALL_INIT() init_MultiFuncCall(fcinfo) - -#define SRF_PERCALL_SETUP() per_MultiFuncCall(fcinfo) - -#define SRF_RETURN_NEXT(_funcctx, _result) \ - do { \ - ReturnSetInfo *rsi; \ - (_funcctx)->call_cntr++; \ - rsi = (ReturnSetInfo *) fcinfo->resultinfo; \ - rsi->isDone = ExprMultipleResult; \ - PG_RETURN_DATUM(_result); \ - } while (0) - -#define SRF_RETURN_NEXT_NULL(_funcctx) \ - do { \ - ReturnSetInfo *rsi; \ - (_funcctx)->call_cntr++; \ - rsi = (ReturnSetInfo *) fcinfo->resultinfo; \ - rsi->isDone = ExprMultipleResult; \ - PG_RETURN_NULL(); \ - } while (0) - -#define SRF_RETURN_DONE(_funcctx) \ - do { \ - ReturnSetInfo *rsi; \ - end_MultiFuncCall(fcinfo, _funcctx); \ - rsi = (ReturnSetInfo *) fcinfo->resultinfo; \ - rsi->isDone = ExprEndResult; \ - PG_RETURN_NULL(); \ - } while (0) - -/*---------- - * Support to ease writing of functions dealing with VARIADIC inputs - *---------- - * - * This function extracts a set of argument values, types and NULL markers - * for a given input function. This returns a set of data: - * - **values includes the set of Datum values extracted. - * - **types the data type OID for each element. - * - **nulls tracks if an element is NULL. - * - * variadic_start indicates the argument number where the VARIADIC argument - * starts. - * convert_unknown set to true will enforce the conversion of arguments - * with unknown data type to text. - * - * The return result is the number of elements stored, or -1 in the case of - * "VARIADIC NULL". - */ -extern int extract_variadic_args(FunctionCallInfo fcinfo, int variadic_start, - bool convert_unknown, Datum **values, - Oid **types, bool **nulls); - -#endif /* FUNCAPI_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/getaddrinfo.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/getaddrinfo.h deleted file mode 100644 index 2042c2d30..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/getaddrinfo.h +++ /dev/null @@ -1,162 +0,0 @@ -/*------------------------------------------------------------------------- - * - * getaddrinfo.h - * Support getaddrinfo() on platforms that don't have it. - * - * Note: we use our own routines on platforms that don't HAVE_STRUCT_ADDRINFO, - * whether or not the library routine getaddrinfo() can be found. This - * policy is needed because on some platforms a manually installed libbind.a - * may provide getaddrinfo(), yet the system headers may not provide the - * struct definitions needed to call it. To avoid conflict with the libbind - * definition in such cases, we rename our routines to pg_xxx() via macros. - * - * This code will also work on platforms where struct addrinfo is defined - * in the system headers but no getaddrinfo() can be located. - * - * Copyright (c) 2003-2022, PostgreSQL Global Development Group - * - * src/include/getaddrinfo.h - * - *------------------------------------------------------------------------- - */ -#ifndef GETADDRINFO_H -#define GETADDRINFO_H - -#include -#include - - -/* Various macros that ought to be in , but might not be */ - -#ifndef EAI_FAIL -#ifndef WIN32 -#define EAI_BADFLAGS (-1) -#define EAI_NONAME (-2) -#define EAI_AGAIN (-3) -#define EAI_FAIL (-4) -#define EAI_FAMILY (-6) -#define EAI_SOCKTYPE (-7) -#define EAI_SERVICE (-8) -#define EAI_MEMORY (-10) -#define EAI_SYSTEM (-11) -#else /* WIN32 */ -#ifdef _MSC_VER -#ifndef WSA_NOT_ENOUGH_MEMORY -#define WSA_NOT_ENOUGH_MEMORY (WSAENOBUFS) -#endif -#define WSATYPE_NOT_FOUND (WSABASEERR+109) -#endif -#define EAI_AGAIN WSATRY_AGAIN -#define EAI_BADFLAGS WSAEINVAL -#define EAI_FAIL WSANO_RECOVERY -#define EAI_FAMILY WSAEAFNOSUPPORT -#define EAI_MEMORY WSA_NOT_ENOUGH_MEMORY -#define EAI_NODATA WSANO_DATA -#define EAI_NONAME WSAHOST_NOT_FOUND -#define EAI_SERVICE WSATYPE_NOT_FOUND -#define EAI_SOCKTYPE WSAESOCKTNOSUPPORT -#endif /* !WIN32 */ -#endif /* !EAI_FAIL */ - -#ifndef AI_PASSIVE -#define AI_PASSIVE 0x0001 -#endif - -#ifndef AI_NUMERICHOST -/* - * some platforms don't support AI_NUMERICHOST; define as zero if using - * the system version of getaddrinfo... - */ -#if defined(HAVE_STRUCT_ADDRINFO) && defined(HAVE_GETADDRINFO) -#define AI_NUMERICHOST 0 -#else -#define AI_NUMERICHOST 0x0004 -#endif -#endif - -#ifndef NI_NUMERICHOST -#define NI_NUMERICHOST 1 -#endif -#ifndef NI_NUMERICSERV -#define NI_NUMERICSERV 2 -#endif -#ifndef NI_NAMEREQD -#define NI_NAMEREQD 4 -#endif - -#ifndef NI_MAXHOST -#define NI_MAXHOST 1025 -#endif -#ifndef NI_MAXSERV -#define NI_MAXSERV 32 -#endif - - -#ifndef HAVE_STRUCT_ADDRINFO - -#ifndef WIN32 -struct addrinfo -{ - int ai_flags; - int ai_family; - int ai_socktype; - int ai_protocol; - size_t ai_addrlen; - struct sockaddr *ai_addr; - char *ai_canonname; - struct addrinfo *ai_next; -}; -#else -/* - * The order of the structure elements on Win32 doesn't match the - * order specified in the standard, but we have to match it for - * IPv6 to work. - */ -struct addrinfo -{ - int ai_flags; - int ai_family; - int ai_socktype; - int ai_protocol; - size_t ai_addrlen; - char *ai_canonname; - struct sockaddr *ai_addr; - struct addrinfo *ai_next; -}; -#endif -#endif /* HAVE_STRUCT_ADDRINFO */ - - -#ifndef HAVE_GETADDRINFO - -/* Rename private copies per comments above */ -#ifdef getaddrinfo -#undef getaddrinfo -#endif -#define getaddrinfo pg_getaddrinfo - -#ifdef freeaddrinfo -#undef freeaddrinfo -#endif -#define freeaddrinfo pg_freeaddrinfo - -#ifdef gai_strerror -#undef gai_strerror -#endif -#define gai_strerror pg_gai_strerror - -#ifdef getnameinfo -#undef getnameinfo -#endif -#define getnameinfo pg_getnameinfo - -extern int getaddrinfo(const char *node, const char *service, - const struct addrinfo *hints, struct addrinfo **res); -extern void freeaddrinfo(struct addrinfo *res); -extern const char *gai_strerror(int errcode); -extern int getnameinfo(const struct sockaddr *sa, int salen, - char *node, int nodelen, - char *service, int servicelen, int flags); -#endif /* HAVE_GETADDRINFO */ - -#endif /* GETADDRINFO_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/jit/jit.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/jit/jit.h deleted file mode 100644 index d19403320..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/jit/jit.h +++ /dev/null @@ -1,105 +0,0 @@ -/*------------------------------------------------------------------------- - * jit.h - * Provider independent JIT infrastructure. - * - * Copyright (c) 2016-2022, PostgreSQL Global Development Group - * - * src/include/jit/jit.h - * - *------------------------------------------------------------------------- - */ -#ifndef JIT_H -#define JIT_H - -#include "executor/instrument.h" -#include "utils/resowner.h" - - -/* Flags determining what kind of JIT operations to perform */ -#define PGJIT_NONE 0 -#define PGJIT_PERFORM (1 << 0) -#define PGJIT_OPT3 (1 << 1) -#define PGJIT_INLINE (1 << 2) -#define PGJIT_EXPR (1 << 3) -#define PGJIT_DEFORM (1 << 4) - - -typedef struct JitInstrumentation -{ - /* number of emitted functions */ - size_t created_functions; - - /* accumulated time to generate code */ - instr_time generation_counter; - - /* accumulated time for inlining */ - instr_time inlining_counter; - - /* accumulated time for optimization */ - instr_time optimization_counter; - - /* accumulated time for code emission */ - instr_time emission_counter; -} JitInstrumentation; - -/* - * DSM structure for accumulating jit instrumentation of all workers. - */ -typedef struct SharedJitInstrumentation -{ - int num_workers; - JitInstrumentation jit_instr[FLEXIBLE_ARRAY_MEMBER]; -} SharedJitInstrumentation; - -typedef struct JitContext -{ - /* see PGJIT_* above */ - int flags; - - ResourceOwner resowner; - - JitInstrumentation instr; -} JitContext; - -typedef struct JitProviderCallbacks JitProviderCallbacks; - -extern void _PG_jit_provider_init(JitProviderCallbacks *cb); -typedef void (*JitProviderInit) (JitProviderCallbacks *cb); -typedef void (*JitProviderResetAfterErrorCB) (void); -typedef void (*JitProviderReleaseContextCB) (JitContext *context); -struct ExprState; -typedef bool (*JitProviderCompileExprCB) (struct ExprState *state); - -struct JitProviderCallbacks -{ - JitProviderResetAfterErrorCB reset_after_error; - JitProviderReleaseContextCB release_context; - JitProviderCompileExprCB compile_expr; -}; - - -/* GUCs */ -extern PGDLLIMPORT bool jit_enabled; -extern PGDLLIMPORT char *jit_provider; -extern PGDLLIMPORT bool jit_debugging_support; -extern PGDLLIMPORT bool jit_dump_bitcode; -extern PGDLLIMPORT bool jit_expressions; -extern PGDLLIMPORT bool jit_profiling_support; -extern PGDLLIMPORT bool jit_tuple_deforming; -extern PGDLLIMPORT double jit_above_cost; -extern PGDLLIMPORT double jit_inline_above_cost; -extern PGDLLIMPORT double jit_optimize_above_cost; - - -extern void jit_reset_after_error(void); -extern void jit_release_context(JitContext *context); - -/* - * Functions for attempting to JIT code. Callers must accept that these might - * not be able to perform JIT (i.e. return false). - */ -extern bool jit_compile_expr(struct ExprState *state); -extern void InstrJitAgg(JitInstrumentation *dst, JitInstrumentation *add); - - -#endif /* JIT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/kwlist_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/kwlist_d.h deleted file mode 100644 index 568dc8a60..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/kwlist_d.h +++ /dev/null @@ -1,1095 +0,0 @@ -/*------------------------------------------------------------------------- - * - * kwlist_d.h - * List of keywords represented as a ScanKeywordList. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/tools/gen_keywordlist.pl - * - *------------------------------------------------------------------------- - */ - -#ifndef KWLIST_D_H -#define KWLIST_D_H - -#include "common/kwlookup.h" - -static const char ScanKeywords_kw_string[] = - "abort\0" - "absolute\0" - "access\0" - "action\0" - "add\0" - "admin\0" - "after\0" - "aggregate\0" - "all\0" - "also\0" - "alter\0" - "always\0" - "analyse\0" - "analyze\0" - "and\0" - "any\0" - "array\0" - "as\0" - "asc\0" - "asensitive\0" - "assertion\0" - "assignment\0" - "asymmetric\0" - "at\0" - "atomic\0" - "attach\0" - "attribute\0" - "authorization\0" - "backward\0" - "before\0" - "begin\0" - "between\0" - "bigint\0" - "binary\0" - "bit\0" - "boolean\0" - "both\0" - "breadth\0" - "by\0" - "cache\0" - "call\0" - "called\0" - "cascade\0" - "cascaded\0" - "case\0" - "cast\0" - "catalog\0" - "chain\0" - "char\0" - "character\0" - "characteristics\0" - "check\0" - "checkpoint\0" - "class\0" - "close\0" - "cluster\0" - "coalesce\0" - "collate\0" - "collation\0" - "column\0" - "columns\0" - "comment\0" - "comments\0" - "commit\0" - "committed\0" - "compression\0" - "concurrently\0" - "configuration\0" - "conflict\0" - "connection\0" - "constraint\0" - "constraints\0" - "content\0" - "continue\0" - "conversion\0" - "copy\0" - "cost\0" - "create\0" - "cross\0" - "csv\0" - "cube\0" - "current\0" - "current_catalog\0" - "current_date\0" - "current_role\0" - "current_schema\0" - "current_time\0" - "current_timestamp\0" - "current_user\0" - "cursor\0" - "cycle\0" - "data\0" - "database\0" - "day\0" - "deallocate\0" - "dec\0" - "decimal\0" - "declare\0" - "default\0" - "defaults\0" - "deferrable\0" - "deferred\0" - "definer\0" - "delete\0" - "delimiter\0" - "delimiters\0" - "depends\0" - "depth\0" - "desc\0" - "detach\0" - "dictionary\0" - "disable\0" - "discard\0" - "distinct\0" - "do\0" - "document\0" - "domain\0" - "double\0" - "drop\0" - "each\0" - "else\0" - "enable\0" - "encoding\0" - "encrypted\0" - "end\0" - "enum\0" - "escape\0" - "event\0" - "except\0" - "exclude\0" - "excluding\0" - "exclusive\0" - "execute\0" - "exists\0" - "explain\0" - "expression\0" - "extension\0" - "external\0" - "extract\0" - "false\0" - "family\0" - "fetch\0" - "filter\0" - "finalize\0" - "first\0" - "float\0" - "following\0" - "for\0" - "force\0" - "foreign\0" - "forward\0" - "freeze\0" - "from\0" - "full\0" - "function\0" - "functions\0" - "generated\0" - "global\0" - "grant\0" - "granted\0" - "greatest\0" - "group\0" - "grouping\0" - "groups\0" - "handler\0" - "having\0" - "header\0" - "hold\0" - "hour\0" - "identity\0" - "if\0" - "ilike\0" - "immediate\0" - "immutable\0" - "implicit\0" - "import\0" - "in\0" - "include\0" - "including\0" - "increment\0" - "index\0" - "indexes\0" - "inherit\0" - "inherits\0" - "initially\0" - "inline\0" - "inner\0" - "inout\0" - "input\0" - "insensitive\0" - "insert\0" - "instead\0" - "int\0" - "integer\0" - "intersect\0" - "interval\0" - "into\0" - "invoker\0" - "is\0" - "isnull\0" - "isolation\0" - "join\0" - "key\0" - "label\0" - "language\0" - "large\0" - "last\0" - "lateral\0" - "leading\0" - "leakproof\0" - "least\0" - "left\0" - "level\0" - "like\0" - "limit\0" - "listen\0" - "load\0" - "local\0" - "localtime\0" - "localtimestamp\0" - "location\0" - "lock\0" - "locked\0" - "logged\0" - "mapping\0" - "match\0" - "matched\0" - "materialized\0" - "maxvalue\0" - "merge\0" - "method\0" - "minute\0" - "minvalue\0" - "mode\0" - "month\0" - "move\0" - "name\0" - "names\0" - "national\0" - "natural\0" - "nchar\0" - "new\0" - "next\0" - "nfc\0" - "nfd\0" - "nfkc\0" - "nfkd\0" - "no\0" - "none\0" - "normalize\0" - "normalized\0" - "not\0" - "nothing\0" - "notify\0" - "notnull\0" - "nowait\0" - "null\0" - "nullif\0" - "nulls\0" - "numeric\0" - "object\0" - "of\0" - "off\0" - "offset\0" - "oids\0" - "old\0" - "on\0" - "only\0" - "operator\0" - "option\0" - "options\0" - "or\0" - "order\0" - "ordinality\0" - "others\0" - "out\0" - "outer\0" - "over\0" - "overlaps\0" - "overlay\0" - "overriding\0" - "owned\0" - "owner\0" - "parallel\0" - "parameter\0" - "parser\0" - "partial\0" - "partition\0" - "passing\0" - "password\0" - "placing\0" - "plans\0" - "policy\0" - "position\0" - "preceding\0" - "precision\0" - "prepare\0" - "prepared\0" - "preserve\0" - "primary\0" - "prior\0" - "privileges\0" - "procedural\0" - "procedure\0" - "procedures\0" - "program\0" - "publication\0" - "quote\0" - "range\0" - "read\0" - "real\0" - "reassign\0" - "recheck\0" - "recursive\0" - "ref\0" - "references\0" - "referencing\0" - "refresh\0" - "reindex\0" - "relative\0" - "release\0" - "rename\0" - "repeatable\0" - "replace\0" - "replica\0" - "reset\0" - "restart\0" - "restrict\0" - "return\0" - "returning\0" - "returns\0" - "revoke\0" - "right\0" - "role\0" - "rollback\0" - "rollup\0" - "routine\0" - "routines\0" - "row\0" - "rows\0" - "rule\0" - "savepoint\0" - "schema\0" - "schemas\0" - "scroll\0" - "search\0" - "second\0" - "security\0" - "select\0" - "sequence\0" - "sequences\0" - "serializable\0" - "server\0" - "session\0" - "session_user\0" - "set\0" - "setof\0" - "sets\0" - "share\0" - "show\0" - "similar\0" - "simple\0" - "skip\0" - "smallint\0" - "snapshot\0" - "some\0" - "sql\0" - "stable\0" - "standalone\0" - "start\0" - "statement\0" - "statistics\0" - "stdin\0" - "stdout\0" - "storage\0" - "stored\0" - "strict\0" - "strip\0" - "subscription\0" - "substring\0" - "support\0" - "symmetric\0" - "sysid\0" - "system\0" - "table\0" - "tables\0" - "tablesample\0" - "tablespace\0" - "temp\0" - "template\0" - "temporary\0" - "text\0" - "then\0" - "ties\0" - "time\0" - "timestamp\0" - "to\0" - "trailing\0" - "transaction\0" - "transform\0" - "treat\0" - "trigger\0" - "trim\0" - "true\0" - "truncate\0" - "trusted\0" - "type\0" - "types\0" - "uescape\0" - "unbounded\0" - "uncommitted\0" - "unencrypted\0" - "union\0" - "unique\0" - "unknown\0" - "unlisten\0" - "unlogged\0" - "until\0" - "update\0" - "user\0" - "using\0" - "vacuum\0" - "valid\0" - "validate\0" - "validator\0" - "value\0" - "values\0" - "varchar\0" - "variadic\0" - "varying\0" - "verbose\0" - "version\0" - "view\0" - "views\0" - "volatile\0" - "when\0" - "where\0" - "whitespace\0" - "window\0" - "with\0" - "within\0" - "without\0" - "work\0" - "wrapper\0" - "write\0" - "xml\0" - "xmlattributes\0" - "xmlconcat\0" - "xmlelement\0" - "xmlexists\0" - "xmlforest\0" - "xmlnamespaces\0" - "xmlparse\0" - "xmlpi\0" - "xmlroot\0" - "xmlserialize\0" - "xmltable\0" - "year\0" - "yes\0" - "zone"; - -static const uint16 ScanKeywords_kw_offsets[] = { - 0, - 6, - 15, - 22, - 29, - 33, - 39, - 45, - 55, - 59, - 64, - 70, - 77, - 85, - 93, - 97, - 101, - 107, - 110, - 114, - 125, - 135, - 146, - 157, - 160, - 167, - 174, - 184, - 198, - 207, - 214, - 220, - 228, - 235, - 242, - 246, - 254, - 259, - 267, - 270, - 276, - 281, - 288, - 296, - 305, - 310, - 315, - 323, - 329, - 334, - 344, - 360, - 366, - 377, - 383, - 389, - 397, - 406, - 414, - 424, - 431, - 439, - 447, - 456, - 463, - 473, - 485, - 498, - 512, - 521, - 532, - 543, - 555, - 563, - 572, - 583, - 588, - 593, - 600, - 606, - 610, - 615, - 623, - 639, - 652, - 665, - 680, - 693, - 711, - 724, - 731, - 737, - 742, - 751, - 755, - 766, - 770, - 778, - 786, - 794, - 803, - 814, - 823, - 831, - 838, - 848, - 859, - 867, - 873, - 878, - 885, - 896, - 904, - 912, - 921, - 924, - 933, - 940, - 947, - 952, - 957, - 962, - 969, - 978, - 988, - 992, - 997, - 1004, - 1010, - 1017, - 1025, - 1035, - 1045, - 1053, - 1060, - 1068, - 1079, - 1089, - 1098, - 1106, - 1112, - 1119, - 1125, - 1132, - 1141, - 1147, - 1153, - 1163, - 1167, - 1173, - 1181, - 1189, - 1196, - 1201, - 1206, - 1215, - 1225, - 1235, - 1242, - 1248, - 1256, - 1265, - 1271, - 1280, - 1287, - 1295, - 1302, - 1309, - 1314, - 1319, - 1328, - 1331, - 1337, - 1347, - 1357, - 1366, - 1373, - 1376, - 1384, - 1394, - 1404, - 1410, - 1418, - 1426, - 1435, - 1445, - 1452, - 1458, - 1464, - 1470, - 1482, - 1489, - 1497, - 1501, - 1509, - 1519, - 1528, - 1533, - 1541, - 1544, - 1551, - 1561, - 1566, - 1570, - 1576, - 1585, - 1591, - 1596, - 1604, - 1612, - 1622, - 1628, - 1633, - 1639, - 1644, - 1650, - 1657, - 1662, - 1668, - 1678, - 1693, - 1702, - 1707, - 1714, - 1721, - 1729, - 1735, - 1743, - 1756, - 1765, - 1771, - 1778, - 1785, - 1794, - 1799, - 1805, - 1810, - 1815, - 1821, - 1830, - 1838, - 1844, - 1848, - 1853, - 1857, - 1861, - 1866, - 1871, - 1874, - 1879, - 1889, - 1900, - 1904, - 1912, - 1919, - 1927, - 1934, - 1939, - 1946, - 1952, - 1960, - 1967, - 1970, - 1974, - 1981, - 1986, - 1990, - 1993, - 1998, - 2007, - 2014, - 2022, - 2025, - 2031, - 2042, - 2049, - 2053, - 2059, - 2064, - 2073, - 2081, - 2092, - 2098, - 2104, - 2113, - 2123, - 2130, - 2138, - 2148, - 2156, - 2165, - 2173, - 2179, - 2186, - 2195, - 2205, - 2215, - 2223, - 2232, - 2241, - 2249, - 2255, - 2266, - 2277, - 2287, - 2298, - 2306, - 2318, - 2324, - 2330, - 2335, - 2340, - 2349, - 2357, - 2367, - 2371, - 2382, - 2394, - 2402, - 2410, - 2419, - 2427, - 2434, - 2445, - 2453, - 2461, - 2467, - 2475, - 2484, - 2491, - 2501, - 2509, - 2516, - 2522, - 2527, - 2536, - 2543, - 2551, - 2560, - 2564, - 2569, - 2574, - 2584, - 2591, - 2599, - 2606, - 2613, - 2620, - 2629, - 2636, - 2645, - 2655, - 2668, - 2675, - 2683, - 2696, - 2700, - 2706, - 2711, - 2717, - 2722, - 2730, - 2737, - 2742, - 2751, - 2760, - 2765, - 2769, - 2776, - 2787, - 2793, - 2803, - 2814, - 2820, - 2827, - 2835, - 2842, - 2849, - 2855, - 2868, - 2878, - 2886, - 2896, - 2902, - 2909, - 2915, - 2922, - 2934, - 2945, - 2950, - 2959, - 2969, - 2974, - 2979, - 2984, - 2989, - 2999, - 3002, - 3011, - 3023, - 3033, - 3039, - 3047, - 3052, - 3057, - 3066, - 3074, - 3079, - 3085, - 3093, - 3103, - 3115, - 3127, - 3133, - 3140, - 3148, - 3157, - 3166, - 3172, - 3179, - 3184, - 3190, - 3197, - 3203, - 3212, - 3222, - 3228, - 3235, - 3243, - 3252, - 3260, - 3268, - 3276, - 3281, - 3287, - 3296, - 3301, - 3307, - 3318, - 3325, - 3330, - 3337, - 3345, - 3350, - 3358, - 3364, - 3368, - 3382, - 3392, - 3403, - 3413, - 3423, - 3437, - 3446, - 3452, - 3460, - 3473, - 3482, - 3487, - 3491, -}; - -#define SCANKEYWORDS_NUM_KEYWORDS 460 - -static int -ScanKeywords_hash_func(const void *key, size_t keylen) -{ - static const int16 h[921] = { - 207, -201, 0, 223, -255, 28, 32767, -86, - 32767, 0, -35, -938, 32767, 32767, -13, 32767, - 450, 62, 42, 327, 309, -13, 0, 114, - 32767, -230, 135, -12, 424, 191, -114, 32767, - 45, 440, 673, 0, 0, 224, 286, 32767, - 32767, 16, 5, 0, 32767, 32767, -349, 32767, - -43, 32767, 32767, 32767, 32767, 32767, 0, 32767, - 32767, 262, 573, -75, 32767, 32767, 1113, 88, - 111, 32767, 7, -41, 223, 32767, 478, 275, - 32767, 0, 245, 1004, 59, 32767, 322, 256, - -130, 32767, 0, 378, 606, 994, -59, 32767, - -219, 32767, 489, 32767, -328, 32767, 88, 32767, - -228, 0, 1181, -705, 32767, 32767, 149, 32767, - 32767, 177, 0, 0, 32767, 32767, 32767, 473, - 142, 167, 130, 345, 461, 50, 426, 32767, - 32767, -104, 333, 32767, 5, 32767, 32767, 115, - 0, 34, 32767, -178, 32767, 32767, 0, 32767, - 32767, 32767, 429, 573, 32767, 3, 32767, 0, - 237, 32767, 324, 379, 32767, 409, 32767, 32767, - 362, -707, 638, 32767, 32767, -18, 23, 127, - 32767, 32767, -55, 0, 254, 32767, 0, 32767, - -16, 389, 32767, -287, 0, -43, 32767, 0, - 32767, 157, 23, 438, 907, 0, 32767, -213, - 299, 32767, 0, 32767, 32767, 229, 32767, 32767, - 32767, 32767, 186, 32767, 81, 32767, -707, 525, - 732, 515, 32767, 32767, 0, 32767, 32767, 126, - 32767, 32767, 0, 443, 32767, 102, -148, 188, - 393, 32767, 383, 32767, 212, 247, 32767, 389, - 54, -258, 0, 6, -32, 32767, 261, -190, - 112, 32767, 32767, 32767, 0, 32767, 0, 32767, - 32767, 215, 32767, 196, 32767, 445, 32767, 32767, - -456, -66, 161, 32767, 617, -484, 230, 32767, - 1078, 77, 124, 32767, 32767, -44, 32767, -271, - 148, 20, 344, 83, 32767, 32767, 32767, 108, - -768, 269, 32767, 32767, -66, 0, 32767, 32767, - 524, 433, 32767, 32767, 0, 32767, -564, -138, - 0, 4, 463, 354, 32767, 57, 0, 32767, - 552, 351, 32767, 32767, 0, 32767, 32767, 32767, - 65, 32767, 32767, 285, 158, 32767, 32767, -931, - 281, 32767, 32767, 32767, 32767, -357, -115, 32767, - 294, 435, 2, 32767, 305, 32767, 35, 434, - 32767, 172, 0, 32767, 326, -597, 263, 2, - 32767, -111, -79, 32767, 32767, -717, 198, 32767, - -715, 407, 32767, 32767, 159, 214, -135, 379, - 672, 656, 278, 0, 32767, 32767, 32767, 1109, - 830, -173, 32767, 32767, 334, 32767, 32767, 32767, - 32767, -447, 270, 61, 281, 32767, 0, 116, - 32767, 99, -302, 32767, 32767, 0, 39, 32767, - -61, 276, -45, 144, -121, 32767, 0, 198, - 325, 72, 294, -174, -218, 73, -489, 32767, - -372, 32767, 32767, 360, 345, 283, -453, 32767, - 32767, 32767, 283, 806, 0, 32767, 32767, 32767, - -65, 0, 32767, 8, 32767, 150, 32767, -251, - 132, 0, 32767, 32767, 272, 32767, 15, -417, - 889, -77, 0, 0, 16, 32767, 32767, 32767, - 94, 32767, 32767, 32767, 32767, 219, 32767, -416, - 391, 31, 208, 396, 0, 143, -37, 32767, - 252, 0, 32767, 185, 32767, -140, 0, 32767, - 456, -258, 32767, 381, 32767, 393, 32767, 32767, - 32767, 32767, 1160, 32767, 32767, 384, 201, 197, - 32767, 0, 131, 469, 89, 32767, 397, 0, - 32767, 211, 32767, 102, 138, 32767, -379, 264, - 32767, 386, 6, 32767, 32767, 162, 53, -81, - -135, 59, 338, 230, 0, 0, 19, 8, - 32767, 785, 423, 0, 257, 301, 523, -398, - 421, 0, 32767, 0, 32767, 32767, 0, -758, - 0, 562, 32767, 0, 32767, 32767, -213, 32767, - 28, 32767, -696, 173, -413, 352, -223, 472, - 275, 316, 32767, -186, 323, 32767, -163, 221, - 246, 29, 222, -1042, 0, 33, 184, 32767, - 32767, 0, 32767, 32767, 805, 32767, 305, 8, - 226, 84, 32767, 379, 0, 32767, 134, 82, - 32767, 399, 32767, 0, 0, 617, 32767, 32767, - 31, 0, 256, 0, 32767, 103, 302, 32767, - 208, 32767, -56, 0, -146, 32767, 243, 32767, - 0, 32767, 32767, 32767, 32767, 784, 32767, 32767, - 0, 197, 32767, 32767, 914, 155, -50, 32767, - 32767, 32767, 292, 1122, 32767, 0, 32767, -167, - 32767, 139, 113, 113, 32767, 410, 32767, 459, - 331, 0, 295, 0, 0, 483, -345, 32767, - 32767, -456, 32767, 32767, 0, 32767, 304, 32767, - 138, 32767, 520, 326, 412, -237, 453, 32767, - 50, 328, 32767, 32767, 0, -116, 0, -754, - 0, -149, 32767, 32767, 28, -398, 0, 32767, - 32767, -89, 353, -64, 51, 139, 32767, 32767, - 66, 32767, 314, 209, 1218, 32767, 32767, 325, - 0, 268, 32767, 32767, 446, 32767, 0, 32767, - -115, 32767, 32767, 32767, 239, 344, 32767, 5, - 32767, 0, -314, 0, -327, 32767, 181, 32767, - 107, 393, 0, 32767, 12, 582, 119, 32767, - -751, 32767, -578, 0, 349, 0, 32767, 404, - 307, 85, 32767, 452, 53, -307, 0, 0, - 32767, 32767, 664, 32767, 32767, 32767, -44, 32767, - 0, 259, 366, 32767, 0, 0, 32767, -97, - -131, 0, 32767, 178, 32767, 779, -231, -73, - 0, 0, 145, 487, 223, 0, 0, 86, - 32767, 0, 32767, 192, 321, 32767, 32767, 32767, - -360, -140, 32767, 32767, 32767, 507, 32767, 247, - 416, 32767, 0, 32767, 68, 98, 32767, 0, - -268, 0, 32767, 204, 32767, 0, 739, 112, - -283, 1180, 193, 32767, 32767, 220, 0, 0, - 0, 0, 0, 32767, 0, 32767, 32767, 32767, - 32767, 206, -374, 0, 315, 32767, 0, 0, - -37, -363, 32767, 32767, 258, 32767, 459, 32767, - 128, -1018, 374, 32767, 0, 32767, 0, -602, - 32767, 346, 76, 363, 387, 296, -186, 32, - 21, 32767, 32767, 32767, 32767, 32767, 32767, 32767, - 0, 32767, 0, 165, 32767, 32767, 32767, 0, - 790, -10, 32767, 32767, 32767, 32767, 0, 32767, - 0, 228, 32767, -993, 32, -878, -154, 32767, - 72, 369, 411, 585, 32767, 32767, 124, 32767, - -253, -177, 294, 32767, 335, 0, 9, 0, - 32767, 442, 0, 0, 32767, 449, 448, 0, - 0, 32767, 0, 593, 0, 32767, 242, 432, - 0, 32767, 0, 32767, 32767, 1360, 0, 32767, - 238 - }; - - const unsigned char *k = (const unsigned char *) key; - uint32 a = 0; - uint32 b = 0; - - while (keylen--) - { - unsigned char c = *k++ | 0x20; - - a = a * 257 + c; - b = b * 127 + c; - } - return h[a % 921] + h[b % 921]; -} - -const ScanKeywordList ScanKeywords = { - ScanKeywords_kw_string, - ScanKeywords_kw_offsets, - ScanKeywords_hash_func, - SCANKEYWORDS_NUM_KEYWORDS, - 17 -}; - -#endif /* KWLIST_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/dshash.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/dshash.h deleted file mode 100644 index 28f8db2ea..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/dshash.h +++ /dev/null @@ -1,112 +0,0 @@ -/*------------------------------------------------------------------------- - * - * dshash.h - * Concurrent hash tables backed by dynamic shared memory areas. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * IDENTIFICATION - * src/include/lib/dshash.h - * - *------------------------------------------------------------------------- - */ -#ifndef DSHASH_H -#define DSHASH_H - -#include "utils/dsa.h" - -/* The opaque type representing a hash table. */ -struct dshash_table; -typedef struct dshash_table dshash_table; - -/* A handle for a dshash_table which can be shared with other processes. */ -typedef dsa_pointer dshash_table_handle; - -/* The type for hash values. */ -typedef uint32 dshash_hash; - -/* A function type for comparing keys. */ -typedef int (*dshash_compare_function) (const void *a, const void *b, - size_t size, void *arg); - -/* A function type for computing hash values for keys. */ -typedef dshash_hash (*dshash_hash_function) (const void *v, size_t size, - void *arg); - -/* - * The set of parameters needed to create or attach to a hash table. The - * members tranche_id and tranche_name do not need to be initialized when - * attaching to an existing hash table. - * - * Compare and hash functions must be supplied even when attaching, because we - * can't safely share function pointers between backends in general. Either - * the arg variants or the non-arg variants should be supplied; the other - * function pointers should be NULL. If the arg variants are supplied then the - * user data pointer supplied to the create and attach functions will be - * passed to the hash and compare functions. - */ -typedef struct dshash_parameters -{ - size_t key_size; /* Size of the key (initial bytes of entry) */ - size_t entry_size; /* Total size of entry */ - dshash_compare_function compare_function; /* Compare function */ - dshash_hash_function hash_function; /* Hash function */ - int tranche_id; /* The tranche ID to use for locks */ -} dshash_parameters; - -/* Forward declaration of private types for use only by dshash.c. */ -struct dshash_table_item; -typedef struct dshash_table_item dshash_table_item; - -/* - * Sequential scan state. The detail is exposed to let users know the storage - * size but it should be considered as an opaque type by callers. - */ -typedef struct dshash_seq_status -{ - dshash_table *hash_table; /* dshash table working on */ - int curbucket; /* bucket number we are at */ - int nbuckets; /* total number of buckets in the dshash */ - dshash_table_item *curitem; /* item we are currently at */ - dsa_pointer pnextitem; /* dsa-pointer to the next item */ - int curpartition; /* partition number we are at */ - bool exclusive; /* locking mode */ -} dshash_seq_status; - -/* Creating, sharing and destroying from hash tables. */ -extern dshash_table *dshash_create(dsa_area *area, - const dshash_parameters *params, - void *arg); -extern dshash_table *dshash_attach(dsa_area *area, - const dshash_parameters *params, - dshash_table_handle handle, - void *arg); -extern void dshash_detach(dshash_table *hash_table); -extern dshash_table_handle dshash_get_hash_table_handle(dshash_table *hash_table); -extern void dshash_destroy(dshash_table *hash_table); - -/* Finding, creating, deleting entries. */ -extern void *dshash_find(dshash_table *hash_table, - const void *key, bool exclusive); -extern void *dshash_find_or_insert(dshash_table *hash_table, - const void *key, bool *found); -extern bool dshash_delete_key(dshash_table *hash_table, const void *key); -extern void dshash_delete_entry(dshash_table *hash_table, void *entry); -extern void dshash_release_lock(dshash_table *hash_table, void *entry); - -/* seq scan support */ -extern void dshash_seq_init(dshash_seq_status *status, dshash_table *hash_table, - bool exclusive); -extern void *dshash_seq_next(dshash_seq_status *status); -extern void dshash_seq_term(dshash_seq_status *status); -extern void dshash_delete_current(dshash_seq_status *status); - -/* Convenience hash and compare functions wrapping memcmp and tag_hash. */ -extern int dshash_memcmp(const void *a, const void *b, size_t size, void *arg); -extern dshash_hash dshash_memhash(const void *v, size_t size, void *arg); - -/* Debugging support. */ -extern void dshash_dump(dshash_table *hash_table); - -#endif /* DSHASH_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/ilist.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/ilist.h deleted file mode 100644 index 7ab0888f4..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/ilist.h +++ /dev/null @@ -1,746 +0,0 @@ -/*------------------------------------------------------------------------- - * - * ilist.h - * integrated/inline doubly- and singly-linked lists - * - * These list types are useful when there are only a predetermined set of - * lists that an object could be in. List links are embedded directly into - * the objects, and thus no extra memory management overhead is required. - * (Of course, if only a small proportion of existing objects are in a list, - * the link fields in the remainder would be wasted space. But usually, - * it saves space to not have separately-allocated list nodes.) - * - * None of the functions here allocate any memory; they just manipulate - * externally managed memory. The APIs for singly and doubly linked lists - * are identical as far as capabilities of both allow. - * - * Each list has a list header, which exists even when the list is empty. - * An empty singly-linked list has a NULL pointer in its header. - * There are two kinds of empty doubly linked lists: those that have been - * initialized to NULL, and those that have been initialized to circularity. - * (If a dlist is modified and then all its elements are deleted, it will be - * in the circular state.) We prefer circular dlists because there are some - * operations that can be done without branches (and thus faster) on lists - * that use circular representation. However, it is often convenient to - * initialize list headers to zeroes rather than setting them up with an - * explicit initialization function, so we also allow the other case. - * - * EXAMPLES - * - * Here's a simple example demonstrating how this can be used. Let's assume - * we want to store information about the tables contained in a database. - * - * #include "lib/ilist.h" - * - * // Define struct for the databases including a list header that will be - * // used to access the nodes in the table list later on. - * typedef struct my_database - * { - * char *datname; - * dlist_head tables; - * // ... - * } my_database; - * - * // Define struct for the tables. Note the list_node element which stores - * // prev/next list links. The list_node element need not be first. - * typedef struct my_table - * { - * char *tablename; - * dlist_node list_node; - * perm_t permissions; - * // ... - * } my_table; - * - * // create a database - * my_database *db = create_database(); - * - * // and add a few tables to its table list - * dlist_push_head(&db->tables, &create_table(db, "a")->list_node); - * ... - * dlist_push_head(&db->tables, &create_table(db, "b")->list_node); - * - * - * To iterate over the table list, we allocate an iterator variable and use - * a specialized looping construct. Inside a dlist_foreach, the iterator's - * 'cur' field can be used to access the current element. iter.cur points to - * a 'dlist_node', but most of the time what we want is the actual table - * information; dlist_container() gives us that, like so: - * - * dlist_iter iter; - * dlist_foreach(iter, &db->tables) - * { - * my_table *tbl = dlist_container(my_table, list_node, iter.cur); - * printf("we have a table: %s in database %s\n", - * tbl->tablename, db->datname); - * } - * - * - * While a simple iteration is useful, we sometimes also want to manipulate - * the list while iterating. There is a different iterator element and looping - * construct for that. Suppose we want to delete tables that meet a certain - * criterion: - * - * dlist_mutable_iter miter; - * dlist_foreach_modify(miter, &db->tables) - * { - * my_table *tbl = dlist_container(my_table, list_node, miter.cur); - * - * if (!tbl->to_be_deleted) - * continue; // don't touch this one - * - * // unlink the current table from the linked list - * dlist_delete(miter.cur); - * // as these lists never manage memory, we can still access the table - * // after it's been unlinked - * drop_table(db, tbl); - * } - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * IDENTIFICATION - * src/include/lib/ilist.h - *------------------------------------------------------------------------- - */ -#ifndef ILIST_H -#define ILIST_H - -/* - * Enable for extra debugging. This is rather expensive, so it's not enabled by - * default even when USE_ASSERT_CHECKING. - */ -/* #define ILIST_DEBUG */ - -/* - * Node of a doubly linked list. - * - * Embed this in structs that need to be part of a doubly linked list. - */ -typedef struct dlist_node dlist_node; -struct dlist_node -{ - dlist_node *prev; - dlist_node *next; -}; - -/* - * Head of a doubly linked list. - * - * Non-empty lists are internally circularly linked. Circular lists have the - * advantage of not needing any branches in the most common list manipulations. - * An empty list can also be represented as a pair of NULL pointers, making - * initialization easier. - */ -typedef struct dlist_head -{ - /* - * head.next either points to the first element of the list; to &head if - * it's a circular empty list; or to NULL if empty and not circular. - * - * head.prev either points to the last element of the list; to &head if - * it's a circular empty list; or to NULL if empty and not circular. - */ - dlist_node head; -} dlist_head; - - -/* - * Doubly linked list iterator. - * - * Used as state in dlist_foreach() and dlist_reverse_foreach(). To get the - * current element of the iteration use the 'cur' member. - * - * Iterations using this are *not* allowed to change the list while iterating! - * - * NB: We use an extra "end" field here to avoid multiple evaluations of - * arguments in the dlist_foreach() macro. - */ -typedef struct dlist_iter -{ - dlist_node *cur; /* current element */ - dlist_node *end; /* last node we'll iterate to */ -} dlist_iter; - -/* - * Doubly linked list iterator allowing some modifications while iterating. - * - * Used as state in dlist_foreach_modify(). To get the current element of the - * iteration use the 'cur' member. - * - * Iterations using this are only allowed to change the list at the current - * point of iteration. It is fine to delete the current node, but it is *not* - * fine to insert or delete adjacent nodes. - * - * NB: We need a separate type for mutable iterations so that we can store - * the 'next' node of the current node in case it gets deleted or modified. - */ -typedef struct dlist_mutable_iter -{ - dlist_node *cur; /* current element */ - dlist_node *next; /* next node we'll iterate to */ - dlist_node *end; /* last node we'll iterate to */ -} dlist_mutable_iter; - -/* - * Node of a singly linked list. - * - * Embed this in structs that need to be part of a singly linked list. - */ -typedef struct slist_node slist_node; -struct slist_node -{ - slist_node *next; -}; - -/* - * Head of a singly linked list. - * - * Singly linked lists are not circularly linked, in contrast to doubly linked - * lists; we just set head.next to NULL if empty. This doesn't incur any - * additional branches in the usual manipulations. - */ -typedef struct slist_head -{ - slist_node head; -} slist_head; - -/* - * Singly linked list iterator. - * - * Used as state in slist_foreach(). To get the current element of the - * iteration use the 'cur' member. - * - * It's allowed to modify the list while iterating, with the exception of - * deleting the iterator's current node; deletion of that node requires - * care if the iteration is to be continued afterward. (Doing so and also - * deleting or inserting adjacent list elements might misbehave; also, if - * the user frees the current node's storage, continuing the iteration is - * not safe.) - * - * NB: this wouldn't really need to be an extra struct, we could use an - * slist_node * directly. We prefer a separate type for consistency. - */ -typedef struct slist_iter -{ - slist_node *cur; -} slist_iter; - -/* - * Singly linked list iterator allowing some modifications while iterating. - * - * Used as state in slist_foreach_modify(). To get the current element of the - * iteration use the 'cur' member. - * - * The only list modification allowed while iterating is to remove the current - * node via slist_delete_current() (*not* slist_delete()). Insertion or - * deletion of nodes adjacent to the current node would misbehave. - */ -typedef struct slist_mutable_iter -{ - slist_node *cur; /* current element */ - slist_node *next; /* next node we'll iterate to */ - slist_node *prev; /* prev node, for deletions */ -} slist_mutable_iter; - - -/* Static initializers */ -#define DLIST_STATIC_INIT(name) {{&(name).head, &(name).head}} -#define SLIST_STATIC_INIT(name) {{NULL}} - - -/* Prototypes for functions too big to be inline */ - -/* Caution: this is O(n); consider using slist_delete_current() instead */ -extern void slist_delete(slist_head *head, slist_node *node); - -#ifdef ILIST_DEBUG -extern void dlist_check(dlist_head *head); -extern void slist_check(slist_head *head); -#else -/* - * These seemingly useless casts to void are here to keep the compiler quiet - * about the argument being unused in many functions in a non-debug compile, - * in which functions the only point of passing the list head pointer is to be - * able to run these checks. - */ -#define dlist_check(head) ((void) (head)) -#define slist_check(head) ((void) (head)) -#endif /* ILIST_DEBUG */ - -/* doubly linked list implementation */ - -/* - * Initialize a doubly linked list. - * Previous state will be thrown away without any cleanup. - */ -static inline void -dlist_init(dlist_head *head) -{ - head->head.next = head->head.prev = &head->head; -} - -/* - * Is the list empty? - * - * An empty list has either its first 'next' pointer set to NULL, or to itself. - */ -static inline bool -dlist_is_empty(dlist_head *head) -{ - dlist_check(head); - - return head->head.next == NULL || head->head.next == &(head->head); -} - -/* - * Insert a node at the beginning of the list. - */ -static inline void -dlist_push_head(dlist_head *head, dlist_node *node) -{ - if (head->head.next == NULL) /* convert NULL header to circular */ - dlist_init(head); - - node->next = head->head.next; - node->prev = &head->head; - node->next->prev = node; - head->head.next = node; - - dlist_check(head); -} - -/* - * Insert a node at the end of the list. - */ -static inline void -dlist_push_tail(dlist_head *head, dlist_node *node) -{ - if (head->head.next == NULL) /* convert NULL header to circular */ - dlist_init(head); - - node->next = &head->head; - node->prev = head->head.prev; - node->prev->next = node; - head->head.prev = node; - - dlist_check(head); -} - -/* - * Insert a node after another *in the same list* - */ -static inline void -dlist_insert_after(dlist_node *after, dlist_node *node) -{ - node->prev = after; - node->next = after->next; - after->next = node; - node->next->prev = node; -} - -/* - * Insert a node before another *in the same list* - */ -static inline void -dlist_insert_before(dlist_node *before, dlist_node *node) -{ - node->prev = before->prev; - node->next = before; - before->prev = node; - node->prev->next = node; -} - -/* - * Delete 'node' from its list (it must be in one). - */ -static inline void -dlist_delete(dlist_node *node) -{ - node->prev->next = node->next; - node->next->prev = node->prev; -} - -/* - * Remove and return the first node from a list (there must be one). - */ -static inline dlist_node * -dlist_pop_head_node(dlist_head *head) -{ - dlist_node *node; - - Assert(!dlist_is_empty(head)); - node = head->head.next; - dlist_delete(node); - return node; -} - -/* - * Move element from its current position in the list to the head position in - * the same list. - * - * Undefined behaviour if 'node' is not already part of the list. - */ -static inline void -dlist_move_head(dlist_head *head, dlist_node *node) -{ - /* fast path if it's already at the head */ - if (head->head.next == node) - return; - - dlist_delete(node); - dlist_push_head(head, node); - - dlist_check(head); -} - -/* - * Move element from its current position in the list to the tail position in - * the same list. - * - * Undefined behaviour if 'node' is not already part of the list. - */ -static inline void -dlist_move_tail(dlist_head *head, dlist_node *node) -{ - /* fast path if it's already at the tail */ - if (head->head.prev == node) - return; - - dlist_delete(node); - dlist_push_tail(head, node); - - dlist_check(head); -} - -/* - * Check whether 'node' has a following node. - * Caution: unreliable if 'node' is not in the list. - */ -static inline bool -dlist_has_next(dlist_head *head, dlist_node *node) -{ - return node->next != &head->head; -} - -/* - * Check whether 'node' has a preceding node. - * Caution: unreliable if 'node' is not in the list. - */ -static inline bool -dlist_has_prev(dlist_head *head, dlist_node *node) -{ - return node->prev != &head->head; -} - -/* - * Return the next node in the list (there must be one). - */ -static inline dlist_node * -dlist_next_node(dlist_head *head, dlist_node *node) -{ - Assert(dlist_has_next(head, node)); - return node->next; -} - -/* - * Return previous node in the list (there must be one). - */ -static inline dlist_node * -dlist_prev_node(dlist_head *head, dlist_node *node) -{ - Assert(dlist_has_prev(head, node)); - return node->prev; -} - -/* internal support function to get address of head element's struct */ -static inline void * -dlist_head_element_off(dlist_head *head, size_t off) -{ - Assert(!dlist_is_empty(head)); - return (char *) head->head.next - off; -} - -/* - * Return the first node in the list (there must be one). - */ -static inline dlist_node * -dlist_head_node(dlist_head *head) -{ - return (dlist_node *) dlist_head_element_off(head, 0); -} - -/* internal support function to get address of tail element's struct */ -static inline void * -dlist_tail_element_off(dlist_head *head, size_t off) -{ - Assert(!dlist_is_empty(head)); - return (char *) head->head.prev - off; -} - -/* - * Return the last node in the list (there must be one). - */ -static inline dlist_node * -dlist_tail_node(dlist_head *head) -{ - return (dlist_node *) dlist_tail_element_off(head, 0); -} - -/* - * Return the containing struct of 'type' where 'membername' is the dlist_node - * pointed at by 'ptr'. - * - * This is used to convert a dlist_node * back to its containing struct. - */ -#define dlist_container(type, membername, ptr) \ - (AssertVariableIsOfTypeMacro(ptr, dlist_node *), \ - AssertVariableIsOfTypeMacro(((type *) NULL)->membername, dlist_node), \ - ((type *) ((char *) (ptr) - offsetof(type, membername)))) - -/* - * Return the address of the first element in the list. - * - * The list must not be empty. - */ -#define dlist_head_element(type, membername, lhead) \ - (AssertVariableIsOfTypeMacro(((type *) NULL)->membername, dlist_node), \ - (type *) dlist_head_element_off(lhead, offsetof(type, membername))) - -/* - * Return the address of the last element in the list. - * - * The list must not be empty. - */ -#define dlist_tail_element(type, membername, lhead) \ - (AssertVariableIsOfTypeMacro(((type *) NULL)->membername, dlist_node), \ - ((type *) dlist_tail_element_off(lhead, offsetof(type, membername)))) - -/* - * Iterate through the list pointed at by 'lhead' storing the state in 'iter'. - * - * Access the current element with iter.cur. - * - * It is *not* allowed to manipulate the list during iteration. - */ -#define dlist_foreach(iter, lhead) \ - for (AssertVariableIsOfTypeMacro(iter, dlist_iter), \ - AssertVariableIsOfTypeMacro(lhead, dlist_head *), \ - (iter).end = &(lhead)->head, \ - (iter).cur = (iter).end->next ? (iter).end->next : (iter).end; \ - (iter).cur != (iter).end; \ - (iter).cur = (iter).cur->next) - -/* - * Iterate through the list pointed at by 'lhead' storing the state in 'iter'. - * - * Access the current element with iter.cur. - * - * Iterations using this are only allowed to change the list at the current - * point of iteration. It is fine to delete the current node, but it is *not* - * fine to insert or delete adjacent nodes. - */ -#define dlist_foreach_modify(iter, lhead) \ - for (AssertVariableIsOfTypeMacro(iter, dlist_mutable_iter), \ - AssertVariableIsOfTypeMacro(lhead, dlist_head *), \ - (iter).end = &(lhead)->head, \ - (iter).cur = (iter).end->next ? (iter).end->next : (iter).end, \ - (iter).next = (iter).cur->next; \ - (iter).cur != (iter).end; \ - (iter).cur = (iter).next, (iter).next = (iter).cur->next) - -/* - * Iterate through the list in reverse order. - * - * It is *not* allowed to manipulate the list during iteration. - */ -#define dlist_reverse_foreach(iter, lhead) \ - for (AssertVariableIsOfTypeMacro(iter, dlist_iter), \ - AssertVariableIsOfTypeMacro(lhead, dlist_head *), \ - (iter).end = &(lhead)->head, \ - (iter).cur = (iter).end->prev ? (iter).end->prev : (iter).end; \ - (iter).cur != (iter).end; \ - (iter).cur = (iter).cur->prev) - - -/* singly linked list implementation */ - -/* - * Initialize a singly linked list. - * Previous state will be thrown away without any cleanup. - */ -static inline void -slist_init(slist_head *head) -{ - head->head.next = NULL; -} - -/* - * Is the list empty? - */ -static inline bool -slist_is_empty(slist_head *head) -{ - slist_check(head); - - return head->head.next == NULL; -} - -/* - * Insert a node at the beginning of the list. - */ -static inline void -slist_push_head(slist_head *head, slist_node *node) -{ - node->next = head->head.next; - head->head.next = node; - - slist_check(head); -} - -/* - * Insert a node after another *in the same list* - */ -static inline void -slist_insert_after(slist_node *after, slist_node *node) -{ - node->next = after->next; - after->next = node; -} - -/* - * Remove and return the first node from a list (there must be one). - */ -static inline slist_node * -slist_pop_head_node(slist_head *head) -{ - slist_node *node; - - Assert(!slist_is_empty(head)); - node = head->head.next; - head->head.next = node->next; - slist_check(head); - return node; -} - -/* - * Check whether 'node' has a following node. - */ -static inline bool -slist_has_next(slist_head *head, slist_node *node) -{ - slist_check(head); - - return node->next != NULL; -} - -/* - * Return the next node in the list (there must be one). - */ -static inline slist_node * -slist_next_node(slist_head *head, slist_node *node) -{ - Assert(slist_has_next(head, node)); - return node->next; -} - -/* internal support function to get address of head element's struct */ -static inline void * -slist_head_element_off(slist_head *head, size_t off) -{ - Assert(!slist_is_empty(head)); - return (char *) head->head.next - off; -} - -/* - * Return the first node in the list (there must be one). - */ -static inline slist_node * -slist_head_node(slist_head *head) -{ - return (slist_node *) slist_head_element_off(head, 0); -} - -/* - * Delete the list element the iterator currently points to. - * - * Caution: this modifies iter->cur, so don't use that again in the current - * loop iteration. - */ -static inline void -slist_delete_current(slist_mutable_iter *iter) -{ - /* - * Update previous element's forward link. If the iteration is at the - * first list element, iter->prev will point to the list header's "head" - * field, so we don't need a special case for that. - */ - iter->prev->next = iter->next; - - /* - * Reset cur to prev, so that prev will continue to point to the prior - * valid list element after slist_foreach_modify() advances to the next. - */ - iter->cur = iter->prev; -} - -/* - * Return the containing struct of 'type' where 'membername' is the slist_node - * pointed at by 'ptr'. - * - * This is used to convert a slist_node * back to its containing struct. - */ -#define slist_container(type, membername, ptr) \ - (AssertVariableIsOfTypeMacro(ptr, slist_node *), \ - AssertVariableIsOfTypeMacro(((type *) NULL)->membername, slist_node), \ - ((type *) ((char *) (ptr) - offsetof(type, membername)))) - -/* - * Return the address of the first element in the list. - * - * The list must not be empty. - */ -#define slist_head_element(type, membername, lhead) \ - (AssertVariableIsOfTypeMacro(((type *) NULL)->membername, slist_node), \ - (type *) slist_head_element_off(lhead, offsetof(type, membername))) - -/* - * Iterate through the list pointed at by 'lhead' storing the state in 'iter'. - * - * Access the current element with iter.cur. - * - * It's allowed to modify the list while iterating, with the exception of - * deleting the iterator's current node; deletion of that node requires - * care if the iteration is to be continued afterward. (Doing so and also - * deleting or inserting adjacent list elements might misbehave; also, if - * the user frees the current node's storage, continuing the iteration is - * not safe.) - */ -#define slist_foreach(iter, lhead) \ - for (AssertVariableIsOfTypeMacro(iter, slist_iter), \ - AssertVariableIsOfTypeMacro(lhead, slist_head *), \ - (iter).cur = (lhead)->head.next; \ - (iter).cur != NULL; \ - (iter).cur = (iter).cur->next) - -/* - * Iterate through the list pointed at by 'lhead' storing the state in 'iter'. - * - * Access the current element with iter.cur. - * - * The only list modification allowed while iterating is to remove the current - * node via slist_delete_current() (*not* slist_delete()). Insertion or - * deletion of nodes adjacent to the current node would misbehave. - */ -#define slist_foreach_modify(iter, lhead) \ - for (AssertVariableIsOfTypeMacro(iter, slist_mutable_iter), \ - AssertVariableIsOfTypeMacro(lhead, slist_head *), \ - (iter).prev = &(lhead)->head, \ - (iter).cur = (iter).prev->next, \ - (iter).next = (iter).cur ? (iter).cur->next : NULL; \ - (iter).cur != NULL; \ - (iter).prev = (iter).cur, \ - (iter).cur = (iter).next, \ - (iter).next = (iter).next ? (iter).next->next : NULL) - -#endif /* ILIST_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/pairingheap.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/pairingheap.h deleted file mode 100644 index 26b1cad59..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/pairingheap.h +++ /dev/null @@ -1,102 +0,0 @@ -/* - * pairingheap.h - * - * A Pairing Heap implementation - * - * Portions Copyright (c) 2012-2022, PostgreSQL Global Development Group - * - * src/include/lib/pairingheap.h - */ - -#ifndef PAIRINGHEAP_H -#define PAIRINGHEAP_H - -#include "lib/stringinfo.h" - -/* Enable if you need the pairingheap_dump() debug function */ -/* #define PAIRINGHEAP_DEBUG */ - -/* - * This represents an element stored in the heap. Embed this in a larger - * struct containing the actual data you're storing. - * - * A node can have multiple children, which form a double-linked list. - * first_child points to the node's first child, and the subsequent children - * can be found by following the next_sibling pointers. The last child has - * next_sibling == NULL. The prev_or_parent pointer points to the node's - * previous sibling, or if the node is its parent's first child, to the - * parent. - */ -typedef struct pairingheap_node -{ - struct pairingheap_node *first_child; - struct pairingheap_node *next_sibling; - struct pairingheap_node *prev_or_parent; -} pairingheap_node; - -/* - * Return the containing struct of 'type' where 'membername' is the - * pairingheap_node pointed at by 'ptr'. - * - * This is used to convert a pairingheap_node * back to its containing struct. - */ -#define pairingheap_container(type, membername, ptr) \ - (AssertVariableIsOfTypeMacro(ptr, pairingheap_node *), \ - AssertVariableIsOfTypeMacro(((type *) NULL)->membername, pairingheap_node), \ - ((type *) ((char *) (ptr) - offsetof(type, membername)))) - -/* - * Like pairingheap_container, but used when the pointer is 'const ptr' - */ -#define pairingheap_const_container(type, membername, ptr) \ - (AssertVariableIsOfTypeMacro(ptr, const pairingheap_node *), \ - AssertVariableIsOfTypeMacro(((type *) NULL)->membername, pairingheap_node), \ - ((const type *) ((const char *) (ptr) - offsetof(type, membername)))) - -/* - * For a max-heap, the comparator must return <0 iff a < b, 0 iff a == b, - * and >0 iff a > b. For a min-heap, the conditions are reversed. - */ -typedef int (*pairingheap_comparator) (const pairingheap_node *a, - const pairingheap_node *b, - void *arg); - -/* - * A pairing heap. - * - * You can use pairingheap_allocate() to create a new palloc'd heap, or embed - * this in a larger struct, set ph_compare and ph_arg directly and initialize - * ph_root to NULL. - */ -typedef struct pairingheap -{ - pairingheap_comparator ph_compare; /* comparison function */ - void *ph_arg; /* opaque argument to ph_compare */ - pairingheap_node *ph_root; /* current root of the heap */ -} pairingheap; - -extern pairingheap *pairingheap_allocate(pairingheap_comparator compare, - void *arg); -extern void pairingheap_free(pairingheap *heap); -extern void pairingheap_add(pairingheap *heap, pairingheap_node *node); -extern pairingheap_node *pairingheap_first(pairingheap *heap); -extern pairingheap_node *pairingheap_remove_first(pairingheap *heap); -extern void pairingheap_remove(pairingheap *heap, pairingheap_node *node); - -#ifdef PAIRINGHEAP_DEBUG -extern char *pairingheap_dump(pairingheap *heap, - void (*dumpfunc) (pairingheap_node *node, StringInfo buf, void *opaque), - void *opaque); -#endif - -/* Resets the heap to be empty. */ -#define pairingheap_reset(h) ((h)->ph_root = NULL) - -/* Is the heap empty? */ -#define pairingheap_is_empty(h) ((h)->ph_root == NULL) - -/* Is there exactly one node in the heap? */ -#define pairingheap_is_singular(h) \ - ((h)->ph_root && (h)->ph_root->first_child == NULL) - -#endif /* PAIRINGHEAP_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/simplehash.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/simplehash.h deleted file mode 100644 index d03a0018d..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/simplehash.h +++ /dev/null @@ -1,1184 +0,0 @@ -/* - * simplehash.h - * - * When included this file generates a "templated" (by way of macros) - * open-addressing hash table implementation specialized to user-defined - * types. - * - * It's probably not worthwhile to generate such a specialized implementation - * for hash tables that aren't performance or space sensitive. - * - * Compared to dynahash, simplehash has the following benefits: - * - * - Due to the "templated" code generation has known structure sizes and no - * indirect function calls (which show up substantially in dynahash - * profiles). These features considerably increase speed for small - * entries. - * - Open addressing has better CPU cache behavior than dynahash's chained - * hashtables. - * - The generated interface is type-safe and easier to use than dynahash, - * though at the cost of more complex setup. - * - Allocates memory in a MemoryContext or another allocator with a - * malloc/free style interface (which isn't easily usable in a shared - * memory context) - * - Does not require the overhead of a separate memory context. - * - * Usage notes: - * - * To generate a hash-table and associated functions for a use case several - * macros have to be #define'ed before this file is included. Including - * the file #undef's all those, so a new hash table can be generated - * afterwards. - * The relevant parameters are: - * - SH_PREFIX - prefix for all symbol names generated. A prefix of 'foo' - * will result in hash table type 'foo_hash' and functions like - * 'foo_insert'/'foo_lookup' and so forth. - * - SH_ELEMENT_TYPE - type of the contained elements - * - SH_KEY_TYPE - type of the hashtable's key - * - SH_DECLARE - if defined function prototypes and type declarations are - * generated - * - SH_DEFINE - if defined function definitions are generated - * - SH_SCOPE - in which scope (e.g. extern, static inline) do function - * declarations reside - * - SH_RAW_ALLOCATOR - if defined, memory contexts are not used; instead, - * use this to allocate bytes. The allocator must zero the returned space. - * - SH_USE_NONDEFAULT_ALLOCATOR - if defined no element allocator functions - * are defined, so you can supply your own - * The following parameters are only relevant when SH_DEFINE is defined: - * - SH_KEY - name of the element in SH_ELEMENT_TYPE containing the hash key - * - SH_EQUAL(table, a, b) - compare two table keys - * - SH_HASH_KEY(table, key) - generate hash for the key - * - SH_STORE_HASH - if defined the hash is stored in the elements - * - SH_GET_HASH(tb, a) - return the field to store the hash in - * - * The element type is required to contain a "status" member that can store - * the range of values defined in the SH_STATUS enum. - * - * While SH_STORE_HASH (and subsequently SH_GET_HASH) are optional, because - * the hash table implementation needs to compare hashes to move elements - * (particularly when growing the hash), it's preferable, if possible, to - * store the element's hash in the element's data type. If the hash is so - * stored, the hash table will also compare hashes before calling SH_EQUAL - * when comparing two keys. - * - * For convenience the hash table create functions accept a void pointer - * that will be stored in the hash table type's member private_data. This - * allows callbacks to reference caller provided data. - * - * For examples of usage look at tidbitmap.c (file local definition) and - * execnodes.h/execGrouping.c (exposed declaration, file local - * implementation). - * - * Hash table design: - * - * The hash table design chosen is a variant of linear open-addressing. The - * reason for doing so is that linear addressing is CPU cache & pipeline - * friendly. The biggest disadvantage of simple linear addressing schemes - * are highly variable lookup times due to clustering, and deletions - * leaving a lot of tombstones around. To address these issues a variant - * of "robin hood" hashing is employed. Robin hood hashing optimizes - * chaining lengths by moving elements close to their optimal bucket - * ("rich" elements), out of the way if a to-be-inserted element is further - * away from its optimal position (i.e. it's "poor"). While that can make - * insertions slower, the average lookup performance is a lot better, and - * higher fill factors can be used in a still performant manner. To avoid - * tombstones - which normally solve the issue that a deleted node's - * presence is relevant to determine whether a lookup needs to continue - * looking or is done - buckets following a deleted element are shifted - * backwards, unless they're empty or already at their optimal position. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/lib/simplehash.h - */ - -#include "port/pg_bitutils.h" - -/* helpers */ -#define SH_MAKE_PREFIX(a) CppConcat(a,_) -#define SH_MAKE_NAME(name) SH_MAKE_NAME_(SH_MAKE_PREFIX(SH_PREFIX),name) -#define SH_MAKE_NAME_(a,b) CppConcat(a,b) - -/* name macros for: */ - -/* type declarations */ -#define SH_TYPE SH_MAKE_NAME(hash) -#define SH_STATUS SH_MAKE_NAME(status) -#define SH_STATUS_EMPTY SH_MAKE_NAME(SH_EMPTY) -#define SH_STATUS_IN_USE SH_MAKE_NAME(SH_IN_USE) -#define SH_ITERATOR SH_MAKE_NAME(iterator) - -/* function declarations */ -#define SH_CREATE SH_MAKE_NAME(create) -#define SH_DESTROY SH_MAKE_NAME(destroy) -#define SH_RESET SH_MAKE_NAME(reset) -#define SH_INSERT SH_MAKE_NAME(insert) -#define SH_INSERT_HASH SH_MAKE_NAME(insert_hash) -#define SH_DELETE_ITEM SH_MAKE_NAME(delete_item) -#define SH_DELETE SH_MAKE_NAME(delete) -#define SH_LOOKUP SH_MAKE_NAME(lookup) -#define SH_LOOKUP_HASH SH_MAKE_NAME(lookup_hash) -#define SH_GROW SH_MAKE_NAME(grow) -#define SH_START_ITERATE SH_MAKE_NAME(start_iterate) -#define SH_START_ITERATE_AT SH_MAKE_NAME(start_iterate_at) -#define SH_ITERATE SH_MAKE_NAME(iterate) -#define SH_ALLOCATE SH_MAKE_NAME(allocate) -#define SH_FREE SH_MAKE_NAME(free) -#define SH_STAT SH_MAKE_NAME(stat) - -/* internal helper functions (no externally visible prototypes) */ -#define SH_COMPUTE_PARAMETERS SH_MAKE_NAME(compute_parameters) -#define SH_NEXT SH_MAKE_NAME(next) -#define SH_PREV SH_MAKE_NAME(prev) -#define SH_DISTANCE_FROM_OPTIMAL SH_MAKE_NAME(distance) -#define SH_INITIAL_BUCKET SH_MAKE_NAME(initial_bucket) -#define SH_ENTRY_HASH SH_MAKE_NAME(entry_hash) -#define SH_INSERT_HASH_INTERNAL SH_MAKE_NAME(insert_hash_internal) -#define SH_LOOKUP_HASH_INTERNAL SH_MAKE_NAME(lookup_hash_internal) - -/* generate forward declarations necessary to use the hash table */ -#ifdef SH_DECLARE - -/* type definitions */ -typedef struct SH_TYPE -{ - /* - * Size of data / bucket array, 64 bits to handle UINT32_MAX sized hash - * tables. Note that the maximum number of elements is lower - * (SH_MAX_FILLFACTOR) - */ - uint64 size; - - /* how many elements have valid contents */ - uint32 members; - - /* mask for bucket and size calculations, based on size */ - uint32 sizemask; - - /* boundary after which to grow hashtable */ - uint32 grow_threshold; - - /* hash buckets */ - SH_ELEMENT_TYPE *data; - -#ifndef SH_RAW_ALLOCATOR - /* memory context to use for allocations */ - MemoryContext ctx; -#endif - - /* user defined data, useful for callbacks */ - void *private_data; -} SH_TYPE; - -typedef enum SH_STATUS -{ - SH_STATUS_EMPTY = 0x00, - SH_STATUS_IN_USE = 0x01 -} SH_STATUS; - -typedef struct SH_ITERATOR -{ - uint32 cur; /* current element */ - uint32 end; - bool done; /* iterator exhausted? */ -} SH_ITERATOR; - -/* externally visible function prototypes */ -#ifdef SH_RAW_ALLOCATOR -/* _hash _create(uint32 nelements, void *private_data) */ -SH_SCOPE SH_TYPE *SH_CREATE(uint32 nelements, void *private_data); -#else -/* - * _hash _create(MemoryContext ctx, uint32 nelements, - * void *private_data) - */ -SH_SCOPE SH_TYPE *SH_CREATE(MemoryContext ctx, uint32 nelements, - void *private_data); -#endif - -/* void _destroy(_hash *tb) */ -SH_SCOPE void SH_DESTROY(SH_TYPE * tb); - -/* void _reset(_hash *tb) */ -SH_SCOPE void SH_RESET(SH_TYPE * tb); - -/* void _grow(_hash *tb, uint64 newsize) */ -SH_SCOPE void SH_GROW(SH_TYPE * tb, uint64 newsize); - -/* *_insert(_hash *tb, key, bool *found) */ -SH_SCOPE SH_ELEMENT_TYPE *SH_INSERT(SH_TYPE * tb, SH_KEY_TYPE key, bool *found); - -/* - * *_insert_hash(_hash *tb, key, uint32 hash, - * bool *found) - */ -SH_SCOPE SH_ELEMENT_TYPE *SH_INSERT_HASH(SH_TYPE * tb, SH_KEY_TYPE key, - uint32 hash, bool *found); - -/* *_lookup(_hash *tb, key) */ -SH_SCOPE SH_ELEMENT_TYPE *SH_LOOKUP(SH_TYPE * tb, SH_KEY_TYPE key); - -/* *_lookup_hash(_hash *tb, key, uint32 hash) */ -SH_SCOPE SH_ELEMENT_TYPE *SH_LOOKUP_HASH(SH_TYPE * tb, SH_KEY_TYPE key, - uint32 hash); - -/* void _delete_item(_hash *tb, *entry) */ -SH_SCOPE void SH_DELETE_ITEM(SH_TYPE * tb, SH_ELEMENT_TYPE * entry); - -/* bool _delete(_hash *tb, key) */ -SH_SCOPE bool SH_DELETE(SH_TYPE * tb, SH_KEY_TYPE key); - -/* void _start_iterate(_hash *tb, _iterator *iter) */ -SH_SCOPE void SH_START_ITERATE(SH_TYPE * tb, SH_ITERATOR * iter); - -/* - * void _start_iterate_at(_hash *tb, _iterator *iter, - * uint32 at) - */ -SH_SCOPE void SH_START_ITERATE_AT(SH_TYPE * tb, SH_ITERATOR * iter, uint32 at); - -/* *_iterate(_hash *tb, _iterator *iter) */ -SH_SCOPE SH_ELEMENT_TYPE *SH_ITERATE(SH_TYPE * tb, SH_ITERATOR * iter); - -/* void _stat(_hash *tb */ -SH_SCOPE void SH_STAT(SH_TYPE * tb); - -#endif /* SH_DECLARE */ - - -/* generate implementation of the hash table */ -#ifdef SH_DEFINE - -#ifndef SH_RAW_ALLOCATOR -#include "utils/memutils.h" -#endif - -/* max data array size,we allow up to PG_UINT32_MAX buckets, including 0 */ -#define SH_MAX_SIZE (((uint64) PG_UINT32_MAX) + 1) - -/* normal fillfactor, unless already close to maximum */ -#ifndef SH_FILLFACTOR -#define SH_FILLFACTOR (0.9) -#endif -/* increase fillfactor if we otherwise would error out */ -#define SH_MAX_FILLFACTOR (0.98) -/* grow if actual and optimal location bigger than */ -#ifndef SH_GROW_MAX_DIB -#define SH_GROW_MAX_DIB 25 -#endif -/* grow if more than elements to move when inserting */ -#ifndef SH_GROW_MAX_MOVE -#define SH_GROW_MAX_MOVE 150 -#endif -#ifndef SH_GROW_MIN_FILLFACTOR -/* but do not grow due to SH_GROW_MAX_* if below */ -#define SH_GROW_MIN_FILLFACTOR 0.1 -#endif - -#ifdef SH_STORE_HASH -#define SH_COMPARE_KEYS(tb, ahash, akey, b) (ahash == SH_GET_HASH(tb, b) && SH_EQUAL(tb, b->SH_KEY, akey)) -#else -#define SH_COMPARE_KEYS(tb, ahash, akey, b) (SH_EQUAL(tb, b->SH_KEY, akey)) -#endif - -/* - * Wrap the following definitions in include guards, to avoid multiple - * definition errors if this header is included more than once. The rest of - * the file deliberately has no include guards, because it can be included - * with different parameters to define functions and types with non-colliding - * names. - */ -#ifndef SIMPLEHASH_H -#define SIMPLEHASH_H - -#ifdef FRONTEND -#define sh_error(...) pg_fatal(__VA_ARGS__) -#define sh_log(...) pg_log_info(__VA_ARGS__) -#else -#define sh_error(...) elog(ERROR, __VA_ARGS__) -#define sh_log(...) elog(LOG, __VA_ARGS__) -#endif - -#endif - -/* - * Compute sizing parameters for hashtable. Called when creating and growing - * the hashtable. - */ -static inline void -SH_COMPUTE_PARAMETERS(SH_TYPE * tb, uint64 newsize) -{ - uint64 size; - - /* supporting zero sized hashes would complicate matters */ - size = Max(newsize, 2); - - /* round up size to the next power of 2, that's how bucketing works */ - size = pg_nextpower2_64(size); - Assert(size <= SH_MAX_SIZE); - - /* - * Verify that allocation of ->data is possible on this platform, without - * overflowing Size. - */ - if (unlikely((((uint64) sizeof(SH_ELEMENT_TYPE)) * size) >= SIZE_MAX / 2)) - sh_error("hash table too large"); - - /* now set size */ - tb->size = size; - tb->sizemask = (uint32) (size - 1); - - /* - * Compute the next threshold at which we need to grow the hash table - * again. - */ - if (tb->size == SH_MAX_SIZE) - tb->grow_threshold = ((double) tb->size) * SH_MAX_FILLFACTOR; - else - tb->grow_threshold = ((double) tb->size) * SH_FILLFACTOR; -} - -/* return the optimal bucket for the hash */ -static inline uint32 -SH_INITIAL_BUCKET(SH_TYPE * tb, uint32 hash) -{ - return hash & tb->sizemask; -} - -/* return next bucket after the current, handling wraparound */ -static inline uint32 -SH_NEXT(SH_TYPE * tb, uint32 curelem, uint32 startelem) -{ - curelem = (curelem + 1) & tb->sizemask; - - Assert(curelem != startelem); - - return curelem; -} - -/* return bucket before the current, handling wraparound */ -static inline uint32 -SH_PREV(SH_TYPE * tb, uint32 curelem, uint32 startelem) -{ - curelem = (curelem - 1) & tb->sizemask; - - Assert(curelem != startelem); - - return curelem; -} - -/* return distance between bucket and its optimal position */ -static inline uint32 -SH_DISTANCE_FROM_OPTIMAL(SH_TYPE * tb, uint32 optimal, uint32 bucket) -{ - if (optimal <= bucket) - return bucket - optimal; - else - return (tb->size + bucket) - optimal; -} - -static inline uint32 -SH_ENTRY_HASH(SH_TYPE * tb, SH_ELEMENT_TYPE * entry) -{ -#ifdef SH_STORE_HASH - return SH_GET_HASH(tb, entry); -#else - return SH_HASH_KEY(tb, entry->SH_KEY); -#endif -} - -/* default memory allocator function */ -static inline void *SH_ALLOCATE(SH_TYPE * type, Size size); -static inline void SH_FREE(SH_TYPE * type, void *pointer); - -#ifndef SH_USE_NONDEFAULT_ALLOCATOR - -/* default memory allocator function */ -static inline void * -SH_ALLOCATE(SH_TYPE * type, Size size) -{ -#ifdef SH_RAW_ALLOCATOR - return SH_RAW_ALLOCATOR(size); -#else - return MemoryContextAllocExtended(type->ctx, size, - MCXT_ALLOC_HUGE | MCXT_ALLOC_ZERO); -#endif -} - -/* default memory free function */ -static inline void -SH_FREE(SH_TYPE * type, void *pointer) -{ - pfree(pointer); -} - -#endif - -/* - * Create a hash table with enough space for `nelements` distinct members. - * Memory for the hash table is allocated from the passed-in context. If - * desired, the array of elements can be allocated using a passed-in allocator; - * this could be useful in order to place the array of elements in a shared - * memory, or in a context that will outlive the rest of the hash table. - * Memory other than for the array of elements will still be allocated from - * the passed-in context. - */ -#ifdef SH_RAW_ALLOCATOR -SH_SCOPE SH_TYPE * -SH_CREATE(uint32 nelements, void *private_data) -#else -SH_SCOPE SH_TYPE * -SH_CREATE(MemoryContext ctx, uint32 nelements, void *private_data) -#endif -{ - SH_TYPE *tb; - uint64 size; - -#ifdef SH_RAW_ALLOCATOR - tb = (SH_TYPE *) SH_RAW_ALLOCATOR(sizeof(SH_TYPE)); -#else - tb = (SH_TYPE *) MemoryContextAllocZero(ctx, sizeof(SH_TYPE)); - tb->ctx = ctx; -#endif - tb->private_data = private_data; - - /* increase nelements by fillfactor, want to store nelements elements */ - size = Min((double) SH_MAX_SIZE, ((double) nelements) / SH_FILLFACTOR); - - SH_COMPUTE_PARAMETERS(tb, size); - - tb->data = (SH_ELEMENT_TYPE *) SH_ALLOCATE(tb, sizeof(SH_ELEMENT_TYPE) * tb->size); - - return tb; -} - -/* destroy a previously created hash table */ -SH_SCOPE void -SH_DESTROY(SH_TYPE * tb) -{ - SH_FREE(tb, tb->data); - pfree(tb); -} - -/* reset the contents of a previously created hash table */ -SH_SCOPE void -SH_RESET(SH_TYPE * tb) -{ - memset(tb->data, 0, sizeof(SH_ELEMENT_TYPE) * tb->size); - tb->members = 0; -} - -/* - * Grow a hash table to at least `newsize` buckets. - * - * Usually this will automatically be called by insertions/deletions, when - * necessary. But resizing to the exact input size can be advantageous - * performance-wise, when known at some point. - */ -SH_SCOPE void -SH_GROW(SH_TYPE * tb, uint64 newsize) -{ - uint64 oldsize = tb->size; - SH_ELEMENT_TYPE *olddata = tb->data; - SH_ELEMENT_TYPE *newdata; - uint32 i; - uint32 startelem = 0; - uint32 copyelem; - - Assert(oldsize == pg_nextpower2_64(oldsize)); - Assert(oldsize != SH_MAX_SIZE); - Assert(oldsize < newsize); - - /* compute parameters for new table */ - SH_COMPUTE_PARAMETERS(tb, newsize); - - tb->data = (SH_ELEMENT_TYPE *) SH_ALLOCATE(tb, sizeof(SH_ELEMENT_TYPE) * tb->size); - - newdata = tb->data; - - /* - * Copy entries from the old data to newdata. We theoretically could use - * SH_INSERT here, to avoid code duplication, but that's more general than - * we need. We neither want tb->members increased, nor do we need to do - * deal with deleted elements, nor do we need to compare keys. So a - * special-cased implementation is lot faster. As resizing can be time - * consuming and frequent, that's worthwhile to optimize. - * - * To be able to simply move entries over, we have to start not at the - * first bucket (i.e olddata[0]), but find the first bucket that's either - * empty, or is occupied by an entry at its optimal position. Such a - * bucket has to exist in any table with a load factor under 1, as not all - * buckets are occupied, i.e. there always has to be an empty bucket. By - * starting at such a bucket we can move the entries to the larger table, - * without having to deal with conflicts. - */ - - /* search for the first element in the hash that's not wrapped around */ - for (i = 0; i < oldsize; i++) - { - SH_ELEMENT_TYPE *oldentry = &olddata[i]; - uint32 hash; - uint32 optimal; - - if (oldentry->status != SH_STATUS_IN_USE) - { - startelem = i; - break; - } - - hash = SH_ENTRY_HASH(tb, oldentry); - optimal = SH_INITIAL_BUCKET(tb, hash); - - if (optimal == i) - { - startelem = i; - break; - } - } - - /* and copy all elements in the old table */ - copyelem = startelem; - for (i = 0; i < oldsize; i++) - { - SH_ELEMENT_TYPE *oldentry = &olddata[copyelem]; - - if (oldentry->status == SH_STATUS_IN_USE) - { - uint32 hash; - uint32 startelem; - uint32 curelem; - SH_ELEMENT_TYPE *newentry; - - hash = SH_ENTRY_HASH(tb, oldentry); - startelem = SH_INITIAL_BUCKET(tb, hash); - curelem = startelem; - - /* find empty element to put data into */ - while (true) - { - newentry = &newdata[curelem]; - - if (newentry->status == SH_STATUS_EMPTY) - { - break; - } - - curelem = SH_NEXT(tb, curelem, startelem); - } - - /* copy entry to new slot */ - memcpy(newentry, oldentry, sizeof(SH_ELEMENT_TYPE)); - } - - /* can't use SH_NEXT here, would use new size */ - copyelem++; - if (copyelem >= oldsize) - { - copyelem = 0; - } - } - - SH_FREE(tb, olddata); -} - -/* - * This is a separate static inline function, so it can be reliably be inlined - * into its wrapper functions even if SH_SCOPE is extern. - */ -static inline SH_ELEMENT_TYPE * -SH_INSERT_HASH_INTERNAL(SH_TYPE * tb, SH_KEY_TYPE key, uint32 hash, bool *found) -{ - uint32 startelem; - uint32 curelem; - SH_ELEMENT_TYPE *data; - uint32 insertdist; - -restart: - insertdist = 0; - - /* - * We do the grow check even if the key is actually present, to avoid - * doing the check inside the loop. This also lets us avoid having to - * re-find our position in the hashtable after resizing. - * - * Note that this also reached when resizing the table due to - * SH_GROW_MAX_DIB / SH_GROW_MAX_MOVE. - */ - if (unlikely(tb->members >= tb->grow_threshold)) - { - if (unlikely(tb->size == SH_MAX_SIZE)) - sh_error("hash table size exceeded"); - - /* - * When optimizing, it can be very useful to print these out. - */ - /* SH_STAT(tb); */ - SH_GROW(tb, tb->size * 2); - /* SH_STAT(tb); */ - } - - /* perform insert, start bucket search at optimal location */ - data = tb->data; - startelem = SH_INITIAL_BUCKET(tb, hash); - curelem = startelem; - while (true) - { - uint32 curdist; - uint32 curhash; - uint32 curoptimal; - SH_ELEMENT_TYPE *entry = &data[curelem]; - - /* any empty bucket can directly be used */ - if (entry->status == SH_STATUS_EMPTY) - { - tb->members++; - entry->SH_KEY = key; -#ifdef SH_STORE_HASH - SH_GET_HASH(tb, entry) = hash; -#endif - entry->status = SH_STATUS_IN_USE; - *found = false; - return entry; - } - - /* - * If the bucket is not empty, we either found a match (in which case - * we're done), or we have to decide whether to skip over or move the - * colliding entry. When the colliding element's distance to its - * optimal position is smaller than the to-be-inserted entry's, we - * shift the colliding entry (and its followers) forward by one. - */ - - if (SH_COMPARE_KEYS(tb, hash, key, entry)) - { - Assert(entry->status == SH_STATUS_IN_USE); - *found = true; - return entry; - } - - curhash = SH_ENTRY_HASH(tb, entry); - curoptimal = SH_INITIAL_BUCKET(tb, curhash); - curdist = SH_DISTANCE_FROM_OPTIMAL(tb, curoptimal, curelem); - - if (insertdist > curdist) - { - SH_ELEMENT_TYPE *lastentry = entry; - uint32 emptyelem = curelem; - uint32 moveelem; - int32 emptydist = 0; - - /* find next empty bucket */ - while (true) - { - SH_ELEMENT_TYPE *emptyentry; - - emptyelem = SH_NEXT(tb, emptyelem, startelem); - emptyentry = &data[emptyelem]; - - if (emptyentry->status == SH_STATUS_EMPTY) - { - lastentry = emptyentry; - break; - } - - /* - * To avoid negative consequences from overly imbalanced - * hashtables, grow the hashtable if collisions would require - * us to move a lot of entries. The most likely cause of such - * imbalance is filling a (currently) small table, from a - * currently big one, in hash-table order. Don't grow if the - * hashtable would be too empty, to prevent quick space - * explosion for some weird edge cases. - */ - if (unlikely(++emptydist > SH_GROW_MAX_MOVE) && - ((double) tb->members / tb->size) >= SH_GROW_MIN_FILLFACTOR) - { - tb->grow_threshold = 0; - goto restart; - } - } - - /* shift forward, starting at last occupied element */ - - /* - * TODO: This could be optimized to be one memcpy in many cases, - * excepting wrapping around at the end of ->data. Hasn't shown up - * in profiles so far though. - */ - moveelem = emptyelem; - while (moveelem != curelem) - { - SH_ELEMENT_TYPE *moveentry; - - moveelem = SH_PREV(tb, moveelem, startelem); - moveentry = &data[moveelem]; - - memcpy(lastentry, moveentry, sizeof(SH_ELEMENT_TYPE)); - lastentry = moveentry; - } - - /* and fill the now empty spot */ - tb->members++; - - entry->SH_KEY = key; -#ifdef SH_STORE_HASH - SH_GET_HASH(tb, entry) = hash; -#endif - entry->status = SH_STATUS_IN_USE; - *found = false; - return entry; - } - - curelem = SH_NEXT(tb, curelem, startelem); - insertdist++; - - /* - * To avoid negative consequences from overly imbalanced hashtables, - * grow the hashtable if collisions lead to large runs. The most - * likely cause of such imbalance is filling a (currently) small - * table, from a currently big one, in hash-table order. Don't grow - * if the hashtable would be too empty, to prevent quick space - * explosion for some weird edge cases. - */ - if (unlikely(insertdist > SH_GROW_MAX_DIB) && - ((double) tb->members / tb->size) >= SH_GROW_MIN_FILLFACTOR) - { - tb->grow_threshold = 0; - goto restart; - } - } -} - -/* - * Insert the key key into the hash-table, set *found to true if the key - * already exists, false otherwise. Returns the hash-table entry in either - * case. - */ -SH_SCOPE SH_ELEMENT_TYPE * -SH_INSERT(SH_TYPE * tb, SH_KEY_TYPE key, bool *found) -{ - uint32 hash = SH_HASH_KEY(tb, key); - - return SH_INSERT_HASH_INTERNAL(tb, key, hash, found); -} - -/* - * Insert the key key into the hash-table using an already-calculated - * hash. Set *found to true if the key already exists, false - * otherwise. Returns the hash-table entry in either case. - */ -SH_SCOPE SH_ELEMENT_TYPE * -SH_INSERT_HASH(SH_TYPE * tb, SH_KEY_TYPE key, uint32 hash, bool *found) -{ - return SH_INSERT_HASH_INTERNAL(tb, key, hash, found); -} - -/* - * This is a separate static inline function, so it can be reliably be inlined - * into its wrapper functions even if SH_SCOPE is extern. - */ -static inline SH_ELEMENT_TYPE * -SH_LOOKUP_HASH_INTERNAL(SH_TYPE * tb, SH_KEY_TYPE key, uint32 hash) -{ - const uint32 startelem = SH_INITIAL_BUCKET(tb, hash); - uint32 curelem = startelem; - - while (true) - { - SH_ELEMENT_TYPE *entry = &tb->data[curelem]; - - if (entry->status == SH_STATUS_EMPTY) - { - return NULL; - } - - Assert(entry->status == SH_STATUS_IN_USE); - - if (SH_COMPARE_KEYS(tb, hash, key, entry)) - return entry; - - /* - * TODO: we could stop search based on distance. If the current - * buckets's distance-from-optimal is smaller than what we've skipped - * already, the entry doesn't exist. Probably only do so if - * SH_STORE_HASH is defined, to avoid re-computing hashes? - */ - - curelem = SH_NEXT(tb, curelem, startelem); - } -} - -/* - * Lookup up entry in hash table. Returns NULL if key not present. - */ -SH_SCOPE SH_ELEMENT_TYPE * -SH_LOOKUP(SH_TYPE * tb, SH_KEY_TYPE key) -{ - uint32 hash = SH_HASH_KEY(tb, key); - - return SH_LOOKUP_HASH_INTERNAL(tb, key, hash); -} - -/* - * Lookup up entry in hash table using an already-calculated hash. - * - * Returns NULL if key not present. - */ -SH_SCOPE SH_ELEMENT_TYPE * -SH_LOOKUP_HASH(SH_TYPE * tb, SH_KEY_TYPE key, uint32 hash) -{ - return SH_LOOKUP_HASH_INTERNAL(tb, key, hash); -} - -/* - * Delete entry from hash table by key. Returns whether to-be-deleted key was - * present. - */ -SH_SCOPE bool -SH_DELETE(SH_TYPE * tb, SH_KEY_TYPE key) -{ - uint32 hash = SH_HASH_KEY(tb, key); - uint32 startelem = SH_INITIAL_BUCKET(tb, hash); - uint32 curelem = startelem; - - while (true) - { - SH_ELEMENT_TYPE *entry = &tb->data[curelem]; - - if (entry->status == SH_STATUS_EMPTY) - return false; - - if (entry->status == SH_STATUS_IN_USE && - SH_COMPARE_KEYS(tb, hash, key, entry)) - { - SH_ELEMENT_TYPE *lastentry = entry; - - tb->members--; - - /* - * Backward shift following elements till either an empty element - * or an element at its optimal position is encountered. - * - * While that sounds expensive, the average chain length is short, - * and deletions would otherwise require tombstones. - */ - while (true) - { - SH_ELEMENT_TYPE *curentry; - uint32 curhash; - uint32 curoptimal; - - curelem = SH_NEXT(tb, curelem, startelem); - curentry = &tb->data[curelem]; - - if (curentry->status != SH_STATUS_IN_USE) - { - lastentry->status = SH_STATUS_EMPTY; - break; - } - - curhash = SH_ENTRY_HASH(tb, curentry); - curoptimal = SH_INITIAL_BUCKET(tb, curhash); - - /* current is at optimal position, done */ - if (curoptimal == curelem) - { - lastentry->status = SH_STATUS_EMPTY; - break; - } - - /* shift */ - memcpy(lastentry, curentry, sizeof(SH_ELEMENT_TYPE)); - - lastentry = curentry; - } - - return true; - } - - /* TODO: return false; if distance too big */ - - curelem = SH_NEXT(tb, curelem, startelem); - } -} - -/* - * Delete entry from hash table by entry pointer - */ -SH_SCOPE void -SH_DELETE_ITEM(SH_TYPE * tb, SH_ELEMENT_TYPE * entry) -{ - SH_ELEMENT_TYPE *lastentry = entry; - uint32 hash = SH_ENTRY_HASH(tb, entry); - uint32 startelem = SH_INITIAL_BUCKET(tb, hash); - uint32 curelem; - - /* Calculate the index of 'entry' */ - curelem = entry - &tb->data[0]; - - tb->members--; - - /* - * Backward shift following elements till either an empty element or an - * element at its optimal position is encountered. - * - * While that sounds expensive, the average chain length is short, and - * deletions would otherwise require tombstones. - */ - while (true) - { - SH_ELEMENT_TYPE *curentry; - uint32 curhash; - uint32 curoptimal; - - curelem = SH_NEXT(tb, curelem, startelem); - curentry = &tb->data[curelem]; - - if (curentry->status != SH_STATUS_IN_USE) - { - lastentry->status = SH_STATUS_EMPTY; - break; - } - - curhash = SH_ENTRY_HASH(tb, curentry); - curoptimal = SH_INITIAL_BUCKET(tb, curhash); - - /* current is at optimal position, done */ - if (curoptimal == curelem) - { - lastentry->status = SH_STATUS_EMPTY; - break; - } - - /* shift */ - memcpy(lastentry, curentry, sizeof(SH_ELEMENT_TYPE)); - - lastentry = curentry; - } -} - -/* - * Initialize iterator. - */ -SH_SCOPE void -SH_START_ITERATE(SH_TYPE * tb, SH_ITERATOR * iter) -{ - int i; - uint64 startelem = PG_UINT64_MAX; - - /* - * Search for the first empty element. As deletions during iterations are - * supported, we want to start/end at an element that cannot be affected - * by elements being shifted. - */ - for (i = 0; i < tb->size; i++) - { - SH_ELEMENT_TYPE *entry = &tb->data[i]; - - if (entry->status != SH_STATUS_IN_USE) - { - startelem = i; - break; - } - } - - Assert(startelem < SH_MAX_SIZE); - - /* - * Iterate backwards, that allows the current element to be deleted, even - * if there are backward shifts - */ - iter->cur = startelem; - iter->end = iter->cur; - iter->done = false; -} - -/* - * Initialize iterator to a specific bucket. That's really only useful for - * cases where callers are partially iterating over the hashspace, and that - * iteration deletes and inserts elements based on visited entries. Doing that - * repeatedly could lead to an unbalanced keyspace when always starting at the - * same position. - */ -SH_SCOPE void -SH_START_ITERATE_AT(SH_TYPE * tb, SH_ITERATOR * iter, uint32 at) -{ - /* - * Iterate backwards, that allows the current element to be deleted, even - * if there are backward shifts. - */ - iter->cur = at & tb->sizemask; /* ensure at is within a valid range */ - iter->end = iter->cur; - iter->done = false; -} - -/* - * Iterate over all entries in the hash-table. Return the next occupied entry, - * or NULL if done. - * - * During iteration the current entry in the hash table may be deleted, - * without leading to elements being skipped or returned twice. Additionally - * the rest of the table may be modified (i.e. there can be insertions or - * deletions), but if so, there's neither a guarantee that all nodes are - * visited at least once, nor a guarantee that a node is visited at most once. - */ -SH_SCOPE SH_ELEMENT_TYPE * -SH_ITERATE(SH_TYPE * tb, SH_ITERATOR * iter) -{ - while (!iter->done) - { - SH_ELEMENT_TYPE *elem; - - elem = &tb->data[iter->cur]; - - /* next element in backward direction */ - iter->cur = (iter->cur - 1) & tb->sizemask; - - if ((iter->cur & tb->sizemask) == (iter->end & tb->sizemask)) - iter->done = true; - if (elem->status == SH_STATUS_IN_USE) - { - return elem; - } - } - - return NULL; -} - -/* - * Report some statistics about the state of the hashtable. For - * debugging/profiling purposes only. - */ -SH_SCOPE void -SH_STAT(SH_TYPE * tb) -{ - uint32 max_chain_length = 0; - uint32 total_chain_length = 0; - double avg_chain_length; - double fillfactor; - uint32 i; - - uint32 *collisions = (uint32 *) palloc0(tb->size * sizeof(uint32)); - uint32 total_collisions = 0; - uint32 max_collisions = 0; - double avg_collisions; - - for (i = 0; i < tb->size; i++) - { - uint32 hash; - uint32 optimal; - uint32 dist; - SH_ELEMENT_TYPE *elem; - - elem = &tb->data[i]; - - if (elem->status != SH_STATUS_IN_USE) - continue; - - hash = SH_ENTRY_HASH(tb, elem); - optimal = SH_INITIAL_BUCKET(tb, hash); - dist = SH_DISTANCE_FROM_OPTIMAL(tb, optimal, i); - - if (dist > max_chain_length) - max_chain_length = dist; - total_chain_length += dist; - - collisions[optimal]++; - } - - for (i = 0; i < tb->size; i++) - { - uint32 curcoll = collisions[i]; - - if (curcoll == 0) - continue; - - /* single contained element is not a collision */ - curcoll--; - total_collisions += curcoll; - if (curcoll > max_collisions) - max_collisions = curcoll; - } - - if (tb->members > 0) - { - fillfactor = tb->members / ((double) tb->size); - avg_chain_length = ((double) total_chain_length) / tb->members; - avg_collisions = ((double) total_collisions) / tb->members; - } - else - { - fillfactor = 0; - avg_chain_length = 0; - avg_collisions = 0; - } - - sh_log("size: " UINT64_FORMAT ", members: %u, filled: %f, total chain: %u, max chain: %u, avg chain: %f, total_collisions: %u, max_collisions: %u, avg_collisions: %f", - tb->size, tb->members, fillfactor, total_chain_length, max_chain_length, avg_chain_length, - total_collisions, max_collisions, avg_collisions); -} - -#endif /* SH_DEFINE */ - - -/* undefine external parameters, so next hash table can be defined */ -#undef SH_PREFIX -#undef SH_KEY_TYPE -#undef SH_KEY -#undef SH_ELEMENT_TYPE -#undef SH_HASH_KEY -#undef SH_SCOPE -#undef SH_DECLARE -#undef SH_DEFINE -#undef SH_GET_HASH -#undef SH_STORE_HASH -#undef SH_USE_NONDEFAULT_ALLOCATOR -#undef SH_EQUAL - -/* undefine locally declared macros */ -#undef SH_MAKE_PREFIX -#undef SH_MAKE_NAME -#undef SH_MAKE_NAME_ -#undef SH_FILLFACTOR -#undef SH_MAX_FILLFACTOR -#undef SH_GROW_MAX_DIB -#undef SH_GROW_MAX_MOVE -#undef SH_GROW_MIN_FILLFACTOR -#undef SH_MAX_SIZE - -/* types */ -#undef SH_TYPE -#undef SH_STATUS -#undef SH_STATUS_EMPTY -#undef SH_STATUS_IN_USE -#undef SH_ITERATOR - -/* external function names */ -#undef SH_CREATE -#undef SH_DESTROY -#undef SH_RESET -#undef SH_INSERT -#undef SH_INSERT_HASH -#undef SH_DELETE_ITEM -#undef SH_DELETE -#undef SH_LOOKUP -#undef SH_LOOKUP_HASH -#undef SH_GROW -#undef SH_START_ITERATE -#undef SH_START_ITERATE_AT -#undef SH_ITERATE -#undef SH_ALLOCATE -#undef SH_FREE -#undef SH_STAT - -/* internal function names */ -#undef SH_COMPUTE_PARAMETERS -#undef SH_COMPARE_KEYS -#undef SH_INITIAL_BUCKET -#undef SH_NEXT -#undef SH_PREV -#undef SH_DISTANCE_FROM_OPTIMAL -#undef SH_ENTRY_HASH -#undef SH_INSERT_HASH_INTERNAL -#undef SH_LOOKUP_HASH_INTERNAL diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/sort_template.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/sort_template.h deleted file mode 100644 index 3122a9300..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/sort_template.h +++ /dev/null @@ -1,432 +0,0 @@ -/*------------------------------------------------------------------------- - * - * sort_template.h - * - * A template for a sort algorithm that supports varying degrees of - * specialization. - * - * Copyright (c) 2021-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1992-1994, Regents of the University of California - * - * Usage notes: - * - * To generate functions specialized for a type, the following parameter - * macros should be #define'd before this file is included. - * - * - ST_SORT - the name of a sort function to be generated - * - ST_ELEMENT_TYPE - type of the referenced elements - * - ST_DECLARE - if defined the functions and types are declared - * - ST_DEFINE - if defined the functions and types are defined - * - ST_SCOPE - scope (e.g. extern, static inline) for functions - * - ST_CHECK_FOR_INTERRUPTS - if defined the sort is interruptible - * - * Instead of ST_ELEMENT_TYPE, ST_ELEMENT_TYPE_VOID can be defined. Then - * the generated functions will automatically gain an "element_size" - * parameter. This allows us to generate a traditional qsort function. - * - * One of the following macros must be defined, to show how to compare - * elements. The first two options are arbitrary expressions depending - * on whether an extra pass-through argument is desired, and the third - * option should be defined if the sort function should receive a - * function pointer at runtime. - * - * - ST_COMPARE(a, b) - a simple comparison expression - * - ST_COMPARE(a, b, arg) - variant that takes an extra argument - * - ST_COMPARE_RUNTIME_POINTER - sort function takes a function pointer - * - * To say that the comparator and therefore also sort function should - * receive an extra pass-through argument, specify the type of the - * argument. - * - * - ST_COMPARE_ARG_TYPE - type of extra argument - * - * The prototype of the generated sort function is: - * - * void ST_SORT(ST_ELEMENT_TYPE *data, size_t n, - * [size_t element_size,] - * [ST_SORT_compare_function compare,] - * [ST_COMPARE_ARG_TYPE *arg]); - * - * ST_SORT_compare_function is a function pointer of the following type: - * - * int (*)(const ST_ELEMENT_TYPE *a, const ST_ELEMENT_TYPE *b, - * [ST_COMPARE_ARG_TYPE *arg]) - * - * HISTORY - * - * Modifications from vanilla NetBSD source: - * - Add do ... while() macro fix - * - Remove __inline, _DIAGASSERTs, __P - * - Remove ill-considered "swap_cnt" switch to insertion sort, in favor - * of a simple check for presorted input. - * - Take care to recurse on the smaller partition, to bound stack usage - * - Convert into a header that can generate specialized functions - * - * IDENTIFICATION - * src/include/lib/sort_template.h - * - *------------------------------------------------------------------------- - */ - -/* $NetBSD: qsort.c,v 1.13 2003/08/07 16:43:42 agc Exp $ */ - -/*- - * Copyright (c) 1992, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - */ - -/* - * Qsort routine based on J. L. Bentley and M. D. McIlroy, - * "Engineering a sort function", - * Software--Practice and Experience 23 (1993) 1249-1265. - * - * We have modified their original by adding a check for already-sorted - * input, which seems to be a win per discussions on pgsql-hackers around - * 2006-03-21. - * - * Also, we recurse on the smaller partition and iterate on the larger one, - * which ensures we cannot recurse more than log(N) levels (since the - * partition recursed to is surely no more than half of the input). Bentley - * and McIlroy explicitly rejected doing this on the grounds that it's "not - * worth the effort", but we have seen crashes in the field due to stack - * overrun, so that judgment seems wrong. - */ - -#define ST_MAKE_PREFIX(a) CppConcat(a,_) -#define ST_MAKE_NAME(a,b) ST_MAKE_NAME_(ST_MAKE_PREFIX(a),b) -#define ST_MAKE_NAME_(a,b) CppConcat(a,b) - -/* - * If the element type is void, we'll also need an element_size argument - * because we don't know the size. - */ -#ifdef ST_ELEMENT_TYPE_VOID -#define ST_ELEMENT_TYPE void -#define ST_SORT_PROTO_ELEMENT_SIZE , size_t element_size -#define ST_SORT_INVOKE_ELEMENT_SIZE , element_size -#else -#define ST_SORT_PROTO_ELEMENT_SIZE -#define ST_SORT_INVOKE_ELEMENT_SIZE -#endif - -/* - * If the user wants to be able to pass in compare functions at runtime, - * we'll need to make that an argument of the sort and med3 functions. - */ -#ifdef ST_COMPARE_RUNTIME_POINTER -/* - * The type of the comparator function pointer that ST_SORT will take, unless - * you've already declared a type name manually and want to use that instead of - * having a new one defined. - */ -#ifndef ST_COMPARATOR_TYPE_NAME -#define ST_COMPARATOR_TYPE_NAME ST_MAKE_NAME(ST_SORT, compare_function) -#endif -#define ST_COMPARE compare -#ifndef ST_COMPARE_ARG_TYPE -#define ST_SORT_PROTO_COMPARE , ST_COMPARATOR_TYPE_NAME compare -#define ST_SORT_INVOKE_COMPARE , compare -#else -#define ST_SORT_PROTO_COMPARE , ST_COMPARATOR_TYPE_NAME compare -#define ST_SORT_INVOKE_COMPARE , compare -#endif -#else -#define ST_SORT_PROTO_COMPARE -#define ST_SORT_INVOKE_COMPARE -#endif - -/* - * If the user wants to use a compare function or expression that takes an - * extra argument, we'll need to make that an argument of the sort, compare and - * med3 functions. - */ -#ifdef ST_COMPARE_ARG_TYPE -#define ST_SORT_PROTO_ARG , ST_COMPARE_ARG_TYPE *arg -#define ST_SORT_INVOKE_ARG , arg -#else -#define ST_SORT_PROTO_ARG -#define ST_SORT_INVOKE_ARG -#endif - -#ifdef ST_DECLARE - -#ifdef ST_COMPARE_RUNTIME_POINTER -typedef int (*ST_COMPARATOR_TYPE_NAME) (const ST_ELEMENT_TYPE *, - const ST_ELEMENT_TYPE * ST_SORT_PROTO_ARG); -#endif - -/* Declare the sort function. Note optional arguments at end. */ -ST_SCOPE void ST_SORT(ST_ELEMENT_TYPE * first, size_t n - ST_SORT_PROTO_ELEMENT_SIZE - ST_SORT_PROTO_COMPARE - ST_SORT_PROTO_ARG); - -#endif - -#ifdef ST_DEFINE - -/* sort private helper functions */ -#define ST_MED3 ST_MAKE_NAME(ST_SORT, med3) -#define ST_SWAP ST_MAKE_NAME(ST_SORT, swap) -#define ST_SWAPN ST_MAKE_NAME(ST_SORT, swapn) - -/* Users expecting to run very large sorts may need them to be interruptible. */ -#ifdef ST_CHECK_FOR_INTERRUPTS -#define DO_CHECK_FOR_INTERRUPTS() CHECK_FOR_INTERRUPTS() -#else -#define DO_CHECK_FOR_INTERRUPTS() -#endif - -/* - * Create wrapper macros that know how to invoke compare, med3 and sort with - * the right arguments. - */ -#ifdef ST_COMPARE_RUNTIME_POINTER -#define DO_COMPARE(a_, b_) ST_COMPARE((a_), (b_) ST_SORT_INVOKE_ARG) -#elif defined(ST_COMPARE_ARG_TYPE) -#define DO_COMPARE(a_, b_) ST_COMPARE((a_), (b_), arg) -#else -#define DO_COMPARE(a_, b_) ST_COMPARE((a_), (b_)) -#endif -#define DO_MED3(a_, b_, c_) \ - ST_MED3((a_), (b_), (c_) \ - ST_SORT_INVOKE_COMPARE \ - ST_SORT_INVOKE_ARG) -#define DO_SORT(a_, n_) \ - ST_SORT((a_), (n_) \ - ST_SORT_INVOKE_ELEMENT_SIZE \ - ST_SORT_INVOKE_COMPARE \ - ST_SORT_INVOKE_ARG) - -/* - * If we're working with void pointers, we'll use pointer arithmetic based on - * uint8, and use the runtime element_size to step through the array and swap - * elements. Otherwise we'll work with ST_ELEMENT_TYPE. - */ -#ifndef ST_ELEMENT_TYPE_VOID -#define ST_POINTER_TYPE ST_ELEMENT_TYPE -#define ST_POINTER_STEP 1 -#define DO_SWAPN(a_, b_, n_) ST_SWAPN((a_), (b_), (n_)) -#define DO_SWAP(a_, b_) ST_SWAP((a_), (b_)) -#else -#define ST_POINTER_TYPE uint8 -#define ST_POINTER_STEP element_size -#define DO_SWAPN(a_, b_, n_) ST_SWAPN((a_), (b_), (n_)) -#define DO_SWAP(a_, b_) DO_SWAPN((a_), (b_), element_size) -#endif - -/* - * Find the median of three values. Currently, performance seems to be best - * if the comparator is inlined here, but the med3 function is not inlined - * in the qsort function. - */ -static pg_noinline ST_ELEMENT_TYPE * -ST_MED3(ST_ELEMENT_TYPE * a, - ST_ELEMENT_TYPE * b, - ST_ELEMENT_TYPE * c - ST_SORT_PROTO_COMPARE - ST_SORT_PROTO_ARG) -{ - return DO_COMPARE(a, b) < 0 ? - (DO_COMPARE(b, c) < 0 ? b : (DO_COMPARE(a, c) < 0 ? c : a)) - : (DO_COMPARE(b, c) > 0 ? b : (DO_COMPARE(a, c) < 0 ? a : c)); -} - -static inline void -ST_SWAP(ST_POINTER_TYPE * a, ST_POINTER_TYPE * b) -{ - ST_POINTER_TYPE tmp = *a; - - *a = *b; - *b = tmp; -} - -static inline void -ST_SWAPN(ST_POINTER_TYPE * a, ST_POINTER_TYPE * b, size_t n) -{ - for (size_t i = 0; i < n; ++i) - ST_SWAP(&a[i], &b[i]); -} - -/* - * Sort an array. - */ -ST_SCOPE void -ST_SORT(ST_ELEMENT_TYPE * data, size_t n - ST_SORT_PROTO_ELEMENT_SIZE - ST_SORT_PROTO_COMPARE - ST_SORT_PROTO_ARG) -{ - ST_POINTER_TYPE *a = (ST_POINTER_TYPE *) data, - *pa, - *pb, - *pc, - *pd, - *pl, - *pm, - *pn; - size_t d1, - d2; - int r, - presorted; - -loop: - DO_CHECK_FOR_INTERRUPTS(); - if (n < 7) - { - for (pm = a + ST_POINTER_STEP; pm < a + n * ST_POINTER_STEP; - pm += ST_POINTER_STEP) - for (pl = pm; pl > a && DO_COMPARE(pl - ST_POINTER_STEP, pl) > 0; - pl -= ST_POINTER_STEP) - DO_SWAP(pl, pl - ST_POINTER_STEP); - return; - } - presorted = 1; - for (pm = a + ST_POINTER_STEP; pm < a + n * ST_POINTER_STEP; - pm += ST_POINTER_STEP) - { - DO_CHECK_FOR_INTERRUPTS(); - if (DO_COMPARE(pm - ST_POINTER_STEP, pm) > 0) - { - presorted = 0; - break; - } - } - if (presorted) - return; - pm = a + (n / 2) * ST_POINTER_STEP; - if (n > 7) - { - pl = a; - pn = a + (n - 1) * ST_POINTER_STEP; - if (n > 40) - { - size_t d = (n / 8) * ST_POINTER_STEP; - - pl = DO_MED3(pl, pl + d, pl + 2 * d); - pm = DO_MED3(pm - d, pm, pm + d); - pn = DO_MED3(pn - 2 * d, pn - d, pn); - } - pm = DO_MED3(pl, pm, pn); - } - DO_SWAP(a, pm); - pa = pb = a + ST_POINTER_STEP; - pc = pd = a + (n - 1) * ST_POINTER_STEP; - for (;;) - { - while (pb <= pc && (r = DO_COMPARE(pb, a)) <= 0) - { - if (r == 0) - { - DO_SWAP(pa, pb); - pa += ST_POINTER_STEP; - } - pb += ST_POINTER_STEP; - DO_CHECK_FOR_INTERRUPTS(); - } - while (pb <= pc && (r = DO_COMPARE(pc, a)) >= 0) - { - if (r == 0) - { - DO_SWAP(pc, pd); - pd -= ST_POINTER_STEP; - } - pc -= ST_POINTER_STEP; - DO_CHECK_FOR_INTERRUPTS(); - } - if (pb > pc) - break; - DO_SWAP(pb, pc); - pb += ST_POINTER_STEP; - pc -= ST_POINTER_STEP; - } - pn = a + n * ST_POINTER_STEP; - d1 = Min(pa - a, pb - pa); - DO_SWAPN(a, pb - d1, d1); - d1 = Min(pd - pc, pn - pd - ST_POINTER_STEP); - DO_SWAPN(pb, pn - d1, d1); - d1 = pb - pa; - d2 = pd - pc; - if (d1 <= d2) - { - /* Recurse on left partition, then iterate on right partition */ - if (d1 > ST_POINTER_STEP) - DO_SORT(a, d1 / ST_POINTER_STEP); - if (d2 > ST_POINTER_STEP) - { - /* Iterate rather than recurse to save stack space */ - /* DO_SORT(pn - d2, d2 / ST_POINTER_STEP) */ - a = pn - d2; - n = d2 / ST_POINTER_STEP; - goto loop; - } - } - else - { - /* Recurse on right partition, then iterate on left partition */ - if (d2 > ST_POINTER_STEP) - DO_SORT(pn - d2, d2 / ST_POINTER_STEP); - if (d1 > ST_POINTER_STEP) - { - /* Iterate rather than recurse to save stack space */ - /* DO_SORT(a, d1 / ST_POINTER_STEP) */ - n = d1 / ST_POINTER_STEP; - goto loop; - } - } -} -#endif - -#undef DO_CHECK_FOR_INTERRUPTS -#undef DO_COMPARE -#undef DO_MED3 -#undef DO_SORT -#undef DO_SWAP -#undef DO_SWAPN -#undef ST_CHECK_FOR_INTERRUPTS -#undef ST_COMPARATOR_TYPE_NAME -#undef ST_COMPARE -#undef ST_COMPARE_ARG_TYPE -#undef ST_COMPARE_RUNTIME_POINTER -#undef ST_ELEMENT_TYPE -#undef ST_ELEMENT_TYPE_VOID -#undef ST_MAKE_NAME -#undef ST_MAKE_NAME_ -#undef ST_MAKE_PREFIX -#undef ST_MED3 -#undef ST_POINTER_STEP -#undef ST_POINTER_TYPE -#undef ST_SCOPE -#undef ST_SORT -#undef ST_SORT_INVOKE_ARG -#undef ST_SORT_INVOKE_COMPARE -#undef ST_SORT_INVOKE_ELEMENT_SIZE -#undef ST_SORT_PROTO_ARG -#undef ST_SORT_PROTO_COMPARE -#undef ST_SORT_PROTO_ELEMENT_SIZE -#undef ST_SWAP -#undef ST_SWAPN diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/stringinfo.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/stringinfo.h deleted file mode 100644 index 9b755c488..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/lib/stringinfo.h +++ /dev/null @@ -1,161 +0,0 @@ -/*------------------------------------------------------------------------- - * - * stringinfo.h - * Declarations/definitions for "StringInfo" functions. - * - * StringInfo provides an extensible string data type (currently limited to a - * length of 1GB). It can be used to buffer either ordinary C strings - * (null-terminated text) or arbitrary binary data. All storage is allocated - * with palloc() (falling back to malloc in frontend code). - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/lib/stringinfo.h - * - *------------------------------------------------------------------------- - */ -#ifndef STRINGINFO_H -#define STRINGINFO_H - -/*------------------------- - * StringInfoData holds information about an extensible string. - * data is the current buffer for the string (allocated with palloc). - * len is the current string length. There is guaranteed to be - * a terminating '\0' at data[len], although this is not very - * useful when the string holds binary data rather than text. - * maxlen is the allocated size in bytes of 'data', i.e. the maximum - * string size (including the terminating '\0' char) that we can - * currently store in 'data' without having to reallocate - * more space. We must always have maxlen > len. - * cursor is initialized to zero by makeStringInfo or initStringInfo, - * but is not otherwise touched by the stringinfo.c routines. - * Some routines use it to scan through a StringInfo. - *------------------------- - */ -typedef struct StringInfoData -{ - char *data; - int len; - int maxlen; - int cursor; -} StringInfoData; - -typedef StringInfoData *StringInfo; - - -/*------------------------ - * There are two ways to create a StringInfo object initially: - * - * StringInfo stringptr = makeStringInfo(); - * Both the StringInfoData and the data buffer are palloc'd. - * - * StringInfoData string; - * initStringInfo(&string); - * The data buffer is palloc'd but the StringInfoData is just local. - * This is the easiest approach for a StringInfo object that will - * only live as long as the current routine. - * - * To destroy a StringInfo, pfree() the data buffer, and then pfree() the - * StringInfoData if it was palloc'd. There's no special support for this. - * - * NOTE: some routines build up a string using StringInfo, and then - * release the StringInfoData but return the data string itself to their - * caller. At that point the data string looks like a plain palloc'd - * string. - *------------------------- - */ - -/*------------------------ - * makeStringInfo - * Create an empty 'StringInfoData' & return a pointer to it. - */ -extern StringInfo makeStringInfo(void); - -/*------------------------ - * initStringInfo - * Initialize a StringInfoData struct (with previously undefined contents) - * to describe an empty string. - */ -extern void initStringInfo(StringInfo str); - -/*------------------------ - * resetStringInfo - * Clears the current content of the StringInfo, if any. The - * StringInfo remains valid. - */ -extern void resetStringInfo(StringInfo str); - -/*------------------------ - * appendStringInfo - * Format text data under the control of fmt (an sprintf-style format string) - * and append it to whatever is already in str. More space is allocated - * to str if necessary. This is sort of like a combination of sprintf and - * strcat. - */ -extern void appendStringInfo(StringInfo str, const char *fmt,...) pg_attribute_printf(2, 3); - -/*------------------------ - * appendStringInfoVA - * Attempt to format text data under the control of fmt (an sprintf-style - * format string) and append it to whatever is already in str. If successful - * return zero; if not (because there's not enough space), return an estimate - * of the space needed, without modifying str. Typically the caller should - * pass the return value to enlargeStringInfo() before trying again; see - * appendStringInfo for standard usage pattern. - */ -extern int appendStringInfoVA(StringInfo str, const char *fmt, va_list args) pg_attribute_printf(2, 0); - -/*------------------------ - * appendStringInfoString - * Append a null-terminated string to str. - * Like appendStringInfo(str, "%s", s) but faster. - */ -extern void appendStringInfoString(StringInfo str, const char *s); - -/*------------------------ - * appendStringInfoChar - * Append a single byte to str. - * Like appendStringInfo(str, "%c", ch) but much faster. - */ -extern void appendStringInfoChar(StringInfo str, char ch); - -/*------------------------ - * appendStringInfoCharMacro - * As above, but a macro for even more speed where it matters. - * Caution: str argument will be evaluated multiple times. - */ -#define appendStringInfoCharMacro(str,ch) \ - (((str)->len + 1 >= (str)->maxlen) ? \ - appendStringInfoChar(str, ch) : \ - (void)((str)->data[(str)->len] = (ch), (str)->data[++(str)->len] = '\0')) - -/*------------------------ - * appendStringInfoSpaces - * Append a given number of spaces to str. - */ -extern void appendStringInfoSpaces(StringInfo str, int count); - -/*------------------------ - * appendBinaryStringInfo - * Append arbitrary binary data to a StringInfo, allocating more space - * if necessary. - */ -extern void appendBinaryStringInfo(StringInfo str, - const char *data, int datalen); - -/*------------------------ - * appendBinaryStringInfoNT - * Append arbitrary binary data to a StringInfo, allocating more space - * if necessary. Does not ensure a trailing null-byte exists. - */ -extern void appendBinaryStringInfoNT(StringInfo str, - const char *data, int datalen); - -/*------------------------ - * enlargeStringInfo - * Make sure a StringInfo's buffer can hold at least 'needed' more bytes. - */ -extern void enlargeStringInfo(StringInfo str, int needed); - -#endif /* STRINGINFO_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/auth.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/auth.h deleted file mode 100644 index d3c189efe..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/auth.h +++ /dev/null @@ -1,31 +0,0 @@ -/*------------------------------------------------------------------------- - * - * auth.h - * Definitions for network authentication routines - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/libpq/auth.h - * - *------------------------------------------------------------------------- - */ -#ifndef AUTH_H -#define AUTH_H - -#include "libpq/libpq-be.h" - -extern PGDLLIMPORT char *pg_krb_server_keyfile; -extern PGDLLIMPORT bool pg_krb_caseins_users; -extern PGDLLIMPORT char *pg_krb_realm; - -extern void ClientAuthentication(Port *port); -extern void sendAuthRequest(Port *port, AuthRequest areq, const char *extradata, - int extralen); - -/* Hook for plugins to get control in ClientAuthentication() */ -typedef void (*ClientAuthentication_hook_type) (Port *, int); -extern PGDLLIMPORT ClientAuthentication_hook_type ClientAuthentication_hook; - -#endif /* AUTH_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/crypt.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/crypt.h deleted file mode 100644 index 3238cf66d..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/crypt.h +++ /dev/null @@ -1,47 +0,0 @@ -/*------------------------------------------------------------------------- - * - * crypt.h - * Interface to libpq/crypt.c - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/libpq/crypt.h - * - *------------------------------------------------------------------------- - */ -#ifndef PG_CRYPT_H -#define PG_CRYPT_H - -#include "datatype/timestamp.h" - -/* - * Types of password hashes or secrets. - * - * Plaintext passwords can be passed in by the user, in a CREATE/ALTER USER - * command. They will be encrypted to MD5 or SCRAM-SHA-256 format, before - * storing on-disk, so only MD5 and SCRAM-SHA-256 passwords should appear - * in pg_authid.rolpassword. They are also the allowed values for the - * password_encryption GUC. - */ -typedef enum PasswordType -{ - PASSWORD_TYPE_PLAINTEXT = 0, - PASSWORD_TYPE_MD5, - PASSWORD_TYPE_SCRAM_SHA_256 -} PasswordType; - -extern PasswordType get_password_type(const char *shadow_pass); -extern char *encrypt_password(PasswordType target_type, const char *role, - const char *password); - -extern char *get_role_password(const char *role, const char **logdetail); - -extern int md5_crypt_verify(const char *role, const char *shadow_pass, - const char *client_pass, const char *md5_salt, - int md5_salt_len, const char **logdetail); -extern int plain_crypt_verify(const char *role, const char *shadow_pass, - const char *client_pass, - const char **logdetail); - -#endif diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/hba.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/hba.h deleted file mode 100644 index d06da8180..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/hba.h +++ /dev/null @@ -1,179 +0,0 @@ -/*------------------------------------------------------------------------- - * - * hba.h - * Interface to hba.c - * - * - * src/include/libpq/hba.h - * - *------------------------------------------------------------------------- - */ -#ifndef HBA_H -#define HBA_H - -#include "libpq/pqcomm.h" /* pgrminclude ignore */ /* needed for NetBSD */ -#include "nodes/pg_list.h" -#include "regex/regex.h" - - -/* - * The following enum represents the authentication methods that - * are supported by PostgreSQL. - * - * Note: keep this in sync with the UserAuthName array in hba.c. - */ -typedef enum UserAuth -{ - uaReject, - uaImplicitReject, /* Not a user-visible option */ - uaTrust, - uaIdent, - uaPassword, - uaMD5, - uaSCRAM, - uaGSS, - uaSSPI, - uaPAM, - uaBSD, - uaLDAP, - uaCert, - uaRADIUS, - uaPeer -#define USER_AUTH_LAST uaPeer /* Must be last value of this enum */ -} UserAuth; - -/* - * Data structures representing pg_hba.conf entries - */ - -typedef enum IPCompareMethod -{ - ipCmpMask, - ipCmpSameHost, - ipCmpSameNet, - ipCmpAll -} IPCompareMethod; - -typedef enum ConnType -{ - ctLocal, - ctHost, - ctHostSSL, - ctHostNoSSL, - ctHostGSS, - ctHostNoGSS, -} ConnType; - -typedef enum ClientCertMode -{ - clientCertOff, - clientCertCA, - clientCertFull -} ClientCertMode; - -typedef enum ClientCertName -{ - clientCertCN, - clientCertDN -} ClientCertName; - -typedef struct HbaLine -{ - int linenumber; - char *rawline; - ConnType conntype; - List *databases; - List *roles; - struct sockaddr_storage addr; - int addrlen; /* zero if we don't have a valid addr */ - struct sockaddr_storage mask; - int masklen; /* zero if we don't have a valid mask */ - IPCompareMethod ip_cmp_method; - char *hostname; - UserAuth auth_method; - char *usermap; - char *pamservice; - bool pam_use_hostname; - bool ldaptls; - char *ldapscheme; - char *ldapserver; - int ldapport; - char *ldapbinddn; - char *ldapbindpasswd; - char *ldapsearchattribute; - char *ldapsearchfilter; - char *ldapbasedn; - int ldapscope; - char *ldapprefix; - char *ldapsuffix; - ClientCertMode clientcert; - ClientCertName clientcertname; - char *krb_realm; - bool include_realm; - bool compat_realm; - bool upn_username; - List *radiusservers; - char *radiusservers_s; - List *radiussecrets; - char *radiussecrets_s; - List *radiusidentifiers; - char *radiusidentifiers_s; - List *radiusports; - char *radiusports_s; -} HbaLine; - -typedef struct IdentLine -{ - int linenumber; - - char *usermap; - char *ident_user; - char *pg_role; - regex_t re; -} IdentLine; - -/* - * A single string token lexed from an authentication configuration file - * (pg_ident.conf or pg_hba.conf), together with whether the token has - * been quoted. - */ -typedef struct AuthToken -{ - char *string; - bool quoted; -} AuthToken; - -/* - * TokenizedAuthLine represents one line lexed from an authentication - * configuration file. Each item in the "fields" list is a sub-list of - * AuthTokens. We don't emit a TokenizedAuthLine for empty or all-comment - * lines, so "fields" is never NIL (nor are any of its sub-lists). - * - * Exception: if an error occurs during tokenization, we might have - * fields == NIL, in which case err_msg != NULL. - */ -typedef struct TokenizedAuthLine -{ - List *fields; /* List of lists of AuthTokens */ - int line_num; /* Line number */ - char *raw_line; /* Raw line text */ - char *err_msg; /* Error message if any */ -} TokenizedAuthLine; - -/* kluge to avoid including libpq/libpq-be.h here */ -typedef struct Port hbaPort; - -extern bool load_hba(void); -extern bool load_ident(void); -extern const char *hba_authname(UserAuth auth_method); -extern void hba_getauthmethod(hbaPort *port); -extern int check_usermap(const char *usermap_name, - const char *pg_role, const char *auth_user, - bool case_insensitive); -extern HbaLine *parse_hba_line(TokenizedAuthLine *tok_line, int elevel); -extern IdentLine *parse_ident_line(TokenizedAuthLine *tok_line, int elevel); -extern bool pg_isblank(const char c); -extern MemoryContext tokenize_auth_file(const char *filename, FILE *file, - List **tok_lines, int elevel); - -#endif /* HBA_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/libpq-be.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/libpq-be.h deleted file mode 100644 index 90c20da22..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/libpq-be.h +++ /dev/null @@ -1,343 +0,0 @@ -/*------------------------------------------------------------------------- - * - * libpq-be.h - * This file contains definitions for structures and externs used - * by the postmaster during client authentication. - * - * Note that this is backend-internal and is NOT exported to clients. - * Structs that need to be client-visible are in pqcomm.h. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/libpq/libpq-be.h - * - *------------------------------------------------------------------------- - */ -#ifndef LIBPQ_BE_H -#define LIBPQ_BE_H - -#include -#ifdef USE_OPENSSL -#include -#include -#endif -#ifdef HAVE_NETINET_TCP_H -#include -#endif - -#ifdef ENABLE_GSS -#if defined(HAVE_GSSAPI_H) -#include -#else -#include -#endif /* HAVE_GSSAPI_H */ -/* - * GSSAPI brings in headers that set a lot of things in the global namespace on win32, - * that doesn't match the msvc build. It gives a bunch of compiler warnings that we ignore, - * but also defines a symbol that simply does not exist. Undefine it again. - */ -#ifdef _MSC_VER -#undef HAVE_GETADDRINFO -#endif -#endif /* ENABLE_GSS */ - -#ifdef ENABLE_SSPI -#define SECURITY_WIN32 -#if defined(WIN32) && !defined(_MSC_VER) -#include -#endif -#include -#undef SECURITY_WIN32 - -#ifndef ENABLE_GSS -/* - * Define a fake structure compatible with GSSAPI on Unix. - */ -typedef struct -{ - void *value; - int length; -} gss_buffer_desc; -#endif -#endif /* ENABLE_SSPI */ - -#include "datatype/timestamp.h" -#include "libpq/hba.h" -#include "libpq/pqcomm.h" - - -typedef enum CAC_state -{ - CAC_OK, - CAC_STARTUP, - CAC_SHUTDOWN, - CAC_RECOVERY, - CAC_NOTCONSISTENT, - CAC_TOOMANY -} CAC_state; - - -/* - * GSSAPI specific state information - */ -#if defined(ENABLE_GSS) | defined(ENABLE_SSPI) -typedef struct -{ - gss_buffer_desc outbuf; /* GSSAPI output token buffer */ -#ifdef ENABLE_GSS - gss_cred_id_t cred; /* GSSAPI connection cred's */ - gss_ctx_id_t ctx; /* GSSAPI connection context */ - gss_name_t name; /* GSSAPI client name */ - char *princ; /* GSSAPI Principal used for auth, NULL if - * GSSAPI auth was not used */ - bool auth; /* GSSAPI Authentication used */ - bool enc; /* GSSAPI encryption in use */ -#endif -} pg_gssinfo; -#endif - -/* - * This is used by the postmaster in its communication with frontends. It - * contains all state information needed during this communication before the - * backend is run. The Port structure is kept in malloc'd memory and is - * still available when a backend is running (see MyProcPort). The data - * it points to must also be malloc'd, or else palloc'd in TopMemoryContext, - * so that it survives into PostgresMain execution! - * - * remote_hostname is set if we did a successful reverse lookup of the - * client's IP address during connection setup. - * remote_hostname_resolv tracks the state of hostname verification: - * +1 = remote_hostname is known to resolve to client's IP address - * -1 = remote_hostname is known NOT to resolve to client's IP address - * 0 = we have not done the forward DNS lookup yet - * -2 = there was an error in name resolution - * If reverse lookup of the client IP address fails, remote_hostname will be - * left NULL while remote_hostname_resolv is set to -2. If reverse lookup - * succeeds but forward lookup fails, remote_hostname_resolv is also set to -2 - * (the case is distinguishable because remote_hostname isn't NULL). In - * either of the -2 cases, remote_hostname_errcode saves the lookup return - * code for possible later use with gai_strerror. - */ - -typedef struct Port -{ - pgsocket sock; /* File descriptor */ - bool noblock; /* is the socket in non-blocking mode? */ - ProtocolVersion proto; /* FE/BE protocol version */ - SockAddr laddr; /* local addr (postmaster) */ - SockAddr raddr; /* remote addr (client) */ - char *remote_host; /* name (or ip addr) of remote host */ - char *remote_hostname; /* name (not ip addr) of remote host, if - * available */ - int remote_hostname_resolv; /* see above */ - int remote_hostname_errcode; /* see above */ - char *remote_port; /* text rep of remote port */ - CAC_state canAcceptConnections; /* postmaster connection status */ - - /* - * Information that needs to be saved from the startup packet and passed - * into backend execution. "char *" fields are NULL if not set. - * guc_options points to a List of alternating option names and values. - */ - char *database_name; - char *user_name; - char *cmdline_options; - List *guc_options; - - /* - * The startup packet application name, only used here for the "connection - * authorized" log message. We shouldn't use this post-startup, instead - * the GUC should be used as application can change it afterward. - */ - char *application_name; - - /* - * Information that needs to be held during the authentication cycle. - */ - HbaLine *hba; - - /* - * Authenticated identity. The meaning of this identifier is dependent on - * hba->auth_method; it is the identity (if any) that the user presented - * during the authentication cycle, before they were assigned a database - * role. (It is effectively the "SYSTEM-USERNAME" of a pg_ident usermap - * -- though the exact string in use may be different, depending on pg_hba - * options.) - * - * authn_id is NULL if the user has not actually been authenticated, for - * example if the "trust" auth method is in use. - */ - const char *authn_id; - - /* - * TCP keepalive and user timeout settings. - * - * default values are 0 if AF_UNIX or not yet known; current values are 0 - * if AF_UNIX or using the default. Also, -1 in a default value means we - * were unable to find out the default (getsockopt failed). - */ - int default_keepalives_idle; - int default_keepalives_interval; - int default_keepalives_count; - int default_tcp_user_timeout; - int keepalives_idle; - int keepalives_interval; - int keepalives_count; - int tcp_user_timeout; - - /* - * GSSAPI structures. - */ -#if defined(ENABLE_GSS) || defined(ENABLE_SSPI) - - /* - * If GSSAPI is supported and used on this connection, store GSSAPI - * information. Even when GSSAPI is not compiled in, store a NULL pointer - * to keep struct offsets the same (for extension ABI compatibility). - */ - pg_gssinfo *gss; -#else - void *gss; -#endif - - /* - * SSL structures. - */ - bool ssl_in_use; - char *peer_cn; - char *peer_dn; - bool peer_cert_valid; - - /* - * OpenSSL structures. (Keep these last so that the locations of other - * fields are the same whether or not you build with SSL enabled.) - */ -#ifdef USE_OPENSSL - SSL *ssl; - X509 *peer; -#endif -} Port; - -#ifdef USE_SSL -/* - * Hardcoded DH parameters, used in ephemeral DH keying. (See also - * README.SSL for more details on EDH.) - * - * This is the 2048-bit DH parameter from RFC 3526. The generation of the - * prime is specified in RFC 2412 Appendix E, which also discusses the - * design choice of the generator. Note that when loaded with OpenSSL - * this causes DH_check() to fail on DH_NOT_SUITABLE_GENERATOR, where - * leaking a bit is preferred. - */ -#define FILE_DH2048 \ -"-----BEGIN DH PARAMETERS-----\n\ -MIIBCAKCAQEA///////////JD9qiIWjCNMTGYouA3BzRKQJOCIpnzHQCC76mOxOb\n\ -IlFKCHmONATd75UZs806QxswKwpt8l8UN0/hNW1tUcJF5IW1dmJefsb0TELppjft\n\ -awv/XLb0Brft7jhr+1qJn6WunyQRfEsf5kkoZlHs5Fs9wgB8uKFjvwWY2kg2HFXT\n\ -mmkWP6j9JM9fg2VdI9yjrZYcYvNWIIVSu57VKQdwlpZtZww1Tkq8mATxdGwIyhgh\n\ -fDKQXkYuNs474553LBgOhgObJ4Oi7Aeij7XFXfBvTFLJ3ivL9pVYFxg5lUl86pVq\n\ -5RXSJhiY+gUQFXKOWoqsqmj//////////wIBAg==\n\ ------END DH PARAMETERS-----\n" - -/* - * These functions are implemented by the glue code specific to each - * SSL implementation (e.g. be-secure-openssl.c) - */ - -/* - * Initialize global SSL context. - * - * If isServerStart is true, report any errors as FATAL (so we don't return). - * Otherwise, log errors at LOG level and return -1 to indicate trouble, - * preserving the old SSL state if any. Returns 0 if OK. - */ -extern int be_tls_init(bool isServerStart); - -/* - * Destroy global SSL context, if any. - */ -extern void be_tls_destroy(void); - -/* - * Attempt to negotiate SSL connection. - */ -extern int be_tls_open_server(Port *port); - -/* - * Close SSL connection. - */ -extern void be_tls_close(Port *port); - -/* - * Read data from a secure connection. - */ -extern ssize_t be_tls_read(Port *port, void *ptr, size_t len, int *waitfor); - -/* - * Write data to a secure connection. - */ -extern ssize_t be_tls_write(Port *port, void *ptr, size_t len, int *waitfor); - -/* - * Return information about the SSL connection. - */ -extern int be_tls_get_cipher_bits(Port *port); -extern const char *be_tls_get_version(Port *port); -extern const char *be_tls_get_cipher(Port *port); -extern void be_tls_get_peer_subject_name(Port *port, char *ptr, size_t len); -extern void be_tls_get_peer_issuer_name(Port *port, char *ptr, size_t len); -extern void be_tls_get_peer_serial(Port *port, char *ptr, size_t len); - -/* - * Get the server certificate hash for SCRAM channel binding type - * tls-server-end-point. - * - * The result is a palloc'd hash of the server certificate with its - * size, and NULL if there is no certificate available. - * - * This is not supported with old versions of OpenSSL that don't have - * the X509_get_signature_nid() function. - */ -#if defined(USE_OPENSSL) && defined(HAVE_X509_GET_SIGNATURE_NID) -#define HAVE_BE_TLS_GET_CERTIFICATE_HASH -extern char *be_tls_get_certificate_hash(Port *port, size_t *len); -#endif - -/* init hook for SSL, the default sets the password callback if appropriate */ -#ifdef USE_OPENSSL -typedef void (*openssl_tls_init_hook_typ) (SSL_CTX *context, bool isServerStart); -extern PGDLLIMPORT openssl_tls_init_hook_typ openssl_tls_init_hook; -#endif - -#endif /* USE_SSL */ - -#ifdef ENABLE_GSS -/* - * Return information about the GSSAPI authenticated connection - */ -extern bool be_gssapi_get_auth(Port *port); -extern bool be_gssapi_get_enc(Port *port); -extern const char *be_gssapi_get_princ(Port *port); - -/* Read and write to a GSSAPI-encrypted connection. */ -extern ssize_t be_gssapi_read(Port *port, void *ptr, size_t len); -extern ssize_t be_gssapi_write(Port *port, void *ptr, size_t len); -#endif /* ENABLE_GSS */ - -extern PGDLLIMPORT ProtocolVersion FrontendProtocol; - -/* TCP keepalives configuration. These are no-ops on an AF_UNIX socket. */ - -extern int pq_getkeepalivesidle(Port *port); -extern int pq_getkeepalivesinterval(Port *port); -extern int pq_getkeepalivescount(Port *port); -extern int pq_gettcpusertimeout(Port *port); - -extern int pq_setkeepalivesidle(int idle, Port *port); -extern int pq_setkeepalivesinterval(int interval, Port *port); -extern int pq_setkeepalivescount(int count, Port *port); -extern int pq_settcpusertimeout(int timeout, Port *port); - -#endif /* LIBPQ_BE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/libpq.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/libpq.h deleted file mode 100644 index 2de7d9bad..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/libpq.h +++ /dev/null @@ -1,144 +0,0 @@ -/*------------------------------------------------------------------------- - * - * libpq.h - * POSTGRES LIBPQ buffer structure definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/libpq/libpq.h - * - *------------------------------------------------------------------------- - */ -#ifndef LIBPQ_H -#define LIBPQ_H - -#include - -#include "lib/stringinfo.h" -#include "libpq/libpq-be.h" -#include "storage/latch.h" - - -/* - * Callers of pq_getmessage() must supply a maximum expected message size. - * By convention, if there's not any specific reason to use another value, - * use PQ_SMALL_MESSAGE_LIMIT for messages that shouldn't be too long, and - * PQ_LARGE_MESSAGE_LIMIT for messages that can be long. - */ -#define PQ_SMALL_MESSAGE_LIMIT 10000 -#define PQ_LARGE_MESSAGE_LIMIT (MaxAllocSize - 1) - -typedef struct -{ - void (*comm_reset) (void); - int (*flush) (void); - int (*flush_if_writable) (void); - bool (*is_send_pending) (void); - int (*putmessage) (char msgtype, const char *s, size_t len); - void (*putmessage_noblock) (char msgtype, const char *s, size_t len); -} PQcommMethods; - -extern const PGDLLIMPORT PQcommMethods *PqCommMethods; - -#define pq_comm_reset() (PqCommMethods->comm_reset()) -#define pq_flush() (PqCommMethods->flush()) -#define pq_flush_if_writable() (PqCommMethods->flush_if_writable()) -#define pq_is_send_pending() (PqCommMethods->is_send_pending()) -#define pq_putmessage(msgtype, s, len) \ - (PqCommMethods->putmessage(msgtype, s, len)) -#define pq_putmessage_noblock(msgtype, s, len) \ - (PqCommMethods->putmessage_noblock(msgtype, s, len)) - -/* - * External functions. - */ - -/* - * prototypes for functions in pqcomm.c - */ -extern PGDLLIMPORT WaitEventSet *FeBeWaitSet; - -#define FeBeWaitSetSocketPos 0 -#define FeBeWaitSetLatchPos 1 -#define FeBeWaitSetNEvents 3 - -extern int StreamServerPort(int family, const char *hostName, - unsigned short portNumber, const char *unixSocketDir, - pgsocket ListenSocket[], int MaxListen); -extern int StreamConnection(pgsocket server_fd, Port *port); -extern void StreamClose(pgsocket sock); -extern void TouchSocketFiles(void); -extern void RemoveSocketFiles(void); -extern void pq_init(void); -extern int pq_getbytes(char *s, size_t len); -extern void pq_startmsgread(void); -extern void pq_endmsgread(void); -extern bool pq_is_reading_msg(void); -extern int pq_getmessage(StringInfo s, int maxlen); -extern int pq_getbyte(void); -extern int pq_peekbyte(void); -extern int pq_getbyte_if_available(unsigned char *c); -extern bool pq_buffer_has_data(void); -extern int pq_putmessage_v2(char msgtype, const char *s, size_t len); -extern bool pq_check_connection(void); - -/* - * prototypes for functions in be-secure.c - */ -extern PGDLLIMPORT char *ssl_library; -extern PGDLLIMPORT char *ssl_cert_file; -extern PGDLLIMPORT char *ssl_key_file; -extern PGDLLIMPORT char *ssl_ca_file; -extern PGDLLIMPORT char *ssl_crl_file; -extern PGDLLIMPORT char *ssl_crl_dir; -extern PGDLLIMPORT char *ssl_dh_params_file; -extern PGDLLIMPORT char *ssl_passphrase_command; -extern PGDLLIMPORT bool ssl_passphrase_command_supports_reload; -#ifdef USE_SSL -extern PGDLLIMPORT bool ssl_loaded_verify_locations; -#endif - -extern int secure_initialize(bool isServerStart); -extern bool secure_loaded_verify_locations(void); -extern void secure_destroy(void); -extern int secure_open_server(Port *port); -extern void secure_close(Port *port); -extern ssize_t secure_read(Port *port, void *ptr, size_t len); -extern ssize_t secure_write(Port *port, void *ptr, size_t len); -extern ssize_t secure_raw_read(Port *port, void *ptr, size_t len); -extern ssize_t secure_raw_write(Port *port, const void *ptr, size_t len); - -/* - * prototypes for functions in be-secure-gssapi.c - */ -#ifdef ENABLE_GSS -extern ssize_t secure_open_gssapi(Port *port); -#endif - -/* GUCs */ -extern PGDLLIMPORT char *SSLCipherSuites; -extern PGDLLIMPORT char *SSLECDHCurve; -extern PGDLLIMPORT bool SSLPreferServerCiphers; -extern PGDLLIMPORT int ssl_min_protocol_version; -extern PGDLLIMPORT int ssl_max_protocol_version; - -enum ssl_protocol_versions -{ - PG_TLS_ANY = 0, - PG_TLS1_VERSION, - PG_TLS1_1_VERSION, - PG_TLS1_2_VERSION, - PG_TLS1_3_VERSION, -}; - -/* - * prototypes for functions in be-secure-common.c - */ -extern int run_ssl_passphrase_command(const char *prompt, bool is_server_start, - char *buf, int size); -extern bool check_ssl_key_file_permissions(const char *ssl_key_file, - bool isServerStart); - -#endif /* LIBPQ_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/pqcomm.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/pqcomm.h deleted file mode 100644 index b418283d5..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/pqcomm.h +++ /dev/null @@ -1,194 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pqcomm.h - * Definitions common to frontends and backends. - * - * NOTE: for historical reasons, this does not correspond to pqcomm.c. - * pqcomm.c's routines are declared in libpq.h. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/libpq/pqcomm.h - * - *------------------------------------------------------------------------- - */ -#ifndef PQCOMM_H -#define PQCOMM_H - -#include -#include -#ifdef HAVE_SYS_UN_H -#include -#endif -#include - -#ifdef HAVE_STRUCT_SOCKADDR_STORAGE - -#ifndef HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY -#ifdef HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY -#define ss_family __ss_family -#else -#error struct sockaddr_storage does not provide an ss_family member -#endif -#endif - -#ifdef HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN -#define ss_len __ss_len -#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1 -#endif -#else /* !HAVE_STRUCT_SOCKADDR_STORAGE */ - -/* Define a struct sockaddr_storage if we don't have one. */ - -struct sockaddr_storage -{ - union - { - struct sockaddr sa; /* get the system-dependent fields */ - int64 ss_align; /* ensures struct is properly aligned */ - char ss_pad[128]; /* ensures struct has desired size */ - } ss_stuff; -}; - -#define ss_family ss_stuff.sa.sa_family -/* It should have an ss_len field if sockaddr has sa_len. */ -#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN -#define ss_len ss_stuff.sa.sa_len -#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1 -#endif -#endif /* HAVE_STRUCT_SOCKADDR_STORAGE */ - -typedef struct -{ - struct sockaddr_storage addr; - socklen_t salen; -} SockAddr; - -/* Configure the UNIX socket location for the well known port. */ - -#define UNIXSOCK_PATH(path, port, sockdir) \ - (AssertMacro(sockdir), \ - AssertMacro(*(sockdir) != '\0'), \ - snprintf(path, sizeof(path), "%s/.s.PGSQL.%d", \ - (sockdir), (port))) - -/* - * The maximum workable length of a socket path is what will fit into - * struct sockaddr_un. This is usually only 100 or so bytes :-(. - * - * For consistency, always pass a MAXPGPATH-sized buffer to UNIXSOCK_PATH(), - * then complain if the resulting string is >= UNIXSOCK_PATH_BUFLEN bytes. - * (Because the standard API for getaddrinfo doesn't allow it to complain in - * a useful way when the socket pathname is too long, we have to test for - * this explicitly, instead of just letting the subroutine return an error.) - */ -#define UNIXSOCK_PATH_BUFLEN sizeof(((struct sockaddr_un *) NULL)->sun_path) - -/* - * A host that looks either like an absolute path or starts with @ is - * interpreted as a Unix-domain socket address. - */ -static inline bool -is_unixsock_path(const char *path) -{ - return is_absolute_path(path) || path[0] == '@'; -} - -/* - * These manipulate the frontend/backend protocol version number. - * - * The major number should be incremented for incompatible changes. The minor - * number should be incremented for compatible changes (eg. additional - * functionality). - * - * If a backend supports version m.n of the protocol it must actually support - * versions m.[0..n]. Backend support for version m-1 can be dropped after a - * `reasonable' length of time. - * - * A frontend isn't required to support anything other than the current - * version. - */ - -#define PG_PROTOCOL_MAJOR(v) ((v) >> 16) -#define PG_PROTOCOL_MINOR(v) ((v) & 0x0000ffff) -#define PG_PROTOCOL(m,n) (((m) << 16) | (n)) - -/* - * The earliest and latest frontend/backend protocol version supported. - * (Only protocol version 3 is currently supported) - */ - -#define PG_PROTOCOL_EARLIEST PG_PROTOCOL(3,0) -#define PG_PROTOCOL_LATEST PG_PROTOCOL(3,0) - -typedef uint32 ProtocolVersion; /* FE/BE protocol version number */ - -typedef ProtocolVersion MsgType; - - -/* - * Packet lengths are 4 bytes in network byte order. - * - * The initial length is omitted from the packet layouts appearing below. - */ - -typedef uint32 PacketLen; - -extern PGDLLIMPORT bool Db_user_namespace; - -/* - * In protocol 3.0 and later, the startup packet length is not fixed, but - * we set an arbitrary limit on it anyway. This is just to prevent simple - * denial-of-service attacks via sending enough data to run the server - * out of memory. - */ -#define MAX_STARTUP_PACKET_LENGTH 10000 - - -/* These are the authentication request codes sent by the backend. */ - -#define AUTH_REQ_OK 0 /* User is authenticated */ -#define AUTH_REQ_KRB4 1 /* Kerberos V4. Not supported any more. */ -#define AUTH_REQ_KRB5 2 /* Kerberos V5. Not supported any more. */ -#define AUTH_REQ_PASSWORD 3 /* Password */ -#define AUTH_REQ_CRYPT 4 /* crypt password. Not supported any more. */ -#define AUTH_REQ_MD5 5 /* md5 password */ -#define AUTH_REQ_SCM_CREDS 6 /* transfer SCM credentials */ -#define AUTH_REQ_GSS 7 /* GSSAPI without wrap() */ -#define AUTH_REQ_GSS_CONT 8 /* Continue GSS exchanges */ -#define AUTH_REQ_SSPI 9 /* SSPI negotiate without wrap() */ -#define AUTH_REQ_SASL 10 /* Begin SASL authentication */ -#define AUTH_REQ_SASL_CONT 11 /* Continue SASL authentication */ -#define AUTH_REQ_SASL_FIN 12 /* Final SASL message */ - -typedef uint32 AuthRequest; - - -/* - * A client can also send a cancel-current-operation request to the postmaster. - * This is uglier than sending it directly to the client's backend, but it - * avoids depending on out-of-band communication facilities. - * - * The cancel request code must not match any protocol version number - * we're ever likely to use. This random choice should do. - */ -#define CANCEL_REQUEST_CODE PG_PROTOCOL(1234,5678) - -typedef struct CancelRequestPacket -{ - /* Note that each field is stored in network byte order! */ - MsgType cancelRequestCode; /* code to identify a cancel request */ - uint32 backendPID; /* PID of client's backend */ - uint32 cancelAuthCode; /* secret key to authorize cancel */ -} CancelRequestPacket; - - -/* - * A client can also start by sending a SSL or GSSAPI negotiation request to - * get a secure channel. - */ -#define NEGOTIATE_SSL_CODE PG_PROTOCOL(1234,5679) -#define NEGOTIATE_GSS_CODE PG_PROTOCOL(1234,5680) - -#endif /* PQCOMM_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/pqformat.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/pqformat.h deleted file mode 100644 index cd8348259..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/pqformat.h +++ /dev/null @@ -1,210 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pqformat.h - * Definitions for formatting and parsing frontend/backend messages - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/libpq/pqformat.h - * - *------------------------------------------------------------------------- - */ -#ifndef PQFORMAT_H -#define PQFORMAT_H - -#include "lib/stringinfo.h" -#include "mb/pg_wchar.h" -#include "port/pg_bswap.h" - -extern void pq_beginmessage(StringInfo buf, char msgtype); -extern void pq_beginmessage_reuse(StringInfo buf, char msgtype); -extern void pq_endmessage(StringInfo buf); -extern void pq_endmessage_reuse(StringInfo buf); - -extern void pq_sendbytes(StringInfo buf, const char *data, int datalen); -extern void pq_sendcountedtext(StringInfo buf, const char *str, int slen, - bool countincludesself); -extern void pq_sendtext(StringInfo buf, const char *str, int slen); -extern void pq_sendstring(StringInfo buf, const char *str); -extern void pq_send_ascii_string(StringInfo buf, const char *str); -extern void pq_sendfloat4(StringInfo buf, float4 f); -extern void pq_sendfloat8(StringInfo buf, float8 f); - -/* - * Append a [u]int8 to a StringInfo buffer, which already has enough space - * preallocated. - * - * The use of pg_restrict allows the compiler to optimize the code based on - * the assumption that buf, buf->len, buf->data and *buf->data don't - * overlap. Without the annotation buf->len etc cannot be kept in a register - * over subsequent pq_writeintN calls. - * - * The use of StringInfoData * rather than StringInfo is due to MSVC being - * overly picky and demanding a * before a restrict. - */ -static inline void -pq_writeint8(StringInfoData *pg_restrict buf, uint8 i) -{ - uint8 ni = i; - - Assert(buf->len + (int) sizeof(uint8) <= buf->maxlen); - memcpy((char *pg_restrict) (buf->data + buf->len), &ni, sizeof(uint8)); - buf->len += sizeof(uint8); -} - -/* - * Append a [u]int16 to a StringInfo buffer, which already has enough space - * preallocated. - */ -static inline void -pq_writeint16(StringInfoData *pg_restrict buf, uint16 i) -{ - uint16 ni = pg_hton16(i); - - Assert(buf->len + (int) sizeof(uint16) <= buf->maxlen); - memcpy((char *pg_restrict) (buf->data + buf->len), &ni, sizeof(uint16)); - buf->len += sizeof(uint16); -} - -/* - * Append a [u]int32 to a StringInfo buffer, which already has enough space - * preallocated. - */ -static inline void -pq_writeint32(StringInfoData *pg_restrict buf, uint32 i) -{ - uint32 ni = pg_hton32(i); - - Assert(buf->len + (int) sizeof(uint32) <= buf->maxlen); - memcpy((char *pg_restrict) (buf->data + buf->len), &ni, sizeof(uint32)); - buf->len += sizeof(uint32); -} - -/* - * Append a [u]int64 to a StringInfo buffer, which already has enough space - * preallocated. - */ -static inline void -pq_writeint64(StringInfoData *pg_restrict buf, uint64 i) -{ - uint64 ni = pg_hton64(i); - - Assert(buf->len + (int) sizeof(uint64) <= buf->maxlen); - memcpy((char *pg_restrict) (buf->data + buf->len), &ni, sizeof(uint64)); - buf->len += sizeof(uint64); -} - -/* - * Append a null-terminated text string (with conversion) to a buffer with - * preallocated space. - * - * NB: The pre-allocated space needs to be sufficient for the string after - * converting to client encoding. - * - * NB: passed text string must be null-terminated, and so is the data - * sent to the frontend. - */ -static inline void -pq_writestring(StringInfoData *pg_restrict buf, const char *pg_restrict str) -{ - int slen = strlen(str); - char *p; - - p = pg_server_to_client(str, slen); - if (p != str) /* actual conversion has been done? */ - slen = strlen(p); - - Assert(buf->len + slen + 1 <= buf->maxlen); - - memcpy(((char *pg_restrict) buf->data + buf->len), p, slen + 1); - buf->len += slen + 1; - - if (p != str) - pfree(p); -} - -/* append a binary [u]int8 to a StringInfo buffer */ -static inline void -pq_sendint8(StringInfo buf, uint8 i) -{ - enlargeStringInfo(buf, sizeof(uint8)); - pq_writeint8(buf, i); -} - -/* append a binary [u]int16 to a StringInfo buffer */ -static inline void -pq_sendint16(StringInfo buf, uint16 i) -{ - enlargeStringInfo(buf, sizeof(uint16)); - pq_writeint16(buf, i); -} - -/* append a binary [u]int32 to a StringInfo buffer */ -static inline void -pq_sendint32(StringInfo buf, uint32 i) -{ - enlargeStringInfo(buf, sizeof(uint32)); - pq_writeint32(buf, i); -} - -/* append a binary [u]int64 to a StringInfo buffer */ -static inline void -pq_sendint64(StringInfo buf, uint64 i) -{ - enlargeStringInfo(buf, sizeof(uint64)); - pq_writeint64(buf, i); -} - -/* append a binary byte to a StringInfo buffer */ -static inline void -pq_sendbyte(StringInfo buf, uint8 byt) -{ - pq_sendint8(buf, byt); -} - -/* - * Append a binary integer to a StringInfo buffer - * - * This function is deprecated; prefer use of the functions above. - */ -static inline void -pq_sendint(StringInfo buf, uint32 i, int b) -{ - switch (b) - { - case 1: - pq_sendint8(buf, (uint8) i); - break; - case 2: - pq_sendint16(buf, (uint16) i); - break; - case 4: - pq_sendint32(buf, (uint32) i); - break; - default: - elog(ERROR, "unsupported integer size %d", b); - break; - } -} - - -extern void pq_begintypsend(StringInfo buf); -extern bytea *pq_endtypsend(StringInfo buf); - -extern void pq_puttextmessage(char msgtype, const char *str); -extern void pq_putemptymessage(char msgtype); - -extern int pq_getmsgbyte(StringInfo msg); -extern unsigned int pq_getmsgint(StringInfo msg, int b); -extern int64 pq_getmsgint64(StringInfo msg); -extern float4 pq_getmsgfloat4(StringInfo msg); -extern float8 pq_getmsgfloat8(StringInfo msg); -extern const char *pq_getmsgbytes(StringInfo msg, int datalen); -extern void pq_copymsgbytes(StringInfo msg, char *buf, int datalen); -extern char *pq_getmsgtext(StringInfo msg, int rawbytes, int *nbytes); -extern const char *pq_getmsgstring(StringInfo msg); -extern const char *pq_getmsgrawstring(StringInfo msg); -extern void pq_getmsgend(StringInfo msg); - -#endif /* PQFORMAT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/pqsignal.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/pqsignal.h deleted file mode 100644 index 41227a30e..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/libpq/pqsignal.h +++ /dev/null @@ -1,42 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pqsignal.h - * Backend signal(2) support (see also src/port/pqsignal.c) - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/libpq/pqsignal.h - * - *------------------------------------------------------------------------- - */ -#ifndef PQSIGNAL_H -#define PQSIGNAL_H - -#include - -#ifndef WIN32 -#define PG_SETMASK(mask) sigprocmask(SIG_SETMASK, mask, NULL) -#else -/* Emulate POSIX sigset_t APIs on Windows */ -typedef int sigset_t; - -extern int pqsigsetmask(int mask); - -#define PG_SETMASK(mask) pqsigsetmask(*(mask)) -#define sigemptyset(set) (*(set) = 0) -#define sigfillset(set) (*(set) = ~0) -#define sigaddset(set, signum) (*(set) |= (sigmask(signum))) -#define sigdelset(set, signum) (*(set) &= ~(sigmask(signum))) -#endif /* WIN32 */ - -extern PGDLLIMPORT sigset_t UnBlockSig; -extern PGDLLIMPORT sigset_t BlockSig; -extern PGDLLIMPORT sigset_t StartupBlockSig; - -extern void pqinitmask(void); - -/* pqsigfunc is declared in src/include/port.h */ -extern pqsigfunc pqsignal_pm(int signo, pqsigfunc func); - -#endif /* PQSIGNAL_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/mb/pg_wchar.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/mb/pg_wchar.h deleted file mode 100644 index 31f5b393d..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/mb/pg_wchar.h +++ /dev/null @@ -1,755 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_wchar.h - * multibyte-character support - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/mb/pg_wchar.h - * - * NOTES - * This is used both by the backend and by frontends, but should not be - * included by libpq client programs. In particular, a libpq client - * should not assume that the encoding IDs used by the version of libpq - * it's linked to match up with the IDs declared here. - * - *------------------------------------------------------------------------- - */ -#ifndef PG_WCHAR_H -#define PG_WCHAR_H - -/* - * The pg_wchar type - */ -typedef unsigned int pg_wchar; - -/* - * Maximum byte length of multibyte characters in any backend encoding - */ -#define MAX_MULTIBYTE_CHAR_LEN 4 - -/* - * various definitions for EUC - */ -#define SS2 0x8e /* single shift 2 (JIS0201) */ -#define SS3 0x8f /* single shift 3 (JIS0212) */ - -/* - * SJIS validation macros - */ -#define ISSJISHEAD(c) (((c) >= 0x81 && (c) <= 0x9f) || ((c) >= 0xe0 && (c) <= 0xfc)) -#define ISSJISTAIL(c) (((c) >= 0x40 && (c) <= 0x7e) || ((c) >= 0x80 && (c) <= 0xfc)) - -/*---------------------------------------------------- - * MULE Internal Encoding (MIC) - * - * This encoding follows the design used within XEmacs; it is meant to - * subsume many externally-defined character sets. Each character includes - * identification of the character set it belongs to, so the encoding is - * general but somewhat bulky. - * - * Currently PostgreSQL supports 5 types of MULE character sets: - * - * 1) 1-byte ASCII characters. Each byte is below 0x80. - * - * 2) "Official" single byte charsets such as ISO-8859-1 (Latin1). - * Each MULE character consists of 2 bytes: LC1 + C1, where LC1 is - * an identifier for the charset (in the range 0x81 to 0x8d) and C1 - * is the character code (in the range 0xa0 to 0xff). - * - * 3) "Private" single byte charsets such as SISHENG. Each MULE - * character consists of 3 bytes: LCPRV1 + LC12 + C1, where LCPRV1 - * is a private-charset flag, LC12 is an identifier for the charset, - * and C1 is the character code (in the range 0xa0 to 0xff). - * LCPRV1 is either 0x9a (if LC12 is in the range 0xa0 to 0xdf) - * or 0x9b (if LC12 is in the range 0xe0 to 0xef). - * - * 4) "Official" multibyte charsets such as JIS X0208. Each MULE - * character consists of 3 bytes: LC2 + C1 + C2, where LC2 is - * an identifier for the charset (in the range 0x90 to 0x99) and C1 - * and C2 form the character code (each in the range 0xa0 to 0xff). - * - * 5) "Private" multibyte charsets such as CNS 11643-1992 Plane 3. - * Each MULE character consists of 4 bytes: LCPRV2 + LC22 + C1 + C2, - * where LCPRV2 is a private-charset flag, LC22 is an identifier for - * the charset, and C1 and C2 form the character code (each in the range - * 0xa0 to 0xff). LCPRV2 is either 0x9c (if LC22 is in the range 0xf0 - * to 0xf4) or 0x9d (if LC22 is in the range 0xf5 to 0xfe). - * - * "Official" encodings are those that have been assigned code numbers by - * the XEmacs project; "private" encodings have Postgres-specific charset - * identifiers. - * - * See the "XEmacs Internals Manual", available at http://www.xemacs.org, - * for more details. Note that for historical reasons, Postgres' - * private-charset flag values do not match what XEmacs says they should be, - * so this isn't really exactly MULE (not that private charsets would be - * interoperable anyway). - * - * Note that XEmacs's implementation is different from what emacs does. - * We follow emacs's implementation, rather than XEmacs's. - *---------------------------------------------------- - */ - -/* - * Charset identifiers (also called "leading bytes" in the MULE documentation) - */ - -/* - * Charset IDs for official single byte encodings (0x81-0x8e) - */ -#define LC_ISO8859_1 0x81 /* ISO8859 Latin 1 */ -#define LC_ISO8859_2 0x82 /* ISO8859 Latin 2 */ -#define LC_ISO8859_3 0x83 /* ISO8859 Latin 3 */ -#define LC_ISO8859_4 0x84 /* ISO8859 Latin 4 */ -#define LC_TIS620 0x85 /* Thai (not supported yet) */ -#define LC_ISO8859_7 0x86 /* Greek (not supported yet) */ -#define LC_ISO8859_6 0x87 /* Arabic (not supported yet) */ -#define LC_ISO8859_8 0x88 /* Hebrew (not supported yet) */ -#define LC_JISX0201K 0x89 /* Japanese 1 byte kana */ -#define LC_JISX0201R 0x8a /* Japanese 1 byte Roman */ -/* Note that 0x8b seems to be unused as of Emacs 20.7. - * However, there might be a chance that 0x8b could be used - * in later versions of Emacs. - */ -#define LC_KOI8_R 0x8b /* Cyrillic KOI8-R */ -#define LC_ISO8859_5 0x8c /* ISO8859 Cyrillic */ -#define LC_ISO8859_9 0x8d /* ISO8859 Latin 5 (not supported yet) */ -#define LC_ISO8859_15 0x8e /* ISO8859 Latin 15 (not supported yet) */ -/* #define CONTROL_1 0x8f control characters (unused) */ - -/* Is a leading byte for "official" single byte encodings? */ -#define IS_LC1(c) ((unsigned char)(c) >= 0x81 && (unsigned char)(c) <= 0x8d) - -/* - * Charset IDs for official multibyte encodings (0x90-0x99) - * 0x9a-0x9d are free. 0x9e and 0x9f are reserved. - */ -#define LC_JISX0208_1978 0x90 /* Japanese Kanji, old JIS (not supported) */ -#define LC_GB2312_80 0x91 /* Chinese */ -#define LC_JISX0208 0x92 /* Japanese Kanji (JIS X 0208) */ -#define LC_KS5601 0x93 /* Korean */ -#define LC_JISX0212 0x94 /* Japanese Kanji (JIS X 0212) */ -#define LC_CNS11643_1 0x95 /* CNS 11643-1992 Plane 1 */ -#define LC_CNS11643_2 0x96 /* CNS 11643-1992 Plane 2 */ -#define LC_JISX0213_1 0x97 /* Japanese Kanji (JIS X 0213 Plane 1) - * (not supported) */ -#define LC_BIG5_1 0x98 /* Plane 1 Chinese traditional (not - * supported) */ -#define LC_BIG5_2 0x99 /* Plane 1 Chinese traditional (not - * supported) */ - -/* Is a leading byte for "official" multibyte encodings? */ -#define IS_LC2(c) ((unsigned char)(c) >= 0x90 && (unsigned char)(c) <= 0x99) - -/* - * Postgres-specific prefix bytes for "private" single byte encodings - * (According to the MULE docs, we should be using 0x9e for this) - */ -#define LCPRV1_A 0x9a -#define LCPRV1_B 0x9b -#define IS_LCPRV1(c) ((unsigned char)(c) == LCPRV1_A || (unsigned char)(c) == LCPRV1_B) -#define IS_LCPRV1_A_RANGE(c) \ - ((unsigned char)(c) >= 0xa0 && (unsigned char)(c) <= 0xdf) -#define IS_LCPRV1_B_RANGE(c) \ - ((unsigned char)(c) >= 0xe0 && (unsigned char)(c) <= 0xef) - -/* - * Postgres-specific prefix bytes for "private" multibyte encodings - * (According to the MULE docs, we should be using 0x9f for this) - */ -#define LCPRV2_A 0x9c -#define LCPRV2_B 0x9d -#define IS_LCPRV2(c) ((unsigned char)(c) == LCPRV2_A || (unsigned char)(c) == LCPRV2_B) -#define IS_LCPRV2_A_RANGE(c) \ - ((unsigned char)(c) >= 0xf0 && (unsigned char)(c) <= 0xf4) -#define IS_LCPRV2_B_RANGE(c) \ - ((unsigned char)(c) >= 0xf5 && (unsigned char)(c) <= 0xfe) - -/* - * Charset IDs for private single byte encodings (0xa0-0xef) - */ -#define LC_SISHENG 0xa0 /* Chinese SiSheng characters for - * PinYin/ZhuYin (not supported) */ -#define LC_IPA 0xa1 /* IPA (International Phonetic - * Association) (not supported) */ -#define LC_VISCII_LOWER 0xa2 /* Vietnamese VISCII1.1 lower-case (not - * supported) */ -#define LC_VISCII_UPPER 0xa3 /* Vietnamese VISCII1.1 upper-case (not - * supported) */ -#define LC_ARABIC_DIGIT 0xa4 /* Arabic digit (not supported) */ -#define LC_ARABIC_1_COLUMN 0xa5 /* Arabic 1-column (not supported) */ -#define LC_ASCII_RIGHT_TO_LEFT 0xa6 /* ASCII (left half of ISO8859-1) with - * right-to-left direction (not - * supported) */ -#define LC_LAO 0xa7 /* Lao characters (ISO10646 0E80..0EDF) - * (not supported) */ -#define LC_ARABIC_2_COLUMN 0xa8 /* Arabic 1-column (not supported) */ - -/* - * Charset IDs for private multibyte encodings (0xf0-0xff) - */ -#define LC_INDIAN_1_COLUMN 0xf0 /* Indian charset for 1-column width - * glyphs (not supported) */ -#define LC_TIBETAN_1_COLUMN 0xf1 /* Tibetan 1-column width glyphs (not - * supported) */ -#define LC_UNICODE_SUBSET_2 0xf2 /* Unicode characters of the range - * U+2500..U+33FF. (not supported) */ -#define LC_UNICODE_SUBSET_3 0xf3 /* Unicode characters of the range - * U+E000..U+FFFF. (not supported) */ -#define LC_UNICODE_SUBSET 0xf4 /* Unicode characters of the range - * U+0100..U+24FF. (not supported) */ -#define LC_ETHIOPIC 0xf5 /* Ethiopic characters (not supported) */ -#define LC_CNS11643_3 0xf6 /* CNS 11643-1992 Plane 3 */ -#define LC_CNS11643_4 0xf7 /* CNS 11643-1992 Plane 4 */ -#define LC_CNS11643_5 0xf8 /* CNS 11643-1992 Plane 5 */ -#define LC_CNS11643_6 0xf9 /* CNS 11643-1992 Plane 6 */ -#define LC_CNS11643_7 0xfa /* CNS 11643-1992 Plane 7 */ -#define LC_INDIAN_2_COLUMN 0xfb /* Indian charset for 2-column width - * glyphs (not supported) */ -#define LC_TIBETAN 0xfc /* Tibetan (not supported) */ -/* #define FREE 0xfd free (unused) */ -/* #define FREE 0xfe free (unused) */ -/* #define FREE 0xff free (unused) */ - -/*---------------------------------------------------- - * end of MULE stuff - *---------------------------------------------------- - */ - -/* - * PostgreSQL encoding identifiers - * - * WARNING: the order of this enum must be same as order of entries - * in the pg_enc2name_tbl[] array (in src/common/encnames.c), and - * in the pg_wchar_table[] array (in src/common/wchar.c)! - * - * If you add some encoding don't forget to check - * PG_ENCODING_BE_LAST macro. - * - * PG_SQL_ASCII is default encoding and must be = 0. - * - * XXX We must avoid renumbering any backend encoding until libpq's major - * version number is increased beyond 5; it turns out that the backend - * encoding IDs are effectively part of libpq's ABI as far as 8.2 initdb and - * psql are concerned. - */ -typedef enum pg_enc -{ - PG_SQL_ASCII = 0, /* SQL/ASCII */ - PG_EUC_JP, /* EUC for Japanese */ - PG_EUC_CN, /* EUC for Chinese */ - PG_EUC_KR, /* EUC for Korean */ - PG_EUC_TW, /* EUC for Taiwan */ - PG_EUC_JIS_2004, /* EUC-JIS-2004 */ - PG_UTF8, /* Unicode UTF8 */ - PG_MULE_INTERNAL, /* Mule internal code */ - PG_LATIN1, /* ISO-8859-1 Latin 1 */ - PG_LATIN2, /* ISO-8859-2 Latin 2 */ - PG_LATIN3, /* ISO-8859-3 Latin 3 */ - PG_LATIN4, /* ISO-8859-4 Latin 4 */ - PG_LATIN5, /* ISO-8859-9 Latin 5 */ - PG_LATIN6, /* ISO-8859-10 Latin6 */ - PG_LATIN7, /* ISO-8859-13 Latin7 */ - PG_LATIN8, /* ISO-8859-14 Latin8 */ - PG_LATIN9, /* ISO-8859-15 Latin9 */ - PG_LATIN10, /* ISO-8859-16 Latin10 */ - PG_WIN1256, /* windows-1256 */ - PG_WIN1258, /* Windows-1258 */ - PG_WIN866, /* (MS-DOS CP866) */ - PG_WIN874, /* windows-874 */ - PG_KOI8R, /* KOI8-R */ - PG_WIN1251, /* windows-1251 */ - PG_WIN1252, /* windows-1252 */ - PG_ISO_8859_5, /* ISO-8859-5 */ - PG_ISO_8859_6, /* ISO-8859-6 */ - PG_ISO_8859_7, /* ISO-8859-7 */ - PG_ISO_8859_8, /* ISO-8859-8 */ - PG_WIN1250, /* windows-1250 */ - PG_WIN1253, /* windows-1253 */ - PG_WIN1254, /* windows-1254 */ - PG_WIN1255, /* windows-1255 */ - PG_WIN1257, /* windows-1257 */ - PG_KOI8U, /* KOI8-U */ - /* PG_ENCODING_BE_LAST points to the above entry */ - - /* followings are for client encoding only */ - PG_SJIS, /* Shift JIS (Windows-932) */ - PG_BIG5, /* Big5 (Windows-950) */ - PG_GBK, /* GBK (Windows-936) */ - PG_UHC, /* UHC (Windows-949) */ - PG_GB18030, /* GB18030 */ - PG_JOHAB, /* EUC for Korean JOHAB */ - PG_SHIFT_JIS_2004, /* Shift-JIS-2004 */ - _PG_LAST_ENCODING_ /* mark only */ - -} pg_enc; - -#define PG_ENCODING_BE_LAST PG_KOI8U - -/* - * Please use these tests before access to pg_enc2name_tbl[] - * or to other places... - */ -#define PG_VALID_BE_ENCODING(_enc) \ - ((_enc) >= 0 && (_enc) <= PG_ENCODING_BE_LAST) - -#define PG_ENCODING_IS_CLIENT_ONLY(_enc) \ - ((_enc) > PG_ENCODING_BE_LAST && (_enc) < _PG_LAST_ENCODING_) - -#define PG_VALID_ENCODING(_enc) \ - ((_enc) >= 0 && (_enc) < _PG_LAST_ENCODING_) - -/* On FE are possible all encodings */ -#define PG_VALID_FE_ENCODING(_enc) PG_VALID_ENCODING(_enc) - -/* - * When converting strings between different encodings, we assume that space - * for converted result is 4-to-1 growth in the worst case. The rate for - * currently supported encoding pairs are within 3 (SJIS JIS X0201 half width - * kana -> UTF8 is the worst case). So "4" should be enough for the moment. - * - * Note that this is not the same as the maximum character width in any - * particular encoding. - */ -#define MAX_CONVERSION_GROWTH 4 - -/* - * Maximum byte length of a string that's required in any encoding to convert - * at least one character to any other encoding. In other words, if you feed - * MAX_CONVERSION_INPUT_LENGTH bytes to any encoding conversion function, it - * is guaranteed to be able to convert something without needing more input - * (assuming the input is valid). - * - * Currently, the maximum case is the conversion UTF8 -> SJIS JIS X0201 half - * width kana, where a pair of UTF-8 characters is converted into a single - * SHIFT_JIS_2004 character (the reverse of the worst case for - * MAX_CONVERSION_GROWTH). It needs 6 bytes of input. In theory, a - * user-defined conversion function might have more complicated cases, although - * for the reverse mapping you would probably also need to bump up - * MAX_CONVERSION_GROWTH. But there is no need to be stingy here, so make it - * generous. - */ -#define MAX_CONVERSION_INPUT_LENGTH 16 - -/* - * Maximum byte length of the string equivalent to any one Unicode code point, - * in any backend encoding. The current value assumes that a 4-byte UTF-8 - * character might expand by MAX_CONVERSION_GROWTH, which is a huge - * overestimate. But in current usage we don't allocate large multiples of - * this, so there's little point in being stingy. - */ -#define MAX_UNICODE_EQUIVALENT_STRING 16 - -/* - * Table for mapping an encoding number to official encoding name and - * possibly other subsidiary data. Be careful to check encoding number - * before accessing a table entry! - * - * if (PG_VALID_ENCODING(encoding)) - * pg_enc2name_tbl[ encoding ]; - */ -typedef struct pg_enc2name -{ - const char *name; - pg_enc encoding; -#ifdef WIN32 - unsigned codepage; /* codepage for WIN32 */ -#endif -} pg_enc2name; - -extern PGDLLIMPORT const pg_enc2name pg_enc2name_tbl[]; - -/* - * Encoding names for gettext - */ -typedef struct pg_enc2gettext -{ - pg_enc encoding; - const char *name; -} pg_enc2gettext; - -extern PGDLLIMPORT const pg_enc2gettext pg_enc2gettext_tbl[]; - -/* - * pg_wchar stuff - */ -typedef int (*mb2wchar_with_len_converter) (const unsigned char *from, - pg_wchar *to, - int len); - -typedef int (*wchar2mb_with_len_converter) (const pg_wchar *from, - unsigned char *to, - int len); - -typedef int (*mblen_converter) (const unsigned char *mbstr); - -typedef int (*mbdisplaylen_converter) (const unsigned char *mbstr); - -typedef bool (*mbcharacter_incrementer) (unsigned char *mbstr, int len); - -typedef int (*mbchar_verifier) (const unsigned char *mbstr, int len); - -typedef int (*mbstr_verifier) (const unsigned char *mbstr, int len); - -typedef struct -{ - mb2wchar_with_len_converter mb2wchar_with_len; /* convert a multibyte - * string to a wchar */ - wchar2mb_with_len_converter wchar2mb_with_len; /* convert a wchar string - * to a multibyte */ - mblen_converter mblen; /* get byte length of a char */ - mbdisplaylen_converter dsplen; /* get display width of a char */ - mbchar_verifier mbverifychar; /* verify multibyte character */ - mbstr_verifier mbverifystr; /* verify multibyte string */ - int maxmblen; /* max bytes for a char in this encoding */ -} pg_wchar_tbl; - -extern PGDLLIMPORT const pg_wchar_tbl pg_wchar_table[]; - -/* - * Data structures for conversions between UTF-8 and other encodings - * (UtfToLocal() and LocalToUtf()). In these data structures, characters of - * either encoding are represented by uint32 words; hence we can only support - * characters up to 4 bytes long. For example, the byte sequence 0xC2 0x89 - * would be represented by 0x0000C289, and 0xE8 0xA2 0xB4 by 0x00E8A2B4. - * - * There are three possible ways a character can be mapped: - * - * 1. Using a radix tree, from source to destination code. - * 2. Using a sorted array of source -> destination code pairs. This - * method is used for "combining" characters. There are so few of - * them that building a radix tree would be wasteful. - * 3. Using a conversion function. - */ - -/* - * Radix tree for character conversion. - * - * Logically, this is actually four different radix trees, for 1-byte, - * 2-byte, 3-byte and 4-byte inputs. The 1-byte tree is a simple lookup - * table from source to target code. The 2-byte tree consists of two levels: - * one lookup table for the first byte, where the value in the lookup table - * points to a lookup table for the second byte. And so on. - * - * Physically, all the trees are stored in one big array, in 'chars16' or - * 'chars32', depending on the maximum value that needs to be represented. For - * each level in each tree, we also store lower and upper bound of allowed - * values - values outside those bounds are considered invalid, and are left - * out of the tables. - * - * In the intermediate levels of the trees, the values stored are offsets - * into the chars[16|32] array. - * - * In the beginning of the chars[16|32] array, there is always a number of - * zeros, so that you safely follow an index from an intermediate table - * without explicitly checking for a zero. Following a zero any number of - * times will always bring you to the dummy, all-zeros table in the - * beginning. This helps to shave some cycles when looking up values. - */ -typedef struct -{ - /* - * Array containing all the values. Only one of chars16 or chars32 is - * used, depending on how wide the values we need to represent are. - */ - const uint16 *chars16; - const uint32 *chars32; - - /* Radix tree for 1-byte inputs */ - uint32 b1root; /* offset of table in the chars[16|32] array */ - uint8 b1_lower; /* min allowed value for a single byte input */ - uint8 b1_upper; /* max allowed value for a single byte input */ - - /* Radix tree for 2-byte inputs */ - uint32 b2root; /* offset of 1st byte's table */ - uint8 b2_1_lower; /* min/max allowed value for 1st input byte */ - uint8 b2_1_upper; - uint8 b2_2_lower; /* min/max allowed value for 2nd input byte */ - uint8 b2_2_upper; - - /* Radix tree for 3-byte inputs */ - uint32 b3root; /* offset of 1st byte's table */ - uint8 b3_1_lower; /* min/max allowed value for 1st input byte */ - uint8 b3_1_upper; - uint8 b3_2_lower; /* min/max allowed value for 2nd input byte */ - uint8 b3_2_upper; - uint8 b3_3_lower; /* min/max allowed value for 3rd input byte */ - uint8 b3_3_upper; - - /* Radix tree for 4-byte inputs */ - uint32 b4root; /* offset of 1st byte's table */ - uint8 b4_1_lower; /* min/max allowed value for 1st input byte */ - uint8 b4_1_upper; - uint8 b4_2_lower; /* min/max allowed value for 2nd input byte */ - uint8 b4_2_upper; - uint8 b4_3_lower; /* min/max allowed value for 3rd input byte */ - uint8 b4_3_upper; - uint8 b4_4_lower; /* min/max allowed value for 4th input byte */ - uint8 b4_4_upper; - -} pg_mb_radix_tree; - -/* - * UTF-8 to local code conversion map (for combined characters) - */ -typedef struct -{ - uint32 utf1; /* UTF-8 code 1 */ - uint32 utf2; /* UTF-8 code 2 */ - uint32 code; /* local code */ -} pg_utf_to_local_combined; - -/* - * local code to UTF-8 conversion map (for combined characters) - */ -typedef struct -{ - uint32 code; /* local code */ - uint32 utf1; /* UTF-8 code 1 */ - uint32 utf2; /* UTF-8 code 2 */ -} pg_local_to_utf_combined; - -/* - * callback function for algorithmic encoding conversions (in either direction) - * - * if function returns zero, it does not know how to convert the code - */ -typedef uint32 (*utf_local_conversion_func) (uint32 code); - -/* - * Support macro for encoding conversion functions to validate their - * arguments. (This could be made more compact if we included fmgr.h - * here, but we don't want to do that because this header file is also - * used by frontends.) - */ -#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding,destencoding) \ - check_encoding_conversion_args(PG_GETARG_INT32(0), \ - PG_GETARG_INT32(1), \ - PG_GETARG_INT32(4), \ - (srcencoding), \ - (destencoding)) - - -/* - * Some handy functions for Unicode-specific tests. - */ -static inline bool -is_valid_unicode_codepoint(pg_wchar c) -{ - return (c > 0 && c <= 0x10FFFF); -} - -static inline bool -is_utf16_surrogate_first(pg_wchar c) -{ - return (c >= 0xD800 && c <= 0xDBFF); -} - -static inline bool -is_utf16_surrogate_second(pg_wchar c) -{ - return (c >= 0xDC00 && c <= 0xDFFF); -} - -static inline pg_wchar -surrogate_pair_to_codepoint(pg_wchar first, pg_wchar second) -{ - return ((first & 0x3FF) << 10) + 0x10000 + (second & 0x3FF); -} - - -/* - * These functions are considered part of libpq's exported API and - * are also declared in libpq-fe.h. - */ -extern int pg_char_to_encoding(const char *name); -extern const char *pg_encoding_to_char(int encoding); -extern int pg_valid_server_encoding_id(int encoding); - -/* - * These functions are available to frontend code that links with libpgcommon - * (in addition to the ones just above). The constant tables declared - * earlier in this file are also available from libpgcommon. - */ -extern int pg_encoding_mblen(int encoding, const char *mbstr); -extern int pg_encoding_mblen_bounded(int encoding, const char *mbstr); -extern int pg_encoding_dsplen(int encoding, const char *mbstr); -extern int pg_encoding_verifymbchar(int encoding, const char *mbstr, int len); -extern int pg_encoding_verifymbstr(int encoding, const char *mbstr, int len); -extern int pg_encoding_max_length(int encoding); -extern int pg_valid_client_encoding(const char *name); -extern int pg_valid_server_encoding(const char *name); -extern bool is_encoding_supported_by_icu(int encoding); -extern const char *get_encoding_name_for_icu(int encoding); - -extern unsigned char *unicode_to_utf8(pg_wchar c, unsigned char *utf8string); -extern pg_wchar utf8_to_unicode(const unsigned char *c); -extern bool pg_utf8_islegal(const unsigned char *source, int length); -extern int pg_utf_mblen(const unsigned char *s); -extern int pg_mule_mblen(const unsigned char *s); - -/* - * The remaining functions are backend-only. - */ -extern int pg_mb2wchar(const char *from, pg_wchar *to); -extern int pg_mb2wchar_with_len(const char *from, pg_wchar *to, int len); -extern int pg_encoding_mb2wchar_with_len(int encoding, - const char *from, pg_wchar *to, int len); -extern int pg_wchar2mb(const pg_wchar *from, char *to); -extern int pg_wchar2mb_with_len(const pg_wchar *from, char *to, int len); -extern int pg_encoding_wchar2mb_with_len(int encoding, - const pg_wchar *from, char *to, int len); -extern int pg_char_and_wchar_strcmp(const char *s1, const pg_wchar *s2); -extern int pg_wchar_strncmp(const pg_wchar *s1, const pg_wchar *s2, size_t n); -extern int pg_char_and_wchar_strncmp(const char *s1, const pg_wchar *s2, size_t n); -extern size_t pg_wchar_strlen(const pg_wchar *wstr); -extern int pg_mblen(const char *mbstr); -extern int pg_dsplen(const char *mbstr); -extern int pg_mbstrlen(const char *mbstr); -extern int pg_mbstrlen_with_len(const char *mbstr, int len); -extern int pg_mbcliplen(const char *mbstr, int len, int limit); -extern int pg_encoding_mbcliplen(int encoding, const char *mbstr, - int len, int limit); -extern int pg_mbcharcliplen(const char *mbstr, int len, int limit); -extern int pg_database_encoding_max_length(void); -extern mbcharacter_incrementer pg_database_encoding_character_incrementer(void); - -extern int PrepareClientEncoding(int encoding); -extern int SetClientEncoding(int encoding); -extern void InitializeClientEncoding(void); -extern int pg_get_client_encoding(void); -extern const char *pg_get_client_encoding_name(void); - -extern void SetDatabaseEncoding(int encoding); -extern int GetDatabaseEncoding(void); -extern const char *GetDatabaseEncodingName(void); -extern void SetMessageEncoding(int encoding); -extern int GetMessageEncoding(void); - -#ifdef ENABLE_NLS -extern int pg_bind_textdomain_codeset(const char *domainname); -#endif - -extern unsigned char *pg_do_encoding_conversion(unsigned char *src, int len, - int src_encoding, - int dest_encoding); -extern int pg_do_encoding_conversion_buf(Oid proc, - int src_encoding, - int dest_encoding, - unsigned char *src, int srclen, - unsigned char *dst, int dstlen, - bool noError); - -extern char *pg_client_to_server(const char *s, int len); -extern char *pg_server_to_client(const char *s, int len); -extern char *pg_any_to_server(const char *s, int len, int encoding); -extern char *pg_server_to_any(const char *s, int len, int encoding); - -extern void pg_unicode_to_server(pg_wchar c, unsigned char *s); - -extern unsigned short BIG5toCNS(unsigned short big5, unsigned char *lc); -extern unsigned short CNStoBIG5(unsigned short cns, unsigned char lc); - -extern int UtfToLocal(const unsigned char *utf, int len, - unsigned char *iso, - const pg_mb_radix_tree *map, - const pg_utf_to_local_combined *cmap, int cmapsize, - utf_local_conversion_func conv_func, - int encoding, bool noError); -extern int LocalToUtf(const unsigned char *iso, int len, - unsigned char *utf, - const pg_mb_radix_tree *map, - const pg_local_to_utf_combined *cmap, int cmapsize, - utf_local_conversion_func conv_func, - int encoding, bool noError); - -extern bool pg_verifymbstr(const char *mbstr, int len, bool noError); -extern bool pg_verify_mbstr(int encoding, const char *mbstr, int len, - bool noError); -extern int pg_verify_mbstr_len(int encoding, const char *mbstr, int len, - bool noError); - -extern void check_encoding_conversion_args(int src_encoding, - int dest_encoding, - int len, - int expected_src_encoding, - int expected_dest_encoding); - -extern void report_invalid_encoding(int encoding, const char *mbstr, int len) pg_attribute_noreturn(); -extern void report_untranslatable_char(int src_encoding, int dest_encoding, - const char *mbstr, int len) pg_attribute_noreturn(); - -extern int local2local(const unsigned char *l, unsigned char *p, int len, - int src_encoding, int dest_encoding, - const unsigned char *tab, bool noError); -extern int latin2mic(const unsigned char *l, unsigned char *p, int len, - int lc, int encoding, bool noError); -extern int mic2latin(const unsigned char *mic, unsigned char *p, int len, - int lc, int encoding, bool noError); -extern int latin2mic_with_table(const unsigned char *l, unsigned char *p, - int len, int lc, int encoding, - const unsigned char *tab, bool noError); -extern int mic2latin_with_table(const unsigned char *mic, unsigned char *p, - int len, int lc, int encoding, - const unsigned char *tab, bool noError); - -#ifdef WIN32 -extern WCHAR *pgwin32_message_to_UTF16(const char *str, int len, int *utf16len); -#endif - - -/* - * Verify a chunk of bytes for valid ASCII. - * - * Returns false if the input contains any zero bytes or bytes with the - * high-bit set. Input len must be a multiple of 8. - */ -static inline bool -is_valid_ascii(const unsigned char *s, int len) -{ - uint64 chunk, - highbit_cum = UINT64CONST(0), - zero_cum = UINT64CONST(0x8080808080808080); - - Assert(len % sizeof(chunk) == 0); - - while (len > 0) - { - memcpy(&chunk, s, sizeof(chunk)); - - /* - * Capture any zero bytes in this chunk. - * - * First, add 0x7f to each byte. This sets the high bit in each byte, - * unless it was a zero. If any resulting high bits are zero, the - * corresponding high bits in the zero accumulator will be cleared. - * - * If none of the bytes in the chunk had the high bit set, the max - * value each byte can have after the addition is 0x7f + 0x7f = 0xfe, - * and we don't need to worry about carrying over to the next byte. If - * any input bytes did have the high bit set, it doesn't matter - * because we check for those separately. - */ - zero_cum &= (chunk + UINT64CONST(0x7f7f7f7f7f7f7f7f)); - - /* Capture any set bits in this chunk. */ - highbit_cum |= chunk; - - s += sizeof(chunk); - len -= sizeof(chunk); - } - - /* Check if any high bits in the high bit accumulator got set. */ - if (highbit_cum & UINT64CONST(0x8080808080808080)) - return false; - - /* Check if any high bits in the zero accumulator got cleared. */ - if (zero_cum != UINT64CONST(0x8080808080808080)) - return false; - - return true; -} - -#endif /* PG_WCHAR_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/mb/stringinfo_mb.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/mb/stringinfo_mb.h deleted file mode 100644 index 8781ffdf3..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/mb/stringinfo_mb.h +++ /dev/null @@ -1,24 +0,0 @@ -/*------------------------------------------------------------------------- - * - * stringinfo_mb.h - * multibyte support for StringInfo - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/mb/stringinfo_mb.h - *------------------------------------------------------------------------- - */ -#ifndef STRINGINFO_MB_H -#define STRINGINFO_MB_H - - -#include "lib/stringinfo.h" - -/* - * Multibyte-aware StringInfo support function. - */ -extern void appendStringInfoStringQuoted(StringInfo str, - const char *s, int maxlen); - -#endif /* STRINGINFO_MB_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/miscadmin.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/miscadmin.h deleted file mode 100644 index d06c547ae..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/miscadmin.h +++ /dev/null @@ -1,495 +0,0 @@ -/*------------------------------------------------------------------------- - * - * miscadmin.h - * This file contains general postgres administration and initialization - * stuff that used to be spread out between the following files: - * globals.h global variables - * pdir.h directory path crud - * pinit.h postgres initialization - * pmod.h processing modes - * Over time, this has also become the preferred place for widely known - * resource-limitation stuff, such as work_mem and check_stack_depth(). - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/miscadmin.h - * - * NOTES - * some of the information in this file should be moved to other files. - * - *------------------------------------------------------------------------- - */ -#ifndef MISCADMIN_H -#define MISCADMIN_H - -#include - -#include "datatype/timestamp.h" /* for TimestampTz */ -#include "pgtime.h" /* for pg_time_t */ - - -#define InvalidPid (-1) - - -/***************************************************************************** - * System interrupt and critical section handling - * - * There are two types of interrupts that a running backend needs to accept - * without messing up its state: QueryCancel (SIGINT) and ProcDie (SIGTERM). - * In both cases, we need to be able to clean up the current transaction - * gracefully, so we can't respond to the interrupt instantaneously --- - * there's no guarantee that internal data structures would be self-consistent - * if the code is interrupted at an arbitrary instant. Instead, the signal - * handlers set flags that are checked periodically during execution. - * - * The CHECK_FOR_INTERRUPTS() macro is called at strategically located spots - * where it is normally safe to accept a cancel or die interrupt. In some - * cases, we invoke CHECK_FOR_INTERRUPTS() inside low-level subroutines that - * might sometimes be called in contexts that do *not* want to allow a cancel - * or die interrupt. The HOLD_INTERRUPTS() and RESUME_INTERRUPTS() macros - * allow code to ensure that no cancel or die interrupt will be accepted, - * even if CHECK_FOR_INTERRUPTS() gets called in a subroutine. The interrupt - * will be held off until CHECK_FOR_INTERRUPTS() is done outside any - * HOLD_INTERRUPTS() ... RESUME_INTERRUPTS() section. - * - * There is also a mechanism to prevent query cancel interrupts, while still - * allowing die interrupts: HOLD_CANCEL_INTERRUPTS() and - * RESUME_CANCEL_INTERRUPTS(). - * - * Note that ProcessInterrupts() has also acquired a number of tasks that - * do not necessarily cause a query-cancel-or-die response. Hence, it's - * possible that it will just clear InterruptPending and return. - * - * INTERRUPTS_PENDING_CONDITION() can be checked to see whether an - * interrupt needs to be serviced, without trying to do so immediately. - * Some callers are also interested in INTERRUPTS_CAN_BE_PROCESSED(), - * which tells whether ProcessInterrupts is sure to clear the interrupt. - * - * Special mechanisms are used to let an interrupt be accepted when we are - * waiting for a lock or when we are waiting for command input (but, of - * course, only if the interrupt holdoff counter is zero). See the - * related code for details. - * - * A lost connection is handled similarly, although the loss of connection - * does not raise a signal, but is detected when we fail to write to the - * socket. If there was a signal for a broken connection, we could make use of - * it by setting ClientConnectionLost in the signal handler. - * - * A related, but conceptually distinct, mechanism is the "critical section" - * mechanism. A critical section not only holds off cancel/die interrupts, - * but causes any ereport(ERROR) or ereport(FATAL) to become ereport(PANIC) - * --- that is, a system-wide reset is forced. Needless to say, only really - * *critical* code should be marked as a critical section! Currently, this - * mechanism is only used for XLOG-related code. - * - *****************************************************************************/ - -/* in globals.c */ -/* these are marked volatile because they are set by signal handlers: */ -extern PGDLLIMPORT __thread volatile sig_atomic_t InterruptPending; -extern PGDLLIMPORT volatile sig_atomic_t QueryCancelPending; -extern PGDLLIMPORT volatile sig_atomic_t ProcDiePending; -extern PGDLLIMPORT volatile sig_atomic_t IdleInTransactionSessionTimeoutPending; -extern PGDLLIMPORT volatile sig_atomic_t IdleSessionTimeoutPending; -extern PGDLLIMPORT volatile sig_atomic_t ProcSignalBarrierPending; -extern PGDLLIMPORT volatile sig_atomic_t LogMemoryContextPending; -extern PGDLLIMPORT volatile sig_atomic_t IdleStatsUpdateTimeoutPending; - -extern PGDLLIMPORT volatile sig_atomic_t CheckClientConnectionPending; -extern PGDLLIMPORT volatile sig_atomic_t ClientConnectionLost; - -/* these are marked volatile because they are examined by signal handlers: */ -extern PGDLLIMPORT __thread volatile uint32 InterruptHoldoffCount; -extern PGDLLIMPORT __thread volatile uint32 QueryCancelHoldoffCount; -extern PGDLLIMPORT __thread volatile uint32 CritSectionCount; - -/* in tcop/postgres.c */ -extern void ProcessInterrupts(void); - -/* Test whether an interrupt is pending */ -#ifndef WIN32 -#define INTERRUPTS_PENDING_CONDITION() \ - (unlikely(InterruptPending)) -#else -#define INTERRUPTS_PENDING_CONDITION() \ - (unlikely(UNBLOCKED_SIGNAL_QUEUE()) ? pgwin32_dispatch_queued_signals() : 0, \ - unlikely(InterruptPending)) -#endif - -/* Service interrupt, if one is pending and it's safe to service it now */ -#define CHECK_FOR_INTERRUPTS() \ -do { \ - if (INTERRUPTS_PENDING_CONDITION()) \ - ProcessInterrupts(); \ -} while(0) - -/* Is ProcessInterrupts() guaranteed to clear InterruptPending? */ -#define INTERRUPTS_CAN_BE_PROCESSED() \ - (InterruptHoldoffCount == 0 && CritSectionCount == 0 && \ - QueryCancelHoldoffCount == 0) - -#define HOLD_INTERRUPTS() (InterruptHoldoffCount++) - -#define RESUME_INTERRUPTS() \ -do { \ - Assert(InterruptHoldoffCount > 0); \ - InterruptHoldoffCount--; \ -} while(0) - -#define HOLD_CANCEL_INTERRUPTS() (QueryCancelHoldoffCount++) - -#define RESUME_CANCEL_INTERRUPTS() \ -do { \ - Assert(QueryCancelHoldoffCount > 0); \ - QueryCancelHoldoffCount--; \ -} while(0) - -#define START_CRIT_SECTION() (CritSectionCount++) - -#define END_CRIT_SECTION() \ -do { \ - Assert(CritSectionCount > 0); \ - CritSectionCount--; \ -} while(0) - - -/***************************************************************************** - * globals.h -- * - *****************************************************************************/ - -/* - * from utils/init/globals.c - */ -extern PGDLLIMPORT pid_t PostmasterPid; -extern PGDLLIMPORT bool IsPostmasterEnvironment; -extern PGDLLIMPORT bool IsUnderPostmaster; -extern PGDLLIMPORT bool IsBackgroundWorker; -extern PGDLLIMPORT bool IsBinaryUpgrade; - -extern PGDLLIMPORT __thread bool ExitOnAnyError; - -extern PGDLLIMPORT char *DataDir; -extern PGDLLIMPORT int data_directory_mode; - -extern PGDLLIMPORT int NBuffers; -extern PGDLLIMPORT int MaxBackends; -extern PGDLLIMPORT int MaxConnections; -extern PGDLLIMPORT int max_worker_processes; -extern PGDLLIMPORT int max_parallel_workers; - -extern PGDLLIMPORT int MyProcPid; -extern PGDLLIMPORT pg_time_t MyStartTime; -extern PGDLLIMPORT TimestampTz MyStartTimestamp; -extern PGDLLIMPORT struct Port *MyProcPort; -extern PGDLLIMPORT struct Latch *MyLatch; -extern PGDLLIMPORT int32 MyCancelKey; -extern PGDLLIMPORT int MyPMChildSlot; - -extern PGDLLIMPORT char OutputFileName[]; -extern PGDLLIMPORT char my_exec_path[]; -extern PGDLLIMPORT char pkglib_path[]; - -#ifdef EXEC_BACKEND -extern PGDLLIMPORT char postgres_exec_path[]; -#endif - -/* - * done in storage/backendid.h for now. - * - * extern BackendId MyBackendId; - */ -extern PGDLLIMPORT Oid MyDatabaseId; - -extern PGDLLIMPORT Oid MyDatabaseTableSpace; - -/* - * Date/Time Configuration - * - * DateStyle defines the output formatting choice for date/time types: - * USE_POSTGRES_DATES specifies traditional Postgres format - * USE_ISO_DATES specifies ISO-compliant format - * USE_SQL_DATES specifies Oracle/Ingres-compliant format - * USE_GERMAN_DATES specifies German-style dd.mm/yyyy - * - * DateOrder defines the field order to be assumed when reading an - * ambiguous date (anything not in YYYY-MM-DD format, with a four-digit - * year field first, is taken to be ambiguous): - * DATEORDER_YMD specifies field order yy-mm-dd - * DATEORDER_DMY specifies field order dd-mm-yy ("European" convention) - * DATEORDER_MDY specifies field order mm-dd-yy ("US" convention) - * - * In the Postgres and SQL DateStyles, DateOrder also selects output field - * order: day comes before month in DMY style, else month comes before day. - * - * The user-visible "DateStyle" run-time parameter subsumes both of these. - */ - -/* valid DateStyle values */ -#define USE_POSTGRES_DATES 0 -#define USE_ISO_DATES 1 -#define USE_SQL_DATES 2 -#define USE_GERMAN_DATES 3 -#define USE_XSD_DATES 4 - -/* valid DateOrder values */ -#define DATEORDER_YMD 0 -#define DATEORDER_DMY 1 -#define DATEORDER_MDY 2 - -extern PGDLLIMPORT int DateStyle; -extern PGDLLIMPORT int DateOrder; - -/* - * IntervalStyles - * INTSTYLE_POSTGRES Like Postgres < 8.4 when DateStyle = 'iso' - * INTSTYLE_POSTGRES_VERBOSE Like Postgres < 8.4 when DateStyle != 'iso' - * INTSTYLE_SQL_STANDARD SQL standard interval literals - * INTSTYLE_ISO_8601 ISO-8601-basic formatted intervals - */ -#define INTSTYLE_POSTGRES 0 -#define INTSTYLE_POSTGRES_VERBOSE 1 -#define INTSTYLE_SQL_STANDARD 2 -#define INTSTYLE_ISO_8601 3 - -extern PGDLLIMPORT int IntervalStyle; - -#define MAXTZLEN 10 /* max TZ name len, not counting tr. null */ - -extern PGDLLIMPORT bool enableFsync; -extern PGDLLIMPORT bool allowSystemTableMods; -extern PGDLLIMPORT int work_mem; -extern PGDLLIMPORT double hash_mem_multiplier; -extern PGDLLIMPORT int maintenance_work_mem; -extern PGDLLIMPORT int max_parallel_maintenance_workers; - -extern PGDLLIMPORT int VacuumCostPageHit; -extern PGDLLIMPORT int VacuumCostPageMiss; -extern PGDLLIMPORT int VacuumCostPageDirty; -extern PGDLLIMPORT int VacuumCostLimit; -extern PGDLLIMPORT double VacuumCostDelay; - -extern PGDLLIMPORT int64 VacuumPageHit; -extern PGDLLIMPORT int64 VacuumPageMiss; -extern PGDLLIMPORT int64 VacuumPageDirty; - -extern PGDLLIMPORT int VacuumCostBalance; -extern PGDLLIMPORT bool VacuumCostActive; - - -/* in tcop/postgres.c */ - -#if defined(__ia64__) || defined(__ia64) -typedef struct -{ - char *stack_base_ptr; - char *register_stack_base_ptr; -} pg_stack_base_t; -#else -typedef char *pg_stack_base_t; -#endif - -extern pg_stack_base_t set_stack_base(void); -extern void restore_stack_base(pg_stack_base_t base); -extern void check_stack_depth(void); -extern bool stack_is_too_deep(void); - -/* in tcop/utility.c */ -extern void PreventCommandIfReadOnly(const char *cmdname); -extern void PreventCommandIfParallelMode(const char *cmdname); -extern void PreventCommandDuringRecovery(const char *cmdname); - -/* in utils/misc/guc.c */ -extern PGDLLIMPORT int trace_recovery_messages; -extern int trace_recovery(int trace_level); - -/***************************************************************************** - * pdir.h -- * - * POSTGRES directory path definitions. * - *****************************************************************************/ - -/* flags to be OR'd to form sec_context */ -#define SECURITY_LOCAL_USERID_CHANGE 0x0001 -#define SECURITY_RESTRICTED_OPERATION 0x0002 -#define SECURITY_NOFORCE_RLS 0x0004 - -extern PGDLLIMPORT char *DatabasePath; - -/* now in utils/init/miscinit.c */ -extern void InitPostmasterChild(void); -extern void InitStandaloneProcess(const char *argv0); -extern void SwitchToSharedLatch(void); -extern void SwitchBackToLocalLatch(void); - -typedef enum BackendType -{ - B_INVALID = 0, - B_AUTOVAC_LAUNCHER, - B_AUTOVAC_WORKER, - B_BACKEND, - B_BG_WORKER, - B_BG_WRITER, - B_CHECKPOINTER, - B_STARTUP, - B_WAL_RECEIVER, - B_WAL_SENDER, - B_WAL_WRITER, - B_ARCHIVER, - B_LOGGER, -} BackendType; - -extern PGDLLIMPORT BackendType MyBackendType; - -extern const char *GetBackendTypeDesc(BackendType backendType); - -extern void SetDatabasePath(const char *path); -extern void checkDataDir(void); -extern void SetDataDir(const char *dir); -extern void ChangeToDataDir(void); - -extern char *GetUserNameFromId(Oid roleid, bool noerr); -extern Oid GetUserId(void); -extern Oid GetOuterUserId(void); -extern Oid GetSessionUserId(void); -extern Oid GetAuthenticatedUserId(void); -extern void GetUserIdAndSecContext(Oid *userid, int *sec_context); -extern void SetUserIdAndSecContext(Oid userid, int sec_context); -extern bool InLocalUserIdChange(void); -extern bool InSecurityRestrictedOperation(void); -extern bool InNoForceRLSOperation(void); -extern void GetUserIdAndContext(Oid *userid, bool *sec_def_context); -extern void SetUserIdAndContext(Oid userid, bool sec_def_context); -extern void InitializeSessionUserId(const char *rolename, Oid useroid); -extern void InitializeSessionUserIdStandalone(void); -extern void SetSessionAuthorization(Oid userid, bool is_superuser); -extern Oid GetCurrentRoleId(void); -extern void SetCurrentRoleId(Oid roleid, bool is_superuser); - -/* in utils/misc/superuser.c */ -extern bool superuser(void); /* current user is superuser */ -extern bool superuser_arg(Oid roleid); /* given user is superuser */ - - -/***************************************************************************** - * pmod.h -- * - * POSTGRES processing mode definitions. * - *****************************************************************************/ - -/* - * Description: - * There are three processing modes in POSTGRES. They are - * BootstrapProcessing or "bootstrap," InitProcessing or - * "initialization," and NormalProcessing or "normal." - * - * The first two processing modes are used during special times. When the - * system state indicates bootstrap processing, transactions are all given - * transaction id "one" and are consequently guaranteed to commit. This mode - * is used during the initial generation of template databases. - * - * Initialization mode: used while starting a backend, until all normal - * initialization is complete. Some code behaves differently when executed - * in this mode to enable system bootstrapping. - * - * If a POSTGRES backend process is in normal mode, then all code may be - * executed normally. - */ - -typedef enum ProcessingMode -{ - BootstrapProcessing, /* bootstrap creation of template database */ - InitProcessing, /* initializing system */ - NormalProcessing /* normal processing */ -} ProcessingMode; - -extern PGDLLIMPORT ProcessingMode Mode; - -#define IsBootstrapProcessingMode() (Mode == BootstrapProcessing) -#define IsInitProcessingMode() (Mode == InitProcessing) -#define IsNormalProcessingMode() (Mode == NormalProcessing) - -#define GetProcessingMode() Mode - -#define SetProcessingMode(mode) \ - do { \ - AssertArg((mode) == BootstrapProcessing || \ - (mode) == InitProcessing || \ - (mode) == NormalProcessing); \ - Mode = (mode); \ - } while(0) - - -/* - * Auxiliary-process type identifiers. These used to be in bootstrap.h - * but it seems saner to have them here, with the ProcessingMode stuff. - * The MyAuxProcType global is defined and set in auxprocess.c. - * - * Make sure to list in the glossary any items you add here. - */ - -typedef enum -{ - NotAnAuxProcess = -1, - StartupProcess = 0, - BgWriterProcess, - ArchiverProcess, - CheckpointerProcess, - WalWriterProcess, - WalReceiverProcess, - - NUM_AUXPROCTYPES /* Must be last! */ -} AuxProcType; - -extern PGDLLIMPORT AuxProcType MyAuxProcType; - -#define AmStartupProcess() (MyAuxProcType == StartupProcess) -#define AmBackgroundWriterProcess() (MyAuxProcType == BgWriterProcess) -#define AmArchiverProcess() (MyAuxProcType == ArchiverProcess) -#define AmCheckpointerProcess() (MyAuxProcType == CheckpointerProcess) -#define AmWalWriterProcess() (MyAuxProcType == WalWriterProcess) -#define AmWalReceiverProcess() (MyAuxProcType == WalReceiverProcess) - - -/***************************************************************************** - * pinit.h -- * - * POSTGRES initialization and cleanup definitions. * - *****************************************************************************/ - -/* in utils/init/postinit.c */ -extern void pg_split_opts(char **argv, int *argcp, const char *optstr); -extern void InitializeMaxBackends(void); -extern void InitPostgres(const char *in_dbname, Oid dboid, - const char *username, Oid useroid, - bool load_session_libraries, - bool override_allow_connections, - char *out_dbname); -extern void BaseInit(void); - -/* in utils/init/miscinit.c */ -extern PGDLLIMPORT bool IgnoreSystemIndexes; -extern PGDLLIMPORT bool process_shared_preload_libraries_in_progress; -extern PGDLLIMPORT bool process_shared_preload_libraries_done; -extern PGDLLIMPORT bool process_shmem_requests_in_progress; -extern PGDLLIMPORT char *session_preload_libraries_string; -extern PGDLLIMPORT char *shared_preload_libraries_string; -extern PGDLLIMPORT char *local_preload_libraries_string; - -extern void CreateDataDirLockFile(bool amPostmaster); -extern void CreateSocketLockFile(const char *socketfile, bool amPostmaster, - const char *socketDir); -extern void TouchSocketLockFiles(void); -extern void AddToDataDirLockFile(int target_line, const char *str); -extern bool RecheckDataDirLockFile(void); -extern void ValidatePgVersion(const char *path); -extern void process_shared_preload_libraries(void); -extern void process_session_preload_libraries(void); -extern void process_shmem_requests(void); -extern void pg_bindtextdomain(const char *domain); -extern bool has_rolreplication(Oid roleid); - -typedef void (*shmem_request_hook_type) (void); -extern PGDLLIMPORT shmem_request_hook_type shmem_request_hook; - -/* in executor/nodeHash.c */ -extern size_t get_hash_memory_limit(void); - -#endif /* MISCADMIN_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/bitmapset.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/bitmapset.h deleted file mode 100644 index 75b5ce1a8..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/bitmapset.h +++ /dev/null @@ -1,122 +0,0 @@ -/*------------------------------------------------------------------------- - * - * bitmapset.h - * PostgreSQL generic bitmap set package - * - * A bitmap set can represent any set of nonnegative integers, although - * it is mainly intended for sets where the maximum value is not large, - * say at most a few hundred. By convention, a NULL pointer is always - * accepted by all operations to represent the empty set. (But beware - * that this is not the only representation of the empty set. Use - * bms_is_empty() in preference to testing for NULL.) - * - * - * Copyright (c) 2003-2022, PostgreSQL Global Development Group - * - * src/include/nodes/bitmapset.h - * - *------------------------------------------------------------------------- - */ -#ifndef BITMAPSET_H -#define BITMAPSET_H - -/* - * Forward decl to save including pg_list.h - */ -struct List; - -/* - * Data representation - * - * Larger bitmap word sizes generally give better performance, so long as - * they're not wider than the processor can handle efficiently. We use - * 64-bit words if pointers are that large, else 32-bit words. - */ -#if SIZEOF_VOID_P >= 8 - -#define BITS_PER_BITMAPWORD 64 -typedef uint64 bitmapword; /* must be an unsigned type */ -typedef int64 signedbitmapword; /* must be the matching signed type */ - -#else - -#define BITS_PER_BITMAPWORD 32 -typedef uint32 bitmapword; /* must be an unsigned type */ -typedef int32 signedbitmapword; /* must be the matching signed type */ - -#endif - -typedef struct Bitmapset -{ - int nwords; /* number of words in array */ - bitmapword words[FLEXIBLE_ARRAY_MEMBER]; /* really [nwords] */ -} Bitmapset; - - -/* result of bms_subset_compare */ -typedef enum -{ - BMS_EQUAL, /* sets are equal */ - BMS_SUBSET1, /* first set is a subset of the second */ - BMS_SUBSET2, /* second set is a subset of the first */ - BMS_DIFFERENT /* neither set is a subset of the other */ -} BMS_Comparison; - -/* result of bms_membership */ -typedef enum -{ - BMS_EMPTY_SET, /* 0 members */ - BMS_SINGLETON, /* 1 member */ - BMS_MULTIPLE /* >1 member */ -} BMS_Membership; - - -/* - * function prototypes in nodes/bitmapset.c - */ - -extern Bitmapset *bms_copy(const Bitmapset *a); -extern bool bms_equal(const Bitmapset *a, const Bitmapset *b); -extern int bms_compare(const Bitmapset *a, const Bitmapset *b); -extern Bitmapset *bms_make_singleton(int x); -extern void bms_free(Bitmapset *a); - -extern Bitmapset *bms_union(const Bitmapset *a, const Bitmapset *b); -extern Bitmapset *bms_intersect(const Bitmapset *a, const Bitmapset *b); -extern Bitmapset *bms_difference(const Bitmapset *a, const Bitmapset *b); -extern bool bms_is_subset(const Bitmapset *a, const Bitmapset *b); -extern BMS_Comparison bms_subset_compare(const Bitmapset *a, const Bitmapset *b); -extern bool bms_is_member(int x, const Bitmapset *a); -extern int bms_member_index(Bitmapset *a, int x); -extern bool bms_overlap(const Bitmapset *a, const Bitmapset *b); -extern bool bms_overlap_list(const Bitmapset *a, const struct List *b); -extern bool bms_nonempty_difference(const Bitmapset *a, const Bitmapset *b); -extern int bms_singleton_member(const Bitmapset *a); -extern bool bms_get_singleton_member(const Bitmapset *a, int *member); -extern int bms_num_members(const Bitmapset *a); - -/* optimized tests when we don't need to know exact membership count: */ -extern BMS_Membership bms_membership(const Bitmapset *a); -extern bool bms_is_empty(const Bitmapset *a); - -/* these routines recycle (modify or free) their non-const inputs: */ - -extern Bitmapset *bms_add_member(Bitmapset *a, int x); -extern Bitmapset *bms_del_member(Bitmapset *a, int x); -extern Bitmapset *bms_add_members(Bitmapset *a, const Bitmapset *b); -extern Bitmapset *bms_add_range(Bitmapset *a, int lower, int upper); -extern Bitmapset *bms_int_members(Bitmapset *a, const Bitmapset *b); -extern Bitmapset *bms_del_members(Bitmapset *a, const Bitmapset *b); -extern Bitmapset *bms_join(Bitmapset *a, Bitmapset *b); - -/* support for iterating through the integer elements of a set: */ -extern int bms_first_member(Bitmapset *a); -extern int bms_next_member(const Bitmapset *a, int prevbit); -extern int bms_prev_member(const Bitmapset *a, int prevbit); - -/* support for hashtables using Bitmapsets as keys: */ -extern uint32 bms_hash_value(const Bitmapset *a); -extern uint32 bitmap_hash(const void *key, Size keysize); -extern int bitmap_match(const void *key1, const void *key2, Size keysize); - -#endif /* BITMAPSET_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/execnodes.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/execnodes.h deleted file mode 100644 index 572880137..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/execnodes.h +++ /dev/null @@ -1,2715 +0,0 @@ -/*------------------------------------------------------------------------- - * - * execnodes.h - * definitions for executor state nodes - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/nodes/execnodes.h - * - *------------------------------------------------------------------------- - */ -#ifndef EXECNODES_H -#define EXECNODES_H - -#include "access/tupconvert.h" -#include "executor/instrument.h" -#include "fmgr.h" -#include "lib/ilist.h" -#include "lib/pairingheap.h" -#include "nodes/params.h" -#include "nodes/plannodes.h" -#include "nodes/tidbitmap.h" -#include "partitioning/partdefs.h" -#include "storage/condition_variable.h" -#include "utils/hsearch.h" -#include "utils/queryenvironment.h" -#include "utils/reltrigger.h" -#include "utils/sharedtuplestore.h" -#include "utils/snapshot.h" -#include "utils/sortsupport.h" -#include "utils/tuplesort.h" -#include "utils/tuplestore.h" - -struct PlanState; /* forward references in this file */ -struct ParallelHashJoinState; -struct ExecRowMark; -struct ExprState; -struct ExprContext; -struct RangeTblEntry; /* avoid including parsenodes.h here */ -struct ExprEvalStep; /* avoid including execExpr.h everywhere */ -struct CopyMultiInsertBuffer; -struct LogicalTapeSet; - - -/* ---------------- - * ExprState node - * - * ExprState is the top-level node for expression evaluation. - * It contains instructions (in ->steps) to evaluate the expression. - * ---------------- - */ -typedef Datum (*ExprStateEvalFunc) (struct ExprState *expression, - struct ExprContext *econtext, - bool *isNull); - -/* Bits in ExprState->flags (see also execExpr.h for private flag bits): */ -/* expression is for use with ExecQual() */ -#define EEO_FLAG_IS_QUAL (1 << 0) - -typedef struct ExprState -{ - NodeTag type; - - uint8 flags; /* bitmask of EEO_FLAG_* bits, see above */ - - /* - * Storage for result value of a scalar expression, or for individual - * column results within expressions built by ExecBuildProjectionInfo(). - */ -#define FIELDNO_EXPRSTATE_RESNULL 2 - bool resnull; -#define FIELDNO_EXPRSTATE_RESVALUE 3 - Datum resvalue; - - /* - * If projecting a tuple result, this slot holds the result; else NULL. - */ -#define FIELDNO_EXPRSTATE_RESULTSLOT 4 - TupleTableSlot *resultslot; - - /* - * Instructions to compute expression's return value. - */ - struct ExprEvalStep *steps; - - /* - * Function that actually evaluates the expression. This can be set to - * different values depending on the complexity of the expression. - */ - ExprStateEvalFunc evalfunc; - - /* original expression tree, for debugging only */ - Expr *expr; - - /* private state for an evalfunc */ - void *evalfunc_private; - - /* - * XXX: following fields only needed during "compilation" (ExecInitExpr); - * could be thrown away afterwards. - */ - - int steps_len; /* number of steps currently */ - int steps_alloc; /* allocated length of steps array */ - -#define FIELDNO_EXPRSTATE_PARENT 11 - struct PlanState *parent; /* parent PlanState node, if any */ - ParamListInfo ext_params; /* for compiling PARAM_EXTERN nodes */ - - Datum *innermost_caseval; - bool *innermost_casenull; - - Datum *innermost_domainval; - bool *innermost_domainnull; -} ExprState; - - -/* ---------------- - * IndexInfo information - * - * this struct holds the information needed to construct new index - * entries for a particular index. Used for both index_build and - * retail creation of index entries. - * - * NumIndexAttrs total number of columns in this index - * NumIndexKeyAttrs number of key columns in index - * IndexAttrNumbers underlying-rel attribute numbers used as keys - * (zeroes indicate expressions). It also contains - * info about included columns. - * Expressions expr trees for expression entries, or NIL if none - * ExpressionsState exec state for expressions, or NIL if none - * Predicate partial-index predicate, or NIL if none - * PredicateState exec state for predicate, or NIL if none - * ExclusionOps Per-column exclusion operators, or NULL if none - * ExclusionProcs Underlying function OIDs for ExclusionOps - * ExclusionStrats Opclass strategy numbers for ExclusionOps - * UniqueOps These are like Exclusion*, but for unique indexes - * UniqueProcs - * UniqueStrats - * Unique is it a unique index? - * OpclassOptions opclass-specific options, or NULL if none - * ReadyForInserts is it valid for inserts? - * CheckedUnchanged IndexUnchanged status determined yet? - * IndexUnchanged aminsert hint, cached for retail inserts - * Concurrent are we doing a concurrent index build? - * BrokenHotChain did we detect any broken HOT chains? - * ParallelWorkers # of workers requested (excludes leader) - * Am Oid of index AM - * AmCache private cache area for index AM - * Context memory context holding this IndexInfo - * - * ii_Concurrent, ii_BrokenHotChain, and ii_ParallelWorkers are used only - * during index build; they're conventionally zeroed otherwise. - * ---------------- - */ -typedef struct IndexInfo -{ - NodeTag type; - int ii_NumIndexAttrs; /* total number of columns in index */ - int ii_NumIndexKeyAttrs; /* number of key columns in index */ - AttrNumber ii_IndexAttrNumbers[INDEX_MAX_KEYS]; - List *ii_Expressions; /* list of Expr */ - List *ii_ExpressionsState; /* list of ExprState */ - List *ii_Predicate; /* list of Expr */ - ExprState *ii_PredicateState; - Oid *ii_ExclusionOps; /* array with one entry per column */ - Oid *ii_ExclusionProcs; /* array with one entry per column */ - uint16 *ii_ExclusionStrats; /* array with one entry per column */ - Oid *ii_UniqueOps; /* array with one entry per column */ - Oid *ii_UniqueProcs; /* array with one entry per column */ - uint16 *ii_UniqueStrats; /* array with one entry per column */ - Datum *ii_OpclassOptions; /* array with one entry per column */ - bool ii_Unique; - bool ii_NullsNotDistinct; - bool ii_ReadyForInserts; - bool ii_CheckedUnchanged; - bool ii_IndexUnchanged; - bool ii_Concurrent; - bool ii_BrokenHotChain; - int ii_ParallelWorkers; - Oid ii_Am; - void *ii_AmCache; - MemoryContext ii_Context; -} IndexInfo; - -/* ---------------- - * ExprContext_CB - * - * List of callbacks to be called at ExprContext shutdown. - * ---------------- - */ -typedef void (*ExprContextCallbackFunction) (Datum arg); - -typedef struct ExprContext_CB -{ - struct ExprContext_CB *next; - ExprContextCallbackFunction function; - Datum arg; -} ExprContext_CB; - -/* ---------------- - * ExprContext - * - * This class holds the "current context" information - * needed to evaluate expressions for doing tuple qualifications - * and tuple projections. For example, if an expression refers - * to an attribute in the current inner tuple then we need to know - * what the current inner tuple is and so we look at the expression - * context. - * - * There are two memory contexts associated with an ExprContext: - * * ecxt_per_query_memory is a query-lifespan context, typically the same - * context the ExprContext node itself is allocated in. This context - * can be used for purposes such as storing function call cache info. - * * ecxt_per_tuple_memory is a short-term context for expression results. - * As the name suggests, it will typically be reset once per tuple, - * before we begin to evaluate expressions for that tuple. Each - * ExprContext normally has its very own per-tuple memory context. - * - * CurrentMemoryContext should be set to ecxt_per_tuple_memory before - * calling ExecEvalExpr() --- see ExecEvalExprSwitchContext(). - * ---------------- - */ -typedef struct ExprContext -{ - NodeTag type; - - /* Tuples that Var nodes in expression may refer to */ -#define FIELDNO_EXPRCONTEXT_SCANTUPLE 1 - TupleTableSlot *ecxt_scantuple; -#define FIELDNO_EXPRCONTEXT_INNERTUPLE 2 - TupleTableSlot *ecxt_innertuple; -#define FIELDNO_EXPRCONTEXT_OUTERTUPLE 3 - TupleTableSlot *ecxt_outertuple; - - /* Memory contexts for expression evaluation --- see notes above */ - MemoryContext ecxt_per_query_memory; - MemoryContext ecxt_per_tuple_memory; - - /* Values to substitute for Param nodes in expression */ - ParamExecData *ecxt_param_exec_vals; /* for PARAM_EXEC params */ - ParamListInfo ecxt_param_list_info; /* for other param types */ - - /* - * Values to substitute for Aggref nodes in the expressions of an Agg - * node, or for WindowFunc nodes within a WindowAgg node. - */ -#define FIELDNO_EXPRCONTEXT_AGGVALUES 8 - Datum *ecxt_aggvalues; /* precomputed values for aggs/windowfuncs */ -#define FIELDNO_EXPRCONTEXT_AGGNULLS 9 - bool *ecxt_aggnulls; /* null flags for aggs/windowfuncs */ - - /* Value to substitute for CaseTestExpr nodes in expression */ -#define FIELDNO_EXPRCONTEXT_CASEDATUM 10 - Datum caseValue_datum; -#define FIELDNO_EXPRCONTEXT_CASENULL 11 - bool caseValue_isNull; - - /* Value to substitute for CoerceToDomainValue nodes in expression */ -#define FIELDNO_EXPRCONTEXT_DOMAINDATUM 12 - Datum domainValue_datum; -#define FIELDNO_EXPRCONTEXT_DOMAINNULL 13 - bool domainValue_isNull; - - /* Link to containing EState (NULL if a standalone ExprContext) */ - struct EState *ecxt_estate; - - /* Functions to call back when ExprContext is shut down or rescanned */ - ExprContext_CB *ecxt_callbacks; -} ExprContext; - -/* - * Set-result status used when evaluating functions potentially returning a - * set. - */ -typedef enum -{ - ExprSingleResult, /* expression does not return a set */ - ExprMultipleResult, /* this result is an element of a set */ - ExprEndResult /* there are no more elements in the set */ -} ExprDoneCond; - -/* - * Return modes for functions returning sets. Note values must be chosen - * as separate bits so that a bitmask can be formed to indicate supported - * modes. SFRM_Materialize_Random and SFRM_Materialize_Preferred are - * auxiliary flags about SFRM_Materialize mode, rather than separate modes. - */ -typedef enum -{ - SFRM_ValuePerCall = 0x01, /* one value returned per call */ - SFRM_Materialize = 0x02, /* result set instantiated in Tuplestore */ - SFRM_Materialize_Random = 0x04, /* Tuplestore needs randomAccess */ - SFRM_Materialize_Preferred = 0x08 /* caller prefers Tuplestore */ -} SetFunctionReturnMode; - -/* - * When calling a function that might return a set (multiple rows), - * a node of this type is passed as fcinfo->resultinfo to allow - * return status to be passed back. A function returning set should - * raise an error if no such resultinfo is provided. - */ -typedef struct ReturnSetInfo -{ - NodeTag type; - /* values set by caller: */ - ExprContext *econtext; /* context function is being called in */ - TupleDesc expectedDesc; /* tuple descriptor expected by caller */ - int allowedModes; /* bitmask: return modes caller can handle */ - /* result status from function (but pre-initialized by caller): */ - SetFunctionReturnMode returnMode; /* actual return mode */ - ExprDoneCond isDone; /* status for ValuePerCall mode */ - /* fields filled by function in Materialize return mode: */ - Tuplestorestate *setResult; /* holds the complete returned tuple set */ - TupleDesc setDesc; /* actual descriptor for returned tuples */ -} ReturnSetInfo; - -/* ---------------- - * ProjectionInfo node information - * - * This is all the information needed to perform projections --- - * that is, form new tuples by evaluation of targetlist expressions. - * Nodes which need to do projections create one of these. - * - * The target tuple slot is kept in ProjectionInfo->pi_state.resultslot. - * ExecProject() evaluates the tlist, forms a tuple, and stores it - * in the given slot. Note that the result will be a "virtual" tuple - * unless ExecMaterializeSlot() is then called to force it to be - * converted to a physical tuple. The slot must have a tupledesc - * that matches the output of the tlist! - * ---------------- - */ -typedef struct ProjectionInfo -{ - NodeTag type; - /* instructions to evaluate projection */ - ExprState pi_state; - /* expression context in which to evaluate expression */ - ExprContext *pi_exprContext; -} ProjectionInfo; - -/* ---------------- - * JunkFilter - * - * This class is used to store information regarding junk attributes. - * A junk attribute is an attribute in a tuple that is needed only for - * storing intermediate information in the executor, and does not belong - * in emitted tuples. For example, when we do an UPDATE query, - * the planner adds a "junk" entry to the targetlist so that the tuples - * returned to ExecutePlan() contain an extra attribute: the ctid of - * the tuple to be updated. This is needed to do the update, but we - * don't want the ctid to be part of the stored new tuple! So, we - * apply a "junk filter" to remove the junk attributes and form the - * real output tuple. The junkfilter code also provides routines to - * extract the values of the junk attribute(s) from the input tuple. - * - * targetList: the original target list (including junk attributes). - * cleanTupType: the tuple descriptor for the "clean" tuple (with - * junk attributes removed). - * cleanMap: A map with the correspondence between the non-junk - * attribute numbers of the "original" tuple and the - * attribute numbers of the "clean" tuple. - * resultSlot: tuple slot used to hold cleaned tuple. - * ---------------- - */ -typedef struct JunkFilter -{ - NodeTag type; - List *jf_targetList; - TupleDesc jf_cleanTupType; - AttrNumber *jf_cleanMap; - TupleTableSlot *jf_resultSlot; -} JunkFilter; - -/* - * OnConflictSetState - * - * Executor state of an ON CONFLICT DO UPDATE operation. - */ -typedef struct OnConflictSetState -{ - NodeTag type; - - TupleTableSlot *oc_Existing; /* slot to store existing target tuple in */ - TupleTableSlot *oc_ProjSlot; /* CONFLICT ... SET ... projection target */ - ProjectionInfo *oc_ProjInfo; /* for ON CONFLICT DO UPDATE SET */ - ExprState *oc_WhereClause; /* state for the WHERE clause */ -} OnConflictSetState; - -/* ---------------- - * MergeActionState information - * - * Executor state for a MERGE action. - * ---------------- - */ -typedef struct MergeActionState -{ - NodeTag type; - - MergeAction *mas_action; /* associated MergeAction node */ - ProjectionInfo *mas_proj; /* projection of the action's targetlist for - * this rel */ - ExprState *mas_whenqual; /* WHEN [NOT] MATCHED AND conditions */ -} MergeActionState; - -/* - * ResultRelInfo - * - * Whenever we update an existing relation, we have to update indexes on the - * relation, and perhaps also fire triggers. ResultRelInfo holds all the - * information needed about a result relation, including indexes. - * - * Normally, a ResultRelInfo refers to a table that is in the query's range - * table; then ri_RangeTableIndex is the RT index and ri_RelationDesc is - * just a copy of the relevant es_relations[] entry. However, in some - * situations we create ResultRelInfos for relations that are not in the - * range table, namely for targets of tuple routing in a partitioned table, - * and when firing triggers in tables other than the target tables (See - * ExecGetTriggerResultRel). In these situations, ri_RangeTableIndex is 0 - * and ri_RelationDesc is a separately-opened relcache pointer that needs to - * be separately closed. - */ -typedef struct ResultRelInfo -{ - NodeTag type; - - /* result relation's range table index, or 0 if not in range table */ - Index ri_RangeTableIndex; - - /* relation descriptor for result relation */ - Relation ri_RelationDesc; - - /* # of indices existing on result relation */ - int ri_NumIndices; - - /* array of relation descriptors for indices */ - RelationPtr ri_IndexRelationDescs; - - /* array of key/attr info for indices */ - IndexInfo **ri_IndexRelationInfo; - - /* - * For UPDATE/DELETE result relations, the attribute number of the row - * identity junk attribute in the source plan's output tuples - */ - AttrNumber ri_RowIdAttNo; - - /* Projection to generate new tuple in an INSERT/UPDATE */ - ProjectionInfo *ri_projectNew; - /* Slot to hold that tuple */ - TupleTableSlot *ri_newTupleSlot; - /* Slot to hold the old tuple being updated */ - TupleTableSlot *ri_oldTupleSlot; - /* Have the projection and the slots above been initialized? */ - bool ri_projectNewInfoValid; - - /* triggers to be fired, if any */ - TriggerDesc *ri_TrigDesc; - - /* cached lookup info for trigger functions */ - FmgrInfo *ri_TrigFunctions; - - /* array of trigger WHEN expr states */ - ExprState **ri_TrigWhenExprs; - - /* optional runtime measurements for triggers */ - Instrumentation *ri_TrigInstrument; - - /* On-demand created slots for triggers / returning processing */ - TupleTableSlot *ri_ReturningSlot; /* for trigger output tuples */ - TupleTableSlot *ri_TrigOldSlot; /* for a trigger's old tuple */ - TupleTableSlot *ri_TrigNewSlot; /* for a trigger's new tuple */ - - /* FDW callback functions, if foreign table */ - struct FdwRoutine *ri_FdwRoutine; - - /* available to save private state of FDW */ - void *ri_FdwState; - - /* true when modifying foreign table directly */ - bool ri_usesFdwDirectModify; - - /* batch insert stuff */ - int ri_NumSlots; /* number of slots in the array */ - int ri_NumSlotsInitialized; /* number of initialized slots */ - int ri_BatchSize; /* max slots inserted in a single batch */ - TupleTableSlot **ri_Slots; /* input tuples for batch insert */ - TupleTableSlot **ri_PlanSlots; - - /* list of WithCheckOption's to be checked */ - List *ri_WithCheckOptions; - - /* list of WithCheckOption expr states */ - List *ri_WithCheckOptionExprs; - - /* array of constraint-checking expr states */ - ExprState **ri_ConstraintExprs; - - /* array of stored generated columns expr states */ - ExprState **ri_GeneratedExprs; - - /* number of stored generated columns we need to compute */ - int ri_NumGeneratedNeeded; - - /* list of RETURNING expressions */ - List *ri_returningList; - - /* for computing a RETURNING list */ - ProjectionInfo *ri_projectReturning; - - /* list of arbiter indexes to use to check conflicts */ - List *ri_onConflictArbiterIndexes; - - /* ON CONFLICT evaluation state */ - OnConflictSetState *ri_onConflict; - - /* for MERGE, lists of MergeActionState */ - List *ri_matchedMergeAction; - List *ri_notMatchedMergeAction; - - /* partition check expression state (NULL if not set up yet) */ - ExprState *ri_PartitionCheckExpr; - - /* - * Information needed by tuple routing target relations - * - * RootResultRelInfo gives the target relation mentioned in the query, if - * it's a partitioned table. It is not set if the target relation - * mentioned in the query is an inherited table, nor when tuple routing is - * not needed. - * - * RootToPartitionMap and PartitionTupleSlot, initialized by - * ExecInitRoutingInfo, are non-NULL if partition has a different tuple - * format than the root table. - */ - struct ResultRelInfo *ri_RootResultRelInfo; - TupleConversionMap *ri_RootToPartitionMap; - TupleTableSlot *ri_PartitionTupleSlot; - - /* - * Map to convert child result relation tuples to the format of the table - * actually mentioned in the query (called "root"). Computed only if - * needed. A NULL map value indicates that no conversion is needed, so we - * must have a separate flag to show if the map has been computed. - */ - TupleConversionMap *ri_ChildToRootMap; - bool ri_ChildToRootMapValid; - - /* for use by copyfrom.c when performing multi-inserts */ - struct CopyMultiInsertBuffer *ri_CopyMultiInsertBuffer; - - /* - * Used when a leaf partition is involved in a cross-partition update of - * one of its ancestors; see ExecCrossPartitionUpdateForeignKey(). - */ - List *ri_ancestorResultRels; -} ResultRelInfo; - -/* ---------------- - * AsyncRequest - * - * State for an asynchronous tuple request. - * ---------------- - */ -typedef struct AsyncRequest -{ - struct PlanState *requestor; /* Node that wants a tuple */ - struct PlanState *requestee; /* Node from which a tuple is wanted */ - int request_index; /* Scratch space for requestor */ - bool callback_pending; /* Callback is needed */ - bool request_complete; /* Request complete, result valid */ - TupleTableSlot *result; /* Result (NULL or an empty slot if no more - * tuples) */ -} AsyncRequest; - -/* ---------------- - * EState information - * - * Working state for an Executor invocation - * ---------------- - */ -typedef struct EState -{ - NodeTag type; - - /* Basic state for all query types: */ - ScanDirection es_direction; /* current scan direction */ - Snapshot es_snapshot; /* time qual to use */ - Snapshot es_crosscheck_snapshot; /* crosscheck time qual for RI */ - List *es_range_table; /* List of RangeTblEntry */ - Index es_range_table_size; /* size of the range table arrays */ - Relation *es_relations; /* Array of per-range-table-entry Relation - * pointers, or NULL if not yet opened */ - struct ExecRowMark **es_rowmarks; /* Array of per-range-table-entry - * ExecRowMarks, or NULL if none */ - PlannedStmt *es_plannedstmt; /* link to top of plan tree */ - const char *es_sourceText; /* Source text from QueryDesc */ - - JunkFilter *es_junkFilter; /* top-level junk filter, if any */ - - /* If query can insert/delete tuples, the command ID to mark them with */ - CommandId es_output_cid; - - /* Info about target table(s) for insert/update/delete queries: */ - ResultRelInfo **es_result_relations; /* Array of per-range-table-entry - * ResultRelInfo pointers, or NULL - * if not a target table */ - List *es_opened_result_relations; /* List of non-NULL entries in - * es_result_relations in no - * specific order */ - - PartitionDirectory es_partition_directory; /* for PartitionDesc lookup */ - - /* - * The following list contains ResultRelInfos created by the tuple routing - * code for partitions that aren't found in the es_result_relations array. - */ - List *es_tuple_routing_result_relations; - - /* Stuff used for firing triggers: */ - List *es_trig_target_relations; /* trigger-only ResultRelInfos */ - - /* Parameter info: */ - ParamListInfo es_param_list_info; /* values of external params */ - ParamExecData *es_param_exec_vals; /* values of internal params */ - - QueryEnvironment *es_queryEnv; /* query environment */ - - /* Other working state: */ - MemoryContext es_query_cxt; /* per-query context in which EState lives */ - - List *es_tupleTable; /* List of TupleTableSlots */ - - uint64 es_processed; /* # of tuples processed */ - - int es_top_eflags; /* eflags passed to ExecutorStart */ - int es_instrument; /* OR of InstrumentOption flags */ - bool es_finished; /* true when ExecutorFinish is done */ - - List *es_exprcontexts; /* List of ExprContexts within EState */ - - List *es_subplanstates; /* List of PlanState for SubPlans */ - - List *es_auxmodifytables; /* List of secondary ModifyTableStates */ - - /* - * this ExprContext is for per-output-tuple operations, such as constraint - * checks and index-value computations. It will be reset for each output - * tuple. Note that it will be created only if needed. - */ - ExprContext *es_per_tuple_exprcontext; - - /* - * If not NULL, this is an EPQState's EState. This is a field in EState - * both to allow EvalPlanQual aware executor nodes to detect that they - * need to perform EPQ related work, and to provide necessary information - * to do so. - */ - struct EPQState *es_epq_active; - - bool es_use_parallel_mode; /* can we use parallel workers? */ - - /* The per-query shared memory area to use for parallel execution. */ - struct dsa_area *es_query_dsa; - - /* - * JIT information. es_jit_flags indicates whether JIT should be performed - * and with which options. es_jit is created on-demand when JITing is - * performed. - * - * es_jit_worker_instr is the combined, on demand allocated, - * instrumentation from all workers. The leader's instrumentation is kept - * separate, and is combined on demand by ExplainPrintJITSummary(). - */ - int es_jit_flags; - struct JitContext *es_jit; - struct JitInstrumentation *es_jit_worker_instr; -} EState; - - -/* - * ExecRowMark - - * runtime representation of FOR [KEY] UPDATE/SHARE clauses - * - * When doing UPDATE, DELETE, or SELECT FOR [KEY] UPDATE/SHARE, we will have an - * ExecRowMark for each non-target relation in the query (except inheritance - * parent RTEs, which can be ignored at runtime). Virtual relations such as - * subqueries-in-FROM will have an ExecRowMark with relation == NULL. See - * PlanRowMark for details about most of the fields. In addition to fields - * directly derived from PlanRowMark, we store an activity flag (to denote - * inactive children of inheritance trees), curCtid, which is used by the - * WHERE CURRENT OF code, and ermExtra, which is available for use by the plan - * node that sources the relation (e.g., for a foreign table the FDW can use - * ermExtra to hold information). - * - * EState->es_rowmarks is an array of these structs, indexed by RT index, - * with NULLs for irrelevant RT indexes. es_rowmarks itself is NULL if - * there are no rowmarks. - */ -typedef struct ExecRowMark -{ - Relation relation; /* opened and suitably locked relation */ - Oid relid; /* its OID (or InvalidOid, if subquery) */ - Index rti; /* its range table index */ - Index prti; /* parent range table index, if child */ - Index rowmarkId; /* unique identifier for resjunk columns */ - RowMarkType markType; /* see enum in nodes/plannodes.h */ - LockClauseStrength strength; /* LockingClause's strength, or LCS_NONE */ - LockWaitPolicy waitPolicy; /* NOWAIT and SKIP LOCKED */ - bool ermActive; /* is this mark relevant for current tuple? */ - ItemPointerData curCtid; /* ctid of currently locked tuple, if any */ - void *ermExtra; /* available for use by relation source node */ -} ExecRowMark; - -/* - * ExecAuxRowMark - - * additional runtime representation of FOR [KEY] UPDATE/SHARE clauses - * - * Each LockRows and ModifyTable node keeps a list of the rowmarks it needs to - * deal with. In addition to a pointer to the related entry in es_rowmarks, - * this struct carries the column number(s) of the resjunk columns associated - * with the rowmark (see comments for PlanRowMark for more detail). - */ -typedef struct ExecAuxRowMark -{ - ExecRowMark *rowmark; /* related entry in es_rowmarks */ - AttrNumber ctidAttNo; /* resno of ctid junk attribute, if any */ - AttrNumber toidAttNo; /* resno of tableoid junk attribute, if any */ - AttrNumber wholeAttNo; /* resno of whole-row junk attribute, if any */ -} ExecAuxRowMark; - - -/* ---------------------------------------------------------------- - * Tuple Hash Tables - * - * All-in-memory tuple hash tables are used for a number of purposes. - * - * Note: tab_hash_funcs are for the key datatype(s) stored in the table, - * and tab_eq_funcs are non-cross-type equality operators for those types. - * Normally these are the only functions used, but FindTupleHashEntry() - * supports searching a hashtable using cross-data-type hashing. For that, - * the caller must supply hash functions for the LHS datatype as well as - * the cross-type equality operators to use. in_hash_funcs and cur_eq_func - * are set to point to the caller's function arrays while doing such a search. - * During LookupTupleHashEntry(), they point to tab_hash_funcs and - * tab_eq_func respectively. - * ---------------------------------------------------------------- - */ -typedef struct TupleHashEntryData *TupleHashEntry; -typedef struct TupleHashTableData *TupleHashTable; - -typedef struct TupleHashEntryData -{ - MinimalTuple firstTuple; /* copy of first tuple in this group */ - void *additional; /* user data */ - uint32 status; /* hash status */ - uint32 hash; /* hash value (cached) */ -} TupleHashEntryData; - -/* define parameters necessary to generate the tuple hash table interface */ -#define SH_PREFIX tuplehash -#define SH_ELEMENT_TYPE TupleHashEntryData -#define SH_KEY_TYPE MinimalTuple -#define SH_SCOPE extern -#define SH_DECLARE -#include "lib/simplehash.h" - -typedef struct TupleHashTableData -{ - tuplehash_hash *hashtab; /* underlying hash table */ - int numCols; /* number of columns in lookup key */ - AttrNumber *keyColIdx; /* attr numbers of key columns */ - FmgrInfo *tab_hash_funcs; /* hash functions for table datatype(s) */ - ExprState *tab_eq_func; /* comparator for table datatype(s) */ - Oid *tab_collations; /* collations for hash and comparison */ - MemoryContext tablecxt; /* memory context containing table */ - MemoryContext tempcxt; /* context for function evaluations */ - Size entrysize; /* actual size to make each hash entry */ - TupleTableSlot *tableslot; /* slot for referencing table entries */ - /* The following fields are set transiently for each table search: */ - TupleTableSlot *inputslot; /* current input tuple's slot */ - FmgrInfo *in_hash_funcs; /* hash functions for input datatype(s) */ - ExprState *cur_eq_func; /* comparator for input vs. table */ - uint32 hash_iv; /* hash-function IV */ - ExprContext *exprcontext; /* expression context */ -} TupleHashTableData; - -typedef tuplehash_iterator TupleHashIterator; - -/* - * Use InitTupleHashIterator/TermTupleHashIterator for a read/write scan. - * Use ResetTupleHashIterator if the table can be frozen (in this case no - * explicit scan termination is needed). - */ -#define InitTupleHashIterator(htable, iter) \ - tuplehash_start_iterate(htable->hashtab, iter) -#define TermTupleHashIterator(iter) \ - ((void) 0) -#define ResetTupleHashIterator(htable, iter) \ - InitTupleHashIterator(htable, iter) -#define ScanTupleHashTable(htable, iter) \ - tuplehash_iterate(htable->hashtab, iter) - - -/* ---------------------------------------------------------------- - * Expression State Nodes - * - * Formerly, there was a separate executor expression state node corresponding - * to each node in a planned expression tree. That's no longer the case; for - * common expression node types, all the execution info is embedded into - * step(s) in a single ExprState node. But we still have a few executor state - * node types for selected expression node types, mostly those in which info - * has to be shared with other parts of the execution state tree. - * ---------------------------------------------------------------- - */ - -/* ---------------- - * WindowFuncExprState node - * ---------------- - */ -typedef struct WindowFuncExprState -{ - NodeTag type; - WindowFunc *wfunc; /* expression plan node */ - List *args; /* ExprStates for argument expressions */ - ExprState *aggfilter; /* FILTER expression */ - int wfuncno; /* ID number for wfunc within its plan node */ -} WindowFuncExprState; - - -/* ---------------- - * SetExprState node - * - * State for evaluating a potentially set-returning expression (like FuncExpr - * or OpExpr). In some cases, like some of the expressions in ROWS FROM(...) - * the expression might not be a SRF, but nonetheless it uses the same - * machinery as SRFs; it will be treated as a SRF returning a single row. - * ---------------- - */ -typedef struct SetExprState -{ - NodeTag type; - Expr *expr; /* expression plan node */ - List *args; /* ExprStates for argument expressions */ - - /* - * In ROWS FROM, functions can be inlined, removing the FuncExpr normally - * inside. In such a case this is the compiled expression (which cannot - * return a set), which'll be evaluated using regular ExecEvalExpr(). - */ - ExprState *elidedFuncState; - - /* - * Function manager's lookup info for the target function. If func.fn_oid - * is InvalidOid, we haven't initialized it yet (nor any of the following - * fields, except funcReturnsSet). - */ - FmgrInfo func; - - /* - * For a set-returning function (SRF) that returns a tuplestore, we keep - * the tuplestore here and dole out the result rows one at a time. The - * slot holds the row currently being returned. - */ - Tuplestorestate *funcResultStore; - TupleTableSlot *funcResultSlot; - - /* - * In some cases we need to compute a tuple descriptor for the function's - * output. If so, it's stored here. - */ - TupleDesc funcResultDesc; - bool funcReturnsTuple; /* valid when funcResultDesc isn't NULL */ - - /* - * Remember whether the function is declared to return a set. This is set - * by ExecInitExpr, and is valid even before the FmgrInfo is set up. - */ - bool funcReturnsSet; - - /* - * setArgsValid is true when we are evaluating a set-returning function - * that uses value-per-call mode and we are in the middle of a call - * series; we want to pass the same argument values to the function again - * (and again, until it returns ExprEndResult). This indicates that - * fcinfo_data already contains valid argument data. - */ - bool setArgsValid; - - /* - * Flag to remember whether we have registered a shutdown callback for - * this SetExprState. We do so only if funcResultStore or setArgsValid - * has been set at least once (since all the callback is for is to release - * the tuplestore or clear setArgsValid). - */ - bool shutdown_reg; /* a shutdown callback is registered */ - - /* - * Call parameter structure for the function. This has been initialized - * (by InitFunctionCallInfoData) if func.fn_oid is valid. It also saves - * argument values between calls, when setArgsValid is true. - */ - FunctionCallInfo fcinfo; -} SetExprState; - -/* ---------------- - * SubPlanState node - * ---------------- - */ -typedef struct SubPlanState -{ - NodeTag type; - SubPlan *subplan; /* expression plan node */ - struct PlanState *planstate; /* subselect plan's state tree */ - struct PlanState *parent; /* parent plan node's state tree */ - ExprState *testexpr; /* state of combining expression */ - List *args; /* states of argument expression(s) */ - HeapTuple curTuple; /* copy of most recent tuple from subplan */ - Datum curArray; /* most recent array from ARRAY() subplan */ - /* these are used when hashing the subselect's output: */ - TupleDesc descRight; /* subselect desc after projection */ - ProjectionInfo *projLeft; /* for projecting lefthand exprs */ - ProjectionInfo *projRight; /* for projecting subselect output */ - TupleHashTable hashtable; /* hash table for no-nulls subselect rows */ - TupleHashTable hashnulls; /* hash table for rows with null(s) */ - bool havehashrows; /* true if hashtable is not empty */ - bool havenullrows; /* true if hashnulls is not empty */ - MemoryContext hashtablecxt; /* memory context containing hash tables */ - MemoryContext hashtempcxt; /* temp memory context for hash tables */ - ExprContext *innerecontext; /* econtext for computing inner tuples */ - int numCols; /* number of columns being hashed */ - /* each of the remaining fields is an array of length numCols: */ - AttrNumber *keyColIdx; /* control data for hash tables */ - Oid *tab_eq_funcoids; /* equality func oids for table - * datatype(s) */ - Oid *tab_collations; /* collations for hash and comparison */ - FmgrInfo *tab_hash_funcs; /* hash functions for table datatype(s) */ - FmgrInfo *tab_eq_funcs; /* equality functions for table datatype(s) */ - FmgrInfo *lhs_hash_funcs; /* hash functions for lefthand datatype(s) */ - FmgrInfo *cur_eq_funcs; /* equality functions for LHS vs. table */ - ExprState *cur_eq_comp; /* equality comparator for LHS vs. table */ -} SubPlanState; - -/* - * DomainConstraintState - one item to check during CoerceToDomain - * - * Note: we consider this to be part of an ExprState tree, so we give it - * a name following the xxxState convention. But there's no directly - * associated plan-tree node. - */ -typedef enum DomainConstraintType -{ - DOM_CONSTRAINT_NOTNULL, - DOM_CONSTRAINT_CHECK -} DomainConstraintType; - -typedef struct DomainConstraintState -{ - NodeTag type; - DomainConstraintType constrainttype; /* constraint type */ - char *name; /* name of constraint (for error msgs) */ - Expr *check_expr; /* for CHECK, a boolean expression */ - ExprState *check_exprstate; /* check_expr's eval state, or NULL */ -} DomainConstraintState; - - -/* ---------------------------------------------------------------- - * Executor State Trees - * - * An executing query has a PlanState tree paralleling the Plan tree - * that describes the plan. - * ---------------------------------------------------------------- - */ - -/* ---------------- - * ExecProcNodeMtd - * - * This is the method called by ExecProcNode to return the next tuple - * from an executor node. It returns NULL, or an empty TupleTableSlot, - * if no more tuples are available. - * ---------------- - */ -typedef TupleTableSlot *(*ExecProcNodeMtd) (struct PlanState *pstate); - -/* ---------------- - * PlanState node - * - * We never actually instantiate any PlanState nodes; this is just the common - * abstract superclass for all PlanState-type nodes. - * ---------------- - */ -typedef struct PlanState -{ - NodeTag type; - - Plan *plan; /* associated Plan node */ - - EState *state; /* at execution time, states of individual - * nodes point to one EState for the whole - * top-level plan */ - - ExecProcNodeMtd ExecProcNode; /* function to return next tuple */ - ExecProcNodeMtd ExecProcNodeReal; /* actual function, if above is a - * wrapper */ - - Instrumentation *instrument; /* Optional runtime stats for this node */ - WorkerInstrumentation *worker_instrument; /* per-worker instrumentation */ - - /* Per-worker JIT instrumentation */ - struct SharedJitInstrumentation *worker_jit_instrument; - - /* - * Common structural data for all Plan types. These links to subsidiary - * state trees parallel links in the associated plan tree (except for the - * subPlan list, which does not exist in the plan tree). - */ - ExprState *qual; /* boolean qual condition */ - struct PlanState *lefttree; /* input plan tree(s) */ - struct PlanState *righttree; - - List *initPlan; /* Init SubPlanState nodes (un-correlated expr - * subselects) */ - List *subPlan; /* SubPlanState nodes in my expressions */ - - /* - * State for management of parameter-change-driven rescanning - */ - Bitmapset *chgParam; /* set of IDs of changed Params */ - - /* - * Other run-time state needed by most if not all node types. - */ - TupleDesc ps_ResultTupleDesc; /* node's return type */ - TupleTableSlot *ps_ResultTupleSlot; /* slot for my result tuples */ - ExprContext *ps_ExprContext; /* node's expression-evaluation context */ - ProjectionInfo *ps_ProjInfo; /* info for doing tuple projection */ - - bool async_capable; /* true if node is async-capable */ - - /* - * Scanslot's descriptor if known. This is a bit of a hack, but otherwise - * it's hard for expression compilation to optimize based on the - * descriptor, without encoding knowledge about all executor nodes. - */ - TupleDesc scandesc; - - /* - * Define the slot types for inner, outer and scanslots for expression - * contexts with this state as a parent. If *opsset is set, then - * *opsfixed indicates whether *ops is guaranteed to be the type of slot - * used. That means that every slot in the corresponding - * ExprContext.ecxt_*tuple will point to a slot of that type, while - * evaluating the expression. If *opsfixed is false, but *ops is set, - * that indicates the most likely type of slot. - * - * The scan* fields are set by ExecInitScanTupleSlot(). If that's not - * called, nodes can initialize the fields themselves. - * - * If outer/inneropsset is false, the information is inferred on-demand - * using ExecGetResultSlotOps() on ->righttree/lefttree, using the - * corresponding node's resultops* fields. - * - * The result* fields are automatically set when ExecInitResultSlot is - * used (be it directly or when the slot is created by - * ExecAssignScanProjectionInfo() / - * ExecConditionalAssignProjectionInfo()). If no projection is necessary - * ExecConditionalAssignProjectionInfo() defaults those fields to the scan - * operations. - */ - const TupleTableSlotOps *scanops; - const TupleTableSlotOps *outerops; - const TupleTableSlotOps *innerops; - const TupleTableSlotOps *resultops; - bool scanopsfixed; - bool outeropsfixed; - bool inneropsfixed; - bool resultopsfixed; - bool scanopsset; - bool outeropsset; - bool inneropsset; - bool resultopsset; -} PlanState; - -/* ---------------- - * these are defined to avoid confusion problems with "left" - * and "right" and "inner" and "outer". The convention is that - * the "left" plan is the "outer" plan and the "right" plan is - * the inner plan, but these make the code more readable. - * ---------------- - */ -#define innerPlanState(node) (((PlanState *)(node))->righttree) -#define outerPlanState(node) (((PlanState *)(node))->lefttree) - -/* Macros for inline access to certain instrumentation counters */ -#define InstrCountTuples2(node, delta) \ - do { \ - if (((PlanState *)(node))->instrument) \ - ((PlanState *)(node))->instrument->ntuples2 += (delta); \ - } while (0) -#define InstrCountFiltered1(node, delta) \ - do { \ - if (((PlanState *)(node))->instrument) \ - ((PlanState *)(node))->instrument->nfiltered1 += (delta); \ - } while(0) -#define InstrCountFiltered2(node, delta) \ - do { \ - if (((PlanState *)(node))->instrument) \ - ((PlanState *)(node))->instrument->nfiltered2 += (delta); \ - } while(0) - -/* - * EPQState is state for executing an EvalPlanQual recheck on a candidate - * tuples e.g. in ModifyTable or LockRows. - * - * To execute EPQ a separate EState is created (stored in ->recheckestate), - * which shares some resources, like the rangetable, with the main query's - * EState (stored in ->parentestate). The (sub-)tree of the plan that needs to - * be rechecked (in ->plan), is separately initialized (into - * ->recheckplanstate), but shares plan nodes with the corresponding nodes in - * the main query. The scan nodes in that separate executor tree are changed - * to return only the current tuple of interest for the respective - * table. Those tuples are either provided by the caller (using - * EvalPlanQualSlot), and/or found using the rowmark mechanism (non-locking - * rowmarks by the EPQ machinery itself, locking ones by the caller). - * - * While the plan to be checked may be changed using EvalPlanQualSetPlan(), - * all such plans need to share the same EState. - */ -typedef struct EPQState -{ - /* Initialized at EvalPlanQualInit() time: */ - - EState *parentestate; /* main query's EState */ - int epqParam; /* ID of Param to force scan node re-eval */ - - /* - * Tuples to be substituted by scan nodes. They need to set up, before - * calling EvalPlanQual()/EvalPlanQualNext(), into the slot returned by - * EvalPlanQualSlot(scanrelid). The array is indexed by scanrelid - 1. - */ - List *tuple_table; /* tuple table for relsubs_slot */ - TupleTableSlot **relsubs_slot; - - /* - * Initialized by EvalPlanQualInit(), may be changed later with - * EvalPlanQualSetPlan(): - */ - - Plan *plan; /* plan tree to be executed */ - List *arowMarks; /* ExecAuxRowMarks (non-locking only) */ - - - /* - * The original output tuple to be rechecked. Set by - * EvalPlanQualSetSlot(), before EvalPlanQualNext() or EvalPlanQual() may - * be called. - */ - TupleTableSlot *origslot; - - - /* Initialized or reset by EvalPlanQualBegin(): */ - - EState *recheckestate; /* EState for EPQ execution, see above */ - - /* - * Rowmarks that can be fetched on-demand using - * EvalPlanQualFetchRowMark(), indexed by scanrelid - 1. Only non-locking - * rowmarks. - */ - ExecAuxRowMark **relsubs_rowmark; - - /* - * True if a relation's EPQ tuple has been fetched for relation, indexed - * by scanrelid - 1. - */ - bool *relsubs_done; - - PlanState *recheckplanstate; /* EPQ specific exec nodes, for ->plan */ -} EPQState; - - -/* ---------------- - * ResultState information - * ---------------- - */ -typedef struct ResultState -{ - PlanState ps; /* its first field is NodeTag */ - ExprState *resconstantqual; - bool rs_done; /* are we done? */ - bool rs_checkqual; /* do we need to check the qual? */ -} ResultState; - -/* ---------------- - * ProjectSetState information - * - * Note: at least one of the "elems" will be a SetExprState; the rest are - * regular ExprStates. - * ---------------- - */ -typedef struct ProjectSetState -{ - PlanState ps; /* its first field is NodeTag */ - Node **elems; /* array of expression states */ - ExprDoneCond *elemdone; /* array of per-SRF is-done states */ - int nelems; /* length of elemdone[] array */ - bool pending_srf_tuples; /* still evaluating srfs in tlist? */ - MemoryContext argcontext; /* context for SRF arguments */ -} ProjectSetState; - - -/* flags for mt_merge_subcommands */ -#define MERGE_INSERT 0x01 -#define MERGE_UPDATE 0x02 -#define MERGE_DELETE 0x04 - -/* ---------------- - * ModifyTableState information - * ---------------- - */ -typedef struct ModifyTableState -{ - PlanState ps; /* its first field is NodeTag */ - CmdType operation; /* INSERT, UPDATE, DELETE, or MERGE */ - bool canSetTag; /* do we set the command tag/es_processed? */ - bool mt_done; /* are we done? */ - int mt_nrels; /* number of entries in resultRelInfo[] */ - ResultRelInfo *resultRelInfo; /* info about target relation(s) */ - - /* - * Target relation mentioned in the original statement, used to fire - * statement-level triggers and as the root for tuple routing. (This - * might point to one of the resultRelInfo[] entries, but it can also be a - * distinct struct.) - */ - ResultRelInfo *rootResultRelInfo; - - EPQState mt_epqstate; /* for evaluating EvalPlanQual rechecks */ - bool fireBSTriggers; /* do we need to fire stmt triggers? */ - - /* - * These fields are used for inherited UPDATE and DELETE, to track which - * target relation a given tuple is from. If there are a lot of target - * relations, we use a hash table to translate table OIDs to - * resultRelInfo[] indexes; otherwise mt_resultOidHash is NULL. - */ - int mt_resultOidAttno; /* resno of "tableoid" junk attr */ - Oid mt_lastResultOid; /* last-seen value of tableoid */ - int mt_lastResultIndex; /* corresponding index in resultRelInfo[] */ - HTAB *mt_resultOidHash; /* optional hash table to speed lookups */ - - /* - * Slot for storing tuples in the root partitioned table's rowtype during - * an UPDATE of a partitioned table. - */ - TupleTableSlot *mt_root_tuple_slot; - - /* Tuple-routing support info */ - struct PartitionTupleRouting *mt_partition_tuple_routing; - - /* controls transition table population for specified operation */ - struct TransitionCaptureState *mt_transition_capture; - - /* controls transition table population for INSERT...ON CONFLICT UPDATE */ - struct TransitionCaptureState *mt_oc_transition_capture; - - /* Flags showing which subcommands are present INS/UPD/DEL/DO NOTHING */ - int mt_merge_subcommands; - - /* tuple counters for MERGE */ - double mt_merge_inserted; - double mt_merge_updated; - double mt_merge_deleted; -} ModifyTableState; - -/* ---------------- - * AppendState information - * - * nplans how many plans are in the array - * whichplan which synchronous plan is being executed (0 .. n-1) - * or a special negative value. See nodeAppend.c. - * prune_state details required to allow partitions to be - * eliminated from the scan, or NULL if not possible. - * valid_subplans for runtime pruning, valid synchronous appendplans - * indexes to scan. - * ---------------- - */ - -struct AppendState; -typedef struct AppendState AppendState; -struct ParallelAppendState; -typedef struct ParallelAppendState ParallelAppendState; -struct PartitionPruneState; - -struct AppendState -{ - PlanState ps; /* its first field is NodeTag */ - PlanState **appendplans; /* array of PlanStates for my inputs */ - int as_nplans; - int as_whichplan; - bool as_begun; /* false means need to initialize */ - Bitmapset *as_asyncplans; /* asynchronous plans indexes */ - int as_nasyncplans; /* # of asynchronous plans */ - AsyncRequest **as_asyncrequests; /* array of AsyncRequests */ - TupleTableSlot **as_asyncresults; /* unreturned results of async plans */ - int as_nasyncresults; /* # of valid entries in as_asyncresults */ - bool as_syncdone; /* true if all synchronous plans done in - * asynchronous mode, else false */ - int as_nasyncremain; /* # of remaining asynchronous plans */ - Bitmapset *as_needrequest; /* asynchronous plans needing a new request */ - struct WaitEventSet *as_eventset; /* WaitEventSet used to configure file - * descriptor wait events */ - int as_first_partial_plan; /* Index of 'appendplans' containing - * the first partial plan */ - ParallelAppendState *as_pstate; /* parallel coordination info */ - Size pstate_len; /* size of parallel coordination info */ - struct PartitionPruneState *as_prune_state; - Bitmapset *as_valid_subplans; - Bitmapset *as_valid_asyncplans; /* valid asynchronous plans indexes */ - bool (*choose_next_subplan) (AppendState *); -}; - -/* ---------------- - * MergeAppendState information - * - * nplans how many plans are in the array - * nkeys number of sort key columns - * sortkeys sort keys in SortSupport representation - * slots current output tuple of each subplan - * heap heap of active tuples - * initialized true if we have fetched first tuple from each subplan - * prune_state details required to allow partitions to be - * eliminated from the scan, or NULL if not possible. - * valid_subplans for runtime pruning, valid mergeplans indexes to - * scan. - * ---------------- - */ -typedef struct MergeAppendState -{ - PlanState ps; /* its first field is NodeTag */ - PlanState **mergeplans; /* array of PlanStates for my inputs */ - int ms_nplans; - int ms_nkeys; - SortSupport ms_sortkeys; /* array of length ms_nkeys */ - TupleTableSlot **ms_slots; /* array of length ms_nplans */ - struct binaryheap *ms_heap; /* binary heap of slot indices */ - bool ms_initialized; /* are subplans started? */ - struct PartitionPruneState *ms_prune_state; - Bitmapset *ms_valid_subplans; -} MergeAppendState; - -/* ---------------- - * RecursiveUnionState information - * - * RecursiveUnionState is used for performing a recursive union. - * - * recursing T when we're done scanning the non-recursive term - * intermediate_empty T if intermediate_table is currently empty - * working_table working table (to be scanned by recursive term) - * intermediate_table current recursive output (next generation of WT) - * ---------------- - */ -typedef struct RecursiveUnionState -{ - PlanState ps; /* its first field is NodeTag */ - bool recursing; - bool intermediate_empty; - Tuplestorestate *working_table; - Tuplestorestate *intermediate_table; - /* Remaining fields are unused in UNION ALL case */ - Oid *eqfuncoids; /* per-grouping-field equality fns */ - FmgrInfo *hashfunctions; /* per-grouping-field hash fns */ - MemoryContext tempContext; /* short-term context for comparisons */ - TupleHashTable hashtable; /* hash table for tuples already seen */ - MemoryContext tableContext; /* memory context containing hash table */ -} RecursiveUnionState; - -/* ---------------- - * BitmapAndState information - * ---------------- - */ -typedef struct BitmapAndState -{ - PlanState ps; /* its first field is NodeTag */ - PlanState **bitmapplans; /* array of PlanStates for my inputs */ - int nplans; /* number of input plans */ -} BitmapAndState; - -/* ---------------- - * BitmapOrState information - * ---------------- - */ -typedef struct BitmapOrState -{ - PlanState ps; /* its first field is NodeTag */ - PlanState **bitmapplans; /* array of PlanStates for my inputs */ - int nplans; /* number of input plans */ -} BitmapOrState; - -/* ---------------------------------------------------------------- - * Scan State Information - * ---------------------------------------------------------------- - */ - -/* ---------------- - * ScanState information - * - * ScanState extends PlanState for node types that represent - * scans of an underlying relation. It can also be used for nodes - * that scan the output of an underlying plan node --- in that case, - * only ScanTupleSlot is actually useful, and it refers to the tuple - * retrieved from the subplan. - * - * currentRelation relation being scanned (NULL if none) - * currentScanDesc current scan descriptor for scan (NULL if none) - * ScanTupleSlot pointer to slot in tuple table holding scan tuple - * ---------------- - */ -typedef struct ScanState -{ - PlanState ps; /* its first field is NodeTag */ - Relation ss_currentRelation; - struct TableScanDescData *ss_currentScanDesc; - TupleTableSlot *ss_ScanTupleSlot; -} ScanState; - -/* ---------------- - * SeqScanState information - * ---------------- - */ -typedef struct SeqScanState -{ - ScanState ss; /* its first field is NodeTag */ - Size pscan_len; /* size of parallel heap scan descriptor */ -} SeqScanState; - -/* ---------------- - * SampleScanState information - * ---------------- - */ -typedef struct SampleScanState -{ - ScanState ss; - List *args; /* expr states for TABLESAMPLE params */ - ExprState *repeatable; /* expr state for REPEATABLE expr */ - /* use struct pointer to avoid including tsmapi.h here */ - struct TsmRoutine *tsmroutine; /* descriptor for tablesample method */ - void *tsm_state; /* tablesample method can keep state here */ - bool use_bulkread; /* use bulkread buffer access strategy? */ - bool use_pagemode; /* use page-at-a-time visibility checking? */ - bool begun; /* false means need to call BeginSampleScan */ - uint32 seed; /* random seed */ - int64 donetuples; /* number of tuples already returned */ - bool haveblock; /* has a block for sampling been determined */ - bool done; /* exhausted all tuples? */ -} SampleScanState; - -/* - * These structs store information about index quals that don't have simple - * constant right-hand sides. See comments for ExecIndexBuildScanKeys() - * for discussion. - */ -typedef struct -{ - struct ScanKeyData *scan_key; /* scankey to put value into */ - ExprState *key_expr; /* expr to evaluate to get value */ - bool key_toastable; /* is expr's result a toastable datatype? */ -} IndexRuntimeKeyInfo; - -typedef struct -{ - struct ScanKeyData *scan_key; /* scankey to put value into */ - ExprState *array_expr; /* expr to evaluate to get array value */ - int next_elem; /* next array element to use */ - int num_elems; /* number of elems in current array value */ - Datum *elem_values; /* array of num_elems Datums */ - bool *elem_nulls; /* array of num_elems is-null flags */ -} IndexArrayKeyInfo; - -/* ---------------- - * IndexScanState information - * - * indexqualorig execution state for indexqualorig expressions - * indexorderbyorig execution state for indexorderbyorig expressions - * ScanKeys Skey structures for index quals - * NumScanKeys number of ScanKeys - * OrderByKeys Skey structures for index ordering operators - * NumOrderByKeys number of OrderByKeys - * RuntimeKeys info about Skeys that must be evaluated at runtime - * NumRuntimeKeys number of RuntimeKeys - * RuntimeKeysReady true if runtime Skeys have been computed - * RuntimeContext expr context for evaling runtime Skeys - * RelationDesc index relation descriptor - * ScanDesc index scan descriptor - * - * ReorderQueue tuples that need reordering due to re-check - * ReachedEnd have we fetched all tuples from index already? - * OrderByValues values of ORDER BY exprs of last fetched tuple - * OrderByNulls null flags for OrderByValues - * SortSupport for reordering ORDER BY exprs - * OrderByTypByVals is the datatype of order by expression pass-by-value? - * OrderByTypLens typlens of the datatypes of order by expressions - * PscanLen size of parallel index scan descriptor - * ---------------- - */ -typedef struct IndexScanState -{ - ScanState ss; /* its first field is NodeTag */ - ExprState *indexqualorig; - List *indexorderbyorig; - struct ScanKeyData *iss_ScanKeys; - int iss_NumScanKeys; - struct ScanKeyData *iss_OrderByKeys; - int iss_NumOrderByKeys; - IndexRuntimeKeyInfo *iss_RuntimeKeys; - int iss_NumRuntimeKeys; - bool iss_RuntimeKeysReady; - ExprContext *iss_RuntimeContext; - Relation iss_RelationDesc; - struct IndexScanDescData *iss_ScanDesc; - - /* These are needed for re-checking ORDER BY expr ordering */ - pairingheap *iss_ReorderQueue; - bool iss_ReachedEnd; - Datum *iss_OrderByValues; - bool *iss_OrderByNulls; - SortSupport iss_SortSupport; - bool *iss_OrderByTypByVals; - int16 *iss_OrderByTypLens; - Size iss_PscanLen; -} IndexScanState; - -/* ---------------- - * IndexOnlyScanState information - * - * recheckqual execution state for recheckqual expressions - * ScanKeys Skey structures for index quals - * NumScanKeys number of ScanKeys - * OrderByKeys Skey structures for index ordering operators - * NumOrderByKeys number of OrderByKeys - * RuntimeKeys info about Skeys that must be evaluated at runtime - * NumRuntimeKeys number of RuntimeKeys - * RuntimeKeysReady true if runtime Skeys have been computed - * RuntimeContext expr context for evaling runtime Skeys - * RelationDesc index relation descriptor - * ScanDesc index scan descriptor - * TableSlot slot for holding tuples fetched from the table - * VMBuffer buffer in use for visibility map testing, if any - * PscanLen size of parallel index-only scan descriptor - * ---------------- - */ -typedef struct IndexOnlyScanState -{ - ScanState ss; /* its first field is NodeTag */ - ExprState *recheckqual; - struct ScanKeyData *ioss_ScanKeys; - int ioss_NumScanKeys; - struct ScanKeyData *ioss_OrderByKeys; - int ioss_NumOrderByKeys; - IndexRuntimeKeyInfo *ioss_RuntimeKeys; - int ioss_NumRuntimeKeys; - bool ioss_RuntimeKeysReady; - ExprContext *ioss_RuntimeContext; - Relation ioss_RelationDesc; - struct IndexScanDescData *ioss_ScanDesc; - TupleTableSlot *ioss_TableSlot; - Buffer ioss_VMBuffer; - Size ioss_PscanLen; -} IndexOnlyScanState; - -/* ---------------- - * BitmapIndexScanState information - * - * result bitmap to return output into, or NULL - * ScanKeys Skey structures for index quals - * NumScanKeys number of ScanKeys - * RuntimeKeys info about Skeys that must be evaluated at runtime - * NumRuntimeKeys number of RuntimeKeys - * ArrayKeys info about Skeys that come from ScalarArrayOpExprs - * NumArrayKeys number of ArrayKeys - * RuntimeKeysReady true if runtime Skeys have been computed - * RuntimeContext expr context for evaling runtime Skeys - * RelationDesc index relation descriptor - * ScanDesc index scan descriptor - * ---------------- - */ -typedef struct BitmapIndexScanState -{ - ScanState ss; /* its first field is NodeTag */ - TIDBitmap *biss_result; - struct ScanKeyData *biss_ScanKeys; - int biss_NumScanKeys; - IndexRuntimeKeyInfo *biss_RuntimeKeys; - int biss_NumRuntimeKeys; - IndexArrayKeyInfo *biss_ArrayKeys; - int biss_NumArrayKeys; - bool biss_RuntimeKeysReady; - ExprContext *biss_RuntimeContext; - Relation biss_RelationDesc; - struct IndexScanDescData *biss_ScanDesc; -} BitmapIndexScanState; - -/* ---------------- - * SharedBitmapState information - * - * BM_INITIAL TIDBitmap creation is not yet started, so first worker - * to see this state will set the state to BM_INPROGRESS - * and that process will be responsible for creating - * TIDBitmap. - * BM_INPROGRESS TIDBitmap creation is in progress; workers need to - * sleep until it's finished. - * BM_FINISHED TIDBitmap creation is done, so now all workers can - * proceed to iterate over TIDBitmap. - * ---------------- - */ -typedef enum -{ - BM_INITIAL, - BM_INPROGRESS, - BM_FINISHED -} SharedBitmapState; - -/* ---------------- - * ParallelBitmapHeapState information - * tbmiterator iterator for scanning current pages - * prefetch_iterator iterator for prefetching ahead of current page - * mutex mutual exclusion for the prefetching variable - * and state - * prefetch_pages # pages prefetch iterator is ahead of current - * prefetch_target current target prefetch distance - * state current state of the TIDBitmap - * cv conditional wait variable - * phs_snapshot_data snapshot data shared to workers - * ---------------- - */ -typedef struct ParallelBitmapHeapState -{ - dsa_pointer tbmiterator; - dsa_pointer prefetch_iterator; - slock_t mutex; - int prefetch_pages; - int prefetch_target; - SharedBitmapState state; - ConditionVariable cv; - char phs_snapshot_data[FLEXIBLE_ARRAY_MEMBER]; -} ParallelBitmapHeapState; - -/* ---------------- - * BitmapHeapScanState information - * - * bitmapqualorig execution state for bitmapqualorig expressions - * tbm bitmap obtained from child index scan(s) - * tbmiterator iterator for scanning current pages - * tbmres current-page data - * can_skip_fetch can we potentially skip tuple fetches in this scan? - * return_empty_tuples number of empty tuples to return - * vmbuffer buffer for visibility-map lookups - * pvmbuffer ditto, for prefetched pages - * exact_pages total number of exact pages retrieved - * lossy_pages total number of lossy pages retrieved - * prefetch_iterator iterator for prefetching ahead of current page - * prefetch_pages # pages prefetch iterator is ahead of current - * prefetch_target current target prefetch distance - * prefetch_maximum maximum value for prefetch_target - * pscan_len size of the shared memory for parallel bitmap - * initialized is node is ready to iterate - * shared_tbmiterator shared iterator - * shared_prefetch_iterator shared iterator for prefetching - * pstate shared state for parallel bitmap scan - * ---------------- - */ -typedef struct BitmapHeapScanState -{ - ScanState ss; /* its first field is NodeTag */ - ExprState *bitmapqualorig; - TIDBitmap *tbm; - TBMIterator *tbmiterator; - TBMIterateResult *tbmres; - bool can_skip_fetch; - int return_empty_tuples; - Buffer vmbuffer; - Buffer pvmbuffer; - long exact_pages; - long lossy_pages; - TBMIterator *prefetch_iterator; - int prefetch_pages; - int prefetch_target; - int prefetch_maximum; - Size pscan_len; - bool initialized; - TBMSharedIterator *shared_tbmiterator; - TBMSharedIterator *shared_prefetch_iterator; - ParallelBitmapHeapState *pstate; -} BitmapHeapScanState; - -/* ---------------- - * TidScanState information - * - * tidexprs list of TidExpr structs (see nodeTidscan.c) - * isCurrentOf scan has a CurrentOfExpr qual - * NumTids number of tids in this scan - * TidPtr index of currently fetched tid - * TidList evaluated item pointers (array of size NumTids) - * htup currently-fetched tuple, if any - * ---------------- - */ -typedef struct TidScanState -{ - ScanState ss; /* its first field is NodeTag */ - List *tss_tidexprs; - bool tss_isCurrentOf; - int tss_NumTids; - int tss_TidPtr; - ItemPointerData *tss_TidList; - HeapTupleData tss_htup; -} TidScanState; - -/* ---------------- - * TidRangeScanState information - * - * trss_tidexprs list of TidOpExpr structs (see nodeTidrangescan.c) - * trss_mintid the lowest TID in the scan range - * trss_maxtid the highest TID in the scan range - * trss_inScan is a scan currently in progress? - * ---------------- - */ -typedef struct TidRangeScanState -{ - ScanState ss; /* its first field is NodeTag */ - List *trss_tidexprs; - ItemPointerData trss_mintid; - ItemPointerData trss_maxtid; - bool trss_inScan; -} TidRangeScanState; - -/* ---------------- - * SubqueryScanState information - * - * SubqueryScanState is used for scanning a sub-query in the range table. - * ScanTupleSlot references the current output tuple of the sub-query. - * ---------------- - */ -typedef struct SubqueryScanState -{ - ScanState ss; /* its first field is NodeTag */ - PlanState *subplan; -} SubqueryScanState; - -/* ---------------- - * FunctionScanState information - * - * Function nodes are used to scan the results of a - * function appearing in FROM (typically a function returning set). - * - * eflags node's capability flags - * ordinality is this scan WITH ORDINALITY? - * simple true if we have 1 function and no ordinality - * ordinal current ordinal column value - * nfuncs number of functions being executed - * funcstates per-function execution states (private in - * nodeFunctionscan.c) - * argcontext memory context to evaluate function arguments in - * ---------------- - */ -struct FunctionScanPerFuncState; - -typedef struct FunctionScanState -{ - ScanState ss; /* its first field is NodeTag */ - int eflags; - bool ordinality; - bool simple; - int64 ordinal; - int nfuncs; - struct FunctionScanPerFuncState *funcstates; /* array of length nfuncs */ - MemoryContext argcontext; -} FunctionScanState; - -/* ---------------- - * ValuesScanState information - * - * ValuesScan nodes are used to scan the results of a VALUES list - * - * rowcontext per-expression-list context - * exprlists array of expression lists being evaluated - * exprstatelists array of expression state lists, for SubPlans only - * array_len size of above arrays - * curr_idx current array index (0-based) - * - * Note: ss.ps.ps_ExprContext is used to evaluate any qual or projection - * expressions attached to the node. We create a second ExprContext, - * rowcontext, in which to build the executor expression state for each - * Values sublist. Resetting this context lets us get rid of expression - * state for each row, avoiding major memory leakage over a long values list. - * However, that doesn't work for sublists containing SubPlans, because a - * SubPlan has to be connected up to the outer plan tree to work properly. - * Therefore, for only those sublists containing SubPlans, we do expression - * state construction at executor start, and store those pointers in - * exprstatelists[]. NULL entries in that array correspond to simple - * subexpressions that are handled as described above. - * ---------------- - */ -typedef struct ValuesScanState -{ - ScanState ss; /* its first field is NodeTag */ - ExprContext *rowcontext; - List **exprlists; - List **exprstatelists; - int array_len; - int curr_idx; -} ValuesScanState; - -/* ---------------- - * TableFuncScanState node - * - * Used in table-expression functions like XMLTABLE. - * ---------------- - */ -typedef struct TableFuncScanState -{ - ScanState ss; /* its first field is NodeTag */ - ExprState *docexpr; /* state for document expression */ - ExprState *rowexpr; /* state for row-generating expression */ - List *colexprs; /* state for column-generating expression */ - List *coldefexprs; /* state for column default expressions */ - List *ns_names; /* same as TableFunc.ns_names */ - List *ns_uris; /* list of states of namespace URI exprs */ - Bitmapset *notnulls; /* nullability flag for each output column */ - void *opaque; /* table builder private space */ - const struct TableFuncRoutine *routine; /* table builder methods */ - FmgrInfo *in_functions; /* input function for each column */ - Oid *typioparams; /* typioparam for each column */ - int64 ordinal; /* row number to be output next */ - MemoryContext perTableCxt; /* per-table context */ - Tuplestorestate *tupstore; /* output tuple store */ -} TableFuncScanState; - -/* ---------------- - * CteScanState information - * - * CteScan nodes are used to scan a CommonTableExpr query. - * - * Multiple CteScan nodes can read out from the same CTE query. We use - * a tuplestore to hold rows that have been read from the CTE query but - * not yet consumed by all readers. - * ---------------- - */ -typedef struct CteScanState -{ - ScanState ss; /* its first field is NodeTag */ - int eflags; /* capability flags to pass to tuplestore */ - int readptr; /* index of my tuplestore read pointer */ - PlanState *cteplanstate; /* PlanState for the CTE query itself */ - /* Link to the "leader" CteScanState (possibly this same node) */ - struct CteScanState *leader; - /* The remaining fields are only valid in the "leader" CteScanState */ - Tuplestorestate *cte_table; /* rows already read from the CTE query */ - bool eof_cte; /* reached end of CTE query? */ -} CteScanState; - -/* ---------------- - * NamedTuplestoreScanState information - * - * NamedTuplestoreScan nodes are used to scan a Tuplestore created and - * named prior to execution of the query. An example is a transition - * table for an AFTER trigger. - * - * Multiple NamedTuplestoreScan nodes can read out from the same Tuplestore. - * ---------------- - */ -typedef struct NamedTuplestoreScanState -{ - ScanState ss; /* its first field is NodeTag */ - int readptr; /* index of my tuplestore read pointer */ - TupleDesc tupdesc; /* format of the tuples in the tuplestore */ - Tuplestorestate *relation; /* the rows */ -} NamedTuplestoreScanState; - -/* ---------------- - * WorkTableScanState information - * - * WorkTableScan nodes are used to scan the work table created by - * a RecursiveUnion node. We locate the RecursiveUnion node - * during executor startup. - * ---------------- - */ -typedef struct WorkTableScanState -{ - ScanState ss; /* its first field is NodeTag */ - RecursiveUnionState *rustate; -} WorkTableScanState; - -/* ---------------- - * ForeignScanState information - * - * ForeignScan nodes are used to scan foreign-data tables. - * ---------------- - */ -typedef struct ForeignScanState -{ - ScanState ss; /* its first field is NodeTag */ - ExprState *fdw_recheck_quals; /* original quals not in ss.ps.qual */ - Size pscan_len; /* size of parallel coordination information */ - ResultRelInfo *resultRelInfo; /* result rel info, if UPDATE or DELETE */ - /* use struct pointer to avoid including fdwapi.h here */ - struct FdwRoutine *fdwroutine; - void *fdw_state; /* foreign-data wrapper can keep state here */ -} ForeignScanState; - -/* ---------------- - * CustomScanState information - * - * CustomScan nodes are used to execute custom code within executor. - * - * Core code must avoid assuming that the CustomScanState is only as large as - * the structure declared here; providers are allowed to make it the first - * element in a larger structure, and typically would need to do so. The - * struct is actually allocated by the CreateCustomScanState method associated - * with the plan node. Any additional fields can be initialized there, or in - * the BeginCustomScan method. - * ---------------- - */ -struct CustomExecMethods; - -typedef struct CustomScanState -{ - ScanState ss; - uint32 flags; /* mask of CUSTOMPATH_* flags, see - * nodes/extensible.h */ - List *custom_ps; /* list of child PlanState nodes, if any */ - Size pscan_len; /* size of parallel coordination information */ - const struct CustomExecMethods *methods; -} CustomScanState; - -/* ---------------------------------------------------------------- - * Join State Information - * ---------------------------------------------------------------- - */ - -/* ---------------- - * JoinState information - * - * Superclass for state nodes of join plans. - * ---------------- - */ -typedef struct JoinState -{ - PlanState ps; - JoinType jointype; - bool single_match; /* True if we should skip to next outer tuple - * after finding one inner match */ - ExprState *joinqual; /* JOIN quals (in addition to ps.qual) */ -} JoinState; - -/* ---------------- - * NestLoopState information - * - * NeedNewOuter true if need new outer tuple on next call - * MatchedOuter true if found a join match for current outer tuple - * NullInnerTupleSlot prepared null tuple for left outer joins - * ---------------- - */ -typedef struct NestLoopState -{ - JoinState js; /* its first field is NodeTag */ - bool nl_NeedNewOuter; - bool nl_MatchedOuter; - TupleTableSlot *nl_NullInnerTupleSlot; -} NestLoopState; - -/* ---------------- - * MergeJoinState information - * - * NumClauses number of mergejoinable join clauses - * Clauses info for each mergejoinable clause - * JoinState current state of ExecMergeJoin state machine - * SkipMarkRestore true if we may skip Mark and Restore operations - * ExtraMarks true to issue extra Mark operations on inner scan - * ConstFalseJoin true if we have a constant-false joinqual - * FillOuter true if should emit unjoined outer tuples anyway - * FillInner true if should emit unjoined inner tuples anyway - * MatchedOuter true if found a join match for current outer tuple - * MatchedInner true if found a join match for current inner tuple - * OuterTupleSlot slot in tuple table for cur outer tuple - * InnerTupleSlot slot in tuple table for cur inner tuple - * MarkedTupleSlot slot in tuple table for marked tuple - * NullOuterTupleSlot prepared null tuple for right outer joins - * NullInnerTupleSlot prepared null tuple for left outer joins - * OuterEContext workspace for computing outer tuple's join values - * InnerEContext workspace for computing inner tuple's join values - * ---------------- - */ -/* private in nodeMergejoin.c: */ -typedef struct MergeJoinClauseData *MergeJoinClause; - -typedef struct MergeJoinState -{ - JoinState js; /* its first field is NodeTag */ - int mj_NumClauses; - MergeJoinClause mj_Clauses; /* array of length mj_NumClauses */ - int mj_JoinState; - bool mj_SkipMarkRestore; - bool mj_ExtraMarks; - bool mj_ConstFalseJoin; - bool mj_FillOuter; - bool mj_FillInner; - bool mj_MatchedOuter; - bool mj_MatchedInner; - TupleTableSlot *mj_OuterTupleSlot; - TupleTableSlot *mj_InnerTupleSlot; - TupleTableSlot *mj_MarkedTupleSlot; - TupleTableSlot *mj_NullOuterTupleSlot; - TupleTableSlot *mj_NullInnerTupleSlot; - ExprContext *mj_OuterEContext; - ExprContext *mj_InnerEContext; -} MergeJoinState; - -/* ---------------- - * HashJoinState information - * - * hashclauses original form of the hashjoin condition - * hj_OuterHashKeys the outer hash keys in the hashjoin condition - * hj_HashOperators the join operators in the hashjoin condition - * hj_HashTable hash table for the hashjoin - * (NULL if table not built yet) - * hj_CurHashValue hash value for current outer tuple - * hj_CurBucketNo regular bucket# for current outer tuple - * hj_CurSkewBucketNo skew bucket# for current outer tuple - * hj_CurTuple last inner tuple matched to current outer - * tuple, or NULL if starting search - * (hj_CurXXX variables are undefined if - * OuterTupleSlot is empty!) - * hj_OuterTupleSlot tuple slot for outer tuples - * hj_HashTupleSlot tuple slot for inner (hashed) tuples - * hj_NullOuterTupleSlot prepared null tuple for right/full outer joins - * hj_NullInnerTupleSlot prepared null tuple for left/full outer joins - * hj_FirstOuterTupleSlot first tuple retrieved from outer plan - * hj_JoinState current state of ExecHashJoin state machine - * hj_MatchedOuter true if found a join match for current outer - * hj_OuterNotEmpty true if outer relation known not empty - * ---------------- - */ - -/* these structs are defined in executor/hashjoin.h: */ -typedef struct HashJoinTupleData *HashJoinTuple; -typedef struct HashJoinTableData *HashJoinTable; - -typedef struct HashJoinState -{ - JoinState js; /* its first field is NodeTag */ - ExprState *hashclauses; - List *hj_OuterHashKeys; /* list of ExprState nodes */ - List *hj_HashOperators; /* list of operator OIDs */ - List *hj_Collations; - HashJoinTable hj_HashTable; - uint32 hj_CurHashValue; - int hj_CurBucketNo; - int hj_CurSkewBucketNo; - HashJoinTuple hj_CurTuple; - TupleTableSlot *hj_OuterTupleSlot; - TupleTableSlot *hj_HashTupleSlot; - TupleTableSlot *hj_NullOuterTupleSlot; - TupleTableSlot *hj_NullInnerTupleSlot; - TupleTableSlot *hj_FirstOuterTupleSlot; - int hj_JoinState; - bool hj_MatchedOuter; - bool hj_OuterNotEmpty; -} HashJoinState; - - -/* ---------------------------------------------------------------- - * Materialization State Information - * ---------------------------------------------------------------- - */ - -/* ---------------- - * MaterialState information - * - * materialize nodes are used to materialize the results - * of a subplan into a temporary file. - * - * ss.ss_ScanTupleSlot refers to output of underlying plan. - * ---------------- - */ -typedef struct MaterialState -{ - ScanState ss; /* its first field is NodeTag */ - int eflags; /* capability flags to pass to tuplestore */ - bool eof_underlying; /* reached end of underlying plan? */ - Tuplestorestate *tuplestorestate; -} MaterialState; - -struct MemoizeEntry; -struct MemoizeTuple; -struct MemoizeKey; - -typedef struct MemoizeInstrumentation -{ - uint64 cache_hits; /* number of rescans where we've found the - * scan parameter values to be cached */ - uint64 cache_misses; /* number of rescans where we've not found the - * scan parameter values to be cached. */ - uint64 cache_evictions; /* number of cache entries removed due to - * the need to free memory */ - uint64 cache_overflows; /* number of times we've had to bypass the - * cache when filling it due to not being - * able to free enough space to store the - * current scan's tuples. */ - uint64 mem_peak; /* peak memory usage in bytes */ -} MemoizeInstrumentation; - -/* ---------------- - * Shared memory container for per-worker memoize information - * ---------------- - */ -typedef struct SharedMemoizeInfo -{ - int num_workers; - MemoizeInstrumentation sinstrument[FLEXIBLE_ARRAY_MEMBER]; -} SharedMemoizeInfo; - -/* ---------------- - * MemoizeState information - * - * memoize nodes are used to cache recent and commonly seen results from - * a parameterized scan. - * ---------------- - */ -typedef struct MemoizeState -{ - ScanState ss; /* its first field is NodeTag */ - int mstatus; /* value of ExecMemoize state machine */ - int nkeys; /* number of cache keys */ - struct memoize_hash *hashtable; /* hash table for cache entries */ - TupleDesc hashkeydesc; /* tuple descriptor for cache keys */ - TupleTableSlot *tableslot; /* min tuple slot for existing cache entries */ - TupleTableSlot *probeslot; /* virtual slot used for hash lookups */ - ExprState *cache_eq_expr; /* Compare exec params to hash key */ - ExprState **param_exprs; /* exprs containing the parameters to this - * node */ - FmgrInfo *hashfunctions; /* lookup data for hash funcs nkeys in size */ - Oid *collations; /* collation for comparisons nkeys in size */ - uint64 mem_used; /* bytes of memory used by cache */ - uint64 mem_limit; /* memory limit in bytes for the cache */ - MemoryContext tableContext; /* memory context to store cache data */ - dlist_head lru_list; /* least recently used entry list */ - struct MemoizeTuple *last_tuple; /* Used to point to the last tuple - * returned during a cache hit and the - * tuple we last stored when - * populating the cache. */ - struct MemoizeEntry *entry; /* the entry that 'last_tuple' belongs to or - * NULL if 'last_tuple' is NULL. */ - bool singlerow; /* true if the cache entry is to be marked as - * complete after caching the first tuple. */ - bool binary_mode; /* true when cache key should be compared bit - * by bit, false when using hash equality ops */ - MemoizeInstrumentation stats; /* execution statistics */ - SharedMemoizeInfo *shared_info; /* statistics for parallel workers */ - Bitmapset *keyparamids; /* Param->paramids of expressions belonging to - * param_exprs */ -} MemoizeState; - -/* ---------------- - * When performing sorting by multiple keys, it's possible that the input - * dataset is already sorted on a prefix of those keys. We call these - * "presorted keys". - * PresortedKeyData represents information about one such key. - * ---------------- - */ -typedef struct PresortedKeyData -{ - FmgrInfo flinfo; /* comparison function info */ - FunctionCallInfo fcinfo; /* comparison function call info */ - OffsetNumber attno; /* attribute number in tuple */ -} PresortedKeyData; - -/* ---------------- - * Shared memory container for per-worker sort information - * ---------------- - */ -typedef struct SharedSortInfo -{ - int num_workers; - TuplesortInstrumentation sinstrument[FLEXIBLE_ARRAY_MEMBER]; -} SharedSortInfo; - -/* ---------------- - * SortState information - * ---------------- - */ -typedef struct SortState -{ - ScanState ss; /* its first field is NodeTag */ - bool randomAccess; /* need random access to sort output? */ - bool bounded; /* is the result set bounded? */ - int64 bound; /* if bounded, how many tuples are needed */ - bool sort_Done; /* sort completed yet? */ - bool bounded_Done; /* value of bounded we did the sort with */ - int64 bound_Done; /* value of bound we did the sort with */ - void *tuplesortstate; /* private state of tuplesort.c */ - bool am_worker; /* are we a worker? */ - bool datumSort; /* Datum sort instead of tuple sort? */ - SharedSortInfo *shared_info; /* one entry per worker */ -} SortState; - -/* ---------------- - * Instrumentation information for IncrementalSort - * ---------------- - */ -typedef struct IncrementalSortGroupInfo -{ - int64 groupCount; - int64 maxDiskSpaceUsed; - int64 totalDiskSpaceUsed; - int64 maxMemorySpaceUsed; - int64 totalMemorySpaceUsed; - bits32 sortMethods; /* bitmask of TuplesortMethod */ -} IncrementalSortGroupInfo; - -typedef struct IncrementalSortInfo -{ - IncrementalSortGroupInfo fullsortGroupInfo; - IncrementalSortGroupInfo prefixsortGroupInfo; -} IncrementalSortInfo; - -/* ---------------- - * Shared memory container for per-worker incremental sort information - * ---------------- - */ -typedef struct SharedIncrementalSortInfo -{ - int num_workers; - IncrementalSortInfo sinfo[FLEXIBLE_ARRAY_MEMBER]; -} SharedIncrementalSortInfo; - -/* ---------------- - * IncrementalSortState information - * ---------------- - */ -typedef enum -{ - INCSORT_LOADFULLSORT, - INCSORT_LOADPREFIXSORT, - INCSORT_READFULLSORT, - INCSORT_READPREFIXSORT, -} IncrementalSortExecutionStatus; - -typedef struct IncrementalSortState -{ - ScanState ss; /* its first field is NodeTag */ - bool bounded; /* is the result set bounded? */ - int64 bound; /* if bounded, how many tuples are needed */ - bool outerNodeDone; /* finished fetching tuples from outer node */ - int64 bound_Done; /* value of bound we did the sort with */ - IncrementalSortExecutionStatus execution_status; - int64 n_fullsort_remaining; - Tuplesortstate *fullsort_state; /* private state of tuplesort.c */ - Tuplesortstate *prefixsort_state; /* private state of tuplesort.c */ - /* the keys by which the input path is already sorted */ - PresortedKeyData *presorted_keys; - - IncrementalSortInfo incsort_info; - - /* slot for pivot tuple defining values of presorted keys within group */ - TupleTableSlot *group_pivot; - TupleTableSlot *transfer_tuple; - bool am_worker; /* are we a worker? */ - SharedIncrementalSortInfo *shared_info; /* one entry per worker */ -} IncrementalSortState; - -/* --------------------- - * GroupState information - * --------------------- - */ -typedef struct GroupState -{ - ScanState ss; /* its first field is NodeTag */ - ExprState *eqfunction; /* equality function */ - bool grp_done; /* indicates completion of Group scan */ -} GroupState; - -/* --------------------- - * per-worker aggregate information - * --------------------- - */ -typedef struct AggregateInstrumentation -{ - Size hash_mem_peak; /* peak hash table memory usage */ - uint64 hash_disk_used; /* kB of disk space used */ - int hash_batches_used; /* batches used during entire execution */ -} AggregateInstrumentation; - -/* ---------------- - * Shared memory container for per-worker aggregate information - * ---------------- - */ -typedef struct SharedAggInfo -{ - int num_workers; - AggregateInstrumentation sinstrument[FLEXIBLE_ARRAY_MEMBER]; -} SharedAggInfo; - -/* --------------------- - * AggState information - * - * ss.ss_ScanTupleSlot refers to output of underlying plan. - * - * Note: ss.ps.ps_ExprContext contains ecxt_aggvalues and - * ecxt_aggnulls arrays, which hold the computed agg values for the current - * input group during evaluation of an Agg node's output tuple(s). We - * create a second ExprContext, tmpcontext, in which to evaluate input - * expressions and run the aggregate transition functions. - * --------------------- - */ -/* these structs are private in nodeAgg.c: */ -typedef struct AggStatePerAggData *AggStatePerAgg; -typedef struct AggStatePerTransData *AggStatePerTrans; -typedef struct AggStatePerGroupData *AggStatePerGroup; -typedef struct AggStatePerPhaseData *AggStatePerPhase; -typedef struct AggStatePerHashData *AggStatePerHash; - -typedef struct AggState -{ - ScanState ss; /* its first field is NodeTag */ - List *aggs; /* all Aggref nodes in targetlist & quals */ - int numaggs; /* length of list (could be zero!) */ - int numtrans; /* number of pertrans items */ - AggStrategy aggstrategy; /* strategy mode */ - AggSplit aggsplit; /* agg-splitting mode, see nodes.h */ - AggStatePerPhase phase; /* pointer to current phase data */ - int numphases; /* number of phases (including phase 0) */ - int current_phase; /* current phase number */ - AggStatePerAgg peragg; /* per-Aggref information */ - AggStatePerTrans pertrans; /* per-Trans state information */ - ExprContext *hashcontext; /* econtexts for long-lived data (hashtable) */ - ExprContext **aggcontexts; /* econtexts for long-lived data (per GS) */ - ExprContext *tmpcontext; /* econtext for input expressions */ -#define FIELDNO_AGGSTATE_CURAGGCONTEXT 14 - ExprContext *curaggcontext; /* currently active aggcontext */ - AggStatePerAgg curperagg; /* currently active aggregate, if any */ -#define FIELDNO_AGGSTATE_CURPERTRANS 16 - AggStatePerTrans curpertrans; /* currently active trans state, if any */ - bool input_done; /* indicates end of input */ - bool agg_done; /* indicates completion of Agg scan */ - int projected_set; /* The last projected grouping set */ -#define FIELDNO_AGGSTATE_CURRENT_SET 20 - int current_set; /* The current grouping set being evaluated */ - Bitmapset *grouped_cols; /* grouped cols in current projection */ - List *all_grouped_cols; /* list of all grouped cols in DESC order */ - Bitmapset *colnos_needed; /* all columns needed from the outer plan */ - int max_colno_needed; /* highest colno needed from outer plan */ - bool all_cols_needed; /* are all cols from outer plan needed? */ - /* These fields are for grouping set phase data */ - int maxsets; /* The max number of sets in any phase */ - AggStatePerPhase phases; /* array of all phases */ - Tuplesortstate *sort_in; /* sorted input to phases > 1 */ - Tuplesortstate *sort_out; /* input is copied here for next phase */ - TupleTableSlot *sort_slot; /* slot for sort results */ - /* these fields are used in AGG_PLAIN and AGG_SORTED modes: */ - AggStatePerGroup *pergroups; /* grouping set indexed array of per-group - * pointers */ - HeapTuple grp_firstTuple; /* copy of first tuple of current group */ - /* these fields are used in AGG_HASHED and AGG_MIXED modes: */ - bool table_filled; /* hash table filled yet? */ - int num_hashes; - MemoryContext hash_metacxt; /* memory for hash table itself */ - struct LogicalTapeSet *hash_tapeset; /* tape set for hash spill tapes */ - struct HashAggSpill *hash_spills; /* HashAggSpill for each grouping set, - * exists only during first pass */ - TupleTableSlot *hash_spill_rslot; /* for reading spill files */ - TupleTableSlot *hash_spill_wslot; /* for writing spill files */ - List *hash_batches; /* hash batches remaining to be processed */ - bool hash_ever_spilled; /* ever spilled during this execution? */ - bool hash_spill_mode; /* we hit a limit during the current batch - * and we must not create new groups */ - Size hash_mem_limit; /* limit before spilling hash table */ - uint64 hash_ngroups_limit; /* limit before spilling hash table */ - int hash_planned_partitions; /* number of partitions planned - * for first pass */ - double hashentrysize; /* estimate revised during execution */ - Size hash_mem_peak; /* peak hash table memory usage */ - uint64 hash_ngroups_current; /* number of groups currently in - * memory in all hash tables */ - uint64 hash_disk_used; /* kB of disk space used */ - int hash_batches_used; /* batches used during entire execution */ - - AggStatePerHash perhash; /* array of per-hashtable data */ - AggStatePerGroup *hash_pergroup; /* grouping set indexed array of - * per-group pointers */ - - /* support for evaluation of agg input expressions: */ -#define FIELDNO_AGGSTATE_ALL_PERGROUPS 53 - AggStatePerGroup *all_pergroups; /* array of first ->pergroups, than - * ->hash_pergroup */ - ProjectionInfo *combinedproj; /* projection machinery */ - SharedAggInfo *shared_info; /* one entry per worker */ -} AggState; - -/* ---------------- - * WindowAggState information - * ---------------- - */ -/* these structs are private in nodeWindowAgg.c: */ -typedef struct WindowStatePerFuncData *WindowStatePerFunc; -typedef struct WindowStatePerAggData *WindowStatePerAgg; - -/* - * WindowAggStatus -- Used to track the status of WindowAggState - */ -typedef enum WindowAggStatus -{ - WINDOWAGG_DONE, /* No more processing to do */ - WINDOWAGG_RUN, /* Normal processing of window funcs */ - WINDOWAGG_PASSTHROUGH, /* Don't eval window funcs */ - WINDOWAGG_PASSTHROUGH_STRICT /* Pass-through plus don't store new - * tuples during spool */ -} WindowAggStatus; - -typedef struct WindowAggState -{ - ScanState ss; /* its first field is NodeTag */ - - /* these fields are filled in by ExecInitExpr: */ - List *funcs; /* all WindowFunc nodes in targetlist */ - int numfuncs; /* total number of window functions */ - int numaggs; /* number that are plain aggregates */ - - WindowStatePerFunc perfunc; /* per-window-function information */ - WindowStatePerAgg peragg; /* per-plain-aggregate information */ - ExprState *partEqfunction; /* equality funcs for partition columns */ - ExprState *ordEqfunction; /* equality funcs for ordering columns */ - Tuplestorestate *buffer; /* stores rows of current partition */ - int current_ptr; /* read pointer # for current row */ - int framehead_ptr; /* read pointer # for frame head, if used */ - int frametail_ptr; /* read pointer # for frame tail, if used */ - int grouptail_ptr; /* read pointer # for group tail, if used */ - int64 spooled_rows; /* total # of rows in buffer */ - int64 currentpos; /* position of current row in partition */ - int64 frameheadpos; /* current frame head position */ - int64 frametailpos; /* current frame tail position (frame end+1) */ - /* use struct pointer to avoid including windowapi.h here */ - struct WindowObjectData *agg_winobj; /* winobj for aggregate fetches */ - int64 aggregatedbase; /* start row for current aggregates */ - int64 aggregatedupto; /* rows before this one are aggregated */ - WindowAggStatus status; /* run status of WindowAggState */ - - int frameOptions; /* frame_clause options, see WindowDef */ - ExprState *startOffset; /* expression for starting bound offset */ - ExprState *endOffset; /* expression for ending bound offset */ - Datum startOffsetValue; /* result of startOffset evaluation */ - Datum endOffsetValue; /* result of endOffset evaluation */ - - /* these fields are used with RANGE offset PRECEDING/FOLLOWING: */ - FmgrInfo startInRangeFunc; /* in_range function for startOffset */ - FmgrInfo endInRangeFunc; /* in_range function for endOffset */ - Oid inRangeColl; /* collation for in_range tests */ - bool inRangeAsc; /* use ASC sort order for in_range tests? */ - bool inRangeNullsFirst; /* nulls sort first for in_range tests? */ - - /* these fields are used in GROUPS mode: */ - int64 currentgroup; /* peer group # of current row in partition */ - int64 frameheadgroup; /* peer group # of frame head row */ - int64 frametailgroup; /* peer group # of frame tail row */ - int64 groupheadpos; /* current row's peer group head position */ - int64 grouptailpos; /* " " " " tail position (group end+1) */ - - MemoryContext partcontext; /* context for partition-lifespan data */ - MemoryContext aggcontext; /* shared context for aggregate working data */ - MemoryContext curaggcontext; /* current aggregate's working data */ - ExprContext *tmpcontext; /* short-term evaluation context */ - - ExprState *runcondition; /* Condition which must remain true otherwise - * execution of the WindowAgg will finish or - * go into pass-through mode. NULL when there - * is no such condition. */ - - bool use_pass_through; /* When false, stop execution when - * runcondition is no longer true. Else - * just stop evaluating window funcs. */ - bool top_window; /* true if this is the top-most WindowAgg or - * the only WindowAgg in this query level */ - bool all_first; /* true if the scan is starting */ - bool partition_spooled; /* true if all tuples in current partition - * have been spooled into tuplestore */ - bool more_partitions; /* true if there's more partitions after - * this one */ - bool framehead_valid; /* true if frameheadpos is known up to - * date for current row */ - bool frametail_valid; /* true if frametailpos is known up to - * date for current row */ - bool grouptail_valid; /* true if grouptailpos is known up to - * date for current row */ - - TupleTableSlot *first_part_slot; /* first tuple of current or next - * partition */ - TupleTableSlot *framehead_slot; /* first tuple of current frame */ - TupleTableSlot *frametail_slot; /* first tuple after current frame */ - - /* temporary slots for tuples fetched back from tuplestore */ - TupleTableSlot *agg_row_slot; - TupleTableSlot *temp_slot_1; - TupleTableSlot *temp_slot_2; -} WindowAggState; - -/* ---------------- - * UniqueState information - * - * Unique nodes are used "on top of" sort nodes to discard - * duplicate tuples returned from the sort phase. Basically - * all it does is compare the current tuple from the subplan - * with the previously fetched tuple (stored in its result slot). - * If the two are identical in all interesting fields, then - * we just fetch another tuple from the sort and try again. - * ---------------- - */ -typedef struct UniqueState -{ - PlanState ps; /* its first field is NodeTag */ - ExprState *eqfunction; /* tuple equality qual */ -} UniqueState; - -/* ---------------- - * GatherState information - * - * Gather nodes launch 1 or more parallel workers, run a subplan - * in those workers, and collect the results. - * ---------------- - */ -typedef struct GatherState -{ - PlanState ps; /* its first field is NodeTag */ - bool initialized; /* workers launched? */ - bool need_to_scan_locally; /* need to read from local plan? */ - int64 tuples_needed; /* tuple bound, see ExecSetTupleBound */ - /* these fields are set up once: */ - TupleTableSlot *funnel_slot; - struct ParallelExecutorInfo *pei; - /* all remaining fields are reinitialized during a rescan: */ - int nworkers_launched; /* original number of workers */ - int nreaders; /* number of still-active workers */ - int nextreader; /* next one to try to read from */ - struct TupleQueueReader **reader; /* array with nreaders active entries */ -} GatherState; - -/* ---------------- - * GatherMergeState information - * - * Gather merge nodes launch 1 or more parallel workers, run a - * subplan which produces sorted output in each worker, and then - * merge the results into a single sorted stream. - * ---------------- - */ -struct GMReaderTupleBuffer; /* private in nodeGatherMerge.c */ - -typedef struct GatherMergeState -{ - PlanState ps; /* its first field is NodeTag */ - bool initialized; /* workers launched? */ - bool gm_initialized; /* gather_merge_init() done? */ - bool need_to_scan_locally; /* need to read from local plan? */ - int64 tuples_needed; /* tuple bound, see ExecSetTupleBound */ - /* these fields are set up once: */ - TupleDesc tupDesc; /* descriptor for subplan result tuples */ - int gm_nkeys; /* number of sort columns */ - SortSupport gm_sortkeys; /* array of length gm_nkeys */ - struct ParallelExecutorInfo *pei; - /* all remaining fields are reinitialized during a rescan */ - /* (but the arrays are not reallocated, just cleared) */ - int nworkers_launched; /* original number of workers */ - int nreaders; /* number of active workers */ - TupleTableSlot **gm_slots; /* array with nreaders+1 entries */ - struct TupleQueueReader **reader; /* array with nreaders active entries */ - struct GMReaderTupleBuffer *gm_tuple_buffers; /* nreaders tuple buffers */ - struct binaryheap *gm_heap; /* binary heap of slot indices */ -} GatherMergeState; - -/* ---------------- - * Values displayed by EXPLAIN ANALYZE - * ---------------- - */ -typedef struct HashInstrumentation -{ - int nbuckets; /* number of buckets at end of execution */ - int nbuckets_original; /* planned number of buckets */ - int nbatch; /* number of batches at end of execution */ - int nbatch_original; /* planned number of batches */ - Size space_peak; /* peak memory usage in bytes */ -} HashInstrumentation; - -/* ---------------- - * Shared memory container for per-worker hash information - * ---------------- - */ -typedef struct SharedHashInfo -{ - int num_workers; - HashInstrumentation hinstrument[FLEXIBLE_ARRAY_MEMBER]; -} SharedHashInfo; - -/* ---------------- - * HashState information - * ---------------- - */ -typedef struct HashState -{ - PlanState ps; /* its first field is NodeTag */ - HashJoinTable hashtable; /* hash table for the hashjoin */ - List *hashkeys; /* list of ExprState nodes */ - - /* - * In a parallelized hash join, the leader retains a pointer to the - * shared-memory stats area in its shared_info field, and then copies the - * shared-memory info back to local storage before DSM shutdown. The - * shared_info field remains NULL in workers, or in non-parallel joins. - */ - SharedHashInfo *shared_info; - - /* - * If we are collecting hash stats, this points to an initially-zeroed - * collection area, which could be either local storage or in shared - * memory; either way it's for just one process. - */ - HashInstrumentation *hinstrument; - - /* Parallel hash state. */ - struct ParallelHashJoinState *parallel_state; -} HashState; - -/* ---------------- - * SetOpState information - * - * Even in "sorted" mode, SetOp nodes are more complex than a simple - * Unique, since we have to count how many duplicates to return. But - * we also support hashing, so this is really more like a cut-down - * form of Agg. - * ---------------- - */ -/* this struct is private in nodeSetOp.c: */ -typedef struct SetOpStatePerGroupData *SetOpStatePerGroup; - -typedef struct SetOpState -{ - PlanState ps; /* its first field is NodeTag */ - ExprState *eqfunction; /* equality comparator */ - Oid *eqfuncoids; /* per-grouping-field equality fns */ - FmgrInfo *hashfunctions; /* per-grouping-field hash fns */ - bool setop_done; /* indicates completion of output scan */ - long numOutput; /* number of dups left to output */ - /* these fields are used in SETOP_SORTED mode: */ - SetOpStatePerGroup pergroup; /* per-group working state */ - HeapTuple grp_firstTuple; /* copy of first tuple of current group */ - /* these fields are used in SETOP_HASHED mode: */ - TupleHashTable hashtable; /* hash table with one entry per group */ - MemoryContext tableContext; /* memory context containing hash table */ - bool table_filled; /* hash table filled yet? */ - TupleHashIterator hashiter; /* for iterating through hash table */ -} SetOpState; - -/* ---------------- - * LockRowsState information - * - * LockRows nodes are used to enforce FOR [KEY] UPDATE/SHARE locking. - * ---------------- - */ -typedef struct LockRowsState -{ - PlanState ps; /* its first field is NodeTag */ - List *lr_arowMarks; /* List of ExecAuxRowMarks */ - EPQState lr_epqstate; /* for evaluating EvalPlanQual rechecks */ -} LockRowsState; - -/* ---------------- - * LimitState information - * - * Limit nodes are used to enforce LIMIT/OFFSET clauses. - * They just select the desired subrange of their subplan's output. - * - * offset is the number of initial tuples to skip (0 does nothing). - * count is the number of tuples to return after skipping the offset tuples. - * If no limit count was specified, count is undefined and noCount is true. - * When lstate == LIMIT_INITIAL, offset/count/noCount haven't been set yet. - * ---------------- - */ -typedef enum -{ - LIMIT_INITIAL, /* initial state for LIMIT node */ - LIMIT_RESCAN, /* rescan after recomputing parameters */ - LIMIT_EMPTY, /* there are no returnable rows */ - LIMIT_INWINDOW, /* have returned a row in the window */ - LIMIT_WINDOWEND_TIES, /* have returned a tied row */ - LIMIT_SUBPLANEOF, /* at EOF of subplan (within window) */ - LIMIT_WINDOWEND, /* stepped off end of window */ - LIMIT_WINDOWSTART /* stepped off beginning of window */ -} LimitStateCond; - -typedef struct LimitState -{ - PlanState ps; /* its first field is NodeTag */ - ExprState *limitOffset; /* OFFSET parameter, or NULL if none */ - ExprState *limitCount; /* COUNT parameter, or NULL if none */ - LimitOption limitOption; /* limit specification type */ - int64 offset; /* current OFFSET value */ - int64 count; /* current COUNT, if any */ - bool noCount; /* if true, ignore count */ - LimitStateCond lstate; /* state machine status, as above */ - int64 position; /* 1-based index of last tuple returned */ - TupleTableSlot *subSlot; /* tuple last obtained from subplan */ - ExprState *eqfunction; /* tuple equality qual in case of WITH TIES - * option */ - TupleTableSlot *last_slot; /* slot for evaluation of ties */ -} LimitState; - -#endif /* EXECNODES_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/extensible.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/extensible.h deleted file mode 100644 index 6244c8d96..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/extensible.h +++ /dev/null @@ -1,162 +0,0 @@ -/*------------------------------------------------------------------------- - * - * extensible.h - * Definitions for extensible nodes and custom scans - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/nodes/extensible.h - * - *------------------------------------------------------------------------- - */ -#ifndef EXTENSIBLE_H -#define EXTENSIBLE_H - -#include "access/parallel.h" -#include "commands/explain.h" -#include "nodes/execnodes.h" -#include "nodes/pathnodes.h" -#include "nodes/plannodes.h" - -/* maximum length of an extensible node identifier */ -#define EXTNODENAME_MAX_LEN 64 - -/* - * An extensible node is a new type of node defined by an extension. The - * type is always T_ExtensibleNode, while the extnodename identifies the - * specific type of node. extnodename can be looked up to find the - * ExtensibleNodeMethods for this node type. - */ -typedef struct ExtensibleNode -{ - NodeTag type; - const char *extnodename; /* identifier of ExtensibleNodeMethods */ -} ExtensibleNode; - -/* - * node_size is the size of an extensible node of this type in bytes. - * - * nodeCopy is a function which performs a deep copy from oldnode to newnode. - * It does not need to copy type or extnodename, which are copied by the - * core system. - * - * nodeEqual is a function which performs a deep equality comparison between - * a and b and returns true or false accordingly. It does not need to compare - * type or extnodename, which are compared by the core system. - * - * nodeOut is a serialization function for the node type. It should use the - * output conventions typical for outfuncs.c. It does not need to output - * type or extnodename; the core system handles those. - * - * nodeRead is a deserialization function for the node type. It does not need - * to read type or extnodename; the core system handles those. It should fetch - * the next token using pg_strtok() from the current input stream, and then - * reconstruct the private fields according to the manner in readfuncs.c. - * - * All callbacks are mandatory. - */ -typedef struct ExtensibleNodeMethods -{ - const char *extnodename; - Size node_size; - void (*nodeCopy) (struct ExtensibleNode *newnode, - const struct ExtensibleNode *oldnode); - bool (*nodeEqual) (const struct ExtensibleNode *a, - const struct ExtensibleNode *b); - void (*nodeOut) (struct StringInfoData *str, - const struct ExtensibleNode *node); - void (*nodeRead) (struct ExtensibleNode *node); -} ExtensibleNodeMethods; - -extern void RegisterExtensibleNodeMethods(const ExtensibleNodeMethods *method); -extern const ExtensibleNodeMethods *GetExtensibleNodeMethods(const char *name, - bool missing_ok); - -/* - * Flags for custom paths, indicating what capabilities the resulting scan - * will have. The flags fields of CustomPath and CustomScan nodes are - * bitmasks of these flags. - */ -#define CUSTOMPATH_SUPPORT_BACKWARD_SCAN 0x0001 -#define CUSTOMPATH_SUPPORT_MARK_RESTORE 0x0002 -#define CUSTOMPATH_SUPPORT_PROJECTION 0x0004 - -/* - * Custom path methods. Mostly, we just need to know how to convert a - * CustomPath to a plan. - */ -typedef struct CustomPathMethods -{ - const char *CustomName; - - /* Convert Path to a Plan */ - struct Plan *(*PlanCustomPath) (PlannerInfo *root, - RelOptInfo *rel, - struct CustomPath *best_path, - List *tlist, - List *clauses, - List *custom_plans); - struct List *(*ReparameterizeCustomPathByChild) (PlannerInfo *root, - List *custom_private, - RelOptInfo *child_rel); -} CustomPathMethods; - -/* - * Custom scan. Here again, there's not much to do: we need to be able to - * generate a ScanState corresponding to the scan. - */ -typedef struct CustomScanMethods -{ - const char *CustomName; - - /* Create execution state (CustomScanState) from a CustomScan plan node */ - Node *(*CreateCustomScanState) (CustomScan *cscan); -} CustomScanMethods; - -/* - * Execution-time methods for a CustomScanState. This is more complex than - * what we need for a custom path or scan. - */ -typedef struct CustomExecMethods -{ - const char *CustomName; - - /* Required executor methods */ - void (*BeginCustomScan) (CustomScanState *node, - EState *estate, - int eflags); - TupleTableSlot *(*ExecCustomScan) (CustomScanState *node); - void (*EndCustomScan) (CustomScanState *node); - void (*ReScanCustomScan) (CustomScanState *node); - - /* Optional methods: needed if mark/restore is supported */ - void (*MarkPosCustomScan) (CustomScanState *node); - void (*RestrPosCustomScan) (CustomScanState *node); - - /* Optional methods: needed if parallel execution is supported */ - Size (*EstimateDSMCustomScan) (CustomScanState *node, - ParallelContext *pcxt); - void (*InitializeDSMCustomScan) (CustomScanState *node, - ParallelContext *pcxt, - void *coordinate); - void (*ReInitializeDSMCustomScan) (CustomScanState *node, - ParallelContext *pcxt, - void *coordinate); - void (*InitializeWorkerCustomScan) (CustomScanState *node, - shm_toc *toc, - void *coordinate); - void (*ShutdownCustomScan) (CustomScanState *node); - - /* Optional: print additional information in EXPLAIN */ - void (*ExplainCustomScan) (CustomScanState *node, - List *ancestors, - ExplainState *es); -} CustomExecMethods; - -extern void RegisterCustomScanMethods(const CustomScanMethods *methods); -extern const CustomScanMethods *GetCustomScanMethods(const char *CustomName, - bool missing_ok); - -#endif /* EXTENSIBLE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/lockoptions.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/lockoptions.h deleted file mode 100644 index 399f72961..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/lockoptions.h +++ /dev/null @@ -1,61 +0,0 @@ -/*------------------------------------------------------------------------- - * - * lockoptions.h - * Common header for some locking-related declarations. - * - * - * Copyright (c) 2014-2022, PostgreSQL Global Development Group - * - * src/include/nodes/lockoptions.h - * - *------------------------------------------------------------------------- - */ -#ifndef LOCKOPTIONS_H -#define LOCKOPTIONS_H - -/* - * This enum represents the different strengths of FOR UPDATE/SHARE clauses. - * The ordering here is important, because the highest numerical value takes - * precedence when a RTE is specified multiple ways. See applyLockingClause. - */ -typedef enum LockClauseStrength -{ - LCS_NONE, /* no such clause - only used in PlanRowMark */ - LCS_FORKEYSHARE, /* FOR KEY SHARE */ - LCS_FORSHARE, /* FOR SHARE */ - LCS_FORNOKEYUPDATE, /* FOR NO KEY UPDATE */ - LCS_FORUPDATE /* FOR UPDATE */ -} LockClauseStrength; - -/* - * This enum controls how to deal with rows being locked by FOR UPDATE/SHARE - * clauses (i.e., it represents the NOWAIT and SKIP LOCKED options). - * The ordering here is important, because the highest numerical value takes - * precedence when a RTE is specified multiple ways. See applyLockingClause. - */ -typedef enum LockWaitPolicy -{ - /* Wait for the lock to become available (default behavior) */ - LockWaitBlock, - /* Skip rows that can't be locked (SKIP LOCKED) */ - LockWaitSkip, - /* Raise an error if a row cannot be locked (NOWAIT) */ - LockWaitError -} LockWaitPolicy; - -/* - * Possible lock modes for a tuple. - */ -typedef enum LockTupleMode -{ - /* SELECT FOR KEY SHARE */ - LockTupleKeyShare, - /* SELECT FOR SHARE */ - LockTupleShare, - /* SELECT FOR NO KEY UPDATE, and UPDATEs that don't modify key columns */ - LockTupleNoKeyExclusive, - /* SELECT FOR UPDATE, UPDATEs that modify key columns, and DELETE */ - LockTupleExclusive -} LockTupleMode; - -#endif /* LOCKOPTIONS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/makefuncs.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/makefuncs.h deleted file mode 100644 index 50de4c62a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/makefuncs.h +++ /dev/null @@ -1,109 +0,0 @@ -/*------------------------------------------------------------------------- - * - * makefuncs.h - * prototypes for the creator functions of various nodes - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/nodes/makefuncs.h - * - *------------------------------------------------------------------------- - */ -#ifndef MAKEFUNC_H -#define MAKEFUNC_H - -#include "nodes/execnodes.h" -#include "nodes/parsenodes.h" - - -extern A_Expr *makeA_Expr(A_Expr_Kind kind, List *name, - Node *lexpr, Node *rexpr, int location); - -extern A_Expr *makeSimpleA_Expr(A_Expr_Kind kind, char *name, - Node *lexpr, Node *rexpr, int location); - -extern Var *makeVar(int varno, - AttrNumber varattno, - Oid vartype, - int32 vartypmod, - Oid varcollid, - Index varlevelsup); - -extern Var *makeVarFromTargetEntry(int varno, - TargetEntry *tle); - -extern Var *makeWholeRowVar(RangeTblEntry *rte, - int varno, - Index varlevelsup, - bool allowScalar); - -extern TargetEntry *makeTargetEntry(Expr *expr, - AttrNumber resno, - char *resname, - bool resjunk); - -extern TargetEntry *flatCopyTargetEntry(TargetEntry *src_tle); - -extern FromExpr *makeFromExpr(List *fromlist, Node *quals); - -extern Const *makeConst(Oid consttype, - int32 consttypmod, - Oid constcollid, - int constlen, - Datum constvalue, - bool constisnull, - bool constbyval); - -extern Const *makeNullConst(Oid consttype, int32 consttypmod, Oid constcollid); - -extern Node *makeBoolConst(bool value, bool isnull); - -extern Expr *makeBoolExpr(BoolExprType boolop, List *args, int location); - -extern Alias *makeAlias(const char *aliasname, List *colnames); - -extern RelabelType *makeRelabelType(Expr *arg, Oid rtype, int32 rtypmod, - Oid rcollid, CoercionForm rformat); - -extern RangeVar *makeRangeVar(char *schemaname, char *relname, int location); - -extern TypeName *makeTypeName(char *typnam); -extern TypeName *makeTypeNameFromNameList(List *names); -extern TypeName *makeTypeNameFromOid(Oid typeOid, int32 typmod); - -extern ColumnDef *makeColumnDef(const char *colname, - Oid typeOid, int32 typmod, Oid collOid); - -extern FuncExpr *makeFuncExpr(Oid funcid, Oid rettype, List *args, - Oid funccollid, Oid inputcollid, CoercionForm fformat); - -extern FuncCall *makeFuncCall(List *name, List *args, - CoercionForm funcformat, int location); - -extern Expr *make_opclause(Oid opno, Oid opresulttype, bool opretset, - Expr *leftop, Expr *rightop, - Oid opcollid, Oid inputcollid); - -extern Expr *make_andclause(List *andclauses); -extern Expr *make_orclause(List *orclauses); -extern Expr *make_notclause(Expr *notclause); - -extern Node *make_and_qual(Node *qual1, Node *qual2); -extern Expr *make_ands_explicit(List *andclauses); -extern List *make_ands_implicit(Expr *clause); - -extern IndexInfo *makeIndexInfo(int numattrs, int numkeyattrs, Oid amoid, - List *expressions, List *predicates, - bool unique, bool nulls_not_distinct, bool isready, bool concurrent); - -extern DefElem *makeDefElem(char *name, Node *arg, int location); -extern DefElem *makeDefElemExtended(char *nameSpace, char *name, Node *arg, - DefElemAction defaction, int location); - -extern GroupingSet *makeGroupingSet(GroupingSetKind kind, List *content, int location); - -extern VacuumRelation *makeVacuumRelation(RangeVar *relation, Oid oid, List *va_cols); - -#endif /* MAKEFUNC_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/memnodes.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/memnodes.h deleted file mode 100644 index bbbe151e3..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/memnodes.h +++ /dev/null @@ -1,110 +0,0 @@ -/*------------------------------------------------------------------------- - * - * memnodes.h - * POSTGRES memory context node definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/nodes/memnodes.h - * - *------------------------------------------------------------------------- - */ -#ifndef MEMNODES_H -#define MEMNODES_H - -#include "nodes/nodes.h" - -/* - * MemoryContextCounters - * Summarization state for MemoryContextStats collection. - * - * The set of counters in this struct is biased towards AllocSet; if we ever - * add any context types that are based on fundamentally different approaches, - * we might need more or different counters here. A possible API spec then - * would be to print only nonzero counters, but for now we just summarize in - * the format historically used by AllocSet. - */ -typedef struct MemoryContextCounters -{ - Size nblocks; /* Total number of malloc blocks */ - Size freechunks; /* Total number of free chunks */ - Size totalspace; /* Total bytes requested from malloc */ - Size freespace; /* The unused portion of totalspace */ -} MemoryContextCounters; - -/* - * MemoryContext - * A logical context in which memory allocations occur. - * - * MemoryContext itself is an abstract type that can have multiple - * implementations. - * The function pointers in MemoryContextMethods define one specific - * implementation of MemoryContext --- they are a virtual function table - * in C++ terms. - * - * Node types that are actual implementations of memory contexts must - * begin with the same fields as MemoryContextData. - * - * Note: for largely historical reasons, typedef MemoryContext is a pointer - * to the context struct rather than the struct type itself. - */ - -typedef void (*MemoryStatsPrintFunc) (MemoryContext context, void *passthru, - const char *stats_string, - bool print_to_stderr); - -typedef struct MemoryContextMethods -{ - void *(*alloc) (MemoryContext context, Size size); - /* call this free_p in case someone #define's free() */ - void (*free_p) (MemoryContext context, void *pointer); - void *(*realloc) (MemoryContext context, void *pointer, Size size); - void (*reset) (MemoryContext context); - void (*delete_context) (MemoryContext context); - Size (*get_chunk_space) (MemoryContext context, void *pointer); - bool (*is_empty) (MemoryContext context); - void (*stats) (MemoryContext context, - MemoryStatsPrintFunc printfunc, void *passthru, - MemoryContextCounters *totals, - bool print_to_stderr); -#ifdef MEMORY_CONTEXT_CHECKING - void (*check) (MemoryContext context); -#endif -} MemoryContextMethods; - - -typedef struct MemoryContextData -{ - NodeTag type; /* identifies exact kind of context */ - /* these two fields are placed here to minimize alignment wastage: */ - bool isReset; /* T = no space alloced since last reset */ - bool allowInCritSection; /* allow palloc in critical section */ - Size mem_allocated; /* track memory allocated for this context */ - const MemoryContextMethods *methods; /* virtual function table */ - MemoryContext parent; /* NULL if no parent (toplevel context) */ - MemoryContext firstchild; /* head of linked list of children */ - MemoryContext prevchild; /* previous child of same parent */ - MemoryContext nextchild; /* next child of same parent */ - const char *name; /* context name (just for debugging) */ - const char *ident; /* context ID if any (just for debugging) */ - MemoryContextCallback *reset_cbs; /* list of reset/delete callbacks */ -} MemoryContextData; - -/* utils/palloc.h contains typedef struct MemoryContextData *MemoryContext */ - - -/* - * MemoryContextIsValid - * True iff memory context is valid. - * - * Add new context types to the set accepted by this macro. - */ -#define MemoryContextIsValid(context) \ - ((context) != NULL && \ - (IsA((context), AllocSetContext) || \ - IsA((context), SlabContext) || \ - IsA((context), GenerationContext))) - -#endif /* MEMNODES_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/nodeFuncs.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/nodeFuncs.h deleted file mode 100644 index 93c60bde6..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/nodeFuncs.h +++ /dev/null @@ -1,162 +0,0 @@ -/*------------------------------------------------------------------------- - * - * nodeFuncs.h - * Various general-purpose manipulations of Node trees - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/nodes/nodeFuncs.h - * - *------------------------------------------------------------------------- - */ -#ifndef NODEFUNCS_H -#define NODEFUNCS_H - -#include "nodes/parsenodes.h" - - -/* flags bits for query_tree_walker and query_tree_mutator */ -#define QTW_IGNORE_RT_SUBQUERIES 0x01 /* subqueries in rtable */ -#define QTW_IGNORE_CTE_SUBQUERIES 0x02 /* subqueries in cteList */ -#define QTW_IGNORE_RC_SUBQUERIES 0x03 /* both of above */ -#define QTW_IGNORE_JOINALIASES 0x04 /* JOIN alias var lists */ -#define QTW_IGNORE_RANGE_TABLE 0x08 /* skip rangetable entirely */ -#define QTW_EXAMINE_RTES_BEFORE 0x10 /* examine RTE nodes before their - * contents */ -#define QTW_EXAMINE_RTES_AFTER 0x20 /* examine RTE nodes after their - * contents */ -#define QTW_DONT_COPY_QUERY 0x40 /* do not copy top Query */ -#define QTW_EXAMINE_SORTGROUP 0x80 /* include SortGroupNode lists */ - -/* callback function for check_functions_in_node */ -typedef bool (*check_function_callback) (Oid func_id, void *context); - - -extern Oid exprType(const Node *expr); -extern int32 exprTypmod(const Node *expr); -extern bool exprIsLengthCoercion(const Node *expr, int32 *coercedTypmod); -extern Node *applyRelabelType(Node *arg, Oid rtype, int32 rtypmod, Oid rcollid, - CoercionForm rformat, int rlocation, - bool overwrite_ok); -extern Node *relabel_to_typmod(Node *expr, int32 typmod); -extern Node *strip_implicit_coercions(Node *node); -extern bool expression_returns_set(Node *clause); - -extern Oid exprCollation(const Node *expr); -extern Oid exprInputCollation(const Node *expr); -extern void exprSetCollation(Node *expr, Oid collation); -extern void exprSetInputCollation(Node *expr, Oid inputcollation); - -extern int exprLocation(const Node *expr); - -extern void fix_opfuncids(Node *node); -extern void set_opfuncid(OpExpr *opexpr); -extern void set_sa_opfuncid(ScalarArrayOpExpr *opexpr); - -/* Is clause a FuncExpr clause? */ -static inline bool -is_funcclause(const void *clause) -{ - return clause != NULL && IsA(clause, FuncExpr); -} - -/* Is clause an OpExpr clause? */ -static inline bool -is_opclause(const void *clause) -{ - return clause != NULL && IsA(clause, OpExpr); -} - -/* Extract left arg of a binary opclause, or only arg of a unary opclause */ -static inline Node * -get_leftop(const void *clause) -{ - const OpExpr *expr = (const OpExpr *) clause; - - if (expr->args != NIL) - return (Node *) linitial(expr->args); - else - return NULL; -} - -/* Extract right arg of a binary opclause (NULL if it's a unary opclause) */ -static inline Node * -get_rightop(const void *clause) -{ - const OpExpr *expr = (const OpExpr *) clause; - - if (list_length(expr->args) >= 2) - return (Node *) lsecond(expr->args); - else - return NULL; -} - -/* Is clause an AND clause? */ -static inline bool -is_andclause(const void *clause) -{ - return (clause != NULL && - IsA(clause, BoolExpr) && - ((const BoolExpr *) clause)->boolop == AND_EXPR); -} - -/* Is clause an OR clause? */ -static inline bool -is_orclause(const void *clause) -{ - return (clause != NULL && - IsA(clause, BoolExpr) && - ((const BoolExpr *) clause)->boolop == OR_EXPR); -} - -/* Is clause a NOT clause? */ -static inline bool -is_notclause(const void *clause) -{ - return (clause != NULL && - IsA(clause, BoolExpr) && - ((const BoolExpr *) clause)->boolop == NOT_EXPR); -} - -/* Extract argument from a clause known to be a NOT clause */ -static inline Expr * -get_notclausearg(const void *notclause) -{ - return (Expr *) linitial(((const BoolExpr *) notclause)->args); -} - -extern bool check_functions_in_node(Node *node, check_function_callback checker, - void *context); - -extern bool expression_tree_walker(Node *node, bool (*walker) (), - void *context); -extern Node *expression_tree_mutator(Node *node, Node *(*mutator) (), - void *context); - -extern bool query_tree_walker(Query *query, bool (*walker) (), - void *context, int flags); -extern Query *query_tree_mutator(Query *query, Node *(*mutator) (), - void *context, int flags); - -extern bool range_table_walker(List *rtable, bool (*walker) (), - void *context, int flags); -extern List *range_table_mutator(List *rtable, Node *(*mutator) (), - void *context, int flags); - -extern bool range_table_entry_walker(RangeTblEntry *rte, bool (*walker) (), - void *context, int flags); - -extern bool query_or_expression_tree_walker(Node *node, bool (*walker) (), - void *context, int flags); -extern Node *query_or_expression_tree_mutator(Node *node, Node *(*mutator) (), - void *context, int flags); - -extern bool raw_expression_tree_walker(Node *node, bool (*walker) (), - void *context); - -struct PlanState; -extern bool planstate_tree_walker(struct PlanState *planstate, bool (*walker) (), - void *context); - -#endif /* NODEFUNCS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/nodes.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/nodes.h deleted file mode 100644 index 8f5c0ec18..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/nodes.h +++ /dev/null @@ -1,861 +0,0 @@ -/*------------------------------------------------------------------------- - * - * nodes.h - * Definitions for tagged nodes. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/nodes/nodes.h - * - *------------------------------------------------------------------------- - */ -#ifndef NODES_H -#define NODES_H - -/* - * The first field of every node is NodeTag. Each node created (with makeNode) - * will have one of the following tags as the value of its first field. - * - * Note that inserting or deleting node types changes the numbers of other - * node types later in the list. This is no problem during development, since - * the node numbers are never stored on disk. But don't do it in a released - * branch, because that would represent an ABI break for extensions. - */ -typedef enum NodeTag -{ - T_Invalid = 0, - - /* - * TAGS FOR EXECUTOR NODES (execnodes.h) - */ - T_IndexInfo, - T_ExprContext, - T_ProjectionInfo, - T_JunkFilter, - T_OnConflictSetState, - T_MergeActionState, - T_ResultRelInfo, - T_EState, - T_TupleTableSlot, - - /* - * TAGS FOR PLAN NODES (plannodes.h) - */ - T_Plan, - T_Result, - T_ProjectSet, - T_ModifyTable, - T_Append, - T_MergeAppend, - T_RecursiveUnion, - T_BitmapAnd, - T_BitmapOr, - T_Scan, - T_SeqScan, - T_SampleScan, - T_IndexScan, - T_IndexOnlyScan, - T_BitmapIndexScan, - T_BitmapHeapScan, - T_TidScan, - T_TidRangeScan, - T_SubqueryScan, - T_FunctionScan, - T_ValuesScan, - T_TableFuncScan, - T_CteScan, - T_NamedTuplestoreScan, - T_WorkTableScan, - T_ForeignScan, - T_CustomScan, - T_Join, - T_NestLoop, - T_MergeJoin, - T_HashJoin, - T_Material, - T_Memoize, - T_Sort, - T_IncrementalSort, - T_Group, - T_Agg, - T_WindowAgg, - T_Unique, - T_Gather, - T_GatherMerge, - T_Hash, - T_SetOp, - T_LockRows, - T_Limit, - /* these aren't subclasses of Plan: */ - T_NestLoopParam, - T_PlanRowMark, - T_PartitionPruneInfo, - T_PartitionedRelPruneInfo, - T_PartitionPruneStepOp, - T_PartitionPruneStepCombine, - T_PlanInvalItem, - - /* - * TAGS FOR PLAN STATE NODES (execnodes.h) - * - * These should correspond one-to-one with Plan node types. - */ - T_PlanState, - T_ResultState, - T_ProjectSetState, - T_ModifyTableState, - T_AppendState, - T_MergeAppendState, - T_RecursiveUnionState, - T_BitmapAndState, - T_BitmapOrState, - T_ScanState, - T_SeqScanState, - T_SampleScanState, - T_IndexScanState, - T_IndexOnlyScanState, - T_BitmapIndexScanState, - T_BitmapHeapScanState, - T_TidScanState, - T_TidRangeScanState, - T_SubqueryScanState, - T_FunctionScanState, - T_TableFuncScanState, - T_ValuesScanState, - T_CteScanState, - T_NamedTuplestoreScanState, - T_WorkTableScanState, - T_ForeignScanState, - T_CustomScanState, - T_JoinState, - T_NestLoopState, - T_MergeJoinState, - T_HashJoinState, - T_MaterialState, - T_MemoizeState, - T_SortState, - T_IncrementalSortState, - T_GroupState, - T_AggState, - T_WindowAggState, - T_UniqueState, - T_GatherState, - T_GatherMergeState, - T_HashState, - T_SetOpState, - T_LockRowsState, - T_LimitState, - - /* - * TAGS FOR PRIMITIVE NODES (primnodes.h) - */ - T_Alias, - T_RangeVar, - T_TableFunc, - T_Var, - T_Const, - T_Param, - T_Aggref, - T_GroupingFunc, - T_WindowFunc, - T_SubscriptingRef, - T_FuncExpr, - T_NamedArgExpr, - T_OpExpr, - T_DistinctExpr, - T_NullIfExpr, - T_ScalarArrayOpExpr, - T_BoolExpr, - T_SubLink, - T_SubPlan, - T_AlternativeSubPlan, - T_FieldSelect, - T_FieldStore, - T_RelabelType, - T_CoerceViaIO, - T_ArrayCoerceExpr, - T_ConvertRowtypeExpr, - T_CollateExpr, - T_CaseExpr, - T_CaseWhen, - T_CaseTestExpr, - T_ArrayExpr, - T_RowExpr, - T_RowCompareExpr, - T_CoalesceExpr, - T_MinMaxExpr, - T_SQLValueFunction, - T_XmlExpr, - T_NullTest, - T_BooleanTest, - T_CoerceToDomain, - T_CoerceToDomainValue, - T_SetToDefault, - T_CurrentOfExpr, - T_NextValueExpr, - T_InferenceElem, - T_TargetEntry, - T_RangeTblRef, - T_JoinExpr, - T_FromExpr, - T_OnConflictExpr, - T_IntoClause, - - /* - * TAGS FOR EXPRESSION STATE NODES (execnodes.h) - * - * ExprState represents the evaluation state for a whole expression tree. - * Most Expr-based plan nodes do not have a corresponding expression state - * node, they're fully handled within execExpr* - but sometimes the state - * needs to be shared with other parts of the executor, as for example - * with SubPlanState, which nodeSubplan.c has to modify. - */ - T_ExprState, - T_WindowFuncExprState, - T_SetExprState, - T_SubPlanState, - T_DomainConstraintState, - - /* - * TAGS FOR PLANNER NODES (pathnodes.h) - */ - T_PlannerInfo, - T_PlannerGlobal, - T_RelOptInfo, - T_IndexOptInfo, - T_ForeignKeyOptInfo, - T_ParamPathInfo, - T_Path, - T_IndexPath, - T_BitmapHeapPath, - T_BitmapAndPath, - T_BitmapOrPath, - T_TidPath, - T_TidRangePath, - T_SubqueryScanPath, - T_ForeignPath, - T_CustomPath, - T_NestPath, - T_MergePath, - T_HashPath, - T_AppendPath, - T_MergeAppendPath, - T_GroupResultPath, - T_MaterialPath, - T_MemoizePath, - T_UniquePath, - T_GatherPath, - T_GatherMergePath, - T_ProjectionPath, - T_ProjectSetPath, - T_SortPath, - T_IncrementalSortPath, - T_GroupPath, - T_UpperUniquePath, - T_AggPath, - T_GroupingSetsPath, - T_MinMaxAggPath, - T_WindowAggPath, - T_SetOpPath, - T_RecursiveUnionPath, - T_LockRowsPath, - T_ModifyTablePath, - T_LimitPath, - /* these aren't subclasses of Path: */ - T_EquivalenceClass, - T_EquivalenceMember, - T_PathKey, - T_PathKeyInfo, - T_PathTarget, - T_RestrictInfo, - T_IndexClause, - T_PlaceHolderVar, - T_SpecialJoinInfo, - T_AppendRelInfo, - T_RowIdentityVarInfo, - T_PlaceHolderInfo, - T_MinMaxAggInfo, - T_PlannerParamItem, - T_RollupData, - T_GroupingSetData, - T_StatisticExtInfo, - T_MergeAction, - - /* - * TAGS FOR MEMORY NODES (memnodes.h) - */ - T_AllocSetContext, - T_SlabContext, - T_GenerationContext, - - /* - * TAGS FOR VALUE NODES (value.h) - */ - T_Integer, - T_Float, - T_Boolean, - T_String, - T_BitString, - - /* - * TAGS FOR LIST NODES (pg_list.h) - */ - T_List, - T_IntList, - T_OidList, - - /* - * TAGS FOR EXTENSIBLE NODES (extensible.h) - */ - T_ExtensibleNode, - - /* - * TAGS FOR STATEMENT NODES (mostly in parsenodes.h) - */ - T_RawStmt, - T_Query, - T_PlannedStmt, - T_InsertStmt, - T_DeleteStmt, - T_UpdateStmt, - T_MergeStmt, - T_SelectStmt, - T_ReturnStmt, - T_PLAssignStmt, - T_AlterTableStmt, - T_AlterTableCmd, - T_AlterDomainStmt, - T_SetOperationStmt, - T_GrantStmt, - T_GrantRoleStmt, - T_AlterDefaultPrivilegesStmt, - T_ClosePortalStmt, - T_ClusterStmt, - T_CopyStmt, - T_CreateStmt, - T_DefineStmt, - T_DropStmt, - T_TruncateStmt, - T_CommentStmt, - T_FetchStmt, - T_IndexStmt, - T_CreateFunctionStmt, - T_AlterFunctionStmt, - T_DoStmt, - T_RenameStmt, - T_RuleStmt, - T_NotifyStmt, - T_ListenStmt, - T_UnlistenStmt, - T_TransactionStmt, - T_ViewStmt, - T_LoadStmt, - T_CreateDomainStmt, - T_CreatedbStmt, - T_DropdbStmt, - T_VacuumStmt, - T_ExplainStmt, - T_CreateTableAsStmt, - T_CreateSeqStmt, - T_AlterSeqStmt, - T_VariableSetStmt, - T_VariableShowStmt, - T_DiscardStmt, - T_CreateTrigStmt, - T_CreatePLangStmt, - T_CreateRoleStmt, - T_AlterRoleStmt, - T_DropRoleStmt, - T_LockStmt, - T_ConstraintsSetStmt, - T_ReindexStmt, - T_CheckPointStmt, - T_CreateSchemaStmt, - T_AlterDatabaseStmt, - T_AlterDatabaseRefreshCollStmt, - T_AlterDatabaseSetStmt, - T_AlterRoleSetStmt, - T_CreateConversionStmt, - T_CreateCastStmt, - T_CreateOpClassStmt, - T_CreateOpFamilyStmt, - T_AlterOpFamilyStmt, - T_PrepareStmt, - T_ExecuteStmt, - T_DeallocateStmt, - T_DeclareCursorStmt, - T_CreateTableSpaceStmt, - T_DropTableSpaceStmt, - T_AlterObjectDependsStmt, - T_AlterObjectSchemaStmt, - T_AlterOwnerStmt, - T_AlterOperatorStmt, - T_AlterTypeStmt, - T_DropOwnedStmt, - T_ReassignOwnedStmt, - T_CompositeTypeStmt, - T_CreateEnumStmt, - T_CreateRangeStmt, - T_AlterEnumStmt, - T_AlterTSDictionaryStmt, - T_AlterTSConfigurationStmt, - T_CreateFdwStmt, - T_AlterFdwStmt, - T_CreateForeignServerStmt, - T_AlterForeignServerStmt, - T_CreateUserMappingStmt, - T_AlterUserMappingStmt, - T_DropUserMappingStmt, - T_AlterTableSpaceOptionsStmt, - T_AlterTableMoveAllStmt, - T_SecLabelStmt, - T_CreateForeignTableStmt, - T_ImportForeignSchemaStmt, - T_CreateExtensionStmt, - T_AlterExtensionStmt, - T_AlterExtensionContentsStmt, - T_CreateEventTrigStmt, - T_AlterEventTrigStmt, - T_RefreshMatViewStmt, - T_ReplicaIdentityStmt, - T_AlterSystemStmt, - T_CreatePolicyStmt, - T_AlterPolicyStmt, - T_CreateTransformStmt, - T_CreateAmStmt, - T_CreatePublicationStmt, - T_AlterPublicationStmt, - T_CreateSubscriptionStmt, - T_AlterSubscriptionStmt, - T_DropSubscriptionStmt, - T_CreateStatsStmt, - T_AlterCollationStmt, - T_CallStmt, - T_AlterStatsStmt, - - /* - * TAGS FOR PARSE TREE NODES (parsenodes.h) - */ - T_A_Expr, - T_ColumnRef, - T_ParamRef, - T_A_Const, - T_FuncCall, - T_A_Star, - T_A_Indices, - T_A_Indirection, - T_A_ArrayExpr, - T_ResTarget, - T_MultiAssignRef, - T_TypeCast, - T_CollateClause, - T_SortBy, - T_WindowDef, - T_RangeSubselect, - T_RangeFunction, - T_RangeTableSample, - T_RangeTableFunc, - T_RangeTableFuncCol, - T_TypeName, - T_ColumnDef, - T_IndexElem, - T_StatsElem, - T_Constraint, - T_DefElem, - T_RangeTblEntry, - T_RangeTblFunction, - T_TableSampleClause, - T_WithCheckOption, - T_SortGroupClause, - T_GroupingSet, - T_WindowClause, - T_ObjectWithArgs, - T_AccessPriv, - T_CreateOpClassItem, - T_TableLikeClause, - T_FunctionParameter, - T_LockingClause, - T_RowMarkClause, - T_XmlSerialize, - T_WithClause, - T_InferClause, - T_OnConflictClause, - T_CTESearchClause, - T_CTECycleClause, - T_CommonTableExpr, - T_MergeWhenClause, - T_RoleSpec, - T_TriggerTransition, - T_PartitionElem, - T_PartitionSpec, - T_PartitionBoundSpec, - T_PartitionRangeDatum, - T_PartitionCmd, - T_VacuumRelation, - T_PublicationObjSpec, - T_PublicationTable, - - /* - * TAGS FOR REPLICATION GRAMMAR PARSE NODES (replnodes.h) - */ - T_IdentifySystemCmd, - T_BaseBackupCmd, - T_CreateReplicationSlotCmd, - T_DropReplicationSlotCmd, - T_ReadReplicationSlotCmd, - T_StartReplicationCmd, - T_TimeLineHistoryCmd, - - /* - * TAGS FOR RANDOM OTHER STUFF - * - * These are objects that aren't part of parse/plan/execute node tree - * structures, but we give them NodeTags anyway for identification - * purposes (usually because they are involved in APIs where we want to - * pass multiple object types through the same pointer). - */ - T_TriggerData, /* in commands/trigger.h */ - T_EventTriggerData, /* in commands/event_trigger.h */ - T_ReturnSetInfo, /* in nodes/execnodes.h */ - T_WindowObjectData, /* private in nodeWindowAgg.c */ - T_TIDBitmap, /* in nodes/tidbitmap.h */ - T_InlineCodeBlock, /* in nodes/parsenodes.h */ - T_FdwRoutine, /* in foreign/fdwapi.h */ - T_IndexAmRoutine, /* in access/amapi.h */ - T_TableAmRoutine, /* in access/tableam.h */ - T_TsmRoutine, /* in access/tsmapi.h */ - T_ForeignKeyCacheInfo, /* in utils/rel.h */ - T_CallContext, /* in nodes/parsenodes.h */ - T_SupportRequestSimplify, /* in nodes/supportnodes.h */ - T_SupportRequestSelectivity, /* in nodes/supportnodes.h */ - T_SupportRequestCost, /* in nodes/supportnodes.h */ - T_SupportRequestRows, /* in nodes/supportnodes.h */ - T_SupportRequestIndexCondition, /* in nodes/supportnodes.h */ - T_SupportRequestWFuncMonotonic /* in nodes/supportnodes.h */ -} NodeTag; - -/* - * The first field of a node of any type is guaranteed to be the NodeTag. - * Hence the type of any node can be gotten by casting it to Node. Declaring - * a variable to be of Node * (instead of void *) can also facilitate - * debugging. - */ -typedef struct Node -{ - NodeTag type; -} Node; - -#define nodeTag(nodeptr) (((const Node*)(nodeptr))->type) - -/* - * newNode - - * create a new node of the specified size and tag the node with the - * specified tag. - * - * !WARNING!: Avoid using newNode directly. You should be using the - * macro makeNode. eg. to create a Query node, use makeNode(Query) - * - * Note: the size argument should always be a compile-time constant, so the - * apparent risk of multiple evaluation doesn't matter in practice. - */ -#ifdef __GNUC__ - -/* With GCC, we can use a compound statement within an expression */ -#define newNode(size, tag) \ -({ Node *_result; \ - AssertMacro((size) >= sizeof(Node)); /* need the tag, at least */ \ - _result = (Node *) palloc0fast(size); \ - _result->type = (tag); \ - _result; \ -}) -#else - -/* - * There is no way to dereference the palloc'ed pointer to assign the - * tag, and also return the pointer itself, so we need a holder variable. - * Fortunately, this macro isn't recursive so we just define - * a global variable for this purpose. - */ -extern PGDLLIMPORT Node *newNodeMacroHolder; - -#define newNode(size, tag) \ -( \ - AssertMacro((size) >= sizeof(Node)), /* need the tag, at least */ \ - newNodeMacroHolder = (Node *) palloc0fast(size), \ - newNodeMacroHolder->type = (tag), \ - newNodeMacroHolder \ -) -#endif /* __GNUC__ */ - - -#define makeNode(_type_) ((_type_ *) newNode(sizeof(_type_),T_##_type_)) -#define NodeSetTag(nodeptr,t) (((Node*)(nodeptr))->type = (t)) - -#define IsA(nodeptr,_type_) (nodeTag(nodeptr) == T_##_type_) - -/* - * castNode(type, ptr) casts ptr to "type *", and if assertions are enabled, - * verifies that the node has the appropriate type (using its nodeTag()). - * - * Use an inline function when assertions are enabled, to avoid multiple - * evaluations of the ptr argument (which could e.g. be a function call). - */ -#ifdef USE_ASSERT_CHECKING -static inline Node * -castNodeImpl(NodeTag type, void *ptr) -{ - Assert(ptr == NULL || nodeTag(ptr) == type); - return (Node *) ptr; -} -#define castNode(_type_, nodeptr) ((_type_ *) castNodeImpl(T_##_type_, nodeptr)) -#else -#define castNode(_type_, nodeptr) ((_type_ *) (nodeptr)) -#endif /* USE_ASSERT_CHECKING */ - - -/* ---------------------------------------------------------------- - * extern declarations follow - * ---------------------------------------------------------------- - */ - -/* - * nodes/{outfuncs.c,print.c} - */ -struct Bitmapset; /* not to include bitmapset.h here */ -struct StringInfoData; /* not to include stringinfo.h here */ - -extern void outNode(struct StringInfoData *str, const void *obj); -extern void outToken(struct StringInfoData *str, const char *s); -extern void outBitmapset(struct StringInfoData *str, - const struct Bitmapset *bms); -extern void outDatum(struct StringInfoData *str, uintptr_t value, - int typlen, bool typbyval); -extern char *nodeToString(const void *obj); -extern char *bmsToString(const struct Bitmapset *bms); - -/* - * nodes/{readfuncs.c,read.c} - */ -extern void *stringToNode(const char *str); -#ifdef WRITE_READ_PARSE_PLAN_TREES -extern void *stringToNodeWithLocations(const char *str); -#endif -extern struct Bitmapset *readBitmapset(void); -extern uintptr_t readDatum(bool typbyval); -extern bool *readBoolCols(int numCols); -extern int *readIntCols(int numCols); -extern Oid *readOidCols(int numCols); -extern int16 *readAttrNumberCols(int numCols); - -/* - * nodes/copyfuncs.c - */ -extern void *copyObjectImpl(const void *obj); - -/* cast result back to argument type, if supported by compiler */ -#ifdef HAVE_TYPEOF -#define copyObject(obj) ((typeof(obj)) copyObjectImpl(obj)) -#else -#define copyObject(obj) copyObjectImpl(obj) -#endif - -/* - * nodes/equalfuncs.c - */ -extern bool equal(const void *a, const void *b); - - -/* - * Typedefs for identifying qualifier selectivities and plan costs as such. - * These are just plain "double"s, but declaring a variable as Selectivity - * or Cost makes the intent more obvious. - * - * These could have gone into plannodes.h or some such, but many files - * depend on them... - */ -typedef double Selectivity; /* fraction of tuples a qualifier will pass */ -typedef double Cost; /* execution cost (in page-access units) */ -typedef double Cardinality; /* (estimated) number of rows or other integer - * count */ - - -/* - * CmdType - - * enums for type of operation represented by a Query or PlannedStmt - * - * This is needed in both parsenodes.h and plannodes.h, so put it here... - */ -typedef enum CmdType -{ - CMD_UNKNOWN, - CMD_SELECT, /* select stmt */ - CMD_UPDATE, /* update stmt */ - CMD_INSERT, /* insert stmt */ - CMD_DELETE, /* delete stmt */ - CMD_MERGE, /* merge stmt */ - CMD_UTILITY, /* cmds like create, destroy, copy, vacuum, - * etc. */ - CMD_NOTHING /* dummy command for instead nothing rules - * with qual */ -} CmdType; - - -/* - * JoinType - - * enums for types of relation joins - * - * JoinType determines the exact semantics of joining two relations using - * a matching qualification. For example, it tells what to do with a tuple - * that has no match in the other relation. - * - * This is needed in both parsenodes.h and plannodes.h, so put it here... - */ -typedef enum JoinType -{ - /* - * The canonical kinds of joins according to the SQL JOIN syntax. Only - * these codes can appear in parser output (e.g., JoinExpr nodes). - */ - JOIN_INNER, /* matching tuple pairs only */ - JOIN_LEFT, /* pairs + unmatched LHS tuples */ - JOIN_FULL, /* pairs + unmatched LHS + unmatched RHS */ - JOIN_RIGHT, /* pairs + unmatched RHS tuples */ - - /* - * Semijoins and anti-semijoins (as defined in relational theory) do not - * appear in the SQL JOIN syntax, but there are standard idioms for - * representing them (e.g., using EXISTS). The planner recognizes these - * cases and converts them to joins. So the planner and executor must - * support these codes. NOTE: in JOIN_SEMI output, it is unspecified - * which matching RHS row is joined to. In JOIN_ANTI output, the row is - * guaranteed to be null-extended. - */ - JOIN_SEMI, /* 1 copy of each LHS row that has match(es) */ - JOIN_ANTI, /* 1 copy of each LHS row that has no match */ - - /* - * These codes are used internally in the planner, but are not supported - * by the executor (nor, indeed, by most of the planner). - */ - JOIN_UNIQUE_OUTER, /* LHS path must be made unique */ - JOIN_UNIQUE_INNER /* RHS path must be made unique */ - - /* - * We might need additional join types someday. - */ -} JoinType; - -/* - * OUTER joins are those for which pushed-down quals must behave differently - * from the join's own quals. This is in fact everything except INNER and - * SEMI joins. However, this macro must also exclude the JOIN_UNIQUE symbols - * since those are temporary proxies for what will eventually be an INNER - * join. - * - * Note: semijoins are a hybrid case, but we choose to treat them as not - * being outer joins. This is okay principally because the SQL syntax makes - * it impossible to have a pushed-down qual that refers to the inner relation - * of a semijoin; so there is no strong need to distinguish join quals from - * pushed-down quals. This is convenient because for almost all purposes, - * quals attached to a semijoin can be treated the same as innerjoin quals. - */ -#define IS_OUTER_JOIN(jointype) \ - (((1 << (jointype)) & \ - ((1 << JOIN_LEFT) | \ - (1 << JOIN_FULL) | \ - (1 << JOIN_RIGHT) | \ - (1 << JOIN_ANTI))) != 0) - -/* - * AggStrategy - - * overall execution strategies for Agg plan nodes - * - * This is needed in both pathnodes.h and plannodes.h, so put it here... - */ -typedef enum AggStrategy -{ - AGG_PLAIN, /* simple agg across all input rows */ - AGG_SORTED, /* grouped agg, input must be sorted */ - AGG_HASHED, /* grouped agg, use internal hashtable */ - AGG_MIXED /* grouped agg, hash and sort both used */ -} AggStrategy; - -/* - * AggSplit - - * splitting (partial aggregation) modes for Agg plan nodes - * - * This is needed in both pathnodes.h and plannodes.h, so put it here... - */ - -/* Primitive options supported by nodeAgg.c: */ -#define AGGSPLITOP_COMBINE 0x01 /* substitute combinefn for transfn */ -#define AGGSPLITOP_SKIPFINAL 0x02 /* skip finalfn, return state as-is */ -#define AGGSPLITOP_SERIALIZE 0x04 /* apply serialfn to output */ -#define AGGSPLITOP_DESERIALIZE 0x08 /* apply deserialfn to input */ - -/* Supported operating modes (i.e., useful combinations of these options): */ -typedef enum AggSplit -{ - /* Basic, non-split aggregation: */ - AGGSPLIT_SIMPLE = 0, - /* Initial phase of partial aggregation, with serialization: */ - AGGSPLIT_INITIAL_SERIAL = AGGSPLITOP_SKIPFINAL | AGGSPLITOP_SERIALIZE, - /* Final phase of partial aggregation, with deserialization: */ - AGGSPLIT_FINAL_DESERIAL = AGGSPLITOP_COMBINE | AGGSPLITOP_DESERIALIZE -} AggSplit; - -/* Test whether an AggSplit value selects each primitive option: */ -#define DO_AGGSPLIT_COMBINE(as) (((as) & AGGSPLITOP_COMBINE) != 0) -#define DO_AGGSPLIT_SKIPFINAL(as) (((as) & AGGSPLITOP_SKIPFINAL) != 0) -#define DO_AGGSPLIT_SERIALIZE(as) (((as) & AGGSPLITOP_SERIALIZE) != 0) -#define DO_AGGSPLIT_DESERIALIZE(as) (((as) & AGGSPLITOP_DESERIALIZE) != 0) - -/* - * SetOpCmd and SetOpStrategy - - * overall semantics and execution strategies for SetOp plan nodes - * - * This is needed in both pathnodes.h and plannodes.h, so put it here... - */ -typedef enum SetOpCmd -{ - SETOPCMD_INTERSECT, - SETOPCMD_INTERSECT_ALL, - SETOPCMD_EXCEPT, - SETOPCMD_EXCEPT_ALL -} SetOpCmd; - -typedef enum SetOpStrategy -{ - SETOP_SORTED, /* input must be sorted */ - SETOP_HASHED /* use internal hashtable */ -} SetOpStrategy; - -/* - * OnConflictAction - - * "ON CONFLICT" clause type of query - * - * This is needed in both parsenodes.h and plannodes.h, so put it here... - */ -typedef enum OnConflictAction -{ - ONCONFLICT_NONE, /* No "ON CONFLICT" clause */ - ONCONFLICT_NOTHING, /* ON CONFLICT ... DO NOTHING */ - ONCONFLICT_UPDATE /* ON CONFLICT ... DO UPDATE */ -} OnConflictAction; - -/* - * LimitOption - - * LIMIT option of query - * - * This is needed in both parsenodes.h and plannodes.h, so put it here... - */ -typedef enum LimitOption -{ - LIMIT_OPTION_DEFAULT, /* No limit present */ - LIMIT_OPTION_COUNT, /* FETCH FIRST... ONLY */ - LIMIT_OPTION_WITH_TIES, /* FETCH FIRST... WITH TIES */ -} LimitOption; - -#endif /* NODES_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/params.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/params.h deleted file mode 100644 index de2dd907e..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/params.h +++ /dev/null @@ -1,170 +0,0 @@ -/*------------------------------------------------------------------------- - * - * params.h - * Support for finding the values associated with Param nodes. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/nodes/params.h - * - *------------------------------------------------------------------------- - */ -#ifndef PARAMS_H -#define PARAMS_H - -/* Forward declarations, to avoid including other headers */ -struct Bitmapset; -struct ExprState; -struct Param; -struct ParseState; - - -/* - * ParamListInfo - * - * ParamListInfo structures are used to pass parameters into the executor - * for parameterized plans. We support two basic approaches to supplying - * parameter values, the "static" way and the "dynamic" way. - * - * In the static approach, per-parameter data is stored in an array of - * ParamExternData structs appended to the ParamListInfo struct. - * Each entry in the array defines the value to be substituted for a - * PARAM_EXTERN parameter. The "paramid" of a PARAM_EXTERN Param - * can range from 1 to numParams. - * - * Although parameter numbers are normally consecutive, we allow - * ptype == InvalidOid to signal an unused array entry. - * - * pflags is a flags field. Currently the only used bit is: - * PARAM_FLAG_CONST signals the planner that it may treat this parameter - * as a constant (i.e., generate a plan that works only for this value - * of the parameter). - * - * In the dynamic approach, all access to parameter values is done through - * hook functions found in the ParamListInfo struct. In this case, - * the ParamExternData array is typically unused and not allocated; - * but the legal range of paramid is still 1 to numParams. - * - * Although the data structure is really an array, not a list, we keep - * the old typedef name to avoid unnecessary code changes. - * - * There are 3 hook functions that can be associated with a ParamListInfo - * structure: - * - * If paramFetch isn't null, it is called to fetch the ParamExternData - * for a particular param ID, rather than accessing the relevant element - * of the ParamExternData array. This supports the case where the array - * isn't there at all, as well as cases where the data in the array - * might be obsolete or lazily evaluated. paramFetch must return the - * address of a ParamExternData struct describing the specified param ID; - * the convention above about ptype == InvalidOid signaling an invalid - * param ID still applies. The returned struct can either be placed in - * the "workspace" supplied by the caller, or it can be in storage - * controlled by the paramFetch hook if that's more convenient. - * (In either case, the struct is not expected to be long-lived.) - * If "speculative" is true, the paramFetch hook should not risk errors - * in trying to fetch the parameter value, and should report an invalid - * parameter instead. - * - * If paramCompile isn't null, then it controls what execExpr.c compiles - * for PARAM_EXTERN Param nodes --- typically, this hook would emit a - * EEOP_PARAM_CALLBACK step. This allows unnecessary work to be - * optimized away in compiled expressions. - * - * If parserSetup isn't null, then it is called to re-instantiate the - * original parsing hooks when a query needs to be re-parsed/planned. - * This is especially useful if the types of parameters might change - * from time to time, since it can replace the need to supply a fixed - * list of parameter types to the parser. - * - * Notice that the paramFetch and paramCompile hooks are actually passed - * the ParamListInfo struct's address; they can therefore access all - * three of the "arg" fields, and the distinction between paramFetchArg - * and paramCompileArg is rather arbitrary. - */ - -#define PARAM_FLAG_CONST 0x0001 /* parameter is constant */ - -typedef struct ParamExternData -{ - Datum value; /* parameter value */ - bool isnull; /* is it NULL? */ - uint16 pflags; /* flag bits, see above */ - Oid ptype; /* parameter's datatype, or 0 */ -} ParamExternData; - -typedef struct ParamListInfoData *ParamListInfo; - -typedef ParamExternData *(*ParamFetchHook) (ParamListInfo params, - int paramid, bool speculative, - ParamExternData *workspace); - -typedef void (*ParamCompileHook) (ParamListInfo params, struct Param *param, - struct ExprState *state, - Datum *resv, bool *resnull); - -typedef void (*ParserSetupHook) (struct ParseState *pstate, void *arg); - -typedef struct ParamListInfoData -{ - ParamFetchHook paramFetch; /* parameter fetch hook */ - void *paramFetchArg; - ParamCompileHook paramCompile; /* parameter compile hook */ - void *paramCompileArg; - ParserSetupHook parserSetup; /* parser setup hook */ - void *parserSetupArg; - char *paramValuesStr; /* params as a single string for errors */ - int numParams; /* nominal/maximum # of Params represented */ - - /* - * params[] may be of length zero if paramFetch is supplied; otherwise it - * must be of length numParams. - */ - ParamExternData params[FLEXIBLE_ARRAY_MEMBER]; -} ParamListInfoData; - - -/* ---------------- - * ParamExecData - * - * ParamExecData entries are used for executor internal parameters - * (that is, values being passed into or out of a sub-query). The - * paramid of a PARAM_EXEC Param is a (zero-based) index into an - * array of ParamExecData records, which is referenced through - * es_param_exec_vals or ecxt_param_exec_vals. - * - * If execPlan is not NULL, it points to a SubPlanState node that needs - * to be executed to produce the value. (This is done so that we can have - * lazy evaluation of InitPlans: they aren't executed until/unless a - * result value is needed.) Otherwise the value is assumed to be valid - * when needed. - * ---------------- - */ - -typedef struct ParamExecData -{ - void *execPlan; /* should be "SubPlanState *" */ - Datum value; - bool isnull; -} ParamExecData; - -/* type of argument for ParamsErrorCallback */ -typedef struct ParamsErrorCbData -{ - const char *portalName; - ParamListInfo params; -} ParamsErrorCbData; - -/* Functions found in src/backend/nodes/params.c */ -extern ParamListInfo makeParamList(int numParams); -extern ParamListInfo copyParamList(ParamListInfo from); -extern Size EstimateParamListSpace(ParamListInfo paramLI); -extern void SerializeParamList(ParamListInfo paramLI, char **start_address); -extern ParamListInfo RestoreParamList(char **start_address); -extern char *BuildParamLogString(ParamListInfo params, char **paramTextValues, - int valueLen); -extern void ParamsErrorCallback(void *arg); - -#endif /* PARAMS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/parsenodes.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/parsenodes.h deleted file mode 100644 index 1e7280340..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/parsenodes.h +++ /dev/null @@ -1,3812 +0,0 @@ -/*------------------------------------------------------------------------- - * - * parsenodes.h - * definitions for parse tree nodes - * - * Many of the node types used in parsetrees include a "location" field. - * This is a byte (not character) offset in the original source text, to be - * used for positioning an error cursor when there is an error related to - * the node. Access to the original source text is needed to make use of - * the location. At the topmost (statement) level, we also provide a - * statement length, likewise measured in bytes, for convenience in - * identifying statement boundaries in multi-statement source strings. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/nodes/parsenodes.h - * - *------------------------------------------------------------------------- - */ -#ifndef PARSENODES_H -#define PARSENODES_H - -#include "nodes/bitmapset.h" -#include "nodes/lockoptions.h" -#include "nodes/primnodes.h" -#include "nodes/value.h" -#include "partitioning/partdefs.h" - - -typedef enum OverridingKind -{ - OVERRIDING_NOT_SET = 0, - OVERRIDING_USER_VALUE, - OVERRIDING_SYSTEM_VALUE -} OverridingKind; - -/* Possible sources of a Query */ -typedef enum QuerySource -{ - QSRC_ORIGINAL, /* original parsetree (explicit query) */ - QSRC_PARSER, /* added by parse analysis (now unused) */ - QSRC_INSTEAD_RULE, /* added by unconditional INSTEAD rule */ - QSRC_QUAL_INSTEAD_RULE, /* added by conditional INSTEAD rule */ - QSRC_NON_INSTEAD_RULE /* added by non-INSTEAD rule */ -} QuerySource; - -/* Sort ordering options for ORDER BY and CREATE INDEX */ -typedef enum SortByDir -{ - SORTBY_DEFAULT, - SORTBY_ASC, - SORTBY_DESC, - SORTBY_USING /* not allowed in CREATE INDEX ... */ -} SortByDir; - -typedef enum SortByNulls -{ - SORTBY_NULLS_DEFAULT, - SORTBY_NULLS_FIRST, - SORTBY_NULLS_LAST -} SortByNulls; - -/* Options for [ ALL | DISTINCT ] */ -typedef enum SetQuantifier -{ - SET_QUANTIFIER_DEFAULT, - SET_QUANTIFIER_ALL, - SET_QUANTIFIER_DISTINCT -} SetQuantifier; - -/* - * Grantable rights are encoded so that we can OR them together in a bitmask. - * The present representation of AclItem limits us to 16 distinct rights, - * even though AclMode is defined as uint32. See utils/acl.h. - * - * Caution: changing these codes breaks stored ACLs, hence forces initdb. - */ -typedef uint32 AclMode; /* a bitmask of privilege bits */ - -#define ACL_INSERT (1<<0) /* for relations */ -#define ACL_SELECT (1<<1) -#define ACL_UPDATE (1<<2) -#define ACL_DELETE (1<<3) -#define ACL_TRUNCATE (1<<4) -#define ACL_REFERENCES (1<<5) -#define ACL_TRIGGER (1<<6) -#define ACL_EXECUTE (1<<7) /* for functions */ -#define ACL_USAGE (1<<8) /* for languages, namespaces, FDWs, and - * servers */ -#define ACL_CREATE (1<<9) /* for namespaces and databases */ -#define ACL_CREATE_TEMP (1<<10) /* for databases */ -#define ACL_CONNECT (1<<11) /* for databases */ -#define ACL_SET (1<<12) /* for configuration parameters */ -#define ACL_ALTER_SYSTEM (1<<13) /* for configuration parameters */ -#define N_ACL_RIGHTS 14 /* 1 plus the last 1<" */ - AEXPR_LIKE, /* [NOT] LIKE - name must be "~~" or "!~~" */ - AEXPR_ILIKE, /* [NOT] ILIKE - name must be "~~*" or "!~~*" */ - AEXPR_SIMILAR, /* [NOT] SIMILAR - name must be "~" or "!~" */ - AEXPR_BETWEEN, /* name must be "BETWEEN" */ - AEXPR_NOT_BETWEEN, /* name must be "NOT BETWEEN" */ - AEXPR_BETWEEN_SYM, /* name must be "BETWEEN SYMMETRIC" */ - AEXPR_NOT_BETWEEN_SYM /* name must be "NOT BETWEEN SYMMETRIC" */ -} A_Expr_Kind; - -typedef struct A_Expr -{ - NodeTag type; - A_Expr_Kind kind; /* see above */ - List *name; /* possibly-qualified name of operator */ - Node *lexpr; /* left argument, or NULL if none */ - Node *rexpr; /* right argument, or NULL if none */ - int location; /* token location, or -1 if unknown */ -} A_Expr; - -/* - * A_Const - a literal constant - */ -typedef struct A_Const -{ - NodeTag type; - - /* - * Value nodes are inline for performance. You can treat 'val' as a node, - * as in IsA(&val, Integer). 'val' is not valid if isnull is true. - */ - union ValUnion - { - Node node; - Integer ival; - Float fval; - Boolean boolval; - String sval; - BitString bsval; - } val; - bool isnull; /* SQL NULL constant */ - int location; /* token location, or -1 if unknown */ -} A_Const; - -/* - * TypeCast - a CAST expression - */ -typedef struct TypeCast -{ - NodeTag type; - Node *arg; /* the expression being casted */ - TypeName *typeName; /* the target type */ - int location; /* token location, or -1 if unknown */ -} TypeCast; - -/* - * CollateClause - a COLLATE expression - */ -typedef struct CollateClause -{ - NodeTag type; - Node *arg; /* input expression */ - List *collname; /* possibly-qualified collation name */ - int location; /* token location, or -1 if unknown */ -} CollateClause; - -/* - * RoleSpec - a role name or one of a few special values. - */ -typedef enum RoleSpecType -{ - ROLESPEC_CSTRING, /* role name is stored as a C string */ - ROLESPEC_CURRENT_ROLE, /* role spec is CURRENT_ROLE */ - ROLESPEC_CURRENT_USER, /* role spec is CURRENT_USER */ - ROLESPEC_SESSION_USER, /* role spec is SESSION_USER */ - ROLESPEC_PUBLIC /* role name is "public" */ -} RoleSpecType; - -typedef struct RoleSpec -{ - NodeTag type; - RoleSpecType roletype; /* Type of this rolespec */ - char *rolename; /* filled only for ROLESPEC_CSTRING */ - int location; /* token location, or -1 if unknown */ -} RoleSpec; - -/* - * FuncCall - a function or aggregate invocation - * - * agg_order (if not NIL) indicates we saw 'foo(... ORDER BY ...)', or if - * agg_within_group is true, it was 'foo(...) WITHIN GROUP (ORDER BY ...)'. - * agg_star indicates we saw a 'foo(*)' construct, while agg_distinct - * indicates we saw 'foo(DISTINCT ...)'. In any of these cases, the - * construct *must* be an aggregate call. Otherwise, it might be either an - * aggregate or some other kind of function. However, if FILTER or OVER is - * present it had better be an aggregate or window function. - * - * Normally, you'd initialize this via makeFuncCall() and then only change the - * parts of the struct its defaults don't match afterwards, as needed. - */ -typedef struct FuncCall -{ - NodeTag type; - List *funcname; /* qualified name of function */ - List *args; /* the arguments (list of exprs) */ - List *agg_order; /* ORDER BY (list of SortBy) */ - Node *agg_filter; /* FILTER clause, if any */ - struct WindowDef *over; /* OVER clause, if any */ - bool agg_within_group; /* ORDER BY appeared in WITHIN GROUP */ - bool agg_star; /* argument was really '*' */ - bool agg_distinct; /* arguments were labeled DISTINCT */ - bool func_variadic; /* last argument was labeled VARIADIC */ - CoercionForm funcformat; /* how to display this node */ - int location; /* token location, or -1 if unknown */ -} FuncCall; - -/* - * A_Star - '*' representing all columns of a table or compound field - * - * This can appear within ColumnRef.fields, A_Indirection.indirection, and - * ResTarget.indirection lists. - */ -typedef struct A_Star -{ - NodeTag type; -} A_Star; - -/* - * A_Indices - array subscript or slice bounds ([idx] or [lidx:uidx]) - * - * In slice case, either or both of lidx and uidx can be NULL (omitted). - * In non-slice case, uidx holds the single subscript and lidx is always NULL. - */ -typedef struct A_Indices -{ - NodeTag type; - bool is_slice; /* true if slice (i.e., colon present) */ - Node *lidx; /* slice lower bound, if any */ - Node *uidx; /* subscript, or slice upper bound if any */ -} A_Indices; - -/* - * A_Indirection - select a field and/or array element from an expression - * - * The indirection list can contain A_Indices nodes (representing - * subscripting), String nodes (representing field selection --- the - * string value is the name of the field to select), and A_Star nodes - * (representing selection of all fields of a composite type). - * For example, a complex selection operation like - * (foo).field1[42][7].field2 - * would be represented with a single A_Indirection node having a 4-element - * indirection list. - * - * Currently, A_Star must appear only as the last list element --- the grammar - * is responsible for enforcing this! - */ -typedef struct A_Indirection -{ - NodeTag type; - Node *arg; /* the thing being selected from */ - List *indirection; /* subscripts and/or field names and/or * */ -} A_Indirection; - -/* - * A_ArrayExpr - an ARRAY[] construct - */ -typedef struct A_ArrayExpr -{ - NodeTag type; - List *elements; /* array element expressions */ - int location; /* token location, or -1 if unknown */ -} A_ArrayExpr; - -/* - * ResTarget - - * result target (used in target list of pre-transformed parse trees) - * - * In a SELECT target list, 'name' is the column label from an - * 'AS ColumnLabel' clause, or NULL if there was none, and 'val' is the - * value expression itself. The 'indirection' field is not used. - * - * INSERT uses ResTarget in its target-column-names list. Here, 'name' is - * the name of the destination column, 'indirection' stores any subscripts - * attached to the destination, and 'val' is not used. - * - * In an UPDATE target list, 'name' is the name of the destination column, - * 'indirection' stores any subscripts attached to the destination, and - * 'val' is the expression to assign. - * - * See A_Indirection for more info about what can appear in 'indirection'. - */ -typedef struct ResTarget -{ - NodeTag type; - char *name; /* column name or NULL */ - List *indirection; /* subscripts, field names, and '*', or NIL */ - Node *val; /* the value expression to compute or assign */ - int location; /* token location, or -1 if unknown */ -} ResTarget; - -/* - * MultiAssignRef - element of a row source expression for UPDATE - * - * In an UPDATE target list, when we have SET (a,b,c) = row-valued-expression, - * we generate separate ResTarget items for each of a,b,c. Their "val" trees - * are MultiAssignRef nodes numbered 1..n, linking to a common copy of the - * row-valued-expression (which parse analysis will process only once, when - * handling the MultiAssignRef with colno=1). - */ -typedef struct MultiAssignRef -{ - NodeTag type; - Node *source; /* the row-valued expression */ - int colno; /* column number for this target (1..n) */ - int ncolumns; /* number of targets in the construct */ -} MultiAssignRef; - -/* - * SortBy - for ORDER BY clause - */ -typedef struct SortBy -{ - NodeTag type; - Node *node; /* expression to sort on */ - SortByDir sortby_dir; /* ASC/DESC/USING/default */ - SortByNulls sortby_nulls; /* NULLS FIRST/LAST */ - List *useOp; /* name of op to use, if SORTBY_USING */ - int location; /* operator location, or -1 if none/unknown */ -} SortBy; - -/* - * WindowDef - raw representation of WINDOW and OVER clauses - * - * For entries in a WINDOW list, "name" is the window name being defined. - * For OVER clauses, we use "name" for the "OVER window" syntax, or "refname" - * for the "OVER (window)" syntax, which is subtly different --- the latter - * implies overriding the window frame clause. - */ -typedef struct WindowDef -{ - NodeTag type; - char *name; /* window's own name */ - char *refname; /* referenced window name, if any */ - List *partitionClause; /* PARTITION BY expression list */ - List *orderClause; /* ORDER BY (list of SortBy) */ - int frameOptions; /* frame_clause options, see below */ - Node *startOffset; /* expression for starting bound, if any */ - Node *endOffset; /* expression for ending bound, if any */ - int location; /* parse location, or -1 if none/unknown */ -} WindowDef; - -/* - * frameOptions is an OR of these bits. The NONDEFAULT and BETWEEN bits are - * used so that ruleutils.c can tell which properties were specified and - * which were defaulted; the correct behavioral bits must be set either way. - * The START_foo and END_foo options must come in pairs of adjacent bits for - * the convenience of gram.y, even though some of them are useless/invalid. - */ -#define FRAMEOPTION_NONDEFAULT 0x00001 /* any specified? */ -#define FRAMEOPTION_RANGE 0x00002 /* RANGE behavior */ -#define FRAMEOPTION_ROWS 0x00004 /* ROWS behavior */ -#define FRAMEOPTION_GROUPS 0x00008 /* GROUPS behavior */ -#define FRAMEOPTION_BETWEEN 0x00010 /* BETWEEN given? */ -#define FRAMEOPTION_START_UNBOUNDED_PRECEDING 0x00020 /* start is U. P. */ -#define FRAMEOPTION_END_UNBOUNDED_PRECEDING 0x00040 /* (disallowed) */ -#define FRAMEOPTION_START_UNBOUNDED_FOLLOWING 0x00080 /* (disallowed) */ -#define FRAMEOPTION_END_UNBOUNDED_FOLLOWING 0x00100 /* end is U. F. */ -#define FRAMEOPTION_START_CURRENT_ROW 0x00200 /* start is C. R. */ -#define FRAMEOPTION_END_CURRENT_ROW 0x00400 /* end is C. R. */ -#define FRAMEOPTION_START_OFFSET_PRECEDING 0x00800 /* start is O. P. */ -#define FRAMEOPTION_END_OFFSET_PRECEDING 0x01000 /* end is O. P. */ -#define FRAMEOPTION_START_OFFSET_FOLLOWING 0x02000 /* start is O. F. */ -#define FRAMEOPTION_END_OFFSET_FOLLOWING 0x04000 /* end is O. F. */ -#define FRAMEOPTION_EXCLUDE_CURRENT_ROW 0x08000 /* omit C.R. */ -#define FRAMEOPTION_EXCLUDE_GROUP 0x10000 /* omit C.R. & peers */ -#define FRAMEOPTION_EXCLUDE_TIES 0x20000 /* omit C.R.'s peers */ - -#define FRAMEOPTION_START_OFFSET \ - (FRAMEOPTION_START_OFFSET_PRECEDING | FRAMEOPTION_START_OFFSET_FOLLOWING) -#define FRAMEOPTION_END_OFFSET \ - (FRAMEOPTION_END_OFFSET_PRECEDING | FRAMEOPTION_END_OFFSET_FOLLOWING) -#define FRAMEOPTION_EXCLUSION \ - (FRAMEOPTION_EXCLUDE_CURRENT_ROW | FRAMEOPTION_EXCLUDE_GROUP | \ - FRAMEOPTION_EXCLUDE_TIES) - -#define FRAMEOPTION_DEFAULTS \ - (FRAMEOPTION_RANGE | FRAMEOPTION_START_UNBOUNDED_PRECEDING | \ - FRAMEOPTION_END_CURRENT_ROW) - -/* - * RangeSubselect - subquery appearing in a FROM clause - */ -typedef struct RangeSubselect -{ - NodeTag type; - bool lateral; /* does it have LATERAL prefix? */ - Node *subquery; /* the untransformed sub-select clause */ - Alias *alias; /* table alias & optional column aliases */ -} RangeSubselect; - -/* - * RangeFunction - function call appearing in a FROM clause - * - * functions is a List because we use this to represent the construct - * ROWS FROM(func1(...), func2(...), ...). Each element of this list is a - * two-element sublist, the first element being the untransformed function - * call tree, and the second element being a possibly-empty list of ColumnDef - * nodes representing any columndef list attached to that function within the - * ROWS FROM() syntax. - * - * alias and coldeflist represent any alias and/or columndef list attached - * at the top level. (We disallow coldeflist appearing both here and - * per-function, but that's checked in parse analysis, not by the grammar.) - */ -typedef struct RangeFunction -{ - NodeTag type; - bool lateral; /* does it have LATERAL prefix? */ - bool ordinality; /* does it have WITH ORDINALITY suffix? */ - bool is_rowsfrom; /* is result of ROWS FROM() syntax? */ - List *functions; /* per-function information, see above */ - Alias *alias; /* table alias & optional column aliases */ - List *coldeflist; /* list of ColumnDef nodes to describe result - * of function returning RECORD */ -} RangeFunction; - -/* - * RangeTableFunc - raw form of "table functions" such as XMLTABLE - */ -typedef struct RangeTableFunc -{ - NodeTag type; - bool lateral; /* does it have LATERAL prefix? */ - Node *docexpr; /* document expression */ - Node *rowexpr; /* row generator expression */ - List *namespaces; /* list of namespaces as ResTarget */ - List *columns; /* list of RangeTableFuncCol */ - Alias *alias; /* table alias & optional column aliases */ - int location; /* token location, or -1 if unknown */ -} RangeTableFunc; - -/* - * RangeTableFuncCol - one column in a RangeTableFunc->columns - * - * If for_ordinality is true (FOR ORDINALITY), then the column is an int4 - * column and the rest of the fields are ignored. - */ -typedef struct RangeTableFuncCol -{ - NodeTag type; - char *colname; /* name of generated column */ - TypeName *typeName; /* type of generated column */ - bool for_ordinality; /* does it have FOR ORDINALITY? */ - bool is_not_null; /* does it have NOT NULL? */ - Node *colexpr; /* column filter expression */ - Node *coldefexpr; /* column default value expression */ - int location; /* token location, or -1 if unknown */ -} RangeTableFuncCol; - -/* - * RangeTableSample - TABLESAMPLE appearing in a raw FROM clause - * - * This node, appearing only in raw parse trees, represents - * TABLESAMPLE () REPEATABLE () - * Currently, the can only be a RangeVar, but we might in future - * allow RangeSubselect and other options. Note that the RangeTableSample - * is wrapped around the node representing the , rather than being - * a subfield of it. - */ -typedef struct RangeTableSample -{ - NodeTag type; - Node *relation; /* relation to be sampled */ - List *method; /* sampling method name (possibly qualified) */ - List *args; /* argument(s) for sampling method */ - Node *repeatable; /* REPEATABLE expression, or NULL if none */ - int location; /* method name location, or -1 if unknown */ -} RangeTableSample; - -/* - * ColumnDef - column definition (used in various creates) - * - * If the column has a default value, we may have the value expression - * in either "raw" form (an untransformed parse tree) or "cooked" form - * (a post-parse-analysis, executable expression tree), depending on - * how this ColumnDef node was created (by parsing, or by inheritance - * from an existing relation). We should never have both in the same node! - * - * Similarly, we may have a COLLATE specification in either raw form - * (represented as a CollateClause with arg==NULL) or cooked form - * (the collation's OID). - * - * The constraints list may contain a CONSTR_DEFAULT item in a raw - * parsetree produced by gram.y, but transformCreateStmt will remove - * the item and set raw_default instead. CONSTR_DEFAULT items - * should not appear in any subsequent processing. - */ -typedef struct ColumnDef -{ - NodeTag type; - char *colname; /* name of column */ - TypeName *typeName; /* type of column */ - char *compression; /* compression method for column */ - int inhcount; /* number of times column is inherited */ - bool is_local; /* column has local (non-inherited) def'n */ - bool is_not_null; /* NOT NULL constraint specified? */ - bool is_from_type; /* column definition came from table type */ - char storage; /* attstorage setting, or 0 for default */ - Node *raw_default; /* default value (untransformed parse tree) */ - Node *cooked_default; /* default value (transformed expr tree) */ - char identity; /* attidentity setting */ - RangeVar *identitySequence; /* to store identity sequence name for - * ALTER TABLE ... ADD COLUMN */ - char generated; /* attgenerated setting */ - CollateClause *collClause; /* untransformed COLLATE spec, if any */ - Oid collOid; /* collation OID (InvalidOid if not set) */ - List *constraints; /* other constraints on column */ - List *fdwoptions; /* per-column FDW options */ - int location; /* parse location, or -1 if none/unknown */ -} ColumnDef; - -/* - * TableLikeClause - CREATE TABLE ( ... LIKE ... ) clause - */ -typedef struct TableLikeClause -{ - NodeTag type; - RangeVar *relation; - bits32 options; /* OR of TableLikeOption flags */ - Oid relationOid; /* If table has been looked up, its OID */ -} TableLikeClause; - -typedef enum TableLikeOption -{ - CREATE_TABLE_LIKE_COMMENTS = 1 << 0, - CREATE_TABLE_LIKE_COMPRESSION = 1 << 1, - CREATE_TABLE_LIKE_CONSTRAINTS = 1 << 2, - CREATE_TABLE_LIKE_DEFAULTS = 1 << 3, - CREATE_TABLE_LIKE_GENERATED = 1 << 4, - CREATE_TABLE_LIKE_IDENTITY = 1 << 5, - CREATE_TABLE_LIKE_INDEXES = 1 << 6, - CREATE_TABLE_LIKE_STATISTICS = 1 << 7, - CREATE_TABLE_LIKE_STORAGE = 1 << 8, - CREATE_TABLE_LIKE_ALL = PG_INT32_MAX -} TableLikeOption; - -/* - * IndexElem - index parameters (used in CREATE INDEX, and in ON CONFLICT) - * - * For a plain index attribute, 'name' is the name of the table column to - * index, and 'expr' is NULL. For an index expression, 'name' is NULL and - * 'expr' is the expression tree. - */ -typedef struct IndexElem -{ - NodeTag type; - char *name; /* name of attribute to index, or NULL */ - Node *expr; /* expression to index, or NULL */ - char *indexcolname; /* name for index column; NULL = default */ - List *collation; /* name of collation; NIL = default */ - List *opclass; /* name of desired opclass; NIL = default */ - List *opclassopts; /* opclass-specific options, or NIL */ - SortByDir ordering; /* ASC/DESC/default */ - SortByNulls nulls_ordering; /* FIRST/LAST/default */ -} IndexElem; - -/* - * DefElem - a generic "name = value" option definition - * - * In some contexts the name can be qualified. Also, certain SQL commands - * allow a SET/ADD/DROP action to be attached to option settings, so it's - * convenient to carry a field for that too. (Note: currently, it is our - * practice that the grammar allows namespace and action only in statements - * where they are relevant; C code can just ignore those fields in other - * statements.) - */ -typedef enum DefElemAction -{ - DEFELEM_UNSPEC, /* no action given */ - DEFELEM_SET, - DEFELEM_ADD, - DEFELEM_DROP -} DefElemAction; - -typedef struct DefElem -{ - NodeTag type; - char *defnamespace; /* NULL if unqualified name */ - char *defname; - Node *arg; /* typically Integer, Float, String, or - * TypeName */ - DefElemAction defaction; /* unspecified action, or SET/ADD/DROP */ - int location; /* token location, or -1 if unknown */ -} DefElem; - -/* - * LockingClause - raw representation of FOR [NO KEY] UPDATE/[KEY] SHARE - * options - * - * Note: lockedRels == NIL means "all relations in query". Otherwise it - * is a list of RangeVar nodes. (We use RangeVar mainly because it carries - * a location field --- currently, parse analysis insists on unqualified - * names in LockingClause.) - */ -typedef struct LockingClause -{ - NodeTag type; - List *lockedRels; /* FOR [KEY] UPDATE/SHARE relations */ - LockClauseStrength strength; - LockWaitPolicy waitPolicy; /* NOWAIT and SKIP LOCKED */ -} LockingClause; - -/* - * XMLSERIALIZE (in raw parse tree only) - */ -typedef struct XmlSerialize -{ - NodeTag type; - XmlOptionType xmloption; /* DOCUMENT or CONTENT */ - Node *expr; - TypeName *typeName; - int location; /* token location, or -1 if unknown */ -} XmlSerialize; - -/* Partitioning related definitions */ - -/* - * PartitionElem - parse-time representation of a single partition key - * - * expr can be either a raw expression tree or a parse-analyzed expression. - * We don't store these on-disk, though. - */ -typedef struct PartitionElem -{ - NodeTag type; - char *name; /* name of column to partition on, or NULL */ - Node *expr; /* expression to partition on, or NULL */ - List *collation; /* name of collation; NIL = default */ - List *opclass; /* name of desired opclass; NIL = default */ - int location; /* token location, or -1 if unknown */ -} PartitionElem; - -/* - * PartitionSpec - parse-time representation of a partition key specification - * - * This represents the key space we will be partitioning on. - */ -typedef struct PartitionSpec -{ - NodeTag type; - char *strategy; /* partitioning strategy ('hash', 'list' or - * 'range') */ - List *partParams; /* List of PartitionElems */ - int location; /* token location, or -1 if unknown */ -} PartitionSpec; - -/* Internal codes for partitioning strategies */ -#define PARTITION_STRATEGY_HASH 'h' -#define PARTITION_STRATEGY_LIST 'l' -#define PARTITION_STRATEGY_RANGE 'r' - -/* - * PartitionBoundSpec - a partition bound specification - * - * This represents the portion of the partition key space assigned to a - * particular partition. These are stored on disk in pg_class.relpartbound. - */ -struct PartitionBoundSpec -{ - NodeTag type; - - char strategy; /* see PARTITION_STRATEGY codes above */ - bool is_default; /* is it a default partition bound? */ - - /* Partitioning info for HASH strategy: */ - int modulus; - int remainder; - - /* Partitioning info for LIST strategy: */ - List *listdatums; /* List of Consts (or A_Consts in raw tree) */ - - /* Partitioning info for RANGE strategy: */ - List *lowerdatums; /* List of PartitionRangeDatums */ - List *upperdatums; /* List of PartitionRangeDatums */ - - int location; /* token location, or -1 if unknown */ -}; - -/* - * PartitionRangeDatum - one of the values in a range partition bound - * - * This can be MINVALUE, MAXVALUE or a specific bounded value. - */ -typedef enum PartitionRangeDatumKind -{ - PARTITION_RANGE_DATUM_MINVALUE = -1, /* less than any other value */ - PARTITION_RANGE_DATUM_VALUE = 0, /* a specific (bounded) value */ - PARTITION_RANGE_DATUM_MAXVALUE = 1 /* greater than any other value */ -} PartitionRangeDatumKind; - -typedef struct PartitionRangeDatum -{ - NodeTag type; - - PartitionRangeDatumKind kind; - Node *value; /* Const (or A_Const in raw tree), if kind is - * PARTITION_RANGE_DATUM_VALUE, else NULL */ - - int location; /* token location, or -1 if unknown */ -} PartitionRangeDatum; - -/* - * PartitionCmd - info for ALTER TABLE/INDEX ATTACH/DETACH PARTITION commands - */ -typedef struct PartitionCmd -{ - NodeTag type; - RangeVar *name; /* name of partition to attach/detach */ - PartitionBoundSpec *bound; /* FOR VALUES, if attaching */ - bool concurrent; -} PartitionCmd; - -/**************************************************************************** - * Nodes for a Query tree - ****************************************************************************/ - -/*-------------------- - * RangeTblEntry - - * A range table is a List of RangeTblEntry nodes. - * - * A range table entry may represent a plain relation, a sub-select in - * FROM, or the result of a JOIN clause. (Only explicit JOIN syntax - * produces an RTE, not the implicit join resulting from multiple FROM - * items. This is because we only need the RTE to deal with SQL features - * like outer joins and join-output-column aliasing.) Other special - * RTE types also exist, as indicated by RTEKind. - * - * Note that we consider RTE_RELATION to cover anything that has a pg_class - * entry. relkind distinguishes the sub-cases. - * - * alias is an Alias node representing the AS alias-clause attached to the - * FROM expression, or NULL if no clause. - * - * eref is the table reference name and column reference names (either - * real or aliases). Note that system columns (OID etc) are not included - * in the column list. - * eref->aliasname is required to be present, and should generally be used - * to identify the RTE for error messages etc. - * - * In RELATION RTEs, the colnames in both alias and eref are indexed by - * physical attribute number; this means there must be colname entries for - * dropped columns. When building an RTE we insert empty strings ("") for - * dropped columns. Note however that a stored rule may have nonempty - * colnames for columns dropped since the rule was created (and for that - * matter the colnames might be out of date due to column renamings). - * The same comments apply to FUNCTION RTEs when a function's return type - * is a named composite type. - * - * In JOIN RTEs, the colnames in both alias and eref are one-to-one with - * joinaliasvars entries. A JOIN RTE will omit columns of its inputs when - * those columns are known to be dropped at parse time. Again, however, - * a stored rule might contain entries for columns dropped since the rule - * was created. (This is only possible for columns not actually referenced - * in the rule.) When loading a stored rule, we replace the joinaliasvars - * items for any such columns with null pointers. (We can't simply delete - * them from the joinaliasvars list, because that would affect the attnums - * of Vars referencing the rest of the list.) - * - * inh is true for relation references that should be expanded to include - * inheritance children, if the rel has any. This *must* be false for - * RTEs other than RTE_RELATION entries. - * - * inFromCl marks those range variables that are listed in the FROM clause. - * It's false for RTEs that are added to a query behind the scenes, such - * as the NEW and OLD variables for a rule, or the subqueries of a UNION. - * This flag is not used during parsing (except in transformLockingClause, - * q.v.); the parser now uses a separate "namespace" data structure to - * control visibility. But it is needed by ruleutils.c to determine - * whether RTEs should be shown in decompiled queries. - * - * requiredPerms and checkAsUser specify run-time access permissions - * checks to be performed at query startup. The user must have *all* - * of the permissions that are OR'd together in requiredPerms (zero - * indicates no permissions checking). If checkAsUser is not zero, - * then do the permissions checks using the access rights of that user, - * not the current effective user ID. (This allows rules to act as - * setuid gateways.) Permissions checks only apply to RELATION RTEs. - * - * For SELECT/INSERT/UPDATE permissions, if the user doesn't have - * table-wide permissions then it is sufficient to have the permissions - * on all columns identified in selectedCols (for SELECT) and/or - * insertedCols and/or updatedCols (INSERT with ON CONFLICT DO UPDATE may - * have all 3). selectedCols, insertedCols and updatedCols are bitmapsets, - * which cannot have negative integer members, so we subtract - * FirstLowInvalidHeapAttributeNumber from column numbers before storing - * them in these fields. A whole-row Var reference is represented by - * setting the bit for InvalidAttrNumber. - * - * updatedCols is also used in some other places, for example, to determine - * which triggers to fire and in FDWs to know which changed columns they - * need to ship off. - * - * Generated columns that are caused to be updated by an update to a base - * column are listed in extraUpdatedCols. This is not considered for - * permission checking, but it is useful in those places that want to know - * the full set of columns being updated as opposed to only the ones the - * user explicitly mentioned in the query. (There is currently no need for - * an extraInsertedCols, but it could exist.) Note that extraUpdatedCols - * is populated during query rewrite, NOT in the parser, since generated - * columns could be added after a rule has been parsed and stored. - * - * securityQuals is a list of security barrier quals (boolean expressions), - * to be tested in the listed order before returning a row from the - * relation. It is always NIL in parser output. Entries are added by the - * rewriter to implement security-barrier views and/or row-level security. - * Note that the planner turns each boolean expression into an implicitly - * AND'ed sublist, as is its usual habit with qualification expressions. - *-------------------- - */ -typedef enum RTEKind -{ - RTE_RELATION, /* ordinary relation reference */ - RTE_SUBQUERY, /* subquery in FROM */ - RTE_JOIN, /* join */ - RTE_FUNCTION, /* function in FROM */ - RTE_TABLEFUNC, /* TableFunc(.., column list) */ - RTE_VALUES, /* VALUES (), (), ... */ - RTE_CTE, /* common table expr (WITH list element) */ - RTE_NAMEDTUPLESTORE, /* tuplestore, e.g. for AFTER triggers */ - RTE_RESULT /* RTE represents an empty FROM clause; such - * RTEs are added by the planner, they're not - * present during parsing or rewriting */ -} RTEKind; - -typedef struct RangeTblEntry -{ - NodeTag type; - - RTEKind rtekind; /* see above */ - - /* - * XXX the fields applicable to only some rte kinds should be merged into - * a union. I didn't do this yet because the diffs would impact a lot of - * code that is being actively worked on. FIXME someday. - */ - - /* - * Fields valid for a plain relation RTE (else zero): - * - * As a special case, RTE_NAMEDTUPLESTORE can also set relid to indicate - * that the tuple format of the tuplestore is the same as the referenced - * relation. This allows plans referencing AFTER trigger transition - * tables to be invalidated if the underlying table is altered. - * - * rellockmode is really LOCKMODE, but it's declared int to avoid having - * to include lock-related headers here. It must be RowExclusiveLock if - * the RTE is an INSERT/UPDATE/DELETE/MERGE target, else RowShareLock if - * the RTE is a SELECT FOR UPDATE/FOR SHARE target, else AccessShareLock. - * - * Note: in some cases, rule expansion may result in RTEs that are marked - * with RowExclusiveLock even though they are not the target of the - * current query; this happens if a DO ALSO rule simply scans the original - * target table. We leave such RTEs with their original lockmode so as to - * avoid getting an additional, lesser lock. - */ - Oid relid; /* OID of the relation */ - char relkind; /* relation kind (see pg_class.relkind) */ - int rellockmode; /* lock level that query requires on the rel */ - struct TableSampleClause *tablesample; /* sampling info, or NULL */ - - /* - * Fields valid for a subquery RTE (else NULL): - */ - Query *subquery; /* the sub-query */ - bool security_barrier; /* is from security_barrier view? */ - - /* - * Fields valid for a join RTE (else NULL/zero): - * - * joinaliasvars is a list of (usually) Vars corresponding to the columns - * of the join result. An alias Var referencing column K of the join - * result can be replaced by the K'th element of joinaliasvars --- but to - * simplify the task of reverse-listing aliases correctly, we do not do - * that until planning time. In detail: an element of joinaliasvars can - * be a Var of one of the join's input relations, or such a Var with an - * implicit coercion to the join's output column type, or a COALESCE - * expression containing the two input column Vars (possibly coerced). - * Elements beyond the first joinmergedcols entries are always just Vars, - * and are never referenced from elsewhere in the query (that is, join - * alias Vars are generated only for merged columns). We keep these - * entries only because they're needed in expandRTE() and similar code. - * - * Within a Query loaded from a stored rule, it is possible for non-merged - * joinaliasvars items to be null pointers, which are placeholders for - * (necessarily unreferenced) columns dropped since the rule was made. - * Also, once planning begins, joinaliasvars items can be almost anything, - * as a result of subquery-flattening substitutions. - * - * joinleftcols is an integer list of physical column numbers of the left - * join input rel that are included in the join; likewise joinrighttcols - * for the right join input rel. (Which rels those are can be determined - * from the associated JoinExpr.) If the join is USING/NATURAL, then the - * first joinmergedcols entries in each list identify the merged columns. - * The merged columns come first in the join output, then remaining - * columns of the left input, then remaining columns of the right. - * - * Note that input columns could have been dropped after creation of a - * stored rule, if they are not referenced in the query (in particular, - * merged columns could not be dropped); this is not accounted for in - * joinleftcols/joinrighttcols. - */ - JoinType jointype; /* type of join */ - int joinmergedcols; /* number of merged (JOIN USING) columns */ - List *joinaliasvars; /* list of alias-var expansions */ - List *joinleftcols; /* left-side input column numbers */ - List *joinrightcols; /* right-side input column numbers */ - - /* - * join_using_alias is an alias clause attached directly to JOIN/USING. It - * is different from the alias field (below) in that it does not hide the - * range variables of the tables being joined. - */ - Alias *join_using_alias; - - /* - * Fields valid for a function RTE (else NIL/zero): - * - * When funcordinality is true, the eref->colnames list includes an alias - * for the ordinality column. The ordinality column is otherwise - * implicit, and must be accounted for "by hand" in places such as - * expandRTE(). - */ - List *functions; /* list of RangeTblFunction nodes */ - bool funcordinality; /* is this called WITH ORDINALITY? */ - - /* - * Fields valid for a TableFunc RTE (else NULL): - */ - TableFunc *tablefunc; - - /* - * Fields valid for a values RTE (else NIL): - */ - List *values_lists; /* list of expression lists */ - - /* - * Fields valid for a CTE RTE (else NULL/zero): - */ - char *ctename; /* name of the WITH list item */ - Index ctelevelsup; /* number of query levels up */ - bool self_reference; /* is this a recursive self-reference? */ - - /* - * Fields valid for CTE, VALUES, ENR, and TableFunc RTEs (else NIL): - * - * We need these for CTE RTEs so that the types of self-referential - * columns are well-defined. For VALUES RTEs, storing these explicitly - * saves having to re-determine the info by scanning the values_lists. For - * ENRs, we store the types explicitly here (we could get the information - * from the catalogs if 'relid' was supplied, but we'd still need these - * for TupleDesc-based ENRs, so we might as well always store the type - * info here). For TableFuncs, these fields are redundant with data in - * the TableFunc node, but keeping them here allows some code sharing with - * the other cases. - * - * For ENRs only, we have to consider the possibility of dropped columns. - * A dropped column is included in these lists, but it will have zeroes in - * all three lists (as well as an empty-string entry in eref). Testing - * for zero coltype is the standard way to detect a dropped column. - */ - List *coltypes; /* OID list of column type OIDs */ - List *coltypmods; /* integer list of column typmods */ - List *colcollations; /* OID list of column collation OIDs */ - - /* - * Fields valid for ENR RTEs (else NULL/zero): - */ - char *enrname; /* name of ephemeral named relation */ - Cardinality enrtuples; /* estimated or actual from caller */ - - /* - * Fields valid in all RTEs: - */ - Alias *alias; /* user-written alias clause, if any */ - Alias *eref; /* expanded reference names */ - bool lateral; /* subquery, function, or values is LATERAL? */ - bool inh; /* inheritance requested? */ - bool inFromCl; /* present in FROM clause? */ - AclMode requiredPerms; /* bitmask of required access permissions */ - Oid checkAsUser; /* if valid, check access as this role */ - Bitmapset *selectedCols; /* columns needing SELECT permission */ - Bitmapset *insertedCols; /* columns needing INSERT permission */ - Bitmapset *updatedCols; /* columns needing UPDATE permission */ - Bitmapset *extraUpdatedCols; /* generated columns being updated */ - List *securityQuals; /* security barrier quals to apply, if any */ -} RangeTblEntry; - -/* - * RangeTblFunction - - * RangeTblEntry subsidiary data for one function in a FUNCTION RTE. - * - * If the function had a column definition list (required for an - * otherwise-unspecified RECORD result), funccolnames lists the names given - * in the definition list, funccoltypes lists their declared column types, - * funccoltypmods lists their typmods, funccolcollations their collations. - * Otherwise, those fields are NIL. - * - * Notice we don't attempt to store info about the results of functions - * returning named composite types, because those can change from time to - * time. We do however remember how many columns we thought the type had - * (including dropped columns!), so that we can successfully ignore any - * columns added after the query was parsed. - */ -typedef struct RangeTblFunction -{ - NodeTag type; - - Node *funcexpr; /* expression tree for func call */ - int funccolcount; /* number of columns it contributes to RTE */ - /* These fields record the contents of a column definition list, if any: */ - List *funccolnames; /* column names (list of String) */ - List *funccoltypes; /* OID list of column type OIDs */ - List *funccoltypmods; /* integer list of column typmods */ - List *funccolcollations; /* OID list of column collation OIDs */ - /* This is set during planning for use by the executor: */ - Bitmapset *funcparams; /* PARAM_EXEC Param IDs affecting this func */ -} RangeTblFunction; - -/* - * TableSampleClause - TABLESAMPLE appearing in a transformed FROM clause - * - * Unlike RangeTableSample, this is a subnode of the relevant RangeTblEntry. - */ -typedef struct TableSampleClause -{ - NodeTag type; - Oid tsmhandler; /* OID of the tablesample handler function */ - List *args; /* tablesample argument expression(s) */ - Expr *repeatable; /* REPEATABLE expression, or NULL if none */ -} TableSampleClause; - -/* - * WithCheckOption - - * representation of WITH CHECK OPTION checks to be applied to new tuples - * when inserting/updating an auto-updatable view, or RLS WITH CHECK - * policies to be applied when inserting/updating a relation with RLS. - */ -typedef enum WCOKind -{ - WCO_VIEW_CHECK, /* WCO on an auto-updatable view */ - WCO_RLS_INSERT_CHECK, /* RLS INSERT WITH CHECK policy */ - WCO_RLS_UPDATE_CHECK, /* RLS UPDATE WITH CHECK policy */ - WCO_RLS_CONFLICT_CHECK, /* RLS ON CONFLICT DO UPDATE USING policy */ - WCO_RLS_MERGE_UPDATE_CHECK, /* RLS MERGE UPDATE USING policy */ - WCO_RLS_MERGE_DELETE_CHECK /* RLS MERGE DELETE USING policy */ -} WCOKind; - -typedef struct WithCheckOption -{ - NodeTag type; - WCOKind kind; /* kind of WCO */ - char *relname; /* name of relation that specified the WCO */ - char *polname; /* name of RLS policy being checked */ - Node *qual; /* constraint qual to check */ - bool cascaded; /* true for a cascaded WCO on a view */ -} WithCheckOption; - -/* - * SortGroupClause - - * representation of ORDER BY, GROUP BY, PARTITION BY, - * DISTINCT, DISTINCT ON items - * - * You might think that ORDER BY is only interested in defining ordering, - * and GROUP/DISTINCT are only interested in defining equality. However, - * one way to implement grouping is to sort and then apply a "uniq"-like - * filter. So it's also interesting to keep track of possible sort operators - * for GROUP/DISTINCT, and in particular to try to sort for the grouping - * in a way that will also yield a requested ORDER BY ordering. So we need - * to be able to compare ORDER BY and GROUP/DISTINCT lists, which motivates - * the decision to give them the same representation. - * - * tleSortGroupRef must match ressortgroupref of exactly one entry of the - * query's targetlist; that is the expression to be sorted or grouped by. - * eqop is the OID of the equality operator. - * sortop is the OID of the ordering operator (a "<" or ">" operator), - * or InvalidOid if not available. - * nulls_first means about what you'd expect. If sortop is InvalidOid - * then nulls_first is meaningless and should be set to false. - * hashable is true if eqop is hashable (note this condition also depends - * on the datatype of the input expression). - * - * In an ORDER BY item, all fields must be valid. (The eqop isn't essential - * here, but it's cheap to get it along with the sortop, and requiring it - * to be valid eases comparisons to grouping items.) Note that this isn't - * actually enough information to determine an ordering: if the sortop is - * collation-sensitive, a collation OID is needed too. We don't store the - * collation in SortGroupClause because it's not available at the time the - * parser builds the SortGroupClause; instead, consult the exposed collation - * of the referenced targetlist expression to find out what it is. - * - * In a grouping item, eqop must be valid. If the eqop is a btree equality - * operator, then sortop should be set to a compatible ordering operator. - * We prefer to set eqop/sortop/nulls_first to match any ORDER BY item that - * the query presents for the same tlist item. If there is none, we just - * use the default ordering op for the datatype. - * - * If the tlist item's type has a hash opclass but no btree opclass, then - * we will set eqop to the hash equality operator, sortop to InvalidOid, - * and nulls_first to false. A grouping item of this kind can only be - * implemented by hashing, and of course it'll never match an ORDER BY item. - * - * The hashable flag is provided since we generally have the requisite - * information readily available when the SortGroupClause is constructed, - * and it's relatively expensive to get it again later. Note there is no - * need for a "sortable" flag since OidIsValid(sortop) serves the purpose. - * - * A query might have both ORDER BY and DISTINCT (or DISTINCT ON) clauses. - * In SELECT DISTINCT, the distinctClause list is as long or longer than the - * sortClause list, while in SELECT DISTINCT ON it's typically shorter. - * The two lists must match up to the end of the shorter one --- the parser - * rearranges the distinctClause if necessary to make this true. (This - * restriction ensures that only one sort step is needed to both satisfy the - * ORDER BY and set up for the Unique step. This is semantically necessary - * for DISTINCT ON, and presents no real drawback for DISTINCT.) - */ -typedef struct SortGroupClause -{ - NodeTag type; - Index tleSortGroupRef; /* reference into targetlist */ - Oid eqop; /* the equality operator ('=' op) */ - Oid sortop; /* the ordering operator ('<' op), or 0 */ - bool nulls_first; /* do NULLs come before normal values? */ - bool hashable; /* can eqop be implemented by hashing? */ -} SortGroupClause; - -/* - * GroupingSet - - * representation of CUBE, ROLLUP and GROUPING SETS clauses - * - * In a Query with grouping sets, the groupClause contains a flat list of - * SortGroupClause nodes for each distinct expression used. The actual - * structure of the GROUP BY clause is given by the groupingSets tree. - * - * In the raw parser output, GroupingSet nodes (of all types except SIMPLE - * which is not used) are potentially mixed in with the expressions in the - * groupClause of the SelectStmt. (An expression can't contain a GroupingSet, - * but a list may mix GroupingSet and expression nodes.) At this stage, the - * content of each node is a list of expressions, some of which may be RowExprs - * which represent sublists rather than actual row constructors, and nested - * GroupingSet nodes where legal in the grammar. The structure directly - * reflects the query syntax. - * - * In parse analysis, the transformed expressions are used to build the tlist - * and groupClause list (of SortGroupClause nodes), and the groupingSets tree - * is eventually reduced to a fixed format: - * - * EMPTY nodes represent (), and obviously have no content - * - * SIMPLE nodes represent a list of one or more expressions to be treated as an - * atom by the enclosing structure; the content is an integer list of - * ressortgroupref values (see SortGroupClause) - * - * CUBE and ROLLUP nodes contain a list of one or more SIMPLE nodes. - * - * SETS nodes contain a list of EMPTY, SIMPLE, CUBE or ROLLUP nodes, but after - * parse analysis they cannot contain more SETS nodes; enough of the syntactic - * transforms of the spec have been applied that we no longer have arbitrarily - * deep nesting (though we still preserve the use of cube/rollup). - * - * Note that if the groupingSets tree contains no SIMPLE nodes (only EMPTY - * nodes at the leaves), then the groupClause will be empty, but this is still - * an aggregation query (similar to using aggs or HAVING without GROUP BY). - * - * As an example, the following clause: - * - * GROUP BY GROUPING SETS ((a,b), CUBE(c,(d,e))) - * - * looks like this after raw parsing: - * - * SETS( RowExpr(a,b) , CUBE( c, RowExpr(d,e) ) ) - * - * and parse analysis converts it to: - * - * SETS( SIMPLE(1,2), CUBE( SIMPLE(3), SIMPLE(4,5) ) ) - */ -typedef enum GroupingSetKind -{ - GROUPING_SET_EMPTY, - GROUPING_SET_SIMPLE, - GROUPING_SET_ROLLUP, - GROUPING_SET_CUBE, - GROUPING_SET_SETS -} GroupingSetKind; - -typedef struct GroupingSet -{ - NodeTag type; - GroupingSetKind kind; - List *content; - int location; -} GroupingSet; - -/* - * WindowClause - - * transformed representation of WINDOW and OVER clauses - * - * A parsed Query's windowClause list contains these structs. "name" is set - * if the clause originally came from WINDOW, and is NULL if it originally - * was an OVER clause (but note that we collapse out duplicate OVERs). - * partitionClause and orderClause are lists of SortGroupClause structs. - * If we have RANGE with offset PRECEDING/FOLLOWING, the semantics of that are - * specified by startInRangeFunc/inRangeColl/inRangeAsc/inRangeNullsFirst - * for the start offset, or endInRangeFunc/inRange* for the end offset. - * winref is an ID number referenced by WindowFunc nodes; it must be unique - * among the members of a Query's windowClause list. - * When refname isn't null, the partitionClause is always copied from there; - * the orderClause might or might not be copied (see copiedOrder); the framing - * options are never copied, per spec. - */ -typedef struct WindowClause -{ - NodeTag type; - char *name; /* window name (NULL in an OVER clause) */ - char *refname; /* referenced window name, if any */ - List *partitionClause; /* PARTITION BY list */ - List *orderClause; /* ORDER BY list */ - int frameOptions; /* frame_clause options, see WindowDef */ - Node *startOffset; /* expression for starting bound, if any */ - Node *endOffset; /* expression for ending bound, if any */ - List *runCondition; /* qual to help short-circuit execution */ - Oid startInRangeFunc; /* in_range function for startOffset */ - Oid endInRangeFunc; /* in_range function for endOffset */ - Oid inRangeColl; /* collation for in_range tests */ - bool inRangeAsc; /* use ASC sort order for in_range tests? */ - bool inRangeNullsFirst; /* nulls sort first for in_range tests? */ - Index winref; /* ID referenced by window functions */ - bool copiedOrder; /* did we copy orderClause from refname? */ -} WindowClause; - -/* - * RowMarkClause - - * parser output representation of FOR [KEY] UPDATE/SHARE clauses - * - * Query.rowMarks contains a separate RowMarkClause node for each relation - * identified as a FOR [KEY] UPDATE/SHARE target. If one of these clauses - * is applied to a subquery, we generate RowMarkClauses for all normal and - * subquery rels in the subquery, but they are marked pushedDown = true to - * distinguish them from clauses that were explicitly written at this query - * level. Also, Query.hasForUpdate tells whether there were explicit FOR - * UPDATE/SHARE/KEY SHARE clauses in the current query level. - */ -typedef struct RowMarkClause -{ - NodeTag type; - Index rti; /* range table index of target relation */ - LockClauseStrength strength; - LockWaitPolicy waitPolicy; /* NOWAIT and SKIP LOCKED */ - bool pushedDown; /* pushed down from higher query level? */ -} RowMarkClause; - -/* - * WithClause - - * representation of WITH clause - * - * Note: WithClause does not propagate into the Query representation; - * but CommonTableExpr does. - */ -typedef struct WithClause -{ - NodeTag type; - List *ctes; /* list of CommonTableExprs */ - bool recursive; /* true = WITH RECURSIVE */ - int location; /* token location, or -1 if unknown */ -} WithClause; - -/* - * InferClause - - * ON CONFLICT unique index inference clause - * - * Note: InferClause does not propagate into the Query representation. - */ -typedef struct InferClause -{ - NodeTag type; - List *indexElems; /* IndexElems to infer unique index */ - Node *whereClause; /* qualification (partial-index predicate) */ - char *conname; /* Constraint name, or NULL if unnamed */ - int location; /* token location, or -1 if unknown */ -} InferClause; - -/* - * OnConflictClause - - * representation of ON CONFLICT clause - * - * Note: OnConflictClause does not propagate into the Query representation. - */ -typedef struct OnConflictClause -{ - NodeTag type; - OnConflictAction action; /* DO NOTHING or UPDATE? */ - InferClause *infer; /* Optional index inference clause */ - List *targetList; /* the target list (of ResTarget) */ - Node *whereClause; /* qualifications */ - int location; /* token location, or -1 if unknown */ -} OnConflictClause; - -/* - * CommonTableExpr - - * representation of WITH list element - */ - -typedef enum CTEMaterialize -{ - CTEMaterializeDefault, /* no option specified */ - CTEMaterializeAlways, /* MATERIALIZED */ - CTEMaterializeNever /* NOT MATERIALIZED */ -} CTEMaterialize; - -typedef struct CTESearchClause -{ - NodeTag type; - List *search_col_list; - bool search_breadth_first; - char *search_seq_column; - int location; -} CTESearchClause; - -typedef struct CTECycleClause -{ - NodeTag type; - List *cycle_col_list; - char *cycle_mark_column; - Node *cycle_mark_value; - Node *cycle_mark_default; - char *cycle_path_column; - int location; - /* These fields are set during parse analysis: */ - Oid cycle_mark_type; /* common type of _value and _default */ - int cycle_mark_typmod; - Oid cycle_mark_collation; - Oid cycle_mark_neop; /* <> operator for type */ -} CTECycleClause; - -typedef struct CommonTableExpr -{ - NodeTag type; - char *ctename; /* query name (never qualified) */ - List *aliascolnames; /* optional list of column names */ - CTEMaterialize ctematerialized; /* is this an optimization fence? */ - /* SelectStmt/InsertStmt/etc before parse analysis, Query afterwards: */ - Node *ctequery; /* the CTE's subquery */ - CTESearchClause *search_clause; - CTECycleClause *cycle_clause; - int location; /* token location, or -1 if unknown */ - /* These fields are set during parse analysis: */ - bool cterecursive; /* is this CTE actually recursive? */ - int cterefcount; /* number of RTEs referencing this CTE - * (excluding internal self-references) */ - List *ctecolnames; /* list of output column names */ - List *ctecoltypes; /* OID list of output column type OIDs */ - List *ctecoltypmods; /* integer list of output column typmods */ - List *ctecolcollations; /* OID list of column collation OIDs */ -} CommonTableExpr; - -/* Convenience macro to get the output tlist of a CTE's query */ -#define GetCTETargetList(cte) \ - (AssertMacro(IsA((cte)->ctequery, Query)), \ - ((Query *) (cte)->ctequery)->commandType == CMD_SELECT ? \ - ((Query *) (cte)->ctequery)->targetList : \ - ((Query *) (cte)->ctequery)->returningList) - -/* - * MergeWhenClause - - * raw parser representation of a WHEN clause in a MERGE statement - * - * This is transformed into MergeAction by parse analysis - */ -typedef struct MergeWhenClause -{ - NodeTag type; - bool matched; /* true=MATCHED, false=NOT MATCHED */ - CmdType commandType; /* INSERT/UPDATE/DELETE/DO NOTHING */ - OverridingKind override; /* OVERRIDING clause */ - Node *condition; /* WHEN conditions (raw parser) */ - List *targetList; /* INSERT/UPDATE targetlist */ - /* the following members are only used in INSERT actions */ - List *values; /* VALUES to INSERT, or NULL */ -} MergeWhenClause; - -/* - * MergeAction - - * Transformed representation of a WHEN clause in a MERGE statement - */ -typedef struct MergeAction -{ - NodeTag type; - bool matched; /* true=MATCHED, false=NOT MATCHED */ - CmdType commandType; /* INSERT/UPDATE/DELETE/DO NOTHING */ - OverridingKind override; /* OVERRIDING clause */ - Node *qual; /* transformed WHEN conditions */ - List *targetList; /* the target list (of TargetEntry) */ - List *updateColnos; /* target attribute numbers of an UPDATE */ -} MergeAction; - -/* - * TriggerTransition - - * representation of transition row or table naming clause - * - * Only transition tables are initially supported in the syntax, and only for - * AFTER triggers, but other permutations are accepted by the parser so we can - * give a meaningful message from C code. - */ -typedef struct TriggerTransition -{ - NodeTag type; - char *name; - bool isNew; - bool isTable; -} TriggerTransition; - -/***************************************************************************** - * Raw Grammar Output Statements - *****************************************************************************/ - -/* - * RawStmt --- container for any one statement's raw parse tree - * - * Parse analysis converts a raw parse tree headed by a RawStmt node into - * an analyzed statement headed by a Query node. For optimizable statements, - * the conversion is complex. For utility statements, the parser usually just - * transfers the raw parse tree (sans RawStmt) into the utilityStmt field of - * the Query node, and all the useful work happens at execution time. - * - * stmt_location/stmt_len identify the portion of the source text string - * containing this raw statement (useful for multi-statement strings). - */ -typedef struct RawStmt -{ - NodeTag type; - Node *stmt; /* raw parse tree */ - int stmt_location; /* start location, or -1 if unknown */ - int stmt_len; /* length in bytes; 0 means "rest of string" */ -} RawStmt; - -/***************************************************************************** - * Optimizable Statements - *****************************************************************************/ - -/* ---------------------- - * Insert Statement - * - * The source expression is represented by SelectStmt for both the - * SELECT and VALUES cases. If selectStmt is NULL, then the query - * is INSERT ... DEFAULT VALUES. - * ---------------------- - */ -typedef struct InsertStmt -{ - NodeTag type; - RangeVar *relation; /* relation to insert into */ - List *cols; /* optional: names of the target columns */ - Node *selectStmt; /* the source SELECT/VALUES, or NULL */ - OnConflictClause *onConflictClause; /* ON CONFLICT clause */ - List *returningList; /* list of expressions to return */ - WithClause *withClause; /* WITH clause */ - OverridingKind override; /* OVERRIDING clause */ -} InsertStmt; - -/* ---------------------- - * Delete Statement - * ---------------------- - */ -typedef struct DeleteStmt -{ - NodeTag type; - RangeVar *relation; /* relation to delete from */ - List *usingClause; /* optional using clause for more tables */ - Node *whereClause; /* qualifications */ - List *returningList; /* list of expressions to return */ - WithClause *withClause; /* WITH clause */ -} DeleteStmt; - -/* ---------------------- - * Update Statement - * ---------------------- - */ -typedef struct UpdateStmt -{ - NodeTag type; - RangeVar *relation; /* relation to update */ - List *targetList; /* the target list (of ResTarget) */ - Node *whereClause; /* qualifications */ - List *fromClause; /* optional from clause for more tables */ - List *returningList; /* list of expressions to return */ - WithClause *withClause; /* WITH clause */ -} UpdateStmt; - -/* ---------------------- - * Merge Statement - * ---------------------- - */ -typedef struct MergeStmt -{ - NodeTag type; - RangeVar *relation; /* target relation to merge into */ - Node *sourceRelation; /* source relation */ - Node *joinCondition; /* join condition between source and target */ - List *mergeWhenClauses; /* list of MergeWhenClause(es) */ - WithClause *withClause; /* WITH clause */ -} MergeStmt; - -/* ---------------------- - * Select Statement - * - * A "simple" SELECT is represented in the output of gram.y by a single - * SelectStmt node; so is a VALUES construct. A query containing set - * operators (UNION, INTERSECT, EXCEPT) is represented by a tree of SelectStmt - * nodes, in which the leaf nodes are component SELECTs and the internal nodes - * represent UNION, INTERSECT, or EXCEPT operators. Using the same node - * type for both leaf and internal nodes allows gram.y to stick ORDER BY, - * LIMIT, etc, clause values into a SELECT statement without worrying - * whether it is a simple or compound SELECT. - * ---------------------- - */ -typedef enum SetOperation -{ - SETOP_NONE = 0, - SETOP_UNION, - SETOP_INTERSECT, - SETOP_EXCEPT -} SetOperation; - -typedef struct SelectStmt -{ - NodeTag type; - - /* - * These fields are used only in "leaf" SelectStmts. - */ - List *distinctClause; /* NULL, list of DISTINCT ON exprs, or - * lcons(NIL,NIL) for all (SELECT DISTINCT) */ - IntoClause *intoClause; /* target for SELECT INTO */ - List *targetList; /* the target list (of ResTarget) */ - List *fromClause; /* the FROM clause */ - Node *whereClause; /* WHERE qualification */ - List *groupClause; /* GROUP BY clauses */ - bool groupDistinct; /* Is this GROUP BY DISTINCT? */ - Node *havingClause; /* HAVING conditional-expression */ - List *windowClause; /* WINDOW window_name AS (...), ... */ - - /* - * In a "leaf" node representing a VALUES list, the above fields are all - * null, and instead this field is set. Note that the elements of the - * sublists are just expressions, without ResTarget decoration. Also note - * that a list element can be DEFAULT (represented as a SetToDefault - * node), regardless of the context of the VALUES list. It's up to parse - * analysis to reject that where not valid. - */ - List *valuesLists; /* untransformed list of expression lists */ - - /* - * These fields are used in both "leaf" SelectStmts and upper-level - * SelectStmts. - */ - List *sortClause; /* sort clause (a list of SortBy's) */ - Node *limitOffset; /* # of result tuples to skip */ - Node *limitCount; /* # of result tuples to return */ - LimitOption limitOption; /* limit type */ - List *lockingClause; /* FOR UPDATE (list of LockingClause's) */ - WithClause *withClause; /* WITH clause */ - - /* - * These fields are used only in upper-level SelectStmts. - */ - SetOperation op; /* type of set op */ - bool all; /* ALL specified? */ - struct SelectStmt *larg; /* left child */ - struct SelectStmt *rarg; /* right child */ - /* Eventually add fields for CORRESPONDING spec here */ -} SelectStmt; - - -/* ---------------------- - * Set Operation node for post-analysis query trees - * - * After parse analysis, a SELECT with set operations is represented by a - * top-level Query node containing the leaf SELECTs as subqueries in its - * range table. Its setOperations field shows the tree of set operations, - * with leaf SelectStmt nodes replaced by RangeTblRef nodes, and internal - * nodes replaced by SetOperationStmt nodes. Information about the output - * column types is added, too. (Note that the child nodes do not necessarily - * produce these types directly, but we've checked that their output types - * can be coerced to the output column type.) Also, if it's not UNION ALL, - * information about the types' sort/group semantics is provided in the form - * of a SortGroupClause list (same representation as, eg, DISTINCT). - * The resolved common column collations are provided too; but note that if - * it's not UNION ALL, it's okay for a column to not have a common collation, - * so a member of the colCollations list could be InvalidOid even though the - * column has a collatable type. - * ---------------------- - */ -typedef struct SetOperationStmt -{ - NodeTag type; - SetOperation op; /* type of set op */ - bool all; /* ALL specified? */ - Node *larg; /* left child */ - Node *rarg; /* right child */ - /* Eventually add fields for CORRESPONDING spec here */ - - /* Fields derived during parse analysis: */ - List *colTypes; /* OID list of output column type OIDs */ - List *colTypmods; /* integer list of output column typmods */ - List *colCollations; /* OID list of output column collation OIDs */ - List *groupClauses; /* a list of SortGroupClause's */ - /* groupClauses is NIL if UNION ALL, but must be set otherwise */ -} SetOperationStmt; - - -/* - * RETURN statement (inside SQL function body) - */ -typedef struct ReturnStmt -{ - NodeTag type; - Node *returnval; -} ReturnStmt; - - -/* ---------------------- - * PL/pgSQL Assignment Statement - * - * Like SelectStmt, this is transformed into a SELECT Query. - * However, the targetlist of the result looks more like an UPDATE. - * ---------------------- - */ -typedef struct PLAssignStmt -{ - NodeTag type; - - char *name; /* initial column name */ - List *indirection; /* subscripts and field names, if any */ - int nnames; /* number of names to use in ColumnRef */ - SelectStmt *val; /* the PL/pgSQL expression to assign */ - int location; /* name's token location, or -1 if unknown */ -} PLAssignStmt; - - -/***************************************************************************** - * Other Statements (no optimizations required) - * - * These are not touched by parser/analyze.c except to put them into - * the utilityStmt field of a Query. This is eventually passed to - * ProcessUtility (by-passing rewriting and planning). Some of the - * statements do need attention from parse analysis, and this is - * done by routines in parser/parse_utilcmd.c after ProcessUtility - * receives the command for execution. - * DECLARE CURSOR, EXPLAIN, and CREATE TABLE AS are special cases: - * they contain optimizable statements, which get processed normally - * by parser/analyze.c. - *****************************************************************************/ - -/* - * When a command can act on several kinds of objects with only one - * parse structure required, use these constants to designate the - * object type. Note that commands typically don't support all the types. - */ - -typedef enum ObjectType -{ - OBJECT_ACCESS_METHOD, - OBJECT_AGGREGATE, - OBJECT_AMOP, - OBJECT_AMPROC, - OBJECT_ATTRIBUTE, /* type's attribute, when distinct from column */ - OBJECT_CAST, - OBJECT_COLUMN, - OBJECT_COLLATION, - OBJECT_CONVERSION, - OBJECT_DATABASE, - OBJECT_DEFAULT, - OBJECT_DEFACL, - OBJECT_DOMAIN, - OBJECT_DOMCONSTRAINT, - OBJECT_EVENT_TRIGGER, - OBJECT_EXTENSION, - OBJECT_FDW, - OBJECT_FOREIGN_SERVER, - OBJECT_FOREIGN_TABLE, - OBJECT_FUNCTION, - OBJECT_INDEX, - OBJECT_LANGUAGE, - OBJECT_LARGEOBJECT, - OBJECT_MATVIEW, - OBJECT_OPCLASS, - OBJECT_OPERATOR, - OBJECT_OPFAMILY, - OBJECT_PARAMETER_ACL, - OBJECT_POLICY, - OBJECT_PROCEDURE, - OBJECT_PUBLICATION, - OBJECT_PUBLICATION_NAMESPACE, - OBJECT_PUBLICATION_REL, - OBJECT_ROLE, - OBJECT_ROUTINE, - OBJECT_RULE, - OBJECT_SCHEMA, - OBJECT_SEQUENCE, - OBJECT_SUBSCRIPTION, - OBJECT_STATISTIC_EXT, - OBJECT_TABCONSTRAINT, - OBJECT_TABLE, - OBJECT_TABLESPACE, - OBJECT_TRANSFORM, - OBJECT_TRIGGER, - OBJECT_TSCONFIGURATION, - OBJECT_TSDICTIONARY, - OBJECT_TSPARSER, - OBJECT_TSTEMPLATE, - OBJECT_TYPE, - OBJECT_USER_MAPPING, - OBJECT_VIEW -} ObjectType; - -/* ---------------------- - * Create Schema Statement - * - * NOTE: the schemaElts list contains raw parsetrees for component statements - * of the schema, such as CREATE TABLE, GRANT, etc. These are analyzed and - * executed after the schema itself is created. - * ---------------------- - */ -typedef struct CreateSchemaStmt -{ - NodeTag type; - char *schemaname; /* the name of the schema to create */ - RoleSpec *authrole; /* the owner of the created schema */ - List *schemaElts; /* schema components (list of parsenodes) */ - bool if_not_exists; /* just do nothing if schema already exists? */ -} CreateSchemaStmt; - -typedef enum DropBehavior -{ - DROP_RESTRICT, /* drop fails if any dependent objects */ - DROP_CASCADE /* remove dependent objects too */ -} DropBehavior; - -/* ---------------------- - * Alter Table - * ---------------------- - */ -typedef struct AlterTableStmt -{ - NodeTag type; - RangeVar *relation; /* table to work on */ - List *cmds; /* list of subcommands */ - ObjectType objtype; /* type of object */ - bool missing_ok; /* skip error if table missing */ -} AlterTableStmt; - -typedef enum AlterTableType -{ - AT_AddColumn, /* add column */ - AT_AddColumnRecurse, /* internal to commands/tablecmds.c */ - AT_AddColumnToView, /* implicitly via CREATE OR REPLACE VIEW */ - AT_ColumnDefault, /* alter column default */ - AT_CookedColumnDefault, /* add a pre-cooked column default */ - AT_DropNotNull, /* alter column drop not null */ - AT_SetNotNull, /* alter column set not null */ - AT_DropExpression, /* alter column drop expression */ - AT_CheckNotNull, /* check column is already marked not null */ - AT_SetStatistics, /* alter column set statistics */ - AT_SetOptions, /* alter column set ( options ) */ - AT_ResetOptions, /* alter column reset ( options ) */ - AT_SetStorage, /* alter column set storage */ - AT_SetCompression, /* alter column set compression */ - AT_DropColumn, /* drop column */ - AT_DropColumnRecurse, /* internal to commands/tablecmds.c */ - AT_AddIndex, /* add index */ - AT_ReAddIndex, /* internal to commands/tablecmds.c */ - AT_AddConstraint, /* add constraint */ - AT_AddConstraintRecurse, /* internal to commands/tablecmds.c */ - AT_ReAddConstraint, /* internal to commands/tablecmds.c */ - AT_ReAddDomainConstraint, /* internal to commands/tablecmds.c */ - AT_AlterConstraint, /* alter constraint */ - AT_ValidateConstraint, /* validate constraint */ - AT_ValidateConstraintRecurse, /* internal to commands/tablecmds.c */ - AT_AddIndexConstraint, /* add constraint using existing index */ - AT_DropConstraint, /* drop constraint */ - AT_DropConstraintRecurse, /* internal to commands/tablecmds.c */ - AT_ReAddComment, /* internal to commands/tablecmds.c */ - AT_AlterColumnType, /* alter column type */ - AT_AlterColumnGenericOptions, /* alter column OPTIONS (...) */ - AT_ChangeOwner, /* change owner */ - AT_ClusterOn, /* CLUSTER ON */ - AT_DropCluster, /* SET WITHOUT CLUSTER */ - AT_SetLogged, /* SET LOGGED */ - AT_SetUnLogged, /* SET UNLOGGED */ - AT_DropOids, /* SET WITHOUT OIDS */ - AT_SetAccessMethod, /* SET ACCESS METHOD */ - AT_SetTableSpace, /* SET TABLESPACE */ - AT_SetRelOptions, /* SET (...) -- AM specific parameters */ - AT_ResetRelOptions, /* RESET (...) -- AM specific parameters */ - AT_ReplaceRelOptions, /* replace reloption list in its entirety */ - AT_EnableTrig, /* ENABLE TRIGGER name */ - AT_EnableAlwaysTrig, /* ENABLE ALWAYS TRIGGER name */ - AT_EnableReplicaTrig, /* ENABLE REPLICA TRIGGER name */ - AT_DisableTrig, /* DISABLE TRIGGER name */ - AT_EnableTrigAll, /* ENABLE TRIGGER ALL */ - AT_DisableTrigAll, /* DISABLE TRIGGER ALL */ - AT_EnableTrigUser, /* ENABLE TRIGGER USER */ - AT_DisableTrigUser, /* DISABLE TRIGGER USER */ - AT_EnableRule, /* ENABLE RULE name */ - AT_EnableAlwaysRule, /* ENABLE ALWAYS RULE name */ - AT_EnableReplicaRule, /* ENABLE REPLICA RULE name */ - AT_DisableRule, /* DISABLE RULE name */ - AT_AddInherit, /* INHERIT parent */ - AT_DropInherit, /* NO INHERIT parent */ - AT_AddOf, /* OF */ - AT_DropOf, /* NOT OF */ - AT_ReplicaIdentity, /* REPLICA IDENTITY */ - AT_EnableRowSecurity, /* ENABLE ROW SECURITY */ - AT_DisableRowSecurity, /* DISABLE ROW SECURITY */ - AT_ForceRowSecurity, /* FORCE ROW SECURITY */ - AT_NoForceRowSecurity, /* NO FORCE ROW SECURITY */ - AT_GenericOptions, /* OPTIONS (...) */ - AT_AttachPartition, /* ATTACH PARTITION */ - AT_DetachPartition, /* DETACH PARTITION */ - AT_DetachPartitionFinalize, /* DETACH PARTITION FINALIZE */ - AT_AddIdentity, /* ADD IDENTITY */ - AT_SetIdentity, /* SET identity column options */ - AT_DropIdentity, /* DROP IDENTITY */ - AT_ReAddStatistics /* internal to commands/tablecmds.c */ -} AlterTableType; - -typedef struct ReplicaIdentityStmt -{ - NodeTag type; - char identity_type; - char *name; -} ReplicaIdentityStmt; - -typedef struct AlterTableCmd /* one subcommand of an ALTER TABLE */ -{ - NodeTag type; - AlterTableType subtype; /* Type of table alteration to apply */ - char *name; /* column, constraint, or trigger to act on, - * or tablespace */ - int16 num; /* attribute number for columns referenced by - * number */ - RoleSpec *newowner; - Node *def; /* definition of new column, index, - * constraint, or parent table */ - DropBehavior behavior; /* RESTRICT or CASCADE for DROP cases */ - bool missing_ok; /* skip error if missing? */ - bool recurse; /* exec-time recursion */ -} AlterTableCmd; - - -/* ---------------------- - * Alter Collation - * ---------------------- - */ -typedef struct AlterCollationStmt -{ - NodeTag type; - List *collname; -} AlterCollationStmt; - - -/* ---------------------- - * Alter Domain - * - * The fields are used in different ways by the different variants of - * this command. - * ---------------------- - */ -typedef struct AlterDomainStmt -{ - NodeTag type; - char subtype; /*------------ - * T = alter column default - * N = alter column drop not null - * O = alter column set not null - * C = add constraint - * X = drop constraint - *------------ - */ - List *typeName; /* domain to work on */ - char *name; /* column or constraint name to act on */ - Node *def; /* definition of default or constraint */ - DropBehavior behavior; /* RESTRICT or CASCADE for DROP cases */ - bool missing_ok; /* skip error if missing? */ -} AlterDomainStmt; - - -/* ---------------------- - * Grant|Revoke Statement - * ---------------------- - */ -typedef enum GrantTargetType -{ - ACL_TARGET_OBJECT, /* grant on specific named object(s) */ - ACL_TARGET_ALL_IN_SCHEMA, /* grant on all objects in given schema(s) */ - ACL_TARGET_DEFAULTS /* ALTER DEFAULT PRIVILEGES */ -} GrantTargetType; - -typedef struct GrantStmt -{ - NodeTag type; - bool is_grant; /* true = GRANT, false = REVOKE */ - GrantTargetType targtype; /* type of the grant target */ - ObjectType objtype; /* kind of object being operated on */ - List *objects; /* list of RangeVar nodes, ObjectWithArgs - * nodes, or plain names (as String values) */ - List *privileges; /* list of AccessPriv nodes */ - /* privileges == NIL denotes ALL PRIVILEGES */ - List *grantees; /* list of RoleSpec nodes */ - bool grant_option; /* grant or revoke grant option */ - RoleSpec *grantor; - DropBehavior behavior; /* drop behavior (for REVOKE) */ -} GrantStmt; - -/* - * ObjectWithArgs represents a function/procedure/operator name plus parameter - * identification. - * - * objargs includes only the types of the input parameters of the object. - * In some contexts, that will be all we have, and it's enough to look up - * objects according to the traditional Postgres rules (i.e., when only input - * arguments matter). - * - * objfuncargs, if not NIL, carries the full specification of the parameter - * list, including parameter mode annotations. - * - * Some grammar productions can set args_unspecified = true instead of - * providing parameter info. In this case, lookup will succeed only if - * the object name is unique. Note that otherwise, NIL parameter lists - * mean zero arguments. - */ -typedef struct ObjectWithArgs -{ - NodeTag type; - List *objname; /* qualified name of function/operator */ - List *objargs; /* list of Typename nodes (input args only) */ - List *objfuncargs; /* list of FunctionParameter nodes */ - bool args_unspecified; /* argument list was omitted? */ -} ObjectWithArgs; - -/* - * An access privilege, with optional list of column names - * priv_name == NULL denotes ALL PRIVILEGES (only used with a column list) - * cols == NIL denotes "all columns" - * Note that simple "ALL PRIVILEGES" is represented as a NIL list, not - * an AccessPriv with both fields null. - */ -typedef struct AccessPriv -{ - NodeTag type; - char *priv_name; /* string name of privilege */ - List *cols; /* list of String */ -} AccessPriv; - -/* ---------------------- - * Grant/Revoke Role Statement - * - * Note: because of the parsing ambiguity with the GRANT - * statement, granted_roles is a list of AccessPriv; the execution code - * should complain if any column lists appear. grantee_roles is a list - * of role names, as String values. - * ---------------------- - */ -typedef struct GrantRoleStmt -{ - NodeTag type; - List *granted_roles; /* list of roles to be granted/revoked */ - List *grantee_roles; /* list of member roles to add/delete */ - bool is_grant; /* true = GRANT, false = REVOKE */ - bool admin_opt; /* with admin option */ - RoleSpec *grantor; /* set grantor to other than current role */ - DropBehavior behavior; /* drop behavior (for REVOKE) */ -} GrantRoleStmt; - -/* ---------------------- - * Alter Default Privileges Statement - * ---------------------- - */ -typedef struct AlterDefaultPrivilegesStmt -{ - NodeTag type; - List *options; /* list of DefElem */ - GrantStmt *action; /* GRANT/REVOKE action (with objects=NIL) */ -} AlterDefaultPrivilegesStmt; - -/* ---------------------- - * Copy Statement - * - * We support "COPY relation FROM file", "COPY relation TO file", and - * "COPY (query) TO file". In any given CopyStmt, exactly one of "relation" - * and "query" must be non-NULL. - * ---------------------- - */ -typedef struct CopyStmt -{ - NodeTag type; - RangeVar *relation; /* the relation to copy */ - Node *query; /* the query (SELECT or DML statement with - * RETURNING) to copy, as a raw parse tree */ - List *attlist; /* List of column names (as Strings), or NIL - * for all columns */ - bool is_from; /* TO or FROM */ - bool is_program; /* is 'filename' a program to popen? */ - char *filename; /* filename, or NULL for STDIN/STDOUT */ - List *options; /* List of DefElem nodes */ - Node *whereClause; /* WHERE condition (or NULL) */ -} CopyStmt; - -/* ---------------------- - * SET Statement (includes RESET) - * - * "SET var TO DEFAULT" and "RESET var" are semantically equivalent, but we - * preserve the distinction in VariableSetKind for CreateCommandTag(). - * ---------------------- - */ -typedef enum VariableSetKind -{ - VAR_SET_VALUE, /* SET var = value */ - VAR_SET_DEFAULT, /* SET var TO DEFAULT */ - VAR_SET_CURRENT, /* SET var FROM CURRENT */ - VAR_SET_MULTI, /* special case for SET TRANSACTION ... */ - VAR_RESET, /* RESET var */ - VAR_RESET_ALL /* RESET ALL */ -} VariableSetKind; - -typedef struct VariableSetStmt -{ - NodeTag type; - VariableSetKind kind; - char *name; /* variable to be set */ - List *args; /* List of A_Const nodes */ - bool is_local; /* SET LOCAL? */ -} VariableSetStmt; - -/* ---------------------- - * Show Statement - * ---------------------- - */ -typedef struct VariableShowStmt -{ - NodeTag type; - char *name; -} VariableShowStmt; - -/* ---------------------- - * Create Table Statement - * - * NOTE: in the raw gram.y output, ColumnDef and Constraint nodes are - * intermixed in tableElts, and constraints is NIL. After parse analysis, - * tableElts contains just ColumnDefs, and constraints contains just - * Constraint nodes (in fact, only CONSTR_CHECK nodes, in the present - * implementation). - * ---------------------- - */ - -typedef struct CreateStmt -{ - NodeTag type; - RangeVar *relation; /* relation to create */ - List *tableElts; /* column definitions (list of ColumnDef) */ - List *inhRelations; /* relations to inherit from (list of - * RangeVar) */ - PartitionBoundSpec *partbound; /* FOR VALUES clause */ - PartitionSpec *partspec; /* PARTITION BY clause */ - TypeName *ofTypename; /* OF typename */ - List *constraints; /* constraints (list of Constraint nodes) */ - List *options; /* options from WITH clause */ - OnCommitAction oncommit; /* what do we do at COMMIT? */ - char *tablespacename; /* table space to use, or NULL */ - char *accessMethod; /* table access method */ - bool if_not_exists; /* just do nothing if it already exists? */ -} CreateStmt; - -/* ---------- - * Definitions for constraints in CreateStmt - * - * Note that column defaults are treated as a type of constraint, - * even though that's a bit odd semantically. - * - * For constraints that use expressions (CONSTR_CHECK, CONSTR_DEFAULT) - * we may have the expression in either "raw" form (an untransformed - * parse tree) or "cooked" form (the nodeToString representation of - * an executable expression tree), depending on how this Constraint - * node was created (by parsing, or by inheritance from an existing - * relation). We should never have both in the same node! - * - * FKCONSTR_ACTION_xxx values are stored into pg_constraint.confupdtype - * and pg_constraint.confdeltype columns; FKCONSTR_MATCH_xxx values are - * stored into pg_constraint.confmatchtype. Changing the code values may - * require an initdb! - * - * If skip_validation is true then we skip checking that the existing rows - * in the table satisfy the constraint, and just install the catalog entries - * for the constraint. A new FK constraint is marked as valid iff - * initially_valid is true. (Usually skip_validation and initially_valid - * are inverses, but we can set both true if the table is known empty.) - * - * Constraint attributes (DEFERRABLE etc) are initially represented as - * separate Constraint nodes for simplicity of parsing. parse_utilcmd.c makes - * a pass through the constraints list to insert the info into the appropriate - * Constraint node. - * ---------- - */ - -typedef enum ConstrType /* types of constraints */ -{ - CONSTR_NULL, /* not standard SQL, but a lot of people - * expect it */ - CONSTR_NOTNULL, - CONSTR_DEFAULT, - CONSTR_IDENTITY, - CONSTR_GENERATED, - CONSTR_CHECK, - CONSTR_PRIMARY, - CONSTR_UNIQUE, - CONSTR_EXCLUSION, - CONSTR_FOREIGN, - CONSTR_ATTR_DEFERRABLE, /* attributes for previous constraint node */ - CONSTR_ATTR_NOT_DEFERRABLE, - CONSTR_ATTR_DEFERRED, - CONSTR_ATTR_IMMEDIATE -} ConstrType; - -/* Foreign key action codes */ -#define FKCONSTR_ACTION_NOACTION 'a' -#define FKCONSTR_ACTION_RESTRICT 'r' -#define FKCONSTR_ACTION_CASCADE 'c' -#define FKCONSTR_ACTION_SETNULL 'n' -#define FKCONSTR_ACTION_SETDEFAULT 'd' - -/* Foreign key matchtype codes */ -#define FKCONSTR_MATCH_FULL 'f' -#define FKCONSTR_MATCH_PARTIAL 'p' -#define FKCONSTR_MATCH_SIMPLE 's' - -typedef struct Constraint -{ - NodeTag type; - ConstrType contype; /* see above */ - - /* Fields used for most/all constraint types: */ - char *conname; /* Constraint name, or NULL if unnamed */ - bool deferrable; /* DEFERRABLE? */ - bool initdeferred; /* INITIALLY DEFERRED? */ - int location; /* token location, or -1 if unknown */ - - /* Fields used for constraints with expressions (CHECK and DEFAULT): */ - bool is_no_inherit; /* is constraint non-inheritable? */ - Node *raw_expr; /* expr, as untransformed parse tree */ - char *cooked_expr; /* expr, as nodeToString representation */ - char generated_when; /* ALWAYS or BY DEFAULT */ - - /* Fields used for unique constraints (UNIQUE and PRIMARY KEY): */ - bool nulls_not_distinct; /* null treatment for UNIQUE constraints */ - List *keys; /* String nodes naming referenced key - * column(s) */ - List *including; /* String nodes naming referenced nonkey - * column(s) */ - - /* Fields used for EXCLUSION constraints: */ - List *exclusions; /* list of (IndexElem, operator name) pairs */ - - /* Fields used for index constraints (UNIQUE, PRIMARY KEY, EXCLUSION): */ - List *options; /* options from WITH clause */ - char *indexname; /* existing index to use; otherwise NULL */ - char *indexspace; /* index tablespace; NULL for default */ - bool reset_default_tblspc; /* reset default_tablespace prior to - * creating the index */ - /* These could be, but currently are not, used for UNIQUE/PKEY: */ - char *access_method; /* index access method; NULL for default */ - Node *where_clause; /* partial index predicate */ - - /* Fields used for FOREIGN KEY constraints: */ - RangeVar *pktable; /* Primary key table */ - List *fk_attrs; /* Attributes of foreign key */ - List *pk_attrs; /* Corresponding attrs in PK table */ - char fk_matchtype; /* FULL, PARTIAL, SIMPLE */ - char fk_upd_action; /* ON UPDATE action */ - char fk_del_action; /* ON DELETE action */ - List *fk_del_set_cols; /* ON DELETE SET NULL/DEFAULT (col1, col2) */ - List *old_conpfeqop; /* pg_constraint.conpfeqop of my former self */ - Oid old_pktable_oid; /* pg_constraint.confrelid of my former - * self */ - - /* Fields used for constraints that allow a NOT VALID specification */ - bool skip_validation; /* skip validation of existing rows? */ - bool initially_valid; /* mark the new constraint as valid? */ -} Constraint; - -/* ---------------------- - * Create/Drop Table Space Statements - * ---------------------- - */ - -typedef struct CreateTableSpaceStmt -{ - NodeTag type; - char *tablespacename; - RoleSpec *owner; - char *location; - List *options; -} CreateTableSpaceStmt; - -typedef struct DropTableSpaceStmt -{ - NodeTag type; - char *tablespacename; - bool missing_ok; /* skip error if missing? */ -} DropTableSpaceStmt; - -typedef struct AlterTableSpaceOptionsStmt -{ - NodeTag type; - char *tablespacename; - List *options; - bool isReset; -} AlterTableSpaceOptionsStmt; - -typedef struct AlterTableMoveAllStmt -{ - NodeTag type; - char *orig_tablespacename; - ObjectType objtype; /* Object type to move */ - List *roles; /* List of roles to move objects of */ - char *new_tablespacename; - bool nowait; -} AlterTableMoveAllStmt; - -/* ---------------------- - * Create/Alter Extension Statements - * ---------------------- - */ - -typedef struct CreateExtensionStmt -{ - NodeTag type; - char *extname; - bool if_not_exists; /* just do nothing if it already exists? */ - List *options; /* List of DefElem nodes */ -} CreateExtensionStmt; - -/* Only used for ALTER EXTENSION UPDATE; later might need an action field */ -typedef struct AlterExtensionStmt -{ - NodeTag type; - char *extname; - List *options; /* List of DefElem nodes */ -} AlterExtensionStmt; - -typedef struct AlterExtensionContentsStmt -{ - NodeTag type; - char *extname; /* Extension's name */ - int action; /* +1 = add object, -1 = drop object */ - ObjectType objtype; /* Object's type */ - Node *object; /* Qualified name of the object */ -} AlterExtensionContentsStmt; - -/* ---------------------- - * Create/Alter FOREIGN DATA WRAPPER Statements - * ---------------------- - */ - -typedef struct CreateFdwStmt -{ - NodeTag type; - char *fdwname; /* foreign-data wrapper name */ - List *func_options; /* HANDLER/VALIDATOR options */ - List *options; /* generic options to FDW */ -} CreateFdwStmt; - -typedef struct AlterFdwStmt -{ - NodeTag type; - char *fdwname; /* foreign-data wrapper name */ - List *func_options; /* HANDLER/VALIDATOR options */ - List *options; /* generic options to FDW */ -} AlterFdwStmt; - -/* ---------------------- - * Create/Alter FOREIGN SERVER Statements - * ---------------------- - */ - -typedef struct CreateForeignServerStmt -{ - NodeTag type; - char *servername; /* server name */ - char *servertype; /* optional server type */ - char *version; /* optional server version */ - char *fdwname; /* FDW name */ - bool if_not_exists; /* just do nothing if it already exists? */ - List *options; /* generic options to server */ -} CreateForeignServerStmt; - -typedef struct AlterForeignServerStmt -{ - NodeTag type; - char *servername; /* server name */ - char *version; /* optional server version */ - List *options; /* generic options to server */ - bool has_version; /* version specified */ -} AlterForeignServerStmt; - -/* ---------------------- - * Create FOREIGN TABLE Statement - * ---------------------- - */ - -typedef struct CreateForeignTableStmt -{ - CreateStmt base; - char *servername; - List *options; -} CreateForeignTableStmt; - -/* ---------------------- - * Create/Drop USER MAPPING Statements - * ---------------------- - */ - -typedef struct CreateUserMappingStmt -{ - NodeTag type; - RoleSpec *user; /* user role */ - char *servername; /* server name */ - bool if_not_exists; /* just do nothing if it already exists? */ - List *options; /* generic options to server */ -} CreateUserMappingStmt; - -typedef struct AlterUserMappingStmt -{ - NodeTag type; - RoleSpec *user; /* user role */ - char *servername; /* server name */ - List *options; /* generic options to server */ -} AlterUserMappingStmt; - -typedef struct DropUserMappingStmt -{ - NodeTag type; - RoleSpec *user; /* user role */ - char *servername; /* server name */ - bool missing_ok; /* ignore missing mappings */ -} DropUserMappingStmt; - -/* ---------------------- - * Import Foreign Schema Statement - * ---------------------- - */ - -typedef enum ImportForeignSchemaType -{ - FDW_IMPORT_SCHEMA_ALL, /* all relations wanted */ - FDW_IMPORT_SCHEMA_LIMIT_TO, /* include only listed tables in import */ - FDW_IMPORT_SCHEMA_EXCEPT /* exclude listed tables from import */ -} ImportForeignSchemaType; - -typedef struct ImportForeignSchemaStmt -{ - NodeTag type; - char *server_name; /* FDW server name */ - char *remote_schema; /* remote schema name to query */ - char *local_schema; /* local schema to create objects in */ - ImportForeignSchemaType list_type; /* type of table list */ - List *table_list; /* List of RangeVar */ - List *options; /* list of options to pass to FDW */ -} ImportForeignSchemaStmt; - -/*---------------------- - * Create POLICY Statement - *---------------------- - */ -typedef struct CreatePolicyStmt -{ - NodeTag type; - char *policy_name; /* Policy's name */ - RangeVar *table; /* the table name the policy applies to */ - char *cmd_name; /* the command name the policy applies to */ - bool permissive; /* restrictive or permissive policy */ - List *roles; /* the roles associated with the policy */ - Node *qual; /* the policy's condition */ - Node *with_check; /* the policy's WITH CHECK condition. */ -} CreatePolicyStmt; - -/*---------------------- - * Alter POLICY Statement - *---------------------- - */ -typedef struct AlterPolicyStmt -{ - NodeTag type; - char *policy_name; /* Policy's name */ - RangeVar *table; /* the table name the policy applies to */ - List *roles; /* the roles associated with the policy */ - Node *qual; /* the policy's condition */ - Node *with_check; /* the policy's WITH CHECK condition. */ -} AlterPolicyStmt; - -/*---------------------- - * Create ACCESS METHOD Statement - *---------------------- - */ -typedef struct CreateAmStmt -{ - NodeTag type; - char *amname; /* access method name */ - List *handler_name; /* handler function name */ - char amtype; /* type of access method */ -} CreateAmStmt; - -/* ---------------------- - * Create TRIGGER Statement - * ---------------------- - */ -typedef struct CreateTrigStmt -{ - NodeTag type; - bool replace; /* replace trigger if already exists */ - bool isconstraint; /* This is a constraint trigger */ - char *trigname; /* TRIGGER's name */ - RangeVar *relation; /* relation trigger is on */ - List *funcname; /* qual. name of function to call */ - List *args; /* list of String or NIL */ - bool row; /* ROW/STATEMENT */ - /* timing uses the TRIGGER_TYPE bits defined in catalog/pg_trigger.h */ - int16 timing; /* BEFORE, AFTER, or INSTEAD */ - /* events uses the TRIGGER_TYPE bits defined in catalog/pg_trigger.h */ - int16 events; /* "OR" of INSERT/UPDATE/DELETE/TRUNCATE */ - List *columns; /* column names, or NIL for all columns */ - Node *whenClause; /* qual expression, or NULL if none */ - /* explicitly named transition data */ - List *transitionRels; /* TriggerTransition nodes, or NIL if none */ - /* The remaining fields are only used for constraint triggers */ - bool deferrable; /* [NOT] DEFERRABLE */ - bool initdeferred; /* INITIALLY {DEFERRED|IMMEDIATE} */ - RangeVar *constrrel; /* opposite relation, if RI trigger */ -} CreateTrigStmt; - -/* ---------------------- - * Create EVENT TRIGGER Statement - * ---------------------- - */ -typedef struct CreateEventTrigStmt -{ - NodeTag type; - char *trigname; /* TRIGGER's name */ - char *eventname; /* event's identifier */ - List *whenclause; /* list of DefElems indicating filtering */ - List *funcname; /* qual. name of function to call */ -} CreateEventTrigStmt; - -/* ---------------------- - * Alter EVENT TRIGGER Statement - * ---------------------- - */ -typedef struct AlterEventTrigStmt -{ - NodeTag type; - char *trigname; /* TRIGGER's name */ - char tgenabled; /* trigger's firing configuration WRT - * session_replication_role */ -} AlterEventTrigStmt; - -/* ---------------------- - * Create LANGUAGE Statements - * ---------------------- - */ -typedef struct CreatePLangStmt -{ - NodeTag type; - bool replace; /* T => replace if already exists */ - char *plname; /* PL name */ - List *plhandler; /* PL call handler function (qual. name) */ - List *plinline; /* optional inline function (qual. name) */ - List *plvalidator; /* optional validator function (qual. name) */ - bool pltrusted; /* PL is trusted */ -} CreatePLangStmt; - -/* ---------------------- - * Create/Alter/Drop Role Statements - * - * Note: these node types are also used for the backwards-compatible - * Create/Alter/Drop User/Group statements. In the ALTER and DROP cases - * there's really no need to distinguish what the original spelling was, - * but for CREATE we mark the type because the defaults vary. - * ---------------------- - */ -typedef enum RoleStmtType -{ - ROLESTMT_ROLE, - ROLESTMT_USER, - ROLESTMT_GROUP -} RoleStmtType; - -typedef struct CreateRoleStmt -{ - NodeTag type; - RoleStmtType stmt_type; /* ROLE/USER/GROUP */ - char *role; /* role name */ - List *options; /* List of DefElem nodes */ -} CreateRoleStmt; - -typedef struct AlterRoleStmt -{ - NodeTag type; - RoleSpec *role; /* role */ - List *options; /* List of DefElem nodes */ - int action; /* +1 = add members, -1 = drop members */ -} AlterRoleStmt; - -typedef struct AlterRoleSetStmt -{ - NodeTag type; - RoleSpec *role; /* role */ - char *database; /* database name, or NULL */ - VariableSetStmt *setstmt; /* SET or RESET subcommand */ -} AlterRoleSetStmt; - -typedef struct DropRoleStmt -{ - NodeTag type; - List *roles; /* List of roles to remove */ - bool missing_ok; /* skip error if a role is missing? */ -} DropRoleStmt; - -/* ---------------------- - * {Create|Alter} SEQUENCE Statement - * ---------------------- - */ - -typedef struct CreateSeqStmt -{ - NodeTag type; - RangeVar *sequence; /* the sequence to create */ - List *options; - Oid ownerId; /* ID of owner, or InvalidOid for default */ - bool for_identity; - bool if_not_exists; /* just do nothing if it already exists? */ -} CreateSeqStmt; - -typedef struct AlterSeqStmt -{ - NodeTag type; - RangeVar *sequence; /* the sequence to alter */ - List *options; - bool for_identity; - bool missing_ok; /* skip error if a role is missing? */ -} AlterSeqStmt; - -/* ---------------------- - * Create {Aggregate|Operator|Type} Statement - * ---------------------- - */ -typedef struct DefineStmt -{ - NodeTag type; - ObjectType kind; /* aggregate, operator, type */ - bool oldstyle; /* hack to signal old CREATE AGG syntax */ - List *defnames; /* qualified name (list of String) */ - List *args; /* a list of TypeName (if needed) */ - List *definition; /* a list of DefElem */ - bool if_not_exists; /* just do nothing if it already exists? */ - bool replace; /* replace if already exists? */ -} DefineStmt; - -/* ---------------------- - * Create Domain Statement - * ---------------------- - */ -typedef struct CreateDomainStmt -{ - NodeTag type; - List *domainname; /* qualified name (list of String) */ - TypeName *typeName; /* the base type */ - CollateClause *collClause; /* untransformed COLLATE spec, if any */ - List *constraints; /* constraints (list of Constraint nodes) */ -} CreateDomainStmt; - -/* ---------------------- - * Create Operator Class Statement - * ---------------------- - */ -typedef struct CreateOpClassStmt -{ - NodeTag type; - List *opclassname; /* qualified name (list of String) */ - List *opfamilyname; /* qualified name (ditto); NIL if omitted */ - char *amname; /* name of index AM opclass is for */ - TypeName *datatype; /* datatype of indexed column */ - List *items; /* List of CreateOpClassItem nodes */ - bool isDefault; /* Should be marked as default for type? */ -} CreateOpClassStmt; - -#define OPCLASS_ITEM_OPERATOR 1 -#define OPCLASS_ITEM_FUNCTION 2 -#define OPCLASS_ITEM_STORAGETYPE 3 - -typedef struct CreateOpClassItem -{ - NodeTag type; - int itemtype; /* see codes above */ - ObjectWithArgs *name; /* operator or function name and args */ - int number; /* strategy num or support proc num */ - List *order_family; /* only used for ordering operators */ - List *class_args; /* amproclefttype/amprocrighttype or - * amoplefttype/amoprighttype */ - /* fields used for a storagetype item: */ - TypeName *storedtype; /* datatype stored in index */ -} CreateOpClassItem; - -/* ---------------------- - * Create Operator Family Statement - * ---------------------- - */ -typedef struct CreateOpFamilyStmt -{ - NodeTag type; - List *opfamilyname; /* qualified name (list of String) */ - char *amname; /* name of index AM opfamily is for */ -} CreateOpFamilyStmt; - -/* ---------------------- - * Alter Operator Family Statement - * ---------------------- - */ -typedef struct AlterOpFamilyStmt -{ - NodeTag type; - List *opfamilyname; /* qualified name (list of String) */ - char *amname; /* name of index AM opfamily is for */ - bool isDrop; /* ADD or DROP the items? */ - List *items; /* List of CreateOpClassItem nodes */ -} AlterOpFamilyStmt; - -/* ---------------------- - * Drop Table|Sequence|View|Index|Type|Domain|Conversion|Schema Statement - * ---------------------- - */ - -typedef struct DropStmt -{ - NodeTag type; - List *objects; /* list of names */ - ObjectType removeType; /* object type */ - DropBehavior behavior; /* RESTRICT or CASCADE behavior */ - bool missing_ok; /* skip error if object is missing? */ - bool concurrent; /* drop index concurrently? */ -} DropStmt; - -/* ---------------------- - * Truncate Table Statement - * ---------------------- - */ -typedef struct TruncateStmt -{ - NodeTag type; - List *relations; /* relations (RangeVars) to be truncated */ - bool restart_seqs; /* restart owned sequences? */ - DropBehavior behavior; /* RESTRICT or CASCADE behavior */ -} TruncateStmt; - -/* ---------------------- - * Comment On Statement - * ---------------------- - */ -typedef struct CommentStmt -{ - NodeTag type; - ObjectType objtype; /* Object's type */ - Node *object; /* Qualified name of the object */ - char *comment; /* Comment to insert, or NULL to remove */ -} CommentStmt; - -/* ---------------------- - * SECURITY LABEL Statement - * ---------------------- - */ -typedef struct SecLabelStmt -{ - NodeTag type; - ObjectType objtype; /* Object's type */ - Node *object; /* Qualified name of the object */ - char *provider; /* Label provider (or NULL) */ - char *label; /* New security label to be assigned */ -} SecLabelStmt; - -/* ---------------------- - * Declare Cursor Statement - * - * The "query" field is initially a raw parse tree, and is converted to a - * Query node during parse analysis. Note that rewriting and planning - * of the query are always postponed until execution. - * ---------------------- - */ -#define CURSOR_OPT_BINARY 0x0001 /* BINARY */ -#define CURSOR_OPT_SCROLL 0x0002 /* SCROLL explicitly given */ -#define CURSOR_OPT_NO_SCROLL 0x0004 /* NO SCROLL explicitly given */ -#define CURSOR_OPT_INSENSITIVE 0x0008 /* INSENSITIVE */ -#define CURSOR_OPT_ASENSITIVE 0x0010 /* ASENSITIVE */ -#define CURSOR_OPT_HOLD 0x0020 /* WITH HOLD */ -/* these planner-control flags do not correspond to any SQL grammar: */ -#define CURSOR_OPT_FAST_PLAN 0x0100 /* prefer fast-start plan */ -#define CURSOR_OPT_GENERIC_PLAN 0x0200 /* force use of generic plan */ -#define CURSOR_OPT_CUSTOM_PLAN 0x0400 /* force use of custom plan */ -#define CURSOR_OPT_PARALLEL_OK 0x0800 /* parallel mode OK */ - -typedef struct DeclareCursorStmt -{ - NodeTag type; - char *portalname; /* name of the portal (cursor) */ - int options; /* bitmask of options (see above) */ - Node *query; /* the query (see comments above) */ -} DeclareCursorStmt; - -/* ---------------------- - * Close Portal Statement - * ---------------------- - */ -typedef struct ClosePortalStmt -{ - NodeTag type; - char *portalname; /* name of the portal (cursor) */ - /* NULL means CLOSE ALL */ -} ClosePortalStmt; - -/* ---------------------- - * Fetch Statement (also Move) - * ---------------------- - */ -typedef enum FetchDirection -{ - /* for these, howMany is how many rows to fetch; FETCH_ALL means ALL */ - FETCH_FORWARD, - FETCH_BACKWARD, - /* for these, howMany indicates a position; only one row is fetched */ - FETCH_ABSOLUTE, - FETCH_RELATIVE -} FetchDirection; - -#define FETCH_ALL LONG_MAX - -typedef struct FetchStmt -{ - NodeTag type; - FetchDirection direction; /* see above */ - long howMany; /* number of rows, or position argument */ - char *portalname; /* name of portal (cursor) */ - bool ismove; /* true if MOVE */ -} FetchStmt; - -/* ---------------------- - * Create Index Statement - * - * This represents creation of an index and/or an associated constraint. - * If isconstraint is true, we should create a pg_constraint entry along - * with the index. But if indexOid isn't InvalidOid, we are not creating an - * index, just a UNIQUE/PKEY constraint using an existing index. isconstraint - * must always be true in this case, and the fields describing the index - * properties are empty. - * ---------------------- - */ -typedef struct IndexStmt -{ - NodeTag type; - char *idxname; /* name of new index, or NULL for default */ - RangeVar *relation; /* relation to build index on */ - char *accessMethod; /* name of access method (eg. btree) */ - char *tableSpace; /* tablespace, or NULL for default */ - List *indexParams; /* columns to index: a list of IndexElem */ - List *indexIncludingParams; /* additional columns to index: a list - * of IndexElem */ - List *options; /* WITH clause options: a list of DefElem */ - Node *whereClause; /* qualification (partial-index predicate) */ - List *excludeOpNames; /* exclusion operator names, or NIL if none */ - char *idxcomment; /* comment to apply to index, or NULL */ - Oid indexOid; /* OID of an existing index, if any */ - Oid oldNode; /* relfilenode of existing storage, if any */ - SubTransactionId oldCreateSubid; /* rd_createSubid of oldNode */ - SubTransactionId oldFirstRelfilenodeSubid; /* rd_firstRelfilenodeSubid of - * oldNode */ - bool unique; /* is index unique? */ - bool nulls_not_distinct; /* null treatment for UNIQUE constraints */ - bool primary; /* is index a primary key? */ - bool isconstraint; /* is it for a pkey/unique constraint? */ - bool deferrable; /* is the constraint DEFERRABLE? */ - bool initdeferred; /* is the constraint INITIALLY DEFERRED? */ - bool transformed; /* true when transformIndexStmt is finished */ - bool concurrent; /* should this be a concurrent index build? */ - bool if_not_exists; /* just do nothing if index already exists? */ - bool reset_default_tblspc; /* reset default_tablespace prior to - * executing */ -} IndexStmt; - -/* ---------------------- - * Create Statistics Statement - * ---------------------- - */ -typedef struct CreateStatsStmt -{ - NodeTag type; - List *defnames; /* qualified name (list of String) */ - List *stat_types; /* stat types (list of String) */ - List *exprs; /* expressions to build statistics on */ - List *relations; /* rels to build stats on (list of RangeVar) */ - char *stxcomment; /* comment to apply to stats, or NULL */ - bool transformed; /* true when transformStatsStmt is finished */ - bool if_not_exists; /* do nothing if stats name already exists */ -} CreateStatsStmt; - -/* - * StatsElem - statistics parameters (used in CREATE STATISTICS) - * - * For a plain attribute, 'name' is the name of the referenced table column - * and 'expr' is NULL. For an expression, 'name' is NULL and 'expr' is the - * expression tree. - */ -typedef struct StatsElem -{ - NodeTag type; - char *name; /* name of attribute to index, or NULL */ - Node *expr; /* expression to index, or NULL */ -} StatsElem; - - -/* ---------------------- - * Alter Statistics Statement - * ---------------------- - */ -typedef struct AlterStatsStmt -{ - NodeTag type; - List *defnames; /* qualified name (list of String) */ - int stxstattarget; /* statistics target */ - bool missing_ok; /* skip error if statistics object is missing */ -} AlterStatsStmt; - -/* ---------------------- - * Create Function Statement - * ---------------------- - */ -typedef struct CreateFunctionStmt -{ - NodeTag type; - bool is_procedure; /* it's really CREATE PROCEDURE */ - bool replace; /* T => replace if already exists */ - List *funcname; /* qualified name of function to create */ - List *parameters; /* a list of FunctionParameter */ - TypeName *returnType; /* the return type */ - List *options; /* a list of DefElem */ - Node *sql_body; -} CreateFunctionStmt; - -typedef enum FunctionParameterMode -{ - /* the assigned enum values appear in pg_proc, don't change 'em! */ - FUNC_PARAM_IN = 'i', /* input only */ - FUNC_PARAM_OUT = 'o', /* output only */ - FUNC_PARAM_INOUT = 'b', /* both */ - FUNC_PARAM_VARIADIC = 'v', /* variadic (always input) */ - FUNC_PARAM_TABLE = 't', /* table function output column */ - /* this is not used in pg_proc: */ - FUNC_PARAM_DEFAULT = 'd' /* default; effectively same as IN */ -} FunctionParameterMode; - -typedef struct FunctionParameter -{ - NodeTag type; - char *name; /* parameter name, or NULL if not given */ - TypeName *argType; /* TypeName for parameter type */ - FunctionParameterMode mode; /* IN/OUT/etc */ - Node *defexpr; /* raw default expr, or NULL if not given */ -} FunctionParameter; - -typedef struct AlterFunctionStmt -{ - NodeTag type; - ObjectType objtype; - ObjectWithArgs *func; /* name and args of function */ - List *actions; /* list of DefElem */ -} AlterFunctionStmt; - -/* ---------------------- - * DO Statement - * - * DoStmt is the raw parser output, InlineCodeBlock is the execution-time API - * ---------------------- - */ -typedef struct DoStmt -{ - NodeTag type; - List *args; /* List of DefElem nodes */ -} DoStmt; - -typedef struct InlineCodeBlock -{ - NodeTag type; - char *source_text; /* source text of anonymous code block */ - Oid langOid; /* OID of selected language */ - bool langIsTrusted; /* trusted property of the language */ - bool atomic; /* atomic execution context */ -} InlineCodeBlock; - -/* ---------------------- - * CALL statement - * - * OUT-mode arguments are removed from the transformed funcexpr. The outargs - * list contains copies of the expressions for all output arguments, in the - * order of the procedure's declared arguments. (outargs is never evaluated, - * but is useful to the caller as a reference for what to assign to.) - * ---------------------- - */ -typedef struct CallStmt -{ - NodeTag type; - FuncCall *funccall; /* from the parser */ - FuncExpr *funcexpr; /* transformed call, with only input args */ - List *outargs; /* transformed output-argument expressions */ -} CallStmt; - -typedef struct CallContext -{ - NodeTag type; - bool atomic; -} CallContext; - -/* ---------------------- - * Alter Object Rename Statement - * ---------------------- - */ -typedef struct RenameStmt -{ - NodeTag type; - ObjectType renameType; /* OBJECT_TABLE, OBJECT_COLUMN, etc */ - ObjectType relationType; /* if column name, associated relation type */ - RangeVar *relation; /* in case it's a table */ - Node *object; /* in case it's some other object */ - char *subname; /* name of contained object (column, rule, - * trigger, etc) */ - char *newname; /* the new name */ - DropBehavior behavior; /* RESTRICT or CASCADE behavior */ - bool missing_ok; /* skip error if missing? */ -} RenameStmt; - -/* ---------------------- - * ALTER object DEPENDS ON EXTENSION extname - * ---------------------- - */ -typedef struct AlterObjectDependsStmt -{ - NodeTag type; - ObjectType objectType; /* OBJECT_FUNCTION, OBJECT_TRIGGER, etc */ - RangeVar *relation; /* in case a table is involved */ - Node *object; /* name of the object */ - String *extname; /* extension name */ - bool remove; /* set true to remove dep rather than add */ -} AlterObjectDependsStmt; - -/* ---------------------- - * ALTER object SET SCHEMA Statement - * ---------------------- - */ -typedef struct AlterObjectSchemaStmt -{ - NodeTag type; - ObjectType objectType; /* OBJECT_TABLE, OBJECT_TYPE, etc */ - RangeVar *relation; /* in case it's a table */ - Node *object; /* in case it's some other object */ - char *newschema; /* the new schema */ - bool missing_ok; /* skip error if missing? */ -} AlterObjectSchemaStmt; - -/* ---------------------- - * Alter Object Owner Statement - * ---------------------- - */ -typedef struct AlterOwnerStmt -{ - NodeTag type; - ObjectType objectType; /* OBJECT_TABLE, OBJECT_TYPE, etc */ - RangeVar *relation; /* in case it's a table */ - Node *object; /* in case it's some other object */ - RoleSpec *newowner; /* the new owner */ -} AlterOwnerStmt; - -/* ---------------------- - * Alter Operator Set ( this-n-that ) - * ---------------------- - */ -typedef struct AlterOperatorStmt -{ - NodeTag type; - ObjectWithArgs *opername; /* operator name and argument types */ - List *options; /* List of DefElem nodes */ -} AlterOperatorStmt; - -/* ------------------------ - * Alter Type Set ( this-n-that ) - * ------------------------ - */ -typedef struct AlterTypeStmt -{ - NodeTag type; - List *typeName; /* type name (possibly qualified) */ - List *options; /* List of DefElem nodes */ -} AlterTypeStmt; - -/* ---------------------- - * Create Rule Statement - * ---------------------- - */ -typedef struct RuleStmt -{ - NodeTag type; - RangeVar *relation; /* relation the rule is for */ - char *rulename; /* name of the rule */ - Node *whereClause; /* qualifications */ - CmdType event; /* SELECT, INSERT, etc */ - bool instead; /* is a 'do instead'? */ - List *actions; /* the action statements */ - bool replace; /* OR REPLACE */ -} RuleStmt; - -/* ---------------------- - * Notify Statement - * ---------------------- - */ -typedef struct NotifyStmt -{ - NodeTag type; - char *conditionname; /* condition name to notify */ - char *payload; /* the payload string, or NULL if none */ -} NotifyStmt; - -/* ---------------------- - * Listen Statement - * ---------------------- - */ -typedef struct ListenStmt -{ - NodeTag type; - char *conditionname; /* condition name to listen on */ -} ListenStmt; - -/* ---------------------- - * Unlisten Statement - * ---------------------- - */ -typedef struct UnlistenStmt -{ - NodeTag type; - char *conditionname; /* name to unlisten on, or NULL for all */ -} UnlistenStmt; - -/* ---------------------- - * {Begin|Commit|Rollback} Transaction Statement - * ---------------------- - */ -typedef enum TransactionStmtKind -{ - TRANS_STMT_BEGIN, - TRANS_STMT_START, /* semantically identical to BEGIN */ - TRANS_STMT_COMMIT, - TRANS_STMT_ROLLBACK, - TRANS_STMT_SAVEPOINT, - TRANS_STMT_RELEASE, - TRANS_STMT_ROLLBACK_TO, - TRANS_STMT_PREPARE, - TRANS_STMT_COMMIT_PREPARED, - TRANS_STMT_ROLLBACK_PREPARED -} TransactionStmtKind; - -typedef struct TransactionStmt -{ - NodeTag type; - TransactionStmtKind kind; /* see above */ - List *options; /* for BEGIN/START commands */ - char *savepoint_name; /* for savepoint commands */ - char *gid; /* for two-phase-commit related commands */ - bool chain; /* AND CHAIN option */ -} TransactionStmt; - -/* ---------------------- - * Create Type Statement, composite types - * ---------------------- - */ -typedef struct CompositeTypeStmt -{ - NodeTag type; - RangeVar *typevar; /* the composite type to be created */ - List *coldeflist; /* list of ColumnDef nodes */ -} CompositeTypeStmt; - -/* ---------------------- - * Create Type Statement, enum types - * ---------------------- - */ -typedef struct CreateEnumStmt -{ - NodeTag type; - List *typeName; /* qualified name (list of String) */ - List *vals; /* enum values (list of String) */ -} CreateEnumStmt; - -/* ---------------------- - * Create Type Statement, range types - * ---------------------- - */ -typedef struct CreateRangeStmt -{ - NodeTag type; - List *typeName; /* qualified name (list of String) */ - List *params; /* range parameters (list of DefElem) */ -} CreateRangeStmt; - -/* ---------------------- - * Alter Type Statement, enum types - * ---------------------- - */ -typedef struct AlterEnumStmt -{ - NodeTag type; - List *typeName; /* qualified name (list of String) */ - char *oldVal; /* old enum value's name, if renaming */ - char *newVal; /* new enum value's name */ - char *newValNeighbor; /* neighboring enum value, if specified */ - bool newValIsAfter; /* place new enum value after neighbor? */ - bool skipIfNewValExists; /* no error if new already exists? */ -} AlterEnumStmt; - -/* ---------------------- - * Create View Statement - * ---------------------- - */ -typedef enum ViewCheckOption -{ - NO_CHECK_OPTION, - LOCAL_CHECK_OPTION, - CASCADED_CHECK_OPTION -} ViewCheckOption; - -typedef struct ViewStmt -{ - NodeTag type; - RangeVar *view; /* the view to be created */ - List *aliases; /* target column names */ - Node *query; /* the SELECT query (as a raw parse tree) */ - bool replace; /* replace an existing view? */ - List *options; /* options from WITH clause */ - ViewCheckOption withCheckOption; /* WITH CHECK OPTION */ -} ViewStmt; - -/* ---------------------- - * Load Statement - * ---------------------- - */ -typedef struct LoadStmt -{ - NodeTag type; - char *filename; /* file to load */ -} LoadStmt; - -/* ---------------------- - * Createdb Statement - * ---------------------- - */ -typedef struct CreatedbStmt -{ - NodeTag type; - char *dbname; /* name of database to create */ - List *options; /* List of DefElem nodes */ -} CreatedbStmt; - -/* ---------------------- - * Alter Database - * ---------------------- - */ -typedef struct AlterDatabaseStmt -{ - NodeTag type; - char *dbname; /* name of database to alter */ - List *options; /* List of DefElem nodes */ -} AlterDatabaseStmt; - -typedef struct AlterDatabaseRefreshCollStmt -{ - NodeTag type; - char *dbname; -} AlterDatabaseRefreshCollStmt; - -typedef struct AlterDatabaseSetStmt -{ - NodeTag type; - char *dbname; /* database name */ - VariableSetStmt *setstmt; /* SET or RESET subcommand */ -} AlterDatabaseSetStmt; - -/* ---------------------- - * Dropdb Statement - * ---------------------- - */ -typedef struct DropdbStmt -{ - NodeTag type; - char *dbname; /* database to drop */ - bool missing_ok; /* skip error if db is missing? */ - List *options; /* currently only FORCE is supported */ -} DropdbStmt; - -/* ---------------------- - * Alter System Statement - * ---------------------- - */ -typedef struct AlterSystemStmt -{ - NodeTag type; - VariableSetStmt *setstmt; /* SET subcommand */ -} AlterSystemStmt; - -/* ---------------------- - * Cluster Statement (support pbrown's cluster index implementation) - * ---------------------- - */ -typedef struct ClusterStmt -{ - NodeTag type; - RangeVar *relation; /* relation being indexed, or NULL if all */ - char *indexname; /* original index defined */ - List *params; /* list of DefElem nodes */ -} ClusterStmt; - -/* ---------------------- - * Vacuum and Analyze Statements - * - * Even though these are nominally two statements, it's convenient to use - * just one node type for both. - * ---------------------- - */ -typedef struct VacuumStmt -{ - NodeTag type; - List *options; /* list of DefElem nodes */ - List *rels; /* list of VacuumRelation, or NIL for all */ - bool is_vacuumcmd; /* true for VACUUM, false for ANALYZE */ -} VacuumStmt; - -/* - * Info about a single target table of VACUUM/ANALYZE. - * - * If the OID field is set, it always identifies the table to process. - * Then the relation field can be NULL; if it isn't, it's used only to report - * failure to open/lock the relation. - */ -typedef struct VacuumRelation -{ - NodeTag type; - RangeVar *relation; /* table name to process, or NULL */ - Oid oid; /* table's OID; InvalidOid if not looked up */ - List *va_cols; /* list of column names, or NIL for all */ -} VacuumRelation; - -/* ---------------------- - * Explain Statement - * - * The "query" field is initially a raw parse tree, and is converted to a - * Query node during parse analysis. Note that rewriting and planning - * of the query are always postponed until execution. - * ---------------------- - */ -typedef struct ExplainStmt -{ - NodeTag type; - Node *query; /* the query (see comments above) */ - List *options; /* list of DefElem nodes */ -} ExplainStmt; - -/* ---------------------- - * CREATE TABLE AS Statement (a/k/a SELECT INTO) - * - * A query written as CREATE TABLE AS will produce this node type natively. - * A query written as SELECT ... INTO will be transformed to this form during - * parse analysis. - * A query written as CREATE MATERIALIZED view will produce this node type, - * during parse analysis, since it needs all the same data. - * - * The "query" field is handled similarly to EXPLAIN, though note that it - * can be a SELECT or an EXECUTE, but not other DML statements. - * ---------------------- - */ -typedef struct CreateTableAsStmt -{ - NodeTag type; - Node *query; /* the query (see comments above) */ - IntoClause *into; /* destination table */ - ObjectType objtype; /* OBJECT_TABLE or OBJECT_MATVIEW */ - bool is_select_into; /* it was written as SELECT INTO */ - bool if_not_exists; /* just do nothing if it already exists? */ -} CreateTableAsStmt; - -/* ---------------------- - * REFRESH MATERIALIZED VIEW Statement - * ---------------------- - */ -typedef struct RefreshMatViewStmt -{ - NodeTag type; - bool concurrent; /* allow concurrent access? */ - bool skipData; /* true for WITH NO DATA */ - RangeVar *relation; /* relation to insert into */ -} RefreshMatViewStmt; - -/* ---------------------- - * Checkpoint Statement - * ---------------------- - */ -typedef struct CheckPointStmt -{ - NodeTag type; -} CheckPointStmt; - -/* ---------------------- - * Discard Statement - * ---------------------- - */ - -typedef enum DiscardMode -{ - DISCARD_ALL, - DISCARD_PLANS, - DISCARD_SEQUENCES, - DISCARD_TEMP -} DiscardMode; - -typedef struct DiscardStmt -{ - NodeTag type; - DiscardMode target; -} DiscardStmt; - -/* ---------------------- - * LOCK Statement - * ---------------------- - */ -typedef struct LockStmt -{ - NodeTag type; - List *relations; /* relations to lock */ - int mode; /* lock mode */ - bool nowait; /* no wait mode */ -} LockStmt; - -/* ---------------------- - * SET CONSTRAINTS Statement - * ---------------------- - */ -typedef struct ConstraintsSetStmt -{ - NodeTag type; - List *constraints; /* List of names as RangeVars */ - bool deferred; -} ConstraintsSetStmt; - -/* ---------------------- - * REINDEX Statement - * ---------------------- - */ -typedef enum ReindexObjectType -{ - REINDEX_OBJECT_INDEX, /* index */ - REINDEX_OBJECT_TABLE, /* table or materialized view */ - REINDEX_OBJECT_SCHEMA, /* schema */ - REINDEX_OBJECT_SYSTEM, /* system catalogs */ - REINDEX_OBJECT_DATABASE /* database */ -} ReindexObjectType; - -typedef struct ReindexStmt -{ - NodeTag type; - ReindexObjectType kind; /* REINDEX_OBJECT_INDEX, REINDEX_OBJECT_TABLE, - * etc. */ - RangeVar *relation; /* Table or index to reindex */ - const char *name; /* name of database to reindex */ - List *params; /* list of DefElem nodes */ -} ReindexStmt; - -/* ---------------------- - * CREATE CONVERSION Statement - * ---------------------- - */ -typedef struct CreateConversionStmt -{ - NodeTag type; - List *conversion_name; /* Name of the conversion */ - char *for_encoding_name; /* source encoding name */ - char *to_encoding_name; /* destination encoding name */ - List *func_name; /* qualified conversion function name */ - bool def; /* is this a default conversion? */ -} CreateConversionStmt; - -/* ---------------------- - * CREATE CAST Statement - * ---------------------- - */ -typedef struct CreateCastStmt -{ - NodeTag type; - TypeName *sourcetype; - TypeName *targettype; - ObjectWithArgs *func; - CoercionContext context; - bool inout; -} CreateCastStmt; - -/* ---------------------- - * CREATE TRANSFORM Statement - * ---------------------- - */ -typedef struct CreateTransformStmt -{ - NodeTag type; - bool replace; - TypeName *type_name; - char *lang; - ObjectWithArgs *fromsql; - ObjectWithArgs *tosql; -} CreateTransformStmt; - -/* ---------------------- - * PREPARE Statement - * ---------------------- - */ -typedef struct PrepareStmt -{ - NodeTag type; - char *name; /* Name of plan, arbitrary */ - List *argtypes; /* Types of parameters (List of TypeName) */ - Node *query; /* The query itself (as a raw parsetree) */ -} PrepareStmt; - - -/* ---------------------- - * EXECUTE Statement - * ---------------------- - */ - -typedef struct ExecuteStmt -{ - NodeTag type; - char *name; /* The name of the plan to execute */ - List *params; /* Values to assign to parameters */ -} ExecuteStmt; - - -/* ---------------------- - * DEALLOCATE Statement - * ---------------------- - */ -typedef struct DeallocateStmt -{ - NodeTag type; - char *name; /* The name of the plan to remove */ - /* NULL means DEALLOCATE ALL */ -} DeallocateStmt; - -/* - * DROP OWNED statement - */ -typedef struct DropOwnedStmt -{ - NodeTag type; - List *roles; - DropBehavior behavior; -} DropOwnedStmt; - -/* - * REASSIGN OWNED statement - */ -typedef struct ReassignOwnedStmt -{ - NodeTag type; - List *roles; - RoleSpec *newrole; -} ReassignOwnedStmt; - -/* - * TS Dictionary stmts: DefineStmt, RenameStmt and DropStmt are default - */ -typedef struct AlterTSDictionaryStmt -{ - NodeTag type; - List *dictname; /* qualified name (list of String) */ - List *options; /* List of DefElem nodes */ -} AlterTSDictionaryStmt; - -/* - * TS Configuration stmts: DefineStmt, RenameStmt and DropStmt are default - */ -typedef enum AlterTSConfigType -{ - ALTER_TSCONFIG_ADD_MAPPING, - ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN, - ALTER_TSCONFIG_REPLACE_DICT, - ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN, - ALTER_TSCONFIG_DROP_MAPPING -} AlterTSConfigType; - -typedef struct AlterTSConfigurationStmt -{ - NodeTag type; - AlterTSConfigType kind; /* ALTER_TSCONFIG_ADD_MAPPING, etc */ - List *cfgname; /* qualified name (list of String) */ - - /* - * dicts will be non-NIL if ADD/ALTER MAPPING was specified. If dicts is - * NIL, but tokentype isn't, DROP MAPPING was specified. - */ - List *tokentype; /* list of String */ - List *dicts; /* list of list of String */ - bool override; /* if true - remove old variant */ - bool replace; /* if true - replace dictionary by another */ - bool missing_ok; /* for DROP - skip error if missing? */ -} AlterTSConfigurationStmt; - -typedef struct PublicationTable -{ - NodeTag type; - RangeVar *relation; /* relation to be published */ - Node *whereClause; /* qualifications */ - List *columns; /* List of columns in a publication table */ -} PublicationTable; - -/* - * Publication object type - */ -typedef enum PublicationObjSpecType -{ - PUBLICATIONOBJ_TABLE, /* A table */ - PUBLICATIONOBJ_TABLES_IN_SCHEMA, /* All tables in schema */ - PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA, /* All tables in first element of - * search_path */ - PUBLICATIONOBJ_CONTINUATION /* Continuation of previous type */ -} PublicationObjSpecType; - -typedef struct PublicationObjSpec -{ - NodeTag type; - PublicationObjSpecType pubobjtype; /* type of this publication object */ - char *name; - PublicationTable *pubtable; - int location; /* token location, or -1 if unknown */ -} PublicationObjSpec; - -typedef struct CreatePublicationStmt -{ - NodeTag type; - char *pubname; /* Name of the publication */ - List *options; /* List of DefElem nodes */ - List *pubobjects; /* Optional list of publication objects */ - bool for_all_tables; /* Special publication for all tables in db */ -} CreatePublicationStmt; - -typedef enum AlterPublicationAction -{ - AP_AddObjects, /* add objects to publication */ - AP_DropObjects, /* remove objects from publication */ - AP_SetObjects /* set list of objects */ -} AlterPublicationAction; - -typedef struct AlterPublicationStmt -{ - NodeTag type; - char *pubname; /* Name of the publication */ - - /* parameters used for ALTER PUBLICATION ... WITH */ - List *options; /* List of DefElem nodes */ - - /* - * Parameters used for ALTER PUBLICATION ... ADD/DROP/SET publication - * objects. - */ - List *pubobjects; /* Optional list of publication objects */ - bool for_all_tables; /* Special publication for all tables in db */ - AlterPublicationAction action; /* What action to perform with the given - * objects */ -} AlterPublicationStmt; - -typedef struct CreateSubscriptionStmt -{ - NodeTag type; - char *subname; /* Name of the subscription */ - char *conninfo; /* Connection string to publisher */ - List *publication; /* One or more publication to subscribe to */ - List *options; /* List of DefElem nodes */ -} CreateSubscriptionStmt; - -typedef enum AlterSubscriptionType -{ - ALTER_SUBSCRIPTION_OPTIONS, - ALTER_SUBSCRIPTION_CONNECTION, - ALTER_SUBSCRIPTION_SET_PUBLICATION, - ALTER_SUBSCRIPTION_ADD_PUBLICATION, - ALTER_SUBSCRIPTION_DROP_PUBLICATION, - ALTER_SUBSCRIPTION_REFRESH, - ALTER_SUBSCRIPTION_ENABLED, - ALTER_SUBSCRIPTION_SKIP -} AlterSubscriptionType; - -typedef struct AlterSubscriptionStmt -{ - NodeTag type; - AlterSubscriptionType kind; /* ALTER_SUBSCRIPTION_OPTIONS, etc */ - char *subname; /* Name of the subscription */ - char *conninfo; /* Connection string to publisher */ - List *publication; /* One or more publication to subscribe to */ - List *options; /* List of DefElem nodes */ -} AlterSubscriptionStmt; - -typedef struct DropSubscriptionStmt -{ - NodeTag type; - char *subname; /* Name of the subscription */ - bool missing_ok; /* Skip error if missing? */ - DropBehavior behavior; /* RESTRICT or CASCADE behavior */ -} DropSubscriptionStmt; - -#endif /* PARSENODES_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/pathnodes.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/pathnodes.h deleted file mode 100644 index 540de8a4a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/pathnodes.h +++ /dev/null @@ -1,2734 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pathnodes.h - * Definitions for planner's internal data structures, especially Paths. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/nodes/pathnodes.h - * - *------------------------------------------------------------------------- - */ -#ifndef PATHNODES_H -#define PATHNODES_H - -#include "access/sdir.h" -#include "lib/stringinfo.h" -#include "nodes/params.h" -#include "nodes/parsenodes.h" -#include "storage/block.h" - - -/* - * Relids - * Set of relation identifiers (indexes into the rangetable). - */ -typedef Bitmapset *Relids; - -/* - * When looking for a "cheapest path", this enum specifies whether we want - * cheapest startup cost or cheapest total cost. - */ -typedef enum CostSelector -{ - STARTUP_COST, TOTAL_COST -} CostSelector; - -/* - * The cost estimate produced by cost_qual_eval() includes both a one-time - * (startup) cost, and a per-tuple cost. - */ -typedef struct QualCost -{ - Cost startup; /* one-time cost */ - Cost per_tuple; /* per-evaluation cost */ -} QualCost; - -/* - * Costing aggregate function execution requires these statistics about - * the aggregates to be executed by a given Agg node. Note that the costs - * include the execution costs of the aggregates' argument expressions as - * well as the aggregate functions themselves. Also, the fields must be - * defined so that initializing the struct to zeroes with memset is correct. - */ -typedef struct AggClauseCosts -{ - QualCost transCost; /* total per-input-row execution costs */ - QualCost finalCost; /* total per-aggregated-row costs */ - Size transitionSpace; /* space for pass-by-ref transition data */ -} AggClauseCosts; - -/* - * This enum identifies the different types of "upper" (post-scan/join) - * relations that we might deal with during planning. - */ -typedef enum UpperRelationKind -{ - UPPERREL_SETOP, /* result of UNION/INTERSECT/EXCEPT, if any */ - UPPERREL_PARTIAL_GROUP_AGG, /* result of partial grouping/aggregation, if - * any */ - UPPERREL_GROUP_AGG, /* result of grouping/aggregation, if any */ - UPPERREL_WINDOW, /* result of window functions, if any */ - UPPERREL_PARTIAL_DISTINCT, /* result of partial "SELECT DISTINCT", if any */ - UPPERREL_DISTINCT, /* result of "SELECT DISTINCT", if any */ - UPPERREL_ORDERED, /* result of ORDER BY, if any */ - UPPERREL_FINAL /* result of any remaining top-level actions */ - /* NB: UPPERREL_FINAL must be last enum entry; it's used to size arrays */ -} UpperRelationKind; - -/*---------- - * PlannerGlobal - * Global information for planning/optimization - * - * PlannerGlobal holds state for an entire planner invocation; this state - * is shared across all levels of sub-Queries that exist in the command being - * planned. - *---------- - */ -typedef struct PlannerGlobal -{ - NodeTag type; - - ParamListInfo boundParams; /* Param values provided to planner() */ - - List *subplans; /* Plans for SubPlan nodes */ - - List *subroots; /* PlannerInfos for SubPlan nodes */ - - Bitmapset *rewindPlanIDs; /* indices of subplans that require REWIND */ - - List *finalrtable; /* "flat" rangetable for executor */ - - List *finalrowmarks; /* "flat" list of PlanRowMarks */ - - List *resultRelations; /* "flat" list of integer RT indexes */ - - List *appendRelations; /* "flat" list of AppendRelInfos */ - - List *relationOids; /* OIDs of relations the plan depends on */ - - List *invalItems; /* other dependencies, as PlanInvalItems */ - - List *paramExecTypes; /* type OIDs for PARAM_EXEC Params */ - - Index lastPHId; /* highest PlaceHolderVar ID assigned */ - - Index lastRowMarkId; /* highest PlanRowMark ID assigned */ - - int lastPlanNodeId; /* highest plan node ID assigned */ - - bool transientPlan; /* redo plan when TransactionXmin changes? */ - - bool dependsOnRole; /* is plan specific to current role? */ - - bool parallelModeOK; /* parallel mode potentially OK? */ - - bool parallelModeNeeded; /* parallel mode actually required? */ - - char maxParallelHazard; /* worst PROPARALLEL hazard level */ - - PartitionDirectory partition_directory; /* partition descriptors */ -} PlannerGlobal; - -/* macro for fetching the Plan associated with a SubPlan node */ -#define planner_subplan_get_plan(root, subplan) \ - ((Plan *) list_nth((root)->glob->subplans, (subplan)->plan_id - 1)) - - -/*---------- - * PlannerInfo - * Per-query information for planning/optimization - * - * This struct is conventionally called "root" in all the planner routines. - * It holds links to all of the planner's working state, in addition to the - * original Query. Note that at present the planner extensively modifies - * the passed-in Query data structure; someday that should stop. - * - * For reasons explained in optimizer/optimizer.h, we define the typedef - * either here or in that header, whichever is read first. - *---------- - */ -#ifndef HAVE_PLANNERINFO_TYPEDEF -typedef struct PlannerInfo PlannerInfo; -#define HAVE_PLANNERINFO_TYPEDEF 1 -#endif - -struct PlannerInfo -{ - NodeTag type; - - Query *parse; /* the Query being planned */ - - PlannerGlobal *glob; /* global info for current planner run */ - - Index query_level; /* 1 at the outermost Query */ - - PlannerInfo *parent_root; /* NULL at outermost Query */ - - /* - * plan_params contains the expressions that this query level needs to - * make available to a lower query level that is currently being planned. - * outer_params contains the paramIds of PARAM_EXEC Params that outer - * query levels will make available to this query level. - */ - List *plan_params; /* list of PlannerParamItems, see below */ - Bitmapset *outer_params; - - /* - * simple_rel_array holds pointers to "base rels" and "other rels" (see - * comments for RelOptInfo for more info). It is indexed by rangetable - * index (so entry 0 is always wasted). Entries can be NULL when an RTE - * does not correspond to a base relation, such as a join RTE or an - * unreferenced view RTE; or if the RelOptInfo hasn't been made yet. - */ - struct RelOptInfo **simple_rel_array; /* All 1-rel RelOptInfos */ - int simple_rel_array_size; /* allocated size of array */ - - /* - * simple_rte_array is the same length as simple_rel_array and holds - * pointers to the associated rangetable entries. Using this is a shade - * faster than using rt_fetch(), mostly due to fewer indirections. - */ - RangeTblEntry **simple_rte_array; /* rangetable as an array */ - - /* - * append_rel_array is the same length as the above arrays, and holds - * pointers to the corresponding AppendRelInfo entry indexed by - * child_relid, or NULL if the rel is not an appendrel child. The array - * itself is not allocated if append_rel_list is empty. - */ - struct AppendRelInfo **append_rel_array; - - /* - * all_baserels is a Relids set of all base relids (but not "other" - * relids) in the query; that is, the Relids identifier of the final join - * we need to form. This is computed in make_one_rel, just before we - * start making Paths. - */ - Relids all_baserels; - - /* - * nullable_baserels is a Relids set of base relids that are nullable by - * some outer join in the jointree; these are rels that are potentially - * nullable below the WHERE clause, SELECT targetlist, etc. This is - * computed in deconstruct_jointree. - */ - Relids nullable_baserels; - - /* - * join_rel_list is a list of all join-relation RelOptInfos we have - * considered in this planning run. For small problems we just scan the - * list to do lookups, but when there are many join relations we build a - * hash table for faster lookups. The hash table is present and valid - * when join_rel_hash is not NULL. Note that we still maintain the list - * even when using the hash table for lookups; this simplifies life for - * GEQO. - */ - List *join_rel_list; /* list of join-relation RelOptInfos */ - struct HTAB *join_rel_hash; /* optional hashtable for join relations */ - - /* - * When doing a dynamic-programming-style join search, join_rel_level[k] - * is a list of all join-relation RelOptInfos of level k, and - * join_cur_level is the current level. New join-relation RelOptInfos are - * automatically added to the join_rel_level[join_cur_level] list. - * join_rel_level is NULL if not in use. - */ - List **join_rel_level; /* lists of join-relation RelOptInfos */ - int join_cur_level; /* index of list being extended */ - - List *init_plans; /* init SubPlans for query */ - - List *cte_plan_ids; /* per-CTE-item list of subplan IDs (or -1 if - * no subplan was made for that CTE) */ - - List *multiexpr_params; /* List of Lists of Params for MULTIEXPR - * subquery outputs */ - - List *eq_classes; /* list of active EquivalenceClasses */ - - bool ec_merging_done; /* set true once ECs are canonical */ - - List *canon_pathkeys; /* list of "canonical" PathKeys */ - - List *left_join_clauses; /* list of RestrictInfos for mergejoinable - * outer join clauses w/nonnullable var on - * left */ - - List *right_join_clauses; /* list of RestrictInfos for mergejoinable - * outer join clauses w/nonnullable var on - * right */ - - List *full_join_clauses; /* list of RestrictInfos for mergejoinable - * full join clauses */ - - List *join_info_list; /* list of SpecialJoinInfos */ - - /* - * all_result_relids is empty for SELECT, otherwise it contains at least - * parse->resultRelation. For UPDATE/DELETE/MERGE across an inheritance - * or partitioning tree, the result rel's child relids are added. When - * using multi-level partitioning, intermediate partitioned rels are - * included. leaf_result_relids is similar except that only actual result - * tables, not partitioned tables, are included in it. - */ - Relids all_result_relids; /* set of all result relids */ - Relids leaf_result_relids; /* set of all leaf relids */ - - /* - * Note: for AppendRelInfos describing partitions of a partitioned table, - * we guarantee that partitions that come earlier in the partitioned - * table's PartitionDesc will appear earlier in append_rel_list. - */ - List *append_rel_list; /* list of AppendRelInfos */ - - List *row_identity_vars; /* list of RowIdentityVarInfos */ - - List *rowMarks; /* list of PlanRowMarks */ - - List *placeholder_list; /* list of PlaceHolderInfos */ - - List *fkey_list; /* list of ForeignKeyOptInfos */ - - List *query_pathkeys; /* desired pathkeys for query_planner() */ - - List *group_pathkeys; /* groupClause pathkeys, if any */ - List *window_pathkeys; /* pathkeys of bottom window, if any */ - List *distinct_pathkeys; /* distinctClause pathkeys, if any */ - List *sort_pathkeys; /* sortClause pathkeys, if any */ - - List *part_schemes; /* Canonicalised partition schemes used in the - * query. */ - - List *initial_rels; /* RelOptInfos we are now trying to join */ - - /* Use fetch_upper_rel() to get any particular upper rel */ - List *upper_rels[UPPERREL_FINAL + 1]; /* upper-rel RelOptInfos */ - - /* Result tlists chosen by grouping_planner for upper-stage processing */ - struct PathTarget *upper_targets[UPPERREL_FINAL + 1]; - - /* - * The fully-processed targetlist is kept here. It differs from - * parse->targetList in that (for INSERT) it's been reordered to match the - * target table, and defaults have been filled in. Also, additional - * resjunk targets may be present. preprocess_targetlist() does most of - * that work, but note that more resjunk targets can get added during - * appendrel expansion. (Hence, upper_targets mustn't get set up till - * after that.) - */ - List *processed_tlist; - - /* - * For UPDATE, this list contains the target table's attribute numbers to - * which the first N entries of processed_tlist are to be assigned. (Any - * additional entries in processed_tlist must be resjunk.) DO NOT use the - * resnos in processed_tlist to identify the UPDATE target columns. - */ - List *update_colnos; - - /* Fields filled during create_plan() for use in setrefs.c */ - AttrNumber *grouping_map; /* for GroupingFunc fixup */ - List *minmax_aggs; /* List of MinMaxAggInfos */ - - MemoryContext planner_cxt; /* context holding PlannerInfo */ - - Cardinality total_table_pages; /* # of pages in all non-dummy tables of - * query */ - - Selectivity tuple_fraction; /* tuple_fraction passed to query_planner */ - Cardinality limit_tuples; /* limit_tuples passed to query_planner */ - - Index qual_security_level; /* minimum security_level for quals */ - /* Note: qual_security_level is zero if there are no securityQuals */ - - bool hasJoinRTEs; /* true if any RTEs are RTE_JOIN kind */ - bool hasLateralRTEs; /* true if any RTEs are marked LATERAL */ - bool hasHavingQual; /* true if havingQual was non-null */ - bool hasPseudoConstantQuals; /* true if any RestrictInfo has - * pseudoconstant = true */ - bool hasAlternativeSubPlans; /* true if we've made any of those */ - bool hasRecursion; /* true if planning a recursive WITH item */ - - /* - * Information about aggregates. Filled by preprocess_aggrefs(). - */ - List *agginfos; /* AggInfo structs */ - List *aggtransinfos; /* AggTransInfo structs */ - int numOrderedAggs; /* number w/ DISTINCT/ORDER BY/WITHIN GROUP */ - bool hasNonPartialAggs; /* does any agg not support partial mode? */ - bool hasNonSerialAggs; /* is any partial agg non-serializable? */ - - /* These fields are used only when hasRecursion is true: */ - int wt_param_id; /* PARAM_EXEC ID for the work table */ - struct Path *non_recursive_path; /* a path for non-recursive term */ - - /* These fields are workspace for createplan.c */ - Relids curOuterRels; /* outer rels above current node */ - List *curOuterParams; /* not-yet-assigned NestLoopParams */ - - /* These fields are workspace for setrefs.c */ - bool *isAltSubplan; /* array corresponding to glob->subplans */ - bool *isUsedSubplan; /* array corresponding to glob->subplans */ - - /* optional private data for join_search_hook, e.g., GEQO */ - void *join_search_private; - - /* Does this query modify any partition key columns? */ - bool partColsUpdated; -}; - - -/* - * In places where it's known that simple_rte_array[] must have been prepared - * already, we just index into it to fetch RTEs. In code that might be - * executed before or after entering query_planner(), use this macro. - */ -#define planner_rt_fetch(rti, root) \ - ((root)->simple_rte_array ? (root)->simple_rte_array[rti] : \ - rt_fetch(rti, (root)->parse->rtable)) - -/* - * If multiple relations are partitioned the same way, all such partitions - * will have a pointer to the same PartitionScheme. A list of PartitionScheme - * objects is attached to the PlannerInfo. By design, the partition scheme - * incorporates only the general properties of the partition method (LIST vs. - * RANGE, number of partitioning columns and the type information for each) - * and not the specific bounds. - * - * We store the opclass-declared input data types instead of the partition key - * datatypes since the former rather than the latter are used to compare - * partition bounds. Since partition key data types and the opclass declared - * input data types are expected to be binary compatible (per ResolveOpClass), - * both of those should have same byval and length properties. - */ -typedef struct PartitionSchemeData -{ - char strategy; /* partition strategy */ - int16 partnatts; /* number of partition attributes */ - Oid *partopfamily; /* OIDs of operator families */ - Oid *partopcintype; /* OIDs of opclass declared input data types */ - Oid *partcollation; /* OIDs of partitioning collations */ - - /* Cached information about partition key data types. */ - int16 *parttyplen; - bool *parttypbyval; - - /* Cached information about partition comparison functions. */ - struct FmgrInfo *partsupfunc; -} PartitionSchemeData; - -typedef struct PartitionSchemeData *PartitionScheme; - -/*---------- - * RelOptInfo - * Per-relation information for planning/optimization - * - * For planning purposes, a "base rel" is either a plain relation (a table) - * or the output of a sub-SELECT or function that appears in the range table. - * In either case it is uniquely identified by an RT index. A "joinrel" - * is the joining of two or more base rels. A joinrel is identified by - * the set of RT indexes for its component baserels. We create RelOptInfo - * nodes for each baserel and joinrel, and store them in the PlannerInfo's - * simple_rel_array and join_rel_list respectively. - * - * Note that there is only one joinrel for any given set of component - * baserels, no matter what order we assemble them in; so an unordered - * set is the right datatype to identify it with. - * - * We also have "other rels", which are like base rels in that they refer to - * single RT indexes; but they are not part of the join tree, and are given - * a different RelOptKind to identify them. - * Currently the only kind of otherrels are those made for member relations - * of an "append relation", that is an inheritance set or UNION ALL subquery. - * An append relation has a parent RTE that is a base rel, which represents - * the entire append relation. The member RTEs are otherrels. The parent - * is present in the query join tree but the members are not. The member - * RTEs and otherrels are used to plan the scans of the individual tables or - * subqueries of the append set; then the parent baserel is given Append - * and/or MergeAppend paths comprising the best paths for the individual - * member rels. (See comments for AppendRelInfo for more information.) - * - * At one time we also made otherrels to represent join RTEs, for use in - * handling join alias Vars. Currently this is not needed because all join - * alias Vars are expanded to non-aliased form during preprocess_expression. - * - * We also have relations representing joins between child relations of - * different partitioned tables. These relations are not added to - * join_rel_level lists as they are not joined directly by the dynamic - * programming algorithm. - * - * There is also a RelOptKind for "upper" relations, which are RelOptInfos - * that describe post-scan/join processing steps, such as aggregation. - * Many of the fields in these RelOptInfos are meaningless, but their Path - * fields always hold Paths showing ways to do that processing step. - * - * Lastly, there is a RelOptKind for "dead" relations, which are base rels - * that we have proven we don't need to join after all. - * - * Parts of this data structure are specific to various scan and join - * mechanisms. It didn't seem worth creating new node types for them. - * - * relids - Set of base-relation identifiers; it is a base relation - * if there is just one, a join relation if more than one - * rows - estimated number of tuples in the relation after restriction - * clauses have been applied (ie, output rows of a plan for it) - * consider_startup - true if there is any value in keeping plain paths for - * this rel on the basis of having cheap startup cost - * consider_param_startup - the same for parameterized paths - * reltarget - Default Path output tlist for this rel; normally contains - * Var and PlaceHolderVar nodes for the values we need to - * output from this relation. - * List is in no particular order, but all rels of an - * appendrel set must use corresponding orders. - * NOTE: in an appendrel child relation, may contain - * arbitrary expressions pulled up from a subquery! - * pathlist - List of Path nodes, one for each potentially useful - * method of generating the relation - * ppilist - ParamPathInfo nodes for parameterized Paths, if any - * cheapest_startup_path - the pathlist member with lowest startup cost - * (regardless of ordering) among the unparameterized paths; - * or NULL if there is no unparameterized path - * cheapest_total_path - the pathlist member with lowest total cost - * (regardless of ordering) among the unparameterized paths; - * or if there is no unparameterized path, the path with lowest - * total cost among the paths with minimum parameterization - * cheapest_unique_path - for caching cheapest path to produce unique - * (no duplicates) output from relation; NULL if not yet requested - * cheapest_parameterized_paths - best paths for their parameterizations; - * always includes cheapest_total_path, even if that's unparameterized - * direct_lateral_relids - rels this rel has direct LATERAL references to - * lateral_relids - required outer rels for LATERAL, as a Relids set - * (includes both direct and indirect lateral references) - * - * If the relation is a base relation it will have these fields set: - * - * relid - RTE index (this is redundant with the relids field, but - * is provided for convenience of access) - * rtekind - copy of RTE's rtekind field - * min_attr, max_attr - range of valid AttrNumbers for rel - * attr_needed - array of bitmapsets indicating the highest joinrel - * in which each attribute is needed; if bit 0 is set then - * the attribute is needed as part of final targetlist - * attr_widths - cache space for per-attribute width estimates; - * zero means not computed yet - * lateral_vars - lateral cross-references of rel, if any (list of - * Vars and PlaceHolderVars) - * lateral_referencers - relids of rels that reference this one laterally - * (includes both direct and indirect lateral references) - * indexlist - list of IndexOptInfo nodes for relation's indexes - * (always NIL if it's not a table) - * pages - number of disk pages in relation (zero if not a table) - * tuples - number of tuples in relation (not considering restrictions) - * allvisfrac - fraction of disk pages that are marked all-visible - * eclass_indexes - EquivalenceClasses that mention this rel (filled - * only after EC merging is complete) - * subroot - PlannerInfo for subquery (NULL if it's not a subquery) - * subplan_params - list of PlannerParamItems to be passed to subquery - * - * Note: for a subquery, tuples and subroot are not set immediately - * upon creation of the RelOptInfo object; they are filled in when - * set_subquery_pathlist processes the object. - * - * For otherrels that are appendrel members, these fields are filled - * in just as for a baserel, except we don't bother with lateral_vars. - * - * If the relation is either a foreign table or a join of foreign tables that - * all belong to the same foreign server and are assigned to the same user to - * check access permissions as (cf checkAsUser), these fields will be set: - * - * serverid - OID of foreign server, if foreign table (else InvalidOid) - * userid - OID of user to check access as (InvalidOid means current user) - * useridiscurrent - we've assumed that userid equals current user - * fdwroutine - function hooks for FDW, if foreign table (else NULL) - * fdw_private - private state for FDW, if foreign table (else NULL) - * - * Two fields are used to cache knowledge acquired during the join search - * about whether this rel is provably unique when being joined to given other - * relation(s), ie, it can have at most one row matching any given row from - * that join relation. Currently we only attempt such proofs, and thus only - * populate these fields, for base rels; but someday they might be used for - * join rels too: - * - * unique_for_rels - list of Relid sets, each one being a set of other - * rels for which this one has been proven unique - * non_unique_for_rels - list of Relid sets, each one being a set of - * other rels for which we have tried and failed to prove - * this one unique - * - * The presence of the following fields depends on the restrictions - * and joins that the relation participates in: - * - * baserestrictinfo - List of RestrictInfo nodes, containing info about - * each non-join qualification clause in which this relation - * participates (only used for base rels) - * baserestrictcost - Estimated cost of evaluating the baserestrictinfo - * clauses at a single tuple (only used for base rels) - * baserestrict_min_security - Smallest security_level found among - * clauses in baserestrictinfo - * joininfo - List of RestrictInfo nodes, containing info about each - * join clause in which this relation participates (but - * note this excludes clauses that might be derivable from - * EquivalenceClasses) - * has_eclass_joins - flag that EquivalenceClass joins are possible - * - * Note: Keeping a restrictinfo list in the RelOptInfo is useful only for - * base rels, because for a join rel the set of clauses that are treated as - * restrict clauses varies depending on which sub-relations we choose to join. - * (For example, in a 3-base-rel join, a clause relating rels 1 and 2 must be - * treated as a restrictclause if we join {1} and {2 3} to make {1 2 3}; but - * if we join {1 2} and {3} then that clause will be a restrictclause in {1 2} - * and should not be processed again at the level of {1 2 3}.) Therefore, - * the restrictinfo list in the join case appears in individual JoinPaths - * (field joinrestrictinfo), not in the parent relation. But it's OK for - * the RelOptInfo to store the joininfo list, because that is the same - * for a given rel no matter how we form it. - * - * We store baserestrictcost in the RelOptInfo (for base relations) because - * we know we will need it at least once (to price the sequential scan) - * and may need it multiple times to price index scans. - * - * A join relation is considered to be partitioned if it is formed from a - * join of two relations that are partitioned, have matching partitioning - * schemes, and are joined on an equijoin of the partitioning columns. - * Under those conditions we can consider the join relation to be partitioned - * by either relation's partitioning keys, though some care is needed if - * either relation can be forced to null by outer-joining. For example, an - * outer join like (A LEFT JOIN B ON A.a = B.b) may produce rows with B.b - * NULL. These rows may not fit the partitioning conditions imposed on B. - * Hence, strictly speaking, the join is not partitioned by B.b and thus - * partition keys of an outer join should include partition key expressions - * from the non-nullable side only. However, if a subsequent join uses - * strict comparison operators (and all commonly-used equijoin operators are - * strict), the presence of nulls doesn't cause a problem: such rows couldn't - * match anything on the other side and thus they don't create a need to do - * any cross-partition sub-joins. Hence we can treat such values as still - * partitioning the join output for the purpose of additional partitionwise - * joining, so long as a strict join operator is used by the next join. - * - * If the relation is partitioned, these fields will be set: - * - * part_scheme - Partitioning scheme of the relation - * nparts - Number of partitions - * boundinfo - Partition bounds - * partbounds_merged - true if partition bounds are merged ones - * partition_qual - Partition constraint if not the root - * part_rels - RelOptInfos for each partition - * all_partrels - Relids set of all partition relids - * partexprs, nullable_partexprs - Partition key expressions - * - * The partexprs and nullable_partexprs arrays each contain - * part_scheme->partnatts elements. Each of the elements is a list of - * partition key expressions. For partitioned base relations, there is one - * expression in each partexprs element, and nullable_partexprs is empty. - * For partitioned join relations, each base relation within the join - * contributes one partition key expression per partitioning column; - * that expression goes in the partexprs[i] list if the base relation - * is not nullable by this join or any lower outer join, or in the - * nullable_partexprs[i] list if the base relation is nullable. - * Furthermore, FULL JOINs add extra nullable_partexprs expressions - * corresponding to COALESCE expressions of the left and right join columns, - * to simplify matching join clauses to those lists. - *---------- - */ - -/* Bitmask of flags supported by table AMs */ -#define AMFLAG_HAS_TID_RANGE (1 << 0) - -typedef enum RelOptKind -{ - RELOPT_BASEREL, - RELOPT_JOINREL, - RELOPT_OTHER_MEMBER_REL, - RELOPT_OTHER_JOINREL, - RELOPT_UPPER_REL, - RELOPT_OTHER_UPPER_REL, - RELOPT_DEADREL -} RelOptKind; - -/* - * Is the given relation a simple relation i.e a base or "other" member - * relation? - */ -#define IS_SIMPLE_REL(rel) \ - ((rel)->reloptkind == RELOPT_BASEREL || \ - (rel)->reloptkind == RELOPT_OTHER_MEMBER_REL) - -/* Is the given relation a join relation? */ -#define IS_JOIN_REL(rel) \ - ((rel)->reloptkind == RELOPT_JOINREL || \ - (rel)->reloptkind == RELOPT_OTHER_JOINREL) - -/* Is the given relation an upper relation? */ -#define IS_UPPER_REL(rel) \ - ((rel)->reloptkind == RELOPT_UPPER_REL || \ - (rel)->reloptkind == RELOPT_OTHER_UPPER_REL) - -/* Is the given relation an "other" relation? */ -#define IS_OTHER_REL(rel) \ - ((rel)->reloptkind == RELOPT_OTHER_MEMBER_REL || \ - (rel)->reloptkind == RELOPT_OTHER_JOINREL || \ - (rel)->reloptkind == RELOPT_OTHER_UPPER_REL) - -typedef struct RelOptInfo -{ - NodeTag type; - - RelOptKind reloptkind; - - /* all relations included in this RelOptInfo */ - Relids relids; /* set of base relids (rangetable indexes) */ - - /* size estimates generated by planner */ - Cardinality rows; /* estimated number of result tuples */ - - /* per-relation planner control flags */ - bool consider_startup; /* keep cheap-startup-cost paths? */ - bool consider_param_startup; /* ditto, for parameterized paths? */ - bool consider_parallel; /* consider parallel paths? */ - - /* default result targetlist for Paths scanning this relation */ - struct PathTarget *reltarget; /* list of Vars/Exprs, cost, width */ - - /* materialization information */ - List *pathlist; /* Path structures */ - List *ppilist; /* ParamPathInfos used in pathlist */ - List *partial_pathlist; /* partial Paths */ - struct Path *cheapest_startup_path; - struct Path *cheapest_total_path; - struct Path *cheapest_unique_path; - List *cheapest_parameterized_paths; - - /* parameterization information needed for both base rels and join rels */ - /* (see also lateral_vars and lateral_referencers) */ - Relids direct_lateral_relids; /* rels directly laterally referenced */ - Relids lateral_relids; /* minimum parameterization of rel */ - - /* information about a base rel (not set for join rels!) */ - Index relid; - Oid reltablespace; /* containing tablespace */ - RTEKind rtekind; /* RELATION, SUBQUERY, FUNCTION, etc */ - AttrNumber min_attr; /* smallest attrno of rel (often <0) */ - AttrNumber max_attr; /* largest attrno of rel */ - Relids *attr_needed; /* array indexed [min_attr .. max_attr] */ - int32 *attr_widths; /* array indexed [min_attr .. max_attr] */ - List *lateral_vars; /* LATERAL Vars and PHVs referenced by rel */ - Relids lateral_referencers; /* rels that reference me laterally */ - List *indexlist; /* list of IndexOptInfo */ - List *statlist; /* list of StatisticExtInfo */ - BlockNumber pages; /* size estimates derived from pg_class */ - Cardinality tuples; - double allvisfrac; - Bitmapset *eclass_indexes; /* Indexes in PlannerInfo's eq_classes list of - * ECs that mention this rel */ - PlannerInfo *subroot; /* if subquery */ - List *subplan_params; /* if subquery */ - int rel_parallel_workers; /* wanted number of parallel workers */ - uint32 amflags; /* Bitmask of optional features supported by - * the table AM */ - - /* Information about foreign tables and foreign joins */ - Oid serverid; /* identifies server for the table or join */ - Oid userid; /* identifies user to check access as */ - bool useridiscurrent; /* join is only valid for current user */ - /* use "struct FdwRoutine" to avoid including fdwapi.h here */ - struct FdwRoutine *fdwroutine; - void *fdw_private; - - /* cache space for remembering if we have proven this relation unique */ - List *unique_for_rels; /* known unique for these other relid - * set(s) */ - List *non_unique_for_rels; /* known not unique for these set(s) */ - - /* used by various scans and joins: */ - List *baserestrictinfo; /* RestrictInfo structures (if base rel) */ - QualCost baserestrictcost; /* cost of evaluating the above */ - Index baserestrict_min_security; /* min security_level found in - * baserestrictinfo */ - List *joininfo; /* RestrictInfo structures for join clauses - * involving this rel */ - bool has_eclass_joins; /* T means joininfo is incomplete */ - - /* used by partitionwise joins: */ - bool consider_partitionwise_join; /* consider partitionwise join - * paths? (if partitioned rel) */ - Relids top_parent_relids; /* Relids of topmost parents (if "other" - * rel) */ - - /* used for partitioned relations: */ - PartitionScheme part_scheme; /* Partitioning scheme */ - int nparts; /* Number of partitions; -1 if not yet set; in - * case of a join relation 0 means it's - * considered unpartitioned */ - struct PartitionBoundInfoData *boundinfo; /* Partition bounds */ - bool partbounds_merged; /* True if partition bounds were created - * by partition_bounds_merge() */ - List *partition_qual; /* Partition constraint, if not the root */ - struct RelOptInfo **part_rels; /* Array of RelOptInfos of partitions, - * stored in the same order as bounds */ - Bitmapset *live_parts; /* Bitmap with members acting as indexes into - * the part_rels[] array to indicate which - * partitions survived partition pruning. */ - Relids all_partrels; /* Relids set of all partition relids */ - List **partexprs; /* Non-nullable partition key expressions */ - List **nullable_partexprs; /* Nullable partition key expressions */ -} RelOptInfo; - -/* - * Is given relation partitioned? - * - * It's not enough to test whether rel->part_scheme is set, because it might - * be that the basic partitioning properties of the input relations matched - * but the partition bounds did not. Also, if we are able to prove a rel - * dummy (empty), we should henceforth treat it as unpartitioned. - */ -#define IS_PARTITIONED_REL(rel) \ - ((rel)->part_scheme && (rel)->boundinfo && (rel)->nparts > 0 && \ - (rel)->part_rels && !IS_DUMMY_REL(rel)) - -/* - * Convenience macro to make sure that a partitioned relation has all the - * required members set. - */ -#define REL_HAS_ALL_PART_PROPS(rel) \ - ((rel)->part_scheme && (rel)->boundinfo && (rel)->nparts > 0 && \ - (rel)->part_rels && (rel)->partexprs && (rel)->nullable_partexprs) - -/* - * IndexOptInfo - * Per-index information for planning/optimization - * - * indexkeys[], indexcollations[] each have ncolumns entries. - * opfamily[], and opcintype[] each have nkeycolumns entries. They do - * not contain any information about included attributes. - * - * sortopfamily[], reverse_sort[], and nulls_first[] have - * nkeycolumns entries, if the index is ordered; but if it is unordered, - * those pointers are NULL. - * - * Zeroes in the indexkeys[] array indicate index columns that are - * expressions; there is one element in indexprs for each such column. - * - * For an ordered index, reverse_sort[] and nulls_first[] describe the - * sort ordering of a forward indexscan; we can also consider a backward - * indexscan, which will generate the reverse ordering. - * - * The indexprs and indpred expressions have been run through - * prepqual.c and eval_const_expressions() for ease of matching to - * WHERE clauses. indpred is in implicit-AND form. - * - * indextlist is a TargetEntry list representing the index columns. - * It provides an equivalent base-relation Var for each simple column, - * and links to the matching indexprs element for each expression column. - * - * While most of these fields are filled when the IndexOptInfo is created - * (by plancat.c), indrestrictinfo and predOK are set later, in - * check_index_predicates(). - */ -#ifndef HAVE_INDEXOPTINFO_TYPEDEF -typedef struct IndexOptInfo IndexOptInfo; -#define HAVE_INDEXOPTINFO_TYPEDEF 1 -#endif - -struct IndexOptInfo -{ - NodeTag type; - - Oid indexoid; /* OID of the index relation */ - Oid reltablespace; /* tablespace of index (not table) */ - RelOptInfo *rel; /* back-link to index's table */ - - /* index-size statistics (from pg_class and elsewhere) */ - BlockNumber pages; /* number of disk pages in index */ - Cardinality tuples; /* number of index tuples in index */ - int tree_height; /* index tree height, or -1 if unknown */ - - /* index descriptor information */ - int ncolumns; /* number of columns in index */ - int nkeycolumns; /* number of key columns in index */ - int *indexkeys; /* column numbers of index's attributes both - * key and included columns, or 0 */ - Oid *indexcollations; /* OIDs of collations of index columns */ - Oid *opfamily; /* OIDs of operator families for columns */ - Oid *opcintype; /* OIDs of opclass declared input data types */ - Oid *sortopfamily; /* OIDs of btree opfamilies, if orderable */ - bool *reverse_sort; /* is sort order descending? */ - bool *nulls_first; /* do NULLs come first in the sort order? */ - bytea **opclassoptions; /* opclass-specific options for columns */ - bool *canreturn; /* which index cols can be returned in an - * index-only scan? */ - Oid relam; /* OID of the access method (in pg_am) */ - - List *indexprs; /* expressions for non-simple index columns */ - List *indpred; /* predicate if a partial index, else NIL */ - - List *indextlist; /* targetlist representing index columns */ - - List *indrestrictinfo; /* parent relation's baserestrictinfo - * list, less any conditions implied by - * the index's predicate (unless it's a - * target rel, see comments in - * check_index_predicates()) */ - - bool predOK; /* true if index predicate matches query */ - bool unique; /* true if a unique index */ - bool immediate; /* is uniqueness enforced immediately? */ - bool hypothetical; /* true if index doesn't really exist */ - - /* Remaining fields are copied from the index AM's API struct: */ - bool amcanorderbyop; /* does AM support order by operator result? */ - bool amoptionalkey; /* can query omit key for the first column? */ - bool amsearcharray; /* can AM handle ScalarArrayOpExpr quals? */ - bool amsearchnulls; /* can AM search for NULL/NOT NULL entries? */ - bool amhasgettuple; /* does AM have amgettuple interface? */ - bool amhasgetbitmap; /* does AM have amgetbitmap interface? */ - bool amcanparallel; /* does AM support parallel scan? */ - bool amcanmarkpos; /* does AM support mark/restore? */ - /* Rather than include amapi.h here, we declare amcostestimate like this */ - void (*amcostestimate) (); /* AM's cost estimator */ -}; - -/* - * ForeignKeyOptInfo - * Per-foreign-key information for planning/optimization - * - * The per-FK-column arrays can be fixed-size because we allow at most - * INDEX_MAX_KEYS columns in a foreign key constraint. Each array has - * nkeys valid entries. - */ -typedef struct ForeignKeyOptInfo -{ - NodeTag type; - - /* Basic data about the foreign key (fetched from catalogs): */ - Index con_relid; /* RT index of the referencing table */ - Index ref_relid; /* RT index of the referenced table */ - int nkeys; /* number of columns in the foreign key */ - AttrNumber conkey[INDEX_MAX_KEYS]; /* cols in referencing table */ - AttrNumber confkey[INDEX_MAX_KEYS]; /* cols in referenced table */ - Oid conpfeqop[INDEX_MAX_KEYS]; /* PK = FK operator OIDs */ - - /* Derived info about whether FK's equality conditions match the query: */ - int nmatched_ec; /* # of FK cols matched by ECs */ - int nconst_ec; /* # of these ECs that are ec_has_const */ - int nmatched_rcols; /* # of FK cols matched by non-EC rinfos */ - int nmatched_ri; /* total # of non-EC rinfos matched to FK */ - /* Pointer to eclass matching each column's condition, if there is one */ - struct EquivalenceClass *eclass[INDEX_MAX_KEYS]; - /* Pointer to eclass member for the referencing Var, if there is one */ - struct EquivalenceMember *fk_eclass_member[INDEX_MAX_KEYS]; - /* List of non-EC RestrictInfos matching each column's condition */ - List *rinfos[INDEX_MAX_KEYS]; -} ForeignKeyOptInfo; - -/* - * StatisticExtInfo - * Information about extended statistics for planning/optimization - * - * Each pg_statistic_ext row is represented by one or more nodes of this - * type, or even zero if ANALYZE has not computed them. - */ -typedef struct StatisticExtInfo -{ - NodeTag type; - - Oid statOid; /* OID of the statistics row */ - bool inherit; /* includes child relations */ - RelOptInfo *rel; /* back-link to statistic's table */ - char kind; /* statistics kind of this entry */ - Bitmapset *keys; /* attnums of the columns covered */ - List *exprs; /* expressions */ -} StatisticExtInfo; - -/* - * EquivalenceClasses - * - * Whenever we can determine that a mergejoinable equality clause A = B is - * not delayed by any outer join, we create an EquivalenceClass containing - * the expressions A and B to record this knowledge. If we later find another - * equivalence B = C, we add C to the existing EquivalenceClass; this may - * require merging two existing EquivalenceClasses. At the end of the qual - * distribution process, we have sets of values that are known all transitively - * equal to each other, where "equal" is according to the rules of the btree - * operator family(s) shown in ec_opfamilies, as well as the collation shown - * by ec_collation. (We restrict an EC to contain only equalities whose - * operators belong to the same set of opfamilies. This could probably be - * relaxed, but for now it's not worth the trouble, since nearly all equality - * operators belong to only one btree opclass anyway. Similarly, we suppose - * that all or none of the input datatypes are collatable, so that a single - * collation value is sufficient.) - * - * We also use EquivalenceClasses as the base structure for PathKeys, letting - * us represent knowledge about different sort orderings being equivalent. - * Since every PathKey must reference an EquivalenceClass, we will end up - * with single-member EquivalenceClasses whenever a sort key expression has - * not been equivalenced to anything else. It is also possible that such an - * EquivalenceClass will contain a volatile expression ("ORDER BY random()"), - * which is a case that can't arise otherwise since clauses containing - * volatile functions are never considered mergejoinable. We mark such - * EquivalenceClasses specially to prevent them from being merged with - * ordinary EquivalenceClasses. Also, for volatile expressions we have - * to be careful to match the EquivalenceClass to the correct targetlist - * entry: consider SELECT random() AS a, random() AS b ... ORDER BY b,a. - * So we record the SortGroupRef of the originating sort clause. - * - * We allow equality clauses appearing below the nullable side of an outer join - * to form EquivalenceClasses, but these have a slightly different meaning: - * the included values might be all NULL rather than all the same non-null - * values. See src/backend/optimizer/README for more on that point. - * - * NB: if ec_merged isn't NULL, this class has been merged into another, and - * should be ignored in favor of using the pointed-to class. - */ -typedef struct EquivalenceClass -{ - NodeTag type; - - List *ec_opfamilies; /* btree operator family OIDs */ - Oid ec_collation; /* collation, if datatypes are collatable */ - List *ec_members; /* list of EquivalenceMembers */ - List *ec_sources; /* list of generating RestrictInfos */ - List *ec_derives; /* list of derived RestrictInfos */ - Relids ec_relids; /* all relids appearing in ec_members, except - * for child members (see below) */ - bool ec_has_const; /* any pseudoconstants in ec_members? */ - bool ec_has_volatile; /* the (sole) member is a volatile expr */ - bool ec_below_outer_join; /* equivalence applies below an OJ */ - bool ec_broken; /* failed to generate needed clauses? */ - Index ec_sortref; /* originating sortclause label, or 0 */ - Index ec_min_security; /* minimum security_level in ec_sources */ - Index ec_max_security; /* maximum security_level in ec_sources */ - struct EquivalenceClass *ec_merged; /* set if merged into another EC */ -} EquivalenceClass; - -/* - * If an EC contains a const and isn't below-outer-join, any PathKey depending - * on it must be redundant, since there's only one possible value of the key. - */ -#define EC_MUST_BE_REDUNDANT(eclass) \ - ((eclass)->ec_has_const && !(eclass)->ec_below_outer_join) - -/* - * EquivalenceMember - one member expression of an EquivalenceClass - * - * em_is_child signifies that this element was built by transposing a member - * for an appendrel parent relation to represent the corresponding expression - * for an appendrel child. These members are used for determining the - * pathkeys of scans on the child relation and for explicitly sorting the - * child when necessary to build a MergeAppend path for the whole appendrel - * tree. An em_is_child member has no impact on the properties of the EC as a - * whole; in particular the EC's ec_relids field does NOT include the child - * relation. An em_is_child member should never be marked em_is_const nor - * cause ec_has_const or ec_has_volatile to be set, either. Thus, em_is_child - * members are not really full-fledged members of the EC, but just reflections - * or doppelgangers of real members. Most operations on EquivalenceClasses - * should ignore em_is_child members, and those that don't should test - * em_relids to make sure they only consider relevant members. - * - * em_datatype is usually the same as exprType(em_expr), but can be - * different when dealing with a binary-compatible opfamily; in particular - * anyarray_ops would never work without this. Use em_datatype when - * looking up a specific btree operator to work with this expression. - */ -typedef struct EquivalenceMember -{ - NodeTag type; - - Expr *em_expr; /* the expression represented */ - Relids em_relids; /* all relids appearing in em_expr */ - Relids em_nullable_relids; /* nullable by lower outer joins */ - bool em_is_const; /* expression is pseudoconstant? */ - bool em_is_child; /* derived version for a child relation? */ - Oid em_datatype; /* the "nominal type" used by the opfamily */ -} EquivalenceMember; - -/* - * PathKeys - * - * The sort ordering of a path is represented by a list of PathKey nodes. - * An empty list implies no known ordering. Otherwise the first item - * represents the primary sort key, the second the first secondary sort key, - * etc. The value being sorted is represented by linking to an - * EquivalenceClass containing that value and including pk_opfamily among its - * ec_opfamilies. The EquivalenceClass tells which collation to use, too. - * This is a convenient method because it makes it trivial to detect - * equivalent and closely-related orderings. (See optimizer/README for more - * information.) - * - * Note: pk_strategy is either BTLessStrategyNumber (for ASC) or - * BTGreaterStrategyNumber (for DESC). We assume that all ordering-capable - * index types will use btree-compatible strategy numbers. - */ -typedef struct PathKey -{ - NodeTag type; - - EquivalenceClass *pk_eclass; /* the value that is ordered */ - Oid pk_opfamily; /* btree opfamily defining the ordering */ - int pk_strategy; /* sort direction (ASC or DESC) */ - bool pk_nulls_first; /* do NULLs come before normal values? */ -} PathKey; - -/* - * VolatileFunctionStatus -- allows nodes to cache their - * contain_volatile_functions properties. VOLATILITY_UNKNOWN means not yet - * determined. - */ -typedef enum VolatileFunctionStatus -{ - VOLATILITY_UNKNOWN = 0, - VOLATILITY_VOLATILE, - VOLATILITY_NOVOLATILE -} VolatileFunctionStatus; - -/* - * PathTarget - * - * This struct contains what we need to know during planning about the - * targetlist (output columns) that a Path will compute. Each RelOptInfo - * includes a default PathTarget, which its individual Paths may simply - * reference. However, in some cases a Path may compute outputs different - * from other Paths, and in that case we make a custom PathTarget for it. - * For example, an indexscan might return index expressions that would - * otherwise need to be explicitly calculated. (Note also that "upper" - * relations generally don't have useful default PathTargets.) - * - * exprs contains bare expressions; they do not have TargetEntry nodes on top, - * though those will appear in finished Plans. - * - * sortgrouprefs[] is an array of the same length as exprs, containing the - * corresponding sort/group refnos, or zeroes for expressions not referenced - * by sort/group clauses. If sortgrouprefs is NULL (which it generally is in - * RelOptInfo.reltarget targets; only upper-level Paths contain this info), - * we have not identified sort/group columns in this tlist. This allows us to - * deal with sort/group refnos when needed with less expense than including - * TargetEntry nodes in the exprs list. - */ -typedef struct PathTarget -{ - NodeTag type; - List *exprs; /* list of expressions to be computed */ - Index *sortgrouprefs; /* corresponding sort/group refnos, or 0 */ - QualCost cost; /* cost of evaluating the expressions */ - int width; /* estimated avg width of result tuples */ - VolatileFunctionStatus has_volatile_expr; /* indicates if exprs contain - * any volatile functions. */ -} PathTarget; - -/* Convenience macro to get a sort/group refno from a PathTarget */ -#define get_pathtarget_sortgroupref(target, colno) \ - ((target)->sortgrouprefs ? (target)->sortgrouprefs[colno] : (Index) 0) - - -/* - * ParamPathInfo - * - * All parameterized paths for a given relation with given required outer rels - * link to a single ParamPathInfo, which stores common information such as - * the estimated rowcount for this parameterization. We do this partly to - * avoid recalculations, but mostly to ensure that the estimated rowcount - * is in fact the same for every such path. - * - * Note: ppi_clauses is only used in ParamPathInfos for base relation paths; - * in join cases it's NIL because the set of relevant clauses varies depending - * on how the join is formed. The relevant clauses will appear in each - * parameterized join path's joinrestrictinfo list, instead. - */ -typedef struct ParamPathInfo -{ - NodeTag type; - - Relids ppi_req_outer; /* rels supplying parameters used by path */ - Cardinality ppi_rows; /* estimated number of result tuples */ - List *ppi_clauses; /* join clauses available from outer rels */ -} ParamPathInfo; - - -/* - * Type "Path" is used as-is for sequential-scan paths, as well as some other - * simple plan types that we don't need any extra information in the path for. - * For other path types it is the first component of a larger struct. - * - * "pathtype" is the NodeTag of the Plan node we could build from this Path. - * It is partially redundant with the Path's NodeTag, but allows us to use - * the same Path type for multiple Plan types when there is no need to - * distinguish the Plan type during path processing. - * - * "parent" identifies the relation this Path scans, and "pathtarget" - * describes the precise set of output columns the Path would compute. - * In simple cases all Paths for a given rel share the same targetlist, - * which we represent by having path->pathtarget equal to parent->reltarget. - * - * "param_info", if not NULL, links to a ParamPathInfo that identifies outer - * relation(s) that provide parameter values to each scan of this path. - * That means this path can only be joined to those rels by means of nestloop - * joins with this path on the inside. Also note that a parameterized path - * is responsible for testing all "movable" joinclauses involving this rel - * and the specified outer rel(s). - * - * "rows" is the same as parent->rows in simple paths, but in parameterized - * paths and UniquePaths it can be less than parent->rows, reflecting the - * fact that we've filtered by extra join conditions or removed duplicates. - * - * "pathkeys" is a List of PathKey nodes (see above), describing the sort - * ordering of the path's output rows. - */ -typedef struct Path -{ - NodeTag type; - - NodeTag pathtype; /* tag identifying scan/join method */ - - RelOptInfo *parent; /* the relation this path can build */ - PathTarget *pathtarget; /* list of Vars/Exprs, cost, width */ - - ParamPathInfo *param_info; /* parameterization info, or NULL if none */ - - bool parallel_aware; /* engage parallel-aware logic? */ - bool parallel_safe; /* OK to use as part of parallel plan? */ - int parallel_workers; /* desired # of workers; 0 = not parallel */ - - /* estimated size/costs for path (see costsize.c for more info) */ - Cardinality rows; /* estimated number of result tuples */ - Cost startup_cost; /* cost expended before fetching any tuples */ - Cost total_cost; /* total cost (assuming all tuples fetched) */ - - List *pathkeys; /* sort ordering of path's output */ - /* pathkeys is a List of PathKey nodes; see above */ -} Path; - -/* Macro for extracting a path's parameterization relids; beware double eval */ -#define PATH_REQ_OUTER(path) \ - ((path)->param_info ? (path)->param_info->ppi_req_outer : (Relids) NULL) - -/*---------- - * IndexPath represents an index scan over a single index. - * - * This struct is used for both regular indexscans and index-only scans; - * path.pathtype is T_IndexScan or T_IndexOnlyScan to show which is meant. - * - * 'indexinfo' is the index to be scanned. - * - * 'indexclauses' is a list of IndexClause nodes, each representing one - * index-checkable restriction, with implicit AND semantics across the list. - * An empty list implies a full index scan. - * - * 'indexorderbys', if not NIL, is a list of ORDER BY expressions that have - * been found to be usable as ordering operators for an amcanorderbyop index. - * The list must match the path's pathkeys, ie, one expression per pathkey - * in the same order. These are not RestrictInfos, just bare expressions, - * since they generally won't yield booleans. It's guaranteed that each - * expression has the index key on the left side of the operator. - * - * 'indexorderbycols' is an integer list of index column numbers (zero-based) - * of the same length as 'indexorderbys', showing which index column each - * ORDER BY expression is meant to be used with. (There is no restriction - * on which index column each ORDER BY can be used with.) - * - * 'indexscandir' is one of: - * ForwardScanDirection: forward scan of an ordered index - * BackwardScanDirection: backward scan of an ordered index - * NoMovementScanDirection: scan of an unordered index, or don't care - * (The executor doesn't care whether it gets ForwardScanDirection or - * NoMovementScanDirection for an indexscan, but the planner wants to - * distinguish ordered from unordered indexes for building pathkeys.) - * - * 'indextotalcost' and 'indexselectivity' are saved in the IndexPath so that - * we need not recompute them when considering using the same index in a - * bitmap index/heap scan (see BitmapHeapPath). The costs of the IndexPath - * itself represent the costs of an IndexScan or IndexOnlyScan plan type. - *---------- - */ -typedef struct IndexPath -{ - Path path; - IndexOptInfo *indexinfo; - List *indexclauses; - List *indexorderbys; - List *indexorderbycols; - ScanDirection indexscandir; - Cost indextotalcost; - Selectivity indexselectivity; -} IndexPath; - -/* - * Each IndexClause references a RestrictInfo node from the query's WHERE - * or JOIN conditions, and shows how that restriction can be applied to - * the particular index. We support both indexclauses that are directly - * usable by the index machinery, which are typically of the form - * "indexcol OP pseudoconstant", and those from which an indexable qual - * can be derived. The simplest such transformation is that a clause - * of the form "pseudoconstant OP indexcol" can be commuted to produce an - * indexable qual (the index machinery expects the indexcol to be on the - * left always). Another example is that we might be able to extract an - * indexable range condition from a LIKE condition, as in "x LIKE 'foo%bar'" - * giving rise to "x >= 'foo' AND x < 'fop'". Derivation of such lossy - * conditions is done by a planner support function attached to the - * indexclause's top-level function or operator. - * - * indexquals is a list of RestrictInfos for the directly-usable index - * conditions associated with this IndexClause. In the simplest case - * it's a one-element list whose member is iclause->rinfo. Otherwise, - * it contains one or more directly-usable indexqual conditions extracted - * from the given clause. The 'lossy' flag indicates whether the - * indexquals are semantically equivalent to the original clause, or - * represent a weaker condition. - * - * Normally, indexcol is the index of the single index column the clause - * works on, and indexcols is NIL. But if the clause is a RowCompareExpr, - * indexcol is the index of the leading column, and indexcols is a list of - * all the affected columns. (Note that indexcols matches up with the - * columns of the actual indexable RowCompareExpr in indexquals, which - * might be different from the original in rinfo.) - * - * An IndexPath's IndexClause list is required to be ordered by index - * column, i.e. the indexcol values must form a nondecreasing sequence. - * (The order of multiple clauses for the same index column is unspecified.) - */ -typedef struct IndexClause -{ - NodeTag type; - struct RestrictInfo *rinfo; /* original restriction or join clause */ - List *indexquals; /* indexqual(s) derived from it */ - bool lossy; /* are indexquals a lossy version of clause? */ - AttrNumber indexcol; /* index column the clause uses (zero-based) */ - List *indexcols; /* multiple index columns, if RowCompare */ -} IndexClause; - -/* - * BitmapHeapPath represents one or more indexscans that generate TID bitmaps - * instead of directly accessing the heap, followed by AND/OR combinations - * to produce a single bitmap, followed by a heap scan that uses the bitmap. - * Note that the output is always considered unordered, since it will come - * out in physical heap order no matter what the underlying indexes did. - * - * The individual indexscans are represented by IndexPath nodes, and any - * logic on top of them is represented by a tree of BitmapAndPath and - * BitmapOrPath nodes. Notice that we can use the same IndexPath node both - * to represent a regular (or index-only) index scan plan, and as the child - * of a BitmapHeapPath that represents scanning the same index using a - * BitmapIndexScan. The startup_cost and total_cost figures of an IndexPath - * always represent the costs to use it as a regular (or index-only) - * IndexScan. The costs of a BitmapIndexScan can be computed using the - * IndexPath's indextotalcost and indexselectivity. - */ -typedef struct BitmapHeapPath -{ - Path path; - Path *bitmapqual; /* IndexPath, BitmapAndPath, BitmapOrPath */ -} BitmapHeapPath; - -/* - * BitmapAndPath represents a BitmapAnd plan node; it can only appear as - * part of the substructure of a BitmapHeapPath. The Path structure is - * a bit more heavyweight than we really need for this, but for simplicity - * we make it a derivative of Path anyway. - */ -typedef struct BitmapAndPath -{ - Path path; - List *bitmapquals; /* IndexPaths and BitmapOrPaths */ - Selectivity bitmapselectivity; -} BitmapAndPath; - -/* - * BitmapOrPath represents a BitmapOr plan node; it can only appear as - * part of the substructure of a BitmapHeapPath. The Path structure is - * a bit more heavyweight than we really need for this, but for simplicity - * we make it a derivative of Path anyway. - */ -typedef struct BitmapOrPath -{ - Path path; - List *bitmapquals; /* IndexPaths and BitmapAndPaths */ - Selectivity bitmapselectivity; -} BitmapOrPath; - -/* - * TidPath represents a scan by TID - * - * tidquals is an implicitly OR'ed list of qual expressions of the form - * "CTID = pseudoconstant", or "CTID = ANY(pseudoconstant_array)", - * or a CurrentOfExpr for the relation. - */ -typedef struct TidPath -{ - Path path; - List *tidquals; /* qual(s) involving CTID = something */ -} TidPath; - -/* - * TidRangePath represents a scan by a contiguous range of TIDs - * - * tidrangequals is an implicitly AND'ed list of qual expressions of the form - * "CTID relop pseudoconstant", where relop is one of >,>=,<,<=. - */ -typedef struct TidRangePath -{ - Path path; - List *tidrangequals; -} TidRangePath; - -/* - * SubqueryScanPath represents a scan of an unflattened subquery-in-FROM - * - * Note that the subpath comes from a different planning domain; for example - * RTE indexes within it mean something different from those known to the - * SubqueryScanPath. path.parent->subroot is the planning context needed to - * interpret the subpath. - */ -typedef struct SubqueryScanPath -{ - Path path; - Path *subpath; /* path representing subquery execution */ -} SubqueryScanPath; - -/* - * ForeignPath represents a potential scan of a foreign table, foreign join - * or foreign upper-relation. - * - * fdw_private stores FDW private data about the scan. While fdw_private is - * not actually touched by the core code during normal operations, it's - * generally a good idea to use a representation that can be dumped by - * nodeToString(), so that you can examine the structure during debugging - * with tools like pprint(). - */ -typedef struct ForeignPath -{ - Path path; - Path *fdw_outerpath; - List *fdw_private; -} ForeignPath; - -/* - * CustomPath represents a table scan done by some out-of-core extension. - * - * We provide a set of hooks here - which the provider must take care to set - * up correctly - to allow extensions to supply their own methods of scanning - * a relation. For example, a provider might provide GPU acceleration, a - * cache-based scan, or some other kind of logic we haven't dreamed up yet. - * - * CustomPaths can be injected into the planning process for a relation by - * set_rel_pathlist_hook functions. - * - * Core code must avoid assuming that the CustomPath is only as large as - * the structure declared here; providers are allowed to make it the first - * element in a larger structure. (Since the planner never copies Paths, - * this doesn't add any complication.) However, for consistency with the - * FDW case, we provide a "custom_private" field in CustomPath; providers - * may prefer to use that rather than define another struct type. - */ - -struct CustomPathMethods; - -typedef struct CustomPath -{ - Path path; - uint32 flags; /* mask of CUSTOMPATH_* flags, see - * nodes/extensible.h */ - List *custom_paths; /* list of child Path nodes, if any */ - List *custom_private; - const struct CustomPathMethods *methods; -} CustomPath; - -/* - * AppendPath represents an Append plan, ie, successive execution of - * several member plans. - * - * For partial Append, 'subpaths' contains non-partial subpaths followed by - * partial subpaths. - * - * Note: it is possible for "subpaths" to contain only one, or even no, - * elements. These cases are optimized during create_append_plan. - * In particular, an AppendPath with no subpaths is a "dummy" path that - * is created to represent the case that a relation is provably empty. - * (This is a convenient representation because it means that when we build - * an appendrel and find that all its children have been excluded, no extra - * action is needed to recognize the relation as dummy.) - */ -typedef struct AppendPath -{ - Path path; - List *subpaths; /* list of component Paths */ - /* Index of first partial path in subpaths; list_length(subpaths) if none */ - int first_partial_path; - Cardinality limit_tuples; /* hard limit on output tuples, or -1 */ -} AppendPath; - -#define IS_DUMMY_APPEND(p) \ - (IsA((p), AppendPath) && ((AppendPath *) (p))->subpaths == NIL) - -/* - * A relation that's been proven empty will have one path that is dummy - * (but might have projection paths on top). For historical reasons, - * this is provided as a macro that wraps is_dummy_rel(). - */ -#define IS_DUMMY_REL(r) is_dummy_rel(r) -extern bool is_dummy_rel(RelOptInfo *rel); - -/* - * MergeAppendPath represents a MergeAppend plan, ie, the merging of sorted - * results from several member plans to produce similarly-sorted output. - */ -typedef struct MergeAppendPath -{ - Path path; - List *subpaths; /* list of component Paths */ - Cardinality limit_tuples; /* hard limit on output tuples, or -1 */ -} MergeAppendPath; - -/* - * GroupResultPath represents use of a Result plan node to compute the - * output of a degenerate GROUP BY case, wherein we know we should produce - * exactly one row, which might then be filtered by a HAVING qual. - * - * Note that quals is a list of bare clauses, not RestrictInfos. - */ -typedef struct GroupResultPath -{ - Path path; - List *quals; -} GroupResultPath; - -/* - * MaterialPath represents use of a Material plan node, i.e., caching of - * the output of its subpath. This is used when the subpath is expensive - * and needs to be scanned repeatedly, or when we need mark/restore ability - * and the subpath doesn't have it. - */ -typedef struct MaterialPath -{ - Path path; - Path *subpath; -} MaterialPath; - -/* - * MemoizePath represents a Memoize plan node, i.e., a cache that caches - * tuples from parameterized paths to save the underlying node from having to - * be rescanned for parameter values which are already cached. - */ -typedef struct MemoizePath -{ - Path path; - Path *subpath; /* outerpath to cache tuples from */ - List *hash_operators; /* hash operators for each key */ - List *param_exprs; /* cache keys */ - bool singlerow; /* true if the cache entry is to be marked as - * complete after caching the first record. */ - bool binary_mode; /* true when cache key should be compared bit - * by bit, false when using hash equality ops */ - Cardinality calls; /* expected number of rescans */ - uint32 est_entries; /* The maximum number of entries that the - * planner expects will fit in the cache, or 0 - * if unknown */ -} MemoizePath; - -/* - * UniquePath represents elimination of distinct rows from the output of - * its subpath. - * - * This can represent significantly different plans: either hash-based or - * sort-based implementation, or a no-op if the input path can be proven - * distinct already. The decision is sufficiently localized that it's not - * worth having separate Path node types. (Note: in the no-op case, we could - * eliminate the UniquePath node entirely and just return the subpath; but - * it's convenient to have a UniquePath in the path tree to signal upper-level - * routines that the input is known distinct.) - */ -typedef enum UniquePathMethod -{ - UNIQUE_PATH_NOOP, /* input is known unique already */ - UNIQUE_PATH_HASH, /* use hashing */ - UNIQUE_PATH_SORT /* use sorting */ -} UniquePathMethod; - -typedef struct UniquePath -{ - Path path; - Path *subpath; - UniquePathMethod umethod; - List *in_operators; /* equality operators of the IN clause */ - List *uniq_exprs; /* expressions to be made unique */ -} UniquePath; - -/* - * GatherPath runs several copies of a plan in parallel and collects the - * results. The parallel leader may also execute the plan, unless the - * single_copy flag is set. - */ -typedef struct GatherPath -{ - Path path; - Path *subpath; /* path for each worker */ - bool single_copy; /* don't execute path more than once */ - int num_workers; /* number of workers sought to help */ -} GatherPath; - -/* - * GatherMergePath runs several copies of a plan in parallel and collects - * the results, preserving their common sort order. - */ -typedef struct GatherMergePath -{ - Path path; - Path *subpath; /* path for each worker */ - int num_workers; /* number of workers sought to help */ -} GatherMergePath; - - -/* - * All join-type paths share these fields. - */ - -typedef struct JoinPath -{ - Path path; - - JoinType jointype; - - bool inner_unique; /* each outer tuple provably matches no more - * than one inner tuple */ - - Path *outerjoinpath; /* path for the outer side of the join */ - Path *innerjoinpath; /* path for the inner side of the join */ - - List *joinrestrictinfo; /* RestrictInfos to apply to join */ - - /* - * See the notes for RelOptInfo and ParamPathInfo to understand why - * joinrestrictinfo is needed in JoinPath, and can't be merged into the - * parent RelOptInfo. - */ -} JoinPath; - -/* - * A nested-loop path needs no special fields. - */ - -typedef struct NestPath -{ - JoinPath jpath; -} NestPath; - -/* - * A mergejoin path has these fields. - * - * Unlike other path types, a MergePath node doesn't represent just a single - * run-time plan node: it can represent up to four. Aside from the MergeJoin - * node itself, there can be a Sort node for the outer input, a Sort node - * for the inner input, and/or a Material node for the inner input. We could - * represent these nodes by separate path nodes, but considering how many - * different merge paths are investigated during a complex join problem, - * it seems better to avoid unnecessary palloc overhead. - * - * path_mergeclauses lists the clauses (in the form of RestrictInfos) - * that will be used in the merge. - * - * Note that the mergeclauses are a subset of the parent relation's - * restriction-clause list. Any join clauses that are not mergejoinable - * appear only in the parent's restrict list, and must be checked by a - * qpqual at execution time. - * - * outersortkeys (resp. innersortkeys) is NIL if the outer path - * (resp. inner path) is already ordered appropriately for the - * mergejoin. If it is not NIL then it is a PathKeys list describing - * the ordering that must be created by an explicit Sort node. - * - * skip_mark_restore is true if the executor need not do mark/restore calls. - * Mark/restore overhead is usually required, but can be skipped if we know - * that the executor need find only one match per outer tuple, and that the - * mergeclauses are sufficient to identify a match. In such cases the - * executor can immediately advance the outer relation after processing a - * match, and therefore it need never back up the inner relation. - * - * materialize_inner is true if a Material node should be placed atop the - * inner input. This may appear with or without an inner Sort step. - */ - -typedef struct MergePath -{ - JoinPath jpath; - List *path_mergeclauses; /* join clauses to be used for merge */ - List *outersortkeys; /* keys for explicit sort, if any */ - List *innersortkeys; /* keys for explicit sort, if any */ - bool skip_mark_restore; /* can executor skip mark/restore? */ - bool materialize_inner; /* add Materialize to inner? */ -} MergePath; - -/* - * A hashjoin path has these fields. - * - * The remarks above for mergeclauses apply for hashclauses as well. - * - * Hashjoin does not care what order its inputs appear in, so we have - * no need for sortkeys. - */ - -typedef struct HashPath -{ - JoinPath jpath; - List *path_hashclauses; /* join clauses used for hashing */ - int num_batches; /* number of batches expected */ - Cardinality inner_rows_total; /* total inner rows expected */ -} HashPath; - -/* - * ProjectionPath represents a projection (that is, targetlist computation) - * - * Nominally, this path node represents using a Result plan node to do a - * projection step. However, if the input plan node supports projection, - * we can just modify its output targetlist to do the required calculations - * directly, and not need a Result. In some places in the planner we can just - * jam the desired PathTarget into the input path node (and adjust its cost - * accordingly), so we don't need a ProjectionPath. But in other places - * it's necessary to not modify the input path node, so we need a separate - * ProjectionPath node, which is marked dummy to indicate that we intend to - * assign the work to the input plan node. The estimated cost for the - * ProjectionPath node will account for whether a Result will be used or not. - */ -typedef struct ProjectionPath -{ - Path path; - Path *subpath; /* path representing input source */ - bool dummypp; /* true if no separate Result is needed */ -} ProjectionPath; - -/* - * ProjectSetPath represents evaluation of a targetlist that includes - * set-returning function(s), which will need to be implemented by a - * ProjectSet plan node. - */ -typedef struct ProjectSetPath -{ - Path path; - Path *subpath; /* path representing input source */ -} ProjectSetPath; - -/* - * SortPath represents an explicit sort step - * - * The sort keys are, by definition, the same as path.pathkeys. - * - * Note: the Sort plan node cannot project, so path.pathtarget must be the - * same as the input's pathtarget. - */ -typedef struct SortPath -{ - Path path; - Path *subpath; /* path representing input source */ -} SortPath; - -/* - * IncrementalSortPath represents an incremental sort step - * - * This is like a regular sort, except some leading key columns are assumed - * to be ordered already. - */ -typedef struct IncrementalSortPath -{ - SortPath spath; - int nPresortedCols; /* number of presorted columns */ -} IncrementalSortPath; - -/* - * GroupPath represents grouping (of presorted input) - * - * groupClause represents the columns to be grouped on; the input path - * must be at least that well sorted. - * - * We can also apply a qual to the grouped rows (equivalent of HAVING) - */ -typedef struct GroupPath -{ - Path path; - Path *subpath; /* path representing input source */ - List *groupClause; /* a list of SortGroupClause's */ - List *qual; /* quals (HAVING quals), if any */ -} GroupPath; - -/* - * UpperUniquePath represents adjacent-duplicate removal (in presorted input) - * - * The columns to be compared are the first numkeys columns of the path's - * pathkeys. The input is presumed already sorted that way. - */ -typedef struct UpperUniquePath -{ - Path path; - Path *subpath; /* path representing input source */ - int numkeys; /* number of pathkey columns to compare */ -} UpperUniquePath; - -/* - * AggPath represents generic computation of aggregate functions - * - * This may involve plain grouping (but not grouping sets), using either - * sorted or hashed grouping; for the AGG_SORTED case, the input must be - * appropriately presorted. - */ -typedef struct AggPath -{ - Path path; - Path *subpath; /* path representing input source */ - AggStrategy aggstrategy; /* basic strategy, see nodes.h */ - AggSplit aggsplit; /* agg-splitting mode, see nodes.h */ - Cardinality numGroups; /* estimated number of groups in input */ - uint64 transitionSpace; /* for pass-by-ref transition data */ - List *groupClause; /* a list of SortGroupClause's */ - List *qual; /* quals (HAVING quals), if any */ -} AggPath; - -/* - * Various annotations used for grouping sets in the planner. - */ - -typedef struct GroupingSetData -{ - NodeTag type; - List *set; /* grouping set as list of sortgrouprefs */ - Cardinality numGroups; /* est. number of result groups */ -} GroupingSetData; - -typedef struct RollupData -{ - NodeTag type; - List *groupClause; /* applicable subset of parse->groupClause */ - List *gsets; /* lists of integer indexes into groupClause */ - List *gsets_data; /* list of GroupingSetData */ - Cardinality numGroups; /* est. number of result groups */ - bool hashable; /* can be hashed */ - bool is_hashed; /* to be implemented as a hashagg */ -} RollupData; - -/* - * GroupingSetsPath represents a GROUPING SETS aggregation - */ - -typedef struct GroupingSetsPath -{ - Path path; - Path *subpath; /* path representing input source */ - AggStrategy aggstrategy; /* basic strategy */ - List *rollups; /* list of RollupData */ - List *qual; /* quals (HAVING quals), if any */ - uint64 transitionSpace; /* for pass-by-ref transition data */ -} GroupingSetsPath; - -/* - * MinMaxAggPath represents computation of MIN/MAX aggregates from indexes - */ -typedef struct MinMaxAggPath -{ - Path path; - List *mmaggregates; /* list of MinMaxAggInfo */ - List *quals; /* HAVING quals, if any */ -} MinMaxAggPath; - -/* - * WindowAggPath represents generic computation of window functions - */ -typedef struct WindowAggPath -{ - Path path; - Path *subpath; /* path representing input source */ - WindowClause *winclause; /* WindowClause we'll be using */ - List *qual; /* lower-level WindowAgg runconditions */ - bool topwindow; /* false for all apart from the WindowAgg - * that's closest to the root of the plan */ -} WindowAggPath; - -/* - * SetOpPath represents a set-operation, that is INTERSECT or EXCEPT - */ -typedef struct SetOpPath -{ - Path path; - Path *subpath; /* path representing input source */ - SetOpCmd cmd; /* what to do, see nodes.h */ - SetOpStrategy strategy; /* how to do it, see nodes.h */ - List *distinctList; /* SortGroupClauses identifying target cols */ - AttrNumber flagColIdx; /* where is the flag column, if any */ - int firstFlag; /* flag value for first input relation */ - Cardinality numGroups; /* estimated number of groups in input */ -} SetOpPath; - -/* - * RecursiveUnionPath represents a recursive UNION node - */ -typedef struct RecursiveUnionPath -{ - Path path; - Path *leftpath; /* paths representing input sources */ - Path *rightpath; - List *distinctList; /* SortGroupClauses identifying target cols */ - int wtParam; /* ID of Param representing work table */ - Cardinality numGroups; /* estimated number of groups in input */ -} RecursiveUnionPath; - -/* - * LockRowsPath represents acquiring row locks for SELECT FOR UPDATE/SHARE - */ -typedef struct LockRowsPath -{ - Path path; - Path *subpath; /* path representing input source */ - List *rowMarks; /* a list of PlanRowMark's */ - int epqParam; /* ID of Param for EvalPlanQual re-eval */ -} LockRowsPath; - -/* - * ModifyTablePath represents performing INSERT/UPDATE/DELETE/MERGE - * - * We represent most things that will be in the ModifyTable plan node - * literally, except we have a child Path not Plan. But analysis of the - * OnConflictExpr is deferred to createplan.c, as is collection of FDW data. - */ -typedef struct ModifyTablePath -{ - Path path; - Path *subpath; /* Path producing source data */ - CmdType operation; /* INSERT, UPDATE, DELETE, or MERGE */ - bool canSetTag; /* do we set the command tag/es_processed? */ - Index nominalRelation; /* Parent RT index for use of EXPLAIN */ - Index rootRelation; /* Root RT index, if target is partitioned */ - bool partColsUpdated; /* some part key in hierarchy updated? */ - List *resultRelations; /* integer list of RT indexes */ - List *updateColnosLists; /* per-target-table update_colnos lists */ - List *withCheckOptionLists; /* per-target-table WCO lists */ - List *returningLists; /* per-target-table RETURNING tlists */ - List *rowMarks; /* PlanRowMarks (non-locking only) */ - OnConflictExpr *onconflict; /* ON CONFLICT clause, or NULL */ - int epqParam; /* ID of Param for EvalPlanQual re-eval */ - List *mergeActionLists; /* per-target-table lists of actions for - * MERGE */ -} ModifyTablePath; - -/* - * LimitPath represents applying LIMIT/OFFSET restrictions - */ -typedef struct LimitPath -{ - Path path; - Path *subpath; /* path representing input source */ - Node *limitOffset; /* OFFSET parameter, or NULL if none */ - Node *limitCount; /* COUNT parameter, or NULL if none */ - LimitOption limitOption; /* FETCH FIRST with ties or exact number */ -} LimitPath; - - -/* - * Restriction clause info. - * - * We create one of these for each AND sub-clause of a restriction condition - * (WHERE or JOIN/ON clause). Since the restriction clauses are logically - * ANDed, we can use any one of them or any subset of them to filter out - * tuples, without having to evaluate the rest. The RestrictInfo node itself - * stores data used by the optimizer while choosing the best query plan. - * - * If a restriction clause references a single base relation, it will appear - * in the baserestrictinfo list of the RelOptInfo for that base rel. - * - * If a restriction clause references more than one base rel, it will - * appear in the joininfo list of every RelOptInfo that describes a strict - * subset of the base rels mentioned in the clause. The joininfo lists are - * used to drive join tree building by selecting plausible join candidates. - * The clause cannot actually be applied until we have built a join rel - * containing all the base rels it references, however. - * - * When we construct a join rel that includes all the base rels referenced - * in a multi-relation restriction clause, we place that clause into the - * joinrestrictinfo lists of paths for the join rel, if neither left nor - * right sub-path includes all base rels referenced in the clause. The clause - * will be applied at that join level, and will not propagate any further up - * the join tree. (Note: the "predicate migration" code was once intended to - * push restriction clauses up and down the plan tree based on evaluation - * costs, but it's dead code and is unlikely to be resurrected in the - * foreseeable future.) - * - * Note that in the presence of more than two rels, a multi-rel restriction - * might reach different heights in the join tree depending on the join - * sequence we use. So, these clauses cannot be associated directly with - * the join RelOptInfo, but must be kept track of on a per-join-path basis. - * - * RestrictInfos that represent equivalence conditions (i.e., mergejoinable - * equalities that are not outerjoin-delayed) are handled a bit differently. - * Initially we attach them to the EquivalenceClasses that are derived from - * them. When we construct a scan or join path, we look through all the - * EquivalenceClasses and generate derived RestrictInfos representing the - * minimal set of conditions that need to be checked for this particular scan - * or join to enforce that all members of each EquivalenceClass are in fact - * equal in all rows emitted by the scan or join. - * - * When dealing with outer joins we have to be very careful about pushing qual - * clauses up and down the tree. An outer join's own JOIN/ON conditions must - * be evaluated exactly at that join node, unless they are "degenerate" - * conditions that reference only Vars from the nullable side of the join. - * Quals appearing in WHERE or in a JOIN above the outer join cannot be pushed - * down below the outer join, if they reference any nullable Vars. - * RestrictInfo nodes contain a flag to indicate whether a qual has been - * pushed down to a lower level than its original syntactic placement in the - * join tree would suggest. If an outer join prevents us from pushing a qual - * down to its "natural" semantic level (the level associated with just the - * base rels used in the qual) then we mark the qual with a "required_relids" - * value including more than just the base rels it actually uses. By - * pretending that the qual references all the rels required to form the outer - * join, we prevent it from being evaluated below the outer join's joinrel. - * When we do form the outer join's joinrel, we still need to distinguish - * those quals that are actually in that join's JOIN/ON condition from those - * that appeared elsewhere in the tree and were pushed down to the join rel - * because they used no other rels. That's what the is_pushed_down flag is - * for; it tells us that a qual is not an OUTER JOIN qual for the set of base - * rels listed in required_relids. A clause that originally came from WHERE - * or an INNER JOIN condition will *always* have its is_pushed_down flag set. - * It's possible for an OUTER JOIN clause to be marked is_pushed_down too, - * if we decide that it can be pushed down into the nullable side of the join. - * In that case it acts as a plain filter qual for wherever it gets evaluated. - * (In short, is_pushed_down is only false for non-degenerate outer join - * conditions. Possibly we should rename it to reflect that meaning? But - * see also the comments for RINFO_IS_PUSHED_DOWN, below.) - * - * RestrictInfo nodes also contain an outerjoin_delayed flag, which is true - * if the clause's applicability must be delayed due to any outer joins - * appearing below it (ie, it has to be postponed to some join level higher - * than the set of relations it actually references). - * - * There is also an outer_relids field, which is NULL except for outer join - * clauses; for those, it is the set of relids on the outer side of the - * clause's outer join. (These are rels that the clause cannot be applied to - * in parameterized scans, since pushing it into the join's outer side would - * lead to wrong answers.) - * - * There is also a nullable_relids field, which is the set of rels the clause - * references that can be forced null by some outer join below the clause. - * - * outerjoin_delayed = true is subtly different from nullable_relids != NULL: - * a clause might reference some nullable rels and yet not be - * outerjoin_delayed because it also references all the other rels of the - * outer join(s). A clause that is not outerjoin_delayed can be enforced - * anywhere it is computable. - * - * To handle security-barrier conditions efficiently, we mark RestrictInfo - * nodes with a security_level field, in which higher values identify clauses - * coming from less-trusted sources. The exact semantics are that a clause - * cannot be evaluated before another clause with a lower security_level value - * unless the first clause is leakproof. As with outer-join clauses, this - * creates a reason for clauses to sometimes need to be evaluated higher in - * the join tree than their contents would suggest; and even at a single plan - * node, this rule constrains the order of application of clauses. - * - * In general, the referenced clause might be arbitrarily complex. The - * kinds of clauses we can handle as indexscan quals, mergejoin clauses, - * or hashjoin clauses are limited (e.g., no volatile functions). The code - * for each kind of path is responsible for identifying the restrict clauses - * it can use and ignoring the rest. Clauses not implemented by an indexscan, - * mergejoin, or hashjoin will be placed in the plan qual or joinqual field - * of the finished Plan node, where they will be enforced by general-purpose - * qual-expression-evaluation code. (But we are still entitled to count - * their selectivity when estimating the result tuple count, if we - * can guess what it is...) - * - * When the referenced clause is an OR clause, we generate a modified copy - * in which additional RestrictInfo nodes are inserted below the top-level - * OR/AND structure. This is a convenience for OR indexscan processing: - * indexquals taken from either the top level or an OR subclause will have - * associated RestrictInfo nodes. - * - * The can_join flag is set true if the clause looks potentially useful as - * a merge or hash join clause, that is if it is a binary opclause with - * nonoverlapping sets of relids referenced in the left and right sides. - * (Whether the operator is actually merge or hash joinable isn't checked, - * however.) - * - * The pseudoconstant flag is set true if the clause contains no Vars of - * the current query level and no volatile functions. Such a clause can be - * pulled out and used as a one-time qual in a gating Result node. We keep - * pseudoconstant clauses in the same lists as other RestrictInfos so that - * the regular clause-pushing machinery can assign them to the correct join - * level, but they need to be treated specially for cost and selectivity - * estimates. Note that a pseudoconstant clause can never be an indexqual - * or merge or hash join clause, so it's of no interest to large parts of - * the planner. - * - * When join clauses are generated from EquivalenceClasses, there may be - * several equally valid ways to enforce join equivalence, of which we need - * apply only one. We mark clauses of this kind by setting parent_ec to - * point to the generating EquivalenceClass. Multiple clauses with the same - * parent_ec in the same join are redundant. - */ - -typedef struct RestrictInfo -{ - NodeTag type; - - Expr *clause; /* the represented clause of WHERE or JOIN */ - - bool is_pushed_down; /* true if clause was pushed down in level */ - - bool outerjoin_delayed; /* true if delayed by lower outer join */ - - bool can_join; /* see comment above */ - - bool pseudoconstant; /* see comment above */ - - bool leakproof; /* true if known to contain no leaked Vars */ - - VolatileFunctionStatus has_volatile; /* to indicate if clause contains - * any volatile functions. */ - - Index security_level; /* see comment above */ - - /* The set of relids (varnos) actually referenced in the clause: */ - Relids clause_relids; - - /* The set of relids required to evaluate the clause: */ - Relids required_relids; - - /* If an outer-join clause, the outer-side relations, else NULL: */ - Relids outer_relids; - - /* The relids used in the clause that are nullable by lower outer joins: */ - Relids nullable_relids; - - /* These fields are set for any binary opclause: */ - Relids left_relids; /* relids in left side of clause */ - Relids right_relids; /* relids in right side of clause */ - - /* This field is NULL unless clause is an OR clause: */ - Expr *orclause; /* modified clause with RestrictInfos */ - - /* This field is NULL unless clause is potentially redundant: */ - EquivalenceClass *parent_ec; /* generating EquivalenceClass */ - - /* cache space for cost and selectivity */ - QualCost eval_cost; /* eval cost of clause; -1 if not yet set */ - Selectivity norm_selec; /* selectivity for "normal" (JOIN_INNER) - * semantics; -1 if not yet set; >1 means a - * redundant clause */ - Selectivity outer_selec; /* selectivity for outer join semantics; -1 if - * not yet set */ - - /* valid if clause is mergejoinable, else NIL */ - List *mergeopfamilies; /* opfamilies containing clause operator */ - - /* cache space for mergeclause processing; NULL if not yet set */ - EquivalenceClass *left_ec; /* EquivalenceClass containing lefthand */ - EquivalenceClass *right_ec; /* EquivalenceClass containing righthand */ - EquivalenceMember *left_em; /* EquivalenceMember for lefthand */ - EquivalenceMember *right_em; /* EquivalenceMember for righthand */ - List *scansel_cache; /* list of MergeScanSelCache structs */ - - /* transient workspace for use while considering a specific join path */ - bool outer_is_left; /* T = outer var on left, F = on right */ - - /* valid if clause is hashjoinable, else InvalidOid: */ - Oid hashjoinoperator; /* copy of clause operator */ - - /* cache space for hashclause processing; -1 if not yet set */ - Selectivity left_bucketsize; /* avg bucketsize of left side */ - Selectivity right_bucketsize; /* avg bucketsize of right side */ - Selectivity left_mcvfreq; /* left side's most common val's freq */ - Selectivity right_mcvfreq; /* right side's most common val's freq */ - - /* hash equality operators used for memoize nodes, else InvalidOid */ - Oid left_hasheqoperator; - Oid right_hasheqoperator; -} RestrictInfo; - -/* - * This macro embodies the correct way to test whether a RestrictInfo is - * "pushed down" to a given outer join, that is, should be treated as a filter - * clause rather than a join clause at that outer join. This is certainly so - * if is_pushed_down is true; but examining that is not sufficient anymore, - * because outer-join clauses will get pushed down to lower outer joins when - * we generate a path for the lower outer join that is parameterized by the - * LHS of the upper one. We can detect such a clause by noting that its - * required_relids exceed the scope of the join. - */ -#define RINFO_IS_PUSHED_DOWN(rinfo, joinrelids) \ - ((rinfo)->is_pushed_down || \ - !bms_is_subset((rinfo)->required_relids, joinrelids)) - -/* - * Since mergejoinscansel() is a relatively expensive function, and would - * otherwise be invoked many times while planning a large join tree, - * we go out of our way to cache its results. Each mergejoinable - * RestrictInfo carries a list of the specific sort orderings that have - * been considered for use with it, and the resulting selectivities. - */ -typedef struct MergeScanSelCache -{ - /* Ordering details (cache lookup key) */ - Oid opfamily; /* btree opfamily defining the ordering */ - Oid collation; /* collation for the ordering */ - int strategy; /* sort direction (ASC or DESC) */ - bool nulls_first; /* do NULLs come before normal values? */ - /* Results */ - Selectivity leftstartsel; /* first-join fraction for clause left side */ - Selectivity leftendsel; /* last-join fraction for clause left side */ - Selectivity rightstartsel; /* first-join fraction for clause right side */ - Selectivity rightendsel; /* last-join fraction for clause right side */ -} MergeScanSelCache; - -/* - * Placeholder node for an expression to be evaluated below the top level - * of a plan tree. This is used during planning to represent the contained - * expression. At the end of the planning process it is replaced by either - * the contained expression or a Var referring to a lower-level evaluation of - * the contained expression. Typically the evaluation occurs below an outer - * join, and Var references above the outer join might thereby yield NULL - * instead of the expression value. - * - * Although the planner treats this as an expression node type, it is not - * recognized by the parser or executor, so we declare it here rather than - * in primnodes.h. - */ - -typedef struct PlaceHolderVar -{ - Expr xpr; - Expr *phexpr; /* the represented expression */ - Relids phrels; /* base relids syntactically within expr src */ - Index phid; /* ID for PHV (unique within planner run) */ - Index phlevelsup; /* > 0 if PHV belongs to outer query */ -} PlaceHolderVar; - -/* - * "Special join" info. - * - * One-sided outer joins constrain the order of joining partially but not - * completely. We flatten such joins into the planner's top-level list of - * relations to join, but record information about each outer join in a - * SpecialJoinInfo struct. These structs are kept in the PlannerInfo node's - * join_info_list. - * - * Similarly, semijoins and antijoins created by flattening IN (subselect) - * and EXISTS(subselect) clauses create partial constraints on join order. - * These are likewise recorded in SpecialJoinInfo structs. - * - * We make SpecialJoinInfos for FULL JOINs even though there is no flexibility - * of planning for them, because this simplifies make_join_rel()'s API. - * - * min_lefthand and min_righthand are the sets of base relids that must be - * available on each side when performing the special join. lhs_strict is - * true if the special join's condition cannot succeed when the LHS variables - * are all NULL (this means that an outer join can commute with upper-level - * outer joins even if it appears in their RHS). We don't bother to set - * lhs_strict for FULL JOINs, however. - * - * It is not valid for either min_lefthand or min_righthand to be empty sets; - * if they were, this would break the logic that enforces join order. - * - * syn_lefthand and syn_righthand are the sets of base relids that are - * syntactically below this special join. (These are needed to help compute - * min_lefthand and min_righthand for higher joins.) - * - * delay_upper_joins is set true if we detect a pushed-down clause that has - * to be evaluated after this join is formed (because it references the RHS). - * Any outer joins that have such a clause and this join in their RHS cannot - * commute with this join, because that would leave noplace to check the - * pushed-down clause. (We don't track this for FULL JOINs, either.) - * - * For a semijoin, we also extract the join operators and their RHS arguments - * and set semi_operators, semi_rhs_exprs, semi_can_btree, and semi_can_hash. - * This is done in support of possibly unique-ifying the RHS, so we don't - * bother unless at least one of semi_can_btree and semi_can_hash can be set - * true. (You might expect that this information would be computed during - * join planning; but it's helpful to have it available during planning of - * parameterized table scans, so we store it in the SpecialJoinInfo structs.) - * - * jointype is never JOIN_RIGHT; a RIGHT JOIN is handled by switching - * the inputs to make it a LEFT JOIN. So the allowed values of jointype - * in a join_info_list member are only LEFT, FULL, SEMI, or ANTI. - * - * For purposes of join selectivity estimation, we create transient - * SpecialJoinInfo structures for regular inner joins; so it is possible - * to have jointype == JOIN_INNER in such a structure, even though this is - * not allowed within join_info_list. We also create transient - * SpecialJoinInfos with jointype == JOIN_INNER for outer joins, since for - * cost estimation purposes it is sometimes useful to know the join size under - * plain innerjoin semantics. Note that lhs_strict, delay_upper_joins, and - * of course the semi_xxx fields are not set meaningfully within such structs. - */ -#ifndef HAVE_SPECIALJOININFO_TYPEDEF -typedef struct SpecialJoinInfo SpecialJoinInfo; -#define HAVE_SPECIALJOININFO_TYPEDEF 1 -#endif - -struct SpecialJoinInfo -{ - NodeTag type; - Relids min_lefthand; /* base relids in minimum LHS for join */ - Relids min_righthand; /* base relids in minimum RHS for join */ - Relids syn_lefthand; /* base relids syntactically within LHS */ - Relids syn_righthand; /* base relids syntactically within RHS */ - JoinType jointype; /* always INNER, LEFT, FULL, SEMI, or ANTI */ - bool lhs_strict; /* joinclause is strict for some LHS rel */ - bool delay_upper_joins; /* can't commute with upper RHS */ - /* Remaining fields are set only for JOIN_SEMI jointype: */ - bool semi_can_btree; /* true if semi_operators are all btree */ - bool semi_can_hash; /* true if semi_operators are all hash */ - List *semi_operators; /* OIDs of equality join operators */ - List *semi_rhs_exprs; /* righthand-side expressions of these ops */ -}; - -/* - * Append-relation info. - * - * When we expand an inheritable table or a UNION-ALL subselect into an - * "append relation" (essentially, a list of child RTEs), we build an - * AppendRelInfo for each child RTE. The list of AppendRelInfos indicates - * which child RTEs must be included when expanding the parent, and each node - * carries information needed to translate between columns of the parent and - * columns of the child. - * - * These structs are kept in the PlannerInfo node's append_rel_list, with - * append_rel_array[] providing a convenient lookup method for the struct - * associated with a particular child relid (there can be only one, though - * parent rels may have many entries in append_rel_list). - * - * Note: after completion of the planner prep phase, any given RTE is an - * append parent having entries in append_rel_list if and only if its - * "inh" flag is set. We clear "inh" for plain tables that turn out not - * to have inheritance children, and (in an abuse of the original meaning - * of the flag) we set "inh" for subquery RTEs that turn out to be - * flattenable UNION ALL queries. This lets us avoid useless searches - * of append_rel_list. - * - * Note: the data structure assumes that append-rel members are single - * baserels. This is OK for inheritance, but it prevents us from pulling - * up a UNION ALL member subquery if it contains a join. While that could - * be fixed with a more complex data structure, at present there's not much - * point because no improvement in the plan could result. - */ - -typedef struct AppendRelInfo -{ - NodeTag type; - - /* - * These fields uniquely identify this append relationship. There can be - * (in fact, always should be) multiple AppendRelInfos for the same - * parent_relid, but never more than one per child_relid, since a given - * RTE cannot be a child of more than one append parent. - */ - Index parent_relid; /* RT index of append parent rel */ - Index child_relid; /* RT index of append child rel */ - - /* - * For an inheritance appendrel, the parent and child are both regular - * relations, and we store their rowtype OIDs here for use in translating - * whole-row Vars. For a UNION-ALL appendrel, the parent and child are - * both subqueries with no named rowtype, and we store InvalidOid here. - */ - Oid parent_reltype; /* OID of parent's composite type */ - Oid child_reltype; /* OID of child's composite type */ - - /* - * The N'th element of this list is a Var or expression representing the - * child column corresponding to the N'th column of the parent. This is - * used to translate Vars referencing the parent rel into references to - * the child. A list element is NULL if it corresponds to a dropped - * column of the parent (this is only possible for inheritance cases, not - * UNION ALL). The list elements are always simple Vars for inheritance - * cases, but can be arbitrary expressions in UNION ALL cases. - * - * Notice we only store entries for user columns (attno > 0). Whole-row - * Vars are special-cased, and system columns (attno < 0) need no special - * translation since their attnos are the same for all tables. - * - * Caution: the Vars have varlevelsup = 0. Be careful to adjust as needed - * when copying into a subquery. - */ - List *translated_vars; /* Expressions in the child's Vars */ - - /* - * This array simplifies translations in the reverse direction, from - * child's column numbers to parent's. The entry at [ccolno - 1] is the - * 1-based parent column number for child column ccolno, or zero if that - * child column is dropped or doesn't exist in the parent. - */ - int num_child_cols; /* length of array */ - AttrNumber *parent_colnos; /* array of parent attnos, or zeroes */ - - /* - * We store the parent table's OID here for inheritance, or InvalidOid for - * UNION ALL. This is only needed to help in generating error messages if - * an attempt is made to reference a dropped parent column. - */ - Oid parent_reloid; /* OID of parent relation */ -} AppendRelInfo; - -/* - * Information about a row-identity "resjunk" column in UPDATE/DELETE/MERGE. - * - * In partitioned UPDATE/DELETE/MERGE it's important for child partitions to - * share row-identity columns whenever possible, so as not to chew up too many - * targetlist columns. We use these structs to track which identity columns - * have been requested. In the finished plan, each of these will give rise - * to one resjunk entry in the targetlist of the ModifyTable's subplan node. - * - * All the Vars stored in RowIdentityVarInfos must have varno ROWID_VAR, for - * convenience of detecting duplicate requests. We'll replace that, in the - * final plan, with the varno of the generating rel. - * - * Outside this list, a Var with varno ROWID_VAR and varattno k is a reference - * to the k-th element of the row_identity_vars list (k counting from 1). - * We add such a reference to root->processed_tlist when creating the entry, - * and it propagates into the plan tree from there. - */ -typedef struct RowIdentityVarInfo -{ - NodeTag type; - - Var *rowidvar; /* Var to be evaluated (but varno=ROWID_VAR) */ - int32 rowidwidth; /* estimated average width */ - char *rowidname; /* name of the resjunk column */ - Relids rowidrels; /* RTE indexes of target rels using this */ -} RowIdentityVarInfo; - -/* - * For each distinct placeholder expression generated during planning, we - * store a PlaceHolderInfo node in the PlannerInfo node's placeholder_list. - * This stores info that is needed centrally rather than in each copy of the - * PlaceHolderVar. The phid fields identify which PlaceHolderInfo goes with - * each PlaceHolderVar. Note that phid is unique throughout a planner run, - * not just within a query level --- this is so that we need not reassign ID's - * when pulling a subquery into its parent. - * - * The idea is to evaluate the expression at (only) the ph_eval_at join level, - * then allow it to bubble up like a Var until the ph_needed join level. - * ph_needed has the same definition as attr_needed for a regular Var. - * - * The PlaceHolderVar's expression might contain LATERAL references to vars - * coming from outside its syntactic scope. If so, those rels are *not* - * included in ph_eval_at, but they are recorded in ph_lateral. - * - * Notice that when ph_eval_at is a join rather than a single baserel, the - * PlaceHolderInfo may create constraints on join order: the ph_eval_at join - * has to be formed below any outer joins that should null the PlaceHolderVar. - * - * We create a PlaceHolderInfo only after determining that the PlaceHolderVar - * is actually referenced in the plan tree, so that unreferenced placeholders - * don't result in unnecessary constraints on join order. - */ - -typedef struct PlaceHolderInfo -{ - NodeTag type; - - Index phid; /* ID for PH (unique within planner run) */ - PlaceHolderVar *ph_var; /* copy of PlaceHolderVar tree */ - Relids ph_eval_at; /* lowest level we can evaluate value at */ - Relids ph_lateral; /* relids of contained lateral refs, if any */ - Relids ph_needed; /* highest level the value is needed at */ - int32 ph_width; /* estimated attribute width */ -} PlaceHolderInfo; - -/* - * This struct describes one potentially index-optimizable MIN/MAX aggregate - * function. MinMaxAggPath contains a list of these, and if we accept that - * path, the list is stored into root->minmax_aggs for use during setrefs.c. - */ -typedef struct MinMaxAggInfo -{ - NodeTag type; - - Oid aggfnoid; /* pg_proc Oid of the aggregate */ - Oid aggsortop; /* Oid of its sort operator */ - Expr *target; /* expression we are aggregating on */ - PlannerInfo *subroot; /* modified "root" for planning the subquery */ - Path *path; /* access path for subquery */ - Cost pathcost; /* estimated cost to fetch first row */ - Param *param; /* param for subplan's output */ -} MinMaxAggInfo; - -/* - * At runtime, PARAM_EXEC slots are used to pass values around from one plan - * node to another. They can be used to pass values down into subqueries (for - * outer references in subqueries), or up out of subqueries (for the results - * of a subplan), or from a NestLoop plan node into its inner relation (when - * the inner scan is parameterized with values from the outer relation). - * The planner is responsible for assigning nonconflicting PARAM_EXEC IDs to - * the PARAM_EXEC Params it generates. - * - * Outer references are managed via root->plan_params, which is a list of - * PlannerParamItems. While planning a subquery, each parent query level's - * plan_params contains the values required from it by the current subquery. - * During create_plan(), we use plan_params to track values that must be - * passed from outer to inner sides of NestLoop plan nodes. - * - * The item a PlannerParamItem represents can be one of three kinds: - * - * A Var: the slot represents a variable of this level that must be passed - * down because subqueries have outer references to it, or must be passed - * from a NestLoop node to its inner scan. The varlevelsup value in the Var - * will always be zero. - * - * A PlaceHolderVar: this works much like the Var case, except that the - * entry is a PlaceHolderVar node with a contained expression. The PHV - * will have phlevelsup = 0, and the contained expression is adjusted - * to match in level. - * - * An Aggref (with an expression tree representing its argument): the slot - * represents an aggregate expression that is an outer reference for some - * subquery. The Aggref itself has agglevelsup = 0, and its argument tree - * is adjusted to match in level. - * - * Note: we detect duplicate Var and PlaceHolderVar parameters and coalesce - * them into one slot, but we do not bother to do that for Aggrefs. - * The scope of duplicate-elimination only extends across the set of - * parameters passed from one query level into a single subquery, or for - * nestloop parameters across the set of nestloop parameters used in a single - * query level. So there is no possibility of a PARAM_EXEC slot being used - * for conflicting purposes. - * - * In addition, PARAM_EXEC slots are assigned for Params representing outputs - * from subplans (values that are setParam items for those subplans). These - * IDs need not be tracked via PlannerParamItems, since we do not need any - * duplicate-elimination nor later processing of the represented expressions. - * Instead, we just record the assignment of the slot number by appending to - * root->glob->paramExecTypes. - */ -typedef struct PlannerParamItem -{ - NodeTag type; - - Node *item; /* the Var, PlaceHolderVar, or Aggref */ - int paramId; /* its assigned PARAM_EXEC slot number */ -} PlannerParamItem; - -/* - * When making cost estimates for a SEMI/ANTI/inner_unique join, there are - * some correction factors that are needed in both nestloop and hash joins - * to account for the fact that the executor can stop scanning inner rows - * as soon as it finds a match to the current outer row. These numbers - * depend only on the selected outer and inner join relations, not on the - * particular paths used for them, so it's worthwhile to calculate them - * just once per relation pair not once per considered path. This struct - * is filled by compute_semi_anti_join_factors and must be passed along - * to the join cost estimation functions. - * - * outer_match_frac is the fraction of the outer tuples that are - * expected to have at least one match. - * match_count is the average number of matches expected for - * outer tuples that have at least one match. - */ -typedef struct SemiAntiJoinFactors -{ - Selectivity outer_match_frac; - Selectivity match_count; -} SemiAntiJoinFactors; - -/* - * Struct for extra information passed to subroutines of add_paths_to_joinrel - * - * restrictlist contains all of the RestrictInfo nodes for restriction - * clauses that apply to this join - * mergeclause_list is a list of RestrictInfo nodes for available - * mergejoin clauses in this join - * inner_unique is true if each outer tuple provably matches no more - * than one inner tuple - * sjinfo is extra info about special joins for selectivity estimation - * semifactors is as shown above (only valid for SEMI/ANTI/inner_unique joins) - * param_source_rels are OK targets for parameterization of result paths - */ -typedef struct JoinPathExtraData -{ - List *restrictlist; - List *mergeclause_list; - bool inner_unique; - SpecialJoinInfo *sjinfo; - SemiAntiJoinFactors semifactors; - Relids param_source_rels; -} JoinPathExtraData; - -/* - * Various flags indicating what kinds of grouping are possible. - * - * GROUPING_CAN_USE_SORT should be set if it's possible to perform - * sort-based implementations of grouping. When grouping sets are in use, - * this will be true if sorting is potentially usable for any of the grouping - * sets, even if it's not usable for all of them. - * - * GROUPING_CAN_USE_HASH should be set if it's possible to perform - * hash-based implementations of grouping. - * - * GROUPING_CAN_PARTIAL_AGG should be set if the aggregation is of a type - * for which we support partial aggregation (not, for example, grouping sets). - * It says nothing about parallel-safety or the availability of suitable paths. - */ -#define GROUPING_CAN_USE_SORT 0x0001 -#define GROUPING_CAN_USE_HASH 0x0002 -#define GROUPING_CAN_PARTIAL_AGG 0x0004 - -/* - * What kind of partitionwise aggregation is in use? - * - * PARTITIONWISE_AGGREGATE_NONE: Not used. - * - * PARTITIONWISE_AGGREGATE_FULL: Aggregate each partition separately, and - * append the results. - * - * PARTITIONWISE_AGGREGATE_PARTIAL: Partially aggregate each partition - * separately, append the results, and then finalize aggregation. - */ -typedef enum -{ - PARTITIONWISE_AGGREGATE_NONE, - PARTITIONWISE_AGGREGATE_FULL, - PARTITIONWISE_AGGREGATE_PARTIAL -} PartitionwiseAggregateType; - -/* - * Struct for extra information passed to subroutines of create_grouping_paths - * - * flags indicating what kinds of grouping are possible. - * partial_costs_set is true if the agg_partial_costs and agg_final_costs - * have been initialized. - * agg_partial_costs gives partial aggregation costs. - * agg_final_costs gives finalization costs. - * target_parallel_safe is true if target is parallel safe. - * havingQual gives list of quals to be applied after aggregation. - * targetList gives list of columns to be projected. - * patype is the type of partitionwise aggregation that is being performed. - */ -typedef struct -{ - /* Data which remains constant once set. */ - int flags; - bool partial_costs_set; - AggClauseCosts agg_partial_costs; - AggClauseCosts agg_final_costs; - - /* Data which may differ across partitions. */ - bool target_parallel_safe; - Node *havingQual; - List *targetList; - PartitionwiseAggregateType patype; -} GroupPathExtraData; - -/* - * Struct for extra information passed to subroutines of grouping_planner - * - * limit_needed is true if we actually need a Limit plan node. - * limit_tuples is an estimated bound on the number of output tuples, - * or -1 if no LIMIT or couldn't estimate. - * count_est and offset_est are the estimated values of the LIMIT and OFFSET - * expressions computed by preprocess_limit() (see comments for - * preprocess_limit() for more information). - */ -typedef struct -{ - bool limit_needed; - Cardinality limit_tuples; - int64 count_est; - int64 offset_est; -} FinalPathExtraData; - -/* - * For speed reasons, cost estimation for join paths is performed in two - * phases: the first phase tries to quickly derive a lower bound for the - * join cost, and then we check if that's sufficient to reject the path. - * If not, we come back for a more refined cost estimate. The first phase - * fills a JoinCostWorkspace struct with its preliminary cost estimates - * and possibly additional intermediate values. The second phase takes - * these values as inputs to avoid repeating work. - * - * (Ideally we'd declare this in cost.h, but it's also needed in pathnode.h, - * so seems best to put it here.) - */ -typedef struct JoinCostWorkspace -{ - /* Preliminary cost estimates --- must not be larger than final ones! */ - Cost startup_cost; /* cost expended before fetching any tuples */ - Cost total_cost; /* total cost (assuming all tuples fetched) */ - - /* Fields below here should be treated as private to costsize.c */ - Cost run_cost; /* non-startup cost components */ - - /* private for cost_nestloop code */ - Cost inner_run_cost; /* also used by cost_mergejoin code */ - Cost inner_rescan_run_cost; - - /* private for cost_mergejoin code */ - Cardinality outer_rows; - Cardinality inner_rows; - Cardinality outer_skip_rows; - Cardinality inner_skip_rows; - - /* private for cost_hashjoin code */ - int numbuckets; - int numbatches; - Cardinality inner_rows_total; -} JoinCostWorkspace; - -/* - * AggInfo holds information about an aggregate that needs to be computed. - * Multiple Aggrefs in a query can refer to the same AggInfo by having the - * same 'aggno' value, so that the aggregate is computed only once. - */ -typedef struct AggInfo -{ - /* - * Link to an Aggref expr this state value is for. - * - * There can be multiple identical Aggref's sharing the same per-agg. This - * points to the first one of them. - */ - Aggref *representative_aggref; - - int transno; - - /* - * "shareable" is false if this agg cannot share state values with other - * aggregates because the final function is read-write. - */ - bool shareable; - - /* Oid of the final function or InvalidOid */ - Oid finalfn_oid; - -} AggInfo; - -/* - * AggTransInfo holds information about transition state that is used by one - * or more aggregates in the query. Multiple aggregates can share the same - * transition state, if they have the same inputs and the same transition - * function. Aggrefs that share the same transition info have the same - * 'aggtransno' value. - */ -typedef struct AggTransInfo -{ - List *args; - Expr *aggfilter; - - /* Oid of the state transition function */ - Oid transfn_oid; - - /* Oid of the serialization function or InvalidOid */ - Oid serialfn_oid; - - /* Oid of the deserialization function or InvalidOid */ - Oid deserialfn_oid; - - /* Oid of the combine function or InvalidOid */ - Oid combinefn_oid; - - /* Oid of state value's datatype */ - Oid aggtranstype; - int32 aggtranstypmod; - int transtypeLen; - bool transtypeByVal; - int32 aggtransspace; - - /* - * initial value from pg_aggregate entry - */ - Datum initValue; - bool initValueIsNull; - -} AggTransInfo; - -#endif /* PATHNODES_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/pg_list.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/pg_list.h deleted file mode 100644 index 5a43290a9..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/pg_list.h +++ /dev/null @@ -1,612 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_list.h - * interface for PostgreSQL generic list package - * - * Once upon a time, parts of Postgres were written in Lisp and used real - * cons-cell lists for major data structures. When that code was rewritten - * in C, we initially had a faithful emulation of cons-cell lists, which - * unsurprisingly was a performance bottleneck. A couple of major rewrites - * later, these data structures are actually simple expansible arrays; - * but the "List" name and a lot of the notation survives. - * - * One important concession to the original implementation is that an empty - * list is always represented by a null pointer (preferentially written NIL). - * Non-empty lists have a header, which will not be relocated as long as the - * list remains non-empty, and an expansible data array. - * - * We support three types of lists: - * - * T_List: lists of pointers - * (in practice usually pointers to Nodes, but not always; - * declared as "void *" to minimize casting annoyances) - * T_IntList: lists of integers - * T_OidList: lists of Oids - * - * (At the moment, ints and Oids are the same size, but they may not - * always be so; try to be careful to maintain the distinction.) - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/nodes/pg_list.h - * - *------------------------------------------------------------------------- - */ -#ifndef PG_LIST_H -#define PG_LIST_H - -#include "nodes/nodes.h" - - -typedef union ListCell -{ - void *ptr_value; - int int_value; - Oid oid_value; -} ListCell; - -typedef struct List -{ - NodeTag type; /* T_List, T_IntList, or T_OidList */ - int length; /* number of elements currently present */ - int max_length; /* allocated length of elements[] */ - ListCell *elements; /* re-allocatable array of cells */ - /* We may allocate some cells along with the List header: */ - ListCell initial_elements[FLEXIBLE_ARRAY_MEMBER]; - /* If elements == initial_elements, it's not a separate allocation */ -} List; - -/* - * The *only* valid representation of an empty list is NIL; in other - * words, a non-NIL list is guaranteed to have length >= 1. - */ -#define NIL ((List *) NULL) - -/* - * State structs for various looping macros below. - */ -typedef struct ForEachState -{ - const List *l; /* list we're looping through */ - int i; /* current element index */ -} ForEachState; - -typedef struct ForBothState -{ - const List *l1; /* lists we're looping through */ - const List *l2; - int i; /* common element index */ -} ForBothState; - -typedef struct ForBothCellState -{ - const List *l1; /* lists we're looping through */ - const List *l2; - int i1; /* current element indexes */ - int i2; -} ForBothCellState; - -typedef struct ForThreeState -{ - const List *l1; /* lists we're looping through */ - const List *l2; - const List *l3; - int i; /* common element index */ -} ForThreeState; - -typedef struct ForFourState -{ - const List *l1; /* lists we're looping through */ - const List *l2; - const List *l3; - const List *l4; - int i; /* common element index */ -} ForFourState; - -typedef struct ForFiveState -{ - const List *l1; /* lists we're looping through */ - const List *l2; - const List *l3; - const List *l4; - const List *l5; - int i; /* common element index */ -} ForFiveState; - -/* - * These routines are small enough, and used often enough, to justify being - * inline. - */ - -/* Fetch address of list's first cell; NULL if empty list */ -static inline ListCell * -list_head(const List *l) -{ - return l ? &l->elements[0] : NULL; -} - -/* Fetch address of list's last cell; NULL if empty list */ -static inline ListCell * -list_tail(const List *l) -{ - return l ? &l->elements[l->length - 1] : NULL; -} - -/* Fetch address of list's second cell, if it has one, else NULL */ -static inline ListCell * -list_second_cell(const List *l) -{ - if (l && l->length >= 2) - return &l->elements[1]; - else - return NULL; -} - -/* Fetch list's length */ -static inline int -list_length(const List *l) -{ - return l ? l->length : 0; -} - -/* - * Macros to access the data values within List cells. - * - * Note that with the exception of the "xxx_node" macros, these are - * lvalues and can be assigned to. - * - * NB: There is an unfortunate legacy from a previous incarnation of - * the List API: the macro lfirst() was used to mean "the data in this - * cons cell". To avoid changing every usage of lfirst(), that meaning - * has been kept. As a result, lfirst() takes a ListCell and returns - * the data it contains; to get the data in the first cell of a - * List, use linitial(). Worse, lsecond() is more closely related to - * linitial() than lfirst(): given a List, lsecond() returns the data - * in the second list cell. - */ -#define lfirst(lc) ((lc)->ptr_value) -#define lfirst_int(lc) ((lc)->int_value) -#define lfirst_oid(lc) ((lc)->oid_value) -#define lfirst_node(type,lc) castNode(type, lfirst(lc)) - -#define linitial(l) lfirst(list_nth_cell(l, 0)) -#define linitial_int(l) lfirst_int(list_nth_cell(l, 0)) -#define linitial_oid(l) lfirst_oid(list_nth_cell(l, 0)) -#define linitial_node(type,l) castNode(type, linitial(l)) - -#define lsecond(l) lfirst(list_nth_cell(l, 1)) -#define lsecond_int(l) lfirst_int(list_nth_cell(l, 1)) -#define lsecond_oid(l) lfirst_oid(list_nth_cell(l, 1)) -#define lsecond_node(type,l) castNode(type, lsecond(l)) - -#define lthird(l) lfirst(list_nth_cell(l, 2)) -#define lthird_int(l) lfirst_int(list_nth_cell(l, 2)) -#define lthird_oid(l) lfirst_oid(list_nth_cell(l, 2)) -#define lthird_node(type,l) castNode(type, lthird(l)) - -#define lfourth(l) lfirst(list_nth_cell(l, 3)) -#define lfourth_int(l) lfirst_int(list_nth_cell(l, 3)) -#define lfourth_oid(l) lfirst_oid(list_nth_cell(l, 3)) -#define lfourth_node(type,l) castNode(type, lfourth(l)) - -#define llast(l) lfirst(list_last_cell(l)) -#define llast_int(l) lfirst_int(list_last_cell(l)) -#define llast_oid(l) lfirst_oid(list_last_cell(l)) -#define llast_node(type,l) castNode(type, llast(l)) - -/* - * Convenience macros for building fixed-length lists - */ -#define list_make_ptr_cell(v) ((ListCell) {.ptr_value = (v)}) -#define list_make_int_cell(v) ((ListCell) {.int_value = (v)}) -#define list_make_oid_cell(v) ((ListCell) {.oid_value = (v)}) - -#define list_make1(x1) \ - list_make1_impl(T_List, list_make_ptr_cell(x1)) -#define list_make2(x1,x2) \ - list_make2_impl(T_List, list_make_ptr_cell(x1), list_make_ptr_cell(x2)) -#define list_make3(x1,x2,x3) \ - list_make3_impl(T_List, list_make_ptr_cell(x1), list_make_ptr_cell(x2), \ - list_make_ptr_cell(x3)) -#define list_make4(x1,x2,x3,x4) \ - list_make4_impl(T_List, list_make_ptr_cell(x1), list_make_ptr_cell(x2), \ - list_make_ptr_cell(x3), list_make_ptr_cell(x4)) -#define list_make5(x1,x2,x3,x4,x5) \ - list_make5_impl(T_List, list_make_ptr_cell(x1), list_make_ptr_cell(x2), \ - list_make_ptr_cell(x3), list_make_ptr_cell(x4), \ - list_make_ptr_cell(x5)) - -#define list_make1_int(x1) \ - list_make1_impl(T_IntList, list_make_int_cell(x1)) -#define list_make2_int(x1,x2) \ - list_make2_impl(T_IntList, list_make_int_cell(x1), list_make_int_cell(x2)) -#define list_make3_int(x1,x2,x3) \ - list_make3_impl(T_IntList, list_make_int_cell(x1), list_make_int_cell(x2), \ - list_make_int_cell(x3)) -#define list_make4_int(x1,x2,x3,x4) \ - list_make4_impl(T_IntList, list_make_int_cell(x1), list_make_int_cell(x2), \ - list_make_int_cell(x3), list_make_int_cell(x4)) -#define list_make5_int(x1,x2,x3,x4,x5) \ - list_make5_impl(T_IntList, list_make_int_cell(x1), list_make_int_cell(x2), \ - list_make_int_cell(x3), list_make_int_cell(x4), \ - list_make_int_cell(x5)) - -#define list_make1_oid(x1) \ - list_make1_impl(T_OidList, list_make_oid_cell(x1)) -#define list_make2_oid(x1,x2) \ - list_make2_impl(T_OidList, list_make_oid_cell(x1), list_make_oid_cell(x2)) -#define list_make3_oid(x1,x2,x3) \ - list_make3_impl(T_OidList, list_make_oid_cell(x1), list_make_oid_cell(x2), \ - list_make_oid_cell(x3)) -#define list_make4_oid(x1,x2,x3,x4) \ - list_make4_impl(T_OidList, list_make_oid_cell(x1), list_make_oid_cell(x2), \ - list_make_oid_cell(x3), list_make_oid_cell(x4)) -#define list_make5_oid(x1,x2,x3,x4,x5) \ - list_make5_impl(T_OidList, list_make_oid_cell(x1), list_make_oid_cell(x2), \ - list_make_oid_cell(x3), list_make_oid_cell(x4), \ - list_make_oid_cell(x5)) - -/* - * Locate the n'th cell (counting from 0) of the list. - * It is an assertion failure if there is no such cell. - */ -static inline ListCell * -list_nth_cell(const List *list, int n) -{ - Assert(list != NIL); - Assert(n >= 0 && n < list->length); - return &list->elements[n]; -} - -/* - * Return the last cell in a non-NIL List. - */ -static inline ListCell * -list_last_cell(const List *list) -{ - Assert(list != NIL); - return &list->elements[list->length - 1]; -} - -/* - * Return the pointer value contained in the n'th element of the - * specified list. (List elements begin at 0.) - */ -static inline void * -list_nth(const List *list, int n) -{ - Assert(IsA(list, List)); - return lfirst(list_nth_cell(list, n)); -} - -/* - * Return the integer value contained in the n'th element of the - * specified list. - */ -static inline int -list_nth_int(const List *list, int n) -{ - Assert(IsA(list, IntList)); - return lfirst_int(list_nth_cell(list, n)); -} - -/* - * Return the OID value contained in the n'th element of the specified - * list. - */ -static inline Oid -list_nth_oid(const List *list, int n) -{ - Assert(IsA(list, OidList)); - return lfirst_oid(list_nth_cell(list, n)); -} - -#define list_nth_node(type,list,n) castNode(type, list_nth(list, n)) - -/* - * Get the given ListCell's index (from 0) in the given List. - */ -static inline int -list_cell_number(const List *l, const ListCell *c) -{ - Assert(c >= &l->elements[0] && c < &l->elements[l->length]); - return c - l->elements; -} - -/* - * Get the address of the next cell after "c" within list "l", or NULL if none. - */ -static inline ListCell * -lnext(const List *l, const ListCell *c) -{ - Assert(c >= &l->elements[0] && c < &l->elements[l->length]); - c++; - if (c < &l->elements[l->length]) - return (ListCell *) c; - else - return NULL; -} - -/* - * foreach - - * a convenience macro for looping through a list - * - * "cell" must be the name of a "ListCell *" variable; it's made to point - * to each List element in turn. "cell" will be NULL after normal exit from - * the loop, but an early "break" will leave it pointing at the current - * List element. - * - * Beware of changing the List object while the loop is iterating. - * The current semantics are that we examine successive list indices in - * each iteration, so that insertion or deletion of list elements could - * cause elements to be re-visited or skipped unexpectedly. Previous - * implementations of foreach() behaved differently. However, it's safe - * to append elements to the List (or in general, insert them after the - * current element); such new elements are guaranteed to be visited. - * Also, the current element of the List can be deleted, if you use - * foreach_delete_current() to do so. BUT: either of these actions will - * invalidate the "cell" pointer for the remainder of the current iteration. - */ -#define foreach(cell, lst) \ - for (ForEachState cell##__state = {(lst), 0}; \ - (cell##__state.l != NIL && \ - cell##__state.i < cell##__state.l->length) ? \ - (cell = &cell##__state.l->elements[cell##__state.i], true) : \ - (cell = NULL, false); \ - cell##__state.i++) - -/* - * foreach_delete_current - - * delete the current list element from the List associated with a - * surrounding foreach() loop, returning the new List pointer. - * - * This is equivalent to list_delete_cell(), but it also adjusts the foreach - * loop's state so that no list elements will be missed. Do not delete - * elements from an active foreach loop's list in any other way! - */ -#define foreach_delete_current(lst, cell) \ - (cell##__state.i--, \ - (List *) (cell##__state.l = list_delete_cell(lst, cell))) - -/* - * foreach_current_index - - * get the zero-based list index of a surrounding foreach() loop's - * current element; pass the name of the "ListCell *" iterator variable. - * - * Beware of using this after foreach_delete_current(); the value will be - * out of sync for the rest of the current loop iteration. Anyway, since - * you just deleted the current element, the value is pretty meaningless. - */ -#define foreach_current_index(cell) (cell##__state.i) - -/* - * for_each_from - - * Like foreach(), but start from the N'th (zero-based) list element, - * not necessarily the first one. - * - * It's okay for N to exceed the list length, but not for it to be negative. - * - * The caveats for foreach() apply equally here. - */ -#define for_each_from(cell, lst, N) \ - for (ForEachState cell##__state = for_each_from_setup(lst, N); \ - (cell##__state.l != NIL && \ - cell##__state.i < cell##__state.l->length) ? \ - (cell = &cell##__state.l->elements[cell##__state.i], true) : \ - (cell = NULL, false); \ - cell##__state.i++) - -static inline ForEachState -for_each_from_setup(const List *lst, int N) -{ - ForEachState r = {lst, N}; - - Assert(N >= 0); - return r; -} - -/* - * for_each_cell - - * a convenience macro which loops through a list starting from a - * specified cell - * - * The caveats for foreach() apply equally here. - */ -#define for_each_cell(cell, lst, initcell) \ - for (ForEachState cell##__state = for_each_cell_setup(lst, initcell); \ - (cell##__state.l != NIL && \ - cell##__state.i < cell##__state.l->length) ? \ - (cell = &cell##__state.l->elements[cell##__state.i], true) : \ - (cell = NULL, false); \ - cell##__state.i++) - -static inline ForEachState -for_each_cell_setup(const List *lst, const ListCell *initcell) -{ - ForEachState r = {lst, - initcell ? list_cell_number(lst, initcell) : list_length(lst)}; - - return r; -} - -/* - * forboth - - * a convenience macro for advancing through two linked lists - * simultaneously. This macro loops through both lists at the same - * time, stopping when either list runs out of elements. Depending - * on the requirements of the call site, it may also be wise to - * assert that the lengths of the two lists are equal. (But, if they - * are not, some callers rely on the ending cell values being separately - * NULL or non-NULL as defined here; don't try to optimize that.) - * - * The caveats for foreach() apply equally here. - */ -#define forboth(cell1, list1, cell2, list2) \ - for (ForBothState cell1##__state = {(list1), (list2), 0}; \ - multi_for_advance_cell(cell1, cell1##__state, l1, i), \ - multi_for_advance_cell(cell2, cell1##__state, l2, i), \ - (cell1 != NULL && cell2 != NULL); \ - cell1##__state.i++) - -#define multi_for_advance_cell(cell, state, l, i) \ - (cell = (state.l != NIL && state.i < state.l->length) ? \ - &state.l->elements[state.i] : NULL) - -/* - * for_both_cell - - * a convenience macro which loops through two lists starting from the - * specified cells of each. This macro loops through both lists at the same - * time, stopping when either list runs out of elements. Depending on the - * requirements of the call site, it may also be wise to assert that the - * lengths of the two lists are equal, and initcell1 and initcell2 are at - * the same position in the respective lists. - * - * The caveats for foreach() apply equally here. - */ -#define for_both_cell(cell1, list1, initcell1, cell2, list2, initcell2) \ - for (ForBothCellState cell1##__state = \ - for_both_cell_setup(list1, initcell1, list2, initcell2); \ - multi_for_advance_cell(cell1, cell1##__state, l1, i1), \ - multi_for_advance_cell(cell2, cell1##__state, l2, i2), \ - (cell1 != NULL && cell2 != NULL); \ - cell1##__state.i1++, cell1##__state.i2++) - -static inline ForBothCellState -for_both_cell_setup(const List *list1, const ListCell *initcell1, - const List *list2, const ListCell *initcell2) -{ - ForBothCellState r = {list1, list2, - initcell1 ? list_cell_number(list1, initcell1) : list_length(list1), - initcell2 ? list_cell_number(list2, initcell2) : list_length(list2)}; - - return r; -} - -/* - * forthree - - * the same for three lists - */ -#define forthree(cell1, list1, cell2, list2, cell3, list3) \ - for (ForThreeState cell1##__state = {(list1), (list2), (list3), 0}; \ - multi_for_advance_cell(cell1, cell1##__state, l1, i), \ - multi_for_advance_cell(cell2, cell1##__state, l2, i), \ - multi_for_advance_cell(cell3, cell1##__state, l3, i), \ - (cell1 != NULL && cell2 != NULL && cell3 != NULL); \ - cell1##__state.i++) - -/* - * forfour - - * the same for four lists - */ -#define forfour(cell1, list1, cell2, list2, cell3, list3, cell4, list4) \ - for (ForFourState cell1##__state = {(list1), (list2), (list3), (list4), 0}; \ - multi_for_advance_cell(cell1, cell1##__state, l1, i), \ - multi_for_advance_cell(cell2, cell1##__state, l2, i), \ - multi_for_advance_cell(cell3, cell1##__state, l3, i), \ - multi_for_advance_cell(cell4, cell1##__state, l4, i), \ - (cell1 != NULL && cell2 != NULL && cell3 != NULL && cell4 != NULL); \ - cell1##__state.i++) - -/* - * forfive - - * the same for five lists - */ -#define forfive(cell1, list1, cell2, list2, cell3, list3, cell4, list4, cell5, list5) \ - for (ForFiveState cell1##__state = {(list1), (list2), (list3), (list4), (list5), 0}; \ - multi_for_advance_cell(cell1, cell1##__state, l1, i), \ - multi_for_advance_cell(cell2, cell1##__state, l2, i), \ - multi_for_advance_cell(cell3, cell1##__state, l3, i), \ - multi_for_advance_cell(cell4, cell1##__state, l4, i), \ - multi_for_advance_cell(cell5, cell1##__state, l5, i), \ - (cell1 != NULL && cell2 != NULL && cell3 != NULL && \ - cell4 != NULL && cell5 != NULL); \ - cell1##__state.i++) - -/* Functions in src/backend/nodes/list.c */ - -extern List *list_make1_impl(NodeTag t, ListCell datum1); -extern List *list_make2_impl(NodeTag t, ListCell datum1, ListCell datum2); -extern List *list_make3_impl(NodeTag t, ListCell datum1, ListCell datum2, - ListCell datum3); -extern List *list_make4_impl(NodeTag t, ListCell datum1, ListCell datum2, - ListCell datum3, ListCell datum4); -extern List *list_make5_impl(NodeTag t, ListCell datum1, ListCell datum2, - ListCell datum3, ListCell datum4, - ListCell datum5); - -extern pg_nodiscard List *lappend(List *list, void *datum); -extern pg_nodiscard List *lappend_int(List *list, int datum); -extern pg_nodiscard List *lappend_oid(List *list, Oid datum); - -extern pg_nodiscard List *list_insert_nth(List *list, int pos, void *datum); -extern pg_nodiscard List *list_insert_nth_int(List *list, int pos, int datum); -extern pg_nodiscard List *list_insert_nth_oid(List *list, int pos, Oid datum); - -extern pg_nodiscard List *lcons(void *datum, List *list); -extern pg_nodiscard List *lcons_int(int datum, List *list); -extern pg_nodiscard List *lcons_oid(Oid datum, List *list); - -extern pg_nodiscard List *list_concat(List *list1, const List *list2); -extern pg_nodiscard List *list_concat_copy(const List *list1, const List *list2); - -extern pg_nodiscard List *list_truncate(List *list, int new_size); - -extern bool list_member(const List *list, const void *datum); -extern bool list_member_ptr(const List *list, const void *datum); -extern bool list_member_int(const List *list, int datum); -extern bool list_member_oid(const List *list, Oid datum); - -extern pg_nodiscard List *list_delete(List *list, void *datum); -extern pg_nodiscard List *list_delete_ptr(List *list, void *datum); -extern pg_nodiscard List *list_delete_int(List *list, int datum); -extern pg_nodiscard List *list_delete_oid(List *list, Oid datum); -extern pg_nodiscard List *list_delete_first(List *list); -extern pg_nodiscard List *list_delete_last(List *list); -extern pg_nodiscard List *list_delete_first_n(List *list, int n); -extern pg_nodiscard List *list_delete_nth_cell(List *list, int n); -extern pg_nodiscard List *list_delete_cell(List *list, ListCell *cell); - -extern List *list_union(const List *list1, const List *list2); -extern List *list_union_ptr(const List *list1, const List *list2); -extern List *list_union_int(const List *list1, const List *list2); -extern List *list_union_oid(const List *list1, const List *list2); - -extern List *list_intersection(const List *list1, const List *list2); -extern List *list_intersection_int(const List *list1, const List *list2); - -/* currently, there's no need for list_intersection_ptr etc */ - -extern List *list_difference(const List *list1, const List *list2); -extern List *list_difference_ptr(const List *list1, const List *list2); -extern List *list_difference_int(const List *list1, const List *list2); -extern List *list_difference_oid(const List *list1, const List *list2); - -extern pg_nodiscard List *list_append_unique(List *list, void *datum); -extern pg_nodiscard List *list_append_unique_ptr(List *list, void *datum); -extern pg_nodiscard List *list_append_unique_int(List *list, int datum); -extern pg_nodiscard List *list_append_unique_oid(List *list, Oid datum); - -extern pg_nodiscard List *list_concat_unique(List *list1, const List *list2); -extern pg_nodiscard List *list_concat_unique_ptr(List *list1, const List *list2); -extern pg_nodiscard List *list_concat_unique_int(List *list1, const List *list2); -extern pg_nodiscard List *list_concat_unique_oid(List *list1, const List *list2); - -extern void list_deduplicate_oid(List *list); - -extern void list_free(List *list); -extern void list_free_deep(List *list); - -extern pg_nodiscard List *list_copy(const List *list); -extern pg_nodiscard List *list_copy_head(const List *oldlist, int len); -extern pg_nodiscard List *list_copy_tail(const List *list, int nskip); -extern pg_nodiscard List *list_copy_deep(const List *oldlist); - -typedef int (*list_sort_comparator) (const ListCell *a, const ListCell *b); -extern void list_sort(List *list, list_sort_comparator cmp); - -extern int list_int_cmp(const ListCell *p1, const ListCell *p2); -extern int list_oid_cmp(const ListCell *p1, const ListCell *p2); - -#endif /* PG_LIST_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/plannodes.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/plannodes.h deleted file mode 100644 index 493a2a9e4..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/plannodes.h +++ /dev/null @@ -1,1349 +0,0 @@ -/*------------------------------------------------------------------------- - * - * plannodes.h - * definitions for query plan nodes - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/nodes/plannodes.h - * - *------------------------------------------------------------------------- - */ -#ifndef PLANNODES_H -#define PLANNODES_H - -#include "access/sdir.h" -#include "access/stratnum.h" -#include "lib/stringinfo.h" -#include "nodes/bitmapset.h" -#include "nodes/lockoptions.h" -#include "nodes/parsenodes.h" -#include "nodes/primnodes.h" - - -/* ---------------------------------------------------------------- - * node definitions - * ---------------------------------------------------------------- - */ - -/* ---------------- - * PlannedStmt node - * - * The output of the planner is a Plan tree headed by a PlannedStmt node. - * PlannedStmt holds the "one time" information needed by the executor. - * - * For simplicity in APIs, we also wrap utility statements in PlannedStmt - * nodes; in such cases, commandType == CMD_UTILITY, the statement itself - * is in the utilityStmt field, and the rest of the struct is mostly dummy. - * (We do use canSetTag, stmt_location, stmt_len, and possibly queryId.) - * ---------------- - */ -typedef struct PlannedStmt -{ - NodeTag type; - - CmdType commandType; /* select|insert|update|delete|merge|utility */ - - uint64 queryId; /* query identifier (copied from Query) */ - - bool hasReturning; /* is it insert|update|delete RETURNING? */ - - bool hasModifyingCTE; /* has insert|update|delete in WITH? */ - - bool canSetTag; /* do I set the command result tag? */ - - bool transientPlan; /* redo plan when TransactionXmin changes? */ - - bool dependsOnRole; /* is plan specific to current role? */ - - bool parallelModeNeeded; /* parallel mode required to execute? */ - - int jitFlags; /* which forms of JIT should be performed */ - - struct Plan *planTree; /* tree of Plan nodes */ - - List *rtable; /* list of RangeTblEntry nodes */ - - /* rtable indexes of target relations for INSERT/UPDATE/DELETE/MERGE */ - List *resultRelations; /* integer list of RT indexes, or NIL */ - - List *appendRelations; /* list of AppendRelInfo nodes */ - - List *subplans; /* Plan trees for SubPlan expressions; note - * that some could be NULL */ - - Bitmapset *rewindPlanIDs; /* indices of subplans that require REWIND */ - - List *rowMarks; /* a list of PlanRowMark's */ - - List *relationOids; /* OIDs of relations the plan depends on */ - - List *invalItems; /* other dependencies, as PlanInvalItems */ - - List *paramExecTypes; /* type OIDs for PARAM_EXEC Params */ - - Node *utilityStmt; /* non-null if this is utility stmt */ - - /* statement location in source string (copied from Query) */ - int stmt_location; /* start location, or -1 if unknown */ - int stmt_len; /* length in bytes; 0 means "rest of string" */ -} PlannedStmt; - -/* macro for fetching the Plan associated with a SubPlan node */ -#define exec_subplan_get_plan(plannedstmt, subplan) \ - ((Plan *) list_nth((plannedstmt)->subplans, (subplan)->plan_id - 1)) - - -/* ---------------- - * Plan node - * - * All plan nodes "derive" from the Plan structure by having the - * Plan structure as the first field. This ensures that everything works - * when nodes are cast to Plan's. (node pointers are frequently cast to Plan* - * when passed around generically in the executor) - * - * We never actually instantiate any Plan nodes; this is just the common - * abstract superclass for all Plan-type nodes. - * ---------------- - */ -typedef struct Plan -{ - NodeTag type; - - /* - * estimated execution costs for plan (see costsize.c for more info) - */ - Cost startup_cost; /* cost expended before fetching any tuples */ - Cost total_cost; /* total cost (assuming all tuples fetched) */ - - /* - * planner's estimate of result size of this plan step - */ - Cardinality plan_rows; /* number of rows plan is expected to emit */ - int plan_width; /* average row width in bytes */ - - /* - * information needed for parallel query - */ - bool parallel_aware; /* engage parallel-aware logic? */ - bool parallel_safe; /* OK to use as part of parallel plan? */ - - /* - * information needed for asynchronous execution - */ - bool async_capable; /* engage asynchronous-capable logic? */ - - /* - * Common structural data for all Plan types. - */ - int plan_node_id; /* unique across entire final plan tree */ - List *targetlist; /* target list to be computed at this node */ - List *qual; /* implicitly-ANDed qual conditions */ - struct Plan *lefttree; /* input plan tree(s) */ - struct Plan *righttree; - List *initPlan; /* Init Plan nodes (un-correlated expr - * subselects) */ - - /* - * Information for management of parameter-change-driven rescanning - * - * extParam includes the paramIDs of all external PARAM_EXEC params - * affecting this plan node or its children. setParam params from the - * node's initPlans are not included, but their extParams are. - * - * allParam includes all the extParam paramIDs, plus the IDs of local - * params that affect the node (i.e., the setParams of its initplans). - * These are _all_ the PARAM_EXEC params that affect this node. - */ - Bitmapset *extParam; - Bitmapset *allParam; -} Plan; - -/* ---------------- - * these are defined to avoid confusion problems with "left" - * and "right" and "inner" and "outer". The convention is that - * the "left" plan is the "outer" plan and the "right" plan is - * the inner plan, but these make the code more readable. - * ---------------- - */ -#define innerPlan(node) (((Plan *)(node))->righttree) -#define outerPlan(node) (((Plan *)(node))->lefttree) - - -/* ---------------- - * Result node - - * If no outer plan, evaluate a variable-free targetlist. - * If outer plan, return tuples from outer plan (after a level of - * projection as shown by targetlist). - * - * If resconstantqual isn't NULL, it represents a one-time qualification - * test (i.e., one that doesn't depend on any variables from the outer plan, - * so needs to be evaluated only once). - * ---------------- - */ -typedef struct Result -{ - Plan plan; - Node *resconstantqual; -} Result; - -/* ---------------- - * ProjectSet node - - * Apply a projection that includes set-returning functions to the - * output tuples of the outer plan. - * ---------------- - */ -typedef struct ProjectSet -{ - Plan plan; -} ProjectSet; - -/* ---------------- - * ModifyTable node - - * Apply rows produced by outer plan to result table(s), - * by inserting, updating, or deleting. - * - * If the originally named target table is a partitioned table, both - * nominalRelation and rootRelation contain the RT index of the partition - * root, which is not otherwise mentioned in the plan. Otherwise rootRelation - * is zero. However, nominalRelation will always be set, as it's the rel that - * EXPLAIN should claim is the INSERT/UPDATE/DELETE/MERGE target. - * - * Note that rowMarks and epqParam are presumed to be valid for all the - * table(s); they can't contain any info that varies across tables. - * ---------------- - */ -typedef struct ModifyTable -{ - Plan plan; - CmdType operation; /* INSERT, UPDATE, DELETE, or MERGE */ - bool canSetTag; /* do we set the command tag/es_processed? */ - Index nominalRelation; /* Parent RT index for use of EXPLAIN */ - Index rootRelation; /* Root RT index, if target is partitioned */ - bool partColsUpdated; /* some part key in hierarchy updated? */ - List *resultRelations; /* integer list of RT indexes */ - List *updateColnosLists; /* per-target-table update_colnos lists */ - List *withCheckOptionLists; /* per-target-table WCO lists */ - List *returningLists; /* per-target-table RETURNING tlists */ - List *fdwPrivLists; /* per-target-table FDW private data lists */ - Bitmapset *fdwDirectModifyPlans; /* indices of FDW DM plans */ - List *rowMarks; /* PlanRowMarks (non-locking only) */ - int epqParam; /* ID of Param for EvalPlanQual re-eval */ - OnConflictAction onConflictAction; /* ON CONFLICT action */ - List *arbiterIndexes; /* List of ON CONFLICT arbiter index OIDs */ - List *onConflictSet; /* INSERT ON CONFLICT DO UPDATE targetlist */ - List *onConflictCols; /* target column numbers for onConflictSet */ - Node *onConflictWhere; /* WHERE for ON CONFLICT UPDATE */ - Index exclRelRTI; /* RTI of the EXCLUDED pseudo relation */ - List *exclRelTlist; /* tlist of the EXCLUDED pseudo relation */ - List *mergeActionLists; /* per-target-table lists of actions for - * MERGE */ -} ModifyTable; - -struct PartitionPruneInfo; /* forward reference to struct below */ - -/* ---------------- - * Append node - - * Generate the concatenation of the results of sub-plans. - * ---------------- - */ -typedef struct Append -{ - Plan plan; - Bitmapset *apprelids; /* RTIs of appendrel(s) formed by this node */ - List *appendplans; - int nasyncplans; /* # of asynchronous plans */ - - /* - * All 'appendplans' preceding this index are non-partial plans. All - * 'appendplans' from this index onwards are partial plans. - */ - int first_partial_plan; - - /* Info for run-time subplan pruning; NULL if we're not doing that */ - struct PartitionPruneInfo *part_prune_info; -} Append; - -/* ---------------- - * MergeAppend node - - * Merge the results of pre-sorted sub-plans to preserve the ordering. - * ---------------- - */ -typedef struct MergeAppend -{ - Plan plan; - Bitmapset *apprelids; /* RTIs of appendrel(s) formed by this node */ - List *mergeplans; - /* these fields are just like the sort-key info in struct Sort: */ - int numCols; /* number of sort-key columns */ - AttrNumber *sortColIdx; /* their indexes in the target list */ - Oid *sortOperators; /* OIDs of operators to sort them by */ - Oid *collations; /* OIDs of collations */ - bool *nullsFirst; /* NULLS FIRST/LAST directions */ - /* Info for run-time subplan pruning; NULL if we're not doing that */ - struct PartitionPruneInfo *part_prune_info; -} MergeAppend; - -/* ---------------- - * RecursiveUnion node - - * Generate a recursive union of two subplans. - * - * The "outer" subplan is always the non-recursive term, and the "inner" - * subplan is the recursive term. - * ---------------- - */ -typedef struct RecursiveUnion -{ - Plan plan; - int wtParam; /* ID of Param representing work table */ - /* Remaining fields are zero/null in UNION ALL case */ - int numCols; /* number of columns to check for - * duplicate-ness */ - AttrNumber *dupColIdx; /* their indexes in the target list */ - Oid *dupOperators; /* equality operators to compare with */ - Oid *dupCollations; - long numGroups; /* estimated number of groups in input */ -} RecursiveUnion; - -/* ---------------- - * BitmapAnd node - - * Generate the intersection of the results of sub-plans. - * - * The subplans must be of types that yield tuple bitmaps. The targetlist - * and qual fields of the plan are unused and are always NIL. - * ---------------- - */ -typedef struct BitmapAnd -{ - Plan plan; - List *bitmapplans; -} BitmapAnd; - -/* ---------------- - * BitmapOr node - - * Generate the union of the results of sub-plans. - * - * The subplans must be of types that yield tuple bitmaps. The targetlist - * and qual fields of the plan are unused and are always NIL. - * ---------------- - */ -typedef struct BitmapOr -{ - Plan plan; - bool isshared; - List *bitmapplans; -} BitmapOr; - -/* - * ========== - * Scan nodes - * ========== - */ -typedef struct Scan -{ - Plan plan; - Index scanrelid; /* relid is index into the range table */ -} Scan; - -/* ---------------- - * sequential scan node - * ---------------- - */ -typedef struct SeqScan -{ - Scan scan; -} SeqScan; - -/* ---------------- - * table sample scan node - * ---------------- - */ -typedef struct SampleScan -{ - Scan scan; - /* use struct pointer to avoid including parsenodes.h here */ - struct TableSampleClause *tablesample; -} SampleScan; - -/* ---------------- - * index scan node - * - * indexqualorig is an implicitly-ANDed list of index qual expressions, each - * in the same form it appeared in the query WHERE condition. Each should - * be of the form (indexkey OP comparisonval) or (comparisonval OP indexkey). - * The indexkey is a Var or expression referencing column(s) of the index's - * base table. The comparisonval might be any expression, but it won't use - * any columns of the base table. The expressions are ordered by index - * column position (but items referencing the same index column can appear - * in any order). indexqualorig is used at runtime only if we have to recheck - * a lossy indexqual. - * - * indexqual has the same form, but the expressions have been commuted if - * necessary to put the indexkeys on the left, and the indexkeys are replaced - * by Var nodes identifying the index columns (their varno is INDEX_VAR and - * their varattno is the index column number). - * - * indexorderbyorig is similarly the original form of any ORDER BY expressions - * that are being implemented by the index, while indexorderby is modified to - * have index column Vars on the left-hand side. Here, multiple expressions - * must appear in exactly the ORDER BY order, and this is not necessarily the - * index column order. Only the expressions are provided, not the auxiliary - * sort-order information from the ORDER BY SortGroupClauses; it's assumed - * that the sort ordering is fully determinable from the top-level operators. - * indexorderbyorig is used at runtime to recheck the ordering, if the index - * cannot calculate an accurate ordering. It is also needed for EXPLAIN. - * - * indexorderbyops is a list of the OIDs of the operators used to sort the - * ORDER BY expressions. This is used together with indexorderbyorig to - * recheck ordering at run time. (Note that indexorderby, indexorderbyorig, - * and indexorderbyops are used for amcanorderbyop cases, not amcanorder.) - * - * indexorderdir specifies the scan ordering, for indexscans on amcanorder - * indexes (for other indexes it should be "don't care"). - * ---------------- - */ -typedef struct IndexScan -{ - Scan scan; - Oid indexid; /* OID of index to scan */ - List *indexqual; /* list of index quals (usually OpExprs) */ - List *indexqualorig; /* the same in original form */ - List *indexorderby; /* list of index ORDER BY exprs */ - List *indexorderbyorig; /* the same in original form */ - List *indexorderbyops; /* OIDs of sort ops for ORDER BY exprs */ - ScanDirection indexorderdir; /* forward or backward or don't care */ -} IndexScan; - -/* ---------------- - * index-only scan node - * - * IndexOnlyScan is very similar to IndexScan, but it specifies an - * index-only scan, in which the data comes from the index not the heap. - * Because of this, *all* Vars in the plan node's targetlist, qual, and - * index expressions reference index columns and have varno = INDEX_VAR. - * - * We could almost use indexqual directly against the index's output tuple - * when rechecking lossy index operators, but that won't work for quals on - * index columns that are not retrievable. Hence, recheckqual is needed - * for rechecks: it expresses the same condition as indexqual, but using - * only index columns that are retrievable. (We will not generate an - * index-only scan if this is not possible. An example is that if an - * index has table column "x" in a retrievable index column "ind1", plus - * an expression f(x) in a non-retrievable column "ind2", an indexable - * query on f(x) will use "ind2" in indexqual and f(ind1) in recheckqual. - * Without the "ind1" column, an index-only scan would be disallowed.) - * - * We don't currently need a recheckable equivalent of indexorderby, - * because we don't support lossy operators in index ORDER BY. - * - * To help EXPLAIN interpret the index Vars for display, we provide - * indextlist, which represents the contents of the index as a targetlist - * with one TLE per index column. Vars appearing in this list reference - * the base table, and this is the only field in the plan node that may - * contain such Vars. Also, for the convenience of setrefs.c, TLEs in - * indextlist are marked as resjunk if they correspond to columns that - * the index AM cannot reconstruct. - * ---------------- - */ -typedef struct IndexOnlyScan -{ - Scan scan; - Oid indexid; /* OID of index to scan */ - List *indexqual; /* list of index quals (usually OpExprs) */ - List *recheckqual; /* index quals in recheckable form */ - List *indexorderby; /* list of index ORDER BY exprs */ - List *indextlist; /* TargetEntry list describing index's cols */ - ScanDirection indexorderdir; /* forward or backward or don't care */ -} IndexOnlyScan; - -/* ---------------- - * bitmap index scan node - * - * BitmapIndexScan delivers a bitmap of potential tuple locations; - * it does not access the heap itself. The bitmap is used by an - * ancestor BitmapHeapScan node, possibly after passing through - * intermediate BitmapAnd and/or BitmapOr nodes to combine it with - * the results of other BitmapIndexScans. - * - * The fields have the same meanings as for IndexScan, except we don't - * store a direction flag because direction is uninteresting. - * - * In a BitmapIndexScan plan node, the targetlist and qual fields are - * not used and are always NIL. The indexqualorig field is unused at - * run time too, but is saved for the benefit of EXPLAIN. - * ---------------- - */ -typedef struct BitmapIndexScan -{ - Scan scan; - Oid indexid; /* OID of index to scan */ - bool isshared; /* Create shared bitmap if set */ - List *indexqual; /* list of index quals (OpExprs) */ - List *indexqualorig; /* the same in original form */ -} BitmapIndexScan; - -/* ---------------- - * bitmap sequential scan node - * - * This needs a copy of the qual conditions being used by the input index - * scans because there are various cases where we need to recheck the quals; - * for example, when the bitmap is lossy about the specific rows on a page - * that meet the index condition. - * ---------------- - */ -typedef struct BitmapHeapScan -{ - Scan scan; - List *bitmapqualorig; /* index quals, in standard expr form */ -} BitmapHeapScan; - -/* ---------------- - * tid scan node - * - * tidquals is an implicitly OR'ed list of qual expressions of the form - * "CTID = pseudoconstant", or "CTID = ANY(pseudoconstant_array)", - * or a CurrentOfExpr for the relation. - * ---------------- - */ -typedef struct TidScan -{ - Scan scan; - List *tidquals; /* qual(s) involving CTID = something */ -} TidScan; - -/* ---------------- - * tid range scan node - * - * tidrangequals is an implicitly AND'ed list of qual expressions of the form - * "CTID relop pseudoconstant", where relop is one of >,>=,<,<=. - * ---------------- - */ -typedef struct TidRangeScan -{ - Scan scan; - List *tidrangequals; /* qual(s) involving CTID op something */ -} TidRangeScan; - -/* ---------------- - * subquery scan node - * - * SubqueryScan is for scanning the output of a sub-query in the range table. - * We often need an extra plan node above the sub-query's plan to perform - * expression evaluations (which we can't push into the sub-query without - * risking changing its semantics). Although we are not scanning a physical - * relation, we make this a descendant of Scan anyway for code-sharing - * purposes. - * - * SubqueryScanStatus caches the trivial_subqueryscan property of the node. - * SUBQUERY_SCAN_UNKNOWN means not yet determined. This is only used during - * planning. - * - * Note: we store the sub-plan in the type-specific subplan field, not in - * the generic lefttree field as you might expect. This is because we do - * not want plan-tree-traversal routines to recurse into the subplan without - * knowing that they are changing Query contexts. - * ---------------- - */ -typedef enum SubqueryScanStatus -{ - SUBQUERY_SCAN_UNKNOWN, - SUBQUERY_SCAN_TRIVIAL, - SUBQUERY_SCAN_NONTRIVIAL -} SubqueryScanStatus; - -typedef struct SubqueryScan -{ - Scan scan; - Plan *subplan; - SubqueryScanStatus scanstatus; -} SubqueryScan; - -/* ---------------- - * FunctionScan node - * ---------------- - */ -typedef struct FunctionScan -{ - Scan scan; - List *functions; /* list of RangeTblFunction nodes */ - bool funcordinality; /* WITH ORDINALITY */ -} FunctionScan; - -/* ---------------- - * ValuesScan node - * ---------------- - */ -typedef struct ValuesScan -{ - Scan scan; - List *values_lists; /* list of expression lists */ -} ValuesScan; - -/* ---------------- - * TableFunc scan node - * ---------------- - */ -typedef struct TableFuncScan -{ - Scan scan; - TableFunc *tablefunc; /* table function node */ -} TableFuncScan; - -/* ---------------- - * CteScan node - * ---------------- - */ -typedef struct CteScan -{ - Scan scan; - int ctePlanId; /* ID of init SubPlan for CTE */ - int cteParam; /* ID of Param representing CTE output */ -} CteScan; - -/* ---------------- - * NamedTuplestoreScan node - * ---------------- - */ -typedef struct NamedTuplestoreScan -{ - Scan scan; - char *enrname; /* Name given to Ephemeral Named Relation */ -} NamedTuplestoreScan; - -/* ---------------- - * WorkTableScan node - * ---------------- - */ -typedef struct WorkTableScan -{ - Scan scan; - int wtParam; /* ID of Param representing work table */ -} WorkTableScan; - -/* ---------------- - * ForeignScan node - * - * fdw_exprs and fdw_private are both under the control of the foreign-data - * wrapper, but fdw_exprs is presumed to contain expression trees and will - * be post-processed accordingly by the planner; fdw_private won't be. - * Note that everything in both lists must be copiable by copyObject(). - * One way to store an arbitrary blob of bytes is to represent it as a bytea - * Const. Usually, though, you'll be better off choosing a representation - * that can be dumped usefully by nodeToString(). - * - * fdw_scan_tlist is a targetlist describing the contents of the scan tuple - * returned by the FDW; it can be NIL if the scan tuple matches the declared - * rowtype of the foreign table, which is the normal case for a simple foreign - * table scan. (If the plan node represents a foreign join, fdw_scan_tlist - * is required since there is no rowtype available from the system catalogs.) - * When fdw_scan_tlist is provided, Vars in the node's tlist and quals must - * have varno INDEX_VAR, and their varattnos correspond to resnos in the - * fdw_scan_tlist (which are also column numbers in the actual scan tuple). - * fdw_scan_tlist is never actually executed; it just holds expression trees - * describing what is in the scan tuple's columns. - * - * fdw_recheck_quals should contain any quals which the core system passed to - * the FDW but which were not added to scan.plan.qual; that is, it should - * contain the quals being checked remotely. This is needed for correct - * behavior during EvalPlanQual rechecks. - * - * When the plan node represents a foreign join, scan.scanrelid is zero and - * fs_relids must be consulted to identify the join relation. (fs_relids - * is valid for simple scans as well, but will always match scan.scanrelid.) - * - * If the FDW's PlanDirectModify() callback decides to repurpose a ForeignScan - * node to perform the UPDATE or DELETE operation directly in the remote - * server, it sets 'operation' and 'resultRelation' to identify the operation - * type and target relation. Note that these fields are only set if the - * modification is performed *fully* remotely; otherwise, the modification is - * driven by a local ModifyTable node and 'operation' is left to CMD_SELECT. - * ---------------- - */ -typedef struct ForeignScan -{ - Scan scan; - CmdType operation; /* SELECT/INSERT/UPDATE/DELETE */ - Index resultRelation; /* direct modification target's RT index */ - Oid fs_server; /* OID of foreign server */ - List *fdw_exprs; /* expressions that FDW may evaluate */ - List *fdw_private; /* private data for FDW */ - List *fdw_scan_tlist; /* optional tlist describing scan tuple */ - List *fdw_recheck_quals; /* original quals not in scan.plan.qual */ - Bitmapset *fs_relids; /* RTIs generated by this scan */ - bool fsSystemCol; /* true if any "system column" is needed */ -} ForeignScan; - -/* ---------------- - * CustomScan node - * - * The comments for ForeignScan's fdw_exprs, fdw_private, fdw_scan_tlist, - * and fs_relids fields apply equally to CustomScan's custom_exprs, - * custom_private, custom_scan_tlist, and custom_relids fields. The - * convention of setting scan.scanrelid to zero for joins applies as well. - * - * Note that since Plan trees can be copied, custom scan providers *must* - * fit all plan data they need into those fields; embedding CustomScan in - * a larger struct will not work. - * ---------------- - */ -struct CustomScanMethods; - -typedef struct CustomScan -{ - Scan scan; - uint32 flags; /* mask of CUSTOMPATH_* flags, see - * nodes/extensible.h */ - List *custom_plans; /* list of Plan nodes, if any */ - List *custom_exprs; /* expressions that custom code may evaluate */ - List *custom_private; /* private data for custom code */ - List *custom_scan_tlist; /* optional tlist describing scan tuple */ - Bitmapset *custom_relids; /* RTIs generated by this scan */ - const struct CustomScanMethods *methods; -} CustomScan; - -/* - * ========== - * Join nodes - * ========== - */ - -/* ---------------- - * Join node - * - * jointype: rule for joining tuples from left and right subtrees - * inner_unique each outer tuple can match to no more than one inner tuple - * joinqual: qual conditions that came from JOIN/ON or JOIN/USING - * (plan.qual contains conditions that came from WHERE) - * - * When jointype is INNER, joinqual and plan.qual are semantically - * interchangeable. For OUTER jointypes, the two are *not* interchangeable; - * only joinqual is used to determine whether a match has been found for - * the purpose of deciding whether to generate null-extended tuples. - * (But plan.qual is still applied before actually returning a tuple.) - * For an outer join, only joinquals are allowed to be used as the merge - * or hash condition of a merge or hash join. - * - * inner_unique is set if the joinquals are such that no more than one inner - * tuple could match any given outer tuple. This allows the executor to - * skip searching for additional matches. (This must be provable from just - * the joinquals, ignoring plan.qual, due to where the executor tests it.) - * ---------------- - */ -typedef struct Join -{ - Plan plan; - JoinType jointype; - bool inner_unique; - List *joinqual; /* JOIN quals (in addition to plan.qual) */ -} Join; - -/* ---------------- - * nest loop join node - * - * The nestParams list identifies any executor Params that must be passed - * into execution of the inner subplan carrying values from the current row - * of the outer subplan. Currently we restrict these values to be simple - * Vars, but perhaps someday that'd be worth relaxing. (Note: during plan - * creation, the paramval can actually be a PlaceHolderVar expression; but it - * must be a Var with varno OUTER_VAR by the time it gets to the executor.) - * ---------------- - */ -typedef struct NestLoop -{ - Join join; - List *nestParams; /* list of NestLoopParam nodes */ -} NestLoop; - -typedef struct NestLoopParam -{ - NodeTag type; - int paramno; /* number of the PARAM_EXEC Param to set */ - Var *paramval; /* outer-relation Var to assign to Param */ -} NestLoopParam; - -/* ---------------- - * merge join node - * - * The expected ordering of each mergeable column is described by a btree - * opfamily OID, a collation OID, a direction (BTLessStrategyNumber or - * BTGreaterStrategyNumber) and a nulls-first flag. Note that the two sides - * of each mergeclause may be of different datatypes, but they are ordered the - * same way according to the common opfamily and collation. The operator in - * each mergeclause must be an equality operator of the indicated opfamily. - * ---------------- - */ -typedef struct MergeJoin -{ - Join join; - bool skip_mark_restore; /* Can we skip mark/restore calls? */ - List *mergeclauses; /* mergeclauses as expression trees */ - /* these are arrays, but have the same length as the mergeclauses list: */ - Oid *mergeFamilies; /* per-clause OIDs of btree opfamilies */ - Oid *mergeCollations; /* per-clause OIDs of collations */ - int *mergeStrategies; /* per-clause ordering (ASC or DESC) */ - bool *mergeNullsFirst; /* per-clause nulls ordering */ -} MergeJoin; - -/* ---------------- - * hash join node - * ---------------- - */ -typedef struct HashJoin -{ - Join join; - List *hashclauses; - List *hashoperators; - List *hashcollations; - - /* - * List of expressions to be hashed for tuples from the outer plan, to - * perform lookups in the hashtable over the inner plan. - */ - List *hashkeys; -} HashJoin; - -/* ---------------- - * materialization node - * ---------------- - */ -typedef struct Material -{ - Plan plan; -} Material; - -/* ---------------- - * memoize node - * ---------------- - */ -typedef struct Memoize -{ - Plan plan; - - int numKeys; /* size of the two arrays below */ - - Oid *hashOperators; /* hash operators for each key */ - Oid *collations; /* collations for each key */ - List *param_exprs; /* cache keys in the form of exprs containing - * parameters */ - bool singlerow; /* true if the cache entry should be marked as - * complete after we store the first tuple in - * it. */ - bool binary_mode; /* true when cache key should be compared bit - * by bit, false when using hash equality ops */ - uint32 est_entries; /* The maximum number of entries that the - * planner expects will fit in the cache, or 0 - * if unknown */ - Bitmapset *keyparamids; /* paramids from param_exprs */ -} Memoize; - -/* ---------------- - * sort node - * ---------------- - */ -typedef struct Sort -{ - Plan plan; - int numCols; /* number of sort-key columns */ - AttrNumber *sortColIdx; /* their indexes in the target list */ - Oid *sortOperators; /* OIDs of operators to sort them by */ - Oid *collations; /* OIDs of collations */ - bool *nullsFirst; /* NULLS FIRST/LAST directions */ -} Sort; - -/* ---------------- - * incremental sort node - * ---------------- - */ -typedef struct IncrementalSort -{ - Sort sort; - int nPresortedCols; /* number of presorted columns */ -} IncrementalSort; - -/* --------------- - * group node - - * Used for queries with GROUP BY (but no aggregates) specified. - * The input must be presorted according to the grouping columns. - * --------------- - */ -typedef struct Group -{ - Plan plan; - int numCols; /* number of grouping columns */ - AttrNumber *grpColIdx; /* their indexes in the target list */ - Oid *grpOperators; /* equality operators to compare with */ - Oid *grpCollations; -} Group; - -/* --------------- - * aggregate node - * - * An Agg node implements plain or grouped aggregation. For grouped - * aggregation, we can work with presorted input or unsorted input; - * the latter strategy uses an internal hashtable. - * - * Notice the lack of any direct info about the aggregate functions to be - * computed. They are found by scanning the node's tlist and quals during - * executor startup. (It is possible that there are no aggregate functions; - * this could happen if they get optimized away by constant-folding, or if - * we are using the Agg node to implement hash-based grouping.) - * --------------- - */ -typedef struct Agg -{ - Plan plan; - AggStrategy aggstrategy; /* basic strategy, see nodes.h */ - AggSplit aggsplit; /* agg-splitting mode, see nodes.h */ - int numCols; /* number of grouping columns */ - AttrNumber *grpColIdx; /* their indexes in the target list */ - Oid *grpOperators; /* equality operators to compare with */ - Oid *grpCollations; - long numGroups; /* estimated number of groups in input */ - uint64 transitionSpace; /* for pass-by-ref transition data */ - Bitmapset *aggParams; /* IDs of Params used in Aggref inputs */ - /* Note: planner provides numGroups & aggParams only in HASHED/MIXED case */ - List *groupingSets; /* grouping sets to use */ - List *chain; /* chained Agg/Sort nodes */ -} Agg; - -/* ---------------- - * window aggregate node - * ---------------- - */ -typedef struct WindowAgg -{ - Plan plan; - Index winref; /* ID referenced by window functions */ - int partNumCols; /* number of columns in partition clause */ - AttrNumber *partColIdx; /* their indexes in the target list */ - Oid *partOperators; /* equality operators for partition columns */ - Oid *partCollations; /* collations for partition columns */ - int ordNumCols; /* number of columns in ordering clause */ - AttrNumber *ordColIdx; /* their indexes in the target list */ - Oid *ordOperators; /* equality operators for ordering columns */ - Oid *ordCollations; /* collations for ordering columns */ - int frameOptions; /* frame_clause options, see WindowDef */ - Node *startOffset; /* expression for starting bound, if any */ - Node *endOffset; /* expression for ending bound, if any */ - List *runCondition; /* qual to help short-circuit execution */ - List *runConditionOrig; /* runCondition for display in EXPLAIN */ - /* these fields are used with RANGE offset PRECEDING/FOLLOWING: */ - Oid startInRangeFunc; /* in_range function for startOffset */ - Oid endInRangeFunc; /* in_range function for endOffset */ - Oid inRangeColl; /* collation for in_range tests */ - bool inRangeAsc; /* use ASC sort order for in_range tests? */ - bool inRangeNullsFirst; /* nulls sort first for in_range tests? */ - bool topWindow; /* false for all apart from the WindowAgg - * that's closest to the root of the plan */ -} WindowAgg; - -/* ---------------- - * unique node - * ---------------- - */ -typedef struct Unique -{ - Plan plan; - int numCols; /* number of columns to check for uniqueness */ - AttrNumber *uniqColIdx; /* their indexes in the target list */ - Oid *uniqOperators; /* equality operators to compare with */ - Oid *uniqCollations; /* collations for equality comparisons */ -} Unique; - -/* ------------ - * gather node - * - * Note: rescan_param is the ID of a PARAM_EXEC parameter slot. That slot - * will never actually contain a value, but the Gather node must flag it as - * having changed whenever it is rescanned. The child parallel-aware scan - * nodes are marked as depending on that parameter, so that the rescan - * machinery is aware that their output is likely to change across rescans. - * In some cases we don't need a rescan Param, so rescan_param is set to -1. - * ------------ - */ -typedef struct Gather -{ - Plan plan; - int num_workers; /* planned number of worker processes */ - int rescan_param; /* ID of Param that signals a rescan, or -1 */ - bool single_copy; /* don't execute plan more than once */ - bool invisible; /* suppress EXPLAIN display (for testing)? */ - Bitmapset *initParam; /* param id's of initplans which are referred - * at gather or one of it's child node */ -} Gather; - -/* ------------ - * gather merge node - * ------------ - */ -typedef struct GatherMerge -{ - Plan plan; - int num_workers; /* planned number of worker processes */ - int rescan_param; /* ID of Param that signals a rescan, or -1 */ - /* remaining fields are just like the sort-key info in struct Sort */ - int numCols; /* number of sort-key columns */ - AttrNumber *sortColIdx; /* their indexes in the target list */ - Oid *sortOperators; /* OIDs of operators to sort them by */ - Oid *collations; /* OIDs of collations */ - bool *nullsFirst; /* NULLS FIRST/LAST directions */ - Bitmapset *initParam; /* param id's of initplans which are referred - * at gather merge or one of it's child node */ -} GatherMerge; - -/* ---------------- - * hash build node - * - * If the executor is supposed to try to apply skew join optimization, then - * skewTable/skewColumn/skewInherit identify the outer relation's join key - * column, from which the relevant MCV statistics can be fetched. - * ---------------- - */ -typedef struct Hash -{ - Plan plan; - - /* - * List of expressions to be hashed for tuples from Hash's outer plan, - * needed to put them into the hashtable. - */ - List *hashkeys; /* hash keys for the hashjoin condition */ - Oid skewTable; /* outer join key's table OID, or InvalidOid */ - AttrNumber skewColumn; /* outer join key's column #, or zero */ - bool skewInherit; /* is outer join rel an inheritance tree? */ - /* all other info is in the parent HashJoin node */ - Cardinality rows_total; /* estimate total rows if parallel_aware */ -} Hash; - -/* ---------------- - * setop node - * ---------------- - */ -typedef struct SetOp -{ - Plan plan; - SetOpCmd cmd; /* what to do, see nodes.h */ - SetOpStrategy strategy; /* how to do it, see nodes.h */ - int numCols; /* number of columns to check for - * duplicate-ness */ - AttrNumber *dupColIdx; /* their indexes in the target list */ - Oid *dupOperators; /* equality operators to compare with */ - Oid *dupCollations; - AttrNumber flagColIdx; /* where is the flag column, if any */ - int firstFlag; /* flag value for first input relation */ - long numGroups; /* estimated number of groups in input */ -} SetOp; - -/* ---------------- - * lock-rows node - * - * rowMarks identifies the rels to be locked by this node; it should be - * a subset of the rowMarks listed in the top-level PlannedStmt. - * epqParam is a Param that all scan nodes below this one must depend on. - * It is used to force re-evaluation of the plan during EvalPlanQual. - * ---------------- - */ -typedef struct LockRows -{ - Plan plan; - List *rowMarks; /* a list of PlanRowMark's */ - int epqParam; /* ID of Param for EvalPlanQual re-eval */ -} LockRows; - -/* ---------------- - * limit node - * - * Note: as of Postgres 8.2, the offset and count expressions are expected - * to yield int8, rather than int4 as before. - * ---------------- - */ -typedef struct Limit -{ - Plan plan; - Node *limitOffset; /* OFFSET parameter, or NULL if none */ - Node *limitCount; /* COUNT parameter, or NULL if none */ - LimitOption limitOption; /* limit type */ - int uniqNumCols; /* number of columns to check for similarity */ - AttrNumber *uniqColIdx; /* their indexes in the target list */ - Oid *uniqOperators; /* equality operators to compare with */ - Oid *uniqCollations; /* collations for equality comparisons */ -} Limit; - - -/* - * RowMarkType - - * enums for types of row-marking operations - * - * The first four of these values represent different lock strengths that - * we can take on tuples according to SELECT FOR [KEY] UPDATE/SHARE requests. - * We support these on regular tables, as well as on foreign tables whose FDWs - * report support for late locking. For other foreign tables, any locking - * that might be done for such requests must happen during the initial row - * fetch; their FDWs provide no mechanism for going back to lock a row later. - * This means that the semantics will be a bit different than for a local - * table; in particular we are likely to lock more rows than would be locked - * locally, since remote rows will be locked even if they then fail - * locally-checked restriction or join quals. However, the prospect of - * doing a separate remote query to lock each selected row is usually pretty - * unappealing, so early locking remains a credible design choice for FDWs. - * - * When doing UPDATE, DELETE, or SELECT FOR UPDATE/SHARE, we have to uniquely - * identify all the source rows, not only those from the target relations, so - * that we can perform EvalPlanQual rechecking at need. For plain tables we - * can just fetch the TID, much as for a target relation; this case is - * represented by ROW_MARK_REFERENCE. Otherwise (for example for VALUES or - * FUNCTION scans) we have to copy the whole row value. ROW_MARK_COPY is - * pretty inefficient, since most of the time we'll never need the data; but - * fortunately the overhead is usually not performance-critical in practice. - * By default we use ROW_MARK_COPY for foreign tables, but if the FDW has - * a concept of rowid it can request to use ROW_MARK_REFERENCE instead. - * (Again, this probably doesn't make sense if a physical remote fetch is - * needed, but for FDWs that map to local storage it might be credible.) - */ -typedef enum RowMarkType -{ - ROW_MARK_EXCLUSIVE, /* obtain exclusive tuple lock */ - ROW_MARK_NOKEYEXCLUSIVE, /* obtain no-key exclusive tuple lock */ - ROW_MARK_SHARE, /* obtain shared tuple lock */ - ROW_MARK_KEYSHARE, /* obtain keyshare tuple lock */ - ROW_MARK_REFERENCE, /* just fetch the TID, don't lock it */ - ROW_MARK_COPY /* physically copy the row value */ -} RowMarkType; - -#define RowMarkRequiresRowShareLock(marktype) ((marktype) <= ROW_MARK_KEYSHARE) - -/* - * PlanRowMark - - * plan-time representation of FOR [KEY] UPDATE/SHARE clauses - * - * When doing UPDATE, DELETE, or SELECT FOR UPDATE/SHARE, we create a separate - * PlanRowMark node for each non-target relation in the query. Relations that - * are not specified as FOR UPDATE/SHARE are marked ROW_MARK_REFERENCE (if - * regular tables or supported foreign tables) or ROW_MARK_COPY (if not). - * - * Initially all PlanRowMarks have rti == prti and isParent == false. - * When the planner discovers that a relation is the root of an inheritance - * tree, it sets isParent true, and adds an additional PlanRowMark to the - * list for each child relation (including the target rel itself in its role - * as a child, if it is not a partitioned table). Any non-leaf partitioned - * child relations will also have entries with isParent = true. The child - * entries have rti == child rel's RT index and prti == top parent's RT index, - * and can therefore be recognized as children by the fact that prti != rti. - * The parent's allMarkTypes field gets the OR of (1<0 means N - * levels up */ - Index varnosyn; /* syntactic relation index (0 if unknown) */ - AttrNumber varattnosyn; /* syntactic attribute number */ - int location; /* token location, or -1 if unknown */ -} Var; - -/* - * Const - * - * Note: for varlena data types, we make a rule that a Const node's value - * must be in non-extended form (4-byte header, no compression or external - * references). This ensures that the Const node is self-contained and makes - * it more likely that equal() will see logically identical values as equal. - */ -typedef struct Const -{ - Expr xpr; - Oid consttype; /* pg_type OID of the constant's datatype */ - int32 consttypmod; /* typmod value, if any */ - Oid constcollid; /* OID of collation, or InvalidOid if none */ - int constlen; /* typlen of the constant's datatype */ - Datum constvalue; /* the constant's value */ - bool constisnull; /* whether the constant is null (if true, - * constvalue is undefined) */ - bool constbyval; /* whether this datatype is passed by value. - * If true, then all the information is stored - * in the Datum. If false, then the Datum - * contains a pointer to the information. */ - int location; /* token location, or -1 if unknown */ -} Const; - -/* - * Param - * - * paramkind specifies the kind of parameter. The possible values - * for this field are: - * - * PARAM_EXTERN: The parameter value is supplied from outside the plan. - * Such parameters are numbered from 1 to n. - * - * PARAM_EXEC: The parameter is an internal executor parameter, used - * for passing values into and out of sub-queries or from - * nestloop joins to their inner scans. - * For historical reasons, such parameters are numbered from 0. - * These numbers are independent of PARAM_EXTERN numbers. - * - * PARAM_SUBLINK: The parameter represents an output column of a SubLink - * node's sub-select. The column number is contained in the - * `paramid' field. (This type of Param is converted to - * PARAM_EXEC during planning.) - * - * PARAM_MULTIEXPR: Like PARAM_SUBLINK, the parameter represents an - * output column of a SubLink node's sub-select, but here, the - * SubLink is always a MULTIEXPR SubLink. The high-order 16 bits - * of the `paramid' field contain the SubLink's subLinkId, and - * the low-order 16 bits contain the column number. (This type - * of Param is also converted to PARAM_EXEC during planning.) - */ -typedef enum ParamKind -{ - PARAM_EXTERN, - PARAM_EXEC, - PARAM_SUBLINK, - PARAM_MULTIEXPR -} ParamKind; - -typedef struct Param -{ - Expr xpr; - ParamKind paramkind; /* kind of parameter. See above */ - int paramid; /* numeric ID for parameter */ - Oid paramtype; /* pg_type OID of parameter's datatype */ - int32 paramtypmod; /* typmod value, if known */ - Oid paramcollid; /* OID of collation, or InvalidOid if none */ - int location; /* token location, or -1 if unknown */ -} Param; - -/* - * Aggref - * - * The aggregate's args list is a targetlist, ie, a list of TargetEntry nodes. - * - * For a normal (non-ordered-set) aggregate, the non-resjunk TargetEntries - * represent the aggregate's regular arguments (if any) and resjunk TLEs can - * be added at the end to represent ORDER BY expressions that are not also - * arguments. As in a top-level Query, the TLEs can be marked with - * ressortgroupref indexes to let them be referenced by SortGroupClause - * entries in the aggorder and/or aggdistinct lists. This represents ORDER BY - * and DISTINCT operations to be applied to the aggregate input rows before - * they are passed to the transition function. The grammar only allows a - * simple "DISTINCT" specifier for the arguments, but we use the full - * query-level representation to allow more code sharing. - * - * For an ordered-set aggregate, the args list represents the WITHIN GROUP - * (aggregated) arguments, all of which will be listed in the aggorder list. - * DISTINCT is not supported in this case, so aggdistinct will be NIL. - * The direct arguments appear in aggdirectargs (as a list of plain - * expressions, not TargetEntry nodes). - * - * aggtranstype is the data type of the state transition values for this - * aggregate (resolved to an actual type, if agg's transtype is polymorphic). - * This is determined during planning and is InvalidOid before that. - * - * aggargtypes is an OID list of the data types of the direct and regular - * arguments. Normally it's redundant with the aggdirectargs and args lists, - * but in a combining aggregate, it's not because the args list has been - * replaced with a single argument representing the partial-aggregate - * transition values. - * - * aggsplit indicates the expected partial-aggregation mode for the Aggref's - * parent plan node. It's always set to AGGSPLIT_SIMPLE in the parser, but - * the planner might change it to something else. We use this mainly as - * a crosscheck that the Aggrefs match the plan; but note that when aggsplit - * indicates a non-final mode, aggtype reflects the transition data type - * not the SQL-level output type of the aggregate. - * - * aggno and aggtransno are -1 in the parse stage, and are set in planning. - * Aggregates with the same 'aggno' represent the same aggregate expression, - * and can share the result. Aggregates with same 'transno' but different - * 'aggno' can share the same transition state, only the final function needs - * to be called separately. - */ -typedef struct Aggref -{ - Expr xpr; - Oid aggfnoid; /* pg_proc Oid of the aggregate */ - Oid aggtype; /* type Oid of result of the aggregate */ - Oid aggcollid; /* OID of collation of result */ - Oid inputcollid; /* OID of collation that function should use */ - Oid aggtranstype; /* type Oid of aggregate's transition value */ - List *aggargtypes; /* type Oids of direct and aggregated args */ - List *aggdirectargs; /* direct arguments, if an ordered-set agg */ - List *args; /* aggregated arguments and sort expressions */ - List *aggorder; /* ORDER BY (list of SortGroupClause) */ - List *aggdistinct; /* DISTINCT (list of SortGroupClause) */ - Expr *aggfilter; /* FILTER expression, if any */ - bool aggstar; /* true if argument list was really '*' */ - bool aggvariadic; /* true if variadic arguments have been - * combined into an array last argument */ - char aggkind; /* aggregate kind (see pg_aggregate.h) */ - Index agglevelsup; /* > 0 if agg belongs to outer query */ - AggSplit aggsplit; /* expected agg-splitting mode of parent Agg */ - int aggno; /* unique ID within the Agg node */ - int aggtransno; /* unique ID of transition state in the Agg */ - int location; /* token location, or -1 if unknown */ -} Aggref; - -/* - * GroupingFunc - * - * A GroupingFunc is a GROUPING(...) expression, which behaves in many ways - * like an aggregate function (e.g. it "belongs" to a specific query level, - * which might not be the one immediately containing it), but also differs in - * an important respect: it never evaluates its arguments, they merely - * designate expressions from the GROUP BY clause of the query level to which - * it belongs. - * - * The spec defines the evaluation of GROUPING() purely by syntactic - * replacement, but we make it a real expression for optimization purposes so - * that one Agg node can handle multiple grouping sets at once. Evaluating the - * result only needs the column positions to check against the grouping set - * being projected. However, for EXPLAIN to produce meaningful output, we have - * to keep the original expressions around, since expression deparse does not - * give us any feasible way to get at the GROUP BY clause. - * - * Also, we treat two GroupingFunc nodes as equal if they have equal arguments - * lists and agglevelsup, without comparing the refs and cols annotations. - * - * In raw parse output we have only the args list; parse analysis fills in the - * refs list, and the planner fills in the cols list. - */ -typedef struct GroupingFunc -{ - Expr xpr; - List *args; /* arguments, not evaluated but kept for - * benefit of EXPLAIN etc. */ - List *refs; /* ressortgrouprefs of arguments */ - List *cols; /* actual column positions set by planner */ - Index agglevelsup; /* same as Aggref.agglevelsup */ - int location; /* token location */ -} GroupingFunc; - -/* - * WindowFunc - */ -typedef struct WindowFunc -{ - Expr xpr; - Oid winfnoid; /* pg_proc Oid of the function */ - Oid wintype; /* type Oid of result of the window function */ - Oid wincollid; /* OID of collation of result */ - Oid inputcollid; /* OID of collation that function should use */ - List *args; /* arguments to the window function */ - Expr *aggfilter; /* FILTER expression, if any */ - Index winref; /* index of associated WindowClause */ - bool winstar; /* true if argument list was really '*' */ - bool winagg; /* is function a simple aggregate? */ - int location; /* token location, or -1 if unknown */ -} WindowFunc; - -/* - * SubscriptingRef: describes a subscripting operation over a container - * (array, etc). - * - * A SubscriptingRef can describe fetching a single element from a container, - * fetching a part of a container (e.g. an array slice), storing a single - * element into a container, or storing a slice. The "store" cases work with - * an initial container value and a source value that is inserted into the - * appropriate part of the container; the result of the operation is an - * entire new modified container value. - * - * If reflowerindexpr = NIL, then we are fetching or storing a single container - * element at the subscripts given by refupperindexpr. Otherwise we are - * fetching or storing a container slice, that is a rectangular subcontainer - * with lower and upper bounds given by the index expressions. - * reflowerindexpr must be the same length as refupperindexpr when it - * is not NIL. - * - * In the slice case, individual expressions in the subscript lists can be - * NULL, meaning "substitute the array's current lower or upper bound". - * (Non-array containers may or may not support this.) - * - * refcontainertype is the actual container type that determines the - * subscripting semantics. (This will generally be either the exposed type of - * refexpr, or the base type if that is a domain.) refelemtype is the type of - * the container's elements; this is saved for the use of the subscripting - * functions, but is not used by the core code. refrestype, reftypmod, and - * refcollid describe the type of the SubscriptingRef's result. In a store - * expression, refrestype will always match refcontainertype; in a fetch, - * it could be refelemtype for an element fetch, or refcontainertype for a - * slice fetch, or possibly something else as determined by type-specific - * subscripting logic. Likewise, reftypmod and refcollid will match the - * container's properties in a store, but could be different in a fetch. - * - * Note: for the cases where a container is returned, if refexpr yields a R/W - * expanded container, then the implementation is allowed to modify that - * object in-place and return the same object. - */ -typedef struct SubscriptingRef -{ - Expr xpr; - Oid refcontainertype; /* type of the container proper */ - Oid refelemtype; /* the container type's pg_type.typelem */ - Oid refrestype; /* type of the SubscriptingRef's result */ - int32 reftypmod; /* typmod of the result */ - Oid refcollid; /* collation of result, or InvalidOid if none */ - List *refupperindexpr; /* expressions that evaluate to upper - * container indexes */ - List *reflowerindexpr; /* expressions that evaluate to lower - * container indexes, or NIL for single - * container element */ - Expr *refexpr; /* the expression that evaluates to a - * container value */ - Expr *refassgnexpr; /* expression for the source value, or NULL if - * fetch */ -} SubscriptingRef; - -/* - * CoercionContext - distinguishes the allowed set of type casts - * - * NB: ordering of the alternatives is significant; later (larger) values - * allow more casts than earlier ones. - */ -typedef enum CoercionContext -{ - COERCION_IMPLICIT, /* coercion in context of expression */ - COERCION_ASSIGNMENT, /* coercion in context of assignment */ - COERCION_PLPGSQL, /* if no assignment cast, use CoerceViaIO */ - COERCION_EXPLICIT /* explicit cast operation */ -} CoercionContext; - -/* - * CoercionForm - how to display a FuncExpr or related node - * - * "Coercion" is a bit of a misnomer, since this value records other - * special syntaxes besides casts, but for now we'll keep this naming. - * - * NB: equal() ignores CoercionForm fields, therefore this *must* not carry - * any semantically significant information. We need that behavior so that - * the planner will consider equivalent implicit and explicit casts to be - * equivalent. In cases where those actually behave differently, the coercion - * function's arguments will be different. - */ -typedef enum CoercionForm -{ - COERCE_EXPLICIT_CALL, /* display as a function call */ - COERCE_EXPLICIT_CAST, /* display as an explicit cast */ - COERCE_IMPLICIT_CAST, /* implicit cast, so hide it */ - COERCE_SQL_SYNTAX /* display with SQL-mandated special syntax */ -} CoercionForm; - -/* - * FuncExpr - expression node for a function call - */ -typedef struct FuncExpr -{ - Expr xpr; - Oid funcid; /* PG_PROC OID of the function */ - Oid funcresulttype; /* PG_TYPE OID of result value */ - bool funcretset; /* true if function returns set */ - bool funcvariadic; /* true if variadic arguments have been - * combined into an array last argument */ - CoercionForm funcformat; /* how to display this function call */ - Oid funccollid; /* OID of collation of result */ - Oid inputcollid; /* OID of collation that function should use */ - List *args; /* arguments to the function */ - int location; /* token location, or -1 if unknown */ -} FuncExpr; - -/* - * NamedArgExpr - a named argument of a function - * - * This node type can only appear in the args list of a FuncCall or FuncExpr - * node. We support pure positional call notation (no named arguments), - * named notation (all arguments are named), and mixed notation (unnamed - * arguments followed by named ones). - * - * Parse analysis sets argnumber to the positional index of the argument, - * but doesn't rearrange the argument list. - * - * The planner will convert argument lists to pure positional notation - * during expression preprocessing, so execution never sees a NamedArgExpr. - */ -typedef struct NamedArgExpr -{ - Expr xpr; - Expr *arg; /* the argument expression */ - char *name; /* the name */ - int argnumber; /* argument's number in positional notation */ - int location; /* argument name location, or -1 if unknown */ -} NamedArgExpr; - -/* - * OpExpr - expression node for an operator invocation - * - * Semantically, this is essentially the same as a function call. - * - * Note that opfuncid is not necessarily filled in immediately on creation - * of the node. The planner makes sure it is valid before passing the node - * tree to the executor, but during parsing/planning opfuncid can be 0. - */ -typedef struct OpExpr -{ - Expr xpr; - Oid opno; /* PG_OPERATOR OID of the operator */ - Oid opfuncid; /* PG_PROC OID of underlying function */ - Oid opresulttype; /* PG_TYPE OID of result value */ - bool opretset; /* true if operator returns set */ - Oid opcollid; /* OID of collation of result */ - Oid inputcollid; /* OID of collation that operator should use */ - List *args; /* arguments to the operator (1 or 2) */ - int location; /* token location, or -1 if unknown */ -} OpExpr; - -/* - * DistinctExpr - expression node for "x IS DISTINCT FROM y" - * - * Except for the nodetag, this is represented identically to an OpExpr - * referencing the "=" operator for x and y. - * We use "=", not the more obvious "<>", because more datatypes have "=" - * than "<>". This means the executor must invert the operator result. - * Note that the operator function won't be called at all if either input - * is NULL, since then the result can be determined directly. - */ -typedef OpExpr DistinctExpr; - -/* - * NullIfExpr - a NULLIF expression - * - * Like DistinctExpr, this is represented the same as an OpExpr referencing - * the "=" operator for x and y. - */ -typedef OpExpr NullIfExpr; - -/* - * ScalarArrayOpExpr - expression node for "scalar op ANY/ALL (array)" - * - * The operator must yield boolean. It is applied to the left operand - * and each element of the righthand array, and the results are combined - * with OR or AND (for ANY or ALL respectively). The node representation - * is almost the same as for the underlying operator, but we need a useOr - * flag to remember whether it's ANY or ALL, and we don't have to store - * the result type (or the collation) because it must be boolean. - * - * A ScalarArrayOpExpr with a valid hashfuncid is evaluated during execution - * by building a hash table containing the Const values from the RHS arg. - * This table is probed during expression evaluation. The planner will set - * hashfuncid to the hash function which must be used to build and probe the - * hash table. The executor determines if it should use hash-based checks or - * the more traditional means based on if the hashfuncid is set or not. - * - * When performing hashed NOT IN, the negfuncid will also be set to the - * equality function which the hash table must use to build and probe the hash - * table. opno and opfuncid will remain set to the <> operator and its - * corresponding function and won't be used during execution. For - * non-hashtable based NOT INs, negfuncid will be set to InvalidOid. See - * convert_saop_to_hashed_saop(). - */ -typedef struct ScalarArrayOpExpr -{ - Expr xpr; - Oid opno; /* PG_OPERATOR OID of the operator */ - Oid opfuncid; /* PG_PROC OID of comparison function */ - Oid hashfuncid; /* PG_PROC OID of hash func or InvalidOid */ - Oid negfuncid; /* PG_PROC OID of negator of opfuncid function - * or InvalidOid. See above */ - bool useOr; /* true for ANY, false for ALL */ - Oid inputcollid; /* OID of collation that operator should use */ - List *args; /* the scalar and array operands */ - int location; /* token location, or -1 if unknown */ -} ScalarArrayOpExpr; - -/* - * BoolExpr - expression node for the basic Boolean operators AND, OR, NOT - * - * Notice the arguments are given as a List. For NOT, of course the list - * must always have exactly one element. For AND and OR, there can be two - * or more arguments. - */ -typedef enum BoolExprType -{ - AND_EXPR, OR_EXPR, NOT_EXPR -} BoolExprType; - -typedef struct BoolExpr -{ - Expr xpr; - BoolExprType boolop; - List *args; /* arguments to this expression */ - int location; /* token location, or -1 if unknown */ -} BoolExpr; - -/* - * SubLink - * - * A SubLink represents a subselect appearing in an expression, and in some - * cases also the combining operator(s) just above it. The subLinkType - * indicates the form of the expression represented: - * EXISTS_SUBLINK EXISTS(SELECT ...) - * ALL_SUBLINK (lefthand) op ALL (SELECT ...) - * ANY_SUBLINK (lefthand) op ANY (SELECT ...) - * ROWCOMPARE_SUBLINK (lefthand) op (SELECT ...) - * EXPR_SUBLINK (SELECT with single targetlist item ...) - * MULTIEXPR_SUBLINK (SELECT with multiple targetlist items ...) - * ARRAY_SUBLINK ARRAY(SELECT with single targetlist item ...) - * CTE_SUBLINK WITH query (never actually part of an expression) - * For ALL, ANY, and ROWCOMPARE, the lefthand is a list of expressions of the - * same length as the subselect's targetlist. ROWCOMPARE will *always* have - * a list with more than one entry; if the subselect has just one target - * then the parser will create an EXPR_SUBLINK instead (and any operator - * above the subselect will be represented separately). - * ROWCOMPARE, EXPR, and MULTIEXPR require the subselect to deliver at most - * one row (if it returns no rows, the result is NULL). - * ALL, ANY, and ROWCOMPARE require the combining operators to deliver boolean - * results. ALL and ANY combine the per-row results using AND and OR - * semantics respectively. - * ARRAY requires just one target column, and creates an array of the target - * column's type using any number of rows resulting from the subselect. - * - * SubLink is classed as an Expr node, but it is not actually executable; - * it must be replaced in the expression tree by a SubPlan node during - * planning. - * - * NOTE: in the raw output of gram.y, testexpr contains just the raw form - * of the lefthand expression (if any), and operName is the String name of - * the combining operator. Also, subselect is a raw parsetree. During parse - * analysis, the parser transforms testexpr into a complete boolean expression - * that compares the lefthand value(s) to PARAM_SUBLINK nodes representing the - * output columns of the subselect. And subselect is transformed to a Query. - * This is the representation seen in saved rules and in the rewriter. - * - * In EXISTS, EXPR, MULTIEXPR, and ARRAY SubLinks, testexpr and operName - * are unused and are always null. - * - * subLinkId is currently used only for MULTIEXPR SubLinks, and is zero in - * other SubLinks. This number identifies different multiple-assignment - * subqueries within an UPDATE statement's SET list. It is unique only - * within a particular targetlist. The output column(s) of the MULTIEXPR - * are referenced by PARAM_MULTIEXPR Params appearing elsewhere in the tlist. - * - * The CTE_SUBLINK case never occurs in actual SubLink nodes, but it is used - * in SubPlans generated for WITH subqueries. - */ -typedef enum SubLinkType -{ - EXISTS_SUBLINK, - ALL_SUBLINK, - ANY_SUBLINK, - ROWCOMPARE_SUBLINK, - EXPR_SUBLINK, - MULTIEXPR_SUBLINK, - ARRAY_SUBLINK, - CTE_SUBLINK /* for SubPlans only */ -} SubLinkType; - - -typedef struct SubLink -{ - Expr xpr; - SubLinkType subLinkType; /* see above */ - int subLinkId; /* ID (1..n); 0 if not MULTIEXPR */ - Node *testexpr; /* outer-query test for ALL/ANY/ROWCOMPARE */ - List *operName; /* originally specified operator name */ - Node *subselect; /* subselect as Query* or raw parsetree */ - int location; /* token location, or -1 if unknown */ -} SubLink; - -/* - * SubPlan - executable expression node for a subplan (sub-SELECT) - * - * The planner replaces SubLink nodes in expression trees with SubPlan - * nodes after it has finished planning the subquery. SubPlan references - * a sub-plantree stored in the subplans list of the toplevel PlannedStmt. - * (We avoid a direct link to make it easier to copy expression trees - * without causing multiple processing of the subplan.) - * - * In an ordinary subplan, testexpr points to an executable expression - * (OpExpr, an AND/OR tree of OpExprs, or RowCompareExpr) for the combining - * operator(s); the left-hand arguments are the original lefthand expressions, - * and the right-hand arguments are PARAM_EXEC Param nodes representing the - * outputs of the sub-select. (NOTE: runtime coercion functions may be - * inserted as well.) This is just the same expression tree as testexpr in - * the original SubLink node, but the PARAM_SUBLINK nodes are replaced by - * suitably numbered PARAM_EXEC nodes. - * - * If the sub-select becomes an initplan rather than a subplan, the executable - * expression is part of the outer plan's expression tree (and the SubPlan - * node itself is not, but rather is found in the outer plan's initPlan - * list). In this case testexpr is NULL to avoid duplication. - * - * The planner also derives lists of the values that need to be passed into - * and out of the subplan. Input values are represented as a list "args" of - * expressions to be evaluated in the outer-query context (currently these - * args are always just Vars, but in principle they could be any expression). - * The values are assigned to the global PARAM_EXEC params indexed by parParam - * (the parParam and args lists must have the same ordering). setParam is a - * list of the PARAM_EXEC params that are computed by the sub-select, if it - * is an initplan; they are listed in order by sub-select output column - * position. (parParam and setParam are integer Lists, not Bitmapsets, - * because their ordering is significant.) - * - * Also, the planner computes startup and per-call costs for use of the - * SubPlan. Note that these include the cost of the subquery proper, - * evaluation of the testexpr if any, and any hashtable management overhead. - */ -typedef struct SubPlan -{ - Expr xpr; - /* Fields copied from original SubLink: */ - SubLinkType subLinkType; /* see above */ - /* The combining operators, transformed to an executable expression: */ - Node *testexpr; /* OpExpr or RowCompareExpr expression tree */ - List *paramIds; /* IDs of Params embedded in the above */ - /* Identification of the Plan tree to use: */ - int plan_id; /* Index (from 1) in PlannedStmt.subplans */ - /* Identification of the SubPlan for EXPLAIN and debugging purposes: */ - char *plan_name; /* A name assigned during planning */ - /* Extra data useful for determining subplan's output type: */ - Oid firstColType; /* Type of first column of subplan result */ - int32 firstColTypmod; /* Typmod of first column of subplan result */ - Oid firstColCollation; /* Collation of first column of subplan - * result */ - /* Information about execution strategy: */ - bool useHashTable; /* true to store subselect output in a hash - * table (implies we are doing "IN") */ - bool unknownEqFalse; /* true if it's okay to return FALSE when the - * spec result is UNKNOWN; this allows much - * simpler handling of null values */ - bool parallel_safe; /* is the subplan parallel-safe? */ - /* Note: parallel_safe does not consider contents of testexpr or args */ - /* Information for passing params into and out of the subselect: */ - /* setParam and parParam are lists of integers (param IDs) */ - List *setParam; /* initplan subqueries have to set these - * Params for parent plan */ - List *parParam; /* indices of input Params from parent plan */ - List *args; /* exprs to pass as parParam values */ - /* Estimated execution costs: */ - Cost startup_cost; /* one-time setup cost */ - Cost per_call_cost; /* cost for each subplan evaluation */ -} SubPlan; - -/* - * AlternativeSubPlan - expression node for a choice among SubPlans - * - * This is used only transiently during planning: by the time the plan - * reaches the executor, all AlternativeSubPlan nodes have been removed. - * - * The subplans are given as a List so that the node definition need not - * change if there's ever more than two alternatives. For the moment, - * though, there are always exactly two; and the first one is the fast-start - * plan. - */ -typedef struct AlternativeSubPlan -{ - Expr xpr; - List *subplans; /* SubPlan(s) with equivalent results */ -} AlternativeSubPlan; - -/* ---------------- - * FieldSelect - * - * FieldSelect represents the operation of extracting one field from a tuple - * value. At runtime, the input expression is expected to yield a rowtype - * Datum. The specified field number is extracted and returned as a Datum. - * ---------------- - */ - -typedef struct FieldSelect -{ - Expr xpr; - Expr *arg; /* input expression */ - AttrNumber fieldnum; /* attribute number of field to extract */ - Oid resulttype; /* type of the field (result type of this - * node) */ - int32 resulttypmod; /* output typmod (usually -1) */ - Oid resultcollid; /* OID of collation of the field */ -} FieldSelect; - -/* ---------------- - * FieldStore - * - * FieldStore represents the operation of modifying one field in a tuple - * value, yielding a new tuple value (the input is not touched!). Like - * the assign case of SubscriptingRef, this is used to implement UPDATE of a - * portion of a column. - * - * resulttype is always a named composite type (not a domain). To update - * a composite domain value, apply CoerceToDomain to the FieldStore. - * - * A single FieldStore can actually represent updates of several different - * fields. The parser only generates FieldStores with single-element lists, - * but the planner will collapse multiple updates of the same base column - * into one FieldStore. - * ---------------- - */ - -typedef struct FieldStore -{ - Expr xpr; - Expr *arg; /* input tuple value */ - List *newvals; /* new value(s) for field(s) */ - List *fieldnums; /* integer list of field attnums */ - Oid resulttype; /* type of result (same as type of arg) */ - /* Like RowExpr, we deliberately omit a typmod and collation here */ -} FieldStore; - -/* ---------------- - * RelabelType - * - * RelabelType represents a "dummy" type coercion between two binary- - * compatible datatypes, such as reinterpreting the result of an OID - * expression as an int4. It is a no-op at runtime; we only need it - * to provide a place to store the correct type to be attributed to - * the expression result during type resolution. (We can't get away - * with just overwriting the type field of the input expression node, - * so we need a separate node to show the coercion's result type.) - * ---------------- - */ - -typedef struct RelabelType -{ - Expr xpr; - Expr *arg; /* input expression */ - Oid resulttype; /* output type of coercion expression */ - int32 resulttypmod; /* output typmod (usually -1) */ - Oid resultcollid; /* OID of collation, or InvalidOid if none */ - CoercionForm relabelformat; /* how to display this node */ - int location; /* token location, or -1 if unknown */ -} RelabelType; - -/* ---------------- - * CoerceViaIO - * - * CoerceViaIO represents a type coercion between two types whose textual - * representations are compatible, implemented by invoking the source type's - * typoutput function then the destination type's typinput function. - * ---------------- - */ - -typedef struct CoerceViaIO -{ - Expr xpr; - Expr *arg; /* input expression */ - Oid resulttype; /* output type of coercion */ - /* output typmod is not stored, but is presumed -1 */ - Oid resultcollid; /* OID of collation, or InvalidOid if none */ - CoercionForm coerceformat; /* how to display this node */ - int location; /* token location, or -1 if unknown */ -} CoerceViaIO; - -/* ---------------- - * ArrayCoerceExpr - * - * ArrayCoerceExpr represents a type coercion from one array type to another, - * which is implemented by applying the per-element coercion expression - * "elemexpr" to each element of the source array. Within elemexpr, the - * source element is represented by a CaseTestExpr node. Note that even if - * elemexpr is a no-op (that is, just CaseTestExpr + RelabelType), the - * coercion still requires some effort: we have to fix the element type OID - * stored in the array header. - * ---------------- - */ - -typedef struct ArrayCoerceExpr -{ - Expr xpr; - Expr *arg; /* input expression (yields an array) */ - Expr *elemexpr; /* expression representing per-element work */ - Oid resulttype; /* output type of coercion (an array type) */ - int32 resulttypmod; /* output typmod (also element typmod) */ - Oid resultcollid; /* OID of collation, or InvalidOid if none */ - CoercionForm coerceformat; /* how to display this node */ - int location; /* token location, or -1 if unknown */ -} ArrayCoerceExpr; - -/* ---------------- - * ConvertRowtypeExpr - * - * ConvertRowtypeExpr represents a type coercion from one composite type - * to another, where the source type is guaranteed to contain all the columns - * needed for the destination type plus possibly others; the columns need not - * be in the same positions, but are matched up by name. This is primarily - * used to convert a whole-row value of an inheritance child table into a - * valid whole-row value of its parent table's rowtype. Both resulttype - * and the exposed type of "arg" must be named composite types (not domains). - * ---------------- - */ - -typedef struct ConvertRowtypeExpr -{ - Expr xpr; - Expr *arg; /* input expression */ - Oid resulttype; /* output type (always a composite type) */ - /* Like RowExpr, we deliberately omit a typmod and collation here */ - CoercionForm convertformat; /* how to display this node */ - int location; /* token location, or -1 if unknown */ -} ConvertRowtypeExpr; - -/*---------- - * CollateExpr - COLLATE - * - * The planner replaces CollateExpr with RelabelType during expression - * preprocessing, so execution never sees a CollateExpr. - *---------- - */ -typedef struct CollateExpr -{ - Expr xpr; - Expr *arg; /* input expression */ - Oid collOid; /* collation's OID */ - int location; /* token location, or -1 if unknown */ -} CollateExpr; - -/*---------- - * CaseExpr - a CASE expression - * - * We support two distinct forms of CASE expression: - * CASE WHEN boolexpr THEN expr [ WHEN boolexpr THEN expr ... ] - * CASE testexpr WHEN compexpr THEN expr [ WHEN compexpr THEN expr ... ] - * These are distinguishable by the "arg" field being NULL in the first case - * and the testexpr in the second case. - * - * In the raw grammar output for the second form, the condition expressions - * of the WHEN clauses are just the comparison values. Parse analysis - * converts these to valid boolean expressions of the form - * CaseTestExpr '=' compexpr - * where the CaseTestExpr node is a placeholder that emits the correct - * value at runtime. This structure is used so that the testexpr need be - * evaluated only once. Note that after parse analysis, the condition - * expressions always yield boolean. - * - * Note: we can test whether a CaseExpr has been through parse analysis - * yet by checking whether casetype is InvalidOid or not. - *---------- - */ -typedef struct CaseExpr -{ - Expr xpr; - Oid casetype; /* type of expression result */ - Oid casecollid; /* OID of collation, or InvalidOid if none */ - Expr *arg; /* implicit equality comparison argument */ - List *args; /* the arguments (list of WHEN clauses) */ - Expr *defresult; /* the default result (ELSE clause) */ - int location; /* token location, or -1 if unknown */ -} CaseExpr; - -/* - * CaseWhen - one arm of a CASE expression - */ -typedef struct CaseWhen -{ - Expr xpr; - Expr *expr; /* condition expression */ - Expr *result; /* substitution result */ - int location; /* token location, or -1 if unknown */ -} CaseWhen; - -/* - * Placeholder node for the test value to be processed by a CASE expression. - * This is effectively like a Param, but can be implemented more simply - * since we need only one replacement value at a time. - * - * We also abuse this node type for some other purposes, including: - * * Placeholder for the current array element value in ArrayCoerceExpr; - * see build_coercion_expression(). - * * Nested FieldStore/SubscriptingRef assignment expressions in INSERT/UPDATE; - * see transformAssignmentIndirection(). - * - * The uses in CaseExpr and ArrayCoerceExpr are safe only to the extent that - * there is not any other CaseExpr or ArrayCoerceExpr between the value source - * node and its child CaseTestExpr(s). This is true in the parse analysis - * output, but the planner's function-inlining logic has to be careful not to - * break it. - * - * The nested-assignment-expression case is safe because the only node types - * that can be above such CaseTestExprs are FieldStore and SubscriptingRef. - */ -typedef struct CaseTestExpr -{ - Expr xpr; - Oid typeId; /* type for substituted value */ - int32 typeMod; /* typemod for substituted value */ - Oid collation; /* collation for the substituted value */ -} CaseTestExpr; - -/* - * ArrayExpr - an ARRAY[] expression - * - * Note: if multidims is false, the constituent expressions all yield the - * scalar type identified by element_typeid. If multidims is true, the - * constituent expressions all yield arrays of element_typeid (ie, the same - * type as array_typeid); at runtime we must check for compatible subscripts. - */ -typedef struct ArrayExpr -{ - Expr xpr; - Oid array_typeid; /* type of expression result */ - Oid array_collid; /* OID of collation, or InvalidOid if none */ - Oid element_typeid; /* common type of array elements */ - List *elements; /* the array elements or sub-arrays */ - bool multidims; /* true if elements are sub-arrays */ - int location; /* token location, or -1 if unknown */ -} ArrayExpr; - -/* - * RowExpr - a ROW() expression - * - * Note: the list of fields must have a one-for-one correspondence with - * physical fields of the associated rowtype, although it is okay for it - * to be shorter than the rowtype. That is, the N'th list element must - * match up with the N'th physical field. When the N'th physical field - * is a dropped column (attisdropped) then the N'th list element can just - * be a NULL constant. (This case can only occur for named composite types, - * not RECORD types, since those are built from the RowExpr itself rather - * than vice versa.) It is important not to assume that length(args) is - * the same as the number of columns logically present in the rowtype. - * - * colnames provides field names if the ROW() result is of type RECORD. - * Names *must* be provided if row_typeid is RECORDOID; but if it is a - * named composite type, colnames will be ignored in favor of using the - * type's cataloged field names, so colnames should be NIL. Like the - * args list, colnames is defined to be one-for-one with physical fields - * of the rowtype (although dropped columns shouldn't appear in the - * RECORD case, so this fine point is currently moot). - */ -typedef struct RowExpr -{ - Expr xpr; - List *args; /* the fields */ - Oid row_typeid; /* RECORDOID or a composite type's ID */ - - /* - * row_typeid cannot be a domain over composite, only plain composite. To - * create a composite domain value, apply CoerceToDomain to the RowExpr. - * - * Note: we deliberately do NOT store a typmod. Although a typmod will be - * associated with specific RECORD types at runtime, it will differ for - * different backends, and so cannot safely be stored in stored - * parsetrees. We must assume typmod -1 for a RowExpr node. - * - * We don't need to store a collation either. The result type is - * necessarily composite, and composite types never have a collation. - */ - CoercionForm row_format; /* how to display this node */ - List *colnames; /* list of String, or NIL */ - int location; /* token location, or -1 if unknown */ -} RowExpr; - -/* - * RowCompareExpr - row-wise comparison, such as (a, b) <= (1, 2) - * - * We support row comparison for any operator that can be determined to - * act like =, <>, <, <=, >, or >= (we determine this by looking for the - * operator in btree opfamilies). Note that the same operator name might - * map to a different operator for each pair of row elements, since the - * element datatypes can vary. - * - * A RowCompareExpr node is only generated for the < <= > >= cases; - * the = and <> cases are translated to simple AND or OR combinations - * of the pairwise comparisons. However, we include = and <> in the - * RowCompareType enum for the convenience of parser logic. - */ -typedef enum RowCompareType -{ - /* Values of this enum are chosen to match btree strategy numbers */ - ROWCOMPARE_LT = 1, /* BTLessStrategyNumber */ - ROWCOMPARE_LE = 2, /* BTLessEqualStrategyNumber */ - ROWCOMPARE_EQ = 3, /* BTEqualStrategyNumber */ - ROWCOMPARE_GE = 4, /* BTGreaterEqualStrategyNumber */ - ROWCOMPARE_GT = 5, /* BTGreaterStrategyNumber */ - ROWCOMPARE_NE = 6 /* no such btree strategy */ -} RowCompareType; - -typedef struct RowCompareExpr -{ - Expr xpr; - RowCompareType rctype; /* LT LE GE or GT, never EQ or NE */ - List *opnos; /* OID list of pairwise comparison ops */ - List *opfamilies; /* OID list of containing operator families */ - List *inputcollids; /* OID list of collations for comparisons */ - List *largs; /* the left-hand input arguments */ - List *rargs; /* the right-hand input arguments */ -} RowCompareExpr; - -/* - * CoalesceExpr - a COALESCE expression - */ -typedef struct CoalesceExpr -{ - Expr xpr; - Oid coalescetype; /* type of expression result */ - Oid coalescecollid; /* OID of collation, or InvalidOid if none */ - List *args; /* the arguments */ - int location; /* token location, or -1 if unknown */ -} CoalesceExpr; - -/* - * MinMaxExpr - a GREATEST or LEAST function - */ -typedef enum MinMaxOp -{ - IS_GREATEST, - IS_LEAST -} MinMaxOp; - -typedef struct MinMaxExpr -{ - Expr xpr; - Oid minmaxtype; /* common type of arguments and result */ - Oid minmaxcollid; /* OID of collation of result */ - Oid inputcollid; /* OID of collation that function should use */ - MinMaxOp op; /* function to execute */ - List *args; /* the arguments */ - int location; /* token location, or -1 if unknown */ -} MinMaxExpr; - -/* - * SQLValueFunction - parameterless functions with special grammar productions - * - * The SQL standard categorizes some of these as - * and others as . We call 'em SQLValueFunctions - * for lack of a better term. We store type and typmod of the result so that - * some code doesn't need to know each function individually, and because - * we would need to store typmod anyway for some of the datetime functions. - * Note that currently, all variants return non-collating datatypes, so we do - * not need a collation field; also, all these functions are stable. - */ -typedef enum SQLValueFunctionOp -{ - SVFOP_CURRENT_DATE, - SVFOP_CURRENT_TIME, - SVFOP_CURRENT_TIME_N, - SVFOP_CURRENT_TIMESTAMP, - SVFOP_CURRENT_TIMESTAMP_N, - SVFOP_LOCALTIME, - SVFOP_LOCALTIME_N, - SVFOP_LOCALTIMESTAMP, - SVFOP_LOCALTIMESTAMP_N, - SVFOP_CURRENT_ROLE, - SVFOP_CURRENT_USER, - SVFOP_USER, - SVFOP_SESSION_USER, - SVFOP_CURRENT_CATALOG, - SVFOP_CURRENT_SCHEMA -} SQLValueFunctionOp; - -typedef struct SQLValueFunction -{ - Expr xpr; - SQLValueFunctionOp op; /* which function this is */ - Oid type; /* result type/typmod */ - int32 typmod; - int location; /* token location, or -1 if unknown */ -} SQLValueFunction; - -/* - * XmlExpr - various SQL/XML functions requiring special grammar productions - * - * 'name' carries the "NAME foo" argument (already XML-escaped). - * 'named_args' and 'arg_names' represent an xml_attribute list. - * 'args' carries all other arguments. - * - * Note: result type/typmod/collation are not stored, but can be deduced - * from the XmlExprOp. The type/typmod fields are just used for display - * purposes, and are NOT necessarily the true result type of the node. - */ -typedef enum XmlExprOp -{ - IS_XMLCONCAT, /* XMLCONCAT(args) */ - IS_XMLELEMENT, /* XMLELEMENT(name, xml_attributes, args) */ - IS_XMLFOREST, /* XMLFOREST(xml_attributes) */ - IS_XMLPARSE, /* XMLPARSE(text, is_doc, preserve_ws) */ - IS_XMLPI, /* XMLPI(name [, args]) */ - IS_XMLROOT, /* XMLROOT(xml, version, standalone) */ - IS_XMLSERIALIZE, /* XMLSERIALIZE(is_document, xmlval) */ - IS_DOCUMENT /* xmlval IS DOCUMENT */ -} XmlExprOp; - -typedef enum XmlOptionType -{ - XMLOPTION_DOCUMENT, - XMLOPTION_CONTENT -} XmlOptionType; - -typedef struct XmlExpr -{ - Expr xpr; - XmlExprOp op; /* xml function ID */ - char *name; /* name in xml(NAME foo ...) syntaxes */ - List *named_args; /* non-XML expressions for xml_attributes */ - List *arg_names; /* parallel list of String values */ - List *args; /* list of expressions */ - XmlOptionType xmloption; /* DOCUMENT or CONTENT */ - Oid type; /* target type/typmod for XMLSERIALIZE */ - int32 typmod; - int location; /* token location, or -1 if unknown */ -} XmlExpr; - -/* ---------------- - * NullTest - * - * NullTest represents the operation of testing a value for NULLness. - * The appropriate test is performed and returned as a boolean Datum. - * - * When argisrow is false, this simply represents a test for the null value. - * - * When argisrow is true, the input expression must yield a rowtype, and - * the node implements "row IS [NOT] NULL" per the SQL standard. This - * includes checking individual fields for NULLness when the row datum - * itself isn't NULL. - * - * NOTE: the combination of a rowtype input and argisrow==false does NOT - * correspond to the SQL notation "row IS [NOT] NULL"; instead, this case - * represents the SQL notation "row IS [NOT] DISTINCT FROM NULL". - * ---------------- - */ - -typedef enum NullTestType -{ - IS_NULL, IS_NOT_NULL -} NullTestType; - -typedef struct NullTest -{ - Expr xpr; - Expr *arg; /* input expression */ - NullTestType nulltesttype; /* IS NULL, IS NOT NULL */ - bool argisrow; /* T to perform field-by-field null checks */ - int location; /* token location, or -1 if unknown */ -} NullTest; - -/* - * BooleanTest - * - * BooleanTest represents the operation of determining whether a boolean - * is TRUE, FALSE, or UNKNOWN (ie, NULL). All six meaningful combinations - * are supported. Note that a NULL input does *not* cause a NULL result. - * The appropriate test is performed and returned as a boolean Datum. - */ - -typedef enum BoolTestType -{ - IS_TRUE, IS_NOT_TRUE, IS_FALSE, IS_NOT_FALSE, IS_UNKNOWN, IS_NOT_UNKNOWN -} BoolTestType; - -typedef struct BooleanTest -{ - Expr xpr; - Expr *arg; /* input expression */ - BoolTestType booltesttype; /* test type */ - int location; /* token location, or -1 if unknown */ -} BooleanTest; - -/* - * CoerceToDomain - * - * CoerceToDomain represents the operation of coercing a value to a domain - * type. At runtime (and not before) the precise set of constraints to be - * checked will be determined. If the value passes, it is returned as the - * result; if not, an error is raised. Note that this is equivalent to - * RelabelType in the scenario where no constraints are applied. - */ -typedef struct CoerceToDomain -{ - Expr xpr; - Expr *arg; /* input expression */ - Oid resulttype; /* domain type ID (result type) */ - int32 resulttypmod; /* output typmod (currently always -1) */ - Oid resultcollid; /* OID of collation, or InvalidOid if none */ - CoercionForm coercionformat; /* how to display this node */ - int location; /* token location, or -1 if unknown */ -} CoerceToDomain; - -/* - * Placeholder node for the value to be processed by a domain's check - * constraint. This is effectively like a Param, but can be implemented more - * simply since we need only one replacement value at a time. - * - * Note: the typeId/typeMod/collation will be set from the domain's base type, - * not the domain itself. This is because we shouldn't consider the value - * to be a member of the domain if we haven't yet checked its constraints. - */ -typedef struct CoerceToDomainValue -{ - Expr xpr; - Oid typeId; /* type for substituted value */ - int32 typeMod; /* typemod for substituted value */ - Oid collation; /* collation for the substituted value */ - int location; /* token location, or -1 if unknown */ -} CoerceToDomainValue; - -/* - * Placeholder node for a DEFAULT marker in an INSERT or UPDATE command. - * - * This is not an executable expression: it must be replaced by the actual - * column default expression during rewriting. But it is convenient to - * treat it as an expression node during parsing and rewriting. - */ -typedef struct SetToDefault -{ - Expr xpr; - Oid typeId; /* type for substituted value */ - int32 typeMod; /* typemod for substituted value */ - Oid collation; /* collation for the substituted value */ - int location; /* token location, or -1 if unknown */ -} SetToDefault; - -/* - * Node representing [WHERE] CURRENT OF cursor_name - * - * CURRENT OF is a bit like a Var, in that it carries the rangetable index - * of the target relation being constrained; this aids placing the expression - * correctly during planning. We can assume however that its "levelsup" is - * always zero, due to the syntactic constraints on where it can appear. - * Also, cvarno will always be a true RT index, never INNER_VAR etc. - * - * The referenced cursor can be represented either as a hardwired string - * or as a reference to a run-time parameter of type REFCURSOR. The latter - * case is for the convenience of plpgsql. - */ -typedef struct CurrentOfExpr -{ - Expr xpr; - Index cvarno; /* RT index of target relation */ - char *cursor_name; /* name of referenced cursor, or NULL */ - int cursor_param; /* refcursor parameter number, or 0 */ -} CurrentOfExpr; - -/* - * NextValueExpr - get next value from sequence - * - * This has the same effect as calling the nextval() function, but it does not - * check permissions on the sequence. This is used for identity columns, - * where the sequence is an implicit dependency without its own permissions. - */ -typedef struct NextValueExpr -{ - Expr xpr; - Oid seqid; - Oid typeId; -} NextValueExpr; - -/* - * InferenceElem - an element of a unique index inference specification - * - * This mostly matches the structure of IndexElems, but having a dedicated - * primnode allows for a clean separation between the use of index parameters - * by utility commands, and this node. - */ -typedef struct InferenceElem -{ - Expr xpr; - Node *expr; /* expression to infer from, or NULL */ - Oid infercollid; /* OID of collation, or InvalidOid */ - Oid inferopclass; /* OID of att opclass, or InvalidOid */ -} InferenceElem; - -/*-------------------- - * TargetEntry - - * a target entry (used in query target lists) - * - * Strictly speaking, a TargetEntry isn't an expression node (since it can't - * be evaluated by ExecEvalExpr). But we treat it as one anyway, since in - * very many places it's convenient to process a whole query targetlist as a - * single expression tree. - * - * In a SELECT's targetlist, resno should always be equal to the item's - * ordinal position (counting from 1). However, in an INSERT or UPDATE - * targetlist, resno represents the attribute number of the destination - * column for the item; so there may be missing or out-of-order resnos. - * It is even legal to have duplicated resnos; consider - * UPDATE table SET arraycol[1] = ..., arraycol[2] = ..., ... - * In an INSERT, the rewriter and planner will normalize the tlist by - * reordering it into physical column order and filling in default values - * for any columns not assigned values by the original query. In an UPDATE, - * after the rewriter merges multiple assignments for the same column, the - * planner extracts the target-column numbers into a separate "update_colnos" - * list, and then renumbers the tlist elements serially. Thus, tlist resnos - * match ordinal position in all tlists seen by the executor; but it is wrong - * to assume that before planning has happened. - * - * resname is required to represent the correct column name in non-resjunk - * entries of top-level SELECT targetlists, since it will be used as the - * column title sent to the frontend. In most other contexts it is only - * a debugging aid, and may be wrong or even NULL. (In particular, it may - * be wrong in a tlist from a stored rule, if the referenced column has been - * renamed by ALTER TABLE since the rule was made. Also, the planner tends - * to store NULL rather than look up a valid name for tlist entries in - * non-toplevel plan nodes.) In resjunk entries, resname should be either - * a specific system-generated name (such as "ctid") or NULL; anything else - * risks confusing ExecGetJunkAttribute! - * - * ressortgroupref is used in the representation of ORDER BY, GROUP BY, and - * DISTINCT items. Targetlist entries with ressortgroupref=0 are not - * sort/group items. If ressortgroupref>0, then this item is an ORDER BY, - * GROUP BY, and/or DISTINCT target value. No two entries in a targetlist - * may have the same nonzero ressortgroupref --- but there is no particular - * meaning to the nonzero values, except as tags. (For example, one must - * not assume that lower ressortgroupref means a more significant sort key.) - * The order of the associated SortGroupClause lists determine the semantics. - * - * resorigtbl/resorigcol identify the source of the column, if it is a - * simple reference to a column of a base table (or view). If it is not - * a simple reference, these fields are zeroes. - * - * If resjunk is true then the column is a working column (such as a sort key) - * that should be removed from the final output of the query. Resjunk columns - * must have resnos that cannot duplicate any regular column's resno. Also - * note that there are places that assume resjunk columns come after non-junk - * columns. - *-------------------- - */ -typedef struct TargetEntry -{ - Expr xpr; - Expr *expr; /* expression to evaluate */ - AttrNumber resno; /* attribute number (see notes above) */ - char *resname; /* name of the column (could be NULL) */ - Index ressortgroupref; /* nonzero if referenced by a sort/group - * clause */ - Oid resorigtbl; /* OID of column's source table */ - AttrNumber resorigcol; /* column's number in source table */ - bool resjunk; /* set to true to eliminate the attribute from - * final target list */ -} TargetEntry; - - -/* ---------------------------------------------------------------- - * node types for join trees - * - * The leaves of a join tree structure are RangeTblRef nodes. Above - * these, JoinExpr nodes can appear to denote a specific kind of join - * or qualified join. Also, FromExpr nodes can appear to denote an - * ordinary cross-product join ("FROM foo, bar, baz WHERE ..."). - * FromExpr is like a JoinExpr of jointype JOIN_INNER, except that it - * may have any number of child nodes, not just two. - * - * NOTE: the top level of a Query's jointree is always a FromExpr. - * Even if the jointree contains no rels, there will be a FromExpr. - * - * NOTE: the qualification expressions present in JoinExpr nodes are - * *in addition to* the query's main WHERE clause, which appears as the - * qual of the top-level FromExpr. The reason for associating quals with - * specific nodes in the jointree is that the position of a qual is critical - * when outer joins are present. (If we enforce a qual too soon or too late, - * that may cause the outer join to produce the wrong set of NULL-extended - * rows.) If all joins are inner joins then all the qual positions are - * semantically interchangeable. - * - * NOTE: in the raw output of gram.y, a join tree contains RangeVar, - * RangeSubselect, and RangeFunction nodes, which are all replaced by - * RangeTblRef nodes during the parse analysis phase. Also, the top-level - * FromExpr is added during parse analysis; the grammar regards FROM and - * WHERE as separate. - * ---------------------------------------------------------------- - */ - -/* - * RangeTblRef - reference to an entry in the query's rangetable - * - * We could use direct pointers to the RT entries and skip having these - * nodes, but multiple pointers to the same node in a querytree cause - * lots of headaches, so it seems better to store an index into the RT. - */ -typedef struct RangeTblRef -{ - NodeTag type; - int rtindex; -} RangeTblRef; - -/*---------- - * JoinExpr - for SQL JOIN expressions - * - * isNatural, usingClause, and quals are interdependent. The user can write - * only one of NATURAL, USING(), or ON() (this is enforced by the grammar). - * If he writes NATURAL then parse analysis generates the equivalent USING() - * list, and from that fills in "quals" with the right equality comparisons. - * If he writes USING() then "quals" is filled with equality comparisons. - * If he writes ON() then only "quals" is set. Note that NATURAL/USING - * are not equivalent to ON() since they also affect the output column list. - * - * alias is an Alias node representing the AS alias-clause attached to the - * join expression, or NULL if no clause. NB: presence or absence of the - * alias has a critical impact on semantics, because a join with an alias - * restricts visibility of the tables/columns inside it. - * - * join_using_alias is an Alias node representing the join correlation - * name that SQL:2016 and later allow to be attached to JOIN/USING. - * Its column alias list includes only the common column names from USING, - * and it does not restrict visibility of the join's input tables. - * - * During parse analysis, an RTE is created for the Join, and its index - * is filled into rtindex. This RTE is present mainly so that Vars can - * be created that refer to the outputs of the join. The planner sometimes - * generates JoinExprs internally; these can have rtindex = 0 if there are - * no join alias variables referencing such joins. - *---------- - */ -typedef struct JoinExpr -{ - NodeTag type; - JoinType jointype; /* type of join */ - bool isNatural; /* Natural join? Will need to shape table */ - Node *larg; /* left subtree */ - Node *rarg; /* right subtree */ - List *usingClause; /* USING clause, if any (list of String) */ - Alias *join_using_alias; /* alias attached to USING clause, if any */ - Node *quals; /* qualifiers on join, if any */ - Alias *alias; /* user-written alias clause, if any */ - int rtindex; /* RT index assigned for join, or 0 */ -} JoinExpr; - -/*---------- - * FromExpr - represents a FROM ... WHERE ... construct - * - * This is both more flexible than a JoinExpr (it can have any number of - * children, including zero) and less so --- we don't need to deal with - * aliases and so on. The output column set is implicitly just the union - * of the outputs of the children. - *---------- - */ -typedef struct FromExpr -{ - NodeTag type; - List *fromlist; /* List of join subtrees */ - Node *quals; /* qualifiers on join, if any */ -} FromExpr; - -/*---------- - * OnConflictExpr - represents an ON CONFLICT DO ... expression - * - * The optimizer requires a list of inference elements, and optionally a WHERE - * clause to infer a unique index. The unique index (or, occasionally, - * indexes) inferred are used to arbitrate whether or not the alternative ON - * CONFLICT path is taken. - *---------- - */ -typedef struct OnConflictExpr -{ - NodeTag type; - OnConflictAction action; /* DO NOTHING or UPDATE? */ - - /* Arbiter */ - List *arbiterElems; /* unique index arbiter list (of - * InferenceElem's) */ - Node *arbiterWhere; /* unique index arbiter WHERE clause */ - Oid constraint; /* pg_constraint OID for arbiter */ - - /* ON CONFLICT UPDATE */ - List *onConflictSet; /* List of ON CONFLICT SET TargetEntrys */ - Node *onConflictWhere; /* qualifiers to restrict UPDATE to */ - int exclRelIndex; /* RT index of 'excluded' relation */ - List *exclRelTlist; /* tlist of the EXCLUDED pseudo relation */ -} OnConflictExpr; - -#endif /* PRIMNODES_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/print.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/print.h deleted file mode 100644 index be5e2287f..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/print.h +++ /dev/null @@ -1,34 +0,0 @@ -/*------------------------------------------------------------------------- - * - * print.h - * definitions for nodes/print.c - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/nodes/print.h - * - *------------------------------------------------------------------------- - */ -#ifndef PRINT_H -#define PRINT_H - -#include "executor/tuptable.h" - - -#define nodeDisplay(x) pprint(x) - -extern void print(const void *obj); -extern void pprint(const void *obj); -extern void elog_node_display(int lev, const char *title, - const void *obj, bool pretty); -extern char *format_node_dump(const char *dump); -extern char *pretty_format_node_dump(const char *dump); -extern void print_rt(const List *rtable); -extern void print_expr(const Node *expr, const List *rtable); -extern void print_pathkeys(const List *pathkeys, const List *rtable); -extern void print_tl(const List *tlist, const List *rtable); -extern void print_slot(TupleTableSlot *slot); - -#endif /* PRINT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/tidbitmap.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/tidbitmap.h deleted file mode 100644 index 64ed8d160..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/tidbitmap.h +++ /dev/null @@ -1,75 +0,0 @@ -/*------------------------------------------------------------------------- - * - * tidbitmap.h - * PostgreSQL tuple-id (TID) bitmap package - * - * This module provides bitmap data structures that are spiritually - * similar to Bitmapsets, but are specially adapted to store sets of - * tuple identifiers (TIDs), or ItemPointers. In particular, the division - * of an ItemPointer into BlockNumber and OffsetNumber is catered for. - * Also, since we wish to be able to store very large tuple sets in - * memory with this data structure, we support "lossy" storage, in which - * we no longer remember individual tuple offsets on a page but only the - * fact that a particular page needs to be visited. - * - * - * Copyright (c) 2003-2022, PostgreSQL Global Development Group - * - * src/include/nodes/tidbitmap.h - * - *------------------------------------------------------------------------- - */ -#ifndef TIDBITMAP_H -#define TIDBITMAP_H - -#include "storage/itemptr.h" -#include "utils/dsa.h" - - -/* - * Actual bitmap representation is private to tidbitmap.c. Callers can - * do IsA(x, TIDBitmap) on it, but nothing else. - */ -typedef struct TIDBitmap TIDBitmap; - -/* Likewise, TBMIterator is private */ -typedef struct TBMIterator TBMIterator; -typedef struct TBMSharedIterator TBMSharedIterator; - -/* Result structure for tbm_iterate */ -typedef struct TBMIterateResult -{ - BlockNumber blockno; /* page number containing tuples */ - int ntuples; /* -1 indicates lossy result */ - bool recheck; /* should the tuples be rechecked? */ - /* Note: recheck is always true if ntuples < 0 */ - OffsetNumber offsets[FLEXIBLE_ARRAY_MEMBER]; -} TBMIterateResult; - -/* function prototypes in nodes/tidbitmap.c */ - -extern TIDBitmap *tbm_create(long maxbytes, dsa_area *dsa); -extern void tbm_free(TIDBitmap *tbm); -extern void tbm_free_shared_area(dsa_area *dsa, dsa_pointer dp); - -extern void tbm_add_tuples(TIDBitmap *tbm, - const ItemPointer tids, int ntids, - bool recheck); -extern void tbm_add_page(TIDBitmap *tbm, BlockNumber pageno); - -extern void tbm_union(TIDBitmap *a, const TIDBitmap *b); -extern void tbm_intersect(TIDBitmap *a, const TIDBitmap *b); - -extern bool tbm_is_empty(const TIDBitmap *tbm); - -extern TBMIterator *tbm_begin_iterate(TIDBitmap *tbm); -extern dsa_pointer tbm_prepare_shared_iterate(TIDBitmap *tbm); -extern TBMIterateResult *tbm_iterate(TBMIterator *iterator); -extern TBMIterateResult *tbm_shared_iterate(TBMSharedIterator *iterator); -extern void tbm_end_iterate(TBMIterator *iterator); -extern void tbm_end_shared_iterate(TBMSharedIterator *iterator); -extern TBMSharedIterator *tbm_attach_shared_iterate(dsa_area *dsa, - dsa_pointer dp); -extern long tbm_calculate_entries(double maxbytes); - -#endif /* TIDBITMAP_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/value.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/value.h deleted file mode 100644 index eaf937051..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/nodes/value.h +++ /dev/null @@ -1,80 +0,0 @@ -/*------------------------------------------------------------------------- - * - * value.h - * interface for value nodes - * - * - * Copyright (c) 2003-2022, PostgreSQL Global Development Group - * - * src/include/nodes/value.h - * - *------------------------------------------------------------------------- - */ - -#ifndef VALUE_H -#define VALUE_H - -#include "nodes/nodes.h" - -/* - * The node types Integer, Float, String, and BitString are used to represent - * literals in the lexer and are also used to pass constants around in the - * parser. One difference between these node types and, say, a plain int or - * char * is that the nodes can be put into a List. - * - * (There used to be a Value node, which encompassed all these different node types. Hence the name of this file.) - */ - -typedef struct Integer -{ - NodeTag type; - int ival; -} Integer; - -/* - * Float is internally represented as string. Using T_Float as the node type - * simply indicates that the contents of the string look like a valid numeric - * literal. The value might end up being converted to NUMERIC, so we can't - * store it internally as a C double, since that could lose precision. Since - * these nodes are generally only used in the parsing process, not for runtime - * data, it's better to use the more general representation. - * - * Note that an integer-looking string will get lexed as T_Float if the value - * is too large to fit in an 'int'. - */ -typedef struct Float -{ - NodeTag type; - char *fval; -} Float; - -typedef struct Boolean -{ - NodeTag type; - bool boolval; -} Boolean; - -typedef struct String -{ - NodeTag type; - char *sval; -} String; - -typedef struct BitString -{ - NodeTag type; - char *bsval; -} BitString; - -#define intVal(v) (castNode(Integer, v)->ival) -#define floatVal(v) atof(castNode(Float, v)->fval) -#define boolVal(v) (castNode(Boolean, v)->boolval) -#define strVal(v) (castNode(String, v)->sval) - -extern Integer *makeInteger(int i); -extern Float *makeFloat(char *numericStr); -extern Boolean *makeBoolean(bool var); -extern String *makeString(char *str); -extern BitString *makeBitString(char *str); - -#endif /* VALUE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/cost.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/cost.h deleted file mode 100644 index bc12071af..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/cost.h +++ /dev/null @@ -1,213 +0,0 @@ -/*------------------------------------------------------------------------- - * - * cost.h - * prototypes for costsize.c and clausesel.c. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/optimizer/cost.h - * - *------------------------------------------------------------------------- - */ -#ifndef COST_H -#define COST_H - -#include "nodes/pathnodes.h" -#include "nodes/plannodes.h" - - -/* defaults for costsize.c's Cost parameters */ -/* NB: cost-estimation code should use the variables, not these constants! */ -/* If you change these, update backend/utils/misc/postgresql.conf.sample */ -#define DEFAULT_SEQ_PAGE_COST 1.0 -#define DEFAULT_RANDOM_PAGE_COST 4.0 -#define DEFAULT_CPU_TUPLE_COST 0.01 -#define DEFAULT_CPU_INDEX_TUPLE_COST 0.005 -#define DEFAULT_CPU_OPERATOR_COST 0.0025 -#define DEFAULT_PARALLEL_TUPLE_COST 0.1 -#define DEFAULT_PARALLEL_SETUP_COST 1000.0 - -/* defaults for non-Cost parameters */ -#define DEFAULT_RECURSIVE_WORKTABLE_FACTOR 10.0 -#define DEFAULT_EFFECTIVE_CACHE_SIZE 524288 /* measured in pages */ - -typedef enum -{ - CONSTRAINT_EXCLUSION_OFF, /* do not use c_e */ - CONSTRAINT_EXCLUSION_ON, /* apply c_e to all rels */ - CONSTRAINT_EXCLUSION_PARTITION /* apply c_e to otherrels only */ -} ConstraintExclusionType; - - -/* - * prototypes for costsize.c - * routines to compute costs and sizes - */ - -/* parameter variables and flags (see also optimizer.h) */ -extern PGDLLIMPORT Cost disable_cost; -extern PGDLLIMPORT int max_parallel_workers_per_gather; -extern PGDLLIMPORT bool enable_seqscan; -extern PGDLLIMPORT bool enable_indexscan; -extern PGDLLIMPORT bool enable_indexonlyscan; -extern PGDLLIMPORT bool enable_bitmapscan; -extern PGDLLIMPORT bool enable_tidscan; -extern PGDLLIMPORT bool enable_sort; -extern PGDLLIMPORT bool enable_incremental_sort; -extern PGDLLIMPORT bool enable_hashagg; -extern PGDLLIMPORT bool enable_nestloop; -extern PGDLLIMPORT bool enable_material; -extern PGDLLIMPORT bool enable_memoize; -extern PGDLLIMPORT bool enable_mergejoin; -extern PGDLLIMPORT bool enable_hashjoin; -extern PGDLLIMPORT bool enable_gathermerge; -extern PGDLLIMPORT bool enable_partitionwise_join; -extern PGDLLIMPORT bool enable_partitionwise_aggregate; -extern PGDLLIMPORT bool enable_parallel_append; -extern PGDLLIMPORT bool enable_parallel_hash; -extern PGDLLIMPORT bool enable_partition_pruning; -extern PGDLLIMPORT bool enable_async_append; -extern PGDLLIMPORT int constraint_exclusion; - -extern double index_pages_fetched(double tuples_fetched, BlockNumber pages, - double index_pages, PlannerInfo *root); -extern void cost_seqscan(Path *path, PlannerInfo *root, RelOptInfo *baserel, - ParamPathInfo *param_info); -extern void cost_samplescan(Path *path, PlannerInfo *root, RelOptInfo *baserel, - ParamPathInfo *param_info); -extern void cost_index(IndexPath *path, PlannerInfo *root, - double loop_count, bool partial_path); -extern void cost_bitmap_heap_scan(Path *path, PlannerInfo *root, RelOptInfo *baserel, - ParamPathInfo *param_info, - Path *bitmapqual, double loop_count); -extern void cost_bitmap_and_node(BitmapAndPath *path, PlannerInfo *root); -extern void cost_bitmap_or_node(BitmapOrPath *path, PlannerInfo *root); -extern void cost_bitmap_tree_node(Path *path, Cost *cost, Selectivity *selec); -extern void cost_tidscan(Path *path, PlannerInfo *root, - RelOptInfo *baserel, List *tidquals, ParamPathInfo *param_info); -extern void cost_tidrangescan(Path *path, PlannerInfo *root, - RelOptInfo *baserel, List *tidrangequals, - ParamPathInfo *param_info); -extern void cost_subqueryscan(SubqueryScanPath *path, PlannerInfo *root, - RelOptInfo *baserel, ParamPathInfo *param_info); -extern void cost_functionscan(Path *path, PlannerInfo *root, - RelOptInfo *baserel, ParamPathInfo *param_info); -extern void cost_valuesscan(Path *path, PlannerInfo *root, - RelOptInfo *baserel, ParamPathInfo *param_info); -extern void cost_tablefuncscan(Path *path, PlannerInfo *root, - RelOptInfo *baserel, ParamPathInfo *param_info); -extern void cost_ctescan(Path *path, PlannerInfo *root, - RelOptInfo *baserel, ParamPathInfo *param_info); -extern void cost_namedtuplestorescan(Path *path, PlannerInfo *root, - RelOptInfo *baserel, ParamPathInfo *param_info); -extern void cost_resultscan(Path *path, PlannerInfo *root, - RelOptInfo *baserel, ParamPathInfo *param_info); -extern void cost_recursive_union(Path *runion, Path *nrterm, Path *rterm); -extern void cost_sort(Path *path, PlannerInfo *root, - List *pathkeys, Cost input_cost, double tuples, int width, - Cost comparison_cost, int sort_mem, - double limit_tuples); -extern void cost_incremental_sort(Path *path, - PlannerInfo *root, List *pathkeys, int presorted_keys, - Cost input_startup_cost, Cost input_total_cost, - double input_tuples, int width, Cost comparison_cost, int sort_mem, - double limit_tuples); -extern void cost_append(AppendPath *path); -extern void cost_merge_append(Path *path, PlannerInfo *root, - List *pathkeys, int n_streams, - Cost input_startup_cost, Cost input_total_cost, - double tuples); -extern void cost_material(Path *path, - Cost input_startup_cost, Cost input_total_cost, - double tuples, int width); -extern void cost_agg(Path *path, PlannerInfo *root, - AggStrategy aggstrategy, const AggClauseCosts *aggcosts, - int numGroupCols, double numGroups, - List *quals, - Cost input_startup_cost, Cost input_total_cost, - double input_tuples, double input_width); -extern void cost_windowagg(Path *path, PlannerInfo *root, - List *windowFuncs, int numPartCols, int numOrderCols, - Cost input_startup_cost, Cost input_total_cost, - double input_tuples); -extern void cost_group(Path *path, PlannerInfo *root, - int numGroupCols, double numGroups, - List *quals, - Cost input_startup_cost, Cost input_total_cost, - double input_tuples); -extern void initial_cost_nestloop(PlannerInfo *root, - JoinCostWorkspace *workspace, - JoinType jointype, - Path *outer_path, Path *inner_path, - JoinPathExtraData *extra); -extern void final_cost_nestloop(PlannerInfo *root, NestPath *path, - JoinCostWorkspace *workspace, - JoinPathExtraData *extra); -extern void initial_cost_mergejoin(PlannerInfo *root, - JoinCostWorkspace *workspace, - JoinType jointype, - List *mergeclauses, - Path *outer_path, Path *inner_path, - List *outersortkeys, List *innersortkeys, - JoinPathExtraData *extra); -extern void final_cost_mergejoin(PlannerInfo *root, MergePath *path, - JoinCostWorkspace *workspace, - JoinPathExtraData *extra); -extern void initial_cost_hashjoin(PlannerInfo *root, - JoinCostWorkspace *workspace, - JoinType jointype, - List *hashclauses, - Path *outer_path, Path *inner_path, - JoinPathExtraData *extra, - bool parallel_hash); -extern void final_cost_hashjoin(PlannerInfo *root, HashPath *path, - JoinCostWorkspace *workspace, - JoinPathExtraData *extra); -extern void cost_gather(GatherPath *path, PlannerInfo *root, - RelOptInfo *baserel, ParamPathInfo *param_info, double *rows); -extern void cost_gather_merge(GatherMergePath *path, PlannerInfo *root, - RelOptInfo *rel, ParamPathInfo *param_info, - Cost input_startup_cost, Cost input_total_cost, - double *rows); -extern void cost_subplan(PlannerInfo *root, SubPlan *subplan, Plan *plan); -extern void cost_qual_eval(QualCost *cost, List *quals, PlannerInfo *root); -extern void cost_qual_eval_node(QualCost *cost, Node *qual, PlannerInfo *root); -extern void compute_semi_anti_join_factors(PlannerInfo *root, - RelOptInfo *joinrel, - RelOptInfo *outerrel, - RelOptInfo *innerrel, - JoinType jointype, - SpecialJoinInfo *sjinfo, - List *restrictlist, - SemiAntiJoinFactors *semifactors); -extern void set_baserel_size_estimates(PlannerInfo *root, RelOptInfo *rel); -extern double get_parameterized_baserel_size(PlannerInfo *root, - RelOptInfo *rel, - List *param_clauses); -extern double get_parameterized_joinrel_size(PlannerInfo *root, - RelOptInfo *rel, - Path *outer_path, - Path *inner_path, - SpecialJoinInfo *sjinfo, - List *restrict_clauses); -extern void set_joinrel_size_estimates(PlannerInfo *root, RelOptInfo *rel, - RelOptInfo *outer_rel, - RelOptInfo *inner_rel, - SpecialJoinInfo *sjinfo, - List *restrictlist); -extern void set_subquery_size_estimates(PlannerInfo *root, RelOptInfo *rel); -extern void set_function_size_estimates(PlannerInfo *root, RelOptInfo *rel); -extern void set_values_size_estimates(PlannerInfo *root, RelOptInfo *rel); -extern void set_cte_size_estimates(PlannerInfo *root, RelOptInfo *rel, - double cte_rows); -extern void set_tablefunc_size_estimates(PlannerInfo *root, RelOptInfo *rel); -extern void set_namedtuplestore_size_estimates(PlannerInfo *root, RelOptInfo *rel); -extern void set_result_size_estimates(PlannerInfo *root, RelOptInfo *rel); -extern void set_foreign_size_estimates(PlannerInfo *root, RelOptInfo *rel); -extern PathTarget *set_pathtarget_cost_width(PlannerInfo *root, PathTarget *target); -extern double compute_bitmap_pages(PlannerInfo *root, RelOptInfo *baserel, - Path *bitmapqual, int loop_count, Cost *cost, double *tuple); - -#endif /* COST_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/geqo.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/geqo.h deleted file mode 100644 index d39932333..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/geqo.h +++ /dev/null @@ -1,90 +0,0 @@ -/*------------------------------------------------------------------------- - * - * geqo.h - * prototypes for various files in optimizer/geqo - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/optimizer/geqo.h - * - *------------------------------------------------------------------------- - */ - -/* contributed by: - =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= - * Martin Utesch * Institute of Automatic Control * - = = University of Mining and Technology = - * utesch@aut.tu-freiberg.de * Freiberg, Germany * - =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= - */ - -#ifndef GEQO_H -#define GEQO_H - -#include "common/pg_prng.h" -#include "nodes/pathnodes.h" -#include "optimizer/geqo_gene.h" - - -/* GEQO debug flag */ -/* - #define GEQO_DEBUG - */ - -/* choose one recombination mechanism here */ -/* - #define ERX - #define PMX - #define CX - #define PX - #define OX1 - #define OX2 - */ -#define ERX - - -/* - * Configuration options - * - * If you change these, update backend/utils/misc/postgresql.conf.sample - */ -extern PGDLLIMPORT int Geqo_effort; /* 1 .. 10, knob for adjustment of - * defaults */ - -#define DEFAULT_GEQO_EFFORT 5 -#define MIN_GEQO_EFFORT 1 -#define MAX_GEQO_EFFORT 10 - -extern PGDLLIMPORT int Geqo_pool_size; /* 2 .. inf, or 0 to use default */ - -extern PGDLLIMPORT int Geqo_generations; /* 1 .. inf, or 0 to use default */ - -extern PGDLLIMPORT double Geqo_selection_bias; - -#define DEFAULT_GEQO_SELECTION_BIAS 2.0 -#define MIN_GEQO_SELECTION_BIAS 1.5 -#define MAX_GEQO_SELECTION_BIAS 2.0 - -extern PGDLLIMPORT double Geqo_seed; /* 0 .. 1 */ - - -/* - * Private state for a GEQO run --- accessible via root->join_search_private - */ -typedef struct -{ - List *initial_rels; /* the base relations we are joining */ - pg_prng_state random_state; /* PRNG state */ -} GeqoPrivateData; - - -/* routines in geqo_main.c */ -extern RelOptInfo *geqo(PlannerInfo *root, - int number_of_rels, List *initial_rels); - -/* routines in geqo_eval.c */ -extern Cost geqo_eval(PlannerInfo *root, Gene *tour, int num_gene); -extern RelOptInfo *gimme_tree(PlannerInfo *root, Gene *tour, int num_gene); - -#endif /* GEQO_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/geqo_gene.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/geqo_gene.h deleted file mode 100644 index 414f54d1c..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/geqo_gene.h +++ /dev/null @@ -1,45 +0,0 @@ -/*------------------------------------------------------------------------- - * - * geqo_gene.h - * genome representation in optimizer/geqo - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/optimizer/geqo_gene.h - * - *------------------------------------------------------------------------- - */ - -/* contributed by: - =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= - * Martin Utesch * Institute of Automatic Control * - = = University of Mining and Technology = - * utesch@aut.tu-freiberg.de * Freiberg, Germany * - =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= - */ - - -#ifndef GEQO_GENE_H -#define GEQO_GENE_H - -#include "nodes/nodes.h" - -/* we presume that int instead of Relid - is o.k. for Gene; so don't change it! */ -typedef int Gene; - -typedef struct Chromosome -{ - Gene *string; - Cost worth; -} Chromosome; - -typedef struct Pool -{ - Chromosome *data; - int size; - int string_length; -} Pool; - -#endif /* GEQO_GENE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/optimizer.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/optimizer.h deleted file mode 100644 index 409005bae..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/optimizer.h +++ /dev/null @@ -1,202 +0,0 @@ -/*------------------------------------------------------------------------- - * - * optimizer.h - * External API for the Postgres planner. - * - * This header is meant to define everything that the core planner - * exposes for use by non-planner modules. - * - * Note that there are files outside src/backend/optimizer/ that are - * considered planner modules, because they're too much in bed with - * planner operations to be treated otherwise. FDW planning code is an - * example. For the most part, however, code outside the core planner - * should not need to include any optimizer/ header except this one. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/optimizer/optimizer.h - * - *------------------------------------------------------------------------- - */ -#ifndef OPTIMIZER_H -#define OPTIMIZER_H - -#include "nodes/parsenodes.h" - -/* - * We don't want to include nodes/pathnodes.h here, because non-planner - * code should generally treat PlannerInfo as an opaque typedef. - * But we'd like such code to use that typedef name, so define the - * typedef either here or in pathnodes.h, whichever is read first. - */ -#ifndef HAVE_PLANNERINFO_TYPEDEF -typedef struct PlannerInfo PlannerInfo; -#define HAVE_PLANNERINFO_TYPEDEF 1 -#endif - -/* Likewise for IndexOptInfo and SpecialJoinInfo. */ -#ifndef HAVE_INDEXOPTINFO_TYPEDEF -typedef struct IndexOptInfo IndexOptInfo; -#define HAVE_INDEXOPTINFO_TYPEDEF 1 -#endif -#ifndef HAVE_SPECIALJOININFO_TYPEDEF -typedef struct SpecialJoinInfo SpecialJoinInfo; -#define HAVE_SPECIALJOININFO_TYPEDEF 1 -#endif - -/* It also seems best not to include plannodes.h, params.h, or htup.h here */ -struct PlannedStmt; -struct ParamListInfoData; -struct HeapTupleData; - - -/* in path/clausesel.c: */ - -extern Selectivity clause_selectivity(PlannerInfo *root, - Node *clause, - int varRelid, - JoinType jointype, - SpecialJoinInfo *sjinfo); -extern Selectivity clause_selectivity_ext(PlannerInfo *root, - Node *clause, - int varRelid, - JoinType jointype, - SpecialJoinInfo *sjinfo, - bool use_extended_stats); -extern Selectivity clauselist_selectivity(PlannerInfo *root, - List *clauses, - int varRelid, - JoinType jointype, - SpecialJoinInfo *sjinfo); -extern Selectivity clauselist_selectivity_ext(PlannerInfo *root, - List *clauses, - int varRelid, - JoinType jointype, - SpecialJoinInfo *sjinfo, - bool use_extended_stats); - -/* in path/costsize.c: */ - -/* widely used cost parameters */ -extern PGDLLIMPORT double seq_page_cost; -extern PGDLLIMPORT double random_page_cost; -extern PGDLLIMPORT double cpu_tuple_cost; -extern PGDLLIMPORT double cpu_index_tuple_cost; -extern PGDLLIMPORT double cpu_operator_cost; -extern PGDLLIMPORT double parallel_tuple_cost; -extern PGDLLIMPORT double parallel_setup_cost; -extern PGDLLIMPORT double recursive_worktable_factor; -extern PGDLLIMPORT int effective_cache_size; - -extern double clamp_row_est(double nrows); -extern long clamp_cardinality_to_long(Cardinality x); - -/* in path/indxpath.c: */ - -extern bool is_pseudo_constant_for_index(PlannerInfo *root, Node *expr, - IndexOptInfo *index); - -/* in plan/planner.c: */ - -/* possible values for force_parallel_mode */ -typedef enum -{ - FORCE_PARALLEL_OFF, - FORCE_PARALLEL_ON, - FORCE_PARALLEL_REGRESS -} ForceParallelMode; - -/* GUC parameters */ -extern PGDLLIMPORT int force_parallel_mode; -extern PGDLLIMPORT bool parallel_leader_participation; - -extern struct PlannedStmt *planner(Query *parse, const char *query_string, - int cursorOptions, - struct ParamListInfoData *boundParams); - -extern Expr *expression_planner(Expr *expr); -extern Expr *expression_planner_with_deps(Expr *expr, - List **relationOids, - List **invalItems); - -extern bool plan_cluster_use_sort(Oid tableOid, Oid indexOid); -extern int plan_create_index_workers(Oid tableOid, Oid indexOid); - -/* in plan/setrefs.c: */ - -extern void extract_query_dependencies(Node *query, - List **relationOids, - List **invalItems, - bool *hasRowSecurity); - -/* in prep/prepqual.c: */ - -extern Node *negate_clause(Node *node); -extern Expr *canonicalize_qual(Expr *qual, bool is_check); - -/* in util/clauses.c: */ - -extern bool contain_mutable_functions(Node *clause); -extern bool contain_volatile_functions(Node *clause); -extern bool contain_volatile_functions_not_nextval(Node *clause); - -extern Node *eval_const_expressions(PlannerInfo *root, Node *node); - -extern void convert_saop_to_hashed_saop(Node *node); - -extern Node *estimate_expression_value(PlannerInfo *root, Node *node); - -extern Expr *evaluate_expr(Expr *expr, Oid result_type, int32 result_typmod, - Oid result_collation); - -extern List *expand_function_arguments(List *args, bool include_out_arguments, - Oid result_type, - struct HeapTupleData *func_tuple); - -/* in util/predtest.c: */ - -extern bool predicate_implied_by(List *predicate_list, List *clause_list, - bool weak); -extern bool predicate_refuted_by(List *predicate_list, List *clause_list, - bool weak); - -/* in util/tlist.c: */ - -extern int count_nonjunk_tlist_entries(List *tlist); -extern TargetEntry *get_sortgroupref_tle(Index sortref, - List *targetList); -extern TargetEntry *get_sortgroupclause_tle(SortGroupClause *sgClause, - List *targetList); -extern Node *get_sortgroupclause_expr(SortGroupClause *sgClause, - List *targetList); -extern List *get_sortgrouplist_exprs(List *sgClauses, - List *targetList); -extern SortGroupClause *get_sortgroupref_clause(Index sortref, - List *clauses); -extern SortGroupClause *get_sortgroupref_clause_noerr(Index sortref, - List *clauses); - -/* in util/var.c: */ - -/* Bits that can be OR'd into the flags argument of pull_var_clause() */ -#define PVC_INCLUDE_AGGREGATES 0x0001 /* include Aggrefs in output list */ -#define PVC_RECURSE_AGGREGATES 0x0002 /* recurse into Aggref arguments */ -#define PVC_INCLUDE_WINDOWFUNCS 0x0004 /* include WindowFuncs in output list */ -#define PVC_RECURSE_WINDOWFUNCS 0x0008 /* recurse into WindowFunc arguments */ -#define PVC_INCLUDE_PLACEHOLDERS 0x0010 /* include PlaceHolderVars in - * output list */ -#define PVC_RECURSE_PLACEHOLDERS 0x0020 /* recurse into PlaceHolderVar - * arguments */ - -extern Bitmapset *pull_varnos(PlannerInfo *root, Node *node); -extern Bitmapset *pull_varnos_of_level(PlannerInfo *root, Node *node, int levelsup); -extern void pull_varattnos(Node *node, Index varno, Bitmapset **varattnos); -extern List *pull_vars_of_level(Node *node, int levelsup); -extern bool contain_var_clause(Node *node); -extern bool contain_vars_of_level(Node *node, int levelsup); -extern int locate_var_of_level(Node *node, int levelsup); -extern List *pull_var_clause(Node *node, int flags); -extern Node *flatten_join_alias_vars(Query *query, Node *node); - -#endif /* OPTIMIZER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/paths.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/paths.h deleted file mode 100644 index e313eb213..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/paths.h +++ /dev/null @@ -1,257 +0,0 @@ -/*------------------------------------------------------------------------- - * - * paths.h - * prototypes for various files in optimizer/path - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/optimizer/paths.h - * - *------------------------------------------------------------------------- - */ -#ifndef PATHS_H -#define PATHS_H - -#include "nodes/pathnodes.h" - - -/* - * allpaths.c - */ -extern PGDLLIMPORT bool enable_geqo; -extern PGDLLIMPORT int geqo_threshold; -extern PGDLLIMPORT int min_parallel_table_scan_size; -extern PGDLLIMPORT int min_parallel_index_scan_size; - -/* Hook for plugins to get control in set_rel_pathlist() */ -typedef void (*set_rel_pathlist_hook_type) (PlannerInfo *root, - RelOptInfo *rel, - Index rti, - RangeTblEntry *rte); -extern PGDLLIMPORT set_rel_pathlist_hook_type set_rel_pathlist_hook; - -/* Hook for plugins to get control in add_paths_to_joinrel() */ -typedef void (*set_join_pathlist_hook_type) (PlannerInfo *root, - RelOptInfo *joinrel, - RelOptInfo *outerrel, - RelOptInfo *innerrel, - JoinType jointype, - JoinPathExtraData *extra); -extern PGDLLIMPORT set_join_pathlist_hook_type set_join_pathlist_hook; - -/* Hook for plugins to replace standard_join_search() */ -typedef RelOptInfo *(*join_search_hook_type) (PlannerInfo *root, - int levels_needed, - List *initial_rels); -extern PGDLLIMPORT join_search_hook_type join_search_hook; - - -extern RelOptInfo *make_one_rel(PlannerInfo *root, List *joinlist); -extern RelOptInfo *standard_join_search(PlannerInfo *root, int levels_needed, - List *initial_rels); - -extern void generate_gather_paths(PlannerInfo *root, RelOptInfo *rel, - bool override_rows); -extern void generate_useful_gather_paths(PlannerInfo *root, RelOptInfo *rel, - bool override_rows); -extern int compute_parallel_worker(RelOptInfo *rel, double heap_pages, - double index_pages, int max_workers); -extern void create_partial_bitmap_paths(PlannerInfo *root, RelOptInfo *rel, - Path *bitmapqual); -extern void generate_partitionwise_join_paths(PlannerInfo *root, - RelOptInfo *rel); - -#ifdef OPTIMIZER_DEBUG -extern void debug_print_rel(PlannerInfo *root, RelOptInfo *rel); -#endif - -/* - * indxpath.c - * routines to generate index paths - */ -extern void create_index_paths(PlannerInfo *root, RelOptInfo *rel); -extern bool relation_has_unique_index_for(PlannerInfo *root, RelOptInfo *rel, - List *restrictlist, - List *exprlist, List *oprlist); -extern bool indexcol_is_bool_constant_for_query(PlannerInfo *root, - IndexOptInfo *index, - int indexcol); -extern bool match_index_to_operand(Node *operand, int indexcol, - IndexOptInfo *index); -extern void check_index_predicates(PlannerInfo *root, RelOptInfo *rel); - -/* - * tidpath.h - * routines to generate tid paths - */ -extern void create_tidscan_paths(PlannerInfo *root, RelOptInfo *rel); - -/* - * joinpath.c - * routines to create join paths - */ -extern void add_paths_to_joinrel(PlannerInfo *root, RelOptInfo *joinrel, - RelOptInfo *outerrel, RelOptInfo *innerrel, - JoinType jointype, SpecialJoinInfo *sjinfo, - List *restrictlist); - -/* - * joinrels.c - * routines to determine which relations to join - */ -extern void join_search_one_level(PlannerInfo *root, int level); -extern RelOptInfo *make_join_rel(PlannerInfo *root, - RelOptInfo *rel1, RelOptInfo *rel2); -extern bool have_join_order_restriction(PlannerInfo *root, - RelOptInfo *rel1, RelOptInfo *rel2); -extern bool have_dangerous_phv(PlannerInfo *root, - Relids outer_relids, Relids inner_params); -extern void mark_dummy_rel(RelOptInfo *rel); - -/* - * equivclass.c - * routines for managing EquivalenceClasses - */ -typedef bool (*ec_matches_callback_type) (PlannerInfo *root, - RelOptInfo *rel, - EquivalenceClass *ec, - EquivalenceMember *em, - void *arg); - -extern bool process_equivalence(PlannerInfo *root, - RestrictInfo **p_restrictinfo, - bool below_outer_join); -extern Expr *canonicalize_ec_expression(Expr *expr, - Oid req_type, Oid req_collation); -extern void reconsider_outer_join_clauses(PlannerInfo *root); -extern EquivalenceClass *get_eclass_for_sort_expr(PlannerInfo *root, - Expr *expr, - Relids nullable_relids, - List *opfamilies, - Oid opcintype, - Oid collation, - Index sortref, - Relids rel, - bool create_it); -extern EquivalenceMember *find_ec_member_matching_expr(EquivalenceClass *ec, - Expr *expr, - Relids relids); -extern EquivalenceMember *find_computable_ec_member(PlannerInfo *root, - EquivalenceClass *ec, - List *exprs, - Relids relids, - bool require_parallel_safe); -extern bool relation_can_be_sorted_early(PlannerInfo *root, RelOptInfo *rel, - EquivalenceClass *ec, - bool require_parallel_safe); -extern void generate_base_implied_equalities(PlannerInfo *root); -extern List *generate_join_implied_equalities(PlannerInfo *root, - Relids join_relids, - Relids outer_relids, - RelOptInfo *inner_rel); -extern List *generate_join_implied_equalities_for_ecs(PlannerInfo *root, - List *eclasses, - Relids join_relids, - Relids outer_relids, - RelOptInfo *inner_rel); -extern bool exprs_known_equal(PlannerInfo *root, Node *item1, Node *item2); -extern EquivalenceClass *match_eclasses_to_foreign_key_col(PlannerInfo *root, - ForeignKeyOptInfo *fkinfo, - int colno); -extern RestrictInfo *find_derived_clause_for_ec_member(EquivalenceClass *ec, - EquivalenceMember *em); -extern void add_child_rel_equivalences(PlannerInfo *root, - AppendRelInfo *appinfo, - RelOptInfo *parent_rel, - RelOptInfo *child_rel); -extern void add_child_join_rel_equivalences(PlannerInfo *root, - int nappinfos, - AppendRelInfo **appinfos, - RelOptInfo *parent_rel, - RelOptInfo *child_rel); -extern List *generate_implied_equalities_for_column(PlannerInfo *root, - RelOptInfo *rel, - ec_matches_callback_type callback, - void *callback_arg, - Relids prohibited_rels); -extern bool have_relevant_eclass_joinclause(PlannerInfo *root, - RelOptInfo *rel1, RelOptInfo *rel2); -extern bool has_relevant_eclass_joinclause(PlannerInfo *root, - RelOptInfo *rel1); -extern bool eclass_useful_for_merging(PlannerInfo *root, - EquivalenceClass *eclass, - RelOptInfo *rel); -extern bool is_redundant_derived_clause(RestrictInfo *rinfo, List *clauselist); -extern bool is_redundant_with_indexclauses(RestrictInfo *rinfo, - List *indexclauses); - -/* - * pathkeys.c - * utilities for matching and building path keys - */ -typedef enum -{ - PATHKEYS_EQUAL, /* pathkeys are identical */ - PATHKEYS_BETTER1, /* pathkey 1 is a superset of pathkey 2 */ - PATHKEYS_BETTER2, /* vice versa */ - PATHKEYS_DIFFERENT /* neither pathkey includes the other */ -} PathKeysComparison; - -extern PathKeysComparison compare_pathkeys(List *keys1, List *keys2); -extern bool pathkeys_contained_in(List *keys1, List *keys2); -extern bool pathkeys_count_contained_in(List *keys1, List *keys2, int *n_common); -extern Path *get_cheapest_path_for_pathkeys(List *paths, List *pathkeys, - Relids required_outer, - CostSelector cost_criterion, - bool require_parallel_safe); -extern Path *get_cheapest_fractional_path_for_pathkeys(List *paths, - List *pathkeys, - Relids required_outer, - double fraction); -extern Path *get_cheapest_parallel_safe_total_inner(List *paths); -extern List *build_index_pathkeys(PlannerInfo *root, IndexOptInfo *index, - ScanDirection scandir); -extern List *build_partition_pathkeys(PlannerInfo *root, RelOptInfo *partrel, - ScanDirection scandir, bool *partialkeys); -extern List *build_expression_pathkey(PlannerInfo *root, Expr *expr, - Relids nullable_relids, Oid opno, - Relids rel, bool create_it); -extern List *convert_subquery_pathkeys(PlannerInfo *root, RelOptInfo *rel, - List *subquery_pathkeys, - List *subquery_tlist); -extern List *build_join_pathkeys(PlannerInfo *root, - RelOptInfo *joinrel, - JoinType jointype, - List *outer_pathkeys); -extern List *make_pathkeys_for_sortclauses(PlannerInfo *root, - List *sortclauses, - List *tlist); -extern void initialize_mergeclause_eclasses(PlannerInfo *root, - RestrictInfo *restrictinfo); -extern void update_mergeclause_eclasses(PlannerInfo *root, - RestrictInfo *restrictinfo); -extern List *find_mergeclauses_for_outer_pathkeys(PlannerInfo *root, - List *pathkeys, - List *restrictinfos); -extern List *select_outer_pathkeys_for_merge(PlannerInfo *root, - List *mergeclauses, - RelOptInfo *joinrel); -extern List *make_inner_pathkeys_for_merge(PlannerInfo *root, - List *mergeclauses, - List *outer_pathkeys); -extern List *trim_mergeclauses_for_inner_pathkeys(PlannerInfo *root, - List *mergeclauses, - List *pathkeys); -extern List *truncate_useless_pathkeys(PlannerInfo *root, - RelOptInfo *rel, - List *pathkeys); -extern bool has_useful_pathkeys(PlannerInfo *root, RelOptInfo *rel); -extern PathKey *make_canonical_pathkey(PlannerInfo *root, - EquivalenceClass *eclass, Oid opfamily, - int strategy, bool nulls_first); -extern void add_paths_to_append_rel(PlannerInfo *root, RelOptInfo *rel, - List *live_childrels); - -#endif /* PATHS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/planmain.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/planmain.h deleted file mode 100644 index c4f61c1a0..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/optimizer/planmain.h +++ /dev/null @@ -1,120 +0,0 @@ -/*------------------------------------------------------------------------- - * - * planmain.h - * prototypes for various files in optimizer/plan - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/optimizer/planmain.h - * - *------------------------------------------------------------------------- - */ -#ifndef PLANMAIN_H -#define PLANMAIN_H - -#include "nodes/pathnodes.h" -#include "nodes/plannodes.h" - -/* GUC parameters */ -#define DEFAULT_CURSOR_TUPLE_FRACTION 0.1 -extern PGDLLIMPORT double cursor_tuple_fraction; - -/* query_planner callback to compute query_pathkeys */ -typedef void (*query_pathkeys_callback) (PlannerInfo *root, void *extra); - -/* - * prototypes for plan/planmain.c - */ -extern RelOptInfo *query_planner(PlannerInfo *root, - query_pathkeys_callback qp_callback, void *qp_extra); - -/* - * prototypes for plan/planagg.c - */ -extern void preprocess_minmax_aggregates(PlannerInfo *root); - -/* - * prototypes for plan/createplan.c - */ -extern Plan *create_plan(PlannerInfo *root, Path *best_path); -extern ForeignScan *make_foreignscan(List *qptlist, List *qpqual, - Index scanrelid, List *fdw_exprs, List *fdw_private, - List *fdw_scan_tlist, List *fdw_recheck_quals, - Plan *outer_plan); -extern Plan *change_plan_targetlist(Plan *subplan, List *tlist, - bool tlist_parallel_safe); -extern Plan *materialize_finished_plan(Plan *subplan); -extern bool is_projection_capable_path(Path *path); -extern bool is_projection_capable_plan(Plan *plan); - -/* External use of these functions is deprecated: */ -extern Sort *make_sort_from_sortclauses(List *sortcls, Plan *lefttree); -extern Agg *make_agg(List *tlist, List *qual, - AggStrategy aggstrategy, AggSplit aggsplit, - int numGroupCols, AttrNumber *grpColIdx, Oid *grpOperators, Oid *grpCollations, - List *groupingSets, List *chain, double dNumGroups, - Size transitionSpace, Plan *lefttree); -extern Limit *make_limit(Plan *lefttree, Node *limitOffset, Node *limitCount, - LimitOption limitOption, int uniqNumCols, - AttrNumber *uniqColIdx, Oid *uniqOperators, - Oid *uniqCollations); - -/* - * prototypes for plan/initsplan.c - */ -extern PGDLLIMPORT int from_collapse_limit; -extern PGDLLIMPORT int join_collapse_limit; - -extern void add_base_rels_to_query(PlannerInfo *root, Node *jtnode); -extern void add_other_rels_to_query(PlannerInfo *root); -extern void build_base_rel_tlists(PlannerInfo *root, List *final_tlist); -extern void add_vars_to_targetlist(PlannerInfo *root, List *vars, - Relids where_needed, bool create_new_ph); -extern void find_lateral_references(PlannerInfo *root); -extern void create_lateral_join_info(PlannerInfo *root); -extern List *deconstruct_jointree(PlannerInfo *root); -extern void distribute_restrictinfo_to_rels(PlannerInfo *root, - RestrictInfo *restrictinfo); -extern RestrictInfo *process_implied_equality(PlannerInfo *root, - Oid opno, - Oid collation, - Expr *item1, - Expr *item2, - Relids qualscope, - Relids nullable_relids, - Index security_level, - bool below_outer_join, - bool both_const); -extern RestrictInfo *build_implied_join_equality(PlannerInfo *root, - Oid opno, - Oid collation, - Expr *item1, - Expr *item2, - Relids qualscope, - Relids nullable_relids, - Index security_level); -extern void match_foreign_keys_to_quals(PlannerInfo *root); - -/* - * prototypes for plan/analyzejoins.c - */ -extern List *remove_useless_joins(PlannerInfo *root, List *joinlist); -extern void reduce_unique_semijoins(PlannerInfo *root); -extern bool query_supports_distinctness(Query *query); -extern bool query_is_distinct_for(Query *query, List *colnos, List *opids); -extern bool innerrel_is_unique(PlannerInfo *root, - Relids joinrelids, Relids outerrelids, RelOptInfo *innerrel, - JoinType jointype, List *restrictlist, bool force_cache); - -/* - * prototypes for plan/setrefs.c - */ -extern Plan *set_plan_references(PlannerInfo *root, Plan *plan); -extern bool trivial_subqueryscan(SubqueryScan *plan); -extern void record_plan_function_dependency(PlannerInfo *root, Oid funcid); -extern void record_plan_type_dependency(PlannerInfo *root, Oid typid); -extern bool extract_query_dependencies_walker(Node *node, PlannerInfo *root); - -#endif /* PLANMAIN_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/analyze.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/analyze.h deleted file mode 100644 index dc379547c..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/analyze.h +++ /dev/null @@ -1,63 +0,0 @@ -/*------------------------------------------------------------------------- - * - * analyze.h - * parse analysis for optimizable statements - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/parser/analyze.h - * - *------------------------------------------------------------------------- - */ -#ifndef ANALYZE_H -#define ANALYZE_H - -#include "nodes/params.h" -#include "parser/parse_node.h" -#include "utils/queryjumble.h" - -/* Hook for plugins to get control at end of parse analysis */ -typedef void (*post_parse_analyze_hook_type) (ParseState *pstate, - Query *query, - JumbleState *jstate); -extern PGDLLIMPORT post_parse_analyze_hook_type post_parse_analyze_hook; - - -extern Query *parse_analyze_fixedparams(RawStmt *parseTree, const char *sourceText, - const Oid *paramTypes, int numParams, QueryEnvironment *queryEnv); -extern Query *parse_analyze_varparams(RawStmt *parseTree, const char *sourceText, - Oid **paramTypes, int *numParams, QueryEnvironment *queryEnv); -extern Query *parse_analyze_withcb(RawStmt *parseTree, const char *sourceText, - ParserSetupHook parserSetup, - void *parserSetupArg, - QueryEnvironment *queryEnv); - -extern Query *parse_sub_analyze(Node *parseTree, ParseState *parentParseState, - CommonTableExpr *parentCTE, - bool locked_from_parent, - bool resolve_unknowns); - -extern List *transformInsertRow(ParseState *pstate, List *exprlist, - List *stmtcols, List *icolumns, List *attrnos, - bool strip_indirection); -extern List *transformUpdateTargetList(ParseState *pstate, - List *targetList); -extern Query *transformTopLevelStmt(ParseState *pstate, RawStmt *parseTree); -extern Query *transformStmt(ParseState *pstate, Node *parseTree); - -extern bool analyze_requires_snapshot(RawStmt *parseTree); - -extern const char *LCS_asString(LockClauseStrength strength); -extern void CheckSelectLocking(Query *qry, LockClauseStrength strength); -extern void applyLockingClause(Query *qry, Index rtindex, - LockClauseStrength strength, - LockWaitPolicy waitPolicy, bool pushedDown); - -extern List *BuildOnConflictExcludedTargetlist(Relation targetrel, - Index exclRelIndex); - -extern SortGroupClause *makeSortGroupClauseForSetOp(Oid rescoltype, bool require_hash); - -#endif /* ANALYZE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/gram.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/gram.h deleted file mode 100644 index 70a82065c..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/gram.h +++ /dev/null @@ -1,1101 +0,0 @@ -/* A Bison parser, made by GNU Bison 2.3. */ - -/* Skeleton interface for Bison's Yacc-like parsers in C - - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 - Free Software Foundation, Inc. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. */ - -/* As a special exception, you may create a larger work that contains - part or all of the Bison parser skeleton and distribute that work - under terms of your choice, so long as that work isn't itself a - parser generator using the skeleton or a modified version thereof - as a parser skeleton. Alternatively, if you modify or redistribute - the parser skeleton itself, you may (at your option) remove this - special exception, which will cause the skeleton and the resulting - Bison output files to be licensed under the GNU General Public - License without this special exception. - - This special exception was added by the Free Software Foundation in - version 2.2 of Bison. */ - -/* Tokens. */ -#ifndef YYTOKENTYPE -# define YYTOKENTYPE - /* Put the tokens into the symbol table, so that GDB and other debuggers - know about them. */ - enum yytokentype { - IDENT = 258, - UIDENT = 259, - FCONST = 260, - SCONST = 261, - USCONST = 262, - BCONST = 263, - XCONST = 264, - Op = 265, - ICONST = 266, - PARAM = 267, - TYPECAST = 268, - DOT_DOT = 269, - COLON_EQUALS = 270, - EQUALS_GREATER = 271, - LESS_EQUALS = 272, - GREATER_EQUALS = 273, - NOT_EQUALS = 274, - SQL_COMMENT = 275, - C_COMMENT = 276, - ABORT_P = 277, - ABSOLUTE_P = 278, - ACCESS = 279, - ACTION = 280, - ADD_P = 281, - ADMIN = 282, - AFTER = 283, - AGGREGATE = 284, - ALL = 285, - ALSO = 286, - ALTER = 287, - ALWAYS = 288, - ANALYSE = 289, - ANALYZE = 290, - AND = 291, - ANY = 292, - ARRAY = 293, - AS = 294, - ASC = 295, - ASENSITIVE = 296, - ASSERTION = 297, - ASSIGNMENT = 298, - ASYMMETRIC = 299, - ATOMIC = 300, - AT = 301, - ATTACH = 302, - ATTRIBUTE = 303, - AUTHORIZATION = 304, - BACKWARD = 305, - BEFORE = 306, - BEGIN_P = 307, - BETWEEN = 308, - BIGINT = 309, - BINARY = 310, - BIT = 311, - BOOLEAN_P = 312, - BOTH = 313, - BREADTH = 314, - BY = 315, - CACHE = 316, - CALL = 317, - CALLED = 318, - CASCADE = 319, - CASCADED = 320, - CASE = 321, - CAST = 322, - CATALOG_P = 323, - CHAIN = 324, - CHAR_P = 325, - CHARACTER = 326, - CHARACTERISTICS = 327, - CHECK = 328, - CHECKPOINT = 329, - CLASS = 330, - CLOSE = 331, - CLUSTER = 332, - COALESCE = 333, - COLLATE = 334, - COLLATION = 335, - COLUMN = 336, - COLUMNS = 337, - COMMENT = 338, - COMMENTS = 339, - COMMIT = 340, - COMMITTED = 341, - COMPRESSION = 342, - CONCURRENTLY = 343, - CONFIGURATION = 344, - CONFLICT = 345, - CONNECTION = 346, - CONSTRAINT = 347, - CONSTRAINTS = 348, - CONTENT_P = 349, - CONTINUE_P = 350, - CONVERSION_P = 351, - COPY = 352, - COST = 353, - CREATE = 354, - CROSS = 355, - CSV = 356, - CUBE = 357, - CURRENT_P = 358, - CURRENT_CATALOG = 359, - CURRENT_DATE = 360, - CURRENT_ROLE = 361, - CURRENT_SCHEMA = 362, - CURRENT_TIME = 363, - CURRENT_TIMESTAMP = 364, - CURRENT_USER = 365, - CURSOR = 366, - CYCLE = 367, - DATA_P = 368, - DATABASE = 369, - DAY_P = 370, - DEALLOCATE = 371, - DEC = 372, - DECIMAL_P = 373, - DECLARE = 374, - DEFAULT = 375, - DEFAULTS = 376, - DEFERRABLE = 377, - DEFERRED = 378, - DEFINER = 379, - DELETE_P = 380, - DELIMITER = 381, - DELIMITERS = 382, - DEPENDS = 383, - DEPTH = 384, - DESC = 385, - DETACH = 386, - DICTIONARY = 387, - DISABLE_P = 388, - DISCARD = 389, - DISTINCT = 390, - DO = 391, - DOCUMENT_P = 392, - DOMAIN_P = 393, - DOUBLE_P = 394, - DROP = 395, - EACH = 396, - ELSE = 397, - ENABLE_P = 398, - ENCODING = 399, - ENCRYPTED = 400, - END_P = 401, - ENUM_P = 402, - ESCAPE = 403, - EVENT = 404, - EXCEPT = 405, - EXCLUDE = 406, - EXCLUDING = 407, - EXCLUSIVE = 408, - EXECUTE = 409, - EXISTS = 410, - EXPLAIN = 411, - EXPRESSION = 412, - EXTENSION = 413, - EXTERNAL = 414, - EXTRACT = 415, - FALSE_P = 416, - FAMILY = 417, - FETCH = 418, - FILTER = 419, - FINALIZE = 420, - FIRST_P = 421, - FLOAT_P = 422, - FOLLOWING = 423, - FOR = 424, - FORCE = 425, - FOREIGN = 426, - FORWARD = 427, - FREEZE = 428, - FROM = 429, - FULL = 430, - FUNCTION = 431, - FUNCTIONS = 432, - GENERATED = 433, - GLOBAL = 434, - GRANT = 435, - GRANTED = 436, - GREATEST = 437, - GROUP_P = 438, - GROUPING = 439, - GROUPS = 440, - HANDLER = 441, - HAVING = 442, - HEADER_P = 443, - HOLD = 444, - HOUR_P = 445, - IDENTITY_P = 446, - IF_P = 447, - ILIKE = 448, - IMMEDIATE = 449, - IMMUTABLE = 450, - IMPLICIT_P = 451, - IMPORT_P = 452, - IN_P = 453, - INCLUDE = 454, - INCLUDING = 455, - INCREMENT = 456, - INDEX = 457, - INDEXES = 458, - INHERIT = 459, - INHERITS = 460, - INITIALLY = 461, - INLINE_P = 462, - INNER_P = 463, - INOUT = 464, - INPUT_P = 465, - INSENSITIVE = 466, - INSERT = 467, - INSTEAD = 468, - INT_P = 469, - INTEGER = 470, - INTERSECT = 471, - INTERVAL = 472, - INTO = 473, - INVOKER = 474, - IS = 475, - ISNULL = 476, - ISOLATION = 477, - JOIN = 478, - KEY = 479, - LABEL = 480, - LANGUAGE = 481, - LARGE_P = 482, - LAST_P = 483, - LATERAL_P = 484, - LEADING = 485, - LEAKPROOF = 486, - LEAST = 487, - LEFT = 488, - LEVEL = 489, - LIKE = 490, - LIMIT = 491, - LISTEN = 492, - LOAD = 493, - LOCAL = 494, - LOCALTIME = 495, - LOCALTIMESTAMP = 496, - LOCATION = 497, - LOCK_P = 498, - LOCKED = 499, - LOGGED = 500, - MAPPING = 501, - MATCH = 502, - MATCHED = 503, - MATERIALIZED = 504, - MAXVALUE = 505, - MERGE = 506, - METHOD = 507, - MINUTE_P = 508, - MINVALUE = 509, - MODE = 510, - MONTH_P = 511, - MOVE = 512, - NAME_P = 513, - NAMES = 514, - NATIONAL = 515, - NATURAL = 516, - NCHAR = 517, - NEW = 518, - NEXT = 519, - NFC = 520, - NFD = 521, - NFKC = 522, - NFKD = 523, - NO = 524, - NONE = 525, - NORMALIZE = 526, - NORMALIZED = 527, - NOT = 528, - NOTHING = 529, - NOTIFY = 530, - NOTNULL = 531, - NOWAIT = 532, - NULL_P = 533, - NULLIF = 534, - NULLS_P = 535, - NUMERIC = 536, - OBJECT_P = 537, - OF = 538, - OFF = 539, - OFFSET = 540, - OIDS = 541, - OLD = 542, - ON = 543, - ONLY = 544, - OPERATOR = 545, - OPTION = 546, - OPTIONS = 547, - OR = 548, - ORDER = 549, - ORDINALITY = 550, - OTHERS = 551, - OUT_P = 552, - OUTER_P = 553, - OVER = 554, - OVERLAPS = 555, - OVERLAY = 556, - OVERRIDING = 557, - OWNED = 558, - OWNER = 559, - PARALLEL = 560, - PARAMETER = 561, - PARSER = 562, - PARTIAL = 563, - PARTITION = 564, - PASSING = 565, - PASSWORD = 566, - PLACING = 567, - PLANS = 568, - POLICY = 569, - POSITION = 570, - PRECEDING = 571, - PRECISION = 572, - PRESERVE = 573, - PREPARE = 574, - PREPARED = 575, - PRIMARY = 576, - PRIOR = 577, - PRIVILEGES = 578, - PROCEDURAL = 579, - PROCEDURE = 580, - PROCEDURES = 581, - PROGRAM = 582, - PUBLICATION = 583, - QUOTE = 584, - RANGE = 585, - READ = 586, - REAL = 587, - REASSIGN = 588, - RECHECK = 589, - RECURSIVE = 590, - REF_P = 591, - REFERENCES = 592, - REFERENCING = 593, - REFRESH = 594, - REINDEX = 595, - RELATIVE_P = 596, - RELEASE = 597, - RENAME = 598, - REPEATABLE = 599, - REPLACE = 600, - REPLICA = 601, - RESET = 602, - RESTART = 603, - RESTRICT = 604, - RETURN = 605, - RETURNING = 606, - RETURNS = 607, - REVOKE = 608, - RIGHT = 609, - ROLE = 610, - ROLLBACK = 611, - ROLLUP = 612, - ROUTINE = 613, - ROUTINES = 614, - ROW = 615, - ROWS = 616, - RULE = 617, - SAVEPOINT = 618, - SCHEMA = 619, - SCHEMAS = 620, - SCROLL = 621, - SEARCH = 622, - SECOND_P = 623, - SECURITY = 624, - SELECT = 625, - SEQUENCE = 626, - SEQUENCES = 627, - SERIALIZABLE = 628, - SERVER = 629, - SESSION = 630, - SESSION_USER = 631, - SET = 632, - SETS = 633, - SETOF = 634, - SHARE = 635, - SHOW = 636, - SIMILAR = 637, - SIMPLE = 638, - SKIP = 639, - SMALLINT = 640, - SNAPSHOT = 641, - SOME = 642, - SQL_P = 643, - STABLE = 644, - STANDALONE_P = 645, - START = 646, - STATEMENT = 647, - STATISTICS = 648, - STDIN = 649, - STDOUT = 650, - STORAGE = 651, - STORED = 652, - STRICT_P = 653, - STRIP_P = 654, - SUBSCRIPTION = 655, - SUBSTRING = 656, - SUPPORT = 657, - SYMMETRIC = 658, - SYSID = 659, - SYSTEM_P = 660, - TABLE = 661, - TABLES = 662, - TABLESAMPLE = 663, - TABLESPACE = 664, - TEMP = 665, - TEMPLATE = 666, - TEMPORARY = 667, - TEXT_P = 668, - THEN = 669, - TIES = 670, - TIME = 671, - TIMESTAMP = 672, - TO = 673, - TRAILING = 674, - TRANSACTION = 675, - TRANSFORM = 676, - TREAT = 677, - TRIGGER = 678, - TRIM = 679, - TRUE_P = 680, - TRUNCATE = 681, - TRUSTED = 682, - TYPE_P = 683, - TYPES_P = 684, - UESCAPE = 685, - UNBOUNDED = 686, - UNCOMMITTED = 687, - UNENCRYPTED = 688, - UNION = 689, - UNIQUE = 690, - UNKNOWN = 691, - UNLISTEN = 692, - UNLOGGED = 693, - UNTIL = 694, - UPDATE = 695, - USER = 696, - USING = 697, - VACUUM = 698, - VALID = 699, - VALIDATE = 700, - VALIDATOR = 701, - VALUE_P = 702, - VALUES = 703, - VARCHAR = 704, - VARIADIC = 705, - VARYING = 706, - VERBOSE = 707, - VERSION_P = 708, - VIEW = 709, - VIEWS = 710, - VOLATILE = 711, - WHEN = 712, - WHERE = 713, - WHITESPACE_P = 714, - WINDOW = 715, - WITH = 716, - WITHIN = 717, - WITHOUT = 718, - WORK = 719, - WRAPPER = 720, - WRITE = 721, - XML_P = 722, - XMLATTRIBUTES = 723, - XMLCONCAT = 724, - XMLELEMENT = 725, - XMLEXISTS = 726, - XMLFOREST = 727, - XMLNAMESPACES = 728, - XMLPARSE = 729, - XMLPI = 730, - XMLROOT = 731, - XMLSERIALIZE = 732, - XMLTABLE = 733, - YEAR_P = 734, - YES_P = 735, - ZONE = 736, - NOT_LA = 737, - NULLS_LA = 738, - WITH_LA = 739, - MODE_TYPE_NAME = 740, - MODE_PLPGSQL_EXPR = 741, - MODE_PLPGSQL_ASSIGN1 = 742, - MODE_PLPGSQL_ASSIGN2 = 743, - MODE_PLPGSQL_ASSIGN3 = 744, - UMINUS = 745 - }; -#endif -/* Tokens. */ -#define IDENT 258 -#define UIDENT 259 -#define FCONST 260 -#define SCONST 261 -#define USCONST 262 -#define BCONST 263 -#define XCONST 264 -#define Op 265 -#define ICONST 266 -#define PARAM 267 -#define TYPECAST 268 -#define DOT_DOT 269 -#define COLON_EQUALS 270 -#define EQUALS_GREATER 271 -#define LESS_EQUALS 272 -#define GREATER_EQUALS 273 -#define NOT_EQUALS 274 -#define SQL_COMMENT 275 -#define C_COMMENT 276 -#define ABORT_P 277 -#define ABSOLUTE_P 278 -#define ACCESS 279 -#define ACTION 280 -#define ADD_P 281 -#define ADMIN 282 -#define AFTER 283 -#define AGGREGATE 284 -#define ALL 285 -#define ALSO 286 -#define ALTER 287 -#define ALWAYS 288 -#define ANALYSE 289 -#define ANALYZE 290 -#define AND 291 -#define ANY 292 -#define ARRAY 293 -#define AS 294 -#define ASC 295 -#define ASENSITIVE 296 -#define ASSERTION 297 -#define ASSIGNMENT 298 -#define ASYMMETRIC 299 -#define ATOMIC 300 -#define AT 301 -#define ATTACH 302 -#define ATTRIBUTE 303 -#define AUTHORIZATION 304 -#define BACKWARD 305 -#define BEFORE 306 -#define BEGIN_P 307 -#define BETWEEN 308 -#define BIGINT 309 -#define BINARY 310 -#define BIT 311 -#define BOOLEAN_P 312 -#define BOTH 313 -#define BREADTH 314 -#define BY 315 -#define CACHE 316 -#define CALL 317 -#define CALLED 318 -#define CASCADE 319 -#define CASCADED 320 -#define CASE 321 -#define CAST 322 -#define CATALOG_P 323 -#define CHAIN 324 -#define CHAR_P 325 -#define CHARACTER 326 -#define CHARACTERISTICS 327 -#define CHECK 328 -#define CHECKPOINT 329 -#define CLASS 330 -#define CLOSE 331 -#define CLUSTER 332 -#define COALESCE 333 -#define COLLATE 334 -#define COLLATION 335 -#define COLUMN 336 -#define COLUMNS 337 -#define COMMENT 338 -#define COMMENTS 339 -#define COMMIT 340 -#define COMMITTED 341 -#define COMPRESSION 342 -#define CONCURRENTLY 343 -#define CONFIGURATION 344 -#define CONFLICT 345 -#define CONNECTION 346 -#define CONSTRAINT 347 -#define CONSTRAINTS 348 -#define CONTENT_P 349 -#define CONTINUE_P 350 -#define CONVERSION_P 351 -#define COPY 352 -#define COST 353 -#define CREATE 354 -#define CROSS 355 -#define CSV 356 -#define CUBE 357 -#define CURRENT_P 358 -#define CURRENT_CATALOG 359 -#define CURRENT_DATE 360 -#define CURRENT_ROLE 361 -#define CURRENT_SCHEMA 362 -#define CURRENT_TIME 363 -#define CURRENT_TIMESTAMP 364 -#define CURRENT_USER 365 -#define CURSOR 366 -#define CYCLE 367 -#define DATA_P 368 -#define DATABASE 369 -#define DAY_P 370 -#define DEALLOCATE 371 -#define DEC 372 -#define DECIMAL_P 373 -#define DECLARE 374 -#define DEFAULT 375 -#define DEFAULTS 376 -#define DEFERRABLE 377 -#define DEFERRED 378 -#define DEFINER 379 -#define DELETE_P 380 -#define DELIMITER 381 -#define DELIMITERS 382 -#define DEPENDS 383 -#define DEPTH 384 -#define DESC 385 -#define DETACH 386 -#define DICTIONARY 387 -#define DISABLE_P 388 -#define DISCARD 389 -#define DISTINCT 390 -#define DO 391 -#define DOCUMENT_P 392 -#define DOMAIN_P 393 -#define DOUBLE_P 394 -#define DROP 395 -#define EACH 396 -#define ELSE 397 -#define ENABLE_P 398 -#define ENCODING 399 -#define ENCRYPTED 400 -#define END_P 401 -#define ENUM_P 402 -#define ESCAPE 403 -#define EVENT 404 -#define EXCEPT 405 -#define EXCLUDE 406 -#define EXCLUDING 407 -#define EXCLUSIVE 408 -#define EXECUTE 409 -#define EXISTS 410 -#define EXPLAIN 411 -#define EXPRESSION 412 -#define EXTENSION 413 -#define EXTERNAL 414 -#define EXTRACT 415 -#define FALSE_P 416 -#define FAMILY 417 -#define FETCH 418 -#define FILTER 419 -#define FINALIZE 420 -#define FIRST_P 421 -#define FLOAT_P 422 -#define FOLLOWING 423 -#define FOR 424 -#define FORCE 425 -#define FOREIGN 426 -#define FORWARD 427 -#define FREEZE 428 -#define FROM 429 -#define FULL 430 -#define FUNCTION 431 -#define FUNCTIONS 432 -#define GENERATED 433 -#define GLOBAL 434 -#define GRANT 435 -#define GRANTED 436 -#define GREATEST 437 -#define GROUP_P 438 -#define GROUPING 439 -#define GROUPS 440 -#define HANDLER 441 -#define HAVING 442 -#define HEADER_P 443 -#define HOLD 444 -#define HOUR_P 445 -#define IDENTITY_P 446 -#define IF_P 447 -#define ILIKE 448 -#define IMMEDIATE 449 -#define IMMUTABLE 450 -#define IMPLICIT_P 451 -#define IMPORT_P 452 -#define IN_P 453 -#define INCLUDE 454 -#define INCLUDING 455 -#define INCREMENT 456 -#define INDEX 457 -#define INDEXES 458 -#define INHERIT 459 -#define INHERITS 460 -#define INITIALLY 461 -#define INLINE_P 462 -#define INNER_P 463 -#define INOUT 464 -#define INPUT_P 465 -#define INSENSITIVE 466 -#define INSERT 467 -#define INSTEAD 468 -#define INT_P 469 -#define INTEGER 470 -#define INTERSECT 471 -#define INTERVAL 472 -#define INTO 473 -#define INVOKER 474 -#define IS 475 -#define ISNULL 476 -#define ISOLATION 477 -#define JOIN 478 -#define KEY 479 -#define LABEL 480 -#define LANGUAGE 481 -#define LARGE_P 482 -#define LAST_P 483 -#define LATERAL_P 484 -#define LEADING 485 -#define LEAKPROOF 486 -#define LEAST 487 -#define LEFT 488 -#define LEVEL 489 -#define LIKE 490 -#define LIMIT 491 -#define LISTEN 492 -#define LOAD 493 -#define LOCAL 494 -#define LOCALTIME 495 -#define LOCALTIMESTAMP 496 -#define LOCATION 497 -#define LOCK_P 498 -#define LOCKED 499 -#define LOGGED 500 -#define MAPPING 501 -#define MATCH 502 -#define MATCHED 503 -#define MATERIALIZED 504 -#define MAXVALUE 505 -#define MERGE 506 -#define METHOD 507 -#define MINUTE_P 508 -#define MINVALUE 509 -#define MODE 510 -#define MONTH_P 511 -#define MOVE 512 -#define NAME_P 513 -#define NAMES 514 -#define NATIONAL 515 -#define NATURAL 516 -#define NCHAR 517 -#define NEW 518 -#define NEXT 519 -#define NFC 520 -#define NFD 521 -#define NFKC 522 -#define NFKD 523 -#define NO 524 -#define NONE 525 -#define NORMALIZE 526 -#define NORMALIZED 527 -#define NOT 528 -#define NOTHING 529 -#define NOTIFY 530 -#define NOTNULL 531 -#define NOWAIT 532 -#define NULL_P 533 -#define NULLIF 534 -#define NULLS_P 535 -#define NUMERIC 536 -#define OBJECT_P 537 -#define OF 538 -#define OFF 539 -#define OFFSET 540 -#define OIDS 541 -#define OLD 542 -#define ON 543 -#define ONLY 544 -#define OPERATOR 545 -#define OPTION 546 -#define OPTIONS 547 -#define OR 548 -#define ORDER 549 -#define ORDINALITY 550 -#define OTHERS 551 -#define OUT_P 552 -#define OUTER_P 553 -#define OVER 554 -#define OVERLAPS 555 -#define OVERLAY 556 -#define OVERRIDING 557 -#define OWNED 558 -#define OWNER 559 -#define PARALLEL 560 -#define PARAMETER 561 -#define PARSER 562 -#define PARTIAL 563 -#define PARTITION 564 -#define PASSING 565 -#define PASSWORD 566 -#define PLACING 567 -#define PLANS 568 -#define POLICY 569 -#define POSITION 570 -#define PRECEDING 571 -#define PRECISION 572 -#define PRESERVE 573 -#define PREPARE 574 -#define PREPARED 575 -#define PRIMARY 576 -#define PRIOR 577 -#define PRIVILEGES 578 -#define PROCEDURAL 579 -#define PROCEDURE 580 -#define PROCEDURES 581 -#define PROGRAM 582 -#define PUBLICATION 583 -#define QUOTE 584 -#define RANGE 585 -#define READ 586 -#define REAL 587 -#define REASSIGN 588 -#define RECHECK 589 -#define RECURSIVE 590 -#define REF_P 591 -#define REFERENCES 592 -#define REFERENCING 593 -#define REFRESH 594 -#define REINDEX 595 -#define RELATIVE_P 596 -#define RELEASE 597 -#define RENAME 598 -#define REPEATABLE 599 -#define REPLACE 600 -#define REPLICA 601 -#define RESET 602 -#define RESTART 603 -#define RESTRICT 604 -#define RETURN 605 -#define RETURNING 606 -#define RETURNS 607 -#define REVOKE 608 -#define RIGHT 609 -#define ROLE 610 -#define ROLLBACK 611 -#define ROLLUP 612 -#define ROUTINE 613 -#define ROUTINES 614 -#define ROW 615 -#define ROWS 616 -#define RULE 617 -#define SAVEPOINT 618 -#define SCHEMA 619 -#define SCHEMAS 620 -#define SCROLL 621 -#define SEARCH 622 -#define SECOND_P 623 -#define SECURITY 624 -#define SELECT 625 -#define SEQUENCE 626 -#define SEQUENCES 627 -#define SERIALIZABLE 628 -#define SERVER 629 -#define SESSION 630 -#define SESSION_USER 631 -#define SET 632 -#define SETS 633 -#define SETOF 634 -#define SHARE 635 -#define SHOW 636 -#define SIMILAR 637 -#define SIMPLE 638 -#define SKIP 639 -#define SMALLINT 640 -#define SNAPSHOT 641 -#define SOME 642 -#define SQL_P 643 -#define STABLE 644 -#define STANDALONE_P 645 -#define START 646 -#define STATEMENT 647 -#define STATISTICS 648 -#define STDIN 649 -#define STDOUT 650 -#define STORAGE 651 -#define STORED 652 -#define STRICT_P 653 -#define STRIP_P 654 -#define SUBSCRIPTION 655 -#define SUBSTRING 656 -#define SUPPORT 657 -#define SYMMETRIC 658 -#define SYSID 659 -#define SYSTEM_P 660 -#define TABLE 661 -#define TABLES 662 -#define TABLESAMPLE 663 -#define TABLESPACE 664 -#define TEMP 665 -#define TEMPLATE 666 -#define TEMPORARY 667 -#define TEXT_P 668 -#define THEN 669 -#define TIES 670 -#define TIME 671 -#define TIMESTAMP 672 -#define TO 673 -#define TRAILING 674 -#define TRANSACTION 675 -#define TRANSFORM 676 -#define TREAT 677 -#define TRIGGER 678 -#define TRIM 679 -#define TRUE_P 680 -#define TRUNCATE 681 -#define TRUSTED 682 -#define TYPE_P 683 -#define TYPES_P 684 -#define UESCAPE 685 -#define UNBOUNDED 686 -#define UNCOMMITTED 687 -#define UNENCRYPTED 688 -#define UNION 689 -#define UNIQUE 690 -#define UNKNOWN 691 -#define UNLISTEN 692 -#define UNLOGGED 693 -#define UNTIL 694 -#define UPDATE 695 -#define USER 696 -#define USING 697 -#define VACUUM 698 -#define VALID 699 -#define VALIDATE 700 -#define VALIDATOR 701 -#define VALUE_P 702 -#define VALUES 703 -#define VARCHAR 704 -#define VARIADIC 705 -#define VARYING 706 -#define VERBOSE 707 -#define VERSION_P 708 -#define VIEW 709 -#define VIEWS 710 -#define VOLATILE 711 -#define WHEN 712 -#define WHERE 713 -#define WHITESPACE_P 714 -#define WINDOW 715 -#define WITH 716 -#define WITHIN 717 -#define WITHOUT 718 -#define WORK 719 -#define WRAPPER 720 -#define WRITE 721 -#define XML_P 722 -#define XMLATTRIBUTES 723 -#define XMLCONCAT 724 -#define XMLELEMENT 725 -#define XMLEXISTS 726 -#define XMLFOREST 727 -#define XMLNAMESPACES 728 -#define XMLPARSE 729 -#define XMLPI 730 -#define XMLROOT 731 -#define XMLSERIALIZE 732 -#define XMLTABLE 733 -#define YEAR_P 734 -#define YES_P 735 -#define ZONE 736 -#define NOT_LA 737 -#define NULLS_LA 738 -#define WITH_LA 739 -#define MODE_TYPE_NAME 740 -#define MODE_PLPGSQL_EXPR 741 -#define MODE_PLPGSQL_ASSIGN1 742 -#define MODE_PLPGSQL_ASSIGN2 743 -#define MODE_PLPGSQL_ASSIGN3 744 -#define UMINUS 745 - - - - -#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED -typedef union YYSTYPE -#line 237 "gram.y" -{ - core_YYSTYPE core_yystype; - /* these fields must match core_YYSTYPE: */ - int ival; - char *str; - const char *keyword; - - char chr; - bool boolean; - JoinType jtype; - DropBehavior dbehavior; - OnCommitAction oncommit; - List *list; - Node *node; - ObjectType objtype; - TypeName *typnam; - FunctionParameter *fun_param; - FunctionParameterMode fun_param_mode; - ObjectWithArgs *objwithargs; - DefElem *defelt; - SortBy *sortby; - WindowDef *windef; - JoinExpr *jexpr; - IndexElem *ielem; - StatsElem *selem; - Alias *alias; - RangeVar *range; - IntoClause *into; - WithClause *with; - InferClause *infer; - OnConflictClause *onconflict; - A_Indices *aind; - ResTarget *target; - struct PrivTarget *privtarget; - AccessPriv *accesspriv; - struct ImportQual *importqual; - InsertStmt *istmt; - VariableSetStmt *vsetstmt; - PartitionElem *partelem; - PartitionSpec *partspec; - PartitionBoundSpec *partboundspec; - RoleSpec *rolespec; - PublicationObjSpec *publicationobjectspec; - struct SelectLimit *selectlimit; - SetQuantifier setquantifier; - struct GroupClause *groupclause; - MergeWhenClause *mergewhen; - struct KeyActions *keyactions; - struct KeyAction *keyaction; -} -/* Line 1529 of yacc.c. */ -#line 1080 "gram.h" - YYSTYPE; -# define yystype YYSTYPE /* obsolescent; will be withdrawn */ -# define YYSTYPE_IS_DECLARED 1 -# define YYSTYPE_IS_TRIVIAL 1 -#endif - - - -#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED -typedef struct YYLTYPE -{ - int first_line; - int first_column; - int last_line; - int last_column; -} YYLTYPE; -# define yyltype YYLTYPE /* obsolescent; will be withdrawn */ -# define YYLTYPE_IS_DECLARED 1 -# define YYLTYPE_IS_TRIVIAL 1 -#endif - - diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/gramparse.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/gramparse.h deleted file mode 100644 index d9d4ac57e..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/gramparse.h +++ /dev/null @@ -1,75 +0,0 @@ -/*------------------------------------------------------------------------- - * - * gramparse.h - * Shared definitions for the "raw" parser (flex and bison phases only) - * - * NOTE: this file is only meant to be included in the core parsing files, - * ie, parser.c, gram.y, scan.l, and src/common/keywords.c. - * Definitions that are needed outside the core parser should be in parser.h. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/parser/gramparse.h - * - *------------------------------------------------------------------------- - */ - -#ifndef GRAMPARSE_H -#define GRAMPARSE_H - -#include "nodes/parsenodes.h" -#include "parser/scanner.h" - -/* - * NB: include gram.h only AFTER including scanner.h, because scanner.h - * is what #defines YYLTYPE. - */ -#include "parser/gram.h" - -/* - * The YY_EXTRA data that a flex scanner allows us to pass around. Private - * state needed for raw parsing/lexing goes here. - */ -typedef struct base_yy_extra_type -{ - /* - * Fields used by the core scanner. - */ - core_yy_extra_type core_yy_extra; - - /* - * State variables for base_yylex(). - */ - bool have_lookahead; /* is lookahead info valid? */ - int lookahead_token; /* one-token lookahead */ - core_YYSTYPE lookahead_yylval; /* yylval for lookahead token */ - YYLTYPE lookahead_yylloc; /* yylloc for lookahead token */ - char *lookahead_end; /* end of current token */ - char lookahead_hold_char; /* to be put back at *lookahead_end */ - - /* - * State variables that belong to the grammar. - */ - List *parsetree; /* final parse result is delivered here */ -} base_yy_extra_type; - -/* - * In principle we should use yyget_extra() to fetch the yyextra field - * from a yyscanner struct. However, flex always puts that field first, - * and this is sufficiently performance-critical to make it seem worth - * cheating a bit to use an inline macro. - */ -#define pg_yyget_extra(yyscanner) (*((base_yy_extra_type **) (yyscanner))) - - -/* from parser.c */ -extern int base_yylex(YYSTYPE *lvalp, YYLTYPE *llocp, - core_yyscan_t yyscanner); - -/* from gram.y */ -extern void parser_init(base_yy_extra_type *yyext); -extern int base_yyparse(core_yyscan_t yyscanner); - -#endif /* GRAMPARSE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/kwlist.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/kwlist.h deleted file mode 100644 index 65ffa8979..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/kwlist.h +++ /dev/null @@ -1,487 +0,0 @@ -/*------------------------------------------------------------------------- - * - * kwlist.h - * - * The keyword lists are kept in their own source files for use by - * automatic tools. The exact representation of a keyword is determined - * by the PG_KEYWORD macro, which is not defined in this file; it can - * be defined by the caller for special purposes. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * IDENTIFICATION - * src/include/parser/kwlist.h - * - *------------------------------------------------------------------------- - */ - -/* there is deliberately not an #ifndef KWLIST_H here */ - -/* - * List of keyword (name, token-value, category, bare-label-status) entries. - * - * Note: gen_keywordlist.pl requires the entries to appear in ASCII order. - */ - -/* name, value, category, is-bare-label */ -PG_KEYWORD("abort", ABORT_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("absolute", ABSOLUTE_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("access", ACCESS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("action", ACTION, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("add", ADD_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("admin", ADMIN, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("after", AFTER, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("aggregate", AGGREGATE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("all", ALL, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("also", ALSO, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("alter", ALTER, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("always", ALWAYS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("analyse", ANALYSE, RESERVED_KEYWORD, BARE_LABEL) /* British spelling */ -PG_KEYWORD("analyze", ANALYZE, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("and", AND, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("any", ANY, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("array", ARRAY, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("as", AS, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("asc", ASC, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("asensitive", ASENSITIVE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("assertion", ASSERTION, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("assignment", ASSIGNMENT, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("asymmetric", ASYMMETRIC, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("at", AT, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("atomic", ATOMIC, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("attach", ATTACH, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("attribute", ATTRIBUTE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("authorization", AUTHORIZATION, TYPE_FUNC_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("backward", BACKWARD, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("before", BEFORE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("begin", BEGIN_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("between", BETWEEN, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("bigint", BIGINT, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("binary", BINARY, TYPE_FUNC_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("bit", BIT, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("boolean", BOOLEAN_P, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("both", BOTH, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("breadth", BREADTH, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("by", BY, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("cache", CACHE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("call", CALL, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("called", CALLED, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("cascade", CASCADE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("cascaded", CASCADED, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("case", CASE, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("cast", CAST, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("catalog", CATALOG_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("chain", CHAIN, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("char", CHAR_P, COL_NAME_KEYWORD, AS_LABEL) -PG_KEYWORD("character", CHARACTER, COL_NAME_KEYWORD, AS_LABEL) -PG_KEYWORD("characteristics", CHARACTERISTICS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("check", CHECK, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("checkpoint", CHECKPOINT, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("class", CLASS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("close", CLOSE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("cluster", CLUSTER, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("coalesce", COALESCE, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("collate", COLLATE, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("collation", COLLATION, TYPE_FUNC_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("column", COLUMN, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("columns", COLUMNS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("comment", COMMENT, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("comments", COMMENTS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("commit", COMMIT, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("committed", COMMITTED, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("compression", COMPRESSION, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("concurrently", CONCURRENTLY, TYPE_FUNC_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("configuration", CONFIGURATION, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("conflict", CONFLICT, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("connection", CONNECTION, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("constraint", CONSTRAINT, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("constraints", CONSTRAINTS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("content", CONTENT_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("continue", CONTINUE_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("conversion", CONVERSION_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("copy", COPY, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("cost", COST, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("create", CREATE, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("cross", CROSS, TYPE_FUNC_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("csv", CSV, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("cube", CUBE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("current", CURRENT_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("current_catalog", CURRENT_CATALOG, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("current_date", CURRENT_DATE, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("current_role", CURRENT_ROLE, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("current_schema", CURRENT_SCHEMA, TYPE_FUNC_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("current_time", CURRENT_TIME, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("current_timestamp", CURRENT_TIMESTAMP, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("current_user", CURRENT_USER, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("cursor", CURSOR, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("cycle", CYCLE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("data", DATA_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("database", DATABASE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("day", DAY_P, UNRESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("deallocate", DEALLOCATE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("dec", DEC, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("decimal", DECIMAL_P, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("declare", DECLARE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("default", DEFAULT, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("defaults", DEFAULTS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("deferrable", DEFERRABLE, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("deferred", DEFERRED, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("definer", DEFINER, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("delete", DELETE_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("delimiter", DELIMITER, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("delimiters", DELIMITERS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("depends", DEPENDS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("depth", DEPTH, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("desc", DESC, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("detach", DETACH, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("dictionary", DICTIONARY, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("disable", DISABLE_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("discard", DISCARD, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("distinct", DISTINCT, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("do", DO, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("document", DOCUMENT_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("domain", DOMAIN_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("double", DOUBLE_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("drop", DROP, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("each", EACH, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("else", ELSE, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("enable", ENABLE_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("encoding", ENCODING, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("encrypted", ENCRYPTED, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("end", END_P, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("enum", ENUM_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("escape", ESCAPE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("event", EVENT, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("except", EXCEPT, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("exclude", EXCLUDE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("excluding", EXCLUDING, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("exclusive", EXCLUSIVE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("execute", EXECUTE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("exists", EXISTS, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("explain", EXPLAIN, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("expression", EXPRESSION, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("extension", EXTENSION, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("external", EXTERNAL, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("extract", EXTRACT, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("false", FALSE_P, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("family", FAMILY, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("fetch", FETCH, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("filter", FILTER, UNRESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("finalize", FINALIZE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("first", FIRST_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("float", FLOAT_P, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("following", FOLLOWING, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("for", FOR, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("force", FORCE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("foreign", FOREIGN, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("forward", FORWARD, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("freeze", FREEZE, TYPE_FUNC_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("from", FROM, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("full", FULL, TYPE_FUNC_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("function", FUNCTION, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("functions", FUNCTIONS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("generated", GENERATED, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("global", GLOBAL, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("grant", GRANT, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("granted", GRANTED, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("greatest", GREATEST, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("group", GROUP_P, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("grouping", GROUPING, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("groups", GROUPS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("handler", HANDLER, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("having", HAVING, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("header", HEADER_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("hold", HOLD, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("hour", HOUR_P, UNRESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("identity", IDENTITY_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("if", IF_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("ilike", ILIKE, TYPE_FUNC_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("immediate", IMMEDIATE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("immutable", IMMUTABLE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("implicit", IMPLICIT_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("import", IMPORT_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("in", IN_P, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("include", INCLUDE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("including", INCLUDING, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("increment", INCREMENT, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("index", INDEX, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("indexes", INDEXES, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("inherit", INHERIT, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("inherits", INHERITS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("initially", INITIALLY, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("inline", INLINE_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("inner", INNER_P, TYPE_FUNC_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("inout", INOUT, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("input", INPUT_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("insensitive", INSENSITIVE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("insert", INSERT, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("instead", INSTEAD, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("int", INT_P, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("integer", INTEGER, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("intersect", INTERSECT, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("interval", INTERVAL, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("into", INTO, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("invoker", INVOKER, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("is", IS, TYPE_FUNC_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("isnull", ISNULL, TYPE_FUNC_NAME_KEYWORD, AS_LABEL) -PG_KEYWORD("isolation", ISOLATION, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("join", JOIN, TYPE_FUNC_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("key", KEY, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("label", LABEL, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("language", LANGUAGE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("large", LARGE_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("last", LAST_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("lateral", LATERAL_P, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("leading", LEADING, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("leakproof", LEAKPROOF, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("least", LEAST, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("left", LEFT, TYPE_FUNC_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("level", LEVEL, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("like", LIKE, TYPE_FUNC_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("limit", LIMIT, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("listen", LISTEN, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("load", LOAD, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("local", LOCAL, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("localtime", LOCALTIME, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("localtimestamp", LOCALTIMESTAMP, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("location", LOCATION, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("lock", LOCK_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("locked", LOCKED, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("logged", LOGGED, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("mapping", MAPPING, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("match", MATCH, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("matched", MATCHED, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("materialized", MATERIALIZED, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("maxvalue", MAXVALUE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("merge", MERGE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("method", METHOD, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("minute", MINUTE_P, UNRESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("minvalue", MINVALUE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("mode", MODE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("month", MONTH_P, UNRESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("move", MOVE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("name", NAME_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("names", NAMES, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("national", NATIONAL, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("natural", NATURAL, TYPE_FUNC_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("nchar", NCHAR, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("new", NEW, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("next", NEXT, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("nfc", NFC, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("nfd", NFD, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("nfkc", NFKC, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("nfkd", NFKD, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("no", NO, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("none", NONE, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("normalize", NORMALIZE, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("normalized", NORMALIZED, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("not", NOT, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("nothing", NOTHING, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("notify", NOTIFY, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("notnull", NOTNULL, TYPE_FUNC_NAME_KEYWORD, AS_LABEL) -PG_KEYWORD("nowait", NOWAIT, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("null", NULL_P, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("nullif", NULLIF, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("nulls", NULLS_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("numeric", NUMERIC, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("object", OBJECT_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("of", OF, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("off", OFF, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("offset", OFFSET, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("oids", OIDS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("old", OLD, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("on", ON, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("only", ONLY, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("operator", OPERATOR, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("option", OPTION, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("options", OPTIONS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("or", OR, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("order", ORDER, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("ordinality", ORDINALITY, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("others", OTHERS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("out", OUT_P, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("outer", OUTER_P, TYPE_FUNC_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("over", OVER, UNRESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("overlaps", OVERLAPS, TYPE_FUNC_NAME_KEYWORD, AS_LABEL) -PG_KEYWORD("overlay", OVERLAY, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("overriding", OVERRIDING, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("owned", OWNED, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("owner", OWNER, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("parallel", PARALLEL, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("parameter", PARAMETER, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("parser", PARSER, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("partial", PARTIAL, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("partition", PARTITION, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("passing", PASSING, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("password", PASSWORD, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("placing", PLACING, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("plans", PLANS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("policy", POLICY, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("position", POSITION, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("preceding", PRECEDING, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("precision", PRECISION, COL_NAME_KEYWORD, AS_LABEL) -PG_KEYWORD("prepare", PREPARE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("prepared", PREPARED, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("preserve", PRESERVE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("primary", PRIMARY, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("prior", PRIOR, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("privileges", PRIVILEGES, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("procedural", PROCEDURAL, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("procedure", PROCEDURE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("procedures", PROCEDURES, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("program", PROGRAM, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("publication", PUBLICATION, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("quote", QUOTE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("range", RANGE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("read", READ, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("real", REAL, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("reassign", REASSIGN, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("recheck", RECHECK, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("recursive", RECURSIVE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("ref", REF_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("references", REFERENCES, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("referencing", REFERENCING, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("refresh", REFRESH, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("reindex", REINDEX, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("relative", RELATIVE_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("release", RELEASE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("rename", RENAME, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("repeatable", REPEATABLE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("replace", REPLACE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("replica", REPLICA, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("reset", RESET, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("restart", RESTART, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("restrict", RESTRICT, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("return", RETURN, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("returning", RETURNING, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("returns", RETURNS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("revoke", REVOKE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("right", RIGHT, TYPE_FUNC_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("role", ROLE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("rollback", ROLLBACK, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("rollup", ROLLUP, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("routine", ROUTINE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("routines", ROUTINES, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("row", ROW, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("rows", ROWS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("rule", RULE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("savepoint", SAVEPOINT, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("schema", SCHEMA, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("schemas", SCHEMAS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("scroll", SCROLL, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("search", SEARCH, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("second", SECOND_P, UNRESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("security", SECURITY, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("select", SELECT, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("sequence", SEQUENCE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("sequences", SEQUENCES, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("serializable", SERIALIZABLE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("server", SERVER, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("session", SESSION, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("session_user", SESSION_USER, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("set", SET, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("setof", SETOF, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("sets", SETS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("share", SHARE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("show", SHOW, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("similar", SIMILAR, TYPE_FUNC_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("simple", SIMPLE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("skip", SKIP, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("smallint", SMALLINT, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("snapshot", SNAPSHOT, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("some", SOME, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("sql", SQL_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("stable", STABLE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("standalone", STANDALONE_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("start", START, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("statement", STATEMENT, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("statistics", STATISTICS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("stdin", STDIN, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("stdout", STDOUT, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("storage", STORAGE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("stored", STORED, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("strict", STRICT_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("strip", STRIP_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("subscription", SUBSCRIPTION, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("substring", SUBSTRING, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("support", SUPPORT, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("symmetric", SYMMETRIC, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("sysid", SYSID, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("system", SYSTEM_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("table", TABLE, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("tables", TABLES, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("tablesample", TABLESAMPLE, TYPE_FUNC_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("tablespace", TABLESPACE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("temp", TEMP, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("template", TEMPLATE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("temporary", TEMPORARY, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("text", TEXT_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("then", THEN, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("ties", TIES, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("time", TIME, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("timestamp", TIMESTAMP, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("to", TO, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("trailing", TRAILING, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("transaction", TRANSACTION, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("transform", TRANSFORM, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("treat", TREAT, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("trigger", TRIGGER, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("trim", TRIM, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("true", TRUE_P, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("truncate", TRUNCATE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("trusted", TRUSTED, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("type", TYPE_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("types", TYPES_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("uescape", UESCAPE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("unbounded", UNBOUNDED, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("uncommitted", UNCOMMITTED, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("unencrypted", UNENCRYPTED, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("union", UNION, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("unique", UNIQUE, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("unknown", UNKNOWN, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("unlisten", UNLISTEN, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("unlogged", UNLOGGED, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("until", UNTIL, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("update", UPDATE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("user", USER, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("using", USING, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("vacuum", VACUUM, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("valid", VALID, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("validate", VALIDATE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("validator", VALIDATOR, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("value", VALUE_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("values", VALUES, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("varchar", VARCHAR, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("variadic", VARIADIC, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("varying", VARYING, UNRESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("verbose", VERBOSE, TYPE_FUNC_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("version", VERSION_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("view", VIEW, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("views", VIEWS, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("volatile", VOLATILE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("when", WHEN, RESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("where", WHERE, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("whitespace", WHITESPACE_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("window", WINDOW, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("with", WITH, RESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("within", WITHIN, UNRESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("without", WITHOUT, UNRESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("work", WORK, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("wrapper", WRAPPER, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("write", WRITE, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("xml", XML_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("xmlattributes", XMLATTRIBUTES, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("xmlconcat", XMLCONCAT, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("xmlelement", XMLELEMENT, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("xmlexists", XMLEXISTS, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("xmlforest", XMLFOREST, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("xmlnamespaces", XMLNAMESPACES, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("xmlparse", XMLPARSE, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("xmlpi", XMLPI, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("xmlroot", XMLROOT, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("xmlserialize", XMLSERIALIZE, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("xmltable", XMLTABLE, COL_NAME_KEYWORD, BARE_LABEL) -PG_KEYWORD("year", YEAR_P, UNRESERVED_KEYWORD, AS_LABEL) -PG_KEYWORD("yes", YES_P, UNRESERVED_KEYWORD, BARE_LABEL) -PG_KEYWORD("zone", ZONE, UNRESERVED_KEYWORD, BARE_LABEL) diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_agg.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_agg.h deleted file mode 100644 index c56822f64..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_agg.h +++ /dev/null @@ -1,63 +0,0 @@ -/*------------------------------------------------------------------------- - * - * parse_agg.h - * handle aggregates and window functions in parser - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/parser/parse_agg.h - * - *------------------------------------------------------------------------- - */ -#ifndef PARSE_AGG_H -#define PARSE_AGG_H - -#include "parser/parse_node.h" - -extern void transformAggregateCall(ParseState *pstate, Aggref *agg, - List *args, List *aggorder, - bool agg_distinct); - -extern Node *transformGroupingFunc(ParseState *pstate, GroupingFunc *g); - -extern void transformWindowFuncCall(ParseState *pstate, WindowFunc *wfunc, - WindowDef *windef); - -extern void parseCheckAggregates(ParseState *pstate, Query *qry); - -extern List *expand_grouping_sets(List *groupingSets, bool groupDistinct, int limit); - -extern int get_aggregate_argtypes(Aggref *aggref, Oid *inputTypes); - -extern Oid resolve_aggregate_transtype(Oid aggfuncid, - Oid aggtranstype, - Oid *inputTypes, - int numArguments); - -extern void build_aggregate_transfn_expr(Oid *agg_input_types, - int agg_num_inputs, - int agg_num_direct_inputs, - bool agg_variadic, - Oid agg_state_type, - Oid agg_input_collation, - Oid transfn_oid, - Oid invtransfn_oid, - Expr **transfnexpr, - Expr **invtransfnexpr); - -extern void build_aggregate_serialfn_expr(Oid serialfn_oid, - Expr **serialfnexpr); - -extern void build_aggregate_deserialfn_expr(Oid deserialfn_oid, - Expr **deserialfnexpr); - -extern void build_aggregate_finalfn_expr(Oid *agg_input_types, - int num_finalfn_inputs, - Oid agg_state_type, - Oid agg_result_type, - Oid agg_input_collation, - Oid finalfn_oid, - Expr **finalfnexpr); - -#endif /* PARSE_AGG_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_coerce.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_coerce.h deleted file mode 100644 index b105c7da9..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_coerce.h +++ /dev/null @@ -1,100 +0,0 @@ -/*------------------------------------------------------------------------- - * - * parse_coerce.h - * Routines for type coercion. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/parser/parse_coerce.h - * - *------------------------------------------------------------------------- - */ -#ifndef PARSE_COERCE_H -#define PARSE_COERCE_H - -#include "parser/parse_node.h" - - -/* Type categories (see TYPCATEGORY_xxx symbols in catalog/pg_type.h) */ -typedef char TYPCATEGORY; - -/* Result codes for find_coercion_pathway */ -typedef enum CoercionPathType -{ - COERCION_PATH_NONE, /* failed to find any coercion pathway */ - COERCION_PATH_FUNC, /* apply the specified coercion function */ - COERCION_PATH_RELABELTYPE, /* binary-compatible cast, no function */ - COERCION_PATH_ARRAYCOERCE, /* need an ArrayCoerceExpr node */ - COERCION_PATH_COERCEVIAIO /* need a CoerceViaIO node */ -} CoercionPathType; - - -extern bool IsBinaryCoercible(Oid srctype, Oid targettype); -extern bool IsPreferredType(TYPCATEGORY category, Oid type); -extern TYPCATEGORY TypeCategory(Oid type); - -extern Node *coerce_to_target_type(ParseState *pstate, - Node *expr, Oid exprtype, - Oid targettype, int32 targettypmod, - CoercionContext ccontext, - CoercionForm cformat, - int location); -extern bool can_coerce_type(int nargs, const Oid *input_typeids, const Oid *target_typeids, - CoercionContext ccontext); -extern Node *coerce_type(ParseState *pstate, Node *node, - Oid inputTypeId, Oid targetTypeId, int32 targetTypeMod, - CoercionContext ccontext, CoercionForm cformat, int location); -extern Node *coerce_to_domain(Node *arg, Oid baseTypeId, int32 baseTypeMod, - Oid typeId, - CoercionContext ccontext, CoercionForm cformat, int location, - bool hideInputCoercion); - -extern Node *coerce_to_boolean(ParseState *pstate, Node *node, - const char *constructName); -extern Node *coerce_to_specific_type(ParseState *pstate, Node *node, - Oid targetTypeId, - const char *constructName); - -extern Node *coerce_to_specific_type_typmod(ParseState *pstate, Node *node, - Oid targetTypeId, int32 targetTypmod, - const char *constructName); - -extern int parser_coercion_errposition(ParseState *pstate, - int coerce_location, - Node *input_expr); - -extern Oid select_common_type(ParseState *pstate, List *exprs, - const char *context, Node **which_expr); -extern Node *coerce_to_common_type(ParseState *pstate, Node *node, - Oid targetTypeId, - const char *context); -extern bool verify_common_type(Oid common_type, List *exprs); - -extern int32 select_common_typmod(ParseState *pstate, List *exprs, Oid common_type); - -extern bool check_generic_type_consistency(const Oid *actual_arg_types, - const Oid *declared_arg_types, - int nargs); -extern Oid enforce_generic_type_consistency(const Oid *actual_arg_types, - Oid *declared_arg_types, - int nargs, - Oid rettype, - bool allow_poly); - -extern char *check_valid_polymorphic_signature(Oid ret_type, - const Oid *declared_arg_types, - int nargs); -extern char *check_valid_internal_signature(Oid ret_type, - const Oid *declared_arg_types, - int nargs); - -extern CoercionPathType find_coercion_pathway(Oid targetTypeId, - Oid sourceTypeId, - CoercionContext ccontext, - Oid *funcid); -extern CoercionPathType find_typmod_coercion_function(Oid typeId, - Oid *funcid); - -#endif /* PARSE_COERCE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_expr.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_expr.h deleted file mode 100644 index c8e5c57b4..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_expr.h +++ /dev/null @@ -1,25 +0,0 @@ -/*------------------------------------------------------------------------- - * - * parse_expr.h - * handle expressions in parser - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/parser/parse_expr.h - * - *------------------------------------------------------------------------- - */ -#ifndef PARSE_EXPR_H -#define PARSE_EXPR_H - -#include "parser/parse_node.h" - -/* GUC parameters */ -extern PGDLLIMPORT bool Transform_null_equals; - -extern Node *transformExpr(ParseState *pstate, Node *expr, ParseExprKind exprKind); - -extern const char *ParseExprKindName(ParseExprKind exprKind); - -#endif /* PARSE_EXPR_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_func.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_func.h deleted file mode 100644 index 8711e392a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_func.h +++ /dev/null @@ -1,74 +0,0 @@ -/*------------------------------------------------------------------------- - * - * parse_func.h - * - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/parser/parse_func.h - * - *------------------------------------------------------------------------- - */ -#ifndef PARSE_FUNC_H -#define PARSE_FUNC_H - -#include "catalog/namespace.h" -#include "parser/parse_node.h" - - -/* Result codes for func_get_detail */ -typedef enum -{ - FUNCDETAIL_NOTFOUND, /* no matching function */ - FUNCDETAIL_MULTIPLE, /* too many matching functions */ - FUNCDETAIL_NORMAL, /* found a matching regular function */ - FUNCDETAIL_PROCEDURE, /* found a matching procedure */ - FUNCDETAIL_AGGREGATE, /* found a matching aggregate function */ - FUNCDETAIL_WINDOWFUNC, /* found a matching window function */ - FUNCDETAIL_COERCION /* it's a type coercion request */ -} FuncDetailCode; - - -extern Node *ParseFuncOrColumn(ParseState *pstate, List *funcname, List *fargs, - Node *last_srf, FuncCall *fn, bool proc_call, - int location); - -extern FuncDetailCode func_get_detail(List *funcname, - List *fargs, List *fargnames, - int nargs, Oid *argtypes, - bool expand_variadic, bool expand_defaults, - bool include_out_arguments, - Oid *funcid, Oid *rettype, - bool *retset, int *nvargs, Oid *vatype, - Oid **true_typeids, List **argdefaults); - -extern int func_match_argtypes(int nargs, - Oid *input_typeids, - FuncCandidateList raw_candidates, - FuncCandidateList *candidates); - -extern FuncCandidateList func_select_candidate(int nargs, - Oid *input_typeids, - FuncCandidateList candidates); - -extern void make_fn_arguments(ParseState *pstate, - List *fargs, - Oid *actual_arg_types, - Oid *declared_arg_types); - -extern const char *funcname_signature_string(const char *funcname, int nargs, - List *argnames, const Oid *argtypes); -extern const char *func_signature_string(List *funcname, int nargs, - List *argnames, const Oid *argtypes); - -extern Oid LookupFuncName(List *funcname, int nargs, const Oid *argtypes, - bool missing_ok); -extern Oid LookupFuncWithArgs(ObjectType objtype, ObjectWithArgs *func, - bool missing_ok); - -extern void check_srf_call_placement(ParseState *pstate, Node *last_srf, - int location); - -#endif /* PARSE_FUNC_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_node.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_node.h deleted file mode 100644 index cf9c75902..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_node.h +++ /dev/null @@ -1,339 +0,0 @@ -/*------------------------------------------------------------------------- - * - * parse_node.h - * Internal definitions for parser - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/parser/parse_node.h - * - *------------------------------------------------------------------------- - */ -#ifndef PARSE_NODE_H -#define PARSE_NODE_H - -#include "nodes/parsenodes.h" -#include "utils/queryenvironment.h" -#include "utils/relcache.h" - - -/* Forward references for some structs declared below */ -typedef struct ParseState ParseState; -typedef struct ParseNamespaceItem ParseNamespaceItem; -typedef struct ParseNamespaceColumn ParseNamespaceColumn; - -/* - * Expression kinds distinguished by transformExpr(). Many of these are not - * semantically distinct so far as expression transformation goes; rather, - * we distinguish them so that context-specific error messages can be printed. - * - * Note: EXPR_KIND_OTHER is not used in the core code, but is left for use - * by extension code that might need to call transformExpr(). The core code - * will not enforce any context-driven restrictions on EXPR_KIND_OTHER - * expressions, so the caller would have to check for sub-selects, aggregates, - * window functions, SRFs, etc if those need to be disallowed. - */ -typedef enum ParseExprKind -{ - EXPR_KIND_NONE = 0, /* "not in an expression" */ - EXPR_KIND_OTHER, /* reserved for extensions */ - EXPR_KIND_JOIN_ON, /* JOIN ON */ - EXPR_KIND_JOIN_USING, /* JOIN USING */ - EXPR_KIND_FROM_SUBSELECT, /* sub-SELECT in FROM clause */ - EXPR_KIND_FROM_FUNCTION, /* function in FROM clause */ - EXPR_KIND_WHERE, /* WHERE */ - EXPR_KIND_HAVING, /* HAVING */ - EXPR_KIND_FILTER, /* FILTER */ - EXPR_KIND_WINDOW_PARTITION, /* window definition PARTITION BY */ - EXPR_KIND_WINDOW_ORDER, /* window definition ORDER BY */ - EXPR_KIND_WINDOW_FRAME_RANGE, /* window frame clause with RANGE */ - EXPR_KIND_WINDOW_FRAME_ROWS, /* window frame clause with ROWS */ - EXPR_KIND_WINDOW_FRAME_GROUPS, /* window frame clause with GROUPS */ - EXPR_KIND_SELECT_TARGET, /* SELECT target list item */ - EXPR_KIND_INSERT_TARGET, /* INSERT target list item */ - EXPR_KIND_UPDATE_SOURCE, /* UPDATE assignment source item */ - EXPR_KIND_UPDATE_TARGET, /* UPDATE assignment target item */ - EXPR_KIND_MERGE_WHEN, /* MERGE WHEN [NOT] MATCHED condition */ - EXPR_KIND_GROUP_BY, /* GROUP BY */ - EXPR_KIND_ORDER_BY, /* ORDER BY */ - EXPR_KIND_DISTINCT_ON, /* DISTINCT ON */ - EXPR_KIND_LIMIT, /* LIMIT */ - EXPR_KIND_OFFSET, /* OFFSET */ - EXPR_KIND_RETURNING, /* RETURNING */ - EXPR_KIND_VALUES, /* VALUES */ - EXPR_KIND_VALUES_SINGLE, /* single-row VALUES (in INSERT only) */ - EXPR_KIND_CHECK_CONSTRAINT, /* CHECK constraint for a table */ - EXPR_KIND_DOMAIN_CHECK, /* CHECK constraint for a domain */ - EXPR_KIND_COLUMN_DEFAULT, /* default value for a table column */ - EXPR_KIND_FUNCTION_DEFAULT, /* default parameter value for function */ - EXPR_KIND_INDEX_EXPRESSION, /* index expression */ - EXPR_KIND_INDEX_PREDICATE, /* index predicate */ - EXPR_KIND_STATS_EXPRESSION, /* extended statistics expression */ - EXPR_KIND_ALTER_COL_TRANSFORM, /* transform expr in ALTER COLUMN TYPE */ - EXPR_KIND_EXECUTE_PARAMETER, /* parameter value in EXECUTE */ - EXPR_KIND_TRIGGER_WHEN, /* WHEN condition in CREATE TRIGGER */ - EXPR_KIND_POLICY, /* USING or WITH CHECK expr in policy */ - EXPR_KIND_PARTITION_BOUND, /* partition bound expression */ - EXPR_KIND_PARTITION_EXPRESSION, /* PARTITION BY expression */ - EXPR_KIND_CALL_ARGUMENT, /* procedure argument in CALL */ - EXPR_KIND_COPY_WHERE, /* WHERE condition in COPY FROM */ - EXPR_KIND_GENERATED_COLUMN, /* generation expression for a column */ - EXPR_KIND_CYCLE_MARK, /* cycle mark value */ -} ParseExprKind; - - -/* - * Function signatures for parser hooks - */ -typedef Node *(*PreParseColumnRefHook) (ParseState *pstate, ColumnRef *cref); -typedef Node *(*PostParseColumnRefHook) (ParseState *pstate, ColumnRef *cref, Node *var); -typedef Node *(*ParseParamRefHook) (ParseState *pstate, ParamRef *pref); -typedef Node *(*CoerceParamHook) (ParseState *pstate, Param *param, - Oid targetTypeId, int32 targetTypeMod, - int location); - - -/* - * State information used during parse analysis - * - * parentParseState: NULL in a top-level ParseState. When parsing a subquery, - * links to current parse state of outer query. - * - * p_sourcetext: source string that generated the raw parsetree being - * analyzed, or NULL if not available. (The string is used only to - * generate cursor positions in error messages: we need it to convert - * byte-wise locations in parse structures to character-wise cursor - * positions.) - * - * p_rtable: list of RTEs that will become the rangetable of the query. - * Note that neither relname nor refname of these entries are necessarily - * unique; searching the rtable by name is a bad idea. - * - * p_joinexprs: list of JoinExpr nodes associated with p_rtable entries. - * This is one-for-one with p_rtable, but contains NULLs for non-join - * RTEs, and may be shorter than p_rtable if the last RTE(s) aren't joins. - * - * p_joinlist: list of join items (RangeTblRef and JoinExpr nodes) that - * will become the fromlist of the query's top-level FromExpr node. - * - * p_namespace: list of ParseNamespaceItems that represents the current - * namespace for table and column lookup. (The RTEs listed here may be just - * a subset of the whole rtable. See ParseNamespaceItem comments below.) - * - * p_lateral_active: true if we are currently parsing a LATERAL subexpression - * of this parse level. This makes p_lateral_only namespace items visible, - * whereas they are not visible when p_lateral_active is FALSE. - * - * p_ctenamespace: list of CommonTableExprs (WITH items) that are visible - * at the moment. This is entirely different from p_namespace because a CTE - * is not an RTE, rather "visibility" means you could make an RTE from it. - * - * p_future_ctes: list of CommonTableExprs (WITH items) that are not yet - * visible due to scope rules. This is used to help improve error messages. - * - * p_parent_cte: CommonTableExpr that immediately contains the current query, - * if any. - * - * p_target_relation: target relation, if query is INSERT/UPDATE/DELETE/MERGE - * - * p_target_nsitem: target relation's ParseNamespaceItem. - * - * p_is_insert: true to process assignment expressions like INSERT, false - * to process them like UPDATE. (Note this can change intra-statement, for - * cases like INSERT ON CONFLICT UPDATE.) - * - * p_windowdefs: list of WindowDefs representing WINDOW and OVER clauses. - * We collect these while transforming expressions and then transform them - * afterwards (so that any resjunk tlist items needed for the sort/group - * clauses end up at the end of the query tlist). A WindowDef's location in - * this list, counting from 1, is the winref number to use to reference it. - * - * p_expr_kind: kind of expression we're currently parsing, as per enum above; - * EXPR_KIND_NONE when not in an expression. - * - * p_next_resno: next TargetEntry.resno to assign, starting from 1. - * - * p_multiassign_exprs: partially-processed MultiAssignRef source expressions. - * - * p_locking_clause: query's FOR UPDATE/FOR SHARE clause, if any. - * - * p_locked_from_parent: true if parent query level applies FOR UPDATE/SHARE - * to this subquery as a whole. - * - * p_resolve_unknowns: resolve unknown-type SELECT output columns as type TEXT - * (this is true by default). - * - * p_hasAggs, p_hasWindowFuncs, etc: true if we've found any of the indicated - * constructs in the query. - * - * p_last_srf: the set-returning FuncExpr or OpExpr most recently found in - * the query, or NULL if none. - * - * p_pre_columnref_hook, etc: optional parser hook functions for modifying the - * interpretation of ColumnRefs and ParamRefs. - * - * p_ref_hook_state: passthrough state for the parser hook functions. - */ -struct ParseState -{ - ParseState *parentParseState; /* stack link */ - const char *p_sourcetext; /* source text, or NULL if not available */ - List *p_rtable; /* range table so far */ - List *p_joinexprs; /* JoinExprs for RTE_JOIN p_rtable entries */ - List *p_joinlist; /* join items so far (will become FromExpr - * node's fromlist) */ - List *p_namespace; /* currently-referenceable RTEs (List of - * ParseNamespaceItem) */ - bool p_lateral_active; /* p_lateral_only items visible? */ - List *p_ctenamespace; /* current namespace for common table exprs */ - List *p_future_ctes; /* common table exprs not yet in namespace */ - CommonTableExpr *p_parent_cte; /* this query's containing CTE */ - Relation p_target_relation; /* INSERT/UPDATE/DELETE/MERGE target rel */ - ParseNamespaceItem *p_target_nsitem; /* target rel's NSItem, or NULL */ - bool p_is_insert; /* process assignment like INSERT not UPDATE */ - List *p_windowdefs; /* raw representations of window clauses */ - ParseExprKind p_expr_kind; /* what kind of expression we're parsing */ - int p_next_resno; /* next targetlist resno to assign */ - List *p_multiassign_exprs; /* junk tlist entries for multiassign */ - List *p_locking_clause; /* raw FOR UPDATE/FOR SHARE info */ - bool p_locked_from_parent; /* parent has marked this subquery - * with FOR UPDATE/FOR SHARE */ - bool p_resolve_unknowns; /* resolve unknown-type SELECT outputs as - * type text */ - - QueryEnvironment *p_queryEnv; /* curr env, incl refs to enclosing env */ - - /* Flags telling about things found in the query: */ - bool p_hasAggs; - bool p_hasWindowFuncs; - bool p_hasTargetSRFs; - bool p_hasSubLinks; - bool p_hasModifyingCTE; - - Node *p_last_srf; /* most recent set-returning func/op found */ - - /* - * Optional hook functions for parser callbacks. These are null unless - * set up by the caller of make_parsestate. - */ - PreParseColumnRefHook p_pre_columnref_hook; - PostParseColumnRefHook p_post_columnref_hook; - ParseParamRefHook p_paramref_hook; - CoerceParamHook p_coerce_param_hook; - void *p_ref_hook_state; /* common passthrough link for above */ -}; - -/* - * An element of a namespace list. - * - * p_names contains the table name and column names exposed by this nsitem. - * (Typically it's equal to p_rte->eref, but for a JOIN USING alias it's - * equal to p_rte->join_using_alias. Since the USING columns will be the - * join's first N columns, the net effect is just that we expose only those - * join columns via this nsitem.) - * - * p_rte and p_rtindex link to the underlying rangetable entry. - * - * The p_nscolumns array contains info showing how to construct Vars - * referencing the names appearing in the p_names->colnames list. - * - * Namespace items with p_rel_visible set define which RTEs are accessible by - * qualified names, while those with p_cols_visible set define which RTEs are - * accessible by unqualified names. These sets are different because a JOIN - * without an alias does not hide the contained tables (so they must be - * visible for qualified references) but it does hide their columns - * (unqualified references to the columns refer to the JOIN, not the member - * tables, so we must not complain that such a reference is ambiguous). - * Various special RTEs such as NEW/OLD for rules may also appear with only - * one flag set. - * - * While processing the FROM clause, namespace items may appear with - * p_lateral_only set, meaning they are visible only to LATERAL - * subexpressions. (The pstate's p_lateral_active flag tells whether we are - * inside such a subexpression at the moment.) If p_lateral_ok is not set, - * it's an error to actually use such a namespace item. One might think it - * would be better to just exclude such items from visibility, but the wording - * of SQL:2008 requires us to do it this way. We also use p_lateral_ok to - * forbid LATERAL references to an UPDATE/DELETE target table. - * - * At no time should a namespace list contain two entries that conflict - * according to the rules in checkNameSpaceConflicts; but note that those - * are more complicated than "must have different alias names", so in practice - * code searching a namespace list has to check for ambiguous references. - */ -struct ParseNamespaceItem -{ - Alias *p_names; /* Table and column names */ - RangeTblEntry *p_rte; /* The relation's rangetable entry */ - int p_rtindex; /* The relation's index in the rangetable */ - /* array of same length as p_names->colnames: */ - ParseNamespaceColumn *p_nscolumns; /* per-column data */ - bool p_rel_visible; /* Relation name is visible? */ - bool p_cols_visible; /* Column names visible as unqualified refs? */ - bool p_lateral_only; /* Is only visible to LATERAL expressions? */ - bool p_lateral_ok; /* If so, does join type allow use? */ -}; - -/* - * Data about one column of a ParseNamespaceItem. - * - * We track the info needed to construct a Var referencing the column - * (but only for user-defined columns; system column references and - * whole-row references are handled separately). - * - * p_varno and p_varattno identify the semantic referent, which is a - * base-relation column unless the reference is to a join USING column that - * isn't semantically equivalent to either join input column (because it is a - * FULL join or the input column requires a type coercion). In those cases - * p_varno and p_varattno refer to the JOIN RTE. - * - * p_varnosyn and p_varattnosyn are either identical to p_varno/p_varattno, - * or they specify the column's position in an aliased JOIN RTE that hides - * the semantic referent RTE's refname. (That could be either the JOIN RTE - * in which this ParseNamespaceColumn entry exists, or some lower join level.) - * - * If an RTE contains a dropped column, its ParseNamespaceColumn struct - * is all-zeroes. (Conventionally, test for p_varno == 0 to detect this.) - */ -struct ParseNamespaceColumn -{ - Index p_varno; /* rangetable index */ - AttrNumber p_varattno; /* attribute number of the column */ - Oid p_vartype; /* pg_type OID */ - int32 p_vartypmod; /* type modifier value */ - Oid p_varcollid; /* OID of collation, or InvalidOid */ - Index p_varnosyn; /* rangetable index of syntactic referent */ - AttrNumber p_varattnosyn; /* attribute number of syntactic referent */ - bool p_dontexpand; /* not included in star expansion */ -}; - -/* Support for parser_errposition_callback function */ -typedef struct ParseCallbackState -{ - ParseState *pstate; - int location; - ErrorContextCallback errcallback; -} ParseCallbackState; - - -extern ParseState *make_parsestate(ParseState *parentParseState); -extern void free_parsestate(ParseState *pstate); -extern int parser_errposition(ParseState *pstate, int location); - -extern void setup_parser_errposition_callback(ParseCallbackState *pcbstate, - ParseState *pstate, int location); -extern void cancel_parser_errposition_callback(ParseCallbackState *pcbstate); - -extern void transformContainerType(Oid *containerType, int32 *containerTypmod); - -extern SubscriptingRef *transformContainerSubscripts(ParseState *pstate, - Node *containerBase, - Oid containerType, - int32 containerTypMod, - List *indirection, - bool isAssignment); -extern Const *make_const(ParseState *pstate, A_Const *aconst); - -#endif /* PARSE_NODE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_oper.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_oper.h deleted file mode 100644 index e15b62290..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_oper.h +++ /dev/null @@ -1,65 +0,0 @@ -/*------------------------------------------------------------------------- - * - * parse_oper.h - * handle operator things for parser - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/parser/parse_oper.h - * - *------------------------------------------------------------------------- - */ -#ifndef PARSE_OPER_H -#define PARSE_OPER_H - -#include "access/htup.h" -#include "nodes/parsenodes.h" -#include "parser/parse_node.h" - - -typedef HeapTuple Operator; - -/* Routines to look up an operator given name and exact input type(s) */ -extern Oid LookupOperName(ParseState *pstate, List *opername, - Oid oprleft, Oid oprright, - bool noError, int location); -extern Oid LookupOperWithArgs(ObjectWithArgs *oper, bool noError); - -/* Routines to find operators matching a name and given input types */ -/* NB: the selected operator may require coercion of the input types! */ -extern Operator oper(ParseState *pstate, List *op, Oid arg1, Oid arg2, - bool noError, int location); -extern Operator left_oper(ParseState *pstate, List *op, Oid arg, - bool noError, int location); - -/* Routines to find operators that DO NOT require coercion --- ie, their */ -/* input types are either exactly as given, or binary-compatible */ -extern Operator compatible_oper(ParseState *pstate, List *op, - Oid arg1, Oid arg2, - bool noError, int location); - -/* currently no need for compatible_left_oper/compatible_right_oper */ - -/* Routines for identifying "<", "=", ">" operators for a type */ -extern void get_sort_group_operators(Oid argtype, - bool needLT, bool needEQ, bool needGT, - Oid *ltOpr, Oid *eqOpr, Oid *gtOpr, - bool *isHashable); - -/* Convenience routines for common calls on the above */ -extern Oid compatible_oper_opid(List *op, Oid arg1, Oid arg2, bool noError); - -/* Extract operator OID or underlying-function OID from an Operator tuple */ -extern Oid oprid(Operator op); -extern Oid oprfuncid(Operator op); - -/* Build expression tree for an operator invocation */ -extern Expr *make_op(ParseState *pstate, List *opname, - Node *ltree, Node *rtree, Node *last_srf, int location); -extern Expr *make_scalar_array_op(ParseState *pstate, List *opname, - bool useOr, - Node *ltree, Node *rtree, int location); - -#endif /* PARSE_OPER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_relation.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_relation.h deleted file mode 100644 index de21c3c64..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_relation.h +++ /dev/null @@ -1,124 +0,0 @@ -/*------------------------------------------------------------------------- - * - * parse_relation.h - * prototypes for parse_relation.c. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/parser/parse_relation.h - * - *------------------------------------------------------------------------- - */ -#ifndef PARSE_RELATION_H -#define PARSE_RELATION_H - -#include "parser/parse_node.h" - - -extern ParseNamespaceItem *refnameNamespaceItem(ParseState *pstate, - const char *schemaname, - const char *refname, - int location, - int *sublevels_up); -extern CommonTableExpr *scanNameSpaceForCTE(ParseState *pstate, - const char *refname, - Index *ctelevelsup); -extern bool scanNameSpaceForENR(ParseState *pstate, const char *refname); -extern void checkNameSpaceConflicts(ParseState *pstate, List *namespace1, - List *namespace2); -extern ParseNamespaceItem *GetNSItemByRangeTablePosn(ParseState *pstate, - int varno, - int sublevels_up); -extern RangeTblEntry *GetRTEByRangeTablePosn(ParseState *pstate, - int varno, - int sublevels_up); -extern CommonTableExpr *GetCTEForRTE(ParseState *pstate, RangeTblEntry *rte, - int rtelevelsup); -extern Node *scanNSItemForColumn(ParseState *pstate, ParseNamespaceItem *nsitem, - int sublevels_up, const char *colname, - int location); -extern Node *colNameToVar(ParseState *pstate, const char *colname, bool localonly, - int location); -extern void markVarForSelectPriv(ParseState *pstate, Var *var); -extern Relation parserOpenTable(ParseState *pstate, const RangeVar *relation, - int lockmode); -extern ParseNamespaceItem *addRangeTableEntry(ParseState *pstate, - RangeVar *relation, - Alias *alias, - bool inh, - bool inFromCl); -extern ParseNamespaceItem *addRangeTableEntryForRelation(ParseState *pstate, - Relation rel, - int lockmode, - Alias *alias, - bool inh, - bool inFromCl); -extern ParseNamespaceItem *addRangeTableEntryForSubquery(ParseState *pstate, - Query *subquery, - Alias *alias, - bool lateral, - bool inFromCl); -extern ParseNamespaceItem *addRangeTableEntryForFunction(ParseState *pstate, - List *funcnames, - List *funcexprs, - List *coldeflists, - RangeFunction *rangefunc, - bool lateral, - bool inFromCl); -extern ParseNamespaceItem *addRangeTableEntryForValues(ParseState *pstate, - List *exprs, - List *coltypes, - List *coltypmods, - List *colcollations, - Alias *alias, - bool lateral, - bool inFromCl); -extern ParseNamespaceItem *addRangeTableEntryForTableFunc(ParseState *pstate, - TableFunc *tf, - Alias *alias, - bool lateral, - bool inFromCl); -extern ParseNamespaceItem *addRangeTableEntryForJoin(ParseState *pstate, - List *colnames, - ParseNamespaceColumn *nscolumns, - JoinType jointype, - int nummergedcols, - List *aliasvars, - List *leftcols, - List *rightcols, - Alias *joinalias, - Alias *alias, - bool inFromCl); -extern ParseNamespaceItem *addRangeTableEntryForCTE(ParseState *pstate, - CommonTableExpr *cte, - Index levelsup, - RangeVar *rv, - bool inFromCl); -extern ParseNamespaceItem *addRangeTableEntryForENR(ParseState *pstate, - RangeVar *rv, - bool inFromCl); -extern bool isLockedRefname(ParseState *pstate, const char *refname); -extern void addNSItemToQuery(ParseState *pstate, ParseNamespaceItem *nsitem, - bool addToJoinList, - bool addToRelNameSpace, bool addToVarNameSpace); -extern void errorMissingRTE(ParseState *pstate, RangeVar *relation) pg_attribute_noreturn(); -extern void errorMissingColumn(ParseState *pstate, - const char *relname, const char *colname, int location) pg_attribute_noreturn(); -extern void expandRTE(RangeTblEntry *rte, int rtindex, int sublevels_up, - int location, bool include_dropped, - List **colnames, List **colvars); -extern List *expandNSItemVars(ParseNamespaceItem *nsitem, - int sublevels_up, int location, - List **colnames); -extern List *expandNSItemAttrs(ParseState *pstate, ParseNamespaceItem *nsitem, - int sublevels_up, bool require_col_privs, - int location); -extern int attnameAttNum(Relation rd, const char *attname, bool sysColOK); -extern const NameData *attnumAttName(Relation rd, int attid); -extern Oid attnumTypeId(Relation rd, int attid); -extern Oid attnumCollationId(Relation rd, int attid); -extern bool isQueryUsingTempRelation(Query *query); - -#endif /* PARSE_RELATION_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_type.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_type.h deleted file mode 100644 index 4e5624d72..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parse_type.h +++ /dev/null @@ -1,60 +0,0 @@ -/*------------------------------------------------------------------------- - * - * parse_type.h - * handle type operations for parser - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/parser/parse_type.h - * - *------------------------------------------------------------------------- - */ -#ifndef PARSE_TYPE_H -#define PARSE_TYPE_H - -#include "access/htup.h" -#include "parser/parse_node.h" - - -typedef HeapTuple Type; - -extern Type LookupTypeName(ParseState *pstate, const TypeName *typeName, - int32 *typmod_p, bool missing_ok); -extern Type LookupTypeNameExtended(ParseState *pstate, - const TypeName *typeName, int32 *typmod_p, - bool temp_ok, bool missing_ok); -extern Oid LookupTypeNameOid(ParseState *pstate, const TypeName *typeName, - bool missing_ok); -extern Type typenameType(ParseState *pstate, const TypeName *typeName, - int32 *typmod_p); -extern Oid typenameTypeId(ParseState *pstate, const TypeName *typeName); -extern void typenameTypeIdAndMod(ParseState *pstate, const TypeName *typeName, - Oid *typeid_p, int32 *typmod_p); - -extern char *TypeNameToString(const TypeName *typeName); -extern char *TypeNameListToString(List *typenames); - -extern Oid LookupCollation(ParseState *pstate, List *collnames, int location); -extern Oid GetColumnDefCollation(ParseState *pstate, ColumnDef *coldef, Oid typeOid); - -extern Type typeidType(Oid id); - -extern Oid typeTypeId(Type tp); -extern int16 typeLen(Type t); -extern bool typeByVal(Type t); -extern char *typeTypeName(Type t); -extern Oid typeTypeRelid(Type typ); -extern Oid typeTypeCollation(Type typ); -extern Datum stringTypeDatum(Type tp, char *string, int32 atttypmod); - -extern Oid typeidTypeRelid(Oid type_id); -extern Oid typeOrDomainTypeRelid(Oid type_id); - -extern TypeName *typeStringToTypeName(const char *str); -extern void parseTypeString(const char *str, Oid *typeid_p, int32 *typmod_p, bool missing_ok); - -/* true if typeid is composite, or domain over composite, but not RECORD */ -#define ISCOMPLEX(typeid) (typeOrDomainTypeRelid(typeid) != InvalidOid) - -#endif /* PARSE_TYPE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parser.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parser.h deleted file mode 100644 index e1dc5c5b3..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parser.h +++ /dev/null @@ -1,68 +0,0 @@ -/*------------------------------------------------------------------------- - * - * parser.h - * Definitions for the "raw" parser (flex and bison phases only) - * - * This is the external API for the raw lexing/parsing functions. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/parser/parser.h - * - *------------------------------------------------------------------------- - */ -#ifndef PARSER_H -#define PARSER_H - -#include "nodes/parsenodes.h" - - -/* - * RawParseMode determines the form of the string that raw_parser() accepts: - * - * RAW_PARSE_DEFAULT: parse a semicolon-separated list of SQL commands, - * and return a List of RawStmt nodes. - * - * RAW_PARSE_TYPE_NAME: parse a type name, and return a one-element List - * containing a TypeName node. - * - * RAW_PARSE_PLPGSQL_EXPR: parse a PL/pgSQL expression, and return - * a one-element List containing a RawStmt node. - * - * RAW_PARSE_PLPGSQL_ASSIGNn: parse a PL/pgSQL assignment statement, - * and return a one-element List containing a RawStmt node. "n" - * gives the number of dotted names comprising the target ColumnRef. - */ -typedef enum -{ - RAW_PARSE_DEFAULT = 0, - RAW_PARSE_TYPE_NAME, - RAW_PARSE_PLPGSQL_EXPR, - RAW_PARSE_PLPGSQL_ASSIGN1, - RAW_PARSE_PLPGSQL_ASSIGN2, - RAW_PARSE_PLPGSQL_ASSIGN3 -} RawParseMode; - -/* Values for the backslash_quote GUC */ -typedef enum -{ - BACKSLASH_QUOTE_OFF, - BACKSLASH_QUOTE_ON, - BACKSLASH_QUOTE_SAFE_ENCODING -} BackslashQuoteType; - -/* GUC variables in scan.l (every one of these is a bad idea :-() */ -extern PGDLLIMPORT __thread int backslash_quote; -extern PGDLLIMPORT __thread bool escape_string_warning; -extern PGDLLIMPORT __thread bool standard_conforming_strings; - - -/* Primary entry point for the raw parsing functions */ -extern List *raw_parser(const char *str, RawParseMode mode); - -/* Utility functions exported by gram.y (perhaps these should be elsewhere) */ -extern List *SystemFuncName(char *name); -extern TypeName *SystemTypeName(char *name); - -#endif /* PARSER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parsetree.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parsetree.h deleted file mode 100644 index 3a1afffd1..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/parsetree.h +++ /dev/null @@ -1,61 +0,0 @@ -/*------------------------------------------------------------------------- - * - * parsetree.h - * Routines to access various components and subcomponents of - * parse trees. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/parser/parsetree.h - * - *------------------------------------------------------------------------- - */ -#ifndef PARSETREE_H -#define PARSETREE_H - -#include "nodes/parsenodes.h" - - -/* ---------------- - * range table operations - * ---------------- - */ - -/* - * rt_fetch - * - * NB: this will crash and burn if handed an out-of-range RT index - */ -#define rt_fetch(rangetable_index, rangetable) \ - ((RangeTblEntry *) list_nth(rangetable, (rangetable_index)-1)) - -/* - * Given an RTE and an attribute number, return the appropriate - * variable name or alias for that attribute of that RTE. - */ -extern char *get_rte_attribute_name(RangeTblEntry *rte, AttrNumber attnum); - -/* - * Check whether an attribute of an RTE has been dropped - */ -extern bool get_rte_attribute_is_dropped(RangeTblEntry *rte, - AttrNumber attnum); - - -/* ---------------- - * target list operations - * ---------------- - */ - -extern TargetEntry *get_tle_by_resno(List *tlist, AttrNumber resno); - -/* ---------------- - * FOR UPDATE/SHARE info - * ---------------- - */ - -extern RowMarkClause *get_parse_rowmark(Query *qry, Index rtindex); - -#endif /* PARSETREE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/scanner.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/scanner.h deleted file mode 100644 index 2acd7e052..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/scanner.h +++ /dev/null @@ -1,152 +0,0 @@ -/*------------------------------------------------------------------------- - * - * scanner.h - * API for the core scanner (flex machine) - * - * The core scanner is also used by PL/pgSQL, so we provide a public API - * for it. However, the rest of the backend is only expected to use the - * higher-level API provided by parser.h. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/parser/scanner.h - * - *------------------------------------------------------------------------- - */ - -#ifndef SCANNER_H -#define SCANNER_H - -#include "common/keywords.h" - -/* - * The scanner returns extra data about scanned tokens in this union type. - * Note that this is a subset of the fields used in YYSTYPE of the bison - * parsers built atop the scanner. - */ -typedef union core_YYSTYPE -{ - int ival; /* for integer literals */ - char *str; /* for identifiers and non-integer literals */ - const char *keyword; /* canonical spelling of keywords */ -} core_YYSTYPE; - -/* - * We track token locations in terms of byte offsets from the start of the - * source string, not the column number/line number representation that - * bison uses by default. Also, to minimize overhead we track only one - * location (usually the first token location) for each construct, not - * the beginning and ending locations as bison does by default. It's - * therefore sufficient to make YYLTYPE an int. - */ -#define YYLTYPE int - -/* - * Another important component of the scanner's API is the token code numbers. - * However, those are not defined in this file, because bison insists on - * defining them for itself. The token codes used by the core scanner are - * the ASCII characters plus these: - * %token IDENT UIDENT FCONST SCONST USCONST BCONST XCONST Op - * %token ICONST PARAM - * %token TYPECAST DOT_DOT COLON_EQUALS EQUALS_GREATER - * %token LESS_EQUALS GREATER_EQUALS NOT_EQUALS - * The above token definitions *must* be the first ones declared in any - * bison parser built atop this scanner, so that they will have consistent - * numbers assigned to them (specifically, IDENT = 258 and so on). - */ - -/* - * The YY_EXTRA data that a flex scanner allows us to pass around. - * Private state needed by the core scanner goes here. Note that the actual - * yy_extra struct may be larger and have this as its first component, thus - * allowing the calling parser to keep some fields of its own in YY_EXTRA. - */ -typedef struct core_yy_extra_type -{ - /* - * The string the scanner is physically scanning. We keep this mainly so - * that we can cheaply compute the offset of the current token (yytext). - */ - char *scanbuf; - Size scanbuflen; - - /* - * The keyword list to use, and the associated grammar token codes. - */ - const ScanKeywordList *keywordlist; - const uint16 *keyword_tokens; - - /* - * Scanner settings to use. These are initialized from the corresponding - * GUC variables by scanner_init(). Callers can modify them after - * scanner_init() if they don't want the scanner's behavior to follow the - * prevailing GUC settings. - */ - int backslash_quote; - bool escape_string_warning; - bool standard_conforming_strings; - - /* - * literalbuf is used to accumulate literal values when multiple rules are - * needed to parse a single literal. Call startlit() to reset buffer to - * empty, addlit() to add text. NOTE: the string in literalbuf is NOT - * necessarily null-terminated, but there always IS room to add a trailing - * null at offset literallen. We store a null only when we need it. - */ - char *literalbuf; /* palloc'd expandable buffer */ - int literallen; /* actual current string length */ - int literalalloc; /* current allocated buffer size */ - - /* - * Random assorted scanner state. - */ - int state_before_str_stop; /* start cond. before end quote */ - int xcdepth; /* depth of nesting in slash-star comments */ - char *dolqstart; /* current $foo$ quote start string */ - YYLTYPE save_yylloc; /* one-element stack for PUSH_YYLLOC() */ - - /* first part of UTF16 surrogate pair for Unicode escapes */ - int32 utf16_first_part; - - /* state variables for literal-lexing warnings */ - bool warn_on_first_escape; - bool saw_non_ascii; - - int yyllocend; -} core_yy_extra_type; - -/* - * The type of yyscanner is opaque outside scan.l. - */ -typedef void *core_yyscan_t; - -/* Support for scanner_errposition_callback function */ -typedef struct ScannerCallbackState -{ - core_yyscan_t yyscanner; - int location; - ErrorContextCallback errcallback; -} ScannerCallbackState; - - -/* Constant data exported from parser/scan.l */ -extern PGDLLIMPORT const uint16 ScanKeywordTokens[]; - -/* Entry points in parser/scan.l */ -extern core_yyscan_t scanner_init(const char *str, - core_yy_extra_type *yyext, - const ScanKeywordList *keywordlist, - const uint16 *keyword_tokens); -extern void scanner_finish(core_yyscan_t yyscanner); -extern int core_yylex(core_YYSTYPE *lvalp, YYLTYPE *llocp, - core_yyscan_t yyscanner); -extern int scanner_errposition(int location, core_yyscan_t yyscanner); -extern void setup_scanner_errposition_callback(ScannerCallbackState *scbstate, - core_yyscan_t yyscanner, - int location); -extern void cancel_scanner_errposition_callback(ScannerCallbackState *scbstate); -extern void scanner_yyerror(const char *message, core_yyscan_t yyscanner) pg_attribute_noreturn(); - -#endif /* SCANNER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/scansup.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/scansup.h deleted file mode 100644 index ff65224bf..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/parser/scansup.h +++ /dev/null @@ -1,27 +0,0 @@ -/*------------------------------------------------------------------------- - * - * scansup.h - * scanner support routines used by the core lexer - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/parser/scansup.h - * - *------------------------------------------------------------------------- - */ - -#ifndef SCANSUP_H -#define SCANSUP_H - -extern char *downcase_truncate_identifier(const char *ident, int len, - bool warn); - -extern char *downcase_identifier(const char *ident, int len, - bool warn, bool truncate); - -extern void truncate_identifier(char *ident, int len, bool warn); - -extern bool scanner_isspace(char ch); - -#endif /* SCANSUP_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/partitioning/partdefs.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/partitioning/partdefs.h deleted file mode 100644 index aed62eaeb..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/partitioning/partdefs.h +++ /dev/null @@ -1,26 +0,0 @@ -/*------------------------------------------------------------------------- - * - * partdefs.h - * Base definitions for partitioned table handling - * - * Copyright (c) 2007-2022, PostgreSQL Global Development Group - * - * src/include/partitioning/partdefs.h - * - *------------------------------------------------------------------------- - */ -#ifndef PARTDEFS_H -#define PARTDEFS_H - - -typedef struct PartitionBoundInfoData *PartitionBoundInfo; - -typedef struct PartitionKeyData *PartitionKey; - -typedef struct PartitionBoundSpec PartitionBoundSpec; - -typedef struct PartitionDescData *PartitionDesc; - -typedef struct PartitionDirectoryData *PartitionDirectory; - -#endif /* PARTDEFS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_config.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_config.h deleted file mode 100644 index 226809b3a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_config.h +++ /dev/null @@ -1,1037 +0,0 @@ -/* src/include/pg_config.h. Generated from pg_config.h.in by configure. */ -/* src/include/pg_config.h.in. Generated from configure.ac by autoheader. */ - -/* Define if building universal (internal helper macro) */ -/* #undef AC_APPLE_UNIVERSAL_BUILD */ - -/* The normal alignment of `double', in bytes. */ -#define ALIGNOF_DOUBLE 8 - -/* The normal alignment of `int', in bytes. */ -#define ALIGNOF_INT 4 - -/* The normal alignment of `long', in bytes. */ -#define ALIGNOF_LONG 8 - -/* The normal alignment of `long long int', in bytes. */ -/* #undef ALIGNOF_LONG_LONG_INT */ - -/* The normal alignment of `PG_INT128_TYPE', in bytes. */ -#define ALIGNOF_PG_INT128_TYPE 16 - -/* The normal alignment of `short', in bytes. */ -#define ALIGNOF_SHORT 2 - -/* Size of a disk block --- this also limits the size of a tuple. You can set - it bigger if you need bigger tuples (although TOAST should reduce the need - to have large tuples, since fields can be spread across multiple tuples). - BLCKSZ must be a power of 2. The maximum possible value of BLCKSZ is - currently 2^15 (32768). This is determined by the 15-bit widths of the - lp_off and lp_len fields in ItemIdData (see include/storage/itemid.h). - Changing BLCKSZ requires an initdb. */ -#define BLCKSZ 8192 - -/* Saved arguments from configure */ -#define CONFIGURE_ARGS " '--without-readline' '--without-zlib'" - -/* Define to the default TCP port number on which the server listens and to - which clients will try to connect. This can be overridden at run-time, but - it's convenient if your clients have the right default compiled in. - (--with-pgport=PORTNUM) */ -#define DEF_PGPORT 5432 - -/* Define to the default TCP port number as a string constant. */ -#define DEF_PGPORT_STR "5432" - -/* Define to the file name extension of dynamically-loadable modules. */ -#define DLSUFFIX ".so" - -/* Define to build with GSSAPI support. (--with-gssapi) */ -/* #undef ENABLE_GSS */ - -/* Define to 1 if you want National Language Support. (--enable-nls) */ -/* #undef ENABLE_NLS */ - -/* Define to 1 to build client libraries as thread-safe code. - (--enable-thread-safety) */ -#define ENABLE_THREAD_SAFETY 1 - -/* Define to 1 if gettimeofday() takes only 1 argument. */ -/* #undef GETTIMEOFDAY_1ARG */ - -#ifdef GETTIMEOFDAY_1ARG -# define gettimeofday(a,b) gettimeofday(a) -#endif - -/* Define to 1 if you have the `append_history' function. */ -/* #undef HAVE_APPEND_HISTORY */ - -/* Define to 1 if you have the `ASN1_STRING_get0_data' function. */ -/* #undef HAVE_ASN1_STRING_GET0_DATA */ - -/* Define to 1 if you want to use atomics if available. */ -#define HAVE_ATOMICS 1 - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_ATOMIC_H */ - -/* Define to 1 if you have the `backtrace_symbols' function. */ -#define HAVE_BACKTRACE_SYMBOLS 1 - -/* Define to 1 if you have the `BIO_get_data' function. */ -/* #undef HAVE_BIO_GET_DATA */ - -/* Define to 1 if you have the `BIO_meth_new' function. */ -/* #undef HAVE_BIO_METH_NEW */ - -/* Define to 1 if you have the `clock_gettime' function. */ -#define HAVE_CLOCK_GETTIME 1 - -/* Define to 1 if your compiler handles computed gotos. */ -#define HAVE_COMPUTED_GOTO 1 - -/* Define to 1 if you have the `copyfile' function. */ -#define HAVE_COPYFILE 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_COPYFILE_H 1 - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_CRTDEFS_H */ - -/* Define to 1 if you have the `CRYPTO_lock' function. */ -/* #undef HAVE_CRYPTO_LOCK */ - -/* Define to 1 if you have the declaration of `fdatasync', and to 0 if you - don't. */ -#define HAVE_DECL_FDATASYNC 0 - -/* Define to 1 if you have the declaration of `F_FULLFSYNC', and to 0 if you - don't. */ -#define HAVE_DECL_F_FULLFSYNC 1 - -/* Define to 1 if you have the declaration of - `LLVMCreateGDBRegistrationListener', and to 0 if you don't. */ -/* #undef HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER */ - -/* Define to 1 if you have the declaration of - `LLVMCreatePerfJITEventListener', and to 0 if you don't. */ -/* #undef HAVE_DECL_LLVMCREATEPERFJITEVENTLISTENER */ - -/* Define to 1 if you have the declaration of `LLVMGetHostCPUFeatures', and to - 0 if you don't. */ -/* #undef HAVE_DECL_LLVMGETHOSTCPUFEATURES */ - -/* Define to 1 if you have the declaration of `LLVMGetHostCPUName', and to 0 - if you don't. */ -/* #undef HAVE_DECL_LLVMGETHOSTCPUNAME */ - -/* Define to 1 if you have the declaration of `LLVMOrcGetSymbolAddressIn', and - to 0 if you don't. */ -/* #undef HAVE_DECL_LLVMORCGETSYMBOLADDRESSIN */ - -/* Define to 1 if you have the declaration of `posix_fadvise', and to 0 if you - don't. */ -#define HAVE_DECL_POSIX_FADVISE 0 - -/* Define to 1 if you have the declaration of `preadv', and to 0 if you don't. - */ -#define HAVE_DECL_PREADV 1 - -/* Define to 1 if you have the declaration of `pwritev', and to 0 if you - don't. */ -#define HAVE_DECL_PWRITEV 1 - -/* Define to 1 if you have the declaration of `RTLD_GLOBAL', and to 0 if you - don't. */ -#define HAVE_DECL_RTLD_GLOBAL 1 - -/* Define to 1 if you have the declaration of `RTLD_NOW', and to 0 if you - don't. */ -#define HAVE_DECL_RTLD_NOW 1 - -/* Define to 1 if you have the declaration of `sigwait', and to 0 if you - don't. */ -#define HAVE_DECL_SIGWAIT 1 - -/* Define to 1 if you have the declaration of `strlcat', and to 0 if you - don't. */ -#define HAVE_DECL_STRLCAT 1 - -/* Define to 1 if you have the declaration of `strlcpy', and to 0 if you - don't. */ -#define HAVE_DECL_STRLCPY 1 - -/* Define to 1 if you have the declaration of `strnlen', and to 0 if you - don't. */ -#define HAVE_DECL_STRNLEN 1 - -/* Define to 1 if you have the declaration of `strtoll', and to 0 if you - don't. */ -#define HAVE_DECL_STRTOLL 1 - -/* Define to 1 if you have the declaration of `strtoull', and to 0 if you - don't. */ -#define HAVE_DECL_STRTOULL 1 - -/* Define to 1 if you have the `dlopen' function. */ -#define HAVE_DLOPEN 1 - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_EDITLINE_HISTORY_H */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_EDITLINE_READLINE_H */ - -/* Define to 1 if you have the header file. */ -#define HAVE_EXECINFO_H 1 - -/* Define to 1 if you have the `explicit_bzero' function. */ -/* #undef HAVE_EXPLICIT_BZERO */ - -/* Define to 1 if you have the `fdatasync' function. */ -#define HAVE_FDATASYNC 1 - -/* Define to 1 if you have the `fls' function. */ -#define HAVE_FLS 1 - -/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ -#define HAVE_FSEEKO 1 - -/* Define to 1 if your compiler understands __func__. */ -#define HAVE_FUNCNAME__FUNC 1 - -/* Define to 1 if your compiler understands __FUNCTION__. */ -/* #undef HAVE_FUNCNAME__FUNCTION */ - -/* Define to 1 if you have __atomic_compare_exchange_n(int *, int *, int). */ -#define HAVE_GCC__ATOMIC_INT32_CAS 1 - -/* Define to 1 if you have __atomic_compare_exchange_n(int64 *, int64 *, - int64). */ -#define HAVE_GCC__ATOMIC_INT64_CAS 1 - -/* Define to 1 if you have __sync_lock_test_and_set(char *) and friends. */ -#define HAVE_GCC__SYNC_CHAR_TAS 1 - -/* Define to 1 if you have __sync_val_compare_and_swap(int *, int, int). */ -#define HAVE_GCC__SYNC_INT32_CAS 1 - -/* Define to 1 if you have __sync_lock_test_and_set(int *) and friends. */ -#define HAVE_GCC__SYNC_INT32_TAS 1 - -/* Define to 1 if you have __sync_val_compare_and_swap(int64 *, int64, int64). - */ -#define HAVE_GCC__SYNC_INT64_CAS 1 - -/* Define to 1 if you have the `getaddrinfo' function. */ -#define HAVE_GETADDRINFO 1 - -/* Define to 1 if you have the `gethostbyname_r' function. */ -/* #undef HAVE_GETHOSTBYNAME_R */ - -/* Define to 1 if you have the `getifaddrs' function. */ -#define HAVE_GETIFADDRS 1 - -/* Define to 1 if you have the `getopt' function. */ -#define HAVE_GETOPT 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_GETOPT_H 1 - -/* Define to 1 if you have the `getopt_long' function. */ -#define HAVE_GETOPT_LONG 1 - -/* Define to 1 if you have the `getpeereid' function. */ -#define HAVE_GETPEEREID 1 - -/* Define to 1 if you have the `getpeerucred' function. */ -/* #undef HAVE_GETPEERUCRED */ - -/* Define to 1 if you have the `getpwuid_r' function. */ -#define HAVE_GETPWUID_R 1 - -/* Define to 1 if you have the `getrlimit' function. */ -#define HAVE_GETRLIMIT 1 - -/* Define to 1 if you have the `getrusage' function. */ -#define HAVE_GETRUSAGE 1 - -/* Define to 1 if you have the `gettimeofday' function. */ -/* #undef HAVE_GETTIMEOFDAY */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_GSSAPI_GSSAPI_H */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_GSSAPI_H */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_HISTORY_H */ - -/* Define to 1 if you have the `history_truncate_file' function. */ -/* #undef HAVE_HISTORY_TRUNCATE_FILE */ - -/* Define to 1 if you have the `HMAC_CTX_free' function. */ -/* #undef HAVE_HMAC_CTX_FREE */ - -/* Define to 1 if you have the `HMAC_CTX_new' function. */ -/* #undef HAVE_HMAC_CTX_NEW */ - -/* Define to 1 if you have the header file. */ -#define HAVE_IFADDRS_H 1 - -/* Define to 1 if you have the `inet_aton' function. */ -#define HAVE_INET_ATON 1 - -/* Define to 1 if you have the `inet_pton' function. */ -#define HAVE_INET_PTON 1 - -/* Define to 1 if the system has the type `int64'. */ -/* #undef HAVE_INT64 */ - -/* Define to 1 if the system has the type `int8'. */ -/* #undef HAVE_INT8 */ - -/* Define to 1 if you have the header file. */ -#define HAVE_INTTYPES_H 1 - -/* Define to 1 if you have the global variable 'int opterr'. */ -#define HAVE_INT_OPTERR 1 - -/* Define to 1 if you have the global variable 'int optreset'. */ -#define HAVE_INT_OPTRESET 1 - -/* Define to 1 if you have the global variable 'int timezone'. */ -#define HAVE_INT_TIMEZONE 1 - -/* Define to 1 if you have support for IPv6. */ -#define HAVE_IPV6 1 - -/* Define to 1 if __builtin_constant_p(x) implies "i"(x) acceptance. */ -/* #undef HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P */ - -/* Define to 1 if you have the `kqueue' function. */ -#define HAVE_KQUEUE 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_LANGINFO_H 1 - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_LDAP_H */ - -/* Define to 1 if you have the `ldap_initialize' function. */ -/* #undef HAVE_LDAP_INITIALIZE */ - -/* Define to 1 if you have the `crypto' library (-lcrypto). */ -/* #undef HAVE_LIBCRYPTO */ - -/* Define to 1 if you have the `ldap' library (-lldap). */ -/* #undef HAVE_LIBLDAP */ - -/* Define to 1 if you have the `lz4' library (-llz4). */ -/* #undef HAVE_LIBLZ4 */ - -/* Define to 1 if you have the `m' library (-lm). */ -#define HAVE_LIBM 1 - -/* Define to 1 if you have the `pam' library (-lpam). */ -/* #undef HAVE_LIBPAM */ - -/* Define if you have a function readline library */ -/* #undef HAVE_LIBREADLINE */ - -/* Define to 1 if you have the `selinux' library (-lselinux). */ -/* #undef HAVE_LIBSELINUX */ - -/* Define to 1 if you have the `ssl' library (-lssl). */ -/* #undef HAVE_LIBSSL */ - -/* Define to 1 if you have the `wldap32' library (-lwldap32). */ -/* #undef HAVE_LIBWLDAP32 */ - -/* Define to 1 if you have the `xml2' library (-lxml2). */ -/* #undef HAVE_LIBXML2 */ - -/* Define to 1 if you have the `xslt' library (-lxslt). */ -/* #undef HAVE_LIBXSLT */ - -/* Define to 1 if you have the `z' library (-lz). */ -/* #undef HAVE_LIBZ */ - -/* Define to 1 if you have the `zstd' library (-lzstd). */ -/* #undef HAVE_LIBZSTD */ - -/* Define to 1 if you have the `link' function. */ -#define HAVE_LINK 1 - -/* Define to 1 if the system has the type `locale_t'. */ -#define HAVE_LOCALE_T 1 - -/* Define to 1 if `long int' works and is 64 bits. */ -#define HAVE_LONG_INT_64 1 - -/* Define to 1 if `long long int' works and is 64 bits. */ -/* #undef HAVE_LONG_LONG_INT_64 */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_MBARRIER_H */ - -/* Define to 1 if you have the `mbstowcs_l' function. */ -#define HAVE_MBSTOWCS_L 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_MEMORY_H 1 - -/* Define to 1 if you have the `memset_s' function. */ -#define HAVE_MEMSET_S 1 - -/* Define to 1 if the system has the type `MINIDUMP_TYPE'. */ -/* #undef HAVE_MINIDUMP_TYPE */ - -/* Define to 1 if you have the `mkdtemp' function. */ -#define HAVE_MKDTEMP 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_NETINET_TCP_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_NET_IF_H 1 - -/* Define to 1 if you have the `OPENSSL_init_ssl' function. */ -/* #undef HAVE_OPENSSL_INIT_SSL */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_OSSP_UUID_H */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_PAM_PAM_APPL_H */ - -/* Define to 1 if you have the `poll' function. */ -#define HAVE_POLL 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_POLL_H 1 - -/* Define to 1 if you have a POSIX-conforming sigwait declaration. */ -#define HAVE_POSIX_DECL_SIGWAIT 1 - -/* Define to 1 if you have the `posix_fadvise' function. */ -/* #undef HAVE_POSIX_FADVISE */ - -/* Define to 1 if you have the `posix_fallocate' function. */ -/* #undef HAVE_POSIX_FALLOCATE */ - -/* Define to 1 if the assembler supports PPC's LWARX mutex hint bit. */ -/* #undef HAVE_PPC_LWARX_MUTEX_HINT */ - -/* Define to 1 if you have the `ppoll' function. */ -/* #undef HAVE_PPOLL */ - -/* Define to 1 if you have the `pread' function. */ -#define HAVE_PREAD 1 - -/* Define to 1 if you have the `pstat' function. */ -/* #undef HAVE_PSTAT */ - -/* Define to 1 if the PS_STRINGS thing exists. */ -/* #undef HAVE_PS_STRINGS */ - -/* Define if you have POSIX threads libraries and header files. */ -#define HAVE_PTHREAD 1 - -/* Define to 1 if you have the `pthread_barrier_wait' function. */ -/* #undef HAVE_PTHREAD_BARRIER_WAIT */ - -/* Define to 1 if you have the `pthread_is_threaded_np' function. */ -#define HAVE_PTHREAD_IS_THREADED_NP 1 - -/* Have PTHREAD_PRIO_INHERIT. */ -#define HAVE_PTHREAD_PRIO_INHERIT 1 - -/* Define to 1 if you have the `pwrite' function. */ -#define HAVE_PWRITE 1 - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_READLINE_H */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_READLINE_HISTORY_H */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_READLINE_READLINE_H */ - -/* Define to 1 if you have the `readlink' function. */ -#define HAVE_READLINK 1 - -/* Define to 1 if you have the `readv' function. */ -#define HAVE_READV 1 - -/* Define to 1 if you have the `rl_completion_matches' function. */ -/* #undef HAVE_RL_COMPLETION_MATCHES */ - -/* Define to 1 if you have the global variable 'rl_completion_suppress_quote'. - */ -/* #undef HAVE_RL_COMPLETION_SUPPRESS_QUOTE */ - -/* Define to 1 if you have the `rl_filename_completion_function' function. */ -/* #undef HAVE_RL_FILENAME_COMPLETION_FUNCTION */ - -/* Define to 1 if you have the global variable 'rl_filename_quote_characters'. - */ -/* #undef HAVE_RL_FILENAME_QUOTE_CHARACTERS */ - -/* Define to 1 if you have the global variable 'rl_filename_quoting_function'. - */ -/* #undef HAVE_RL_FILENAME_QUOTING_FUNCTION */ - -/* Define to 1 if you have the `rl_reset_screen_size' function. */ -/* #undef HAVE_RL_RESET_SCREEN_SIZE */ - -/* Define to 1 if you have the `rl_variable_bind' function. */ -/* #undef HAVE_RL_VARIABLE_BIND */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_SECURITY_PAM_APPL_H */ - -/* Define to 1 if you have the `setenv' function. */ -#define HAVE_SETENV 1 - -/* Define to 1 if you have the `setproctitle' function. */ -/* #undef HAVE_SETPROCTITLE */ - -/* Define to 1 if you have the `setproctitle_fast' function. */ -/* #undef HAVE_SETPROCTITLE_FAST */ - -/* Define to 1 if you have the `setsid' function. */ -#define HAVE_SETSID 1 - -/* Define to 1 if you have the `shm_open' function. */ -#define HAVE_SHM_OPEN 1 - -/* Define to 1 if the system has the type `socklen_t'. */ -#define HAVE_SOCKLEN_T 1 - -/* Define to 1 if you have spinlocks. */ -#define HAVE_SPINLOCKS 1 - -/* Define to 1 if stdbool.h conforms to C99. */ -#define HAVE_STDBOOL_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STDINT_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STDLIB_H 1 - -/* Define to 1 if you have the `strchrnul' function. */ -/* #undef HAVE_STRCHRNUL */ - -/* Define to 1 if you have the `strerror_r' function. */ -#define HAVE_STRERROR_R 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STRINGS_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STRING_H 1 - -/* Define to 1 if you have the `strlcat' function. */ -#define HAVE_STRLCAT 1 - -/* Define to 1 if you have the `strlcpy' function. */ -#define HAVE_STRLCPY 1 - -/* Define to 1 if you have the `strnlen' function. */ -#define HAVE_STRNLEN 1 - -/* Define to 1 if you have the `strsignal' function. */ -#define HAVE_STRSIGNAL 1 - -/* Define to 1 if you have the `strtof' function. */ -#define HAVE_STRTOF 1 - -/* Define to 1 if you have the `strtoll' function. */ -#define HAVE_STRTOLL 1 - -/* Define to 1 if you have the `strtoq' function. */ -/* #undef HAVE_STRTOQ */ - -/* Define to 1 if you have the `strtoull' function. */ -#define HAVE_STRTOULL 1 - -/* Define to 1 if you have the `strtouq' function. */ -/* #undef HAVE_STRTOUQ */ - -/* Define to 1 if the system has the type `struct addrinfo'. */ -#define HAVE_STRUCT_ADDRINFO 1 - -/* Define to 1 if the system has the type `struct cmsgcred'. */ -/* #undef HAVE_STRUCT_CMSGCRED */ - -/* Define to 1 if the system has the type `struct option'. */ -#define HAVE_STRUCT_OPTION 1 - -/* Define to 1 if `sa_len' is a member of `struct sockaddr'. */ -#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 - -/* Define to 1 if the system has the type `struct sockaddr_storage'. */ -#define HAVE_STRUCT_SOCKADDR_STORAGE 1 - -/* Define to 1 if `ss_family' is a member of `struct sockaddr_storage'. */ -#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1 - -/* Define to 1 if `ss_len' is a member of `struct sockaddr_storage'. */ -#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1 - -/* Define to 1 if `__ss_family' is a member of `struct sockaddr_storage'. */ -/* #undef HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY */ - -/* Define to 1 if `__ss_len' is a member of `struct sockaddr_storage'. */ -/* #undef HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN */ - -/* Define to 1 if the system has the type `struct sockaddr_un'. */ -#define HAVE_STRUCT_SOCKADDR_UN 1 - -/* Define to 1 if `tm_zone' is a member of `struct tm'. */ -#define HAVE_STRUCT_TM_TM_ZONE 1 - -/* Define to 1 if you have the `symlink' function. */ -#define HAVE_SYMLINK 1 - -/* Define to 1 if you have the `syncfs' function. */ -/* #undef HAVE_SYNCFS */ - -/* Define to 1 if you have the `sync_file_range' function. */ -/* #undef HAVE_SYNC_FILE_RANGE */ - -/* Define to 1 if you have the syslog interface. */ -#define HAVE_SYSLOG 1 - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_SYS_EPOLL_H */ - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_EVENT_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_IPC_H 1 - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_SYS_PERSONALITY_H */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_SYS_PRCTL_H */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_SYS_PROCCTL_H */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_SYS_PSTAT_H */ - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_RESOURCE_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_SELECT_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_SEM_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_SHM_H 1 - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_SYS_SIGNALFD_H */ - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_SOCKIO_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_STAT_H 1 - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_SYS_TAS_H */ - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_TYPES_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_UCRED_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_UIO_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_UN_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_TERMIOS_H 1 - -/* Define to 1 if your compiler understands `typeof' or something similar. */ -#define HAVE_TYPEOF 1 - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_UCRED_H */ - -/* Define to 1 if the system has the type `uint64'. */ -/* #undef HAVE_UINT64 */ - -/* Define to 1 if the system has the type `uint8'. */ -/* #undef HAVE_UINT8 */ - -/* Define to 1 if the system has the type `union semun'. */ -#define HAVE_UNION_SEMUN 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_UNISTD_H 1 - -/* Define to 1 if you have the `unsetenv' function. */ -#define HAVE_UNSETENV 1 - -/* Define to 1 if you have the `uselocale' function. */ -#define HAVE_USELOCALE 1 - -/* Define to 1 if you have BSD UUID support. */ -/* #undef HAVE_UUID_BSD */ - -/* Define to 1 if you have E2FS UUID support. */ -/* #undef HAVE_UUID_E2FS */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_UUID_H */ - -/* Define to 1 if you have OSSP UUID support. */ -/* #undef HAVE_UUID_OSSP */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_UUID_UUID_H */ - -/* Define to 1 if you have the `wcstombs_l' function. */ -#define HAVE_WCSTOMBS_L 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_WCTYPE_H 1 - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_WINLDAP_H */ - -/* Define to 1 if you have the `writev' function. */ -#define HAVE_WRITEV 1 - -/* Define to 1 if you have the `X509_get_signature_nid' function. */ -/* #undef HAVE_X509_GET_SIGNATURE_NID */ - -/* Define to 1 if the assembler supports X86_64's POPCNTQ instruction. */ -/* #undef HAVE_X86_64_POPCNTQ */ - -/* Define to 1 if the system has the type `_Bool'. */ -#define HAVE__BOOL 1 - -/* Define to 1 if your compiler understands __builtin_bswap16. */ -#define HAVE__BUILTIN_BSWAP16 1 - -/* Define to 1 if your compiler understands __builtin_bswap32. */ -#define HAVE__BUILTIN_BSWAP32 1 - -/* Define to 1 if your compiler understands __builtin_bswap64. */ -#define HAVE__BUILTIN_BSWAP64 1 - -/* Define to 1 if your compiler understands __builtin_clz. */ -#define HAVE__BUILTIN_CLZ 1 - -/* Define to 1 if your compiler understands __builtin_constant_p. */ -#define HAVE__BUILTIN_CONSTANT_P 1 - -/* Define to 1 if your compiler understands __builtin_ctz. */ -#define HAVE__BUILTIN_CTZ 1 - -/* Define to 1 if your compiler understands __builtin_frame_address. */ -#define HAVE__BUILTIN_FRAME_ADDRESS 1 - -/* Define to 1 if your compiler understands __builtin_$op_overflow. */ -#define HAVE__BUILTIN_OP_OVERFLOW 1 - -/* Define to 1 if your compiler understands __builtin_popcount. */ -#define HAVE__BUILTIN_POPCOUNT 1 - -/* Define to 1 if your compiler understands __builtin_types_compatible_p. */ -#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1 - -/* Define to 1 if your compiler understands __builtin_unreachable. */ -#define HAVE__BUILTIN_UNREACHABLE 1 - -/* Define to 1 if you have the `_configthreadlocale' function. */ -/* #undef HAVE__CONFIGTHREADLOCALE */ - -/* Define to 1 if you have __cpuid. */ -/* #undef HAVE__CPUID */ - -/* Define to 1 if you have __get_cpuid. */ -/* #undef HAVE__GET_CPUID */ - -/* Define to 1 if your compiler understands _Static_assert. */ -#define HAVE__STATIC_ASSERT 1 - -/* Define to 1 if you have the `__strtoll' function. */ -/* #undef HAVE___STRTOLL */ - -/* Define to 1 if you have the `__strtoull' function. */ -/* #undef HAVE___STRTOULL */ - -/* Define to the appropriate printf length modifier for 64-bit ints. */ -#define INT64_MODIFIER "l" - -/* Define to 1 if `locale_t' requires . */ -#define LOCALE_T_IN_XLOCALE 1 - -/* Define as the maximum alignment requirement of any C data type. */ -#define MAXIMUM_ALIGNOF 8 - -/* Define bytes to use libc memset(). */ -#define MEMSET_LOOP_LIMIT 1024 - -/* Define to the OpenSSL API version in use. This avoids deprecation warnings - from newer OpenSSL versions. */ -/* #undef OPENSSL_API_COMPAT */ - -/* Define to the address where bug reports for this package should be sent. */ -#define PACKAGE_BUGREPORT "pgsql-bugs@lists.postgresql.org" - -/* Define to the full name of this package. */ -#define PACKAGE_NAME "PostgreSQL" - -/* Define to the full name and version of this package. */ -#define PACKAGE_STRING "PostgreSQL 15.1" - -/* Define to the one symbol short name of this package. */ -#define PACKAGE_TARNAME "postgresql" - -/* Define to the home page for this package. */ -#define PACKAGE_URL "https://www.postgresql.org/" - -/* Define to the version of this package. */ -#define PACKAGE_VERSION "15.1" - -/* Define to the name of a signed 128-bit integer type. */ -#define PG_INT128_TYPE __int128 - -/* Define to the name of a signed 64-bit integer type. */ -#define PG_INT64_TYPE long int - -/* Define to the name of the default PostgreSQL service principal in Kerberos - (GSSAPI). (--with-krb-srvnam=NAME) */ -#define PG_KRB_SRVNAM "postgres" - -/* PostgreSQL major version as a string */ -#define PG_MAJORVERSION "15" - -/* PostgreSQL major version number */ -#define PG_MAJORVERSION_NUM 15 - -/* PostgreSQL minor version number */ -#define PG_MINORVERSION_NUM 1 - -/* Define to best printf format archetype, usually gnu_printf if available. */ -#define PG_PRINTF_ATTRIBUTE printf - -/* Define to 1 to use to define type bool. */ -#define PG_USE_STDBOOL 1 - -/* PostgreSQL version as a string */ -#define PG_VERSION "15.1" - -/* PostgreSQL version as a number */ -#define PG_VERSION_NUM 150001 - -/* A string containing the version number, platform, and C compiler */ -#define PG_VERSION_STR "PostgreSQL 15.1 on aarch64-apple-darwin21.6.0, compiled by Apple clang version 14.0.0 (clang-1400.0.29.102), 64-bit" - -/* Define to 1 to allow profiling output to be saved separately for each - process. */ -/* #undef PROFILE_PID_DIR */ - -/* Define to necessary symbol if this constant uses a non-standard name on - your system. */ -/* #undef PTHREAD_CREATE_JOINABLE */ - -/* RELSEG_SIZE is the maximum number of blocks allowed in one disk file. Thus, - the maximum size of a single file is RELSEG_SIZE * BLCKSZ; relations bigger - than that are divided into multiple files. RELSEG_SIZE * BLCKSZ must be - less than your OS' limit on file size. This is often 2 GB or 4GB in a - 32-bit operating system, unless you have large file support enabled. By - default, we make the limit 1 GB to avoid any possible integer-overflow - problems within the OS. A limit smaller than necessary only means we divide - a large relation into more chunks than necessary, so it seems best to err - in the direction of a small limit. A power-of-2 value is recommended to - save a few cycles in md.c, but is not absolutely required. Changing - RELSEG_SIZE requires an initdb. */ -#define RELSEG_SIZE 131072 - -/* The size of `bool', as computed by sizeof. */ -#define SIZEOF_BOOL 1 - -/* The size of `long', as computed by sizeof. */ -#define SIZEOF_LONG 8 - -/* The size of `off_t', as computed by sizeof. */ -#define SIZEOF_OFF_T 8 - -/* The size of `size_t', as computed by sizeof. */ -#define SIZEOF_SIZE_T 8 - -/* The size of `void *', as computed by sizeof. */ -#define SIZEOF_VOID_P 8 - -/* Define to 1 if you have the ANSI C header files. */ -#define STDC_HEADERS 1 - -/* Define to 1 if strerror_r() returns int. */ -#define STRERROR_R_INT 1 - -/* Define to 1 to use ARMv8 CRC Extension. */ -#define USE_ARMV8_CRC32C 1 - -/* Define to 1 to use ARMv8 CRC Extension with a runtime check. */ -/* #undef USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK */ - -/* Define to 1 to build with assertion checks. (--enable-cassert) */ -/* #undef USE_ASSERT_CHECKING */ - -/* Define to 1 to build with Bonjour support. (--with-bonjour) */ -/* #undef USE_BONJOUR */ - -/* Define to 1 to build with BSD Authentication support. (--with-bsd-auth) */ -/* #undef USE_BSD_AUTH */ - -/* Define to build with ICU support. (--with-icu) */ -/* #undef USE_ICU */ - -/* Define to 1 to build with LDAP support. (--with-ldap) */ -/* #undef USE_LDAP */ - -/* Define to 1 to build with XML support. (--with-libxml) */ -/* #undef USE_LIBXML */ - -/* Define to 1 to use XSLT support when building contrib/xml2. - (--with-libxslt) */ -/* #undef USE_LIBXSLT */ - -/* Define to 1 to build with LLVM based JIT support. (--with-llvm) */ -/* #undef USE_LLVM */ - -/* Define to 1 to build with LZ4 support. (--with-lz4) */ -/* #undef USE_LZ4 */ - -/* Define to select named POSIX semaphores. */ -/* #undef USE_NAMED_POSIX_SEMAPHORES */ - -/* Define to 1 to build with OpenSSL support. (--with-ssl=openssl) */ -/* #undef USE_OPENSSL */ - -/* Define to 1 to build with PAM support. (--with-pam) */ -/* #undef USE_PAM */ - -/* Define to 1 to use software CRC-32C implementation (slicing-by-8). */ -/* #undef USE_SLICING_BY_8_CRC32C */ - -/* Define to 1 use Intel SSE 4.2 CRC instructions. */ -/* #undef USE_SSE42_CRC32C */ - -/* Define to 1 to use Intel SSE 4.2 CRC instructions with a runtime check. */ -/* #undef USE_SSE42_CRC32C_WITH_RUNTIME_CHECK */ - -/* Define to build with systemd support. (--with-systemd) */ -/* #undef USE_SYSTEMD */ - -/* Define to select SysV-style semaphores. */ -#define USE_SYSV_SEMAPHORES 1 - -/* Define to select SysV-style shared memory. */ -#define USE_SYSV_SHARED_MEMORY 1 - -/* Define to select unnamed POSIX semaphores. */ -/* #undef USE_UNNAMED_POSIX_SEMAPHORES */ - -/* Define to select Win32-style semaphores. */ -/* #undef USE_WIN32_SEMAPHORES */ - -/* Define to select Win32-style shared memory. */ -/* #undef USE_WIN32_SHARED_MEMORY */ - -/* Define to 1 to build with ZSTD support. (--with-zstd) */ -/* #undef USE_ZSTD */ - -/* Define to 1 if `wcstombs_l' requires . */ -#define WCSTOMBS_L_IN_XLOCALE 1 - -/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most - significant byte first (like Motorola and SPARC, unlike Intel). */ -#if defined AC_APPLE_UNIVERSAL_BUILD -# if defined __BIG_ENDIAN__ -# define WORDS_BIGENDIAN 1 -# endif -#else -# ifndef WORDS_BIGENDIAN -/* # undef WORDS_BIGENDIAN */ -# endif -#endif - -/* Size of a WAL file block. This need have no particular relation to BLCKSZ. - XLOG_BLCKSZ must be a power of 2, and if your system supports O_DIRECT I/O, - XLOG_BLCKSZ must be a multiple of the alignment requirement for direct-I/O - buffers, else direct I/O may fail. Changing XLOG_BLCKSZ requires an initdb. - */ -#define XLOG_BLCKSZ 8192 - - - -/* Number of bits in a file offset, on hosts where this is settable. */ -/* #undef _FILE_OFFSET_BITS */ - -/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ -/* #undef _LARGEFILE_SOURCE */ - -/* Define for large files, on AIX-style hosts. */ -/* #undef _LARGE_FILES */ - -/* Define to `__inline__' or `__inline' if that's what the C compiler - calls it, or to nothing if 'inline' is not supported under any name. */ -#ifndef __cplusplus -/* #undef inline */ -#endif - -/* Define to keyword to use for C99 restrict support, or to nothing if not - supported */ -#define pg_restrict __restrict - -/* Define to the equivalent of the C99 'restrict' keyword, or to - nothing if this is not supported. Do not define if restrict is - supported directly. */ -#define restrict __restrict -/* Work around a bug in Sun C++: it does not support _Restrict or - __restrict__, even though the corresponding Sun C compiler ends up with - "#define restrict _Restrict" or "#define restrict __restrict__" in the - previous line. Perhaps some future version of Sun C++ will work with - restrict; if so, hopefully it defines __RESTRICT like Sun C does. */ -#if defined __SUNPRO_CC && !defined __RESTRICT -# define _Restrict -# define __restrict__ -#endif - -/* Define to how the compiler spells `typeof'. */ -/* #undef typeof */ -#undef HAVE_LOCALE_T -#undef LOCALE_T_IN_XLOCALE -#undef WCSTOMBS_L_IN_XLOCALE -#undef PG_INT128_TYPE -#undef HAVE__STATIC_ASSERT -#undef HAVE_EXECINFO_H -#undef HAVE_BACKTRACE_SYMBOLS -#undef HAVE_X86_64_POPCNTQ -#undef HAVE__GET_CPUID -#undef USE_ARMV8_CRC32C -#undef USE_SSE42_CRC32C_WITH_RUNTIME_CHECK -#if defined(__FreeBSD__) || defined(__NetBSD__) -#define HAVE_STRCHRNUL -#endif diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_config_ext.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_config_ext.h deleted file mode 100644 index b4c07dd85..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_config_ext.h +++ /dev/null @@ -1,8 +0,0 @@ -/* src/include/pg_config_ext.h. Generated from pg_config_ext.h.in by configure. */ -/* - * src/include/pg_config_ext.h.in. This is generated manually, not by - * autoheader, since we want to limit which symbols get defined here. - */ - -/* Define to the name of a signed 64-bit integer type. */ -#define PG_INT64_TYPE long int diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_config_manual.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_config_manual.h deleted file mode 100644 index 8d2e3e3a5..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_config_manual.h +++ /dev/null @@ -1,410 +0,0 @@ -/*------------------------------------------------------------------------ - * PostgreSQL manual configuration settings - * - * This file contains various configuration symbols and limits. In - * all cases, changing them is only useful in very rare situations or - * for developers. If you edit any of these, be sure to do a *full* - * rebuild (and an initdb if noted). - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/pg_config_manual.h - *------------------------------------------------------------------------ - */ - -/* - * This is the default value for wal_segment_size to be used when initdb is run - * without the --wal-segsize option. It must be a valid segment size. - */ -#define DEFAULT_XLOG_SEG_SIZE (16*1024*1024) - -/* - * Maximum length for identifiers (e.g. table names, column names, - * function names). Names actually are limited to one fewer byte than this, - * because the length must include a trailing zero byte. - * - * Changing this requires an initdb. - */ -#define NAMEDATALEN 64 - -/* - * Maximum number of arguments to a function. - * - * The minimum value is 8 (GIN indexes use 8-argument support functions). - * The maximum possible value is around 600 (limited by index tuple size in - * pg_proc's index; BLCKSZ larger than 8K would allow more). Values larger - * than needed will waste memory and processing time, but do not directly - * cost disk space. - * - * Changing this does not require an initdb, but it does require a full - * backend recompile (including any user-defined C functions). - */ -#define FUNC_MAX_ARGS 100 - -/* - * When creating a product derived from PostgreSQL with changes that cause - * incompatibilities for loadable modules, it is recommended to change this - * string so that dfmgr.c can refuse to load incompatible modules with a clean - * error message. Typical examples that cause incompatibilities are any - * changes to node tags or node structures. (Note that dfmgr.c already - * detects common sources of incompatibilities due to major version - * differences and due to some changed compile-time constants. This setting - * is for catching anything that cannot be detected in a straightforward way.) - * - * There is no prescribed format for the string. The suggestion is to include - * product or company name, and optionally any internally-relevant ABI - * version. Example: "ACME Postgres/1.2". Note that the string will appear - * in a user-facing error message if an ABI mismatch is detected. - */ -#define FMGR_ABI_EXTRA "PostgreSQL" - -/* - * Maximum number of columns in an index. There is little point in making - * this anything but a multiple of 32, because the main cost is associated - * with index tuple header size (see access/itup.h). - * - * Changing this requires an initdb. - */ -#define INDEX_MAX_KEYS 32 - -/* - * Maximum number of columns in a partition key - */ -#define PARTITION_MAX_KEYS 32 - -/* - * Decide whether built-in 8-byte types, including float8, int8, and - * timestamp, are passed by value. This is on by default if sizeof(Datum) >= - * 8 (that is, on 64-bit platforms). If sizeof(Datum) < 8 (32-bit platforms), - * this must be off. We keep this here as an option so that it is easy to - * test the pass-by-reference code paths on 64-bit platforms. - * - * Changing this requires an initdb. - */ -#if SIZEOF_VOID_P >= 8 -#define USE_FLOAT8_BYVAL 1 -#endif - -/* - * When we don't have native spinlocks, we use semaphores to simulate them. - * Decreasing this value reduces consumption of OS resources; increasing it - * may improve performance, but supplying a real spinlock implementation is - * probably far better. - */ -#define NUM_SPINLOCK_SEMAPHORES 128 - -/* - * When we have neither spinlocks nor atomic operations support we're - * implementing atomic operations on top of spinlock on top of semaphores. To - * be safe against atomic operations while holding a spinlock separate - * semaphores have to be used. - */ -#define NUM_ATOMICS_SEMAPHORES 64 - -/* - * MAXPGPATH: standard size of a pathname buffer in PostgreSQL (hence, - * maximum usable pathname length is one less). - * - * We'd use a standard system header symbol for this, if there weren't - * so many to choose from: MAXPATHLEN, MAX_PATH, PATH_MAX are all - * defined by different "standards", and often have different values - * on the same platform! So we just punt and use a reasonably - * generous setting here. - */ -#define MAXPGPATH 1024 - -/* - * PG_SOMAXCONN: maximum accept-queue length limit passed to - * listen(2). You'd think we should use SOMAXCONN from - * , but on many systems that symbol is much smaller - * than the kernel's actual limit. In any case, this symbol need be - * twiddled only if you have a kernel that refuses large limit values, - * rather than silently reducing the value to what it can handle - * (which is what most if not all Unixen do). - */ -#define PG_SOMAXCONN 10000 - -/* - * You can try changing this if you have a machine with bytes of - * another size, but no guarantee... - */ -#define BITS_PER_BYTE 8 - -/* - * Preferred alignment for disk I/O buffers. On some CPUs, copies between - * user space and kernel space are significantly faster if the user buffer - * is aligned on a larger-than-MAXALIGN boundary. Ideally this should be - * a platform-dependent value, but for now we just hard-wire it. - */ -#define ALIGNOF_BUFFER 32 - -/* - * If EXEC_BACKEND is defined, the postmaster uses an alternative method for - * starting subprocesses: Instead of simply using fork(), as is standard on - * Unix platforms, it uses fork()+exec() or something equivalent on Windows, - * as well as lots of extra code to bring the required global state to those - * new processes. This must be enabled on Windows (because there is no - * fork()). On other platforms, it's only useful for verifying those - * otherwise Windows-specific code paths. - */ -#if defined(WIN32) && !defined(__CYGWIN__) -#define EXEC_BACKEND -#endif - -/* - * Define this if your operating system supports link() - */ -#if !defined(WIN32) && !defined(__CYGWIN__) -#define HAVE_WORKING_LINK 1 -#endif - -/* - * USE_POSIX_FADVISE controls whether Postgres will attempt to use the - * posix_fadvise() kernel call. Usually the automatic configure tests are - * sufficient, but some older Linux distributions had broken versions of - * posix_fadvise(). If necessary you can remove the #define here. - */ -#if HAVE_DECL_POSIX_FADVISE && defined(HAVE_POSIX_FADVISE) -#define USE_POSIX_FADVISE -#endif - -/* - * USE_PREFETCH code should be compiled only if we have a way to implement - * prefetching. (This is decoupled from USE_POSIX_FADVISE because there - * might in future be support for alternative low-level prefetch APIs. - * If you change this, you probably need to adjust the error message in - * check_effective_io_concurrency.) - */ -#ifdef USE_POSIX_FADVISE -#define USE_PREFETCH -#endif - -/* - * Default and maximum values for backend_flush_after, bgwriter_flush_after - * and checkpoint_flush_after; measured in blocks. Currently, these are - * enabled by default if sync_file_range() exists, ie, only on Linux. Perhaps - * we could also enable by default if we have mmap and msync(MS_ASYNC)? - */ -#ifdef HAVE_SYNC_FILE_RANGE -#define DEFAULT_BACKEND_FLUSH_AFTER 0 /* never enabled by default */ -#define DEFAULT_BGWRITER_FLUSH_AFTER 64 -#define DEFAULT_CHECKPOINT_FLUSH_AFTER 32 -#else -#define DEFAULT_BACKEND_FLUSH_AFTER 0 -#define DEFAULT_BGWRITER_FLUSH_AFTER 0 -#define DEFAULT_CHECKPOINT_FLUSH_AFTER 0 -#endif -/* upper limit for all three variables */ -#define WRITEBACK_MAX_PENDING_FLUSHES 256 - -/* - * USE_SSL code should be compiled only when compiling with an SSL - * implementation. - */ -#ifdef USE_OPENSSL -#define USE_SSL -#endif - -/* - * This is the default directory in which AF_UNIX socket files are - * placed. Caution: changing this risks breaking your existing client - * applications, which are likely to continue to look in the old - * directory. But if you just hate the idea of sockets in /tmp, - * here's where to twiddle it. You can also override this at runtime - * with the postmaster's -k switch. - * - * If set to an empty string, then AF_UNIX sockets are not used by default: A - * server will not create an AF_UNIX socket unless the run-time configuration - * is changed, a client will connect via TCP/IP by default and will only use - * an AF_UNIX socket if one is explicitly specified. - * - * This is done by default on Windows because there is no good standard - * location for AF_UNIX sockets and many installations on Windows don't - * support them yet. - */ -#ifndef WIN32 -#define DEFAULT_PGSOCKET_DIR "/tmp" -#else -#define DEFAULT_PGSOCKET_DIR "" -#endif - -/* - * This is the default event source for Windows event log. - */ -#define DEFAULT_EVENT_SOURCE "PostgreSQL" - -/* - * On PPC machines, decide whether to use the mutex hint bit in LWARX - * instructions. Setting the hint bit will slightly improve spinlock - * performance on POWER6 and later machines, but does nothing before that, - * and will result in illegal-instruction failures on some pre-POWER4 - * machines. By default we use the hint bit when building for 64-bit PPC, - * which should be safe in nearly all cases. You might want to override - * this if you are building 32-bit code for a known-recent PPC machine. - */ -#ifdef HAVE_PPC_LWARX_MUTEX_HINT /* must have assembler support in any case */ -#if defined(__ppc64__) || defined(__powerpc64__) -#define USE_PPC_LWARX_MUTEX_HINT -#endif -#endif - -/* - * On PPC machines, decide whether to use LWSYNC instructions in place of - * ISYNC and SYNC. This provides slightly better performance, but will - * result in illegal-instruction failures on some pre-POWER4 machines. - * By default we use LWSYNC when building for 64-bit PPC, which should be - * safe in nearly all cases. - */ -#if defined(__ppc64__) || defined(__powerpc64__) -#define USE_PPC_LWSYNC -#endif - -/* - * Assumed cache line size. This doesn't affect correctness, but can be used - * for low-level optimizations. Currently, this is used to pad some data - * structures in xlog.c, to ensure that highly-contended fields are on - * different cache lines. Too small a value can hurt performance due to false - * sharing, while the only downside of too large a value is a few bytes of - * wasted memory. The default is 128, which should be large enough for all - * supported platforms. - */ -#define PG_CACHE_LINE_SIZE 128 - -/* - *------------------------------------------------------------------------ - * The following symbols are for enabling debugging code, not for - * controlling user-visible features or resource limits. - *------------------------------------------------------------------------ - */ - -/* - * Include Valgrind "client requests", mostly in the memory allocator, so - * Valgrind understands PostgreSQL memory contexts. This permits detecting - * memory errors that Valgrind would not detect on a vanilla build. It also - * enables detection of buffer accesses that take place without holding a - * buffer pin (or without holding a buffer lock in the case of index access - * methods that superimpose their own custom client requests on top of the - * generic bufmgr.c requests). - * - * "make installcheck" is significantly slower under Valgrind. The client - * requests fall in hot code paths, so USE_VALGRIND slows execution by a few - * percentage points even when not run under Valgrind. - * - * Do not try to test the server under Valgrind without having built the - * server with USE_VALGRIND; else you will get false positives from sinval - * messaging (see comments in AddCatcacheInvalidationMessage). It's also - * important to use the suppression file src/tools/valgrind.supp to - * exclude other known false positives. - * - * You should normally use MEMORY_CONTEXT_CHECKING with USE_VALGRIND; - * instrumentation of repalloc() is inferior without it. - */ -/* #define USE_VALGRIND */ - -/* - * Define this to cause pfree()'d memory to be cleared immediately, to - * facilitate catching bugs that refer to already-freed values. - * Right now, this gets defined automatically if --enable-cassert. - */ -#ifdef USE_ASSERT_CHECKING -#define CLOBBER_FREED_MEMORY -#endif - -/* - * Define this to check memory allocation errors (scribbling on more - * bytes than were allocated). Right now, this gets defined - * automatically if --enable-cassert or USE_VALGRIND. - */ -#if defined(USE_ASSERT_CHECKING) || defined(USE_VALGRIND) -#define MEMORY_CONTEXT_CHECKING -#endif - -/* - * Define this to cause palloc()'d memory to be filled with random data, to - * facilitate catching code that depends on the contents of uninitialized - * memory. Caution: this is horrendously expensive. - */ -/* #define RANDOMIZE_ALLOCATED_MEMORY */ - -/* - * For cache-invalidation debugging, define DISCARD_CACHES_ENABLED to enable - * use of the debug_discard_caches GUC to aggressively flush syscache/relcache - * entries whenever it's possible to deliver invalidations. See - * AcceptInvalidationMessages() in src/backend/utils/cache/inval.c for - * details. - * - * USE_ASSERT_CHECKING builds default to enabling this. It's possible to use - * DISCARD_CACHES_ENABLED without a cassert build and the implied - * CLOBBER_FREED_MEMORY and MEMORY_CONTEXT_CHECKING options, but it's unlikely - * to be as effective at identifying problems. - */ -/* #define DISCARD_CACHES_ENABLED */ - -#if defined(USE_ASSERT_CHECKING) && !defined(DISCARD_CACHES_ENABLED) -#define DISCARD_CACHES_ENABLED -#endif - -/* - * Backwards compatibility for the older compile-time-only clobber-cache - * macros. - */ -#if !defined(DISCARD_CACHES_ENABLED) && (defined(CLOBBER_CACHE_ALWAYS) || defined(CLOBBER_CACHE_RECURSIVELY)) -#define DISCARD_CACHES_ENABLED -#endif - -/* - * Recover memory used for relcache entries when invalidated. See - * RelationBuildDescr() in src/backend/utils/cache/relcache.c. - * - * This is active automatically for clobber-cache builds when clobbering is - * active, but can be overridden here by explicitly defining - * RECOVER_RELATION_BUILD_MEMORY. Define to 1 to always free relation cache - * memory even when clobber is off, or to 0 to never free relation cache - * memory even when clobbering is on. - */ - /* #define RECOVER_RELATION_BUILD_MEMORY 0 */ /* Force disable */ - /* #define RECOVER_RELATION_BUILD_MEMORY 1 */ /* Force enable */ - -/* - * Define this to force all parse and plan trees to be passed through - * copyObject(), to facilitate catching errors and omissions in - * copyObject(). - */ -/* #define COPY_PARSE_PLAN_TREES */ - -/* - * Define this to force all parse and plan trees to be passed through - * outfuncs.c/readfuncs.c, to facilitate catching errors and omissions in - * those modules. - */ -/* #define WRITE_READ_PARSE_PLAN_TREES */ - -/* - * Define this to force all raw parse trees for DML statements to be scanned - * by raw_expression_tree_walker(), to facilitate catching errors and - * omissions in that function. - */ -/* #define RAW_EXPRESSION_COVERAGE_TEST */ - -/* - * Enable debugging print statements for lock-related operations. - */ -/* #define LOCK_DEBUG */ - -/* - * Enable debugging print statements for WAL-related operations; see - * also the wal_debug GUC var. - */ -/* #define WAL_DEBUG */ - -/* - * Enable tracing of resource consumption during sort operations; - * see also the trace_sort GUC var. For 8.1 this is enabled by default. - */ -#define TRACE_SORT 1 - -/* - * Enable tracing of syncscan operations (see also the trace_syncscan GUC var). - */ -/* #define TRACE_SYNCSCAN */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_config_os.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_config_os.h deleted file mode 100644 index 15fb69d6d..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_config_os.h +++ /dev/null @@ -1,8 +0,0 @@ -/* src/include/port/darwin.h */ - -#define __darwin__ 1 - -#if HAVE_DECL_F_FULLFSYNC /* not present before macOS 10.3 */ -#define HAVE_FSYNC_WRITETHROUGH - -#endif diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_getopt.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_getopt.h deleted file mode 100644 index 9d91e602e..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_getopt.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Postgres files that use getopt(3) always include this file. - * We must cope with three different scenarios: - * 1. We're using the platform's getopt(), and we should just import the - * appropriate declarations. - * 2. The platform lacks getopt(), and we must declare everything. - * 3. The platform has getopt(), but we're not using it because we don't - * like its behavior. The declarations we make here must be compatible - * with both the platform's getopt() and our src/port/getopt.c. - * - * Portions Copyright (c) 1987, 1993, 1994 - * The Regents of the University of California. All rights reserved. - * - * Portions Copyright (c) 2003-2022, PostgreSQL Global Development Group - * - * src/include/pg_getopt.h - */ -#ifndef PG_GETOPT_H -#define PG_GETOPT_H - -/* POSIX says getopt() is provided by unistd.h */ -#include - -/* rely on the system's getopt.h if present */ -#ifdef HAVE_GETOPT_H -#include -#endif - -/* - * If we have , assume it declares these variables, else do that - * ourselves. (We used to just declare them unconditionally, but Cygwin - * doesn't like that.) - */ -#ifndef HAVE_GETOPT_H - -extern PGDLLIMPORT char *optarg; -extern PGDLLIMPORT int optind; -extern PGDLLIMPORT int opterr; -extern PGDLLIMPORT int optopt; - -#endif /* HAVE_GETOPT_H */ - -/* - * Some platforms have optreset but fail to declare it in , so cope. - * Cygwin, however, doesn't like this either. - */ -#if defined(HAVE_INT_OPTRESET) && !defined(__CYGWIN__) -extern PGDLLIMPORT int optreset; -#endif - -/* Provide getopt() declaration if the platform doesn't have it */ -#ifndef HAVE_GETOPT -extern int getopt(int nargc, char *const *nargv, const char *ostr); -#endif - -#endif /* PG_GETOPT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query.h deleted file mode 100644 index ba926c3ef..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query.h +++ /dev/null @@ -1,122 +0,0 @@ -#ifndef PG_QUERY_H -#define PG_QUERY_H - -#include -#include - -typedef struct { - char* message; // exception message - char* funcname; // source function of exception (e.g. SearchSysCache) - char* filename; // source of exception (e.g. parse.l) - int lineno; // source of exception (e.g. 104) - int cursorpos; // char in query at which exception occurred - char* context; // additional context (optional, can be NULL) -} PgQueryError; - -typedef struct { - size_t len; - char* data; -} PgQueryProtobuf; - -typedef struct { - PgQueryProtobuf pbuf; - char* stderr_buffer; - PgQueryError* error; -} PgQueryScanResult; - -typedef struct { - char* parse_tree; - char* stderr_buffer; - PgQueryError* error; -} PgQueryParseResult; - -typedef struct { - PgQueryProtobuf parse_tree; - char* stderr_buffer; - PgQueryError* error; -} PgQueryProtobufParseResult; - -typedef struct { - int stmt_location; - int stmt_len; -} PgQuerySplitStmt; - -typedef struct { - PgQuerySplitStmt **stmts; - int n_stmts; - char* stderr_buffer; - PgQueryError* error; -} PgQuerySplitResult; - -typedef struct { - char* query; - PgQueryError* error; -} PgQueryDeparseResult; - -typedef struct { - char* plpgsql_funcs; - PgQueryError* error; -} PgQueryPlpgsqlParseResult; - -typedef struct { - uint64_t fingerprint; - char* fingerprint_str; - char* stderr_buffer; - PgQueryError* error; -} PgQueryFingerprintResult; - -typedef struct { - char* normalized_query; - PgQueryError* error; -} PgQueryNormalizeResult; - -#ifdef __cplusplus -extern "C" { -#endif - -PgQueryNormalizeResult pg_query_normalize(const char* input); -PgQueryScanResult pg_query_scan(const char* input); -PgQueryParseResult pg_query_parse(const char* input); -PgQueryProtobufParseResult pg_query_parse_protobuf(const char* input); -PgQueryPlpgsqlParseResult pg_query_parse_plpgsql(const char* input); - -PgQueryFingerprintResult pg_query_fingerprint(const char* input); - -// Use pg_query_split_with_scanner when you need to split statements that may -// contain parse errors, otherwise pg_query_split_with_parser is recommended -// for improved accuracy due the parser adding additional token handling. -// -// Note that we try to support special cases like comments, strings containing -// ";" on both, as well as oddities like "CREATE RULE .. (SELECT 1; SELECT 2);" -// which is treated as as single statement. -PgQuerySplitResult pg_query_split_with_scanner(const char *input); -PgQuerySplitResult pg_query_split_with_parser(const char *input); - -PgQueryDeparseResult pg_query_deparse_protobuf(PgQueryProtobuf parse_tree); - -void pg_query_free_normalize_result(PgQueryNormalizeResult result); -void pg_query_free_scan_result(PgQueryScanResult result); -void pg_query_free_parse_result(PgQueryParseResult result); -void pg_query_free_split_result(PgQuerySplitResult result); -void pg_query_free_deparse_result(PgQueryDeparseResult result); -void pg_query_free_protobuf_parse_result(PgQueryProtobufParseResult result); -void pg_query_free_plpgsql_parse_result(PgQueryPlpgsqlParseResult result); -void pg_query_free_fingerprint_result(PgQueryFingerprintResult result); - -// Optional, cleans up the top-level memory context (automatically done for threads that exit) -void pg_query_exit(void); - -// Postgres version information -#define PG_MAJORVERSION "15" -#define PG_VERSION "15.1" -#define PG_VERSION_NUM 150001 - -// Deprecated APIs below - -void pg_query_init(void); // Deprecated as of 9.5-1.4.1, this is now run automatically as needed - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_enum_defs.c b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_enum_defs.c deleted file mode 100644 index a64ccb6f3..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_enum_defs.c +++ /dev/null @@ -1,2571 +0,0 @@ -// This file is autogenerated by ./scripts/generate_protobuf_and_funcs.rb - -static const char* -_enumToStringOverridingKind(OverridingKind value) { - switch(value) { - case OVERRIDING_NOT_SET: return "OVERRIDING_NOT_SET"; - case OVERRIDING_USER_VALUE: return "OVERRIDING_USER_VALUE"; - case OVERRIDING_SYSTEM_VALUE: return "OVERRIDING_SYSTEM_VALUE"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringQuerySource(QuerySource value) { - switch(value) { - case QSRC_ORIGINAL: return "QSRC_ORIGINAL"; - case QSRC_PARSER: return "QSRC_PARSER"; - case QSRC_INSTEAD_RULE: return "QSRC_INSTEAD_RULE"; - case QSRC_QUAL_INSTEAD_RULE: return "QSRC_QUAL_INSTEAD_RULE"; - case QSRC_NON_INSTEAD_RULE: return "QSRC_NON_INSTEAD_RULE"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringSortByDir(SortByDir value) { - switch(value) { - case SORTBY_DEFAULT: return "SORTBY_DEFAULT"; - case SORTBY_ASC: return "SORTBY_ASC"; - case SORTBY_DESC: return "SORTBY_DESC"; - case SORTBY_USING: return "SORTBY_USING"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringSortByNulls(SortByNulls value) { - switch(value) { - case SORTBY_NULLS_DEFAULT: return "SORTBY_NULLS_DEFAULT"; - case SORTBY_NULLS_FIRST: return "SORTBY_NULLS_FIRST"; - case SORTBY_NULLS_LAST: return "SORTBY_NULLS_LAST"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringSetQuantifier(SetQuantifier value) { - switch(value) { - case SET_QUANTIFIER_DEFAULT: return "SET_QUANTIFIER_DEFAULT"; - case SET_QUANTIFIER_ALL: return "SET_QUANTIFIER_ALL"; - case SET_QUANTIFIER_DISTINCT: return "SET_QUANTIFIER_DISTINCT"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringA_Expr_Kind(A_Expr_Kind value) { - switch(value) { - case AEXPR_OP: return "AEXPR_OP"; - case AEXPR_OP_ANY: return "AEXPR_OP_ANY"; - case AEXPR_OP_ALL: return "AEXPR_OP_ALL"; - case AEXPR_DISTINCT: return "AEXPR_DISTINCT"; - case AEXPR_NOT_DISTINCT: return "AEXPR_NOT_DISTINCT"; - case AEXPR_NULLIF: return "AEXPR_NULLIF"; - case AEXPR_IN: return "AEXPR_IN"; - case AEXPR_LIKE: return "AEXPR_LIKE"; - case AEXPR_ILIKE: return "AEXPR_ILIKE"; - case AEXPR_SIMILAR: return "AEXPR_SIMILAR"; - case AEXPR_BETWEEN: return "AEXPR_BETWEEN"; - case AEXPR_NOT_BETWEEN: return "AEXPR_NOT_BETWEEN"; - case AEXPR_BETWEEN_SYM: return "AEXPR_BETWEEN_SYM"; - case AEXPR_NOT_BETWEEN_SYM: return "AEXPR_NOT_BETWEEN_SYM"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringRoleSpecType(RoleSpecType value) { - switch(value) { - case ROLESPEC_CSTRING: return "ROLESPEC_CSTRING"; - case ROLESPEC_CURRENT_ROLE: return "ROLESPEC_CURRENT_ROLE"; - case ROLESPEC_CURRENT_USER: return "ROLESPEC_CURRENT_USER"; - case ROLESPEC_SESSION_USER: return "ROLESPEC_SESSION_USER"; - case ROLESPEC_PUBLIC: return "ROLESPEC_PUBLIC"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringTableLikeOption(TableLikeOption value) { - switch(value) { - case CREATE_TABLE_LIKE_COMMENTS: return "CREATE_TABLE_LIKE_COMMENTS"; - case CREATE_TABLE_LIKE_COMPRESSION: return "CREATE_TABLE_LIKE_COMPRESSION"; - case CREATE_TABLE_LIKE_CONSTRAINTS: return "CREATE_TABLE_LIKE_CONSTRAINTS"; - case CREATE_TABLE_LIKE_DEFAULTS: return "CREATE_TABLE_LIKE_DEFAULTS"; - case CREATE_TABLE_LIKE_GENERATED: return "CREATE_TABLE_LIKE_GENERATED"; - case CREATE_TABLE_LIKE_IDENTITY: return "CREATE_TABLE_LIKE_IDENTITY"; - case CREATE_TABLE_LIKE_INDEXES: return "CREATE_TABLE_LIKE_INDEXES"; - case CREATE_TABLE_LIKE_STATISTICS: return "CREATE_TABLE_LIKE_STATISTICS"; - case CREATE_TABLE_LIKE_STORAGE: return "CREATE_TABLE_LIKE_STORAGE"; - case CREATE_TABLE_LIKE_ALL: return "CREATE_TABLE_LIKE_ALL"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringDefElemAction(DefElemAction value) { - switch(value) { - case DEFELEM_UNSPEC: return "DEFELEM_UNSPEC"; - case DEFELEM_SET: return "DEFELEM_SET"; - case DEFELEM_ADD: return "DEFELEM_ADD"; - case DEFELEM_DROP: return "DEFELEM_DROP"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringPartitionRangeDatumKind(PartitionRangeDatumKind value) { - switch(value) { - case PARTITION_RANGE_DATUM_MINVALUE: return "PARTITION_RANGE_DATUM_MINVALUE"; - case PARTITION_RANGE_DATUM_VALUE: return "PARTITION_RANGE_DATUM_VALUE"; - case PARTITION_RANGE_DATUM_MAXVALUE: return "PARTITION_RANGE_DATUM_MAXVALUE"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringRTEKind(RTEKind value) { - switch(value) { - case RTE_RELATION: return "RTE_RELATION"; - case RTE_SUBQUERY: return "RTE_SUBQUERY"; - case RTE_JOIN: return "RTE_JOIN"; - case RTE_FUNCTION: return "RTE_FUNCTION"; - case RTE_TABLEFUNC: return "RTE_TABLEFUNC"; - case RTE_VALUES: return "RTE_VALUES"; - case RTE_CTE: return "RTE_CTE"; - case RTE_NAMEDTUPLESTORE: return "RTE_NAMEDTUPLESTORE"; - case RTE_RESULT: return "RTE_RESULT"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringWCOKind(WCOKind value) { - switch(value) { - case WCO_VIEW_CHECK: return "WCO_VIEW_CHECK"; - case WCO_RLS_INSERT_CHECK: return "WCO_RLS_INSERT_CHECK"; - case WCO_RLS_UPDATE_CHECK: return "WCO_RLS_UPDATE_CHECK"; - case WCO_RLS_CONFLICT_CHECK: return "WCO_RLS_CONFLICT_CHECK"; - case WCO_RLS_MERGE_UPDATE_CHECK: return "WCO_RLS_MERGE_UPDATE_CHECK"; - case WCO_RLS_MERGE_DELETE_CHECK: return "WCO_RLS_MERGE_DELETE_CHECK"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringGroupingSetKind(GroupingSetKind value) { - switch(value) { - case GROUPING_SET_EMPTY: return "GROUPING_SET_EMPTY"; - case GROUPING_SET_SIMPLE: return "GROUPING_SET_SIMPLE"; - case GROUPING_SET_ROLLUP: return "GROUPING_SET_ROLLUP"; - case GROUPING_SET_CUBE: return "GROUPING_SET_CUBE"; - case GROUPING_SET_SETS: return "GROUPING_SET_SETS"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringCTEMaterialize(CTEMaterialize value) { - switch(value) { - case CTEMaterializeDefault: return "CTEMaterializeDefault"; - case CTEMaterializeAlways: return "CTEMaterializeAlways"; - case CTEMaterializeNever: return "CTEMaterializeNever"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringSetOperation(SetOperation value) { - switch(value) { - case SETOP_NONE: return "SETOP_NONE"; - case SETOP_UNION: return "SETOP_UNION"; - case SETOP_INTERSECT: return "SETOP_INTERSECT"; - case SETOP_EXCEPT: return "SETOP_EXCEPT"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringObjectType(ObjectType value) { - switch(value) { - case OBJECT_ACCESS_METHOD: return "OBJECT_ACCESS_METHOD"; - case OBJECT_AGGREGATE: return "OBJECT_AGGREGATE"; - case OBJECT_AMOP: return "OBJECT_AMOP"; - case OBJECT_AMPROC: return "OBJECT_AMPROC"; - case OBJECT_ATTRIBUTE: return "OBJECT_ATTRIBUTE"; - case OBJECT_CAST: return "OBJECT_CAST"; - case OBJECT_COLUMN: return "OBJECT_COLUMN"; - case OBJECT_COLLATION: return "OBJECT_COLLATION"; - case OBJECT_CONVERSION: return "OBJECT_CONVERSION"; - case OBJECT_DATABASE: return "OBJECT_DATABASE"; - case OBJECT_DEFAULT: return "OBJECT_DEFAULT"; - case OBJECT_DEFACL: return "OBJECT_DEFACL"; - case OBJECT_DOMAIN: return "OBJECT_DOMAIN"; - case OBJECT_DOMCONSTRAINT: return "OBJECT_DOMCONSTRAINT"; - case OBJECT_EVENT_TRIGGER: return "OBJECT_EVENT_TRIGGER"; - case OBJECT_EXTENSION: return "OBJECT_EXTENSION"; - case OBJECT_FDW: return "OBJECT_FDW"; - case OBJECT_FOREIGN_SERVER: return "OBJECT_FOREIGN_SERVER"; - case OBJECT_FOREIGN_TABLE: return "OBJECT_FOREIGN_TABLE"; - case OBJECT_FUNCTION: return "OBJECT_FUNCTION"; - case OBJECT_INDEX: return "OBJECT_INDEX"; - case OBJECT_LANGUAGE: return "OBJECT_LANGUAGE"; - case OBJECT_LARGEOBJECT: return "OBJECT_LARGEOBJECT"; - case OBJECT_MATVIEW: return "OBJECT_MATVIEW"; - case OBJECT_OPCLASS: return "OBJECT_OPCLASS"; - case OBJECT_OPERATOR: return "OBJECT_OPERATOR"; - case OBJECT_OPFAMILY: return "OBJECT_OPFAMILY"; - case OBJECT_PARAMETER_ACL: return "OBJECT_PARAMETER_ACL"; - case OBJECT_POLICY: return "OBJECT_POLICY"; - case OBJECT_PROCEDURE: return "OBJECT_PROCEDURE"; - case OBJECT_PUBLICATION: return "OBJECT_PUBLICATION"; - case OBJECT_PUBLICATION_NAMESPACE: return "OBJECT_PUBLICATION_NAMESPACE"; - case OBJECT_PUBLICATION_REL: return "OBJECT_PUBLICATION_REL"; - case OBJECT_ROLE: return "OBJECT_ROLE"; - case OBJECT_ROUTINE: return "OBJECT_ROUTINE"; - case OBJECT_RULE: return "OBJECT_RULE"; - case OBJECT_SCHEMA: return "OBJECT_SCHEMA"; - case OBJECT_SEQUENCE: return "OBJECT_SEQUENCE"; - case OBJECT_SUBSCRIPTION: return "OBJECT_SUBSCRIPTION"; - case OBJECT_STATISTIC_EXT: return "OBJECT_STATISTIC_EXT"; - case OBJECT_TABCONSTRAINT: return "OBJECT_TABCONSTRAINT"; - case OBJECT_TABLE: return "OBJECT_TABLE"; - case OBJECT_TABLESPACE: return "OBJECT_TABLESPACE"; - case OBJECT_TRANSFORM: return "OBJECT_TRANSFORM"; - case OBJECT_TRIGGER: return "OBJECT_TRIGGER"; - case OBJECT_TSCONFIGURATION: return "OBJECT_TSCONFIGURATION"; - case OBJECT_TSDICTIONARY: return "OBJECT_TSDICTIONARY"; - case OBJECT_TSPARSER: return "OBJECT_TSPARSER"; - case OBJECT_TSTEMPLATE: return "OBJECT_TSTEMPLATE"; - case OBJECT_TYPE: return "OBJECT_TYPE"; - case OBJECT_USER_MAPPING: return "OBJECT_USER_MAPPING"; - case OBJECT_VIEW: return "OBJECT_VIEW"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringDropBehavior(DropBehavior value) { - switch(value) { - case DROP_RESTRICT: return "DROP_RESTRICT"; - case DROP_CASCADE: return "DROP_CASCADE"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringAlterTableType(AlterTableType value) { - switch(value) { - case AT_AddColumn: return "AT_AddColumn"; - case AT_AddColumnRecurse: return "AT_AddColumnRecurse"; - case AT_AddColumnToView: return "AT_AddColumnToView"; - case AT_ColumnDefault: return "AT_ColumnDefault"; - case AT_CookedColumnDefault: return "AT_CookedColumnDefault"; - case AT_DropNotNull: return "AT_DropNotNull"; - case AT_SetNotNull: return "AT_SetNotNull"; - case AT_DropExpression: return "AT_DropExpression"; - case AT_CheckNotNull: return "AT_CheckNotNull"; - case AT_SetStatistics: return "AT_SetStatistics"; - case AT_SetOptions: return "AT_SetOptions"; - case AT_ResetOptions: return "AT_ResetOptions"; - case AT_SetStorage: return "AT_SetStorage"; - case AT_SetCompression: return "AT_SetCompression"; - case AT_DropColumn: return "AT_DropColumn"; - case AT_DropColumnRecurse: return "AT_DropColumnRecurse"; - case AT_AddIndex: return "AT_AddIndex"; - case AT_ReAddIndex: return "AT_ReAddIndex"; - case AT_AddConstraint: return "AT_AddConstraint"; - case AT_AddConstraintRecurse: return "AT_AddConstraintRecurse"; - case AT_ReAddConstraint: return "AT_ReAddConstraint"; - case AT_ReAddDomainConstraint: return "AT_ReAddDomainConstraint"; - case AT_AlterConstraint: return "AT_AlterConstraint"; - case AT_ValidateConstraint: return "AT_ValidateConstraint"; - case AT_ValidateConstraintRecurse: return "AT_ValidateConstraintRecurse"; - case AT_AddIndexConstraint: return "AT_AddIndexConstraint"; - case AT_DropConstraint: return "AT_DropConstraint"; - case AT_DropConstraintRecurse: return "AT_DropConstraintRecurse"; - case AT_ReAddComment: return "AT_ReAddComment"; - case AT_AlterColumnType: return "AT_AlterColumnType"; - case AT_AlterColumnGenericOptions: return "AT_AlterColumnGenericOptions"; - case AT_ChangeOwner: return "AT_ChangeOwner"; - case AT_ClusterOn: return "AT_ClusterOn"; - case AT_DropCluster: return "AT_DropCluster"; - case AT_SetLogged: return "AT_SetLogged"; - case AT_SetUnLogged: return "AT_SetUnLogged"; - case AT_DropOids: return "AT_DropOids"; - case AT_SetAccessMethod: return "AT_SetAccessMethod"; - case AT_SetTableSpace: return "AT_SetTableSpace"; - case AT_SetRelOptions: return "AT_SetRelOptions"; - case AT_ResetRelOptions: return "AT_ResetRelOptions"; - case AT_ReplaceRelOptions: return "AT_ReplaceRelOptions"; - case AT_EnableTrig: return "AT_EnableTrig"; - case AT_EnableAlwaysTrig: return "AT_EnableAlwaysTrig"; - case AT_EnableReplicaTrig: return "AT_EnableReplicaTrig"; - case AT_DisableTrig: return "AT_DisableTrig"; - case AT_EnableTrigAll: return "AT_EnableTrigAll"; - case AT_DisableTrigAll: return "AT_DisableTrigAll"; - case AT_EnableTrigUser: return "AT_EnableTrigUser"; - case AT_DisableTrigUser: return "AT_DisableTrigUser"; - case AT_EnableRule: return "AT_EnableRule"; - case AT_EnableAlwaysRule: return "AT_EnableAlwaysRule"; - case AT_EnableReplicaRule: return "AT_EnableReplicaRule"; - case AT_DisableRule: return "AT_DisableRule"; - case AT_AddInherit: return "AT_AddInherit"; - case AT_DropInherit: return "AT_DropInherit"; - case AT_AddOf: return "AT_AddOf"; - case AT_DropOf: return "AT_DropOf"; - case AT_ReplicaIdentity: return "AT_ReplicaIdentity"; - case AT_EnableRowSecurity: return "AT_EnableRowSecurity"; - case AT_DisableRowSecurity: return "AT_DisableRowSecurity"; - case AT_ForceRowSecurity: return "AT_ForceRowSecurity"; - case AT_NoForceRowSecurity: return "AT_NoForceRowSecurity"; - case AT_GenericOptions: return "AT_GenericOptions"; - case AT_AttachPartition: return "AT_AttachPartition"; - case AT_DetachPartition: return "AT_DetachPartition"; - case AT_DetachPartitionFinalize: return "AT_DetachPartitionFinalize"; - case AT_AddIdentity: return "AT_AddIdentity"; - case AT_SetIdentity: return "AT_SetIdentity"; - case AT_DropIdentity: return "AT_DropIdentity"; - case AT_ReAddStatistics: return "AT_ReAddStatistics"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringGrantTargetType(GrantTargetType value) { - switch(value) { - case ACL_TARGET_OBJECT: return "ACL_TARGET_OBJECT"; - case ACL_TARGET_ALL_IN_SCHEMA: return "ACL_TARGET_ALL_IN_SCHEMA"; - case ACL_TARGET_DEFAULTS: return "ACL_TARGET_DEFAULTS"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringVariableSetKind(VariableSetKind value) { - switch(value) { - case VAR_SET_VALUE: return "VAR_SET_VALUE"; - case VAR_SET_DEFAULT: return "VAR_SET_DEFAULT"; - case VAR_SET_CURRENT: return "VAR_SET_CURRENT"; - case VAR_SET_MULTI: return "VAR_SET_MULTI"; - case VAR_RESET: return "VAR_RESET"; - case VAR_RESET_ALL: return "VAR_RESET_ALL"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringConstrType(ConstrType value) { - switch(value) { - case CONSTR_NULL: return "CONSTR_NULL"; - case CONSTR_NOTNULL: return "CONSTR_NOTNULL"; - case CONSTR_DEFAULT: return "CONSTR_DEFAULT"; - case CONSTR_IDENTITY: return "CONSTR_IDENTITY"; - case CONSTR_GENERATED: return "CONSTR_GENERATED"; - case CONSTR_CHECK: return "CONSTR_CHECK"; - case CONSTR_PRIMARY: return "CONSTR_PRIMARY"; - case CONSTR_UNIQUE: return "CONSTR_UNIQUE"; - case CONSTR_EXCLUSION: return "CONSTR_EXCLUSION"; - case CONSTR_FOREIGN: return "CONSTR_FOREIGN"; - case CONSTR_ATTR_DEFERRABLE: return "CONSTR_ATTR_DEFERRABLE"; - case CONSTR_ATTR_NOT_DEFERRABLE: return "CONSTR_ATTR_NOT_DEFERRABLE"; - case CONSTR_ATTR_DEFERRED: return "CONSTR_ATTR_DEFERRED"; - case CONSTR_ATTR_IMMEDIATE: return "CONSTR_ATTR_IMMEDIATE"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringImportForeignSchemaType(ImportForeignSchemaType value) { - switch(value) { - case FDW_IMPORT_SCHEMA_ALL: return "FDW_IMPORT_SCHEMA_ALL"; - case FDW_IMPORT_SCHEMA_LIMIT_TO: return "FDW_IMPORT_SCHEMA_LIMIT_TO"; - case FDW_IMPORT_SCHEMA_EXCEPT: return "FDW_IMPORT_SCHEMA_EXCEPT"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringRoleStmtType(RoleStmtType value) { - switch(value) { - case ROLESTMT_ROLE: return "ROLESTMT_ROLE"; - case ROLESTMT_USER: return "ROLESTMT_USER"; - case ROLESTMT_GROUP: return "ROLESTMT_GROUP"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringFetchDirection(FetchDirection value) { - switch(value) { - case FETCH_FORWARD: return "FETCH_FORWARD"; - case FETCH_BACKWARD: return "FETCH_BACKWARD"; - case FETCH_ABSOLUTE: return "FETCH_ABSOLUTE"; - case FETCH_RELATIVE: return "FETCH_RELATIVE"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringFunctionParameterMode(FunctionParameterMode value) { - switch(value) { - case FUNC_PARAM_IN: return "FUNC_PARAM_IN"; - case FUNC_PARAM_OUT: return "FUNC_PARAM_OUT"; - case FUNC_PARAM_INOUT: return "FUNC_PARAM_INOUT"; - case FUNC_PARAM_VARIADIC: return "FUNC_PARAM_VARIADIC"; - case FUNC_PARAM_TABLE: return "FUNC_PARAM_TABLE"; - case FUNC_PARAM_DEFAULT: return "FUNC_PARAM_DEFAULT"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringTransactionStmtKind(TransactionStmtKind value) { - switch(value) { - case TRANS_STMT_BEGIN: return "TRANS_STMT_BEGIN"; - case TRANS_STMT_START: return "TRANS_STMT_START"; - case TRANS_STMT_COMMIT: return "TRANS_STMT_COMMIT"; - case TRANS_STMT_ROLLBACK: return "TRANS_STMT_ROLLBACK"; - case TRANS_STMT_SAVEPOINT: return "TRANS_STMT_SAVEPOINT"; - case TRANS_STMT_RELEASE: return "TRANS_STMT_RELEASE"; - case TRANS_STMT_ROLLBACK_TO: return "TRANS_STMT_ROLLBACK_TO"; - case TRANS_STMT_PREPARE: return "TRANS_STMT_PREPARE"; - case TRANS_STMT_COMMIT_PREPARED: return "TRANS_STMT_COMMIT_PREPARED"; - case TRANS_STMT_ROLLBACK_PREPARED: return "TRANS_STMT_ROLLBACK_PREPARED"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringViewCheckOption(ViewCheckOption value) { - switch(value) { - case NO_CHECK_OPTION: return "NO_CHECK_OPTION"; - case LOCAL_CHECK_OPTION: return "LOCAL_CHECK_OPTION"; - case CASCADED_CHECK_OPTION: return "CASCADED_CHECK_OPTION"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringDiscardMode(DiscardMode value) { - switch(value) { - case DISCARD_ALL: return "DISCARD_ALL"; - case DISCARD_PLANS: return "DISCARD_PLANS"; - case DISCARD_SEQUENCES: return "DISCARD_SEQUENCES"; - case DISCARD_TEMP: return "DISCARD_TEMP"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringReindexObjectType(ReindexObjectType value) { - switch(value) { - case REINDEX_OBJECT_INDEX: return "REINDEX_OBJECT_INDEX"; - case REINDEX_OBJECT_TABLE: return "REINDEX_OBJECT_TABLE"; - case REINDEX_OBJECT_SCHEMA: return "REINDEX_OBJECT_SCHEMA"; - case REINDEX_OBJECT_SYSTEM: return "REINDEX_OBJECT_SYSTEM"; - case REINDEX_OBJECT_DATABASE: return "REINDEX_OBJECT_DATABASE"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringAlterTSConfigType(AlterTSConfigType value) { - switch(value) { - case ALTER_TSCONFIG_ADD_MAPPING: return "ALTER_TSCONFIG_ADD_MAPPING"; - case ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN: return "ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN"; - case ALTER_TSCONFIG_REPLACE_DICT: return "ALTER_TSCONFIG_REPLACE_DICT"; - case ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN: return "ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN"; - case ALTER_TSCONFIG_DROP_MAPPING: return "ALTER_TSCONFIG_DROP_MAPPING"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringPublicationObjSpecType(PublicationObjSpecType value) { - switch(value) { - case PUBLICATIONOBJ_TABLE: return "PUBLICATIONOBJ_TABLE"; - case PUBLICATIONOBJ_TABLES_IN_SCHEMA: return "PUBLICATIONOBJ_TABLES_IN_SCHEMA"; - case PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA: return "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA"; - case PUBLICATIONOBJ_CONTINUATION: return "PUBLICATIONOBJ_CONTINUATION"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringAlterPublicationAction(AlterPublicationAction value) { - switch(value) { - case AP_AddObjects: return "AP_AddObjects"; - case AP_DropObjects: return "AP_DropObjects"; - case AP_SetObjects: return "AP_SetObjects"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringAlterSubscriptionType(AlterSubscriptionType value) { - switch(value) { - case ALTER_SUBSCRIPTION_OPTIONS: return "ALTER_SUBSCRIPTION_OPTIONS"; - case ALTER_SUBSCRIPTION_CONNECTION: return "ALTER_SUBSCRIPTION_CONNECTION"; - case ALTER_SUBSCRIPTION_SET_PUBLICATION: return "ALTER_SUBSCRIPTION_SET_PUBLICATION"; - case ALTER_SUBSCRIPTION_ADD_PUBLICATION: return "ALTER_SUBSCRIPTION_ADD_PUBLICATION"; - case ALTER_SUBSCRIPTION_DROP_PUBLICATION: return "ALTER_SUBSCRIPTION_DROP_PUBLICATION"; - case ALTER_SUBSCRIPTION_REFRESH: return "ALTER_SUBSCRIPTION_REFRESH"; - case ALTER_SUBSCRIPTION_ENABLED: return "ALTER_SUBSCRIPTION_ENABLED"; - case ALTER_SUBSCRIPTION_SKIP: return "ALTER_SUBSCRIPTION_SKIP"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringOnCommitAction(OnCommitAction value) { - switch(value) { - case ONCOMMIT_NOOP: return "ONCOMMIT_NOOP"; - case ONCOMMIT_PRESERVE_ROWS: return "ONCOMMIT_PRESERVE_ROWS"; - case ONCOMMIT_DELETE_ROWS: return "ONCOMMIT_DELETE_ROWS"; - case ONCOMMIT_DROP: return "ONCOMMIT_DROP"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringParamKind(ParamKind value) { - switch(value) { - case PARAM_EXTERN: return "PARAM_EXTERN"; - case PARAM_EXEC: return "PARAM_EXEC"; - case PARAM_SUBLINK: return "PARAM_SUBLINK"; - case PARAM_MULTIEXPR: return "PARAM_MULTIEXPR"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringCoercionContext(CoercionContext value) { - switch(value) { - case COERCION_IMPLICIT: return "COERCION_IMPLICIT"; - case COERCION_ASSIGNMENT: return "COERCION_ASSIGNMENT"; - case COERCION_PLPGSQL: return "COERCION_PLPGSQL"; - case COERCION_EXPLICIT: return "COERCION_EXPLICIT"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringCoercionForm(CoercionForm value) { - switch(value) { - case COERCE_EXPLICIT_CALL: return "COERCE_EXPLICIT_CALL"; - case COERCE_EXPLICIT_CAST: return "COERCE_EXPLICIT_CAST"; - case COERCE_IMPLICIT_CAST: return "COERCE_IMPLICIT_CAST"; - case COERCE_SQL_SYNTAX: return "COERCE_SQL_SYNTAX"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringBoolExprType(BoolExprType value) { - switch(value) { - case AND_EXPR: return "AND_EXPR"; - case OR_EXPR: return "OR_EXPR"; - case NOT_EXPR: return "NOT_EXPR"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringSubLinkType(SubLinkType value) { - switch(value) { - case EXISTS_SUBLINK: return "EXISTS_SUBLINK"; - case ALL_SUBLINK: return "ALL_SUBLINK"; - case ANY_SUBLINK: return "ANY_SUBLINK"; - case ROWCOMPARE_SUBLINK: return "ROWCOMPARE_SUBLINK"; - case EXPR_SUBLINK: return "EXPR_SUBLINK"; - case MULTIEXPR_SUBLINK: return "MULTIEXPR_SUBLINK"; - case ARRAY_SUBLINK: return "ARRAY_SUBLINK"; - case CTE_SUBLINK: return "CTE_SUBLINK"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringRowCompareType(RowCompareType value) { - switch(value) { - case ROWCOMPARE_LT: return "ROWCOMPARE_LT"; - case ROWCOMPARE_LE: return "ROWCOMPARE_LE"; - case ROWCOMPARE_EQ: return "ROWCOMPARE_EQ"; - case ROWCOMPARE_GE: return "ROWCOMPARE_GE"; - case ROWCOMPARE_GT: return "ROWCOMPARE_GT"; - case ROWCOMPARE_NE: return "ROWCOMPARE_NE"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringMinMaxOp(MinMaxOp value) { - switch(value) { - case IS_GREATEST: return "IS_GREATEST"; - case IS_LEAST: return "IS_LEAST"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringSQLValueFunctionOp(SQLValueFunctionOp value) { - switch(value) { - case SVFOP_CURRENT_DATE: return "SVFOP_CURRENT_DATE"; - case SVFOP_CURRENT_TIME: return "SVFOP_CURRENT_TIME"; - case SVFOP_CURRENT_TIME_N: return "SVFOP_CURRENT_TIME_N"; - case SVFOP_CURRENT_TIMESTAMP: return "SVFOP_CURRENT_TIMESTAMP"; - case SVFOP_CURRENT_TIMESTAMP_N: return "SVFOP_CURRENT_TIMESTAMP_N"; - case SVFOP_LOCALTIME: return "SVFOP_LOCALTIME"; - case SVFOP_LOCALTIME_N: return "SVFOP_LOCALTIME_N"; - case SVFOP_LOCALTIMESTAMP: return "SVFOP_LOCALTIMESTAMP"; - case SVFOP_LOCALTIMESTAMP_N: return "SVFOP_LOCALTIMESTAMP_N"; - case SVFOP_CURRENT_ROLE: return "SVFOP_CURRENT_ROLE"; - case SVFOP_CURRENT_USER: return "SVFOP_CURRENT_USER"; - case SVFOP_USER: return "SVFOP_USER"; - case SVFOP_SESSION_USER: return "SVFOP_SESSION_USER"; - case SVFOP_CURRENT_CATALOG: return "SVFOP_CURRENT_CATALOG"; - case SVFOP_CURRENT_SCHEMA: return "SVFOP_CURRENT_SCHEMA"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringXmlExprOp(XmlExprOp value) { - switch(value) { - case IS_XMLCONCAT: return "IS_XMLCONCAT"; - case IS_XMLELEMENT: return "IS_XMLELEMENT"; - case IS_XMLFOREST: return "IS_XMLFOREST"; - case IS_XMLPARSE: return "IS_XMLPARSE"; - case IS_XMLPI: return "IS_XMLPI"; - case IS_XMLROOT: return "IS_XMLROOT"; - case IS_XMLSERIALIZE: return "IS_XMLSERIALIZE"; - case IS_DOCUMENT: return "IS_DOCUMENT"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringXmlOptionType(XmlOptionType value) { - switch(value) { - case XMLOPTION_DOCUMENT: return "XMLOPTION_DOCUMENT"; - case XMLOPTION_CONTENT: return "XMLOPTION_CONTENT"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringNullTestType(NullTestType value) { - switch(value) { - case IS_NULL: return "IS_NULL"; - case IS_NOT_NULL: return "IS_NOT_NULL"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringBoolTestType(BoolTestType value) { - switch(value) { - case IS_TRUE: return "IS_TRUE"; - case IS_NOT_TRUE: return "IS_NOT_TRUE"; - case IS_FALSE: return "IS_FALSE"; - case IS_NOT_FALSE: return "IS_NOT_FALSE"; - case IS_UNKNOWN: return "IS_UNKNOWN"; - case IS_NOT_UNKNOWN: return "IS_NOT_UNKNOWN"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringCmdType(CmdType value) { - switch(value) { - case CMD_UNKNOWN: return "CMD_UNKNOWN"; - case CMD_SELECT: return "CMD_SELECT"; - case CMD_UPDATE: return "CMD_UPDATE"; - case CMD_INSERT: return "CMD_INSERT"; - case CMD_DELETE: return "CMD_DELETE"; - case CMD_MERGE: return "CMD_MERGE"; - case CMD_UTILITY: return "CMD_UTILITY"; - case CMD_NOTHING: return "CMD_NOTHING"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringJoinType(JoinType value) { - switch(value) { - case JOIN_INNER: return "JOIN_INNER"; - case JOIN_LEFT: return "JOIN_LEFT"; - case JOIN_FULL: return "JOIN_FULL"; - case JOIN_RIGHT: return "JOIN_RIGHT"; - case JOIN_SEMI: return "JOIN_SEMI"; - case JOIN_ANTI: return "JOIN_ANTI"; - case JOIN_UNIQUE_OUTER: return "JOIN_UNIQUE_OUTER"; - case JOIN_UNIQUE_INNER: return "JOIN_UNIQUE_INNER"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringAggStrategy(AggStrategy value) { - switch(value) { - case AGG_PLAIN: return "AGG_PLAIN"; - case AGG_SORTED: return "AGG_SORTED"; - case AGG_HASHED: return "AGG_HASHED"; - case AGG_MIXED: return "AGG_MIXED"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringAggSplit(AggSplit value) { - switch(value) { - case AGGSPLIT_SIMPLE: return "AGGSPLIT_SIMPLE"; - case AGGSPLIT_INITIAL_SERIAL: return "AGGSPLIT_INITIAL_SERIAL"; - case AGGSPLIT_FINAL_DESERIAL: return "AGGSPLIT_FINAL_DESERIAL"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringSetOpCmd(SetOpCmd value) { - switch(value) { - case SETOPCMD_INTERSECT: return "SETOPCMD_INTERSECT"; - case SETOPCMD_INTERSECT_ALL: return "SETOPCMD_INTERSECT_ALL"; - case SETOPCMD_EXCEPT: return "SETOPCMD_EXCEPT"; - case SETOPCMD_EXCEPT_ALL: return "SETOPCMD_EXCEPT_ALL"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringSetOpStrategy(SetOpStrategy value) { - switch(value) { - case SETOP_SORTED: return "SETOP_SORTED"; - case SETOP_HASHED: return "SETOP_HASHED"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringOnConflictAction(OnConflictAction value) { - switch(value) { - case ONCONFLICT_NONE: return "ONCONFLICT_NONE"; - case ONCONFLICT_NOTHING: return "ONCONFLICT_NOTHING"; - case ONCONFLICT_UPDATE: return "ONCONFLICT_UPDATE"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringLimitOption(LimitOption value) { - switch(value) { - case LIMIT_OPTION_DEFAULT: return "LIMIT_OPTION_DEFAULT"; - case LIMIT_OPTION_COUNT: return "LIMIT_OPTION_COUNT"; - case LIMIT_OPTION_WITH_TIES: return "LIMIT_OPTION_WITH_TIES"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringLockClauseStrength(LockClauseStrength value) { - switch(value) { - case LCS_NONE: return "LCS_NONE"; - case LCS_FORKEYSHARE: return "LCS_FORKEYSHARE"; - case LCS_FORSHARE: return "LCS_FORSHARE"; - case LCS_FORNOKEYUPDATE: return "LCS_FORNOKEYUPDATE"; - case LCS_FORUPDATE: return "LCS_FORUPDATE"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringLockWaitPolicy(LockWaitPolicy value) { - switch(value) { - case LockWaitBlock: return "LockWaitBlock"; - case LockWaitSkip: return "LockWaitSkip"; - case LockWaitError: return "LockWaitError"; - } - Assert(false); - return NULL; -} - -static const char* -_enumToStringLockTupleMode(LockTupleMode value) { - switch(value) { - case LockTupleKeyShare: return "LockTupleKeyShare"; - case LockTupleShare: return "LockTupleShare"; - case LockTupleNoKeyExclusive: return "LockTupleNoKeyExclusive"; - case LockTupleExclusive: return "LockTupleExclusive"; - } - Assert(false); - return NULL; -}static int -_enumToIntOverridingKind(OverridingKind value) { - switch(value) { - case OVERRIDING_NOT_SET: return 1; - case OVERRIDING_USER_VALUE: return 2; - case OVERRIDING_SYSTEM_VALUE: return 3; - } - Assert(false); - return -1; -} - -static int -_enumToIntQuerySource(QuerySource value) { - switch(value) { - case QSRC_ORIGINAL: return 1; - case QSRC_PARSER: return 2; - case QSRC_INSTEAD_RULE: return 3; - case QSRC_QUAL_INSTEAD_RULE: return 4; - case QSRC_NON_INSTEAD_RULE: return 5; - } - Assert(false); - return -1; -} - -static int -_enumToIntSortByDir(SortByDir value) { - switch(value) { - case SORTBY_DEFAULT: return 1; - case SORTBY_ASC: return 2; - case SORTBY_DESC: return 3; - case SORTBY_USING: return 4; - } - Assert(false); - return -1; -} - -static int -_enumToIntSortByNulls(SortByNulls value) { - switch(value) { - case SORTBY_NULLS_DEFAULT: return 1; - case SORTBY_NULLS_FIRST: return 2; - case SORTBY_NULLS_LAST: return 3; - } - Assert(false); - return -1; -} - -static int -_enumToIntSetQuantifier(SetQuantifier value) { - switch(value) { - case SET_QUANTIFIER_DEFAULT: return 1; - case SET_QUANTIFIER_ALL: return 2; - case SET_QUANTIFIER_DISTINCT: return 3; - } - Assert(false); - return -1; -} - -static int -_enumToIntA_Expr_Kind(A_Expr_Kind value) { - switch(value) { - case AEXPR_OP: return 1; - case AEXPR_OP_ANY: return 2; - case AEXPR_OP_ALL: return 3; - case AEXPR_DISTINCT: return 4; - case AEXPR_NOT_DISTINCT: return 5; - case AEXPR_NULLIF: return 6; - case AEXPR_IN: return 7; - case AEXPR_LIKE: return 8; - case AEXPR_ILIKE: return 9; - case AEXPR_SIMILAR: return 10; - case AEXPR_BETWEEN: return 11; - case AEXPR_NOT_BETWEEN: return 12; - case AEXPR_BETWEEN_SYM: return 13; - case AEXPR_NOT_BETWEEN_SYM: return 14; - } - Assert(false); - return -1; -} - -static int -_enumToIntRoleSpecType(RoleSpecType value) { - switch(value) { - case ROLESPEC_CSTRING: return 1; - case ROLESPEC_CURRENT_ROLE: return 2; - case ROLESPEC_CURRENT_USER: return 3; - case ROLESPEC_SESSION_USER: return 4; - case ROLESPEC_PUBLIC: return 5; - } - Assert(false); - return -1; -} - -static int -_enumToIntTableLikeOption(TableLikeOption value) { - switch(value) { - case CREATE_TABLE_LIKE_COMMENTS: return 1; - case CREATE_TABLE_LIKE_COMPRESSION: return 2; - case CREATE_TABLE_LIKE_CONSTRAINTS: return 3; - case CREATE_TABLE_LIKE_DEFAULTS: return 4; - case CREATE_TABLE_LIKE_GENERATED: return 5; - case CREATE_TABLE_LIKE_IDENTITY: return 6; - case CREATE_TABLE_LIKE_INDEXES: return 7; - case CREATE_TABLE_LIKE_STATISTICS: return 8; - case CREATE_TABLE_LIKE_STORAGE: return 9; - case CREATE_TABLE_LIKE_ALL: return 10; - } - Assert(false); - return -1; -} - -static int -_enumToIntDefElemAction(DefElemAction value) { - switch(value) { - case DEFELEM_UNSPEC: return 1; - case DEFELEM_SET: return 2; - case DEFELEM_ADD: return 3; - case DEFELEM_DROP: return 4; - } - Assert(false); - return -1; -} - -static int -_enumToIntPartitionRangeDatumKind(PartitionRangeDatumKind value) { - switch(value) { - case PARTITION_RANGE_DATUM_MINVALUE: return 1; - case PARTITION_RANGE_DATUM_VALUE: return 2; - case PARTITION_RANGE_DATUM_MAXVALUE: return 3; - } - Assert(false); - return -1; -} - -static int -_enumToIntRTEKind(RTEKind value) { - switch(value) { - case RTE_RELATION: return 1; - case RTE_SUBQUERY: return 2; - case RTE_JOIN: return 3; - case RTE_FUNCTION: return 4; - case RTE_TABLEFUNC: return 5; - case RTE_VALUES: return 6; - case RTE_CTE: return 7; - case RTE_NAMEDTUPLESTORE: return 8; - case RTE_RESULT: return 9; - } - Assert(false); - return -1; -} - -static int -_enumToIntWCOKind(WCOKind value) { - switch(value) { - case WCO_VIEW_CHECK: return 1; - case WCO_RLS_INSERT_CHECK: return 2; - case WCO_RLS_UPDATE_CHECK: return 3; - case WCO_RLS_CONFLICT_CHECK: return 4; - case WCO_RLS_MERGE_UPDATE_CHECK: return 5; - case WCO_RLS_MERGE_DELETE_CHECK: return 6; - } - Assert(false); - return -1; -} - -static int -_enumToIntGroupingSetKind(GroupingSetKind value) { - switch(value) { - case GROUPING_SET_EMPTY: return 1; - case GROUPING_SET_SIMPLE: return 2; - case GROUPING_SET_ROLLUP: return 3; - case GROUPING_SET_CUBE: return 4; - case GROUPING_SET_SETS: return 5; - } - Assert(false); - return -1; -} - -static int -_enumToIntCTEMaterialize(CTEMaterialize value) { - switch(value) { - case CTEMaterializeDefault: return 1; - case CTEMaterializeAlways: return 2; - case CTEMaterializeNever: return 3; - } - Assert(false); - return -1; -} - -static int -_enumToIntSetOperation(SetOperation value) { - switch(value) { - case SETOP_NONE: return 1; - case SETOP_UNION: return 2; - case SETOP_INTERSECT: return 3; - case SETOP_EXCEPT: return 4; - } - Assert(false); - return -1; -} - -static int -_enumToIntObjectType(ObjectType value) { - switch(value) { - case OBJECT_ACCESS_METHOD: return 1; - case OBJECT_AGGREGATE: return 2; - case OBJECT_AMOP: return 3; - case OBJECT_AMPROC: return 4; - case OBJECT_ATTRIBUTE: return 5; - case OBJECT_CAST: return 6; - case OBJECT_COLUMN: return 7; - case OBJECT_COLLATION: return 8; - case OBJECT_CONVERSION: return 9; - case OBJECT_DATABASE: return 10; - case OBJECT_DEFAULT: return 11; - case OBJECT_DEFACL: return 12; - case OBJECT_DOMAIN: return 13; - case OBJECT_DOMCONSTRAINT: return 14; - case OBJECT_EVENT_TRIGGER: return 15; - case OBJECT_EXTENSION: return 16; - case OBJECT_FDW: return 17; - case OBJECT_FOREIGN_SERVER: return 18; - case OBJECT_FOREIGN_TABLE: return 19; - case OBJECT_FUNCTION: return 20; - case OBJECT_INDEX: return 21; - case OBJECT_LANGUAGE: return 22; - case OBJECT_LARGEOBJECT: return 23; - case OBJECT_MATVIEW: return 24; - case OBJECT_OPCLASS: return 25; - case OBJECT_OPERATOR: return 26; - case OBJECT_OPFAMILY: return 27; - case OBJECT_PARAMETER_ACL: return 28; - case OBJECT_POLICY: return 29; - case OBJECT_PROCEDURE: return 30; - case OBJECT_PUBLICATION: return 31; - case OBJECT_PUBLICATION_NAMESPACE: return 32; - case OBJECT_PUBLICATION_REL: return 33; - case OBJECT_ROLE: return 34; - case OBJECT_ROUTINE: return 35; - case OBJECT_RULE: return 36; - case OBJECT_SCHEMA: return 37; - case OBJECT_SEQUENCE: return 38; - case OBJECT_SUBSCRIPTION: return 39; - case OBJECT_STATISTIC_EXT: return 40; - case OBJECT_TABCONSTRAINT: return 41; - case OBJECT_TABLE: return 42; - case OBJECT_TABLESPACE: return 43; - case OBJECT_TRANSFORM: return 44; - case OBJECT_TRIGGER: return 45; - case OBJECT_TSCONFIGURATION: return 46; - case OBJECT_TSDICTIONARY: return 47; - case OBJECT_TSPARSER: return 48; - case OBJECT_TSTEMPLATE: return 49; - case OBJECT_TYPE: return 50; - case OBJECT_USER_MAPPING: return 51; - case OBJECT_VIEW: return 52; - } - Assert(false); - return -1; -} - -static int -_enumToIntDropBehavior(DropBehavior value) { - switch(value) { - case DROP_RESTRICT: return 1; - case DROP_CASCADE: return 2; - } - Assert(false); - return -1; -} - -static int -_enumToIntAlterTableType(AlterTableType value) { - switch(value) { - case AT_AddColumn: return 1; - case AT_AddColumnRecurse: return 2; - case AT_AddColumnToView: return 3; - case AT_ColumnDefault: return 4; - case AT_CookedColumnDefault: return 5; - case AT_DropNotNull: return 6; - case AT_SetNotNull: return 7; - case AT_DropExpression: return 8; - case AT_CheckNotNull: return 9; - case AT_SetStatistics: return 10; - case AT_SetOptions: return 11; - case AT_ResetOptions: return 12; - case AT_SetStorage: return 13; - case AT_SetCompression: return 14; - case AT_DropColumn: return 15; - case AT_DropColumnRecurse: return 16; - case AT_AddIndex: return 17; - case AT_ReAddIndex: return 18; - case AT_AddConstraint: return 19; - case AT_AddConstraintRecurse: return 20; - case AT_ReAddConstraint: return 21; - case AT_ReAddDomainConstraint: return 22; - case AT_AlterConstraint: return 23; - case AT_ValidateConstraint: return 24; - case AT_ValidateConstraintRecurse: return 25; - case AT_AddIndexConstraint: return 26; - case AT_DropConstraint: return 27; - case AT_DropConstraintRecurse: return 28; - case AT_ReAddComment: return 29; - case AT_AlterColumnType: return 30; - case AT_AlterColumnGenericOptions: return 31; - case AT_ChangeOwner: return 32; - case AT_ClusterOn: return 33; - case AT_DropCluster: return 34; - case AT_SetLogged: return 35; - case AT_SetUnLogged: return 36; - case AT_DropOids: return 37; - case AT_SetAccessMethod: return 38; - case AT_SetTableSpace: return 39; - case AT_SetRelOptions: return 40; - case AT_ResetRelOptions: return 41; - case AT_ReplaceRelOptions: return 42; - case AT_EnableTrig: return 43; - case AT_EnableAlwaysTrig: return 44; - case AT_EnableReplicaTrig: return 45; - case AT_DisableTrig: return 46; - case AT_EnableTrigAll: return 47; - case AT_DisableTrigAll: return 48; - case AT_EnableTrigUser: return 49; - case AT_DisableTrigUser: return 50; - case AT_EnableRule: return 51; - case AT_EnableAlwaysRule: return 52; - case AT_EnableReplicaRule: return 53; - case AT_DisableRule: return 54; - case AT_AddInherit: return 55; - case AT_DropInherit: return 56; - case AT_AddOf: return 57; - case AT_DropOf: return 58; - case AT_ReplicaIdentity: return 59; - case AT_EnableRowSecurity: return 60; - case AT_DisableRowSecurity: return 61; - case AT_ForceRowSecurity: return 62; - case AT_NoForceRowSecurity: return 63; - case AT_GenericOptions: return 64; - case AT_AttachPartition: return 65; - case AT_DetachPartition: return 66; - case AT_DetachPartitionFinalize: return 67; - case AT_AddIdentity: return 68; - case AT_SetIdentity: return 69; - case AT_DropIdentity: return 70; - case AT_ReAddStatistics: return 71; - } - Assert(false); - return -1; -} - -static int -_enumToIntGrantTargetType(GrantTargetType value) { - switch(value) { - case ACL_TARGET_OBJECT: return 1; - case ACL_TARGET_ALL_IN_SCHEMA: return 2; - case ACL_TARGET_DEFAULTS: return 3; - } - Assert(false); - return -1; -} - -static int -_enumToIntVariableSetKind(VariableSetKind value) { - switch(value) { - case VAR_SET_VALUE: return 1; - case VAR_SET_DEFAULT: return 2; - case VAR_SET_CURRENT: return 3; - case VAR_SET_MULTI: return 4; - case VAR_RESET: return 5; - case VAR_RESET_ALL: return 6; - } - Assert(false); - return -1; -} - -static int -_enumToIntConstrType(ConstrType value) { - switch(value) { - case CONSTR_NULL: return 1; - case CONSTR_NOTNULL: return 2; - case CONSTR_DEFAULT: return 3; - case CONSTR_IDENTITY: return 4; - case CONSTR_GENERATED: return 5; - case CONSTR_CHECK: return 6; - case CONSTR_PRIMARY: return 7; - case CONSTR_UNIQUE: return 8; - case CONSTR_EXCLUSION: return 9; - case CONSTR_FOREIGN: return 10; - case CONSTR_ATTR_DEFERRABLE: return 11; - case CONSTR_ATTR_NOT_DEFERRABLE: return 12; - case CONSTR_ATTR_DEFERRED: return 13; - case CONSTR_ATTR_IMMEDIATE: return 14; - } - Assert(false); - return -1; -} - -static int -_enumToIntImportForeignSchemaType(ImportForeignSchemaType value) { - switch(value) { - case FDW_IMPORT_SCHEMA_ALL: return 1; - case FDW_IMPORT_SCHEMA_LIMIT_TO: return 2; - case FDW_IMPORT_SCHEMA_EXCEPT: return 3; - } - Assert(false); - return -1; -} - -static int -_enumToIntRoleStmtType(RoleStmtType value) { - switch(value) { - case ROLESTMT_ROLE: return 1; - case ROLESTMT_USER: return 2; - case ROLESTMT_GROUP: return 3; - } - Assert(false); - return -1; -} - -static int -_enumToIntFetchDirection(FetchDirection value) { - switch(value) { - case FETCH_FORWARD: return 1; - case FETCH_BACKWARD: return 2; - case FETCH_ABSOLUTE: return 3; - case FETCH_RELATIVE: return 4; - } - Assert(false); - return -1; -} - -static int -_enumToIntFunctionParameterMode(FunctionParameterMode value) { - switch(value) { - case FUNC_PARAM_IN: return 1; - case FUNC_PARAM_OUT: return 2; - case FUNC_PARAM_INOUT: return 3; - case FUNC_PARAM_VARIADIC: return 4; - case FUNC_PARAM_TABLE: return 5; - case FUNC_PARAM_DEFAULT: return 6; - } - Assert(false); - return -1; -} - -static int -_enumToIntTransactionStmtKind(TransactionStmtKind value) { - switch(value) { - case TRANS_STMT_BEGIN: return 1; - case TRANS_STMT_START: return 2; - case TRANS_STMT_COMMIT: return 3; - case TRANS_STMT_ROLLBACK: return 4; - case TRANS_STMT_SAVEPOINT: return 5; - case TRANS_STMT_RELEASE: return 6; - case TRANS_STMT_ROLLBACK_TO: return 7; - case TRANS_STMT_PREPARE: return 8; - case TRANS_STMT_COMMIT_PREPARED: return 9; - case TRANS_STMT_ROLLBACK_PREPARED: return 10; - } - Assert(false); - return -1; -} - -static int -_enumToIntViewCheckOption(ViewCheckOption value) { - switch(value) { - case NO_CHECK_OPTION: return 1; - case LOCAL_CHECK_OPTION: return 2; - case CASCADED_CHECK_OPTION: return 3; - } - Assert(false); - return -1; -} - -static int -_enumToIntDiscardMode(DiscardMode value) { - switch(value) { - case DISCARD_ALL: return 1; - case DISCARD_PLANS: return 2; - case DISCARD_SEQUENCES: return 3; - case DISCARD_TEMP: return 4; - } - Assert(false); - return -1; -} - -static int -_enumToIntReindexObjectType(ReindexObjectType value) { - switch(value) { - case REINDEX_OBJECT_INDEX: return 1; - case REINDEX_OBJECT_TABLE: return 2; - case REINDEX_OBJECT_SCHEMA: return 3; - case REINDEX_OBJECT_SYSTEM: return 4; - case REINDEX_OBJECT_DATABASE: return 5; - } - Assert(false); - return -1; -} - -static int -_enumToIntAlterTSConfigType(AlterTSConfigType value) { - switch(value) { - case ALTER_TSCONFIG_ADD_MAPPING: return 1; - case ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN: return 2; - case ALTER_TSCONFIG_REPLACE_DICT: return 3; - case ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN: return 4; - case ALTER_TSCONFIG_DROP_MAPPING: return 5; - } - Assert(false); - return -1; -} - -static int -_enumToIntPublicationObjSpecType(PublicationObjSpecType value) { - switch(value) { - case PUBLICATIONOBJ_TABLE: return 1; - case PUBLICATIONOBJ_TABLES_IN_SCHEMA: return 2; - case PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA: return 3; - case PUBLICATIONOBJ_CONTINUATION: return 4; - } - Assert(false); - return -1; -} - -static int -_enumToIntAlterPublicationAction(AlterPublicationAction value) { - switch(value) { - case AP_AddObjects: return 1; - case AP_DropObjects: return 2; - case AP_SetObjects: return 3; - } - Assert(false); - return -1; -} - -static int -_enumToIntAlterSubscriptionType(AlterSubscriptionType value) { - switch(value) { - case ALTER_SUBSCRIPTION_OPTIONS: return 1; - case ALTER_SUBSCRIPTION_CONNECTION: return 2; - case ALTER_SUBSCRIPTION_SET_PUBLICATION: return 3; - case ALTER_SUBSCRIPTION_ADD_PUBLICATION: return 4; - case ALTER_SUBSCRIPTION_DROP_PUBLICATION: return 5; - case ALTER_SUBSCRIPTION_REFRESH: return 6; - case ALTER_SUBSCRIPTION_ENABLED: return 7; - case ALTER_SUBSCRIPTION_SKIP: return 8; - } - Assert(false); - return -1; -} - -static int -_enumToIntOnCommitAction(OnCommitAction value) { - switch(value) { - case ONCOMMIT_NOOP: return 1; - case ONCOMMIT_PRESERVE_ROWS: return 2; - case ONCOMMIT_DELETE_ROWS: return 3; - case ONCOMMIT_DROP: return 4; - } - Assert(false); - return -1; -} - -static int -_enumToIntParamKind(ParamKind value) { - switch(value) { - case PARAM_EXTERN: return 1; - case PARAM_EXEC: return 2; - case PARAM_SUBLINK: return 3; - case PARAM_MULTIEXPR: return 4; - } - Assert(false); - return -1; -} - -static int -_enumToIntCoercionContext(CoercionContext value) { - switch(value) { - case COERCION_IMPLICIT: return 1; - case COERCION_ASSIGNMENT: return 2; - case COERCION_PLPGSQL: return 3; - case COERCION_EXPLICIT: return 4; - } - Assert(false); - return -1; -} - -static int -_enumToIntCoercionForm(CoercionForm value) { - switch(value) { - case COERCE_EXPLICIT_CALL: return 1; - case COERCE_EXPLICIT_CAST: return 2; - case COERCE_IMPLICIT_CAST: return 3; - case COERCE_SQL_SYNTAX: return 4; - } - Assert(false); - return -1; -} - -static int -_enumToIntBoolExprType(BoolExprType value) { - switch(value) { - case AND_EXPR: return 1; - case OR_EXPR: return 2; - case NOT_EXPR: return 3; - } - Assert(false); - return -1; -} - -static int -_enumToIntSubLinkType(SubLinkType value) { - switch(value) { - case EXISTS_SUBLINK: return 1; - case ALL_SUBLINK: return 2; - case ANY_SUBLINK: return 3; - case ROWCOMPARE_SUBLINK: return 4; - case EXPR_SUBLINK: return 5; - case MULTIEXPR_SUBLINK: return 6; - case ARRAY_SUBLINK: return 7; - case CTE_SUBLINK: return 8; - } - Assert(false); - return -1; -} - -static int -_enumToIntRowCompareType(RowCompareType value) { - switch(value) { - case ROWCOMPARE_LT: return 1; - case ROWCOMPARE_LE: return 2; - case ROWCOMPARE_EQ: return 3; - case ROWCOMPARE_GE: return 4; - case ROWCOMPARE_GT: return 5; - case ROWCOMPARE_NE: return 6; - } - Assert(false); - return -1; -} - -static int -_enumToIntMinMaxOp(MinMaxOp value) { - switch(value) { - case IS_GREATEST: return 1; - case IS_LEAST: return 2; - } - Assert(false); - return -1; -} - -static int -_enumToIntSQLValueFunctionOp(SQLValueFunctionOp value) { - switch(value) { - case SVFOP_CURRENT_DATE: return 1; - case SVFOP_CURRENT_TIME: return 2; - case SVFOP_CURRENT_TIME_N: return 3; - case SVFOP_CURRENT_TIMESTAMP: return 4; - case SVFOP_CURRENT_TIMESTAMP_N: return 5; - case SVFOP_LOCALTIME: return 6; - case SVFOP_LOCALTIME_N: return 7; - case SVFOP_LOCALTIMESTAMP: return 8; - case SVFOP_LOCALTIMESTAMP_N: return 9; - case SVFOP_CURRENT_ROLE: return 10; - case SVFOP_CURRENT_USER: return 11; - case SVFOP_USER: return 12; - case SVFOP_SESSION_USER: return 13; - case SVFOP_CURRENT_CATALOG: return 14; - case SVFOP_CURRENT_SCHEMA: return 15; - } - Assert(false); - return -1; -} - -static int -_enumToIntXmlExprOp(XmlExprOp value) { - switch(value) { - case IS_XMLCONCAT: return 1; - case IS_XMLELEMENT: return 2; - case IS_XMLFOREST: return 3; - case IS_XMLPARSE: return 4; - case IS_XMLPI: return 5; - case IS_XMLROOT: return 6; - case IS_XMLSERIALIZE: return 7; - case IS_DOCUMENT: return 8; - } - Assert(false); - return -1; -} - -static int -_enumToIntXmlOptionType(XmlOptionType value) { - switch(value) { - case XMLOPTION_DOCUMENT: return 1; - case XMLOPTION_CONTENT: return 2; - } - Assert(false); - return -1; -} - -static int -_enumToIntNullTestType(NullTestType value) { - switch(value) { - case IS_NULL: return 1; - case IS_NOT_NULL: return 2; - } - Assert(false); - return -1; -} - -static int -_enumToIntBoolTestType(BoolTestType value) { - switch(value) { - case IS_TRUE: return 1; - case IS_NOT_TRUE: return 2; - case IS_FALSE: return 3; - case IS_NOT_FALSE: return 4; - case IS_UNKNOWN: return 5; - case IS_NOT_UNKNOWN: return 6; - } - Assert(false); - return -1; -} - -static int -_enumToIntCmdType(CmdType value) { - switch(value) { - case CMD_UNKNOWN: return 1; - case CMD_SELECT: return 2; - case CMD_UPDATE: return 3; - case CMD_INSERT: return 4; - case CMD_DELETE: return 5; - case CMD_MERGE: return 6; - case CMD_UTILITY: return 7; - case CMD_NOTHING: return 8; - } - Assert(false); - return -1; -} - -static int -_enumToIntJoinType(JoinType value) { - switch(value) { - case JOIN_INNER: return 1; - case JOIN_LEFT: return 2; - case JOIN_FULL: return 3; - case JOIN_RIGHT: return 4; - case JOIN_SEMI: return 5; - case JOIN_ANTI: return 6; - case JOIN_UNIQUE_OUTER: return 7; - case JOIN_UNIQUE_INNER: return 8; - } - Assert(false); - return -1; -} - -static int -_enumToIntAggStrategy(AggStrategy value) { - switch(value) { - case AGG_PLAIN: return 1; - case AGG_SORTED: return 2; - case AGG_HASHED: return 3; - case AGG_MIXED: return 4; - } - Assert(false); - return -1; -} - -static int -_enumToIntAggSplit(AggSplit value) { - switch(value) { - case AGGSPLIT_SIMPLE: return 1; - case AGGSPLIT_INITIAL_SERIAL: return 2; - case AGGSPLIT_FINAL_DESERIAL: return 3; - } - Assert(false); - return -1; -} - -static int -_enumToIntSetOpCmd(SetOpCmd value) { - switch(value) { - case SETOPCMD_INTERSECT: return 1; - case SETOPCMD_INTERSECT_ALL: return 2; - case SETOPCMD_EXCEPT: return 3; - case SETOPCMD_EXCEPT_ALL: return 4; - } - Assert(false); - return -1; -} - -static int -_enumToIntSetOpStrategy(SetOpStrategy value) { - switch(value) { - case SETOP_SORTED: return 1; - case SETOP_HASHED: return 2; - } - Assert(false); - return -1; -} - -static int -_enumToIntOnConflictAction(OnConflictAction value) { - switch(value) { - case ONCONFLICT_NONE: return 1; - case ONCONFLICT_NOTHING: return 2; - case ONCONFLICT_UPDATE: return 3; - } - Assert(false); - return -1; -} - -static int -_enumToIntLimitOption(LimitOption value) { - switch(value) { - case LIMIT_OPTION_DEFAULT: return 1; - case LIMIT_OPTION_COUNT: return 2; - case LIMIT_OPTION_WITH_TIES: return 3; - } - Assert(false); - return -1; -} - -static int -_enumToIntLockClauseStrength(LockClauseStrength value) { - switch(value) { - case LCS_NONE: return 1; - case LCS_FORKEYSHARE: return 2; - case LCS_FORSHARE: return 3; - case LCS_FORNOKEYUPDATE: return 4; - case LCS_FORUPDATE: return 5; - } - Assert(false); - return -1; -} - -static int -_enumToIntLockWaitPolicy(LockWaitPolicy value) { - switch(value) { - case LockWaitBlock: return 1; - case LockWaitSkip: return 2; - case LockWaitError: return 3; - } - Assert(false); - return -1; -} - -static int -_enumToIntLockTupleMode(LockTupleMode value) { - switch(value) { - case LockTupleKeyShare: return 1; - case LockTupleShare: return 2; - case LockTupleNoKeyExclusive: return 3; - case LockTupleExclusive: return 4; - } - Assert(false); - return -1; -}static OverridingKind -_intToEnumOverridingKind(int value) { - switch(value) { - case 1: return OVERRIDING_NOT_SET; - case 2: return OVERRIDING_USER_VALUE; - case 3: return OVERRIDING_SYSTEM_VALUE; - } - Assert(false); - return OVERRIDING_NOT_SET; -} - -static QuerySource -_intToEnumQuerySource(int value) { - switch(value) { - case 1: return QSRC_ORIGINAL; - case 2: return QSRC_PARSER; - case 3: return QSRC_INSTEAD_RULE; - case 4: return QSRC_QUAL_INSTEAD_RULE; - case 5: return QSRC_NON_INSTEAD_RULE; - } - Assert(false); - return QSRC_ORIGINAL; -} - -static SortByDir -_intToEnumSortByDir(int value) { - switch(value) { - case 1: return SORTBY_DEFAULT; - case 2: return SORTBY_ASC; - case 3: return SORTBY_DESC; - case 4: return SORTBY_USING; - } - Assert(false); - return SORTBY_DEFAULT; -} - -static SortByNulls -_intToEnumSortByNulls(int value) { - switch(value) { - case 1: return SORTBY_NULLS_DEFAULT; - case 2: return SORTBY_NULLS_FIRST; - case 3: return SORTBY_NULLS_LAST; - } - Assert(false); - return SORTBY_NULLS_DEFAULT; -} - -static SetQuantifier -_intToEnumSetQuantifier(int value) { - switch(value) { - case 1: return SET_QUANTIFIER_DEFAULT; - case 2: return SET_QUANTIFIER_ALL; - case 3: return SET_QUANTIFIER_DISTINCT; - } - Assert(false); - return SET_QUANTIFIER_DEFAULT; -} - -static A_Expr_Kind -_intToEnumA_Expr_Kind(int value) { - switch(value) { - case 1: return AEXPR_OP; - case 2: return AEXPR_OP_ANY; - case 3: return AEXPR_OP_ALL; - case 4: return AEXPR_DISTINCT; - case 5: return AEXPR_NOT_DISTINCT; - case 6: return AEXPR_NULLIF; - case 7: return AEXPR_IN; - case 8: return AEXPR_LIKE; - case 9: return AEXPR_ILIKE; - case 10: return AEXPR_SIMILAR; - case 11: return AEXPR_BETWEEN; - case 12: return AEXPR_NOT_BETWEEN; - case 13: return AEXPR_BETWEEN_SYM; - case 14: return AEXPR_NOT_BETWEEN_SYM; - } - Assert(false); - return AEXPR_OP; -} - -static RoleSpecType -_intToEnumRoleSpecType(int value) { - switch(value) { - case 1: return ROLESPEC_CSTRING; - case 2: return ROLESPEC_CURRENT_ROLE; - case 3: return ROLESPEC_CURRENT_USER; - case 4: return ROLESPEC_SESSION_USER; - case 5: return ROLESPEC_PUBLIC; - } - Assert(false); - return ROLESPEC_CSTRING; -} - -static TableLikeOption -_intToEnumTableLikeOption(int value) { - switch(value) { - case 1: return CREATE_TABLE_LIKE_COMMENTS; - case 2: return CREATE_TABLE_LIKE_COMPRESSION; - case 3: return CREATE_TABLE_LIKE_CONSTRAINTS; - case 4: return CREATE_TABLE_LIKE_DEFAULTS; - case 5: return CREATE_TABLE_LIKE_GENERATED; - case 6: return CREATE_TABLE_LIKE_IDENTITY; - case 7: return CREATE_TABLE_LIKE_INDEXES; - case 8: return CREATE_TABLE_LIKE_STATISTICS; - case 9: return CREATE_TABLE_LIKE_STORAGE; - case 10: return CREATE_TABLE_LIKE_ALL; - } - Assert(false); - return CREATE_TABLE_LIKE_COMMENTS; -} - -static DefElemAction -_intToEnumDefElemAction(int value) { - switch(value) { - case 1: return DEFELEM_UNSPEC; - case 2: return DEFELEM_SET; - case 3: return DEFELEM_ADD; - case 4: return DEFELEM_DROP; - } - Assert(false); - return DEFELEM_UNSPEC; -} - -static PartitionRangeDatumKind -_intToEnumPartitionRangeDatumKind(int value) { - switch(value) { - case 1: return PARTITION_RANGE_DATUM_MINVALUE; - case 2: return PARTITION_RANGE_DATUM_VALUE; - case 3: return PARTITION_RANGE_DATUM_MAXVALUE; - } - Assert(false); - return PARTITION_RANGE_DATUM_MINVALUE; -} - -static RTEKind -_intToEnumRTEKind(int value) { - switch(value) { - case 1: return RTE_RELATION; - case 2: return RTE_SUBQUERY; - case 3: return RTE_JOIN; - case 4: return RTE_FUNCTION; - case 5: return RTE_TABLEFUNC; - case 6: return RTE_VALUES; - case 7: return RTE_CTE; - case 8: return RTE_NAMEDTUPLESTORE; - case 9: return RTE_RESULT; - } - Assert(false); - return RTE_RELATION; -} - -static WCOKind -_intToEnumWCOKind(int value) { - switch(value) { - case 1: return WCO_VIEW_CHECK; - case 2: return WCO_RLS_INSERT_CHECK; - case 3: return WCO_RLS_UPDATE_CHECK; - case 4: return WCO_RLS_CONFLICT_CHECK; - case 5: return WCO_RLS_MERGE_UPDATE_CHECK; - case 6: return WCO_RLS_MERGE_DELETE_CHECK; - } - Assert(false); - return WCO_VIEW_CHECK; -} - -static GroupingSetKind -_intToEnumGroupingSetKind(int value) { - switch(value) { - case 1: return GROUPING_SET_EMPTY; - case 2: return GROUPING_SET_SIMPLE; - case 3: return GROUPING_SET_ROLLUP; - case 4: return GROUPING_SET_CUBE; - case 5: return GROUPING_SET_SETS; - } - Assert(false); - return GROUPING_SET_EMPTY; -} - -static CTEMaterialize -_intToEnumCTEMaterialize(int value) { - switch(value) { - case 1: return CTEMaterializeDefault; - case 2: return CTEMaterializeAlways; - case 3: return CTEMaterializeNever; - } - Assert(false); - return CTEMaterializeDefault; -} - -static SetOperation -_intToEnumSetOperation(int value) { - switch(value) { - case 1: return SETOP_NONE; - case 2: return SETOP_UNION; - case 3: return SETOP_INTERSECT; - case 4: return SETOP_EXCEPT; - } - Assert(false); - return SETOP_NONE; -} - -static ObjectType -_intToEnumObjectType(int value) { - switch(value) { - case 1: return OBJECT_ACCESS_METHOD; - case 2: return OBJECT_AGGREGATE; - case 3: return OBJECT_AMOP; - case 4: return OBJECT_AMPROC; - case 5: return OBJECT_ATTRIBUTE; - case 6: return OBJECT_CAST; - case 7: return OBJECT_COLUMN; - case 8: return OBJECT_COLLATION; - case 9: return OBJECT_CONVERSION; - case 10: return OBJECT_DATABASE; - case 11: return OBJECT_DEFAULT; - case 12: return OBJECT_DEFACL; - case 13: return OBJECT_DOMAIN; - case 14: return OBJECT_DOMCONSTRAINT; - case 15: return OBJECT_EVENT_TRIGGER; - case 16: return OBJECT_EXTENSION; - case 17: return OBJECT_FDW; - case 18: return OBJECT_FOREIGN_SERVER; - case 19: return OBJECT_FOREIGN_TABLE; - case 20: return OBJECT_FUNCTION; - case 21: return OBJECT_INDEX; - case 22: return OBJECT_LANGUAGE; - case 23: return OBJECT_LARGEOBJECT; - case 24: return OBJECT_MATVIEW; - case 25: return OBJECT_OPCLASS; - case 26: return OBJECT_OPERATOR; - case 27: return OBJECT_OPFAMILY; - case 28: return OBJECT_PARAMETER_ACL; - case 29: return OBJECT_POLICY; - case 30: return OBJECT_PROCEDURE; - case 31: return OBJECT_PUBLICATION; - case 32: return OBJECT_PUBLICATION_NAMESPACE; - case 33: return OBJECT_PUBLICATION_REL; - case 34: return OBJECT_ROLE; - case 35: return OBJECT_ROUTINE; - case 36: return OBJECT_RULE; - case 37: return OBJECT_SCHEMA; - case 38: return OBJECT_SEQUENCE; - case 39: return OBJECT_SUBSCRIPTION; - case 40: return OBJECT_STATISTIC_EXT; - case 41: return OBJECT_TABCONSTRAINT; - case 42: return OBJECT_TABLE; - case 43: return OBJECT_TABLESPACE; - case 44: return OBJECT_TRANSFORM; - case 45: return OBJECT_TRIGGER; - case 46: return OBJECT_TSCONFIGURATION; - case 47: return OBJECT_TSDICTIONARY; - case 48: return OBJECT_TSPARSER; - case 49: return OBJECT_TSTEMPLATE; - case 50: return OBJECT_TYPE; - case 51: return OBJECT_USER_MAPPING; - case 52: return OBJECT_VIEW; - } - Assert(false); - return OBJECT_ACCESS_METHOD; -} - -static DropBehavior -_intToEnumDropBehavior(int value) { - switch(value) { - case 1: return DROP_RESTRICT; - case 2: return DROP_CASCADE; - } - Assert(false); - return DROP_RESTRICT; -} - -static AlterTableType -_intToEnumAlterTableType(int value) { - switch(value) { - case 1: return AT_AddColumn; - case 2: return AT_AddColumnRecurse; - case 3: return AT_AddColumnToView; - case 4: return AT_ColumnDefault; - case 5: return AT_CookedColumnDefault; - case 6: return AT_DropNotNull; - case 7: return AT_SetNotNull; - case 8: return AT_DropExpression; - case 9: return AT_CheckNotNull; - case 10: return AT_SetStatistics; - case 11: return AT_SetOptions; - case 12: return AT_ResetOptions; - case 13: return AT_SetStorage; - case 14: return AT_SetCompression; - case 15: return AT_DropColumn; - case 16: return AT_DropColumnRecurse; - case 17: return AT_AddIndex; - case 18: return AT_ReAddIndex; - case 19: return AT_AddConstraint; - case 20: return AT_AddConstraintRecurse; - case 21: return AT_ReAddConstraint; - case 22: return AT_ReAddDomainConstraint; - case 23: return AT_AlterConstraint; - case 24: return AT_ValidateConstraint; - case 25: return AT_ValidateConstraintRecurse; - case 26: return AT_AddIndexConstraint; - case 27: return AT_DropConstraint; - case 28: return AT_DropConstraintRecurse; - case 29: return AT_ReAddComment; - case 30: return AT_AlterColumnType; - case 31: return AT_AlterColumnGenericOptions; - case 32: return AT_ChangeOwner; - case 33: return AT_ClusterOn; - case 34: return AT_DropCluster; - case 35: return AT_SetLogged; - case 36: return AT_SetUnLogged; - case 37: return AT_DropOids; - case 38: return AT_SetAccessMethod; - case 39: return AT_SetTableSpace; - case 40: return AT_SetRelOptions; - case 41: return AT_ResetRelOptions; - case 42: return AT_ReplaceRelOptions; - case 43: return AT_EnableTrig; - case 44: return AT_EnableAlwaysTrig; - case 45: return AT_EnableReplicaTrig; - case 46: return AT_DisableTrig; - case 47: return AT_EnableTrigAll; - case 48: return AT_DisableTrigAll; - case 49: return AT_EnableTrigUser; - case 50: return AT_DisableTrigUser; - case 51: return AT_EnableRule; - case 52: return AT_EnableAlwaysRule; - case 53: return AT_EnableReplicaRule; - case 54: return AT_DisableRule; - case 55: return AT_AddInherit; - case 56: return AT_DropInherit; - case 57: return AT_AddOf; - case 58: return AT_DropOf; - case 59: return AT_ReplicaIdentity; - case 60: return AT_EnableRowSecurity; - case 61: return AT_DisableRowSecurity; - case 62: return AT_ForceRowSecurity; - case 63: return AT_NoForceRowSecurity; - case 64: return AT_GenericOptions; - case 65: return AT_AttachPartition; - case 66: return AT_DetachPartition; - case 67: return AT_DetachPartitionFinalize; - case 68: return AT_AddIdentity; - case 69: return AT_SetIdentity; - case 70: return AT_DropIdentity; - case 71: return AT_ReAddStatistics; - } - Assert(false); - return AT_AddColumn; -} - -static GrantTargetType -_intToEnumGrantTargetType(int value) { - switch(value) { - case 1: return ACL_TARGET_OBJECT; - case 2: return ACL_TARGET_ALL_IN_SCHEMA; - case 3: return ACL_TARGET_DEFAULTS; - } - Assert(false); - return ACL_TARGET_OBJECT; -} - -static VariableSetKind -_intToEnumVariableSetKind(int value) { - switch(value) { - case 1: return VAR_SET_VALUE; - case 2: return VAR_SET_DEFAULT; - case 3: return VAR_SET_CURRENT; - case 4: return VAR_SET_MULTI; - case 5: return VAR_RESET; - case 6: return VAR_RESET_ALL; - } - Assert(false); - return VAR_SET_VALUE; -} - -static ConstrType -_intToEnumConstrType(int value) { - switch(value) { - case 1: return CONSTR_NULL; - case 2: return CONSTR_NOTNULL; - case 3: return CONSTR_DEFAULT; - case 4: return CONSTR_IDENTITY; - case 5: return CONSTR_GENERATED; - case 6: return CONSTR_CHECK; - case 7: return CONSTR_PRIMARY; - case 8: return CONSTR_UNIQUE; - case 9: return CONSTR_EXCLUSION; - case 10: return CONSTR_FOREIGN; - case 11: return CONSTR_ATTR_DEFERRABLE; - case 12: return CONSTR_ATTR_NOT_DEFERRABLE; - case 13: return CONSTR_ATTR_DEFERRED; - case 14: return CONSTR_ATTR_IMMEDIATE; - } - Assert(false); - return CONSTR_NULL; -} - -static ImportForeignSchemaType -_intToEnumImportForeignSchemaType(int value) { - switch(value) { - case 1: return FDW_IMPORT_SCHEMA_ALL; - case 2: return FDW_IMPORT_SCHEMA_LIMIT_TO; - case 3: return FDW_IMPORT_SCHEMA_EXCEPT; - } - Assert(false); - return FDW_IMPORT_SCHEMA_ALL; -} - -static RoleStmtType -_intToEnumRoleStmtType(int value) { - switch(value) { - case 1: return ROLESTMT_ROLE; - case 2: return ROLESTMT_USER; - case 3: return ROLESTMT_GROUP; - } - Assert(false); - return ROLESTMT_ROLE; -} - -static FetchDirection -_intToEnumFetchDirection(int value) { - switch(value) { - case 1: return FETCH_FORWARD; - case 2: return FETCH_BACKWARD; - case 3: return FETCH_ABSOLUTE; - case 4: return FETCH_RELATIVE; - } - Assert(false); - return FETCH_FORWARD; -} - -static FunctionParameterMode -_intToEnumFunctionParameterMode(int value) { - switch(value) { - case 1: return FUNC_PARAM_IN; - case 2: return FUNC_PARAM_OUT; - case 3: return FUNC_PARAM_INOUT; - case 4: return FUNC_PARAM_VARIADIC; - case 5: return FUNC_PARAM_TABLE; - case 6: return FUNC_PARAM_DEFAULT; - } - Assert(false); - return FUNC_PARAM_IN; -} - -static TransactionStmtKind -_intToEnumTransactionStmtKind(int value) { - switch(value) { - case 1: return TRANS_STMT_BEGIN; - case 2: return TRANS_STMT_START; - case 3: return TRANS_STMT_COMMIT; - case 4: return TRANS_STMT_ROLLBACK; - case 5: return TRANS_STMT_SAVEPOINT; - case 6: return TRANS_STMT_RELEASE; - case 7: return TRANS_STMT_ROLLBACK_TO; - case 8: return TRANS_STMT_PREPARE; - case 9: return TRANS_STMT_COMMIT_PREPARED; - case 10: return TRANS_STMT_ROLLBACK_PREPARED; - } - Assert(false); - return TRANS_STMT_BEGIN; -} - -static ViewCheckOption -_intToEnumViewCheckOption(int value) { - switch(value) { - case 1: return NO_CHECK_OPTION; - case 2: return LOCAL_CHECK_OPTION; - case 3: return CASCADED_CHECK_OPTION; - } - Assert(false); - return NO_CHECK_OPTION; -} - -static DiscardMode -_intToEnumDiscardMode(int value) { - switch(value) { - case 1: return DISCARD_ALL; - case 2: return DISCARD_PLANS; - case 3: return DISCARD_SEQUENCES; - case 4: return DISCARD_TEMP; - } - Assert(false); - return DISCARD_ALL; -} - -static ReindexObjectType -_intToEnumReindexObjectType(int value) { - switch(value) { - case 1: return REINDEX_OBJECT_INDEX; - case 2: return REINDEX_OBJECT_TABLE; - case 3: return REINDEX_OBJECT_SCHEMA; - case 4: return REINDEX_OBJECT_SYSTEM; - case 5: return REINDEX_OBJECT_DATABASE; - } - Assert(false); - return REINDEX_OBJECT_INDEX; -} - -static AlterTSConfigType -_intToEnumAlterTSConfigType(int value) { - switch(value) { - case 1: return ALTER_TSCONFIG_ADD_MAPPING; - case 2: return ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN; - case 3: return ALTER_TSCONFIG_REPLACE_DICT; - case 4: return ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN; - case 5: return ALTER_TSCONFIG_DROP_MAPPING; - } - Assert(false); - return ALTER_TSCONFIG_ADD_MAPPING; -} - -static PublicationObjSpecType -_intToEnumPublicationObjSpecType(int value) { - switch(value) { - case 1: return PUBLICATIONOBJ_TABLE; - case 2: return PUBLICATIONOBJ_TABLES_IN_SCHEMA; - case 3: return PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA; - case 4: return PUBLICATIONOBJ_CONTINUATION; - } - Assert(false); - return PUBLICATIONOBJ_TABLE; -} - -static AlterPublicationAction -_intToEnumAlterPublicationAction(int value) { - switch(value) { - case 1: return AP_AddObjects; - case 2: return AP_DropObjects; - case 3: return AP_SetObjects; - } - Assert(false); - return AP_AddObjects; -} - -static AlterSubscriptionType -_intToEnumAlterSubscriptionType(int value) { - switch(value) { - case 1: return ALTER_SUBSCRIPTION_OPTIONS; - case 2: return ALTER_SUBSCRIPTION_CONNECTION; - case 3: return ALTER_SUBSCRIPTION_SET_PUBLICATION; - case 4: return ALTER_SUBSCRIPTION_ADD_PUBLICATION; - case 5: return ALTER_SUBSCRIPTION_DROP_PUBLICATION; - case 6: return ALTER_SUBSCRIPTION_REFRESH; - case 7: return ALTER_SUBSCRIPTION_ENABLED; - case 8: return ALTER_SUBSCRIPTION_SKIP; - } - Assert(false); - return ALTER_SUBSCRIPTION_OPTIONS; -} - -static OnCommitAction -_intToEnumOnCommitAction(int value) { - switch(value) { - case 1: return ONCOMMIT_NOOP; - case 2: return ONCOMMIT_PRESERVE_ROWS; - case 3: return ONCOMMIT_DELETE_ROWS; - case 4: return ONCOMMIT_DROP; - } - Assert(false); - return ONCOMMIT_NOOP; -} - -static ParamKind -_intToEnumParamKind(int value) { - switch(value) { - case 1: return PARAM_EXTERN; - case 2: return PARAM_EXEC; - case 3: return PARAM_SUBLINK; - case 4: return PARAM_MULTIEXPR; - } - Assert(false); - return PARAM_EXTERN; -} - -static CoercionContext -_intToEnumCoercionContext(int value) { - switch(value) { - case 1: return COERCION_IMPLICIT; - case 2: return COERCION_ASSIGNMENT; - case 3: return COERCION_PLPGSQL; - case 4: return COERCION_EXPLICIT; - } - Assert(false); - return COERCION_IMPLICIT; -} - -static CoercionForm -_intToEnumCoercionForm(int value) { - switch(value) { - case 1: return COERCE_EXPLICIT_CALL; - case 2: return COERCE_EXPLICIT_CAST; - case 3: return COERCE_IMPLICIT_CAST; - case 4: return COERCE_SQL_SYNTAX; - } - Assert(false); - return COERCE_EXPLICIT_CALL; -} - -static BoolExprType -_intToEnumBoolExprType(int value) { - switch(value) { - case 1: return AND_EXPR; - case 2: return OR_EXPR; - case 3: return NOT_EXPR; - } - Assert(false); - return AND_EXPR; -} - -static SubLinkType -_intToEnumSubLinkType(int value) { - switch(value) { - case 1: return EXISTS_SUBLINK; - case 2: return ALL_SUBLINK; - case 3: return ANY_SUBLINK; - case 4: return ROWCOMPARE_SUBLINK; - case 5: return EXPR_SUBLINK; - case 6: return MULTIEXPR_SUBLINK; - case 7: return ARRAY_SUBLINK; - case 8: return CTE_SUBLINK; - } - Assert(false); - return EXISTS_SUBLINK; -} - -static RowCompareType -_intToEnumRowCompareType(int value) { - switch(value) { - case 1: return ROWCOMPARE_LT; - case 2: return ROWCOMPARE_LE; - case 3: return ROWCOMPARE_EQ; - case 4: return ROWCOMPARE_GE; - case 5: return ROWCOMPARE_GT; - case 6: return ROWCOMPARE_NE; - } - Assert(false); - return ROWCOMPARE_LT; -} - -static MinMaxOp -_intToEnumMinMaxOp(int value) { - switch(value) { - case 1: return IS_GREATEST; - case 2: return IS_LEAST; - } - Assert(false); - return IS_GREATEST; -} - -static SQLValueFunctionOp -_intToEnumSQLValueFunctionOp(int value) { - switch(value) { - case 1: return SVFOP_CURRENT_DATE; - case 2: return SVFOP_CURRENT_TIME; - case 3: return SVFOP_CURRENT_TIME_N; - case 4: return SVFOP_CURRENT_TIMESTAMP; - case 5: return SVFOP_CURRENT_TIMESTAMP_N; - case 6: return SVFOP_LOCALTIME; - case 7: return SVFOP_LOCALTIME_N; - case 8: return SVFOP_LOCALTIMESTAMP; - case 9: return SVFOP_LOCALTIMESTAMP_N; - case 10: return SVFOP_CURRENT_ROLE; - case 11: return SVFOP_CURRENT_USER; - case 12: return SVFOP_USER; - case 13: return SVFOP_SESSION_USER; - case 14: return SVFOP_CURRENT_CATALOG; - case 15: return SVFOP_CURRENT_SCHEMA; - } - Assert(false); - return SVFOP_CURRENT_DATE; -} - -static XmlExprOp -_intToEnumXmlExprOp(int value) { - switch(value) { - case 1: return IS_XMLCONCAT; - case 2: return IS_XMLELEMENT; - case 3: return IS_XMLFOREST; - case 4: return IS_XMLPARSE; - case 5: return IS_XMLPI; - case 6: return IS_XMLROOT; - case 7: return IS_XMLSERIALIZE; - case 8: return IS_DOCUMENT; - } - Assert(false); - return IS_XMLCONCAT; -} - -static XmlOptionType -_intToEnumXmlOptionType(int value) { - switch(value) { - case 1: return XMLOPTION_DOCUMENT; - case 2: return XMLOPTION_CONTENT; - } - Assert(false); - return XMLOPTION_DOCUMENT; -} - -static NullTestType -_intToEnumNullTestType(int value) { - switch(value) { - case 1: return IS_NULL; - case 2: return IS_NOT_NULL; - } - Assert(false); - return IS_NULL; -} - -static BoolTestType -_intToEnumBoolTestType(int value) { - switch(value) { - case 1: return IS_TRUE; - case 2: return IS_NOT_TRUE; - case 3: return IS_FALSE; - case 4: return IS_NOT_FALSE; - case 5: return IS_UNKNOWN; - case 6: return IS_NOT_UNKNOWN; - } - Assert(false); - return IS_TRUE; -} - -static CmdType -_intToEnumCmdType(int value) { - switch(value) { - case 1: return CMD_UNKNOWN; - case 2: return CMD_SELECT; - case 3: return CMD_UPDATE; - case 4: return CMD_INSERT; - case 5: return CMD_DELETE; - case 6: return CMD_MERGE; - case 7: return CMD_UTILITY; - case 8: return CMD_NOTHING; - } - Assert(false); - return CMD_UNKNOWN; -} - -static JoinType -_intToEnumJoinType(int value) { - switch(value) { - case 1: return JOIN_INNER; - case 2: return JOIN_LEFT; - case 3: return JOIN_FULL; - case 4: return JOIN_RIGHT; - case 5: return JOIN_SEMI; - case 6: return JOIN_ANTI; - case 7: return JOIN_UNIQUE_OUTER; - case 8: return JOIN_UNIQUE_INNER; - } - Assert(false); - return JOIN_INNER; -} - -static AggStrategy -_intToEnumAggStrategy(int value) { - switch(value) { - case 1: return AGG_PLAIN; - case 2: return AGG_SORTED; - case 3: return AGG_HASHED; - case 4: return AGG_MIXED; - } - Assert(false); - return AGG_PLAIN; -} - -static AggSplit -_intToEnumAggSplit(int value) { - switch(value) { - case 1: return AGGSPLIT_SIMPLE; - case 2: return AGGSPLIT_INITIAL_SERIAL; - case 3: return AGGSPLIT_FINAL_DESERIAL; - } - Assert(false); - return AGGSPLIT_SIMPLE; -} - -static SetOpCmd -_intToEnumSetOpCmd(int value) { - switch(value) { - case 1: return SETOPCMD_INTERSECT; - case 2: return SETOPCMD_INTERSECT_ALL; - case 3: return SETOPCMD_EXCEPT; - case 4: return SETOPCMD_EXCEPT_ALL; - } - Assert(false); - return SETOPCMD_INTERSECT; -} - -static SetOpStrategy -_intToEnumSetOpStrategy(int value) { - switch(value) { - case 1: return SETOP_SORTED; - case 2: return SETOP_HASHED; - } - Assert(false); - return SETOP_SORTED; -} - -static OnConflictAction -_intToEnumOnConflictAction(int value) { - switch(value) { - case 1: return ONCONFLICT_NONE; - case 2: return ONCONFLICT_NOTHING; - case 3: return ONCONFLICT_UPDATE; - } - Assert(false); - return ONCONFLICT_NONE; -} - -static LimitOption -_intToEnumLimitOption(int value) { - switch(value) { - case 1: return LIMIT_OPTION_DEFAULT; - case 2: return LIMIT_OPTION_COUNT; - case 3: return LIMIT_OPTION_WITH_TIES; - } - Assert(false); - return LIMIT_OPTION_DEFAULT; -} - -static LockClauseStrength -_intToEnumLockClauseStrength(int value) { - switch(value) { - case 1: return LCS_NONE; - case 2: return LCS_FORKEYSHARE; - case 3: return LCS_FORSHARE; - case 4: return LCS_FORNOKEYUPDATE; - case 5: return LCS_FORUPDATE; - } - Assert(false); - return LCS_NONE; -} - -static LockWaitPolicy -_intToEnumLockWaitPolicy(int value) { - switch(value) { - case 1: return LockWaitBlock; - case 2: return LockWaitSkip; - case 3: return LockWaitError; - } - Assert(false); - return LockWaitBlock; -} - -static LockTupleMode -_intToEnumLockTupleMode(int value) { - switch(value) { - case 1: return LockTupleKeyShare; - case 2: return LockTupleShare; - case 3: return LockTupleNoKeyExclusive; - case 4: return LockTupleExclusive; - } - Assert(false); - return LockTupleKeyShare; -} \ No newline at end of file diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_fingerprint_conds.c b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_fingerprint_conds.c deleted file mode 100644 index 8247423bf..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_fingerprint_conds.c +++ /dev/null @@ -1,912 +0,0 @@ -case T_Alias: - // Intentionally ignoring for fingerprinting - break; -case T_RangeVar: - _fingerprintString(ctx, "RangeVar"); - _fingerprintRangeVar(ctx, obj, parent, field_name, depth); - break; -case T_TableFunc: - _fingerprintString(ctx, "TableFunc"); - _fingerprintTableFunc(ctx, obj, parent, field_name, depth); - break; -case T_Var: - _fingerprintString(ctx, "Var"); - _fingerprintVar(ctx, obj, parent, field_name, depth); - break; -case T_Const: - _fingerprintString(ctx, "Const"); - _fingerprintConst(ctx, obj, parent, field_name, depth); - break; -case T_Param: - _fingerprintString(ctx, "Param"); - _fingerprintParam(ctx, obj, parent, field_name, depth); - break; -case T_Aggref: - _fingerprintString(ctx, "Aggref"); - _fingerprintAggref(ctx, obj, parent, field_name, depth); - break; -case T_GroupingFunc: - _fingerprintString(ctx, "GroupingFunc"); - _fingerprintGroupingFunc(ctx, obj, parent, field_name, depth); - break; -case T_WindowFunc: - _fingerprintString(ctx, "WindowFunc"); - _fingerprintWindowFunc(ctx, obj, parent, field_name, depth); - break; -case T_SubscriptingRef: - _fingerprintString(ctx, "SubscriptingRef"); - _fingerprintSubscriptingRef(ctx, obj, parent, field_name, depth); - break; -case T_FuncExpr: - _fingerprintString(ctx, "FuncExpr"); - _fingerprintFuncExpr(ctx, obj, parent, field_name, depth); - break; -case T_NamedArgExpr: - _fingerprintString(ctx, "NamedArgExpr"); - _fingerprintNamedArgExpr(ctx, obj, parent, field_name, depth); - break; -case T_OpExpr: - _fingerprintString(ctx, "OpExpr"); - _fingerprintOpExpr(ctx, obj, parent, field_name, depth); - break; -case T_ScalarArrayOpExpr: - _fingerprintString(ctx, "ScalarArrayOpExpr"); - _fingerprintScalarArrayOpExpr(ctx, obj, parent, field_name, depth); - break; -case T_BoolExpr: - _fingerprintString(ctx, "BoolExpr"); - _fingerprintBoolExpr(ctx, obj, parent, field_name, depth); - break; -case T_SubLink: - _fingerprintString(ctx, "SubLink"); - _fingerprintSubLink(ctx, obj, parent, field_name, depth); - break; -case T_SubPlan: - _fingerprintString(ctx, "SubPlan"); - _fingerprintSubPlan(ctx, obj, parent, field_name, depth); - break; -case T_AlternativeSubPlan: - _fingerprintString(ctx, "AlternativeSubPlan"); - _fingerprintAlternativeSubPlan(ctx, obj, parent, field_name, depth); - break; -case T_FieldSelect: - _fingerprintString(ctx, "FieldSelect"); - _fingerprintFieldSelect(ctx, obj, parent, field_name, depth); - break; -case T_FieldStore: - _fingerprintString(ctx, "FieldStore"); - _fingerprintFieldStore(ctx, obj, parent, field_name, depth); - break; -case T_RelabelType: - _fingerprintString(ctx, "RelabelType"); - _fingerprintRelabelType(ctx, obj, parent, field_name, depth); - break; -case T_CoerceViaIO: - _fingerprintString(ctx, "CoerceViaIO"); - _fingerprintCoerceViaIO(ctx, obj, parent, field_name, depth); - break; -case T_ArrayCoerceExpr: - _fingerprintString(ctx, "ArrayCoerceExpr"); - _fingerprintArrayCoerceExpr(ctx, obj, parent, field_name, depth); - break; -case T_ConvertRowtypeExpr: - _fingerprintString(ctx, "ConvertRowtypeExpr"); - _fingerprintConvertRowtypeExpr(ctx, obj, parent, field_name, depth); - break; -case T_CollateExpr: - _fingerprintString(ctx, "CollateExpr"); - _fingerprintCollateExpr(ctx, obj, parent, field_name, depth); - break; -case T_CaseExpr: - _fingerprintString(ctx, "CaseExpr"); - _fingerprintCaseExpr(ctx, obj, parent, field_name, depth); - break; -case T_CaseWhen: - _fingerprintString(ctx, "CaseWhen"); - _fingerprintCaseWhen(ctx, obj, parent, field_name, depth); - break; -case T_CaseTestExpr: - _fingerprintString(ctx, "CaseTestExpr"); - _fingerprintCaseTestExpr(ctx, obj, parent, field_name, depth); - break; -case T_ArrayExpr: - _fingerprintString(ctx, "ArrayExpr"); - _fingerprintArrayExpr(ctx, obj, parent, field_name, depth); - break; -case T_RowExpr: - _fingerprintString(ctx, "RowExpr"); - _fingerprintRowExpr(ctx, obj, parent, field_name, depth); - break; -case T_RowCompareExpr: - _fingerprintString(ctx, "RowCompareExpr"); - _fingerprintRowCompareExpr(ctx, obj, parent, field_name, depth); - break; -case T_CoalesceExpr: - _fingerprintString(ctx, "CoalesceExpr"); - _fingerprintCoalesceExpr(ctx, obj, parent, field_name, depth); - break; -case T_MinMaxExpr: - _fingerprintString(ctx, "MinMaxExpr"); - _fingerprintMinMaxExpr(ctx, obj, parent, field_name, depth); - break; -case T_SQLValueFunction: - _fingerprintString(ctx, "SQLValueFunction"); - _fingerprintSQLValueFunction(ctx, obj, parent, field_name, depth); - break; -case T_XmlExpr: - _fingerprintString(ctx, "XmlExpr"); - _fingerprintXmlExpr(ctx, obj, parent, field_name, depth); - break; -case T_NullTest: - _fingerprintString(ctx, "NullTest"); - _fingerprintNullTest(ctx, obj, parent, field_name, depth); - break; -case T_BooleanTest: - _fingerprintString(ctx, "BooleanTest"); - _fingerprintBooleanTest(ctx, obj, parent, field_name, depth); - break; -case T_CoerceToDomain: - _fingerprintString(ctx, "CoerceToDomain"); - _fingerprintCoerceToDomain(ctx, obj, parent, field_name, depth); - break; -case T_CoerceToDomainValue: - _fingerprintString(ctx, "CoerceToDomainValue"); - _fingerprintCoerceToDomainValue(ctx, obj, parent, field_name, depth); - break; -case T_SetToDefault: - // Intentionally ignoring for fingerprinting - break; -case T_CurrentOfExpr: - _fingerprintString(ctx, "CurrentOfExpr"); - _fingerprintCurrentOfExpr(ctx, obj, parent, field_name, depth); - break; -case T_NextValueExpr: - _fingerprintString(ctx, "NextValueExpr"); - _fingerprintNextValueExpr(ctx, obj, parent, field_name, depth); - break; -case T_InferenceElem: - _fingerprintString(ctx, "InferenceElem"); - _fingerprintInferenceElem(ctx, obj, parent, field_name, depth); - break; -case T_TargetEntry: - _fingerprintString(ctx, "TargetEntry"); - _fingerprintTargetEntry(ctx, obj, parent, field_name, depth); - break; -case T_RangeTblRef: - _fingerprintString(ctx, "RangeTblRef"); - _fingerprintRangeTblRef(ctx, obj, parent, field_name, depth); - break; -case T_JoinExpr: - _fingerprintString(ctx, "JoinExpr"); - _fingerprintJoinExpr(ctx, obj, parent, field_name, depth); - break; -case T_FromExpr: - _fingerprintString(ctx, "FromExpr"); - _fingerprintFromExpr(ctx, obj, parent, field_name, depth); - break; -case T_OnConflictExpr: - _fingerprintString(ctx, "OnConflictExpr"); - _fingerprintOnConflictExpr(ctx, obj, parent, field_name, depth); - break; -case T_IntoClause: - _fingerprintString(ctx, "IntoClause"); - _fingerprintIntoClause(ctx, obj, parent, field_name, depth); - break; -case T_MergeAction: - _fingerprintString(ctx, "MergeAction"); - _fingerprintMergeAction(ctx, obj, parent, field_name, depth); - break; -case T_RawStmt: - _fingerprintString(ctx, "RawStmt"); - _fingerprintRawStmt(ctx, obj, parent, field_name, depth); - break; -case T_Query: - _fingerprintString(ctx, "Query"); - _fingerprintQuery(ctx, obj, parent, field_name, depth); - break; -case T_InsertStmt: - _fingerprintString(ctx, "InsertStmt"); - _fingerprintInsertStmt(ctx, obj, parent, field_name, depth); - break; -case T_DeleteStmt: - _fingerprintString(ctx, "DeleteStmt"); - _fingerprintDeleteStmt(ctx, obj, parent, field_name, depth); - break; -case T_UpdateStmt: - _fingerprintString(ctx, "UpdateStmt"); - _fingerprintUpdateStmt(ctx, obj, parent, field_name, depth); - break; -case T_MergeStmt: - _fingerprintString(ctx, "MergeStmt"); - _fingerprintMergeStmt(ctx, obj, parent, field_name, depth); - break; -case T_SelectStmt: - _fingerprintString(ctx, "SelectStmt"); - _fingerprintSelectStmt(ctx, obj, parent, field_name, depth); - break; -case T_ReturnStmt: - _fingerprintString(ctx, "ReturnStmt"); - _fingerprintReturnStmt(ctx, obj, parent, field_name, depth); - break; -case T_PLAssignStmt: - _fingerprintString(ctx, "PLAssignStmt"); - _fingerprintPLAssignStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterTableStmt: - _fingerprintString(ctx, "AlterTableStmt"); - _fingerprintAlterTableStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterTableCmd: - _fingerprintString(ctx, "AlterTableCmd"); - _fingerprintAlterTableCmd(ctx, obj, parent, field_name, depth); - break; -case T_AlterDomainStmt: - _fingerprintString(ctx, "AlterDomainStmt"); - _fingerprintAlterDomainStmt(ctx, obj, parent, field_name, depth); - break; -case T_SetOperationStmt: - _fingerprintString(ctx, "SetOperationStmt"); - _fingerprintSetOperationStmt(ctx, obj, parent, field_name, depth); - break; -case T_GrantStmt: - _fingerprintString(ctx, "GrantStmt"); - _fingerprintGrantStmt(ctx, obj, parent, field_name, depth); - break; -case T_GrantRoleStmt: - _fingerprintString(ctx, "GrantRoleStmt"); - _fingerprintGrantRoleStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterDefaultPrivilegesStmt: - _fingerprintString(ctx, "AlterDefaultPrivilegesStmt"); - _fingerprintAlterDefaultPrivilegesStmt(ctx, obj, parent, field_name, depth); - break; -case T_ClosePortalStmt: - _fingerprintString(ctx, "ClosePortalStmt"); - _fingerprintClosePortalStmt(ctx, obj, parent, field_name, depth); - break; -case T_ClusterStmt: - _fingerprintString(ctx, "ClusterStmt"); - _fingerprintClusterStmt(ctx, obj, parent, field_name, depth); - break; -case T_CopyStmt: - _fingerprintString(ctx, "CopyStmt"); - _fingerprintCopyStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateStmt: - _fingerprintString(ctx, "CreateStmt"); - _fingerprintCreateStmt(ctx, obj, parent, field_name, depth); - break; -case T_DefineStmt: - _fingerprintString(ctx, "DefineStmt"); - _fingerprintDefineStmt(ctx, obj, parent, field_name, depth); - break; -case T_DropStmt: - _fingerprintString(ctx, "DropStmt"); - _fingerprintDropStmt(ctx, obj, parent, field_name, depth); - break; -case T_TruncateStmt: - _fingerprintString(ctx, "TruncateStmt"); - _fingerprintTruncateStmt(ctx, obj, parent, field_name, depth); - break; -case T_CommentStmt: - _fingerprintString(ctx, "CommentStmt"); - _fingerprintCommentStmt(ctx, obj, parent, field_name, depth); - break; -case T_FetchStmt: - _fingerprintString(ctx, "FetchStmt"); - _fingerprintFetchStmt(ctx, obj, parent, field_name, depth); - break; -case T_IndexStmt: - _fingerprintString(ctx, "IndexStmt"); - _fingerprintIndexStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateFunctionStmt: - _fingerprintString(ctx, "CreateFunctionStmt"); - _fingerprintCreateFunctionStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterFunctionStmt: - _fingerprintString(ctx, "AlterFunctionStmt"); - _fingerprintAlterFunctionStmt(ctx, obj, parent, field_name, depth); - break; -case T_DoStmt: - _fingerprintString(ctx, "DoStmt"); - _fingerprintDoStmt(ctx, obj, parent, field_name, depth); - break; -case T_RenameStmt: - _fingerprintString(ctx, "RenameStmt"); - _fingerprintRenameStmt(ctx, obj, parent, field_name, depth); - break; -case T_RuleStmt: - _fingerprintString(ctx, "RuleStmt"); - _fingerprintRuleStmt(ctx, obj, parent, field_name, depth); - break; -case T_NotifyStmt: - _fingerprintString(ctx, "NotifyStmt"); - _fingerprintNotifyStmt(ctx, obj, parent, field_name, depth); - break; -case T_ListenStmt: - _fingerprintString(ctx, "ListenStmt"); - _fingerprintListenStmt(ctx, obj, parent, field_name, depth); - break; -case T_UnlistenStmt: - _fingerprintString(ctx, "UnlistenStmt"); - _fingerprintUnlistenStmt(ctx, obj, parent, field_name, depth); - break; -case T_TransactionStmt: - _fingerprintString(ctx, "TransactionStmt"); - _fingerprintTransactionStmt(ctx, obj, parent, field_name, depth); - break; -case T_ViewStmt: - _fingerprintString(ctx, "ViewStmt"); - _fingerprintViewStmt(ctx, obj, parent, field_name, depth); - break; -case T_LoadStmt: - _fingerprintString(ctx, "LoadStmt"); - _fingerprintLoadStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateDomainStmt: - _fingerprintString(ctx, "CreateDomainStmt"); - _fingerprintCreateDomainStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreatedbStmt: - _fingerprintString(ctx, "CreatedbStmt"); - _fingerprintCreatedbStmt(ctx, obj, parent, field_name, depth); - break; -case T_DropdbStmt: - _fingerprintString(ctx, "DropdbStmt"); - _fingerprintDropdbStmt(ctx, obj, parent, field_name, depth); - break; -case T_VacuumStmt: - _fingerprintString(ctx, "VacuumStmt"); - _fingerprintVacuumStmt(ctx, obj, parent, field_name, depth); - break; -case T_ExplainStmt: - _fingerprintString(ctx, "ExplainStmt"); - _fingerprintExplainStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateTableAsStmt: - _fingerprintString(ctx, "CreateTableAsStmt"); - _fingerprintCreateTableAsStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateSeqStmt: - _fingerprintString(ctx, "CreateSeqStmt"); - _fingerprintCreateSeqStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterSeqStmt: - _fingerprintString(ctx, "AlterSeqStmt"); - _fingerprintAlterSeqStmt(ctx, obj, parent, field_name, depth); - break; -case T_VariableSetStmt: - _fingerprintString(ctx, "VariableSetStmt"); - _fingerprintVariableSetStmt(ctx, obj, parent, field_name, depth); - break; -case T_VariableShowStmt: - _fingerprintString(ctx, "VariableShowStmt"); - _fingerprintVariableShowStmt(ctx, obj, parent, field_name, depth); - break; -case T_DiscardStmt: - _fingerprintString(ctx, "DiscardStmt"); - _fingerprintDiscardStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateTrigStmt: - _fingerprintString(ctx, "CreateTrigStmt"); - _fingerprintCreateTrigStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreatePLangStmt: - _fingerprintString(ctx, "CreatePLangStmt"); - _fingerprintCreatePLangStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateRoleStmt: - _fingerprintString(ctx, "CreateRoleStmt"); - _fingerprintCreateRoleStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterRoleStmt: - _fingerprintString(ctx, "AlterRoleStmt"); - _fingerprintAlterRoleStmt(ctx, obj, parent, field_name, depth); - break; -case T_DropRoleStmt: - _fingerprintString(ctx, "DropRoleStmt"); - _fingerprintDropRoleStmt(ctx, obj, parent, field_name, depth); - break; -case T_LockStmt: - _fingerprintString(ctx, "LockStmt"); - _fingerprintLockStmt(ctx, obj, parent, field_name, depth); - break; -case T_ConstraintsSetStmt: - _fingerprintString(ctx, "ConstraintsSetStmt"); - _fingerprintConstraintsSetStmt(ctx, obj, parent, field_name, depth); - break; -case T_ReindexStmt: - _fingerprintString(ctx, "ReindexStmt"); - _fingerprintReindexStmt(ctx, obj, parent, field_name, depth); - break; -case T_CheckPointStmt: - _fingerprintString(ctx, "CheckPointStmt"); - _fingerprintCheckPointStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateSchemaStmt: - _fingerprintString(ctx, "CreateSchemaStmt"); - _fingerprintCreateSchemaStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterDatabaseStmt: - _fingerprintString(ctx, "AlterDatabaseStmt"); - _fingerprintAlterDatabaseStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterDatabaseRefreshCollStmt: - _fingerprintString(ctx, "AlterDatabaseRefreshCollStmt"); - _fingerprintAlterDatabaseRefreshCollStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterDatabaseSetStmt: - _fingerprintString(ctx, "AlterDatabaseSetStmt"); - _fingerprintAlterDatabaseSetStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterRoleSetStmt: - _fingerprintString(ctx, "AlterRoleSetStmt"); - _fingerprintAlterRoleSetStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateConversionStmt: - _fingerprintString(ctx, "CreateConversionStmt"); - _fingerprintCreateConversionStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateCastStmt: - _fingerprintString(ctx, "CreateCastStmt"); - _fingerprintCreateCastStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateOpClassStmt: - _fingerprintString(ctx, "CreateOpClassStmt"); - _fingerprintCreateOpClassStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateOpFamilyStmt: - _fingerprintString(ctx, "CreateOpFamilyStmt"); - _fingerprintCreateOpFamilyStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterOpFamilyStmt: - _fingerprintString(ctx, "AlterOpFamilyStmt"); - _fingerprintAlterOpFamilyStmt(ctx, obj, parent, field_name, depth); - break; -case T_PrepareStmt: - _fingerprintString(ctx, "PrepareStmt"); - _fingerprintPrepareStmt(ctx, obj, parent, field_name, depth); - break; -case T_ExecuteStmt: - _fingerprintString(ctx, "ExecuteStmt"); - _fingerprintExecuteStmt(ctx, obj, parent, field_name, depth); - break; -case T_DeallocateStmt: - _fingerprintString(ctx, "DeallocateStmt"); - _fingerprintDeallocateStmt(ctx, obj, parent, field_name, depth); - break; -case T_DeclareCursorStmt: - _fingerprintString(ctx, "DeclareCursorStmt"); - _fingerprintDeclareCursorStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateTableSpaceStmt: - _fingerprintString(ctx, "CreateTableSpaceStmt"); - _fingerprintCreateTableSpaceStmt(ctx, obj, parent, field_name, depth); - break; -case T_DropTableSpaceStmt: - _fingerprintString(ctx, "DropTableSpaceStmt"); - _fingerprintDropTableSpaceStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterObjectDependsStmt: - _fingerprintString(ctx, "AlterObjectDependsStmt"); - _fingerprintAlterObjectDependsStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterObjectSchemaStmt: - _fingerprintString(ctx, "AlterObjectSchemaStmt"); - _fingerprintAlterObjectSchemaStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterOwnerStmt: - _fingerprintString(ctx, "AlterOwnerStmt"); - _fingerprintAlterOwnerStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterOperatorStmt: - _fingerprintString(ctx, "AlterOperatorStmt"); - _fingerprintAlterOperatorStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterTypeStmt: - _fingerprintString(ctx, "AlterTypeStmt"); - _fingerprintAlterTypeStmt(ctx, obj, parent, field_name, depth); - break; -case T_DropOwnedStmt: - _fingerprintString(ctx, "DropOwnedStmt"); - _fingerprintDropOwnedStmt(ctx, obj, parent, field_name, depth); - break; -case T_ReassignOwnedStmt: - _fingerprintString(ctx, "ReassignOwnedStmt"); - _fingerprintReassignOwnedStmt(ctx, obj, parent, field_name, depth); - break; -case T_CompositeTypeStmt: - _fingerprintString(ctx, "CompositeTypeStmt"); - _fingerprintCompositeTypeStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateEnumStmt: - _fingerprintString(ctx, "CreateEnumStmt"); - _fingerprintCreateEnumStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateRangeStmt: - _fingerprintString(ctx, "CreateRangeStmt"); - _fingerprintCreateRangeStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterEnumStmt: - _fingerprintString(ctx, "AlterEnumStmt"); - _fingerprintAlterEnumStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterTSDictionaryStmt: - _fingerprintString(ctx, "AlterTSDictionaryStmt"); - _fingerprintAlterTSDictionaryStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterTSConfigurationStmt: - _fingerprintString(ctx, "AlterTSConfigurationStmt"); - _fingerprintAlterTSConfigurationStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateFdwStmt: - _fingerprintString(ctx, "CreateFdwStmt"); - _fingerprintCreateFdwStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterFdwStmt: - _fingerprintString(ctx, "AlterFdwStmt"); - _fingerprintAlterFdwStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateForeignServerStmt: - _fingerprintString(ctx, "CreateForeignServerStmt"); - _fingerprintCreateForeignServerStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterForeignServerStmt: - _fingerprintString(ctx, "AlterForeignServerStmt"); - _fingerprintAlterForeignServerStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateUserMappingStmt: - _fingerprintString(ctx, "CreateUserMappingStmt"); - _fingerprintCreateUserMappingStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterUserMappingStmt: - _fingerprintString(ctx, "AlterUserMappingStmt"); - _fingerprintAlterUserMappingStmt(ctx, obj, parent, field_name, depth); - break; -case T_DropUserMappingStmt: - _fingerprintString(ctx, "DropUserMappingStmt"); - _fingerprintDropUserMappingStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterTableSpaceOptionsStmt: - _fingerprintString(ctx, "AlterTableSpaceOptionsStmt"); - _fingerprintAlterTableSpaceOptionsStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterTableMoveAllStmt: - _fingerprintString(ctx, "AlterTableMoveAllStmt"); - _fingerprintAlterTableMoveAllStmt(ctx, obj, parent, field_name, depth); - break; -case T_SecLabelStmt: - _fingerprintString(ctx, "SecLabelStmt"); - _fingerprintSecLabelStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateForeignTableStmt: - _fingerprintString(ctx, "CreateForeignTableStmt"); - _fingerprintCreateForeignTableStmt(ctx, obj, parent, field_name, depth); - break; -case T_ImportForeignSchemaStmt: - _fingerprintString(ctx, "ImportForeignSchemaStmt"); - _fingerprintImportForeignSchemaStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateExtensionStmt: - _fingerprintString(ctx, "CreateExtensionStmt"); - _fingerprintCreateExtensionStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterExtensionStmt: - _fingerprintString(ctx, "AlterExtensionStmt"); - _fingerprintAlterExtensionStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterExtensionContentsStmt: - _fingerprintString(ctx, "AlterExtensionContentsStmt"); - _fingerprintAlterExtensionContentsStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateEventTrigStmt: - _fingerprintString(ctx, "CreateEventTrigStmt"); - _fingerprintCreateEventTrigStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterEventTrigStmt: - _fingerprintString(ctx, "AlterEventTrigStmt"); - _fingerprintAlterEventTrigStmt(ctx, obj, parent, field_name, depth); - break; -case T_RefreshMatViewStmt: - _fingerprintString(ctx, "RefreshMatViewStmt"); - _fingerprintRefreshMatViewStmt(ctx, obj, parent, field_name, depth); - break; -case T_ReplicaIdentityStmt: - _fingerprintString(ctx, "ReplicaIdentityStmt"); - _fingerprintReplicaIdentityStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterSystemStmt: - _fingerprintString(ctx, "AlterSystemStmt"); - _fingerprintAlterSystemStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreatePolicyStmt: - _fingerprintString(ctx, "CreatePolicyStmt"); - _fingerprintCreatePolicyStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterPolicyStmt: - _fingerprintString(ctx, "AlterPolicyStmt"); - _fingerprintAlterPolicyStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateTransformStmt: - _fingerprintString(ctx, "CreateTransformStmt"); - _fingerprintCreateTransformStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateAmStmt: - _fingerprintString(ctx, "CreateAmStmt"); - _fingerprintCreateAmStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreatePublicationStmt: - _fingerprintString(ctx, "CreatePublicationStmt"); - _fingerprintCreatePublicationStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterPublicationStmt: - _fingerprintString(ctx, "AlterPublicationStmt"); - _fingerprintAlterPublicationStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateSubscriptionStmt: - _fingerprintString(ctx, "CreateSubscriptionStmt"); - _fingerprintCreateSubscriptionStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterSubscriptionStmt: - _fingerprintString(ctx, "AlterSubscriptionStmt"); - _fingerprintAlterSubscriptionStmt(ctx, obj, parent, field_name, depth); - break; -case T_DropSubscriptionStmt: - _fingerprintString(ctx, "DropSubscriptionStmt"); - _fingerprintDropSubscriptionStmt(ctx, obj, parent, field_name, depth); - break; -case T_CreateStatsStmt: - _fingerprintString(ctx, "CreateStatsStmt"); - _fingerprintCreateStatsStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterCollationStmt: - _fingerprintString(ctx, "AlterCollationStmt"); - _fingerprintAlterCollationStmt(ctx, obj, parent, field_name, depth); - break; -case T_CallStmt: - _fingerprintString(ctx, "CallStmt"); - _fingerprintCallStmt(ctx, obj, parent, field_name, depth); - break; -case T_AlterStatsStmt: - _fingerprintString(ctx, "AlterStatsStmt"); - _fingerprintAlterStatsStmt(ctx, obj, parent, field_name, depth); - break; -case T_A_Expr: - _fingerprintString(ctx, "A_Expr"); - _fingerprintA_Expr(ctx, obj, parent, field_name, depth); - break; -case T_ColumnRef: - _fingerprintString(ctx, "ColumnRef"); - _fingerprintColumnRef(ctx, obj, parent, field_name, depth); - break; -case T_ParamRef: - // Intentionally ignoring for fingerprinting - break; -case T_FuncCall: - _fingerprintString(ctx, "FuncCall"); - _fingerprintFuncCall(ctx, obj, parent, field_name, depth); - break; -case T_A_Star: - _fingerprintString(ctx, "A_Star"); - _fingerprintA_Star(ctx, obj, parent, field_name, depth); - break; -case T_A_Indices: - _fingerprintString(ctx, "A_Indices"); - _fingerprintA_Indices(ctx, obj, parent, field_name, depth); - break; -case T_A_Indirection: - _fingerprintString(ctx, "A_Indirection"); - _fingerprintA_Indirection(ctx, obj, parent, field_name, depth); - break; -case T_A_ArrayExpr: - _fingerprintString(ctx, "A_ArrayExpr"); - _fingerprintA_ArrayExpr(ctx, obj, parent, field_name, depth); - break; -case T_ResTarget: - _fingerprintString(ctx, "ResTarget"); - _fingerprintResTarget(ctx, obj, parent, field_name, depth); - break; -case T_MultiAssignRef: - _fingerprintString(ctx, "MultiAssignRef"); - _fingerprintMultiAssignRef(ctx, obj, parent, field_name, depth); - break; -case T_TypeCast: - if (!IsA(castNode(TypeCast, (void*) obj)->arg, A_Const) && !IsA(castNode(TypeCast, (void*) obj)->arg, ParamRef)) - { - _fingerprintString(ctx, "TypeCast"); - _fingerprintTypeCast(ctx, obj, parent, field_name, depth); - } - break; -case T_CollateClause: - _fingerprintString(ctx, "CollateClause"); - _fingerprintCollateClause(ctx, obj, parent, field_name, depth); - break; -case T_SortBy: - _fingerprintString(ctx, "SortBy"); - _fingerprintSortBy(ctx, obj, parent, field_name, depth); - break; -case T_WindowDef: - _fingerprintString(ctx, "WindowDef"); - _fingerprintWindowDef(ctx, obj, parent, field_name, depth); - break; -case T_RangeSubselect: - _fingerprintString(ctx, "RangeSubselect"); - _fingerprintRangeSubselect(ctx, obj, parent, field_name, depth); - break; -case T_RangeFunction: - _fingerprintString(ctx, "RangeFunction"); - _fingerprintRangeFunction(ctx, obj, parent, field_name, depth); - break; -case T_RangeTableSample: - _fingerprintString(ctx, "RangeTableSample"); - _fingerprintRangeTableSample(ctx, obj, parent, field_name, depth); - break; -case T_RangeTableFunc: - _fingerprintString(ctx, "RangeTableFunc"); - _fingerprintRangeTableFunc(ctx, obj, parent, field_name, depth); - break; -case T_RangeTableFuncCol: - _fingerprintString(ctx, "RangeTableFuncCol"); - _fingerprintRangeTableFuncCol(ctx, obj, parent, field_name, depth); - break; -case T_TypeName: - _fingerprintString(ctx, "TypeName"); - _fingerprintTypeName(ctx, obj, parent, field_name, depth); - break; -case T_ColumnDef: - _fingerprintString(ctx, "ColumnDef"); - _fingerprintColumnDef(ctx, obj, parent, field_name, depth); - break; -case T_IndexElem: - _fingerprintString(ctx, "IndexElem"); - _fingerprintIndexElem(ctx, obj, parent, field_name, depth); - break; -case T_StatsElem: - _fingerprintString(ctx, "StatsElem"); - _fingerprintStatsElem(ctx, obj, parent, field_name, depth); - break; -case T_Constraint: - _fingerprintString(ctx, "Constraint"); - _fingerprintConstraint(ctx, obj, parent, field_name, depth); - break; -case T_DefElem: - _fingerprintString(ctx, "DefElem"); - _fingerprintDefElem(ctx, obj, parent, field_name, depth); - break; -case T_RangeTblEntry: - _fingerprintString(ctx, "RangeTblEntry"); - _fingerprintRangeTblEntry(ctx, obj, parent, field_name, depth); - break; -case T_RangeTblFunction: - _fingerprintString(ctx, "RangeTblFunction"); - _fingerprintRangeTblFunction(ctx, obj, parent, field_name, depth); - break; -case T_TableSampleClause: - _fingerprintString(ctx, "TableSampleClause"); - _fingerprintTableSampleClause(ctx, obj, parent, field_name, depth); - break; -case T_WithCheckOption: - _fingerprintString(ctx, "WithCheckOption"); - _fingerprintWithCheckOption(ctx, obj, parent, field_name, depth); - break; -case T_SortGroupClause: - _fingerprintString(ctx, "SortGroupClause"); - _fingerprintSortGroupClause(ctx, obj, parent, field_name, depth); - break; -case T_GroupingSet: - _fingerprintString(ctx, "GroupingSet"); - _fingerprintGroupingSet(ctx, obj, parent, field_name, depth); - break; -case T_WindowClause: - _fingerprintString(ctx, "WindowClause"); - _fingerprintWindowClause(ctx, obj, parent, field_name, depth); - break; -case T_ObjectWithArgs: - _fingerprintString(ctx, "ObjectWithArgs"); - _fingerprintObjectWithArgs(ctx, obj, parent, field_name, depth); - break; -case T_AccessPriv: - _fingerprintString(ctx, "AccessPriv"); - _fingerprintAccessPriv(ctx, obj, parent, field_name, depth); - break; -case T_CreateOpClassItem: - _fingerprintString(ctx, "CreateOpClassItem"); - _fingerprintCreateOpClassItem(ctx, obj, parent, field_name, depth); - break; -case T_TableLikeClause: - _fingerprintString(ctx, "TableLikeClause"); - _fingerprintTableLikeClause(ctx, obj, parent, field_name, depth); - break; -case T_FunctionParameter: - _fingerprintString(ctx, "FunctionParameter"); - _fingerprintFunctionParameter(ctx, obj, parent, field_name, depth); - break; -case T_LockingClause: - _fingerprintString(ctx, "LockingClause"); - _fingerprintLockingClause(ctx, obj, parent, field_name, depth); - break; -case T_RowMarkClause: - _fingerprintString(ctx, "RowMarkClause"); - _fingerprintRowMarkClause(ctx, obj, parent, field_name, depth); - break; -case T_XmlSerialize: - _fingerprintString(ctx, "XmlSerialize"); - _fingerprintXmlSerialize(ctx, obj, parent, field_name, depth); - break; -case T_WithClause: - _fingerprintString(ctx, "WithClause"); - _fingerprintWithClause(ctx, obj, parent, field_name, depth); - break; -case T_InferClause: - _fingerprintString(ctx, "InferClause"); - _fingerprintInferClause(ctx, obj, parent, field_name, depth); - break; -case T_OnConflictClause: - _fingerprintString(ctx, "OnConflictClause"); - _fingerprintOnConflictClause(ctx, obj, parent, field_name, depth); - break; -case T_CTESearchClause: - _fingerprintString(ctx, "CTESearchClause"); - _fingerprintCTESearchClause(ctx, obj, parent, field_name, depth); - break; -case T_CTECycleClause: - _fingerprintString(ctx, "CTECycleClause"); - _fingerprintCTECycleClause(ctx, obj, parent, field_name, depth); - break; -case T_CommonTableExpr: - _fingerprintString(ctx, "CommonTableExpr"); - _fingerprintCommonTableExpr(ctx, obj, parent, field_name, depth); - break; -case T_MergeWhenClause: - _fingerprintString(ctx, "MergeWhenClause"); - _fingerprintMergeWhenClause(ctx, obj, parent, field_name, depth); - break; -case T_RoleSpec: - _fingerprintString(ctx, "RoleSpec"); - _fingerprintRoleSpec(ctx, obj, parent, field_name, depth); - break; -case T_TriggerTransition: - _fingerprintString(ctx, "TriggerTransition"); - _fingerprintTriggerTransition(ctx, obj, parent, field_name, depth); - break; -case T_PartitionElem: - _fingerprintString(ctx, "PartitionElem"); - _fingerprintPartitionElem(ctx, obj, parent, field_name, depth); - break; -case T_PartitionSpec: - _fingerprintString(ctx, "PartitionSpec"); - _fingerprintPartitionSpec(ctx, obj, parent, field_name, depth); - break; -case T_PartitionBoundSpec: - _fingerprintString(ctx, "PartitionBoundSpec"); - _fingerprintPartitionBoundSpec(ctx, obj, parent, field_name, depth); - break; -case T_PartitionRangeDatum: - _fingerprintString(ctx, "PartitionRangeDatum"); - _fingerprintPartitionRangeDatum(ctx, obj, parent, field_name, depth); - break; -case T_PartitionCmd: - _fingerprintString(ctx, "PartitionCmd"); - _fingerprintPartitionCmd(ctx, obj, parent, field_name, depth); - break; -case T_VacuumRelation: - _fingerprintString(ctx, "VacuumRelation"); - _fingerprintVacuumRelation(ctx, obj, parent, field_name, depth); - break; -case T_PublicationObjSpec: - _fingerprintString(ctx, "PublicationObjSpec"); - _fingerprintPublicationObjSpec(ctx, obj, parent, field_name, depth); - break; -case T_PublicationTable: - _fingerprintString(ctx, "PublicationTable"); - _fingerprintPublicationTable(ctx, obj, parent, field_name, depth); - break; -case T_InlineCodeBlock: - _fingerprintString(ctx, "InlineCodeBlock"); - _fingerprintInlineCodeBlock(ctx, obj, parent, field_name, depth); - break; -case T_CallContext: - _fingerprintString(ctx, "CallContext"); - _fingerprintCallContext(ctx, obj, parent, field_name, depth); - break; diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_fingerprint_defs.c b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_fingerprint_defs.c deleted file mode 100644 index c8fee7e1e..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_fingerprint_defs.c +++ /dev/null @@ -1,13211 +0,0 @@ -static void _fingerprintAlias(FingerprintContext *ctx, const Alias *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintRangeVar(FingerprintContext *ctx, const RangeVar *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintTableFunc(FingerprintContext *ctx, const TableFunc *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintVar(FingerprintContext *ctx, const Var *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintConst(FingerprintContext *ctx, const Const *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintParam(FingerprintContext *ctx, const Param *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAggref(FingerprintContext *ctx, const Aggref *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintGroupingFunc(FingerprintContext *ctx, const GroupingFunc *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintWindowFunc(FingerprintContext *ctx, const WindowFunc *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintSubscriptingRef(FingerprintContext *ctx, const SubscriptingRef *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintFuncExpr(FingerprintContext *ctx, const FuncExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintNamedArgExpr(FingerprintContext *ctx, const NamedArgExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintOpExpr(FingerprintContext *ctx, const OpExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintScalarArrayOpExpr(FingerprintContext *ctx, const ScalarArrayOpExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintBoolExpr(FingerprintContext *ctx, const BoolExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintSubLink(FingerprintContext *ctx, const SubLink *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintSubPlan(FingerprintContext *ctx, const SubPlan *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlternativeSubPlan(FingerprintContext *ctx, const AlternativeSubPlan *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintFieldSelect(FingerprintContext *ctx, const FieldSelect *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintFieldStore(FingerprintContext *ctx, const FieldStore *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintRelabelType(FingerprintContext *ctx, const RelabelType *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCoerceViaIO(FingerprintContext *ctx, const CoerceViaIO *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintArrayCoerceExpr(FingerprintContext *ctx, const ArrayCoerceExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintConvertRowtypeExpr(FingerprintContext *ctx, const ConvertRowtypeExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCollateExpr(FingerprintContext *ctx, const CollateExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCaseExpr(FingerprintContext *ctx, const CaseExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCaseWhen(FingerprintContext *ctx, const CaseWhen *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCaseTestExpr(FingerprintContext *ctx, const CaseTestExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintArrayExpr(FingerprintContext *ctx, const ArrayExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintRowExpr(FingerprintContext *ctx, const RowExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintRowCompareExpr(FingerprintContext *ctx, const RowCompareExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCoalesceExpr(FingerprintContext *ctx, const CoalesceExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintMinMaxExpr(FingerprintContext *ctx, const MinMaxExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintSQLValueFunction(FingerprintContext *ctx, const SQLValueFunction *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintXmlExpr(FingerprintContext *ctx, const XmlExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintNullTest(FingerprintContext *ctx, const NullTest *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintBooleanTest(FingerprintContext *ctx, const BooleanTest *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCoerceToDomain(FingerprintContext *ctx, const CoerceToDomain *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCoerceToDomainValue(FingerprintContext *ctx, const CoerceToDomainValue *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintSetToDefault(FingerprintContext *ctx, const SetToDefault *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCurrentOfExpr(FingerprintContext *ctx, const CurrentOfExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintNextValueExpr(FingerprintContext *ctx, const NextValueExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintInferenceElem(FingerprintContext *ctx, const InferenceElem *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintTargetEntry(FingerprintContext *ctx, const TargetEntry *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintRangeTblRef(FingerprintContext *ctx, const RangeTblRef *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintJoinExpr(FingerprintContext *ctx, const JoinExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintFromExpr(FingerprintContext *ctx, const FromExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintOnConflictExpr(FingerprintContext *ctx, const OnConflictExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintIntoClause(FingerprintContext *ctx, const IntoClause *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintMergeAction(FingerprintContext *ctx, const MergeAction *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintRawStmt(FingerprintContext *ctx, const RawStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintQuery(FingerprintContext *ctx, const Query *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintInsertStmt(FingerprintContext *ctx, const InsertStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintDeleteStmt(FingerprintContext *ctx, const DeleteStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintUpdateStmt(FingerprintContext *ctx, const UpdateStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintMergeStmt(FingerprintContext *ctx, const MergeStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintSelectStmt(FingerprintContext *ctx, const SelectStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintReturnStmt(FingerprintContext *ctx, const ReturnStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintPLAssignStmt(FingerprintContext *ctx, const PLAssignStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterTableStmt(FingerprintContext *ctx, const AlterTableStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterTableCmd(FingerprintContext *ctx, const AlterTableCmd *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterDomainStmt(FingerprintContext *ctx, const AlterDomainStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintSetOperationStmt(FingerprintContext *ctx, const SetOperationStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintGrantStmt(FingerprintContext *ctx, const GrantStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintGrantRoleStmt(FingerprintContext *ctx, const GrantRoleStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterDefaultPrivilegesStmt(FingerprintContext *ctx, const AlterDefaultPrivilegesStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintClosePortalStmt(FingerprintContext *ctx, const ClosePortalStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintClusterStmt(FingerprintContext *ctx, const ClusterStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCopyStmt(FingerprintContext *ctx, const CopyStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateStmt(FingerprintContext *ctx, const CreateStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintDefineStmt(FingerprintContext *ctx, const DefineStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintDropStmt(FingerprintContext *ctx, const DropStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintTruncateStmt(FingerprintContext *ctx, const TruncateStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCommentStmt(FingerprintContext *ctx, const CommentStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintFetchStmt(FingerprintContext *ctx, const FetchStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintIndexStmt(FingerprintContext *ctx, const IndexStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateFunctionStmt(FingerprintContext *ctx, const CreateFunctionStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterFunctionStmt(FingerprintContext *ctx, const AlterFunctionStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintDoStmt(FingerprintContext *ctx, const DoStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintRenameStmt(FingerprintContext *ctx, const RenameStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintRuleStmt(FingerprintContext *ctx, const RuleStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintNotifyStmt(FingerprintContext *ctx, const NotifyStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintListenStmt(FingerprintContext *ctx, const ListenStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintUnlistenStmt(FingerprintContext *ctx, const UnlistenStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintTransactionStmt(FingerprintContext *ctx, const TransactionStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintViewStmt(FingerprintContext *ctx, const ViewStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintLoadStmt(FingerprintContext *ctx, const LoadStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateDomainStmt(FingerprintContext *ctx, const CreateDomainStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreatedbStmt(FingerprintContext *ctx, const CreatedbStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintDropdbStmt(FingerprintContext *ctx, const DropdbStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintVacuumStmt(FingerprintContext *ctx, const VacuumStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintExplainStmt(FingerprintContext *ctx, const ExplainStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateTableAsStmt(FingerprintContext *ctx, const CreateTableAsStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateSeqStmt(FingerprintContext *ctx, const CreateSeqStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterSeqStmt(FingerprintContext *ctx, const AlterSeqStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintVariableSetStmt(FingerprintContext *ctx, const VariableSetStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintVariableShowStmt(FingerprintContext *ctx, const VariableShowStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintDiscardStmt(FingerprintContext *ctx, const DiscardStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateTrigStmt(FingerprintContext *ctx, const CreateTrigStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreatePLangStmt(FingerprintContext *ctx, const CreatePLangStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateRoleStmt(FingerprintContext *ctx, const CreateRoleStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterRoleStmt(FingerprintContext *ctx, const AlterRoleStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintDropRoleStmt(FingerprintContext *ctx, const DropRoleStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintLockStmt(FingerprintContext *ctx, const LockStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintConstraintsSetStmt(FingerprintContext *ctx, const ConstraintsSetStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintReindexStmt(FingerprintContext *ctx, const ReindexStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCheckPointStmt(FingerprintContext *ctx, const CheckPointStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateSchemaStmt(FingerprintContext *ctx, const CreateSchemaStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterDatabaseStmt(FingerprintContext *ctx, const AlterDatabaseStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterDatabaseRefreshCollStmt(FingerprintContext *ctx, const AlterDatabaseRefreshCollStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterDatabaseSetStmt(FingerprintContext *ctx, const AlterDatabaseSetStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterRoleSetStmt(FingerprintContext *ctx, const AlterRoleSetStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateConversionStmt(FingerprintContext *ctx, const CreateConversionStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateCastStmt(FingerprintContext *ctx, const CreateCastStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateOpClassStmt(FingerprintContext *ctx, const CreateOpClassStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateOpFamilyStmt(FingerprintContext *ctx, const CreateOpFamilyStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterOpFamilyStmt(FingerprintContext *ctx, const AlterOpFamilyStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintPrepareStmt(FingerprintContext *ctx, const PrepareStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintExecuteStmt(FingerprintContext *ctx, const ExecuteStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintDeallocateStmt(FingerprintContext *ctx, const DeallocateStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintDeclareCursorStmt(FingerprintContext *ctx, const DeclareCursorStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateTableSpaceStmt(FingerprintContext *ctx, const CreateTableSpaceStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintDropTableSpaceStmt(FingerprintContext *ctx, const DropTableSpaceStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterObjectDependsStmt(FingerprintContext *ctx, const AlterObjectDependsStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterObjectSchemaStmt(FingerprintContext *ctx, const AlterObjectSchemaStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterOwnerStmt(FingerprintContext *ctx, const AlterOwnerStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterOperatorStmt(FingerprintContext *ctx, const AlterOperatorStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterTypeStmt(FingerprintContext *ctx, const AlterTypeStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintDropOwnedStmt(FingerprintContext *ctx, const DropOwnedStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintReassignOwnedStmt(FingerprintContext *ctx, const ReassignOwnedStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCompositeTypeStmt(FingerprintContext *ctx, const CompositeTypeStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateEnumStmt(FingerprintContext *ctx, const CreateEnumStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateRangeStmt(FingerprintContext *ctx, const CreateRangeStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterEnumStmt(FingerprintContext *ctx, const AlterEnumStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterTSDictionaryStmt(FingerprintContext *ctx, const AlterTSDictionaryStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterTSConfigurationStmt(FingerprintContext *ctx, const AlterTSConfigurationStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateFdwStmt(FingerprintContext *ctx, const CreateFdwStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterFdwStmt(FingerprintContext *ctx, const AlterFdwStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateForeignServerStmt(FingerprintContext *ctx, const CreateForeignServerStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterForeignServerStmt(FingerprintContext *ctx, const AlterForeignServerStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateUserMappingStmt(FingerprintContext *ctx, const CreateUserMappingStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterUserMappingStmt(FingerprintContext *ctx, const AlterUserMappingStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintDropUserMappingStmt(FingerprintContext *ctx, const DropUserMappingStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterTableSpaceOptionsStmt(FingerprintContext *ctx, const AlterTableSpaceOptionsStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterTableMoveAllStmt(FingerprintContext *ctx, const AlterTableMoveAllStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintSecLabelStmt(FingerprintContext *ctx, const SecLabelStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateForeignTableStmt(FingerprintContext *ctx, const CreateForeignTableStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintImportForeignSchemaStmt(FingerprintContext *ctx, const ImportForeignSchemaStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateExtensionStmt(FingerprintContext *ctx, const CreateExtensionStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterExtensionStmt(FingerprintContext *ctx, const AlterExtensionStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterExtensionContentsStmt(FingerprintContext *ctx, const AlterExtensionContentsStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateEventTrigStmt(FingerprintContext *ctx, const CreateEventTrigStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterEventTrigStmt(FingerprintContext *ctx, const AlterEventTrigStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintRefreshMatViewStmt(FingerprintContext *ctx, const RefreshMatViewStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintReplicaIdentityStmt(FingerprintContext *ctx, const ReplicaIdentityStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterSystemStmt(FingerprintContext *ctx, const AlterSystemStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreatePolicyStmt(FingerprintContext *ctx, const CreatePolicyStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterPolicyStmt(FingerprintContext *ctx, const AlterPolicyStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateTransformStmt(FingerprintContext *ctx, const CreateTransformStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateAmStmt(FingerprintContext *ctx, const CreateAmStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreatePublicationStmt(FingerprintContext *ctx, const CreatePublicationStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterPublicationStmt(FingerprintContext *ctx, const AlterPublicationStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateSubscriptionStmt(FingerprintContext *ctx, const CreateSubscriptionStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterSubscriptionStmt(FingerprintContext *ctx, const AlterSubscriptionStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintDropSubscriptionStmt(FingerprintContext *ctx, const DropSubscriptionStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateStatsStmt(FingerprintContext *ctx, const CreateStatsStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterCollationStmt(FingerprintContext *ctx, const AlterCollationStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCallStmt(FingerprintContext *ctx, const CallStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAlterStatsStmt(FingerprintContext *ctx, const AlterStatsStmt *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintA_Expr(FingerprintContext *ctx, const A_Expr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintColumnRef(FingerprintContext *ctx, const ColumnRef *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintParamRef(FingerprintContext *ctx, const ParamRef *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintFuncCall(FingerprintContext *ctx, const FuncCall *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintA_Star(FingerprintContext *ctx, const A_Star *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintA_Indices(FingerprintContext *ctx, const A_Indices *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintA_Indirection(FingerprintContext *ctx, const A_Indirection *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintA_ArrayExpr(FingerprintContext *ctx, const A_ArrayExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintResTarget(FingerprintContext *ctx, const ResTarget *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintMultiAssignRef(FingerprintContext *ctx, const MultiAssignRef *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintTypeCast(FingerprintContext *ctx, const TypeCast *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCollateClause(FingerprintContext *ctx, const CollateClause *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintSortBy(FingerprintContext *ctx, const SortBy *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintWindowDef(FingerprintContext *ctx, const WindowDef *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintRangeSubselect(FingerprintContext *ctx, const RangeSubselect *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintRangeFunction(FingerprintContext *ctx, const RangeFunction *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintRangeTableSample(FingerprintContext *ctx, const RangeTableSample *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintRangeTableFunc(FingerprintContext *ctx, const RangeTableFunc *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintRangeTableFuncCol(FingerprintContext *ctx, const RangeTableFuncCol *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintTypeName(FingerprintContext *ctx, const TypeName *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintColumnDef(FingerprintContext *ctx, const ColumnDef *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintIndexElem(FingerprintContext *ctx, const IndexElem *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintStatsElem(FingerprintContext *ctx, const StatsElem *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintConstraint(FingerprintContext *ctx, const Constraint *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintDefElem(FingerprintContext *ctx, const DefElem *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintRangeTblEntry(FingerprintContext *ctx, const RangeTblEntry *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintRangeTblFunction(FingerprintContext *ctx, const RangeTblFunction *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintTableSampleClause(FingerprintContext *ctx, const TableSampleClause *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintWithCheckOption(FingerprintContext *ctx, const WithCheckOption *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintSortGroupClause(FingerprintContext *ctx, const SortGroupClause *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintGroupingSet(FingerprintContext *ctx, const GroupingSet *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintWindowClause(FingerprintContext *ctx, const WindowClause *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintObjectWithArgs(FingerprintContext *ctx, const ObjectWithArgs *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintAccessPriv(FingerprintContext *ctx, const AccessPriv *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCreateOpClassItem(FingerprintContext *ctx, const CreateOpClassItem *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintTableLikeClause(FingerprintContext *ctx, const TableLikeClause *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintFunctionParameter(FingerprintContext *ctx, const FunctionParameter *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintLockingClause(FingerprintContext *ctx, const LockingClause *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintRowMarkClause(FingerprintContext *ctx, const RowMarkClause *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintXmlSerialize(FingerprintContext *ctx, const XmlSerialize *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintWithClause(FingerprintContext *ctx, const WithClause *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintInferClause(FingerprintContext *ctx, const InferClause *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintOnConflictClause(FingerprintContext *ctx, const OnConflictClause *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCTESearchClause(FingerprintContext *ctx, const CTESearchClause *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCTECycleClause(FingerprintContext *ctx, const CTECycleClause *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCommonTableExpr(FingerprintContext *ctx, const CommonTableExpr *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintMergeWhenClause(FingerprintContext *ctx, const MergeWhenClause *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintRoleSpec(FingerprintContext *ctx, const RoleSpec *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintTriggerTransition(FingerprintContext *ctx, const TriggerTransition *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintPartitionElem(FingerprintContext *ctx, const PartitionElem *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintPartitionSpec(FingerprintContext *ctx, const PartitionSpec *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintPartitionBoundSpec(FingerprintContext *ctx, const PartitionBoundSpec *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintPartitionRangeDatum(FingerprintContext *ctx, const PartitionRangeDatum *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintPartitionCmd(FingerprintContext *ctx, const PartitionCmd *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintVacuumRelation(FingerprintContext *ctx, const VacuumRelation *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintPublicationObjSpec(FingerprintContext *ctx, const PublicationObjSpec *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintPublicationTable(FingerprintContext *ctx, const PublicationTable *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintInlineCodeBlock(FingerprintContext *ctx, const InlineCodeBlock *node, const void *parent, const char *field_name, unsigned int depth); -static void _fingerprintCallContext(FingerprintContext *ctx, const CallContext *node, const void *parent, const char *field_name, unsigned int depth); - - -static void -_fingerprintAlias(FingerprintContext *ctx, const Alias *node, const void *parent, const char *field_name, unsigned int depth) -{ - // Intentionally ignoring all fields for fingerprinting -} - -static void -_fingerprintRangeVar(FingerprintContext *ctx, const RangeVar *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->alias != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "alias"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintAlias(ctx, node->alias, node, "alias", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->catalogname != NULL) { - _fingerprintString(ctx, "catalogname"); - _fingerprintString(ctx, node->catalogname); - } - - if (node->inh) { - _fingerprintString(ctx, "inh"); - _fingerprintString(ctx, "true"); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->relname != NULL && node->relpersistence != 't') { - int len = strlen(node->relname); - char *r = palloc0((len + 1) * sizeof(char)); - char *p = r; - for (int i = 0; i < len; i++) { - if (node->relname[i] >= '0' && node->relname[i] <= '9' && - ((i + 1 < len && node->relname[i + 1] >= '0' && node->relname[i + 1] <= '9') || - (i > 0 && node->relname[i - 1] >= '0' && node->relname[i - 1] <= '9'))) { - // Skip - } else { - *p = node->relname[i]; - p++; - } - } - *p = 0; - _fingerprintString(ctx, "relname"); - _fingerprintString(ctx, r); - pfree(r); - } - - if (node->relpersistence != 0) { - char buffer[2] = {node->relpersistence, '\0'}; - _fingerprintString(ctx, "relpersistence"); - _fingerprintString(ctx, buffer); - } - - if (node->schemaname != NULL) { - _fingerprintString(ctx, "schemaname"); - _fingerprintString(ctx, node->schemaname); - } - -} - -static void -_fingerprintTableFunc(FingerprintContext *ctx, const TableFunc *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->colcollations != NULL && node->colcollations->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "colcollations"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->colcollations, node, "colcollations", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->colcollations) == 1 && linitial(node->colcollations) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->coldefexprs != NULL && node->coldefexprs->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "coldefexprs"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->coldefexprs, node, "coldefexprs", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->coldefexprs) == 1 && linitial(node->coldefexprs) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->colexprs != NULL && node->colexprs->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "colexprs"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->colexprs, node, "colexprs", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->colexprs) == 1 && linitial(node->colexprs) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->colnames != NULL && node->colnames->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "colnames"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->colnames, node, "colnames", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->colnames) == 1 && linitial(node->colnames) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->coltypes != NULL && node->coltypes->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "coltypes"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->coltypes, node, "coltypes", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->coltypes) == 1 && linitial(node->coltypes) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->coltypmods != NULL && node->coltypmods->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "coltypmods"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->coltypmods, node, "coltypmods", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->coltypmods) == 1 && linitial(node->coltypmods) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->docexpr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "docexpr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->docexpr, node, "docexpr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - // Intentionally ignoring node->location for fingerprinting - - if (true) { - int x; - Bitmapset *bms = bms_copy(node->notnulls); - - _fingerprintString(ctx, "notnulls"); - - while ((x = bms_first_member(bms)) >= 0) { - char buffer[50]; - sprintf(buffer, "%d", x); - _fingerprintString(ctx, buffer); - } - - bms_free(bms); - } - - if (node->ns_names != NULL && node->ns_names->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "ns_names"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->ns_names, node, "ns_names", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->ns_names) == 1 && linitial(node->ns_names) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->ns_uris != NULL && node->ns_uris->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "ns_uris"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->ns_uris, node, "ns_uris", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->ns_uris) == 1 && linitial(node->ns_uris) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->ordinalitycol != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->ordinalitycol); - _fingerprintString(ctx, "ordinalitycol"); - _fingerprintString(ctx, buffer); - } - - if (node->rowexpr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "rowexpr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->rowexpr, node, "rowexpr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintVar(FingerprintContext *ctx, const Var *node, const void *parent, const char *field_name, unsigned int depth) -{ - // Intentionally ignoring node->location for fingerprinting - - if (node->varattno != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->varattno); - _fingerprintString(ctx, "varattno"); - _fingerprintString(ctx, buffer); - } - - if (node->varattnosyn != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->varattnosyn); - _fingerprintString(ctx, "varattnosyn"); - _fingerprintString(ctx, buffer); - } - - if (node->varcollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->varcollid); - _fingerprintString(ctx, "varcollid"); - _fingerprintString(ctx, buffer); - } - - if (node->varlevelsup != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->varlevelsup); - _fingerprintString(ctx, "varlevelsup"); - _fingerprintString(ctx, buffer); - } - - if (node->varno != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->varno); - _fingerprintString(ctx, "varno"); - _fingerprintString(ctx, buffer); - } - - if (node->varnosyn != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->varnosyn); - _fingerprintString(ctx, "varnosyn"); - _fingerprintString(ctx, buffer); - } - - if (node->vartype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->vartype); - _fingerprintString(ctx, "vartype"); - _fingerprintString(ctx, buffer); - } - - if (node->vartypmod != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->vartypmod); - _fingerprintString(ctx, "vartypmod"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintConst(FingerprintContext *ctx, const Const *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->constbyval) { - _fingerprintString(ctx, "constbyval"); - _fingerprintString(ctx, "true"); - } - - if (node->constcollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->constcollid); - _fingerprintString(ctx, "constcollid"); - _fingerprintString(ctx, buffer); - } - - if (node->constisnull) { - _fingerprintString(ctx, "constisnull"); - _fingerprintString(ctx, "true"); - } - - if (node->constlen != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->constlen); - _fingerprintString(ctx, "constlen"); - _fingerprintString(ctx, buffer); - } - - if (node->consttype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->consttype); - _fingerprintString(ctx, "consttype"); - _fingerprintString(ctx, buffer); - } - - if (node->consttypmod != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->consttypmod); - _fingerprintString(ctx, "consttypmod"); - _fingerprintString(ctx, buffer); - } - - // Intentionally ignoring node->location for fingerprinting - -} - -static void -_fingerprintParam(FingerprintContext *ctx, const Param *node, const void *parent, const char *field_name, unsigned int depth) -{ - // Intentionally ignoring node->location for fingerprinting - - if (node->paramcollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->paramcollid); - _fingerprintString(ctx, "paramcollid"); - _fingerprintString(ctx, buffer); - } - - if (node->paramid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->paramid); - _fingerprintString(ctx, "paramid"); - _fingerprintString(ctx, buffer); - } - - if (true) { - _fingerprintString(ctx, "paramkind"); - _fingerprintString(ctx, _enumToStringParamKind(node->paramkind)); - } - - if (node->paramtype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->paramtype); - _fingerprintString(ctx, "paramtype"); - _fingerprintString(ctx, buffer); - } - - if (node->paramtypmod != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->paramtypmod); - _fingerprintString(ctx, "paramtypmod"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintAggref(FingerprintContext *ctx, const Aggref *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->aggargtypes != NULL && node->aggargtypes->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "aggargtypes"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->aggargtypes, node, "aggargtypes", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->aggargtypes) == 1 && linitial(node->aggargtypes) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->aggcollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->aggcollid); - _fingerprintString(ctx, "aggcollid"); - _fingerprintString(ctx, buffer); - } - - if (node->aggdirectargs != NULL && node->aggdirectargs->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "aggdirectargs"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->aggdirectargs, node, "aggdirectargs", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->aggdirectargs) == 1 && linitial(node->aggdirectargs) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->aggdistinct != NULL && node->aggdistinct->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "aggdistinct"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->aggdistinct, node, "aggdistinct", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->aggdistinct) == 1 && linitial(node->aggdistinct) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->aggfilter != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "aggfilter"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->aggfilter, node, "aggfilter", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->aggfnoid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->aggfnoid); - _fingerprintString(ctx, "aggfnoid"); - _fingerprintString(ctx, buffer); - } - - if (node->aggkind != 0) { - char buffer[2] = {node->aggkind, '\0'}; - _fingerprintString(ctx, "aggkind"); - _fingerprintString(ctx, buffer); - } - - if (node->agglevelsup != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->agglevelsup); - _fingerprintString(ctx, "agglevelsup"); - _fingerprintString(ctx, buffer); - } - - if (node->aggno != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->aggno); - _fingerprintString(ctx, "aggno"); - _fingerprintString(ctx, buffer); - } - - if (node->aggorder != NULL && node->aggorder->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "aggorder"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->aggorder, node, "aggorder", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->aggorder) == 1 && linitial(node->aggorder) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (true) { - _fingerprintString(ctx, "aggsplit"); - _fingerprintString(ctx, _enumToStringAggSplit(node->aggsplit)); - } - - if (node->aggstar) { - _fingerprintString(ctx, "aggstar"); - _fingerprintString(ctx, "true"); - } - - if (node->aggtransno != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->aggtransno); - _fingerprintString(ctx, "aggtransno"); - _fingerprintString(ctx, buffer); - } - - if (node->aggtranstype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->aggtranstype); - _fingerprintString(ctx, "aggtranstype"); - _fingerprintString(ctx, buffer); - } - - if (node->aggtype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->aggtype); - _fingerprintString(ctx, "aggtype"); - _fingerprintString(ctx, buffer); - } - - if (node->aggvariadic) { - _fingerprintString(ctx, "aggvariadic"); - _fingerprintString(ctx, "true"); - } - - if (node->args != NULL && node->args->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "args"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->args, node, "args", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->args) == 1 && linitial(node->args) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->inputcollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->inputcollid); - _fingerprintString(ctx, "inputcollid"); - _fingerprintString(ctx, buffer); - } - - // Intentionally ignoring node->location for fingerprinting - -} - -static void -_fingerprintGroupingFunc(FingerprintContext *ctx, const GroupingFunc *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->agglevelsup != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->agglevelsup); - _fingerprintString(ctx, "agglevelsup"); - _fingerprintString(ctx, buffer); - } - - if (node->args != NULL && node->args->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "args"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->args, node, "args", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->args) == 1 && linitial(node->args) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->cols != NULL && node->cols->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "cols"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->cols, node, "cols", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->cols) == 1 && linitial(node->cols) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - // Intentionally ignoring node->location for fingerprinting - - if (node->refs != NULL && node->refs->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "refs"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->refs, node, "refs", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->refs) == 1 && linitial(node->refs) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintWindowFunc(FingerprintContext *ctx, const WindowFunc *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->aggfilter != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "aggfilter"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->aggfilter, node, "aggfilter", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->args != NULL && node->args->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "args"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->args, node, "args", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->args) == 1 && linitial(node->args) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->inputcollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->inputcollid); - _fingerprintString(ctx, "inputcollid"); - _fingerprintString(ctx, buffer); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->winagg) { - _fingerprintString(ctx, "winagg"); - _fingerprintString(ctx, "true"); - } - - if (node->wincollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->wincollid); - _fingerprintString(ctx, "wincollid"); - _fingerprintString(ctx, buffer); - } - - if (node->winfnoid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->winfnoid); - _fingerprintString(ctx, "winfnoid"); - _fingerprintString(ctx, buffer); - } - - if (node->winref != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->winref); - _fingerprintString(ctx, "winref"); - _fingerprintString(ctx, buffer); - } - - if (node->winstar) { - _fingerprintString(ctx, "winstar"); - _fingerprintString(ctx, "true"); - } - - if (node->wintype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->wintype); - _fingerprintString(ctx, "wintype"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintSubscriptingRef(FingerprintContext *ctx, const SubscriptingRef *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->refassgnexpr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "refassgnexpr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->refassgnexpr, node, "refassgnexpr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->refcollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->refcollid); - _fingerprintString(ctx, "refcollid"); - _fingerprintString(ctx, buffer); - } - - if (node->refcontainertype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->refcontainertype); - _fingerprintString(ctx, "refcontainertype"); - _fingerprintString(ctx, buffer); - } - - if (node->refelemtype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->refelemtype); - _fingerprintString(ctx, "refelemtype"); - _fingerprintString(ctx, buffer); - } - - if (node->refexpr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "refexpr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->refexpr, node, "refexpr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->reflowerindexpr != NULL && node->reflowerindexpr->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "reflowerindexpr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->reflowerindexpr, node, "reflowerindexpr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->reflowerindexpr) == 1 && linitial(node->reflowerindexpr) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->refrestype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->refrestype); - _fingerprintString(ctx, "refrestype"); - _fingerprintString(ctx, buffer); - } - - if (node->reftypmod != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->reftypmod); - _fingerprintString(ctx, "reftypmod"); - _fingerprintString(ctx, buffer); - } - - if (node->refupperindexpr != NULL && node->refupperindexpr->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "refupperindexpr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->refupperindexpr, node, "refupperindexpr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->refupperindexpr) == 1 && linitial(node->refupperindexpr) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintFuncExpr(FingerprintContext *ctx, const FuncExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->args != NULL && node->args->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "args"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->args, node, "args", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->args) == 1 && linitial(node->args) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->funccollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->funccollid); - _fingerprintString(ctx, "funccollid"); - _fingerprintString(ctx, buffer); - } - - if (true) { - _fingerprintString(ctx, "funcformat"); - _fingerprintString(ctx, _enumToStringCoercionForm(node->funcformat)); - } - - if (node->funcid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->funcid); - _fingerprintString(ctx, "funcid"); - _fingerprintString(ctx, buffer); - } - - if (node->funcresulttype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->funcresulttype); - _fingerprintString(ctx, "funcresulttype"); - _fingerprintString(ctx, buffer); - } - - if (node->funcretset) { - _fingerprintString(ctx, "funcretset"); - _fingerprintString(ctx, "true"); - } - - if (node->funcvariadic) { - _fingerprintString(ctx, "funcvariadic"); - _fingerprintString(ctx, "true"); - } - - if (node->inputcollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->inputcollid); - _fingerprintString(ctx, "inputcollid"); - _fingerprintString(ctx, buffer); - } - - // Intentionally ignoring node->location for fingerprinting - -} - -static void -_fingerprintNamedArgExpr(FingerprintContext *ctx, const NamedArgExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->arg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "arg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->arg, node, "arg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->argnumber != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->argnumber); - _fingerprintString(ctx, "argnumber"); - _fingerprintString(ctx, buffer); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->name != NULL) { - _fingerprintString(ctx, "name"); - _fingerprintString(ctx, node->name); - } - -} - -static void -_fingerprintOpExpr(FingerprintContext *ctx, const OpExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->args != NULL && node->args->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "args"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->args, node, "args", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->args) == 1 && linitial(node->args) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->inputcollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->inputcollid); - _fingerprintString(ctx, "inputcollid"); - _fingerprintString(ctx, buffer); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->opcollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->opcollid); - _fingerprintString(ctx, "opcollid"); - _fingerprintString(ctx, buffer); - } - - if (node->opfuncid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->opfuncid); - _fingerprintString(ctx, "opfuncid"); - _fingerprintString(ctx, buffer); - } - - if (node->opno != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->opno); - _fingerprintString(ctx, "opno"); - _fingerprintString(ctx, buffer); - } - - if (node->opresulttype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->opresulttype); - _fingerprintString(ctx, "opresulttype"); - _fingerprintString(ctx, buffer); - } - - if (node->opretset) { - _fingerprintString(ctx, "opretset"); - _fingerprintString(ctx, "true"); - } - -} - -static void -_fingerprintScalarArrayOpExpr(FingerprintContext *ctx, const ScalarArrayOpExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->args != NULL && node->args->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "args"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->args, node, "args", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->args) == 1 && linitial(node->args) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->hashfuncid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->hashfuncid); - _fingerprintString(ctx, "hashfuncid"); - _fingerprintString(ctx, buffer); - } - - if (node->inputcollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->inputcollid); - _fingerprintString(ctx, "inputcollid"); - _fingerprintString(ctx, buffer); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->negfuncid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->negfuncid); - _fingerprintString(ctx, "negfuncid"); - _fingerprintString(ctx, buffer); - } - - if (node->opfuncid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->opfuncid); - _fingerprintString(ctx, "opfuncid"); - _fingerprintString(ctx, buffer); - } - - if (node->opno != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->opno); - _fingerprintString(ctx, "opno"); - _fingerprintString(ctx, buffer); - } - - if (node->useOr) { - _fingerprintString(ctx, "useOr"); - _fingerprintString(ctx, "true"); - } - -} - -static void -_fingerprintBoolExpr(FingerprintContext *ctx, const BoolExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->args != NULL && node->args->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "args"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->args, node, "args", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->args) == 1 && linitial(node->args) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (true) { - _fingerprintString(ctx, "boolop"); - _fingerprintString(ctx, _enumToStringBoolExprType(node->boolop)); - } - - // Intentionally ignoring node->location for fingerprinting - -} - -static void -_fingerprintSubLink(FingerprintContext *ctx, const SubLink *node, const void *parent, const char *field_name, unsigned int depth) -{ - // Intentionally ignoring node->location for fingerprinting - - if (node->operName != NULL && node->operName->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "operName"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->operName, node, "operName", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->operName) == 1 && linitial(node->operName) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->subLinkId != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->subLinkId); - _fingerprintString(ctx, "subLinkId"); - _fingerprintString(ctx, buffer); - } - - if (true) { - _fingerprintString(ctx, "subLinkType"); - _fingerprintString(ctx, _enumToStringSubLinkType(node->subLinkType)); - } - - if (node->subselect != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "subselect"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->subselect, node, "subselect", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->testexpr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "testexpr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->testexpr, node, "testexpr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintSubPlan(FingerprintContext *ctx, const SubPlan *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->args != NULL && node->args->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "args"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->args, node, "args", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->args) == 1 && linitial(node->args) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->firstColCollation != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->firstColCollation); - _fingerprintString(ctx, "firstColCollation"); - _fingerprintString(ctx, buffer); - } - - if (node->firstColType != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->firstColType); - _fingerprintString(ctx, "firstColType"); - _fingerprintString(ctx, buffer); - } - - if (node->firstColTypmod != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->firstColTypmod); - _fingerprintString(ctx, "firstColTypmod"); - _fingerprintString(ctx, buffer); - } - - if (node->parParam != NULL && node->parParam->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "parParam"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->parParam, node, "parParam", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->parParam) == 1 && linitial(node->parParam) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->parallel_safe) { - _fingerprintString(ctx, "parallel_safe"); - _fingerprintString(ctx, "true"); - } - - if (node->paramIds != NULL && node->paramIds->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "paramIds"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->paramIds, node, "paramIds", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->paramIds) == 1 && linitial(node->paramIds) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->per_call_cost != 0) { - char buffer[50]; - sprintf(buffer, "%f", node->per_call_cost); - _fingerprintString(ctx, "per_call_cost"); - _fingerprintString(ctx, buffer); - } - - if (node->plan_id != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->plan_id); - _fingerprintString(ctx, "plan_id"); - _fingerprintString(ctx, buffer); - } - - if (node->plan_name != NULL) { - _fingerprintString(ctx, "plan_name"); - _fingerprintString(ctx, node->plan_name); - } - - if (node->setParam != NULL && node->setParam->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "setParam"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->setParam, node, "setParam", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->setParam) == 1 && linitial(node->setParam) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->startup_cost != 0) { - char buffer[50]; - sprintf(buffer, "%f", node->startup_cost); - _fingerprintString(ctx, "startup_cost"); - _fingerprintString(ctx, buffer); - } - - if (true) { - _fingerprintString(ctx, "subLinkType"); - _fingerprintString(ctx, _enumToStringSubLinkType(node->subLinkType)); - } - - if (node->testexpr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "testexpr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->testexpr, node, "testexpr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->unknownEqFalse) { - _fingerprintString(ctx, "unknownEqFalse"); - _fingerprintString(ctx, "true"); - } - - if (node->useHashTable) { - _fingerprintString(ctx, "useHashTable"); - _fingerprintString(ctx, "true"); - } - -} - -static void -_fingerprintAlternativeSubPlan(FingerprintContext *ctx, const AlternativeSubPlan *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->subplans != NULL && node->subplans->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "subplans"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->subplans, node, "subplans", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->subplans) == 1 && linitial(node->subplans) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintFieldSelect(FingerprintContext *ctx, const FieldSelect *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->arg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "arg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->arg, node, "arg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->fieldnum != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->fieldnum); - _fingerprintString(ctx, "fieldnum"); - _fingerprintString(ctx, buffer); - } - - if (node->resultcollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->resultcollid); - _fingerprintString(ctx, "resultcollid"); - _fingerprintString(ctx, buffer); - } - - if (node->resulttype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->resulttype); - _fingerprintString(ctx, "resulttype"); - _fingerprintString(ctx, buffer); - } - - if (node->resulttypmod != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->resulttypmod); - _fingerprintString(ctx, "resulttypmod"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintFieldStore(FingerprintContext *ctx, const FieldStore *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->arg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "arg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->arg, node, "arg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->fieldnums != NULL && node->fieldnums->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "fieldnums"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->fieldnums, node, "fieldnums", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->fieldnums) == 1 && linitial(node->fieldnums) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->newvals != NULL && node->newvals->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "newvals"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->newvals, node, "newvals", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->newvals) == 1 && linitial(node->newvals) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->resulttype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->resulttype); - _fingerprintString(ctx, "resulttype"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintRelabelType(FingerprintContext *ctx, const RelabelType *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->arg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "arg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->arg, node, "arg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - // Intentionally ignoring node->location for fingerprinting - - if (true) { - _fingerprintString(ctx, "relabelformat"); - _fingerprintString(ctx, _enumToStringCoercionForm(node->relabelformat)); - } - - if (node->resultcollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->resultcollid); - _fingerprintString(ctx, "resultcollid"); - _fingerprintString(ctx, buffer); - } - - if (node->resulttype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->resulttype); - _fingerprintString(ctx, "resulttype"); - _fingerprintString(ctx, buffer); - } - - if (node->resulttypmod != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->resulttypmod); - _fingerprintString(ctx, "resulttypmod"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintCoerceViaIO(FingerprintContext *ctx, const CoerceViaIO *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->arg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "arg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->arg, node, "arg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "coerceformat"); - _fingerprintString(ctx, _enumToStringCoercionForm(node->coerceformat)); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->resultcollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->resultcollid); - _fingerprintString(ctx, "resultcollid"); - _fingerprintString(ctx, buffer); - } - - if (node->resulttype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->resulttype); - _fingerprintString(ctx, "resulttype"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintArrayCoerceExpr(FingerprintContext *ctx, const ArrayCoerceExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->arg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "arg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->arg, node, "arg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "coerceformat"); - _fingerprintString(ctx, _enumToStringCoercionForm(node->coerceformat)); - } - - if (node->elemexpr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "elemexpr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->elemexpr, node, "elemexpr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->resultcollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->resultcollid); - _fingerprintString(ctx, "resultcollid"); - _fingerprintString(ctx, buffer); - } - - if (node->resulttype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->resulttype); - _fingerprintString(ctx, "resulttype"); - _fingerprintString(ctx, buffer); - } - - if (node->resulttypmod != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->resulttypmod); - _fingerprintString(ctx, "resulttypmod"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintConvertRowtypeExpr(FingerprintContext *ctx, const ConvertRowtypeExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->arg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "arg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->arg, node, "arg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "convertformat"); - _fingerprintString(ctx, _enumToStringCoercionForm(node->convertformat)); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->resulttype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->resulttype); - _fingerprintString(ctx, "resulttype"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintCollateExpr(FingerprintContext *ctx, const CollateExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->arg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "arg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->arg, node, "arg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->collOid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->collOid); - _fingerprintString(ctx, "collOid"); - _fingerprintString(ctx, buffer); - } - - // Intentionally ignoring node->location for fingerprinting - -} - -static void -_fingerprintCaseExpr(FingerprintContext *ctx, const CaseExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->arg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "arg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->arg, node, "arg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->args != NULL && node->args->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "args"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->args, node, "args", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->args) == 1 && linitial(node->args) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->casecollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->casecollid); - _fingerprintString(ctx, "casecollid"); - _fingerprintString(ctx, buffer); - } - - if (node->casetype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->casetype); - _fingerprintString(ctx, "casetype"); - _fingerprintString(ctx, buffer); - } - - if (node->defresult != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "defresult"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->defresult, node, "defresult", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - // Intentionally ignoring node->location for fingerprinting - -} - -static void -_fingerprintCaseWhen(FingerprintContext *ctx, const CaseWhen *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->expr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "expr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->expr, node, "expr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->result != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "result"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->result, node, "result", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintCaseTestExpr(FingerprintContext *ctx, const CaseTestExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->collation != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->collation); - _fingerprintString(ctx, "collation"); - _fingerprintString(ctx, buffer); - } - - if (node->typeId != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->typeId); - _fingerprintString(ctx, "typeId"); - _fingerprintString(ctx, buffer); - } - - if (node->typeMod != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->typeMod); - _fingerprintString(ctx, "typeMod"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintArrayExpr(FingerprintContext *ctx, const ArrayExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->array_collid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->array_collid); - _fingerprintString(ctx, "array_collid"); - _fingerprintString(ctx, buffer); - } - - if (node->array_typeid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->array_typeid); - _fingerprintString(ctx, "array_typeid"); - _fingerprintString(ctx, buffer); - } - - if (node->element_typeid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->element_typeid); - _fingerprintString(ctx, "element_typeid"); - _fingerprintString(ctx, buffer); - } - - if (node->elements != NULL && node->elements->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "elements"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->elements, node, "elements", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->elements) == 1 && linitial(node->elements) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - // Intentionally ignoring node->location for fingerprinting - - if (node->multidims) { - _fingerprintString(ctx, "multidims"); - _fingerprintString(ctx, "true"); - } - -} - -static void -_fingerprintRowExpr(FingerprintContext *ctx, const RowExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->args != NULL && node->args->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "args"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->args, node, "args", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->args) == 1 && linitial(node->args) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->colnames != NULL && node->colnames->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "colnames"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->colnames, node, "colnames", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->colnames) == 1 && linitial(node->colnames) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - // Intentionally ignoring node->location for fingerprinting - - if (true) { - _fingerprintString(ctx, "row_format"); - _fingerprintString(ctx, _enumToStringCoercionForm(node->row_format)); - } - - if (node->row_typeid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->row_typeid); - _fingerprintString(ctx, "row_typeid"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintRowCompareExpr(FingerprintContext *ctx, const RowCompareExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->inputcollids != NULL && node->inputcollids->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "inputcollids"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->inputcollids, node, "inputcollids", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->inputcollids) == 1 && linitial(node->inputcollids) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->largs != NULL && node->largs->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "largs"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->largs, node, "largs", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->largs) == 1 && linitial(node->largs) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->opfamilies != NULL && node->opfamilies->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "opfamilies"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->opfamilies, node, "opfamilies", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->opfamilies) == 1 && linitial(node->opfamilies) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->opnos != NULL && node->opnos->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "opnos"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->opnos, node, "opnos", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->opnos) == 1 && linitial(node->opnos) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->rargs != NULL && node->rargs->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "rargs"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->rargs, node, "rargs", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->rargs) == 1 && linitial(node->rargs) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (true) { - _fingerprintString(ctx, "rctype"); - _fingerprintString(ctx, _enumToStringRowCompareType(node->rctype)); - } - -} - -static void -_fingerprintCoalesceExpr(FingerprintContext *ctx, const CoalesceExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->args != NULL && node->args->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "args"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->args, node, "args", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->args) == 1 && linitial(node->args) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->coalescecollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->coalescecollid); - _fingerprintString(ctx, "coalescecollid"); - _fingerprintString(ctx, buffer); - } - - if (node->coalescetype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->coalescetype); - _fingerprintString(ctx, "coalescetype"); - _fingerprintString(ctx, buffer); - } - - // Intentionally ignoring node->location for fingerprinting - -} - -static void -_fingerprintMinMaxExpr(FingerprintContext *ctx, const MinMaxExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->args != NULL && node->args->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "args"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->args, node, "args", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->args) == 1 && linitial(node->args) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->inputcollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->inputcollid); - _fingerprintString(ctx, "inputcollid"); - _fingerprintString(ctx, buffer); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->minmaxcollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->minmaxcollid); - _fingerprintString(ctx, "minmaxcollid"); - _fingerprintString(ctx, buffer); - } - - if (node->minmaxtype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->minmaxtype); - _fingerprintString(ctx, "minmaxtype"); - _fingerprintString(ctx, buffer); - } - - if (true) { - _fingerprintString(ctx, "op"); - _fingerprintString(ctx, _enumToStringMinMaxOp(node->op)); - } - -} - -static void -_fingerprintSQLValueFunction(FingerprintContext *ctx, const SQLValueFunction *node, const void *parent, const char *field_name, unsigned int depth) -{ - // Intentionally ignoring node->location for fingerprinting - - if (true) { - _fingerprintString(ctx, "op"); - _fingerprintString(ctx, _enumToStringSQLValueFunctionOp(node->op)); - } - - if (node->type != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->type); - _fingerprintString(ctx, "type"); - _fingerprintString(ctx, buffer); - } - - if (node->typmod != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->typmod); - _fingerprintString(ctx, "typmod"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintXmlExpr(FingerprintContext *ctx, const XmlExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->arg_names != NULL && node->arg_names->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "arg_names"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->arg_names, node, "arg_names", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->arg_names) == 1 && linitial(node->arg_names) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->args != NULL && node->args->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "args"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->args, node, "args", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->args) == 1 && linitial(node->args) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - // Intentionally ignoring node->location for fingerprinting - - if (node->name != NULL) { - _fingerprintString(ctx, "name"); - _fingerprintString(ctx, node->name); - } - - if (node->named_args != NULL && node->named_args->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "named_args"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->named_args, node, "named_args", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->named_args) == 1 && linitial(node->named_args) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (true) { - _fingerprintString(ctx, "op"); - _fingerprintString(ctx, _enumToStringXmlExprOp(node->op)); - } - - if (node->type != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->type); - _fingerprintString(ctx, "type"); - _fingerprintString(ctx, buffer); - } - - if (node->typmod != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->typmod); - _fingerprintString(ctx, "typmod"); - _fingerprintString(ctx, buffer); - } - - if (true) { - _fingerprintString(ctx, "xmloption"); - _fingerprintString(ctx, _enumToStringXmlOptionType(node->xmloption)); - } - -} - -static void -_fingerprintNullTest(FingerprintContext *ctx, const NullTest *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->arg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "arg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->arg, node, "arg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->argisrow) { - _fingerprintString(ctx, "argisrow"); - _fingerprintString(ctx, "true"); - } - - // Intentionally ignoring node->location for fingerprinting - - if (true) { - _fingerprintString(ctx, "nulltesttype"); - _fingerprintString(ctx, _enumToStringNullTestType(node->nulltesttype)); - } - -} - -static void -_fingerprintBooleanTest(FingerprintContext *ctx, const BooleanTest *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->arg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "arg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->arg, node, "arg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "booltesttype"); - _fingerprintString(ctx, _enumToStringBoolTestType(node->booltesttype)); - } - - // Intentionally ignoring node->location for fingerprinting - -} - -static void -_fingerprintCoerceToDomain(FingerprintContext *ctx, const CoerceToDomain *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->arg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "arg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->arg, node, "arg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "coercionformat"); - _fingerprintString(ctx, _enumToStringCoercionForm(node->coercionformat)); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->resultcollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->resultcollid); - _fingerprintString(ctx, "resultcollid"); - _fingerprintString(ctx, buffer); - } - - if (node->resulttype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->resulttype); - _fingerprintString(ctx, "resulttype"); - _fingerprintString(ctx, buffer); - } - - if (node->resulttypmod != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->resulttypmod); - _fingerprintString(ctx, "resulttypmod"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintCoerceToDomainValue(FingerprintContext *ctx, const CoerceToDomainValue *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->collation != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->collation); - _fingerprintString(ctx, "collation"); - _fingerprintString(ctx, buffer); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->typeId != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->typeId); - _fingerprintString(ctx, "typeId"); - _fingerprintString(ctx, buffer); - } - - if (node->typeMod != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->typeMod); - _fingerprintString(ctx, "typeMod"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintSetToDefault(FingerprintContext *ctx, const SetToDefault *node, const void *parent, const char *field_name, unsigned int depth) -{ - // Intentionally ignoring all fields for fingerprinting -} - -static void -_fingerprintCurrentOfExpr(FingerprintContext *ctx, const CurrentOfExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->cursor_name != NULL) { - _fingerprintString(ctx, "cursor_name"); - _fingerprintString(ctx, node->cursor_name); - } - - if (node->cursor_param != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->cursor_param); - _fingerprintString(ctx, "cursor_param"); - _fingerprintString(ctx, buffer); - } - - if (node->cvarno != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->cvarno); - _fingerprintString(ctx, "cvarno"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintNextValueExpr(FingerprintContext *ctx, const NextValueExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->seqid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->seqid); - _fingerprintString(ctx, "seqid"); - _fingerprintString(ctx, buffer); - } - - if (node->typeId != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->typeId); - _fingerprintString(ctx, "typeId"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintInferenceElem(FingerprintContext *ctx, const InferenceElem *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->expr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "expr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->expr, node, "expr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->infercollid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->infercollid); - _fingerprintString(ctx, "infercollid"); - _fingerprintString(ctx, buffer); - } - - if (node->inferopclass != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->inferopclass); - _fingerprintString(ctx, "inferopclass"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintTargetEntry(FingerprintContext *ctx, const TargetEntry *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->expr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "expr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->expr, node, "expr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->resjunk) { - _fingerprintString(ctx, "resjunk"); - _fingerprintString(ctx, "true"); - } - - if (node->resname != NULL) { - _fingerprintString(ctx, "resname"); - _fingerprintString(ctx, node->resname); - } - - if (node->resno != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->resno); - _fingerprintString(ctx, "resno"); - _fingerprintString(ctx, buffer); - } - - if (node->resorigcol != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->resorigcol); - _fingerprintString(ctx, "resorigcol"); - _fingerprintString(ctx, buffer); - } - - if (node->resorigtbl != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->resorigtbl); - _fingerprintString(ctx, "resorigtbl"); - _fingerprintString(ctx, buffer); - } - - if (node->ressortgroupref != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->ressortgroupref); - _fingerprintString(ctx, "ressortgroupref"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintRangeTblRef(FingerprintContext *ctx, const RangeTblRef *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->rtindex != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->rtindex); - _fingerprintString(ctx, "rtindex"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintJoinExpr(FingerprintContext *ctx, const JoinExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->alias != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "alias"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintAlias(ctx, node->alias, node, "alias", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->isNatural) { - _fingerprintString(ctx, "isNatural"); - _fingerprintString(ctx, "true"); - } - - if (node->join_using_alias != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "join_using_alias"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintAlias(ctx, node->join_using_alias, node, "join_using_alias", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "jointype"); - _fingerprintString(ctx, _enumToStringJoinType(node->jointype)); - } - - if (node->larg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "larg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->larg, node, "larg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->quals != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "quals"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->quals, node, "quals", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->rarg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "rarg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->rarg, node, "rarg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->rtindex != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->rtindex); - _fingerprintString(ctx, "rtindex"); - _fingerprintString(ctx, buffer); - } - - if (node->usingClause != NULL && node->usingClause->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "usingClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->usingClause, node, "usingClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->usingClause) == 1 && linitial(node->usingClause) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintFromExpr(FingerprintContext *ctx, const FromExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->fromlist != NULL && node->fromlist->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "fromlist"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->fromlist, node, "fromlist", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->fromlist) == 1 && linitial(node->fromlist) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->quals != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "quals"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->quals, node, "quals", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintOnConflictExpr(FingerprintContext *ctx, const OnConflictExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (true) { - _fingerprintString(ctx, "action"); - _fingerprintString(ctx, _enumToStringOnConflictAction(node->action)); - } - - if (node->arbiterElems != NULL && node->arbiterElems->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "arbiterElems"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->arbiterElems, node, "arbiterElems", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->arbiterElems) == 1 && linitial(node->arbiterElems) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->arbiterWhere != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "arbiterWhere"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->arbiterWhere, node, "arbiterWhere", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->constraint != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->constraint); - _fingerprintString(ctx, "constraint"); - _fingerprintString(ctx, buffer); - } - - if (node->exclRelIndex != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->exclRelIndex); - _fingerprintString(ctx, "exclRelIndex"); - _fingerprintString(ctx, buffer); - } - - if (node->exclRelTlist != NULL && node->exclRelTlist->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "exclRelTlist"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->exclRelTlist, node, "exclRelTlist", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->exclRelTlist) == 1 && linitial(node->exclRelTlist) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->onConflictSet != NULL && node->onConflictSet->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "onConflictSet"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->onConflictSet, node, "onConflictSet", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->onConflictSet) == 1 && linitial(node->onConflictSet) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->onConflictWhere != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "onConflictWhere"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->onConflictWhere, node, "onConflictWhere", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintIntoClause(FingerprintContext *ctx, const IntoClause *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->accessMethod != NULL) { - _fingerprintString(ctx, "accessMethod"); - _fingerprintString(ctx, node->accessMethod); - } - - if (node->colNames != NULL && node->colNames->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "colNames"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->colNames, node, "colNames", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->colNames) == 1 && linitial(node->colNames) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (true) { - _fingerprintString(ctx, "onCommit"); - _fingerprintString(ctx, _enumToStringOnCommitAction(node->onCommit)); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->rel != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "rel"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->rel, node, "rel", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->skipData) { - _fingerprintString(ctx, "skipData"); - _fingerprintString(ctx, "true"); - } - - if (node->tableSpaceName != NULL) { - _fingerprintString(ctx, "tableSpaceName"); - _fingerprintString(ctx, node->tableSpaceName); - } - - if (node->viewQuery != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "viewQuery"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->viewQuery, node, "viewQuery", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintMergeAction(FingerprintContext *ctx, const MergeAction *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (true) { - _fingerprintString(ctx, "commandType"); - _fingerprintString(ctx, _enumToStringCmdType(node->commandType)); - } - - if (node->matched) { - _fingerprintString(ctx, "matched"); - _fingerprintString(ctx, "true"); - } - - if (true) { - _fingerprintString(ctx, "override"); - _fingerprintString(ctx, _enumToStringOverridingKind(node->override)); - } - - if (node->qual != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "qual"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->qual, node, "qual", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->targetList != NULL && node->targetList->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "targetList"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->targetList, node, "targetList", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->targetList) == 1 && linitial(node->targetList) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->updateColnos != NULL && node->updateColnos->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "updateColnos"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->updateColnos, node, "updateColnos", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->updateColnos) == 1 && linitial(node->updateColnos) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintRawStmt(FingerprintContext *ctx, const RawStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->stmt != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "stmt"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->stmt, node, "stmt", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - // Intentionally ignoring node->stmt_len for fingerprinting - - // Intentionally ignoring node->stmt_location for fingerprinting - -} - -static void -_fingerprintQuery(FingerprintContext *ctx, const Query *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->canSetTag) { - _fingerprintString(ctx, "canSetTag"); - _fingerprintString(ctx, "true"); - } - - if (true) { - _fingerprintString(ctx, "commandType"); - _fingerprintString(ctx, _enumToStringCmdType(node->commandType)); - } - - if (node->constraintDeps != NULL && node->constraintDeps->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "constraintDeps"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->constraintDeps, node, "constraintDeps", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->constraintDeps) == 1 && linitial(node->constraintDeps) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->cteList != NULL && node->cteList->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "cteList"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->cteList, node, "cteList", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->cteList) == 1 && linitial(node->cteList) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->distinctClause != NULL && node->distinctClause->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "distinctClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->distinctClause, node, "distinctClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->distinctClause) == 1 && linitial(node->distinctClause) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->groupClause != NULL && node->groupClause->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "groupClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->groupClause, node, "groupClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->groupClause) == 1 && linitial(node->groupClause) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->groupDistinct) { - _fingerprintString(ctx, "groupDistinct"); - _fingerprintString(ctx, "true"); - } - - if (node->groupingSets != NULL && node->groupingSets->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "groupingSets"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->groupingSets, node, "groupingSets", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->groupingSets) == 1 && linitial(node->groupingSets) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->hasAggs) { - _fingerprintString(ctx, "hasAggs"); - _fingerprintString(ctx, "true"); - } - - if (node->hasDistinctOn) { - _fingerprintString(ctx, "hasDistinctOn"); - _fingerprintString(ctx, "true"); - } - - if (node->hasForUpdate) { - _fingerprintString(ctx, "hasForUpdate"); - _fingerprintString(ctx, "true"); - } - - if (node->hasModifyingCTE) { - _fingerprintString(ctx, "hasModifyingCTE"); - _fingerprintString(ctx, "true"); - } - - if (node->hasRecursive) { - _fingerprintString(ctx, "hasRecursive"); - _fingerprintString(ctx, "true"); - } - - if (node->hasRowSecurity) { - _fingerprintString(ctx, "hasRowSecurity"); - _fingerprintString(ctx, "true"); - } - - if (node->hasSubLinks) { - _fingerprintString(ctx, "hasSubLinks"); - _fingerprintString(ctx, "true"); - } - - if (node->hasTargetSRFs) { - _fingerprintString(ctx, "hasTargetSRFs"); - _fingerprintString(ctx, "true"); - } - - if (node->hasWindowFuncs) { - _fingerprintString(ctx, "hasWindowFuncs"); - _fingerprintString(ctx, "true"); - } - - if (node->havingQual != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "havingQual"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->havingQual, node, "havingQual", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->isReturn) { - _fingerprintString(ctx, "isReturn"); - _fingerprintString(ctx, "true"); - } - - if (node->jointree != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "jointree"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintFromExpr(ctx, node->jointree, node, "jointree", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->limitCount != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "limitCount"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->limitCount, node, "limitCount", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->limitOffset != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "limitOffset"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->limitOffset, node, "limitOffset", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "limitOption"); - _fingerprintString(ctx, _enumToStringLimitOption(node->limitOption)); - } - - if (node->mergeActionList != NULL && node->mergeActionList->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "mergeActionList"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->mergeActionList, node, "mergeActionList", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->mergeActionList) == 1 && linitial(node->mergeActionList) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->mergeUseOuterJoin) { - _fingerprintString(ctx, "mergeUseOuterJoin"); - _fingerprintString(ctx, "true"); - } - - if (node->onConflict != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "onConflict"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintOnConflictExpr(ctx, node->onConflict, node, "onConflict", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "override"); - _fingerprintString(ctx, _enumToStringOverridingKind(node->override)); - } - - if (node->queryId != 0) { - char buffer[50]; - sprintf(buffer, "%ld", node->queryId); - _fingerprintString(ctx, "queryId"); - _fingerprintString(ctx, buffer); - } - - if (true) { - _fingerprintString(ctx, "querySource"); - _fingerprintString(ctx, _enumToStringQuerySource(node->querySource)); - } - - if (node->resultRelation != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->resultRelation); - _fingerprintString(ctx, "resultRelation"); - _fingerprintString(ctx, buffer); - } - - if (node->returningList != NULL && node->returningList->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "returningList"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->returningList, node, "returningList", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->returningList) == 1 && linitial(node->returningList) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->rowMarks != NULL && node->rowMarks->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "rowMarks"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->rowMarks, node, "rowMarks", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->rowMarks) == 1 && linitial(node->rowMarks) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->rtable != NULL && node->rtable->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "rtable"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->rtable, node, "rtable", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->rtable) == 1 && linitial(node->rtable) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->setOperations != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "setOperations"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->setOperations, node, "setOperations", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->sortClause != NULL && node->sortClause->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "sortClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->sortClause, node, "sortClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->sortClause) == 1 && linitial(node->sortClause) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->stmt_len != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->stmt_len); - _fingerprintString(ctx, "stmt_len"); - _fingerprintString(ctx, buffer); - } - - if (node->stmt_location != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->stmt_location); - _fingerprintString(ctx, "stmt_location"); - _fingerprintString(ctx, buffer); - } - - if (node->targetList != NULL && node->targetList->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "targetList"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->targetList, node, "targetList", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->targetList) == 1 && linitial(node->targetList) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->utilityStmt != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "utilityStmt"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->utilityStmt, node, "utilityStmt", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->windowClause != NULL && node->windowClause->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "windowClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->windowClause, node, "windowClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->windowClause) == 1 && linitial(node->windowClause) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->withCheckOptions != NULL && node->withCheckOptions->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "withCheckOptions"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->withCheckOptions, node, "withCheckOptions", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->withCheckOptions) == 1 && linitial(node->withCheckOptions) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintInsertStmt(FingerprintContext *ctx, const InsertStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->cols != NULL && node->cols->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "cols"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->cols, node, "cols", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->cols) == 1 && linitial(node->cols) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->onConflictClause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "onConflictClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintOnConflictClause(ctx, node->onConflictClause, node, "onConflictClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "override"); - _fingerprintString(ctx, _enumToStringOverridingKind(node->override)); - } - - if (node->relation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->relation, node, "relation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->returningList != NULL && node->returningList->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "returningList"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->returningList, node, "returningList", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->returningList) == 1 && linitial(node->returningList) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->selectStmt != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "selectStmt"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->selectStmt, node, "selectStmt", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->withClause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "withClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintWithClause(ctx, node->withClause, node, "withClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintDeleteStmt(FingerprintContext *ctx, const DeleteStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->relation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->relation, node, "relation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->returningList != NULL && node->returningList->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "returningList"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->returningList, node, "returningList", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->returningList) == 1 && linitial(node->returningList) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->usingClause != NULL && node->usingClause->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "usingClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->usingClause, node, "usingClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->usingClause) == 1 && linitial(node->usingClause) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->whereClause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "whereClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->whereClause, node, "whereClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->withClause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "withClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintWithClause(ctx, node->withClause, node, "withClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintUpdateStmt(FingerprintContext *ctx, const UpdateStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->fromClause != NULL && node->fromClause->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "fromClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->fromClause, node, "fromClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->fromClause) == 1 && linitial(node->fromClause) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->relation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->relation, node, "relation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->returningList != NULL && node->returningList->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "returningList"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->returningList, node, "returningList", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->returningList) == 1 && linitial(node->returningList) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->targetList != NULL && node->targetList->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "targetList"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->targetList, node, "targetList", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->targetList) == 1 && linitial(node->targetList) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->whereClause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "whereClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->whereClause, node, "whereClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->withClause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "withClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintWithClause(ctx, node->withClause, node, "withClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintMergeStmt(FingerprintContext *ctx, const MergeStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->joinCondition != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "joinCondition"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->joinCondition, node, "joinCondition", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->mergeWhenClauses != NULL && node->mergeWhenClauses->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "mergeWhenClauses"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->mergeWhenClauses, node, "mergeWhenClauses", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->mergeWhenClauses) == 1 && linitial(node->mergeWhenClauses) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->relation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->relation, node, "relation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->sourceRelation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "sourceRelation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->sourceRelation, node, "sourceRelation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->withClause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "withClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintWithClause(ctx, node->withClause, node, "withClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintSelectStmt(FingerprintContext *ctx, const SelectStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->all) { - _fingerprintString(ctx, "all"); - _fingerprintString(ctx, "true"); - } - - if (node->distinctClause != NULL && node->distinctClause->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "distinctClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->distinctClause, node, "distinctClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->distinctClause) == 1 && linitial(node->distinctClause) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->fromClause != NULL && node->fromClause->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "fromClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->fromClause, node, "fromClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->fromClause) == 1 && linitial(node->fromClause) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->groupClause != NULL && node->groupClause->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "groupClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->groupClause, node, "groupClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->groupClause) == 1 && linitial(node->groupClause) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->groupDistinct) { - _fingerprintString(ctx, "groupDistinct"); - _fingerprintString(ctx, "true"); - } - - if (node->havingClause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "havingClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->havingClause, node, "havingClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->intoClause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "intoClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintIntoClause(ctx, node->intoClause, node, "intoClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->larg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "larg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintSelectStmt(ctx, node->larg, node, "larg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->limitCount != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "limitCount"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->limitCount, node, "limitCount", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->limitOffset != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "limitOffset"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->limitOffset, node, "limitOffset", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "limitOption"); - _fingerprintString(ctx, _enumToStringLimitOption(node->limitOption)); - } - - if (node->lockingClause != NULL && node->lockingClause->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "lockingClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->lockingClause, node, "lockingClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->lockingClause) == 1 && linitial(node->lockingClause) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (true) { - _fingerprintString(ctx, "op"); - _fingerprintString(ctx, _enumToStringSetOperation(node->op)); - } - - if (node->rarg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "rarg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintSelectStmt(ctx, node->rarg, node, "rarg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->sortClause != NULL && node->sortClause->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "sortClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->sortClause, node, "sortClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->sortClause) == 1 && linitial(node->sortClause) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->targetList != NULL && node->targetList->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "targetList"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->targetList, node, "targetList", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->targetList) == 1 && linitial(node->targetList) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->valuesLists != NULL && node->valuesLists->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "valuesLists"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->valuesLists, node, "valuesLists", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->valuesLists) == 1 && linitial(node->valuesLists) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->whereClause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "whereClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->whereClause, node, "whereClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->windowClause != NULL && node->windowClause->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "windowClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->windowClause, node, "windowClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->windowClause) == 1 && linitial(node->windowClause) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->withClause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "withClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintWithClause(ctx, node->withClause, node, "withClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintReturnStmt(FingerprintContext *ctx, const ReturnStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->returnval != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "returnval"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->returnval, node, "returnval", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintPLAssignStmt(FingerprintContext *ctx, const PLAssignStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->indirection != NULL && node->indirection->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "indirection"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->indirection, node, "indirection", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->indirection) == 1 && linitial(node->indirection) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - // Intentionally ignoring node->location for fingerprinting - - if (node->name != NULL) { - _fingerprintString(ctx, "name"); - _fingerprintString(ctx, node->name); - } - - if (node->nnames != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->nnames); - _fingerprintString(ctx, "nnames"); - _fingerprintString(ctx, buffer); - } - - if (node->val != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "val"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintSelectStmt(ctx, node->val, node, "val", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintAlterTableStmt(FingerprintContext *ctx, const AlterTableStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->cmds != NULL && node->cmds->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "cmds"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->cmds, node, "cmds", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->cmds) == 1 && linitial(node->cmds) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->missing_ok) { - _fingerprintString(ctx, "missing_ok"); - _fingerprintString(ctx, "true"); - } - - if (true) { - _fingerprintString(ctx, "objtype"); - _fingerprintString(ctx, _enumToStringObjectType(node->objtype)); - } - - if (node->relation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->relation, node, "relation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintAlterTableCmd(FingerprintContext *ctx, const AlterTableCmd *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (true) { - _fingerprintString(ctx, "behavior"); - _fingerprintString(ctx, _enumToStringDropBehavior(node->behavior)); - } - - if (node->def != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "def"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->def, node, "def", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->missing_ok) { - _fingerprintString(ctx, "missing_ok"); - _fingerprintString(ctx, "true"); - } - - if (node->name != NULL) { - _fingerprintString(ctx, "name"); - _fingerprintString(ctx, node->name); - } - - if (node->newowner != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "newowner"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRoleSpec(ctx, node->newowner, node, "newowner", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->num != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->num); - _fingerprintString(ctx, "num"); - _fingerprintString(ctx, buffer); - } - - if (node->recurse) { - _fingerprintString(ctx, "recurse"); - _fingerprintString(ctx, "true"); - } - - if (true) { - _fingerprintString(ctx, "subtype"); - _fingerprintString(ctx, _enumToStringAlterTableType(node->subtype)); - } - -} - -static void -_fingerprintAlterDomainStmt(FingerprintContext *ctx, const AlterDomainStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (true) { - _fingerprintString(ctx, "behavior"); - _fingerprintString(ctx, _enumToStringDropBehavior(node->behavior)); - } - - if (node->def != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "def"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->def, node, "def", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->missing_ok) { - _fingerprintString(ctx, "missing_ok"); - _fingerprintString(ctx, "true"); - } - - if (node->name != NULL) { - _fingerprintString(ctx, "name"); - _fingerprintString(ctx, node->name); - } - - if (node->subtype != 0) { - char buffer[2] = {node->subtype, '\0'}; - _fingerprintString(ctx, "subtype"); - _fingerprintString(ctx, buffer); - } - - if (node->typeName != NULL && node->typeName->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "typeName"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->typeName, node, "typeName", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->typeName) == 1 && linitial(node->typeName) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintSetOperationStmt(FingerprintContext *ctx, const SetOperationStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->all) { - _fingerprintString(ctx, "all"); - _fingerprintString(ctx, "true"); - } - - if (node->colCollations != NULL && node->colCollations->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "colCollations"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->colCollations, node, "colCollations", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->colCollations) == 1 && linitial(node->colCollations) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->colTypes != NULL && node->colTypes->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "colTypes"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->colTypes, node, "colTypes", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->colTypes) == 1 && linitial(node->colTypes) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->colTypmods != NULL && node->colTypmods->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "colTypmods"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->colTypmods, node, "colTypmods", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->colTypmods) == 1 && linitial(node->colTypmods) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->groupClauses != NULL && node->groupClauses->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "groupClauses"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->groupClauses, node, "groupClauses", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->groupClauses) == 1 && linitial(node->groupClauses) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->larg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "larg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->larg, node, "larg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "op"); - _fingerprintString(ctx, _enumToStringSetOperation(node->op)); - } - - if (node->rarg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "rarg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->rarg, node, "rarg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintGrantStmt(FingerprintContext *ctx, const GrantStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (true) { - _fingerprintString(ctx, "behavior"); - _fingerprintString(ctx, _enumToStringDropBehavior(node->behavior)); - } - - if (node->grant_option) { - _fingerprintString(ctx, "grant_option"); - _fingerprintString(ctx, "true"); - } - - if (node->grantees != NULL && node->grantees->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "grantees"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->grantees, node, "grantees", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->grantees) == 1 && linitial(node->grantees) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->grantor != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "grantor"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRoleSpec(ctx, node->grantor, node, "grantor", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->is_grant) { - _fingerprintString(ctx, "is_grant"); - _fingerprintString(ctx, "true"); - } - - if (node->objects != NULL && node->objects->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "objects"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->objects, node, "objects", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->objects) == 1 && linitial(node->objects) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (true) { - _fingerprintString(ctx, "objtype"); - _fingerprintString(ctx, _enumToStringObjectType(node->objtype)); - } - - if (node->privileges != NULL && node->privileges->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "privileges"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->privileges, node, "privileges", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->privileges) == 1 && linitial(node->privileges) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (true) { - _fingerprintString(ctx, "targtype"); - _fingerprintString(ctx, _enumToStringGrantTargetType(node->targtype)); - } - -} - -static void -_fingerprintGrantRoleStmt(FingerprintContext *ctx, const GrantRoleStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->admin_opt) { - _fingerprintString(ctx, "admin_opt"); - _fingerprintString(ctx, "true"); - } - - if (true) { - _fingerprintString(ctx, "behavior"); - _fingerprintString(ctx, _enumToStringDropBehavior(node->behavior)); - } - - if (node->granted_roles != NULL && node->granted_roles->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "granted_roles"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->granted_roles, node, "granted_roles", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->granted_roles) == 1 && linitial(node->granted_roles) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->grantee_roles != NULL && node->grantee_roles->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "grantee_roles"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->grantee_roles, node, "grantee_roles", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->grantee_roles) == 1 && linitial(node->grantee_roles) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->grantor != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "grantor"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRoleSpec(ctx, node->grantor, node, "grantor", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->is_grant) { - _fingerprintString(ctx, "is_grant"); - _fingerprintString(ctx, "true"); - } - -} - -static void -_fingerprintAlterDefaultPrivilegesStmt(FingerprintContext *ctx, const AlterDefaultPrivilegesStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->action != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "action"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintGrantStmt(ctx, node->action, node, "action", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintClosePortalStmt(FingerprintContext *ctx, const ClosePortalStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - // Intentionally ignoring node->portalname for fingerprinting - -} - -static void -_fingerprintClusterStmt(FingerprintContext *ctx, const ClusterStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->indexname != NULL) { - _fingerprintString(ctx, "indexname"); - _fingerprintString(ctx, node->indexname); - } - - if (node->params != NULL && node->params->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "params"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->params, node, "params", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->params) == 1 && linitial(node->params) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->relation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->relation, node, "relation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintCopyStmt(FingerprintContext *ctx, const CopyStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->attlist != NULL && node->attlist->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "attlist"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->attlist, node, "attlist", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->attlist) == 1 && linitial(node->attlist) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->filename != NULL) { - _fingerprintString(ctx, "filename"); - _fingerprintString(ctx, node->filename); - } - - if (node->is_from) { - _fingerprintString(ctx, "is_from"); - _fingerprintString(ctx, "true"); - } - - if (node->is_program) { - _fingerprintString(ctx, "is_program"); - _fingerprintString(ctx, "true"); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->query != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "query"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->query, node, "query", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->relation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->relation, node, "relation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->whereClause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "whereClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->whereClause, node, "whereClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintCreateStmt(FingerprintContext *ctx, const CreateStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->accessMethod != NULL) { - _fingerprintString(ctx, "accessMethod"); - _fingerprintString(ctx, node->accessMethod); - } - - if (node->constraints != NULL && node->constraints->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "constraints"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->constraints, node, "constraints", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->constraints) == 1 && linitial(node->constraints) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->if_not_exists) { - _fingerprintString(ctx, "if_not_exists"); - _fingerprintString(ctx, "true"); - } - - if (node->inhRelations != NULL && node->inhRelations->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "inhRelations"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->inhRelations, node, "inhRelations", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->inhRelations) == 1 && linitial(node->inhRelations) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->ofTypename != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "ofTypename"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintTypeName(ctx, node->ofTypename, node, "ofTypename", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "oncommit"); - _fingerprintString(ctx, _enumToStringOnCommitAction(node->oncommit)); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->partbound != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "partbound"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintPartitionBoundSpec(ctx, node->partbound, node, "partbound", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->partspec != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "partspec"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintPartitionSpec(ctx, node->partspec, node, "partspec", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->relation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->relation, node, "relation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->tableElts != NULL && node->tableElts->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "tableElts"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->tableElts, node, "tableElts", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->tableElts) == 1 && linitial(node->tableElts) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->tablespacename != NULL) { - _fingerprintString(ctx, "tablespacename"); - _fingerprintString(ctx, node->tablespacename); - } - -} - -static void -_fingerprintDefineStmt(FingerprintContext *ctx, const DefineStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->args != NULL && node->args->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "args"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->args, node, "args", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->args) == 1 && linitial(node->args) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->definition != NULL && node->definition->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "definition"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->definition, node, "definition", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->definition) == 1 && linitial(node->definition) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->defnames != NULL && node->defnames->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "defnames"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->defnames, node, "defnames", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->defnames) == 1 && linitial(node->defnames) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->if_not_exists) { - _fingerprintString(ctx, "if_not_exists"); - _fingerprintString(ctx, "true"); - } - - if (true) { - _fingerprintString(ctx, "kind"); - _fingerprintString(ctx, _enumToStringObjectType(node->kind)); - } - - if (node->oldstyle) { - _fingerprintString(ctx, "oldstyle"); - _fingerprintString(ctx, "true"); - } - - if (node->replace) { - _fingerprintString(ctx, "replace"); - _fingerprintString(ctx, "true"); - } - -} - -static void -_fingerprintDropStmt(FingerprintContext *ctx, const DropStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (true) { - _fingerprintString(ctx, "behavior"); - _fingerprintString(ctx, _enumToStringDropBehavior(node->behavior)); - } - - if (node->concurrent) { - _fingerprintString(ctx, "concurrent"); - _fingerprintString(ctx, "true"); - } - - if (node->missing_ok) { - _fingerprintString(ctx, "missing_ok"); - _fingerprintString(ctx, "true"); - } - - if (node->objects != NULL && node->objects->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "objects"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->objects, node, "objects", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->objects) == 1 && linitial(node->objects) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (true) { - _fingerprintString(ctx, "removeType"); - _fingerprintString(ctx, _enumToStringObjectType(node->removeType)); - } - -} - -static void -_fingerprintTruncateStmt(FingerprintContext *ctx, const TruncateStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (true) { - _fingerprintString(ctx, "behavior"); - _fingerprintString(ctx, _enumToStringDropBehavior(node->behavior)); - } - - if (node->relations != NULL && node->relations->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relations"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->relations, node, "relations", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->relations) == 1 && linitial(node->relations) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->restart_seqs) { - _fingerprintString(ctx, "restart_seqs"); - _fingerprintString(ctx, "true"); - } - -} - -static void -_fingerprintCommentStmt(FingerprintContext *ctx, const CommentStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->comment != NULL) { - _fingerprintString(ctx, "comment"); - _fingerprintString(ctx, node->comment); - } - - if (node->object != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "object"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->object, node, "object", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "objtype"); - _fingerprintString(ctx, _enumToStringObjectType(node->objtype)); - } - -} - -static void -_fingerprintFetchStmt(FingerprintContext *ctx, const FetchStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (true) { - _fingerprintString(ctx, "direction"); - _fingerprintString(ctx, _enumToStringFetchDirection(node->direction)); - } - - if (node->howMany != 0) { - char buffer[50]; - sprintf(buffer, "%ld", node->howMany); - _fingerprintString(ctx, "howMany"); - _fingerprintString(ctx, buffer); - } - - if (node->ismove) { - _fingerprintString(ctx, "ismove"); - _fingerprintString(ctx, "true"); - } - - // Intentionally ignoring node->portalname for fingerprinting - -} - -static void -_fingerprintIndexStmt(FingerprintContext *ctx, const IndexStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->accessMethod != NULL) { - _fingerprintString(ctx, "accessMethod"); - _fingerprintString(ctx, node->accessMethod); - } - - if (node->concurrent) { - _fingerprintString(ctx, "concurrent"); - _fingerprintString(ctx, "true"); - } - - if (node->deferrable) { - _fingerprintString(ctx, "deferrable"); - _fingerprintString(ctx, "true"); - } - - if (node->excludeOpNames != NULL && node->excludeOpNames->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "excludeOpNames"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->excludeOpNames, node, "excludeOpNames", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->excludeOpNames) == 1 && linitial(node->excludeOpNames) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->idxcomment != NULL) { - _fingerprintString(ctx, "idxcomment"); - _fingerprintString(ctx, node->idxcomment); - } - - if (node->idxname != NULL) { - _fingerprintString(ctx, "idxname"); - _fingerprintString(ctx, node->idxname); - } - - if (node->if_not_exists) { - _fingerprintString(ctx, "if_not_exists"); - _fingerprintString(ctx, "true"); - } - - if (node->indexIncludingParams != NULL && node->indexIncludingParams->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "indexIncludingParams"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->indexIncludingParams, node, "indexIncludingParams", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->indexIncludingParams) == 1 && linitial(node->indexIncludingParams) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->indexOid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->indexOid); - _fingerprintString(ctx, "indexOid"); - _fingerprintString(ctx, buffer); - } - - if (node->indexParams != NULL && node->indexParams->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "indexParams"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->indexParams, node, "indexParams", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->indexParams) == 1 && linitial(node->indexParams) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->initdeferred) { - _fingerprintString(ctx, "initdeferred"); - _fingerprintString(ctx, "true"); - } - - if (node->isconstraint) { - _fingerprintString(ctx, "isconstraint"); - _fingerprintString(ctx, "true"); - } - - if (node->nulls_not_distinct) { - _fingerprintString(ctx, "nulls_not_distinct"); - _fingerprintString(ctx, "true"); - } - - if (node->oldCreateSubid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->oldCreateSubid); - _fingerprintString(ctx, "oldCreateSubid"); - _fingerprintString(ctx, buffer); - } - - if (node->oldFirstRelfilenodeSubid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->oldFirstRelfilenodeSubid); - _fingerprintString(ctx, "oldFirstRelfilenodeSubid"); - _fingerprintString(ctx, buffer); - } - - if (node->oldNode != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->oldNode); - _fingerprintString(ctx, "oldNode"); - _fingerprintString(ctx, buffer); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->primary) { - _fingerprintString(ctx, "primary"); - _fingerprintString(ctx, "true"); - } - - if (node->relation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->relation, node, "relation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->reset_default_tblspc) { - _fingerprintString(ctx, "reset_default_tblspc"); - _fingerprintString(ctx, "true"); - } - - if (node->tableSpace != NULL) { - _fingerprintString(ctx, "tableSpace"); - _fingerprintString(ctx, node->tableSpace); - } - - if (node->transformed) { - _fingerprintString(ctx, "transformed"); - _fingerprintString(ctx, "true"); - } - - if (node->unique) { - _fingerprintString(ctx, "unique"); - _fingerprintString(ctx, "true"); - } - - if (node->whereClause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "whereClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->whereClause, node, "whereClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintCreateFunctionStmt(FingerprintContext *ctx, const CreateFunctionStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->funcname != NULL && node->funcname->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "funcname"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->funcname, node, "funcname", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->funcname) == 1 && linitial(node->funcname) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->is_procedure) { - _fingerprintString(ctx, "is_procedure"); - _fingerprintString(ctx, "true"); - } - - // Intentionally ignoring node->options for fingerprinting - - if (node->parameters != NULL && node->parameters->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "parameters"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->parameters, node, "parameters", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->parameters) == 1 && linitial(node->parameters) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->replace) { - _fingerprintString(ctx, "replace"); - _fingerprintString(ctx, "true"); - } - - if (node->returnType != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "returnType"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintTypeName(ctx, node->returnType, node, "returnType", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->sql_body != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "sql_body"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->sql_body, node, "sql_body", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintAlterFunctionStmt(FingerprintContext *ctx, const AlterFunctionStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->actions != NULL && node->actions->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "actions"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->actions, node, "actions", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->actions) == 1 && linitial(node->actions) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->func != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "func"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintObjectWithArgs(ctx, node->func, node, "func", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "objtype"); - _fingerprintString(ctx, _enumToStringObjectType(node->objtype)); - } - -} - -static void -_fingerprintDoStmt(FingerprintContext *ctx, const DoStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - // Intentionally ignoring node->args for fingerprinting - -} - -static void -_fingerprintRenameStmt(FingerprintContext *ctx, const RenameStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (true) { - _fingerprintString(ctx, "behavior"); - _fingerprintString(ctx, _enumToStringDropBehavior(node->behavior)); - } - - if (node->missing_ok) { - _fingerprintString(ctx, "missing_ok"); - _fingerprintString(ctx, "true"); - } - - if (node->newname != NULL) { - _fingerprintString(ctx, "newname"); - _fingerprintString(ctx, node->newname); - } - - if (node->object != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "object"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->object, node, "object", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->relation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->relation, node, "relation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "relationType"); - _fingerprintString(ctx, _enumToStringObjectType(node->relationType)); - } - - if (true) { - _fingerprintString(ctx, "renameType"); - _fingerprintString(ctx, _enumToStringObjectType(node->renameType)); - } - - if (node->subname != NULL) { - _fingerprintString(ctx, "subname"); - _fingerprintString(ctx, node->subname); - } - -} - -static void -_fingerprintRuleStmt(FingerprintContext *ctx, const RuleStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->actions != NULL && node->actions->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "actions"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->actions, node, "actions", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->actions) == 1 && linitial(node->actions) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (true) { - _fingerprintString(ctx, "event"); - _fingerprintString(ctx, _enumToStringCmdType(node->event)); - } - - if (node->instead) { - _fingerprintString(ctx, "instead"); - _fingerprintString(ctx, "true"); - } - - if (node->relation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->relation, node, "relation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->replace) { - _fingerprintString(ctx, "replace"); - _fingerprintString(ctx, "true"); - } - - if (node->rulename != NULL) { - _fingerprintString(ctx, "rulename"); - _fingerprintString(ctx, node->rulename); - } - - if (node->whereClause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "whereClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->whereClause, node, "whereClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintNotifyStmt(FingerprintContext *ctx, const NotifyStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - // Intentionally ignoring node->conditionname for fingerprinting - - if (node->payload != NULL) { - _fingerprintString(ctx, "payload"); - _fingerprintString(ctx, node->payload); - } - -} - -static void -_fingerprintListenStmt(FingerprintContext *ctx, const ListenStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - // Intentionally ignoring node->conditionname for fingerprinting - -} - -static void -_fingerprintUnlistenStmt(FingerprintContext *ctx, const UnlistenStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - // Intentionally ignoring node->conditionname for fingerprinting - -} - -static void -_fingerprintTransactionStmt(FingerprintContext *ctx, const TransactionStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->chain) { - _fingerprintString(ctx, "chain"); - _fingerprintString(ctx, "true"); - } - - // Intentionally ignoring node->gid for fingerprinting - - if (true) { - _fingerprintString(ctx, "kind"); - _fingerprintString(ctx, _enumToStringTransactionStmtKind(node->kind)); - } - - // Intentionally ignoring node->options for fingerprinting - - // Intentionally ignoring node->savepoint_name for fingerprinting - -} - -static void -_fingerprintViewStmt(FingerprintContext *ctx, const ViewStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->aliases != NULL && node->aliases->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "aliases"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->aliases, node, "aliases", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->aliases) == 1 && linitial(node->aliases) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->query != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "query"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->query, node, "query", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->replace) { - _fingerprintString(ctx, "replace"); - _fingerprintString(ctx, "true"); - } - - if (node->view != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "view"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->view, node, "view", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "withCheckOption"); - _fingerprintString(ctx, _enumToStringViewCheckOption(node->withCheckOption)); - } - -} - -static void -_fingerprintLoadStmt(FingerprintContext *ctx, const LoadStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->filename != NULL) { - _fingerprintString(ctx, "filename"); - _fingerprintString(ctx, node->filename); - } - -} - -static void -_fingerprintCreateDomainStmt(FingerprintContext *ctx, const CreateDomainStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->collClause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "collClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintCollateClause(ctx, node->collClause, node, "collClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->constraints != NULL && node->constraints->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "constraints"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->constraints, node, "constraints", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->constraints) == 1 && linitial(node->constraints) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->domainname != NULL && node->domainname->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "domainname"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->domainname, node, "domainname", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->domainname) == 1 && linitial(node->domainname) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->typeName != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "typeName"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintTypeName(ctx, node->typeName, node, "typeName", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintCreatedbStmt(FingerprintContext *ctx, const CreatedbStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->dbname != NULL) { - _fingerprintString(ctx, "dbname"); - _fingerprintString(ctx, node->dbname); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintDropdbStmt(FingerprintContext *ctx, const DropdbStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->dbname != NULL) { - _fingerprintString(ctx, "dbname"); - _fingerprintString(ctx, node->dbname); - } - - if (node->missing_ok) { - _fingerprintString(ctx, "missing_ok"); - _fingerprintString(ctx, "true"); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintVacuumStmt(FingerprintContext *ctx, const VacuumStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->is_vacuumcmd) { - _fingerprintString(ctx, "is_vacuumcmd"); - _fingerprintString(ctx, "true"); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->rels != NULL && node->rels->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "rels"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->rels, node, "rels", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->rels) == 1 && linitial(node->rels) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintExplainStmt(FingerprintContext *ctx, const ExplainStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->query != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "query"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->query, node, "query", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintCreateTableAsStmt(FingerprintContext *ctx, const CreateTableAsStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->if_not_exists) { - _fingerprintString(ctx, "if_not_exists"); - _fingerprintString(ctx, "true"); - } - - if (node->into != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "into"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintIntoClause(ctx, node->into, node, "into", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->is_select_into) { - _fingerprintString(ctx, "is_select_into"); - _fingerprintString(ctx, "true"); - } - - if (true) { - _fingerprintString(ctx, "objtype"); - _fingerprintString(ctx, _enumToStringObjectType(node->objtype)); - } - - if (node->query != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "query"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->query, node, "query", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintCreateSeqStmt(FingerprintContext *ctx, const CreateSeqStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->for_identity) { - _fingerprintString(ctx, "for_identity"); - _fingerprintString(ctx, "true"); - } - - if (node->if_not_exists) { - _fingerprintString(ctx, "if_not_exists"); - _fingerprintString(ctx, "true"); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->ownerId != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->ownerId); - _fingerprintString(ctx, "ownerId"); - _fingerprintString(ctx, buffer); - } - - if (node->sequence != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "sequence"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->sequence, node, "sequence", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintAlterSeqStmt(FingerprintContext *ctx, const AlterSeqStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->for_identity) { - _fingerprintString(ctx, "for_identity"); - _fingerprintString(ctx, "true"); - } - - if (node->missing_ok) { - _fingerprintString(ctx, "missing_ok"); - _fingerprintString(ctx, "true"); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->sequence != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "sequence"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->sequence, node, "sequence", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintVariableSetStmt(FingerprintContext *ctx, const VariableSetStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->args != NULL && node->args->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "args"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->args, node, "args", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->args) == 1 && linitial(node->args) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->is_local) { - _fingerprintString(ctx, "is_local"); - _fingerprintString(ctx, "true"); - } - - if (true) { - _fingerprintString(ctx, "kind"); - _fingerprintString(ctx, _enumToStringVariableSetKind(node->kind)); - } - - if (node->name != NULL) { - _fingerprintString(ctx, "name"); - _fingerprintString(ctx, node->name); - } - -} - -static void -_fingerprintVariableShowStmt(FingerprintContext *ctx, const VariableShowStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->name != NULL) { - _fingerprintString(ctx, "name"); - _fingerprintString(ctx, node->name); - } - -} - -static void -_fingerprintDiscardStmt(FingerprintContext *ctx, const DiscardStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (true) { - _fingerprintString(ctx, "target"); - _fingerprintString(ctx, _enumToStringDiscardMode(node->target)); - } - -} - -static void -_fingerprintCreateTrigStmt(FingerprintContext *ctx, const CreateTrigStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->args != NULL && node->args->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "args"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->args, node, "args", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->args) == 1 && linitial(node->args) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->columns != NULL && node->columns->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "columns"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->columns, node, "columns", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->columns) == 1 && linitial(node->columns) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->constrrel != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "constrrel"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->constrrel, node, "constrrel", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->deferrable) { - _fingerprintString(ctx, "deferrable"); - _fingerprintString(ctx, "true"); - } - - if (node->events != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->events); - _fingerprintString(ctx, "events"); - _fingerprintString(ctx, buffer); - } - - if (node->funcname != NULL && node->funcname->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "funcname"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->funcname, node, "funcname", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->funcname) == 1 && linitial(node->funcname) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->initdeferred) { - _fingerprintString(ctx, "initdeferred"); - _fingerprintString(ctx, "true"); - } - - if (node->isconstraint) { - _fingerprintString(ctx, "isconstraint"); - _fingerprintString(ctx, "true"); - } - - if (node->relation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->relation, node, "relation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->replace) { - _fingerprintString(ctx, "replace"); - _fingerprintString(ctx, "true"); - } - - if (node->row) { - _fingerprintString(ctx, "row"); - _fingerprintString(ctx, "true"); - } - - if (node->timing != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->timing); - _fingerprintString(ctx, "timing"); - _fingerprintString(ctx, buffer); - } - - if (node->transitionRels != NULL && node->transitionRels->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "transitionRels"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->transitionRels, node, "transitionRels", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->transitionRels) == 1 && linitial(node->transitionRels) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->trigname != NULL) { - _fingerprintString(ctx, "trigname"); - _fingerprintString(ctx, node->trigname); - } - - if (node->whenClause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "whenClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->whenClause, node, "whenClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintCreatePLangStmt(FingerprintContext *ctx, const CreatePLangStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->plhandler != NULL && node->plhandler->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "plhandler"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->plhandler, node, "plhandler", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->plhandler) == 1 && linitial(node->plhandler) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->plinline != NULL && node->plinline->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "plinline"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->plinline, node, "plinline", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->plinline) == 1 && linitial(node->plinline) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->plname != NULL) { - _fingerprintString(ctx, "plname"); - _fingerprintString(ctx, node->plname); - } - - if (node->pltrusted) { - _fingerprintString(ctx, "pltrusted"); - _fingerprintString(ctx, "true"); - } - - if (node->plvalidator != NULL && node->plvalidator->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "plvalidator"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->plvalidator, node, "plvalidator", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->plvalidator) == 1 && linitial(node->plvalidator) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->replace) { - _fingerprintString(ctx, "replace"); - _fingerprintString(ctx, "true"); - } - -} - -static void -_fingerprintCreateRoleStmt(FingerprintContext *ctx, const CreateRoleStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->role != NULL) { - _fingerprintString(ctx, "role"); - _fingerprintString(ctx, node->role); - } - - if (true) { - _fingerprintString(ctx, "stmt_type"); - _fingerprintString(ctx, _enumToStringRoleStmtType(node->stmt_type)); - } - -} - -static void -_fingerprintAlterRoleStmt(FingerprintContext *ctx, const AlterRoleStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->action != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->action); - _fingerprintString(ctx, "action"); - _fingerprintString(ctx, buffer); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->role != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "role"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRoleSpec(ctx, node->role, node, "role", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintDropRoleStmt(FingerprintContext *ctx, const DropRoleStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->missing_ok) { - _fingerprintString(ctx, "missing_ok"); - _fingerprintString(ctx, "true"); - } - - if (node->roles != NULL && node->roles->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "roles"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->roles, node, "roles", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->roles) == 1 && linitial(node->roles) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintLockStmt(FingerprintContext *ctx, const LockStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->mode != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->mode); - _fingerprintString(ctx, "mode"); - _fingerprintString(ctx, buffer); - } - - if (node->nowait) { - _fingerprintString(ctx, "nowait"); - _fingerprintString(ctx, "true"); - } - - if (node->relations != NULL && node->relations->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relations"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->relations, node, "relations", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->relations) == 1 && linitial(node->relations) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintConstraintsSetStmt(FingerprintContext *ctx, const ConstraintsSetStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->constraints != NULL && node->constraints->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "constraints"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->constraints, node, "constraints", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->constraints) == 1 && linitial(node->constraints) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->deferred) { - _fingerprintString(ctx, "deferred"); - _fingerprintString(ctx, "true"); - } - -} - -static void -_fingerprintReindexStmt(FingerprintContext *ctx, const ReindexStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (true) { - _fingerprintString(ctx, "kind"); - _fingerprintString(ctx, _enumToStringReindexObjectType(node->kind)); - } - - if (node->name != NULL) { - _fingerprintString(ctx, "name"); - _fingerprintString(ctx, node->name); - } - - if (node->params != NULL && node->params->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "params"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->params, node, "params", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->params) == 1 && linitial(node->params) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->relation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->relation, node, "relation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintCheckPointStmt(FingerprintContext *ctx, const CheckPointStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ -} - -static void -_fingerprintCreateSchemaStmt(FingerprintContext *ctx, const CreateSchemaStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->authrole != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "authrole"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRoleSpec(ctx, node->authrole, node, "authrole", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->if_not_exists) { - _fingerprintString(ctx, "if_not_exists"); - _fingerprintString(ctx, "true"); - } - - if (node->schemaElts != NULL && node->schemaElts->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "schemaElts"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->schemaElts, node, "schemaElts", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->schemaElts) == 1 && linitial(node->schemaElts) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->schemaname != NULL) { - _fingerprintString(ctx, "schemaname"); - _fingerprintString(ctx, node->schemaname); - } - -} - -static void -_fingerprintAlterDatabaseStmt(FingerprintContext *ctx, const AlterDatabaseStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->dbname != NULL) { - _fingerprintString(ctx, "dbname"); - _fingerprintString(ctx, node->dbname); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintAlterDatabaseRefreshCollStmt(FingerprintContext *ctx, const AlterDatabaseRefreshCollStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->dbname != NULL) { - _fingerprintString(ctx, "dbname"); - _fingerprintString(ctx, node->dbname); - } - -} - -static void -_fingerprintAlterDatabaseSetStmt(FingerprintContext *ctx, const AlterDatabaseSetStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->dbname != NULL) { - _fingerprintString(ctx, "dbname"); - _fingerprintString(ctx, node->dbname); - } - - if (node->setstmt != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "setstmt"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintVariableSetStmt(ctx, node->setstmt, node, "setstmt", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintAlterRoleSetStmt(FingerprintContext *ctx, const AlterRoleSetStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->database != NULL) { - _fingerprintString(ctx, "database"); - _fingerprintString(ctx, node->database); - } - - if (node->role != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "role"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRoleSpec(ctx, node->role, node, "role", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->setstmt != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "setstmt"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintVariableSetStmt(ctx, node->setstmt, node, "setstmt", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintCreateConversionStmt(FingerprintContext *ctx, const CreateConversionStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->conversion_name != NULL && node->conversion_name->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "conversion_name"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->conversion_name, node, "conversion_name", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->conversion_name) == 1 && linitial(node->conversion_name) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->def) { - _fingerprintString(ctx, "def"); - _fingerprintString(ctx, "true"); - } - - if (node->for_encoding_name != NULL) { - _fingerprintString(ctx, "for_encoding_name"); - _fingerprintString(ctx, node->for_encoding_name); - } - - if (node->func_name != NULL && node->func_name->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "func_name"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->func_name, node, "func_name", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->func_name) == 1 && linitial(node->func_name) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->to_encoding_name != NULL) { - _fingerprintString(ctx, "to_encoding_name"); - _fingerprintString(ctx, node->to_encoding_name); - } - -} - -static void -_fingerprintCreateCastStmt(FingerprintContext *ctx, const CreateCastStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (true) { - _fingerprintString(ctx, "context"); - _fingerprintString(ctx, _enumToStringCoercionContext(node->context)); - } - - if (node->func != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "func"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintObjectWithArgs(ctx, node->func, node, "func", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->inout) { - _fingerprintString(ctx, "inout"); - _fingerprintString(ctx, "true"); - } - - if (node->sourcetype != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "sourcetype"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintTypeName(ctx, node->sourcetype, node, "sourcetype", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->targettype != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "targettype"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintTypeName(ctx, node->targettype, node, "targettype", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintCreateOpClassStmt(FingerprintContext *ctx, const CreateOpClassStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->amname != NULL) { - _fingerprintString(ctx, "amname"); - _fingerprintString(ctx, node->amname); - } - - if (node->datatype != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "datatype"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintTypeName(ctx, node->datatype, node, "datatype", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->isDefault) { - _fingerprintString(ctx, "isDefault"); - _fingerprintString(ctx, "true"); - } - - if (node->items != NULL && node->items->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "items"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->items, node, "items", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->items) == 1 && linitial(node->items) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->opclassname != NULL && node->opclassname->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "opclassname"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->opclassname, node, "opclassname", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->opclassname) == 1 && linitial(node->opclassname) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->opfamilyname != NULL && node->opfamilyname->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "opfamilyname"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->opfamilyname, node, "opfamilyname", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->opfamilyname) == 1 && linitial(node->opfamilyname) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintCreateOpFamilyStmt(FingerprintContext *ctx, const CreateOpFamilyStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->amname != NULL) { - _fingerprintString(ctx, "amname"); - _fingerprintString(ctx, node->amname); - } - - if (node->opfamilyname != NULL && node->opfamilyname->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "opfamilyname"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->opfamilyname, node, "opfamilyname", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->opfamilyname) == 1 && linitial(node->opfamilyname) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintAlterOpFamilyStmt(FingerprintContext *ctx, const AlterOpFamilyStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->amname != NULL) { - _fingerprintString(ctx, "amname"); - _fingerprintString(ctx, node->amname); - } - - if (node->isDrop) { - _fingerprintString(ctx, "isDrop"); - _fingerprintString(ctx, "true"); - } - - if (node->items != NULL && node->items->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "items"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->items, node, "items", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->items) == 1 && linitial(node->items) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->opfamilyname != NULL && node->opfamilyname->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "opfamilyname"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->opfamilyname, node, "opfamilyname", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->opfamilyname) == 1 && linitial(node->opfamilyname) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintPrepareStmt(FingerprintContext *ctx, const PrepareStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->argtypes != NULL && node->argtypes->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "argtypes"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->argtypes, node, "argtypes", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->argtypes) == 1 && linitial(node->argtypes) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - // Intentionally ignoring node->name for fingerprinting - - if (node->query != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "query"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->query, node, "query", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintExecuteStmt(FingerprintContext *ctx, const ExecuteStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - // Intentionally ignoring node->name for fingerprinting - - if (node->params != NULL && node->params->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "params"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->params, node, "params", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->params) == 1 && linitial(node->params) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintDeallocateStmt(FingerprintContext *ctx, const DeallocateStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - // Intentionally ignoring node->name for fingerprinting - -} - -static void -_fingerprintDeclareCursorStmt(FingerprintContext *ctx, const DeclareCursorStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->options != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->options); - _fingerprintString(ctx, "options"); - _fingerprintString(ctx, buffer); - } - - // Intentionally ignoring node->portalname for fingerprinting - - if (node->query != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "query"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->query, node, "query", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintCreateTableSpaceStmt(FingerprintContext *ctx, const CreateTableSpaceStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - // Intentionally ignoring node->location for fingerprinting - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->owner != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "owner"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRoleSpec(ctx, node->owner, node, "owner", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->tablespacename != NULL) { - _fingerprintString(ctx, "tablespacename"); - _fingerprintString(ctx, node->tablespacename); - } - -} - -static void -_fingerprintDropTableSpaceStmt(FingerprintContext *ctx, const DropTableSpaceStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->missing_ok) { - _fingerprintString(ctx, "missing_ok"); - _fingerprintString(ctx, "true"); - } - - if (node->tablespacename != NULL) { - _fingerprintString(ctx, "tablespacename"); - _fingerprintString(ctx, node->tablespacename); - } - -} - -static void -_fingerprintAlterObjectDependsStmt(FingerprintContext *ctx, const AlterObjectDependsStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (strlen(node->extname->sval) > 0) { - _fingerprintString(ctx, "extname"); - _fingerprintString(ctx, node->extname->sval); - } - - if (node->object != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "object"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->object, node, "object", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "objectType"); - _fingerprintString(ctx, _enumToStringObjectType(node->objectType)); - } - - if (node->relation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->relation, node, "relation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->remove) { - _fingerprintString(ctx, "remove"); - _fingerprintString(ctx, "true"); - } - -} - -static void -_fingerprintAlterObjectSchemaStmt(FingerprintContext *ctx, const AlterObjectSchemaStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->missing_ok) { - _fingerprintString(ctx, "missing_ok"); - _fingerprintString(ctx, "true"); - } - - if (node->newschema != NULL) { - _fingerprintString(ctx, "newschema"); - _fingerprintString(ctx, node->newschema); - } - - if (node->object != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "object"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->object, node, "object", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "objectType"); - _fingerprintString(ctx, _enumToStringObjectType(node->objectType)); - } - - if (node->relation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->relation, node, "relation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintAlterOwnerStmt(FingerprintContext *ctx, const AlterOwnerStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->newowner != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "newowner"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRoleSpec(ctx, node->newowner, node, "newowner", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->object != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "object"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->object, node, "object", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "objectType"); - _fingerprintString(ctx, _enumToStringObjectType(node->objectType)); - } - - if (node->relation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->relation, node, "relation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintAlterOperatorStmt(FingerprintContext *ctx, const AlterOperatorStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->opername != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "opername"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintObjectWithArgs(ctx, node->opername, node, "opername", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintAlterTypeStmt(FingerprintContext *ctx, const AlterTypeStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->typeName != NULL && node->typeName->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "typeName"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->typeName, node, "typeName", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->typeName) == 1 && linitial(node->typeName) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintDropOwnedStmt(FingerprintContext *ctx, const DropOwnedStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (true) { - _fingerprintString(ctx, "behavior"); - _fingerprintString(ctx, _enumToStringDropBehavior(node->behavior)); - } - - if (node->roles != NULL && node->roles->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "roles"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->roles, node, "roles", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->roles) == 1 && linitial(node->roles) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintReassignOwnedStmt(FingerprintContext *ctx, const ReassignOwnedStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->newrole != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "newrole"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRoleSpec(ctx, node->newrole, node, "newrole", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->roles != NULL && node->roles->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "roles"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->roles, node, "roles", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->roles) == 1 && linitial(node->roles) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintCompositeTypeStmt(FingerprintContext *ctx, const CompositeTypeStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->coldeflist != NULL && node->coldeflist->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "coldeflist"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->coldeflist, node, "coldeflist", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->coldeflist) == 1 && linitial(node->coldeflist) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->typevar != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "typevar"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->typevar, node, "typevar", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintCreateEnumStmt(FingerprintContext *ctx, const CreateEnumStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->typeName != NULL && node->typeName->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "typeName"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->typeName, node, "typeName", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->typeName) == 1 && linitial(node->typeName) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->vals != NULL && node->vals->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "vals"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->vals, node, "vals", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->vals) == 1 && linitial(node->vals) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintCreateRangeStmt(FingerprintContext *ctx, const CreateRangeStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->params != NULL && node->params->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "params"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->params, node, "params", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->params) == 1 && linitial(node->params) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->typeName != NULL && node->typeName->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "typeName"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->typeName, node, "typeName", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->typeName) == 1 && linitial(node->typeName) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintAlterEnumStmt(FingerprintContext *ctx, const AlterEnumStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->newVal != NULL) { - _fingerprintString(ctx, "newVal"); - _fingerprintString(ctx, node->newVal); - } - - if (node->newValIsAfter) { - _fingerprintString(ctx, "newValIsAfter"); - _fingerprintString(ctx, "true"); - } - - if (node->newValNeighbor != NULL) { - _fingerprintString(ctx, "newValNeighbor"); - _fingerprintString(ctx, node->newValNeighbor); - } - - if (node->oldVal != NULL) { - _fingerprintString(ctx, "oldVal"); - _fingerprintString(ctx, node->oldVal); - } - - if (node->skipIfNewValExists) { - _fingerprintString(ctx, "skipIfNewValExists"); - _fingerprintString(ctx, "true"); - } - - if (node->typeName != NULL && node->typeName->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "typeName"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->typeName, node, "typeName", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->typeName) == 1 && linitial(node->typeName) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintAlterTSDictionaryStmt(FingerprintContext *ctx, const AlterTSDictionaryStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->dictname != NULL && node->dictname->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "dictname"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->dictname, node, "dictname", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->dictname) == 1 && linitial(node->dictname) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintAlterTSConfigurationStmt(FingerprintContext *ctx, const AlterTSConfigurationStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->cfgname != NULL && node->cfgname->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "cfgname"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->cfgname, node, "cfgname", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->cfgname) == 1 && linitial(node->cfgname) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->dicts != NULL && node->dicts->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "dicts"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->dicts, node, "dicts", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->dicts) == 1 && linitial(node->dicts) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (true) { - _fingerprintString(ctx, "kind"); - _fingerprintString(ctx, _enumToStringAlterTSConfigType(node->kind)); - } - - if (node->missing_ok) { - _fingerprintString(ctx, "missing_ok"); - _fingerprintString(ctx, "true"); - } - - if (node->override) { - _fingerprintString(ctx, "override"); - _fingerprintString(ctx, "true"); - } - - if (node->replace) { - _fingerprintString(ctx, "replace"); - _fingerprintString(ctx, "true"); - } - - if (node->tokentype != NULL && node->tokentype->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "tokentype"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->tokentype, node, "tokentype", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->tokentype) == 1 && linitial(node->tokentype) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintCreateFdwStmt(FingerprintContext *ctx, const CreateFdwStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->fdwname != NULL) { - _fingerprintString(ctx, "fdwname"); - _fingerprintString(ctx, node->fdwname); - } - - if (node->func_options != NULL && node->func_options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "func_options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->func_options, node, "func_options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->func_options) == 1 && linitial(node->func_options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintAlterFdwStmt(FingerprintContext *ctx, const AlterFdwStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->fdwname != NULL) { - _fingerprintString(ctx, "fdwname"); - _fingerprintString(ctx, node->fdwname); - } - - if (node->func_options != NULL && node->func_options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "func_options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->func_options, node, "func_options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->func_options) == 1 && linitial(node->func_options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintCreateForeignServerStmt(FingerprintContext *ctx, const CreateForeignServerStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->fdwname != NULL) { - _fingerprintString(ctx, "fdwname"); - _fingerprintString(ctx, node->fdwname); - } - - if (node->if_not_exists) { - _fingerprintString(ctx, "if_not_exists"); - _fingerprintString(ctx, "true"); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->servername != NULL) { - _fingerprintString(ctx, "servername"); - _fingerprintString(ctx, node->servername); - } - - if (node->servertype != NULL) { - _fingerprintString(ctx, "servertype"); - _fingerprintString(ctx, node->servertype); - } - - if (node->version != NULL) { - _fingerprintString(ctx, "version"); - _fingerprintString(ctx, node->version); - } - -} - -static void -_fingerprintAlterForeignServerStmt(FingerprintContext *ctx, const AlterForeignServerStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->has_version) { - _fingerprintString(ctx, "has_version"); - _fingerprintString(ctx, "true"); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->servername != NULL) { - _fingerprintString(ctx, "servername"); - _fingerprintString(ctx, node->servername); - } - - if (node->version != NULL) { - _fingerprintString(ctx, "version"); - _fingerprintString(ctx, node->version); - } - -} - -static void -_fingerprintCreateUserMappingStmt(FingerprintContext *ctx, const CreateUserMappingStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->if_not_exists) { - _fingerprintString(ctx, "if_not_exists"); - _fingerprintString(ctx, "true"); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->servername != NULL) { - _fingerprintString(ctx, "servername"); - _fingerprintString(ctx, node->servername); - } - - if (node->user != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "user"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRoleSpec(ctx, node->user, node, "user", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintAlterUserMappingStmt(FingerprintContext *ctx, const AlterUserMappingStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->servername != NULL) { - _fingerprintString(ctx, "servername"); - _fingerprintString(ctx, node->servername); - } - - if (node->user != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "user"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRoleSpec(ctx, node->user, node, "user", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintDropUserMappingStmt(FingerprintContext *ctx, const DropUserMappingStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->missing_ok) { - _fingerprintString(ctx, "missing_ok"); - _fingerprintString(ctx, "true"); - } - - if (node->servername != NULL) { - _fingerprintString(ctx, "servername"); - _fingerprintString(ctx, node->servername); - } - - if (node->user != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "user"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRoleSpec(ctx, node->user, node, "user", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintAlterTableSpaceOptionsStmt(FingerprintContext *ctx, const AlterTableSpaceOptionsStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->isReset) { - _fingerprintString(ctx, "isReset"); - _fingerprintString(ctx, "true"); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->tablespacename != NULL) { - _fingerprintString(ctx, "tablespacename"); - _fingerprintString(ctx, node->tablespacename); - } - -} - -static void -_fingerprintAlterTableMoveAllStmt(FingerprintContext *ctx, const AlterTableMoveAllStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->new_tablespacename != NULL) { - _fingerprintString(ctx, "new_tablespacename"); - _fingerprintString(ctx, node->new_tablespacename); - } - - if (node->nowait) { - _fingerprintString(ctx, "nowait"); - _fingerprintString(ctx, "true"); - } - - if (true) { - _fingerprintString(ctx, "objtype"); - _fingerprintString(ctx, _enumToStringObjectType(node->objtype)); - } - - if (node->orig_tablespacename != NULL) { - _fingerprintString(ctx, "orig_tablespacename"); - _fingerprintString(ctx, node->orig_tablespacename); - } - - if (node->roles != NULL && node->roles->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "roles"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->roles, node, "roles", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->roles) == 1 && linitial(node->roles) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintSecLabelStmt(FingerprintContext *ctx, const SecLabelStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->label != NULL) { - _fingerprintString(ctx, "label"); - _fingerprintString(ctx, node->label); - } - - if (node->object != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "object"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->object, node, "object", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "objtype"); - _fingerprintString(ctx, _enumToStringObjectType(node->objtype)); - } - - if (node->provider != NULL) { - _fingerprintString(ctx, "provider"); - _fingerprintString(ctx, node->provider); - } - -} - -static void -_fingerprintCreateForeignTableStmt(FingerprintContext *ctx, const CreateForeignTableStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - _fingerprintString(ctx, "base"); - _fingerprintCreateStmt(ctx, (const CreateStmt*) &node->base, node, "base", depth); - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->servername != NULL) { - _fingerprintString(ctx, "servername"); - _fingerprintString(ctx, node->servername); - } - -} - -static void -_fingerprintImportForeignSchemaStmt(FingerprintContext *ctx, const ImportForeignSchemaStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (true) { - _fingerprintString(ctx, "list_type"); - _fingerprintString(ctx, _enumToStringImportForeignSchemaType(node->list_type)); - } - - if (node->local_schema != NULL) { - _fingerprintString(ctx, "local_schema"); - _fingerprintString(ctx, node->local_schema); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->remote_schema != NULL) { - _fingerprintString(ctx, "remote_schema"); - _fingerprintString(ctx, node->remote_schema); - } - - if (node->server_name != NULL) { - _fingerprintString(ctx, "server_name"); - _fingerprintString(ctx, node->server_name); - } - - if (node->table_list != NULL && node->table_list->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "table_list"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->table_list, node, "table_list", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->table_list) == 1 && linitial(node->table_list) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintCreateExtensionStmt(FingerprintContext *ctx, const CreateExtensionStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->extname != NULL) { - _fingerprintString(ctx, "extname"); - _fingerprintString(ctx, node->extname); - } - - if (node->if_not_exists) { - _fingerprintString(ctx, "if_not_exists"); - _fingerprintString(ctx, "true"); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintAlterExtensionStmt(FingerprintContext *ctx, const AlterExtensionStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->extname != NULL) { - _fingerprintString(ctx, "extname"); - _fingerprintString(ctx, node->extname); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintAlterExtensionContentsStmt(FingerprintContext *ctx, const AlterExtensionContentsStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->action != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->action); - _fingerprintString(ctx, "action"); - _fingerprintString(ctx, buffer); - } - - if (node->extname != NULL) { - _fingerprintString(ctx, "extname"); - _fingerprintString(ctx, node->extname); - } - - if (node->object != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "object"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->object, node, "object", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "objtype"); - _fingerprintString(ctx, _enumToStringObjectType(node->objtype)); - } - -} - -static void -_fingerprintCreateEventTrigStmt(FingerprintContext *ctx, const CreateEventTrigStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->eventname != NULL) { - _fingerprintString(ctx, "eventname"); - _fingerprintString(ctx, node->eventname); - } - - if (node->funcname != NULL && node->funcname->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "funcname"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->funcname, node, "funcname", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->funcname) == 1 && linitial(node->funcname) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->trigname != NULL) { - _fingerprintString(ctx, "trigname"); - _fingerprintString(ctx, node->trigname); - } - - if (node->whenclause != NULL && node->whenclause->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "whenclause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->whenclause, node, "whenclause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->whenclause) == 1 && linitial(node->whenclause) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintAlterEventTrigStmt(FingerprintContext *ctx, const AlterEventTrigStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->tgenabled != 0) { - char buffer[2] = {node->tgenabled, '\0'}; - _fingerprintString(ctx, "tgenabled"); - _fingerprintString(ctx, buffer); - } - - if (node->trigname != NULL) { - _fingerprintString(ctx, "trigname"); - _fingerprintString(ctx, node->trigname); - } - -} - -static void -_fingerprintRefreshMatViewStmt(FingerprintContext *ctx, const RefreshMatViewStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->concurrent) { - _fingerprintString(ctx, "concurrent"); - _fingerprintString(ctx, "true"); - } - - if (node->relation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->relation, node, "relation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->skipData) { - _fingerprintString(ctx, "skipData"); - _fingerprintString(ctx, "true"); - } - -} - -static void -_fingerprintReplicaIdentityStmt(FingerprintContext *ctx, const ReplicaIdentityStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->identity_type != 0) { - char buffer[2] = {node->identity_type, '\0'}; - _fingerprintString(ctx, "identity_type"); - _fingerprintString(ctx, buffer); - } - - if (node->name != NULL) { - _fingerprintString(ctx, "name"); - _fingerprintString(ctx, node->name); - } - -} - -static void -_fingerprintAlterSystemStmt(FingerprintContext *ctx, const AlterSystemStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->setstmt != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "setstmt"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintVariableSetStmt(ctx, node->setstmt, node, "setstmt", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintCreatePolicyStmt(FingerprintContext *ctx, const CreatePolicyStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->cmd_name != NULL) { - _fingerprintString(ctx, "cmd_name"); - _fingerprintString(ctx, node->cmd_name); - } - - if (node->permissive) { - _fingerprintString(ctx, "permissive"); - _fingerprintString(ctx, "true"); - } - - if (node->policy_name != NULL) { - _fingerprintString(ctx, "policy_name"); - _fingerprintString(ctx, node->policy_name); - } - - if (node->qual != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "qual"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->qual, node, "qual", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->roles != NULL && node->roles->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "roles"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->roles, node, "roles", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->roles) == 1 && linitial(node->roles) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->table != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "table"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->table, node, "table", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->with_check != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "with_check"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->with_check, node, "with_check", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintAlterPolicyStmt(FingerprintContext *ctx, const AlterPolicyStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->policy_name != NULL) { - _fingerprintString(ctx, "policy_name"); - _fingerprintString(ctx, node->policy_name); - } - - if (node->qual != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "qual"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->qual, node, "qual", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->roles != NULL && node->roles->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "roles"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->roles, node, "roles", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->roles) == 1 && linitial(node->roles) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->table != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "table"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->table, node, "table", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->with_check != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "with_check"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->with_check, node, "with_check", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintCreateTransformStmt(FingerprintContext *ctx, const CreateTransformStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->fromsql != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "fromsql"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintObjectWithArgs(ctx, node->fromsql, node, "fromsql", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->lang != NULL) { - _fingerprintString(ctx, "lang"); - _fingerprintString(ctx, node->lang); - } - - if (node->replace) { - _fingerprintString(ctx, "replace"); - _fingerprintString(ctx, "true"); - } - - if (node->tosql != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "tosql"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintObjectWithArgs(ctx, node->tosql, node, "tosql", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->type_name != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "type_name"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintTypeName(ctx, node->type_name, node, "type_name", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintCreateAmStmt(FingerprintContext *ctx, const CreateAmStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->amname != NULL) { - _fingerprintString(ctx, "amname"); - _fingerprintString(ctx, node->amname); - } - - if (node->amtype != 0) { - char buffer[2] = {node->amtype, '\0'}; - _fingerprintString(ctx, "amtype"); - _fingerprintString(ctx, buffer); - } - - if (node->handler_name != NULL && node->handler_name->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "handler_name"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->handler_name, node, "handler_name", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->handler_name) == 1 && linitial(node->handler_name) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintCreatePublicationStmt(FingerprintContext *ctx, const CreatePublicationStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->for_all_tables) { - _fingerprintString(ctx, "for_all_tables"); - _fingerprintString(ctx, "true"); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->pubname != NULL) { - _fingerprintString(ctx, "pubname"); - _fingerprintString(ctx, node->pubname); - } - - if (node->pubobjects != NULL && node->pubobjects->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "pubobjects"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->pubobjects, node, "pubobjects", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->pubobjects) == 1 && linitial(node->pubobjects) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintAlterPublicationStmt(FingerprintContext *ctx, const AlterPublicationStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (true) { - _fingerprintString(ctx, "action"); - _fingerprintString(ctx, _enumToStringAlterPublicationAction(node->action)); - } - - if (node->for_all_tables) { - _fingerprintString(ctx, "for_all_tables"); - _fingerprintString(ctx, "true"); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->pubname != NULL) { - _fingerprintString(ctx, "pubname"); - _fingerprintString(ctx, node->pubname); - } - - if (node->pubobjects != NULL && node->pubobjects->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "pubobjects"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->pubobjects, node, "pubobjects", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->pubobjects) == 1 && linitial(node->pubobjects) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintCreateSubscriptionStmt(FingerprintContext *ctx, const CreateSubscriptionStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->conninfo != NULL) { - _fingerprintString(ctx, "conninfo"); - _fingerprintString(ctx, node->conninfo); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->publication != NULL && node->publication->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "publication"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->publication, node, "publication", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->publication) == 1 && linitial(node->publication) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->subname != NULL) { - _fingerprintString(ctx, "subname"); - _fingerprintString(ctx, node->subname); - } - -} - -static void -_fingerprintAlterSubscriptionStmt(FingerprintContext *ctx, const AlterSubscriptionStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->conninfo != NULL) { - _fingerprintString(ctx, "conninfo"); - _fingerprintString(ctx, node->conninfo); - } - - if (true) { - _fingerprintString(ctx, "kind"); - _fingerprintString(ctx, _enumToStringAlterSubscriptionType(node->kind)); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->publication != NULL && node->publication->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "publication"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->publication, node, "publication", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->publication) == 1 && linitial(node->publication) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->subname != NULL) { - _fingerprintString(ctx, "subname"); - _fingerprintString(ctx, node->subname); - } - -} - -static void -_fingerprintDropSubscriptionStmt(FingerprintContext *ctx, const DropSubscriptionStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (true) { - _fingerprintString(ctx, "behavior"); - _fingerprintString(ctx, _enumToStringDropBehavior(node->behavior)); - } - - if (node->missing_ok) { - _fingerprintString(ctx, "missing_ok"); - _fingerprintString(ctx, "true"); - } - - if (node->subname != NULL) { - _fingerprintString(ctx, "subname"); - _fingerprintString(ctx, node->subname); - } - -} - -static void -_fingerprintCreateStatsStmt(FingerprintContext *ctx, const CreateStatsStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->defnames != NULL && node->defnames->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "defnames"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->defnames, node, "defnames", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->defnames) == 1 && linitial(node->defnames) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->exprs != NULL && node->exprs->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "exprs"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->exprs, node, "exprs", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->exprs) == 1 && linitial(node->exprs) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->if_not_exists) { - _fingerprintString(ctx, "if_not_exists"); - _fingerprintString(ctx, "true"); - } - - if (node->relations != NULL && node->relations->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relations"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->relations, node, "relations", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->relations) == 1 && linitial(node->relations) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->stat_types != NULL && node->stat_types->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "stat_types"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->stat_types, node, "stat_types", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->stat_types) == 1 && linitial(node->stat_types) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->stxcomment != NULL) { - _fingerprintString(ctx, "stxcomment"); - _fingerprintString(ctx, node->stxcomment); - } - - if (node->transformed) { - _fingerprintString(ctx, "transformed"); - _fingerprintString(ctx, "true"); - } - -} - -static void -_fingerprintAlterCollationStmt(FingerprintContext *ctx, const AlterCollationStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->collname != NULL && node->collname->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "collname"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->collname, node, "collname", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->collname) == 1 && linitial(node->collname) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintCallStmt(FingerprintContext *ctx, const CallStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->funccall != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "funccall"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintFuncCall(ctx, node->funccall, node, "funccall", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->funcexpr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "funcexpr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintFuncExpr(ctx, node->funcexpr, node, "funcexpr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->outargs != NULL && node->outargs->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "outargs"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->outargs, node, "outargs", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->outargs) == 1 && linitial(node->outargs) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintAlterStatsStmt(FingerprintContext *ctx, const AlterStatsStmt *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->defnames != NULL && node->defnames->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "defnames"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->defnames, node, "defnames", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->defnames) == 1 && linitial(node->defnames) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->missing_ok) { - _fingerprintString(ctx, "missing_ok"); - _fingerprintString(ctx, "true"); - } - - if (node->stxstattarget != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->stxstattarget); - _fingerprintString(ctx, "stxstattarget"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintA_Expr(FingerprintContext *ctx, const A_Expr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (true) { - _fingerprintString(ctx, "kind"); - if (node->kind == AEXPR_OP_ANY || node->kind == AEXPR_IN) - _fingerprintString(ctx, "AEXPR_OP"); - else - _fingerprintString(ctx, _enumToStringA_Expr_Kind(node->kind)); - } - - if (node->lexpr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "lexpr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->lexpr, node, "lexpr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->name != NULL && node->name->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "name"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->name, node, "name", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->name) == 1 && linitial(node->name) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->rexpr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "rexpr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->rexpr, node, "rexpr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintColumnRef(FingerprintContext *ctx, const ColumnRef *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->fields != NULL && node->fields->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "fields"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->fields, node, "fields", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->fields) == 1 && linitial(node->fields) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - // Intentionally ignoring node->location for fingerprinting - -} - -static void -_fingerprintParamRef(FingerprintContext *ctx, const ParamRef *node, const void *parent, const char *field_name, unsigned int depth) -{ - // Intentionally ignoring all fields for fingerprinting -} - -static void -_fingerprintFuncCall(FingerprintContext *ctx, const FuncCall *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->agg_distinct) { - _fingerprintString(ctx, "agg_distinct"); - _fingerprintString(ctx, "true"); - } - - if (node->agg_filter != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "agg_filter"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->agg_filter, node, "agg_filter", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->agg_order != NULL && node->agg_order->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "agg_order"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->agg_order, node, "agg_order", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->agg_order) == 1 && linitial(node->agg_order) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->agg_star) { - _fingerprintString(ctx, "agg_star"); - _fingerprintString(ctx, "true"); - } - - if (node->agg_within_group) { - _fingerprintString(ctx, "agg_within_group"); - _fingerprintString(ctx, "true"); - } - - if (node->args != NULL && node->args->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "args"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->args, node, "args", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->args) == 1 && linitial(node->args) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->func_variadic) { - _fingerprintString(ctx, "func_variadic"); - _fingerprintString(ctx, "true"); - } - - if (true) { - _fingerprintString(ctx, "funcformat"); - _fingerprintString(ctx, _enumToStringCoercionForm(node->funcformat)); - } - - if (node->funcname != NULL && node->funcname->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "funcname"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->funcname, node, "funcname", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->funcname) == 1 && linitial(node->funcname) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - // Intentionally ignoring node->location for fingerprinting - - if (node->over != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "over"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintWindowDef(ctx, node->over, node, "over", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintA_Star(FingerprintContext *ctx, const A_Star *node, const void *parent, const char *field_name, unsigned int depth) -{ -} - -static void -_fingerprintA_Indices(FingerprintContext *ctx, const A_Indices *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->is_slice) { - _fingerprintString(ctx, "is_slice"); - _fingerprintString(ctx, "true"); - } - - if (node->lidx != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "lidx"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->lidx, node, "lidx", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->uidx != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "uidx"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->uidx, node, "uidx", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintA_Indirection(FingerprintContext *ctx, const A_Indirection *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->arg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "arg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->arg, node, "arg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->indirection != NULL && node->indirection->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "indirection"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->indirection, node, "indirection", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->indirection) == 1 && linitial(node->indirection) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintA_ArrayExpr(FingerprintContext *ctx, const A_ArrayExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->elements != NULL && node->elements->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "elements"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->elements, node, "elements", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->elements) == 1 && linitial(node->elements) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - // Intentionally ignoring node->location for fingerprinting - -} - -static void -_fingerprintResTarget(FingerprintContext *ctx, const ResTarget *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->indirection != NULL && node->indirection->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "indirection"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->indirection, node, "indirection", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->indirection) == 1 && linitial(node->indirection) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - // Intentionally ignoring node->location for fingerprinting - - if (node->name != NULL && (field_name == NULL || parent == NULL || !IsA(parent, SelectStmt) || strcmp(field_name, "targetList") != 0)) { - _fingerprintString(ctx, "name"); - _fingerprintString(ctx, node->name); - } - - if (node->val != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "val"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->val, node, "val", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintMultiAssignRef(FingerprintContext *ctx, const MultiAssignRef *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->colno != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->colno); - _fingerprintString(ctx, "colno"); - _fingerprintString(ctx, buffer); - } - - if (node->ncolumns != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->ncolumns); - _fingerprintString(ctx, "ncolumns"); - _fingerprintString(ctx, buffer); - } - - if (node->source != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "source"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->source, node, "source", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintTypeCast(FingerprintContext *ctx, const TypeCast *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->arg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "arg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->arg, node, "arg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->typeName != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "typeName"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintTypeName(ctx, node->typeName, node, "typeName", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintCollateClause(FingerprintContext *ctx, const CollateClause *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->arg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "arg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->arg, node, "arg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->collname != NULL && node->collname->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "collname"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->collname, node, "collname", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->collname) == 1 && linitial(node->collname) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - // Intentionally ignoring node->location for fingerprinting - -} - -static void -_fingerprintSortBy(FingerprintContext *ctx, const SortBy *node, const void *parent, const char *field_name, unsigned int depth) -{ - // Intentionally ignoring node->location for fingerprinting - - if (node->node != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "node"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->node, node, "node", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "sortby_dir"); - _fingerprintString(ctx, _enumToStringSortByDir(node->sortby_dir)); - } - - if (true) { - _fingerprintString(ctx, "sortby_nulls"); - _fingerprintString(ctx, _enumToStringSortByNulls(node->sortby_nulls)); - } - - if (node->useOp != NULL && node->useOp->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "useOp"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->useOp, node, "useOp", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->useOp) == 1 && linitial(node->useOp) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintWindowDef(FingerprintContext *ctx, const WindowDef *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->endOffset != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "endOffset"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->endOffset, node, "endOffset", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->frameOptions != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->frameOptions); - _fingerprintString(ctx, "frameOptions"); - _fingerprintString(ctx, buffer); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->name != NULL) { - _fingerprintString(ctx, "name"); - _fingerprintString(ctx, node->name); - } - - if (node->orderClause != NULL && node->orderClause->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "orderClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->orderClause, node, "orderClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->orderClause) == 1 && linitial(node->orderClause) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->partitionClause != NULL && node->partitionClause->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "partitionClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->partitionClause, node, "partitionClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->partitionClause) == 1 && linitial(node->partitionClause) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->refname != NULL) { - _fingerprintString(ctx, "refname"); - _fingerprintString(ctx, node->refname); - } - - if (node->startOffset != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "startOffset"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->startOffset, node, "startOffset", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintRangeSubselect(FingerprintContext *ctx, const RangeSubselect *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->alias != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "alias"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintAlias(ctx, node->alias, node, "alias", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->lateral) { - _fingerprintString(ctx, "lateral"); - _fingerprintString(ctx, "true"); - } - - if (node->subquery != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "subquery"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->subquery, node, "subquery", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintRangeFunction(FingerprintContext *ctx, const RangeFunction *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->alias != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "alias"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintAlias(ctx, node->alias, node, "alias", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->coldeflist != NULL && node->coldeflist->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "coldeflist"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->coldeflist, node, "coldeflist", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->coldeflist) == 1 && linitial(node->coldeflist) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->functions != NULL && node->functions->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "functions"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->functions, node, "functions", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->functions) == 1 && linitial(node->functions) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->is_rowsfrom) { - _fingerprintString(ctx, "is_rowsfrom"); - _fingerprintString(ctx, "true"); - } - - if (node->lateral) { - _fingerprintString(ctx, "lateral"); - _fingerprintString(ctx, "true"); - } - - if (node->ordinality) { - _fingerprintString(ctx, "ordinality"); - _fingerprintString(ctx, "true"); - } - -} - -static void -_fingerprintRangeTableSample(FingerprintContext *ctx, const RangeTableSample *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->args != NULL && node->args->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "args"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->args, node, "args", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->args) == 1 && linitial(node->args) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - // Intentionally ignoring node->location for fingerprinting - - if (node->method != NULL && node->method->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "method"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->method, node, "method", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->method) == 1 && linitial(node->method) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->relation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->relation, node, "relation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->repeatable != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "repeatable"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->repeatable, node, "repeatable", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintRangeTableFunc(FingerprintContext *ctx, const RangeTableFunc *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->alias != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "alias"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintAlias(ctx, node->alias, node, "alias", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->columns != NULL && node->columns->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "columns"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->columns, node, "columns", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->columns) == 1 && linitial(node->columns) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->docexpr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "docexpr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->docexpr, node, "docexpr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->lateral) { - _fingerprintString(ctx, "lateral"); - _fingerprintString(ctx, "true"); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->namespaces != NULL && node->namespaces->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "namespaces"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->namespaces, node, "namespaces", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->namespaces) == 1 && linitial(node->namespaces) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->rowexpr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "rowexpr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->rowexpr, node, "rowexpr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintRangeTableFuncCol(FingerprintContext *ctx, const RangeTableFuncCol *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->coldefexpr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "coldefexpr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->coldefexpr, node, "coldefexpr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->colexpr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "colexpr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->colexpr, node, "colexpr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->colname != NULL) { - _fingerprintString(ctx, "colname"); - _fingerprintString(ctx, node->colname); - } - - if (node->for_ordinality) { - _fingerprintString(ctx, "for_ordinality"); - _fingerprintString(ctx, "true"); - } - - if (node->is_not_null) { - _fingerprintString(ctx, "is_not_null"); - _fingerprintString(ctx, "true"); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->typeName != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "typeName"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintTypeName(ctx, node->typeName, node, "typeName", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintTypeName(FingerprintContext *ctx, const TypeName *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->arrayBounds != NULL && node->arrayBounds->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "arrayBounds"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->arrayBounds, node, "arrayBounds", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->arrayBounds) == 1 && linitial(node->arrayBounds) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - // Intentionally ignoring node->location for fingerprinting - - if (node->names != NULL && node->names->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "names"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->names, node, "names", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->names) == 1 && linitial(node->names) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->pct_type) { - _fingerprintString(ctx, "pct_type"); - _fingerprintString(ctx, "true"); - } - - if (node->setof) { - _fingerprintString(ctx, "setof"); - _fingerprintString(ctx, "true"); - } - - if (node->typeOid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->typeOid); - _fingerprintString(ctx, "typeOid"); - _fingerprintString(ctx, buffer); - } - - if (node->typemod != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->typemod); - _fingerprintString(ctx, "typemod"); - _fingerprintString(ctx, buffer); - } - - if (node->typmods != NULL && node->typmods->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "typmods"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->typmods, node, "typmods", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->typmods) == 1 && linitial(node->typmods) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintColumnDef(FingerprintContext *ctx, const ColumnDef *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->collClause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "collClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintCollateClause(ctx, node->collClause, node, "collClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->collOid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->collOid); - _fingerprintString(ctx, "collOid"); - _fingerprintString(ctx, buffer); - } - - if (node->colname != NULL) { - _fingerprintString(ctx, "colname"); - _fingerprintString(ctx, node->colname); - } - - if (node->compression != NULL) { - _fingerprintString(ctx, "compression"); - _fingerprintString(ctx, node->compression); - } - - if (node->constraints != NULL && node->constraints->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "constraints"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->constraints, node, "constraints", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->constraints) == 1 && linitial(node->constraints) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->cooked_default != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "cooked_default"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->cooked_default, node, "cooked_default", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->fdwoptions != NULL && node->fdwoptions->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "fdwoptions"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->fdwoptions, node, "fdwoptions", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->fdwoptions) == 1 && linitial(node->fdwoptions) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->generated != 0) { - char buffer[2] = {node->generated, '\0'}; - _fingerprintString(ctx, "generated"); - _fingerprintString(ctx, buffer); - } - - if (node->identity != 0) { - char buffer[2] = {node->identity, '\0'}; - _fingerprintString(ctx, "identity"); - _fingerprintString(ctx, buffer); - } - - if (node->identitySequence != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "identitySequence"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->identitySequence, node, "identitySequence", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->inhcount != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->inhcount); - _fingerprintString(ctx, "inhcount"); - _fingerprintString(ctx, buffer); - } - - if (node->is_from_type) { - _fingerprintString(ctx, "is_from_type"); - _fingerprintString(ctx, "true"); - } - - if (node->is_local) { - _fingerprintString(ctx, "is_local"); - _fingerprintString(ctx, "true"); - } - - if (node->is_not_null) { - _fingerprintString(ctx, "is_not_null"); - _fingerprintString(ctx, "true"); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->raw_default != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "raw_default"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->raw_default, node, "raw_default", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->storage != 0) { - char buffer[2] = {node->storage, '\0'}; - _fingerprintString(ctx, "storage"); - _fingerprintString(ctx, buffer); - } - - if (node->typeName != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "typeName"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintTypeName(ctx, node->typeName, node, "typeName", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintIndexElem(FingerprintContext *ctx, const IndexElem *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->collation != NULL && node->collation->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "collation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->collation, node, "collation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->collation) == 1 && linitial(node->collation) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->expr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "expr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->expr, node, "expr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->indexcolname != NULL) { - _fingerprintString(ctx, "indexcolname"); - _fingerprintString(ctx, node->indexcolname); - } - - if (node->name != NULL) { - _fingerprintString(ctx, "name"); - _fingerprintString(ctx, node->name); - } - - if (true) { - _fingerprintString(ctx, "nulls_ordering"); - _fingerprintString(ctx, _enumToStringSortByNulls(node->nulls_ordering)); - } - - if (node->opclass != NULL && node->opclass->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "opclass"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->opclass, node, "opclass", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->opclass) == 1 && linitial(node->opclass) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->opclassopts != NULL && node->opclassopts->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "opclassopts"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->opclassopts, node, "opclassopts", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->opclassopts) == 1 && linitial(node->opclassopts) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (true) { - _fingerprintString(ctx, "ordering"); - _fingerprintString(ctx, _enumToStringSortByDir(node->ordering)); - } - -} - -static void -_fingerprintStatsElem(FingerprintContext *ctx, const StatsElem *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->expr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "expr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->expr, node, "expr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->name != NULL) { - _fingerprintString(ctx, "name"); - _fingerprintString(ctx, node->name); - } - -} - -static void -_fingerprintConstraint(FingerprintContext *ctx, const Constraint *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->access_method != NULL) { - _fingerprintString(ctx, "access_method"); - _fingerprintString(ctx, node->access_method); - } - - if (node->conname != NULL) { - _fingerprintString(ctx, "conname"); - _fingerprintString(ctx, node->conname); - } - - if (true) { - _fingerprintString(ctx, "contype"); - _fingerprintString(ctx, _enumToStringConstrType(node->contype)); - } - - if (node->cooked_expr != NULL) { - _fingerprintString(ctx, "cooked_expr"); - _fingerprintString(ctx, node->cooked_expr); - } - - if (node->deferrable) { - _fingerprintString(ctx, "deferrable"); - _fingerprintString(ctx, "true"); - } - - if (node->exclusions != NULL && node->exclusions->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "exclusions"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->exclusions, node, "exclusions", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->exclusions) == 1 && linitial(node->exclusions) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->fk_attrs != NULL && node->fk_attrs->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "fk_attrs"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->fk_attrs, node, "fk_attrs", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->fk_attrs) == 1 && linitial(node->fk_attrs) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->fk_del_action != 0) { - char buffer[2] = {node->fk_del_action, '\0'}; - _fingerprintString(ctx, "fk_del_action"); - _fingerprintString(ctx, buffer); - } - - if (node->fk_del_set_cols != NULL && node->fk_del_set_cols->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "fk_del_set_cols"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->fk_del_set_cols, node, "fk_del_set_cols", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->fk_del_set_cols) == 1 && linitial(node->fk_del_set_cols) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->fk_matchtype != 0) { - char buffer[2] = {node->fk_matchtype, '\0'}; - _fingerprintString(ctx, "fk_matchtype"); - _fingerprintString(ctx, buffer); - } - - if (node->fk_upd_action != 0) { - char buffer[2] = {node->fk_upd_action, '\0'}; - _fingerprintString(ctx, "fk_upd_action"); - _fingerprintString(ctx, buffer); - } - - if (node->generated_when != 0) { - char buffer[2] = {node->generated_when, '\0'}; - _fingerprintString(ctx, "generated_when"); - _fingerprintString(ctx, buffer); - } - - if (node->including != NULL && node->including->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "including"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->including, node, "including", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->including) == 1 && linitial(node->including) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->indexname != NULL) { - _fingerprintString(ctx, "indexname"); - _fingerprintString(ctx, node->indexname); - } - - if (node->indexspace != NULL) { - _fingerprintString(ctx, "indexspace"); - _fingerprintString(ctx, node->indexspace); - } - - if (node->initdeferred) { - _fingerprintString(ctx, "initdeferred"); - _fingerprintString(ctx, "true"); - } - - if (node->initially_valid) { - _fingerprintString(ctx, "initially_valid"); - _fingerprintString(ctx, "true"); - } - - if (node->is_no_inherit) { - _fingerprintString(ctx, "is_no_inherit"); - _fingerprintString(ctx, "true"); - } - - if (node->keys != NULL && node->keys->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "keys"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->keys, node, "keys", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->keys) == 1 && linitial(node->keys) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - // Intentionally ignoring node->location for fingerprinting - - if (node->nulls_not_distinct) { - _fingerprintString(ctx, "nulls_not_distinct"); - _fingerprintString(ctx, "true"); - } - - if (node->old_conpfeqop != NULL && node->old_conpfeqop->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "old_conpfeqop"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->old_conpfeqop, node, "old_conpfeqop", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->old_conpfeqop) == 1 && linitial(node->old_conpfeqop) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->old_pktable_oid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->old_pktable_oid); - _fingerprintString(ctx, "old_pktable_oid"); - _fingerprintString(ctx, buffer); - } - - if (node->options != NULL && node->options->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "options"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->options, node, "options", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->options) == 1 && linitial(node->options) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->pk_attrs != NULL && node->pk_attrs->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "pk_attrs"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->pk_attrs, node, "pk_attrs", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->pk_attrs) == 1 && linitial(node->pk_attrs) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->pktable != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "pktable"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->pktable, node, "pktable", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->raw_expr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "raw_expr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->raw_expr, node, "raw_expr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->reset_default_tblspc) { - _fingerprintString(ctx, "reset_default_tblspc"); - _fingerprintString(ctx, "true"); - } - - if (node->skip_validation) { - _fingerprintString(ctx, "skip_validation"); - _fingerprintString(ctx, "true"); - } - - if (node->where_clause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "where_clause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->where_clause, node, "where_clause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintDefElem(FingerprintContext *ctx, const DefElem *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->arg != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "arg"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->arg, node, "arg", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "defaction"); - _fingerprintString(ctx, _enumToStringDefElemAction(node->defaction)); - } - - if (node->defname != NULL) { - _fingerprintString(ctx, "defname"); - _fingerprintString(ctx, node->defname); - } - - if (node->defnamespace != NULL) { - _fingerprintString(ctx, "defnamespace"); - _fingerprintString(ctx, node->defnamespace); - } - - // Intentionally ignoring node->location for fingerprinting - -} - -static void -_fingerprintRangeTblEntry(FingerprintContext *ctx, const RangeTblEntry *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->alias != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "alias"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintAlias(ctx, node->alias, node, "alias", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->checkAsUser != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->checkAsUser); - _fingerprintString(ctx, "checkAsUser"); - _fingerprintString(ctx, buffer); - } - - if (node->colcollations != NULL && node->colcollations->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "colcollations"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->colcollations, node, "colcollations", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->colcollations) == 1 && linitial(node->colcollations) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->coltypes != NULL && node->coltypes->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "coltypes"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->coltypes, node, "coltypes", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->coltypes) == 1 && linitial(node->coltypes) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->coltypmods != NULL && node->coltypmods->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "coltypmods"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->coltypmods, node, "coltypmods", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->coltypmods) == 1 && linitial(node->coltypmods) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->ctelevelsup != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->ctelevelsup); - _fingerprintString(ctx, "ctelevelsup"); - _fingerprintString(ctx, buffer); - } - - if (node->ctename != NULL) { - _fingerprintString(ctx, "ctename"); - _fingerprintString(ctx, node->ctename); - } - - if (node->enrname != NULL) { - _fingerprintString(ctx, "enrname"); - _fingerprintString(ctx, node->enrname); - } - - if (node->enrtuples != 0) { - char buffer[50]; - sprintf(buffer, "%f", node->enrtuples); - _fingerprintString(ctx, "enrtuples"); - _fingerprintString(ctx, buffer); - } - - if (node->eref != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "eref"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintAlias(ctx, node->eref, node, "eref", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - int x; - Bitmapset *bms = bms_copy(node->extraUpdatedCols); - - _fingerprintString(ctx, "extraUpdatedCols"); - - while ((x = bms_first_member(bms)) >= 0) { - char buffer[50]; - sprintf(buffer, "%d", x); - _fingerprintString(ctx, buffer); - } - - bms_free(bms); - } - - if (node->funcordinality) { - _fingerprintString(ctx, "funcordinality"); - _fingerprintString(ctx, "true"); - } - - if (node->functions != NULL && node->functions->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "functions"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->functions, node, "functions", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->functions) == 1 && linitial(node->functions) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->inFromCl) { - _fingerprintString(ctx, "inFromCl"); - _fingerprintString(ctx, "true"); - } - - if (node->inh) { - _fingerprintString(ctx, "inh"); - _fingerprintString(ctx, "true"); - } - - if (true) { - int x; - Bitmapset *bms = bms_copy(node->insertedCols); - - _fingerprintString(ctx, "insertedCols"); - - while ((x = bms_first_member(bms)) >= 0) { - char buffer[50]; - sprintf(buffer, "%d", x); - _fingerprintString(ctx, buffer); - } - - bms_free(bms); - } - - if (node->join_using_alias != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "join_using_alias"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintAlias(ctx, node->join_using_alias, node, "join_using_alias", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->joinaliasvars != NULL && node->joinaliasvars->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "joinaliasvars"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->joinaliasvars, node, "joinaliasvars", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->joinaliasvars) == 1 && linitial(node->joinaliasvars) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->joinleftcols != NULL && node->joinleftcols->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "joinleftcols"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->joinleftcols, node, "joinleftcols", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->joinleftcols) == 1 && linitial(node->joinleftcols) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->joinmergedcols != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->joinmergedcols); - _fingerprintString(ctx, "joinmergedcols"); - _fingerprintString(ctx, buffer); - } - - if (node->joinrightcols != NULL && node->joinrightcols->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "joinrightcols"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->joinrightcols, node, "joinrightcols", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->joinrightcols) == 1 && linitial(node->joinrightcols) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (true) { - _fingerprintString(ctx, "jointype"); - _fingerprintString(ctx, _enumToStringJoinType(node->jointype)); - } - - if (node->lateral) { - _fingerprintString(ctx, "lateral"); - _fingerprintString(ctx, "true"); - } - - if (node->relid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->relid); - _fingerprintString(ctx, "relid"); - _fingerprintString(ctx, buffer); - } - - if (node->relkind != 0) { - char buffer[2] = {node->relkind, '\0'}; - _fingerprintString(ctx, "relkind"); - _fingerprintString(ctx, buffer); - } - - if (node->rellockmode != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->rellockmode); - _fingerprintString(ctx, "rellockmode"); - _fingerprintString(ctx, buffer); - } - - if (node->requiredPerms != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->requiredPerms); - _fingerprintString(ctx, "requiredPerms"); - _fingerprintString(ctx, buffer); - } - - if (true) { - _fingerprintString(ctx, "rtekind"); - _fingerprintString(ctx, _enumToStringRTEKind(node->rtekind)); - } - - if (node->securityQuals != NULL && node->securityQuals->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "securityQuals"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->securityQuals, node, "securityQuals", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->securityQuals) == 1 && linitial(node->securityQuals) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->security_barrier) { - _fingerprintString(ctx, "security_barrier"); - _fingerprintString(ctx, "true"); - } - - if (true) { - int x; - Bitmapset *bms = bms_copy(node->selectedCols); - - _fingerprintString(ctx, "selectedCols"); - - while ((x = bms_first_member(bms)) >= 0) { - char buffer[50]; - sprintf(buffer, "%d", x); - _fingerprintString(ctx, buffer); - } - - bms_free(bms); - } - - if (node->self_reference) { - _fingerprintString(ctx, "self_reference"); - _fingerprintString(ctx, "true"); - } - - if (node->subquery != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "subquery"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintQuery(ctx, node->subquery, node, "subquery", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->tablefunc != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "tablefunc"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintTableFunc(ctx, node->tablefunc, node, "tablefunc", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->tablesample != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "tablesample"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintTableSampleClause(ctx, node->tablesample, node, "tablesample", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - int x; - Bitmapset *bms = bms_copy(node->updatedCols); - - _fingerprintString(ctx, "updatedCols"); - - while ((x = bms_first_member(bms)) >= 0) { - char buffer[50]; - sprintf(buffer, "%d", x); - _fingerprintString(ctx, buffer); - } - - bms_free(bms); - } - - if (node->values_lists != NULL && node->values_lists->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "values_lists"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->values_lists, node, "values_lists", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->values_lists) == 1 && linitial(node->values_lists) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintRangeTblFunction(FingerprintContext *ctx, const RangeTblFunction *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->funccolcollations != NULL && node->funccolcollations->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "funccolcollations"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->funccolcollations, node, "funccolcollations", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->funccolcollations) == 1 && linitial(node->funccolcollations) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->funccolcount != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->funccolcount); - _fingerprintString(ctx, "funccolcount"); - _fingerprintString(ctx, buffer); - } - - if (node->funccolnames != NULL && node->funccolnames->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "funccolnames"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->funccolnames, node, "funccolnames", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->funccolnames) == 1 && linitial(node->funccolnames) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->funccoltypes != NULL && node->funccoltypes->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "funccoltypes"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->funccoltypes, node, "funccoltypes", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->funccoltypes) == 1 && linitial(node->funccoltypes) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->funccoltypmods != NULL && node->funccoltypmods->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "funccoltypmods"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->funccoltypmods, node, "funccoltypmods", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->funccoltypmods) == 1 && linitial(node->funccoltypmods) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->funcexpr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "funcexpr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->funcexpr, node, "funcexpr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - int x; - Bitmapset *bms = bms_copy(node->funcparams); - - _fingerprintString(ctx, "funcparams"); - - while ((x = bms_first_member(bms)) >= 0) { - char buffer[50]; - sprintf(buffer, "%d", x); - _fingerprintString(ctx, buffer); - } - - bms_free(bms); - } - -} - -static void -_fingerprintTableSampleClause(FingerprintContext *ctx, const TableSampleClause *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->args != NULL && node->args->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "args"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->args, node, "args", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->args) == 1 && linitial(node->args) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->repeatable != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "repeatable"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->repeatable, node, "repeatable", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->tsmhandler != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->tsmhandler); - _fingerprintString(ctx, "tsmhandler"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintWithCheckOption(FingerprintContext *ctx, const WithCheckOption *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->cascaded) { - _fingerprintString(ctx, "cascaded"); - _fingerprintString(ctx, "true"); - } - - if (true) { - _fingerprintString(ctx, "kind"); - _fingerprintString(ctx, _enumToStringWCOKind(node->kind)); - } - - if (node->polname != NULL) { - _fingerprintString(ctx, "polname"); - _fingerprintString(ctx, node->polname); - } - - if (node->qual != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "qual"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->qual, node, "qual", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->relname != NULL) { - _fingerprintString(ctx, "relname"); - _fingerprintString(ctx, node->relname); - } - -} - -static void -_fingerprintSortGroupClause(FingerprintContext *ctx, const SortGroupClause *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->eqop != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->eqop); - _fingerprintString(ctx, "eqop"); - _fingerprintString(ctx, buffer); - } - - if (node->hashable) { - _fingerprintString(ctx, "hashable"); - _fingerprintString(ctx, "true"); - } - - if (node->nulls_first) { - _fingerprintString(ctx, "nulls_first"); - _fingerprintString(ctx, "true"); - } - - if (node->sortop != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->sortop); - _fingerprintString(ctx, "sortop"); - _fingerprintString(ctx, buffer); - } - - if (node->tleSortGroupRef != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->tleSortGroupRef); - _fingerprintString(ctx, "tleSortGroupRef"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintGroupingSet(FingerprintContext *ctx, const GroupingSet *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->content != NULL && node->content->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "content"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->content, node, "content", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->content) == 1 && linitial(node->content) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (true) { - _fingerprintString(ctx, "kind"); - _fingerprintString(ctx, _enumToStringGroupingSetKind(node->kind)); - } - - // Intentionally ignoring node->location for fingerprinting - -} - -static void -_fingerprintWindowClause(FingerprintContext *ctx, const WindowClause *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->copiedOrder) { - _fingerprintString(ctx, "copiedOrder"); - _fingerprintString(ctx, "true"); - } - - if (node->endInRangeFunc != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->endInRangeFunc); - _fingerprintString(ctx, "endInRangeFunc"); - _fingerprintString(ctx, buffer); - } - - if (node->endOffset != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "endOffset"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->endOffset, node, "endOffset", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->frameOptions != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->frameOptions); - _fingerprintString(ctx, "frameOptions"); - _fingerprintString(ctx, buffer); - } - - if (node->inRangeAsc) { - _fingerprintString(ctx, "inRangeAsc"); - _fingerprintString(ctx, "true"); - } - - if (node->inRangeColl != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->inRangeColl); - _fingerprintString(ctx, "inRangeColl"); - _fingerprintString(ctx, buffer); - } - - if (node->inRangeNullsFirst) { - _fingerprintString(ctx, "inRangeNullsFirst"); - _fingerprintString(ctx, "true"); - } - - if (node->name != NULL) { - _fingerprintString(ctx, "name"); - _fingerprintString(ctx, node->name); - } - - if (node->orderClause != NULL && node->orderClause->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "orderClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->orderClause, node, "orderClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->orderClause) == 1 && linitial(node->orderClause) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->partitionClause != NULL && node->partitionClause->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "partitionClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->partitionClause, node, "partitionClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->partitionClause) == 1 && linitial(node->partitionClause) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->refname != NULL) { - _fingerprintString(ctx, "refname"); - _fingerprintString(ctx, node->refname); - } - - if (node->runCondition != NULL && node->runCondition->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "runCondition"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->runCondition, node, "runCondition", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->runCondition) == 1 && linitial(node->runCondition) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->startInRangeFunc != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->startInRangeFunc); - _fingerprintString(ctx, "startInRangeFunc"); - _fingerprintString(ctx, buffer); - } - - if (node->startOffset != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "startOffset"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->startOffset, node, "startOffset", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->winref != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->winref); - _fingerprintString(ctx, "winref"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintObjectWithArgs(FingerprintContext *ctx, const ObjectWithArgs *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->args_unspecified) { - _fingerprintString(ctx, "args_unspecified"); - _fingerprintString(ctx, "true"); - } - - if (node->objargs != NULL && node->objargs->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "objargs"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->objargs, node, "objargs", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->objargs) == 1 && linitial(node->objargs) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->objfuncargs != NULL && node->objfuncargs->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "objfuncargs"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->objfuncargs, node, "objfuncargs", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->objfuncargs) == 1 && linitial(node->objfuncargs) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->objname != NULL && node->objname->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "objname"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->objname, node, "objname", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->objname) == 1 && linitial(node->objname) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintAccessPriv(FingerprintContext *ctx, const AccessPriv *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->cols != NULL && node->cols->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "cols"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->cols, node, "cols", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->cols) == 1 && linitial(node->cols) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->priv_name != NULL) { - _fingerprintString(ctx, "priv_name"); - _fingerprintString(ctx, node->priv_name); - } - -} - -static void -_fingerprintCreateOpClassItem(FingerprintContext *ctx, const CreateOpClassItem *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->class_args != NULL && node->class_args->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "class_args"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->class_args, node, "class_args", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->class_args) == 1 && linitial(node->class_args) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->itemtype != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->itemtype); - _fingerprintString(ctx, "itemtype"); - _fingerprintString(ctx, buffer); - } - - if (node->name != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "name"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintObjectWithArgs(ctx, node->name, node, "name", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->number != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->number); - _fingerprintString(ctx, "number"); - _fingerprintString(ctx, buffer); - } - - if (node->order_family != NULL && node->order_family->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "order_family"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->order_family, node, "order_family", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->order_family) == 1 && linitial(node->order_family) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->storedtype != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "storedtype"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintTypeName(ctx, node->storedtype, node, "storedtype", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintTableLikeClause(FingerprintContext *ctx, const TableLikeClause *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->options != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->options); - _fingerprintString(ctx, "options"); - _fingerprintString(ctx, buffer); - } - - if (node->relation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->relation, node, "relation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->relationOid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->relationOid); - _fingerprintString(ctx, "relationOid"); - _fingerprintString(ctx, buffer); - } - -} - -static void -_fingerprintFunctionParameter(FingerprintContext *ctx, const FunctionParameter *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->argType != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "argType"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintTypeName(ctx, node->argType, node, "argType", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->defexpr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "defexpr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->defexpr, node, "defexpr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "mode"); - _fingerprintString(ctx, _enumToStringFunctionParameterMode(node->mode)); - } - - // Intentionally ignoring node->name for fingerprinting - -} - -static void -_fingerprintLockingClause(FingerprintContext *ctx, const LockingClause *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->lockedRels != NULL && node->lockedRels->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "lockedRels"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->lockedRels, node, "lockedRels", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->lockedRels) == 1 && linitial(node->lockedRels) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (true) { - _fingerprintString(ctx, "strength"); - _fingerprintString(ctx, _enumToStringLockClauseStrength(node->strength)); - } - - if (true) { - _fingerprintString(ctx, "waitPolicy"); - _fingerprintString(ctx, _enumToStringLockWaitPolicy(node->waitPolicy)); - } - -} - -static void -_fingerprintRowMarkClause(FingerprintContext *ctx, const RowMarkClause *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->pushedDown) { - _fingerprintString(ctx, "pushedDown"); - _fingerprintString(ctx, "true"); - } - - if (node->rti != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->rti); - _fingerprintString(ctx, "rti"); - _fingerprintString(ctx, buffer); - } - - if (true) { - _fingerprintString(ctx, "strength"); - _fingerprintString(ctx, _enumToStringLockClauseStrength(node->strength)); - } - - if (true) { - _fingerprintString(ctx, "waitPolicy"); - _fingerprintString(ctx, _enumToStringLockWaitPolicy(node->waitPolicy)); - } - -} - -static void -_fingerprintXmlSerialize(FingerprintContext *ctx, const XmlSerialize *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->expr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "expr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->expr, node, "expr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->typeName != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "typeName"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintTypeName(ctx, node->typeName, node, "typeName", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (true) { - _fingerprintString(ctx, "xmloption"); - _fingerprintString(ctx, _enumToStringXmlOptionType(node->xmloption)); - } - -} - -static void -_fingerprintWithClause(FingerprintContext *ctx, const WithClause *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->ctes != NULL && node->ctes->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "ctes"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->ctes, node, "ctes", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->ctes) == 1 && linitial(node->ctes) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - // Intentionally ignoring node->location for fingerprinting - - if (node->recursive) { - _fingerprintString(ctx, "recursive"); - _fingerprintString(ctx, "true"); - } - -} - -static void -_fingerprintInferClause(FingerprintContext *ctx, const InferClause *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->conname != NULL) { - _fingerprintString(ctx, "conname"); - _fingerprintString(ctx, node->conname); - } - - if (node->indexElems != NULL && node->indexElems->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "indexElems"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->indexElems, node, "indexElems", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->indexElems) == 1 && linitial(node->indexElems) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - // Intentionally ignoring node->location for fingerprinting - - if (node->whereClause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "whereClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->whereClause, node, "whereClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintOnConflictClause(FingerprintContext *ctx, const OnConflictClause *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (true) { - _fingerprintString(ctx, "action"); - _fingerprintString(ctx, _enumToStringOnConflictAction(node->action)); - } - - if (node->infer != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "infer"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintInferClause(ctx, node->infer, node, "infer", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->targetList != NULL && node->targetList->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "targetList"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->targetList, node, "targetList", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->targetList) == 1 && linitial(node->targetList) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->whereClause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "whereClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->whereClause, node, "whereClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintCTESearchClause(FingerprintContext *ctx, const CTESearchClause *node, const void *parent, const char *field_name, unsigned int depth) -{ - // Intentionally ignoring node->location for fingerprinting - - if (node->search_breadth_first) { - _fingerprintString(ctx, "search_breadth_first"); - _fingerprintString(ctx, "true"); - } - - if (node->search_col_list != NULL && node->search_col_list->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "search_col_list"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->search_col_list, node, "search_col_list", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->search_col_list) == 1 && linitial(node->search_col_list) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->search_seq_column != NULL) { - _fingerprintString(ctx, "search_seq_column"); - _fingerprintString(ctx, node->search_seq_column); - } - -} - -static void -_fingerprintCTECycleClause(FingerprintContext *ctx, const CTECycleClause *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->cycle_col_list != NULL && node->cycle_col_list->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "cycle_col_list"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->cycle_col_list, node, "cycle_col_list", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->cycle_col_list) == 1 && linitial(node->cycle_col_list) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->cycle_mark_collation != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->cycle_mark_collation); - _fingerprintString(ctx, "cycle_mark_collation"); - _fingerprintString(ctx, buffer); - } - - if (node->cycle_mark_column != NULL) { - _fingerprintString(ctx, "cycle_mark_column"); - _fingerprintString(ctx, node->cycle_mark_column); - } - - if (node->cycle_mark_default != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "cycle_mark_default"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->cycle_mark_default, node, "cycle_mark_default", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->cycle_mark_neop != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->cycle_mark_neop); - _fingerprintString(ctx, "cycle_mark_neop"); - _fingerprintString(ctx, buffer); - } - - if (node->cycle_mark_type != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->cycle_mark_type); - _fingerprintString(ctx, "cycle_mark_type"); - _fingerprintString(ctx, buffer); - } - - if (node->cycle_mark_typmod != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->cycle_mark_typmod); - _fingerprintString(ctx, "cycle_mark_typmod"); - _fingerprintString(ctx, buffer); - } - - if (node->cycle_mark_value != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "cycle_mark_value"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->cycle_mark_value, node, "cycle_mark_value", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->cycle_path_column != NULL) { - _fingerprintString(ctx, "cycle_path_column"); - _fingerprintString(ctx, node->cycle_path_column); - } - - // Intentionally ignoring node->location for fingerprinting - -} - -static void -_fingerprintCommonTableExpr(FingerprintContext *ctx, const CommonTableExpr *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->aliascolnames != NULL && node->aliascolnames->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "aliascolnames"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->aliascolnames, node, "aliascolnames", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->aliascolnames) == 1 && linitial(node->aliascolnames) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->ctecolcollations != NULL && node->ctecolcollations->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "ctecolcollations"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->ctecolcollations, node, "ctecolcollations", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->ctecolcollations) == 1 && linitial(node->ctecolcollations) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->ctecolnames != NULL && node->ctecolnames->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "ctecolnames"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->ctecolnames, node, "ctecolnames", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->ctecolnames) == 1 && linitial(node->ctecolnames) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->ctecoltypes != NULL && node->ctecoltypes->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "ctecoltypes"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->ctecoltypes, node, "ctecoltypes", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->ctecoltypes) == 1 && linitial(node->ctecoltypes) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->ctecoltypmods != NULL && node->ctecoltypmods->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "ctecoltypmods"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->ctecoltypmods, node, "ctecoltypmods", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->ctecoltypmods) == 1 && linitial(node->ctecoltypmods) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (true) { - _fingerprintString(ctx, "ctematerialized"); - _fingerprintString(ctx, _enumToStringCTEMaterialize(node->ctematerialized)); - } - - if (node->ctename != NULL) { - _fingerprintString(ctx, "ctename"); - _fingerprintString(ctx, node->ctename); - } - - if (node->ctequery != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "ctequery"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->ctequery, node, "ctequery", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->cterecursive) { - _fingerprintString(ctx, "cterecursive"); - _fingerprintString(ctx, "true"); - } - - if (node->cterefcount != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->cterefcount); - _fingerprintString(ctx, "cterefcount"); - _fingerprintString(ctx, buffer); - } - - if (node->cycle_clause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "cycle_clause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintCTECycleClause(ctx, node->cycle_clause, node, "cycle_clause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->search_clause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "search_clause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintCTESearchClause(ctx, node->search_clause, node, "search_clause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintMergeWhenClause(FingerprintContext *ctx, const MergeWhenClause *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (true) { - _fingerprintString(ctx, "commandType"); - _fingerprintString(ctx, _enumToStringCmdType(node->commandType)); - } - - if (node->condition != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "condition"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->condition, node, "condition", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->matched) { - _fingerprintString(ctx, "matched"); - _fingerprintString(ctx, "true"); - } - - if (true) { - _fingerprintString(ctx, "override"); - _fingerprintString(ctx, _enumToStringOverridingKind(node->override)); - } - - if (node->targetList != NULL && node->targetList->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "targetList"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->targetList, node, "targetList", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->targetList) == 1 && linitial(node->targetList) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->values != NULL && node->values->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "values"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->values, node, "values", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->values) == 1 && linitial(node->values) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintRoleSpec(FingerprintContext *ctx, const RoleSpec *node, const void *parent, const char *field_name, unsigned int depth) -{ - // Intentionally ignoring node->location for fingerprinting - - if (node->rolename != NULL) { - _fingerprintString(ctx, "rolename"); - _fingerprintString(ctx, node->rolename); - } - - if (true) { - _fingerprintString(ctx, "roletype"); - _fingerprintString(ctx, _enumToStringRoleSpecType(node->roletype)); - } - -} - -static void -_fingerprintTriggerTransition(FingerprintContext *ctx, const TriggerTransition *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->isNew) { - _fingerprintString(ctx, "isNew"); - _fingerprintString(ctx, "true"); - } - - if (node->isTable) { - _fingerprintString(ctx, "isTable"); - _fingerprintString(ctx, "true"); - } - - if (node->name != NULL) { - _fingerprintString(ctx, "name"); - _fingerprintString(ctx, node->name); - } - -} - -static void -_fingerprintPartitionElem(FingerprintContext *ctx, const PartitionElem *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->collation != NULL && node->collation->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "collation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->collation, node, "collation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->collation) == 1 && linitial(node->collation) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->expr != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "expr"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->expr, node, "expr", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->name != NULL) { - _fingerprintString(ctx, "name"); - _fingerprintString(ctx, node->name); - } - - if (node->opclass != NULL && node->opclass->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "opclass"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->opclass, node, "opclass", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->opclass) == 1 && linitial(node->opclass) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintPartitionSpec(FingerprintContext *ctx, const PartitionSpec *node, const void *parent, const char *field_name, unsigned int depth) -{ - // Intentionally ignoring node->location for fingerprinting - - if (node->partParams != NULL && node->partParams->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "partParams"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->partParams, node, "partParams", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->partParams) == 1 && linitial(node->partParams) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->strategy != NULL) { - _fingerprintString(ctx, "strategy"); - _fingerprintString(ctx, node->strategy); - } - -} - -static void -_fingerprintPartitionBoundSpec(FingerprintContext *ctx, const PartitionBoundSpec *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->is_default) { - _fingerprintString(ctx, "is_default"); - _fingerprintString(ctx, "true"); - } - - if (node->listdatums != NULL && node->listdatums->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "listdatums"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->listdatums, node, "listdatums", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->listdatums) == 1 && linitial(node->listdatums) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - // Intentionally ignoring node->location for fingerprinting - - if (node->lowerdatums != NULL && node->lowerdatums->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "lowerdatums"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->lowerdatums, node, "lowerdatums", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->lowerdatums) == 1 && linitial(node->lowerdatums) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->modulus != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->modulus); - _fingerprintString(ctx, "modulus"); - _fingerprintString(ctx, buffer); - } - - if (node->remainder != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->remainder); - _fingerprintString(ctx, "remainder"); - _fingerprintString(ctx, buffer); - } - - if (node->strategy != 0) { - char buffer[2] = {node->strategy, '\0'}; - _fingerprintString(ctx, "strategy"); - _fingerprintString(ctx, buffer); - } - - if (node->upperdatums != NULL && node->upperdatums->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "upperdatums"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->upperdatums, node, "upperdatums", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->upperdatums) == 1 && linitial(node->upperdatums) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintPartitionRangeDatum(FingerprintContext *ctx, const PartitionRangeDatum *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (true) { - _fingerprintString(ctx, "kind"); - _fingerprintString(ctx, _enumToStringPartitionRangeDatumKind(node->kind)); - } - - // Intentionally ignoring node->location for fingerprinting - - if (node->value != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "value"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->value, node, "value", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintPartitionCmd(FingerprintContext *ctx, const PartitionCmd *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->bound != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "bound"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintPartitionBoundSpec(ctx, node->bound, node, "bound", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->concurrent) { - _fingerprintString(ctx, "concurrent"); - _fingerprintString(ctx, "true"); - } - - if (node->name != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "name"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->name, node, "name", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintVacuumRelation(FingerprintContext *ctx, const VacuumRelation *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->oid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->oid); - _fingerprintString(ctx, "oid"); - _fingerprintString(ctx, buffer); - } - - if (node->relation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->relation, node, "relation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->va_cols != NULL && node->va_cols->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "va_cols"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->va_cols, node, "va_cols", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->va_cols) == 1 && linitial(node->va_cols) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } -} - -static void -_fingerprintPublicationObjSpec(FingerprintContext *ctx, const PublicationObjSpec *node, const void *parent, const char *field_name, unsigned int depth) -{ - // Intentionally ignoring node->location for fingerprinting - - if (node->name != NULL) { - _fingerprintString(ctx, "name"); - _fingerprintString(ctx, node->name); - } - - if (true) { - _fingerprintString(ctx, "pubobjtype"); - _fingerprintString(ctx, _enumToStringPublicationObjSpecType(node->pubobjtype)); - } - - if (node->pubtable != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "pubtable"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintPublicationTable(ctx, node->pubtable, node, "pubtable", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintPublicationTable(FingerprintContext *ctx, const PublicationTable *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->columns != NULL && node->columns->length > 0) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "columns"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->columns, node, "columns", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state) && !(list_length(node->columns) == 1 && linitial(node->columns) == NIL)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - if (node->relation != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "relation"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintRangeVar(ctx, node->relation, node, "relation", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - - if (node->whereClause != NULL) { - XXH3_state_t* prev = XXH3_createState(); - XXH64_hash_t hash; - - XXH3_copyState(prev, ctx->xxh_state); - _fingerprintString(ctx, "whereClause"); - - hash = XXH3_64bits_digest(ctx->xxh_state); - _fingerprintNode(ctx, node->whereClause, node, "whereClause", depth + 1); - if (hash == XXH3_64bits_digest(ctx->xxh_state)) { - XXH3_copyState(ctx->xxh_state, prev); - if (ctx->write_tokens) - dlist_delete(dlist_tail_node(&ctx->tokens)); - } - XXH3_freeState(prev); - } - -} - -static void -_fingerprintInlineCodeBlock(FingerprintContext *ctx, const InlineCodeBlock *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->atomic) { - _fingerprintString(ctx, "atomic"); - _fingerprintString(ctx, "true"); - } - - if (node->langIsTrusted) { - _fingerprintString(ctx, "langIsTrusted"); - _fingerprintString(ctx, "true"); - } - - if (node->langOid != 0) { - char buffer[50]; - sprintf(buffer, "%d", node->langOid); - _fingerprintString(ctx, "langOid"); - _fingerprintString(ctx, buffer); - } - - if (node->source_text != NULL) { - _fingerprintString(ctx, "source_text"); - _fingerprintString(ctx, node->source_text); - } - -} - -static void -_fingerprintCallContext(FingerprintContext *ctx, const CallContext *node, const void *parent, const char *field_name, unsigned int depth) -{ - if (node->atomic) { - _fingerprintString(ctx, "atomic"); - _fingerprintString(ctx, "true"); - } - -} - diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_json_helper.c b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_json_helper.c deleted file mode 100644 index 1a03e2d20..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_json_helper.c +++ /dev/null @@ -1,61 +0,0 @@ -#include "lib/stringinfo.h" - -#define booltostr(x) ((x) ? "true" : "false") - -static void -removeTrailingDelimiter(StringInfo str) -{ - if (str->len >= 1 && str->data[str->len - 1] == ',') { - str->len -= 1; - str->data[str->len] = '\0'; - } -} - -static void -_outToken(StringInfo buf, const char *str) -{ - if (str == NULL) - { - appendStringInfoString(buf, "null"); - return; - } - - // copied directly from https://github.com/postgres/postgres/blob/master/src/backend/utils/adt/json.c#L2428 - const char *p; - - appendStringInfoCharMacro(buf, '"'); - for (p = str; *p; p++) - { - switch (*p) - { - case '\b': - appendStringInfoString(buf, "\\b"); - break; - case '\f': - appendStringInfoString(buf, "\\f"); - break; - case '\n': - appendStringInfoString(buf, "\\n"); - break; - case '\r': - appendStringInfoString(buf, "\\r"); - break; - case '\t': - appendStringInfoString(buf, "\\t"); - break; - case '"': - appendStringInfoString(buf, "\\\""); - break; - case '\\': - appendStringInfoString(buf, "\\\\"); - break; - default: - if ((unsigned char) *p < ' ' || *p == '<' || *p == '>') - appendStringInfo(buf, "\\u%04x", (int) *p); - else - appendStringInfoCharMacro(buf, *p); - break; - } - } - appendStringInfoCharMacro(buf, '"'); -} diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_outfuncs_conds.c b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_outfuncs_conds.c deleted file mode 100644 index a0d564994..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_outfuncs_conds.c +++ /dev/null @@ -1,716 +0,0 @@ -// This file is autogenerated by ./scripts/generate_protobuf_and_funcs.rb - -case T_Integer: - OUT_NODE(Integer, Integer, integer, INTEGER, Integer, integer); - break; -case T_Boolean: - OUT_NODE(Boolean, Boolean, boolean, BOOLEAN, Boolean, boolean); - break; -case T_Float: - OUT_NODE(Float, Float, float, FLOAT, Float, float_); - break; -case T_String: - OUT_NODE(String, String, string, STRING, String, string); - break; -case T_BitString: - OUT_NODE(BitString, BitString, bit_string, BIT_STRING, BitString, bit_string); - break; -case T_List: - OUT_NODE(List, List, list, LIST, List, list); - break; -case T_IntList: - OUT_NODE(IntList, IntList, int_list, INT_LIST, List, int_list); - break; -case T_OidList: - OUT_NODE(OidList, OidList, oid_list, OID_LIST, List, oid_list); - break; -case T_A_Const: - OUT_NODE(A_Const, AConst, a__const, A_CONST, A_Const, a_const); - break; -case T_Alias: - OUT_NODE(Alias, Alias, alias, ALIAS, Alias, alias); - break; -case T_RangeVar: - OUT_NODE(RangeVar, RangeVar, range_var, RANGE_VAR, RangeVar, range_var); - break; -case T_TableFunc: - OUT_NODE(TableFunc, TableFunc, table_func, TABLE_FUNC, TableFunc, table_func); - break; -case T_Var: - OUT_NODE(Var, Var, var, VAR, Var, var); - break; -case T_Param: - OUT_NODE(Param, Param, param, PARAM, Param, param); - break; -case T_Aggref: - OUT_NODE(Aggref, Aggref, aggref, AGGREF, Aggref, aggref); - break; -case T_GroupingFunc: - OUT_NODE(GroupingFunc, GroupingFunc, grouping_func, GROUPING_FUNC, GroupingFunc, grouping_func); - break; -case T_WindowFunc: - OUT_NODE(WindowFunc, WindowFunc, window_func, WINDOW_FUNC, WindowFunc, window_func); - break; -case T_SubscriptingRef: - OUT_NODE(SubscriptingRef, SubscriptingRef, subscripting_ref, SUBSCRIPTING_REF, SubscriptingRef, subscripting_ref); - break; -case T_FuncExpr: - OUT_NODE(FuncExpr, FuncExpr, func_expr, FUNC_EXPR, FuncExpr, func_expr); - break; -case T_NamedArgExpr: - OUT_NODE(NamedArgExpr, NamedArgExpr, named_arg_expr, NAMED_ARG_EXPR, NamedArgExpr, named_arg_expr); - break; -case T_OpExpr: - OUT_NODE(OpExpr, OpExpr, op_expr, OP_EXPR, OpExpr, op_expr); - break; -case T_DistinctExpr: - OUT_NODE(DistinctExpr, DistinctExpr, distinct_expr, DISTINCT_EXPR, DistinctExpr, distinct_expr); - break; -case T_NullIfExpr: - OUT_NODE(NullIfExpr, NullIfExpr, null_if_expr, NULL_IF_EXPR, NullIfExpr, null_if_expr); - break; -case T_ScalarArrayOpExpr: - OUT_NODE(ScalarArrayOpExpr, ScalarArrayOpExpr, scalar_array_op_expr, SCALAR_ARRAY_OP_EXPR, ScalarArrayOpExpr, scalar_array_op_expr); - break; -case T_BoolExpr: - OUT_NODE(BoolExpr, BoolExpr, bool_expr, BOOL_EXPR, BoolExpr, bool_expr); - break; -case T_SubLink: - OUT_NODE(SubLink, SubLink, sub_link, SUB_LINK, SubLink, sub_link); - break; -case T_SubPlan: - OUT_NODE(SubPlan, SubPlan, sub_plan, SUB_PLAN, SubPlan, sub_plan); - break; -case T_AlternativeSubPlan: - OUT_NODE(AlternativeSubPlan, AlternativeSubPlan, alternative_sub_plan, ALTERNATIVE_SUB_PLAN, AlternativeSubPlan, alternative_sub_plan); - break; -case T_FieldSelect: - OUT_NODE(FieldSelect, FieldSelect, field_select, FIELD_SELECT, FieldSelect, field_select); - break; -case T_FieldStore: - OUT_NODE(FieldStore, FieldStore, field_store, FIELD_STORE, FieldStore, field_store); - break; -case T_RelabelType: - OUT_NODE(RelabelType, RelabelType, relabel_type, RELABEL_TYPE, RelabelType, relabel_type); - break; -case T_CoerceViaIO: - OUT_NODE(CoerceViaIO, CoerceViaIO, coerce_via_io, COERCE_VIA_IO, CoerceViaIO, coerce_via_io); - break; -case T_ArrayCoerceExpr: - OUT_NODE(ArrayCoerceExpr, ArrayCoerceExpr, array_coerce_expr, ARRAY_COERCE_EXPR, ArrayCoerceExpr, array_coerce_expr); - break; -case T_ConvertRowtypeExpr: - OUT_NODE(ConvertRowtypeExpr, ConvertRowtypeExpr, convert_rowtype_expr, CONVERT_ROWTYPE_EXPR, ConvertRowtypeExpr, convert_rowtype_expr); - break; -case T_CollateExpr: - OUT_NODE(CollateExpr, CollateExpr, collate_expr, COLLATE_EXPR, CollateExpr, collate_expr); - break; -case T_CaseExpr: - OUT_NODE(CaseExpr, CaseExpr, case_expr, CASE_EXPR, CaseExpr, case_expr); - break; -case T_CaseWhen: - OUT_NODE(CaseWhen, CaseWhen, case_when, CASE_WHEN, CaseWhen, case_when); - break; -case T_CaseTestExpr: - OUT_NODE(CaseTestExpr, CaseTestExpr, case_test_expr, CASE_TEST_EXPR, CaseTestExpr, case_test_expr); - break; -case T_ArrayExpr: - OUT_NODE(ArrayExpr, ArrayExpr, array_expr, ARRAY_EXPR, ArrayExpr, array_expr); - break; -case T_RowExpr: - OUT_NODE(RowExpr, RowExpr, row_expr, ROW_EXPR, RowExpr, row_expr); - break; -case T_RowCompareExpr: - OUT_NODE(RowCompareExpr, RowCompareExpr, row_compare_expr, ROW_COMPARE_EXPR, RowCompareExpr, row_compare_expr); - break; -case T_CoalesceExpr: - OUT_NODE(CoalesceExpr, CoalesceExpr, coalesce_expr, COALESCE_EXPR, CoalesceExpr, coalesce_expr); - break; -case T_MinMaxExpr: - OUT_NODE(MinMaxExpr, MinMaxExpr, min_max_expr, MIN_MAX_EXPR, MinMaxExpr, min_max_expr); - break; -case T_SQLValueFunction: - OUT_NODE(SQLValueFunction, SQLValueFunction, sqlvalue_function, SQLVALUE_FUNCTION, SQLValueFunction, sqlvalue_function); - break; -case T_XmlExpr: - OUT_NODE(XmlExpr, XmlExpr, xml_expr, XML_EXPR, XmlExpr, xml_expr); - break; -case T_NullTest: - OUT_NODE(NullTest, NullTest, null_test, NULL_TEST, NullTest, null_test); - break; -case T_BooleanTest: - OUT_NODE(BooleanTest, BooleanTest, boolean_test, BOOLEAN_TEST, BooleanTest, boolean_test); - break; -case T_CoerceToDomain: - OUT_NODE(CoerceToDomain, CoerceToDomain, coerce_to_domain, COERCE_TO_DOMAIN, CoerceToDomain, coerce_to_domain); - break; -case T_CoerceToDomainValue: - OUT_NODE(CoerceToDomainValue, CoerceToDomainValue, coerce_to_domain_value, COERCE_TO_DOMAIN_VALUE, CoerceToDomainValue, coerce_to_domain_value); - break; -case T_SetToDefault: - OUT_NODE(SetToDefault, SetToDefault, set_to_default, SET_TO_DEFAULT, SetToDefault, set_to_default); - break; -case T_CurrentOfExpr: - OUT_NODE(CurrentOfExpr, CurrentOfExpr, current_of_expr, CURRENT_OF_EXPR, CurrentOfExpr, current_of_expr); - break; -case T_NextValueExpr: - OUT_NODE(NextValueExpr, NextValueExpr, next_value_expr, NEXT_VALUE_EXPR, NextValueExpr, next_value_expr); - break; -case T_InferenceElem: - OUT_NODE(InferenceElem, InferenceElem, inference_elem, INFERENCE_ELEM, InferenceElem, inference_elem); - break; -case T_TargetEntry: - OUT_NODE(TargetEntry, TargetEntry, target_entry, TARGET_ENTRY, TargetEntry, target_entry); - break; -case T_RangeTblRef: - OUT_NODE(RangeTblRef, RangeTblRef, range_tbl_ref, RANGE_TBL_REF, RangeTblRef, range_tbl_ref); - break; -case T_JoinExpr: - OUT_NODE(JoinExpr, JoinExpr, join_expr, JOIN_EXPR, JoinExpr, join_expr); - break; -case T_FromExpr: - OUT_NODE(FromExpr, FromExpr, from_expr, FROM_EXPR, FromExpr, from_expr); - break; -case T_OnConflictExpr: - OUT_NODE(OnConflictExpr, OnConflictExpr, on_conflict_expr, ON_CONFLICT_EXPR, OnConflictExpr, on_conflict_expr); - break; -case T_IntoClause: - OUT_NODE(IntoClause, IntoClause, into_clause, INTO_CLAUSE, IntoClause, into_clause); - break; -case T_MergeAction: - OUT_NODE(MergeAction, MergeAction, merge_action, MERGE_ACTION, MergeAction, merge_action); - break; -case T_RawStmt: - OUT_NODE(RawStmt, RawStmt, raw_stmt, RAW_STMT, RawStmt, raw_stmt); - break; -case T_Query: - OUT_NODE(Query, Query, query, QUERY, Query, query); - break; -case T_InsertStmt: - OUT_NODE(InsertStmt, InsertStmt, insert_stmt, INSERT_STMT, InsertStmt, insert_stmt); - break; -case T_DeleteStmt: - OUT_NODE(DeleteStmt, DeleteStmt, delete_stmt, DELETE_STMT, DeleteStmt, delete_stmt); - break; -case T_UpdateStmt: - OUT_NODE(UpdateStmt, UpdateStmt, update_stmt, UPDATE_STMT, UpdateStmt, update_stmt); - break; -case T_MergeStmt: - OUT_NODE(MergeStmt, MergeStmt, merge_stmt, MERGE_STMT, MergeStmt, merge_stmt); - break; -case T_SelectStmt: - OUT_NODE(SelectStmt, SelectStmt, select_stmt, SELECT_STMT, SelectStmt, select_stmt); - break; -case T_ReturnStmt: - OUT_NODE(ReturnStmt, ReturnStmt, return_stmt, RETURN_STMT, ReturnStmt, return_stmt); - break; -case T_PLAssignStmt: - OUT_NODE(PLAssignStmt, PLAssignStmt, plassign_stmt, PLASSIGN_STMT, PLAssignStmt, plassign_stmt); - break; -case T_AlterTableStmt: - OUT_NODE(AlterTableStmt, AlterTableStmt, alter_table_stmt, ALTER_TABLE_STMT, AlterTableStmt, alter_table_stmt); - break; -case T_AlterTableCmd: - OUT_NODE(AlterTableCmd, AlterTableCmd, alter_table_cmd, ALTER_TABLE_CMD, AlterTableCmd, alter_table_cmd); - break; -case T_AlterDomainStmt: - OUT_NODE(AlterDomainStmt, AlterDomainStmt, alter_domain_stmt, ALTER_DOMAIN_STMT, AlterDomainStmt, alter_domain_stmt); - break; -case T_SetOperationStmt: - OUT_NODE(SetOperationStmt, SetOperationStmt, set_operation_stmt, SET_OPERATION_STMT, SetOperationStmt, set_operation_stmt); - break; -case T_GrantStmt: - OUT_NODE(GrantStmt, GrantStmt, grant_stmt, GRANT_STMT, GrantStmt, grant_stmt); - break; -case T_GrantRoleStmt: - OUT_NODE(GrantRoleStmt, GrantRoleStmt, grant_role_stmt, GRANT_ROLE_STMT, GrantRoleStmt, grant_role_stmt); - break; -case T_AlterDefaultPrivilegesStmt: - OUT_NODE(AlterDefaultPrivilegesStmt, AlterDefaultPrivilegesStmt, alter_default_privileges_stmt, ALTER_DEFAULT_PRIVILEGES_STMT, AlterDefaultPrivilegesStmt, alter_default_privileges_stmt); - break; -case T_ClosePortalStmt: - OUT_NODE(ClosePortalStmt, ClosePortalStmt, close_portal_stmt, CLOSE_PORTAL_STMT, ClosePortalStmt, close_portal_stmt); - break; -case T_ClusterStmt: - OUT_NODE(ClusterStmt, ClusterStmt, cluster_stmt, CLUSTER_STMT, ClusterStmt, cluster_stmt); - break; -case T_CopyStmt: - OUT_NODE(CopyStmt, CopyStmt, copy_stmt, COPY_STMT, CopyStmt, copy_stmt); - break; -case T_CreateStmt: - OUT_NODE(CreateStmt, CreateStmt, create_stmt, CREATE_STMT, CreateStmt, create_stmt); - break; -case T_DefineStmt: - OUT_NODE(DefineStmt, DefineStmt, define_stmt, DEFINE_STMT, DefineStmt, define_stmt); - break; -case T_DropStmt: - OUT_NODE(DropStmt, DropStmt, drop_stmt, DROP_STMT, DropStmt, drop_stmt); - break; -case T_TruncateStmt: - OUT_NODE(TruncateStmt, TruncateStmt, truncate_stmt, TRUNCATE_STMT, TruncateStmt, truncate_stmt); - break; -case T_CommentStmt: - OUT_NODE(CommentStmt, CommentStmt, comment_stmt, COMMENT_STMT, CommentStmt, comment_stmt); - break; -case T_FetchStmt: - OUT_NODE(FetchStmt, FetchStmt, fetch_stmt, FETCH_STMT, FetchStmt, fetch_stmt); - break; -case T_IndexStmt: - OUT_NODE(IndexStmt, IndexStmt, index_stmt, INDEX_STMT, IndexStmt, index_stmt); - break; -case T_CreateFunctionStmt: - OUT_NODE(CreateFunctionStmt, CreateFunctionStmt, create_function_stmt, CREATE_FUNCTION_STMT, CreateFunctionStmt, create_function_stmt); - break; -case T_AlterFunctionStmt: - OUT_NODE(AlterFunctionStmt, AlterFunctionStmt, alter_function_stmt, ALTER_FUNCTION_STMT, AlterFunctionStmt, alter_function_stmt); - break; -case T_DoStmt: - OUT_NODE(DoStmt, DoStmt, do_stmt, DO_STMT, DoStmt, do_stmt); - break; -case T_RenameStmt: - OUT_NODE(RenameStmt, RenameStmt, rename_stmt, RENAME_STMT, RenameStmt, rename_stmt); - break; -case T_RuleStmt: - OUT_NODE(RuleStmt, RuleStmt, rule_stmt, RULE_STMT, RuleStmt, rule_stmt); - break; -case T_NotifyStmt: - OUT_NODE(NotifyStmt, NotifyStmt, notify_stmt, NOTIFY_STMT, NotifyStmt, notify_stmt); - break; -case T_ListenStmt: - OUT_NODE(ListenStmt, ListenStmt, listen_stmt, LISTEN_STMT, ListenStmt, listen_stmt); - break; -case T_UnlistenStmt: - OUT_NODE(UnlistenStmt, UnlistenStmt, unlisten_stmt, UNLISTEN_STMT, UnlistenStmt, unlisten_stmt); - break; -case T_TransactionStmt: - OUT_NODE(TransactionStmt, TransactionStmt, transaction_stmt, TRANSACTION_STMT, TransactionStmt, transaction_stmt); - break; -case T_ViewStmt: - OUT_NODE(ViewStmt, ViewStmt, view_stmt, VIEW_STMT, ViewStmt, view_stmt); - break; -case T_LoadStmt: - OUT_NODE(LoadStmt, LoadStmt, load_stmt, LOAD_STMT, LoadStmt, load_stmt); - break; -case T_CreateDomainStmt: - OUT_NODE(CreateDomainStmt, CreateDomainStmt, create_domain_stmt, CREATE_DOMAIN_STMT, CreateDomainStmt, create_domain_stmt); - break; -case T_CreatedbStmt: - OUT_NODE(CreatedbStmt, CreatedbStmt, createdb_stmt, CREATEDB_STMT, CreatedbStmt, createdb_stmt); - break; -case T_DropdbStmt: - OUT_NODE(DropdbStmt, DropdbStmt, dropdb_stmt, DROPDB_STMT, DropdbStmt, dropdb_stmt); - break; -case T_VacuumStmt: - OUT_NODE(VacuumStmt, VacuumStmt, vacuum_stmt, VACUUM_STMT, VacuumStmt, vacuum_stmt); - break; -case T_ExplainStmt: - OUT_NODE(ExplainStmt, ExplainStmt, explain_stmt, EXPLAIN_STMT, ExplainStmt, explain_stmt); - break; -case T_CreateTableAsStmt: - OUT_NODE(CreateTableAsStmt, CreateTableAsStmt, create_table_as_stmt, CREATE_TABLE_AS_STMT, CreateTableAsStmt, create_table_as_stmt); - break; -case T_CreateSeqStmt: - OUT_NODE(CreateSeqStmt, CreateSeqStmt, create_seq_stmt, CREATE_SEQ_STMT, CreateSeqStmt, create_seq_stmt); - break; -case T_AlterSeqStmt: - OUT_NODE(AlterSeqStmt, AlterSeqStmt, alter_seq_stmt, ALTER_SEQ_STMT, AlterSeqStmt, alter_seq_stmt); - break; -case T_VariableSetStmt: - OUT_NODE(VariableSetStmt, VariableSetStmt, variable_set_stmt, VARIABLE_SET_STMT, VariableSetStmt, variable_set_stmt); - break; -case T_VariableShowStmt: - OUT_NODE(VariableShowStmt, VariableShowStmt, variable_show_stmt, VARIABLE_SHOW_STMT, VariableShowStmt, variable_show_stmt); - break; -case T_DiscardStmt: - OUT_NODE(DiscardStmt, DiscardStmt, discard_stmt, DISCARD_STMT, DiscardStmt, discard_stmt); - break; -case T_CreateTrigStmt: - OUT_NODE(CreateTrigStmt, CreateTrigStmt, create_trig_stmt, CREATE_TRIG_STMT, CreateTrigStmt, create_trig_stmt); - break; -case T_CreatePLangStmt: - OUT_NODE(CreatePLangStmt, CreatePLangStmt, create_plang_stmt, CREATE_PLANG_STMT, CreatePLangStmt, create_plang_stmt); - break; -case T_CreateRoleStmt: - OUT_NODE(CreateRoleStmt, CreateRoleStmt, create_role_stmt, CREATE_ROLE_STMT, CreateRoleStmt, create_role_stmt); - break; -case T_AlterRoleStmt: - OUT_NODE(AlterRoleStmt, AlterRoleStmt, alter_role_stmt, ALTER_ROLE_STMT, AlterRoleStmt, alter_role_stmt); - break; -case T_DropRoleStmt: - OUT_NODE(DropRoleStmt, DropRoleStmt, drop_role_stmt, DROP_ROLE_STMT, DropRoleStmt, drop_role_stmt); - break; -case T_LockStmt: - OUT_NODE(LockStmt, LockStmt, lock_stmt, LOCK_STMT, LockStmt, lock_stmt); - break; -case T_ConstraintsSetStmt: - OUT_NODE(ConstraintsSetStmt, ConstraintsSetStmt, constraints_set_stmt, CONSTRAINTS_SET_STMT, ConstraintsSetStmt, constraints_set_stmt); - break; -case T_ReindexStmt: - OUT_NODE(ReindexStmt, ReindexStmt, reindex_stmt, REINDEX_STMT, ReindexStmt, reindex_stmt); - break; -case T_CheckPointStmt: - OUT_NODE(CheckPointStmt, CheckPointStmt, check_point_stmt, CHECK_POINT_STMT, CheckPointStmt, check_point_stmt); - break; -case T_CreateSchemaStmt: - OUT_NODE(CreateSchemaStmt, CreateSchemaStmt, create_schema_stmt, CREATE_SCHEMA_STMT, CreateSchemaStmt, create_schema_stmt); - break; -case T_AlterDatabaseStmt: - OUT_NODE(AlterDatabaseStmt, AlterDatabaseStmt, alter_database_stmt, ALTER_DATABASE_STMT, AlterDatabaseStmt, alter_database_stmt); - break; -case T_AlterDatabaseRefreshCollStmt: - OUT_NODE(AlterDatabaseRefreshCollStmt, AlterDatabaseRefreshCollStmt, alter_database_refresh_coll_stmt, ALTER_DATABASE_REFRESH_COLL_STMT, AlterDatabaseRefreshCollStmt, alter_database_refresh_coll_stmt); - break; -case T_AlterDatabaseSetStmt: - OUT_NODE(AlterDatabaseSetStmt, AlterDatabaseSetStmt, alter_database_set_stmt, ALTER_DATABASE_SET_STMT, AlterDatabaseSetStmt, alter_database_set_stmt); - break; -case T_AlterRoleSetStmt: - OUT_NODE(AlterRoleSetStmt, AlterRoleSetStmt, alter_role_set_stmt, ALTER_ROLE_SET_STMT, AlterRoleSetStmt, alter_role_set_stmt); - break; -case T_CreateConversionStmt: - OUT_NODE(CreateConversionStmt, CreateConversionStmt, create_conversion_stmt, CREATE_CONVERSION_STMT, CreateConversionStmt, create_conversion_stmt); - break; -case T_CreateCastStmt: - OUT_NODE(CreateCastStmt, CreateCastStmt, create_cast_stmt, CREATE_CAST_STMT, CreateCastStmt, create_cast_stmt); - break; -case T_CreateOpClassStmt: - OUT_NODE(CreateOpClassStmt, CreateOpClassStmt, create_op_class_stmt, CREATE_OP_CLASS_STMT, CreateOpClassStmt, create_op_class_stmt); - break; -case T_CreateOpFamilyStmt: - OUT_NODE(CreateOpFamilyStmt, CreateOpFamilyStmt, create_op_family_stmt, CREATE_OP_FAMILY_STMT, CreateOpFamilyStmt, create_op_family_stmt); - break; -case T_AlterOpFamilyStmt: - OUT_NODE(AlterOpFamilyStmt, AlterOpFamilyStmt, alter_op_family_stmt, ALTER_OP_FAMILY_STMT, AlterOpFamilyStmt, alter_op_family_stmt); - break; -case T_PrepareStmt: - OUT_NODE(PrepareStmt, PrepareStmt, prepare_stmt, PREPARE_STMT, PrepareStmt, prepare_stmt); - break; -case T_ExecuteStmt: - OUT_NODE(ExecuteStmt, ExecuteStmt, execute_stmt, EXECUTE_STMT, ExecuteStmt, execute_stmt); - break; -case T_DeallocateStmt: - OUT_NODE(DeallocateStmt, DeallocateStmt, deallocate_stmt, DEALLOCATE_STMT, DeallocateStmt, deallocate_stmt); - break; -case T_DeclareCursorStmt: - OUT_NODE(DeclareCursorStmt, DeclareCursorStmt, declare_cursor_stmt, DECLARE_CURSOR_STMT, DeclareCursorStmt, declare_cursor_stmt); - break; -case T_CreateTableSpaceStmt: - OUT_NODE(CreateTableSpaceStmt, CreateTableSpaceStmt, create_table_space_stmt, CREATE_TABLE_SPACE_STMT, CreateTableSpaceStmt, create_table_space_stmt); - break; -case T_DropTableSpaceStmt: - OUT_NODE(DropTableSpaceStmt, DropTableSpaceStmt, drop_table_space_stmt, DROP_TABLE_SPACE_STMT, DropTableSpaceStmt, drop_table_space_stmt); - break; -case T_AlterObjectDependsStmt: - OUT_NODE(AlterObjectDependsStmt, AlterObjectDependsStmt, alter_object_depends_stmt, ALTER_OBJECT_DEPENDS_STMT, AlterObjectDependsStmt, alter_object_depends_stmt); - break; -case T_AlterObjectSchemaStmt: - OUT_NODE(AlterObjectSchemaStmt, AlterObjectSchemaStmt, alter_object_schema_stmt, ALTER_OBJECT_SCHEMA_STMT, AlterObjectSchemaStmt, alter_object_schema_stmt); - break; -case T_AlterOwnerStmt: - OUT_NODE(AlterOwnerStmt, AlterOwnerStmt, alter_owner_stmt, ALTER_OWNER_STMT, AlterOwnerStmt, alter_owner_stmt); - break; -case T_AlterOperatorStmt: - OUT_NODE(AlterOperatorStmt, AlterOperatorStmt, alter_operator_stmt, ALTER_OPERATOR_STMT, AlterOperatorStmt, alter_operator_stmt); - break; -case T_AlterTypeStmt: - OUT_NODE(AlterTypeStmt, AlterTypeStmt, alter_type_stmt, ALTER_TYPE_STMT, AlterTypeStmt, alter_type_stmt); - break; -case T_DropOwnedStmt: - OUT_NODE(DropOwnedStmt, DropOwnedStmt, drop_owned_stmt, DROP_OWNED_STMT, DropOwnedStmt, drop_owned_stmt); - break; -case T_ReassignOwnedStmt: - OUT_NODE(ReassignOwnedStmt, ReassignOwnedStmt, reassign_owned_stmt, REASSIGN_OWNED_STMT, ReassignOwnedStmt, reassign_owned_stmt); - break; -case T_CompositeTypeStmt: - OUT_NODE(CompositeTypeStmt, CompositeTypeStmt, composite_type_stmt, COMPOSITE_TYPE_STMT, CompositeTypeStmt, composite_type_stmt); - break; -case T_CreateEnumStmt: - OUT_NODE(CreateEnumStmt, CreateEnumStmt, create_enum_stmt, CREATE_ENUM_STMT, CreateEnumStmt, create_enum_stmt); - break; -case T_CreateRangeStmt: - OUT_NODE(CreateRangeStmt, CreateRangeStmt, create_range_stmt, CREATE_RANGE_STMT, CreateRangeStmt, create_range_stmt); - break; -case T_AlterEnumStmt: - OUT_NODE(AlterEnumStmt, AlterEnumStmt, alter_enum_stmt, ALTER_ENUM_STMT, AlterEnumStmt, alter_enum_stmt); - break; -case T_AlterTSDictionaryStmt: - OUT_NODE(AlterTSDictionaryStmt, AlterTSDictionaryStmt, alter_tsdictionary_stmt, ALTER_TSDICTIONARY_STMT, AlterTSDictionaryStmt, alter_tsdictionary_stmt); - break; -case T_AlterTSConfigurationStmt: - OUT_NODE(AlterTSConfigurationStmt, AlterTSConfigurationStmt, alter_tsconfiguration_stmt, ALTER_TSCONFIGURATION_STMT, AlterTSConfigurationStmt, alter_tsconfiguration_stmt); - break; -case T_CreateFdwStmt: - OUT_NODE(CreateFdwStmt, CreateFdwStmt, create_fdw_stmt, CREATE_FDW_STMT, CreateFdwStmt, create_fdw_stmt); - break; -case T_AlterFdwStmt: - OUT_NODE(AlterFdwStmt, AlterFdwStmt, alter_fdw_stmt, ALTER_FDW_STMT, AlterFdwStmt, alter_fdw_stmt); - break; -case T_CreateForeignServerStmt: - OUT_NODE(CreateForeignServerStmt, CreateForeignServerStmt, create_foreign_server_stmt, CREATE_FOREIGN_SERVER_STMT, CreateForeignServerStmt, create_foreign_server_stmt); - break; -case T_AlterForeignServerStmt: - OUT_NODE(AlterForeignServerStmt, AlterForeignServerStmt, alter_foreign_server_stmt, ALTER_FOREIGN_SERVER_STMT, AlterForeignServerStmt, alter_foreign_server_stmt); - break; -case T_CreateUserMappingStmt: - OUT_NODE(CreateUserMappingStmt, CreateUserMappingStmt, create_user_mapping_stmt, CREATE_USER_MAPPING_STMT, CreateUserMappingStmt, create_user_mapping_stmt); - break; -case T_AlterUserMappingStmt: - OUT_NODE(AlterUserMappingStmt, AlterUserMappingStmt, alter_user_mapping_stmt, ALTER_USER_MAPPING_STMT, AlterUserMappingStmt, alter_user_mapping_stmt); - break; -case T_DropUserMappingStmt: - OUT_NODE(DropUserMappingStmt, DropUserMappingStmt, drop_user_mapping_stmt, DROP_USER_MAPPING_STMT, DropUserMappingStmt, drop_user_mapping_stmt); - break; -case T_AlterTableSpaceOptionsStmt: - OUT_NODE(AlterTableSpaceOptionsStmt, AlterTableSpaceOptionsStmt, alter_table_space_options_stmt, ALTER_TABLE_SPACE_OPTIONS_STMT, AlterTableSpaceOptionsStmt, alter_table_space_options_stmt); - break; -case T_AlterTableMoveAllStmt: - OUT_NODE(AlterTableMoveAllStmt, AlterTableMoveAllStmt, alter_table_move_all_stmt, ALTER_TABLE_MOVE_ALL_STMT, AlterTableMoveAllStmt, alter_table_move_all_stmt); - break; -case T_SecLabelStmt: - OUT_NODE(SecLabelStmt, SecLabelStmt, sec_label_stmt, SEC_LABEL_STMT, SecLabelStmt, sec_label_stmt); - break; -case T_CreateForeignTableStmt: - OUT_NODE(CreateForeignTableStmt, CreateForeignTableStmt, create_foreign_table_stmt, CREATE_FOREIGN_TABLE_STMT, CreateForeignTableStmt, create_foreign_table_stmt); - break; -case T_ImportForeignSchemaStmt: - OUT_NODE(ImportForeignSchemaStmt, ImportForeignSchemaStmt, import_foreign_schema_stmt, IMPORT_FOREIGN_SCHEMA_STMT, ImportForeignSchemaStmt, import_foreign_schema_stmt); - break; -case T_CreateExtensionStmt: - OUT_NODE(CreateExtensionStmt, CreateExtensionStmt, create_extension_stmt, CREATE_EXTENSION_STMT, CreateExtensionStmt, create_extension_stmt); - break; -case T_AlterExtensionStmt: - OUT_NODE(AlterExtensionStmt, AlterExtensionStmt, alter_extension_stmt, ALTER_EXTENSION_STMT, AlterExtensionStmt, alter_extension_stmt); - break; -case T_AlterExtensionContentsStmt: - OUT_NODE(AlterExtensionContentsStmt, AlterExtensionContentsStmt, alter_extension_contents_stmt, ALTER_EXTENSION_CONTENTS_STMT, AlterExtensionContentsStmt, alter_extension_contents_stmt); - break; -case T_CreateEventTrigStmt: - OUT_NODE(CreateEventTrigStmt, CreateEventTrigStmt, create_event_trig_stmt, CREATE_EVENT_TRIG_STMT, CreateEventTrigStmt, create_event_trig_stmt); - break; -case T_AlterEventTrigStmt: - OUT_NODE(AlterEventTrigStmt, AlterEventTrigStmt, alter_event_trig_stmt, ALTER_EVENT_TRIG_STMT, AlterEventTrigStmt, alter_event_trig_stmt); - break; -case T_RefreshMatViewStmt: - OUT_NODE(RefreshMatViewStmt, RefreshMatViewStmt, refresh_mat_view_stmt, REFRESH_MAT_VIEW_STMT, RefreshMatViewStmt, refresh_mat_view_stmt); - break; -case T_ReplicaIdentityStmt: - OUT_NODE(ReplicaIdentityStmt, ReplicaIdentityStmt, replica_identity_stmt, REPLICA_IDENTITY_STMT, ReplicaIdentityStmt, replica_identity_stmt); - break; -case T_AlterSystemStmt: - OUT_NODE(AlterSystemStmt, AlterSystemStmt, alter_system_stmt, ALTER_SYSTEM_STMT, AlterSystemStmt, alter_system_stmt); - break; -case T_CreatePolicyStmt: - OUT_NODE(CreatePolicyStmt, CreatePolicyStmt, create_policy_stmt, CREATE_POLICY_STMT, CreatePolicyStmt, create_policy_stmt); - break; -case T_AlterPolicyStmt: - OUT_NODE(AlterPolicyStmt, AlterPolicyStmt, alter_policy_stmt, ALTER_POLICY_STMT, AlterPolicyStmt, alter_policy_stmt); - break; -case T_CreateTransformStmt: - OUT_NODE(CreateTransformStmt, CreateTransformStmt, create_transform_stmt, CREATE_TRANSFORM_STMT, CreateTransformStmt, create_transform_stmt); - break; -case T_CreateAmStmt: - OUT_NODE(CreateAmStmt, CreateAmStmt, create_am_stmt, CREATE_AM_STMT, CreateAmStmt, create_am_stmt); - break; -case T_CreatePublicationStmt: - OUT_NODE(CreatePublicationStmt, CreatePublicationStmt, create_publication_stmt, CREATE_PUBLICATION_STMT, CreatePublicationStmt, create_publication_stmt); - break; -case T_AlterPublicationStmt: - OUT_NODE(AlterPublicationStmt, AlterPublicationStmt, alter_publication_stmt, ALTER_PUBLICATION_STMT, AlterPublicationStmt, alter_publication_stmt); - break; -case T_CreateSubscriptionStmt: - OUT_NODE(CreateSubscriptionStmt, CreateSubscriptionStmt, create_subscription_stmt, CREATE_SUBSCRIPTION_STMT, CreateSubscriptionStmt, create_subscription_stmt); - break; -case T_AlterSubscriptionStmt: - OUT_NODE(AlterSubscriptionStmt, AlterSubscriptionStmt, alter_subscription_stmt, ALTER_SUBSCRIPTION_STMT, AlterSubscriptionStmt, alter_subscription_stmt); - break; -case T_DropSubscriptionStmt: - OUT_NODE(DropSubscriptionStmt, DropSubscriptionStmt, drop_subscription_stmt, DROP_SUBSCRIPTION_STMT, DropSubscriptionStmt, drop_subscription_stmt); - break; -case T_CreateStatsStmt: - OUT_NODE(CreateStatsStmt, CreateStatsStmt, create_stats_stmt, CREATE_STATS_STMT, CreateStatsStmt, create_stats_stmt); - break; -case T_AlterCollationStmt: - OUT_NODE(AlterCollationStmt, AlterCollationStmt, alter_collation_stmt, ALTER_COLLATION_STMT, AlterCollationStmt, alter_collation_stmt); - break; -case T_CallStmt: - OUT_NODE(CallStmt, CallStmt, call_stmt, CALL_STMT, CallStmt, call_stmt); - break; -case T_AlterStatsStmt: - OUT_NODE(AlterStatsStmt, AlterStatsStmt, alter_stats_stmt, ALTER_STATS_STMT, AlterStatsStmt, alter_stats_stmt); - break; -case T_A_Expr: - OUT_NODE(A_Expr, AExpr, a__expr, A_EXPR, A_Expr, a_expr); - break; -case T_ColumnRef: - OUT_NODE(ColumnRef, ColumnRef, column_ref, COLUMN_REF, ColumnRef, column_ref); - break; -case T_ParamRef: - OUT_NODE(ParamRef, ParamRef, param_ref, PARAM_REF, ParamRef, param_ref); - break; -case T_FuncCall: - OUT_NODE(FuncCall, FuncCall, func_call, FUNC_CALL, FuncCall, func_call); - break; -case T_A_Star: - OUT_NODE(A_Star, AStar, a__star, A_STAR, A_Star, a_star); - break; -case T_A_Indices: - OUT_NODE(A_Indices, AIndices, a__indices, A_INDICES, A_Indices, a_indices); - break; -case T_A_Indirection: - OUT_NODE(A_Indirection, AIndirection, a__indirection, A_INDIRECTION, A_Indirection, a_indirection); - break; -case T_A_ArrayExpr: - OUT_NODE(A_ArrayExpr, AArrayExpr, a__array_expr, A_ARRAY_EXPR, A_ArrayExpr, a_array_expr); - break; -case T_ResTarget: - OUT_NODE(ResTarget, ResTarget, res_target, RES_TARGET, ResTarget, res_target); - break; -case T_MultiAssignRef: - OUT_NODE(MultiAssignRef, MultiAssignRef, multi_assign_ref, MULTI_ASSIGN_REF, MultiAssignRef, multi_assign_ref); - break; -case T_TypeCast: - OUT_NODE(TypeCast, TypeCast, type_cast, TYPE_CAST, TypeCast, type_cast); - break; -case T_CollateClause: - OUT_NODE(CollateClause, CollateClause, collate_clause, COLLATE_CLAUSE, CollateClause, collate_clause); - break; -case T_SortBy: - OUT_NODE(SortBy, SortBy, sort_by, SORT_BY, SortBy, sort_by); - break; -case T_WindowDef: - OUT_NODE(WindowDef, WindowDef, window_def, WINDOW_DEF, WindowDef, window_def); - break; -case T_RangeSubselect: - OUT_NODE(RangeSubselect, RangeSubselect, range_subselect, RANGE_SUBSELECT, RangeSubselect, range_subselect); - break; -case T_RangeFunction: - OUT_NODE(RangeFunction, RangeFunction, range_function, RANGE_FUNCTION, RangeFunction, range_function); - break; -case T_RangeTableSample: - OUT_NODE(RangeTableSample, RangeTableSample, range_table_sample, RANGE_TABLE_SAMPLE, RangeTableSample, range_table_sample); - break; -case T_RangeTableFunc: - OUT_NODE(RangeTableFunc, RangeTableFunc, range_table_func, RANGE_TABLE_FUNC, RangeTableFunc, range_table_func); - break; -case T_RangeTableFuncCol: - OUT_NODE(RangeTableFuncCol, RangeTableFuncCol, range_table_func_col, RANGE_TABLE_FUNC_COL, RangeTableFuncCol, range_table_func_col); - break; -case T_TypeName: - OUT_NODE(TypeName, TypeName, type_name, TYPE_NAME, TypeName, type_name); - break; -case T_ColumnDef: - OUT_NODE(ColumnDef, ColumnDef, column_def, COLUMN_DEF, ColumnDef, column_def); - break; -case T_IndexElem: - OUT_NODE(IndexElem, IndexElem, index_elem, INDEX_ELEM, IndexElem, index_elem); - break; -case T_StatsElem: - OUT_NODE(StatsElem, StatsElem, stats_elem, STATS_ELEM, StatsElem, stats_elem); - break; -case T_Constraint: - OUT_NODE(Constraint, Constraint, constraint, CONSTRAINT, Constraint, constraint); - break; -case T_DefElem: - OUT_NODE(DefElem, DefElem, def_elem, DEF_ELEM, DefElem, def_elem); - break; -case T_RangeTblEntry: - OUT_NODE(RangeTblEntry, RangeTblEntry, range_tbl_entry, RANGE_TBL_ENTRY, RangeTblEntry, range_tbl_entry); - break; -case T_RangeTblFunction: - OUT_NODE(RangeTblFunction, RangeTblFunction, range_tbl_function, RANGE_TBL_FUNCTION, RangeTblFunction, range_tbl_function); - break; -case T_TableSampleClause: - OUT_NODE(TableSampleClause, TableSampleClause, table_sample_clause, TABLE_SAMPLE_CLAUSE, TableSampleClause, table_sample_clause); - break; -case T_WithCheckOption: - OUT_NODE(WithCheckOption, WithCheckOption, with_check_option, WITH_CHECK_OPTION, WithCheckOption, with_check_option); - break; -case T_SortGroupClause: - OUT_NODE(SortGroupClause, SortGroupClause, sort_group_clause, SORT_GROUP_CLAUSE, SortGroupClause, sort_group_clause); - break; -case T_GroupingSet: - OUT_NODE(GroupingSet, GroupingSet, grouping_set, GROUPING_SET, GroupingSet, grouping_set); - break; -case T_WindowClause: - OUT_NODE(WindowClause, WindowClause, window_clause, WINDOW_CLAUSE, WindowClause, window_clause); - break; -case T_ObjectWithArgs: - OUT_NODE(ObjectWithArgs, ObjectWithArgs, object_with_args, OBJECT_WITH_ARGS, ObjectWithArgs, object_with_args); - break; -case T_AccessPriv: - OUT_NODE(AccessPriv, AccessPriv, access_priv, ACCESS_PRIV, AccessPriv, access_priv); - break; -case T_CreateOpClassItem: - OUT_NODE(CreateOpClassItem, CreateOpClassItem, create_op_class_item, CREATE_OP_CLASS_ITEM, CreateOpClassItem, create_op_class_item); - break; -case T_TableLikeClause: - OUT_NODE(TableLikeClause, TableLikeClause, table_like_clause, TABLE_LIKE_CLAUSE, TableLikeClause, table_like_clause); - break; -case T_FunctionParameter: - OUT_NODE(FunctionParameter, FunctionParameter, function_parameter, FUNCTION_PARAMETER, FunctionParameter, function_parameter); - break; -case T_LockingClause: - OUT_NODE(LockingClause, LockingClause, locking_clause, LOCKING_CLAUSE, LockingClause, locking_clause); - break; -case T_RowMarkClause: - OUT_NODE(RowMarkClause, RowMarkClause, row_mark_clause, ROW_MARK_CLAUSE, RowMarkClause, row_mark_clause); - break; -case T_XmlSerialize: - OUT_NODE(XmlSerialize, XmlSerialize, xml_serialize, XML_SERIALIZE, XmlSerialize, xml_serialize); - break; -case T_WithClause: - OUT_NODE(WithClause, WithClause, with_clause, WITH_CLAUSE, WithClause, with_clause); - break; -case T_InferClause: - OUT_NODE(InferClause, InferClause, infer_clause, INFER_CLAUSE, InferClause, infer_clause); - break; -case T_OnConflictClause: - OUT_NODE(OnConflictClause, OnConflictClause, on_conflict_clause, ON_CONFLICT_CLAUSE, OnConflictClause, on_conflict_clause); - break; -case T_CTESearchClause: - OUT_NODE(CTESearchClause, CTESearchClause, ctesearch_clause, CTESEARCH_CLAUSE, CTESearchClause, ctesearch_clause); - break; -case T_CTECycleClause: - OUT_NODE(CTECycleClause, CTECycleClause, ctecycle_clause, CTECYCLE_CLAUSE, CTECycleClause, ctecycle_clause); - break; -case T_CommonTableExpr: - OUT_NODE(CommonTableExpr, CommonTableExpr, common_table_expr, COMMON_TABLE_EXPR, CommonTableExpr, common_table_expr); - break; -case T_MergeWhenClause: - OUT_NODE(MergeWhenClause, MergeWhenClause, merge_when_clause, MERGE_WHEN_CLAUSE, MergeWhenClause, merge_when_clause); - break; -case T_RoleSpec: - OUT_NODE(RoleSpec, RoleSpec, role_spec, ROLE_SPEC, RoleSpec, role_spec); - break; -case T_TriggerTransition: - OUT_NODE(TriggerTransition, TriggerTransition, trigger_transition, TRIGGER_TRANSITION, TriggerTransition, trigger_transition); - break; -case T_PartitionElem: - OUT_NODE(PartitionElem, PartitionElem, partition_elem, PARTITION_ELEM, PartitionElem, partition_elem); - break; -case T_PartitionSpec: - OUT_NODE(PartitionSpec, PartitionSpec, partition_spec, PARTITION_SPEC, PartitionSpec, partition_spec); - break; -case T_PartitionBoundSpec: - OUT_NODE(PartitionBoundSpec, PartitionBoundSpec, partition_bound_spec, PARTITION_BOUND_SPEC, PartitionBoundSpec, partition_bound_spec); - break; -case T_PartitionRangeDatum: - OUT_NODE(PartitionRangeDatum, PartitionRangeDatum, partition_range_datum, PARTITION_RANGE_DATUM, PartitionRangeDatum, partition_range_datum); - break; -case T_PartitionCmd: - OUT_NODE(PartitionCmd, PartitionCmd, partition_cmd, PARTITION_CMD, PartitionCmd, partition_cmd); - break; -case T_VacuumRelation: - OUT_NODE(VacuumRelation, VacuumRelation, vacuum_relation, VACUUM_RELATION, VacuumRelation, vacuum_relation); - break; -case T_PublicationObjSpec: - OUT_NODE(PublicationObjSpec, PublicationObjSpec, publication_obj_spec, PUBLICATION_OBJ_SPEC, PublicationObjSpec, publication_obj_spec); - break; -case T_PublicationTable: - OUT_NODE(PublicationTable, PublicationTable, publication_table, PUBLICATION_TABLE, PublicationTable, publication_table); - break; -case T_InlineCodeBlock: - OUT_NODE(InlineCodeBlock, InlineCodeBlock, inline_code_block, INLINE_CODE_BLOCK, InlineCodeBlock, inline_code_block); - break; -case T_CallContext: - OUT_NODE(CallContext, CallContext, call_context, CALL_CONTEXT, CallContext, call_context); - break; diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_outfuncs_defs.c b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_outfuncs_defs.c deleted file mode 100644 index 9268de260..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_outfuncs_defs.c +++ /dev/null @@ -1,2564 +0,0 @@ -// This file is autogenerated by ./scripts/generate_protobuf_and_funcs.rb - -static void _outAlias(OUT_TYPE(Alias, Alias) out_node, const Alias *node); -static void _outRangeVar(OUT_TYPE(RangeVar, RangeVar) out_node, const RangeVar *node); -static void _outTableFunc(OUT_TYPE(TableFunc, TableFunc) out_node, const TableFunc *node); -static void _outVar(OUT_TYPE(Var, Var) out_node, const Var *node); -static void _outParam(OUT_TYPE(Param, Param) out_node, const Param *node); -static void _outAggref(OUT_TYPE(Aggref, Aggref) out_node, const Aggref *node); -static void _outGroupingFunc(OUT_TYPE(GroupingFunc, GroupingFunc) out_node, const GroupingFunc *node); -static void _outWindowFunc(OUT_TYPE(WindowFunc, WindowFunc) out_node, const WindowFunc *node); -static void _outSubscriptingRef(OUT_TYPE(SubscriptingRef, SubscriptingRef) out_node, const SubscriptingRef *node); -static void _outFuncExpr(OUT_TYPE(FuncExpr, FuncExpr) out_node, const FuncExpr *node); -static void _outNamedArgExpr(OUT_TYPE(NamedArgExpr, NamedArgExpr) out_node, const NamedArgExpr *node); -static void _outOpExpr(OUT_TYPE(OpExpr, OpExpr) out_node, const OpExpr *node); -static void _outDistinctExpr(OUT_TYPE(DistinctExpr, DistinctExpr) out_node, const DistinctExpr *node); -static void _outNullIfExpr(OUT_TYPE(NullIfExpr, NullIfExpr) out_node, const NullIfExpr *node); -static void _outScalarArrayOpExpr(OUT_TYPE(ScalarArrayOpExpr, ScalarArrayOpExpr) out_node, const ScalarArrayOpExpr *node); -static void _outBoolExpr(OUT_TYPE(BoolExpr, BoolExpr) out_node, const BoolExpr *node); -static void _outSubLink(OUT_TYPE(SubLink, SubLink) out_node, const SubLink *node); -static void _outSubPlan(OUT_TYPE(SubPlan, SubPlan) out_node, const SubPlan *node); -static void _outAlternativeSubPlan(OUT_TYPE(AlternativeSubPlan, AlternativeSubPlan) out_node, const AlternativeSubPlan *node); -static void _outFieldSelect(OUT_TYPE(FieldSelect, FieldSelect) out_node, const FieldSelect *node); -static void _outFieldStore(OUT_TYPE(FieldStore, FieldStore) out_node, const FieldStore *node); -static void _outRelabelType(OUT_TYPE(RelabelType, RelabelType) out_node, const RelabelType *node); -static void _outCoerceViaIO(OUT_TYPE(CoerceViaIO, CoerceViaIO) out_node, const CoerceViaIO *node); -static void _outArrayCoerceExpr(OUT_TYPE(ArrayCoerceExpr, ArrayCoerceExpr) out_node, const ArrayCoerceExpr *node); -static void _outConvertRowtypeExpr(OUT_TYPE(ConvertRowtypeExpr, ConvertRowtypeExpr) out_node, const ConvertRowtypeExpr *node); -static void _outCollateExpr(OUT_TYPE(CollateExpr, CollateExpr) out_node, const CollateExpr *node); -static void _outCaseExpr(OUT_TYPE(CaseExpr, CaseExpr) out_node, const CaseExpr *node); -static void _outCaseWhen(OUT_TYPE(CaseWhen, CaseWhen) out_node, const CaseWhen *node); -static void _outCaseTestExpr(OUT_TYPE(CaseTestExpr, CaseTestExpr) out_node, const CaseTestExpr *node); -static void _outArrayExpr(OUT_TYPE(ArrayExpr, ArrayExpr) out_node, const ArrayExpr *node); -static void _outRowExpr(OUT_TYPE(RowExpr, RowExpr) out_node, const RowExpr *node); -static void _outRowCompareExpr(OUT_TYPE(RowCompareExpr, RowCompareExpr) out_node, const RowCompareExpr *node); -static void _outCoalesceExpr(OUT_TYPE(CoalesceExpr, CoalesceExpr) out_node, const CoalesceExpr *node); -static void _outMinMaxExpr(OUT_TYPE(MinMaxExpr, MinMaxExpr) out_node, const MinMaxExpr *node); -static void _outSQLValueFunction(OUT_TYPE(SQLValueFunction, SQLValueFunction) out_node, const SQLValueFunction *node); -static void _outXmlExpr(OUT_TYPE(XmlExpr, XmlExpr) out_node, const XmlExpr *node); -static void _outNullTest(OUT_TYPE(NullTest, NullTest) out_node, const NullTest *node); -static void _outBooleanTest(OUT_TYPE(BooleanTest, BooleanTest) out_node, const BooleanTest *node); -static void _outCoerceToDomain(OUT_TYPE(CoerceToDomain, CoerceToDomain) out_node, const CoerceToDomain *node); -static void _outCoerceToDomainValue(OUT_TYPE(CoerceToDomainValue, CoerceToDomainValue) out_node, const CoerceToDomainValue *node); -static void _outSetToDefault(OUT_TYPE(SetToDefault, SetToDefault) out_node, const SetToDefault *node); -static void _outCurrentOfExpr(OUT_TYPE(CurrentOfExpr, CurrentOfExpr) out_node, const CurrentOfExpr *node); -static void _outNextValueExpr(OUT_TYPE(NextValueExpr, NextValueExpr) out_node, const NextValueExpr *node); -static void _outInferenceElem(OUT_TYPE(InferenceElem, InferenceElem) out_node, const InferenceElem *node); -static void _outTargetEntry(OUT_TYPE(TargetEntry, TargetEntry) out_node, const TargetEntry *node); -static void _outRangeTblRef(OUT_TYPE(RangeTblRef, RangeTblRef) out_node, const RangeTblRef *node); -static void _outJoinExpr(OUT_TYPE(JoinExpr, JoinExpr) out_node, const JoinExpr *node); -static void _outFromExpr(OUT_TYPE(FromExpr, FromExpr) out_node, const FromExpr *node); -static void _outOnConflictExpr(OUT_TYPE(OnConflictExpr, OnConflictExpr) out_node, const OnConflictExpr *node); -static void _outIntoClause(OUT_TYPE(IntoClause, IntoClause) out_node, const IntoClause *node); -static void _outMergeAction(OUT_TYPE(MergeAction, MergeAction) out_node, const MergeAction *node); -static void _outRawStmt(OUT_TYPE(RawStmt, RawStmt) out_node, const RawStmt *node); -static void _outQuery(OUT_TYPE(Query, Query) out_node, const Query *node); -static void _outInsertStmt(OUT_TYPE(InsertStmt, InsertStmt) out_node, const InsertStmt *node); -static void _outDeleteStmt(OUT_TYPE(DeleteStmt, DeleteStmt) out_node, const DeleteStmt *node); -static void _outUpdateStmt(OUT_TYPE(UpdateStmt, UpdateStmt) out_node, const UpdateStmt *node); -static void _outMergeStmt(OUT_TYPE(MergeStmt, MergeStmt) out_node, const MergeStmt *node); -static void _outSelectStmt(OUT_TYPE(SelectStmt, SelectStmt) out_node, const SelectStmt *node); -static void _outReturnStmt(OUT_TYPE(ReturnStmt, ReturnStmt) out_node, const ReturnStmt *node); -static void _outPLAssignStmt(OUT_TYPE(PLAssignStmt, PLAssignStmt) out_node, const PLAssignStmt *node); -static void _outAlterTableStmt(OUT_TYPE(AlterTableStmt, AlterTableStmt) out_node, const AlterTableStmt *node); -static void _outAlterTableCmd(OUT_TYPE(AlterTableCmd, AlterTableCmd) out_node, const AlterTableCmd *node); -static void _outAlterDomainStmt(OUT_TYPE(AlterDomainStmt, AlterDomainStmt) out_node, const AlterDomainStmt *node); -static void _outSetOperationStmt(OUT_TYPE(SetOperationStmt, SetOperationStmt) out_node, const SetOperationStmt *node); -static void _outGrantStmt(OUT_TYPE(GrantStmt, GrantStmt) out_node, const GrantStmt *node); -static void _outGrantRoleStmt(OUT_TYPE(GrantRoleStmt, GrantRoleStmt) out_node, const GrantRoleStmt *node); -static void _outAlterDefaultPrivilegesStmt(OUT_TYPE(AlterDefaultPrivilegesStmt, AlterDefaultPrivilegesStmt) out_node, const AlterDefaultPrivilegesStmt *node); -static void _outClosePortalStmt(OUT_TYPE(ClosePortalStmt, ClosePortalStmt) out_node, const ClosePortalStmt *node); -static void _outClusterStmt(OUT_TYPE(ClusterStmt, ClusterStmt) out_node, const ClusterStmt *node); -static void _outCopyStmt(OUT_TYPE(CopyStmt, CopyStmt) out_node, const CopyStmt *node); -static void _outCreateStmt(OUT_TYPE(CreateStmt, CreateStmt) out_node, const CreateStmt *node); -static void _outDefineStmt(OUT_TYPE(DefineStmt, DefineStmt) out_node, const DefineStmt *node); -static void _outDropStmt(OUT_TYPE(DropStmt, DropStmt) out_node, const DropStmt *node); -static void _outTruncateStmt(OUT_TYPE(TruncateStmt, TruncateStmt) out_node, const TruncateStmt *node); -static void _outCommentStmt(OUT_TYPE(CommentStmt, CommentStmt) out_node, const CommentStmt *node); -static void _outFetchStmt(OUT_TYPE(FetchStmt, FetchStmt) out_node, const FetchStmt *node); -static void _outIndexStmt(OUT_TYPE(IndexStmt, IndexStmt) out_node, const IndexStmt *node); -static void _outCreateFunctionStmt(OUT_TYPE(CreateFunctionStmt, CreateFunctionStmt) out_node, const CreateFunctionStmt *node); -static void _outAlterFunctionStmt(OUT_TYPE(AlterFunctionStmt, AlterFunctionStmt) out_node, const AlterFunctionStmt *node); -static void _outDoStmt(OUT_TYPE(DoStmt, DoStmt) out_node, const DoStmt *node); -static void _outRenameStmt(OUT_TYPE(RenameStmt, RenameStmt) out_node, const RenameStmt *node); -static void _outRuleStmt(OUT_TYPE(RuleStmt, RuleStmt) out_node, const RuleStmt *node); -static void _outNotifyStmt(OUT_TYPE(NotifyStmt, NotifyStmt) out_node, const NotifyStmt *node); -static void _outListenStmt(OUT_TYPE(ListenStmt, ListenStmt) out_node, const ListenStmt *node); -static void _outUnlistenStmt(OUT_TYPE(UnlistenStmt, UnlistenStmt) out_node, const UnlistenStmt *node); -static void _outTransactionStmt(OUT_TYPE(TransactionStmt, TransactionStmt) out_node, const TransactionStmt *node); -static void _outViewStmt(OUT_TYPE(ViewStmt, ViewStmt) out_node, const ViewStmt *node); -static void _outLoadStmt(OUT_TYPE(LoadStmt, LoadStmt) out_node, const LoadStmt *node); -static void _outCreateDomainStmt(OUT_TYPE(CreateDomainStmt, CreateDomainStmt) out_node, const CreateDomainStmt *node); -static void _outCreatedbStmt(OUT_TYPE(CreatedbStmt, CreatedbStmt) out_node, const CreatedbStmt *node); -static void _outDropdbStmt(OUT_TYPE(DropdbStmt, DropdbStmt) out_node, const DropdbStmt *node); -static void _outVacuumStmt(OUT_TYPE(VacuumStmt, VacuumStmt) out_node, const VacuumStmt *node); -static void _outExplainStmt(OUT_TYPE(ExplainStmt, ExplainStmt) out_node, const ExplainStmt *node); -static void _outCreateTableAsStmt(OUT_TYPE(CreateTableAsStmt, CreateTableAsStmt) out_node, const CreateTableAsStmt *node); -static void _outCreateSeqStmt(OUT_TYPE(CreateSeqStmt, CreateSeqStmt) out_node, const CreateSeqStmt *node); -static void _outAlterSeqStmt(OUT_TYPE(AlterSeqStmt, AlterSeqStmt) out_node, const AlterSeqStmt *node); -static void _outVariableSetStmt(OUT_TYPE(VariableSetStmt, VariableSetStmt) out_node, const VariableSetStmt *node); -static void _outVariableShowStmt(OUT_TYPE(VariableShowStmt, VariableShowStmt) out_node, const VariableShowStmt *node); -static void _outDiscardStmt(OUT_TYPE(DiscardStmt, DiscardStmt) out_node, const DiscardStmt *node); -static void _outCreateTrigStmt(OUT_TYPE(CreateTrigStmt, CreateTrigStmt) out_node, const CreateTrigStmt *node); -static void _outCreatePLangStmt(OUT_TYPE(CreatePLangStmt, CreatePLangStmt) out_node, const CreatePLangStmt *node); -static void _outCreateRoleStmt(OUT_TYPE(CreateRoleStmt, CreateRoleStmt) out_node, const CreateRoleStmt *node); -static void _outAlterRoleStmt(OUT_TYPE(AlterRoleStmt, AlterRoleStmt) out_node, const AlterRoleStmt *node); -static void _outDropRoleStmt(OUT_TYPE(DropRoleStmt, DropRoleStmt) out_node, const DropRoleStmt *node); -static void _outLockStmt(OUT_TYPE(LockStmt, LockStmt) out_node, const LockStmt *node); -static void _outConstraintsSetStmt(OUT_TYPE(ConstraintsSetStmt, ConstraintsSetStmt) out_node, const ConstraintsSetStmt *node); -static void _outReindexStmt(OUT_TYPE(ReindexStmt, ReindexStmt) out_node, const ReindexStmt *node); -static void _outCheckPointStmt(OUT_TYPE(CheckPointStmt, CheckPointStmt) out_node, const CheckPointStmt *node); -static void _outCreateSchemaStmt(OUT_TYPE(CreateSchemaStmt, CreateSchemaStmt) out_node, const CreateSchemaStmt *node); -static void _outAlterDatabaseStmt(OUT_TYPE(AlterDatabaseStmt, AlterDatabaseStmt) out_node, const AlterDatabaseStmt *node); -static void _outAlterDatabaseRefreshCollStmt(OUT_TYPE(AlterDatabaseRefreshCollStmt, AlterDatabaseRefreshCollStmt) out_node, const AlterDatabaseRefreshCollStmt *node); -static void _outAlterDatabaseSetStmt(OUT_TYPE(AlterDatabaseSetStmt, AlterDatabaseSetStmt) out_node, const AlterDatabaseSetStmt *node); -static void _outAlterRoleSetStmt(OUT_TYPE(AlterRoleSetStmt, AlterRoleSetStmt) out_node, const AlterRoleSetStmt *node); -static void _outCreateConversionStmt(OUT_TYPE(CreateConversionStmt, CreateConversionStmt) out_node, const CreateConversionStmt *node); -static void _outCreateCastStmt(OUT_TYPE(CreateCastStmt, CreateCastStmt) out_node, const CreateCastStmt *node); -static void _outCreateOpClassStmt(OUT_TYPE(CreateOpClassStmt, CreateOpClassStmt) out_node, const CreateOpClassStmt *node); -static void _outCreateOpFamilyStmt(OUT_TYPE(CreateOpFamilyStmt, CreateOpFamilyStmt) out_node, const CreateOpFamilyStmt *node); -static void _outAlterOpFamilyStmt(OUT_TYPE(AlterOpFamilyStmt, AlterOpFamilyStmt) out_node, const AlterOpFamilyStmt *node); -static void _outPrepareStmt(OUT_TYPE(PrepareStmt, PrepareStmt) out_node, const PrepareStmt *node); -static void _outExecuteStmt(OUT_TYPE(ExecuteStmt, ExecuteStmt) out_node, const ExecuteStmt *node); -static void _outDeallocateStmt(OUT_TYPE(DeallocateStmt, DeallocateStmt) out_node, const DeallocateStmt *node); -static void _outDeclareCursorStmt(OUT_TYPE(DeclareCursorStmt, DeclareCursorStmt) out_node, const DeclareCursorStmt *node); -static void _outCreateTableSpaceStmt(OUT_TYPE(CreateTableSpaceStmt, CreateTableSpaceStmt) out_node, const CreateTableSpaceStmt *node); -static void _outDropTableSpaceStmt(OUT_TYPE(DropTableSpaceStmt, DropTableSpaceStmt) out_node, const DropTableSpaceStmt *node); -static void _outAlterObjectDependsStmt(OUT_TYPE(AlterObjectDependsStmt, AlterObjectDependsStmt) out_node, const AlterObjectDependsStmt *node); -static void _outAlterObjectSchemaStmt(OUT_TYPE(AlterObjectSchemaStmt, AlterObjectSchemaStmt) out_node, const AlterObjectSchemaStmt *node); -static void _outAlterOwnerStmt(OUT_TYPE(AlterOwnerStmt, AlterOwnerStmt) out_node, const AlterOwnerStmt *node); -static void _outAlterOperatorStmt(OUT_TYPE(AlterOperatorStmt, AlterOperatorStmt) out_node, const AlterOperatorStmt *node); -static void _outAlterTypeStmt(OUT_TYPE(AlterTypeStmt, AlterTypeStmt) out_node, const AlterTypeStmt *node); -static void _outDropOwnedStmt(OUT_TYPE(DropOwnedStmt, DropOwnedStmt) out_node, const DropOwnedStmt *node); -static void _outReassignOwnedStmt(OUT_TYPE(ReassignOwnedStmt, ReassignOwnedStmt) out_node, const ReassignOwnedStmt *node); -static void _outCompositeTypeStmt(OUT_TYPE(CompositeTypeStmt, CompositeTypeStmt) out_node, const CompositeTypeStmt *node); -static void _outCreateEnumStmt(OUT_TYPE(CreateEnumStmt, CreateEnumStmt) out_node, const CreateEnumStmt *node); -static void _outCreateRangeStmt(OUT_TYPE(CreateRangeStmt, CreateRangeStmt) out_node, const CreateRangeStmt *node); -static void _outAlterEnumStmt(OUT_TYPE(AlterEnumStmt, AlterEnumStmt) out_node, const AlterEnumStmt *node); -static void _outAlterTSDictionaryStmt(OUT_TYPE(AlterTSDictionaryStmt, AlterTSDictionaryStmt) out_node, const AlterTSDictionaryStmt *node); -static void _outAlterTSConfigurationStmt(OUT_TYPE(AlterTSConfigurationStmt, AlterTSConfigurationStmt) out_node, const AlterTSConfigurationStmt *node); -static void _outCreateFdwStmt(OUT_TYPE(CreateFdwStmt, CreateFdwStmt) out_node, const CreateFdwStmt *node); -static void _outAlterFdwStmt(OUT_TYPE(AlterFdwStmt, AlterFdwStmt) out_node, const AlterFdwStmt *node); -static void _outCreateForeignServerStmt(OUT_TYPE(CreateForeignServerStmt, CreateForeignServerStmt) out_node, const CreateForeignServerStmt *node); -static void _outAlterForeignServerStmt(OUT_TYPE(AlterForeignServerStmt, AlterForeignServerStmt) out_node, const AlterForeignServerStmt *node); -static void _outCreateUserMappingStmt(OUT_TYPE(CreateUserMappingStmt, CreateUserMappingStmt) out_node, const CreateUserMappingStmt *node); -static void _outAlterUserMappingStmt(OUT_TYPE(AlterUserMappingStmt, AlterUserMappingStmt) out_node, const AlterUserMappingStmt *node); -static void _outDropUserMappingStmt(OUT_TYPE(DropUserMappingStmt, DropUserMappingStmt) out_node, const DropUserMappingStmt *node); -static void _outAlterTableSpaceOptionsStmt(OUT_TYPE(AlterTableSpaceOptionsStmt, AlterTableSpaceOptionsStmt) out_node, const AlterTableSpaceOptionsStmt *node); -static void _outAlterTableMoveAllStmt(OUT_TYPE(AlterTableMoveAllStmt, AlterTableMoveAllStmt) out_node, const AlterTableMoveAllStmt *node); -static void _outSecLabelStmt(OUT_TYPE(SecLabelStmt, SecLabelStmt) out_node, const SecLabelStmt *node); -static void _outCreateForeignTableStmt(OUT_TYPE(CreateForeignTableStmt, CreateForeignTableStmt) out_node, const CreateForeignTableStmt *node); -static void _outImportForeignSchemaStmt(OUT_TYPE(ImportForeignSchemaStmt, ImportForeignSchemaStmt) out_node, const ImportForeignSchemaStmt *node); -static void _outCreateExtensionStmt(OUT_TYPE(CreateExtensionStmt, CreateExtensionStmt) out_node, const CreateExtensionStmt *node); -static void _outAlterExtensionStmt(OUT_TYPE(AlterExtensionStmt, AlterExtensionStmt) out_node, const AlterExtensionStmt *node); -static void _outAlterExtensionContentsStmt(OUT_TYPE(AlterExtensionContentsStmt, AlterExtensionContentsStmt) out_node, const AlterExtensionContentsStmt *node); -static void _outCreateEventTrigStmt(OUT_TYPE(CreateEventTrigStmt, CreateEventTrigStmt) out_node, const CreateEventTrigStmt *node); -static void _outAlterEventTrigStmt(OUT_TYPE(AlterEventTrigStmt, AlterEventTrigStmt) out_node, const AlterEventTrigStmt *node); -static void _outRefreshMatViewStmt(OUT_TYPE(RefreshMatViewStmt, RefreshMatViewStmt) out_node, const RefreshMatViewStmt *node); -static void _outReplicaIdentityStmt(OUT_TYPE(ReplicaIdentityStmt, ReplicaIdentityStmt) out_node, const ReplicaIdentityStmt *node); -static void _outAlterSystemStmt(OUT_TYPE(AlterSystemStmt, AlterSystemStmt) out_node, const AlterSystemStmt *node); -static void _outCreatePolicyStmt(OUT_TYPE(CreatePolicyStmt, CreatePolicyStmt) out_node, const CreatePolicyStmt *node); -static void _outAlterPolicyStmt(OUT_TYPE(AlterPolicyStmt, AlterPolicyStmt) out_node, const AlterPolicyStmt *node); -static void _outCreateTransformStmt(OUT_TYPE(CreateTransformStmt, CreateTransformStmt) out_node, const CreateTransformStmt *node); -static void _outCreateAmStmt(OUT_TYPE(CreateAmStmt, CreateAmStmt) out_node, const CreateAmStmt *node); -static void _outCreatePublicationStmt(OUT_TYPE(CreatePublicationStmt, CreatePublicationStmt) out_node, const CreatePublicationStmt *node); -static void _outAlterPublicationStmt(OUT_TYPE(AlterPublicationStmt, AlterPublicationStmt) out_node, const AlterPublicationStmt *node); -static void _outCreateSubscriptionStmt(OUT_TYPE(CreateSubscriptionStmt, CreateSubscriptionStmt) out_node, const CreateSubscriptionStmt *node); -static void _outAlterSubscriptionStmt(OUT_TYPE(AlterSubscriptionStmt, AlterSubscriptionStmt) out_node, const AlterSubscriptionStmt *node); -static void _outDropSubscriptionStmt(OUT_TYPE(DropSubscriptionStmt, DropSubscriptionStmt) out_node, const DropSubscriptionStmt *node); -static void _outCreateStatsStmt(OUT_TYPE(CreateStatsStmt, CreateStatsStmt) out_node, const CreateStatsStmt *node); -static void _outAlterCollationStmt(OUT_TYPE(AlterCollationStmt, AlterCollationStmt) out_node, const AlterCollationStmt *node); -static void _outCallStmt(OUT_TYPE(CallStmt, CallStmt) out_node, const CallStmt *node); -static void _outAlterStatsStmt(OUT_TYPE(AlterStatsStmt, AlterStatsStmt) out_node, const AlterStatsStmt *node); -static void _outAExpr(OUT_TYPE(A_Expr, AExpr) out_node, const A_Expr *node); -static void _outColumnRef(OUT_TYPE(ColumnRef, ColumnRef) out_node, const ColumnRef *node); -static void _outParamRef(OUT_TYPE(ParamRef, ParamRef) out_node, const ParamRef *node); -static void _outFuncCall(OUT_TYPE(FuncCall, FuncCall) out_node, const FuncCall *node); -static void _outAStar(OUT_TYPE(A_Star, AStar) out_node, const A_Star *node); -static void _outAIndices(OUT_TYPE(A_Indices, AIndices) out_node, const A_Indices *node); -static void _outAIndirection(OUT_TYPE(A_Indirection, AIndirection) out_node, const A_Indirection *node); -static void _outAArrayExpr(OUT_TYPE(A_ArrayExpr, AArrayExpr) out_node, const A_ArrayExpr *node); -static void _outResTarget(OUT_TYPE(ResTarget, ResTarget) out_node, const ResTarget *node); -static void _outMultiAssignRef(OUT_TYPE(MultiAssignRef, MultiAssignRef) out_node, const MultiAssignRef *node); -static void _outTypeCast(OUT_TYPE(TypeCast, TypeCast) out_node, const TypeCast *node); -static void _outCollateClause(OUT_TYPE(CollateClause, CollateClause) out_node, const CollateClause *node); -static void _outSortBy(OUT_TYPE(SortBy, SortBy) out_node, const SortBy *node); -static void _outWindowDef(OUT_TYPE(WindowDef, WindowDef) out_node, const WindowDef *node); -static void _outRangeSubselect(OUT_TYPE(RangeSubselect, RangeSubselect) out_node, const RangeSubselect *node); -static void _outRangeFunction(OUT_TYPE(RangeFunction, RangeFunction) out_node, const RangeFunction *node); -static void _outRangeTableSample(OUT_TYPE(RangeTableSample, RangeTableSample) out_node, const RangeTableSample *node); -static void _outRangeTableFunc(OUT_TYPE(RangeTableFunc, RangeTableFunc) out_node, const RangeTableFunc *node); -static void _outRangeTableFuncCol(OUT_TYPE(RangeTableFuncCol, RangeTableFuncCol) out_node, const RangeTableFuncCol *node); -static void _outTypeName(OUT_TYPE(TypeName, TypeName) out_node, const TypeName *node); -static void _outColumnDef(OUT_TYPE(ColumnDef, ColumnDef) out_node, const ColumnDef *node); -static void _outIndexElem(OUT_TYPE(IndexElem, IndexElem) out_node, const IndexElem *node); -static void _outStatsElem(OUT_TYPE(StatsElem, StatsElem) out_node, const StatsElem *node); -static void _outConstraint(OUT_TYPE(Constraint, Constraint) out_node, const Constraint *node); -static void _outDefElem(OUT_TYPE(DefElem, DefElem) out_node, const DefElem *node); -static void _outRangeTblEntry(OUT_TYPE(RangeTblEntry, RangeTblEntry) out_node, const RangeTblEntry *node); -static void _outRangeTblFunction(OUT_TYPE(RangeTblFunction, RangeTblFunction) out_node, const RangeTblFunction *node); -static void _outTableSampleClause(OUT_TYPE(TableSampleClause, TableSampleClause) out_node, const TableSampleClause *node); -static void _outWithCheckOption(OUT_TYPE(WithCheckOption, WithCheckOption) out_node, const WithCheckOption *node); -static void _outSortGroupClause(OUT_TYPE(SortGroupClause, SortGroupClause) out_node, const SortGroupClause *node); -static void _outGroupingSet(OUT_TYPE(GroupingSet, GroupingSet) out_node, const GroupingSet *node); -static void _outWindowClause(OUT_TYPE(WindowClause, WindowClause) out_node, const WindowClause *node); -static void _outObjectWithArgs(OUT_TYPE(ObjectWithArgs, ObjectWithArgs) out_node, const ObjectWithArgs *node); -static void _outAccessPriv(OUT_TYPE(AccessPriv, AccessPriv) out_node, const AccessPriv *node); -static void _outCreateOpClassItem(OUT_TYPE(CreateOpClassItem, CreateOpClassItem) out_node, const CreateOpClassItem *node); -static void _outTableLikeClause(OUT_TYPE(TableLikeClause, TableLikeClause) out_node, const TableLikeClause *node); -static void _outFunctionParameter(OUT_TYPE(FunctionParameter, FunctionParameter) out_node, const FunctionParameter *node); -static void _outLockingClause(OUT_TYPE(LockingClause, LockingClause) out_node, const LockingClause *node); -static void _outRowMarkClause(OUT_TYPE(RowMarkClause, RowMarkClause) out_node, const RowMarkClause *node); -static void _outXmlSerialize(OUT_TYPE(XmlSerialize, XmlSerialize) out_node, const XmlSerialize *node); -static void _outWithClause(OUT_TYPE(WithClause, WithClause) out_node, const WithClause *node); -static void _outInferClause(OUT_TYPE(InferClause, InferClause) out_node, const InferClause *node); -static void _outOnConflictClause(OUT_TYPE(OnConflictClause, OnConflictClause) out_node, const OnConflictClause *node); -static void _outCTESearchClause(OUT_TYPE(CTESearchClause, CTESearchClause) out_node, const CTESearchClause *node); -static void _outCTECycleClause(OUT_TYPE(CTECycleClause, CTECycleClause) out_node, const CTECycleClause *node); -static void _outCommonTableExpr(OUT_TYPE(CommonTableExpr, CommonTableExpr) out_node, const CommonTableExpr *node); -static void _outMergeWhenClause(OUT_TYPE(MergeWhenClause, MergeWhenClause) out_node, const MergeWhenClause *node); -static void _outRoleSpec(OUT_TYPE(RoleSpec, RoleSpec) out_node, const RoleSpec *node); -static void _outTriggerTransition(OUT_TYPE(TriggerTransition, TriggerTransition) out_node, const TriggerTransition *node); -static void _outPartitionElem(OUT_TYPE(PartitionElem, PartitionElem) out_node, const PartitionElem *node); -static void _outPartitionSpec(OUT_TYPE(PartitionSpec, PartitionSpec) out_node, const PartitionSpec *node); -static void _outPartitionBoundSpec(OUT_TYPE(PartitionBoundSpec, PartitionBoundSpec) out_node, const PartitionBoundSpec *node); -static void _outPartitionRangeDatum(OUT_TYPE(PartitionRangeDatum, PartitionRangeDatum) out_node, const PartitionRangeDatum *node); -static void _outPartitionCmd(OUT_TYPE(PartitionCmd, PartitionCmd) out_node, const PartitionCmd *node); -static void _outVacuumRelation(OUT_TYPE(VacuumRelation, VacuumRelation) out_node, const VacuumRelation *node); -static void _outPublicationObjSpec(OUT_TYPE(PublicationObjSpec, PublicationObjSpec) out_node, const PublicationObjSpec *node); -static void _outPublicationTable(OUT_TYPE(PublicationTable, PublicationTable) out_node, const PublicationTable *node); -static void _outInlineCodeBlock(OUT_TYPE(InlineCodeBlock, InlineCodeBlock) out_node, const InlineCodeBlock *node); -static void _outCallContext(OUT_TYPE(CallContext, CallContext) out_node, const CallContext *node); - - -static void -_outAlias(OUT_TYPE(Alias, Alias) out, const Alias *node) -{ - WRITE_STRING_FIELD(aliasname, aliasname, aliasname); - WRITE_LIST_FIELD(colnames, colnames, colnames); -} - -static void -_outRangeVar(OUT_TYPE(RangeVar, RangeVar) out, const RangeVar *node) -{ - WRITE_STRING_FIELD(catalogname, catalogname, catalogname); - WRITE_STRING_FIELD(schemaname, schemaname, schemaname); - WRITE_STRING_FIELD(relname, relname, relname); - WRITE_BOOL_FIELD(inh, inh, inh); - WRITE_CHAR_FIELD(relpersistence, relpersistence, relpersistence); - WRITE_SPECIFIC_NODE_PTR_FIELD(Alias, alias, alias, alias, alias); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outTableFunc(OUT_TYPE(TableFunc, TableFunc) out, const TableFunc *node) -{ - WRITE_LIST_FIELD(ns_uris, ns_uris, ns_uris); - WRITE_LIST_FIELD(ns_names, ns_names, ns_names); - WRITE_NODE_PTR_FIELD(docexpr, docexpr, docexpr); - WRITE_NODE_PTR_FIELD(rowexpr, rowexpr, rowexpr); - WRITE_LIST_FIELD(colnames, colnames, colnames); - WRITE_LIST_FIELD(coltypes, coltypes, coltypes); - WRITE_LIST_FIELD(coltypmods, coltypmods, coltypmods); - WRITE_LIST_FIELD(colcollations, colcollations, colcollations); - WRITE_LIST_FIELD(colexprs, colexprs, colexprs); - WRITE_LIST_FIELD(coldefexprs, coldefexprs, coldefexprs); - WRITE_BITMAPSET_FIELD(notnulls, notnulls, notnulls); - WRITE_INT_FIELD(ordinalitycol, ordinalitycol, ordinalitycol); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outVar(OUT_TYPE(Var, Var) out, const Var *node) -{ - WRITE_INT_FIELD(varno, varno, varno); - WRITE_INT_FIELD(varattno, varattno, varattno); - WRITE_UINT_FIELD(vartype, vartype, vartype); - WRITE_INT_FIELD(vartypmod, vartypmod, vartypmod); - WRITE_UINT_FIELD(varcollid, varcollid, varcollid); - WRITE_UINT_FIELD(varlevelsup, varlevelsup, varlevelsup); - WRITE_UINT_FIELD(varnosyn, varnosyn, varnosyn); - WRITE_INT_FIELD(varattnosyn, varattnosyn, varattnosyn); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outParam(OUT_TYPE(Param, Param) out, const Param *node) -{ - WRITE_ENUM_FIELD(ParamKind, paramkind, paramkind, paramkind); - WRITE_INT_FIELD(paramid, paramid, paramid); - WRITE_UINT_FIELD(paramtype, paramtype, paramtype); - WRITE_INT_FIELD(paramtypmod, paramtypmod, paramtypmod); - WRITE_UINT_FIELD(paramcollid, paramcollid, paramcollid); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outAggref(OUT_TYPE(Aggref, Aggref) out, const Aggref *node) -{ - WRITE_UINT_FIELD(aggfnoid, aggfnoid, aggfnoid); - WRITE_UINT_FIELD(aggtype, aggtype, aggtype); - WRITE_UINT_FIELD(aggcollid, aggcollid, aggcollid); - WRITE_UINT_FIELD(inputcollid, inputcollid, inputcollid); - WRITE_UINT_FIELD(aggtranstype, aggtranstype, aggtranstype); - WRITE_LIST_FIELD(aggargtypes, aggargtypes, aggargtypes); - WRITE_LIST_FIELD(aggdirectargs, aggdirectargs, aggdirectargs); - WRITE_LIST_FIELD(args, args, args); - WRITE_LIST_FIELD(aggorder, aggorder, aggorder); - WRITE_LIST_FIELD(aggdistinct, aggdistinct, aggdistinct); - WRITE_NODE_PTR_FIELD(aggfilter, aggfilter, aggfilter); - WRITE_BOOL_FIELD(aggstar, aggstar, aggstar); - WRITE_BOOL_FIELD(aggvariadic, aggvariadic, aggvariadic); - WRITE_CHAR_FIELD(aggkind, aggkind, aggkind); - WRITE_UINT_FIELD(agglevelsup, agglevelsup, agglevelsup); - WRITE_ENUM_FIELD(AggSplit, aggsplit, aggsplit, aggsplit); - WRITE_INT_FIELD(aggno, aggno, aggno); - WRITE_INT_FIELD(aggtransno, aggtransno, aggtransno); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outGroupingFunc(OUT_TYPE(GroupingFunc, GroupingFunc) out, const GroupingFunc *node) -{ - WRITE_LIST_FIELD(args, args, args); - WRITE_LIST_FIELD(refs, refs, refs); - WRITE_LIST_FIELD(cols, cols, cols); - WRITE_UINT_FIELD(agglevelsup, agglevelsup, agglevelsup); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outWindowFunc(OUT_TYPE(WindowFunc, WindowFunc) out, const WindowFunc *node) -{ - WRITE_UINT_FIELD(winfnoid, winfnoid, winfnoid); - WRITE_UINT_FIELD(wintype, wintype, wintype); - WRITE_UINT_FIELD(wincollid, wincollid, wincollid); - WRITE_UINT_FIELD(inputcollid, inputcollid, inputcollid); - WRITE_LIST_FIELD(args, args, args); - WRITE_NODE_PTR_FIELD(aggfilter, aggfilter, aggfilter); - WRITE_UINT_FIELD(winref, winref, winref); - WRITE_BOOL_FIELD(winstar, winstar, winstar); - WRITE_BOOL_FIELD(winagg, winagg, winagg); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outSubscriptingRef(OUT_TYPE(SubscriptingRef, SubscriptingRef) out, const SubscriptingRef *node) -{ - WRITE_UINT_FIELD(refcontainertype, refcontainertype, refcontainertype); - WRITE_UINT_FIELD(refelemtype, refelemtype, refelemtype); - WRITE_UINT_FIELD(refrestype, refrestype, refrestype); - WRITE_INT_FIELD(reftypmod, reftypmod, reftypmod); - WRITE_UINT_FIELD(refcollid, refcollid, refcollid); - WRITE_LIST_FIELD(refupperindexpr, refupperindexpr, refupperindexpr); - WRITE_LIST_FIELD(reflowerindexpr, reflowerindexpr, reflowerindexpr); - WRITE_NODE_PTR_FIELD(refexpr, refexpr, refexpr); - WRITE_NODE_PTR_FIELD(refassgnexpr, refassgnexpr, refassgnexpr); -} - -static void -_outFuncExpr(OUT_TYPE(FuncExpr, FuncExpr) out, const FuncExpr *node) -{ - WRITE_UINT_FIELD(funcid, funcid, funcid); - WRITE_UINT_FIELD(funcresulttype, funcresulttype, funcresulttype); - WRITE_BOOL_FIELD(funcretset, funcretset, funcretset); - WRITE_BOOL_FIELD(funcvariadic, funcvariadic, funcvariadic); - WRITE_ENUM_FIELD(CoercionForm, funcformat, funcformat, funcformat); - WRITE_UINT_FIELD(funccollid, funccollid, funccollid); - WRITE_UINT_FIELD(inputcollid, inputcollid, inputcollid); - WRITE_LIST_FIELD(args, args, args); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outNamedArgExpr(OUT_TYPE(NamedArgExpr, NamedArgExpr) out, const NamedArgExpr *node) -{ - WRITE_NODE_PTR_FIELD(arg, arg, arg); - WRITE_STRING_FIELD(name, name, name); - WRITE_INT_FIELD(argnumber, argnumber, argnumber); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outOpExpr(OUT_TYPE(OpExpr, OpExpr) out, const OpExpr *node) -{ - WRITE_UINT_FIELD(opno, opno, opno); - WRITE_UINT_FIELD(opfuncid, opfuncid, opfuncid); - WRITE_UINT_FIELD(opresulttype, opresulttype, opresulttype); - WRITE_BOOL_FIELD(opretset, opretset, opretset); - WRITE_UINT_FIELD(opcollid, opcollid, opcollid); - WRITE_UINT_FIELD(inputcollid, inputcollid, inputcollid); - WRITE_LIST_FIELD(args, args, args); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outDistinctExpr(OUT_TYPE(DistinctExpr, DistinctExpr) out, const DistinctExpr *node) -{ - WRITE_UINT_FIELD(opno, opno, opno); - WRITE_UINT_FIELD(opfuncid, opfuncid, opfuncid); - WRITE_UINT_FIELD(opresulttype, opresulttype, opresulttype); - WRITE_BOOL_FIELD(opretset, opretset, opretset); - WRITE_UINT_FIELD(opcollid, opcollid, opcollid); - WRITE_UINT_FIELD(inputcollid, inputcollid, inputcollid); - WRITE_LIST_FIELD(args, args, args); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outNullIfExpr(OUT_TYPE(NullIfExpr, NullIfExpr) out, const NullIfExpr *node) -{ - WRITE_UINT_FIELD(opno, opno, opno); - WRITE_UINT_FIELD(opfuncid, opfuncid, opfuncid); - WRITE_UINT_FIELD(opresulttype, opresulttype, opresulttype); - WRITE_BOOL_FIELD(opretset, opretset, opretset); - WRITE_UINT_FIELD(opcollid, opcollid, opcollid); - WRITE_UINT_FIELD(inputcollid, inputcollid, inputcollid); - WRITE_LIST_FIELD(args, args, args); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outScalarArrayOpExpr(OUT_TYPE(ScalarArrayOpExpr, ScalarArrayOpExpr) out, const ScalarArrayOpExpr *node) -{ - WRITE_UINT_FIELD(opno, opno, opno); - WRITE_UINT_FIELD(opfuncid, opfuncid, opfuncid); - WRITE_UINT_FIELD(hashfuncid, hashfuncid, hashfuncid); - WRITE_UINT_FIELD(negfuncid, negfuncid, negfuncid); - WRITE_BOOL_FIELD(use_or, useOr, useOr); - WRITE_UINT_FIELD(inputcollid, inputcollid, inputcollid); - WRITE_LIST_FIELD(args, args, args); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outBoolExpr(OUT_TYPE(BoolExpr, BoolExpr) out, const BoolExpr *node) -{ - WRITE_ENUM_FIELD(BoolExprType, boolop, boolop, boolop); - WRITE_LIST_FIELD(args, args, args); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outSubLink(OUT_TYPE(SubLink, SubLink) out, const SubLink *node) -{ - WRITE_ENUM_FIELD(SubLinkType, sub_link_type, subLinkType, subLinkType); - WRITE_INT_FIELD(sub_link_id, subLinkId, subLinkId); - WRITE_NODE_PTR_FIELD(testexpr, testexpr, testexpr); - WRITE_LIST_FIELD(oper_name, operName, operName); - WRITE_NODE_PTR_FIELD(subselect, subselect, subselect); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outSubPlan(OUT_TYPE(SubPlan, SubPlan) out, const SubPlan *node) -{ - WRITE_ENUM_FIELD(SubLinkType, sub_link_type, subLinkType, subLinkType); - WRITE_NODE_PTR_FIELD(testexpr, testexpr, testexpr); - WRITE_LIST_FIELD(param_ids, paramIds, paramIds); - WRITE_INT_FIELD(plan_id, plan_id, plan_id); - WRITE_STRING_FIELD(plan_name, plan_name, plan_name); - WRITE_UINT_FIELD(first_col_type, firstColType, firstColType); - WRITE_INT_FIELD(first_col_typmod, firstColTypmod, firstColTypmod); - WRITE_UINT_FIELD(first_col_collation, firstColCollation, firstColCollation); - WRITE_BOOL_FIELD(use_hash_table, useHashTable, useHashTable); - WRITE_BOOL_FIELD(unknown_eq_false, unknownEqFalse, unknownEqFalse); - WRITE_BOOL_FIELD(parallel_safe, parallel_safe, parallel_safe); - WRITE_LIST_FIELD(set_param, setParam, setParam); - WRITE_LIST_FIELD(par_param, parParam, parParam); - WRITE_LIST_FIELD(args, args, args); - WRITE_FLOAT_FIELD(startup_cost, startup_cost, startup_cost); - WRITE_FLOAT_FIELD(per_call_cost, per_call_cost, per_call_cost); -} - -static void -_outAlternativeSubPlan(OUT_TYPE(AlternativeSubPlan, AlternativeSubPlan) out, const AlternativeSubPlan *node) -{ - WRITE_LIST_FIELD(subplans, subplans, subplans); -} - -static void -_outFieldSelect(OUT_TYPE(FieldSelect, FieldSelect) out, const FieldSelect *node) -{ - WRITE_NODE_PTR_FIELD(arg, arg, arg); - WRITE_INT_FIELD(fieldnum, fieldnum, fieldnum); - WRITE_UINT_FIELD(resulttype, resulttype, resulttype); - WRITE_INT_FIELD(resulttypmod, resulttypmod, resulttypmod); - WRITE_UINT_FIELD(resultcollid, resultcollid, resultcollid); -} - -static void -_outFieldStore(OUT_TYPE(FieldStore, FieldStore) out, const FieldStore *node) -{ - WRITE_NODE_PTR_FIELD(arg, arg, arg); - WRITE_LIST_FIELD(newvals, newvals, newvals); - WRITE_LIST_FIELD(fieldnums, fieldnums, fieldnums); - WRITE_UINT_FIELD(resulttype, resulttype, resulttype); -} - -static void -_outRelabelType(OUT_TYPE(RelabelType, RelabelType) out, const RelabelType *node) -{ - WRITE_NODE_PTR_FIELD(arg, arg, arg); - WRITE_UINT_FIELD(resulttype, resulttype, resulttype); - WRITE_INT_FIELD(resulttypmod, resulttypmod, resulttypmod); - WRITE_UINT_FIELD(resultcollid, resultcollid, resultcollid); - WRITE_ENUM_FIELD(CoercionForm, relabelformat, relabelformat, relabelformat); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outCoerceViaIO(OUT_TYPE(CoerceViaIO, CoerceViaIO) out, const CoerceViaIO *node) -{ - WRITE_NODE_PTR_FIELD(arg, arg, arg); - WRITE_UINT_FIELD(resulttype, resulttype, resulttype); - WRITE_UINT_FIELD(resultcollid, resultcollid, resultcollid); - WRITE_ENUM_FIELD(CoercionForm, coerceformat, coerceformat, coerceformat); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outArrayCoerceExpr(OUT_TYPE(ArrayCoerceExpr, ArrayCoerceExpr) out, const ArrayCoerceExpr *node) -{ - WRITE_NODE_PTR_FIELD(arg, arg, arg); - WRITE_NODE_PTR_FIELD(elemexpr, elemexpr, elemexpr); - WRITE_UINT_FIELD(resulttype, resulttype, resulttype); - WRITE_INT_FIELD(resulttypmod, resulttypmod, resulttypmod); - WRITE_UINT_FIELD(resultcollid, resultcollid, resultcollid); - WRITE_ENUM_FIELD(CoercionForm, coerceformat, coerceformat, coerceformat); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outConvertRowtypeExpr(OUT_TYPE(ConvertRowtypeExpr, ConvertRowtypeExpr) out, const ConvertRowtypeExpr *node) -{ - WRITE_NODE_PTR_FIELD(arg, arg, arg); - WRITE_UINT_FIELD(resulttype, resulttype, resulttype); - WRITE_ENUM_FIELD(CoercionForm, convertformat, convertformat, convertformat); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outCollateExpr(OUT_TYPE(CollateExpr, CollateExpr) out, const CollateExpr *node) -{ - WRITE_NODE_PTR_FIELD(arg, arg, arg); - WRITE_UINT_FIELD(coll_oid, collOid, collOid); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outCaseExpr(OUT_TYPE(CaseExpr, CaseExpr) out, const CaseExpr *node) -{ - WRITE_UINT_FIELD(casetype, casetype, casetype); - WRITE_UINT_FIELD(casecollid, casecollid, casecollid); - WRITE_NODE_PTR_FIELD(arg, arg, arg); - WRITE_LIST_FIELD(args, args, args); - WRITE_NODE_PTR_FIELD(defresult, defresult, defresult); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outCaseWhen(OUT_TYPE(CaseWhen, CaseWhen) out, const CaseWhen *node) -{ - WRITE_NODE_PTR_FIELD(expr, expr, expr); - WRITE_NODE_PTR_FIELD(result, result, result); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outCaseTestExpr(OUT_TYPE(CaseTestExpr, CaseTestExpr) out, const CaseTestExpr *node) -{ - WRITE_UINT_FIELD(type_id, typeId, typeId); - WRITE_INT_FIELD(type_mod, typeMod, typeMod); - WRITE_UINT_FIELD(collation, collation, collation); -} - -static void -_outArrayExpr(OUT_TYPE(ArrayExpr, ArrayExpr) out, const ArrayExpr *node) -{ - WRITE_UINT_FIELD(array_typeid, array_typeid, array_typeid); - WRITE_UINT_FIELD(array_collid, array_collid, array_collid); - WRITE_UINT_FIELD(element_typeid, element_typeid, element_typeid); - WRITE_LIST_FIELD(elements, elements, elements); - WRITE_BOOL_FIELD(multidims, multidims, multidims); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outRowExpr(OUT_TYPE(RowExpr, RowExpr) out, const RowExpr *node) -{ - WRITE_LIST_FIELD(args, args, args); - WRITE_UINT_FIELD(row_typeid, row_typeid, row_typeid); - WRITE_ENUM_FIELD(CoercionForm, row_format, row_format, row_format); - WRITE_LIST_FIELD(colnames, colnames, colnames); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outRowCompareExpr(OUT_TYPE(RowCompareExpr, RowCompareExpr) out, const RowCompareExpr *node) -{ - WRITE_ENUM_FIELD(RowCompareType, rctype, rctype, rctype); - WRITE_LIST_FIELD(opnos, opnos, opnos); - WRITE_LIST_FIELD(opfamilies, opfamilies, opfamilies); - WRITE_LIST_FIELD(inputcollids, inputcollids, inputcollids); - WRITE_LIST_FIELD(largs, largs, largs); - WRITE_LIST_FIELD(rargs, rargs, rargs); -} - -static void -_outCoalesceExpr(OUT_TYPE(CoalesceExpr, CoalesceExpr) out, const CoalesceExpr *node) -{ - WRITE_UINT_FIELD(coalescetype, coalescetype, coalescetype); - WRITE_UINT_FIELD(coalescecollid, coalescecollid, coalescecollid); - WRITE_LIST_FIELD(args, args, args); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outMinMaxExpr(OUT_TYPE(MinMaxExpr, MinMaxExpr) out, const MinMaxExpr *node) -{ - WRITE_UINT_FIELD(minmaxtype, minmaxtype, minmaxtype); - WRITE_UINT_FIELD(minmaxcollid, minmaxcollid, minmaxcollid); - WRITE_UINT_FIELD(inputcollid, inputcollid, inputcollid); - WRITE_ENUM_FIELD(MinMaxOp, op, op, op); - WRITE_LIST_FIELD(args, args, args); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outSQLValueFunction(OUT_TYPE(SQLValueFunction, SQLValueFunction) out, const SQLValueFunction *node) -{ - WRITE_ENUM_FIELD(SQLValueFunctionOp, op, op, op); - WRITE_UINT_FIELD(type, type, type); - WRITE_INT_FIELD(typmod, typmod, typmod); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outXmlExpr(OUT_TYPE(XmlExpr, XmlExpr) out, const XmlExpr *node) -{ - WRITE_ENUM_FIELD(XmlExprOp, op, op, op); - WRITE_STRING_FIELD(name, name, name); - WRITE_LIST_FIELD(named_args, named_args, named_args); - WRITE_LIST_FIELD(arg_names, arg_names, arg_names); - WRITE_LIST_FIELD(args, args, args); - WRITE_ENUM_FIELD(XmlOptionType, xmloption, xmloption, xmloption); - WRITE_UINT_FIELD(type, type, type); - WRITE_INT_FIELD(typmod, typmod, typmod); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outNullTest(OUT_TYPE(NullTest, NullTest) out, const NullTest *node) -{ - WRITE_NODE_PTR_FIELD(arg, arg, arg); - WRITE_ENUM_FIELD(NullTestType, nulltesttype, nulltesttype, nulltesttype); - WRITE_BOOL_FIELD(argisrow, argisrow, argisrow); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outBooleanTest(OUT_TYPE(BooleanTest, BooleanTest) out, const BooleanTest *node) -{ - WRITE_NODE_PTR_FIELD(arg, arg, arg); - WRITE_ENUM_FIELD(BoolTestType, booltesttype, booltesttype, booltesttype); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outCoerceToDomain(OUT_TYPE(CoerceToDomain, CoerceToDomain) out, const CoerceToDomain *node) -{ - WRITE_NODE_PTR_FIELD(arg, arg, arg); - WRITE_UINT_FIELD(resulttype, resulttype, resulttype); - WRITE_INT_FIELD(resulttypmod, resulttypmod, resulttypmod); - WRITE_UINT_FIELD(resultcollid, resultcollid, resultcollid); - WRITE_ENUM_FIELD(CoercionForm, coercionformat, coercionformat, coercionformat); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outCoerceToDomainValue(OUT_TYPE(CoerceToDomainValue, CoerceToDomainValue) out, const CoerceToDomainValue *node) -{ - WRITE_UINT_FIELD(type_id, typeId, typeId); - WRITE_INT_FIELD(type_mod, typeMod, typeMod); - WRITE_UINT_FIELD(collation, collation, collation); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outSetToDefault(OUT_TYPE(SetToDefault, SetToDefault) out, const SetToDefault *node) -{ - WRITE_UINT_FIELD(type_id, typeId, typeId); - WRITE_INT_FIELD(type_mod, typeMod, typeMod); - WRITE_UINT_FIELD(collation, collation, collation); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outCurrentOfExpr(OUT_TYPE(CurrentOfExpr, CurrentOfExpr) out, const CurrentOfExpr *node) -{ - WRITE_UINT_FIELD(cvarno, cvarno, cvarno); - WRITE_STRING_FIELD(cursor_name, cursor_name, cursor_name); - WRITE_INT_FIELD(cursor_param, cursor_param, cursor_param); -} - -static void -_outNextValueExpr(OUT_TYPE(NextValueExpr, NextValueExpr) out, const NextValueExpr *node) -{ - WRITE_UINT_FIELD(seqid, seqid, seqid); - WRITE_UINT_FIELD(type_id, typeId, typeId); -} - -static void -_outInferenceElem(OUT_TYPE(InferenceElem, InferenceElem) out, const InferenceElem *node) -{ - WRITE_NODE_PTR_FIELD(expr, expr, expr); - WRITE_UINT_FIELD(infercollid, infercollid, infercollid); - WRITE_UINT_FIELD(inferopclass, inferopclass, inferopclass); -} - -static void -_outTargetEntry(OUT_TYPE(TargetEntry, TargetEntry) out, const TargetEntry *node) -{ - WRITE_NODE_PTR_FIELD(expr, expr, expr); - WRITE_INT_FIELD(resno, resno, resno); - WRITE_STRING_FIELD(resname, resname, resname); - WRITE_UINT_FIELD(ressortgroupref, ressortgroupref, ressortgroupref); - WRITE_UINT_FIELD(resorigtbl, resorigtbl, resorigtbl); - WRITE_INT_FIELD(resorigcol, resorigcol, resorigcol); - WRITE_BOOL_FIELD(resjunk, resjunk, resjunk); -} - -static void -_outRangeTblRef(OUT_TYPE(RangeTblRef, RangeTblRef) out, const RangeTblRef *node) -{ - WRITE_INT_FIELD(rtindex, rtindex, rtindex); -} - -static void -_outJoinExpr(OUT_TYPE(JoinExpr, JoinExpr) out, const JoinExpr *node) -{ - WRITE_ENUM_FIELD(JoinType, jointype, jointype, jointype); - WRITE_BOOL_FIELD(is_natural, isNatural, isNatural); - WRITE_NODE_PTR_FIELD(larg, larg, larg); - WRITE_NODE_PTR_FIELD(rarg, rarg, rarg); - WRITE_LIST_FIELD(using_clause, usingClause, usingClause); - WRITE_SPECIFIC_NODE_PTR_FIELD(Alias, alias, join_using_alias, join_using_alias, join_using_alias); - WRITE_NODE_PTR_FIELD(quals, quals, quals); - WRITE_SPECIFIC_NODE_PTR_FIELD(Alias, alias, alias, alias, alias); - WRITE_INT_FIELD(rtindex, rtindex, rtindex); -} - -static void -_outFromExpr(OUT_TYPE(FromExpr, FromExpr) out, const FromExpr *node) -{ - WRITE_LIST_FIELD(fromlist, fromlist, fromlist); - WRITE_NODE_PTR_FIELD(quals, quals, quals); -} - -static void -_outOnConflictExpr(OUT_TYPE(OnConflictExpr, OnConflictExpr) out, const OnConflictExpr *node) -{ - WRITE_ENUM_FIELD(OnConflictAction, action, action, action); - WRITE_LIST_FIELD(arbiter_elems, arbiterElems, arbiterElems); - WRITE_NODE_PTR_FIELD(arbiter_where, arbiterWhere, arbiterWhere); - WRITE_UINT_FIELD(constraint, constraint, constraint); - WRITE_LIST_FIELD(on_conflict_set, onConflictSet, onConflictSet); - WRITE_NODE_PTR_FIELD(on_conflict_where, onConflictWhere, onConflictWhere); - WRITE_INT_FIELD(excl_rel_index, exclRelIndex, exclRelIndex); - WRITE_LIST_FIELD(excl_rel_tlist, exclRelTlist, exclRelTlist); -} - -static void -_outIntoClause(OUT_TYPE(IntoClause, IntoClause) out, const IntoClause *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, rel, rel, rel); - WRITE_LIST_FIELD(col_names, colNames, colNames); - WRITE_STRING_FIELD(access_method, accessMethod, accessMethod); - WRITE_LIST_FIELD(options, options, options); - WRITE_ENUM_FIELD(OnCommitAction, on_commit, onCommit, onCommit); - WRITE_STRING_FIELD(table_space_name, tableSpaceName, tableSpaceName); - WRITE_NODE_PTR_FIELD(view_query, viewQuery, viewQuery); - WRITE_BOOL_FIELD(skip_data, skipData, skipData); -} - -static void -_outMergeAction(OUT_TYPE(MergeAction, MergeAction) out, const MergeAction *node) -{ - WRITE_BOOL_FIELD(matched, matched, matched); - WRITE_ENUM_FIELD(CmdType, command_type, commandType, commandType); - WRITE_ENUM_FIELD(OverridingKind, override, override, override); - WRITE_NODE_PTR_FIELD(qual, qual, qual); - WRITE_LIST_FIELD(target_list, targetList, targetList); - WRITE_LIST_FIELD(update_colnos, updateColnos, updateColnos); -} - -static void -_outRawStmt(OUT_TYPE(RawStmt, RawStmt) out, const RawStmt *node) -{ - WRITE_NODE_PTR_FIELD(stmt, stmt, stmt); - WRITE_INT_FIELD(stmt_location, stmt_location, stmt_location); - WRITE_INT_FIELD(stmt_len, stmt_len, stmt_len); -} - -static void -_outQuery(OUT_TYPE(Query, Query) out, const Query *node) -{ - WRITE_ENUM_FIELD(CmdType, command_type, commandType, commandType); - WRITE_ENUM_FIELD(QuerySource, query_source, querySource, querySource); - WRITE_BOOL_FIELD(can_set_tag, canSetTag, canSetTag); - WRITE_NODE_PTR_FIELD(utility_stmt, utilityStmt, utilityStmt); - WRITE_INT_FIELD(result_relation, resultRelation, resultRelation); - WRITE_BOOL_FIELD(has_aggs, hasAggs, hasAggs); - WRITE_BOOL_FIELD(has_window_funcs, hasWindowFuncs, hasWindowFuncs); - WRITE_BOOL_FIELD(has_target_srfs, hasTargetSRFs, hasTargetSRFs); - WRITE_BOOL_FIELD(has_sub_links, hasSubLinks, hasSubLinks); - WRITE_BOOL_FIELD(has_distinct_on, hasDistinctOn, hasDistinctOn); - WRITE_BOOL_FIELD(has_recursive, hasRecursive, hasRecursive); - WRITE_BOOL_FIELD(has_modifying_cte, hasModifyingCTE, hasModifyingCTE); - WRITE_BOOL_FIELD(has_for_update, hasForUpdate, hasForUpdate); - WRITE_BOOL_FIELD(has_row_security, hasRowSecurity, hasRowSecurity); - WRITE_BOOL_FIELD(is_return, isReturn, isReturn); - WRITE_LIST_FIELD(cte_list, cteList, cteList); - WRITE_LIST_FIELD(rtable, rtable, rtable); - WRITE_SPECIFIC_NODE_PTR_FIELD(FromExpr, from_expr, jointree, jointree, jointree); - WRITE_LIST_FIELD(merge_action_list, mergeActionList, mergeActionList); - WRITE_BOOL_FIELD(merge_use_outer_join, mergeUseOuterJoin, mergeUseOuterJoin); - WRITE_LIST_FIELD(target_list, targetList, targetList); - WRITE_ENUM_FIELD(OverridingKind, override, override, override); - WRITE_SPECIFIC_NODE_PTR_FIELD(OnConflictExpr, on_conflict_expr, on_conflict, onConflict, onConflict); - WRITE_LIST_FIELD(returning_list, returningList, returningList); - WRITE_LIST_FIELD(group_clause, groupClause, groupClause); - WRITE_BOOL_FIELD(group_distinct, groupDistinct, groupDistinct); - WRITE_LIST_FIELD(grouping_sets, groupingSets, groupingSets); - WRITE_NODE_PTR_FIELD(having_qual, havingQual, havingQual); - WRITE_LIST_FIELD(window_clause, windowClause, windowClause); - WRITE_LIST_FIELD(distinct_clause, distinctClause, distinctClause); - WRITE_LIST_FIELD(sort_clause, sortClause, sortClause); - WRITE_NODE_PTR_FIELD(limit_offset, limitOffset, limitOffset); - WRITE_NODE_PTR_FIELD(limit_count, limitCount, limitCount); - WRITE_ENUM_FIELD(LimitOption, limit_option, limitOption, limitOption); - WRITE_LIST_FIELD(row_marks, rowMarks, rowMarks); - WRITE_NODE_PTR_FIELD(set_operations, setOperations, setOperations); - WRITE_LIST_FIELD(constraint_deps, constraintDeps, constraintDeps); - WRITE_LIST_FIELD(with_check_options, withCheckOptions, withCheckOptions); - WRITE_INT_FIELD(stmt_location, stmt_location, stmt_location); - WRITE_INT_FIELD(stmt_len, stmt_len, stmt_len); -} - -static void -_outInsertStmt(OUT_TYPE(InsertStmt, InsertStmt) out, const InsertStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - WRITE_LIST_FIELD(cols, cols, cols); - WRITE_NODE_PTR_FIELD(select_stmt, selectStmt, selectStmt); - WRITE_SPECIFIC_NODE_PTR_FIELD(OnConflictClause, on_conflict_clause, on_conflict_clause, onConflictClause, onConflictClause); - WRITE_LIST_FIELD(returning_list, returningList, returningList); - WRITE_SPECIFIC_NODE_PTR_FIELD(WithClause, with_clause, with_clause, withClause, withClause); - WRITE_ENUM_FIELD(OverridingKind, override, override, override); -} - -static void -_outDeleteStmt(OUT_TYPE(DeleteStmt, DeleteStmt) out, const DeleteStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - WRITE_LIST_FIELD(using_clause, usingClause, usingClause); - WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause); - WRITE_LIST_FIELD(returning_list, returningList, returningList); - WRITE_SPECIFIC_NODE_PTR_FIELD(WithClause, with_clause, with_clause, withClause, withClause); -} - -static void -_outUpdateStmt(OUT_TYPE(UpdateStmt, UpdateStmt) out, const UpdateStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - WRITE_LIST_FIELD(target_list, targetList, targetList); - WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause); - WRITE_LIST_FIELD(from_clause, fromClause, fromClause); - WRITE_LIST_FIELD(returning_list, returningList, returningList); - WRITE_SPECIFIC_NODE_PTR_FIELD(WithClause, with_clause, with_clause, withClause, withClause); -} - -static void -_outMergeStmt(OUT_TYPE(MergeStmt, MergeStmt) out, const MergeStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - WRITE_NODE_PTR_FIELD(source_relation, sourceRelation, sourceRelation); - WRITE_NODE_PTR_FIELD(join_condition, joinCondition, joinCondition); - WRITE_LIST_FIELD(merge_when_clauses, mergeWhenClauses, mergeWhenClauses); - WRITE_SPECIFIC_NODE_PTR_FIELD(WithClause, with_clause, with_clause, withClause, withClause); -} - -static void -_outSelectStmt(OUT_TYPE(SelectStmt, SelectStmt) out, const SelectStmt *node) -{ - WRITE_LIST_FIELD(distinct_clause, distinctClause, distinctClause); - WRITE_SPECIFIC_NODE_PTR_FIELD(IntoClause, into_clause, into_clause, intoClause, intoClause); - WRITE_LIST_FIELD(target_list, targetList, targetList); - WRITE_LIST_FIELD(from_clause, fromClause, fromClause); - WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause); - WRITE_LIST_FIELD(group_clause, groupClause, groupClause); - WRITE_BOOL_FIELD(group_distinct, groupDistinct, groupDistinct); - WRITE_NODE_PTR_FIELD(having_clause, havingClause, havingClause); - WRITE_LIST_FIELD(window_clause, windowClause, windowClause); - WRITE_LIST_FIELD(values_lists, valuesLists, valuesLists); - WRITE_LIST_FIELD(sort_clause, sortClause, sortClause); - WRITE_NODE_PTR_FIELD(limit_offset, limitOffset, limitOffset); - WRITE_NODE_PTR_FIELD(limit_count, limitCount, limitCount); - WRITE_ENUM_FIELD(LimitOption, limit_option, limitOption, limitOption); - WRITE_LIST_FIELD(locking_clause, lockingClause, lockingClause); - WRITE_SPECIFIC_NODE_PTR_FIELD(WithClause, with_clause, with_clause, withClause, withClause); - WRITE_ENUM_FIELD(SetOperation, op, op, op); - WRITE_BOOL_FIELD(all, all, all); - WRITE_SPECIFIC_NODE_PTR_FIELD(SelectStmt, select_stmt, larg, larg, larg); - WRITE_SPECIFIC_NODE_PTR_FIELD(SelectStmt, select_stmt, rarg, rarg, rarg); -} - -static void -_outReturnStmt(OUT_TYPE(ReturnStmt, ReturnStmt) out, const ReturnStmt *node) -{ - WRITE_NODE_PTR_FIELD(returnval, returnval, returnval); -} - -static void -_outPLAssignStmt(OUT_TYPE(PLAssignStmt, PLAssignStmt) out, const PLAssignStmt *node) -{ - WRITE_STRING_FIELD(name, name, name); - WRITE_LIST_FIELD(indirection, indirection, indirection); - WRITE_INT_FIELD(nnames, nnames, nnames); - WRITE_SPECIFIC_NODE_PTR_FIELD(SelectStmt, select_stmt, val, val, val); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outAlterTableStmt(OUT_TYPE(AlterTableStmt, AlterTableStmt) out, const AlterTableStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - WRITE_LIST_FIELD(cmds, cmds, cmds); - WRITE_ENUM_FIELD(ObjectType, objtype, objtype, objtype); - WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok); -} - -static void -_outAlterTableCmd(OUT_TYPE(AlterTableCmd, AlterTableCmd) out, const AlterTableCmd *node) -{ - WRITE_ENUM_FIELD(AlterTableType, subtype, subtype, subtype); - WRITE_STRING_FIELD(name, name, name); - WRITE_INT_FIELD(num, num, num); - WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, newowner, newowner, newowner); - WRITE_NODE_PTR_FIELD(def, def, def); - WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior); - WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok); - WRITE_BOOL_FIELD(recurse, recurse, recurse); -} - -static void -_outAlterDomainStmt(OUT_TYPE(AlterDomainStmt, AlterDomainStmt) out, const AlterDomainStmt *node) -{ - WRITE_CHAR_FIELD(subtype, subtype, subtype); - WRITE_LIST_FIELD(type_name, typeName, typeName); - WRITE_STRING_FIELD(name, name, name); - WRITE_NODE_PTR_FIELD(def, def, def); - WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior); - WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok); -} - -static void -_outSetOperationStmt(OUT_TYPE(SetOperationStmt, SetOperationStmt) out, const SetOperationStmt *node) -{ - WRITE_ENUM_FIELD(SetOperation, op, op, op); - WRITE_BOOL_FIELD(all, all, all); - WRITE_NODE_PTR_FIELD(larg, larg, larg); - WRITE_NODE_PTR_FIELD(rarg, rarg, rarg); - WRITE_LIST_FIELD(col_types, colTypes, colTypes); - WRITE_LIST_FIELD(col_typmods, colTypmods, colTypmods); - WRITE_LIST_FIELD(col_collations, colCollations, colCollations); - WRITE_LIST_FIELD(group_clauses, groupClauses, groupClauses); -} - -static void -_outGrantStmt(OUT_TYPE(GrantStmt, GrantStmt) out, const GrantStmt *node) -{ - WRITE_BOOL_FIELD(is_grant, is_grant, is_grant); - WRITE_ENUM_FIELD(GrantTargetType, targtype, targtype, targtype); - WRITE_ENUM_FIELD(ObjectType, objtype, objtype, objtype); - WRITE_LIST_FIELD(objects, objects, objects); - WRITE_LIST_FIELD(privileges, privileges, privileges); - WRITE_LIST_FIELD(grantees, grantees, grantees); - WRITE_BOOL_FIELD(grant_option, grant_option, grant_option); - WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, grantor, grantor, grantor); - WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior); -} - -static void -_outGrantRoleStmt(OUT_TYPE(GrantRoleStmt, GrantRoleStmt) out, const GrantRoleStmt *node) -{ - WRITE_LIST_FIELD(granted_roles, granted_roles, granted_roles); - WRITE_LIST_FIELD(grantee_roles, grantee_roles, grantee_roles); - WRITE_BOOL_FIELD(is_grant, is_grant, is_grant); - WRITE_BOOL_FIELD(admin_opt, admin_opt, admin_opt); - WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, grantor, grantor, grantor); - WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior); -} - -static void -_outAlterDefaultPrivilegesStmt(OUT_TYPE(AlterDefaultPrivilegesStmt, AlterDefaultPrivilegesStmt) out, const AlterDefaultPrivilegesStmt *node) -{ - WRITE_LIST_FIELD(options, options, options); - WRITE_SPECIFIC_NODE_PTR_FIELD(GrantStmt, grant_stmt, action, action, action); -} - -static void -_outClosePortalStmt(OUT_TYPE(ClosePortalStmt, ClosePortalStmt) out, const ClosePortalStmt *node) -{ - WRITE_STRING_FIELD(portalname, portalname, portalname); -} - -static void -_outClusterStmt(OUT_TYPE(ClusterStmt, ClusterStmt) out, const ClusterStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - WRITE_STRING_FIELD(indexname, indexname, indexname); - WRITE_LIST_FIELD(params, params, params); -} - -static void -_outCopyStmt(OUT_TYPE(CopyStmt, CopyStmt) out, const CopyStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - WRITE_NODE_PTR_FIELD(query, query, query); - WRITE_LIST_FIELD(attlist, attlist, attlist); - WRITE_BOOL_FIELD(is_from, is_from, is_from); - WRITE_BOOL_FIELD(is_program, is_program, is_program); - WRITE_STRING_FIELD(filename, filename, filename); - WRITE_LIST_FIELD(options, options, options); - WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause); -} - -static void -_outCreateStmt(OUT_TYPE(CreateStmt, CreateStmt) out, const CreateStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - WRITE_LIST_FIELD(table_elts, tableElts, tableElts); - WRITE_LIST_FIELD(inh_relations, inhRelations, inhRelations); - WRITE_SPECIFIC_NODE_PTR_FIELD(PartitionBoundSpec, partition_bound_spec, partbound, partbound, partbound); - WRITE_SPECIFIC_NODE_PTR_FIELD(PartitionSpec, partition_spec, partspec, partspec, partspec); - WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, of_typename, ofTypename, ofTypename); - WRITE_LIST_FIELD(constraints, constraints, constraints); - WRITE_LIST_FIELD(options, options, options); - WRITE_ENUM_FIELD(OnCommitAction, oncommit, oncommit, oncommit); - WRITE_STRING_FIELD(tablespacename, tablespacename, tablespacename); - WRITE_STRING_FIELD(access_method, accessMethod, accessMethod); - WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists); -} - -static void -_outDefineStmt(OUT_TYPE(DefineStmt, DefineStmt) out, const DefineStmt *node) -{ - WRITE_ENUM_FIELD(ObjectType, kind, kind, kind); - WRITE_BOOL_FIELD(oldstyle, oldstyle, oldstyle); - WRITE_LIST_FIELD(defnames, defnames, defnames); - WRITE_LIST_FIELD(args, args, args); - WRITE_LIST_FIELD(definition, definition, definition); - WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists); - WRITE_BOOL_FIELD(replace, replace, replace); -} - -static void -_outDropStmt(OUT_TYPE(DropStmt, DropStmt) out, const DropStmt *node) -{ - WRITE_LIST_FIELD(objects, objects, objects); - WRITE_ENUM_FIELD(ObjectType, remove_type, removeType, removeType); - WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior); - WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok); - WRITE_BOOL_FIELD(concurrent, concurrent, concurrent); -} - -static void -_outTruncateStmt(OUT_TYPE(TruncateStmt, TruncateStmt) out, const TruncateStmt *node) -{ - WRITE_LIST_FIELD(relations, relations, relations); - WRITE_BOOL_FIELD(restart_seqs, restart_seqs, restart_seqs); - WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior); -} - -static void -_outCommentStmt(OUT_TYPE(CommentStmt, CommentStmt) out, const CommentStmt *node) -{ - WRITE_ENUM_FIELD(ObjectType, objtype, objtype, objtype); - WRITE_NODE_PTR_FIELD(object, object, object); - WRITE_STRING_FIELD(comment, comment, comment); -} - -static void -_outFetchStmt(OUT_TYPE(FetchStmt, FetchStmt) out, const FetchStmt *node) -{ - WRITE_ENUM_FIELD(FetchDirection, direction, direction, direction); - WRITE_LONG_FIELD(how_many, howMany, howMany); - WRITE_STRING_FIELD(portalname, portalname, portalname); - WRITE_BOOL_FIELD(ismove, ismove, ismove); -} - -static void -_outIndexStmt(OUT_TYPE(IndexStmt, IndexStmt) out, const IndexStmt *node) -{ - WRITE_STRING_FIELD(idxname, idxname, idxname); - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - WRITE_STRING_FIELD(access_method, accessMethod, accessMethod); - WRITE_STRING_FIELD(table_space, tableSpace, tableSpace); - WRITE_LIST_FIELD(index_params, indexParams, indexParams); - WRITE_LIST_FIELD(index_including_params, indexIncludingParams, indexIncludingParams); - WRITE_LIST_FIELD(options, options, options); - WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause); - WRITE_LIST_FIELD(exclude_op_names, excludeOpNames, excludeOpNames); - WRITE_STRING_FIELD(idxcomment, idxcomment, idxcomment); - WRITE_UINT_FIELD(index_oid, indexOid, indexOid); - WRITE_UINT_FIELD(old_node, oldNode, oldNode); - WRITE_UINT_FIELD(old_create_subid, oldCreateSubid, oldCreateSubid); - WRITE_UINT_FIELD(old_first_relfilenode_subid, oldFirstRelfilenodeSubid, oldFirstRelfilenodeSubid); - WRITE_BOOL_FIELD(unique, unique, unique); - WRITE_BOOL_FIELD(nulls_not_distinct, nulls_not_distinct, nulls_not_distinct); - WRITE_BOOL_FIELD(primary, primary, primary); - WRITE_BOOL_FIELD(isconstraint, isconstraint, isconstraint); - WRITE_BOOL_FIELD(deferrable, deferrable, deferrable); - WRITE_BOOL_FIELD(initdeferred, initdeferred, initdeferred); - WRITE_BOOL_FIELD(transformed, transformed, transformed); - WRITE_BOOL_FIELD(concurrent, concurrent, concurrent); - WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists); - WRITE_BOOL_FIELD(reset_default_tblspc, reset_default_tblspc, reset_default_tblspc); -} - -static void -_outCreateFunctionStmt(OUT_TYPE(CreateFunctionStmt, CreateFunctionStmt) out, const CreateFunctionStmt *node) -{ - WRITE_BOOL_FIELD(is_procedure, is_procedure, is_procedure); - WRITE_BOOL_FIELD(replace, replace, replace); - WRITE_LIST_FIELD(funcname, funcname, funcname); - WRITE_LIST_FIELD(parameters, parameters, parameters); - WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, return_type, returnType, returnType); - WRITE_LIST_FIELD(options, options, options); - WRITE_NODE_PTR_FIELD(sql_body, sql_body, sql_body); -} - -static void -_outAlterFunctionStmt(OUT_TYPE(AlterFunctionStmt, AlterFunctionStmt) out, const AlterFunctionStmt *node) -{ - WRITE_ENUM_FIELD(ObjectType, objtype, objtype, objtype); - WRITE_SPECIFIC_NODE_PTR_FIELD(ObjectWithArgs, object_with_args, func, func, func); - WRITE_LIST_FIELD(actions, actions, actions); -} - -static void -_outDoStmt(OUT_TYPE(DoStmt, DoStmt) out, const DoStmt *node) -{ - WRITE_LIST_FIELD(args, args, args); -} - -static void -_outRenameStmt(OUT_TYPE(RenameStmt, RenameStmt) out, const RenameStmt *node) -{ - WRITE_ENUM_FIELD(ObjectType, rename_type, renameType, renameType); - WRITE_ENUM_FIELD(ObjectType, relation_type, relationType, relationType); - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - WRITE_NODE_PTR_FIELD(object, object, object); - WRITE_STRING_FIELD(subname, subname, subname); - WRITE_STRING_FIELD(newname, newname, newname); - WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior); - WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok); -} - -static void -_outRuleStmt(OUT_TYPE(RuleStmt, RuleStmt) out, const RuleStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - WRITE_STRING_FIELD(rulename, rulename, rulename); - WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause); - WRITE_ENUM_FIELD(CmdType, event, event, event); - WRITE_BOOL_FIELD(instead, instead, instead); - WRITE_LIST_FIELD(actions, actions, actions); - WRITE_BOOL_FIELD(replace, replace, replace); -} - -static void -_outNotifyStmt(OUT_TYPE(NotifyStmt, NotifyStmt) out, const NotifyStmt *node) -{ - WRITE_STRING_FIELD(conditionname, conditionname, conditionname); - WRITE_STRING_FIELD(payload, payload, payload); -} - -static void -_outListenStmt(OUT_TYPE(ListenStmt, ListenStmt) out, const ListenStmt *node) -{ - WRITE_STRING_FIELD(conditionname, conditionname, conditionname); -} - -static void -_outUnlistenStmt(OUT_TYPE(UnlistenStmt, UnlistenStmt) out, const UnlistenStmt *node) -{ - WRITE_STRING_FIELD(conditionname, conditionname, conditionname); -} - -static void -_outTransactionStmt(OUT_TYPE(TransactionStmt, TransactionStmt) out, const TransactionStmt *node) -{ - WRITE_ENUM_FIELD(TransactionStmtKind, kind, kind, kind); - WRITE_LIST_FIELD(options, options, options); - WRITE_STRING_FIELD(savepoint_name, savepoint_name, savepoint_name); - WRITE_STRING_FIELD(gid, gid, gid); - WRITE_BOOL_FIELD(chain, chain, chain); -} - -static void -_outViewStmt(OUT_TYPE(ViewStmt, ViewStmt) out, const ViewStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, view, view, view); - WRITE_LIST_FIELD(aliases, aliases, aliases); - WRITE_NODE_PTR_FIELD(query, query, query); - WRITE_BOOL_FIELD(replace, replace, replace); - WRITE_LIST_FIELD(options, options, options); - WRITE_ENUM_FIELD(ViewCheckOption, with_check_option, withCheckOption, withCheckOption); -} - -static void -_outLoadStmt(OUT_TYPE(LoadStmt, LoadStmt) out, const LoadStmt *node) -{ - WRITE_STRING_FIELD(filename, filename, filename); -} - -static void -_outCreateDomainStmt(OUT_TYPE(CreateDomainStmt, CreateDomainStmt) out, const CreateDomainStmt *node) -{ - WRITE_LIST_FIELD(domainname, domainname, domainname); - WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, typeName, typeName); - WRITE_SPECIFIC_NODE_PTR_FIELD(CollateClause, collate_clause, coll_clause, collClause, collClause); - WRITE_LIST_FIELD(constraints, constraints, constraints); -} - -static void -_outCreatedbStmt(OUT_TYPE(CreatedbStmt, CreatedbStmt) out, const CreatedbStmt *node) -{ - WRITE_STRING_FIELD(dbname, dbname, dbname); - WRITE_LIST_FIELD(options, options, options); -} - -static void -_outDropdbStmt(OUT_TYPE(DropdbStmt, DropdbStmt) out, const DropdbStmt *node) -{ - WRITE_STRING_FIELD(dbname, dbname, dbname); - WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok); - WRITE_LIST_FIELD(options, options, options); -} - -static void -_outVacuumStmt(OUT_TYPE(VacuumStmt, VacuumStmt) out, const VacuumStmt *node) -{ - WRITE_LIST_FIELD(options, options, options); - WRITE_LIST_FIELD(rels, rels, rels); - WRITE_BOOL_FIELD(is_vacuumcmd, is_vacuumcmd, is_vacuumcmd); -} - -static void -_outExplainStmt(OUT_TYPE(ExplainStmt, ExplainStmt) out, const ExplainStmt *node) -{ - WRITE_NODE_PTR_FIELD(query, query, query); - WRITE_LIST_FIELD(options, options, options); -} - -static void -_outCreateTableAsStmt(OUT_TYPE(CreateTableAsStmt, CreateTableAsStmt) out, const CreateTableAsStmt *node) -{ - WRITE_NODE_PTR_FIELD(query, query, query); - WRITE_SPECIFIC_NODE_PTR_FIELD(IntoClause, into_clause, into, into, into); - WRITE_ENUM_FIELD(ObjectType, objtype, objtype, objtype); - WRITE_BOOL_FIELD(is_select_into, is_select_into, is_select_into); - WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists); -} - -static void -_outCreateSeqStmt(OUT_TYPE(CreateSeqStmt, CreateSeqStmt) out, const CreateSeqStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, sequence, sequence, sequence); - WRITE_LIST_FIELD(options, options, options); - WRITE_UINT_FIELD(owner_id, ownerId, ownerId); - WRITE_BOOL_FIELD(for_identity, for_identity, for_identity); - WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists); -} - -static void -_outAlterSeqStmt(OUT_TYPE(AlterSeqStmt, AlterSeqStmt) out, const AlterSeqStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, sequence, sequence, sequence); - WRITE_LIST_FIELD(options, options, options); - WRITE_BOOL_FIELD(for_identity, for_identity, for_identity); - WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok); -} - -static void -_outVariableSetStmt(OUT_TYPE(VariableSetStmt, VariableSetStmt) out, const VariableSetStmt *node) -{ - WRITE_ENUM_FIELD(VariableSetKind, kind, kind, kind); - WRITE_STRING_FIELD(name, name, name); - WRITE_LIST_FIELD(args, args, args); - WRITE_BOOL_FIELD(is_local, is_local, is_local); -} - -static void -_outVariableShowStmt(OUT_TYPE(VariableShowStmt, VariableShowStmt) out, const VariableShowStmt *node) -{ - WRITE_STRING_FIELD(name, name, name); -} - -static void -_outDiscardStmt(OUT_TYPE(DiscardStmt, DiscardStmt) out, const DiscardStmt *node) -{ - WRITE_ENUM_FIELD(DiscardMode, target, target, target); -} - -static void -_outCreateTrigStmt(OUT_TYPE(CreateTrigStmt, CreateTrigStmt) out, const CreateTrigStmt *node) -{ - WRITE_BOOL_FIELD(replace, replace, replace); - WRITE_BOOL_FIELD(isconstraint, isconstraint, isconstraint); - WRITE_STRING_FIELD(trigname, trigname, trigname); - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - WRITE_LIST_FIELD(funcname, funcname, funcname); - WRITE_LIST_FIELD(args, args, args); - WRITE_BOOL_FIELD(row, row, row); - WRITE_INT_FIELD(timing, timing, timing); - WRITE_INT_FIELD(events, events, events); - WRITE_LIST_FIELD(columns, columns, columns); - WRITE_NODE_PTR_FIELD(when_clause, whenClause, whenClause); - WRITE_LIST_FIELD(transition_rels, transitionRels, transitionRels); - WRITE_BOOL_FIELD(deferrable, deferrable, deferrable); - WRITE_BOOL_FIELD(initdeferred, initdeferred, initdeferred); - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, constrrel, constrrel, constrrel); -} - -static void -_outCreatePLangStmt(OUT_TYPE(CreatePLangStmt, CreatePLangStmt) out, const CreatePLangStmt *node) -{ - WRITE_BOOL_FIELD(replace, replace, replace); - WRITE_STRING_FIELD(plname, plname, plname); - WRITE_LIST_FIELD(plhandler, plhandler, plhandler); - WRITE_LIST_FIELD(plinline, plinline, plinline); - WRITE_LIST_FIELD(plvalidator, plvalidator, plvalidator); - WRITE_BOOL_FIELD(pltrusted, pltrusted, pltrusted); -} - -static void -_outCreateRoleStmt(OUT_TYPE(CreateRoleStmt, CreateRoleStmt) out, const CreateRoleStmt *node) -{ - WRITE_ENUM_FIELD(RoleStmtType, stmt_type, stmt_type, stmt_type); - WRITE_STRING_FIELD(role, role, role); - WRITE_LIST_FIELD(options, options, options); -} - -static void -_outAlterRoleStmt(OUT_TYPE(AlterRoleStmt, AlterRoleStmt) out, const AlterRoleStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, role, role, role); - WRITE_LIST_FIELD(options, options, options); - WRITE_INT_FIELD(action, action, action); -} - -static void -_outDropRoleStmt(OUT_TYPE(DropRoleStmt, DropRoleStmt) out, const DropRoleStmt *node) -{ - WRITE_LIST_FIELD(roles, roles, roles); - WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok); -} - -static void -_outLockStmt(OUT_TYPE(LockStmt, LockStmt) out, const LockStmt *node) -{ - WRITE_LIST_FIELD(relations, relations, relations); - WRITE_INT_FIELD(mode, mode, mode); - WRITE_BOOL_FIELD(nowait, nowait, nowait); -} - -static void -_outConstraintsSetStmt(OUT_TYPE(ConstraintsSetStmt, ConstraintsSetStmt) out, const ConstraintsSetStmt *node) -{ - WRITE_LIST_FIELD(constraints, constraints, constraints); - WRITE_BOOL_FIELD(deferred, deferred, deferred); -} - -static void -_outReindexStmt(OUT_TYPE(ReindexStmt, ReindexStmt) out, const ReindexStmt *node) -{ - WRITE_ENUM_FIELD(ReindexObjectType, kind, kind, kind); - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - WRITE_STRING_FIELD(name, name, name); - WRITE_LIST_FIELD(params, params, params); -} - -static void -_outCheckPointStmt(OUT_TYPE(CheckPointStmt, CheckPointStmt) out, const CheckPointStmt *node) -{ -} - -static void -_outCreateSchemaStmt(OUT_TYPE(CreateSchemaStmt, CreateSchemaStmt) out, const CreateSchemaStmt *node) -{ - WRITE_STRING_FIELD(schemaname, schemaname, schemaname); - WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, authrole, authrole, authrole); - WRITE_LIST_FIELD(schema_elts, schemaElts, schemaElts); - WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists); -} - -static void -_outAlterDatabaseStmt(OUT_TYPE(AlterDatabaseStmt, AlterDatabaseStmt) out, const AlterDatabaseStmt *node) -{ - WRITE_STRING_FIELD(dbname, dbname, dbname); - WRITE_LIST_FIELD(options, options, options); -} - -static void -_outAlterDatabaseRefreshCollStmt(OUT_TYPE(AlterDatabaseRefreshCollStmt, AlterDatabaseRefreshCollStmt) out, const AlterDatabaseRefreshCollStmt *node) -{ - WRITE_STRING_FIELD(dbname, dbname, dbname); -} - -static void -_outAlterDatabaseSetStmt(OUT_TYPE(AlterDatabaseSetStmt, AlterDatabaseSetStmt) out, const AlterDatabaseSetStmt *node) -{ - WRITE_STRING_FIELD(dbname, dbname, dbname); - WRITE_SPECIFIC_NODE_PTR_FIELD(VariableSetStmt, variable_set_stmt, setstmt, setstmt, setstmt); -} - -static void -_outAlterRoleSetStmt(OUT_TYPE(AlterRoleSetStmt, AlterRoleSetStmt) out, const AlterRoleSetStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, role, role, role); - WRITE_STRING_FIELD(database, database, database); - WRITE_SPECIFIC_NODE_PTR_FIELD(VariableSetStmt, variable_set_stmt, setstmt, setstmt, setstmt); -} - -static void -_outCreateConversionStmt(OUT_TYPE(CreateConversionStmt, CreateConversionStmt) out, const CreateConversionStmt *node) -{ - WRITE_LIST_FIELD(conversion_name, conversion_name, conversion_name); - WRITE_STRING_FIELD(for_encoding_name, for_encoding_name, for_encoding_name); - WRITE_STRING_FIELD(to_encoding_name, to_encoding_name, to_encoding_name); - WRITE_LIST_FIELD(func_name, func_name, func_name); - WRITE_BOOL_FIELD(def, def, def); -} - -static void -_outCreateCastStmt(OUT_TYPE(CreateCastStmt, CreateCastStmt) out, const CreateCastStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, sourcetype, sourcetype, sourcetype); - WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, targettype, targettype, targettype); - WRITE_SPECIFIC_NODE_PTR_FIELD(ObjectWithArgs, object_with_args, func, func, func); - WRITE_ENUM_FIELD(CoercionContext, context, context, context); - WRITE_BOOL_FIELD(inout, inout, inout); -} - -static void -_outCreateOpClassStmt(OUT_TYPE(CreateOpClassStmt, CreateOpClassStmt) out, const CreateOpClassStmt *node) -{ - WRITE_LIST_FIELD(opclassname, opclassname, opclassname); - WRITE_LIST_FIELD(opfamilyname, opfamilyname, opfamilyname); - WRITE_STRING_FIELD(amname, amname, amname); - WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, datatype, datatype, datatype); - WRITE_LIST_FIELD(items, items, items); - WRITE_BOOL_FIELD(is_default, isDefault, isDefault); -} - -static void -_outCreateOpFamilyStmt(OUT_TYPE(CreateOpFamilyStmt, CreateOpFamilyStmt) out, const CreateOpFamilyStmt *node) -{ - WRITE_LIST_FIELD(opfamilyname, opfamilyname, opfamilyname); - WRITE_STRING_FIELD(amname, amname, amname); -} - -static void -_outAlterOpFamilyStmt(OUT_TYPE(AlterOpFamilyStmt, AlterOpFamilyStmt) out, const AlterOpFamilyStmt *node) -{ - WRITE_LIST_FIELD(opfamilyname, opfamilyname, opfamilyname); - WRITE_STRING_FIELD(amname, amname, amname); - WRITE_BOOL_FIELD(is_drop, isDrop, isDrop); - WRITE_LIST_FIELD(items, items, items); -} - -static void -_outPrepareStmt(OUT_TYPE(PrepareStmt, PrepareStmt) out, const PrepareStmt *node) -{ - WRITE_STRING_FIELD(name, name, name); - WRITE_LIST_FIELD(argtypes, argtypes, argtypes); - WRITE_NODE_PTR_FIELD(query, query, query); -} - -static void -_outExecuteStmt(OUT_TYPE(ExecuteStmt, ExecuteStmt) out, const ExecuteStmt *node) -{ - WRITE_STRING_FIELD(name, name, name); - WRITE_LIST_FIELD(params, params, params); -} - -static void -_outDeallocateStmt(OUT_TYPE(DeallocateStmt, DeallocateStmt) out, const DeallocateStmt *node) -{ - WRITE_STRING_FIELD(name, name, name); -} - -static void -_outDeclareCursorStmt(OUT_TYPE(DeclareCursorStmt, DeclareCursorStmt) out, const DeclareCursorStmt *node) -{ - WRITE_STRING_FIELD(portalname, portalname, portalname); - WRITE_INT_FIELD(options, options, options); - WRITE_NODE_PTR_FIELD(query, query, query); -} - -static void -_outCreateTableSpaceStmt(OUT_TYPE(CreateTableSpaceStmt, CreateTableSpaceStmt) out, const CreateTableSpaceStmt *node) -{ - WRITE_STRING_FIELD(tablespacename, tablespacename, tablespacename); - WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, owner, owner, owner); - WRITE_STRING_FIELD(location, location, location); - WRITE_LIST_FIELD(options, options, options); -} - -static void -_outDropTableSpaceStmt(OUT_TYPE(DropTableSpaceStmt, DropTableSpaceStmt) out, const DropTableSpaceStmt *node) -{ - WRITE_STRING_FIELD(tablespacename, tablespacename, tablespacename); - WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok); -} - -static void -_outAlterObjectDependsStmt(OUT_TYPE(AlterObjectDependsStmt, AlterObjectDependsStmt) out, const AlterObjectDependsStmt *node) -{ - WRITE_ENUM_FIELD(ObjectType, object_type, objectType, objectType); - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - WRITE_NODE_PTR_FIELD(object, object, object); - WRITE_SPECIFIC_NODE_PTR_FIELD(String, string, extname, extname, extname); - WRITE_BOOL_FIELD(remove, remove, remove); -} - -static void -_outAlterObjectSchemaStmt(OUT_TYPE(AlterObjectSchemaStmt, AlterObjectSchemaStmt) out, const AlterObjectSchemaStmt *node) -{ - WRITE_ENUM_FIELD(ObjectType, object_type, objectType, objectType); - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - WRITE_NODE_PTR_FIELD(object, object, object); - WRITE_STRING_FIELD(newschema, newschema, newschema); - WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok); -} - -static void -_outAlterOwnerStmt(OUT_TYPE(AlterOwnerStmt, AlterOwnerStmt) out, const AlterOwnerStmt *node) -{ - WRITE_ENUM_FIELD(ObjectType, object_type, objectType, objectType); - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - WRITE_NODE_PTR_FIELD(object, object, object); - WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, newowner, newowner, newowner); -} - -static void -_outAlterOperatorStmt(OUT_TYPE(AlterOperatorStmt, AlterOperatorStmt) out, const AlterOperatorStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(ObjectWithArgs, object_with_args, opername, opername, opername); - WRITE_LIST_FIELD(options, options, options); -} - -static void -_outAlterTypeStmt(OUT_TYPE(AlterTypeStmt, AlterTypeStmt) out, const AlterTypeStmt *node) -{ - WRITE_LIST_FIELD(type_name, typeName, typeName); - WRITE_LIST_FIELD(options, options, options); -} - -static void -_outDropOwnedStmt(OUT_TYPE(DropOwnedStmt, DropOwnedStmt) out, const DropOwnedStmt *node) -{ - WRITE_LIST_FIELD(roles, roles, roles); - WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior); -} - -static void -_outReassignOwnedStmt(OUT_TYPE(ReassignOwnedStmt, ReassignOwnedStmt) out, const ReassignOwnedStmt *node) -{ - WRITE_LIST_FIELD(roles, roles, roles); - WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, newrole, newrole, newrole); -} - -static void -_outCompositeTypeStmt(OUT_TYPE(CompositeTypeStmt, CompositeTypeStmt) out, const CompositeTypeStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, typevar, typevar, typevar); - WRITE_LIST_FIELD(coldeflist, coldeflist, coldeflist); -} - -static void -_outCreateEnumStmt(OUT_TYPE(CreateEnumStmt, CreateEnumStmt) out, const CreateEnumStmt *node) -{ - WRITE_LIST_FIELD(type_name, typeName, typeName); - WRITE_LIST_FIELD(vals, vals, vals); -} - -static void -_outCreateRangeStmt(OUT_TYPE(CreateRangeStmt, CreateRangeStmt) out, const CreateRangeStmt *node) -{ - WRITE_LIST_FIELD(type_name, typeName, typeName); - WRITE_LIST_FIELD(params, params, params); -} - -static void -_outAlterEnumStmt(OUT_TYPE(AlterEnumStmt, AlterEnumStmt) out, const AlterEnumStmt *node) -{ - WRITE_LIST_FIELD(type_name, typeName, typeName); - WRITE_STRING_FIELD(old_val, oldVal, oldVal); - WRITE_STRING_FIELD(new_val, newVal, newVal); - WRITE_STRING_FIELD(new_val_neighbor, newValNeighbor, newValNeighbor); - WRITE_BOOL_FIELD(new_val_is_after, newValIsAfter, newValIsAfter); - WRITE_BOOL_FIELD(skip_if_new_val_exists, skipIfNewValExists, skipIfNewValExists); -} - -static void -_outAlterTSDictionaryStmt(OUT_TYPE(AlterTSDictionaryStmt, AlterTSDictionaryStmt) out, const AlterTSDictionaryStmt *node) -{ - WRITE_LIST_FIELD(dictname, dictname, dictname); - WRITE_LIST_FIELD(options, options, options); -} - -static void -_outAlterTSConfigurationStmt(OUT_TYPE(AlterTSConfigurationStmt, AlterTSConfigurationStmt) out, const AlterTSConfigurationStmt *node) -{ - WRITE_ENUM_FIELD(AlterTSConfigType, kind, kind, kind); - WRITE_LIST_FIELD(cfgname, cfgname, cfgname); - WRITE_LIST_FIELD(tokentype, tokentype, tokentype); - WRITE_LIST_FIELD(dicts, dicts, dicts); - WRITE_BOOL_FIELD(override, override, override); - WRITE_BOOL_FIELD(replace, replace, replace); - WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok); -} - -static void -_outCreateFdwStmt(OUT_TYPE(CreateFdwStmt, CreateFdwStmt) out, const CreateFdwStmt *node) -{ - WRITE_STRING_FIELD(fdwname, fdwname, fdwname); - WRITE_LIST_FIELD(func_options, func_options, func_options); - WRITE_LIST_FIELD(options, options, options); -} - -static void -_outAlterFdwStmt(OUT_TYPE(AlterFdwStmt, AlterFdwStmt) out, const AlterFdwStmt *node) -{ - WRITE_STRING_FIELD(fdwname, fdwname, fdwname); - WRITE_LIST_FIELD(func_options, func_options, func_options); - WRITE_LIST_FIELD(options, options, options); -} - -static void -_outCreateForeignServerStmt(OUT_TYPE(CreateForeignServerStmt, CreateForeignServerStmt) out, const CreateForeignServerStmt *node) -{ - WRITE_STRING_FIELD(servername, servername, servername); - WRITE_STRING_FIELD(servertype, servertype, servertype); - WRITE_STRING_FIELD(version, version, version); - WRITE_STRING_FIELD(fdwname, fdwname, fdwname); - WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists); - WRITE_LIST_FIELD(options, options, options); -} - -static void -_outAlterForeignServerStmt(OUT_TYPE(AlterForeignServerStmt, AlterForeignServerStmt) out, const AlterForeignServerStmt *node) -{ - WRITE_STRING_FIELD(servername, servername, servername); - WRITE_STRING_FIELD(version, version, version); - WRITE_LIST_FIELD(options, options, options); - WRITE_BOOL_FIELD(has_version, has_version, has_version); -} - -static void -_outCreateUserMappingStmt(OUT_TYPE(CreateUserMappingStmt, CreateUserMappingStmt) out, const CreateUserMappingStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, user, user, user); - WRITE_STRING_FIELD(servername, servername, servername); - WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists); - WRITE_LIST_FIELD(options, options, options); -} - -static void -_outAlterUserMappingStmt(OUT_TYPE(AlterUserMappingStmt, AlterUserMappingStmt) out, const AlterUserMappingStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, user, user, user); - WRITE_STRING_FIELD(servername, servername, servername); - WRITE_LIST_FIELD(options, options, options); -} - -static void -_outDropUserMappingStmt(OUT_TYPE(DropUserMappingStmt, DropUserMappingStmt) out, const DropUserMappingStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, user, user, user); - WRITE_STRING_FIELD(servername, servername, servername); - WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok); -} - -static void -_outAlterTableSpaceOptionsStmt(OUT_TYPE(AlterTableSpaceOptionsStmt, AlterTableSpaceOptionsStmt) out, const AlterTableSpaceOptionsStmt *node) -{ - WRITE_STRING_FIELD(tablespacename, tablespacename, tablespacename); - WRITE_LIST_FIELD(options, options, options); - WRITE_BOOL_FIELD(is_reset, isReset, isReset); -} - -static void -_outAlterTableMoveAllStmt(OUT_TYPE(AlterTableMoveAllStmt, AlterTableMoveAllStmt) out, const AlterTableMoveAllStmt *node) -{ - WRITE_STRING_FIELD(orig_tablespacename, orig_tablespacename, orig_tablespacename); - WRITE_ENUM_FIELD(ObjectType, objtype, objtype, objtype); - WRITE_LIST_FIELD(roles, roles, roles); - WRITE_STRING_FIELD(new_tablespacename, new_tablespacename, new_tablespacename); - WRITE_BOOL_FIELD(nowait, nowait, nowait); -} - -static void -_outSecLabelStmt(OUT_TYPE(SecLabelStmt, SecLabelStmt) out, const SecLabelStmt *node) -{ - WRITE_ENUM_FIELD(ObjectType, objtype, objtype, objtype); - WRITE_NODE_PTR_FIELD(object, object, object); - WRITE_STRING_FIELD(provider, provider, provider); - WRITE_STRING_FIELD(label, label, label); -} - -static void -_outCreateForeignTableStmt(OUT_TYPE(CreateForeignTableStmt, CreateForeignTableStmt) out, const CreateForeignTableStmt *node) -{ - WRITE_SPECIFIC_NODE_FIELD(CreateStmt, create_stmt, base_stmt, base, base); - WRITE_STRING_FIELD(servername, servername, servername); - WRITE_LIST_FIELD(options, options, options); -} - -static void -_outImportForeignSchemaStmt(OUT_TYPE(ImportForeignSchemaStmt, ImportForeignSchemaStmt) out, const ImportForeignSchemaStmt *node) -{ - WRITE_STRING_FIELD(server_name, server_name, server_name); - WRITE_STRING_FIELD(remote_schema, remote_schema, remote_schema); - WRITE_STRING_FIELD(local_schema, local_schema, local_schema); - WRITE_ENUM_FIELD(ImportForeignSchemaType, list_type, list_type, list_type); - WRITE_LIST_FIELD(table_list, table_list, table_list); - WRITE_LIST_FIELD(options, options, options); -} - -static void -_outCreateExtensionStmt(OUT_TYPE(CreateExtensionStmt, CreateExtensionStmt) out, const CreateExtensionStmt *node) -{ - WRITE_STRING_FIELD(extname, extname, extname); - WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists); - WRITE_LIST_FIELD(options, options, options); -} - -static void -_outAlterExtensionStmt(OUT_TYPE(AlterExtensionStmt, AlterExtensionStmt) out, const AlterExtensionStmt *node) -{ - WRITE_STRING_FIELD(extname, extname, extname); - WRITE_LIST_FIELD(options, options, options); -} - -static void -_outAlterExtensionContentsStmt(OUT_TYPE(AlterExtensionContentsStmt, AlterExtensionContentsStmt) out, const AlterExtensionContentsStmt *node) -{ - WRITE_STRING_FIELD(extname, extname, extname); - WRITE_INT_FIELD(action, action, action); - WRITE_ENUM_FIELD(ObjectType, objtype, objtype, objtype); - WRITE_NODE_PTR_FIELD(object, object, object); -} - -static void -_outCreateEventTrigStmt(OUT_TYPE(CreateEventTrigStmt, CreateEventTrigStmt) out, const CreateEventTrigStmt *node) -{ - WRITE_STRING_FIELD(trigname, trigname, trigname); - WRITE_STRING_FIELD(eventname, eventname, eventname); - WRITE_LIST_FIELD(whenclause, whenclause, whenclause); - WRITE_LIST_FIELD(funcname, funcname, funcname); -} - -static void -_outAlterEventTrigStmt(OUT_TYPE(AlterEventTrigStmt, AlterEventTrigStmt) out, const AlterEventTrigStmt *node) -{ - WRITE_STRING_FIELD(trigname, trigname, trigname); - WRITE_CHAR_FIELD(tgenabled, tgenabled, tgenabled); -} - -static void -_outRefreshMatViewStmt(OUT_TYPE(RefreshMatViewStmt, RefreshMatViewStmt) out, const RefreshMatViewStmt *node) -{ - WRITE_BOOL_FIELD(concurrent, concurrent, concurrent); - WRITE_BOOL_FIELD(skip_data, skipData, skipData); - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); -} - -static void -_outReplicaIdentityStmt(OUT_TYPE(ReplicaIdentityStmt, ReplicaIdentityStmt) out, const ReplicaIdentityStmt *node) -{ - WRITE_CHAR_FIELD(identity_type, identity_type, identity_type); - WRITE_STRING_FIELD(name, name, name); -} - -static void -_outAlterSystemStmt(OUT_TYPE(AlterSystemStmt, AlterSystemStmt) out, const AlterSystemStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(VariableSetStmt, variable_set_stmt, setstmt, setstmt, setstmt); -} - -static void -_outCreatePolicyStmt(OUT_TYPE(CreatePolicyStmt, CreatePolicyStmt) out, const CreatePolicyStmt *node) -{ - WRITE_STRING_FIELD(policy_name, policy_name, policy_name); - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, table, table, table); - WRITE_STRING_FIELD(cmd_name, cmd_name, cmd_name); - WRITE_BOOL_FIELD(permissive, permissive, permissive); - WRITE_LIST_FIELD(roles, roles, roles); - WRITE_NODE_PTR_FIELD(qual, qual, qual); - WRITE_NODE_PTR_FIELD(with_check, with_check, with_check); -} - -static void -_outAlterPolicyStmt(OUT_TYPE(AlterPolicyStmt, AlterPolicyStmt) out, const AlterPolicyStmt *node) -{ - WRITE_STRING_FIELD(policy_name, policy_name, policy_name); - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, table, table, table); - WRITE_LIST_FIELD(roles, roles, roles); - WRITE_NODE_PTR_FIELD(qual, qual, qual); - WRITE_NODE_PTR_FIELD(with_check, with_check, with_check); -} - -static void -_outCreateTransformStmt(OUT_TYPE(CreateTransformStmt, CreateTransformStmt) out, const CreateTransformStmt *node) -{ - WRITE_BOOL_FIELD(replace, replace, replace); - WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, type_name, type_name); - WRITE_STRING_FIELD(lang, lang, lang); - WRITE_SPECIFIC_NODE_PTR_FIELD(ObjectWithArgs, object_with_args, fromsql, fromsql, fromsql); - WRITE_SPECIFIC_NODE_PTR_FIELD(ObjectWithArgs, object_with_args, tosql, tosql, tosql); -} - -static void -_outCreateAmStmt(OUT_TYPE(CreateAmStmt, CreateAmStmt) out, const CreateAmStmt *node) -{ - WRITE_STRING_FIELD(amname, amname, amname); - WRITE_LIST_FIELD(handler_name, handler_name, handler_name); - WRITE_CHAR_FIELD(amtype, amtype, amtype); -} - -static void -_outCreatePublicationStmt(OUT_TYPE(CreatePublicationStmt, CreatePublicationStmt) out, const CreatePublicationStmt *node) -{ - WRITE_STRING_FIELD(pubname, pubname, pubname); - WRITE_LIST_FIELD(options, options, options); - WRITE_LIST_FIELD(pubobjects, pubobjects, pubobjects); - WRITE_BOOL_FIELD(for_all_tables, for_all_tables, for_all_tables); -} - -static void -_outAlterPublicationStmt(OUT_TYPE(AlterPublicationStmt, AlterPublicationStmt) out, const AlterPublicationStmt *node) -{ - WRITE_STRING_FIELD(pubname, pubname, pubname); - WRITE_LIST_FIELD(options, options, options); - WRITE_LIST_FIELD(pubobjects, pubobjects, pubobjects); - WRITE_BOOL_FIELD(for_all_tables, for_all_tables, for_all_tables); - WRITE_ENUM_FIELD(AlterPublicationAction, action, action, action); -} - -static void -_outCreateSubscriptionStmt(OUT_TYPE(CreateSubscriptionStmt, CreateSubscriptionStmt) out, const CreateSubscriptionStmt *node) -{ - WRITE_STRING_FIELD(subname, subname, subname); - WRITE_STRING_FIELD(conninfo, conninfo, conninfo); - WRITE_LIST_FIELD(publication, publication, publication); - WRITE_LIST_FIELD(options, options, options); -} - -static void -_outAlterSubscriptionStmt(OUT_TYPE(AlterSubscriptionStmt, AlterSubscriptionStmt) out, const AlterSubscriptionStmt *node) -{ - WRITE_ENUM_FIELD(AlterSubscriptionType, kind, kind, kind); - WRITE_STRING_FIELD(subname, subname, subname); - WRITE_STRING_FIELD(conninfo, conninfo, conninfo); - WRITE_LIST_FIELD(publication, publication, publication); - WRITE_LIST_FIELD(options, options, options); -} - -static void -_outDropSubscriptionStmt(OUT_TYPE(DropSubscriptionStmt, DropSubscriptionStmt) out, const DropSubscriptionStmt *node) -{ - WRITE_STRING_FIELD(subname, subname, subname); - WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok); - WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior); -} - -static void -_outCreateStatsStmt(OUT_TYPE(CreateStatsStmt, CreateStatsStmt) out, const CreateStatsStmt *node) -{ - WRITE_LIST_FIELD(defnames, defnames, defnames); - WRITE_LIST_FIELD(stat_types, stat_types, stat_types); - WRITE_LIST_FIELD(exprs, exprs, exprs); - WRITE_LIST_FIELD(relations, relations, relations); - WRITE_STRING_FIELD(stxcomment, stxcomment, stxcomment); - WRITE_BOOL_FIELD(transformed, transformed, transformed); - WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists); -} - -static void -_outAlterCollationStmt(OUT_TYPE(AlterCollationStmt, AlterCollationStmt) out, const AlterCollationStmt *node) -{ - WRITE_LIST_FIELD(collname, collname, collname); -} - -static void -_outCallStmt(OUT_TYPE(CallStmt, CallStmt) out, const CallStmt *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(FuncCall, func_call, funccall, funccall, funccall); - WRITE_SPECIFIC_NODE_PTR_FIELD(FuncExpr, func_expr, funcexpr, funcexpr, funcexpr); - WRITE_LIST_FIELD(outargs, outargs, outargs); -} - -static void -_outAlterStatsStmt(OUT_TYPE(AlterStatsStmt, AlterStatsStmt) out, const AlterStatsStmt *node) -{ - WRITE_LIST_FIELD(defnames, defnames, defnames); - WRITE_INT_FIELD(stxstattarget, stxstattarget, stxstattarget); - WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok); -} - -static void -_outAExpr(OUT_TYPE(A_Expr, AExpr) out, const A_Expr *node) -{ - WRITE_ENUM_FIELD(A_Expr_Kind, kind, kind, kind); - WRITE_LIST_FIELD(name, name, name); - WRITE_NODE_PTR_FIELD(lexpr, lexpr, lexpr); - WRITE_NODE_PTR_FIELD(rexpr, rexpr, rexpr); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outColumnRef(OUT_TYPE(ColumnRef, ColumnRef) out, const ColumnRef *node) -{ - WRITE_LIST_FIELD(fields, fields, fields); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outParamRef(OUT_TYPE(ParamRef, ParamRef) out, const ParamRef *node) -{ - WRITE_INT_FIELD(number, number, number); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outFuncCall(OUT_TYPE(FuncCall, FuncCall) out, const FuncCall *node) -{ - WRITE_LIST_FIELD(funcname, funcname, funcname); - WRITE_LIST_FIELD(args, args, args); - WRITE_LIST_FIELD(agg_order, agg_order, agg_order); - WRITE_NODE_PTR_FIELD(agg_filter, agg_filter, agg_filter); - WRITE_SPECIFIC_NODE_PTR_FIELD(WindowDef, window_def, over, over, over); - WRITE_BOOL_FIELD(agg_within_group, agg_within_group, agg_within_group); - WRITE_BOOL_FIELD(agg_star, agg_star, agg_star); - WRITE_BOOL_FIELD(agg_distinct, agg_distinct, agg_distinct); - WRITE_BOOL_FIELD(func_variadic, func_variadic, func_variadic); - WRITE_ENUM_FIELD(CoercionForm, funcformat, funcformat, funcformat); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outAStar(OUT_TYPE(A_Star, AStar) out, const A_Star *node) -{ -} - -static void -_outAIndices(OUT_TYPE(A_Indices, AIndices) out, const A_Indices *node) -{ - WRITE_BOOL_FIELD(is_slice, is_slice, is_slice); - WRITE_NODE_PTR_FIELD(lidx, lidx, lidx); - WRITE_NODE_PTR_FIELD(uidx, uidx, uidx); -} - -static void -_outAIndirection(OUT_TYPE(A_Indirection, AIndirection) out, const A_Indirection *node) -{ - WRITE_NODE_PTR_FIELD(arg, arg, arg); - WRITE_LIST_FIELD(indirection, indirection, indirection); -} - -static void -_outAArrayExpr(OUT_TYPE(A_ArrayExpr, AArrayExpr) out, const A_ArrayExpr *node) -{ - WRITE_LIST_FIELD(elements, elements, elements); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outResTarget(OUT_TYPE(ResTarget, ResTarget) out, const ResTarget *node) -{ - WRITE_STRING_FIELD(name, name, name); - WRITE_LIST_FIELD(indirection, indirection, indirection); - WRITE_NODE_PTR_FIELD(val, val, val); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outMultiAssignRef(OUT_TYPE(MultiAssignRef, MultiAssignRef) out, const MultiAssignRef *node) -{ - WRITE_NODE_PTR_FIELD(source, source, source); - WRITE_INT_FIELD(colno, colno, colno); - WRITE_INT_FIELD(ncolumns, ncolumns, ncolumns); -} - -static void -_outTypeCast(OUT_TYPE(TypeCast, TypeCast) out, const TypeCast *node) -{ - WRITE_NODE_PTR_FIELD(arg, arg, arg); - WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, typeName, typeName); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outCollateClause(OUT_TYPE(CollateClause, CollateClause) out, const CollateClause *node) -{ - WRITE_NODE_PTR_FIELD(arg, arg, arg); - WRITE_LIST_FIELD(collname, collname, collname); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outSortBy(OUT_TYPE(SortBy, SortBy) out, const SortBy *node) -{ - WRITE_NODE_PTR_FIELD(node, node, node); - WRITE_ENUM_FIELD(SortByDir, sortby_dir, sortby_dir, sortby_dir); - WRITE_ENUM_FIELD(SortByNulls, sortby_nulls, sortby_nulls, sortby_nulls); - WRITE_LIST_FIELD(use_op, useOp, useOp); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outWindowDef(OUT_TYPE(WindowDef, WindowDef) out, const WindowDef *node) -{ - WRITE_STRING_FIELD(name, name, name); - WRITE_STRING_FIELD(refname, refname, refname); - WRITE_LIST_FIELD(partition_clause, partitionClause, partitionClause); - WRITE_LIST_FIELD(order_clause, orderClause, orderClause); - WRITE_INT_FIELD(frame_options, frameOptions, frameOptions); - WRITE_NODE_PTR_FIELD(start_offset, startOffset, startOffset); - WRITE_NODE_PTR_FIELD(end_offset, endOffset, endOffset); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outRangeSubselect(OUT_TYPE(RangeSubselect, RangeSubselect) out, const RangeSubselect *node) -{ - WRITE_BOOL_FIELD(lateral, lateral, lateral); - WRITE_NODE_PTR_FIELD(subquery, subquery, subquery); - WRITE_SPECIFIC_NODE_PTR_FIELD(Alias, alias, alias, alias, alias); -} - -static void -_outRangeFunction(OUT_TYPE(RangeFunction, RangeFunction) out, const RangeFunction *node) -{ - WRITE_BOOL_FIELD(lateral, lateral, lateral); - WRITE_BOOL_FIELD(ordinality, ordinality, ordinality); - WRITE_BOOL_FIELD(is_rowsfrom, is_rowsfrom, is_rowsfrom); - WRITE_LIST_FIELD(functions, functions, functions); - WRITE_SPECIFIC_NODE_PTR_FIELD(Alias, alias, alias, alias, alias); - WRITE_LIST_FIELD(coldeflist, coldeflist, coldeflist); -} - -static void -_outRangeTableSample(OUT_TYPE(RangeTableSample, RangeTableSample) out, const RangeTableSample *node) -{ - WRITE_NODE_PTR_FIELD(relation, relation, relation); - WRITE_LIST_FIELD(method, method, method); - WRITE_LIST_FIELD(args, args, args); - WRITE_NODE_PTR_FIELD(repeatable, repeatable, repeatable); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outRangeTableFunc(OUT_TYPE(RangeTableFunc, RangeTableFunc) out, const RangeTableFunc *node) -{ - WRITE_BOOL_FIELD(lateral, lateral, lateral); - WRITE_NODE_PTR_FIELD(docexpr, docexpr, docexpr); - WRITE_NODE_PTR_FIELD(rowexpr, rowexpr, rowexpr); - WRITE_LIST_FIELD(namespaces, namespaces, namespaces); - WRITE_LIST_FIELD(columns, columns, columns); - WRITE_SPECIFIC_NODE_PTR_FIELD(Alias, alias, alias, alias, alias); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outRangeTableFuncCol(OUT_TYPE(RangeTableFuncCol, RangeTableFuncCol) out, const RangeTableFuncCol *node) -{ - WRITE_STRING_FIELD(colname, colname, colname); - WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, typeName, typeName); - WRITE_BOOL_FIELD(for_ordinality, for_ordinality, for_ordinality); - WRITE_BOOL_FIELD(is_not_null, is_not_null, is_not_null); - WRITE_NODE_PTR_FIELD(colexpr, colexpr, colexpr); - WRITE_NODE_PTR_FIELD(coldefexpr, coldefexpr, coldefexpr); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outTypeName(OUT_TYPE(TypeName, TypeName) out, const TypeName *node) -{ - WRITE_LIST_FIELD(names, names, names); - WRITE_UINT_FIELD(type_oid, typeOid, typeOid); - WRITE_BOOL_FIELD(setof, setof, setof); - WRITE_BOOL_FIELD(pct_type, pct_type, pct_type); - WRITE_LIST_FIELD(typmods, typmods, typmods); - WRITE_INT_FIELD(typemod, typemod, typemod); - WRITE_LIST_FIELD(array_bounds, arrayBounds, arrayBounds); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outColumnDef(OUT_TYPE(ColumnDef, ColumnDef) out, const ColumnDef *node) -{ - WRITE_STRING_FIELD(colname, colname, colname); - WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, typeName, typeName); - WRITE_STRING_FIELD(compression, compression, compression); - WRITE_INT_FIELD(inhcount, inhcount, inhcount); - WRITE_BOOL_FIELD(is_local, is_local, is_local); - WRITE_BOOL_FIELD(is_not_null, is_not_null, is_not_null); - WRITE_BOOL_FIELD(is_from_type, is_from_type, is_from_type); - WRITE_CHAR_FIELD(storage, storage, storage); - WRITE_NODE_PTR_FIELD(raw_default, raw_default, raw_default); - WRITE_NODE_PTR_FIELD(cooked_default, cooked_default, cooked_default); - WRITE_CHAR_FIELD(identity, identity, identity); - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, identity_sequence, identitySequence, identitySequence); - WRITE_CHAR_FIELD(generated, generated, generated); - WRITE_SPECIFIC_NODE_PTR_FIELD(CollateClause, collate_clause, coll_clause, collClause, collClause); - WRITE_UINT_FIELD(coll_oid, collOid, collOid); - WRITE_LIST_FIELD(constraints, constraints, constraints); - WRITE_LIST_FIELD(fdwoptions, fdwoptions, fdwoptions); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outIndexElem(OUT_TYPE(IndexElem, IndexElem) out, const IndexElem *node) -{ - WRITE_STRING_FIELD(name, name, name); - WRITE_NODE_PTR_FIELD(expr, expr, expr); - WRITE_STRING_FIELD(indexcolname, indexcolname, indexcolname); - WRITE_LIST_FIELD(collation, collation, collation); - WRITE_LIST_FIELD(opclass, opclass, opclass); - WRITE_LIST_FIELD(opclassopts, opclassopts, opclassopts); - WRITE_ENUM_FIELD(SortByDir, ordering, ordering, ordering); - WRITE_ENUM_FIELD(SortByNulls, nulls_ordering, nulls_ordering, nulls_ordering); -} - -static void -_outStatsElem(OUT_TYPE(StatsElem, StatsElem) out, const StatsElem *node) -{ - WRITE_STRING_FIELD(name, name, name); - WRITE_NODE_PTR_FIELD(expr, expr, expr); -} - -static void -_outConstraint(OUT_TYPE(Constraint, Constraint) out, const Constraint *node) -{ - WRITE_ENUM_FIELD(ConstrType, contype, contype, contype); - WRITE_STRING_FIELD(conname, conname, conname); - WRITE_BOOL_FIELD(deferrable, deferrable, deferrable); - WRITE_BOOL_FIELD(initdeferred, initdeferred, initdeferred); - WRITE_INT_FIELD(location, location, location); - WRITE_BOOL_FIELD(is_no_inherit, is_no_inherit, is_no_inherit); - WRITE_NODE_PTR_FIELD(raw_expr, raw_expr, raw_expr); - WRITE_STRING_FIELD(cooked_expr, cooked_expr, cooked_expr); - WRITE_CHAR_FIELD(generated_when, generated_when, generated_when); - WRITE_BOOL_FIELD(nulls_not_distinct, nulls_not_distinct, nulls_not_distinct); - WRITE_LIST_FIELD(keys, keys, keys); - WRITE_LIST_FIELD(including, including, including); - WRITE_LIST_FIELD(exclusions, exclusions, exclusions); - WRITE_LIST_FIELD(options, options, options); - WRITE_STRING_FIELD(indexname, indexname, indexname); - WRITE_STRING_FIELD(indexspace, indexspace, indexspace); - WRITE_BOOL_FIELD(reset_default_tblspc, reset_default_tblspc, reset_default_tblspc); - WRITE_STRING_FIELD(access_method, access_method, access_method); - WRITE_NODE_PTR_FIELD(where_clause, where_clause, where_clause); - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, pktable, pktable, pktable); - WRITE_LIST_FIELD(fk_attrs, fk_attrs, fk_attrs); - WRITE_LIST_FIELD(pk_attrs, pk_attrs, pk_attrs); - WRITE_CHAR_FIELD(fk_matchtype, fk_matchtype, fk_matchtype); - WRITE_CHAR_FIELD(fk_upd_action, fk_upd_action, fk_upd_action); - WRITE_CHAR_FIELD(fk_del_action, fk_del_action, fk_del_action); - WRITE_LIST_FIELD(fk_del_set_cols, fk_del_set_cols, fk_del_set_cols); - WRITE_LIST_FIELD(old_conpfeqop, old_conpfeqop, old_conpfeqop); - WRITE_UINT_FIELD(old_pktable_oid, old_pktable_oid, old_pktable_oid); - WRITE_BOOL_FIELD(skip_validation, skip_validation, skip_validation); - WRITE_BOOL_FIELD(initially_valid, initially_valid, initially_valid); -} - -static void -_outDefElem(OUT_TYPE(DefElem, DefElem) out, const DefElem *node) -{ - WRITE_STRING_FIELD(defnamespace, defnamespace, defnamespace); - WRITE_STRING_FIELD(defname, defname, defname); - WRITE_NODE_PTR_FIELD(arg, arg, arg); - WRITE_ENUM_FIELD(DefElemAction, defaction, defaction, defaction); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outRangeTblEntry(OUT_TYPE(RangeTblEntry, RangeTblEntry) out, const RangeTblEntry *node) -{ - WRITE_ENUM_FIELD(RTEKind, rtekind, rtekind, rtekind); - WRITE_UINT_FIELD(relid, relid, relid); - WRITE_CHAR_FIELD(relkind, relkind, relkind); - WRITE_INT_FIELD(rellockmode, rellockmode, rellockmode); - WRITE_SPECIFIC_NODE_PTR_FIELD(TableSampleClause, table_sample_clause, tablesample, tablesample, tablesample); - WRITE_SPECIFIC_NODE_PTR_FIELD(Query, query, subquery, subquery, subquery); - WRITE_BOOL_FIELD(security_barrier, security_barrier, security_barrier); - WRITE_ENUM_FIELD(JoinType, jointype, jointype, jointype); - WRITE_INT_FIELD(joinmergedcols, joinmergedcols, joinmergedcols); - WRITE_LIST_FIELD(joinaliasvars, joinaliasvars, joinaliasvars); - WRITE_LIST_FIELD(joinleftcols, joinleftcols, joinleftcols); - WRITE_LIST_FIELD(joinrightcols, joinrightcols, joinrightcols); - WRITE_SPECIFIC_NODE_PTR_FIELD(Alias, alias, join_using_alias, join_using_alias, join_using_alias); - WRITE_LIST_FIELD(functions, functions, functions); - WRITE_BOOL_FIELD(funcordinality, funcordinality, funcordinality); - WRITE_SPECIFIC_NODE_PTR_FIELD(TableFunc, table_func, tablefunc, tablefunc, tablefunc); - WRITE_LIST_FIELD(values_lists, values_lists, values_lists); - WRITE_STRING_FIELD(ctename, ctename, ctename); - WRITE_UINT_FIELD(ctelevelsup, ctelevelsup, ctelevelsup); - WRITE_BOOL_FIELD(self_reference, self_reference, self_reference); - WRITE_LIST_FIELD(coltypes, coltypes, coltypes); - WRITE_LIST_FIELD(coltypmods, coltypmods, coltypmods); - WRITE_LIST_FIELD(colcollations, colcollations, colcollations); - WRITE_STRING_FIELD(enrname, enrname, enrname); - WRITE_FLOAT_FIELD(enrtuples, enrtuples, enrtuples); - WRITE_SPECIFIC_NODE_PTR_FIELD(Alias, alias, alias, alias, alias); - WRITE_SPECIFIC_NODE_PTR_FIELD(Alias, alias, eref, eref, eref); - WRITE_BOOL_FIELD(lateral, lateral, lateral); - WRITE_BOOL_FIELD(inh, inh, inh); - WRITE_BOOL_FIELD(in_from_cl, inFromCl, inFromCl); - WRITE_UINT_FIELD(required_perms, requiredPerms, requiredPerms); - WRITE_UINT_FIELD(check_as_user, checkAsUser, checkAsUser); - WRITE_BITMAPSET_FIELD(selected_cols, selectedCols, selectedCols); - WRITE_BITMAPSET_FIELD(inserted_cols, insertedCols, insertedCols); - WRITE_BITMAPSET_FIELD(updated_cols, updatedCols, updatedCols); - WRITE_BITMAPSET_FIELD(extra_updated_cols, extraUpdatedCols, extraUpdatedCols); - WRITE_LIST_FIELD(security_quals, securityQuals, securityQuals); -} - -static void -_outRangeTblFunction(OUT_TYPE(RangeTblFunction, RangeTblFunction) out, const RangeTblFunction *node) -{ - WRITE_NODE_PTR_FIELD(funcexpr, funcexpr, funcexpr); - WRITE_INT_FIELD(funccolcount, funccolcount, funccolcount); - WRITE_LIST_FIELD(funccolnames, funccolnames, funccolnames); - WRITE_LIST_FIELD(funccoltypes, funccoltypes, funccoltypes); - WRITE_LIST_FIELD(funccoltypmods, funccoltypmods, funccoltypmods); - WRITE_LIST_FIELD(funccolcollations, funccolcollations, funccolcollations); - WRITE_BITMAPSET_FIELD(funcparams, funcparams, funcparams); -} - -static void -_outTableSampleClause(OUT_TYPE(TableSampleClause, TableSampleClause) out, const TableSampleClause *node) -{ - WRITE_UINT_FIELD(tsmhandler, tsmhandler, tsmhandler); - WRITE_LIST_FIELD(args, args, args); - WRITE_NODE_PTR_FIELD(repeatable, repeatable, repeatable); -} - -static void -_outWithCheckOption(OUT_TYPE(WithCheckOption, WithCheckOption) out, const WithCheckOption *node) -{ - WRITE_ENUM_FIELD(WCOKind, kind, kind, kind); - WRITE_STRING_FIELD(relname, relname, relname); - WRITE_STRING_FIELD(polname, polname, polname); - WRITE_NODE_PTR_FIELD(qual, qual, qual); - WRITE_BOOL_FIELD(cascaded, cascaded, cascaded); -} - -static void -_outSortGroupClause(OUT_TYPE(SortGroupClause, SortGroupClause) out, const SortGroupClause *node) -{ - WRITE_UINT_FIELD(tle_sort_group_ref, tleSortGroupRef, tleSortGroupRef); - WRITE_UINT_FIELD(eqop, eqop, eqop); - WRITE_UINT_FIELD(sortop, sortop, sortop); - WRITE_BOOL_FIELD(nulls_first, nulls_first, nulls_first); - WRITE_BOOL_FIELD(hashable, hashable, hashable); -} - -static void -_outGroupingSet(OUT_TYPE(GroupingSet, GroupingSet) out, const GroupingSet *node) -{ - WRITE_ENUM_FIELD(GroupingSetKind, kind, kind, kind); - WRITE_LIST_FIELD(content, content, content); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outWindowClause(OUT_TYPE(WindowClause, WindowClause) out, const WindowClause *node) -{ - WRITE_STRING_FIELD(name, name, name); - WRITE_STRING_FIELD(refname, refname, refname); - WRITE_LIST_FIELD(partition_clause, partitionClause, partitionClause); - WRITE_LIST_FIELD(order_clause, orderClause, orderClause); - WRITE_INT_FIELD(frame_options, frameOptions, frameOptions); - WRITE_NODE_PTR_FIELD(start_offset, startOffset, startOffset); - WRITE_NODE_PTR_FIELD(end_offset, endOffset, endOffset); - WRITE_LIST_FIELD(run_condition, runCondition, runCondition); - WRITE_UINT_FIELD(start_in_range_func, startInRangeFunc, startInRangeFunc); - WRITE_UINT_FIELD(end_in_range_func, endInRangeFunc, endInRangeFunc); - WRITE_UINT_FIELD(in_range_coll, inRangeColl, inRangeColl); - WRITE_BOOL_FIELD(in_range_asc, inRangeAsc, inRangeAsc); - WRITE_BOOL_FIELD(in_range_nulls_first, inRangeNullsFirst, inRangeNullsFirst); - WRITE_UINT_FIELD(winref, winref, winref); - WRITE_BOOL_FIELD(copied_order, copiedOrder, copiedOrder); -} - -static void -_outObjectWithArgs(OUT_TYPE(ObjectWithArgs, ObjectWithArgs) out, const ObjectWithArgs *node) -{ - WRITE_LIST_FIELD(objname, objname, objname); - WRITE_LIST_FIELD(objargs, objargs, objargs); - WRITE_LIST_FIELD(objfuncargs, objfuncargs, objfuncargs); - WRITE_BOOL_FIELD(args_unspecified, args_unspecified, args_unspecified); -} - -static void -_outAccessPriv(OUT_TYPE(AccessPriv, AccessPriv) out, const AccessPriv *node) -{ - WRITE_STRING_FIELD(priv_name, priv_name, priv_name); - WRITE_LIST_FIELD(cols, cols, cols); -} - -static void -_outCreateOpClassItem(OUT_TYPE(CreateOpClassItem, CreateOpClassItem) out, const CreateOpClassItem *node) -{ - WRITE_INT_FIELD(itemtype, itemtype, itemtype); - WRITE_SPECIFIC_NODE_PTR_FIELD(ObjectWithArgs, object_with_args, name, name, name); - WRITE_INT_FIELD(number, number, number); - WRITE_LIST_FIELD(order_family, order_family, order_family); - WRITE_LIST_FIELD(class_args, class_args, class_args); - WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, storedtype, storedtype, storedtype); -} - -static void -_outTableLikeClause(OUT_TYPE(TableLikeClause, TableLikeClause) out, const TableLikeClause *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - WRITE_UINT_FIELD(options, options, options); - WRITE_UINT_FIELD(relation_oid, relationOid, relationOid); -} - -static void -_outFunctionParameter(OUT_TYPE(FunctionParameter, FunctionParameter) out, const FunctionParameter *node) -{ - WRITE_STRING_FIELD(name, name, name); - WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, arg_type, argType, argType); - WRITE_ENUM_FIELD(FunctionParameterMode, mode, mode, mode); - WRITE_NODE_PTR_FIELD(defexpr, defexpr, defexpr); -} - -static void -_outLockingClause(OUT_TYPE(LockingClause, LockingClause) out, const LockingClause *node) -{ - WRITE_LIST_FIELD(locked_rels, lockedRels, lockedRels); - WRITE_ENUM_FIELD(LockClauseStrength, strength, strength, strength); - WRITE_ENUM_FIELD(LockWaitPolicy, wait_policy, waitPolicy, waitPolicy); -} - -static void -_outRowMarkClause(OUT_TYPE(RowMarkClause, RowMarkClause) out, const RowMarkClause *node) -{ - WRITE_UINT_FIELD(rti, rti, rti); - WRITE_ENUM_FIELD(LockClauseStrength, strength, strength, strength); - WRITE_ENUM_FIELD(LockWaitPolicy, wait_policy, waitPolicy, waitPolicy); - WRITE_BOOL_FIELD(pushed_down, pushedDown, pushedDown); -} - -static void -_outXmlSerialize(OUT_TYPE(XmlSerialize, XmlSerialize) out, const XmlSerialize *node) -{ - WRITE_ENUM_FIELD(XmlOptionType, xmloption, xmloption, xmloption); - WRITE_NODE_PTR_FIELD(expr, expr, expr); - WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, typeName, typeName); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outWithClause(OUT_TYPE(WithClause, WithClause) out, const WithClause *node) -{ - WRITE_LIST_FIELD(ctes, ctes, ctes); - WRITE_BOOL_FIELD(recursive, recursive, recursive); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outInferClause(OUT_TYPE(InferClause, InferClause) out, const InferClause *node) -{ - WRITE_LIST_FIELD(index_elems, indexElems, indexElems); - WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause); - WRITE_STRING_FIELD(conname, conname, conname); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outOnConflictClause(OUT_TYPE(OnConflictClause, OnConflictClause) out, const OnConflictClause *node) -{ - WRITE_ENUM_FIELD(OnConflictAction, action, action, action); - WRITE_SPECIFIC_NODE_PTR_FIELD(InferClause, infer_clause, infer, infer, infer); - WRITE_LIST_FIELD(target_list, targetList, targetList); - WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outCTESearchClause(OUT_TYPE(CTESearchClause, CTESearchClause) out, const CTESearchClause *node) -{ - WRITE_LIST_FIELD(search_col_list, search_col_list, search_col_list); - WRITE_BOOL_FIELD(search_breadth_first, search_breadth_first, search_breadth_first); - WRITE_STRING_FIELD(search_seq_column, search_seq_column, search_seq_column); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outCTECycleClause(OUT_TYPE(CTECycleClause, CTECycleClause) out, const CTECycleClause *node) -{ - WRITE_LIST_FIELD(cycle_col_list, cycle_col_list, cycle_col_list); - WRITE_STRING_FIELD(cycle_mark_column, cycle_mark_column, cycle_mark_column); - WRITE_NODE_PTR_FIELD(cycle_mark_value, cycle_mark_value, cycle_mark_value); - WRITE_NODE_PTR_FIELD(cycle_mark_default, cycle_mark_default, cycle_mark_default); - WRITE_STRING_FIELD(cycle_path_column, cycle_path_column, cycle_path_column); - WRITE_INT_FIELD(location, location, location); - WRITE_UINT_FIELD(cycle_mark_type, cycle_mark_type, cycle_mark_type); - WRITE_INT_FIELD(cycle_mark_typmod, cycle_mark_typmod, cycle_mark_typmod); - WRITE_UINT_FIELD(cycle_mark_collation, cycle_mark_collation, cycle_mark_collation); - WRITE_UINT_FIELD(cycle_mark_neop, cycle_mark_neop, cycle_mark_neop); -} - -static void -_outCommonTableExpr(OUT_TYPE(CommonTableExpr, CommonTableExpr) out, const CommonTableExpr *node) -{ - WRITE_STRING_FIELD(ctename, ctename, ctename); - WRITE_LIST_FIELD(aliascolnames, aliascolnames, aliascolnames); - WRITE_ENUM_FIELD(CTEMaterialize, ctematerialized, ctematerialized, ctematerialized); - WRITE_NODE_PTR_FIELD(ctequery, ctequery, ctequery); - WRITE_SPECIFIC_NODE_PTR_FIELD(CTESearchClause, ctesearch_clause, search_clause, search_clause, search_clause); - WRITE_SPECIFIC_NODE_PTR_FIELD(CTECycleClause, ctecycle_clause, cycle_clause, cycle_clause, cycle_clause); - WRITE_INT_FIELD(location, location, location); - WRITE_BOOL_FIELD(cterecursive, cterecursive, cterecursive); - WRITE_INT_FIELD(cterefcount, cterefcount, cterefcount); - WRITE_LIST_FIELD(ctecolnames, ctecolnames, ctecolnames); - WRITE_LIST_FIELD(ctecoltypes, ctecoltypes, ctecoltypes); - WRITE_LIST_FIELD(ctecoltypmods, ctecoltypmods, ctecoltypmods); - WRITE_LIST_FIELD(ctecolcollations, ctecolcollations, ctecolcollations); -} - -static void -_outMergeWhenClause(OUT_TYPE(MergeWhenClause, MergeWhenClause) out, const MergeWhenClause *node) -{ - WRITE_BOOL_FIELD(matched, matched, matched); - WRITE_ENUM_FIELD(CmdType, command_type, commandType, commandType); - WRITE_ENUM_FIELD(OverridingKind, override, override, override); - WRITE_NODE_PTR_FIELD(condition, condition, condition); - WRITE_LIST_FIELD(target_list, targetList, targetList); - WRITE_LIST_FIELD(values, values, values); -} - -static void -_outRoleSpec(OUT_TYPE(RoleSpec, RoleSpec) out, const RoleSpec *node) -{ - WRITE_ENUM_FIELD(RoleSpecType, roletype, roletype, roletype); - WRITE_STRING_FIELD(rolename, rolename, rolename); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outTriggerTransition(OUT_TYPE(TriggerTransition, TriggerTransition) out, const TriggerTransition *node) -{ - WRITE_STRING_FIELD(name, name, name); - WRITE_BOOL_FIELD(is_new, isNew, isNew); - WRITE_BOOL_FIELD(is_table, isTable, isTable); -} - -static void -_outPartitionElem(OUT_TYPE(PartitionElem, PartitionElem) out, const PartitionElem *node) -{ - WRITE_STRING_FIELD(name, name, name); - WRITE_NODE_PTR_FIELD(expr, expr, expr); - WRITE_LIST_FIELD(collation, collation, collation); - WRITE_LIST_FIELD(opclass, opclass, opclass); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outPartitionSpec(OUT_TYPE(PartitionSpec, PartitionSpec) out, const PartitionSpec *node) -{ - WRITE_STRING_FIELD(strategy, strategy, strategy); - WRITE_LIST_FIELD(part_params, partParams, partParams); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outPartitionBoundSpec(OUT_TYPE(PartitionBoundSpec, PartitionBoundSpec) out, const PartitionBoundSpec *node) -{ - WRITE_CHAR_FIELD(strategy, strategy, strategy); - WRITE_BOOL_FIELD(is_default, is_default, is_default); - WRITE_INT_FIELD(modulus, modulus, modulus); - WRITE_INT_FIELD(remainder, remainder, remainder); - WRITE_LIST_FIELD(listdatums, listdatums, listdatums); - WRITE_LIST_FIELD(lowerdatums, lowerdatums, lowerdatums); - WRITE_LIST_FIELD(upperdatums, upperdatums, upperdatums); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outPartitionRangeDatum(OUT_TYPE(PartitionRangeDatum, PartitionRangeDatum) out, const PartitionRangeDatum *node) -{ - WRITE_ENUM_FIELD(PartitionRangeDatumKind, kind, kind, kind); - WRITE_NODE_PTR_FIELD(value, value, value); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outPartitionCmd(OUT_TYPE(PartitionCmd, PartitionCmd) out, const PartitionCmd *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, name, name, name); - WRITE_SPECIFIC_NODE_PTR_FIELD(PartitionBoundSpec, partition_bound_spec, bound, bound, bound); - WRITE_BOOL_FIELD(concurrent, concurrent, concurrent); -} - -static void -_outVacuumRelation(OUT_TYPE(VacuumRelation, VacuumRelation) out, const VacuumRelation *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - WRITE_UINT_FIELD(oid, oid, oid); - WRITE_LIST_FIELD(va_cols, va_cols, va_cols); -} - -static void -_outPublicationObjSpec(OUT_TYPE(PublicationObjSpec, PublicationObjSpec) out, const PublicationObjSpec *node) -{ - WRITE_ENUM_FIELD(PublicationObjSpecType, pubobjtype, pubobjtype, pubobjtype); - WRITE_STRING_FIELD(name, name, name); - WRITE_SPECIFIC_NODE_PTR_FIELD(PublicationTable, publication_table, pubtable, pubtable, pubtable); - WRITE_INT_FIELD(location, location, location); -} - -static void -_outPublicationTable(OUT_TYPE(PublicationTable, PublicationTable) out, const PublicationTable *node) -{ - WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause); - WRITE_LIST_FIELD(columns, columns, columns); -} - -static void -_outInlineCodeBlock(OUT_TYPE(InlineCodeBlock, InlineCodeBlock) out, const InlineCodeBlock *node) -{ - WRITE_STRING_FIELD(source_text, source_text, source_text); - WRITE_UINT_FIELD(lang_oid, langOid, langOid); - WRITE_BOOL_FIELD(lang_is_trusted, langIsTrusted, langIsTrusted); - WRITE_BOOL_FIELD(atomic, atomic, atomic); -} - -static void -_outCallContext(OUT_TYPE(CallContext, CallContext) out, const CallContext *node) -{ - WRITE_BOOL_FIELD(atomic, atomic, atomic); -} - diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_readfuncs_conds.c b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_readfuncs_conds.c deleted file mode 100644 index a026b68e6..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_readfuncs_conds.c +++ /dev/null @@ -1,231 +0,0 @@ -// This file is autogenerated by ./scripts/generate_protobuf_and_funcs.rb - - READ_COND(Alias, Alias, alias, ALIAS, Alias, alias); - READ_COND(RangeVar, RangeVar, range_var, RANGE_VAR, RangeVar, range_var); - READ_COND(TableFunc, TableFunc, table_func, TABLE_FUNC, TableFunc, table_func); - READ_COND(Var, Var, var, VAR, Var, var); - READ_COND(Param, Param, param, PARAM, Param, param); - READ_COND(Aggref, Aggref, aggref, AGGREF, Aggref, aggref); - READ_COND(GroupingFunc, GroupingFunc, grouping_func, GROUPING_FUNC, GroupingFunc, grouping_func); - READ_COND(WindowFunc, WindowFunc, window_func, WINDOW_FUNC, WindowFunc, window_func); - READ_COND(SubscriptingRef, SubscriptingRef, subscripting_ref, SUBSCRIPTING_REF, SubscriptingRef, subscripting_ref); - READ_COND(FuncExpr, FuncExpr, func_expr, FUNC_EXPR, FuncExpr, func_expr); - READ_COND(NamedArgExpr, NamedArgExpr, named_arg_expr, NAMED_ARG_EXPR, NamedArgExpr, named_arg_expr); - READ_COND(OpExpr, OpExpr, op_expr, OP_EXPR, OpExpr, op_expr); - READ_COND(DistinctExpr, DistinctExpr, distinct_expr, DISTINCT_EXPR, DistinctExpr, distinct_expr); - READ_COND(NullIfExpr, NullIfExpr, null_if_expr, NULL_IF_EXPR, NullIfExpr, null_if_expr); - READ_COND(ScalarArrayOpExpr, ScalarArrayOpExpr, scalar_array_op_expr, SCALAR_ARRAY_OP_EXPR, ScalarArrayOpExpr, scalar_array_op_expr); - READ_COND(BoolExpr, BoolExpr, bool_expr, BOOL_EXPR, BoolExpr, bool_expr); - READ_COND(SubLink, SubLink, sub_link, SUB_LINK, SubLink, sub_link); - READ_COND(SubPlan, SubPlan, sub_plan, SUB_PLAN, SubPlan, sub_plan); - READ_COND(AlternativeSubPlan, AlternativeSubPlan, alternative_sub_plan, ALTERNATIVE_SUB_PLAN, AlternativeSubPlan, alternative_sub_plan); - READ_COND(FieldSelect, FieldSelect, field_select, FIELD_SELECT, FieldSelect, field_select); - READ_COND(FieldStore, FieldStore, field_store, FIELD_STORE, FieldStore, field_store); - READ_COND(RelabelType, RelabelType, relabel_type, RELABEL_TYPE, RelabelType, relabel_type); - READ_COND(CoerceViaIO, CoerceViaIO, coerce_via_io, COERCE_VIA_IO, CoerceViaIO, coerce_via_io); - READ_COND(ArrayCoerceExpr, ArrayCoerceExpr, array_coerce_expr, ARRAY_COERCE_EXPR, ArrayCoerceExpr, array_coerce_expr); - READ_COND(ConvertRowtypeExpr, ConvertRowtypeExpr, convert_rowtype_expr, CONVERT_ROWTYPE_EXPR, ConvertRowtypeExpr, convert_rowtype_expr); - READ_COND(CollateExpr, CollateExpr, collate_expr, COLLATE_EXPR, CollateExpr, collate_expr); - READ_COND(CaseExpr, CaseExpr, case_expr, CASE_EXPR, CaseExpr, case_expr); - READ_COND(CaseWhen, CaseWhen, case_when, CASE_WHEN, CaseWhen, case_when); - READ_COND(CaseTestExpr, CaseTestExpr, case_test_expr, CASE_TEST_EXPR, CaseTestExpr, case_test_expr); - READ_COND(ArrayExpr, ArrayExpr, array_expr, ARRAY_EXPR, ArrayExpr, array_expr); - READ_COND(RowExpr, RowExpr, row_expr, ROW_EXPR, RowExpr, row_expr); - READ_COND(RowCompareExpr, RowCompareExpr, row_compare_expr, ROW_COMPARE_EXPR, RowCompareExpr, row_compare_expr); - READ_COND(CoalesceExpr, CoalesceExpr, coalesce_expr, COALESCE_EXPR, CoalesceExpr, coalesce_expr); - READ_COND(MinMaxExpr, MinMaxExpr, min_max_expr, MIN_MAX_EXPR, MinMaxExpr, min_max_expr); - READ_COND(SQLValueFunction, SQLValueFunction, sqlvalue_function, SQLVALUE_FUNCTION, SQLValueFunction, sqlvalue_function); - READ_COND(XmlExpr, XmlExpr, xml_expr, XML_EXPR, XmlExpr, xml_expr); - READ_COND(NullTest, NullTest, null_test, NULL_TEST, NullTest, null_test); - READ_COND(BooleanTest, BooleanTest, boolean_test, BOOLEAN_TEST, BooleanTest, boolean_test); - READ_COND(CoerceToDomain, CoerceToDomain, coerce_to_domain, COERCE_TO_DOMAIN, CoerceToDomain, coerce_to_domain); - READ_COND(CoerceToDomainValue, CoerceToDomainValue, coerce_to_domain_value, COERCE_TO_DOMAIN_VALUE, CoerceToDomainValue, coerce_to_domain_value); - READ_COND(SetToDefault, SetToDefault, set_to_default, SET_TO_DEFAULT, SetToDefault, set_to_default); - READ_COND(CurrentOfExpr, CurrentOfExpr, current_of_expr, CURRENT_OF_EXPR, CurrentOfExpr, current_of_expr); - READ_COND(NextValueExpr, NextValueExpr, next_value_expr, NEXT_VALUE_EXPR, NextValueExpr, next_value_expr); - READ_COND(InferenceElem, InferenceElem, inference_elem, INFERENCE_ELEM, InferenceElem, inference_elem); - READ_COND(TargetEntry, TargetEntry, target_entry, TARGET_ENTRY, TargetEntry, target_entry); - READ_COND(RangeTblRef, RangeTblRef, range_tbl_ref, RANGE_TBL_REF, RangeTblRef, range_tbl_ref); - READ_COND(JoinExpr, JoinExpr, join_expr, JOIN_EXPR, JoinExpr, join_expr); - READ_COND(FromExpr, FromExpr, from_expr, FROM_EXPR, FromExpr, from_expr); - READ_COND(OnConflictExpr, OnConflictExpr, on_conflict_expr, ON_CONFLICT_EXPR, OnConflictExpr, on_conflict_expr); - READ_COND(IntoClause, IntoClause, into_clause, INTO_CLAUSE, IntoClause, into_clause); - READ_COND(MergeAction, MergeAction, merge_action, MERGE_ACTION, MergeAction, merge_action); - READ_COND(RawStmt, RawStmt, raw_stmt, RAW_STMT, RawStmt, raw_stmt); - READ_COND(Query, Query, query, QUERY, Query, query); - READ_COND(InsertStmt, InsertStmt, insert_stmt, INSERT_STMT, InsertStmt, insert_stmt); - READ_COND(DeleteStmt, DeleteStmt, delete_stmt, DELETE_STMT, DeleteStmt, delete_stmt); - READ_COND(UpdateStmt, UpdateStmt, update_stmt, UPDATE_STMT, UpdateStmt, update_stmt); - READ_COND(MergeStmt, MergeStmt, merge_stmt, MERGE_STMT, MergeStmt, merge_stmt); - READ_COND(SelectStmt, SelectStmt, select_stmt, SELECT_STMT, SelectStmt, select_stmt); - READ_COND(ReturnStmt, ReturnStmt, return_stmt, RETURN_STMT, ReturnStmt, return_stmt); - READ_COND(PLAssignStmt, PLAssignStmt, plassign_stmt, PLASSIGN_STMT, PLAssignStmt, plassign_stmt); - READ_COND(AlterTableStmt, AlterTableStmt, alter_table_stmt, ALTER_TABLE_STMT, AlterTableStmt, alter_table_stmt); - READ_COND(AlterTableCmd, AlterTableCmd, alter_table_cmd, ALTER_TABLE_CMD, AlterTableCmd, alter_table_cmd); - READ_COND(AlterDomainStmt, AlterDomainStmt, alter_domain_stmt, ALTER_DOMAIN_STMT, AlterDomainStmt, alter_domain_stmt); - READ_COND(SetOperationStmt, SetOperationStmt, set_operation_stmt, SET_OPERATION_STMT, SetOperationStmt, set_operation_stmt); - READ_COND(GrantStmt, GrantStmt, grant_stmt, GRANT_STMT, GrantStmt, grant_stmt); - READ_COND(GrantRoleStmt, GrantRoleStmt, grant_role_stmt, GRANT_ROLE_STMT, GrantRoleStmt, grant_role_stmt); - READ_COND(AlterDefaultPrivilegesStmt, AlterDefaultPrivilegesStmt, alter_default_privileges_stmt, ALTER_DEFAULT_PRIVILEGES_STMT, AlterDefaultPrivilegesStmt, alter_default_privileges_stmt); - READ_COND(ClosePortalStmt, ClosePortalStmt, close_portal_stmt, CLOSE_PORTAL_STMT, ClosePortalStmt, close_portal_stmt); - READ_COND(ClusterStmt, ClusterStmt, cluster_stmt, CLUSTER_STMT, ClusterStmt, cluster_stmt); - READ_COND(CopyStmt, CopyStmt, copy_stmt, COPY_STMT, CopyStmt, copy_stmt); - READ_COND(CreateStmt, CreateStmt, create_stmt, CREATE_STMT, CreateStmt, create_stmt); - READ_COND(DefineStmt, DefineStmt, define_stmt, DEFINE_STMT, DefineStmt, define_stmt); - READ_COND(DropStmt, DropStmt, drop_stmt, DROP_STMT, DropStmt, drop_stmt); - READ_COND(TruncateStmt, TruncateStmt, truncate_stmt, TRUNCATE_STMT, TruncateStmt, truncate_stmt); - READ_COND(CommentStmt, CommentStmt, comment_stmt, COMMENT_STMT, CommentStmt, comment_stmt); - READ_COND(FetchStmt, FetchStmt, fetch_stmt, FETCH_STMT, FetchStmt, fetch_stmt); - READ_COND(IndexStmt, IndexStmt, index_stmt, INDEX_STMT, IndexStmt, index_stmt); - READ_COND(CreateFunctionStmt, CreateFunctionStmt, create_function_stmt, CREATE_FUNCTION_STMT, CreateFunctionStmt, create_function_stmt); - READ_COND(AlterFunctionStmt, AlterFunctionStmt, alter_function_stmt, ALTER_FUNCTION_STMT, AlterFunctionStmt, alter_function_stmt); - READ_COND(DoStmt, DoStmt, do_stmt, DO_STMT, DoStmt, do_stmt); - READ_COND(RenameStmt, RenameStmt, rename_stmt, RENAME_STMT, RenameStmt, rename_stmt); - READ_COND(RuleStmt, RuleStmt, rule_stmt, RULE_STMT, RuleStmt, rule_stmt); - READ_COND(NotifyStmt, NotifyStmt, notify_stmt, NOTIFY_STMT, NotifyStmt, notify_stmt); - READ_COND(ListenStmt, ListenStmt, listen_stmt, LISTEN_STMT, ListenStmt, listen_stmt); - READ_COND(UnlistenStmt, UnlistenStmt, unlisten_stmt, UNLISTEN_STMT, UnlistenStmt, unlisten_stmt); - READ_COND(TransactionStmt, TransactionStmt, transaction_stmt, TRANSACTION_STMT, TransactionStmt, transaction_stmt); - READ_COND(ViewStmt, ViewStmt, view_stmt, VIEW_STMT, ViewStmt, view_stmt); - READ_COND(LoadStmt, LoadStmt, load_stmt, LOAD_STMT, LoadStmt, load_stmt); - READ_COND(CreateDomainStmt, CreateDomainStmt, create_domain_stmt, CREATE_DOMAIN_STMT, CreateDomainStmt, create_domain_stmt); - READ_COND(CreatedbStmt, CreatedbStmt, createdb_stmt, CREATEDB_STMT, CreatedbStmt, createdb_stmt); - READ_COND(DropdbStmt, DropdbStmt, dropdb_stmt, DROPDB_STMT, DropdbStmt, dropdb_stmt); - READ_COND(VacuumStmt, VacuumStmt, vacuum_stmt, VACUUM_STMT, VacuumStmt, vacuum_stmt); - READ_COND(ExplainStmt, ExplainStmt, explain_stmt, EXPLAIN_STMT, ExplainStmt, explain_stmt); - READ_COND(CreateTableAsStmt, CreateTableAsStmt, create_table_as_stmt, CREATE_TABLE_AS_STMT, CreateTableAsStmt, create_table_as_stmt); - READ_COND(CreateSeqStmt, CreateSeqStmt, create_seq_stmt, CREATE_SEQ_STMT, CreateSeqStmt, create_seq_stmt); - READ_COND(AlterSeqStmt, AlterSeqStmt, alter_seq_stmt, ALTER_SEQ_STMT, AlterSeqStmt, alter_seq_stmt); - READ_COND(VariableSetStmt, VariableSetStmt, variable_set_stmt, VARIABLE_SET_STMT, VariableSetStmt, variable_set_stmt); - READ_COND(VariableShowStmt, VariableShowStmt, variable_show_stmt, VARIABLE_SHOW_STMT, VariableShowStmt, variable_show_stmt); - READ_COND(DiscardStmt, DiscardStmt, discard_stmt, DISCARD_STMT, DiscardStmt, discard_stmt); - READ_COND(CreateTrigStmt, CreateTrigStmt, create_trig_stmt, CREATE_TRIG_STMT, CreateTrigStmt, create_trig_stmt); - READ_COND(CreatePLangStmt, CreatePLangStmt, create_plang_stmt, CREATE_PLANG_STMT, CreatePLangStmt, create_plang_stmt); - READ_COND(CreateRoleStmt, CreateRoleStmt, create_role_stmt, CREATE_ROLE_STMT, CreateRoleStmt, create_role_stmt); - READ_COND(AlterRoleStmt, AlterRoleStmt, alter_role_stmt, ALTER_ROLE_STMT, AlterRoleStmt, alter_role_stmt); - READ_COND(DropRoleStmt, DropRoleStmt, drop_role_stmt, DROP_ROLE_STMT, DropRoleStmt, drop_role_stmt); - READ_COND(LockStmt, LockStmt, lock_stmt, LOCK_STMT, LockStmt, lock_stmt); - READ_COND(ConstraintsSetStmt, ConstraintsSetStmt, constraints_set_stmt, CONSTRAINTS_SET_STMT, ConstraintsSetStmt, constraints_set_stmt); - READ_COND(ReindexStmt, ReindexStmt, reindex_stmt, REINDEX_STMT, ReindexStmt, reindex_stmt); - READ_COND(CheckPointStmt, CheckPointStmt, check_point_stmt, CHECK_POINT_STMT, CheckPointStmt, check_point_stmt); - READ_COND(CreateSchemaStmt, CreateSchemaStmt, create_schema_stmt, CREATE_SCHEMA_STMT, CreateSchemaStmt, create_schema_stmt); - READ_COND(AlterDatabaseStmt, AlterDatabaseStmt, alter_database_stmt, ALTER_DATABASE_STMT, AlterDatabaseStmt, alter_database_stmt); - READ_COND(AlterDatabaseRefreshCollStmt, AlterDatabaseRefreshCollStmt, alter_database_refresh_coll_stmt, ALTER_DATABASE_REFRESH_COLL_STMT, AlterDatabaseRefreshCollStmt, alter_database_refresh_coll_stmt); - READ_COND(AlterDatabaseSetStmt, AlterDatabaseSetStmt, alter_database_set_stmt, ALTER_DATABASE_SET_STMT, AlterDatabaseSetStmt, alter_database_set_stmt); - READ_COND(AlterRoleSetStmt, AlterRoleSetStmt, alter_role_set_stmt, ALTER_ROLE_SET_STMT, AlterRoleSetStmt, alter_role_set_stmt); - READ_COND(CreateConversionStmt, CreateConversionStmt, create_conversion_stmt, CREATE_CONVERSION_STMT, CreateConversionStmt, create_conversion_stmt); - READ_COND(CreateCastStmt, CreateCastStmt, create_cast_stmt, CREATE_CAST_STMT, CreateCastStmt, create_cast_stmt); - READ_COND(CreateOpClassStmt, CreateOpClassStmt, create_op_class_stmt, CREATE_OP_CLASS_STMT, CreateOpClassStmt, create_op_class_stmt); - READ_COND(CreateOpFamilyStmt, CreateOpFamilyStmt, create_op_family_stmt, CREATE_OP_FAMILY_STMT, CreateOpFamilyStmt, create_op_family_stmt); - READ_COND(AlterOpFamilyStmt, AlterOpFamilyStmt, alter_op_family_stmt, ALTER_OP_FAMILY_STMT, AlterOpFamilyStmt, alter_op_family_stmt); - READ_COND(PrepareStmt, PrepareStmt, prepare_stmt, PREPARE_STMT, PrepareStmt, prepare_stmt); - READ_COND(ExecuteStmt, ExecuteStmt, execute_stmt, EXECUTE_STMT, ExecuteStmt, execute_stmt); - READ_COND(DeallocateStmt, DeallocateStmt, deallocate_stmt, DEALLOCATE_STMT, DeallocateStmt, deallocate_stmt); - READ_COND(DeclareCursorStmt, DeclareCursorStmt, declare_cursor_stmt, DECLARE_CURSOR_STMT, DeclareCursorStmt, declare_cursor_stmt); - READ_COND(CreateTableSpaceStmt, CreateTableSpaceStmt, create_table_space_stmt, CREATE_TABLE_SPACE_STMT, CreateTableSpaceStmt, create_table_space_stmt); - READ_COND(DropTableSpaceStmt, DropTableSpaceStmt, drop_table_space_stmt, DROP_TABLE_SPACE_STMT, DropTableSpaceStmt, drop_table_space_stmt); - READ_COND(AlterObjectDependsStmt, AlterObjectDependsStmt, alter_object_depends_stmt, ALTER_OBJECT_DEPENDS_STMT, AlterObjectDependsStmt, alter_object_depends_stmt); - READ_COND(AlterObjectSchemaStmt, AlterObjectSchemaStmt, alter_object_schema_stmt, ALTER_OBJECT_SCHEMA_STMT, AlterObjectSchemaStmt, alter_object_schema_stmt); - READ_COND(AlterOwnerStmt, AlterOwnerStmt, alter_owner_stmt, ALTER_OWNER_STMT, AlterOwnerStmt, alter_owner_stmt); - READ_COND(AlterOperatorStmt, AlterOperatorStmt, alter_operator_stmt, ALTER_OPERATOR_STMT, AlterOperatorStmt, alter_operator_stmt); - READ_COND(AlterTypeStmt, AlterTypeStmt, alter_type_stmt, ALTER_TYPE_STMT, AlterTypeStmt, alter_type_stmt); - READ_COND(DropOwnedStmt, DropOwnedStmt, drop_owned_stmt, DROP_OWNED_STMT, DropOwnedStmt, drop_owned_stmt); - READ_COND(ReassignOwnedStmt, ReassignOwnedStmt, reassign_owned_stmt, REASSIGN_OWNED_STMT, ReassignOwnedStmt, reassign_owned_stmt); - READ_COND(CompositeTypeStmt, CompositeTypeStmt, composite_type_stmt, COMPOSITE_TYPE_STMT, CompositeTypeStmt, composite_type_stmt); - READ_COND(CreateEnumStmt, CreateEnumStmt, create_enum_stmt, CREATE_ENUM_STMT, CreateEnumStmt, create_enum_stmt); - READ_COND(CreateRangeStmt, CreateRangeStmt, create_range_stmt, CREATE_RANGE_STMT, CreateRangeStmt, create_range_stmt); - READ_COND(AlterEnumStmt, AlterEnumStmt, alter_enum_stmt, ALTER_ENUM_STMT, AlterEnumStmt, alter_enum_stmt); - READ_COND(AlterTSDictionaryStmt, AlterTSDictionaryStmt, alter_tsdictionary_stmt, ALTER_TSDICTIONARY_STMT, AlterTSDictionaryStmt, alter_tsdictionary_stmt); - READ_COND(AlterTSConfigurationStmt, AlterTSConfigurationStmt, alter_tsconfiguration_stmt, ALTER_TSCONFIGURATION_STMT, AlterTSConfigurationStmt, alter_tsconfiguration_stmt); - READ_COND(CreateFdwStmt, CreateFdwStmt, create_fdw_stmt, CREATE_FDW_STMT, CreateFdwStmt, create_fdw_stmt); - READ_COND(AlterFdwStmt, AlterFdwStmt, alter_fdw_stmt, ALTER_FDW_STMT, AlterFdwStmt, alter_fdw_stmt); - READ_COND(CreateForeignServerStmt, CreateForeignServerStmt, create_foreign_server_stmt, CREATE_FOREIGN_SERVER_STMT, CreateForeignServerStmt, create_foreign_server_stmt); - READ_COND(AlterForeignServerStmt, AlterForeignServerStmt, alter_foreign_server_stmt, ALTER_FOREIGN_SERVER_STMT, AlterForeignServerStmt, alter_foreign_server_stmt); - READ_COND(CreateUserMappingStmt, CreateUserMappingStmt, create_user_mapping_stmt, CREATE_USER_MAPPING_STMT, CreateUserMappingStmt, create_user_mapping_stmt); - READ_COND(AlterUserMappingStmt, AlterUserMappingStmt, alter_user_mapping_stmt, ALTER_USER_MAPPING_STMT, AlterUserMappingStmt, alter_user_mapping_stmt); - READ_COND(DropUserMappingStmt, DropUserMappingStmt, drop_user_mapping_stmt, DROP_USER_MAPPING_STMT, DropUserMappingStmt, drop_user_mapping_stmt); - READ_COND(AlterTableSpaceOptionsStmt, AlterTableSpaceOptionsStmt, alter_table_space_options_stmt, ALTER_TABLE_SPACE_OPTIONS_STMT, AlterTableSpaceOptionsStmt, alter_table_space_options_stmt); - READ_COND(AlterTableMoveAllStmt, AlterTableMoveAllStmt, alter_table_move_all_stmt, ALTER_TABLE_MOVE_ALL_STMT, AlterTableMoveAllStmt, alter_table_move_all_stmt); - READ_COND(SecLabelStmt, SecLabelStmt, sec_label_stmt, SEC_LABEL_STMT, SecLabelStmt, sec_label_stmt); - READ_COND(CreateForeignTableStmt, CreateForeignTableStmt, create_foreign_table_stmt, CREATE_FOREIGN_TABLE_STMT, CreateForeignTableStmt, create_foreign_table_stmt); - READ_COND(ImportForeignSchemaStmt, ImportForeignSchemaStmt, import_foreign_schema_stmt, IMPORT_FOREIGN_SCHEMA_STMT, ImportForeignSchemaStmt, import_foreign_schema_stmt); - READ_COND(CreateExtensionStmt, CreateExtensionStmt, create_extension_stmt, CREATE_EXTENSION_STMT, CreateExtensionStmt, create_extension_stmt); - READ_COND(AlterExtensionStmt, AlterExtensionStmt, alter_extension_stmt, ALTER_EXTENSION_STMT, AlterExtensionStmt, alter_extension_stmt); - READ_COND(AlterExtensionContentsStmt, AlterExtensionContentsStmt, alter_extension_contents_stmt, ALTER_EXTENSION_CONTENTS_STMT, AlterExtensionContentsStmt, alter_extension_contents_stmt); - READ_COND(CreateEventTrigStmt, CreateEventTrigStmt, create_event_trig_stmt, CREATE_EVENT_TRIG_STMT, CreateEventTrigStmt, create_event_trig_stmt); - READ_COND(AlterEventTrigStmt, AlterEventTrigStmt, alter_event_trig_stmt, ALTER_EVENT_TRIG_STMT, AlterEventTrigStmt, alter_event_trig_stmt); - READ_COND(RefreshMatViewStmt, RefreshMatViewStmt, refresh_mat_view_stmt, REFRESH_MAT_VIEW_STMT, RefreshMatViewStmt, refresh_mat_view_stmt); - READ_COND(ReplicaIdentityStmt, ReplicaIdentityStmt, replica_identity_stmt, REPLICA_IDENTITY_STMT, ReplicaIdentityStmt, replica_identity_stmt); - READ_COND(AlterSystemStmt, AlterSystemStmt, alter_system_stmt, ALTER_SYSTEM_STMT, AlterSystemStmt, alter_system_stmt); - READ_COND(CreatePolicyStmt, CreatePolicyStmt, create_policy_stmt, CREATE_POLICY_STMT, CreatePolicyStmt, create_policy_stmt); - READ_COND(AlterPolicyStmt, AlterPolicyStmt, alter_policy_stmt, ALTER_POLICY_STMT, AlterPolicyStmt, alter_policy_stmt); - READ_COND(CreateTransformStmt, CreateTransformStmt, create_transform_stmt, CREATE_TRANSFORM_STMT, CreateTransformStmt, create_transform_stmt); - READ_COND(CreateAmStmt, CreateAmStmt, create_am_stmt, CREATE_AM_STMT, CreateAmStmt, create_am_stmt); - READ_COND(CreatePublicationStmt, CreatePublicationStmt, create_publication_stmt, CREATE_PUBLICATION_STMT, CreatePublicationStmt, create_publication_stmt); - READ_COND(AlterPublicationStmt, AlterPublicationStmt, alter_publication_stmt, ALTER_PUBLICATION_STMT, AlterPublicationStmt, alter_publication_stmt); - READ_COND(CreateSubscriptionStmt, CreateSubscriptionStmt, create_subscription_stmt, CREATE_SUBSCRIPTION_STMT, CreateSubscriptionStmt, create_subscription_stmt); - READ_COND(AlterSubscriptionStmt, AlterSubscriptionStmt, alter_subscription_stmt, ALTER_SUBSCRIPTION_STMT, AlterSubscriptionStmt, alter_subscription_stmt); - READ_COND(DropSubscriptionStmt, DropSubscriptionStmt, drop_subscription_stmt, DROP_SUBSCRIPTION_STMT, DropSubscriptionStmt, drop_subscription_stmt); - READ_COND(CreateStatsStmt, CreateStatsStmt, create_stats_stmt, CREATE_STATS_STMT, CreateStatsStmt, create_stats_stmt); - READ_COND(AlterCollationStmt, AlterCollationStmt, alter_collation_stmt, ALTER_COLLATION_STMT, AlterCollationStmt, alter_collation_stmt); - READ_COND(CallStmt, CallStmt, call_stmt, CALL_STMT, CallStmt, call_stmt); - READ_COND(AlterStatsStmt, AlterStatsStmt, alter_stats_stmt, ALTER_STATS_STMT, AlterStatsStmt, alter_stats_stmt); - READ_COND(A_Expr, AExpr, a__expr, A_EXPR, A_Expr, a_expr); - READ_COND(ColumnRef, ColumnRef, column_ref, COLUMN_REF, ColumnRef, column_ref); - READ_COND(ParamRef, ParamRef, param_ref, PARAM_REF, ParamRef, param_ref); - READ_COND(FuncCall, FuncCall, func_call, FUNC_CALL, FuncCall, func_call); - READ_COND(A_Star, AStar, a__star, A_STAR, A_Star, a_star); - READ_COND(A_Indices, AIndices, a__indices, A_INDICES, A_Indices, a_indices); - READ_COND(A_Indirection, AIndirection, a__indirection, A_INDIRECTION, A_Indirection, a_indirection); - READ_COND(A_ArrayExpr, AArrayExpr, a__array_expr, A_ARRAY_EXPR, A_ArrayExpr, a_array_expr); - READ_COND(ResTarget, ResTarget, res_target, RES_TARGET, ResTarget, res_target); - READ_COND(MultiAssignRef, MultiAssignRef, multi_assign_ref, MULTI_ASSIGN_REF, MultiAssignRef, multi_assign_ref); - READ_COND(TypeCast, TypeCast, type_cast, TYPE_CAST, TypeCast, type_cast); - READ_COND(CollateClause, CollateClause, collate_clause, COLLATE_CLAUSE, CollateClause, collate_clause); - READ_COND(SortBy, SortBy, sort_by, SORT_BY, SortBy, sort_by); - READ_COND(WindowDef, WindowDef, window_def, WINDOW_DEF, WindowDef, window_def); - READ_COND(RangeSubselect, RangeSubselect, range_subselect, RANGE_SUBSELECT, RangeSubselect, range_subselect); - READ_COND(RangeFunction, RangeFunction, range_function, RANGE_FUNCTION, RangeFunction, range_function); - READ_COND(RangeTableSample, RangeTableSample, range_table_sample, RANGE_TABLE_SAMPLE, RangeTableSample, range_table_sample); - READ_COND(RangeTableFunc, RangeTableFunc, range_table_func, RANGE_TABLE_FUNC, RangeTableFunc, range_table_func); - READ_COND(RangeTableFuncCol, RangeTableFuncCol, range_table_func_col, RANGE_TABLE_FUNC_COL, RangeTableFuncCol, range_table_func_col); - READ_COND(TypeName, TypeName, type_name, TYPE_NAME, TypeName, type_name); - READ_COND(ColumnDef, ColumnDef, column_def, COLUMN_DEF, ColumnDef, column_def); - READ_COND(IndexElem, IndexElem, index_elem, INDEX_ELEM, IndexElem, index_elem); - READ_COND(StatsElem, StatsElem, stats_elem, STATS_ELEM, StatsElem, stats_elem); - READ_COND(Constraint, Constraint, constraint, CONSTRAINT, Constraint, constraint); - READ_COND(DefElem, DefElem, def_elem, DEF_ELEM, DefElem, def_elem); - READ_COND(RangeTblEntry, RangeTblEntry, range_tbl_entry, RANGE_TBL_ENTRY, RangeTblEntry, range_tbl_entry); - READ_COND(RangeTblFunction, RangeTblFunction, range_tbl_function, RANGE_TBL_FUNCTION, RangeTblFunction, range_tbl_function); - READ_COND(TableSampleClause, TableSampleClause, table_sample_clause, TABLE_SAMPLE_CLAUSE, TableSampleClause, table_sample_clause); - READ_COND(WithCheckOption, WithCheckOption, with_check_option, WITH_CHECK_OPTION, WithCheckOption, with_check_option); - READ_COND(SortGroupClause, SortGroupClause, sort_group_clause, SORT_GROUP_CLAUSE, SortGroupClause, sort_group_clause); - READ_COND(GroupingSet, GroupingSet, grouping_set, GROUPING_SET, GroupingSet, grouping_set); - READ_COND(WindowClause, WindowClause, window_clause, WINDOW_CLAUSE, WindowClause, window_clause); - READ_COND(ObjectWithArgs, ObjectWithArgs, object_with_args, OBJECT_WITH_ARGS, ObjectWithArgs, object_with_args); - READ_COND(AccessPriv, AccessPriv, access_priv, ACCESS_PRIV, AccessPriv, access_priv); - READ_COND(CreateOpClassItem, CreateOpClassItem, create_op_class_item, CREATE_OP_CLASS_ITEM, CreateOpClassItem, create_op_class_item); - READ_COND(TableLikeClause, TableLikeClause, table_like_clause, TABLE_LIKE_CLAUSE, TableLikeClause, table_like_clause); - READ_COND(FunctionParameter, FunctionParameter, function_parameter, FUNCTION_PARAMETER, FunctionParameter, function_parameter); - READ_COND(LockingClause, LockingClause, locking_clause, LOCKING_CLAUSE, LockingClause, locking_clause); - READ_COND(RowMarkClause, RowMarkClause, row_mark_clause, ROW_MARK_CLAUSE, RowMarkClause, row_mark_clause); - READ_COND(XmlSerialize, XmlSerialize, xml_serialize, XML_SERIALIZE, XmlSerialize, xml_serialize); - READ_COND(WithClause, WithClause, with_clause, WITH_CLAUSE, WithClause, with_clause); - READ_COND(InferClause, InferClause, infer_clause, INFER_CLAUSE, InferClause, infer_clause); - READ_COND(OnConflictClause, OnConflictClause, on_conflict_clause, ON_CONFLICT_CLAUSE, OnConflictClause, on_conflict_clause); - READ_COND(CTESearchClause, CTESearchClause, ctesearch_clause, CTESEARCH_CLAUSE, CTESearchClause, ctesearch_clause); - READ_COND(CTECycleClause, CTECycleClause, ctecycle_clause, CTECYCLE_CLAUSE, CTECycleClause, ctecycle_clause); - READ_COND(CommonTableExpr, CommonTableExpr, common_table_expr, COMMON_TABLE_EXPR, CommonTableExpr, common_table_expr); - READ_COND(MergeWhenClause, MergeWhenClause, merge_when_clause, MERGE_WHEN_CLAUSE, MergeWhenClause, merge_when_clause); - READ_COND(RoleSpec, RoleSpec, role_spec, ROLE_SPEC, RoleSpec, role_spec); - READ_COND(TriggerTransition, TriggerTransition, trigger_transition, TRIGGER_TRANSITION, TriggerTransition, trigger_transition); - READ_COND(PartitionElem, PartitionElem, partition_elem, PARTITION_ELEM, PartitionElem, partition_elem); - READ_COND(PartitionSpec, PartitionSpec, partition_spec, PARTITION_SPEC, PartitionSpec, partition_spec); - READ_COND(PartitionBoundSpec, PartitionBoundSpec, partition_bound_spec, PARTITION_BOUND_SPEC, PartitionBoundSpec, partition_bound_spec); - READ_COND(PartitionRangeDatum, PartitionRangeDatum, partition_range_datum, PARTITION_RANGE_DATUM, PartitionRangeDatum, partition_range_datum); - READ_COND(PartitionCmd, PartitionCmd, partition_cmd, PARTITION_CMD, PartitionCmd, partition_cmd); - READ_COND(VacuumRelation, VacuumRelation, vacuum_relation, VACUUM_RELATION, VacuumRelation, vacuum_relation); - READ_COND(PublicationObjSpec, PublicationObjSpec, publication_obj_spec, PUBLICATION_OBJ_SPEC, PublicationObjSpec, publication_obj_spec); - READ_COND(PublicationTable, PublicationTable, publication_table, PUBLICATION_TABLE, PublicationTable, publication_table); - READ_COND(InlineCodeBlock, InlineCodeBlock, inline_code_block, INLINE_CODE_BLOCK, InlineCodeBlock, inline_code_block); - READ_COND(CallContext, CallContext, call_context, CALL_CONTEXT, CallContext, call_context); diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_readfuncs_defs.c b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_readfuncs_defs.c deleted file mode 100644 index 7c30a4bfe..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_query_readfuncs_defs.c +++ /dev/null @@ -1,3023 +0,0 @@ -// This file is autogenerated by ./scripts/generate_protobuf_and_funcs.rb - -static Alias * _readAlias(OUT_TYPE(Alias, Alias) msg); -static RangeVar * _readRangeVar(OUT_TYPE(RangeVar, RangeVar) msg); -static TableFunc * _readTableFunc(OUT_TYPE(TableFunc, TableFunc) msg); -static Var * _readVar(OUT_TYPE(Var, Var) msg); -static Param * _readParam(OUT_TYPE(Param, Param) msg); -static Aggref * _readAggref(OUT_TYPE(Aggref, Aggref) msg); -static GroupingFunc * _readGroupingFunc(OUT_TYPE(GroupingFunc, GroupingFunc) msg); -static WindowFunc * _readWindowFunc(OUT_TYPE(WindowFunc, WindowFunc) msg); -static SubscriptingRef * _readSubscriptingRef(OUT_TYPE(SubscriptingRef, SubscriptingRef) msg); -static FuncExpr * _readFuncExpr(OUT_TYPE(FuncExpr, FuncExpr) msg); -static NamedArgExpr * _readNamedArgExpr(OUT_TYPE(NamedArgExpr, NamedArgExpr) msg); -static OpExpr * _readOpExpr(OUT_TYPE(OpExpr, OpExpr) msg); -static DistinctExpr * _readDistinctExpr(OUT_TYPE(DistinctExpr, DistinctExpr) msg); -static NullIfExpr * _readNullIfExpr(OUT_TYPE(NullIfExpr, NullIfExpr) msg); -static ScalarArrayOpExpr * _readScalarArrayOpExpr(OUT_TYPE(ScalarArrayOpExpr, ScalarArrayOpExpr) msg); -static BoolExpr * _readBoolExpr(OUT_TYPE(BoolExpr, BoolExpr) msg); -static SubLink * _readSubLink(OUT_TYPE(SubLink, SubLink) msg); -static SubPlan * _readSubPlan(OUT_TYPE(SubPlan, SubPlan) msg); -static AlternativeSubPlan * _readAlternativeSubPlan(OUT_TYPE(AlternativeSubPlan, AlternativeSubPlan) msg); -static FieldSelect * _readFieldSelect(OUT_TYPE(FieldSelect, FieldSelect) msg); -static FieldStore * _readFieldStore(OUT_TYPE(FieldStore, FieldStore) msg); -static RelabelType * _readRelabelType(OUT_TYPE(RelabelType, RelabelType) msg); -static CoerceViaIO * _readCoerceViaIO(OUT_TYPE(CoerceViaIO, CoerceViaIO) msg); -static ArrayCoerceExpr * _readArrayCoerceExpr(OUT_TYPE(ArrayCoerceExpr, ArrayCoerceExpr) msg); -static ConvertRowtypeExpr * _readConvertRowtypeExpr(OUT_TYPE(ConvertRowtypeExpr, ConvertRowtypeExpr) msg); -static CollateExpr * _readCollateExpr(OUT_TYPE(CollateExpr, CollateExpr) msg); -static CaseExpr * _readCaseExpr(OUT_TYPE(CaseExpr, CaseExpr) msg); -static CaseWhen * _readCaseWhen(OUT_TYPE(CaseWhen, CaseWhen) msg); -static CaseTestExpr * _readCaseTestExpr(OUT_TYPE(CaseTestExpr, CaseTestExpr) msg); -static ArrayExpr * _readArrayExpr(OUT_TYPE(ArrayExpr, ArrayExpr) msg); -static RowExpr * _readRowExpr(OUT_TYPE(RowExpr, RowExpr) msg); -static RowCompareExpr * _readRowCompareExpr(OUT_TYPE(RowCompareExpr, RowCompareExpr) msg); -static CoalesceExpr * _readCoalesceExpr(OUT_TYPE(CoalesceExpr, CoalesceExpr) msg); -static MinMaxExpr * _readMinMaxExpr(OUT_TYPE(MinMaxExpr, MinMaxExpr) msg); -static SQLValueFunction * _readSQLValueFunction(OUT_TYPE(SQLValueFunction, SQLValueFunction) msg); -static XmlExpr * _readXmlExpr(OUT_TYPE(XmlExpr, XmlExpr) msg); -static NullTest * _readNullTest(OUT_TYPE(NullTest, NullTest) msg); -static BooleanTest * _readBooleanTest(OUT_TYPE(BooleanTest, BooleanTest) msg); -static CoerceToDomain * _readCoerceToDomain(OUT_TYPE(CoerceToDomain, CoerceToDomain) msg); -static CoerceToDomainValue * _readCoerceToDomainValue(OUT_TYPE(CoerceToDomainValue, CoerceToDomainValue) msg); -static SetToDefault * _readSetToDefault(OUT_TYPE(SetToDefault, SetToDefault) msg); -static CurrentOfExpr * _readCurrentOfExpr(OUT_TYPE(CurrentOfExpr, CurrentOfExpr) msg); -static NextValueExpr * _readNextValueExpr(OUT_TYPE(NextValueExpr, NextValueExpr) msg); -static InferenceElem * _readInferenceElem(OUT_TYPE(InferenceElem, InferenceElem) msg); -static TargetEntry * _readTargetEntry(OUT_TYPE(TargetEntry, TargetEntry) msg); -static RangeTblRef * _readRangeTblRef(OUT_TYPE(RangeTblRef, RangeTblRef) msg); -static JoinExpr * _readJoinExpr(OUT_TYPE(JoinExpr, JoinExpr) msg); -static FromExpr * _readFromExpr(OUT_TYPE(FromExpr, FromExpr) msg); -static OnConflictExpr * _readOnConflictExpr(OUT_TYPE(OnConflictExpr, OnConflictExpr) msg); -static IntoClause * _readIntoClause(OUT_TYPE(IntoClause, IntoClause) msg); -static MergeAction * _readMergeAction(OUT_TYPE(MergeAction, MergeAction) msg); -static RawStmt * _readRawStmt(OUT_TYPE(RawStmt, RawStmt) msg); -static Query * _readQuery(OUT_TYPE(Query, Query) msg); -static InsertStmt * _readInsertStmt(OUT_TYPE(InsertStmt, InsertStmt) msg); -static DeleteStmt * _readDeleteStmt(OUT_TYPE(DeleteStmt, DeleteStmt) msg); -static UpdateStmt * _readUpdateStmt(OUT_TYPE(UpdateStmt, UpdateStmt) msg); -static MergeStmt * _readMergeStmt(OUT_TYPE(MergeStmt, MergeStmt) msg); -static SelectStmt * _readSelectStmt(OUT_TYPE(SelectStmt, SelectStmt) msg); -static ReturnStmt * _readReturnStmt(OUT_TYPE(ReturnStmt, ReturnStmt) msg); -static PLAssignStmt * _readPLAssignStmt(OUT_TYPE(PLAssignStmt, PLAssignStmt) msg); -static AlterTableStmt * _readAlterTableStmt(OUT_TYPE(AlterTableStmt, AlterTableStmt) msg); -static AlterTableCmd * _readAlterTableCmd(OUT_TYPE(AlterTableCmd, AlterTableCmd) msg); -static AlterDomainStmt * _readAlterDomainStmt(OUT_TYPE(AlterDomainStmt, AlterDomainStmt) msg); -static SetOperationStmt * _readSetOperationStmt(OUT_TYPE(SetOperationStmt, SetOperationStmt) msg); -static GrantStmt * _readGrantStmt(OUT_TYPE(GrantStmt, GrantStmt) msg); -static GrantRoleStmt * _readGrantRoleStmt(OUT_TYPE(GrantRoleStmt, GrantRoleStmt) msg); -static AlterDefaultPrivilegesStmt * _readAlterDefaultPrivilegesStmt(OUT_TYPE(AlterDefaultPrivilegesStmt, AlterDefaultPrivilegesStmt) msg); -static ClosePortalStmt * _readClosePortalStmt(OUT_TYPE(ClosePortalStmt, ClosePortalStmt) msg); -static ClusterStmt * _readClusterStmt(OUT_TYPE(ClusterStmt, ClusterStmt) msg); -static CopyStmt * _readCopyStmt(OUT_TYPE(CopyStmt, CopyStmt) msg); -static CreateStmt * _readCreateStmt(OUT_TYPE(CreateStmt, CreateStmt) msg); -static DefineStmt * _readDefineStmt(OUT_TYPE(DefineStmt, DefineStmt) msg); -static DropStmt * _readDropStmt(OUT_TYPE(DropStmt, DropStmt) msg); -static TruncateStmt * _readTruncateStmt(OUT_TYPE(TruncateStmt, TruncateStmt) msg); -static CommentStmt * _readCommentStmt(OUT_TYPE(CommentStmt, CommentStmt) msg); -static FetchStmt * _readFetchStmt(OUT_TYPE(FetchStmt, FetchStmt) msg); -static IndexStmt * _readIndexStmt(OUT_TYPE(IndexStmt, IndexStmt) msg); -static CreateFunctionStmt * _readCreateFunctionStmt(OUT_TYPE(CreateFunctionStmt, CreateFunctionStmt) msg); -static AlterFunctionStmt * _readAlterFunctionStmt(OUT_TYPE(AlterFunctionStmt, AlterFunctionStmt) msg); -static DoStmt * _readDoStmt(OUT_TYPE(DoStmt, DoStmt) msg); -static RenameStmt * _readRenameStmt(OUT_TYPE(RenameStmt, RenameStmt) msg); -static RuleStmt * _readRuleStmt(OUT_TYPE(RuleStmt, RuleStmt) msg); -static NotifyStmt * _readNotifyStmt(OUT_TYPE(NotifyStmt, NotifyStmt) msg); -static ListenStmt * _readListenStmt(OUT_TYPE(ListenStmt, ListenStmt) msg); -static UnlistenStmt * _readUnlistenStmt(OUT_TYPE(UnlistenStmt, UnlistenStmt) msg); -static TransactionStmt * _readTransactionStmt(OUT_TYPE(TransactionStmt, TransactionStmt) msg); -static ViewStmt * _readViewStmt(OUT_TYPE(ViewStmt, ViewStmt) msg); -static LoadStmt * _readLoadStmt(OUT_TYPE(LoadStmt, LoadStmt) msg); -static CreateDomainStmt * _readCreateDomainStmt(OUT_TYPE(CreateDomainStmt, CreateDomainStmt) msg); -static CreatedbStmt * _readCreatedbStmt(OUT_TYPE(CreatedbStmt, CreatedbStmt) msg); -static DropdbStmt * _readDropdbStmt(OUT_TYPE(DropdbStmt, DropdbStmt) msg); -static VacuumStmt * _readVacuumStmt(OUT_TYPE(VacuumStmt, VacuumStmt) msg); -static ExplainStmt * _readExplainStmt(OUT_TYPE(ExplainStmt, ExplainStmt) msg); -static CreateTableAsStmt * _readCreateTableAsStmt(OUT_TYPE(CreateTableAsStmt, CreateTableAsStmt) msg); -static CreateSeqStmt * _readCreateSeqStmt(OUT_TYPE(CreateSeqStmt, CreateSeqStmt) msg); -static AlterSeqStmt * _readAlterSeqStmt(OUT_TYPE(AlterSeqStmt, AlterSeqStmt) msg); -static VariableSetStmt * _readVariableSetStmt(OUT_TYPE(VariableSetStmt, VariableSetStmt) msg); -static VariableShowStmt * _readVariableShowStmt(OUT_TYPE(VariableShowStmt, VariableShowStmt) msg); -static DiscardStmt * _readDiscardStmt(OUT_TYPE(DiscardStmt, DiscardStmt) msg); -static CreateTrigStmt * _readCreateTrigStmt(OUT_TYPE(CreateTrigStmt, CreateTrigStmt) msg); -static CreatePLangStmt * _readCreatePLangStmt(OUT_TYPE(CreatePLangStmt, CreatePLangStmt) msg); -static CreateRoleStmt * _readCreateRoleStmt(OUT_TYPE(CreateRoleStmt, CreateRoleStmt) msg); -static AlterRoleStmt * _readAlterRoleStmt(OUT_TYPE(AlterRoleStmt, AlterRoleStmt) msg); -static DropRoleStmt * _readDropRoleStmt(OUT_TYPE(DropRoleStmt, DropRoleStmt) msg); -static LockStmt * _readLockStmt(OUT_TYPE(LockStmt, LockStmt) msg); -static ConstraintsSetStmt * _readConstraintsSetStmt(OUT_TYPE(ConstraintsSetStmt, ConstraintsSetStmt) msg); -static ReindexStmt * _readReindexStmt(OUT_TYPE(ReindexStmt, ReindexStmt) msg); -static CheckPointStmt * _readCheckPointStmt(OUT_TYPE(CheckPointStmt, CheckPointStmt) msg); -static CreateSchemaStmt * _readCreateSchemaStmt(OUT_TYPE(CreateSchemaStmt, CreateSchemaStmt) msg); -static AlterDatabaseStmt * _readAlterDatabaseStmt(OUT_TYPE(AlterDatabaseStmt, AlterDatabaseStmt) msg); -static AlterDatabaseRefreshCollStmt * _readAlterDatabaseRefreshCollStmt(OUT_TYPE(AlterDatabaseRefreshCollStmt, AlterDatabaseRefreshCollStmt) msg); -static AlterDatabaseSetStmt * _readAlterDatabaseSetStmt(OUT_TYPE(AlterDatabaseSetStmt, AlterDatabaseSetStmt) msg); -static AlterRoleSetStmt * _readAlterRoleSetStmt(OUT_TYPE(AlterRoleSetStmt, AlterRoleSetStmt) msg); -static CreateConversionStmt * _readCreateConversionStmt(OUT_TYPE(CreateConversionStmt, CreateConversionStmt) msg); -static CreateCastStmt * _readCreateCastStmt(OUT_TYPE(CreateCastStmt, CreateCastStmt) msg); -static CreateOpClassStmt * _readCreateOpClassStmt(OUT_TYPE(CreateOpClassStmt, CreateOpClassStmt) msg); -static CreateOpFamilyStmt * _readCreateOpFamilyStmt(OUT_TYPE(CreateOpFamilyStmt, CreateOpFamilyStmt) msg); -static AlterOpFamilyStmt * _readAlterOpFamilyStmt(OUT_TYPE(AlterOpFamilyStmt, AlterOpFamilyStmt) msg); -static PrepareStmt * _readPrepareStmt(OUT_TYPE(PrepareStmt, PrepareStmt) msg); -static ExecuteStmt * _readExecuteStmt(OUT_TYPE(ExecuteStmt, ExecuteStmt) msg); -static DeallocateStmt * _readDeallocateStmt(OUT_TYPE(DeallocateStmt, DeallocateStmt) msg); -static DeclareCursorStmt * _readDeclareCursorStmt(OUT_TYPE(DeclareCursorStmt, DeclareCursorStmt) msg); -static CreateTableSpaceStmt * _readCreateTableSpaceStmt(OUT_TYPE(CreateTableSpaceStmt, CreateTableSpaceStmt) msg); -static DropTableSpaceStmt * _readDropTableSpaceStmt(OUT_TYPE(DropTableSpaceStmt, DropTableSpaceStmt) msg); -static AlterObjectDependsStmt * _readAlterObjectDependsStmt(OUT_TYPE(AlterObjectDependsStmt, AlterObjectDependsStmt) msg); -static AlterObjectSchemaStmt * _readAlterObjectSchemaStmt(OUT_TYPE(AlterObjectSchemaStmt, AlterObjectSchemaStmt) msg); -static AlterOwnerStmt * _readAlterOwnerStmt(OUT_TYPE(AlterOwnerStmt, AlterOwnerStmt) msg); -static AlterOperatorStmt * _readAlterOperatorStmt(OUT_TYPE(AlterOperatorStmt, AlterOperatorStmt) msg); -static AlterTypeStmt * _readAlterTypeStmt(OUT_TYPE(AlterTypeStmt, AlterTypeStmt) msg); -static DropOwnedStmt * _readDropOwnedStmt(OUT_TYPE(DropOwnedStmt, DropOwnedStmt) msg); -static ReassignOwnedStmt * _readReassignOwnedStmt(OUT_TYPE(ReassignOwnedStmt, ReassignOwnedStmt) msg); -static CompositeTypeStmt * _readCompositeTypeStmt(OUT_TYPE(CompositeTypeStmt, CompositeTypeStmt) msg); -static CreateEnumStmt * _readCreateEnumStmt(OUT_TYPE(CreateEnumStmt, CreateEnumStmt) msg); -static CreateRangeStmt * _readCreateRangeStmt(OUT_TYPE(CreateRangeStmt, CreateRangeStmt) msg); -static AlterEnumStmt * _readAlterEnumStmt(OUT_TYPE(AlterEnumStmt, AlterEnumStmt) msg); -static AlterTSDictionaryStmt * _readAlterTSDictionaryStmt(OUT_TYPE(AlterTSDictionaryStmt, AlterTSDictionaryStmt) msg); -static AlterTSConfigurationStmt * _readAlterTSConfigurationStmt(OUT_TYPE(AlterTSConfigurationStmt, AlterTSConfigurationStmt) msg); -static CreateFdwStmt * _readCreateFdwStmt(OUT_TYPE(CreateFdwStmt, CreateFdwStmt) msg); -static AlterFdwStmt * _readAlterFdwStmt(OUT_TYPE(AlterFdwStmt, AlterFdwStmt) msg); -static CreateForeignServerStmt * _readCreateForeignServerStmt(OUT_TYPE(CreateForeignServerStmt, CreateForeignServerStmt) msg); -static AlterForeignServerStmt * _readAlterForeignServerStmt(OUT_TYPE(AlterForeignServerStmt, AlterForeignServerStmt) msg); -static CreateUserMappingStmt * _readCreateUserMappingStmt(OUT_TYPE(CreateUserMappingStmt, CreateUserMappingStmt) msg); -static AlterUserMappingStmt * _readAlterUserMappingStmt(OUT_TYPE(AlterUserMappingStmt, AlterUserMappingStmt) msg); -static DropUserMappingStmt * _readDropUserMappingStmt(OUT_TYPE(DropUserMappingStmt, DropUserMappingStmt) msg); -static AlterTableSpaceOptionsStmt * _readAlterTableSpaceOptionsStmt(OUT_TYPE(AlterTableSpaceOptionsStmt, AlterTableSpaceOptionsStmt) msg); -static AlterTableMoveAllStmt * _readAlterTableMoveAllStmt(OUT_TYPE(AlterTableMoveAllStmt, AlterTableMoveAllStmt) msg); -static SecLabelStmt * _readSecLabelStmt(OUT_TYPE(SecLabelStmt, SecLabelStmt) msg); -static CreateForeignTableStmt * _readCreateForeignTableStmt(OUT_TYPE(CreateForeignTableStmt, CreateForeignTableStmt) msg); -static ImportForeignSchemaStmt * _readImportForeignSchemaStmt(OUT_TYPE(ImportForeignSchemaStmt, ImportForeignSchemaStmt) msg); -static CreateExtensionStmt * _readCreateExtensionStmt(OUT_TYPE(CreateExtensionStmt, CreateExtensionStmt) msg); -static AlterExtensionStmt * _readAlterExtensionStmt(OUT_TYPE(AlterExtensionStmt, AlterExtensionStmt) msg); -static AlterExtensionContentsStmt * _readAlterExtensionContentsStmt(OUT_TYPE(AlterExtensionContentsStmt, AlterExtensionContentsStmt) msg); -static CreateEventTrigStmt * _readCreateEventTrigStmt(OUT_TYPE(CreateEventTrigStmt, CreateEventTrigStmt) msg); -static AlterEventTrigStmt * _readAlterEventTrigStmt(OUT_TYPE(AlterEventTrigStmt, AlterEventTrigStmt) msg); -static RefreshMatViewStmt * _readRefreshMatViewStmt(OUT_TYPE(RefreshMatViewStmt, RefreshMatViewStmt) msg); -static ReplicaIdentityStmt * _readReplicaIdentityStmt(OUT_TYPE(ReplicaIdentityStmt, ReplicaIdentityStmt) msg); -static AlterSystemStmt * _readAlterSystemStmt(OUT_TYPE(AlterSystemStmt, AlterSystemStmt) msg); -static CreatePolicyStmt * _readCreatePolicyStmt(OUT_TYPE(CreatePolicyStmt, CreatePolicyStmt) msg); -static AlterPolicyStmt * _readAlterPolicyStmt(OUT_TYPE(AlterPolicyStmt, AlterPolicyStmt) msg); -static CreateTransformStmt * _readCreateTransformStmt(OUT_TYPE(CreateTransformStmt, CreateTransformStmt) msg); -static CreateAmStmt * _readCreateAmStmt(OUT_TYPE(CreateAmStmt, CreateAmStmt) msg); -static CreatePublicationStmt * _readCreatePublicationStmt(OUT_TYPE(CreatePublicationStmt, CreatePublicationStmt) msg); -static AlterPublicationStmt * _readAlterPublicationStmt(OUT_TYPE(AlterPublicationStmt, AlterPublicationStmt) msg); -static CreateSubscriptionStmt * _readCreateSubscriptionStmt(OUT_TYPE(CreateSubscriptionStmt, CreateSubscriptionStmt) msg); -static AlterSubscriptionStmt * _readAlterSubscriptionStmt(OUT_TYPE(AlterSubscriptionStmt, AlterSubscriptionStmt) msg); -static DropSubscriptionStmt * _readDropSubscriptionStmt(OUT_TYPE(DropSubscriptionStmt, DropSubscriptionStmt) msg); -static CreateStatsStmt * _readCreateStatsStmt(OUT_TYPE(CreateStatsStmt, CreateStatsStmt) msg); -static AlterCollationStmt * _readAlterCollationStmt(OUT_TYPE(AlterCollationStmt, AlterCollationStmt) msg); -static CallStmt * _readCallStmt(OUT_TYPE(CallStmt, CallStmt) msg); -static AlterStatsStmt * _readAlterStatsStmt(OUT_TYPE(AlterStatsStmt, AlterStatsStmt) msg); -static A_Expr * _readAExpr(OUT_TYPE(A_Expr, AExpr) msg); -static ColumnRef * _readColumnRef(OUT_TYPE(ColumnRef, ColumnRef) msg); -static ParamRef * _readParamRef(OUT_TYPE(ParamRef, ParamRef) msg); -static FuncCall * _readFuncCall(OUT_TYPE(FuncCall, FuncCall) msg); -static A_Star * _readAStar(OUT_TYPE(A_Star, AStar) msg); -static A_Indices * _readAIndices(OUT_TYPE(A_Indices, AIndices) msg); -static A_Indirection * _readAIndirection(OUT_TYPE(A_Indirection, AIndirection) msg); -static A_ArrayExpr * _readAArrayExpr(OUT_TYPE(A_ArrayExpr, AArrayExpr) msg); -static ResTarget * _readResTarget(OUT_TYPE(ResTarget, ResTarget) msg); -static MultiAssignRef * _readMultiAssignRef(OUT_TYPE(MultiAssignRef, MultiAssignRef) msg); -static TypeCast * _readTypeCast(OUT_TYPE(TypeCast, TypeCast) msg); -static CollateClause * _readCollateClause(OUT_TYPE(CollateClause, CollateClause) msg); -static SortBy * _readSortBy(OUT_TYPE(SortBy, SortBy) msg); -static WindowDef * _readWindowDef(OUT_TYPE(WindowDef, WindowDef) msg); -static RangeSubselect * _readRangeSubselect(OUT_TYPE(RangeSubselect, RangeSubselect) msg); -static RangeFunction * _readRangeFunction(OUT_TYPE(RangeFunction, RangeFunction) msg); -static RangeTableSample * _readRangeTableSample(OUT_TYPE(RangeTableSample, RangeTableSample) msg); -static RangeTableFunc * _readRangeTableFunc(OUT_TYPE(RangeTableFunc, RangeTableFunc) msg); -static RangeTableFuncCol * _readRangeTableFuncCol(OUT_TYPE(RangeTableFuncCol, RangeTableFuncCol) msg); -static TypeName * _readTypeName(OUT_TYPE(TypeName, TypeName) msg); -static ColumnDef * _readColumnDef(OUT_TYPE(ColumnDef, ColumnDef) msg); -static IndexElem * _readIndexElem(OUT_TYPE(IndexElem, IndexElem) msg); -static StatsElem * _readStatsElem(OUT_TYPE(StatsElem, StatsElem) msg); -static Constraint * _readConstraint(OUT_TYPE(Constraint, Constraint) msg); -static DefElem * _readDefElem(OUT_TYPE(DefElem, DefElem) msg); -static RangeTblEntry * _readRangeTblEntry(OUT_TYPE(RangeTblEntry, RangeTblEntry) msg); -static RangeTblFunction * _readRangeTblFunction(OUT_TYPE(RangeTblFunction, RangeTblFunction) msg); -static TableSampleClause * _readTableSampleClause(OUT_TYPE(TableSampleClause, TableSampleClause) msg); -static WithCheckOption * _readWithCheckOption(OUT_TYPE(WithCheckOption, WithCheckOption) msg); -static SortGroupClause * _readSortGroupClause(OUT_TYPE(SortGroupClause, SortGroupClause) msg); -static GroupingSet * _readGroupingSet(OUT_TYPE(GroupingSet, GroupingSet) msg); -static WindowClause * _readWindowClause(OUT_TYPE(WindowClause, WindowClause) msg); -static ObjectWithArgs * _readObjectWithArgs(OUT_TYPE(ObjectWithArgs, ObjectWithArgs) msg); -static AccessPriv * _readAccessPriv(OUT_TYPE(AccessPriv, AccessPriv) msg); -static CreateOpClassItem * _readCreateOpClassItem(OUT_TYPE(CreateOpClassItem, CreateOpClassItem) msg); -static TableLikeClause * _readTableLikeClause(OUT_TYPE(TableLikeClause, TableLikeClause) msg); -static FunctionParameter * _readFunctionParameter(OUT_TYPE(FunctionParameter, FunctionParameter) msg); -static LockingClause * _readLockingClause(OUT_TYPE(LockingClause, LockingClause) msg); -static RowMarkClause * _readRowMarkClause(OUT_TYPE(RowMarkClause, RowMarkClause) msg); -static XmlSerialize * _readXmlSerialize(OUT_TYPE(XmlSerialize, XmlSerialize) msg); -static WithClause * _readWithClause(OUT_TYPE(WithClause, WithClause) msg); -static InferClause * _readInferClause(OUT_TYPE(InferClause, InferClause) msg); -static OnConflictClause * _readOnConflictClause(OUT_TYPE(OnConflictClause, OnConflictClause) msg); -static CTESearchClause * _readCTESearchClause(OUT_TYPE(CTESearchClause, CTESearchClause) msg); -static CTECycleClause * _readCTECycleClause(OUT_TYPE(CTECycleClause, CTECycleClause) msg); -static CommonTableExpr * _readCommonTableExpr(OUT_TYPE(CommonTableExpr, CommonTableExpr) msg); -static MergeWhenClause * _readMergeWhenClause(OUT_TYPE(MergeWhenClause, MergeWhenClause) msg); -static RoleSpec * _readRoleSpec(OUT_TYPE(RoleSpec, RoleSpec) msg); -static TriggerTransition * _readTriggerTransition(OUT_TYPE(TriggerTransition, TriggerTransition) msg); -static PartitionElem * _readPartitionElem(OUT_TYPE(PartitionElem, PartitionElem) msg); -static PartitionSpec * _readPartitionSpec(OUT_TYPE(PartitionSpec, PartitionSpec) msg); -static PartitionBoundSpec * _readPartitionBoundSpec(OUT_TYPE(PartitionBoundSpec, PartitionBoundSpec) msg); -static PartitionRangeDatum * _readPartitionRangeDatum(OUT_TYPE(PartitionRangeDatum, PartitionRangeDatum) msg); -static PartitionCmd * _readPartitionCmd(OUT_TYPE(PartitionCmd, PartitionCmd) msg); -static VacuumRelation * _readVacuumRelation(OUT_TYPE(VacuumRelation, VacuumRelation) msg); -static PublicationObjSpec * _readPublicationObjSpec(OUT_TYPE(PublicationObjSpec, PublicationObjSpec) msg); -static PublicationTable * _readPublicationTable(OUT_TYPE(PublicationTable, PublicationTable) msg); -static InlineCodeBlock * _readInlineCodeBlock(OUT_TYPE(InlineCodeBlock, InlineCodeBlock) msg); -static CallContext * _readCallContext(OUT_TYPE(CallContext, CallContext) msg); - - -static Alias * -_readAlias(OUT_TYPE(Alias, Alias) msg) -{ - Alias *node = makeNode(Alias); - READ_STRING_FIELD(aliasname, aliasname, aliasname); - READ_LIST_FIELD(colnames, colnames, colnames); - return node; -} - -static RangeVar * -_readRangeVar(OUT_TYPE(RangeVar, RangeVar) msg) -{ - RangeVar *node = makeNode(RangeVar); - READ_STRING_FIELD(catalogname, catalogname, catalogname); - READ_STRING_FIELD(schemaname, schemaname, schemaname); - READ_STRING_FIELD(relname, relname, relname); - READ_BOOL_FIELD(inh, inh, inh); - READ_CHAR_FIELD(relpersistence, relpersistence, relpersistence); - READ_SPECIFIC_NODE_PTR_FIELD(Alias, alias, alias, alias, alias); - READ_INT_FIELD(location, location, location); - return node; -} - -static TableFunc * -_readTableFunc(OUT_TYPE(TableFunc, TableFunc) msg) -{ - TableFunc *node = makeNode(TableFunc); - READ_LIST_FIELD(ns_uris, ns_uris, ns_uris); - READ_LIST_FIELD(ns_names, ns_names, ns_names); - READ_NODE_PTR_FIELD(docexpr, docexpr, docexpr); - READ_NODE_PTR_FIELD(rowexpr, rowexpr, rowexpr); - READ_LIST_FIELD(colnames, colnames, colnames); - READ_LIST_FIELD(coltypes, coltypes, coltypes); - READ_LIST_FIELD(coltypmods, coltypmods, coltypmods); - READ_LIST_FIELD(colcollations, colcollations, colcollations); - READ_LIST_FIELD(colexprs, colexprs, colexprs); - READ_LIST_FIELD(coldefexprs, coldefexprs, coldefexprs); - READ_BITMAPSET_FIELD(notnulls, notnulls, notnulls); - READ_INT_FIELD(ordinalitycol, ordinalitycol, ordinalitycol); - READ_INT_FIELD(location, location, location); - return node; -} - -static Var * -_readVar(OUT_TYPE(Var, Var) msg) -{ - Var *node = makeNode(Var); - READ_INT_FIELD(varno, varno, varno); - READ_INT_FIELD(varattno, varattno, varattno); - READ_UINT_FIELD(vartype, vartype, vartype); - READ_INT_FIELD(vartypmod, vartypmod, vartypmod); - READ_UINT_FIELD(varcollid, varcollid, varcollid); - READ_UINT_FIELD(varlevelsup, varlevelsup, varlevelsup); - READ_UINT_FIELD(varnosyn, varnosyn, varnosyn); - READ_INT_FIELD(varattnosyn, varattnosyn, varattnosyn); - READ_INT_FIELD(location, location, location); - return node; -} - -static Param * -_readParam(OUT_TYPE(Param, Param) msg) -{ - Param *node = makeNode(Param); - READ_ENUM_FIELD(ParamKind, paramkind, paramkind, paramkind); - READ_INT_FIELD(paramid, paramid, paramid); - READ_UINT_FIELD(paramtype, paramtype, paramtype); - READ_INT_FIELD(paramtypmod, paramtypmod, paramtypmod); - READ_UINT_FIELD(paramcollid, paramcollid, paramcollid); - READ_INT_FIELD(location, location, location); - return node; -} - -static Aggref * -_readAggref(OUT_TYPE(Aggref, Aggref) msg) -{ - Aggref *node = makeNode(Aggref); - READ_UINT_FIELD(aggfnoid, aggfnoid, aggfnoid); - READ_UINT_FIELD(aggtype, aggtype, aggtype); - READ_UINT_FIELD(aggcollid, aggcollid, aggcollid); - READ_UINT_FIELD(inputcollid, inputcollid, inputcollid); - READ_UINT_FIELD(aggtranstype, aggtranstype, aggtranstype); - READ_LIST_FIELD(aggargtypes, aggargtypes, aggargtypes); - READ_LIST_FIELD(aggdirectargs, aggdirectargs, aggdirectargs); - READ_LIST_FIELD(args, args, args); - READ_LIST_FIELD(aggorder, aggorder, aggorder); - READ_LIST_FIELD(aggdistinct, aggdistinct, aggdistinct); - READ_EXPR_PTR_FIELD(aggfilter, aggfilter, aggfilter); - READ_BOOL_FIELD(aggstar, aggstar, aggstar); - READ_BOOL_FIELD(aggvariadic, aggvariadic, aggvariadic); - READ_CHAR_FIELD(aggkind, aggkind, aggkind); - READ_UINT_FIELD(agglevelsup, agglevelsup, agglevelsup); - READ_ENUM_FIELD(AggSplit, aggsplit, aggsplit, aggsplit); - READ_INT_FIELD(aggno, aggno, aggno); - READ_INT_FIELD(aggtransno, aggtransno, aggtransno); - READ_INT_FIELD(location, location, location); - return node; -} - -static GroupingFunc * -_readGroupingFunc(OUT_TYPE(GroupingFunc, GroupingFunc) msg) -{ - GroupingFunc *node = makeNode(GroupingFunc); - READ_LIST_FIELD(args, args, args); - READ_LIST_FIELD(refs, refs, refs); - READ_LIST_FIELD(cols, cols, cols); - READ_UINT_FIELD(agglevelsup, agglevelsup, agglevelsup); - READ_INT_FIELD(location, location, location); - return node; -} - -static WindowFunc * -_readWindowFunc(OUT_TYPE(WindowFunc, WindowFunc) msg) -{ - WindowFunc *node = makeNode(WindowFunc); - READ_UINT_FIELD(winfnoid, winfnoid, winfnoid); - READ_UINT_FIELD(wintype, wintype, wintype); - READ_UINT_FIELD(wincollid, wincollid, wincollid); - READ_UINT_FIELD(inputcollid, inputcollid, inputcollid); - READ_LIST_FIELD(args, args, args); - READ_EXPR_PTR_FIELD(aggfilter, aggfilter, aggfilter); - READ_UINT_FIELD(winref, winref, winref); - READ_BOOL_FIELD(winstar, winstar, winstar); - READ_BOOL_FIELD(winagg, winagg, winagg); - READ_INT_FIELD(location, location, location); - return node; -} - -static SubscriptingRef * -_readSubscriptingRef(OUT_TYPE(SubscriptingRef, SubscriptingRef) msg) -{ - SubscriptingRef *node = makeNode(SubscriptingRef); - READ_UINT_FIELD(refcontainertype, refcontainertype, refcontainertype); - READ_UINT_FIELD(refelemtype, refelemtype, refelemtype); - READ_UINT_FIELD(refrestype, refrestype, refrestype); - READ_INT_FIELD(reftypmod, reftypmod, reftypmod); - READ_UINT_FIELD(refcollid, refcollid, refcollid); - READ_LIST_FIELD(refupperindexpr, refupperindexpr, refupperindexpr); - READ_LIST_FIELD(reflowerindexpr, reflowerindexpr, reflowerindexpr); - READ_EXPR_PTR_FIELD(refexpr, refexpr, refexpr); - READ_EXPR_PTR_FIELD(refassgnexpr, refassgnexpr, refassgnexpr); - return node; -} - -static FuncExpr * -_readFuncExpr(OUT_TYPE(FuncExpr, FuncExpr) msg) -{ - FuncExpr *node = makeNode(FuncExpr); - READ_UINT_FIELD(funcid, funcid, funcid); - READ_UINT_FIELD(funcresulttype, funcresulttype, funcresulttype); - READ_BOOL_FIELD(funcretset, funcretset, funcretset); - READ_BOOL_FIELD(funcvariadic, funcvariadic, funcvariadic); - READ_ENUM_FIELD(CoercionForm, funcformat, funcformat, funcformat); - READ_UINT_FIELD(funccollid, funccollid, funccollid); - READ_UINT_FIELD(inputcollid, inputcollid, inputcollid); - READ_LIST_FIELD(args, args, args); - READ_INT_FIELD(location, location, location); - return node; -} - -static NamedArgExpr * -_readNamedArgExpr(OUT_TYPE(NamedArgExpr, NamedArgExpr) msg) -{ - NamedArgExpr *node = makeNode(NamedArgExpr); - READ_EXPR_PTR_FIELD(arg, arg, arg); - READ_STRING_FIELD(name, name, name); - READ_INT_FIELD(argnumber, argnumber, argnumber); - READ_INT_FIELD(location, location, location); - return node; -} - -static OpExpr * -_readOpExpr(OUT_TYPE(OpExpr, OpExpr) msg) -{ - OpExpr *node = makeNode(OpExpr); - READ_UINT_FIELD(opno, opno, opno); - READ_UINT_FIELD(opfuncid, opfuncid, opfuncid); - READ_UINT_FIELD(opresulttype, opresulttype, opresulttype); - READ_BOOL_FIELD(opretset, opretset, opretset); - READ_UINT_FIELD(opcollid, opcollid, opcollid); - READ_UINT_FIELD(inputcollid, inputcollid, inputcollid); - READ_LIST_FIELD(args, args, args); - READ_INT_FIELD(location, location, location); - return node; -} - -static DistinctExpr * -_readDistinctExpr(OUT_TYPE(DistinctExpr, DistinctExpr) msg) -{ - DistinctExpr *node = makeNode(DistinctExpr); - READ_UINT_FIELD(opno, opno, opno); - READ_UINT_FIELD(opfuncid, opfuncid, opfuncid); - READ_UINT_FIELD(opresulttype, opresulttype, opresulttype); - READ_BOOL_FIELD(opretset, opretset, opretset); - READ_UINT_FIELD(opcollid, opcollid, opcollid); - READ_UINT_FIELD(inputcollid, inputcollid, inputcollid); - READ_LIST_FIELD(args, args, args); - READ_INT_FIELD(location, location, location); - return node; -} - -static NullIfExpr * -_readNullIfExpr(OUT_TYPE(NullIfExpr, NullIfExpr) msg) -{ - NullIfExpr *node = makeNode(NullIfExpr); - READ_UINT_FIELD(opno, opno, opno); - READ_UINT_FIELD(opfuncid, opfuncid, opfuncid); - READ_UINT_FIELD(opresulttype, opresulttype, opresulttype); - READ_BOOL_FIELD(opretset, opretset, opretset); - READ_UINT_FIELD(opcollid, opcollid, opcollid); - READ_UINT_FIELD(inputcollid, inputcollid, inputcollid); - READ_LIST_FIELD(args, args, args); - READ_INT_FIELD(location, location, location); - return node; -} - -static ScalarArrayOpExpr * -_readScalarArrayOpExpr(OUT_TYPE(ScalarArrayOpExpr, ScalarArrayOpExpr) msg) -{ - ScalarArrayOpExpr *node = makeNode(ScalarArrayOpExpr); - READ_UINT_FIELD(opno, opno, opno); - READ_UINT_FIELD(opfuncid, opfuncid, opfuncid); - READ_UINT_FIELD(hashfuncid, hashfuncid, hashfuncid); - READ_UINT_FIELD(negfuncid, negfuncid, negfuncid); - READ_BOOL_FIELD(use_or, useOr, useOr); - READ_UINT_FIELD(inputcollid, inputcollid, inputcollid); - READ_LIST_FIELD(args, args, args); - READ_INT_FIELD(location, location, location); - return node; -} - -static BoolExpr * -_readBoolExpr(OUT_TYPE(BoolExpr, BoolExpr) msg) -{ - BoolExpr *node = makeNode(BoolExpr); - READ_ENUM_FIELD(BoolExprType, boolop, boolop, boolop); - READ_LIST_FIELD(args, args, args); - READ_INT_FIELD(location, location, location); - return node; -} - -static SubLink * -_readSubLink(OUT_TYPE(SubLink, SubLink) msg) -{ - SubLink *node = makeNode(SubLink); - READ_ENUM_FIELD(SubLinkType, sub_link_type, subLinkType, subLinkType); - READ_INT_FIELD(sub_link_id, subLinkId, subLinkId); - READ_NODE_PTR_FIELD(testexpr, testexpr, testexpr); - READ_LIST_FIELD(oper_name, operName, operName); - READ_NODE_PTR_FIELD(subselect, subselect, subselect); - READ_INT_FIELD(location, location, location); - return node; -} - -static SubPlan * -_readSubPlan(OUT_TYPE(SubPlan, SubPlan) msg) -{ - SubPlan *node = makeNode(SubPlan); - READ_ENUM_FIELD(SubLinkType, sub_link_type, subLinkType, subLinkType); - READ_NODE_PTR_FIELD(testexpr, testexpr, testexpr); - READ_LIST_FIELD(param_ids, paramIds, paramIds); - READ_INT_FIELD(plan_id, plan_id, plan_id); - READ_STRING_FIELD(plan_name, plan_name, plan_name); - READ_UINT_FIELD(first_col_type, firstColType, firstColType); - READ_INT_FIELD(first_col_typmod, firstColTypmod, firstColTypmod); - READ_UINT_FIELD(first_col_collation, firstColCollation, firstColCollation); - READ_BOOL_FIELD(use_hash_table, useHashTable, useHashTable); - READ_BOOL_FIELD(unknown_eq_false, unknownEqFalse, unknownEqFalse); - READ_BOOL_FIELD(parallel_safe, parallel_safe, parallel_safe); - READ_LIST_FIELD(set_param, setParam, setParam); - READ_LIST_FIELD(par_param, parParam, parParam); - READ_LIST_FIELD(args, args, args); - READ_FLOAT_FIELD(startup_cost, startup_cost, startup_cost); - READ_FLOAT_FIELD(per_call_cost, per_call_cost, per_call_cost); - return node; -} - -static AlternativeSubPlan * -_readAlternativeSubPlan(OUT_TYPE(AlternativeSubPlan, AlternativeSubPlan) msg) -{ - AlternativeSubPlan *node = makeNode(AlternativeSubPlan); - READ_LIST_FIELD(subplans, subplans, subplans); - return node; -} - -static FieldSelect * -_readFieldSelect(OUT_TYPE(FieldSelect, FieldSelect) msg) -{ - FieldSelect *node = makeNode(FieldSelect); - READ_EXPR_PTR_FIELD(arg, arg, arg); - READ_INT_FIELD(fieldnum, fieldnum, fieldnum); - READ_UINT_FIELD(resulttype, resulttype, resulttype); - READ_INT_FIELD(resulttypmod, resulttypmod, resulttypmod); - READ_UINT_FIELD(resultcollid, resultcollid, resultcollid); - return node; -} - -static FieldStore * -_readFieldStore(OUT_TYPE(FieldStore, FieldStore) msg) -{ - FieldStore *node = makeNode(FieldStore); - READ_EXPR_PTR_FIELD(arg, arg, arg); - READ_LIST_FIELD(newvals, newvals, newvals); - READ_LIST_FIELD(fieldnums, fieldnums, fieldnums); - READ_UINT_FIELD(resulttype, resulttype, resulttype); - return node; -} - -static RelabelType * -_readRelabelType(OUT_TYPE(RelabelType, RelabelType) msg) -{ - RelabelType *node = makeNode(RelabelType); - READ_EXPR_PTR_FIELD(arg, arg, arg); - READ_UINT_FIELD(resulttype, resulttype, resulttype); - READ_INT_FIELD(resulttypmod, resulttypmod, resulttypmod); - READ_UINT_FIELD(resultcollid, resultcollid, resultcollid); - READ_ENUM_FIELD(CoercionForm, relabelformat, relabelformat, relabelformat); - READ_INT_FIELD(location, location, location); - return node; -} - -static CoerceViaIO * -_readCoerceViaIO(OUT_TYPE(CoerceViaIO, CoerceViaIO) msg) -{ - CoerceViaIO *node = makeNode(CoerceViaIO); - READ_EXPR_PTR_FIELD(arg, arg, arg); - READ_UINT_FIELD(resulttype, resulttype, resulttype); - READ_UINT_FIELD(resultcollid, resultcollid, resultcollid); - READ_ENUM_FIELD(CoercionForm, coerceformat, coerceformat, coerceformat); - READ_INT_FIELD(location, location, location); - return node; -} - -static ArrayCoerceExpr * -_readArrayCoerceExpr(OUT_TYPE(ArrayCoerceExpr, ArrayCoerceExpr) msg) -{ - ArrayCoerceExpr *node = makeNode(ArrayCoerceExpr); - READ_EXPR_PTR_FIELD(arg, arg, arg); - READ_EXPR_PTR_FIELD(elemexpr, elemexpr, elemexpr); - READ_UINT_FIELD(resulttype, resulttype, resulttype); - READ_INT_FIELD(resulttypmod, resulttypmod, resulttypmod); - READ_UINT_FIELD(resultcollid, resultcollid, resultcollid); - READ_ENUM_FIELD(CoercionForm, coerceformat, coerceformat, coerceformat); - READ_INT_FIELD(location, location, location); - return node; -} - -static ConvertRowtypeExpr * -_readConvertRowtypeExpr(OUT_TYPE(ConvertRowtypeExpr, ConvertRowtypeExpr) msg) -{ - ConvertRowtypeExpr *node = makeNode(ConvertRowtypeExpr); - READ_EXPR_PTR_FIELD(arg, arg, arg); - READ_UINT_FIELD(resulttype, resulttype, resulttype); - READ_ENUM_FIELD(CoercionForm, convertformat, convertformat, convertformat); - READ_INT_FIELD(location, location, location); - return node; -} - -static CollateExpr * -_readCollateExpr(OUT_TYPE(CollateExpr, CollateExpr) msg) -{ - CollateExpr *node = makeNode(CollateExpr); - READ_EXPR_PTR_FIELD(arg, arg, arg); - READ_UINT_FIELD(coll_oid, collOid, collOid); - READ_INT_FIELD(location, location, location); - return node; -} - -static CaseExpr * -_readCaseExpr(OUT_TYPE(CaseExpr, CaseExpr) msg) -{ - CaseExpr *node = makeNode(CaseExpr); - READ_UINT_FIELD(casetype, casetype, casetype); - READ_UINT_FIELD(casecollid, casecollid, casecollid); - READ_EXPR_PTR_FIELD(arg, arg, arg); - READ_LIST_FIELD(args, args, args); - READ_EXPR_PTR_FIELD(defresult, defresult, defresult); - READ_INT_FIELD(location, location, location); - return node; -} - -static CaseWhen * -_readCaseWhen(OUT_TYPE(CaseWhen, CaseWhen) msg) -{ - CaseWhen *node = makeNode(CaseWhen); - READ_EXPR_PTR_FIELD(expr, expr, expr); - READ_EXPR_PTR_FIELD(result, result, result); - READ_INT_FIELD(location, location, location); - return node; -} - -static CaseTestExpr * -_readCaseTestExpr(OUT_TYPE(CaseTestExpr, CaseTestExpr) msg) -{ - CaseTestExpr *node = makeNode(CaseTestExpr); - READ_UINT_FIELD(type_id, typeId, typeId); - READ_INT_FIELD(type_mod, typeMod, typeMod); - READ_UINT_FIELD(collation, collation, collation); - return node; -} - -static ArrayExpr * -_readArrayExpr(OUT_TYPE(ArrayExpr, ArrayExpr) msg) -{ - ArrayExpr *node = makeNode(ArrayExpr); - READ_UINT_FIELD(array_typeid, array_typeid, array_typeid); - READ_UINT_FIELD(array_collid, array_collid, array_collid); - READ_UINT_FIELD(element_typeid, element_typeid, element_typeid); - READ_LIST_FIELD(elements, elements, elements); - READ_BOOL_FIELD(multidims, multidims, multidims); - READ_INT_FIELD(location, location, location); - return node; -} - -static RowExpr * -_readRowExpr(OUT_TYPE(RowExpr, RowExpr) msg) -{ - RowExpr *node = makeNode(RowExpr); - READ_LIST_FIELD(args, args, args); - READ_UINT_FIELD(row_typeid, row_typeid, row_typeid); - READ_ENUM_FIELD(CoercionForm, row_format, row_format, row_format); - READ_LIST_FIELD(colnames, colnames, colnames); - READ_INT_FIELD(location, location, location); - return node; -} - -static RowCompareExpr * -_readRowCompareExpr(OUT_TYPE(RowCompareExpr, RowCompareExpr) msg) -{ - RowCompareExpr *node = makeNode(RowCompareExpr); - READ_ENUM_FIELD(RowCompareType, rctype, rctype, rctype); - READ_LIST_FIELD(opnos, opnos, opnos); - READ_LIST_FIELD(opfamilies, opfamilies, opfamilies); - READ_LIST_FIELD(inputcollids, inputcollids, inputcollids); - READ_LIST_FIELD(largs, largs, largs); - READ_LIST_FIELD(rargs, rargs, rargs); - return node; -} - -static CoalesceExpr * -_readCoalesceExpr(OUT_TYPE(CoalesceExpr, CoalesceExpr) msg) -{ - CoalesceExpr *node = makeNode(CoalesceExpr); - READ_UINT_FIELD(coalescetype, coalescetype, coalescetype); - READ_UINT_FIELD(coalescecollid, coalescecollid, coalescecollid); - READ_LIST_FIELD(args, args, args); - READ_INT_FIELD(location, location, location); - return node; -} - -static MinMaxExpr * -_readMinMaxExpr(OUT_TYPE(MinMaxExpr, MinMaxExpr) msg) -{ - MinMaxExpr *node = makeNode(MinMaxExpr); - READ_UINT_FIELD(minmaxtype, minmaxtype, minmaxtype); - READ_UINT_FIELD(minmaxcollid, minmaxcollid, minmaxcollid); - READ_UINT_FIELD(inputcollid, inputcollid, inputcollid); - READ_ENUM_FIELD(MinMaxOp, op, op, op); - READ_LIST_FIELD(args, args, args); - READ_INT_FIELD(location, location, location); - return node; -} - -static SQLValueFunction * -_readSQLValueFunction(OUT_TYPE(SQLValueFunction, SQLValueFunction) msg) -{ - SQLValueFunction *node = makeNode(SQLValueFunction); - READ_ENUM_FIELD(SQLValueFunctionOp, op, op, op); - READ_UINT_FIELD(type, type, type); - READ_INT_FIELD(typmod, typmod, typmod); - READ_INT_FIELD(location, location, location); - return node; -} - -static XmlExpr * -_readXmlExpr(OUT_TYPE(XmlExpr, XmlExpr) msg) -{ - XmlExpr *node = makeNode(XmlExpr); - READ_ENUM_FIELD(XmlExprOp, op, op, op); - READ_STRING_FIELD(name, name, name); - READ_LIST_FIELD(named_args, named_args, named_args); - READ_LIST_FIELD(arg_names, arg_names, arg_names); - READ_LIST_FIELD(args, args, args); - READ_ENUM_FIELD(XmlOptionType, xmloption, xmloption, xmloption); - READ_UINT_FIELD(type, type, type); - READ_INT_FIELD(typmod, typmod, typmod); - READ_INT_FIELD(location, location, location); - return node; -} - -static NullTest * -_readNullTest(OUT_TYPE(NullTest, NullTest) msg) -{ - NullTest *node = makeNode(NullTest); - READ_EXPR_PTR_FIELD(arg, arg, arg); - READ_ENUM_FIELD(NullTestType, nulltesttype, nulltesttype, nulltesttype); - READ_BOOL_FIELD(argisrow, argisrow, argisrow); - READ_INT_FIELD(location, location, location); - return node; -} - -static BooleanTest * -_readBooleanTest(OUT_TYPE(BooleanTest, BooleanTest) msg) -{ - BooleanTest *node = makeNode(BooleanTest); - READ_EXPR_PTR_FIELD(arg, arg, arg); - READ_ENUM_FIELD(BoolTestType, booltesttype, booltesttype, booltesttype); - READ_INT_FIELD(location, location, location); - return node; -} - -static CoerceToDomain * -_readCoerceToDomain(OUT_TYPE(CoerceToDomain, CoerceToDomain) msg) -{ - CoerceToDomain *node = makeNode(CoerceToDomain); - READ_EXPR_PTR_FIELD(arg, arg, arg); - READ_UINT_FIELD(resulttype, resulttype, resulttype); - READ_INT_FIELD(resulttypmod, resulttypmod, resulttypmod); - READ_UINT_FIELD(resultcollid, resultcollid, resultcollid); - READ_ENUM_FIELD(CoercionForm, coercionformat, coercionformat, coercionformat); - READ_INT_FIELD(location, location, location); - return node; -} - -static CoerceToDomainValue * -_readCoerceToDomainValue(OUT_TYPE(CoerceToDomainValue, CoerceToDomainValue) msg) -{ - CoerceToDomainValue *node = makeNode(CoerceToDomainValue); - READ_UINT_FIELD(type_id, typeId, typeId); - READ_INT_FIELD(type_mod, typeMod, typeMod); - READ_UINT_FIELD(collation, collation, collation); - READ_INT_FIELD(location, location, location); - return node; -} - -static SetToDefault * -_readSetToDefault(OUT_TYPE(SetToDefault, SetToDefault) msg) -{ - SetToDefault *node = makeNode(SetToDefault); - READ_UINT_FIELD(type_id, typeId, typeId); - READ_INT_FIELD(type_mod, typeMod, typeMod); - READ_UINT_FIELD(collation, collation, collation); - READ_INT_FIELD(location, location, location); - return node; -} - -static CurrentOfExpr * -_readCurrentOfExpr(OUT_TYPE(CurrentOfExpr, CurrentOfExpr) msg) -{ - CurrentOfExpr *node = makeNode(CurrentOfExpr); - READ_UINT_FIELD(cvarno, cvarno, cvarno); - READ_STRING_FIELD(cursor_name, cursor_name, cursor_name); - READ_INT_FIELD(cursor_param, cursor_param, cursor_param); - return node; -} - -static NextValueExpr * -_readNextValueExpr(OUT_TYPE(NextValueExpr, NextValueExpr) msg) -{ - NextValueExpr *node = makeNode(NextValueExpr); - READ_UINT_FIELD(seqid, seqid, seqid); - READ_UINT_FIELD(type_id, typeId, typeId); - return node; -} - -static InferenceElem * -_readInferenceElem(OUT_TYPE(InferenceElem, InferenceElem) msg) -{ - InferenceElem *node = makeNode(InferenceElem); - READ_NODE_PTR_FIELD(expr, expr, expr); - READ_UINT_FIELD(infercollid, infercollid, infercollid); - READ_UINT_FIELD(inferopclass, inferopclass, inferopclass); - return node; -} - -static TargetEntry * -_readTargetEntry(OUT_TYPE(TargetEntry, TargetEntry) msg) -{ - TargetEntry *node = makeNode(TargetEntry); - READ_EXPR_PTR_FIELD(expr, expr, expr); - READ_INT_FIELD(resno, resno, resno); - READ_STRING_FIELD(resname, resname, resname); - READ_UINT_FIELD(ressortgroupref, ressortgroupref, ressortgroupref); - READ_UINT_FIELD(resorigtbl, resorigtbl, resorigtbl); - READ_INT_FIELD(resorigcol, resorigcol, resorigcol); - READ_BOOL_FIELD(resjunk, resjunk, resjunk); - return node; -} - -static RangeTblRef * -_readRangeTblRef(OUT_TYPE(RangeTblRef, RangeTblRef) msg) -{ - RangeTblRef *node = makeNode(RangeTblRef); - READ_INT_FIELD(rtindex, rtindex, rtindex); - return node; -} - -static JoinExpr * -_readJoinExpr(OUT_TYPE(JoinExpr, JoinExpr) msg) -{ - JoinExpr *node = makeNode(JoinExpr); - READ_ENUM_FIELD(JoinType, jointype, jointype, jointype); - READ_BOOL_FIELD(is_natural, isNatural, isNatural); - READ_NODE_PTR_FIELD(larg, larg, larg); - READ_NODE_PTR_FIELD(rarg, rarg, rarg); - READ_LIST_FIELD(using_clause, usingClause, usingClause); - READ_SPECIFIC_NODE_PTR_FIELD(Alias, alias, join_using_alias, join_using_alias, join_using_alias); - READ_NODE_PTR_FIELD(quals, quals, quals); - READ_SPECIFIC_NODE_PTR_FIELD(Alias, alias, alias, alias, alias); - READ_INT_FIELD(rtindex, rtindex, rtindex); - return node; -} - -static FromExpr * -_readFromExpr(OUT_TYPE(FromExpr, FromExpr) msg) -{ - FromExpr *node = makeNode(FromExpr); - READ_LIST_FIELD(fromlist, fromlist, fromlist); - READ_NODE_PTR_FIELD(quals, quals, quals); - return node; -} - -static OnConflictExpr * -_readOnConflictExpr(OUT_TYPE(OnConflictExpr, OnConflictExpr) msg) -{ - OnConflictExpr *node = makeNode(OnConflictExpr); - READ_ENUM_FIELD(OnConflictAction, action, action, action); - READ_LIST_FIELD(arbiter_elems, arbiterElems, arbiterElems); - READ_NODE_PTR_FIELD(arbiter_where, arbiterWhere, arbiterWhere); - READ_UINT_FIELD(constraint, constraint, constraint); - READ_LIST_FIELD(on_conflict_set, onConflictSet, onConflictSet); - READ_NODE_PTR_FIELD(on_conflict_where, onConflictWhere, onConflictWhere); - READ_INT_FIELD(excl_rel_index, exclRelIndex, exclRelIndex); - READ_LIST_FIELD(excl_rel_tlist, exclRelTlist, exclRelTlist); - return node; -} - -static IntoClause * -_readIntoClause(OUT_TYPE(IntoClause, IntoClause) msg) -{ - IntoClause *node = makeNode(IntoClause); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, rel, rel, rel); - READ_LIST_FIELD(col_names, colNames, colNames); - READ_STRING_FIELD(access_method, accessMethod, accessMethod); - READ_LIST_FIELD(options, options, options); - READ_ENUM_FIELD(OnCommitAction, on_commit, onCommit, onCommit); - READ_STRING_FIELD(table_space_name, tableSpaceName, tableSpaceName); - READ_NODE_PTR_FIELD(view_query, viewQuery, viewQuery); - READ_BOOL_FIELD(skip_data, skipData, skipData); - return node; -} - -static MergeAction * -_readMergeAction(OUT_TYPE(MergeAction, MergeAction) msg) -{ - MergeAction *node = makeNode(MergeAction); - READ_BOOL_FIELD(matched, matched, matched); - READ_ENUM_FIELD(CmdType, command_type, commandType, commandType); - READ_ENUM_FIELD(OverridingKind, override, override, override); - READ_NODE_PTR_FIELD(qual, qual, qual); - READ_LIST_FIELD(target_list, targetList, targetList); - READ_LIST_FIELD(update_colnos, updateColnos, updateColnos); - return node; -} - -static RawStmt * -_readRawStmt(OUT_TYPE(RawStmt, RawStmt) msg) -{ - RawStmt *node = makeNode(RawStmt); - READ_NODE_PTR_FIELD(stmt, stmt, stmt); - READ_INT_FIELD(stmt_location, stmt_location, stmt_location); - READ_INT_FIELD(stmt_len, stmt_len, stmt_len); - return node; -} - -static Query * -_readQuery(OUT_TYPE(Query, Query) msg) -{ - Query *node = makeNode(Query); - READ_ENUM_FIELD(CmdType, command_type, commandType, commandType); - READ_ENUM_FIELD(QuerySource, query_source, querySource, querySource); - READ_BOOL_FIELD(can_set_tag, canSetTag, canSetTag); - READ_NODE_PTR_FIELD(utility_stmt, utilityStmt, utilityStmt); - READ_INT_FIELD(result_relation, resultRelation, resultRelation); - READ_BOOL_FIELD(has_aggs, hasAggs, hasAggs); - READ_BOOL_FIELD(has_window_funcs, hasWindowFuncs, hasWindowFuncs); - READ_BOOL_FIELD(has_target_srfs, hasTargetSRFs, hasTargetSRFs); - READ_BOOL_FIELD(has_sub_links, hasSubLinks, hasSubLinks); - READ_BOOL_FIELD(has_distinct_on, hasDistinctOn, hasDistinctOn); - READ_BOOL_FIELD(has_recursive, hasRecursive, hasRecursive); - READ_BOOL_FIELD(has_modifying_cte, hasModifyingCTE, hasModifyingCTE); - READ_BOOL_FIELD(has_for_update, hasForUpdate, hasForUpdate); - READ_BOOL_FIELD(has_row_security, hasRowSecurity, hasRowSecurity); - READ_BOOL_FIELD(is_return, isReturn, isReturn); - READ_LIST_FIELD(cte_list, cteList, cteList); - READ_LIST_FIELD(rtable, rtable, rtable); - READ_SPECIFIC_NODE_PTR_FIELD(FromExpr, from_expr, jointree, jointree, jointree); - READ_LIST_FIELD(merge_action_list, mergeActionList, mergeActionList); - READ_BOOL_FIELD(merge_use_outer_join, mergeUseOuterJoin, mergeUseOuterJoin); - READ_LIST_FIELD(target_list, targetList, targetList); - READ_ENUM_FIELD(OverridingKind, override, override, override); - READ_SPECIFIC_NODE_PTR_FIELD(OnConflictExpr, on_conflict_expr, on_conflict, onConflict, onConflict); - READ_LIST_FIELD(returning_list, returningList, returningList); - READ_LIST_FIELD(group_clause, groupClause, groupClause); - READ_BOOL_FIELD(group_distinct, groupDistinct, groupDistinct); - READ_LIST_FIELD(grouping_sets, groupingSets, groupingSets); - READ_NODE_PTR_FIELD(having_qual, havingQual, havingQual); - READ_LIST_FIELD(window_clause, windowClause, windowClause); - READ_LIST_FIELD(distinct_clause, distinctClause, distinctClause); - READ_LIST_FIELD(sort_clause, sortClause, sortClause); - READ_NODE_PTR_FIELD(limit_offset, limitOffset, limitOffset); - READ_NODE_PTR_FIELD(limit_count, limitCount, limitCount); - READ_ENUM_FIELD(LimitOption, limit_option, limitOption, limitOption); - READ_LIST_FIELD(row_marks, rowMarks, rowMarks); - READ_NODE_PTR_FIELD(set_operations, setOperations, setOperations); - READ_LIST_FIELD(constraint_deps, constraintDeps, constraintDeps); - READ_LIST_FIELD(with_check_options, withCheckOptions, withCheckOptions); - READ_INT_FIELD(stmt_location, stmt_location, stmt_location); - READ_INT_FIELD(stmt_len, stmt_len, stmt_len); - return node; -} - -static InsertStmt * -_readInsertStmt(OUT_TYPE(InsertStmt, InsertStmt) msg) -{ - InsertStmt *node = makeNode(InsertStmt); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - READ_LIST_FIELD(cols, cols, cols); - READ_NODE_PTR_FIELD(select_stmt, selectStmt, selectStmt); - READ_SPECIFIC_NODE_PTR_FIELD(OnConflictClause, on_conflict_clause, on_conflict_clause, onConflictClause, onConflictClause); - READ_LIST_FIELD(returning_list, returningList, returningList); - READ_SPECIFIC_NODE_PTR_FIELD(WithClause, with_clause, with_clause, withClause, withClause); - READ_ENUM_FIELD(OverridingKind, override, override, override); - return node; -} - -static DeleteStmt * -_readDeleteStmt(OUT_TYPE(DeleteStmt, DeleteStmt) msg) -{ - DeleteStmt *node = makeNode(DeleteStmt); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - READ_LIST_FIELD(using_clause, usingClause, usingClause); - READ_NODE_PTR_FIELD(where_clause, whereClause, whereClause); - READ_LIST_FIELD(returning_list, returningList, returningList); - READ_SPECIFIC_NODE_PTR_FIELD(WithClause, with_clause, with_clause, withClause, withClause); - return node; -} - -static UpdateStmt * -_readUpdateStmt(OUT_TYPE(UpdateStmt, UpdateStmt) msg) -{ - UpdateStmt *node = makeNode(UpdateStmt); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - READ_LIST_FIELD(target_list, targetList, targetList); - READ_NODE_PTR_FIELD(where_clause, whereClause, whereClause); - READ_LIST_FIELD(from_clause, fromClause, fromClause); - READ_LIST_FIELD(returning_list, returningList, returningList); - READ_SPECIFIC_NODE_PTR_FIELD(WithClause, with_clause, with_clause, withClause, withClause); - return node; -} - -static MergeStmt * -_readMergeStmt(OUT_TYPE(MergeStmt, MergeStmt) msg) -{ - MergeStmt *node = makeNode(MergeStmt); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - READ_NODE_PTR_FIELD(source_relation, sourceRelation, sourceRelation); - READ_NODE_PTR_FIELD(join_condition, joinCondition, joinCondition); - READ_LIST_FIELD(merge_when_clauses, mergeWhenClauses, mergeWhenClauses); - READ_SPECIFIC_NODE_PTR_FIELD(WithClause, with_clause, with_clause, withClause, withClause); - return node; -} - -static SelectStmt * -_readSelectStmt(OUT_TYPE(SelectStmt, SelectStmt) msg) -{ - SelectStmt *node = makeNode(SelectStmt); - READ_LIST_FIELD(distinct_clause, distinctClause, distinctClause); - READ_SPECIFIC_NODE_PTR_FIELD(IntoClause, into_clause, into_clause, intoClause, intoClause); - READ_LIST_FIELD(target_list, targetList, targetList); - READ_LIST_FIELD(from_clause, fromClause, fromClause); - READ_NODE_PTR_FIELD(where_clause, whereClause, whereClause); - READ_LIST_FIELD(group_clause, groupClause, groupClause); - READ_BOOL_FIELD(group_distinct, groupDistinct, groupDistinct); - READ_NODE_PTR_FIELD(having_clause, havingClause, havingClause); - READ_LIST_FIELD(window_clause, windowClause, windowClause); - READ_LIST_FIELD(values_lists, valuesLists, valuesLists); - READ_LIST_FIELD(sort_clause, sortClause, sortClause); - READ_NODE_PTR_FIELD(limit_offset, limitOffset, limitOffset); - READ_NODE_PTR_FIELD(limit_count, limitCount, limitCount); - READ_ENUM_FIELD(LimitOption, limit_option, limitOption, limitOption); - READ_LIST_FIELD(locking_clause, lockingClause, lockingClause); - READ_SPECIFIC_NODE_PTR_FIELD(WithClause, with_clause, with_clause, withClause, withClause); - READ_ENUM_FIELD(SetOperation, op, op, op); - READ_BOOL_FIELD(all, all, all); - READ_SPECIFIC_NODE_PTR_FIELD(SelectStmt, select_stmt, larg, larg, larg); - READ_SPECIFIC_NODE_PTR_FIELD(SelectStmt, select_stmt, rarg, rarg, rarg); - return node; -} - -static ReturnStmt * -_readReturnStmt(OUT_TYPE(ReturnStmt, ReturnStmt) msg) -{ - ReturnStmt *node = makeNode(ReturnStmt); - READ_NODE_PTR_FIELD(returnval, returnval, returnval); - return node; -} - -static PLAssignStmt * -_readPLAssignStmt(OUT_TYPE(PLAssignStmt, PLAssignStmt) msg) -{ - PLAssignStmt *node = makeNode(PLAssignStmt); - READ_STRING_FIELD(name, name, name); - READ_LIST_FIELD(indirection, indirection, indirection); - READ_INT_FIELD(nnames, nnames, nnames); - READ_SPECIFIC_NODE_PTR_FIELD(SelectStmt, select_stmt, val, val, val); - READ_INT_FIELD(location, location, location); - return node; -} - -static AlterTableStmt * -_readAlterTableStmt(OUT_TYPE(AlterTableStmt, AlterTableStmt) msg) -{ - AlterTableStmt *node = makeNode(AlterTableStmt); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - READ_LIST_FIELD(cmds, cmds, cmds); - READ_ENUM_FIELD(ObjectType, objtype, objtype, objtype); - READ_BOOL_FIELD(missing_ok, missing_ok, missing_ok); - return node; -} - -static AlterTableCmd * -_readAlterTableCmd(OUT_TYPE(AlterTableCmd, AlterTableCmd) msg) -{ - AlterTableCmd *node = makeNode(AlterTableCmd); - READ_ENUM_FIELD(AlterTableType, subtype, subtype, subtype); - READ_STRING_FIELD(name, name, name); - READ_INT_FIELD(num, num, num); - READ_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, newowner, newowner, newowner); - READ_NODE_PTR_FIELD(def, def, def); - READ_ENUM_FIELD(DropBehavior, behavior, behavior, behavior); - READ_BOOL_FIELD(missing_ok, missing_ok, missing_ok); - READ_BOOL_FIELD(recurse, recurse, recurse); - return node; -} - -static AlterDomainStmt * -_readAlterDomainStmt(OUT_TYPE(AlterDomainStmt, AlterDomainStmt) msg) -{ - AlterDomainStmt *node = makeNode(AlterDomainStmt); - READ_CHAR_FIELD(subtype, subtype, subtype); - READ_LIST_FIELD(type_name, typeName, typeName); - READ_STRING_FIELD(name, name, name); - READ_NODE_PTR_FIELD(def, def, def); - READ_ENUM_FIELD(DropBehavior, behavior, behavior, behavior); - READ_BOOL_FIELD(missing_ok, missing_ok, missing_ok); - return node; -} - -static SetOperationStmt * -_readSetOperationStmt(OUT_TYPE(SetOperationStmt, SetOperationStmt) msg) -{ - SetOperationStmt *node = makeNode(SetOperationStmt); - READ_ENUM_FIELD(SetOperation, op, op, op); - READ_BOOL_FIELD(all, all, all); - READ_NODE_PTR_FIELD(larg, larg, larg); - READ_NODE_PTR_FIELD(rarg, rarg, rarg); - READ_LIST_FIELD(col_types, colTypes, colTypes); - READ_LIST_FIELD(col_typmods, colTypmods, colTypmods); - READ_LIST_FIELD(col_collations, colCollations, colCollations); - READ_LIST_FIELD(group_clauses, groupClauses, groupClauses); - return node; -} - -static GrantStmt * -_readGrantStmt(OUT_TYPE(GrantStmt, GrantStmt) msg) -{ - GrantStmt *node = makeNode(GrantStmt); - READ_BOOL_FIELD(is_grant, is_grant, is_grant); - READ_ENUM_FIELD(GrantTargetType, targtype, targtype, targtype); - READ_ENUM_FIELD(ObjectType, objtype, objtype, objtype); - READ_LIST_FIELD(objects, objects, objects); - READ_LIST_FIELD(privileges, privileges, privileges); - READ_LIST_FIELD(grantees, grantees, grantees); - READ_BOOL_FIELD(grant_option, grant_option, grant_option); - READ_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, grantor, grantor, grantor); - READ_ENUM_FIELD(DropBehavior, behavior, behavior, behavior); - return node; -} - -static GrantRoleStmt * -_readGrantRoleStmt(OUT_TYPE(GrantRoleStmt, GrantRoleStmt) msg) -{ - GrantRoleStmt *node = makeNode(GrantRoleStmt); - READ_LIST_FIELD(granted_roles, granted_roles, granted_roles); - READ_LIST_FIELD(grantee_roles, grantee_roles, grantee_roles); - READ_BOOL_FIELD(is_grant, is_grant, is_grant); - READ_BOOL_FIELD(admin_opt, admin_opt, admin_opt); - READ_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, grantor, grantor, grantor); - READ_ENUM_FIELD(DropBehavior, behavior, behavior, behavior); - return node; -} - -static AlterDefaultPrivilegesStmt * -_readAlterDefaultPrivilegesStmt(OUT_TYPE(AlterDefaultPrivilegesStmt, AlterDefaultPrivilegesStmt) msg) -{ - AlterDefaultPrivilegesStmt *node = makeNode(AlterDefaultPrivilegesStmt); - READ_LIST_FIELD(options, options, options); - READ_SPECIFIC_NODE_PTR_FIELD(GrantStmt, grant_stmt, action, action, action); - return node; -} - -static ClosePortalStmt * -_readClosePortalStmt(OUT_TYPE(ClosePortalStmt, ClosePortalStmt) msg) -{ - ClosePortalStmt *node = makeNode(ClosePortalStmt); - READ_STRING_FIELD(portalname, portalname, portalname); - return node; -} - -static ClusterStmt * -_readClusterStmt(OUT_TYPE(ClusterStmt, ClusterStmt) msg) -{ - ClusterStmt *node = makeNode(ClusterStmt); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - READ_STRING_FIELD(indexname, indexname, indexname); - READ_LIST_FIELD(params, params, params); - return node; -} - -static CopyStmt * -_readCopyStmt(OUT_TYPE(CopyStmt, CopyStmt) msg) -{ - CopyStmt *node = makeNode(CopyStmt); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - READ_NODE_PTR_FIELD(query, query, query); - READ_LIST_FIELD(attlist, attlist, attlist); - READ_BOOL_FIELD(is_from, is_from, is_from); - READ_BOOL_FIELD(is_program, is_program, is_program); - READ_STRING_FIELD(filename, filename, filename); - READ_LIST_FIELD(options, options, options); - READ_NODE_PTR_FIELD(where_clause, whereClause, whereClause); - return node; -} - -static CreateStmt * -_readCreateStmt(OUT_TYPE(CreateStmt, CreateStmt) msg) -{ - CreateStmt *node = makeNode(CreateStmt); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - READ_LIST_FIELD(table_elts, tableElts, tableElts); - READ_LIST_FIELD(inh_relations, inhRelations, inhRelations); - READ_SPECIFIC_NODE_PTR_FIELD(PartitionBoundSpec, partition_bound_spec, partbound, partbound, partbound); - READ_SPECIFIC_NODE_PTR_FIELD(PartitionSpec, partition_spec, partspec, partspec, partspec); - READ_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, of_typename, ofTypename, ofTypename); - READ_LIST_FIELD(constraints, constraints, constraints); - READ_LIST_FIELD(options, options, options); - READ_ENUM_FIELD(OnCommitAction, oncommit, oncommit, oncommit); - READ_STRING_FIELD(tablespacename, tablespacename, tablespacename); - READ_STRING_FIELD(access_method, accessMethod, accessMethod); - READ_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists); - return node; -} - -static DefineStmt * -_readDefineStmt(OUT_TYPE(DefineStmt, DefineStmt) msg) -{ - DefineStmt *node = makeNode(DefineStmt); - READ_ENUM_FIELD(ObjectType, kind, kind, kind); - READ_BOOL_FIELD(oldstyle, oldstyle, oldstyle); - READ_LIST_FIELD(defnames, defnames, defnames); - READ_LIST_FIELD(args, args, args); - READ_LIST_FIELD(definition, definition, definition); - READ_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists); - READ_BOOL_FIELD(replace, replace, replace); - return node; -} - -static DropStmt * -_readDropStmt(OUT_TYPE(DropStmt, DropStmt) msg) -{ - DropStmt *node = makeNode(DropStmt); - READ_LIST_FIELD(objects, objects, objects); - READ_ENUM_FIELD(ObjectType, remove_type, removeType, removeType); - READ_ENUM_FIELD(DropBehavior, behavior, behavior, behavior); - READ_BOOL_FIELD(missing_ok, missing_ok, missing_ok); - READ_BOOL_FIELD(concurrent, concurrent, concurrent); - return node; -} - -static TruncateStmt * -_readTruncateStmt(OUT_TYPE(TruncateStmt, TruncateStmt) msg) -{ - TruncateStmt *node = makeNode(TruncateStmt); - READ_LIST_FIELD(relations, relations, relations); - READ_BOOL_FIELD(restart_seqs, restart_seqs, restart_seqs); - READ_ENUM_FIELD(DropBehavior, behavior, behavior, behavior); - return node; -} - -static CommentStmt * -_readCommentStmt(OUT_TYPE(CommentStmt, CommentStmt) msg) -{ - CommentStmt *node = makeNode(CommentStmt); - READ_ENUM_FIELD(ObjectType, objtype, objtype, objtype); - READ_NODE_PTR_FIELD(object, object, object); - READ_STRING_FIELD(comment, comment, comment); - return node; -} - -static FetchStmt * -_readFetchStmt(OUT_TYPE(FetchStmt, FetchStmt) msg) -{ - FetchStmt *node = makeNode(FetchStmt); - READ_ENUM_FIELD(FetchDirection, direction, direction, direction); - READ_LONG_FIELD(how_many, howMany, howMany); - READ_STRING_FIELD(portalname, portalname, portalname); - READ_BOOL_FIELD(ismove, ismove, ismove); - return node; -} - -static IndexStmt * -_readIndexStmt(OUT_TYPE(IndexStmt, IndexStmt) msg) -{ - IndexStmt *node = makeNode(IndexStmt); - READ_STRING_FIELD(idxname, idxname, idxname); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - READ_STRING_FIELD(access_method, accessMethod, accessMethod); - READ_STRING_FIELD(table_space, tableSpace, tableSpace); - READ_LIST_FIELD(index_params, indexParams, indexParams); - READ_LIST_FIELD(index_including_params, indexIncludingParams, indexIncludingParams); - READ_LIST_FIELD(options, options, options); - READ_NODE_PTR_FIELD(where_clause, whereClause, whereClause); - READ_LIST_FIELD(exclude_op_names, excludeOpNames, excludeOpNames); - READ_STRING_FIELD(idxcomment, idxcomment, idxcomment); - READ_UINT_FIELD(index_oid, indexOid, indexOid); - READ_UINT_FIELD(old_node, oldNode, oldNode); - READ_UINT_FIELD(old_create_subid, oldCreateSubid, oldCreateSubid); - READ_UINT_FIELD(old_first_relfilenode_subid, oldFirstRelfilenodeSubid, oldFirstRelfilenodeSubid); - READ_BOOL_FIELD(unique, unique, unique); - READ_BOOL_FIELD(nulls_not_distinct, nulls_not_distinct, nulls_not_distinct); - READ_BOOL_FIELD(primary, primary, primary); - READ_BOOL_FIELD(isconstraint, isconstraint, isconstraint); - READ_BOOL_FIELD(deferrable, deferrable, deferrable); - READ_BOOL_FIELD(initdeferred, initdeferred, initdeferred); - READ_BOOL_FIELD(transformed, transformed, transformed); - READ_BOOL_FIELD(concurrent, concurrent, concurrent); - READ_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists); - READ_BOOL_FIELD(reset_default_tblspc, reset_default_tblspc, reset_default_tblspc); - return node; -} - -static CreateFunctionStmt * -_readCreateFunctionStmt(OUT_TYPE(CreateFunctionStmt, CreateFunctionStmt) msg) -{ - CreateFunctionStmt *node = makeNode(CreateFunctionStmt); - READ_BOOL_FIELD(is_procedure, is_procedure, is_procedure); - READ_BOOL_FIELD(replace, replace, replace); - READ_LIST_FIELD(funcname, funcname, funcname); - READ_LIST_FIELD(parameters, parameters, parameters); - READ_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, return_type, returnType, returnType); - READ_LIST_FIELD(options, options, options); - READ_NODE_PTR_FIELD(sql_body, sql_body, sql_body); - return node; -} - -static AlterFunctionStmt * -_readAlterFunctionStmt(OUT_TYPE(AlterFunctionStmt, AlterFunctionStmt) msg) -{ - AlterFunctionStmt *node = makeNode(AlterFunctionStmt); - READ_ENUM_FIELD(ObjectType, objtype, objtype, objtype); - READ_SPECIFIC_NODE_PTR_FIELD(ObjectWithArgs, object_with_args, func, func, func); - READ_LIST_FIELD(actions, actions, actions); - return node; -} - -static DoStmt * -_readDoStmt(OUT_TYPE(DoStmt, DoStmt) msg) -{ - DoStmt *node = makeNode(DoStmt); - READ_LIST_FIELD(args, args, args); - return node; -} - -static RenameStmt * -_readRenameStmt(OUT_TYPE(RenameStmt, RenameStmt) msg) -{ - RenameStmt *node = makeNode(RenameStmt); - READ_ENUM_FIELD(ObjectType, rename_type, renameType, renameType); - READ_ENUM_FIELD(ObjectType, relation_type, relationType, relationType); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - READ_NODE_PTR_FIELD(object, object, object); - READ_STRING_FIELD(subname, subname, subname); - READ_STRING_FIELD(newname, newname, newname); - READ_ENUM_FIELD(DropBehavior, behavior, behavior, behavior); - READ_BOOL_FIELD(missing_ok, missing_ok, missing_ok); - return node; -} - -static RuleStmt * -_readRuleStmt(OUT_TYPE(RuleStmt, RuleStmt) msg) -{ - RuleStmt *node = makeNode(RuleStmt); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - READ_STRING_FIELD(rulename, rulename, rulename); - READ_NODE_PTR_FIELD(where_clause, whereClause, whereClause); - READ_ENUM_FIELD(CmdType, event, event, event); - READ_BOOL_FIELD(instead, instead, instead); - READ_LIST_FIELD(actions, actions, actions); - READ_BOOL_FIELD(replace, replace, replace); - return node; -} - -static NotifyStmt * -_readNotifyStmt(OUT_TYPE(NotifyStmt, NotifyStmt) msg) -{ - NotifyStmt *node = makeNode(NotifyStmt); - READ_STRING_FIELD(conditionname, conditionname, conditionname); - READ_STRING_FIELD(payload, payload, payload); - return node; -} - -static ListenStmt * -_readListenStmt(OUT_TYPE(ListenStmt, ListenStmt) msg) -{ - ListenStmt *node = makeNode(ListenStmt); - READ_STRING_FIELD(conditionname, conditionname, conditionname); - return node; -} - -static UnlistenStmt * -_readUnlistenStmt(OUT_TYPE(UnlistenStmt, UnlistenStmt) msg) -{ - UnlistenStmt *node = makeNode(UnlistenStmt); - READ_STRING_FIELD(conditionname, conditionname, conditionname); - return node; -} - -static TransactionStmt * -_readTransactionStmt(OUT_TYPE(TransactionStmt, TransactionStmt) msg) -{ - TransactionStmt *node = makeNode(TransactionStmt); - READ_ENUM_FIELD(TransactionStmtKind, kind, kind, kind); - READ_LIST_FIELD(options, options, options); - READ_STRING_FIELD(savepoint_name, savepoint_name, savepoint_name); - READ_STRING_FIELD(gid, gid, gid); - READ_BOOL_FIELD(chain, chain, chain); - return node; -} - -static ViewStmt * -_readViewStmt(OUT_TYPE(ViewStmt, ViewStmt) msg) -{ - ViewStmt *node = makeNode(ViewStmt); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, view, view, view); - READ_LIST_FIELD(aliases, aliases, aliases); - READ_NODE_PTR_FIELD(query, query, query); - READ_BOOL_FIELD(replace, replace, replace); - READ_LIST_FIELD(options, options, options); - READ_ENUM_FIELD(ViewCheckOption, with_check_option, withCheckOption, withCheckOption); - return node; -} - -static LoadStmt * -_readLoadStmt(OUT_TYPE(LoadStmt, LoadStmt) msg) -{ - LoadStmt *node = makeNode(LoadStmt); - READ_STRING_FIELD(filename, filename, filename); - return node; -} - -static CreateDomainStmt * -_readCreateDomainStmt(OUT_TYPE(CreateDomainStmt, CreateDomainStmt) msg) -{ - CreateDomainStmt *node = makeNode(CreateDomainStmt); - READ_LIST_FIELD(domainname, domainname, domainname); - READ_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, typeName, typeName); - READ_SPECIFIC_NODE_PTR_FIELD(CollateClause, collate_clause, coll_clause, collClause, collClause); - READ_LIST_FIELD(constraints, constraints, constraints); - return node; -} - -static CreatedbStmt * -_readCreatedbStmt(OUT_TYPE(CreatedbStmt, CreatedbStmt) msg) -{ - CreatedbStmt *node = makeNode(CreatedbStmt); - READ_STRING_FIELD(dbname, dbname, dbname); - READ_LIST_FIELD(options, options, options); - return node; -} - -static DropdbStmt * -_readDropdbStmt(OUT_TYPE(DropdbStmt, DropdbStmt) msg) -{ - DropdbStmt *node = makeNode(DropdbStmt); - READ_STRING_FIELD(dbname, dbname, dbname); - READ_BOOL_FIELD(missing_ok, missing_ok, missing_ok); - READ_LIST_FIELD(options, options, options); - return node; -} - -static VacuumStmt * -_readVacuumStmt(OUT_TYPE(VacuumStmt, VacuumStmt) msg) -{ - VacuumStmt *node = makeNode(VacuumStmt); - READ_LIST_FIELD(options, options, options); - READ_LIST_FIELD(rels, rels, rels); - READ_BOOL_FIELD(is_vacuumcmd, is_vacuumcmd, is_vacuumcmd); - return node; -} - -static ExplainStmt * -_readExplainStmt(OUT_TYPE(ExplainStmt, ExplainStmt) msg) -{ - ExplainStmt *node = makeNode(ExplainStmt); - READ_NODE_PTR_FIELD(query, query, query); - READ_LIST_FIELD(options, options, options); - return node; -} - -static CreateTableAsStmt * -_readCreateTableAsStmt(OUT_TYPE(CreateTableAsStmt, CreateTableAsStmt) msg) -{ - CreateTableAsStmt *node = makeNode(CreateTableAsStmt); - READ_NODE_PTR_FIELD(query, query, query); - READ_SPECIFIC_NODE_PTR_FIELD(IntoClause, into_clause, into, into, into); - READ_ENUM_FIELD(ObjectType, objtype, objtype, objtype); - READ_BOOL_FIELD(is_select_into, is_select_into, is_select_into); - READ_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists); - return node; -} - -static CreateSeqStmt * -_readCreateSeqStmt(OUT_TYPE(CreateSeqStmt, CreateSeqStmt) msg) -{ - CreateSeqStmt *node = makeNode(CreateSeqStmt); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, sequence, sequence, sequence); - READ_LIST_FIELD(options, options, options); - READ_UINT_FIELD(owner_id, ownerId, ownerId); - READ_BOOL_FIELD(for_identity, for_identity, for_identity); - READ_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists); - return node; -} - -static AlterSeqStmt * -_readAlterSeqStmt(OUT_TYPE(AlterSeqStmt, AlterSeqStmt) msg) -{ - AlterSeqStmt *node = makeNode(AlterSeqStmt); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, sequence, sequence, sequence); - READ_LIST_FIELD(options, options, options); - READ_BOOL_FIELD(for_identity, for_identity, for_identity); - READ_BOOL_FIELD(missing_ok, missing_ok, missing_ok); - return node; -} - -static VariableSetStmt * -_readVariableSetStmt(OUT_TYPE(VariableSetStmt, VariableSetStmt) msg) -{ - VariableSetStmt *node = makeNode(VariableSetStmt); - READ_ENUM_FIELD(VariableSetKind, kind, kind, kind); - READ_STRING_FIELD(name, name, name); - READ_LIST_FIELD(args, args, args); - READ_BOOL_FIELD(is_local, is_local, is_local); - return node; -} - -static VariableShowStmt * -_readVariableShowStmt(OUT_TYPE(VariableShowStmt, VariableShowStmt) msg) -{ - VariableShowStmt *node = makeNode(VariableShowStmt); - READ_STRING_FIELD(name, name, name); - return node; -} - -static DiscardStmt * -_readDiscardStmt(OUT_TYPE(DiscardStmt, DiscardStmt) msg) -{ - DiscardStmt *node = makeNode(DiscardStmt); - READ_ENUM_FIELD(DiscardMode, target, target, target); - return node; -} - -static CreateTrigStmt * -_readCreateTrigStmt(OUT_TYPE(CreateTrigStmt, CreateTrigStmt) msg) -{ - CreateTrigStmt *node = makeNode(CreateTrigStmt); - READ_BOOL_FIELD(replace, replace, replace); - READ_BOOL_FIELD(isconstraint, isconstraint, isconstraint); - READ_STRING_FIELD(trigname, trigname, trigname); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - READ_LIST_FIELD(funcname, funcname, funcname); - READ_LIST_FIELD(args, args, args); - READ_BOOL_FIELD(row, row, row); - READ_INT_FIELD(timing, timing, timing); - READ_INT_FIELD(events, events, events); - READ_LIST_FIELD(columns, columns, columns); - READ_NODE_PTR_FIELD(when_clause, whenClause, whenClause); - READ_LIST_FIELD(transition_rels, transitionRels, transitionRels); - READ_BOOL_FIELD(deferrable, deferrable, deferrable); - READ_BOOL_FIELD(initdeferred, initdeferred, initdeferred); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, constrrel, constrrel, constrrel); - return node; -} - -static CreatePLangStmt * -_readCreatePLangStmt(OUT_TYPE(CreatePLangStmt, CreatePLangStmt) msg) -{ - CreatePLangStmt *node = makeNode(CreatePLangStmt); - READ_BOOL_FIELD(replace, replace, replace); - READ_STRING_FIELD(plname, plname, plname); - READ_LIST_FIELD(plhandler, plhandler, plhandler); - READ_LIST_FIELD(plinline, plinline, plinline); - READ_LIST_FIELD(plvalidator, plvalidator, plvalidator); - READ_BOOL_FIELD(pltrusted, pltrusted, pltrusted); - return node; -} - -static CreateRoleStmt * -_readCreateRoleStmt(OUT_TYPE(CreateRoleStmt, CreateRoleStmt) msg) -{ - CreateRoleStmt *node = makeNode(CreateRoleStmt); - READ_ENUM_FIELD(RoleStmtType, stmt_type, stmt_type, stmt_type); - READ_STRING_FIELD(role, role, role); - READ_LIST_FIELD(options, options, options); - return node; -} - -static AlterRoleStmt * -_readAlterRoleStmt(OUT_TYPE(AlterRoleStmt, AlterRoleStmt) msg) -{ - AlterRoleStmt *node = makeNode(AlterRoleStmt); - READ_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, role, role, role); - READ_LIST_FIELD(options, options, options); - READ_INT_FIELD(action, action, action); - return node; -} - -static DropRoleStmt * -_readDropRoleStmt(OUT_TYPE(DropRoleStmt, DropRoleStmt) msg) -{ - DropRoleStmt *node = makeNode(DropRoleStmt); - READ_LIST_FIELD(roles, roles, roles); - READ_BOOL_FIELD(missing_ok, missing_ok, missing_ok); - return node; -} - -static LockStmt * -_readLockStmt(OUT_TYPE(LockStmt, LockStmt) msg) -{ - LockStmt *node = makeNode(LockStmt); - READ_LIST_FIELD(relations, relations, relations); - READ_INT_FIELD(mode, mode, mode); - READ_BOOL_FIELD(nowait, nowait, nowait); - return node; -} - -static ConstraintsSetStmt * -_readConstraintsSetStmt(OUT_TYPE(ConstraintsSetStmt, ConstraintsSetStmt) msg) -{ - ConstraintsSetStmt *node = makeNode(ConstraintsSetStmt); - READ_LIST_FIELD(constraints, constraints, constraints); - READ_BOOL_FIELD(deferred, deferred, deferred); - return node; -} - -static ReindexStmt * -_readReindexStmt(OUT_TYPE(ReindexStmt, ReindexStmt) msg) -{ - ReindexStmt *node = makeNode(ReindexStmt); - READ_ENUM_FIELD(ReindexObjectType, kind, kind, kind); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - READ_STRING_FIELD(name, name, name); - READ_LIST_FIELD(params, params, params); - return node; -} - -static CheckPointStmt * -_readCheckPointStmt(OUT_TYPE(CheckPointStmt, CheckPointStmt) msg) -{ - CheckPointStmt *node = makeNode(CheckPointStmt); - return node; -} - -static CreateSchemaStmt * -_readCreateSchemaStmt(OUT_TYPE(CreateSchemaStmt, CreateSchemaStmt) msg) -{ - CreateSchemaStmt *node = makeNode(CreateSchemaStmt); - READ_STRING_FIELD(schemaname, schemaname, schemaname); - READ_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, authrole, authrole, authrole); - READ_LIST_FIELD(schema_elts, schemaElts, schemaElts); - READ_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists); - return node; -} - -static AlterDatabaseStmt * -_readAlterDatabaseStmt(OUT_TYPE(AlterDatabaseStmt, AlterDatabaseStmt) msg) -{ - AlterDatabaseStmt *node = makeNode(AlterDatabaseStmt); - READ_STRING_FIELD(dbname, dbname, dbname); - READ_LIST_FIELD(options, options, options); - return node; -} - -static AlterDatabaseRefreshCollStmt * -_readAlterDatabaseRefreshCollStmt(OUT_TYPE(AlterDatabaseRefreshCollStmt, AlterDatabaseRefreshCollStmt) msg) -{ - AlterDatabaseRefreshCollStmt *node = makeNode(AlterDatabaseRefreshCollStmt); - READ_STRING_FIELD(dbname, dbname, dbname); - return node; -} - -static AlterDatabaseSetStmt * -_readAlterDatabaseSetStmt(OUT_TYPE(AlterDatabaseSetStmt, AlterDatabaseSetStmt) msg) -{ - AlterDatabaseSetStmt *node = makeNode(AlterDatabaseSetStmt); - READ_STRING_FIELD(dbname, dbname, dbname); - READ_SPECIFIC_NODE_PTR_FIELD(VariableSetStmt, variable_set_stmt, setstmt, setstmt, setstmt); - return node; -} - -static AlterRoleSetStmt * -_readAlterRoleSetStmt(OUT_TYPE(AlterRoleSetStmt, AlterRoleSetStmt) msg) -{ - AlterRoleSetStmt *node = makeNode(AlterRoleSetStmt); - READ_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, role, role, role); - READ_STRING_FIELD(database, database, database); - READ_SPECIFIC_NODE_PTR_FIELD(VariableSetStmt, variable_set_stmt, setstmt, setstmt, setstmt); - return node; -} - -static CreateConversionStmt * -_readCreateConversionStmt(OUT_TYPE(CreateConversionStmt, CreateConversionStmt) msg) -{ - CreateConversionStmt *node = makeNode(CreateConversionStmt); - READ_LIST_FIELD(conversion_name, conversion_name, conversion_name); - READ_STRING_FIELD(for_encoding_name, for_encoding_name, for_encoding_name); - READ_STRING_FIELD(to_encoding_name, to_encoding_name, to_encoding_name); - READ_LIST_FIELD(func_name, func_name, func_name); - READ_BOOL_FIELD(def, def, def); - return node; -} - -static CreateCastStmt * -_readCreateCastStmt(OUT_TYPE(CreateCastStmt, CreateCastStmt) msg) -{ - CreateCastStmt *node = makeNode(CreateCastStmt); - READ_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, sourcetype, sourcetype, sourcetype); - READ_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, targettype, targettype, targettype); - READ_SPECIFIC_NODE_PTR_FIELD(ObjectWithArgs, object_with_args, func, func, func); - READ_ENUM_FIELD(CoercionContext, context, context, context); - READ_BOOL_FIELD(inout, inout, inout); - return node; -} - -static CreateOpClassStmt * -_readCreateOpClassStmt(OUT_TYPE(CreateOpClassStmt, CreateOpClassStmt) msg) -{ - CreateOpClassStmt *node = makeNode(CreateOpClassStmt); - READ_LIST_FIELD(opclassname, opclassname, opclassname); - READ_LIST_FIELD(opfamilyname, opfamilyname, opfamilyname); - READ_STRING_FIELD(amname, amname, amname); - READ_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, datatype, datatype, datatype); - READ_LIST_FIELD(items, items, items); - READ_BOOL_FIELD(is_default, isDefault, isDefault); - return node; -} - -static CreateOpFamilyStmt * -_readCreateOpFamilyStmt(OUT_TYPE(CreateOpFamilyStmt, CreateOpFamilyStmt) msg) -{ - CreateOpFamilyStmt *node = makeNode(CreateOpFamilyStmt); - READ_LIST_FIELD(opfamilyname, opfamilyname, opfamilyname); - READ_STRING_FIELD(amname, amname, amname); - return node; -} - -static AlterOpFamilyStmt * -_readAlterOpFamilyStmt(OUT_TYPE(AlterOpFamilyStmt, AlterOpFamilyStmt) msg) -{ - AlterOpFamilyStmt *node = makeNode(AlterOpFamilyStmt); - READ_LIST_FIELD(opfamilyname, opfamilyname, opfamilyname); - READ_STRING_FIELD(amname, amname, amname); - READ_BOOL_FIELD(is_drop, isDrop, isDrop); - READ_LIST_FIELD(items, items, items); - return node; -} - -static PrepareStmt * -_readPrepareStmt(OUT_TYPE(PrepareStmt, PrepareStmt) msg) -{ - PrepareStmt *node = makeNode(PrepareStmt); - READ_STRING_FIELD(name, name, name); - READ_LIST_FIELD(argtypes, argtypes, argtypes); - READ_NODE_PTR_FIELD(query, query, query); - return node; -} - -static ExecuteStmt * -_readExecuteStmt(OUT_TYPE(ExecuteStmt, ExecuteStmt) msg) -{ - ExecuteStmt *node = makeNode(ExecuteStmt); - READ_STRING_FIELD(name, name, name); - READ_LIST_FIELD(params, params, params); - return node; -} - -static DeallocateStmt * -_readDeallocateStmt(OUT_TYPE(DeallocateStmt, DeallocateStmt) msg) -{ - DeallocateStmt *node = makeNode(DeallocateStmt); - READ_STRING_FIELD(name, name, name); - return node; -} - -static DeclareCursorStmt * -_readDeclareCursorStmt(OUT_TYPE(DeclareCursorStmt, DeclareCursorStmt) msg) -{ - DeclareCursorStmt *node = makeNode(DeclareCursorStmt); - READ_STRING_FIELD(portalname, portalname, portalname); - READ_INT_FIELD(options, options, options); - READ_NODE_PTR_FIELD(query, query, query); - return node; -} - -static CreateTableSpaceStmt * -_readCreateTableSpaceStmt(OUT_TYPE(CreateTableSpaceStmt, CreateTableSpaceStmt) msg) -{ - CreateTableSpaceStmt *node = makeNode(CreateTableSpaceStmt); - READ_STRING_FIELD(tablespacename, tablespacename, tablespacename); - READ_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, owner, owner, owner); - READ_STRING_FIELD(location, location, location); - READ_LIST_FIELD(options, options, options); - return node; -} - -static DropTableSpaceStmt * -_readDropTableSpaceStmt(OUT_TYPE(DropTableSpaceStmt, DropTableSpaceStmt) msg) -{ - DropTableSpaceStmt *node = makeNode(DropTableSpaceStmt); - READ_STRING_FIELD(tablespacename, tablespacename, tablespacename); - READ_BOOL_FIELD(missing_ok, missing_ok, missing_ok); - return node; -} - -static AlterObjectDependsStmt * -_readAlterObjectDependsStmt(OUT_TYPE(AlterObjectDependsStmt, AlterObjectDependsStmt) msg) -{ - AlterObjectDependsStmt *node = makeNode(AlterObjectDependsStmt); - READ_ENUM_FIELD(ObjectType, object_type, objectType, objectType); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - READ_NODE_PTR_FIELD(object, object, object); - READ_SPECIFIC_NODE_PTR_FIELD(String, string, extname, extname, extname); - READ_BOOL_FIELD(remove, remove, remove); - return node; -} - -static AlterObjectSchemaStmt * -_readAlterObjectSchemaStmt(OUT_TYPE(AlterObjectSchemaStmt, AlterObjectSchemaStmt) msg) -{ - AlterObjectSchemaStmt *node = makeNode(AlterObjectSchemaStmt); - READ_ENUM_FIELD(ObjectType, object_type, objectType, objectType); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - READ_NODE_PTR_FIELD(object, object, object); - READ_STRING_FIELD(newschema, newschema, newschema); - READ_BOOL_FIELD(missing_ok, missing_ok, missing_ok); - return node; -} - -static AlterOwnerStmt * -_readAlterOwnerStmt(OUT_TYPE(AlterOwnerStmt, AlterOwnerStmt) msg) -{ - AlterOwnerStmt *node = makeNode(AlterOwnerStmt); - READ_ENUM_FIELD(ObjectType, object_type, objectType, objectType); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - READ_NODE_PTR_FIELD(object, object, object); - READ_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, newowner, newowner, newowner); - return node; -} - -static AlterOperatorStmt * -_readAlterOperatorStmt(OUT_TYPE(AlterOperatorStmt, AlterOperatorStmt) msg) -{ - AlterOperatorStmt *node = makeNode(AlterOperatorStmt); - READ_SPECIFIC_NODE_PTR_FIELD(ObjectWithArgs, object_with_args, opername, opername, opername); - READ_LIST_FIELD(options, options, options); - return node; -} - -static AlterTypeStmt * -_readAlterTypeStmt(OUT_TYPE(AlterTypeStmt, AlterTypeStmt) msg) -{ - AlterTypeStmt *node = makeNode(AlterTypeStmt); - READ_LIST_FIELD(type_name, typeName, typeName); - READ_LIST_FIELD(options, options, options); - return node; -} - -static DropOwnedStmt * -_readDropOwnedStmt(OUT_TYPE(DropOwnedStmt, DropOwnedStmt) msg) -{ - DropOwnedStmt *node = makeNode(DropOwnedStmt); - READ_LIST_FIELD(roles, roles, roles); - READ_ENUM_FIELD(DropBehavior, behavior, behavior, behavior); - return node; -} - -static ReassignOwnedStmt * -_readReassignOwnedStmt(OUT_TYPE(ReassignOwnedStmt, ReassignOwnedStmt) msg) -{ - ReassignOwnedStmt *node = makeNode(ReassignOwnedStmt); - READ_LIST_FIELD(roles, roles, roles); - READ_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, newrole, newrole, newrole); - return node; -} - -static CompositeTypeStmt * -_readCompositeTypeStmt(OUT_TYPE(CompositeTypeStmt, CompositeTypeStmt) msg) -{ - CompositeTypeStmt *node = makeNode(CompositeTypeStmt); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, typevar, typevar, typevar); - READ_LIST_FIELD(coldeflist, coldeflist, coldeflist); - return node; -} - -static CreateEnumStmt * -_readCreateEnumStmt(OUT_TYPE(CreateEnumStmt, CreateEnumStmt) msg) -{ - CreateEnumStmt *node = makeNode(CreateEnumStmt); - READ_LIST_FIELD(type_name, typeName, typeName); - READ_LIST_FIELD(vals, vals, vals); - return node; -} - -static CreateRangeStmt * -_readCreateRangeStmt(OUT_TYPE(CreateRangeStmt, CreateRangeStmt) msg) -{ - CreateRangeStmt *node = makeNode(CreateRangeStmt); - READ_LIST_FIELD(type_name, typeName, typeName); - READ_LIST_FIELD(params, params, params); - return node; -} - -static AlterEnumStmt * -_readAlterEnumStmt(OUT_TYPE(AlterEnumStmt, AlterEnumStmt) msg) -{ - AlterEnumStmt *node = makeNode(AlterEnumStmt); - READ_LIST_FIELD(type_name, typeName, typeName); - READ_STRING_FIELD(old_val, oldVal, oldVal); - READ_STRING_FIELD(new_val, newVal, newVal); - READ_STRING_FIELD(new_val_neighbor, newValNeighbor, newValNeighbor); - READ_BOOL_FIELD(new_val_is_after, newValIsAfter, newValIsAfter); - READ_BOOL_FIELD(skip_if_new_val_exists, skipIfNewValExists, skipIfNewValExists); - return node; -} - -static AlterTSDictionaryStmt * -_readAlterTSDictionaryStmt(OUT_TYPE(AlterTSDictionaryStmt, AlterTSDictionaryStmt) msg) -{ - AlterTSDictionaryStmt *node = makeNode(AlterTSDictionaryStmt); - READ_LIST_FIELD(dictname, dictname, dictname); - READ_LIST_FIELD(options, options, options); - return node; -} - -static AlterTSConfigurationStmt * -_readAlterTSConfigurationStmt(OUT_TYPE(AlterTSConfigurationStmt, AlterTSConfigurationStmt) msg) -{ - AlterTSConfigurationStmt *node = makeNode(AlterTSConfigurationStmt); - READ_ENUM_FIELD(AlterTSConfigType, kind, kind, kind); - READ_LIST_FIELD(cfgname, cfgname, cfgname); - READ_LIST_FIELD(tokentype, tokentype, tokentype); - READ_LIST_FIELD(dicts, dicts, dicts); - READ_BOOL_FIELD(override, override, override); - READ_BOOL_FIELD(replace, replace, replace); - READ_BOOL_FIELD(missing_ok, missing_ok, missing_ok); - return node; -} - -static CreateFdwStmt * -_readCreateFdwStmt(OUT_TYPE(CreateFdwStmt, CreateFdwStmt) msg) -{ - CreateFdwStmt *node = makeNode(CreateFdwStmt); - READ_STRING_FIELD(fdwname, fdwname, fdwname); - READ_LIST_FIELD(func_options, func_options, func_options); - READ_LIST_FIELD(options, options, options); - return node; -} - -static AlterFdwStmt * -_readAlterFdwStmt(OUT_TYPE(AlterFdwStmt, AlterFdwStmt) msg) -{ - AlterFdwStmt *node = makeNode(AlterFdwStmt); - READ_STRING_FIELD(fdwname, fdwname, fdwname); - READ_LIST_FIELD(func_options, func_options, func_options); - READ_LIST_FIELD(options, options, options); - return node; -} - -static CreateForeignServerStmt * -_readCreateForeignServerStmt(OUT_TYPE(CreateForeignServerStmt, CreateForeignServerStmt) msg) -{ - CreateForeignServerStmt *node = makeNode(CreateForeignServerStmt); - READ_STRING_FIELD(servername, servername, servername); - READ_STRING_FIELD(servertype, servertype, servertype); - READ_STRING_FIELD(version, version, version); - READ_STRING_FIELD(fdwname, fdwname, fdwname); - READ_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists); - READ_LIST_FIELD(options, options, options); - return node; -} - -static AlterForeignServerStmt * -_readAlterForeignServerStmt(OUT_TYPE(AlterForeignServerStmt, AlterForeignServerStmt) msg) -{ - AlterForeignServerStmt *node = makeNode(AlterForeignServerStmt); - READ_STRING_FIELD(servername, servername, servername); - READ_STRING_FIELD(version, version, version); - READ_LIST_FIELD(options, options, options); - READ_BOOL_FIELD(has_version, has_version, has_version); - return node; -} - -static CreateUserMappingStmt * -_readCreateUserMappingStmt(OUT_TYPE(CreateUserMappingStmt, CreateUserMappingStmt) msg) -{ - CreateUserMappingStmt *node = makeNode(CreateUserMappingStmt); - READ_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, user, user, user); - READ_STRING_FIELD(servername, servername, servername); - READ_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists); - READ_LIST_FIELD(options, options, options); - return node; -} - -static AlterUserMappingStmt * -_readAlterUserMappingStmt(OUT_TYPE(AlterUserMappingStmt, AlterUserMappingStmt) msg) -{ - AlterUserMappingStmt *node = makeNode(AlterUserMappingStmt); - READ_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, user, user, user); - READ_STRING_FIELD(servername, servername, servername); - READ_LIST_FIELD(options, options, options); - return node; -} - -static DropUserMappingStmt * -_readDropUserMappingStmt(OUT_TYPE(DropUserMappingStmt, DropUserMappingStmt) msg) -{ - DropUserMappingStmt *node = makeNode(DropUserMappingStmt); - READ_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, user, user, user); - READ_STRING_FIELD(servername, servername, servername); - READ_BOOL_FIELD(missing_ok, missing_ok, missing_ok); - return node; -} - -static AlterTableSpaceOptionsStmt * -_readAlterTableSpaceOptionsStmt(OUT_TYPE(AlterTableSpaceOptionsStmt, AlterTableSpaceOptionsStmt) msg) -{ - AlterTableSpaceOptionsStmt *node = makeNode(AlterTableSpaceOptionsStmt); - READ_STRING_FIELD(tablespacename, tablespacename, tablespacename); - READ_LIST_FIELD(options, options, options); - READ_BOOL_FIELD(is_reset, isReset, isReset); - return node; -} - -static AlterTableMoveAllStmt * -_readAlterTableMoveAllStmt(OUT_TYPE(AlterTableMoveAllStmt, AlterTableMoveAllStmt) msg) -{ - AlterTableMoveAllStmt *node = makeNode(AlterTableMoveAllStmt); - READ_STRING_FIELD(orig_tablespacename, orig_tablespacename, orig_tablespacename); - READ_ENUM_FIELD(ObjectType, objtype, objtype, objtype); - READ_LIST_FIELD(roles, roles, roles); - READ_STRING_FIELD(new_tablespacename, new_tablespacename, new_tablespacename); - READ_BOOL_FIELD(nowait, nowait, nowait); - return node; -} - -static SecLabelStmt * -_readSecLabelStmt(OUT_TYPE(SecLabelStmt, SecLabelStmt) msg) -{ - SecLabelStmt *node = makeNode(SecLabelStmt); - READ_ENUM_FIELD(ObjectType, objtype, objtype, objtype); - READ_NODE_PTR_FIELD(object, object, object); - READ_STRING_FIELD(provider, provider, provider); - READ_STRING_FIELD(label, label, label); - return node; -} - -static CreateForeignTableStmt * -_readCreateForeignTableStmt(OUT_TYPE(CreateForeignTableStmt, CreateForeignTableStmt) msg) -{ - CreateForeignTableStmt *node = makeNode(CreateForeignTableStmt); - READ_SPECIFIC_NODE_FIELD(CreateStmt, create_stmt, base_stmt, base, base); - READ_STRING_FIELD(servername, servername, servername); - READ_LIST_FIELD(options, options, options); - NodeSetTag(node, T_CreateForeignTableStmt); - return node; -} - -static ImportForeignSchemaStmt * -_readImportForeignSchemaStmt(OUT_TYPE(ImportForeignSchemaStmt, ImportForeignSchemaStmt) msg) -{ - ImportForeignSchemaStmt *node = makeNode(ImportForeignSchemaStmt); - READ_STRING_FIELD(server_name, server_name, server_name); - READ_STRING_FIELD(remote_schema, remote_schema, remote_schema); - READ_STRING_FIELD(local_schema, local_schema, local_schema); - READ_ENUM_FIELD(ImportForeignSchemaType, list_type, list_type, list_type); - READ_LIST_FIELD(table_list, table_list, table_list); - READ_LIST_FIELD(options, options, options); - return node; -} - -static CreateExtensionStmt * -_readCreateExtensionStmt(OUT_TYPE(CreateExtensionStmt, CreateExtensionStmt) msg) -{ - CreateExtensionStmt *node = makeNode(CreateExtensionStmt); - READ_STRING_FIELD(extname, extname, extname); - READ_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists); - READ_LIST_FIELD(options, options, options); - return node; -} - -static AlterExtensionStmt * -_readAlterExtensionStmt(OUT_TYPE(AlterExtensionStmt, AlterExtensionStmt) msg) -{ - AlterExtensionStmt *node = makeNode(AlterExtensionStmt); - READ_STRING_FIELD(extname, extname, extname); - READ_LIST_FIELD(options, options, options); - return node; -} - -static AlterExtensionContentsStmt * -_readAlterExtensionContentsStmt(OUT_TYPE(AlterExtensionContentsStmt, AlterExtensionContentsStmt) msg) -{ - AlterExtensionContentsStmt *node = makeNode(AlterExtensionContentsStmt); - READ_STRING_FIELD(extname, extname, extname); - READ_INT_FIELD(action, action, action); - READ_ENUM_FIELD(ObjectType, objtype, objtype, objtype); - READ_NODE_PTR_FIELD(object, object, object); - return node; -} - -static CreateEventTrigStmt * -_readCreateEventTrigStmt(OUT_TYPE(CreateEventTrigStmt, CreateEventTrigStmt) msg) -{ - CreateEventTrigStmt *node = makeNode(CreateEventTrigStmt); - READ_STRING_FIELD(trigname, trigname, trigname); - READ_STRING_FIELD(eventname, eventname, eventname); - READ_LIST_FIELD(whenclause, whenclause, whenclause); - READ_LIST_FIELD(funcname, funcname, funcname); - return node; -} - -static AlterEventTrigStmt * -_readAlterEventTrigStmt(OUT_TYPE(AlterEventTrigStmt, AlterEventTrigStmt) msg) -{ - AlterEventTrigStmt *node = makeNode(AlterEventTrigStmt); - READ_STRING_FIELD(trigname, trigname, trigname); - READ_CHAR_FIELD(tgenabled, tgenabled, tgenabled); - return node; -} - -static RefreshMatViewStmt * -_readRefreshMatViewStmt(OUT_TYPE(RefreshMatViewStmt, RefreshMatViewStmt) msg) -{ - RefreshMatViewStmt *node = makeNode(RefreshMatViewStmt); - READ_BOOL_FIELD(concurrent, concurrent, concurrent); - READ_BOOL_FIELD(skip_data, skipData, skipData); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - return node; -} - -static ReplicaIdentityStmt * -_readReplicaIdentityStmt(OUT_TYPE(ReplicaIdentityStmt, ReplicaIdentityStmt) msg) -{ - ReplicaIdentityStmt *node = makeNode(ReplicaIdentityStmt); - READ_CHAR_FIELD(identity_type, identity_type, identity_type); - READ_STRING_FIELD(name, name, name); - return node; -} - -static AlterSystemStmt * -_readAlterSystemStmt(OUT_TYPE(AlterSystemStmt, AlterSystemStmt) msg) -{ - AlterSystemStmt *node = makeNode(AlterSystemStmt); - READ_SPECIFIC_NODE_PTR_FIELD(VariableSetStmt, variable_set_stmt, setstmt, setstmt, setstmt); - return node; -} - -static CreatePolicyStmt * -_readCreatePolicyStmt(OUT_TYPE(CreatePolicyStmt, CreatePolicyStmt) msg) -{ - CreatePolicyStmt *node = makeNode(CreatePolicyStmt); - READ_STRING_FIELD(policy_name, policy_name, policy_name); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, table, table, table); - READ_STRING_FIELD(cmd_name, cmd_name, cmd_name); - READ_BOOL_FIELD(permissive, permissive, permissive); - READ_LIST_FIELD(roles, roles, roles); - READ_NODE_PTR_FIELD(qual, qual, qual); - READ_NODE_PTR_FIELD(with_check, with_check, with_check); - return node; -} - -static AlterPolicyStmt * -_readAlterPolicyStmt(OUT_TYPE(AlterPolicyStmt, AlterPolicyStmt) msg) -{ - AlterPolicyStmt *node = makeNode(AlterPolicyStmt); - READ_STRING_FIELD(policy_name, policy_name, policy_name); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, table, table, table); - READ_LIST_FIELD(roles, roles, roles); - READ_NODE_PTR_FIELD(qual, qual, qual); - READ_NODE_PTR_FIELD(with_check, with_check, with_check); - return node; -} - -static CreateTransformStmt * -_readCreateTransformStmt(OUT_TYPE(CreateTransformStmt, CreateTransformStmt) msg) -{ - CreateTransformStmt *node = makeNode(CreateTransformStmt); - READ_BOOL_FIELD(replace, replace, replace); - READ_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, type_name, type_name); - READ_STRING_FIELD(lang, lang, lang); - READ_SPECIFIC_NODE_PTR_FIELD(ObjectWithArgs, object_with_args, fromsql, fromsql, fromsql); - READ_SPECIFIC_NODE_PTR_FIELD(ObjectWithArgs, object_with_args, tosql, tosql, tosql); - return node; -} - -static CreateAmStmt * -_readCreateAmStmt(OUT_TYPE(CreateAmStmt, CreateAmStmt) msg) -{ - CreateAmStmt *node = makeNode(CreateAmStmt); - READ_STRING_FIELD(amname, amname, amname); - READ_LIST_FIELD(handler_name, handler_name, handler_name); - READ_CHAR_FIELD(amtype, amtype, amtype); - return node; -} - -static CreatePublicationStmt * -_readCreatePublicationStmt(OUT_TYPE(CreatePublicationStmt, CreatePublicationStmt) msg) -{ - CreatePublicationStmt *node = makeNode(CreatePublicationStmt); - READ_STRING_FIELD(pubname, pubname, pubname); - READ_LIST_FIELD(options, options, options); - READ_LIST_FIELD(pubobjects, pubobjects, pubobjects); - READ_BOOL_FIELD(for_all_tables, for_all_tables, for_all_tables); - return node; -} - -static AlterPublicationStmt * -_readAlterPublicationStmt(OUT_TYPE(AlterPublicationStmt, AlterPublicationStmt) msg) -{ - AlterPublicationStmt *node = makeNode(AlterPublicationStmt); - READ_STRING_FIELD(pubname, pubname, pubname); - READ_LIST_FIELD(options, options, options); - READ_LIST_FIELD(pubobjects, pubobjects, pubobjects); - READ_BOOL_FIELD(for_all_tables, for_all_tables, for_all_tables); - READ_ENUM_FIELD(AlterPublicationAction, action, action, action); - return node; -} - -static CreateSubscriptionStmt * -_readCreateSubscriptionStmt(OUT_TYPE(CreateSubscriptionStmt, CreateSubscriptionStmt) msg) -{ - CreateSubscriptionStmt *node = makeNode(CreateSubscriptionStmt); - READ_STRING_FIELD(subname, subname, subname); - READ_STRING_FIELD(conninfo, conninfo, conninfo); - READ_LIST_FIELD(publication, publication, publication); - READ_LIST_FIELD(options, options, options); - return node; -} - -static AlterSubscriptionStmt * -_readAlterSubscriptionStmt(OUT_TYPE(AlterSubscriptionStmt, AlterSubscriptionStmt) msg) -{ - AlterSubscriptionStmt *node = makeNode(AlterSubscriptionStmt); - READ_ENUM_FIELD(AlterSubscriptionType, kind, kind, kind); - READ_STRING_FIELD(subname, subname, subname); - READ_STRING_FIELD(conninfo, conninfo, conninfo); - READ_LIST_FIELD(publication, publication, publication); - READ_LIST_FIELD(options, options, options); - return node; -} - -static DropSubscriptionStmt * -_readDropSubscriptionStmt(OUT_TYPE(DropSubscriptionStmt, DropSubscriptionStmt) msg) -{ - DropSubscriptionStmt *node = makeNode(DropSubscriptionStmt); - READ_STRING_FIELD(subname, subname, subname); - READ_BOOL_FIELD(missing_ok, missing_ok, missing_ok); - READ_ENUM_FIELD(DropBehavior, behavior, behavior, behavior); - return node; -} - -static CreateStatsStmt * -_readCreateStatsStmt(OUT_TYPE(CreateStatsStmt, CreateStatsStmt) msg) -{ - CreateStatsStmt *node = makeNode(CreateStatsStmt); - READ_LIST_FIELD(defnames, defnames, defnames); - READ_LIST_FIELD(stat_types, stat_types, stat_types); - READ_LIST_FIELD(exprs, exprs, exprs); - READ_LIST_FIELD(relations, relations, relations); - READ_STRING_FIELD(stxcomment, stxcomment, stxcomment); - READ_BOOL_FIELD(transformed, transformed, transformed); - READ_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists); - return node; -} - -static AlterCollationStmt * -_readAlterCollationStmt(OUT_TYPE(AlterCollationStmt, AlterCollationStmt) msg) -{ - AlterCollationStmt *node = makeNode(AlterCollationStmt); - READ_LIST_FIELD(collname, collname, collname); - return node; -} - -static CallStmt * -_readCallStmt(OUT_TYPE(CallStmt, CallStmt) msg) -{ - CallStmt *node = makeNode(CallStmt); - READ_SPECIFIC_NODE_PTR_FIELD(FuncCall, func_call, funccall, funccall, funccall); - READ_SPECIFIC_NODE_PTR_FIELD(FuncExpr, func_expr, funcexpr, funcexpr, funcexpr); - READ_LIST_FIELD(outargs, outargs, outargs); - return node; -} - -static AlterStatsStmt * -_readAlterStatsStmt(OUT_TYPE(AlterStatsStmt, AlterStatsStmt) msg) -{ - AlterStatsStmt *node = makeNode(AlterStatsStmt); - READ_LIST_FIELD(defnames, defnames, defnames); - READ_INT_FIELD(stxstattarget, stxstattarget, stxstattarget); - READ_BOOL_FIELD(missing_ok, missing_ok, missing_ok); - return node; -} - -static A_Expr * -_readAExpr(OUT_TYPE(A_Expr, AExpr) msg) -{ - A_Expr *node = makeNode(A_Expr); - READ_ENUM_FIELD(A_Expr_Kind, kind, kind, kind); - READ_LIST_FIELD(name, name, name); - READ_NODE_PTR_FIELD(lexpr, lexpr, lexpr); - READ_NODE_PTR_FIELD(rexpr, rexpr, rexpr); - READ_INT_FIELD(location, location, location); - return node; -} - -static ColumnRef * -_readColumnRef(OUT_TYPE(ColumnRef, ColumnRef) msg) -{ - ColumnRef *node = makeNode(ColumnRef); - READ_LIST_FIELD(fields, fields, fields); - READ_INT_FIELD(location, location, location); - return node; -} - -static ParamRef * -_readParamRef(OUT_TYPE(ParamRef, ParamRef) msg) -{ - ParamRef *node = makeNode(ParamRef); - READ_INT_FIELD(number, number, number); - READ_INT_FIELD(location, location, location); - return node; -} - -static FuncCall * -_readFuncCall(OUT_TYPE(FuncCall, FuncCall) msg) -{ - FuncCall *node = makeNode(FuncCall); - READ_LIST_FIELD(funcname, funcname, funcname); - READ_LIST_FIELD(args, args, args); - READ_LIST_FIELD(agg_order, agg_order, agg_order); - READ_NODE_PTR_FIELD(agg_filter, agg_filter, agg_filter); - READ_SPECIFIC_NODE_PTR_FIELD(WindowDef, window_def, over, over, over); - READ_BOOL_FIELD(agg_within_group, agg_within_group, agg_within_group); - READ_BOOL_FIELD(agg_star, agg_star, agg_star); - READ_BOOL_FIELD(agg_distinct, agg_distinct, agg_distinct); - READ_BOOL_FIELD(func_variadic, func_variadic, func_variadic); - READ_ENUM_FIELD(CoercionForm, funcformat, funcformat, funcformat); - READ_INT_FIELD(location, location, location); - return node; -} - -static A_Star * -_readAStar(OUT_TYPE(A_Star, AStar) msg) -{ - A_Star *node = makeNode(A_Star); - return node; -} - -static A_Indices * -_readAIndices(OUT_TYPE(A_Indices, AIndices) msg) -{ - A_Indices *node = makeNode(A_Indices); - READ_BOOL_FIELD(is_slice, is_slice, is_slice); - READ_NODE_PTR_FIELD(lidx, lidx, lidx); - READ_NODE_PTR_FIELD(uidx, uidx, uidx); - return node; -} - -static A_Indirection * -_readAIndirection(OUT_TYPE(A_Indirection, AIndirection) msg) -{ - A_Indirection *node = makeNode(A_Indirection); - READ_NODE_PTR_FIELD(arg, arg, arg); - READ_LIST_FIELD(indirection, indirection, indirection); - return node; -} - -static A_ArrayExpr * -_readAArrayExpr(OUT_TYPE(A_ArrayExpr, AArrayExpr) msg) -{ - A_ArrayExpr *node = makeNode(A_ArrayExpr); - READ_LIST_FIELD(elements, elements, elements); - READ_INT_FIELD(location, location, location); - return node; -} - -static ResTarget * -_readResTarget(OUT_TYPE(ResTarget, ResTarget) msg) -{ - ResTarget *node = makeNode(ResTarget); - READ_STRING_FIELD(name, name, name); - READ_LIST_FIELD(indirection, indirection, indirection); - READ_NODE_PTR_FIELD(val, val, val); - READ_INT_FIELD(location, location, location); - return node; -} - -static MultiAssignRef * -_readMultiAssignRef(OUT_TYPE(MultiAssignRef, MultiAssignRef) msg) -{ - MultiAssignRef *node = makeNode(MultiAssignRef); - READ_NODE_PTR_FIELD(source, source, source); - READ_INT_FIELD(colno, colno, colno); - READ_INT_FIELD(ncolumns, ncolumns, ncolumns); - return node; -} - -static TypeCast * -_readTypeCast(OUT_TYPE(TypeCast, TypeCast) msg) -{ - TypeCast *node = makeNode(TypeCast); - READ_NODE_PTR_FIELD(arg, arg, arg); - READ_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, typeName, typeName); - READ_INT_FIELD(location, location, location); - return node; -} - -static CollateClause * -_readCollateClause(OUT_TYPE(CollateClause, CollateClause) msg) -{ - CollateClause *node = makeNode(CollateClause); - READ_NODE_PTR_FIELD(arg, arg, arg); - READ_LIST_FIELD(collname, collname, collname); - READ_INT_FIELD(location, location, location); - return node; -} - -static SortBy * -_readSortBy(OUT_TYPE(SortBy, SortBy) msg) -{ - SortBy *node = makeNode(SortBy); - READ_NODE_PTR_FIELD(node, node, node); - READ_ENUM_FIELD(SortByDir, sortby_dir, sortby_dir, sortby_dir); - READ_ENUM_FIELD(SortByNulls, sortby_nulls, sortby_nulls, sortby_nulls); - READ_LIST_FIELD(use_op, useOp, useOp); - READ_INT_FIELD(location, location, location); - return node; -} - -static WindowDef * -_readWindowDef(OUT_TYPE(WindowDef, WindowDef) msg) -{ - WindowDef *node = makeNode(WindowDef); - READ_STRING_FIELD(name, name, name); - READ_STRING_FIELD(refname, refname, refname); - READ_LIST_FIELD(partition_clause, partitionClause, partitionClause); - READ_LIST_FIELD(order_clause, orderClause, orderClause); - READ_INT_FIELD(frame_options, frameOptions, frameOptions); - READ_NODE_PTR_FIELD(start_offset, startOffset, startOffset); - READ_NODE_PTR_FIELD(end_offset, endOffset, endOffset); - READ_INT_FIELD(location, location, location); - return node; -} - -static RangeSubselect * -_readRangeSubselect(OUT_TYPE(RangeSubselect, RangeSubselect) msg) -{ - RangeSubselect *node = makeNode(RangeSubselect); - READ_BOOL_FIELD(lateral, lateral, lateral); - READ_NODE_PTR_FIELD(subquery, subquery, subquery); - READ_SPECIFIC_NODE_PTR_FIELD(Alias, alias, alias, alias, alias); - return node; -} - -static RangeFunction * -_readRangeFunction(OUT_TYPE(RangeFunction, RangeFunction) msg) -{ - RangeFunction *node = makeNode(RangeFunction); - READ_BOOL_FIELD(lateral, lateral, lateral); - READ_BOOL_FIELD(ordinality, ordinality, ordinality); - READ_BOOL_FIELD(is_rowsfrom, is_rowsfrom, is_rowsfrom); - READ_LIST_FIELD(functions, functions, functions); - READ_SPECIFIC_NODE_PTR_FIELD(Alias, alias, alias, alias, alias); - READ_LIST_FIELD(coldeflist, coldeflist, coldeflist); - return node; -} - -static RangeTableSample * -_readRangeTableSample(OUT_TYPE(RangeTableSample, RangeTableSample) msg) -{ - RangeTableSample *node = makeNode(RangeTableSample); - READ_NODE_PTR_FIELD(relation, relation, relation); - READ_LIST_FIELD(method, method, method); - READ_LIST_FIELD(args, args, args); - READ_NODE_PTR_FIELD(repeatable, repeatable, repeatable); - READ_INT_FIELD(location, location, location); - return node; -} - -static RangeTableFunc * -_readRangeTableFunc(OUT_TYPE(RangeTableFunc, RangeTableFunc) msg) -{ - RangeTableFunc *node = makeNode(RangeTableFunc); - READ_BOOL_FIELD(lateral, lateral, lateral); - READ_NODE_PTR_FIELD(docexpr, docexpr, docexpr); - READ_NODE_PTR_FIELD(rowexpr, rowexpr, rowexpr); - READ_LIST_FIELD(namespaces, namespaces, namespaces); - READ_LIST_FIELD(columns, columns, columns); - READ_SPECIFIC_NODE_PTR_FIELD(Alias, alias, alias, alias, alias); - READ_INT_FIELD(location, location, location); - return node; -} - -static RangeTableFuncCol * -_readRangeTableFuncCol(OUT_TYPE(RangeTableFuncCol, RangeTableFuncCol) msg) -{ - RangeTableFuncCol *node = makeNode(RangeTableFuncCol); - READ_STRING_FIELD(colname, colname, colname); - READ_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, typeName, typeName); - READ_BOOL_FIELD(for_ordinality, for_ordinality, for_ordinality); - READ_BOOL_FIELD(is_not_null, is_not_null, is_not_null); - READ_NODE_PTR_FIELD(colexpr, colexpr, colexpr); - READ_NODE_PTR_FIELD(coldefexpr, coldefexpr, coldefexpr); - READ_INT_FIELD(location, location, location); - return node; -} - -static TypeName * -_readTypeName(OUT_TYPE(TypeName, TypeName) msg) -{ - TypeName *node = makeNode(TypeName); - READ_LIST_FIELD(names, names, names); - READ_UINT_FIELD(type_oid, typeOid, typeOid); - READ_BOOL_FIELD(setof, setof, setof); - READ_BOOL_FIELD(pct_type, pct_type, pct_type); - READ_LIST_FIELD(typmods, typmods, typmods); - READ_INT_FIELD(typemod, typemod, typemod); - READ_LIST_FIELD(array_bounds, arrayBounds, arrayBounds); - READ_INT_FIELD(location, location, location); - return node; -} - -static ColumnDef * -_readColumnDef(OUT_TYPE(ColumnDef, ColumnDef) msg) -{ - ColumnDef *node = makeNode(ColumnDef); - READ_STRING_FIELD(colname, colname, colname); - READ_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, typeName, typeName); - READ_STRING_FIELD(compression, compression, compression); - READ_INT_FIELD(inhcount, inhcount, inhcount); - READ_BOOL_FIELD(is_local, is_local, is_local); - READ_BOOL_FIELD(is_not_null, is_not_null, is_not_null); - READ_BOOL_FIELD(is_from_type, is_from_type, is_from_type); - READ_CHAR_FIELD(storage, storage, storage); - READ_NODE_PTR_FIELD(raw_default, raw_default, raw_default); - READ_NODE_PTR_FIELD(cooked_default, cooked_default, cooked_default); - READ_CHAR_FIELD(identity, identity, identity); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, identity_sequence, identitySequence, identitySequence); - READ_CHAR_FIELD(generated, generated, generated); - READ_SPECIFIC_NODE_PTR_FIELD(CollateClause, collate_clause, coll_clause, collClause, collClause); - READ_UINT_FIELD(coll_oid, collOid, collOid); - READ_LIST_FIELD(constraints, constraints, constraints); - READ_LIST_FIELD(fdwoptions, fdwoptions, fdwoptions); - READ_INT_FIELD(location, location, location); - return node; -} - -static IndexElem * -_readIndexElem(OUT_TYPE(IndexElem, IndexElem) msg) -{ - IndexElem *node = makeNode(IndexElem); - READ_STRING_FIELD(name, name, name); - READ_NODE_PTR_FIELD(expr, expr, expr); - READ_STRING_FIELD(indexcolname, indexcolname, indexcolname); - READ_LIST_FIELD(collation, collation, collation); - READ_LIST_FIELD(opclass, opclass, opclass); - READ_LIST_FIELD(opclassopts, opclassopts, opclassopts); - READ_ENUM_FIELD(SortByDir, ordering, ordering, ordering); - READ_ENUM_FIELD(SortByNulls, nulls_ordering, nulls_ordering, nulls_ordering); - return node; -} - -static StatsElem * -_readStatsElem(OUT_TYPE(StatsElem, StatsElem) msg) -{ - StatsElem *node = makeNode(StatsElem); - READ_STRING_FIELD(name, name, name); - READ_NODE_PTR_FIELD(expr, expr, expr); - return node; -} - -static Constraint * -_readConstraint(OUT_TYPE(Constraint, Constraint) msg) -{ - Constraint *node = makeNode(Constraint); - READ_ENUM_FIELD(ConstrType, contype, contype, contype); - READ_STRING_FIELD(conname, conname, conname); - READ_BOOL_FIELD(deferrable, deferrable, deferrable); - READ_BOOL_FIELD(initdeferred, initdeferred, initdeferred); - READ_INT_FIELD(location, location, location); - READ_BOOL_FIELD(is_no_inherit, is_no_inherit, is_no_inherit); - READ_NODE_PTR_FIELD(raw_expr, raw_expr, raw_expr); - READ_STRING_FIELD(cooked_expr, cooked_expr, cooked_expr); - READ_CHAR_FIELD(generated_when, generated_when, generated_when); - READ_BOOL_FIELD(nulls_not_distinct, nulls_not_distinct, nulls_not_distinct); - READ_LIST_FIELD(keys, keys, keys); - READ_LIST_FIELD(including, including, including); - READ_LIST_FIELD(exclusions, exclusions, exclusions); - READ_LIST_FIELD(options, options, options); - READ_STRING_FIELD(indexname, indexname, indexname); - READ_STRING_FIELD(indexspace, indexspace, indexspace); - READ_BOOL_FIELD(reset_default_tblspc, reset_default_tblspc, reset_default_tblspc); - READ_STRING_FIELD(access_method, access_method, access_method); - READ_NODE_PTR_FIELD(where_clause, where_clause, where_clause); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, pktable, pktable, pktable); - READ_LIST_FIELD(fk_attrs, fk_attrs, fk_attrs); - READ_LIST_FIELD(pk_attrs, pk_attrs, pk_attrs); - READ_CHAR_FIELD(fk_matchtype, fk_matchtype, fk_matchtype); - READ_CHAR_FIELD(fk_upd_action, fk_upd_action, fk_upd_action); - READ_CHAR_FIELD(fk_del_action, fk_del_action, fk_del_action); - READ_LIST_FIELD(fk_del_set_cols, fk_del_set_cols, fk_del_set_cols); - READ_LIST_FIELD(old_conpfeqop, old_conpfeqop, old_conpfeqop); - READ_UINT_FIELD(old_pktable_oid, old_pktable_oid, old_pktable_oid); - READ_BOOL_FIELD(skip_validation, skip_validation, skip_validation); - READ_BOOL_FIELD(initially_valid, initially_valid, initially_valid); - return node; -} - -static DefElem * -_readDefElem(OUT_TYPE(DefElem, DefElem) msg) -{ - DefElem *node = makeNode(DefElem); - READ_STRING_FIELD(defnamespace, defnamespace, defnamespace); - READ_STRING_FIELD(defname, defname, defname); - READ_NODE_PTR_FIELD(arg, arg, arg); - READ_ENUM_FIELD(DefElemAction, defaction, defaction, defaction); - READ_INT_FIELD(location, location, location); - return node; -} - -static RangeTblEntry * -_readRangeTblEntry(OUT_TYPE(RangeTblEntry, RangeTblEntry) msg) -{ - RangeTblEntry *node = makeNode(RangeTblEntry); - READ_ENUM_FIELD(RTEKind, rtekind, rtekind, rtekind); - READ_UINT_FIELD(relid, relid, relid); - READ_CHAR_FIELD(relkind, relkind, relkind); - READ_INT_FIELD(rellockmode, rellockmode, rellockmode); - READ_SPECIFIC_NODE_PTR_FIELD(TableSampleClause, table_sample_clause, tablesample, tablesample, tablesample); - READ_SPECIFIC_NODE_PTR_FIELD(Query, query, subquery, subquery, subquery); - READ_BOOL_FIELD(security_barrier, security_barrier, security_barrier); - READ_ENUM_FIELD(JoinType, jointype, jointype, jointype); - READ_INT_FIELD(joinmergedcols, joinmergedcols, joinmergedcols); - READ_LIST_FIELD(joinaliasvars, joinaliasvars, joinaliasvars); - READ_LIST_FIELD(joinleftcols, joinleftcols, joinleftcols); - READ_LIST_FIELD(joinrightcols, joinrightcols, joinrightcols); - READ_SPECIFIC_NODE_PTR_FIELD(Alias, alias, join_using_alias, join_using_alias, join_using_alias); - READ_LIST_FIELD(functions, functions, functions); - READ_BOOL_FIELD(funcordinality, funcordinality, funcordinality); - READ_SPECIFIC_NODE_PTR_FIELD(TableFunc, table_func, tablefunc, tablefunc, tablefunc); - READ_LIST_FIELD(values_lists, values_lists, values_lists); - READ_STRING_FIELD(ctename, ctename, ctename); - READ_UINT_FIELD(ctelevelsup, ctelevelsup, ctelevelsup); - READ_BOOL_FIELD(self_reference, self_reference, self_reference); - READ_LIST_FIELD(coltypes, coltypes, coltypes); - READ_LIST_FIELD(coltypmods, coltypmods, coltypmods); - READ_LIST_FIELD(colcollations, colcollations, colcollations); - READ_STRING_FIELD(enrname, enrname, enrname); - READ_FLOAT_FIELD(enrtuples, enrtuples, enrtuples); - READ_SPECIFIC_NODE_PTR_FIELD(Alias, alias, alias, alias, alias); - READ_SPECIFIC_NODE_PTR_FIELD(Alias, alias, eref, eref, eref); - READ_BOOL_FIELD(lateral, lateral, lateral); - READ_BOOL_FIELD(inh, inh, inh); - READ_BOOL_FIELD(in_from_cl, inFromCl, inFromCl); - READ_UINT_FIELD(required_perms, requiredPerms, requiredPerms); - READ_UINT_FIELD(check_as_user, checkAsUser, checkAsUser); - READ_BITMAPSET_FIELD(selected_cols, selectedCols, selectedCols); - READ_BITMAPSET_FIELD(inserted_cols, insertedCols, insertedCols); - READ_BITMAPSET_FIELD(updated_cols, updatedCols, updatedCols); - READ_BITMAPSET_FIELD(extra_updated_cols, extraUpdatedCols, extraUpdatedCols); - READ_LIST_FIELD(security_quals, securityQuals, securityQuals); - return node; -} - -static RangeTblFunction * -_readRangeTblFunction(OUT_TYPE(RangeTblFunction, RangeTblFunction) msg) -{ - RangeTblFunction *node = makeNode(RangeTblFunction); - READ_NODE_PTR_FIELD(funcexpr, funcexpr, funcexpr); - READ_INT_FIELD(funccolcount, funccolcount, funccolcount); - READ_LIST_FIELD(funccolnames, funccolnames, funccolnames); - READ_LIST_FIELD(funccoltypes, funccoltypes, funccoltypes); - READ_LIST_FIELD(funccoltypmods, funccoltypmods, funccoltypmods); - READ_LIST_FIELD(funccolcollations, funccolcollations, funccolcollations); - READ_BITMAPSET_FIELD(funcparams, funcparams, funcparams); - return node; -} - -static TableSampleClause * -_readTableSampleClause(OUT_TYPE(TableSampleClause, TableSampleClause) msg) -{ - TableSampleClause *node = makeNode(TableSampleClause); - READ_UINT_FIELD(tsmhandler, tsmhandler, tsmhandler); - READ_LIST_FIELD(args, args, args); - READ_EXPR_PTR_FIELD(repeatable, repeatable, repeatable); - return node; -} - -static WithCheckOption * -_readWithCheckOption(OUT_TYPE(WithCheckOption, WithCheckOption) msg) -{ - WithCheckOption *node = makeNode(WithCheckOption); - READ_ENUM_FIELD(WCOKind, kind, kind, kind); - READ_STRING_FIELD(relname, relname, relname); - READ_STRING_FIELD(polname, polname, polname); - READ_NODE_PTR_FIELD(qual, qual, qual); - READ_BOOL_FIELD(cascaded, cascaded, cascaded); - return node; -} - -static SortGroupClause * -_readSortGroupClause(OUT_TYPE(SortGroupClause, SortGroupClause) msg) -{ - SortGroupClause *node = makeNode(SortGroupClause); - READ_UINT_FIELD(tle_sort_group_ref, tleSortGroupRef, tleSortGroupRef); - READ_UINT_FIELD(eqop, eqop, eqop); - READ_UINT_FIELD(sortop, sortop, sortop); - READ_BOOL_FIELD(nulls_first, nulls_first, nulls_first); - READ_BOOL_FIELD(hashable, hashable, hashable); - return node; -} - -static GroupingSet * -_readGroupingSet(OUT_TYPE(GroupingSet, GroupingSet) msg) -{ - GroupingSet *node = makeNode(GroupingSet); - READ_ENUM_FIELD(GroupingSetKind, kind, kind, kind); - READ_LIST_FIELD(content, content, content); - READ_INT_FIELD(location, location, location); - return node; -} - -static WindowClause * -_readWindowClause(OUT_TYPE(WindowClause, WindowClause) msg) -{ - WindowClause *node = makeNode(WindowClause); - READ_STRING_FIELD(name, name, name); - READ_STRING_FIELD(refname, refname, refname); - READ_LIST_FIELD(partition_clause, partitionClause, partitionClause); - READ_LIST_FIELD(order_clause, orderClause, orderClause); - READ_INT_FIELD(frame_options, frameOptions, frameOptions); - READ_NODE_PTR_FIELD(start_offset, startOffset, startOffset); - READ_NODE_PTR_FIELD(end_offset, endOffset, endOffset); - READ_LIST_FIELD(run_condition, runCondition, runCondition); - READ_UINT_FIELD(start_in_range_func, startInRangeFunc, startInRangeFunc); - READ_UINT_FIELD(end_in_range_func, endInRangeFunc, endInRangeFunc); - READ_UINT_FIELD(in_range_coll, inRangeColl, inRangeColl); - READ_BOOL_FIELD(in_range_asc, inRangeAsc, inRangeAsc); - READ_BOOL_FIELD(in_range_nulls_first, inRangeNullsFirst, inRangeNullsFirst); - READ_UINT_FIELD(winref, winref, winref); - READ_BOOL_FIELD(copied_order, copiedOrder, copiedOrder); - return node; -} - -static ObjectWithArgs * -_readObjectWithArgs(OUT_TYPE(ObjectWithArgs, ObjectWithArgs) msg) -{ - ObjectWithArgs *node = makeNode(ObjectWithArgs); - READ_LIST_FIELD(objname, objname, objname); - READ_LIST_FIELD(objargs, objargs, objargs); - READ_LIST_FIELD(objfuncargs, objfuncargs, objfuncargs); - READ_BOOL_FIELD(args_unspecified, args_unspecified, args_unspecified); - return node; -} - -static AccessPriv * -_readAccessPriv(OUT_TYPE(AccessPriv, AccessPriv) msg) -{ - AccessPriv *node = makeNode(AccessPriv); - READ_STRING_FIELD(priv_name, priv_name, priv_name); - READ_LIST_FIELD(cols, cols, cols); - return node; -} - -static CreateOpClassItem * -_readCreateOpClassItem(OUT_TYPE(CreateOpClassItem, CreateOpClassItem) msg) -{ - CreateOpClassItem *node = makeNode(CreateOpClassItem); - READ_INT_FIELD(itemtype, itemtype, itemtype); - READ_SPECIFIC_NODE_PTR_FIELD(ObjectWithArgs, object_with_args, name, name, name); - READ_INT_FIELD(number, number, number); - READ_LIST_FIELD(order_family, order_family, order_family); - READ_LIST_FIELD(class_args, class_args, class_args); - READ_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, storedtype, storedtype, storedtype); - return node; -} - -static TableLikeClause * -_readTableLikeClause(OUT_TYPE(TableLikeClause, TableLikeClause) msg) -{ - TableLikeClause *node = makeNode(TableLikeClause); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - READ_UINT_FIELD(options, options, options); - READ_UINT_FIELD(relation_oid, relationOid, relationOid); - return node; -} - -static FunctionParameter * -_readFunctionParameter(OUT_TYPE(FunctionParameter, FunctionParameter) msg) -{ - FunctionParameter *node = makeNode(FunctionParameter); - READ_STRING_FIELD(name, name, name); - READ_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, arg_type, argType, argType); - READ_ENUM_FIELD(FunctionParameterMode, mode, mode, mode); - READ_NODE_PTR_FIELD(defexpr, defexpr, defexpr); - return node; -} - -static LockingClause * -_readLockingClause(OUT_TYPE(LockingClause, LockingClause) msg) -{ - LockingClause *node = makeNode(LockingClause); - READ_LIST_FIELD(locked_rels, lockedRels, lockedRels); - READ_ENUM_FIELD(LockClauseStrength, strength, strength, strength); - READ_ENUM_FIELD(LockWaitPolicy, wait_policy, waitPolicy, waitPolicy); - return node; -} - -static RowMarkClause * -_readRowMarkClause(OUT_TYPE(RowMarkClause, RowMarkClause) msg) -{ - RowMarkClause *node = makeNode(RowMarkClause); - READ_UINT_FIELD(rti, rti, rti); - READ_ENUM_FIELD(LockClauseStrength, strength, strength, strength); - READ_ENUM_FIELD(LockWaitPolicy, wait_policy, waitPolicy, waitPolicy); - READ_BOOL_FIELD(pushed_down, pushedDown, pushedDown); - return node; -} - -static XmlSerialize * -_readXmlSerialize(OUT_TYPE(XmlSerialize, XmlSerialize) msg) -{ - XmlSerialize *node = makeNode(XmlSerialize); - READ_ENUM_FIELD(XmlOptionType, xmloption, xmloption, xmloption); - READ_NODE_PTR_FIELD(expr, expr, expr); - READ_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, typeName, typeName); - READ_INT_FIELD(location, location, location); - return node; -} - -static WithClause * -_readWithClause(OUT_TYPE(WithClause, WithClause) msg) -{ - WithClause *node = makeNode(WithClause); - READ_LIST_FIELD(ctes, ctes, ctes); - READ_BOOL_FIELD(recursive, recursive, recursive); - READ_INT_FIELD(location, location, location); - return node; -} - -static InferClause * -_readInferClause(OUT_TYPE(InferClause, InferClause) msg) -{ - InferClause *node = makeNode(InferClause); - READ_LIST_FIELD(index_elems, indexElems, indexElems); - READ_NODE_PTR_FIELD(where_clause, whereClause, whereClause); - READ_STRING_FIELD(conname, conname, conname); - READ_INT_FIELD(location, location, location); - return node; -} - -static OnConflictClause * -_readOnConflictClause(OUT_TYPE(OnConflictClause, OnConflictClause) msg) -{ - OnConflictClause *node = makeNode(OnConflictClause); - READ_ENUM_FIELD(OnConflictAction, action, action, action); - READ_SPECIFIC_NODE_PTR_FIELD(InferClause, infer_clause, infer, infer, infer); - READ_LIST_FIELD(target_list, targetList, targetList); - READ_NODE_PTR_FIELD(where_clause, whereClause, whereClause); - READ_INT_FIELD(location, location, location); - return node; -} - -static CTESearchClause * -_readCTESearchClause(OUT_TYPE(CTESearchClause, CTESearchClause) msg) -{ - CTESearchClause *node = makeNode(CTESearchClause); - READ_LIST_FIELD(search_col_list, search_col_list, search_col_list); - READ_BOOL_FIELD(search_breadth_first, search_breadth_first, search_breadth_first); - READ_STRING_FIELD(search_seq_column, search_seq_column, search_seq_column); - READ_INT_FIELD(location, location, location); - return node; -} - -static CTECycleClause * -_readCTECycleClause(OUT_TYPE(CTECycleClause, CTECycleClause) msg) -{ - CTECycleClause *node = makeNode(CTECycleClause); - READ_LIST_FIELD(cycle_col_list, cycle_col_list, cycle_col_list); - READ_STRING_FIELD(cycle_mark_column, cycle_mark_column, cycle_mark_column); - READ_NODE_PTR_FIELD(cycle_mark_value, cycle_mark_value, cycle_mark_value); - READ_NODE_PTR_FIELD(cycle_mark_default, cycle_mark_default, cycle_mark_default); - READ_STRING_FIELD(cycle_path_column, cycle_path_column, cycle_path_column); - READ_INT_FIELD(location, location, location); - READ_UINT_FIELD(cycle_mark_type, cycle_mark_type, cycle_mark_type); - READ_INT_FIELD(cycle_mark_typmod, cycle_mark_typmod, cycle_mark_typmod); - READ_UINT_FIELD(cycle_mark_collation, cycle_mark_collation, cycle_mark_collation); - READ_UINT_FIELD(cycle_mark_neop, cycle_mark_neop, cycle_mark_neop); - return node; -} - -static CommonTableExpr * -_readCommonTableExpr(OUT_TYPE(CommonTableExpr, CommonTableExpr) msg) -{ - CommonTableExpr *node = makeNode(CommonTableExpr); - READ_STRING_FIELD(ctename, ctename, ctename); - READ_LIST_FIELD(aliascolnames, aliascolnames, aliascolnames); - READ_ENUM_FIELD(CTEMaterialize, ctematerialized, ctematerialized, ctematerialized); - READ_NODE_PTR_FIELD(ctequery, ctequery, ctequery); - READ_SPECIFIC_NODE_PTR_FIELD(CTESearchClause, ctesearch_clause, search_clause, search_clause, search_clause); - READ_SPECIFIC_NODE_PTR_FIELD(CTECycleClause, ctecycle_clause, cycle_clause, cycle_clause, cycle_clause); - READ_INT_FIELD(location, location, location); - READ_BOOL_FIELD(cterecursive, cterecursive, cterecursive); - READ_INT_FIELD(cterefcount, cterefcount, cterefcount); - READ_LIST_FIELD(ctecolnames, ctecolnames, ctecolnames); - READ_LIST_FIELD(ctecoltypes, ctecoltypes, ctecoltypes); - READ_LIST_FIELD(ctecoltypmods, ctecoltypmods, ctecoltypmods); - READ_LIST_FIELD(ctecolcollations, ctecolcollations, ctecolcollations); - return node; -} - -static MergeWhenClause * -_readMergeWhenClause(OUT_TYPE(MergeWhenClause, MergeWhenClause) msg) -{ - MergeWhenClause *node = makeNode(MergeWhenClause); - READ_BOOL_FIELD(matched, matched, matched); - READ_ENUM_FIELD(CmdType, command_type, commandType, commandType); - READ_ENUM_FIELD(OverridingKind, override, override, override); - READ_NODE_PTR_FIELD(condition, condition, condition); - READ_LIST_FIELD(target_list, targetList, targetList); - READ_LIST_FIELD(values, values, values); - return node; -} - -static RoleSpec * -_readRoleSpec(OUT_TYPE(RoleSpec, RoleSpec) msg) -{ - RoleSpec *node = makeNode(RoleSpec); - READ_ENUM_FIELD(RoleSpecType, roletype, roletype, roletype); - READ_STRING_FIELD(rolename, rolename, rolename); - READ_INT_FIELD(location, location, location); - return node; -} - -static TriggerTransition * -_readTriggerTransition(OUT_TYPE(TriggerTransition, TriggerTransition) msg) -{ - TriggerTransition *node = makeNode(TriggerTransition); - READ_STRING_FIELD(name, name, name); - READ_BOOL_FIELD(is_new, isNew, isNew); - READ_BOOL_FIELD(is_table, isTable, isTable); - return node; -} - -static PartitionElem * -_readPartitionElem(OUT_TYPE(PartitionElem, PartitionElem) msg) -{ - PartitionElem *node = makeNode(PartitionElem); - READ_STRING_FIELD(name, name, name); - READ_NODE_PTR_FIELD(expr, expr, expr); - READ_LIST_FIELD(collation, collation, collation); - READ_LIST_FIELD(opclass, opclass, opclass); - READ_INT_FIELD(location, location, location); - return node; -} - -static PartitionSpec * -_readPartitionSpec(OUT_TYPE(PartitionSpec, PartitionSpec) msg) -{ - PartitionSpec *node = makeNode(PartitionSpec); - READ_STRING_FIELD(strategy, strategy, strategy); - READ_LIST_FIELD(part_params, partParams, partParams); - READ_INT_FIELD(location, location, location); - return node; -} - -static PartitionBoundSpec * -_readPartitionBoundSpec(OUT_TYPE(PartitionBoundSpec, PartitionBoundSpec) msg) -{ - PartitionBoundSpec *node = makeNode(PartitionBoundSpec); - READ_CHAR_FIELD(strategy, strategy, strategy); - READ_BOOL_FIELD(is_default, is_default, is_default); - READ_INT_FIELD(modulus, modulus, modulus); - READ_INT_FIELD(remainder, remainder, remainder); - READ_LIST_FIELD(listdatums, listdatums, listdatums); - READ_LIST_FIELD(lowerdatums, lowerdatums, lowerdatums); - READ_LIST_FIELD(upperdatums, upperdatums, upperdatums); - READ_INT_FIELD(location, location, location); - return node; -} - -static PartitionRangeDatum * -_readPartitionRangeDatum(OUT_TYPE(PartitionRangeDatum, PartitionRangeDatum) msg) -{ - PartitionRangeDatum *node = makeNode(PartitionRangeDatum); - READ_ENUM_FIELD(PartitionRangeDatumKind, kind, kind, kind); - READ_NODE_PTR_FIELD(value, value, value); - READ_INT_FIELD(location, location, location); - return node; -} - -static PartitionCmd * -_readPartitionCmd(OUT_TYPE(PartitionCmd, PartitionCmd) msg) -{ - PartitionCmd *node = makeNode(PartitionCmd); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, name, name, name); - READ_SPECIFIC_NODE_PTR_FIELD(PartitionBoundSpec, partition_bound_spec, bound, bound, bound); - READ_BOOL_FIELD(concurrent, concurrent, concurrent); - return node; -} - -static VacuumRelation * -_readVacuumRelation(OUT_TYPE(VacuumRelation, VacuumRelation) msg) -{ - VacuumRelation *node = makeNode(VacuumRelation); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - READ_UINT_FIELD(oid, oid, oid); - READ_LIST_FIELD(va_cols, va_cols, va_cols); - return node; -} - -static PublicationObjSpec * -_readPublicationObjSpec(OUT_TYPE(PublicationObjSpec, PublicationObjSpec) msg) -{ - PublicationObjSpec *node = makeNode(PublicationObjSpec); - READ_ENUM_FIELD(PublicationObjSpecType, pubobjtype, pubobjtype, pubobjtype); - READ_STRING_FIELD(name, name, name); - READ_SPECIFIC_NODE_PTR_FIELD(PublicationTable, publication_table, pubtable, pubtable, pubtable); - READ_INT_FIELD(location, location, location); - return node; -} - -static PublicationTable * -_readPublicationTable(OUT_TYPE(PublicationTable, PublicationTable) msg) -{ - PublicationTable *node = makeNode(PublicationTable); - READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation); - READ_NODE_PTR_FIELD(where_clause, whereClause, whereClause); - READ_LIST_FIELD(columns, columns, columns); - return node; -} - -static InlineCodeBlock * -_readInlineCodeBlock(OUT_TYPE(InlineCodeBlock, InlineCodeBlock) msg) -{ - InlineCodeBlock *node = makeNode(InlineCodeBlock); - READ_STRING_FIELD(source_text, source_text, source_text); - READ_UINT_FIELD(lang_oid, langOid, langOid); - READ_BOOL_FIELD(lang_is_trusted, langIsTrusted, langIsTrusted); - READ_BOOL_FIELD(atomic, atomic, atomic); - return node; -} - -static CallContext * -_readCallContext(OUT_TYPE(CallContext, CallContext) msg) -{ - CallContext *node = makeNode(CallContext); - READ_BOOL_FIELD(atomic, atomic, atomic); - return node; -} - diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_trace.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_trace.h deleted file mode 100644 index 8c63222c9..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pg_trace.h +++ /dev/null @@ -1,17 +0,0 @@ -/* ---------- - * pg_trace.h - * - * Definitions for the PostgreSQL tracing framework - * - * Copyright (c) 2006-2022, PostgreSQL Global Development Group - * - * src/include/pg_trace.h - * ---------- - */ - -#ifndef PG_TRACE_H -#define PG_TRACE_H - -#include "utils/probes.h" /* pgrminclude ignore */ - -#endif /* PG_TRACE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pgstat.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pgstat.h deleted file mode 100644 index 7f21a3d05..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pgstat.h +++ /dev/null @@ -1,699 +0,0 @@ -/* ---------- - * pgstat.h - * - * Definitions for the PostgreSQL cumulative statistics system. - * - * Copyright (c) 2001-2022, PostgreSQL Global Development Group - * - * src/include/pgstat.h - * ---------- - */ -#ifndef PGSTAT_H -#define PGSTAT_H - -#include "datatype/timestamp.h" -#include "portability/instr_time.h" -#include "postmaster/pgarch.h" /* for MAX_XFN_CHARS */ -#include "utils/backend_progress.h" /* for backward compatibility */ -#include "utils/backend_status.h" /* for backward compatibility */ -#include "utils/relcache.h" -#include "utils/wait_event.h" /* for backward compatibility */ - - -/* ---------- - * Paths for the statistics files (relative to installation's $PGDATA). - * ---------- - */ -#define PGSTAT_STAT_PERMANENT_DIRECTORY "pg_stat" -#define PGSTAT_STAT_PERMANENT_FILENAME "pg_stat/pgstat.stat" -#define PGSTAT_STAT_PERMANENT_TMPFILE "pg_stat/pgstat.tmp" - -/* Default directory to store temporary statistics data in */ -#define PG_STAT_TMP_DIR "pg_stat_tmp" - -/* The types of statistics entries */ -typedef enum PgStat_Kind -{ - /* use 0 for INVALID, to catch zero-initialized data */ - PGSTAT_KIND_INVALID = 0, - - /* stats for variable-numbered objects */ - PGSTAT_KIND_DATABASE, /* database-wide statistics */ - PGSTAT_KIND_RELATION, /* per-table statistics */ - PGSTAT_KIND_FUNCTION, /* per-function statistics */ - PGSTAT_KIND_REPLSLOT, /* per-slot statistics */ - PGSTAT_KIND_SUBSCRIPTION, /* per-subscription statistics */ - - /* stats for fixed-numbered objects */ - PGSTAT_KIND_ARCHIVER, - PGSTAT_KIND_BGWRITER, - PGSTAT_KIND_CHECKPOINTER, - PGSTAT_KIND_SLRU, - PGSTAT_KIND_WAL, -} PgStat_Kind; - -#define PGSTAT_KIND_FIRST_VALID PGSTAT_KIND_DATABASE -#define PGSTAT_KIND_LAST PGSTAT_KIND_WAL -#define PGSTAT_NUM_KINDS (PGSTAT_KIND_LAST + 1) - -/* Values for track_functions GUC variable --- order is significant! */ -typedef enum TrackFunctionsLevel -{ - TRACK_FUNC_OFF, - TRACK_FUNC_PL, - TRACK_FUNC_ALL -} TrackFunctionsLevel; - -typedef enum PgStat_FetchConsistency -{ - PGSTAT_FETCH_CONSISTENCY_NONE, - PGSTAT_FETCH_CONSISTENCY_CACHE, - PGSTAT_FETCH_CONSISTENCY_SNAPSHOT, -} PgStat_FetchConsistency; - -/* Values to track the cause of session termination */ -typedef enum SessionEndType -{ - DISCONNECT_NOT_YET, /* still active */ - DISCONNECT_NORMAL, - DISCONNECT_CLIENT_EOF, - DISCONNECT_FATAL, - DISCONNECT_KILLED -} SessionEndType; - -/* ---------- - * The data type used for counters. - * ---------- - */ -typedef int64 PgStat_Counter; - - -/* ------------------------------------------------------------ - * Structures kept in backend local memory while accumulating counts - * ------------------------------------------------------------ - */ - -/* ---------- - * PgStat_FunctionCounts The actual per-function counts kept by a backend - * - * This struct should contain only actual event counters, because we memcmp - * it against zeroes to detect whether there are any pending stats. - * - * Note that the time counters are in instr_time format here. We convert to - * microseconds in PgStat_Counter format when flushing out pending statistics. - * ---------- - */ -typedef struct PgStat_FunctionCounts -{ - PgStat_Counter f_numcalls; - instr_time f_total_time; - instr_time f_self_time; -} PgStat_FunctionCounts; - -/* ---------- - * PgStat_BackendFunctionEntry Non-flushed function stats. - * ---------- - */ -typedef struct PgStat_BackendFunctionEntry -{ - PgStat_FunctionCounts f_counts; -} PgStat_BackendFunctionEntry; - -/* - * Working state needed to accumulate per-function-call timing statistics. - */ -typedef struct PgStat_FunctionCallUsage -{ - /* Link to function's hashtable entry (must still be there at exit!) */ - /* NULL means we are not tracking the current function call */ - PgStat_FunctionCounts *fs; - /* Total time previously charged to function, as of function start */ - instr_time save_f_total_time; - /* Backend-wide total time as of function start */ - instr_time save_total; - /* system clock as of function start */ - instr_time f_start; -} PgStat_FunctionCallUsage; - -/* ---------- - * PgStat_BackendSubEntry Non-flushed subscription stats. - * ---------- - */ -typedef struct PgStat_BackendSubEntry -{ - PgStat_Counter apply_error_count; - PgStat_Counter sync_error_count; -} PgStat_BackendSubEntry; - -/* ---------- - * PgStat_TableCounts The actual per-table counts kept by a backend - * - * This struct should contain only actual event counters, because we memcmp - * it against zeroes to detect whether there are any stats updates to apply. - * It is a component of PgStat_TableStatus (within-backend state). - * - * Note: for a table, tuples_returned is the number of tuples successfully - * fetched by heap_getnext, while tuples_fetched is the number of tuples - * successfully fetched by heap_fetch under the control of bitmap indexscans. - * For an index, tuples_returned is the number of index entries returned by - * the index AM, while tuples_fetched is the number of tuples successfully - * fetched by heap_fetch under the control of simple indexscans for this index. - * - * tuples_inserted/updated/deleted/hot_updated count attempted actions, - * regardless of whether the transaction committed. delta_live_tuples, - * delta_dead_tuples, and changed_tuples are set depending on commit or abort. - * Note that delta_live_tuples and delta_dead_tuples can be negative! - * ---------- - */ -typedef struct PgStat_TableCounts -{ - PgStat_Counter t_numscans; - - PgStat_Counter t_tuples_returned; - PgStat_Counter t_tuples_fetched; - - PgStat_Counter t_tuples_inserted; - PgStat_Counter t_tuples_updated; - PgStat_Counter t_tuples_deleted; - PgStat_Counter t_tuples_hot_updated; - bool t_truncdropped; - - PgStat_Counter t_delta_live_tuples; - PgStat_Counter t_delta_dead_tuples; - PgStat_Counter t_changed_tuples; - - PgStat_Counter t_blocks_fetched; - PgStat_Counter t_blocks_hit; -} PgStat_TableCounts; - -/* ---------- - * PgStat_TableStatus Per-table status within a backend - * - * Many of the event counters are nontransactional, ie, we count events - * in committed and aborted transactions alike. For these, we just count - * directly in the PgStat_TableStatus. However, delta_live_tuples, - * delta_dead_tuples, and changed_tuples must be derived from event counts - * with awareness of whether the transaction or subtransaction committed or - * aborted. Hence, we also keep a stack of per-(sub)transaction status - * records for every table modified in the current transaction. At commit - * or abort, we propagate tuples_inserted/updated/deleted up to the - * parent subtransaction level, or out to the parent PgStat_TableStatus, - * as appropriate. - * ---------- - */ -typedef struct PgStat_TableStatus -{ - Oid t_id; /* table's OID */ - bool t_shared; /* is it a shared catalog? */ - struct PgStat_TableXactStatus *trans; /* lowest subxact's counts */ - PgStat_TableCounts t_counts; /* event counts to be sent */ - Relation relation; /* rel that is using this entry */ -} PgStat_TableStatus; - -/* ---------- - * PgStat_TableXactStatus Per-table, per-subtransaction status - * ---------- - */ -typedef struct PgStat_TableXactStatus -{ - PgStat_Counter tuples_inserted; /* tuples inserted in (sub)xact */ - PgStat_Counter tuples_updated; /* tuples updated in (sub)xact */ - PgStat_Counter tuples_deleted; /* tuples deleted in (sub)xact */ - bool truncdropped; /* relation truncated/dropped in this - * (sub)xact */ - /* tuples i/u/d prior to truncate/drop */ - PgStat_Counter inserted_pre_truncdrop; - PgStat_Counter updated_pre_truncdrop; - PgStat_Counter deleted_pre_truncdrop; - int nest_level; /* subtransaction nest level */ - /* links to other structs for same relation: */ - struct PgStat_TableXactStatus *upper; /* next higher subxact if any */ - PgStat_TableStatus *parent; /* per-table status */ - /* structs of same subxact level are linked here: */ - struct PgStat_TableXactStatus *next; /* next of same subxact */ -} PgStat_TableXactStatus; - - -/* ------------------------------------------------------------ - * Data structures on disk and in shared memory follow - * - * PGSTAT_FILE_FORMAT_ID should be changed whenever any of these - * data structures change. - * ------------------------------------------------------------ - */ - -#define PGSTAT_FILE_FORMAT_ID 0x01A5BCA7 - -typedef struct PgStat_ArchiverStats -{ - PgStat_Counter archived_count; /* archival successes */ - char last_archived_wal[MAX_XFN_CHARS + 1]; /* last WAL file - * archived */ - TimestampTz last_archived_timestamp; /* last archival success time */ - PgStat_Counter failed_count; /* failed archival attempts */ - char last_failed_wal[MAX_XFN_CHARS + 1]; /* WAL file involved in - * last failure */ - TimestampTz last_failed_timestamp; /* last archival failure time */ - TimestampTz stat_reset_timestamp; -} PgStat_ArchiverStats; - -typedef struct PgStat_BgWriterStats -{ - PgStat_Counter buf_written_clean; - PgStat_Counter maxwritten_clean; - PgStat_Counter buf_alloc; - TimestampTz stat_reset_timestamp; -} PgStat_BgWriterStats; - -typedef struct PgStat_CheckpointerStats -{ - PgStat_Counter timed_checkpoints; - PgStat_Counter requested_checkpoints; - PgStat_Counter checkpoint_write_time; /* times in milliseconds */ - PgStat_Counter checkpoint_sync_time; - PgStat_Counter buf_written_checkpoints; - PgStat_Counter buf_written_backend; - PgStat_Counter buf_fsync_backend; -} PgStat_CheckpointerStats; - -typedef struct PgStat_StatDBEntry -{ - PgStat_Counter n_xact_commit; - PgStat_Counter n_xact_rollback; - PgStat_Counter n_blocks_fetched; - PgStat_Counter n_blocks_hit; - PgStat_Counter n_tuples_returned; - PgStat_Counter n_tuples_fetched; - PgStat_Counter n_tuples_inserted; - PgStat_Counter n_tuples_updated; - PgStat_Counter n_tuples_deleted; - TimestampTz last_autovac_time; - PgStat_Counter n_conflict_tablespace; - PgStat_Counter n_conflict_lock; - PgStat_Counter n_conflict_snapshot; - PgStat_Counter n_conflict_bufferpin; - PgStat_Counter n_conflict_startup_deadlock; - PgStat_Counter n_temp_files; - PgStat_Counter n_temp_bytes; - PgStat_Counter n_deadlocks; - PgStat_Counter n_checksum_failures; - TimestampTz last_checksum_failure; - PgStat_Counter n_block_read_time; /* times in microseconds */ - PgStat_Counter n_block_write_time; - PgStat_Counter n_sessions; - PgStat_Counter total_session_time; - PgStat_Counter total_active_time; - PgStat_Counter total_idle_in_xact_time; - PgStat_Counter n_sessions_abandoned; - PgStat_Counter n_sessions_fatal; - PgStat_Counter n_sessions_killed; - - TimestampTz stat_reset_timestamp; -} PgStat_StatDBEntry; - -typedef struct PgStat_StatFuncEntry -{ - PgStat_Counter f_numcalls; - - PgStat_Counter f_total_time; /* times in microseconds */ - PgStat_Counter f_self_time; -} PgStat_StatFuncEntry; - -typedef struct PgStat_StatReplSlotEntry -{ - /* - * In PG 15 this field is unused, but not removed, to avoid changing - * PGSTAT_FILE_FORMAT_ID. - */ - NameData slotname_unused; - PgStat_Counter spill_txns; - PgStat_Counter spill_count; - PgStat_Counter spill_bytes; - PgStat_Counter stream_txns; - PgStat_Counter stream_count; - PgStat_Counter stream_bytes; - PgStat_Counter total_txns; - PgStat_Counter total_bytes; - TimestampTz stat_reset_timestamp; -} PgStat_StatReplSlotEntry; - -typedef struct PgStat_SLRUStats -{ - PgStat_Counter blocks_zeroed; - PgStat_Counter blocks_hit; - PgStat_Counter blocks_read; - PgStat_Counter blocks_written; - PgStat_Counter blocks_exists; - PgStat_Counter flush; - PgStat_Counter truncate; - TimestampTz stat_reset_timestamp; -} PgStat_SLRUStats; - -typedef struct PgStat_StatSubEntry -{ - PgStat_Counter apply_error_count; - PgStat_Counter sync_error_count; - TimestampTz stat_reset_timestamp; -} PgStat_StatSubEntry; - -typedef struct PgStat_StatTabEntry -{ - PgStat_Counter numscans; - - PgStat_Counter tuples_returned; - PgStat_Counter tuples_fetched; - - PgStat_Counter tuples_inserted; - PgStat_Counter tuples_updated; - PgStat_Counter tuples_deleted; - PgStat_Counter tuples_hot_updated; - - PgStat_Counter n_live_tuples; - PgStat_Counter n_dead_tuples; - PgStat_Counter changes_since_analyze; - PgStat_Counter inserts_since_vacuum; - - PgStat_Counter blocks_fetched; - PgStat_Counter blocks_hit; - - TimestampTz vacuum_timestamp; /* user initiated vacuum */ - PgStat_Counter vacuum_count; - TimestampTz autovac_vacuum_timestamp; /* autovacuum initiated */ - PgStat_Counter autovac_vacuum_count; - TimestampTz analyze_timestamp; /* user initiated */ - PgStat_Counter analyze_count; - TimestampTz autovac_analyze_timestamp; /* autovacuum initiated */ - PgStat_Counter autovac_analyze_count; -} PgStat_StatTabEntry; - -typedef struct PgStat_WalStats -{ - PgStat_Counter wal_records; - PgStat_Counter wal_fpi; - uint64 wal_bytes; - PgStat_Counter wal_buffers_full; - PgStat_Counter wal_write; - PgStat_Counter wal_sync; - PgStat_Counter wal_write_time; - PgStat_Counter wal_sync_time; - TimestampTz stat_reset_timestamp; -} PgStat_WalStats; - - -/* - * Functions in pgstat.c - */ - -/* functions called from postmaster */ -extern Size StatsShmemSize(void); -extern void StatsShmemInit(void); - -/* Functions called during server startup / shutdown */ -extern void pgstat_restore_stats(void); -extern void pgstat_discard_stats(void); -extern void pgstat_before_server_shutdown(int code, Datum arg); - -/* Functions for backend initialization */ -extern void pgstat_initialize(void); - -/* Functions called from backends */ -extern long pgstat_report_stat(bool force); -extern void pgstat_force_next_flush(void); - -extern void pgstat_reset_counters(void); -extern void pgstat_reset(PgStat_Kind kind, Oid dboid, Oid objectid); -extern void pgstat_reset_of_kind(PgStat_Kind kind); - -/* stats accessors */ -extern void pgstat_clear_snapshot(void); -extern TimestampTz pgstat_get_stat_snapshot_timestamp(bool *have_snapshot); - -/* helpers */ -extern PgStat_Kind pgstat_get_kind_from_str(char *kind_str); -extern bool pgstat_have_entry(PgStat_Kind kind, Oid dboid, Oid objoid); - - -/* - * Functions in pgstat_archiver.c - */ - -extern void pgstat_report_archiver(const char *xlog, bool failed); -extern PgStat_ArchiverStats *pgstat_fetch_stat_archiver(void); - - -/* - * Functions in pgstat_bgwriter.c - */ - -extern void pgstat_report_bgwriter(void); -extern PgStat_BgWriterStats *pgstat_fetch_stat_bgwriter(void); - - -/* - * Functions in pgstat_checkpointer.c - */ - -extern void pgstat_report_checkpointer(void); -extern PgStat_CheckpointerStats *pgstat_fetch_stat_checkpointer(void); - - -/* - * Functions in pgstat_database.c - */ - -extern void pgstat_drop_database(Oid databaseid); -extern void pgstat_report_autovac(Oid dboid); -extern void pgstat_report_recovery_conflict(int reason); -extern void pgstat_report_deadlock(void); -extern void pgstat_report_checksum_failures_in_db(Oid dboid, int failurecount); -extern void pgstat_report_checksum_failure(void); -extern void pgstat_report_connect(Oid dboid); - -#define pgstat_count_buffer_read_time(n) \ - (pgStatBlockReadTime += (n)) -#define pgstat_count_buffer_write_time(n) \ - (pgStatBlockWriteTime += (n)) -#define pgstat_count_conn_active_time(n) \ - (pgStatActiveTime += (n)) -#define pgstat_count_conn_txn_idle_time(n) \ - (pgStatTransactionIdleTime += (n)) - -extern PgStat_StatDBEntry *pgstat_fetch_stat_dbentry(Oid dbid); - -/* - * Functions in pgstat_function.c - */ - -extern void pgstat_create_function(Oid proid); -extern void pgstat_drop_function(Oid proid); - -struct FunctionCallInfoBaseData; -extern void pgstat_init_function_usage(struct FunctionCallInfoBaseData *fcinfo, - PgStat_FunctionCallUsage *fcu); -extern void pgstat_end_function_usage(PgStat_FunctionCallUsage *fcu, - bool finalize); - -extern PgStat_StatFuncEntry *pgstat_fetch_stat_funcentry(Oid funcid); -extern PgStat_BackendFunctionEntry *find_funcstat_entry(Oid func_id); - - -/* - * Functions in pgstat_relation.c - */ - -extern void pgstat_create_relation(Relation rel); -extern void pgstat_drop_relation(Relation rel); -extern void pgstat_copy_relation_stats(Relation dstrel, Relation srcrel); - -extern void pgstat_init_relation(Relation rel); -extern void pgstat_assoc_relation(Relation rel); -extern void pgstat_unlink_relation(Relation rel); - -extern void pgstat_report_vacuum(Oid tableoid, bool shared, - PgStat_Counter livetuples, PgStat_Counter deadtuples); -extern void pgstat_report_analyze(Relation rel, - PgStat_Counter livetuples, PgStat_Counter deadtuples, - bool resetcounter); - -/* - * If stats are enabled, but pending data hasn't been prepared yet, call - * pgstat_assoc_relation() to do so. See its comment for why this is done - * separately from pgstat_init_relation(). - */ -#define pgstat_should_count_relation(rel) \ - (likely((rel)->pgstat_info != NULL) ? true : \ - ((rel)->pgstat_enabled ? pgstat_assoc_relation(rel), true : false)) - -/* nontransactional event counts are simple enough to inline */ - -#define pgstat_count_heap_scan(rel) \ - do { \ - if (pgstat_should_count_relation(rel)) \ - (rel)->pgstat_info->t_counts.t_numscans++; \ - } while (0) -#define pgstat_count_heap_getnext(rel) \ - do { \ - if (pgstat_should_count_relation(rel)) \ - (rel)->pgstat_info->t_counts.t_tuples_returned++; \ - } while (0) -#define pgstat_count_heap_fetch(rel) \ - do { \ - if (pgstat_should_count_relation(rel)) \ - (rel)->pgstat_info->t_counts.t_tuples_fetched++; \ - } while (0) -#define pgstat_count_index_scan(rel) \ - do { \ - if (pgstat_should_count_relation(rel)) \ - (rel)->pgstat_info->t_counts.t_numscans++; \ - } while (0) -#define pgstat_count_index_tuples(rel, n) \ - do { \ - if (pgstat_should_count_relation(rel)) \ - (rel)->pgstat_info->t_counts.t_tuples_returned += (n); \ - } while (0) -#define pgstat_count_buffer_read(rel) \ - do { \ - if (pgstat_should_count_relation(rel)) \ - (rel)->pgstat_info->t_counts.t_blocks_fetched++; \ - } while (0) -#define pgstat_count_buffer_hit(rel) \ - do { \ - if (pgstat_should_count_relation(rel)) \ - (rel)->pgstat_info->t_counts.t_blocks_hit++; \ - } while (0) - -extern void pgstat_count_heap_insert(Relation rel, PgStat_Counter n); -extern void pgstat_count_heap_update(Relation rel, bool hot); -extern void pgstat_count_heap_delete(Relation rel); -extern void pgstat_count_truncate(Relation rel); -extern void pgstat_update_heap_dead_tuples(Relation rel, int delta); - -extern void pgstat_twophase_postcommit(TransactionId xid, uint16 info, - void *recdata, uint32 len); -extern void pgstat_twophase_postabort(TransactionId xid, uint16 info, - void *recdata, uint32 len); - -extern PgStat_StatTabEntry *pgstat_fetch_stat_tabentry(Oid relid); -extern PgStat_StatTabEntry *pgstat_fetch_stat_tabentry_ext(bool shared, - Oid relid); -extern PgStat_TableStatus *find_tabstat_entry(Oid rel_id); - - -/* - * Functions in pgstat_replslot.c - */ - -extern void pgstat_reset_replslot(const char *name); -struct ReplicationSlot; -extern void pgstat_report_replslot(struct ReplicationSlot *slot, const PgStat_StatReplSlotEntry *repSlotStat); -extern void pgstat_create_replslot(struct ReplicationSlot *slot); -extern void pgstat_acquire_replslot(struct ReplicationSlot *slot); -extern void pgstat_drop_replslot(struct ReplicationSlot *slot); -extern PgStat_StatReplSlotEntry *pgstat_fetch_replslot(NameData slotname); - - -/* - * Functions in pgstat_slru.c - */ - -extern void pgstat_reset_slru(const char *); -extern void pgstat_count_slru_page_zeroed(int slru_idx); -extern void pgstat_count_slru_page_hit(int slru_idx); -extern void pgstat_count_slru_page_read(int slru_idx); -extern void pgstat_count_slru_page_written(int slru_idx); -extern void pgstat_count_slru_page_exists(int slru_idx); -extern void pgstat_count_slru_flush(int slru_idx); -extern void pgstat_count_slru_truncate(int slru_idx); -extern const char *pgstat_get_slru_name(int slru_idx); -extern int pgstat_get_slru_index(const char *name); -extern PgStat_SLRUStats *pgstat_fetch_slru(void); - - -/* - * Functions in pgstat_subscription.c - */ - -extern void pgstat_report_subscription_error(Oid subid, bool is_apply_error); -extern void pgstat_create_subscription(Oid subid); -extern void pgstat_drop_subscription(Oid subid); -extern PgStat_StatSubEntry *pgstat_fetch_stat_subscription(Oid subid); - - -/* - * Functions in pgstat_xact.c - */ - -extern void AtEOXact_PgStat(bool isCommit, bool parallel); -extern void AtEOSubXact_PgStat(bool isCommit, int nestDepth); -extern void AtPrepare_PgStat(void); -extern void PostPrepare_PgStat(void); -struct xl_xact_stats_item; -extern int pgstat_get_transactional_drops(bool isCommit, struct xl_xact_stats_item **items); -extern void pgstat_execute_transactional_drops(int ndrops, struct xl_xact_stats_item *items, bool is_redo); - - -/* - * Functions in pgstat_wal.c - */ - -extern void pgstat_report_wal(bool force); -extern PgStat_WalStats *pgstat_fetch_stat_wal(void); - - -/* - * Variables in pgstat.c - */ - -/* GUC parameters */ -extern PGDLLIMPORT bool pgstat_track_counts; -extern PGDLLIMPORT int pgstat_track_functions; -extern PGDLLIMPORT int pgstat_fetch_consistency; - - -/* - * Variables in pgstat_bgwriter.c - */ - -/* updated directly by bgwriter and bufmgr */ -extern PGDLLIMPORT PgStat_BgWriterStats PendingBgWriterStats; - - -/* - * Variables in pgstat_checkpointer.c - */ - -/* - * Checkpointer statistics counters are updated directly by checkpointer and - * bufmgr. - */ -extern PGDLLIMPORT PgStat_CheckpointerStats PendingCheckpointerStats; - - -/* - * Variables in pgstat_database.c - */ - -/* Updated by pgstat_count_buffer_*_time macros */ -extern PGDLLIMPORT PgStat_Counter pgStatBlockReadTime; -extern PGDLLIMPORT PgStat_Counter pgStatBlockWriteTime; - -/* - * Updated by pgstat_count_conn_*_time macros, called by - * pgstat_report_activity(). - */ -extern PGDLLIMPORT PgStat_Counter pgStatActiveTime; -extern PGDLLIMPORT PgStat_Counter pgStatTransactionIdleTime; - -/* updated by the traffic cop and in errfinish() */ -extern PGDLLIMPORT __thread SessionEndType pgStatSessionEndCause; - - -/* - * Variables in pgstat_wal.c - */ - -/* updated directly by backends and background processes */ -extern PGDLLIMPORT PgStat_WalStats PendingWalStats; - - -#endif /* PGSTAT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pgtime.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pgtime.h deleted file mode 100644 index 1c44be8ba..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pgtime.h +++ /dev/null @@ -1,94 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pgtime.h - * PostgreSQL internal timezone library - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * - * IDENTIFICATION - * src/include/pgtime.h - * - *------------------------------------------------------------------------- - */ -#ifndef _PGTIME_H -#define _PGTIME_H - - -/* - * The API of this library is generally similar to the corresponding - * C library functions, except that we use pg_time_t which (we hope) is - * 64 bits wide, and which is most definitely signed not unsigned. - */ - -typedef int64 pg_time_t; - -/* - * Data structure representing a broken-down timestamp. - * - * CAUTION: the IANA timezone library (src/timezone/) follows the POSIX - * convention that tm_mon counts from 0 and tm_year is relative to 1900. - * However, Postgres' datetime functions generally treat tm_mon as counting - * from 1 and tm_year as relative to 1 BC. Be sure to make the appropriate - * adjustments when moving from one code domain to the other. - */ -struct pg_tm -{ - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; /* see above */ - int tm_year; /* see above */ - int tm_wday; - int tm_yday; - int tm_isdst; - long int tm_gmtoff; - const char *tm_zone; -}; - -/* These structs are opaque outside the timezone library */ -typedef struct pg_tz pg_tz; -typedef struct pg_tzenum pg_tzenum; - -/* Maximum length of a timezone name (not including trailing null) */ -#define TZ_STRLEN_MAX 255 - -/* these functions are in localtime.c */ - -extern struct pg_tm *pg_localtime(const pg_time_t *timep, const pg_tz *tz); -extern struct pg_tm *pg_gmtime(const pg_time_t *timep); -extern int pg_next_dst_boundary(const pg_time_t *timep, - long int *before_gmtoff, - int *before_isdst, - pg_time_t *boundary, - long int *after_gmtoff, - int *after_isdst, - const pg_tz *tz); -extern bool pg_interpret_timezone_abbrev(const char *abbrev, - const pg_time_t *timep, - long int *gmtoff, - int *isdst, - const pg_tz *tz); -extern bool pg_get_timezone_offset(const pg_tz *tz, long int *gmtoff); -extern const char *pg_get_timezone_name(pg_tz *tz); -extern bool pg_tz_acceptable(pg_tz *tz); - -/* these functions are in strftime.c */ - -extern size_t pg_strftime(char *s, size_t max, const char *format, - const struct pg_tm *tm); - -/* these functions and variables are in pgtz.c */ - -extern PGDLLIMPORT pg_tz *session_timezone; -extern PGDLLIMPORT pg_tz *log_timezone; - -extern void pg_timezone_initialize(void); -extern pg_tz *pg_tzset(const char *tzname); -extern pg_tz *pg_tzset_offset(long gmtoffset); - -extern pg_tzenum *pg_tzenumerate_start(void); -extern pg_tz *pg_tzenumerate_next(pg_tzenum *dir); -extern void pg_tzenumerate_end(pg_tzenum *dir); - -#endif /* _PGTIME_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pl_gram.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pl_gram.h deleted file mode 100644 index 63d2f09d5..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pl_gram.h +++ /dev/null @@ -1,383 +0,0 @@ -/* A Bison parser, made by GNU Bison 2.3. */ - -/* Skeleton interface for Bison's Yacc-like parsers in C - - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 - Free Software Foundation, Inc. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. */ - -/* As a special exception, you may create a larger work that contains - part or all of the Bison parser skeleton and distribute that work - under terms of your choice, so long as that work isn't itself a - parser generator using the skeleton or a modified version thereof - as a parser skeleton. Alternatively, if you modify or redistribute - the parser skeleton itself, you may (at your option) remove this - special exception, which will cause the skeleton and the resulting - Bison output files to be licensed under the GNU General Public - License without this special exception. - - This special exception was added by the Free Software Foundation in - version 2.2 of Bison. */ - -/* Tokens. */ -#ifndef YYTOKENTYPE -# define YYTOKENTYPE - /* Put the tokens into the symbol table, so that GDB and other debuggers - know about them. */ - enum yytokentype { - IDENT = 258, - UIDENT = 259, - FCONST = 260, - SCONST = 261, - USCONST = 262, - BCONST = 263, - XCONST = 264, - Op = 265, - ICONST = 266, - PARAM = 267, - TYPECAST = 268, - DOT_DOT = 269, - COLON_EQUALS = 270, - EQUALS_GREATER = 271, - LESS_EQUALS = 272, - GREATER_EQUALS = 273, - NOT_EQUALS = 274, - SQL_COMMENT = 275, - C_COMMENT = 276, - T_WORD = 277, - T_CWORD = 278, - T_DATUM = 279, - LESS_LESS = 280, - GREATER_GREATER = 281, - K_ABSOLUTE = 282, - K_ALIAS = 283, - K_ALL = 284, - K_AND = 285, - K_ARRAY = 286, - K_ASSERT = 287, - K_BACKWARD = 288, - K_BEGIN = 289, - K_BY = 290, - K_CALL = 291, - K_CASE = 292, - K_CHAIN = 293, - K_CLOSE = 294, - K_COLLATE = 295, - K_COLUMN = 296, - K_COLUMN_NAME = 297, - K_COMMIT = 298, - K_CONSTANT = 299, - K_CONSTRAINT = 300, - K_CONSTRAINT_NAME = 301, - K_CONTINUE = 302, - K_CURRENT = 303, - K_CURSOR = 304, - K_DATATYPE = 305, - K_DEBUG = 306, - K_DECLARE = 307, - K_DEFAULT = 308, - K_DETAIL = 309, - K_DIAGNOSTICS = 310, - K_DO = 311, - K_DUMP = 312, - K_ELSE = 313, - K_ELSIF = 314, - K_END = 315, - K_ERRCODE = 316, - K_ERROR = 317, - K_EXCEPTION = 318, - K_EXECUTE = 319, - K_EXIT = 320, - K_FETCH = 321, - K_FIRST = 322, - K_FOR = 323, - K_FOREACH = 324, - K_FORWARD = 325, - K_FROM = 326, - K_GET = 327, - K_HINT = 328, - K_IF = 329, - K_IMPORT = 330, - K_IN = 331, - K_INFO = 332, - K_INSERT = 333, - K_INTO = 334, - K_IS = 335, - K_LAST = 336, - K_LOG = 337, - K_LOOP = 338, - K_MERGE = 339, - K_MESSAGE = 340, - K_MESSAGE_TEXT = 341, - K_MOVE = 342, - K_NEXT = 343, - K_NO = 344, - K_NOT = 345, - K_NOTICE = 346, - K_NULL = 347, - K_OPEN = 348, - K_OPTION = 349, - K_OR = 350, - K_PERFORM = 351, - K_PG_CONTEXT = 352, - K_PG_DATATYPE_NAME = 353, - K_PG_EXCEPTION_CONTEXT = 354, - K_PG_EXCEPTION_DETAIL = 355, - K_PG_EXCEPTION_HINT = 356, - K_PRINT_STRICT_PARAMS = 357, - K_PRIOR = 358, - K_QUERY = 359, - K_RAISE = 360, - K_RELATIVE = 361, - K_RETURN = 362, - K_RETURNED_SQLSTATE = 363, - K_REVERSE = 364, - K_ROLLBACK = 365, - K_ROW_COUNT = 366, - K_ROWTYPE = 367, - K_SCHEMA = 368, - K_SCHEMA_NAME = 369, - K_SCROLL = 370, - K_SLICE = 371, - K_SQLSTATE = 372, - K_STACKED = 373, - K_STRICT = 374, - K_TABLE = 375, - K_TABLE_NAME = 376, - K_THEN = 377, - K_TO = 378, - K_TYPE = 379, - K_USE_COLUMN = 380, - K_USE_VARIABLE = 381, - K_USING = 382, - K_VARIABLE_CONFLICT = 383, - K_WARNING = 384, - K_WHEN = 385, - K_WHILE = 386 - }; -#endif -/* Tokens. */ -#define IDENT 258 -#define UIDENT 259 -#define FCONST 260 -#define SCONST 261 -#define USCONST 262 -#define BCONST 263 -#define XCONST 264 -#define Op 265 -#define ICONST 266 -#define PARAM 267 -#define TYPECAST 268 -#define DOT_DOT 269 -#define COLON_EQUALS 270 -#define EQUALS_GREATER 271 -#define LESS_EQUALS 272 -#define GREATER_EQUALS 273 -#define NOT_EQUALS 274 -#define SQL_COMMENT 275 -#define C_COMMENT 276 -#define T_WORD 277 -#define T_CWORD 278 -#define T_DATUM 279 -#define LESS_LESS 280 -#define GREATER_GREATER 281 -#define K_ABSOLUTE 282 -#define K_ALIAS 283 -#define K_ALL 284 -#define K_AND 285 -#define K_ARRAY 286 -#define K_ASSERT 287 -#define K_BACKWARD 288 -#define K_BEGIN 289 -#define K_BY 290 -#define K_CALL 291 -#define K_CASE 292 -#define K_CHAIN 293 -#define K_CLOSE 294 -#define K_COLLATE 295 -#define K_COLUMN 296 -#define K_COLUMN_NAME 297 -#define K_COMMIT 298 -#define K_CONSTANT 299 -#define K_CONSTRAINT 300 -#define K_CONSTRAINT_NAME 301 -#define K_CONTINUE 302 -#define K_CURRENT 303 -#define K_CURSOR 304 -#define K_DATATYPE 305 -#define K_DEBUG 306 -#define K_DECLARE 307 -#define K_DEFAULT 308 -#define K_DETAIL 309 -#define K_DIAGNOSTICS 310 -#define K_DO 311 -#define K_DUMP 312 -#define K_ELSE 313 -#define K_ELSIF 314 -#define K_END 315 -#define K_ERRCODE 316 -#define K_ERROR 317 -#define K_EXCEPTION 318 -#define K_EXECUTE 319 -#define K_EXIT 320 -#define K_FETCH 321 -#define K_FIRST 322 -#define K_FOR 323 -#define K_FOREACH 324 -#define K_FORWARD 325 -#define K_FROM 326 -#define K_GET 327 -#define K_HINT 328 -#define K_IF 329 -#define K_IMPORT 330 -#define K_IN 331 -#define K_INFO 332 -#define K_INSERT 333 -#define K_INTO 334 -#define K_IS 335 -#define K_LAST 336 -#define K_LOG 337 -#define K_LOOP 338 -#define K_MERGE 339 -#define K_MESSAGE 340 -#define K_MESSAGE_TEXT 341 -#define K_MOVE 342 -#define K_NEXT 343 -#define K_NO 344 -#define K_NOT 345 -#define K_NOTICE 346 -#define K_NULL 347 -#define K_OPEN 348 -#define K_OPTION 349 -#define K_OR 350 -#define K_PERFORM 351 -#define K_PG_CONTEXT 352 -#define K_PG_DATATYPE_NAME 353 -#define K_PG_EXCEPTION_CONTEXT 354 -#define K_PG_EXCEPTION_DETAIL 355 -#define K_PG_EXCEPTION_HINT 356 -#define K_PRINT_STRICT_PARAMS 357 -#define K_PRIOR 358 -#define K_QUERY 359 -#define K_RAISE 360 -#define K_RELATIVE 361 -#define K_RETURN 362 -#define K_RETURNED_SQLSTATE 363 -#define K_REVERSE 364 -#define K_ROLLBACK 365 -#define K_ROW_COUNT 366 -#define K_ROWTYPE 367 -#define K_SCHEMA 368 -#define K_SCHEMA_NAME 369 -#define K_SCROLL 370 -#define K_SLICE 371 -#define K_SQLSTATE 372 -#define K_STACKED 373 -#define K_STRICT 374 -#define K_TABLE 375 -#define K_TABLE_NAME 376 -#define K_THEN 377 -#define K_TO 378 -#define K_TYPE 379 -#define K_USE_COLUMN 380 -#define K_USE_VARIABLE 381 -#define K_USING 382 -#define K_VARIABLE_CONFLICT 383 -#define K_WARNING 384 -#define K_WHEN 385 -#define K_WHILE 386 - - - - -#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED -typedef union YYSTYPE -#line 120 "pl_gram.y" -{ - core_YYSTYPE core_yystype; - /* these fields must match core_YYSTYPE: */ - int ival; - char *str; - const char *keyword; - - PLword word; - PLcword cword; - PLwdatum wdatum; - bool boolean; - Oid oid; - struct - { - char *name; - int lineno; - } varname; - struct - { - char *name; - int lineno; - PLpgSQL_datum *scalar; - PLpgSQL_datum *row; - } forvariable; - struct - { - char *label; - int n_initvars; - int *initvarnos; - } declhdr; - struct - { - List *stmts; - char *end_label; - int end_label_location; - } loop_body; - List *list; - PLpgSQL_type *dtype; - PLpgSQL_datum *datum; - PLpgSQL_var *var; - PLpgSQL_expr *expr; - PLpgSQL_stmt *stmt; - PLpgSQL_condition *condition; - PLpgSQL_exception *exception; - PLpgSQL_exception_block *exception_block; - PLpgSQL_nsitem *nsitem; - PLpgSQL_diag_item *diagitem; - PLpgSQL_stmt_fetch *fetch; - PLpgSQL_case_when *casewhen; -} -/* Line 1529 of yacc.c. */ -#line 362 "pl_gram.h" - YYSTYPE; -# define yystype YYSTYPE /* obsolescent; will be withdrawn */ -# define YYSTYPE_IS_DECLARED 1 -# define YYSTYPE_IS_TRIVIAL 1 -#endif - -extern __thread YYSTYPE plpgsql_yylval; - -#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED -typedef struct YYLTYPE -{ - int first_line; - int first_column; - int last_line; - int last_column; -} YYLTYPE; -# define yyltype YYLTYPE /* obsolescent; will be withdrawn */ -# define YYLTYPE_IS_DECLARED 1 -# define YYLTYPE_IS_TRIVIAL 1 -#endif - -extern __thread YYLTYPE plpgsql_yylloc; diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pl_reserved_kwlist.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pl_reserved_kwlist.h deleted file mode 100644 index 9043fbddb..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pl_reserved_kwlist.h +++ /dev/null @@ -1,52 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pl_reserved_kwlist.h - * - * The keyword lists are kept in their own source files for use by - * automatic tools. The exact representation of a keyword is determined - * by the PG_KEYWORD macro, which is not defined in this file; it can - * be defined by the caller for special purposes. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/pl/plpgsql/src/pl_reserved_kwlist.h - * - *------------------------------------------------------------------------- - */ - -/* There is deliberately not an #ifndef PL_RESERVED_KWLIST_H here. */ - -/* - * List of (keyword-name, keyword-token-value) pairs. - * - * Be careful not to put the same word into pl_unreserved_kwlist.h. - * - * Note: gen_keywordlist.pl requires the entries to appear in ASCII order. - */ - -/* name, value */ -PG_KEYWORD("all", K_ALL) -PG_KEYWORD("begin", K_BEGIN) -PG_KEYWORD("by", K_BY) -PG_KEYWORD("case", K_CASE) -PG_KEYWORD("declare", K_DECLARE) -PG_KEYWORD("else", K_ELSE) -PG_KEYWORD("end", K_END) -PG_KEYWORD("execute", K_EXECUTE) -PG_KEYWORD("for", K_FOR) -PG_KEYWORD("foreach", K_FOREACH) -PG_KEYWORD("from", K_FROM) -PG_KEYWORD("if", K_IF) -PG_KEYWORD("in", K_IN) -PG_KEYWORD("into", K_INTO) -PG_KEYWORD("loop", K_LOOP) -PG_KEYWORD("not", K_NOT) -PG_KEYWORD("null", K_NULL) -PG_KEYWORD("or", K_OR) -PG_KEYWORD("strict", K_STRICT) -PG_KEYWORD("then", K_THEN) -PG_KEYWORD("to", K_TO) -PG_KEYWORD("using", K_USING) -PG_KEYWORD("when", K_WHEN) -PG_KEYWORD("while", K_WHILE) diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pl_reserved_kwlist_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pl_reserved_kwlist_d.h deleted file mode 100644 index 32689ebd0..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pl_reserved_kwlist_d.h +++ /dev/null @@ -1,114 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pl_reserved_kwlist_d.h - * List of keywords represented as a ScanKeywordList. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/tools/gen_keywordlist.pl - * - *------------------------------------------------------------------------- - */ - -#ifndef PL_RESERVED_KWLIST_D_H -#define PL_RESERVED_KWLIST_D_H - -#include "common/kwlookup.h" - -static const char ReservedPLKeywords_kw_string[] = - "all\0" - "begin\0" - "by\0" - "case\0" - "declare\0" - "else\0" - "end\0" - "execute\0" - "for\0" - "foreach\0" - "from\0" - "if\0" - "in\0" - "into\0" - "loop\0" - "not\0" - "null\0" - "or\0" - "strict\0" - "then\0" - "to\0" - "using\0" - "when\0" - "while"; - -static const uint16 ReservedPLKeywords_kw_offsets[] = { - 0, - 4, - 10, - 13, - 18, - 26, - 31, - 35, - 43, - 47, - 55, - 60, - 63, - 66, - 71, - 76, - 80, - 85, - 88, - 95, - 100, - 103, - 109, - 114, -}; - -#define RESERVEDPLKEYWORDS_NUM_KEYWORDS 24 - -static int -ReservedPLKeywords_hash_func(const void *key, size_t keylen) -{ - static const int8 h[49] = { - 127, 7, 127, 127, -2, 127, 13, 127, - 127, 5, 0, 23, 0, 2, 127, 0, - 17, 0, 127, 19, 5, 127, 6, 2, - -3, 17, 0, 6, 127, 8, 18, 127, - -6, 3, -5, 0, 127, 0, 0, 11, - 15, 127, 127, 127, 13, 127, 0, 17, - 127 - }; - - const unsigned char *k = (const unsigned char *) key; - uint32 a = 0; - uint32 b = 1; - - while (keylen--) - { - unsigned char c = *k++ | 0x20; - - a = a * 257 + c; - b = b * 8191 + c; - } - return h[a % 49] + h[b % 49]; -} - -static const ScanKeywordList ReservedPLKeywords = { - ReservedPLKeywords_kw_string, - ReservedPLKeywords_kw_offsets, - ReservedPLKeywords_hash_func, - RESERVEDPLKEYWORDS_NUM_KEYWORDS, - 7 -}; - -#endif /* PL_RESERVED_KWLIST_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pl_unreserved_kwlist.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pl_unreserved_kwlist.h deleted file mode 100644 index ee2be1b21..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pl_unreserved_kwlist.h +++ /dev/null @@ -1,111 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pl_unreserved_kwlist.h - * - * The keyword lists are kept in their own source files for use by - * automatic tools. The exact representation of a keyword is determined - * by the PG_KEYWORD macro, which is not defined in this file; it can - * be defined by the caller for special purposes. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/pl/plpgsql/src/pl_unreserved_kwlist.h - * - *------------------------------------------------------------------------- - */ - -/* There is deliberately not an #ifndef PL_UNRESERVED_KWLIST_H here. */ - -/* - * List of (keyword-name, keyword-token-value) pairs. - * - * Be careful not to put the same word into pl_reserved_kwlist.h. Also be - * sure that pl_gram.y's unreserved_keyword production agrees with this list. - * - * Note: gen_keywordlist.pl requires the entries to appear in ASCII order. - */ - -/* name, value */ -PG_KEYWORD("absolute", K_ABSOLUTE) -PG_KEYWORD("alias", K_ALIAS) -PG_KEYWORD("and", K_AND) -PG_KEYWORD("array", K_ARRAY) -PG_KEYWORD("assert", K_ASSERT) -PG_KEYWORD("backward", K_BACKWARD) -PG_KEYWORD("call", K_CALL) -PG_KEYWORD("chain", K_CHAIN) -PG_KEYWORD("close", K_CLOSE) -PG_KEYWORD("collate", K_COLLATE) -PG_KEYWORD("column", K_COLUMN) -PG_KEYWORD("column_name", K_COLUMN_NAME) -PG_KEYWORD("commit", K_COMMIT) -PG_KEYWORD("constant", K_CONSTANT) -PG_KEYWORD("constraint", K_CONSTRAINT) -PG_KEYWORD("constraint_name", K_CONSTRAINT_NAME) -PG_KEYWORD("continue", K_CONTINUE) -PG_KEYWORD("current", K_CURRENT) -PG_KEYWORD("cursor", K_CURSOR) -PG_KEYWORD("datatype", K_DATATYPE) -PG_KEYWORD("debug", K_DEBUG) -PG_KEYWORD("default", K_DEFAULT) -PG_KEYWORD("detail", K_DETAIL) -PG_KEYWORD("diagnostics", K_DIAGNOSTICS) -PG_KEYWORD("do", K_DO) -PG_KEYWORD("dump", K_DUMP) -PG_KEYWORD("elseif", K_ELSIF) -PG_KEYWORD("elsif", K_ELSIF) -PG_KEYWORD("errcode", K_ERRCODE) -PG_KEYWORD("error", K_ERROR) -PG_KEYWORD("exception", K_EXCEPTION) -PG_KEYWORD("exit", K_EXIT) -PG_KEYWORD("fetch", K_FETCH) -PG_KEYWORD("first", K_FIRST) -PG_KEYWORD("forward", K_FORWARD) -PG_KEYWORD("get", K_GET) -PG_KEYWORD("hint", K_HINT) -PG_KEYWORD("import", K_IMPORT) -PG_KEYWORD("info", K_INFO) -PG_KEYWORD("insert", K_INSERT) -PG_KEYWORD("is", K_IS) -PG_KEYWORD("last", K_LAST) -PG_KEYWORD("log", K_LOG) -PG_KEYWORD("merge", K_MERGE) -PG_KEYWORD("message", K_MESSAGE) -PG_KEYWORD("message_text", K_MESSAGE_TEXT) -PG_KEYWORD("move", K_MOVE) -PG_KEYWORD("next", K_NEXT) -PG_KEYWORD("no", K_NO) -PG_KEYWORD("notice", K_NOTICE) -PG_KEYWORD("open", K_OPEN) -PG_KEYWORD("option", K_OPTION) -PG_KEYWORD("perform", K_PERFORM) -PG_KEYWORD("pg_context", K_PG_CONTEXT) -PG_KEYWORD("pg_datatype_name", K_PG_DATATYPE_NAME) -PG_KEYWORD("pg_exception_context", K_PG_EXCEPTION_CONTEXT) -PG_KEYWORD("pg_exception_detail", K_PG_EXCEPTION_DETAIL) -PG_KEYWORD("pg_exception_hint", K_PG_EXCEPTION_HINT) -PG_KEYWORD("print_strict_params", K_PRINT_STRICT_PARAMS) -PG_KEYWORD("prior", K_PRIOR) -PG_KEYWORD("query", K_QUERY) -PG_KEYWORD("raise", K_RAISE) -PG_KEYWORD("relative", K_RELATIVE) -PG_KEYWORD("return", K_RETURN) -PG_KEYWORD("returned_sqlstate", K_RETURNED_SQLSTATE) -PG_KEYWORD("reverse", K_REVERSE) -PG_KEYWORD("rollback", K_ROLLBACK) -PG_KEYWORD("row_count", K_ROW_COUNT) -PG_KEYWORD("rowtype", K_ROWTYPE) -PG_KEYWORD("schema", K_SCHEMA) -PG_KEYWORD("schema_name", K_SCHEMA_NAME) -PG_KEYWORD("scroll", K_SCROLL) -PG_KEYWORD("slice", K_SLICE) -PG_KEYWORD("sqlstate", K_SQLSTATE) -PG_KEYWORD("stacked", K_STACKED) -PG_KEYWORD("table", K_TABLE) -PG_KEYWORD("table_name", K_TABLE_NAME) -PG_KEYWORD("type", K_TYPE) -PG_KEYWORD("use_column", K_USE_COLUMN) -PG_KEYWORD("use_variable", K_USE_VARIABLE) -PG_KEYWORD("variable_conflict", K_VARIABLE_CONFLICT) -PG_KEYWORD("warning", K_WARNING) diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pl_unreserved_kwlist_d.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pl_unreserved_kwlist_d.h deleted file mode 100644 index 3ae9467f9..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/pl_unreserved_kwlist_d.h +++ /dev/null @@ -1,244 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pl_unreserved_kwlist_d.h - * List of keywords represented as a ScanKeywordList. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/tools/gen_keywordlist.pl - * - *------------------------------------------------------------------------- - */ - -#ifndef PL_UNRESERVED_KWLIST_D_H -#define PL_UNRESERVED_KWLIST_D_H - -#include "common/kwlookup.h" - -static const char UnreservedPLKeywords_kw_string[] = - "absolute\0" - "alias\0" - "and\0" - "array\0" - "assert\0" - "backward\0" - "call\0" - "chain\0" - "close\0" - "collate\0" - "column\0" - "column_name\0" - "commit\0" - "constant\0" - "constraint\0" - "constraint_name\0" - "continue\0" - "current\0" - "cursor\0" - "datatype\0" - "debug\0" - "default\0" - "detail\0" - "diagnostics\0" - "do\0" - "dump\0" - "elseif\0" - "elsif\0" - "errcode\0" - "error\0" - "exception\0" - "exit\0" - "fetch\0" - "first\0" - "forward\0" - "get\0" - "hint\0" - "import\0" - "info\0" - "insert\0" - "is\0" - "last\0" - "log\0" - "merge\0" - "message\0" - "message_text\0" - "move\0" - "next\0" - "no\0" - "notice\0" - "open\0" - "option\0" - "perform\0" - "pg_context\0" - "pg_datatype_name\0" - "pg_exception_context\0" - "pg_exception_detail\0" - "pg_exception_hint\0" - "print_strict_params\0" - "prior\0" - "query\0" - "raise\0" - "relative\0" - "return\0" - "returned_sqlstate\0" - "reverse\0" - "rollback\0" - "row_count\0" - "rowtype\0" - "schema\0" - "schema_name\0" - "scroll\0" - "slice\0" - "sqlstate\0" - "stacked\0" - "table\0" - "table_name\0" - "type\0" - "use_column\0" - "use_variable\0" - "variable_conflict\0" - "warning"; - -static const uint16 UnreservedPLKeywords_kw_offsets[] = { - 0, - 9, - 15, - 19, - 25, - 32, - 41, - 46, - 52, - 58, - 66, - 73, - 85, - 92, - 101, - 112, - 128, - 137, - 145, - 152, - 161, - 167, - 175, - 182, - 194, - 197, - 202, - 209, - 215, - 223, - 229, - 239, - 244, - 250, - 256, - 264, - 268, - 273, - 280, - 285, - 292, - 295, - 300, - 304, - 310, - 318, - 331, - 336, - 341, - 344, - 351, - 356, - 363, - 371, - 382, - 399, - 420, - 440, - 458, - 478, - 484, - 490, - 496, - 505, - 512, - 530, - 538, - 547, - 557, - 565, - 572, - 584, - 591, - 597, - 606, - 614, - 620, - 631, - 636, - 647, - 660, - 678, -}; - -#define UNRESERVEDPLKEYWORDS_NUM_KEYWORDS 82 - -static int -UnreservedPLKeywords_hash_func(const void *key, size_t keylen) -{ - static const int16 h[165] = { - 58, 0, 26, 32767, 0, 0, 9, 32767, - 0, 32767, 37, 74, 32767, -7, 32767, 39, - 58, -5, 32767, 31, 32767, 32767, 75, -23, - 32767, 0, 32767, 32767, 32767, -14, 32767, 81, - 32767, 32767, 32767, -36, -9, 32767, 32767, 32767, - 40, 32767, 54, 10, 11, 43, 32767, 0, - 52, 105, -22, 15, 32767, -33, 49, -65, - 48, 32767, 32767, 32767, 25, 49, -47, 37, - 21, 32767, 32767, -15, 70, 32767, 32767, 64, - -10, 126, 32767, 51, 0, 36, 32767, -55, - -22, 32767, 32767, 32767, 32767, 32767, -26, -35, - 32767, 61, 32767, 32767, 32767, -23, 98, 48, - 23, 19, 32767, 7, 35, 5, -18, 71, - 28, 5, 32767, 32767, 32767, 74, 32767, 82, - 32767, 0, 32767, 32767, 66, 0, 0, 50, - 32767, 32767, 5, 2, 0, 32767, 55, 32767, - 32767, 45, 79, 32767, 32767, 73, 22, 0, - 103, 32767, -20, 72, 32767, 0, 29, 32767, - 0, 32767, 32767, 0, 50, 28, 32767, -40, - 32767, 32767, 34, 56, 32767, 32767, 32767, 17, - -36, 32767, 67, 32767, 0 - }; - - const unsigned char *k = (const unsigned char *) key; - uint32 a = 0; - uint32 b = 0; - - while (keylen--) - { - unsigned char c = *k++ | 0x20; - - a = a * 257 + c; - b = b * 8191 + c; - } - return h[a % 165] + h[b % 165]; -} - -static const ScanKeywordList UnreservedPLKeywords = { - UnreservedPLKeywords_kw_string, - UnreservedPLKeywords_kw_offsets, - UnreservedPLKeywords_hash_func, - UNRESERVEDPLKEYWORDS_NUM_KEYWORDS, - 20 -}; - -#endif /* PL_UNRESERVED_KWLIST_D_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/plerrcodes.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/plerrcodes.h deleted file mode 100644 index b17725b9c..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/plerrcodes.h +++ /dev/null @@ -1,998 +0,0 @@ -/* autogenerated from src/backend/utils/errcodes.txt, do not edit */ -/* there is deliberately not an #ifndef PLERRCODES_H here */ - -{ - "sql_statement_not_yet_complete", ERRCODE_SQL_STATEMENT_NOT_YET_COMPLETE -}, - -{ - "connection_exception", ERRCODE_CONNECTION_EXCEPTION -}, - -{ - "connection_does_not_exist", ERRCODE_CONNECTION_DOES_NOT_EXIST -}, - -{ - "connection_failure", ERRCODE_CONNECTION_FAILURE -}, - -{ - "sqlclient_unable_to_establish_sqlconnection", ERRCODE_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION -}, - -{ - "sqlserver_rejected_establishment_of_sqlconnection", ERRCODE_SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION -}, - -{ - "transaction_resolution_unknown", ERRCODE_TRANSACTION_RESOLUTION_UNKNOWN -}, - -{ - "protocol_violation", ERRCODE_PROTOCOL_VIOLATION -}, - -{ - "triggered_action_exception", ERRCODE_TRIGGERED_ACTION_EXCEPTION -}, - -{ - "feature_not_supported", ERRCODE_FEATURE_NOT_SUPPORTED -}, - -{ - "invalid_transaction_initiation", ERRCODE_INVALID_TRANSACTION_INITIATION -}, - -{ - "locator_exception", ERRCODE_LOCATOR_EXCEPTION -}, - -{ - "invalid_locator_specification", ERRCODE_L_E_INVALID_SPECIFICATION -}, - -{ - "invalid_grantor", ERRCODE_INVALID_GRANTOR -}, - -{ - "invalid_grant_operation", ERRCODE_INVALID_GRANT_OPERATION -}, - -{ - "invalid_role_specification", ERRCODE_INVALID_ROLE_SPECIFICATION -}, - -{ - "diagnostics_exception", ERRCODE_DIAGNOSTICS_EXCEPTION -}, - -{ - "stacked_diagnostics_accessed_without_active_handler", ERRCODE_STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER -}, - -{ - "case_not_found", ERRCODE_CASE_NOT_FOUND -}, - -{ - "cardinality_violation", ERRCODE_CARDINALITY_VIOLATION -}, - -{ - "data_exception", ERRCODE_DATA_EXCEPTION -}, - -{ - "array_subscript_error", ERRCODE_ARRAY_SUBSCRIPT_ERROR -}, - -{ - "character_not_in_repertoire", ERRCODE_CHARACTER_NOT_IN_REPERTOIRE -}, - -{ - "datetime_field_overflow", ERRCODE_DATETIME_FIELD_OVERFLOW -}, - -{ - "division_by_zero", ERRCODE_DIVISION_BY_ZERO -}, - -{ - "error_in_assignment", ERRCODE_ERROR_IN_ASSIGNMENT -}, - -{ - "escape_character_conflict", ERRCODE_ESCAPE_CHARACTER_CONFLICT -}, - -{ - "indicator_overflow", ERRCODE_INDICATOR_OVERFLOW -}, - -{ - "interval_field_overflow", ERRCODE_INTERVAL_FIELD_OVERFLOW -}, - -{ - "invalid_argument_for_logarithm", ERRCODE_INVALID_ARGUMENT_FOR_LOG -}, - -{ - "invalid_argument_for_ntile_function", ERRCODE_INVALID_ARGUMENT_FOR_NTILE -}, - -{ - "invalid_argument_for_nth_value_function", ERRCODE_INVALID_ARGUMENT_FOR_NTH_VALUE -}, - -{ - "invalid_argument_for_power_function", ERRCODE_INVALID_ARGUMENT_FOR_POWER_FUNCTION -}, - -{ - "invalid_argument_for_width_bucket_function", ERRCODE_INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION -}, - -{ - "invalid_character_value_for_cast", ERRCODE_INVALID_CHARACTER_VALUE_FOR_CAST -}, - -{ - "invalid_datetime_format", ERRCODE_INVALID_DATETIME_FORMAT -}, - -{ - "invalid_escape_character", ERRCODE_INVALID_ESCAPE_CHARACTER -}, - -{ - "invalid_escape_octet", ERRCODE_INVALID_ESCAPE_OCTET -}, - -{ - "invalid_escape_sequence", ERRCODE_INVALID_ESCAPE_SEQUENCE -}, - -{ - "nonstandard_use_of_escape_character", ERRCODE_NONSTANDARD_USE_OF_ESCAPE_CHARACTER -}, - -{ - "invalid_indicator_parameter_value", ERRCODE_INVALID_INDICATOR_PARAMETER_VALUE -}, - -{ - "invalid_parameter_value", ERRCODE_INVALID_PARAMETER_VALUE -}, - -{ - "invalid_preceding_or_following_size", ERRCODE_INVALID_PRECEDING_OR_FOLLOWING_SIZE -}, - -{ - "invalid_regular_expression", ERRCODE_INVALID_REGULAR_EXPRESSION -}, - -{ - "invalid_row_count_in_limit_clause", ERRCODE_INVALID_ROW_COUNT_IN_LIMIT_CLAUSE -}, - -{ - "invalid_row_count_in_result_offset_clause", ERRCODE_INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE -}, - -{ - "invalid_tablesample_argument", ERRCODE_INVALID_TABLESAMPLE_ARGUMENT -}, - -{ - "invalid_tablesample_repeat", ERRCODE_INVALID_TABLESAMPLE_REPEAT -}, - -{ - "invalid_time_zone_displacement_value", ERRCODE_INVALID_TIME_ZONE_DISPLACEMENT_VALUE -}, - -{ - "invalid_use_of_escape_character", ERRCODE_INVALID_USE_OF_ESCAPE_CHARACTER -}, - -{ - "most_specific_type_mismatch", ERRCODE_MOST_SPECIFIC_TYPE_MISMATCH -}, - -{ - "null_value_not_allowed", ERRCODE_NULL_VALUE_NOT_ALLOWED -}, - -{ - "null_value_no_indicator_parameter", ERRCODE_NULL_VALUE_NO_INDICATOR_PARAMETER -}, - -{ - "numeric_value_out_of_range", ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE -}, - -{ - "sequence_generator_limit_exceeded", ERRCODE_SEQUENCE_GENERATOR_LIMIT_EXCEEDED -}, - -{ - "string_data_length_mismatch", ERRCODE_STRING_DATA_LENGTH_MISMATCH -}, - -{ - "string_data_right_truncation", ERRCODE_STRING_DATA_RIGHT_TRUNCATION -}, - -{ - "substring_error", ERRCODE_SUBSTRING_ERROR -}, - -{ - "trim_error", ERRCODE_TRIM_ERROR -}, - -{ - "unterminated_c_string", ERRCODE_UNTERMINATED_C_STRING -}, - -{ - "zero_length_character_string", ERRCODE_ZERO_LENGTH_CHARACTER_STRING -}, - -{ - "floating_point_exception", ERRCODE_FLOATING_POINT_EXCEPTION -}, - -{ - "invalid_text_representation", ERRCODE_INVALID_TEXT_REPRESENTATION -}, - -{ - "invalid_binary_representation", ERRCODE_INVALID_BINARY_REPRESENTATION -}, - -{ - "bad_copy_file_format", ERRCODE_BAD_COPY_FILE_FORMAT -}, - -{ - "untranslatable_character", ERRCODE_UNTRANSLATABLE_CHARACTER -}, - -{ - "not_an_xml_document", ERRCODE_NOT_AN_XML_DOCUMENT -}, - -{ - "invalid_xml_document", ERRCODE_INVALID_XML_DOCUMENT -}, - -{ - "invalid_xml_content", ERRCODE_INVALID_XML_CONTENT -}, - -{ - "invalid_xml_comment", ERRCODE_INVALID_XML_COMMENT -}, - -{ - "invalid_xml_processing_instruction", ERRCODE_INVALID_XML_PROCESSING_INSTRUCTION -}, - -{ - "duplicate_json_object_key_value", ERRCODE_DUPLICATE_JSON_OBJECT_KEY_VALUE -}, - -{ - "invalid_argument_for_sql_json_datetime_function", ERRCODE_INVALID_ARGUMENT_FOR_SQL_JSON_DATETIME_FUNCTION -}, - -{ - "invalid_json_text", ERRCODE_INVALID_JSON_TEXT -}, - -{ - "invalid_sql_json_subscript", ERRCODE_INVALID_SQL_JSON_SUBSCRIPT -}, - -{ - "more_than_one_sql_json_item", ERRCODE_MORE_THAN_ONE_SQL_JSON_ITEM -}, - -{ - "no_sql_json_item", ERRCODE_NO_SQL_JSON_ITEM -}, - -{ - "non_numeric_sql_json_item", ERRCODE_NON_NUMERIC_SQL_JSON_ITEM -}, - -{ - "non_unique_keys_in_a_json_object", ERRCODE_NON_UNIQUE_KEYS_IN_A_JSON_OBJECT -}, - -{ - "singleton_sql_json_item_required", ERRCODE_SINGLETON_SQL_JSON_ITEM_REQUIRED -}, - -{ - "sql_json_array_not_found", ERRCODE_SQL_JSON_ARRAY_NOT_FOUND -}, - -{ - "sql_json_member_not_found", ERRCODE_SQL_JSON_MEMBER_NOT_FOUND -}, - -{ - "sql_json_number_not_found", ERRCODE_SQL_JSON_NUMBER_NOT_FOUND -}, - -{ - "sql_json_object_not_found", ERRCODE_SQL_JSON_OBJECT_NOT_FOUND -}, - -{ - "too_many_json_array_elements", ERRCODE_TOO_MANY_JSON_ARRAY_ELEMENTS -}, - -{ - "too_many_json_object_members", ERRCODE_TOO_MANY_JSON_OBJECT_MEMBERS -}, - -{ - "sql_json_scalar_required", ERRCODE_SQL_JSON_SCALAR_REQUIRED -}, - -{ - "sql_json_item_cannot_be_cast_to_target_type", ERRCODE_SQL_JSON_ITEM_CANNOT_BE_CAST_TO_TARGET_TYPE -}, - -{ - "integrity_constraint_violation", ERRCODE_INTEGRITY_CONSTRAINT_VIOLATION -}, - -{ - "restrict_violation", ERRCODE_RESTRICT_VIOLATION -}, - -{ - "not_null_violation", ERRCODE_NOT_NULL_VIOLATION -}, - -{ - "foreign_key_violation", ERRCODE_FOREIGN_KEY_VIOLATION -}, - -{ - "unique_violation", ERRCODE_UNIQUE_VIOLATION -}, - -{ - "check_violation", ERRCODE_CHECK_VIOLATION -}, - -{ - "exclusion_violation", ERRCODE_EXCLUSION_VIOLATION -}, - -{ - "invalid_cursor_state", ERRCODE_INVALID_CURSOR_STATE -}, - -{ - "invalid_transaction_state", ERRCODE_INVALID_TRANSACTION_STATE -}, - -{ - "active_sql_transaction", ERRCODE_ACTIVE_SQL_TRANSACTION -}, - -{ - "branch_transaction_already_active", ERRCODE_BRANCH_TRANSACTION_ALREADY_ACTIVE -}, - -{ - "held_cursor_requires_same_isolation_level", ERRCODE_HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL -}, - -{ - "inappropriate_access_mode_for_branch_transaction", ERRCODE_INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION -}, - -{ - "inappropriate_isolation_level_for_branch_transaction", ERRCODE_INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION -}, - -{ - "no_active_sql_transaction_for_branch_transaction", ERRCODE_NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION -}, - -{ - "read_only_sql_transaction", ERRCODE_READ_ONLY_SQL_TRANSACTION -}, - -{ - "schema_and_data_statement_mixing_not_supported", ERRCODE_SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED -}, - -{ - "no_active_sql_transaction", ERRCODE_NO_ACTIVE_SQL_TRANSACTION -}, - -{ - "in_failed_sql_transaction", ERRCODE_IN_FAILED_SQL_TRANSACTION -}, - -{ - "idle_in_transaction_session_timeout", ERRCODE_IDLE_IN_TRANSACTION_SESSION_TIMEOUT -}, - -{ - "invalid_sql_statement_name", ERRCODE_INVALID_SQL_STATEMENT_NAME -}, - -{ - "triggered_data_change_violation", ERRCODE_TRIGGERED_DATA_CHANGE_VIOLATION -}, - -{ - "invalid_authorization_specification", ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION -}, - -{ - "invalid_password", ERRCODE_INVALID_PASSWORD -}, - -{ - "dependent_privilege_descriptors_still_exist", ERRCODE_DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST -}, - -{ - "dependent_objects_still_exist", ERRCODE_DEPENDENT_OBJECTS_STILL_EXIST -}, - -{ - "invalid_transaction_termination", ERRCODE_INVALID_TRANSACTION_TERMINATION -}, - -{ - "sql_routine_exception", ERRCODE_SQL_ROUTINE_EXCEPTION -}, - -{ - "function_executed_no_return_statement", ERRCODE_S_R_E_FUNCTION_EXECUTED_NO_RETURN_STATEMENT -}, - -{ - "modifying_sql_data_not_permitted", ERRCODE_S_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED -}, - -{ - "prohibited_sql_statement_attempted", ERRCODE_S_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED -}, - -{ - "reading_sql_data_not_permitted", ERRCODE_S_R_E_READING_SQL_DATA_NOT_PERMITTED -}, - -{ - "invalid_cursor_name", ERRCODE_INVALID_CURSOR_NAME -}, - -{ - "external_routine_exception", ERRCODE_EXTERNAL_ROUTINE_EXCEPTION -}, - -{ - "containing_sql_not_permitted", ERRCODE_E_R_E_CONTAINING_SQL_NOT_PERMITTED -}, - -{ - "modifying_sql_data_not_permitted", ERRCODE_E_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED -}, - -{ - "prohibited_sql_statement_attempted", ERRCODE_E_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED -}, - -{ - "reading_sql_data_not_permitted", ERRCODE_E_R_E_READING_SQL_DATA_NOT_PERMITTED -}, - -{ - "external_routine_invocation_exception", ERRCODE_EXTERNAL_ROUTINE_INVOCATION_EXCEPTION -}, - -{ - "invalid_sqlstate_returned", ERRCODE_E_R_I_E_INVALID_SQLSTATE_RETURNED -}, - -{ - "null_value_not_allowed", ERRCODE_E_R_I_E_NULL_VALUE_NOT_ALLOWED -}, - -{ - "trigger_protocol_violated", ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED -}, - -{ - "srf_protocol_violated", ERRCODE_E_R_I_E_SRF_PROTOCOL_VIOLATED -}, - -{ - "event_trigger_protocol_violated", ERRCODE_E_R_I_E_EVENT_TRIGGER_PROTOCOL_VIOLATED -}, - -{ - "savepoint_exception", ERRCODE_SAVEPOINT_EXCEPTION -}, - -{ - "invalid_savepoint_specification", ERRCODE_S_E_INVALID_SPECIFICATION -}, - -{ - "invalid_catalog_name", ERRCODE_INVALID_CATALOG_NAME -}, - -{ - "invalid_schema_name", ERRCODE_INVALID_SCHEMA_NAME -}, - -{ - "transaction_rollback", ERRCODE_TRANSACTION_ROLLBACK -}, - -{ - "transaction_integrity_constraint_violation", ERRCODE_T_R_INTEGRITY_CONSTRAINT_VIOLATION -}, - -{ - "serialization_failure", ERRCODE_T_R_SERIALIZATION_FAILURE -}, - -{ - "statement_completion_unknown", ERRCODE_T_R_STATEMENT_COMPLETION_UNKNOWN -}, - -{ - "deadlock_detected", ERRCODE_T_R_DEADLOCK_DETECTED -}, - -{ - "syntax_error_or_access_rule_violation", ERRCODE_SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION -}, - -{ - "syntax_error", ERRCODE_SYNTAX_ERROR -}, - -{ - "insufficient_privilege", ERRCODE_INSUFFICIENT_PRIVILEGE -}, - -{ - "cannot_coerce", ERRCODE_CANNOT_COERCE -}, - -{ - "grouping_error", ERRCODE_GROUPING_ERROR -}, - -{ - "windowing_error", ERRCODE_WINDOWING_ERROR -}, - -{ - "invalid_recursion", ERRCODE_INVALID_RECURSION -}, - -{ - "invalid_foreign_key", ERRCODE_INVALID_FOREIGN_KEY -}, - -{ - "invalid_name", ERRCODE_INVALID_NAME -}, - -{ - "name_too_long", ERRCODE_NAME_TOO_LONG -}, - -{ - "reserved_name", ERRCODE_RESERVED_NAME -}, - -{ - "datatype_mismatch", ERRCODE_DATATYPE_MISMATCH -}, - -{ - "indeterminate_datatype", ERRCODE_INDETERMINATE_DATATYPE -}, - -{ - "collation_mismatch", ERRCODE_COLLATION_MISMATCH -}, - -{ - "indeterminate_collation", ERRCODE_INDETERMINATE_COLLATION -}, - -{ - "wrong_object_type", ERRCODE_WRONG_OBJECT_TYPE -}, - -{ - "generated_always", ERRCODE_GENERATED_ALWAYS -}, - -{ - "undefined_column", ERRCODE_UNDEFINED_COLUMN -}, - -{ - "undefined_function", ERRCODE_UNDEFINED_FUNCTION -}, - -{ - "undefined_table", ERRCODE_UNDEFINED_TABLE -}, - -{ - "undefined_parameter", ERRCODE_UNDEFINED_PARAMETER -}, - -{ - "undefined_object", ERRCODE_UNDEFINED_OBJECT -}, - -{ - "duplicate_column", ERRCODE_DUPLICATE_COLUMN -}, - -{ - "duplicate_cursor", ERRCODE_DUPLICATE_CURSOR -}, - -{ - "duplicate_database", ERRCODE_DUPLICATE_DATABASE -}, - -{ - "duplicate_function", ERRCODE_DUPLICATE_FUNCTION -}, - -{ - "duplicate_prepared_statement", ERRCODE_DUPLICATE_PSTATEMENT -}, - -{ - "duplicate_schema", ERRCODE_DUPLICATE_SCHEMA -}, - -{ - "duplicate_table", ERRCODE_DUPLICATE_TABLE -}, - -{ - "duplicate_alias", ERRCODE_DUPLICATE_ALIAS -}, - -{ - "duplicate_object", ERRCODE_DUPLICATE_OBJECT -}, - -{ - "ambiguous_column", ERRCODE_AMBIGUOUS_COLUMN -}, - -{ - "ambiguous_function", ERRCODE_AMBIGUOUS_FUNCTION -}, - -{ - "ambiguous_parameter", ERRCODE_AMBIGUOUS_PARAMETER -}, - -{ - "ambiguous_alias", ERRCODE_AMBIGUOUS_ALIAS -}, - -{ - "invalid_column_reference", ERRCODE_INVALID_COLUMN_REFERENCE -}, - -{ - "invalid_column_definition", ERRCODE_INVALID_COLUMN_DEFINITION -}, - -{ - "invalid_cursor_definition", ERRCODE_INVALID_CURSOR_DEFINITION -}, - -{ - "invalid_database_definition", ERRCODE_INVALID_DATABASE_DEFINITION -}, - -{ - "invalid_function_definition", ERRCODE_INVALID_FUNCTION_DEFINITION -}, - -{ - "invalid_prepared_statement_definition", ERRCODE_INVALID_PSTATEMENT_DEFINITION -}, - -{ - "invalid_schema_definition", ERRCODE_INVALID_SCHEMA_DEFINITION -}, - -{ - "invalid_table_definition", ERRCODE_INVALID_TABLE_DEFINITION -}, - -{ - "invalid_object_definition", ERRCODE_INVALID_OBJECT_DEFINITION -}, - -{ - "with_check_option_violation", ERRCODE_WITH_CHECK_OPTION_VIOLATION -}, - -{ - "insufficient_resources", ERRCODE_INSUFFICIENT_RESOURCES -}, - -{ - "disk_full", ERRCODE_DISK_FULL -}, - -{ - "out_of_memory", ERRCODE_OUT_OF_MEMORY -}, - -{ - "too_many_connections", ERRCODE_TOO_MANY_CONNECTIONS -}, - -{ - "configuration_limit_exceeded", ERRCODE_CONFIGURATION_LIMIT_EXCEEDED -}, - -{ - "program_limit_exceeded", ERRCODE_PROGRAM_LIMIT_EXCEEDED -}, - -{ - "statement_too_complex", ERRCODE_STATEMENT_TOO_COMPLEX -}, - -{ - "too_many_columns", ERRCODE_TOO_MANY_COLUMNS -}, - -{ - "too_many_arguments", ERRCODE_TOO_MANY_ARGUMENTS -}, - -{ - "object_not_in_prerequisite_state", ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE -}, - -{ - "object_in_use", ERRCODE_OBJECT_IN_USE -}, - -{ - "cant_change_runtime_param", ERRCODE_CANT_CHANGE_RUNTIME_PARAM -}, - -{ - "lock_not_available", ERRCODE_LOCK_NOT_AVAILABLE -}, - -{ - "unsafe_new_enum_value_usage", ERRCODE_UNSAFE_NEW_ENUM_VALUE_USAGE -}, - -{ - "operator_intervention", ERRCODE_OPERATOR_INTERVENTION -}, - -{ - "query_canceled", ERRCODE_QUERY_CANCELED -}, - -{ - "admin_shutdown", ERRCODE_ADMIN_SHUTDOWN -}, - -{ - "crash_shutdown", ERRCODE_CRASH_SHUTDOWN -}, - -{ - "cannot_connect_now", ERRCODE_CANNOT_CONNECT_NOW -}, - -{ - "database_dropped", ERRCODE_DATABASE_DROPPED -}, - -{ - "idle_session_timeout", ERRCODE_IDLE_SESSION_TIMEOUT -}, - -{ - "system_error", ERRCODE_SYSTEM_ERROR -}, - -{ - "io_error", ERRCODE_IO_ERROR -}, - -{ - "undefined_file", ERRCODE_UNDEFINED_FILE -}, - -{ - "duplicate_file", ERRCODE_DUPLICATE_FILE -}, - -{ - "snapshot_too_old", ERRCODE_SNAPSHOT_TOO_OLD -}, - -{ - "config_file_error", ERRCODE_CONFIG_FILE_ERROR -}, - -{ - "lock_file_exists", ERRCODE_LOCK_FILE_EXISTS -}, - -{ - "fdw_error", ERRCODE_FDW_ERROR -}, - -{ - "fdw_column_name_not_found", ERRCODE_FDW_COLUMN_NAME_NOT_FOUND -}, - -{ - "fdw_dynamic_parameter_value_needed", ERRCODE_FDW_DYNAMIC_PARAMETER_VALUE_NEEDED -}, - -{ - "fdw_function_sequence_error", ERRCODE_FDW_FUNCTION_SEQUENCE_ERROR -}, - -{ - "fdw_inconsistent_descriptor_information", ERRCODE_FDW_INCONSISTENT_DESCRIPTOR_INFORMATION -}, - -{ - "fdw_invalid_attribute_value", ERRCODE_FDW_INVALID_ATTRIBUTE_VALUE -}, - -{ - "fdw_invalid_column_name", ERRCODE_FDW_INVALID_COLUMN_NAME -}, - -{ - "fdw_invalid_column_number", ERRCODE_FDW_INVALID_COLUMN_NUMBER -}, - -{ - "fdw_invalid_data_type", ERRCODE_FDW_INVALID_DATA_TYPE -}, - -{ - "fdw_invalid_data_type_descriptors", ERRCODE_FDW_INVALID_DATA_TYPE_DESCRIPTORS -}, - -{ - "fdw_invalid_descriptor_field_identifier", ERRCODE_FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER -}, - -{ - "fdw_invalid_handle", ERRCODE_FDW_INVALID_HANDLE -}, - -{ - "fdw_invalid_option_index", ERRCODE_FDW_INVALID_OPTION_INDEX -}, - -{ - "fdw_invalid_option_name", ERRCODE_FDW_INVALID_OPTION_NAME -}, - -{ - "fdw_invalid_string_length_or_buffer_length", ERRCODE_FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH -}, - -{ - "fdw_invalid_string_format", ERRCODE_FDW_INVALID_STRING_FORMAT -}, - -{ - "fdw_invalid_use_of_null_pointer", ERRCODE_FDW_INVALID_USE_OF_NULL_POINTER -}, - -{ - "fdw_too_many_handles", ERRCODE_FDW_TOO_MANY_HANDLES -}, - -{ - "fdw_out_of_memory", ERRCODE_FDW_OUT_OF_MEMORY -}, - -{ - "fdw_no_schemas", ERRCODE_FDW_NO_SCHEMAS -}, - -{ - "fdw_option_name_not_found", ERRCODE_FDW_OPTION_NAME_NOT_FOUND -}, - -{ - "fdw_reply_handle", ERRCODE_FDW_REPLY_HANDLE -}, - -{ - "fdw_schema_not_found", ERRCODE_FDW_SCHEMA_NOT_FOUND -}, - -{ - "fdw_table_not_found", ERRCODE_FDW_TABLE_NOT_FOUND -}, - -{ - "fdw_unable_to_create_execution", ERRCODE_FDW_UNABLE_TO_CREATE_EXECUTION -}, - -{ - "fdw_unable_to_create_reply", ERRCODE_FDW_UNABLE_TO_CREATE_REPLY -}, - -{ - "fdw_unable_to_establish_connection", ERRCODE_FDW_UNABLE_TO_ESTABLISH_CONNECTION -}, - -{ - "plpgsql_error", ERRCODE_PLPGSQL_ERROR -}, - -{ - "raise_exception", ERRCODE_RAISE_EXCEPTION -}, - -{ - "no_data_found", ERRCODE_NO_DATA_FOUND -}, - -{ - "too_many_rows", ERRCODE_TOO_MANY_ROWS -}, - -{ - "assert_failure", ERRCODE_ASSERT_FAILURE -}, - -{ - "internal_error", ERRCODE_INTERNAL_ERROR -}, - -{ - "data_corrupted", ERRCODE_DATA_CORRUPTED -}, - -{ - "index_corrupted", ERRCODE_INDEX_CORRUPTED -}, diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/plpgsql.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/plpgsql.h deleted file mode 100644 index e29e6cf42..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/plpgsql.h +++ /dev/null @@ -1,1345 +0,0 @@ -/*------------------------------------------------------------------------- - * - * plpgsql.h - Definitions for the PL/pgSQL - * procedural language - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * - * IDENTIFICATION - * src/pl/plpgsql/src/plpgsql.h - * - *------------------------------------------------------------------------- - */ - -#ifndef PLPGSQL_H -#define PLPGSQL_H - -#include "access/xact.h" -#include "commands/event_trigger.h" -#include "commands/trigger.h" -#include "executor/spi.h" -#include "utils/expandedrecord.h" -#include "utils/typcache.h" - - -/********************************************************************** - * Definitions - **********************************************************************/ - -/* define our text domain for translations */ -#undef TEXTDOMAIN -#define TEXTDOMAIN PG_TEXTDOMAIN("plpgsql") - -#undef _ -#define _(x) dgettext(TEXTDOMAIN, x) - -/* - * Compiler's namespace item types - */ -typedef enum PLpgSQL_nsitem_type -{ - PLPGSQL_NSTYPE_LABEL, /* block label */ - PLPGSQL_NSTYPE_VAR, /* scalar variable */ - PLPGSQL_NSTYPE_REC /* composite variable */ -} PLpgSQL_nsitem_type; - -/* - * A PLPGSQL_NSTYPE_LABEL stack entry must be one of these types - */ -typedef enum PLpgSQL_label_type -{ - PLPGSQL_LABEL_BLOCK, /* DECLARE/BEGIN block */ - PLPGSQL_LABEL_LOOP, /* looping construct */ - PLPGSQL_LABEL_OTHER /* anything else */ -} PLpgSQL_label_type; - -/* - * Datum array node types - */ -typedef enum PLpgSQL_datum_type -{ - PLPGSQL_DTYPE_VAR, - PLPGSQL_DTYPE_ROW, - PLPGSQL_DTYPE_REC, - PLPGSQL_DTYPE_RECFIELD, - PLPGSQL_DTYPE_PROMISE -} PLpgSQL_datum_type; - -/* - * DTYPE_PROMISE datums have these possible ways of computing the promise - */ -typedef enum PLpgSQL_promise_type -{ - PLPGSQL_PROMISE_NONE = 0, /* not a promise, or promise satisfied */ - PLPGSQL_PROMISE_TG_NAME, - PLPGSQL_PROMISE_TG_WHEN, - PLPGSQL_PROMISE_TG_LEVEL, - PLPGSQL_PROMISE_TG_OP, - PLPGSQL_PROMISE_TG_RELID, - PLPGSQL_PROMISE_TG_TABLE_NAME, - PLPGSQL_PROMISE_TG_TABLE_SCHEMA, - PLPGSQL_PROMISE_TG_NARGS, - PLPGSQL_PROMISE_TG_ARGV, - PLPGSQL_PROMISE_TG_EVENT, - PLPGSQL_PROMISE_TG_TAG -} PLpgSQL_promise_type; - -/* - * Variants distinguished in PLpgSQL_type structs - */ -typedef enum PLpgSQL_type_type -{ - PLPGSQL_TTYPE_SCALAR, /* scalar types and domains */ - PLPGSQL_TTYPE_REC, /* composite types, including RECORD */ - PLPGSQL_TTYPE_PSEUDO /* pseudotypes */ -} PLpgSQL_type_type; - -/* - * Execution tree node types - */ -typedef enum PLpgSQL_stmt_type -{ - PLPGSQL_STMT_BLOCK, - PLPGSQL_STMT_ASSIGN, - PLPGSQL_STMT_IF, - PLPGSQL_STMT_CASE, - PLPGSQL_STMT_LOOP, - PLPGSQL_STMT_WHILE, - PLPGSQL_STMT_FORI, - PLPGSQL_STMT_FORS, - PLPGSQL_STMT_FORC, - PLPGSQL_STMT_FOREACH_A, - PLPGSQL_STMT_EXIT, - PLPGSQL_STMT_RETURN, - PLPGSQL_STMT_RETURN_NEXT, - PLPGSQL_STMT_RETURN_QUERY, - PLPGSQL_STMT_RAISE, - PLPGSQL_STMT_ASSERT, - PLPGSQL_STMT_EXECSQL, - PLPGSQL_STMT_DYNEXECUTE, - PLPGSQL_STMT_DYNFORS, - PLPGSQL_STMT_GETDIAG, - PLPGSQL_STMT_OPEN, - PLPGSQL_STMT_FETCH, - PLPGSQL_STMT_CLOSE, - PLPGSQL_STMT_PERFORM, - PLPGSQL_STMT_CALL, - PLPGSQL_STMT_COMMIT, - PLPGSQL_STMT_ROLLBACK -} PLpgSQL_stmt_type; - -/* - * Execution node return codes - */ -enum -{ - PLPGSQL_RC_OK, - PLPGSQL_RC_EXIT, - PLPGSQL_RC_RETURN, - PLPGSQL_RC_CONTINUE -}; - -/* - * GET DIAGNOSTICS information items - */ -typedef enum PLpgSQL_getdiag_kind -{ - PLPGSQL_GETDIAG_ROW_COUNT, - PLPGSQL_GETDIAG_CONTEXT, - PLPGSQL_GETDIAG_ERROR_CONTEXT, - PLPGSQL_GETDIAG_ERROR_DETAIL, - PLPGSQL_GETDIAG_ERROR_HINT, - PLPGSQL_GETDIAG_RETURNED_SQLSTATE, - PLPGSQL_GETDIAG_COLUMN_NAME, - PLPGSQL_GETDIAG_CONSTRAINT_NAME, - PLPGSQL_GETDIAG_DATATYPE_NAME, - PLPGSQL_GETDIAG_MESSAGE_TEXT, - PLPGSQL_GETDIAG_TABLE_NAME, - PLPGSQL_GETDIAG_SCHEMA_NAME -} PLpgSQL_getdiag_kind; - -/* - * RAISE statement options - */ -typedef enum PLpgSQL_raise_option_type -{ - PLPGSQL_RAISEOPTION_ERRCODE, - PLPGSQL_RAISEOPTION_MESSAGE, - PLPGSQL_RAISEOPTION_DETAIL, - PLPGSQL_RAISEOPTION_HINT, - PLPGSQL_RAISEOPTION_COLUMN, - PLPGSQL_RAISEOPTION_CONSTRAINT, - PLPGSQL_RAISEOPTION_DATATYPE, - PLPGSQL_RAISEOPTION_TABLE, - PLPGSQL_RAISEOPTION_SCHEMA -} PLpgSQL_raise_option_type; - -/* - * Behavioral modes for plpgsql variable resolution - */ -typedef enum PLpgSQL_resolve_option -{ - PLPGSQL_RESOLVE_ERROR, /* throw error if ambiguous */ - PLPGSQL_RESOLVE_VARIABLE, /* prefer plpgsql var to table column */ - PLPGSQL_RESOLVE_COLUMN /* prefer table column to plpgsql var */ -} PLpgSQL_resolve_option; - - -/********************************************************************** - * Node and structure definitions - **********************************************************************/ - -/* - * Postgres data type - */ -typedef struct PLpgSQL_type -{ - char *typname; /* (simple) name of the type */ - Oid typoid; /* OID of the data type */ - PLpgSQL_type_type ttype; /* PLPGSQL_TTYPE_ code */ - int16 typlen; /* stuff copied from its pg_type entry */ - bool typbyval; - char typtype; - Oid collation; /* from pg_type, but can be overridden */ - bool typisarray; /* is "true" array, or domain over one */ - int32 atttypmod; /* typmod (taken from someplace else) */ - /* Remaining fields are used only for named composite types (not RECORD) */ - TypeName *origtypname; /* type name as written by user */ - TypeCacheEntry *tcache; /* typcache entry for composite type */ - uint64 tupdesc_id; /* last-seen tupdesc identifier */ -} PLpgSQL_type; - -/* - * SQL Query to plan and execute - */ -typedef struct PLpgSQL_expr -{ - char *query; /* query string, verbatim from function body */ - RawParseMode parseMode; /* raw_parser() mode to use */ - SPIPlanPtr plan; /* plan, or NULL if not made yet */ - Bitmapset *paramnos; /* all dnos referenced by this query */ - - /* function containing this expr (not set until we first parse query) */ - struct PLpgSQL_function *func; - - /* namespace chain visible to this expr */ - struct PLpgSQL_nsitem *ns; - - /* fields for "simple expression" fast-path execution: */ - Expr *expr_simple_expr; /* NULL means not a simple expr */ - Oid expr_simple_type; /* result type Oid, if simple */ - int32 expr_simple_typmod; /* result typmod, if simple */ - bool expr_simple_mutable; /* true if simple expr is mutable */ - - /* - * These fields are used to optimize assignments to expanded-datum - * variables. If this expression is the source of an assignment to a - * simple variable, target_param holds that variable's dno; else it's -1. - * If we match a Param within expr_simple_expr to such a variable, that - * Param's address is stored in expr_rw_param; then expression code - * generation will allow the value for that Param to be passed read/write. - */ - int target_param; /* dno of assign target, or -1 if none */ - Param *expr_rw_param; /* read/write Param within expr, if any */ - - /* - * If the expression was ever determined to be simple, we remember its - * CachedPlanSource and CachedPlan here. If expr_simple_plan_lxid matches - * current LXID, then we hold a refcount on expr_simple_plan in the - * current transaction. Otherwise we need to get one before re-using it. - */ - CachedPlanSource *expr_simple_plansource; /* extracted from "plan" */ - CachedPlan *expr_simple_plan; /* extracted from "plan" */ - LocalTransactionId expr_simple_plan_lxid; - - /* - * if expr is simple AND prepared in current transaction, - * expr_simple_state and expr_simple_in_use are valid. Test validity by - * seeing if expr_simple_lxid matches current LXID. (If not, - * expr_simple_state probably points at garbage!) - */ - ExprState *expr_simple_state; /* eval tree for expr_simple_expr */ - bool expr_simple_in_use; /* true if eval tree is active */ - LocalTransactionId expr_simple_lxid; -} PLpgSQL_expr; - -/* - * Generic datum array item - * - * PLpgSQL_datum is the common supertype for PLpgSQL_var, PLpgSQL_row, - * PLpgSQL_rec, and PLpgSQL_recfield. - */ -typedef struct PLpgSQL_datum -{ - PLpgSQL_datum_type dtype; - int dno; -} PLpgSQL_datum; - -/* - * Scalar or composite variable - * - * The variants PLpgSQL_var, PLpgSQL_row, and PLpgSQL_rec share these - * fields. - */ -typedef struct PLpgSQL_variable -{ - PLpgSQL_datum_type dtype; - int dno; - char *refname; - int lineno; - bool isconst; - bool notnull; - PLpgSQL_expr *default_val; -} PLpgSQL_variable; - -/* - * Scalar variable - * - * DTYPE_VAR and DTYPE_PROMISE datums both use this struct type. - * A PROMISE datum works exactly like a VAR datum for most purposes, - * but if it is read without having previously been assigned to, then - * a special "promised" value is computed and assigned to the datum - * before the read is performed. This technique avoids the overhead of - * computing the variable's value in cases where we expect that many - * functions will never read it. - */ -typedef struct PLpgSQL_var -{ - PLpgSQL_datum_type dtype; - int dno; - char *refname; - int lineno; - bool isconst; - bool notnull; - PLpgSQL_expr *default_val; - /* end of PLpgSQL_variable fields */ - - PLpgSQL_type *datatype; - - /* - * Variables declared as CURSOR FOR are mostly like ordinary - * scalar variables of type refcursor, but they have these additional - * properties: - */ - PLpgSQL_expr *cursor_explicit_expr; - int cursor_explicit_argrow; - int cursor_options; - - /* Fields below here can change at runtime */ - - Datum value; - bool isnull; - bool freeval; - - /* - * The promise field records which "promised" value to assign if the - * promise must be honored. If it's a normal variable, or the promise has - * been fulfilled, this is PLPGSQL_PROMISE_NONE. - */ - PLpgSQL_promise_type promise; -} PLpgSQL_var; - -/* - * Row variable - this represents one or more variables that are listed in an - * INTO clause, FOR-loop targetlist, cursor argument list, etc. We also use - * a row to represent a function's OUT parameters when there's more than one. - * - * Note that there's no way to name the row as such from PL/pgSQL code, - * so many functions don't need to support these. - * - * That also means that there's no real name for the row variable, so we - * conventionally set refname to "(unnamed row)". We could leave it NULL, - * but it's too convenient to be able to assume that refname is valid in - * all variants of PLpgSQL_variable. - * - * isconst, notnull, and default_val are unsupported (and hence - * always zero/null) for a row. The member variables of a row should have - * been checked to be writable at compile time, so isconst is correctly set - * to false. notnull and default_val aren't applicable. - */ -typedef struct PLpgSQL_row -{ - PLpgSQL_datum_type dtype; - int dno; - char *refname; - int lineno; - bool isconst; - bool notnull; - PLpgSQL_expr *default_val; - /* end of PLpgSQL_variable fields */ - - /* - * rowtupdesc is only set up if we might need to convert the row into a - * composite datum, which currently only happens for OUT parameters. - * Otherwise it is NULL. - */ - TupleDesc rowtupdesc; - - int nfields; - char **fieldnames; - int *varnos; -} PLpgSQL_row; - -/* - * Record variable (any composite type, including RECORD) - */ -typedef struct PLpgSQL_rec -{ - PLpgSQL_datum_type dtype; - int dno; - char *refname; - int lineno; - bool isconst; - bool notnull; - PLpgSQL_expr *default_val; - /* end of PLpgSQL_variable fields */ - - /* - * Note: for non-RECORD cases, we may from time to time re-look-up the - * composite type, using datatype->origtypname. That can result in - * changing rectypeid. - */ - - PLpgSQL_type *datatype; /* can be NULL, if rectypeid is RECORDOID */ - Oid rectypeid; /* declared type of variable */ - /* RECFIELDs for this record are chained together for easy access */ - int firstfield; /* dno of first RECFIELD, or -1 if none */ - - /* Fields below here can change at runtime */ - - /* We always store record variables as "expanded" records */ - ExpandedRecordHeader *erh; -} PLpgSQL_rec; - -/* - * Field in record - */ -typedef struct PLpgSQL_recfield -{ - PLpgSQL_datum_type dtype; - int dno; - /* end of PLpgSQL_datum fields */ - - char *fieldname; /* name of field */ - int recparentno; /* dno of parent record */ - int nextfield; /* dno of next child, or -1 if none */ - uint64 rectupledescid; /* record's tupledesc ID as of last lookup */ - ExpandedRecordFieldInfo finfo; /* field's attnum and type info */ - /* if rectupledescid == INVALID_TUPLEDESC_IDENTIFIER, finfo isn't valid */ -} PLpgSQL_recfield; - -/* - * Item in the compilers namespace tree - */ -typedef struct PLpgSQL_nsitem -{ - PLpgSQL_nsitem_type itemtype; - - /* - * For labels, itemno is a value of enum PLpgSQL_label_type. For other - * itemtypes, itemno is the associated PLpgSQL_datum's dno. - */ - int itemno; - struct PLpgSQL_nsitem *prev; - char name[FLEXIBLE_ARRAY_MEMBER]; /* nul-terminated string */ -} PLpgSQL_nsitem; - -/* - * Generic execution node - */ -typedef struct PLpgSQL_stmt -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - - /* - * Unique statement ID in this function (starting at 1; 0 is invalid/not - * set). This can be used by a profiler as the index for an array of - * per-statement metrics. - */ - unsigned int stmtid; -} PLpgSQL_stmt; - -/* - * One EXCEPTION condition name - */ -typedef struct PLpgSQL_condition -{ - int sqlerrstate; /* SQLSTATE code */ - char *condname; /* condition name (for debugging) */ - struct PLpgSQL_condition *next; -} PLpgSQL_condition; - -/* - * EXCEPTION block - */ -typedef struct PLpgSQL_exception_block -{ - int sqlstate_varno; - int sqlerrm_varno; - List *exc_list; /* List of WHEN clauses */ -} PLpgSQL_exception_block; - -/* - * One EXCEPTION ... WHEN clause - */ -typedef struct PLpgSQL_exception -{ - int lineno; - PLpgSQL_condition *conditions; - List *action; /* List of statements */ -} PLpgSQL_exception; - -/* - * Block of statements - */ -typedef struct PLpgSQL_stmt_block -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - char *label; - List *body; /* List of statements */ - int n_initvars; /* Length of initvarnos[] */ - int *initvarnos; /* dnos of variables declared in this block */ - PLpgSQL_exception_block *exceptions; -} PLpgSQL_stmt_block; - -/* - * Assign statement - */ -typedef struct PLpgSQL_stmt_assign -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - int varno; - PLpgSQL_expr *expr; -} PLpgSQL_stmt_assign; - -/* - * PERFORM statement - */ -typedef struct PLpgSQL_stmt_perform -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - PLpgSQL_expr *expr; -} PLpgSQL_stmt_perform; - -/* - * CALL statement - */ -typedef struct PLpgSQL_stmt_call -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - PLpgSQL_expr *expr; - bool is_call; - PLpgSQL_variable *target; -} PLpgSQL_stmt_call; - -/* - * COMMIT statement - */ -typedef struct PLpgSQL_stmt_commit -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - bool chain; -} PLpgSQL_stmt_commit; - -/* - * ROLLBACK statement - */ -typedef struct PLpgSQL_stmt_rollback -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - bool chain; -} PLpgSQL_stmt_rollback; - -/* - * GET DIAGNOSTICS item - */ -typedef struct PLpgSQL_diag_item -{ - PLpgSQL_getdiag_kind kind; /* id for diagnostic value desired */ - int target; /* where to assign it */ -} PLpgSQL_diag_item; - -/* - * GET DIAGNOSTICS statement - */ -typedef struct PLpgSQL_stmt_getdiag -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - bool is_stacked; /* STACKED or CURRENT diagnostics area? */ - List *diag_items; /* List of PLpgSQL_diag_item */ -} PLpgSQL_stmt_getdiag; - -/* - * IF statement - */ -typedef struct PLpgSQL_stmt_if -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - PLpgSQL_expr *cond; /* boolean expression for THEN */ - List *then_body; /* List of statements */ - List *elsif_list; /* List of PLpgSQL_if_elsif structs */ - List *else_body; /* List of statements */ -} PLpgSQL_stmt_if; - -/* - * one ELSIF arm of IF statement - */ -typedef struct PLpgSQL_if_elsif -{ - int lineno; - PLpgSQL_expr *cond; /* boolean expression for this case */ - List *stmts; /* List of statements */ -} PLpgSQL_if_elsif; - -/* - * CASE statement - */ -typedef struct PLpgSQL_stmt_case -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - PLpgSQL_expr *t_expr; /* test expression, or NULL if none */ - int t_varno; /* var to store test expression value into */ - List *case_when_list; /* List of PLpgSQL_case_when structs */ - bool have_else; /* flag needed because list could be empty */ - List *else_stmts; /* List of statements */ -} PLpgSQL_stmt_case; - -/* - * one arm of CASE statement - */ -typedef struct PLpgSQL_case_when -{ - int lineno; - PLpgSQL_expr *expr; /* boolean expression for this case */ - List *stmts; /* List of statements */ -} PLpgSQL_case_when; - -/* - * Unconditional LOOP statement - */ -typedef struct PLpgSQL_stmt_loop -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - char *label; - List *body; /* List of statements */ -} PLpgSQL_stmt_loop; - -/* - * WHILE cond LOOP statement - */ -typedef struct PLpgSQL_stmt_while -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - char *label; - PLpgSQL_expr *cond; - List *body; /* List of statements */ -} PLpgSQL_stmt_while; - -/* - * FOR statement with integer loopvar - */ -typedef struct PLpgSQL_stmt_fori -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - char *label; - PLpgSQL_var *var; - PLpgSQL_expr *lower; - PLpgSQL_expr *upper; - PLpgSQL_expr *step; /* NULL means default (ie, BY 1) */ - int reverse; - List *body; /* List of statements */ -} PLpgSQL_stmt_fori; - -/* - * PLpgSQL_stmt_forq represents a FOR statement running over a SQL query. - * It is the common supertype of PLpgSQL_stmt_fors, PLpgSQL_stmt_forc - * and PLpgSQL_stmt_dynfors. - */ -typedef struct PLpgSQL_stmt_forq -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - char *label; - PLpgSQL_variable *var; /* Loop variable (record or row) */ - List *body; /* List of statements */ -} PLpgSQL_stmt_forq; - -/* - * FOR statement running over SELECT - */ -typedef struct PLpgSQL_stmt_fors -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - char *label; - PLpgSQL_variable *var; /* Loop variable (record or row) */ - List *body; /* List of statements */ - /* end of fields that must match PLpgSQL_stmt_forq */ - PLpgSQL_expr *query; -} PLpgSQL_stmt_fors; - -/* - * FOR statement running over cursor - */ -typedef struct PLpgSQL_stmt_forc -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - char *label; - PLpgSQL_variable *var; /* Loop variable (record or row) */ - List *body; /* List of statements */ - /* end of fields that must match PLpgSQL_stmt_forq */ - int curvar; - PLpgSQL_expr *argquery; /* cursor arguments if any */ -} PLpgSQL_stmt_forc; - -/* - * FOR statement running over EXECUTE - */ -typedef struct PLpgSQL_stmt_dynfors -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - char *label; - PLpgSQL_variable *var; /* Loop variable (record or row) */ - List *body; /* List of statements */ - /* end of fields that must match PLpgSQL_stmt_forq */ - PLpgSQL_expr *query; - List *params; /* USING expressions */ -} PLpgSQL_stmt_dynfors; - -/* - * FOREACH item in array loop - */ -typedef struct PLpgSQL_stmt_foreach_a -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - char *label; - int varno; /* loop target variable */ - int slice; /* slice dimension, or 0 */ - PLpgSQL_expr *expr; /* array expression */ - List *body; /* List of statements */ -} PLpgSQL_stmt_foreach_a; - -/* - * OPEN a curvar - */ -typedef struct PLpgSQL_stmt_open -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - int curvar; - int cursor_options; - PLpgSQL_expr *argquery; - PLpgSQL_expr *query; - PLpgSQL_expr *dynquery; - List *params; /* USING expressions */ -} PLpgSQL_stmt_open; - -/* - * FETCH or MOVE statement - */ -typedef struct PLpgSQL_stmt_fetch -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - PLpgSQL_variable *target; /* target (record or row) */ - int curvar; /* cursor variable to fetch from */ - FetchDirection direction; /* fetch direction */ - long how_many; /* count, if constant (expr is NULL) */ - PLpgSQL_expr *expr; /* count, if expression */ - bool is_move; /* is this a fetch or move? */ - bool returns_multiple_rows; /* can return more than one row? */ -} PLpgSQL_stmt_fetch; - -/* - * CLOSE curvar - */ -typedef struct PLpgSQL_stmt_close -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - int curvar; -} PLpgSQL_stmt_close; - -/* - * EXIT or CONTINUE statement - */ -typedef struct PLpgSQL_stmt_exit -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - bool is_exit; /* Is this an exit or a continue? */ - char *label; /* NULL if it's an unlabeled EXIT/CONTINUE */ - PLpgSQL_expr *cond; -} PLpgSQL_stmt_exit; - -/* - * RETURN statement - */ -typedef struct PLpgSQL_stmt_return -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - PLpgSQL_expr *expr; - int retvarno; -} PLpgSQL_stmt_return; - -/* - * RETURN NEXT statement - */ -typedef struct PLpgSQL_stmt_return_next -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - PLpgSQL_expr *expr; - int retvarno; -} PLpgSQL_stmt_return_next; - -/* - * RETURN QUERY statement - */ -typedef struct PLpgSQL_stmt_return_query -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - PLpgSQL_expr *query; /* if static query */ - PLpgSQL_expr *dynquery; /* if dynamic query (RETURN QUERY EXECUTE) */ - List *params; /* USING arguments for dynamic query */ -} PLpgSQL_stmt_return_query; - -/* - * RAISE statement - */ -typedef struct PLpgSQL_stmt_raise -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - int elog_level; - char *condname; /* condition name, SQLSTATE, or NULL */ - char *message; /* old-style message format literal, or NULL */ - List *params; /* list of expressions for old-style message */ - List *options; /* list of PLpgSQL_raise_option */ -} PLpgSQL_stmt_raise; - -/* - * RAISE statement option - */ -typedef struct PLpgSQL_raise_option -{ - PLpgSQL_raise_option_type opt_type; - PLpgSQL_expr *expr; -} PLpgSQL_raise_option; - -/* - * ASSERT statement - */ -typedef struct PLpgSQL_stmt_assert -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - PLpgSQL_expr *cond; - PLpgSQL_expr *message; -} PLpgSQL_stmt_assert; - -/* - * Generic SQL statement to execute - */ -typedef struct PLpgSQL_stmt_execsql -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - PLpgSQL_expr *sqlstmt; - bool mod_stmt; /* is the stmt INSERT/UPDATE/DELETE/MERGE? */ - bool mod_stmt_set; /* is mod_stmt valid yet? */ - bool into; /* INTO supplied? */ - bool strict; /* INTO STRICT flag */ - PLpgSQL_variable *target; /* INTO target (record or row) */ -} PLpgSQL_stmt_execsql; - -/* - * Dynamic SQL string to execute - */ -typedef struct PLpgSQL_stmt_dynexecute -{ - PLpgSQL_stmt_type cmd_type; - int lineno; - unsigned int stmtid; - PLpgSQL_expr *query; /* string expression */ - bool into; /* INTO supplied? */ - bool strict; /* INTO STRICT flag */ - PLpgSQL_variable *target; /* INTO target (record or row) */ - List *params; /* USING expressions */ -} PLpgSQL_stmt_dynexecute; - -/* - * Hash lookup key for functions - */ -typedef struct PLpgSQL_func_hashkey -{ - Oid funcOid; - - bool isTrigger; /* true if called as a DML trigger */ - bool isEventTrigger; /* true if called as an event trigger */ - - /* be careful that pad bytes in this struct get zeroed! */ - - /* - * For a trigger function, the OID of the trigger is part of the hash key - * --- we want to compile the trigger function separately for each trigger - * it is used with, in case the rowtype or transition table names are - * different. Zero if not called as a DML trigger. - */ - Oid trigOid; - - /* - * We must include the input collation as part of the hash key too, - * because we have to generate different plans (with different Param - * collations) for different collation settings. - */ - Oid inputCollation; - - /* - * We include actual argument types in the hash key to support polymorphic - * PLpgSQL functions. Be careful that extra positions are zeroed! - */ - Oid argtypes[FUNC_MAX_ARGS]; -} PLpgSQL_func_hashkey; - -/* - * Trigger type - */ -typedef enum PLpgSQL_trigtype -{ - PLPGSQL_DML_TRIGGER, - PLPGSQL_EVENT_TRIGGER, - PLPGSQL_NOT_TRIGGER -} PLpgSQL_trigtype; - -/* - * Complete compiled function - */ -typedef struct PLpgSQL_function -{ - char *fn_signature; - Oid fn_oid; - TransactionId fn_xmin; - ItemPointerData fn_tid; - PLpgSQL_trigtype fn_is_trigger; - Oid fn_input_collation; - PLpgSQL_func_hashkey *fn_hashkey; /* back-link to hashtable key */ - MemoryContext fn_cxt; - - Oid fn_rettype; - int fn_rettyplen; - bool fn_retbyval; - bool fn_retistuple; - bool fn_retisdomain; - bool fn_retset; - bool fn_readonly; - char fn_prokind; - - int fn_nargs; - int fn_argvarnos[FUNC_MAX_ARGS]; - int out_param_varno; - int found_varno; - int new_varno; - int old_varno; - - PLpgSQL_resolve_option resolve_option; - - bool print_strict_params; - - /* extra checks */ - int extra_warnings; - int extra_errors; - - /* the datums representing the function's local variables */ - int ndatums; - PLpgSQL_datum **datums; - Size copiable_size; /* space for locally instantiated datums */ - - /* function body parsetree */ - PLpgSQL_stmt_block *action; - - /* data derived while parsing body */ - unsigned int nstatements; /* counter for assigning stmtids */ - bool requires_procedure_resowner; /* contains CALL or DO? */ - - /* these fields change when the function is used */ - struct PLpgSQL_execstate *cur_estate; - unsigned long use_count; -} PLpgSQL_function; - -/* - * Runtime execution data - */ -typedef struct PLpgSQL_execstate -{ - PLpgSQL_function *func; /* function being executed */ - - TriggerData *trigdata; /* if regular trigger, data about firing */ - EventTriggerData *evtrigdata; /* if event trigger, data about firing */ - - Datum retval; - bool retisnull; - Oid rettype; /* type of current retval */ - - Oid fn_rettype; /* info about declared function rettype */ - bool retistuple; - bool retisset; - - bool readonly_func; - bool atomic; - - char *exitlabel; /* the "target" label of the current EXIT or - * CONTINUE stmt, if any */ - ErrorData *cur_error; /* current exception handler's error */ - - Tuplestorestate *tuple_store; /* SRFs accumulate results here */ - TupleDesc tuple_store_desc; /* descriptor for tuples in tuple_store */ - MemoryContext tuple_store_cxt; - ResourceOwner tuple_store_owner; - ReturnSetInfo *rsi; - - int found_varno; - - /* - * The datums representing the function's local variables. Some of these - * are local storage in this execstate, but some just point to the shared - * copy belonging to the PLpgSQL_function, depending on whether or not we - * need any per-execution state for the datum's dtype. - */ - int ndatums; - PLpgSQL_datum **datums; - /* context containing variable values (same as func's SPI_proc context) */ - MemoryContext datum_context; - - /* - * paramLI is what we use to pass local variable values to the executor. - * It does not have a ParamExternData array; we just dynamically - * instantiate parameter data as needed. By convention, PARAM_EXTERN - * Params have paramid equal to the dno of the referenced local variable. - */ - ParamListInfo paramLI; - - /* EState and resowner to use for "simple" expression evaluation */ - EState *simple_eval_estate; - ResourceOwner simple_eval_resowner; - - /* if running nonatomic procedure or DO block, resowner to use for CALL */ - ResourceOwner procedure_resowner; - - /* lookup table to use for executing type casts */ - HTAB *cast_hash; - MemoryContext cast_hash_context; - - /* memory context for statement-lifespan temporary values */ - MemoryContext stmt_mcontext; /* current stmt context, or NULL if none */ - MemoryContext stmt_mcontext_parent; /* parent of current context */ - - /* temporary state for results from evaluation of query or expr */ - SPITupleTable *eval_tuptable; - uint64 eval_processed; - ExprContext *eval_econtext; /* for executing simple expressions */ - - /* status information for error context reporting */ - PLpgSQL_stmt *err_stmt; /* current stmt */ - PLpgSQL_variable *err_var; /* current variable, if in a DECLARE section */ - const char *err_text; /* additional state info */ - - void *plugin_info; /* reserved for use by optional plugin */ -} PLpgSQL_execstate; - -/* - * A PLpgSQL_plugin structure represents an instrumentation plugin. - * To instrument PL/pgSQL, a plugin library must access the rendezvous - * variable "PLpgSQL_plugin" and set it to point to a PLpgSQL_plugin struct. - * Typically the struct could just be static data in the plugin library. - * We expect that a plugin would do this at library load time (_PG_init()). - * - * This structure is basically a collection of function pointers --- at - * various interesting points in pl_exec.c, we call these functions - * (if the pointers are non-NULL) to give the plugin a chance to watch - * what we are doing. - * - * func_setup is called when we start a function, before we've initialized - * the local variables defined by the function. - * - * func_beg is called when we start a function, after we've initialized - * the local variables. - * - * func_end is called at the end of a function. - * - * stmt_beg and stmt_end are called before and after (respectively) each - * statement. - * - * Also, immediately before any call to func_setup, PL/pgSQL fills in the - * remaining fields with pointers to some of its own functions, allowing the - * plugin to invoke those functions conveniently. The exposed functions are: - * plpgsql_exec_error_callback - * exec_assign_expr - * exec_assign_value - * exec_eval_datum - * exec_cast_value - * (plpgsql_exec_error_callback is not actually meant to be called by the - * plugin, but rather to allow it to identify PL/pgSQL error context stack - * frames. The others are useful for debugger-like plugins to examine and - * set variables.) - */ -typedef struct PLpgSQL_plugin -{ - /* Function pointers set up by the plugin */ - void (*func_setup) (PLpgSQL_execstate *estate, PLpgSQL_function *func); - void (*func_beg) (PLpgSQL_execstate *estate, PLpgSQL_function *func); - void (*func_end) (PLpgSQL_execstate *estate, PLpgSQL_function *func); - void (*stmt_beg) (PLpgSQL_execstate *estate, PLpgSQL_stmt *stmt); - void (*stmt_end) (PLpgSQL_execstate *estate, PLpgSQL_stmt *stmt); - - /* Function pointers set by PL/pgSQL itself */ - void (*error_callback) (void *arg); - void (*assign_expr) (PLpgSQL_execstate *estate, - PLpgSQL_datum *target, - PLpgSQL_expr *expr); - void (*assign_value) (PLpgSQL_execstate *estate, - PLpgSQL_datum *target, - Datum value, bool isNull, - Oid valtype, int32 valtypmod); - void (*eval_datum) (PLpgSQL_execstate *estate, PLpgSQL_datum *datum, - Oid *typeId, int32 *typetypmod, - Datum *value, bool *isnull); - Datum (*cast_value) (PLpgSQL_execstate *estate, - Datum value, bool *isnull, - Oid valtype, int32 valtypmod, - Oid reqtype, int32 reqtypmod); -} PLpgSQL_plugin; - -/* - * Struct types used during parsing - */ - -typedef struct PLword -{ - char *ident; /* palloc'd converted identifier */ - bool quoted; /* Was it double-quoted? */ -} PLword; - -typedef struct PLcword -{ - List *idents; /* composite identifiers (list of String) */ -} PLcword; - -typedef struct PLwdatum -{ - PLpgSQL_datum *datum; /* referenced variable */ - char *ident; /* valid if simple name */ - bool quoted; - List *idents; /* valid if composite name */ -} PLwdatum; - -/********************************************************************** - * Global variable declarations - **********************************************************************/ - -typedef enum -{ - IDENTIFIER_LOOKUP_NORMAL, /* normal processing of var names */ - IDENTIFIER_LOOKUP_DECLARE, /* In DECLARE --- don't look up names */ - IDENTIFIER_LOOKUP_EXPR /* In SQL expression --- special case */ -} IdentifierLookup; - -extern __thread IdentifierLookup plpgsql_IdentifierLookup; - -extern __thread int plpgsql_variable_conflict; - -extern __thread bool plpgsql_print_strict_params; - -extern bool plpgsql_check_asserts; - -/* extra compile-time and run-time checks */ -#define PLPGSQL_XCHECK_NONE 0 -#define PLPGSQL_XCHECK_SHADOWVAR (1 << 1) -#define PLPGSQL_XCHECK_TOOMANYROWS (1 << 2) -#define PLPGSQL_XCHECK_STRICTMULTIASSIGNMENT (1 << 3) -#define PLPGSQL_XCHECK_ALL ((int) ~0) - -extern int plpgsql_extra_warnings; -extern int plpgsql_extra_errors; - -extern __thread bool plpgsql_check_syntax; -extern __thread bool plpgsql_DumpExecTree; - -extern __thread PLpgSQL_stmt_block *plpgsql_parse_result; - -extern __thread int plpgsql_nDatums; -extern __thread PLpgSQL_datum **plpgsql_Datums; - -extern __thread char *plpgsql_error_funcname; - -extern __thread PLpgSQL_function *plpgsql_curr_compile; -extern __thread MemoryContext plpgsql_compile_tmp_cxt; - -extern PLpgSQL_plugin **plpgsql_plugin_ptr; - -/********************************************************************** - * Function declarations - **********************************************************************/ - -/* - * Functions in pl_comp.c - */ -extern PLpgSQL_function *plpgsql_compile(FunctionCallInfo fcinfo, - bool forValidator); -extern PLpgSQL_function *plpgsql_compile_inline(char *proc_source); -extern void plpgsql_parser_setup(struct ParseState *pstate, - PLpgSQL_expr *expr); -extern bool plpgsql_parse_word(char *word1, const char *yytxt, bool lookup, - PLwdatum *wdatum, PLword *word); -extern bool plpgsql_parse_dblword(char *word1, char *word2, - PLwdatum *wdatum, PLcword *cword); -extern bool plpgsql_parse_tripword(char *word1, char *word2, char *word3, - PLwdatum *wdatum, PLcword *cword); -extern PLpgSQL_type *plpgsql_parse_wordtype(char *ident); -extern PLpgSQL_type *plpgsql_parse_cwordtype(List *idents); -extern PLpgSQL_type *plpgsql_parse_wordrowtype(char *ident); -extern PLpgSQL_type *plpgsql_parse_cwordrowtype(List *idents); -extern PLpgSQL_type *plpgsql_build_datatype(Oid typeOid, int32 typmod, - Oid collation, - TypeName *origtypname); -extern PLpgSQL_variable *plpgsql_build_variable(const char *refname, int lineno, - PLpgSQL_type *dtype, - bool add2namespace); -extern PLpgSQL_rec *plpgsql_build_record(const char *refname, int lineno, - PLpgSQL_type *dtype, Oid rectypeid, - bool add2namespace); -extern PLpgSQL_recfield *plpgsql_build_recfield(PLpgSQL_rec *rec, - const char *fldname); -extern int plpgsql_recognize_err_condition(const char *condname, - bool allow_sqlstate); -extern PLpgSQL_condition *plpgsql_parse_err_condition(char *condname); -extern void plpgsql_start_datums(void); -extern void plpgsql_finish_datums(PLpgSQL_function *function); -extern void plpgsql_adddatum(PLpgSQL_datum *newdatum); -extern int plpgsql_add_initdatums(int **varnos); -extern void plpgsql_HashTableInit(void); - -/* - * Functions in pl_handler.c - */ -extern void _PG_init(void); - -/* - * Functions in pl_exec.c - */ -extern Datum plpgsql_exec_function(PLpgSQL_function *func, - FunctionCallInfo fcinfo, - EState *simple_eval_estate, - ResourceOwner simple_eval_resowner, - ResourceOwner procedure_resowner, - bool atomic); -extern HeapTuple plpgsql_exec_trigger(PLpgSQL_function *func, - TriggerData *trigdata); -extern void plpgsql_exec_event_trigger(PLpgSQL_function *func, - EventTriggerData *trigdata); -extern void plpgsql_xact_cb(XactEvent event, void *arg); -extern void plpgsql_subxact_cb(SubXactEvent event, SubTransactionId mySubid, - SubTransactionId parentSubid, void *arg); -extern Oid plpgsql_exec_get_datum_type(PLpgSQL_execstate *estate, - PLpgSQL_datum *datum); -extern void plpgsql_exec_get_datum_type_info(PLpgSQL_execstate *estate, - PLpgSQL_datum *datum, - Oid *typeId, int32 *typMod, - Oid *collation); - -/* - * Functions for namespace handling in pl_funcs.c - */ -extern void plpgsql_ns_init(void); -extern void plpgsql_ns_push(const char *label, - PLpgSQL_label_type label_type); -extern void plpgsql_ns_pop(void); -extern PLpgSQL_nsitem *plpgsql_ns_top(void); -extern void plpgsql_ns_additem(PLpgSQL_nsitem_type itemtype, int itemno, const char *name); -extern PLpgSQL_nsitem *plpgsql_ns_lookup(PLpgSQL_nsitem *ns_cur, bool localmode, - const char *name1, const char *name2, - const char *name3, int *names_used); -extern PLpgSQL_nsitem *plpgsql_ns_lookup_label(PLpgSQL_nsitem *ns_cur, - const char *name); -extern PLpgSQL_nsitem *plpgsql_ns_find_nearest_loop(PLpgSQL_nsitem *ns_cur); - -/* - * Other functions in pl_funcs.c - */ -extern const char *plpgsql_stmt_typename(PLpgSQL_stmt *stmt); -extern const char *plpgsql_getdiag_kindname(PLpgSQL_getdiag_kind kind); -extern void plpgsql_free_function_memory(PLpgSQL_function *func); -extern void plpgsql_dumptree(PLpgSQL_function *func); - -/* - * Scanner functions in pl_scanner.c - */ -extern int plpgsql_base_yylex(void); -extern int plpgsql_yylex(void); -extern void plpgsql_push_back_token(int token); -extern bool plpgsql_token_is_unreserved_keyword(int token); -extern void plpgsql_append_source_text(StringInfo buf, - int startlocation, int endlocation); -extern int plpgsql_peek(void); -extern void plpgsql_peek2(int *tok1_p, int *tok2_p, int *tok1_loc, - int *tok2_loc); -extern int plpgsql_scanner_errposition(int location); -extern void plpgsql_yyerror(const char *message) pg_attribute_noreturn(); -extern int plpgsql_location_to_lineno(int location); -extern int plpgsql_latest_lineno(void); -extern void plpgsql_scanner_init(const char *str); -extern void plpgsql_scanner_finish(void); - -/* - * Externs in gram.y - */ -extern int plpgsql_yyparse(void); - -#endif /* PLPGSQL_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port.h deleted file mode 100644 index 9f357612b..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port.h +++ /dev/null @@ -1,553 +0,0 @@ -/*------------------------------------------------------------------------- - * - * port.h - * Header for src/port/ compatibility functions. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/port.h - * - *------------------------------------------------------------------------- - */ -#ifndef PG_PORT_H -#define PG_PORT_H - -#include - -/* - * Windows has enough specialized port stuff that we push most of it off - * into another file. - * Note: Some CYGWIN includes might #define WIN32. - */ -#if defined(WIN32) && !defined(__CYGWIN__) -#include "port/win32_port.h" -#endif - -/* socket has a different definition on WIN32 */ -#ifndef WIN32 -typedef int pgsocket; - -#define PGINVALID_SOCKET (-1) -#else -typedef SOCKET pgsocket; - -#define PGINVALID_SOCKET INVALID_SOCKET -#endif - -/* if platform lacks socklen_t, we assume this will work */ -#ifndef HAVE_SOCKLEN_T -typedef unsigned int socklen_t; -#endif - -/* non-blocking */ -extern bool pg_set_noblock(pgsocket sock); -extern bool pg_set_block(pgsocket sock); - -/* Portable path handling for Unix/Win32 (in path.c) */ - -extern bool has_drive_prefix(const char *filename); -extern char *first_dir_separator(const char *filename); -extern char *last_dir_separator(const char *filename); -extern char *first_path_var_separator(const char *pathlist); -extern void join_path_components(char *ret_path, - const char *head, const char *tail); -extern void canonicalize_path(char *path); -extern void make_native_path(char *path); -extern void cleanup_path(char *path); -extern bool path_contains_parent_reference(const char *path); -extern bool path_is_relative_and_below_cwd(const char *path); -extern bool path_is_prefix_of_path(const char *path1, const char *path2); -extern char *make_absolute_path(const char *path); -extern const char *get_progname(const char *argv0); -extern void get_share_path(const char *my_exec_path, char *ret_path); -extern void get_etc_path(const char *my_exec_path, char *ret_path); -extern void get_include_path(const char *my_exec_path, char *ret_path); -extern void get_pkginclude_path(const char *my_exec_path, char *ret_path); -extern void get_includeserver_path(const char *my_exec_path, char *ret_path); -extern void get_lib_path(const char *my_exec_path, char *ret_path); -extern void get_pkglib_path(const char *my_exec_path, char *ret_path); -extern void get_locale_path(const char *my_exec_path, char *ret_path); -extern void get_doc_path(const char *my_exec_path, char *ret_path); -extern void get_html_path(const char *my_exec_path, char *ret_path); -extern void get_man_path(const char *my_exec_path, char *ret_path); -extern bool get_home_path(char *ret_path); -extern void get_parent_directory(char *path); - -/* common/pgfnames.c */ -extern char **pgfnames(const char *path); -extern void pgfnames_cleanup(char **filenames); - -#define IS_NONWINDOWS_DIR_SEP(ch) ((ch) == '/') -#define is_nonwindows_absolute_path(filename) \ -( \ - IS_NONWINDOWS_DIR_SEP((filename)[0]) \ -) - -#define IS_WINDOWS_DIR_SEP(ch) ((ch) == '/' || (ch) == '\\') -/* See path_is_relative_and_below_cwd() for how we handle 'E:abc'. */ -#define is_windows_absolute_path(filename) \ -( \ - IS_WINDOWS_DIR_SEP((filename)[0]) || \ - (isalpha((unsigned char) ((filename)[0])) && (filename)[1] == ':' && \ - IS_WINDOWS_DIR_SEP((filename)[2])) \ -) - -/* - * is_absolute_path and IS_DIR_SEP - * - * By using macros here we avoid needing to include path.c in libpq. - */ -#ifndef WIN32 -#define IS_DIR_SEP(ch) IS_NONWINDOWS_DIR_SEP(ch) -#define is_absolute_path(filename) is_nonwindows_absolute_path(filename) -#else -#define IS_DIR_SEP(ch) IS_WINDOWS_DIR_SEP(ch) -#define is_absolute_path(filename) is_windows_absolute_path(filename) -#endif - -/* - * This macro provides a centralized list of all errnos that identify - * hard failure of a previously-established network connection. - * The macro is intended to be used in a switch statement, in the form - * "case ALL_CONNECTION_FAILURE_ERRNOS:". - * - * Note: this groups EPIPE and ECONNRESET, which we take to indicate a - * probable server crash, with other errors that indicate loss of network - * connectivity without proving much about the server's state. Places that - * are actually reporting errors typically single out EPIPE and ECONNRESET, - * while allowing the network failures to be reported generically. - */ -#define ALL_CONNECTION_FAILURE_ERRNOS \ - EPIPE: \ - case ECONNRESET: \ - case ECONNABORTED: \ - case EHOSTDOWN: \ - case EHOSTUNREACH: \ - case ENETDOWN: \ - case ENETRESET: \ - case ENETUNREACH: \ - case ETIMEDOUT - -/* Portable locale initialization (in exec.c) */ -extern void set_pglocale_pgservice(const char *argv0, const char *app); - -/* Portable way to find and execute binaries (in exec.c) */ -extern int validate_exec(const char *path); -extern int find_my_exec(const char *argv0, char *retpath); -extern int find_other_exec(const char *argv0, const char *target, - const char *versionstr, char *retpath); -extern char *pipe_read_line(char *cmd, char *line, int maxsize); - -/* Doesn't belong here, but this is used with find_other_exec(), so... */ -#define PG_BACKEND_VERSIONSTR "postgres (PostgreSQL) " PG_VERSION "\n" - -#ifdef EXEC_BACKEND -/* Disable ASLR before exec, for developer builds only (in exec.c) */ -extern int pg_disable_aslr(void); -#endif - - -#if defined(WIN32) || defined(__CYGWIN__) -#define EXE ".exe" -#else -#define EXE "" -#endif - -#if defined(WIN32) && !defined(__CYGWIN__) -#define DEVNULL "nul" -#else -#define DEVNULL "/dev/null" -#endif - -/* Portable delay handling */ -extern void pg_usleep(long microsec); - -/* Portable SQL-like case-independent comparisons and conversions */ -extern int pg_strcasecmp(const char *s1, const char *s2); -extern int pg_strncasecmp(const char *s1, const char *s2, size_t n); -extern unsigned char pg_toupper(unsigned char ch); -extern unsigned char pg_tolower(unsigned char ch); -extern unsigned char pg_ascii_toupper(unsigned char ch); -extern unsigned char pg_ascii_tolower(unsigned char ch); - -/* - * Beginning in v12, we always replace snprintf() and friends with our own - * implementation. This symbol is no longer consulted by the core code, - * but keep it defined anyway in case any extensions are looking at it. - */ -#define USE_REPL_SNPRINTF 1 - -/* - * Versions of libintl >= 0.13 try to replace printf() and friends with - * macros to their own versions that understand the %$ format. We do the - * same, so disable their macros, if they exist. - */ -#ifdef vsnprintf -#undef vsnprintf -#endif -#ifdef snprintf -#undef snprintf -#endif -#ifdef vsprintf -#undef vsprintf -#endif -#ifdef sprintf -#undef sprintf -#endif -#ifdef vfprintf -#undef vfprintf -#endif -#ifdef fprintf -#undef fprintf -#endif -#ifdef vprintf -#undef vprintf -#endif -#ifdef printf -#undef printf -#endif - -extern int pg_vsnprintf(char *str, size_t count, const char *fmt, va_list args); -extern int pg_snprintf(char *str, size_t count, const char *fmt,...) pg_attribute_printf(3, 4); -extern int pg_vsprintf(char *str, const char *fmt, va_list args); -extern int pg_sprintf(char *str, const char *fmt,...) pg_attribute_printf(2, 3); -extern int pg_vfprintf(FILE *stream, const char *fmt, va_list args); -extern int pg_fprintf(FILE *stream, const char *fmt,...) pg_attribute_printf(2, 3); -extern int pg_vprintf(const char *fmt, va_list args); -extern int pg_printf(const char *fmt,...) pg_attribute_printf(1, 2); - -/* - * We use __VA_ARGS__ for printf to prevent replacing references to - * the "printf" format archetype in format() attribute declarations. - * That unfortunately means that taking a function pointer to printf - * will not do what we'd wish. (If you need to do that, you must name - * pg_printf explicitly.) For printf's sibling functions, use - * parameterless macros so that function pointers will work unsurprisingly. - */ -#define vsnprintf pg_vsnprintf -#define snprintf pg_snprintf -#define vsprintf pg_vsprintf -#define sprintf pg_sprintf -#define vfprintf pg_vfprintf -#define fprintf pg_fprintf -#define vprintf pg_vprintf -#define printf(...) pg_printf(__VA_ARGS__) - -/* This is also provided by snprintf.c */ -extern int pg_strfromd(char *str, size_t count, int precision, double value); - -/* Replace strerror() with our own, somewhat more robust wrapper */ -extern char *pg_strerror(int errnum); -#define strerror pg_strerror - -/* Likewise for strerror_r(); note we prefer the GNU API for that */ -extern char *pg_strerror_r(int errnum, char *buf, size_t buflen); -#define strerror_r pg_strerror_r -#define PG_STRERROR_R_BUFLEN 256 /* Recommended buffer size for strerror_r */ - -/* Wrap strsignal(), or provide our own version if necessary */ -extern const char *pg_strsignal(int signum); - -extern int pclose_check(FILE *stream); - -/* Global variable holding time zone information. */ -#if defined(WIN32) || defined(__CYGWIN__) -#define TIMEZONE_GLOBAL _timezone -#define TZNAME_GLOBAL _tzname -#else -#define TIMEZONE_GLOBAL timezone -#define TZNAME_GLOBAL tzname -#endif - -#if defined(WIN32) || defined(__CYGWIN__) -/* - * Win32 doesn't have reliable rename/unlink during concurrent access. - */ -extern int pgrename(const char *from, const char *to); -extern int pgunlink(const char *path); - -/* Include this first so later includes don't see these defines */ -#ifdef _MSC_VER -#include -#endif - -#define rename(from, to) pgrename(from, to) -#define unlink(path) pgunlink(path) -#endif /* defined(WIN32) || defined(__CYGWIN__) */ - -/* - * Win32 also doesn't have symlinks, but we can emulate them with - * junction points on newer Win32 versions. - * - * Cygwin has its own symlinks which work on Win95/98/ME where - * junction points don't, so use those instead. We have no way of - * knowing what type of system Cygwin binaries will be run on. - * Note: Some CYGWIN includes might #define WIN32. - */ -#if defined(WIN32) && !defined(__CYGWIN__) -extern int pgsymlink(const char *oldpath, const char *newpath); -extern int pgreadlink(const char *path, char *buf, size_t size); -extern bool pgwin32_is_junction(const char *path); - -#define symlink(oldpath, newpath) pgsymlink(oldpath, newpath) -#define readlink(path, buf, size) pgreadlink(path, buf, size) -#endif - -extern bool rmtree(const char *path, bool rmtopdir); - -#if defined(WIN32) && !defined(__CYGWIN__) - -/* - * open() and fopen() replacements to allow deletion of open files and - * passing of other special options. - */ -#define O_DIRECT 0x80000000 -extern HANDLE pgwin32_open_handle(const char *, int, bool); -extern int pgwin32_open(const char *, int,...); -extern FILE *pgwin32_fopen(const char *, const char *); -#define open(a,b,c) pgwin32_open(a,b,c) -#define fopen(a,b) pgwin32_fopen(a,b) - -/* - * Mingw-w64 headers #define popen and pclose to _popen and _pclose. We want - * to use our popen wrapper, rather than plain _popen, so override that. For - * consistency, use our version of pclose, too. - */ -#ifdef popen -#undef popen -#endif -#ifdef pclose -#undef pclose -#endif - -/* - * system() and popen() replacements to enclose the command in an extra - * pair of quotes. - */ -extern int pgwin32_system(const char *command); -extern FILE *pgwin32_popen(const char *command, const char *type); - -#define system(a) pgwin32_system(a) -#define popen(a,b) pgwin32_popen(a,b) -#define pclose(a) _pclose(a) - -/* New versions of MingW have gettimeofday, old mingw and msvc don't */ -#ifndef HAVE_GETTIMEOFDAY -/* Last parameter not used */ -extern int gettimeofday(struct timeval *tp, struct timezone *tzp); -#endif -#else /* !WIN32 */ - -/* - * Win32 requires a special close for sockets and pipes, while on Unix - * close() does them all. - */ -#define closesocket close -#endif /* WIN32 */ - -/* - * On Windows, setvbuf() does not support _IOLBF mode, and interprets that - * as _IOFBF. To add insult to injury, setvbuf(file, NULL, _IOFBF, 0) - * crashes outright if "parameter validation" is enabled. Therefore, in - * places where we'd like to select line-buffered mode, we fall back to - * unbuffered mode instead on Windows. Always use PG_IOLBF not _IOLBF - * directly in order to implement this behavior. - */ -#ifndef WIN32 -#define PG_IOLBF _IOLBF -#else -#define PG_IOLBF _IONBF -#endif - -/* - * Default "extern" declarations or macro substitutes for library routines. - * When necessary, these routines are provided by files in src/port/. - */ - -/* Type to use with fseeko/ftello */ -#ifndef WIN32 /* WIN32 is handled in port/win32_port.h */ -#define pgoff_t off_t -#endif - -#ifndef HAVE_FLS -extern int fls(int mask); -#endif - -#ifndef HAVE_GETPEEREID -/* On Windows, Perl might have incompatible definitions of uid_t and gid_t. */ -#ifndef PLPERL_HAVE_UID_GID -extern int getpeereid(int sock, uid_t *uid, gid_t *gid); -#endif -#endif - -/* - * Glibc doesn't use the builtin for clang due to a *gcc* bug in a version - * newer than the gcc compatibility clang claims to have. This would cause a - * *lot* of superfluous function calls, therefore revert when using clang. In - * C++ there's issues with libc++ (not libstdc++), so disable as well. - */ -#if defined(__clang__) && !defined(__cplusplus) -/* needs to be separate to not confuse other compilers */ -#if __has_builtin(__builtin_isinf) -/* need to include before, to avoid getting overwritten */ -#include -#undef isinf -#define isinf __builtin_isinf -#endif /* __has_builtin(isinf) */ -#endif /* __clang__ && !__cplusplus */ - -#ifndef HAVE_EXPLICIT_BZERO -extern void explicit_bzero(void *buf, size_t len); -#endif - -#ifndef HAVE_STRTOF -extern float strtof(const char *nptr, char **endptr); -#endif - -#ifdef HAVE_BUGGY_STRTOF -extern float pg_strtof(const char *nptr, char **endptr); -#define strtof(a,b) (pg_strtof((a),(b))) -#endif - -#ifndef HAVE_LINK -extern int link(const char *src, const char *dst); -#endif - -#ifndef HAVE_MKDTEMP -extern char *mkdtemp(char *path); -#endif - -#ifndef HAVE_INET_ATON -#include -#include -extern int inet_aton(const char *cp, struct in_addr *addr); -#endif - -/* - * Windows and older Unix don't have pread(2) and pwrite(2). We have - * replacement functions, but they have slightly different semantics so we'll - * use a name with a pg_ prefix to avoid confusion. - */ -#ifdef HAVE_PREAD -#define pg_pread pread -#else -extern ssize_t pg_pread(int fd, void *buf, size_t nbyte, off_t offset); -#endif - -#ifdef HAVE_PWRITE -#define pg_pwrite pwrite -#else -extern ssize_t pg_pwrite(int fd, const void *buf, size_t nbyte, off_t offset); -#endif - -/* For pg_pwritev() and pg_preadv(), see port/pg_iovec.h. */ - -#if !HAVE_DECL_STRLCAT -extern size_t strlcat(char *dst, const char *src, size_t siz); -#endif - -#if !HAVE_DECL_STRLCPY -extern size_t strlcpy(char *dst, const char *src, size_t siz); -#endif - -#if !HAVE_DECL_STRNLEN -extern size_t strnlen(const char *str, size_t maxlen); -#endif - -#ifndef HAVE_SETENV -extern int setenv(const char *name, const char *value, int overwrite); -#endif - -#ifndef HAVE_UNSETENV -extern int unsetenv(const char *name); -#endif - -#ifndef HAVE_DLOPEN -extern void *dlopen(const char *file, int mode); -extern void *dlsym(void *handle, const char *symbol); -extern int dlclose(void *handle); -extern char *dlerror(void); -#endif - -/* - * In some older systems, the RTLD_NOW flag isn't defined and the mode - * argument to dlopen must always be 1. - */ -#if !HAVE_DECL_RTLD_NOW -#define RTLD_NOW 1 -#endif - -/* - * The RTLD_GLOBAL flag is wanted if available, but it doesn't exist - * everywhere. If it doesn't exist, set it to 0 so it has no effect. - */ -#if !HAVE_DECL_RTLD_GLOBAL -#define RTLD_GLOBAL 0 -#endif - -/* thread.c */ -#ifndef WIN32 -extern bool pg_get_user_name(uid_t user_id, char *buffer, size_t buflen); -extern bool pg_get_user_home_dir(uid_t user_id, char *buffer, size_t buflen); -#endif - -extern void pg_qsort(void *base, size_t nel, size_t elsize, - int (*cmp) (const void *, const void *)); -extern int pg_qsort_strcmp(const void *a, const void *b); - -#define qsort(a,b,c,d) pg_qsort(a,b,c,d) - -typedef int (*qsort_arg_comparator) (const void *a, const void *b, void *arg); - -extern void qsort_arg(void *base, size_t nel, size_t elsize, - qsort_arg_comparator cmp, void *arg); - -extern void qsort_interruptible(void *base, size_t nel, size_t elsize, - qsort_arg_comparator cmp, void *arg); - -extern void *bsearch_arg(const void *key, const void *base, - size_t nmemb, size_t size, - int (*compar) (const void *, const void *, void *), - void *arg); - -/* port/chklocale.c */ -extern int pg_get_encoding_from_locale(const char *ctype, bool write_message); - -#if defined(WIN32) && !defined(FRONTEND) -extern int pg_codepage_to_encoding(UINT cp); -#endif - -/* port/inet_net_ntop.c */ -extern char *pg_inet_net_ntop(int af, const void *src, int bits, - char *dst, size_t size); - -/* port/pg_strong_random.c */ -extern void pg_strong_random_init(void); -extern bool pg_strong_random(void *buf, size_t len); - -/* - * pg_backend_random used to be a wrapper for pg_strong_random before - * Postgres 12 for the backend code. - */ -#define pg_backend_random pg_strong_random - -/* port/pgcheckdir.c */ -extern int pg_check_dir(const char *dir); - -/* port/pgmkdirp.c */ -extern int pg_mkdir_p(char *path, int omode); - -/* port/pqsignal.c */ -typedef void (*pqsigfunc) (int signo); -extern pqsigfunc pqsignal(int signo, pqsigfunc func); - -/* port/quotes.c */ -extern char *escape_single_quotes_ascii(const char *src); - -/* common/wait_error.c */ -extern char *wait_result_to_str(int exit_status); -extern bool wait_result_is_signal(int exit_status, int signum); -extern bool wait_result_is_any_signal(int exit_status, bool include_command_not_found); - -#endif /* PG_PORT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics.h deleted file mode 100644 index 9550e04aa..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics.h +++ /dev/null @@ -1,524 +0,0 @@ -/*------------------------------------------------------------------------- - * - * atomics.h - * Atomic operations. - * - * Hardware and compiler dependent functions for manipulating memory - * atomically and dealing with cache coherency. Used to implement locking - * facilities and lockless algorithms/data structures. - * - * To bring up postgres on a platform/compiler at the very least - * implementations for the following operations should be provided: - * * pg_compiler_barrier(), pg_write_barrier(), pg_read_barrier() - * * pg_atomic_compare_exchange_u32(), pg_atomic_fetch_add_u32() - * * pg_atomic_test_set_flag(), pg_atomic_init_flag(), pg_atomic_clear_flag() - * * PG_HAVE_8BYTE_SINGLE_COPY_ATOMICITY should be defined if appropriate. - * - * There exist generic, hardware independent, implementations for several - * compilers which might be sufficient, although possibly not optimal, for a - * new platform. If no such generic implementation is available spinlocks (or - * even OS provided semaphores) will be used to implement the API. - * - * Implement _u64 atomics if and only if your platform can use them - * efficiently (and obviously correctly). - * - * Use higher level functionality (lwlocks, spinlocks, heavyweight locks) - * whenever possible. Writing correct code using these facilities is hard. - * - * For an introduction to using memory barriers within the PostgreSQL backend, - * see src/backend/storage/lmgr/README.barrier - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/port/atomics.h - * - *------------------------------------------------------------------------- - */ -#ifndef ATOMICS_H -#define ATOMICS_H - -#ifdef FRONTEND -#error "atomics.h may not be included from frontend code" -#endif - -#define INSIDE_ATOMICS_H - -#include - -/* - * First a set of architecture specific files is included. - * - * These files can provide the full set of atomics or can do pretty much - * nothing if all the compilers commonly used on these platforms provide - * usable generics. - * - * Don't add an inline assembly of the actual atomic operations if all the - * common implementations of your platform provide intrinsics. Intrinsics are - * much easier to understand and potentially support more architectures. - * - * It will often make sense to define memory barrier semantics here, since - * e.g. generic compiler intrinsics for x86 memory barriers can't know that - * postgres doesn't need x86 read/write barriers do anything more than a - * compiler barrier. - * - */ -#if defined(__arm__) || defined(__arm) || \ - defined(__aarch64__) || defined(__aarch64) -#include "port/atomics/arch-arm.h" -#elif defined(__i386__) || defined(__i386) || defined(__x86_64__) -#include "port/atomics/arch-x86.h" -#elif defined(__ia64__) || defined(__ia64) -#include "port/atomics/arch-ia64.h" -#elif defined(__ppc__) || defined(__powerpc__) || defined(__ppc64__) || defined(__powerpc64__) -#include "port/atomics/arch-ppc.h" -#elif defined(__hppa) || defined(__hppa__) -#include "port/atomics/arch-hppa.h" -#endif - -/* - * Compiler specific, but architecture independent implementations. - * - * Provide architecture independent implementations of the atomic - * facilities. At the very least compiler barriers should be provided, but a - * full implementation of - * * pg_compiler_barrier(), pg_write_barrier(), pg_read_barrier() - * * pg_atomic_compare_exchange_u32(), pg_atomic_fetch_add_u32() - * using compiler intrinsics are a good idea. - */ -/* - * gcc or compatible, including clang and icc. Exclude xlc. The ppc64le "IBM - * XL C/C++ for Linux, V13.1.2" emulates gcc, but __sync_lock_test_and_set() - * of one-byte types elicits SIGSEGV. That bug was gone by V13.1.5 (2016-12). - */ -#if (defined(__GNUC__) || defined(__INTEL_COMPILER)) && !(defined(__IBMC__) || defined(__IBMCPP__)) -#include "port/atomics/generic-gcc.h" -#elif defined(_MSC_VER) -#include "port/atomics/generic-msvc.h" -#elif defined(__hpux) && defined(__ia64) && !defined(__GNUC__) -#include "port/atomics/generic-acc.h" -#elif defined(__SUNPRO_C) && !defined(__GNUC__) -#include "port/atomics/generic-sunpro.h" -#else -/* - * Unsupported compiler, we'll likely use slower fallbacks... At least - * compiler barriers should really be provided. - */ -#endif - -/* - * Provide a full fallback of the pg_*_barrier(), pg_atomic**_flag and - * pg_atomic_* APIs for platforms without sufficient spinlock and/or atomics - * support. In the case of spinlock backed atomics the emulation is expected - * to be efficient, although less so than native atomics support. - */ -#include "port/atomics/fallback.h" - -/* - * Provide additional operations using supported infrastructure. These are - * expected to be efficient if the underlying atomic operations are efficient. - */ -#include "port/atomics/generic.h" - - -/* - * pg_compiler_barrier - prevent the compiler from moving code across - * - * A compiler barrier need not (and preferably should not) emit any actual - * machine code, but must act as an optimization fence: the compiler must not - * reorder loads or stores to main memory around the barrier. However, the - * CPU may still reorder loads or stores at runtime, if the architecture's - * memory model permits this. - */ -#define pg_compiler_barrier() pg_compiler_barrier_impl() - -/* - * pg_memory_barrier - prevent the CPU from reordering memory access - * - * A memory barrier must act as a compiler barrier, and in addition must - * guarantee that all loads and stores issued prior to the barrier are - * completed before any loads or stores issued after the barrier. Unless - * loads and stores are totally ordered (which is not the case on most - * architectures) this requires issuing some sort of memory fencing - * instruction. - */ -#define pg_memory_barrier() pg_memory_barrier_impl() - -/* - * pg_(read|write)_barrier - prevent the CPU from reordering memory access - * - * A read barrier must act as a compiler barrier, and in addition must - * guarantee that any loads issued prior to the barrier are completed before - * any loads issued after the barrier. Similarly, a write barrier acts - * as a compiler barrier, and also orders stores. Read and write barriers - * are thus weaker than a full memory barrier, but stronger than a compiler - * barrier. In practice, on machines with strong memory ordering, read and - * write barriers may require nothing more than a compiler barrier. - */ -#define pg_read_barrier() pg_read_barrier_impl() -#define pg_write_barrier() pg_write_barrier_impl() - -/* - * Spinloop delay - Allow CPU to relax in busy loops - */ -#define pg_spin_delay() pg_spin_delay_impl() - -/* - * pg_atomic_init_flag - initialize atomic flag. - * - * No barrier semantics. - */ -static inline void -pg_atomic_init_flag(volatile pg_atomic_flag *ptr) -{ - pg_atomic_init_flag_impl(ptr); -} - -/* - * pg_atomic_test_set_flag - TAS() - * - * Returns true if the flag has successfully been set, false otherwise. - * - * Acquire (including read barrier) semantics. - */ -static inline bool -pg_atomic_test_set_flag(volatile pg_atomic_flag *ptr) -{ - return pg_atomic_test_set_flag_impl(ptr); -} - -/* - * pg_atomic_unlocked_test_flag - Check if the lock is free - * - * Returns true if the flag currently is not set, false otherwise. - * - * No barrier semantics. - */ -static inline bool -pg_atomic_unlocked_test_flag(volatile pg_atomic_flag *ptr) -{ - return pg_atomic_unlocked_test_flag_impl(ptr); -} - -/* - * pg_atomic_clear_flag - release lock set by TAS() - * - * Release (including write barrier) semantics. - */ -static inline void -pg_atomic_clear_flag(volatile pg_atomic_flag *ptr) -{ - pg_atomic_clear_flag_impl(ptr); -} - - -/* - * pg_atomic_init_u32 - initialize atomic variable - * - * Has to be done before any concurrent usage.. - * - * No barrier semantics. - */ -static inline void -pg_atomic_init_u32(volatile pg_atomic_uint32 *ptr, uint32 val) -{ - AssertPointerAlignment(ptr, 4); - - pg_atomic_init_u32_impl(ptr, val); -} - -/* - * pg_atomic_read_u32 - unlocked read from atomic variable. - * - * The read is guaranteed to return a value as it has been written by this or - * another process at some point in the past. There's however no cache - * coherency interaction guaranteeing the value hasn't since been written to - * again. - * - * No barrier semantics. - */ -static inline uint32 -pg_atomic_read_u32(volatile pg_atomic_uint32 *ptr) -{ - AssertPointerAlignment(ptr, 4); - return pg_atomic_read_u32_impl(ptr); -} - -/* - * pg_atomic_write_u32 - write to atomic variable. - * - * The write is guaranteed to succeed as a whole, i.e. it's not possible to - * observe a partial write for any reader. Note that this correctly interacts - * with pg_atomic_compare_exchange_u32, in contrast to - * pg_atomic_unlocked_write_u32(). - * - * No barrier semantics. - */ -static inline void -pg_atomic_write_u32(volatile pg_atomic_uint32 *ptr, uint32 val) -{ - AssertPointerAlignment(ptr, 4); - - pg_atomic_write_u32_impl(ptr, val); -} - -/* - * pg_atomic_unlocked_write_u32 - unlocked write to atomic variable. - * - * The write is guaranteed to succeed as a whole, i.e. it's not possible to - * observe a partial write for any reader. But note that writing this way is - * not guaranteed to correctly interact with read-modify-write operations like - * pg_atomic_compare_exchange_u32. This should only be used in cases where - * minor performance regressions due to atomics emulation are unacceptable. - * - * No barrier semantics. - */ -static inline void -pg_atomic_unlocked_write_u32(volatile pg_atomic_uint32 *ptr, uint32 val) -{ - AssertPointerAlignment(ptr, 4); - - pg_atomic_unlocked_write_u32_impl(ptr, val); -} - -/* - * pg_atomic_exchange_u32 - exchange newval with current value - * - * Returns the old value of 'ptr' before the swap. - * - * Full barrier semantics. - */ -static inline uint32 -pg_atomic_exchange_u32(volatile pg_atomic_uint32 *ptr, uint32 newval) -{ - AssertPointerAlignment(ptr, 4); - - return pg_atomic_exchange_u32_impl(ptr, newval); -} - -/* - * pg_atomic_compare_exchange_u32 - CAS operation - * - * Atomically compare the current value of ptr with *expected and store newval - * iff ptr and *expected have the same value. The current value of *ptr will - * always be stored in *expected. - * - * Return true if values have been exchanged, false otherwise. - * - * Full barrier semantics. - */ -static inline bool -pg_atomic_compare_exchange_u32(volatile pg_atomic_uint32 *ptr, - uint32 *expected, uint32 newval) -{ - AssertPointerAlignment(ptr, 4); - AssertPointerAlignment(expected, 4); - - return pg_atomic_compare_exchange_u32_impl(ptr, expected, newval); -} - -/* - * pg_atomic_fetch_add_u32 - atomically add to variable - * - * Returns the value of ptr before the arithmetic operation. - * - * Full barrier semantics. - */ -static inline uint32 -pg_atomic_fetch_add_u32(volatile pg_atomic_uint32 *ptr, int32 add_) -{ - AssertPointerAlignment(ptr, 4); - return pg_atomic_fetch_add_u32_impl(ptr, add_); -} - -/* - * pg_atomic_fetch_sub_u32 - atomically subtract from variable - * - * Returns the value of ptr before the arithmetic operation. Note that sub_ - * may not be INT_MIN due to platform limitations. - * - * Full barrier semantics. - */ -static inline uint32 -pg_atomic_fetch_sub_u32(volatile pg_atomic_uint32 *ptr, int32 sub_) -{ - AssertPointerAlignment(ptr, 4); - Assert(sub_ != INT_MIN); - return pg_atomic_fetch_sub_u32_impl(ptr, sub_); -} - -/* - * pg_atomic_fetch_and_u32 - atomically bit-and and_ with variable - * - * Returns the value of ptr before the arithmetic operation. - * - * Full barrier semantics. - */ -static inline uint32 -pg_atomic_fetch_and_u32(volatile pg_atomic_uint32 *ptr, uint32 and_) -{ - AssertPointerAlignment(ptr, 4); - return pg_atomic_fetch_and_u32_impl(ptr, and_); -} - -/* - * pg_atomic_fetch_or_u32 - atomically bit-or or_ with variable - * - * Returns the value of ptr before the arithmetic operation. - * - * Full barrier semantics. - */ -static inline uint32 -pg_atomic_fetch_or_u32(volatile pg_atomic_uint32 *ptr, uint32 or_) -{ - AssertPointerAlignment(ptr, 4); - return pg_atomic_fetch_or_u32_impl(ptr, or_); -} - -/* - * pg_atomic_add_fetch_u32 - atomically add to variable - * - * Returns the value of ptr after the arithmetic operation. - * - * Full barrier semantics. - */ -static inline uint32 -pg_atomic_add_fetch_u32(volatile pg_atomic_uint32 *ptr, int32 add_) -{ - AssertPointerAlignment(ptr, 4); - return pg_atomic_add_fetch_u32_impl(ptr, add_); -} - -/* - * pg_atomic_sub_fetch_u32 - atomically subtract from variable - * - * Returns the value of ptr after the arithmetic operation. Note that sub_ may - * not be INT_MIN due to platform limitations. - * - * Full barrier semantics. - */ -static inline uint32 -pg_atomic_sub_fetch_u32(volatile pg_atomic_uint32 *ptr, int32 sub_) -{ - AssertPointerAlignment(ptr, 4); - Assert(sub_ != INT_MIN); - return pg_atomic_sub_fetch_u32_impl(ptr, sub_); -} - -/* ---- - * The 64 bit operations have the same semantics as their 32bit counterparts - * if they are available. Check the corresponding 32bit function for - * documentation. - * ---- - */ -static inline void -pg_atomic_init_u64(volatile pg_atomic_uint64 *ptr, uint64 val) -{ - /* - * Can't necessarily enforce alignment - and don't need it - when using - * the spinlock based fallback implementation. Therefore only assert when - * not using it. - */ -#ifndef PG_HAVE_ATOMIC_U64_SIMULATION - AssertPointerAlignment(ptr, 8); -#endif - pg_atomic_init_u64_impl(ptr, val); -} - -static inline uint64 -pg_atomic_read_u64(volatile pg_atomic_uint64 *ptr) -{ -#ifndef PG_HAVE_ATOMIC_U64_SIMULATION - AssertPointerAlignment(ptr, 8); -#endif - return pg_atomic_read_u64_impl(ptr); -} - -static inline void -pg_atomic_write_u64(volatile pg_atomic_uint64 *ptr, uint64 val) -{ -#ifndef PG_HAVE_ATOMIC_U64_SIMULATION - AssertPointerAlignment(ptr, 8); -#endif - pg_atomic_write_u64_impl(ptr, val); -} - -static inline uint64 -pg_atomic_exchange_u64(volatile pg_atomic_uint64 *ptr, uint64 newval) -{ -#ifndef PG_HAVE_ATOMIC_U64_SIMULATION - AssertPointerAlignment(ptr, 8); -#endif - return pg_atomic_exchange_u64_impl(ptr, newval); -} - -static inline bool -pg_atomic_compare_exchange_u64(volatile pg_atomic_uint64 *ptr, - uint64 *expected, uint64 newval) -{ -#ifndef PG_HAVE_ATOMIC_U64_SIMULATION - AssertPointerAlignment(ptr, 8); - AssertPointerAlignment(expected, 8); -#endif - return pg_atomic_compare_exchange_u64_impl(ptr, expected, newval); -} - -static inline uint64 -pg_atomic_fetch_add_u64(volatile pg_atomic_uint64 *ptr, int64 add_) -{ -#ifndef PG_HAVE_ATOMIC_U64_SIMULATION - AssertPointerAlignment(ptr, 8); -#endif - return pg_atomic_fetch_add_u64_impl(ptr, add_); -} - -static inline uint64 -pg_atomic_fetch_sub_u64(volatile pg_atomic_uint64 *ptr, int64 sub_) -{ -#ifndef PG_HAVE_ATOMIC_U64_SIMULATION - AssertPointerAlignment(ptr, 8); -#endif - Assert(sub_ != PG_INT64_MIN); - return pg_atomic_fetch_sub_u64_impl(ptr, sub_); -} - -static inline uint64 -pg_atomic_fetch_and_u64(volatile pg_atomic_uint64 *ptr, uint64 and_) -{ -#ifndef PG_HAVE_ATOMIC_U64_SIMULATION - AssertPointerAlignment(ptr, 8); -#endif - return pg_atomic_fetch_and_u64_impl(ptr, and_); -} - -static inline uint64 -pg_atomic_fetch_or_u64(volatile pg_atomic_uint64 *ptr, uint64 or_) -{ -#ifndef PG_HAVE_ATOMIC_U64_SIMULATION - AssertPointerAlignment(ptr, 8); -#endif - return pg_atomic_fetch_or_u64_impl(ptr, or_); -} - -static inline uint64 -pg_atomic_add_fetch_u64(volatile pg_atomic_uint64 *ptr, int64 add_) -{ -#ifndef PG_HAVE_ATOMIC_U64_SIMULATION - AssertPointerAlignment(ptr, 8); -#endif - return pg_atomic_add_fetch_u64_impl(ptr, add_); -} - -static inline uint64 -pg_atomic_sub_fetch_u64(volatile pg_atomic_uint64 *ptr, int64 sub_) -{ -#ifndef PG_HAVE_ATOMIC_U64_SIMULATION - AssertPointerAlignment(ptr, 8); -#endif - Assert(sub_ != PG_INT64_MIN); - return pg_atomic_sub_fetch_u64_impl(ptr, sub_); -} - -#undef INSIDE_ATOMICS_H - -#endif /* ATOMICS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/arch-arm.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/arch-arm.h deleted file mode 100644 index 9fe8f1b95..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/arch-arm.h +++ /dev/null @@ -1,32 +0,0 @@ -/*------------------------------------------------------------------------- - * - * arch-arm.h - * Atomic operations considerations specific to ARM - * - * Portions Copyright (c) 2013-2022, PostgreSQL Global Development Group - * - * NOTES: - * - * src/include/port/atomics/arch-arm.h - * - *------------------------------------------------------------------------- - */ - -/* intentionally no include guards, should only be included by atomics.h */ -#ifndef INSIDE_ATOMICS_H -#error "should be included via atomics.h" -#endif - -/* - * 64 bit atomics on ARM32 are implemented using kernel fallbacks and thus - * might be slow, so disable entirely. On ARM64 that problem doesn't exist. - */ -#if !defined(__aarch64__) && !defined(__aarch64) -#define PG_DISABLE_64_BIT_ATOMICS -#else -/* - * Architecture Reference Manual for ARMv8 states aligned read/write to/from - * general purpose register is atomic. - */ -#define PG_HAVE_8BYTE_SINGLE_COPY_ATOMICITY -#endif /* __aarch64__ || __aarch64 */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/arch-ppc.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/arch-ppc.h deleted file mode 100644 index eb6451362..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/arch-ppc.h +++ /dev/null @@ -1,254 +0,0 @@ -/*------------------------------------------------------------------------- - * - * arch-ppc.h - * Atomic operations considerations specific to PowerPC - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES: - * - * src/include/port/atomics/arch-ppc.h - * - *------------------------------------------------------------------------- - */ - -#if defined(__GNUC__) - -/* - * lwsync orders loads with respect to each other, and similarly with stores. - * But a load can be performed before a subsequent store, so sync must be used - * for a full memory barrier. - */ -#define pg_memory_barrier_impl() __asm__ __volatile__ ("sync" : : : "memory") -#define pg_read_barrier_impl() __asm__ __volatile__ ("lwsync" : : : "memory") -#define pg_write_barrier_impl() __asm__ __volatile__ ("lwsync" : : : "memory") -#endif - -#define PG_HAVE_ATOMIC_U32_SUPPORT -typedef struct pg_atomic_uint32 -{ - volatile uint32 value; -} pg_atomic_uint32; - -/* 64bit atomics are only supported in 64bit mode */ -#if SIZEOF_VOID_P >= 8 -#define PG_HAVE_ATOMIC_U64_SUPPORT -typedef struct pg_atomic_uint64 -{ - volatile uint64 value pg_attribute_aligned(8); -} pg_atomic_uint64; - -#endif - -/* - * This mimics gcc __atomic_compare_exchange_n(..., __ATOMIC_SEQ_CST), but - * code generation differs at the end. __atomic_compare_exchange_n(): - * 100: isync - * 104: mfcr r3 - * 108: rlwinm r3,r3,3,31,31 - * 10c: bne 120 <.eb+0x10> - * 110: clrldi r3,r3,63 - * 114: addi r1,r1,112 - * 118: blr - * 11c: nop - * 120: clrldi r3,r3,63 - * 124: stw r9,0(r4) - * 128: addi r1,r1,112 - * 12c: blr - * - * This: - * f0: isync - * f4: mfcr r9 - * f8: rldicl. r3,r9,35,63 - * fc: bne 104 <.eb> - * 100: stw r10,0(r4) - * 104: addi r1,r1,112 - * 108: blr - * - * This implementation may or may not have materially different performance. - * It's not exploiting the fact that cr0 still holds the relevant comparison - * bits, set during the __asm__. One could fix that by moving more code into - * the __asm__. (That would remove the freedom to eliminate dead stores when - * the caller ignores "expected", but few callers do.) - * - * Recognizing constant "newval" would be superfluous, because there's no - * immediate-operand version of stwcx. - */ -#define PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U32 -static inline bool -pg_atomic_compare_exchange_u32_impl(volatile pg_atomic_uint32 *ptr, - uint32 *expected, uint32 newval) -{ - uint32 found; - uint32 condition_register; - bool ret; - -#ifdef HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P - if (__builtin_constant_p(*expected) && - (int32) *expected <= PG_INT16_MAX && - (int32) *expected >= PG_INT16_MIN) - __asm__ __volatile__( - " sync \n" - " lwarx %0,0,%5 \n" - " cmpwi %0,%3 \n" - " bne $+12 \n" /* branch to isync */ - " stwcx. %4,0,%5 \n" - " bne $-16 \n" /* branch to lwarx */ - " isync \n" - " mfcr %1 \n" -: "=&r"(found), "=r"(condition_register), "+m"(ptr->value) -: "i"(*expected), "r"(newval), "r"(&ptr->value) -: "memory", "cc"); - else -#endif - __asm__ __volatile__( - " sync \n" - " lwarx %0,0,%5 \n" - " cmpw %0,%3 \n" - " bne $+12 \n" /* branch to isync */ - " stwcx. %4,0,%5 \n" - " bne $-16 \n" /* branch to lwarx */ - " isync \n" - " mfcr %1 \n" -: "=&r"(found), "=r"(condition_register), "+m"(ptr->value) -: "r"(*expected), "r"(newval), "r"(&ptr->value) -: "memory", "cc"); - - ret = (condition_register >> 29) & 1; /* test eq bit of cr0 */ - if (!ret) - *expected = found; - return ret; -} - -/* - * This mirrors gcc __sync_fetch_and_add(). - * - * Like tas(), use constraint "=&b" to avoid allocating r0. - */ -#define PG_HAVE_ATOMIC_FETCH_ADD_U32 -static inline uint32 -pg_atomic_fetch_add_u32_impl(volatile pg_atomic_uint32 *ptr, int32 add_) -{ - uint32 _t; - uint32 res; - -#ifdef HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P - if (__builtin_constant_p(add_) && - add_ <= PG_INT16_MAX && add_ >= PG_INT16_MIN) - __asm__ __volatile__( - " sync \n" - " lwarx %1,0,%4 \n" - " addi %0,%1,%3 \n" - " stwcx. %0,0,%4 \n" - " bne $-12 \n" /* branch to lwarx */ - " isync \n" -: "=&r"(_t), "=&b"(res), "+m"(ptr->value) -: "i"(add_), "r"(&ptr->value) -: "memory", "cc"); - else -#endif - __asm__ __volatile__( - " sync \n" - " lwarx %1,0,%4 \n" - " add %0,%1,%3 \n" - " stwcx. %0,0,%4 \n" - " bne $-12 \n" /* branch to lwarx */ - " isync \n" -: "=&r"(_t), "=&r"(res), "+m"(ptr->value) -: "r"(add_), "r"(&ptr->value) -: "memory", "cc"); - - return res; -} - -#ifdef PG_HAVE_ATOMIC_U64_SUPPORT - -#define PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U64 -static inline bool -pg_atomic_compare_exchange_u64_impl(volatile pg_atomic_uint64 *ptr, - uint64 *expected, uint64 newval) -{ - uint64 found; - uint32 condition_register; - bool ret; - - /* Like u32, but s/lwarx/ldarx/; s/stwcx/stdcx/; s/cmpw/cmpd/ */ -#ifdef HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P - if (__builtin_constant_p(*expected) && - (int64) *expected <= PG_INT16_MAX && - (int64) *expected >= PG_INT16_MIN) - __asm__ __volatile__( - " sync \n" - " ldarx %0,0,%5 \n" - " cmpdi %0,%3 \n" - " bne $+12 \n" /* branch to isync */ - " stdcx. %4,0,%5 \n" - " bne $-16 \n" /* branch to ldarx */ - " isync \n" - " mfcr %1 \n" -: "=&r"(found), "=r"(condition_register), "+m"(ptr->value) -: "i"(*expected), "r"(newval), "r"(&ptr->value) -: "memory", "cc"); - else -#endif - __asm__ __volatile__( - " sync \n" - " ldarx %0,0,%5 \n" - " cmpd %0,%3 \n" - " bne $+12 \n" /* branch to isync */ - " stdcx. %4,0,%5 \n" - " bne $-16 \n" /* branch to ldarx */ - " isync \n" - " mfcr %1 \n" -: "=&r"(found), "=r"(condition_register), "+m"(ptr->value) -: "r"(*expected), "r"(newval), "r"(&ptr->value) -: "memory", "cc"); - - ret = (condition_register >> 29) & 1; /* test eq bit of cr0 */ - if (!ret) - *expected = found; - return ret; -} - -#define PG_HAVE_ATOMIC_FETCH_ADD_U64 -static inline uint64 -pg_atomic_fetch_add_u64_impl(volatile pg_atomic_uint64 *ptr, int64 add_) -{ - uint64 _t; - uint64 res; - - /* Like u32, but s/lwarx/ldarx/; s/stwcx/stdcx/ */ -#ifdef HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P - if (__builtin_constant_p(add_) && - add_ <= PG_INT16_MAX && add_ >= PG_INT16_MIN) - __asm__ __volatile__( - " sync \n" - " ldarx %1,0,%4 \n" - " addi %0,%1,%3 \n" - " stdcx. %0,0,%4 \n" - " bne $-12 \n" /* branch to ldarx */ - " isync \n" -: "=&r"(_t), "=&b"(res), "+m"(ptr->value) -: "i"(add_), "r"(&ptr->value) -: "memory", "cc"); - else -#endif - __asm__ __volatile__( - " sync \n" - " ldarx %1,0,%4 \n" - " add %0,%1,%3 \n" - " stdcx. %0,0,%4 \n" - " bne $-12 \n" /* branch to ldarx */ - " isync \n" -: "=&r"(_t), "=&r"(res), "+m"(ptr->value) -: "r"(add_), "r"(&ptr->value) -: "memory", "cc"); - - return res; -} - -#endif /* PG_HAVE_ATOMIC_U64_SUPPORT */ - -/* per architecture manual doubleword accesses have single copy atomicity */ -#define PG_HAVE_8BYTE_SINGLE_COPY_ATOMICITY diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/arch-x86.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/arch-x86.h deleted file mode 100644 index cef1ba724..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/arch-x86.h +++ /dev/null @@ -1,252 +0,0 @@ -/*------------------------------------------------------------------------- - * - * arch-x86.h - * Atomic operations considerations specific to intel x86 - * - * Note that we actually require a 486 upwards because the 386 doesn't have - * support for xadd and cmpxchg. Given that the 386 isn't supported anywhere - * anymore that's not much of a restriction luckily. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES: - * - * src/include/port/atomics/arch-x86.h - * - *------------------------------------------------------------------------- - */ - -/* - * Both 32 and 64 bit x86 do not allow loads to be reordered with other loads, - * or stores to be reordered with other stores, but a load can be performed - * before a subsequent store. - * - * Technically, some x86-ish chips support uncached memory access and/or - * special instructions that are weakly ordered. In those cases we'd need - * the read and write barriers to be lfence and sfence. But since we don't - * do those things, a compiler barrier should be enough. - * - * "lock; addl" has worked for longer than "mfence". It's also rumored to be - * faster in many scenarios. - */ - -#if defined(__GNUC__) || defined(__INTEL_COMPILER) -#if defined(__i386__) || defined(__i386) -#define pg_memory_barrier_impl() \ - __asm__ __volatile__ ("lock; addl $0,0(%%esp)" : : : "memory", "cc") -#elif defined(__x86_64__) -#define pg_memory_barrier_impl() \ - __asm__ __volatile__ ("lock; addl $0,0(%%rsp)" : : : "memory", "cc") -#endif -#endif /* defined(__GNUC__) || defined(__INTEL_COMPILER) */ - -#define pg_read_barrier_impl() pg_compiler_barrier_impl() -#define pg_write_barrier_impl() pg_compiler_barrier_impl() - -/* - * Provide implementation for atomics using inline assembly on x86 gcc. It's - * nice to support older gcc's and the compare/exchange implementation here is - * actually more efficient than the * __sync variant. - */ -#if defined(HAVE_ATOMICS) - -#if defined(__GNUC__) || defined(__INTEL_COMPILER) - -#define PG_HAVE_ATOMIC_FLAG_SUPPORT -typedef struct pg_atomic_flag -{ - volatile char value; -} pg_atomic_flag; - -#define PG_HAVE_ATOMIC_U32_SUPPORT -typedef struct pg_atomic_uint32 -{ - volatile uint32 value; -} pg_atomic_uint32; - -/* - * It's too complicated to write inline asm for 64bit types on 32bit and the - * 486 can't do it anyway. - */ -#ifdef __x86_64__ -#define PG_HAVE_ATOMIC_U64_SUPPORT -typedef struct pg_atomic_uint64 -{ - /* alignment guaranteed due to being on a 64bit platform */ - volatile uint64 value; -} pg_atomic_uint64; -#endif /* __x86_64__ */ - -#endif /* defined(__GNUC__) || defined(__INTEL_COMPILER) */ - -#endif /* defined(HAVE_ATOMICS) */ - -#if !defined(PG_HAVE_SPIN_DELAY) -/* - * This sequence is equivalent to the PAUSE instruction ("rep" is - * ignored by old IA32 processors if the following instruction is - * not a string operation); the IA-32 Architecture Software - * Developer's Manual, Vol. 3, Section 7.7.2 describes why using - * PAUSE in the inner loop of a spin lock is necessary for good - * performance: - * - * The PAUSE instruction improves the performance of IA-32 - * processors supporting Hyper-Threading Technology when - * executing spin-wait loops and other routines where one - * thread is accessing a shared lock or semaphore in a tight - * polling loop. When executing a spin-wait loop, the - * processor can suffer a severe performance penalty when - * exiting the loop because it detects a possible memory order - * violation and flushes the core processor's pipeline. The - * PAUSE instruction provides a hint to the processor that the - * code sequence is a spin-wait loop. The processor uses this - * hint to avoid the memory order violation and prevent the - * pipeline flush. In addition, the PAUSE instruction - * de-pipelines the spin-wait loop to prevent it from - * consuming execution resources excessively. - */ -#if defined(__GNUC__) || defined(__INTEL_COMPILER) -#define PG_HAVE_SPIN_DELAY -static __inline__ void -pg_spin_delay_impl(void) -{ - __asm__ __volatile__(" rep; nop \n"); -} -#elif defined(_MSC_VER) && defined(__x86_64__) -#define PG_HAVE_SPIN_DELAY -static __forceinline void -pg_spin_delay_impl(void) -{ - _mm_pause(); -} -#elif defined(_MSC_VER) -#define PG_HAVE_SPIN_DELAY -static __forceinline void -pg_spin_delay_impl(void) -{ - /* See comment for gcc code. Same code, MASM syntax */ - __asm rep nop; -} -#endif -#endif /* !defined(PG_HAVE_SPIN_DELAY) */ - - -#if defined(HAVE_ATOMICS) - -#if defined(__GNUC__) || defined(__INTEL_COMPILER) - -#define PG_HAVE_ATOMIC_TEST_SET_FLAG -static inline bool -pg_atomic_test_set_flag_impl(volatile pg_atomic_flag *ptr) -{ - register char _res = 1; - - __asm__ __volatile__( - " lock \n" - " xchgb %0,%1 \n" -: "+q"(_res), "+m"(ptr->value) -: -: "memory"); - return _res == 0; -} - -#define PG_HAVE_ATOMIC_CLEAR_FLAG -static inline void -pg_atomic_clear_flag_impl(volatile pg_atomic_flag *ptr) -{ - /* - * On a TSO architecture like x86 it's sufficient to use a compiler - * barrier to achieve release semantics. - */ - __asm__ __volatile__("" ::: "memory"); - ptr->value = 0; -} - -#define PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U32 -static inline bool -pg_atomic_compare_exchange_u32_impl(volatile pg_atomic_uint32 *ptr, - uint32 *expected, uint32 newval) -{ - char ret; - - /* - * Perform cmpxchg and use the zero flag which it implicitly sets when - * equal to measure the success. - */ - __asm__ __volatile__( - " lock \n" - " cmpxchgl %4,%5 \n" - " setz %2 \n" -: "=a" (*expected), "=m"(ptr->value), "=q" (ret) -: "a" (*expected), "r" (newval), "m"(ptr->value) -: "memory", "cc"); - return (bool) ret; -} - -#define PG_HAVE_ATOMIC_FETCH_ADD_U32 -static inline uint32 -pg_atomic_fetch_add_u32_impl(volatile pg_atomic_uint32 *ptr, int32 add_) -{ - uint32 res; - __asm__ __volatile__( - " lock \n" - " xaddl %0,%1 \n" -: "=q"(res), "=m"(ptr->value) -: "0" (add_), "m"(ptr->value) -: "memory", "cc"); - return res; -} - -#ifdef __x86_64__ - -#define PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U64 -static inline bool -pg_atomic_compare_exchange_u64_impl(volatile pg_atomic_uint64 *ptr, - uint64 *expected, uint64 newval) -{ - char ret; - - /* - * Perform cmpxchg and use the zero flag which it implicitly sets when - * equal to measure the success. - */ - __asm__ __volatile__( - " lock \n" - " cmpxchgq %4,%5 \n" - " setz %2 \n" -: "=a" (*expected), "=m"(ptr->value), "=q" (ret) -: "a" (*expected), "r" (newval), "m"(ptr->value) -: "memory", "cc"); - return (bool) ret; -} - -#define PG_HAVE_ATOMIC_FETCH_ADD_U64 -static inline uint64 -pg_atomic_fetch_add_u64_impl(volatile pg_atomic_uint64 *ptr, int64 add_) -{ - uint64 res; - __asm__ __volatile__( - " lock \n" - " xaddq %0,%1 \n" -: "=q"(res), "=m"(ptr->value) -: "0" (add_), "m"(ptr->value) -: "memory", "cc"); - return res; -} - -#endif /* __x86_64__ */ - -#endif /* defined(__GNUC__) || defined(__INTEL_COMPILER) */ - -/* - * 8 byte reads / writes have single-copy atomicity on 32 bit x86 platforms - * since at least the 586. As well as on all x86-64 cpus. - */ -#if defined(__i568__) || defined(__i668__) || /* gcc i586+ */ \ - (defined(_M_IX86) && _M_IX86 >= 500) || /* msvc i586+ */ \ - defined(__x86_64__) || defined(__x86_64) || defined(_M_X64) /* gcc, sunpro, msvc */ -#define PG_HAVE_8BYTE_SINGLE_COPY_ATOMICITY -#endif /* 8 byte single-copy atomicity */ - -#endif /* HAVE_ATOMICS */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/fallback.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/fallback.h deleted file mode 100644 index 1cdef5f2f..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/fallback.h +++ /dev/null @@ -1,170 +0,0 @@ -/*------------------------------------------------------------------------- - * - * fallback.h - * Fallback for platforms without spinlock and/or atomics support. Slower - * than native atomics support, but not unusably slow. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/port/atomics/fallback.h - * - *------------------------------------------------------------------------- - */ - -/* intentionally no include guards, should only be included by atomics.h */ -#ifndef INSIDE_ATOMICS_H -# error "should be included via atomics.h" -#endif - -#ifndef pg_memory_barrier_impl -/* - * If we have no memory barrier implementation for this architecture, we - * fall back to acquiring and releasing a spinlock. This might, in turn, - * fall back to the semaphore-based spinlock implementation, which will be - * amazingly slow. - * - * It's not self-evident that every possible legal implementation of a - * spinlock acquire-and-release would be equivalent to a full memory barrier. - * For example, I'm not sure that Itanium's acq and rel add up to a full - * fence. But all of our actual implementations seem OK in this regard. - */ -#define PG_HAVE_MEMORY_BARRIER_EMULATION - -extern void pg_spinlock_barrier(void); -#define pg_memory_barrier_impl pg_spinlock_barrier -#endif - -#ifndef pg_compiler_barrier_impl -/* - * If the compiler/arch combination does not provide compiler barriers, - * provide a fallback. The fallback simply consists of a function call into - * an externally defined function. That should guarantee compiler barrier - * semantics except for compilers that do inter translation unit/global - * optimization - those better provide an actual compiler barrier. - * - * A native compiler barrier for sure is a lot faster than this... - */ -#define PG_HAVE_COMPILER_BARRIER_EMULATION -extern void pg_extern_compiler_barrier(void); -#define pg_compiler_barrier_impl pg_extern_compiler_barrier -#endif - - -/* - * If we have atomics implementation for this platform, fall back to providing - * the atomics API using a spinlock to protect the internal state. Possibly - * the spinlock implementation uses semaphores internally... - * - * We have to be a bit careful here, as it's not guaranteed that atomic - * variables are mapped to the same address in every process (e.g. dynamic - * shared memory segments). We can't just hash the address and use that to map - * to a spinlock. Instead assign a spinlock on initialization of the atomic - * variable. - */ -#if !defined(PG_HAVE_ATOMIC_FLAG_SUPPORT) && !defined(PG_HAVE_ATOMIC_U32_SUPPORT) - -#define PG_HAVE_ATOMIC_FLAG_SIMULATION -#define PG_HAVE_ATOMIC_FLAG_SUPPORT - -typedef struct pg_atomic_flag -{ - /* - * To avoid circular includes we can't use s_lock as a type here. Instead - * just reserve enough space for all spinlock types. Some platforms would - * be content with just one byte instead of 4, but that's not too much - * waste. - */ -#if defined(__hppa) || defined(__hppa__) /* HP PA-RISC, GCC and HP compilers */ - int sema[4]; -#else - int sema; -#endif - volatile bool value; -} pg_atomic_flag; - -#endif /* PG_HAVE_ATOMIC_FLAG_SUPPORT */ - -#if !defined(PG_HAVE_ATOMIC_U32_SUPPORT) - -#define PG_HAVE_ATOMIC_U32_SIMULATION - -#define PG_HAVE_ATOMIC_U32_SUPPORT -typedef struct pg_atomic_uint32 -{ - /* Check pg_atomic_flag's definition above for an explanation */ -#if defined(__hppa) || defined(__hppa__) /* HP PA-RISC, GCC and HP compilers */ - int sema[4]; -#else - int sema; -#endif - volatile uint32 value; -} pg_atomic_uint32; - -#endif /* PG_HAVE_ATOMIC_U32_SUPPORT */ - -#if !defined(PG_HAVE_ATOMIC_U64_SUPPORT) - -#define PG_HAVE_ATOMIC_U64_SIMULATION - -#define PG_HAVE_ATOMIC_U64_SUPPORT -typedef struct pg_atomic_uint64 -{ - /* Check pg_atomic_flag's definition above for an explanation */ -#if defined(__hppa) || defined(__hppa__) /* HP PA-RISC, GCC and HP compilers */ - int sema[4]; -#else - int sema; -#endif - volatile uint64 value; -} pg_atomic_uint64; - -#endif /* PG_HAVE_ATOMIC_U64_SUPPORT */ - -#ifdef PG_HAVE_ATOMIC_FLAG_SIMULATION - -#define PG_HAVE_ATOMIC_INIT_FLAG -extern void pg_atomic_init_flag_impl(volatile pg_atomic_flag *ptr); - -#define PG_HAVE_ATOMIC_TEST_SET_FLAG -extern bool pg_atomic_test_set_flag_impl(volatile pg_atomic_flag *ptr); - -#define PG_HAVE_ATOMIC_CLEAR_FLAG -extern void pg_atomic_clear_flag_impl(volatile pg_atomic_flag *ptr); - -#define PG_HAVE_ATOMIC_UNLOCKED_TEST_FLAG -extern bool pg_atomic_unlocked_test_flag_impl(volatile pg_atomic_flag *ptr); - -#endif /* PG_HAVE_ATOMIC_FLAG_SIMULATION */ - -#ifdef PG_HAVE_ATOMIC_U32_SIMULATION - -#define PG_HAVE_ATOMIC_INIT_U32 -extern void pg_atomic_init_u32_impl(volatile pg_atomic_uint32 *ptr, uint32 val_); - -#define PG_HAVE_ATOMIC_WRITE_U32 -extern void pg_atomic_write_u32_impl(volatile pg_atomic_uint32 *ptr, uint32 val); - -#define PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U32 -extern bool pg_atomic_compare_exchange_u32_impl(volatile pg_atomic_uint32 *ptr, - uint32 *expected, uint32 newval); - -#define PG_HAVE_ATOMIC_FETCH_ADD_U32 -extern uint32 pg_atomic_fetch_add_u32_impl(volatile pg_atomic_uint32 *ptr, int32 add_); - -#endif /* PG_HAVE_ATOMIC_U32_SIMULATION */ - - -#ifdef PG_HAVE_ATOMIC_U64_SIMULATION - -#define PG_HAVE_ATOMIC_INIT_U64 -extern void pg_atomic_init_u64_impl(volatile pg_atomic_uint64 *ptr, uint64 val_); - -#define PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U64 -extern bool pg_atomic_compare_exchange_u64_impl(volatile pg_atomic_uint64 *ptr, - uint64 *expected, uint64 newval); - -#define PG_HAVE_ATOMIC_FETCH_ADD_U64 -extern uint64 pg_atomic_fetch_add_u64_impl(volatile pg_atomic_uint64 *ptr, int64 add_); - -#endif /* PG_HAVE_ATOMIC_U64_SIMULATION */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/generic-gcc.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/generic-gcc.h deleted file mode 100644 index 6c566aff9..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/generic-gcc.h +++ /dev/null @@ -1,286 +0,0 @@ -/*------------------------------------------------------------------------- - * - * generic-gcc.h - * Atomic operations, implemented using gcc (or compatible) intrinsics. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES: - * - * Documentation: - * * Legacy __sync Built-in Functions for Atomic Memory Access - * https://gcc.gnu.org/onlinedocs/gcc-4.8.2/gcc/_005f_005fsync-Builtins.html - * * Built-in functions for memory model aware atomic operations - * https://gcc.gnu.org/onlinedocs/gcc-4.8.2/gcc/_005f_005fatomic-Builtins.html - * - * src/include/port/atomics/generic-gcc.h - * - *------------------------------------------------------------------------- - */ - -/* intentionally no include guards, should only be included by atomics.h */ -#ifndef INSIDE_ATOMICS_H -#error "should be included via atomics.h" -#endif - -/* - * An empty asm block should be a sufficient compiler barrier. - */ -#define pg_compiler_barrier_impl() __asm__ __volatile__("" ::: "memory") - -/* - * If we're on GCC 4.1.0 or higher, we should be able to get a memory barrier - * out of this compiler built-in. But we prefer to rely on platform specific - * definitions where possible, and use this only as a fallback. - */ -#if !defined(pg_memory_barrier_impl) -# if defined(HAVE_GCC__ATOMIC_INT32_CAS) -# define pg_memory_barrier_impl() __atomic_thread_fence(__ATOMIC_SEQ_CST) -# elif (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)) -# define pg_memory_barrier_impl() __sync_synchronize() -# endif -#endif /* !defined(pg_memory_barrier_impl) */ - -#if !defined(pg_read_barrier_impl) && defined(HAVE_GCC__ATOMIC_INT32_CAS) -/* acquire semantics include read barrier semantics */ -# define pg_read_barrier_impl() __atomic_thread_fence(__ATOMIC_ACQUIRE) -#endif - -#if !defined(pg_write_barrier_impl) && defined(HAVE_GCC__ATOMIC_INT32_CAS) -/* release semantics include write barrier semantics */ -# define pg_write_barrier_impl() __atomic_thread_fence(__ATOMIC_RELEASE) -#endif - - -#ifdef HAVE_ATOMICS - -/* generic gcc based atomic flag implementation */ -#if !defined(PG_HAVE_ATOMIC_FLAG_SUPPORT) \ - && (defined(HAVE_GCC__SYNC_INT32_TAS) || defined(HAVE_GCC__SYNC_CHAR_TAS)) - -#define PG_HAVE_ATOMIC_FLAG_SUPPORT -typedef struct pg_atomic_flag -{ - /* - * If we have a choice, use int-width TAS, because that is more efficient - * and/or more reliably implemented on most non-Intel platforms. (Note - * that this code isn't used on x86[_64]; see arch-x86.h for that.) - */ -#ifdef HAVE_GCC__SYNC_INT32_TAS - volatile int value; -#else - volatile char value; -#endif -} pg_atomic_flag; - -#endif /* !ATOMIC_FLAG_SUPPORT && SYNC_INT32_TAS */ - -/* generic gcc based atomic uint32 implementation */ -#if !defined(PG_HAVE_ATOMIC_U32_SUPPORT) \ - && (defined(HAVE_GCC__ATOMIC_INT32_CAS) || defined(HAVE_GCC__SYNC_INT32_CAS)) - -#define PG_HAVE_ATOMIC_U32_SUPPORT -typedef struct pg_atomic_uint32 -{ - volatile uint32 value; -} pg_atomic_uint32; - -#endif /* defined(HAVE_GCC__ATOMIC_INT32_CAS) || defined(HAVE_GCC__SYNC_INT32_CAS) */ - -/* generic gcc based atomic uint64 implementation */ -#if !defined(PG_HAVE_ATOMIC_U64_SUPPORT) \ - && !defined(PG_DISABLE_64_BIT_ATOMICS) \ - && (defined(HAVE_GCC__ATOMIC_INT64_CAS) || defined(HAVE_GCC__SYNC_INT64_CAS)) - -#define PG_HAVE_ATOMIC_U64_SUPPORT - -typedef struct pg_atomic_uint64 -{ - volatile uint64 value pg_attribute_aligned(8); -} pg_atomic_uint64; - -#endif /* defined(HAVE_GCC__ATOMIC_INT64_CAS) || defined(HAVE_GCC__SYNC_INT64_CAS) */ - -#ifdef PG_HAVE_ATOMIC_FLAG_SUPPORT - -#if defined(HAVE_GCC__SYNC_CHAR_TAS) || defined(HAVE_GCC__SYNC_INT32_TAS) - -#ifndef PG_HAVE_ATOMIC_TEST_SET_FLAG -#define PG_HAVE_ATOMIC_TEST_SET_FLAG -static inline bool -pg_atomic_test_set_flag_impl(volatile pg_atomic_flag *ptr) -{ - /* NB: only an acquire barrier, not a full one */ - /* some platform only support a 1 here */ - return __sync_lock_test_and_set(&ptr->value, 1) == 0; -} -#endif - -#endif /* defined(HAVE_GCC__SYNC_*_TAS) */ - -#ifndef PG_HAVE_ATOMIC_UNLOCKED_TEST_FLAG -#define PG_HAVE_ATOMIC_UNLOCKED_TEST_FLAG -static inline bool -pg_atomic_unlocked_test_flag_impl(volatile pg_atomic_flag *ptr) -{ - return ptr->value == 0; -} -#endif - -#ifndef PG_HAVE_ATOMIC_CLEAR_FLAG -#define PG_HAVE_ATOMIC_CLEAR_FLAG -static inline void -pg_atomic_clear_flag_impl(volatile pg_atomic_flag *ptr) -{ - __sync_lock_release(&ptr->value); -} -#endif - -#ifndef PG_HAVE_ATOMIC_INIT_FLAG -#define PG_HAVE_ATOMIC_INIT_FLAG -static inline void -pg_atomic_init_flag_impl(volatile pg_atomic_flag *ptr) -{ - pg_atomic_clear_flag_impl(ptr); -} -#endif - -#endif /* defined(PG_HAVE_ATOMIC_FLAG_SUPPORT) */ - -/* prefer __atomic, it has a better API */ -#if !defined(PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U32) && defined(HAVE_GCC__ATOMIC_INT32_CAS) -#define PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U32 -static inline bool -pg_atomic_compare_exchange_u32_impl(volatile pg_atomic_uint32 *ptr, - uint32 *expected, uint32 newval) -{ - /* FIXME: we can probably use a lower consistency model */ - return __atomic_compare_exchange_n(&ptr->value, expected, newval, false, - __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST); -} -#endif - -#if !defined(PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U32) && defined(HAVE_GCC__SYNC_INT32_CAS) -#define PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U32 -static inline bool -pg_atomic_compare_exchange_u32_impl(volatile pg_atomic_uint32 *ptr, - uint32 *expected, uint32 newval) -{ - bool ret; - uint32 current; - current = __sync_val_compare_and_swap(&ptr->value, *expected, newval); - ret = current == *expected; - *expected = current; - return ret; -} -#endif - -/* if we have 32-bit __sync_val_compare_and_swap, assume we have these too: */ - -#if !defined(PG_HAVE_ATOMIC_FETCH_ADD_U32) && defined(HAVE_GCC__SYNC_INT32_CAS) -#define PG_HAVE_ATOMIC_FETCH_ADD_U32 -static inline uint32 -pg_atomic_fetch_add_u32_impl(volatile pg_atomic_uint32 *ptr, int32 add_) -{ - return __sync_fetch_and_add(&ptr->value, add_); -} -#endif - -#if !defined(PG_HAVE_ATOMIC_FETCH_SUB_U32) && defined(HAVE_GCC__SYNC_INT32_CAS) -#define PG_HAVE_ATOMIC_FETCH_SUB_U32 -static inline uint32 -pg_atomic_fetch_sub_u32_impl(volatile pg_atomic_uint32 *ptr, int32 sub_) -{ - return __sync_fetch_and_sub(&ptr->value, sub_); -} -#endif - -#if !defined(PG_HAVE_ATOMIC_FETCH_AND_U32) && defined(HAVE_GCC__SYNC_INT32_CAS) -#define PG_HAVE_ATOMIC_FETCH_AND_U32 -static inline uint32 -pg_atomic_fetch_and_u32_impl(volatile pg_atomic_uint32 *ptr, uint32 and_) -{ - return __sync_fetch_and_and(&ptr->value, and_); -} -#endif - -#if !defined(PG_HAVE_ATOMIC_FETCH_OR_U32) && defined(HAVE_GCC__SYNC_INT32_CAS) -#define PG_HAVE_ATOMIC_FETCH_OR_U32 -static inline uint32 -pg_atomic_fetch_or_u32_impl(volatile pg_atomic_uint32 *ptr, uint32 or_) -{ - return __sync_fetch_and_or(&ptr->value, or_); -} -#endif - - -#if !defined(PG_DISABLE_64_BIT_ATOMICS) - -#if !defined(PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U64) && defined(HAVE_GCC__ATOMIC_INT64_CAS) -#define PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U64 -static inline bool -pg_atomic_compare_exchange_u64_impl(volatile pg_atomic_uint64 *ptr, - uint64 *expected, uint64 newval) -{ - return __atomic_compare_exchange_n(&ptr->value, expected, newval, false, - __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST); -} -#endif - -#if !defined(PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U64) && defined(HAVE_GCC__SYNC_INT64_CAS) -#define PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U64 -static inline bool -pg_atomic_compare_exchange_u64_impl(volatile pg_atomic_uint64 *ptr, - uint64 *expected, uint64 newval) -{ - bool ret; - uint64 current; - current = __sync_val_compare_and_swap(&ptr->value, *expected, newval); - ret = current == *expected; - *expected = current; - return ret; -} -#endif - -/* if we have 64-bit __sync_val_compare_and_swap, assume we have these too: */ - -#if !defined(PG_HAVE_ATOMIC_FETCH_ADD_U64) && defined(HAVE_GCC__SYNC_INT64_CAS) -#define PG_HAVE_ATOMIC_FETCH_ADD_U64 -static inline uint64 -pg_atomic_fetch_add_u64_impl(volatile pg_atomic_uint64 *ptr, int64 add_) -{ - return __sync_fetch_and_add(&ptr->value, add_); -} -#endif - -#if !defined(PG_HAVE_ATOMIC_FETCH_SUB_U64) && defined(HAVE_GCC__SYNC_INT64_CAS) -#define PG_HAVE_ATOMIC_FETCH_SUB_U64 -static inline uint64 -pg_atomic_fetch_sub_u64_impl(volatile pg_atomic_uint64 *ptr, int64 sub_) -{ - return __sync_fetch_and_sub(&ptr->value, sub_); -} -#endif - -#if !defined(PG_HAVE_ATOMIC_FETCH_AND_U64) && defined(HAVE_GCC__SYNC_INT64_CAS) -#define PG_HAVE_ATOMIC_FETCH_AND_U64 -static inline uint64 -pg_atomic_fetch_and_u64_impl(volatile pg_atomic_uint64 *ptr, uint64 and_) -{ - return __sync_fetch_and_and(&ptr->value, and_); -} -#endif - -#if !defined(PG_HAVE_ATOMIC_FETCH_OR_U64) && defined(HAVE_GCC__SYNC_INT64_CAS) -#define PG_HAVE_ATOMIC_FETCH_OR_U64 -static inline uint64 -pg_atomic_fetch_or_u64_impl(volatile pg_atomic_uint64 *ptr, uint64 or_) -{ - return __sync_fetch_and_or(&ptr->value, or_); -} -#endif - -#endif /* !defined(PG_DISABLE_64_BIT_ATOMICS) */ - -#endif /* defined(HAVE_ATOMICS) */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/generic.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/generic.h deleted file mode 100644 index a1f245624..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/atomics/generic.h +++ /dev/null @@ -1,401 +0,0 @@ -/*------------------------------------------------------------------------- - * - * generic.h - * Implement higher level operations based on some lower level atomic - * operations. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/port/atomics/generic.h - * - *------------------------------------------------------------------------- - */ - -/* intentionally no include guards, should only be included by atomics.h */ -#ifndef INSIDE_ATOMICS_H -# error "should be included via atomics.h" -#endif - -/* - * If read or write barriers are undefined, we upgrade them to full memory - * barriers. - */ -#if !defined(pg_read_barrier_impl) -# define pg_read_barrier_impl pg_memory_barrier_impl -#endif -#if !defined(pg_write_barrier_impl) -# define pg_write_barrier_impl pg_memory_barrier_impl -#endif - -#ifndef PG_HAVE_SPIN_DELAY -#define PG_HAVE_SPIN_DELAY -#define pg_spin_delay_impl() ((void)0) -#endif - - -/* provide fallback */ -#if !defined(PG_HAVE_ATOMIC_FLAG_SUPPORT) && defined(PG_HAVE_ATOMIC_U32_SUPPORT) -#define PG_HAVE_ATOMIC_FLAG_SUPPORT -typedef pg_atomic_uint32 pg_atomic_flag; -#endif - -#ifndef PG_HAVE_ATOMIC_READ_U32 -#define PG_HAVE_ATOMIC_READ_U32 -static inline uint32 -pg_atomic_read_u32_impl(volatile pg_atomic_uint32 *ptr) -{ - return ptr->value; -} -#endif - -#ifndef PG_HAVE_ATOMIC_WRITE_U32 -#define PG_HAVE_ATOMIC_WRITE_U32 -static inline void -pg_atomic_write_u32_impl(volatile pg_atomic_uint32 *ptr, uint32 val) -{ - ptr->value = val; -} -#endif - -#ifndef PG_HAVE_ATOMIC_UNLOCKED_WRITE_U32 -#define PG_HAVE_ATOMIC_UNLOCKED_WRITE_U32 -static inline void -pg_atomic_unlocked_write_u32_impl(volatile pg_atomic_uint32 *ptr, uint32 val) -{ - ptr->value = val; -} -#endif - -/* - * provide fallback for test_and_set using atomic_exchange if available - */ -#if !defined(PG_HAVE_ATOMIC_TEST_SET_FLAG) && defined(PG_HAVE_ATOMIC_EXCHANGE_U32) - -#define PG_HAVE_ATOMIC_INIT_FLAG -static inline void -pg_atomic_init_flag_impl(volatile pg_atomic_flag *ptr) -{ - pg_atomic_write_u32_impl(ptr, 0); -} - -#define PG_HAVE_ATOMIC_TEST_SET_FLAG -static inline bool -pg_atomic_test_set_flag_impl(volatile pg_atomic_flag *ptr) -{ - return pg_atomic_exchange_u32_impl(ptr, &value, 1) == 0; -} - -#define PG_HAVE_ATOMIC_UNLOCKED_TEST_FLAG -static inline bool -pg_atomic_unlocked_test_flag_impl(volatile pg_atomic_flag *ptr) -{ - return pg_atomic_read_u32_impl(ptr) == 0; -} - - -#define PG_HAVE_ATOMIC_CLEAR_FLAG -static inline void -pg_atomic_clear_flag_impl(volatile pg_atomic_flag *ptr) -{ - /* XXX: release semantics suffice? */ - pg_memory_barrier_impl(); - pg_atomic_write_u32_impl(ptr, 0); -} - -/* - * provide fallback for test_and_set using atomic_compare_exchange if - * available. - */ -#elif !defined(PG_HAVE_ATOMIC_TEST_SET_FLAG) && defined(PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U32) - -#define PG_HAVE_ATOMIC_INIT_FLAG -static inline void -pg_atomic_init_flag_impl(volatile pg_atomic_flag *ptr) -{ - pg_atomic_write_u32_impl(ptr, 0); -} - -#define PG_HAVE_ATOMIC_TEST_SET_FLAG -static inline bool -pg_atomic_test_set_flag_impl(volatile pg_atomic_flag *ptr) -{ - uint32 value = 0; - return pg_atomic_compare_exchange_u32_impl(ptr, &value, 1); -} - -#define PG_HAVE_ATOMIC_UNLOCKED_TEST_FLAG -static inline bool -pg_atomic_unlocked_test_flag_impl(volatile pg_atomic_flag *ptr) -{ - return pg_atomic_read_u32_impl(ptr) == 0; -} - -#define PG_HAVE_ATOMIC_CLEAR_FLAG -static inline void -pg_atomic_clear_flag_impl(volatile pg_atomic_flag *ptr) -{ - /* - * Use a memory barrier + plain write if we have a native memory - * barrier. But don't do so if memory barriers use spinlocks - that'd lead - * to circularity if flags are used to implement spinlocks. - */ -#ifndef PG_HAVE_MEMORY_BARRIER_EMULATION - /* XXX: release semantics suffice? */ - pg_memory_barrier_impl(); - pg_atomic_write_u32_impl(ptr, 0); -#else - uint32 value = 1; - pg_atomic_compare_exchange_u32_impl(ptr, &value, 0); -#endif -} - -#elif !defined(PG_HAVE_ATOMIC_TEST_SET_FLAG) -# error "No pg_atomic_test_and_set provided" -#endif /* !defined(PG_HAVE_ATOMIC_TEST_SET_FLAG) */ - - -#ifndef PG_HAVE_ATOMIC_INIT_U32 -#define PG_HAVE_ATOMIC_INIT_U32 -static inline void -pg_atomic_init_u32_impl(volatile pg_atomic_uint32 *ptr, uint32 val_) -{ - ptr->value = val_; -} -#endif - -#if !defined(PG_HAVE_ATOMIC_EXCHANGE_U32) && defined(PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U32) -#define PG_HAVE_ATOMIC_EXCHANGE_U32 -static inline uint32 -pg_atomic_exchange_u32_impl(volatile pg_atomic_uint32 *ptr, uint32 xchg_) -{ - uint32 old; - old = ptr->value; /* ok if read is not atomic */ - while (!pg_atomic_compare_exchange_u32_impl(ptr, &old, xchg_)) - /* skip */; - return old; -} -#endif - -#if !defined(PG_HAVE_ATOMIC_FETCH_ADD_U32) && defined(PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U32) -#define PG_HAVE_ATOMIC_FETCH_ADD_U32 -static inline uint32 -pg_atomic_fetch_add_u32_impl(volatile pg_atomic_uint32 *ptr, int32 add_) -{ - uint32 old; - old = ptr->value; /* ok if read is not atomic */ - while (!pg_atomic_compare_exchange_u32_impl(ptr, &old, old + add_)) - /* skip */; - return old; -} -#endif - -#if !defined(PG_HAVE_ATOMIC_FETCH_SUB_U32) && defined(PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U32) -#define PG_HAVE_ATOMIC_FETCH_SUB_U32 -static inline uint32 -pg_atomic_fetch_sub_u32_impl(volatile pg_atomic_uint32 *ptr, int32 sub_) -{ - return pg_atomic_fetch_add_u32_impl(ptr, -sub_); -} -#endif - -#if !defined(PG_HAVE_ATOMIC_FETCH_AND_U32) && defined(PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U32) -#define PG_HAVE_ATOMIC_FETCH_AND_U32 -static inline uint32 -pg_atomic_fetch_and_u32_impl(volatile pg_atomic_uint32 *ptr, uint32 and_) -{ - uint32 old; - old = ptr->value; /* ok if read is not atomic */ - while (!pg_atomic_compare_exchange_u32_impl(ptr, &old, old & and_)) - /* skip */; - return old; -} -#endif - -#if !defined(PG_HAVE_ATOMIC_FETCH_OR_U32) && defined(PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U32) -#define PG_HAVE_ATOMIC_FETCH_OR_U32 -static inline uint32 -pg_atomic_fetch_or_u32_impl(volatile pg_atomic_uint32 *ptr, uint32 or_) -{ - uint32 old; - old = ptr->value; /* ok if read is not atomic */ - while (!pg_atomic_compare_exchange_u32_impl(ptr, &old, old | or_)) - /* skip */; - return old; -} -#endif - -#if !defined(PG_HAVE_ATOMIC_ADD_FETCH_U32) && defined(PG_HAVE_ATOMIC_FETCH_ADD_U32) -#define PG_HAVE_ATOMIC_ADD_FETCH_U32 -static inline uint32 -pg_atomic_add_fetch_u32_impl(volatile pg_atomic_uint32 *ptr, int32 add_) -{ - return pg_atomic_fetch_add_u32_impl(ptr, add_) + add_; -} -#endif - -#if !defined(PG_HAVE_ATOMIC_SUB_FETCH_U32) && defined(PG_HAVE_ATOMIC_FETCH_SUB_U32) -#define PG_HAVE_ATOMIC_SUB_FETCH_U32 -static inline uint32 -pg_atomic_sub_fetch_u32_impl(volatile pg_atomic_uint32 *ptr, int32 sub_) -{ - return pg_atomic_fetch_sub_u32_impl(ptr, sub_) - sub_; -} -#endif - -#if !defined(PG_HAVE_ATOMIC_EXCHANGE_U64) && defined(PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U64) -#define PG_HAVE_ATOMIC_EXCHANGE_U64 -static inline uint64 -pg_atomic_exchange_u64_impl(volatile pg_atomic_uint64 *ptr, uint64 xchg_) -{ - uint64 old; - old = ptr->value; /* ok if read is not atomic */ - while (!pg_atomic_compare_exchange_u64_impl(ptr, &old, xchg_)) - /* skip */; - return old; -} -#endif - -#ifndef PG_HAVE_ATOMIC_WRITE_U64 -#define PG_HAVE_ATOMIC_WRITE_U64 - -#if defined(PG_HAVE_8BYTE_SINGLE_COPY_ATOMICITY) && \ - !defined(PG_HAVE_ATOMIC_U64_SIMULATION) - -static inline void -pg_atomic_write_u64_impl(volatile pg_atomic_uint64 *ptr, uint64 val) -{ - /* - * On this platform aligned 64bit writes are guaranteed to be atomic, - * except if using the fallback implementation, where can't guarantee the - * required alignment. - */ - AssertPointerAlignment(ptr, 8); - ptr->value = val; -} - -#else - -static inline void -pg_atomic_write_u64_impl(volatile pg_atomic_uint64 *ptr, uint64 val) -{ - /* - * 64 bit writes aren't safe on all platforms. In the generic - * implementation implement them as an atomic exchange. - */ - pg_atomic_exchange_u64_impl(ptr, val); -} - -#endif /* PG_HAVE_8BYTE_SINGLE_COPY_ATOMICITY && !PG_HAVE_ATOMIC_U64_SIMULATION */ -#endif /* PG_HAVE_ATOMIC_WRITE_U64 */ - -#ifndef PG_HAVE_ATOMIC_READ_U64 -#define PG_HAVE_ATOMIC_READ_U64 - -#if defined(PG_HAVE_8BYTE_SINGLE_COPY_ATOMICITY) && \ - !defined(PG_HAVE_ATOMIC_U64_SIMULATION) - -static inline uint64 -pg_atomic_read_u64_impl(volatile pg_atomic_uint64 *ptr) -{ - /* - * On this platform aligned 64-bit reads are guaranteed to be atomic. - */ - AssertPointerAlignment(ptr, 8); - return ptr->value; -} - -#else - -static inline uint64 -pg_atomic_read_u64_impl(volatile pg_atomic_uint64 *ptr) -{ - uint64 old = 0; - - /* - * 64-bit reads aren't atomic on all platforms. In the generic - * implementation implement them as a compare/exchange with 0. That'll - * fail or succeed, but always return the old value. Possibly might store - * a 0, but only if the previous value also was a 0 - i.e. harmless. - */ - pg_atomic_compare_exchange_u64_impl(ptr, &old, 0); - - return old; -} -#endif /* PG_HAVE_8BYTE_SINGLE_COPY_ATOMICITY && !PG_HAVE_ATOMIC_U64_SIMULATION */ -#endif /* PG_HAVE_ATOMIC_READ_U64 */ - -#ifndef PG_HAVE_ATOMIC_INIT_U64 -#define PG_HAVE_ATOMIC_INIT_U64 -static inline void -pg_atomic_init_u64_impl(volatile pg_atomic_uint64 *ptr, uint64 val_) -{ - ptr->value = val_; -} -#endif - -#if !defined(PG_HAVE_ATOMIC_FETCH_ADD_U64) && defined(PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U64) -#define PG_HAVE_ATOMIC_FETCH_ADD_U64 -static inline uint64 -pg_atomic_fetch_add_u64_impl(volatile pg_atomic_uint64 *ptr, int64 add_) -{ - uint64 old; - old = ptr->value; /* ok if read is not atomic */ - while (!pg_atomic_compare_exchange_u64_impl(ptr, &old, old + add_)) - /* skip */; - return old; -} -#endif - -#if !defined(PG_HAVE_ATOMIC_FETCH_SUB_U64) && defined(PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U64) -#define PG_HAVE_ATOMIC_FETCH_SUB_U64 -static inline uint64 -pg_atomic_fetch_sub_u64_impl(volatile pg_atomic_uint64 *ptr, int64 sub_) -{ - return pg_atomic_fetch_add_u64_impl(ptr, -sub_); -} -#endif - -#if !defined(PG_HAVE_ATOMIC_FETCH_AND_U64) && defined(PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U64) -#define PG_HAVE_ATOMIC_FETCH_AND_U64 -static inline uint64 -pg_atomic_fetch_and_u64_impl(volatile pg_atomic_uint64 *ptr, uint64 and_) -{ - uint64 old; - old = ptr->value; /* ok if read is not atomic */ - while (!pg_atomic_compare_exchange_u64_impl(ptr, &old, old & and_)) - /* skip */; - return old; -} -#endif - -#if !defined(PG_HAVE_ATOMIC_FETCH_OR_U64) && defined(PG_HAVE_ATOMIC_COMPARE_EXCHANGE_U64) -#define PG_HAVE_ATOMIC_FETCH_OR_U64 -static inline uint64 -pg_atomic_fetch_or_u64_impl(volatile pg_atomic_uint64 *ptr, uint64 or_) -{ - uint64 old; - old = ptr->value; /* ok if read is not atomic */ - while (!pg_atomic_compare_exchange_u64_impl(ptr, &old, old | or_)) - /* skip */; - return old; -} -#endif - -#if !defined(PG_HAVE_ATOMIC_ADD_FETCH_U64) && defined(PG_HAVE_ATOMIC_FETCH_ADD_U64) -#define PG_HAVE_ATOMIC_ADD_FETCH_U64 -static inline uint64 -pg_atomic_add_fetch_u64_impl(volatile pg_atomic_uint64 *ptr, int64 add_) -{ - return pg_atomic_fetch_add_u64_impl(ptr, add_) + add_; -} -#endif - -#if !defined(PG_HAVE_ATOMIC_SUB_FETCH_U64) && defined(PG_HAVE_ATOMIC_FETCH_SUB_U64) -#define PG_HAVE_ATOMIC_SUB_FETCH_U64 -static inline uint64 -pg_atomic_sub_fetch_u64_impl(volatile pg_atomic_uint64 *ptr, int64 sub_) -{ - return pg_atomic_fetch_sub_u64_impl(ptr, sub_) - sub_; -} -#endif diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/pg_bitutils.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/pg_bitutils.h deleted file mode 100644 index 04e58cd1c..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/pg_bitutils.h +++ /dev/null @@ -1,302 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_bitutils.h - * Miscellaneous functions for bit-wise operations. - * - * - * Copyright (c) 2019-2022, PostgreSQL Global Development Group - * - * src/include/port/pg_bitutils.h - * - *------------------------------------------------------------------------- - */ -#ifndef PG_BITUTILS_H -#define PG_BITUTILS_H - -extern PGDLLIMPORT const uint8 pg_leftmost_one_pos[256]; -extern PGDLLIMPORT const uint8 pg_rightmost_one_pos[256]; -extern PGDLLIMPORT const uint8 pg_number_of_ones[256]; - -/* - * pg_leftmost_one_pos32 - * Returns the position of the most significant set bit in "word", - * measured from the least significant bit. word must not be 0. - */ -static inline int -pg_leftmost_one_pos32(uint32 word) -{ -#ifdef HAVE__BUILTIN_CLZ - Assert(word != 0); - - return 31 - __builtin_clz(word); -#else - int shift = 32 - 8; - - Assert(word != 0); - - while ((word >> shift) == 0) - shift -= 8; - - return shift + pg_leftmost_one_pos[(word >> shift) & 255]; -#endif /* HAVE__BUILTIN_CLZ */ -} - -/* - * pg_leftmost_one_pos64 - * As above, but for a 64-bit word. - */ -static inline int -pg_leftmost_one_pos64(uint64 word) -{ -#ifdef HAVE__BUILTIN_CLZ - Assert(word != 0); - -#if defined(HAVE_LONG_INT_64) - return 63 - __builtin_clzl(word); -#elif defined(HAVE_LONG_LONG_INT_64) - return 63 - __builtin_clzll(word); -#else -#error must have a working 64-bit integer datatype -#endif -#else /* !HAVE__BUILTIN_CLZ */ - int shift = 64 - 8; - - Assert(word != 0); - - while ((word >> shift) == 0) - shift -= 8; - - return shift + pg_leftmost_one_pos[(word >> shift) & 255]; -#endif /* HAVE__BUILTIN_CLZ */ -} - -/* - * pg_rightmost_one_pos32 - * Returns the position of the least significant set bit in "word", - * measured from the least significant bit. word must not be 0. - */ -static inline int -pg_rightmost_one_pos32(uint32 word) -{ -#ifdef HAVE__BUILTIN_CTZ - Assert(word != 0); - - return __builtin_ctz(word); -#else - int result = 0; - - Assert(word != 0); - - while ((word & 255) == 0) - { - word >>= 8; - result += 8; - } - result += pg_rightmost_one_pos[word & 255]; - return result; -#endif /* HAVE__BUILTIN_CTZ */ -} - -/* - * pg_rightmost_one_pos64 - * As above, but for a 64-bit word. - */ -static inline int -pg_rightmost_one_pos64(uint64 word) -{ -#ifdef HAVE__BUILTIN_CTZ - Assert(word != 0); - -#if defined(HAVE_LONG_INT_64) - return __builtin_ctzl(word); -#elif defined(HAVE_LONG_LONG_INT_64) - return __builtin_ctzll(word); -#else -#error must have a working 64-bit integer datatype -#endif -#else /* !HAVE__BUILTIN_CTZ */ - int result = 0; - - Assert(word != 0); - - while ((word & 255) == 0) - { - word >>= 8; - result += 8; - } - result += pg_rightmost_one_pos[word & 255]; - return result; -#endif /* HAVE__BUILTIN_CTZ */ -} - -/* - * pg_nextpower2_32 - * Returns the next higher power of 2 above 'num', or 'num' if it's - * already a power of 2. - * - * 'num' mustn't be 0 or be above PG_UINT32_MAX / 2 + 1. - */ -static inline uint32 -pg_nextpower2_32(uint32 num) -{ - Assert(num > 0 && num <= PG_UINT32_MAX / 2 + 1); - - /* - * A power 2 number has only 1 bit set. Subtracting 1 from such a number - * will turn on all previous bits resulting in no common bits being set - * between num and num-1. - */ - if ((num & (num - 1)) == 0) - return num; /* already power 2 */ - - return ((uint32) 1) << (pg_leftmost_one_pos32(num) + 1); -} - -/* - * pg_nextpower2_64 - * Returns the next higher power of 2 above 'num', or 'num' if it's - * already a power of 2. - * - * 'num' mustn't be 0 or be above PG_UINT64_MAX / 2 + 1. - */ -static inline uint64 -pg_nextpower2_64(uint64 num) -{ - Assert(num > 0 && num <= PG_UINT64_MAX / 2 + 1); - - /* - * A power 2 number has only 1 bit set. Subtracting 1 from such a number - * will turn on all previous bits resulting in no common bits being set - * between num and num-1. - */ - if ((num & (num - 1)) == 0) - return num; /* already power 2 */ - - return ((uint64) 1) << (pg_leftmost_one_pos64(num) + 1); -} - -/* - * pg_nextpower2_size_t - * Returns the next higher power of 2 above 'num', for a size_t input. - */ -#if SIZEOF_SIZE_T == 4 -#define pg_nextpower2_size_t(num) pg_nextpower2_32(num) -#else -#define pg_nextpower2_size_t(num) pg_nextpower2_64(num) -#endif - -/* - * pg_prevpower2_32 - * Returns the next lower power of 2 below 'num', or 'num' if it's - * already a power of 2. - * - * 'num' mustn't be 0. - */ -static inline uint32 -pg_prevpower2_32(uint32 num) -{ - return ((uint32) 1) << pg_leftmost_one_pos32(num); -} - -/* - * pg_prevpower2_64 - * Returns the next lower power of 2 below 'num', or 'num' if it's - * already a power of 2. - * - * 'num' mustn't be 0. - */ -static inline uint64 -pg_prevpower2_64(uint64 num) -{ - return ((uint64) 1) << pg_leftmost_one_pos64(num); -} - -/* - * pg_prevpower2_size_t - * Returns the next lower power of 2 below 'num', for a size_t input. - */ -#if SIZEOF_SIZE_T == 4 -#define pg_prevpower2_size_t(num) pg_prevpower2_32(num) -#else -#define pg_prevpower2_size_t(num) pg_prevpower2_64(num) -#endif - -/* - * pg_ceil_log2_32 - * Returns equivalent of ceil(log2(num)) - */ -static inline uint32 -pg_ceil_log2_32(uint32 num) -{ - if (num < 2) - return 0; - else - return pg_leftmost_one_pos32(num - 1) + 1; -} - -/* - * pg_ceil_log2_64 - * Returns equivalent of ceil(log2(num)) - */ -static inline uint64 -pg_ceil_log2_64(uint64 num) -{ - if (num < 2) - return 0; - else - return pg_leftmost_one_pos64(num - 1) + 1; -} - -/* - * With MSVC on x86_64 builds, try using native popcnt instructions via the - * __popcnt and __popcnt64 intrinsics. These don't work the same as GCC's - * __builtin_popcount* intrinsic functions as they always emit popcnt - * instructions. - */ -#if defined(_MSC_VER) && defined(_M_AMD64) -#define HAVE_X86_64_POPCNTQ -#endif - -/* - * On x86_64, we can use the hardware popcount instruction, but only if - * we can verify that the CPU supports it via the cpuid instruction. - * - * Otherwise, we fall back to a hand-rolled implementation. - */ -#ifdef HAVE_X86_64_POPCNTQ -#if defined(HAVE__GET_CPUID) || defined(HAVE__CPUID) -#define TRY_POPCNT_FAST 1 -#endif -#endif - -#ifdef TRY_POPCNT_FAST -/* Attempt to use the POPCNT instruction, but perform a runtime check first */ -extern int (*pg_popcount32) (uint32 word); -extern int (*pg_popcount64) (uint64 word); - -#else -/* Use a portable implementation -- no need for a function pointer. */ -extern int pg_popcount32(uint32 word); -extern int pg_popcount64(uint64 word); - -#endif /* TRY_POPCNT_FAST */ - -/* Count the number of one-bits in a byte array */ -extern uint64 pg_popcount(const char *buf, int bytes); - -/* - * Rotate the bits of "word" to the right/left by n bits. - */ -static inline uint32 -pg_rotate_right32(uint32 word, int n) -{ - return (word >> n) | (word << (32 - n)); -} - -static inline uint32 -pg_rotate_left32(uint32 word, int n) -{ - return (word << n) | (word >> (32 - n)); -} - -#endif /* PG_BITUTILS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/pg_bswap.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/pg_bswap.h deleted file mode 100644 index 4033d2bf3..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/pg_bswap.h +++ /dev/null @@ -1,161 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_bswap.h - * Byte swapping. - * - * Macros for reversing the byte order of 16, 32 and 64-bit unsigned integers. - * For example, 0xAABBCCDD becomes 0xDDCCBBAA. These are just wrappers for - * built-in functions provided by the compiler where support exists. - * - * Note that all of these functions accept unsigned integers as arguments and - * return the same. Use caution when using these wrapper macros with signed - * integers. - * - * Copyright (c) 2015-2022, PostgreSQL Global Development Group - * - * src/include/port/pg_bswap.h - * - *------------------------------------------------------------------------- - */ -#ifndef PG_BSWAP_H -#define PG_BSWAP_H - - -/* - * In all supported versions msvc provides _byteswap_* functions in stdlib.h, - * already included by c.h. - */ - - -/* implementation of uint16 pg_bswap16(uint16) */ -#if defined(HAVE__BUILTIN_BSWAP16) - -#define pg_bswap16(x) __builtin_bswap16(x) - -#elif defined(_MSC_VER) - -#define pg_bswap16(x) _byteswap_ushort(x) - -#else - -static inline uint16 -pg_bswap16(uint16 x) -{ - return - ((x << 8) & 0xff00) | - ((x >> 8) & 0x00ff); -} - -#endif /* HAVE__BUILTIN_BSWAP16 */ - - -/* implementation of uint32 pg_bswap32(uint32) */ -#if defined(HAVE__BUILTIN_BSWAP32) - -#define pg_bswap32(x) __builtin_bswap32(x) - -#elif defined(_MSC_VER) - -#define pg_bswap32(x) _byteswap_ulong(x) - -#else - -static inline uint32 -pg_bswap32(uint32 x) -{ - return - ((x << 24) & 0xff000000) | - ((x << 8) & 0x00ff0000) | - ((x >> 8) & 0x0000ff00) | - ((x >> 24) & 0x000000ff); -} - -#endif /* HAVE__BUILTIN_BSWAP32 */ - - -/* implementation of uint64 pg_bswap64(uint64) */ -#if defined(HAVE__BUILTIN_BSWAP64) - -#define pg_bswap64(x) __builtin_bswap64(x) - - -#elif defined(_MSC_VER) - -#define pg_bswap64(x) _byteswap_uint64(x) - -#else - -static inline uint64 -pg_bswap64(uint64 x) -{ - return - ((x << 56) & UINT64CONST(0xff00000000000000)) | - ((x << 40) & UINT64CONST(0x00ff000000000000)) | - ((x << 24) & UINT64CONST(0x0000ff0000000000)) | - ((x << 8) & UINT64CONST(0x000000ff00000000)) | - ((x >> 8) & UINT64CONST(0x00000000ff000000)) | - ((x >> 24) & UINT64CONST(0x0000000000ff0000)) | - ((x >> 40) & UINT64CONST(0x000000000000ff00)) | - ((x >> 56) & UINT64CONST(0x00000000000000ff)); -} -#endif /* HAVE__BUILTIN_BSWAP64 */ - - -/* - * Portable and fast equivalents for ntohs, ntohl, htons, htonl, - * additionally extended to 64 bits. - */ -#ifdef WORDS_BIGENDIAN - -#define pg_hton16(x) (x) -#define pg_hton32(x) (x) -#define pg_hton64(x) (x) - -#define pg_ntoh16(x) (x) -#define pg_ntoh32(x) (x) -#define pg_ntoh64(x) (x) - -#else - -#define pg_hton16(x) pg_bswap16(x) -#define pg_hton32(x) pg_bswap32(x) -#define pg_hton64(x) pg_bswap64(x) - -#define pg_ntoh16(x) pg_bswap16(x) -#define pg_ntoh32(x) pg_bswap32(x) -#define pg_ntoh64(x) pg_bswap64(x) - -#endif /* WORDS_BIGENDIAN */ - - -/* - * Rearrange the bytes of a Datum from big-endian order into the native byte - * order. On big-endian machines, this does nothing at all. Note that the C - * type Datum is an unsigned integer type on all platforms. - * - * One possible application of the DatumBigEndianToNative() macro is to make - * bitwise comparisons cheaper. A simple 3-way comparison of Datums - * transformed by the macro (based on native, unsigned comparisons) will return - * the same result as a memcmp() of the corresponding original Datums, but can - * be much cheaper. It's generally safe to do this on big-endian systems - * without any special transformation occurring first. - * - * If SIZEOF_DATUM is not defined, then postgres.h wasn't included and these - * macros probably shouldn't be used, so we define nothing. Note that - * SIZEOF_DATUM == 8 would evaluate as 0 == 8 in that case, potentially - * leading to the wrong implementation being selected and confusing errors, so - * defining nothing is safest. - */ -#ifdef SIZEOF_DATUM -#ifdef WORDS_BIGENDIAN -#define DatumBigEndianToNative(x) (x) -#else /* !WORDS_BIGENDIAN */ -#if SIZEOF_DATUM == 8 -#define DatumBigEndianToNative(x) pg_bswap64(x) -#else /* SIZEOF_DATUM != 8 */ -#define DatumBigEndianToNative(x) pg_bswap32(x) -#endif /* SIZEOF_DATUM == 8 */ -#endif /* WORDS_BIGENDIAN */ -#endif /* SIZEOF_DATUM */ - -#endif /* PG_BSWAP_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/pg_crc32c.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/pg_crc32c.h deleted file mode 100644 index d7668651b..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/port/pg_crc32c.h +++ /dev/null @@ -1,101 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_crc32c.h - * Routines for computing CRC-32C checksums. - * - * The speed of CRC-32C calculation has a big impact on performance, so we - * jump through some hoops to get the best implementation for each - * platform. Some CPU architectures have special instructions for speeding - * up CRC calculations (e.g. Intel SSE 4.2), on other platforms we use the - * Slicing-by-8 algorithm which uses lookup tables. - * - * The public interface consists of four macros: - * - * INIT_CRC32C(crc) - * Initialize a CRC accumulator - * - * COMP_CRC32C(crc, data, len) - * Accumulate some (more) bytes into a CRC - * - * FIN_CRC32C(crc) - * Finish a CRC calculation - * - * EQ_CRC32C(c1, c2) - * Check for equality of two CRCs. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/port/pg_crc32c.h - * - *------------------------------------------------------------------------- - */ -#ifndef PG_CRC32C_H -#define PG_CRC32C_H - -#include "port/pg_bswap.h" - -typedef uint32 pg_crc32c; - -/* The INIT and EQ macros are the same for all implementations. */ -#define INIT_CRC32C(crc) ((crc) = 0xFFFFFFFF) -#define EQ_CRC32C(c1, c2) ((c1) == (c2)) - -#if defined(USE_SSE42_CRC32C) -/* Use Intel SSE4.2 instructions. */ -#define COMP_CRC32C(crc, data, len) \ - ((crc) = pg_comp_crc32c_sse42((crc), (data), (len))) -#define FIN_CRC32C(crc) ((crc) ^= 0xFFFFFFFF) - -extern pg_crc32c pg_comp_crc32c_sse42(pg_crc32c crc, const void *data, size_t len); - -#elif defined(USE_ARMV8_CRC32C) -/* Use ARMv8 CRC Extension instructions. */ - -#define COMP_CRC32C(crc, data, len) \ - ((crc) = pg_comp_crc32c_armv8((crc), (data), (len))) -#define FIN_CRC32C(crc) ((crc) ^= 0xFFFFFFFF) - -extern pg_crc32c pg_comp_crc32c_armv8(pg_crc32c crc, const void *data, size_t len); - -#elif defined(USE_SSE42_CRC32C_WITH_RUNTIME_CHECK) || defined(USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK) - -/* - * Use Intel SSE 4.2 or ARMv8 instructions, but perform a runtime check first - * to check that they are available. - */ -#define COMP_CRC32C(crc, data, len) \ - ((crc) = pg_comp_crc32c((crc), (data), (len))) -#define FIN_CRC32C(crc) ((crc) ^= 0xFFFFFFFF) - -extern pg_crc32c pg_comp_crc32c_sb8(pg_crc32c crc, const void *data, size_t len); -extern pg_crc32c (*pg_comp_crc32c) (pg_crc32c crc, const void *data, size_t len); - -#ifdef USE_SSE42_CRC32C_WITH_RUNTIME_CHECK -extern pg_crc32c pg_comp_crc32c_sse42(pg_crc32c crc, const void *data, size_t len); -#endif -#ifdef USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK -extern pg_crc32c pg_comp_crc32c_armv8(pg_crc32c crc, const void *data, size_t len); -#endif - -#else -/* - * Use slicing-by-8 algorithm. - * - * On big-endian systems, the intermediate value is kept in reverse byte - * order, to avoid byte-swapping during the calculation. FIN_CRC32C reverses - * the bytes to the final order. - */ -#define COMP_CRC32C(crc, data, len) \ - ((crc) = pg_comp_crc32c_sb8((crc), (data), (len))) -#ifdef WORDS_BIGENDIAN -#define FIN_CRC32C(crc) ((crc) = pg_bswap32(crc) ^ 0xFFFFFFFF) -#else -#define FIN_CRC32C(crc) ((crc) ^= 0xFFFFFFFF) -#endif - -extern pg_crc32c pg_comp_crc32c_sb8(pg_crc32c crc, const void *data, size_t len); - -#endif - -#endif /* PG_CRC32C_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/portability/instr_time.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/portability/instr_time.h deleted file mode 100644 index ca09a1608..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/portability/instr_time.h +++ /dev/null @@ -1,256 +0,0 @@ -/*------------------------------------------------------------------------- - * - * instr_time.h - * portable high-precision interval timing - * - * This file provides an abstraction layer to hide portability issues in - * interval timing. On Unix we use clock_gettime() if available, else - * gettimeofday(). On Windows, gettimeofday() gives a low-precision result - * so we must use QueryPerformanceCounter() instead. These macros also give - * some breathing room to use other high-precision-timing APIs. - * - * The basic data type is instr_time, which all callers should treat as an - * opaque typedef. instr_time can store either an absolute time (of - * unspecified reference time) or an interval. The operations provided - * for it are: - * - * INSTR_TIME_IS_ZERO(t) is t equal to zero? - * - * INSTR_TIME_SET_ZERO(t) set t to zero (memset is acceptable too) - * - * INSTR_TIME_SET_CURRENT(t) set t to current time - * - * INSTR_TIME_SET_CURRENT_LAZY(t) set t to current time if t is zero, - * evaluates to whether t changed - * - * INSTR_TIME_ADD(x, y) x += y - * - * INSTR_TIME_SUBTRACT(x, y) x -= y - * - * INSTR_TIME_ACCUM_DIFF(x, y, z) x += (y - z) - * - * INSTR_TIME_GET_DOUBLE(t) convert t to double (in seconds) - * - * INSTR_TIME_GET_MILLISEC(t) convert t to double (in milliseconds) - * - * INSTR_TIME_GET_MICROSEC(t) convert t to uint64 (in microseconds) - * - * Note that INSTR_TIME_SUBTRACT and INSTR_TIME_ACCUM_DIFF convert - * absolute times to intervals. The INSTR_TIME_GET_xxx operations are - * only useful on intervals. - * - * When summing multiple measurements, it's recommended to leave the - * running sum in instr_time form (ie, use INSTR_TIME_ADD or - * INSTR_TIME_ACCUM_DIFF) and convert to a result format only at the end. - * - * Beware of multiple evaluations of the macro arguments. - * - * - * Copyright (c) 2001-2022, PostgreSQL Global Development Group - * - * src/include/portability/instr_time.h - * - *------------------------------------------------------------------------- - */ -#ifndef INSTR_TIME_H -#define INSTR_TIME_H - -#ifndef WIN32 - -#ifdef HAVE_CLOCK_GETTIME - -/* Use clock_gettime() */ - -#include - -/* - * The best clockid to use according to the POSIX spec is CLOCK_MONOTONIC, - * since that will give reliable interval timing even in the face of changes - * to the system clock. However, POSIX doesn't require implementations to - * provide anything except CLOCK_REALTIME, so fall back to that if we don't - * find CLOCK_MONOTONIC. - * - * Also, some implementations have nonstandard clockids with better properties - * than CLOCK_MONOTONIC. In particular, as of macOS 10.12, Apple provides - * CLOCK_MONOTONIC_RAW which is both faster to read and higher resolution than - * their version of CLOCK_MONOTONIC. - */ -#if defined(__darwin__) && defined(CLOCK_MONOTONIC_RAW) -#define PG_INSTR_CLOCK CLOCK_MONOTONIC_RAW -#elif defined(CLOCK_MONOTONIC) -#define PG_INSTR_CLOCK CLOCK_MONOTONIC -#else -#define PG_INSTR_CLOCK CLOCK_REALTIME -#endif - -typedef struct timespec instr_time; - -#define INSTR_TIME_IS_ZERO(t) ((t).tv_nsec == 0 && (t).tv_sec == 0) - -#define INSTR_TIME_SET_ZERO(t) ((t).tv_sec = 0, (t).tv_nsec = 0) - -#define INSTR_TIME_SET_CURRENT(t) ((void) clock_gettime(PG_INSTR_CLOCK, &(t))) - -#define INSTR_TIME_ADD(x,y) \ - do { \ - (x).tv_sec += (y).tv_sec; \ - (x).tv_nsec += (y).tv_nsec; \ - /* Normalize */ \ - while ((x).tv_nsec >= 1000000000) \ - { \ - (x).tv_nsec -= 1000000000; \ - (x).tv_sec++; \ - } \ - } while (0) - -#define INSTR_TIME_SUBTRACT(x,y) \ - do { \ - (x).tv_sec -= (y).tv_sec; \ - (x).tv_nsec -= (y).tv_nsec; \ - /* Normalize */ \ - while ((x).tv_nsec < 0) \ - { \ - (x).tv_nsec += 1000000000; \ - (x).tv_sec--; \ - } \ - } while (0) - -#define INSTR_TIME_ACCUM_DIFF(x,y,z) \ - do { \ - (x).tv_sec += (y).tv_sec - (z).tv_sec; \ - (x).tv_nsec += (y).tv_nsec - (z).tv_nsec; \ - /* Normalize after each add to avoid overflow/underflow of tv_nsec */ \ - while ((x).tv_nsec < 0) \ - { \ - (x).tv_nsec += 1000000000; \ - (x).tv_sec--; \ - } \ - while ((x).tv_nsec >= 1000000000) \ - { \ - (x).tv_nsec -= 1000000000; \ - (x).tv_sec++; \ - } \ - } while (0) - -#define INSTR_TIME_GET_DOUBLE(t) \ - (((double) (t).tv_sec) + ((double) (t).tv_nsec) / 1000000000.0) - -#define INSTR_TIME_GET_MILLISEC(t) \ - (((double) (t).tv_sec * 1000.0) + ((double) (t).tv_nsec) / 1000000.0) - -#define INSTR_TIME_GET_MICROSEC(t) \ - (((uint64) (t).tv_sec * (uint64) 1000000) + (uint64) ((t).tv_nsec / 1000)) - -#else /* !HAVE_CLOCK_GETTIME */ - -/* Use gettimeofday() */ - -#include - -typedef struct timeval instr_time; - -#define INSTR_TIME_IS_ZERO(t) ((t).tv_usec == 0 && (t).tv_sec == 0) - -#define INSTR_TIME_SET_ZERO(t) ((t).tv_sec = 0, (t).tv_usec = 0) - -#define INSTR_TIME_SET_CURRENT(t) gettimeofday(&(t), NULL) - -#define INSTR_TIME_ADD(x,y) \ - do { \ - (x).tv_sec += (y).tv_sec; \ - (x).tv_usec += (y).tv_usec; \ - /* Normalize */ \ - while ((x).tv_usec >= 1000000) \ - { \ - (x).tv_usec -= 1000000; \ - (x).tv_sec++; \ - } \ - } while (0) - -#define INSTR_TIME_SUBTRACT(x,y) \ - do { \ - (x).tv_sec -= (y).tv_sec; \ - (x).tv_usec -= (y).tv_usec; \ - /* Normalize */ \ - while ((x).tv_usec < 0) \ - { \ - (x).tv_usec += 1000000; \ - (x).tv_sec--; \ - } \ - } while (0) - -#define INSTR_TIME_ACCUM_DIFF(x,y,z) \ - do { \ - (x).tv_sec += (y).tv_sec - (z).tv_sec; \ - (x).tv_usec += (y).tv_usec - (z).tv_usec; \ - /* Normalize after each add to avoid overflow/underflow of tv_usec */ \ - while ((x).tv_usec < 0) \ - { \ - (x).tv_usec += 1000000; \ - (x).tv_sec--; \ - } \ - while ((x).tv_usec >= 1000000) \ - { \ - (x).tv_usec -= 1000000; \ - (x).tv_sec++; \ - } \ - } while (0) - -#define INSTR_TIME_GET_DOUBLE(t) \ - (((double) (t).tv_sec) + ((double) (t).tv_usec) / 1000000.0) - -#define INSTR_TIME_GET_MILLISEC(t) \ - (((double) (t).tv_sec * 1000.0) + ((double) (t).tv_usec) / 1000.0) - -#define INSTR_TIME_GET_MICROSEC(t) \ - (((uint64) (t).tv_sec * (uint64) 1000000) + (uint64) (t).tv_usec) - -#endif /* HAVE_CLOCK_GETTIME */ - -#else /* WIN32 */ - -/* Use QueryPerformanceCounter() */ - -typedef LARGE_INTEGER instr_time; - -#define INSTR_TIME_IS_ZERO(t) ((t).QuadPart == 0) - -#define INSTR_TIME_SET_ZERO(t) ((t).QuadPart = 0) - -#define INSTR_TIME_SET_CURRENT(t) QueryPerformanceCounter(&(t)) - -#define INSTR_TIME_ADD(x,y) \ - ((x).QuadPart += (y).QuadPart) - -#define INSTR_TIME_SUBTRACT(x,y) \ - ((x).QuadPart -= (y).QuadPart) - -#define INSTR_TIME_ACCUM_DIFF(x,y,z) \ - ((x).QuadPart += (y).QuadPart - (z).QuadPart) - -#define INSTR_TIME_GET_DOUBLE(t) \ - (((double) (t).QuadPart) / GetTimerFrequency()) - -#define INSTR_TIME_GET_MILLISEC(t) \ - (((double) (t).QuadPart * 1000.0) / GetTimerFrequency()) - -#define INSTR_TIME_GET_MICROSEC(t) \ - ((uint64) (((double) (t).QuadPart * 1000000.0) / GetTimerFrequency())) - -static inline double -GetTimerFrequency(void) -{ - LARGE_INTEGER f; - - QueryPerformanceFrequency(&f); - return (double) f.QuadPart; -} - -#endif /* WIN32 */ - -/* same macro on all platforms */ - -#define INSTR_TIME_SET_CURRENT_LAZY(t) \ - (INSTR_TIME_IS_ZERO(t) ? INSTR_TIME_SET_CURRENT(t), true : false) - -#endif /* INSTR_TIME_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postgres.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postgres.h deleted file mode 100644 index 31358110d..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postgres.h +++ /dev/null @@ -1,808 +0,0 @@ -/*------------------------------------------------------------------------- - * - * postgres.h - * Primary include file for PostgreSQL server .c files - * - * This should be the first file included by PostgreSQL backend modules. - * Client-side code should include postgres_fe.h instead. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1995, Regents of the University of California - * - * src/include/postgres.h - * - *------------------------------------------------------------------------- - */ -/* - *---------------------------------------------------------------- - * TABLE OF CONTENTS - * - * When adding stuff to this file, please try to put stuff - * into the relevant section, or add new sections as appropriate. - * - * section description - * ------- ------------------------------------------------ - * 1) variable-length datatypes (TOAST support) - * 2) Datum type + support macros - * - * NOTES - * - * In general, this file should contain declarations that are widely needed - * in the backend environment, but are of no interest outside the backend. - * - * Simple type definitions live in c.h, where they are shared with - * postgres_fe.h. We do that since those type definitions are needed by - * frontend modules that want to deal with binary data transmission to or - * from the backend. Type definitions in this file should be for - * representations that never escape the backend, such as Datum or - * TOASTed varlena objects. - * - *---------------------------------------------------------------- - */ -#ifndef POSTGRES_H -#define POSTGRES_H - -#include "c.h" -#include "utils/elog.h" -#include "utils/palloc.h" - -/* ---------------------------------------------------------------- - * Section 1: variable-length datatypes (TOAST support) - * ---------------------------------------------------------------- - */ - -/* - * struct varatt_external is a traditional "TOAST pointer", that is, the - * information needed to fetch a Datum stored out-of-line in a TOAST table. - * The data is compressed if and only if the external size stored in - * va_extinfo is less than va_rawsize - VARHDRSZ. - * - * This struct must not contain any padding, because we sometimes compare - * these pointers using memcmp. - * - * Note that this information is stored unaligned within actual tuples, so - * you need to memcpy from the tuple into a local struct variable before - * you can look at these fields! (The reason we use memcmp is to avoid - * having to do that just to detect equality of two TOAST pointers...) - */ -typedef struct varatt_external -{ - int32 va_rawsize; /* Original data size (includes header) */ - uint32 va_extinfo; /* External saved size (without header) and - * compression method */ - Oid va_valueid; /* Unique ID of value within TOAST table */ - Oid va_toastrelid; /* RelID of TOAST table containing it */ -} varatt_external; - -/* - * These macros define the "saved size" portion of va_extinfo. Its remaining - * two high-order bits identify the compression method. - */ -#define VARLENA_EXTSIZE_BITS 30 -#define VARLENA_EXTSIZE_MASK ((1U << VARLENA_EXTSIZE_BITS) - 1) - -/* - * struct varatt_indirect is a "TOAST pointer" representing an out-of-line - * Datum that's stored in memory, not in an external toast relation. - * The creator of such a Datum is entirely responsible that the referenced - * storage survives for as long as referencing pointer Datums can exist. - * - * Note that just as for struct varatt_external, this struct is stored - * unaligned within any containing tuple. - */ -typedef struct varatt_indirect -{ - struct varlena *pointer; /* Pointer to in-memory varlena */ -} varatt_indirect; - -/* - * struct varatt_expanded is a "TOAST pointer" representing an out-of-line - * Datum that is stored in memory, in some type-specific, not necessarily - * physically contiguous format that is convenient for computation not - * storage. APIs for this, in particular the definition of struct - * ExpandedObjectHeader, are in src/include/utils/expandeddatum.h. - * - * Note that just as for struct varatt_external, this struct is stored - * unaligned within any containing tuple. - */ -typedef struct ExpandedObjectHeader ExpandedObjectHeader; - -typedef struct varatt_expanded -{ - ExpandedObjectHeader *eohptr; -} varatt_expanded; - -/* - * Type tag for the various sorts of "TOAST pointer" datums. The peculiar - * value for VARTAG_ONDISK comes from a requirement for on-disk compatibility - * with a previous notion that the tag field was the pointer datum's length. - */ -typedef enum vartag_external -{ - VARTAG_INDIRECT = 1, - VARTAG_EXPANDED_RO = 2, - VARTAG_EXPANDED_RW = 3, - VARTAG_ONDISK = 18 -} vartag_external; - -/* this test relies on the specific tag values above */ -#define VARTAG_IS_EXPANDED(tag) \ - (((tag) & ~1) == VARTAG_EXPANDED_RO) - -#define VARTAG_SIZE(tag) \ - ((tag) == VARTAG_INDIRECT ? sizeof(varatt_indirect) : \ - VARTAG_IS_EXPANDED(tag) ? sizeof(varatt_expanded) : \ - (tag) == VARTAG_ONDISK ? sizeof(varatt_external) : \ - TrapMacro(true, "unrecognized TOAST vartag")) - -/* - * These structs describe the header of a varlena object that may have been - * TOASTed. Generally, don't reference these structs directly, but use the - * macros below. - * - * We use separate structs for the aligned and unaligned cases because the - * compiler might otherwise think it could generate code that assumes - * alignment while touching fields of a 1-byte-header varlena. - */ -typedef union -{ - struct /* Normal varlena (4-byte length) */ - { - uint32 va_header; - char va_data[FLEXIBLE_ARRAY_MEMBER]; - } va_4byte; - struct /* Compressed-in-line format */ - { - uint32 va_header; - uint32 va_tcinfo; /* Original data size (excludes header) and - * compression method; see va_extinfo */ - char va_data[FLEXIBLE_ARRAY_MEMBER]; /* Compressed data */ - } va_compressed; -} varattrib_4b; - -typedef struct -{ - uint8 va_header; - char va_data[FLEXIBLE_ARRAY_MEMBER]; /* Data begins here */ -} varattrib_1b; - -/* TOAST pointers are a subset of varattrib_1b with an identifying tag byte */ -typedef struct -{ - uint8 va_header; /* Always 0x80 or 0x01 */ - uint8 va_tag; /* Type of datum */ - char va_data[FLEXIBLE_ARRAY_MEMBER]; /* Type-specific data */ -} varattrib_1b_e; - -/* - * Bit layouts for varlena headers on big-endian machines: - * - * 00xxxxxx 4-byte length word, aligned, uncompressed data (up to 1G) - * 01xxxxxx 4-byte length word, aligned, *compressed* data (up to 1G) - * 10000000 1-byte length word, unaligned, TOAST pointer - * 1xxxxxxx 1-byte length word, unaligned, uncompressed data (up to 126b) - * - * Bit layouts for varlena headers on little-endian machines: - * - * xxxxxx00 4-byte length word, aligned, uncompressed data (up to 1G) - * xxxxxx10 4-byte length word, aligned, *compressed* data (up to 1G) - * 00000001 1-byte length word, unaligned, TOAST pointer - * xxxxxxx1 1-byte length word, unaligned, uncompressed data (up to 126b) - * - * The "xxx" bits are the length field (which includes itself in all cases). - * In the big-endian case we mask to extract the length, in the little-endian - * case we shift. Note that in both cases the flag bits are in the physically - * first byte. Also, it is not possible for a 1-byte length word to be zero; - * this lets us disambiguate alignment padding bytes from the start of an - * unaligned datum. (We now *require* pad bytes to be filled with zero!) - * - * In TOAST pointers the va_tag field (see varattrib_1b_e) is used to discern - * the specific type and length of the pointer datum. - */ - -/* - * Endian-dependent macros. These are considered internal --- use the - * external macros below instead of using these directly. - * - * Note: IS_1B is true for external toast records but VARSIZE_1B will return 0 - * for such records. Hence you should usually check for IS_EXTERNAL before - * checking for IS_1B. - */ - -#ifdef WORDS_BIGENDIAN - -#define VARATT_IS_4B(PTR) \ - ((((varattrib_1b *) (PTR))->va_header & 0x80) == 0x00) -#define VARATT_IS_4B_U(PTR) \ - ((((varattrib_1b *) (PTR))->va_header & 0xC0) == 0x00) -#define VARATT_IS_4B_C(PTR) \ - ((((varattrib_1b *) (PTR))->va_header & 0xC0) == 0x40) -#define VARATT_IS_1B(PTR) \ - ((((varattrib_1b *) (PTR))->va_header & 0x80) == 0x80) -#define VARATT_IS_1B_E(PTR) \ - ((((varattrib_1b *) (PTR))->va_header) == 0x80) -#define VARATT_NOT_PAD_BYTE(PTR) \ - (*((uint8 *) (PTR)) != 0) - -/* VARSIZE_4B() should only be used on known-aligned data */ -#define VARSIZE_4B(PTR) \ - (((varattrib_4b *) (PTR))->va_4byte.va_header & 0x3FFFFFFF) -#define VARSIZE_1B(PTR) \ - (((varattrib_1b *) (PTR))->va_header & 0x7F) -#define VARTAG_1B_E(PTR) \ - (((varattrib_1b_e *) (PTR))->va_tag) - -#define SET_VARSIZE_4B(PTR,len) \ - (((varattrib_4b *) (PTR))->va_4byte.va_header = (len) & 0x3FFFFFFF) -#define SET_VARSIZE_4B_C(PTR,len) \ - (((varattrib_4b *) (PTR))->va_4byte.va_header = ((len) & 0x3FFFFFFF) | 0x40000000) -#define SET_VARSIZE_1B(PTR,len) \ - (((varattrib_1b *) (PTR))->va_header = (len) | 0x80) -#define SET_VARTAG_1B_E(PTR,tag) \ - (((varattrib_1b_e *) (PTR))->va_header = 0x80, \ - ((varattrib_1b_e *) (PTR))->va_tag = (tag)) - -#else /* !WORDS_BIGENDIAN */ - -#define VARATT_IS_4B(PTR) \ - ((((varattrib_1b *) (PTR))->va_header & 0x01) == 0x00) -#define VARATT_IS_4B_U(PTR) \ - ((((varattrib_1b *) (PTR))->va_header & 0x03) == 0x00) -#define VARATT_IS_4B_C(PTR) \ - ((((varattrib_1b *) (PTR))->va_header & 0x03) == 0x02) -#define VARATT_IS_1B(PTR) \ - ((((varattrib_1b *) (PTR))->va_header & 0x01) == 0x01) -#define VARATT_IS_1B_E(PTR) \ - ((((varattrib_1b *) (PTR))->va_header) == 0x01) -#define VARATT_NOT_PAD_BYTE(PTR) \ - (*((uint8 *) (PTR)) != 0) - -/* VARSIZE_4B() should only be used on known-aligned data */ -#define VARSIZE_4B(PTR) \ - ((((varattrib_4b *) (PTR))->va_4byte.va_header >> 2) & 0x3FFFFFFF) -#define VARSIZE_1B(PTR) \ - ((((varattrib_1b *) (PTR))->va_header >> 1) & 0x7F) -#define VARTAG_1B_E(PTR) \ - (((varattrib_1b_e *) (PTR))->va_tag) - -#define SET_VARSIZE_4B(PTR,len) \ - (((varattrib_4b *) (PTR))->va_4byte.va_header = (((uint32) (len)) << 2)) -#define SET_VARSIZE_4B_C(PTR,len) \ - (((varattrib_4b *) (PTR))->va_4byte.va_header = (((uint32) (len)) << 2) | 0x02) -#define SET_VARSIZE_1B(PTR,len) \ - (((varattrib_1b *) (PTR))->va_header = (((uint8) (len)) << 1) | 0x01) -#define SET_VARTAG_1B_E(PTR,tag) \ - (((varattrib_1b_e *) (PTR))->va_header = 0x01, \ - ((varattrib_1b_e *) (PTR))->va_tag = (tag)) - -#endif /* WORDS_BIGENDIAN */ - -#define VARDATA_4B(PTR) (((varattrib_4b *) (PTR))->va_4byte.va_data) -#define VARDATA_4B_C(PTR) (((varattrib_4b *) (PTR))->va_compressed.va_data) -#define VARDATA_1B(PTR) (((varattrib_1b *) (PTR))->va_data) -#define VARDATA_1B_E(PTR) (((varattrib_1b_e *) (PTR))->va_data) - -/* - * Externally visible TOAST macros begin here. - */ - -#define VARHDRSZ_EXTERNAL offsetof(varattrib_1b_e, va_data) -#define VARHDRSZ_COMPRESSED offsetof(varattrib_4b, va_compressed.va_data) -#define VARHDRSZ_SHORT offsetof(varattrib_1b, va_data) - -#define VARATT_SHORT_MAX 0x7F -#define VARATT_CAN_MAKE_SHORT(PTR) \ - (VARATT_IS_4B_U(PTR) && \ - (VARSIZE(PTR) - VARHDRSZ + VARHDRSZ_SHORT) <= VARATT_SHORT_MAX) -#define VARATT_CONVERTED_SHORT_SIZE(PTR) \ - (VARSIZE(PTR) - VARHDRSZ + VARHDRSZ_SHORT) - -/* - * In consumers oblivious to data alignment, call PG_DETOAST_DATUM_PACKED(), - * VARDATA_ANY(), VARSIZE_ANY() and VARSIZE_ANY_EXHDR(). Elsewhere, call - * PG_DETOAST_DATUM(), VARDATA() and VARSIZE(). Directly fetching an int16, - * int32 or wider field in the struct representing the datum layout requires - * aligned data. memcpy() is alignment-oblivious, as are most operations on - * datatypes, such as text, whose layout struct contains only char fields. - * - * Code assembling a new datum should call VARDATA() and SET_VARSIZE(). - * (Datums begin life untoasted.) - * - * Other macros here should usually be used only by tuple assembly/disassembly - * code and code that specifically wants to work with still-toasted Datums. - */ -#define VARDATA(PTR) VARDATA_4B(PTR) -#define VARSIZE(PTR) VARSIZE_4B(PTR) - -#define VARSIZE_SHORT(PTR) VARSIZE_1B(PTR) -#define VARDATA_SHORT(PTR) VARDATA_1B(PTR) - -#define VARTAG_EXTERNAL(PTR) VARTAG_1B_E(PTR) -#define VARSIZE_EXTERNAL(PTR) (VARHDRSZ_EXTERNAL + VARTAG_SIZE(VARTAG_EXTERNAL(PTR))) -#define VARDATA_EXTERNAL(PTR) VARDATA_1B_E(PTR) - -#define VARATT_IS_COMPRESSED(PTR) VARATT_IS_4B_C(PTR) -#define VARATT_IS_EXTERNAL(PTR) VARATT_IS_1B_E(PTR) -#define VARATT_IS_EXTERNAL_ONDISK(PTR) \ - (VARATT_IS_EXTERNAL(PTR) && VARTAG_EXTERNAL(PTR) == VARTAG_ONDISK) -#define VARATT_IS_EXTERNAL_INDIRECT(PTR) \ - (VARATT_IS_EXTERNAL(PTR) && VARTAG_EXTERNAL(PTR) == VARTAG_INDIRECT) -#define VARATT_IS_EXTERNAL_EXPANDED_RO(PTR) \ - (VARATT_IS_EXTERNAL(PTR) && VARTAG_EXTERNAL(PTR) == VARTAG_EXPANDED_RO) -#define VARATT_IS_EXTERNAL_EXPANDED_RW(PTR) \ - (VARATT_IS_EXTERNAL(PTR) && VARTAG_EXTERNAL(PTR) == VARTAG_EXPANDED_RW) -#define VARATT_IS_EXTERNAL_EXPANDED(PTR) \ - (VARATT_IS_EXTERNAL(PTR) && VARTAG_IS_EXPANDED(VARTAG_EXTERNAL(PTR))) -#define VARATT_IS_EXTERNAL_NON_EXPANDED(PTR) \ - (VARATT_IS_EXTERNAL(PTR) && !VARTAG_IS_EXPANDED(VARTAG_EXTERNAL(PTR))) -#define VARATT_IS_SHORT(PTR) VARATT_IS_1B(PTR) -#define VARATT_IS_EXTENDED(PTR) (!VARATT_IS_4B_U(PTR)) - -#define SET_VARSIZE(PTR, len) SET_VARSIZE_4B(PTR, len) -#define SET_VARSIZE_SHORT(PTR, len) SET_VARSIZE_1B(PTR, len) -#define SET_VARSIZE_COMPRESSED(PTR, len) SET_VARSIZE_4B_C(PTR, len) - -#define SET_VARTAG_EXTERNAL(PTR, tag) SET_VARTAG_1B_E(PTR, tag) - -#define VARSIZE_ANY(PTR) \ - (VARATT_IS_1B_E(PTR) ? VARSIZE_EXTERNAL(PTR) : \ - (VARATT_IS_1B(PTR) ? VARSIZE_1B(PTR) : \ - VARSIZE_4B(PTR))) - -/* Size of a varlena data, excluding header */ -#define VARSIZE_ANY_EXHDR(PTR) \ - (VARATT_IS_1B_E(PTR) ? VARSIZE_EXTERNAL(PTR)-VARHDRSZ_EXTERNAL : \ - (VARATT_IS_1B(PTR) ? VARSIZE_1B(PTR)-VARHDRSZ_SHORT : \ - VARSIZE_4B(PTR)-VARHDRSZ)) - -/* caution: this will not work on an external or compressed-in-line Datum */ -/* caution: this will return a possibly unaligned pointer */ -#define VARDATA_ANY(PTR) \ - (VARATT_IS_1B(PTR) ? VARDATA_1B(PTR) : VARDATA_4B(PTR)) - -/* Decompressed size and compression method of a compressed-in-line Datum */ -#define VARDATA_COMPRESSED_GET_EXTSIZE(PTR) \ - (((varattrib_4b *) (PTR))->va_compressed.va_tcinfo & VARLENA_EXTSIZE_MASK) -#define VARDATA_COMPRESSED_GET_COMPRESS_METHOD(PTR) \ - (((varattrib_4b *) (PTR))->va_compressed.va_tcinfo >> VARLENA_EXTSIZE_BITS) - -/* Same for external Datums; but note argument is a struct varatt_external */ -#define VARATT_EXTERNAL_GET_EXTSIZE(toast_pointer) \ - ((toast_pointer).va_extinfo & VARLENA_EXTSIZE_MASK) -#define VARATT_EXTERNAL_GET_COMPRESS_METHOD(toast_pointer) \ - ((toast_pointer).va_extinfo >> VARLENA_EXTSIZE_BITS) - -#define VARATT_EXTERNAL_SET_SIZE_AND_COMPRESS_METHOD(toast_pointer, len, cm) \ - do { \ - Assert((cm) == TOAST_PGLZ_COMPRESSION_ID || \ - (cm) == TOAST_LZ4_COMPRESSION_ID); \ - ((toast_pointer).va_extinfo = \ - (len) | ((uint32) (cm) << VARLENA_EXTSIZE_BITS)); \ - } while (0) - -/* - * Testing whether an externally-stored value is compressed now requires - * comparing size stored in va_extinfo (the actual length of the external data) - * to rawsize (the original uncompressed datum's size). The latter includes - * VARHDRSZ overhead, the former doesn't. We never use compression unless it - * actually saves space, so we expect either equality or less-than. - */ -#define VARATT_EXTERNAL_IS_COMPRESSED(toast_pointer) \ - (VARATT_EXTERNAL_GET_EXTSIZE(toast_pointer) < \ - (toast_pointer).va_rawsize - VARHDRSZ) - - -/* ---------------------------------------------------------------- - * Section 2: Datum type + support macros - * ---------------------------------------------------------------- - */ - -/* - * A Datum contains either a value of a pass-by-value type or a pointer to a - * value of a pass-by-reference type. Therefore, we require: - * - * sizeof(Datum) == sizeof(void *) == 4 or 8 - * - * The macros below and the analogous macros for other types should be used to - * convert between a Datum and the appropriate C type. - */ - -typedef uintptr_t Datum; - -/* - * A NullableDatum is used in places where both a Datum and its nullness needs - * to be stored. This can be more efficient than storing datums and nullness - * in separate arrays, due to better spatial locality, even if more space may - * be wasted due to padding. - */ -typedef struct NullableDatum -{ -#define FIELDNO_NULLABLE_DATUM_DATUM 0 - Datum value; -#define FIELDNO_NULLABLE_DATUM_ISNULL 1 - bool isnull; - /* due to alignment padding this could be used for flags for free */ -} NullableDatum; - -#define SIZEOF_DATUM SIZEOF_VOID_P - -/* - * DatumGetBool - * Returns boolean value of a datum. - * - * Note: any nonzero value will be considered true. - */ - -#define DatumGetBool(X) ((bool) ((X) != 0)) - -/* - * BoolGetDatum - * Returns datum representation for a boolean. - * - * Note: any nonzero value will be considered true. - */ - -#define BoolGetDatum(X) ((Datum) ((X) ? 1 : 0)) - -/* - * DatumGetChar - * Returns character value of a datum. - */ - -#define DatumGetChar(X) ((char) (X)) - -/* - * CharGetDatum - * Returns datum representation for a character. - */ - -#define CharGetDatum(X) ((Datum) (X)) - -/* - * Int8GetDatum - * Returns datum representation for an 8-bit integer. - */ - -#define Int8GetDatum(X) ((Datum) (X)) - -/* - * DatumGetUInt8 - * Returns 8-bit unsigned integer value of a datum. - */ - -#define DatumGetUInt8(X) ((uint8) (X)) - -/* - * UInt8GetDatum - * Returns datum representation for an 8-bit unsigned integer. - */ - -#define UInt8GetDatum(X) ((Datum) (X)) - -/* - * DatumGetInt16 - * Returns 16-bit integer value of a datum. - */ - -#define DatumGetInt16(X) ((int16) (X)) - -/* - * Int16GetDatum - * Returns datum representation for a 16-bit integer. - */ - -#define Int16GetDatum(X) ((Datum) (X)) - -/* - * DatumGetUInt16 - * Returns 16-bit unsigned integer value of a datum. - */ - -#define DatumGetUInt16(X) ((uint16) (X)) - -/* - * UInt16GetDatum - * Returns datum representation for a 16-bit unsigned integer. - */ - -#define UInt16GetDatum(X) ((Datum) (X)) - -/* - * DatumGetInt32 - * Returns 32-bit integer value of a datum. - */ - -#define DatumGetInt32(X) ((int32) (X)) - -/* - * Int32GetDatum - * Returns datum representation for a 32-bit integer. - */ - -#define Int32GetDatum(X) ((Datum) (X)) - -/* - * DatumGetUInt32 - * Returns 32-bit unsigned integer value of a datum. - */ - -#define DatumGetUInt32(X) ((uint32) (X)) - -/* - * UInt32GetDatum - * Returns datum representation for a 32-bit unsigned integer. - */ - -#define UInt32GetDatum(X) ((Datum) (X)) - -/* - * DatumGetObjectId - * Returns object identifier value of a datum. - */ - -#define DatumGetObjectId(X) ((Oid) (X)) - -/* - * ObjectIdGetDatum - * Returns datum representation for an object identifier. - */ - -#define ObjectIdGetDatum(X) ((Datum) (X)) - -/* - * DatumGetTransactionId - * Returns transaction identifier value of a datum. - */ - -#define DatumGetTransactionId(X) ((TransactionId) (X)) - -/* - * TransactionIdGetDatum - * Returns datum representation for a transaction identifier. - */ - -#define TransactionIdGetDatum(X) ((Datum) (X)) - -/* - * MultiXactIdGetDatum - * Returns datum representation for a multixact identifier. - */ - -#define MultiXactIdGetDatum(X) ((Datum) (X)) - -/* - * DatumGetCommandId - * Returns command identifier value of a datum. - */ - -#define DatumGetCommandId(X) ((CommandId) (X)) - -/* - * CommandIdGetDatum - * Returns datum representation for a command identifier. - */ - -#define CommandIdGetDatum(X) ((Datum) (X)) - -/* - * DatumGetPointer - * Returns pointer value of a datum. - */ - -#define DatumGetPointer(X) ((Pointer) (X)) - -/* - * PointerGetDatum - * Returns datum representation for a pointer. - */ - -#define PointerGetDatum(X) ((Datum) (X)) - -/* - * DatumGetCString - * Returns C string (null-terminated string) value of a datum. - * - * Note: C string is not a full-fledged Postgres type at present, - * but type input functions use this conversion for their inputs. - */ - -#define DatumGetCString(X) ((char *) DatumGetPointer(X)) - -/* - * CStringGetDatum - * Returns datum representation for a C string (null-terminated string). - * - * Note: C string is not a full-fledged Postgres type at present, - * but type output functions use this conversion for their outputs. - * Note: CString is pass-by-reference; caller must ensure the pointed-to - * value has adequate lifetime. - */ - -#define CStringGetDatum(X) PointerGetDatum(X) - -/* - * DatumGetName - * Returns name value of a datum. - */ - -#define DatumGetName(X) ((Name) DatumGetPointer(X)) - -/* - * NameGetDatum - * Returns datum representation for a name. - * - * Note: Name is pass-by-reference; caller must ensure the pointed-to - * value has adequate lifetime. - */ - -#define NameGetDatum(X) CStringGetDatum(NameStr(*(X))) - -/* - * DatumGetInt64 - * Returns 64-bit integer value of a datum. - * - * Note: this macro hides whether int64 is pass by value or by reference. - */ - -#ifdef USE_FLOAT8_BYVAL -#define DatumGetInt64(X) ((int64) (X)) -#else -#define DatumGetInt64(X) (* ((int64 *) DatumGetPointer(X))) -#endif - -/* - * Int64GetDatum - * Returns datum representation for a 64-bit integer. - * - * Note: if int64 is pass by reference, this function returns a reference - * to palloc'd space. - */ - -#ifdef USE_FLOAT8_BYVAL -#define Int64GetDatum(X) ((Datum) (X)) -#else -extern Datum Int64GetDatum(int64 X); -#endif - -/* - * DatumGetUInt64 - * Returns 64-bit unsigned integer value of a datum. - * - * Note: this macro hides whether int64 is pass by value or by reference. - */ - -#ifdef USE_FLOAT8_BYVAL -#define DatumGetUInt64(X) ((uint64) (X)) -#else -#define DatumGetUInt64(X) (* ((uint64 *) DatumGetPointer(X))) -#endif - -/* - * UInt64GetDatum - * Returns datum representation for a 64-bit unsigned integer. - * - * Note: if int64 is pass by reference, this function returns a reference - * to palloc'd space. - */ - -#ifdef USE_FLOAT8_BYVAL -#define UInt64GetDatum(X) ((Datum) (X)) -#else -#define UInt64GetDatum(X) Int64GetDatum((int64) (X)) -#endif - -/* - * Float <-> Datum conversions - * - * These have to be implemented as inline functions rather than macros, when - * passing by value, because many machines pass int and float function - * parameters/results differently; so we need to play weird games with unions. - */ - -/* - * DatumGetFloat4 - * Returns 4-byte floating point value of a datum. - */ -static inline float4 -DatumGetFloat4(Datum X) -{ - union - { - int32 value; - float4 retval; - } myunion; - - myunion.value = DatumGetInt32(X); - return myunion.retval; -} - -/* - * Float4GetDatum - * Returns datum representation for a 4-byte floating point number. - */ -static inline Datum -Float4GetDatum(float4 X) -{ - union - { - float4 value; - int32 retval; - } myunion; - - myunion.value = X; - return Int32GetDatum(myunion.retval); -} - -/* - * DatumGetFloat8 - * Returns 8-byte floating point value of a datum. - * - * Note: this macro hides whether float8 is pass by value or by reference. - */ - -#ifdef USE_FLOAT8_BYVAL -static inline float8 -DatumGetFloat8(Datum X) -{ - union - { - int64 value; - float8 retval; - } myunion; - - myunion.value = DatumGetInt64(X); - return myunion.retval; -} -#else -#define DatumGetFloat8(X) (* ((float8 *) DatumGetPointer(X))) -#endif - -/* - * Float8GetDatum - * Returns datum representation for an 8-byte floating point number. - * - * Note: if float8 is pass by reference, this function returns a reference - * to palloc'd space. - */ - -#ifdef USE_FLOAT8_BYVAL -static inline Datum -Float8GetDatum(float8 X) -{ - union - { - float8 value; - int64 retval; - } myunion; - - myunion.value = X; - return Int64GetDatum(myunion.retval); -} -#else -extern Datum Float8GetDatum(float8 X); -#endif - - -/* - * Int64GetDatumFast - * Float8GetDatumFast - * - * These macros are intended to allow writing code that does not depend on - * whether int64 and float8 are pass-by-reference types, while not - * sacrificing performance when they are. The argument must be a variable - * that will exist and have the same value for as long as the Datum is needed. - * In the pass-by-ref case, the address of the variable is taken to use as - * the Datum. In the pass-by-val case, these will be the same as the non-Fast - * macros. - */ - -#ifdef USE_FLOAT8_BYVAL -#define Int64GetDatumFast(X) Int64GetDatum(X) -#define Float8GetDatumFast(X) Float8GetDatum(X) -#else -#define Int64GetDatumFast(X) PointerGetDatum(&(X)) -#define Float8GetDatumFast(X) PointerGetDatum(&(X)) -#endif - -#endif /* POSTGRES_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postgres_ext.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postgres_ext.h deleted file mode 100644 index fdb61b7cf..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postgres_ext.h +++ /dev/null @@ -1,74 +0,0 @@ -/*------------------------------------------------------------------------- - * - * postgres_ext.h - * - * This file contains declarations of things that are visible everywhere - * in PostgreSQL *and* are visible to clients of frontend interface libraries. - * For example, the Oid type is part of the API of libpq and other libraries. - * - * Declarations which are specific to a particular interface should - * go in the header file for that interface (such as libpq-fe.h). This - * file is only for fundamental Postgres declarations. - * - * User-written C functions don't count as "external to Postgres." - * Those function much as local modifications to the backend itself, and - * use header files that are otherwise internal to Postgres to interface - * with the backend. - * - * src/include/postgres_ext.h - * - *------------------------------------------------------------------------- - */ - -#ifndef POSTGRES_EXT_H -#define POSTGRES_EXT_H - -#include "pg_config_ext.h" - -/* - * Object ID is a fundamental type in Postgres. - */ -typedef unsigned int Oid; - -#ifdef __cplusplus -#define InvalidOid (Oid(0)) -#else -#define InvalidOid ((Oid) 0) -#endif - -#define OID_MAX UINT_MAX -/* you will need to include to use the above #define */ - -#define atooid(x) ((Oid) strtoul((x), NULL, 10)) -/* the above needs */ - - -/* Define a signed 64-bit integer type for use in client API declarations. */ -typedef PG_INT64_TYPE pg_int64; - - -/* - * Identifiers of error message fields. Kept here to keep common - * between frontend and backend, and also to export them to libpq - * applications. - */ -#define PG_DIAG_SEVERITY 'S' -#define PG_DIAG_SEVERITY_NONLOCALIZED 'V' -#define PG_DIAG_SQLSTATE 'C' -#define PG_DIAG_MESSAGE_PRIMARY 'M' -#define PG_DIAG_MESSAGE_DETAIL 'D' -#define PG_DIAG_MESSAGE_HINT 'H' -#define PG_DIAG_STATEMENT_POSITION 'P' -#define PG_DIAG_INTERNAL_POSITION 'p' -#define PG_DIAG_INTERNAL_QUERY 'q' -#define PG_DIAG_CONTEXT 'W' -#define PG_DIAG_SCHEMA_NAME 's' -#define PG_DIAG_TABLE_NAME 't' -#define PG_DIAG_COLUMN_NAME 'c' -#define PG_DIAG_DATATYPE_NAME 'd' -#define PG_DIAG_CONSTRAINT_NAME 'n' -#define PG_DIAG_SOURCE_FILE 'F' -#define PG_DIAG_SOURCE_LINE 'L' -#define PG_DIAG_SOURCE_FUNCTION 'R' - -#endif /* POSTGRES_EXT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/autovacuum.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/autovacuum.h deleted file mode 100644 index 9d40fd6d5..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/autovacuum.h +++ /dev/null @@ -1,83 +0,0 @@ -/*------------------------------------------------------------------------- - * - * autovacuum.h - * header file for integrated autovacuum daemon - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/postmaster/autovacuum.h - * - *------------------------------------------------------------------------- - */ -#ifndef AUTOVACUUM_H -#define AUTOVACUUM_H - -#include "storage/block.h" - -/* - * Other processes can request specific work from autovacuum, identified by - * AutoVacuumWorkItem elements. - */ -typedef enum -{ - AVW_BRINSummarizeRange -} AutoVacuumWorkItemType; - - -/* GUC variables */ -extern PGDLLIMPORT bool autovacuum_start_daemon; -extern PGDLLIMPORT int autovacuum_max_workers; -extern PGDLLIMPORT int autovacuum_work_mem; -extern PGDLLIMPORT int autovacuum_naptime; -extern PGDLLIMPORT int autovacuum_vac_thresh; -extern PGDLLIMPORT double autovacuum_vac_scale; -extern PGDLLIMPORT int autovacuum_vac_ins_thresh; -extern PGDLLIMPORT double autovacuum_vac_ins_scale; -extern PGDLLIMPORT int autovacuum_anl_thresh; -extern PGDLLIMPORT double autovacuum_anl_scale; -extern PGDLLIMPORT int autovacuum_freeze_max_age; -extern PGDLLIMPORT int autovacuum_multixact_freeze_max_age; -extern PGDLLIMPORT double autovacuum_vac_cost_delay; -extern PGDLLIMPORT int autovacuum_vac_cost_limit; - -/* autovacuum launcher PID, only valid when worker is shutting down */ -extern PGDLLIMPORT int AutovacuumLauncherPid; - -extern PGDLLIMPORT int Log_autovacuum_min_duration; - -/* Status inquiry functions */ -extern bool AutoVacuumingActive(void); -extern bool IsAutoVacuumLauncherProcess(void); -extern bool IsAutoVacuumWorkerProcess(void); - -#define IsAnyAutoVacuumProcess() \ - (IsAutoVacuumLauncherProcess() || IsAutoVacuumWorkerProcess()) - -/* Functions to start autovacuum process, called from postmaster */ -extern void autovac_init(void); -extern int StartAutoVacLauncher(void); -extern int StartAutoVacWorker(void); - -/* called from postmaster when a worker could not be forked */ -extern void AutoVacWorkerFailed(void); - -/* autovacuum cost-delay balancer */ -extern void AutoVacuumUpdateDelay(void); - -#ifdef EXEC_BACKEND -extern void AutoVacLauncherMain(int argc, char *argv[]) pg_attribute_noreturn(); -extern void AutoVacWorkerMain(int argc, char *argv[]) pg_attribute_noreturn(); -extern void AutovacuumWorkerIAm(void); -extern void AutovacuumLauncherIAm(void); -#endif - -extern bool AutoVacuumRequestWork(AutoVacuumWorkItemType type, - Oid relationId, BlockNumber blkno); - -/* shared memory stuff */ -extern Size AutoVacuumShmemSize(void); -extern void AutoVacuumShmemInit(void); - -#endif /* AUTOVACUUM_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/auxprocess.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/auxprocess.h deleted file mode 100644 index e3789fb8a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/auxprocess.h +++ /dev/null @@ -1,20 +0,0 @@ -/*------------------------------------------------------------------------- - * auxprocess.h - * include file for functions related to auxiliary processes. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * IDENTIFICATION - * src/include/postmaster/auxprocess.h - *------------------------------------------------------------------------- - */ -#ifndef AUXPROCESS_H -#define AUXPROCESS_H - -#include "miscadmin.h" - -extern void AuxiliaryProcessMain(AuxProcType auxtype) pg_attribute_noreturn(); - -#endif /* AUXPROCESS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/bgworker.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/bgworker.h deleted file mode 100644 index 96975bdc9..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/bgworker.h +++ /dev/null @@ -1,162 +0,0 @@ -/*-------------------------------------------------------------------- - * bgworker.h - * POSTGRES pluggable background workers interface - * - * A background worker is a process able to run arbitrary, user-supplied code, - * including normal transactions. - * - * Any external module loaded via shared_preload_libraries can register a - * worker. Workers can also be registered dynamically at runtime. In either - * case, the worker process is forked from the postmaster and runs the - * user-supplied "main" function. This code may connect to a database and - * run transactions. Workers can remain active indefinitely, but will be - * terminated if a shutdown or crash occurs. - * - * If the fork() call fails in the postmaster, it will try again later. Note - * that the failure can only be transient (fork failure due to high load, - * memory pressure, too many processes, etc); more permanent problems, like - * failure to connect to a database, are detected later in the worker and dealt - * with just by having the worker exit normally. A worker which exits with - * a return code of 0 will never be restarted and will be removed from worker - * list. A worker which exits with a return code of 1 will be restarted after - * the configured restart interval (unless that interval is BGW_NEVER_RESTART). - * The TerminateBackgroundWorker() function can be used to terminate a - * dynamically registered background worker; the worker will be sent a SIGTERM - * and will not be restarted after it exits. Whenever the postmaster knows - * that a worker will not be restarted, it unregisters the worker, freeing up - * that worker's slot for use by a new worker. - * - * Note that there might be more than one worker in a database concurrently, - * and the same module may request more than one worker running the same (or - * different) code. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * IDENTIFICATION - * src/include/postmaster/bgworker.h - *-------------------------------------------------------------------- - */ -#ifndef BGWORKER_H -#define BGWORKER_H - -/*--------------------------------------------------------------------- - * External module API. - *--------------------------------------------------------------------- - */ - -/* - * Pass this flag to have your worker be able to connect to shared memory. - * This flag is required. - */ -#define BGWORKER_SHMEM_ACCESS 0x0001 - -/* - * This flag means the bgworker requires a database connection. The connection - * is not established automatically; the worker must establish it later. - * It requires that BGWORKER_SHMEM_ACCESS was passed too. - */ -#define BGWORKER_BACKEND_DATABASE_CONNECTION 0x0002 - -/* - * This class is used internally for parallel queries, to keep track of the - * number of active parallel workers and make sure we never launch more than - * max_parallel_workers parallel workers at the same time. Third party - * background workers should not use this class. - */ -#define BGWORKER_CLASS_PARALLEL 0x0010 -/* add additional bgworker classes here */ - - -typedef void (*bgworker_main_type) (Datum main_arg); - -/* - * Points in time at which a bgworker can request to be started - */ -typedef enum -{ - BgWorkerStart_PostmasterStart, - BgWorkerStart_ConsistentState, - BgWorkerStart_RecoveryFinished -} BgWorkerStartTime; - -#define BGW_DEFAULT_RESTART_INTERVAL 60 -#define BGW_NEVER_RESTART -1 -#define BGW_MAXLEN 96 -#define BGW_EXTRALEN 128 - -typedef struct BackgroundWorker -{ - char bgw_name[BGW_MAXLEN]; - char bgw_type[BGW_MAXLEN]; - int bgw_flags; - BgWorkerStartTime bgw_start_time; - int bgw_restart_time; /* in seconds, or BGW_NEVER_RESTART */ - char bgw_library_name[BGW_MAXLEN]; - char bgw_function_name[BGW_MAXLEN]; - Datum bgw_main_arg; - char bgw_extra[BGW_EXTRALEN]; - pid_t bgw_notify_pid; /* SIGUSR1 this backend on start/stop */ -} BackgroundWorker; - -typedef enum BgwHandleStatus -{ - BGWH_STARTED, /* worker is running */ - BGWH_NOT_YET_STARTED, /* worker hasn't been started yet */ - BGWH_STOPPED, /* worker has exited */ - BGWH_POSTMASTER_DIED /* postmaster died; worker status unclear */ -} BgwHandleStatus; - -struct BackgroundWorkerHandle; -typedef struct BackgroundWorkerHandle BackgroundWorkerHandle; - -/* Register a new bgworker during shared_preload_libraries */ -extern void RegisterBackgroundWorker(BackgroundWorker *worker); - -/* Register a new bgworker from a regular backend */ -extern bool RegisterDynamicBackgroundWorker(BackgroundWorker *worker, - BackgroundWorkerHandle **handle); - -/* Query the status of a bgworker */ -extern BgwHandleStatus GetBackgroundWorkerPid(BackgroundWorkerHandle *handle, - pid_t *pidp); -extern BgwHandleStatus WaitForBackgroundWorkerStartup(BackgroundWorkerHandle *handle, pid_t *pid); -extern BgwHandleStatus - WaitForBackgroundWorkerShutdown(BackgroundWorkerHandle *); -extern const char *GetBackgroundWorkerTypeByPid(pid_t pid); - -/* Terminate a bgworker */ -extern void TerminateBackgroundWorker(BackgroundWorkerHandle *handle); - -/* This is valid in a running worker */ -extern PGDLLIMPORT BackgroundWorker *MyBgworkerEntry; - -/* - * Connect to the specified database, as the specified user. Only a worker - * that passed BGWORKER_BACKEND_DATABASE_CONNECTION during registration may - * call this. - * - * If username is NULL, bootstrapping superuser is used. - * If dbname is NULL, connection is made to no specific database; - * only shared catalogs can be accessed. - */ -extern void BackgroundWorkerInitializeConnection(const char *dbname, const char *username, uint32 flags); - -/* Just like the above, but specifying database and user by OID. */ -extern void BackgroundWorkerInitializeConnectionByOid(Oid dboid, Oid useroid, uint32 flags); - -/* - * Flags to BackgroundWorkerInitializeConnection et al - * - * - * Allow bypassing datallowconn restrictions when connecting to database - */ -#define BGWORKER_BYPASS_ALLOWCONN 1 - - -/* Block/unblock signals in a background worker process */ -extern void BackgroundWorkerBlockSignals(void); -extern void BackgroundWorkerUnblockSignals(void); - -#endif /* BGWORKER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/bgworker_internals.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/bgworker_internals.h deleted file mode 100644 index 387683546..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/bgworker_internals.h +++ /dev/null @@ -1,64 +0,0 @@ -/*-------------------------------------------------------------------- - * bgworker_internals.h - * POSTGRES pluggable background workers internals - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * IDENTIFICATION - * src/include/postmaster/bgworker_internals.h - *-------------------------------------------------------------------- - */ -#ifndef BGWORKER_INTERNALS_H -#define BGWORKER_INTERNALS_H - -#include "datatype/timestamp.h" -#include "lib/ilist.h" -#include "postmaster/bgworker.h" - -/* GUC options */ - -/* - * Maximum possible value of parallel workers. - */ -#define MAX_PARALLEL_WORKER_LIMIT 1024 - -/* - * List of background workers, private to postmaster. - * - * A worker that requests a database connection during registration will have - * rw_backend set, and will be present in BackendList. Note: do not rely on - * rw_backend being non-NULL for shmem-connected workers! - */ -typedef struct RegisteredBgWorker -{ - BackgroundWorker rw_worker; /* its registry entry */ - struct bkend *rw_backend; /* its BackendList entry, or NULL */ - pid_t rw_pid; /* 0 if not running */ - int rw_child_slot; - TimestampTz rw_crashed_at; /* if not 0, time it last crashed */ - int rw_shmem_slot; - bool rw_terminate; - slist_node rw_lnode; /* list link */ -} RegisteredBgWorker; - -extern PGDLLIMPORT slist_head BackgroundWorkerList; - -extern Size BackgroundWorkerShmemSize(void); -extern void BackgroundWorkerShmemInit(void); -extern void BackgroundWorkerStateChange(bool allow_new_workers); -extern void ForgetBackgroundWorker(slist_mutable_iter *cur); -extern void ReportBackgroundWorkerPID(RegisteredBgWorker *); -extern void ReportBackgroundWorkerExit(slist_mutable_iter *cur); -extern void BackgroundWorkerStopNotifications(pid_t pid); -extern void ForgetUnstartedBackgroundWorkers(void); -extern void ResetBackgroundWorkerCrashTimes(void); - -/* Function to start a background worker, called from postmaster.c */ -extern void StartBackgroundWorker(void) pg_attribute_noreturn(); - -#ifdef EXEC_BACKEND -extern BackgroundWorker *BackgroundWorkerEntry(int slotno); -#endif - -#endif /* BGWORKER_INTERNALS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/bgwriter.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/bgwriter.h deleted file mode 100644 index 2511ef451..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/bgwriter.h +++ /dev/null @@ -1,45 +0,0 @@ -/*------------------------------------------------------------------------- - * - * bgwriter.h - * Exports from postmaster/bgwriter.c and postmaster/checkpointer.c. - * - * The bgwriter process used to handle checkpointing duties too. Now - * there is a separate process, but we did not bother to split this header. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * - * src/include/postmaster/bgwriter.h - * - *------------------------------------------------------------------------- - */ -#ifndef _BGWRITER_H -#define _BGWRITER_H - -#include "storage/block.h" -#include "storage/relfilenode.h" -#include "storage/smgr.h" -#include "storage/sync.h" - - -/* GUC options */ -extern PGDLLIMPORT int BgWriterDelay; -extern PGDLLIMPORT int CheckPointTimeout; -extern PGDLLIMPORT int CheckPointWarning; -extern PGDLLIMPORT double CheckPointCompletionTarget; - -extern void BackgroundWriterMain(void) pg_attribute_noreturn(); -extern void CheckpointerMain(void) pg_attribute_noreturn(); - -extern void RequestCheckpoint(int flags); -extern void CheckpointWriteDelay(int flags, double progress); - -extern bool ForwardSyncRequest(const FileTag *ftag, SyncRequestType type); - -extern void AbsorbSyncRequests(void); - -extern Size CheckpointerShmemSize(void); -extern void CheckpointerShmemInit(void); - -extern bool FirstCallSinceLastCheckpoint(void); - -#endif /* _BGWRITER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/fork_process.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/fork_process.h deleted file mode 100644 index 5fc8490ee..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/fork_process.h +++ /dev/null @@ -1,17 +0,0 @@ -/*------------------------------------------------------------------------- - * - * fork_process.h - * Exports from postmaster/fork_process.c. - * - * Copyright (c) 1996-2022, PostgreSQL Global Development Group - * - * src/include/postmaster/fork_process.h - * - *------------------------------------------------------------------------- - */ -#ifndef FORK_PROCESS_H -#define FORK_PROCESS_H - -extern pid_t fork_process(void); - -#endif /* FORK_PROCESS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/interrupt.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/interrupt.h deleted file mode 100644 index 289e0457d..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/interrupt.h +++ /dev/null @@ -1,32 +0,0 @@ -/*------------------------------------------------------------------------- - * - * interrupt.h - * Interrupt handling routines. - * - * Responses to interrupts are fairly varied and many types of backends - * have their own implementations, but we provide a few generic things - * here to facilitate code reuse. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * IDENTIFICATION - * src/include/postmaster/interrupt.h - * - *------------------------------------------------------------------------- - */ - -#ifndef INTERRUPT_H -#define INTERRUPT_H - -#include - -extern PGDLLIMPORT volatile sig_atomic_t ConfigReloadPending; -extern PGDLLIMPORT volatile sig_atomic_t ShutdownRequestPending; - -extern void HandleMainLoopInterrupts(void); -extern void SignalHandlerForConfigReload(SIGNAL_ARGS); -extern void SignalHandlerForCrashExit(SIGNAL_ARGS); -extern void SignalHandlerForShutdownRequest(SIGNAL_ARGS); - -#endif diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/pgarch.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/pgarch.h deleted file mode 100644 index f366a159a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/pgarch.h +++ /dev/null @@ -1,73 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pgarch.h - * Exports from postmaster/pgarch.c. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/postmaster/pgarch.h - * - *------------------------------------------------------------------------- - */ -#ifndef _PGARCH_H -#define _PGARCH_H - -/* ---------- - * Archiver control info. - * - * We expect that archivable files within pg_wal will have names between - * MIN_XFN_CHARS and MAX_XFN_CHARS in length, consisting only of characters - * appearing in VALID_XFN_CHARS. The status files in archive_status have - * corresponding names with ".ready" or ".done" appended. - * ---------- - */ -#define MIN_XFN_CHARS 16 -#define MAX_XFN_CHARS 40 -#define VALID_XFN_CHARS "0123456789ABCDEF.history.backup.partial" - -extern Size PgArchShmemSize(void); -extern void PgArchShmemInit(void); -extern bool PgArchCanRestart(void); -extern void PgArchiverMain(void) pg_attribute_noreturn(); -extern void PgArchWakeup(void); -extern void PgArchForceDirScan(void); - -/* - * The value of the archive_library GUC. - */ -extern PGDLLIMPORT char *XLogArchiveLibrary; - -/* - * Archive module callbacks - * - * These callback functions should be defined by archive libraries and returned - * via _PG_archive_module_init(). ArchiveFileCB is the only required callback. - * For more information about the purpose of each callback, refer to the - * archive modules documentation. - */ -typedef bool (*ArchiveCheckConfiguredCB) (void); -typedef bool (*ArchiveFileCB) (const char *file, const char *path); -typedef void (*ArchiveShutdownCB) (void); - -typedef struct ArchiveModuleCallbacks -{ - ArchiveCheckConfiguredCB check_configured_cb; - ArchiveFileCB archive_file_cb; - ArchiveShutdownCB shutdown_cb; -} ArchiveModuleCallbacks; - -/* - * Type of the shared library symbol _PG_archive_module_init that is looked - * up when loading an archive library. - */ -typedef void (*ArchiveModuleInit) (ArchiveModuleCallbacks *cb); - -/* - * Since the logic for archiving via a shell command is in the core server - * and does not need to be loaded via a shared library, it has a special - * initialization function. - */ -extern void shell_archive_init(ArchiveModuleCallbacks *cb); - -#endif /* _PGARCH_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/postmaster.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/postmaster.h deleted file mode 100644 index 27aef9c1a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/postmaster.h +++ /dev/null @@ -1,78 +0,0 @@ -/*------------------------------------------------------------------------- - * - * postmaster.h - * Exports from postmaster/postmaster.c. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/postmaster/postmaster.h - * - *------------------------------------------------------------------------- - */ -#ifndef _POSTMASTER_H -#define _POSTMASTER_H - -/* GUC options */ -extern PGDLLIMPORT bool EnableSSL; -extern PGDLLIMPORT int ReservedBackends; -extern PGDLLIMPORT int PostPortNumber; -extern PGDLLIMPORT int Unix_socket_permissions; -extern PGDLLIMPORT char *Unix_socket_group; -extern PGDLLIMPORT char *Unix_socket_directories; -extern PGDLLIMPORT char *ListenAddresses; -extern PGDLLIMPORT __thread bool ClientAuthInProgress; -extern PGDLLIMPORT int PreAuthDelay; -extern PGDLLIMPORT int AuthenticationTimeout; -extern PGDLLIMPORT bool Log_connections; -extern PGDLLIMPORT bool log_hostname; -extern PGDLLIMPORT bool enable_bonjour; -extern PGDLLIMPORT char *bonjour_name; -extern PGDLLIMPORT bool restart_after_crash; -extern PGDLLIMPORT bool remove_temp_files_after_crash; - -#ifdef WIN32 -extern PGDLLIMPORT HANDLE PostmasterHandle; -#else -extern PGDLLIMPORT int postmaster_alive_fds[2]; - -/* - * Constants that represent which of postmaster_alive_fds is held by - * postmaster, and which is used in children to check for postmaster death. - */ -#define POSTMASTER_FD_WATCH 0 /* used in children to check for - * postmaster death */ -#define POSTMASTER_FD_OWN 1 /* kept open by postmaster only */ -#endif - -extern PGDLLIMPORT const char *progname; - -extern void PostmasterMain(int argc, char *argv[]) pg_attribute_noreturn(); -extern void ClosePostmasterPorts(bool am_syslogger); -extern void InitProcessGlobals(void); - -extern int MaxLivePostmasterChildren(void); - -extern bool PostmasterMarkPIDForWorkerNotify(int); - -#ifdef EXEC_BACKEND -extern pid_t postmaster_forkexec(int argc, char *argv[]); -extern void SubPostmasterMain(int argc, char *argv[]) pg_attribute_noreturn(); - -extern Size ShmemBackendArraySize(void); -extern void ShmemBackendArrayAllocation(void); -#endif - -/* - * Note: MAX_BACKENDS is limited to 2^18-1 because that's the width reserved - * for buffer references in buf_internals.h. This limitation could be lifted - * by using a 64bit state; but it's unlikely to be worthwhile as 2^18-1 - * backends exceed currently realistic configurations. Even if that limitation - * were removed, we still could not a) exceed 2^23-1 because inval.c stores - * the backend ID as a 3-byte signed integer, b) INT_MAX/4 because some places - * compute 4*MaxBackends without any overflow check. This is rechecked in the - * relevant GUC check hooks and in RegisterBackgroundWorker(). - */ -#define MAX_BACKENDS 0x3FFFF - -#endif /* _POSTMASTER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/startup.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/startup.h deleted file mode 100644 index d66ec1fcb..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/startup.h +++ /dev/null @@ -1,39 +0,0 @@ -/*------------------------------------------------------------------------- - * - * startup.h - * Exports from postmaster/startup.c. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * - * src/include/postmaster/startup.h - * - *------------------------------------------------------------------------- - */ -#ifndef _STARTUP_H -#define _STARTUP_H - -/* - * Log the startup progress message if a timer has expired. - */ -#define ereport_startup_progress(msg, ...) \ - do { \ - long secs; \ - int usecs; \ - if (has_startup_progress_timeout_expired(&secs, &usecs)) \ - ereport(LOG, errmsg(msg, secs, (usecs / 10000), __VA_ARGS__ )); \ - } while(0) - -extern PGDLLIMPORT int log_startup_progress_interval; - -extern void HandleStartupProcInterrupts(void); -extern void StartupProcessMain(void) pg_attribute_noreturn(); -extern void PreRestoreCommand(void); -extern void PostRestoreCommand(void); -extern bool IsPromoteSignaled(void); -extern void ResetPromoteSignaled(void); - -extern void begin_startup_progress_phase(void); -extern void startup_progress_timeout_handler(void); -extern bool has_startup_progress_timeout_expired(long *secs, int *usecs); - -#endif /* _STARTUP_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/syslogger.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/syslogger.h deleted file mode 100644 index 6436724f3..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/syslogger.h +++ /dev/null @@ -1,103 +0,0 @@ -/*------------------------------------------------------------------------- - * - * syslogger.h - * Exports from postmaster/syslogger.c. - * - * Copyright (c) 2004-2022, PostgreSQL Global Development Group - * - * src/include/postmaster/syslogger.h - * - *------------------------------------------------------------------------- - */ -#ifndef _SYSLOGGER_H -#define _SYSLOGGER_H - -#include /* for PIPE_BUF */ - - -/* - * Primitive protocol structure for writing to syslogger pipe(s). The idea - * here is to divide long messages into chunks that are not more than - * PIPE_BUF bytes long, which according to POSIX spec must be written into - * the pipe atomically. The pipe reader then uses the protocol headers to - * reassemble the parts of a message into a single string. The reader can - * also cope with non-protocol data coming down the pipe, though we cannot - * guarantee long strings won't get split apart. - * - * We use non-nul bytes in is_last to make the protocol a tiny bit - * more robust against finding a false double nul byte prologue. But - * we still might find it in the len and/or pid bytes unless we're careful. - */ - -#ifdef PIPE_BUF -/* Are there any systems with PIPE_BUF > 64K? Unlikely, but ... */ -#if PIPE_BUF > 65536 -#define PIPE_CHUNK_SIZE 65536 -#else -#define PIPE_CHUNK_SIZE ((int) PIPE_BUF) -#endif -#else /* not defined */ -/* POSIX says the value of PIPE_BUF must be at least 512, so use that */ -#define PIPE_CHUNK_SIZE 512 -#endif - -typedef struct -{ - char nuls[2]; /* always \0\0 */ - uint16 len; /* size of this chunk (counts data only) */ - int32 pid; /* writer's pid */ - bits8 flags; /* bitmask of PIPE_PROTO_* */ - char data[FLEXIBLE_ARRAY_MEMBER]; /* data payload starts here */ -} PipeProtoHeader; - -typedef union -{ - PipeProtoHeader proto; - char filler[PIPE_CHUNK_SIZE]; -} PipeProtoChunk; - -#define PIPE_HEADER_SIZE offsetof(PipeProtoHeader, data) -#define PIPE_MAX_PAYLOAD ((int) (PIPE_CHUNK_SIZE - PIPE_HEADER_SIZE)) - -/* flag bits for PipeProtoHeader->flags */ -#define PIPE_PROTO_IS_LAST 0x01 /* last chunk of message? */ -/* log destinations */ -#define PIPE_PROTO_DEST_STDERR 0x10 -#define PIPE_PROTO_DEST_CSVLOG 0x20 -#define PIPE_PROTO_DEST_JSONLOG 0x40 - -/* GUC options */ -extern PGDLLIMPORT bool Logging_collector; -extern PGDLLIMPORT int Log_RotationAge; -extern PGDLLIMPORT int Log_RotationSize; -extern PGDLLIMPORT char *Log_directory; -extern PGDLLIMPORT char *Log_filename; -extern PGDLLIMPORT bool Log_truncate_on_rotation; -extern PGDLLIMPORT int Log_file_mode; - -#ifndef WIN32 -extern PGDLLIMPORT int syslogPipe[2]; -#else -extern PGDLLIMPORT HANDLE syslogPipe[2]; -#endif - - -extern int SysLogger_Start(void); - -extern void write_syslogger_file(const char *buffer, int count, int dest); - -#ifdef EXEC_BACKEND -extern void SysLoggerMain(int argc, char *argv[]) pg_attribute_noreturn(); -#endif - -extern bool CheckLogrotateSignal(void); -extern void RemoveLogrotateSignalFiles(void); - -/* - * Name of files saving meta-data information about the log - * files currently in use by the syslogger - */ -#define LOG_METAINFO_DATAFILE "current_logfiles" -#define LOG_METAINFO_DATAFILE_TMP LOG_METAINFO_DATAFILE ".tmp" - -#endif /* _SYSLOGGER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/walwriter.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/walwriter.h deleted file mode 100644 index ddc943657..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/postmaster/walwriter.h +++ /dev/null @@ -1,21 +0,0 @@ -/*------------------------------------------------------------------------- - * - * walwriter.h - * Exports from postmaster/walwriter.c. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * - * src/include/postmaster/walwriter.h - * - *------------------------------------------------------------------------- - */ -#ifndef _WALWRITER_H -#define _WALWRITER_H - -/* GUC options */ -extern PGDLLIMPORT int WalWriterDelay; -extern PGDLLIMPORT int WalWriterFlushAfter; - -extern void WalWriterMain(void) pg_attribute_noreturn(); - -#endif /* _WALWRITER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/protobuf-c.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/protobuf-c.h deleted file mode 100644 index 5df7e9b8a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/protobuf-c.h +++ /dev/null @@ -1,1110 +0,0 @@ -/* - * Copyright (c) 2008-2018, Dave Benson and the protobuf-c authors. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/*! \file - * \mainpage Introduction - * - * This is [protobuf-c], a C implementation of [Protocol Buffers]. - * - * This file defines the public API for the `libprotobuf-c` support library. - * This API includes interfaces that can be used directly by client code as well - * as the interfaces used by the code generated by the `protoc-c` compiler. - * - * The `libprotobuf-c` support library performs the actual serialization and - * deserialization of Protocol Buffers messages. It interacts with structures, - * definitions, and metadata generated by the `protoc-c` compiler from .proto - * files. - * - * \authors Dave Benson and the `protobuf-c` authors. - * - * \copyright 2008-2014. Licensed under the terms of the [BSD-2-Clause] license. - * - * [protobuf-c]: https://github.com/protobuf-c/protobuf-c - * [Protocol Buffers]: https://developers.google.com/protocol-buffers/ - * [BSD-2-Clause]: http://opensource.org/licenses/BSD-2-Clause - * - * \page gencode Generated Code - * - * For each enum, we generate a C enum. For each message, we generate a C - * structure which can be cast to a `ProtobufCMessage`. - * - * For each enum and message, we generate a descriptor object that allows us to - * implement a kind of reflection on the structures. - * - * First, some naming conventions: - * - * - The name of the type for enums and messages and services is camel case - * (meaning WordsAreCrammedTogether) except that double underscores are used - * to delimit scopes. For example, the following `.proto` file: - * -~~~{.proto} - package foo.bar; - message BazBah { - optional int32 val = 1; - } -~~~ - * - * would generate a C type `Foo__Bar__BazBah`. - * - * - Identifiers for functions and globals are all lowercase, with camel case - * words separated by single underscores. For example, one of the function - * prototypes generated by `protoc-c` for the above example: - * -~~~{.c} -Foo__Bar__BazBah * - foo__bar__baz_bah__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -~~~ - * - * - Identifiers for enum values contain an uppercase prefix which embeds the - * package name and the enum type name. - * - * - A double underscore is used to separate further components of identifier - * names. - * - * For example, in the name of the unpack function above, the package name - * `foo.bar` has become `foo__bar`, the message name BazBah has become - * `baz_bah`, and the method name is `unpack`. These are all joined with double - * underscores to form the C identifier `foo__bar__baz_bah__unpack`. - * - * We also generate descriptor objects for messages and enums. These are - * declared in the `.pb-c.h` files: - * -~~~{.c} -extern const ProtobufCMessageDescriptor foo__bar__baz_bah__descriptor; -~~~ - * - * The message structures all begin with `ProtobufCMessageDescriptor *` which is - * sufficient to allow them to be cast to `ProtobufCMessage`. - * - * For each message defined in a `.proto` file, we generate a number of - * functions and macros. Each function name contains a prefix based on the - * package name and message name in order to make it a unique C identifier. - * - * - `INIT`. Statically initializes a message object, initializing its - * descriptor and setting its fields to default values. Uninitialized - * messages cannot be processed by the protobuf-c library. - * -~~~{.c} -#define FOO__BAR__BAZ_BAH__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&foo__bar__baz_bah__descriptor), 0 } -~~~ - * - `init()`. Initializes a message object, initializing its descriptor and - * setting its fields to default values. Uninitialized messages cannot be - * processed by the protobuf-c library. - * -~~~{.c} -void foo__bar__baz_bah__init - (Foo__Bar__BazBah *message); -~~~ - * - `unpack()`. Unpacks data for a particular message format. Note that the - * `allocator` parameter is usually `NULL` to indicate that the system's - * `malloc()` and `free()` functions should be used for dynamically allocating - * memory. - * -~~~{.c} -Foo__Bar__BazBah * - foo__bar__baz_bah__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -~~~ - * - * - `free_unpacked()`. Frees a message object obtained with the `unpack()` - * method. Freeing `NULL` is allowed (the same as with `free()`). - * -~~~{.c} -void foo__bar__baz_bah__free_unpacked - (Foo__Bar__BazBah *message, - ProtobufCAllocator *allocator); -~~~ - * - * - `get_packed_size()`. Calculates the length in bytes of the serialized - * representation of the message object. - * -~~~{.c} -size_t foo__bar__baz_bah__get_packed_size - (const Foo__Bar__BazBah *message); -~~~ - * - * - `pack()`. Pack a message object into a preallocated buffer. Assumes that - * the buffer is large enough. (Use `get_packed_size()` first.) - * -~~~{.c} -size_t foo__bar__baz_bah__pack - (const Foo__Bar__BazBah *message, - uint8_t *out); -~~~ - * - * - `pack_to_buffer()`. Packs a message into a "virtual buffer". This is an - * object which defines an "append bytes" callback to consume data as it is - * serialized. - * -~~~{.c} -size_t foo__bar__baz_bah__pack_to_buffer - (const Foo__Bar__BazBah *message, - ProtobufCBuffer *buffer); -~~~ - * - * \page pack Packing and unpacking messages - * - * To pack a message, first compute the packed size of the message with - * protobuf_c_message_get_packed_size(), then allocate a buffer of at least - * that size, then call protobuf_c_message_pack(). - * - * Alternatively, a message can be serialized without calculating the final size - * first. Use the protobuf_c_message_pack_to_buffer() function and provide a - * ProtobufCBuffer object which implements an "append" method that consumes - * data. - * - * To unpack a message, call the protobuf_c_message_unpack() function. The - * result can be cast to an object of the type that matches the descriptor for - * the message. - * - * The result of unpacking a message should be freed with - * protobuf_c_message_free_unpacked(). - */ - -#ifndef PROTOBUF_C_H -#define PROTOBUF_C_H - -#include -#include -#include -#include - -#ifdef __cplusplus -# define PROTOBUF_C__BEGIN_DECLS extern "C" { -# define PROTOBUF_C__END_DECLS } -#else -# define PROTOBUF_C__BEGIN_DECLS -# define PROTOBUF_C__END_DECLS -#endif - -PROTOBUF_C__BEGIN_DECLS - -#if defined(_WIN32) && defined(PROTOBUF_C_USE_SHARED_LIB) -# ifdef PROTOBUF_C_EXPORT -# define PROTOBUF_C__API __declspec(dllexport) -# else -# define PROTOBUF_C__API __declspec(dllimport) -# endif -#else -# define PROTOBUF_C__API -#endif - -#if !defined(PROTOBUF_C__NO_DEPRECATED) && \ - ((__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)) -# define PROTOBUF_C__DEPRECATED __attribute__((__deprecated__)) -#else -# define PROTOBUF_C__DEPRECATED -#endif - -#ifndef PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE - #define PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(enum_name) \ - , _##enum_name##_IS_INT_SIZE = INT_MAX -#endif - -#define PROTOBUF_C__SERVICE_DESCRIPTOR_MAGIC 0x14159bc3 -#define PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC 0x28aaeef9 -#define PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC 0x114315af - -/* Empty string used for initializers */ -#if defined(_WIN32) && defined(PROTOBUF_C_USE_SHARED_LIB) -static const char protobuf_c_empty_string[] = ""; -#else -extern const char protobuf_c_empty_string[]; -#endif - -/** - * \defgroup api Public API - * - * This is the public API for `libprotobuf-c`. These interfaces are stable and - * subject to Semantic Versioning guarantees. - * - * @{ - */ - -/** - * Values for the `flags` word in `ProtobufCFieldDescriptor`. - */ -typedef enum { - /** Set if the field is repeated and marked with the `packed` option. */ - PROTOBUF_C_FIELD_FLAG_PACKED = (1 << 0), - - /** Set if the field is marked with the `deprecated` option. */ - PROTOBUF_C_FIELD_FLAG_DEPRECATED = (1 << 1), - - /** Set if the field is a member of a oneof (union). */ - PROTOBUF_C_FIELD_FLAG_ONEOF = (1 << 2), -} ProtobufCFieldFlag; - -/** - * Message field rules. - * - * \see [Defining A Message Type] in the Protocol Buffers documentation. - * - * [Defining A Message Type]: - * https://developers.google.com/protocol-buffers/docs/proto#simple - */ -typedef enum { - /** A well-formed message must have exactly one of this field. */ - PROTOBUF_C_LABEL_REQUIRED, - - /** - * A well-formed message can have zero or one of this field (but not - * more than one). - */ - PROTOBUF_C_LABEL_OPTIONAL, - - /** - * This field can be repeated any number of times (including zero) in a - * well-formed message. The order of the repeated values will be - * preserved. - */ - PROTOBUF_C_LABEL_REPEATED, - - /** - * This field has no label. This is valid only in proto3 and is - * equivalent to OPTIONAL but no "has" quantifier will be consulted. - */ - PROTOBUF_C_LABEL_NONE, -} ProtobufCLabel; - -/** - * Field value types. - * - * \see [Scalar Value Types] in the Protocol Buffers documentation. - * - * [Scalar Value Types]: - * https://developers.google.com/protocol-buffers/docs/proto#scalar - */ -typedef enum { - PROTOBUF_C_TYPE_INT32, /**< int32 */ - PROTOBUF_C_TYPE_SINT32, /**< signed int32 */ - PROTOBUF_C_TYPE_SFIXED32, /**< signed int32 (4 bytes) */ - PROTOBUF_C_TYPE_INT64, /**< int64 */ - PROTOBUF_C_TYPE_SINT64, /**< signed int64 */ - PROTOBUF_C_TYPE_SFIXED64, /**< signed int64 (8 bytes) */ - PROTOBUF_C_TYPE_UINT32, /**< unsigned int32 */ - PROTOBUF_C_TYPE_FIXED32, /**< unsigned int32 (4 bytes) */ - PROTOBUF_C_TYPE_UINT64, /**< unsigned int64 */ - PROTOBUF_C_TYPE_FIXED64, /**< unsigned int64 (8 bytes) */ - PROTOBUF_C_TYPE_FLOAT, /**< float */ - PROTOBUF_C_TYPE_DOUBLE, /**< double */ - PROTOBUF_C_TYPE_BOOL, /**< boolean */ - PROTOBUF_C_TYPE_ENUM, /**< enumerated type */ - PROTOBUF_C_TYPE_STRING, /**< UTF-8 or ASCII string */ - PROTOBUF_C_TYPE_BYTES, /**< arbitrary byte sequence */ - PROTOBUF_C_TYPE_MESSAGE, /**< nested message */ -} ProtobufCType; - -/** - * Field wire types. - * - * \see [Message Structure] in the Protocol Buffers documentation. - * - * [Message Structure]: - * https://developers.google.com/protocol-buffers/docs/encoding#structure - */ -typedef enum { - PROTOBUF_C_WIRE_TYPE_VARINT = 0, - PROTOBUF_C_WIRE_TYPE_64BIT = 1, - PROTOBUF_C_WIRE_TYPE_LENGTH_PREFIXED = 2, - /* "Start group" and "end group" wire types are unsupported. */ - PROTOBUF_C_WIRE_TYPE_32BIT = 5, -} ProtobufCWireType; - -struct ProtobufCAllocator; -struct ProtobufCBinaryData; -struct ProtobufCBuffer; -struct ProtobufCBufferSimple; -struct ProtobufCEnumDescriptor; -struct ProtobufCEnumValue; -struct ProtobufCEnumValueIndex; -struct ProtobufCFieldDescriptor; -struct ProtobufCIntRange; -struct ProtobufCMessage; -struct ProtobufCMessageDescriptor; -struct ProtobufCMessageUnknownField; -struct ProtobufCMethodDescriptor; -struct ProtobufCService; -struct ProtobufCServiceDescriptor; - -typedef struct ProtobufCAllocator ProtobufCAllocator; -typedef struct ProtobufCBinaryData ProtobufCBinaryData; -typedef struct ProtobufCBuffer ProtobufCBuffer; -typedef struct ProtobufCBufferSimple ProtobufCBufferSimple; -typedef struct ProtobufCEnumDescriptor ProtobufCEnumDescriptor; -typedef struct ProtobufCEnumValue ProtobufCEnumValue; -typedef struct ProtobufCEnumValueIndex ProtobufCEnumValueIndex; -typedef struct ProtobufCFieldDescriptor ProtobufCFieldDescriptor; -typedef struct ProtobufCIntRange ProtobufCIntRange; -typedef struct ProtobufCMessage ProtobufCMessage; -typedef struct ProtobufCMessageDescriptor ProtobufCMessageDescriptor; -typedef struct ProtobufCMessageUnknownField ProtobufCMessageUnknownField; -typedef struct ProtobufCMethodDescriptor ProtobufCMethodDescriptor; -typedef struct ProtobufCService ProtobufCService; -typedef struct ProtobufCServiceDescriptor ProtobufCServiceDescriptor; - -/** Boolean type. */ -typedef int protobuf_c_boolean; - -typedef void (*ProtobufCClosure)(const ProtobufCMessage *, void *closure_data); -typedef void (*ProtobufCMessageInit)(ProtobufCMessage *); -typedef void (*ProtobufCServiceDestroy)(ProtobufCService *); - -/** - * Structure for defining a custom memory allocator. - */ -struct ProtobufCAllocator { - /** Function to allocate memory. */ - void *(*alloc)(void *allocator_data, size_t size); - - /** Function to free memory. */ - void (*free)(void *allocator_data, void *pointer); - - /** Opaque pointer passed to `alloc` and `free` functions. */ - void *allocator_data; -}; - -/** - * Structure for the protobuf `bytes` scalar type. - * - * The data contained in a `ProtobufCBinaryData` is an arbitrary sequence of - * bytes. It may contain embedded `NUL` characters and is not required to be - * `NUL`-terminated. - */ -struct ProtobufCBinaryData { - size_t len; /**< Number of bytes in the `data` field. */ - uint8_t *data; /**< Data bytes. */ -}; - -/** - * Structure for defining a virtual append-only buffer. Used by - * protobuf_c_message_pack_to_buffer() to abstract the consumption of serialized - * bytes. - * - * `ProtobufCBuffer` "subclasses" may be defined on the stack. For example, to - * write to a `FILE` object: - * -~~~{.c} -typedef struct { - ProtobufCBuffer base; - FILE *fp; -} BufferAppendToFile; - -static void -my_buffer_file_append(ProtobufCBuffer *buffer, - size_t len, - const uint8_t *data) -{ - BufferAppendToFile *file_buf = (BufferAppendToFile *) buffer; - fwrite(data, len, 1, file_buf->fp); // XXX: No error handling! -} -~~~ - * - * To use this new type of ProtobufCBuffer, it could be called as follows: - * -~~~{.c} -... -BufferAppendToFile tmp = {0}; -tmp.base.append = my_buffer_file_append; -tmp.fp = fp; -protobuf_c_message_pack_to_buffer(&message, &tmp); -... -~~~ - */ -struct ProtobufCBuffer { - /** Append function. Consumes the `len` bytes stored at `data`. */ - void (*append)(ProtobufCBuffer *buffer, - size_t len, - const uint8_t *data); -}; - -/** - * Simple buffer "subclass" of `ProtobufCBuffer`. - * - * A `ProtobufCBufferSimple` object is declared on the stack and uses a - * scratch buffer provided by the user for the initial allocation. It performs - * exponential resizing, using dynamically allocated memory. A - * `ProtobufCBufferSimple` object can be created and used as follows: - * -~~~{.c} -uint8_t pad[128]; -ProtobufCBufferSimple simple = PROTOBUF_C_BUFFER_SIMPLE_INIT(pad); -ProtobufCBuffer *buffer = (ProtobufCBuffer *) &simple; -~~~ - * - * `buffer` can now be used with `protobuf_c_message_pack_to_buffer()`. Once a - * message has been serialized to a `ProtobufCBufferSimple` object, the - * serialized data bytes can be accessed from the `.data` field. - * - * To free the memory allocated by a `ProtobufCBufferSimple` object, if any, - * call PROTOBUF_C_BUFFER_SIMPLE_CLEAR() on the object, for example: - * -~~~{.c} -PROTOBUF_C_BUFFER_SIMPLE_CLEAR(&simple); -~~~ - * - * \see PROTOBUF_C_BUFFER_SIMPLE_INIT - * \see PROTOBUF_C_BUFFER_SIMPLE_CLEAR - */ -struct ProtobufCBufferSimple { - /** "Base class". */ - ProtobufCBuffer base; - /** Number of bytes allocated in `data`. */ - size_t alloced; - /** Number of bytes currently stored in `data`. */ - size_t len; - /** Data bytes. */ - uint8_t *data; - /** Whether `data` must be freed. */ - protobuf_c_boolean must_free_data; - /** Allocator to use. May be NULL to indicate the system allocator. */ - ProtobufCAllocator *allocator; -}; - -/** - * Describes an enumeration as a whole, with all of its values. - */ -struct ProtobufCEnumDescriptor { - /** Magic value checked to ensure that the API is used correctly. */ - uint32_t magic; - - /** The qualified name (e.g., "namespace.Type"). */ - const char *name; - /** The unqualified name as given in the .proto file (e.g., "Type"). */ - const char *short_name; - /** Identifier used in generated C code. */ - const char *c_name; - /** The dot-separated namespace. */ - const char *package_name; - - /** Number elements in `values`. */ - unsigned n_values; - /** Array of distinct values, sorted by numeric value. */ - const ProtobufCEnumValue *values; - - /** Number of elements in `values_by_name`. */ - unsigned n_value_names; - /** Array of named values, including aliases, sorted by name. */ - const ProtobufCEnumValueIndex *values_by_name; - - /** Number of elements in `value_ranges`. */ - unsigned n_value_ranges; - /** Value ranges, for faster lookups by numeric value. */ - const ProtobufCIntRange *value_ranges; - - /** Reserved for future use. */ - void *reserved1; - /** Reserved for future use. */ - void *reserved2; - /** Reserved for future use. */ - void *reserved3; - /** Reserved for future use. */ - void *reserved4; -}; - -/** - * Represents a single value of an enumeration. - */ -struct ProtobufCEnumValue { - /** The string identifying this value in the .proto file. */ - const char *name; - - /** The string identifying this value in generated C code. */ - const char *c_name; - - /** The numeric value assigned in the .proto file. */ - int value; -}; - -/** - * Used by `ProtobufCEnumDescriptor` to look up enum values. - */ -struct ProtobufCEnumValueIndex { - /** Name of the enum value. */ - const char *name; - /** Index into values[] array. */ - unsigned index; -}; - -/** - * Describes a single field in a message. - */ -struct ProtobufCFieldDescriptor { - /** Name of the field as given in the .proto file. */ - const char *name; - - /** Tag value of the field as given in the .proto file. */ - uint32_t id; - - /** Whether the field is `REQUIRED`, `OPTIONAL`, or `REPEATED`. */ - ProtobufCLabel label; - - /** The type of the field. */ - ProtobufCType type; - - /** - * The offset in bytes of the message's C structure's quantifier field - * (the `has_MEMBER` field for optional members or the `n_MEMBER` field - * for repeated members or the case enum for oneofs). - */ - unsigned quantifier_offset; - - /** - * The offset in bytes into the message's C structure for the member - * itself. - */ - unsigned offset; - - /** - * A type-specific descriptor. - * - * If `type` is `PROTOBUF_C_TYPE_ENUM`, then `descriptor` points to the - * corresponding `ProtobufCEnumDescriptor`. - * - * If `type` is `PROTOBUF_C_TYPE_MESSAGE`, then `descriptor` points to - * the corresponding `ProtobufCMessageDescriptor`. - * - * Otherwise this field is NULL. - */ - const void *descriptor; /* for MESSAGE and ENUM types */ - - /** The default value for this field, if defined. May be NULL. */ - const void *default_value; - - /** - * A flag word. Zero or more of the bits defined in the - * `ProtobufCFieldFlag` enum may be set. - */ - uint32_t flags; - - /** Reserved for future use. */ - unsigned reserved_flags; - /** Reserved for future use. */ - void *reserved2; - /** Reserved for future use. */ - void *reserved3; -}; - -/** - * Helper structure for optimizing int => index lookups in the case - * where the keys are mostly consecutive values, as they presumably are for - * enums and fields. - * - * The data structures requires that the values in the original array are - * sorted. - */ -struct ProtobufCIntRange { - int start_value; - unsigned orig_index; - /* - * NOTE: the number of values in the range can be inferred by looking - * at the next element's orig_index. A dummy element is added to make - * this simple. - */ -}; - -/** - * An instance of a message. - * - * `ProtobufCMessage` is a light-weight "base class" for all messages. - * - * In particular, `ProtobufCMessage` doesn't have any allocation policy - * associated with it. That's because it's common to create `ProtobufCMessage` - * objects on the stack. In fact, that's what we recommend for sending messages. - * If the object is allocated from the stack, you can't really have a memory - * leak. - * - * This means that calls to functions like protobuf_c_message_unpack() which - * return a `ProtobufCMessage` must be paired with a call to a free function, - * like protobuf_c_message_free_unpacked(). - */ -struct ProtobufCMessage { - /** The descriptor for this message type. */ - const ProtobufCMessageDescriptor *descriptor; - /** The number of elements in `unknown_fields`. */ - unsigned n_unknown_fields; - /** The fields that weren't recognized by the parser. */ - ProtobufCMessageUnknownField *unknown_fields; -}; - -/** - * Describes a message. - */ -struct ProtobufCMessageDescriptor { - /** Magic value checked to ensure that the API is used correctly. */ - uint32_t magic; - - /** The qualified name (e.g., "namespace.Type"). */ - const char *name; - /** The unqualified name as given in the .proto file (e.g., "Type"). */ - const char *short_name; - /** Identifier used in generated C code. */ - const char *c_name; - /** The dot-separated namespace. */ - const char *package_name; - - /** - * Size in bytes of the C structure representing an instance of this - * type of message. - */ - size_t sizeof_message; - - /** Number of elements in `fields`. */ - unsigned n_fields; - /** Field descriptors, sorted by tag number. */ - const ProtobufCFieldDescriptor *fields; - /** Used for looking up fields by name. */ - const unsigned *fields_sorted_by_name; - - /** Number of elements in `field_ranges`. */ - unsigned n_field_ranges; - /** Used for looking up fields by id. */ - const ProtobufCIntRange *field_ranges; - - /** Message initialisation function. */ - ProtobufCMessageInit message_init; - - /** Reserved for future use. */ - void *reserved1; - /** Reserved for future use. */ - void *reserved2; - /** Reserved for future use. */ - void *reserved3; -}; - -/** - * An unknown message field. - */ -struct ProtobufCMessageUnknownField { - /** The tag number. */ - uint32_t tag; - /** The wire type of the field. */ - ProtobufCWireType wire_type; - /** Number of bytes in `data`. */ - size_t len; - /** Field data. */ - uint8_t *data; -}; - -/** - * Method descriptor. - */ -struct ProtobufCMethodDescriptor { - /** Method name. */ - const char *name; - /** Input message descriptor. */ - const ProtobufCMessageDescriptor *input; - /** Output message descriptor. */ - const ProtobufCMessageDescriptor *output; -}; - -/** - * Service. - */ -struct ProtobufCService { - /** Service descriptor. */ - const ProtobufCServiceDescriptor *descriptor; - /** Function to invoke the service. */ - void (*invoke)(ProtobufCService *service, - unsigned method_index, - const ProtobufCMessage *input, - ProtobufCClosure closure, - void *closure_data); - /** Function to destroy the service. */ - void (*destroy)(ProtobufCService *service); -}; - -/** - * Service descriptor. - */ -struct ProtobufCServiceDescriptor { - /** Magic value checked to ensure that the API is used correctly. */ - uint32_t magic; - - /** Service name. */ - const char *name; - /** Short version of service name. */ - const char *short_name; - /** C identifier for the service name. */ - const char *c_name; - /** Package name. */ - const char *package; - /** Number of elements in `methods`. */ - unsigned n_methods; - /** Method descriptors, in the order defined in the .proto file. */ - const ProtobufCMethodDescriptor *methods; - /** Sort index of methods. */ - const unsigned *method_indices_by_name; -}; - -/** - * Get the version of the protobuf-c library. Note that this is the version of - * the library linked against, not the version of the headers compiled against. - * - * \return A string containing the version number of protobuf-c. - */ -PROTOBUF_C__API -const char * -protobuf_c_version(void); - -/** - * Get the version of the protobuf-c library. Note that this is the version of - * the library linked against, not the version of the headers compiled against. - * - * \return A 32 bit unsigned integer containing the version number of - * protobuf-c, represented in base-10 as (MAJOR*1E6) + (MINOR*1E3) + PATCH. - */ -PROTOBUF_C__API -uint32_t -protobuf_c_version_number(void); - -/** - * The version of the protobuf-c headers, represented as a string using the same - * format as protobuf_c_version(). - */ -#define PROTOBUF_C_VERSION "1.4.0" - -/** - * The version of the protobuf-c headers, represented as an integer using the - * same format as protobuf_c_version_number(). - */ -#define PROTOBUF_C_VERSION_NUMBER 1004000 - -/** - * The minimum protoc-c version which works with the current version of the - * protobuf-c headers. - */ -#define PROTOBUF_C_MIN_COMPILER_VERSION 1000000 - -/** - * Look up a `ProtobufCEnumValue` from a `ProtobufCEnumDescriptor` by name. - * - * \param desc - * The `ProtobufCEnumDescriptor` object. - * \param name - * The `name` field from the corresponding `ProtobufCEnumValue` object to - * match. - * \return - * A `ProtobufCEnumValue` object. - * \retval NULL - * If not found or if the optimize_for = CODE_SIZE option was set. - */ -PROTOBUF_C__API -const ProtobufCEnumValue * -protobuf_c_enum_descriptor_get_value_by_name( - const ProtobufCEnumDescriptor *desc, - const char *name); - -/** - * Look up a `ProtobufCEnumValue` from a `ProtobufCEnumDescriptor` by numeric - * value. - * - * \param desc - * The `ProtobufCEnumDescriptor` object. - * \param value - * The `value` field from the corresponding `ProtobufCEnumValue` object to - * match. - * - * \return - * A `ProtobufCEnumValue` object. - * \retval NULL - * If not found. - */ -PROTOBUF_C__API -const ProtobufCEnumValue * -protobuf_c_enum_descriptor_get_value( - const ProtobufCEnumDescriptor *desc, - int value); - -/** - * Look up a `ProtobufCFieldDescriptor` from a `ProtobufCMessageDescriptor` by - * the name of the field. - * - * \param desc - * The `ProtobufCMessageDescriptor` object. - * \param name - * The name of the field. - * \return - * A `ProtobufCFieldDescriptor` object. - * \retval NULL - * If not found or if the optimize_for = CODE_SIZE option was set. - */ -PROTOBUF_C__API -const ProtobufCFieldDescriptor * -protobuf_c_message_descriptor_get_field_by_name( - const ProtobufCMessageDescriptor *desc, - const char *name); - -/** - * Look up a `ProtobufCFieldDescriptor` from a `ProtobufCMessageDescriptor` by - * the tag value of the field. - * - * \param desc - * The `ProtobufCMessageDescriptor` object. - * \param value - * The tag value of the field. - * \return - * A `ProtobufCFieldDescriptor` object. - * \retval NULL - * If not found. - */ -PROTOBUF_C__API -const ProtobufCFieldDescriptor * -protobuf_c_message_descriptor_get_field( - const ProtobufCMessageDescriptor *desc, - unsigned value); - -/** - * Determine the number of bytes required to store the serialised message. - * - * \param message - * The message object to serialise. - * \return - * Number of bytes. - */ -PROTOBUF_C__API -size_t -protobuf_c_message_get_packed_size(const ProtobufCMessage *message); - -/** - * Serialise a message from its in-memory representation. - * - * This function stores the serialised bytes of the message in a pre-allocated - * buffer. - * - * \param message - * The message object to serialise. - * \param[out] out - * Buffer to store the bytes of the serialised message. This buffer must - * have enough space to store the packed message. Use - * protobuf_c_message_get_packed_size() to determine the number of bytes - * required. - * \return - * Number of bytes stored in `out`. - */ -PROTOBUF_C__API -size_t -protobuf_c_message_pack(const ProtobufCMessage *message, uint8_t *out); - -/** - * Serialise a message from its in-memory representation to a virtual buffer. - * - * This function calls the `append` method of a `ProtobufCBuffer` object to - * consume the bytes generated by the serialiser. - * - * \param message - * The message object to serialise. - * \param buffer - * The virtual buffer object. - * \return - * Number of bytes passed to the virtual buffer. - */ -PROTOBUF_C__API -size_t -protobuf_c_message_pack_to_buffer( - const ProtobufCMessage *message, - ProtobufCBuffer *buffer); - -/** - * Unpack a serialised message into an in-memory representation. - * - * \param descriptor - * The message descriptor. - * \param allocator - * `ProtobufCAllocator` to use for memory allocation. May be NULL to - * specify the default allocator. - * \param len - * Length in bytes of the serialised message. - * \param data - * Pointer to the serialised message. - * \return - * An unpacked message object. - * \retval NULL - * If an error occurred during unpacking. - */ -PROTOBUF_C__API -ProtobufCMessage * -protobuf_c_message_unpack( - const ProtobufCMessageDescriptor *descriptor, - ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); - -/** - * Free an unpacked message object. - * - * This function should be used to deallocate the memory used by a call to - * protobuf_c_message_unpack(). - * - * \param message - * The message object to free. May be NULL. - * \param allocator - * `ProtobufCAllocator` to use for memory deallocation. May be NULL to - * specify the default allocator. - */ -PROTOBUF_C__API -void -protobuf_c_message_free_unpacked( - ProtobufCMessage *message, - ProtobufCAllocator *allocator); - -/** - * Check the validity of a message object. - * - * Makes sure all required fields (`PROTOBUF_C_LABEL_REQUIRED`) are present. - * Recursively checks nested messages. - * - * \retval TRUE - * Message is valid. - * \retval FALSE - * Message is invalid. - */ -PROTOBUF_C__API -protobuf_c_boolean -protobuf_c_message_check(const ProtobufCMessage *); - -/** Message initialiser. */ -#define PROTOBUF_C_MESSAGE_INIT(descriptor) { descriptor, 0, NULL } - -/** - * Initialise a message object from a message descriptor. - * - * \param descriptor - * Message descriptor. - * \param message - * Allocated block of memory of size `descriptor->sizeof_message`. - */ -PROTOBUF_C__API -void -protobuf_c_message_init( - const ProtobufCMessageDescriptor *descriptor, - void *message); - -/** - * Free a service. - * - * \param service - * The service object to free. - */ -PROTOBUF_C__API -void -protobuf_c_service_destroy(ProtobufCService *service); - -/** - * Look up a `ProtobufCMethodDescriptor` by name. - * - * \param desc - * Service descriptor. - * \param name - * Name of the method. - * - * \return - * A `ProtobufCMethodDescriptor` object. - * \retval NULL - * If not found or if the optimize_for = CODE_SIZE option was set. - */ -PROTOBUF_C__API -const ProtobufCMethodDescriptor * -protobuf_c_service_descriptor_get_method_by_name( - const ProtobufCServiceDescriptor *desc, - const char *name); - -/** - * Initialise a `ProtobufCBufferSimple` object. - */ -#define PROTOBUF_C_BUFFER_SIMPLE_INIT(array_of_bytes) \ -{ \ - { protobuf_c_buffer_simple_append }, \ - sizeof(array_of_bytes), \ - 0, \ - (array_of_bytes), \ - 0, \ - NULL \ -} - -/** - * Clear a `ProtobufCBufferSimple` object, freeing any allocated memory. - */ -#define PROTOBUF_C_BUFFER_SIMPLE_CLEAR(simp_buf) \ -do { \ - if ((simp_buf)->must_free_data) { \ - if ((simp_buf)->allocator != NULL) \ - (simp_buf)->allocator->free( \ - (simp_buf)->allocator, \ - (simp_buf)->data); \ - else \ - free((simp_buf)->data); \ - } \ -} while (0) - -/** - * The `append` method for `ProtobufCBufferSimple`. - * - * \param buffer - * The buffer object to append to. Must actually be a - * `ProtobufCBufferSimple` object. - * \param len - * Number of bytes in `data`. - * \param data - * Data to append. - */ -PROTOBUF_C__API -void -protobuf_c_buffer_simple_append( - ProtobufCBuffer *buffer, - size_t len, - const unsigned char *data); - -PROTOBUF_C__API -void -protobuf_c_service_generated_init( - ProtobufCService *service, - const ProtobufCServiceDescriptor *descriptor, - ProtobufCServiceDestroy destroy); - -PROTOBUF_C__API -void -protobuf_c_service_invoke_internal( - ProtobufCService *service, - unsigned method_index, - const ProtobufCMessage *input, - ProtobufCClosure closure, - void *closure_data); - -/**@}*/ - -PROTOBUF_C__END_DECLS - -#endif /* PROTOBUF_C_H */ \ No newline at end of file diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/protobuf-c/protobuf-c.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/protobuf-c/protobuf-c.h deleted file mode 100644 index 5df7e9b8a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/protobuf-c/protobuf-c.h +++ /dev/null @@ -1,1110 +0,0 @@ -/* - * Copyright (c) 2008-2018, Dave Benson and the protobuf-c authors. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/*! \file - * \mainpage Introduction - * - * This is [protobuf-c], a C implementation of [Protocol Buffers]. - * - * This file defines the public API for the `libprotobuf-c` support library. - * This API includes interfaces that can be used directly by client code as well - * as the interfaces used by the code generated by the `protoc-c` compiler. - * - * The `libprotobuf-c` support library performs the actual serialization and - * deserialization of Protocol Buffers messages. It interacts with structures, - * definitions, and metadata generated by the `protoc-c` compiler from .proto - * files. - * - * \authors Dave Benson and the `protobuf-c` authors. - * - * \copyright 2008-2014. Licensed under the terms of the [BSD-2-Clause] license. - * - * [protobuf-c]: https://github.com/protobuf-c/protobuf-c - * [Protocol Buffers]: https://developers.google.com/protocol-buffers/ - * [BSD-2-Clause]: http://opensource.org/licenses/BSD-2-Clause - * - * \page gencode Generated Code - * - * For each enum, we generate a C enum. For each message, we generate a C - * structure which can be cast to a `ProtobufCMessage`. - * - * For each enum and message, we generate a descriptor object that allows us to - * implement a kind of reflection on the structures. - * - * First, some naming conventions: - * - * - The name of the type for enums and messages and services is camel case - * (meaning WordsAreCrammedTogether) except that double underscores are used - * to delimit scopes. For example, the following `.proto` file: - * -~~~{.proto} - package foo.bar; - message BazBah { - optional int32 val = 1; - } -~~~ - * - * would generate a C type `Foo__Bar__BazBah`. - * - * - Identifiers for functions and globals are all lowercase, with camel case - * words separated by single underscores. For example, one of the function - * prototypes generated by `protoc-c` for the above example: - * -~~~{.c} -Foo__Bar__BazBah * - foo__bar__baz_bah__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -~~~ - * - * - Identifiers for enum values contain an uppercase prefix which embeds the - * package name and the enum type name. - * - * - A double underscore is used to separate further components of identifier - * names. - * - * For example, in the name of the unpack function above, the package name - * `foo.bar` has become `foo__bar`, the message name BazBah has become - * `baz_bah`, and the method name is `unpack`. These are all joined with double - * underscores to form the C identifier `foo__bar__baz_bah__unpack`. - * - * We also generate descriptor objects for messages and enums. These are - * declared in the `.pb-c.h` files: - * -~~~{.c} -extern const ProtobufCMessageDescriptor foo__bar__baz_bah__descriptor; -~~~ - * - * The message structures all begin with `ProtobufCMessageDescriptor *` which is - * sufficient to allow them to be cast to `ProtobufCMessage`. - * - * For each message defined in a `.proto` file, we generate a number of - * functions and macros. Each function name contains a prefix based on the - * package name and message name in order to make it a unique C identifier. - * - * - `INIT`. Statically initializes a message object, initializing its - * descriptor and setting its fields to default values. Uninitialized - * messages cannot be processed by the protobuf-c library. - * -~~~{.c} -#define FOO__BAR__BAZ_BAH__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&foo__bar__baz_bah__descriptor), 0 } -~~~ - * - `init()`. Initializes a message object, initializing its descriptor and - * setting its fields to default values. Uninitialized messages cannot be - * processed by the protobuf-c library. - * -~~~{.c} -void foo__bar__baz_bah__init - (Foo__Bar__BazBah *message); -~~~ - * - `unpack()`. Unpacks data for a particular message format. Note that the - * `allocator` parameter is usually `NULL` to indicate that the system's - * `malloc()` and `free()` functions should be used for dynamically allocating - * memory. - * -~~~{.c} -Foo__Bar__BazBah * - foo__bar__baz_bah__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -~~~ - * - * - `free_unpacked()`. Frees a message object obtained with the `unpack()` - * method. Freeing `NULL` is allowed (the same as with `free()`). - * -~~~{.c} -void foo__bar__baz_bah__free_unpacked - (Foo__Bar__BazBah *message, - ProtobufCAllocator *allocator); -~~~ - * - * - `get_packed_size()`. Calculates the length in bytes of the serialized - * representation of the message object. - * -~~~{.c} -size_t foo__bar__baz_bah__get_packed_size - (const Foo__Bar__BazBah *message); -~~~ - * - * - `pack()`. Pack a message object into a preallocated buffer. Assumes that - * the buffer is large enough. (Use `get_packed_size()` first.) - * -~~~{.c} -size_t foo__bar__baz_bah__pack - (const Foo__Bar__BazBah *message, - uint8_t *out); -~~~ - * - * - `pack_to_buffer()`. Packs a message into a "virtual buffer". This is an - * object which defines an "append bytes" callback to consume data as it is - * serialized. - * -~~~{.c} -size_t foo__bar__baz_bah__pack_to_buffer - (const Foo__Bar__BazBah *message, - ProtobufCBuffer *buffer); -~~~ - * - * \page pack Packing and unpacking messages - * - * To pack a message, first compute the packed size of the message with - * protobuf_c_message_get_packed_size(), then allocate a buffer of at least - * that size, then call protobuf_c_message_pack(). - * - * Alternatively, a message can be serialized without calculating the final size - * first. Use the protobuf_c_message_pack_to_buffer() function and provide a - * ProtobufCBuffer object which implements an "append" method that consumes - * data. - * - * To unpack a message, call the protobuf_c_message_unpack() function. The - * result can be cast to an object of the type that matches the descriptor for - * the message. - * - * The result of unpacking a message should be freed with - * protobuf_c_message_free_unpacked(). - */ - -#ifndef PROTOBUF_C_H -#define PROTOBUF_C_H - -#include -#include -#include -#include - -#ifdef __cplusplus -# define PROTOBUF_C__BEGIN_DECLS extern "C" { -# define PROTOBUF_C__END_DECLS } -#else -# define PROTOBUF_C__BEGIN_DECLS -# define PROTOBUF_C__END_DECLS -#endif - -PROTOBUF_C__BEGIN_DECLS - -#if defined(_WIN32) && defined(PROTOBUF_C_USE_SHARED_LIB) -# ifdef PROTOBUF_C_EXPORT -# define PROTOBUF_C__API __declspec(dllexport) -# else -# define PROTOBUF_C__API __declspec(dllimport) -# endif -#else -# define PROTOBUF_C__API -#endif - -#if !defined(PROTOBUF_C__NO_DEPRECATED) && \ - ((__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)) -# define PROTOBUF_C__DEPRECATED __attribute__((__deprecated__)) -#else -# define PROTOBUF_C__DEPRECATED -#endif - -#ifndef PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE - #define PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(enum_name) \ - , _##enum_name##_IS_INT_SIZE = INT_MAX -#endif - -#define PROTOBUF_C__SERVICE_DESCRIPTOR_MAGIC 0x14159bc3 -#define PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC 0x28aaeef9 -#define PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC 0x114315af - -/* Empty string used for initializers */ -#if defined(_WIN32) && defined(PROTOBUF_C_USE_SHARED_LIB) -static const char protobuf_c_empty_string[] = ""; -#else -extern const char protobuf_c_empty_string[]; -#endif - -/** - * \defgroup api Public API - * - * This is the public API for `libprotobuf-c`. These interfaces are stable and - * subject to Semantic Versioning guarantees. - * - * @{ - */ - -/** - * Values for the `flags` word in `ProtobufCFieldDescriptor`. - */ -typedef enum { - /** Set if the field is repeated and marked with the `packed` option. */ - PROTOBUF_C_FIELD_FLAG_PACKED = (1 << 0), - - /** Set if the field is marked with the `deprecated` option. */ - PROTOBUF_C_FIELD_FLAG_DEPRECATED = (1 << 1), - - /** Set if the field is a member of a oneof (union). */ - PROTOBUF_C_FIELD_FLAG_ONEOF = (1 << 2), -} ProtobufCFieldFlag; - -/** - * Message field rules. - * - * \see [Defining A Message Type] in the Protocol Buffers documentation. - * - * [Defining A Message Type]: - * https://developers.google.com/protocol-buffers/docs/proto#simple - */ -typedef enum { - /** A well-formed message must have exactly one of this field. */ - PROTOBUF_C_LABEL_REQUIRED, - - /** - * A well-formed message can have zero or one of this field (but not - * more than one). - */ - PROTOBUF_C_LABEL_OPTIONAL, - - /** - * This field can be repeated any number of times (including zero) in a - * well-formed message. The order of the repeated values will be - * preserved. - */ - PROTOBUF_C_LABEL_REPEATED, - - /** - * This field has no label. This is valid only in proto3 and is - * equivalent to OPTIONAL but no "has" quantifier will be consulted. - */ - PROTOBUF_C_LABEL_NONE, -} ProtobufCLabel; - -/** - * Field value types. - * - * \see [Scalar Value Types] in the Protocol Buffers documentation. - * - * [Scalar Value Types]: - * https://developers.google.com/protocol-buffers/docs/proto#scalar - */ -typedef enum { - PROTOBUF_C_TYPE_INT32, /**< int32 */ - PROTOBUF_C_TYPE_SINT32, /**< signed int32 */ - PROTOBUF_C_TYPE_SFIXED32, /**< signed int32 (4 bytes) */ - PROTOBUF_C_TYPE_INT64, /**< int64 */ - PROTOBUF_C_TYPE_SINT64, /**< signed int64 */ - PROTOBUF_C_TYPE_SFIXED64, /**< signed int64 (8 bytes) */ - PROTOBUF_C_TYPE_UINT32, /**< unsigned int32 */ - PROTOBUF_C_TYPE_FIXED32, /**< unsigned int32 (4 bytes) */ - PROTOBUF_C_TYPE_UINT64, /**< unsigned int64 */ - PROTOBUF_C_TYPE_FIXED64, /**< unsigned int64 (8 bytes) */ - PROTOBUF_C_TYPE_FLOAT, /**< float */ - PROTOBUF_C_TYPE_DOUBLE, /**< double */ - PROTOBUF_C_TYPE_BOOL, /**< boolean */ - PROTOBUF_C_TYPE_ENUM, /**< enumerated type */ - PROTOBUF_C_TYPE_STRING, /**< UTF-8 or ASCII string */ - PROTOBUF_C_TYPE_BYTES, /**< arbitrary byte sequence */ - PROTOBUF_C_TYPE_MESSAGE, /**< nested message */ -} ProtobufCType; - -/** - * Field wire types. - * - * \see [Message Structure] in the Protocol Buffers documentation. - * - * [Message Structure]: - * https://developers.google.com/protocol-buffers/docs/encoding#structure - */ -typedef enum { - PROTOBUF_C_WIRE_TYPE_VARINT = 0, - PROTOBUF_C_WIRE_TYPE_64BIT = 1, - PROTOBUF_C_WIRE_TYPE_LENGTH_PREFIXED = 2, - /* "Start group" and "end group" wire types are unsupported. */ - PROTOBUF_C_WIRE_TYPE_32BIT = 5, -} ProtobufCWireType; - -struct ProtobufCAllocator; -struct ProtobufCBinaryData; -struct ProtobufCBuffer; -struct ProtobufCBufferSimple; -struct ProtobufCEnumDescriptor; -struct ProtobufCEnumValue; -struct ProtobufCEnumValueIndex; -struct ProtobufCFieldDescriptor; -struct ProtobufCIntRange; -struct ProtobufCMessage; -struct ProtobufCMessageDescriptor; -struct ProtobufCMessageUnknownField; -struct ProtobufCMethodDescriptor; -struct ProtobufCService; -struct ProtobufCServiceDescriptor; - -typedef struct ProtobufCAllocator ProtobufCAllocator; -typedef struct ProtobufCBinaryData ProtobufCBinaryData; -typedef struct ProtobufCBuffer ProtobufCBuffer; -typedef struct ProtobufCBufferSimple ProtobufCBufferSimple; -typedef struct ProtobufCEnumDescriptor ProtobufCEnumDescriptor; -typedef struct ProtobufCEnumValue ProtobufCEnumValue; -typedef struct ProtobufCEnumValueIndex ProtobufCEnumValueIndex; -typedef struct ProtobufCFieldDescriptor ProtobufCFieldDescriptor; -typedef struct ProtobufCIntRange ProtobufCIntRange; -typedef struct ProtobufCMessage ProtobufCMessage; -typedef struct ProtobufCMessageDescriptor ProtobufCMessageDescriptor; -typedef struct ProtobufCMessageUnknownField ProtobufCMessageUnknownField; -typedef struct ProtobufCMethodDescriptor ProtobufCMethodDescriptor; -typedef struct ProtobufCService ProtobufCService; -typedef struct ProtobufCServiceDescriptor ProtobufCServiceDescriptor; - -/** Boolean type. */ -typedef int protobuf_c_boolean; - -typedef void (*ProtobufCClosure)(const ProtobufCMessage *, void *closure_data); -typedef void (*ProtobufCMessageInit)(ProtobufCMessage *); -typedef void (*ProtobufCServiceDestroy)(ProtobufCService *); - -/** - * Structure for defining a custom memory allocator. - */ -struct ProtobufCAllocator { - /** Function to allocate memory. */ - void *(*alloc)(void *allocator_data, size_t size); - - /** Function to free memory. */ - void (*free)(void *allocator_data, void *pointer); - - /** Opaque pointer passed to `alloc` and `free` functions. */ - void *allocator_data; -}; - -/** - * Structure for the protobuf `bytes` scalar type. - * - * The data contained in a `ProtobufCBinaryData` is an arbitrary sequence of - * bytes. It may contain embedded `NUL` characters and is not required to be - * `NUL`-terminated. - */ -struct ProtobufCBinaryData { - size_t len; /**< Number of bytes in the `data` field. */ - uint8_t *data; /**< Data bytes. */ -}; - -/** - * Structure for defining a virtual append-only buffer. Used by - * protobuf_c_message_pack_to_buffer() to abstract the consumption of serialized - * bytes. - * - * `ProtobufCBuffer` "subclasses" may be defined on the stack. For example, to - * write to a `FILE` object: - * -~~~{.c} -typedef struct { - ProtobufCBuffer base; - FILE *fp; -} BufferAppendToFile; - -static void -my_buffer_file_append(ProtobufCBuffer *buffer, - size_t len, - const uint8_t *data) -{ - BufferAppendToFile *file_buf = (BufferAppendToFile *) buffer; - fwrite(data, len, 1, file_buf->fp); // XXX: No error handling! -} -~~~ - * - * To use this new type of ProtobufCBuffer, it could be called as follows: - * -~~~{.c} -... -BufferAppendToFile tmp = {0}; -tmp.base.append = my_buffer_file_append; -tmp.fp = fp; -protobuf_c_message_pack_to_buffer(&message, &tmp); -... -~~~ - */ -struct ProtobufCBuffer { - /** Append function. Consumes the `len` bytes stored at `data`. */ - void (*append)(ProtobufCBuffer *buffer, - size_t len, - const uint8_t *data); -}; - -/** - * Simple buffer "subclass" of `ProtobufCBuffer`. - * - * A `ProtobufCBufferSimple` object is declared on the stack and uses a - * scratch buffer provided by the user for the initial allocation. It performs - * exponential resizing, using dynamically allocated memory. A - * `ProtobufCBufferSimple` object can be created and used as follows: - * -~~~{.c} -uint8_t pad[128]; -ProtobufCBufferSimple simple = PROTOBUF_C_BUFFER_SIMPLE_INIT(pad); -ProtobufCBuffer *buffer = (ProtobufCBuffer *) &simple; -~~~ - * - * `buffer` can now be used with `protobuf_c_message_pack_to_buffer()`. Once a - * message has been serialized to a `ProtobufCBufferSimple` object, the - * serialized data bytes can be accessed from the `.data` field. - * - * To free the memory allocated by a `ProtobufCBufferSimple` object, if any, - * call PROTOBUF_C_BUFFER_SIMPLE_CLEAR() on the object, for example: - * -~~~{.c} -PROTOBUF_C_BUFFER_SIMPLE_CLEAR(&simple); -~~~ - * - * \see PROTOBUF_C_BUFFER_SIMPLE_INIT - * \see PROTOBUF_C_BUFFER_SIMPLE_CLEAR - */ -struct ProtobufCBufferSimple { - /** "Base class". */ - ProtobufCBuffer base; - /** Number of bytes allocated in `data`. */ - size_t alloced; - /** Number of bytes currently stored in `data`. */ - size_t len; - /** Data bytes. */ - uint8_t *data; - /** Whether `data` must be freed. */ - protobuf_c_boolean must_free_data; - /** Allocator to use. May be NULL to indicate the system allocator. */ - ProtobufCAllocator *allocator; -}; - -/** - * Describes an enumeration as a whole, with all of its values. - */ -struct ProtobufCEnumDescriptor { - /** Magic value checked to ensure that the API is used correctly. */ - uint32_t magic; - - /** The qualified name (e.g., "namespace.Type"). */ - const char *name; - /** The unqualified name as given in the .proto file (e.g., "Type"). */ - const char *short_name; - /** Identifier used in generated C code. */ - const char *c_name; - /** The dot-separated namespace. */ - const char *package_name; - - /** Number elements in `values`. */ - unsigned n_values; - /** Array of distinct values, sorted by numeric value. */ - const ProtobufCEnumValue *values; - - /** Number of elements in `values_by_name`. */ - unsigned n_value_names; - /** Array of named values, including aliases, sorted by name. */ - const ProtobufCEnumValueIndex *values_by_name; - - /** Number of elements in `value_ranges`. */ - unsigned n_value_ranges; - /** Value ranges, for faster lookups by numeric value. */ - const ProtobufCIntRange *value_ranges; - - /** Reserved for future use. */ - void *reserved1; - /** Reserved for future use. */ - void *reserved2; - /** Reserved for future use. */ - void *reserved3; - /** Reserved for future use. */ - void *reserved4; -}; - -/** - * Represents a single value of an enumeration. - */ -struct ProtobufCEnumValue { - /** The string identifying this value in the .proto file. */ - const char *name; - - /** The string identifying this value in generated C code. */ - const char *c_name; - - /** The numeric value assigned in the .proto file. */ - int value; -}; - -/** - * Used by `ProtobufCEnumDescriptor` to look up enum values. - */ -struct ProtobufCEnumValueIndex { - /** Name of the enum value. */ - const char *name; - /** Index into values[] array. */ - unsigned index; -}; - -/** - * Describes a single field in a message. - */ -struct ProtobufCFieldDescriptor { - /** Name of the field as given in the .proto file. */ - const char *name; - - /** Tag value of the field as given in the .proto file. */ - uint32_t id; - - /** Whether the field is `REQUIRED`, `OPTIONAL`, or `REPEATED`. */ - ProtobufCLabel label; - - /** The type of the field. */ - ProtobufCType type; - - /** - * The offset in bytes of the message's C structure's quantifier field - * (the `has_MEMBER` field for optional members or the `n_MEMBER` field - * for repeated members or the case enum for oneofs). - */ - unsigned quantifier_offset; - - /** - * The offset in bytes into the message's C structure for the member - * itself. - */ - unsigned offset; - - /** - * A type-specific descriptor. - * - * If `type` is `PROTOBUF_C_TYPE_ENUM`, then `descriptor` points to the - * corresponding `ProtobufCEnumDescriptor`. - * - * If `type` is `PROTOBUF_C_TYPE_MESSAGE`, then `descriptor` points to - * the corresponding `ProtobufCMessageDescriptor`. - * - * Otherwise this field is NULL. - */ - const void *descriptor; /* for MESSAGE and ENUM types */ - - /** The default value for this field, if defined. May be NULL. */ - const void *default_value; - - /** - * A flag word. Zero or more of the bits defined in the - * `ProtobufCFieldFlag` enum may be set. - */ - uint32_t flags; - - /** Reserved for future use. */ - unsigned reserved_flags; - /** Reserved for future use. */ - void *reserved2; - /** Reserved for future use. */ - void *reserved3; -}; - -/** - * Helper structure for optimizing int => index lookups in the case - * where the keys are mostly consecutive values, as they presumably are for - * enums and fields. - * - * The data structures requires that the values in the original array are - * sorted. - */ -struct ProtobufCIntRange { - int start_value; - unsigned orig_index; - /* - * NOTE: the number of values in the range can be inferred by looking - * at the next element's orig_index. A dummy element is added to make - * this simple. - */ -}; - -/** - * An instance of a message. - * - * `ProtobufCMessage` is a light-weight "base class" for all messages. - * - * In particular, `ProtobufCMessage` doesn't have any allocation policy - * associated with it. That's because it's common to create `ProtobufCMessage` - * objects on the stack. In fact, that's what we recommend for sending messages. - * If the object is allocated from the stack, you can't really have a memory - * leak. - * - * This means that calls to functions like protobuf_c_message_unpack() which - * return a `ProtobufCMessage` must be paired with a call to a free function, - * like protobuf_c_message_free_unpacked(). - */ -struct ProtobufCMessage { - /** The descriptor for this message type. */ - const ProtobufCMessageDescriptor *descriptor; - /** The number of elements in `unknown_fields`. */ - unsigned n_unknown_fields; - /** The fields that weren't recognized by the parser. */ - ProtobufCMessageUnknownField *unknown_fields; -}; - -/** - * Describes a message. - */ -struct ProtobufCMessageDescriptor { - /** Magic value checked to ensure that the API is used correctly. */ - uint32_t magic; - - /** The qualified name (e.g., "namespace.Type"). */ - const char *name; - /** The unqualified name as given in the .proto file (e.g., "Type"). */ - const char *short_name; - /** Identifier used in generated C code. */ - const char *c_name; - /** The dot-separated namespace. */ - const char *package_name; - - /** - * Size in bytes of the C structure representing an instance of this - * type of message. - */ - size_t sizeof_message; - - /** Number of elements in `fields`. */ - unsigned n_fields; - /** Field descriptors, sorted by tag number. */ - const ProtobufCFieldDescriptor *fields; - /** Used for looking up fields by name. */ - const unsigned *fields_sorted_by_name; - - /** Number of elements in `field_ranges`. */ - unsigned n_field_ranges; - /** Used for looking up fields by id. */ - const ProtobufCIntRange *field_ranges; - - /** Message initialisation function. */ - ProtobufCMessageInit message_init; - - /** Reserved for future use. */ - void *reserved1; - /** Reserved for future use. */ - void *reserved2; - /** Reserved for future use. */ - void *reserved3; -}; - -/** - * An unknown message field. - */ -struct ProtobufCMessageUnknownField { - /** The tag number. */ - uint32_t tag; - /** The wire type of the field. */ - ProtobufCWireType wire_type; - /** Number of bytes in `data`. */ - size_t len; - /** Field data. */ - uint8_t *data; -}; - -/** - * Method descriptor. - */ -struct ProtobufCMethodDescriptor { - /** Method name. */ - const char *name; - /** Input message descriptor. */ - const ProtobufCMessageDescriptor *input; - /** Output message descriptor. */ - const ProtobufCMessageDescriptor *output; -}; - -/** - * Service. - */ -struct ProtobufCService { - /** Service descriptor. */ - const ProtobufCServiceDescriptor *descriptor; - /** Function to invoke the service. */ - void (*invoke)(ProtobufCService *service, - unsigned method_index, - const ProtobufCMessage *input, - ProtobufCClosure closure, - void *closure_data); - /** Function to destroy the service. */ - void (*destroy)(ProtobufCService *service); -}; - -/** - * Service descriptor. - */ -struct ProtobufCServiceDescriptor { - /** Magic value checked to ensure that the API is used correctly. */ - uint32_t magic; - - /** Service name. */ - const char *name; - /** Short version of service name. */ - const char *short_name; - /** C identifier for the service name. */ - const char *c_name; - /** Package name. */ - const char *package; - /** Number of elements in `methods`. */ - unsigned n_methods; - /** Method descriptors, in the order defined in the .proto file. */ - const ProtobufCMethodDescriptor *methods; - /** Sort index of methods. */ - const unsigned *method_indices_by_name; -}; - -/** - * Get the version of the protobuf-c library. Note that this is the version of - * the library linked against, not the version of the headers compiled against. - * - * \return A string containing the version number of protobuf-c. - */ -PROTOBUF_C__API -const char * -protobuf_c_version(void); - -/** - * Get the version of the protobuf-c library. Note that this is the version of - * the library linked against, not the version of the headers compiled against. - * - * \return A 32 bit unsigned integer containing the version number of - * protobuf-c, represented in base-10 as (MAJOR*1E6) + (MINOR*1E3) + PATCH. - */ -PROTOBUF_C__API -uint32_t -protobuf_c_version_number(void); - -/** - * The version of the protobuf-c headers, represented as a string using the same - * format as protobuf_c_version(). - */ -#define PROTOBUF_C_VERSION "1.4.0" - -/** - * The version of the protobuf-c headers, represented as an integer using the - * same format as protobuf_c_version_number(). - */ -#define PROTOBUF_C_VERSION_NUMBER 1004000 - -/** - * The minimum protoc-c version which works with the current version of the - * protobuf-c headers. - */ -#define PROTOBUF_C_MIN_COMPILER_VERSION 1000000 - -/** - * Look up a `ProtobufCEnumValue` from a `ProtobufCEnumDescriptor` by name. - * - * \param desc - * The `ProtobufCEnumDescriptor` object. - * \param name - * The `name` field from the corresponding `ProtobufCEnumValue` object to - * match. - * \return - * A `ProtobufCEnumValue` object. - * \retval NULL - * If not found or if the optimize_for = CODE_SIZE option was set. - */ -PROTOBUF_C__API -const ProtobufCEnumValue * -protobuf_c_enum_descriptor_get_value_by_name( - const ProtobufCEnumDescriptor *desc, - const char *name); - -/** - * Look up a `ProtobufCEnumValue` from a `ProtobufCEnumDescriptor` by numeric - * value. - * - * \param desc - * The `ProtobufCEnumDescriptor` object. - * \param value - * The `value` field from the corresponding `ProtobufCEnumValue` object to - * match. - * - * \return - * A `ProtobufCEnumValue` object. - * \retval NULL - * If not found. - */ -PROTOBUF_C__API -const ProtobufCEnumValue * -protobuf_c_enum_descriptor_get_value( - const ProtobufCEnumDescriptor *desc, - int value); - -/** - * Look up a `ProtobufCFieldDescriptor` from a `ProtobufCMessageDescriptor` by - * the name of the field. - * - * \param desc - * The `ProtobufCMessageDescriptor` object. - * \param name - * The name of the field. - * \return - * A `ProtobufCFieldDescriptor` object. - * \retval NULL - * If not found or if the optimize_for = CODE_SIZE option was set. - */ -PROTOBUF_C__API -const ProtobufCFieldDescriptor * -protobuf_c_message_descriptor_get_field_by_name( - const ProtobufCMessageDescriptor *desc, - const char *name); - -/** - * Look up a `ProtobufCFieldDescriptor` from a `ProtobufCMessageDescriptor` by - * the tag value of the field. - * - * \param desc - * The `ProtobufCMessageDescriptor` object. - * \param value - * The tag value of the field. - * \return - * A `ProtobufCFieldDescriptor` object. - * \retval NULL - * If not found. - */ -PROTOBUF_C__API -const ProtobufCFieldDescriptor * -protobuf_c_message_descriptor_get_field( - const ProtobufCMessageDescriptor *desc, - unsigned value); - -/** - * Determine the number of bytes required to store the serialised message. - * - * \param message - * The message object to serialise. - * \return - * Number of bytes. - */ -PROTOBUF_C__API -size_t -protobuf_c_message_get_packed_size(const ProtobufCMessage *message); - -/** - * Serialise a message from its in-memory representation. - * - * This function stores the serialised bytes of the message in a pre-allocated - * buffer. - * - * \param message - * The message object to serialise. - * \param[out] out - * Buffer to store the bytes of the serialised message. This buffer must - * have enough space to store the packed message. Use - * protobuf_c_message_get_packed_size() to determine the number of bytes - * required. - * \return - * Number of bytes stored in `out`. - */ -PROTOBUF_C__API -size_t -protobuf_c_message_pack(const ProtobufCMessage *message, uint8_t *out); - -/** - * Serialise a message from its in-memory representation to a virtual buffer. - * - * This function calls the `append` method of a `ProtobufCBuffer` object to - * consume the bytes generated by the serialiser. - * - * \param message - * The message object to serialise. - * \param buffer - * The virtual buffer object. - * \return - * Number of bytes passed to the virtual buffer. - */ -PROTOBUF_C__API -size_t -protobuf_c_message_pack_to_buffer( - const ProtobufCMessage *message, - ProtobufCBuffer *buffer); - -/** - * Unpack a serialised message into an in-memory representation. - * - * \param descriptor - * The message descriptor. - * \param allocator - * `ProtobufCAllocator` to use for memory allocation. May be NULL to - * specify the default allocator. - * \param len - * Length in bytes of the serialised message. - * \param data - * Pointer to the serialised message. - * \return - * An unpacked message object. - * \retval NULL - * If an error occurred during unpacking. - */ -PROTOBUF_C__API -ProtobufCMessage * -protobuf_c_message_unpack( - const ProtobufCMessageDescriptor *descriptor, - ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); - -/** - * Free an unpacked message object. - * - * This function should be used to deallocate the memory used by a call to - * protobuf_c_message_unpack(). - * - * \param message - * The message object to free. May be NULL. - * \param allocator - * `ProtobufCAllocator` to use for memory deallocation. May be NULL to - * specify the default allocator. - */ -PROTOBUF_C__API -void -protobuf_c_message_free_unpacked( - ProtobufCMessage *message, - ProtobufCAllocator *allocator); - -/** - * Check the validity of a message object. - * - * Makes sure all required fields (`PROTOBUF_C_LABEL_REQUIRED`) are present. - * Recursively checks nested messages. - * - * \retval TRUE - * Message is valid. - * \retval FALSE - * Message is invalid. - */ -PROTOBUF_C__API -protobuf_c_boolean -protobuf_c_message_check(const ProtobufCMessage *); - -/** Message initialiser. */ -#define PROTOBUF_C_MESSAGE_INIT(descriptor) { descriptor, 0, NULL } - -/** - * Initialise a message object from a message descriptor. - * - * \param descriptor - * Message descriptor. - * \param message - * Allocated block of memory of size `descriptor->sizeof_message`. - */ -PROTOBUF_C__API -void -protobuf_c_message_init( - const ProtobufCMessageDescriptor *descriptor, - void *message); - -/** - * Free a service. - * - * \param service - * The service object to free. - */ -PROTOBUF_C__API -void -protobuf_c_service_destroy(ProtobufCService *service); - -/** - * Look up a `ProtobufCMethodDescriptor` by name. - * - * \param desc - * Service descriptor. - * \param name - * Name of the method. - * - * \return - * A `ProtobufCMethodDescriptor` object. - * \retval NULL - * If not found or if the optimize_for = CODE_SIZE option was set. - */ -PROTOBUF_C__API -const ProtobufCMethodDescriptor * -protobuf_c_service_descriptor_get_method_by_name( - const ProtobufCServiceDescriptor *desc, - const char *name); - -/** - * Initialise a `ProtobufCBufferSimple` object. - */ -#define PROTOBUF_C_BUFFER_SIMPLE_INIT(array_of_bytes) \ -{ \ - { protobuf_c_buffer_simple_append }, \ - sizeof(array_of_bytes), \ - 0, \ - (array_of_bytes), \ - 0, \ - NULL \ -} - -/** - * Clear a `ProtobufCBufferSimple` object, freeing any allocated memory. - */ -#define PROTOBUF_C_BUFFER_SIMPLE_CLEAR(simp_buf) \ -do { \ - if ((simp_buf)->must_free_data) { \ - if ((simp_buf)->allocator != NULL) \ - (simp_buf)->allocator->free( \ - (simp_buf)->allocator, \ - (simp_buf)->data); \ - else \ - free((simp_buf)->data); \ - } \ -} while (0) - -/** - * The `append` method for `ProtobufCBufferSimple`. - * - * \param buffer - * The buffer object to append to. Must actually be a - * `ProtobufCBufferSimple` object. - * \param len - * Number of bytes in `data`. - * \param data - * Data to append. - */ -PROTOBUF_C__API -void -protobuf_c_buffer_simple_append( - ProtobufCBuffer *buffer, - size_t len, - const unsigned char *data); - -PROTOBUF_C__API -void -protobuf_c_service_generated_init( - ProtobufCService *service, - const ProtobufCServiceDescriptor *descriptor, - ProtobufCServiceDestroy destroy); - -PROTOBUF_C__API -void -protobuf_c_service_invoke_internal( - ProtobufCService *service, - unsigned method_index, - const ProtobufCMessage *input, - ProtobufCClosure closure, - void *closure_data); - -/**@}*/ - -PROTOBUF_C__END_DECLS - -#endif /* PROTOBUF_C_H */ \ No newline at end of file diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/protobuf/pg_query.pb-c.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/protobuf/pg_query.pb-c.h deleted file mode 100644 index 621776c3a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/protobuf/pg_query.pb-c.h +++ /dev/null @@ -1,11357 +0,0 @@ -/* Generated by the protocol buffer compiler. DO NOT EDIT! */ -/* Generated from: protobuf/pg_query.proto */ - -#ifndef PROTOBUF_C_protobuf_2fpg_5fquery_2eproto__INCLUDED -#define PROTOBUF_C_protobuf_2fpg_5fquery_2eproto__INCLUDED - -#include - -PROTOBUF_C__BEGIN_DECLS - -#if PROTOBUF_C_VERSION_NUMBER < 1003000 -# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. -#elif 1004001 < PROTOBUF_C_MIN_COMPILER_VERSION -# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. -#endif - - -typedef struct PgQuery__ParseResult PgQuery__ParseResult; -typedef struct PgQuery__ScanResult PgQuery__ScanResult; -typedef struct PgQuery__Node PgQuery__Node; -typedef struct PgQuery__Integer PgQuery__Integer; -typedef struct PgQuery__Float PgQuery__Float; -typedef struct PgQuery__Boolean PgQuery__Boolean; -typedef struct PgQuery__String PgQuery__String; -typedef struct PgQuery__BitString PgQuery__BitString; -typedef struct PgQuery__List PgQuery__List; -typedef struct PgQuery__OidList PgQuery__OidList; -typedef struct PgQuery__IntList PgQuery__IntList; -typedef struct PgQuery__AConst PgQuery__AConst; -typedef struct PgQuery__Alias PgQuery__Alias; -typedef struct PgQuery__RangeVar PgQuery__RangeVar; -typedef struct PgQuery__TableFunc PgQuery__TableFunc; -typedef struct PgQuery__Var PgQuery__Var; -typedef struct PgQuery__Param PgQuery__Param; -typedef struct PgQuery__Aggref PgQuery__Aggref; -typedef struct PgQuery__GroupingFunc PgQuery__GroupingFunc; -typedef struct PgQuery__WindowFunc PgQuery__WindowFunc; -typedef struct PgQuery__SubscriptingRef PgQuery__SubscriptingRef; -typedef struct PgQuery__FuncExpr PgQuery__FuncExpr; -typedef struct PgQuery__NamedArgExpr PgQuery__NamedArgExpr; -typedef struct PgQuery__OpExpr PgQuery__OpExpr; -typedef struct PgQuery__DistinctExpr PgQuery__DistinctExpr; -typedef struct PgQuery__NullIfExpr PgQuery__NullIfExpr; -typedef struct PgQuery__ScalarArrayOpExpr PgQuery__ScalarArrayOpExpr; -typedef struct PgQuery__BoolExpr PgQuery__BoolExpr; -typedef struct PgQuery__SubLink PgQuery__SubLink; -typedef struct PgQuery__SubPlan PgQuery__SubPlan; -typedef struct PgQuery__AlternativeSubPlan PgQuery__AlternativeSubPlan; -typedef struct PgQuery__FieldSelect PgQuery__FieldSelect; -typedef struct PgQuery__FieldStore PgQuery__FieldStore; -typedef struct PgQuery__RelabelType PgQuery__RelabelType; -typedef struct PgQuery__CoerceViaIO PgQuery__CoerceViaIO; -typedef struct PgQuery__ArrayCoerceExpr PgQuery__ArrayCoerceExpr; -typedef struct PgQuery__ConvertRowtypeExpr PgQuery__ConvertRowtypeExpr; -typedef struct PgQuery__CollateExpr PgQuery__CollateExpr; -typedef struct PgQuery__CaseExpr PgQuery__CaseExpr; -typedef struct PgQuery__CaseWhen PgQuery__CaseWhen; -typedef struct PgQuery__CaseTestExpr PgQuery__CaseTestExpr; -typedef struct PgQuery__ArrayExpr PgQuery__ArrayExpr; -typedef struct PgQuery__RowExpr PgQuery__RowExpr; -typedef struct PgQuery__RowCompareExpr PgQuery__RowCompareExpr; -typedef struct PgQuery__CoalesceExpr PgQuery__CoalesceExpr; -typedef struct PgQuery__MinMaxExpr PgQuery__MinMaxExpr; -typedef struct PgQuery__SQLValueFunction PgQuery__SQLValueFunction; -typedef struct PgQuery__XmlExpr PgQuery__XmlExpr; -typedef struct PgQuery__NullTest PgQuery__NullTest; -typedef struct PgQuery__BooleanTest PgQuery__BooleanTest; -typedef struct PgQuery__CoerceToDomain PgQuery__CoerceToDomain; -typedef struct PgQuery__CoerceToDomainValue PgQuery__CoerceToDomainValue; -typedef struct PgQuery__SetToDefault PgQuery__SetToDefault; -typedef struct PgQuery__CurrentOfExpr PgQuery__CurrentOfExpr; -typedef struct PgQuery__NextValueExpr PgQuery__NextValueExpr; -typedef struct PgQuery__InferenceElem PgQuery__InferenceElem; -typedef struct PgQuery__TargetEntry PgQuery__TargetEntry; -typedef struct PgQuery__RangeTblRef PgQuery__RangeTblRef; -typedef struct PgQuery__JoinExpr PgQuery__JoinExpr; -typedef struct PgQuery__FromExpr PgQuery__FromExpr; -typedef struct PgQuery__OnConflictExpr PgQuery__OnConflictExpr; -typedef struct PgQuery__IntoClause PgQuery__IntoClause; -typedef struct PgQuery__MergeAction PgQuery__MergeAction; -typedef struct PgQuery__RawStmt PgQuery__RawStmt; -typedef struct PgQuery__Query PgQuery__Query; -typedef struct PgQuery__InsertStmt PgQuery__InsertStmt; -typedef struct PgQuery__DeleteStmt PgQuery__DeleteStmt; -typedef struct PgQuery__UpdateStmt PgQuery__UpdateStmt; -typedef struct PgQuery__MergeStmt PgQuery__MergeStmt; -typedef struct PgQuery__SelectStmt PgQuery__SelectStmt; -typedef struct PgQuery__ReturnStmt PgQuery__ReturnStmt; -typedef struct PgQuery__PLAssignStmt PgQuery__PLAssignStmt; -typedef struct PgQuery__AlterTableStmt PgQuery__AlterTableStmt; -typedef struct PgQuery__AlterTableCmd PgQuery__AlterTableCmd; -typedef struct PgQuery__AlterDomainStmt PgQuery__AlterDomainStmt; -typedef struct PgQuery__SetOperationStmt PgQuery__SetOperationStmt; -typedef struct PgQuery__GrantStmt PgQuery__GrantStmt; -typedef struct PgQuery__GrantRoleStmt PgQuery__GrantRoleStmt; -typedef struct PgQuery__AlterDefaultPrivilegesStmt PgQuery__AlterDefaultPrivilegesStmt; -typedef struct PgQuery__ClosePortalStmt PgQuery__ClosePortalStmt; -typedef struct PgQuery__ClusterStmt PgQuery__ClusterStmt; -typedef struct PgQuery__CopyStmt PgQuery__CopyStmt; -typedef struct PgQuery__CreateStmt PgQuery__CreateStmt; -typedef struct PgQuery__DefineStmt PgQuery__DefineStmt; -typedef struct PgQuery__DropStmt PgQuery__DropStmt; -typedef struct PgQuery__TruncateStmt PgQuery__TruncateStmt; -typedef struct PgQuery__CommentStmt PgQuery__CommentStmt; -typedef struct PgQuery__FetchStmt PgQuery__FetchStmt; -typedef struct PgQuery__IndexStmt PgQuery__IndexStmt; -typedef struct PgQuery__CreateFunctionStmt PgQuery__CreateFunctionStmt; -typedef struct PgQuery__AlterFunctionStmt PgQuery__AlterFunctionStmt; -typedef struct PgQuery__DoStmt PgQuery__DoStmt; -typedef struct PgQuery__RenameStmt PgQuery__RenameStmt; -typedef struct PgQuery__RuleStmt PgQuery__RuleStmt; -typedef struct PgQuery__NotifyStmt PgQuery__NotifyStmt; -typedef struct PgQuery__ListenStmt PgQuery__ListenStmt; -typedef struct PgQuery__UnlistenStmt PgQuery__UnlistenStmt; -typedef struct PgQuery__TransactionStmt PgQuery__TransactionStmt; -typedef struct PgQuery__ViewStmt PgQuery__ViewStmt; -typedef struct PgQuery__LoadStmt PgQuery__LoadStmt; -typedef struct PgQuery__CreateDomainStmt PgQuery__CreateDomainStmt; -typedef struct PgQuery__CreatedbStmt PgQuery__CreatedbStmt; -typedef struct PgQuery__DropdbStmt PgQuery__DropdbStmt; -typedef struct PgQuery__VacuumStmt PgQuery__VacuumStmt; -typedef struct PgQuery__ExplainStmt PgQuery__ExplainStmt; -typedef struct PgQuery__CreateTableAsStmt PgQuery__CreateTableAsStmt; -typedef struct PgQuery__CreateSeqStmt PgQuery__CreateSeqStmt; -typedef struct PgQuery__AlterSeqStmt PgQuery__AlterSeqStmt; -typedef struct PgQuery__VariableSetStmt PgQuery__VariableSetStmt; -typedef struct PgQuery__VariableShowStmt PgQuery__VariableShowStmt; -typedef struct PgQuery__DiscardStmt PgQuery__DiscardStmt; -typedef struct PgQuery__CreateTrigStmt PgQuery__CreateTrigStmt; -typedef struct PgQuery__CreatePLangStmt PgQuery__CreatePLangStmt; -typedef struct PgQuery__CreateRoleStmt PgQuery__CreateRoleStmt; -typedef struct PgQuery__AlterRoleStmt PgQuery__AlterRoleStmt; -typedef struct PgQuery__DropRoleStmt PgQuery__DropRoleStmt; -typedef struct PgQuery__LockStmt PgQuery__LockStmt; -typedef struct PgQuery__ConstraintsSetStmt PgQuery__ConstraintsSetStmt; -typedef struct PgQuery__ReindexStmt PgQuery__ReindexStmt; -typedef struct PgQuery__CheckPointStmt PgQuery__CheckPointStmt; -typedef struct PgQuery__CreateSchemaStmt PgQuery__CreateSchemaStmt; -typedef struct PgQuery__AlterDatabaseStmt PgQuery__AlterDatabaseStmt; -typedef struct PgQuery__AlterDatabaseRefreshCollStmt PgQuery__AlterDatabaseRefreshCollStmt; -typedef struct PgQuery__AlterDatabaseSetStmt PgQuery__AlterDatabaseSetStmt; -typedef struct PgQuery__AlterRoleSetStmt PgQuery__AlterRoleSetStmt; -typedef struct PgQuery__CreateConversionStmt PgQuery__CreateConversionStmt; -typedef struct PgQuery__CreateCastStmt PgQuery__CreateCastStmt; -typedef struct PgQuery__CreateOpClassStmt PgQuery__CreateOpClassStmt; -typedef struct PgQuery__CreateOpFamilyStmt PgQuery__CreateOpFamilyStmt; -typedef struct PgQuery__AlterOpFamilyStmt PgQuery__AlterOpFamilyStmt; -typedef struct PgQuery__PrepareStmt PgQuery__PrepareStmt; -typedef struct PgQuery__ExecuteStmt PgQuery__ExecuteStmt; -typedef struct PgQuery__DeallocateStmt PgQuery__DeallocateStmt; -typedef struct PgQuery__DeclareCursorStmt PgQuery__DeclareCursorStmt; -typedef struct PgQuery__CreateTableSpaceStmt PgQuery__CreateTableSpaceStmt; -typedef struct PgQuery__DropTableSpaceStmt PgQuery__DropTableSpaceStmt; -typedef struct PgQuery__AlterObjectDependsStmt PgQuery__AlterObjectDependsStmt; -typedef struct PgQuery__AlterObjectSchemaStmt PgQuery__AlterObjectSchemaStmt; -typedef struct PgQuery__AlterOwnerStmt PgQuery__AlterOwnerStmt; -typedef struct PgQuery__AlterOperatorStmt PgQuery__AlterOperatorStmt; -typedef struct PgQuery__AlterTypeStmt PgQuery__AlterTypeStmt; -typedef struct PgQuery__DropOwnedStmt PgQuery__DropOwnedStmt; -typedef struct PgQuery__ReassignOwnedStmt PgQuery__ReassignOwnedStmt; -typedef struct PgQuery__CompositeTypeStmt PgQuery__CompositeTypeStmt; -typedef struct PgQuery__CreateEnumStmt PgQuery__CreateEnumStmt; -typedef struct PgQuery__CreateRangeStmt PgQuery__CreateRangeStmt; -typedef struct PgQuery__AlterEnumStmt PgQuery__AlterEnumStmt; -typedef struct PgQuery__AlterTSDictionaryStmt PgQuery__AlterTSDictionaryStmt; -typedef struct PgQuery__AlterTSConfigurationStmt PgQuery__AlterTSConfigurationStmt; -typedef struct PgQuery__CreateFdwStmt PgQuery__CreateFdwStmt; -typedef struct PgQuery__AlterFdwStmt PgQuery__AlterFdwStmt; -typedef struct PgQuery__CreateForeignServerStmt PgQuery__CreateForeignServerStmt; -typedef struct PgQuery__AlterForeignServerStmt PgQuery__AlterForeignServerStmt; -typedef struct PgQuery__CreateUserMappingStmt PgQuery__CreateUserMappingStmt; -typedef struct PgQuery__AlterUserMappingStmt PgQuery__AlterUserMappingStmt; -typedef struct PgQuery__DropUserMappingStmt PgQuery__DropUserMappingStmt; -typedef struct PgQuery__AlterTableSpaceOptionsStmt PgQuery__AlterTableSpaceOptionsStmt; -typedef struct PgQuery__AlterTableMoveAllStmt PgQuery__AlterTableMoveAllStmt; -typedef struct PgQuery__SecLabelStmt PgQuery__SecLabelStmt; -typedef struct PgQuery__CreateForeignTableStmt PgQuery__CreateForeignTableStmt; -typedef struct PgQuery__ImportForeignSchemaStmt PgQuery__ImportForeignSchemaStmt; -typedef struct PgQuery__CreateExtensionStmt PgQuery__CreateExtensionStmt; -typedef struct PgQuery__AlterExtensionStmt PgQuery__AlterExtensionStmt; -typedef struct PgQuery__AlterExtensionContentsStmt PgQuery__AlterExtensionContentsStmt; -typedef struct PgQuery__CreateEventTrigStmt PgQuery__CreateEventTrigStmt; -typedef struct PgQuery__AlterEventTrigStmt PgQuery__AlterEventTrigStmt; -typedef struct PgQuery__RefreshMatViewStmt PgQuery__RefreshMatViewStmt; -typedef struct PgQuery__ReplicaIdentityStmt PgQuery__ReplicaIdentityStmt; -typedef struct PgQuery__AlterSystemStmt PgQuery__AlterSystemStmt; -typedef struct PgQuery__CreatePolicyStmt PgQuery__CreatePolicyStmt; -typedef struct PgQuery__AlterPolicyStmt PgQuery__AlterPolicyStmt; -typedef struct PgQuery__CreateTransformStmt PgQuery__CreateTransformStmt; -typedef struct PgQuery__CreateAmStmt PgQuery__CreateAmStmt; -typedef struct PgQuery__CreatePublicationStmt PgQuery__CreatePublicationStmt; -typedef struct PgQuery__AlterPublicationStmt PgQuery__AlterPublicationStmt; -typedef struct PgQuery__CreateSubscriptionStmt PgQuery__CreateSubscriptionStmt; -typedef struct PgQuery__AlterSubscriptionStmt PgQuery__AlterSubscriptionStmt; -typedef struct PgQuery__DropSubscriptionStmt PgQuery__DropSubscriptionStmt; -typedef struct PgQuery__CreateStatsStmt PgQuery__CreateStatsStmt; -typedef struct PgQuery__AlterCollationStmt PgQuery__AlterCollationStmt; -typedef struct PgQuery__CallStmt PgQuery__CallStmt; -typedef struct PgQuery__AlterStatsStmt PgQuery__AlterStatsStmt; -typedef struct PgQuery__AExpr PgQuery__AExpr; -typedef struct PgQuery__ColumnRef PgQuery__ColumnRef; -typedef struct PgQuery__ParamRef PgQuery__ParamRef; -typedef struct PgQuery__FuncCall PgQuery__FuncCall; -typedef struct PgQuery__AStar PgQuery__AStar; -typedef struct PgQuery__AIndices PgQuery__AIndices; -typedef struct PgQuery__AIndirection PgQuery__AIndirection; -typedef struct PgQuery__AArrayExpr PgQuery__AArrayExpr; -typedef struct PgQuery__ResTarget PgQuery__ResTarget; -typedef struct PgQuery__MultiAssignRef PgQuery__MultiAssignRef; -typedef struct PgQuery__TypeCast PgQuery__TypeCast; -typedef struct PgQuery__CollateClause PgQuery__CollateClause; -typedef struct PgQuery__SortBy PgQuery__SortBy; -typedef struct PgQuery__WindowDef PgQuery__WindowDef; -typedef struct PgQuery__RangeSubselect PgQuery__RangeSubselect; -typedef struct PgQuery__RangeFunction PgQuery__RangeFunction; -typedef struct PgQuery__RangeTableSample PgQuery__RangeTableSample; -typedef struct PgQuery__RangeTableFunc PgQuery__RangeTableFunc; -typedef struct PgQuery__RangeTableFuncCol PgQuery__RangeTableFuncCol; -typedef struct PgQuery__TypeName PgQuery__TypeName; -typedef struct PgQuery__ColumnDef PgQuery__ColumnDef; -typedef struct PgQuery__IndexElem PgQuery__IndexElem; -typedef struct PgQuery__StatsElem PgQuery__StatsElem; -typedef struct PgQuery__Constraint PgQuery__Constraint; -typedef struct PgQuery__DefElem PgQuery__DefElem; -typedef struct PgQuery__RangeTblEntry PgQuery__RangeTblEntry; -typedef struct PgQuery__RangeTblFunction PgQuery__RangeTblFunction; -typedef struct PgQuery__TableSampleClause PgQuery__TableSampleClause; -typedef struct PgQuery__WithCheckOption PgQuery__WithCheckOption; -typedef struct PgQuery__SortGroupClause PgQuery__SortGroupClause; -typedef struct PgQuery__GroupingSet PgQuery__GroupingSet; -typedef struct PgQuery__WindowClause PgQuery__WindowClause; -typedef struct PgQuery__ObjectWithArgs PgQuery__ObjectWithArgs; -typedef struct PgQuery__AccessPriv PgQuery__AccessPriv; -typedef struct PgQuery__CreateOpClassItem PgQuery__CreateOpClassItem; -typedef struct PgQuery__TableLikeClause PgQuery__TableLikeClause; -typedef struct PgQuery__FunctionParameter PgQuery__FunctionParameter; -typedef struct PgQuery__LockingClause PgQuery__LockingClause; -typedef struct PgQuery__RowMarkClause PgQuery__RowMarkClause; -typedef struct PgQuery__XmlSerialize PgQuery__XmlSerialize; -typedef struct PgQuery__WithClause PgQuery__WithClause; -typedef struct PgQuery__InferClause PgQuery__InferClause; -typedef struct PgQuery__OnConflictClause PgQuery__OnConflictClause; -typedef struct PgQuery__CTESearchClause PgQuery__CTESearchClause; -typedef struct PgQuery__CTECycleClause PgQuery__CTECycleClause; -typedef struct PgQuery__CommonTableExpr PgQuery__CommonTableExpr; -typedef struct PgQuery__MergeWhenClause PgQuery__MergeWhenClause; -typedef struct PgQuery__RoleSpec PgQuery__RoleSpec; -typedef struct PgQuery__TriggerTransition PgQuery__TriggerTransition; -typedef struct PgQuery__PartitionElem PgQuery__PartitionElem; -typedef struct PgQuery__PartitionSpec PgQuery__PartitionSpec; -typedef struct PgQuery__PartitionBoundSpec PgQuery__PartitionBoundSpec; -typedef struct PgQuery__PartitionRangeDatum PgQuery__PartitionRangeDatum; -typedef struct PgQuery__PartitionCmd PgQuery__PartitionCmd; -typedef struct PgQuery__VacuumRelation PgQuery__VacuumRelation; -typedef struct PgQuery__PublicationObjSpec PgQuery__PublicationObjSpec; -typedef struct PgQuery__PublicationTable PgQuery__PublicationTable; -typedef struct PgQuery__InlineCodeBlock PgQuery__InlineCodeBlock; -typedef struct PgQuery__CallContext PgQuery__CallContext; -typedef struct PgQuery__ScanToken PgQuery__ScanToken; - - -/* --- enums --- */ - -typedef enum _PgQuery__OverridingKind { - PG_QUERY__OVERRIDING_KIND__OVERRIDING_KIND_UNDEFINED = 0, - PG_QUERY__OVERRIDING_KIND__OVERRIDING_NOT_SET = 1, - PG_QUERY__OVERRIDING_KIND__OVERRIDING_USER_VALUE = 2, - PG_QUERY__OVERRIDING_KIND__OVERRIDING_SYSTEM_VALUE = 3 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__OVERRIDING_KIND) -} PgQuery__OverridingKind; -typedef enum _PgQuery__QuerySource { - PG_QUERY__QUERY_SOURCE__QUERY_SOURCE_UNDEFINED = 0, - PG_QUERY__QUERY_SOURCE__QSRC_ORIGINAL = 1, - PG_QUERY__QUERY_SOURCE__QSRC_PARSER = 2, - PG_QUERY__QUERY_SOURCE__QSRC_INSTEAD_RULE = 3, - PG_QUERY__QUERY_SOURCE__QSRC_QUAL_INSTEAD_RULE = 4, - PG_QUERY__QUERY_SOURCE__QSRC_NON_INSTEAD_RULE = 5 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__QUERY_SOURCE) -} PgQuery__QuerySource; -typedef enum _PgQuery__SortByDir { - PG_QUERY__SORT_BY_DIR__SORT_BY_DIR_UNDEFINED = 0, - PG_QUERY__SORT_BY_DIR__SORTBY_DEFAULT = 1, - PG_QUERY__SORT_BY_DIR__SORTBY_ASC = 2, - PG_QUERY__SORT_BY_DIR__SORTBY_DESC = 3, - PG_QUERY__SORT_BY_DIR__SORTBY_USING = 4 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__SORT_BY_DIR) -} PgQuery__SortByDir; -typedef enum _PgQuery__SortByNulls { - PG_QUERY__SORT_BY_NULLS__SORT_BY_NULLS_UNDEFINED = 0, - PG_QUERY__SORT_BY_NULLS__SORTBY_NULLS_DEFAULT = 1, - PG_QUERY__SORT_BY_NULLS__SORTBY_NULLS_FIRST = 2, - PG_QUERY__SORT_BY_NULLS__SORTBY_NULLS_LAST = 3 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__SORT_BY_NULLS) -} PgQuery__SortByNulls; -typedef enum _PgQuery__SetQuantifier { - PG_QUERY__SET_QUANTIFIER__SET_QUANTIFIER_UNDEFINED = 0, - PG_QUERY__SET_QUANTIFIER__SET_QUANTIFIER_DEFAULT = 1, - PG_QUERY__SET_QUANTIFIER__SET_QUANTIFIER_ALL = 2, - PG_QUERY__SET_QUANTIFIER__SET_QUANTIFIER_DISTINCT = 3 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__SET_QUANTIFIER) -} PgQuery__SetQuantifier; -typedef enum _PgQuery__AExprKind { - PG_QUERY__A__EXPR__KIND__A_EXPR_KIND_UNDEFINED = 0, - PG_QUERY__A__EXPR__KIND__AEXPR_OP = 1, - PG_QUERY__A__EXPR__KIND__AEXPR_OP_ANY = 2, - PG_QUERY__A__EXPR__KIND__AEXPR_OP_ALL = 3, - PG_QUERY__A__EXPR__KIND__AEXPR_DISTINCT = 4, - PG_QUERY__A__EXPR__KIND__AEXPR_NOT_DISTINCT = 5, - PG_QUERY__A__EXPR__KIND__AEXPR_NULLIF = 6, - PG_QUERY__A__EXPR__KIND__AEXPR_IN = 7, - PG_QUERY__A__EXPR__KIND__AEXPR_LIKE = 8, - PG_QUERY__A__EXPR__KIND__AEXPR_ILIKE = 9, - PG_QUERY__A__EXPR__KIND__AEXPR_SIMILAR = 10, - PG_QUERY__A__EXPR__KIND__AEXPR_BETWEEN = 11, - PG_QUERY__A__EXPR__KIND__AEXPR_NOT_BETWEEN = 12, - PG_QUERY__A__EXPR__KIND__AEXPR_BETWEEN_SYM = 13, - PG_QUERY__A__EXPR__KIND__AEXPR_NOT_BETWEEN_SYM = 14 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__A__EXPR__KIND) -} PgQuery__AExprKind; -typedef enum _PgQuery__RoleSpecType { - PG_QUERY__ROLE_SPEC_TYPE__ROLE_SPEC_TYPE_UNDEFINED = 0, - PG_QUERY__ROLE_SPEC_TYPE__ROLESPEC_CSTRING = 1, - PG_QUERY__ROLE_SPEC_TYPE__ROLESPEC_CURRENT_ROLE = 2, - PG_QUERY__ROLE_SPEC_TYPE__ROLESPEC_CURRENT_USER = 3, - PG_QUERY__ROLE_SPEC_TYPE__ROLESPEC_SESSION_USER = 4, - PG_QUERY__ROLE_SPEC_TYPE__ROLESPEC_PUBLIC = 5 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__ROLE_SPEC_TYPE) -} PgQuery__RoleSpecType; -typedef enum _PgQuery__TableLikeOption { - PG_QUERY__TABLE_LIKE_OPTION__TABLE_LIKE_OPTION_UNDEFINED = 0, - PG_QUERY__TABLE_LIKE_OPTION__CREATE_TABLE_LIKE_COMMENTS = 1, - PG_QUERY__TABLE_LIKE_OPTION__CREATE_TABLE_LIKE_COMPRESSION = 2, - PG_QUERY__TABLE_LIKE_OPTION__CREATE_TABLE_LIKE_CONSTRAINTS = 3, - PG_QUERY__TABLE_LIKE_OPTION__CREATE_TABLE_LIKE_DEFAULTS = 4, - PG_QUERY__TABLE_LIKE_OPTION__CREATE_TABLE_LIKE_GENERATED = 5, - PG_QUERY__TABLE_LIKE_OPTION__CREATE_TABLE_LIKE_IDENTITY = 6, - PG_QUERY__TABLE_LIKE_OPTION__CREATE_TABLE_LIKE_INDEXES = 7, - PG_QUERY__TABLE_LIKE_OPTION__CREATE_TABLE_LIKE_STATISTICS = 8, - PG_QUERY__TABLE_LIKE_OPTION__CREATE_TABLE_LIKE_STORAGE = 9, - PG_QUERY__TABLE_LIKE_OPTION__CREATE_TABLE_LIKE_ALL = 10 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__TABLE_LIKE_OPTION) -} PgQuery__TableLikeOption; -typedef enum _PgQuery__DefElemAction { - PG_QUERY__DEF_ELEM_ACTION__DEF_ELEM_ACTION_UNDEFINED = 0, - PG_QUERY__DEF_ELEM_ACTION__DEFELEM_UNSPEC = 1, - PG_QUERY__DEF_ELEM_ACTION__DEFELEM_SET = 2, - PG_QUERY__DEF_ELEM_ACTION__DEFELEM_ADD = 3, - PG_QUERY__DEF_ELEM_ACTION__DEFELEM_DROP = 4 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__DEF_ELEM_ACTION) -} PgQuery__DefElemAction; -typedef enum _PgQuery__PartitionRangeDatumKind { - PG_QUERY__PARTITION_RANGE_DATUM_KIND__PARTITION_RANGE_DATUM_KIND_UNDEFINED = 0, - PG_QUERY__PARTITION_RANGE_DATUM_KIND__PARTITION_RANGE_DATUM_MINVALUE = 1, - PG_QUERY__PARTITION_RANGE_DATUM_KIND__PARTITION_RANGE_DATUM_VALUE = 2, - PG_QUERY__PARTITION_RANGE_DATUM_KIND__PARTITION_RANGE_DATUM_MAXVALUE = 3 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__PARTITION_RANGE_DATUM_KIND) -} PgQuery__PartitionRangeDatumKind; -typedef enum _PgQuery__RTEKind { - PG_QUERY__RTEKIND__RTEKIND_UNDEFINED = 0, - PG_QUERY__RTEKIND__RTE_RELATION = 1, - PG_QUERY__RTEKIND__RTE_SUBQUERY = 2, - PG_QUERY__RTEKIND__RTE_JOIN = 3, - PG_QUERY__RTEKIND__RTE_FUNCTION = 4, - PG_QUERY__RTEKIND__RTE_TABLEFUNC = 5, - PG_QUERY__RTEKIND__RTE_VALUES = 6, - PG_QUERY__RTEKIND__RTE_CTE = 7, - PG_QUERY__RTEKIND__RTE_NAMEDTUPLESTORE = 8, - PG_QUERY__RTEKIND__RTE_RESULT = 9 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__RTEKIND) -} PgQuery__RTEKind; -typedef enum _PgQuery__WCOKind { - PG_QUERY__WCOKIND__WCOKIND_UNDEFINED = 0, - PG_QUERY__WCOKIND__WCO_VIEW_CHECK = 1, - PG_QUERY__WCOKIND__WCO_RLS_INSERT_CHECK = 2, - PG_QUERY__WCOKIND__WCO_RLS_UPDATE_CHECK = 3, - PG_QUERY__WCOKIND__WCO_RLS_CONFLICT_CHECK = 4, - PG_QUERY__WCOKIND__WCO_RLS_MERGE_UPDATE_CHECK = 5, - PG_QUERY__WCOKIND__WCO_RLS_MERGE_DELETE_CHECK = 6 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__WCOKIND) -} PgQuery__WCOKind; -typedef enum _PgQuery__GroupingSetKind { - PG_QUERY__GROUPING_SET_KIND__GROUPING_SET_KIND_UNDEFINED = 0, - PG_QUERY__GROUPING_SET_KIND__GROUPING_SET_EMPTY = 1, - PG_QUERY__GROUPING_SET_KIND__GROUPING_SET_SIMPLE = 2, - PG_QUERY__GROUPING_SET_KIND__GROUPING_SET_ROLLUP = 3, - PG_QUERY__GROUPING_SET_KIND__GROUPING_SET_CUBE = 4, - PG_QUERY__GROUPING_SET_KIND__GROUPING_SET_SETS = 5 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__GROUPING_SET_KIND) -} PgQuery__GroupingSetKind; -typedef enum _PgQuery__CTEMaterialize { - PG_QUERY__CTEMATERIALIZE__CTEMATERIALIZE_UNDEFINED = 0, - PG_QUERY__CTEMATERIALIZE__CTEMaterializeDefault = 1, - PG_QUERY__CTEMATERIALIZE__CTEMaterializeAlways = 2, - PG_QUERY__CTEMATERIALIZE__CTEMaterializeNever = 3 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__CTEMATERIALIZE) -} PgQuery__CTEMaterialize; -typedef enum _PgQuery__SetOperation { - PG_QUERY__SET_OPERATION__SET_OPERATION_UNDEFINED = 0, - PG_QUERY__SET_OPERATION__SETOP_NONE = 1, - PG_QUERY__SET_OPERATION__SETOP_UNION = 2, - PG_QUERY__SET_OPERATION__SETOP_INTERSECT = 3, - PG_QUERY__SET_OPERATION__SETOP_EXCEPT = 4 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__SET_OPERATION) -} PgQuery__SetOperation; -typedef enum _PgQuery__ObjectType { - PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED = 0, - PG_QUERY__OBJECT_TYPE__OBJECT_ACCESS_METHOD = 1, - PG_QUERY__OBJECT_TYPE__OBJECT_AGGREGATE = 2, - PG_QUERY__OBJECT_TYPE__OBJECT_AMOP = 3, - PG_QUERY__OBJECT_TYPE__OBJECT_AMPROC = 4, - PG_QUERY__OBJECT_TYPE__OBJECT_ATTRIBUTE = 5, - PG_QUERY__OBJECT_TYPE__OBJECT_CAST = 6, - PG_QUERY__OBJECT_TYPE__OBJECT_COLUMN = 7, - PG_QUERY__OBJECT_TYPE__OBJECT_COLLATION = 8, - PG_QUERY__OBJECT_TYPE__OBJECT_CONVERSION = 9, - PG_QUERY__OBJECT_TYPE__OBJECT_DATABASE = 10, - PG_QUERY__OBJECT_TYPE__OBJECT_DEFAULT = 11, - PG_QUERY__OBJECT_TYPE__OBJECT_DEFACL = 12, - PG_QUERY__OBJECT_TYPE__OBJECT_DOMAIN = 13, - PG_QUERY__OBJECT_TYPE__OBJECT_DOMCONSTRAINT = 14, - PG_QUERY__OBJECT_TYPE__OBJECT_EVENT_TRIGGER = 15, - PG_QUERY__OBJECT_TYPE__OBJECT_EXTENSION = 16, - PG_QUERY__OBJECT_TYPE__OBJECT_FDW = 17, - PG_QUERY__OBJECT_TYPE__OBJECT_FOREIGN_SERVER = 18, - PG_QUERY__OBJECT_TYPE__OBJECT_FOREIGN_TABLE = 19, - PG_QUERY__OBJECT_TYPE__OBJECT_FUNCTION = 20, - PG_QUERY__OBJECT_TYPE__OBJECT_INDEX = 21, - PG_QUERY__OBJECT_TYPE__OBJECT_LANGUAGE = 22, - PG_QUERY__OBJECT_TYPE__OBJECT_LARGEOBJECT = 23, - PG_QUERY__OBJECT_TYPE__OBJECT_MATVIEW = 24, - PG_QUERY__OBJECT_TYPE__OBJECT_OPCLASS = 25, - PG_QUERY__OBJECT_TYPE__OBJECT_OPERATOR = 26, - PG_QUERY__OBJECT_TYPE__OBJECT_OPFAMILY = 27, - PG_QUERY__OBJECT_TYPE__OBJECT_PARAMETER_ACL = 28, - PG_QUERY__OBJECT_TYPE__OBJECT_POLICY = 29, - PG_QUERY__OBJECT_TYPE__OBJECT_PROCEDURE = 30, - PG_QUERY__OBJECT_TYPE__OBJECT_PUBLICATION = 31, - PG_QUERY__OBJECT_TYPE__OBJECT_PUBLICATION_NAMESPACE = 32, - PG_QUERY__OBJECT_TYPE__OBJECT_PUBLICATION_REL = 33, - PG_QUERY__OBJECT_TYPE__OBJECT_ROLE = 34, - PG_QUERY__OBJECT_TYPE__OBJECT_ROUTINE = 35, - PG_QUERY__OBJECT_TYPE__OBJECT_RULE = 36, - PG_QUERY__OBJECT_TYPE__OBJECT_SCHEMA = 37, - PG_QUERY__OBJECT_TYPE__OBJECT_SEQUENCE = 38, - PG_QUERY__OBJECT_TYPE__OBJECT_SUBSCRIPTION = 39, - PG_QUERY__OBJECT_TYPE__OBJECT_STATISTIC_EXT = 40, - PG_QUERY__OBJECT_TYPE__OBJECT_TABCONSTRAINT = 41, - PG_QUERY__OBJECT_TYPE__OBJECT_TABLE = 42, - PG_QUERY__OBJECT_TYPE__OBJECT_TABLESPACE = 43, - PG_QUERY__OBJECT_TYPE__OBJECT_TRANSFORM = 44, - PG_QUERY__OBJECT_TYPE__OBJECT_TRIGGER = 45, - PG_QUERY__OBJECT_TYPE__OBJECT_TSCONFIGURATION = 46, - PG_QUERY__OBJECT_TYPE__OBJECT_TSDICTIONARY = 47, - PG_QUERY__OBJECT_TYPE__OBJECT_TSPARSER = 48, - PG_QUERY__OBJECT_TYPE__OBJECT_TSTEMPLATE = 49, - PG_QUERY__OBJECT_TYPE__OBJECT_TYPE = 50, - PG_QUERY__OBJECT_TYPE__OBJECT_USER_MAPPING = 51, - PG_QUERY__OBJECT_TYPE__OBJECT_VIEW = 52 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__OBJECT_TYPE) -} PgQuery__ObjectType; -typedef enum _PgQuery__DropBehavior { - PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED = 0, - PG_QUERY__DROP_BEHAVIOR__DROP_RESTRICT = 1, - PG_QUERY__DROP_BEHAVIOR__DROP_CASCADE = 2 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__DROP_BEHAVIOR) -} PgQuery__DropBehavior; -typedef enum _PgQuery__AlterTableType { - PG_QUERY__ALTER_TABLE_TYPE__ALTER_TABLE_TYPE_UNDEFINED = 0, - PG_QUERY__ALTER_TABLE_TYPE__AT_AddColumn = 1, - PG_QUERY__ALTER_TABLE_TYPE__AT_AddColumnRecurse = 2, - PG_QUERY__ALTER_TABLE_TYPE__AT_AddColumnToView = 3, - PG_QUERY__ALTER_TABLE_TYPE__AT_ColumnDefault = 4, - PG_QUERY__ALTER_TABLE_TYPE__AT_CookedColumnDefault = 5, - PG_QUERY__ALTER_TABLE_TYPE__AT_DropNotNull = 6, - PG_QUERY__ALTER_TABLE_TYPE__AT_SetNotNull = 7, - PG_QUERY__ALTER_TABLE_TYPE__AT_DropExpression = 8, - PG_QUERY__ALTER_TABLE_TYPE__AT_CheckNotNull = 9, - PG_QUERY__ALTER_TABLE_TYPE__AT_SetStatistics = 10, - PG_QUERY__ALTER_TABLE_TYPE__AT_SetOptions = 11, - PG_QUERY__ALTER_TABLE_TYPE__AT_ResetOptions = 12, - PG_QUERY__ALTER_TABLE_TYPE__AT_SetStorage = 13, - PG_QUERY__ALTER_TABLE_TYPE__AT_SetCompression = 14, - PG_QUERY__ALTER_TABLE_TYPE__AT_DropColumn = 15, - PG_QUERY__ALTER_TABLE_TYPE__AT_DropColumnRecurse = 16, - PG_QUERY__ALTER_TABLE_TYPE__AT_AddIndex = 17, - PG_QUERY__ALTER_TABLE_TYPE__AT_ReAddIndex = 18, - PG_QUERY__ALTER_TABLE_TYPE__AT_AddConstraint = 19, - PG_QUERY__ALTER_TABLE_TYPE__AT_AddConstraintRecurse = 20, - PG_QUERY__ALTER_TABLE_TYPE__AT_ReAddConstraint = 21, - PG_QUERY__ALTER_TABLE_TYPE__AT_ReAddDomainConstraint = 22, - PG_QUERY__ALTER_TABLE_TYPE__AT_AlterConstraint = 23, - PG_QUERY__ALTER_TABLE_TYPE__AT_ValidateConstraint = 24, - PG_QUERY__ALTER_TABLE_TYPE__AT_ValidateConstraintRecurse = 25, - PG_QUERY__ALTER_TABLE_TYPE__AT_AddIndexConstraint = 26, - PG_QUERY__ALTER_TABLE_TYPE__AT_DropConstraint = 27, - PG_QUERY__ALTER_TABLE_TYPE__AT_DropConstraintRecurse = 28, - PG_QUERY__ALTER_TABLE_TYPE__AT_ReAddComment = 29, - PG_QUERY__ALTER_TABLE_TYPE__AT_AlterColumnType = 30, - PG_QUERY__ALTER_TABLE_TYPE__AT_AlterColumnGenericOptions = 31, - PG_QUERY__ALTER_TABLE_TYPE__AT_ChangeOwner = 32, - PG_QUERY__ALTER_TABLE_TYPE__AT_ClusterOn = 33, - PG_QUERY__ALTER_TABLE_TYPE__AT_DropCluster = 34, - PG_QUERY__ALTER_TABLE_TYPE__AT_SetLogged = 35, - PG_QUERY__ALTER_TABLE_TYPE__AT_SetUnLogged = 36, - PG_QUERY__ALTER_TABLE_TYPE__AT_DropOids = 37, - PG_QUERY__ALTER_TABLE_TYPE__AT_SetAccessMethod = 38, - PG_QUERY__ALTER_TABLE_TYPE__AT_SetTableSpace = 39, - PG_QUERY__ALTER_TABLE_TYPE__AT_SetRelOptions = 40, - PG_QUERY__ALTER_TABLE_TYPE__AT_ResetRelOptions = 41, - PG_QUERY__ALTER_TABLE_TYPE__AT_ReplaceRelOptions = 42, - PG_QUERY__ALTER_TABLE_TYPE__AT_EnableTrig = 43, - PG_QUERY__ALTER_TABLE_TYPE__AT_EnableAlwaysTrig = 44, - PG_QUERY__ALTER_TABLE_TYPE__AT_EnableReplicaTrig = 45, - PG_QUERY__ALTER_TABLE_TYPE__AT_DisableTrig = 46, - PG_QUERY__ALTER_TABLE_TYPE__AT_EnableTrigAll = 47, - PG_QUERY__ALTER_TABLE_TYPE__AT_DisableTrigAll = 48, - PG_QUERY__ALTER_TABLE_TYPE__AT_EnableTrigUser = 49, - PG_QUERY__ALTER_TABLE_TYPE__AT_DisableTrigUser = 50, - PG_QUERY__ALTER_TABLE_TYPE__AT_EnableRule = 51, - PG_QUERY__ALTER_TABLE_TYPE__AT_EnableAlwaysRule = 52, - PG_QUERY__ALTER_TABLE_TYPE__AT_EnableReplicaRule = 53, - PG_QUERY__ALTER_TABLE_TYPE__AT_DisableRule = 54, - PG_QUERY__ALTER_TABLE_TYPE__AT_AddInherit = 55, - PG_QUERY__ALTER_TABLE_TYPE__AT_DropInherit = 56, - PG_QUERY__ALTER_TABLE_TYPE__AT_AddOf = 57, - PG_QUERY__ALTER_TABLE_TYPE__AT_DropOf = 58, - PG_QUERY__ALTER_TABLE_TYPE__AT_ReplicaIdentity = 59, - PG_QUERY__ALTER_TABLE_TYPE__AT_EnableRowSecurity = 60, - PG_QUERY__ALTER_TABLE_TYPE__AT_DisableRowSecurity = 61, - PG_QUERY__ALTER_TABLE_TYPE__AT_ForceRowSecurity = 62, - PG_QUERY__ALTER_TABLE_TYPE__AT_NoForceRowSecurity = 63, - PG_QUERY__ALTER_TABLE_TYPE__AT_GenericOptions = 64, - PG_QUERY__ALTER_TABLE_TYPE__AT_AttachPartition = 65, - PG_QUERY__ALTER_TABLE_TYPE__AT_DetachPartition = 66, - PG_QUERY__ALTER_TABLE_TYPE__AT_DetachPartitionFinalize = 67, - PG_QUERY__ALTER_TABLE_TYPE__AT_AddIdentity = 68, - PG_QUERY__ALTER_TABLE_TYPE__AT_SetIdentity = 69, - PG_QUERY__ALTER_TABLE_TYPE__AT_DropIdentity = 70, - PG_QUERY__ALTER_TABLE_TYPE__AT_ReAddStatistics = 71 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__ALTER_TABLE_TYPE) -} PgQuery__AlterTableType; -typedef enum _PgQuery__GrantTargetType { - PG_QUERY__GRANT_TARGET_TYPE__GRANT_TARGET_TYPE_UNDEFINED = 0, - PG_QUERY__GRANT_TARGET_TYPE__ACL_TARGET_OBJECT = 1, - PG_QUERY__GRANT_TARGET_TYPE__ACL_TARGET_ALL_IN_SCHEMA = 2, - PG_QUERY__GRANT_TARGET_TYPE__ACL_TARGET_DEFAULTS = 3 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__GRANT_TARGET_TYPE) -} PgQuery__GrantTargetType; -typedef enum _PgQuery__VariableSetKind { - PG_QUERY__VARIABLE_SET_KIND__VARIABLE_SET_KIND_UNDEFINED = 0, - PG_QUERY__VARIABLE_SET_KIND__VAR_SET_VALUE = 1, - PG_QUERY__VARIABLE_SET_KIND__VAR_SET_DEFAULT = 2, - PG_QUERY__VARIABLE_SET_KIND__VAR_SET_CURRENT = 3, - PG_QUERY__VARIABLE_SET_KIND__VAR_SET_MULTI = 4, - PG_QUERY__VARIABLE_SET_KIND__VAR_RESET = 5, - PG_QUERY__VARIABLE_SET_KIND__VAR_RESET_ALL = 6 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__VARIABLE_SET_KIND) -} PgQuery__VariableSetKind; -typedef enum _PgQuery__ConstrType { - PG_QUERY__CONSTR_TYPE__CONSTR_TYPE_UNDEFINED = 0, - PG_QUERY__CONSTR_TYPE__CONSTR_NULL = 1, - PG_QUERY__CONSTR_TYPE__CONSTR_NOTNULL = 2, - PG_QUERY__CONSTR_TYPE__CONSTR_DEFAULT = 3, - PG_QUERY__CONSTR_TYPE__CONSTR_IDENTITY = 4, - PG_QUERY__CONSTR_TYPE__CONSTR_GENERATED = 5, - PG_QUERY__CONSTR_TYPE__CONSTR_CHECK = 6, - PG_QUERY__CONSTR_TYPE__CONSTR_PRIMARY = 7, - PG_QUERY__CONSTR_TYPE__CONSTR_UNIQUE = 8, - PG_QUERY__CONSTR_TYPE__CONSTR_EXCLUSION = 9, - PG_QUERY__CONSTR_TYPE__CONSTR_FOREIGN = 10, - PG_QUERY__CONSTR_TYPE__CONSTR_ATTR_DEFERRABLE = 11, - PG_QUERY__CONSTR_TYPE__CONSTR_ATTR_NOT_DEFERRABLE = 12, - PG_QUERY__CONSTR_TYPE__CONSTR_ATTR_DEFERRED = 13, - PG_QUERY__CONSTR_TYPE__CONSTR_ATTR_IMMEDIATE = 14 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__CONSTR_TYPE) -} PgQuery__ConstrType; -typedef enum _PgQuery__ImportForeignSchemaType { - PG_QUERY__IMPORT_FOREIGN_SCHEMA_TYPE__IMPORT_FOREIGN_SCHEMA_TYPE_UNDEFINED = 0, - PG_QUERY__IMPORT_FOREIGN_SCHEMA_TYPE__FDW_IMPORT_SCHEMA_ALL = 1, - PG_QUERY__IMPORT_FOREIGN_SCHEMA_TYPE__FDW_IMPORT_SCHEMA_LIMIT_TO = 2, - PG_QUERY__IMPORT_FOREIGN_SCHEMA_TYPE__FDW_IMPORT_SCHEMA_EXCEPT = 3 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__IMPORT_FOREIGN_SCHEMA_TYPE) -} PgQuery__ImportForeignSchemaType; -typedef enum _PgQuery__RoleStmtType { - PG_QUERY__ROLE_STMT_TYPE__ROLE_STMT_TYPE_UNDEFINED = 0, - PG_QUERY__ROLE_STMT_TYPE__ROLESTMT_ROLE = 1, - PG_QUERY__ROLE_STMT_TYPE__ROLESTMT_USER = 2, - PG_QUERY__ROLE_STMT_TYPE__ROLESTMT_GROUP = 3 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__ROLE_STMT_TYPE) -} PgQuery__RoleStmtType; -typedef enum _PgQuery__FetchDirection { - PG_QUERY__FETCH_DIRECTION__FETCH_DIRECTION_UNDEFINED = 0, - PG_QUERY__FETCH_DIRECTION__FETCH_FORWARD = 1, - PG_QUERY__FETCH_DIRECTION__FETCH_BACKWARD = 2, - PG_QUERY__FETCH_DIRECTION__FETCH_ABSOLUTE = 3, - PG_QUERY__FETCH_DIRECTION__FETCH_RELATIVE = 4 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__FETCH_DIRECTION) -} PgQuery__FetchDirection; -typedef enum _PgQuery__FunctionParameterMode { - PG_QUERY__FUNCTION_PARAMETER_MODE__FUNCTION_PARAMETER_MODE_UNDEFINED = 0, - PG_QUERY__FUNCTION_PARAMETER_MODE__FUNC_PARAM_IN = 1, - PG_QUERY__FUNCTION_PARAMETER_MODE__FUNC_PARAM_OUT = 2, - PG_QUERY__FUNCTION_PARAMETER_MODE__FUNC_PARAM_INOUT = 3, - PG_QUERY__FUNCTION_PARAMETER_MODE__FUNC_PARAM_VARIADIC = 4, - PG_QUERY__FUNCTION_PARAMETER_MODE__FUNC_PARAM_TABLE = 5, - PG_QUERY__FUNCTION_PARAMETER_MODE__FUNC_PARAM_DEFAULT = 6 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__FUNCTION_PARAMETER_MODE) -} PgQuery__FunctionParameterMode; -typedef enum _PgQuery__TransactionStmtKind { - PG_QUERY__TRANSACTION_STMT_KIND__TRANSACTION_STMT_KIND_UNDEFINED = 0, - PG_QUERY__TRANSACTION_STMT_KIND__TRANS_STMT_BEGIN = 1, - PG_QUERY__TRANSACTION_STMT_KIND__TRANS_STMT_START = 2, - PG_QUERY__TRANSACTION_STMT_KIND__TRANS_STMT_COMMIT = 3, - PG_QUERY__TRANSACTION_STMT_KIND__TRANS_STMT_ROLLBACK = 4, - PG_QUERY__TRANSACTION_STMT_KIND__TRANS_STMT_SAVEPOINT = 5, - PG_QUERY__TRANSACTION_STMT_KIND__TRANS_STMT_RELEASE = 6, - PG_QUERY__TRANSACTION_STMT_KIND__TRANS_STMT_ROLLBACK_TO = 7, - PG_QUERY__TRANSACTION_STMT_KIND__TRANS_STMT_PREPARE = 8, - PG_QUERY__TRANSACTION_STMT_KIND__TRANS_STMT_COMMIT_PREPARED = 9, - PG_QUERY__TRANSACTION_STMT_KIND__TRANS_STMT_ROLLBACK_PREPARED = 10 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__TRANSACTION_STMT_KIND) -} PgQuery__TransactionStmtKind; -typedef enum _PgQuery__ViewCheckOption { - PG_QUERY__VIEW_CHECK_OPTION__VIEW_CHECK_OPTION_UNDEFINED = 0, - PG_QUERY__VIEW_CHECK_OPTION__NO_CHECK_OPTION = 1, - PG_QUERY__VIEW_CHECK_OPTION__LOCAL_CHECK_OPTION = 2, - PG_QUERY__VIEW_CHECK_OPTION__CASCADED_CHECK_OPTION = 3 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__VIEW_CHECK_OPTION) -} PgQuery__ViewCheckOption; -typedef enum _PgQuery__DiscardMode { - PG_QUERY__DISCARD_MODE__DISCARD_MODE_UNDEFINED = 0, - PG_QUERY__DISCARD_MODE__DISCARD_ALL = 1, - PG_QUERY__DISCARD_MODE__DISCARD_PLANS = 2, - PG_QUERY__DISCARD_MODE__DISCARD_SEQUENCES = 3, - PG_QUERY__DISCARD_MODE__DISCARD_TEMP = 4 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__DISCARD_MODE) -} PgQuery__DiscardMode; -typedef enum _PgQuery__ReindexObjectType { - PG_QUERY__REINDEX_OBJECT_TYPE__REINDEX_OBJECT_TYPE_UNDEFINED = 0, - PG_QUERY__REINDEX_OBJECT_TYPE__REINDEX_OBJECT_INDEX = 1, - PG_QUERY__REINDEX_OBJECT_TYPE__REINDEX_OBJECT_TABLE = 2, - PG_QUERY__REINDEX_OBJECT_TYPE__REINDEX_OBJECT_SCHEMA = 3, - PG_QUERY__REINDEX_OBJECT_TYPE__REINDEX_OBJECT_SYSTEM = 4, - PG_QUERY__REINDEX_OBJECT_TYPE__REINDEX_OBJECT_DATABASE = 5 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__REINDEX_OBJECT_TYPE) -} PgQuery__ReindexObjectType; -typedef enum _PgQuery__AlterTSConfigType { - PG_QUERY__ALTER_TSCONFIG_TYPE__ALTER_TSCONFIG_TYPE_UNDEFINED = 0, - PG_QUERY__ALTER_TSCONFIG_TYPE__ALTER_TSCONFIG_ADD_MAPPING = 1, - PG_QUERY__ALTER_TSCONFIG_TYPE__ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN = 2, - PG_QUERY__ALTER_TSCONFIG_TYPE__ALTER_TSCONFIG_REPLACE_DICT = 3, - PG_QUERY__ALTER_TSCONFIG_TYPE__ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN = 4, - PG_QUERY__ALTER_TSCONFIG_TYPE__ALTER_TSCONFIG_DROP_MAPPING = 5 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__ALTER_TSCONFIG_TYPE) -} PgQuery__AlterTSConfigType; -typedef enum _PgQuery__PublicationObjSpecType { - PG_QUERY__PUBLICATION_OBJ_SPEC_TYPE__PUBLICATION_OBJ_SPEC_TYPE_UNDEFINED = 0, - PG_QUERY__PUBLICATION_OBJ_SPEC_TYPE__PUBLICATIONOBJ_TABLE = 1, - PG_QUERY__PUBLICATION_OBJ_SPEC_TYPE__PUBLICATIONOBJ_TABLES_IN_SCHEMA = 2, - PG_QUERY__PUBLICATION_OBJ_SPEC_TYPE__PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA = 3, - PG_QUERY__PUBLICATION_OBJ_SPEC_TYPE__PUBLICATIONOBJ_CONTINUATION = 4 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__PUBLICATION_OBJ_SPEC_TYPE) -} PgQuery__PublicationObjSpecType; -typedef enum _PgQuery__AlterPublicationAction { - PG_QUERY__ALTER_PUBLICATION_ACTION__ALTER_PUBLICATION_ACTION_UNDEFINED = 0, - PG_QUERY__ALTER_PUBLICATION_ACTION__AP_AddObjects = 1, - PG_QUERY__ALTER_PUBLICATION_ACTION__AP_DropObjects = 2, - PG_QUERY__ALTER_PUBLICATION_ACTION__AP_SetObjects = 3 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__ALTER_PUBLICATION_ACTION) -} PgQuery__AlterPublicationAction; -typedef enum _PgQuery__AlterSubscriptionType { - PG_QUERY__ALTER_SUBSCRIPTION_TYPE__ALTER_SUBSCRIPTION_TYPE_UNDEFINED = 0, - PG_QUERY__ALTER_SUBSCRIPTION_TYPE__ALTER_SUBSCRIPTION_OPTIONS = 1, - PG_QUERY__ALTER_SUBSCRIPTION_TYPE__ALTER_SUBSCRIPTION_CONNECTION = 2, - PG_QUERY__ALTER_SUBSCRIPTION_TYPE__ALTER_SUBSCRIPTION_SET_PUBLICATION = 3, - PG_QUERY__ALTER_SUBSCRIPTION_TYPE__ALTER_SUBSCRIPTION_ADD_PUBLICATION = 4, - PG_QUERY__ALTER_SUBSCRIPTION_TYPE__ALTER_SUBSCRIPTION_DROP_PUBLICATION = 5, - PG_QUERY__ALTER_SUBSCRIPTION_TYPE__ALTER_SUBSCRIPTION_REFRESH = 6, - PG_QUERY__ALTER_SUBSCRIPTION_TYPE__ALTER_SUBSCRIPTION_ENABLED = 7, - PG_QUERY__ALTER_SUBSCRIPTION_TYPE__ALTER_SUBSCRIPTION_SKIP = 8 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__ALTER_SUBSCRIPTION_TYPE) -} PgQuery__AlterSubscriptionType; -typedef enum _PgQuery__OnCommitAction { - PG_QUERY__ON_COMMIT_ACTION__ON_COMMIT_ACTION_UNDEFINED = 0, - PG_QUERY__ON_COMMIT_ACTION__ONCOMMIT_NOOP = 1, - PG_QUERY__ON_COMMIT_ACTION__ONCOMMIT_PRESERVE_ROWS = 2, - PG_QUERY__ON_COMMIT_ACTION__ONCOMMIT_DELETE_ROWS = 3, - PG_QUERY__ON_COMMIT_ACTION__ONCOMMIT_DROP = 4 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__ON_COMMIT_ACTION) -} PgQuery__OnCommitAction; -typedef enum _PgQuery__ParamKind { - PG_QUERY__PARAM_KIND__PARAM_KIND_UNDEFINED = 0, - PG_QUERY__PARAM_KIND__PARAM_EXTERN = 1, - PG_QUERY__PARAM_KIND__PARAM_EXEC = 2, - PG_QUERY__PARAM_KIND__PARAM_SUBLINK = 3, - PG_QUERY__PARAM_KIND__PARAM_MULTIEXPR = 4 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__PARAM_KIND) -} PgQuery__ParamKind; -typedef enum _PgQuery__CoercionContext { - PG_QUERY__COERCION_CONTEXT__COERCION_CONTEXT_UNDEFINED = 0, - PG_QUERY__COERCION_CONTEXT__COERCION_IMPLICIT = 1, - PG_QUERY__COERCION_CONTEXT__COERCION_ASSIGNMENT = 2, - PG_QUERY__COERCION_CONTEXT__COERCION_PLPGSQL = 3, - PG_QUERY__COERCION_CONTEXT__COERCION_EXPLICIT = 4 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__COERCION_CONTEXT) -} PgQuery__CoercionContext; -typedef enum _PgQuery__CoercionForm { - PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED = 0, - PG_QUERY__COERCION_FORM__COERCE_EXPLICIT_CALL = 1, - PG_QUERY__COERCION_FORM__COERCE_EXPLICIT_CAST = 2, - PG_QUERY__COERCION_FORM__COERCE_IMPLICIT_CAST = 3, - PG_QUERY__COERCION_FORM__COERCE_SQL_SYNTAX = 4 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__COERCION_FORM) -} PgQuery__CoercionForm; -typedef enum _PgQuery__BoolExprType { - PG_QUERY__BOOL_EXPR_TYPE__BOOL_EXPR_TYPE_UNDEFINED = 0, - PG_QUERY__BOOL_EXPR_TYPE__AND_EXPR = 1, - PG_QUERY__BOOL_EXPR_TYPE__OR_EXPR = 2, - PG_QUERY__BOOL_EXPR_TYPE__NOT_EXPR = 3 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__BOOL_EXPR_TYPE) -} PgQuery__BoolExprType; -typedef enum _PgQuery__SubLinkType { - PG_QUERY__SUB_LINK_TYPE__SUB_LINK_TYPE_UNDEFINED = 0, - PG_QUERY__SUB_LINK_TYPE__EXISTS_SUBLINK = 1, - PG_QUERY__SUB_LINK_TYPE__ALL_SUBLINK = 2, - PG_QUERY__SUB_LINK_TYPE__ANY_SUBLINK = 3, - PG_QUERY__SUB_LINK_TYPE__ROWCOMPARE_SUBLINK = 4, - PG_QUERY__SUB_LINK_TYPE__EXPR_SUBLINK = 5, - PG_QUERY__SUB_LINK_TYPE__MULTIEXPR_SUBLINK = 6, - PG_QUERY__SUB_LINK_TYPE__ARRAY_SUBLINK = 7, - PG_QUERY__SUB_LINK_TYPE__CTE_SUBLINK = 8 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__SUB_LINK_TYPE) -} PgQuery__SubLinkType; -typedef enum _PgQuery__RowCompareType { - PG_QUERY__ROW_COMPARE_TYPE__ROW_COMPARE_TYPE_UNDEFINED = 0, - PG_QUERY__ROW_COMPARE_TYPE__ROWCOMPARE_LT = 1, - PG_QUERY__ROW_COMPARE_TYPE__ROWCOMPARE_LE = 2, - PG_QUERY__ROW_COMPARE_TYPE__ROWCOMPARE_EQ = 3, - PG_QUERY__ROW_COMPARE_TYPE__ROWCOMPARE_GE = 4, - PG_QUERY__ROW_COMPARE_TYPE__ROWCOMPARE_GT = 5, - PG_QUERY__ROW_COMPARE_TYPE__ROWCOMPARE_NE = 6 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__ROW_COMPARE_TYPE) -} PgQuery__RowCompareType; -typedef enum _PgQuery__MinMaxOp { - PG_QUERY__MIN_MAX_OP__MIN_MAX_OP_UNDEFINED = 0, - PG_QUERY__MIN_MAX_OP__IS_GREATEST = 1, - PG_QUERY__MIN_MAX_OP__IS_LEAST = 2 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__MIN_MAX_OP) -} PgQuery__MinMaxOp; -typedef enum _PgQuery__SQLValueFunctionOp { - PG_QUERY__SQLVALUE_FUNCTION_OP__SQLVALUE_FUNCTION_OP_UNDEFINED = 0, - PG_QUERY__SQLVALUE_FUNCTION_OP__SVFOP_CURRENT_DATE = 1, - PG_QUERY__SQLVALUE_FUNCTION_OP__SVFOP_CURRENT_TIME = 2, - PG_QUERY__SQLVALUE_FUNCTION_OP__SVFOP_CURRENT_TIME_N = 3, - PG_QUERY__SQLVALUE_FUNCTION_OP__SVFOP_CURRENT_TIMESTAMP = 4, - PG_QUERY__SQLVALUE_FUNCTION_OP__SVFOP_CURRENT_TIMESTAMP_N = 5, - PG_QUERY__SQLVALUE_FUNCTION_OP__SVFOP_LOCALTIME = 6, - PG_QUERY__SQLVALUE_FUNCTION_OP__SVFOP_LOCALTIME_N = 7, - PG_QUERY__SQLVALUE_FUNCTION_OP__SVFOP_LOCALTIMESTAMP = 8, - PG_QUERY__SQLVALUE_FUNCTION_OP__SVFOP_LOCALTIMESTAMP_N = 9, - PG_QUERY__SQLVALUE_FUNCTION_OP__SVFOP_CURRENT_ROLE = 10, - PG_QUERY__SQLVALUE_FUNCTION_OP__SVFOP_CURRENT_USER = 11, - PG_QUERY__SQLVALUE_FUNCTION_OP__SVFOP_USER = 12, - PG_QUERY__SQLVALUE_FUNCTION_OP__SVFOP_SESSION_USER = 13, - PG_QUERY__SQLVALUE_FUNCTION_OP__SVFOP_CURRENT_CATALOG = 14, - PG_QUERY__SQLVALUE_FUNCTION_OP__SVFOP_CURRENT_SCHEMA = 15 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__SQLVALUE_FUNCTION_OP) -} PgQuery__SQLValueFunctionOp; -typedef enum _PgQuery__XmlExprOp { - PG_QUERY__XML_EXPR_OP__XML_EXPR_OP_UNDEFINED = 0, - PG_QUERY__XML_EXPR_OP__IS_XMLCONCAT = 1, - PG_QUERY__XML_EXPR_OP__IS_XMLELEMENT = 2, - PG_QUERY__XML_EXPR_OP__IS_XMLFOREST = 3, - PG_QUERY__XML_EXPR_OP__IS_XMLPARSE = 4, - PG_QUERY__XML_EXPR_OP__IS_XMLPI = 5, - PG_QUERY__XML_EXPR_OP__IS_XMLROOT = 6, - PG_QUERY__XML_EXPR_OP__IS_XMLSERIALIZE = 7, - PG_QUERY__XML_EXPR_OP__IS_DOCUMENT = 8 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__XML_EXPR_OP) -} PgQuery__XmlExprOp; -typedef enum _PgQuery__XmlOptionType { - PG_QUERY__XML_OPTION_TYPE__XML_OPTION_TYPE_UNDEFINED = 0, - PG_QUERY__XML_OPTION_TYPE__XMLOPTION_DOCUMENT = 1, - PG_QUERY__XML_OPTION_TYPE__XMLOPTION_CONTENT = 2 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__XML_OPTION_TYPE) -} PgQuery__XmlOptionType; -typedef enum _PgQuery__NullTestType { - PG_QUERY__NULL_TEST_TYPE__NULL_TEST_TYPE_UNDEFINED = 0, - PG_QUERY__NULL_TEST_TYPE__IS_NULL = 1, - PG_QUERY__NULL_TEST_TYPE__IS_NOT_NULL = 2 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__NULL_TEST_TYPE) -} PgQuery__NullTestType; -typedef enum _PgQuery__BoolTestType { - PG_QUERY__BOOL_TEST_TYPE__BOOL_TEST_TYPE_UNDEFINED = 0, - PG_QUERY__BOOL_TEST_TYPE__IS_TRUE = 1, - PG_QUERY__BOOL_TEST_TYPE__IS_NOT_TRUE = 2, - PG_QUERY__BOOL_TEST_TYPE__IS_FALSE = 3, - PG_QUERY__BOOL_TEST_TYPE__IS_NOT_FALSE = 4, - PG_QUERY__BOOL_TEST_TYPE__IS_UNKNOWN = 5, - PG_QUERY__BOOL_TEST_TYPE__IS_NOT_UNKNOWN = 6 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__BOOL_TEST_TYPE) -} PgQuery__BoolTestType; -typedef enum _PgQuery__CmdType { - PG_QUERY__CMD_TYPE__CMD_TYPE_UNDEFINED = 0, - PG_QUERY__CMD_TYPE__CMD_UNKNOWN = 1, - PG_QUERY__CMD_TYPE__CMD_SELECT = 2, - PG_QUERY__CMD_TYPE__CMD_UPDATE = 3, - PG_QUERY__CMD_TYPE__CMD_INSERT = 4, - PG_QUERY__CMD_TYPE__CMD_DELETE = 5, - PG_QUERY__CMD_TYPE__CMD_MERGE = 6, - PG_QUERY__CMD_TYPE__CMD_UTILITY = 7, - PG_QUERY__CMD_TYPE__CMD_NOTHING = 8 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__CMD_TYPE) -} PgQuery__CmdType; -typedef enum _PgQuery__JoinType { - PG_QUERY__JOIN_TYPE__JOIN_TYPE_UNDEFINED = 0, - PG_QUERY__JOIN_TYPE__JOIN_INNER = 1, - PG_QUERY__JOIN_TYPE__JOIN_LEFT = 2, - PG_QUERY__JOIN_TYPE__JOIN_FULL = 3, - PG_QUERY__JOIN_TYPE__JOIN_RIGHT = 4, - PG_QUERY__JOIN_TYPE__JOIN_SEMI = 5, - PG_QUERY__JOIN_TYPE__JOIN_ANTI = 6, - PG_QUERY__JOIN_TYPE__JOIN_UNIQUE_OUTER = 7, - PG_QUERY__JOIN_TYPE__JOIN_UNIQUE_INNER = 8 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__JOIN_TYPE) -} PgQuery__JoinType; -typedef enum _PgQuery__AggStrategy { - PG_QUERY__AGG_STRATEGY__AGG_STRATEGY_UNDEFINED = 0, - PG_QUERY__AGG_STRATEGY__AGG_PLAIN = 1, - PG_QUERY__AGG_STRATEGY__AGG_SORTED = 2, - PG_QUERY__AGG_STRATEGY__AGG_HASHED = 3, - PG_QUERY__AGG_STRATEGY__AGG_MIXED = 4 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__AGG_STRATEGY) -} PgQuery__AggStrategy; -typedef enum _PgQuery__AggSplit { - PG_QUERY__AGG_SPLIT__AGG_SPLIT_UNDEFINED = 0, - PG_QUERY__AGG_SPLIT__AGGSPLIT_SIMPLE = 1, - PG_QUERY__AGG_SPLIT__AGGSPLIT_INITIAL_SERIAL = 2, - PG_QUERY__AGG_SPLIT__AGGSPLIT_FINAL_DESERIAL = 3 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__AGG_SPLIT) -} PgQuery__AggSplit; -typedef enum _PgQuery__SetOpCmd { - PG_QUERY__SET_OP_CMD__SET_OP_CMD_UNDEFINED = 0, - PG_QUERY__SET_OP_CMD__SETOPCMD_INTERSECT = 1, - PG_QUERY__SET_OP_CMD__SETOPCMD_INTERSECT_ALL = 2, - PG_QUERY__SET_OP_CMD__SETOPCMD_EXCEPT = 3, - PG_QUERY__SET_OP_CMD__SETOPCMD_EXCEPT_ALL = 4 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__SET_OP_CMD) -} PgQuery__SetOpCmd; -typedef enum _PgQuery__SetOpStrategy { - PG_QUERY__SET_OP_STRATEGY__SET_OP_STRATEGY_UNDEFINED = 0, - PG_QUERY__SET_OP_STRATEGY__SETOP_SORTED = 1, - PG_QUERY__SET_OP_STRATEGY__SETOP_HASHED = 2 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__SET_OP_STRATEGY) -} PgQuery__SetOpStrategy; -typedef enum _PgQuery__OnConflictAction { - PG_QUERY__ON_CONFLICT_ACTION__ON_CONFLICT_ACTION_UNDEFINED = 0, - PG_QUERY__ON_CONFLICT_ACTION__ONCONFLICT_NONE = 1, - PG_QUERY__ON_CONFLICT_ACTION__ONCONFLICT_NOTHING = 2, - PG_QUERY__ON_CONFLICT_ACTION__ONCONFLICT_UPDATE = 3 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__ON_CONFLICT_ACTION) -} PgQuery__OnConflictAction; -typedef enum _PgQuery__LimitOption { - PG_QUERY__LIMIT_OPTION__LIMIT_OPTION_UNDEFINED = 0, - PG_QUERY__LIMIT_OPTION__LIMIT_OPTION_DEFAULT = 1, - PG_QUERY__LIMIT_OPTION__LIMIT_OPTION_COUNT = 2, - PG_QUERY__LIMIT_OPTION__LIMIT_OPTION_WITH_TIES = 3 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__LIMIT_OPTION) -} PgQuery__LimitOption; -typedef enum _PgQuery__LockClauseStrength { - PG_QUERY__LOCK_CLAUSE_STRENGTH__LOCK_CLAUSE_STRENGTH_UNDEFINED = 0, - PG_QUERY__LOCK_CLAUSE_STRENGTH__LCS_NONE = 1, - PG_QUERY__LOCK_CLAUSE_STRENGTH__LCS_FORKEYSHARE = 2, - PG_QUERY__LOCK_CLAUSE_STRENGTH__LCS_FORSHARE = 3, - PG_QUERY__LOCK_CLAUSE_STRENGTH__LCS_FORNOKEYUPDATE = 4, - PG_QUERY__LOCK_CLAUSE_STRENGTH__LCS_FORUPDATE = 5 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__LOCK_CLAUSE_STRENGTH) -} PgQuery__LockClauseStrength; -typedef enum _PgQuery__LockWaitPolicy { - PG_QUERY__LOCK_WAIT_POLICY__LOCK_WAIT_POLICY_UNDEFINED = 0, - PG_QUERY__LOCK_WAIT_POLICY__LockWaitBlock = 1, - PG_QUERY__LOCK_WAIT_POLICY__LockWaitSkip = 2, - PG_QUERY__LOCK_WAIT_POLICY__LockWaitError = 3 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__LOCK_WAIT_POLICY) -} PgQuery__LockWaitPolicy; -typedef enum _PgQuery__LockTupleMode { - PG_QUERY__LOCK_TUPLE_MODE__LOCK_TUPLE_MODE_UNDEFINED = 0, - PG_QUERY__LOCK_TUPLE_MODE__LockTupleKeyShare = 1, - PG_QUERY__LOCK_TUPLE_MODE__LockTupleShare = 2, - PG_QUERY__LOCK_TUPLE_MODE__LockTupleNoKeyExclusive = 3, - PG_QUERY__LOCK_TUPLE_MODE__LockTupleExclusive = 4 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__LOCK_TUPLE_MODE) -} PgQuery__LockTupleMode; -typedef enum _PgQuery__KeywordKind { - PG_QUERY__KEYWORD_KIND__NO_KEYWORD = 0, - PG_QUERY__KEYWORD_KIND__UNRESERVED_KEYWORD = 1, - PG_QUERY__KEYWORD_KIND__COL_NAME_KEYWORD = 2, - PG_QUERY__KEYWORD_KIND__TYPE_FUNC_NAME_KEYWORD = 3, - PG_QUERY__KEYWORD_KIND__RESERVED_KEYWORD = 4 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__KEYWORD_KIND) -} PgQuery__KeywordKind; -typedef enum _PgQuery__Token { - PG_QUERY__TOKEN__NUL = 0, - /* - * Single-character tokens that are returned 1:1 (identical with "self" list in scan.l) - * Either supporting syntax, or single-character operators (some can be both) - * Also see https://www.postgresql.org/docs/12/sql-syntax-lexical.html#SQL-SYNTAX-SPECIAL-CHARS - */ - /* - * "%" - */ - PG_QUERY__TOKEN__ASCII_37 = 37, - /* - * "(" - */ - PG_QUERY__TOKEN__ASCII_40 = 40, - /* - * ")" - */ - PG_QUERY__TOKEN__ASCII_41 = 41, - /* - * "*" - */ - PG_QUERY__TOKEN__ASCII_42 = 42, - /* - * "+" - */ - PG_QUERY__TOKEN__ASCII_43 = 43, - /* - * "," - */ - PG_QUERY__TOKEN__ASCII_44 = 44, - /* - * "-" - */ - PG_QUERY__TOKEN__ASCII_45 = 45, - /* - * "." - */ - PG_QUERY__TOKEN__ASCII_46 = 46, - /* - * "/" - */ - PG_QUERY__TOKEN__ASCII_47 = 47, - /* - * ":" - */ - PG_QUERY__TOKEN__ASCII_58 = 58, - /* - * ";" - */ - PG_QUERY__TOKEN__ASCII_59 = 59, - /* - * "<" - */ - PG_QUERY__TOKEN__ASCII_60 = 60, - /* - * "=" - */ - PG_QUERY__TOKEN__ASCII_61 = 61, - /* - * ">" - */ - PG_QUERY__TOKEN__ASCII_62 = 62, - /* - * "?" - */ - PG_QUERY__TOKEN__ASCII_63 = 63, - /* - * "[" - */ - PG_QUERY__TOKEN__ASCII_91 = 91, - /* - * "\" - */ - PG_QUERY__TOKEN__ASCII_92 = 92, - /* - * "]" - */ - PG_QUERY__TOKEN__ASCII_93 = 93, - /* - * "^" - */ - PG_QUERY__TOKEN__ASCII_94 = 94, - /* - * Named tokens in scan.l - */ - PG_QUERY__TOKEN__IDENT = 258, - PG_QUERY__TOKEN__UIDENT = 259, - PG_QUERY__TOKEN__FCONST = 260, - PG_QUERY__TOKEN__SCONST = 261, - PG_QUERY__TOKEN__USCONST = 262, - PG_QUERY__TOKEN__BCONST = 263, - PG_QUERY__TOKEN__XCONST = 264, - PG_QUERY__TOKEN__Op = 265, - PG_QUERY__TOKEN__ICONST = 266, - PG_QUERY__TOKEN__PARAM = 267, - PG_QUERY__TOKEN__TYPECAST = 268, - PG_QUERY__TOKEN__DOT_DOT = 269, - PG_QUERY__TOKEN__COLON_EQUALS = 270, - PG_QUERY__TOKEN__EQUALS_GREATER = 271, - PG_QUERY__TOKEN__LESS_EQUALS = 272, - PG_QUERY__TOKEN__GREATER_EQUALS = 273, - PG_QUERY__TOKEN__NOT_EQUALS = 274, - PG_QUERY__TOKEN__SQL_COMMENT = 275, - PG_QUERY__TOKEN__C_COMMENT = 276, - PG_QUERY__TOKEN__ABORT_P = 277, - PG_QUERY__TOKEN__ABSOLUTE_P = 278, - PG_QUERY__TOKEN__ACCESS = 279, - PG_QUERY__TOKEN__ACTION = 280, - PG_QUERY__TOKEN__ADD_P = 281, - PG_QUERY__TOKEN__ADMIN = 282, - PG_QUERY__TOKEN__AFTER = 283, - PG_QUERY__TOKEN__AGGREGATE = 284, - PG_QUERY__TOKEN__ALL = 285, - PG_QUERY__TOKEN__ALSO = 286, - PG_QUERY__TOKEN__ALTER = 287, - PG_QUERY__TOKEN__ALWAYS = 288, - PG_QUERY__TOKEN__ANALYSE = 289, - PG_QUERY__TOKEN__ANALYZE = 290, - PG_QUERY__TOKEN__AND = 291, - PG_QUERY__TOKEN__ANY = 292, - PG_QUERY__TOKEN__ARRAY = 293, - PG_QUERY__TOKEN__AS = 294, - PG_QUERY__TOKEN__ASC = 295, - PG_QUERY__TOKEN__ASENSITIVE = 296, - PG_QUERY__TOKEN__ASSERTION = 297, - PG_QUERY__TOKEN__ASSIGNMENT = 298, - PG_QUERY__TOKEN__ASYMMETRIC = 299, - PG_QUERY__TOKEN__ATOMIC = 300, - PG_QUERY__TOKEN__AT = 301, - PG_QUERY__TOKEN__ATTACH = 302, - PG_QUERY__TOKEN__ATTRIBUTE = 303, - PG_QUERY__TOKEN__AUTHORIZATION = 304, - PG_QUERY__TOKEN__BACKWARD = 305, - PG_QUERY__TOKEN__BEFORE = 306, - PG_QUERY__TOKEN__BEGIN_P = 307, - PG_QUERY__TOKEN__BETWEEN = 308, - PG_QUERY__TOKEN__BIGINT = 309, - PG_QUERY__TOKEN__BINARY = 310, - PG_QUERY__TOKEN__BIT = 311, - PG_QUERY__TOKEN__BOOLEAN_P = 312, - PG_QUERY__TOKEN__BOTH = 313, - PG_QUERY__TOKEN__BREADTH = 314, - PG_QUERY__TOKEN__BY = 315, - PG_QUERY__TOKEN__CACHE = 316, - PG_QUERY__TOKEN__CALL = 317, - PG_QUERY__TOKEN__CALLED = 318, - PG_QUERY__TOKEN__CASCADE = 319, - PG_QUERY__TOKEN__CASCADED = 320, - PG_QUERY__TOKEN__CASE = 321, - PG_QUERY__TOKEN__CAST = 322, - PG_QUERY__TOKEN__CATALOG_P = 323, - PG_QUERY__TOKEN__CHAIN = 324, - PG_QUERY__TOKEN__CHAR_P = 325, - PG_QUERY__TOKEN__CHARACTER = 326, - PG_QUERY__TOKEN__CHARACTERISTICS = 327, - PG_QUERY__TOKEN__CHECK = 328, - PG_QUERY__TOKEN__CHECKPOINT = 329, - PG_QUERY__TOKEN__CLASS = 330, - PG_QUERY__TOKEN__CLOSE = 331, - PG_QUERY__TOKEN__CLUSTER = 332, - PG_QUERY__TOKEN__COALESCE = 333, - PG_QUERY__TOKEN__COLLATE = 334, - PG_QUERY__TOKEN__COLLATION = 335, - PG_QUERY__TOKEN__COLUMN = 336, - PG_QUERY__TOKEN__COLUMNS = 337, - PG_QUERY__TOKEN__COMMENT = 338, - PG_QUERY__TOKEN__COMMENTS = 339, - PG_QUERY__TOKEN__COMMIT = 340, - PG_QUERY__TOKEN__COMMITTED = 341, - PG_QUERY__TOKEN__COMPRESSION = 342, - PG_QUERY__TOKEN__CONCURRENTLY = 343, - PG_QUERY__TOKEN__CONFIGURATION = 344, - PG_QUERY__TOKEN__CONFLICT = 345, - PG_QUERY__TOKEN__CONNECTION = 346, - PG_QUERY__TOKEN__CONSTRAINT = 347, - PG_QUERY__TOKEN__CONSTRAINTS = 348, - PG_QUERY__TOKEN__CONTENT_P = 349, - PG_QUERY__TOKEN__CONTINUE_P = 350, - PG_QUERY__TOKEN__CONVERSION_P = 351, - PG_QUERY__TOKEN__COPY = 352, - PG_QUERY__TOKEN__COST = 353, - PG_QUERY__TOKEN__CREATE = 354, - PG_QUERY__TOKEN__CROSS = 355, - PG_QUERY__TOKEN__CSV = 356, - PG_QUERY__TOKEN__CUBE = 357, - PG_QUERY__TOKEN__CURRENT_P = 358, - PG_QUERY__TOKEN__CURRENT_CATALOG = 359, - PG_QUERY__TOKEN__CURRENT_DATE = 360, - PG_QUERY__TOKEN__CURRENT_ROLE = 361, - PG_QUERY__TOKEN__CURRENT_SCHEMA = 362, - PG_QUERY__TOKEN__CURRENT_TIME = 363, - PG_QUERY__TOKEN__CURRENT_TIMESTAMP = 364, - PG_QUERY__TOKEN__CURRENT_USER = 365, - PG_QUERY__TOKEN__CURSOR = 366, - PG_QUERY__TOKEN__CYCLE = 367, - PG_QUERY__TOKEN__DATA_P = 368, - PG_QUERY__TOKEN__DATABASE = 369, - PG_QUERY__TOKEN__DAY_P = 370, - PG_QUERY__TOKEN__DEALLOCATE = 371, - PG_QUERY__TOKEN__DEC = 372, - PG_QUERY__TOKEN__DECIMAL_P = 373, - PG_QUERY__TOKEN__DECLARE = 374, - PG_QUERY__TOKEN__DEFAULT = 375, - PG_QUERY__TOKEN__DEFAULTS = 376, - PG_QUERY__TOKEN__DEFERRABLE = 377, - PG_QUERY__TOKEN__DEFERRED = 378, - PG_QUERY__TOKEN__DEFINER = 379, - PG_QUERY__TOKEN__DELETE_P = 380, - PG_QUERY__TOKEN__DELIMITER = 381, - PG_QUERY__TOKEN__DELIMITERS = 382, - PG_QUERY__TOKEN__DEPENDS = 383, - PG_QUERY__TOKEN__DEPTH = 384, - PG_QUERY__TOKEN__DESC = 385, - PG_QUERY__TOKEN__DETACH = 386, - PG_QUERY__TOKEN__DICTIONARY = 387, - PG_QUERY__TOKEN__DISABLE_P = 388, - PG_QUERY__TOKEN__DISCARD = 389, - PG_QUERY__TOKEN__DISTINCT = 390, - PG_QUERY__TOKEN__DO = 391, - PG_QUERY__TOKEN__DOCUMENT_P = 392, - PG_QUERY__TOKEN__DOMAIN_P = 393, - PG_QUERY__TOKEN__DOUBLE_P = 394, - PG_QUERY__TOKEN__DROP = 395, - PG_QUERY__TOKEN__EACH = 396, - PG_QUERY__TOKEN__ELSE = 397, - PG_QUERY__TOKEN__ENABLE_P = 398, - PG_QUERY__TOKEN__ENCODING = 399, - PG_QUERY__TOKEN__ENCRYPTED = 400, - PG_QUERY__TOKEN__END_P = 401, - PG_QUERY__TOKEN__ENUM_P = 402, - PG_QUERY__TOKEN__ESCAPE = 403, - PG_QUERY__TOKEN__EVENT = 404, - PG_QUERY__TOKEN__EXCEPT = 405, - PG_QUERY__TOKEN__EXCLUDE = 406, - PG_QUERY__TOKEN__EXCLUDING = 407, - PG_QUERY__TOKEN__EXCLUSIVE = 408, - PG_QUERY__TOKEN__EXECUTE = 409, - PG_QUERY__TOKEN__EXISTS = 410, - PG_QUERY__TOKEN__EXPLAIN = 411, - PG_QUERY__TOKEN__EXPRESSION = 412, - PG_QUERY__TOKEN__EXTENSION = 413, - PG_QUERY__TOKEN__EXTERNAL = 414, - PG_QUERY__TOKEN__EXTRACT = 415, - PG_QUERY__TOKEN__FALSE_P = 416, - PG_QUERY__TOKEN__FAMILY = 417, - PG_QUERY__TOKEN__FETCH = 418, - PG_QUERY__TOKEN__FILTER = 419, - PG_QUERY__TOKEN__FINALIZE = 420, - PG_QUERY__TOKEN__FIRST_P = 421, - PG_QUERY__TOKEN__FLOAT_P = 422, - PG_QUERY__TOKEN__FOLLOWING = 423, - PG_QUERY__TOKEN__FOR = 424, - PG_QUERY__TOKEN__FORCE = 425, - PG_QUERY__TOKEN__FOREIGN = 426, - PG_QUERY__TOKEN__FORWARD = 427, - PG_QUERY__TOKEN__FREEZE = 428, - PG_QUERY__TOKEN__FROM = 429, - PG_QUERY__TOKEN__FULL = 430, - PG_QUERY__TOKEN__FUNCTION = 431, - PG_QUERY__TOKEN__FUNCTIONS = 432, - PG_QUERY__TOKEN__GENERATED = 433, - PG_QUERY__TOKEN__GLOBAL = 434, - PG_QUERY__TOKEN__GRANT = 435, - PG_QUERY__TOKEN__GRANTED = 436, - PG_QUERY__TOKEN__GREATEST = 437, - PG_QUERY__TOKEN__GROUP_P = 438, - PG_QUERY__TOKEN__GROUPING = 439, - PG_QUERY__TOKEN__GROUPS = 440, - PG_QUERY__TOKEN__HANDLER = 441, - PG_QUERY__TOKEN__HAVING = 442, - PG_QUERY__TOKEN__HEADER_P = 443, - PG_QUERY__TOKEN__HOLD = 444, - PG_QUERY__TOKEN__HOUR_P = 445, - PG_QUERY__TOKEN__IDENTITY_P = 446, - PG_QUERY__TOKEN__IF_P = 447, - PG_QUERY__TOKEN__ILIKE = 448, - PG_QUERY__TOKEN__IMMEDIATE = 449, - PG_QUERY__TOKEN__IMMUTABLE = 450, - PG_QUERY__TOKEN__IMPLICIT_P = 451, - PG_QUERY__TOKEN__IMPORT_P = 452, - PG_QUERY__TOKEN__IN_P = 453, - PG_QUERY__TOKEN__INCLUDE = 454, - PG_QUERY__TOKEN__INCLUDING = 455, - PG_QUERY__TOKEN__INCREMENT = 456, - PG_QUERY__TOKEN__INDEX = 457, - PG_QUERY__TOKEN__INDEXES = 458, - PG_QUERY__TOKEN__INHERIT = 459, - PG_QUERY__TOKEN__INHERITS = 460, - PG_QUERY__TOKEN__INITIALLY = 461, - PG_QUERY__TOKEN__INLINE_P = 462, - PG_QUERY__TOKEN__INNER_P = 463, - PG_QUERY__TOKEN__INOUT = 464, - PG_QUERY__TOKEN__INPUT_P = 465, - PG_QUERY__TOKEN__INSENSITIVE = 466, - PG_QUERY__TOKEN__INSERT = 467, - PG_QUERY__TOKEN__INSTEAD = 468, - PG_QUERY__TOKEN__INT_P = 469, - PG_QUERY__TOKEN__INTEGER = 470, - PG_QUERY__TOKEN__INTERSECT = 471, - PG_QUERY__TOKEN__INTERVAL = 472, - PG_QUERY__TOKEN__INTO = 473, - PG_QUERY__TOKEN__INVOKER = 474, - PG_QUERY__TOKEN__IS = 475, - PG_QUERY__TOKEN__ISNULL = 476, - PG_QUERY__TOKEN__ISOLATION = 477, - PG_QUERY__TOKEN__JOIN = 478, - PG_QUERY__TOKEN__KEY = 479, - PG_QUERY__TOKEN__LABEL = 480, - PG_QUERY__TOKEN__LANGUAGE = 481, - PG_QUERY__TOKEN__LARGE_P = 482, - PG_QUERY__TOKEN__LAST_P = 483, - PG_QUERY__TOKEN__LATERAL_P = 484, - PG_QUERY__TOKEN__LEADING = 485, - PG_QUERY__TOKEN__LEAKPROOF = 486, - PG_QUERY__TOKEN__LEAST = 487, - PG_QUERY__TOKEN__LEFT = 488, - PG_QUERY__TOKEN__LEVEL = 489, - PG_QUERY__TOKEN__LIKE = 490, - PG_QUERY__TOKEN__LIMIT = 491, - PG_QUERY__TOKEN__LISTEN = 492, - PG_QUERY__TOKEN__LOAD = 493, - PG_QUERY__TOKEN__LOCAL = 494, - PG_QUERY__TOKEN__LOCALTIME = 495, - PG_QUERY__TOKEN__LOCALTIMESTAMP = 496, - PG_QUERY__TOKEN__LOCATION = 497, - PG_QUERY__TOKEN__LOCK_P = 498, - PG_QUERY__TOKEN__LOCKED = 499, - PG_QUERY__TOKEN__LOGGED = 500, - PG_QUERY__TOKEN__MAPPING = 501, - PG_QUERY__TOKEN__MATCH = 502, - PG_QUERY__TOKEN__MATCHED = 503, - PG_QUERY__TOKEN__MATERIALIZED = 504, - PG_QUERY__TOKEN__MAXVALUE = 505, - PG_QUERY__TOKEN__MERGE = 506, - PG_QUERY__TOKEN__METHOD = 507, - PG_QUERY__TOKEN__MINUTE_P = 508, - PG_QUERY__TOKEN__MINVALUE = 509, - PG_QUERY__TOKEN__MODE = 510, - PG_QUERY__TOKEN__MONTH_P = 511, - PG_QUERY__TOKEN__MOVE = 512, - PG_QUERY__TOKEN__NAME_P = 513, - PG_QUERY__TOKEN__NAMES = 514, - PG_QUERY__TOKEN__NATIONAL = 515, - PG_QUERY__TOKEN__NATURAL = 516, - PG_QUERY__TOKEN__NCHAR = 517, - PG_QUERY__TOKEN__NEW = 518, - PG_QUERY__TOKEN__NEXT = 519, - PG_QUERY__TOKEN__NFC = 520, - PG_QUERY__TOKEN__NFD = 521, - PG_QUERY__TOKEN__NFKC = 522, - PG_QUERY__TOKEN__NFKD = 523, - PG_QUERY__TOKEN__NO = 524, - PG_QUERY__TOKEN__NONE = 525, - PG_QUERY__TOKEN__NORMALIZE = 526, - PG_QUERY__TOKEN__NORMALIZED = 527, - PG_QUERY__TOKEN__NOT = 528, - PG_QUERY__TOKEN__NOTHING = 529, - PG_QUERY__TOKEN__NOTIFY = 530, - PG_QUERY__TOKEN__NOTNULL = 531, - PG_QUERY__TOKEN__NOWAIT = 532, - PG_QUERY__TOKEN__NULL_P = 533, - PG_QUERY__TOKEN__NULLIF = 534, - PG_QUERY__TOKEN__NULLS_P = 535, - PG_QUERY__TOKEN__NUMERIC = 536, - PG_QUERY__TOKEN__OBJECT_P = 537, - PG_QUERY__TOKEN__OF = 538, - PG_QUERY__TOKEN__OFF = 539, - PG_QUERY__TOKEN__OFFSET = 540, - PG_QUERY__TOKEN__OIDS = 541, - PG_QUERY__TOKEN__OLD = 542, - PG_QUERY__TOKEN__ON = 543, - PG_QUERY__TOKEN__ONLY = 544, - PG_QUERY__TOKEN__OPERATOR = 545, - PG_QUERY__TOKEN__OPTION = 546, - PG_QUERY__TOKEN__OPTIONS = 547, - PG_QUERY__TOKEN__OR = 548, - PG_QUERY__TOKEN__ORDER = 549, - PG_QUERY__TOKEN__ORDINALITY = 550, - PG_QUERY__TOKEN__OTHERS = 551, - PG_QUERY__TOKEN__OUT_P = 552, - PG_QUERY__TOKEN__OUTER_P = 553, - PG_QUERY__TOKEN__OVER = 554, - PG_QUERY__TOKEN__OVERLAPS = 555, - PG_QUERY__TOKEN__OVERLAY = 556, - PG_QUERY__TOKEN__OVERRIDING = 557, - PG_QUERY__TOKEN__OWNED = 558, - PG_QUERY__TOKEN__OWNER = 559, - PG_QUERY__TOKEN__PARALLEL = 560, - PG_QUERY__TOKEN__PARAMETER = 561, - PG_QUERY__TOKEN__PARSER = 562, - PG_QUERY__TOKEN__PARTIAL = 563, - PG_QUERY__TOKEN__PARTITION = 564, - PG_QUERY__TOKEN__PASSING = 565, - PG_QUERY__TOKEN__PASSWORD = 566, - PG_QUERY__TOKEN__PLACING = 567, - PG_QUERY__TOKEN__PLANS = 568, - PG_QUERY__TOKEN__POLICY = 569, - PG_QUERY__TOKEN__POSITION = 570, - PG_QUERY__TOKEN__PRECEDING = 571, - PG_QUERY__TOKEN__PRECISION = 572, - PG_QUERY__TOKEN__PRESERVE = 573, - PG_QUERY__TOKEN__PREPARE = 574, - PG_QUERY__TOKEN__PREPARED = 575, - PG_QUERY__TOKEN__PRIMARY = 576, - PG_QUERY__TOKEN__PRIOR = 577, - PG_QUERY__TOKEN__PRIVILEGES = 578, - PG_QUERY__TOKEN__PROCEDURAL = 579, - PG_QUERY__TOKEN__PROCEDURE = 580, - PG_QUERY__TOKEN__PROCEDURES = 581, - PG_QUERY__TOKEN__PROGRAM = 582, - PG_QUERY__TOKEN__PUBLICATION = 583, - PG_QUERY__TOKEN__QUOTE = 584, - PG_QUERY__TOKEN__RANGE = 585, - PG_QUERY__TOKEN__READ = 586, - PG_QUERY__TOKEN__REAL = 587, - PG_QUERY__TOKEN__REASSIGN = 588, - PG_QUERY__TOKEN__RECHECK = 589, - PG_QUERY__TOKEN__RECURSIVE = 590, - PG_QUERY__TOKEN__REF_P = 591, - PG_QUERY__TOKEN__REFERENCES = 592, - PG_QUERY__TOKEN__REFERENCING = 593, - PG_QUERY__TOKEN__REFRESH = 594, - PG_QUERY__TOKEN__REINDEX = 595, - PG_QUERY__TOKEN__RELATIVE_P = 596, - PG_QUERY__TOKEN__RELEASE = 597, - PG_QUERY__TOKEN__RENAME = 598, - PG_QUERY__TOKEN__REPEATABLE = 599, - PG_QUERY__TOKEN__REPLACE = 600, - PG_QUERY__TOKEN__REPLICA = 601, - PG_QUERY__TOKEN__RESET = 602, - PG_QUERY__TOKEN__RESTART = 603, - PG_QUERY__TOKEN__RESTRICT = 604, - PG_QUERY__TOKEN__RETURN = 605, - PG_QUERY__TOKEN__RETURNING = 606, - PG_QUERY__TOKEN__RETURNS = 607, - PG_QUERY__TOKEN__REVOKE = 608, - PG_QUERY__TOKEN__RIGHT = 609, - PG_QUERY__TOKEN__ROLE = 610, - PG_QUERY__TOKEN__ROLLBACK = 611, - PG_QUERY__TOKEN__ROLLUP = 612, - PG_QUERY__TOKEN__ROUTINE = 613, - PG_QUERY__TOKEN__ROUTINES = 614, - PG_QUERY__TOKEN__ROW = 615, - PG_QUERY__TOKEN__ROWS = 616, - PG_QUERY__TOKEN__RULE = 617, - PG_QUERY__TOKEN__SAVEPOINT = 618, - PG_QUERY__TOKEN__SCHEMA = 619, - PG_QUERY__TOKEN__SCHEMAS = 620, - PG_QUERY__TOKEN__SCROLL = 621, - PG_QUERY__TOKEN__SEARCH = 622, - PG_QUERY__TOKEN__SECOND_P = 623, - PG_QUERY__TOKEN__SECURITY = 624, - PG_QUERY__TOKEN__SELECT = 625, - PG_QUERY__TOKEN__SEQUENCE = 626, - PG_QUERY__TOKEN__SEQUENCES = 627, - PG_QUERY__TOKEN__SERIALIZABLE = 628, - PG_QUERY__TOKEN__SERVER = 629, - PG_QUERY__TOKEN__SESSION = 630, - PG_QUERY__TOKEN__SESSION_USER = 631, - PG_QUERY__TOKEN__SET = 632, - PG_QUERY__TOKEN__SETS = 633, - PG_QUERY__TOKEN__SETOF = 634, - PG_QUERY__TOKEN__SHARE = 635, - PG_QUERY__TOKEN__SHOW = 636, - PG_QUERY__TOKEN__SIMILAR = 637, - PG_QUERY__TOKEN__SIMPLE = 638, - PG_QUERY__TOKEN__SKIP = 639, - PG_QUERY__TOKEN__SMALLINT = 640, - PG_QUERY__TOKEN__SNAPSHOT = 641, - PG_QUERY__TOKEN__SOME = 642, - PG_QUERY__TOKEN__SQL_P = 643, - PG_QUERY__TOKEN__STABLE = 644, - PG_QUERY__TOKEN__STANDALONE_P = 645, - PG_QUERY__TOKEN__START = 646, - PG_QUERY__TOKEN__STATEMENT = 647, - PG_QUERY__TOKEN__STATISTICS = 648, - PG_QUERY__TOKEN__STDIN = 649, - PG_QUERY__TOKEN__STDOUT = 650, - PG_QUERY__TOKEN__STORAGE = 651, - PG_QUERY__TOKEN__STORED = 652, - PG_QUERY__TOKEN__STRICT_P = 653, - PG_QUERY__TOKEN__STRIP_P = 654, - PG_QUERY__TOKEN__SUBSCRIPTION = 655, - PG_QUERY__TOKEN__SUBSTRING = 656, - PG_QUERY__TOKEN__SUPPORT = 657, - PG_QUERY__TOKEN__SYMMETRIC = 658, - PG_QUERY__TOKEN__SYSID = 659, - PG_QUERY__TOKEN__SYSTEM_P = 660, - PG_QUERY__TOKEN__TABLE = 661, - PG_QUERY__TOKEN__TABLES = 662, - PG_QUERY__TOKEN__TABLESAMPLE = 663, - PG_QUERY__TOKEN__TABLESPACE = 664, - PG_QUERY__TOKEN__TEMP = 665, - PG_QUERY__TOKEN__TEMPLATE = 666, - PG_QUERY__TOKEN__TEMPORARY = 667, - PG_QUERY__TOKEN__TEXT_P = 668, - PG_QUERY__TOKEN__THEN = 669, - PG_QUERY__TOKEN__TIES = 670, - PG_QUERY__TOKEN__TIME = 671, - PG_QUERY__TOKEN__TIMESTAMP = 672, - PG_QUERY__TOKEN__TO = 673, - PG_QUERY__TOKEN__TRAILING = 674, - PG_QUERY__TOKEN__TRANSACTION = 675, - PG_QUERY__TOKEN__TRANSFORM = 676, - PG_QUERY__TOKEN__TREAT = 677, - PG_QUERY__TOKEN__TRIGGER = 678, - PG_QUERY__TOKEN__TRIM = 679, - PG_QUERY__TOKEN__TRUE_P = 680, - PG_QUERY__TOKEN__TRUNCATE = 681, - PG_QUERY__TOKEN__TRUSTED = 682, - PG_QUERY__TOKEN__TYPE_P = 683, - PG_QUERY__TOKEN__TYPES_P = 684, - PG_QUERY__TOKEN__UESCAPE = 685, - PG_QUERY__TOKEN__UNBOUNDED = 686, - PG_QUERY__TOKEN__UNCOMMITTED = 687, - PG_QUERY__TOKEN__UNENCRYPTED = 688, - PG_QUERY__TOKEN__UNION = 689, - PG_QUERY__TOKEN__UNIQUE = 690, - PG_QUERY__TOKEN__UNKNOWN = 691, - PG_QUERY__TOKEN__UNLISTEN = 692, - PG_QUERY__TOKEN__UNLOGGED = 693, - PG_QUERY__TOKEN__UNTIL = 694, - PG_QUERY__TOKEN__UPDATE = 695, - PG_QUERY__TOKEN__USER = 696, - PG_QUERY__TOKEN__USING = 697, - PG_QUERY__TOKEN__VACUUM = 698, - PG_QUERY__TOKEN__VALID = 699, - PG_QUERY__TOKEN__VALIDATE = 700, - PG_QUERY__TOKEN__VALIDATOR = 701, - PG_QUERY__TOKEN__VALUE_P = 702, - PG_QUERY__TOKEN__VALUES = 703, - PG_QUERY__TOKEN__VARCHAR = 704, - PG_QUERY__TOKEN__VARIADIC = 705, - PG_QUERY__TOKEN__VARYING = 706, - PG_QUERY__TOKEN__VERBOSE = 707, - PG_QUERY__TOKEN__VERSION_P = 708, - PG_QUERY__TOKEN__VIEW = 709, - PG_QUERY__TOKEN__VIEWS = 710, - PG_QUERY__TOKEN__VOLATILE = 711, - PG_QUERY__TOKEN__WHEN = 712, - PG_QUERY__TOKEN__WHERE = 713, - PG_QUERY__TOKEN__WHITESPACE_P = 714, - PG_QUERY__TOKEN__WINDOW = 715, - PG_QUERY__TOKEN__WITH = 716, - PG_QUERY__TOKEN__WITHIN = 717, - PG_QUERY__TOKEN__WITHOUT = 718, - PG_QUERY__TOKEN__WORK = 719, - PG_QUERY__TOKEN__WRAPPER = 720, - PG_QUERY__TOKEN__WRITE = 721, - PG_QUERY__TOKEN__XML_P = 722, - PG_QUERY__TOKEN__XMLATTRIBUTES = 723, - PG_QUERY__TOKEN__XMLCONCAT = 724, - PG_QUERY__TOKEN__XMLELEMENT = 725, - PG_QUERY__TOKEN__XMLEXISTS = 726, - PG_QUERY__TOKEN__XMLFOREST = 727, - PG_QUERY__TOKEN__XMLNAMESPACES = 728, - PG_QUERY__TOKEN__XMLPARSE = 729, - PG_QUERY__TOKEN__XMLPI = 730, - PG_QUERY__TOKEN__XMLROOT = 731, - PG_QUERY__TOKEN__XMLSERIALIZE = 732, - PG_QUERY__TOKEN__XMLTABLE = 733, - PG_QUERY__TOKEN__YEAR_P = 734, - PG_QUERY__TOKEN__YES_P = 735, - PG_QUERY__TOKEN__ZONE = 736, - PG_QUERY__TOKEN__NOT_LA = 737, - PG_QUERY__TOKEN__NULLS_LA = 738, - PG_QUERY__TOKEN__WITH_LA = 739, - PG_QUERY__TOKEN__MODE_TYPE_NAME = 740, - PG_QUERY__TOKEN__MODE_PLPGSQL_EXPR = 741, - PG_QUERY__TOKEN__MODE_PLPGSQL_ASSIGN1 = 742, - PG_QUERY__TOKEN__MODE_PLPGSQL_ASSIGN2 = 743, - PG_QUERY__TOKEN__MODE_PLPGSQL_ASSIGN3 = 744, - PG_QUERY__TOKEN__UMINUS = 745 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__TOKEN) -} PgQuery__Token; - -/* --- messages --- */ - -struct PgQuery__ParseResult -{ - ProtobufCMessage base; - int32_t version; - size_t n_stmts; - PgQuery__RawStmt **stmts; -}; -#define PG_QUERY__PARSE_RESULT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__parse_result__descriptor) \ - , 0, 0,NULL } - - -struct PgQuery__ScanResult -{ - ProtobufCMessage base; - int32_t version; - size_t n_tokens; - PgQuery__ScanToken **tokens; -}; -#define PG_QUERY__SCAN_RESULT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__scan_result__descriptor) \ - , 0, 0,NULL } - - -typedef enum { - PG_QUERY__NODE__NODE__NOT_SET = 0, - PG_QUERY__NODE__NODE_ALIAS = 1, - PG_QUERY__NODE__NODE_RANGE_VAR = 2, - PG_QUERY__NODE__NODE_TABLE_FUNC = 3, - PG_QUERY__NODE__NODE_VAR = 4, - PG_QUERY__NODE__NODE_PARAM = 5, - PG_QUERY__NODE__NODE_AGGREF = 6, - PG_QUERY__NODE__NODE_GROUPING_FUNC = 7, - PG_QUERY__NODE__NODE_WINDOW_FUNC = 8, - PG_QUERY__NODE__NODE_SUBSCRIPTING_REF = 9, - PG_QUERY__NODE__NODE_FUNC_EXPR = 10, - PG_QUERY__NODE__NODE_NAMED_ARG_EXPR = 11, - PG_QUERY__NODE__NODE_OP_EXPR = 12, - PG_QUERY__NODE__NODE_DISTINCT_EXPR = 13, - PG_QUERY__NODE__NODE_NULL_IF_EXPR = 14, - PG_QUERY__NODE__NODE_SCALAR_ARRAY_OP_EXPR = 15, - PG_QUERY__NODE__NODE_BOOL_EXPR = 16, - PG_QUERY__NODE__NODE_SUB_LINK = 17, - PG_QUERY__NODE__NODE_SUB_PLAN = 18, - PG_QUERY__NODE__NODE_ALTERNATIVE_SUB_PLAN = 19, - PG_QUERY__NODE__NODE_FIELD_SELECT = 20, - PG_QUERY__NODE__NODE_FIELD_STORE = 21, - PG_QUERY__NODE__NODE_RELABEL_TYPE = 22, - PG_QUERY__NODE__NODE_COERCE_VIA_IO = 23, - PG_QUERY__NODE__NODE_ARRAY_COERCE_EXPR = 24, - PG_QUERY__NODE__NODE_CONVERT_ROWTYPE_EXPR = 25, - PG_QUERY__NODE__NODE_COLLATE_EXPR = 26, - PG_QUERY__NODE__NODE_CASE_EXPR = 27, - PG_QUERY__NODE__NODE_CASE_WHEN = 28, - PG_QUERY__NODE__NODE_CASE_TEST_EXPR = 29, - PG_QUERY__NODE__NODE_ARRAY_EXPR = 30, - PG_QUERY__NODE__NODE_ROW_EXPR = 31, - PG_QUERY__NODE__NODE_ROW_COMPARE_EXPR = 32, - PG_QUERY__NODE__NODE_COALESCE_EXPR = 33, - PG_QUERY__NODE__NODE_MIN_MAX_EXPR = 34, - PG_QUERY__NODE__NODE_SQLVALUE_FUNCTION = 35, - PG_QUERY__NODE__NODE_XML_EXPR = 36, - PG_QUERY__NODE__NODE_NULL_TEST = 37, - PG_QUERY__NODE__NODE_BOOLEAN_TEST = 38, - PG_QUERY__NODE__NODE_COERCE_TO_DOMAIN = 39, - PG_QUERY__NODE__NODE_COERCE_TO_DOMAIN_VALUE = 40, - PG_QUERY__NODE__NODE_SET_TO_DEFAULT = 41, - PG_QUERY__NODE__NODE_CURRENT_OF_EXPR = 42, - PG_QUERY__NODE__NODE_NEXT_VALUE_EXPR = 43, - PG_QUERY__NODE__NODE_INFERENCE_ELEM = 44, - PG_QUERY__NODE__NODE_TARGET_ENTRY = 45, - PG_QUERY__NODE__NODE_RANGE_TBL_REF = 46, - PG_QUERY__NODE__NODE_JOIN_EXPR = 47, - PG_QUERY__NODE__NODE_FROM_EXPR = 48, - PG_QUERY__NODE__NODE_ON_CONFLICT_EXPR = 49, - PG_QUERY__NODE__NODE_INTO_CLAUSE = 50, - PG_QUERY__NODE__NODE_MERGE_ACTION = 51, - PG_QUERY__NODE__NODE_RAW_STMT = 52, - PG_QUERY__NODE__NODE_QUERY = 53, - PG_QUERY__NODE__NODE_INSERT_STMT = 54, - PG_QUERY__NODE__NODE_DELETE_STMT = 55, - PG_QUERY__NODE__NODE_UPDATE_STMT = 56, - PG_QUERY__NODE__NODE_MERGE_STMT = 57, - PG_QUERY__NODE__NODE_SELECT_STMT = 58, - PG_QUERY__NODE__NODE_RETURN_STMT = 59, - PG_QUERY__NODE__NODE_PLASSIGN_STMT = 60, - PG_QUERY__NODE__NODE_ALTER_TABLE_STMT = 61, - PG_QUERY__NODE__NODE_ALTER_TABLE_CMD = 62, - PG_QUERY__NODE__NODE_ALTER_DOMAIN_STMT = 63, - PG_QUERY__NODE__NODE_SET_OPERATION_STMT = 64, - PG_QUERY__NODE__NODE_GRANT_STMT = 65, - PG_QUERY__NODE__NODE_GRANT_ROLE_STMT = 66, - PG_QUERY__NODE__NODE_ALTER_DEFAULT_PRIVILEGES_STMT = 67, - PG_QUERY__NODE__NODE_CLOSE_PORTAL_STMT = 68, - PG_QUERY__NODE__NODE_CLUSTER_STMT = 69, - PG_QUERY__NODE__NODE_COPY_STMT = 70, - PG_QUERY__NODE__NODE_CREATE_STMT = 71, - PG_QUERY__NODE__NODE_DEFINE_STMT = 72, - PG_QUERY__NODE__NODE_DROP_STMT = 73, - PG_QUERY__NODE__NODE_TRUNCATE_STMT = 74, - PG_QUERY__NODE__NODE_COMMENT_STMT = 75, - PG_QUERY__NODE__NODE_FETCH_STMT = 76, - PG_QUERY__NODE__NODE_INDEX_STMT = 77, - PG_QUERY__NODE__NODE_CREATE_FUNCTION_STMT = 78, - PG_QUERY__NODE__NODE_ALTER_FUNCTION_STMT = 79, - PG_QUERY__NODE__NODE_DO_STMT = 80, - PG_QUERY__NODE__NODE_RENAME_STMT = 81, - PG_QUERY__NODE__NODE_RULE_STMT = 82, - PG_QUERY__NODE__NODE_NOTIFY_STMT = 83, - PG_QUERY__NODE__NODE_LISTEN_STMT = 84, - PG_QUERY__NODE__NODE_UNLISTEN_STMT = 85, - PG_QUERY__NODE__NODE_TRANSACTION_STMT = 86, - PG_QUERY__NODE__NODE_VIEW_STMT = 87, - PG_QUERY__NODE__NODE_LOAD_STMT = 88, - PG_QUERY__NODE__NODE_CREATE_DOMAIN_STMT = 89, - PG_QUERY__NODE__NODE_CREATEDB_STMT = 90, - PG_QUERY__NODE__NODE_DROPDB_STMT = 91, - PG_QUERY__NODE__NODE_VACUUM_STMT = 92, - PG_QUERY__NODE__NODE_EXPLAIN_STMT = 93, - PG_QUERY__NODE__NODE_CREATE_TABLE_AS_STMT = 94, - PG_QUERY__NODE__NODE_CREATE_SEQ_STMT = 95, - PG_QUERY__NODE__NODE_ALTER_SEQ_STMT = 96, - PG_QUERY__NODE__NODE_VARIABLE_SET_STMT = 97, - PG_QUERY__NODE__NODE_VARIABLE_SHOW_STMT = 98, - PG_QUERY__NODE__NODE_DISCARD_STMT = 99, - PG_QUERY__NODE__NODE_CREATE_TRIG_STMT = 100, - PG_QUERY__NODE__NODE_CREATE_PLANG_STMT = 101, - PG_QUERY__NODE__NODE_CREATE_ROLE_STMT = 102, - PG_QUERY__NODE__NODE_ALTER_ROLE_STMT = 103, - PG_QUERY__NODE__NODE_DROP_ROLE_STMT = 104, - PG_QUERY__NODE__NODE_LOCK_STMT = 105, - PG_QUERY__NODE__NODE_CONSTRAINTS_SET_STMT = 106, - PG_QUERY__NODE__NODE_REINDEX_STMT = 107, - PG_QUERY__NODE__NODE_CHECK_POINT_STMT = 108, - PG_QUERY__NODE__NODE_CREATE_SCHEMA_STMT = 109, - PG_QUERY__NODE__NODE_ALTER_DATABASE_STMT = 110, - PG_QUERY__NODE__NODE_ALTER_DATABASE_REFRESH_COLL_STMT = 111, - PG_QUERY__NODE__NODE_ALTER_DATABASE_SET_STMT = 112, - PG_QUERY__NODE__NODE_ALTER_ROLE_SET_STMT = 113, - PG_QUERY__NODE__NODE_CREATE_CONVERSION_STMT = 114, - PG_QUERY__NODE__NODE_CREATE_CAST_STMT = 115, - PG_QUERY__NODE__NODE_CREATE_OP_CLASS_STMT = 116, - PG_QUERY__NODE__NODE_CREATE_OP_FAMILY_STMT = 117, - PG_QUERY__NODE__NODE_ALTER_OP_FAMILY_STMT = 118, - PG_QUERY__NODE__NODE_PREPARE_STMT = 119, - PG_QUERY__NODE__NODE_EXECUTE_STMT = 120, - PG_QUERY__NODE__NODE_DEALLOCATE_STMT = 121, - PG_QUERY__NODE__NODE_DECLARE_CURSOR_STMT = 122, - PG_QUERY__NODE__NODE_CREATE_TABLE_SPACE_STMT = 123, - PG_QUERY__NODE__NODE_DROP_TABLE_SPACE_STMT = 124, - PG_QUERY__NODE__NODE_ALTER_OBJECT_DEPENDS_STMT = 125, - PG_QUERY__NODE__NODE_ALTER_OBJECT_SCHEMA_STMT = 126, - PG_QUERY__NODE__NODE_ALTER_OWNER_STMT = 127, - PG_QUERY__NODE__NODE_ALTER_OPERATOR_STMT = 128, - PG_QUERY__NODE__NODE_ALTER_TYPE_STMT = 129, - PG_QUERY__NODE__NODE_DROP_OWNED_STMT = 130, - PG_QUERY__NODE__NODE_REASSIGN_OWNED_STMT = 131, - PG_QUERY__NODE__NODE_COMPOSITE_TYPE_STMT = 132, - PG_QUERY__NODE__NODE_CREATE_ENUM_STMT = 133, - PG_QUERY__NODE__NODE_CREATE_RANGE_STMT = 134, - PG_QUERY__NODE__NODE_ALTER_ENUM_STMT = 135, - PG_QUERY__NODE__NODE_ALTER_TSDICTIONARY_STMT = 136, - PG_QUERY__NODE__NODE_ALTER_TSCONFIGURATION_STMT = 137, - PG_QUERY__NODE__NODE_CREATE_FDW_STMT = 138, - PG_QUERY__NODE__NODE_ALTER_FDW_STMT = 139, - PG_QUERY__NODE__NODE_CREATE_FOREIGN_SERVER_STMT = 140, - PG_QUERY__NODE__NODE_ALTER_FOREIGN_SERVER_STMT = 141, - PG_QUERY__NODE__NODE_CREATE_USER_MAPPING_STMT = 142, - PG_QUERY__NODE__NODE_ALTER_USER_MAPPING_STMT = 143, - PG_QUERY__NODE__NODE_DROP_USER_MAPPING_STMT = 144, - PG_QUERY__NODE__NODE_ALTER_TABLE_SPACE_OPTIONS_STMT = 145, - PG_QUERY__NODE__NODE_ALTER_TABLE_MOVE_ALL_STMT = 146, - PG_QUERY__NODE__NODE_SEC_LABEL_STMT = 147, - PG_QUERY__NODE__NODE_CREATE_FOREIGN_TABLE_STMT = 148, - PG_QUERY__NODE__NODE_IMPORT_FOREIGN_SCHEMA_STMT = 149, - PG_QUERY__NODE__NODE_CREATE_EXTENSION_STMT = 150, - PG_QUERY__NODE__NODE_ALTER_EXTENSION_STMT = 151, - PG_QUERY__NODE__NODE_ALTER_EXTENSION_CONTENTS_STMT = 152, - PG_QUERY__NODE__NODE_CREATE_EVENT_TRIG_STMT = 153, - PG_QUERY__NODE__NODE_ALTER_EVENT_TRIG_STMT = 154, - PG_QUERY__NODE__NODE_REFRESH_MAT_VIEW_STMT = 155, - PG_QUERY__NODE__NODE_REPLICA_IDENTITY_STMT = 156, - PG_QUERY__NODE__NODE_ALTER_SYSTEM_STMT = 157, - PG_QUERY__NODE__NODE_CREATE_POLICY_STMT = 158, - PG_QUERY__NODE__NODE_ALTER_POLICY_STMT = 159, - PG_QUERY__NODE__NODE_CREATE_TRANSFORM_STMT = 160, - PG_QUERY__NODE__NODE_CREATE_AM_STMT = 161, - PG_QUERY__NODE__NODE_CREATE_PUBLICATION_STMT = 162, - PG_QUERY__NODE__NODE_ALTER_PUBLICATION_STMT = 163, - PG_QUERY__NODE__NODE_CREATE_SUBSCRIPTION_STMT = 164, - PG_QUERY__NODE__NODE_ALTER_SUBSCRIPTION_STMT = 165, - PG_QUERY__NODE__NODE_DROP_SUBSCRIPTION_STMT = 166, - PG_QUERY__NODE__NODE_CREATE_STATS_STMT = 167, - PG_QUERY__NODE__NODE_ALTER_COLLATION_STMT = 168, - PG_QUERY__NODE__NODE_CALL_STMT = 169, - PG_QUERY__NODE__NODE_ALTER_STATS_STMT = 170, - PG_QUERY__NODE__NODE_A_EXPR = 171, - PG_QUERY__NODE__NODE_COLUMN_REF = 172, - PG_QUERY__NODE__NODE_PARAM_REF = 173, - PG_QUERY__NODE__NODE_FUNC_CALL = 174, - PG_QUERY__NODE__NODE_A_STAR = 175, - PG_QUERY__NODE__NODE_A_INDICES = 176, - PG_QUERY__NODE__NODE_A_INDIRECTION = 177, - PG_QUERY__NODE__NODE_A_ARRAY_EXPR = 178, - PG_QUERY__NODE__NODE_RES_TARGET = 179, - PG_QUERY__NODE__NODE_MULTI_ASSIGN_REF = 180, - PG_QUERY__NODE__NODE_TYPE_CAST = 181, - PG_QUERY__NODE__NODE_COLLATE_CLAUSE = 182, - PG_QUERY__NODE__NODE_SORT_BY = 183, - PG_QUERY__NODE__NODE_WINDOW_DEF = 184, - PG_QUERY__NODE__NODE_RANGE_SUBSELECT = 185, - PG_QUERY__NODE__NODE_RANGE_FUNCTION = 186, - PG_QUERY__NODE__NODE_RANGE_TABLE_SAMPLE = 187, - PG_QUERY__NODE__NODE_RANGE_TABLE_FUNC = 188, - PG_QUERY__NODE__NODE_RANGE_TABLE_FUNC_COL = 189, - PG_QUERY__NODE__NODE_TYPE_NAME = 190, - PG_QUERY__NODE__NODE_COLUMN_DEF = 191, - PG_QUERY__NODE__NODE_INDEX_ELEM = 192, - PG_QUERY__NODE__NODE_STATS_ELEM = 193, - PG_QUERY__NODE__NODE_CONSTRAINT = 194, - PG_QUERY__NODE__NODE_DEF_ELEM = 195, - PG_QUERY__NODE__NODE_RANGE_TBL_ENTRY = 196, - PG_QUERY__NODE__NODE_RANGE_TBL_FUNCTION = 197, - PG_QUERY__NODE__NODE_TABLE_SAMPLE_CLAUSE = 198, - PG_QUERY__NODE__NODE_WITH_CHECK_OPTION = 199, - PG_QUERY__NODE__NODE_SORT_GROUP_CLAUSE = 200, - PG_QUERY__NODE__NODE_GROUPING_SET = 201, - PG_QUERY__NODE__NODE_WINDOW_CLAUSE = 202, - PG_QUERY__NODE__NODE_OBJECT_WITH_ARGS = 203, - PG_QUERY__NODE__NODE_ACCESS_PRIV = 204, - PG_QUERY__NODE__NODE_CREATE_OP_CLASS_ITEM = 205, - PG_QUERY__NODE__NODE_TABLE_LIKE_CLAUSE = 206, - PG_QUERY__NODE__NODE_FUNCTION_PARAMETER = 207, - PG_QUERY__NODE__NODE_LOCKING_CLAUSE = 208, - PG_QUERY__NODE__NODE_ROW_MARK_CLAUSE = 209, - PG_QUERY__NODE__NODE_XML_SERIALIZE = 210, - PG_QUERY__NODE__NODE_WITH_CLAUSE = 211, - PG_QUERY__NODE__NODE_INFER_CLAUSE = 212, - PG_QUERY__NODE__NODE_ON_CONFLICT_CLAUSE = 213, - PG_QUERY__NODE__NODE_CTESEARCH_CLAUSE = 214, - PG_QUERY__NODE__NODE_CTECYCLE_CLAUSE = 215, - PG_QUERY__NODE__NODE_COMMON_TABLE_EXPR = 216, - PG_QUERY__NODE__NODE_MERGE_WHEN_CLAUSE = 217, - PG_QUERY__NODE__NODE_ROLE_SPEC = 218, - PG_QUERY__NODE__NODE_TRIGGER_TRANSITION = 219, - PG_QUERY__NODE__NODE_PARTITION_ELEM = 220, - PG_QUERY__NODE__NODE_PARTITION_SPEC = 221, - PG_QUERY__NODE__NODE_PARTITION_BOUND_SPEC = 222, - PG_QUERY__NODE__NODE_PARTITION_RANGE_DATUM = 223, - PG_QUERY__NODE__NODE_PARTITION_CMD = 224, - PG_QUERY__NODE__NODE_VACUUM_RELATION = 225, - PG_QUERY__NODE__NODE_PUBLICATION_OBJ_SPEC = 226, - PG_QUERY__NODE__NODE_PUBLICATION_TABLE = 227, - PG_QUERY__NODE__NODE_INLINE_CODE_BLOCK = 228, - PG_QUERY__NODE__NODE_CALL_CONTEXT = 229, - PG_QUERY__NODE__NODE_INTEGER = 230, - PG_QUERY__NODE__NODE_FLOAT = 231, - PG_QUERY__NODE__NODE_BOOLEAN = 232, - PG_QUERY__NODE__NODE_STRING = 233, - PG_QUERY__NODE__NODE_BIT_STRING = 234, - PG_QUERY__NODE__NODE_LIST = 235, - PG_QUERY__NODE__NODE_INT_LIST = 236, - PG_QUERY__NODE__NODE_OID_LIST = 237, - PG_QUERY__NODE__NODE_A_CONST = 238 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__NODE__NODE__CASE) -} PgQuery__Node__NodeCase; - -struct PgQuery__Node -{ - ProtobufCMessage base; - PgQuery__Node__NodeCase node_case; - union { - PgQuery__Alias *alias; - PgQuery__RangeVar *range_var; - PgQuery__TableFunc *table_func; - PgQuery__Var *var; - PgQuery__Param *param; - PgQuery__Aggref *aggref; - PgQuery__GroupingFunc *grouping_func; - PgQuery__WindowFunc *window_func; - PgQuery__SubscriptingRef *subscripting_ref; - PgQuery__FuncExpr *func_expr; - PgQuery__NamedArgExpr *named_arg_expr; - PgQuery__OpExpr *op_expr; - PgQuery__DistinctExpr *distinct_expr; - PgQuery__NullIfExpr *null_if_expr; - PgQuery__ScalarArrayOpExpr *scalar_array_op_expr; - PgQuery__BoolExpr *bool_expr; - PgQuery__SubLink *sub_link; - PgQuery__SubPlan *sub_plan; - PgQuery__AlternativeSubPlan *alternative_sub_plan; - PgQuery__FieldSelect *field_select; - PgQuery__FieldStore *field_store; - PgQuery__RelabelType *relabel_type; - PgQuery__CoerceViaIO *coerce_via_io; - PgQuery__ArrayCoerceExpr *array_coerce_expr; - PgQuery__ConvertRowtypeExpr *convert_rowtype_expr; - PgQuery__CollateExpr *collate_expr; - PgQuery__CaseExpr *case_expr; - PgQuery__CaseWhen *case_when; - PgQuery__CaseTestExpr *case_test_expr; - PgQuery__ArrayExpr *array_expr; - PgQuery__RowExpr *row_expr; - PgQuery__RowCompareExpr *row_compare_expr; - PgQuery__CoalesceExpr *coalesce_expr; - PgQuery__MinMaxExpr *min_max_expr; - PgQuery__SQLValueFunction *sqlvalue_function; - PgQuery__XmlExpr *xml_expr; - PgQuery__NullTest *null_test; - PgQuery__BooleanTest *boolean_test; - PgQuery__CoerceToDomain *coerce_to_domain; - PgQuery__CoerceToDomainValue *coerce_to_domain_value; - PgQuery__SetToDefault *set_to_default; - PgQuery__CurrentOfExpr *current_of_expr; - PgQuery__NextValueExpr *next_value_expr; - PgQuery__InferenceElem *inference_elem; - PgQuery__TargetEntry *target_entry; - PgQuery__RangeTblRef *range_tbl_ref; - PgQuery__JoinExpr *join_expr; - PgQuery__FromExpr *from_expr; - PgQuery__OnConflictExpr *on_conflict_expr; - PgQuery__IntoClause *into_clause; - PgQuery__MergeAction *merge_action; - PgQuery__RawStmt *raw_stmt; - PgQuery__Query *query; - PgQuery__InsertStmt *insert_stmt; - PgQuery__DeleteStmt *delete_stmt; - PgQuery__UpdateStmt *update_stmt; - PgQuery__MergeStmt *merge_stmt; - PgQuery__SelectStmt *select_stmt; - PgQuery__ReturnStmt *return_stmt; - PgQuery__PLAssignStmt *plassign_stmt; - PgQuery__AlterTableStmt *alter_table_stmt; - PgQuery__AlterTableCmd *alter_table_cmd; - PgQuery__AlterDomainStmt *alter_domain_stmt; - PgQuery__SetOperationStmt *set_operation_stmt; - PgQuery__GrantStmt *grant_stmt; - PgQuery__GrantRoleStmt *grant_role_stmt; - PgQuery__AlterDefaultPrivilegesStmt *alter_default_privileges_stmt; - PgQuery__ClosePortalStmt *close_portal_stmt; - PgQuery__ClusterStmt *cluster_stmt; - PgQuery__CopyStmt *copy_stmt; - PgQuery__CreateStmt *create_stmt; - PgQuery__DefineStmt *define_stmt; - PgQuery__DropStmt *drop_stmt; - PgQuery__TruncateStmt *truncate_stmt; - PgQuery__CommentStmt *comment_stmt; - PgQuery__FetchStmt *fetch_stmt; - PgQuery__IndexStmt *index_stmt; - PgQuery__CreateFunctionStmt *create_function_stmt; - PgQuery__AlterFunctionStmt *alter_function_stmt; - PgQuery__DoStmt *do_stmt; - PgQuery__RenameStmt *rename_stmt; - PgQuery__RuleStmt *rule_stmt; - PgQuery__NotifyStmt *notify_stmt; - PgQuery__ListenStmt *listen_stmt; - PgQuery__UnlistenStmt *unlisten_stmt; - PgQuery__TransactionStmt *transaction_stmt; - PgQuery__ViewStmt *view_stmt; - PgQuery__LoadStmt *load_stmt; - PgQuery__CreateDomainStmt *create_domain_stmt; - PgQuery__CreatedbStmt *createdb_stmt; - PgQuery__DropdbStmt *dropdb_stmt; - PgQuery__VacuumStmt *vacuum_stmt; - PgQuery__ExplainStmt *explain_stmt; - PgQuery__CreateTableAsStmt *create_table_as_stmt; - PgQuery__CreateSeqStmt *create_seq_stmt; - PgQuery__AlterSeqStmt *alter_seq_stmt; - PgQuery__VariableSetStmt *variable_set_stmt; - PgQuery__VariableShowStmt *variable_show_stmt; - PgQuery__DiscardStmt *discard_stmt; - PgQuery__CreateTrigStmt *create_trig_stmt; - PgQuery__CreatePLangStmt *create_plang_stmt; - PgQuery__CreateRoleStmt *create_role_stmt; - PgQuery__AlterRoleStmt *alter_role_stmt; - PgQuery__DropRoleStmt *drop_role_stmt; - PgQuery__LockStmt *lock_stmt; - PgQuery__ConstraintsSetStmt *constraints_set_stmt; - PgQuery__ReindexStmt *reindex_stmt; - PgQuery__CheckPointStmt *check_point_stmt; - PgQuery__CreateSchemaStmt *create_schema_stmt; - PgQuery__AlterDatabaseStmt *alter_database_stmt; - PgQuery__AlterDatabaseRefreshCollStmt *alter_database_refresh_coll_stmt; - PgQuery__AlterDatabaseSetStmt *alter_database_set_stmt; - PgQuery__AlterRoleSetStmt *alter_role_set_stmt; - PgQuery__CreateConversionStmt *create_conversion_stmt; - PgQuery__CreateCastStmt *create_cast_stmt; - PgQuery__CreateOpClassStmt *create_op_class_stmt; - PgQuery__CreateOpFamilyStmt *create_op_family_stmt; - PgQuery__AlterOpFamilyStmt *alter_op_family_stmt; - PgQuery__PrepareStmt *prepare_stmt; - PgQuery__ExecuteStmt *execute_stmt; - PgQuery__DeallocateStmt *deallocate_stmt; - PgQuery__DeclareCursorStmt *declare_cursor_stmt; - PgQuery__CreateTableSpaceStmt *create_table_space_stmt; - PgQuery__DropTableSpaceStmt *drop_table_space_stmt; - PgQuery__AlterObjectDependsStmt *alter_object_depends_stmt; - PgQuery__AlterObjectSchemaStmt *alter_object_schema_stmt; - PgQuery__AlterOwnerStmt *alter_owner_stmt; - PgQuery__AlterOperatorStmt *alter_operator_stmt; - PgQuery__AlterTypeStmt *alter_type_stmt; - PgQuery__DropOwnedStmt *drop_owned_stmt; - PgQuery__ReassignOwnedStmt *reassign_owned_stmt; - PgQuery__CompositeTypeStmt *composite_type_stmt; - PgQuery__CreateEnumStmt *create_enum_stmt; - PgQuery__CreateRangeStmt *create_range_stmt; - PgQuery__AlterEnumStmt *alter_enum_stmt; - PgQuery__AlterTSDictionaryStmt *alter_tsdictionary_stmt; - PgQuery__AlterTSConfigurationStmt *alter_tsconfiguration_stmt; - PgQuery__CreateFdwStmt *create_fdw_stmt; - PgQuery__AlterFdwStmt *alter_fdw_stmt; - PgQuery__CreateForeignServerStmt *create_foreign_server_stmt; - PgQuery__AlterForeignServerStmt *alter_foreign_server_stmt; - PgQuery__CreateUserMappingStmt *create_user_mapping_stmt; - PgQuery__AlterUserMappingStmt *alter_user_mapping_stmt; - PgQuery__DropUserMappingStmt *drop_user_mapping_stmt; - PgQuery__AlterTableSpaceOptionsStmt *alter_table_space_options_stmt; - PgQuery__AlterTableMoveAllStmt *alter_table_move_all_stmt; - PgQuery__SecLabelStmt *sec_label_stmt; - PgQuery__CreateForeignTableStmt *create_foreign_table_stmt; - PgQuery__ImportForeignSchemaStmt *import_foreign_schema_stmt; - PgQuery__CreateExtensionStmt *create_extension_stmt; - PgQuery__AlterExtensionStmt *alter_extension_stmt; - PgQuery__AlterExtensionContentsStmt *alter_extension_contents_stmt; - PgQuery__CreateEventTrigStmt *create_event_trig_stmt; - PgQuery__AlterEventTrigStmt *alter_event_trig_stmt; - PgQuery__RefreshMatViewStmt *refresh_mat_view_stmt; - PgQuery__ReplicaIdentityStmt *replica_identity_stmt; - PgQuery__AlterSystemStmt *alter_system_stmt; - PgQuery__CreatePolicyStmt *create_policy_stmt; - PgQuery__AlterPolicyStmt *alter_policy_stmt; - PgQuery__CreateTransformStmt *create_transform_stmt; - PgQuery__CreateAmStmt *create_am_stmt; - PgQuery__CreatePublicationStmt *create_publication_stmt; - PgQuery__AlterPublicationStmt *alter_publication_stmt; - PgQuery__CreateSubscriptionStmt *create_subscription_stmt; - PgQuery__AlterSubscriptionStmt *alter_subscription_stmt; - PgQuery__DropSubscriptionStmt *drop_subscription_stmt; - PgQuery__CreateStatsStmt *create_stats_stmt; - PgQuery__AlterCollationStmt *alter_collation_stmt; - PgQuery__CallStmt *call_stmt; - PgQuery__AlterStatsStmt *alter_stats_stmt; - PgQuery__AExpr *a_expr; - PgQuery__ColumnRef *column_ref; - PgQuery__ParamRef *param_ref; - PgQuery__FuncCall *func_call; - PgQuery__AStar *a_star; - PgQuery__AIndices *a_indices; - PgQuery__AIndirection *a_indirection; - PgQuery__AArrayExpr *a_array_expr; - PgQuery__ResTarget *res_target; - PgQuery__MultiAssignRef *multi_assign_ref; - PgQuery__TypeCast *type_cast; - PgQuery__CollateClause *collate_clause; - PgQuery__SortBy *sort_by; - PgQuery__WindowDef *window_def; - PgQuery__RangeSubselect *range_subselect; - PgQuery__RangeFunction *range_function; - PgQuery__RangeTableSample *range_table_sample; - PgQuery__RangeTableFunc *range_table_func; - PgQuery__RangeTableFuncCol *range_table_func_col; - PgQuery__TypeName *type_name; - PgQuery__ColumnDef *column_def; - PgQuery__IndexElem *index_elem; - PgQuery__StatsElem *stats_elem; - PgQuery__Constraint *constraint; - PgQuery__DefElem *def_elem; - PgQuery__RangeTblEntry *range_tbl_entry; - PgQuery__RangeTblFunction *range_tbl_function; - PgQuery__TableSampleClause *table_sample_clause; - PgQuery__WithCheckOption *with_check_option; - PgQuery__SortGroupClause *sort_group_clause; - PgQuery__GroupingSet *grouping_set; - PgQuery__WindowClause *window_clause; - PgQuery__ObjectWithArgs *object_with_args; - PgQuery__AccessPriv *access_priv; - PgQuery__CreateOpClassItem *create_op_class_item; - PgQuery__TableLikeClause *table_like_clause; - PgQuery__FunctionParameter *function_parameter; - PgQuery__LockingClause *locking_clause; - PgQuery__RowMarkClause *row_mark_clause; - PgQuery__XmlSerialize *xml_serialize; - PgQuery__WithClause *with_clause; - PgQuery__InferClause *infer_clause; - PgQuery__OnConflictClause *on_conflict_clause; - PgQuery__CTESearchClause *ctesearch_clause; - PgQuery__CTECycleClause *ctecycle_clause; - PgQuery__CommonTableExpr *common_table_expr; - PgQuery__MergeWhenClause *merge_when_clause; - PgQuery__RoleSpec *role_spec; - PgQuery__TriggerTransition *trigger_transition; - PgQuery__PartitionElem *partition_elem; - PgQuery__PartitionSpec *partition_spec; - PgQuery__PartitionBoundSpec *partition_bound_spec; - PgQuery__PartitionRangeDatum *partition_range_datum; - PgQuery__PartitionCmd *partition_cmd; - PgQuery__VacuumRelation *vacuum_relation; - PgQuery__PublicationObjSpec *publication_obj_spec; - PgQuery__PublicationTable *publication_table; - PgQuery__InlineCodeBlock *inline_code_block; - PgQuery__CallContext *call_context; - PgQuery__Integer *integer; - PgQuery__Float *float_; - PgQuery__Boolean *boolean; - PgQuery__String *string; - PgQuery__BitString *bit_string; - PgQuery__List *list; - PgQuery__IntList *int_list; - PgQuery__OidList *oid_list; - PgQuery__AConst *a_const; - }; -}; -#define PG_QUERY__NODE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__node__descriptor) \ - , PG_QUERY__NODE__NODE__NOT_SET, {0} } - - -struct PgQuery__Integer -{ - ProtobufCMessage base; - /* - * machine integer - */ - int32_t ival; -}; -#define PG_QUERY__INTEGER__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__integer__descriptor) \ - , 0 } - - -struct PgQuery__Float -{ - ProtobufCMessage base; - /* - * string - */ - char *fval; -}; -#define PG_QUERY__FLOAT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__float__descriptor) \ - , (char *)protobuf_c_empty_string } - - -struct PgQuery__Boolean -{ - ProtobufCMessage base; - protobuf_c_boolean boolval; -}; -#define PG_QUERY__BOOLEAN__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__boolean__descriptor) \ - , 0 } - - -struct PgQuery__String -{ - ProtobufCMessage base; - /* - * string - */ - char *sval; -}; -#define PG_QUERY__STRING__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__string__descriptor) \ - , (char *)protobuf_c_empty_string } - - -struct PgQuery__BitString -{ - ProtobufCMessage base; - /* - * string - */ - char *bsval; -}; -#define PG_QUERY__BIT_STRING__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__bit_string__descriptor) \ - , (char *)protobuf_c_empty_string } - - -struct PgQuery__List -{ - ProtobufCMessage base; - size_t n_items; - PgQuery__Node **items; -}; -#define PG_QUERY__LIST__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__list__descriptor) \ - , 0,NULL } - - -struct PgQuery__OidList -{ - ProtobufCMessage base; - size_t n_items; - PgQuery__Node **items; -}; -#define PG_QUERY__OID_LIST__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__oid_list__descriptor) \ - , 0,NULL } - - -struct PgQuery__IntList -{ - ProtobufCMessage base; - size_t n_items; - PgQuery__Node **items; -}; -#define PG_QUERY__INT_LIST__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__int_list__descriptor) \ - , 0,NULL } - - -typedef enum { - PG_QUERY__A__CONST__VAL__NOT_SET = 0, - PG_QUERY__A__CONST__VAL_IVAL = 1, - PG_QUERY__A__CONST__VAL_FVAL = 2, - PG_QUERY__A__CONST__VAL_BOOLVAL = 3, - PG_QUERY__A__CONST__VAL_SVAL = 4, - PG_QUERY__A__CONST__VAL_BSVAL = 5 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(PG_QUERY__A__CONST__VAL__CASE) -} PgQuery__AConst__ValCase; - -struct PgQuery__AConst -{ - ProtobufCMessage base; - protobuf_c_boolean isnull; - int32_t location; - PgQuery__AConst__ValCase val_case; - union { - PgQuery__Integer *ival; - PgQuery__Float *fval; - PgQuery__Boolean *boolval; - PgQuery__String *sval; - PgQuery__BitString *bsval; - }; -}; -#define PG_QUERY__A__CONST__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__a__const__descriptor) \ - , 0, 0, PG_QUERY__A__CONST__VAL__NOT_SET, {0} } - - -struct PgQuery__Alias -{ - ProtobufCMessage base; - char *aliasname; - size_t n_colnames; - PgQuery__Node **colnames; -}; -#define PG_QUERY__ALIAS__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alias__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL } - - -struct PgQuery__RangeVar -{ - ProtobufCMessage base; - char *catalogname; - char *schemaname; - char *relname; - protobuf_c_boolean inh; - char *relpersistence; - PgQuery__Alias *alias; - int32_t location; -}; -#define PG_QUERY__RANGE_VAR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__range_var__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0, (char *)protobuf_c_empty_string, NULL, 0 } - - -struct PgQuery__TableFunc -{ - ProtobufCMessage base; - size_t n_ns_uris; - PgQuery__Node **ns_uris; - size_t n_ns_names; - PgQuery__Node **ns_names; - PgQuery__Node *docexpr; - PgQuery__Node *rowexpr; - size_t n_colnames; - PgQuery__Node **colnames; - size_t n_coltypes; - PgQuery__Node **coltypes; - size_t n_coltypmods; - PgQuery__Node **coltypmods; - size_t n_colcollations; - PgQuery__Node **colcollations; - size_t n_colexprs; - PgQuery__Node **colexprs; - size_t n_coldefexprs; - PgQuery__Node **coldefexprs; - size_t n_notnulls; - uint64_t *notnulls; - int32_t ordinalitycol; - int32_t location; -}; -#define PG_QUERY__TABLE_FUNC__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__table_func__descriptor) \ - , 0,NULL, 0,NULL, NULL, NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0, 0 } - - -struct PgQuery__Var -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - int32_t varno; - int32_t varattno; - uint32_t vartype; - int32_t vartypmod; - uint32_t varcollid; - uint32_t varlevelsup; - uint32_t varnosyn; - int32_t varattnosyn; - int32_t location; -}; -#define PG_QUERY__VAR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__var__descriptor) \ - , NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0 } - - -struct PgQuery__Param -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - PgQuery__ParamKind paramkind; - int32_t paramid; - uint32_t paramtype; - int32_t paramtypmod; - uint32_t paramcollid; - int32_t location; -}; -#define PG_QUERY__PARAM__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__param__descriptor) \ - , NULL, PG_QUERY__PARAM_KIND__PARAM_KIND_UNDEFINED, 0, 0, 0, 0, 0 } - - -struct PgQuery__Aggref -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - uint32_t aggfnoid; - uint32_t aggtype; - uint32_t aggcollid; - uint32_t inputcollid; - uint32_t aggtranstype; - size_t n_aggargtypes; - PgQuery__Node **aggargtypes; - size_t n_aggdirectargs; - PgQuery__Node **aggdirectargs; - size_t n_args; - PgQuery__Node **args; - size_t n_aggorder; - PgQuery__Node **aggorder; - size_t n_aggdistinct; - PgQuery__Node **aggdistinct; - PgQuery__Node *aggfilter; - protobuf_c_boolean aggstar; - protobuf_c_boolean aggvariadic; - char *aggkind; - uint32_t agglevelsup; - PgQuery__AggSplit aggsplit; - int32_t aggno; - int32_t aggtransno; - int32_t location; -}; -#define PG_QUERY__AGGREF__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__aggref__descriptor) \ - , NULL, 0, 0, 0, 0, 0, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, NULL, 0, 0, (char *)protobuf_c_empty_string, 0, PG_QUERY__AGG_SPLIT__AGG_SPLIT_UNDEFINED, 0, 0, 0 } - - -struct PgQuery__GroupingFunc -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - size_t n_args; - PgQuery__Node **args; - size_t n_refs; - PgQuery__Node **refs; - size_t n_cols; - PgQuery__Node **cols; - uint32_t agglevelsup; - int32_t location; -}; -#define PG_QUERY__GROUPING_FUNC__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__grouping_func__descriptor) \ - , NULL, 0,NULL, 0,NULL, 0,NULL, 0, 0 } - - -struct PgQuery__WindowFunc -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - uint32_t winfnoid; - uint32_t wintype; - uint32_t wincollid; - uint32_t inputcollid; - size_t n_args; - PgQuery__Node **args; - PgQuery__Node *aggfilter; - uint32_t winref; - protobuf_c_boolean winstar; - protobuf_c_boolean winagg; - int32_t location; -}; -#define PG_QUERY__WINDOW_FUNC__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__window_func__descriptor) \ - , NULL, 0, 0, 0, 0, 0,NULL, NULL, 0, 0, 0, 0 } - - -struct PgQuery__SubscriptingRef -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - uint32_t refcontainertype; - uint32_t refelemtype; - uint32_t refrestype; - int32_t reftypmod; - uint32_t refcollid; - size_t n_refupperindexpr; - PgQuery__Node **refupperindexpr; - size_t n_reflowerindexpr; - PgQuery__Node **reflowerindexpr; - PgQuery__Node *refexpr; - PgQuery__Node *refassgnexpr; -}; -#define PG_QUERY__SUBSCRIPTING_REF__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__subscripting_ref__descriptor) \ - , NULL, 0, 0, 0, 0, 0, 0,NULL, 0,NULL, NULL, NULL } - - -struct PgQuery__FuncExpr -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - uint32_t funcid; - uint32_t funcresulttype; - protobuf_c_boolean funcretset; - protobuf_c_boolean funcvariadic; - PgQuery__CoercionForm funcformat; - uint32_t funccollid; - uint32_t inputcollid; - size_t n_args; - PgQuery__Node **args; - int32_t location; -}; -#define PG_QUERY__FUNC_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__func_expr__descriptor) \ - , NULL, 0, 0, 0, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0, 0, 0,NULL, 0 } - - -struct PgQuery__NamedArgExpr -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - PgQuery__Node *arg; - char *name; - int32_t argnumber; - int32_t location; -}; -#define PG_QUERY__NAMED_ARG_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__named_arg_expr__descriptor) \ - , NULL, NULL, (char *)protobuf_c_empty_string, 0, 0 } - - -struct PgQuery__OpExpr -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - uint32_t opno; - uint32_t opfuncid; - uint32_t opresulttype; - protobuf_c_boolean opretset; - uint32_t opcollid; - uint32_t inputcollid; - size_t n_args; - PgQuery__Node **args; - int32_t location; -}; -#define PG_QUERY__OP_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__op_expr__descriptor) \ - , NULL, 0, 0, 0, 0, 0, 0, 0,NULL, 0 } - - -struct PgQuery__DistinctExpr -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - uint32_t opno; - uint32_t opfuncid; - uint32_t opresulttype; - protobuf_c_boolean opretset; - uint32_t opcollid; - uint32_t inputcollid; - size_t n_args; - PgQuery__Node **args; - int32_t location; -}; -#define PG_QUERY__DISTINCT_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__distinct_expr__descriptor) \ - , NULL, 0, 0, 0, 0, 0, 0, 0,NULL, 0 } - - -struct PgQuery__NullIfExpr -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - uint32_t opno; - uint32_t opfuncid; - uint32_t opresulttype; - protobuf_c_boolean opretset; - uint32_t opcollid; - uint32_t inputcollid; - size_t n_args; - PgQuery__Node **args; - int32_t location; -}; -#define PG_QUERY__NULL_IF_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__null_if_expr__descriptor) \ - , NULL, 0, 0, 0, 0, 0, 0, 0,NULL, 0 } - - -struct PgQuery__ScalarArrayOpExpr -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - uint32_t opno; - uint32_t opfuncid; - uint32_t hashfuncid; - uint32_t negfuncid; - protobuf_c_boolean use_or; - uint32_t inputcollid; - size_t n_args; - PgQuery__Node **args; - int32_t location; -}; -#define PG_QUERY__SCALAR_ARRAY_OP_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__scalar_array_op_expr__descriptor) \ - , NULL, 0, 0, 0, 0, 0, 0, 0,NULL, 0 } - - -struct PgQuery__BoolExpr -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - PgQuery__BoolExprType boolop; - size_t n_args; - PgQuery__Node **args; - int32_t location; -}; -#define PG_QUERY__BOOL_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__bool_expr__descriptor) \ - , NULL, PG_QUERY__BOOL_EXPR_TYPE__BOOL_EXPR_TYPE_UNDEFINED, 0,NULL, 0 } - - -struct PgQuery__SubLink -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - PgQuery__SubLinkType sub_link_type; - int32_t sub_link_id; - PgQuery__Node *testexpr; - size_t n_oper_name; - PgQuery__Node **oper_name; - PgQuery__Node *subselect; - int32_t location; -}; -#define PG_QUERY__SUB_LINK__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__sub_link__descriptor) \ - , NULL, PG_QUERY__SUB_LINK_TYPE__SUB_LINK_TYPE_UNDEFINED, 0, NULL, 0,NULL, NULL, 0 } - - -struct PgQuery__SubPlan -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - PgQuery__SubLinkType sub_link_type; - PgQuery__Node *testexpr; - size_t n_param_ids; - PgQuery__Node **param_ids; - int32_t plan_id; - char *plan_name; - uint32_t first_col_type; - int32_t first_col_typmod; - uint32_t first_col_collation; - protobuf_c_boolean use_hash_table; - protobuf_c_boolean unknown_eq_false; - protobuf_c_boolean parallel_safe; - size_t n_set_param; - PgQuery__Node **set_param; - size_t n_par_param; - PgQuery__Node **par_param; - size_t n_args; - PgQuery__Node **args; - double startup_cost; - double per_call_cost; -}; -#define PG_QUERY__SUB_PLAN__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__sub_plan__descriptor) \ - , NULL, PG_QUERY__SUB_LINK_TYPE__SUB_LINK_TYPE_UNDEFINED, NULL, 0,NULL, 0, (char *)protobuf_c_empty_string, 0, 0, 0, 0, 0, 0, 0,NULL, 0,NULL, 0,NULL, 0, 0 } - - -struct PgQuery__AlternativeSubPlan -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - size_t n_subplans; - PgQuery__Node **subplans; -}; -#define PG_QUERY__ALTERNATIVE_SUB_PLAN__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alternative_sub_plan__descriptor) \ - , NULL, 0,NULL } - - -struct PgQuery__FieldSelect -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - PgQuery__Node *arg; - int32_t fieldnum; - uint32_t resulttype; - int32_t resulttypmod; - uint32_t resultcollid; -}; -#define PG_QUERY__FIELD_SELECT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__field_select__descriptor) \ - , NULL, NULL, 0, 0, 0, 0 } - - -struct PgQuery__FieldStore -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - PgQuery__Node *arg; - size_t n_newvals; - PgQuery__Node **newvals; - size_t n_fieldnums; - PgQuery__Node **fieldnums; - uint32_t resulttype; -}; -#define PG_QUERY__FIELD_STORE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__field_store__descriptor) \ - , NULL, NULL, 0,NULL, 0,NULL, 0 } - - -struct PgQuery__RelabelType -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - PgQuery__Node *arg; - uint32_t resulttype; - int32_t resulttypmod; - uint32_t resultcollid; - PgQuery__CoercionForm relabelformat; - int32_t location; -}; -#define PG_QUERY__RELABEL_TYPE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__relabel_type__descriptor) \ - , NULL, NULL, 0, 0, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0 } - - -struct PgQuery__CoerceViaIO -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - PgQuery__Node *arg; - uint32_t resulttype; - uint32_t resultcollid; - PgQuery__CoercionForm coerceformat; - int32_t location; -}; -#define PG_QUERY__COERCE_VIA_IO__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__coerce_via_io__descriptor) \ - , NULL, NULL, 0, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0 } - - -struct PgQuery__ArrayCoerceExpr -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - PgQuery__Node *arg; - PgQuery__Node *elemexpr; - uint32_t resulttype; - int32_t resulttypmod; - uint32_t resultcollid; - PgQuery__CoercionForm coerceformat; - int32_t location; -}; -#define PG_QUERY__ARRAY_COERCE_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__array_coerce_expr__descriptor) \ - , NULL, NULL, NULL, 0, 0, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0 } - - -struct PgQuery__ConvertRowtypeExpr -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - PgQuery__Node *arg; - uint32_t resulttype; - PgQuery__CoercionForm convertformat; - int32_t location; -}; -#define PG_QUERY__CONVERT_ROWTYPE_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__convert_rowtype_expr__descriptor) \ - , NULL, NULL, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0 } - - -struct PgQuery__CollateExpr -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - PgQuery__Node *arg; - uint32_t coll_oid; - int32_t location; -}; -#define PG_QUERY__COLLATE_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__collate_expr__descriptor) \ - , NULL, NULL, 0, 0 } - - -struct PgQuery__CaseExpr -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - uint32_t casetype; - uint32_t casecollid; - PgQuery__Node *arg; - size_t n_args; - PgQuery__Node **args; - PgQuery__Node *defresult; - int32_t location; -}; -#define PG_QUERY__CASE_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__case_expr__descriptor) \ - , NULL, 0, 0, NULL, 0,NULL, NULL, 0 } - - -struct PgQuery__CaseWhen -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - PgQuery__Node *expr; - PgQuery__Node *result; - int32_t location; -}; -#define PG_QUERY__CASE_WHEN__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__case_when__descriptor) \ - , NULL, NULL, NULL, 0 } - - -struct PgQuery__CaseTestExpr -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - uint32_t type_id; - int32_t type_mod; - uint32_t collation; -}; -#define PG_QUERY__CASE_TEST_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__case_test_expr__descriptor) \ - , NULL, 0, 0, 0 } - - -struct PgQuery__ArrayExpr -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - uint32_t array_typeid; - uint32_t array_collid; - uint32_t element_typeid; - size_t n_elements; - PgQuery__Node **elements; - protobuf_c_boolean multidims; - int32_t location; -}; -#define PG_QUERY__ARRAY_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__array_expr__descriptor) \ - , NULL, 0, 0, 0, 0,NULL, 0, 0 } - - -struct PgQuery__RowExpr -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - size_t n_args; - PgQuery__Node **args; - uint32_t row_typeid; - PgQuery__CoercionForm row_format; - size_t n_colnames; - PgQuery__Node **colnames; - int32_t location; -}; -#define PG_QUERY__ROW_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__row_expr__descriptor) \ - , NULL, 0,NULL, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0,NULL, 0 } - - -struct PgQuery__RowCompareExpr -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - PgQuery__RowCompareType rctype; - size_t n_opnos; - PgQuery__Node **opnos; - size_t n_opfamilies; - PgQuery__Node **opfamilies; - size_t n_inputcollids; - PgQuery__Node **inputcollids; - size_t n_largs; - PgQuery__Node **largs; - size_t n_rargs; - PgQuery__Node **rargs; -}; -#define PG_QUERY__ROW_COMPARE_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__row_compare_expr__descriptor) \ - , NULL, PG_QUERY__ROW_COMPARE_TYPE__ROW_COMPARE_TYPE_UNDEFINED, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL } - - -struct PgQuery__CoalesceExpr -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - uint32_t coalescetype; - uint32_t coalescecollid; - size_t n_args; - PgQuery__Node **args; - int32_t location; -}; -#define PG_QUERY__COALESCE_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__coalesce_expr__descriptor) \ - , NULL, 0, 0, 0,NULL, 0 } - - -struct PgQuery__MinMaxExpr -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - uint32_t minmaxtype; - uint32_t minmaxcollid; - uint32_t inputcollid; - PgQuery__MinMaxOp op; - size_t n_args; - PgQuery__Node **args; - int32_t location; -}; -#define PG_QUERY__MIN_MAX_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__min_max_expr__descriptor) \ - , NULL, 0, 0, 0, PG_QUERY__MIN_MAX_OP__MIN_MAX_OP_UNDEFINED, 0,NULL, 0 } - - -struct PgQuery__SQLValueFunction -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - PgQuery__SQLValueFunctionOp op; - uint32_t type; - int32_t typmod; - int32_t location; -}; -#define PG_QUERY__SQLVALUE_FUNCTION__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__sqlvalue_function__descriptor) \ - , NULL, PG_QUERY__SQLVALUE_FUNCTION_OP__SQLVALUE_FUNCTION_OP_UNDEFINED, 0, 0, 0 } - - -struct PgQuery__XmlExpr -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - PgQuery__XmlExprOp op; - char *name; - size_t n_named_args; - PgQuery__Node **named_args; - size_t n_arg_names; - PgQuery__Node **arg_names; - size_t n_args; - PgQuery__Node **args; - PgQuery__XmlOptionType xmloption; - uint32_t type; - int32_t typmod; - int32_t location; -}; -#define PG_QUERY__XML_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__xml_expr__descriptor) \ - , NULL, PG_QUERY__XML_EXPR_OP__XML_EXPR_OP_UNDEFINED, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0,NULL, PG_QUERY__XML_OPTION_TYPE__XML_OPTION_TYPE_UNDEFINED, 0, 0, 0 } - - -struct PgQuery__NullTest -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - PgQuery__Node *arg; - PgQuery__NullTestType nulltesttype; - protobuf_c_boolean argisrow; - int32_t location; -}; -#define PG_QUERY__NULL_TEST__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__null_test__descriptor) \ - , NULL, NULL, PG_QUERY__NULL_TEST_TYPE__NULL_TEST_TYPE_UNDEFINED, 0, 0 } - - -struct PgQuery__BooleanTest -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - PgQuery__Node *arg; - PgQuery__BoolTestType booltesttype; - int32_t location; -}; -#define PG_QUERY__BOOLEAN_TEST__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__boolean_test__descriptor) \ - , NULL, NULL, PG_QUERY__BOOL_TEST_TYPE__BOOL_TEST_TYPE_UNDEFINED, 0 } - - -struct PgQuery__CoerceToDomain -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - PgQuery__Node *arg; - uint32_t resulttype; - int32_t resulttypmod; - uint32_t resultcollid; - PgQuery__CoercionForm coercionformat; - int32_t location; -}; -#define PG_QUERY__COERCE_TO_DOMAIN__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__coerce_to_domain__descriptor) \ - , NULL, NULL, 0, 0, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0 } - - -struct PgQuery__CoerceToDomainValue -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - uint32_t type_id; - int32_t type_mod; - uint32_t collation; - int32_t location; -}; -#define PG_QUERY__COERCE_TO_DOMAIN_VALUE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__coerce_to_domain_value__descriptor) \ - , NULL, 0, 0, 0, 0 } - - -struct PgQuery__SetToDefault -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - uint32_t type_id; - int32_t type_mod; - uint32_t collation; - int32_t location; -}; -#define PG_QUERY__SET_TO_DEFAULT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__set_to_default__descriptor) \ - , NULL, 0, 0, 0, 0 } - - -struct PgQuery__CurrentOfExpr -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - uint32_t cvarno; - char *cursor_name; - int32_t cursor_param; -}; -#define PG_QUERY__CURRENT_OF_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__current_of_expr__descriptor) \ - , NULL, 0, (char *)protobuf_c_empty_string, 0 } - - -struct PgQuery__NextValueExpr -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - uint32_t seqid; - uint32_t type_id; -}; -#define PG_QUERY__NEXT_VALUE_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__next_value_expr__descriptor) \ - , NULL, 0, 0 } - - -struct PgQuery__InferenceElem -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - PgQuery__Node *expr; - uint32_t infercollid; - uint32_t inferopclass; -}; -#define PG_QUERY__INFERENCE_ELEM__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__inference_elem__descriptor) \ - , NULL, NULL, 0, 0 } - - -struct PgQuery__TargetEntry -{ - ProtobufCMessage base; - PgQuery__Node *xpr; - PgQuery__Node *expr; - int32_t resno; - char *resname; - uint32_t ressortgroupref; - uint32_t resorigtbl; - int32_t resorigcol; - protobuf_c_boolean resjunk; -}; -#define PG_QUERY__TARGET_ENTRY__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__target_entry__descriptor) \ - , NULL, NULL, 0, (char *)protobuf_c_empty_string, 0, 0, 0, 0 } - - -struct PgQuery__RangeTblRef -{ - ProtobufCMessage base; - int32_t rtindex; -}; -#define PG_QUERY__RANGE_TBL_REF__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__range_tbl_ref__descriptor) \ - , 0 } - - -struct PgQuery__JoinExpr -{ - ProtobufCMessage base; - PgQuery__JoinType jointype; - protobuf_c_boolean is_natural; - PgQuery__Node *larg; - PgQuery__Node *rarg; - size_t n_using_clause; - PgQuery__Node **using_clause; - PgQuery__Alias *join_using_alias; - PgQuery__Node *quals; - PgQuery__Alias *alias; - int32_t rtindex; -}; -#define PG_QUERY__JOIN_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__join_expr__descriptor) \ - , PG_QUERY__JOIN_TYPE__JOIN_TYPE_UNDEFINED, 0, NULL, NULL, 0,NULL, NULL, NULL, NULL, 0 } - - -struct PgQuery__FromExpr -{ - ProtobufCMessage base; - size_t n_fromlist; - PgQuery__Node **fromlist; - PgQuery__Node *quals; -}; -#define PG_QUERY__FROM_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__from_expr__descriptor) \ - , 0,NULL, NULL } - - -struct PgQuery__OnConflictExpr -{ - ProtobufCMessage base; - PgQuery__OnConflictAction action; - size_t n_arbiter_elems; - PgQuery__Node **arbiter_elems; - PgQuery__Node *arbiter_where; - uint32_t constraint; - size_t n_on_conflict_set; - PgQuery__Node **on_conflict_set; - PgQuery__Node *on_conflict_where; - int32_t excl_rel_index; - size_t n_excl_rel_tlist; - PgQuery__Node **excl_rel_tlist; -}; -#define PG_QUERY__ON_CONFLICT_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__on_conflict_expr__descriptor) \ - , PG_QUERY__ON_CONFLICT_ACTION__ON_CONFLICT_ACTION_UNDEFINED, 0,NULL, NULL, 0, 0,NULL, NULL, 0, 0,NULL } - - -struct PgQuery__IntoClause -{ - ProtobufCMessage base; - PgQuery__RangeVar *rel; - size_t n_col_names; - PgQuery__Node **col_names; - char *access_method; - size_t n_options; - PgQuery__Node **options; - PgQuery__OnCommitAction on_commit; - char *table_space_name; - PgQuery__Node *view_query; - protobuf_c_boolean skip_data; -}; -#define PG_QUERY__INTO_CLAUSE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__into_clause__descriptor) \ - , NULL, 0,NULL, (char *)protobuf_c_empty_string, 0,NULL, PG_QUERY__ON_COMMIT_ACTION__ON_COMMIT_ACTION_UNDEFINED, (char *)protobuf_c_empty_string, NULL, 0 } - - -struct PgQuery__MergeAction -{ - ProtobufCMessage base; - protobuf_c_boolean matched; - PgQuery__CmdType command_type; - PgQuery__OverridingKind override; - PgQuery__Node *qual; - size_t n_target_list; - PgQuery__Node **target_list; - size_t n_update_colnos; - PgQuery__Node **update_colnos; -}; -#define PG_QUERY__MERGE_ACTION__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__merge_action__descriptor) \ - , 0, PG_QUERY__CMD_TYPE__CMD_TYPE_UNDEFINED, PG_QUERY__OVERRIDING_KIND__OVERRIDING_KIND_UNDEFINED, NULL, 0,NULL, 0,NULL } - - -struct PgQuery__RawStmt -{ - ProtobufCMessage base; - PgQuery__Node *stmt; - int32_t stmt_location; - int32_t stmt_len; -}; -#define PG_QUERY__RAW_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__raw_stmt__descriptor) \ - , NULL, 0, 0 } - - -struct PgQuery__Query -{ - ProtobufCMessage base; - PgQuery__CmdType command_type; - PgQuery__QuerySource query_source; - protobuf_c_boolean can_set_tag; - PgQuery__Node *utility_stmt; - int32_t result_relation; - protobuf_c_boolean has_aggs; - protobuf_c_boolean has_window_funcs; - protobuf_c_boolean has_target_srfs; - protobuf_c_boolean has_sub_links; - protobuf_c_boolean has_distinct_on; - protobuf_c_boolean has_recursive; - protobuf_c_boolean has_modifying_cte; - protobuf_c_boolean has_for_update; - protobuf_c_boolean has_row_security; - protobuf_c_boolean is_return; - size_t n_cte_list; - PgQuery__Node **cte_list; - size_t n_rtable; - PgQuery__Node **rtable; - PgQuery__FromExpr *jointree; - size_t n_merge_action_list; - PgQuery__Node **merge_action_list; - protobuf_c_boolean merge_use_outer_join; - size_t n_target_list; - PgQuery__Node **target_list; - PgQuery__OverridingKind override; - PgQuery__OnConflictExpr *on_conflict; - size_t n_returning_list; - PgQuery__Node **returning_list; - size_t n_group_clause; - PgQuery__Node **group_clause; - protobuf_c_boolean group_distinct; - size_t n_grouping_sets; - PgQuery__Node **grouping_sets; - PgQuery__Node *having_qual; - size_t n_window_clause; - PgQuery__Node **window_clause; - size_t n_distinct_clause; - PgQuery__Node **distinct_clause; - size_t n_sort_clause; - PgQuery__Node **sort_clause; - PgQuery__Node *limit_offset; - PgQuery__Node *limit_count; - PgQuery__LimitOption limit_option; - size_t n_row_marks; - PgQuery__Node **row_marks; - PgQuery__Node *set_operations; - size_t n_constraint_deps; - PgQuery__Node **constraint_deps; - size_t n_with_check_options; - PgQuery__Node **with_check_options; - int32_t stmt_location; - int32_t stmt_len; -}; -#define PG_QUERY__QUERY__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__query__descriptor) \ - , PG_QUERY__CMD_TYPE__CMD_TYPE_UNDEFINED, PG_QUERY__QUERY_SOURCE__QUERY_SOURCE_UNDEFINED, 0, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,NULL, 0,NULL, NULL, 0,NULL, 0, 0,NULL, PG_QUERY__OVERRIDING_KIND__OVERRIDING_KIND_UNDEFINED, NULL, 0,NULL, 0,NULL, 0, 0,NULL, NULL, 0,NULL, 0,NULL, 0,NULL, NULL, NULL, PG_QUERY__LIMIT_OPTION__LIMIT_OPTION_UNDEFINED, 0,NULL, NULL, 0,NULL, 0,NULL, 0, 0 } - - -struct PgQuery__InsertStmt -{ - ProtobufCMessage base; - PgQuery__RangeVar *relation; - size_t n_cols; - PgQuery__Node **cols; - PgQuery__Node *select_stmt; - PgQuery__OnConflictClause *on_conflict_clause; - size_t n_returning_list; - PgQuery__Node **returning_list; - PgQuery__WithClause *with_clause; - PgQuery__OverridingKind override; -}; -#define PG_QUERY__INSERT_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__insert_stmt__descriptor) \ - , NULL, 0,NULL, NULL, NULL, 0,NULL, NULL, PG_QUERY__OVERRIDING_KIND__OVERRIDING_KIND_UNDEFINED } - - -struct PgQuery__DeleteStmt -{ - ProtobufCMessage base; - PgQuery__RangeVar *relation; - size_t n_using_clause; - PgQuery__Node **using_clause; - PgQuery__Node *where_clause; - size_t n_returning_list; - PgQuery__Node **returning_list; - PgQuery__WithClause *with_clause; -}; -#define PG_QUERY__DELETE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__delete_stmt__descriptor) \ - , NULL, 0,NULL, NULL, 0,NULL, NULL } - - -struct PgQuery__UpdateStmt -{ - ProtobufCMessage base; - PgQuery__RangeVar *relation; - size_t n_target_list; - PgQuery__Node **target_list; - PgQuery__Node *where_clause; - size_t n_from_clause; - PgQuery__Node **from_clause; - size_t n_returning_list; - PgQuery__Node **returning_list; - PgQuery__WithClause *with_clause; -}; -#define PG_QUERY__UPDATE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__update_stmt__descriptor) \ - , NULL, 0,NULL, NULL, 0,NULL, 0,NULL, NULL } - - -struct PgQuery__MergeStmt -{ - ProtobufCMessage base; - PgQuery__RangeVar *relation; - PgQuery__Node *source_relation; - PgQuery__Node *join_condition; - size_t n_merge_when_clauses; - PgQuery__Node **merge_when_clauses; - PgQuery__WithClause *with_clause; -}; -#define PG_QUERY__MERGE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__merge_stmt__descriptor) \ - , NULL, NULL, NULL, 0,NULL, NULL } - - -struct PgQuery__SelectStmt -{ - ProtobufCMessage base; - size_t n_distinct_clause; - PgQuery__Node **distinct_clause; - PgQuery__IntoClause *into_clause; - size_t n_target_list; - PgQuery__Node **target_list; - size_t n_from_clause; - PgQuery__Node **from_clause; - PgQuery__Node *where_clause; - size_t n_group_clause; - PgQuery__Node **group_clause; - protobuf_c_boolean group_distinct; - PgQuery__Node *having_clause; - size_t n_window_clause; - PgQuery__Node **window_clause; - size_t n_values_lists; - PgQuery__Node **values_lists; - size_t n_sort_clause; - PgQuery__Node **sort_clause; - PgQuery__Node *limit_offset; - PgQuery__Node *limit_count; - PgQuery__LimitOption limit_option; - size_t n_locking_clause; - PgQuery__Node **locking_clause; - PgQuery__WithClause *with_clause; - PgQuery__SetOperation op; - protobuf_c_boolean all; - PgQuery__SelectStmt *larg; - PgQuery__SelectStmt *rarg; -}; -#define PG_QUERY__SELECT_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__select_stmt__descriptor) \ - , 0,NULL, NULL, 0,NULL, 0,NULL, NULL, 0,NULL, 0, NULL, 0,NULL, 0,NULL, 0,NULL, NULL, NULL, PG_QUERY__LIMIT_OPTION__LIMIT_OPTION_UNDEFINED, 0,NULL, NULL, PG_QUERY__SET_OPERATION__SET_OPERATION_UNDEFINED, 0, NULL, NULL } - - -struct PgQuery__ReturnStmt -{ - ProtobufCMessage base; - PgQuery__Node *returnval; -}; -#define PG_QUERY__RETURN_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__return_stmt__descriptor) \ - , NULL } - - -struct PgQuery__PLAssignStmt -{ - ProtobufCMessage base; - char *name; - size_t n_indirection; - PgQuery__Node **indirection; - int32_t nnames; - PgQuery__SelectStmt *val; - int32_t location; -}; -#define PG_QUERY__PLASSIGN_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__plassign_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, 0, NULL, 0 } - - -struct PgQuery__AlterTableStmt -{ - ProtobufCMessage base; - PgQuery__RangeVar *relation; - size_t n_cmds; - PgQuery__Node **cmds; - PgQuery__ObjectType objtype; - protobuf_c_boolean missing_ok; -}; -#define PG_QUERY__ALTER_TABLE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_table_stmt__descriptor) \ - , NULL, 0,NULL, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, 0 } - - -struct PgQuery__AlterTableCmd -{ - ProtobufCMessage base; - PgQuery__AlterTableType subtype; - char *name; - int32_t num; - PgQuery__RoleSpec *newowner; - PgQuery__Node *def; - PgQuery__DropBehavior behavior; - protobuf_c_boolean missing_ok; - protobuf_c_boolean recurse; -}; -#define PG_QUERY__ALTER_TABLE_CMD__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_table_cmd__descriptor) \ - , PG_QUERY__ALTER_TABLE_TYPE__ALTER_TABLE_TYPE_UNDEFINED, (char *)protobuf_c_empty_string, 0, NULL, NULL, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED, 0, 0 } - - -struct PgQuery__AlterDomainStmt -{ - ProtobufCMessage base; - char *subtype; - size_t n_type_name; - PgQuery__Node **type_name; - char *name; - PgQuery__Node *def; - PgQuery__DropBehavior behavior; - protobuf_c_boolean missing_ok; -}; -#define PG_QUERY__ALTER_DOMAIN_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_domain_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, (char *)protobuf_c_empty_string, NULL, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED, 0 } - - -struct PgQuery__SetOperationStmt -{ - ProtobufCMessage base; - PgQuery__SetOperation op; - protobuf_c_boolean all; - PgQuery__Node *larg; - PgQuery__Node *rarg; - size_t n_col_types; - PgQuery__Node **col_types; - size_t n_col_typmods; - PgQuery__Node **col_typmods; - size_t n_col_collations; - PgQuery__Node **col_collations; - size_t n_group_clauses; - PgQuery__Node **group_clauses; -}; -#define PG_QUERY__SET_OPERATION_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__set_operation_stmt__descriptor) \ - , PG_QUERY__SET_OPERATION__SET_OPERATION_UNDEFINED, 0, NULL, NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL } - - -struct PgQuery__GrantStmt -{ - ProtobufCMessage base; - protobuf_c_boolean is_grant; - PgQuery__GrantTargetType targtype; - PgQuery__ObjectType objtype; - size_t n_objects; - PgQuery__Node **objects; - size_t n_privileges; - PgQuery__Node **privileges; - size_t n_grantees; - PgQuery__Node **grantees; - protobuf_c_boolean grant_option; - PgQuery__RoleSpec *grantor; - PgQuery__DropBehavior behavior; -}; -#define PG_QUERY__GRANT_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__grant_stmt__descriptor) \ - , 0, PG_QUERY__GRANT_TARGET_TYPE__GRANT_TARGET_TYPE_UNDEFINED, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, 0,NULL, 0,NULL, 0,NULL, 0, NULL, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED } - - -struct PgQuery__GrantRoleStmt -{ - ProtobufCMessage base; - size_t n_granted_roles; - PgQuery__Node **granted_roles; - size_t n_grantee_roles; - PgQuery__Node **grantee_roles; - protobuf_c_boolean is_grant; - protobuf_c_boolean admin_opt; - PgQuery__RoleSpec *grantor; - PgQuery__DropBehavior behavior; -}; -#define PG_QUERY__GRANT_ROLE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__grant_role_stmt__descriptor) \ - , 0,NULL, 0,NULL, 0, 0, NULL, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED } - - -struct PgQuery__AlterDefaultPrivilegesStmt -{ - ProtobufCMessage base; - size_t n_options; - PgQuery__Node **options; - PgQuery__GrantStmt *action; -}; -#define PG_QUERY__ALTER_DEFAULT_PRIVILEGES_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_default_privileges_stmt__descriptor) \ - , 0,NULL, NULL } - - -struct PgQuery__ClosePortalStmt -{ - ProtobufCMessage base; - char *portalname; -}; -#define PG_QUERY__CLOSE_PORTAL_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__close_portal_stmt__descriptor) \ - , (char *)protobuf_c_empty_string } - - -struct PgQuery__ClusterStmt -{ - ProtobufCMessage base; - PgQuery__RangeVar *relation; - char *indexname; - size_t n_params; - PgQuery__Node **params; -}; -#define PG_QUERY__CLUSTER_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__cluster_stmt__descriptor) \ - , NULL, (char *)protobuf_c_empty_string, 0,NULL } - - -struct PgQuery__CopyStmt -{ - ProtobufCMessage base; - PgQuery__RangeVar *relation; - PgQuery__Node *query; - size_t n_attlist; - PgQuery__Node **attlist; - protobuf_c_boolean is_from; - protobuf_c_boolean is_program; - char *filename; - size_t n_options; - PgQuery__Node **options; - PgQuery__Node *where_clause; -}; -#define PG_QUERY__COPY_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__copy_stmt__descriptor) \ - , NULL, NULL, 0,NULL, 0, 0, (char *)protobuf_c_empty_string, 0,NULL, NULL } - - -struct PgQuery__CreateStmt -{ - ProtobufCMessage base; - PgQuery__RangeVar *relation; - size_t n_table_elts; - PgQuery__Node **table_elts; - size_t n_inh_relations; - PgQuery__Node **inh_relations; - PgQuery__PartitionBoundSpec *partbound; - PgQuery__PartitionSpec *partspec; - PgQuery__TypeName *of_typename; - size_t n_constraints; - PgQuery__Node **constraints; - size_t n_options; - PgQuery__Node **options; - PgQuery__OnCommitAction oncommit; - char *tablespacename; - char *access_method; - protobuf_c_boolean if_not_exists; -}; -#define PG_QUERY__CREATE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_stmt__descriptor) \ - , NULL, 0,NULL, 0,NULL, NULL, NULL, NULL, 0,NULL, 0,NULL, PG_QUERY__ON_COMMIT_ACTION__ON_COMMIT_ACTION_UNDEFINED, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0 } - - -struct PgQuery__DefineStmt -{ - ProtobufCMessage base; - PgQuery__ObjectType kind; - protobuf_c_boolean oldstyle; - size_t n_defnames; - PgQuery__Node **defnames; - size_t n_args; - PgQuery__Node **args; - size_t n_definition; - PgQuery__Node **definition; - protobuf_c_boolean if_not_exists; - protobuf_c_boolean replace; -}; -#define PG_QUERY__DEFINE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__define_stmt__descriptor) \ - , PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, 0, 0,NULL, 0,NULL, 0,NULL, 0, 0 } - - -struct PgQuery__DropStmt -{ - ProtobufCMessage base; - size_t n_objects; - PgQuery__Node **objects; - PgQuery__ObjectType remove_type; - PgQuery__DropBehavior behavior; - protobuf_c_boolean missing_ok; - protobuf_c_boolean concurrent; -}; -#define PG_QUERY__DROP_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__drop_stmt__descriptor) \ - , 0,NULL, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED, 0, 0 } - - -struct PgQuery__TruncateStmt -{ - ProtobufCMessage base; - size_t n_relations; - PgQuery__Node **relations; - protobuf_c_boolean restart_seqs; - PgQuery__DropBehavior behavior; -}; -#define PG_QUERY__TRUNCATE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__truncate_stmt__descriptor) \ - , 0,NULL, 0, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED } - - -struct PgQuery__CommentStmt -{ - ProtobufCMessage base; - PgQuery__ObjectType objtype; - PgQuery__Node *object; - char *comment; -}; -#define PG_QUERY__COMMENT_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__comment_stmt__descriptor) \ - , PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL, (char *)protobuf_c_empty_string } - - -struct PgQuery__FetchStmt -{ - ProtobufCMessage base; - PgQuery__FetchDirection direction; - int64_t how_many; - char *portalname; - protobuf_c_boolean ismove; -}; -#define PG_QUERY__FETCH_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__fetch_stmt__descriptor) \ - , PG_QUERY__FETCH_DIRECTION__FETCH_DIRECTION_UNDEFINED, 0, (char *)protobuf_c_empty_string, 0 } - - -struct PgQuery__IndexStmt -{ - ProtobufCMessage base; - char *idxname; - PgQuery__RangeVar *relation; - char *access_method; - char *table_space; - size_t n_index_params; - PgQuery__Node **index_params; - size_t n_index_including_params; - PgQuery__Node **index_including_params; - size_t n_options; - PgQuery__Node **options; - PgQuery__Node *where_clause; - size_t n_exclude_op_names; - PgQuery__Node **exclude_op_names; - char *idxcomment; - uint32_t index_oid; - uint32_t old_node; - uint32_t old_create_subid; - uint32_t old_first_relfilenode_subid; - protobuf_c_boolean unique; - protobuf_c_boolean nulls_not_distinct; - protobuf_c_boolean primary; - protobuf_c_boolean isconstraint; - protobuf_c_boolean deferrable; - protobuf_c_boolean initdeferred; - protobuf_c_boolean transformed; - protobuf_c_boolean concurrent; - protobuf_c_boolean if_not_exists; - protobuf_c_boolean reset_default_tblspc; -}; -#define PG_QUERY__INDEX_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__index_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0,NULL, NULL, 0,NULL, (char *)protobuf_c_empty_string, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } - - -struct PgQuery__CreateFunctionStmt -{ - ProtobufCMessage base; - protobuf_c_boolean is_procedure; - protobuf_c_boolean replace; - size_t n_funcname; - PgQuery__Node **funcname; - size_t n_parameters; - PgQuery__Node **parameters; - PgQuery__TypeName *return_type; - size_t n_options; - PgQuery__Node **options; - PgQuery__Node *sql_body; -}; -#define PG_QUERY__CREATE_FUNCTION_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_function_stmt__descriptor) \ - , 0, 0, 0,NULL, 0,NULL, NULL, 0,NULL, NULL } - - -struct PgQuery__AlterFunctionStmt -{ - ProtobufCMessage base; - PgQuery__ObjectType objtype; - PgQuery__ObjectWithArgs *func; - size_t n_actions; - PgQuery__Node **actions; -}; -#define PG_QUERY__ALTER_FUNCTION_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_function_stmt__descriptor) \ - , PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL, 0,NULL } - - -struct PgQuery__DoStmt -{ - ProtobufCMessage base; - size_t n_args; - PgQuery__Node **args; -}; -#define PG_QUERY__DO_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__do_stmt__descriptor) \ - , 0,NULL } - - -struct PgQuery__RenameStmt -{ - ProtobufCMessage base; - PgQuery__ObjectType rename_type; - PgQuery__ObjectType relation_type; - PgQuery__RangeVar *relation; - PgQuery__Node *object; - char *subname; - char *newname; - PgQuery__DropBehavior behavior; - protobuf_c_boolean missing_ok; -}; -#define PG_QUERY__RENAME_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__rename_stmt__descriptor) \ - , PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL, NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED, 0 } - - -struct PgQuery__RuleStmt -{ - ProtobufCMessage base; - PgQuery__RangeVar *relation; - char *rulename; - PgQuery__Node *where_clause; - PgQuery__CmdType event; - protobuf_c_boolean instead; - size_t n_actions; - PgQuery__Node **actions; - protobuf_c_boolean replace; -}; -#define PG_QUERY__RULE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__rule_stmt__descriptor) \ - , NULL, (char *)protobuf_c_empty_string, NULL, PG_QUERY__CMD_TYPE__CMD_TYPE_UNDEFINED, 0, 0,NULL, 0 } - - -struct PgQuery__NotifyStmt -{ - ProtobufCMessage base; - char *conditionname; - char *payload; -}; -#define PG_QUERY__NOTIFY_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__notify_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string } - - -struct PgQuery__ListenStmt -{ - ProtobufCMessage base; - char *conditionname; -}; -#define PG_QUERY__LISTEN_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__listen_stmt__descriptor) \ - , (char *)protobuf_c_empty_string } - - -struct PgQuery__UnlistenStmt -{ - ProtobufCMessage base; - char *conditionname; -}; -#define PG_QUERY__UNLISTEN_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__unlisten_stmt__descriptor) \ - , (char *)protobuf_c_empty_string } - - -struct PgQuery__TransactionStmt -{ - ProtobufCMessage base; - PgQuery__TransactionStmtKind kind; - size_t n_options; - PgQuery__Node **options; - char *savepoint_name; - char *gid; - protobuf_c_boolean chain; -}; -#define PG_QUERY__TRANSACTION_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__transaction_stmt__descriptor) \ - , PG_QUERY__TRANSACTION_STMT_KIND__TRANSACTION_STMT_KIND_UNDEFINED, 0,NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0 } - - -struct PgQuery__ViewStmt -{ - ProtobufCMessage base; - PgQuery__RangeVar *view; - size_t n_aliases; - PgQuery__Node **aliases; - PgQuery__Node *query; - protobuf_c_boolean replace; - size_t n_options; - PgQuery__Node **options; - PgQuery__ViewCheckOption with_check_option; -}; -#define PG_QUERY__VIEW_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__view_stmt__descriptor) \ - , NULL, 0,NULL, NULL, 0, 0,NULL, PG_QUERY__VIEW_CHECK_OPTION__VIEW_CHECK_OPTION_UNDEFINED } - - -struct PgQuery__LoadStmt -{ - ProtobufCMessage base; - char *filename; -}; -#define PG_QUERY__LOAD_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__load_stmt__descriptor) \ - , (char *)protobuf_c_empty_string } - - -struct PgQuery__CreateDomainStmt -{ - ProtobufCMessage base; - size_t n_domainname; - PgQuery__Node **domainname; - PgQuery__TypeName *type_name; - PgQuery__CollateClause *coll_clause; - size_t n_constraints; - PgQuery__Node **constraints; -}; -#define PG_QUERY__CREATE_DOMAIN_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_domain_stmt__descriptor) \ - , 0,NULL, NULL, NULL, 0,NULL } - - -struct PgQuery__CreatedbStmt -{ - ProtobufCMessage base; - char *dbname; - size_t n_options; - PgQuery__Node **options; -}; -#define PG_QUERY__CREATEDB_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__createdb_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL } - - -struct PgQuery__DropdbStmt -{ - ProtobufCMessage base; - char *dbname; - protobuf_c_boolean missing_ok; - size_t n_options; - PgQuery__Node **options; -}; -#define PG_QUERY__DROPDB_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__dropdb_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0, 0,NULL } - - -struct PgQuery__VacuumStmt -{ - ProtobufCMessage base; - size_t n_options; - PgQuery__Node **options; - size_t n_rels; - PgQuery__Node **rels; - protobuf_c_boolean is_vacuumcmd; -}; -#define PG_QUERY__VACUUM_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__vacuum_stmt__descriptor) \ - , 0,NULL, 0,NULL, 0 } - - -struct PgQuery__ExplainStmt -{ - ProtobufCMessage base; - PgQuery__Node *query; - size_t n_options; - PgQuery__Node **options; -}; -#define PG_QUERY__EXPLAIN_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__explain_stmt__descriptor) \ - , NULL, 0,NULL } - - -struct PgQuery__CreateTableAsStmt -{ - ProtobufCMessage base; - PgQuery__Node *query; - PgQuery__IntoClause *into; - PgQuery__ObjectType objtype; - protobuf_c_boolean is_select_into; - protobuf_c_boolean if_not_exists; -}; -#define PG_QUERY__CREATE_TABLE_AS_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_table_as_stmt__descriptor) \ - , NULL, NULL, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, 0, 0 } - - -struct PgQuery__CreateSeqStmt -{ - ProtobufCMessage base; - PgQuery__RangeVar *sequence; - size_t n_options; - PgQuery__Node **options; - uint32_t owner_id; - protobuf_c_boolean for_identity; - protobuf_c_boolean if_not_exists; -}; -#define PG_QUERY__CREATE_SEQ_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_seq_stmt__descriptor) \ - , NULL, 0,NULL, 0, 0, 0 } - - -struct PgQuery__AlterSeqStmt -{ - ProtobufCMessage base; - PgQuery__RangeVar *sequence; - size_t n_options; - PgQuery__Node **options; - protobuf_c_boolean for_identity; - protobuf_c_boolean missing_ok; -}; -#define PG_QUERY__ALTER_SEQ_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_seq_stmt__descriptor) \ - , NULL, 0,NULL, 0, 0 } - - -struct PgQuery__VariableSetStmt -{ - ProtobufCMessage base; - PgQuery__VariableSetKind kind; - char *name; - size_t n_args; - PgQuery__Node **args; - protobuf_c_boolean is_local; -}; -#define PG_QUERY__VARIABLE_SET_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__variable_set_stmt__descriptor) \ - , PG_QUERY__VARIABLE_SET_KIND__VARIABLE_SET_KIND_UNDEFINED, (char *)protobuf_c_empty_string, 0,NULL, 0 } - - -struct PgQuery__VariableShowStmt -{ - ProtobufCMessage base; - char *name; -}; -#define PG_QUERY__VARIABLE_SHOW_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__variable_show_stmt__descriptor) \ - , (char *)protobuf_c_empty_string } - - -struct PgQuery__DiscardStmt -{ - ProtobufCMessage base; - PgQuery__DiscardMode target; -}; -#define PG_QUERY__DISCARD_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__discard_stmt__descriptor) \ - , PG_QUERY__DISCARD_MODE__DISCARD_MODE_UNDEFINED } - - -struct PgQuery__CreateTrigStmt -{ - ProtobufCMessage base; - protobuf_c_boolean replace; - protobuf_c_boolean isconstraint; - char *trigname; - PgQuery__RangeVar *relation; - size_t n_funcname; - PgQuery__Node **funcname; - size_t n_args; - PgQuery__Node **args; - protobuf_c_boolean row; - int32_t timing; - int32_t events; - size_t n_columns; - PgQuery__Node **columns; - PgQuery__Node *when_clause; - size_t n_transition_rels; - PgQuery__Node **transition_rels; - protobuf_c_boolean deferrable; - protobuf_c_boolean initdeferred; - PgQuery__RangeVar *constrrel; -}; -#define PG_QUERY__CREATE_TRIG_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_trig_stmt__descriptor) \ - , 0, 0, (char *)protobuf_c_empty_string, NULL, 0,NULL, 0,NULL, 0, 0, 0, 0,NULL, NULL, 0,NULL, 0, 0, NULL } - - -struct PgQuery__CreatePLangStmt -{ - ProtobufCMessage base; - protobuf_c_boolean replace; - char *plname; - size_t n_plhandler; - PgQuery__Node **plhandler; - size_t n_plinline; - PgQuery__Node **plinline; - size_t n_plvalidator; - PgQuery__Node **plvalidator; - protobuf_c_boolean pltrusted; -}; -#define PG_QUERY__CREATE_PLANG_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_plang_stmt__descriptor) \ - , 0, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0,NULL, 0 } - - -struct PgQuery__CreateRoleStmt -{ - ProtobufCMessage base; - PgQuery__RoleStmtType stmt_type; - char *role; - size_t n_options; - PgQuery__Node **options; -}; -#define PG_QUERY__CREATE_ROLE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_role_stmt__descriptor) \ - , PG_QUERY__ROLE_STMT_TYPE__ROLE_STMT_TYPE_UNDEFINED, (char *)protobuf_c_empty_string, 0,NULL } - - -struct PgQuery__AlterRoleStmt -{ - ProtobufCMessage base; - PgQuery__RoleSpec *role; - size_t n_options; - PgQuery__Node **options; - int32_t action; -}; -#define PG_QUERY__ALTER_ROLE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_role_stmt__descriptor) \ - , NULL, 0,NULL, 0 } - - -struct PgQuery__DropRoleStmt -{ - ProtobufCMessage base; - size_t n_roles; - PgQuery__Node **roles; - protobuf_c_boolean missing_ok; -}; -#define PG_QUERY__DROP_ROLE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__drop_role_stmt__descriptor) \ - , 0,NULL, 0 } - - -struct PgQuery__LockStmt -{ - ProtobufCMessage base; - size_t n_relations; - PgQuery__Node **relations; - int32_t mode; - protobuf_c_boolean nowait; -}; -#define PG_QUERY__LOCK_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__lock_stmt__descriptor) \ - , 0,NULL, 0, 0 } - - -struct PgQuery__ConstraintsSetStmt -{ - ProtobufCMessage base; - size_t n_constraints; - PgQuery__Node **constraints; - protobuf_c_boolean deferred; -}; -#define PG_QUERY__CONSTRAINTS_SET_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__constraints_set_stmt__descriptor) \ - , 0,NULL, 0 } - - -struct PgQuery__ReindexStmt -{ - ProtobufCMessage base; - PgQuery__ReindexObjectType kind; - PgQuery__RangeVar *relation; - char *name; - size_t n_params; - PgQuery__Node **params; -}; -#define PG_QUERY__REINDEX_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__reindex_stmt__descriptor) \ - , PG_QUERY__REINDEX_OBJECT_TYPE__REINDEX_OBJECT_TYPE_UNDEFINED, NULL, (char *)protobuf_c_empty_string, 0,NULL } - - -struct PgQuery__CheckPointStmt -{ - ProtobufCMessage base; -}; -#define PG_QUERY__CHECK_POINT_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__check_point_stmt__descriptor) \ - } - - -struct PgQuery__CreateSchemaStmt -{ - ProtobufCMessage base; - char *schemaname; - PgQuery__RoleSpec *authrole; - size_t n_schema_elts; - PgQuery__Node **schema_elts; - protobuf_c_boolean if_not_exists; -}; -#define PG_QUERY__CREATE_SCHEMA_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_schema_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, NULL, 0,NULL, 0 } - - -struct PgQuery__AlterDatabaseStmt -{ - ProtobufCMessage base; - char *dbname; - size_t n_options; - PgQuery__Node **options; -}; -#define PG_QUERY__ALTER_DATABASE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_database_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL } - - -struct PgQuery__AlterDatabaseRefreshCollStmt -{ - ProtobufCMessage base; - char *dbname; -}; -#define PG_QUERY__ALTER_DATABASE_REFRESH_COLL_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_database_refresh_coll_stmt__descriptor) \ - , (char *)protobuf_c_empty_string } - - -struct PgQuery__AlterDatabaseSetStmt -{ - ProtobufCMessage base; - char *dbname; - PgQuery__VariableSetStmt *setstmt; -}; -#define PG_QUERY__ALTER_DATABASE_SET_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_database_set_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, NULL } - - -struct PgQuery__AlterRoleSetStmt -{ - ProtobufCMessage base; - PgQuery__RoleSpec *role; - char *database; - PgQuery__VariableSetStmt *setstmt; -}; -#define PG_QUERY__ALTER_ROLE_SET_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_role_set_stmt__descriptor) \ - , NULL, (char *)protobuf_c_empty_string, NULL } - - -struct PgQuery__CreateConversionStmt -{ - ProtobufCMessage base; - size_t n_conversion_name; - PgQuery__Node **conversion_name; - char *for_encoding_name; - char *to_encoding_name; - size_t n_func_name; - PgQuery__Node **func_name; - protobuf_c_boolean def; -}; -#define PG_QUERY__CREATE_CONVERSION_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_conversion_stmt__descriptor) \ - , 0,NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0 } - - -struct PgQuery__CreateCastStmt -{ - ProtobufCMessage base; - PgQuery__TypeName *sourcetype; - PgQuery__TypeName *targettype; - PgQuery__ObjectWithArgs *func; - PgQuery__CoercionContext context; - protobuf_c_boolean inout; -}; -#define PG_QUERY__CREATE_CAST_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_cast_stmt__descriptor) \ - , NULL, NULL, NULL, PG_QUERY__COERCION_CONTEXT__COERCION_CONTEXT_UNDEFINED, 0 } - - -struct PgQuery__CreateOpClassStmt -{ - ProtobufCMessage base; - size_t n_opclassname; - PgQuery__Node **opclassname; - size_t n_opfamilyname; - PgQuery__Node **opfamilyname; - char *amname; - PgQuery__TypeName *datatype; - size_t n_items; - PgQuery__Node **items; - protobuf_c_boolean is_default; -}; -#define PG_QUERY__CREATE_OP_CLASS_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_op_class_stmt__descriptor) \ - , 0,NULL, 0,NULL, (char *)protobuf_c_empty_string, NULL, 0,NULL, 0 } - - -struct PgQuery__CreateOpFamilyStmt -{ - ProtobufCMessage base; - size_t n_opfamilyname; - PgQuery__Node **opfamilyname; - char *amname; -}; -#define PG_QUERY__CREATE_OP_FAMILY_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_op_family_stmt__descriptor) \ - , 0,NULL, (char *)protobuf_c_empty_string } - - -struct PgQuery__AlterOpFamilyStmt -{ - ProtobufCMessage base; - size_t n_opfamilyname; - PgQuery__Node **opfamilyname; - char *amname; - protobuf_c_boolean is_drop; - size_t n_items; - PgQuery__Node **items; -}; -#define PG_QUERY__ALTER_OP_FAMILY_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_op_family_stmt__descriptor) \ - , 0,NULL, (char *)protobuf_c_empty_string, 0, 0,NULL } - - -struct PgQuery__PrepareStmt -{ - ProtobufCMessage base; - char *name; - size_t n_argtypes; - PgQuery__Node **argtypes; - PgQuery__Node *query; -}; -#define PG_QUERY__PREPARE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__prepare_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, NULL } - - -struct PgQuery__ExecuteStmt -{ - ProtobufCMessage base; - char *name; - size_t n_params; - PgQuery__Node **params; -}; -#define PG_QUERY__EXECUTE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__execute_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL } - - -struct PgQuery__DeallocateStmt -{ - ProtobufCMessage base; - char *name; -}; -#define PG_QUERY__DEALLOCATE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__deallocate_stmt__descriptor) \ - , (char *)protobuf_c_empty_string } - - -struct PgQuery__DeclareCursorStmt -{ - ProtobufCMessage base; - char *portalname; - int32_t options; - PgQuery__Node *query; -}; -#define PG_QUERY__DECLARE_CURSOR_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__declare_cursor_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0, NULL } - - -struct PgQuery__CreateTableSpaceStmt -{ - ProtobufCMessage base; - char *tablespacename; - PgQuery__RoleSpec *owner; - char *location; - size_t n_options; - PgQuery__Node **options; -}; -#define PG_QUERY__CREATE_TABLE_SPACE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_table_space_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, NULL, (char *)protobuf_c_empty_string, 0,NULL } - - -struct PgQuery__DropTableSpaceStmt -{ - ProtobufCMessage base; - char *tablespacename; - protobuf_c_boolean missing_ok; -}; -#define PG_QUERY__DROP_TABLE_SPACE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__drop_table_space_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0 } - - -struct PgQuery__AlterObjectDependsStmt -{ - ProtobufCMessage base; - PgQuery__ObjectType object_type; - PgQuery__RangeVar *relation; - PgQuery__Node *object; - PgQuery__String *extname; - protobuf_c_boolean remove; -}; -#define PG_QUERY__ALTER_OBJECT_DEPENDS_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_object_depends_stmt__descriptor) \ - , PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL, NULL, NULL, 0 } - - -struct PgQuery__AlterObjectSchemaStmt -{ - ProtobufCMessage base; - PgQuery__ObjectType object_type; - PgQuery__RangeVar *relation; - PgQuery__Node *object; - char *newschema; - protobuf_c_boolean missing_ok; -}; -#define PG_QUERY__ALTER_OBJECT_SCHEMA_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_object_schema_stmt__descriptor) \ - , PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL, NULL, (char *)protobuf_c_empty_string, 0 } - - -struct PgQuery__AlterOwnerStmt -{ - ProtobufCMessage base; - PgQuery__ObjectType object_type; - PgQuery__RangeVar *relation; - PgQuery__Node *object; - PgQuery__RoleSpec *newowner; -}; -#define PG_QUERY__ALTER_OWNER_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_owner_stmt__descriptor) \ - , PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL, NULL, NULL } - - -struct PgQuery__AlterOperatorStmt -{ - ProtobufCMessage base; - PgQuery__ObjectWithArgs *opername; - size_t n_options; - PgQuery__Node **options; -}; -#define PG_QUERY__ALTER_OPERATOR_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_operator_stmt__descriptor) \ - , NULL, 0,NULL } - - -struct PgQuery__AlterTypeStmt -{ - ProtobufCMessage base; - size_t n_type_name; - PgQuery__Node **type_name; - size_t n_options; - PgQuery__Node **options; -}; -#define PG_QUERY__ALTER_TYPE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_type_stmt__descriptor) \ - , 0,NULL, 0,NULL } - - -struct PgQuery__DropOwnedStmt -{ - ProtobufCMessage base; - size_t n_roles; - PgQuery__Node **roles; - PgQuery__DropBehavior behavior; -}; -#define PG_QUERY__DROP_OWNED_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__drop_owned_stmt__descriptor) \ - , 0,NULL, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED } - - -struct PgQuery__ReassignOwnedStmt -{ - ProtobufCMessage base; - size_t n_roles; - PgQuery__Node **roles; - PgQuery__RoleSpec *newrole; -}; -#define PG_QUERY__REASSIGN_OWNED_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__reassign_owned_stmt__descriptor) \ - , 0,NULL, NULL } - - -struct PgQuery__CompositeTypeStmt -{ - ProtobufCMessage base; - PgQuery__RangeVar *typevar; - size_t n_coldeflist; - PgQuery__Node **coldeflist; -}; -#define PG_QUERY__COMPOSITE_TYPE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__composite_type_stmt__descriptor) \ - , NULL, 0,NULL } - - -struct PgQuery__CreateEnumStmt -{ - ProtobufCMessage base; - size_t n_type_name; - PgQuery__Node **type_name; - size_t n_vals; - PgQuery__Node **vals; -}; -#define PG_QUERY__CREATE_ENUM_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_enum_stmt__descriptor) \ - , 0,NULL, 0,NULL } - - -struct PgQuery__CreateRangeStmt -{ - ProtobufCMessage base; - size_t n_type_name; - PgQuery__Node **type_name; - size_t n_params; - PgQuery__Node **params; -}; -#define PG_QUERY__CREATE_RANGE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_range_stmt__descriptor) \ - , 0,NULL, 0,NULL } - - -struct PgQuery__AlterEnumStmt -{ - ProtobufCMessage base; - size_t n_type_name; - PgQuery__Node **type_name; - char *old_val; - char *new_val; - char *new_val_neighbor; - protobuf_c_boolean new_val_is_after; - protobuf_c_boolean skip_if_new_val_exists; -}; -#define PG_QUERY__ALTER_ENUM_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_enum_stmt__descriptor) \ - , 0,NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0, 0 } - - -struct PgQuery__AlterTSDictionaryStmt -{ - ProtobufCMessage base; - size_t n_dictname; - PgQuery__Node **dictname; - size_t n_options; - PgQuery__Node **options; -}; -#define PG_QUERY__ALTER_TSDICTIONARY_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_tsdictionary_stmt__descriptor) \ - , 0,NULL, 0,NULL } - - -struct PgQuery__AlterTSConfigurationStmt -{ - ProtobufCMessage base; - PgQuery__AlterTSConfigType kind; - size_t n_cfgname; - PgQuery__Node **cfgname; - size_t n_tokentype; - PgQuery__Node **tokentype; - size_t n_dicts; - PgQuery__Node **dicts; - protobuf_c_boolean override; - protobuf_c_boolean replace; - protobuf_c_boolean missing_ok; -}; -#define PG_QUERY__ALTER_TSCONFIGURATION_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_tsconfiguration_stmt__descriptor) \ - , PG_QUERY__ALTER_TSCONFIG_TYPE__ALTER_TSCONFIG_TYPE_UNDEFINED, 0,NULL, 0,NULL, 0,NULL, 0, 0, 0 } - - -struct PgQuery__CreateFdwStmt -{ - ProtobufCMessage base; - char *fdwname; - size_t n_func_options; - PgQuery__Node **func_options; - size_t n_options; - PgQuery__Node **options; -}; -#define PG_QUERY__CREATE_FDW_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_fdw_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, 0,NULL } - - -struct PgQuery__AlterFdwStmt -{ - ProtobufCMessage base; - char *fdwname; - size_t n_func_options; - PgQuery__Node **func_options; - size_t n_options; - PgQuery__Node **options; -}; -#define PG_QUERY__ALTER_FDW_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_fdw_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, 0,NULL } - - -struct PgQuery__CreateForeignServerStmt -{ - ProtobufCMessage base; - char *servername; - char *servertype; - char *version; - char *fdwname; - protobuf_c_boolean if_not_exists; - size_t n_options; - PgQuery__Node **options; -}; -#define PG_QUERY__CREATE_FOREIGN_SERVER_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_foreign_server_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0, 0,NULL } - - -struct PgQuery__AlterForeignServerStmt -{ - ProtobufCMessage base; - char *servername; - char *version; - size_t n_options; - PgQuery__Node **options; - protobuf_c_boolean has_version; -}; -#define PG_QUERY__ALTER_FOREIGN_SERVER_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_foreign_server_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0 } - - -struct PgQuery__CreateUserMappingStmt -{ - ProtobufCMessage base; - PgQuery__RoleSpec *user; - char *servername; - protobuf_c_boolean if_not_exists; - size_t n_options; - PgQuery__Node **options; -}; -#define PG_QUERY__CREATE_USER_MAPPING_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_user_mapping_stmt__descriptor) \ - , NULL, (char *)protobuf_c_empty_string, 0, 0,NULL } - - -struct PgQuery__AlterUserMappingStmt -{ - ProtobufCMessage base; - PgQuery__RoleSpec *user; - char *servername; - size_t n_options; - PgQuery__Node **options; -}; -#define PG_QUERY__ALTER_USER_MAPPING_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_user_mapping_stmt__descriptor) \ - , NULL, (char *)protobuf_c_empty_string, 0,NULL } - - -struct PgQuery__DropUserMappingStmt -{ - ProtobufCMessage base; - PgQuery__RoleSpec *user; - char *servername; - protobuf_c_boolean missing_ok; -}; -#define PG_QUERY__DROP_USER_MAPPING_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__drop_user_mapping_stmt__descriptor) \ - , NULL, (char *)protobuf_c_empty_string, 0 } - - -struct PgQuery__AlterTableSpaceOptionsStmt -{ - ProtobufCMessage base; - char *tablespacename; - size_t n_options; - PgQuery__Node **options; - protobuf_c_boolean is_reset; -}; -#define PG_QUERY__ALTER_TABLE_SPACE_OPTIONS_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_table_space_options_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, 0 } - - -struct PgQuery__AlterTableMoveAllStmt -{ - ProtobufCMessage base; - char *orig_tablespacename; - PgQuery__ObjectType objtype; - size_t n_roles; - PgQuery__Node **roles; - char *new_tablespacename; - protobuf_c_boolean nowait; -}; -#define PG_QUERY__ALTER_TABLE_MOVE_ALL_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_table_move_all_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, 0,NULL, (char *)protobuf_c_empty_string, 0 } - - -struct PgQuery__SecLabelStmt -{ - ProtobufCMessage base; - PgQuery__ObjectType objtype; - PgQuery__Node *object; - char *provider; - char *label; -}; -#define PG_QUERY__SEC_LABEL_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__sec_label_stmt__descriptor) \ - , PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string } - - -struct PgQuery__CreateForeignTableStmt -{ - ProtobufCMessage base; - PgQuery__CreateStmt *base_stmt; - char *servername; - size_t n_options; - PgQuery__Node **options; -}; -#define PG_QUERY__CREATE_FOREIGN_TABLE_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_foreign_table_stmt__descriptor) \ - , NULL, (char *)protobuf_c_empty_string, 0,NULL } - - -struct PgQuery__ImportForeignSchemaStmt -{ - ProtobufCMessage base; - char *server_name; - char *remote_schema; - char *local_schema; - PgQuery__ImportForeignSchemaType list_type; - size_t n_table_list; - PgQuery__Node **table_list; - size_t n_options; - PgQuery__Node **options; -}; -#define PG_QUERY__IMPORT_FOREIGN_SCHEMA_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__import_foreign_schema_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, PG_QUERY__IMPORT_FOREIGN_SCHEMA_TYPE__IMPORT_FOREIGN_SCHEMA_TYPE_UNDEFINED, 0,NULL, 0,NULL } - - -struct PgQuery__CreateExtensionStmt -{ - ProtobufCMessage base; - char *extname; - protobuf_c_boolean if_not_exists; - size_t n_options; - PgQuery__Node **options; -}; -#define PG_QUERY__CREATE_EXTENSION_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_extension_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0, 0,NULL } - - -struct PgQuery__AlterExtensionStmt -{ - ProtobufCMessage base; - char *extname; - size_t n_options; - PgQuery__Node **options; -}; -#define PG_QUERY__ALTER_EXTENSION_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_extension_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL } - - -struct PgQuery__AlterExtensionContentsStmt -{ - ProtobufCMessage base; - char *extname; - int32_t action; - PgQuery__ObjectType objtype; - PgQuery__Node *object; -}; -#define PG_QUERY__ALTER_EXTENSION_CONTENTS_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_extension_contents_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0, PG_QUERY__OBJECT_TYPE__OBJECT_TYPE_UNDEFINED, NULL } - - -struct PgQuery__CreateEventTrigStmt -{ - ProtobufCMessage base; - char *trigname; - char *eventname; - size_t n_whenclause; - PgQuery__Node **whenclause; - size_t n_funcname; - PgQuery__Node **funcname; -}; -#define PG_QUERY__CREATE_EVENT_TRIG_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_event_trig_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL } - - -struct PgQuery__AlterEventTrigStmt -{ - ProtobufCMessage base; - char *trigname; - char *tgenabled; -}; -#define PG_QUERY__ALTER_EVENT_TRIG_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_event_trig_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string } - - -struct PgQuery__RefreshMatViewStmt -{ - ProtobufCMessage base; - protobuf_c_boolean concurrent; - protobuf_c_boolean skip_data; - PgQuery__RangeVar *relation; -}; -#define PG_QUERY__REFRESH_MAT_VIEW_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__refresh_mat_view_stmt__descriptor) \ - , 0, 0, NULL } - - -struct PgQuery__ReplicaIdentityStmt -{ - ProtobufCMessage base; - char *identity_type; - char *name; -}; -#define PG_QUERY__REPLICA_IDENTITY_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__replica_identity_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string } - - -struct PgQuery__AlterSystemStmt -{ - ProtobufCMessage base; - PgQuery__VariableSetStmt *setstmt; -}; -#define PG_QUERY__ALTER_SYSTEM_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_system_stmt__descriptor) \ - , NULL } - - -struct PgQuery__CreatePolicyStmt -{ - ProtobufCMessage base; - char *policy_name; - PgQuery__RangeVar *table; - char *cmd_name; - protobuf_c_boolean permissive; - size_t n_roles; - PgQuery__Node **roles; - PgQuery__Node *qual; - PgQuery__Node *with_check; -}; -#define PG_QUERY__CREATE_POLICY_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_policy_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, NULL, (char *)protobuf_c_empty_string, 0, 0,NULL, NULL, NULL } - - -struct PgQuery__AlterPolicyStmt -{ - ProtobufCMessage base; - char *policy_name; - PgQuery__RangeVar *table; - size_t n_roles; - PgQuery__Node **roles; - PgQuery__Node *qual; - PgQuery__Node *with_check; -}; -#define PG_QUERY__ALTER_POLICY_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_policy_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, NULL, 0,NULL, NULL, NULL } - - -struct PgQuery__CreateTransformStmt -{ - ProtobufCMessage base; - protobuf_c_boolean replace; - PgQuery__TypeName *type_name; - char *lang; - PgQuery__ObjectWithArgs *fromsql; - PgQuery__ObjectWithArgs *tosql; -}; -#define PG_QUERY__CREATE_TRANSFORM_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_transform_stmt__descriptor) \ - , 0, NULL, (char *)protobuf_c_empty_string, NULL, NULL } - - -struct PgQuery__CreateAmStmt -{ - ProtobufCMessage base; - char *amname; - size_t n_handler_name; - PgQuery__Node **handler_name; - char *amtype; -}; -#define PG_QUERY__CREATE_AM_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_am_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, (char *)protobuf_c_empty_string } - - -struct PgQuery__CreatePublicationStmt -{ - ProtobufCMessage base; - char *pubname; - size_t n_options; - PgQuery__Node **options; - size_t n_pubobjects; - PgQuery__Node **pubobjects; - protobuf_c_boolean for_all_tables; -}; -#define PG_QUERY__CREATE_PUBLICATION_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_publication_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0 } - - -struct PgQuery__AlterPublicationStmt -{ - ProtobufCMessage base; - char *pubname; - size_t n_options; - PgQuery__Node **options; - size_t n_pubobjects; - PgQuery__Node **pubobjects; - protobuf_c_boolean for_all_tables; - PgQuery__AlterPublicationAction action; -}; -#define PG_QUERY__ALTER_PUBLICATION_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_publication_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0, PG_QUERY__ALTER_PUBLICATION_ACTION__ALTER_PUBLICATION_ACTION_UNDEFINED } - - -struct PgQuery__CreateSubscriptionStmt -{ - ProtobufCMessage base; - char *subname; - char *conninfo; - size_t n_publication; - PgQuery__Node **publication; - size_t n_options; - PgQuery__Node **options; -}; -#define PG_QUERY__CREATE_SUBSCRIPTION_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_subscription_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL } - - -struct PgQuery__AlterSubscriptionStmt -{ - ProtobufCMessage base; - PgQuery__AlterSubscriptionType kind; - char *subname; - char *conninfo; - size_t n_publication; - PgQuery__Node **publication; - size_t n_options; - PgQuery__Node **options; -}; -#define PG_QUERY__ALTER_SUBSCRIPTION_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_subscription_stmt__descriptor) \ - , PG_QUERY__ALTER_SUBSCRIPTION_TYPE__ALTER_SUBSCRIPTION_TYPE_UNDEFINED, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL } - - -struct PgQuery__DropSubscriptionStmt -{ - ProtobufCMessage base; - char *subname; - protobuf_c_boolean missing_ok; - PgQuery__DropBehavior behavior; -}; -#define PG_QUERY__DROP_SUBSCRIPTION_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__drop_subscription_stmt__descriptor) \ - , (char *)protobuf_c_empty_string, 0, PG_QUERY__DROP_BEHAVIOR__DROP_BEHAVIOR_UNDEFINED } - - -struct PgQuery__CreateStatsStmt -{ - ProtobufCMessage base; - size_t n_defnames; - PgQuery__Node **defnames; - size_t n_stat_types; - PgQuery__Node **stat_types; - size_t n_exprs; - PgQuery__Node **exprs; - size_t n_relations; - PgQuery__Node **relations; - char *stxcomment; - protobuf_c_boolean transformed; - protobuf_c_boolean if_not_exists; -}; -#define PG_QUERY__CREATE_STATS_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_stats_stmt__descriptor) \ - , 0,NULL, 0,NULL, 0,NULL, 0,NULL, (char *)protobuf_c_empty_string, 0, 0 } - - -struct PgQuery__AlterCollationStmt -{ - ProtobufCMessage base; - size_t n_collname; - PgQuery__Node **collname; -}; -#define PG_QUERY__ALTER_COLLATION_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_collation_stmt__descriptor) \ - , 0,NULL } - - -struct PgQuery__CallStmt -{ - ProtobufCMessage base; - PgQuery__FuncCall *funccall; - PgQuery__FuncExpr *funcexpr; - size_t n_outargs; - PgQuery__Node **outargs; -}; -#define PG_QUERY__CALL_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__call_stmt__descriptor) \ - , NULL, NULL, 0,NULL } - - -struct PgQuery__AlterStatsStmt -{ - ProtobufCMessage base; - size_t n_defnames; - PgQuery__Node **defnames; - int32_t stxstattarget; - protobuf_c_boolean missing_ok; -}; -#define PG_QUERY__ALTER_STATS_STMT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__alter_stats_stmt__descriptor) \ - , 0,NULL, 0, 0 } - - -struct PgQuery__AExpr -{ - ProtobufCMessage base; - PgQuery__AExprKind kind; - size_t n_name; - PgQuery__Node **name; - PgQuery__Node *lexpr; - PgQuery__Node *rexpr; - int32_t location; -}; -#define PG_QUERY__A__EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__a__expr__descriptor) \ - , PG_QUERY__A__EXPR__KIND__A_EXPR_KIND_UNDEFINED, 0,NULL, NULL, NULL, 0 } - - -struct PgQuery__ColumnRef -{ - ProtobufCMessage base; - size_t n_fields; - PgQuery__Node **fields; - int32_t location; -}; -#define PG_QUERY__COLUMN_REF__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__column_ref__descriptor) \ - , 0,NULL, 0 } - - -struct PgQuery__ParamRef -{ - ProtobufCMessage base; - int32_t number; - int32_t location; -}; -#define PG_QUERY__PARAM_REF__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__param_ref__descriptor) \ - , 0, 0 } - - -struct PgQuery__FuncCall -{ - ProtobufCMessage base; - size_t n_funcname; - PgQuery__Node **funcname; - size_t n_args; - PgQuery__Node **args; - size_t n_agg_order; - PgQuery__Node **agg_order; - PgQuery__Node *agg_filter; - PgQuery__WindowDef *over; - protobuf_c_boolean agg_within_group; - protobuf_c_boolean agg_star; - protobuf_c_boolean agg_distinct; - protobuf_c_boolean func_variadic; - PgQuery__CoercionForm funcformat; - int32_t location; -}; -#define PG_QUERY__FUNC_CALL__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__func_call__descriptor) \ - , 0,NULL, 0,NULL, 0,NULL, NULL, NULL, 0, 0, 0, 0, PG_QUERY__COERCION_FORM__COERCION_FORM_UNDEFINED, 0 } - - -struct PgQuery__AStar -{ - ProtobufCMessage base; -}; -#define PG_QUERY__A__STAR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__a__star__descriptor) \ - } - - -struct PgQuery__AIndices -{ - ProtobufCMessage base; - protobuf_c_boolean is_slice; - PgQuery__Node *lidx; - PgQuery__Node *uidx; -}; -#define PG_QUERY__A__INDICES__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__a__indices__descriptor) \ - , 0, NULL, NULL } - - -struct PgQuery__AIndirection -{ - ProtobufCMessage base; - PgQuery__Node *arg; - size_t n_indirection; - PgQuery__Node **indirection; -}; -#define PG_QUERY__A__INDIRECTION__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__a__indirection__descriptor) \ - , NULL, 0,NULL } - - -struct PgQuery__AArrayExpr -{ - ProtobufCMessage base; - size_t n_elements; - PgQuery__Node **elements; - int32_t location; -}; -#define PG_QUERY__A__ARRAY_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__a__array_expr__descriptor) \ - , 0,NULL, 0 } - - -struct PgQuery__ResTarget -{ - ProtobufCMessage base; - char *name; - size_t n_indirection; - PgQuery__Node **indirection; - PgQuery__Node *val; - int32_t location; -}; -#define PG_QUERY__RES_TARGET__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__res_target__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, NULL, 0 } - - -struct PgQuery__MultiAssignRef -{ - ProtobufCMessage base; - PgQuery__Node *source; - int32_t colno; - int32_t ncolumns; -}; -#define PG_QUERY__MULTI_ASSIGN_REF__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__multi_assign_ref__descriptor) \ - , NULL, 0, 0 } - - -struct PgQuery__TypeCast -{ - ProtobufCMessage base; - PgQuery__Node *arg; - PgQuery__TypeName *type_name; - int32_t location; -}; -#define PG_QUERY__TYPE_CAST__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__type_cast__descriptor) \ - , NULL, NULL, 0 } - - -struct PgQuery__CollateClause -{ - ProtobufCMessage base; - PgQuery__Node *arg; - size_t n_collname; - PgQuery__Node **collname; - int32_t location; -}; -#define PG_QUERY__COLLATE_CLAUSE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__collate_clause__descriptor) \ - , NULL, 0,NULL, 0 } - - -struct PgQuery__SortBy -{ - ProtobufCMessage base; - PgQuery__Node *node; - PgQuery__SortByDir sortby_dir; - PgQuery__SortByNulls sortby_nulls; - size_t n_use_op; - PgQuery__Node **use_op; - int32_t location; -}; -#define PG_QUERY__SORT_BY__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__sort_by__descriptor) \ - , NULL, PG_QUERY__SORT_BY_DIR__SORT_BY_DIR_UNDEFINED, PG_QUERY__SORT_BY_NULLS__SORT_BY_NULLS_UNDEFINED, 0,NULL, 0 } - - -struct PgQuery__WindowDef -{ - ProtobufCMessage base; - char *name; - char *refname; - size_t n_partition_clause; - PgQuery__Node **partition_clause; - size_t n_order_clause; - PgQuery__Node **order_clause; - int32_t frame_options; - PgQuery__Node *start_offset; - PgQuery__Node *end_offset; - int32_t location; -}; -#define PG_QUERY__WINDOW_DEF__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__window_def__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0, NULL, NULL, 0 } - - -struct PgQuery__RangeSubselect -{ - ProtobufCMessage base; - protobuf_c_boolean lateral; - PgQuery__Node *subquery; - PgQuery__Alias *alias; -}; -#define PG_QUERY__RANGE_SUBSELECT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__range_subselect__descriptor) \ - , 0, NULL, NULL } - - -struct PgQuery__RangeFunction -{ - ProtobufCMessage base; - protobuf_c_boolean lateral; - protobuf_c_boolean ordinality; - protobuf_c_boolean is_rowsfrom; - size_t n_functions; - PgQuery__Node **functions; - PgQuery__Alias *alias; - size_t n_coldeflist; - PgQuery__Node **coldeflist; -}; -#define PG_QUERY__RANGE_FUNCTION__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__range_function__descriptor) \ - , 0, 0, 0, 0,NULL, NULL, 0,NULL } - - -struct PgQuery__RangeTableSample -{ - ProtobufCMessage base; - PgQuery__Node *relation; - size_t n_method; - PgQuery__Node **method; - size_t n_args; - PgQuery__Node **args; - PgQuery__Node *repeatable; - int32_t location; -}; -#define PG_QUERY__RANGE_TABLE_SAMPLE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__range_table_sample__descriptor) \ - , NULL, 0,NULL, 0,NULL, NULL, 0 } - - -struct PgQuery__RangeTableFunc -{ - ProtobufCMessage base; - protobuf_c_boolean lateral; - PgQuery__Node *docexpr; - PgQuery__Node *rowexpr; - size_t n_namespaces; - PgQuery__Node **namespaces; - size_t n_columns; - PgQuery__Node **columns; - PgQuery__Alias *alias; - int32_t location; -}; -#define PG_QUERY__RANGE_TABLE_FUNC__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__range_table_func__descriptor) \ - , 0, NULL, NULL, 0,NULL, 0,NULL, NULL, 0 } - - -struct PgQuery__RangeTableFuncCol -{ - ProtobufCMessage base; - char *colname; - PgQuery__TypeName *type_name; - protobuf_c_boolean for_ordinality; - protobuf_c_boolean is_not_null; - PgQuery__Node *colexpr; - PgQuery__Node *coldefexpr; - int32_t location; -}; -#define PG_QUERY__RANGE_TABLE_FUNC_COL__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__range_table_func_col__descriptor) \ - , (char *)protobuf_c_empty_string, NULL, 0, 0, NULL, NULL, 0 } - - -struct PgQuery__TypeName -{ - ProtobufCMessage base; - size_t n_names; - PgQuery__Node **names; - uint32_t type_oid; - protobuf_c_boolean setof; - protobuf_c_boolean pct_type; - size_t n_typmods; - PgQuery__Node **typmods; - int32_t typemod; - size_t n_array_bounds; - PgQuery__Node **array_bounds; - int32_t location; -}; -#define PG_QUERY__TYPE_NAME__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__type_name__descriptor) \ - , 0,NULL, 0, 0, 0, 0,NULL, 0, 0,NULL, 0 } - - -struct PgQuery__ColumnDef -{ - ProtobufCMessage base; - char *colname; - PgQuery__TypeName *type_name; - char *compression; - int32_t inhcount; - protobuf_c_boolean is_local; - protobuf_c_boolean is_not_null; - protobuf_c_boolean is_from_type; - char *storage; - PgQuery__Node *raw_default; - PgQuery__Node *cooked_default; - char *identity; - PgQuery__RangeVar *identity_sequence; - char *generated; - PgQuery__CollateClause *coll_clause; - uint32_t coll_oid; - size_t n_constraints; - PgQuery__Node **constraints; - size_t n_fdwoptions; - PgQuery__Node **fdwoptions; - int32_t location; -}; -#define PG_QUERY__COLUMN_DEF__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__column_def__descriptor) \ - , (char *)protobuf_c_empty_string, NULL, (char *)protobuf_c_empty_string, 0, 0, 0, 0, (char *)protobuf_c_empty_string, NULL, NULL, (char *)protobuf_c_empty_string, NULL, (char *)protobuf_c_empty_string, NULL, 0, 0,NULL, 0,NULL, 0 } - - -struct PgQuery__IndexElem -{ - ProtobufCMessage base; - char *name; - PgQuery__Node *expr; - char *indexcolname; - size_t n_collation; - PgQuery__Node **collation; - size_t n_opclass; - PgQuery__Node **opclass; - size_t n_opclassopts; - PgQuery__Node **opclassopts; - PgQuery__SortByDir ordering; - PgQuery__SortByNulls nulls_ordering; -}; -#define PG_QUERY__INDEX_ELEM__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__index_elem__descriptor) \ - , (char *)protobuf_c_empty_string, NULL, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0,NULL, PG_QUERY__SORT_BY_DIR__SORT_BY_DIR_UNDEFINED, PG_QUERY__SORT_BY_NULLS__SORT_BY_NULLS_UNDEFINED } - - -struct PgQuery__StatsElem -{ - ProtobufCMessage base; - char *name; - PgQuery__Node *expr; -}; -#define PG_QUERY__STATS_ELEM__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__stats_elem__descriptor) \ - , (char *)protobuf_c_empty_string, NULL } - - -struct PgQuery__Constraint -{ - ProtobufCMessage base; - PgQuery__ConstrType contype; - char *conname; - protobuf_c_boolean deferrable; - protobuf_c_boolean initdeferred; - int32_t location; - protobuf_c_boolean is_no_inherit; - PgQuery__Node *raw_expr; - char *cooked_expr; - char *generated_when; - protobuf_c_boolean nulls_not_distinct; - size_t n_keys; - PgQuery__Node **keys; - size_t n_including; - PgQuery__Node **including; - size_t n_exclusions; - PgQuery__Node **exclusions; - size_t n_options; - PgQuery__Node **options; - char *indexname; - char *indexspace; - protobuf_c_boolean reset_default_tblspc; - char *access_method; - PgQuery__Node *where_clause; - PgQuery__RangeVar *pktable; - size_t n_fk_attrs; - PgQuery__Node **fk_attrs; - size_t n_pk_attrs; - PgQuery__Node **pk_attrs; - char *fk_matchtype; - char *fk_upd_action; - char *fk_del_action; - size_t n_fk_del_set_cols; - PgQuery__Node **fk_del_set_cols; - size_t n_old_conpfeqop; - PgQuery__Node **old_conpfeqop; - uint32_t old_pktable_oid; - protobuf_c_boolean skip_validation; - protobuf_c_boolean initially_valid; -}; -#define PG_QUERY__CONSTRAINT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__constraint__descriptor) \ - , PG_QUERY__CONSTR_TYPE__CONSTR_TYPE_UNDEFINED, (char *)protobuf_c_empty_string, 0, 0, 0, 0, NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0, 0,NULL, 0,NULL, 0,NULL, 0,NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0, (char *)protobuf_c_empty_string, NULL, NULL, 0,NULL, 0,NULL, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0, 0, 0 } - - -struct PgQuery__DefElem -{ - ProtobufCMessage base; - char *defnamespace; - char *defname; - PgQuery__Node *arg; - PgQuery__DefElemAction defaction; - int32_t location; -}; -#define PG_QUERY__DEF_ELEM__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__def_elem__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, NULL, PG_QUERY__DEF_ELEM_ACTION__DEF_ELEM_ACTION_UNDEFINED, 0 } - - -struct PgQuery__RangeTblEntry -{ - ProtobufCMessage base; - PgQuery__RTEKind rtekind; - uint32_t relid; - char *relkind; - int32_t rellockmode; - PgQuery__TableSampleClause *tablesample; - PgQuery__Query *subquery; - protobuf_c_boolean security_barrier; - PgQuery__JoinType jointype; - int32_t joinmergedcols; - size_t n_joinaliasvars; - PgQuery__Node **joinaliasvars; - size_t n_joinleftcols; - PgQuery__Node **joinleftcols; - size_t n_joinrightcols; - PgQuery__Node **joinrightcols; - PgQuery__Alias *join_using_alias; - size_t n_functions; - PgQuery__Node **functions; - protobuf_c_boolean funcordinality; - PgQuery__TableFunc *tablefunc; - size_t n_values_lists; - PgQuery__Node **values_lists; - char *ctename; - uint32_t ctelevelsup; - protobuf_c_boolean self_reference; - size_t n_coltypes; - PgQuery__Node **coltypes; - size_t n_coltypmods; - PgQuery__Node **coltypmods; - size_t n_colcollations; - PgQuery__Node **colcollations; - char *enrname; - double enrtuples; - PgQuery__Alias *alias; - PgQuery__Alias *eref; - protobuf_c_boolean lateral; - protobuf_c_boolean inh; - protobuf_c_boolean in_from_cl; - uint32_t required_perms; - uint32_t check_as_user; - size_t n_selected_cols; - uint64_t *selected_cols; - size_t n_inserted_cols; - uint64_t *inserted_cols; - size_t n_updated_cols; - uint64_t *updated_cols; - size_t n_extra_updated_cols; - uint64_t *extra_updated_cols; - size_t n_security_quals; - PgQuery__Node **security_quals; -}; -#define PG_QUERY__RANGE_TBL_ENTRY__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__range_tbl_entry__descriptor) \ - , PG_QUERY__RTEKIND__RTEKIND_UNDEFINED, 0, (char *)protobuf_c_empty_string, 0, NULL, NULL, 0, PG_QUERY__JOIN_TYPE__JOIN_TYPE_UNDEFINED, 0, 0,NULL, 0,NULL, 0,NULL, NULL, 0,NULL, 0, NULL, 0,NULL, (char *)protobuf_c_empty_string, 0, 0, 0,NULL, 0,NULL, 0,NULL, (char *)protobuf_c_empty_string, 0, NULL, NULL, 0, 0, 0, 0, 0, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL } - - -struct PgQuery__RangeTblFunction -{ - ProtobufCMessage base; - PgQuery__Node *funcexpr; - int32_t funccolcount; - size_t n_funccolnames; - PgQuery__Node **funccolnames; - size_t n_funccoltypes; - PgQuery__Node **funccoltypes; - size_t n_funccoltypmods; - PgQuery__Node **funccoltypmods; - size_t n_funccolcollations; - PgQuery__Node **funccolcollations; - size_t n_funcparams; - uint64_t *funcparams; -}; -#define PG_QUERY__RANGE_TBL_FUNCTION__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__range_tbl_function__descriptor) \ - , NULL, 0, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL } - - -struct PgQuery__TableSampleClause -{ - ProtobufCMessage base; - uint32_t tsmhandler; - size_t n_args; - PgQuery__Node **args; - PgQuery__Node *repeatable; -}; -#define PG_QUERY__TABLE_SAMPLE_CLAUSE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__table_sample_clause__descriptor) \ - , 0, 0,NULL, NULL } - - -struct PgQuery__WithCheckOption -{ - ProtobufCMessage base; - PgQuery__WCOKind kind; - char *relname; - char *polname; - PgQuery__Node *qual; - protobuf_c_boolean cascaded; -}; -#define PG_QUERY__WITH_CHECK_OPTION__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__with_check_option__descriptor) \ - , PG_QUERY__WCOKIND__WCOKIND_UNDEFINED, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, NULL, 0 } - - -struct PgQuery__SortGroupClause -{ - ProtobufCMessage base; - uint32_t tle_sort_group_ref; - uint32_t eqop; - uint32_t sortop; - protobuf_c_boolean nulls_first; - protobuf_c_boolean hashable; -}; -#define PG_QUERY__SORT_GROUP_CLAUSE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__sort_group_clause__descriptor) \ - , 0, 0, 0, 0, 0 } - - -struct PgQuery__GroupingSet -{ - ProtobufCMessage base; - PgQuery__GroupingSetKind kind; - size_t n_content; - PgQuery__Node **content; - int32_t location; -}; -#define PG_QUERY__GROUPING_SET__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__grouping_set__descriptor) \ - , PG_QUERY__GROUPING_SET_KIND__GROUPING_SET_KIND_UNDEFINED, 0,NULL, 0 } - - -struct PgQuery__WindowClause -{ - ProtobufCMessage base; - char *name; - char *refname; - size_t n_partition_clause; - PgQuery__Node **partition_clause; - size_t n_order_clause; - PgQuery__Node **order_clause; - int32_t frame_options; - PgQuery__Node *start_offset; - PgQuery__Node *end_offset; - size_t n_run_condition; - PgQuery__Node **run_condition; - uint32_t start_in_range_func; - uint32_t end_in_range_func; - uint32_t in_range_coll; - protobuf_c_boolean in_range_asc; - protobuf_c_boolean in_range_nulls_first; - uint32_t winref; - protobuf_c_boolean copied_order; -}; -#define PG_QUERY__WINDOW_CLAUSE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__window_clause__descriptor) \ - , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0,NULL, 0, NULL, NULL, 0,NULL, 0, 0, 0, 0, 0, 0, 0 } - - -struct PgQuery__ObjectWithArgs -{ - ProtobufCMessage base; - size_t n_objname; - PgQuery__Node **objname; - size_t n_objargs; - PgQuery__Node **objargs; - size_t n_objfuncargs; - PgQuery__Node **objfuncargs; - protobuf_c_boolean args_unspecified; -}; -#define PG_QUERY__OBJECT_WITH_ARGS__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__object_with_args__descriptor) \ - , 0,NULL, 0,NULL, 0,NULL, 0 } - - -struct PgQuery__AccessPriv -{ - ProtobufCMessage base; - char *priv_name; - size_t n_cols; - PgQuery__Node **cols; -}; -#define PG_QUERY__ACCESS_PRIV__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__access_priv__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL } - - -struct PgQuery__CreateOpClassItem -{ - ProtobufCMessage base; - int32_t itemtype; - PgQuery__ObjectWithArgs *name; - int32_t number; - size_t n_order_family; - PgQuery__Node **order_family; - size_t n_class_args; - PgQuery__Node **class_args; - PgQuery__TypeName *storedtype; -}; -#define PG_QUERY__CREATE_OP_CLASS_ITEM__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__create_op_class_item__descriptor) \ - , 0, NULL, 0, 0,NULL, 0,NULL, NULL } - - -struct PgQuery__TableLikeClause -{ - ProtobufCMessage base; - PgQuery__RangeVar *relation; - uint32_t options; - uint32_t relation_oid; -}; -#define PG_QUERY__TABLE_LIKE_CLAUSE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__table_like_clause__descriptor) \ - , NULL, 0, 0 } - - -struct PgQuery__FunctionParameter -{ - ProtobufCMessage base; - char *name; - PgQuery__TypeName *arg_type; - PgQuery__FunctionParameterMode mode; - PgQuery__Node *defexpr; -}; -#define PG_QUERY__FUNCTION_PARAMETER__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__function_parameter__descriptor) \ - , (char *)protobuf_c_empty_string, NULL, PG_QUERY__FUNCTION_PARAMETER_MODE__FUNCTION_PARAMETER_MODE_UNDEFINED, NULL } - - -struct PgQuery__LockingClause -{ - ProtobufCMessage base; - size_t n_locked_rels; - PgQuery__Node **locked_rels; - PgQuery__LockClauseStrength strength; - PgQuery__LockWaitPolicy wait_policy; -}; -#define PG_QUERY__LOCKING_CLAUSE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__locking_clause__descriptor) \ - , 0,NULL, PG_QUERY__LOCK_CLAUSE_STRENGTH__LOCK_CLAUSE_STRENGTH_UNDEFINED, PG_QUERY__LOCK_WAIT_POLICY__LOCK_WAIT_POLICY_UNDEFINED } - - -struct PgQuery__RowMarkClause -{ - ProtobufCMessage base; - uint32_t rti; - PgQuery__LockClauseStrength strength; - PgQuery__LockWaitPolicy wait_policy; - protobuf_c_boolean pushed_down; -}; -#define PG_QUERY__ROW_MARK_CLAUSE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__row_mark_clause__descriptor) \ - , 0, PG_QUERY__LOCK_CLAUSE_STRENGTH__LOCK_CLAUSE_STRENGTH_UNDEFINED, PG_QUERY__LOCK_WAIT_POLICY__LOCK_WAIT_POLICY_UNDEFINED, 0 } - - -struct PgQuery__XmlSerialize -{ - ProtobufCMessage base; - PgQuery__XmlOptionType xmloption; - PgQuery__Node *expr; - PgQuery__TypeName *type_name; - int32_t location; -}; -#define PG_QUERY__XML_SERIALIZE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__xml_serialize__descriptor) \ - , PG_QUERY__XML_OPTION_TYPE__XML_OPTION_TYPE_UNDEFINED, NULL, NULL, 0 } - - -struct PgQuery__WithClause -{ - ProtobufCMessage base; - size_t n_ctes; - PgQuery__Node **ctes; - protobuf_c_boolean recursive; - int32_t location; -}; -#define PG_QUERY__WITH_CLAUSE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__with_clause__descriptor) \ - , 0,NULL, 0, 0 } - - -struct PgQuery__InferClause -{ - ProtobufCMessage base; - size_t n_index_elems; - PgQuery__Node **index_elems; - PgQuery__Node *where_clause; - char *conname; - int32_t location; -}; -#define PG_QUERY__INFER_CLAUSE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__infer_clause__descriptor) \ - , 0,NULL, NULL, (char *)protobuf_c_empty_string, 0 } - - -struct PgQuery__OnConflictClause -{ - ProtobufCMessage base; - PgQuery__OnConflictAction action; - PgQuery__InferClause *infer; - size_t n_target_list; - PgQuery__Node **target_list; - PgQuery__Node *where_clause; - int32_t location; -}; -#define PG_QUERY__ON_CONFLICT_CLAUSE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__on_conflict_clause__descriptor) \ - , PG_QUERY__ON_CONFLICT_ACTION__ON_CONFLICT_ACTION_UNDEFINED, NULL, 0,NULL, NULL, 0 } - - -struct PgQuery__CTESearchClause -{ - ProtobufCMessage base; - size_t n_search_col_list; - PgQuery__Node **search_col_list; - protobuf_c_boolean search_breadth_first; - char *search_seq_column; - int32_t location; -}; -#define PG_QUERY__CTESEARCH_CLAUSE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__ctesearch_clause__descriptor) \ - , 0,NULL, 0, (char *)protobuf_c_empty_string, 0 } - - -struct PgQuery__CTECycleClause -{ - ProtobufCMessage base; - size_t n_cycle_col_list; - PgQuery__Node **cycle_col_list; - char *cycle_mark_column; - PgQuery__Node *cycle_mark_value; - PgQuery__Node *cycle_mark_default; - char *cycle_path_column; - int32_t location; - uint32_t cycle_mark_type; - int32_t cycle_mark_typmod; - uint32_t cycle_mark_collation; - uint32_t cycle_mark_neop; -}; -#define PG_QUERY__CTECYCLE_CLAUSE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__ctecycle_clause__descriptor) \ - , 0,NULL, (char *)protobuf_c_empty_string, NULL, NULL, (char *)protobuf_c_empty_string, 0, 0, 0, 0, 0 } - - -struct PgQuery__CommonTableExpr -{ - ProtobufCMessage base; - char *ctename; - size_t n_aliascolnames; - PgQuery__Node **aliascolnames; - PgQuery__CTEMaterialize ctematerialized; - PgQuery__Node *ctequery; - PgQuery__CTESearchClause *search_clause; - PgQuery__CTECycleClause *cycle_clause; - int32_t location; - protobuf_c_boolean cterecursive; - int32_t cterefcount; - size_t n_ctecolnames; - PgQuery__Node **ctecolnames; - size_t n_ctecoltypes; - PgQuery__Node **ctecoltypes; - size_t n_ctecoltypmods; - PgQuery__Node **ctecoltypmods; - size_t n_ctecolcollations; - PgQuery__Node **ctecolcollations; -}; -#define PG_QUERY__COMMON_TABLE_EXPR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__common_table_expr__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, PG_QUERY__CTEMATERIALIZE__CTEMATERIALIZE_UNDEFINED, NULL, NULL, NULL, 0, 0, 0, 0,NULL, 0,NULL, 0,NULL, 0,NULL } - - -struct PgQuery__MergeWhenClause -{ - ProtobufCMessage base; - protobuf_c_boolean matched; - PgQuery__CmdType command_type; - PgQuery__OverridingKind override; - PgQuery__Node *condition; - size_t n_target_list; - PgQuery__Node **target_list; - size_t n_values; - PgQuery__Node **values; -}; -#define PG_QUERY__MERGE_WHEN_CLAUSE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__merge_when_clause__descriptor) \ - , 0, PG_QUERY__CMD_TYPE__CMD_TYPE_UNDEFINED, PG_QUERY__OVERRIDING_KIND__OVERRIDING_KIND_UNDEFINED, NULL, 0,NULL, 0,NULL } - - -struct PgQuery__RoleSpec -{ - ProtobufCMessage base; - PgQuery__RoleSpecType roletype; - char *rolename; - int32_t location; -}; -#define PG_QUERY__ROLE_SPEC__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__role_spec__descriptor) \ - , PG_QUERY__ROLE_SPEC_TYPE__ROLE_SPEC_TYPE_UNDEFINED, (char *)protobuf_c_empty_string, 0 } - - -struct PgQuery__TriggerTransition -{ - ProtobufCMessage base; - char *name; - protobuf_c_boolean is_new; - protobuf_c_boolean is_table; -}; -#define PG_QUERY__TRIGGER_TRANSITION__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__trigger_transition__descriptor) \ - , (char *)protobuf_c_empty_string, 0, 0 } - - -struct PgQuery__PartitionElem -{ - ProtobufCMessage base; - char *name; - PgQuery__Node *expr; - size_t n_collation; - PgQuery__Node **collation; - size_t n_opclass; - PgQuery__Node **opclass; - int32_t location; -}; -#define PG_QUERY__PARTITION_ELEM__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__partition_elem__descriptor) \ - , (char *)protobuf_c_empty_string, NULL, 0,NULL, 0,NULL, 0 } - - -struct PgQuery__PartitionSpec -{ - ProtobufCMessage base; - char *strategy; - size_t n_part_params; - PgQuery__Node **part_params; - int32_t location; -}; -#define PG_QUERY__PARTITION_SPEC__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__partition_spec__descriptor) \ - , (char *)protobuf_c_empty_string, 0,NULL, 0 } - - -struct PgQuery__PartitionBoundSpec -{ - ProtobufCMessage base; - char *strategy; - protobuf_c_boolean is_default; - int32_t modulus; - int32_t remainder; - size_t n_listdatums; - PgQuery__Node **listdatums; - size_t n_lowerdatums; - PgQuery__Node **lowerdatums; - size_t n_upperdatums; - PgQuery__Node **upperdatums; - int32_t location; -}; -#define PG_QUERY__PARTITION_BOUND_SPEC__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__partition_bound_spec__descriptor) \ - , (char *)protobuf_c_empty_string, 0, 0, 0, 0,NULL, 0,NULL, 0,NULL, 0 } - - -struct PgQuery__PartitionRangeDatum -{ - ProtobufCMessage base; - PgQuery__PartitionRangeDatumKind kind; - PgQuery__Node *value; - int32_t location; -}; -#define PG_QUERY__PARTITION_RANGE_DATUM__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__partition_range_datum__descriptor) \ - , PG_QUERY__PARTITION_RANGE_DATUM_KIND__PARTITION_RANGE_DATUM_KIND_UNDEFINED, NULL, 0 } - - -struct PgQuery__PartitionCmd -{ - ProtobufCMessage base; - PgQuery__RangeVar *name; - PgQuery__PartitionBoundSpec *bound; - protobuf_c_boolean concurrent; -}; -#define PG_QUERY__PARTITION_CMD__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__partition_cmd__descriptor) \ - , NULL, NULL, 0 } - - -struct PgQuery__VacuumRelation -{ - ProtobufCMessage base; - PgQuery__RangeVar *relation; - uint32_t oid; - size_t n_va_cols; - PgQuery__Node **va_cols; -}; -#define PG_QUERY__VACUUM_RELATION__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__vacuum_relation__descriptor) \ - , NULL, 0, 0,NULL } - - -struct PgQuery__PublicationObjSpec -{ - ProtobufCMessage base; - PgQuery__PublicationObjSpecType pubobjtype; - char *name; - PgQuery__PublicationTable *pubtable; - int32_t location; -}; -#define PG_QUERY__PUBLICATION_OBJ_SPEC__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__publication_obj_spec__descriptor) \ - , PG_QUERY__PUBLICATION_OBJ_SPEC_TYPE__PUBLICATION_OBJ_SPEC_TYPE_UNDEFINED, (char *)protobuf_c_empty_string, NULL, 0 } - - -struct PgQuery__PublicationTable -{ - ProtobufCMessage base; - PgQuery__RangeVar *relation; - PgQuery__Node *where_clause; - size_t n_columns; - PgQuery__Node **columns; -}; -#define PG_QUERY__PUBLICATION_TABLE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__publication_table__descriptor) \ - , NULL, NULL, 0,NULL } - - -struct PgQuery__InlineCodeBlock -{ - ProtobufCMessage base; - char *source_text; - uint32_t lang_oid; - protobuf_c_boolean lang_is_trusted; - protobuf_c_boolean atomic; -}; -#define PG_QUERY__INLINE_CODE_BLOCK__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__inline_code_block__descriptor) \ - , (char *)protobuf_c_empty_string, 0, 0, 0 } - - -struct PgQuery__CallContext -{ - ProtobufCMessage base; - protobuf_c_boolean atomic; -}; -#define PG_QUERY__CALL_CONTEXT__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__call_context__descriptor) \ - , 0 } - - -struct PgQuery__ScanToken -{ - ProtobufCMessage base; - int32_t start; - int32_t end; - PgQuery__Token token; - PgQuery__KeywordKind keyword_kind; -}; -#define PG_QUERY__SCAN_TOKEN__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&pg_query__scan_token__descriptor) \ - , 0, 0, PG_QUERY__TOKEN__NUL, PG_QUERY__KEYWORD_KIND__NO_KEYWORD } - - -/* PgQuery__ParseResult methods */ -void pg_query__parse_result__init - (PgQuery__ParseResult *message); -size_t pg_query__parse_result__get_packed_size - (const PgQuery__ParseResult *message); -size_t pg_query__parse_result__pack - (const PgQuery__ParseResult *message, - uint8_t *out); -size_t pg_query__parse_result__pack_to_buffer - (const PgQuery__ParseResult *message, - ProtobufCBuffer *buffer); -PgQuery__ParseResult * - pg_query__parse_result__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__parse_result__free_unpacked - (PgQuery__ParseResult *message, - ProtobufCAllocator *allocator); -/* PgQuery__ScanResult methods */ -void pg_query__scan_result__init - (PgQuery__ScanResult *message); -size_t pg_query__scan_result__get_packed_size - (const PgQuery__ScanResult *message); -size_t pg_query__scan_result__pack - (const PgQuery__ScanResult *message, - uint8_t *out); -size_t pg_query__scan_result__pack_to_buffer - (const PgQuery__ScanResult *message, - ProtobufCBuffer *buffer); -PgQuery__ScanResult * - pg_query__scan_result__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__scan_result__free_unpacked - (PgQuery__ScanResult *message, - ProtobufCAllocator *allocator); -/* PgQuery__Node methods */ -void pg_query__node__init - (PgQuery__Node *message); -size_t pg_query__node__get_packed_size - (const PgQuery__Node *message); -size_t pg_query__node__pack - (const PgQuery__Node *message, - uint8_t *out); -size_t pg_query__node__pack_to_buffer - (const PgQuery__Node *message, - ProtobufCBuffer *buffer); -PgQuery__Node * - pg_query__node__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__node__free_unpacked - (PgQuery__Node *message, - ProtobufCAllocator *allocator); -/* PgQuery__Integer methods */ -void pg_query__integer__init - (PgQuery__Integer *message); -size_t pg_query__integer__get_packed_size - (const PgQuery__Integer *message); -size_t pg_query__integer__pack - (const PgQuery__Integer *message, - uint8_t *out); -size_t pg_query__integer__pack_to_buffer - (const PgQuery__Integer *message, - ProtobufCBuffer *buffer); -PgQuery__Integer * - pg_query__integer__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__integer__free_unpacked - (PgQuery__Integer *message, - ProtobufCAllocator *allocator); -/* PgQuery__Float methods */ -void pg_query__float__init - (PgQuery__Float *message); -size_t pg_query__float__get_packed_size - (const PgQuery__Float *message); -size_t pg_query__float__pack - (const PgQuery__Float *message, - uint8_t *out); -size_t pg_query__float__pack_to_buffer - (const PgQuery__Float *message, - ProtobufCBuffer *buffer); -PgQuery__Float * - pg_query__float__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__float__free_unpacked - (PgQuery__Float *message, - ProtobufCAllocator *allocator); -/* PgQuery__Boolean methods */ -void pg_query__boolean__init - (PgQuery__Boolean *message); -size_t pg_query__boolean__get_packed_size - (const PgQuery__Boolean *message); -size_t pg_query__boolean__pack - (const PgQuery__Boolean *message, - uint8_t *out); -size_t pg_query__boolean__pack_to_buffer - (const PgQuery__Boolean *message, - ProtobufCBuffer *buffer); -PgQuery__Boolean * - pg_query__boolean__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__boolean__free_unpacked - (PgQuery__Boolean *message, - ProtobufCAllocator *allocator); -/* PgQuery__String methods */ -void pg_query__string__init - (PgQuery__String *message); -size_t pg_query__string__get_packed_size - (const PgQuery__String *message); -size_t pg_query__string__pack - (const PgQuery__String *message, - uint8_t *out); -size_t pg_query__string__pack_to_buffer - (const PgQuery__String *message, - ProtobufCBuffer *buffer); -PgQuery__String * - pg_query__string__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__string__free_unpacked - (PgQuery__String *message, - ProtobufCAllocator *allocator); -/* PgQuery__BitString methods */ -void pg_query__bit_string__init - (PgQuery__BitString *message); -size_t pg_query__bit_string__get_packed_size - (const PgQuery__BitString *message); -size_t pg_query__bit_string__pack - (const PgQuery__BitString *message, - uint8_t *out); -size_t pg_query__bit_string__pack_to_buffer - (const PgQuery__BitString *message, - ProtobufCBuffer *buffer); -PgQuery__BitString * - pg_query__bit_string__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__bit_string__free_unpacked - (PgQuery__BitString *message, - ProtobufCAllocator *allocator); -/* PgQuery__List methods */ -void pg_query__list__init - (PgQuery__List *message); -size_t pg_query__list__get_packed_size - (const PgQuery__List *message); -size_t pg_query__list__pack - (const PgQuery__List *message, - uint8_t *out); -size_t pg_query__list__pack_to_buffer - (const PgQuery__List *message, - ProtobufCBuffer *buffer); -PgQuery__List * - pg_query__list__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__list__free_unpacked - (PgQuery__List *message, - ProtobufCAllocator *allocator); -/* PgQuery__OidList methods */ -void pg_query__oid_list__init - (PgQuery__OidList *message); -size_t pg_query__oid_list__get_packed_size - (const PgQuery__OidList *message); -size_t pg_query__oid_list__pack - (const PgQuery__OidList *message, - uint8_t *out); -size_t pg_query__oid_list__pack_to_buffer - (const PgQuery__OidList *message, - ProtobufCBuffer *buffer); -PgQuery__OidList * - pg_query__oid_list__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__oid_list__free_unpacked - (PgQuery__OidList *message, - ProtobufCAllocator *allocator); -/* PgQuery__IntList methods */ -void pg_query__int_list__init - (PgQuery__IntList *message); -size_t pg_query__int_list__get_packed_size - (const PgQuery__IntList *message); -size_t pg_query__int_list__pack - (const PgQuery__IntList *message, - uint8_t *out); -size_t pg_query__int_list__pack_to_buffer - (const PgQuery__IntList *message, - ProtobufCBuffer *buffer); -PgQuery__IntList * - pg_query__int_list__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__int_list__free_unpacked - (PgQuery__IntList *message, - ProtobufCAllocator *allocator); -/* PgQuery__AConst methods */ -void pg_query__a__const__init - (PgQuery__AConst *message); -size_t pg_query__a__const__get_packed_size - (const PgQuery__AConst *message); -size_t pg_query__a__const__pack - (const PgQuery__AConst *message, - uint8_t *out); -size_t pg_query__a__const__pack_to_buffer - (const PgQuery__AConst *message, - ProtobufCBuffer *buffer); -PgQuery__AConst * - pg_query__a__const__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__a__const__free_unpacked - (PgQuery__AConst *message, - ProtobufCAllocator *allocator); -/* PgQuery__Alias methods */ -void pg_query__alias__init - (PgQuery__Alias *message); -size_t pg_query__alias__get_packed_size - (const PgQuery__Alias *message); -size_t pg_query__alias__pack - (const PgQuery__Alias *message, - uint8_t *out); -size_t pg_query__alias__pack_to_buffer - (const PgQuery__Alias *message, - ProtobufCBuffer *buffer); -PgQuery__Alias * - pg_query__alias__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alias__free_unpacked - (PgQuery__Alias *message, - ProtobufCAllocator *allocator); -/* PgQuery__RangeVar methods */ -void pg_query__range_var__init - (PgQuery__RangeVar *message); -size_t pg_query__range_var__get_packed_size - (const PgQuery__RangeVar *message); -size_t pg_query__range_var__pack - (const PgQuery__RangeVar *message, - uint8_t *out); -size_t pg_query__range_var__pack_to_buffer - (const PgQuery__RangeVar *message, - ProtobufCBuffer *buffer); -PgQuery__RangeVar * - pg_query__range_var__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__range_var__free_unpacked - (PgQuery__RangeVar *message, - ProtobufCAllocator *allocator); -/* PgQuery__TableFunc methods */ -void pg_query__table_func__init - (PgQuery__TableFunc *message); -size_t pg_query__table_func__get_packed_size - (const PgQuery__TableFunc *message); -size_t pg_query__table_func__pack - (const PgQuery__TableFunc *message, - uint8_t *out); -size_t pg_query__table_func__pack_to_buffer - (const PgQuery__TableFunc *message, - ProtobufCBuffer *buffer); -PgQuery__TableFunc * - pg_query__table_func__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__table_func__free_unpacked - (PgQuery__TableFunc *message, - ProtobufCAllocator *allocator); -/* PgQuery__Var methods */ -void pg_query__var__init - (PgQuery__Var *message); -size_t pg_query__var__get_packed_size - (const PgQuery__Var *message); -size_t pg_query__var__pack - (const PgQuery__Var *message, - uint8_t *out); -size_t pg_query__var__pack_to_buffer - (const PgQuery__Var *message, - ProtobufCBuffer *buffer); -PgQuery__Var * - pg_query__var__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__var__free_unpacked - (PgQuery__Var *message, - ProtobufCAllocator *allocator); -/* PgQuery__Param methods */ -void pg_query__param__init - (PgQuery__Param *message); -size_t pg_query__param__get_packed_size - (const PgQuery__Param *message); -size_t pg_query__param__pack - (const PgQuery__Param *message, - uint8_t *out); -size_t pg_query__param__pack_to_buffer - (const PgQuery__Param *message, - ProtobufCBuffer *buffer); -PgQuery__Param * - pg_query__param__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__param__free_unpacked - (PgQuery__Param *message, - ProtobufCAllocator *allocator); -/* PgQuery__Aggref methods */ -void pg_query__aggref__init - (PgQuery__Aggref *message); -size_t pg_query__aggref__get_packed_size - (const PgQuery__Aggref *message); -size_t pg_query__aggref__pack - (const PgQuery__Aggref *message, - uint8_t *out); -size_t pg_query__aggref__pack_to_buffer - (const PgQuery__Aggref *message, - ProtobufCBuffer *buffer); -PgQuery__Aggref * - pg_query__aggref__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__aggref__free_unpacked - (PgQuery__Aggref *message, - ProtobufCAllocator *allocator); -/* PgQuery__GroupingFunc methods */ -void pg_query__grouping_func__init - (PgQuery__GroupingFunc *message); -size_t pg_query__grouping_func__get_packed_size - (const PgQuery__GroupingFunc *message); -size_t pg_query__grouping_func__pack - (const PgQuery__GroupingFunc *message, - uint8_t *out); -size_t pg_query__grouping_func__pack_to_buffer - (const PgQuery__GroupingFunc *message, - ProtobufCBuffer *buffer); -PgQuery__GroupingFunc * - pg_query__grouping_func__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__grouping_func__free_unpacked - (PgQuery__GroupingFunc *message, - ProtobufCAllocator *allocator); -/* PgQuery__WindowFunc methods */ -void pg_query__window_func__init - (PgQuery__WindowFunc *message); -size_t pg_query__window_func__get_packed_size - (const PgQuery__WindowFunc *message); -size_t pg_query__window_func__pack - (const PgQuery__WindowFunc *message, - uint8_t *out); -size_t pg_query__window_func__pack_to_buffer - (const PgQuery__WindowFunc *message, - ProtobufCBuffer *buffer); -PgQuery__WindowFunc * - pg_query__window_func__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__window_func__free_unpacked - (PgQuery__WindowFunc *message, - ProtobufCAllocator *allocator); -/* PgQuery__SubscriptingRef methods */ -void pg_query__subscripting_ref__init - (PgQuery__SubscriptingRef *message); -size_t pg_query__subscripting_ref__get_packed_size - (const PgQuery__SubscriptingRef *message); -size_t pg_query__subscripting_ref__pack - (const PgQuery__SubscriptingRef *message, - uint8_t *out); -size_t pg_query__subscripting_ref__pack_to_buffer - (const PgQuery__SubscriptingRef *message, - ProtobufCBuffer *buffer); -PgQuery__SubscriptingRef * - pg_query__subscripting_ref__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__subscripting_ref__free_unpacked - (PgQuery__SubscriptingRef *message, - ProtobufCAllocator *allocator); -/* PgQuery__FuncExpr methods */ -void pg_query__func_expr__init - (PgQuery__FuncExpr *message); -size_t pg_query__func_expr__get_packed_size - (const PgQuery__FuncExpr *message); -size_t pg_query__func_expr__pack - (const PgQuery__FuncExpr *message, - uint8_t *out); -size_t pg_query__func_expr__pack_to_buffer - (const PgQuery__FuncExpr *message, - ProtobufCBuffer *buffer); -PgQuery__FuncExpr * - pg_query__func_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__func_expr__free_unpacked - (PgQuery__FuncExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__NamedArgExpr methods */ -void pg_query__named_arg_expr__init - (PgQuery__NamedArgExpr *message); -size_t pg_query__named_arg_expr__get_packed_size - (const PgQuery__NamedArgExpr *message); -size_t pg_query__named_arg_expr__pack - (const PgQuery__NamedArgExpr *message, - uint8_t *out); -size_t pg_query__named_arg_expr__pack_to_buffer - (const PgQuery__NamedArgExpr *message, - ProtobufCBuffer *buffer); -PgQuery__NamedArgExpr * - pg_query__named_arg_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__named_arg_expr__free_unpacked - (PgQuery__NamedArgExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__OpExpr methods */ -void pg_query__op_expr__init - (PgQuery__OpExpr *message); -size_t pg_query__op_expr__get_packed_size - (const PgQuery__OpExpr *message); -size_t pg_query__op_expr__pack - (const PgQuery__OpExpr *message, - uint8_t *out); -size_t pg_query__op_expr__pack_to_buffer - (const PgQuery__OpExpr *message, - ProtobufCBuffer *buffer); -PgQuery__OpExpr * - pg_query__op_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__op_expr__free_unpacked - (PgQuery__OpExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__DistinctExpr methods */ -void pg_query__distinct_expr__init - (PgQuery__DistinctExpr *message); -size_t pg_query__distinct_expr__get_packed_size - (const PgQuery__DistinctExpr *message); -size_t pg_query__distinct_expr__pack - (const PgQuery__DistinctExpr *message, - uint8_t *out); -size_t pg_query__distinct_expr__pack_to_buffer - (const PgQuery__DistinctExpr *message, - ProtobufCBuffer *buffer); -PgQuery__DistinctExpr * - pg_query__distinct_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__distinct_expr__free_unpacked - (PgQuery__DistinctExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__NullIfExpr methods */ -void pg_query__null_if_expr__init - (PgQuery__NullIfExpr *message); -size_t pg_query__null_if_expr__get_packed_size - (const PgQuery__NullIfExpr *message); -size_t pg_query__null_if_expr__pack - (const PgQuery__NullIfExpr *message, - uint8_t *out); -size_t pg_query__null_if_expr__pack_to_buffer - (const PgQuery__NullIfExpr *message, - ProtobufCBuffer *buffer); -PgQuery__NullIfExpr * - pg_query__null_if_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__null_if_expr__free_unpacked - (PgQuery__NullIfExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__ScalarArrayOpExpr methods */ -void pg_query__scalar_array_op_expr__init - (PgQuery__ScalarArrayOpExpr *message); -size_t pg_query__scalar_array_op_expr__get_packed_size - (const PgQuery__ScalarArrayOpExpr *message); -size_t pg_query__scalar_array_op_expr__pack - (const PgQuery__ScalarArrayOpExpr *message, - uint8_t *out); -size_t pg_query__scalar_array_op_expr__pack_to_buffer - (const PgQuery__ScalarArrayOpExpr *message, - ProtobufCBuffer *buffer); -PgQuery__ScalarArrayOpExpr * - pg_query__scalar_array_op_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__scalar_array_op_expr__free_unpacked - (PgQuery__ScalarArrayOpExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__BoolExpr methods */ -void pg_query__bool_expr__init - (PgQuery__BoolExpr *message); -size_t pg_query__bool_expr__get_packed_size - (const PgQuery__BoolExpr *message); -size_t pg_query__bool_expr__pack - (const PgQuery__BoolExpr *message, - uint8_t *out); -size_t pg_query__bool_expr__pack_to_buffer - (const PgQuery__BoolExpr *message, - ProtobufCBuffer *buffer); -PgQuery__BoolExpr * - pg_query__bool_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__bool_expr__free_unpacked - (PgQuery__BoolExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__SubLink methods */ -void pg_query__sub_link__init - (PgQuery__SubLink *message); -size_t pg_query__sub_link__get_packed_size - (const PgQuery__SubLink *message); -size_t pg_query__sub_link__pack - (const PgQuery__SubLink *message, - uint8_t *out); -size_t pg_query__sub_link__pack_to_buffer - (const PgQuery__SubLink *message, - ProtobufCBuffer *buffer); -PgQuery__SubLink * - pg_query__sub_link__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__sub_link__free_unpacked - (PgQuery__SubLink *message, - ProtobufCAllocator *allocator); -/* PgQuery__SubPlan methods */ -void pg_query__sub_plan__init - (PgQuery__SubPlan *message); -size_t pg_query__sub_plan__get_packed_size - (const PgQuery__SubPlan *message); -size_t pg_query__sub_plan__pack - (const PgQuery__SubPlan *message, - uint8_t *out); -size_t pg_query__sub_plan__pack_to_buffer - (const PgQuery__SubPlan *message, - ProtobufCBuffer *buffer); -PgQuery__SubPlan * - pg_query__sub_plan__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__sub_plan__free_unpacked - (PgQuery__SubPlan *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlternativeSubPlan methods */ -void pg_query__alternative_sub_plan__init - (PgQuery__AlternativeSubPlan *message); -size_t pg_query__alternative_sub_plan__get_packed_size - (const PgQuery__AlternativeSubPlan *message); -size_t pg_query__alternative_sub_plan__pack - (const PgQuery__AlternativeSubPlan *message, - uint8_t *out); -size_t pg_query__alternative_sub_plan__pack_to_buffer - (const PgQuery__AlternativeSubPlan *message, - ProtobufCBuffer *buffer); -PgQuery__AlternativeSubPlan * - pg_query__alternative_sub_plan__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alternative_sub_plan__free_unpacked - (PgQuery__AlternativeSubPlan *message, - ProtobufCAllocator *allocator); -/* PgQuery__FieldSelect methods */ -void pg_query__field_select__init - (PgQuery__FieldSelect *message); -size_t pg_query__field_select__get_packed_size - (const PgQuery__FieldSelect *message); -size_t pg_query__field_select__pack - (const PgQuery__FieldSelect *message, - uint8_t *out); -size_t pg_query__field_select__pack_to_buffer - (const PgQuery__FieldSelect *message, - ProtobufCBuffer *buffer); -PgQuery__FieldSelect * - pg_query__field_select__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__field_select__free_unpacked - (PgQuery__FieldSelect *message, - ProtobufCAllocator *allocator); -/* PgQuery__FieldStore methods */ -void pg_query__field_store__init - (PgQuery__FieldStore *message); -size_t pg_query__field_store__get_packed_size - (const PgQuery__FieldStore *message); -size_t pg_query__field_store__pack - (const PgQuery__FieldStore *message, - uint8_t *out); -size_t pg_query__field_store__pack_to_buffer - (const PgQuery__FieldStore *message, - ProtobufCBuffer *buffer); -PgQuery__FieldStore * - pg_query__field_store__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__field_store__free_unpacked - (PgQuery__FieldStore *message, - ProtobufCAllocator *allocator); -/* PgQuery__RelabelType methods */ -void pg_query__relabel_type__init - (PgQuery__RelabelType *message); -size_t pg_query__relabel_type__get_packed_size - (const PgQuery__RelabelType *message); -size_t pg_query__relabel_type__pack - (const PgQuery__RelabelType *message, - uint8_t *out); -size_t pg_query__relabel_type__pack_to_buffer - (const PgQuery__RelabelType *message, - ProtobufCBuffer *buffer); -PgQuery__RelabelType * - pg_query__relabel_type__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__relabel_type__free_unpacked - (PgQuery__RelabelType *message, - ProtobufCAllocator *allocator); -/* PgQuery__CoerceViaIO methods */ -void pg_query__coerce_via_io__init - (PgQuery__CoerceViaIO *message); -size_t pg_query__coerce_via_io__get_packed_size - (const PgQuery__CoerceViaIO *message); -size_t pg_query__coerce_via_io__pack - (const PgQuery__CoerceViaIO *message, - uint8_t *out); -size_t pg_query__coerce_via_io__pack_to_buffer - (const PgQuery__CoerceViaIO *message, - ProtobufCBuffer *buffer); -PgQuery__CoerceViaIO * - pg_query__coerce_via_io__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__coerce_via_io__free_unpacked - (PgQuery__CoerceViaIO *message, - ProtobufCAllocator *allocator); -/* PgQuery__ArrayCoerceExpr methods */ -void pg_query__array_coerce_expr__init - (PgQuery__ArrayCoerceExpr *message); -size_t pg_query__array_coerce_expr__get_packed_size - (const PgQuery__ArrayCoerceExpr *message); -size_t pg_query__array_coerce_expr__pack - (const PgQuery__ArrayCoerceExpr *message, - uint8_t *out); -size_t pg_query__array_coerce_expr__pack_to_buffer - (const PgQuery__ArrayCoerceExpr *message, - ProtobufCBuffer *buffer); -PgQuery__ArrayCoerceExpr * - pg_query__array_coerce_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__array_coerce_expr__free_unpacked - (PgQuery__ArrayCoerceExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__ConvertRowtypeExpr methods */ -void pg_query__convert_rowtype_expr__init - (PgQuery__ConvertRowtypeExpr *message); -size_t pg_query__convert_rowtype_expr__get_packed_size - (const PgQuery__ConvertRowtypeExpr *message); -size_t pg_query__convert_rowtype_expr__pack - (const PgQuery__ConvertRowtypeExpr *message, - uint8_t *out); -size_t pg_query__convert_rowtype_expr__pack_to_buffer - (const PgQuery__ConvertRowtypeExpr *message, - ProtobufCBuffer *buffer); -PgQuery__ConvertRowtypeExpr * - pg_query__convert_rowtype_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__convert_rowtype_expr__free_unpacked - (PgQuery__ConvertRowtypeExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__CollateExpr methods */ -void pg_query__collate_expr__init - (PgQuery__CollateExpr *message); -size_t pg_query__collate_expr__get_packed_size - (const PgQuery__CollateExpr *message); -size_t pg_query__collate_expr__pack - (const PgQuery__CollateExpr *message, - uint8_t *out); -size_t pg_query__collate_expr__pack_to_buffer - (const PgQuery__CollateExpr *message, - ProtobufCBuffer *buffer); -PgQuery__CollateExpr * - pg_query__collate_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__collate_expr__free_unpacked - (PgQuery__CollateExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__CaseExpr methods */ -void pg_query__case_expr__init - (PgQuery__CaseExpr *message); -size_t pg_query__case_expr__get_packed_size - (const PgQuery__CaseExpr *message); -size_t pg_query__case_expr__pack - (const PgQuery__CaseExpr *message, - uint8_t *out); -size_t pg_query__case_expr__pack_to_buffer - (const PgQuery__CaseExpr *message, - ProtobufCBuffer *buffer); -PgQuery__CaseExpr * - pg_query__case_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__case_expr__free_unpacked - (PgQuery__CaseExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__CaseWhen methods */ -void pg_query__case_when__init - (PgQuery__CaseWhen *message); -size_t pg_query__case_when__get_packed_size - (const PgQuery__CaseWhen *message); -size_t pg_query__case_when__pack - (const PgQuery__CaseWhen *message, - uint8_t *out); -size_t pg_query__case_when__pack_to_buffer - (const PgQuery__CaseWhen *message, - ProtobufCBuffer *buffer); -PgQuery__CaseWhen * - pg_query__case_when__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__case_when__free_unpacked - (PgQuery__CaseWhen *message, - ProtobufCAllocator *allocator); -/* PgQuery__CaseTestExpr methods */ -void pg_query__case_test_expr__init - (PgQuery__CaseTestExpr *message); -size_t pg_query__case_test_expr__get_packed_size - (const PgQuery__CaseTestExpr *message); -size_t pg_query__case_test_expr__pack - (const PgQuery__CaseTestExpr *message, - uint8_t *out); -size_t pg_query__case_test_expr__pack_to_buffer - (const PgQuery__CaseTestExpr *message, - ProtobufCBuffer *buffer); -PgQuery__CaseTestExpr * - pg_query__case_test_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__case_test_expr__free_unpacked - (PgQuery__CaseTestExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__ArrayExpr methods */ -void pg_query__array_expr__init - (PgQuery__ArrayExpr *message); -size_t pg_query__array_expr__get_packed_size - (const PgQuery__ArrayExpr *message); -size_t pg_query__array_expr__pack - (const PgQuery__ArrayExpr *message, - uint8_t *out); -size_t pg_query__array_expr__pack_to_buffer - (const PgQuery__ArrayExpr *message, - ProtobufCBuffer *buffer); -PgQuery__ArrayExpr * - pg_query__array_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__array_expr__free_unpacked - (PgQuery__ArrayExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__RowExpr methods */ -void pg_query__row_expr__init - (PgQuery__RowExpr *message); -size_t pg_query__row_expr__get_packed_size - (const PgQuery__RowExpr *message); -size_t pg_query__row_expr__pack - (const PgQuery__RowExpr *message, - uint8_t *out); -size_t pg_query__row_expr__pack_to_buffer - (const PgQuery__RowExpr *message, - ProtobufCBuffer *buffer); -PgQuery__RowExpr * - pg_query__row_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__row_expr__free_unpacked - (PgQuery__RowExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__RowCompareExpr methods */ -void pg_query__row_compare_expr__init - (PgQuery__RowCompareExpr *message); -size_t pg_query__row_compare_expr__get_packed_size - (const PgQuery__RowCompareExpr *message); -size_t pg_query__row_compare_expr__pack - (const PgQuery__RowCompareExpr *message, - uint8_t *out); -size_t pg_query__row_compare_expr__pack_to_buffer - (const PgQuery__RowCompareExpr *message, - ProtobufCBuffer *buffer); -PgQuery__RowCompareExpr * - pg_query__row_compare_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__row_compare_expr__free_unpacked - (PgQuery__RowCompareExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__CoalesceExpr methods */ -void pg_query__coalesce_expr__init - (PgQuery__CoalesceExpr *message); -size_t pg_query__coalesce_expr__get_packed_size - (const PgQuery__CoalesceExpr *message); -size_t pg_query__coalesce_expr__pack - (const PgQuery__CoalesceExpr *message, - uint8_t *out); -size_t pg_query__coalesce_expr__pack_to_buffer - (const PgQuery__CoalesceExpr *message, - ProtobufCBuffer *buffer); -PgQuery__CoalesceExpr * - pg_query__coalesce_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__coalesce_expr__free_unpacked - (PgQuery__CoalesceExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__MinMaxExpr methods */ -void pg_query__min_max_expr__init - (PgQuery__MinMaxExpr *message); -size_t pg_query__min_max_expr__get_packed_size - (const PgQuery__MinMaxExpr *message); -size_t pg_query__min_max_expr__pack - (const PgQuery__MinMaxExpr *message, - uint8_t *out); -size_t pg_query__min_max_expr__pack_to_buffer - (const PgQuery__MinMaxExpr *message, - ProtobufCBuffer *buffer); -PgQuery__MinMaxExpr * - pg_query__min_max_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__min_max_expr__free_unpacked - (PgQuery__MinMaxExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__SQLValueFunction methods */ -void pg_query__sqlvalue_function__init - (PgQuery__SQLValueFunction *message); -size_t pg_query__sqlvalue_function__get_packed_size - (const PgQuery__SQLValueFunction *message); -size_t pg_query__sqlvalue_function__pack - (const PgQuery__SQLValueFunction *message, - uint8_t *out); -size_t pg_query__sqlvalue_function__pack_to_buffer - (const PgQuery__SQLValueFunction *message, - ProtobufCBuffer *buffer); -PgQuery__SQLValueFunction * - pg_query__sqlvalue_function__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__sqlvalue_function__free_unpacked - (PgQuery__SQLValueFunction *message, - ProtobufCAllocator *allocator); -/* PgQuery__XmlExpr methods */ -void pg_query__xml_expr__init - (PgQuery__XmlExpr *message); -size_t pg_query__xml_expr__get_packed_size - (const PgQuery__XmlExpr *message); -size_t pg_query__xml_expr__pack - (const PgQuery__XmlExpr *message, - uint8_t *out); -size_t pg_query__xml_expr__pack_to_buffer - (const PgQuery__XmlExpr *message, - ProtobufCBuffer *buffer); -PgQuery__XmlExpr * - pg_query__xml_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__xml_expr__free_unpacked - (PgQuery__XmlExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__NullTest methods */ -void pg_query__null_test__init - (PgQuery__NullTest *message); -size_t pg_query__null_test__get_packed_size - (const PgQuery__NullTest *message); -size_t pg_query__null_test__pack - (const PgQuery__NullTest *message, - uint8_t *out); -size_t pg_query__null_test__pack_to_buffer - (const PgQuery__NullTest *message, - ProtobufCBuffer *buffer); -PgQuery__NullTest * - pg_query__null_test__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__null_test__free_unpacked - (PgQuery__NullTest *message, - ProtobufCAllocator *allocator); -/* PgQuery__BooleanTest methods */ -void pg_query__boolean_test__init - (PgQuery__BooleanTest *message); -size_t pg_query__boolean_test__get_packed_size - (const PgQuery__BooleanTest *message); -size_t pg_query__boolean_test__pack - (const PgQuery__BooleanTest *message, - uint8_t *out); -size_t pg_query__boolean_test__pack_to_buffer - (const PgQuery__BooleanTest *message, - ProtobufCBuffer *buffer); -PgQuery__BooleanTest * - pg_query__boolean_test__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__boolean_test__free_unpacked - (PgQuery__BooleanTest *message, - ProtobufCAllocator *allocator); -/* PgQuery__CoerceToDomain methods */ -void pg_query__coerce_to_domain__init - (PgQuery__CoerceToDomain *message); -size_t pg_query__coerce_to_domain__get_packed_size - (const PgQuery__CoerceToDomain *message); -size_t pg_query__coerce_to_domain__pack - (const PgQuery__CoerceToDomain *message, - uint8_t *out); -size_t pg_query__coerce_to_domain__pack_to_buffer - (const PgQuery__CoerceToDomain *message, - ProtobufCBuffer *buffer); -PgQuery__CoerceToDomain * - pg_query__coerce_to_domain__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__coerce_to_domain__free_unpacked - (PgQuery__CoerceToDomain *message, - ProtobufCAllocator *allocator); -/* PgQuery__CoerceToDomainValue methods */ -void pg_query__coerce_to_domain_value__init - (PgQuery__CoerceToDomainValue *message); -size_t pg_query__coerce_to_domain_value__get_packed_size - (const PgQuery__CoerceToDomainValue *message); -size_t pg_query__coerce_to_domain_value__pack - (const PgQuery__CoerceToDomainValue *message, - uint8_t *out); -size_t pg_query__coerce_to_domain_value__pack_to_buffer - (const PgQuery__CoerceToDomainValue *message, - ProtobufCBuffer *buffer); -PgQuery__CoerceToDomainValue * - pg_query__coerce_to_domain_value__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__coerce_to_domain_value__free_unpacked - (PgQuery__CoerceToDomainValue *message, - ProtobufCAllocator *allocator); -/* PgQuery__SetToDefault methods */ -void pg_query__set_to_default__init - (PgQuery__SetToDefault *message); -size_t pg_query__set_to_default__get_packed_size - (const PgQuery__SetToDefault *message); -size_t pg_query__set_to_default__pack - (const PgQuery__SetToDefault *message, - uint8_t *out); -size_t pg_query__set_to_default__pack_to_buffer - (const PgQuery__SetToDefault *message, - ProtobufCBuffer *buffer); -PgQuery__SetToDefault * - pg_query__set_to_default__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__set_to_default__free_unpacked - (PgQuery__SetToDefault *message, - ProtobufCAllocator *allocator); -/* PgQuery__CurrentOfExpr methods */ -void pg_query__current_of_expr__init - (PgQuery__CurrentOfExpr *message); -size_t pg_query__current_of_expr__get_packed_size - (const PgQuery__CurrentOfExpr *message); -size_t pg_query__current_of_expr__pack - (const PgQuery__CurrentOfExpr *message, - uint8_t *out); -size_t pg_query__current_of_expr__pack_to_buffer - (const PgQuery__CurrentOfExpr *message, - ProtobufCBuffer *buffer); -PgQuery__CurrentOfExpr * - pg_query__current_of_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__current_of_expr__free_unpacked - (PgQuery__CurrentOfExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__NextValueExpr methods */ -void pg_query__next_value_expr__init - (PgQuery__NextValueExpr *message); -size_t pg_query__next_value_expr__get_packed_size - (const PgQuery__NextValueExpr *message); -size_t pg_query__next_value_expr__pack - (const PgQuery__NextValueExpr *message, - uint8_t *out); -size_t pg_query__next_value_expr__pack_to_buffer - (const PgQuery__NextValueExpr *message, - ProtobufCBuffer *buffer); -PgQuery__NextValueExpr * - pg_query__next_value_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__next_value_expr__free_unpacked - (PgQuery__NextValueExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__InferenceElem methods */ -void pg_query__inference_elem__init - (PgQuery__InferenceElem *message); -size_t pg_query__inference_elem__get_packed_size - (const PgQuery__InferenceElem *message); -size_t pg_query__inference_elem__pack - (const PgQuery__InferenceElem *message, - uint8_t *out); -size_t pg_query__inference_elem__pack_to_buffer - (const PgQuery__InferenceElem *message, - ProtobufCBuffer *buffer); -PgQuery__InferenceElem * - pg_query__inference_elem__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__inference_elem__free_unpacked - (PgQuery__InferenceElem *message, - ProtobufCAllocator *allocator); -/* PgQuery__TargetEntry methods */ -void pg_query__target_entry__init - (PgQuery__TargetEntry *message); -size_t pg_query__target_entry__get_packed_size - (const PgQuery__TargetEntry *message); -size_t pg_query__target_entry__pack - (const PgQuery__TargetEntry *message, - uint8_t *out); -size_t pg_query__target_entry__pack_to_buffer - (const PgQuery__TargetEntry *message, - ProtobufCBuffer *buffer); -PgQuery__TargetEntry * - pg_query__target_entry__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__target_entry__free_unpacked - (PgQuery__TargetEntry *message, - ProtobufCAllocator *allocator); -/* PgQuery__RangeTblRef methods */ -void pg_query__range_tbl_ref__init - (PgQuery__RangeTblRef *message); -size_t pg_query__range_tbl_ref__get_packed_size - (const PgQuery__RangeTblRef *message); -size_t pg_query__range_tbl_ref__pack - (const PgQuery__RangeTblRef *message, - uint8_t *out); -size_t pg_query__range_tbl_ref__pack_to_buffer - (const PgQuery__RangeTblRef *message, - ProtobufCBuffer *buffer); -PgQuery__RangeTblRef * - pg_query__range_tbl_ref__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__range_tbl_ref__free_unpacked - (PgQuery__RangeTblRef *message, - ProtobufCAllocator *allocator); -/* PgQuery__JoinExpr methods */ -void pg_query__join_expr__init - (PgQuery__JoinExpr *message); -size_t pg_query__join_expr__get_packed_size - (const PgQuery__JoinExpr *message); -size_t pg_query__join_expr__pack - (const PgQuery__JoinExpr *message, - uint8_t *out); -size_t pg_query__join_expr__pack_to_buffer - (const PgQuery__JoinExpr *message, - ProtobufCBuffer *buffer); -PgQuery__JoinExpr * - pg_query__join_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__join_expr__free_unpacked - (PgQuery__JoinExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__FromExpr methods */ -void pg_query__from_expr__init - (PgQuery__FromExpr *message); -size_t pg_query__from_expr__get_packed_size - (const PgQuery__FromExpr *message); -size_t pg_query__from_expr__pack - (const PgQuery__FromExpr *message, - uint8_t *out); -size_t pg_query__from_expr__pack_to_buffer - (const PgQuery__FromExpr *message, - ProtobufCBuffer *buffer); -PgQuery__FromExpr * - pg_query__from_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__from_expr__free_unpacked - (PgQuery__FromExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__OnConflictExpr methods */ -void pg_query__on_conflict_expr__init - (PgQuery__OnConflictExpr *message); -size_t pg_query__on_conflict_expr__get_packed_size - (const PgQuery__OnConflictExpr *message); -size_t pg_query__on_conflict_expr__pack - (const PgQuery__OnConflictExpr *message, - uint8_t *out); -size_t pg_query__on_conflict_expr__pack_to_buffer - (const PgQuery__OnConflictExpr *message, - ProtobufCBuffer *buffer); -PgQuery__OnConflictExpr * - pg_query__on_conflict_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__on_conflict_expr__free_unpacked - (PgQuery__OnConflictExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__IntoClause methods */ -void pg_query__into_clause__init - (PgQuery__IntoClause *message); -size_t pg_query__into_clause__get_packed_size - (const PgQuery__IntoClause *message); -size_t pg_query__into_clause__pack - (const PgQuery__IntoClause *message, - uint8_t *out); -size_t pg_query__into_clause__pack_to_buffer - (const PgQuery__IntoClause *message, - ProtobufCBuffer *buffer); -PgQuery__IntoClause * - pg_query__into_clause__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__into_clause__free_unpacked - (PgQuery__IntoClause *message, - ProtobufCAllocator *allocator); -/* PgQuery__MergeAction methods */ -void pg_query__merge_action__init - (PgQuery__MergeAction *message); -size_t pg_query__merge_action__get_packed_size - (const PgQuery__MergeAction *message); -size_t pg_query__merge_action__pack - (const PgQuery__MergeAction *message, - uint8_t *out); -size_t pg_query__merge_action__pack_to_buffer - (const PgQuery__MergeAction *message, - ProtobufCBuffer *buffer); -PgQuery__MergeAction * - pg_query__merge_action__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__merge_action__free_unpacked - (PgQuery__MergeAction *message, - ProtobufCAllocator *allocator); -/* PgQuery__RawStmt methods */ -void pg_query__raw_stmt__init - (PgQuery__RawStmt *message); -size_t pg_query__raw_stmt__get_packed_size - (const PgQuery__RawStmt *message); -size_t pg_query__raw_stmt__pack - (const PgQuery__RawStmt *message, - uint8_t *out); -size_t pg_query__raw_stmt__pack_to_buffer - (const PgQuery__RawStmt *message, - ProtobufCBuffer *buffer); -PgQuery__RawStmt * - pg_query__raw_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__raw_stmt__free_unpacked - (PgQuery__RawStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__Query methods */ -void pg_query__query__init - (PgQuery__Query *message); -size_t pg_query__query__get_packed_size - (const PgQuery__Query *message); -size_t pg_query__query__pack - (const PgQuery__Query *message, - uint8_t *out); -size_t pg_query__query__pack_to_buffer - (const PgQuery__Query *message, - ProtobufCBuffer *buffer); -PgQuery__Query * - pg_query__query__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__query__free_unpacked - (PgQuery__Query *message, - ProtobufCAllocator *allocator); -/* PgQuery__InsertStmt methods */ -void pg_query__insert_stmt__init - (PgQuery__InsertStmt *message); -size_t pg_query__insert_stmt__get_packed_size - (const PgQuery__InsertStmt *message); -size_t pg_query__insert_stmt__pack - (const PgQuery__InsertStmt *message, - uint8_t *out); -size_t pg_query__insert_stmt__pack_to_buffer - (const PgQuery__InsertStmt *message, - ProtobufCBuffer *buffer); -PgQuery__InsertStmt * - pg_query__insert_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__insert_stmt__free_unpacked - (PgQuery__InsertStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__DeleteStmt methods */ -void pg_query__delete_stmt__init - (PgQuery__DeleteStmt *message); -size_t pg_query__delete_stmt__get_packed_size - (const PgQuery__DeleteStmt *message); -size_t pg_query__delete_stmt__pack - (const PgQuery__DeleteStmt *message, - uint8_t *out); -size_t pg_query__delete_stmt__pack_to_buffer - (const PgQuery__DeleteStmt *message, - ProtobufCBuffer *buffer); -PgQuery__DeleteStmt * - pg_query__delete_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__delete_stmt__free_unpacked - (PgQuery__DeleteStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__UpdateStmt methods */ -void pg_query__update_stmt__init - (PgQuery__UpdateStmt *message); -size_t pg_query__update_stmt__get_packed_size - (const PgQuery__UpdateStmt *message); -size_t pg_query__update_stmt__pack - (const PgQuery__UpdateStmt *message, - uint8_t *out); -size_t pg_query__update_stmt__pack_to_buffer - (const PgQuery__UpdateStmt *message, - ProtobufCBuffer *buffer); -PgQuery__UpdateStmt * - pg_query__update_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__update_stmt__free_unpacked - (PgQuery__UpdateStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__MergeStmt methods */ -void pg_query__merge_stmt__init - (PgQuery__MergeStmt *message); -size_t pg_query__merge_stmt__get_packed_size - (const PgQuery__MergeStmt *message); -size_t pg_query__merge_stmt__pack - (const PgQuery__MergeStmt *message, - uint8_t *out); -size_t pg_query__merge_stmt__pack_to_buffer - (const PgQuery__MergeStmt *message, - ProtobufCBuffer *buffer); -PgQuery__MergeStmt * - pg_query__merge_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__merge_stmt__free_unpacked - (PgQuery__MergeStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__SelectStmt methods */ -void pg_query__select_stmt__init - (PgQuery__SelectStmt *message); -size_t pg_query__select_stmt__get_packed_size - (const PgQuery__SelectStmt *message); -size_t pg_query__select_stmt__pack - (const PgQuery__SelectStmt *message, - uint8_t *out); -size_t pg_query__select_stmt__pack_to_buffer - (const PgQuery__SelectStmt *message, - ProtobufCBuffer *buffer); -PgQuery__SelectStmt * - pg_query__select_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__select_stmt__free_unpacked - (PgQuery__SelectStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__ReturnStmt methods */ -void pg_query__return_stmt__init - (PgQuery__ReturnStmt *message); -size_t pg_query__return_stmt__get_packed_size - (const PgQuery__ReturnStmt *message); -size_t pg_query__return_stmt__pack - (const PgQuery__ReturnStmt *message, - uint8_t *out); -size_t pg_query__return_stmt__pack_to_buffer - (const PgQuery__ReturnStmt *message, - ProtobufCBuffer *buffer); -PgQuery__ReturnStmt * - pg_query__return_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__return_stmt__free_unpacked - (PgQuery__ReturnStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__PLAssignStmt methods */ -void pg_query__plassign_stmt__init - (PgQuery__PLAssignStmt *message); -size_t pg_query__plassign_stmt__get_packed_size - (const PgQuery__PLAssignStmt *message); -size_t pg_query__plassign_stmt__pack - (const PgQuery__PLAssignStmt *message, - uint8_t *out); -size_t pg_query__plassign_stmt__pack_to_buffer - (const PgQuery__PLAssignStmt *message, - ProtobufCBuffer *buffer); -PgQuery__PLAssignStmt * - pg_query__plassign_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__plassign_stmt__free_unpacked - (PgQuery__PLAssignStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterTableStmt methods */ -void pg_query__alter_table_stmt__init - (PgQuery__AlterTableStmt *message); -size_t pg_query__alter_table_stmt__get_packed_size - (const PgQuery__AlterTableStmt *message); -size_t pg_query__alter_table_stmt__pack - (const PgQuery__AlterTableStmt *message, - uint8_t *out); -size_t pg_query__alter_table_stmt__pack_to_buffer - (const PgQuery__AlterTableStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterTableStmt * - pg_query__alter_table_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_table_stmt__free_unpacked - (PgQuery__AlterTableStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterTableCmd methods */ -void pg_query__alter_table_cmd__init - (PgQuery__AlterTableCmd *message); -size_t pg_query__alter_table_cmd__get_packed_size - (const PgQuery__AlterTableCmd *message); -size_t pg_query__alter_table_cmd__pack - (const PgQuery__AlterTableCmd *message, - uint8_t *out); -size_t pg_query__alter_table_cmd__pack_to_buffer - (const PgQuery__AlterTableCmd *message, - ProtobufCBuffer *buffer); -PgQuery__AlterTableCmd * - pg_query__alter_table_cmd__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_table_cmd__free_unpacked - (PgQuery__AlterTableCmd *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterDomainStmt methods */ -void pg_query__alter_domain_stmt__init - (PgQuery__AlterDomainStmt *message); -size_t pg_query__alter_domain_stmt__get_packed_size - (const PgQuery__AlterDomainStmt *message); -size_t pg_query__alter_domain_stmt__pack - (const PgQuery__AlterDomainStmt *message, - uint8_t *out); -size_t pg_query__alter_domain_stmt__pack_to_buffer - (const PgQuery__AlterDomainStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterDomainStmt * - pg_query__alter_domain_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_domain_stmt__free_unpacked - (PgQuery__AlterDomainStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__SetOperationStmt methods */ -void pg_query__set_operation_stmt__init - (PgQuery__SetOperationStmt *message); -size_t pg_query__set_operation_stmt__get_packed_size - (const PgQuery__SetOperationStmt *message); -size_t pg_query__set_operation_stmt__pack - (const PgQuery__SetOperationStmt *message, - uint8_t *out); -size_t pg_query__set_operation_stmt__pack_to_buffer - (const PgQuery__SetOperationStmt *message, - ProtobufCBuffer *buffer); -PgQuery__SetOperationStmt * - pg_query__set_operation_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__set_operation_stmt__free_unpacked - (PgQuery__SetOperationStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__GrantStmt methods */ -void pg_query__grant_stmt__init - (PgQuery__GrantStmt *message); -size_t pg_query__grant_stmt__get_packed_size - (const PgQuery__GrantStmt *message); -size_t pg_query__grant_stmt__pack - (const PgQuery__GrantStmt *message, - uint8_t *out); -size_t pg_query__grant_stmt__pack_to_buffer - (const PgQuery__GrantStmt *message, - ProtobufCBuffer *buffer); -PgQuery__GrantStmt * - pg_query__grant_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__grant_stmt__free_unpacked - (PgQuery__GrantStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__GrantRoleStmt methods */ -void pg_query__grant_role_stmt__init - (PgQuery__GrantRoleStmt *message); -size_t pg_query__grant_role_stmt__get_packed_size - (const PgQuery__GrantRoleStmt *message); -size_t pg_query__grant_role_stmt__pack - (const PgQuery__GrantRoleStmt *message, - uint8_t *out); -size_t pg_query__grant_role_stmt__pack_to_buffer - (const PgQuery__GrantRoleStmt *message, - ProtobufCBuffer *buffer); -PgQuery__GrantRoleStmt * - pg_query__grant_role_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__grant_role_stmt__free_unpacked - (PgQuery__GrantRoleStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterDefaultPrivilegesStmt methods */ -void pg_query__alter_default_privileges_stmt__init - (PgQuery__AlterDefaultPrivilegesStmt *message); -size_t pg_query__alter_default_privileges_stmt__get_packed_size - (const PgQuery__AlterDefaultPrivilegesStmt *message); -size_t pg_query__alter_default_privileges_stmt__pack - (const PgQuery__AlterDefaultPrivilegesStmt *message, - uint8_t *out); -size_t pg_query__alter_default_privileges_stmt__pack_to_buffer - (const PgQuery__AlterDefaultPrivilegesStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterDefaultPrivilegesStmt * - pg_query__alter_default_privileges_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_default_privileges_stmt__free_unpacked - (PgQuery__AlterDefaultPrivilegesStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__ClosePortalStmt methods */ -void pg_query__close_portal_stmt__init - (PgQuery__ClosePortalStmt *message); -size_t pg_query__close_portal_stmt__get_packed_size - (const PgQuery__ClosePortalStmt *message); -size_t pg_query__close_portal_stmt__pack - (const PgQuery__ClosePortalStmt *message, - uint8_t *out); -size_t pg_query__close_portal_stmt__pack_to_buffer - (const PgQuery__ClosePortalStmt *message, - ProtobufCBuffer *buffer); -PgQuery__ClosePortalStmt * - pg_query__close_portal_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__close_portal_stmt__free_unpacked - (PgQuery__ClosePortalStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__ClusterStmt methods */ -void pg_query__cluster_stmt__init - (PgQuery__ClusterStmt *message); -size_t pg_query__cluster_stmt__get_packed_size - (const PgQuery__ClusterStmt *message); -size_t pg_query__cluster_stmt__pack - (const PgQuery__ClusterStmt *message, - uint8_t *out); -size_t pg_query__cluster_stmt__pack_to_buffer - (const PgQuery__ClusterStmt *message, - ProtobufCBuffer *buffer); -PgQuery__ClusterStmt * - pg_query__cluster_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__cluster_stmt__free_unpacked - (PgQuery__ClusterStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CopyStmt methods */ -void pg_query__copy_stmt__init - (PgQuery__CopyStmt *message); -size_t pg_query__copy_stmt__get_packed_size - (const PgQuery__CopyStmt *message); -size_t pg_query__copy_stmt__pack - (const PgQuery__CopyStmt *message, - uint8_t *out); -size_t pg_query__copy_stmt__pack_to_buffer - (const PgQuery__CopyStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CopyStmt * - pg_query__copy_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__copy_stmt__free_unpacked - (PgQuery__CopyStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateStmt methods */ -void pg_query__create_stmt__init - (PgQuery__CreateStmt *message); -size_t pg_query__create_stmt__get_packed_size - (const PgQuery__CreateStmt *message); -size_t pg_query__create_stmt__pack - (const PgQuery__CreateStmt *message, - uint8_t *out); -size_t pg_query__create_stmt__pack_to_buffer - (const PgQuery__CreateStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateStmt * - pg_query__create_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_stmt__free_unpacked - (PgQuery__CreateStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__DefineStmt methods */ -void pg_query__define_stmt__init - (PgQuery__DefineStmt *message); -size_t pg_query__define_stmt__get_packed_size - (const PgQuery__DefineStmt *message); -size_t pg_query__define_stmt__pack - (const PgQuery__DefineStmt *message, - uint8_t *out); -size_t pg_query__define_stmt__pack_to_buffer - (const PgQuery__DefineStmt *message, - ProtobufCBuffer *buffer); -PgQuery__DefineStmt * - pg_query__define_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__define_stmt__free_unpacked - (PgQuery__DefineStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__DropStmt methods */ -void pg_query__drop_stmt__init - (PgQuery__DropStmt *message); -size_t pg_query__drop_stmt__get_packed_size - (const PgQuery__DropStmt *message); -size_t pg_query__drop_stmt__pack - (const PgQuery__DropStmt *message, - uint8_t *out); -size_t pg_query__drop_stmt__pack_to_buffer - (const PgQuery__DropStmt *message, - ProtobufCBuffer *buffer); -PgQuery__DropStmt * - pg_query__drop_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__drop_stmt__free_unpacked - (PgQuery__DropStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__TruncateStmt methods */ -void pg_query__truncate_stmt__init - (PgQuery__TruncateStmt *message); -size_t pg_query__truncate_stmt__get_packed_size - (const PgQuery__TruncateStmt *message); -size_t pg_query__truncate_stmt__pack - (const PgQuery__TruncateStmt *message, - uint8_t *out); -size_t pg_query__truncate_stmt__pack_to_buffer - (const PgQuery__TruncateStmt *message, - ProtobufCBuffer *buffer); -PgQuery__TruncateStmt * - pg_query__truncate_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__truncate_stmt__free_unpacked - (PgQuery__TruncateStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CommentStmt methods */ -void pg_query__comment_stmt__init - (PgQuery__CommentStmt *message); -size_t pg_query__comment_stmt__get_packed_size - (const PgQuery__CommentStmt *message); -size_t pg_query__comment_stmt__pack - (const PgQuery__CommentStmt *message, - uint8_t *out); -size_t pg_query__comment_stmt__pack_to_buffer - (const PgQuery__CommentStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CommentStmt * - pg_query__comment_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__comment_stmt__free_unpacked - (PgQuery__CommentStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__FetchStmt methods */ -void pg_query__fetch_stmt__init - (PgQuery__FetchStmt *message); -size_t pg_query__fetch_stmt__get_packed_size - (const PgQuery__FetchStmt *message); -size_t pg_query__fetch_stmt__pack - (const PgQuery__FetchStmt *message, - uint8_t *out); -size_t pg_query__fetch_stmt__pack_to_buffer - (const PgQuery__FetchStmt *message, - ProtobufCBuffer *buffer); -PgQuery__FetchStmt * - pg_query__fetch_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__fetch_stmt__free_unpacked - (PgQuery__FetchStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__IndexStmt methods */ -void pg_query__index_stmt__init - (PgQuery__IndexStmt *message); -size_t pg_query__index_stmt__get_packed_size - (const PgQuery__IndexStmt *message); -size_t pg_query__index_stmt__pack - (const PgQuery__IndexStmt *message, - uint8_t *out); -size_t pg_query__index_stmt__pack_to_buffer - (const PgQuery__IndexStmt *message, - ProtobufCBuffer *buffer); -PgQuery__IndexStmt * - pg_query__index_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__index_stmt__free_unpacked - (PgQuery__IndexStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateFunctionStmt methods */ -void pg_query__create_function_stmt__init - (PgQuery__CreateFunctionStmt *message); -size_t pg_query__create_function_stmt__get_packed_size - (const PgQuery__CreateFunctionStmt *message); -size_t pg_query__create_function_stmt__pack - (const PgQuery__CreateFunctionStmt *message, - uint8_t *out); -size_t pg_query__create_function_stmt__pack_to_buffer - (const PgQuery__CreateFunctionStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateFunctionStmt * - pg_query__create_function_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_function_stmt__free_unpacked - (PgQuery__CreateFunctionStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterFunctionStmt methods */ -void pg_query__alter_function_stmt__init - (PgQuery__AlterFunctionStmt *message); -size_t pg_query__alter_function_stmt__get_packed_size - (const PgQuery__AlterFunctionStmt *message); -size_t pg_query__alter_function_stmt__pack - (const PgQuery__AlterFunctionStmt *message, - uint8_t *out); -size_t pg_query__alter_function_stmt__pack_to_buffer - (const PgQuery__AlterFunctionStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterFunctionStmt * - pg_query__alter_function_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_function_stmt__free_unpacked - (PgQuery__AlterFunctionStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__DoStmt methods */ -void pg_query__do_stmt__init - (PgQuery__DoStmt *message); -size_t pg_query__do_stmt__get_packed_size - (const PgQuery__DoStmt *message); -size_t pg_query__do_stmt__pack - (const PgQuery__DoStmt *message, - uint8_t *out); -size_t pg_query__do_stmt__pack_to_buffer - (const PgQuery__DoStmt *message, - ProtobufCBuffer *buffer); -PgQuery__DoStmt * - pg_query__do_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__do_stmt__free_unpacked - (PgQuery__DoStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__RenameStmt methods */ -void pg_query__rename_stmt__init - (PgQuery__RenameStmt *message); -size_t pg_query__rename_stmt__get_packed_size - (const PgQuery__RenameStmt *message); -size_t pg_query__rename_stmt__pack - (const PgQuery__RenameStmt *message, - uint8_t *out); -size_t pg_query__rename_stmt__pack_to_buffer - (const PgQuery__RenameStmt *message, - ProtobufCBuffer *buffer); -PgQuery__RenameStmt * - pg_query__rename_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__rename_stmt__free_unpacked - (PgQuery__RenameStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__RuleStmt methods */ -void pg_query__rule_stmt__init - (PgQuery__RuleStmt *message); -size_t pg_query__rule_stmt__get_packed_size - (const PgQuery__RuleStmt *message); -size_t pg_query__rule_stmt__pack - (const PgQuery__RuleStmt *message, - uint8_t *out); -size_t pg_query__rule_stmt__pack_to_buffer - (const PgQuery__RuleStmt *message, - ProtobufCBuffer *buffer); -PgQuery__RuleStmt * - pg_query__rule_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__rule_stmt__free_unpacked - (PgQuery__RuleStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__NotifyStmt methods */ -void pg_query__notify_stmt__init - (PgQuery__NotifyStmt *message); -size_t pg_query__notify_stmt__get_packed_size - (const PgQuery__NotifyStmt *message); -size_t pg_query__notify_stmt__pack - (const PgQuery__NotifyStmt *message, - uint8_t *out); -size_t pg_query__notify_stmt__pack_to_buffer - (const PgQuery__NotifyStmt *message, - ProtobufCBuffer *buffer); -PgQuery__NotifyStmt * - pg_query__notify_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__notify_stmt__free_unpacked - (PgQuery__NotifyStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__ListenStmt methods */ -void pg_query__listen_stmt__init - (PgQuery__ListenStmt *message); -size_t pg_query__listen_stmt__get_packed_size - (const PgQuery__ListenStmt *message); -size_t pg_query__listen_stmt__pack - (const PgQuery__ListenStmt *message, - uint8_t *out); -size_t pg_query__listen_stmt__pack_to_buffer - (const PgQuery__ListenStmt *message, - ProtobufCBuffer *buffer); -PgQuery__ListenStmt * - pg_query__listen_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__listen_stmt__free_unpacked - (PgQuery__ListenStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__UnlistenStmt methods */ -void pg_query__unlisten_stmt__init - (PgQuery__UnlistenStmt *message); -size_t pg_query__unlisten_stmt__get_packed_size - (const PgQuery__UnlistenStmt *message); -size_t pg_query__unlisten_stmt__pack - (const PgQuery__UnlistenStmt *message, - uint8_t *out); -size_t pg_query__unlisten_stmt__pack_to_buffer - (const PgQuery__UnlistenStmt *message, - ProtobufCBuffer *buffer); -PgQuery__UnlistenStmt * - pg_query__unlisten_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__unlisten_stmt__free_unpacked - (PgQuery__UnlistenStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__TransactionStmt methods */ -void pg_query__transaction_stmt__init - (PgQuery__TransactionStmt *message); -size_t pg_query__transaction_stmt__get_packed_size - (const PgQuery__TransactionStmt *message); -size_t pg_query__transaction_stmt__pack - (const PgQuery__TransactionStmt *message, - uint8_t *out); -size_t pg_query__transaction_stmt__pack_to_buffer - (const PgQuery__TransactionStmt *message, - ProtobufCBuffer *buffer); -PgQuery__TransactionStmt * - pg_query__transaction_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__transaction_stmt__free_unpacked - (PgQuery__TransactionStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__ViewStmt methods */ -void pg_query__view_stmt__init - (PgQuery__ViewStmt *message); -size_t pg_query__view_stmt__get_packed_size - (const PgQuery__ViewStmt *message); -size_t pg_query__view_stmt__pack - (const PgQuery__ViewStmt *message, - uint8_t *out); -size_t pg_query__view_stmt__pack_to_buffer - (const PgQuery__ViewStmt *message, - ProtobufCBuffer *buffer); -PgQuery__ViewStmt * - pg_query__view_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__view_stmt__free_unpacked - (PgQuery__ViewStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__LoadStmt methods */ -void pg_query__load_stmt__init - (PgQuery__LoadStmt *message); -size_t pg_query__load_stmt__get_packed_size - (const PgQuery__LoadStmt *message); -size_t pg_query__load_stmt__pack - (const PgQuery__LoadStmt *message, - uint8_t *out); -size_t pg_query__load_stmt__pack_to_buffer - (const PgQuery__LoadStmt *message, - ProtobufCBuffer *buffer); -PgQuery__LoadStmt * - pg_query__load_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__load_stmt__free_unpacked - (PgQuery__LoadStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateDomainStmt methods */ -void pg_query__create_domain_stmt__init - (PgQuery__CreateDomainStmt *message); -size_t pg_query__create_domain_stmt__get_packed_size - (const PgQuery__CreateDomainStmt *message); -size_t pg_query__create_domain_stmt__pack - (const PgQuery__CreateDomainStmt *message, - uint8_t *out); -size_t pg_query__create_domain_stmt__pack_to_buffer - (const PgQuery__CreateDomainStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateDomainStmt * - pg_query__create_domain_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_domain_stmt__free_unpacked - (PgQuery__CreateDomainStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreatedbStmt methods */ -void pg_query__createdb_stmt__init - (PgQuery__CreatedbStmt *message); -size_t pg_query__createdb_stmt__get_packed_size - (const PgQuery__CreatedbStmt *message); -size_t pg_query__createdb_stmt__pack - (const PgQuery__CreatedbStmt *message, - uint8_t *out); -size_t pg_query__createdb_stmt__pack_to_buffer - (const PgQuery__CreatedbStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreatedbStmt * - pg_query__createdb_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__createdb_stmt__free_unpacked - (PgQuery__CreatedbStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__DropdbStmt methods */ -void pg_query__dropdb_stmt__init - (PgQuery__DropdbStmt *message); -size_t pg_query__dropdb_stmt__get_packed_size - (const PgQuery__DropdbStmt *message); -size_t pg_query__dropdb_stmt__pack - (const PgQuery__DropdbStmt *message, - uint8_t *out); -size_t pg_query__dropdb_stmt__pack_to_buffer - (const PgQuery__DropdbStmt *message, - ProtobufCBuffer *buffer); -PgQuery__DropdbStmt * - pg_query__dropdb_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__dropdb_stmt__free_unpacked - (PgQuery__DropdbStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__VacuumStmt methods */ -void pg_query__vacuum_stmt__init - (PgQuery__VacuumStmt *message); -size_t pg_query__vacuum_stmt__get_packed_size - (const PgQuery__VacuumStmt *message); -size_t pg_query__vacuum_stmt__pack - (const PgQuery__VacuumStmt *message, - uint8_t *out); -size_t pg_query__vacuum_stmt__pack_to_buffer - (const PgQuery__VacuumStmt *message, - ProtobufCBuffer *buffer); -PgQuery__VacuumStmt * - pg_query__vacuum_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__vacuum_stmt__free_unpacked - (PgQuery__VacuumStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__ExplainStmt methods */ -void pg_query__explain_stmt__init - (PgQuery__ExplainStmt *message); -size_t pg_query__explain_stmt__get_packed_size - (const PgQuery__ExplainStmt *message); -size_t pg_query__explain_stmt__pack - (const PgQuery__ExplainStmt *message, - uint8_t *out); -size_t pg_query__explain_stmt__pack_to_buffer - (const PgQuery__ExplainStmt *message, - ProtobufCBuffer *buffer); -PgQuery__ExplainStmt * - pg_query__explain_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__explain_stmt__free_unpacked - (PgQuery__ExplainStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateTableAsStmt methods */ -void pg_query__create_table_as_stmt__init - (PgQuery__CreateTableAsStmt *message); -size_t pg_query__create_table_as_stmt__get_packed_size - (const PgQuery__CreateTableAsStmt *message); -size_t pg_query__create_table_as_stmt__pack - (const PgQuery__CreateTableAsStmt *message, - uint8_t *out); -size_t pg_query__create_table_as_stmt__pack_to_buffer - (const PgQuery__CreateTableAsStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateTableAsStmt * - pg_query__create_table_as_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_table_as_stmt__free_unpacked - (PgQuery__CreateTableAsStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateSeqStmt methods */ -void pg_query__create_seq_stmt__init - (PgQuery__CreateSeqStmt *message); -size_t pg_query__create_seq_stmt__get_packed_size - (const PgQuery__CreateSeqStmt *message); -size_t pg_query__create_seq_stmt__pack - (const PgQuery__CreateSeqStmt *message, - uint8_t *out); -size_t pg_query__create_seq_stmt__pack_to_buffer - (const PgQuery__CreateSeqStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateSeqStmt * - pg_query__create_seq_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_seq_stmt__free_unpacked - (PgQuery__CreateSeqStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterSeqStmt methods */ -void pg_query__alter_seq_stmt__init - (PgQuery__AlterSeqStmt *message); -size_t pg_query__alter_seq_stmt__get_packed_size - (const PgQuery__AlterSeqStmt *message); -size_t pg_query__alter_seq_stmt__pack - (const PgQuery__AlterSeqStmt *message, - uint8_t *out); -size_t pg_query__alter_seq_stmt__pack_to_buffer - (const PgQuery__AlterSeqStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterSeqStmt * - pg_query__alter_seq_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_seq_stmt__free_unpacked - (PgQuery__AlterSeqStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__VariableSetStmt methods */ -void pg_query__variable_set_stmt__init - (PgQuery__VariableSetStmt *message); -size_t pg_query__variable_set_stmt__get_packed_size - (const PgQuery__VariableSetStmt *message); -size_t pg_query__variable_set_stmt__pack - (const PgQuery__VariableSetStmt *message, - uint8_t *out); -size_t pg_query__variable_set_stmt__pack_to_buffer - (const PgQuery__VariableSetStmt *message, - ProtobufCBuffer *buffer); -PgQuery__VariableSetStmt * - pg_query__variable_set_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__variable_set_stmt__free_unpacked - (PgQuery__VariableSetStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__VariableShowStmt methods */ -void pg_query__variable_show_stmt__init - (PgQuery__VariableShowStmt *message); -size_t pg_query__variable_show_stmt__get_packed_size - (const PgQuery__VariableShowStmt *message); -size_t pg_query__variable_show_stmt__pack - (const PgQuery__VariableShowStmt *message, - uint8_t *out); -size_t pg_query__variable_show_stmt__pack_to_buffer - (const PgQuery__VariableShowStmt *message, - ProtobufCBuffer *buffer); -PgQuery__VariableShowStmt * - pg_query__variable_show_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__variable_show_stmt__free_unpacked - (PgQuery__VariableShowStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__DiscardStmt methods */ -void pg_query__discard_stmt__init - (PgQuery__DiscardStmt *message); -size_t pg_query__discard_stmt__get_packed_size - (const PgQuery__DiscardStmt *message); -size_t pg_query__discard_stmt__pack - (const PgQuery__DiscardStmt *message, - uint8_t *out); -size_t pg_query__discard_stmt__pack_to_buffer - (const PgQuery__DiscardStmt *message, - ProtobufCBuffer *buffer); -PgQuery__DiscardStmt * - pg_query__discard_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__discard_stmt__free_unpacked - (PgQuery__DiscardStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateTrigStmt methods */ -void pg_query__create_trig_stmt__init - (PgQuery__CreateTrigStmt *message); -size_t pg_query__create_trig_stmt__get_packed_size - (const PgQuery__CreateTrigStmt *message); -size_t pg_query__create_trig_stmt__pack - (const PgQuery__CreateTrigStmt *message, - uint8_t *out); -size_t pg_query__create_trig_stmt__pack_to_buffer - (const PgQuery__CreateTrigStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateTrigStmt * - pg_query__create_trig_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_trig_stmt__free_unpacked - (PgQuery__CreateTrigStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreatePLangStmt methods */ -void pg_query__create_plang_stmt__init - (PgQuery__CreatePLangStmt *message); -size_t pg_query__create_plang_stmt__get_packed_size - (const PgQuery__CreatePLangStmt *message); -size_t pg_query__create_plang_stmt__pack - (const PgQuery__CreatePLangStmt *message, - uint8_t *out); -size_t pg_query__create_plang_stmt__pack_to_buffer - (const PgQuery__CreatePLangStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreatePLangStmt * - pg_query__create_plang_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_plang_stmt__free_unpacked - (PgQuery__CreatePLangStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateRoleStmt methods */ -void pg_query__create_role_stmt__init - (PgQuery__CreateRoleStmt *message); -size_t pg_query__create_role_stmt__get_packed_size - (const PgQuery__CreateRoleStmt *message); -size_t pg_query__create_role_stmt__pack - (const PgQuery__CreateRoleStmt *message, - uint8_t *out); -size_t pg_query__create_role_stmt__pack_to_buffer - (const PgQuery__CreateRoleStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateRoleStmt * - pg_query__create_role_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_role_stmt__free_unpacked - (PgQuery__CreateRoleStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterRoleStmt methods */ -void pg_query__alter_role_stmt__init - (PgQuery__AlterRoleStmt *message); -size_t pg_query__alter_role_stmt__get_packed_size - (const PgQuery__AlterRoleStmt *message); -size_t pg_query__alter_role_stmt__pack - (const PgQuery__AlterRoleStmt *message, - uint8_t *out); -size_t pg_query__alter_role_stmt__pack_to_buffer - (const PgQuery__AlterRoleStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterRoleStmt * - pg_query__alter_role_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_role_stmt__free_unpacked - (PgQuery__AlterRoleStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__DropRoleStmt methods */ -void pg_query__drop_role_stmt__init - (PgQuery__DropRoleStmt *message); -size_t pg_query__drop_role_stmt__get_packed_size - (const PgQuery__DropRoleStmt *message); -size_t pg_query__drop_role_stmt__pack - (const PgQuery__DropRoleStmt *message, - uint8_t *out); -size_t pg_query__drop_role_stmt__pack_to_buffer - (const PgQuery__DropRoleStmt *message, - ProtobufCBuffer *buffer); -PgQuery__DropRoleStmt * - pg_query__drop_role_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__drop_role_stmt__free_unpacked - (PgQuery__DropRoleStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__LockStmt methods */ -void pg_query__lock_stmt__init - (PgQuery__LockStmt *message); -size_t pg_query__lock_stmt__get_packed_size - (const PgQuery__LockStmt *message); -size_t pg_query__lock_stmt__pack - (const PgQuery__LockStmt *message, - uint8_t *out); -size_t pg_query__lock_stmt__pack_to_buffer - (const PgQuery__LockStmt *message, - ProtobufCBuffer *buffer); -PgQuery__LockStmt * - pg_query__lock_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__lock_stmt__free_unpacked - (PgQuery__LockStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__ConstraintsSetStmt methods */ -void pg_query__constraints_set_stmt__init - (PgQuery__ConstraintsSetStmt *message); -size_t pg_query__constraints_set_stmt__get_packed_size - (const PgQuery__ConstraintsSetStmt *message); -size_t pg_query__constraints_set_stmt__pack - (const PgQuery__ConstraintsSetStmt *message, - uint8_t *out); -size_t pg_query__constraints_set_stmt__pack_to_buffer - (const PgQuery__ConstraintsSetStmt *message, - ProtobufCBuffer *buffer); -PgQuery__ConstraintsSetStmt * - pg_query__constraints_set_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__constraints_set_stmt__free_unpacked - (PgQuery__ConstraintsSetStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__ReindexStmt methods */ -void pg_query__reindex_stmt__init - (PgQuery__ReindexStmt *message); -size_t pg_query__reindex_stmt__get_packed_size - (const PgQuery__ReindexStmt *message); -size_t pg_query__reindex_stmt__pack - (const PgQuery__ReindexStmt *message, - uint8_t *out); -size_t pg_query__reindex_stmt__pack_to_buffer - (const PgQuery__ReindexStmt *message, - ProtobufCBuffer *buffer); -PgQuery__ReindexStmt * - pg_query__reindex_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__reindex_stmt__free_unpacked - (PgQuery__ReindexStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CheckPointStmt methods */ -void pg_query__check_point_stmt__init - (PgQuery__CheckPointStmt *message); -size_t pg_query__check_point_stmt__get_packed_size - (const PgQuery__CheckPointStmt *message); -size_t pg_query__check_point_stmt__pack - (const PgQuery__CheckPointStmt *message, - uint8_t *out); -size_t pg_query__check_point_stmt__pack_to_buffer - (const PgQuery__CheckPointStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CheckPointStmt * - pg_query__check_point_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__check_point_stmt__free_unpacked - (PgQuery__CheckPointStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateSchemaStmt methods */ -void pg_query__create_schema_stmt__init - (PgQuery__CreateSchemaStmt *message); -size_t pg_query__create_schema_stmt__get_packed_size - (const PgQuery__CreateSchemaStmt *message); -size_t pg_query__create_schema_stmt__pack - (const PgQuery__CreateSchemaStmt *message, - uint8_t *out); -size_t pg_query__create_schema_stmt__pack_to_buffer - (const PgQuery__CreateSchemaStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateSchemaStmt * - pg_query__create_schema_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_schema_stmt__free_unpacked - (PgQuery__CreateSchemaStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterDatabaseStmt methods */ -void pg_query__alter_database_stmt__init - (PgQuery__AlterDatabaseStmt *message); -size_t pg_query__alter_database_stmt__get_packed_size - (const PgQuery__AlterDatabaseStmt *message); -size_t pg_query__alter_database_stmt__pack - (const PgQuery__AlterDatabaseStmt *message, - uint8_t *out); -size_t pg_query__alter_database_stmt__pack_to_buffer - (const PgQuery__AlterDatabaseStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterDatabaseStmt * - pg_query__alter_database_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_database_stmt__free_unpacked - (PgQuery__AlterDatabaseStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterDatabaseRefreshCollStmt methods */ -void pg_query__alter_database_refresh_coll_stmt__init - (PgQuery__AlterDatabaseRefreshCollStmt *message); -size_t pg_query__alter_database_refresh_coll_stmt__get_packed_size - (const PgQuery__AlterDatabaseRefreshCollStmt *message); -size_t pg_query__alter_database_refresh_coll_stmt__pack - (const PgQuery__AlterDatabaseRefreshCollStmt *message, - uint8_t *out); -size_t pg_query__alter_database_refresh_coll_stmt__pack_to_buffer - (const PgQuery__AlterDatabaseRefreshCollStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterDatabaseRefreshCollStmt * - pg_query__alter_database_refresh_coll_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_database_refresh_coll_stmt__free_unpacked - (PgQuery__AlterDatabaseRefreshCollStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterDatabaseSetStmt methods */ -void pg_query__alter_database_set_stmt__init - (PgQuery__AlterDatabaseSetStmt *message); -size_t pg_query__alter_database_set_stmt__get_packed_size - (const PgQuery__AlterDatabaseSetStmt *message); -size_t pg_query__alter_database_set_stmt__pack - (const PgQuery__AlterDatabaseSetStmt *message, - uint8_t *out); -size_t pg_query__alter_database_set_stmt__pack_to_buffer - (const PgQuery__AlterDatabaseSetStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterDatabaseSetStmt * - pg_query__alter_database_set_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_database_set_stmt__free_unpacked - (PgQuery__AlterDatabaseSetStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterRoleSetStmt methods */ -void pg_query__alter_role_set_stmt__init - (PgQuery__AlterRoleSetStmt *message); -size_t pg_query__alter_role_set_stmt__get_packed_size - (const PgQuery__AlterRoleSetStmt *message); -size_t pg_query__alter_role_set_stmt__pack - (const PgQuery__AlterRoleSetStmt *message, - uint8_t *out); -size_t pg_query__alter_role_set_stmt__pack_to_buffer - (const PgQuery__AlterRoleSetStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterRoleSetStmt * - pg_query__alter_role_set_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_role_set_stmt__free_unpacked - (PgQuery__AlterRoleSetStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateConversionStmt methods */ -void pg_query__create_conversion_stmt__init - (PgQuery__CreateConversionStmt *message); -size_t pg_query__create_conversion_stmt__get_packed_size - (const PgQuery__CreateConversionStmt *message); -size_t pg_query__create_conversion_stmt__pack - (const PgQuery__CreateConversionStmt *message, - uint8_t *out); -size_t pg_query__create_conversion_stmt__pack_to_buffer - (const PgQuery__CreateConversionStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateConversionStmt * - pg_query__create_conversion_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_conversion_stmt__free_unpacked - (PgQuery__CreateConversionStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateCastStmt methods */ -void pg_query__create_cast_stmt__init - (PgQuery__CreateCastStmt *message); -size_t pg_query__create_cast_stmt__get_packed_size - (const PgQuery__CreateCastStmt *message); -size_t pg_query__create_cast_stmt__pack - (const PgQuery__CreateCastStmt *message, - uint8_t *out); -size_t pg_query__create_cast_stmt__pack_to_buffer - (const PgQuery__CreateCastStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateCastStmt * - pg_query__create_cast_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_cast_stmt__free_unpacked - (PgQuery__CreateCastStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateOpClassStmt methods */ -void pg_query__create_op_class_stmt__init - (PgQuery__CreateOpClassStmt *message); -size_t pg_query__create_op_class_stmt__get_packed_size - (const PgQuery__CreateOpClassStmt *message); -size_t pg_query__create_op_class_stmt__pack - (const PgQuery__CreateOpClassStmt *message, - uint8_t *out); -size_t pg_query__create_op_class_stmt__pack_to_buffer - (const PgQuery__CreateOpClassStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateOpClassStmt * - pg_query__create_op_class_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_op_class_stmt__free_unpacked - (PgQuery__CreateOpClassStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateOpFamilyStmt methods */ -void pg_query__create_op_family_stmt__init - (PgQuery__CreateOpFamilyStmt *message); -size_t pg_query__create_op_family_stmt__get_packed_size - (const PgQuery__CreateOpFamilyStmt *message); -size_t pg_query__create_op_family_stmt__pack - (const PgQuery__CreateOpFamilyStmt *message, - uint8_t *out); -size_t pg_query__create_op_family_stmt__pack_to_buffer - (const PgQuery__CreateOpFamilyStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateOpFamilyStmt * - pg_query__create_op_family_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_op_family_stmt__free_unpacked - (PgQuery__CreateOpFamilyStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterOpFamilyStmt methods */ -void pg_query__alter_op_family_stmt__init - (PgQuery__AlterOpFamilyStmt *message); -size_t pg_query__alter_op_family_stmt__get_packed_size - (const PgQuery__AlterOpFamilyStmt *message); -size_t pg_query__alter_op_family_stmt__pack - (const PgQuery__AlterOpFamilyStmt *message, - uint8_t *out); -size_t pg_query__alter_op_family_stmt__pack_to_buffer - (const PgQuery__AlterOpFamilyStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterOpFamilyStmt * - pg_query__alter_op_family_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_op_family_stmt__free_unpacked - (PgQuery__AlterOpFamilyStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__PrepareStmt methods */ -void pg_query__prepare_stmt__init - (PgQuery__PrepareStmt *message); -size_t pg_query__prepare_stmt__get_packed_size - (const PgQuery__PrepareStmt *message); -size_t pg_query__prepare_stmt__pack - (const PgQuery__PrepareStmt *message, - uint8_t *out); -size_t pg_query__prepare_stmt__pack_to_buffer - (const PgQuery__PrepareStmt *message, - ProtobufCBuffer *buffer); -PgQuery__PrepareStmt * - pg_query__prepare_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__prepare_stmt__free_unpacked - (PgQuery__PrepareStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__ExecuteStmt methods */ -void pg_query__execute_stmt__init - (PgQuery__ExecuteStmt *message); -size_t pg_query__execute_stmt__get_packed_size - (const PgQuery__ExecuteStmt *message); -size_t pg_query__execute_stmt__pack - (const PgQuery__ExecuteStmt *message, - uint8_t *out); -size_t pg_query__execute_stmt__pack_to_buffer - (const PgQuery__ExecuteStmt *message, - ProtobufCBuffer *buffer); -PgQuery__ExecuteStmt * - pg_query__execute_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__execute_stmt__free_unpacked - (PgQuery__ExecuteStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__DeallocateStmt methods */ -void pg_query__deallocate_stmt__init - (PgQuery__DeallocateStmt *message); -size_t pg_query__deallocate_stmt__get_packed_size - (const PgQuery__DeallocateStmt *message); -size_t pg_query__deallocate_stmt__pack - (const PgQuery__DeallocateStmt *message, - uint8_t *out); -size_t pg_query__deallocate_stmt__pack_to_buffer - (const PgQuery__DeallocateStmt *message, - ProtobufCBuffer *buffer); -PgQuery__DeallocateStmt * - pg_query__deallocate_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__deallocate_stmt__free_unpacked - (PgQuery__DeallocateStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__DeclareCursorStmt methods */ -void pg_query__declare_cursor_stmt__init - (PgQuery__DeclareCursorStmt *message); -size_t pg_query__declare_cursor_stmt__get_packed_size - (const PgQuery__DeclareCursorStmt *message); -size_t pg_query__declare_cursor_stmt__pack - (const PgQuery__DeclareCursorStmt *message, - uint8_t *out); -size_t pg_query__declare_cursor_stmt__pack_to_buffer - (const PgQuery__DeclareCursorStmt *message, - ProtobufCBuffer *buffer); -PgQuery__DeclareCursorStmt * - pg_query__declare_cursor_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__declare_cursor_stmt__free_unpacked - (PgQuery__DeclareCursorStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateTableSpaceStmt methods */ -void pg_query__create_table_space_stmt__init - (PgQuery__CreateTableSpaceStmt *message); -size_t pg_query__create_table_space_stmt__get_packed_size - (const PgQuery__CreateTableSpaceStmt *message); -size_t pg_query__create_table_space_stmt__pack - (const PgQuery__CreateTableSpaceStmt *message, - uint8_t *out); -size_t pg_query__create_table_space_stmt__pack_to_buffer - (const PgQuery__CreateTableSpaceStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateTableSpaceStmt * - pg_query__create_table_space_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_table_space_stmt__free_unpacked - (PgQuery__CreateTableSpaceStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__DropTableSpaceStmt methods */ -void pg_query__drop_table_space_stmt__init - (PgQuery__DropTableSpaceStmt *message); -size_t pg_query__drop_table_space_stmt__get_packed_size - (const PgQuery__DropTableSpaceStmt *message); -size_t pg_query__drop_table_space_stmt__pack - (const PgQuery__DropTableSpaceStmt *message, - uint8_t *out); -size_t pg_query__drop_table_space_stmt__pack_to_buffer - (const PgQuery__DropTableSpaceStmt *message, - ProtobufCBuffer *buffer); -PgQuery__DropTableSpaceStmt * - pg_query__drop_table_space_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__drop_table_space_stmt__free_unpacked - (PgQuery__DropTableSpaceStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterObjectDependsStmt methods */ -void pg_query__alter_object_depends_stmt__init - (PgQuery__AlterObjectDependsStmt *message); -size_t pg_query__alter_object_depends_stmt__get_packed_size - (const PgQuery__AlterObjectDependsStmt *message); -size_t pg_query__alter_object_depends_stmt__pack - (const PgQuery__AlterObjectDependsStmt *message, - uint8_t *out); -size_t pg_query__alter_object_depends_stmt__pack_to_buffer - (const PgQuery__AlterObjectDependsStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterObjectDependsStmt * - pg_query__alter_object_depends_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_object_depends_stmt__free_unpacked - (PgQuery__AlterObjectDependsStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterObjectSchemaStmt methods */ -void pg_query__alter_object_schema_stmt__init - (PgQuery__AlterObjectSchemaStmt *message); -size_t pg_query__alter_object_schema_stmt__get_packed_size - (const PgQuery__AlterObjectSchemaStmt *message); -size_t pg_query__alter_object_schema_stmt__pack - (const PgQuery__AlterObjectSchemaStmt *message, - uint8_t *out); -size_t pg_query__alter_object_schema_stmt__pack_to_buffer - (const PgQuery__AlterObjectSchemaStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterObjectSchemaStmt * - pg_query__alter_object_schema_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_object_schema_stmt__free_unpacked - (PgQuery__AlterObjectSchemaStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterOwnerStmt methods */ -void pg_query__alter_owner_stmt__init - (PgQuery__AlterOwnerStmt *message); -size_t pg_query__alter_owner_stmt__get_packed_size - (const PgQuery__AlterOwnerStmt *message); -size_t pg_query__alter_owner_stmt__pack - (const PgQuery__AlterOwnerStmt *message, - uint8_t *out); -size_t pg_query__alter_owner_stmt__pack_to_buffer - (const PgQuery__AlterOwnerStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterOwnerStmt * - pg_query__alter_owner_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_owner_stmt__free_unpacked - (PgQuery__AlterOwnerStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterOperatorStmt methods */ -void pg_query__alter_operator_stmt__init - (PgQuery__AlterOperatorStmt *message); -size_t pg_query__alter_operator_stmt__get_packed_size - (const PgQuery__AlterOperatorStmt *message); -size_t pg_query__alter_operator_stmt__pack - (const PgQuery__AlterOperatorStmt *message, - uint8_t *out); -size_t pg_query__alter_operator_stmt__pack_to_buffer - (const PgQuery__AlterOperatorStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterOperatorStmt * - pg_query__alter_operator_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_operator_stmt__free_unpacked - (PgQuery__AlterOperatorStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterTypeStmt methods */ -void pg_query__alter_type_stmt__init - (PgQuery__AlterTypeStmt *message); -size_t pg_query__alter_type_stmt__get_packed_size - (const PgQuery__AlterTypeStmt *message); -size_t pg_query__alter_type_stmt__pack - (const PgQuery__AlterTypeStmt *message, - uint8_t *out); -size_t pg_query__alter_type_stmt__pack_to_buffer - (const PgQuery__AlterTypeStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterTypeStmt * - pg_query__alter_type_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_type_stmt__free_unpacked - (PgQuery__AlterTypeStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__DropOwnedStmt methods */ -void pg_query__drop_owned_stmt__init - (PgQuery__DropOwnedStmt *message); -size_t pg_query__drop_owned_stmt__get_packed_size - (const PgQuery__DropOwnedStmt *message); -size_t pg_query__drop_owned_stmt__pack - (const PgQuery__DropOwnedStmt *message, - uint8_t *out); -size_t pg_query__drop_owned_stmt__pack_to_buffer - (const PgQuery__DropOwnedStmt *message, - ProtobufCBuffer *buffer); -PgQuery__DropOwnedStmt * - pg_query__drop_owned_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__drop_owned_stmt__free_unpacked - (PgQuery__DropOwnedStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__ReassignOwnedStmt methods */ -void pg_query__reassign_owned_stmt__init - (PgQuery__ReassignOwnedStmt *message); -size_t pg_query__reassign_owned_stmt__get_packed_size - (const PgQuery__ReassignOwnedStmt *message); -size_t pg_query__reassign_owned_stmt__pack - (const PgQuery__ReassignOwnedStmt *message, - uint8_t *out); -size_t pg_query__reassign_owned_stmt__pack_to_buffer - (const PgQuery__ReassignOwnedStmt *message, - ProtobufCBuffer *buffer); -PgQuery__ReassignOwnedStmt * - pg_query__reassign_owned_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__reassign_owned_stmt__free_unpacked - (PgQuery__ReassignOwnedStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CompositeTypeStmt methods */ -void pg_query__composite_type_stmt__init - (PgQuery__CompositeTypeStmt *message); -size_t pg_query__composite_type_stmt__get_packed_size - (const PgQuery__CompositeTypeStmt *message); -size_t pg_query__composite_type_stmt__pack - (const PgQuery__CompositeTypeStmt *message, - uint8_t *out); -size_t pg_query__composite_type_stmt__pack_to_buffer - (const PgQuery__CompositeTypeStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CompositeTypeStmt * - pg_query__composite_type_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__composite_type_stmt__free_unpacked - (PgQuery__CompositeTypeStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateEnumStmt methods */ -void pg_query__create_enum_stmt__init - (PgQuery__CreateEnumStmt *message); -size_t pg_query__create_enum_stmt__get_packed_size - (const PgQuery__CreateEnumStmt *message); -size_t pg_query__create_enum_stmt__pack - (const PgQuery__CreateEnumStmt *message, - uint8_t *out); -size_t pg_query__create_enum_stmt__pack_to_buffer - (const PgQuery__CreateEnumStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateEnumStmt * - pg_query__create_enum_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_enum_stmt__free_unpacked - (PgQuery__CreateEnumStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateRangeStmt methods */ -void pg_query__create_range_stmt__init - (PgQuery__CreateRangeStmt *message); -size_t pg_query__create_range_stmt__get_packed_size - (const PgQuery__CreateRangeStmt *message); -size_t pg_query__create_range_stmt__pack - (const PgQuery__CreateRangeStmt *message, - uint8_t *out); -size_t pg_query__create_range_stmt__pack_to_buffer - (const PgQuery__CreateRangeStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateRangeStmt * - pg_query__create_range_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_range_stmt__free_unpacked - (PgQuery__CreateRangeStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterEnumStmt methods */ -void pg_query__alter_enum_stmt__init - (PgQuery__AlterEnumStmt *message); -size_t pg_query__alter_enum_stmt__get_packed_size - (const PgQuery__AlterEnumStmt *message); -size_t pg_query__alter_enum_stmt__pack - (const PgQuery__AlterEnumStmt *message, - uint8_t *out); -size_t pg_query__alter_enum_stmt__pack_to_buffer - (const PgQuery__AlterEnumStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterEnumStmt * - pg_query__alter_enum_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_enum_stmt__free_unpacked - (PgQuery__AlterEnumStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterTSDictionaryStmt methods */ -void pg_query__alter_tsdictionary_stmt__init - (PgQuery__AlterTSDictionaryStmt *message); -size_t pg_query__alter_tsdictionary_stmt__get_packed_size - (const PgQuery__AlterTSDictionaryStmt *message); -size_t pg_query__alter_tsdictionary_stmt__pack - (const PgQuery__AlterTSDictionaryStmt *message, - uint8_t *out); -size_t pg_query__alter_tsdictionary_stmt__pack_to_buffer - (const PgQuery__AlterTSDictionaryStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterTSDictionaryStmt * - pg_query__alter_tsdictionary_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_tsdictionary_stmt__free_unpacked - (PgQuery__AlterTSDictionaryStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterTSConfigurationStmt methods */ -void pg_query__alter_tsconfiguration_stmt__init - (PgQuery__AlterTSConfigurationStmt *message); -size_t pg_query__alter_tsconfiguration_stmt__get_packed_size - (const PgQuery__AlterTSConfigurationStmt *message); -size_t pg_query__alter_tsconfiguration_stmt__pack - (const PgQuery__AlterTSConfigurationStmt *message, - uint8_t *out); -size_t pg_query__alter_tsconfiguration_stmt__pack_to_buffer - (const PgQuery__AlterTSConfigurationStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterTSConfigurationStmt * - pg_query__alter_tsconfiguration_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_tsconfiguration_stmt__free_unpacked - (PgQuery__AlterTSConfigurationStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateFdwStmt methods */ -void pg_query__create_fdw_stmt__init - (PgQuery__CreateFdwStmt *message); -size_t pg_query__create_fdw_stmt__get_packed_size - (const PgQuery__CreateFdwStmt *message); -size_t pg_query__create_fdw_stmt__pack - (const PgQuery__CreateFdwStmt *message, - uint8_t *out); -size_t pg_query__create_fdw_stmt__pack_to_buffer - (const PgQuery__CreateFdwStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateFdwStmt * - pg_query__create_fdw_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_fdw_stmt__free_unpacked - (PgQuery__CreateFdwStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterFdwStmt methods */ -void pg_query__alter_fdw_stmt__init - (PgQuery__AlterFdwStmt *message); -size_t pg_query__alter_fdw_stmt__get_packed_size - (const PgQuery__AlterFdwStmt *message); -size_t pg_query__alter_fdw_stmt__pack - (const PgQuery__AlterFdwStmt *message, - uint8_t *out); -size_t pg_query__alter_fdw_stmt__pack_to_buffer - (const PgQuery__AlterFdwStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterFdwStmt * - pg_query__alter_fdw_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_fdw_stmt__free_unpacked - (PgQuery__AlterFdwStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateForeignServerStmt methods */ -void pg_query__create_foreign_server_stmt__init - (PgQuery__CreateForeignServerStmt *message); -size_t pg_query__create_foreign_server_stmt__get_packed_size - (const PgQuery__CreateForeignServerStmt *message); -size_t pg_query__create_foreign_server_stmt__pack - (const PgQuery__CreateForeignServerStmt *message, - uint8_t *out); -size_t pg_query__create_foreign_server_stmt__pack_to_buffer - (const PgQuery__CreateForeignServerStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateForeignServerStmt * - pg_query__create_foreign_server_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_foreign_server_stmt__free_unpacked - (PgQuery__CreateForeignServerStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterForeignServerStmt methods */ -void pg_query__alter_foreign_server_stmt__init - (PgQuery__AlterForeignServerStmt *message); -size_t pg_query__alter_foreign_server_stmt__get_packed_size - (const PgQuery__AlterForeignServerStmt *message); -size_t pg_query__alter_foreign_server_stmt__pack - (const PgQuery__AlterForeignServerStmt *message, - uint8_t *out); -size_t pg_query__alter_foreign_server_stmt__pack_to_buffer - (const PgQuery__AlterForeignServerStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterForeignServerStmt * - pg_query__alter_foreign_server_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_foreign_server_stmt__free_unpacked - (PgQuery__AlterForeignServerStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateUserMappingStmt methods */ -void pg_query__create_user_mapping_stmt__init - (PgQuery__CreateUserMappingStmt *message); -size_t pg_query__create_user_mapping_stmt__get_packed_size - (const PgQuery__CreateUserMappingStmt *message); -size_t pg_query__create_user_mapping_stmt__pack - (const PgQuery__CreateUserMappingStmt *message, - uint8_t *out); -size_t pg_query__create_user_mapping_stmt__pack_to_buffer - (const PgQuery__CreateUserMappingStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateUserMappingStmt * - pg_query__create_user_mapping_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_user_mapping_stmt__free_unpacked - (PgQuery__CreateUserMappingStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterUserMappingStmt methods */ -void pg_query__alter_user_mapping_stmt__init - (PgQuery__AlterUserMappingStmt *message); -size_t pg_query__alter_user_mapping_stmt__get_packed_size - (const PgQuery__AlterUserMappingStmt *message); -size_t pg_query__alter_user_mapping_stmt__pack - (const PgQuery__AlterUserMappingStmt *message, - uint8_t *out); -size_t pg_query__alter_user_mapping_stmt__pack_to_buffer - (const PgQuery__AlterUserMappingStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterUserMappingStmt * - pg_query__alter_user_mapping_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_user_mapping_stmt__free_unpacked - (PgQuery__AlterUserMappingStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__DropUserMappingStmt methods */ -void pg_query__drop_user_mapping_stmt__init - (PgQuery__DropUserMappingStmt *message); -size_t pg_query__drop_user_mapping_stmt__get_packed_size - (const PgQuery__DropUserMappingStmt *message); -size_t pg_query__drop_user_mapping_stmt__pack - (const PgQuery__DropUserMappingStmt *message, - uint8_t *out); -size_t pg_query__drop_user_mapping_stmt__pack_to_buffer - (const PgQuery__DropUserMappingStmt *message, - ProtobufCBuffer *buffer); -PgQuery__DropUserMappingStmt * - pg_query__drop_user_mapping_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__drop_user_mapping_stmt__free_unpacked - (PgQuery__DropUserMappingStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterTableSpaceOptionsStmt methods */ -void pg_query__alter_table_space_options_stmt__init - (PgQuery__AlterTableSpaceOptionsStmt *message); -size_t pg_query__alter_table_space_options_stmt__get_packed_size - (const PgQuery__AlterTableSpaceOptionsStmt *message); -size_t pg_query__alter_table_space_options_stmt__pack - (const PgQuery__AlterTableSpaceOptionsStmt *message, - uint8_t *out); -size_t pg_query__alter_table_space_options_stmt__pack_to_buffer - (const PgQuery__AlterTableSpaceOptionsStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterTableSpaceOptionsStmt * - pg_query__alter_table_space_options_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_table_space_options_stmt__free_unpacked - (PgQuery__AlterTableSpaceOptionsStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterTableMoveAllStmt methods */ -void pg_query__alter_table_move_all_stmt__init - (PgQuery__AlterTableMoveAllStmt *message); -size_t pg_query__alter_table_move_all_stmt__get_packed_size - (const PgQuery__AlterTableMoveAllStmt *message); -size_t pg_query__alter_table_move_all_stmt__pack - (const PgQuery__AlterTableMoveAllStmt *message, - uint8_t *out); -size_t pg_query__alter_table_move_all_stmt__pack_to_buffer - (const PgQuery__AlterTableMoveAllStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterTableMoveAllStmt * - pg_query__alter_table_move_all_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_table_move_all_stmt__free_unpacked - (PgQuery__AlterTableMoveAllStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__SecLabelStmt methods */ -void pg_query__sec_label_stmt__init - (PgQuery__SecLabelStmt *message); -size_t pg_query__sec_label_stmt__get_packed_size - (const PgQuery__SecLabelStmt *message); -size_t pg_query__sec_label_stmt__pack - (const PgQuery__SecLabelStmt *message, - uint8_t *out); -size_t pg_query__sec_label_stmt__pack_to_buffer - (const PgQuery__SecLabelStmt *message, - ProtobufCBuffer *buffer); -PgQuery__SecLabelStmt * - pg_query__sec_label_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__sec_label_stmt__free_unpacked - (PgQuery__SecLabelStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateForeignTableStmt methods */ -void pg_query__create_foreign_table_stmt__init - (PgQuery__CreateForeignTableStmt *message); -size_t pg_query__create_foreign_table_stmt__get_packed_size - (const PgQuery__CreateForeignTableStmt *message); -size_t pg_query__create_foreign_table_stmt__pack - (const PgQuery__CreateForeignTableStmt *message, - uint8_t *out); -size_t pg_query__create_foreign_table_stmt__pack_to_buffer - (const PgQuery__CreateForeignTableStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateForeignTableStmt * - pg_query__create_foreign_table_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_foreign_table_stmt__free_unpacked - (PgQuery__CreateForeignTableStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__ImportForeignSchemaStmt methods */ -void pg_query__import_foreign_schema_stmt__init - (PgQuery__ImportForeignSchemaStmt *message); -size_t pg_query__import_foreign_schema_stmt__get_packed_size - (const PgQuery__ImportForeignSchemaStmt *message); -size_t pg_query__import_foreign_schema_stmt__pack - (const PgQuery__ImportForeignSchemaStmt *message, - uint8_t *out); -size_t pg_query__import_foreign_schema_stmt__pack_to_buffer - (const PgQuery__ImportForeignSchemaStmt *message, - ProtobufCBuffer *buffer); -PgQuery__ImportForeignSchemaStmt * - pg_query__import_foreign_schema_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__import_foreign_schema_stmt__free_unpacked - (PgQuery__ImportForeignSchemaStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateExtensionStmt methods */ -void pg_query__create_extension_stmt__init - (PgQuery__CreateExtensionStmt *message); -size_t pg_query__create_extension_stmt__get_packed_size - (const PgQuery__CreateExtensionStmt *message); -size_t pg_query__create_extension_stmt__pack - (const PgQuery__CreateExtensionStmt *message, - uint8_t *out); -size_t pg_query__create_extension_stmt__pack_to_buffer - (const PgQuery__CreateExtensionStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateExtensionStmt * - pg_query__create_extension_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_extension_stmt__free_unpacked - (PgQuery__CreateExtensionStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterExtensionStmt methods */ -void pg_query__alter_extension_stmt__init - (PgQuery__AlterExtensionStmt *message); -size_t pg_query__alter_extension_stmt__get_packed_size - (const PgQuery__AlterExtensionStmt *message); -size_t pg_query__alter_extension_stmt__pack - (const PgQuery__AlterExtensionStmt *message, - uint8_t *out); -size_t pg_query__alter_extension_stmt__pack_to_buffer - (const PgQuery__AlterExtensionStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterExtensionStmt * - pg_query__alter_extension_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_extension_stmt__free_unpacked - (PgQuery__AlterExtensionStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterExtensionContentsStmt methods */ -void pg_query__alter_extension_contents_stmt__init - (PgQuery__AlterExtensionContentsStmt *message); -size_t pg_query__alter_extension_contents_stmt__get_packed_size - (const PgQuery__AlterExtensionContentsStmt *message); -size_t pg_query__alter_extension_contents_stmt__pack - (const PgQuery__AlterExtensionContentsStmt *message, - uint8_t *out); -size_t pg_query__alter_extension_contents_stmt__pack_to_buffer - (const PgQuery__AlterExtensionContentsStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterExtensionContentsStmt * - pg_query__alter_extension_contents_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_extension_contents_stmt__free_unpacked - (PgQuery__AlterExtensionContentsStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateEventTrigStmt methods */ -void pg_query__create_event_trig_stmt__init - (PgQuery__CreateEventTrigStmt *message); -size_t pg_query__create_event_trig_stmt__get_packed_size - (const PgQuery__CreateEventTrigStmt *message); -size_t pg_query__create_event_trig_stmt__pack - (const PgQuery__CreateEventTrigStmt *message, - uint8_t *out); -size_t pg_query__create_event_trig_stmt__pack_to_buffer - (const PgQuery__CreateEventTrigStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateEventTrigStmt * - pg_query__create_event_trig_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_event_trig_stmt__free_unpacked - (PgQuery__CreateEventTrigStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterEventTrigStmt methods */ -void pg_query__alter_event_trig_stmt__init - (PgQuery__AlterEventTrigStmt *message); -size_t pg_query__alter_event_trig_stmt__get_packed_size - (const PgQuery__AlterEventTrigStmt *message); -size_t pg_query__alter_event_trig_stmt__pack - (const PgQuery__AlterEventTrigStmt *message, - uint8_t *out); -size_t pg_query__alter_event_trig_stmt__pack_to_buffer - (const PgQuery__AlterEventTrigStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterEventTrigStmt * - pg_query__alter_event_trig_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_event_trig_stmt__free_unpacked - (PgQuery__AlterEventTrigStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__RefreshMatViewStmt methods */ -void pg_query__refresh_mat_view_stmt__init - (PgQuery__RefreshMatViewStmt *message); -size_t pg_query__refresh_mat_view_stmt__get_packed_size - (const PgQuery__RefreshMatViewStmt *message); -size_t pg_query__refresh_mat_view_stmt__pack - (const PgQuery__RefreshMatViewStmt *message, - uint8_t *out); -size_t pg_query__refresh_mat_view_stmt__pack_to_buffer - (const PgQuery__RefreshMatViewStmt *message, - ProtobufCBuffer *buffer); -PgQuery__RefreshMatViewStmt * - pg_query__refresh_mat_view_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__refresh_mat_view_stmt__free_unpacked - (PgQuery__RefreshMatViewStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__ReplicaIdentityStmt methods */ -void pg_query__replica_identity_stmt__init - (PgQuery__ReplicaIdentityStmt *message); -size_t pg_query__replica_identity_stmt__get_packed_size - (const PgQuery__ReplicaIdentityStmt *message); -size_t pg_query__replica_identity_stmt__pack - (const PgQuery__ReplicaIdentityStmt *message, - uint8_t *out); -size_t pg_query__replica_identity_stmt__pack_to_buffer - (const PgQuery__ReplicaIdentityStmt *message, - ProtobufCBuffer *buffer); -PgQuery__ReplicaIdentityStmt * - pg_query__replica_identity_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__replica_identity_stmt__free_unpacked - (PgQuery__ReplicaIdentityStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterSystemStmt methods */ -void pg_query__alter_system_stmt__init - (PgQuery__AlterSystemStmt *message); -size_t pg_query__alter_system_stmt__get_packed_size - (const PgQuery__AlterSystemStmt *message); -size_t pg_query__alter_system_stmt__pack - (const PgQuery__AlterSystemStmt *message, - uint8_t *out); -size_t pg_query__alter_system_stmt__pack_to_buffer - (const PgQuery__AlterSystemStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterSystemStmt * - pg_query__alter_system_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_system_stmt__free_unpacked - (PgQuery__AlterSystemStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreatePolicyStmt methods */ -void pg_query__create_policy_stmt__init - (PgQuery__CreatePolicyStmt *message); -size_t pg_query__create_policy_stmt__get_packed_size - (const PgQuery__CreatePolicyStmt *message); -size_t pg_query__create_policy_stmt__pack - (const PgQuery__CreatePolicyStmt *message, - uint8_t *out); -size_t pg_query__create_policy_stmt__pack_to_buffer - (const PgQuery__CreatePolicyStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreatePolicyStmt * - pg_query__create_policy_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_policy_stmt__free_unpacked - (PgQuery__CreatePolicyStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterPolicyStmt methods */ -void pg_query__alter_policy_stmt__init - (PgQuery__AlterPolicyStmt *message); -size_t pg_query__alter_policy_stmt__get_packed_size - (const PgQuery__AlterPolicyStmt *message); -size_t pg_query__alter_policy_stmt__pack - (const PgQuery__AlterPolicyStmt *message, - uint8_t *out); -size_t pg_query__alter_policy_stmt__pack_to_buffer - (const PgQuery__AlterPolicyStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterPolicyStmt * - pg_query__alter_policy_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_policy_stmt__free_unpacked - (PgQuery__AlterPolicyStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateTransformStmt methods */ -void pg_query__create_transform_stmt__init - (PgQuery__CreateTransformStmt *message); -size_t pg_query__create_transform_stmt__get_packed_size - (const PgQuery__CreateTransformStmt *message); -size_t pg_query__create_transform_stmt__pack - (const PgQuery__CreateTransformStmt *message, - uint8_t *out); -size_t pg_query__create_transform_stmt__pack_to_buffer - (const PgQuery__CreateTransformStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateTransformStmt * - pg_query__create_transform_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_transform_stmt__free_unpacked - (PgQuery__CreateTransformStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateAmStmt methods */ -void pg_query__create_am_stmt__init - (PgQuery__CreateAmStmt *message); -size_t pg_query__create_am_stmt__get_packed_size - (const PgQuery__CreateAmStmt *message); -size_t pg_query__create_am_stmt__pack - (const PgQuery__CreateAmStmt *message, - uint8_t *out); -size_t pg_query__create_am_stmt__pack_to_buffer - (const PgQuery__CreateAmStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateAmStmt * - pg_query__create_am_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_am_stmt__free_unpacked - (PgQuery__CreateAmStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreatePublicationStmt methods */ -void pg_query__create_publication_stmt__init - (PgQuery__CreatePublicationStmt *message); -size_t pg_query__create_publication_stmt__get_packed_size - (const PgQuery__CreatePublicationStmt *message); -size_t pg_query__create_publication_stmt__pack - (const PgQuery__CreatePublicationStmt *message, - uint8_t *out); -size_t pg_query__create_publication_stmt__pack_to_buffer - (const PgQuery__CreatePublicationStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreatePublicationStmt * - pg_query__create_publication_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_publication_stmt__free_unpacked - (PgQuery__CreatePublicationStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterPublicationStmt methods */ -void pg_query__alter_publication_stmt__init - (PgQuery__AlterPublicationStmt *message); -size_t pg_query__alter_publication_stmt__get_packed_size - (const PgQuery__AlterPublicationStmt *message); -size_t pg_query__alter_publication_stmt__pack - (const PgQuery__AlterPublicationStmt *message, - uint8_t *out); -size_t pg_query__alter_publication_stmt__pack_to_buffer - (const PgQuery__AlterPublicationStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterPublicationStmt * - pg_query__alter_publication_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_publication_stmt__free_unpacked - (PgQuery__AlterPublicationStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateSubscriptionStmt methods */ -void pg_query__create_subscription_stmt__init - (PgQuery__CreateSubscriptionStmt *message); -size_t pg_query__create_subscription_stmt__get_packed_size - (const PgQuery__CreateSubscriptionStmt *message); -size_t pg_query__create_subscription_stmt__pack - (const PgQuery__CreateSubscriptionStmt *message, - uint8_t *out); -size_t pg_query__create_subscription_stmt__pack_to_buffer - (const PgQuery__CreateSubscriptionStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateSubscriptionStmt * - pg_query__create_subscription_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_subscription_stmt__free_unpacked - (PgQuery__CreateSubscriptionStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterSubscriptionStmt methods */ -void pg_query__alter_subscription_stmt__init - (PgQuery__AlterSubscriptionStmt *message); -size_t pg_query__alter_subscription_stmt__get_packed_size - (const PgQuery__AlterSubscriptionStmt *message); -size_t pg_query__alter_subscription_stmt__pack - (const PgQuery__AlterSubscriptionStmt *message, - uint8_t *out); -size_t pg_query__alter_subscription_stmt__pack_to_buffer - (const PgQuery__AlterSubscriptionStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterSubscriptionStmt * - pg_query__alter_subscription_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_subscription_stmt__free_unpacked - (PgQuery__AlterSubscriptionStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__DropSubscriptionStmt methods */ -void pg_query__drop_subscription_stmt__init - (PgQuery__DropSubscriptionStmt *message); -size_t pg_query__drop_subscription_stmt__get_packed_size - (const PgQuery__DropSubscriptionStmt *message); -size_t pg_query__drop_subscription_stmt__pack - (const PgQuery__DropSubscriptionStmt *message, - uint8_t *out); -size_t pg_query__drop_subscription_stmt__pack_to_buffer - (const PgQuery__DropSubscriptionStmt *message, - ProtobufCBuffer *buffer); -PgQuery__DropSubscriptionStmt * - pg_query__drop_subscription_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__drop_subscription_stmt__free_unpacked - (PgQuery__DropSubscriptionStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateStatsStmt methods */ -void pg_query__create_stats_stmt__init - (PgQuery__CreateStatsStmt *message); -size_t pg_query__create_stats_stmt__get_packed_size - (const PgQuery__CreateStatsStmt *message); -size_t pg_query__create_stats_stmt__pack - (const PgQuery__CreateStatsStmt *message, - uint8_t *out); -size_t pg_query__create_stats_stmt__pack_to_buffer - (const PgQuery__CreateStatsStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CreateStatsStmt * - pg_query__create_stats_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_stats_stmt__free_unpacked - (PgQuery__CreateStatsStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterCollationStmt methods */ -void pg_query__alter_collation_stmt__init - (PgQuery__AlterCollationStmt *message); -size_t pg_query__alter_collation_stmt__get_packed_size - (const PgQuery__AlterCollationStmt *message); -size_t pg_query__alter_collation_stmt__pack - (const PgQuery__AlterCollationStmt *message, - uint8_t *out); -size_t pg_query__alter_collation_stmt__pack_to_buffer - (const PgQuery__AlterCollationStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterCollationStmt * - pg_query__alter_collation_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_collation_stmt__free_unpacked - (PgQuery__AlterCollationStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__CallStmt methods */ -void pg_query__call_stmt__init - (PgQuery__CallStmt *message); -size_t pg_query__call_stmt__get_packed_size - (const PgQuery__CallStmt *message); -size_t pg_query__call_stmt__pack - (const PgQuery__CallStmt *message, - uint8_t *out); -size_t pg_query__call_stmt__pack_to_buffer - (const PgQuery__CallStmt *message, - ProtobufCBuffer *buffer); -PgQuery__CallStmt * - pg_query__call_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__call_stmt__free_unpacked - (PgQuery__CallStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AlterStatsStmt methods */ -void pg_query__alter_stats_stmt__init - (PgQuery__AlterStatsStmt *message); -size_t pg_query__alter_stats_stmt__get_packed_size - (const PgQuery__AlterStatsStmt *message); -size_t pg_query__alter_stats_stmt__pack - (const PgQuery__AlterStatsStmt *message, - uint8_t *out); -size_t pg_query__alter_stats_stmt__pack_to_buffer - (const PgQuery__AlterStatsStmt *message, - ProtobufCBuffer *buffer); -PgQuery__AlterStatsStmt * - pg_query__alter_stats_stmt__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__alter_stats_stmt__free_unpacked - (PgQuery__AlterStatsStmt *message, - ProtobufCAllocator *allocator); -/* PgQuery__AExpr methods */ -void pg_query__a__expr__init - (PgQuery__AExpr *message); -size_t pg_query__a__expr__get_packed_size - (const PgQuery__AExpr *message); -size_t pg_query__a__expr__pack - (const PgQuery__AExpr *message, - uint8_t *out); -size_t pg_query__a__expr__pack_to_buffer - (const PgQuery__AExpr *message, - ProtobufCBuffer *buffer); -PgQuery__AExpr * - pg_query__a__expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__a__expr__free_unpacked - (PgQuery__AExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__ColumnRef methods */ -void pg_query__column_ref__init - (PgQuery__ColumnRef *message); -size_t pg_query__column_ref__get_packed_size - (const PgQuery__ColumnRef *message); -size_t pg_query__column_ref__pack - (const PgQuery__ColumnRef *message, - uint8_t *out); -size_t pg_query__column_ref__pack_to_buffer - (const PgQuery__ColumnRef *message, - ProtobufCBuffer *buffer); -PgQuery__ColumnRef * - pg_query__column_ref__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__column_ref__free_unpacked - (PgQuery__ColumnRef *message, - ProtobufCAllocator *allocator); -/* PgQuery__ParamRef methods */ -void pg_query__param_ref__init - (PgQuery__ParamRef *message); -size_t pg_query__param_ref__get_packed_size - (const PgQuery__ParamRef *message); -size_t pg_query__param_ref__pack - (const PgQuery__ParamRef *message, - uint8_t *out); -size_t pg_query__param_ref__pack_to_buffer - (const PgQuery__ParamRef *message, - ProtobufCBuffer *buffer); -PgQuery__ParamRef * - pg_query__param_ref__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__param_ref__free_unpacked - (PgQuery__ParamRef *message, - ProtobufCAllocator *allocator); -/* PgQuery__FuncCall methods */ -void pg_query__func_call__init - (PgQuery__FuncCall *message); -size_t pg_query__func_call__get_packed_size - (const PgQuery__FuncCall *message); -size_t pg_query__func_call__pack - (const PgQuery__FuncCall *message, - uint8_t *out); -size_t pg_query__func_call__pack_to_buffer - (const PgQuery__FuncCall *message, - ProtobufCBuffer *buffer); -PgQuery__FuncCall * - pg_query__func_call__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__func_call__free_unpacked - (PgQuery__FuncCall *message, - ProtobufCAllocator *allocator); -/* PgQuery__AStar methods */ -void pg_query__a__star__init - (PgQuery__AStar *message); -size_t pg_query__a__star__get_packed_size - (const PgQuery__AStar *message); -size_t pg_query__a__star__pack - (const PgQuery__AStar *message, - uint8_t *out); -size_t pg_query__a__star__pack_to_buffer - (const PgQuery__AStar *message, - ProtobufCBuffer *buffer); -PgQuery__AStar * - pg_query__a__star__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__a__star__free_unpacked - (PgQuery__AStar *message, - ProtobufCAllocator *allocator); -/* PgQuery__AIndices methods */ -void pg_query__a__indices__init - (PgQuery__AIndices *message); -size_t pg_query__a__indices__get_packed_size - (const PgQuery__AIndices *message); -size_t pg_query__a__indices__pack - (const PgQuery__AIndices *message, - uint8_t *out); -size_t pg_query__a__indices__pack_to_buffer - (const PgQuery__AIndices *message, - ProtobufCBuffer *buffer); -PgQuery__AIndices * - pg_query__a__indices__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__a__indices__free_unpacked - (PgQuery__AIndices *message, - ProtobufCAllocator *allocator); -/* PgQuery__AIndirection methods */ -void pg_query__a__indirection__init - (PgQuery__AIndirection *message); -size_t pg_query__a__indirection__get_packed_size - (const PgQuery__AIndirection *message); -size_t pg_query__a__indirection__pack - (const PgQuery__AIndirection *message, - uint8_t *out); -size_t pg_query__a__indirection__pack_to_buffer - (const PgQuery__AIndirection *message, - ProtobufCBuffer *buffer); -PgQuery__AIndirection * - pg_query__a__indirection__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__a__indirection__free_unpacked - (PgQuery__AIndirection *message, - ProtobufCAllocator *allocator); -/* PgQuery__AArrayExpr methods */ -void pg_query__a__array_expr__init - (PgQuery__AArrayExpr *message); -size_t pg_query__a__array_expr__get_packed_size - (const PgQuery__AArrayExpr *message); -size_t pg_query__a__array_expr__pack - (const PgQuery__AArrayExpr *message, - uint8_t *out); -size_t pg_query__a__array_expr__pack_to_buffer - (const PgQuery__AArrayExpr *message, - ProtobufCBuffer *buffer); -PgQuery__AArrayExpr * - pg_query__a__array_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__a__array_expr__free_unpacked - (PgQuery__AArrayExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__ResTarget methods */ -void pg_query__res_target__init - (PgQuery__ResTarget *message); -size_t pg_query__res_target__get_packed_size - (const PgQuery__ResTarget *message); -size_t pg_query__res_target__pack - (const PgQuery__ResTarget *message, - uint8_t *out); -size_t pg_query__res_target__pack_to_buffer - (const PgQuery__ResTarget *message, - ProtobufCBuffer *buffer); -PgQuery__ResTarget * - pg_query__res_target__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__res_target__free_unpacked - (PgQuery__ResTarget *message, - ProtobufCAllocator *allocator); -/* PgQuery__MultiAssignRef methods */ -void pg_query__multi_assign_ref__init - (PgQuery__MultiAssignRef *message); -size_t pg_query__multi_assign_ref__get_packed_size - (const PgQuery__MultiAssignRef *message); -size_t pg_query__multi_assign_ref__pack - (const PgQuery__MultiAssignRef *message, - uint8_t *out); -size_t pg_query__multi_assign_ref__pack_to_buffer - (const PgQuery__MultiAssignRef *message, - ProtobufCBuffer *buffer); -PgQuery__MultiAssignRef * - pg_query__multi_assign_ref__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__multi_assign_ref__free_unpacked - (PgQuery__MultiAssignRef *message, - ProtobufCAllocator *allocator); -/* PgQuery__TypeCast methods */ -void pg_query__type_cast__init - (PgQuery__TypeCast *message); -size_t pg_query__type_cast__get_packed_size - (const PgQuery__TypeCast *message); -size_t pg_query__type_cast__pack - (const PgQuery__TypeCast *message, - uint8_t *out); -size_t pg_query__type_cast__pack_to_buffer - (const PgQuery__TypeCast *message, - ProtobufCBuffer *buffer); -PgQuery__TypeCast * - pg_query__type_cast__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__type_cast__free_unpacked - (PgQuery__TypeCast *message, - ProtobufCAllocator *allocator); -/* PgQuery__CollateClause methods */ -void pg_query__collate_clause__init - (PgQuery__CollateClause *message); -size_t pg_query__collate_clause__get_packed_size - (const PgQuery__CollateClause *message); -size_t pg_query__collate_clause__pack - (const PgQuery__CollateClause *message, - uint8_t *out); -size_t pg_query__collate_clause__pack_to_buffer - (const PgQuery__CollateClause *message, - ProtobufCBuffer *buffer); -PgQuery__CollateClause * - pg_query__collate_clause__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__collate_clause__free_unpacked - (PgQuery__CollateClause *message, - ProtobufCAllocator *allocator); -/* PgQuery__SortBy methods */ -void pg_query__sort_by__init - (PgQuery__SortBy *message); -size_t pg_query__sort_by__get_packed_size - (const PgQuery__SortBy *message); -size_t pg_query__sort_by__pack - (const PgQuery__SortBy *message, - uint8_t *out); -size_t pg_query__sort_by__pack_to_buffer - (const PgQuery__SortBy *message, - ProtobufCBuffer *buffer); -PgQuery__SortBy * - pg_query__sort_by__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__sort_by__free_unpacked - (PgQuery__SortBy *message, - ProtobufCAllocator *allocator); -/* PgQuery__WindowDef methods */ -void pg_query__window_def__init - (PgQuery__WindowDef *message); -size_t pg_query__window_def__get_packed_size - (const PgQuery__WindowDef *message); -size_t pg_query__window_def__pack - (const PgQuery__WindowDef *message, - uint8_t *out); -size_t pg_query__window_def__pack_to_buffer - (const PgQuery__WindowDef *message, - ProtobufCBuffer *buffer); -PgQuery__WindowDef * - pg_query__window_def__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__window_def__free_unpacked - (PgQuery__WindowDef *message, - ProtobufCAllocator *allocator); -/* PgQuery__RangeSubselect methods */ -void pg_query__range_subselect__init - (PgQuery__RangeSubselect *message); -size_t pg_query__range_subselect__get_packed_size - (const PgQuery__RangeSubselect *message); -size_t pg_query__range_subselect__pack - (const PgQuery__RangeSubselect *message, - uint8_t *out); -size_t pg_query__range_subselect__pack_to_buffer - (const PgQuery__RangeSubselect *message, - ProtobufCBuffer *buffer); -PgQuery__RangeSubselect * - pg_query__range_subselect__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__range_subselect__free_unpacked - (PgQuery__RangeSubselect *message, - ProtobufCAllocator *allocator); -/* PgQuery__RangeFunction methods */ -void pg_query__range_function__init - (PgQuery__RangeFunction *message); -size_t pg_query__range_function__get_packed_size - (const PgQuery__RangeFunction *message); -size_t pg_query__range_function__pack - (const PgQuery__RangeFunction *message, - uint8_t *out); -size_t pg_query__range_function__pack_to_buffer - (const PgQuery__RangeFunction *message, - ProtobufCBuffer *buffer); -PgQuery__RangeFunction * - pg_query__range_function__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__range_function__free_unpacked - (PgQuery__RangeFunction *message, - ProtobufCAllocator *allocator); -/* PgQuery__RangeTableSample methods */ -void pg_query__range_table_sample__init - (PgQuery__RangeTableSample *message); -size_t pg_query__range_table_sample__get_packed_size - (const PgQuery__RangeTableSample *message); -size_t pg_query__range_table_sample__pack - (const PgQuery__RangeTableSample *message, - uint8_t *out); -size_t pg_query__range_table_sample__pack_to_buffer - (const PgQuery__RangeTableSample *message, - ProtobufCBuffer *buffer); -PgQuery__RangeTableSample * - pg_query__range_table_sample__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__range_table_sample__free_unpacked - (PgQuery__RangeTableSample *message, - ProtobufCAllocator *allocator); -/* PgQuery__RangeTableFunc methods */ -void pg_query__range_table_func__init - (PgQuery__RangeTableFunc *message); -size_t pg_query__range_table_func__get_packed_size - (const PgQuery__RangeTableFunc *message); -size_t pg_query__range_table_func__pack - (const PgQuery__RangeTableFunc *message, - uint8_t *out); -size_t pg_query__range_table_func__pack_to_buffer - (const PgQuery__RangeTableFunc *message, - ProtobufCBuffer *buffer); -PgQuery__RangeTableFunc * - pg_query__range_table_func__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__range_table_func__free_unpacked - (PgQuery__RangeTableFunc *message, - ProtobufCAllocator *allocator); -/* PgQuery__RangeTableFuncCol methods */ -void pg_query__range_table_func_col__init - (PgQuery__RangeTableFuncCol *message); -size_t pg_query__range_table_func_col__get_packed_size - (const PgQuery__RangeTableFuncCol *message); -size_t pg_query__range_table_func_col__pack - (const PgQuery__RangeTableFuncCol *message, - uint8_t *out); -size_t pg_query__range_table_func_col__pack_to_buffer - (const PgQuery__RangeTableFuncCol *message, - ProtobufCBuffer *buffer); -PgQuery__RangeTableFuncCol * - pg_query__range_table_func_col__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__range_table_func_col__free_unpacked - (PgQuery__RangeTableFuncCol *message, - ProtobufCAllocator *allocator); -/* PgQuery__TypeName methods */ -void pg_query__type_name__init - (PgQuery__TypeName *message); -size_t pg_query__type_name__get_packed_size - (const PgQuery__TypeName *message); -size_t pg_query__type_name__pack - (const PgQuery__TypeName *message, - uint8_t *out); -size_t pg_query__type_name__pack_to_buffer - (const PgQuery__TypeName *message, - ProtobufCBuffer *buffer); -PgQuery__TypeName * - pg_query__type_name__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__type_name__free_unpacked - (PgQuery__TypeName *message, - ProtobufCAllocator *allocator); -/* PgQuery__ColumnDef methods */ -void pg_query__column_def__init - (PgQuery__ColumnDef *message); -size_t pg_query__column_def__get_packed_size - (const PgQuery__ColumnDef *message); -size_t pg_query__column_def__pack - (const PgQuery__ColumnDef *message, - uint8_t *out); -size_t pg_query__column_def__pack_to_buffer - (const PgQuery__ColumnDef *message, - ProtobufCBuffer *buffer); -PgQuery__ColumnDef * - pg_query__column_def__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__column_def__free_unpacked - (PgQuery__ColumnDef *message, - ProtobufCAllocator *allocator); -/* PgQuery__IndexElem methods */ -void pg_query__index_elem__init - (PgQuery__IndexElem *message); -size_t pg_query__index_elem__get_packed_size - (const PgQuery__IndexElem *message); -size_t pg_query__index_elem__pack - (const PgQuery__IndexElem *message, - uint8_t *out); -size_t pg_query__index_elem__pack_to_buffer - (const PgQuery__IndexElem *message, - ProtobufCBuffer *buffer); -PgQuery__IndexElem * - pg_query__index_elem__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__index_elem__free_unpacked - (PgQuery__IndexElem *message, - ProtobufCAllocator *allocator); -/* PgQuery__StatsElem methods */ -void pg_query__stats_elem__init - (PgQuery__StatsElem *message); -size_t pg_query__stats_elem__get_packed_size - (const PgQuery__StatsElem *message); -size_t pg_query__stats_elem__pack - (const PgQuery__StatsElem *message, - uint8_t *out); -size_t pg_query__stats_elem__pack_to_buffer - (const PgQuery__StatsElem *message, - ProtobufCBuffer *buffer); -PgQuery__StatsElem * - pg_query__stats_elem__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__stats_elem__free_unpacked - (PgQuery__StatsElem *message, - ProtobufCAllocator *allocator); -/* PgQuery__Constraint methods */ -void pg_query__constraint__init - (PgQuery__Constraint *message); -size_t pg_query__constraint__get_packed_size - (const PgQuery__Constraint *message); -size_t pg_query__constraint__pack - (const PgQuery__Constraint *message, - uint8_t *out); -size_t pg_query__constraint__pack_to_buffer - (const PgQuery__Constraint *message, - ProtobufCBuffer *buffer); -PgQuery__Constraint * - pg_query__constraint__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__constraint__free_unpacked - (PgQuery__Constraint *message, - ProtobufCAllocator *allocator); -/* PgQuery__DefElem methods */ -void pg_query__def_elem__init - (PgQuery__DefElem *message); -size_t pg_query__def_elem__get_packed_size - (const PgQuery__DefElem *message); -size_t pg_query__def_elem__pack - (const PgQuery__DefElem *message, - uint8_t *out); -size_t pg_query__def_elem__pack_to_buffer - (const PgQuery__DefElem *message, - ProtobufCBuffer *buffer); -PgQuery__DefElem * - pg_query__def_elem__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__def_elem__free_unpacked - (PgQuery__DefElem *message, - ProtobufCAllocator *allocator); -/* PgQuery__RangeTblEntry methods */ -void pg_query__range_tbl_entry__init - (PgQuery__RangeTblEntry *message); -size_t pg_query__range_tbl_entry__get_packed_size - (const PgQuery__RangeTblEntry *message); -size_t pg_query__range_tbl_entry__pack - (const PgQuery__RangeTblEntry *message, - uint8_t *out); -size_t pg_query__range_tbl_entry__pack_to_buffer - (const PgQuery__RangeTblEntry *message, - ProtobufCBuffer *buffer); -PgQuery__RangeTblEntry * - pg_query__range_tbl_entry__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__range_tbl_entry__free_unpacked - (PgQuery__RangeTblEntry *message, - ProtobufCAllocator *allocator); -/* PgQuery__RangeTblFunction methods */ -void pg_query__range_tbl_function__init - (PgQuery__RangeTblFunction *message); -size_t pg_query__range_tbl_function__get_packed_size - (const PgQuery__RangeTblFunction *message); -size_t pg_query__range_tbl_function__pack - (const PgQuery__RangeTblFunction *message, - uint8_t *out); -size_t pg_query__range_tbl_function__pack_to_buffer - (const PgQuery__RangeTblFunction *message, - ProtobufCBuffer *buffer); -PgQuery__RangeTblFunction * - pg_query__range_tbl_function__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__range_tbl_function__free_unpacked - (PgQuery__RangeTblFunction *message, - ProtobufCAllocator *allocator); -/* PgQuery__TableSampleClause methods */ -void pg_query__table_sample_clause__init - (PgQuery__TableSampleClause *message); -size_t pg_query__table_sample_clause__get_packed_size - (const PgQuery__TableSampleClause *message); -size_t pg_query__table_sample_clause__pack - (const PgQuery__TableSampleClause *message, - uint8_t *out); -size_t pg_query__table_sample_clause__pack_to_buffer - (const PgQuery__TableSampleClause *message, - ProtobufCBuffer *buffer); -PgQuery__TableSampleClause * - pg_query__table_sample_clause__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__table_sample_clause__free_unpacked - (PgQuery__TableSampleClause *message, - ProtobufCAllocator *allocator); -/* PgQuery__WithCheckOption methods */ -void pg_query__with_check_option__init - (PgQuery__WithCheckOption *message); -size_t pg_query__with_check_option__get_packed_size - (const PgQuery__WithCheckOption *message); -size_t pg_query__with_check_option__pack - (const PgQuery__WithCheckOption *message, - uint8_t *out); -size_t pg_query__with_check_option__pack_to_buffer - (const PgQuery__WithCheckOption *message, - ProtobufCBuffer *buffer); -PgQuery__WithCheckOption * - pg_query__with_check_option__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__with_check_option__free_unpacked - (PgQuery__WithCheckOption *message, - ProtobufCAllocator *allocator); -/* PgQuery__SortGroupClause methods */ -void pg_query__sort_group_clause__init - (PgQuery__SortGroupClause *message); -size_t pg_query__sort_group_clause__get_packed_size - (const PgQuery__SortGroupClause *message); -size_t pg_query__sort_group_clause__pack - (const PgQuery__SortGroupClause *message, - uint8_t *out); -size_t pg_query__sort_group_clause__pack_to_buffer - (const PgQuery__SortGroupClause *message, - ProtobufCBuffer *buffer); -PgQuery__SortGroupClause * - pg_query__sort_group_clause__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__sort_group_clause__free_unpacked - (PgQuery__SortGroupClause *message, - ProtobufCAllocator *allocator); -/* PgQuery__GroupingSet methods */ -void pg_query__grouping_set__init - (PgQuery__GroupingSet *message); -size_t pg_query__grouping_set__get_packed_size - (const PgQuery__GroupingSet *message); -size_t pg_query__grouping_set__pack - (const PgQuery__GroupingSet *message, - uint8_t *out); -size_t pg_query__grouping_set__pack_to_buffer - (const PgQuery__GroupingSet *message, - ProtobufCBuffer *buffer); -PgQuery__GroupingSet * - pg_query__grouping_set__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__grouping_set__free_unpacked - (PgQuery__GroupingSet *message, - ProtobufCAllocator *allocator); -/* PgQuery__WindowClause methods */ -void pg_query__window_clause__init - (PgQuery__WindowClause *message); -size_t pg_query__window_clause__get_packed_size - (const PgQuery__WindowClause *message); -size_t pg_query__window_clause__pack - (const PgQuery__WindowClause *message, - uint8_t *out); -size_t pg_query__window_clause__pack_to_buffer - (const PgQuery__WindowClause *message, - ProtobufCBuffer *buffer); -PgQuery__WindowClause * - pg_query__window_clause__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__window_clause__free_unpacked - (PgQuery__WindowClause *message, - ProtobufCAllocator *allocator); -/* PgQuery__ObjectWithArgs methods */ -void pg_query__object_with_args__init - (PgQuery__ObjectWithArgs *message); -size_t pg_query__object_with_args__get_packed_size - (const PgQuery__ObjectWithArgs *message); -size_t pg_query__object_with_args__pack - (const PgQuery__ObjectWithArgs *message, - uint8_t *out); -size_t pg_query__object_with_args__pack_to_buffer - (const PgQuery__ObjectWithArgs *message, - ProtobufCBuffer *buffer); -PgQuery__ObjectWithArgs * - pg_query__object_with_args__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__object_with_args__free_unpacked - (PgQuery__ObjectWithArgs *message, - ProtobufCAllocator *allocator); -/* PgQuery__AccessPriv methods */ -void pg_query__access_priv__init - (PgQuery__AccessPriv *message); -size_t pg_query__access_priv__get_packed_size - (const PgQuery__AccessPriv *message); -size_t pg_query__access_priv__pack - (const PgQuery__AccessPriv *message, - uint8_t *out); -size_t pg_query__access_priv__pack_to_buffer - (const PgQuery__AccessPriv *message, - ProtobufCBuffer *buffer); -PgQuery__AccessPriv * - pg_query__access_priv__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__access_priv__free_unpacked - (PgQuery__AccessPriv *message, - ProtobufCAllocator *allocator); -/* PgQuery__CreateOpClassItem methods */ -void pg_query__create_op_class_item__init - (PgQuery__CreateOpClassItem *message); -size_t pg_query__create_op_class_item__get_packed_size - (const PgQuery__CreateOpClassItem *message); -size_t pg_query__create_op_class_item__pack - (const PgQuery__CreateOpClassItem *message, - uint8_t *out); -size_t pg_query__create_op_class_item__pack_to_buffer - (const PgQuery__CreateOpClassItem *message, - ProtobufCBuffer *buffer); -PgQuery__CreateOpClassItem * - pg_query__create_op_class_item__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__create_op_class_item__free_unpacked - (PgQuery__CreateOpClassItem *message, - ProtobufCAllocator *allocator); -/* PgQuery__TableLikeClause methods */ -void pg_query__table_like_clause__init - (PgQuery__TableLikeClause *message); -size_t pg_query__table_like_clause__get_packed_size - (const PgQuery__TableLikeClause *message); -size_t pg_query__table_like_clause__pack - (const PgQuery__TableLikeClause *message, - uint8_t *out); -size_t pg_query__table_like_clause__pack_to_buffer - (const PgQuery__TableLikeClause *message, - ProtobufCBuffer *buffer); -PgQuery__TableLikeClause * - pg_query__table_like_clause__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__table_like_clause__free_unpacked - (PgQuery__TableLikeClause *message, - ProtobufCAllocator *allocator); -/* PgQuery__FunctionParameter methods */ -void pg_query__function_parameter__init - (PgQuery__FunctionParameter *message); -size_t pg_query__function_parameter__get_packed_size - (const PgQuery__FunctionParameter *message); -size_t pg_query__function_parameter__pack - (const PgQuery__FunctionParameter *message, - uint8_t *out); -size_t pg_query__function_parameter__pack_to_buffer - (const PgQuery__FunctionParameter *message, - ProtobufCBuffer *buffer); -PgQuery__FunctionParameter * - pg_query__function_parameter__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__function_parameter__free_unpacked - (PgQuery__FunctionParameter *message, - ProtobufCAllocator *allocator); -/* PgQuery__LockingClause methods */ -void pg_query__locking_clause__init - (PgQuery__LockingClause *message); -size_t pg_query__locking_clause__get_packed_size - (const PgQuery__LockingClause *message); -size_t pg_query__locking_clause__pack - (const PgQuery__LockingClause *message, - uint8_t *out); -size_t pg_query__locking_clause__pack_to_buffer - (const PgQuery__LockingClause *message, - ProtobufCBuffer *buffer); -PgQuery__LockingClause * - pg_query__locking_clause__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__locking_clause__free_unpacked - (PgQuery__LockingClause *message, - ProtobufCAllocator *allocator); -/* PgQuery__RowMarkClause methods */ -void pg_query__row_mark_clause__init - (PgQuery__RowMarkClause *message); -size_t pg_query__row_mark_clause__get_packed_size - (const PgQuery__RowMarkClause *message); -size_t pg_query__row_mark_clause__pack - (const PgQuery__RowMarkClause *message, - uint8_t *out); -size_t pg_query__row_mark_clause__pack_to_buffer - (const PgQuery__RowMarkClause *message, - ProtobufCBuffer *buffer); -PgQuery__RowMarkClause * - pg_query__row_mark_clause__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__row_mark_clause__free_unpacked - (PgQuery__RowMarkClause *message, - ProtobufCAllocator *allocator); -/* PgQuery__XmlSerialize methods */ -void pg_query__xml_serialize__init - (PgQuery__XmlSerialize *message); -size_t pg_query__xml_serialize__get_packed_size - (const PgQuery__XmlSerialize *message); -size_t pg_query__xml_serialize__pack - (const PgQuery__XmlSerialize *message, - uint8_t *out); -size_t pg_query__xml_serialize__pack_to_buffer - (const PgQuery__XmlSerialize *message, - ProtobufCBuffer *buffer); -PgQuery__XmlSerialize * - pg_query__xml_serialize__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__xml_serialize__free_unpacked - (PgQuery__XmlSerialize *message, - ProtobufCAllocator *allocator); -/* PgQuery__WithClause methods */ -void pg_query__with_clause__init - (PgQuery__WithClause *message); -size_t pg_query__with_clause__get_packed_size - (const PgQuery__WithClause *message); -size_t pg_query__with_clause__pack - (const PgQuery__WithClause *message, - uint8_t *out); -size_t pg_query__with_clause__pack_to_buffer - (const PgQuery__WithClause *message, - ProtobufCBuffer *buffer); -PgQuery__WithClause * - pg_query__with_clause__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__with_clause__free_unpacked - (PgQuery__WithClause *message, - ProtobufCAllocator *allocator); -/* PgQuery__InferClause methods */ -void pg_query__infer_clause__init - (PgQuery__InferClause *message); -size_t pg_query__infer_clause__get_packed_size - (const PgQuery__InferClause *message); -size_t pg_query__infer_clause__pack - (const PgQuery__InferClause *message, - uint8_t *out); -size_t pg_query__infer_clause__pack_to_buffer - (const PgQuery__InferClause *message, - ProtobufCBuffer *buffer); -PgQuery__InferClause * - pg_query__infer_clause__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__infer_clause__free_unpacked - (PgQuery__InferClause *message, - ProtobufCAllocator *allocator); -/* PgQuery__OnConflictClause methods */ -void pg_query__on_conflict_clause__init - (PgQuery__OnConflictClause *message); -size_t pg_query__on_conflict_clause__get_packed_size - (const PgQuery__OnConflictClause *message); -size_t pg_query__on_conflict_clause__pack - (const PgQuery__OnConflictClause *message, - uint8_t *out); -size_t pg_query__on_conflict_clause__pack_to_buffer - (const PgQuery__OnConflictClause *message, - ProtobufCBuffer *buffer); -PgQuery__OnConflictClause * - pg_query__on_conflict_clause__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__on_conflict_clause__free_unpacked - (PgQuery__OnConflictClause *message, - ProtobufCAllocator *allocator); -/* PgQuery__CTESearchClause methods */ -void pg_query__ctesearch_clause__init - (PgQuery__CTESearchClause *message); -size_t pg_query__ctesearch_clause__get_packed_size - (const PgQuery__CTESearchClause *message); -size_t pg_query__ctesearch_clause__pack - (const PgQuery__CTESearchClause *message, - uint8_t *out); -size_t pg_query__ctesearch_clause__pack_to_buffer - (const PgQuery__CTESearchClause *message, - ProtobufCBuffer *buffer); -PgQuery__CTESearchClause * - pg_query__ctesearch_clause__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__ctesearch_clause__free_unpacked - (PgQuery__CTESearchClause *message, - ProtobufCAllocator *allocator); -/* PgQuery__CTECycleClause methods */ -void pg_query__ctecycle_clause__init - (PgQuery__CTECycleClause *message); -size_t pg_query__ctecycle_clause__get_packed_size - (const PgQuery__CTECycleClause *message); -size_t pg_query__ctecycle_clause__pack - (const PgQuery__CTECycleClause *message, - uint8_t *out); -size_t pg_query__ctecycle_clause__pack_to_buffer - (const PgQuery__CTECycleClause *message, - ProtobufCBuffer *buffer); -PgQuery__CTECycleClause * - pg_query__ctecycle_clause__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__ctecycle_clause__free_unpacked - (PgQuery__CTECycleClause *message, - ProtobufCAllocator *allocator); -/* PgQuery__CommonTableExpr methods */ -void pg_query__common_table_expr__init - (PgQuery__CommonTableExpr *message); -size_t pg_query__common_table_expr__get_packed_size - (const PgQuery__CommonTableExpr *message); -size_t pg_query__common_table_expr__pack - (const PgQuery__CommonTableExpr *message, - uint8_t *out); -size_t pg_query__common_table_expr__pack_to_buffer - (const PgQuery__CommonTableExpr *message, - ProtobufCBuffer *buffer); -PgQuery__CommonTableExpr * - pg_query__common_table_expr__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__common_table_expr__free_unpacked - (PgQuery__CommonTableExpr *message, - ProtobufCAllocator *allocator); -/* PgQuery__MergeWhenClause methods */ -void pg_query__merge_when_clause__init - (PgQuery__MergeWhenClause *message); -size_t pg_query__merge_when_clause__get_packed_size - (const PgQuery__MergeWhenClause *message); -size_t pg_query__merge_when_clause__pack - (const PgQuery__MergeWhenClause *message, - uint8_t *out); -size_t pg_query__merge_when_clause__pack_to_buffer - (const PgQuery__MergeWhenClause *message, - ProtobufCBuffer *buffer); -PgQuery__MergeWhenClause * - pg_query__merge_when_clause__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__merge_when_clause__free_unpacked - (PgQuery__MergeWhenClause *message, - ProtobufCAllocator *allocator); -/* PgQuery__RoleSpec methods */ -void pg_query__role_spec__init - (PgQuery__RoleSpec *message); -size_t pg_query__role_spec__get_packed_size - (const PgQuery__RoleSpec *message); -size_t pg_query__role_spec__pack - (const PgQuery__RoleSpec *message, - uint8_t *out); -size_t pg_query__role_spec__pack_to_buffer - (const PgQuery__RoleSpec *message, - ProtobufCBuffer *buffer); -PgQuery__RoleSpec * - pg_query__role_spec__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__role_spec__free_unpacked - (PgQuery__RoleSpec *message, - ProtobufCAllocator *allocator); -/* PgQuery__TriggerTransition methods */ -void pg_query__trigger_transition__init - (PgQuery__TriggerTransition *message); -size_t pg_query__trigger_transition__get_packed_size - (const PgQuery__TriggerTransition *message); -size_t pg_query__trigger_transition__pack - (const PgQuery__TriggerTransition *message, - uint8_t *out); -size_t pg_query__trigger_transition__pack_to_buffer - (const PgQuery__TriggerTransition *message, - ProtobufCBuffer *buffer); -PgQuery__TriggerTransition * - pg_query__trigger_transition__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__trigger_transition__free_unpacked - (PgQuery__TriggerTransition *message, - ProtobufCAllocator *allocator); -/* PgQuery__PartitionElem methods */ -void pg_query__partition_elem__init - (PgQuery__PartitionElem *message); -size_t pg_query__partition_elem__get_packed_size - (const PgQuery__PartitionElem *message); -size_t pg_query__partition_elem__pack - (const PgQuery__PartitionElem *message, - uint8_t *out); -size_t pg_query__partition_elem__pack_to_buffer - (const PgQuery__PartitionElem *message, - ProtobufCBuffer *buffer); -PgQuery__PartitionElem * - pg_query__partition_elem__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__partition_elem__free_unpacked - (PgQuery__PartitionElem *message, - ProtobufCAllocator *allocator); -/* PgQuery__PartitionSpec methods */ -void pg_query__partition_spec__init - (PgQuery__PartitionSpec *message); -size_t pg_query__partition_spec__get_packed_size - (const PgQuery__PartitionSpec *message); -size_t pg_query__partition_spec__pack - (const PgQuery__PartitionSpec *message, - uint8_t *out); -size_t pg_query__partition_spec__pack_to_buffer - (const PgQuery__PartitionSpec *message, - ProtobufCBuffer *buffer); -PgQuery__PartitionSpec * - pg_query__partition_spec__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__partition_spec__free_unpacked - (PgQuery__PartitionSpec *message, - ProtobufCAllocator *allocator); -/* PgQuery__PartitionBoundSpec methods */ -void pg_query__partition_bound_spec__init - (PgQuery__PartitionBoundSpec *message); -size_t pg_query__partition_bound_spec__get_packed_size - (const PgQuery__PartitionBoundSpec *message); -size_t pg_query__partition_bound_spec__pack - (const PgQuery__PartitionBoundSpec *message, - uint8_t *out); -size_t pg_query__partition_bound_spec__pack_to_buffer - (const PgQuery__PartitionBoundSpec *message, - ProtobufCBuffer *buffer); -PgQuery__PartitionBoundSpec * - pg_query__partition_bound_spec__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__partition_bound_spec__free_unpacked - (PgQuery__PartitionBoundSpec *message, - ProtobufCAllocator *allocator); -/* PgQuery__PartitionRangeDatum methods */ -void pg_query__partition_range_datum__init - (PgQuery__PartitionRangeDatum *message); -size_t pg_query__partition_range_datum__get_packed_size - (const PgQuery__PartitionRangeDatum *message); -size_t pg_query__partition_range_datum__pack - (const PgQuery__PartitionRangeDatum *message, - uint8_t *out); -size_t pg_query__partition_range_datum__pack_to_buffer - (const PgQuery__PartitionRangeDatum *message, - ProtobufCBuffer *buffer); -PgQuery__PartitionRangeDatum * - pg_query__partition_range_datum__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__partition_range_datum__free_unpacked - (PgQuery__PartitionRangeDatum *message, - ProtobufCAllocator *allocator); -/* PgQuery__PartitionCmd methods */ -void pg_query__partition_cmd__init - (PgQuery__PartitionCmd *message); -size_t pg_query__partition_cmd__get_packed_size - (const PgQuery__PartitionCmd *message); -size_t pg_query__partition_cmd__pack - (const PgQuery__PartitionCmd *message, - uint8_t *out); -size_t pg_query__partition_cmd__pack_to_buffer - (const PgQuery__PartitionCmd *message, - ProtobufCBuffer *buffer); -PgQuery__PartitionCmd * - pg_query__partition_cmd__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__partition_cmd__free_unpacked - (PgQuery__PartitionCmd *message, - ProtobufCAllocator *allocator); -/* PgQuery__VacuumRelation methods */ -void pg_query__vacuum_relation__init - (PgQuery__VacuumRelation *message); -size_t pg_query__vacuum_relation__get_packed_size - (const PgQuery__VacuumRelation *message); -size_t pg_query__vacuum_relation__pack - (const PgQuery__VacuumRelation *message, - uint8_t *out); -size_t pg_query__vacuum_relation__pack_to_buffer - (const PgQuery__VacuumRelation *message, - ProtobufCBuffer *buffer); -PgQuery__VacuumRelation * - pg_query__vacuum_relation__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__vacuum_relation__free_unpacked - (PgQuery__VacuumRelation *message, - ProtobufCAllocator *allocator); -/* PgQuery__PublicationObjSpec methods */ -void pg_query__publication_obj_spec__init - (PgQuery__PublicationObjSpec *message); -size_t pg_query__publication_obj_spec__get_packed_size - (const PgQuery__PublicationObjSpec *message); -size_t pg_query__publication_obj_spec__pack - (const PgQuery__PublicationObjSpec *message, - uint8_t *out); -size_t pg_query__publication_obj_spec__pack_to_buffer - (const PgQuery__PublicationObjSpec *message, - ProtobufCBuffer *buffer); -PgQuery__PublicationObjSpec * - pg_query__publication_obj_spec__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__publication_obj_spec__free_unpacked - (PgQuery__PublicationObjSpec *message, - ProtobufCAllocator *allocator); -/* PgQuery__PublicationTable methods */ -void pg_query__publication_table__init - (PgQuery__PublicationTable *message); -size_t pg_query__publication_table__get_packed_size - (const PgQuery__PublicationTable *message); -size_t pg_query__publication_table__pack - (const PgQuery__PublicationTable *message, - uint8_t *out); -size_t pg_query__publication_table__pack_to_buffer - (const PgQuery__PublicationTable *message, - ProtobufCBuffer *buffer); -PgQuery__PublicationTable * - pg_query__publication_table__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__publication_table__free_unpacked - (PgQuery__PublicationTable *message, - ProtobufCAllocator *allocator); -/* PgQuery__InlineCodeBlock methods */ -void pg_query__inline_code_block__init - (PgQuery__InlineCodeBlock *message); -size_t pg_query__inline_code_block__get_packed_size - (const PgQuery__InlineCodeBlock *message); -size_t pg_query__inline_code_block__pack - (const PgQuery__InlineCodeBlock *message, - uint8_t *out); -size_t pg_query__inline_code_block__pack_to_buffer - (const PgQuery__InlineCodeBlock *message, - ProtobufCBuffer *buffer); -PgQuery__InlineCodeBlock * - pg_query__inline_code_block__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__inline_code_block__free_unpacked - (PgQuery__InlineCodeBlock *message, - ProtobufCAllocator *allocator); -/* PgQuery__CallContext methods */ -void pg_query__call_context__init - (PgQuery__CallContext *message); -size_t pg_query__call_context__get_packed_size - (const PgQuery__CallContext *message); -size_t pg_query__call_context__pack - (const PgQuery__CallContext *message, - uint8_t *out); -size_t pg_query__call_context__pack_to_buffer - (const PgQuery__CallContext *message, - ProtobufCBuffer *buffer); -PgQuery__CallContext * - pg_query__call_context__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__call_context__free_unpacked - (PgQuery__CallContext *message, - ProtobufCAllocator *allocator); -/* PgQuery__ScanToken methods */ -void pg_query__scan_token__init - (PgQuery__ScanToken *message); -size_t pg_query__scan_token__get_packed_size - (const PgQuery__ScanToken *message); -size_t pg_query__scan_token__pack - (const PgQuery__ScanToken *message, - uint8_t *out); -size_t pg_query__scan_token__pack_to_buffer - (const PgQuery__ScanToken *message, - ProtobufCBuffer *buffer); -PgQuery__ScanToken * - pg_query__scan_token__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void pg_query__scan_token__free_unpacked - (PgQuery__ScanToken *message, - ProtobufCAllocator *allocator); -/* --- per-message closures --- */ - -typedef void (*PgQuery__ParseResult_Closure) - (const PgQuery__ParseResult *message, - void *closure_data); -typedef void (*PgQuery__ScanResult_Closure) - (const PgQuery__ScanResult *message, - void *closure_data); -typedef void (*PgQuery__Node_Closure) - (const PgQuery__Node *message, - void *closure_data); -typedef void (*PgQuery__Integer_Closure) - (const PgQuery__Integer *message, - void *closure_data); -typedef void (*PgQuery__Float_Closure) - (const PgQuery__Float *message, - void *closure_data); -typedef void (*PgQuery__Boolean_Closure) - (const PgQuery__Boolean *message, - void *closure_data); -typedef void (*PgQuery__String_Closure) - (const PgQuery__String *message, - void *closure_data); -typedef void (*PgQuery__BitString_Closure) - (const PgQuery__BitString *message, - void *closure_data); -typedef void (*PgQuery__List_Closure) - (const PgQuery__List *message, - void *closure_data); -typedef void (*PgQuery__OidList_Closure) - (const PgQuery__OidList *message, - void *closure_data); -typedef void (*PgQuery__IntList_Closure) - (const PgQuery__IntList *message, - void *closure_data); -typedef void (*PgQuery__AConst_Closure) - (const PgQuery__AConst *message, - void *closure_data); -typedef void (*PgQuery__Alias_Closure) - (const PgQuery__Alias *message, - void *closure_data); -typedef void (*PgQuery__RangeVar_Closure) - (const PgQuery__RangeVar *message, - void *closure_data); -typedef void (*PgQuery__TableFunc_Closure) - (const PgQuery__TableFunc *message, - void *closure_data); -typedef void (*PgQuery__Var_Closure) - (const PgQuery__Var *message, - void *closure_data); -typedef void (*PgQuery__Param_Closure) - (const PgQuery__Param *message, - void *closure_data); -typedef void (*PgQuery__Aggref_Closure) - (const PgQuery__Aggref *message, - void *closure_data); -typedef void (*PgQuery__GroupingFunc_Closure) - (const PgQuery__GroupingFunc *message, - void *closure_data); -typedef void (*PgQuery__WindowFunc_Closure) - (const PgQuery__WindowFunc *message, - void *closure_data); -typedef void (*PgQuery__SubscriptingRef_Closure) - (const PgQuery__SubscriptingRef *message, - void *closure_data); -typedef void (*PgQuery__FuncExpr_Closure) - (const PgQuery__FuncExpr *message, - void *closure_data); -typedef void (*PgQuery__NamedArgExpr_Closure) - (const PgQuery__NamedArgExpr *message, - void *closure_data); -typedef void (*PgQuery__OpExpr_Closure) - (const PgQuery__OpExpr *message, - void *closure_data); -typedef void (*PgQuery__DistinctExpr_Closure) - (const PgQuery__DistinctExpr *message, - void *closure_data); -typedef void (*PgQuery__NullIfExpr_Closure) - (const PgQuery__NullIfExpr *message, - void *closure_data); -typedef void (*PgQuery__ScalarArrayOpExpr_Closure) - (const PgQuery__ScalarArrayOpExpr *message, - void *closure_data); -typedef void (*PgQuery__BoolExpr_Closure) - (const PgQuery__BoolExpr *message, - void *closure_data); -typedef void (*PgQuery__SubLink_Closure) - (const PgQuery__SubLink *message, - void *closure_data); -typedef void (*PgQuery__SubPlan_Closure) - (const PgQuery__SubPlan *message, - void *closure_data); -typedef void (*PgQuery__AlternativeSubPlan_Closure) - (const PgQuery__AlternativeSubPlan *message, - void *closure_data); -typedef void (*PgQuery__FieldSelect_Closure) - (const PgQuery__FieldSelect *message, - void *closure_data); -typedef void (*PgQuery__FieldStore_Closure) - (const PgQuery__FieldStore *message, - void *closure_data); -typedef void (*PgQuery__RelabelType_Closure) - (const PgQuery__RelabelType *message, - void *closure_data); -typedef void (*PgQuery__CoerceViaIO_Closure) - (const PgQuery__CoerceViaIO *message, - void *closure_data); -typedef void (*PgQuery__ArrayCoerceExpr_Closure) - (const PgQuery__ArrayCoerceExpr *message, - void *closure_data); -typedef void (*PgQuery__ConvertRowtypeExpr_Closure) - (const PgQuery__ConvertRowtypeExpr *message, - void *closure_data); -typedef void (*PgQuery__CollateExpr_Closure) - (const PgQuery__CollateExpr *message, - void *closure_data); -typedef void (*PgQuery__CaseExpr_Closure) - (const PgQuery__CaseExpr *message, - void *closure_data); -typedef void (*PgQuery__CaseWhen_Closure) - (const PgQuery__CaseWhen *message, - void *closure_data); -typedef void (*PgQuery__CaseTestExpr_Closure) - (const PgQuery__CaseTestExpr *message, - void *closure_data); -typedef void (*PgQuery__ArrayExpr_Closure) - (const PgQuery__ArrayExpr *message, - void *closure_data); -typedef void (*PgQuery__RowExpr_Closure) - (const PgQuery__RowExpr *message, - void *closure_data); -typedef void (*PgQuery__RowCompareExpr_Closure) - (const PgQuery__RowCompareExpr *message, - void *closure_data); -typedef void (*PgQuery__CoalesceExpr_Closure) - (const PgQuery__CoalesceExpr *message, - void *closure_data); -typedef void (*PgQuery__MinMaxExpr_Closure) - (const PgQuery__MinMaxExpr *message, - void *closure_data); -typedef void (*PgQuery__SQLValueFunction_Closure) - (const PgQuery__SQLValueFunction *message, - void *closure_data); -typedef void (*PgQuery__XmlExpr_Closure) - (const PgQuery__XmlExpr *message, - void *closure_data); -typedef void (*PgQuery__NullTest_Closure) - (const PgQuery__NullTest *message, - void *closure_data); -typedef void (*PgQuery__BooleanTest_Closure) - (const PgQuery__BooleanTest *message, - void *closure_data); -typedef void (*PgQuery__CoerceToDomain_Closure) - (const PgQuery__CoerceToDomain *message, - void *closure_data); -typedef void (*PgQuery__CoerceToDomainValue_Closure) - (const PgQuery__CoerceToDomainValue *message, - void *closure_data); -typedef void (*PgQuery__SetToDefault_Closure) - (const PgQuery__SetToDefault *message, - void *closure_data); -typedef void (*PgQuery__CurrentOfExpr_Closure) - (const PgQuery__CurrentOfExpr *message, - void *closure_data); -typedef void (*PgQuery__NextValueExpr_Closure) - (const PgQuery__NextValueExpr *message, - void *closure_data); -typedef void (*PgQuery__InferenceElem_Closure) - (const PgQuery__InferenceElem *message, - void *closure_data); -typedef void (*PgQuery__TargetEntry_Closure) - (const PgQuery__TargetEntry *message, - void *closure_data); -typedef void (*PgQuery__RangeTblRef_Closure) - (const PgQuery__RangeTblRef *message, - void *closure_data); -typedef void (*PgQuery__JoinExpr_Closure) - (const PgQuery__JoinExpr *message, - void *closure_data); -typedef void (*PgQuery__FromExpr_Closure) - (const PgQuery__FromExpr *message, - void *closure_data); -typedef void (*PgQuery__OnConflictExpr_Closure) - (const PgQuery__OnConflictExpr *message, - void *closure_data); -typedef void (*PgQuery__IntoClause_Closure) - (const PgQuery__IntoClause *message, - void *closure_data); -typedef void (*PgQuery__MergeAction_Closure) - (const PgQuery__MergeAction *message, - void *closure_data); -typedef void (*PgQuery__RawStmt_Closure) - (const PgQuery__RawStmt *message, - void *closure_data); -typedef void (*PgQuery__Query_Closure) - (const PgQuery__Query *message, - void *closure_data); -typedef void (*PgQuery__InsertStmt_Closure) - (const PgQuery__InsertStmt *message, - void *closure_data); -typedef void (*PgQuery__DeleteStmt_Closure) - (const PgQuery__DeleteStmt *message, - void *closure_data); -typedef void (*PgQuery__UpdateStmt_Closure) - (const PgQuery__UpdateStmt *message, - void *closure_data); -typedef void (*PgQuery__MergeStmt_Closure) - (const PgQuery__MergeStmt *message, - void *closure_data); -typedef void (*PgQuery__SelectStmt_Closure) - (const PgQuery__SelectStmt *message, - void *closure_data); -typedef void (*PgQuery__ReturnStmt_Closure) - (const PgQuery__ReturnStmt *message, - void *closure_data); -typedef void (*PgQuery__PLAssignStmt_Closure) - (const PgQuery__PLAssignStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterTableStmt_Closure) - (const PgQuery__AlterTableStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterTableCmd_Closure) - (const PgQuery__AlterTableCmd *message, - void *closure_data); -typedef void (*PgQuery__AlterDomainStmt_Closure) - (const PgQuery__AlterDomainStmt *message, - void *closure_data); -typedef void (*PgQuery__SetOperationStmt_Closure) - (const PgQuery__SetOperationStmt *message, - void *closure_data); -typedef void (*PgQuery__GrantStmt_Closure) - (const PgQuery__GrantStmt *message, - void *closure_data); -typedef void (*PgQuery__GrantRoleStmt_Closure) - (const PgQuery__GrantRoleStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterDefaultPrivilegesStmt_Closure) - (const PgQuery__AlterDefaultPrivilegesStmt *message, - void *closure_data); -typedef void (*PgQuery__ClosePortalStmt_Closure) - (const PgQuery__ClosePortalStmt *message, - void *closure_data); -typedef void (*PgQuery__ClusterStmt_Closure) - (const PgQuery__ClusterStmt *message, - void *closure_data); -typedef void (*PgQuery__CopyStmt_Closure) - (const PgQuery__CopyStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateStmt_Closure) - (const PgQuery__CreateStmt *message, - void *closure_data); -typedef void (*PgQuery__DefineStmt_Closure) - (const PgQuery__DefineStmt *message, - void *closure_data); -typedef void (*PgQuery__DropStmt_Closure) - (const PgQuery__DropStmt *message, - void *closure_data); -typedef void (*PgQuery__TruncateStmt_Closure) - (const PgQuery__TruncateStmt *message, - void *closure_data); -typedef void (*PgQuery__CommentStmt_Closure) - (const PgQuery__CommentStmt *message, - void *closure_data); -typedef void (*PgQuery__FetchStmt_Closure) - (const PgQuery__FetchStmt *message, - void *closure_data); -typedef void (*PgQuery__IndexStmt_Closure) - (const PgQuery__IndexStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateFunctionStmt_Closure) - (const PgQuery__CreateFunctionStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterFunctionStmt_Closure) - (const PgQuery__AlterFunctionStmt *message, - void *closure_data); -typedef void (*PgQuery__DoStmt_Closure) - (const PgQuery__DoStmt *message, - void *closure_data); -typedef void (*PgQuery__RenameStmt_Closure) - (const PgQuery__RenameStmt *message, - void *closure_data); -typedef void (*PgQuery__RuleStmt_Closure) - (const PgQuery__RuleStmt *message, - void *closure_data); -typedef void (*PgQuery__NotifyStmt_Closure) - (const PgQuery__NotifyStmt *message, - void *closure_data); -typedef void (*PgQuery__ListenStmt_Closure) - (const PgQuery__ListenStmt *message, - void *closure_data); -typedef void (*PgQuery__UnlistenStmt_Closure) - (const PgQuery__UnlistenStmt *message, - void *closure_data); -typedef void (*PgQuery__TransactionStmt_Closure) - (const PgQuery__TransactionStmt *message, - void *closure_data); -typedef void (*PgQuery__ViewStmt_Closure) - (const PgQuery__ViewStmt *message, - void *closure_data); -typedef void (*PgQuery__LoadStmt_Closure) - (const PgQuery__LoadStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateDomainStmt_Closure) - (const PgQuery__CreateDomainStmt *message, - void *closure_data); -typedef void (*PgQuery__CreatedbStmt_Closure) - (const PgQuery__CreatedbStmt *message, - void *closure_data); -typedef void (*PgQuery__DropdbStmt_Closure) - (const PgQuery__DropdbStmt *message, - void *closure_data); -typedef void (*PgQuery__VacuumStmt_Closure) - (const PgQuery__VacuumStmt *message, - void *closure_data); -typedef void (*PgQuery__ExplainStmt_Closure) - (const PgQuery__ExplainStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateTableAsStmt_Closure) - (const PgQuery__CreateTableAsStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateSeqStmt_Closure) - (const PgQuery__CreateSeqStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterSeqStmt_Closure) - (const PgQuery__AlterSeqStmt *message, - void *closure_data); -typedef void (*PgQuery__VariableSetStmt_Closure) - (const PgQuery__VariableSetStmt *message, - void *closure_data); -typedef void (*PgQuery__VariableShowStmt_Closure) - (const PgQuery__VariableShowStmt *message, - void *closure_data); -typedef void (*PgQuery__DiscardStmt_Closure) - (const PgQuery__DiscardStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateTrigStmt_Closure) - (const PgQuery__CreateTrigStmt *message, - void *closure_data); -typedef void (*PgQuery__CreatePLangStmt_Closure) - (const PgQuery__CreatePLangStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateRoleStmt_Closure) - (const PgQuery__CreateRoleStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterRoleStmt_Closure) - (const PgQuery__AlterRoleStmt *message, - void *closure_data); -typedef void (*PgQuery__DropRoleStmt_Closure) - (const PgQuery__DropRoleStmt *message, - void *closure_data); -typedef void (*PgQuery__LockStmt_Closure) - (const PgQuery__LockStmt *message, - void *closure_data); -typedef void (*PgQuery__ConstraintsSetStmt_Closure) - (const PgQuery__ConstraintsSetStmt *message, - void *closure_data); -typedef void (*PgQuery__ReindexStmt_Closure) - (const PgQuery__ReindexStmt *message, - void *closure_data); -typedef void (*PgQuery__CheckPointStmt_Closure) - (const PgQuery__CheckPointStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateSchemaStmt_Closure) - (const PgQuery__CreateSchemaStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterDatabaseStmt_Closure) - (const PgQuery__AlterDatabaseStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterDatabaseRefreshCollStmt_Closure) - (const PgQuery__AlterDatabaseRefreshCollStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterDatabaseSetStmt_Closure) - (const PgQuery__AlterDatabaseSetStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterRoleSetStmt_Closure) - (const PgQuery__AlterRoleSetStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateConversionStmt_Closure) - (const PgQuery__CreateConversionStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateCastStmt_Closure) - (const PgQuery__CreateCastStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateOpClassStmt_Closure) - (const PgQuery__CreateOpClassStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateOpFamilyStmt_Closure) - (const PgQuery__CreateOpFamilyStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterOpFamilyStmt_Closure) - (const PgQuery__AlterOpFamilyStmt *message, - void *closure_data); -typedef void (*PgQuery__PrepareStmt_Closure) - (const PgQuery__PrepareStmt *message, - void *closure_data); -typedef void (*PgQuery__ExecuteStmt_Closure) - (const PgQuery__ExecuteStmt *message, - void *closure_data); -typedef void (*PgQuery__DeallocateStmt_Closure) - (const PgQuery__DeallocateStmt *message, - void *closure_data); -typedef void (*PgQuery__DeclareCursorStmt_Closure) - (const PgQuery__DeclareCursorStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateTableSpaceStmt_Closure) - (const PgQuery__CreateTableSpaceStmt *message, - void *closure_data); -typedef void (*PgQuery__DropTableSpaceStmt_Closure) - (const PgQuery__DropTableSpaceStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterObjectDependsStmt_Closure) - (const PgQuery__AlterObjectDependsStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterObjectSchemaStmt_Closure) - (const PgQuery__AlterObjectSchemaStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterOwnerStmt_Closure) - (const PgQuery__AlterOwnerStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterOperatorStmt_Closure) - (const PgQuery__AlterOperatorStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterTypeStmt_Closure) - (const PgQuery__AlterTypeStmt *message, - void *closure_data); -typedef void (*PgQuery__DropOwnedStmt_Closure) - (const PgQuery__DropOwnedStmt *message, - void *closure_data); -typedef void (*PgQuery__ReassignOwnedStmt_Closure) - (const PgQuery__ReassignOwnedStmt *message, - void *closure_data); -typedef void (*PgQuery__CompositeTypeStmt_Closure) - (const PgQuery__CompositeTypeStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateEnumStmt_Closure) - (const PgQuery__CreateEnumStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateRangeStmt_Closure) - (const PgQuery__CreateRangeStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterEnumStmt_Closure) - (const PgQuery__AlterEnumStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterTSDictionaryStmt_Closure) - (const PgQuery__AlterTSDictionaryStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterTSConfigurationStmt_Closure) - (const PgQuery__AlterTSConfigurationStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateFdwStmt_Closure) - (const PgQuery__CreateFdwStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterFdwStmt_Closure) - (const PgQuery__AlterFdwStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateForeignServerStmt_Closure) - (const PgQuery__CreateForeignServerStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterForeignServerStmt_Closure) - (const PgQuery__AlterForeignServerStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateUserMappingStmt_Closure) - (const PgQuery__CreateUserMappingStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterUserMappingStmt_Closure) - (const PgQuery__AlterUserMappingStmt *message, - void *closure_data); -typedef void (*PgQuery__DropUserMappingStmt_Closure) - (const PgQuery__DropUserMappingStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterTableSpaceOptionsStmt_Closure) - (const PgQuery__AlterTableSpaceOptionsStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterTableMoveAllStmt_Closure) - (const PgQuery__AlterTableMoveAllStmt *message, - void *closure_data); -typedef void (*PgQuery__SecLabelStmt_Closure) - (const PgQuery__SecLabelStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateForeignTableStmt_Closure) - (const PgQuery__CreateForeignTableStmt *message, - void *closure_data); -typedef void (*PgQuery__ImportForeignSchemaStmt_Closure) - (const PgQuery__ImportForeignSchemaStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateExtensionStmt_Closure) - (const PgQuery__CreateExtensionStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterExtensionStmt_Closure) - (const PgQuery__AlterExtensionStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterExtensionContentsStmt_Closure) - (const PgQuery__AlterExtensionContentsStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateEventTrigStmt_Closure) - (const PgQuery__CreateEventTrigStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterEventTrigStmt_Closure) - (const PgQuery__AlterEventTrigStmt *message, - void *closure_data); -typedef void (*PgQuery__RefreshMatViewStmt_Closure) - (const PgQuery__RefreshMatViewStmt *message, - void *closure_data); -typedef void (*PgQuery__ReplicaIdentityStmt_Closure) - (const PgQuery__ReplicaIdentityStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterSystemStmt_Closure) - (const PgQuery__AlterSystemStmt *message, - void *closure_data); -typedef void (*PgQuery__CreatePolicyStmt_Closure) - (const PgQuery__CreatePolicyStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterPolicyStmt_Closure) - (const PgQuery__AlterPolicyStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateTransformStmt_Closure) - (const PgQuery__CreateTransformStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateAmStmt_Closure) - (const PgQuery__CreateAmStmt *message, - void *closure_data); -typedef void (*PgQuery__CreatePublicationStmt_Closure) - (const PgQuery__CreatePublicationStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterPublicationStmt_Closure) - (const PgQuery__AlterPublicationStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateSubscriptionStmt_Closure) - (const PgQuery__CreateSubscriptionStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterSubscriptionStmt_Closure) - (const PgQuery__AlterSubscriptionStmt *message, - void *closure_data); -typedef void (*PgQuery__DropSubscriptionStmt_Closure) - (const PgQuery__DropSubscriptionStmt *message, - void *closure_data); -typedef void (*PgQuery__CreateStatsStmt_Closure) - (const PgQuery__CreateStatsStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterCollationStmt_Closure) - (const PgQuery__AlterCollationStmt *message, - void *closure_data); -typedef void (*PgQuery__CallStmt_Closure) - (const PgQuery__CallStmt *message, - void *closure_data); -typedef void (*PgQuery__AlterStatsStmt_Closure) - (const PgQuery__AlterStatsStmt *message, - void *closure_data); -typedef void (*PgQuery__AExpr_Closure) - (const PgQuery__AExpr *message, - void *closure_data); -typedef void (*PgQuery__ColumnRef_Closure) - (const PgQuery__ColumnRef *message, - void *closure_data); -typedef void (*PgQuery__ParamRef_Closure) - (const PgQuery__ParamRef *message, - void *closure_data); -typedef void (*PgQuery__FuncCall_Closure) - (const PgQuery__FuncCall *message, - void *closure_data); -typedef void (*PgQuery__AStar_Closure) - (const PgQuery__AStar *message, - void *closure_data); -typedef void (*PgQuery__AIndices_Closure) - (const PgQuery__AIndices *message, - void *closure_data); -typedef void (*PgQuery__AIndirection_Closure) - (const PgQuery__AIndirection *message, - void *closure_data); -typedef void (*PgQuery__AArrayExpr_Closure) - (const PgQuery__AArrayExpr *message, - void *closure_data); -typedef void (*PgQuery__ResTarget_Closure) - (const PgQuery__ResTarget *message, - void *closure_data); -typedef void (*PgQuery__MultiAssignRef_Closure) - (const PgQuery__MultiAssignRef *message, - void *closure_data); -typedef void (*PgQuery__TypeCast_Closure) - (const PgQuery__TypeCast *message, - void *closure_data); -typedef void (*PgQuery__CollateClause_Closure) - (const PgQuery__CollateClause *message, - void *closure_data); -typedef void (*PgQuery__SortBy_Closure) - (const PgQuery__SortBy *message, - void *closure_data); -typedef void (*PgQuery__WindowDef_Closure) - (const PgQuery__WindowDef *message, - void *closure_data); -typedef void (*PgQuery__RangeSubselect_Closure) - (const PgQuery__RangeSubselect *message, - void *closure_data); -typedef void (*PgQuery__RangeFunction_Closure) - (const PgQuery__RangeFunction *message, - void *closure_data); -typedef void (*PgQuery__RangeTableSample_Closure) - (const PgQuery__RangeTableSample *message, - void *closure_data); -typedef void (*PgQuery__RangeTableFunc_Closure) - (const PgQuery__RangeTableFunc *message, - void *closure_data); -typedef void (*PgQuery__RangeTableFuncCol_Closure) - (const PgQuery__RangeTableFuncCol *message, - void *closure_data); -typedef void (*PgQuery__TypeName_Closure) - (const PgQuery__TypeName *message, - void *closure_data); -typedef void (*PgQuery__ColumnDef_Closure) - (const PgQuery__ColumnDef *message, - void *closure_data); -typedef void (*PgQuery__IndexElem_Closure) - (const PgQuery__IndexElem *message, - void *closure_data); -typedef void (*PgQuery__StatsElem_Closure) - (const PgQuery__StatsElem *message, - void *closure_data); -typedef void (*PgQuery__Constraint_Closure) - (const PgQuery__Constraint *message, - void *closure_data); -typedef void (*PgQuery__DefElem_Closure) - (const PgQuery__DefElem *message, - void *closure_data); -typedef void (*PgQuery__RangeTblEntry_Closure) - (const PgQuery__RangeTblEntry *message, - void *closure_data); -typedef void (*PgQuery__RangeTblFunction_Closure) - (const PgQuery__RangeTblFunction *message, - void *closure_data); -typedef void (*PgQuery__TableSampleClause_Closure) - (const PgQuery__TableSampleClause *message, - void *closure_data); -typedef void (*PgQuery__WithCheckOption_Closure) - (const PgQuery__WithCheckOption *message, - void *closure_data); -typedef void (*PgQuery__SortGroupClause_Closure) - (const PgQuery__SortGroupClause *message, - void *closure_data); -typedef void (*PgQuery__GroupingSet_Closure) - (const PgQuery__GroupingSet *message, - void *closure_data); -typedef void (*PgQuery__WindowClause_Closure) - (const PgQuery__WindowClause *message, - void *closure_data); -typedef void (*PgQuery__ObjectWithArgs_Closure) - (const PgQuery__ObjectWithArgs *message, - void *closure_data); -typedef void (*PgQuery__AccessPriv_Closure) - (const PgQuery__AccessPriv *message, - void *closure_data); -typedef void (*PgQuery__CreateOpClassItem_Closure) - (const PgQuery__CreateOpClassItem *message, - void *closure_data); -typedef void (*PgQuery__TableLikeClause_Closure) - (const PgQuery__TableLikeClause *message, - void *closure_data); -typedef void (*PgQuery__FunctionParameter_Closure) - (const PgQuery__FunctionParameter *message, - void *closure_data); -typedef void (*PgQuery__LockingClause_Closure) - (const PgQuery__LockingClause *message, - void *closure_data); -typedef void (*PgQuery__RowMarkClause_Closure) - (const PgQuery__RowMarkClause *message, - void *closure_data); -typedef void (*PgQuery__XmlSerialize_Closure) - (const PgQuery__XmlSerialize *message, - void *closure_data); -typedef void (*PgQuery__WithClause_Closure) - (const PgQuery__WithClause *message, - void *closure_data); -typedef void (*PgQuery__InferClause_Closure) - (const PgQuery__InferClause *message, - void *closure_data); -typedef void (*PgQuery__OnConflictClause_Closure) - (const PgQuery__OnConflictClause *message, - void *closure_data); -typedef void (*PgQuery__CTESearchClause_Closure) - (const PgQuery__CTESearchClause *message, - void *closure_data); -typedef void (*PgQuery__CTECycleClause_Closure) - (const PgQuery__CTECycleClause *message, - void *closure_data); -typedef void (*PgQuery__CommonTableExpr_Closure) - (const PgQuery__CommonTableExpr *message, - void *closure_data); -typedef void (*PgQuery__MergeWhenClause_Closure) - (const PgQuery__MergeWhenClause *message, - void *closure_data); -typedef void (*PgQuery__RoleSpec_Closure) - (const PgQuery__RoleSpec *message, - void *closure_data); -typedef void (*PgQuery__TriggerTransition_Closure) - (const PgQuery__TriggerTransition *message, - void *closure_data); -typedef void (*PgQuery__PartitionElem_Closure) - (const PgQuery__PartitionElem *message, - void *closure_data); -typedef void (*PgQuery__PartitionSpec_Closure) - (const PgQuery__PartitionSpec *message, - void *closure_data); -typedef void (*PgQuery__PartitionBoundSpec_Closure) - (const PgQuery__PartitionBoundSpec *message, - void *closure_data); -typedef void (*PgQuery__PartitionRangeDatum_Closure) - (const PgQuery__PartitionRangeDatum *message, - void *closure_data); -typedef void (*PgQuery__PartitionCmd_Closure) - (const PgQuery__PartitionCmd *message, - void *closure_data); -typedef void (*PgQuery__VacuumRelation_Closure) - (const PgQuery__VacuumRelation *message, - void *closure_data); -typedef void (*PgQuery__PublicationObjSpec_Closure) - (const PgQuery__PublicationObjSpec *message, - void *closure_data); -typedef void (*PgQuery__PublicationTable_Closure) - (const PgQuery__PublicationTable *message, - void *closure_data); -typedef void (*PgQuery__InlineCodeBlock_Closure) - (const PgQuery__InlineCodeBlock *message, - void *closure_data); -typedef void (*PgQuery__CallContext_Closure) - (const PgQuery__CallContext *message, - void *closure_data); -typedef void (*PgQuery__ScanToken_Closure) - (const PgQuery__ScanToken *message, - void *closure_data); - -/* --- services --- */ - - -/* --- descriptors --- */ - -extern const ProtobufCEnumDescriptor pg_query__overriding_kind__descriptor; -extern const ProtobufCEnumDescriptor pg_query__query_source__descriptor; -extern const ProtobufCEnumDescriptor pg_query__sort_by_dir__descriptor; -extern const ProtobufCEnumDescriptor pg_query__sort_by_nulls__descriptor; -extern const ProtobufCEnumDescriptor pg_query__set_quantifier__descriptor; -extern const ProtobufCEnumDescriptor pg_query__a__expr__kind__descriptor; -extern const ProtobufCEnumDescriptor pg_query__role_spec_type__descriptor; -extern const ProtobufCEnumDescriptor pg_query__table_like_option__descriptor; -extern const ProtobufCEnumDescriptor pg_query__def_elem_action__descriptor; -extern const ProtobufCEnumDescriptor pg_query__partition_range_datum_kind__descriptor; -extern const ProtobufCEnumDescriptor pg_query__rtekind__descriptor; -extern const ProtobufCEnumDescriptor pg_query__wcokind__descriptor; -extern const ProtobufCEnumDescriptor pg_query__grouping_set_kind__descriptor; -extern const ProtobufCEnumDescriptor pg_query__ctematerialize__descriptor; -extern const ProtobufCEnumDescriptor pg_query__set_operation__descriptor; -extern const ProtobufCEnumDescriptor pg_query__object_type__descriptor; -extern const ProtobufCEnumDescriptor pg_query__drop_behavior__descriptor; -extern const ProtobufCEnumDescriptor pg_query__alter_table_type__descriptor; -extern const ProtobufCEnumDescriptor pg_query__grant_target_type__descriptor; -extern const ProtobufCEnumDescriptor pg_query__variable_set_kind__descriptor; -extern const ProtobufCEnumDescriptor pg_query__constr_type__descriptor; -extern const ProtobufCEnumDescriptor pg_query__import_foreign_schema_type__descriptor; -extern const ProtobufCEnumDescriptor pg_query__role_stmt_type__descriptor; -extern const ProtobufCEnumDescriptor pg_query__fetch_direction__descriptor; -extern const ProtobufCEnumDescriptor pg_query__function_parameter_mode__descriptor; -extern const ProtobufCEnumDescriptor pg_query__transaction_stmt_kind__descriptor; -extern const ProtobufCEnumDescriptor pg_query__view_check_option__descriptor; -extern const ProtobufCEnumDescriptor pg_query__discard_mode__descriptor; -extern const ProtobufCEnumDescriptor pg_query__reindex_object_type__descriptor; -extern const ProtobufCEnumDescriptor pg_query__alter_tsconfig_type__descriptor; -extern const ProtobufCEnumDescriptor pg_query__publication_obj_spec_type__descriptor; -extern const ProtobufCEnumDescriptor pg_query__alter_publication_action__descriptor; -extern const ProtobufCEnumDescriptor pg_query__alter_subscription_type__descriptor; -extern const ProtobufCEnumDescriptor pg_query__on_commit_action__descriptor; -extern const ProtobufCEnumDescriptor pg_query__param_kind__descriptor; -extern const ProtobufCEnumDescriptor pg_query__coercion_context__descriptor; -extern const ProtobufCEnumDescriptor pg_query__coercion_form__descriptor; -extern const ProtobufCEnumDescriptor pg_query__bool_expr_type__descriptor; -extern const ProtobufCEnumDescriptor pg_query__sub_link_type__descriptor; -extern const ProtobufCEnumDescriptor pg_query__row_compare_type__descriptor; -extern const ProtobufCEnumDescriptor pg_query__min_max_op__descriptor; -extern const ProtobufCEnumDescriptor pg_query__sqlvalue_function_op__descriptor; -extern const ProtobufCEnumDescriptor pg_query__xml_expr_op__descriptor; -extern const ProtobufCEnumDescriptor pg_query__xml_option_type__descriptor; -extern const ProtobufCEnumDescriptor pg_query__null_test_type__descriptor; -extern const ProtobufCEnumDescriptor pg_query__bool_test_type__descriptor; -extern const ProtobufCEnumDescriptor pg_query__cmd_type__descriptor; -extern const ProtobufCEnumDescriptor pg_query__join_type__descriptor; -extern const ProtobufCEnumDescriptor pg_query__agg_strategy__descriptor; -extern const ProtobufCEnumDescriptor pg_query__agg_split__descriptor; -extern const ProtobufCEnumDescriptor pg_query__set_op_cmd__descriptor; -extern const ProtobufCEnumDescriptor pg_query__set_op_strategy__descriptor; -extern const ProtobufCEnumDescriptor pg_query__on_conflict_action__descriptor; -extern const ProtobufCEnumDescriptor pg_query__limit_option__descriptor; -extern const ProtobufCEnumDescriptor pg_query__lock_clause_strength__descriptor; -extern const ProtobufCEnumDescriptor pg_query__lock_wait_policy__descriptor; -extern const ProtobufCEnumDescriptor pg_query__lock_tuple_mode__descriptor; -extern const ProtobufCEnumDescriptor pg_query__keyword_kind__descriptor; -extern const ProtobufCEnumDescriptor pg_query__token__descriptor; -extern const ProtobufCMessageDescriptor pg_query__parse_result__descriptor; -extern const ProtobufCMessageDescriptor pg_query__scan_result__descriptor; -extern const ProtobufCMessageDescriptor pg_query__node__descriptor; -extern const ProtobufCMessageDescriptor pg_query__integer__descriptor; -extern const ProtobufCMessageDescriptor pg_query__float__descriptor; -extern const ProtobufCMessageDescriptor pg_query__boolean__descriptor; -extern const ProtobufCMessageDescriptor pg_query__string__descriptor; -extern const ProtobufCMessageDescriptor pg_query__bit_string__descriptor; -extern const ProtobufCMessageDescriptor pg_query__list__descriptor; -extern const ProtobufCMessageDescriptor pg_query__oid_list__descriptor; -extern const ProtobufCMessageDescriptor pg_query__int_list__descriptor; -extern const ProtobufCMessageDescriptor pg_query__a__const__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alias__descriptor; -extern const ProtobufCMessageDescriptor pg_query__range_var__descriptor; -extern const ProtobufCMessageDescriptor pg_query__table_func__descriptor; -extern const ProtobufCMessageDescriptor pg_query__var__descriptor; -extern const ProtobufCMessageDescriptor pg_query__param__descriptor; -extern const ProtobufCMessageDescriptor pg_query__aggref__descriptor; -extern const ProtobufCMessageDescriptor pg_query__grouping_func__descriptor; -extern const ProtobufCMessageDescriptor pg_query__window_func__descriptor; -extern const ProtobufCMessageDescriptor pg_query__subscripting_ref__descriptor; -extern const ProtobufCMessageDescriptor pg_query__func_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__named_arg_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__op_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__distinct_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__null_if_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__scalar_array_op_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__bool_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__sub_link__descriptor; -extern const ProtobufCMessageDescriptor pg_query__sub_plan__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alternative_sub_plan__descriptor; -extern const ProtobufCMessageDescriptor pg_query__field_select__descriptor; -extern const ProtobufCMessageDescriptor pg_query__field_store__descriptor; -extern const ProtobufCMessageDescriptor pg_query__relabel_type__descriptor; -extern const ProtobufCMessageDescriptor pg_query__coerce_via_io__descriptor; -extern const ProtobufCMessageDescriptor pg_query__array_coerce_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__convert_rowtype_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__collate_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__case_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__case_when__descriptor; -extern const ProtobufCMessageDescriptor pg_query__case_test_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__array_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__row_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__row_compare_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__coalesce_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__min_max_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__sqlvalue_function__descriptor; -extern const ProtobufCMessageDescriptor pg_query__xml_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__null_test__descriptor; -extern const ProtobufCMessageDescriptor pg_query__boolean_test__descriptor; -extern const ProtobufCMessageDescriptor pg_query__coerce_to_domain__descriptor; -extern const ProtobufCMessageDescriptor pg_query__coerce_to_domain_value__descriptor; -extern const ProtobufCMessageDescriptor pg_query__set_to_default__descriptor; -extern const ProtobufCMessageDescriptor pg_query__current_of_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__next_value_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__inference_elem__descriptor; -extern const ProtobufCMessageDescriptor pg_query__target_entry__descriptor; -extern const ProtobufCMessageDescriptor pg_query__range_tbl_ref__descriptor; -extern const ProtobufCMessageDescriptor pg_query__join_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__from_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__on_conflict_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__into_clause__descriptor; -extern const ProtobufCMessageDescriptor pg_query__merge_action__descriptor; -extern const ProtobufCMessageDescriptor pg_query__raw_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__query__descriptor; -extern const ProtobufCMessageDescriptor pg_query__insert_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__delete_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__update_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__merge_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__select_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__return_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__plassign_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_table_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_table_cmd__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_domain_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__set_operation_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__grant_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__grant_role_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_default_privileges_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__close_portal_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__cluster_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__copy_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__define_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__drop_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__truncate_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__comment_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__fetch_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__index_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_function_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_function_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__do_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__rename_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__rule_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__notify_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__listen_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__unlisten_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__transaction_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__view_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__load_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_domain_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__createdb_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__dropdb_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__vacuum_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__explain_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_table_as_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_seq_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_seq_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__variable_set_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__variable_show_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__discard_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_trig_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_plang_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_role_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_role_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__drop_role_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__lock_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__constraints_set_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__reindex_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__check_point_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_schema_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_database_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_database_refresh_coll_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_database_set_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_role_set_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_conversion_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_cast_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_op_class_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_op_family_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_op_family_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__prepare_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__execute_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__deallocate_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__declare_cursor_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_table_space_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__drop_table_space_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_object_depends_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_object_schema_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_owner_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_operator_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_type_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__drop_owned_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__reassign_owned_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__composite_type_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_enum_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_range_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_enum_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_tsdictionary_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_tsconfiguration_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_fdw_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_fdw_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_foreign_server_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_foreign_server_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_user_mapping_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_user_mapping_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__drop_user_mapping_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_table_space_options_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_table_move_all_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__sec_label_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_foreign_table_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__import_foreign_schema_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_extension_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_extension_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_extension_contents_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_event_trig_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_event_trig_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__refresh_mat_view_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__replica_identity_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_system_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_policy_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_policy_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_transform_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_am_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_publication_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_publication_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_subscription_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_subscription_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__drop_subscription_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_stats_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_collation_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__call_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__alter_stats_stmt__descriptor; -extern const ProtobufCMessageDescriptor pg_query__a__expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__column_ref__descriptor; -extern const ProtobufCMessageDescriptor pg_query__param_ref__descriptor; -extern const ProtobufCMessageDescriptor pg_query__func_call__descriptor; -extern const ProtobufCMessageDescriptor pg_query__a__star__descriptor; -extern const ProtobufCMessageDescriptor pg_query__a__indices__descriptor; -extern const ProtobufCMessageDescriptor pg_query__a__indirection__descriptor; -extern const ProtobufCMessageDescriptor pg_query__a__array_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__res_target__descriptor; -extern const ProtobufCMessageDescriptor pg_query__multi_assign_ref__descriptor; -extern const ProtobufCMessageDescriptor pg_query__type_cast__descriptor; -extern const ProtobufCMessageDescriptor pg_query__collate_clause__descriptor; -extern const ProtobufCMessageDescriptor pg_query__sort_by__descriptor; -extern const ProtobufCMessageDescriptor pg_query__window_def__descriptor; -extern const ProtobufCMessageDescriptor pg_query__range_subselect__descriptor; -extern const ProtobufCMessageDescriptor pg_query__range_function__descriptor; -extern const ProtobufCMessageDescriptor pg_query__range_table_sample__descriptor; -extern const ProtobufCMessageDescriptor pg_query__range_table_func__descriptor; -extern const ProtobufCMessageDescriptor pg_query__range_table_func_col__descriptor; -extern const ProtobufCMessageDescriptor pg_query__type_name__descriptor; -extern const ProtobufCMessageDescriptor pg_query__column_def__descriptor; -extern const ProtobufCMessageDescriptor pg_query__index_elem__descriptor; -extern const ProtobufCMessageDescriptor pg_query__stats_elem__descriptor; -extern const ProtobufCMessageDescriptor pg_query__constraint__descriptor; -extern const ProtobufCMessageDescriptor pg_query__def_elem__descriptor; -extern const ProtobufCMessageDescriptor pg_query__range_tbl_entry__descriptor; -extern const ProtobufCMessageDescriptor pg_query__range_tbl_function__descriptor; -extern const ProtobufCMessageDescriptor pg_query__table_sample_clause__descriptor; -extern const ProtobufCMessageDescriptor pg_query__with_check_option__descriptor; -extern const ProtobufCMessageDescriptor pg_query__sort_group_clause__descriptor; -extern const ProtobufCMessageDescriptor pg_query__grouping_set__descriptor; -extern const ProtobufCMessageDescriptor pg_query__window_clause__descriptor; -extern const ProtobufCMessageDescriptor pg_query__object_with_args__descriptor; -extern const ProtobufCMessageDescriptor pg_query__access_priv__descriptor; -extern const ProtobufCMessageDescriptor pg_query__create_op_class_item__descriptor; -extern const ProtobufCMessageDescriptor pg_query__table_like_clause__descriptor; -extern const ProtobufCMessageDescriptor pg_query__function_parameter__descriptor; -extern const ProtobufCMessageDescriptor pg_query__locking_clause__descriptor; -extern const ProtobufCMessageDescriptor pg_query__row_mark_clause__descriptor; -extern const ProtobufCMessageDescriptor pg_query__xml_serialize__descriptor; -extern const ProtobufCMessageDescriptor pg_query__with_clause__descriptor; -extern const ProtobufCMessageDescriptor pg_query__infer_clause__descriptor; -extern const ProtobufCMessageDescriptor pg_query__on_conflict_clause__descriptor; -extern const ProtobufCMessageDescriptor pg_query__ctesearch_clause__descriptor; -extern const ProtobufCMessageDescriptor pg_query__ctecycle_clause__descriptor; -extern const ProtobufCMessageDescriptor pg_query__common_table_expr__descriptor; -extern const ProtobufCMessageDescriptor pg_query__merge_when_clause__descriptor; -extern const ProtobufCMessageDescriptor pg_query__role_spec__descriptor; -extern const ProtobufCMessageDescriptor pg_query__trigger_transition__descriptor; -extern const ProtobufCMessageDescriptor pg_query__partition_elem__descriptor; -extern const ProtobufCMessageDescriptor pg_query__partition_spec__descriptor; -extern const ProtobufCMessageDescriptor pg_query__partition_bound_spec__descriptor; -extern const ProtobufCMessageDescriptor pg_query__partition_range_datum__descriptor; -extern const ProtobufCMessageDescriptor pg_query__partition_cmd__descriptor; -extern const ProtobufCMessageDescriptor pg_query__vacuum_relation__descriptor; -extern const ProtobufCMessageDescriptor pg_query__publication_obj_spec__descriptor; -extern const ProtobufCMessageDescriptor pg_query__publication_table__descriptor; -extern const ProtobufCMessageDescriptor pg_query__inline_code_block__descriptor; -extern const ProtobufCMessageDescriptor pg_query__call_context__descriptor; -extern const ProtobufCMessageDescriptor pg_query__scan_token__descriptor; - -PROTOBUF_C__END_DECLS - - -#endif /* PROTOBUF_C_protobuf_2fpg_5fquery_2eproto__INCLUDED */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/protobuf/pg_query.pb.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/protobuf/pg_query.pb.h deleted file mode 100644 index 36cd03359..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/protobuf/pg_query.pb.h +++ /dev/null @@ -1,135627 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: protobuf/pg_query.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_protobuf_2fpg_5fquery_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_protobuf_2fpg_5fquery_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3021000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3021009 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_protobuf_2fpg_5fquery_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_protobuf_2fpg_5fquery_2eproto { - static const uint32_t offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protobuf_2fpg_5fquery_2eproto; -namespace pg_query { -class A_ArrayExpr; -struct A_ArrayExprDefaultTypeInternal; -extern A_ArrayExprDefaultTypeInternal _A_ArrayExpr_default_instance_; -class A_Const; -struct A_ConstDefaultTypeInternal; -extern A_ConstDefaultTypeInternal _A_Const_default_instance_; -class A_Expr; -struct A_ExprDefaultTypeInternal; -extern A_ExprDefaultTypeInternal _A_Expr_default_instance_; -class A_Indices; -struct A_IndicesDefaultTypeInternal; -extern A_IndicesDefaultTypeInternal _A_Indices_default_instance_; -class A_Indirection; -struct A_IndirectionDefaultTypeInternal; -extern A_IndirectionDefaultTypeInternal _A_Indirection_default_instance_; -class A_Star; -struct A_StarDefaultTypeInternal; -extern A_StarDefaultTypeInternal _A_Star_default_instance_; -class AccessPriv; -struct AccessPrivDefaultTypeInternal; -extern AccessPrivDefaultTypeInternal _AccessPriv_default_instance_; -class Aggref; -struct AggrefDefaultTypeInternal; -extern AggrefDefaultTypeInternal _Aggref_default_instance_; -class Alias; -struct AliasDefaultTypeInternal; -extern AliasDefaultTypeInternal _Alias_default_instance_; -class AlterCollationStmt; -struct AlterCollationStmtDefaultTypeInternal; -extern AlterCollationStmtDefaultTypeInternal _AlterCollationStmt_default_instance_; -class AlterDatabaseRefreshCollStmt; -struct AlterDatabaseRefreshCollStmtDefaultTypeInternal; -extern AlterDatabaseRefreshCollStmtDefaultTypeInternal _AlterDatabaseRefreshCollStmt_default_instance_; -class AlterDatabaseSetStmt; -struct AlterDatabaseSetStmtDefaultTypeInternal; -extern AlterDatabaseSetStmtDefaultTypeInternal _AlterDatabaseSetStmt_default_instance_; -class AlterDatabaseStmt; -struct AlterDatabaseStmtDefaultTypeInternal; -extern AlterDatabaseStmtDefaultTypeInternal _AlterDatabaseStmt_default_instance_; -class AlterDefaultPrivilegesStmt; -struct AlterDefaultPrivilegesStmtDefaultTypeInternal; -extern AlterDefaultPrivilegesStmtDefaultTypeInternal _AlterDefaultPrivilegesStmt_default_instance_; -class AlterDomainStmt; -struct AlterDomainStmtDefaultTypeInternal; -extern AlterDomainStmtDefaultTypeInternal _AlterDomainStmt_default_instance_; -class AlterEnumStmt; -struct AlterEnumStmtDefaultTypeInternal; -extern AlterEnumStmtDefaultTypeInternal _AlterEnumStmt_default_instance_; -class AlterEventTrigStmt; -struct AlterEventTrigStmtDefaultTypeInternal; -extern AlterEventTrigStmtDefaultTypeInternal _AlterEventTrigStmt_default_instance_; -class AlterExtensionContentsStmt; -struct AlterExtensionContentsStmtDefaultTypeInternal; -extern AlterExtensionContentsStmtDefaultTypeInternal _AlterExtensionContentsStmt_default_instance_; -class AlterExtensionStmt; -struct AlterExtensionStmtDefaultTypeInternal; -extern AlterExtensionStmtDefaultTypeInternal _AlterExtensionStmt_default_instance_; -class AlterFdwStmt; -struct AlterFdwStmtDefaultTypeInternal; -extern AlterFdwStmtDefaultTypeInternal _AlterFdwStmt_default_instance_; -class AlterForeignServerStmt; -struct AlterForeignServerStmtDefaultTypeInternal; -extern AlterForeignServerStmtDefaultTypeInternal _AlterForeignServerStmt_default_instance_; -class AlterFunctionStmt; -struct AlterFunctionStmtDefaultTypeInternal; -extern AlterFunctionStmtDefaultTypeInternal _AlterFunctionStmt_default_instance_; -class AlterObjectDependsStmt; -struct AlterObjectDependsStmtDefaultTypeInternal; -extern AlterObjectDependsStmtDefaultTypeInternal _AlterObjectDependsStmt_default_instance_; -class AlterObjectSchemaStmt; -struct AlterObjectSchemaStmtDefaultTypeInternal; -extern AlterObjectSchemaStmtDefaultTypeInternal _AlterObjectSchemaStmt_default_instance_; -class AlterOpFamilyStmt; -struct AlterOpFamilyStmtDefaultTypeInternal; -extern AlterOpFamilyStmtDefaultTypeInternal _AlterOpFamilyStmt_default_instance_; -class AlterOperatorStmt; -struct AlterOperatorStmtDefaultTypeInternal; -extern AlterOperatorStmtDefaultTypeInternal _AlterOperatorStmt_default_instance_; -class AlterOwnerStmt; -struct AlterOwnerStmtDefaultTypeInternal; -extern AlterOwnerStmtDefaultTypeInternal _AlterOwnerStmt_default_instance_; -class AlterPolicyStmt; -struct AlterPolicyStmtDefaultTypeInternal; -extern AlterPolicyStmtDefaultTypeInternal _AlterPolicyStmt_default_instance_; -class AlterPublicationStmt; -struct AlterPublicationStmtDefaultTypeInternal; -extern AlterPublicationStmtDefaultTypeInternal _AlterPublicationStmt_default_instance_; -class AlterRoleSetStmt; -struct AlterRoleSetStmtDefaultTypeInternal; -extern AlterRoleSetStmtDefaultTypeInternal _AlterRoleSetStmt_default_instance_; -class AlterRoleStmt; -struct AlterRoleStmtDefaultTypeInternal; -extern AlterRoleStmtDefaultTypeInternal _AlterRoleStmt_default_instance_; -class AlterSeqStmt; -struct AlterSeqStmtDefaultTypeInternal; -extern AlterSeqStmtDefaultTypeInternal _AlterSeqStmt_default_instance_; -class AlterStatsStmt; -struct AlterStatsStmtDefaultTypeInternal; -extern AlterStatsStmtDefaultTypeInternal _AlterStatsStmt_default_instance_; -class AlterSubscriptionStmt; -struct AlterSubscriptionStmtDefaultTypeInternal; -extern AlterSubscriptionStmtDefaultTypeInternal _AlterSubscriptionStmt_default_instance_; -class AlterSystemStmt; -struct AlterSystemStmtDefaultTypeInternal; -extern AlterSystemStmtDefaultTypeInternal _AlterSystemStmt_default_instance_; -class AlterTSConfigurationStmt; -struct AlterTSConfigurationStmtDefaultTypeInternal; -extern AlterTSConfigurationStmtDefaultTypeInternal _AlterTSConfigurationStmt_default_instance_; -class AlterTSDictionaryStmt; -struct AlterTSDictionaryStmtDefaultTypeInternal; -extern AlterTSDictionaryStmtDefaultTypeInternal _AlterTSDictionaryStmt_default_instance_; -class AlterTableCmd; -struct AlterTableCmdDefaultTypeInternal; -extern AlterTableCmdDefaultTypeInternal _AlterTableCmd_default_instance_; -class AlterTableMoveAllStmt; -struct AlterTableMoveAllStmtDefaultTypeInternal; -extern AlterTableMoveAllStmtDefaultTypeInternal _AlterTableMoveAllStmt_default_instance_; -class AlterTableSpaceOptionsStmt; -struct AlterTableSpaceOptionsStmtDefaultTypeInternal; -extern AlterTableSpaceOptionsStmtDefaultTypeInternal _AlterTableSpaceOptionsStmt_default_instance_; -class AlterTableStmt; -struct AlterTableStmtDefaultTypeInternal; -extern AlterTableStmtDefaultTypeInternal _AlterTableStmt_default_instance_; -class AlterTypeStmt; -struct AlterTypeStmtDefaultTypeInternal; -extern AlterTypeStmtDefaultTypeInternal _AlterTypeStmt_default_instance_; -class AlterUserMappingStmt; -struct AlterUserMappingStmtDefaultTypeInternal; -extern AlterUserMappingStmtDefaultTypeInternal _AlterUserMappingStmt_default_instance_; -class AlternativeSubPlan; -struct AlternativeSubPlanDefaultTypeInternal; -extern AlternativeSubPlanDefaultTypeInternal _AlternativeSubPlan_default_instance_; -class ArrayCoerceExpr; -struct ArrayCoerceExprDefaultTypeInternal; -extern ArrayCoerceExprDefaultTypeInternal _ArrayCoerceExpr_default_instance_; -class ArrayExpr; -struct ArrayExprDefaultTypeInternal; -extern ArrayExprDefaultTypeInternal _ArrayExpr_default_instance_; -class BitString; -struct BitStringDefaultTypeInternal; -extern BitStringDefaultTypeInternal _BitString_default_instance_; -class BoolExpr; -struct BoolExprDefaultTypeInternal; -extern BoolExprDefaultTypeInternal _BoolExpr_default_instance_; -class Boolean; -struct BooleanDefaultTypeInternal; -extern BooleanDefaultTypeInternal _Boolean_default_instance_; -class BooleanTest; -struct BooleanTestDefaultTypeInternal; -extern BooleanTestDefaultTypeInternal _BooleanTest_default_instance_; -class CTECycleClause; -struct CTECycleClauseDefaultTypeInternal; -extern CTECycleClauseDefaultTypeInternal _CTECycleClause_default_instance_; -class CTESearchClause; -struct CTESearchClauseDefaultTypeInternal; -extern CTESearchClauseDefaultTypeInternal _CTESearchClause_default_instance_; -class CallContext; -struct CallContextDefaultTypeInternal; -extern CallContextDefaultTypeInternal _CallContext_default_instance_; -class CallStmt; -struct CallStmtDefaultTypeInternal; -extern CallStmtDefaultTypeInternal _CallStmt_default_instance_; -class CaseExpr; -struct CaseExprDefaultTypeInternal; -extern CaseExprDefaultTypeInternal _CaseExpr_default_instance_; -class CaseTestExpr; -struct CaseTestExprDefaultTypeInternal; -extern CaseTestExprDefaultTypeInternal _CaseTestExpr_default_instance_; -class CaseWhen; -struct CaseWhenDefaultTypeInternal; -extern CaseWhenDefaultTypeInternal _CaseWhen_default_instance_; -class CheckPointStmt; -struct CheckPointStmtDefaultTypeInternal; -extern CheckPointStmtDefaultTypeInternal _CheckPointStmt_default_instance_; -class ClosePortalStmt; -struct ClosePortalStmtDefaultTypeInternal; -extern ClosePortalStmtDefaultTypeInternal _ClosePortalStmt_default_instance_; -class ClusterStmt; -struct ClusterStmtDefaultTypeInternal; -extern ClusterStmtDefaultTypeInternal _ClusterStmt_default_instance_; -class CoalesceExpr; -struct CoalesceExprDefaultTypeInternal; -extern CoalesceExprDefaultTypeInternal _CoalesceExpr_default_instance_; -class CoerceToDomain; -struct CoerceToDomainDefaultTypeInternal; -extern CoerceToDomainDefaultTypeInternal _CoerceToDomain_default_instance_; -class CoerceToDomainValue; -struct CoerceToDomainValueDefaultTypeInternal; -extern CoerceToDomainValueDefaultTypeInternal _CoerceToDomainValue_default_instance_; -class CoerceViaIO; -struct CoerceViaIODefaultTypeInternal; -extern CoerceViaIODefaultTypeInternal _CoerceViaIO_default_instance_; -class CollateClause; -struct CollateClauseDefaultTypeInternal; -extern CollateClauseDefaultTypeInternal _CollateClause_default_instance_; -class CollateExpr; -struct CollateExprDefaultTypeInternal; -extern CollateExprDefaultTypeInternal _CollateExpr_default_instance_; -class ColumnDef; -struct ColumnDefDefaultTypeInternal; -extern ColumnDefDefaultTypeInternal _ColumnDef_default_instance_; -class ColumnRef; -struct ColumnRefDefaultTypeInternal; -extern ColumnRefDefaultTypeInternal _ColumnRef_default_instance_; -class CommentStmt; -struct CommentStmtDefaultTypeInternal; -extern CommentStmtDefaultTypeInternal _CommentStmt_default_instance_; -class CommonTableExpr; -struct CommonTableExprDefaultTypeInternal; -extern CommonTableExprDefaultTypeInternal _CommonTableExpr_default_instance_; -class CompositeTypeStmt; -struct CompositeTypeStmtDefaultTypeInternal; -extern CompositeTypeStmtDefaultTypeInternal _CompositeTypeStmt_default_instance_; -class Constraint; -struct ConstraintDefaultTypeInternal; -extern ConstraintDefaultTypeInternal _Constraint_default_instance_; -class ConstraintsSetStmt; -struct ConstraintsSetStmtDefaultTypeInternal; -extern ConstraintsSetStmtDefaultTypeInternal _ConstraintsSetStmt_default_instance_; -class ConvertRowtypeExpr; -struct ConvertRowtypeExprDefaultTypeInternal; -extern ConvertRowtypeExprDefaultTypeInternal _ConvertRowtypeExpr_default_instance_; -class CopyStmt; -struct CopyStmtDefaultTypeInternal; -extern CopyStmtDefaultTypeInternal _CopyStmt_default_instance_; -class CreateAmStmt; -struct CreateAmStmtDefaultTypeInternal; -extern CreateAmStmtDefaultTypeInternal _CreateAmStmt_default_instance_; -class CreateCastStmt; -struct CreateCastStmtDefaultTypeInternal; -extern CreateCastStmtDefaultTypeInternal _CreateCastStmt_default_instance_; -class CreateConversionStmt; -struct CreateConversionStmtDefaultTypeInternal; -extern CreateConversionStmtDefaultTypeInternal _CreateConversionStmt_default_instance_; -class CreateDomainStmt; -struct CreateDomainStmtDefaultTypeInternal; -extern CreateDomainStmtDefaultTypeInternal _CreateDomainStmt_default_instance_; -class CreateEnumStmt; -struct CreateEnumStmtDefaultTypeInternal; -extern CreateEnumStmtDefaultTypeInternal _CreateEnumStmt_default_instance_; -class CreateEventTrigStmt; -struct CreateEventTrigStmtDefaultTypeInternal; -extern CreateEventTrigStmtDefaultTypeInternal _CreateEventTrigStmt_default_instance_; -class CreateExtensionStmt; -struct CreateExtensionStmtDefaultTypeInternal; -extern CreateExtensionStmtDefaultTypeInternal _CreateExtensionStmt_default_instance_; -class CreateFdwStmt; -struct CreateFdwStmtDefaultTypeInternal; -extern CreateFdwStmtDefaultTypeInternal _CreateFdwStmt_default_instance_; -class CreateForeignServerStmt; -struct CreateForeignServerStmtDefaultTypeInternal; -extern CreateForeignServerStmtDefaultTypeInternal _CreateForeignServerStmt_default_instance_; -class CreateForeignTableStmt; -struct CreateForeignTableStmtDefaultTypeInternal; -extern CreateForeignTableStmtDefaultTypeInternal _CreateForeignTableStmt_default_instance_; -class CreateFunctionStmt; -struct CreateFunctionStmtDefaultTypeInternal; -extern CreateFunctionStmtDefaultTypeInternal _CreateFunctionStmt_default_instance_; -class CreateOpClassItem; -struct CreateOpClassItemDefaultTypeInternal; -extern CreateOpClassItemDefaultTypeInternal _CreateOpClassItem_default_instance_; -class CreateOpClassStmt; -struct CreateOpClassStmtDefaultTypeInternal; -extern CreateOpClassStmtDefaultTypeInternal _CreateOpClassStmt_default_instance_; -class CreateOpFamilyStmt; -struct CreateOpFamilyStmtDefaultTypeInternal; -extern CreateOpFamilyStmtDefaultTypeInternal _CreateOpFamilyStmt_default_instance_; -class CreatePLangStmt; -struct CreatePLangStmtDefaultTypeInternal; -extern CreatePLangStmtDefaultTypeInternal _CreatePLangStmt_default_instance_; -class CreatePolicyStmt; -struct CreatePolicyStmtDefaultTypeInternal; -extern CreatePolicyStmtDefaultTypeInternal _CreatePolicyStmt_default_instance_; -class CreatePublicationStmt; -struct CreatePublicationStmtDefaultTypeInternal; -extern CreatePublicationStmtDefaultTypeInternal _CreatePublicationStmt_default_instance_; -class CreateRangeStmt; -struct CreateRangeStmtDefaultTypeInternal; -extern CreateRangeStmtDefaultTypeInternal _CreateRangeStmt_default_instance_; -class CreateRoleStmt; -struct CreateRoleStmtDefaultTypeInternal; -extern CreateRoleStmtDefaultTypeInternal _CreateRoleStmt_default_instance_; -class CreateSchemaStmt; -struct CreateSchemaStmtDefaultTypeInternal; -extern CreateSchemaStmtDefaultTypeInternal _CreateSchemaStmt_default_instance_; -class CreateSeqStmt; -struct CreateSeqStmtDefaultTypeInternal; -extern CreateSeqStmtDefaultTypeInternal _CreateSeqStmt_default_instance_; -class CreateStatsStmt; -struct CreateStatsStmtDefaultTypeInternal; -extern CreateStatsStmtDefaultTypeInternal _CreateStatsStmt_default_instance_; -class CreateStmt; -struct CreateStmtDefaultTypeInternal; -extern CreateStmtDefaultTypeInternal _CreateStmt_default_instance_; -class CreateSubscriptionStmt; -struct CreateSubscriptionStmtDefaultTypeInternal; -extern CreateSubscriptionStmtDefaultTypeInternal _CreateSubscriptionStmt_default_instance_; -class CreateTableAsStmt; -struct CreateTableAsStmtDefaultTypeInternal; -extern CreateTableAsStmtDefaultTypeInternal _CreateTableAsStmt_default_instance_; -class CreateTableSpaceStmt; -struct CreateTableSpaceStmtDefaultTypeInternal; -extern CreateTableSpaceStmtDefaultTypeInternal _CreateTableSpaceStmt_default_instance_; -class CreateTransformStmt; -struct CreateTransformStmtDefaultTypeInternal; -extern CreateTransformStmtDefaultTypeInternal _CreateTransformStmt_default_instance_; -class CreateTrigStmt; -struct CreateTrigStmtDefaultTypeInternal; -extern CreateTrigStmtDefaultTypeInternal _CreateTrigStmt_default_instance_; -class CreateUserMappingStmt; -struct CreateUserMappingStmtDefaultTypeInternal; -extern CreateUserMappingStmtDefaultTypeInternal _CreateUserMappingStmt_default_instance_; -class CreatedbStmt; -struct CreatedbStmtDefaultTypeInternal; -extern CreatedbStmtDefaultTypeInternal _CreatedbStmt_default_instance_; -class CurrentOfExpr; -struct CurrentOfExprDefaultTypeInternal; -extern CurrentOfExprDefaultTypeInternal _CurrentOfExpr_default_instance_; -class DeallocateStmt; -struct DeallocateStmtDefaultTypeInternal; -extern DeallocateStmtDefaultTypeInternal _DeallocateStmt_default_instance_; -class DeclareCursorStmt; -struct DeclareCursorStmtDefaultTypeInternal; -extern DeclareCursorStmtDefaultTypeInternal _DeclareCursorStmt_default_instance_; -class DefElem; -struct DefElemDefaultTypeInternal; -extern DefElemDefaultTypeInternal _DefElem_default_instance_; -class DefineStmt; -struct DefineStmtDefaultTypeInternal; -extern DefineStmtDefaultTypeInternal _DefineStmt_default_instance_; -class DeleteStmt; -struct DeleteStmtDefaultTypeInternal; -extern DeleteStmtDefaultTypeInternal _DeleteStmt_default_instance_; -class DiscardStmt; -struct DiscardStmtDefaultTypeInternal; -extern DiscardStmtDefaultTypeInternal _DiscardStmt_default_instance_; -class DistinctExpr; -struct DistinctExprDefaultTypeInternal; -extern DistinctExprDefaultTypeInternal _DistinctExpr_default_instance_; -class DoStmt; -struct DoStmtDefaultTypeInternal; -extern DoStmtDefaultTypeInternal _DoStmt_default_instance_; -class DropOwnedStmt; -struct DropOwnedStmtDefaultTypeInternal; -extern DropOwnedStmtDefaultTypeInternal _DropOwnedStmt_default_instance_; -class DropRoleStmt; -struct DropRoleStmtDefaultTypeInternal; -extern DropRoleStmtDefaultTypeInternal _DropRoleStmt_default_instance_; -class DropStmt; -struct DropStmtDefaultTypeInternal; -extern DropStmtDefaultTypeInternal _DropStmt_default_instance_; -class DropSubscriptionStmt; -struct DropSubscriptionStmtDefaultTypeInternal; -extern DropSubscriptionStmtDefaultTypeInternal _DropSubscriptionStmt_default_instance_; -class DropTableSpaceStmt; -struct DropTableSpaceStmtDefaultTypeInternal; -extern DropTableSpaceStmtDefaultTypeInternal _DropTableSpaceStmt_default_instance_; -class DropUserMappingStmt; -struct DropUserMappingStmtDefaultTypeInternal; -extern DropUserMappingStmtDefaultTypeInternal _DropUserMappingStmt_default_instance_; -class DropdbStmt; -struct DropdbStmtDefaultTypeInternal; -extern DropdbStmtDefaultTypeInternal _DropdbStmt_default_instance_; -class ExecuteStmt; -struct ExecuteStmtDefaultTypeInternal; -extern ExecuteStmtDefaultTypeInternal _ExecuteStmt_default_instance_; -class ExplainStmt; -struct ExplainStmtDefaultTypeInternal; -extern ExplainStmtDefaultTypeInternal _ExplainStmt_default_instance_; -class FetchStmt; -struct FetchStmtDefaultTypeInternal; -extern FetchStmtDefaultTypeInternal _FetchStmt_default_instance_; -class FieldSelect; -struct FieldSelectDefaultTypeInternal; -extern FieldSelectDefaultTypeInternal _FieldSelect_default_instance_; -class FieldStore; -struct FieldStoreDefaultTypeInternal; -extern FieldStoreDefaultTypeInternal _FieldStore_default_instance_; -class Float; -struct FloatDefaultTypeInternal; -extern FloatDefaultTypeInternal _Float_default_instance_; -class FromExpr; -struct FromExprDefaultTypeInternal; -extern FromExprDefaultTypeInternal _FromExpr_default_instance_; -class FuncCall; -struct FuncCallDefaultTypeInternal; -extern FuncCallDefaultTypeInternal _FuncCall_default_instance_; -class FuncExpr; -struct FuncExprDefaultTypeInternal; -extern FuncExprDefaultTypeInternal _FuncExpr_default_instance_; -class FunctionParameter; -struct FunctionParameterDefaultTypeInternal; -extern FunctionParameterDefaultTypeInternal _FunctionParameter_default_instance_; -class GrantRoleStmt; -struct GrantRoleStmtDefaultTypeInternal; -extern GrantRoleStmtDefaultTypeInternal _GrantRoleStmt_default_instance_; -class GrantStmt; -struct GrantStmtDefaultTypeInternal; -extern GrantStmtDefaultTypeInternal _GrantStmt_default_instance_; -class GroupingFunc; -struct GroupingFuncDefaultTypeInternal; -extern GroupingFuncDefaultTypeInternal _GroupingFunc_default_instance_; -class GroupingSet; -struct GroupingSetDefaultTypeInternal; -extern GroupingSetDefaultTypeInternal _GroupingSet_default_instance_; -class ImportForeignSchemaStmt; -struct ImportForeignSchemaStmtDefaultTypeInternal; -extern ImportForeignSchemaStmtDefaultTypeInternal _ImportForeignSchemaStmt_default_instance_; -class IndexElem; -struct IndexElemDefaultTypeInternal; -extern IndexElemDefaultTypeInternal _IndexElem_default_instance_; -class IndexStmt; -struct IndexStmtDefaultTypeInternal; -extern IndexStmtDefaultTypeInternal _IndexStmt_default_instance_; -class InferClause; -struct InferClauseDefaultTypeInternal; -extern InferClauseDefaultTypeInternal _InferClause_default_instance_; -class InferenceElem; -struct InferenceElemDefaultTypeInternal; -extern InferenceElemDefaultTypeInternal _InferenceElem_default_instance_; -class InlineCodeBlock; -struct InlineCodeBlockDefaultTypeInternal; -extern InlineCodeBlockDefaultTypeInternal _InlineCodeBlock_default_instance_; -class InsertStmt; -struct InsertStmtDefaultTypeInternal; -extern InsertStmtDefaultTypeInternal _InsertStmt_default_instance_; -class IntList; -struct IntListDefaultTypeInternal; -extern IntListDefaultTypeInternal _IntList_default_instance_; -class Integer; -struct IntegerDefaultTypeInternal; -extern IntegerDefaultTypeInternal _Integer_default_instance_; -class IntoClause; -struct IntoClauseDefaultTypeInternal; -extern IntoClauseDefaultTypeInternal _IntoClause_default_instance_; -class JoinExpr; -struct JoinExprDefaultTypeInternal; -extern JoinExprDefaultTypeInternal _JoinExpr_default_instance_; -class List; -struct ListDefaultTypeInternal; -extern ListDefaultTypeInternal _List_default_instance_; -class ListenStmt; -struct ListenStmtDefaultTypeInternal; -extern ListenStmtDefaultTypeInternal _ListenStmt_default_instance_; -class LoadStmt; -struct LoadStmtDefaultTypeInternal; -extern LoadStmtDefaultTypeInternal _LoadStmt_default_instance_; -class LockStmt; -struct LockStmtDefaultTypeInternal; -extern LockStmtDefaultTypeInternal _LockStmt_default_instance_; -class LockingClause; -struct LockingClauseDefaultTypeInternal; -extern LockingClauseDefaultTypeInternal _LockingClause_default_instance_; -class MergeAction; -struct MergeActionDefaultTypeInternal; -extern MergeActionDefaultTypeInternal _MergeAction_default_instance_; -class MergeStmt; -struct MergeStmtDefaultTypeInternal; -extern MergeStmtDefaultTypeInternal _MergeStmt_default_instance_; -class MergeWhenClause; -struct MergeWhenClauseDefaultTypeInternal; -extern MergeWhenClauseDefaultTypeInternal _MergeWhenClause_default_instance_; -class MinMaxExpr; -struct MinMaxExprDefaultTypeInternal; -extern MinMaxExprDefaultTypeInternal _MinMaxExpr_default_instance_; -class MultiAssignRef; -struct MultiAssignRefDefaultTypeInternal; -extern MultiAssignRefDefaultTypeInternal _MultiAssignRef_default_instance_; -class NamedArgExpr; -struct NamedArgExprDefaultTypeInternal; -extern NamedArgExprDefaultTypeInternal _NamedArgExpr_default_instance_; -class NextValueExpr; -struct NextValueExprDefaultTypeInternal; -extern NextValueExprDefaultTypeInternal _NextValueExpr_default_instance_; -class Node; -struct NodeDefaultTypeInternal; -extern NodeDefaultTypeInternal _Node_default_instance_; -class NotifyStmt; -struct NotifyStmtDefaultTypeInternal; -extern NotifyStmtDefaultTypeInternal _NotifyStmt_default_instance_; -class NullIfExpr; -struct NullIfExprDefaultTypeInternal; -extern NullIfExprDefaultTypeInternal _NullIfExpr_default_instance_; -class NullTest; -struct NullTestDefaultTypeInternal; -extern NullTestDefaultTypeInternal _NullTest_default_instance_; -class ObjectWithArgs; -struct ObjectWithArgsDefaultTypeInternal; -extern ObjectWithArgsDefaultTypeInternal _ObjectWithArgs_default_instance_; -class OidList; -struct OidListDefaultTypeInternal; -extern OidListDefaultTypeInternal _OidList_default_instance_; -class OnConflictClause; -struct OnConflictClauseDefaultTypeInternal; -extern OnConflictClauseDefaultTypeInternal _OnConflictClause_default_instance_; -class OnConflictExpr; -struct OnConflictExprDefaultTypeInternal; -extern OnConflictExprDefaultTypeInternal _OnConflictExpr_default_instance_; -class OpExpr; -struct OpExprDefaultTypeInternal; -extern OpExprDefaultTypeInternal _OpExpr_default_instance_; -class PLAssignStmt; -struct PLAssignStmtDefaultTypeInternal; -extern PLAssignStmtDefaultTypeInternal _PLAssignStmt_default_instance_; -class Param; -struct ParamDefaultTypeInternal; -extern ParamDefaultTypeInternal _Param_default_instance_; -class ParamRef; -struct ParamRefDefaultTypeInternal; -extern ParamRefDefaultTypeInternal _ParamRef_default_instance_; -class ParseResult; -struct ParseResultDefaultTypeInternal; -extern ParseResultDefaultTypeInternal _ParseResult_default_instance_; -class PartitionBoundSpec; -struct PartitionBoundSpecDefaultTypeInternal; -extern PartitionBoundSpecDefaultTypeInternal _PartitionBoundSpec_default_instance_; -class PartitionCmd; -struct PartitionCmdDefaultTypeInternal; -extern PartitionCmdDefaultTypeInternal _PartitionCmd_default_instance_; -class PartitionElem; -struct PartitionElemDefaultTypeInternal; -extern PartitionElemDefaultTypeInternal _PartitionElem_default_instance_; -class PartitionRangeDatum; -struct PartitionRangeDatumDefaultTypeInternal; -extern PartitionRangeDatumDefaultTypeInternal _PartitionRangeDatum_default_instance_; -class PartitionSpec; -struct PartitionSpecDefaultTypeInternal; -extern PartitionSpecDefaultTypeInternal _PartitionSpec_default_instance_; -class PrepareStmt; -struct PrepareStmtDefaultTypeInternal; -extern PrepareStmtDefaultTypeInternal _PrepareStmt_default_instance_; -class PublicationObjSpec; -struct PublicationObjSpecDefaultTypeInternal; -extern PublicationObjSpecDefaultTypeInternal _PublicationObjSpec_default_instance_; -class PublicationTable; -struct PublicationTableDefaultTypeInternal; -extern PublicationTableDefaultTypeInternal _PublicationTable_default_instance_; -class Query; -struct QueryDefaultTypeInternal; -extern QueryDefaultTypeInternal _Query_default_instance_; -class RangeFunction; -struct RangeFunctionDefaultTypeInternal; -extern RangeFunctionDefaultTypeInternal _RangeFunction_default_instance_; -class RangeSubselect; -struct RangeSubselectDefaultTypeInternal; -extern RangeSubselectDefaultTypeInternal _RangeSubselect_default_instance_; -class RangeTableFunc; -struct RangeTableFuncDefaultTypeInternal; -extern RangeTableFuncDefaultTypeInternal _RangeTableFunc_default_instance_; -class RangeTableFuncCol; -struct RangeTableFuncColDefaultTypeInternal; -extern RangeTableFuncColDefaultTypeInternal _RangeTableFuncCol_default_instance_; -class RangeTableSample; -struct RangeTableSampleDefaultTypeInternal; -extern RangeTableSampleDefaultTypeInternal _RangeTableSample_default_instance_; -class RangeTblEntry; -struct RangeTblEntryDefaultTypeInternal; -extern RangeTblEntryDefaultTypeInternal _RangeTblEntry_default_instance_; -class RangeTblFunction; -struct RangeTblFunctionDefaultTypeInternal; -extern RangeTblFunctionDefaultTypeInternal _RangeTblFunction_default_instance_; -class RangeTblRef; -struct RangeTblRefDefaultTypeInternal; -extern RangeTblRefDefaultTypeInternal _RangeTblRef_default_instance_; -class RangeVar; -struct RangeVarDefaultTypeInternal; -extern RangeVarDefaultTypeInternal _RangeVar_default_instance_; -class RawStmt; -struct RawStmtDefaultTypeInternal; -extern RawStmtDefaultTypeInternal _RawStmt_default_instance_; -class ReassignOwnedStmt; -struct ReassignOwnedStmtDefaultTypeInternal; -extern ReassignOwnedStmtDefaultTypeInternal _ReassignOwnedStmt_default_instance_; -class RefreshMatViewStmt; -struct RefreshMatViewStmtDefaultTypeInternal; -extern RefreshMatViewStmtDefaultTypeInternal _RefreshMatViewStmt_default_instance_; -class ReindexStmt; -struct ReindexStmtDefaultTypeInternal; -extern ReindexStmtDefaultTypeInternal _ReindexStmt_default_instance_; -class RelabelType; -struct RelabelTypeDefaultTypeInternal; -extern RelabelTypeDefaultTypeInternal _RelabelType_default_instance_; -class RenameStmt; -struct RenameStmtDefaultTypeInternal; -extern RenameStmtDefaultTypeInternal _RenameStmt_default_instance_; -class ReplicaIdentityStmt; -struct ReplicaIdentityStmtDefaultTypeInternal; -extern ReplicaIdentityStmtDefaultTypeInternal _ReplicaIdentityStmt_default_instance_; -class ResTarget; -struct ResTargetDefaultTypeInternal; -extern ResTargetDefaultTypeInternal _ResTarget_default_instance_; -class ReturnStmt; -struct ReturnStmtDefaultTypeInternal; -extern ReturnStmtDefaultTypeInternal _ReturnStmt_default_instance_; -class RoleSpec; -struct RoleSpecDefaultTypeInternal; -extern RoleSpecDefaultTypeInternal _RoleSpec_default_instance_; -class RowCompareExpr; -struct RowCompareExprDefaultTypeInternal; -extern RowCompareExprDefaultTypeInternal _RowCompareExpr_default_instance_; -class RowExpr; -struct RowExprDefaultTypeInternal; -extern RowExprDefaultTypeInternal _RowExpr_default_instance_; -class RowMarkClause; -struct RowMarkClauseDefaultTypeInternal; -extern RowMarkClauseDefaultTypeInternal _RowMarkClause_default_instance_; -class RuleStmt; -struct RuleStmtDefaultTypeInternal; -extern RuleStmtDefaultTypeInternal _RuleStmt_default_instance_; -class SQLValueFunction; -struct SQLValueFunctionDefaultTypeInternal; -extern SQLValueFunctionDefaultTypeInternal _SQLValueFunction_default_instance_; -class ScalarArrayOpExpr; -struct ScalarArrayOpExprDefaultTypeInternal; -extern ScalarArrayOpExprDefaultTypeInternal _ScalarArrayOpExpr_default_instance_; -class ScanResult; -struct ScanResultDefaultTypeInternal; -extern ScanResultDefaultTypeInternal _ScanResult_default_instance_; -class ScanToken; -struct ScanTokenDefaultTypeInternal; -extern ScanTokenDefaultTypeInternal _ScanToken_default_instance_; -class SecLabelStmt; -struct SecLabelStmtDefaultTypeInternal; -extern SecLabelStmtDefaultTypeInternal _SecLabelStmt_default_instance_; -class SelectStmt; -struct SelectStmtDefaultTypeInternal; -extern SelectStmtDefaultTypeInternal _SelectStmt_default_instance_; -class SetOperationStmt; -struct SetOperationStmtDefaultTypeInternal; -extern SetOperationStmtDefaultTypeInternal _SetOperationStmt_default_instance_; -class SetToDefault; -struct SetToDefaultDefaultTypeInternal; -extern SetToDefaultDefaultTypeInternal _SetToDefault_default_instance_; -class SortBy; -struct SortByDefaultTypeInternal; -extern SortByDefaultTypeInternal _SortBy_default_instance_; -class SortGroupClause; -struct SortGroupClauseDefaultTypeInternal; -extern SortGroupClauseDefaultTypeInternal _SortGroupClause_default_instance_; -class StatsElem; -struct StatsElemDefaultTypeInternal; -extern StatsElemDefaultTypeInternal _StatsElem_default_instance_; -class String; -struct StringDefaultTypeInternal; -extern StringDefaultTypeInternal _String_default_instance_; -class SubLink; -struct SubLinkDefaultTypeInternal; -extern SubLinkDefaultTypeInternal _SubLink_default_instance_; -class SubPlan; -struct SubPlanDefaultTypeInternal; -extern SubPlanDefaultTypeInternal _SubPlan_default_instance_; -class SubscriptingRef; -struct SubscriptingRefDefaultTypeInternal; -extern SubscriptingRefDefaultTypeInternal _SubscriptingRef_default_instance_; -class TableFunc; -struct TableFuncDefaultTypeInternal; -extern TableFuncDefaultTypeInternal _TableFunc_default_instance_; -class TableLikeClause; -struct TableLikeClauseDefaultTypeInternal; -extern TableLikeClauseDefaultTypeInternal _TableLikeClause_default_instance_; -class TableSampleClause; -struct TableSampleClauseDefaultTypeInternal; -extern TableSampleClauseDefaultTypeInternal _TableSampleClause_default_instance_; -class TargetEntry; -struct TargetEntryDefaultTypeInternal; -extern TargetEntryDefaultTypeInternal _TargetEntry_default_instance_; -class TransactionStmt; -struct TransactionStmtDefaultTypeInternal; -extern TransactionStmtDefaultTypeInternal _TransactionStmt_default_instance_; -class TriggerTransition; -struct TriggerTransitionDefaultTypeInternal; -extern TriggerTransitionDefaultTypeInternal _TriggerTransition_default_instance_; -class TruncateStmt; -struct TruncateStmtDefaultTypeInternal; -extern TruncateStmtDefaultTypeInternal _TruncateStmt_default_instance_; -class TypeCast; -struct TypeCastDefaultTypeInternal; -extern TypeCastDefaultTypeInternal _TypeCast_default_instance_; -class TypeName; -struct TypeNameDefaultTypeInternal; -extern TypeNameDefaultTypeInternal _TypeName_default_instance_; -class UnlistenStmt; -struct UnlistenStmtDefaultTypeInternal; -extern UnlistenStmtDefaultTypeInternal _UnlistenStmt_default_instance_; -class UpdateStmt; -struct UpdateStmtDefaultTypeInternal; -extern UpdateStmtDefaultTypeInternal _UpdateStmt_default_instance_; -class VacuumRelation; -struct VacuumRelationDefaultTypeInternal; -extern VacuumRelationDefaultTypeInternal _VacuumRelation_default_instance_; -class VacuumStmt; -struct VacuumStmtDefaultTypeInternal; -extern VacuumStmtDefaultTypeInternal _VacuumStmt_default_instance_; -class Var; -struct VarDefaultTypeInternal; -extern VarDefaultTypeInternal _Var_default_instance_; -class VariableSetStmt; -struct VariableSetStmtDefaultTypeInternal; -extern VariableSetStmtDefaultTypeInternal _VariableSetStmt_default_instance_; -class VariableShowStmt; -struct VariableShowStmtDefaultTypeInternal; -extern VariableShowStmtDefaultTypeInternal _VariableShowStmt_default_instance_; -class ViewStmt; -struct ViewStmtDefaultTypeInternal; -extern ViewStmtDefaultTypeInternal _ViewStmt_default_instance_; -class WindowClause; -struct WindowClauseDefaultTypeInternal; -extern WindowClauseDefaultTypeInternal _WindowClause_default_instance_; -class WindowDef; -struct WindowDefDefaultTypeInternal; -extern WindowDefDefaultTypeInternal _WindowDef_default_instance_; -class WindowFunc; -struct WindowFuncDefaultTypeInternal; -extern WindowFuncDefaultTypeInternal _WindowFunc_default_instance_; -class WithCheckOption; -struct WithCheckOptionDefaultTypeInternal; -extern WithCheckOptionDefaultTypeInternal _WithCheckOption_default_instance_; -class WithClause; -struct WithClauseDefaultTypeInternal; -extern WithClauseDefaultTypeInternal _WithClause_default_instance_; -class XmlExpr; -struct XmlExprDefaultTypeInternal; -extern XmlExprDefaultTypeInternal _XmlExpr_default_instance_; -class XmlSerialize; -struct XmlSerializeDefaultTypeInternal; -extern XmlSerializeDefaultTypeInternal _XmlSerialize_default_instance_; -} // namespace pg_query -PROTOBUF_NAMESPACE_OPEN -template<> ::pg_query::A_ArrayExpr* Arena::CreateMaybeMessage<::pg_query::A_ArrayExpr>(Arena*); -template<> ::pg_query::A_Const* Arena::CreateMaybeMessage<::pg_query::A_Const>(Arena*); -template<> ::pg_query::A_Expr* Arena::CreateMaybeMessage<::pg_query::A_Expr>(Arena*); -template<> ::pg_query::A_Indices* Arena::CreateMaybeMessage<::pg_query::A_Indices>(Arena*); -template<> ::pg_query::A_Indirection* Arena::CreateMaybeMessage<::pg_query::A_Indirection>(Arena*); -template<> ::pg_query::A_Star* Arena::CreateMaybeMessage<::pg_query::A_Star>(Arena*); -template<> ::pg_query::AccessPriv* Arena::CreateMaybeMessage<::pg_query::AccessPriv>(Arena*); -template<> ::pg_query::Aggref* Arena::CreateMaybeMessage<::pg_query::Aggref>(Arena*); -template<> ::pg_query::Alias* Arena::CreateMaybeMessage<::pg_query::Alias>(Arena*); -template<> ::pg_query::AlterCollationStmt* Arena::CreateMaybeMessage<::pg_query::AlterCollationStmt>(Arena*); -template<> ::pg_query::AlterDatabaseRefreshCollStmt* Arena::CreateMaybeMessage<::pg_query::AlterDatabaseRefreshCollStmt>(Arena*); -template<> ::pg_query::AlterDatabaseSetStmt* Arena::CreateMaybeMessage<::pg_query::AlterDatabaseSetStmt>(Arena*); -template<> ::pg_query::AlterDatabaseStmt* Arena::CreateMaybeMessage<::pg_query::AlterDatabaseStmt>(Arena*); -template<> ::pg_query::AlterDefaultPrivilegesStmt* Arena::CreateMaybeMessage<::pg_query::AlterDefaultPrivilegesStmt>(Arena*); -template<> ::pg_query::AlterDomainStmt* Arena::CreateMaybeMessage<::pg_query::AlterDomainStmt>(Arena*); -template<> ::pg_query::AlterEnumStmt* Arena::CreateMaybeMessage<::pg_query::AlterEnumStmt>(Arena*); -template<> ::pg_query::AlterEventTrigStmt* Arena::CreateMaybeMessage<::pg_query::AlterEventTrigStmt>(Arena*); -template<> ::pg_query::AlterExtensionContentsStmt* Arena::CreateMaybeMessage<::pg_query::AlterExtensionContentsStmt>(Arena*); -template<> ::pg_query::AlterExtensionStmt* Arena::CreateMaybeMessage<::pg_query::AlterExtensionStmt>(Arena*); -template<> ::pg_query::AlterFdwStmt* Arena::CreateMaybeMessage<::pg_query::AlterFdwStmt>(Arena*); -template<> ::pg_query::AlterForeignServerStmt* Arena::CreateMaybeMessage<::pg_query::AlterForeignServerStmt>(Arena*); -template<> ::pg_query::AlterFunctionStmt* Arena::CreateMaybeMessage<::pg_query::AlterFunctionStmt>(Arena*); -template<> ::pg_query::AlterObjectDependsStmt* Arena::CreateMaybeMessage<::pg_query::AlterObjectDependsStmt>(Arena*); -template<> ::pg_query::AlterObjectSchemaStmt* Arena::CreateMaybeMessage<::pg_query::AlterObjectSchemaStmt>(Arena*); -template<> ::pg_query::AlterOpFamilyStmt* Arena::CreateMaybeMessage<::pg_query::AlterOpFamilyStmt>(Arena*); -template<> ::pg_query::AlterOperatorStmt* Arena::CreateMaybeMessage<::pg_query::AlterOperatorStmt>(Arena*); -template<> ::pg_query::AlterOwnerStmt* Arena::CreateMaybeMessage<::pg_query::AlterOwnerStmt>(Arena*); -template<> ::pg_query::AlterPolicyStmt* Arena::CreateMaybeMessage<::pg_query::AlterPolicyStmt>(Arena*); -template<> ::pg_query::AlterPublicationStmt* Arena::CreateMaybeMessage<::pg_query::AlterPublicationStmt>(Arena*); -template<> ::pg_query::AlterRoleSetStmt* Arena::CreateMaybeMessage<::pg_query::AlterRoleSetStmt>(Arena*); -template<> ::pg_query::AlterRoleStmt* Arena::CreateMaybeMessage<::pg_query::AlterRoleStmt>(Arena*); -template<> ::pg_query::AlterSeqStmt* Arena::CreateMaybeMessage<::pg_query::AlterSeqStmt>(Arena*); -template<> ::pg_query::AlterStatsStmt* Arena::CreateMaybeMessage<::pg_query::AlterStatsStmt>(Arena*); -template<> ::pg_query::AlterSubscriptionStmt* Arena::CreateMaybeMessage<::pg_query::AlterSubscriptionStmt>(Arena*); -template<> ::pg_query::AlterSystemStmt* Arena::CreateMaybeMessage<::pg_query::AlterSystemStmt>(Arena*); -template<> ::pg_query::AlterTSConfigurationStmt* Arena::CreateMaybeMessage<::pg_query::AlterTSConfigurationStmt>(Arena*); -template<> ::pg_query::AlterTSDictionaryStmt* Arena::CreateMaybeMessage<::pg_query::AlterTSDictionaryStmt>(Arena*); -template<> ::pg_query::AlterTableCmd* Arena::CreateMaybeMessage<::pg_query::AlterTableCmd>(Arena*); -template<> ::pg_query::AlterTableMoveAllStmt* Arena::CreateMaybeMessage<::pg_query::AlterTableMoveAllStmt>(Arena*); -template<> ::pg_query::AlterTableSpaceOptionsStmt* Arena::CreateMaybeMessage<::pg_query::AlterTableSpaceOptionsStmt>(Arena*); -template<> ::pg_query::AlterTableStmt* Arena::CreateMaybeMessage<::pg_query::AlterTableStmt>(Arena*); -template<> ::pg_query::AlterTypeStmt* Arena::CreateMaybeMessage<::pg_query::AlterTypeStmt>(Arena*); -template<> ::pg_query::AlterUserMappingStmt* Arena::CreateMaybeMessage<::pg_query::AlterUserMappingStmt>(Arena*); -template<> ::pg_query::AlternativeSubPlan* Arena::CreateMaybeMessage<::pg_query::AlternativeSubPlan>(Arena*); -template<> ::pg_query::ArrayCoerceExpr* Arena::CreateMaybeMessage<::pg_query::ArrayCoerceExpr>(Arena*); -template<> ::pg_query::ArrayExpr* Arena::CreateMaybeMessage<::pg_query::ArrayExpr>(Arena*); -template<> ::pg_query::BitString* Arena::CreateMaybeMessage<::pg_query::BitString>(Arena*); -template<> ::pg_query::BoolExpr* Arena::CreateMaybeMessage<::pg_query::BoolExpr>(Arena*); -template<> ::pg_query::Boolean* Arena::CreateMaybeMessage<::pg_query::Boolean>(Arena*); -template<> ::pg_query::BooleanTest* Arena::CreateMaybeMessage<::pg_query::BooleanTest>(Arena*); -template<> ::pg_query::CTECycleClause* Arena::CreateMaybeMessage<::pg_query::CTECycleClause>(Arena*); -template<> ::pg_query::CTESearchClause* Arena::CreateMaybeMessage<::pg_query::CTESearchClause>(Arena*); -template<> ::pg_query::CallContext* Arena::CreateMaybeMessage<::pg_query::CallContext>(Arena*); -template<> ::pg_query::CallStmt* Arena::CreateMaybeMessage<::pg_query::CallStmt>(Arena*); -template<> ::pg_query::CaseExpr* Arena::CreateMaybeMessage<::pg_query::CaseExpr>(Arena*); -template<> ::pg_query::CaseTestExpr* Arena::CreateMaybeMessage<::pg_query::CaseTestExpr>(Arena*); -template<> ::pg_query::CaseWhen* Arena::CreateMaybeMessage<::pg_query::CaseWhen>(Arena*); -template<> ::pg_query::CheckPointStmt* Arena::CreateMaybeMessage<::pg_query::CheckPointStmt>(Arena*); -template<> ::pg_query::ClosePortalStmt* Arena::CreateMaybeMessage<::pg_query::ClosePortalStmt>(Arena*); -template<> ::pg_query::ClusterStmt* Arena::CreateMaybeMessage<::pg_query::ClusterStmt>(Arena*); -template<> ::pg_query::CoalesceExpr* Arena::CreateMaybeMessage<::pg_query::CoalesceExpr>(Arena*); -template<> ::pg_query::CoerceToDomain* Arena::CreateMaybeMessage<::pg_query::CoerceToDomain>(Arena*); -template<> ::pg_query::CoerceToDomainValue* Arena::CreateMaybeMessage<::pg_query::CoerceToDomainValue>(Arena*); -template<> ::pg_query::CoerceViaIO* Arena::CreateMaybeMessage<::pg_query::CoerceViaIO>(Arena*); -template<> ::pg_query::CollateClause* Arena::CreateMaybeMessage<::pg_query::CollateClause>(Arena*); -template<> ::pg_query::CollateExpr* Arena::CreateMaybeMessage<::pg_query::CollateExpr>(Arena*); -template<> ::pg_query::ColumnDef* Arena::CreateMaybeMessage<::pg_query::ColumnDef>(Arena*); -template<> ::pg_query::ColumnRef* Arena::CreateMaybeMessage<::pg_query::ColumnRef>(Arena*); -template<> ::pg_query::CommentStmt* Arena::CreateMaybeMessage<::pg_query::CommentStmt>(Arena*); -template<> ::pg_query::CommonTableExpr* Arena::CreateMaybeMessage<::pg_query::CommonTableExpr>(Arena*); -template<> ::pg_query::CompositeTypeStmt* Arena::CreateMaybeMessage<::pg_query::CompositeTypeStmt>(Arena*); -template<> ::pg_query::Constraint* Arena::CreateMaybeMessage<::pg_query::Constraint>(Arena*); -template<> ::pg_query::ConstraintsSetStmt* Arena::CreateMaybeMessage<::pg_query::ConstraintsSetStmt>(Arena*); -template<> ::pg_query::ConvertRowtypeExpr* Arena::CreateMaybeMessage<::pg_query::ConvertRowtypeExpr>(Arena*); -template<> ::pg_query::CopyStmt* Arena::CreateMaybeMessage<::pg_query::CopyStmt>(Arena*); -template<> ::pg_query::CreateAmStmt* Arena::CreateMaybeMessage<::pg_query::CreateAmStmt>(Arena*); -template<> ::pg_query::CreateCastStmt* Arena::CreateMaybeMessage<::pg_query::CreateCastStmt>(Arena*); -template<> ::pg_query::CreateConversionStmt* Arena::CreateMaybeMessage<::pg_query::CreateConversionStmt>(Arena*); -template<> ::pg_query::CreateDomainStmt* Arena::CreateMaybeMessage<::pg_query::CreateDomainStmt>(Arena*); -template<> ::pg_query::CreateEnumStmt* Arena::CreateMaybeMessage<::pg_query::CreateEnumStmt>(Arena*); -template<> ::pg_query::CreateEventTrigStmt* Arena::CreateMaybeMessage<::pg_query::CreateEventTrigStmt>(Arena*); -template<> ::pg_query::CreateExtensionStmt* Arena::CreateMaybeMessage<::pg_query::CreateExtensionStmt>(Arena*); -template<> ::pg_query::CreateFdwStmt* Arena::CreateMaybeMessage<::pg_query::CreateFdwStmt>(Arena*); -template<> ::pg_query::CreateForeignServerStmt* Arena::CreateMaybeMessage<::pg_query::CreateForeignServerStmt>(Arena*); -template<> ::pg_query::CreateForeignTableStmt* Arena::CreateMaybeMessage<::pg_query::CreateForeignTableStmt>(Arena*); -template<> ::pg_query::CreateFunctionStmt* Arena::CreateMaybeMessage<::pg_query::CreateFunctionStmt>(Arena*); -template<> ::pg_query::CreateOpClassItem* Arena::CreateMaybeMessage<::pg_query::CreateOpClassItem>(Arena*); -template<> ::pg_query::CreateOpClassStmt* Arena::CreateMaybeMessage<::pg_query::CreateOpClassStmt>(Arena*); -template<> ::pg_query::CreateOpFamilyStmt* Arena::CreateMaybeMessage<::pg_query::CreateOpFamilyStmt>(Arena*); -template<> ::pg_query::CreatePLangStmt* Arena::CreateMaybeMessage<::pg_query::CreatePLangStmt>(Arena*); -template<> ::pg_query::CreatePolicyStmt* Arena::CreateMaybeMessage<::pg_query::CreatePolicyStmt>(Arena*); -template<> ::pg_query::CreatePublicationStmt* Arena::CreateMaybeMessage<::pg_query::CreatePublicationStmt>(Arena*); -template<> ::pg_query::CreateRangeStmt* Arena::CreateMaybeMessage<::pg_query::CreateRangeStmt>(Arena*); -template<> ::pg_query::CreateRoleStmt* Arena::CreateMaybeMessage<::pg_query::CreateRoleStmt>(Arena*); -template<> ::pg_query::CreateSchemaStmt* Arena::CreateMaybeMessage<::pg_query::CreateSchemaStmt>(Arena*); -template<> ::pg_query::CreateSeqStmt* Arena::CreateMaybeMessage<::pg_query::CreateSeqStmt>(Arena*); -template<> ::pg_query::CreateStatsStmt* Arena::CreateMaybeMessage<::pg_query::CreateStatsStmt>(Arena*); -template<> ::pg_query::CreateStmt* Arena::CreateMaybeMessage<::pg_query::CreateStmt>(Arena*); -template<> ::pg_query::CreateSubscriptionStmt* Arena::CreateMaybeMessage<::pg_query::CreateSubscriptionStmt>(Arena*); -template<> ::pg_query::CreateTableAsStmt* Arena::CreateMaybeMessage<::pg_query::CreateTableAsStmt>(Arena*); -template<> ::pg_query::CreateTableSpaceStmt* Arena::CreateMaybeMessage<::pg_query::CreateTableSpaceStmt>(Arena*); -template<> ::pg_query::CreateTransformStmt* Arena::CreateMaybeMessage<::pg_query::CreateTransformStmt>(Arena*); -template<> ::pg_query::CreateTrigStmt* Arena::CreateMaybeMessage<::pg_query::CreateTrigStmt>(Arena*); -template<> ::pg_query::CreateUserMappingStmt* Arena::CreateMaybeMessage<::pg_query::CreateUserMappingStmt>(Arena*); -template<> ::pg_query::CreatedbStmt* Arena::CreateMaybeMessage<::pg_query::CreatedbStmt>(Arena*); -template<> ::pg_query::CurrentOfExpr* Arena::CreateMaybeMessage<::pg_query::CurrentOfExpr>(Arena*); -template<> ::pg_query::DeallocateStmt* Arena::CreateMaybeMessage<::pg_query::DeallocateStmt>(Arena*); -template<> ::pg_query::DeclareCursorStmt* Arena::CreateMaybeMessage<::pg_query::DeclareCursorStmt>(Arena*); -template<> ::pg_query::DefElem* Arena::CreateMaybeMessage<::pg_query::DefElem>(Arena*); -template<> ::pg_query::DefineStmt* Arena::CreateMaybeMessage<::pg_query::DefineStmt>(Arena*); -template<> ::pg_query::DeleteStmt* Arena::CreateMaybeMessage<::pg_query::DeleteStmt>(Arena*); -template<> ::pg_query::DiscardStmt* Arena::CreateMaybeMessage<::pg_query::DiscardStmt>(Arena*); -template<> ::pg_query::DistinctExpr* Arena::CreateMaybeMessage<::pg_query::DistinctExpr>(Arena*); -template<> ::pg_query::DoStmt* Arena::CreateMaybeMessage<::pg_query::DoStmt>(Arena*); -template<> ::pg_query::DropOwnedStmt* Arena::CreateMaybeMessage<::pg_query::DropOwnedStmt>(Arena*); -template<> ::pg_query::DropRoleStmt* Arena::CreateMaybeMessage<::pg_query::DropRoleStmt>(Arena*); -template<> ::pg_query::DropStmt* Arena::CreateMaybeMessage<::pg_query::DropStmt>(Arena*); -template<> ::pg_query::DropSubscriptionStmt* Arena::CreateMaybeMessage<::pg_query::DropSubscriptionStmt>(Arena*); -template<> ::pg_query::DropTableSpaceStmt* Arena::CreateMaybeMessage<::pg_query::DropTableSpaceStmt>(Arena*); -template<> ::pg_query::DropUserMappingStmt* Arena::CreateMaybeMessage<::pg_query::DropUserMappingStmt>(Arena*); -template<> ::pg_query::DropdbStmt* Arena::CreateMaybeMessage<::pg_query::DropdbStmt>(Arena*); -template<> ::pg_query::ExecuteStmt* Arena::CreateMaybeMessage<::pg_query::ExecuteStmt>(Arena*); -template<> ::pg_query::ExplainStmt* Arena::CreateMaybeMessage<::pg_query::ExplainStmt>(Arena*); -template<> ::pg_query::FetchStmt* Arena::CreateMaybeMessage<::pg_query::FetchStmt>(Arena*); -template<> ::pg_query::FieldSelect* Arena::CreateMaybeMessage<::pg_query::FieldSelect>(Arena*); -template<> ::pg_query::FieldStore* Arena::CreateMaybeMessage<::pg_query::FieldStore>(Arena*); -template<> ::pg_query::Float* Arena::CreateMaybeMessage<::pg_query::Float>(Arena*); -template<> ::pg_query::FromExpr* Arena::CreateMaybeMessage<::pg_query::FromExpr>(Arena*); -template<> ::pg_query::FuncCall* Arena::CreateMaybeMessage<::pg_query::FuncCall>(Arena*); -template<> ::pg_query::FuncExpr* Arena::CreateMaybeMessage<::pg_query::FuncExpr>(Arena*); -template<> ::pg_query::FunctionParameter* Arena::CreateMaybeMessage<::pg_query::FunctionParameter>(Arena*); -template<> ::pg_query::GrantRoleStmt* Arena::CreateMaybeMessage<::pg_query::GrantRoleStmt>(Arena*); -template<> ::pg_query::GrantStmt* Arena::CreateMaybeMessage<::pg_query::GrantStmt>(Arena*); -template<> ::pg_query::GroupingFunc* Arena::CreateMaybeMessage<::pg_query::GroupingFunc>(Arena*); -template<> ::pg_query::GroupingSet* Arena::CreateMaybeMessage<::pg_query::GroupingSet>(Arena*); -template<> ::pg_query::ImportForeignSchemaStmt* Arena::CreateMaybeMessage<::pg_query::ImportForeignSchemaStmt>(Arena*); -template<> ::pg_query::IndexElem* Arena::CreateMaybeMessage<::pg_query::IndexElem>(Arena*); -template<> ::pg_query::IndexStmt* Arena::CreateMaybeMessage<::pg_query::IndexStmt>(Arena*); -template<> ::pg_query::InferClause* Arena::CreateMaybeMessage<::pg_query::InferClause>(Arena*); -template<> ::pg_query::InferenceElem* Arena::CreateMaybeMessage<::pg_query::InferenceElem>(Arena*); -template<> ::pg_query::InlineCodeBlock* Arena::CreateMaybeMessage<::pg_query::InlineCodeBlock>(Arena*); -template<> ::pg_query::InsertStmt* Arena::CreateMaybeMessage<::pg_query::InsertStmt>(Arena*); -template<> ::pg_query::IntList* Arena::CreateMaybeMessage<::pg_query::IntList>(Arena*); -template<> ::pg_query::Integer* Arena::CreateMaybeMessage<::pg_query::Integer>(Arena*); -template<> ::pg_query::IntoClause* Arena::CreateMaybeMessage<::pg_query::IntoClause>(Arena*); -template<> ::pg_query::JoinExpr* Arena::CreateMaybeMessage<::pg_query::JoinExpr>(Arena*); -template<> ::pg_query::List* Arena::CreateMaybeMessage<::pg_query::List>(Arena*); -template<> ::pg_query::ListenStmt* Arena::CreateMaybeMessage<::pg_query::ListenStmt>(Arena*); -template<> ::pg_query::LoadStmt* Arena::CreateMaybeMessage<::pg_query::LoadStmt>(Arena*); -template<> ::pg_query::LockStmt* Arena::CreateMaybeMessage<::pg_query::LockStmt>(Arena*); -template<> ::pg_query::LockingClause* Arena::CreateMaybeMessage<::pg_query::LockingClause>(Arena*); -template<> ::pg_query::MergeAction* Arena::CreateMaybeMessage<::pg_query::MergeAction>(Arena*); -template<> ::pg_query::MergeStmt* Arena::CreateMaybeMessage<::pg_query::MergeStmt>(Arena*); -template<> ::pg_query::MergeWhenClause* Arena::CreateMaybeMessage<::pg_query::MergeWhenClause>(Arena*); -template<> ::pg_query::MinMaxExpr* Arena::CreateMaybeMessage<::pg_query::MinMaxExpr>(Arena*); -template<> ::pg_query::MultiAssignRef* Arena::CreateMaybeMessage<::pg_query::MultiAssignRef>(Arena*); -template<> ::pg_query::NamedArgExpr* Arena::CreateMaybeMessage<::pg_query::NamedArgExpr>(Arena*); -template<> ::pg_query::NextValueExpr* Arena::CreateMaybeMessage<::pg_query::NextValueExpr>(Arena*); -template<> ::pg_query::Node* Arena::CreateMaybeMessage<::pg_query::Node>(Arena*); -template<> ::pg_query::NotifyStmt* Arena::CreateMaybeMessage<::pg_query::NotifyStmt>(Arena*); -template<> ::pg_query::NullIfExpr* Arena::CreateMaybeMessage<::pg_query::NullIfExpr>(Arena*); -template<> ::pg_query::NullTest* Arena::CreateMaybeMessage<::pg_query::NullTest>(Arena*); -template<> ::pg_query::ObjectWithArgs* Arena::CreateMaybeMessage<::pg_query::ObjectWithArgs>(Arena*); -template<> ::pg_query::OidList* Arena::CreateMaybeMessage<::pg_query::OidList>(Arena*); -template<> ::pg_query::OnConflictClause* Arena::CreateMaybeMessage<::pg_query::OnConflictClause>(Arena*); -template<> ::pg_query::OnConflictExpr* Arena::CreateMaybeMessage<::pg_query::OnConflictExpr>(Arena*); -template<> ::pg_query::OpExpr* Arena::CreateMaybeMessage<::pg_query::OpExpr>(Arena*); -template<> ::pg_query::PLAssignStmt* Arena::CreateMaybeMessage<::pg_query::PLAssignStmt>(Arena*); -template<> ::pg_query::Param* Arena::CreateMaybeMessage<::pg_query::Param>(Arena*); -template<> ::pg_query::ParamRef* Arena::CreateMaybeMessage<::pg_query::ParamRef>(Arena*); -template<> ::pg_query::ParseResult* Arena::CreateMaybeMessage<::pg_query::ParseResult>(Arena*); -template<> ::pg_query::PartitionBoundSpec* Arena::CreateMaybeMessage<::pg_query::PartitionBoundSpec>(Arena*); -template<> ::pg_query::PartitionCmd* Arena::CreateMaybeMessage<::pg_query::PartitionCmd>(Arena*); -template<> ::pg_query::PartitionElem* Arena::CreateMaybeMessage<::pg_query::PartitionElem>(Arena*); -template<> ::pg_query::PartitionRangeDatum* Arena::CreateMaybeMessage<::pg_query::PartitionRangeDatum>(Arena*); -template<> ::pg_query::PartitionSpec* Arena::CreateMaybeMessage<::pg_query::PartitionSpec>(Arena*); -template<> ::pg_query::PrepareStmt* Arena::CreateMaybeMessage<::pg_query::PrepareStmt>(Arena*); -template<> ::pg_query::PublicationObjSpec* Arena::CreateMaybeMessage<::pg_query::PublicationObjSpec>(Arena*); -template<> ::pg_query::PublicationTable* Arena::CreateMaybeMessage<::pg_query::PublicationTable>(Arena*); -template<> ::pg_query::Query* Arena::CreateMaybeMessage<::pg_query::Query>(Arena*); -template<> ::pg_query::RangeFunction* Arena::CreateMaybeMessage<::pg_query::RangeFunction>(Arena*); -template<> ::pg_query::RangeSubselect* Arena::CreateMaybeMessage<::pg_query::RangeSubselect>(Arena*); -template<> ::pg_query::RangeTableFunc* Arena::CreateMaybeMessage<::pg_query::RangeTableFunc>(Arena*); -template<> ::pg_query::RangeTableFuncCol* Arena::CreateMaybeMessage<::pg_query::RangeTableFuncCol>(Arena*); -template<> ::pg_query::RangeTableSample* Arena::CreateMaybeMessage<::pg_query::RangeTableSample>(Arena*); -template<> ::pg_query::RangeTblEntry* Arena::CreateMaybeMessage<::pg_query::RangeTblEntry>(Arena*); -template<> ::pg_query::RangeTblFunction* Arena::CreateMaybeMessage<::pg_query::RangeTblFunction>(Arena*); -template<> ::pg_query::RangeTblRef* Arena::CreateMaybeMessage<::pg_query::RangeTblRef>(Arena*); -template<> ::pg_query::RangeVar* Arena::CreateMaybeMessage<::pg_query::RangeVar>(Arena*); -template<> ::pg_query::RawStmt* Arena::CreateMaybeMessage<::pg_query::RawStmt>(Arena*); -template<> ::pg_query::ReassignOwnedStmt* Arena::CreateMaybeMessage<::pg_query::ReassignOwnedStmt>(Arena*); -template<> ::pg_query::RefreshMatViewStmt* Arena::CreateMaybeMessage<::pg_query::RefreshMatViewStmt>(Arena*); -template<> ::pg_query::ReindexStmt* Arena::CreateMaybeMessage<::pg_query::ReindexStmt>(Arena*); -template<> ::pg_query::RelabelType* Arena::CreateMaybeMessage<::pg_query::RelabelType>(Arena*); -template<> ::pg_query::RenameStmt* Arena::CreateMaybeMessage<::pg_query::RenameStmt>(Arena*); -template<> ::pg_query::ReplicaIdentityStmt* Arena::CreateMaybeMessage<::pg_query::ReplicaIdentityStmt>(Arena*); -template<> ::pg_query::ResTarget* Arena::CreateMaybeMessage<::pg_query::ResTarget>(Arena*); -template<> ::pg_query::ReturnStmt* Arena::CreateMaybeMessage<::pg_query::ReturnStmt>(Arena*); -template<> ::pg_query::RoleSpec* Arena::CreateMaybeMessage<::pg_query::RoleSpec>(Arena*); -template<> ::pg_query::RowCompareExpr* Arena::CreateMaybeMessage<::pg_query::RowCompareExpr>(Arena*); -template<> ::pg_query::RowExpr* Arena::CreateMaybeMessage<::pg_query::RowExpr>(Arena*); -template<> ::pg_query::RowMarkClause* Arena::CreateMaybeMessage<::pg_query::RowMarkClause>(Arena*); -template<> ::pg_query::RuleStmt* Arena::CreateMaybeMessage<::pg_query::RuleStmt>(Arena*); -template<> ::pg_query::SQLValueFunction* Arena::CreateMaybeMessage<::pg_query::SQLValueFunction>(Arena*); -template<> ::pg_query::ScalarArrayOpExpr* Arena::CreateMaybeMessage<::pg_query::ScalarArrayOpExpr>(Arena*); -template<> ::pg_query::ScanResult* Arena::CreateMaybeMessage<::pg_query::ScanResult>(Arena*); -template<> ::pg_query::ScanToken* Arena::CreateMaybeMessage<::pg_query::ScanToken>(Arena*); -template<> ::pg_query::SecLabelStmt* Arena::CreateMaybeMessage<::pg_query::SecLabelStmt>(Arena*); -template<> ::pg_query::SelectStmt* Arena::CreateMaybeMessage<::pg_query::SelectStmt>(Arena*); -template<> ::pg_query::SetOperationStmt* Arena::CreateMaybeMessage<::pg_query::SetOperationStmt>(Arena*); -template<> ::pg_query::SetToDefault* Arena::CreateMaybeMessage<::pg_query::SetToDefault>(Arena*); -template<> ::pg_query::SortBy* Arena::CreateMaybeMessage<::pg_query::SortBy>(Arena*); -template<> ::pg_query::SortGroupClause* Arena::CreateMaybeMessage<::pg_query::SortGroupClause>(Arena*); -template<> ::pg_query::StatsElem* Arena::CreateMaybeMessage<::pg_query::StatsElem>(Arena*); -template<> ::pg_query::String* Arena::CreateMaybeMessage<::pg_query::String>(Arena*); -template<> ::pg_query::SubLink* Arena::CreateMaybeMessage<::pg_query::SubLink>(Arena*); -template<> ::pg_query::SubPlan* Arena::CreateMaybeMessage<::pg_query::SubPlan>(Arena*); -template<> ::pg_query::SubscriptingRef* Arena::CreateMaybeMessage<::pg_query::SubscriptingRef>(Arena*); -template<> ::pg_query::TableFunc* Arena::CreateMaybeMessage<::pg_query::TableFunc>(Arena*); -template<> ::pg_query::TableLikeClause* Arena::CreateMaybeMessage<::pg_query::TableLikeClause>(Arena*); -template<> ::pg_query::TableSampleClause* Arena::CreateMaybeMessage<::pg_query::TableSampleClause>(Arena*); -template<> ::pg_query::TargetEntry* Arena::CreateMaybeMessage<::pg_query::TargetEntry>(Arena*); -template<> ::pg_query::TransactionStmt* Arena::CreateMaybeMessage<::pg_query::TransactionStmt>(Arena*); -template<> ::pg_query::TriggerTransition* Arena::CreateMaybeMessage<::pg_query::TriggerTransition>(Arena*); -template<> ::pg_query::TruncateStmt* Arena::CreateMaybeMessage<::pg_query::TruncateStmt>(Arena*); -template<> ::pg_query::TypeCast* Arena::CreateMaybeMessage<::pg_query::TypeCast>(Arena*); -template<> ::pg_query::TypeName* Arena::CreateMaybeMessage<::pg_query::TypeName>(Arena*); -template<> ::pg_query::UnlistenStmt* Arena::CreateMaybeMessage<::pg_query::UnlistenStmt>(Arena*); -template<> ::pg_query::UpdateStmt* Arena::CreateMaybeMessage<::pg_query::UpdateStmt>(Arena*); -template<> ::pg_query::VacuumRelation* Arena::CreateMaybeMessage<::pg_query::VacuumRelation>(Arena*); -template<> ::pg_query::VacuumStmt* Arena::CreateMaybeMessage<::pg_query::VacuumStmt>(Arena*); -template<> ::pg_query::Var* Arena::CreateMaybeMessage<::pg_query::Var>(Arena*); -template<> ::pg_query::VariableSetStmt* Arena::CreateMaybeMessage<::pg_query::VariableSetStmt>(Arena*); -template<> ::pg_query::VariableShowStmt* Arena::CreateMaybeMessage<::pg_query::VariableShowStmt>(Arena*); -template<> ::pg_query::ViewStmt* Arena::CreateMaybeMessage<::pg_query::ViewStmt>(Arena*); -template<> ::pg_query::WindowClause* Arena::CreateMaybeMessage<::pg_query::WindowClause>(Arena*); -template<> ::pg_query::WindowDef* Arena::CreateMaybeMessage<::pg_query::WindowDef>(Arena*); -template<> ::pg_query::WindowFunc* Arena::CreateMaybeMessage<::pg_query::WindowFunc>(Arena*); -template<> ::pg_query::WithCheckOption* Arena::CreateMaybeMessage<::pg_query::WithCheckOption>(Arena*); -template<> ::pg_query::WithClause* Arena::CreateMaybeMessage<::pg_query::WithClause>(Arena*); -template<> ::pg_query::XmlExpr* Arena::CreateMaybeMessage<::pg_query::XmlExpr>(Arena*); -template<> ::pg_query::XmlSerialize* Arena::CreateMaybeMessage<::pg_query::XmlSerialize>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace pg_query { - -enum OverridingKind : int { - OVERRIDING_KIND_UNDEFINED = 0, - OVERRIDING_NOT_SET = 1, - OVERRIDING_USER_VALUE = 2, - OVERRIDING_SYSTEM_VALUE = 3, - OverridingKind_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - OverridingKind_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool OverridingKind_IsValid(int value); -constexpr OverridingKind OverridingKind_MIN = OVERRIDING_KIND_UNDEFINED; -constexpr OverridingKind OverridingKind_MAX = OVERRIDING_SYSTEM_VALUE; -constexpr int OverridingKind_ARRAYSIZE = OverridingKind_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OverridingKind_descriptor(); -template -inline const std::string& OverridingKind_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function OverridingKind_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - OverridingKind_descriptor(), enum_t_value); -} -inline bool OverridingKind_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OverridingKind* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - OverridingKind_descriptor(), name, value); -} -enum QuerySource : int { - QUERY_SOURCE_UNDEFINED = 0, - QSRC_ORIGINAL = 1, - QSRC_PARSER = 2, - QSRC_INSTEAD_RULE = 3, - QSRC_QUAL_INSTEAD_RULE = 4, - QSRC_NON_INSTEAD_RULE = 5, - QuerySource_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - QuerySource_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool QuerySource_IsValid(int value); -constexpr QuerySource QuerySource_MIN = QUERY_SOURCE_UNDEFINED; -constexpr QuerySource QuerySource_MAX = QSRC_NON_INSTEAD_RULE; -constexpr int QuerySource_ARRAYSIZE = QuerySource_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* QuerySource_descriptor(); -template -inline const std::string& QuerySource_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function QuerySource_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - QuerySource_descriptor(), enum_t_value); -} -inline bool QuerySource_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, QuerySource* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - QuerySource_descriptor(), name, value); -} -enum SortByDir : int { - SORT_BY_DIR_UNDEFINED = 0, - SORTBY_DEFAULT = 1, - SORTBY_ASC = 2, - SORTBY_DESC = 3, - SORTBY_USING = 4, - SortByDir_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - SortByDir_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool SortByDir_IsValid(int value); -constexpr SortByDir SortByDir_MIN = SORT_BY_DIR_UNDEFINED; -constexpr SortByDir SortByDir_MAX = SORTBY_USING; -constexpr int SortByDir_ARRAYSIZE = SortByDir_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SortByDir_descriptor(); -template -inline const std::string& SortByDir_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SortByDir_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - SortByDir_descriptor(), enum_t_value); -} -inline bool SortByDir_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SortByDir* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - SortByDir_descriptor(), name, value); -} -enum SortByNulls : int { - SORT_BY_NULLS_UNDEFINED = 0, - SORTBY_NULLS_DEFAULT = 1, - SORTBY_NULLS_FIRST = 2, - SORTBY_NULLS_LAST = 3, - SortByNulls_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - SortByNulls_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool SortByNulls_IsValid(int value); -constexpr SortByNulls SortByNulls_MIN = SORT_BY_NULLS_UNDEFINED; -constexpr SortByNulls SortByNulls_MAX = SORTBY_NULLS_LAST; -constexpr int SortByNulls_ARRAYSIZE = SortByNulls_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SortByNulls_descriptor(); -template -inline const std::string& SortByNulls_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SortByNulls_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - SortByNulls_descriptor(), enum_t_value); -} -inline bool SortByNulls_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SortByNulls* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - SortByNulls_descriptor(), name, value); -} -enum SetQuantifier : int { - SET_QUANTIFIER_UNDEFINED = 0, - SET_QUANTIFIER_DEFAULT = 1, - SET_QUANTIFIER_ALL = 2, - SET_QUANTIFIER_DISTINCT = 3, - SetQuantifier_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - SetQuantifier_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool SetQuantifier_IsValid(int value); -constexpr SetQuantifier SetQuantifier_MIN = SET_QUANTIFIER_UNDEFINED; -constexpr SetQuantifier SetQuantifier_MAX = SET_QUANTIFIER_DISTINCT; -constexpr int SetQuantifier_ARRAYSIZE = SetQuantifier_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SetQuantifier_descriptor(); -template -inline const std::string& SetQuantifier_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SetQuantifier_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - SetQuantifier_descriptor(), enum_t_value); -} -inline bool SetQuantifier_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SetQuantifier* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - SetQuantifier_descriptor(), name, value); -} -enum A_Expr_Kind : int { - A_EXPR_KIND_UNDEFINED = 0, - AEXPR_OP = 1, - AEXPR_OP_ANY = 2, - AEXPR_OP_ALL = 3, - AEXPR_DISTINCT = 4, - AEXPR_NOT_DISTINCT = 5, - AEXPR_NULLIF = 6, - AEXPR_IN = 7, - AEXPR_LIKE = 8, - AEXPR_ILIKE = 9, - AEXPR_SIMILAR = 10, - AEXPR_BETWEEN = 11, - AEXPR_NOT_BETWEEN = 12, - AEXPR_BETWEEN_SYM = 13, - AEXPR_NOT_BETWEEN_SYM = 14, - A_Expr_Kind_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - A_Expr_Kind_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool A_Expr_Kind_IsValid(int value); -constexpr A_Expr_Kind A_Expr_Kind_MIN = A_EXPR_KIND_UNDEFINED; -constexpr A_Expr_Kind A_Expr_Kind_MAX = AEXPR_NOT_BETWEEN_SYM; -constexpr int A_Expr_Kind_ARRAYSIZE = A_Expr_Kind_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* A_Expr_Kind_descriptor(); -template -inline const std::string& A_Expr_Kind_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function A_Expr_Kind_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - A_Expr_Kind_descriptor(), enum_t_value); -} -inline bool A_Expr_Kind_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, A_Expr_Kind* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - A_Expr_Kind_descriptor(), name, value); -} -enum RoleSpecType : int { - ROLE_SPEC_TYPE_UNDEFINED = 0, - ROLESPEC_CSTRING = 1, - ROLESPEC_CURRENT_ROLE = 2, - ROLESPEC_CURRENT_USER = 3, - ROLESPEC_SESSION_USER = 4, - ROLESPEC_PUBLIC = 5, - RoleSpecType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - RoleSpecType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool RoleSpecType_IsValid(int value); -constexpr RoleSpecType RoleSpecType_MIN = ROLE_SPEC_TYPE_UNDEFINED; -constexpr RoleSpecType RoleSpecType_MAX = ROLESPEC_PUBLIC; -constexpr int RoleSpecType_ARRAYSIZE = RoleSpecType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* RoleSpecType_descriptor(); -template -inline const std::string& RoleSpecType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function RoleSpecType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - RoleSpecType_descriptor(), enum_t_value); -} -inline bool RoleSpecType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, RoleSpecType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - RoleSpecType_descriptor(), name, value); -} -enum TableLikeOption : int { - TABLE_LIKE_OPTION_UNDEFINED = 0, - CREATE_TABLE_LIKE_COMMENTS = 1, - CREATE_TABLE_LIKE_COMPRESSION = 2, - CREATE_TABLE_LIKE_CONSTRAINTS = 3, - CREATE_TABLE_LIKE_DEFAULTS = 4, - CREATE_TABLE_LIKE_GENERATED = 5, - CREATE_TABLE_LIKE_IDENTITY = 6, - CREATE_TABLE_LIKE_INDEXES = 7, - CREATE_TABLE_LIKE_STATISTICS = 8, - CREATE_TABLE_LIKE_STORAGE = 9, - CREATE_TABLE_LIKE_ALL = 10, - TableLikeOption_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - TableLikeOption_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool TableLikeOption_IsValid(int value); -constexpr TableLikeOption TableLikeOption_MIN = TABLE_LIKE_OPTION_UNDEFINED; -constexpr TableLikeOption TableLikeOption_MAX = CREATE_TABLE_LIKE_ALL; -constexpr int TableLikeOption_ARRAYSIZE = TableLikeOption_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TableLikeOption_descriptor(); -template -inline const std::string& TableLikeOption_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function TableLikeOption_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - TableLikeOption_descriptor(), enum_t_value); -} -inline bool TableLikeOption_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, TableLikeOption* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - TableLikeOption_descriptor(), name, value); -} -enum DefElemAction : int { - DEF_ELEM_ACTION_UNDEFINED = 0, - DEFELEM_UNSPEC = 1, - DEFELEM_SET = 2, - DEFELEM_ADD = 3, - DEFELEM_DROP = 4, - DefElemAction_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - DefElemAction_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool DefElemAction_IsValid(int value); -constexpr DefElemAction DefElemAction_MIN = DEF_ELEM_ACTION_UNDEFINED; -constexpr DefElemAction DefElemAction_MAX = DEFELEM_DROP; -constexpr int DefElemAction_ARRAYSIZE = DefElemAction_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DefElemAction_descriptor(); -template -inline const std::string& DefElemAction_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DefElemAction_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - DefElemAction_descriptor(), enum_t_value); -} -inline bool DefElemAction_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DefElemAction* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - DefElemAction_descriptor(), name, value); -} -enum PartitionRangeDatumKind : int { - PARTITION_RANGE_DATUM_KIND_UNDEFINED = 0, - PARTITION_RANGE_DATUM_MINVALUE = 1, - PARTITION_RANGE_DATUM_VALUE = 2, - PARTITION_RANGE_DATUM_MAXVALUE = 3, - PartitionRangeDatumKind_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - PartitionRangeDatumKind_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool PartitionRangeDatumKind_IsValid(int value); -constexpr PartitionRangeDatumKind PartitionRangeDatumKind_MIN = PARTITION_RANGE_DATUM_KIND_UNDEFINED; -constexpr PartitionRangeDatumKind PartitionRangeDatumKind_MAX = PARTITION_RANGE_DATUM_MAXVALUE; -constexpr int PartitionRangeDatumKind_ARRAYSIZE = PartitionRangeDatumKind_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PartitionRangeDatumKind_descriptor(); -template -inline const std::string& PartitionRangeDatumKind_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PartitionRangeDatumKind_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - PartitionRangeDatumKind_descriptor(), enum_t_value); -} -inline bool PartitionRangeDatumKind_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PartitionRangeDatumKind* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - PartitionRangeDatumKind_descriptor(), name, value); -} -enum RTEKind : int { - RTEKIND_UNDEFINED = 0, - RTE_RELATION = 1, - RTE_SUBQUERY = 2, - RTE_JOIN = 3, - RTE_FUNCTION = 4, - RTE_TABLEFUNC = 5, - RTE_VALUES = 6, - RTE_CTE = 7, - RTE_NAMEDTUPLESTORE = 8, - RTE_RESULT = 9, - RTEKind_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - RTEKind_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool RTEKind_IsValid(int value); -constexpr RTEKind RTEKind_MIN = RTEKIND_UNDEFINED; -constexpr RTEKind RTEKind_MAX = RTE_RESULT; -constexpr int RTEKind_ARRAYSIZE = RTEKind_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* RTEKind_descriptor(); -template -inline const std::string& RTEKind_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function RTEKind_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - RTEKind_descriptor(), enum_t_value); -} -inline bool RTEKind_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, RTEKind* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - RTEKind_descriptor(), name, value); -} -enum WCOKind : int { - WCOKIND_UNDEFINED = 0, - WCO_VIEW_CHECK = 1, - WCO_RLS_INSERT_CHECK = 2, - WCO_RLS_UPDATE_CHECK = 3, - WCO_RLS_CONFLICT_CHECK = 4, - WCO_RLS_MERGE_UPDATE_CHECK = 5, - WCO_RLS_MERGE_DELETE_CHECK = 6, - WCOKind_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - WCOKind_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool WCOKind_IsValid(int value); -constexpr WCOKind WCOKind_MIN = WCOKIND_UNDEFINED; -constexpr WCOKind WCOKind_MAX = WCO_RLS_MERGE_DELETE_CHECK; -constexpr int WCOKind_ARRAYSIZE = WCOKind_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* WCOKind_descriptor(); -template -inline const std::string& WCOKind_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function WCOKind_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - WCOKind_descriptor(), enum_t_value); -} -inline bool WCOKind_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, WCOKind* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - WCOKind_descriptor(), name, value); -} -enum GroupingSetKind : int { - GROUPING_SET_KIND_UNDEFINED = 0, - GROUPING_SET_EMPTY = 1, - GROUPING_SET_SIMPLE = 2, - GROUPING_SET_ROLLUP = 3, - GROUPING_SET_CUBE = 4, - GROUPING_SET_SETS = 5, - GroupingSetKind_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - GroupingSetKind_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool GroupingSetKind_IsValid(int value); -constexpr GroupingSetKind GroupingSetKind_MIN = GROUPING_SET_KIND_UNDEFINED; -constexpr GroupingSetKind GroupingSetKind_MAX = GROUPING_SET_SETS; -constexpr int GroupingSetKind_ARRAYSIZE = GroupingSetKind_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* GroupingSetKind_descriptor(); -template -inline const std::string& GroupingSetKind_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function GroupingSetKind_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - GroupingSetKind_descriptor(), enum_t_value); -} -inline bool GroupingSetKind_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, GroupingSetKind* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - GroupingSetKind_descriptor(), name, value); -} -enum CTEMaterialize : int { - CTEMATERIALIZE_UNDEFINED = 0, - CTEMaterializeDefault = 1, - CTEMaterializeAlways = 2, - CTEMaterializeNever = 3, - CTEMaterialize_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - CTEMaterialize_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool CTEMaterialize_IsValid(int value); -constexpr CTEMaterialize CTEMaterialize_MIN = CTEMATERIALIZE_UNDEFINED; -constexpr CTEMaterialize CTEMaterialize_MAX = CTEMaterializeNever; -constexpr int CTEMaterialize_ARRAYSIZE = CTEMaterialize_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CTEMaterialize_descriptor(); -template -inline const std::string& CTEMaterialize_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function CTEMaterialize_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - CTEMaterialize_descriptor(), enum_t_value); -} -inline bool CTEMaterialize_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CTEMaterialize* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - CTEMaterialize_descriptor(), name, value); -} -enum SetOperation : int { - SET_OPERATION_UNDEFINED = 0, - SETOP_NONE = 1, - SETOP_UNION = 2, - SETOP_INTERSECT = 3, - SETOP_EXCEPT = 4, - SetOperation_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - SetOperation_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool SetOperation_IsValid(int value); -constexpr SetOperation SetOperation_MIN = SET_OPERATION_UNDEFINED; -constexpr SetOperation SetOperation_MAX = SETOP_EXCEPT; -constexpr int SetOperation_ARRAYSIZE = SetOperation_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SetOperation_descriptor(); -template -inline const std::string& SetOperation_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SetOperation_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - SetOperation_descriptor(), enum_t_value); -} -inline bool SetOperation_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SetOperation* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - SetOperation_descriptor(), name, value); -} -enum ObjectType : int { - OBJECT_TYPE_UNDEFINED = 0, - OBJECT_ACCESS_METHOD = 1, - OBJECT_AGGREGATE = 2, - OBJECT_AMOP = 3, - OBJECT_AMPROC = 4, - OBJECT_ATTRIBUTE = 5, - OBJECT_CAST = 6, - OBJECT_COLUMN = 7, - OBJECT_COLLATION = 8, - OBJECT_CONVERSION = 9, - OBJECT_DATABASE = 10, - OBJECT_DEFAULT = 11, - OBJECT_DEFACL = 12, - OBJECT_DOMAIN = 13, - OBJECT_DOMCONSTRAINT = 14, - OBJECT_EVENT_TRIGGER = 15, - OBJECT_EXTENSION = 16, - OBJECT_FDW = 17, - OBJECT_FOREIGN_SERVER = 18, - OBJECT_FOREIGN_TABLE = 19, - OBJECT_FUNCTION = 20, - OBJECT_INDEX = 21, - OBJECT_LANGUAGE = 22, - OBJECT_LARGEOBJECT = 23, - OBJECT_MATVIEW = 24, - OBJECT_OPCLASS = 25, - OBJECT_OPERATOR = 26, - OBJECT_OPFAMILY = 27, - OBJECT_PARAMETER_ACL = 28, - OBJECT_POLICY = 29, - OBJECT_PROCEDURE = 30, - OBJECT_PUBLICATION = 31, - OBJECT_PUBLICATION_NAMESPACE = 32, - OBJECT_PUBLICATION_REL = 33, - OBJECT_ROLE = 34, - OBJECT_ROUTINE = 35, - OBJECT_RULE = 36, - OBJECT_SCHEMA = 37, - OBJECT_SEQUENCE = 38, - OBJECT_SUBSCRIPTION = 39, - OBJECT_STATISTIC_EXT = 40, - OBJECT_TABCONSTRAINT = 41, - OBJECT_TABLE = 42, - OBJECT_TABLESPACE = 43, - OBJECT_TRANSFORM = 44, - OBJECT_TRIGGER = 45, - OBJECT_TSCONFIGURATION = 46, - OBJECT_TSDICTIONARY = 47, - OBJECT_TSPARSER = 48, - OBJECT_TSTEMPLATE = 49, - OBJECT_TYPE = 50, - OBJECT_USER_MAPPING = 51, - OBJECT_VIEW = 52, - ObjectType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - ObjectType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool ObjectType_IsValid(int value); -constexpr ObjectType ObjectType_MIN = OBJECT_TYPE_UNDEFINED; -constexpr ObjectType ObjectType_MAX = OBJECT_VIEW; -constexpr int ObjectType_ARRAYSIZE = ObjectType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ObjectType_descriptor(); -template -inline const std::string& ObjectType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ObjectType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - ObjectType_descriptor(), enum_t_value); -} -inline bool ObjectType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ObjectType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - ObjectType_descriptor(), name, value); -} -enum DropBehavior : int { - DROP_BEHAVIOR_UNDEFINED = 0, - DROP_RESTRICT = 1, - DROP_CASCADE = 2, - DropBehavior_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - DropBehavior_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool DropBehavior_IsValid(int value); -constexpr DropBehavior DropBehavior_MIN = DROP_BEHAVIOR_UNDEFINED; -constexpr DropBehavior DropBehavior_MAX = DROP_CASCADE; -constexpr int DropBehavior_ARRAYSIZE = DropBehavior_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DropBehavior_descriptor(); -template -inline const std::string& DropBehavior_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DropBehavior_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - DropBehavior_descriptor(), enum_t_value); -} -inline bool DropBehavior_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DropBehavior* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - DropBehavior_descriptor(), name, value); -} -enum AlterTableType : int { - ALTER_TABLE_TYPE_UNDEFINED = 0, - AT_AddColumn = 1, - AT_AddColumnRecurse = 2, - AT_AddColumnToView = 3, - AT_ColumnDefault = 4, - AT_CookedColumnDefault = 5, - AT_DropNotNull = 6, - AT_SetNotNull = 7, - AT_DropExpression = 8, - AT_CheckNotNull = 9, - AT_SetStatistics = 10, - AT_SetOptions = 11, - AT_ResetOptions = 12, - AT_SetStorage = 13, - AT_SetCompression = 14, - AT_DropColumn = 15, - AT_DropColumnRecurse = 16, - AT_AddIndex = 17, - AT_ReAddIndex = 18, - AT_AddConstraint = 19, - AT_AddConstraintRecurse = 20, - AT_ReAddConstraint = 21, - AT_ReAddDomainConstraint = 22, - AT_AlterConstraint = 23, - AT_ValidateConstraint = 24, - AT_ValidateConstraintRecurse = 25, - AT_AddIndexConstraint = 26, - AT_DropConstraint = 27, - AT_DropConstraintRecurse = 28, - AT_ReAddComment = 29, - AT_AlterColumnType = 30, - AT_AlterColumnGenericOptions = 31, - AT_ChangeOwner = 32, - AT_ClusterOn = 33, - AT_DropCluster = 34, - AT_SetLogged = 35, - AT_SetUnLogged = 36, - AT_DropOids = 37, - AT_SetAccessMethod = 38, - AT_SetTableSpace = 39, - AT_SetRelOptions = 40, - AT_ResetRelOptions = 41, - AT_ReplaceRelOptions = 42, - AT_EnableTrig = 43, - AT_EnableAlwaysTrig = 44, - AT_EnableReplicaTrig = 45, - AT_DisableTrig = 46, - AT_EnableTrigAll = 47, - AT_DisableTrigAll = 48, - AT_EnableTrigUser = 49, - AT_DisableTrigUser = 50, - AT_EnableRule = 51, - AT_EnableAlwaysRule = 52, - AT_EnableReplicaRule = 53, - AT_DisableRule = 54, - AT_AddInherit = 55, - AT_DropInherit = 56, - AT_AddOf = 57, - AT_DropOf = 58, - AT_ReplicaIdentity = 59, - AT_EnableRowSecurity = 60, - AT_DisableRowSecurity = 61, - AT_ForceRowSecurity = 62, - AT_NoForceRowSecurity = 63, - AT_GenericOptions = 64, - AT_AttachPartition = 65, - AT_DetachPartition = 66, - AT_DetachPartitionFinalize = 67, - AT_AddIdentity = 68, - AT_SetIdentity = 69, - AT_DropIdentity = 70, - AT_ReAddStatistics = 71, - AlterTableType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - AlterTableType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool AlterTableType_IsValid(int value); -constexpr AlterTableType AlterTableType_MIN = ALTER_TABLE_TYPE_UNDEFINED; -constexpr AlterTableType AlterTableType_MAX = AT_ReAddStatistics; -constexpr int AlterTableType_ARRAYSIZE = AlterTableType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AlterTableType_descriptor(); -template -inline const std::string& AlterTableType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function AlterTableType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - AlterTableType_descriptor(), enum_t_value); -} -inline bool AlterTableType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AlterTableType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - AlterTableType_descriptor(), name, value); -} -enum GrantTargetType : int { - GRANT_TARGET_TYPE_UNDEFINED = 0, - ACL_TARGET_OBJECT = 1, - ACL_TARGET_ALL_IN_SCHEMA = 2, - ACL_TARGET_DEFAULTS = 3, - GrantTargetType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - GrantTargetType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool GrantTargetType_IsValid(int value); -constexpr GrantTargetType GrantTargetType_MIN = GRANT_TARGET_TYPE_UNDEFINED; -constexpr GrantTargetType GrantTargetType_MAX = ACL_TARGET_DEFAULTS; -constexpr int GrantTargetType_ARRAYSIZE = GrantTargetType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* GrantTargetType_descriptor(); -template -inline const std::string& GrantTargetType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function GrantTargetType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - GrantTargetType_descriptor(), enum_t_value); -} -inline bool GrantTargetType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, GrantTargetType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - GrantTargetType_descriptor(), name, value); -} -enum VariableSetKind : int { - VARIABLE_SET_KIND_UNDEFINED = 0, - VAR_SET_VALUE = 1, - VAR_SET_DEFAULT = 2, - VAR_SET_CURRENT = 3, - VAR_SET_MULTI = 4, - VAR_RESET = 5, - VAR_RESET_ALL = 6, - VariableSetKind_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - VariableSetKind_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool VariableSetKind_IsValid(int value); -constexpr VariableSetKind VariableSetKind_MIN = VARIABLE_SET_KIND_UNDEFINED; -constexpr VariableSetKind VariableSetKind_MAX = VAR_RESET_ALL; -constexpr int VariableSetKind_ARRAYSIZE = VariableSetKind_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* VariableSetKind_descriptor(); -template -inline const std::string& VariableSetKind_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function VariableSetKind_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - VariableSetKind_descriptor(), enum_t_value); -} -inline bool VariableSetKind_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, VariableSetKind* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - VariableSetKind_descriptor(), name, value); -} -enum ConstrType : int { - CONSTR_TYPE_UNDEFINED = 0, - CONSTR_NULL = 1, - CONSTR_NOTNULL = 2, - CONSTR_DEFAULT = 3, - CONSTR_IDENTITY = 4, - CONSTR_GENERATED = 5, - CONSTR_CHECK = 6, - CONSTR_PRIMARY = 7, - CONSTR_UNIQUE = 8, - CONSTR_EXCLUSION = 9, - CONSTR_FOREIGN = 10, - CONSTR_ATTR_DEFERRABLE = 11, - CONSTR_ATTR_NOT_DEFERRABLE = 12, - CONSTR_ATTR_DEFERRED = 13, - CONSTR_ATTR_IMMEDIATE = 14, - ConstrType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - ConstrType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool ConstrType_IsValid(int value); -constexpr ConstrType ConstrType_MIN = CONSTR_TYPE_UNDEFINED; -constexpr ConstrType ConstrType_MAX = CONSTR_ATTR_IMMEDIATE; -constexpr int ConstrType_ARRAYSIZE = ConstrType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ConstrType_descriptor(); -template -inline const std::string& ConstrType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConstrType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - ConstrType_descriptor(), enum_t_value); -} -inline bool ConstrType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConstrType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - ConstrType_descriptor(), name, value); -} -enum ImportForeignSchemaType : int { - IMPORT_FOREIGN_SCHEMA_TYPE_UNDEFINED = 0, - FDW_IMPORT_SCHEMA_ALL = 1, - FDW_IMPORT_SCHEMA_LIMIT_TO = 2, - FDW_IMPORT_SCHEMA_EXCEPT = 3, - ImportForeignSchemaType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - ImportForeignSchemaType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool ImportForeignSchemaType_IsValid(int value); -constexpr ImportForeignSchemaType ImportForeignSchemaType_MIN = IMPORT_FOREIGN_SCHEMA_TYPE_UNDEFINED; -constexpr ImportForeignSchemaType ImportForeignSchemaType_MAX = FDW_IMPORT_SCHEMA_EXCEPT; -constexpr int ImportForeignSchemaType_ARRAYSIZE = ImportForeignSchemaType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ImportForeignSchemaType_descriptor(); -template -inline const std::string& ImportForeignSchemaType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ImportForeignSchemaType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - ImportForeignSchemaType_descriptor(), enum_t_value); -} -inline bool ImportForeignSchemaType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ImportForeignSchemaType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - ImportForeignSchemaType_descriptor(), name, value); -} -enum RoleStmtType : int { - ROLE_STMT_TYPE_UNDEFINED = 0, - ROLESTMT_ROLE = 1, - ROLESTMT_USER = 2, - ROLESTMT_GROUP = 3, - RoleStmtType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - RoleStmtType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool RoleStmtType_IsValid(int value); -constexpr RoleStmtType RoleStmtType_MIN = ROLE_STMT_TYPE_UNDEFINED; -constexpr RoleStmtType RoleStmtType_MAX = ROLESTMT_GROUP; -constexpr int RoleStmtType_ARRAYSIZE = RoleStmtType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* RoleStmtType_descriptor(); -template -inline const std::string& RoleStmtType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function RoleStmtType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - RoleStmtType_descriptor(), enum_t_value); -} -inline bool RoleStmtType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, RoleStmtType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - RoleStmtType_descriptor(), name, value); -} -enum FetchDirection : int { - FETCH_DIRECTION_UNDEFINED = 0, - FETCH_FORWARD = 1, - FETCH_BACKWARD = 2, - FETCH_ABSOLUTE = 3, - FETCH_RELATIVE = 4, - FetchDirection_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - FetchDirection_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool FetchDirection_IsValid(int value); -constexpr FetchDirection FetchDirection_MIN = FETCH_DIRECTION_UNDEFINED; -constexpr FetchDirection FetchDirection_MAX = FETCH_RELATIVE; -constexpr int FetchDirection_ARRAYSIZE = FetchDirection_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FetchDirection_descriptor(); -template -inline const std::string& FetchDirection_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function FetchDirection_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - FetchDirection_descriptor(), enum_t_value); -} -inline bool FetchDirection_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FetchDirection* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - FetchDirection_descriptor(), name, value); -} -enum FunctionParameterMode : int { - FUNCTION_PARAMETER_MODE_UNDEFINED = 0, - FUNC_PARAM_IN = 1, - FUNC_PARAM_OUT = 2, - FUNC_PARAM_INOUT = 3, - FUNC_PARAM_VARIADIC = 4, - FUNC_PARAM_TABLE = 5, - FUNC_PARAM_DEFAULT = 6, - FunctionParameterMode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - FunctionParameterMode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool FunctionParameterMode_IsValid(int value); -constexpr FunctionParameterMode FunctionParameterMode_MIN = FUNCTION_PARAMETER_MODE_UNDEFINED; -constexpr FunctionParameterMode FunctionParameterMode_MAX = FUNC_PARAM_DEFAULT; -constexpr int FunctionParameterMode_ARRAYSIZE = FunctionParameterMode_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FunctionParameterMode_descriptor(); -template -inline const std::string& FunctionParameterMode_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function FunctionParameterMode_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - FunctionParameterMode_descriptor(), enum_t_value); -} -inline bool FunctionParameterMode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FunctionParameterMode* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - FunctionParameterMode_descriptor(), name, value); -} -enum TransactionStmtKind : int { - TRANSACTION_STMT_KIND_UNDEFINED = 0, - TRANS_STMT_BEGIN = 1, - TRANS_STMT_START = 2, - TRANS_STMT_COMMIT = 3, - TRANS_STMT_ROLLBACK = 4, - TRANS_STMT_SAVEPOINT = 5, - TRANS_STMT_RELEASE = 6, - TRANS_STMT_ROLLBACK_TO = 7, - TRANS_STMT_PREPARE = 8, - TRANS_STMT_COMMIT_PREPARED = 9, - TRANS_STMT_ROLLBACK_PREPARED = 10, - TransactionStmtKind_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - TransactionStmtKind_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool TransactionStmtKind_IsValid(int value); -constexpr TransactionStmtKind TransactionStmtKind_MIN = TRANSACTION_STMT_KIND_UNDEFINED; -constexpr TransactionStmtKind TransactionStmtKind_MAX = TRANS_STMT_ROLLBACK_PREPARED; -constexpr int TransactionStmtKind_ARRAYSIZE = TransactionStmtKind_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TransactionStmtKind_descriptor(); -template -inline const std::string& TransactionStmtKind_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function TransactionStmtKind_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - TransactionStmtKind_descriptor(), enum_t_value); -} -inline bool TransactionStmtKind_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, TransactionStmtKind* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - TransactionStmtKind_descriptor(), name, value); -} -enum ViewCheckOption : int { - VIEW_CHECK_OPTION_UNDEFINED = 0, - NO_CHECK_OPTION = 1, - LOCAL_CHECK_OPTION = 2, - CASCADED_CHECK_OPTION = 3, - ViewCheckOption_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - ViewCheckOption_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool ViewCheckOption_IsValid(int value); -constexpr ViewCheckOption ViewCheckOption_MIN = VIEW_CHECK_OPTION_UNDEFINED; -constexpr ViewCheckOption ViewCheckOption_MAX = CASCADED_CHECK_OPTION; -constexpr int ViewCheckOption_ARRAYSIZE = ViewCheckOption_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ViewCheckOption_descriptor(); -template -inline const std::string& ViewCheckOption_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ViewCheckOption_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - ViewCheckOption_descriptor(), enum_t_value); -} -inline bool ViewCheckOption_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ViewCheckOption* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - ViewCheckOption_descriptor(), name, value); -} -enum DiscardMode : int { - DISCARD_MODE_UNDEFINED = 0, - DISCARD_ALL = 1, - DISCARD_PLANS = 2, - DISCARD_SEQUENCES = 3, - DISCARD_TEMP = 4, - DiscardMode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - DiscardMode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool DiscardMode_IsValid(int value); -constexpr DiscardMode DiscardMode_MIN = DISCARD_MODE_UNDEFINED; -constexpr DiscardMode DiscardMode_MAX = DISCARD_TEMP; -constexpr int DiscardMode_ARRAYSIZE = DiscardMode_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DiscardMode_descriptor(); -template -inline const std::string& DiscardMode_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DiscardMode_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - DiscardMode_descriptor(), enum_t_value); -} -inline bool DiscardMode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DiscardMode* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - DiscardMode_descriptor(), name, value); -} -enum ReindexObjectType : int { - REINDEX_OBJECT_TYPE_UNDEFINED = 0, - REINDEX_OBJECT_INDEX = 1, - REINDEX_OBJECT_TABLE = 2, - REINDEX_OBJECT_SCHEMA = 3, - REINDEX_OBJECT_SYSTEM = 4, - REINDEX_OBJECT_DATABASE = 5, - ReindexObjectType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - ReindexObjectType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool ReindexObjectType_IsValid(int value); -constexpr ReindexObjectType ReindexObjectType_MIN = REINDEX_OBJECT_TYPE_UNDEFINED; -constexpr ReindexObjectType ReindexObjectType_MAX = REINDEX_OBJECT_DATABASE; -constexpr int ReindexObjectType_ARRAYSIZE = ReindexObjectType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ReindexObjectType_descriptor(); -template -inline const std::string& ReindexObjectType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ReindexObjectType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - ReindexObjectType_descriptor(), enum_t_value); -} -inline bool ReindexObjectType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ReindexObjectType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - ReindexObjectType_descriptor(), name, value); -} -enum AlterTSConfigType : int { - ALTER_TSCONFIG_TYPE_UNDEFINED = 0, - ALTER_TSCONFIG_ADD_MAPPING = 1, - ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN = 2, - ALTER_TSCONFIG_REPLACE_DICT = 3, - ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN = 4, - ALTER_TSCONFIG_DROP_MAPPING = 5, - AlterTSConfigType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - AlterTSConfigType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool AlterTSConfigType_IsValid(int value); -constexpr AlterTSConfigType AlterTSConfigType_MIN = ALTER_TSCONFIG_TYPE_UNDEFINED; -constexpr AlterTSConfigType AlterTSConfigType_MAX = ALTER_TSCONFIG_DROP_MAPPING; -constexpr int AlterTSConfigType_ARRAYSIZE = AlterTSConfigType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AlterTSConfigType_descriptor(); -template -inline const std::string& AlterTSConfigType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function AlterTSConfigType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - AlterTSConfigType_descriptor(), enum_t_value); -} -inline bool AlterTSConfigType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AlterTSConfigType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - AlterTSConfigType_descriptor(), name, value); -} -enum PublicationObjSpecType : int { - PUBLICATION_OBJ_SPEC_TYPE_UNDEFINED = 0, - PUBLICATIONOBJ_TABLE = 1, - PUBLICATIONOBJ_TABLES_IN_SCHEMA = 2, - PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA = 3, - PUBLICATIONOBJ_CONTINUATION = 4, - PublicationObjSpecType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - PublicationObjSpecType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool PublicationObjSpecType_IsValid(int value); -constexpr PublicationObjSpecType PublicationObjSpecType_MIN = PUBLICATION_OBJ_SPEC_TYPE_UNDEFINED; -constexpr PublicationObjSpecType PublicationObjSpecType_MAX = PUBLICATIONOBJ_CONTINUATION; -constexpr int PublicationObjSpecType_ARRAYSIZE = PublicationObjSpecType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PublicationObjSpecType_descriptor(); -template -inline const std::string& PublicationObjSpecType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PublicationObjSpecType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - PublicationObjSpecType_descriptor(), enum_t_value); -} -inline bool PublicationObjSpecType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PublicationObjSpecType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - PublicationObjSpecType_descriptor(), name, value); -} -enum AlterPublicationAction : int { - ALTER_PUBLICATION_ACTION_UNDEFINED = 0, - AP_AddObjects = 1, - AP_DropObjects = 2, - AP_SetObjects = 3, - AlterPublicationAction_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - AlterPublicationAction_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool AlterPublicationAction_IsValid(int value); -constexpr AlterPublicationAction AlterPublicationAction_MIN = ALTER_PUBLICATION_ACTION_UNDEFINED; -constexpr AlterPublicationAction AlterPublicationAction_MAX = AP_SetObjects; -constexpr int AlterPublicationAction_ARRAYSIZE = AlterPublicationAction_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AlterPublicationAction_descriptor(); -template -inline const std::string& AlterPublicationAction_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function AlterPublicationAction_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - AlterPublicationAction_descriptor(), enum_t_value); -} -inline bool AlterPublicationAction_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AlterPublicationAction* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - AlterPublicationAction_descriptor(), name, value); -} -enum AlterSubscriptionType : int { - ALTER_SUBSCRIPTION_TYPE_UNDEFINED = 0, - ALTER_SUBSCRIPTION_OPTIONS = 1, - ALTER_SUBSCRIPTION_CONNECTION = 2, - ALTER_SUBSCRIPTION_SET_PUBLICATION = 3, - ALTER_SUBSCRIPTION_ADD_PUBLICATION = 4, - ALTER_SUBSCRIPTION_DROP_PUBLICATION = 5, - ALTER_SUBSCRIPTION_REFRESH = 6, - ALTER_SUBSCRIPTION_ENABLED = 7, - ALTER_SUBSCRIPTION_SKIP = 8, - AlterSubscriptionType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - AlterSubscriptionType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool AlterSubscriptionType_IsValid(int value); -constexpr AlterSubscriptionType AlterSubscriptionType_MIN = ALTER_SUBSCRIPTION_TYPE_UNDEFINED; -constexpr AlterSubscriptionType AlterSubscriptionType_MAX = ALTER_SUBSCRIPTION_SKIP; -constexpr int AlterSubscriptionType_ARRAYSIZE = AlterSubscriptionType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AlterSubscriptionType_descriptor(); -template -inline const std::string& AlterSubscriptionType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function AlterSubscriptionType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - AlterSubscriptionType_descriptor(), enum_t_value); -} -inline bool AlterSubscriptionType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AlterSubscriptionType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - AlterSubscriptionType_descriptor(), name, value); -} -enum OnCommitAction : int { - ON_COMMIT_ACTION_UNDEFINED = 0, - ONCOMMIT_NOOP = 1, - ONCOMMIT_PRESERVE_ROWS = 2, - ONCOMMIT_DELETE_ROWS = 3, - ONCOMMIT_DROP = 4, - OnCommitAction_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - OnCommitAction_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool OnCommitAction_IsValid(int value); -constexpr OnCommitAction OnCommitAction_MIN = ON_COMMIT_ACTION_UNDEFINED; -constexpr OnCommitAction OnCommitAction_MAX = ONCOMMIT_DROP; -constexpr int OnCommitAction_ARRAYSIZE = OnCommitAction_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OnCommitAction_descriptor(); -template -inline const std::string& OnCommitAction_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function OnCommitAction_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - OnCommitAction_descriptor(), enum_t_value); -} -inline bool OnCommitAction_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OnCommitAction* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - OnCommitAction_descriptor(), name, value); -} -enum ParamKind : int { - PARAM_KIND_UNDEFINED = 0, - PARAM_EXTERN = 1, - PARAM_EXEC = 2, - PARAM_SUBLINK = 3, - PARAM_MULTIEXPR = 4, - ParamKind_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - ParamKind_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool ParamKind_IsValid(int value); -constexpr ParamKind ParamKind_MIN = PARAM_KIND_UNDEFINED; -constexpr ParamKind ParamKind_MAX = PARAM_MULTIEXPR; -constexpr int ParamKind_ARRAYSIZE = ParamKind_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ParamKind_descriptor(); -template -inline const std::string& ParamKind_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ParamKind_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - ParamKind_descriptor(), enum_t_value); -} -inline bool ParamKind_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ParamKind* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - ParamKind_descriptor(), name, value); -} -enum CoercionContext : int { - COERCION_CONTEXT_UNDEFINED = 0, - COERCION_IMPLICIT = 1, - COERCION_ASSIGNMENT = 2, - COERCION_PLPGSQL = 3, - COERCION_EXPLICIT = 4, - CoercionContext_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - CoercionContext_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool CoercionContext_IsValid(int value); -constexpr CoercionContext CoercionContext_MIN = COERCION_CONTEXT_UNDEFINED; -constexpr CoercionContext CoercionContext_MAX = COERCION_EXPLICIT; -constexpr int CoercionContext_ARRAYSIZE = CoercionContext_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CoercionContext_descriptor(); -template -inline const std::string& CoercionContext_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function CoercionContext_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - CoercionContext_descriptor(), enum_t_value); -} -inline bool CoercionContext_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CoercionContext* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - CoercionContext_descriptor(), name, value); -} -enum CoercionForm : int { - COERCION_FORM_UNDEFINED = 0, - COERCE_EXPLICIT_CALL = 1, - COERCE_EXPLICIT_CAST = 2, - COERCE_IMPLICIT_CAST = 3, - COERCE_SQL_SYNTAX = 4, - CoercionForm_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - CoercionForm_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool CoercionForm_IsValid(int value); -constexpr CoercionForm CoercionForm_MIN = COERCION_FORM_UNDEFINED; -constexpr CoercionForm CoercionForm_MAX = COERCE_SQL_SYNTAX; -constexpr int CoercionForm_ARRAYSIZE = CoercionForm_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CoercionForm_descriptor(); -template -inline const std::string& CoercionForm_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function CoercionForm_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - CoercionForm_descriptor(), enum_t_value); -} -inline bool CoercionForm_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CoercionForm* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - CoercionForm_descriptor(), name, value); -} -enum BoolExprType : int { - BOOL_EXPR_TYPE_UNDEFINED = 0, - AND_EXPR = 1, - OR_EXPR = 2, - NOT_EXPR = 3, - BoolExprType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - BoolExprType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool BoolExprType_IsValid(int value); -constexpr BoolExprType BoolExprType_MIN = BOOL_EXPR_TYPE_UNDEFINED; -constexpr BoolExprType BoolExprType_MAX = NOT_EXPR; -constexpr int BoolExprType_ARRAYSIZE = BoolExprType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* BoolExprType_descriptor(); -template -inline const std::string& BoolExprType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function BoolExprType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - BoolExprType_descriptor(), enum_t_value); -} -inline bool BoolExprType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BoolExprType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - BoolExprType_descriptor(), name, value); -} -enum SubLinkType : int { - SUB_LINK_TYPE_UNDEFINED = 0, - EXISTS_SUBLINK = 1, - ALL_SUBLINK = 2, - ANY_SUBLINK = 3, - ROWCOMPARE_SUBLINK = 4, - EXPR_SUBLINK = 5, - MULTIEXPR_SUBLINK = 6, - ARRAY_SUBLINK = 7, - CTE_SUBLINK = 8, - SubLinkType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - SubLinkType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool SubLinkType_IsValid(int value); -constexpr SubLinkType SubLinkType_MIN = SUB_LINK_TYPE_UNDEFINED; -constexpr SubLinkType SubLinkType_MAX = CTE_SUBLINK; -constexpr int SubLinkType_ARRAYSIZE = SubLinkType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SubLinkType_descriptor(); -template -inline const std::string& SubLinkType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SubLinkType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - SubLinkType_descriptor(), enum_t_value); -} -inline bool SubLinkType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SubLinkType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - SubLinkType_descriptor(), name, value); -} -enum RowCompareType : int { - ROW_COMPARE_TYPE_UNDEFINED = 0, - ROWCOMPARE_LT = 1, - ROWCOMPARE_LE = 2, - ROWCOMPARE_EQ = 3, - ROWCOMPARE_GE = 4, - ROWCOMPARE_GT = 5, - ROWCOMPARE_NE = 6, - RowCompareType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - RowCompareType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool RowCompareType_IsValid(int value); -constexpr RowCompareType RowCompareType_MIN = ROW_COMPARE_TYPE_UNDEFINED; -constexpr RowCompareType RowCompareType_MAX = ROWCOMPARE_NE; -constexpr int RowCompareType_ARRAYSIZE = RowCompareType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* RowCompareType_descriptor(); -template -inline const std::string& RowCompareType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function RowCompareType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - RowCompareType_descriptor(), enum_t_value); -} -inline bool RowCompareType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, RowCompareType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - RowCompareType_descriptor(), name, value); -} -enum MinMaxOp : int { - MIN_MAX_OP_UNDEFINED = 0, - IS_GREATEST = 1, - IS_LEAST = 2, - MinMaxOp_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - MinMaxOp_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool MinMaxOp_IsValid(int value); -constexpr MinMaxOp MinMaxOp_MIN = MIN_MAX_OP_UNDEFINED; -constexpr MinMaxOp MinMaxOp_MAX = IS_LEAST; -constexpr int MinMaxOp_ARRAYSIZE = MinMaxOp_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MinMaxOp_descriptor(); -template -inline const std::string& MinMaxOp_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function MinMaxOp_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - MinMaxOp_descriptor(), enum_t_value); -} -inline bool MinMaxOp_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MinMaxOp* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - MinMaxOp_descriptor(), name, value); -} -enum SQLValueFunctionOp : int { - SQLVALUE_FUNCTION_OP_UNDEFINED = 0, - SVFOP_CURRENT_DATE = 1, - SVFOP_CURRENT_TIME = 2, - SVFOP_CURRENT_TIME_N = 3, - SVFOP_CURRENT_TIMESTAMP = 4, - SVFOP_CURRENT_TIMESTAMP_N = 5, - SVFOP_LOCALTIME = 6, - SVFOP_LOCALTIME_N = 7, - SVFOP_LOCALTIMESTAMP = 8, - SVFOP_LOCALTIMESTAMP_N = 9, - SVFOP_CURRENT_ROLE = 10, - SVFOP_CURRENT_USER = 11, - SVFOP_USER = 12, - SVFOP_SESSION_USER = 13, - SVFOP_CURRENT_CATALOG = 14, - SVFOP_CURRENT_SCHEMA = 15, - SQLValueFunctionOp_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - SQLValueFunctionOp_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool SQLValueFunctionOp_IsValid(int value); -constexpr SQLValueFunctionOp SQLValueFunctionOp_MIN = SQLVALUE_FUNCTION_OP_UNDEFINED; -constexpr SQLValueFunctionOp SQLValueFunctionOp_MAX = SVFOP_CURRENT_SCHEMA; -constexpr int SQLValueFunctionOp_ARRAYSIZE = SQLValueFunctionOp_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SQLValueFunctionOp_descriptor(); -template -inline const std::string& SQLValueFunctionOp_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SQLValueFunctionOp_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - SQLValueFunctionOp_descriptor(), enum_t_value); -} -inline bool SQLValueFunctionOp_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SQLValueFunctionOp* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - SQLValueFunctionOp_descriptor(), name, value); -} -enum XmlExprOp : int { - XML_EXPR_OP_UNDEFINED = 0, - IS_XMLCONCAT = 1, - IS_XMLELEMENT = 2, - IS_XMLFOREST = 3, - IS_XMLPARSE = 4, - IS_XMLPI = 5, - IS_XMLROOT = 6, - IS_XMLSERIALIZE = 7, - IS_DOCUMENT = 8, - XmlExprOp_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - XmlExprOp_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool XmlExprOp_IsValid(int value); -constexpr XmlExprOp XmlExprOp_MIN = XML_EXPR_OP_UNDEFINED; -constexpr XmlExprOp XmlExprOp_MAX = IS_DOCUMENT; -constexpr int XmlExprOp_ARRAYSIZE = XmlExprOp_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* XmlExprOp_descriptor(); -template -inline const std::string& XmlExprOp_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function XmlExprOp_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - XmlExprOp_descriptor(), enum_t_value); -} -inline bool XmlExprOp_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, XmlExprOp* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - XmlExprOp_descriptor(), name, value); -} -enum XmlOptionType : int { - XML_OPTION_TYPE_UNDEFINED = 0, - XMLOPTION_DOCUMENT = 1, - XMLOPTION_CONTENT = 2, - XmlOptionType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - XmlOptionType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool XmlOptionType_IsValid(int value); -constexpr XmlOptionType XmlOptionType_MIN = XML_OPTION_TYPE_UNDEFINED; -constexpr XmlOptionType XmlOptionType_MAX = XMLOPTION_CONTENT; -constexpr int XmlOptionType_ARRAYSIZE = XmlOptionType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* XmlOptionType_descriptor(); -template -inline const std::string& XmlOptionType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function XmlOptionType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - XmlOptionType_descriptor(), enum_t_value); -} -inline bool XmlOptionType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, XmlOptionType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - XmlOptionType_descriptor(), name, value); -} -enum NullTestType : int { - NULL_TEST_TYPE_UNDEFINED = 0, - IS_NULL = 1, - IS_NOT_NULL = 2, - NullTestType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - NullTestType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool NullTestType_IsValid(int value); -constexpr NullTestType NullTestType_MIN = NULL_TEST_TYPE_UNDEFINED; -constexpr NullTestType NullTestType_MAX = IS_NOT_NULL; -constexpr int NullTestType_ARRAYSIZE = NullTestType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* NullTestType_descriptor(); -template -inline const std::string& NullTestType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function NullTestType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - NullTestType_descriptor(), enum_t_value); -} -inline bool NullTestType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, NullTestType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - NullTestType_descriptor(), name, value); -} -enum BoolTestType : int { - BOOL_TEST_TYPE_UNDEFINED = 0, - IS_TRUE = 1, - IS_NOT_TRUE = 2, - IS_FALSE = 3, - IS_NOT_FALSE = 4, - IS_UNKNOWN = 5, - IS_NOT_UNKNOWN = 6, - BoolTestType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - BoolTestType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool BoolTestType_IsValid(int value); -constexpr BoolTestType BoolTestType_MIN = BOOL_TEST_TYPE_UNDEFINED; -constexpr BoolTestType BoolTestType_MAX = IS_NOT_UNKNOWN; -constexpr int BoolTestType_ARRAYSIZE = BoolTestType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* BoolTestType_descriptor(); -template -inline const std::string& BoolTestType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function BoolTestType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - BoolTestType_descriptor(), enum_t_value); -} -inline bool BoolTestType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BoolTestType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - BoolTestType_descriptor(), name, value); -} -enum CmdType : int { - CMD_TYPE_UNDEFINED = 0, - CMD_UNKNOWN = 1, - CMD_SELECT = 2, - CMD_UPDATE = 3, - CMD_INSERT = 4, - CMD_DELETE = 5, - CMD_MERGE = 6, - CMD_UTILITY = 7, - CMD_NOTHING = 8, - CmdType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - CmdType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool CmdType_IsValid(int value); -constexpr CmdType CmdType_MIN = CMD_TYPE_UNDEFINED; -constexpr CmdType CmdType_MAX = CMD_NOTHING; -constexpr int CmdType_ARRAYSIZE = CmdType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CmdType_descriptor(); -template -inline const std::string& CmdType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function CmdType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - CmdType_descriptor(), enum_t_value); -} -inline bool CmdType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CmdType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - CmdType_descriptor(), name, value); -} -enum JoinType : int { - JOIN_TYPE_UNDEFINED = 0, - JOIN_INNER = 1, - JOIN_LEFT = 2, - JOIN_FULL = 3, - JOIN_RIGHT = 4, - JOIN_SEMI = 5, - JOIN_ANTI = 6, - JOIN_UNIQUE_OUTER = 7, - JOIN_UNIQUE_INNER = 8, - JoinType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - JoinType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool JoinType_IsValid(int value); -constexpr JoinType JoinType_MIN = JOIN_TYPE_UNDEFINED; -constexpr JoinType JoinType_MAX = JOIN_UNIQUE_INNER; -constexpr int JoinType_ARRAYSIZE = JoinType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* JoinType_descriptor(); -template -inline const std::string& JoinType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function JoinType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - JoinType_descriptor(), enum_t_value); -} -inline bool JoinType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, JoinType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - JoinType_descriptor(), name, value); -} -enum AggStrategy : int { - AGG_STRATEGY_UNDEFINED = 0, - AGG_PLAIN = 1, - AGG_SORTED = 2, - AGG_HASHED = 3, - AGG_MIXED = 4, - AggStrategy_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - AggStrategy_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool AggStrategy_IsValid(int value); -constexpr AggStrategy AggStrategy_MIN = AGG_STRATEGY_UNDEFINED; -constexpr AggStrategy AggStrategy_MAX = AGG_MIXED; -constexpr int AggStrategy_ARRAYSIZE = AggStrategy_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AggStrategy_descriptor(); -template -inline const std::string& AggStrategy_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function AggStrategy_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - AggStrategy_descriptor(), enum_t_value); -} -inline bool AggStrategy_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AggStrategy* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - AggStrategy_descriptor(), name, value); -} -enum AggSplit : int { - AGG_SPLIT_UNDEFINED = 0, - AGGSPLIT_SIMPLE = 1, - AGGSPLIT_INITIAL_SERIAL = 2, - AGGSPLIT_FINAL_DESERIAL = 3, - AggSplit_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - AggSplit_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool AggSplit_IsValid(int value); -constexpr AggSplit AggSplit_MIN = AGG_SPLIT_UNDEFINED; -constexpr AggSplit AggSplit_MAX = AGGSPLIT_FINAL_DESERIAL; -constexpr int AggSplit_ARRAYSIZE = AggSplit_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AggSplit_descriptor(); -template -inline const std::string& AggSplit_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function AggSplit_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - AggSplit_descriptor(), enum_t_value); -} -inline bool AggSplit_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AggSplit* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - AggSplit_descriptor(), name, value); -} -enum SetOpCmd : int { - SET_OP_CMD_UNDEFINED = 0, - SETOPCMD_INTERSECT = 1, - SETOPCMD_INTERSECT_ALL = 2, - SETOPCMD_EXCEPT = 3, - SETOPCMD_EXCEPT_ALL = 4, - SetOpCmd_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - SetOpCmd_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool SetOpCmd_IsValid(int value); -constexpr SetOpCmd SetOpCmd_MIN = SET_OP_CMD_UNDEFINED; -constexpr SetOpCmd SetOpCmd_MAX = SETOPCMD_EXCEPT_ALL; -constexpr int SetOpCmd_ARRAYSIZE = SetOpCmd_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SetOpCmd_descriptor(); -template -inline const std::string& SetOpCmd_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SetOpCmd_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - SetOpCmd_descriptor(), enum_t_value); -} -inline bool SetOpCmd_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SetOpCmd* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - SetOpCmd_descriptor(), name, value); -} -enum SetOpStrategy : int { - SET_OP_STRATEGY_UNDEFINED = 0, - SETOP_SORTED = 1, - SETOP_HASHED = 2, - SetOpStrategy_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - SetOpStrategy_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool SetOpStrategy_IsValid(int value); -constexpr SetOpStrategy SetOpStrategy_MIN = SET_OP_STRATEGY_UNDEFINED; -constexpr SetOpStrategy SetOpStrategy_MAX = SETOP_HASHED; -constexpr int SetOpStrategy_ARRAYSIZE = SetOpStrategy_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SetOpStrategy_descriptor(); -template -inline const std::string& SetOpStrategy_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SetOpStrategy_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - SetOpStrategy_descriptor(), enum_t_value); -} -inline bool SetOpStrategy_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SetOpStrategy* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - SetOpStrategy_descriptor(), name, value); -} -enum OnConflictAction : int { - ON_CONFLICT_ACTION_UNDEFINED = 0, - ONCONFLICT_NONE = 1, - ONCONFLICT_NOTHING = 2, - ONCONFLICT_UPDATE = 3, - OnConflictAction_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - OnConflictAction_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool OnConflictAction_IsValid(int value); -constexpr OnConflictAction OnConflictAction_MIN = ON_CONFLICT_ACTION_UNDEFINED; -constexpr OnConflictAction OnConflictAction_MAX = ONCONFLICT_UPDATE; -constexpr int OnConflictAction_ARRAYSIZE = OnConflictAction_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OnConflictAction_descriptor(); -template -inline const std::string& OnConflictAction_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function OnConflictAction_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - OnConflictAction_descriptor(), enum_t_value); -} -inline bool OnConflictAction_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OnConflictAction* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - OnConflictAction_descriptor(), name, value); -} -enum LimitOption : int { - LIMIT_OPTION_UNDEFINED = 0, - LIMIT_OPTION_DEFAULT = 1, - LIMIT_OPTION_COUNT = 2, - LIMIT_OPTION_WITH_TIES = 3, - LimitOption_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - LimitOption_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool LimitOption_IsValid(int value); -constexpr LimitOption LimitOption_MIN = LIMIT_OPTION_UNDEFINED; -constexpr LimitOption LimitOption_MAX = LIMIT_OPTION_WITH_TIES; -constexpr int LimitOption_ARRAYSIZE = LimitOption_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LimitOption_descriptor(); -template -inline const std::string& LimitOption_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function LimitOption_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - LimitOption_descriptor(), enum_t_value); -} -inline bool LimitOption_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LimitOption* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - LimitOption_descriptor(), name, value); -} -enum LockClauseStrength : int { - LOCK_CLAUSE_STRENGTH_UNDEFINED = 0, - LCS_NONE = 1, - LCS_FORKEYSHARE = 2, - LCS_FORSHARE = 3, - LCS_FORNOKEYUPDATE = 4, - LCS_FORUPDATE = 5, - LockClauseStrength_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - LockClauseStrength_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool LockClauseStrength_IsValid(int value); -constexpr LockClauseStrength LockClauseStrength_MIN = LOCK_CLAUSE_STRENGTH_UNDEFINED; -constexpr LockClauseStrength LockClauseStrength_MAX = LCS_FORUPDATE; -constexpr int LockClauseStrength_ARRAYSIZE = LockClauseStrength_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LockClauseStrength_descriptor(); -template -inline const std::string& LockClauseStrength_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function LockClauseStrength_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - LockClauseStrength_descriptor(), enum_t_value); -} -inline bool LockClauseStrength_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LockClauseStrength* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - LockClauseStrength_descriptor(), name, value); -} -enum LockWaitPolicy : int { - LOCK_WAIT_POLICY_UNDEFINED = 0, - LockWaitBlock = 1, - LockWaitSkip = 2, - LockWaitError = 3, - LockWaitPolicy_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - LockWaitPolicy_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool LockWaitPolicy_IsValid(int value); -constexpr LockWaitPolicy LockWaitPolicy_MIN = LOCK_WAIT_POLICY_UNDEFINED; -constexpr LockWaitPolicy LockWaitPolicy_MAX = LockWaitError; -constexpr int LockWaitPolicy_ARRAYSIZE = LockWaitPolicy_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LockWaitPolicy_descriptor(); -template -inline const std::string& LockWaitPolicy_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function LockWaitPolicy_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - LockWaitPolicy_descriptor(), enum_t_value); -} -inline bool LockWaitPolicy_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LockWaitPolicy* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - LockWaitPolicy_descriptor(), name, value); -} -enum LockTupleMode : int { - LOCK_TUPLE_MODE_UNDEFINED = 0, - LockTupleKeyShare = 1, - LockTupleShare = 2, - LockTupleNoKeyExclusive = 3, - LockTupleExclusive = 4, - LockTupleMode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - LockTupleMode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool LockTupleMode_IsValid(int value); -constexpr LockTupleMode LockTupleMode_MIN = LOCK_TUPLE_MODE_UNDEFINED; -constexpr LockTupleMode LockTupleMode_MAX = LockTupleExclusive; -constexpr int LockTupleMode_ARRAYSIZE = LockTupleMode_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LockTupleMode_descriptor(); -template -inline const std::string& LockTupleMode_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function LockTupleMode_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - LockTupleMode_descriptor(), enum_t_value); -} -inline bool LockTupleMode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LockTupleMode* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - LockTupleMode_descriptor(), name, value); -} -enum KeywordKind : int { - NO_KEYWORD = 0, - UNRESERVED_KEYWORD = 1, - COL_NAME_KEYWORD = 2, - TYPE_FUNC_NAME_KEYWORD = 3, - RESERVED_KEYWORD = 4, - KeywordKind_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - KeywordKind_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool KeywordKind_IsValid(int value); -constexpr KeywordKind KeywordKind_MIN = NO_KEYWORD; -constexpr KeywordKind KeywordKind_MAX = RESERVED_KEYWORD; -constexpr int KeywordKind_ARRAYSIZE = KeywordKind_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* KeywordKind_descriptor(); -template -inline const std::string& KeywordKind_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function KeywordKind_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - KeywordKind_descriptor(), enum_t_value); -} -inline bool KeywordKind_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, KeywordKind* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - KeywordKind_descriptor(), name, value); -} -enum Token : int { - NUL = 0, - ASCII_37 = 37, - ASCII_40 = 40, - ASCII_41 = 41, - ASCII_42 = 42, - ASCII_43 = 43, - ASCII_44 = 44, - ASCII_45 = 45, - ASCII_46 = 46, - ASCII_47 = 47, - ASCII_58 = 58, - ASCII_59 = 59, - ASCII_60 = 60, - ASCII_61 = 61, - ASCII_62 = 62, - ASCII_63 = 63, - ASCII_91 = 91, - ASCII_92 = 92, - ASCII_93 = 93, - ASCII_94 = 94, - IDENT = 258, - UIDENT = 259, - FCONST = 260, - SCONST = 261, - USCONST = 262, - BCONST = 263, - XCONST = 264, - Op = 265, - ICONST = 266, - PARAM = 267, - TYPECAST = 268, - DOT_DOT = 269, - COLON_EQUALS = 270, - EQUALS_GREATER = 271, - LESS_EQUALS = 272, - GREATER_EQUALS = 273, - NOT_EQUALS = 274, - SQL_COMMENT = 275, - C_COMMENT = 276, - ABORT_P = 277, - ABSOLUTE_P = 278, - ACCESS = 279, - ACTION = 280, - ADD_P = 281, - ADMIN = 282, - AFTER = 283, - AGGREGATE = 284, - ALL = 285, - ALSO = 286, - ALTER = 287, - ALWAYS = 288, - ANALYSE = 289, - ANALYZE = 290, - AND = 291, - ANY = 292, - ARRAY = 293, - AS = 294, - ASC = 295, - ASENSITIVE = 296, - ASSERTION = 297, - ASSIGNMENT = 298, - ASYMMETRIC = 299, - ATOMIC = 300, - AT = 301, - ATTACH = 302, - ATTRIBUTE = 303, - AUTHORIZATION = 304, - BACKWARD = 305, - BEFORE = 306, - BEGIN_P = 307, - BETWEEN = 308, - BIGINT = 309, - BINARY = 310, - BIT = 311, - BOOLEAN_P = 312, - BOTH = 313, - BREADTH = 314, - BY = 315, - CACHE = 316, - CALL = 317, - CALLED = 318, - CASCADE = 319, - CASCADED = 320, - CASE = 321, - CAST = 322, - CATALOG_P = 323, - CHAIN = 324, - CHAR_P = 325, - CHARACTER = 326, - CHARACTERISTICS = 327, - CHECK = 328, - CHECKPOINT = 329, - CLASS = 330, - CLOSE = 331, - CLUSTER = 332, - COALESCE = 333, - COLLATE = 334, - COLLATION = 335, - COLUMN = 336, - COLUMNS = 337, - COMMENT = 338, - COMMENTS = 339, - COMMIT = 340, - COMMITTED = 341, - COMPRESSION = 342, - CONCURRENTLY = 343, - CONFIGURATION = 344, - CONFLICT = 345, - CONNECTION = 346, - CONSTRAINT = 347, - CONSTRAINTS = 348, - CONTENT_P = 349, - CONTINUE_P = 350, - CONVERSION_P = 351, - COPY = 352, - COST = 353, - CREATE = 354, - CROSS = 355, - CSV = 356, - CUBE = 357, - CURRENT_P = 358, - CURRENT_CATALOG = 359, - CURRENT_DATE = 360, - CURRENT_ROLE = 361, - CURRENT_SCHEMA = 362, - CURRENT_TIME = 363, - CURRENT_TIMESTAMP = 364, - CURRENT_USER = 365, - CURSOR = 366, - CYCLE = 367, - DATA_P = 368, - DATABASE = 369, - DAY_P = 370, - DEALLOCATE = 371, - DEC = 372, - DECIMAL_P = 373, - DECLARE = 374, - DEFAULT = 375, - DEFAULTS = 376, - DEFERRABLE = 377, - DEFERRED = 378, - DEFINER = 379, - DELETE_P = 380, - DELIMITER = 381, - DELIMITERS = 382, - DEPENDS = 383, - DEPTH = 384, - DESC = 385, - DETACH = 386, - DICTIONARY = 387, - DISABLE_P = 388, - DISCARD = 389, - DISTINCT = 390, - DO = 391, - DOCUMENT_P = 392, - DOMAIN_P = 393, - DOUBLE_P = 394, - DROP = 395, - EACH = 396, - ELSE = 397, - ENABLE_P = 398, - ENCODING = 399, - ENCRYPTED = 400, - END_P = 401, - ENUM_P = 402, - ESCAPE = 403, - EVENT = 404, - EXCEPT = 405, - EXCLUDE = 406, - EXCLUDING = 407, - EXCLUSIVE = 408, - EXECUTE = 409, - EXISTS = 410, - EXPLAIN = 411, - EXPRESSION = 412, - EXTENSION = 413, - EXTERNAL = 414, - EXTRACT = 415, - FALSE_P = 416, - FAMILY = 417, - FETCH = 418, - FILTER = 419, - FINALIZE = 420, - FIRST_P = 421, - FLOAT_P = 422, - FOLLOWING = 423, - FOR = 424, - FORCE = 425, - FOREIGN = 426, - FORWARD = 427, - FREEZE = 428, - FROM = 429, - FULL = 430, - FUNCTION = 431, - FUNCTIONS = 432, - GENERATED = 433, - GLOBAL = 434, - GRANT = 435, - GRANTED = 436, - GREATEST = 437, - GROUP_P = 438, - GROUPING = 439, - GROUPS = 440, - HANDLER = 441, - HAVING = 442, - HEADER_P = 443, - HOLD = 444, - HOUR_P = 445, - IDENTITY_P = 446, - IF_P = 447, - ILIKE = 448, - IMMEDIATE = 449, - IMMUTABLE = 450, - IMPLICIT_P = 451, - IMPORT_P = 452, - IN_P = 453, - INCLUDE = 454, - INCLUDING = 455, - INCREMENT = 456, - INDEX = 457, - INDEXES = 458, - INHERIT = 459, - INHERITS = 460, - INITIALLY = 461, - INLINE_P = 462, - INNER_P = 463, - INOUT = 464, - INPUT_P = 465, - INSENSITIVE = 466, - INSERT = 467, - INSTEAD = 468, - INT_P = 469, - INTEGER = 470, - INTERSECT = 471, - INTERVAL = 472, - INTO = 473, - INVOKER = 474, - IS = 475, - ISNULL = 476, - ISOLATION = 477, - JOIN = 478, - KEY = 479, - LABEL = 480, - LANGUAGE = 481, - LARGE_P = 482, - LAST_P = 483, - LATERAL_P = 484, - LEADING = 485, - LEAKPROOF = 486, - LEAST = 487, - LEFT = 488, - LEVEL = 489, - LIKE = 490, - LIMIT = 491, - LISTEN = 492, - LOAD = 493, - LOCAL = 494, - LOCALTIME = 495, - LOCALTIMESTAMP = 496, - LOCATION = 497, - LOCK_P = 498, - LOCKED = 499, - LOGGED = 500, - MAPPING = 501, - MATCH = 502, - MATCHED = 503, - MATERIALIZED = 504, - MAXVALUE = 505, - MERGE = 506, - METHOD = 507, - MINUTE_P = 508, - MINVALUE = 509, - MODE = 510, - MONTH_P = 511, - MOVE = 512, - NAME_P = 513, - NAMES = 514, - NATIONAL = 515, - NATURAL = 516, - NCHAR = 517, - NEW = 518, - NEXT = 519, - NFC = 520, - NFD = 521, - NFKC = 522, - NFKD = 523, - NO = 524, - NONE = 525, - NORMALIZE = 526, - NORMALIZED = 527, - NOT = 528, - NOTHING = 529, - NOTIFY = 530, - NOTNULL = 531, - NOWAIT = 532, - NULL_P = 533, - NULLIF = 534, - NULLS_P = 535, - NUMERIC = 536, - OBJECT_P = 537, - OF = 538, - OFF = 539, - OFFSET = 540, - OIDS = 541, - OLD = 542, - ON = 543, - ONLY = 544, - OPERATOR = 545, - OPTION = 546, - OPTIONS = 547, - OR = 548, - ORDER = 549, - ORDINALITY = 550, - OTHERS = 551, - OUT_P = 552, - OUTER_P = 553, - OVER = 554, - OVERLAPS = 555, - OVERLAY = 556, - OVERRIDING = 557, - OWNED = 558, - OWNER = 559, - PARALLEL = 560, - PARAMETER = 561, - PARSER = 562, - PARTIAL = 563, - PARTITION = 564, - PASSING = 565, - PASSWORD = 566, - PLACING = 567, - PLANS = 568, - POLICY = 569, - POSITION = 570, - PRECEDING = 571, - PRECISION = 572, - PRESERVE = 573, - PREPARE = 574, - PREPARED = 575, - PRIMARY = 576, - PRIOR = 577, - PRIVILEGES = 578, - PROCEDURAL = 579, - PROCEDURE = 580, - PROCEDURES = 581, - PROGRAM = 582, - PUBLICATION = 583, - QUOTE = 584, - RANGE = 585, - READ = 586, - REAL = 587, - REASSIGN = 588, - RECHECK = 589, - RECURSIVE = 590, - REF_P = 591, - REFERENCES = 592, - REFERENCING = 593, - REFRESH = 594, - REINDEX = 595, - RELATIVE_P = 596, - RELEASE = 597, - RENAME = 598, - REPEATABLE = 599, - REPLACE = 600, - REPLICA = 601, - RESET = 602, - RESTART = 603, - RESTRICT = 604, - RETURN = 605, - RETURNING = 606, - RETURNS = 607, - REVOKE = 608, - RIGHT = 609, - ROLE = 610, - ROLLBACK = 611, - ROLLUP = 612, - ROUTINE = 613, - ROUTINES = 614, - ROW = 615, - ROWS = 616, - RULE = 617, - SAVEPOINT = 618, - SCHEMA = 619, - SCHEMAS = 620, - SCROLL = 621, - SEARCH = 622, - SECOND_P = 623, - SECURITY = 624, - SELECT = 625, - SEQUENCE = 626, - SEQUENCES = 627, - SERIALIZABLE = 628, - SERVER = 629, - SESSION = 630, - SESSION_USER = 631, - SET = 632, - SETS = 633, - SETOF = 634, - SHARE = 635, - SHOW = 636, - SIMILAR = 637, - SIMPLE = 638, - SKIP = 639, - SMALLINT = 640, - SNAPSHOT = 641, - SOME = 642, - SQL_P = 643, - STABLE = 644, - STANDALONE_P = 645, - START = 646, - STATEMENT = 647, - STATISTICS = 648, - STDIN = 649, - STDOUT = 650, - STORAGE = 651, - STORED = 652, - STRICT_P = 653, - STRIP_P = 654, - SUBSCRIPTION = 655, - SUBSTRING = 656, - SUPPORT = 657, - SYMMETRIC = 658, - SYSID = 659, - SYSTEM_P = 660, - TABLE = 661, - TABLES = 662, - TABLESAMPLE = 663, - TABLESPACE = 664, - TEMP = 665, - TEMPLATE = 666, - TEMPORARY = 667, - TEXT_P = 668, - THEN = 669, - TIES = 670, - TIME = 671, - TIMESTAMP = 672, - TO = 673, - TRAILING = 674, - TRANSACTION = 675, - TRANSFORM = 676, - TREAT = 677, - TRIGGER = 678, - TRIM = 679, - TRUE_P = 680, - TRUNCATE = 681, - TRUSTED = 682, - TYPE_P = 683, - TYPES_P = 684, - UESCAPE = 685, - UNBOUNDED = 686, - UNCOMMITTED = 687, - UNENCRYPTED = 688, - UNION = 689, - UNIQUE = 690, - UNKNOWN = 691, - UNLISTEN = 692, - UNLOGGED = 693, - UNTIL = 694, - UPDATE = 695, - USER = 696, - USING = 697, - VACUUM = 698, - VALID = 699, - VALIDATE = 700, - VALIDATOR = 701, - VALUE_P = 702, - VALUES = 703, - VARCHAR = 704, - VARIADIC = 705, - VARYING = 706, - VERBOSE = 707, - VERSION_P = 708, - VIEW = 709, - VIEWS = 710, - VOLATILE = 711, - WHEN = 712, - WHERE = 713, - WHITESPACE_P = 714, - WINDOW = 715, - WITH = 716, - WITHIN = 717, - WITHOUT = 718, - WORK = 719, - WRAPPER = 720, - WRITE = 721, - XML_P = 722, - XMLATTRIBUTES = 723, - XMLCONCAT = 724, - XMLELEMENT = 725, - XMLEXISTS = 726, - XMLFOREST = 727, - XMLNAMESPACES = 728, - XMLPARSE = 729, - XMLPI = 730, - XMLROOT = 731, - XMLSERIALIZE = 732, - XMLTABLE = 733, - YEAR_P = 734, - YES_P = 735, - ZONE = 736, - NOT_LA = 737, - NULLS_LA = 738, - WITH_LA = 739, - MODE_TYPE_NAME = 740, - MODE_PLPGSQL_EXPR = 741, - MODE_PLPGSQL_ASSIGN1 = 742, - MODE_PLPGSQL_ASSIGN2 = 743, - MODE_PLPGSQL_ASSIGN3 = 744, - UMINUS = 745, - Token_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - Token_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() -}; -bool Token_IsValid(int value); -constexpr Token Token_MIN = NUL; -constexpr Token Token_MAX = UMINUS; -constexpr int Token_ARRAYSIZE = Token_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Token_descriptor(); -template -inline const std::string& Token_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Token_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - Token_descriptor(), enum_t_value); -} -inline bool Token_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Token* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - Token_descriptor(), name, value); -} -// =================================================================== - -class ParseResult final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ParseResult) */ { - public: - inline ParseResult() : ParseResult(nullptr) {} - ~ParseResult() override; - explicit PROTOBUF_CONSTEXPR ParseResult(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ParseResult(const ParseResult& from); - ParseResult(ParseResult&& from) noexcept - : ParseResult() { - *this = ::std::move(from); - } - - inline ParseResult& operator=(const ParseResult& from) { - CopyFrom(from); - return *this; - } - inline ParseResult& operator=(ParseResult&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ParseResult& default_instance() { - return *internal_default_instance(); - } - static inline const ParseResult* internal_default_instance() { - return reinterpret_cast( - &_ParseResult_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(ParseResult& a, ParseResult& b) { - a.Swap(&b); - } - inline void Swap(ParseResult* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ParseResult* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ParseResult* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ParseResult& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ParseResult& from) { - ParseResult::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ParseResult* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ParseResult"; - } - protected: - explicit ParseResult(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStmtsFieldNumber = 2, - kVersionFieldNumber = 1, - }; - // repeated .pg_query.RawStmt stmts = 2; - int stmts_size() const; - private: - int _internal_stmts_size() const; - public: - void clear_stmts(); - ::pg_query::RawStmt* mutable_stmts(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::RawStmt >* - mutable_stmts(); - private: - const ::pg_query::RawStmt& _internal_stmts(int index) const; - ::pg_query::RawStmt* _internal_add_stmts(); - public: - const ::pg_query::RawStmt& stmts(int index) const; - ::pg_query::RawStmt* add_stmts(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::RawStmt >& - stmts() const; - - // int32 version = 1; - void clear_version(); - int32_t version() const; - void set_version(int32_t value); - private: - int32_t _internal_version() const; - void _internal_set_version(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.ParseResult) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::RawStmt > stmts_; - int32_t version_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ScanResult final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ScanResult) */ { - public: - inline ScanResult() : ScanResult(nullptr) {} - ~ScanResult() override; - explicit PROTOBUF_CONSTEXPR ScanResult(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ScanResult(const ScanResult& from); - ScanResult(ScanResult&& from) noexcept - : ScanResult() { - *this = ::std::move(from); - } - - inline ScanResult& operator=(const ScanResult& from) { - CopyFrom(from); - return *this; - } - inline ScanResult& operator=(ScanResult&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ScanResult& default_instance() { - return *internal_default_instance(); - } - static inline const ScanResult* internal_default_instance() { - return reinterpret_cast( - &_ScanResult_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(ScanResult& a, ScanResult& b) { - a.Swap(&b); - } - inline void Swap(ScanResult* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ScanResult* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ScanResult* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ScanResult& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ScanResult& from) { - ScanResult::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ScanResult* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ScanResult"; - } - protected: - explicit ScanResult(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTokensFieldNumber = 2, - kVersionFieldNumber = 1, - }; - // repeated .pg_query.ScanToken tokens = 2; - int tokens_size() const; - private: - int _internal_tokens_size() const; - public: - void clear_tokens(); - ::pg_query::ScanToken* mutable_tokens(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::ScanToken >* - mutable_tokens(); - private: - const ::pg_query::ScanToken& _internal_tokens(int index) const; - ::pg_query::ScanToken* _internal_add_tokens(); - public: - const ::pg_query::ScanToken& tokens(int index) const; - ::pg_query::ScanToken* add_tokens(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::ScanToken >& - tokens() const; - - // int32 version = 1; - void clear_version(); - int32_t version() const; - void set_version(int32_t value); - private: - int32_t _internal_version() const; - void _internal_set_version(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.ScanResult) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::ScanToken > tokens_; - int32_t version_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class Node final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.Node) */ { - public: - inline Node() : Node(nullptr) {} - ~Node() override; - explicit PROTOBUF_CONSTEXPR Node(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Node(const Node& from); - Node(Node&& from) noexcept - : Node() { - *this = ::std::move(from); - } - - inline Node& operator=(const Node& from) { - CopyFrom(from); - return *this; - } - inline Node& operator=(Node&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Node& default_instance() { - return *internal_default_instance(); - } - enum NodeCase { - kAlias = 1, - kRangeVar = 2, - kTableFunc = 3, - kVar = 4, - kParam = 5, - kAggref = 6, - kGroupingFunc = 7, - kWindowFunc = 8, - kSubscriptingRef = 9, - kFuncExpr = 10, - kNamedArgExpr = 11, - kOpExpr = 12, - kDistinctExpr = 13, - kNullIfExpr = 14, - kScalarArrayOpExpr = 15, - kBoolExpr = 16, - kSubLink = 17, - kSubPlan = 18, - kAlternativeSubPlan = 19, - kFieldSelect = 20, - kFieldStore = 21, - kRelabelType = 22, - kCoerceViaIo = 23, - kArrayCoerceExpr = 24, - kConvertRowtypeExpr = 25, - kCollateExpr = 26, - kCaseExpr = 27, - kCaseWhen = 28, - kCaseTestExpr = 29, - kArrayExpr = 30, - kRowExpr = 31, - kRowCompareExpr = 32, - kCoalesceExpr = 33, - kMinMaxExpr = 34, - kSqlvalueFunction = 35, - kXmlExpr = 36, - kNullTest = 37, - kBooleanTest = 38, - kCoerceToDomain = 39, - kCoerceToDomainValue = 40, - kSetToDefault = 41, - kCurrentOfExpr = 42, - kNextValueExpr = 43, - kInferenceElem = 44, - kTargetEntry = 45, - kRangeTblRef = 46, - kJoinExpr = 47, - kFromExpr = 48, - kOnConflictExpr = 49, - kIntoClause = 50, - kMergeAction = 51, - kRawStmt = 52, - kQuery = 53, - kInsertStmt = 54, - kDeleteStmt = 55, - kUpdateStmt = 56, - kMergeStmt = 57, - kSelectStmt = 58, - kReturnStmt = 59, - kPlassignStmt = 60, - kAlterTableStmt = 61, - kAlterTableCmd = 62, - kAlterDomainStmt = 63, - kSetOperationStmt = 64, - kGrantStmt = 65, - kGrantRoleStmt = 66, - kAlterDefaultPrivilegesStmt = 67, - kClosePortalStmt = 68, - kClusterStmt = 69, - kCopyStmt = 70, - kCreateStmt = 71, - kDefineStmt = 72, - kDropStmt = 73, - kTruncateStmt = 74, - kCommentStmt = 75, - kFetchStmt = 76, - kIndexStmt = 77, - kCreateFunctionStmt = 78, - kAlterFunctionStmt = 79, - kDoStmt = 80, - kRenameStmt = 81, - kRuleStmt = 82, - kNotifyStmt = 83, - kListenStmt = 84, - kUnlistenStmt = 85, - kTransactionStmt = 86, - kViewStmt = 87, - kLoadStmt = 88, - kCreateDomainStmt = 89, - kCreatedbStmt = 90, - kDropdbStmt = 91, - kVacuumStmt = 92, - kExplainStmt = 93, - kCreateTableAsStmt = 94, - kCreateSeqStmt = 95, - kAlterSeqStmt = 96, - kVariableSetStmt = 97, - kVariableShowStmt = 98, - kDiscardStmt = 99, - kCreateTrigStmt = 100, - kCreatePlangStmt = 101, - kCreateRoleStmt = 102, - kAlterRoleStmt = 103, - kDropRoleStmt = 104, - kLockStmt = 105, - kConstraintsSetStmt = 106, - kReindexStmt = 107, - kCheckPointStmt = 108, - kCreateSchemaStmt = 109, - kAlterDatabaseStmt = 110, - kAlterDatabaseRefreshCollStmt = 111, - kAlterDatabaseSetStmt = 112, - kAlterRoleSetStmt = 113, - kCreateConversionStmt = 114, - kCreateCastStmt = 115, - kCreateOpClassStmt = 116, - kCreateOpFamilyStmt = 117, - kAlterOpFamilyStmt = 118, - kPrepareStmt = 119, - kExecuteStmt = 120, - kDeallocateStmt = 121, - kDeclareCursorStmt = 122, - kCreateTableSpaceStmt = 123, - kDropTableSpaceStmt = 124, - kAlterObjectDependsStmt = 125, - kAlterObjectSchemaStmt = 126, - kAlterOwnerStmt = 127, - kAlterOperatorStmt = 128, - kAlterTypeStmt = 129, - kDropOwnedStmt = 130, - kReassignOwnedStmt = 131, - kCompositeTypeStmt = 132, - kCreateEnumStmt = 133, - kCreateRangeStmt = 134, - kAlterEnumStmt = 135, - kAlterTsdictionaryStmt = 136, - kAlterTsconfigurationStmt = 137, - kCreateFdwStmt = 138, - kAlterFdwStmt = 139, - kCreateForeignServerStmt = 140, - kAlterForeignServerStmt = 141, - kCreateUserMappingStmt = 142, - kAlterUserMappingStmt = 143, - kDropUserMappingStmt = 144, - kAlterTableSpaceOptionsStmt = 145, - kAlterTableMoveAllStmt = 146, - kSecLabelStmt = 147, - kCreateForeignTableStmt = 148, - kImportForeignSchemaStmt = 149, - kCreateExtensionStmt = 150, - kAlterExtensionStmt = 151, - kAlterExtensionContentsStmt = 152, - kCreateEventTrigStmt = 153, - kAlterEventTrigStmt = 154, - kRefreshMatViewStmt = 155, - kReplicaIdentityStmt = 156, - kAlterSystemStmt = 157, - kCreatePolicyStmt = 158, - kAlterPolicyStmt = 159, - kCreateTransformStmt = 160, - kCreateAmStmt = 161, - kCreatePublicationStmt = 162, - kAlterPublicationStmt = 163, - kCreateSubscriptionStmt = 164, - kAlterSubscriptionStmt = 165, - kDropSubscriptionStmt = 166, - kCreateStatsStmt = 167, - kAlterCollationStmt = 168, - kCallStmt = 169, - kAlterStatsStmt = 170, - kAExpr = 171, - kColumnRef = 172, - kParamRef = 173, - kFuncCall = 174, - kAStar = 175, - kAIndices = 176, - kAIndirection = 177, - kAArrayExpr = 178, - kResTarget = 179, - kMultiAssignRef = 180, - kTypeCast = 181, - kCollateClause = 182, - kSortBy = 183, - kWindowDef = 184, - kRangeSubselect = 185, - kRangeFunction = 186, - kRangeTableSample = 187, - kRangeTableFunc = 188, - kRangeTableFuncCol = 189, - kTypeName = 190, - kColumnDef = 191, - kIndexElem = 192, - kStatsElem = 193, - kConstraint = 194, - kDefElem = 195, - kRangeTblEntry = 196, - kRangeTblFunction = 197, - kTableSampleClause = 198, - kWithCheckOption = 199, - kSortGroupClause = 200, - kGroupingSet = 201, - kWindowClause = 202, - kObjectWithArgs = 203, - kAccessPriv = 204, - kCreateOpClassItem = 205, - kTableLikeClause = 206, - kFunctionParameter = 207, - kLockingClause = 208, - kRowMarkClause = 209, - kXmlSerialize = 210, - kWithClause = 211, - kInferClause = 212, - kOnConflictClause = 213, - kCtesearchClause = 214, - kCtecycleClause = 215, - kCommonTableExpr = 216, - kMergeWhenClause = 217, - kRoleSpec = 218, - kTriggerTransition = 219, - kPartitionElem = 220, - kPartitionSpec = 221, - kPartitionBoundSpec = 222, - kPartitionRangeDatum = 223, - kPartitionCmd = 224, - kVacuumRelation = 225, - kPublicationObjSpec = 226, - kPublicationTable = 227, - kInlineCodeBlock = 228, - kCallContext = 229, - kInteger = 230, - kFloat = 231, - kBoolean = 232, - kString = 233, - kBitString = 234, - kList = 235, - kIntList = 236, - kOidList = 237, - kAConst = 238, - NODE_NOT_SET = 0, - }; - - static inline const Node* internal_default_instance() { - return reinterpret_cast( - &_Node_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(Node& a, Node& b) { - a.Swap(&b); - } - inline void Swap(Node* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Node* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Node* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Node& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Node& from) { - Node::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Node* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.Node"; - } - protected: - explicit Node(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAliasFieldNumber = 1, - kRangeVarFieldNumber = 2, - kTableFuncFieldNumber = 3, - kVarFieldNumber = 4, - kParamFieldNumber = 5, - kAggrefFieldNumber = 6, - kGroupingFuncFieldNumber = 7, - kWindowFuncFieldNumber = 8, - kSubscriptingRefFieldNumber = 9, - kFuncExprFieldNumber = 10, - kNamedArgExprFieldNumber = 11, - kOpExprFieldNumber = 12, - kDistinctExprFieldNumber = 13, - kNullIfExprFieldNumber = 14, - kScalarArrayOpExprFieldNumber = 15, - kBoolExprFieldNumber = 16, - kSubLinkFieldNumber = 17, - kSubPlanFieldNumber = 18, - kAlternativeSubPlanFieldNumber = 19, - kFieldSelectFieldNumber = 20, - kFieldStoreFieldNumber = 21, - kRelabelTypeFieldNumber = 22, - kCoerceViaIoFieldNumber = 23, - kArrayCoerceExprFieldNumber = 24, - kConvertRowtypeExprFieldNumber = 25, - kCollateExprFieldNumber = 26, - kCaseExprFieldNumber = 27, - kCaseWhenFieldNumber = 28, - kCaseTestExprFieldNumber = 29, - kArrayExprFieldNumber = 30, - kRowExprFieldNumber = 31, - kRowCompareExprFieldNumber = 32, - kCoalesceExprFieldNumber = 33, - kMinMaxExprFieldNumber = 34, - kSqlvalueFunctionFieldNumber = 35, - kXmlExprFieldNumber = 36, - kNullTestFieldNumber = 37, - kBooleanTestFieldNumber = 38, - kCoerceToDomainFieldNumber = 39, - kCoerceToDomainValueFieldNumber = 40, - kSetToDefaultFieldNumber = 41, - kCurrentOfExprFieldNumber = 42, - kNextValueExprFieldNumber = 43, - kInferenceElemFieldNumber = 44, - kTargetEntryFieldNumber = 45, - kRangeTblRefFieldNumber = 46, - kJoinExprFieldNumber = 47, - kFromExprFieldNumber = 48, - kOnConflictExprFieldNumber = 49, - kIntoClauseFieldNumber = 50, - kMergeActionFieldNumber = 51, - kRawStmtFieldNumber = 52, - kQueryFieldNumber = 53, - kInsertStmtFieldNumber = 54, - kDeleteStmtFieldNumber = 55, - kUpdateStmtFieldNumber = 56, - kMergeStmtFieldNumber = 57, - kSelectStmtFieldNumber = 58, - kReturnStmtFieldNumber = 59, - kPlassignStmtFieldNumber = 60, - kAlterTableStmtFieldNumber = 61, - kAlterTableCmdFieldNumber = 62, - kAlterDomainStmtFieldNumber = 63, - kSetOperationStmtFieldNumber = 64, - kGrantStmtFieldNumber = 65, - kGrantRoleStmtFieldNumber = 66, - kAlterDefaultPrivilegesStmtFieldNumber = 67, - kClosePortalStmtFieldNumber = 68, - kClusterStmtFieldNumber = 69, - kCopyStmtFieldNumber = 70, - kCreateStmtFieldNumber = 71, - kDefineStmtFieldNumber = 72, - kDropStmtFieldNumber = 73, - kTruncateStmtFieldNumber = 74, - kCommentStmtFieldNumber = 75, - kFetchStmtFieldNumber = 76, - kIndexStmtFieldNumber = 77, - kCreateFunctionStmtFieldNumber = 78, - kAlterFunctionStmtFieldNumber = 79, - kDoStmtFieldNumber = 80, - kRenameStmtFieldNumber = 81, - kRuleStmtFieldNumber = 82, - kNotifyStmtFieldNumber = 83, - kListenStmtFieldNumber = 84, - kUnlistenStmtFieldNumber = 85, - kTransactionStmtFieldNumber = 86, - kViewStmtFieldNumber = 87, - kLoadStmtFieldNumber = 88, - kCreateDomainStmtFieldNumber = 89, - kCreatedbStmtFieldNumber = 90, - kDropdbStmtFieldNumber = 91, - kVacuumStmtFieldNumber = 92, - kExplainStmtFieldNumber = 93, - kCreateTableAsStmtFieldNumber = 94, - kCreateSeqStmtFieldNumber = 95, - kAlterSeqStmtFieldNumber = 96, - kVariableSetStmtFieldNumber = 97, - kVariableShowStmtFieldNumber = 98, - kDiscardStmtFieldNumber = 99, - kCreateTrigStmtFieldNumber = 100, - kCreatePlangStmtFieldNumber = 101, - kCreateRoleStmtFieldNumber = 102, - kAlterRoleStmtFieldNumber = 103, - kDropRoleStmtFieldNumber = 104, - kLockStmtFieldNumber = 105, - kConstraintsSetStmtFieldNumber = 106, - kReindexStmtFieldNumber = 107, - kCheckPointStmtFieldNumber = 108, - kCreateSchemaStmtFieldNumber = 109, - kAlterDatabaseStmtFieldNumber = 110, - kAlterDatabaseRefreshCollStmtFieldNumber = 111, - kAlterDatabaseSetStmtFieldNumber = 112, - kAlterRoleSetStmtFieldNumber = 113, - kCreateConversionStmtFieldNumber = 114, - kCreateCastStmtFieldNumber = 115, - kCreateOpClassStmtFieldNumber = 116, - kCreateOpFamilyStmtFieldNumber = 117, - kAlterOpFamilyStmtFieldNumber = 118, - kPrepareStmtFieldNumber = 119, - kExecuteStmtFieldNumber = 120, - kDeallocateStmtFieldNumber = 121, - kDeclareCursorStmtFieldNumber = 122, - kCreateTableSpaceStmtFieldNumber = 123, - kDropTableSpaceStmtFieldNumber = 124, - kAlterObjectDependsStmtFieldNumber = 125, - kAlterObjectSchemaStmtFieldNumber = 126, - kAlterOwnerStmtFieldNumber = 127, - kAlterOperatorStmtFieldNumber = 128, - kAlterTypeStmtFieldNumber = 129, - kDropOwnedStmtFieldNumber = 130, - kReassignOwnedStmtFieldNumber = 131, - kCompositeTypeStmtFieldNumber = 132, - kCreateEnumStmtFieldNumber = 133, - kCreateRangeStmtFieldNumber = 134, - kAlterEnumStmtFieldNumber = 135, - kAlterTsdictionaryStmtFieldNumber = 136, - kAlterTsconfigurationStmtFieldNumber = 137, - kCreateFdwStmtFieldNumber = 138, - kAlterFdwStmtFieldNumber = 139, - kCreateForeignServerStmtFieldNumber = 140, - kAlterForeignServerStmtFieldNumber = 141, - kCreateUserMappingStmtFieldNumber = 142, - kAlterUserMappingStmtFieldNumber = 143, - kDropUserMappingStmtFieldNumber = 144, - kAlterTableSpaceOptionsStmtFieldNumber = 145, - kAlterTableMoveAllStmtFieldNumber = 146, - kSecLabelStmtFieldNumber = 147, - kCreateForeignTableStmtFieldNumber = 148, - kImportForeignSchemaStmtFieldNumber = 149, - kCreateExtensionStmtFieldNumber = 150, - kAlterExtensionStmtFieldNumber = 151, - kAlterExtensionContentsStmtFieldNumber = 152, - kCreateEventTrigStmtFieldNumber = 153, - kAlterEventTrigStmtFieldNumber = 154, - kRefreshMatViewStmtFieldNumber = 155, - kReplicaIdentityStmtFieldNumber = 156, - kAlterSystemStmtFieldNumber = 157, - kCreatePolicyStmtFieldNumber = 158, - kAlterPolicyStmtFieldNumber = 159, - kCreateTransformStmtFieldNumber = 160, - kCreateAmStmtFieldNumber = 161, - kCreatePublicationStmtFieldNumber = 162, - kAlterPublicationStmtFieldNumber = 163, - kCreateSubscriptionStmtFieldNumber = 164, - kAlterSubscriptionStmtFieldNumber = 165, - kDropSubscriptionStmtFieldNumber = 166, - kCreateStatsStmtFieldNumber = 167, - kAlterCollationStmtFieldNumber = 168, - kCallStmtFieldNumber = 169, - kAlterStatsStmtFieldNumber = 170, - kAExprFieldNumber = 171, - kColumnRefFieldNumber = 172, - kParamRefFieldNumber = 173, - kFuncCallFieldNumber = 174, - kAStarFieldNumber = 175, - kAIndicesFieldNumber = 176, - kAIndirectionFieldNumber = 177, - kAArrayExprFieldNumber = 178, - kResTargetFieldNumber = 179, - kMultiAssignRefFieldNumber = 180, - kTypeCastFieldNumber = 181, - kCollateClauseFieldNumber = 182, - kSortByFieldNumber = 183, - kWindowDefFieldNumber = 184, - kRangeSubselectFieldNumber = 185, - kRangeFunctionFieldNumber = 186, - kRangeTableSampleFieldNumber = 187, - kRangeTableFuncFieldNumber = 188, - kRangeTableFuncColFieldNumber = 189, - kTypeNameFieldNumber = 190, - kColumnDefFieldNumber = 191, - kIndexElemFieldNumber = 192, - kStatsElemFieldNumber = 193, - kConstraintFieldNumber = 194, - kDefElemFieldNumber = 195, - kRangeTblEntryFieldNumber = 196, - kRangeTblFunctionFieldNumber = 197, - kTableSampleClauseFieldNumber = 198, - kWithCheckOptionFieldNumber = 199, - kSortGroupClauseFieldNumber = 200, - kGroupingSetFieldNumber = 201, - kWindowClauseFieldNumber = 202, - kObjectWithArgsFieldNumber = 203, - kAccessPrivFieldNumber = 204, - kCreateOpClassItemFieldNumber = 205, - kTableLikeClauseFieldNumber = 206, - kFunctionParameterFieldNumber = 207, - kLockingClauseFieldNumber = 208, - kRowMarkClauseFieldNumber = 209, - kXmlSerializeFieldNumber = 210, - kWithClauseFieldNumber = 211, - kInferClauseFieldNumber = 212, - kOnConflictClauseFieldNumber = 213, - kCtesearchClauseFieldNumber = 214, - kCtecycleClauseFieldNumber = 215, - kCommonTableExprFieldNumber = 216, - kMergeWhenClauseFieldNumber = 217, - kRoleSpecFieldNumber = 218, - kTriggerTransitionFieldNumber = 219, - kPartitionElemFieldNumber = 220, - kPartitionSpecFieldNumber = 221, - kPartitionBoundSpecFieldNumber = 222, - kPartitionRangeDatumFieldNumber = 223, - kPartitionCmdFieldNumber = 224, - kVacuumRelationFieldNumber = 225, - kPublicationObjSpecFieldNumber = 226, - kPublicationTableFieldNumber = 227, - kInlineCodeBlockFieldNumber = 228, - kCallContextFieldNumber = 229, - kIntegerFieldNumber = 230, - kFloatFieldNumber = 231, - kBooleanFieldNumber = 232, - kStringFieldNumber = 233, - kBitStringFieldNumber = 234, - kListFieldNumber = 235, - kIntListFieldNumber = 236, - kOidListFieldNumber = 237, - kAConstFieldNumber = 238, - }; - // .pg_query.Alias alias = 1 [json_name = "Alias"]; - bool has_alias() const; - private: - bool _internal_has_alias() const; - public: - void clear_alias(); - const ::pg_query::Alias& alias() const; - PROTOBUF_NODISCARD ::pg_query::Alias* release_alias(); - ::pg_query::Alias* mutable_alias(); - void set_allocated_alias(::pg_query::Alias* alias); - private: - const ::pg_query::Alias& _internal_alias() const; - ::pg_query::Alias* _internal_mutable_alias(); - public: - void unsafe_arena_set_allocated_alias( - ::pg_query::Alias* alias); - ::pg_query::Alias* unsafe_arena_release_alias(); - - // .pg_query.RangeVar range_var = 2 [json_name = "RangeVar"]; - bool has_range_var() const; - private: - bool _internal_has_range_var() const; - public: - void clear_range_var(); - const ::pg_query::RangeVar& range_var() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_range_var(); - ::pg_query::RangeVar* mutable_range_var(); - void set_allocated_range_var(::pg_query::RangeVar* range_var); - private: - const ::pg_query::RangeVar& _internal_range_var() const; - ::pg_query::RangeVar* _internal_mutable_range_var(); - public: - void unsafe_arena_set_allocated_range_var( - ::pg_query::RangeVar* range_var); - ::pg_query::RangeVar* unsafe_arena_release_range_var(); - - // .pg_query.TableFunc table_func = 3 [json_name = "TableFunc"]; - bool has_table_func() const; - private: - bool _internal_has_table_func() const; - public: - void clear_table_func(); - const ::pg_query::TableFunc& table_func() const; - PROTOBUF_NODISCARD ::pg_query::TableFunc* release_table_func(); - ::pg_query::TableFunc* mutable_table_func(); - void set_allocated_table_func(::pg_query::TableFunc* table_func); - private: - const ::pg_query::TableFunc& _internal_table_func() const; - ::pg_query::TableFunc* _internal_mutable_table_func(); - public: - void unsafe_arena_set_allocated_table_func( - ::pg_query::TableFunc* table_func); - ::pg_query::TableFunc* unsafe_arena_release_table_func(); - - // .pg_query.Var var = 4 [json_name = "Var"]; - bool has_var() const; - private: - bool _internal_has_var() const; - public: - void clear_var(); - const ::pg_query::Var& var() const; - PROTOBUF_NODISCARD ::pg_query::Var* release_var(); - ::pg_query::Var* mutable_var(); - void set_allocated_var(::pg_query::Var* var); - private: - const ::pg_query::Var& _internal_var() const; - ::pg_query::Var* _internal_mutable_var(); - public: - void unsafe_arena_set_allocated_var( - ::pg_query::Var* var); - ::pg_query::Var* unsafe_arena_release_var(); - - // .pg_query.Param param = 5 [json_name = "Param"]; - bool has_param() const; - private: - bool _internal_has_param() const; - public: - void clear_param(); - const ::pg_query::Param& param() const; - PROTOBUF_NODISCARD ::pg_query::Param* release_param(); - ::pg_query::Param* mutable_param(); - void set_allocated_param(::pg_query::Param* param); - private: - const ::pg_query::Param& _internal_param() const; - ::pg_query::Param* _internal_mutable_param(); - public: - void unsafe_arena_set_allocated_param( - ::pg_query::Param* param); - ::pg_query::Param* unsafe_arena_release_param(); - - // .pg_query.Aggref aggref = 6 [json_name = "Aggref"]; - bool has_aggref() const; - private: - bool _internal_has_aggref() const; - public: - void clear_aggref(); - const ::pg_query::Aggref& aggref() const; - PROTOBUF_NODISCARD ::pg_query::Aggref* release_aggref(); - ::pg_query::Aggref* mutable_aggref(); - void set_allocated_aggref(::pg_query::Aggref* aggref); - private: - const ::pg_query::Aggref& _internal_aggref() const; - ::pg_query::Aggref* _internal_mutable_aggref(); - public: - void unsafe_arena_set_allocated_aggref( - ::pg_query::Aggref* aggref); - ::pg_query::Aggref* unsafe_arena_release_aggref(); - - // .pg_query.GroupingFunc grouping_func = 7 [json_name = "GroupingFunc"]; - bool has_grouping_func() const; - private: - bool _internal_has_grouping_func() const; - public: - void clear_grouping_func(); - const ::pg_query::GroupingFunc& grouping_func() const; - PROTOBUF_NODISCARD ::pg_query::GroupingFunc* release_grouping_func(); - ::pg_query::GroupingFunc* mutable_grouping_func(); - void set_allocated_grouping_func(::pg_query::GroupingFunc* grouping_func); - private: - const ::pg_query::GroupingFunc& _internal_grouping_func() const; - ::pg_query::GroupingFunc* _internal_mutable_grouping_func(); - public: - void unsafe_arena_set_allocated_grouping_func( - ::pg_query::GroupingFunc* grouping_func); - ::pg_query::GroupingFunc* unsafe_arena_release_grouping_func(); - - // .pg_query.WindowFunc window_func = 8 [json_name = "WindowFunc"]; - bool has_window_func() const; - private: - bool _internal_has_window_func() const; - public: - void clear_window_func(); - const ::pg_query::WindowFunc& window_func() const; - PROTOBUF_NODISCARD ::pg_query::WindowFunc* release_window_func(); - ::pg_query::WindowFunc* mutable_window_func(); - void set_allocated_window_func(::pg_query::WindowFunc* window_func); - private: - const ::pg_query::WindowFunc& _internal_window_func() const; - ::pg_query::WindowFunc* _internal_mutable_window_func(); - public: - void unsafe_arena_set_allocated_window_func( - ::pg_query::WindowFunc* window_func); - ::pg_query::WindowFunc* unsafe_arena_release_window_func(); - - // .pg_query.SubscriptingRef subscripting_ref = 9 [json_name = "SubscriptingRef"]; - bool has_subscripting_ref() const; - private: - bool _internal_has_subscripting_ref() const; - public: - void clear_subscripting_ref(); - const ::pg_query::SubscriptingRef& subscripting_ref() const; - PROTOBUF_NODISCARD ::pg_query::SubscriptingRef* release_subscripting_ref(); - ::pg_query::SubscriptingRef* mutable_subscripting_ref(); - void set_allocated_subscripting_ref(::pg_query::SubscriptingRef* subscripting_ref); - private: - const ::pg_query::SubscriptingRef& _internal_subscripting_ref() const; - ::pg_query::SubscriptingRef* _internal_mutable_subscripting_ref(); - public: - void unsafe_arena_set_allocated_subscripting_ref( - ::pg_query::SubscriptingRef* subscripting_ref); - ::pg_query::SubscriptingRef* unsafe_arena_release_subscripting_ref(); - - // .pg_query.FuncExpr func_expr = 10 [json_name = "FuncExpr"]; - bool has_func_expr() const; - private: - bool _internal_has_func_expr() const; - public: - void clear_func_expr(); - const ::pg_query::FuncExpr& func_expr() const; - PROTOBUF_NODISCARD ::pg_query::FuncExpr* release_func_expr(); - ::pg_query::FuncExpr* mutable_func_expr(); - void set_allocated_func_expr(::pg_query::FuncExpr* func_expr); - private: - const ::pg_query::FuncExpr& _internal_func_expr() const; - ::pg_query::FuncExpr* _internal_mutable_func_expr(); - public: - void unsafe_arena_set_allocated_func_expr( - ::pg_query::FuncExpr* func_expr); - ::pg_query::FuncExpr* unsafe_arena_release_func_expr(); - - // .pg_query.NamedArgExpr named_arg_expr = 11 [json_name = "NamedArgExpr"]; - bool has_named_arg_expr() const; - private: - bool _internal_has_named_arg_expr() const; - public: - void clear_named_arg_expr(); - const ::pg_query::NamedArgExpr& named_arg_expr() const; - PROTOBUF_NODISCARD ::pg_query::NamedArgExpr* release_named_arg_expr(); - ::pg_query::NamedArgExpr* mutable_named_arg_expr(); - void set_allocated_named_arg_expr(::pg_query::NamedArgExpr* named_arg_expr); - private: - const ::pg_query::NamedArgExpr& _internal_named_arg_expr() const; - ::pg_query::NamedArgExpr* _internal_mutable_named_arg_expr(); - public: - void unsafe_arena_set_allocated_named_arg_expr( - ::pg_query::NamedArgExpr* named_arg_expr); - ::pg_query::NamedArgExpr* unsafe_arena_release_named_arg_expr(); - - // .pg_query.OpExpr op_expr = 12 [json_name = "OpExpr"]; - bool has_op_expr() const; - private: - bool _internal_has_op_expr() const; - public: - void clear_op_expr(); - const ::pg_query::OpExpr& op_expr() const; - PROTOBUF_NODISCARD ::pg_query::OpExpr* release_op_expr(); - ::pg_query::OpExpr* mutable_op_expr(); - void set_allocated_op_expr(::pg_query::OpExpr* op_expr); - private: - const ::pg_query::OpExpr& _internal_op_expr() const; - ::pg_query::OpExpr* _internal_mutable_op_expr(); - public: - void unsafe_arena_set_allocated_op_expr( - ::pg_query::OpExpr* op_expr); - ::pg_query::OpExpr* unsafe_arena_release_op_expr(); - - // .pg_query.DistinctExpr distinct_expr = 13 [json_name = "DistinctExpr"]; - bool has_distinct_expr() const; - private: - bool _internal_has_distinct_expr() const; - public: - void clear_distinct_expr(); - const ::pg_query::DistinctExpr& distinct_expr() const; - PROTOBUF_NODISCARD ::pg_query::DistinctExpr* release_distinct_expr(); - ::pg_query::DistinctExpr* mutable_distinct_expr(); - void set_allocated_distinct_expr(::pg_query::DistinctExpr* distinct_expr); - private: - const ::pg_query::DistinctExpr& _internal_distinct_expr() const; - ::pg_query::DistinctExpr* _internal_mutable_distinct_expr(); - public: - void unsafe_arena_set_allocated_distinct_expr( - ::pg_query::DistinctExpr* distinct_expr); - ::pg_query::DistinctExpr* unsafe_arena_release_distinct_expr(); - - // .pg_query.NullIfExpr null_if_expr = 14 [json_name = "NullIfExpr"]; - bool has_null_if_expr() const; - private: - bool _internal_has_null_if_expr() const; - public: - void clear_null_if_expr(); - const ::pg_query::NullIfExpr& null_if_expr() const; - PROTOBUF_NODISCARD ::pg_query::NullIfExpr* release_null_if_expr(); - ::pg_query::NullIfExpr* mutable_null_if_expr(); - void set_allocated_null_if_expr(::pg_query::NullIfExpr* null_if_expr); - private: - const ::pg_query::NullIfExpr& _internal_null_if_expr() const; - ::pg_query::NullIfExpr* _internal_mutable_null_if_expr(); - public: - void unsafe_arena_set_allocated_null_if_expr( - ::pg_query::NullIfExpr* null_if_expr); - ::pg_query::NullIfExpr* unsafe_arena_release_null_if_expr(); - - // .pg_query.ScalarArrayOpExpr scalar_array_op_expr = 15 [json_name = "ScalarArrayOpExpr"]; - bool has_scalar_array_op_expr() const; - private: - bool _internal_has_scalar_array_op_expr() const; - public: - void clear_scalar_array_op_expr(); - const ::pg_query::ScalarArrayOpExpr& scalar_array_op_expr() const; - PROTOBUF_NODISCARD ::pg_query::ScalarArrayOpExpr* release_scalar_array_op_expr(); - ::pg_query::ScalarArrayOpExpr* mutable_scalar_array_op_expr(); - void set_allocated_scalar_array_op_expr(::pg_query::ScalarArrayOpExpr* scalar_array_op_expr); - private: - const ::pg_query::ScalarArrayOpExpr& _internal_scalar_array_op_expr() const; - ::pg_query::ScalarArrayOpExpr* _internal_mutable_scalar_array_op_expr(); - public: - void unsafe_arena_set_allocated_scalar_array_op_expr( - ::pg_query::ScalarArrayOpExpr* scalar_array_op_expr); - ::pg_query::ScalarArrayOpExpr* unsafe_arena_release_scalar_array_op_expr(); - - // .pg_query.BoolExpr bool_expr = 16 [json_name = "BoolExpr"]; - bool has_bool_expr() const; - private: - bool _internal_has_bool_expr() const; - public: - void clear_bool_expr(); - const ::pg_query::BoolExpr& bool_expr() const; - PROTOBUF_NODISCARD ::pg_query::BoolExpr* release_bool_expr(); - ::pg_query::BoolExpr* mutable_bool_expr(); - void set_allocated_bool_expr(::pg_query::BoolExpr* bool_expr); - private: - const ::pg_query::BoolExpr& _internal_bool_expr() const; - ::pg_query::BoolExpr* _internal_mutable_bool_expr(); - public: - void unsafe_arena_set_allocated_bool_expr( - ::pg_query::BoolExpr* bool_expr); - ::pg_query::BoolExpr* unsafe_arena_release_bool_expr(); - - // .pg_query.SubLink sub_link = 17 [json_name = "SubLink"]; - bool has_sub_link() const; - private: - bool _internal_has_sub_link() const; - public: - void clear_sub_link(); - const ::pg_query::SubLink& sub_link() const; - PROTOBUF_NODISCARD ::pg_query::SubLink* release_sub_link(); - ::pg_query::SubLink* mutable_sub_link(); - void set_allocated_sub_link(::pg_query::SubLink* sub_link); - private: - const ::pg_query::SubLink& _internal_sub_link() const; - ::pg_query::SubLink* _internal_mutable_sub_link(); - public: - void unsafe_arena_set_allocated_sub_link( - ::pg_query::SubLink* sub_link); - ::pg_query::SubLink* unsafe_arena_release_sub_link(); - - // .pg_query.SubPlan sub_plan = 18 [json_name = "SubPlan"]; - bool has_sub_plan() const; - private: - bool _internal_has_sub_plan() const; - public: - void clear_sub_plan(); - const ::pg_query::SubPlan& sub_plan() const; - PROTOBUF_NODISCARD ::pg_query::SubPlan* release_sub_plan(); - ::pg_query::SubPlan* mutable_sub_plan(); - void set_allocated_sub_plan(::pg_query::SubPlan* sub_plan); - private: - const ::pg_query::SubPlan& _internal_sub_plan() const; - ::pg_query::SubPlan* _internal_mutable_sub_plan(); - public: - void unsafe_arena_set_allocated_sub_plan( - ::pg_query::SubPlan* sub_plan); - ::pg_query::SubPlan* unsafe_arena_release_sub_plan(); - - // .pg_query.AlternativeSubPlan alternative_sub_plan = 19 [json_name = "AlternativeSubPlan"]; - bool has_alternative_sub_plan() const; - private: - bool _internal_has_alternative_sub_plan() const; - public: - void clear_alternative_sub_plan(); - const ::pg_query::AlternativeSubPlan& alternative_sub_plan() const; - PROTOBUF_NODISCARD ::pg_query::AlternativeSubPlan* release_alternative_sub_plan(); - ::pg_query::AlternativeSubPlan* mutable_alternative_sub_plan(); - void set_allocated_alternative_sub_plan(::pg_query::AlternativeSubPlan* alternative_sub_plan); - private: - const ::pg_query::AlternativeSubPlan& _internal_alternative_sub_plan() const; - ::pg_query::AlternativeSubPlan* _internal_mutable_alternative_sub_plan(); - public: - void unsafe_arena_set_allocated_alternative_sub_plan( - ::pg_query::AlternativeSubPlan* alternative_sub_plan); - ::pg_query::AlternativeSubPlan* unsafe_arena_release_alternative_sub_plan(); - - // .pg_query.FieldSelect field_select = 20 [json_name = "FieldSelect"]; - bool has_field_select() const; - private: - bool _internal_has_field_select() const; - public: - void clear_field_select(); - const ::pg_query::FieldSelect& field_select() const; - PROTOBUF_NODISCARD ::pg_query::FieldSelect* release_field_select(); - ::pg_query::FieldSelect* mutable_field_select(); - void set_allocated_field_select(::pg_query::FieldSelect* field_select); - private: - const ::pg_query::FieldSelect& _internal_field_select() const; - ::pg_query::FieldSelect* _internal_mutable_field_select(); - public: - void unsafe_arena_set_allocated_field_select( - ::pg_query::FieldSelect* field_select); - ::pg_query::FieldSelect* unsafe_arena_release_field_select(); - - // .pg_query.FieldStore field_store = 21 [json_name = "FieldStore"]; - bool has_field_store() const; - private: - bool _internal_has_field_store() const; - public: - void clear_field_store(); - const ::pg_query::FieldStore& field_store() const; - PROTOBUF_NODISCARD ::pg_query::FieldStore* release_field_store(); - ::pg_query::FieldStore* mutable_field_store(); - void set_allocated_field_store(::pg_query::FieldStore* field_store); - private: - const ::pg_query::FieldStore& _internal_field_store() const; - ::pg_query::FieldStore* _internal_mutable_field_store(); - public: - void unsafe_arena_set_allocated_field_store( - ::pg_query::FieldStore* field_store); - ::pg_query::FieldStore* unsafe_arena_release_field_store(); - - // .pg_query.RelabelType relabel_type = 22 [json_name = "RelabelType"]; - bool has_relabel_type() const; - private: - bool _internal_has_relabel_type() const; - public: - void clear_relabel_type(); - const ::pg_query::RelabelType& relabel_type() const; - PROTOBUF_NODISCARD ::pg_query::RelabelType* release_relabel_type(); - ::pg_query::RelabelType* mutable_relabel_type(); - void set_allocated_relabel_type(::pg_query::RelabelType* relabel_type); - private: - const ::pg_query::RelabelType& _internal_relabel_type() const; - ::pg_query::RelabelType* _internal_mutable_relabel_type(); - public: - void unsafe_arena_set_allocated_relabel_type( - ::pg_query::RelabelType* relabel_type); - ::pg_query::RelabelType* unsafe_arena_release_relabel_type(); - - // .pg_query.CoerceViaIO coerce_via_io = 23 [json_name = "CoerceViaIO"]; - bool has_coerce_via_io() const; - private: - bool _internal_has_coerce_via_io() const; - public: - void clear_coerce_via_io(); - const ::pg_query::CoerceViaIO& coerce_via_io() const; - PROTOBUF_NODISCARD ::pg_query::CoerceViaIO* release_coerce_via_io(); - ::pg_query::CoerceViaIO* mutable_coerce_via_io(); - void set_allocated_coerce_via_io(::pg_query::CoerceViaIO* coerce_via_io); - private: - const ::pg_query::CoerceViaIO& _internal_coerce_via_io() const; - ::pg_query::CoerceViaIO* _internal_mutable_coerce_via_io(); - public: - void unsafe_arena_set_allocated_coerce_via_io( - ::pg_query::CoerceViaIO* coerce_via_io); - ::pg_query::CoerceViaIO* unsafe_arena_release_coerce_via_io(); - - // .pg_query.ArrayCoerceExpr array_coerce_expr = 24 [json_name = "ArrayCoerceExpr"]; - bool has_array_coerce_expr() const; - private: - bool _internal_has_array_coerce_expr() const; - public: - void clear_array_coerce_expr(); - const ::pg_query::ArrayCoerceExpr& array_coerce_expr() const; - PROTOBUF_NODISCARD ::pg_query::ArrayCoerceExpr* release_array_coerce_expr(); - ::pg_query::ArrayCoerceExpr* mutable_array_coerce_expr(); - void set_allocated_array_coerce_expr(::pg_query::ArrayCoerceExpr* array_coerce_expr); - private: - const ::pg_query::ArrayCoerceExpr& _internal_array_coerce_expr() const; - ::pg_query::ArrayCoerceExpr* _internal_mutable_array_coerce_expr(); - public: - void unsafe_arena_set_allocated_array_coerce_expr( - ::pg_query::ArrayCoerceExpr* array_coerce_expr); - ::pg_query::ArrayCoerceExpr* unsafe_arena_release_array_coerce_expr(); - - // .pg_query.ConvertRowtypeExpr convert_rowtype_expr = 25 [json_name = "ConvertRowtypeExpr"]; - bool has_convert_rowtype_expr() const; - private: - bool _internal_has_convert_rowtype_expr() const; - public: - void clear_convert_rowtype_expr(); - const ::pg_query::ConvertRowtypeExpr& convert_rowtype_expr() const; - PROTOBUF_NODISCARD ::pg_query::ConvertRowtypeExpr* release_convert_rowtype_expr(); - ::pg_query::ConvertRowtypeExpr* mutable_convert_rowtype_expr(); - void set_allocated_convert_rowtype_expr(::pg_query::ConvertRowtypeExpr* convert_rowtype_expr); - private: - const ::pg_query::ConvertRowtypeExpr& _internal_convert_rowtype_expr() const; - ::pg_query::ConvertRowtypeExpr* _internal_mutable_convert_rowtype_expr(); - public: - void unsafe_arena_set_allocated_convert_rowtype_expr( - ::pg_query::ConvertRowtypeExpr* convert_rowtype_expr); - ::pg_query::ConvertRowtypeExpr* unsafe_arena_release_convert_rowtype_expr(); - - // .pg_query.CollateExpr collate_expr = 26 [json_name = "CollateExpr"]; - bool has_collate_expr() const; - private: - bool _internal_has_collate_expr() const; - public: - void clear_collate_expr(); - const ::pg_query::CollateExpr& collate_expr() const; - PROTOBUF_NODISCARD ::pg_query::CollateExpr* release_collate_expr(); - ::pg_query::CollateExpr* mutable_collate_expr(); - void set_allocated_collate_expr(::pg_query::CollateExpr* collate_expr); - private: - const ::pg_query::CollateExpr& _internal_collate_expr() const; - ::pg_query::CollateExpr* _internal_mutable_collate_expr(); - public: - void unsafe_arena_set_allocated_collate_expr( - ::pg_query::CollateExpr* collate_expr); - ::pg_query::CollateExpr* unsafe_arena_release_collate_expr(); - - // .pg_query.CaseExpr case_expr = 27 [json_name = "CaseExpr"]; - bool has_case_expr() const; - private: - bool _internal_has_case_expr() const; - public: - void clear_case_expr(); - const ::pg_query::CaseExpr& case_expr() const; - PROTOBUF_NODISCARD ::pg_query::CaseExpr* release_case_expr(); - ::pg_query::CaseExpr* mutable_case_expr(); - void set_allocated_case_expr(::pg_query::CaseExpr* case_expr); - private: - const ::pg_query::CaseExpr& _internal_case_expr() const; - ::pg_query::CaseExpr* _internal_mutable_case_expr(); - public: - void unsafe_arena_set_allocated_case_expr( - ::pg_query::CaseExpr* case_expr); - ::pg_query::CaseExpr* unsafe_arena_release_case_expr(); - - // .pg_query.CaseWhen case_when = 28 [json_name = "CaseWhen"]; - bool has_case_when() const; - private: - bool _internal_has_case_when() const; - public: - void clear_case_when(); - const ::pg_query::CaseWhen& case_when() const; - PROTOBUF_NODISCARD ::pg_query::CaseWhen* release_case_when(); - ::pg_query::CaseWhen* mutable_case_when(); - void set_allocated_case_when(::pg_query::CaseWhen* case_when); - private: - const ::pg_query::CaseWhen& _internal_case_when() const; - ::pg_query::CaseWhen* _internal_mutable_case_when(); - public: - void unsafe_arena_set_allocated_case_when( - ::pg_query::CaseWhen* case_when); - ::pg_query::CaseWhen* unsafe_arena_release_case_when(); - - // .pg_query.CaseTestExpr case_test_expr = 29 [json_name = "CaseTestExpr"]; - bool has_case_test_expr() const; - private: - bool _internal_has_case_test_expr() const; - public: - void clear_case_test_expr(); - const ::pg_query::CaseTestExpr& case_test_expr() const; - PROTOBUF_NODISCARD ::pg_query::CaseTestExpr* release_case_test_expr(); - ::pg_query::CaseTestExpr* mutable_case_test_expr(); - void set_allocated_case_test_expr(::pg_query::CaseTestExpr* case_test_expr); - private: - const ::pg_query::CaseTestExpr& _internal_case_test_expr() const; - ::pg_query::CaseTestExpr* _internal_mutable_case_test_expr(); - public: - void unsafe_arena_set_allocated_case_test_expr( - ::pg_query::CaseTestExpr* case_test_expr); - ::pg_query::CaseTestExpr* unsafe_arena_release_case_test_expr(); - - // .pg_query.ArrayExpr array_expr = 30 [json_name = "ArrayExpr"]; - bool has_array_expr() const; - private: - bool _internal_has_array_expr() const; - public: - void clear_array_expr(); - const ::pg_query::ArrayExpr& array_expr() const; - PROTOBUF_NODISCARD ::pg_query::ArrayExpr* release_array_expr(); - ::pg_query::ArrayExpr* mutable_array_expr(); - void set_allocated_array_expr(::pg_query::ArrayExpr* array_expr); - private: - const ::pg_query::ArrayExpr& _internal_array_expr() const; - ::pg_query::ArrayExpr* _internal_mutable_array_expr(); - public: - void unsafe_arena_set_allocated_array_expr( - ::pg_query::ArrayExpr* array_expr); - ::pg_query::ArrayExpr* unsafe_arena_release_array_expr(); - - // .pg_query.RowExpr row_expr = 31 [json_name = "RowExpr"]; - bool has_row_expr() const; - private: - bool _internal_has_row_expr() const; - public: - void clear_row_expr(); - const ::pg_query::RowExpr& row_expr() const; - PROTOBUF_NODISCARD ::pg_query::RowExpr* release_row_expr(); - ::pg_query::RowExpr* mutable_row_expr(); - void set_allocated_row_expr(::pg_query::RowExpr* row_expr); - private: - const ::pg_query::RowExpr& _internal_row_expr() const; - ::pg_query::RowExpr* _internal_mutable_row_expr(); - public: - void unsafe_arena_set_allocated_row_expr( - ::pg_query::RowExpr* row_expr); - ::pg_query::RowExpr* unsafe_arena_release_row_expr(); - - // .pg_query.RowCompareExpr row_compare_expr = 32 [json_name = "RowCompareExpr"]; - bool has_row_compare_expr() const; - private: - bool _internal_has_row_compare_expr() const; - public: - void clear_row_compare_expr(); - const ::pg_query::RowCompareExpr& row_compare_expr() const; - PROTOBUF_NODISCARD ::pg_query::RowCompareExpr* release_row_compare_expr(); - ::pg_query::RowCompareExpr* mutable_row_compare_expr(); - void set_allocated_row_compare_expr(::pg_query::RowCompareExpr* row_compare_expr); - private: - const ::pg_query::RowCompareExpr& _internal_row_compare_expr() const; - ::pg_query::RowCompareExpr* _internal_mutable_row_compare_expr(); - public: - void unsafe_arena_set_allocated_row_compare_expr( - ::pg_query::RowCompareExpr* row_compare_expr); - ::pg_query::RowCompareExpr* unsafe_arena_release_row_compare_expr(); - - // .pg_query.CoalesceExpr coalesce_expr = 33 [json_name = "CoalesceExpr"]; - bool has_coalesce_expr() const; - private: - bool _internal_has_coalesce_expr() const; - public: - void clear_coalesce_expr(); - const ::pg_query::CoalesceExpr& coalesce_expr() const; - PROTOBUF_NODISCARD ::pg_query::CoalesceExpr* release_coalesce_expr(); - ::pg_query::CoalesceExpr* mutable_coalesce_expr(); - void set_allocated_coalesce_expr(::pg_query::CoalesceExpr* coalesce_expr); - private: - const ::pg_query::CoalesceExpr& _internal_coalesce_expr() const; - ::pg_query::CoalesceExpr* _internal_mutable_coalesce_expr(); - public: - void unsafe_arena_set_allocated_coalesce_expr( - ::pg_query::CoalesceExpr* coalesce_expr); - ::pg_query::CoalesceExpr* unsafe_arena_release_coalesce_expr(); - - // .pg_query.MinMaxExpr min_max_expr = 34 [json_name = "MinMaxExpr"]; - bool has_min_max_expr() const; - private: - bool _internal_has_min_max_expr() const; - public: - void clear_min_max_expr(); - const ::pg_query::MinMaxExpr& min_max_expr() const; - PROTOBUF_NODISCARD ::pg_query::MinMaxExpr* release_min_max_expr(); - ::pg_query::MinMaxExpr* mutable_min_max_expr(); - void set_allocated_min_max_expr(::pg_query::MinMaxExpr* min_max_expr); - private: - const ::pg_query::MinMaxExpr& _internal_min_max_expr() const; - ::pg_query::MinMaxExpr* _internal_mutable_min_max_expr(); - public: - void unsafe_arena_set_allocated_min_max_expr( - ::pg_query::MinMaxExpr* min_max_expr); - ::pg_query::MinMaxExpr* unsafe_arena_release_min_max_expr(); - - // .pg_query.SQLValueFunction sqlvalue_function = 35 [json_name = "SQLValueFunction"]; - bool has_sqlvalue_function() const; - private: - bool _internal_has_sqlvalue_function() const; - public: - void clear_sqlvalue_function(); - const ::pg_query::SQLValueFunction& sqlvalue_function() const; - PROTOBUF_NODISCARD ::pg_query::SQLValueFunction* release_sqlvalue_function(); - ::pg_query::SQLValueFunction* mutable_sqlvalue_function(); - void set_allocated_sqlvalue_function(::pg_query::SQLValueFunction* sqlvalue_function); - private: - const ::pg_query::SQLValueFunction& _internal_sqlvalue_function() const; - ::pg_query::SQLValueFunction* _internal_mutable_sqlvalue_function(); - public: - void unsafe_arena_set_allocated_sqlvalue_function( - ::pg_query::SQLValueFunction* sqlvalue_function); - ::pg_query::SQLValueFunction* unsafe_arena_release_sqlvalue_function(); - - // .pg_query.XmlExpr xml_expr = 36 [json_name = "XmlExpr"]; - bool has_xml_expr() const; - private: - bool _internal_has_xml_expr() const; - public: - void clear_xml_expr(); - const ::pg_query::XmlExpr& xml_expr() const; - PROTOBUF_NODISCARD ::pg_query::XmlExpr* release_xml_expr(); - ::pg_query::XmlExpr* mutable_xml_expr(); - void set_allocated_xml_expr(::pg_query::XmlExpr* xml_expr); - private: - const ::pg_query::XmlExpr& _internal_xml_expr() const; - ::pg_query::XmlExpr* _internal_mutable_xml_expr(); - public: - void unsafe_arena_set_allocated_xml_expr( - ::pg_query::XmlExpr* xml_expr); - ::pg_query::XmlExpr* unsafe_arena_release_xml_expr(); - - // .pg_query.NullTest null_test = 37 [json_name = "NullTest"]; - bool has_null_test() const; - private: - bool _internal_has_null_test() const; - public: - void clear_null_test(); - const ::pg_query::NullTest& null_test() const; - PROTOBUF_NODISCARD ::pg_query::NullTest* release_null_test(); - ::pg_query::NullTest* mutable_null_test(); - void set_allocated_null_test(::pg_query::NullTest* null_test); - private: - const ::pg_query::NullTest& _internal_null_test() const; - ::pg_query::NullTest* _internal_mutable_null_test(); - public: - void unsafe_arena_set_allocated_null_test( - ::pg_query::NullTest* null_test); - ::pg_query::NullTest* unsafe_arena_release_null_test(); - - // .pg_query.BooleanTest boolean_test = 38 [json_name = "BooleanTest"]; - bool has_boolean_test() const; - private: - bool _internal_has_boolean_test() const; - public: - void clear_boolean_test(); - const ::pg_query::BooleanTest& boolean_test() const; - PROTOBUF_NODISCARD ::pg_query::BooleanTest* release_boolean_test(); - ::pg_query::BooleanTest* mutable_boolean_test(); - void set_allocated_boolean_test(::pg_query::BooleanTest* boolean_test); - private: - const ::pg_query::BooleanTest& _internal_boolean_test() const; - ::pg_query::BooleanTest* _internal_mutable_boolean_test(); - public: - void unsafe_arena_set_allocated_boolean_test( - ::pg_query::BooleanTest* boolean_test); - ::pg_query::BooleanTest* unsafe_arena_release_boolean_test(); - - // .pg_query.CoerceToDomain coerce_to_domain = 39 [json_name = "CoerceToDomain"]; - bool has_coerce_to_domain() const; - private: - bool _internal_has_coerce_to_domain() const; - public: - void clear_coerce_to_domain(); - const ::pg_query::CoerceToDomain& coerce_to_domain() const; - PROTOBUF_NODISCARD ::pg_query::CoerceToDomain* release_coerce_to_domain(); - ::pg_query::CoerceToDomain* mutable_coerce_to_domain(); - void set_allocated_coerce_to_domain(::pg_query::CoerceToDomain* coerce_to_domain); - private: - const ::pg_query::CoerceToDomain& _internal_coerce_to_domain() const; - ::pg_query::CoerceToDomain* _internal_mutable_coerce_to_domain(); - public: - void unsafe_arena_set_allocated_coerce_to_domain( - ::pg_query::CoerceToDomain* coerce_to_domain); - ::pg_query::CoerceToDomain* unsafe_arena_release_coerce_to_domain(); - - // .pg_query.CoerceToDomainValue coerce_to_domain_value = 40 [json_name = "CoerceToDomainValue"]; - bool has_coerce_to_domain_value() const; - private: - bool _internal_has_coerce_to_domain_value() const; - public: - void clear_coerce_to_domain_value(); - const ::pg_query::CoerceToDomainValue& coerce_to_domain_value() const; - PROTOBUF_NODISCARD ::pg_query::CoerceToDomainValue* release_coerce_to_domain_value(); - ::pg_query::CoerceToDomainValue* mutable_coerce_to_domain_value(); - void set_allocated_coerce_to_domain_value(::pg_query::CoerceToDomainValue* coerce_to_domain_value); - private: - const ::pg_query::CoerceToDomainValue& _internal_coerce_to_domain_value() const; - ::pg_query::CoerceToDomainValue* _internal_mutable_coerce_to_domain_value(); - public: - void unsafe_arena_set_allocated_coerce_to_domain_value( - ::pg_query::CoerceToDomainValue* coerce_to_domain_value); - ::pg_query::CoerceToDomainValue* unsafe_arena_release_coerce_to_domain_value(); - - // .pg_query.SetToDefault set_to_default = 41 [json_name = "SetToDefault"]; - bool has_set_to_default() const; - private: - bool _internal_has_set_to_default() const; - public: - void clear_set_to_default(); - const ::pg_query::SetToDefault& set_to_default() const; - PROTOBUF_NODISCARD ::pg_query::SetToDefault* release_set_to_default(); - ::pg_query::SetToDefault* mutable_set_to_default(); - void set_allocated_set_to_default(::pg_query::SetToDefault* set_to_default); - private: - const ::pg_query::SetToDefault& _internal_set_to_default() const; - ::pg_query::SetToDefault* _internal_mutable_set_to_default(); - public: - void unsafe_arena_set_allocated_set_to_default( - ::pg_query::SetToDefault* set_to_default); - ::pg_query::SetToDefault* unsafe_arena_release_set_to_default(); - - // .pg_query.CurrentOfExpr current_of_expr = 42 [json_name = "CurrentOfExpr"]; - bool has_current_of_expr() const; - private: - bool _internal_has_current_of_expr() const; - public: - void clear_current_of_expr(); - const ::pg_query::CurrentOfExpr& current_of_expr() const; - PROTOBUF_NODISCARD ::pg_query::CurrentOfExpr* release_current_of_expr(); - ::pg_query::CurrentOfExpr* mutable_current_of_expr(); - void set_allocated_current_of_expr(::pg_query::CurrentOfExpr* current_of_expr); - private: - const ::pg_query::CurrentOfExpr& _internal_current_of_expr() const; - ::pg_query::CurrentOfExpr* _internal_mutable_current_of_expr(); - public: - void unsafe_arena_set_allocated_current_of_expr( - ::pg_query::CurrentOfExpr* current_of_expr); - ::pg_query::CurrentOfExpr* unsafe_arena_release_current_of_expr(); - - // .pg_query.NextValueExpr next_value_expr = 43 [json_name = "NextValueExpr"]; - bool has_next_value_expr() const; - private: - bool _internal_has_next_value_expr() const; - public: - void clear_next_value_expr(); - const ::pg_query::NextValueExpr& next_value_expr() const; - PROTOBUF_NODISCARD ::pg_query::NextValueExpr* release_next_value_expr(); - ::pg_query::NextValueExpr* mutable_next_value_expr(); - void set_allocated_next_value_expr(::pg_query::NextValueExpr* next_value_expr); - private: - const ::pg_query::NextValueExpr& _internal_next_value_expr() const; - ::pg_query::NextValueExpr* _internal_mutable_next_value_expr(); - public: - void unsafe_arena_set_allocated_next_value_expr( - ::pg_query::NextValueExpr* next_value_expr); - ::pg_query::NextValueExpr* unsafe_arena_release_next_value_expr(); - - // .pg_query.InferenceElem inference_elem = 44 [json_name = "InferenceElem"]; - bool has_inference_elem() const; - private: - bool _internal_has_inference_elem() const; - public: - void clear_inference_elem(); - const ::pg_query::InferenceElem& inference_elem() const; - PROTOBUF_NODISCARD ::pg_query::InferenceElem* release_inference_elem(); - ::pg_query::InferenceElem* mutable_inference_elem(); - void set_allocated_inference_elem(::pg_query::InferenceElem* inference_elem); - private: - const ::pg_query::InferenceElem& _internal_inference_elem() const; - ::pg_query::InferenceElem* _internal_mutable_inference_elem(); - public: - void unsafe_arena_set_allocated_inference_elem( - ::pg_query::InferenceElem* inference_elem); - ::pg_query::InferenceElem* unsafe_arena_release_inference_elem(); - - // .pg_query.TargetEntry target_entry = 45 [json_name = "TargetEntry"]; - bool has_target_entry() const; - private: - bool _internal_has_target_entry() const; - public: - void clear_target_entry(); - const ::pg_query::TargetEntry& target_entry() const; - PROTOBUF_NODISCARD ::pg_query::TargetEntry* release_target_entry(); - ::pg_query::TargetEntry* mutable_target_entry(); - void set_allocated_target_entry(::pg_query::TargetEntry* target_entry); - private: - const ::pg_query::TargetEntry& _internal_target_entry() const; - ::pg_query::TargetEntry* _internal_mutable_target_entry(); - public: - void unsafe_arena_set_allocated_target_entry( - ::pg_query::TargetEntry* target_entry); - ::pg_query::TargetEntry* unsafe_arena_release_target_entry(); - - // .pg_query.RangeTblRef range_tbl_ref = 46 [json_name = "RangeTblRef"]; - bool has_range_tbl_ref() const; - private: - bool _internal_has_range_tbl_ref() const; - public: - void clear_range_tbl_ref(); - const ::pg_query::RangeTblRef& range_tbl_ref() const; - PROTOBUF_NODISCARD ::pg_query::RangeTblRef* release_range_tbl_ref(); - ::pg_query::RangeTblRef* mutable_range_tbl_ref(); - void set_allocated_range_tbl_ref(::pg_query::RangeTblRef* range_tbl_ref); - private: - const ::pg_query::RangeTblRef& _internal_range_tbl_ref() const; - ::pg_query::RangeTblRef* _internal_mutable_range_tbl_ref(); - public: - void unsafe_arena_set_allocated_range_tbl_ref( - ::pg_query::RangeTblRef* range_tbl_ref); - ::pg_query::RangeTblRef* unsafe_arena_release_range_tbl_ref(); - - // .pg_query.JoinExpr join_expr = 47 [json_name = "JoinExpr"]; - bool has_join_expr() const; - private: - bool _internal_has_join_expr() const; - public: - void clear_join_expr(); - const ::pg_query::JoinExpr& join_expr() const; - PROTOBUF_NODISCARD ::pg_query::JoinExpr* release_join_expr(); - ::pg_query::JoinExpr* mutable_join_expr(); - void set_allocated_join_expr(::pg_query::JoinExpr* join_expr); - private: - const ::pg_query::JoinExpr& _internal_join_expr() const; - ::pg_query::JoinExpr* _internal_mutable_join_expr(); - public: - void unsafe_arena_set_allocated_join_expr( - ::pg_query::JoinExpr* join_expr); - ::pg_query::JoinExpr* unsafe_arena_release_join_expr(); - - // .pg_query.FromExpr from_expr = 48 [json_name = "FromExpr"]; - bool has_from_expr() const; - private: - bool _internal_has_from_expr() const; - public: - void clear_from_expr(); - const ::pg_query::FromExpr& from_expr() const; - PROTOBUF_NODISCARD ::pg_query::FromExpr* release_from_expr(); - ::pg_query::FromExpr* mutable_from_expr(); - void set_allocated_from_expr(::pg_query::FromExpr* from_expr); - private: - const ::pg_query::FromExpr& _internal_from_expr() const; - ::pg_query::FromExpr* _internal_mutable_from_expr(); - public: - void unsafe_arena_set_allocated_from_expr( - ::pg_query::FromExpr* from_expr); - ::pg_query::FromExpr* unsafe_arena_release_from_expr(); - - // .pg_query.OnConflictExpr on_conflict_expr = 49 [json_name = "OnConflictExpr"]; - bool has_on_conflict_expr() const; - private: - bool _internal_has_on_conflict_expr() const; - public: - void clear_on_conflict_expr(); - const ::pg_query::OnConflictExpr& on_conflict_expr() const; - PROTOBUF_NODISCARD ::pg_query::OnConflictExpr* release_on_conflict_expr(); - ::pg_query::OnConflictExpr* mutable_on_conflict_expr(); - void set_allocated_on_conflict_expr(::pg_query::OnConflictExpr* on_conflict_expr); - private: - const ::pg_query::OnConflictExpr& _internal_on_conflict_expr() const; - ::pg_query::OnConflictExpr* _internal_mutable_on_conflict_expr(); - public: - void unsafe_arena_set_allocated_on_conflict_expr( - ::pg_query::OnConflictExpr* on_conflict_expr); - ::pg_query::OnConflictExpr* unsafe_arena_release_on_conflict_expr(); - - // .pg_query.IntoClause into_clause = 50 [json_name = "IntoClause"]; - bool has_into_clause() const; - private: - bool _internal_has_into_clause() const; - public: - void clear_into_clause(); - const ::pg_query::IntoClause& into_clause() const; - PROTOBUF_NODISCARD ::pg_query::IntoClause* release_into_clause(); - ::pg_query::IntoClause* mutable_into_clause(); - void set_allocated_into_clause(::pg_query::IntoClause* into_clause); - private: - const ::pg_query::IntoClause& _internal_into_clause() const; - ::pg_query::IntoClause* _internal_mutable_into_clause(); - public: - void unsafe_arena_set_allocated_into_clause( - ::pg_query::IntoClause* into_clause); - ::pg_query::IntoClause* unsafe_arena_release_into_clause(); - - // .pg_query.MergeAction merge_action = 51 [json_name = "MergeAction"]; - bool has_merge_action() const; - private: - bool _internal_has_merge_action() const; - public: - void clear_merge_action(); - const ::pg_query::MergeAction& merge_action() const; - PROTOBUF_NODISCARD ::pg_query::MergeAction* release_merge_action(); - ::pg_query::MergeAction* mutable_merge_action(); - void set_allocated_merge_action(::pg_query::MergeAction* merge_action); - private: - const ::pg_query::MergeAction& _internal_merge_action() const; - ::pg_query::MergeAction* _internal_mutable_merge_action(); - public: - void unsafe_arena_set_allocated_merge_action( - ::pg_query::MergeAction* merge_action); - ::pg_query::MergeAction* unsafe_arena_release_merge_action(); - - // .pg_query.RawStmt raw_stmt = 52 [json_name = "RawStmt"]; - bool has_raw_stmt() const; - private: - bool _internal_has_raw_stmt() const; - public: - void clear_raw_stmt(); - const ::pg_query::RawStmt& raw_stmt() const; - PROTOBUF_NODISCARD ::pg_query::RawStmt* release_raw_stmt(); - ::pg_query::RawStmt* mutable_raw_stmt(); - void set_allocated_raw_stmt(::pg_query::RawStmt* raw_stmt); - private: - const ::pg_query::RawStmt& _internal_raw_stmt() const; - ::pg_query::RawStmt* _internal_mutable_raw_stmt(); - public: - void unsafe_arena_set_allocated_raw_stmt( - ::pg_query::RawStmt* raw_stmt); - ::pg_query::RawStmt* unsafe_arena_release_raw_stmt(); - - // .pg_query.Query query = 53 [json_name = "Query"]; - bool has_query() const; - private: - bool _internal_has_query() const; - public: - void clear_query(); - const ::pg_query::Query& query() const; - PROTOBUF_NODISCARD ::pg_query::Query* release_query(); - ::pg_query::Query* mutable_query(); - void set_allocated_query(::pg_query::Query* query); - private: - const ::pg_query::Query& _internal_query() const; - ::pg_query::Query* _internal_mutable_query(); - public: - void unsafe_arena_set_allocated_query( - ::pg_query::Query* query); - ::pg_query::Query* unsafe_arena_release_query(); - - // .pg_query.InsertStmt insert_stmt = 54 [json_name = "InsertStmt"]; - bool has_insert_stmt() const; - private: - bool _internal_has_insert_stmt() const; - public: - void clear_insert_stmt(); - const ::pg_query::InsertStmt& insert_stmt() const; - PROTOBUF_NODISCARD ::pg_query::InsertStmt* release_insert_stmt(); - ::pg_query::InsertStmt* mutable_insert_stmt(); - void set_allocated_insert_stmt(::pg_query::InsertStmt* insert_stmt); - private: - const ::pg_query::InsertStmt& _internal_insert_stmt() const; - ::pg_query::InsertStmt* _internal_mutable_insert_stmt(); - public: - void unsafe_arena_set_allocated_insert_stmt( - ::pg_query::InsertStmt* insert_stmt); - ::pg_query::InsertStmt* unsafe_arena_release_insert_stmt(); - - // .pg_query.DeleteStmt delete_stmt = 55 [json_name = "DeleteStmt"]; - bool has_delete_stmt() const; - private: - bool _internal_has_delete_stmt() const; - public: - void clear_delete_stmt(); - const ::pg_query::DeleteStmt& delete_stmt() const; - PROTOBUF_NODISCARD ::pg_query::DeleteStmt* release_delete_stmt(); - ::pg_query::DeleteStmt* mutable_delete_stmt(); - void set_allocated_delete_stmt(::pg_query::DeleteStmt* delete_stmt); - private: - const ::pg_query::DeleteStmt& _internal_delete_stmt() const; - ::pg_query::DeleteStmt* _internal_mutable_delete_stmt(); - public: - void unsafe_arena_set_allocated_delete_stmt( - ::pg_query::DeleteStmt* delete_stmt); - ::pg_query::DeleteStmt* unsafe_arena_release_delete_stmt(); - - // .pg_query.UpdateStmt update_stmt = 56 [json_name = "UpdateStmt"]; - bool has_update_stmt() const; - private: - bool _internal_has_update_stmt() const; - public: - void clear_update_stmt(); - const ::pg_query::UpdateStmt& update_stmt() const; - PROTOBUF_NODISCARD ::pg_query::UpdateStmt* release_update_stmt(); - ::pg_query::UpdateStmt* mutable_update_stmt(); - void set_allocated_update_stmt(::pg_query::UpdateStmt* update_stmt); - private: - const ::pg_query::UpdateStmt& _internal_update_stmt() const; - ::pg_query::UpdateStmt* _internal_mutable_update_stmt(); - public: - void unsafe_arena_set_allocated_update_stmt( - ::pg_query::UpdateStmt* update_stmt); - ::pg_query::UpdateStmt* unsafe_arena_release_update_stmt(); - - // .pg_query.MergeStmt merge_stmt = 57 [json_name = "MergeStmt"]; - bool has_merge_stmt() const; - private: - bool _internal_has_merge_stmt() const; - public: - void clear_merge_stmt(); - const ::pg_query::MergeStmt& merge_stmt() const; - PROTOBUF_NODISCARD ::pg_query::MergeStmt* release_merge_stmt(); - ::pg_query::MergeStmt* mutable_merge_stmt(); - void set_allocated_merge_stmt(::pg_query::MergeStmt* merge_stmt); - private: - const ::pg_query::MergeStmt& _internal_merge_stmt() const; - ::pg_query::MergeStmt* _internal_mutable_merge_stmt(); - public: - void unsafe_arena_set_allocated_merge_stmt( - ::pg_query::MergeStmt* merge_stmt); - ::pg_query::MergeStmt* unsafe_arena_release_merge_stmt(); - - // .pg_query.SelectStmt select_stmt = 58 [json_name = "SelectStmt"]; - bool has_select_stmt() const; - private: - bool _internal_has_select_stmt() const; - public: - void clear_select_stmt(); - const ::pg_query::SelectStmt& select_stmt() const; - PROTOBUF_NODISCARD ::pg_query::SelectStmt* release_select_stmt(); - ::pg_query::SelectStmt* mutable_select_stmt(); - void set_allocated_select_stmt(::pg_query::SelectStmt* select_stmt); - private: - const ::pg_query::SelectStmt& _internal_select_stmt() const; - ::pg_query::SelectStmt* _internal_mutable_select_stmt(); - public: - void unsafe_arena_set_allocated_select_stmt( - ::pg_query::SelectStmt* select_stmt); - ::pg_query::SelectStmt* unsafe_arena_release_select_stmt(); - - // .pg_query.ReturnStmt return_stmt = 59 [json_name = "ReturnStmt"]; - bool has_return_stmt() const; - private: - bool _internal_has_return_stmt() const; - public: - void clear_return_stmt(); - const ::pg_query::ReturnStmt& return_stmt() const; - PROTOBUF_NODISCARD ::pg_query::ReturnStmt* release_return_stmt(); - ::pg_query::ReturnStmt* mutable_return_stmt(); - void set_allocated_return_stmt(::pg_query::ReturnStmt* return_stmt); - private: - const ::pg_query::ReturnStmt& _internal_return_stmt() const; - ::pg_query::ReturnStmt* _internal_mutable_return_stmt(); - public: - void unsafe_arena_set_allocated_return_stmt( - ::pg_query::ReturnStmt* return_stmt); - ::pg_query::ReturnStmt* unsafe_arena_release_return_stmt(); - - // .pg_query.PLAssignStmt plassign_stmt = 60 [json_name = "PLAssignStmt"]; - bool has_plassign_stmt() const; - private: - bool _internal_has_plassign_stmt() const; - public: - void clear_plassign_stmt(); - const ::pg_query::PLAssignStmt& plassign_stmt() const; - PROTOBUF_NODISCARD ::pg_query::PLAssignStmt* release_plassign_stmt(); - ::pg_query::PLAssignStmt* mutable_plassign_stmt(); - void set_allocated_plassign_stmt(::pg_query::PLAssignStmt* plassign_stmt); - private: - const ::pg_query::PLAssignStmt& _internal_plassign_stmt() const; - ::pg_query::PLAssignStmt* _internal_mutable_plassign_stmt(); - public: - void unsafe_arena_set_allocated_plassign_stmt( - ::pg_query::PLAssignStmt* plassign_stmt); - ::pg_query::PLAssignStmt* unsafe_arena_release_plassign_stmt(); - - // .pg_query.AlterTableStmt alter_table_stmt = 61 [json_name = "AlterTableStmt"]; - bool has_alter_table_stmt() const; - private: - bool _internal_has_alter_table_stmt() const; - public: - void clear_alter_table_stmt(); - const ::pg_query::AlterTableStmt& alter_table_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterTableStmt* release_alter_table_stmt(); - ::pg_query::AlterTableStmt* mutable_alter_table_stmt(); - void set_allocated_alter_table_stmt(::pg_query::AlterTableStmt* alter_table_stmt); - private: - const ::pg_query::AlterTableStmt& _internal_alter_table_stmt() const; - ::pg_query::AlterTableStmt* _internal_mutable_alter_table_stmt(); - public: - void unsafe_arena_set_allocated_alter_table_stmt( - ::pg_query::AlterTableStmt* alter_table_stmt); - ::pg_query::AlterTableStmt* unsafe_arena_release_alter_table_stmt(); - - // .pg_query.AlterTableCmd alter_table_cmd = 62 [json_name = "AlterTableCmd"]; - bool has_alter_table_cmd() const; - private: - bool _internal_has_alter_table_cmd() const; - public: - void clear_alter_table_cmd(); - const ::pg_query::AlterTableCmd& alter_table_cmd() const; - PROTOBUF_NODISCARD ::pg_query::AlterTableCmd* release_alter_table_cmd(); - ::pg_query::AlterTableCmd* mutable_alter_table_cmd(); - void set_allocated_alter_table_cmd(::pg_query::AlterTableCmd* alter_table_cmd); - private: - const ::pg_query::AlterTableCmd& _internal_alter_table_cmd() const; - ::pg_query::AlterTableCmd* _internal_mutable_alter_table_cmd(); - public: - void unsafe_arena_set_allocated_alter_table_cmd( - ::pg_query::AlterTableCmd* alter_table_cmd); - ::pg_query::AlterTableCmd* unsafe_arena_release_alter_table_cmd(); - - // .pg_query.AlterDomainStmt alter_domain_stmt = 63 [json_name = "AlterDomainStmt"]; - bool has_alter_domain_stmt() const; - private: - bool _internal_has_alter_domain_stmt() const; - public: - void clear_alter_domain_stmt(); - const ::pg_query::AlterDomainStmt& alter_domain_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterDomainStmt* release_alter_domain_stmt(); - ::pg_query::AlterDomainStmt* mutable_alter_domain_stmt(); - void set_allocated_alter_domain_stmt(::pg_query::AlterDomainStmt* alter_domain_stmt); - private: - const ::pg_query::AlterDomainStmt& _internal_alter_domain_stmt() const; - ::pg_query::AlterDomainStmt* _internal_mutable_alter_domain_stmt(); - public: - void unsafe_arena_set_allocated_alter_domain_stmt( - ::pg_query::AlterDomainStmt* alter_domain_stmt); - ::pg_query::AlterDomainStmt* unsafe_arena_release_alter_domain_stmt(); - - // .pg_query.SetOperationStmt set_operation_stmt = 64 [json_name = "SetOperationStmt"]; - bool has_set_operation_stmt() const; - private: - bool _internal_has_set_operation_stmt() const; - public: - void clear_set_operation_stmt(); - const ::pg_query::SetOperationStmt& set_operation_stmt() const; - PROTOBUF_NODISCARD ::pg_query::SetOperationStmt* release_set_operation_stmt(); - ::pg_query::SetOperationStmt* mutable_set_operation_stmt(); - void set_allocated_set_operation_stmt(::pg_query::SetOperationStmt* set_operation_stmt); - private: - const ::pg_query::SetOperationStmt& _internal_set_operation_stmt() const; - ::pg_query::SetOperationStmt* _internal_mutable_set_operation_stmt(); - public: - void unsafe_arena_set_allocated_set_operation_stmt( - ::pg_query::SetOperationStmt* set_operation_stmt); - ::pg_query::SetOperationStmt* unsafe_arena_release_set_operation_stmt(); - - // .pg_query.GrantStmt grant_stmt = 65 [json_name = "GrantStmt"]; - bool has_grant_stmt() const; - private: - bool _internal_has_grant_stmt() const; - public: - void clear_grant_stmt(); - const ::pg_query::GrantStmt& grant_stmt() const; - PROTOBUF_NODISCARD ::pg_query::GrantStmt* release_grant_stmt(); - ::pg_query::GrantStmt* mutable_grant_stmt(); - void set_allocated_grant_stmt(::pg_query::GrantStmt* grant_stmt); - private: - const ::pg_query::GrantStmt& _internal_grant_stmt() const; - ::pg_query::GrantStmt* _internal_mutable_grant_stmt(); - public: - void unsafe_arena_set_allocated_grant_stmt( - ::pg_query::GrantStmt* grant_stmt); - ::pg_query::GrantStmt* unsafe_arena_release_grant_stmt(); - - // .pg_query.GrantRoleStmt grant_role_stmt = 66 [json_name = "GrantRoleStmt"]; - bool has_grant_role_stmt() const; - private: - bool _internal_has_grant_role_stmt() const; - public: - void clear_grant_role_stmt(); - const ::pg_query::GrantRoleStmt& grant_role_stmt() const; - PROTOBUF_NODISCARD ::pg_query::GrantRoleStmt* release_grant_role_stmt(); - ::pg_query::GrantRoleStmt* mutable_grant_role_stmt(); - void set_allocated_grant_role_stmt(::pg_query::GrantRoleStmt* grant_role_stmt); - private: - const ::pg_query::GrantRoleStmt& _internal_grant_role_stmt() const; - ::pg_query::GrantRoleStmt* _internal_mutable_grant_role_stmt(); - public: - void unsafe_arena_set_allocated_grant_role_stmt( - ::pg_query::GrantRoleStmt* grant_role_stmt); - ::pg_query::GrantRoleStmt* unsafe_arena_release_grant_role_stmt(); - - // .pg_query.AlterDefaultPrivilegesStmt alter_default_privileges_stmt = 67 [json_name = "AlterDefaultPrivilegesStmt"]; - bool has_alter_default_privileges_stmt() const; - private: - bool _internal_has_alter_default_privileges_stmt() const; - public: - void clear_alter_default_privileges_stmt(); - const ::pg_query::AlterDefaultPrivilegesStmt& alter_default_privileges_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterDefaultPrivilegesStmt* release_alter_default_privileges_stmt(); - ::pg_query::AlterDefaultPrivilegesStmt* mutable_alter_default_privileges_stmt(); - void set_allocated_alter_default_privileges_stmt(::pg_query::AlterDefaultPrivilegesStmt* alter_default_privileges_stmt); - private: - const ::pg_query::AlterDefaultPrivilegesStmt& _internal_alter_default_privileges_stmt() const; - ::pg_query::AlterDefaultPrivilegesStmt* _internal_mutable_alter_default_privileges_stmt(); - public: - void unsafe_arena_set_allocated_alter_default_privileges_stmt( - ::pg_query::AlterDefaultPrivilegesStmt* alter_default_privileges_stmt); - ::pg_query::AlterDefaultPrivilegesStmt* unsafe_arena_release_alter_default_privileges_stmt(); - - // .pg_query.ClosePortalStmt close_portal_stmt = 68 [json_name = "ClosePortalStmt"]; - bool has_close_portal_stmt() const; - private: - bool _internal_has_close_portal_stmt() const; - public: - void clear_close_portal_stmt(); - const ::pg_query::ClosePortalStmt& close_portal_stmt() const; - PROTOBUF_NODISCARD ::pg_query::ClosePortalStmt* release_close_portal_stmt(); - ::pg_query::ClosePortalStmt* mutable_close_portal_stmt(); - void set_allocated_close_portal_stmt(::pg_query::ClosePortalStmt* close_portal_stmt); - private: - const ::pg_query::ClosePortalStmt& _internal_close_portal_stmt() const; - ::pg_query::ClosePortalStmt* _internal_mutable_close_portal_stmt(); - public: - void unsafe_arena_set_allocated_close_portal_stmt( - ::pg_query::ClosePortalStmt* close_portal_stmt); - ::pg_query::ClosePortalStmt* unsafe_arena_release_close_portal_stmt(); - - // .pg_query.ClusterStmt cluster_stmt = 69 [json_name = "ClusterStmt"]; - bool has_cluster_stmt() const; - private: - bool _internal_has_cluster_stmt() const; - public: - void clear_cluster_stmt(); - const ::pg_query::ClusterStmt& cluster_stmt() const; - PROTOBUF_NODISCARD ::pg_query::ClusterStmt* release_cluster_stmt(); - ::pg_query::ClusterStmt* mutable_cluster_stmt(); - void set_allocated_cluster_stmt(::pg_query::ClusterStmt* cluster_stmt); - private: - const ::pg_query::ClusterStmt& _internal_cluster_stmt() const; - ::pg_query::ClusterStmt* _internal_mutable_cluster_stmt(); - public: - void unsafe_arena_set_allocated_cluster_stmt( - ::pg_query::ClusterStmt* cluster_stmt); - ::pg_query::ClusterStmt* unsafe_arena_release_cluster_stmt(); - - // .pg_query.CopyStmt copy_stmt = 70 [json_name = "CopyStmt"]; - bool has_copy_stmt() const; - private: - bool _internal_has_copy_stmt() const; - public: - void clear_copy_stmt(); - const ::pg_query::CopyStmt& copy_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CopyStmt* release_copy_stmt(); - ::pg_query::CopyStmt* mutable_copy_stmt(); - void set_allocated_copy_stmt(::pg_query::CopyStmt* copy_stmt); - private: - const ::pg_query::CopyStmt& _internal_copy_stmt() const; - ::pg_query::CopyStmt* _internal_mutable_copy_stmt(); - public: - void unsafe_arena_set_allocated_copy_stmt( - ::pg_query::CopyStmt* copy_stmt); - ::pg_query::CopyStmt* unsafe_arena_release_copy_stmt(); - - // .pg_query.CreateStmt create_stmt = 71 [json_name = "CreateStmt"]; - bool has_create_stmt() const; - private: - bool _internal_has_create_stmt() const; - public: - void clear_create_stmt(); - const ::pg_query::CreateStmt& create_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateStmt* release_create_stmt(); - ::pg_query::CreateStmt* mutable_create_stmt(); - void set_allocated_create_stmt(::pg_query::CreateStmt* create_stmt); - private: - const ::pg_query::CreateStmt& _internal_create_stmt() const; - ::pg_query::CreateStmt* _internal_mutable_create_stmt(); - public: - void unsafe_arena_set_allocated_create_stmt( - ::pg_query::CreateStmt* create_stmt); - ::pg_query::CreateStmt* unsafe_arena_release_create_stmt(); - - // .pg_query.DefineStmt define_stmt = 72 [json_name = "DefineStmt"]; - bool has_define_stmt() const; - private: - bool _internal_has_define_stmt() const; - public: - void clear_define_stmt(); - const ::pg_query::DefineStmt& define_stmt() const; - PROTOBUF_NODISCARD ::pg_query::DefineStmt* release_define_stmt(); - ::pg_query::DefineStmt* mutable_define_stmt(); - void set_allocated_define_stmt(::pg_query::DefineStmt* define_stmt); - private: - const ::pg_query::DefineStmt& _internal_define_stmt() const; - ::pg_query::DefineStmt* _internal_mutable_define_stmt(); - public: - void unsafe_arena_set_allocated_define_stmt( - ::pg_query::DefineStmt* define_stmt); - ::pg_query::DefineStmt* unsafe_arena_release_define_stmt(); - - // .pg_query.DropStmt drop_stmt = 73 [json_name = "DropStmt"]; - bool has_drop_stmt() const; - private: - bool _internal_has_drop_stmt() const; - public: - void clear_drop_stmt(); - const ::pg_query::DropStmt& drop_stmt() const; - PROTOBUF_NODISCARD ::pg_query::DropStmt* release_drop_stmt(); - ::pg_query::DropStmt* mutable_drop_stmt(); - void set_allocated_drop_stmt(::pg_query::DropStmt* drop_stmt); - private: - const ::pg_query::DropStmt& _internal_drop_stmt() const; - ::pg_query::DropStmt* _internal_mutable_drop_stmt(); - public: - void unsafe_arena_set_allocated_drop_stmt( - ::pg_query::DropStmt* drop_stmt); - ::pg_query::DropStmt* unsafe_arena_release_drop_stmt(); - - // .pg_query.TruncateStmt truncate_stmt = 74 [json_name = "TruncateStmt"]; - bool has_truncate_stmt() const; - private: - bool _internal_has_truncate_stmt() const; - public: - void clear_truncate_stmt(); - const ::pg_query::TruncateStmt& truncate_stmt() const; - PROTOBUF_NODISCARD ::pg_query::TruncateStmt* release_truncate_stmt(); - ::pg_query::TruncateStmt* mutable_truncate_stmt(); - void set_allocated_truncate_stmt(::pg_query::TruncateStmt* truncate_stmt); - private: - const ::pg_query::TruncateStmt& _internal_truncate_stmt() const; - ::pg_query::TruncateStmt* _internal_mutable_truncate_stmt(); - public: - void unsafe_arena_set_allocated_truncate_stmt( - ::pg_query::TruncateStmt* truncate_stmt); - ::pg_query::TruncateStmt* unsafe_arena_release_truncate_stmt(); - - // .pg_query.CommentStmt comment_stmt = 75 [json_name = "CommentStmt"]; - bool has_comment_stmt() const; - private: - bool _internal_has_comment_stmt() const; - public: - void clear_comment_stmt(); - const ::pg_query::CommentStmt& comment_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CommentStmt* release_comment_stmt(); - ::pg_query::CommentStmt* mutable_comment_stmt(); - void set_allocated_comment_stmt(::pg_query::CommentStmt* comment_stmt); - private: - const ::pg_query::CommentStmt& _internal_comment_stmt() const; - ::pg_query::CommentStmt* _internal_mutable_comment_stmt(); - public: - void unsafe_arena_set_allocated_comment_stmt( - ::pg_query::CommentStmt* comment_stmt); - ::pg_query::CommentStmt* unsafe_arena_release_comment_stmt(); - - // .pg_query.FetchStmt fetch_stmt = 76 [json_name = "FetchStmt"]; - bool has_fetch_stmt() const; - private: - bool _internal_has_fetch_stmt() const; - public: - void clear_fetch_stmt(); - const ::pg_query::FetchStmt& fetch_stmt() const; - PROTOBUF_NODISCARD ::pg_query::FetchStmt* release_fetch_stmt(); - ::pg_query::FetchStmt* mutable_fetch_stmt(); - void set_allocated_fetch_stmt(::pg_query::FetchStmt* fetch_stmt); - private: - const ::pg_query::FetchStmt& _internal_fetch_stmt() const; - ::pg_query::FetchStmt* _internal_mutable_fetch_stmt(); - public: - void unsafe_arena_set_allocated_fetch_stmt( - ::pg_query::FetchStmt* fetch_stmt); - ::pg_query::FetchStmt* unsafe_arena_release_fetch_stmt(); - - // .pg_query.IndexStmt index_stmt = 77 [json_name = "IndexStmt"]; - bool has_index_stmt() const; - private: - bool _internal_has_index_stmt() const; - public: - void clear_index_stmt(); - const ::pg_query::IndexStmt& index_stmt() const; - PROTOBUF_NODISCARD ::pg_query::IndexStmt* release_index_stmt(); - ::pg_query::IndexStmt* mutable_index_stmt(); - void set_allocated_index_stmt(::pg_query::IndexStmt* index_stmt); - private: - const ::pg_query::IndexStmt& _internal_index_stmt() const; - ::pg_query::IndexStmt* _internal_mutable_index_stmt(); - public: - void unsafe_arena_set_allocated_index_stmt( - ::pg_query::IndexStmt* index_stmt); - ::pg_query::IndexStmt* unsafe_arena_release_index_stmt(); - - // .pg_query.CreateFunctionStmt create_function_stmt = 78 [json_name = "CreateFunctionStmt"]; - bool has_create_function_stmt() const; - private: - bool _internal_has_create_function_stmt() const; - public: - void clear_create_function_stmt(); - const ::pg_query::CreateFunctionStmt& create_function_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateFunctionStmt* release_create_function_stmt(); - ::pg_query::CreateFunctionStmt* mutable_create_function_stmt(); - void set_allocated_create_function_stmt(::pg_query::CreateFunctionStmt* create_function_stmt); - private: - const ::pg_query::CreateFunctionStmt& _internal_create_function_stmt() const; - ::pg_query::CreateFunctionStmt* _internal_mutable_create_function_stmt(); - public: - void unsafe_arena_set_allocated_create_function_stmt( - ::pg_query::CreateFunctionStmt* create_function_stmt); - ::pg_query::CreateFunctionStmt* unsafe_arena_release_create_function_stmt(); - - // .pg_query.AlterFunctionStmt alter_function_stmt = 79 [json_name = "AlterFunctionStmt"]; - bool has_alter_function_stmt() const; - private: - bool _internal_has_alter_function_stmt() const; - public: - void clear_alter_function_stmt(); - const ::pg_query::AlterFunctionStmt& alter_function_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterFunctionStmt* release_alter_function_stmt(); - ::pg_query::AlterFunctionStmt* mutable_alter_function_stmt(); - void set_allocated_alter_function_stmt(::pg_query::AlterFunctionStmt* alter_function_stmt); - private: - const ::pg_query::AlterFunctionStmt& _internal_alter_function_stmt() const; - ::pg_query::AlterFunctionStmt* _internal_mutable_alter_function_stmt(); - public: - void unsafe_arena_set_allocated_alter_function_stmt( - ::pg_query::AlterFunctionStmt* alter_function_stmt); - ::pg_query::AlterFunctionStmt* unsafe_arena_release_alter_function_stmt(); - - // .pg_query.DoStmt do_stmt = 80 [json_name = "DoStmt"]; - bool has_do_stmt() const; - private: - bool _internal_has_do_stmt() const; - public: - void clear_do_stmt(); - const ::pg_query::DoStmt& do_stmt() const; - PROTOBUF_NODISCARD ::pg_query::DoStmt* release_do_stmt(); - ::pg_query::DoStmt* mutable_do_stmt(); - void set_allocated_do_stmt(::pg_query::DoStmt* do_stmt); - private: - const ::pg_query::DoStmt& _internal_do_stmt() const; - ::pg_query::DoStmt* _internal_mutable_do_stmt(); - public: - void unsafe_arena_set_allocated_do_stmt( - ::pg_query::DoStmt* do_stmt); - ::pg_query::DoStmt* unsafe_arena_release_do_stmt(); - - // .pg_query.RenameStmt rename_stmt = 81 [json_name = "RenameStmt"]; - bool has_rename_stmt() const; - private: - bool _internal_has_rename_stmt() const; - public: - void clear_rename_stmt(); - const ::pg_query::RenameStmt& rename_stmt() const; - PROTOBUF_NODISCARD ::pg_query::RenameStmt* release_rename_stmt(); - ::pg_query::RenameStmt* mutable_rename_stmt(); - void set_allocated_rename_stmt(::pg_query::RenameStmt* rename_stmt); - private: - const ::pg_query::RenameStmt& _internal_rename_stmt() const; - ::pg_query::RenameStmt* _internal_mutable_rename_stmt(); - public: - void unsafe_arena_set_allocated_rename_stmt( - ::pg_query::RenameStmt* rename_stmt); - ::pg_query::RenameStmt* unsafe_arena_release_rename_stmt(); - - // .pg_query.RuleStmt rule_stmt = 82 [json_name = "RuleStmt"]; - bool has_rule_stmt() const; - private: - bool _internal_has_rule_stmt() const; - public: - void clear_rule_stmt(); - const ::pg_query::RuleStmt& rule_stmt() const; - PROTOBUF_NODISCARD ::pg_query::RuleStmt* release_rule_stmt(); - ::pg_query::RuleStmt* mutable_rule_stmt(); - void set_allocated_rule_stmt(::pg_query::RuleStmt* rule_stmt); - private: - const ::pg_query::RuleStmt& _internal_rule_stmt() const; - ::pg_query::RuleStmt* _internal_mutable_rule_stmt(); - public: - void unsafe_arena_set_allocated_rule_stmt( - ::pg_query::RuleStmt* rule_stmt); - ::pg_query::RuleStmt* unsafe_arena_release_rule_stmt(); - - // .pg_query.NotifyStmt notify_stmt = 83 [json_name = "NotifyStmt"]; - bool has_notify_stmt() const; - private: - bool _internal_has_notify_stmt() const; - public: - void clear_notify_stmt(); - const ::pg_query::NotifyStmt& notify_stmt() const; - PROTOBUF_NODISCARD ::pg_query::NotifyStmt* release_notify_stmt(); - ::pg_query::NotifyStmt* mutable_notify_stmt(); - void set_allocated_notify_stmt(::pg_query::NotifyStmt* notify_stmt); - private: - const ::pg_query::NotifyStmt& _internal_notify_stmt() const; - ::pg_query::NotifyStmt* _internal_mutable_notify_stmt(); - public: - void unsafe_arena_set_allocated_notify_stmt( - ::pg_query::NotifyStmt* notify_stmt); - ::pg_query::NotifyStmt* unsafe_arena_release_notify_stmt(); - - // .pg_query.ListenStmt listen_stmt = 84 [json_name = "ListenStmt"]; - bool has_listen_stmt() const; - private: - bool _internal_has_listen_stmt() const; - public: - void clear_listen_stmt(); - const ::pg_query::ListenStmt& listen_stmt() const; - PROTOBUF_NODISCARD ::pg_query::ListenStmt* release_listen_stmt(); - ::pg_query::ListenStmt* mutable_listen_stmt(); - void set_allocated_listen_stmt(::pg_query::ListenStmt* listen_stmt); - private: - const ::pg_query::ListenStmt& _internal_listen_stmt() const; - ::pg_query::ListenStmt* _internal_mutable_listen_stmt(); - public: - void unsafe_arena_set_allocated_listen_stmt( - ::pg_query::ListenStmt* listen_stmt); - ::pg_query::ListenStmt* unsafe_arena_release_listen_stmt(); - - // .pg_query.UnlistenStmt unlisten_stmt = 85 [json_name = "UnlistenStmt"]; - bool has_unlisten_stmt() const; - private: - bool _internal_has_unlisten_stmt() const; - public: - void clear_unlisten_stmt(); - const ::pg_query::UnlistenStmt& unlisten_stmt() const; - PROTOBUF_NODISCARD ::pg_query::UnlistenStmt* release_unlisten_stmt(); - ::pg_query::UnlistenStmt* mutable_unlisten_stmt(); - void set_allocated_unlisten_stmt(::pg_query::UnlistenStmt* unlisten_stmt); - private: - const ::pg_query::UnlistenStmt& _internal_unlisten_stmt() const; - ::pg_query::UnlistenStmt* _internal_mutable_unlisten_stmt(); - public: - void unsafe_arena_set_allocated_unlisten_stmt( - ::pg_query::UnlistenStmt* unlisten_stmt); - ::pg_query::UnlistenStmt* unsafe_arena_release_unlisten_stmt(); - - // .pg_query.TransactionStmt transaction_stmt = 86 [json_name = "TransactionStmt"]; - bool has_transaction_stmt() const; - private: - bool _internal_has_transaction_stmt() const; - public: - void clear_transaction_stmt(); - const ::pg_query::TransactionStmt& transaction_stmt() const; - PROTOBUF_NODISCARD ::pg_query::TransactionStmt* release_transaction_stmt(); - ::pg_query::TransactionStmt* mutable_transaction_stmt(); - void set_allocated_transaction_stmt(::pg_query::TransactionStmt* transaction_stmt); - private: - const ::pg_query::TransactionStmt& _internal_transaction_stmt() const; - ::pg_query::TransactionStmt* _internal_mutable_transaction_stmt(); - public: - void unsafe_arena_set_allocated_transaction_stmt( - ::pg_query::TransactionStmt* transaction_stmt); - ::pg_query::TransactionStmt* unsafe_arena_release_transaction_stmt(); - - // .pg_query.ViewStmt view_stmt = 87 [json_name = "ViewStmt"]; - bool has_view_stmt() const; - private: - bool _internal_has_view_stmt() const; - public: - void clear_view_stmt(); - const ::pg_query::ViewStmt& view_stmt() const; - PROTOBUF_NODISCARD ::pg_query::ViewStmt* release_view_stmt(); - ::pg_query::ViewStmt* mutable_view_stmt(); - void set_allocated_view_stmt(::pg_query::ViewStmt* view_stmt); - private: - const ::pg_query::ViewStmt& _internal_view_stmt() const; - ::pg_query::ViewStmt* _internal_mutable_view_stmt(); - public: - void unsafe_arena_set_allocated_view_stmt( - ::pg_query::ViewStmt* view_stmt); - ::pg_query::ViewStmt* unsafe_arena_release_view_stmt(); - - // .pg_query.LoadStmt load_stmt = 88 [json_name = "LoadStmt"]; - bool has_load_stmt() const; - private: - bool _internal_has_load_stmt() const; - public: - void clear_load_stmt(); - const ::pg_query::LoadStmt& load_stmt() const; - PROTOBUF_NODISCARD ::pg_query::LoadStmt* release_load_stmt(); - ::pg_query::LoadStmt* mutable_load_stmt(); - void set_allocated_load_stmt(::pg_query::LoadStmt* load_stmt); - private: - const ::pg_query::LoadStmt& _internal_load_stmt() const; - ::pg_query::LoadStmt* _internal_mutable_load_stmt(); - public: - void unsafe_arena_set_allocated_load_stmt( - ::pg_query::LoadStmt* load_stmt); - ::pg_query::LoadStmt* unsafe_arena_release_load_stmt(); - - // .pg_query.CreateDomainStmt create_domain_stmt = 89 [json_name = "CreateDomainStmt"]; - bool has_create_domain_stmt() const; - private: - bool _internal_has_create_domain_stmt() const; - public: - void clear_create_domain_stmt(); - const ::pg_query::CreateDomainStmt& create_domain_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateDomainStmt* release_create_domain_stmt(); - ::pg_query::CreateDomainStmt* mutable_create_domain_stmt(); - void set_allocated_create_domain_stmt(::pg_query::CreateDomainStmt* create_domain_stmt); - private: - const ::pg_query::CreateDomainStmt& _internal_create_domain_stmt() const; - ::pg_query::CreateDomainStmt* _internal_mutable_create_domain_stmt(); - public: - void unsafe_arena_set_allocated_create_domain_stmt( - ::pg_query::CreateDomainStmt* create_domain_stmt); - ::pg_query::CreateDomainStmt* unsafe_arena_release_create_domain_stmt(); - - // .pg_query.CreatedbStmt createdb_stmt = 90 [json_name = "CreatedbStmt"]; - bool has_createdb_stmt() const; - private: - bool _internal_has_createdb_stmt() const; - public: - void clear_createdb_stmt(); - const ::pg_query::CreatedbStmt& createdb_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreatedbStmt* release_createdb_stmt(); - ::pg_query::CreatedbStmt* mutable_createdb_stmt(); - void set_allocated_createdb_stmt(::pg_query::CreatedbStmt* createdb_stmt); - private: - const ::pg_query::CreatedbStmt& _internal_createdb_stmt() const; - ::pg_query::CreatedbStmt* _internal_mutable_createdb_stmt(); - public: - void unsafe_arena_set_allocated_createdb_stmt( - ::pg_query::CreatedbStmt* createdb_stmt); - ::pg_query::CreatedbStmt* unsafe_arena_release_createdb_stmt(); - - // .pg_query.DropdbStmt dropdb_stmt = 91 [json_name = "DropdbStmt"]; - bool has_dropdb_stmt() const; - private: - bool _internal_has_dropdb_stmt() const; - public: - void clear_dropdb_stmt(); - const ::pg_query::DropdbStmt& dropdb_stmt() const; - PROTOBUF_NODISCARD ::pg_query::DropdbStmt* release_dropdb_stmt(); - ::pg_query::DropdbStmt* mutable_dropdb_stmt(); - void set_allocated_dropdb_stmt(::pg_query::DropdbStmt* dropdb_stmt); - private: - const ::pg_query::DropdbStmt& _internal_dropdb_stmt() const; - ::pg_query::DropdbStmt* _internal_mutable_dropdb_stmt(); - public: - void unsafe_arena_set_allocated_dropdb_stmt( - ::pg_query::DropdbStmt* dropdb_stmt); - ::pg_query::DropdbStmt* unsafe_arena_release_dropdb_stmt(); - - // .pg_query.VacuumStmt vacuum_stmt = 92 [json_name = "VacuumStmt"]; - bool has_vacuum_stmt() const; - private: - bool _internal_has_vacuum_stmt() const; - public: - void clear_vacuum_stmt(); - const ::pg_query::VacuumStmt& vacuum_stmt() const; - PROTOBUF_NODISCARD ::pg_query::VacuumStmt* release_vacuum_stmt(); - ::pg_query::VacuumStmt* mutable_vacuum_stmt(); - void set_allocated_vacuum_stmt(::pg_query::VacuumStmt* vacuum_stmt); - private: - const ::pg_query::VacuumStmt& _internal_vacuum_stmt() const; - ::pg_query::VacuumStmt* _internal_mutable_vacuum_stmt(); - public: - void unsafe_arena_set_allocated_vacuum_stmt( - ::pg_query::VacuumStmt* vacuum_stmt); - ::pg_query::VacuumStmt* unsafe_arena_release_vacuum_stmt(); - - // .pg_query.ExplainStmt explain_stmt = 93 [json_name = "ExplainStmt"]; - bool has_explain_stmt() const; - private: - bool _internal_has_explain_stmt() const; - public: - void clear_explain_stmt(); - const ::pg_query::ExplainStmt& explain_stmt() const; - PROTOBUF_NODISCARD ::pg_query::ExplainStmt* release_explain_stmt(); - ::pg_query::ExplainStmt* mutable_explain_stmt(); - void set_allocated_explain_stmt(::pg_query::ExplainStmt* explain_stmt); - private: - const ::pg_query::ExplainStmt& _internal_explain_stmt() const; - ::pg_query::ExplainStmt* _internal_mutable_explain_stmt(); - public: - void unsafe_arena_set_allocated_explain_stmt( - ::pg_query::ExplainStmt* explain_stmt); - ::pg_query::ExplainStmt* unsafe_arena_release_explain_stmt(); - - // .pg_query.CreateTableAsStmt create_table_as_stmt = 94 [json_name = "CreateTableAsStmt"]; - bool has_create_table_as_stmt() const; - private: - bool _internal_has_create_table_as_stmt() const; - public: - void clear_create_table_as_stmt(); - const ::pg_query::CreateTableAsStmt& create_table_as_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateTableAsStmt* release_create_table_as_stmt(); - ::pg_query::CreateTableAsStmt* mutable_create_table_as_stmt(); - void set_allocated_create_table_as_stmt(::pg_query::CreateTableAsStmt* create_table_as_stmt); - private: - const ::pg_query::CreateTableAsStmt& _internal_create_table_as_stmt() const; - ::pg_query::CreateTableAsStmt* _internal_mutable_create_table_as_stmt(); - public: - void unsafe_arena_set_allocated_create_table_as_stmt( - ::pg_query::CreateTableAsStmt* create_table_as_stmt); - ::pg_query::CreateTableAsStmt* unsafe_arena_release_create_table_as_stmt(); - - // .pg_query.CreateSeqStmt create_seq_stmt = 95 [json_name = "CreateSeqStmt"]; - bool has_create_seq_stmt() const; - private: - bool _internal_has_create_seq_stmt() const; - public: - void clear_create_seq_stmt(); - const ::pg_query::CreateSeqStmt& create_seq_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateSeqStmt* release_create_seq_stmt(); - ::pg_query::CreateSeqStmt* mutable_create_seq_stmt(); - void set_allocated_create_seq_stmt(::pg_query::CreateSeqStmt* create_seq_stmt); - private: - const ::pg_query::CreateSeqStmt& _internal_create_seq_stmt() const; - ::pg_query::CreateSeqStmt* _internal_mutable_create_seq_stmt(); - public: - void unsafe_arena_set_allocated_create_seq_stmt( - ::pg_query::CreateSeqStmt* create_seq_stmt); - ::pg_query::CreateSeqStmt* unsafe_arena_release_create_seq_stmt(); - - // .pg_query.AlterSeqStmt alter_seq_stmt = 96 [json_name = "AlterSeqStmt"]; - bool has_alter_seq_stmt() const; - private: - bool _internal_has_alter_seq_stmt() const; - public: - void clear_alter_seq_stmt(); - const ::pg_query::AlterSeqStmt& alter_seq_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterSeqStmt* release_alter_seq_stmt(); - ::pg_query::AlterSeqStmt* mutable_alter_seq_stmt(); - void set_allocated_alter_seq_stmt(::pg_query::AlterSeqStmt* alter_seq_stmt); - private: - const ::pg_query::AlterSeqStmt& _internal_alter_seq_stmt() const; - ::pg_query::AlterSeqStmt* _internal_mutable_alter_seq_stmt(); - public: - void unsafe_arena_set_allocated_alter_seq_stmt( - ::pg_query::AlterSeqStmt* alter_seq_stmt); - ::pg_query::AlterSeqStmt* unsafe_arena_release_alter_seq_stmt(); - - // .pg_query.VariableSetStmt variable_set_stmt = 97 [json_name = "VariableSetStmt"]; - bool has_variable_set_stmt() const; - private: - bool _internal_has_variable_set_stmt() const; - public: - void clear_variable_set_stmt(); - const ::pg_query::VariableSetStmt& variable_set_stmt() const; - PROTOBUF_NODISCARD ::pg_query::VariableSetStmt* release_variable_set_stmt(); - ::pg_query::VariableSetStmt* mutable_variable_set_stmt(); - void set_allocated_variable_set_stmt(::pg_query::VariableSetStmt* variable_set_stmt); - private: - const ::pg_query::VariableSetStmt& _internal_variable_set_stmt() const; - ::pg_query::VariableSetStmt* _internal_mutable_variable_set_stmt(); - public: - void unsafe_arena_set_allocated_variable_set_stmt( - ::pg_query::VariableSetStmt* variable_set_stmt); - ::pg_query::VariableSetStmt* unsafe_arena_release_variable_set_stmt(); - - // .pg_query.VariableShowStmt variable_show_stmt = 98 [json_name = "VariableShowStmt"]; - bool has_variable_show_stmt() const; - private: - bool _internal_has_variable_show_stmt() const; - public: - void clear_variable_show_stmt(); - const ::pg_query::VariableShowStmt& variable_show_stmt() const; - PROTOBUF_NODISCARD ::pg_query::VariableShowStmt* release_variable_show_stmt(); - ::pg_query::VariableShowStmt* mutable_variable_show_stmt(); - void set_allocated_variable_show_stmt(::pg_query::VariableShowStmt* variable_show_stmt); - private: - const ::pg_query::VariableShowStmt& _internal_variable_show_stmt() const; - ::pg_query::VariableShowStmt* _internal_mutable_variable_show_stmt(); - public: - void unsafe_arena_set_allocated_variable_show_stmt( - ::pg_query::VariableShowStmt* variable_show_stmt); - ::pg_query::VariableShowStmt* unsafe_arena_release_variable_show_stmt(); - - // .pg_query.DiscardStmt discard_stmt = 99 [json_name = "DiscardStmt"]; - bool has_discard_stmt() const; - private: - bool _internal_has_discard_stmt() const; - public: - void clear_discard_stmt(); - const ::pg_query::DiscardStmt& discard_stmt() const; - PROTOBUF_NODISCARD ::pg_query::DiscardStmt* release_discard_stmt(); - ::pg_query::DiscardStmt* mutable_discard_stmt(); - void set_allocated_discard_stmt(::pg_query::DiscardStmt* discard_stmt); - private: - const ::pg_query::DiscardStmt& _internal_discard_stmt() const; - ::pg_query::DiscardStmt* _internal_mutable_discard_stmt(); - public: - void unsafe_arena_set_allocated_discard_stmt( - ::pg_query::DiscardStmt* discard_stmt); - ::pg_query::DiscardStmt* unsafe_arena_release_discard_stmt(); - - // .pg_query.CreateTrigStmt create_trig_stmt = 100 [json_name = "CreateTrigStmt"]; - bool has_create_trig_stmt() const; - private: - bool _internal_has_create_trig_stmt() const; - public: - void clear_create_trig_stmt(); - const ::pg_query::CreateTrigStmt& create_trig_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateTrigStmt* release_create_trig_stmt(); - ::pg_query::CreateTrigStmt* mutable_create_trig_stmt(); - void set_allocated_create_trig_stmt(::pg_query::CreateTrigStmt* create_trig_stmt); - private: - const ::pg_query::CreateTrigStmt& _internal_create_trig_stmt() const; - ::pg_query::CreateTrigStmt* _internal_mutable_create_trig_stmt(); - public: - void unsafe_arena_set_allocated_create_trig_stmt( - ::pg_query::CreateTrigStmt* create_trig_stmt); - ::pg_query::CreateTrigStmt* unsafe_arena_release_create_trig_stmt(); - - // .pg_query.CreatePLangStmt create_plang_stmt = 101 [json_name = "CreatePLangStmt"]; - bool has_create_plang_stmt() const; - private: - bool _internal_has_create_plang_stmt() const; - public: - void clear_create_plang_stmt(); - const ::pg_query::CreatePLangStmt& create_plang_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreatePLangStmt* release_create_plang_stmt(); - ::pg_query::CreatePLangStmt* mutable_create_plang_stmt(); - void set_allocated_create_plang_stmt(::pg_query::CreatePLangStmt* create_plang_stmt); - private: - const ::pg_query::CreatePLangStmt& _internal_create_plang_stmt() const; - ::pg_query::CreatePLangStmt* _internal_mutable_create_plang_stmt(); - public: - void unsafe_arena_set_allocated_create_plang_stmt( - ::pg_query::CreatePLangStmt* create_plang_stmt); - ::pg_query::CreatePLangStmt* unsafe_arena_release_create_plang_stmt(); - - // .pg_query.CreateRoleStmt create_role_stmt = 102 [json_name = "CreateRoleStmt"]; - bool has_create_role_stmt() const; - private: - bool _internal_has_create_role_stmt() const; - public: - void clear_create_role_stmt(); - const ::pg_query::CreateRoleStmt& create_role_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateRoleStmt* release_create_role_stmt(); - ::pg_query::CreateRoleStmt* mutable_create_role_stmt(); - void set_allocated_create_role_stmt(::pg_query::CreateRoleStmt* create_role_stmt); - private: - const ::pg_query::CreateRoleStmt& _internal_create_role_stmt() const; - ::pg_query::CreateRoleStmt* _internal_mutable_create_role_stmt(); - public: - void unsafe_arena_set_allocated_create_role_stmt( - ::pg_query::CreateRoleStmt* create_role_stmt); - ::pg_query::CreateRoleStmt* unsafe_arena_release_create_role_stmt(); - - // .pg_query.AlterRoleStmt alter_role_stmt = 103 [json_name = "AlterRoleStmt"]; - bool has_alter_role_stmt() const; - private: - bool _internal_has_alter_role_stmt() const; - public: - void clear_alter_role_stmt(); - const ::pg_query::AlterRoleStmt& alter_role_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterRoleStmt* release_alter_role_stmt(); - ::pg_query::AlterRoleStmt* mutable_alter_role_stmt(); - void set_allocated_alter_role_stmt(::pg_query::AlterRoleStmt* alter_role_stmt); - private: - const ::pg_query::AlterRoleStmt& _internal_alter_role_stmt() const; - ::pg_query::AlterRoleStmt* _internal_mutable_alter_role_stmt(); - public: - void unsafe_arena_set_allocated_alter_role_stmt( - ::pg_query::AlterRoleStmt* alter_role_stmt); - ::pg_query::AlterRoleStmt* unsafe_arena_release_alter_role_stmt(); - - // .pg_query.DropRoleStmt drop_role_stmt = 104 [json_name = "DropRoleStmt"]; - bool has_drop_role_stmt() const; - private: - bool _internal_has_drop_role_stmt() const; - public: - void clear_drop_role_stmt(); - const ::pg_query::DropRoleStmt& drop_role_stmt() const; - PROTOBUF_NODISCARD ::pg_query::DropRoleStmt* release_drop_role_stmt(); - ::pg_query::DropRoleStmt* mutable_drop_role_stmt(); - void set_allocated_drop_role_stmt(::pg_query::DropRoleStmt* drop_role_stmt); - private: - const ::pg_query::DropRoleStmt& _internal_drop_role_stmt() const; - ::pg_query::DropRoleStmt* _internal_mutable_drop_role_stmt(); - public: - void unsafe_arena_set_allocated_drop_role_stmt( - ::pg_query::DropRoleStmt* drop_role_stmt); - ::pg_query::DropRoleStmt* unsafe_arena_release_drop_role_stmt(); - - // .pg_query.LockStmt lock_stmt = 105 [json_name = "LockStmt"]; - bool has_lock_stmt() const; - private: - bool _internal_has_lock_stmt() const; - public: - void clear_lock_stmt(); - const ::pg_query::LockStmt& lock_stmt() const; - PROTOBUF_NODISCARD ::pg_query::LockStmt* release_lock_stmt(); - ::pg_query::LockStmt* mutable_lock_stmt(); - void set_allocated_lock_stmt(::pg_query::LockStmt* lock_stmt); - private: - const ::pg_query::LockStmt& _internal_lock_stmt() const; - ::pg_query::LockStmt* _internal_mutable_lock_stmt(); - public: - void unsafe_arena_set_allocated_lock_stmt( - ::pg_query::LockStmt* lock_stmt); - ::pg_query::LockStmt* unsafe_arena_release_lock_stmt(); - - // .pg_query.ConstraintsSetStmt constraints_set_stmt = 106 [json_name = "ConstraintsSetStmt"]; - bool has_constraints_set_stmt() const; - private: - bool _internal_has_constraints_set_stmt() const; - public: - void clear_constraints_set_stmt(); - const ::pg_query::ConstraintsSetStmt& constraints_set_stmt() const; - PROTOBUF_NODISCARD ::pg_query::ConstraintsSetStmt* release_constraints_set_stmt(); - ::pg_query::ConstraintsSetStmt* mutable_constraints_set_stmt(); - void set_allocated_constraints_set_stmt(::pg_query::ConstraintsSetStmt* constraints_set_stmt); - private: - const ::pg_query::ConstraintsSetStmt& _internal_constraints_set_stmt() const; - ::pg_query::ConstraintsSetStmt* _internal_mutable_constraints_set_stmt(); - public: - void unsafe_arena_set_allocated_constraints_set_stmt( - ::pg_query::ConstraintsSetStmt* constraints_set_stmt); - ::pg_query::ConstraintsSetStmt* unsafe_arena_release_constraints_set_stmt(); - - // .pg_query.ReindexStmt reindex_stmt = 107 [json_name = "ReindexStmt"]; - bool has_reindex_stmt() const; - private: - bool _internal_has_reindex_stmt() const; - public: - void clear_reindex_stmt(); - const ::pg_query::ReindexStmt& reindex_stmt() const; - PROTOBUF_NODISCARD ::pg_query::ReindexStmt* release_reindex_stmt(); - ::pg_query::ReindexStmt* mutable_reindex_stmt(); - void set_allocated_reindex_stmt(::pg_query::ReindexStmt* reindex_stmt); - private: - const ::pg_query::ReindexStmt& _internal_reindex_stmt() const; - ::pg_query::ReindexStmt* _internal_mutable_reindex_stmt(); - public: - void unsafe_arena_set_allocated_reindex_stmt( - ::pg_query::ReindexStmt* reindex_stmt); - ::pg_query::ReindexStmt* unsafe_arena_release_reindex_stmt(); - - // .pg_query.CheckPointStmt check_point_stmt = 108 [json_name = "CheckPointStmt"]; - bool has_check_point_stmt() const; - private: - bool _internal_has_check_point_stmt() const; - public: - void clear_check_point_stmt(); - const ::pg_query::CheckPointStmt& check_point_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CheckPointStmt* release_check_point_stmt(); - ::pg_query::CheckPointStmt* mutable_check_point_stmt(); - void set_allocated_check_point_stmt(::pg_query::CheckPointStmt* check_point_stmt); - private: - const ::pg_query::CheckPointStmt& _internal_check_point_stmt() const; - ::pg_query::CheckPointStmt* _internal_mutable_check_point_stmt(); - public: - void unsafe_arena_set_allocated_check_point_stmt( - ::pg_query::CheckPointStmt* check_point_stmt); - ::pg_query::CheckPointStmt* unsafe_arena_release_check_point_stmt(); - - // .pg_query.CreateSchemaStmt create_schema_stmt = 109 [json_name = "CreateSchemaStmt"]; - bool has_create_schema_stmt() const; - private: - bool _internal_has_create_schema_stmt() const; - public: - void clear_create_schema_stmt(); - const ::pg_query::CreateSchemaStmt& create_schema_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateSchemaStmt* release_create_schema_stmt(); - ::pg_query::CreateSchemaStmt* mutable_create_schema_stmt(); - void set_allocated_create_schema_stmt(::pg_query::CreateSchemaStmt* create_schema_stmt); - private: - const ::pg_query::CreateSchemaStmt& _internal_create_schema_stmt() const; - ::pg_query::CreateSchemaStmt* _internal_mutable_create_schema_stmt(); - public: - void unsafe_arena_set_allocated_create_schema_stmt( - ::pg_query::CreateSchemaStmt* create_schema_stmt); - ::pg_query::CreateSchemaStmt* unsafe_arena_release_create_schema_stmt(); - - // .pg_query.AlterDatabaseStmt alter_database_stmt = 110 [json_name = "AlterDatabaseStmt"]; - bool has_alter_database_stmt() const; - private: - bool _internal_has_alter_database_stmt() const; - public: - void clear_alter_database_stmt(); - const ::pg_query::AlterDatabaseStmt& alter_database_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterDatabaseStmt* release_alter_database_stmt(); - ::pg_query::AlterDatabaseStmt* mutable_alter_database_stmt(); - void set_allocated_alter_database_stmt(::pg_query::AlterDatabaseStmt* alter_database_stmt); - private: - const ::pg_query::AlterDatabaseStmt& _internal_alter_database_stmt() const; - ::pg_query::AlterDatabaseStmt* _internal_mutable_alter_database_stmt(); - public: - void unsafe_arena_set_allocated_alter_database_stmt( - ::pg_query::AlterDatabaseStmt* alter_database_stmt); - ::pg_query::AlterDatabaseStmt* unsafe_arena_release_alter_database_stmt(); - - // .pg_query.AlterDatabaseRefreshCollStmt alter_database_refresh_coll_stmt = 111 [json_name = "AlterDatabaseRefreshCollStmt"]; - bool has_alter_database_refresh_coll_stmt() const; - private: - bool _internal_has_alter_database_refresh_coll_stmt() const; - public: - void clear_alter_database_refresh_coll_stmt(); - const ::pg_query::AlterDatabaseRefreshCollStmt& alter_database_refresh_coll_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterDatabaseRefreshCollStmt* release_alter_database_refresh_coll_stmt(); - ::pg_query::AlterDatabaseRefreshCollStmt* mutable_alter_database_refresh_coll_stmt(); - void set_allocated_alter_database_refresh_coll_stmt(::pg_query::AlterDatabaseRefreshCollStmt* alter_database_refresh_coll_stmt); - private: - const ::pg_query::AlterDatabaseRefreshCollStmt& _internal_alter_database_refresh_coll_stmt() const; - ::pg_query::AlterDatabaseRefreshCollStmt* _internal_mutable_alter_database_refresh_coll_stmt(); - public: - void unsafe_arena_set_allocated_alter_database_refresh_coll_stmt( - ::pg_query::AlterDatabaseRefreshCollStmt* alter_database_refresh_coll_stmt); - ::pg_query::AlterDatabaseRefreshCollStmt* unsafe_arena_release_alter_database_refresh_coll_stmt(); - - // .pg_query.AlterDatabaseSetStmt alter_database_set_stmt = 112 [json_name = "AlterDatabaseSetStmt"]; - bool has_alter_database_set_stmt() const; - private: - bool _internal_has_alter_database_set_stmt() const; - public: - void clear_alter_database_set_stmt(); - const ::pg_query::AlterDatabaseSetStmt& alter_database_set_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterDatabaseSetStmt* release_alter_database_set_stmt(); - ::pg_query::AlterDatabaseSetStmt* mutable_alter_database_set_stmt(); - void set_allocated_alter_database_set_stmt(::pg_query::AlterDatabaseSetStmt* alter_database_set_stmt); - private: - const ::pg_query::AlterDatabaseSetStmt& _internal_alter_database_set_stmt() const; - ::pg_query::AlterDatabaseSetStmt* _internal_mutable_alter_database_set_stmt(); - public: - void unsafe_arena_set_allocated_alter_database_set_stmt( - ::pg_query::AlterDatabaseSetStmt* alter_database_set_stmt); - ::pg_query::AlterDatabaseSetStmt* unsafe_arena_release_alter_database_set_stmt(); - - // .pg_query.AlterRoleSetStmt alter_role_set_stmt = 113 [json_name = "AlterRoleSetStmt"]; - bool has_alter_role_set_stmt() const; - private: - bool _internal_has_alter_role_set_stmt() const; - public: - void clear_alter_role_set_stmt(); - const ::pg_query::AlterRoleSetStmt& alter_role_set_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterRoleSetStmt* release_alter_role_set_stmt(); - ::pg_query::AlterRoleSetStmt* mutable_alter_role_set_stmt(); - void set_allocated_alter_role_set_stmt(::pg_query::AlterRoleSetStmt* alter_role_set_stmt); - private: - const ::pg_query::AlterRoleSetStmt& _internal_alter_role_set_stmt() const; - ::pg_query::AlterRoleSetStmt* _internal_mutable_alter_role_set_stmt(); - public: - void unsafe_arena_set_allocated_alter_role_set_stmt( - ::pg_query::AlterRoleSetStmt* alter_role_set_stmt); - ::pg_query::AlterRoleSetStmt* unsafe_arena_release_alter_role_set_stmt(); - - // .pg_query.CreateConversionStmt create_conversion_stmt = 114 [json_name = "CreateConversionStmt"]; - bool has_create_conversion_stmt() const; - private: - bool _internal_has_create_conversion_stmt() const; - public: - void clear_create_conversion_stmt(); - const ::pg_query::CreateConversionStmt& create_conversion_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateConversionStmt* release_create_conversion_stmt(); - ::pg_query::CreateConversionStmt* mutable_create_conversion_stmt(); - void set_allocated_create_conversion_stmt(::pg_query::CreateConversionStmt* create_conversion_stmt); - private: - const ::pg_query::CreateConversionStmt& _internal_create_conversion_stmt() const; - ::pg_query::CreateConversionStmt* _internal_mutable_create_conversion_stmt(); - public: - void unsafe_arena_set_allocated_create_conversion_stmt( - ::pg_query::CreateConversionStmt* create_conversion_stmt); - ::pg_query::CreateConversionStmt* unsafe_arena_release_create_conversion_stmt(); - - // .pg_query.CreateCastStmt create_cast_stmt = 115 [json_name = "CreateCastStmt"]; - bool has_create_cast_stmt() const; - private: - bool _internal_has_create_cast_stmt() const; - public: - void clear_create_cast_stmt(); - const ::pg_query::CreateCastStmt& create_cast_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateCastStmt* release_create_cast_stmt(); - ::pg_query::CreateCastStmt* mutable_create_cast_stmt(); - void set_allocated_create_cast_stmt(::pg_query::CreateCastStmt* create_cast_stmt); - private: - const ::pg_query::CreateCastStmt& _internal_create_cast_stmt() const; - ::pg_query::CreateCastStmt* _internal_mutable_create_cast_stmt(); - public: - void unsafe_arena_set_allocated_create_cast_stmt( - ::pg_query::CreateCastStmt* create_cast_stmt); - ::pg_query::CreateCastStmt* unsafe_arena_release_create_cast_stmt(); - - // .pg_query.CreateOpClassStmt create_op_class_stmt = 116 [json_name = "CreateOpClassStmt"]; - bool has_create_op_class_stmt() const; - private: - bool _internal_has_create_op_class_stmt() const; - public: - void clear_create_op_class_stmt(); - const ::pg_query::CreateOpClassStmt& create_op_class_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateOpClassStmt* release_create_op_class_stmt(); - ::pg_query::CreateOpClassStmt* mutable_create_op_class_stmt(); - void set_allocated_create_op_class_stmt(::pg_query::CreateOpClassStmt* create_op_class_stmt); - private: - const ::pg_query::CreateOpClassStmt& _internal_create_op_class_stmt() const; - ::pg_query::CreateOpClassStmt* _internal_mutable_create_op_class_stmt(); - public: - void unsafe_arena_set_allocated_create_op_class_stmt( - ::pg_query::CreateOpClassStmt* create_op_class_stmt); - ::pg_query::CreateOpClassStmt* unsafe_arena_release_create_op_class_stmt(); - - // .pg_query.CreateOpFamilyStmt create_op_family_stmt = 117 [json_name = "CreateOpFamilyStmt"]; - bool has_create_op_family_stmt() const; - private: - bool _internal_has_create_op_family_stmt() const; - public: - void clear_create_op_family_stmt(); - const ::pg_query::CreateOpFamilyStmt& create_op_family_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateOpFamilyStmt* release_create_op_family_stmt(); - ::pg_query::CreateOpFamilyStmt* mutable_create_op_family_stmt(); - void set_allocated_create_op_family_stmt(::pg_query::CreateOpFamilyStmt* create_op_family_stmt); - private: - const ::pg_query::CreateOpFamilyStmt& _internal_create_op_family_stmt() const; - ::pg_query::CreateOpFamilyStmt* _internal_mutable_create_op_family_stmt(); - public: - void unsafe_arena_set_allocated_create_op_family_stmt( - ::pg_query::CreateOpFamilyStmt* create_op_family_stmt); - ::pg_query::CreateOpFamilyStmt* unsafe_arena_release_create_op_family_stmt(); - - // .pg_query.AlterOpFamilyStmt alter_op_family_stmt = 118 [json_name = "AlterOpFamilyStmt"]; - bool has_alter_op_family_stmt() const; - private: - bool _internal_has_alter_op_family_stmt() const; - public: - void clear_alter_op_family_stmt(); - const ::pg_query::AlterOpFamilyStmt& alter_op_family_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterOpFamilyStmt* release_alter_op_family_stmt(); - ::pg_query::AlterOpFamilyStmt* mutable_alter_op_family_stmt(); - void set_allocated_alter_op_family_stmt(::pg_query::AlterOpFamilyStmt* alter_op_family_stmt); - private: - const ::pg_query::AlterOpFamilyStmt& _internal_alter_op_family_stmt() const; - ::pg_query::AlterOpFamilyStmt* _internal_mutable_alter_op_family_stmt(); - public: - void unsafe_arena_set_allocated_alter_op_family_stmt( - ::pg_query::AlterOpFamilyStmt* alter_op_family_stmt); - ::pg_query::AlterOpFamilyStmt* unsafe_arena_release_alter_op_family_stmt(); - - // .pg_query.PrepareStmt prepare_stmt = 119 [json_name = "PrepareStmt"]; - bool has_prepare_stmt() const; - private: - bool _internal_has_prepare_stmt() const; - public: - void clear_prepare_stmt(); - const ::pg_query::PrepareStmt& prepare_stmt() const; - PROTOBUF_NODISCARD ::pg_query::PrepareStmt* release_prepare_stmt(); - ::pg_query::PrepareStmt* mutable_prepare_stmt(); - void set_allocated_prepare_stmt(::pg_query::PrepareStmt* prepare_stmt); - private: - const ::pg_query::PrepareStmt& _internal_prepare_stmt() const; - ::pg_query::PrepareStmt* _internal_mutable_prepare_stmt(); - public: - void unsafe_arena_set_allocated_prepare_stmt( - ::pg_query::PrepareStmt* prepare_stmt); - ::pg_query::PrepareStmt* unsafe_arena_release_prepare_stmt(); - - // .pg_query.ExecuteStmt execute_stmt = 120 [json_name = "ExecuteStmt"]; - bool has_execute_stmt() const; - private: - bool _internal_has_execute_stmt() const; - public: - void clear_execute_stmt(); - const ::pg_query::ExecuteStmt& execute_stmt() const; - PROTOBUF_NODISCARD ::pg_query::ExecuteStmt* release_execute_stmt(); - ::pg_query::ExecuteStmt* mutable_execute_stmt(); - void set_allocated_execute_stmt(::pg_query::ExecuteStmt* execute_stmt); - private: - const ::pg_query::ExecuteStmt& _internal_execute_stmt() const; - ::pg_query::ExecuteStmt* _internal_mutable_execute_stmt(); - public: - void unsafe_arena_set_allocated_execute_stmt( - ::pg_query::ExecuteStmt* execute_stmt); - ::pg_query::ExecuteStmt* unsafe_arena_release_execute_stmt(); - - // .pg_query.DeallocateStmt deallocate_stmt = 121 [json_name = "DeallocateStmt"]; - bool has_deallocate_stmt() const; - private: - bool _internal_has_deallocate_stmt() const; - public: - void clear_deallocate_stmt(); - const ::pg_query::DeallocateStmt& deallocate_stmt() const; - PROTOBUF_NODISCARD ::pg_query::DeallocateStmt* release_deallocate_stmt(); - ::pg_query::DeallocateStmt* mutable_deallocate_stmt(); - void set_allocated_deallocate_stmt(::pg_query::DeallocateStmt* deallocate_stmt); - private: - const ::pg_query::DeallocateStmt& _internal_deallocate_stmt() const; - ::pg_query::DeallocateStmt* _internal_mutable_deallocate_stmt(); - public: - void unsafe_arena_set_allocated_deallocate_stmt( - ::pg_query::DeallocateStmt* deallocate_stmt); - ::pg_query::DeallocateStmt* unsafe_arena_release_deallocate_stmt(); - - // .pg_query.DeclareCursorStmt declare_cursor_stmt = 122 [json_name = "DeclareCursorStmt"]; - bool has_declare_cursor_stmt() const; - private: - bool _internal_has_declare_cursor_stmt() const; - public: - void clear_declare_cursor_stmt(); - const ::pg_query::DeclareCursorStmt& declare_cursor_stmt() const; - PROTOBUF_NODISCARD ::pg_query::DeclareCursorStmt* release_declare_cursor_stmt(); - ::pg_query::DeclareCursorStmt* mutable_declare_cursor_stmt(); - void set_allocated_declare_cursor_stmt(::pg_query::DeclareCursorStmt* declare_cursor_stmt); - private: - const ::pg_query::DeclareCursorStmt& _internal_declare_cursor_stmt() const; - ::pg_query::DeclareCursorStmt* _internal_mutable_declare_cursor_stmt(); - public: - void unsafe_arena_set_allocated_declare_cursor_stmt( - ::pg_query::DeclareCursorStmt* declare_cursor_stmt); - ::pg_query::DeclareCursorStmt* unsafe_arena_release_declare_cursor_stmt(); - - // .pg_query.CreateTableSpaceStmt create_table_space_stmt = 123 [json_name = "CreateTableSpaceStmt"]; - bool has_create_table_space_stmt() const; - private: - bool _internal_has_create_table_space_stmt() const; - public: - void clear_create_table_space_stmt(); - const ::pg_query::CreateTableSpaceStmt& create_table_space_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateTableSpaceStmt* release_create_table_space_stmt(); - ::pg_query::CreateTableSpaceStmt* mutable_create_table_space_stmt(); - void set_allocated_create_table_space_stmt(::pg_query::CreateTableSpaceStmt* create_table_space_stmt); - private: - const ::pg_query::CreateTableSpaceStmt& _internal_create_table_space_stmt() const; - ::pg_query::CreateTableSpaceStmt* _internal_mutable_create_table_space_stmt(); - public: - void unsafe_arena_set_allocated_create_table_space_stmt( - ::pg_query::CreateTableSpaceStmt* create_table_space_stmt); - ::pg_query::CreateTableSpaceStmt* unsafe_arena_release_create_table_space_stmt(); - - // .pg_query.DropTableSpaceStmt drop_table_space_stmt = 124 [json_name = "DropTableSpaceStmt"]; - bool has_drop_table_space_stmt() const; - private: - bool _internal_has_drop_table_space_stmt() const; - public: - void clear_drop_table_space_stmt(); - const ::pg_query::DropTableSpaceStmt& drop_table_space_stmt() const; - PROTOBUF_NODISCARD ::pg_query::DropTableSpaceStmt* release_drop_table_space_stmt(); - ::pg_query::DropTableSpaceStmt* mutable_drop_table_space_stmt(); - void set_allocated_drop_table_space_stmt(::pg_query::DropTableSpaceStmt* drop_table_space_stmt); - private: - const ::pg_query::DropTableSpaceStmt& _internal_drop_table_space_stmt() const; - ::pg_query::DropTableSpaceStmt* _internal_mutable_drop_table_space_stmt(); - public: - void unsafe_arena_set_allocated_drop_table_space_stmt( - ::pg_query::DropTableSpaceStmt* drop_table_space_stmt); - ::pg_query::DropTableSpaceStmt* unsafe_arena_release_drop_table_space_stmt(); - - // .pg_query.AlterObjectDependsStmt alter_object_depends_stmt = 125 [json_name = "AlterObjectDependsStmt"]; - bool has_alter_object_depends_stmt() const; - private: - bool _internal_has_alter_object_depends_stmt() const; - public: - void clear_alter_object_depends_stmt(); - const ::pg_query::AlterObjectDependsStmt& alter_object_depends_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterObjectDependsStmt* release_alter_object_depends_stmt(); - ::pg_query::AlterObjectDependsStmt* mutable_alter_object_depends_stmt(); - void set_allocated_alter_object_depends_stmt(::pg_query::AlterObjectDependsStmt* alter_object_depends_stmt); - private: - const ::pg_query::AlterObjectDependsStmt& _internal_alter_object_depends_stmt() const; - ::pg_query::AlterObjectDependsStmt* _internal_mutable_alter_object_depends_stmt(); - public: - void unsafe_arena_set_allocated_alter_object_depends_stmt( - ::pg_query::AlterObjectDependsStmt* alter_object_depends_stmt); - ::pg_query::AlterObjectDependsStmt* unsafe_arena_release_alter_object_depends_stmt(); - - // .pg_query.AlterObjectSchemaStmt alter_object_schema_stmt = 126 [json_name = "AlterObjectSchemaStmt"]; - bool has_alter_object_schema_stmt() const; - private: - bool _internal_has_alter_object_schema_stmt() const; - public: - void clear_alter_object_schema_stmt(); - const ::pg_query::AlterObjectSchemaStmt& alter_object_schema_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterObjectSchemaStmt* release_alter_object_schema_stmt(); - ::pg_query::AlterObjectSchemaStmt* mutable_alter_object_schema_stmt(); - void set_allocated_alter_object_schema_stmt(::pg_query::AlterObjectSchemaStmt* alter_object_schema_stmt); - private: - const ::pg_query::AlterObjectSchemaStmt& _internal_alter_object_schema_stmt() const; - ::pg_query::AlterObjectSchemaStmt* _internal_mutable_alter_object_schema_stmt(); - public: - void unsafe_arena_set_allocated_alter_object_schema_stmt( - ::pg_query::AlterObjectSchemaStmt* alter_object_schema_stmt); - ::pg_query::AlterObjectSchemaStmt* unsafe_arena_release_alter_object_schema_stmt(); - - // .pg_query.AlterOwnerStmt alter_owner_stmt = 127 [json_name = "AlterOwnerStmt"]; - bool has_alter_owner_stmt() const; - private: - bool _internal_has_alter_owner_stmt() const; - public: - void clear_alter_owner_stmt(); - const ::pg_query::AlterOwnerStmt& alter_owner_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterOwnerStmt* release_alter_owner_stmt(); - ::pg_query::AlterOwnerStmt* mutable_alter_owner_stmt(); - void set_allocated_alter_owner_stmt(::pg_query::AlterOwnerStmt* alter_owner_stmt); - private: - const ::pg_query::AlterOwnerStmt& _internal_alter_owner_stmt() const; - ::pg_query::AlterOwnerStmt* _internal_mutable_alter_owner_stmt(); - public: - void unsafe_arena_set_allocated_alter_owner_stmt( - ::pg_query::AlterOwnerStmt* alter_owner_stmt); - ::pg_query::AlterOwnerStmt* unsafe_arena_release_alter_owner_stmt(); - - // .pg_query.AlterOperatorStmt alter_operator_stmt = 128 [json_name = "AlterOperatorStmt"]; - bool has_alter_operator_stmt() const; - private: - bool _internal_has_alter_operator_stmt() const; - public: - void clear_alter_operator_stmt(); - const ::pg_query::AlterOperatorStmt& alter_operator_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterOperatorStmt* release_alter_operator_stmt(); - ::pg_query::AlterOperatorStmt* mutable_alter_operator_stmt(); - void set_allocated_alter_operator_stmt(::pg_query::AlterOperatorStmt* alter_operator_stmt); - private: - const ::pg_query::AlterOperatorStmt& _internal_alter_operator_stmt() const; - ::pg_query::AlterOperatorStmt* _internal_mutable_alter_operator_stmt(); - public: - void unsafe_arena_set_allocated_alter_operator_stmt( - ::pg_query::AlterOperatorStmt* alter_operator_stmt); - ::pg_query::AlterOperatorStmt* unsafe_arena_release_alter_operator_stmt(); - - // .pg_query.AlterTypeStmt alter_type_stmt = 129 [json_name = "AlterTypeStmt"]; - bool has_alter_type_stmt() const; - private: - bool _internal_has_alter_type_stmt() const; - public: - void clear_alter_type_stmt(); - const ::pg_query::AlterTypeStmt& alter_type_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterTypeStmt* release_alter_type_stmt(); - ::pg_query::AlterTypeStmt* mutable_alter_type_stmt(); - void set_allocated_alter_type_stmt(::pg_query::AlterTypeStmt* alter_type_stmt); - private: - const ::pg_query::AlterTypeStmt& _internal_alter_type_stmt() const; - ::pg_query::AlterTypeStmt* _internal_mutable_alter_type_stmt(); - public: - void unsafe_arena_set_allocated_alter_type_stmt( - ::pg_query::AlterTypeStmt* alter_type_stmt); - ::pg_query::AlterTypeStmt* unsafe_arena_release_alter_type_stmt(); - - // .pg_query.DropOwnedStmt drop_owned_stmt = 130 [json_name = "DropOwnedStmt"]; - bool has_drop_owned_stmt() const; - private: - bool _internal_has_drop_owned_stmt() const; - public: - void clear_drop_owned_stmt(); - const ::pg_query::DropOwnedStmt& drop_owned_stmt() const; - PROTOBUF_NODISCARD ::pg_query::DropOwnedStmt* release_drop_owned_stmt(); - ::pg_query::DropOwnedStmt* mutable_drop_owned_stmt(); - void set_allocated_drop_owned_stmt(::pg_query::DropOwnedStmt* drop_owned_stmt); - private: - const ::pg_query::DropOwnedStmt& _internal_drop_owned_stmt() const; - ::pg_query::DropOwnedStmt* _internal_mutable_drop_owned_stmt(); - public: - void unsafe_arena_set_allocated_drop_owned_stmt( - ::pg_query::DropOwnedStmt* drop_owned_stmt); - ::pg_query::DropOwnedStmt* unsafe_arena_release_drop_owned_stmt(); - - // .pg_query.ReassignOwnedStmt reassign_owned_stmt = 131 [json_name = "ReassignOwnedStmt"]; - bool has_reassign_owned_stmt() const; - private: - bool _internal_has_reassign_owned_stmt() const; - public: - void clear_reassign_owned_stmt(); - const ::pg_query::ReassignOwnedStmt& reassign_owned_stmt() const; - PROTOBUF_NODISCARD ::pg_query::ReassignOwnedStmt* release_reassign_owned_stmt(); - ::pg_query::ReassignOwnedStmt* mutable_reassign_owned_stmt(); - void set_allocated_reassign_owned_stmt(::pg_query::ReassignOwnedStmt* reassign_owned_stmt); - private: - const ::pg_query::ReassignOwnedStmt& _internal_reassign_owned_stmt() const; - ::pg_query::ReassignOwnedStmt* _internal_mutable_reassign_owned_stmt(); - public: - void unsafe_arena_set_allocated_reassign_owned_stmt( - ::pg_query::ReassignOwnedStmt* reassign_owned_stmt); - ::pg_query::ReassignOwnedStmt* unsafe_arena_release_reassign_owned_stmt(); - - // .pg_query.CompositeTypeStmt composite_type_stmt = 132 [json_name = "CompositeTypeStmt"]; - bool has_composite_type_stmt() const; - private: - bool _internal_has_composite_type_stmt() const; - public: - void clear_composite_type_stmt(); - const ::pg_query::CompositeTypeStmt& composite_type_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CompositeTypeStmt* release_composite_type_stmt(); - ::pg_query::CompositeTypeStmt* mutable_composite_type_stmt(); - void set_allocated_composite_type_stmt(::pg_query::CompositeTypeStmt* composite_type_stmt); - private: - const ::pg_query::CompositeTypeStmt& _internal_composite_type_stmt() const; - ::pg_query::CompositeTypeStmt* _internal_mutable_composite_type_stmt(); - public: - void unsafe_arena_set_allocated_composite_type_stmt( - ::pg_query::CompositeTypeStmt* composite_type_stmt); - ::pg_query::CompositeTypeStmt* unsafe_arena_release_composite_type_stmt(); - - // .pg_query.CreateEnumStmt create_enum_stmt = 133 [json_name = "CreateEnumStmt"]; - bool has_create_enum_stmt() const; - private: - bool _internal_has_create_enum_stmt() const; - public: - void clear_create_enum_stmt(); - const ::pg_query::CreateEnumStmt& create_enum_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateEnumStmt* release_create_enum_stmt(); - ::pg_query::CreateEnumStmt* mutable_create_enum_stmt(); - void set_allocated_create_enum_stmt(::pg_query::CreateEnumStmt* create_enum_stmt); - private: - const ::pg_query::CreateEnumStmt& _internal_create_enum_stmt() const; - ::pg_query::CreateEnumStmt* _internal_mutable_create_enum_stmt(); - public: - void unsafe_arena_set_allocated_create_enum_stmt( - ::pg_query::CreateEnumStmt* create_enum_stmt); - ::pg_query::CreateEnumStmt* unsafe_arena_release_create_enum_stmt(); - - // .pg_query.CreateRangeStmt create_range_stmt = 134 [json_name = "CreateRangeStmt"]; - bool has_create_range_stmt() const; - private: - bool _internal_has_create_range_stmt() const; - public: - void clear_create_range_stmt(); - const ::pg_query::CreateRangeStmt& create_range_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateRangeStmt* release_create_range_stmt(); - ::pg_query::CreateRangeStmt* mutable_create_range_stmt(); - void set_allocated_create_range_stmt(::pg_query::CreateRangeStmt* create_range_stmt); - private: - const ::pg_query::CreateRangeStmt& _internal_create_range_stmt() const; - ::pg_query::CreateRangeStmt* _internal_mutable_create_range_stmt(); - public: - void unsafe_arena_set_allocated_create_range_stmt( - ::pg_query::CreateRangeStmt* create_range_stmt); - ::pg_query::CreateRangeStmt* unsafe_arena_release_create_range_stmt(); - - // .pg_query.AlterEnumStmt alter_enum_stmt = 135 [json_name = "AlterEnumStmt"]; - bool has_alter_enum_stmt() const; - private: - bool _internal_has_alter_enum_stmt() const; - public: - void clear_alter_enum_stmt(); - const ::pg_query::AlterEnumStmt& alter_enum_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterEnumStmt* release_alter_enum_stmt(); - ::pg_query::AlterEnumStmt* mutable_alter_enum_stmt(); - void set_allocated_alter_enum_stmt(::pg_query::AlterEnumStmt* alter_enum_stmt); - private: - const ::pg_query::AlterEnumStmt& _internal_alter_enum_stmt() const; - ::pg_query::AlterEnumStmt* _internal_mutable_alter_enum_stmt(); - public: - void unsafe_arena_set_allocated_alter_enum_stmt( - ::pg_query::AlterEnumStmt* alter_enum_stmt); - ::pg_query::AlterEnumStmt* unsafe_arena_release_alter_enum_stmt(); - - // .pg_query.AlterTSDictionaryStmt alter_tsdictionary_stmt = 136 [json_name = "AlterTSDictionaryStmt"]; - bool has_alter_tsdictionary_stmt() const; - private: - bool _internal_has_alter_tsdictionary_stmt() const; - public: - void clear_alter_tsdictionary_stmt(); - const ::pg_query::AlterTSDictionaryStmt& alter_tsdictionary_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterTSDictionaryStmt* release_alter_tsdictionary_stmt(); - ::pg_query::AlterTSDictionaryStmt* mutable_alter_tsdictionary_stmt(); - void set_allocated_alter_tsdictionary_stmt(::pg_query::AlterTSDictionaryStmt* alter_tsdictionary_stmt); - private: - const ::pg_query::AlterTSDictionaryStmt& _internal_alter_tsdictionary_stmt() const; - ::pg_query::AlterTSDictionaryStmt* _internal_mutable_alter_tsdictionary_stmt(); - public: - void unsafe_arena_set_allocated_alter_tsdictionary_stmt( - ::pg_query::AlterTSDictionaryStmt* alter_tsdictionary_stmt); - ::pg_query::AlterTSDictionaryStmt* unsafe_arena_release_alter_tsdictionary_stmt(); - - // .pg_query.AlterTSConfigurationStmt alter_tsconfiguration_stmt = 137 [json_name = "AlterTSConfigurationStmt"]; - bool has_alter_tsconfiguration_stmt() const; - private: - bool _internal_has_alter_tsconfiguration_stmt() const; - public: - void clear_alter_tsconfiguration_stmt(); - const ::pg_query::AlterTSConfigurationStmt& alter_tsconfiguration_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterTSConfigurationStmt* release_alter_tsconfiguration_stmt(); - ::pg_query::AlterTSConfigurationStmt* mutable_alter_tsconfiguration_stmt(); - void set_allocated_alter_tsconfiguration_stmt(::pg_query::AlterTSConfigurationStmt* alter_tsconfiguration_stmt); - private: - const ::pg_query::AlterTSConfigurationStmt& _internal_alter_tsconfiguration_stmt() const; - ::pg_query::AlterTSConfigurationStmt* _internal_mutable_alter_tsconfiguration_stmt(); - public: - void unsafe_arena_set_allocated_alter_tsconfiguration_stmt( - ::pg_query::AlterTSConfigurationStmt* alter_tsconfiguration_stmt); - ::pg_query::AlterTSConfigurationStmt* unsafe_arena_release_alter_tsconfiguration_stmt(); - - // .pg_query.CreateFdwStmt create_fdw_stmt = 138 [json_name = "CreateFdwStmt"]; - bool has_create_fdw_stmt() const; - private: - bool _internal_has_create_fdw_stmt() const; - public: - void clear_create_fdw_stmt(); - const ::pg_query::CreateFdwStmt& create_fdw_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateFdwStmt* release_create_fdw_stmt(); - ::pg_query::CreateFdwStmt* mutable_create_fdw_stmt(); - void set_allocated_create_fdw_stmt(::pg_query::CreateFdwStmt* create_fdw_stmt); - private: - const ::pg_query::CreateFdwStmt& _internal_create_fdw_stmt() const; - ::pg_query::CreateFdwStmt* _internal_mutable_create_fdw_stmt(); - public: - void unsafe_arena_set_allocated_create_fdw_stmt( - ::pg_query::CreateFdwStmt* create_fdw_stmt); - ::pg_query::CreateFdwStmt* unsafe_arena_release_create_fdw_stmt(); - - // .pg_query.AlterFdwStmt alter_fdw_stmt = 139 [json_name = "AlterFdwStmt"]; - bool has_alter_fdw_stmt() const; - private: - bool _internal_has_alter_fdw_stmt() const; - public: - void clear_alter_fdw_stmt(); - const ::pg_query::AlterFdwStmt& alter_fdw_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterFdwStmt* release_alter_fdw_stmt(); - ::pg_query::AlterFdwStmt* mutable_alter_fdw_stmt(); - void set_allocated_alter_fdw_stmt(::pg_query::AlterFdwStmt* alter_fdw_stmt); - private: - const ::pg_query::AlterFdwStmt& _internal_alter_fdw_stmt() const; - ::pg_query::AlterFdwStmt* _internal_mutable_alter_fdw_stmt(); - public: - void unsafe_arena_set_allocated_alter_fdw_stmt( - ::pg_query::AlterFdwStmt* alter_fdw_stmt); - ::pg_query::AlterFdwStmt* unsafe_arena_release_alter_fdw_stmt(); - - // .pg_query.CreateForeignServerStmt create_foreign_server_stmt = 140 [json_name = "CreateForeignServerStmt"]; - bool has_create_foreign_server_stmt() const; - private: - bool _internal_has_create_foreign_server_stmt() const; - public: - void clear_create_foreign_server_stmt(); - const ::pg_query::CreateForeignServerStmt& create_foreign_server_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateForeignServerStmt* release_create_foreign_server_stmt(); - ::pg_query::CreateForeignServerStmt* mutable_create_foreign_server_stmt(); - void set_allocated_create_foreign_server_stmt(::pg_query::CreateForeignServerStmt* create_foreign_server_stmt); - private: - const ::pg_query::CreateForeignServerStmt& _internal_create_foreign_server_stmt() const; - ::pg_query::CreateForeignServerStmt* _internal_mutable_create_foreign_server_stmt(); - public: - void unsafe_arena_set_allocated_create_foreign_server_stmt( - ::pg_query::CreateForeignServerStmt* create_foreign_server_stmt); - ::pg_query::CreateForeignServerStmt* unsafe_arena_release_create_foreign_server_stmt(); - - // .pg_query.AlterForeignServerStmt alter_foreign_server_stmt = 141 [json_name = "AlterForeignServerStmt"]; - bool has_alter_foreign_server_stmt() const; - private: - bool _internal_has_alter_foreign_server_stmt() const; - public: - void clear_alter_foreign_server_stmt(); - const ::pg_query::AlterForeignServerStmt& alter_foreign_server_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterForeignServerStmt* release_alter_foreign_server_stmt(); - ::pg_query::AlterForeignServerStmt* mutable_alter_foreign_server_stmt(); - void set_allocated_alter_foreign_server_stmt(::pg_query::AlterForeignServerStmt* alter_foreign_server_stmt); - private: - const ::pg_query::AlterForeignServerStmt& _internal_alter_foreign_server_stmt() const; - ::pg_query::AlterForeignServerStmt* _internal_mutable_alter_foreign_server_stmt(); - public: - void unsafe_arena_set_allocated_alter_foreign_server_stmt( - ::pg_query::AlterForeignServerStmt* alter_foreign_server_stmt); - ::pg_query::AlterForeignServerStmt* unsafe_arena_release_alter_foreign_server_stmt(); - - // .pg_query.CreateUserMappingStmt create_user_mapping_stmt = 142 [json_name = "CreateUserMappingStmt"]; - bool has_create_user_mapping_stmt() const; - private: - bool _internal_has_create_user_mapping_stmt() const; - public: - void clear_create_user_mapping_stmt(); - const ::pg_query::CreateUserMappingStmt& create_user_mapping_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateUserMappingStmt* release_create_user_mapping_stmt(); - ::pg_query::CreateUserMappingStmt* mutable_create_user_mapping_stmt(); - void set_allocated_create_user_mapping_stmt(::pg_query::CreateUserMappingStmt* create_user_mapping_stmt); - private: - const ::pg_query::CreateUserMappingStmt& _internal_create_user_mapping_stmt() const; - ::pg_query::CreateUserMappingStmt* _internal_mutable_create_user_mapping_stmt(); - public: - void unsafe_arena_set_allocated_create_user_mapping_stmt( - ::pg_query::CreateUserMappingStmt* create_user_mapping_stmt); - ::pg_query::CreateUserMappingStmt* unsafe_arena_release_create_user_mapping_stmt(); - - // .pg_query.AlterUserMappingStmt alter_user_mapping_stmt = 143 [json_name = "AlterUserMappingStmt"]; - bool has_alter_user_mapping_stmt() const; - private: - bool _internal_has_alter_user_mapping_stmt() const; - public: - void clear_alter_user_mapping_stmt(); - const ::pg_query::AlterUserMappingStmt& alter_user_mapping_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterUserMappingStmt* release_alter_user_mapping_stmt(); - ::pg_query::AlterUserMappingStmt* mutable_alter_user_mapping_stmt(); - void set_allocated_alter_user_mapping_stmt(::pg_query::AlterUserMappingStmt* alter_user_mapping_stmt); - private: - const ::pg_query::AlterUserMappingStmt& _internal_alter_user_mapping_stmt() const; - ::pg_query::AlterUserMappingStmt* _internal_mutable_alter_user_mapping_stmt(); - public: - void unsafe_arena_set_allocated_alter_user_mapping_stmt( - ::pg_query::AlterUserMappingStmt* alter_user_mapping_stmt); - ::pg_query::AlterUserMappingStmt* unsafe_arena_release_alter_user_mapping_stmt(); - - // .pg_query.DropUserMappingStmt drop_user_mapping_stmt = 144 [json_name = "DropUserMappingStmt"]; - bool has_drop_user_mapping_stmt() const; - private: - bool _internal_has_drop_user_mapping_stmt() const; - public: - void clear_drop_user_mapping_stmt(); - const ::pg_query::DropUserMappingStmt& drop_user_mapping_stmt() const; - PROTOBUF_NODISCARD ::pg_query::DropUserMappingStmt* release_drop_user_mapping_stmt(); - ::pg_query::DropUserMappingStmt* mutable_drop_user_mapping_stmt(); - void set_allocated_drop_user_mapping_stmt(::pg_query::DropUserMappingStmt* drop_user_mapping_stmt); - private: - const ::pg_query::DropUserMappingStmt& _internal_drop_user_mapping_stmt() const; - ::pg_query::DropUserMappingStmt* _internal_mutable_drop_user_mapping_stmt(); - public: - void unsafe_arena_set_allocated_drop_user_mapping_stmt( - ::pg_query::DropUserMappingStmt* drop_user_mapping_stmt); - ::pg_query::DropUserMappingStmt* unsafe_arena_release_drop_user_mapping_stmt(); - - // .pg_query.AlterTableSpaceOptionsStmt alter_table_space_options_stmt = 145 [json_name = "AlterTableSpaceOptionsStmt"]; - bool has_alter_table_space_options_stmt() const; - private: - bool _internal_has_alter_table_space_options_stmt() const; - public: - void clear_alter_table_space_options_stmt(); - const ::pg_query::AlterTableSpaceOptionsStmt& alter_table_space_options_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterTableSpaceOptionsStmt* release_alter_table_space_options_stmt(); - ::pg_query::AlterTableSpaceOptionsStmt* mutable_alter_table_space_options_stmt(); - void set_allocated_alter_table_space_options_stmt(::pg_query::AlterTableSpaceOptionsStmt* alter_table_space_options_stmt); - private: - const ::pg_query::AlterTableSpaceOptionsStmt& _internal_alter_table_space_options_stmt() const; - ::pg_query::AlterTableSpaceOptionsStmt* _internal_mutable_alter_table_space_options_stmt(); - public: - void unsafe_arena_set_allocated_alter_table_space_options_stmt( - ::pg_query::AlterTableSpaceOptionsStmt* alter_table_space_options_stmt); - ::pg_query::AlterTableSpaceOptionsStmt* unsafe_arena_release_alter_table_space_options_stmt(); - - // .pg_query.AlterTableMoveAllStmt alter_table_move_all_stmt = 146 [json_name = "AlterTableMoveAllStmt"]; - bool has_alter_table_move_all_stmt() const; - private: - bool _internal_has_alter_table_move_all_stmt() const; - public: - void clear_alter_table_move_all_stmt(); - const ::pg_query::AlterTableMoveAllStmt& alter_table_move_all_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterTableMoveAllStmt* release_alter_table_move_all_stmt(); - ::pg_query::AlterTableMoveAllStmt* mutable_alter_table_move_all_stmt(); - void set_allocated_alter_table_move_all_stmt(::pg_query::AlterTableMoveAllStmt* alter_table_move_all_stmt); - private: - const ::pg_query::AlterTableMoveAllStmt& _internal_alter_table_move_all_stmt() const; - ::pg_query::AlterTableMoveAllStmt* _internal_mutable_alter_table_move_all_stmt(); - public: - void unsafe_arena_set_allocated_alter_table_move_all_stmt( - ::pg_query::AlterTableMoveAllStmt* alter_table_move_all_stmt); - ::pg_query::AlterTableMoveAllStmt* unsafe_arena_release_alter_table_move_all_stmt(); - - // .pg_query.SecLabelStmt sec_label_stmt = 147 [json_name = "SecLabelStmt"]; - bool has_sec_label_stmt() const; - private: - bool _internal_has_sec_label_stmt() const; - public: - void clear_sec_label_stmt(); - const ::pg_query::SecLabelStmt& sec_label_stmt() const; - PROTOBUF_NODISCARD ::pg_query::SecLabelStmt* release_sec_label_stmt(); - ::pg_query::SecLabelStmt* mutable_sec_label_stmt(); - void set_allocated_sec_label_stmt(::pg_query::SecLabelStmt* sec_label_stmt); - private: - const ::pg_query::SecLabelStmt& _internal_sec_label_stmt() const; - ::pg_query::SecLabelStmt* _internal_mutable_sec_label_stmt(); - public: - void unsafe_arena_set_allocated_sec_label_stmt( - ::pg_query::SecLabelStmt* sec_label_stmt); - ::pg_query::SecLabelStmt* unsafe_arena_release_sec_label_stmt(); - - // .pg_query.CreateForeignTableStmt create_foreign_table_stmt = 148 [json_name = "CreateForeignTableStmt"]; - bool has_create_foreign_table_stmt() const; - private: - bool _internal_has_create_foreign_table_stmt() const; - public: - void clear_create_foreign_table_stmt(); - const ::pg_query::CreateForeignTableStmt& create_foreign_table_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateForeignTableStmt* release_create_foreign_table_stmt(); - ::pg_query::CreateForeignTableStmt* mutable_create_foreign_table_stmt(); - void set_allocated_create_foreign_table_stmt(::pg_query::CreateForeignTableStmt* create_foreign_table_stmt); - private: - const ::pg_query::CreateForeignTableStmt& _internal_create_foreign_table_stmt() const; - ::pg_query::CreateForeignTableStmt* _internal_mutable_create_foreign_table_stmt(); - public: - void unsafe_arena_set_allocated_create_foreign_table_stmt( - ::pg_query::CreateForeignTableStmt* create_foreign_table_stmt); - ::pg_query::CreateForeignTableStmt* unsafe_arena_release_create_foreign_table_stmt(); - - // .pg_query.ImportForeignSchemaStmt import_foreign_schema_stmt = 149 [json_name = "ImportForeignSchemaStmt"]; - bool has_import_foreign_schema_stmt() const; - private: - bool _internal_has_import_foreign_schema_stmt() const; - public: - void clear_import_foreign_schema_stmt(); - const ::pg_query::ImportForeignSchemaStmt& import_foreign_schema_stmt() const; - PROTOBUF_NODISCARD ::pg_query::ImportForeignSchemaStmt* release_import_foreign_schema_stmt(); - ::pg_query::ImportForeignSchemaStmt* mutable_import_foreign_schema_stmt(); - void set_allocated_import_foreign_schema_stmt(::pg_query::ImportForeignSchemaStmt* import_foreign_schema_stmt); - private: - const ::pg_query::ImportForeignSchemaStmt& _internal_import_foreign_schema_stmt() const; - ::pg_query::ImportForeignSchemaStmt* _internal_mutable_import_foreign_schema_stmt(); - public: - void unsafe_arena_set_allocated_import_foreign_schema_stmt( - ::pg_query::ImportForeignSchemaStmt* import_foreign_schema_stmt); - ::pg_query::ImportForeignSchemaStmt* unsafe_arena_release_import_foreign_schema_stmt(); - - // .pg_query.CreateExtensionStmt create_extension_stmt = 150 [json_name = "CreateExtensionStmt"]; - bool has_create_extension_stmt() const; - private: - bool _internal_has_create_extension_stmt() const; - public: - void clear_create_extension_stmt(); - const ::pg_query::CreateExtensionStmt& create_extension_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateExtensionStmt* release_create_extension_stmt(); - ::pg_query::CreateExtensionStmt* mutable_create_extension_stmt(); - void set_allocated_create_extension_stmt(::pg_query::CreateExtensionStmt* create_extension_stmt); - private: - const ::pg_query::CreateExtensionStmt& _internal_create_extension_stmt() const; - ::pg_query::CreateExtensionStmt* _internal_mutable_create_extension_stmt(); - public: - void unsafe_arena_set_allocated_create_extension_stmt( - ::pg_query::CreateExtensionStmt* create_extension_stmt); - ::pg_query::CreateExtensionStmt* unsafe_arena_release_create_extension_stmt(); - - // .pg_query.AlterExtensionStmt alter_extension_stmt = 151 [json_name = "AlterExtensionStmt"]; - bool has_alter_extension_stmt() const; - private: - bool _internal_has_alter_extension_stmt() const; - public: - void clear_alter_extension_stmt(); - const ::pg_query::AlterExtensionStmt& alter_extension_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterExtensionStmt* release_alter_extension_stmt(); - ::pg_query::AlterExtensionStmt* mutable_alter_extension_stmt(); - void set_allocated_alter_extension_stmt(::pg_query::AlterExtensionStmt* alter_extension_stmt); - private: - const ::pg_query::AlterExtensionStmt& _internal_alter_extension_stmt() const; - ::pg_query::AlterExtensionStmt* _internal_mutable_alter_extension_stmt(); - public: - void unsafe_arena_set_allocated_alter_extension_stmt( - ::pg_query::AlterExtensionStmt* alter_extension_stmt); - ::pg_query::AlterExtensionStmt* unsafe_arena_release_alter_extension_stmt(); - - // .pg_query.AlterExtensionContentsStmt alter_extension_contents_stmt = 152 [json_name = "AlterExtensionContentsStmt"]; - bool has_alter_extension_contents_stmt() const; - private: - bool _internal_has_alter_extension_contents_stmt() const; - public: - void clear_alter_extension_contents_stmt(); - const ::pg_query::AlterExtensionContentsStmt& alter_extension_contents_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterExtensionContentsStmt* release_alter_extension_contents_stmt(); - ::pg_query::AlterExtensionContentsStmt* mutable_alter_extension_contents_stmt(); - void set_allocated_alter_extension_contents_stmt(::pg_query::AlterExtensionContentsStmt* alter_extension_contents_stmt); - private: - const ::pg_query::AlterExtensionContentsStmt& _internal_alter_extension_contents_stmt() const; - ::pg_query::AlterExtensionContentsStmt* _internal_mutable_alter_extension_contents_stmt(); - public: - void unsafe_arena_set_allocated_alter_extension_contents_stmt( - ::pg_query::AlterExtensionContentsStmt* alter_extension_contents_stmt); - ::pg_query::AlterExtensionContentsStmt* unsafe_arena_release_alter_extension_contents_stmt(); - - // .pg_query.CreateEventTrigStmt create_event_trig_stmt = 153 [json_name = "CreateEventTrigStmt"]; - bool has_create_event_trig_stmt() const; - private: - bool _internal_has_create_event_trig_stmt() const; - public: - void clear_create_event_trig_stmt(); - const ::pg_query::CreateEventTrigStmt& create_event_trig_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateEventTrigStmt* release_create_event_trig_stmt(); - ::pg_query::CreateEventTrigStmt* mutable_create_event_trig_stmt(); - void set_allocated_create_event_trig_stmt(::pg_query::CreateEventTrigStmt* create_event_trig_stmt); - private: - const ::pg_query::CreateEventTrigStmt& _internal_create_event_trig_stmt() const; - ::pg_query::CreateEventTrigStmt* _internal_mutable_create_event_trig_stmt(); - public: - void unsafe_arena_set_allocated_create_event_trig_stmt( - ::pg_query::CreateEventTrigStmt* create_event_trig_stmt); - ::pg_query::CreateEventTrigStmt* unsafe_arena_release_create_event_trig_stmt(); - - // .pg_query.AlterEventTrigStmt alter_event_trig_stmt = 154 [json_name = "AlterEventTrigStmt"]; - bool has_alter_event_trig_stmt() const; - private: - bool _internal_has_alter_event_trig_stmt() const; - public: - void clear_alter_event_trig_stmt(); - const ::pg_query::AlterEventTrigStmt& alter_event_trig_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterEventTrigStmt* release_alter_event_trig_stmt(); - ::pg_query::AlterEventTrigStmt* mutable_alter_event_trig_stmt(); - void set_allocated_alter_event_trig_stmt(::pg_query::AlterEventTrigStmt* alter_event_trig_stmt); - private: - const ::pg_query::AlterEventTrigStmt& _internal_alter_event_trig_stmt() const; - ::pg_query::AlterEventTrigStmt* _internal_mutable_alter_event_trig_stmt(); - public: - void unsafe_arena_set_allocated_alter_event_trig_stmt( - ::pg_query::AlterEventTrigStmt* alter_event_trig_stmt); - ::pg_query::AlterEventTrigStmt* unsafe_arena_release_alter_event_trig_stmt(); - - // .pg_query.RefreshMatViewStmt refresh_mat_view_stmt = 155 [json_name = "RefreshMatViewStmt"]; - bool has_refresh_mat_view_stmt() const; - private: - bool _internal_has_refresh_mat_view_stmt() const; - public: - void clear_refresh_mat_view_stmt(); - const ::pg_query::RefreshMatViewStmt& refresh_mat_view_stmt() const; - PROTOBUF_NODISCARD ::pg_query::RefreshMatViewStmt* release_refresh_mat_view_stmt(); - ::pg_query::RefreshMatViewStmt* mutable_refresh_mat_view_stmt(); - void set_allocated_refresh_mat_view_stmt(::pg_query::RefreshMatViewStmt* refresh_mat_view_stmt); - private: - const ::pg_query::RefreshMatViewStmt& _internal_refresh_mat_view_stmt() const; - ::pg_query::RefreshMatViewStmt* _internal_mutable_refresh_mat_view_stmt(); - public: - void unsafe_arena_set_allocated_refresh_mat_view_stmt( - ::pg_query::RefreshMatViewStmt* refresh_mat_view_stmt); - ::pg_query::RefreshMatViewStmt* unsafe_arena_release_refresh_mat_view_stmt(); - - // .pg_query.ReplicaIdentityStmt replica_identity_stmt = 156 [json_name = "ReplicaIdentityStmt"]; - bool has_replica_identity_stmt() const; - private: - bool _internal_has_replica_identity_stmt() const; - public: - void clear_replica_identity_stmt(); - const ::pg_query::ReplicaIdentityStmt& replica_identity_stmt() const; - PROTOBUF_NODISCARD ::pg_query::ReplicaIdentityStmt* release_replica_identity_stmt(); - ::pg_query::ReplicaIdentityStmt* mutable_replica_identity_stmt(); - void set_allocated_replica_identity_stmt(::pg_query::ReplicaIdentityStmt* replica_identity_stmt); - private: - const ::pg_query::ReplicaIdentityStmt& _internal_replica_identity_stmt() const; - ::pg_query::ReplicaIdentityStmt* _internal_mutable_replica_identity_stmt(); - public: - void unsafe_arena_set_allocated_replica_identity_stmt( - ::pg_query::ReplicaIdentityStmt* replica_identity_stmt); - ::pg_query::ReplicaIdentityStmt* unsafe_arena_release_replica_identity_stmt(); - - // .pg_query.AlterSystemStmt alter_system_stmt = 157 [json_name = "AlterSystemStmt"]; - bool has_alter_system_stmt() const; - private: - bool _internal_has_alter_system_stmt() const; - public: - void clear_alter_system_stmt(); - const ::pg_query::AlterSystemStmt& alter_system_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterSystemStmt* release_alter_system_stmt(); - ::pg_query::AlterSystemStmt* mutable_alter_system_stmt(); - void set_allocated_alter_system_stmt(::pg_query::AlterSystemStmt* alter_system_stmt); - private: - const ::pg_query::AlterSystemStmt& _internal_alter_system_stmt() const; - ::pg_query::AlterSystemStmt* _internal_mutable_alter_system_stmt(); - public: - void unsafe_arena_set_allocated_alter_system_stmt( - ::pg_query::AlterSystemStmt* alter_system_stmt); - ::pg_query::AlterSystemStmt* unsafe_arena_release_alter_system_stmt(); - - // .pg_query.CreatePolicyStmt create_policy_stmt = 158 [json_name = "CreatePolicyStmt"]; - bool has_create_policy_stmt() const; - private: - bool _internal_has_create_policy_stmt() const; - public: - void clear_create_policy_stmt(); - const ::pg_query::CreatePolicyStmt& create_policy_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreatePolicyStmt* release_create_policy_stmt(); - ::pg_query::CreatePolicyStmt* mutable_create_policy_stmt(); - void set_allocated_create_policy_stmt(::pg_query::CreatePolicyStmt* create_policy_stmt); - private: - const ::pg_query::CreatePolicyStmt& _internal_create_policy_stmt() const; - ::pg_query::CreatePolicyStmt* _internal_mutable_create_policy_stmt(); - public: - void unsafe_arena_set_allocated_create_policy_stmt( - ::pg_query::CreatePolicyStmt* create_policy_stmt); - ::pg_query::CreatePolicyStmt* unsafe_arena_release_create_policy_stmt(); - - // .pg_query.AlterPolicyStmt alter_policy_stmt = 159 [json_name = "AlterPolicyStmt"]; - bool has_alter_policy_stmt() const; - private: - bool _internal_has_alter_policy_stmt() const; - public: - void clear_alter_policy_stmt(); - const ::pg_query::AlterPolicyStmt& alter_policy_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterPolicyStmt* release_alter_policy_stmt(); - ::pg_query::AlterPolicyStmt* mutable_alter_policy_stmt(); - void set_allocated_alter_policy_stmt(::pg_query::AlterPolicyStmt* alter_policy_stmt); - private: - const ::pg_query::AlterPolicyStmt& _internal_alter_policy_stmt() const; - ::pg_query::AlterPolicyStmt* _internal_mutable_alter_policy_stmt(); - public: - void unsafe_arena_set_allocated_alter_policy_stmt( - ::pg_query::AlterPolicyStmt* alter_policy_stmt); - ::pg_query::AlterPolicyStmt* unsafe_arena_release_alter_policy_stmt(); - - // .pg_query.CreateTransformStmt create_transform_stmt = 160 [json_name = "CreateTransformStmt"]; - bool has_create_transform_stmt() const; - private: - bool _internal_has_create_transform_stmt() const; - public: - void clear_create_transform_stmt(); - const ::pg_query::CreateTransformStmt& create_transform_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateTransformStmt* release_create_transform_stmt(); - ::pg_query::CreateTransformStmt* mutable_create_transform_stmt(); - void set_allocated_create_transform_stmt(::pg_query::CreateTransformStmt* create_transform_stmt); - private: - const ::pg_query::CreateTransformStmt& _internal_create_transform_stmt() const; - ::pg_query::CreateTransformStmt* _internal_mutable_create_transform_stmt(); - public: - void unsafe_arena_set_allocated_create_transform_stmt( - ::pg_query::CreateTransformStmt* create_transform_stmt); - ::pg_query::CreateTransformStmt* unsafe_arena_release_create_transform_stmt(); - - // .pg_query.CreateAmStmt create_am_stmt = 161 [json_name = "CreateAmStmt"]; - bool has_create_am_stmt() const; - private: - bool _internal_has_create_am_stmt() const; - public: - void clear_create_am_stmt(); - const ::pg_query::CreateAmStmt& create_am_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateAmStmt* release_create_am_stmt(); - ::pg_query::CreateAmStmt* mutable_create_am_stmt(); - void set_allocated_create_am_stmt(::pg_query::CreateAmStmt* create_am_stmt); - private: - const ::pg_query::CreateAmStmt& _internal_create_am_stmt() const; - ::pg_query::CreateAmStmt* _internal_mutable_create_am_stmt(); - public: - void unsafe_arena_set_allocated_create_am_stmt( - ::pg_query::CreateAmStmt* create_am_stmt); - ::pg_query::CreateAmStmt* unsafe_arena_release_create_am_stmt(); - - // .pg_query.CreatePublicationStmt create_publication_stmt = 162 [json_name = "CreatePublicationStmt"]; - bool has_create_publication_stmt() const; - private: - bool _internal_has_create_publication_stmt() const; - public: - void clear_create_publication_stmt(); - const ::pg_query::CreatePublicationStmt& create_publication_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreatePublicationStmt* release_create_publication_stmt(); - ::pg_query::CreatePublicationStmt* mutable_create_publication_stmt(); - void set_allocated_create_publication_stmt(::pg_query::CreatePublicationStmt* create_publication_stmt); - private: - const ::pg_query::CreatePublicationStmt& _internal_create_publication_stmt() const; - ::pg_query::CreatePublicationStmt* _internal_mutable_create_publication_stmt(); - public: - void unsafe_arena_set_allocated_create_publication_stmt( - ::pg_query::CreatePublicationStmt* create_publication_stmt); - ::pg_query::CreatePublicationStmt* unsafe_arena_release_create_publication_stmt(); - - // .pg_query.AlterPublicationStmt alter_publication_stmt = 163 [json_name = "AlterPublicationStmt"]; - bool has_alter_publication_stmt() const; - private: - bool _internal_has_alter_publication_stmt() const; - public: - void clear_alter_publication_stmt(); - const ::pg_query::AlterPublicationStmt& alter_publication_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterPublicationStmt* release_alter_publication_stmt(); - ::pg_query::AlterPublicationStmt* mutable_alter_publication_stmt(); - void set_allocated_alter_publication_stmt(::pg_query::AlterPublicationStmt* alter_publication_stmt); - private: - const ::pg_query::AlterPublicationStmt& _internal_alter_publication_stmt() const; - ::pg_query::AlterPublicationStmt* _internal_mutable_alter_publication_stmt(); - public: - void unsafe_arena_set_allocated_alter_publication_stmt( - ::pg_query::AlterPublicationStmt* alter_publication_stmt); - ::pg_query::AlterPublicationStmt* unsafe_arena_release_alter_publication_stmt(); - - // .pg_query.CreateSubscriptionStmt create_subscription_stmt = 164 [json_name = "CreateSubscriptionStmt"]; - bool has_create_subscription_stmt() const; - private: - bool _internal_has_create_subscription_stmt() const; - public: - void clear_create_subscription_stmt(); - const ::pg_query::CreateSubscriptionStmt& create_subscription_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateSubscriptionStmt* release_create_subscription_stmt(); - ::pg_query::CreateSubscriptionStmt* mutable_create_subscription_stmt(); - void set_allocated_create_subscription_stmt(::pg_query::CreateSubscriptionStmt* create_subscription_stmt); - private: - const ::pg_query::CreateSubscriptionStmt& _internal_create_subscription_stmt() const; - ::pg_query::CreateSubscriptionStmt* _internal_mutable_create_subscription_stmt(); - public: - void unsafe_arena_set_allocated_create_subscription_stmt( - ::pg_query::CreateSubscriptionStmt* create_subscription_stmt); - ::pg_query::CreateSubscriptionStmt* unsafe_arena_release_create_subscription_stmt(); - - // .pg_query.AlterSubscriptionStmt alter_subscription_stmt = 165 [json_name = "AlterSubscriptionStmt"]; - bool has_alter_subscription_stmt() const; - private: - bool _internal_has_alter_subscription_stmt() const; - public: - void clear_alter_subscription_stmt(); - const ::pg_query::AlterSubscriptionStmt& alter_subscription_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterSubscriptionStmt* release_alter_subscription_stmt(); - ::pg_query::AlterSubscriptionStmt* mutable_alter_subscription_stmt(); - void set_allocated_alter_subscription_stmt(::pg_query::AlterSubscriptionStmt* alter_subscription_stmt); - private: - const ::pg_query::AlterSubscriptionStmt& _internal_alter_subscription_stmt() const; - ::pg_query::AlterSubscriptionStmt* _internal_mutable_alter_subscription_stmt(); - public: - void unsafe_arena_set_allocated_alter_subscription_stmt( - ::pg_query::AlterSubscriptionStmt* alter_subscription_stmt); - ::pg_query::AlterSubscriptionStmt* unsafe_arena_release_alter_subscription_stmt(); - - // .pg_query.DropSubscriptionStmt drop_subscription_stmt = 166 [json_name = "DropSubscriptionStmt"]; - bool has_drop_subscription_stmt() const; - private: - bool _internal_has_drop_subscription_stmt() const; - public: - void clear_drop_subscription_stmt(); - const ::pg_query::DropSubscriptionStmt& drop_subscription_stmt() const; - PROTOBUF_NODISCARD ::pg_query::DropSubscriptionStmt* release_drop_subscription_stmt(); - ::pg_query::DropSubscriptionStmt* mutable_drop_subscription_stmt(); - void set_allocated_drop_subscription_stmt(::pg_query::DropSubscriptionStmt* drop_subscription_stmt); - private: - const ::pg_query::DropSubscriptionStmt& _internal_drop_subscription_stmt() const; - ::pg_query::DropSubscriptionStmt* _internal_mutable_drop_subscription_stmt(); - public: - void unsafe_arena_set_allocated_drop_subscription_stmt( - ::pg_query::DropSubscriptionStmt* drop_subscription_stmt); - ::pg_query::DropSubscriptionStmt* unsafe_arena_release_drop_subscription_stmt(); - - // .pg_query.CreateStatsStmt create_stats_stmt = 167 [json_name = "CreateStatsStmt"]; - bool has_create_stats_stmt() const; - private: - bool _internal_has_create_stats_stmt() const; - public: - void clear_create_stats_stmt(); - const ::pg_query::CreateStatsStmt& create_stats_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateStatsStmt* release_create_stats_stmt(); - ::pg_query::CreateStatsStmt* mutable_create_stats_stmt(); - void set_allocated_create_stats_stmt(::pg_query::CreateStatsStmt* create_stats_stmt); - private: - const ::pg_query::CreateStatsStmt& _internal_create_stats_stmt() const; - ::pg_query::CreateStatsStmt* _internal_mutable_create_stats_stmt(); - public: - void unsafe_arena_set_allocated_create_stats_stmt( - ::pg_query::CreateStatsStmt* create_stats_stmt); - ::pg_query::CreateStatsStmt* unsafe_arena_release_create_stats_stmt(); - - // .pg_query.AlterCollationStmt alter_collation_stmt = 168 [json_name = "AlterCollationStmt"]; - bool has_alter_collation_stmt() const; - private: - bool _internal_has_alter_collation_stmt() const; - public: - void clear_alter_collation_stmt(); - const ::pg_query::AlterCollationStmt& alter_collation_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterCollationStmt* release_alter_collation_stmt(); - ::pg_query::AlterCollationStmt* mutable_alter_collation_stmt(); - void set_allocated_alter_collation_stmt(::pg_query::AlterCollationStmt* alter_collation_stmt); - private: - const ::pg_query::AlterCollationStmt& _internal_alter_collation_stmt() const; - ::pg_query::AlterCollationStmt* _internal_mutable_alter_collation_stmt(); - public: - void unsafe_arena_set_allocated_alter_collation_stmt( - ::pg_query::AlterCollationStmt* alter_collation_stmt); - ::pg_query::AlterCollationStmt* unsafe_arena_release_alter_collation_stmt(); - - // .pg_query.CallStmt call_stmt = 169 [json_name = "CallStmt"]; - bool has_call_stmt() const; - private: - bool _internal_has_call_stmt() const; - public: - void clear_call_stmt(); - const ::pg_query::CallStmt& call_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CallStmt* release_call_stmt(); - ::pg_query::CallStmt* mutable_call_stmt(); - void set_allocated_call_stmt(::pg_query::CallStmt* call_stmt); - private: - const ::pg_query::CallStmt& _internal_call_stmt() const; - ::pg_query::CallStmt* _internal_mutable_call_stmt(); - public: - void unsafe_arena_set_allocated_call_stmt( - ::pg_query::CallStmt* call_stmt); - ::pg_query::CallStmt* unsafe_arena_release_call_stmt(); - - // .pg_query.AlterStatsStmt alter_stats_stmt = 170 [json_name = "AlterStatsStmt"]; - bool has_alter_stats_stmt() const; - private: - bool _internal_has_alter_stats_stmt() const; - public: - void clear_alter_stats_stmt(); - const ::pg_query::AlterStatsStmt& alter_stats_stmt() const; - PROTOBUF_NODISCARD ::pg_query::AlterStatsStmt* release_alter_stats_stmt(); - ::pg_query::AlterStatsStmt* mutable_alter_stats_stmt(); - void set_allocated_alter_stats_stmt(::pg_query::AlterStatsStmt* alter_stats_stmt); - private: - const ::pg_query::AlterStatsStmt& _internal_alter_stats_stmt() const; - ::pg_query::AlterStatsStmt* _internal_mutable_alter_stats_stmt(); - public: - void unsafe_arena_set_allocated_alter_stats_stmt( - ::pg_query::AlterStatsStmt* alter_stats_stmt); - ::pg_query::AlterStatsStmt* unsafe_arena_release_alter_stats_stmt(); - - // .pg_query.A_Expr a_expr = 171 [json_name = "A_Expr"]; - bool has_a_expr() const; - private: - bool _internal_has_a_expr() const; - public: - void clear_a_expr(); - const ::pg_query::A_Expr& a_expr() const; - PROTOBUF_NODISCARD ::pg_query::A_Expr* release_a_expr(); - ::pg_query::A_Expr* mutable_a_expr(); - void set_allocated_a_expr(::pg_query::A_Expr* a_expr); - private: - const ::pg_query::A_Expr& _internal_a_expr() const; - ::pg_query::A_Expr* _internal_mutable_a_expr(); - public: - void unsafe_arena_set_allocated_a_expr( - ::pg_query::A_Expr* a_expr); - ::pg_query::A_Expr* unsafe_arena_release_a_expr(); - - // .pg_query.ColumnRef column_ref = 172 [json_name = "ColumnRef"]; - bool has_column_ref() const; - private: - bool _internal_has_column_ref() const; - public: - void clear_column_ref(); - const ::pg_query::ColumnRef& column_ref() const; - PROTOBUF_NODISCARD ::pg_query::ColumnRef* release_column_ref(); - ::pg_query::ColumnRef* mutable_column_ref(); - void set_allocated_column_ref(::pg_query::ColumnRef* column_ref); - private: - const ::pg_query::ColumnRef& _internal_column_ref() const; - ::pg_query::ColumnRef* _internal_mutable_column_ref(); - public: - void unsafe_arena_set_allocated_column_ref( - ::pg_query::ColumnRef* column_ref); - ::pg_query::ColumnRef* unsafe_arena_release_column_ref(); - - // .pg_query.ParamRef param_ref = 173 [json_name = "ParamRef"]; - bool has_param_ref() const; - private: - bool _internal_has_param_ref() const; - public: - void clear_param_ref(); - const ::pg_query::ParamRef& param_ref() const; - PROTOBUF_NODISCARD ::pg_query::ParamRef* release_param_ref(); - ::pg_query::ParamRef* mutable_param_ref(); - void set_allocated_param_ref(::pg_query::ParamRef* param_ref); - private: - const ::pg_query::ParamRef& _internal_param_ref() const; - ::pg_query::ParamRef* _internal_mutable_param_ref(); - public: - void unsafe_arena_set_allocated_param_ref( - ::pg_query::ParamRef* param_ref); - ::pg_query::ParamRef* unsafe_arena_release_param_ref(); - - // .pg_query.FuncCall func_call = 174 [json_name = "FuncCall"]; - bool has_func_call() const; - private: - bool _internal_has_func_call() const; - public: - void clear_func_call(); - const ::pg_query::FuncCall& func_call() const; - PROTOBUF_NODISCARD ::pg_query::FuncCall* release_func_call(); - ::pg_query::FuncCall* mutable_func_call(); - void set_allocated_func_call(::pg_query::FuncCall* func_call); - private: - const ::pg_query::FuncCall& _internal_func_call() const; - ::pg_query::FuncCall* _internal_mutable_func_call(); - public: - void unsafe_arena_set_allocated_func_call( - ::pg_query::FuncCall* func_call); - ::pg_query::FuncCall* unsafe_arena_release_func_call(); - - // .pg_query.A_Star a_star = 175 [json_name = "A_Star"]; - bool has_a_star() const; - private: - bool _internal_has_a_star() const; - public: - void clear_a_star(); - const ::pg_query::A_Star& a_star() const; - PROTOBUF_NODISCARD ::pg_query::A_Star* release_a_star(); - ::pg_query::A_Star* mutable_a_star(); - void set_allocated_a_star(::pg_query::A_Star* a_star); - private: - const ::pg_query::A_Star& _internal_a_star() const; - ::pg_query::A_Star* _internal_mutable_a_star(); - public: - void unsafe_arena_set_allocated_a_star( - ::pg_query::A_Star* a_star); - ::pg_query::A_Star* unsafe_arena_release_a_star(); - - // .pg_query.A_Indices a_indices = 176 [json_name = "A_Indices"]; - bool has_a_indices() const; - private: - bool _internal_has_a_indices() const; - public: - void clear_a_indices(); - const ::pg_query::A_Indices& a_indices() const; - PROTOBUF_NODISCARD ::pg_query::A_Indices* release_a_indices(); - ::pg_query::A_Indices* mutable_a_indices(); - void set_allocated_a_indices(::pg_query::A_Indices* a_indices); - private: - const ::pg_query::A_Indices& _internal_a_indices() const; - ::pg_query::A_Indices* _internal_mutable_a_indices(); - public: - void unsafe_arena_set_allocated_a_indices( - ::pg_query::A_Indices* a_indices); - ::pg_query::A_Indices* unsafe_arena_release_a_indices(); - - // .pg_query.A_Indirection a_indirection = 177 [json_name = "A_Indirection"]; - bool has_a_indirection() const; - private: - bool _internal_has_a_indirection() const; - public: - void clear_a_indirection(); - const ::pg_query::A_Indirection& a_indirection() const; - PROTOBUF_NODISCARD ::pg_query::A_Indirection* release_a_indirection(); - ::pg_query::A_Indirection* mutable_a_indirection(); - void set_allocated_a_indirection(::pg_query::A_Indirection* a_indirection); - private: - const ::pg_query::A_Indirection& _internal_a_indirection() const; - ::pg_query::A_Indirection* _internal_mutable_a_indirection(); - public: - void unsafe_arena_set_allocated_a_indirection( - ::pg_query::A_Indirection* a_indirection); - ::pg_query::A_Indirection* unsafe_arena_release_a_indirection(); - - // .pg_query.A_ArrayExpr a_array_expr = 178 [json_name = "A_ArrayExpr"]; - bool has_a_array_expr() const; - private: - bool _internal_has_a_array_expr() const; - public: - void clear_a_array_expr(); - const ::pg_query::A_ArrayExpr& a_array_expr() const; - PROTOBUF_NODISCARD ::pg_query::A_ArrayExpr* release_a_array_expr(); - ::pg_query::A_ArrayExpr* mutable_a_array_expr(); - void set_allocated_a_array_expr(::pg_query::A_ArrayExpr* a_array_expr); - private: - const ::pg_query::A_ArrayExpr& _internal_a_array_expr() const; - ::pg_query::A_ArrayExpr* _internal_mutable_a_array_expr(); - public: - void unsafe_arena_set_allocated_a_array_expr( - ::pg_query::A_ArrayExpr* a_array_expr); - ::pg_query::A_ArrayExpr* unsafe_arena_release_a_array_expr(); - - // .pg_query.ResTarget res_target = 179 [json_name = "ResTarget"]; - bool has_res_target() const; - private: - bool _internal_has_res_target() const; - public: - void clear_res_target(); - const ::pg_query::ResTarget& res_target() const; - PROTOBUF_NODISCARD ::pg_query::ResTarget* release_res_target(); - ::pg_query::ResTarget* mutable_res_target(); - void set_allocated_res_target(::pg_query::ResTarget* res_target); - private: - const ::pg_query::ResTarget& _internal_res_target() const; - ::pg_query::ResTarget* _internal_mutable_res_target(); - public: - void unsafe_arena_set_allocated_res_target( - ::pg_query::ResTarget* res_target); - ::pg_query::ResTarget* unsafe_arena_release_res_target(); - - // .pg_query.MultiAssignRef multi_assign_ref = 180 [json_name = "MultiAssignRef"]; - bool has_multi_assign_ref() const; - private: - bool _internal_has_multi_assign_ref() const; - public: - void clear_multi_assign_ref(); - const ::pg_query::MultiAssignRef& multi_assign_ref() const; - PROTOBUF_NODISCARD ::pg_query::MultiAssignRef* release_multi_assign_ref(); - ::pg_query::MultiAssignRef* mutable_multi_assign_ref(); - void set_allocated_multi_assign_ref(::pg_query::MultiAssignRef* multi_assign_ref); - private: - const ::pg_query::MultiAssignRef& _internal_multi_assign_ref() const; - ::pg_query::MultiAssignRef* _internal_mutable_multi_assign_ref(); - public: - void unsafe_arena_set_allocated_multi_assign_ref( - ::pg_query::MultiAssignRef* multi_assign_ref); - ::pg_query::MultiAssignRef* unsafe_arena_release_multi_assign_ref(); - - // .pg_query.TypeCast type_cast = 181 [json_name = "TypeCast"]; - bool has_type_cast() const; - private: - bool _internal_has_type_cast() const; - public: - void clear_type_cast(); - const ::pg_query::TypeCast& type_cast() const; - PROTOBUF_NODISCARD ::pg_query::TypeCast* release_type_cast(); - ::pg_query::TypeCast* mutable_type_cast(); - void set_allocated_type_cast(::pg_query::TypeCast* type_cast); - private: - const ::pg_query::TypeCast& _internal_type_cast() const; - ::pg_query::TypeCast* _internal_mutable_type_cast(); - public: - void unsafe_arena_set_allocated_type_cast( - ::pg_query::TypeCast* type_cast); - ::pg_query::TypeCast* unsafe_arena_release_type_cast(); - - // .pg_query.CollateClause collate_clause = 182 [json_name = "CollateClause"]; - bool has_collate_clause() const; - private: - bool _internal_has_collate_clause() const; - public: - void clear_collate_clause(); - const ::pg_query::CollateClause& collate_clause() const; - PROTOBUF_NODISCARD ::pg_query::CollateClause* release_collate_clause(); - ::pg_query::CollateClause* mutable_collate_clause(); - void set_allocated_collate_clause(::pg_query::CollateClause* collate_clause); - private: - const ::pg_query::CollateClause& _internal_collate_clause() const; - ::pg_query::CollateClause* _internal_mutable_collate_clause(); - public: - void unsafe_arena_set_allocated_collate_clause( - ::pg_query::CollateClause* collate_clause); - ::pg_query::CollateClause* unsafe_arena_release_collate_clause(); - - // .pg_query.SortBy sort_by = 183 [json_name = "SortBy"]; - bool has_sort_by() const; - private: - bool _internal_has_sort_by() const; - public: - void clear_sort_by(); - const ::pg_query::SortBy& sort_by() const; - PROTOBUF_NODISCARD ::pg_query::SortBy* release_sort_by(); - ::pg_query::SortBy* mutable_sort_by(); - void set_allocated_sort_by(::pg_query::SortBy* sort_by); - private: - const ::pg_query::SortBy& _internal_sort_by() const; - ::pg_query::SortBy* _internal_mutable_sort_by(); - public: - void unsafe_arena_set_allocated_sort_by( - ::pg_query::SortBy* sort_by); - ::pg_query::SortBy* unsafe_arena_release_sort_by(); - - // .pg_query.WindowDef window_def = 184 [json_name = "WindowDef"]; - bool has_window_def() const; - private: - bool _internal_has_window_def() const; - public: - void clear_window_def(); - const ::pg_query::WindowDef& window_def() const; - PROTOBUF_NODISCARD ::pg_query::WindowDef* release_window_def(); - ::pg_query::WindowDef* mutable_window_def(); - void set_allocated_window_def(::pg_query::WindowDef* window_def); - private: - const ::pg_query::WindowDef& _internal_window_def() const; - ::pg_query::WindowDef* _internal_mutable_window_def(); - public: - void unsafe_arena_set_allocated_window_def( - ::pg_query::WindowDef* window_def); - ::pg_query::WindowDef* unsafe_arena_release_window_def(); - - // .pg_query.RangeSubselect range_subselect = 185 [json_name = "RangeSubselect"]; - bool has_range_subselect() const; - private: - bool _internal_has_range_subselect() const; - public: - void clear_range_subselect(); - const ::pg_query::RangeSubselect& range_subselect() const; - PROTOBUF_NODISCARD ::pg_query::RangeSubselect* release_range_subselect(); - ::pg_query::RangeSubselect* mutable_range_subselect(); - void set_allocated_range_subselect(::pg_query::RangeSubselect* range_subselect); - private: - const ::pg_query::RangeSubselect& _internal_range_subselect() const; - ::pg_query::RangeSubselect* _internal_mutable_range_subselect(); - public: - void unsafe_arena_set_allocated_range_subselect( - ::pg_query::RangeSubselect* range_subselect); - ::pg_query::RangeSubselect* unsafe_arena_release_range_subselect(); - - // .pg_query.RangeFunction range_function = 186 [json_name = "RangeFunction"]; - bool has_range_function() const; - private: - bool _internal_has_range_function() const; - public: - void clear_range_function(); - const ::pg_query::RangeFunction& range_function() const; - PROTOBUF_NODISCARD ::pg_query::RangeFunction* release_range_function(); - ::pg_query::RangeFunction* mutable_range_function(); - void set_allocated_range_function(::pg_query::RangeFunction* range_function); - private: - const ::pg_query::RangeFunction& _internal_range_function() const; - ::pg_query::RangeFunction* _internal_mutable_range_function(); - public: - void unsafe_arena_set_allocated_range_function( - ::pg_query::RangeFunction* range_function); - ::pg_query::RangeFunction* unsafe_arena_release_range_function(); - - // .pg_query.RangeTableSample range_table_sample = 187 [json_name = "RangeTableSample"]; - bool has_range_table_sample() const; - private: - bool _internal_has_range_table_sample() const; - public: - void clear_range_table_sample(); - const ::pg_query::RangeTableSample& range_table_sample() const; - PROTOBUF_NODISCARD ::pg_query::RangeTableSample* release_range_table_sample(); - ::pg_query::RangeTableSample* mutable_range_table_sample(); - void set_allocated_range_table_sample(::pg_query::RangeTableSample* range_table_sample); - private: - const ::pg_query::RangeTableSample& _internal_range_table_sample() const; - ::pg_query::RangeTableSample* _internal_mutable_range_table_sample(); - public: - void unsafe_arena_set_allocated_range_table_sample( - ::pg_query::RangeTableSample* range_table_sample); - ::pg_query::RangeTableSample* unsafe_arena_release_range_table_sample(); - - // .pg_query.RangeTableFunc range_table_func = 188 [json_name = "RangeTableFunc"]; - bool has_range_table_func() const; - private: - bool _internal_has_range_table_func() const; - public: - void clear_range_table_func(); - const ::pg_query::RangeTableFunc& range_table_func() const; - PROTOBUF_NODISCARD ::pg_query::RangeTableFunc* release_range_table_func(); - ::pg_query::RangeTableFunc* mutable_range_table_func(); - void set_allocated_range_table_func(::pg_query::RangeTableFunc* range_table_func); - private: - const ::pg_query::RangeTableFunc& _internal_range_table_func() const; - ::pg_query::RangeTableFunc* _internal_mutable_range_table_func(); - public: - void unsafe_arena_set_allocated_range_table_func( - ::pg_query::RangeTableFunc* range_table_func); - ::pg_query::RangeTableFunc* unsafe_arena_release_range_table_func(); - - // .pg_query.RangeTableFuncCol range_table_func_col = 189 [json_name = "RangeTableFuncCol"]; - bool has_range_table_func_col() const; - private: - bool _internal_has_range_table_func_col() const; - public: - void clear_range_table_func_col(); - const ::pg_query::RangeTableFuncCol& range_table_func_col() const; - PROTOBUF_NODISCARD ::pg_query::RangeTableFuncCol* release_range_table_func_col(); - ::pg_query::RangeTableFuncCol* mutable_range_table_func_col(); - void set_allocated_range_table_func_col(::pg_query::RangeTableFuncCol* range_table_func_col); - private: - const ::pg_query::RangeTableFuncCol& _internal_range_table_func_col() const; - ::pg_query::RangeTableFuncCol* _internal_mutable_range_table_func_col(); - public: - void unsafe_arena_set_allocated_range_table_func_col( - ::pg_query::RangeTableFuncCol* range_table_func_col); - ::pg_query::RangeTableFuncCol* unsafe_arena_release_range_table_func_col(); - - // .pg_query.TypeName type_name = 190 [json_name = "TypeName"]; - bool has_type_name() const; - private: - bool _internal_has_type_name() const; - public: - void clear_type_name(); - const ::pg_query::TypeName& type_name() const; - PROTOBUF_NODISCARD ::pg_query::TypeName* release_type_name(); - ::pg_query::TypeName* mutable_type_name(); - void set_allocated_type_name(::pg_query::TypeName* type_name); - private: - const ::pg_query::TypeName& _internal_type_name() const; - ::pg_query::TypeName* _internal_mutable_type_name(); - public: - void unsafe_arena_set_allocated_type_name( - ::pg_query::TypeName* type_name); - ::pg_query::TypeName* unsafe_arena_release_type_name(); - - // .pg_query.ColumnDef column_def = 191 [json_name = "ColumnDef"]; - bool has_column_def() const; - private: - bool _internal_has_column_def() const; - public: - void clear_column_def(); - const ::pg_query::ColumnDef& column_def() const; - PROTOBUF_NODISCARD ::pg_query::ColumnDef* release_column_def(); - ::pg_query::ColumnDef* mutable_column_def(); - void set_allocated_column_def(::pg_query::ColumnDef* column_def); - private: - const ::pg_query::ColumnDef& _internal_column_def() const; - ::pg_query::ColumnDef* _internal_mutable_column_def(); - public: - void unsafe_arena_set_allocated_column_def( - ::pg_query::ColumnDef* column_def); - ::pg_query::ColumnDef* unsafe_arena_release_column_def(); - - // .pg_query.IndexElem index_elem = 192 [json_name = "IndexElem"]; - bool has_index_elem() const; - private: - bool _internal_has_index_elem() const; - public: - void clear_index_elem(); - const ::pg_query::IndexElem& index_elem() const; - PROTOBUF_NODISCARD ::pg_query::IndexElem* release_index_elem(); - ::pg_query::IndexElem* mutable_index_elem(); - void set_allocated_index_elem(::pg_query::IndexElem* index_elem); - private: - const ::pg_query::IndexElem& _internal_index_elem() const; - ::pg_query::IndexElem* _internal_mutable_index_elem(); - public: - void unsafe_arena_set_allocated_index_elem( - ::pg_query::IndexElem* index_elem); - ::pg_query::IndexElem* unsafe_arena_release_index_elem(); - - // .pg_query.StatsElem stats_elem = 193 [json_name = "StatsElem"]; - bool has_stats_elem() const; - private: - bool _internal_has_stats_elem() const; - public: - void clear_stats_elem(); - const ::pg_query::StatsElem& stats_elem() const; - PROTOBUF_NODISCARD ::pg_query::StatsElem* release_stats_elem(); - ::pg_query::StatsElem* mutable_stats_elem(); - void set_allocated_stats_elem(::pg_query::StatsElem* stats_elem); - private: - const ::pg_query::StatsElem& _internal_stats_elem() const; - ::pg_query::StatsElem* _internal_mutable_stats_elem(); - public: - void unsafe_arena_set_allocated_stats_elem( - ::pg_query::StatsElem* stats_elem); - ::pg_query::StatsElem* unsafe_arena_release_stats_elem(); - - // .pg_query.Constraint constraint = 194 [json_name = "Constraint"]; - bool has_constraint() const; - private: - bool _internal_has_constraint() const; - public: - void clear_constraint(); - const ::pg_query::Constraint& constraint() const; - PROTOBUF_NODISCARD ::pg_query::Constraint* release_constraint(); - ::pg_query::Constraint* mutable_constraint(); - void set_allocated_constraint(::pg_query::Constraint* constraint); - private: - const ::pg_query::Constraint& _internal_constraint() const; - ::pg_query::Constraint* _internal_mutable_constraint(); - public: - void unsafe_arena_set_allocated_constraint( - ::pg_query::Constraint* constraint); - ::pg_query::Constraint* unsafe_arena_release_constraint(); - - // .pg_query.DefElem def_elem = 195 [json_name = "DefElem"]; - bool has_def_elem() const; - private: - bool _internal_has_def_elem() const; - public: - void clear_def_elem(); - const ::pg_query::DefElem& def_elem() const; - PROTOBUF_NODISCARD ::pg_query::DefElem* release_def_elem(); - ::pg_query::DefElem* mutable_def_elem(); - void set_allocated_def_elem(::pg_query::DefElem* def_elem); - private: - const ::pg_query::DefElem& _internal_def_elem() const; - ::pg_query::DefElem* _internal_mutable_def_elem(); - public: - void unsafe_arena_set_allocated_def_elem( - ::pg_query::DefElem* def_elem); - ::pg_query::DefElem* unsafe_arena_release_def_elem(); - - // .pg_query.RangeTblEntry range_tbl_entry = 196 [json_name = "RangeTblEntry"]; - bool has_range_tbl_entry() const; - private: - bool _internal_has_range_tbl_entry() const; - public: - void clear_range_tbl_entry(); - const ::pg_query::RangeTblEntry& range_tbl_entry() const; - PROTOBUF_NODISCARD ::pg_query::RangeTblEntry* release_range_tbl_entry(); - ::pg_query::RangeTblEntry* mutable_range_tbl_entry(); - void set_allocated_range_tbl_entry(::pg_query::RangeTblEntry* range_tbl_entry); - private: - const ::pg_query::RangeTblEntry& _internal_range_tbl_entry() const; - ::pg_query::RangeTblEntry* _internal_mutable_range_tbl_entry(); - public: - void unsafe_arena_set_allocated_range_tbl_entry( - ::pg_query::RangeTblEntry* range_tbl_entry); - ::pg_query::RangeTblEntry* unsafe_arena_release_range_tbl_entry(); - - // .pg_query.RangeTblFunction range_tbl_function = 197 [json_name = "RangeTblFunction"]; - bool has_range_tbl_function() const; - private: - bool _internal_has_range_tbl_function() const; - public: - void clear_range_tbl_function(); - const ::pg_query::RangeTblFunction& range_tbl_function() const; - PROTOBUF_NODISCARD ::pg_query::RangeTblFunction* release_range_tbl_function(); - ::pg_query::RangeTblFunction* mutable_range_tbl_function(); - void set_allocated_range_tbl_function(::pg_query::RangeTblFunction* range_tbl_function); - private: - const ::pg_query::RangeTblFunction& _internal_range_tbl_function() const; - ::pg_query::RangeTblFunction* _internal_mutable_range_tbl_function(); - public: - void unsafe_arena_set_allocated_range_tbl_function( - ::pg_query::RangeTblFunction* range_tbl_function); - ::pg_query::RangeTblFunction* unsafe_arena_release_range_tbl_function(); - - // .pg_query.TableSampleClause table_sample_clause = 198 [json_name = "TableSampleClause"]; - bool has_table_sample_clause() const; - private: - bool _internal_has_table_sample_clause() const; - public: - void clear_table_sample_clause(); - const ::pg_query::TableSampleClause& table_sample_clause() const; - PROTOBUF_NODISCARD ::pg_query::TableSampleClause* release_table_sample_clause(); - ::pg_query::TableSampleClause* mutable_table_sample_clause(); - void set_allocated_table_sample_clause(::pg_query::TableSampleClause* table_sample_clause); - private: - const ::pg_query::TableSampleClause& _internal_table_sample_clause() const; - ::pg_query::TableSampleClause* _internal_mutable_table_sample_clause(); - public: - void unsafe_arena_set_allocated_table_sample_clause( - ::pg_query::TableSampleClause* table_sample_clause); - ::pg_query::TableSampleClause* unsafe_arena_release_table_sample_clause(); - - // .pg_query.WithCheckOption with_check_option = 199 [json_name = "WithCheckOption"]; - bool has_with_check_option() const; - private: - bool _internal_has_with_check_option() const; - public: - void clear_with_check_option(); - const ::pg_query::WithCheckOption& with_check_option() const; - PROTOBUF_NODISCARD ::pg_query::WithCheckOption* release_with_check_option(); - ::pg_query::WithCheckOption* mutable_with_check_option(); - void set_allocated_with_check_option(::pg_query::WithCheckOption* with_check_option); - private: - const ::pg_query::WithCheckOption& _internal_with_check_option() const; - ::pg_query::WithCheckOption* _internal_mutable_with_check_option(); - public: - void unsafe_arena_set_allocated_with_check_option( - ::pg_query::WithCheckOption* with_check_option); - ::pg_query::WithCheckOption* unsafe_arena_release_with_check_option(); - - // .pg_query.SortGroupClause sort_group_clause = 200 [json_name = "SortGroupClause"]; - bool has_sort_group_clause() const; - private: - bool _internal_has_sort_group_clause() const; - public: - void clear_sort_group_clause(); - const ::pg_query::SortGroupClause& sort_group_clause() const; - PROTOBUF_NODISCARD ::pg_query::SortGroupClause* release_sort_group_clause(); - ::pg_query::SortGroupClause* mutable_sort_group_clause(); - void set_allocated_sort_group_clause(::pg_query::SortGroupClause* sort_group_clause); - private: - const ::pg_query::SortGroupClause& _internal_sort_group_clause() const; - ::pg_query::SortGroupClause* _internal_mutable_sort_group_clause(); - public: - void unsafe_arena_set_allocated_sort_group_clause( - ::pg_query::SortGroupClause* sort_group_clause); - ::pg_query::SortGroupClause* unsafe_arena_release_sort_group_clause(); - - // .pg_query.GroupingSet grouping_set = 201 [json_name = "GroupingSet"]; - bool has_grouping_set() const; - private: - bool _internal_has_grouping_set() const; - public: - void clear_grouping_set(); - const ::pg_query::GroupingSet& grouping_set() const; - PROTOBUF_NODISCARD ::pg_query::GroupingSet* release_grouping_set(); - ::pg_query::GroupingSet* mutable_grouping_set(); - void set_allocated_grouping_set(::pg_query::GroupingSet* grouping_set); - private: - const ::pg_query::GroupingSet& _internal_grouping_set() const; - ::pg_query::GroupingSet* _internal_mutable_grouping_set(); - public: - void unsafe_arena_set_allocated_grouping_set( - ::pg_query::GroupingSet* grouping_set); - ::pg_query::GroupingSet* unsafe_arena_release_grouping_set(); - - // .pg_query.WindowClause window_clause = 202 [json_name = "WindowClause"]; - bool has_window_clause() const; - private: - bool _internal_has_window_clause() const; - public: - void clear_window_clause(); - const ::pg_query::WindowClause& window_clause() const; - PROTOBUF_NODISCARD ::pg_query::WindowClause* release_window_clause(); - ::pg_query::WindowClause* mutable_window_clause(); - void set_allocated_window_clause(::pg_query::WindowClause* window_clause); - private: - const ::pg_query::WindowClause& _internal_window_clause() const; - ::pg_query::WindowClause* _internal_mutable_window_clause(); - public: - void unsafe_arena_set_allocated_window_clause( - ::pg_query::WindowClause* window_clause); - ::pg_query::WindowClause* unsafe_arena_release_window_clause(); - - // .pg_query.ObjectWithArgs object_with_args = 203 [json_name = "ObjectWithArgs"]; - bool has_object_with_args() const; - private: - bool _internal_has_object_with_args() const; - public: - void clear_object_with_args(); - const ::pg_query::ObjectWithArgs& object_with_args() const; - PROTOBUF_NODISCARD ::pg_query::ObjectWithArgs* release_object_with_args(); - ::pg_query::ObjectWithArgs* mutable_object_with_args(); - void set_allocated_object_with_args(::pg_query::ObjectWithArgs* object_with_args); - private: - const ::pg_query::ObjectWithArgs& _internal_object_with_args() const; - ::pg_query::ObjectWithArgs* _internal_mutable_object_with_args(); - public: - void unsafe_arena_set_allocated_object_with_args( - ::pg_query::ObjectWithArgs* object_with_args); - ::pg_query::ObjectWithArgs* unsafe_arena_release_object_with_args(); - - // .pg_query.AccessPriv access_priv = 204 [json_name = "AccessPriv"]; - bool has_access_priv() const; - private: - bool _internal_has_access_priv() const; - public: - void clear_access_priv(); - const ::pg_query::AccessPriv& access_priv() const; - PROTOBUF_NODISCARD ::pg_query::AccessPriv* release_access_priv(); - ::pg_query::AccessPriv* mutable_access_priv(); - void set_allocated_access_priv(::pg_query::AccessPriv* access_priv); - private: - const ::pg_query::AccessPriv& _internal_access_priv() const; - ::pg_query::AccessPriv* _internal_mutable_access_priv(); - public: - void unsafe_arena_set_allocated_access_priv( - ::pg_query::AccessPriv* access_priv); - ::pg_query::AccessPriv* unsafe_arena_release_access_priv(); - - // .pg_query.CreateOpClassItem create_op_class_item = 205 [json_name = "CreateOpClassItem"]; - bool has_create_op_class_item() const; - private: - bool _internal_has_create_op_class_item() const; - public: - void clear_create_op_class_item(); - const ::pg_query::CreateOpClassItem& create_op_class_item() const; - PROTOBUF_NODISCARD ::pg_query::CreateOpClassItem* release_create_op_class_item(); - ::pg_query::CreateOpClassItem* mutable_create_op_class_item(); - void set_allocated_create_op_class_item(::pg_query::CreateOpClassItem* create_op_class_item); - private: - const ::pg_query::CreateOpClassItem& _internal_create_op_class_item() const; - ::pg_query::CreateOpClassItem* _internal_mutable_create_op_class_item(); - public: - void unsafe_arena_set_allocated_create_op_class_item( - ::pg_query::CreateOpClassItem* create_op_class_item); - ::pg_query::CreateOpClassItem* unsafe_arena_release_create_op_class_item(); - - // .pg_query.TableLikeClause table_like_clause = 206 [json_name = "TableLikeClause"]; - bool has_table_like_clause() const; - private: - bool _internal_has_table_like_clause() const; - public: - void clear_table_like_clause(); - const ::pg_query::TableLikeClause& table_like_clause() const; - PROTOBUF_NODISCARD ::pg_query::TableLikeClause* release_table_like_clause(); - ::pg_query::TableLikeClause* mutable_table_like_clause(); - void set_allocated_table_like_clause(::pg_query::TableLikeClause* table_like_clause); - private: - const ::pg_query::TableLikeClause& _internal_table_like_clause() const; - ::pg_query::TableLikeClause* _internal_mutable_table_like_clause(); - public: - void unsafe_arena_set_allocated_table_like_clause( - ::pg_query::TableLikeClause* table_like_clause); - ::pg_query::TableLikeClause* unsafe_arena_release_table_like_clause(); - - // .pg_query.FunctionParameter function_parameter = 207 [json_name = "FunctionParameter"]; - bool has_function_parameter() const; - private: - bool _internal_has_function_parameter() const; - public: - void clear_function_parameter(); - const ::pg_query::FunctionParameter& function_parameter() const; - PROTOBUF_NODISCARD ::pg_query::FunctionParameter* release_function_parameter(); - ::pg_query::FunctionParameter* mutable_function_parameter(); - void set_allocated_function_parameter(::pg_query::FunctionParameter* function_parameter); - private: - const ::pg_query::FunctionParameter& _internal_function_parameter() const; - ::pg_query::FunctionParameter* _internal_mutable_function_parameter(); - public: - void unsafe_arena_set_allocated_function_parameter( - ::pg_query::FunctionParameter* function_parameter); - ::pg_query::FunctionParameter* unsafe_arena_release_function_parameter(); - - // .pg_query.LockingClause locking_clause = 208 [json_name = "LockingClause"]; - bool has_locking_clause() const; - private: - bool _internal_has_locking_clause() const; - public: - void clear_locking_clause(); - const ::pg_query::LockingClause& locking_clause() const; - PROTOBUF_NODISCARD ::pg_query::LockingClause* release_locking_clause(); - ::pg_query::LockingClause* mutable_locking_clause(); - void set_allocated_locking_clause(::pg_query::LockingClause* locking_clause); - private: - const ::pg_query::LockingClause& _internal_locking_clause() const; - ::pg_query::LockingClause* _internal_mutable_locking_clause(); - public: - void unsafe_arena_set_allocated_locking_clause( - ::pg_query::LockingClause* locking_clause); - ::pg_query::LockingClause* unsafe_arena_release_locking_clause(); - - // .pg_query.RowMarkClause row_mark_clause = 209 [json_name = "RowMarkClause"]; - bool has_row_mark_clause() const; - private: - bool _internal_has_row_mark_clause() const; - public: - void clear_row_mark_clause(); - const ::pg_query::RowMarkClause& row_mark_clause() const; - PROTOBUF_NODISCARD ::pg_query::RowMarkClause* release_row_mark_clause(); - ::pg_query::RowMarkClause* mutable_row_mark_clause(); - void set_allocated_row_mark_clause(::pg_query::RowMarkClause* row_mark_clause); - private: - const ::pg_query::RowMarkClause& _internal_row_mark_clause() const; - ::pg_query::RowMarkClause* _internal_mutable_row_mark_clause(); - public: - void unsafe_arena_set_allocated_row_mark_clause( - ::pg_query::RowMarkClause* row_mark_clause); - ::pg_query::RowMarkClause* unsafe_arena_release_row_mark_clause(); - - // .pg_query.XmlSerialize xml_serialize = 210 [json_name = "XmlSerialize"]; - bool has_xml_serialize() const; - private: - bool _internal_has_xml_serialize() const; - public: - void clear_xml_serialize(); - const ::pg_query::XmlSerialize& xml_serialize() const; - PROTOBUF_NODISCARD ::pg_query::XmlSerialize* release_xml_serialize(); - ::pg_query::XmlSerialize* mutable_xml_serialize(); - void set_allocated_xml_serialize(::pg_query::XmlSerialize* xml_serialize); - private: - const ::pg_query::XmlSerialize& _internal_xml_serialize() const; - ::pg_query::XmlSerialize* _internal_mutable_xml_serialize(); - public: - void unsafe_arena_set_allocated_xml_serialize( - ::pg_query::XmlSerialize* xml_serialize); - ::pg_query::XmlSerialize* unsafe_arena_release_xml_serialize(); - - // .pg_query.WithClause with_clause = 211 [json_name = "WithClause"]; - bool has_with_clause() const; - private: - bool _internal_has_with_clause() const; - public: - void clear_with_clause(); - const ::pg_query::WithClause& with_clause() const; - PROTOBUF_NODISCARD ::pg_query::WithClause* release_with_clause(); - ::pg_query::WithClause* mutable_with_clause(); - void set_allocated_with_clause(::pg_query::WithClause* with_clause); - private: - const ::pg_query::WithClause& _internal_with_clause() const; - ::pg_query::WithClause* _internal_mutable_with_clause(); - public: - void unsafe_arena_set_allocated_with_clause( - ::pg_query::WithClause* with_clause); - ::pg_query::WithClause* unsafe_arena_release_with_clause(); - - // .pg_query.InferClause infer_clause = 212 [json_name = "InferClause"]; - bool has_infer_clause() const; - private: - bool _internal_has_infer_clause() const; - public: - void clear_infer_clause(); - const ::pg_query::InferClause& infer_clause() const; - PROTOBUF_NODISCARD ::pg_query::InferClause* release_infer_clause(); - ::pg_query::InferClause* mutable_infer_clause(); - void set_allocated_infer_clause(::pg_query::InferClause* infer_clause); - private: - const ::pg_query::InferClause& _internal_infer_clause() const; - ::pg_query::InferClause* _internal_mutable_infer_clause(); - public: - void unsafe_arena_set_allocated_infer_clause( - ::pg_query::InferClause* infer_clause); - ::pg_query::InferClause* unsafe_arena_release_infer_clause(); - - // .pg_query.OnConflictClause on_conflict_clause = 213 [json_name = "OnConflictClause"]; - bool has_on_conflict_clause() const; - private: - bool _internal_has_on_conflict_clause() const; - public: - void clear_on_conflict_clause(); - const ::pg_query::OnConflictClause& on_conflict_clause() const; - PROTOBUF_NODISCARD ::pg_query::OnConflictClause* release_on_conflict_clause(); - ::pg_query::OnConflictClause* mutable_on_conflict_clause(); - void set_allocated_on_conflict_clause(::pg_query::OnConflictClause* on_conflict_clause); - private: - const ::pg_query::OnConflictClause& _internal_on_conflict_clause() const; - ::pg_query::OnConflictClause* _internal_mutable_on_conflict_clause(); - public: - void unsafe_arena_set_allocated_on_conflict_clause( - ::pg_query::OnConflictClause* on_conflict_clause); - ::pg_query::OnConflictClause* unsafe_arena_release_on_conflict_clause(); - - // .pg_query.CTESearchClause ctesearch_clause = 214 [json_name = "CTESearchClause"]; - bool has_ctesearch_clause() const; - private: - bool _internal_has_ctesearch_clause() const; - public: - void clear_ctesearch_clause(); - const ::pg_query::CTESearchClause& ctesearch_clause() const; - PROTOBUF_NODISCARD ::pg_query::CTESearchClause* release_ctesearch_clause(); - ::pg_query::CTESearchClause* mutable_ctesearch_clause(); - void set_allocated_ctesearch_clause(::pg_query::CTESearchClause* ctesearch_clause); - private: - const ::pg_query::CTESearchClause& _internal_ctesearch_clause() const; - ::pg_query::CTESearchClause* _internal_mutable_ctesearch_clause(); - public: - void unsafe_arena_set_allocated_ctesearch_clause( - ::pg_query::CTESearchClause* ctesearch_clause); - ::pg_query::CTESearchClause* unsafe_arena_release_ctesearch_clause(); - - // .pg_query.CTECycleClause ctecycle_clause = 215 [json_name = "CTECycleClause"]; - bool has_ctecycle_clause() const; - private: - bool _internal_has_ctecycle_clause() const; - public: - void clear_ctecycle_clause(); - const ::pg_query::CTECycleClause& ctecycle_clause() const; - PROTOBUF_NODISCARD ::pg_query::CTECycleClause* release_ctecycle_clause(); - ::pg_query::CTECycleClause* mutable_ctecycle_clause(); - void set_allocated_ctecycle_clause(::pg_query::CTECycleClause* ctecycle_clause); - private: - const ::pg_query::CTECycleClause& _internal_ctecycle_clause() const; - ::pg_query::CTECycleClause* _internal_mutable_ctecycle_clause(); - public: - void unsafe_arena_set_allocated_ctecycle_clause( - ::pg_query::CTECycleClause* ctecycle_clause); - ::pg_query::CTECycleClause* unsafe_arena_release_ctecycle_clause(); - - // .pg_query.CommonTableExpr common_table_expr = 216 [json_name = "CommonTableExpr"]; - bool has_common_table_expr() const; - private: - bool _internal_has_common_table_expr() const; - public: - void clear_common_table_expr(); - const ::pg_query::CommonTableExpr& common_table_expr() const; - PROTOBUF_NODISCARD ::pg_query::CommonTableExpr* release_common_table_expr(); - ::pg_query::CommonTableExpr* mutable_common_table_expr(); - void set_allocated_common_table_expr(::pg_query::CommonTableExpr* common_table_expr); - private: - const ::pg_query::CommonTableExpr& _internal_common_table_expr() const; - ::pg_query::CommonTableExpr* _internal_mutable_common_table_expr(); - public: - void unsafe_arena_set_allocated_common_table_expr( - ::pg_query::CommonTableExpr* common_table_expr); - ::pg_query::CommonTableExpr* unsafe_arena_release_common_table_expr(); - - // .pg_query.MergeWhenClause merge_when_clause = 217 [json_name = "MergeWhenClause"]; - bool has_merge_when_clause() const; - private: - bool _internal_has_merge_when_clause() const; - public: - void clear_merge_when_clause(); - const ::pg_query::MergeWhenClause& merge_when_clause() const; - PROTOBUF_NODISCARD ::pg_query::MergeWhenClause* release_merge_when_clause(); - ::pg_query::MergeWhenClause* mutable_merge_when_clause(); - void set_allocated_merge_when_clause(::pg_query::MergeWhenClause* merge_when_clause); - private: - const ::pg_query::MergeWhenClause& _internal_merge_when_clause() const; - ::pg_query::MergeWhenClause* _internal_mutable_merge_when_clause(); - public: - void unsafe_arena_set_allocated_merge_when_clause( - ::pg_query::MergeWhenClause* merge_when_clause); - ::pg_query::MergeWhenClause* unsafe_arena_release_merge_when_clause(); - - // .pg_query.RoleSpec role_spec = 218 [json_name = "RoleSpec"]; - bool has_role_spec() const; - private: - bool _internal_has_role_spec() const; - public: - void clear_role_spec(); - const ::pg_query::RoleSpec& role_spec() const; - PROTOBUF_NODISCARD ::pg_query::RoleSpec* release_role_spec(); - ::pg_query::RoleSpec* mutable_role_spec(); - void set_allocated_role_spec(::pg_query::RoleSpec* role_spec); - private: - const ::pg_query::RoleSpec& _internal_role_spec() const; - ::pg_query::RoleSpec* _internal_mutable_role_spec(); - public: - void unsafe_arena_set_allocated_role_spec( - ::pg_query::RoleSpec* role_spec); - ::pg_query::RoleSpec* unsafe_arena_release_role_spec(); - - // .pg_query.TriggerTransition trigger_transition = 219 [json_name = "TriggerTransition"]; - bool has_trigger_transition() const; - private: - bool _internal_has_trigger_transition() const; - public: - void clear_trigger_transition(); - const ::pg_query::TriggerTransition& trigger_transition() const; - PROTOBUF_NODISCARD ::pg_query::TriggerTransition* release_trigger_transition(); - ::pg_query::TriggerTransition* mutable_trigger_transition(); - void set_allocated_trigger_transition(::pg_query::TriggerTransition* trigger_transition); - private: - const ::pg_query::TriggerTransition& _internal_trigger_transition() const; - ::pg_query::TriggerTransition* _internal_mutable_trigger_transition(); - public: - void unsafe_arena_set_allocated_trigger_transition( - ::pg_query::TriggerTransition* trigger_transition); - ::pg_query::TriggerTransition* unsafe_arena_release_trigger_transition(); - - // .pg_query.PartitionElem partition_elem = 220 [json_name = "PartitionElem"]; - bool has_partition_elem() const; - private: - bool _internal_has_partition_elem() const; - public: - void clear_partition_elem(); - const ::pg_query::PartitionElem& partition_elem() const; - PROTOBUF_NODISCARD ::pg_query::PartitionElem* release_partition_elem(); - ::pg_query::PartitionElem* mutable_partition_elem(); - void set_allocated_partition_elem(::pg_query::PartitionElem* partition_elem); - private: - const ::pg_query::PartitionElem& _internal_partition_elem() const; - ::pg_query::PartitionElem* _internal_mutable_partition_elem(); - public: - void unsafe_arena_set_allocated_partition_elem( - ::pg_query::PartitionElem* partition_elem); - ::pg_query::PartitionElem* unsafe_arena_release_partition_elem(); - - // .pg_query.PartitionSpec partition_spec = 221 [json_name = "PartitionSpec"]; - bool has_partition_spec() const; - private: - bool _internal_has_partition_spec() const; - public: - void clear_partition_spec(); - const ::pg_query::PartitionSpec& partition_spec() const; - PROTOBUF_NODISCARD ::pg_query::PartitionSpec* release_partition_spec(); - ::pg_query::PartitionSpec* mutable_partition_spec(); - void set_allocated_partition_spec(::pg_query::PartitionSpec* partition_spec); - private: - const ::pg_query::PartitionSpec& _internal_partition_spec() const; - ::pg_query::PartitionSpec* _internal_mutable_partition_spec(); - public: - void unsafe_arena_set_allocated_partition_spec( - ::pg_query::PartitionSpec* partition_spec); - ::pg_query::PartitionSpec* unsafe_arena_release_partition_spec(); - - // .pg_query.PartitionBoundSpec partition_bound_spec = 222 [json_name = "PartitionBoundSpec"]; - bool has_partition_bound_spec() const; - private: - bool _internal_has_partition_bound_spec() const; - public: - void clear_partition_bound_spec(); - const ::pg_query::PartitionBoundSpec& partition_bound_spec() const; - PROTOBUF_NODISCARD ::pg_query::PartitionBoundSpec* release_partition_bound_spec(); - ::pg_query::PartitionBoundSpec* mutable_partition_bound_spec(); - void set_allocated_partition_bound_spec(::pg_query::PartitionBoundSpec* partition_bound_spec); - private: - const ::pg_query::PartitionBoundSpec& _internal_partition_bound_spec() const; - ::pg_query::PartitionBoundSpec* _internal_mutable_partition_bound_spec(); - public: - void unsafe_arena_set_allocated_partition_bound_spec( - ::pg_query::PartitionBoundSpec* partition_bound_spec); - ::pg_query::PartitionBoundSpec* unsafe_arena_release_partition_bound_spec(); - - // .pg_query.PartitionRangeDatum partition_range_datum = 223 [json_name = "PartitionRangeDatum"]; - bool has_partition_range_datum() const; - private: - bool _internal_has_partition_range_datum() const; - public: - void clear_partition_range_datum(); - const ::pg_query::PartitionRangeDatum& partition_range_datum() const; - PROTOBUF_NODISCARD ::pg_query::PartitionRangeDatum* release_partition_range_datum(); - ::pg_query::PartitionRangeDatum* mutable_partition_range_datum(); - void set_allocated_partition_range_datum(::pg_query::PartitionRangeDatum* partition_range_datum); - private: - const ::pg_query::PartitionRangeDatum& _internal_partition_range_datum() const; - ::pg_query::PartitionRangeDatum* _internal_mutable_partition_range_datum(); - public: - void unsafe_arena_set_allocated_partition_range_datum( - ::pg_query::PartitionRangeDatum* partition_range_datum); - ::pg_query::PartitionRangeDatum* unsafe_arena_release_partition_range_datum(); - - // .pg_query.PartitionCmd partition_cmd = 224 [json_name = "PartitionCmd"]; - bool has_partition_cmd() const; - private: - bool _internal_has_partition_cmd() const; - public: - void clear_partition_cmd(); - const ::pg_query::PartitionCmd& partition_cmd() const; - PROTOBUF_NODISCARD ::pg_query::PartitionCmd* release_partition_cmd(); - ::pg_query::PartitionCmd* mutable_partition_cmd(); - void set_allocated_partition_cmd(::pg_query::PartitionCmd* partition_cmd); - private: - const ::pg_query::PartitionCmd& _internal_partition_cmd() const; - ::pg_query::PartitionCmd* _internal_mutable_partition_cmd(); - public: - void unsafe_arena_set_allocated_partition_cmd( - ::pg_query::PartitionCmd* partition_cmd); - ::pg_query::PartitionCmd* unsafe_arena_release_partition_cmd(); - - // .pg_query.VacuumRelation vacuum_relation = 225 [json_name = "VacuumRelation"]; - bool has_vacuum_relation() const; - private: - bool _internal_has_vacuum_relation() const; - public: - void clear_vacuum_relation(); - const ::pg_query::VacuumRelation& vacuum_relation() const; - PROTOBUF_NODISCARD ::pg_query::VacuumRelation* release_vacuum_relation(); - ::pg_query::VacuumRelation* mutable_vacuum_relation(); - void set_allocated_vacuum_relation(::pg_query::VacuumRelation* vacuum_relation); - private: - const ::pg_query::VacuumRelation& _internal_vacuum_relation() const; - ::pg_query::VacuumRelation* _internal_mutable_vacuum_relation(); - public: - void unsafe_arena_set_allocated_vacuum_relation( - ::pg_query::VacuumRelation* vacuum_relation); - ::pg_query::VacuumRelation* unsafe_arena_release_vacuum_relation(); - - // .pg_query.PublicationObjSpec publication_obj_spec = 226 [json_name = "PublicationObjSpec"]; - bool has_publication_obj_spec() const; - private: - bool _internal_has_publication_obj_spec() const; - public: - void clear_publication_obj_spec(); - const ::pg_query::PublicationObjSpec& publication_obj_spec() const; - PROTOBUF_NODISCARD ::pg_query::PublicationObjSpec* release_publication_obj_spec(); - ::pg_query::PublicationObjSpec* mutable_publication_obj_spec(); - void set_allocated_publication_obj_spec(::pg_query::PublicationObjSpec* publication_obj_spec); - private: - const ::pg_query::PublicationObjSpec& _internal_publication_obj_spec() const; - ::pg_query::PublicationObjSpec* _internal_mutable_publication_obj_spec(); - public: - void unsafe_arena_set_allocated_publication_obj_spec( - ::pg_query::PublicationObjSpec* publication_obj_spec); - ::pg_query::PublicationObjSpec* unsafe_arena_release_publication_obj_spec(); - - // .pg_query.PublicationTable publication_table = 227 [json_name = "PublicationTable"]; - bool has_publication_table() const; - private: - bool _internal_has_publication_table() const; - public: - void clear_publication_table(); - const ::pg_query::PublicationTable& publication_table() const; - PROTOBUF_NODISCARD ::pg_query::PublicationTable* release_publication_table(); - ::pg_query::PublicationTable* mutable_publication_table(); - void set_allocated_publication_table(::pg_query::PublicationTable* publication_table); - private: - const ::pg_query::PublicationTable& _internal_publication_table() const; - ::pg_query::PublicationTable* _internal_mutable_publication_table(); - public: - void unsafe_arena_set_allocated_publication_table( - ::pg_query::PublicationTable* publication_table); - ::pg_query::PublicationTable* unsafe_arena_release_publication_table(); - - // .pg_query.InlineCodeBlock inline_code_block = 228 [json_name = "InlineCodeBlock"]; - bool has_inline_code_block() const; - private: - bool _internal_has_inline_code_block() const; - public: - void clear_inline_code_block(); - const ::pg_query::InlineCodeBlock& inline_code_block() const; - PROTOBUF_NODISCARD ::pg_query::InlineCodeBlock* release_inline_code_block(); - ::pg_query::InlineCodeBlock* mutable_inline_code_block(); - void set_allocated_inline_code_block(::pg_query::InlineCodeBlock* inline_code_block); - private: - const ::pg_query::InlineCodeBlock& _internal_inline_code_block() const; - ::pg_query::InlineCodeBlock* _internal_mutable_inline_code_block(); - public: - void unsafe_arena_set_allocated_inline_code_block( - ::pg_query::InlineCodeBlock* inline_code_block); - ::pg_query::InlineCodeBlock* unsafe_arena_release_inline_code_block(); - - // .pg_query.CallContext call_context = 229 [json_name = "CallContext"]; - bool has_call_context() const; - private: - bool _internal_has_call_context() const; - public: - void clear_call_context(); - const ::pg_query::CallContext& call_context() const; - PROTOBUF_NODISCARD ::pg_query::CallContext* release_call_context(); - ::pg_query::CallContext* mutable_call_context(); - void set_allocated_call_context(::pg_query::CallContext* call_context); - private: - const ::pg_query::CallContext& _internal_call_context() const; - ::pg_query::CallContext* _internal_mutable_call_context(); - public: - void unsafe_arena_set_allocated_call_context( - ::pg_query::CallContext* call_context); - ::pg_query::CallContext* unsafe_arena_release_call_context(); - - // .pg_query.Integer integer = 230 [json_name = "Integer"]; - bool has_integer() const; - private: - bool _internal_has_integer() const; - public: - void clear_integer(); - const ::pg_query::Integer& integer() const; - PROTOBUF_NODISCARD ::pg_query::Integer* release_integer(); - ::pg_query::Integer* mutable_integer(); - void set_allocated_integer(::pg_query::Integer* integer); - private: - const ::pg_query::Integer& _internal_integer() const; - ::pg_query::Integer* _internal_mutable_integer(); - public: - void unsafe_arena_set_allocated_integer( - ::pg_query::Integer* integer); - ::pg_query::Integer* unsafe_arena_release_integer(); - - // .pg_query.Float float = 231 [json_name = "Float"]; - bool has_float_() const; - private: - bool _internal_has_float_() const; - public: - void clear_float_(); - const ::pg_query::Float& float_() const; - PROTOBUF_NODISCARD ::pg_query::Float* release_float_(); - ::pg_query::Float* mutable_float_(); - void set_allocated_float_(::pg_query::Float* float_); - private: - const ::pg_query::Float& _internal_float_() const; - ::pg_query::Float* _internal_mutable_float_(); - public: - void unsafe_arena_set_allocated_float_( - ::pg_query::Float* float_); - ::pg_query::Float* unsafe_arena_release_float_(); - - // .pg_query.Boolean boolean = 232 [json_name = "Boolean"]; - bool has_boolean() const; - private: - bool _internal_has_boolean() const; - public: - void clear_boolean(); - const ::pg_query::Boolean& boolean() const; - PROTOBUF_NODISCARD ::pg_query::Boolean* release_boolean(); - ::pg_query::Boolean* mutable_boolean(); - void set_allocated_boolean(::pg_query::Boolean* boolean); - private: - const ::pg_query::Boolean& _internal_boolean() const; - ::pg_query::Boolean* _internal_mutable_boolean(); - public: - void unsafe_arena_set_allocated_boolean( - ::pg_query::Boolean* boolean); - ::pg_query::Boolean* unsafe_arena_release_boolean(); - - // .pg_query.String string = 233 [json_name = "String"]; - bool has_string() const; - private: - bool _internal_has_string() const; - public: - void clear_string(); - const ::pg_query::String& string() const; - PROTOBUF_NODISCARD ::pg_query::String* release_string(); - ::pg_query::String* mutable_string(); - void set_allocated_string(::pg_query::String* string); - private: - const ::pg_query::String& _internal_string() const; - ::pg_query::String* _internal_mutable_string(); - public: - void unsafe_arena_set_allocated_string( - ::pg_query::String* string); - ::pg_query::String* unsafe_arena_release_string(); - - // .pg_query.BitString bit_string = 234 [json_name = "BitString"]; - bool has_bit_string() const; - private: - bool _internal_has_bit_string() const; - public: - void clear_bit_string(); - const ::pg_query::BitString& bit_string() const; - PROTOBUF_NODISCARD ::pg_query::BitString* release_bit_string(); - ::pg_query::BitString* mutable_bit_string(); - void set_allocated_bit_string(::pg_query::BitString* bit_string); - private: - const ::pg_query::BitString& _internal_bit_string() const; - ::pg_query::BitString* _internal_mutable_bit_string(); - public: - void unsafe_arena_set_allocated_bit_string( - ::pg_query::BitString* bit_string); - ::pg_query::BitString* unsafe_arena_release_bit_string(); - - // .pg_query.List list = 235 [json_name = "List"]; - bool has_list() const; - private: - bool _internal_has_list() const; - public: - void clear_list(); - const ::pg_query::List& list() const; - PROTOBUF_NODISCARD ::pg_query::List* release_list(); - ::pg_query::List* mutable_list(); - void set_allocated_list(::pg_query::List* list); - private: - const ::pg_query::List& _internal_list() const; - ::pg_query::List* _internal_mutable_list(); - public: - void unsafe_arena_set_allocated_list( - ::pg_query::List* list); - ::pg_query::List* unsafe_arena_release_list(); - - // .pg_query.IntList int_list = 236 [json_name = "IntList"]; - bool has_int_list() const; - private: - bool _internal_has_int_list() const; - public: - void clear_int_list(); - const ::pg_query::IntList& int_list() const; - PROTOBUF_NODISCARD ::pg_query::IntList* release_int_list(); - ::pg_query::IntList* mutable_int_list(); - void set_allocated_int_list(::pg_query::IntList* int_list); - private: - const ::pg_query::IntList& _internal_int_list() const; - ::pg_query::IntList* _internal_mutable_int_list(); - public: - void unsafe_arena_set_allocated_int_list( - ::pg_query::IntList* int_list); - ::pg_query::IntList* unsafe_arena_release_int_list(); - - // .pg_query.OidList oid_list = 237 [json_name = "OidList"]; - bool has_oid_list() const; - private: - bool _internal_has_oid_list() const; - public: - void clear_oid_list(); - const ::pg_query::OidList& oid_list() const; - PROTOBUF_NODISCARD ::pg_query::OidList* release_oid_list(); - ::pg_query::OidList* mutable_oid_list(); - void set_allocated_oid_list(::pg_query::OidList* oid_list); - private: - const ::pg_query::OidList& _internal_oid_list() const; - ::pg_query::OidList* _internal_mutable_oid_list(); - public: - void unsafe_arena_set_allocated_oid_list( - ::pg_query::OidList* oid_list); - ::pg_query::OidList* unsafe_arena_release_oid_list(); - - // .pg_query.A_Const a_const = 238 [json_name = "A_Const"]; - bool has_a_const() const; - private: - bool _internal_has_a_const() const; - public: - void clear_a_const(); - const ::pg_query::A_Const& a_const() const; - PROTOBUF_NODISCARD ::pg_query::A_Const* release_a_const(); - ::pg_query::A_Const* mutable_a_const(); - void set_allocated_a_const(::pg_query::A_Const* a_const); - private: - const ::pg_query::A_Const& _internal_a_const() const; - ::pg_query::A_Const* _internal_mutable_a_const(); - public: - void unsafe_arena_set_allocated_a_const( - ::pg_query::A_Const* a_const); - ::pg_query::A_Const* unsafe_arena_release_a_const(); - - void clear_node(); - NodeCase node_case() const; - // @@protoc_insertion_point(class_scope:pg_query.Node) - private: - class _Internal; - void set_has_alias(); - void set_has_range_var(); - void set_has_table_func(); - void set_has_var(); - void set_has_param(); - void set_has_aggref(); - void set_has_grouping_func(); - void set_has_window_func(); - void set_has_subscripting_ref(); - void set_has_func_expr(); - void set_has_named_arg_expr(); - void set_has_op_expr(); - void set_has_distinct_expr(); - void set_has_null_if_expr(); - void set_has_scalar_array_op_expr(); - void set_has_bool_expr(); - void set_has_sub_link(); - void set_has_sub_plan(); - void set_has_alternative_sub_plan(); - void set_has_field_select(); - void set_has_field_store(); - void set_has_relabel_type(); - void set_has_coerce_via_io(); - void set_has_array_coerce_expr(); - void set_has_convert_rowtype_expr(); - void set_has_collate_expr(); - void set_has_case_expr(); - void set_has_case_when(); - void set_has_case_test_expr(); - void set_has_array_expr(); - void set_has_row_expr(); - void set_has_row_compare_expr(); - void set_has_coalesce_expr(); - void set_has_min_max_expr(); - void set_has_sqlvalue_function(); - void set_has_xml_expr(); - void set_has_null_test(); - void set_has_boolean_test(); - void set_has_coerce_to_domain(); - void set_has_coerce_to_domain_value(); - void set_has_set_to_default(); - void set_has_current_of_expr(); - void set_has_next_value_expr(); - void set_has_inference_elem(); - void set_has_target_entry(); - void set_has_range_tbl_ref(); - void set_has_join_expr(); - void set_has_from_expr(); - void set_has_on_conflict_expr(); - void set_has_into_clause(); - void set_has_merge_action(); - void set_has_raw_stmt(); - void set_has_query(); - void set_has_insert_stmt(); - void set_has_delete_stmt(); - void set_has_update_stmt(); - void set_has_merge_stmt(); - void set_has_select_stmt(); - void set_has_return_stmt(); - void set_has_plassign_stmt(); - void set_has_alter_table_stmt(); - void set_has_alter_table_cmd(); - void set_has_alter_domain_stmt(); - void set_has_set_operation_stmt(); - void set_has_grant_stmt(); - void set_has_grant_role_stmt(); - void set_has_alter_default_privileges_stmt(); - void set_has_close_portal_stmt(); - void set_has_cluster_stmt(); - void set_has_copy_stmt(); - void set_has_create_stmt(); - void set_has_define_stmt(); - void set_has_drop_stmt(); - void set_has_truncate_stmt(); - void set_has_comment_stmt(); - void set_has_fetch_stmt(); - void set_has_index_stmt(); - void set_has_create_function_stmt(); - void set_has_alter_function_stmt(); - void set_has_do_stmt(); - void set_has_rename_stmt(); - void set_has_rule_stmt(); - void set_has_notify_stmt(); - void set_has_listen_stmt(); - void set_has_unlisten_stmt(); - void set_has_transaction_stmt(); - void set_has_view_stmt(); - void set_has_load_stmt(); - void set_has_create_domain_stmt(); - void set_has_createdb_stmt(); - void set_has_dropdb_stmt(); - void set_has_vacuum_stmt(); - void set_has_explain_stmt(); - void set_has_create_table_as_stmt(); - void set_has_create_seq_stmt(); - void set_has_alter_seq_stmt(); - void set_has_variable_set_stmt(); - void set_has_variable_show_stmt(); - void set_has_discard_stmt(); - void set_has_create_trig_stmt(); - void set_has_create_plang_stmt(); - void set_has_create_role_stmt(); - void set_has_alter_role_stmt(); - void set_has_drop_role_stmt(); - void set_has_lock_stmt(); - void set_has_constraints_set_stmt(); - void set_has_reindex_stmt(); - void set_has_check_point_stmt(); - void set_has_create_schema_stmt(); - void set_has_alter_database_stmt(); - void set_has_alter_database_refresh_coll_stmt(); - void set_has_alter_database_set_stmt(); - void set_has_alter_role_set_stmt(); - void set_has_create_conversion_stmt(); - void set_has_create_cast_stmt(); - void set_has_create_op_class_stmt(); - void set_has_create_op_family_stmt(); - void set_has_alter_op_family_stmt(); - void set_has_prepare_stmt(); - void set_has_execute_stmt(); - void set_has_deallocate_stmt(); - void set_has_declare_cursor_stmt(); - void set_has_create_table_space_stmt(); - void set_has_drop_table_space_stmt(); - void set_has_alter_object_depends_stmt(); - void set_has_alter_object_schema_stmt(); - void set_has_alter_owner_stmt(); - void set_has_alter_operator_stmt(); - void set_has_alter_type_stmt(); - void set_has_drop_owned_stmt(); - void set_has_reassign_owned_stmt(); - void set_has_composite_type_stmt(); - void set_has_create_enum_stmt(); - void set_has_create_range_stmt(); - void set_has_alter_enum_stmt(); - void set_has_alter_tsdictionary_stmt(); - void set_has_alter_tsconfiguration_stmt(); - void set_has_create_fdw_stmt(); - void set_has_alter_fdw_stmt(); - void set_has_create_foreign_server_stmt(); - void set_has_alter_foreign_server_stmt(); - void set_has_create_user_mapping_stmt(); - void set_has_alter_user_mapping_stmt(); - void set_has_drop_user_mapping_stmt(); - void set_has_alter_table_space_options_stmt(); - void set_has_alter_table_move_all_stmt(); - void set_has_sec_label_stmt(); - void set_has_create_foreign_table_stmt(); - void set_has_import_foreign_schema_stmt(); - void set_has_create_extension_stmt(); - void set_has_alter_extension_stmt(); - void set_has_alter_extension_contents_stmt(); - void set_has_create_event_trig_stmt(); - void set_has_alter_event_trig_stmt(); - void set_has_refresh_mat_view_stmt(); - void set_has_replica_identity_stmt(); - void set_has_alter_system_stmt(); - void set_has_create_policy_stmt(); - void set_has_alter_policy_stmt(); - void set_has_create_transform_stmt(); - void set_has_create_am_stmt(); - void set_has_create_publication_stmt(); - void set_has_alter_publication_stmt(); - void set_has_create_subscription_stmt(); - void set_has_alter_subscription_stmt(); - void set_has_drop_subscription_stmt(); - void set_has_create_stats_stmt(); - void set_has_alter_collation_stmt(); - void set_has_call_stmt(); - void set_has_alter_stats_stmt(); - void set_has_a_expr(); - void set_has_column_ref(); - void set_has_param_ref(); - void set_has_func_call(); - void set_has_a_star(); - void set_has_a_indices(); - void set_has_a_indirection(); - void set_has_a_array_expr(); - void set_has_res_target(); - void set_has_multi_assign_ref(); - void set_has_type_cast(); - void set_has_collate_clause(); - void set_has_sort_by(); - void set_has_window_def(); - void set_has_range_subselect(); - void set_has_range_function(); - void set_has_range_table_sample(); - void set_has_range_table_func(); - void set_has_range_table_func_col(); - void set_has_type_name(); - void set_has_column_def(); - void set_has_index_elem(); - void set_has_stats_elem(); - void set_has_constraint(); - void set_has_def_elem(); - void set_has_range_tbl_entry(); - void set_has_range_tbl_function(); - void set_has_table_sample_clause(); - void set_has_with_check_option(); - void set_has_sort_group_clause(); - void set_has_grouping_set(); - void set_has_window_clause(); - void set_has_object_with_args(); - void set_has_access_priv(); - void set_has_create_op_class_item(); - void set_has_table_like_clause(); - void set_has_function_parameter(); - void set_has_locking_clause(); - void set_has_row_mark_clause(); - void set_has_xml_serialize(); - void set_has_with_clause(); - void set_has_infer_clause(); - void set_has_on_conflict_clause(); - void set_has_ctesearch_clause(); - void set_has_ctecycle_clause(); - void set_has_common_table_expr(); - void set_has_merge_when_clause(); - void set_has_role_spec(); - void set_has_trigger_transition(); - void set_has_partition_elem(); - void set_has_partition_spec(); - void set_has_partition_bound_spec(); - void set_has_partition_range_datum(); - void set_has_partition_cmd(); - void set_has_vacuum_relation(); - void set_has_publication_obj_spec(); - void set_has_publication_table(); - void set_has_inline_code_block(); - void set_has_call_context(); - void set_has_integer(); - void set_has_float_(); - void set_has_boolean(); - void set_has_string(); - void set_has_bit_string(); - void set_has_list(); - void set_has_int_list(); - void set_has_oid_list(); - void set_has_a_const(); - - inline bool has_node() const; - inline void clear_has_node(); - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - union NodeUnion { - constexpr NodeUnion() : _constinit_{} {} - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; - ::pg_query::Alias* alias_; - ::pg_query::RangeVar* range_var_; - ::pg_query::TableFunc* table_func_; - ::pg_query::Var* var_; - ::pg_query::Param* param_; - ::pg_query::Aggref* aggref_; - ::pg_query::GroupingFunc* grouping_func_; - ::pg_query::WindowFunc* window_func_; - ::pg_query::SubscriptingRef* subscripting_ref_; - ::pg_query::FuncExpr* func_expr_; - ::pg_query::NamedArgExpr* named_arg_expr_; - ::pg_query::OpExpr* op_expr_; - ::pg_query::DistinctExpr* distinct_expr_; - ::pg_query::NullIfExpr* null_if_expr_; - ::pg_query::ScalarArrayOpExpr* scalar_array_op_expr_; - ::pg_query::BoolExpr* bool_expr_; - ::pg_query::SubLink* sub_link_; - ::pg_query::SubPlan* sub_plan_; - ::pg_query::AlternativeSubPlan* alternative_sub_plan_; - ::pg_query::FieldSelect* field_select_; - ::pg_query::FieldStore* field_store_; - ::pg_query::RelabelType* relabel_type_; - ::pg_query::CoerceViaIO* coerce_via_io_; - ::pg_query::ArrayCoerceExpr* array_coerce_expr_; - ::pg_query::ConvertRowtypeExpr* convert_rowtype_expr_; - ::pg_query::CollateExpr* collate_expr_; - ::pg_query::CaseExpr* case_expr_; - ::pg_query::CaseWhen* case_when_; - ::pg_query::CaseTestExpr* case_test_expr_; - ::pg_query::ArrayExpr* array_expr_; - ::pg_query::RowExpr* row_expr_; - ::pg_query::RowCompareExpr* row_compare_expr_; - ::pg_query::CoalesceExpr* coalesce_expr_; - ::pg_query::MinMaxExpr* min_max_expr_; - ::pg_query::SQLValueFunction* sqlvalue_function_; - ::pg_query::XmlExpr* xml_expr_; - ::pg_query::NullTest* null_test_; - ::pg_query::BooleanTest* boolean_test_; - ::pg_query::CoerceToDomain* coerce_to_domain_; - ::pg_query::CoerceToDomainValue* coerce_to_domain_value_; - ::pg_query::SetToDefault* set_to_default_; - ::pg_query::CurrentOfExpr* current_of_expr_; - ::pg_query::NextValueExpr* next_value_expr_; - ::pg_query::InferenceElem* inference_elem_; - ::pg_query::TargetEntry* target_entry_; - ::pg_query::RangeTblRef* range_tbl_ref_; - ::pg_query::JoinExpr* join_expr_; - ::pg_query::FromExpr* from_expr_; - ::pg_query::OnConflictExpr* on_conflict_expr_; - ::pg_query::IntoClause* into_clause_; - ::pg_query::MergeAction* merge_action_; - ::pg_query::RawStmt* raw_stmt_; - ::pg_query::Query* query_; - ::pg_query::InsertStmt* insert_stmt_; - ::pg_query::DeleteStmt* delete_stmt_; - ::pg_query::UpdateStmt* update_stmt_; - ::pg_query::MergeStmt* merge_stmt_; - ::pg_query::SelectStmt* select_stmt_; - ::pg_query::ReturnStmt* return_stmt_; - ::pg_query::PLAssignStmt* plassign_stmt_; - ::pg_query::AlterTableStmt* alter_table_stmt_; - ::pg_query::AlterTableCmd* alter_table_cmd_; - ::pg_query::AlterDomainStmt* alter_domain_stmt_; - ::pg_query::SetOperationStmt* set_operation_stmt_; - ::pg_query::GrantStmt* grant_stmt_; - ::pg_query::GrantRoleStmt* grant_role_stmt_; - ::pg_query::AlterDefaultPrivilegesStmt* alter_default_privileges_stmt_; - ::pg_query::ClosePortalStmt* close_portal_stmt_; - ::pg_query::ClusterStmt* cluster_stmt_; - ::pg_query::CopyStmt* copy_stmt_; - ::pg_query::CreateStmt* create_stmt_; - ::pg_query::DefineStmt* define_stmt_; - ::pg_query::DropStmt* drop_stmt_; - ::pg_query::TruncateStmt* truncate_stmt_; - ::pg_query::CommentStmt* comment_stmt_; - ::pg_query::FetchStmt* fetch_stmt_; - ::pg_query::IndexStmt* index_stmt_; - ::pg_query::CreateFunctionStmt* create_function_stmt_; - ::pg_query::AlterFunctionStmt* alter_function_stmt_; - ::pg_query::DoStmt* do_stmt_; - ::pg_query::RenameStmt* rename_stmt_; - ::pg_query::RuleStmt* rule_stmt_; - ::pg_query::NotifyStmt* notify_stmt_; - ::pg_query::ListenStmt* listen_stmt_; - ::pg_query::UnlistenStmt* unlisten_stmt_; - ::pg_query::TransactionStmt* transaction_stmt_; - ::pg_query::ViewStmt* view_stmt_; - ::pg_query::LoadStmt* load_stmt_; - ::pg_query::CreateDomainStmt* create_domain_stmt_; - ::pg_query::CreatedbStmt* createdb_stmt_; - ::pg_query::DropdbStmt* dropdb_stmt_; - ::pg_query::VacuumStmt* vacuum_stmt_; - ::pg_query::ExplainStmt* explain_stmt_; - ::pg_query::CreateTableAsStmt* create_table_as_stmt_; - ::pg_query::CreateSeqStmt* create_seq_stmt_; - ::pg_query::AlterSeqStmt* alter_seq_stmt_; - ::pg_query::VariableSetStmt* variable_set_stmt_; - ::pg_query::VariableShowStmt* variable_show_stmt_; - ::pg_query::DiscardStmt* discard_stmt_; - ::pg_query::CreateTrigStmt* create_trig_stmt_; - ::pg_query::CreatePLangStmt* create_plang_stmt_; - ::pg_query::CreateRoleStmt* create_role_stmt_; - ::pg_query::AlterRoleStmt* alter_role_stmt_; - ::pg_query::DropRoleStmt* drop_role_stmt_; - ::pg_query::LockStmt* lock_stmt_; - ::pg_query::ConstraintsSetStmt* constraints_set_stmt_; - ::pg_query::ReindexStmt* reindex_stmt_; - ::pg_query::CheckPointStmt* check_point_stmt_; - ::pg_query::CreateSchemaStmt* create_schema_stmt_; - ::pg_query::AlterDatabaseStmt* alter_database_stmt_; - ::pg_query::AlterDatabaseRefreshCollStmt* alter_database_refresh_coll_stmt_; - ::pg_query::AlterDatabaseSetStmt* alter_database_set_stmt_; - ::pg_query::AlterRoleSetStmt* alter_role_set_stmt_; - ::pg_query::CreateConversionStmt* create_conversion_stmt_; - ::pg_query::CreateCastStmt* create_cast_stmt_; - ::pg_query::CreateOpClassStmt* create_op_class_stmt_; - ::pg_query::CreateOpFamilyStmt* create_op_family_stmt_; - ::pg_query::AlterOpFamilyStmt* alter_op_family_stmt_; - ::pg_query::PrepareStmt* prepare_stmt_; - ::pg_query::ExecuteStmt* execute_stmt_; - ::pg_query::DeallocateStmt* deallocate_stmt_; - ::pg_query::DeclareCursorStmt* declare_cursor_stmt_; - ::pg_query::CreateTableSpaceStmt* create_table_space_stmt_; - ::pg_query::DropTableSpaceStmt* drop_table_space_stmt_; - ::pg_query::AlterObjectDependsStmt* alter_object_depends_stmt_; - ::pg_query::AlterObjectSchemaStmt* alter_object_schema_stmt_; - ::pg_query::AlterOwnerStmt* alter_owner_stmt_; - ::pg_query::AlterOperatorStmt* alter_operator_stmt_; - ::pg_query::AlterTypeStmt* alter_type_stmt_; - ::pg_query::DropOwnedStmt* drop_owned_stmt_; - ::pg_query::ReassignOwnedStmt* reassign_owned_stmt_; - ::pg_query::CompositeTypeStmt* composite_type_stmt_; - ::pg_query::CreateEnumStmt* create_enum_stmt_; - ::pg_query::CreateRangeStmt* create_range_stmt_; - ::pg_query::AlterEnumStmt* alter_enum_stmt_; - ::pg_query::AlterTSDictionaryStmt* alter_tsdictionary_stmt_; - ::pg_query::AlterTSConfigurationStmt* alter_tsconfiguration_stmt_; - ::pg_query::CreateFdwStmt* create_fdw_stmt_; - ::pg_query::AlterFdwStmt* alter_fdw_stmt_; - ::pg_query::CreateForeignServerStmt* create_foreign_server_stmt_; - ::pg_query::AlterForeignServerStmt* alter_foreign_server_stmt_; - ::pg_query::CreateUserMappingStmt* create_user_mapping_stmt_; - ::pg_query::AlterUserMappingStmt* alter_user_mapping_stmt_; - ::pg_query::DropUserMappingStmt* drop_user_mapping_stmt_; - ::pg_query::AlterTableSpaceOptionsStmt* alter_table_space_options_stmt_; - ::pg_query::AlterTableMoveAllStmt* alter_table_move_all_stmt_; - ::pg_query::SecLabelStmt* sec_label_stmt_; - ::pg_query::CreateForeignTableStmt* create_foreign_table_stmt_; - ::pg_query::ImportForeignSchemaStmt* import_foreign_schema_stmt_; - ::pg_query::CreateExtensionStmt* create_extension_stmt_; - ::pg_query::AlterExtensionStmt* alter_extension_stmt_; - ::pg_query::AlterExtensionContentsStmt* alter_extension_contents_stmt_; - ::pg_query::CreateEventTrigStmt* create_event_trig_stmt_; - ::pg_query::AlterEventTrigStmt* alter_event_trig_stmt_; - ::pg_query::RefreshMatViewStmt* refresh_mat_view_stmt_; - ::pg_query::ReplicaIdentityStmt* replica_identity_stmt_; - ::pg_query::AlterSystemStmt* alter_system_stmt_; - ::pg_query::CreatePolicyStmt* create_policy_stmt_; - ::pg_query::AlterPolicyStmt* alter_policy_stmt_; - ::pg_query::CreateTransformStmt* create_transform_stmt_; - ::pg_query::CreateAmStmt* create_am_stmt_; - ::pg_query::CreatePublicationStmt* create_publication_stmt_; - ::pg_query::AlterPublicationStmt* alter_publication_stmt_; - ::pg_query::CreateSubscriptionStmt* create_subscription_stmt_; - ::pg_query::AlterSubscriptionStmt* alter_subscription_stmt_; - ::pg_query::DropSubscriptionStmt* drop_subscription_stmt_; - ::pg_query::CreateStatsStmt* create_stats_stmt_; - ::pg_query::AlterCollationStmt* alter_collation_stmt_; - ::pg_query::CallStmt* call_stmt_; - ::pg_query::AlterStatsStmt* alter_stats_stmt_; - ::pg_query::A_Expr* a_expr_; - ::pg_query::ColumnRef* column_ref_; - ::pg_query::ParamRef* param_ref_; - ::pg_query::FuncCall* func_call_; - ::pg_query::A_Star* a_star_; - ::pg_query::A_Indices* a_indices_; - ::pg_query::A_Indirection* a_indirection_; - ::pg_query::A_ArrayExpr* a_array_expr_; - ::pg_query::ResTarget* res_target_; - ::pg_query::MultiAssignRef* multi_assign_ref_; - ::pg_query::TypeCast* type_cast_; - ::pg_query::CollateClause* collate_clause_; - ::pg_query::SortBy* sort_by_; - ::pg_query::WindowDef* window_def_; - ::pg_query::RangeSubselect* range_subselect_; - ::pg_query::RangeFunction* range_function_; - ::pg_query::RangeTableSample* range_table_sample_; - ::pg_query::RangeTableFunc* range_table_func_; - ::pg_query::RangeTableFuncCol* range_table_func_col_; - ::pg_query::TypeName* type_name_; - ::pg_query::ColumnDef* column_def_; - ::pg_query::IndexElem* index_elem_; - ::pg_query::StatsElem* stats_elem_; - ::pg_query::Constraint* constraint_; - ::pg_query::DefElem* def_elem_; - ::pg_query::RangeTblEntry* range_tbl_entry_; - ::pg_query::RangeTblFunction* range_tbl_function_; - ::pg_query::TableSampleClause* table_sample_clause_; - ::pg_query::WithCheckOption* with_check_option_; - ::pg_query::SortGroupClause* sort_group_clause_; - ::pg_query::GroupingSet* grouping_set_; - ::pg_query::WindowClause* window_clause_; - ::pg_query::ObjectWithArgs* object_with_args_; - ::pg_query::AccessPriv* access_priv_; - ::pg_query::CreateOpClassItem* create_op_class_item_; - ::pg_query::TableLikeClause* table_like_clause_; - ::pg_query::FunctionParameter* function_parameter_; - ::pg_query::LockingClause* locking_clause_; - ::pg_query::RowMarkClause* row_mark_clause_; - ::pg_query::XmlSerialize* xml_serialize_; - ::pg_query::WithClause* with_clause_; - ::pg_query::InferClause* infer_clause_; - ::pg_query::OnConflictClause* on_conflict_clause_; - ::pg_query::CTESearchClause* ctesearch_clause_; - ::pg_query::CTECycleClause* ctecycle_clause_; - ::pg_query::CommonTableExpr* common_table_expr_; - ::pg_query::MergeWhenClause* merge_when_clause_; - ::pg_query::RoleSpec* role_spec_; - ::pg_query::TriggerTransition* trigger_transition_; - ::pg_query::PartitionElem* partition_elem_; - ::pg_query::PartitionSpec* partition_spec_; - ::pg_query::PartitionBoundSpec* partition_bound_spec_; - ::pg_query::PartitionRangeDatum* partition_range_datum_; - ::pg_query::PartitionCmd* partition_cmd_; - ::pg_query::VacuumRelation* vacuum_relation_; - ::pg_query::PublicationObjSpec* publication_obj_spec_; - ::pg_query::PublicationTable* publication_table_; - ::pg_query::InlineCodeBlock* inline_code_block_; - ::pg_query::CallContext* call_context_; - ::pg_query::Integer* integer_; - ::pg_query::Float* float__; - ::pg_query::Boolean* boolean_; - ::pg_query::String* string_; - ::pg_query::BitString* bit_string_; - ::pg_query::List* list_; - ::pg_query::IntList* int_list_; - ::pg_query::OidList* oid_list_; - ::pg_query::A_Const* a_const_; - } node_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - uint32_t _oneof_case_[1]; - - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class Integer final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.Integer) */ { - public: - inline Integer() : Integer(nullptr) {} - ~Integer() override; - explicit PROTOBUF_CONSTEXPR Integer(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Integer(const Integer& from); - Integer(Integer&& from) noexcept - : Integer() { - *this = ::std::move(from); - } - - inline Integer& operator=(const Integer& from) { - CopyFrom(from); - return *this; - } - inline Integer& operator=(Integer&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Integer& default_instance() { - return *internal_default_instance(); - } - static inline const Integer* internal_default_instance() { - return reinterpret_cast( - &_Integer_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(Integer& a, Integer& b) { - a.Swap(&b); - } - inline void Swap(Integer* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Integer* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Integer* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Integer& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Integer& from) { - Integer::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Integer* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.Integer"; - } - protected: - explicit Integer(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIvalFieldNumber = 1, - }; - // int32 ival = 1; - void clear_ival(); - int32_t ival() const; - void set_ival(int32_t value); - private: - int32_t _internal_ival() const; - void _internal_set_ival(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.Integer) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - int32_t ival_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class Float final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.Float) */ { - public: - inline Float() : Float(nullptr) {} - ~Float() override; - explicit PROTOBUF_CONSTEXPR Float(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Float(const Float& from); - Float(Float&& from) noexcept - : Float() { - *this = ::std::move(from); - } - - inline Float& operator=(const Float& from) { - CopyFrom(from); - return *this; - } - inline Float& operator=(Float&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Float& default_instance() { - return *internal_default_instance(); - } - static inline const Float* internal_default_instance() { - return reinterpret_cast( - &_Float_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(Float& a, Float& b) { - a.Swap(&b); - } - inline void Swap(Float* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Float* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Float* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Float& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Float& from) { - Float::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Float* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.Float"; - } - protected: - explicit Float(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFvalFieldNumber = 1, - }; - // string fval = 1; - void clear_fval(); - const std::string& fval() const; - template - void set_fval(ArgT0&& arg0, ArgT... args); - std::string* mutable_fval(); - PROTOBUF_NODISCARD std::string* release_fval(); - void set_allocated_fval(std::string* fval); - private: - const std::string& _internal_fval() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_fval(const std::string& value); - std::string* _internal_mutable_fval(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.Float) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fval_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class Boolean final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.Boolean) */ { - public: - inline Boolean() : Boolean(nullptr) {} - ~Boolean() override; - explicit PROTOBUF_CONSTEXPR Boolean(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Boolean(const Boolean& from); - Boolean(Boolean&& from) noexcept - : Boolean() { - *this = ::std::move(from); - } - - inline Boolean& operator=(const Boolean& from) { - CopyFrom(from); - return *this; - } - inline Boolean& operator=(Boolean&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Boolean& default_instance() { - return *internal_default_instance(); - } - static inline const Boolean* internal_default_instance() { - return reinterpret_cast( - &_Boolean_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(Boolean& a, Boolean& b) { - a.Swap(&b); - } - inline void Swap(Boolean* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Boolean* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Boolean* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Boolean& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Boolean& from) { - Boolean::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Boolean* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.Boolean"; - } - protected: - explicit Boolean(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kBoolvalFieldNumber = 1, - }; - // bool boolval = 1; - void clear_boolval(); - bool boolval() const; - void set_boolval(bool value); - private: - bool _internal_boolval() const; - void _internal_set_boolval(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.Boolean) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - bool boolval_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class String final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.String) */ { - public: - inline String() : String(nullptr) {} - ~String() override; - explicit PROTOBUF_CONSTEXPR String(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - String(const String& from); - String(String&& from) noexcept - : String() { - *this = ::std::move(from); - } - - inline String& operator=(const String& from) { - CopyFrom(from); - return *this; - } - inline String& operator=(String&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const String& default_instance() { - return *internal_default_instance(); - } - static inline const String* internal_default_instance() { - return reinterpret_cast( - &_String_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(String& a, String& b) { - a.Swap(&b); - } - inline void Swap(String* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(String* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - String* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const String& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const String& from) { - String::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(String* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.String"; - } - protected: - explicit String(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSvalFieldNumber = 1, - }; - // string sval = 1; - void clear_sval(); - const std::string& sval() const; - template - void set_sval(ArgT0&& arg0, ArgT... args); - std::string* mutable_sval(); - PROTOBUF_NODISCARD std::string* release_sval(); - void set_allocated_sval(std::string* sval); - private: - const std::string& _internal_sval() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_sval(const std::string& value); - std::string* _internal_mutable_sval(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.String) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sval_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class BitString final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.BitString) */ { - public: - inline BitString() : BitString(nullptr) {} - ~BitString() override; - explicit PROTOBUF_CONSTEXPR BitString(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BitString(const BitString& from); - BitString(BitString&& from) noexcept - : BitString() { - *this = ::std::move(from); - } - - inline BitString& operator=(const BitString& from) { - CopyFrom(from); - return *this; - } - inline BitString& operator=(BitString&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const BitString& default_instance() { - return *internal_default_instance(); - } - static inline const BitString* internal_default_instance() { - return reinterpret_cast( - &_BitString_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(BitString& a, BitString& b) { - a.Swap(&b); - } - inline void Swap(BitString* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BitString* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BitString* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const BitString& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const BitString& from) { - BitString::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(BitString* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.BitString"; - } - protected: - explicit BitString(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kBsvalFieldNumber = 1, - }; - // string bsval = 1; - void clear_bsval(); - const std::string& bsval() const; - template - void set_bsval(ArgT0&& arg0, ArgT... args); - std::string* mutable_bsval(); - PROTOBUF_NODISCARD std::string* release_bsval(); - void set_allocated_bsval(std::string* bsval); - private: - const std::string& _internal_bsval() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_bsval(const std::string& value); - std::string* _internal_mutable_bsval(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.BitString) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bsval_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class List final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.List) */ { - public: - inline List() : List(nullptr) {} - ~List() override; - explicit PROTOBUF_CONSTEXPR List(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - List(const List& from); - List(List&& from) noexcept - : List() { - *this = ::std::move(from); - } - - inline List& operator=(const List& from) { - CopyFrom(from); - return *this; - } - inline List& operator=(List&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const List& default_instance() { - return *internal_default_instance(); - } - static inline const List* internal_default_instance() { - return reinterpret_cast( - &_List_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(List& a, List& b) { - a.Swap(&b); - } - inline void Swap(List* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(List* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - List* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const List& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const List& from) { - List::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(List* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.List"; - } - protected: - explicit List(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kItemsFieldNumber = 1, - }; - // repeated .pg_query.Node items = 1; - int items_size() const; - private: - int _internal_items_size() const; - public: - void clear_items(); - ::pg_query::Node* mutable_items(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_items(); - private: - const ::pg_query::Node& _internal_items(int index) const; - ::pg_query::Node* _internal_add_items(); - public: - const ::pg_query::Node& items(int index) const; - ::pg_query::Node* add_items(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - items() const; - - // @@protoc_insertion_point(class_scope:pg_query.List) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > items_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class OidList final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.OidList) */ { - public: - inline OidList() : OidList(nullptr) {} - ~OidList() override; - explicit PROTOBUF_CONSTEXPR OidList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - OidList(const OidList& from); - OidList(OidList&& from) noexcept - : OidList() { - *this = ::std::move(from); - } - - inline OidList& operator=(const OidList& from) { - CopyFrom(from); - return *this; - } - inline OidList& operator=(OidList&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const OidList& default_instance() { - return *internal_default_instance(); - } - static inline const OidList* internal_default_instance() { - return reinterpret_cast( - &_OidList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(OidList& a, OidList& b) { - a.Swap(&b); - } - inline void Swap(OidList* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OidList* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - OidList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const OidList& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const OidList& from) { - OidList::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OidList* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.OidList"; - } - protected: - explicit OidList(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kItemsFieldNumber = 1, - }; - // repeated .pg_query.Node items = 1; - int items_size() const; - private: - int _internal_items_size() const; - public: - void clear_items(); - ::pg_query::Node* mutable_items(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_items(); - private: - const ::pg_query::Node& _internal_items(int index) const; - ::pg_query::Node* _internal_add_items(); - public: - const ::pg_query::Node& items(int index) const; - ::pg_query::Node* add_items(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - items() const; - - // @@protoc_insertion_point(class_scope:pg_query.OidList) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > items_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class IntList final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.IntList) */ { - public: - inline IntList() : IntList(nullptr) {} - ~IntList() override; - explicit PROTOBUF_CONSTEXPR IntList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - IntList(const IntList& from); - IntList(IntList&& from) noexcept - : IntList() { - *this = ::std::move(from); - } - - inline IntList& operator=(const IntList& from) { - CopyFrom(from); - return *this; - } - inline IntList& operator=(IntList&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const IntList& default_instance() { - return *internal_default_instance(); - } - static inline const IntList* internal_default_instance() { - return reinterpret_cast( - &_IntList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(IntList& a, IntList& b) { - a.Swap(&b); - } - inline void Swap(IntList* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(IntList* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - IntList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const IntList& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const IntList& from) { - IntList::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(IntList* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.IntList"; - } - protected: - explicit IntList(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kItemsFieldNumber = 1, - }; - // repeated .pg_query.Node items = 1; - int items_size() const; - private: - int _internal_items_size() const; - public: - void clear_items(); - ::pg_query::Node* mutable_items(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_items(); - private: - const ::pg_query::Node& _internal_items(int index) const; - ::pg_query::Node* _internal_add_items(); - public: - const ::pg_query::Node& items(int index) const; - ::pg_query::Node* add_items(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - items() const; - - // @@protoc_insertion_point(class_scope:pg_query.IntList) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > items_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class A_Const final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.A_Const) */ { - public: - inline A_Const() : A_Const(nullptr) {} - ~A_Const() override; - explicit PROTOBUF_CONSTEXPR A_Const(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - A_Const(const A_Const& from); - A_Const(A_Const&& from) noexcept - : A_Const() { - *this = ::std::move(from); - } - - inline A_Const& operator=(const A_Const& from) { - CopyFrom(from); - return *this; - } - inline A_Const& operator=(A_Const&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const A_Const& default_instance() { - return *internal_default_instance(); - } - enum ValCase { - kIval = 1, - kFval = 2, - kBoolval = 3, - kSval = 4, - kBsval = 5, - VAL_NOT_SET = 0, - }; - - static inline const A_Const* internal_default_instance() { - return reinterpret_cast( - &_A_Const_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(A_Const& a, A_Const& b) { - a.Swap(&b); - } - inline void Swap(A_Const* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(A_Const* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - A_Const* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const A_Const& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const A_Const& from) { - A_Const::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(A_Const* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.A_Const"; - } - protected: - explicit A_Const(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIsnullFieldNumber = 10, - kLocationFieldNumber = 11, - kIvalFieldNumber = 1, - kFvalFieldNumber = 2, - kBoolvalFieldNumber = 3, - kSvalFieldNumber = 4, - kBsvalFieldNumber = 5, - }; - // bool isnull = 10; - void clear_isnull(); - bool isnull() const; - void set_isnull(bool value); - private: - bool _internal_isnull() const; - void _internal_set_isnull(bool value); - public: - - // int32 location = 11; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // .pg_query.Integer ival = 1; - bool has_ival() const; - private: - bool _internal_has_ival() const; - public: - void clear_ival(); - const ::pg_query::Integer& ival() const; - PROTOBUF_NODISCARD ::pg_query::Integer* release_ival(); - ::pg_query::Integer* mutable_ival(); - void set_allocated_ival(::pg_query::Integer* ival); - private: - const ::pg_query::Integer& _internal_ival() const; - ::pg_query::Integer* _internal_mutable_ival(); - public: - void unsafe_arena_set_allocated_ival( - ::pg_query::Integer* ival); - ::pg_query::Integer* unsafe_arena_release_ival(); - - // .pg_query.Float fval = 2; - bool has_fval() const; - private: - bool _internal_has_fval() const; - public: - void clear_fval(); - const ::pg_query::Float& fval() const; - PROTOBUF_NODISCARD ::pg_query::Float* release_fval(); - ::pg_query::Float* mutable_fval(); - void set_allocated_fval(::pg_query::Float* fval); - private: - const ::pg_query::Float& _internal_fval() const; - ::pg_query::Float* _internal_mutable_fval(); - public: - void unsafe_arena_set_allocated_fval( - ::pg_query::Float* fval); - ::pg_query::Float* unsafe_arena_release_fval(); - - // .pg_query.Boolean boolval = 3; - bool has_boolval() const; - private: - bool _internal_has_boolval() const; - public: - void clear_boolval(); - const ::pg_query::Boolean& boolval() const; - PROTOBUF_NODISCARD ::pg_query::Boolean* release_boolval(); - ::pg_query::Boolean* mutable_boolval(); - void set_allocated_boolval(::pg_query::Boolean* boolval); - private: - const ::pg_query::Boolean& _internal_boolval() const; - ::pg_query::Boolean* _internal_mutable_boolval(); - public: - void unsafe_arena_set_allocated_boolval( - ::pg_query::Boolean* boolval); - ::pg_query::Boolean* unsafe_arena_release_boolval(); - - // .pg_query.String sval = 4; - bool has_sval() const; - private: - bool _internal_has_sval() const; - public: - void clear_sval(); - const ::pg_query::String& sval() const; - PROTOBUF_NODISCARD ::pg_query::String* release_sval(); - ::pg_query::String* mutable_sval(); - void set_allocated_sval(::pg_query::String* sval); - private: - const ::pg_query::String& _internal_sval() const; - ::pg_query::String* _internal_mutable_sval(); - public: - void unsafe_arena_set_allocated_sval( - ::pg_query::String* sval); - ::pg_query::String* unsafe_arena_release_sval(); - - // .pg_query.BitString bsval = 5; - bool has_bsval() const; - private: - bool _internal_has_bsval() const; - public: - void clear_bsval(); - const ::pg_query::BitString& bsval() const; - PROTOBUF_NODISCARD ::pg_query::BitString* release_bsval(); - ::pg_query::BitString* mutable_bsval(); - void set_allocated_bsval(::pg_query::BitString* bsval); - private: - const ::pg_query::BitString& _internal_bsval() const; - ::pg_query::BitString* _internal_mutable_bsval(); - public: - void unsafe_arena_set_allocated_bsval( - ::pg_query::BitString* bsval); - ::pg_query::BitString* unsafe_arena_release_bsval(); - - void clear_val(); - ValCase val_case() const; - // @@protoc_insertion_point(class_scope:pg_query.A_Const) - private: - class _Internal; - void set_has_ival(); - void set_has_fval(); - void set_has_boolval(); - void set_has_sval(); - void set_has_bsval(); - - inline bool has_val() const; - inline void clear_has_val(); - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - bool isnull_; - int32_t location_; - union ValUnion { - constexpr ValUnion() : _constinit_{} {} - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; - ::pg_query::Integer* ival_; - ::pg_query::Float* fval_; - ::pg_query::Boolean* boolval_; - ::pg_query::String* sval_; - ::pg_query::BitString* bsval_; - } val_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - uint32_t _oneof_case_[1]; - - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class Alias final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.Alias) */ { - public: - inline Alias() : Alias(nullptr) {} - ~Alias() override; - explicit PROTOBUF_CONSTEXPR Alias(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Alias(const Alias& from); - Alias(Alias&& from) noexcept - : Alias() { - *this = ::std::move(from); - } - - inline Alias& operator=(const Alias& from) { - CopyFrom(from); - return *this; - } - inline Alias& operator=(Alias&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Alias& default_instance() { - return *internal_default_instance(); - } - static inline const Alias* internal_default_instance() { - return reinterpret_cast( - &_Alias_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(Alias& a, Alias& b) { - a.Swap(&b); - } - inline void Swap(Alias* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Alias* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Alias* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Alias& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Alias& from) { - Alias::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Alias* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.Alias"; - } - protected: - explicit Alias(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kColnamesFieldNumber = 2, - kAliasnameFieldNumber = 1, - }; - // repeated .pg_query.Node colnames = 2 [json_name = "colnames"]; - int colnames_size() const; - private: - int _internal_colnames_size() const; - public: - void clear_colnames(); - ::pg_query::Node* mutable_colnames(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_colnames(); - private: - const ::pg_query::Node& _internal_colnames(int index) const; - ::pg_query::Node* _internal_add_colnames(); - public: - const ::pg_query::Node& colnames(int index) const; - ::pg_query::Node* add_colnames(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - colnames() const; - - // string aliasname = 1 [json_name = "aliasname"]; - void clear_aliasname(); - const std::string& aliasname() const; - template - void set_aliasname(ArgT0&& arg0, ArgT... args); - std::string* mutable_aliasname(); - PROTOBUF_NODISCARD std::string* release_aliasname(); - void set_allocated_aliasname(std::string* aliasname); - private: - const std::string& _internal_aliasname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_aliasname(const std::string& value); - std::string* _internal_mutable_aliasname(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.Alias) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > colnames_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr aliasname_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class RangeVar final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.RangeVar) */ { - public: - inline RangeVar() : RangeVar(nullptr) {} - ~RangeVar() override; - explicit PROTOBUF_CONSTEXPR RangeVar(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - RangeVar(const RangeVar& from); - RangeVar(RangeVar&& from) noexcept - : RangeVar() { - *this = ::std::move(from); - } - - inline RangeVar& operator=(const RangeVar& from) { - CopyFrom(from); - return *this; - } - inline RangeVar& operator=(RangeVar&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RangeVar& default_instance() { - return *internal_default_instance(); - } - static inline const RangeVar* internal_default_instance() { - return reinterpret_cast( - &_RangeVar_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(RangeVar& a, RangeVar& b) { - a.Swap(&b); - } - inline void Swap(RangeVar* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RangeVar* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RangeVar* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RangeVar& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RangeVar& from) { - RangeVar::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RangeVar* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.RangeVar"; - } - protected: - explicit RangeVar(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCatalognameFieldNumber = 1, - kSchemanameFieldNumber = 2, - kRelnameFieldNumber = 3, - kRelpersistenceFieldNumber = 5, - kAliasFieldNumber = 6, - kInhFieldNumber = 4, - kLocationFieldNumber = 7, - }; - // string catalogname = 1 [json_name = "catalogname"]; - void clear_catalogname(); - const std::string& catalogname() const; - template - void set_catalogname(ArgT0&& arg0, ArgT... args); - std::string* mutable_catalogname(); - PROTOBUF_NODISCARD std::string* release_catalogname(); - void set_allocated_catalogname(std::string* catalogname); - private: - const std::string& _internal_catalogname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_catalogname(const std::string& value); - std::string* _internal_mutable_catalogname(); - public: - - // string schemaname = 2 [json_name = "schemaname"]; - void clear_schemaname(); - const std::string& schemaname() const; - template - void set_schemaname(ArgT0&& arg0, ArgT... args); - std::string* mutable_schemaname(); - PROTOBUF_NODISCARD std::string* release_schemaname(); - void set_allocated_schemaname(std::string* schemaname); - private: - const std::string& _internal_schemaname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_schemaname(const std::string& value); - std::string* _internal_mutable_schemaname(); - public: - - // string relname = 3 [json_name = "relname"]; - void clear_relname(); - const std::string& relname() const; - template - void set_relname(ArgT0&& arg0, ArgT... args); - std::string* mutable_relname(); - PROTOBUF_NODISCARD std::string* release_relname(); - void set_allocated_relname(std::string* relname); - private: - const std::string& _internal_relname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_relname(const std::string& value); - std::string* _internal_mutable_relname(); - public: - - // string relpersistence = 5 [json_name = "relpersistence"]; - void clear_relpersistence(); - const std::string& relpersistence() const; - template - void set_relpersistence(ArgT0&& arg0, ArgT... args); - std::string* mutable_relpersistence(); - PROTOBUF_NODISCARD std::string* release_relpersistence(); - void set_allocated_relpersistence(std::string* relpersistence); - private: - const std::string& _internal_relpersistence() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_relpersistence(const std::string& value); - std::string* _internal_mutable_relpersistence(); - public: - - // .pg_query.Alias alias = 6 [json_name = "alias"]; - bool has_alias() const; - private: - bool _internal_has_alias() const; - public: - void clear_alias(); - const ::pg_query::Alias& alias() const; - PROTOBUF_NODISCARD ::pg_query::Alias* release_alias(); - ::pg_query::Alias* mutable_alias(); - void set_allocated_alias(::pg_query::Alias* alias); - private: - const ::pg_query::Alias& _internal_alias() const; - ::pg_query::Alias* _internal_mutable_alias(); - public: - void unsafe_arena_set_allocated_alias( - ::pg_query::Alias* alias); - ::pg_query::Alias* unsafe_arena_release_alias(); - - // bool inh = 4 [json_name = "inh"]; - void clear_inh(); - bool inh() const; - void set_inh(bool value); - private: - bool _internal_inh() const; - void _internal_set_inh(bool value); - public: - - // int32 location = 7 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.RangeVar) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalogname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schemaname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr relname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr relpersistence_; - ::pg_query::Alias* alias_; - bool inh_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class TableFunc final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.TableFunc) */ { - public: - inline TableFunc() : TableFunc(nullptr) {} - ~TableFunc() override; - explicit PROTOBUF_CONSTEXPR TableFunc(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - TableFunc(const TableFunc& from); - TableFunc(TableFunc&& from) noexcept - : TableFunc() { - *this = ::std::move(from); - } - - inline TableFunc& operator=(const TableFunc& from) { - CopyFrom(from); - return *this; - } - inline TableFunc& operator=(TableFunc&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TableFunc& default_instance() { - return *internal_default_instance(); - } - static inline const TableFunc* internal_default_instance() { - return reinterpret_cast( - &_TableFunc_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(TableFunc& a, TableFunc& b) { - a.Swap(&b); - } - inline void Swap(TableFunc* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TableFunc* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TableFunc* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const TableFunc& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const TableFunc& from) { - TableFunc::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TableFunc* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.TableFunc"; - } - protected: - explicit TableFunc(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNsUrisFieldNumber = 1, - kNsNamesFieldNumber = 2, - kColnamesFieldNumber = 5, - kColtypesFieldNumber = 6, - kColtypmodsFieldNumber = 7, - kColcollationsFieldNumber = 8, - kColexprsFieldNumber = 9, - kColdefexprsFieldNumber = 10, - kNotnullsFieldNumber = 11, - kDocexprFieldNumber = 3, - kRowexprFieldNumber = 4, - kOrdinalitycolFieldNumber = 12, - kLocationFieldNumber = 13, - }; - // repeated .pg_query.Node ns_uris = 1 [json_name = "ns_uris"]; - int ns_uris_size() const; - private: - int _internal_ns_uris_size() const; - public: - void clear_ns_uris(); - ::pg_query::Node* mutable_ns_uris(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_ns_uris(); - private: - const ::pg_query::Node& _internal_ns_uris(int index) const; - ::pg_query::Node* _internal_add_ns_uris(); - public: - const ::pg_query::Node& ns_uris(int index) const; - ::pg_query::Node* add_ns_uris(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - ns_uris() const; - - // repeated .pg_query.Node ns_names = 2 [json_name = "ns_names"]; - int ns_names_size() const; - private: - int _internal_ns_names_size() const; - public: - void clear_ns_names(); - ::pg_query::Node* mutable_ns_names(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_ns_names(); - private: - const ::pg_query::Node& _internal_ns_names(int index) const; - ::pg_query::Node* _internal_add_ns_names(); - public: - const ::pg_query::Node& ns_names(int index) const; - ::pg_query::Node* add_ns_names(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - ns_names() const; - - // repeated .pg_query.Node colnames = 5 [json_name = "colnames"]; - int colnames_size() const; - private: - int _internal_colnames_size() const; - public: - void clear_colnames(); - ::pg_query::Node* mutable_colnames(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_colnames(); - private: - const ::pg_query::Node& _internal_colnames(int index) const; - ::pg_query::Node* _internal_add_colnames(); - public: - const ::pg_query::Node& colnames(int index) const; - ::pg_query::Node* add_colnames(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - colnames() const; - - // repeated .pg_query.Node coltypes = 6 [json_name = "coltypes"]; - int coltypes_size() const; - private: - int _internal_coltypes_size() const; - public: - void clear_coltypes(); - ::pg_query::Node* mutable_coltypes(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_coltypes(); - private: - const ::pg_query::Node& _internal_coltypes(int index) const; - ::pg_query::Node* _internal_add_coltypes(); - public: - const ::pg_query::Node& coltypes(int index) const; - ::pg_query::Node* add_coltypes(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - coltypes() const; - - // repeated .pg_query.Node coltypmods = 7 [json_name = "coltypmods"]; - int coltypmods_size() const; - private: - int _internal_coltypmods_size() const; - public: - void clear_coltypmods(); - ::pg_query::Node* mutable_coltypmods(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_coltypmods(); - private: - const ::pg_query::Node& _internal_coltypmods(int index) const; - ::pg_query::Node* _internal_add_coltypmods(); - public: - const ::pg_query::Node& coltypmods(int index) const; - ::pg_query::Node* add_coltypmods(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - coltypmods() const; - - // repeated .pg_query.Node colcollations = 8 [json_name = "colcollations"]; - int colcollations_size() const; - private: - int _internal_colcollations_size() const; - public: - void clear_colcollations(); - ::pg_query::Node* mutable_colcollations(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_colcollations(); - private: - const ::pg_query::Node& _internal_colcollations(int index) const; - ::pg_query::Node* _internal_add_colcollations(); - public: - const ::pg_query::Node& colcollations(int index) const; - ::pg_query::Node* add_colcollations(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - colcollations() const; - - // repeated .pg_query.Node colexprs = 9 [json_name = "colexprs"]; - int colexprs_size() const; - private: - int _internal_colexprs_size() const; - public: - void clear_colexprs(); - ::pg_query::Node* mutable_colexprs(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_colexprs(); - private: - const ::pg_query::Node& _internal_colexprs(int index) const; - ::pg_query::Node* _internal_add_colexprs(); - public: - const ::pg_query::Node& colexprs(int index) const; - ::pg_query::Node* add_colexprs(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - colexprs() const; - - // repeated .pg_query.Node coldefexprs = 10 [json_name = "coldefexprs"]; - int coldefexprs_size() const; - private: - int _internal_coldefexprs_size() const; - public: - void clear_coldefexprs(); - ::pg_query::Node* mutable_coldefexprs(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_coldefexprs(); - private: - const ::pg_query::Node& _internal_coldefexprs(int index) const; - ::pg_query::Node* _internal_add_coldefexprs(); - public: - const ::pg_query::Node& coldefexprs(int index) const; - ::pg_query::Node* add_coldefexprs(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - coldefexprs() const; - - // repeated uint64 notnulls = 11 [json_name = "notnulls"]; - int notnulls_size() const; - private: - int _internal_notnulls_size() const; - public: - void clear_notnulls(); - private: - uint64_t _internal_notnulls(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& - _internal_notnulls() const; - void _internal_add_notnulls(uint64_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* - _internal_mutable_notnulls(); - public: - uint64_t notnulls(int index) const; - void set_notnulls(int index, uint64_t value); - void add_notnulls(uint64_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& - notnulls() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* - mutable_notnulls(); - - // .pg_query.Node docexpr = 3 [json_name = "docexpr"]; - bool has_docexpr() const; - private: - bool _internal_has_docexpr() const; - public: - void clear_docexpr(); - const ::pg_query::Node& docexpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_docexpr(); - ::pg_query::Node* mutable_docexpr(); - void set_allocated_docexpr(::pg_query::Node* docexpr); - private: - const ::pg_query::Node& _internal_docexpr() const; - ::pg_query::Node* _internal_mutable_docexpr(); - public: - void unsafe_arena_set_allocated_docexpr( - ::pg_query::Node* docexpr); - ::pg_query::Node* unsafe_arena_release_docexpr(); - - // .pg_query.Node rowexpr = 4 [json_name = "rowexpr"]; - bool has_rowexpr() const; - private: - bool _internal_has_rowexpr() const; - public: - void clear_rowexpr(); - const ::pg_query::Node& rowexpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_rowexpr(); - ::pg_query::Node* mutable_rowexpr(); - void set_allocated_rowexpr(::pg_query::Node* rowexpr); - private: - const ::pg_query::Node& _internal_rowexpr() const; - ::pg_query::Node* _internal_mutable_rowexpr(); - public: - void unsafe_arena_set_allocated_rowexpr( - ::pg_query::Node* rowexpr); - ::pg_query::Node* unsafe_arena_release_rowexpr(); - - // int32 ordinalitycol = 12 [json_name = "ordinalitycol"]; - void clear_ordinalitycol(); - int32_t ordinalitycol() const; - void set_ordinalitycol(int32_t value); - private: - int32_t _internal_ordinalitycol() const; - void _internal_set_ordinalitycol(int32_t value); - public: - - // int32 location = 13 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.TableFunc) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > ns_uris_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > ns_names_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > colnames_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > coltypes_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > coltypmods_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > colcollations_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > colexprs_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > coldefexprs_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t > notnulls_; - mutable std::atomic _notnulls_cached_byte_size_; - ::pg_query::Node* docexpr_; - ::pg_query::Node* rowexpr_; - int32_t ordinalitycol_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class Var final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.Var) */ { - public: - inline Var() : Var(nullptr) {} - ~Var() override; - explicit PROTOBUF_CONSTEXPR Var(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Var(const Var& from); - Var(Var&& from) noexcept - : Var() { - *this = ::std::move(from); - } - - inline Var& operator=(const Var& from) { - CopyFrom(from); - return *this; - } - inline Var& operator=(Var&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Var& default_instance() { - return *internal_default_instance(); - } - static inline const Var* internal_default_instance() { - return reinterpret_cast( - &_Var_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(Var& a, Var& b) { - a.Swap(&b); - } - inline void Swap(Var* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Var* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Var* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Var& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Var& from) { - Var::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Var* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.Var"; - } - protected: - explicit Var(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXprFieldNumber = 1, - kVarnoFieldNumber = 2, - kVarattnoFieldNumber = 3, - kVartypeFieldNumber = 4, - kVartypmodFieldNumber = 5, - kVarcollidFieldNumber = 6, - kVarlevelsupFieldNumber = 7, - kVarnosynFieldNumber = 8, - kVarattnosynFieldNumber = 9, - kLocationFieldNumber = 10, - }; - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // int32 varno = 2 [json_name = "varno"]; - void clear_varno(); - int32_t varno() const; - void set_varno(int32_t value); - private: - int32_t _internal_varno() const; - void _internal_set_varno(int32_t value); - public: - - // int32 varattno = 3 [json_name = "varattno"]; - void clear_varattno(); - int32_t varattno() const; - void set_varattno(int32_t value); - private: - int32_t _internal_varattno() const; - void _internal_set_varattno(int32_t value); - public: - - // uint32 vartype = 4 [json_name = "vartype"]; - void clear_vartype(); - uint32_t vartype() const; - void set_vartype(uint32_t value); - private: - uint32_t _internal_vartype() const; - void _internal_set_vartype(uint32_t value); - public: - - // int32 vartypmod = 5 [json_name = "vartypmod"]; - void clear_vartypmod(); - int32_t vartypmod() const; - void set_vartypmod(int32_t value); - private: - int32_t _internal_vartypmod() const; - void _internal_set_vartypmod(int32_t value); - public: - - // uint32 varcollid = 6 [json_name = "varcollid"]; - void clear_varcollid(); - uint32_t varcollid() const; - void set_varcollid(uint32_t value); - private: - uint32_t _internal_varcollid() const; - void _internal_set_varcollid(uint32_t value); - public: - - // uint32 varlevelsup = 7 [json_name = "varlevelsup"]; - void clear_varlevelsup(); - uint32_t varlevelsup() const; - void set_varlevelsup(uint32_t value); - private: - uint32_t _internal_varlevelsup() const; - void _internal_set_varlevelsup(uint32_t value); - public: - - // uint32 varnosyn = 8 [json_name = "varnosyn"]; - void clear_varnosyn(); - uint32_t varnosyn() const; - void set_varnosyn(uint32_t value); - private: - uint32_t _internal_varnosyn() const; - void _internal_set_varnosyn(uint32_t value); - public: - - // int32 varattnosyn = 9 [json_name = "varattnosyn"]; - void clear_varattnosyn(); - int32_t varattnosyn() const; - void set_varattnosyn(int32_t value); - private: - int32_t _internal_varattnosyn() const; - void _internal_set_varattnosyn(int32_t value); - public: - - // int32 location = 10 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.Var) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* xpr_; - int32_t varno_; - int32_t varattno_; - uint32_t vartype_; - int32_t vartypmod_; - uint32_t varcollid_; - uint32_t varlevelsup_; - uint32_t varnosyn_; - int32_t varattnosyn_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class Param final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.Param) */ { - public: - inline Param() : Param(nullptr) {} - ~Param() override; - explicit PROTOBUF_CONSTEXPR Param(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Param(const Param& from); - Param(Param&& from) noexcept - : Param() { - *this = ::std::move(from); - } - - inline Param& operator=(const Param& from) { - CopyFrom(from); - return *this; - } - inline Param& operator=(Param&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Param& default_instance() { - return *internal_default_instance(); - } - static inline const Param* internal_default_instance() { - return reinterpret_cast( - &_Param_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - friend void swap(Param& a, Param& b) { - a.Swap(&b); - } - inline void Swap(Param* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Param* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Param* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Param& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Param& from) { - Param::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Param* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.Param"; - } - protected: - explicit Param(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXprFieldNumber = 1, - kParamkindFieldNumber = 2, - kParamidFieldNumber = 3, - kParamtypeFieldNumber = 4, - kParamtypmodFieldNumber = 5, - kParamcollidFieldNumber = 6, - kLocationFieldNumber = 7, - }; - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.ParamKind paramkind = 2 [json_name = "paramkind"]; - void clear_paramkind(); - ::pg_query::ParamKind paramkind() const; - void set_paramkind(::pg_query::ParamKind value); - private: - ::pg_query::ParamKind _internal_paramkind() const; - void _internal_set_paramkind(::pg_query::ParamKind value); - public: - - // int32 paramid = 3 [json_name = "paramid"]; - void clear_paramid(); - int32_t paramid() const; - void set_paramid(int32_t value); - private: - int32_t _internal_paramid() const; - void _internal_set_paramid(int32_t value); - public: - - // uint32 paramtype = 4 [json_name = "paramtype"]; - void clear_paramtype(); - uint32_t paramtype() const; - void set_paramtype(uint32_t value); - private: - uint32_t _internal_paramtype() const; - void _internal_set_paramtype(uint32_t value); - public: - - // int32 paramtypmod = 5 [json_name = "paramtypmod"]; - void clear_paramtypmod(); - int32_t paramtypmod() const; - void set_paramtypmod(int32_t value); - private: - int32_t _internal_paramtypmod() const; - void _internal_set_paramtypmod(int32_t value); - public: - - // uint32 paramcollid = 6 [json_name = "paramcollid"]; - void clear_paramcollid(); - uint32_t paramcollid() const; - void set_paramcollid(uint32_t value); - private: - uint32_t _internal_paramcollid() const; - void _internal_set_paramcollid(uint32_t value); - public: - - // int32 location = 7 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.Param) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* xpr_; - int paramkind_; - int32_t paramid_; - uint32_t paramtype_; - int32_t paramtypmod_; - uint32_t paramcollid_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class Aggref final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.Aggref) */ { - public: - inline Aggref() : Aggref(nullptr) {} - ~Aggref() override; - explicit PROTOBUF_CONSTEXPR Aggref(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Aggref(const Aggref& from); - Aggref(Aggref&& from) noexcept - : Aggref() { - *this = ::std::move(from); - } - - inline Aggref& operator=(const Aggref& from) { - CopyFrom(from); - return *this; - } - inline Aggref& operator=(Aggref&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Aggref& default_instance() { - return *internal_default_instance(); - } - static inline const Aggref* internal_default_instance() { - return reinterpret_cast( - &_Aggref_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - friend void swap(Aggref& a, Aggref& b) { - a.Swap(&b); - } - inline void Swap(Aggref* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Aggref* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Aggref* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Aggref& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Aggref& from) { - Aggref::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Aggref* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.Aggref"; - } - protected: - explicit Aggref(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAggargtypesFieldNumber = 7, - kAggdirectargsFieldNumber = 8, - kArgsFieldNumber = 9, - kAggorderFieldNumber = 10, - kAggdistinctFieldNumber = 11, - kAggkindFieldNumber = 15, - kXprFieldNumber = 1, - kAggfilterFieldNumber = 12, - kAggfnoidFieldNumber = 2, - kAggtypeFieldNumber = 3, - kAggcollidFieldNumber = 4, - kInputcollidFieldNumber = 5, - kAggtranstypeFieldNumber = 6, - kAggstarFieldNumber = 13, - kAggvariadicFieldNumber = 14, - kAgglevelsupFieldNumber = 16, - kAggsplitFieldNumber = 17, - kAggnoFieldNumber = 18, - kAggtransnoFieldNumber = 19, - kLocationFieldNumber = 20, - }; - // repeated .pg_query.Node aggargtypes = 7 [json_name = "aggargtypes"]; - int aggargtypes_size() const; - private: - int _internal_aggargtypes_size() const; - public: - void clear_aggargtypes(); - ::pg_query::Node* mutable_aggargtypes(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_aggargtypes(); - private: - const ::pg_query::Node& _internal_aggargtypes(int index) const; - ::pg_query::Node* _internal_add_aggargtypes(); - public: - const ::pg_query::Node& aggargtypes(int index) const; - ::pg_query::Node* add_aggargtypes(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - aggargtypes() const; - - // repeated .pg_query.Node aggdirectargs = 8 [json_name = "aggdirectargs"]; - int aggdirectargs_size() const; - private: - int _internal_aggdirectargs_size() const; - public: - void clear_aggdirectargs(); - ::pg_query::Node* mutable_aggdirectargs(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_aggdirectargs(); - private: - const ::pg_query::Node& _internal_aggdirectargs(int index) const; - ::pg_query::Node* _internal_add_aggdirectargs(); - public: - const ::pg_query::Node& aggdirectargs(int index) const; - ::pg_query::Node* add_aggdirectargs(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - aggdirectargs() const; - - // repeated .pg_query.Node args = 9 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // repeated .pg_query.Node aggorder = 10 [json_name = "aggorder"]; - int aggorder_size() const; - private: - int _internal_aggorder_size() const; - public: - void clear_aggorder(); - ::pg_query::Node* mutable_aggorder(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_aggorder(); - private: - const ::pg_query::Node& _internal_aggorder(int index) const; - ::pg_query::Node* _internal_add_aggorder(); - public: - const ::pg_query::Node& aggorder(int index) const; - ::pg_query::Node* add_aggorder(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - aggorder() const; - - // repeated .pg_query.Node aggdistinct = 11 [json_name = "aggdistinct"]; - int aggdistinct_size() const; - private: - int _internal_aggdistinct_size() const; - public: - void clear_aggdistinct(); - ::pg_query::Node* mutable_aggdistinct(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_aggdistinct(); - private: - const ::pg_query::Node& _internal_aggdistinct(int index) const; - ::pg_query::Node* _internal_add_aggdistinct(); - public: - const ::pg_query::Node& aggdistinct(int index) const; - ::pg_query::Node* add_aggdistinct(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - aggdistinct() const; - - // string aggkind = 15 [json_name = "aggkind"]; - void clear_aggkind(); - const std::string& aggkind() const; - template - void set_aggkind(ArgT0&& arg0, ArgT... args); - std::string* mutable_aggkind(); - PROTOBUF_NODISCARD std::string* release_aggkind(); - void set_allocated_aggkind(std::string* aggkind); - private: - const std::string& _internal_aggkind() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_aggkind(const std::string& value); - std::string* _internal_mutable_aggkind(); - public: - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.Node aggfilter = 12 [json_name = "aggfilter"]; - bool has_aggfilter() const; - private: - bool _internal_has_aggfilter() const; - public: - void clear_aggfilter(); - const ::pg_query::Node& aggfilter() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_aggfilter(); - ::pg_query::Node* mutable_aggfilter(); - void set_allocated_aggfilter(::pg_query::Node* aggfilter); - private: - const ::pg_query::Node& _internal_aggfilter() const; - ::pg_query::Node* _internal_mutable_aggfilter(); - public: - void unsafe_arena_set_allocated_aggfilter( - ::pg_query::Node* aggfilter); - ::pg_query::Node* unsafe_arena_release_aggfilter(); - - // uint32 aggfnoid = 2 [json_name = "aggfnoid"]; - void clear_aggfnoid(); - uint32_t aggfnoid() const; - void set_aggfnoid(uint32_t value); - private: - uint32_t _internal_aggfnoid() const; - void _internal_set_aggfnoid(uint32_t value); - public: - - // uint32 aggtype = 3 [json_name = "aggtype"]; - void clear_aggtype(); - uint32_t aggtype() const; - void set_aggtype(uint32_t value); - private: - uint32_t _internal_aggtype() const; - void _internal_set_aggtype(uint32_t value); - public: - - // uint32 aggcollid = 4 [json_name = "aggcollid"]; - void clear_aggcollid(); - uint32_t aggcollid() const; - void set_aggcollid(uint32_t value); - private: - uint32_t _internal_aggcollid() const; - void _internal_set_aggcollid(uint32_t value); - public: - - // uint32 inputcollid = 5 [json_name = "inputcollid"]; - void clear_inputcollid(); - uint32_t inputcollid() const; - void set_inputcollid(uint32_t value); - private: - uint32_t _internal_inputcollid() const; - void _internal_set_inputcollid(uint32_t value); - public: - - // uint32 aggtranstype = 6 [json_name = "aggtranstype"]; - void clear_aggtranstype(); - uint32_t aggtranstype() const; - void set_aggtranstype(uint32_t value); - private: - uint32_t _internal_aggtranstype() const; - void _internal_set_aggtranstype(uint32_t value); - public: - - // bool aggstar = 13 [json_name = "aggstar"]; - void clear_aggstar(); - bool aggstar() const; - void set_aggstar(bool value); - private: - bool _internal_aggstar() const; - void _internal_set_aggstar(bool value); - public: - - // bool aggvariadic = 14 [json_name = "aggvariadic"]; - void clear_aggvariadic(); - bool aggvariadic() const; - void set_aggvariadic(bool value); - private: - bool _internal_aggvariadic() const; - void _internal_set_aggvariadic(bool value); - public: - - // uint32 agglevelsup = 16 [json_name = "agglevelsup"]; - void clear_agglevelsup(); - uint32_t agglevelsup() const; - void set_agglevelsup(uint32_t value); - private: - uint32_t _internal_agglevelsup() const; - void _internal_set_agglevelsup(uint32_t value); - public: - - // .pg_query.AggSplit aggsplit = 17 [json_name = "aggsplit"]; - void clear_aggsplit(); - ::pg_query::AggSplit aggsplit() const; - void set_aggsplit(::pg_query::AggSplit value); - private: - ::pg_query::AggSplit _internal_aggsplit() const; - void _internal_set_aggsplit(::pg_query::AggSplit value); - public: - - // int32 aggno = 18 [json_name = "aggno"]; - void clear_aggno(); - int32_t aggno() const; - void set_aggno(int32_t value); - private: - int32_t _internal_aggno() const; - void _internal_set_aggno(int32_t value); - public: - - // int32 aggtransno = 19 [json_name = "aggtransno"]; - void clear_aggtransno(); - int32_t aggtransno() const; - void set_aggtransno(int32_t value); - private: - int32_t _internal_aggtransno() const; - void _internal_set_aggtransno(int32_t value); - public: - - // int32 location = 20 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.Aggref) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > aggargtypes_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > aggdirectargs_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > aggorder_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > aggdistinct_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr aggkind_; - ::pg_query::Node* xpr_; - ::pg_query::Node* aggfilter_; - uint32_t aggfnoid_; - uint32_t aggtype_; - uint32_t aggcollid_; - uint32_t inputcollid_; - uint32_t aggtranstype_; - bool aggstar_; - bool aggvariadic_; - uint32_t agglevelsup_; - int aggsplit_; - int32_t aggno_; - int32_t aggtransno_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class GroupingFunc final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.GroupingFunc) */ { - public: - inline GroupingFunc() : GroupingFunc(nullptr) {} - ~GroupingFunc() override; - explicit PROTOBUF_CONSTEXPR GroupingFunc(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - GroupingFunc(const GroupingFunc& from); - GroupingFunc(GroupingFunc&& from) noexcept - : GroupingFunc() { - *this = ::std::move(from); - } - - inline GroupingFunc& operator=(const GroupingFunc& from) { - CopyFrom(from); - return *this; - } - inline GroupingFunc& operator=(GroupingFunc&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GroupingFunc& default_instance() { - return *internal_default_instance(); - } - static inline const GroupingFunc* internal_default_instance() { - return reinterpret_cast( - &_GroupingFunc_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - friend void swap(GroupingFunc& a, GroupingFunc& b) { - a.Swap(&b); - } - inline void Swap(GroupingFunc* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GroupingFunc* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GroupingFunc* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GroupingFunc& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const GroupingFunc& from) { - GroupingFunc::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GroupingFunc* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.GroupingFunc"; - } - protected: - explicit GroupingFunc(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArgsFieldNumber = 2, - kRefsFieldNumber = 3, - kColsFieldNumber = 4, - kXprFieldNumber = 1, - kAgglevelsupFieldNumber = 5, - kLocationFieldNumber = 6, - }; - // repeated .pg_query.Node args = 2 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // repeated .pg_query.Node refs = 3 [json_name = "refs"]; - int refs_size() const; - private: - int _internal_refs_size() const; - public: - void clear_refs(); - ::pg_query::Node* mutable_refs(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_refs(); - private: - const ::pg_query::Node& _internal_refs(int index) const; - ::pg_query::Node* _internal_add_refs(); - public: - const ::pg_query::Node& refs(int index) const; - ::pg_query::Node* add_refs(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - refs() const; - - // repeated .pg_query.Node cols = 4 [json_name = "cols"]; - int cols_size() const; - private: - int _internal_cols_size() const; - public: - void clear_cols(); - ::pg_query::Node* mutable_cols(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_cols(); - private: - const ::pg_query::Node& _internal_cols(int index) const; - ::pg_query::Node* _internal_add_cols(); - public: - const ::pg_query::Node& cols(int index) const; - ::pg_query::Node* add_cols(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - cols() const; - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // uint32 agglevelsup = 5 [json_name = "agglevelsup"]; - void clear_agglevelsup(); - uint32_t agglevelsup() const; - void set_agglevelsup(uint32_t value); - private: - uint32_t _internal_agglevelsup() const; - void _internal_set_agglevelsup(uint32_t value); - public: - - // int32 location = 6 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.GroupingFunc) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > refs_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > cols_; - ::pg_query::Node* xpr_; - uint32_t agglevelsup_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class WindowFunc final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.WindowFunc) */ { - public: - inline WindowFunc() : WindowFunc(nullptr) {} - ~WindowFunc() override; - explicit PROTOBUF_CONSTEXPR WindowFunc(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - WindowFunc(const WindowFunc& from); - WindowFunc(WindowFunc&& from) noexcept - : WindowFunc() { - *this = ::std::move(from); - } - - inline WindowFunc& operator=(const WindowFunc& from) { - CopyFrom(from); - return *this; - } - inline WindowFunc& operator=(WindowFunc&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const WindowFunc& default_instance() { - return *internal_default_instance(); - } - static inline const WindowFunc* internal_default_instance() { - return reinterpret_cast( - &_WindowFunc_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - friend void swap(WindowFunc& a, WindowFunc& b) { - a.Swap(&b); - } - inline void Swap(WindowFunc* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(WindowFunc* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - WindowFunc* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const WindowFunc& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const WindowFunc& from) { - WindowFunc::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(WindowFunc* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.WindowFunc"; - } - protected: - explicit WindowFunc(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArgsFieldNumber = 6, - kXprFieldNumber = 1, - kAggfilterFieldNumber = 7, - kWinfnoidFieldNumber = 2, - kWintypeFieldNumber = 3, - kWincollidFieldNumber = 4, - kInputcollidFieldNumber = 5, - kWinrefFieldNumber = 8, - kWinstarFieldNumber = 9, - kWinaggFieldNumber = 10, - kLocationFieldNumber = 11, - }; - // repeated .pg_query.Node args = 6 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.Node aggfilter = 7 [json_name = "aggfilter"]; - bool has_aggfilter() const; - private: - bool _internal_has_aggfilter() const; - public: - void clear_aggfilter(); - const ::pg_query::Node& aggfilter() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_aggfilter(); - ::pg_query::Node* mutable_aggfilter(); - void set_allocated_aggfilter(::pg_query::Node* aggfilter); - private: - const ::pg_query::Node& _internal_aggfilter() const; - ::pg_query::Node* _internal_mutable_aggfilter(); - public: - void unsafe_arena_set_allocated_aggfilter( - ::pg_query::Node* aggfilter); - ::pg_query::Node* unsafe_arena_release_aggfilter(); - - // uint32 winfnoid = 2 [json_name = "winfnoid"]; - void clear_winfnoid(); - uint32_t winfnoid() const; - void set_winfnoid(uint32_t value); - private: - uint32_t _internal_winfnoid() const; - void _internal_set_winfnoid(uint32_t value); - public: - - // uint32 wintype = 3 [json_name = "wintype"]; - void clear_wintype(); - uint32_t wintype() const; - void set_wintype(uint32_t value); - private: - uint32_t _internal_wintype() const; - void _internal_set_wintype(uint32_t value); - public: - - // uint32 wincollid = 4 [json_name = "wincollid"]; - void clear_wincollid(); - uint32_t wincollid() const; - void set_wincollid(uint32_t value); - private: - uint32_t _internal_wincollid() const; - void _internal_set_wincollid(uint32_t value); - public: - - // uint32 inputcollid = 5 [json_name = "inputcollid"]; - void clear_inputcollid(); - uint32_t inputcollid() const; - void set_inputcollid(uint32_t value); - private: - uint32_t _internal_inputcollid() const; - void _internal_set_inputcollid(uint32_t value); - public: - - // uint32 winref = 8 [json_name = "winref"]; - void clear_winref(); - uint32_t winref() const; - void set_winref(uint32_t value); - private: - uint32_t _internal_winref() const; - void _internal_set_winref(uint32_t value); - public: - - // bool winstar = 9 [json_name = "winstar"]; - void clear_winstar(); - bool winstar() const; - void set_winstar(bool value); - private: - bool _internal_winstar() const; - void _internal_set_winstar(bool value); - public: - - // bool winagg = 10 [json_name = "winagg"]; - void clear_winagg(); - bool winagg() const; - void set_winagg(bool value); - private: - bool _internal_winagg() const; - void _internal_set_winagg(bool value); - public: - - // int32 location = 11 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.WindowFunc) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - ::pg_query::Node* xpr_; - ::pg_query::Node* aggfilter_; - uint32_t winfnoid_; - uint32_t wintype_; - uint32_t wincollid_; - uint32_t inputcollid_; - uint32_t winref_; - bool winstar_; - bool winagg_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class SubscriptingRef final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.SubscriptingRef) */ { - public: - inline SubscriptingRef() : SubscriptingRef(nullptr) {} - ~SubscriptingRef() override; - explicit PROTOBUF_CONSTEXPR SubscriptingRef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SubscriptingRef(const SubscriptingRef& from); - SubscriptingRef(SubscriptingRef&& from) noexcept - : SubscriptingRef() { - *this = ::std::move(from); - } - - inline SubscriptingRef& operator=(const SubscriptingRef& from) { - CopyFrom(from); - return *this; - } - inline SubscriptingRef& operator=(SubscriptingRef&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SubscriptingRef& default_instance() { - return *internal_default_instance(); - } - static inline const SubscriptingRef* internal_default_instance() { - return reinterpret_cast( - &_SubscriptingRef_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - friend void swap(SubscriptingRef& a, SubscriptingRef& b) { - a.Swap(&b); - } - inline void Swap(SubscriptingRef* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SubscriptingRef* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SubscriptingRef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SubscriptingRef& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SubscriptingRef& from) { - SubscriptingRef::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SubscriptingRef* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.SubscriptingRef"; - } - protected: - explicit SubscriptingRef(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRefupperindexprFieldNumber = 7, - kReflowerindexprFieldNumber = 8, - kXprFieldNumber = 1, - kRefexprFieldNumber = 9, - kRefassgnexprFieldNumber = 10, - kRefcontainertypeFieldNumber = 2, - kRefelemtypeFieldNumber = 3, - kRefrestypeFieldNumber = 4, - kReftypmodFieldNumber = 5, - kRefcollidFieldNumber = 6, - }; - // repeated .pg_query.Node refupperindexpr = 7 [json_name = "refupperindexpr"]; - int refupperindexpr_size() const; - private: - int _internal_refupperindexpr_size() const; - public: - void clear_refupperindexpr(); - ::pg_query::Node* mutable_refupperindexpr(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_refupperindexpr(); - private: - const ::pg_query::Node& _internal_refupperindexpr(int index) const; - ::pg_query::Node* _internal_add_refupperindexpr(); - public: - const ::pg_query::Node& refupperindexpr(int index) const; - ::pg_query::Node* add_refupperindexpr(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - refupperindexpr() const; - - // repeated .pg_query.Node reflowerindexpr = 8 [json_name = "reflowerindexpr"]; - int reflowerindexpr_size() const; - private: - int _internal_reflowerindexpr_size() const; - public: - void clear_reflowerindexpr(); - ::pg_query::Node* mutable_reflowerindexpr(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_reflowerindexpr(); - private: - const ::pg_query::Node& _internal_reflowerindexpr(int index) const; - ::pg_query::Node* _internal_add_reflowerindexpr(); - public: - const ::pg_query::Node& reflowerindexpr(int index) const; - ::pg_query::Node* add_reflowerindexpr(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - reflowerindexpr() const; - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.Node refexpr = 9 [json_name = "refexpr"]; - bool has_refexpr() const; - private: - bool _internal_has_refexpr() const; - public: - void clear_refexpr(); - const ::pg_query::Node& refexpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_refexpr(); - ::pg_query::Node* mutable_refexpr(); - void set_allocated_refexpr(::pg_query::Node* refexpr); - private: - const ::pg_query::Node& _internal_refexpr() const; - ::pg_query::Node* _internal_mutable_refexpr(); - public: - void unsafe_arena_set_allocated_refexpr( - ::pg_query::Node* refexpr); - ::pg_query::Node* unsafe_arena_release_refexpr(); - - // .pg_query.Node refassgnexpr = 10 [json_name = "refassgnexpr"]; - bool has_refassgnexpr() const; - private: - bool _internal_has_refassgnexpr() const; - public: - void clear_refassgnexpr(); - const ::pg_query::Node& refassgnexpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_refassgnexpr(); - ::pg_query::Node* mutable_refassgnexpr(); - void set_allocated_refassgnexpr(::pg_query::Node* refassgnexpr); - private: - const ::pg_query::Node& _internal_refassgnexpr() const; - ::pg_query::Node* _internal_mutable_refassgnexpr(); - public: - void unsafe_arena_set_allocated_refassgnexpr( - ::pg_query::Node* refassgnexpr); - ::pg_query::Node* unsafe_arena_release_refassgnexpr(); - - // uint32 refcontainertype = 2 [json_name = "refcontainertype"]; - void clear_refcontainertype(); - uint32_t refcontainertype() const; - void set_refcontainertype(uint32_t value); - private: - uint32_t _internal_refcontainertype() const; - void _internal_set_refcontainertype(uint32_t value); - public: - - // uint32 refelemtype = 3 [json_name = "refelemtype"]; - void clear_refelemtype(); - uint32_t refelemtype() const; - void set_refelemtype(uint32_t value); - private: - uint32_t _internal_refelemtype() const; - void _internal_set_refelemtype(uint32_t value); - public: - - // uint32 refrestype = 4 [json_name = "refrestype"]; - void clear_refrestype(); - uint32_t refrestype() const; - void set_refrestype(uint32_t value); - private: - uint32_t _internal_refrestype() const; - void _internal_set_refrestype(uint32_t value); - public: - - // int32 reftypmod = 5 [json_name = "reftypmod"]; - void clear_reftypmod(); - int32_t reftypmod() const; - void set_reftypmod(int32_t value); - private: - int32_t _internal_reftypmod() const; - void _internal_set_reftypmod(int32_t value); - public: - - // uint32 refcollid = 6 [json_name = "refcollid"]; - void clear_refcollid(); - uint32_t refcollid() const; - void set_refcollid(uint32_t value); - private: - uint32_t _internal_refcollid() const; - void _internal_set_refcollid(uint32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.SubscriptingRef) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > refupperindexpr_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > reflowerindexpr_; - ::pg_query::Node* xpr_; - ::pg_query::Node* refexpr_; - ::pg_query::Node* refassgnexpr_; - uint32_t refcontainertype_; - uint32_t refelemtype_; - uint32_t refrestype_; - int32_t reftypmod_; - uint32_t refcollid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class FuncExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.FuncExpr) */ { - public: - inline FuncExpr() : FuncExpr(nullptr) {} - ~FuncExpr() override; - explicit PROTOBUF_CONSTEXPR FuncExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - FuncExpr(const FuncExpr& from); - FuncExpr(FuncExpr&& from) noexcept - : FuncExpr() { - *this = ::std::move(from); - } - - inline FuncExpr& operator=(const FuncExpr& from) { - CopyFrom(from); - return *this; - } - inline FuncExpr& operator=(FuncExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const FuncExpr& default_instance() { - return *internal_default_instance(); - } - static inline const FuncExpr* internal_default_instance() { - return reinterpret_cast( - &_FuncExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - friend void swap(FuncExpr& a, FuncExpr& b) { - a.Swap(&b); - } - inline void Swap(FuncExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FuncExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - FuncExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const FuncExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const FuncExpr& from) { - FuncExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FuncExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.FuncExpr"; - } - protected: - explicit FuncExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArgsFieldNumber = 9, - kXprFieldNumber = 1, - kFuncidFieldNumber = 2, - kFuncresulttypeFieldNumber = 3, - kFuncretsetFieldNumber = 4, - kFuncvariadicFieldNumber = 5, - kFuncformatFieldNumber = 6, - kFunccollidFieldNumber = 7, - kInputcollidFieldNumber = 8, - kLocationFieldNumber = 10, - }; - // repeated .pg_query.Node args = 9 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // uint32 funcid = 2 [json_name = "funcid"]; - void clear_funcid(); - uint32_t funcid() const; - void set_funcid(uint32_t value); - private: - uint32_t _internal_funcid() const; - void _internal_set_funcid(uint32_t value); - public: - - // uint32 funcresulttype = 3 [json_name = "funcresulttype"]; - void clear_funcresulttype(); - uint32_t funcresulttype() const; - void set_funcresulttype(uint32_t value); - private: - uint32_t _internal_funcresulttype() const; - void _internal_set_funcresulttype(uint32_t value); - public: - - // bool funcretset = 4 [json_name = "funcretset"]; - void clear_funcretset(); - bool funcretset() const; - void set_funcretset(bool value); - private: - bool _internal_funcretset() const; - void _internal_set_funcretset(bool value); - public: - - // bool funcvariadic = 5 [json_name = "funcvariadic"]; - void clear_funcvariadic(); - bool funcvariadic() const; - void set_funcvariadic(bool value); - private: - bool _internal_funcvariadic() const; - void _internal_set_funcvariadic(bool value); - public: - - // .pg_query.CoercionForm funcformat = 6 [json_name = "funcformat"]; - void clear_funcformat(); - ::pg_query::CoercionForm funcformat() const; - void set_funcformat(::pg_query::CoercionForm value); - private: - ::pg_query::CoercionForm _internal_funcformat() const; - void _internal_set_funcformat(::pg_query::CoercionForm value); - public: - - // uint32 funccollid = 7 [json_name = "funccollid"]; - void clear_funccollid(); - uint32_t funccollid() const; - void set_funccollid(uint32_t value); - private: - uint32_t _internal_funccollid() const; - void _internal_set_funccollid(uint32_t value); - public: - - // uint32 inputcollid = 8 [json_name = "inputcollid"]; - void clear_inputcollid(); - uint32_t inputcollid() const; - void set_inputcollid(uint32_t value); - private: - uint32_t _internal_inputcollid() const; - void _internal_set_inputcollid(uint32_t value); - public: - - // int32 location = 10 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.FuncExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - ::pg_query::Node* xpr_; - uint32_t funcid_; - uint32_t funcresulttype_; - bool funcretset_; - bool funcvariadic_; - int funcformat_; - uint32_t funccollid_; - uint32_t inputcollid_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class NamedArgExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.NamedArgExpr) */ { - public: - inline NamedArgExpr() : NamedArgExpr(nullptr) {} - ~NamedArgExpr() override; - explicit PROTOBUF_CONSTEXPR NamedArgExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - NamedArgExpr(const NamedArgExpr& from); - NamedArgExpr(NamedArgExpr&& from) noexcept - : NamedArgExpr() { - *this = ::std::move(from); - } - - inline NamedArgExpr& operator=(const NamedArgExpr& from) { - CopyFrom(from); - return *this; - } - inline NamedArgExpr& operator=(NamedArgExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const NamedArgExpr& default_instance() { - return *internal_default_instance(); - } - static inline const NamedArgExpr* internal_default_instance() { - return reinterpret_cast( - &_NamedArgExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - friend void swap(NamedArgExpr& a, NamedArgExpr& b) { - a.Swap(&b); - } - inline void Swap(NamedArgExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(NamedArgExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - NamedArgExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const NamedArgExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const NamedArgExpr& from) { - NamedArgExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(NamedArgExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.NamedArgExpr"; - } - protected: - explicit NamedArgExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNameFieldNumber = 3, - kXprFieldNumber = 1, - kArgFieldNumber = 2, - kArgnumberFieldNumber = 4, - kLocationFieldNumber = 5, - }; - // string name = 3 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.Node arg = 2 [json_name = "arg"]; - bool has_arg() const; - private: - bool _internal_has_arg() const; - public: - void clear_arg(); - const ::pg_query::Node& arg() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_arg(); - ::pg_query::Node* mutable_arg(); - void set_allocated_arg(::pg_query::Node* arg); - private: - const ::pg_query::Node& _internal_arg() const; - ::pg_query::Node* _internal_mutable_arg(); - public: - void unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg); - ::pg_query::Node* unsafe_arena_release_arg(); - - // int32 argnumber = 4 [json_name = "argnumber"]; - void clear_argnumber(); - int32_t argnumber() const; - void set_argnumber(int32_t value); - private: - int32_t _internal_argnumber() const; - void _internal_set_argnumber(int32_t value); - public: - - // int32 location = 5 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.NamedArgExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::pg_query::Node* xpr_; - ::pg_query::Node* arg_; - int32_t argnumber_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class OpExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.OpExpr) */ { - public: - inline OpExpr() : OpExpr(nullptr) {} - ~OpExpr() override; - explicit PROTOBUF_CONSTEXPR OpExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - OpExpr(const OpExpr& from); - OpExpr(OpExpr&& from) noexcept - : OpExpr() { - *this = ::std::move(from); - } - - inline OpExpr& operator=(const OpExpr& from) { - CopyFrom(from); - return *this; - } - inline OpExpr& operator=(OpExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const OpExpr& default_instance() { - return *internal_default_instance(); - } - static inline const OpExpr* internal_default_instance() { - return reinterpret_cast( - &_OpExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 23; - - friend void swap(OpExpr& a, OpExpr& b) { - a.Swap(&b); - } - inline void Swap(OpExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OpExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - OpExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const OpExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const OpExpr& from) { - OpExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OpExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.OpExpr"; - } - protected: - explicit OpExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArgsFieldNumber = 8, - kXprFieldNumber = 1, - kOpnoFieldNumber = 2, - kOpfuncidFieldNumber = 3, - kOpresulttypeFieldNumber = 4, - kOpretsetFieldNumber = 5, - kOpcollidFieldNumber = 6, - kInputcollidFieldNumber = 7, - kLocationFieldNumber = 9, - }; - // repeated .pg_query.Node args = 8 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // uint32 opno = 2 [json_name = "opno"]; - void clear_opno(); - uint32_t opno() const; - void set_opno(uint32_t value); - private: - uint32_t _internal_opno() const; - void _internal_set_opno(uint32_t value); - public: - - // uint32 opfuncid = 3 [json_name = "opfuncid"]; - void clear_opfuncid(); - uint32_t opfuncid() const; - void set_opfuncid(uint32_t value); - private: - uint32_t _internal_opfuncid() const; - void _internal_set_opfuncid(uint32_t value); - public: - - // uint32 opresulttype = 4 [json_name = "opresulttype"]; - void clear_opresulttype(); - uint32_t opresulttype() const; - void set_opresulttype(uint32_t value); - private: - uint32_t _internal_opresulttype() const; - void _internal_set_opresulttype(uint32_t value); - public: - - // bool opretset = 5 [json_name = "opretset"]; - void clear_opretset(); - bool opretset() const; - void set_opretset(bool value); - private: - bool _internal_opretset() const; - void _internal_set_opretset(bool value); - public: - - // uint32 opcollid = 6 [json_name = "opcollid"]; - void clear_opcollid(); - uint32_t opcollid() const; - void set_opcollid(uint32_t value); - private: - uint32_t _internal_opcollid() const; - void _internal_set_opcollid(uint32_t value); - public: - - // uint32 inputcollid = 7 [json_name = "inputcollid"]; - void clear_inputcollid(); - uint32_t inputcollid() const; - void set_inputcollid(uint32_t value); - private: - uint32_t _internal_inputcollid() const; - void _internal_set_inputcollid(uint32_t value); - public: - - // int32 location = 9 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.OpExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - ::pg_query::Node* xpr_; - uint32_t opno_; - uint32_t opfuncid_; - uint32_t opresulttype_; - bool opretset_; - uint32_t opcollid_; - uint32_t inputcollid_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class DistinctExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.DistinctExpr) */ { - public: - inline DistinctExpr() : DistinctExpr(nullptr) {} - ~DistinctExpr() override; - explicit PROTOBUF_CONSTEXPR DistinctExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - DistinctExpr(const DistinctExpr& from); - DistinctExpr(DistinctExpr&& from) noexcept - : DistinctExpr() { - *this = ::std::move(from); - } - - inline DistinctExpr& operator=(const DistinctExpr& from) { - CopyFrom(from); - return *this; - } - inline DistinctExpr& operator=(DistinctExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DistinctExpr& default_instance() { - return *internal_default_instance(); - } - static inline const DistinctExpr* internal_default_instance() { - return reinterpret_cast( - &_DistinctExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - friend void swap(DistinctExpr& a, DistinctExpr& b) { - a.Swap(&b); - } - inline void Swap(DistinctExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DistinctExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DistinctExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DistinctExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DistinctExpr& from) { - DistinctExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DistinctExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.DistinctExpr"; - } - protected: - explicit DistinctExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArgsFieldNumber = 8, - kXprFieldNumber = 1, - kOpnoFieldNumber = 2, - kOpfuncidFieldNumber = 3, - kOpresulttypeFieldNumber = 4, - kOpretsetFieldNumber = 5, - kOpcollidFieldNumber = 6, - kInputcollidFieldNumber = 7, - kLocationFieldNumber = 9, - }; - // repeated .pg_query.Node args = 8 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // uint32 opno = 2 [json_name = "opno"]; - void clear_opno(); - uint32_t opno() const; - void set_opno(uint32_t value); - private: - uint32_t _internal_opno() const; - void _internal_set_opno(uint32_t value); - public: - - // uint32 opfuncid = 3 [json_name = "opfuncid"]; - void clear_opfuncid(); - uint32_t opfuncid() const; - void set_opfuncid(uint32_t value); - private: - uint32_t _internal_opfuncid() const; - void _internal_set_opfuncid(uint32_t value); - public: - - // uint32 opresulttype = 4 [json_name = "opresulttype"]; - void clear_opresulttype(); - uint32_t opresulttype() const; - void set_opresulttype(uint32_t value); - private: - uint32_t _internal_opresulttype() const; - void _internal_set_opresulttype(uint32_t value); - public: - - // bool opretset = 5 [json_name = "opretset"]; - void clear_opretset(); - bool opretset() const; - void set_opretset(bool value); - private: - bool _internal_opretset() const; - void _internal_set_opretset(bool value); - public: - - // uint32 opcollid = 6 [json_name = "opcollid"]; - void clear_opcollid(); - uint32_t opcollid() const; - void set_opcollid(uint32_t value); - private: - uint32_t _internal_opcollid() const; - void _internal_set_opcollid(uint32_t value); - public: - - // uint32 inputcollid = 7 [json_name = "inputcollid"]; - void clear_inputcollid(); - uint32_t inputcollid() const; - void set_inputcollid(uint32_t value); - private: - uint32_t _internal_inputcollid() const; - void _internal_set_inputcollid(uint32_t value); - public: - - // int32 location = 9 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.DistinctExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - ::pg_query::Node* xpr_; - uint32_t opno_; - uint32_t opfuncid_; - uint32_t opresulttype_; - bool opretset_; - uint32_t opcollid_; - uint32_t inputcollid_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class NullIfExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.NullIfExpr) */ { - public: - inline NullIfExpr() : NullIfExpr(nullptr) {} - ~NullIfExpr() override; - explicit PROTOBUF_CONSTEXPR NullIfExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - NullIfExpr(const NullIfExpr& from); - NullIfExpr(NullIfExpr&& from) noexcept - : NullIfExpr() { - *this = ::std::move(from); - } - - inline NullIfExpr& operator=(const NullIfExpr& from) { - CopyFrom(from); - return *this; - } - inline NullIfExpr& operator=(NullIfExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const NullIfExpr& default_instance() { - return *internal_default_instance(); - } - static inline const NullIfExpr* internal_default_instance() { - return reinterpret_cast( - &_NullIfExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 25; - - friend void swap(NullIfExpr& a, NullIfExpr& b) { - a.Swap(&b); - } - inline void Swap(NullIfExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(NullIfExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - NullIfExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const NullIfExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const NullIfExpr& from) { - NullIfExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(NullIfExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.NullIfExpr"; - } - protected: - explicit NullIfExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArgsFieldNumber = 8, - kXprFieldNumber = 1, - kOpnoFieldNumber = 2, - kOpfuncidFieldNumber = 3, - kOpresulttypeFieldNumber = 4, - kOpretsetFieldNumber = 5, - kOpcollidFieldNumber = 6, - kInputcollidFieldNumber = 7, - kLocationFieldNumber = 9, - }; - // repeated .pg_query.Node args = 8 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // uint32 opno = 2 [json_name = "opno"]; - void clear_opno(); - uint32_t opno() const; - void set_opno(uint32_t value); - private: - uint32_t _internal_opno() const; - void _internal_set_opno(uint32_t value); - public: - - // uint32 opfuncid = 3 [json_name = "opfuncid"]; - void clear_opfuncid(); - uint32_t opfuncid() const; - void set_opfuncid(uint32_t value); - private: - uint32_t _internal_opfuncid() const; - void _internal_set_opfuncid(uint32_t value); - public: - - // uint32 opresulttype = 4 [json_name = "opresulttype"]; - void clear_opresulttype(); - uint32_t opresulttype() const; - void set_opresulttype(uint32_t value); - private: - uint32_t _internal_opresulttype() const; - void _internal_set_opresulttype(uint32_t value); - public: - - // bool opretset = 5 [json_name = "opretset"]; - void clear_opretset(); - bool opretset() const; - void set_opretset(bool value); - private: - bool _internal_opretset() const; - void _internal_set_opretset(bool value); - public: - - // uint32 opcollid = 6 [json_name = "opcollid"]; - void clear_opcollid(); - uint32_t opcollid() const; - void set_opcollid(uint32_t value); - private: - uint32_t _internal_opcollid() const; - void _internal_set_opcollid(uint32_t value); - public: - - // uint32 inputcollid = 7 [json_name = "inputcollid"]; - void clear_inputcollid(); - uint32_t inputcollid() const; - void set_inputcollid(uint32_t value); - private: - uint32_t _internal_inputcollid() const; - void _internal_set_inputcollid(uint32_t value); - public: - - // int32 location = 9 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.NullIfExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - ::pg_query::Node* xpr_; - uint32_t opno_; - uint32_t opfuncid_; - uint32_t opresulttype_; - bool opretset_; - uint32_t opcollid_; - uint32_t inputcollid_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ScalarArrayOpExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ScalarArrayOpExpr) */ { - public: - inline ScalarArrayOpExpr() : ScalarArrayOpExpr(nullptr) {} - ~ScalarArrayOpExpr() override; - explicit PROTOBUF_CONSTEXPR ScalarArrayOpExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ScalarArrayOpExpr(const ScalarArrayOpExpr& from); - ScalarArrayOpExpr(ScalarArrayOpExpr&& from) noexcept - : ScalarArrayOpExpr() { - *this = ::std::move(from); - } - - inline ScalarArrayOpExpr& operator=(const ScalarArrayOpExpr& from) { - CopyFrom(from); - return *this; - } - inline ScalarArrayOpExpr& operator=(ScalarArrayOpExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ScalarArrayOpExpr& default_instance() { - return *internal_default_instance(); - } - static inline const ScalarArrayOpExpr* internal_default_instance() { - return reinterpret_cast( - &_ScalarArrayOpExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 26; - - friend void swap(ScalarArrayOpExpr& a, ScalarArrayOpExpr& b) { - a.Swap(&b); - } - inline void Swap(ScalarArrayOpExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ScalarArrayOpExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ScalarArrayOpExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ScalarArrayOpExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ScalarArrayOpExpr& from) { - ScalarArrayOpExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ScalarArrayOpExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ScalarArrayOpExpr"; - } - protected: - explicit ScalarArrayOpExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArgsFieldNumber = 8, - kXprFieldNumber = 1, - kOpnoFieldNumber = 2, - kOpfuncidFieldNumber = 3, - kHashfuncidFieldNumber = 4, - kNegfuncidFieldNumber = 5, - kUseOrFieldNumber = 6, - kInputcollidFieldNumber = 7, - kLocationFieldNumber = 9, - }; - // repeated .pg_query.Node args = 8 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // uint32 opno = 2 [json_name = "opno"]; - void clear_opno(); - uint32_t opno() const; - void set_opno(uint32_t value); - private: - uint32_t _internal_opno() const; - void _internal_set_opno(uint32_t value); - public: - - // uint32 opfuncid = 3 [json_name = "opfuncid"]; - void clear_opfuncid(); - uint32_t opfuncid() const; - void set_opfuncid(uint32_t value); - private: - uint32_t _internal_opfuncid() const; - void _internal_set_opfuncid(uint32_t value); - public: - - // uint32 hashfuncid = 4 [json_name = "hashfuncid"]; - void clear_hashfuncid(); - uint32_t hashfuncid() const; - void set_hashfuncid(uint32_t value); - private: - uint32_t _internal_hashfuncid() const; - void _internal_set_hashfuncid(uint32_t value); - public: - - // uint32 negfuncid = 5 [json_name = "negfuncid"]; - void clear_negfuncid(); - uint32_t negfuncid() const; - void set_negfuncid(uint32_t value); - private: - uint32_t _internal_negfuncid() const; - void _internal_set_negfuncid(uint32_t value); - public: - - // bool use_or = 6 [json_name = "useOr"]; - void clear_use_or(); - bool use_or() const; - void set_use_or(bool value); - private: - bool _internal_use_or() const; - void _internal_set_use_or(bool value); - public: - - // uint32 inputcollid = 7 [json_name = "inputcollid"]; - void clear_inputcollid(); - uint32_t inputcollid() const; - void set_inputcollid(uint32_t value); - private: - uint32_t _internal_inputcollid() const; - void _internal_set_inputcollid(uint32_t value); - public: - - // int32 location = 9 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.ScalarArrayOpExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - ::pg_query::Node* xpr_; - uint32_t opno_; - uint32_t opfuncid_; - uint32_t hashfuncid_; - uint32_t negfuncid_; - bool use_or_; - uint32_t inputcollid_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class BoolExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.BoolExpr) */ { - public: - inline BoolExpr() : BoolExpr(nullptr) {} - ~BoolExpr() override; - explicit PROTOBUF_CONSTEXPR BoolExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BoolExpr(const BoolExpr& from); - BoolExpr(BoolExpr&& from) noexcept - : BoolExpr() { - *this = ::std::move(from); - } - - inline BoolExpr& operator=(const BoolExpr& from) { - CopyFrom(from); - return *this; - } - inline BoolExpr& operator=(BoolExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const BoolExpr& default_instance() { - return *internal_default_instance(); - } - static inline const BoolExpr* internal_default_instance() { - return reinterpret_cast( - &_BoolExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 27; - - friend void swap(BoolExpr& a, BoolExpr& b) { - a.Swap(&b); - } - inline void Swap(BoolExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BoolExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BoolExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const BoolExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const BoolExpr& from) { - BoolExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(BoolExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.BoolExpr"; - } - protected: - explicit BoolExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArgsFieldNumber = 3, - kXprFieldNumber = 1, - kBoolopFieldNumber = 2, - kLocationFieldNumber = 4, - }; - // repeated .pg_query.Node args = 3 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.BoolExprType boolop = 2 [json_name = "boolop"]; - void clear_boolop(); - ::pg_query::BoolExprType boolop() const; - void set_boolop(::pg_query::BoolExprType value); - private: - ::pg_query::BoolExprType _internal_boolop() const; - void _internal_set_boolop(::pg_query::BoolExprType value); - public: - - // int32 location = 4 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.BoolExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - ::pg_query::Node* xpr_; - int boolop_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class SubLink final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.SubLink) */ { - public: - inline SubLink() : SubLink(nullptr) {} - ~SubLink() override; - explicit PROTOBUF_CONSTEXPR SubLink(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SubLink(const SubLink& from); - SubLink(SubLink&& from) noexcept - : SubLink() { - *this = ::std::move(from); - } - - inline SubLink& operator=(const SubLink& from) { - CopyFrom(from); - return *this; - } - inline SubLink& operator=(SubLink&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SubLink& default_instance() { - return *internal_default_instance(); - } - static inline const SubLink* internal_default_instance() { - return reinterpret_cast( - &_SubLink_default_instance_); - } - static constexpr int kIndexInFileMessages = - 28; - - friend void swap(SubLink& a, SubLink& b) { - a.Swap(&b); - } - inline void Swap(SubLink* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SubLink* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SubLink* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SubLink& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SubLink& from) { - SubLink::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SubLink* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.SubLink"; - } - protected: - explicit SubLink(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOperNameFieldNumber = 5, - kXprFieldNumber = 1, - kTestexprFieldNumber = 4, - kSubselectFieldNumber = 6, - kSubLinkTypeFieldNumber = 2, - kSubLinkIdFieldNumber = 3, - kLocationFieldNumber = 7, - }; - // repeated .pg_query.Node oper_name = 5 [json_name = "operName"]; - int oper_name_size() const; - private: - int _internal_oper_name_size() const; - public: - void clear_oper_name(); - ::pg_query::Node* mutable_oper_name(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_oper_name(); - private: - const ::pg_query::Node& _internal_oper_name(int index) const; - ::pg_query::Node* _internal_add_oper_name(); - public: - const ::pg_query::Node& oper_name(int index) const; - ::pg_query::Node* add_oper_name(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - oper_name() const; - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.Node testexpr = 4 [json_name = "testexpr"]; - bool has_testexpr() const; - private: - bool _internal_has_testexpr() const; - public: - void clear_testexpr(); - const ::pg_query::Node& testexpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_testexpr(); - ::pg_query::Node* mutable_testexpr(); - void set_allocated_testexpr(::pg_query::Node* testexpr); - private: - const ::pg_query::Node& _internal_testexpr() const; - ::pg_query::Node* _internal_mutable_testexpr(); - public: - void unsafe_arena_set_allocated_testexpr( - ::pg_query::Node* testexpr); - ::pg_query::Node* unsafe_arena_release_testexpr(); - - // .pg_query.Node subselect = 6 [json_name = "subselect"]; - bool has_subselect() const; - private: - bool _internal_has_subselect() const; - public: - void clear_subselect(); - const ::pg_query::Node& subselect() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_subselect(); - ::pg_query::Node* mutable_subselect(); - void set_allocated_subselect(::pg_query::Node* subselect); - private: - const ::pg_query::Node& _internal_subselect() const; - ::pg_query::Node* _internal_mutable_subselect(); - public: - void unsafe_arena_set_allocated_subselect( - ::pg_query::Node* subselect); - ::pg_query::Node* unsafe_arena_release_subselect(); - - // .pg_query.SubLinkType sub_link_type = 2 [json_name = "subLinkType"]; - void clear_sub_link_type(); - ::pg_query::SubLinkType sub_link_type() const; - void set_sub_link_type(::pg_query::SubLinkType value); - private: - ::pg_query::SubLinkType _internal_sub_link_type() const; - void _internal_set_sub_link_type(::pg_query::SubLinkType value); - public: - - // int32 sub_link_id = 3 [json_name = "subLinkId"]; - void clear_sub_link_id(); - int32_t sub_link_id() const; - void set_sub_link_id(int32_t value); - private: - int32_t _internal_sub_link_id() const; - void _internal_set_sub_link_id(int32_t value); - public: - - // int32 location = 7 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.SubLink) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > oper_name_; - ::pg_query::Node* xpr_; - ::pg_query::Node* testexpr_; - ::pg_query::Node* subselect_; - int sub_link_type_; - int32_t sub_link_id_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class SubPlan final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.SubPlan) */ { - public: - inline SubPlan() : SubPlan(nullptr) {} - ~SubPlan() override; - explicit PROTOBUF_CONSTEXPR SubPlan(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SubPlan(const SubPlan& from); - SubPlan(SubPlan&& from) noexcept - : SubPlan() { - *this = ::std::move(from); - } - - inline SubPlan& operator=(const SubPlan& from) { - CopyFrom(from); - return *this; - } - inline SubPlan& operator=(SubPlan&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SubPlan& default_instance() { - return *internal_default_instance(); - } - static inline const SubPlan* internal_default_instance() { - return reinterpret_cast( - &_SubPlan_default_instance_); - } - static constexpr int kIndexInFileMessages = - 29; - - friend void swap(SubPlan& a, SubPlan& b) { - a.Swap(&b); - } - inline void Swap(SubPlan* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SubPlan* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SubPlan* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SubPlan& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SubPlan& from) { - SubPlan::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SubPlan* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.SubPlan"; - } - protected: - explicit SubPlan(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kParamIdsFieldNumber = 4, - kSetParamFieldNumber = 13, - kParParamFieldNumber = 14, - kArgsFieldNumber = 15, - kPlanNameFieldNumber = 6, - kXprFieldNumber = 1, - kTestexprFieldNumber = 3, - kSubLinkTypeFieldNumber = 2, - kPlanIdFieldNumber = 5, - kFirstColTypeFieldNumber = 7, - kFirstColTypmodFieldNumber = 8, - kFirstColCollationFieldNumber = 9, - kUseHashTableFieldNumber = 10, - kUnknownEqFalseFieldNumber = 11, - kParallelSafeFieldNumber = 12, - kStartupCostFieldNumber = 16, - kPerCallCostFieldNumber = 17, - }; - // repeated .pg_query.Node param_ids = 4 [json_name = "paramIds"]; - int param_ids_size() const; - private: - int _internal_param_ids_size() const; - public: - void clear_param_ids(); - ::pg_query::Node* mutable_param_ids(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_param_ids(); - private: - const ::pg_query::Node& _internal_param_ids(int index) const; - ::pg_query::Node* _internal_add_param_ids(); - public: - const ::pg_query::Node& param_ids(int index) const; - ::pg_query::Node* add_param_ids(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - param_ids() const; - - // repeated .pg_query.Node set_param = 13 [json_name = "setParam"]; - int set_param_size() const; - private: - int _internal_set_param_size() const; - public: - void clear_set_param(); - ::pg_query::Node* mutable_set_param(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_set_param(); - private: - const ::pg_query::Node& _internal_set_param(int index) const; - ::pg_query::Node* _internal_add_set_param(); - public: - const ::pg_query::Node& set_param(int index) const; - ::pg_query::Node* add_set_param(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - set_param() const; - - // repeated .pg_query.Node par_param = 14 [json_name = "parParam"]; - int par_param_size() const; - private: - int _internal_par_param_size() const; - public: - void clear_par_param(); - ::pg_query::Node* mutable_par_param(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_par_param(); - private: - const ::pg_query::Node& _internal_par_param(int index) const; - ::pg_query::Node* _internal_add_par_param(); - public: - const ::pg_query::Node& par_param(int index) const; - ::pg_query::Node* add_par_param(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - par_param() const; - - // repeated .pg_query.Node args = 15 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // string plan_name = 6 [json_name = "plan_name"]; - void clear_plan_name(); - const std::string& plan_name() const; - template - void set_plan_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_plan_name(); - PROTOBUF_NODISCARD std::string* release_plan_name(); - void set_allocated_plan_name(std::string* plan_name); - private: - const std::string& _internal_plan_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_plan_name(const std::string& value); - std::string* _internal_mutable_plan_name(); - public: - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.Node testexpr = 3 [json_name = "testexpr"]; - bool has_testexpr() const; - private: - bool _internal_has_testexpr() const; - public: - void clear_testexpr(); - const ::pg_query::Node& testexpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_testexpr(); - ::pg_query::Node* mutable_testexpr(); - void set_allocated_testexpr(::pg_query::Node* testexpr); - private: - const ::pg_query::Node& _internal_testexpr() const; - ::pg_query::Node* _internal_mutable_testexpr(); - public: - void unsafe_arena_set_allocated_testexpr( - ::pg_query::Node* testexpr); - ::pg_query::Node* unsafe_arena_release_testexpr(); - - // .pg_query.SubLinkType sub_link_type = 2 [json_name = "subLinkType"]; - void clear_sub_link_type(); - ::pg_query::SubLinkType sub_link_type() const; - void set_sub_link_type(::pg_query::SubLinkType value); - private: - ::pg_query::SubLinkType _internal_sub_link_type() const; - void _internal_set_sub_link_type(::pg_query::SubLinkType value); - public: - - // int32 plan_id = 5 [json_name = "plan_id"]; - void clear_plan_id(); - int32_t plan_id() const; - void set_plan_id(int32_t value); - private: - int32_t _internal_plan_id() const; - void _internal_set_plan_id(int32_t value); - public: - - // uint32 first_col_type = 7 [json_name = "firstColType"]; - void clear_first_col_type(); - uint32_t first_col_type() const; - void set_first_col_type(uint32_t value); - private: - uint32_t _internal_first_col_type() const; - void _internal_set_first_col_type(uint32_t value); - public: - - // int32 first_col_typmod = 8 [json_name = "firstColTypmod"]; - void clear_first_col_typmod(); - int32_t first_col_typmod() const; - void set_first_col_typmod(int32_t value); - private: - int32_t _internal_first_col_typmod() const; - void _internal_set_first_col_typmod(int32_t value); - public: - - // uint32 first_col_collation = 9 [json_name = "firstColCollation"]; - void clear_first_col_collation(); - uint32_t first_col_collation() const; - void set_first_col_collation(uint32_t value); - private: - uint32_t _internal_first_col_collation() const; - void _internal_set_first_col_collation(uint32_t value); - public: - - // bool use_hash_table = 10 [json_name = "useHashTable"]; - void clear_use_hash_table(); - bool use_hash_table() const; - void set_use_hash_table(bool value); - private: - bool _internal_use_hash_table() const; - void _internal_set_use_hash_table(bool value); - public: - - // bool unknown_eq_false = 11 [json_name = "unknownEqFalse"]; - void clear_unknown_eq_false(); - bool unknown_eq_false() const; - void set_unknown_eq_false(bool value); - private: - bool _internal_unknown_eq_false() const; - void _internal_set_unknown_eq_false(bool value); - public: - - // bool parallel_safe = 12 [json_name = "parallel_safe"]; - void clear_parallel_safe(); - bool parallel_safe() const; - void set_parallel_safe(bool value); - private: - bool _internal_parallel_safe() const; - void _internal_set_parallel_safe(bool value); - public: - - // double startup_cost = 16 [json_name = "startup_cost"]; - void clear_startup_cost(); - double startup_cost() const; - void set_startup_cost(double value); - private: - double _internal_startup_cost() const; - void _internal_set_startup_cost(double value); - public: - - // double per_call_cost = 17 [json_name = "per_call_cost"]; - void clear_per_call_cost(); - double per_call_cost() const; - void set_per_call_cost(double value); - private: - double _internal_per_call_cost() const; - void _internal_set_per_call_cost(double value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.SubPlan) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > param_ids_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > set_param_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > par_param_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr plan_name_; - ::pg_query::Node* xpr_; - ::pg_query::Node* testexpr_; - int sub_link_type_; - int32_t plan_id_; - uint32_t first_col_type_; - int32_t first_col_typmod_; - uint32_t first_col_collation_; - bool use_hash_table_; - bool unknown_eq_false_; - bool parallel_safe_; - double startup_cost_; - double per_call_cost_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlternativeSubPlan final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlternativeSubPlan) */ { - public: - inline AlternativeSubPlan() : AlternativeSubPlan(nullptr) {} - ~AlternativeSubPlan() override; - explicit PROTOBUF_CONSTEXPR AlternativeSubPlan(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlternativeSubPlan(const AlternativeSubPlan& from); - AlternativeSubPlan(AlternativeSubPlan&& from) noexcept - : AlternativeSubPlan() { - *this = ::std::move(from); - } - - inline AlternativeSubPlan& operator=(const AlternativeSubPlan& from) { - CopyFrom(from); - return *this; - } - inline AlternativeSubPlan& operator=(AlternativeSubPlan&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlternativeSubPlan& default_instance() { - return *internal_default_instance(); - } - static inline const AlternativeSubPlan* internal_default_instance() { - return reinterpret_cast( - &_AlternativeSubPlan_default_instance_); - } - static constexpr int kIndexInFileMessages = - 30; - - friend void swap(AlternativeSubPlan& a, AlternativeSubPlan& b) { - a.Swap(&b); - } - inline void Swap(AlternativeSubPlan* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlternativeSubPlan* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlternativeSubPlan* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlternativeSubPlan& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlternativeSubPlan& from) { - AlternativeSubPlan::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlternativeSubPlan* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlternativeSubPlan"; - } - protected: - explicit AlternativeSubPlan(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSubplansFieldNumber = 2, - kXprFieldNumber = 1, - }; - // repeated .pg_query.Node subplans = 2 [json_name = "subplans"]; - int subplans_size() const; - private: - int _internal_subplans_size() const; - public: - void clear_subplans(); - ::pg_query::Node* mutable_subplans(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_subplans(); - private: - const ::pg_query::Node& _internal_subplans(int index) const; - ::pg_query::Node* _internal_add_subplans(); - public: - const ::pg_query::Node& subplans(int index) const; - ::pg_query::Node* add_subplans(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - subplans() const; - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // @@protoc_insertion_point(class_scope:pg_query.AlternativeSubPlan) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > subplans_; - ::pg_query::Node* xpr_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class FieldSelect final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.FieldSelect) */ { - public: - inline FieldSelect() : FieldSelect(nullptr) {} - ~FieldSelect() override; - explicit PROTOBUF_CONSTEXPR FieldSelect(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - FieldSelect(const FieldSelect& from); - FieldSelect(FieldSelect&& from) noexcept - : FieldSelect() { - *this = ::std::move(from); - } - - inline FieldSelect& operator=(const FieldSelect& from) { - CopyFrom(from); - return *this; - } - inline FieldSelect& operator=(FieldSelect&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const FieldSelect& default_instance() { - return *internal_default_instance(); - } - static inline const FieldSelect* internal_default_instance() { - return reinterpret_cast( - &_FieldSelect_default_instance_); - } - static constexpr int kIndexInFileMessages = - 31; - - friend void swap(FieldSelect& a, FieldSelect& b) { - a.Swap(&b); - } - inline void Swap(FieldSelect* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FieldSelect* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - FieldSelect* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const FieldSelect& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const FieldSelect& from) { - FieldSelect::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FieldSelect* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.FieldSelect"; - } - protected: - explicit FieldSelect(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXprFieldNumber = 1, - kArgFieldNumber = 2, - kFieldnumFieldNumber = 3, - kResulttypeFieldNumber = 4, - kResulttypmodFieldNumber = 5, - kResultcollidFieldNumber = 6, - }; - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.Node arg = 2 [json_name = "arg"]; - bool has_arg() const; - private: - bool _internal_has_arg() const; - public: - void clear_arg(); - const ::pg_query::Node& arg() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_arg(); - ::pg_query::Node* mutable_arg(); - void set_allocated_arg(::pg_query::Node* arg); - private: - const ::pg_query::Node& _internal_arg() const; - ::pg_query::Node* _internal_mutable_arg(); - public: - void unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg); - ::pg_query::Node* unsafe_arena_release_arg(); - - // int32 fieldnum = 3 [json_name = "fieldnum"]; - void clear_fieldnum(); - int32_t fieldnum() const; - void set_fieldnum(int32_t value); - private: - int32_t _internal_fieldnum() const; - void _internal_set_fieldnum(int32_t value); - public: - - // uint32 resulttype = 4 [json_name = "resulttype"]; - void clear_resulttype(); - uint32_t resulttype() const; - void set_resulttype(uint32_t value); - private: - uint32_t _internal_resulttype() const; - void _internal_set_resulttype(uint32_t value); - public: - - // int32 resulttypmod = 5 [json_name = "resulttypmod"]; - void clear_resulttypmod(); - int32_t resulttypmod() const; - void set_resulttypmod(int32_t value); - private: - int32_t _internal_resulttypmod() const; - void _internal_set_resulttypmod(int32_t value); - public: - - // uint32 resultcollid = 6 [json_name = "resultcollid"]; - void clear_resultcollid(); - uint32_t resultcollid() const; - void set_resultcollid(uint32_t value); - private: - uint32_t _internal_resultcollid() const; - void _internal_set_resultcollid(uint32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.FieldSelect) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* xpr_; - ::pg_query::Node* arg_; - int32_t fieldnum_; - uint32_t resulttype_; - int32_t resulttypmod_; - uint32_t resultcollid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class FieldStore final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.FieldStore) */ { - public: - inline FieldStore() : FieldStore(nullptr) {} - ~FieldStore() override; - explicit PROTOBUF_CONSTEXPR FieldStore(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - FieldStore(const FieldStore& from); - FieldStore(FieldStore&& from) noexcept - : FieldStore() { - *this = ::std::move(from); - } - - inline FieldStore& operator=(const FieldStore& from) { - CopyFrom(from); - return *this; - } - inline FieldStore& operator=(FieldStore&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const FieldStore& default_instance() { - return *internal_default_instance(); - } - static inline const FieldStore* internal_default_instance() { - return reinterpret_cast( - &_FieldStore_default_instance_); - } - static constexpr int kIndexInFileMessages = - 32; - - friend void swap(FieldStore& a, FieldStore& b) { - a.Swap(&b); - } - inline void Swap(FieldStore* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FieldStore* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - FieldStore* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const FieldStore& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const FieldStore& from) { - FieldStore::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FieldStore* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.FieldStore"; - } - protected: - explicit FieldStore(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNewvalsFieldNumber = 3, - kFieldnumsFieldNumber = 4, - kXprFieldNumber = 1, - kArgFieldNumber = 2, - kResulttypeFieldNumber = 5, - }; - // repeated .pg_query.Node newvals = 3 [json_name = "newvals"]; - int newvals_size() const; - private: - int _internal_newvals_size() const; - public: - void clear_newvals(); - ::pg_query::Node* mutable_newvals(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_newvals(); - private: - const ::pg_query::Node& _internal_newvals(int index) const; - ::pg_query::Node* _internal_add_newvals(); - public: - const ::pg_query::Node& newvals(int index) const; - ::pg_query::Node* add_newvals(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - newvals() const; - - // repeated .pg_query.Node fieldnums = 4 [json_name = "fieldnums"]; - int fieldnums_size() const; - private: - int _internal_fieldnums_size() const; - public: - void clear_fieldnums(); - ::pg_query::Node* mutable_fieldnums(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_fieldnums(); - private: - const ::pg_query::Node& _internal_fieldnums(int index) const; - ::pg_query::Node* _internal_add_fieldnums(); - public: - const ::pg_query::Node& fieldnums(int index) const; - ::pg_query::Node* add_fieldnums(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - fieldnums() const; - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.Node arg = 2 [json_name = "arg"]; - bool has_arg() const; - private: - bool _internal_has_arg() const; - public: - void clear_arg(); - const ::pg_query::Node& arg() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_arg(); - ::pg_query::Node* mutable_arg(); - void set_allocated_arg(::pg_query::Node* arg); - private: - const ::pg_query::Node& _internal_arg() const; - ::pg_query::Node* _internal_mutable_arg(); - public: - void unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg); - ::pg_query::Node* unsafe_arena_release_arg(); - - // uint32 resulttype = 5 [json_name = "resulttype"]; - void clear_resulttype(); - uint32_t resulttype() const; - void set_resulttype(uint32_t value); - private: - uint32_t _internal_resulttype() const; - void _internal_set_resulttype(uint32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.FieldStore) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > newvals_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > fieldnums_; - ::pg_query::Node* xpr_; - ::pg_query::Node* arg_; - uint32_t resulttype_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class RelabelType final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.RelabelType) */ { - public: - inline RelabelType() : RelabelType(nullptr) {} - ~RelabelType() override; - explicit PROTOBUF_CONSTEXPR RelabelType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - RelabelType(const RelabelType& from); - RelabelType(RelabelType&& from) noexcept - : RelabelType() { - *this = ::std::move(from); - } - - inline RelabelType& operator=(const RelabelType& from) { - CopyFrom(from); - return *this; - } - inline RelabelType& operator=(RelabelType&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RelabelType& default_instance() { - return *internal_default_instance(); - } - static inline const RelabelType* internal_default_instance() { - return reinterpret_cast( - &_RelabelType_default_instance_); - } - static constexpr int kIndexInFileMessages = - 33; - - friend void swap(RelabelType& a, RelabelType& b) { - a.Swap(&b); - } - inline void Swap(RelabelType* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RelabelType* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RelabelType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RelabelType& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RelabelType& from) { - RelabelType::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RelabelType* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.RelabelType"; - } - protected: - explicit RelabelType(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXprFieldNumber = 1, - kArgFieldNumber = 2, - kResulttypeFieldNumber = 3, - kResulttypmodFieldNumber = 4, - kResultcollidFieldNumber = 5, - kRelabelformatFieldNumber = 6, - kLocationFieldNumber = 7, - }; - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.Node arg = 2 [json_name = "arg"]; - bool has_arg() const; - private: - bool _internal_has_arg() const; - public: - void clear_arg(); - const ::pg_query::Node& arg() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_arg(); - ::pg_query::Node* mutable_arg(); - void set_allocated_arg(::pg_query::Node* arg); - private: - const ::pg_query::Node& _internal_arg() const; - ::pg_query::Node* _internal_mutable_arg(); - public: - void unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg); - ::pg_query::Node* unsafe_arena_release_arg(); - - // uint32 resulttype = 3 [json_name = "resulttype"]; - void clear_resulttype(); - uint32_t resulttype() const; - void set_resulttype(uint32_t value); - private: - uint32_t _internal_resulttype() const; - void _internal_set_resulttype(uint32_t value); - public: - - // int32 resulttypmod = 4 [json_name = "resulttypmod"]; - void clear_resulttypmod(); - int32_t resulttypmod() const; - void set_resulttypmod(int32_t value); - private: - int32_t _internal_resulttypmod() const; - void _internal_set_resulttypmod(int32_t value); - public: - - // uint32 resultcollid = 5 [json_name = "resultcollid"]; - void clear_resultcollid(); - uint32_t resultcollid() const; - void set_resultcollid(uint32_t value); - private: - uint32_t _internal_resultcollid() const; - void _internal_set_resultcollid(uint32_t value); - public: - - // .pg_query.CoercionForm relabelformat = 6 [json_name = "relabelformat"]; - void clear_relabelformat(); - ::pg_query::CoercionForm relabelformat() const; - void set_relabelformat(::pg_query::CoercionForm value); - private: - ::pg_query::CoercionForm _internal_relabelformat() const; - void _internal_set_relabelformat(::pg_query::CoercionForm value); - public: - - // int32 location = 7 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.RelabelType) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* xpr_; - ::pg_query::Node* arg_; - uint32_t resulttype_; - int32_t resulttypmod_; - uint32_t resultcollid_; - int relabelformat_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CoerceViaIO final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CoerceViaIO) */ { - public: - inline CoerceViaIO() : CoerceViaIO(nullptr) {} - ~CoerceViaIO() override; - explicit PROTOBUF_CONSTEXPR CoerceViaIO(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CoerceViaIO(const CoerceViaIO& from); - CoerceViaIO(CoerceViaIO&& from) noexcept - : CoerceViaIO() { - *this = ::std::move(from); - } - - inline CoerceViaIO& operator=(const CoerceViaIO& from) { - CopyFrom(from); - return *this; - } - inline CoerceViaIO& operator=(CoerceViaIO&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CoerceViaIO& default_instance() { - return *internal_default_instance(); - } - static inline const CoerceViaIO* internal_default_instance() { - return reinterpret_cast( - &_CoerceViaIO_default_instance_); - } - static constexpr int kIndexInFileMessages = - 34; - - friend void swap(CoerceViaIO& a, CoerceViaIO& b) { - a.Swap(&b); - } - inline void Swap(CoerceViaIO* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CoerceViaIO* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CoerceViaIO* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CoerceViaIO& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CoerceViaIO& from) { - CoerceViaIO::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CoerceViaIO* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CoerceViaIO"; - } - protected: - explicit CoerceViaIO(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXprFieldNumber = 1, - kArgFieldNumber = 2, - kResulttypeFieldNumber = 3, - kResultcollidFieldNumber = 4, - kCoerceformatFieldNumber = 5, - kLocationFieldNumber = 6, - }; - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.Node arg = 2 [json_name = "arg"]; - bool has_arg() const; - private: - bool _internal_has_arg() const; - public: - void clear_arg(); - const ::pg_query::Node& arg() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_arg(); - ::pg_query::Node* mutable_arg(); - void set_allocated_arg(::pg_query::Node* arg); - private: - const ::pg_query::Node& _internal_arg() const; - ::pg_query::Node* _internal_mutable_arg(); - public: - void unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg); - ::pg_query::Node* unsafe_arena_release_arg(); - - // uint32 resulttype = 3 [json_name = "resulttype"]; - void clear_resulttype(); - uint32_t resulttype() const; - void set_resulttype(uint32_t value); - private: - uint32_t _internal_resulttype() const; - void _internal_set_resulttype(uint32_t value); - public: - - // uint32 resultcollid = 4 [json_name = "resultcollid"]; - void clear_resultcollid(); - uint32_t resultcollid() const; - void set_resultcollid(uint32_t value); - private: - uint32_t _internal_resultcollid() const; - void _internal_set_resultcollid(uint32_t value); - public: - - // .pg_query.CoercionForm coerceformat = 5 [json_name = "coerceformat"]; - void clear_coerceformat(); - ::pg_query::CoercionForm coerceformat() const; - void set_coerceformat(::pg_query::CoercionForm value); - private: - ::pg_query::CoercionForm _internal_coerceformat() const; - void _internal_set_coerceformat(::pg_query::CoercionForm value); - public: - - // int32 location = 6 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CoerceViaIO) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* xpr_; - ::pg_query::Node* arg_; - uint32_t resulttype_; - uint32_t resultcollid_; - int coerceformat_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ArrayCoerceExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ArrayCoerceExpr) */ { - public: - inline ArrayCoerceExpr() : ArrayCoerceExpr(nullptr) {} - ~ArrayCoerceExpr() override; - explicit PROTOBUF_CONSTEXPR ArrayCoerceExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ArrayCoerceExpr(const ArrayCoerceExpr& from); - ArrayCoerceExpr(ArrayCoerceExpr&& from) noexcept - : ArrayCoerceExpr() { - *this = ::std::move(from); - } - - inline ArrayCoerceExpr& operator=(const ArrayCoerceExpr& from) { - CopyFrom(from); - return *this; - } - inline ArrayCoerceExpr& operator=(ArrayCoerceExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ArrayCoerceExpr& default_instance() { - return *internal_default_instance(); - } - static inline const ArrayCoerceExpr* internal_default_instance() { - return reinterpret_cast( - &_ArrayCoerceExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 35; - - friend void swap(ArrayCoerceExpr& a, ArrayCoerceExpr& b) { - a.Swap(&b); - } - inline void Swap(ArrayCoerceExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ArrayCoerceExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ArrayCoerceExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ArrayCoerceExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ArrayCoerceExpr& from) { - ArrayCoerceExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ArrayCoerceExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ArrayCoerceExpr"; - } - protected: - explicit ArrayCoerceExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXprFieldNumber = 1, - kArgFieldNumber = 2, - kElemexprFieldNumber = 3, - kResulttypeFieldNumber = 4, - kResulttypmodFieldNumber = 5, - kResultcollidFieldNumber = 6, - kCoerceformatFieldNumber = 7, - kLocationFieldNumber = 8, - }; - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.Node arg = 2 [json_name = "arg"]; - bool has_arg() const; - private: - bool _internal_has_arg() const; - public: - void clear_arg(); - const ::pg_query::Node& arg() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_arg(); - ::pg_query::Node* mutable_arg(); - void set_allocated_arg(::pg_query::Node* arg); - private: - const ::pg_query::Node& _internal_arg() const; - ::pg_query::Node* _internal_mutable_arg(); - public: - void unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg); - ::pg_query::Node* unsafe_arena_release_arg(); - - // .pg_query.Node elemexpr = 3 [json_name = "elemexpr"]; - bool has_elemexpr() const; - private: - bool _internal_has_elemexpr() const; - public: - void clear_elemexpr(); - const ::pg_query::Node& elemexpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_elemexpr(); - ::pg_query::Node* mutable_elemexpr(); - void set_allocated_elemexpr(::pg_query::Node* elemexpr); - private: - const ::pg_query::Node& _internal_elemexpr() const; - ::pg_query::Node* _internal_mutable_elemexpr(); - public: - void unsafe_arena_set_allocated_elemexpr( - ::pg_query::Node* elemexpr); - ::pg_query::Node* unsafe_arena_release_elemexpr(); - - // uint32 resulttype = 4 [json_name = "resulttype"]; - void clear_resulttype(); - uint32_t resulttype() const; - void set_resulttype(uint32_t value); - private: - uint32_t _internal_resulttype() const; - void _internal_set_resulttype(uint32_t value); - public: - - // int32 resulttypmod = 5 [json_name = "resulttypmod"]; - void clear_resulttypmod(); - int32_t resulttypmod() const; - void set_resulttypmod(int32_t value); - private: - int32_t _internal_resulttypmod() const; - void _internal_set_resulttypmod(int32_t value); - public: - - // uint32 resultcollid = 6 [json_name = "resultcollid"]; - void clear_resultcollid(); - uint32_t resultcollid() const; - void set_resultcollid(uint32_t value); - private: - uint32_t _internal_resultcollid() const; - void _internal_set_resultcollid(uint32_t value); - public: - - // .pg_query.CoercionForm coerceformat = 7 [json_name = "coerceformat"]; - void clear_coerceformat(); - ::pg_query::CoercionForm coerceformat() const; - void set_coerceformat(::pg_query::CoercionForm value); - private: - ::pg_query::CoercionForm _internal_coerceformat() const; - void _internal_set_coerceformat(::pg_query::CoercionForm value); - public: - - // int32 location = 8 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.ArrayCoerceExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* xpr_; - ::pg_query::Node* arg_; - ::pg_query::Node* elemexpr_; - uint32_t resulttype_; - int32_t resulttypmod_; - uint32_t resultcollid_; - int coerceformat_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ConvertRowtypeExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ConvertRowtypeExpr) */ { - public: - inline ConvertRowtypeExpr() : ConvertRowtypeExpr(nullptr) {} - ~ConvertRowtypeExpr() override; - explicit PROTOBUF_CONSTEXPR ConvertRowtypeExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConvertRowtypeExpr(const ConvertRowtypeExpr& from); - ConvertRowtypeExpr(ConvertRowtypeExpr&& from) noexcept - : ConvertRowtypeExpr() { - *this = ::std::move(from); - } - - inline ConvertRowtypeExpr& operator=(const ConvertRowtypeExpr& from) { - CopyFrom(from); - return *this; - } - inline ConvertRowtypeExpr& operator=(ConvertRowtypeExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ConvertRowtypeExpr& default_instance() { - return *internal_default_instance(); - } - static inline const ConvertRowtypeExpr* internal_default_instance() { - return reinterpret_cast( - &_ConvertRowtypeExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 36; - - friend void swap(ConvertRowtypeExpr& a, ConvertRowtypeExpr& b) { - a.Swap(&b); - } - inline void Swap(ConvertRowtypeExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConvertRowtypeExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConvertRowtypeExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ConvertRowtypeExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ConvertRowtypeExpr& from) { - ConvertRowtypeExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ConvertRowtypeExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ConvertRowtypeExpr"; - } - protected: - explicit ConvertRowtypeExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXprFieldNumber = 1, - kArgFieldNumber = 2, - kResulttypeFieldNumber = 3, - kConvertformatFieldNumber = 4, - kLocationFieldNumber = 5, - }; - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.Node arg = 2 [json_name = "arg"]; - bool has_arg() const; - private: - bool _internal_has_arg() const; - public: - void clear_arg(); - const ::pg_query::Node& arg() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_arg(); - ::pg_query::Node* mutable_arg(); - void set_allocated_arg(::pg_query::Node* arg); - private: - const ::pg_query::Node& _internal_arg() const; - ::pg_query::Node* _internal_mutable_arg(); - public: - void unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg); - ::pg_query::Node* unsafe_arena_release_arg(); - - // uint32 resulttype = 3 [json_name = "resulttype"]; - void clear_resulttype(); - uint32_t resulttype() const; - void set_resulttype(uint32_t value); - private: - uint32_t _internal_resulttype() const; - void _internal_set_resulttype(uint32_t value); - public: - - // .pg_query.CoercionForm convertformat = 4 [json_name = "convertformat"]; - void clear_convertformat(); - ::pg_query::CoercionForm convertformat() const; - void set_convertformat(::pg_query::CoercionForm value); - private: - ::pg_query::CoercionForm _internal_convertformat() const; - void _internal_set_convertformat(::pg_query::CoercionForm value); - public: - - // int32 location = 5 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.ConvertRowtypeExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* xpr_; - ::pg_query::Node* arg_; - uint32_t resulttype_; - int convertformat_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CollateExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CollateExpr) */ { - public: - inline CollateExpr() : CollateExpr(nullptr) {} - ~CollateExpr() override; - explicit PROTOBUF_CONSTEXPR CollateExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CollateExpr(const CollateExpr& from); - CollateExpr(CollateExpr&& from) noexcept - : CollateExpr() { - *this = ::std::move(from); - } - - inline CollateExpr& operator=(const CollateExpr& from) { - CopyFrom(from); - return *this; - } - inline CollateExpr& operator=(CollateExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CollateExpr& default_instance() { - return *internal_default_instance(); - } - static inline const CollateExpr* internal_default_instance() { - return reinterpret_cast( - &_CollateExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 37; - - friend void swap(CollateExpr& a, CollateExpr& b) { - a.Swap(&b); - } - inline void Swap(CollateExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CollateExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CollateExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CollateExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CollateExpr& from) { - CollateExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CollateExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CollateExpr"; - } - protected: - explicit CollateExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXprFieldNumber = 1, - kArgFieldNumber = 2, - kCollOidFieldNumber = 3, - kLocationFieldNumber = 4, - }; - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.Node arg = 2 [json_name = "arg"]; - bool has_arg() const; - private: - bool _internal_has_arg() const; - public: - void clear_arg(); - const ::pg_query::Node& arg() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_arg(); - ::pg_query::Node* mutable_arg(); - void set_allocated_arg(::pg_query::Node* arg); - private: - const ::pg_query::Node& _internal_arg() const; - ::pg_query::Node* _internal_mutable_arg(); - public: - void unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg); - ::pg_query::Node* unsafe_arena_release_arg(); - - // uint32 coll_oid = 3 [json_name = "collOid"]; - void clear_coll_oid(); - uint32_t coll_oid() const; - void set_coll_oid(uint32_t value); - private: - uint32_t _internal_coll_oid() const; - void _internal_set_coll_oid(uint32_t value); - public: - - // int32 location = 4 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CollateExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* xpr_; - ::pg_query::Node* arg_; - uint32_t coll_oid_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CaseExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CaseExpr) */ { - public: - inline CaseExpr() : CaseExpr(nullptr) {} - ~CaseExpr() override; - explicit PROTOBUF_CONSTEXPR CaseExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CaseExpr(const CaseExpr& from); - CaseExpr(CaseExpr&& from) noexcept - : CaseExpr() { - *this = ::std::move(from); - } - - inline CaseExpr& operator=(const CaseExpr& from) { - CopyFrom(from); - return *this; - } - inline CaseExpr& operator=(CaseExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CaseExpr& default_instance() { - return *internal_default_instance(); - } - static inline const CaseExpr* internal_default_instance() { - return reinterpret_cast( - &_CaseExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 38; - - friend void swap(CaseExpr& a, CaseExpr& b) { - a.Swap(&b); - } - inline void Swap(CaseExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CaseExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CaseExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CaseExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CaseExpr& from) { - CaseExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CaseExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CaseExpr"; - } - protected: - explicit CaseExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArgsFieldNumber = 5, - kXprFieldNumber = 1, - kArgFieldNumber = 4, - kDefresultFieldNumber = 6, - kCasetypeFieldNumber = 2, - kCasecollidFieldNumber = 3, - kLocationFieldNumber = 7, - }; - // repeated .pg_query.Node args = 5 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.Node arg = 4 [json_name = "arg"]; - bool has_arg() const; - private: - bool _internal_has_arg() const; - public: - void clear_arg(); - const ::pg_query::Node& arg() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_arg(); - ::pg_query::Node* mutable_arg(); - void set_allocated_arg(::pg_query::Node* arg); - private: - const ::pg_query::Node& _internal_arg() const; - ::pg_query::Node* _internal_mutable_arg(); - public: - void unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg); - ::pg_query::Node* unsafe_arena_release_arg(); - - // .pg_query.Node defresult = 6 [json_name = "defresult"]; - bool has_defresult() const; - private: - bool _internal_has_defresult() const; - public: - void clear_defresult(); - const ::pg_query::Node& defresult() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_defresult(); - ::pg_query::Node* mutable_defresult(); - void set_allocated_defresult(::pg_query::Node* defresult); - private: - const ::pg_query::Node& _internal_defresult() const; - ::pg_query::Node* _internal_mutable_defresult(); - public: - void unsafe_arena_set_allocated_defresult( - ::pg_query::Node* defresult); - ::pg_query::Node* unsafe_arena_release_defresult(); - - // uint32 casetype = 2 [json_name = "casetype"]; - void clear_casetype(); - uint32_t casetype() const; - void set_casetype(uint32_t value); - private: - uint32_t _internal_casetype() const; - void _internal_set_casetype(uint32_t value); - public: - - // uint32 casecollid = 3 [json_name = "casecollid"]; - void clear_casecollid(); - uint32_t casecollid() const; - void set_casecollid(uint32_t value); - private: - uint32_t _internal_casecollid() const; - void _internal_set_casecollid(uint32_t value); - public: - - // int32 location = 7 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CaseExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - ::pg_query::Node* xpr_; - ::pg_query::Node* arg_; - ::pg_query::Node* defresult_; - uint32_t casetype_; - uint32_t casecollid_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CaseWhen final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CaseWhen) */ { - public: - inline CaseWhen() : CaseWhen(nullptr) {} - ~CaseWhen() override; - explicit PROTOBUF_CONSTEXPR CaseWhen(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CaseWhen(const CaseWhen& from); - CaseWhen(CaseWhen&& from) noexcept - : CaseWhen() { - *this = ::std::move(from); - } - - inline CaseWhen& operator=(const CaseWhen& from) { - CopyFrom(from); - return *this; - } - inline CaseWhen& operator=(CaseWhen&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CaseWhen& default_instance() { - return *internal_default_instance(); - } - static inline const CaseWhen* internal_default_instance() { - return reinterpret_cast( - &_CaseWhen_default_instance_); - } - static constexpr int kIndexInFileMessages = - 39; - - friend void swap(CaseWhen& a, CaseWhen& b) { - a.Swap(&b); - } - inline void Swap(CaseWhen* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CaseWhen* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CaseWhen* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CaseWhen& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CaseWhen& from) { - CaseWhen::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CaseWhen* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CaseWhen"; - } - protected: - explicit CaseWhen(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXprFieldNumber = 1, - kExprFieldNumber = 2, - kResultFieldNumber = 3, - kLocationFieldNumber = 4, - }; - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.Node expr = 2 [json_name = "expr"]; - bool has_expr() const; - private: - bool _internal_has_expr() const; - public: - void clear_expr(); - const ::pg_query::Node& expr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_expr(); - ::pg_query::Node* mutable_expr(); - void set_allocated_expr(::pg_query::Node* expr); - private: - const ::pg_query::Node& _internal_expr() const; - ::pg_query::Node* _internal_mutable_expr(); - public: - void unsafe_arena_set_allocated_expr( - ::pg_query::Node* expr); - ::pg_query::Node* unsafe_arena_release_expr(); - - // .pg_query.Node result = 3 [json_name = "result"]; - bool has_result() const; - private: - bool _internal_has_result() const; - public: - void clear_result(); - const ::pg_query::Node& result() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_result(); - ::pg_query::Node* mutable_result(); - void set_allocated_result(::pg_query::Node* result); - private: - const ::pg_query::Node& _internal_result() const; - ::pg_query::Node* _internal_mutable_result(); - public: - void unsafe_arena_set_allocated_result( - ::pg_query::Node* result); - ::pg_query::Node* unsafe_arena_release_result(); - - // int32 location = 4 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CaseWhen) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* xpr_; - ::pg_query::Node* expr_; - ::pg_query::Node* result_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CaseTestExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CaseTestExpr) */ { - public: - inline CaseTestExpr() : CaseTestExpr(nullptr) {} - ~CaseTestExpr() override; - explicit PROTOBUF_CONSTEXPR CaseTestExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CaseTestExpr(const CaseTestExpr& from); - CaseTestExpr(CaseTestExpr&& from) noexcept - : CaseTestExpr() { - *this = ::std::move(from); - } - - inline CaseTestExpr& operator=(const CaseTestExpr& from) { - CopyFrom(from); - return *this; - } - inline CaseTestExpr& operator=(CaseTestExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CaseTestExpr& default_instance() { - return *internal_default_instance(); - } - static inline const CaseTestExpr* internal_default_instance() { - return reinterpret_cast( - &_CaseTestExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 40; - - friend void swap(CaseTestExpr& a, CaseTestExpr& b) { - a.Swap(&b); - } - inline void Swap(CaseTestExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CaseTestExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CaseTestExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CaseTestExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CaseTestExpr& from) { - CaseTestExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CaseTestExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CaseTestExpr"; - } - protected: - explicit CaseTestExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXprFieldNumber = 1, - kTypeIdFieldNumber = 2, - kTypeModFieldNumber = 3, - kCollationFieldNumber = 4, - }; - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // uint32 type_id = 2 [json_name = "typeId"]; - void clear_type_id(); - uint32_t type_id() const; - void set_type_id(uint32_t value); - private: - uint32_t _internal_type_id() const; - void _internal_set_type_id(uint32_t value); - public: - - // int32 type_mod = 3 [json_name = "typeMod"]; - void clear_type_mod(); - int32_t type_mod() const; - void set_type_mod(int32_t value); - private: - int32_t _internal_type_mod() const; - void _internal_set_type_mod(int32_t value); - public: - - // uint32 collation = 4 [json_name = "collation"]; - void clear_collation(); - uint32_t collation() const; - void set_collation(uint32_t value); - private: - uint32_t _internal_collation() const; - void _internal_set_collation(uint32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CaseTestExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* xpr_; - uint32_t type_id_; - int32_t type_mod_; - uint32_t collation_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ArrayExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ArrayExpr) */ { - public: - inline ArrayExpr() : ArrayExpr(nullptr) {} - ~ArrayExpr() override; - explicit PROTOBUF_CONSTEXPR ArrayExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ArrayExpr(const ArrayExpr& from); - ArrayExpr(ArrayExpr&& from) noexcept - : ArrayExpr() { - *this = ::std::move(from); - } - - inline ArrayExpr& operator=(const ArrayExpr& from) { - CopyFrom(from); - return *this; - } - inline ArrayExpr& operator=(ArrayExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ArrayExpr& default_instance() { - return *internal_default_instance(); - } - static inline const ArrayExpr* internal_default_instance() { - return reinterpret_cast( - &_ArrayExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 41; - - friend void swap(ArrayExpr& a, ArrayExpr& b) { - a.Swap(&b); - } - inline void Swap(ArrayExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ArrayExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ArrayExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ArrayExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ArrayExpr& from) { - ArrayExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ArrayExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ArrayExpr"; - } - protected: - explicit ArrayExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kElementsFieldNumber = 5, - kXprFieldNumber = 1, - kArrayTypeidFieldNumber = 2, - kArrayCollidFieldNumber = 3, - kElementTypeidFieldNumber = 4, - kMultidimsFieldNumber = 6, - kLocationFieldNumber = 7, - }; - // repeated .pg_query.Node elements = 5 [json_name = "elements"]; - int elements_size() const; - private: - int _internal_elements_size() const; - public: - void clear_elements(); - ::pg_query::Node* mutable_elements(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_elements(); - private: - const ::pg_query::Node& _internal_elements(int index) const; - ::pg_query::Node* _internal_add_elements(); - public: - const ::pg_query::Node& elements(int index) const; - ::pg_query::Node* add_elements(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - elements() const; - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // uint32 array_typeid = 2 [json_name = "array_typeid"]; - void clear_array_typeid(); - uint32_t array_typeid() const; - void set_array_typeid(uint32_t value); - private: - uint32_t _internal_array_typeid() const; - void _internal_set_array_typeid(uint32_t value); - public: - - // uint32 array_collid = 3 [json_name = "array_collid"]; - void clear_array_collid(); - uint32_t array_collid() const; - void set_array_collid(uint32_t value); - private: - uint32_t _internal_array_collid() const; - void _internal_set_array_collid(uint32_t value); - public: - - // uint32 element_typeid = 4 [json_name = "element_typeid"]; - void clear_element_typeid(); - uint32_t element_typeid() const; - void set_element_typeid(uint32_t value); - private: - uint32_t _internal_element_typeid() const; - void _internal_set_element_typeid(uint32_t value); - public: - - // bool multidims = 6 [json_name = "multidims"]; - void clear_multidims(); - bool multidims() const; - void set_multidims(bool value); - private: - bool _internal_multidims() const; - void _internal_set_multidims(bool value); - public: - - // int32 location = 7 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.ArrayExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > elements_; - ::pg_query::Node* xpr_; - uint32_t array_typeid_; - uint32_t array_collid_; - uint32_t element_typeid_; - bool multidims_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class RowExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.RowExpr) */ { - public: - inline RowExpr() : RowExpr(nullptr) {} - ~RowExpr() override; - explicit PROTOBUF_CONSTEXPR RowExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - RowExpr(const RowExpr& from); - RowExpr(RowExpr&& from) noexcept - : RowExpr() { - *this = ::std::move(from); - } - - inline RowExpr& operator=(const RowExpr& from) { - CopyFrom(from); - return *this; - } - inline RowExpr& operator=(RowExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RowExpr& default_instance() { - return *internal_default_instance(); - } - static inline const RowExpr* internal_default_instance() { - return reinterpret_cast( - &_RowExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 42; - - friend void swap(RowExpr& a, RowExpr& b) { - a.Swap(&b); - } - inline void Swap(RowExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RowExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RowExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RowExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RowExpr& from) { - RowExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RowExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.RowExpr"; - } - protected: - explicit RowExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArgsFieldNumber = 2, - kColnamesFieldNumber = 5, - kXprFieldNumber = 1, - kRowTypeidFieldNumber = 3, - kRowFormatFieldNumber = 4, - kLocationFieldNumber = 6, - }; - // repeated .pg_query.Node args = 2 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // repeated .pg_query.Node colnames = 5 [json_name = "colnames"]; - int colnames_size() const; - private: - int _internal_colnames_size() const; - public: - void clear_colnames(); - ::pg_query::Node* mutable_colnames(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_colnames(); - private: - const ::pg_query::Node& _internal_colnames(int index) const; - ::pg_query::Node* _internal_add_colnames(); - public: - const ::pg_query::Node& colnames(int index) const; - ::pg_query::Node* add_colnames(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - colnames() const; - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // uint32 row_typeid = 3 [json_name = "row_typeid"]; - void clear_row_typeid(); - uint32_t row_typeid() const; - void set_row_typeid(uint32_t value); - private: - uint32_t _internal_row_typeid() const; - void _internal_set_row_typeid(uint32_t value); - public: - - // .pg_query.CoercionForm row_format = 4 [json_name = "row_format"]; - void clear_row_format(); - ::pg_query::CoercionForm row_format() const; - void set_row_format(::pg_query::CoercionForm value); - private: - ::pg_query::CoercionForm _internal_row_format() const; - void _internal_set_row_format(::pg_query::CoercionForm value); - public: - - // int32 location = 6 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.RowExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > colnames_; - ::pg_query::Node* xpr_; - uint32_t row_typeid_; - int row_format_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class RowCompareExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.RowCompareExpr) */ { - public: - inline RowCompareExpr() : RowCompareExpr(nullptr) {} - ~RowCompareExpr() override; - explicit PROTOBUF_CONSTEXPR RowCompareExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - RowCompareExpr(const RowCompareExpr& from); - RowCompareExpr(RowCompareExpr&& from) noexcept - : RowCompareExpr() { - *this = ::std::move(from); - } - - inline RowCompareExpr& operator=(const RowCompareExpr& from) { - CopyFrom(from); - return *this; - } - inline RowCompareExpr& operator=(RowCompareExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RowCompareExpr& default_instance() { - return *internal_default_instance(); - } - static inline const RowCompareExpr* internal_default_instance() { - return reinterpret_cast( - &_RowCompareExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 43; - - friend void swap(RowCompareExpr& a, RowCompareExpr& b) { - a.Swap(&b); - } - inline void Swap(RowCompareExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RowCompareExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RowCompareExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RowCompareExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RowCompareExpr& from) { - RowCompareExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RowCompareExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.RowCompareExpr"; - } - protected: - explicit RowCompareExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOpnosFieldNumber = 3, - kOpfamiliesFieldNumber = 4, - kInputcollidsFieldNumber = 5, - kLargsFieldNumber = 6, - kRargsFieldNumber = 7, - kXprFieldNumber = 1, - kRctypeFieldNumber = 2, - }; - // repeated .pg_query.Node opnos = 3 [json_name = "opnos"]; - int opnos_size() const; - private: - int _internal_opnos_size() const; - public: - void clear_opnos(); - ::pg_query::Node* mutable_opnos(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_opnos(); - private: - const ::pg_query::Node& _internal_opnos(int index) const; - ::pg_query::Node* _internal_add_opnos(); - public: - const ::pg_query::Node& opnos(int index) const; - ::pg_query::Node* add_opnos(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - opnos() const; - - // repeated .pg_query.Node opfamilies = 4 [json_name = "opfamilies"]; - int opfamilies_size() const; - private: - int _internal_opfamilies_size() const; - public: - void clear_opfamilies(); - ::pg_query::Node* mutable_opfamilies(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_opfamilies(); - private: - const ::pg_query::Node& _internal_opfamilies(int index) const; - ::pg_query::Node* _internal_add_opfamilies(); - public: - const ::pg_query::Node& opfamilies(int index) const; - ::pg_query::Node* add_opfamilies(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - opfamilies() const; - - // repeated .pg_query.Node inputcollids = 5 [json_name = "inputcollids"]; - int inputcollids_size() const; - private: - int _internal_inputcollids_size() const; - public: - void clear_inputcollids(); - ::pg_query::Node* mutable_inputcollids(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_inputcollids(); - private: - const ::pg_query::Node& _internal_inputcollids(int index) const; - ::pg_query::Node* _internal_add_inputcollids(); - public: - const ::pg_query::Node& inputcollids(int index) const; - ::pg_query::Node* add_inputcollids(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - inputcollids() const; - - // repeated .pg_query.Node largs = 6 [json_name = "largs"]; - int largs_size() const; - private: - int _internal_largs_size() const; - public: - void clear_largs(); - ::pg_query::Node* mutable_largs(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_largs(); - private: - const ::pg_query::Node& _internal_largs(int index) const; - ::pg_query::Node* _internal_add_largs(); - public: - const ::pg_query::Node& largs(int index) const; - ::pg_query::Node* add_largs(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - largs() const; - - // repeated .pg_query.Node rargs = 7 [json_name = "rargs"]; - int rargs_size() const; - private: - int _internal_rargs_size() const; - public: - void clear_rargs(); - ::pg_query::Node* mutable_rargs(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_rargs(); - private: - const ::pg_query::Node& _internal_rargs(int index) const; - ::pg_query::Node* _internal_add_rargs(); - public: - const ::pg_query::Node& rargs(int index) const; - ::pg_query::Node* add_rargs(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - rargs() const; - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.RowCompareType rctype = 2 [json_name = "rctype"]; - void clear_rctype(); - ::pg_query::RowCompareType rctype() const; - void set_rctype(::pg_query::RowCompareType value); - private: - ::pg_query::RowCompareType _internal_rctype() const; - void _internal_set_rctype(::pg_query::RowCompareType value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.RowCompareExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > opnos_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > opfamilies_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > inputcollids_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > largs_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > rargs_; - ::pg_query::Node* xpr_; - int rctype_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CoalesceExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CoalesceExpr) */ { - public: - inline CoalesceExpr() : CoalesceExpr(nullptr) {} - ~CoalesceExpr() override; - explicit PROTOBUF_CONSTEXPR CoalesceExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CoalesceExpr(const CoalesceExpr& from); - CoalesceExpr(CoalesceExpr&& from) noexcept - : CoalesceExpr() { - *this = ::std::move(from); - } - - inline CoalesceExpr& operator=(const CoalesceExpr& from) { - CopyFrom(from); - return *this; - } - inline CoalesceExpr& operator=(CoalesceExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CoalesceExpr& default_instance() { - return *internal_default_instance(); - } - static inline const CoalesceExpr* internal_default_instance() { - return reinterpret_cast( - &_CoalesceExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 44; - - friend void swap(CoalesceExpr& a, CoalesceExpr& b) { - a.Swap(&b); - } - inline void Swap(CoalesceExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CoalesceExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CoalesceExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CoalesceExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CoalesceExpr& from) { - CoalesceExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CoalesceExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CoalesceExpr"; - } - protected: - explicit CoalesceExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArgsFieldNumber = 4, - kXprFieldNumber = 1, - kCoalescetypeFieldNumber = 2, - kCoalescecollidFieldNumber = 3, - kLocationFieldNumber = 5, - }; - // repeated .pg_query.Node args = 4 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // uint32 coalescetype = 2 [json_name = "coalescetype"]; - void clear_coalescetype(); - uint32_t coalescetype() const; - void set_coalescetype(uint32_t value); - private: - uint32_t _internal_coalescetype() const; - void _internal_set_coalescetype(uint32_t value); - public: - - // uint32 coalescecollid = 3 [json_name = "coalescecollid"]; - void clear_coalescecollid(); - uint32_t coalescecollid() const; - void set_coalescecollid(uint32_t value); - private: - uint32_t _internal_coalescecollid() const; - void _internal_set_coalescecollid(uint32_t value); - public: - - // int32 location = 5 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CoalesceExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - ::pg_query::Node* xpr_; - uint32_t coalescetype_; - uint32_t coalescecollid_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class MinMaxExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.MinMaxExpr) */ { - public: - inline MinMaxExpr() : MinMaxExpr(nullptr) {} - ~MinMaxExpr() override; - explicit PROTOBUF_CONSTEXPR MinMaxExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - MinMaxExpr(const MinMaxExpr& from); - MinMaxExpr(MinMaxExpr&& from) noexcept - : MinMaxExpr() { - *this = ::std::move(from); - } - - inline MinMaxExpr& operator=(const MinMaxExpr& from) { - CopyFrom(from); - return *this; - } - inline MinMaxExpr& operator=(MinMaxExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const MinMaxExpr& default_instance() { - return *internal_default_instance(); - } - static inline const MinMaxExpr* internal_default_instance() { - return reinterpret_cast( - &_MinMaxExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 45; - - friend void swap(MinMaxExpr& a, MinMaxExpr& b) { - a.Swap(&b); - } - inline void Swap(MinMaxExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MinMaxExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - MinMaxExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MinMaxExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const MinMaxExpr& from) { - MinMaxExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MinMaxExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.MinMaxExpr"; - } - protected: - explicit MinMaxExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArgsFieldNumber = 6, - kXprFieldNumber = 1, - kMinmaxtypeFieldNumber = 2, - kMinmaxcollidFieldNumber = 3, - kInputcollidFieldNumber = 4, - kOpFieldNumber = 5, - kLocationFieldNumber = 7, - }; - // repeated .pg_query.Node args = 6 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // uint32 minmaxtype = 2 [json_name = "minmaxtype"]; - void clear_minmaxtype(); - uint32_t minmaxtype() const; - void set_minmaxtype(uint32_t value); - private: - uint32_t _internal_minmaxtype() const; - void _internal_set_minmaxtype(uint32_t value); - public: - - // uint32 minmaxcollid = 3 [json_name = "minmaxcollid"]; - void clear_minmaxcollid(); - uint32_t minmaxcollid() const; - void set_minmaxcollid(uint32_t value); - private: - uint32_t _internal_minmaxcollid() const; - void _internal_set_minmaxcollid(uint32_t value); - public: - - // uint32 inputcollid = 4 [json_name = "inputcollid"]; - void clear_inputcollid(); - uint32_t inputcollid() const; - void set_inputcollid(uint32_t value); - private: - uint32_t _internal_inputcollid() const; - void _internal_set_inputcollid(uint32_t value); - public: - - // .pg_query.MinMaxOp op = 5 [json_name = "op"]; - void clear_op(); - ::pg_query::MinMaxOp op() const; - void set_op(::pg_query::MinMaxOp value); - private: - ::pg_query::MinMaxOp _internal_op() const; - void _internal_set_op(::pg_query::MinMaxOp value); - public: - - // int32 location = 7 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.MinMaxExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - ::pg_query::Node* xpr_; - uint32_t minmaxtype_; - uint32_t minmaxcollid_; - uint32_t inputcollid_; - int op_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class SQLValueFunction final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.SQLValueFunction) */ { - public: - inline SQLValueFunction() : SQLValueFunction(nullptr) {} - ~SQLValueFunction() override; - explicit PROTOBUF_CONSTEXPR SQLValueFunction(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SQLValueFunction(const SQLValueFunction& from); - SQLValueFunction(SQLValueFunction&& from) noexcept - : SQLValueFunction() { - *this = ::std::move(from); - } - - inline SQLValueFunction& operator=(const SQLValueFunction& from) { - CopyFrom(from); - return *this; - } - inline SQLValueFunction& operator=(SQLValueFunction&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SQLValueFunction& default_instance() { - return *internal_default_instance(); - } - static inline const SQLValueFunction* internal_default_instance() { - return reinterpret_cast( - &_SQLValueFunction_default_instance_); - } - static constexpr int kIndexInFileMessages = - 46; - - friend void swap(SQLValueFunction& a, SQLValueFunction& b) { - a.Swap(&b); - } - inline void Swap(SQLValueFunction* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SQLValueFunction* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SQLValueFunction* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SQLValueFunction& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SQLValueFunction& from) { - SQLValueFunction::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SQLValueFunction* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.SQLValueFunction"; - } - protected: - explicit SQLValueFunction(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXprFieldNumber = 1, - kOpFieldNumber = 2, - kTypeFieldNumber = 3, - kTypmodFieldNumber = 4, - kLocationFieldNumber = 5, - }; - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.SQLValueFunctionOp op = 2 [json_name = "op"]; - void clear_op(); - ::pg_query::SQLValueFunctionOp op() const; - void set_op(::pg_query::SQLValueFunctionOp value); - private: - ::pg_query::SQLValueFunctionOp _internal_op() const; - void _internal_set_op(::pg_query::SQLValueFunctionOp value); - public: - - // uint32 type = 3 [json_name = "type"]; - void clear_type(); - uint32_t type() const; - void set_type(uint32_t value); - private: - uint32_t _internal_type() const; - void _internal_set_type(uint32_t value); - public: - - // int32 typmod = 4 [json_name = "typmod"]; - void clear_typmod(); - int32_t typmod() const; - void set_typmod(int32_t value); - private: - int32_t _internal_typmod() const; - void _internal_set_typmod(int32_t value); - public: - - // int32 location = 5 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.SQLValueFunction) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* xpr_; - int op_; - uint32_t type_; - int32_t typmod_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class XmlExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.XmlExpr) */ { - public: - inline XmlExpr() : XmlExpr(nullptr) {} - ~XmlExpr() override; - explicit PROTOBUF_CONSTEXPR XmlExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - XmlExpr(const XmlExpr& from); - XmlExpr(XmlExpr&& from) noexcept - : XmlExpr() { - *this = ::std::move(from); - } - - inline XmlExpr& operator=(const XmlExpr& from) { - CopyFrom(from); - return *this; - } - inline XmlExpr& operator=(XmlExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const XmlExpr& default_instance() { - return *internal_default_instance(); - } - static inline const XmlExpr* internal_default_instance() { - return reinterpret_cast( - &_XmlExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 47; - - friend void swap(XmlExpr& a, XmlExpr& b) { - a.Swap(&b); - } - inline void Swap(XmlExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(XmlExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - XmlExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const XmlExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const XmlExpr& from) { - XmlExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(XmlExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.XmlExpr"; - } - protected: - explicit XmlExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNamedArgsFieldNumber = 4, - kArgNamesFieldNumber = 5, - kArgsFieldNumber = 6, - kNameFieldNumber = 3, - kXprFieldNumber = 1, - kOpFieldNumber = 2, - kXmloptionFieldNumber = 7, - kTypeFieldNumber = 8, - kTypmodFieldNumber = 9, - kLocationFieldNumber = 10, - }; - // repeated .pg_query.Node named_args = 4 [json_name = "named_args"]; - int named_args_size() const; - private: - int _internal_named_args_size() const; - public: - void clear_named_args(); - ::pg_query::Node* mutable_named_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_named_args(); - private: - const ::pg_query::Node& _internal_named_args(int index) const; - ::pg_query::Node* _internal_add_named_args(); - public: - const ::pg_query::Node& named_args(int index) const; - ::pg_query::Node* add_named_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - named_args() const; - - // repeated .pg_query.Node arg_names = 5 [json_name = "arg_names"]; - int arg_names_size() const; - private: - int _internal_arg_names_size() const; - public: - void clear_arg_names(); - ::pg_query::Node* mutable_arg_names(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_arg_names(); - private: - const ::pg_query::Node& _internal_arg_names(int index) const; - ::pg_query::Node* _internal_add_arg_names(); - public: - const ::pg_query::Node& arg_names(int index) const; - ::pg_query::Node* add_arg_names(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - arg_names() const; - - // repeated .pg_query.Node args = 6 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // string name = 3 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.XmlExprOp op = 2 [json_name = "op"]; - void clear_op(); - ::pg_query::XmlExprOp op() const; - void set_op(::pg_query::XmlExprOp value); - private: - ::pg_query::XmlExprOp _internal_op() const; - void _internal_set_op(::pg_query::XmlExprOp value); - public: - - // .pg_query.XmlOptionType xmloption = 7 [json_name = "xmloption"]; - void clear_xmloption(); - ::pg_query::XmlOptionType xmloption() const; - void set_xmloption(::pg_query::XmlOptionType value); - private: - ::pg_query::XmlOptionType _internal_xmloption() const; - void _internal_set_xmloption(::pg_query::XmlOptionType value); - public: - - // uint32 type = 8 [json_name = "type"]; - void clear_type(); - uint32_t type() const; - void set_type(uint32_t value); - private: - uint32_t _internal_type() const; - void _internal_set_type(uint32_t value); - public: - - // int32 typmod = 9 [json_name = "typmod"]; - void clear_typmod(); - int32_t typmod() const; - void set_typmod(int32_t value); - private: - int32_t _internal_typmod() const; - void _internal_set_typmod(int32_t value); - public: - - // int32 location = 10 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.XmlExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > named_args_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > arg_names_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::pg_query::Node* xpr_; - int op_; - int xmloption_; - uint32_t type_; - int32_t typmod_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class NullTest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.NullTest) */ { - public: - inline NullTest() : NullTest(nullptr) {} - ~NullTest() override; - explicit PROTOBUF_CONSTEXPR NullTest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - NullTest(const NullTest& from); - NullTest(NullTest&& from) noexcept - : NullTest() { - *this = ::std::move(from); - } - - inline NullTest& operator=(const NullTest& from) { - CopyFrom(from); - return *this; - } - inline NullTest& operator=(NullTest&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const NullTest& default_instance() { - return *internal_default_instance(); - } - static inline const NullTest* internal_default_instance() { - return reinterpret_cast( - &_NullTest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 48; - - friend void swap(NullTest& a, NullTest& b) { - a.Swap(&b); - } - inline void Swap(NullTest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(NullTest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - NullTest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const NullTest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const NullTest& from) { - NullTest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(NullTest* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.NullTest"; - } - protected: - explicit NullTest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXprFieldNumber = 1, - kArgFieldNumber = 2, - kNulltesttypeFieldNumber = 3, - kArgisrowFieldNumber = 4, - kLocationFieldNumber = 5, - }; - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.Node arg = 2 [json_name = "arg"]; - bool has_arg() const; - private: - bool _internal_has_arg() const; - public: - void clear_arg(); - const ::pg_query::Node& arg() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_arg(); - ::pg_query::Node* mutable_arg(); - void set_allocated_arg(::pg_query::Node* arg); - private: - const ::pg_query::Node& _internal_arg() const; - ::pg_query::Node* _internal_mutable_arg(); - public: - void unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg); - ::pg_query::Node* unsafe_arena_release_arg(); - - // .pg_query.NullTestType nulltesttype = 3 [json_name = "nulltesttype"]; - void clear_nulltesttype(); - ::pg_query::NullTestType nulltesttype() const; - void set_nulltesttype(::pg_query::NullTestType value); - private: - ::pg_query::NullTestType _internal_nulltesttype() const; - void _internal_set_nulltesttype(::pg_query::NullTestType value); - public: - - // bool argisrow = 4 [json_name = "argisrow"]; - void clear_argisrow(); - bool argisrow() const; - void set_argisrow(bool value); - private: - bool _internal_argisrow() const; - void _internal_set_argisrow(bool value); - public: - - // int32 location = 5 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.NullTest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* xpr_; - ::pg_query::Node* arg_; - int nulltesttype_; - bool argisrow_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class BooleanTest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.BooleanTest) */ { - public: - inline BooleanTest() : BooleanTest(nullptr) {} - ~BooleanTest() override; - explicit PROTOBUF_CONSTEXPR BooleanTest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BooleanTest(const BooleanTest& from); - BooleanTest(BooleanTest&& from) noexcept - : BooleanTest() { - *this = ::std::move(from); - } - - inline BooleanTest& operator=(const BooleanTest& from) { - CopyFrom(from); - return *this; - } - inline BooleanTest& operator=(BooleanTest&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const BooleanTest& default_instance() { - return *internal_default_instance(); - } - static inline const BooleanTest* internal_default_instance() { - return reinterpret_cast( - &_BooleanTest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 49; - - friend void swap(BooleanTest& a, BooleanTest& b) { - a.Swap(&b); - } - inline void Swap(BooleanTest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BooleanTest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BooleanTest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const BooleanTest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const BooleanTest& from) { - BooleanTest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(BooleanTest* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.BooleanTest"; - } - protected: - explicit BooleanTest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXprFieldNumber = 1, - kArgFieldNumber = 2, - kBooltesttypeFieldNumber = 3, - kLocationFieldNumber = 4, - }; - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.Node arg = 2 [json_name = "arg"]; - bool has_arg() const; - private: - bool _internal_has_arg() const; - public: - void clear_arg(); - const ::pg_query::Node& arg() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_arg(); - ::pg_query::Node* mutable_arg(); - void set_allocated_arg(::pg_query::Node* arg); - private: - const ::pg_query::Node& _internal_arg() const; - ::pg_query::Node* _internal_mutable_arg(); - public: - void unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg); - ::pg_query::Node* unsafe_arena_release_arg(); - - // .pg_query.BoolTestType booltesttype = 3 [json_name = "booltesttype"]; - void clear_booltesttype(); - ::pg_query::BoolTestType booltesttype() const; - void set_booltesttype(::pg_query::BoolTestType value); - private: - ::pg_query::BoolTestType _internal_booltesttype() const; - void _internal_set_booltesttype(::pg_query::BoolTestType value); - public: - - // int32 location = 4 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.BooleanTest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* xpr_; - ::pg_query::Node* arg_; - int booltesttype_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CoerceToDomain final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CoerceToDomain) */ { - public: - inline CoerceToDomain() : CoerceToDomain(nullptr) {} - ~CoerceToDomain() override; - explicit PROTOBUF_CONSTEXPR CoerceToDomain(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CoerceToDomain(const CoerceToDomain& from); - CoerceToDomain(CoerceToDomain&& from) noexcept - : CoerceToDomain() { - *this = ::std::move(from); - } - - inline CoerceToDomain& operator=(const CoerceToDomain& from) { - CopyFrom(from); - return *this; - } - inline CoerceToDomain& operator=(CoerceToDomain&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CoerceToDomain& default_instance() { - return *internal_default_instance(); - } - static inline const CoerceToDomain* internal_default_instance() { - return reinterpret_cast( - &_CoerceToDomain_default_instance_); - } - static constexpr int kIndexInFileMessages = - 50; - - friend void swap(CoerceToDomain& a, CoerceToDomain& b) { - a.Swap(&b); - } - inline void Swap(CoerceToDomain* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CoerceToDomain* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CoerceToDomain* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CoerceToDomain& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CoerceToDomain& from) { - CoerceToDomain::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CoerceToDomain* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CoerceToDomain"; - } - protected: - explicit CoerceToDomain(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXprFieldNumber = 1, - kArgFieldNumber = 2, - kResulttypeFieldNumber = 3, - kResulttypmodFieldNumber = 4, - kResultcollidFieldNumber = 5, - kCoercionformatFieldNumber = 6, - kLocationFieldNumber = 7, - }; - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.Node arg = 2 [json_name = "arg"]; - bool has_arg() const; - private: - bool _internal_has_arg() const; - public: - void clear_arg(); - const ::pg_query::Node& arg() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_arg(); - ::pg_query::Node* mutable_arg(); - void set_allocated_arg(::pg_query::Node* arg); - private: - const ::pg_query::Node& _internal_arg() const; - ::pg_query::Node* _internal_mutable_arg(); - public: - void unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg); - ::pg_query::Node* unsafe_arena_release_arg(); - - // uint32 resulttype = 3 [json_name = "resulttype"]; - void clear_resulttype(); - uint32_t resulttype() const; - void set_resulttype(uint32_t value); - private: - uint32_t _internal_resulttype() const; - void _internal_set_resulttype(uint32_t value); - public: - - // int32 resulttypmod = 4 [json_name = "resulttypmod"]; - void clear_resulttypmod(); - int32_t resulttypmod() const; - void set_resulttypmod(int32_t value); - private: - int32_t _internal_resulttypmod() const; - void _internal_set_resulttypmod(int32_t value); - public: - - // uint32 resultcollid = 5 [json_name = "resultcollid"]; - void clear_resultcollid(); - uint32_t resultcollid() const; - void set_resultcollid(uint32_t value); - private: - uint32_t _internal_resultcollid() const; - void _internal_set_resultcollid(uint32_t value); - public: - - // .pg_query.CoercionForm coercionformat = 6 [json_name = "coercionformat"]; - void clear_coercionformat(); - ::pg_query::CoercionForm coercionformat() const; - void set_coercionformat(::pg_query::CoercionForm value); - private: - ::pg_query::CoercionForm _internal_coercionformat() const; - void _internal_set_coercionformat(::pg_query::CoercionForm value); - public: - - // int32 location = 7 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CoerceToDomain) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* xpr_; - ::pg_query::Node* arg_; - uint32_t resulttype_; - int32_t resulttypmod_; - uint32_t resultcollid_; - int coercionformat_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CoerceToDomainValue final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CoerceToDomainValue) */ { - public: - inline CoerceToDomainValue() : CoerceToDomainValue(nullptr) {} - ~CoerceToDomainValue() override; - explicit PROTOBUF_CONSTEXPR CoerceToDomainValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CoerceToDomainValue(const CoerceToDomainValue& from); - CoerceToDomainValue(CoerceToDomainValue&& from) noexcept - : CoerceToDomainValue() { - *this = ::std::move(from); - } - - inline CoerceToDomainValue& operator=(const CoerceToDomainValue& from) { - CopyFrom(from); - return *this; - } - inline CoerceToDomainValue& operator=(CoerceToDomainValue&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CoerceToDomainValue& default_instance() { - return *internal_default_instance(); - } - static inline const CoerceToDomainValue* internal_default_instance() { - return reinterpret_cast( - &_CoerceToDomainValue_default_instance_); - } - static constexpr int kIndexInFileMessages = - 51; - - friend void swap(CoerceToDomainValue& a, CoerceToDomainValue& b) { - a.Swap(&b); - } - inline void Swap(CoerceToDomainValue* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CoerceToDomainValue* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CoerceToDomainValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CoerceToDomainValue& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CoerceToDomainValue& from) { - CoerceToDomainValue::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CoerceToDomainValue* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CoerceToDomainValue"; - } - protected: - explicit CoerceToDomainValue(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXprFieldNumber = 1, - kTypeIdFieldNumber = 2, - kTypeModFieldNumber = 3, - kCollationFieldNumber = 4, - kLocationFieldNumber = 5, - }; - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // uint32 type_id = 2 [json_name = "typeId"]; - void clear_type_id(); - uint32_t type_id() const; - void set_type_id(uint32_t value); - private: - uint32_t _internal_type_id() const; - void _internal_set_type_id(uint32_t value); - public: - - // int32 type_mod = 3 [json_name = "typeMod"]; - void clear_type_mod(); - int32_t type_mod() const; - void set_type_mod(int32_t value); - private: - int32_t _internal_type_mod() const; - void _internal_set_type_mod(int32_t value); - public: - - // uint32 collation = 4 [json_name = "collation"]; - void clear_collation(); - uint32_t collation() const; - void set_collation(uint32_t value); - private: - uint32_t _internal_collation() const; - void _internal_set_collation(uint32_t value); - public: - - // int32 location = 5 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CoerceToDomainValue) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* xpr_; - uint32_t type_id_; - int32_t type_mod_; - uint32_t collation_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class SetToDefault final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.SetToDefault) */ { - public: - inline SetToDefault() : SetToDefault(nullptr) {} - ~SetToDefault() override; - explicit PROTOBUF_CONSTEXPR SetToDefault(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SetToDefault(const SetToDefault& from); - SetToDefault(SetToDefault&& from) noexcept - : SetToDefault() { - *this = ::std::move(from); - } - - inline SetToDefault& operator=(const SetToDefault& from) { - CopyFrom(from); - return *this; - } - inline SetToDefault& operator=(SetToDefault&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetToDefault& default_instance() { - return *internal_default_instance(); - } - static inline const SetToDefault* internal_default_instance() { - return reinterpret_cast( - &_SetToDefault_default_instance_); - } - static constexpr int kIndexInFileMessages = - 52; - - friend void swap(SetToDefault& a, SetToDefault& b) { - a.Swap(&b); - } - inline void Swap(SetToDefault* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetToDefault* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetToDefault* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetToDefault& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetToDefault& from) { - SetToDefault::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetToDefault* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.SetToDefault"; - } - protected: - explicit SetToDefault(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXprFieldNumber = 1, - kTypeIdFieldNumber = 2, - kTypeModFieldNumber = 3, - kCollationFieldNumber = 4, - kLocationFieldNumber = 5, - }; - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // uint32 type_id = 2 [json_name = "typeId"]; - void clear_type_id(); - uint32_t type_id() const; - void set_type_id(uint32_t value); - private: - uint32_t _internal_type_id() const; - void _internal_set_type_id(uint32_t value); - public: - - // int32 type_mod = 3 [json_name = "typeMod"]; - void clear_type_mod(); - int32_t type_mod() const; - void set_type_mod(int32_t value); - private: - int32_t _internal_type_mod() const; - void _internal_set_type_mod(int32_t value); - public: - - // uint32 collation = 4 [json_name = "collation"]; - void clear_collation(); - uint32_t collation() const; - void set_collation(uint32_t value); - private: - uint32_t _internal_collation() const; - void _internal_set_collation(uint32_t value); - public: - - // int32 location = 5 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.SetToDefault) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* xpr_; - uint32_t type_id_; - int32_t type_mod_; - uint32_t collation_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CurrentOfExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CurrentOfExpr) */ { - public: - inline CurrentOfExpr() : CurrentOfExpr(nullptr) {} - ~CurrentOfExpr() override; - explicit PROTOBUF_CONSTEXPR CurrentOfExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CurrentOfExpr(const CurrentOfExpr& from); - CurrentOfExpr(CurrentOfExpr&& from) noexcept - : CurrentOfExpr() { - *this = ::std::move(from); - } - - inline CurrentOfExpr& operator=(const CurrentOfExpr& from) { - CopyFrom(from); - return *this; - } - inline CurrentOfExpr& operator=(CurrentOfExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CurrentOfExpr& default_instance() { - return *internal_default_instance(); - } - static inline const CurrentOfExpr* internal_default_instance() { - return reinterpret_cast( - &_CurrentOfExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 53; - - friend void swap(CurrentOfExpr& a, CurrentOfExpr& b) { - a.Swap(&b); - } - inline void Swap(CurrentOfExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CurrentOfExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CurrentOfExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CurrentOfExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CurrentOfExpr& from) { - CurrentOfExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CurrentOfExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CurrentOfExpr"; - } - protected: - explicit CurrentOfExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCursorNameFieldNumber = 3, - kXprFieldNumber = 1, - kCvarnoFieldNumber = 2, - kCursorParamFieldNumber = 4, - }; - // string cursor_name = 3 [json_name = "cursor_name"]; - void clear_cursor_name(); - const std::string& cursor_name() const; - template - void set_cursor_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_cursor_name(); - PROTOBUF_NODISCARD std::string* release_cursor_name(); - void set_allocated_cursor_name(std::string* cursor_name); - private: - const std::string& _internal_cursor_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_cursor_name(const std::string& value); - std::string* _internal_mutable_cursor_name(); - public: - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // uint32 cvarno = 2 [json_name = "cvarno"]; - void clear_cvarno(); - uint32_t cvarno() const; - void set_cvarno(uint32_t value); - private: - uint32_t _internal_cvarno() const; - void _internal_set_cvarno(uint32_t value); - public: - - // int32 cursor_param = 4 [json_name = "cursor_param"]; - void clear_cursor_param(); - int32_t cursor_param() const; - void set_cursor_param(int32_t value); - private: - int32_t _internal_cursor_param() const; - void _internal_set_cursor_param(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CurrentOfExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cursor_name_; - ::pg_query::Node* xpr_; - uint32_t cvarno_; - int32_t cursor_param_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class NextValueExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.NextValueExpr) */ { - public: - inline NextValueExpr() : NextValueExpr(nullptr) {} - ~NextValueExpr() override; - explicit PROTOBUF_CONSTEXPR NextValueExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - NextValueExpr(const NextValueExpr& from); - NextValueExpr(NextValueExpr&& from) noexcept - : NextValueExpr() { - *this = ::std::move(from); - } - - inline NextValueExpr& operator=(const NextValueExpr& from) { - CopyFrom(from); - return *this; - } - inline NextValueExpr& operator=(NextValueExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const NextValueExpr& default_instance() { - return *internal_default_instance(); - } - static inline const NextValueExpr* internal_default_instance() { - return reinterpret_cast( - &_NextValueExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 54; - - friend void swap(NextValueExpr& a, NextValueExpr& b) { - a.Swap(&b); - } - inline void Swap(NextValueExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(NextValueExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - NextValueExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const NextValueExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const NextValueExpr& from) { - NextValueExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(NextValueExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.NextValueExpr"; - } - protected: - explicit NextValueExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXprFieldNumber = 1, - kSeqidFieldNumber = 2, - kTypeIdFieldNumber = 3, - }; - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // uint32 seqid = 2 [json_name = "seqid"]; - void clear_seqid(); - uint32_t seqid() const; - void set_seqid(uint32_t value); - private: - uint32_t _internal_seqid() const; - void _internal_set_seqid(uint32_t value); - public: - - // uint32 type_id = 3 [json_name = "typeId"]; - void clear_type_id(); - uint32_t type_id() const; - void set_type_id(uint32_t value); - private: - uint32_t _internal_type_id() const; - void _internal_set_type_id(uint32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.NextValueExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* xpr_; - uint32_t seqid_; - uint32_t type_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class InferenceElem final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.InferenceElem) */ { - public: - inline InferenceElem() : InferenceElem(nullptr) {} - ~InferenceElem() override; - explicit PROTOBUF_CONSTEXPR InferenceElem(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - InferenceElem(const InferenceElem& from); - InferenceElem(InferenceElem&& from) noexcept - : InferenceElem() { - *this = ::std::move(from); - } - - inline InferenceElem& operator=(const InferenceElem& from) { - CopyFrom(from); - return *this; - } - inline InferenceElem& operator=(InferenceElem&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const InferenceElem& default_instance() { - return *internal_default_instance(); - } - static inline const InferenceElem* internal_default_instance() { - return reinterpret_cast( - &_InferenceElem_default_instance_); - } - static constexpr int kIndexInFileMessages = - 55; - - friend void swap(InferenceElem& a, InferenceElem& b) { - a.Swap(&b); - } - inline void Swap(InferenceElem* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(InferenceElem* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - InferenceElem* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const InferenceElem& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const InferenceElem& from) { - InferenceElem::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(InferenceElem* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.InferenceElem"; - } - protected: - explicit InferenceElem(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXprFieldNumber = 1, - kExprFieldNumber = 2, - kInfercollidFieldNumber = 3, - kInferopclassFieldNumber = 4, - }; - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.Node expr = 2 [json_name = "expr"]; - bool has_expr() const; - private: - bool _internal_has_expr() const; - public: - void clear_expr(); - const ::pg_query::Node& expr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_expr(); - ::pg_query::Node* mutable_expr(); - void set_allocated_expr(::pg_query::Node* expr); - private: - const ::pg_query::Node& _internal_expr() const; - ::pg_query::Node* _internal_mutable_expr(); - public: - void unsafe_arena_set_allocated_expr( - ::pg_query::Node* expr); - ::pg_query::Node* unsafe_arena_release_expr(); - - // uint32 infercollid = 3 [json_name = "infercollid"]; - void clear_infercollid(); - uint32_t infercollid() const; - void set_infercollid(uint32_t value); - private: - uint32_t _internal_infercollid() const; - void _internal_set_infercollid(uint32_t value); - public: - - // uint32 inferopclass = 4 [json_name = "inferopclass"]; - void clear_inferopclass(); - uint32_t inferopclass() const; - void set_inferopclass(uint32_t value); - private: - uint32_t _internal_inferopclass() const; - void _internal_set_inferopclass(uint32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.InferenceElem) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* xpr_; - ::pg_query::Node* expr_; - uint32_t infercollid_; - uint32_t inferopclass_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class TargetEntry final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.TargetEntry) */ { - public: - inline TargetEntry() : TargetEntry(nullptr) {} - ~TargetEntry() override; - explicit PROTOBUF_CONSTEXPR TargetEntry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - TargetEntry(const TargetEntry& from); - TargetEntry(TargetEntry&& from) noexcept - : TargetEntry() { - *this = ::std::move(from); - } - - inline TargetEntry& operator=(const TargetEntry& from) { - CopyFrom(from); - return *this; - } - inline TargetEntry& operator=(TargetEntry&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TargetEntry& default_instance() { - return *internal_default_instance(); - } - static inline const TargetEntry* internal_default_instance() { - return reinterpret_cast( - &_TargetEntry_default_instance_); - } - static constexpr int kIndexInFileMessages = - 56; - - friend void swap(TargetEntry& a, TargetEntry& b) { - a.Swap(&b); - } - inline void Swap(TargetEntry* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TargetEntry* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TargetEntry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const TargetEntry& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const TargetEntry& from) { - TargetEntry::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TargetEntry* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.TargetEntry"; - } - protected: - explicit TargetEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kResnameFieldNumber = 4, - kXprFieldNumber = 1, - kExprFieldNumber = 2, - kResnoFieldNumber = 3, - kRessortgrouprefFieldNumber = 5, - kResorigtblFieldNumber = 6, - kResorigcolFieldNumber = 7, - kResjunkFieldNumber = 8, - }; - // string resname = 4 [json_name = "resname"]; - void clear_resname(); - const std::string& resname() const; - template - void set_resname(ArgT0&& arg0, ArgT... args); - std::string* mutable_resname(); - PROTOBUF_NODISCARD std::string* release_resname(); - void set_allocated_resname(std::string* resname); - private: - const std::string& _internal_resname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_resname(const std::string& value); - std::string* _internal_mutable_resname(); - public: - - // .pg_query.Node xpr = 1 [json_name = "xpr"]; - bool has_xpr() const; - private: - bool _internal_has_xpr() const; - public: - void clear_xpr(); - const ::pg_query::Node& xpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_xpr(); - ::pg_query::Node* mutable_xpr(); - void set_allocated_xpr(::pg_query::Node* xpr); - private: - const ::pg_query::Node& _internal_xpr() const; - ::pg_query::Node* _internal_mutable_xpr(); - public: - void unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr); - ::pg_query::Node* unsafe_arena_release_xpr(); - - // .pg_query.Node expr = 2 [json_name = "expr"]; - bool has_expr() const; - private: - bool _internal_has_expr() const; - public: - void clear_expr(); - const ::pg_query::Node& expr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_expr(); - ::pg_query::Node* mutable_expr(); - void set_allocated_expr(::pg_query::Node* expr); - private: - const ::pg_query::Node& _internal_expr() const; - ::pg_query::Node* _internal_mutable_expr(); - public: - void unsafe_arena_set_allocated_expr( - ::pg_query::Node* expr); - ::pg_query::Node* unsafe_arena_release_expr(); - - // int32 resno = 3 [json_name = "resno"]; - void clear_resno(); - int32_t resno() const; - void set_resno(int32_t value); - private: - int32_t _internal_resno() const; - void _internal_set_resno(int32_t value); - public: - - // uint32 ressortgroupref = 5 [json_name = "ressortgroupref"]; - void clear_ressortgroupref(); - uint32_t ressortgroupref() const; - void set_ressortgroupref(uint32_t value); - private: - uint32_t _internal_ressortgroupref() const; - void _internal_set_ressortgroupref(uint32_t value); - public: - - // uint32 resorigtbl = 6 [json_name = "resorigtbl"]; - void clear_resorigtbl(); - uint32_t resorigtbl() const; - void set_resorigtbl(uint32_t value); - private: - uint32_t _internal_resorigtbl() const; - void _internal_set_resorigtbl(uint32_t value); - public: - - // int32 resorigcol = 7 [json_name = "resorigcol"]; - void clear_resorigcol(); - int32_t resorigcol() const; - void set_resorigcol(int32_t value); - private: - int32_t _internal_resorigcol() const; - void _internal_set_resorigcol(int32_t value); - public: - - // bool resjunk = 8 [json_name = "resjunk"]; - void clear_resjunk(); - bool resjunk() const; - void set_resjunk(bool value); - private: - bool _internal_resjunk() const; - void _internal_set_resjunk(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.TargetEntry) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resname_; - ::pg_query::Node* xpr_; - ::pg_query::Node* expr_; - int32_t resno_; - uint32_t ressortgroupref_; - uint32_t resorigtbl_; - int32_t resorigcol_; - bool resjunk_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class RangeTblRef final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.RangeTblRef) */ { - public: - inline RangeTblRef() : RangeTblRef(nullptr) {} - ~RangeTblRef() override; - explicit PROTOBUF_CONSTEXPR RangeTblRef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - RangeTblRef(const RangeTblRef& from); - RangeTblRef(RangeTblRef&& from) noexcept - : RangeTblRef() { - *this = ::std::move(from); - } - - inline RangeTblRef& operator=(const RangeTblRef& from) { - CopyFrom(from); - return *this; - } - inline RangeTblRef& operator=(RangeTblRef&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RangeTblRef& default_instance() { - return *internal_default_instance(); - } - static inline const RangeTblRef* internal_default_instance() { - return reinterpret_cast( - &_RangeTblRef_default_instance_); - } - static constexpr int kIndexInFileMessages = - 57; - - friend void swap(RangeTblRef& a, RangeTblRef& b) { - a.Swap(&b); - } - inline void Swap(RangeTblRef* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RangeTblRef* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RangeTblRef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RangeTblRef& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RangeTblRef& from) { - RangeTblRef::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RangeTblRef* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.RangeTblRef"; - } - protected: - explicit RangeTblRef(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRtindexFieldNumber = 1, - }; - // int32 rtindex = 1 [json_name = "rtindex"]; - void clear_rtindex(); - int32_t rtindex() const; - void set_rtindex(int32_t value); - private: - int32_t _internal_rtindex() const; - void _internal_set_rtindex(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.RangeTblRef) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - int32_t rtindex_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class JoinExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.JoinExpr) */ { - public: - inline JoinExpr() : JoinExpr(nullptr) {} - ~JoinExpr() override; - explicit PROTOBUF_CONSTEXPR JoinExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - JoinExpr(const JoinExpr& from); - JoinExpr(JoinExpr&& from) noexcept - : JoinExpr() { - *this = ::std::move(from); - } - - inline JoinExpr& operator=(const JoinExpr& from) { - CopyFrom(from); - return *this; - } - inline JoinExpr& operator=(JoinExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const JoinExpr& default_instance() { - return *internal_default_instance(); - } - static inline const JoinExpr* internal_default_instance() { - return reinterpret_cast( - &_JoinExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 58; - - friend void swap(JoinExpr& a, JoinExpr& b) { - a.Swap(&b); - } - inline void Swap(JoinExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(JoinExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - JoinExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const JoinExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const JoinExpr& from) { - JoinExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(JoinExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.JoinExpr"; - } - protected: - explicit JoinExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kUsingClauseFieldNumber = 5, - kLargFieldNumber = 3, - kRargFieldNumber = 4, - kJoinUsingAliasFieldNumber = 6, - kQualsFieldNumber = 7, - kAliasFieldNumber = 8, - kJointypeFieldNumber = 1, - kIsNaturalFieldNumber = 2, - kRtindexFieldNumber = 9, - }; - // repeated .pg_query.Node using_clause = 5 [json_name = "usingClause"]; - int using_clause_size() const; - private: - int _internal_using_clause_size() const; - public: - void clear_using_clause(); - ::pg_query::Node* mutable_using_clause(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_using_clause(); - private: - const ::pg_query::Node& _internal_using_clause(int index) const; - ::pg_query::Node* _internal_add_using_clause(); - public: - const ::pg_query::Node& using_clause(int index) const; - ::pg_query::Node* add_using_clause(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - using_clause() const; - - // .pg_query.Node larg = 3 [json_name = "larg"]; - bool has_larg() const; - private: - bool _internal_has_larg() const; - public: - void clear_larg(); - const ::pg_query::Node& larg() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_larg(); - ::pg_query::Node* mutable_larg(); - void set_allocated_larg(::pg_query::Node* larg); - private: - const ::pg_query::Node& _internal_larg() const; - ::pg_query::Node* _internal_mutable_larg(); - public: - void unsafe_arena_set_allocated_larg( - ::pg_query::Node* larg); - ::pg_query::Node* unsafe_arena_release_larg(); - - // .pg_query.Node rarg = 4 [json_name = "rarg"]; - bool has_rarg() const; - private: - bool _internal_has_rarg() const; - public: - void clear_rarg(); - const ::pg_query::Node& rarg() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_rarg(); - ::pg_query::Node* mutable_rarg(); - void set_allocated_rarg(::pg_query::Node* rarg); - private: - const ::pg_query::Node& _internal_rarg() const; - ::pg_query::Node* _internal_mutable_rarg(); - public: - void unsafe_arena_set_allocated_rarg( - ::pg_query::Node* rarg); - ::pg_query::Node* unsafe_arena_release_rarg(); - - // .pg_query.Alias join_using_alias = 6 [json_name = "join_using_alias"]; - bool has_join_using_alias() const; - private: - bool _internal_has_join_using_alias() const; - public: - void clear_join_using_alias(); - const ::pg_query::Alias& join_using_alias() const; - PROTOBUF_NODISCARD ::pg_query::Alias* release_join_using_alias(); - ::pg_query::Alias* mutable_join_using_alias(); - void set_allocated_join_using_alias(::pg_query::Alias* join_using_alias); - private: - const ::pg_query::Alias& _internal_join_using_alias() const; - ::pg_query::Alias* _internal_mutable_join_using_alias(); - public: - void unsafe_arena_set_allocated_join_using_alias( - ::pg_query::Alias* join_using_alias); - ::pg_query::Alias* unsafe_arena_release_join_using_alias(); - - // .pg_query.Node quals = 7 [json_name = "quals"]; - bool has_quals() const; - private: - bool _internal_has_quals() const; - public: - void clear_quals(); - const ::pg_query::Node& quals() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_quals(); - ::pg_query::Node* mutable_quals(); - void set_allocated_quals(::pg_query::Node* quals); - private: - const ::pg_query::Node& _internal_quals() const; - ::pg_query::Node* _internal_mutable_quals(); - public: - void unsafe_arena_set_allocated_quals( - ::pg_query::Node* quals); - ::pg_query::Node* unsafe_arena_release_quals(); - - // .pg_query.Alias alias = 8 [json_name = "alias"]; - bool has_alias() const; - private: - bool _internal_has_alias() const; - public: - void clear_alias(); - const ::pg_query::Alias& alias() const; - PROTOBUF_NODISCARD ::pg_query::Alias* release_alias(); - ::pg_query::Alias* mutable_alias(); - void set_allocated_alias(::pg_query::Alias* alias); - private: - const ::pg_query::Alias& _internal_alias() const; - ::pg_query::Alias* _internal_mutable_alias(); - public: - void unsafe_arena_set_allocated_alias( - ::pg_query::Alias* alias); - ::pg_query::Alias* unsafe_arena_release_alias(); - - // .pg_query.JoinType jointype = 1 [json_name = "jointype"]; - void clear_jointype(); - ::pg_query::JoinType jointype() const; - void set_jointype(::pg_query::JoinType value); - private: - ::pg_query::JoinType _internal_jointype() const; - void _internal_set_jointype(::pg_query::JoinType value); - public: - - // bool is_natural = 2 [json_name = "isNatural"]; - void clear_is_natural(); - bool is_natural() const; - void set_is_natural(bool value); - private: - bool _internal_is_natural() const; - void _internal_set_is_natural(bool value); - public: - - // int32 rtindex = 9 [json_name = "rtindex"]; - void clear_rtindex(); - int32_t rtindex() const; - void set_rtindex(int32_t value); - private: - int32_t _internal_rtindex() const; - void _internal_set_rtindex(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.JoinExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > using_clause_; - ::pg_query::Node* larg_; - ::pg_query::Node* rarg_; - ::pg_query::Alias* join_using_alias_; - ::pg_query::Node* quals_; - ::pg_query::Alias* alias_; - int jointype_; - bool is_natural_; - int32_t rtindex_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class FromExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.FromExpr) */ { - public: - inline FromExpr() : FromExpr(nullptr) {} - ~FromExpr() override; - explicit PROTOBUF_CONSTEXPR FromExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - FromExpr(const FromExpr& from); - FromExpr(FromExpr&& from) noexcept - : FromExpr() { - *this = ::std::move(from); - } - - inline FromExpr& operator=(const FromExpr& from) { - CopyFrom(from); - return *this; - } - inline FromExpr& operator=(FromExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const FromExpr& default_instance() { - return *internal_default_instance(); - } - static inline const FromExpr* internal_default_instance() { - return reinterpret_cast( - &_FromExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 59; - - friend void swap(FromExpr& a, FromExpr& b) { - a.Swap(&b); - } - inline void Swap(FromExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FromExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - FromExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const FromExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const FromExpr& from) { - FromExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FromExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.FromExpr"; - } - protected: - explicit FromExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFromlistFieldNumber = 1, - kQualsFieldNumber = 2, - }; - // repeated .pg_query.Node fromlist = 1 [json_name = "fromlist"]; - int fromlist_size() const; - private: - int _internal_fromlist_size() const; - public: - void clear_fromlist(); - ::pg_query::Node* mutable_fromlist(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_fromlist(); - private: - const ::pg_query::Node& _internal_fromlist(int index) const; - ::pg_query::Node* _internal_add_fromlist(); - public: - const ::pg_query::Node& fromlist(int index) const; - ::pg_query::Node* add_fromlist(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - fromlist() const; - - // .pg_query.Node quals = 2 [json_name = "quals"]; - bool has_quals() const; - private: - bool _internal_has_quals() const; - public: - void clear_quals(); - const ::pg_query::Node& quals() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_quals(); - ::pg_query::Node* mutable_quals(); - void set_allocated_quals(::pg_query::Node* quals); - private: - const ::pg_query::Node& _internal_quals() const; - ::pg_query::Node* _internal_mutable_quals(); - public: - void unsafe_arena_set_allocated_quals( - ::pg_query::Node* quals); - ::pg_query::Node* unsafe_arena_release_quals(); - - // @@protoc_insertion_point(class_scope:pg_query.FromExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > fromlist_; - ::pg_query::Node* quals_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class OnConflictExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.OnConflictExpr) */ { - public: - inline OnConflictExpr() : OnConflictExpr(nullptr) {} - ~OnConflictExpr() override; - explicit PROTOBUF_CONSTEXPR OnConflictExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - OnConflictExpr(const OnConflictExpr& from); - OnConflictExpr(OnConflictExpr&& from) noexcept - : OnConflictExpr() { - *this = ::std::move(from); - } - - inline OnConflictExpr& operator=(const OnConflictExpr& from) { - CopyFrom(from); - return *this; - } - inline OnConflictExpr& operator=(OnConflictExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const OnConflictExpr& default_instance() { - return *internal_default_instance(); - } - static inline const OnConflictExpr* internal_default_instance() { - return reinterpret_cast( - &_OnConflictExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 60; - - friend void swap(OnConflictExpr& a, OnConflictExpr& b) { - a.Swap(&b); - } - inline void Swap(OnConflictExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OnConflictExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - OnConflictExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const OnConflictExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const OnConflictExpr& from) { - OnConflictExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OnConflictExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.OnConflictExpr"; - } - protected: - explicit OnConflictExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArbiterElemsFieldNumber = 2, - kOnConflictSetFieldNumber = 5, - kExclRelTlistFieldNumber = 8, - kArbiterWhereFieldNumber = 3, - kOnConflictWhereFieldNumber = 6, - kActionFieldNumber = 1, - kConstraintFieldNumber = 4, - kExclRelIndexFieldNumber = 7, - }; - // repeated .pg_query.Node arbiter_elems = 2 [json_name = "arbiterElems"]; - int arbiter_elems_size() const; - private: - int _internal_arbiter_elems_size() const; - public: - void clear_arbiter_elems(); - ::pg_query::Node* mutable_arbiter_elems(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_arbiter_elems(); - private: - const ::pg_query::Node& _internal_arbiter_elems(int index) const; - ::pg_query::Node* _internal_add_arbiter_elems(); - public: - const ::pg_query::Node& arbiter_elems(int index) const; - ::pg_query::Node* add_arbiter_elems(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - arbiter_elems() const; - - // repeated .pg_query.Node on_conflict_set = 5 [json_name = "onConflictSet"]; - int on_conflict_set_size() const; - private: - int _internal_on_conflict_set_size() const; - public: - void clear_on_conflict_set(); - ::pg_query::Node* mutable_on_conflict_set(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_on_conflict_set(); - private: - const ::pg_query::Node& _internal_on_conflict_set(int index) const; - ::pg_query::Node* _internal_add_on_conflict_set(); - public: - const ::pg_query::Node& on_conflict_set(int index) const; - ::pg_query::Node* add_on_conflict_set(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - on_conflict_set() const; - - // repeated .pg_query.Node excl_rel_tlist = 8 [json_name = "exclRelTlist"]; - int excl_rel_tlist_size() const; - private: - int _internal_excl_rel_tlist_size() const; - public: - void clear_excl_rel_tlist(); - ::pg_query::Node* mutable_excl_rel_tlist(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_excl_rel_tlist(); - private: - const ::pg_query::Node& _internal_excl_rel_tlist(int index) const; - ::pg_query::Node* _internal_add_excl_rel_tlist(); - public: - const ::pg_query::Node& excl_rel_tlist(int index) const; - ::pg_query::Node* add_excl_rel_tlist(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - excl_rel_tlist() const; - - // .pg_query.Node arbiter_where = 3 [json_name = "arbiterWhere"]; - bool has_arbiter_where() const; - private: - bool _internal_has_arbiter_where() const; - public: - void clear_arbiter_where(); - const ::pg_query::Node& arbiter_where() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_arbiter_where(); - ::pg_query::Node* mutable_arbiter_where(); - void set_allocated_arbiter_where(::pg_query::Node* arbiter_where); - private: - const ::pg_query::Node& _internal_arbiter_where() const; - ::pg_query::Node* _internal_mutable_arbiter_where(); - public: - void unsafe_arena_set_allocated_arbiter_where( - ::pg_query::Node* arbiter_where); - ::pg_query::Node* unsafe_arena_release_arbiter_where(); - - // .pg_query.Node on_conflict_where = 6 [json_name = "onConflictWhere"]; - bool has_on_conflict_where() const; - private: - bool _internal_has_on_conflict_where() const; - public: - void clear_on_conflict_where(); - const ::pg_query::Node& on_conflict_where() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_on_conflict_where(); - ::pg_query::Node* mutable_on_conflict_where(); - void set_allocated_on_conflict_where(::pg_query::Node* on_conflict_where); - private: - const ::pg_query::Node& _internal_on_conflict_where() const; - ::pg_query::Node* _internal_mutable_on_conflict_where(); - public: - void unsafe_arena_set_allocated_on_conflict_where( - ::pg_query::Node* on_conflict_where); - ::pg_query::Node* unsafe_arena_release_on_conflict_where(); - - // .pg_query.OnConflictAction action = 1 [json_name = "action"]; - void clear_action(); - ::pg_query::OnConflictAction action() const; - void set_action(::pg_query::OnConflictAction value); - private: - ::pg_query::OnConflictAction _internal_action() const; - void _internal_set_action(::pg_query::OnConflictAction value); - public: - - // uint32 constraint = 4 [json_name = "constraint"]; - void clear_constraint(); - uint32_t constraint() const; - void set_constraint(uint32_t value); - private: - uint32_t _internal_constraint() const; - void _internal_set_constraint(uint32_t value); - public: - - // int32 excl_rel_index = 7 [json_name = "exclRelIndex"]; - void clear_excl_rel_index(); - int32_t excl_rel_index() const; - void set_excl_rel_index(int32_t value); - private: - int32_t _internal_excl_rel_index() const; - void _internal_set_excl_rel_index(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.OnConflictExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > arbiter_elems_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > on_conflict_set_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > excl_rel_tlist_; - ::pg_query::Node* arbiter_where_; - ::pg_query::Node* on_conflict_where_; - int action_; - uint32_t constraint_; - int32_t excl_rel_index_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class IntoClause final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.IntoClause) */ { - public: - inline IntoClause() : IntoClause(nullptr) {} - ~IntoClause() override; - explicit PROTOBUF_CONSTEXPR IntoClause(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - IntoClause(const IntoClause& from); - IntoClause(IntoClause&& from) noexcept - : IntoClause() { - *this = ::std::move(from); - } - - inline IntoClause& operator=(const IntoClause& from) { - CopyFrom(from); - return *this; - } - inline IntoClause& operator=(IntoClause&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const IntoClause& default_instance() { - return *internal_default_instance(); - } - static inline const IntoClause* internal_default_instance() { - return reinterpret_cast( - &_IntoClause_default_instance_); - } - static constexpr int kIndexInFileMessages = - 61; - - friend void swap(IntoClause& a, IntoClause& b) { - a.Swap(&b); - } - inline void Swap(IntoClause* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(IntoClause* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - IntoClause* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const IntoClause& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const IntoClause& from) { - IntoClause::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(IntoClause* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.IntoClause"; - } - protected: - explicit IntoClause(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kColNamesFieldNumber = 2, - kOptionsFieldNumber = 4, - kAccessMethodFieldNumber = 3, - kTableSpaceNameFieldNumber = 6, - kRelFieldNumber = 1, - kViewQueryFieldNumber = 7, - kOnCommitFieldNumber = 5, - kSkipDataFieldNumber = 8, - }; - // repeated .pg_query.Node col_names = 2 [json_name = "colNames"]; - int col_names_size() const; - private: - int _internal_col_names_size() const; - public: - void clear_col_names(); - ::pg_query::Node* mutable_col_names(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_col_names(); - private: - const ::pg_query::Node& _internal_col_names(int index) const; - ::pg_query::Node* _internal_add_col_names(); - public: - const ::pg_query::Node& col_names(int index) const; - ::pg_query::Node* add_col_names(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - col_names() const; - - // repeated .pg_query.Node options = 4 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string access_method = 3 [json_name = "accessMethod"]; - void clear_access_method(); - const std::string& access_method() const; - template - void set_access_method(ArgT0&& arg0, ArgT... args); - std::string* mutable_access_method(); - PROTOBUF_NODISCARD std::string* release_access_method(); - void set_allocated_access_method(std::string* access_method); - private: - const std::string& _internal_access_method() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_access_method(const std::string& value); - std::string* _internal_mutable_access_method(); - public: - - // string table_space_name = 6 [json_name = "tableSpaceName"]; - void clear_table_space_name(); - const std::string& table_space_name() const; - template - void set_table_space_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_table_space_name(); - PROTOBUF_NODISCARD std::string* release_table_space_name(); - void set_allocated_table_space_name(std::string* table_space_name); - private: - const std::string& _internal_table_space_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_table_space_name(const std::string& value); - std::string* _internal_mutable_table_space_name(); - public: - - // .pg_query.RangeVar rel = 1 [json_name = "rel"]; - bool has_rel() const; - private: - bool _internal_has_rel() const; - public: - void clear_rel(); - const ::pg_query::RangeVar& rel() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_rel(); - ::pg_query::RangeVar* mutable_rel(); - void set_allocated_rel(::pg_query::RangeVar* rel); - private: - const ::pg_query::RangeVar& _internal_rel() const; - ::pg_query::RangeVar* _internal_mutable_rel(); - public: - void unsafe_arena_set_allocated_rel( - ::pg_query::RangeVar* rel); - ::pg_query::RangeVar* unsafe_arena_release_rel(); - - // .pg_query.Node view_query = 7 [json_name = "viewQuery"]; - bool has_view_query() const; - private: - bool _internal_has_view_query() const; - public: - void clear_view_query(); - const ::pg_query::Node& view_query() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_view_query(); - ::pg_query::Node* mutable_view_query(); - void set_allocated_view_query(::pg_query::Node* view_query); - private: - const ::pg_query::Node& _internal_view_query() const; - ::pg_query::Node* _internal_mutable_view_query(); - public: - void unsafe_arena_set_allocated_view_query( - ::pg_query::Node* view_query); - ::pg_query::Node* unsafe_arena_release_view_query(); - - // .pg_query.OnCommitAction on_commit = 5 [json_name = "onCommit"]; - void clear_on_commit(); - ::pg_query::OnCommitAction on_commit() const; - void set_on_commit(::pg_query::OnCommitAction value); - private: - ::pg_query::OnCommitAction _internal_on_commit() const; - void _internal_set_on_commit(::pg_query::OnCommitAction value); - public: - - // bool skip_data = 8 [json_name = "skipData"]; - void clear_skip_data(); - bool skip_data() const; - void set_skip_data(bool value); - private: - bool _internal_skip_data() const; - void _internal_set_skip_data(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.IntoClause) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > col_names_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr access_method_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_space_name_; - ::pg_query::RangeVar* rel_; - ::pg_query::Node* view_query_; - int on_commit_; - bool skip_data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class MergeAction final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.MergeAction) */ { - public: - inline MergeAction() : MergeAction(nullptr) {} - ~MergeAction() override; - explicit PROTOBUF_CONSTEXPR MergeAction(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - MergeAction(const MergeAction& from); - MergeAction(MergeAction&& from) noexcept - : MergeAction() { - *this = ::std::move(from); - } - - inline MergeAction& operator=(const MergeAction& from) { - CopyFrom(from); - return *this; - } - inline MergeAction& operator=(MergeAction&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const MergeAction& default_instance() { - return *internal_default_instance(); - } - static inline const MergeAction* internal_default_instance() { - return reinterpret_cast( - &_MergeAction_default_instance_); - } - static constexpr int kIndexInFileMessages = - 62; - - friend void swap(MergeAction& a, MergeAction& b) { - a.Swap(&b); - } - inline void Swap(MergeAction* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MergeAction* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - MergeAction* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MergeAction& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const MergeAction& from) { - MergeAction::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MergeAction* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.MergeAction"; - } - protected: - explicit MergeAction(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTargetListFieldNumber = 5, - kUpdateColnosFieldNumber = 6, - kQualFieldNumber = 4, - kMatchedFieldNumber = 1, - kCommandTypeFieldNumber = 2, - kOverrideFieldNumber = 3, - }; - // repeated .pg_query.Node target_list = 5 [json_name = "targetList"]; - int target_list_size() const; - private: - int _internal_target_list_size() const; - public: - void clear_target_list(); - ::pg_query::Node* mutable_target_list(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_target_list(); - private: - const ::pg_query::Node& _internal_target_list(int index) const; - ::pg_query::Node* _internal_add_target_list(); - public: - const ::pg_query::Node& target_list(int index) const; - ::pg_query::Node* add_target_list(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - target_list() const; - - // repeated .pg_query.Node update_colnos = 6 [json_name = "updateColnos"]; - int update_colnos_size() const; - private: - int _internal_update_colnos_size() const; - public: - void clear_update_colnos(); - ::pg_query::Node* mutable_update_colnos(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_update_colnos(); - private: - const ::pg_query::Node& _internal_update_colnos(int index) const; - ::pg_query::Node* _internal_add_update_colnos(); - public: - const ::pg_query::Node& update_colnos(int index) const; - ::pg_query::Node* add_update_colnos(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - update_colnos() const; - - // .pg_query.Node qual = 4 [json_name = "qual"]; - bool has_qual() const; - private: - bool _internal_has_qual() const; - public: - void clear_qual(); - const ::pg_query::Node& qual() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_qual(); - ::pg_query::Node* mutable_qual(); - void set_allocated_qual(::pg_query::Node* qual); - private: - const ::pg_query::Node& _internal_qual() const; - ::pg_query::Node* _internal_mutable_qual(); - public: - void unsafe_arena_set_allocated_qual( - ::pg_query::Node* qual); - ::pg_query::Node* unsafe_arena_release_qual(); - - // bool matched = 1 [json_name = "matched"]; - void clear_matched(); - bool matched() const; - void set_matched(bool value); - private: - bool _internal_matched() const; - void _internal_set_matched(bool value); - public: - - // .pg_query.CmdType command_type = 2 [json_name = "commandType"]; - void clear_command_type(); - ::pg_query::CmdType command_type() const; - void set_command_type(::pg_query::CmdType value); - private: - ::pg_query::CmdType _internal_command_type() const; - void _internal_set_command_type(::pg_query::CmdType value); - public: - - // .pg_query.OverridingKind override = 3 [json_name = "override"]; - void clear_override(); - ::pg_query::OverridingKind override() const; - void set_override(::pg_query::OverridingKind value); - private: - ::pg_query::OverridingKind _internal_override() const; - void _internal_set_override(::pg_query::OverridingKind value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.MergeAction) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > target_list_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > update_colnos_; - ::pg_query::Node* qual_; - bool matched_; - int command_type_; - int override_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class RawStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.RawStmt) */ { - public: - inline RawStmt() : RawStmt(nullptr) {} - ~RawStmt() override; - explicit PROTOBUF_CONSTEXPR RawStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - RawStmt(const RawStmt& from); - RawStmt(RawStmt&& from) noexcept - : RawStmt() { - *this = ::std::move(from); - } - - inline RawStmt& operator=(const RawStmt& from) { - CopyFrom(from); - return *this; - } - inline RawStmt& operator=(RawStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RawStmt& default_instance() { - return *internal_default_instance(); - } - static inline const RawStmt* internal_default_instance() { - return reinterpret_cast( - &_RawStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 63; - - friend void swap(RawStmt& a, RawStmt& b) { - a.Swap(&b); - } - inline void Swap(RawStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RawStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RawStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RawStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RawStmt& from) { - RawStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RawStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.RawStmt"; - } - protected: - explicit RawStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStmtFieldNumber = 1, - kStmtLocationFieldNumber = 2, - kStmtLenFieldNumber = 3, - }; - // .pg_query.Node stmt = 1 [json_name = "stmt"]; - bool has_stmt() const; - private: - bool _internal_has_stmt() const; - public: - void clear_stmt(); - const ::pg_query::Node& stmt() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_stmt(); - ::pg_query::Node* mutable_stmt(); - void set_allocated_stmt(::pg_query::Node* stmt); - private: - const ::pg_query::Node& _internal_stmt() const; - ::pg_query::Node* _internal_mutable_stmt(); - public: - void unsafe_arena_set_allocated_stmt( - ::pg_query::Node* stmt); - ::pg_query::Node* unsafe_arena_release_stmt(); - - // int32 stmt_location = 2 [json_name = "stmt_location"]; - void clear_stmt_location(); - int32_t stmt_location() const; - void set_stmt_location(int32_t value); - private: - int32_t _internal_stmt_location() const; - void _internal_set_stmt_location(int32_t value); - public: - - // int32 stmt_len = 3 [json_name = "stmt_len"]; - void clear_stmt_len(); - int32_t stmt_len() const; - void set_stmt_len(int32_t value); - private: - int32_t _internal_stmt_len() const; - void _internal_set_stmt_len(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.RawStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* stmt_; - int32_t stmt_location_; - int32_t stmt_len_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class Query final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.Query) */ { - public: - inline Query() : Query(nullptr) {} - ~Query() override; - explicit PROTOBUF_CONSTEXPR Query(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Query(const Query& from); - Query(Query&& from) noexcept - : Query() { - *this = ::std::move(from); - } - - inline Query& operator=(const Query& from) { - CopyFrom(from); - return *this; - } - inline Query& operator=(Query&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Query& default_instance() { - return *internal_default_instance(); - } - static inline const Query* internal_default_instance() { - return reinterpret_cast( - &_Query_default_instance_); - } - static constexpr int kIndexInFileMessages = - 64; - - friend void swap(Query& a, Query& b) { - a.Swap(&b); - } - inline void Swap(Query* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Query* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Query* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Query& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Query& from) { - Query::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Query* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.Query"; - } - protected: - explicit Query(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCteListFieldNumber = 16, - kRtableFieldNumber = 17, - kMergeActionListFieldNumber = 19, - kTargetListFieldNumber = 21, - kReturningListFieldNumber = 24, - kGroupClauseFieldNumber = 25, - kGroupingSetsFieldNumber = 27, - kWindowClauseFieldNumber = 29, - kDistinctClauseFieldNumber = 30, - kSortClauseFieldNumber = 31, - kRowMarksFieldNumber = 35, - kConstraintDepsFieldNumber = 37, - kWithCheckOptionsFieldNumber = 38, - kUtilityStmtFieldNumber = 4, - kJointreeFieldNumber = 18, - kOnConflictFieldNumber = 23, - kHavingQualFieldNumber = 28, - kLimitOffsetFieldNumber = 32, - kLimitCountFieldNumber = 33, - kSetOperationsFieldNumber = 36, - kCommandTypeFieldNumber = 1, - kQuerySourceFieldNumber = 2, - kResultRelationFieldNumber = 5, - kCanSetTagFieldNumber = 3, - kHasAggsFieldNumber = 6, - kHasWindowFuncsFieldNumber = 7, - kHasTargetSrfsFieldNumber = 8, - kHasSubLinksFieldNumber = 9, - kHasDistinctOnFieldNumber = 10, - kHasRecursiveFieldNumber = 11, - kHasModifyingCteFieldNumber = 12, - kHasForUpdateFieldNumber = 13, - kHasRowSecurityFieldNumber = 14, - kIsReturnFieldNumber = 15, - kMergeUseOuterJoinFieldNumber = 20, - kOverrideFieldNumber = 22, - kGroupDistinctFieldNumber = 26, - kLimitOptionFieldNumber = 34, - kStmtLocationFieldNumber = 39, - kStmtLenFieldNumber = 40, - }; - // repeated .pg_query.Node cte_list = 16 [json_name = "cteList"]; - int cte_list_size() const; - private: - int _internal_cte_list_size() const; - public: - void clear_cte_list(); - ::pg_query::Node* mutable_cte_list(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_cte_list(); - private: - const ::pg_query::Node& _internal_cte_list(int index) const; - ::pg_query::Node* _internal_add_cte_list(); - public: - const ::pg_query::Node& cte_list(int index) const; - ::pg_query::Node* add_cte_list(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - cte_list() const; - - // repeated .pg_query.Node rtable = 17 [json_name = "rtable"]; - int rtable_size() const; - private: - int _internal_rtable_size() const; - public: - void clear_rtable(); - ::pg_query::Node* mutable_rtable(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_rtable(); - private: - const ::pg_query::Node& _internal_rtable(int index) const; - ::pg_query::Node* _internal_add_rtable(); - public: - const ::pg_query::Node& rtable(int index) const; - ::pg_query::Node* add_rtable(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - rtable() const; - - // repeated .pg_query.Node merge_action_list = 19 [json_name = "mergeActionList"]; - int merge_action_list_size() const; - private: - int _internal_merge_action_list_size() const; - public: - void clear_merge_action_list(); - ::pg_query::Node* mutable_merge_action_list(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_merge_action_list(); - private: - const ::pg_query::Node& _internal_merge_action_list(int index) const; - ::pg_query::Node* _internal_add_merge_action_list(); - public: - const ::pg_query::Node& merge_action_list(int index) const; - ::pg_query::Node* add_merge_action_list(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - merge_action_list() const; - - // repeated .pg_query.Node target_list = 21 [json_name = "targetList"]; - int target_list_size() const; - private: - int _internal_target_list_size() const; - public: - void clear_target_list(); - ::pg_query::Node* mutable_target_list(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_target_list(); - private: - const ::pg_query::Node& _internal_target_list(int index) const; - ::pg_query::Node* _internal_add_target_list(); - public: - const ::pg_query::Node& target_list(int index) const; - ::pg_query::Node* add_target_list(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - target_list() const; - - // repeated .pg_query.Node returning_list = 24 [json_name = "returningList"]; - int returning_list_size() const; - private: - int _internal_returning_list_size() const; - public: - void clear_returning_list(); - ::pg_query::Node* mutable_returning_list(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_returning_list(); - private: - const ::pg_query::Node& _internal_returning_list(int index) const; - ::pg_query::Node* _internal_add_returning_list(); - public: - const ::pg_query::Node& returning_list(int index) const; - ::pg_query::Node* add_returning_list(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - returning_list() const; - - // repeated .pg_query.Node group_clause = 25 [json_name = "groupClause"]; - int group_clause_size() const; - private: - int _internal_group_clause_size() const; - public: - void clear_group_clause(); - ::pg_query::Node* mutable_group_clause(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_group_clause(); - private: - const ::pg_query::Node& _internal_group_clause(int index) const; - ::pg_query::Node* _internal_add_group_clause(); - public: - const ::pg_query::Node& group_clause(int index) const; - ::pg_query::Node* add_group_clause(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - group_clause() const; - - // repeated .pg_query.Node grouping_sets = 27 [json_name = "groupingSets"]; - int grouping_sets_size() const; - private: - int _internal_grouping_sets_size() const; - public: - void clear_grouping_sets(); - ::pg_query::Node* mutable_grouping_sets(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_grouping_sets(); - private: - const ::pg_query::Node& _internal_grouping_sets(int index) const; - ::pg_query::Node* _internal_add_grouping_sets(); - public: - const ::pg_query::Node& grouping_sets(int index) const; - ::pg_query::Node* add_grouping_sets(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - grouping_sets() const; - - // repeated .pg_query.Node window_clause = 29 [json_name = "windowClause"]; - int window_clause_size() const; - private: - int _internal_window_clause_size() const; - public: - void clear_window_clause(); - ::pg_query::Node* mutable_window_clause(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_window_clause(); - private: - const ::pg_query::Node& _internal_window_clause(int index) const; - ::pg_query::Node* _internal_add_window_clause(); - public: - const ::pg_query::Node& window_clause(int index) const; - ::pg_query::Node* add_window_clause(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - window_clause() const; - - // repeated .pg_query.Node distinct_clause = 30 [json_name = "distinctClause"]; - int distinct_clause_size() const; - private: - int _internal_distinct_clause_size() const; - public: - void clear_distinct_clause(); - ::pg_query::Node* mutable_distinct_clause(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_distinct_clause(); - private: - const ::pg_query::Node& _internal_distinct_clause(int index) const; - ::pg_query::Node* _internal_add_distinct_clause(); - public: - const ::pg_query::Node& distinct_clause(int index) const; - ::pg_query::Node* add_distinct_clause(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - distinct_clause() const; - - // repeated .pg_query.Node sort_clause = 31 [json_name = "sortClause"]; - int sort_clause_size() const; - private: - int _internal_sort_clause_size() const; - public: - void clear_sort_clause(); - ::pg_query::Node* mutable_sort_clause(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_sort_clause(); - private: - const ::pg_query::Node& _internal_sort_clause(int index) const; - ::pg_query::Node* _internal_add_sort_clause(); - public: - const ::pg_query::Node& sort_clause(int index) const; - ::pg_query::Node* add_sort_clause(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - sort_clause() const; - - // repeated .pg_query.Node row_marks = 35 [json_name = "rowMarks"]; - int row_marks_size() const; - private: - int _internal_row_marks_size() const; - public: - void clear_row_marks(); - ::pg_query::Node* mutable_row_marks(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_row_marks(); - private: - const ::pg_query::Node& _internal_row_marks(int index) const; - ::pg_query::Node* _internal_add_row_marks(); - public: - const ::pg_query::Node& row_marks(int index) const; - ::pg_query::Node* add_row_marks(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - row_marks() const; - - // repeated .pg_query.Node constraint_deps = 37 [json_name = "constraintDeps"]; - int constraint_deps_size() const; - private: - int _internal_constraint_deps_size() const; - public: - void clear_constraint_deps(); - ::pg_query::Node* mutable_constraint_deps(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_constraint_deps(); - private: - const ::pg_query::Node& _internal_constraint_deps(int index) const; - ::pg_query::Node* _internal_add_constraint_deps(); - public: - const ::pg_query::Node& constraint_deps(int index) const; - ::pg_query::Node* add_constraint_deps(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - constraint_deps() const; - - // repeated .pg_query.Node with_check_options = 38 [json_name = "withCheckOptions"]; - int with_check_options_size() const; - private: - int _internal_with_check_options_size() const; - public: - void clear_with_check_options(); - ::pg_query::Node* mutable_with_check_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_with_check_options(); - private: - const ::pg_query::Node& _internal_with_check_options(int index) const; - ::pg_query::Node* _internal_add_with_check_options(); - public: - const ::pg_query::Node& with_check_options(int index) const; - ::pg_query::Node* add_with_check_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - with_check_options() const; - - // .pg_query.Node utility_stmt = 4 [json_name = "utilityStmt"]; - bool has_utility_stmt() const; - private: - bool _internal_has_utility_stmt() const; - public: - void clear_utility_stmt(); - const ::pg_query::Node& utility_stmt() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_utility_stmt(); - ::pg_query::Node* mutable_utility_stmt(); - void set_allocated_utility_stmt(::pg_query::Node* utility_stmt); - private: - const ::pg_query::Node& _internal_utility_stmt() const; - ::pg_query::Node* _internal_mutable_utility_stmt(); - public: - void unsafe_arena_set_allocated_utility_stmt( - ::pg_query::Node* utility_stmt); - ::pg_query::Node* unsafe_arena_release_utility_stmt(); - - // .pg_query.FromExpr jointree = 18 [json_name = "jointree"]; - bool has_jointree() const; - private: - bool _internal_has_jointree() const; - public: - void clear_jointree(); - const ::pg_query::FromExpr& jointree() const; - PROTOBUF_NODISCARD ::pg_query::FromExpr* release_jointree(); - ::pg_query::FromExpr* mutable_jointree(); - void set_allocated_jointree(::pg_query::FromExpr* jointree); - private: - const ::pg_query::FromExpr& _internal_jointree() const; - ::pg_query::FromExpr* _internal_mutable_jointree(); - public: - void unsafe_arena_set_allocated_jointree( - ::pg_query::FromExpr* jointree); - ::pg_query::FromExpr* unsafe_arena_release_jointree(); - - // .pg_query.OnConflictExpr on_conflict = 23 [json_name = "onConflict"]; - bool has_on_conflict() const; - private: - bool _internal_has_on_conflict() const; - public: - void clear_on_conflict(); - const ::pg_query::OnConflictExpr& on_conflict() const; - PROTOBUF_NODISCARD ::pg_query::OnConflictExpr* release_on_conflict(); - ::pg_query::OnConflictExpr* mutable_on_conflict(); - void set_allocated_on_conflict(::pg_query::OnConflictExpr* on_conflict); - private: - const ::pg_query::OnConflictExpr& _internal_on_conflict() const; - ::pg_query::OnConflictExpr* _internal_mutable_on_conflict(); - public: - void unsafe_arena_set_allocated_on_conflict( - ::pg_query::OnConflictExpr* on_conflict); - ::pg_query::OnConflictExpr* unsafe_arena_release_on_conflict(); - - // .pg_query.Node having_qual = 28 [json_name = "havingQual"]; - bool has_having_qual() const; - private: - bool _internal_has_having_qual() const; - public: - void clear_having_qual(); - const ::pg_query::Node& having_qual() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_having_qual(); - ::pg_query::Node* mutable_having_qual(); - void set_allocated_having_qual(::pg_query::Node* having_qual); - private: - const ::pg_query::Node& _internal_having_qual() const; - ::pg_query::Node* _internal_mutable_having_qual(); - public: - void unsafe_arena_set_allocated_having_qual( - ::pg_query::Node* having_qual); - ::pg_query::Node* unsafe_arena_release_having_qual(); - - // .pg_query.Node limit_offset = 32 [json_name = "limitOffset"]; - bool has_limit_offset() const; - private: - bool _internal_has_limit_offset() const; - public: - void clear_limit_offset(); - const ::pg_query::Node& limit_offset() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_limit_offset(); - ::pg_query::Node* mutable_limit_offset(); - void set_allocated_limit_offset(::pg_query::Node* limit_offset); - private: - const ::pg_query::Node& _internal_limit_offset() const; - ::pg_query::Node* _internal_mutable_limit_offset(); - public: - void unsafe_arena_set_allocated_limit_offset( - ::pg_query::Node* limit_offset); - ::pg_query::Node* unsafe_arena_release_limit_offset(); - - // .pg_query.Node limit_count = 33 [json_name = "limitCount"]; - bool has_limit_count() const; - private: - bool _internal_has_limit_count() const; - public: - void clear_limit_count(); - const ::pg_query::Node& limit_count() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_limit_count(); - ::pg_query::Node* mutable_limit_count(); - void set_allocated_limit_count(::pg_query::Node* limit_count); - private: - const ::pg_query::Node& _internal_limit_count() const; - ::pg_query::Node* _internal_mutable_limit_count(); - public: - void unsafe_arena_set_allocated_limit_count( - ::pg_query::Node* limit_count); - ::pg_query::Node* unsafe_arena_release_limit_count(); - - // .pg_query.Node set_operations = 36 [json_name = "setOperations"]; - bool has_set_operations() const; - private: - bool _internal_has_set_operations() const; - public: - void clear_set_operations(); - const ::pg_query::Node& set_operations() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_set_operations(); - ::pg_query::Node* mutable_set_operations(); - void set_allocated_set_operations(::pg_query::Node* set_operations); - private: - const ::pg_query::Node& _internal_set_operations() const; - ::pg_query::Node* _internal_mutable_set_operations(); - public: - void unsafe_arena_set_allocated_set_operations( - ::pg_query::Node* set_operations); - ::pg_query::Node* unsafe_arena_release_set_operations(); - - // .pg_query.CmdType command_type = 1 [json_name = "commandType"]; - void clear_command_type(); - ::pg_query::CmdType command_type() const; - void set_command_type(::pg_query::CmdType value); - private: - ::pg_query::CmdType _internal_command_type() const; - void _internal_set_command_type(::pg_query::CmdType value); - public: - - // .pg_query.QuerySource query_source = 2 [json_name = "querySource"]; - void clear_query_source(); - ::pg_query::QuerySource query_source() const; - void set_query_source(::pg_query::QuerySource value); - private: - ::pg_query::QuerySource _internal_query_source() const; - void _internal_set_query_source(::pg_query::QuerySource value); - public: - - // int32 result_relation = 5 [json_name = "resultRelation"]; - void clear_result_relation(); - int32_t result_relation() const; - void set_result_relation(int32_t value); - private: - int32_t _internal_result_relation() const; - void _internal_set_result_relation(int32_t value); - public: - - // bool can_set_tag = 3 [json_name = "canSetTag"]; - void clear_can_set_tag(); - bool can_set_tag() const; - void set_can_set_tag(bool value); - private: - bool _internal_can_set_tag() const; - void _internal_set_can_set_tag(bool value); - public: - - // bool has_aggs = 6 [json_name = "hasAggs"]; - void clear_has_aggs(); - bool has_aggs() const; - void set_has_aggs(bool value); - private: - bool _internal_has_aggs() const; - void _internal_set_has_aggs(bool value); - public: - - // bool has_window_funcs = 7 [json_name = "hasWindowFuncs"]; - void clear_has_window_funcs(); - bool has_window_funcs() const; - void set_has_window_funcs(bool value); - private: - bool _internal_has_window_funcs() const; - void _internal_set_has_window_funcs(bool value); - public: - - // bool has_target_srfs = 8 [json_name = "hasTargetSRFs"]; - void clear_has_target_srfs(); - bool has_target_srfs() const; - void set_has_target_srfs(bool value); - private: - bool _internal_has_target_srfs() const; - void _internal_set_has_target_srfs(bool value); - public: - - // bool has_sub_links = 9 [json_name = "hasSubLinks"]; - void clear_has_sub_links(); - bool has_sub_links() const; - void set_has_sub_links(bool value); - private: - bool _internal_has_sub_links() const; - void _internal_set_has_sub_links(bool value); - public: - - // bool has_distinct_on = 10 [json_name = "hasDistinctOn"]; - void clear_has_distinct_on(); - bool has_distinct_on() const; - void set_has_distinct_on(bool value); - private: - bool _internal_has_distinct_on() const; - void _internal_set_has_distinct_on(bool value); - public: - - // bool has_recursive = 11 [json_name = "hasRecursive"]; - void clear_has_recursive(); - bool has_recursive() const; - void set_has_recursive(bool value); - private: - bool _internal_has_recursive() const; - void _internal_set_has_recursive(bool value); - public: - - // bool has_modifying_cte = 12 [json_name = "hasModifyingCTE"]; - void clear_has_modifying_cte(); - bool has_modifying_cte() const; - void set_has_modifying_cte(bool value); - private: - bool _internal_has_modifying_cte() const; - void _internal_set_has_modifying_cte(bool value); - public: - - // bool has_for_update = 13 [json_name = "hasForUpdate"]; - void clear_has_for_update(); - bool has_for_update() const; - void set_has_for_update(bool value); - private: - bool _internal_has_for_update() const; - void _internal_set_has_for_update(bool value); - public: - - // bool has_row_security = 14 [json_name = "hasRowSecurity"]; - void clear_has_row_security(); - bool has_row_security() const; - void set_has_row_security(bool value); - private: - bool _internal_has_row_security() const; - void _internal_set_has_row_security(bool value); - public: - - // bool is_return = 15 [json_name = "isReturn"]; - void clear_is_return(); - bool is_return() const; - void set_is_return(bool value); - private: - bool _internal_is_return() const; - void _internal_set_is_return(bool value); - public: - - // bool merge_use_outer_join = 20 [json_name = "mergeUseOuterJoin"]; - void clear_merge_use_outer_join(); - bool merge_use_outer_join() const; - void set_merge_use_outer_join(bool value); - private: - bool _internal_merge_use_outer_join() const; - void _internal_set_merge_use_outer_join(bool value); - public: - - // .pg_query.OverridingKind override = 22 [json_name = "override"]; - void clear_override(); - ::pg_query::OverridingKind override() const; - void set_override(::pg_query::OverridingKind value); - private: - ::pg_query::OverridingKind _internal_override() const; - void _internal_set_override(::pg_query::OverridingKind value); - public: - - // bool group_distinct = 26 [json_name = "groupDistinct"]; - void clear_group_distinct(); - bool group_distinct() const; - void set_group_distinct(bool value); - private: - bool _internal_group_distinct() const; - void _internal_set_group_distinct(bool value); - public: - - // .pg_query.LimitOption limit_option = 34 [json_name = "limitOption"]; - void clear_limit_option(); - ::pg_query::LimitOption limit_option() const; - void set_limit_option(::pg_query::LimitOption value); - private: - ::pg_query::LimitOption _internal_limit_option() const; - void _internal_set_limit_option(::pg_query::LimitOption value); - public: - - // int32 stmt_location = 39 [json_name = "stmt_location"]; - void clear_stmt_location(); - int32_t stmt_location() const; - void set_stmt_location(int32_t value); - private: - int32_t _internal_stmt_location() const; - void _internal_set_stmt_location(int32_t value); - public: - - // int32 stmt_len = 40 [json_name = "stmt_len"]; - void clear_stmt_len(); - int32_t stmt_len() const; - void set_stmt_len(int32_t value); - private: - int32_t _internal_stmt_len() const; - void _internal_set_stmt_len(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.Query) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > cte_list_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > rtable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > merge_action_list_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > target_list_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > returning_list_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > group_clause_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > grouping_sets_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > window_clause_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > distinct_clause_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > sort_clause_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > row_marks_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > constraint_deps_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > with_check_options_; - ::pg_query::Node* utility_stmt_; - ::pg_query::FromExpr* jointree_; - ::pg_query::OnConflictExpr* on_conflict_; - ::pg_query::Node* having_qual_; - ::pg_query::Node* limit_offset_; - ::pg_query::Node* limit_count_; - ::pg_query::Node* set_operations_; - int command_type_; - int query_source_; - int32_t result_relation_; - bool can_set_tag_; - bool has_aggs_; - bool has_window_funcs_; - bool has_target_srfs_; - bool has_sub_links_; - bool has_distinct_on_; - bool has_recursive_; - bool has_modifying_cte_; - bool has_for_update_; - bool has_row_security_; - bool is_return_; - bool merge_use_outer_join_; - int override_; - bool group_distinct_; - int limit_option_; - int32_t stmt_location_; - int32_t stmt_len_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class InsertStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.InsertStmt) */ { - public: - inline InsertStmt() : InsertStmt(nullptr) {} - ~InsertStmt() override; - explicit PROTOBUF_CONSTEXPR InsertStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - InsertStmt(const InsertStmt& from); - InsertStmt(InsertStmt&& from) noexcept - : InsertStmt() { - *this = ::std::move(from); - } - - inline InsertStmt& operator=(const InsertStmt& from) { - CopyFrom(from); - return *this; - } - inline InsertStmt& operator=(InsertStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const InsertStmt& default_instance() { - return *internal_default_instance(); - } - static inline const InsertStmt* internal_default_instance() { - return reinterpret_cast( - &_InsertStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 65; - - friend void swap(InsertStmt& a, InsertStmt& b) { - a.Swap(&b); - } - inline void Swap(InsertStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(InsertStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - InsertStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const InsertStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const InsertStmt& from) { - InsertStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(InsertStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.InsertStmt"; - } - protected: - explicit InsertStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kColsFieldNumber = 2, - kReturningListFieldNumber = 5, - kRelationFieldNumber = 1, - kSelectStmtFieldNumber = 3, - kOnConflictClauseFieldNumber = 4, - kWithClauseFieldNumber = 6, - kOverrideFieldNumber = 7, - }; - // repeated .pg_query.Node cols = 2 [json_name = "cols"]; - int cols_size() const; - private: - int _internal_cols_size() const; - public: - void clear_cols(); - ::pg_query::Node* mutable_cols(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_cols(); - private: - const ::pg_query::Node& _internal_cols(int index) const; - ::pg_query::Node* _internal_add_cols(); - public: - const ::pg_query::Node& cols(int index) const; - ::pg_query::Node* add_cols(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - cols() const; - - // repeated .pg_query.Node returning_list = 5 [json_name = "returningList"]; - int returning_list_size() const; - private: - int _internal_returning_list_size() const; - public: - void clear_returning_list(); - ::pg_query::Node* mutable_returning_list(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_returning_list(); - private: - const ::pg_query::Node& _internal_returning_list(int index) const; - ::pg_query::Node* _internal_add_returning_list(); - public: - const ::pg_query::Node& returning_list(int index) const; - ::pg_query::Node* add_returning_list(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - returning_list() const; - - // .pg_query.RangeVar relation = 1 [json_name = "relation"]; - bool has_relation() const; - private: - bool _internal_has_relation() const; - public: - void clear_relation(); - const ::pg_query::RangeVar& relation() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_relation(); - ::pg_query::RangeVar* mutable_relation(); - void set_allocated_relation(::pg_query::RangeVar* relation); - private: - const ::pg_query::RangeVar& _internal_relation() const; - ::pg_query::RangeVar* _internal_mutable_relation(); - public: - void unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation); - ::pg_query::RangeVar* unsafe_arena_release_relation(); - - // .pg_query.Node select_stmt = 3 [json_name = "selectStmt"]; - bool has_select_stmt() const; - private: - bool _internal_has_select_stmt() const; - public: - void clear_select_stmt(); - const ::pg_query::Node& select_stmt() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_select_stmt(); - ::pg_query::Node* mutable_select_stmt(); - void set_allocated_select_stmt(::pg_query::Node* select_stmt); - private: - const ::pg_query::Node& _internal_select_stmt() const; - ::pg_query::Node* _internal_mutable_select_stmt(); - public: - void unsafe_arena_set_allocated_select_stmt( - ::pg_query::Node* select_stmt); - ::pg_query::Node* unsafe_arena_release_select_stmt(); - - // .pg_query.OnConflictClause on_conflict_clause = 4 [json_name = "onConflictClause"]; - bool has_on_conflict_clause() const; - private: - bool _internal_has_on_conflict_clause() const; - public: - void clear_on_conflict_clause(); - const ::pg_query::OnConflictClause& on_conflict_clause() const; - PROTOBUF_NODISCARD ::pg_query::OnConflictClause* release_on_conflict_clause(); - ::pg_query::OnConflictClause* mutable_on_conflict_clause(); - void set_allocated_on_conflict_clause(::pg_query::OnConflictClause* on_conflict_clause); - private: - const ::pg_query::OnConflictClause& _internal_on_conflict_clause() const; - ::pg_query::OnConflictClause* _internal_mutable_on_conflict_clause(); - public: - void unsafe_arena_set_allocated_on_conflict_clause( - ::pg_query::OnConflictClause* on_conflict_clause); - ::pg_query::OnConflictClause* unsafe_arena_release_on_conflict_clause(); - - // .pg_query.WithClause with_clause = 6 [json_name = "withClause"]; - bool has_with_clause() const; - private: - bool _internal_has_with_clause() const; - public: - void clear_with_clause(); - const ::pg_query::WithClause& with_clause() const; - PROTOBUF_NODISCARD ::pg_query::WithClause* release_with_clause(); - ::pg_query::WithClause* mutable_with_clause(); - void set_allocated_with_clause(::pg_query::WithClause* with_clause); - private: - const ::pg_query::WithClause& _internal_with_clause() const; - ::pg_query::WithClause* _internal_mutable_with_clause(); - public: - void unsafe_arena_set_allocated_with_clause( - ::pg_query::WithClause* with_clause); - ::pg_query::WithClause* unsafe_arena_release_with_clause(); - - // .pg_query.OverridingKind override = 7 [json_name = "override"]; - void clear_override(); - ::pg_query::OverridingKind override() const; - void set_override(::pg_query::OverridingKind value); - private: - ::pg_query::OverridingKind _internal_override() const; - void _internal_set_override(::pg_query::OverridingKind value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.InsertStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > cols_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > returning_list_; - ::pg_query::RangeVar* relation_; - ::pg_query::Node* select_stmt_; - ::pg_query::OnConflictClause* on_conflict_clause_; - ::pg_query::WithClause* with_clause_; - int override_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class DeleteStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.DeleteStmt) */ { - public: - inline DeleteStmt() : DeleteStmt(nullptr) {} - ~DeleteStmt() override; - explicit PROTOBUF_CONSTEXPR DeleteStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - DeleteStmt(const DeleteStmt& from); - DeleteStmt(DeleteStmt&& from) noexcept - : DeleteStmt() { - *this = ::std::move(from); - } - - inline DeleteStmt& operator=(const DeleteStmt& from) { - CopyFrom(from); - return *this; - } - inline DeleteStmt& operator=(DeleteStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DeleteStmt& default_instance() { - return *internal_default_instance(); - } - static inline const DeleteStmt* internal_default_instance() { - return reinterpret_cast( - &_DeleteStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 66; - - friend void swap(DeleteStmt& a, DeleteStmt& b) { - a.Swap(&b); - } - inline void Swap(DeleteStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DeleteStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DeleteStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DeleteStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DeleteStmt& from) { - DeleteStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DeleteStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.DeleteStmt"; - } - protected: - explicit DeleteStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kUsingClauseFieldNumber = 2, - kReturningListFieldNumber = 4, - kRelationFieldNumber = 1, - kWhereClauseFieldNumber = 3, - kWithClauseFieldNumber = 5, - }; - // repeated .pg_query.Node using_clause = 2 [json_name = "usingClause"]; - int using_clause_size() const; - private: - int _internal_using_clause_size() const; - public: - void clear_using_clause(); - ::pg_query::Node* mutable_using_clause(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_using_clause(); - private: - const ::pg_query::Node& _internal_using_clause(int index) const; - ::pg_query::Node* _internal_add_using_clause(); - public: - const ::pg_query::Node& using_clause(int index) const; - ::pg_query::Node* add_using_clause(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - using_clause() const; - - // repeated .pg_query.Node returning_list = 4 [json_name = "returningList"]; - int returning_list_size() const; - private: - int _internal_returning_list_size() const; - public: - void clear_returning_list(); - ::pg_query::Node* mutable_returning_list(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_returning_list(); - private: - const ::pg_query::Node& _internal_returning_list(int index) const; - ::pg_query::Node* _internal_add_returning_list(); - public: - const ::pg_query::Node& returning_list(int index) const; - ::pg_query::Node* add_returning_list(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - returning_list() const; - - // .pg_query.RangeVar relation = 1 [json_name = "relation"]; - bool has_relation() const; - private: - bool _internal_has_relation() const; - public: - void clear_relation(); - const ::pg_query::RangeVar& relation() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_relation(); - ::pg_query::RangeVar* mutable_relation(); - void set_allocated_relation(::pg_query::RangeVar* relation); - private: - const ::pg_query::RangeVar& _internal_relation() const; - ::pg_query::RangeVar* _internal_mutable_relation(); - public: - void unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation); - ::pg_query::RangeVar* unsafe_arena_release_relation(); - - // .pg_query.Node where_clause = 3 [json_name = "whereClause"]; - bool has_where_clause() const; - private: - bool _internal_has_where_clause() const; - public: - void clear_where_clause(); - const ::pg_query::Node& where_clause() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_where_clause(); - ::pg_query::Node* mutable_where_clause(); - void set_allocated_where_clause(::pg_query::Node* where_clause); - private: - const ::pg_query::Node& _internal_where_clause() const; - ::pg_query::Node* _internal_mutable_where_clause(); - public: - void unsafe_arena_set_allocated_where_clause( - ::pg_query::Node* where_clause); - ::pg_query::Node* unsafe_arena_release_where_clause(); - - // .pg_query.WithClause with_clause = 5 [json_name = "withClause"]; - bool has_with_clause() const; - private: - bool _internal_has_with_clause() const; - public: - void clear_with_clause(); - const ::pg_query::WithClause& with_clause() const; - PROTOBUF_NODISCARD ::pg_query::WithClause* release_with_clause(); - ::pg_query::WithClause* mutable_with_clause(); - void set_allocated_with_clause(::pg_query::WithClause* with_clause); - private: - const ::pg_query::WithClause& _internal_with_clause() const; - ::pg_query::WithClause* _internal_mutable_with_clause(); - public: - void unsafe_arena_set_allocated_with_clause( - ::pg_query::WithClause* with_clause); - ::pg_query::WithClause* unsafe_arena_release_with_clause(); - - // @@protoc_insertion_point(class_scope:pg_query.DeleteStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > using_clause_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > returning_list_; - ::pg_query::RangeVar* relation_; - ::pg_query::Node* where_clause_; - ::pg_query::WithClause* with_clause_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class UpdateStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.UpdateStmt) */ { - public: - inline UpdateStmt() : UpdateStmt(nullptr) {} - ~UpdateStmt() override; - explicit PROTOBUF_CONSTEXPR UpdateStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - UpdateStmt(const UpdateStmt& from); - UpdateStmt(UpdateStmt&& from) noexcept - : UpdateStmt() { - *this = ::std::move(from); - } - - inline UpdateStmt& operator=(const UpdateStmt& from) { - CopyFrom(from); - return *this; - } - inline UpdateStmt& operator=(UpdateStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const UpdateStmt& default_instance() { - return *internal_default_instance(); - } - static inline const UpdateStmt* internal_default_instance() { - return reinterpret_cast( - &_UpdateStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 67; - - friend void swap(UpdateStmt& a, UpdateStmt& b) { - a.Swap(&b); - } - inline void Swap(UpdateStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(UpdateStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - UpdateStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const UpdateStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const UpdateStmt& from) { - UpdateStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(UpdateStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.UpdateStmt"; - } - protected: - explicit UpdateStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTargetListFieldNumber = 2, - kFromClauseFieldNumber = 4, - kReturningListFieldNumber = 5, - kRelationFieldNumber = 1, - kWhereClauseFieldNumber = 3, - kWithClauseFieldNumber = 6, - }; - // repeated .pg_query.Node target_list = 2 [json_name = "targetList"]; - int target_list_size() const; - private: - int _internal_target_list_size() const; - public: - void clear_target_list(); - ::pg_query::Node* mutable_target_list(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_target_list(); - private: - const ::pg_query::Node& _internal_target_list(int index) const; - ::pg_query::Node* _internal_add_target_list(); - public: - const ::pg_query::Node& target_list(int index) const; - ::pg_query::Node* add_target_list(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - target_list() const; - - // repeated .pg_query.Node from_clause = 4 [json_name = "fromClause"]; - int from_clause_size() const; - private: - int _internal_from_clause_size() const; - public: - void clear_from_clause(); - ::pg_query::Node* mutable_from_clause(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_from_clause(); - private: - const ::pg_query::Node& _internal_from_clause(int index) const; - ::pg_query::Node* _internal_add_from_clause(); - public: - const ::pg_query::Node& from_clause(int index) const; - ::pg_query::Node* add_from_clause(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - from_clause() const; - - // repeated .pg_query.Node returning_list = 5 [json_name = "returningList"]; - int returning_list_size() const; - private: - int _internal_returning_list_size() const; - public: - void clear_returning_list(); - ::pg_query::Node* mutable_returning_list(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_returning_list(); - private: - const ::pg_query::Node& _internal_returning_list(int index) const; - ::pg_query::Node* _internal_add_returning_list(); - public: - const ::pg_query::Node& returning_list(int index) const; - ::pg_query::Node* add_returning_list(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - returning_list() const; - - // .pg_query.RangeVar relation = 1 [json_name = "relation"]; - bool has_relation() const; - private: - bool _internal_has_relation() const; - public: - void clear_relation(); - const ::pg_query::RangeVar& relation() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_relation(); - ::pg_query::RangeVar* mutable_relation(); - void set_allocated_relation(::pg_query::RangeVar* relation); - private: - const ::pg_query::RangeVar& _internal_relation() const; - ::pg_query::RangeVar* _internal_mutable_relation(); - public: - void unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation); - ::pg_query::RangeVar* unsafe_arena_release_relation(); - - // .pg_query.Node where_clause = 3 [json_name = "whereClause"]; - bool has_where_clause() const; - private: - bool _internal_has_where_clause() const; - public: - void clear_where_clause(); - const ::pg_query::Node& where_clause() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_where_clause(); - ::pg_query::Node* mutable_where_clause(); - void set_allocated_where_clause(::pg_query::Node* where_clause); - private: - const ::pg_query::Node& _internal_where_clause() const; - ::pg_query::Node* _internal_mutable_where_clause(); - public: - void unsafe_arena_set_allocated_where_clause( - ::pg_query::Node* where_clause); - ::pg_query::Node* unsafe_arena_release_where_clause(); - - // .pg_query.WithClause with_clause = 6 [json_name = "withClause"]; - bool has_with_clause() const; - private: - bool _internal_has_with_clause() const; - public: - void clear_with_clause(); - const ::pg_query::WithClause& with_clause() const; - PROTOBUF_NODISCARD ::pg_query::WithClause* release_with_clause(); - ::pg_query::WithClause* mutable_with_clause(); - void set_allocated_with_clause(::pg_query::WithClause* with_clause); - private: - const ::pg_query::WithClause& _internal_with_clause() const; - ::pg_query::WithClause* _internal_mutable_with_clause(); - public: - void unsafe_arena_set_allocated_with_clause( - ::pg_query::WithClause* with_clause); - ::pg_query::WithClause* unsafe_arena_release_with_clause(); - - // @@protoc_insertion_point(class_scope:pg_query.UpdateStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > target_list_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > from_clause_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > returning_list_; - ::pg_query::RangeVar* relation_; - ::pg_query::Node* where_clause_; - ::pg_query::WithClause* with_clause_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class MergeStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.MergeStmt) */ { - public: - inline MergeStmt() : MergeStmt(nullptr) {} - ~MergeStmt() override; - explicit PROTOBUF_CONSTEXPR MergeStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - MergeStmt(const MergeStmt& from); - MergeStmt(MergeStmt&& from) noexcept - : MergeStmt() { - *this = ::std::move(from); - } - - inline MergeStmt& operator=(const MergeStmt& from) { - CopyFrom(from); - return *this; - } - inline MergeStmt& operator=(MergeStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const MergeStmt& default_instance() { - return *internal_default_instance(); - } - static inline const MergeStmt* internal_default_instance() { - return reinterpret_cast( - &_MergeStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 68; - - friend void swap(MergeStmt& a, MergeStmt& b) { - a.Swap(&b); - } - inline void Swap(MergeStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MergeStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - MergeStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MergeStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const MergeStmt& from) { - MergeStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MergeStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.MergeStmt"; - } - protected: - explicit MergeStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMergeWhenClausesFieldNumber = 4, - kRelationFieldNumber = 1, - kSourceRelationFieldNumber = 2, - kJoinConditionFieldNumber = 3, - kWithClauseFieldNumber = 5, - }; - // repeated .pg_query.Node merge_when_clauses = 4 [json_name = "mergeWhenClauses"]; - int merge_when_clauses_size() const; - private: - int _internal_merge_when_clauses_size() const; - public: - void clear_merge_when_clauses(); - ::pg_query::Node* mutable_merge_when_clauses(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_merge_when_clauses(); - private: - const ::pg_query::Node& _internal_merge_when_clauses(int index) const; - ::pg_query::Node* _internal_add_merge_when_clauses(); - public: - const ::pg_query::Node& merge_when_clauses(int index) const; - ::pg_query::Node* add_merge_when_clauses(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - merge_when_clauses() const; - - // .pg_query.RangeVar relation = 1 [json_name = "relation"]; - bool has_relation() const; - private: - bool _internal_has_relation() const; - public: - void clear_relation(); - const ::pg_query::RangeVar& relation() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_relation(); - ::pg_query::RangeVar* mutable_relation(); - void set_allocated_relation(::pg_query::RangeVar* relation); - private: - const ::pg_query::RangeVar& _internal_relation() const; - ::pg_query::RangeVar* _internal_mutable_relation(); - public: - void unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation); - ::pg_query::RangeVar* unsafe_arena_release_relation(); - - // .pg_query.Node source_relation = 2 [json_name = "sourceRelation"]; - bool has_source_relation() const; - private: - bool _internal_has_source_relation() const; - public: - void clear_source_relation(); - const ::pg_query::Node& source_relation() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_source_relation(); - ::pg_query::Node* mutable_source_relation(); - void set_allocated_source_relation(::pg_query::Node* source_relation); - private: - const ::pg_query::Node& _internal_source_relation() const; - ::pg_query::Node* _internal_mutable_source_relation(); - public: - void unsafe_arena_set_allocated_source_relation( - ::pg_query::Node* source_relation); - ::pg_query::Node* unsafe_arena_release_source_relation(); - - // .pg_query.Node join_condition = 3 [json_name = "joinCondition"]; - bool has_join_condition() const; - private: - bool _internal_has_join_condition() const; - public: - void clear_join_condition(); - const ::pg_query::Node& join_condition() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_join_condition(); - ::pg_query::Node* mutable_join_condition(); - void set_allocated_join_condition(::pg_query::Node* join_condition); - private: - const ::pg_query::Node& _internal_join_condition() const; - ::pg_query::Node* _internal_mutable_join_condition(); - public: - void unsafe_arena_set_allocated_join_condition( - ::pg_query::Node* join_condition); - ::pg_query::Node* unsafe_arena_release_join_condition(); - - // .pg_query.WithClause with_clause = 5 [json_name = "withClause"]; - bool has_with_clause() const; - private: - bool _internal_has_with_clause() const; - public: - void clear_with_clause(); - const ::pg_query::WithClause& with_clause() const; - PROTOBUF_NODISCARD ::pg_query::WithClause* release_with_clause(); - ::pg_query::WithClause* mutable_with_clause(); - void set_allocated_with_clause(::pg_query::WithClause* with_clause); - private: - const ::pg_query::WithClause& _internal_with_clause() const; - ::pg_query::WithClause* _internal_mutable_with_clause(); - public: - void unsafe_arena_set_allocated_with_clause( - ::pg_query::WithClause* with_clause); - ::pg_query::WithClause* unsafe_arena_release_with_clause(); - - // @@protoc_insertion_point(class_scope:pg_query.MergeStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > merge_when_clauses_; - ::pg_query::RangeVar* relation_; - ::pg_query::Node* source_relation_; - ::pg_query::Node* join_condition_; - ::pg_query::WithClause* with_clause_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class SelectStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.SelectStmt) */ { - public: - inline SelectStmt() : SelectStmt(nullptr) {} - ~SelectStmt() override; - explicit PROTOBUF_CONSTEXPR SelectStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SelectStmt(const SelectStmt& from); - SelectStmt(SelectStmt&& from) noexcept - : SelectStmt() { - *this = ::std::move(from); - } - - inline SelectStmt& operator=(const SelectStmt& from) { - CopyFrom(from); - return *this; - } - inline SelectStmt& operator=(SelectStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SelectStmt& default_instance() { - return *internal_default_instance(); - } - static inline const SelectStmt* internal_default_instance() { - return reinterpret_cast( - &_SelectStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 69; - - friend void swap(SelectStmt& a, SelectStmt& b) { - a.Swap(&b); - } - inline void Swap(SelectStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SelectStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SelectStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SelectStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SelectStmt& from) { - SelectStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SelectStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.SelectStmt"; - } - protected: - explicit SelectStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDistinctClauseFieldNumber = 1, - kTargetListFieldNumber = 3, - kFromClauseFieldNumber = 4, - kGroupClauseFieldNumber = 6, - kWindowClauseFieldNumber = 9, - kValuesListsFieldNumber = 10, - kSortClauseFieldNumber = 11, - kLockingClauseFieldNumber = 15, - kIntoClauseFieldNumber = 2, - kWhereClauseFieldNumber = 5, - kHavingClauseFieldNumber = 8, - kLimitOffsetFieldNumber = 12, - kLimitCountFieldNumber = 13, - kWithClauseFieldNumber = 16, - kLargFieldNumber = 19, - kRargFieldNumber = 20, - kGroupDistinctFieldNumber = 7, - kAllFieldNumber = 18, - kLimitOptionFieldNumber = 14, - kOpFieldNumber = 17, - }; - // repeated .pg_query.Node distinct_clause = 1 [json_name = "distinctClause"]; - int distinct_clause_size() const; - private: - int _internal_distinct_clause_size() const; - public: - void clear_distinct_clause(); - ::pg_query::Node* mutable_distinct_clause(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_distinct_clause(); - private: - const ::pg_query::Node& _internal_distinct_clause(int index) const; - ::pg_query::Node* _internal_add_distinct_clause(); - public: - const ::pg_query::Node& distinct_clause(int index) const; - ::pg_query::Node* add_distinct_clause(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - distinct_clause() const; - - // repeated .pg_query.Node target_list = 3 [json_name = "targetList"]; - int target_list_size() const; - private: - int _internal_target_list_size() const; - public: - void clear_target_list(); - ::pg_query::Node* mutable_target_list(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_target_list(); - private: - const ::pg_query::Node& _internal_target_list(int index) const; - ::pg_query::Node* _internal_add_target_list(); - public: - const ::pg_query::Node& target_list(int index) const; - ::pg_query::Node* add_target_list(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - target_list() const; - - // repeated .pg_query.Node from_clause = 4 [json_name = "fromClause"]; - int from_clause_size() const; - private: - int _internal_from_clause_size() const; - public: - void clear_from_clause(); - ::pg_query::Node* mutable_from_clause(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_from_clause(); - private: - const ::pg_query::Node& _internal_from_clause(int index) const; - ::pg_query::Node* _internal_add_from_clause(); - public: - const ::pg_query::Node& from_clause(int index) const; - ::pg_query::Node* add_from_clause(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - from_clause() const; - - // repeated .pg_query.Node group_clause = 6 [json_name = "groupClause"]; - int group_clause_size() const; - private: - int _internal_group_clause_size() const; - public: - void clear_group_clause(); - ::pg_query::Node* mutable_group_clause(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_group_clause(); - private: - const ::pg_query::Node& _internal_group_clause(int index) const; - ::pg_query::Node* _internal_add_group_clause(); - public: - const ::pg_query::Node& group_clause(int index) const; - ::pg_query::Node* add_group_clause(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - group_clause() const; - - // repeated .pg_query.Node window_clause = 9 [json_name = "windowClause"]; - int window_clause_size() const; - private: - int _internal_window_clause_size() const; - public: - void clear_window_clause(); - ::pg_query::Node* mutable_window_clause(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_window_clause(); - private: - const ::pg_query::Node& _internal_window_clause(int index) const; - ::pg_query::Node* _internal_add_window_clause(); - public: - const ::pg_query::Node& window_clause(int index) const; - ::pg_query::Node* add_window_clause(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - window_clause() const; - - // repeated .pg_query.Node values_lists = 10 [json_name = "valuesLists"]; - int values_lists_size() const; - private: - int _internal_values_lists_size() const; - public: - void clear_values_lists(); - ::pg_query::Node* mutable_values_lists(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_values_lists(); - private: - const ::pg_query::Node& _internal_values_lists(int index) const; - ::pg_query::Node* _internal_add_values_lists(); - public: - const ::pg_query::Node& values_lists(int index) const; - ::pg_query::Node* add_values_lists(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - values_lists() const; - - // repeated .pg_query.Node sort_clause = 11 [json_name = "sortClause"]; - int sort_clause_size() const; - private: - int _internal_sort_clause_size() const; - public: - void clear_sort_clause(); - ::pg_query::Node* mutable_sort_clause(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_sort_clause(); - private: - const ::pg_query::Node& _internal_sort_clause(int index) const; - ::pg_query::Node* _internal_add_sort_clause(); - public: - const ::pg_query::Node& sort_clause(int index) const; - ::pg_query::Node* add_sort_clause(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - sort_clause() const; - - // repeated .pg_query.Node locking_clause = 15 [json_name = "lockingClause"]; - int locking_clause_size() const; - private: - int _internal_locking_clause_size() const; - public: - void clear_locking_clause(); - ::pg_query::Node* mutable_locking_clause(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_locking_clause(); - private: - const ::pg_query::Node& _internal_locking_clause(int index) const; - ::pg_query::Node* _internal_add_locking_clause(); - public: - const ::pg_query::Node& locking_clause(int index) const; - ::pg_query::Node* add_locking_clause(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - locking_clause() const; - - // .pg_query.IntoClause into_clause = 2 [json_name = "intoClause"]; - bool has_into_clause() const; - private: - bool _internal_has_into_clause() const; - public: - void clear_into_clause(); - const ::pg_query::IntoClause& into_clause() const; - PROTOBUF_NODISCARD ::pg_query::IntoClause* release_into_clause(); - ::pg_query::IntoClause* mutable_into_clause(); - void set_allocated_into_clause(::pg_query::IntoClause* into_clause); - private: - const ::pg_query::IntoClause& _internal_into_clause() const; - ::pg_query::IntoClause* _internal_mutable_into_clause(); - public: - void unsafe_arena_set_allocated_into_clause( - ::pg_query::IntoClause* into_clause); - ::pg_query::IntoClause* unsafe_arena_release_into_clause(); - - // .pg_query.Node where_clause = 5 [json_name = "whereClause"]; - bool has_where_clause() const; - private: - bool _internal_has_where_clause() const; - public: - void clear_where_clause(); - const ::pg_query::Node& where_clause() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_where_clause(); - ::pg_query::Node* mutable_where_clause(); - void set_allocated_where_clause(::pg_query::Node* where_clause); - private: - const ::pg_query::Node& _internal_where_clause() const; - ::pg_query::Node* _internal_mutable_where_clause(); - public: - void unsafe_arena_set_allocated_where_clause( - ::pg_query::Node* where_clause); - ::pg_query::Node* unsafe_arena_release_where_clause(); - - // .pg_query.Node having_clause = 8 [json_name = "havingClause"]; - bool has_having_clause() const; - private: - bool _internal_has_having_clause() const; - public: - void clear_having_clause(); - const ::pg_query::Node& having_clause() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_having_clause(); - ::pg_query::Node* mutable_having_clause(); - void set_allocated_having_clause(::pg_query::Node* having_clause); - private: - const ::pg_query::Node& _internal_having_clause() const; - ::pg_query::Node* _internal_mutable_having_clause(); - public: - void unsafe_arena_set_allocated_having_clause( - ::pg_query::Node* having_clause); - ::pg_query::Node* unsafe_arena_release_having_clause(); - - // .pg_query.Node limit_offset = 12 [json_name = "limitOffset"]; - bool has_limit_offset() const; - private: - bool _internal_has_limit_offset() const; - public: - void clear_limit_offset(); - const ::pg_query::Node& limit_offset() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_limit_offset(); - ::pg_query::Node* mutable_limit_offset(); - void set_allocated_limit_offset(::pg_query::Node* limit_offset); - private: - const ::pg_query::Node& _internal_limit_offset() const; - ::pg_query::Node* _internal_mutable_limit_offset(); - public: - void unsafe_arena_set_allocated_limit_offset( - ::pg_query::Node* limit_offset); - ::pg_query::Node* unsafe_arena_release_limit_offset(); - - // .pg_query.Node limit_count = 13 [json_name = "limitCount"]; - bool has_limit_count() const; - private: - bool _internal_has_limit_count() const; - public: - void clear_limit_count(); - const ::pg_query::Node& limit_count() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_limit_count(); - ::pg_query::Node* mutable_limit_count(); - void set_allocated_limit_count(::pg_query::Node* limit_count); - private: - const ::pg_query::Node& _internal_limit_count() const; - ::pg_query::Node* _internal_mutable_limit_count(); - public: - void unsafe_arena_set_allocated_limit_count( - ::pg_query::Node* limit_count); - ::pg_query::Node* unsafe_arena_release_limit_count(); - - // .pg_query.WithClause with_clause = 16 [json_name = "withClause"]; - bool has_with_clause() const; - private: - bool _internal_has_with_clause() const; - public: - void clear_with_clause(); - const ::pg_query::WithClause& with_clause() const; - PROTOBUF_NODISCARD ::pg_query::WithClause* release_with_clause(); - ::pg_query::WithClause* mutable_with_clause(); - void set_allocated_with_clause(::pg_query::WithClause* with_clause); - private: - const ::pg_query::WithClause& _internal_with_clause() const; - ::pg_query::WithClause* _internal_mutable_with_clause(); - public: - void unsafe_arena_set_allocated_with_clause( - ::pg_query::WithClause* with_clause); - ::pg_query::WithClause* unsafe_arena_release_with_clause(); - - // .pg_query.SelectStmt larg = 19 [json_name = "larg"]; - bool has_larg() const; - private: - bool _internal_has_larg() const; - public: - void clear_larg(); - const ::pg_query::SelectStmt& larg() const; - PROTOBUF_NODISCARD ::pg_query::SelectStmt* release_larg(); - ::pg_query::SelectStmt* mutable_larg(); - void set_allocated_larg(::pg_query::SelectStmt* larg); - private: - const ::pg_query::SelectStmt& _internal_larg() const; - ::pg_query::SelectStmt* _internal_mutable_larg(); - public: - void unsafe_arena_set_allocated_larg( - ::pg_query::SelectStmt* larg); - ::pg_query::SelectStmt* unsafe_arena_release_larg(); - - // .pg_query.SelectStmt rarg = 20 [json_name = "rarg"]; - bool has_rarg() const; - private: - bool _internal_has_rarg() const; - public: - void clear_rarg(); - const ::pg_query::SelectStmt& rarg() const; - PROTOBUF_NODISCARD ::pg_query::SelectStmt* release_rarg(); - ::pg_query::SelectStmt* mutable_rarg(); - void set_allocated_rarg(::pg_query::SelectStmt* rarg); - private: - const ::pg_query::SelectStmt& _internal_rarg() const; - ::pg_query::SelectStmt* _internal_mutable_rarg(); - public: - void unsafe_arena_set_allocated_rarg( - ::pg_query::SelectStmt* rarg); - ::pg_query::SelectStmt* unsafe_arena_release_rarg(); - - // bool group_distinct = 7 [json_name = "groupDistinct"]; - void clear_group_distinct(); - bool group_distinct() const; - void set_group_distinct(bool value); - private: - bool _internal_group_distinct() const; - void _internal_set_group_distinct(bool value); - public: - - // bool all = 18 [json_name = "all"]; - void clear_all(); - bool all() const; - void set_all(bool value); - private: - bool _internal_all() const; - void _internal_set_all(bool value); - public: - - // .pg_query.LimitOption limit_option = 14 [json_name = "limitOption"]; - void clear_limit_option(); - ::pg_query::LimitOption limit_option() const; - void set_limit_option(::pg_query::LimitOption value); - private: - ::pg_query::LimitOption _internal_limit_option() const; - void _internal_set_limit_option(::pg_query::LimitOption value); - public: - - // .pg_query.SetOperation op = 17 [json_name = "op"]; - void clear_op(); - ::pg_query::SetOperation op() const; - void set_op(::pg_query::SetOperation value); - private: - ::pg_query::SetOperation _internal_op() const; - void _internal_set_op(::pg_query::SetOperation value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.SelectStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > distinct_clause_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > target_list_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > from_clause_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > group_clause_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > window_clause_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > values_lists_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > sort_clause_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > locking_clause_; - ::pg_query::IntoClause* into_clause_; - ::pg_query::Node* where_clause_; - ::pg_query::Node* having_clause_; - ::pg_query::Node* limit_offset_; - ::pg_query::Node* limit_count_; - ::pg_query::WithClause* with_clause_; - ::pg_query::SelectStmt* larg_; - ::pg_query::SelectStmt* rarg_; - bool group_distinct_; - bool all_; - int limit_option_; - int op_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ReturnStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ReturnStmt) */ { - public: - inline ReturnStmt() : ReturnStmt(nullptr) {} - ~ReturnStmt() override; - explicit PROTOBUF_CONSTEXPR ReturnStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ReturnStmt(const ReturnStmt& from); - ReturnStmt(ReturnStmt&& from) noexcept - : ReturnStmt() { - *this = ::std::move(from); - } - - inline ReturnStmt& operator=(const ReturnStmt& from) { - CopyFrom(from); - return *this; - } - inline ReturnStmt& operator=(ReturnStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ReturnStmt& default_instance() { - return *internal_default_instance(); - } - static inline const ReturnStmt* internal_default_instance() { - return reinterpret_cast( - &_ReturnStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 70; - - friend void swap(ReturnStmt& a, ReturnStmt& b) { - a.Swap(&b); - } - inline void Swap(ReturnStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ReturnStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ReturnStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ReturnStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ReturnStmt& from) { - ReturnStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ReturnStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ReturnStmt"; - } - protected: - explicit ReturnStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kReturnvalFieldNumber = 1, - }; - // .pg_query.Node returnval = 1 [json_name = "returnval"]; - bool has_returnval() const; - private: - bool _internal_has_returnval() const; - public: - void clear_returnval(); - const ::pg_query::Node& returnval() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_returnval(); - ::pg_query::Node* mutable_returnval(); - void set_allocated_returnval(::pg_query::Node* returnval); - private: - const ::pg_query::Node& _internal_returnval() const; - ::pg_query::Node* _internal_mutable_returnval(); - public: - void unsafe_arena_set_allocated_returnval( - ::pg_query::Node* returnval); - ::pg_query::Node* unsafe_arena_release_returnval(); - - // @@protoc_insertion_point(class_scope:pg_query.ReturnStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* returnval_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class PLAssignStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.PLAssignStmt) */ { - public: - inline PLAssignStmt() : PLAssignStmt(nullptr) {} - ~PLAssignStmt() override; - explicit PROTOBUF_CONSTEXPR PLAssignStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PLAssignStmt(const PLAssignStmt& from); - PLAssignStmt(PLAssignStmt&& from) noexcept - : PLAssignStmt() { - *this = ::std::move(from); - } - - inline PLAssignStmt& operator=(const PLAssignStmt& from) { - CopyFrom(from); - return *this; - } - inline PLAssignStmt& operator=(PLAssignStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const PLAssignStmt& default_instance() { - return *internal_default_instance(); - } - static inline const PLAssignStmt* internal_default_instance() { - return reinterpret_cast( - &_PLAssignStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 71; - - friend void swap(PLAssignStmt& a, PLAssignStmt& b) { - a.Swap(&b); - } - inline void Swap(PLAssignStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PLAssignStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PLAssignStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PLAssignStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const PLAssignStmt& from) { - PLAssignStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PLAssignStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.PLAssignStmt"; - } - protected: - explicit PLAssignStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIndirectionFieldNumber = 2, - kNameFieldNumber = 1, - kValFieldNumber = 4, - kNnamesFieldNumber = 3, - kLocationFieldNumber = 5, - }; - // repeated .pg_query.Node indirection = 2 [json_name = "indirection"]; - int indirection_size() const; - private: - int _internal_indirection_size() const; - public: - void clear_indirection(); - ::pg_query::Node* mutable_indirection(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_indirection(); - private: - const ::pg_query::Node& _internal_indirection(int index) const; - ::pg_query::Node* _internal_add_indirection(); - public: - const ::pg_query::Node& indirection(int index) const; - ::pg_query::Node* add_indirection(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - indirection() const; - - // string name = 1 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // .pg_query.SelectStmt val = 4 [json_name = "val"]; - bool has_val() const; - private: - bool _internal_has_val() const; - public: - void clear_val(); - const ::pg_query::SelectStmt& val() const; - PROTOBUF_NODISCARD ::pg_query::SelectStmt* release_val(); - ::pg_query::SelectStmt* mutable_val(); - void set_allocated_val(::pg_query::SelectStmt* val); - private: - const ::pg_query::SelectStmt& _internal_val() const; - ::pg_query::SelectStmt* _internal_mutable_val(); - public: - void unsafe_arena_set_allocated_val( - ::pg_query::SelectStmt* val); - ::pg_query::SelectStmt* unsafe_arena_release_val(); - - // int32 nnames = 3 [json_name = "nnames"]; - void clear_nnames(); - int32_t nnames() const; - void set_nnames(int32_t value); - private: - int32_t _internal_nnames() const; - void _internal_set_nnames(int32_t value); - public: - - // int32 location = 5 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.PLAssignStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > indirection_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::pg_query::SelectStmt* val_; - int32_t nnames_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterTableStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterTableStmt) */ { - public: - inline AlterTableStmt() : AlterTableStmt(nullptr) {} - ~AlterTableStmt() override; - explicit PROTOBUF_CONSTEXPR AlterTableStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterTableStmt(const AlterTableStmt& from); - AlterTableStmt(AlterTableStmt&& from) noexcept - : AlterTableStmt() { - *this = ::std::move(from); - } - - inline AlterTableStmt& operator=(const AlterTableStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterTableStmt& operator=(AlterTableStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterTableStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterTableStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterTableStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 72; - - friend void swap(AlterTableStmt& a, AlterTableStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterTableStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterTableStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterTableStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterTableStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterTableStmt& from) { - AlterTableStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterTableStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterTableStmt"; - } - protected: - explicit AlterTableStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCmdsFieldNumber = 2, - kRelationFieldNumber = 1, - kObjtypeFieldNumber = 3, - kMissingOkFieldNumber = 4, - }; - // repeated .pg_query.Node cmds = 2 [json_name = "cmds"]; - int cmds_size() const; - private: - int _internal_cmds_size() const; - public: - void clear_cmds(); - ::pg_query::Node* mutable_cmds(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_cmds(); - private: - const ::pg_query::Node& _internal_cmds(int index) const; - ::pg_query::Node* _internal_add_cmds(); - public: - const ::pg_query::Node& cmds(int index) const; - ::pg_query::Node* add_cmds(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - cmds() const; - - // .pg_query.RangeVar relation = 1 [json_name = "relation"]; - bool has_relation() const; - private: - bool _internal_has_relation() const; - public: - void clear_relation(); - const ::pg_query::RangeVar& relation() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_relation(); - ::pg_query::RangeVar* mutable_relation(); - void set_allocated_relation(::pg_query::RangeVar* relation); - private: - const ::pg_query::RangeVar& _internal_relation() const; - ::pg_query::RangeVar* _internal_mutable_relation(); - public: - void unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation); - ::pg_query::RangeVar* unsafe_arena_release_relation(); - - // .pg_query.ObjectType objtype = 3 [json_name = "objtype"]; - void clear_objtype(); - ::pg_query::ObjectType objtype() const; - void set_objtype(::pg_query::ObjectType value); - private: - ::pg_query::ObjectType _internal_objtype() const; - void _internal_set_objtype(::pg_query::ObjectType value); - public: - - // bool missing_ok = 4 [json_name = "missing_ok"]; - void clear_missing_ok(); - bool missing_ok() const; - void set_missing_ok(bool value); - private: - bool _internal_missing_ok() const; - void _internal_set_missing_ok(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterTableStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > cmds_; - ::pg_query::RangeVar* relation_; - int objtype_; - bool missing_ok_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterTableCmd final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterTableCmd) */ { - public: - inline AlterTableCmd() : AlterTableCmd(nullptr) {} - ~AlterTableCmd() override; - explicit PROTOBUF_CONSTEXPR AlterTableCmd(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterTableCmd(const AlterTableCmd& from); - AlterTableCmd(AlterTableCmd&& from) noexcept - : AlterTableCmd() { - *this = ::std::move(from); - } - - inline AlterTableCmd& operator=(const AlterTableCmd& from) { - CopyFrom(from); - return *this; - } - inline AlterTableCmd& operator=(AlterTableCmd&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterTableCmd& default_instance() { - return *internal_default_instance(); - } - static inline const AlterTableCmd* internal_default_instance() { - return reinterpret_cast( - &_AlterTableCmd_default_instance_); - } - static constexpr int kIndexInFileMessages = - 73; - - friend void swap(AlterTableCmd& a, AlterTableCmd& b) { - a.Swap(&b); - } - inline void Swap(AlterTableCmd* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterTableCmd* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterTableCmd* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterTableCmd& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterTableCmd& from) { - AlterTableCmd::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterTableCmd* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterTableCmd"; - } - protected: - explicit AlterTableCmd(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNameFieldNumber = 2, - kNewownerFieldNumber = 4, - kDefFieldNumber = 5, - kSubtypeFieldNumber = 1, - kNumFieldNumber = 3, - kBehaviorFieldNumber = 6, - kMissingOkFieldNumber = 7, - kRecurseFieldNumber = 8, - }; - // string name = 2 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // .pg_query.RoleSpec newowner = 4 [json_name = "newowner"]; - bool has_newowner() const; - private: - bool _internal_has_newowner() const; - public: - void clear_newowner(); - const ::pg_query::RoleSpec& newowner() const; - PROTOBUF_NODISCARD ::pg_query::RoleSpec* release_newowner(); - ::pg_query::RoleSpec* mutable_newowner(); - void set_allocated_newowner(::pg_query::RoleSpec* newowner); - private: - const ::pg_query::RoleSpec& _internal_newowner() const; - ::pg_query::RoleSpec* _internal_mutable_newowner(); - public: - void unsafe_arena_set_allocated_newowner( - ::pg_query::RoleSpec* newowner); - ::pg_query::RoleSpec* unsafe_arena_release_newowner(); - - // .pg_query.Node def = 5 [json_name = "def"]; - bool has_def() const; - private: - bool _internal_has_def() const; - public: - void clear_def(); - const ::pg_query::Node& def() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_def(); - ::pg_query::Node* mutable_def(); - void set_allocated_def(::pg_query::Node* def); - private: - const ::pg_query::Node& _internal_def() const; - ::pg_query::Node* _internal_mutable_def(); - public: - void unsafe_arena_set_allocated_def( - ::pg_query::Node* def); - ::pg_query::Node* unsafe_arena_release_def(); - - // .pg_query.AlterTableType subtype = 1 [json_name = "subtype"]; - void clear_subtype(); - ::pg_query::AlterTableType subtype() const; - void set_subtype(::pg_query::AlterTableType value); - private: - ::pg_query::AlterTableType _internal_subtype() const; - void _internal_set_subtype(::pg_query::AlterTableType value); - public: - - // int32 num = 3 [json_name = "num"]; - void clear_num(); - int32_t num() const; - void set_num(int32_t value); - private: - int32_t _internal_num() const; - void _internal_set_num(int32_t value); - public: - - // .pg_query.DropBehavior behavior = 6 [json_name = "behavior"]; - void clear_behavior(); - ::pg_query::DropBehavior behavior() const; - void set_behavior(::pg_query::DropBehavior value); - private: - ::pg_query::DropBehavior _internal_behavior() const; - void _internal_set_behavior(::pg_query::DropBehavior value); - public: - - // bool missing_ok = 7 [json_name = "missing_ok"]; - void clear_missing_ok(); - bool missing_ok() const; - void set_missing_ok(bool value); - private: - bool _internal_missing_ok() const; - void _internal_set_missing_ok(bool value); - public: - - // bool recurse = 8 [json_name = "recurse"]; - void clear_recurse(); - bool recurse() const; - void set_recurse(bool value); - private: - bool _internal_recurse() const; - void _internal_set_recurse(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterTableCmd) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::pg_query::RoleSpec* newowner_; - ::pg_query::Node* def_; - int subtype_; - int32_t num_; - int behavior_; - bool missing_ok_; - bool recurse_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterDomainStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterDomainStmt) */ { - public: - inline AlterDomainStmt() : AlterDomainStmt(nullptr) {} - ~AlterDomainStmt() override; - explicit PROTOBUF_CONSTEXPR AlterDomainStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterDomainStmt(const AlterDomainStmt& from); - AlterDomainStmt(AlterDomainStmt&& from) noexcept - : AlterDomainStmt() { - *this = ::std::move(from); - } - - inline AlterDomainStmt& operator=(const AlterDomainStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterDomainStmt& operator=(AlterDomainStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterDomainStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterDomainStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterDomainStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 74; - - friend void swap(AlterDomainStmt& a, AlterDomainStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterDomainStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterDomainStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterDomainStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterDomainStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterDomainStmt& from) { - AlterDomainStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterDomainStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterDomainStmt"; - } - protected: - explicit AlterDomainStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTypeNameFieldNumber = 2, - kSubtypeFieldNumber = 1, - kNameFieldNumber = 3, - kDefFieldNumber = 4, - kBehaviorFieldNumber = 5, - kMissingOkFieldNumber = 6, - }; - // repeated .pg_query.Node type_name = 2 [json_name = "typeName"]; - int type_name_size() const; - private: - int _internal_type_name_size() const; - public: - void clear_type_name(); - ::pg_query::Node* mutable_type_name(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_type_name(); - private: - const ::pg_query::Node& _internal_type_name(int index) const; - ::pg_query::Node* _internal_add_type_name(); - public: - const ::pg_query::Node& type_name(int index) const; - ::pg_query::Node* add_type_name(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - type_name() const; - - // string subtype = 1 [json_name = "subtype"]; - void clear_subtype(); - const std::string& subtype() const; - template - void set_subtype(ArgT0&& arg0, ArgT... args); - std::string* mutable_subtype(); - PROTOBUF_NODISCARD std::string* release_subtype(); - void set_allocated_subtype(std::string* subtype); - private: - const std::string& _internal_subtype() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_subtype(const std::string& value); - std::string* _internal_mutable_subtype(); - public: - - // string name = 3 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // .pg_query.Node def = 4 [json_name = "def"]; - bool has_def() const; - private: - bool _internal_has_def() const; - public: - void clear_def(); - const ::pg_query::Node& def() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_def(); - ::pg_query::Node* mutable_def(); - void set_allocated_def(::pg_query::Node* def); - private: - const ::pg_query::Node& _internal_def() const; - ::pg_query::Node* _internal_mutable_def(); - public: - void unsafe_arena_set_allocated_def( - ::pg_query::Node* def); - ::pg_query::Node* unsafe_arena_release_def(); - - // .pg_query.DropBehavior behavior = 5 [json_name = "behavior"]; - void clear_behavior(); - ::pg_query::DropBehavior behavior() const; - void set_behavior(::pg_query::DropBehavior value); - private: - ::pg_query::DropBehavior _internal_behavior() const; - void _internal_set_behavior(::pg_query::DropBehavior value); - public: - - // bool missing_ok = 6 [json_name = "missing_ok"]; - void clear_missing_ok(); - bool missing_ok() const; - void set_missing_ok(bool value); - private: - bool _internal_missing_ok() const; - void _internal_set_missing_ok(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterDomainStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > type_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subtype_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::pg_query::Node* def_; - int behavior_; - bool missing_ok_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class SetOperationStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.SetOperationStmt) */ { - public: - inline SetOperationStmt() : SetOperationStmt(nullptr) {} - ~SetOperationStmt() override; - explicit PROTOBUF_CONSTEXPR SetOperationStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SetOperationStmt(const SetOperationStmt& from); - SetOperationStmt(SetOperationStmt&& from) noexcept - : SetOperationStmt() { - *this = ::std::move(from); - } - - inline SetOperationStmt& operator=(const SetOperationStmt& from) { - CopyFrom(from); - return *this; - } - inline SetOperationStmt& operator=(SetOperationStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetOperationStmt& default_instance() { - return *internal_default_instance(); - } - static inline const SetOperationStmt* internal_default_instance() { - return reinterpret_cast( - &_SetOperationStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 75; - - friend void swap(SetOperationStmt& a, SetOperationStmt& b) { - a.Swap(&b); - } - inline void Swap(SetOperationStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetOperationStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetOperationStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetOperationStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetOperationStmt& from) { - SetOperationStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetOperationStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.SetOperationStmt"; - } - protected: - explicit SetOperationStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kColTypesFieldNumber = 5, - kColTypmodsFieldNumber = 6, - kColCollationsFieldNumber = 7, - kGroupClausesFieldNumber = 8, - kLargFieldNumber = 3, - kRargFieldNumber = 4, - kOpFieldNumber = 1, - kAllFieldNumber = 2, - }; - // repeated .pg_query.Node col_types = 5 [json_name = "colTypes"]; - int col_types_size() const; - private: - int _internal_col_types_size() const; - public: - void clear_col_types(); - ::pg_query::Node* mutable_col_types(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_col_types(); - private: - const ::pg_query::Node& _internal_col_types(int index) const; - ::pg_query::Node* _internal_add_col_types(); - public: - const ::pg_query::Node& col_types(int index) const; - ::pg_query::Node* add_col_types(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - col_types() const; - - // repeated .pg_query.Node col_typmods = 6 [json_name = "colTypmods"]; - int col_typmods_size() const; - private: - int _internal_col_typmods_size() const; - public: - void clear_col_typmods(); - ::pg_query::Node* mutable_col_typmods(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_col_typmods(); - private: - const ::pg_query::Node& _internal_col_typmods(int index) const; - ::pg_query::Node* _internal_add_col_typmods(); - public: - const ::pg_query::Node& col_typmods(int index) const; - ::pg_query::Node* add_col_typmods(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - col_typmods() const; - - // repeated .pg_query.Node col_collations = 7 [json_name = "colCollations"]; - int col_collations_size() const; - private: - int _internal_col_collations_size() const; - public: - void clear_col_collations(); - ::pg_query::Node* mutable_col_collations(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_col_collations(); - private: - const ::pg_query::Node& _internal_col_collations(int index) const; - ::pg_query::Node* _internal_add_col_collations(); - public: - const ::pg_query::Node& col_collations(int index) const; - ::pg_query::Node* add_col_collations(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - col_collations() const; - - // repeated .pg_query.Node group_clauses = 8 [json_name = "groupClauses"]; - int group_clauses_size() const; - private: - int _internal_group_clauses_size() const; - public: - void clear_group_clauses(); - ::pg_query::Node* mutable_group_clauses(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_group_clauses(); - private: - const ::pg_query::Node& _internal_group_clauses(int index) const; - ::pg_query::Node* _internal_add_group_clauses(); - public: - const ::pg_query::Node& group_clauses(int index) const; - ::pg_query::Node* add_group_clauses(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - group_clauses() const; - - // .pg_query.Node larg = 3 [json_name = "larg"]; - bool has_larg() const; - private: - bool _internal_has_larg() const; - public: - void clear_larg(); - const ::pg_query::Node& larg() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_larg(); - ::pg_query::Node* mutable_larg(); - void set_allocated_larg(::pg_query::Node* larg); - private: - const ::pg_query::Node& _internal_larg() const; - ::pg_query::Node* _internal_mutable_larg(); - public: - void unsafe_arena_set_allocated_larg( - ::pg_query::Node* larg); - ::pg_query::Node* unsafe_arena_release_larg(); - - // .pg_query.Node rarg = 4 [json_name = "rarg"]; - bool has_rarg() const; - private: - bool _internal_has_rarg() const; - public: - void clear_rarg(); - const ::pg_query::Node& rarg() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_rarg(); - ::pg_query::Node* mutable_rarg(); - void set_allocated_rarg(::pg_query::Node* rarg); - private: - const ::pg_query::Node& _internal_rarg() const; - ::pg_query::Node* _internal_mutable_rarg(); - public: - void unsafe_arena_set_allocated_rarg( - ::pg_query::Node* rarg); - ::pg_query::Node* unsafe_arena_release_rarg(); - - // .pg_query.SetOperation op = 1 [json_name = "op"]; - void clear_op(); - ::pg_query::SetOperation op() const; - void set_op(::pg_query::SetOperation value); - private: - ::pg_query::SetOperation _internal_op() const; - void _internal_set_op(::pg_query::SetOperation value); - public: - - // bool all = 2 [json_name = "all"]; - void clear_all(); - bool all() const; - void set_all(bool value); - private: - bool _internal_all() const; - void _internal_set_all(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.SetOperationStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > col_types_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > col_typmods_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > col_collations_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > group_clauses_; - ::pg_query::Node* larg_; - ::pg_query::Node* rarg_; - int op_; - bool all_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class GrantStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.GrantStmt) */ { - public: - inline GrantStmt() : GrantStmt(nullptr) {} - ~GrantStmt() override; - explicit PROTOBUF_CONSTEXPR GrantStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - GrantStmt(const GrantStmt& from); - GrantStmt(GrantStmt&& from) noexcept - : GrantStmt() { - *this = ::std::move(from); - } - - inline GrantStmt& operator=(const GrantStmt& from) { - CopyFrom(from); - return *this; - } - inline GrantStmt& operator=(GrantStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GrantStmt& default_instance() { - return *internal_default_instance(); - } - static inline const GrantStmt* internal_default_instance() { - return reinterpret_cast( - &_GrantStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 76; - - friend void swap(GrantStmt& a, GrantStmt& b) { - a.Swap(&b); - } - inline void Swap(GrantStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrantStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrantStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GrantStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const GrantStmt& from) { - GrantStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GrantStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.GrantStmt"; - } - protected: - explicit GrantStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kObjectsFieldNumber = 4, - kPrivilegesFieldNumber = 5, - kGranteesFieldNumber = 6, - kGrantorFieldNumber = 8, - kTargtypeFieldNumber = 2, - kObjtypeFieldNumber = 3, - kIsGrantFieldNumber = 1, - kGrantOptionFieldNumber = 7, - kBehaviorFieldNumber = 9, - }; - // repeated .pg_query.Node objects = 4 [json_name = "objects"]; - int objects_size() const; - private: - int _internal_objects_size() const; - public: - void clear_objects(); - ::pg_query::Node* mutable_objects(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_objects(); - private: - const ::pg_query::Node& _internal_objects(int index) const; - ::pg_query::Node* _internal_add_objects(); - public: - const ::pg_query::Node& objects(int index) const; - ::pg_query::Node* add_objects(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - objects() const; - - // repeated .pg_query.Node privileges = 5 [json_name = "privileges"]; - int privileges_size() const; - private: - int _internal_privileges_size() const; - public: - void clear_privileges(); - ::pg_query::Node* mutable_privileges(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_privileges(); - private: - const ::pg_query::Node& _internal_privileges(int index) const; - ::pg_query::Node* _internal_add_privileges(); - public: - const ::pg_query::Node& privileges(int index) const; - ::pg_query::Node* add_privileges(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - privileges() const; - - // repeated .pg_query.Node grantees = 6 [json_name = "grantees"]; - int grantees_size() const; - private: - int _internal_grantees_size() const; - public: - void clear_grantees(); - ::pg_query::Node* mutable_grantees(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_grantees(); - private: - const ::pg_query::Node& _internal_grantees(int index) const; - ::pg_query::Node* _internal_add_grantees(); - public: - const ::pg_query::Node& grantees(int index) const; - ::pg_query::Node* add_grantees(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - grantees() const; - - // .pg_query.RoleSpec grantor = 8 [json_name = "grantor"]; - bool has_grantor() const; - private: - bool _internal_has_grantor() const; - public: - void clear_grantor(); - const ::pg_query::RoleSpec& grantor() const; - PROTOBUF_NODISCARD ::pg_query::RoleSpec* release_grantor(); - ::pg_query::RoleSpec* mutable_grantor(); - void set_allocated_grantor(::pg_query::RoleSpec* grantor); - private: - const ::pg_query::RoleSpec& _internal_grantor() const; - ::pg_query::RoleSpec* _internal_mutable_grantor(); - public: - void unsafe_arena_set_allocated_grantor( - ::pg_query::RoleSpec* grantor); - ::pg_query::RoleSpec* unsafe_arena_release_grantor(); - - // .pg_query.GrantTargetType targtype = 2 [json_name = "targtype"]; - void clear_targtype(); - ::pg_query::GrantTargetType targtype() const; - void set_targtype(::pg_query::GrantTargetType value); - private: - ::pg_query::GrantTargetType _internal_targtype() const; - void _internal_set_targtype(::pg_query::GrantTargetType value); - public: - - // .pg_query.ObjectType objtype = 3 [json_name = "objtype"]; - void clear_objtype(); - ::pg_query::ObjectType objtype() const; - void set_objtype(::pg_query::ObjectType value); - private: - ::pg_query::ObjectType _internal_objtype() const; - void _internal_set_objtype(::pg_query::ObjectType value); - public: - - // bool is_grant = 1 [json_name = "is_grant"]; - void clear_is_grant(); - bool is_grant() const; - void set_is_grant(bool value); - private: - bool _internal_is_grant() const; - void _internal_set_is_grant(bool value); - public: - - // bool grant_option = 7 [json_name = "grant_option"]; - void clear_grant_option(); - bool grant_option() const; - void set_grant_option(bool value); - private: - bool _internal_grant_option() const; - void _internal_set_grant_option(bool value); - public: - - // .pg_query.DropBehavior behavior = 9 [json_name = "behavior"]; - void clear_behavior(); - ::pg_query::DropBehavior behavior() const; - void set_behavior(::pg_query::DropBehavior value); - private: - ::pg_query::DropBehavior _internal_behavior() const; - void _internal_set_behavior(::pg_query::DropBehavior value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.GrantStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > objects_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > privileges_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > grantees_; - ::pg_query::RoleSpec* grantor_; - int targtype_; - int objtype_; - bool is_grant_; - bool grant_option_; - int behavior_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class GrantRoleStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.GrantRoleStmt) */ { - public: - inline GrantRoleStmt() : GrantRoleStmt(nullptr) {} - ~GrantRoleStmt() override; - explicit PROTOBUF_CONSTEXPR GrantRoleStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - GrantRoleStmt(const GrantRoleStmt& from); - GrantRoleStmt(GrantRoleStmt&& from) noexcept - : GrantRoleStmt() { - *this = ::std::move(from); - } - - inline GrantRoleStmt& operator=(const GrantRoleStmt& from) { - CopyFrom(from); - return *this; - } - inline GrantRoleStmt& operator=(GrantRoleStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GrantRoleStmt& default_instance() { - return *internal_default_instance(); - } - static inline const GrantRoleStmt* internal_default_instance() { - return reinterpret_cast( - &_GrantRoleStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 77; - - friend void swap(GrantRoleStmt& a, GrantRoleStmt& b) { - a.Swap(&b); - } - inline void Swap(GrantRoleStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GrantRoleStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GrantRoleStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GrantRoleStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const GrantRoleStmt& from) { - GrantRoleStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GrantRoleStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.GrantRoleStmt"; - } - protected: - explicit GrantRoleStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kGrantedRolesFieldNumber = 1, - kGranteeRolesFieldNumber = 2, - kGrantorFieldNumber = 5, - kIsGrantFieldNumber = 3, - kAdminOptFieldNumber = 4, - kBehaviorFieldNumber = 6, - }; - // repeated .pg_query.Node granted_roles = 1 [json_name = "granted_roles"]; - int granted_roles_size() const; - private: - int _internal_granted_roles_size() const; - public: - void clear_granted_roles(); - ::pg_query::Node* mutable_granted_roles(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_granted_roles(); - private: - const ::pg_query::Node& _internal_granted_roles(int index) const; - ::pg_query::Node* _internal_add_granted_roles(); - public: - const ::pg_query::Node& granted_roles(int index) const; - ::pg_query::Node* add_granted_roles(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - granted_roles() const; - - // repeated .pg_query.Node grantee_roles = 2 [json_name = "grantee_roles"]; - int grantee_roles_size() const; - private: - int _internal_grantee_roles_size() const; - public: - void clear_grantee_roles(); - ::pg_query::Node* mutable_grantee_roles(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_grantee_roles(); - private: - const ::pg_query::Node& _internal_grantee_roles(int index) const; - ::pg_query::Node* _internal_add_grantee_roles(); - public: - const ::pg_query::Node& grantee_roles(int index) const; - ::pg_query::Node* add_grantee_roles(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - grantee_roles() const; - - // .pg_query.RoleSpec grantor = 5 [json_name = "grantor"]; - bool has_grantor() const; - private: - bool _internal_has_grantor() const; - public: - void clear_grantor(); - const ::pg_query::RoleSpec& grantor() const; - PROTOBUF_NODISCARD ::pg_query::RoleSpec* release_grantor(); - ::pg_query::RoleSpec* mutable_grantor(); - void set_allocated_grantor(::pg_query::RoleSpec* grantor); - private: - const ::pg_query::RoleSpec& _internal_grantor() const; - ::pg_query::RoleSpec* _internal_mutable_grantor(); - public: - void unsafe_arena_set_allocated_grantor( - ::pg_query::RoleSpec* grantor); - ::pg_query::RoleSpec* unsafe_arena_release_grantor(); - - // bool is_grant = 3 [json_name = "is_grant"]; - void clear_is_grant(); - bool is_grant() const; - void set_is_grant(bool value); - private: - bool _internal_is_grant() const; - void _internal_set_is_grant(bool value); - public: - - // bool admin_opt = 4 [json_name = "admin_opt"]; - void clear_admin_opt(); - bool admin_opt() const; - void set_admin_opt(bool value); - private: - bool _internal_admin_opt() const; - void _internal_set_admin_opt(bool value); - public: - - // .pg_query.DropBehavior behavior = 6 [json_name = "behavior"]; - void clear_behavior(); - ::pg_query::DropBehavior behavior() const; - void set_behavior(::pg_query::DropBehavior value); - private: - ::pg_query::DropBehavior _internal_behavior() const; - void _internal_set_behavior(::pg_query::DropBehavior value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.GrantRoleStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > granted_roles_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > grantee_roles_; - ::pg_query::RoleSpec* grantor_; - bool is_grant_; - bool admin_opt_; - int behavior_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterDefaultPrivilegesStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterDefaultPrivilegesStmt) */ { - public: - inline AlterDefaultPrivilegesStmt() : AlterDefaultPrivilegesStmt(nullptr) {} - ~AlterDefaultPrivilegesStmt() override; - explicit PROTOBUF_CONSTEXPR AlterDefaultPrivilegesStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterDefaultPrivilegesStmt(const AlterDefaultPrivilegesStmt& from); - AlterDefaultPrivilegesStmt(AlterDefaultPrivilegesStmt&& from) noexcept - : AlterDefaultPrivilegesStmt() { - *this = ::std::move(from); - } - - inline AlterDefaultPrivilegesStmt& operator=(const AlterDefaultPrivilegesStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterDefaultPrivilegesStmt& operator=(AlterDefaultPrivilegesStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterDefaultPrivilegesStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterDefaultPrivilegesStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterDefaultPrivilegesStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 78; - - friend void swap(AlterDefaultPrivilegesStmt& a, AlterDefaultPrivilegesStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterDefaultPrivilegesStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterDefaultPrivilegesStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterDefaultPrivilegesStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterDefaultPrivilegesStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterDefaultPrivilegesStmt& from) { - AlterDefaultPrivilegesStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterDefaultPrivilegesStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterDefaultPrivilegesStmt"; - } - protected: - explicit AlterDefaultPrivilegesStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 1, - kActionFieldNumber = 2, - }; - // repeated .pg_query.Node options = 1 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // .pg_query.GrantStmt action = 2 [json_name = "action"]; - bool has_action() const; - private: - bool _internal_has_action() const; - public: - void clear_action(); - const ::pg_query::GrantStmt& action() const; - PROTOBUF_NODISCARD ::pg_query::GrantStmt* release_action(); - ::pg_query::GrantStmt* mutable_action(); - void set_allocated_action(::pg_query::GrantStmt* action); - private: - const ::pg_query::GrantStmt& _internal_action() const; - ::pg_query::GrantStmt* _internal_mutable_action(); - public: - void unsafe_arena_set_allocated_action( - ::pg_query::GrantStmt* action); - ::pg_query::GrantStmt* unsafe_arena_release_action(); - - // @@protoc_insertion_point(class_scope:pg_query.AlterDefaultPrivilegesStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::pg_query::GrantStmt* action_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ClosePortalStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ClosePortalStmt) */ { - public: - inline ClosePortalStmt() : ClosePortalStmt(nullptr) {} - ~ClosePortalStmt() override; - explicit PROTOBUF_CONSTEXPR ClosePortalStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ClosePortalStmt(const ClosePortalStmt& from); - ClosePortalStmt(ClosePortalStmt&& from) noexcept - : ClosePortalStmt() { - *this = ::std::move(from); - } - - inline ClosePortalStmt& operator=(const ClosePortalStmt& from) { - CopyFrom(from); - return *this; - } - inline ClosePortalStmt& operator=(ClosePortalStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ClosePortalStmt& default_instance() { - return *internal_default_instance(); - } - static inline const ClosePortalStmt* internal_default_instance() { - return reinterpret_cast( - &_ClosePortalStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 79; - - friend void swap(ClosePortalStmt& a, ClosePortalStmt& b) { - a.Swap(&b); - } - inline void Swap(ClosePortalStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ClosePortalStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ClosePortalStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ClosePortalStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ClosePortalStmt& from) { - ClosePortalStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ClosePortalStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ClosePortalStmt"; - } - protected: - explicit ClosePortalStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPortalnameFieldNumber = 1, - }; - // string portalname = 1 [json_name = "portalname"]; - void clear_portalname(); - const std::string& portalname() const; - template - void set_portalname(ArgT0&& arg0, ArgT... args); - std::string* mutable_portalname(); - PROTOBUF_NODISCARD std::string* release_portalname(); - void set_allocated_portalname(std::string* portalname); - private: - const std::string& _internal_portalname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_portalname(const std::string& value); - std::string* _internal_mutable_portalname(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.ClosePortalStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr portalname_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ClusterStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ClusterStmt) */ { - public: - inline ClusterStmt() : ClusterStmt(nullptr) {} - ~ClusterStmt() override; - explicit PROTOBUF_CONSTEXPR ClusterStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ClusterStmt(const ClusterStmt& from); - ClusterStmt(ClusterStmt&& from) noexcept - : ClusterStmt() { - *this = ::std::move(from); - } - - inline ClusterStmt& operator=(const ClusterStmt& from) { - CopyFrom(from); - return *this; - } - inline ClusterStmt& operator=(ClusterStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ClusterStmt& default_instance() { - return *internal_default_instance(); - } - static inline const ClusterStmt* internal_default_instance() { - return reinterpret_cast( - &_ClusterStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 80; - - friend void swap(ClusterStmt& a, ClusterStmt& b) { - a.Swap(&b); - } - inline void Swap(ClusterStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ClusterStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ClusterStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ClusterStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ClusterStmt& from) { - ClusterStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ClusterStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ClusterStmt"; - } - protected: - explicit ClusterStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kParamsFieldNumber = 3, - kIndexnameFieldNumber = 2, - kRelationFieldNumber = 1, - }; - // repeated .pg_query.Node params = 3 [json_name = "params"]; - int params_size() const; - private: - int _internal_params_size() const; - public: - void clear_params(); - ::pg_query::Node* mutable_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_params(); - private: - const ::pg_query::Node& _internal_params(int index) const; - ::pg_query::Node* _internal_add_params(); - public: - const ::pg_query::Node& params(int index) const; - ::pg_query::Node* add_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - params() const; - - // string indexname = 2 [json_name = "indexname"]; - void clear_indexname(); - const std::string& indexname() const; - template - void set_indexname(ArgT0&& arg0, ArgT... args); - std::string* mutable_indexname(); - PROTOBUF_NODISCARD std::string* release_indexname(); - void set_allocated_indexname(std::string* indexname); - private: - const std::string& _internal_indexname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_indexname(const std::string& value); - std::string* _internal_mutable_indexname(); - public: - - // .pg_query.RangeVar relation = 1 [json_name = "relation"]; - bool has_relation() const; - private: - bool _internal_has_relation() const; - public: - void clear_relation(); - const ::pg_query::RangeVar& relation() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_relation(); - ::pg_query::RangeVar* mutable_relation(); - void set_allocated_relation(::pg_query::RangeVar* relation); - private: - const ::pg_query::RangeVar& _internal_relation() const; - ::pg_query::RangeVar* _internal_mutable_relation(); - public: - void unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation); - ::pg_query::RangeVar* unsafe_arena_release_relation(); - - // @@protoc_insertion_point(class_scope:pg_query.ClusterStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr indexname_; - ::pg_query::RangeVar* relation_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CopyStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CopyStmt) */ { - public: - inline CopyStmt() : CopyStmt(nullptr) {} - ~CopyStmt() override; - explicit PROTOBUF_CONSTEXPR CopyStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CopyStmt(const CopyStmt& from); - CopyStmt(CopyStmt&& from) noexcept - : CopyStmt() { - *this = ::std::move(from); - } - - inline CopyStmt& operator=(const CopyStmt& from) { - CopyFrom(from); - return *this; - } - inline CopyStmt& operator=(CopyStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CopyStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CopyStmt* internal_default_instance() { - return reinterpret_cast( - &_CopyStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 81; - - friend void swap(CopyStmt& a, CopyStmt& b) { - a.Swap(&b); - } - inline void Swap(CopyStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CopyStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CopyStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CopyStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CopyStmt& from) { - CopyStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CopyStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CopyStmt"; - } - protected: - explicit CopyStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAttlistFieldNumber = 3, - kOptionsFieldNumber = 7, - kFilenameFieldNumber = 6, - kRelationFieldNumber = 1, - kQueryFieldNumber = 2, - kWhereClauseFieldNumber = 8, - kIsFromFieldNumber = 4, - kIsProgramFieldNumber = 5, - }; - // repeated .pg_query.Node attlist = 3 [json_name = "attlist"]; - int attlist_size() const; - private: - int _internal_attlist_size() const; - public: - void clear_attlist(); - ::pg_query::Node* mutable_attlist(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_attlist(); - private: - const ::pg_query::Node& _internal_attlist(int index) const; - ::pg_query::Node* _internal_add_attlist(); - public: - const ::pg_query::Node& attlist(int index) const; - ::pg_query::Node* add_attlist(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - attlist() const; - - // repeated .pg_query.Node options = 7 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string filename = 6 [json_name = "filename"]; - void clear_filename(); - const std::string& filename() const; - template - void set_filename(ArgT0&& arg0, ArgT... args); - std::string* mutable_filename(); - PROTOBUF_NODISCARD std::string* release_filename(); - void set_allocated_filename(std::string* filename); - private: - const std::string& _internal_filename() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_filename(const std::string& value); - std::string* _internal_mutable_filename(); - public: - - // .pg_query.RangeVar relation = 1 [json_name = "relation"]; - bool has_relation() const; - private: - bool _internal_has_relation() const; - public: - void clear_relation(); - const ::pg_query::RangeVar& relation() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_relation(); - ::pg_query::RangeVar* mutable_relation(); - void set_allocated_relation(::pg_query::RangeVar* relation); - private: - const ::pg_query::RangeVar& _internal_relation() const; - ::pg_query::RangeVar* _internal_mutable_relation(); - public: - void unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation); - ::pg_query::RangeVar* unsafe_arena_release_relation(); - - // .pg_query.Node query = 2 [json_name = "query"]; - bool has_query() const; - private: - bool _internal_has_query() const; - public: - void clear_query(); - const ::pg_query::Node& query() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_query(); - ::pg_query::Node* mutable_query(); - void set_allocated_query(::pg_query::Node* query); - private: - const ::pg_query::Node& _internal_query() const; - ::pg_query::Node* _internal_mutable_query(); - public: - void unsafe_arena_set_allocated_query( - ::pg_query::Node* query); - ::pg_query::Node* unsafe_arena_release_query(); - - // .pg_query.Node where_clause = 8 [json_name = "whereClause"]; - bool has_where_clause() const; - private: - bool _internal_has_where_clause() const; - public: - void clear_where_clause(); - const ::pg_query::Node& where_clause() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_where_clause(); - ::pg_query::Node* mutable_where_clause(); - void set_allocated_where_clause(::pg_query::Node* where_clause); - private: - const ::pg_query::Node& _internal_where_clause() const; - ::pg_query::Node* _internal_mutable_where_clause(); - public: - void unsafe_arena_set_allocated_where_clause( - ::pg_query::Node* where_clause); - ::pg_query::Node* unsafe_arena_release_where_clause(); - - // bool is_from = 4 [json_name = "is_from"]; - void clear_is_from(); - bool is_from() const; - void set_is_from(bool value); - private: - bool _internal_is_from() const; - void _internal_set_is_from(bool value); - public: - - // bool is_program = 5 [json_name = "is_program"]; - void clear_is_program(); - bool is_program() const; - void set_is_program(bool value); - private: - bool _internal_is_program() const; - void _internal_set_is_program(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CopyStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > attlist_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr filename_; - ::pg_query::RangeVar* relation_; - ::pg_query::Node* query_; - ::pg_query::Node* where_clause_; - bool is_from_; - bool is_program_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateStmt) */ { - public: - inline CreateStmt() : CreateStmt(nullptr) {} - ~CreateStmt() override; - explicit PROTOBUF_CONSTEXPR CreateStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateStmt(const CreateStmt& from); - CreateStmt(CreateStmt&& from) noexcept - : CreateStmt() { - *this = ::std::move(from); - } - - inline CreateStmt& operator=(const CreateStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateStmt& operator=(CreateStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 82; - - friend void swap(CreateStmt& a, CreateStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateStmt& from) { - CreateStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateStmt"; - } - protected: - explicit CreateStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTableEltsFieldNumber = 2, - kInhRelationsFieldNumber = 3, - kConstraintsFieldNumber = 7, - kOptionsFieldNumber = 8, - kTablespacenameFieldNumber = 10, - kAccessMethodFieldNumber = 11, - kRelationFieldNumber = 1, - kPartboundFieldNumber = 4, - kPartspecFieldNumber = 5, - kOfTypenameFieldNumber = 6, - kOncommitFieldNumber = 9, - kIfNotExistsFieldNumber = 12, - }; - // repeated .pg_query.Node table_elts = 2 [json_name = "tableElts"]; - int table_elts_size() const; - private: - int _internal_table_elts_size() const; - public: - void clear_table_elts(); - ::pg_query::Node* mutable_table_elts(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_table_elts(); - private: - const ::pg_query::Node& _internal_table_elts(int index) const; - ::pg_query::Node* _internal_add_table_elts(); - public: - const ::pg_query::Node& table_elts(int index) const; - ::pg_query::Node* add_table_elts(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - table_elts() const; - - // repeated .pg_query.Node inh_relations = 3 [json_name = "inhRelations"]; - int inh_relations_size() const; - private: - int _internal_inh_relations_size() const; - public: - void clear_inh_relations(); - ::pg_query::Node* mutable_inh_relations(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_inh_relations(); - private: - const ::pg_query::Node& _internal_inh_relations(int index) const; - ::pg_query::Node* _internal_add_inh_relations(); - public: - const ::pg_query::Node& inh_relations(int index) const; - ::pg_query::Node* add_inh_relations(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - inh_relations() const; - - // repeated .pg_query.Node constraints = 7 [json_name = "constraints"]; - int constraints_size() const; - private: - int _internal_constraints_size() const; - public: - void clear_constraints(); - ::pg_query::Node* mutable_constraints(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_constraints(); - private: - const ::pg_query::Node& _internal_constraints(int index) const; - ::pg_query::Node* _internal_add_constraints(); - public: - const ::pg_query::Node& constraints(int index) const; - ::pg_query::Node* add_constraints(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - constraints() const; - - // repeated .pg_query.Node options = 8 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string tablespacename = 10 [json_name = "tablespacename"]; - void clear_tablespacename(); - const std::string& tablespacename() const; - template - void set_tablespacename(ArgT0&& arg0, ArgT... args); - std::string* mutable_tablespacename(); - PROTOBUF_NODISCARD std::string* release_tablespacename(); - void set_allocated_tablespacename(std::string* tablespacename); - private: - const std::string& _internal_tablespacename() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_tablespacename(const std::string& value); - std::string* _internal_mutable_tablespacename(); - public: - - // string access_method = 11 [json_name = "accessMethod"]; - void clear_access_method(); - const std::string& access_method() const; - template - void set_access_method(ArgT0&& arg0, ArgT... args); - std::string* mutable_access_method(); - PROTOBUF_NODISCARD std::string* release_access_method(); - void set_allocated_access_method(std::string* access_method); - private: - const std::string& _internal_access_method() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_access_method(const std::string& value); - std::string* _internal_mutable_access_method(); - public: - - // .pg_query.RangeVar relation = 1 [json_name = "relation"]; - bool has_relation() const; - private: - bool _internal_has_relation() const; - public: - void clear_relation(); - const ::pg_query::RangeVar& relation() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_relation(); - ::pg_query::RangeVar* mutable_relation(); - void set_allocated_relation(::pg_query::RangeVar* relation); - private: - const ::pg_query::RangeVar& _internal_relation() const; - ::pg_query::RangeVar* _internal_mutable_relation(); - public: - void unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation); - ::pg_query::RangeVar* unsafe_arena_release_relation(); - - // .pg_query.PartitionBoundSpec partbound = 4 [json_name = "partbound"]; - bool has_partbound() const; - private: - bool _internal_has_partbound() const; - public: - void clear_partbound(); - const ::pg_query::PartitionBoundSpec& partbound() const; - PROTOBUF_NODISCARD ::pg_query::PartitionBoundSpec* release_partbound(); - ::pg_query::PartitionBoundSpec* mutable_partbound(); - void set_allocated_partbound(::pg_query::PartitionBoundSpec* partbound); - private: - const ::pg_query::PartitionBoundSpec& _internal_partbound() const; - ::pg_query::PartitionBoundSpec* _internal_mutable_partbound(); - public: - void unsafe_arena_set_allocated_partbound( - ::pg_query::PartitionBoundSpec* partbound); - ::pg_query::PartitionBoundSpec* unsafe_arena_release_partbound(); - - // .pg_query.PartitionSpec partspec = 5 [json_name = "partspec"]; - bool has_partspec() const; - private: - bool _internal_has_partspec() const; - public: - void clear_partspec(); - const ::pg_query::PartitionSpec& partspec() const; - PROTOBUF_NODISCARD ::pg_query::PartitionSpec* release_partspec(); - ::pg_query::PartitionSpec* mutable_partspec(); - void set_allocated_partspec(::pg_query::PartitionSpec* partspec); - private: - const ::pg_query::PartitionSpec& _internal_partspec() const; - ::pg_query::PartitionSpec* _internal_mutable_partspec(); - public: - void unsafe_arena_set_allocated_partspec( - ::pg_query::PartitionSpec* partspec); - ::pg_query::PartitionSpec* unsafe_arena_release_partspec(); - - // .pg_query.TypeName of_typename = 6 [json_name = "ofTypename"]; - bool has_of_typename() const; - private: - bool _internal_has_of_typename() const; - public: - void clear_of_typename(); - const ::pg_query::TypeName& of_typename() const; - PROTOBUF_NODISCARD ::pg_query::TypeName* release_of_typename(); - ::pg_query::TypeName* mutable_of_typename(); - void set_allocated_of_typename(::pg_query::TypeName* of_typename); - private: - const ::pg_query::TypeName& _internal_of_typename() const; - ::pg_query::TypeName* _internal_mutable_of_typename(); - public: - void unsafe_arena_set_allocated_of_typename( - ::pg_query::TypeName* of_typename); - ::pg_query::TypeName* unsafe_arena_release_of_typename(); - - // .pg_query.OnCommitAction oncommit = 9 [json_name = "oncommit"]; - void clear_oncommit(); - ::pg_query::OnCommitAction oncommit() const; - void set_oncommit(::pg_query::OnCommitAction value); - private: - ::pg_query::OnCommitAction _internal_oncommit() const; - void _internal_set_oncommit(::pg_query::OnCommitAction value); - public: - - // bool if_not_exists = 12 [json_name = "if_not_exists"]; - void clear_if_not_exists(); - bool if_not_exists() const; - void set_if_not_exists(bool value); - private: - bool _internal_if_not_exists() const; - void _internal_set_if_not_exists(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreateStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > table_elts_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > inh_relations_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > constraints_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tablespacename_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr access_method_; - ::pg_query::RangeVar* relation_; - ::pg_query::PartitionBoundSpec* partbound_; - ::pg_query::PartitionSpec* partspec_; - ::pg_query::TypeName* of_typename_; - int oncommit_; - bool if_not_exists_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class DefineStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.DefineStmt) */ { - public: - inline DefineStmt() : DefineStmt(nullptr) {} - ~DefineStmt() override; - explicit PROTOBUF_CONSTEXPR DefineStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - DefineStmt(const DefineStmt& from); - DefineStmt(DefineStmt&& from) noexcept - : DefineStmt() { - *this = ::std::move(from); - } - - inline DefineStmt& operator=(const DefineStmt& from) { - CopyFrom(from); - return *this; - } - inline DefineStmt& operator=(DefineStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DefineStmt& default_instance() { - return *internal_default_instance(); - } - static inline const DefineStmt* internal_default_instance() { - return reinterpret_cast( - &_DefineStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 83; - - friend void swap(DefineStmt& a, DefineStmt& b) { - a.Swap(&b); - } - inline void Swap(DefineStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DefineStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DefineStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DefineStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DefineStmt& from) { - DefineStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DefineStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.DefineStmt"; - } - protected: - explicit DefineStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDefnamesFieldNumber = 3, - kArgsFieldNumber = 4, - kDefinitionFieldNumber = 5, - kKindFieldNumber = 1, - kOldstyleFieldNumber = 2, - kIfNotExistsFieldNumber = 6, - kReplaceFieldNumber = 7, - }; - // repeated .pg_query.Node defnames = 3 [json_name = "defnames"]; - int defnames_size() const; - private: - int _internal_defnames_size() const; - public: - void clear_defnames(); - ::pg_query::Node* mutable_defnames(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_defnames(); - private: - const ::pg_query::Node& _internal_defnames(int index) const; - ::pg_query::Node* _internal_add_defnames(); - public: - const ::pg_query::Node& defnames(int index) const; - ::pg_query::Node* add_defnames(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - defnames() const; - - // repeated .pg_query.Node args = 4 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // repeated .pg_query.Node definition = 5 [json_name = "definition"]; - int definition_size() const; - private: - int _internal_definition_size() const; - public: - void clear_definition(); - ::pg_query::Node* mutable_definition(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_definition(); - private: - const ::pg_query::Node& _internal_definition(int index) const; - ::pg_query::Node* _internal_add_definition(); - public: - const ::pg_query::Node& definition(int index) const; - ::pg_query::Node* add_definition(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - definition() const; - - // .pg_query.ObjectType kind = 1 [json_name = "kind"]; - void clear_kind(); - ::pg_query::ObjectType kind() const; - void set_kind(::pg_query::ObjectType value); - private: - ::pg_query::ObjectType _internal_kind() const; - void _internal_set_kind(::pg_query::ObjectType value); - public: - - // bool oldstyle = 2 [json_name = "oldstyle"]; - void clear_oldstyle(); - bool oldstyle() const; - void set_oldstyle(bool value); - private: - bool _internal_oldstyle() const; - void _internal_set_oldstyle(bool value); - public: - - // bool if_not_exists = 6 [json_name = "if_not_exists"]; - void clear_if_not_exists(); - bool if_not_exists() const; - void set_if_not_exists(bool value); - private: - bool _internal_if_not_exists() const; - void _internal_set_if_not_exists(bool value); - public: - - // bool replace = 7 [json_name = "replace"]; - void clear_replace(); - bool replace() const; - void set_replace(bool value); - private: - bool _internal_replace() const; - void _internal_set_replace(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.DefineStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > defnames_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > definition_; - int kind_; - bool oldstyle_; - bool if_not_exists_; - bool replace_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class DropStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.DropStmt) */ { - public: - inline DropStmt() : DropStmt(nullptr) {} - ~DropStmt() override; - explicit PROTOBUF_CONSTEXPR DropStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - DropStmt(const DropStmt& from); - DropStmt(DropStmt&& from) noexcept - : DropStmt() { - *this = ::std::move(from); - } - - inline DropStmt& operator=(const DropStmt& from) { - CopyFrom(from); - return *this; - } - inline DropStmt& operator=(DropStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DropStmt& default_instance() { - return *internal_default_instance(); - } - static inline const DropStmt* internal_default_instance() { - return reinterpret_cast( - &_DropStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 84; - - friend void swap(DropStmt& a, DropStmt& b) { - a.Swap(&b); - } - inline void Swap(DropStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DropStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DropStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DropStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DropStmt& from) { - DropStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DropStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.DropStmt"; - } - protected: - explicit DropStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kObjectsFieldNumber = 1, - kRemoveTypeFieldNumber = 2, - kBehaviorFieldNumber = 3, - kMissingOkFieldNumber = 4, - kConcurrentFieldNumber = 5, - }; - // repeated .pg_query.Node objects = 1 [json_name = "objects"]; - int objects_size() const; - private: - int _internal_objects_size() const; - public: - void clear_objects(); - ::pg_query::Node* mutable_objects(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_objects(); - private: - const ::pg_query::Node& _internal_objects(int index) const; - ::pg_query::Node* _internal_add_objects(); - public: - const ::pg_query::Node& objects(int index) const; - ::pg_query::Node* add_objects(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - objects() const; - - // .pg_query.ObjectType remove_type = 2 [json_name = "removeType"]; - void clear_remove_type(); - ::pg_query::ObjectType remove_type() const; - void set_remove_type(::pg_query::ObjectType value); - private: - ::pg_query::ObjectType _internal_remove_type() const; - void _internal_set_remove_type(::pg_query::ObjectType value); - public: - - // .pg_query.DropBehavior behavior = 3 [json_name = "behavior"]; - void clear_behavior(); - ::pg_query::DropBehavior behavior() const; - void set_behavior(::pg_query::DropBehavior value); - private: - ::pg_query::DropBehavior _internal_behavior() const; - void _internal_set_behavior(::pg_query::DropBehavior value); - public: - - // bool missing_ok = 4 [json_name = "missing_ok"]; - void clear_missing_ok(); - bool missing_ok() const; - void set_missing_ok(bool value); - private: - bool _internal_missing_ok() const; - void _internal_set_missing_ok(bool value); - public: - - // bool concurrent = 5 [json_name = "concurrent"]; - void clear_concurrent(); - bool concurrent() const; - void set_concurrent(bool value); - private: - bool _internal_concurrent() const; - void _internal_set_concurrent(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.DropStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > objects_; - int remove_type_; - int behavior_; - bool missing_ok_; - bool concurrent_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class TruncateStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.TruncateStmt) */ { - public: - inline TruncateStmt() : TruncateStmt(nullptr) {} - ~TruncateStmt() override; - explicit PROTOBUF_CONSTEXPR TruncateStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - TruncateStmt(const TruncateStmt& from); - TruncateStmt(TruncateStmt&& from) noexcept - : TruncateStmt() { - *this = ::std::move(from); - } - - inline TruncateStmt& operator=(const TruncateStmt& from) { - CopyFrom(from); - return *this; - } - inline TruncateStmt& operator=(TruncateStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TruncateStmt& default_instance() { - return *internal_default_instance(); - } - static inline const TruncateStmt* internal_default_instance() { - return reinterpret_cast( - &_TruncateStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 85; - - friend void swap(TruncateStmt& a, TruncateStmt& b) { - a.Swap(&b); - } - inline void Swap(TruncateStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TruncateStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TruncateStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const TruncateStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const TruncateStmt& from) { - TruncateStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TruncateStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.TruncateStmt"; - } - protected: - explicit TruncateStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRelationsFieldNumber = 1, - kRestartSeqsFieldNumber = 2, - kBehaviorFieldNumber = 3, - }; - // repeated .pg_query.Node relations = 1 [json_name = "relations"]; - int relations_size() const; - private: - int _internal_relations_size() const; - public: - void clear_relations(); - ::pg_query::Node* mutable_relations(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_relations(); - private: - const ::pg_query::Node& _internal_relations(int index) const; - ::pg_query::Node* _internal_add_relations(); - public: - const ::pg_query::Node& relations(int index) const; - ::pg_query::Node* add_relations(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - relations() const; - - // bool restart_seqs = 2 [json_name = "restart_seqs"]; - void clear_restart_seqs(); - bool restart_seqs() const; - void set_restart_seqs(bool value); - private: - bool _internal_restart_seqs() const; - void _internal_set_restart_seqs(bool value); - public: - - // .pg_query.DropBehavior behavior = 3 [json_name = "behavior"]; - void clear_behavior(); - ::pg_query::DropBehavior behavior() const; - void set_behavior(::pg_query::DropBehavior value); - private: - ::pg_query::DropBehavior _internal_behavior() const; - void _internal_set_behavior(::pg_query::DropBehavior value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.TruncateStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > relations_; - bool restart_seqs_; - int behavior_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CommentStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CommentStmt) */ { - public: - inline CommentStmt() : CommentStmt(nullptr) {} - ~CommentStmt() override; - explicit PROTOBUF_CONSTEXPR CommentStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CommentStmt(const CommentStmt& from); - CommentStmt(CommentStmt&& from) noexcept - : CommentStmt() { - *this = ::std::move(from); - } - - inline CommentStmt& operator=(const CommentStmt& from) { - CopyFrom(from); - return *this; - } - inline CommentStmt& operator=(CommentStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CommentStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CommentStmt* internal_default_instance() { - return reinterpret_cast( - &_CommentStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 86; - - friend void swap(CommentStmt& a, CommentStmt& b) { - a.Swap(&b); - } - inline void Swap(CommentStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CommentStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CommentStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CommentStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CommentStmt& from) { - CommentStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CommentStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CommentStmt"; - } - protected: - explicit CommentStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCommentFieldNumber = 3, - kObjectFieldNumber = 2, - kObjtypeFieldNumber = 1, - }; - // string comment = 3 [json_name = "comment"]; - void clear_comment(); - const std::string& comment() const; - template - void set_comment(ArgT0&& arg0, ArgT... args); - std::string* mutable_comment(); - PROTOBUF_NODISCARD std::string* release_comment(); - void set_allocated_comment(std::string* comment); - private: - const std::string& _internal_comment() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_comment(const std::string& value); - std::string* _internal_mutable_comment(); - public: - - // .pg_query.Node object = 2 [json_name = "object"]; - bool has_object() const; - private: - bool _internal_has_object() const; - public: - void clear_object(); - const ::pg_query::Node& object() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_object(); - ::pg_query::Node* mutable_object(); - void set_allocated_object(::pg_query::Node* object); - private: - const ::pg_query::Node& _internal_object() const; - ::pg_query::Node* _internal_mutable_object(); - public: - void unsafe_arena_set_allocated_object( - ::pg_query::Node* object); - ::pg_query::Node* unsafe_arena_release_object(); - - // .pg_query.ObjectType objtype = 1 [json_name = "objtype"]; - void clear_objtype(); - ::pg_query::ObjectType objtype() const; - void set_objtype(::pg_query::ObjectType value); - private: - ::pg_query::ObjectType _internal_objtype() const; - void _internal_set_objtype(::pg_query::ObjectType value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CommentStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_; - ::pg_query::Node* object_; - int objtype_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class FetchStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.FetchStmt) */ { - public: - inline FetchStmt() : FetchStmt(nullptr) {} - ~FetchStmt() override; - explicit PROTOBUF_CONSTEXPR FetchStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - FetchStmt(const FetchStmt& from); - FetchStmt(FetchStmt&& from) noexcept - : FetchStmt() { - *this = ::std::move(from); - } - - inline FetchStmt& operator=(const FetchStmt& from) { - CopyFrom(from); - return *this; - } - inline FetchStmt& operator=(FetchStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const FetchStmt& default_instance() { - return *internal_default_instance(); - } - static inline const FetchStmt* internal_default_instance() { - return reinterpret_cast( - &_FetchStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 87; - - friend void swap(FetchStmt& a, FetchStmt& b) { - a.Swap(&b); - } - inline void Swap(FetchStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FetchStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - FetchStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const FetchStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const FetchStmt& from) { - FetchStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FetchStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.FetchStmt"; - } - protected: - explicit FetchStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPortalnameFieldNumber = 3, - kHowManyFieldNumber = 2, - kDirectionFieldNumber = 1, - kIsmoveFieldNumber = 4, - }; - // string portalname = 3 [json_name = "portalname"]; - void clear_portalname(); - const std::string& portalname() const; - template - void set_portalname(ArgT0&& arg0, ArgT... args); - std::string* mutable_portalname(); - PROTOBUF_NODISCARD std::string* release_portalname(); - void set_allocated_portalname(std::string* portalname); - private: - const std::string& _internal_portalname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_portalname(const std::string& value); - std::string* _internal_mutable_portalname(); - public: - - // int64 how_many = 2 [json_name = "howMany"]; - void clear_how_many(); - int64_t how_many() const; - void set_how_many(int64_t value); - private: - int64_t _internal_how_many() const; - void _internal_set_how_many(int64_t value); - public: - - // .pg_query.FetchDirection direction = 1 [json_name = "direction"]; - void clear_direction(); - ::pg_query::FetchDirection direction() const; - void set_direction(::pg_query::FetchDirection value); - private: - ::pg_query::FetchDirection _internal_direction() const; - void _internal_set_direction(::pg_query::FetchDirection value); - public: - - // bool ismove = 4 [json_name = "ismove"]; - void clear_ismove(); - bool ismove() const; - void set_ismove(bool value); - private: - bool _internal_ismove() const; - void _internal_set_ismove(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.FetchStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr portalname_; - int64_t how_many_; - int direction_; - bool ismove_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class IndexStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.IndexStmt) */ { - public: - inline IndexStmt() : IndexStmt(nullptr) {} - ~IndexStmt() override; - explicit PROTOBUF_CONSTEXPR IndexStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - IndexStmt(const IndexStmt& from); - IndexStmt(IndexStmt&& from) noexcept - : IndexStmt() { - *this = ::std::move(from); - } - - inline IndexStmt& operator=(const IndexStmt& from) { - CopyFrom(from); - return *this; - } - inline IndexStmt& operator=(IndexStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const IndexStmt& default_instance() { - return *internal_default_instance(); - } - static inline const IndexStmt* internal_default_instance() { - return reinterpret_cast( - &_IndexStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 88; - - friend void swap(IndexStmt& a, IndexStmt& b) { - a.Swap(&b); - } - inline void Swap(IndexStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(IndexStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - IndexStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const IndexStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const IndexStmt& from) { - IndexStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(IndexStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.IndexStmt"; - } - protected: - explicit IndexStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIndexParamsFieldNumber = 5, - kIndexIncludingParamsFieldNumber = 6, - kOptionsFieldNumber = 7, - kExcludeOpNamesFieldNumber = 9, - kIdxnameFieldNumber = 1, - kAccessMethodFieldNumber = 3, - kTableSpaceFieldNumber = 4, - kIdxcommentFieldNumber = 10, - kRelationFieldNumber = 2, - kWhereClauseFieldNumber = 8, - kIndexOidFieldNumber = 11, - kOldNodeFieldNumber = 12, - kOldCreateSubidFieldNumber = 13, - kOldFirstRelfilenodeSubidFieldNumber = 14, - kUniqueFieldNumber = 15, - kNullsNotDistinctFieldNumber = 16, - kPrimaryFieldNumber = 17, - kIsconstraintFieldNumber = 18, - kDeferrableFieldNumber = 19, - kInitdeferredFieldNumber = 20, - kTransformedFieldNumber = 21, - kConcurrentFieldNumber = 22, - kIfNotExistsFieldNumber = 23, - kResetDefaultTblspcFieldNumber = 24, - }; - // repeated .pg_query.Node index_params = 5 [json_name = "indexParams"]; - int index_params_size() const; - private: - int _internal_index_params_size() const; - public: - void clear_index_params(); - ::pg_query::Node* mutable_index_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_index_params(); - private: - const ::pg_query::Node& _internal_index_params(int index) const; - ::pg_query::Node* _internal_add_index_params(); - public: - const ::pg_query::Node& index_params(int index) const; - ::pg_query::Node* add_index_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - index_params() const; - - // repeated .pg_query.Node index_including_params = 6 [json_name = "indexIncludingParams"]; - int index_including_params_size() const; - private: - int _internal_index_including_params_size() const; - public: - void clear_index_including_params(); - ::pg_query::Node* mutable_index_including_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_index_including_params(); - private: - const ::pg_query::Node& _internal_index_including_params(int index) const; - ::pg_query::Node* _internal_add_index_including_params(); - public: - const ::pg_query::Node& index_including_params(int index) const; - ::pg_query::Node* add_index_including_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - index_including_params() const; - - // repeated .pg_query.Node options = 7 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // repeated .pg_query.Node exclude_op_names = 9 [json_name = "excludeOpNames"]; - int exclude_op_names_size() const; - private: - int _internal_exclude_op_names_size() const; - public: - void clear_exclude_op_names(); - ::pg_query::Node* mutable_exclude_op_names(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_exclude_op_names(); - private: - const ::pg_query::Node& _internal_exclude_op_names(int index) const; - ::pg_query::Node* _internal_add_exclude_op_names(); - public: - const ::pg_query::Node& exclude_op_names(int index) const; - ::pg_query::Node* add_exclude_op_names(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - exclude_op_names() const; - - // string idxname = 1 [json_name = "idxname"]; - void clear_idxname(); - const std::string& idxname() const; - template - void set_idxname(ArgT0&& arg0, ArgT... args); - std::string* mutable_idxname(); - PROTOBUF_NODISCARD std::string* release_idxname(); - void set_allocated_idxname(std::string* idxname); - private: - const std::string& _internal_idxname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_idxname(const std::string& value); - std::string* _internal_mutable_idxname(); - public: - - // string access_method = 3 [json_name = "accessMethod"]; - void clear_access_method(); - const std::string& access_method() const; - template - void set_access_method(ArgT0&& arg0, ArgT... args); - std::string* mutable_access_method(); - PROTOBUF_NODISCARD std::string* release_access_method(); - void set_allocated_access_method(std::string* access_method); - private: - const std::string& _internal_access_method() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_access_method(const std::string& value); - std::string* _internal_mutable_access_method(); - public: - - // string table_space = 4 [json_name = "tableSpace"]; - void clear_table_space(); - const std::string& table_space() const; - template - void set_table_space(ArgT0&& arg0, ArgT... args); - std::string* mutable_table_space(); - PROTOBUF_NODISCARD std::string* release_table_space(); - void set_allocated_table_space(std::string* table_space); - private: - const std::string& _internal_table_space() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_table_space(const std::string& value); - std::string* _internal_mutable_table_space(); - public: - - // string idxcomment = 10 [json_name = "idxcomment"]; - void clear_idxcomment(); - const std::string& idxcomment() const; - template - void set_idxcomment(ArgT0&& arg0, ArgT... args); - std::string* mutable_idxcomment(); - PROTOBUF_NODISCARD std::string* release_idxcomment(); - void set_allocated_idxcomment(std::string* idxcomment); - private: - const std::string& _internal_idxcomment() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_idxcomment(const std::string& value); - std::string* _internal_mutable_idxcomment(); - public: - - // .pg_query.RangeVar relation = 2 [json_name = "relation"]; - bool has_relation() const; - private: - bool _internal_has_relation() const; - public: - void clear_relation(); - const ::pg_query::RangeVar& relation() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_relation(); - ::pg_query::RangeVar* mutable_relation(); - void set_allocated_relation(::pg_query::RangeVar* relation); - private: - const ::pg_query::RangeVar& _internal_relation() const; - ::pg_query::RangeVar* _internal_mutable_relation(); - public: - void unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation); - ::pg_query::RangeVar* unsafe_arena_release_relation(); - - // .pg_query.Node where_clause = 8 [json_name = "whereClause"]; - bool has_where_clause() const; - private: - bool _internal_has_where_clause() const; - public: - void clear_where_clause(); - const ::pg_query::Node& where_clause() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_where_clause(); - ::pg_query::Node* mutable_where_clause(); - void set_allocated_where_clause(::pg_query::Node* where_clause); - private: - const ::pg_query::Node& _internal_where_clause() const; - ::pg_query::Node* _internal_mutable_where_clause(); - public: - void unsafe_arena_set_allocated_where_clause( - ::pg_query::Node* where_clause); - ::pg_query::Node* unsafe_arena_release_where_clause(); - - // uint32 index_oid = 11 [json_name = "indexOid"]; - void clear_index_oid(); - uint32_t index_oid() const; - void set_index_oid(uint32_t value); - private: - uint32_t _internal_index_oid() const; - void _internal_set_index_oid(uint32_t value); - public: - - // uint32 old_node = 12 [json_name = "oldNode"]; - void clear_old_node(); - uint32_t old_node() const; - void set_old_node(uint32_t value); - private: - uint32_t _internal_old_node() const; - void _internal_set_old_node(uint32_t value); - public: - - // uint32 old_create_subid = 13 [json_name = "oldCreateSubid"]; - void clear_old_create_subid(); - uint32_t old_create_subid() const; - void set_old_create_subid(uint32_t value); - private: - uint32_t _internal_old_create_subid() const; - void _internal_set_old_create_subid(uint32_t value); - public: - - // uint32 old_first_relfilenode_subid = 14 [json_name = "oldFirstRelfilenodeSubid"]; - void clear_old_first_relfilenode_subid(); - uint32_t old_first_relfilenode_subid() const; - void set_old_first_relfilenode_subid(uint32_t value); - private: - uint32_t _internal_old_first_relfilenode_subid() const; - void _internal_set_old_first_relfilenode_subid(uint32_t value); - public: - - // bool unique = 15 [json_name = "unique"]; - void clear_unique(); - bool unique() const; - void set_unique(bool value); - private: - bool _internal_unique() const; - void _internal_set_unique(bool value); - public: - - // bool nulls_not_distinct = 16 [json_name = "nulls_not_distinct"]; - void clear_nulls_not_distinct(); - bool nulls_not_distinct() const; - void set_nulls_not_distinct(bool value); - private: - bool _internal_nulls_not_distinct() const; - void _internal_set_nulls_not_distinct(bool value); - public: - - // bool primary = 17 [json_name = "primary"]; - void clear_primary(); - bool primary() const; - void set_primary(bool value); - private: - bool _internal_primary() const; - void _internal_set_primary(bool value); - public: - - // bool isconstraint = 18 [json_name = "isconstraint"]; - void clear_isconstraint(); - bool isconstraint() const; - void set_isconstraint(bool value); - private: - bool _internal_isconstraint() const; - void _internal_set_isconstraint(bool value); - public: - - // bool deferrable = 19 [json_name = "deferrable"]; - void clear_deferrable(); - bool deferrable() const; - void set_deferrable(bool value); - private: - bool _internal_deferrable() const; - void _internal_set_deferrable(bool value); - public: - - // bool initdeferred = 20 [json_name = "initdeferred"]; - void clear_initdeferred(); - bool initdeferred() const; - void set_initdeferred(bool value); - private: - bool _internal_initdeferred() const; - void _internal_set_initdeferred(bool value); - public: - - // bool transformed = 21 [json_name = "transformed"]; - void clear_transformed(); - bool transformed() const; - void set_transformed(bool value); - private: - bool _internal_transformed() const; - void _internal_set_transformed(bool value); - public: - - // bool concurrent = 22 [json_name = "concurrent"]; - void clear_concurrent(); - bool concurrent() const; - void set_concurrent(bool value); - private: - bool _internal_concurrent() const; - void _internal_set_concurrent(bool value); - public: - - // bool if_not_exists = 23 [json_name = "if_not_exists"]; - void clear_if_not_exists(); - bool if_not_exists() const; - void set_if_not_exists(bool value); - private: - bool _internal_if_not_exists() const; - void _internal_set_if_not_exists(bool value); - public: - - // bool reset_default_tblspc = 24 [json_name = "reset_default_tblspc"]; - void clear_reset_default_tblspc(); - bool reset_default_tblspc() const; - void set_reset_default_tblspc(bool value); - private: - bool _internal_reset_default_tblspc() const; - void _internal_set_reset_default_tblspc(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.IndexStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > index_params_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > index_including_params_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > exclude_op_names_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr idxname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr access_method_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_space_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr idxcomment_; - ::pg_query::RangeVar* relation_; - ::pg_query::Node* where_clause_; - uint32_t index_oid_; - uint32_t old_node_; - uint32_t old_create_subid_; - uint32_t old_first_relfilenode_subid_; - bool unique_; - bool nulls_not_distinct_; - bool primary_; - bool isconstraint_; - bool deferrable_; - bool initdeferred_; - bool transformed_; - bool concurrent_; - bool if_not_exists_; - bool reset_default_tblspc_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateFunctionStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateFunctionStmt) */ { - public: - inline CreateFunctionStmt() : CreateFunctionStmt(nullptr) {} - ~CreateFunctionStmt() override; - explicit PROTOBUF_CONSTEXPR CreateFunctionStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateFunctionStmt(const CreateFunctionStmt& from); - CreateFunctionStmt(CreateFunctionStmt&& from) noexcept - : CreateFunctionStmt() { - *this = ::std::move(from); - } - - inline CreateFunctionStmt& operator=(const CreateFunctionStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateFunctionStmt& operator=(CreateFunctionStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateFunctionStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateFunctionStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateFunctionStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 89; - - friend void swap(CreateFunctionStmt& a, CreateFunctionStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateFunctionStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateFunctionStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateFunctionStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateFunctionStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateFunctionStmt& from) { - CreateFunctionStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateFunctionStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateFunctionStmt"; - } - protected: - explicit CreateFunctionStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFuncnameFieldNumber = 3, - kParametersFieldNumber = 4, - kOptionsFieldNumber = 6, - kReturnTypeFieldNumber = 5, - kSqlBodyFieldNumber = 7, - kIsProcedureFieldNumber = 1, - kReplaceFieldNumber = 2, - }; - // repeated .pg_query.Node funcname = 3 [json_name = "funcname"]; - int funcname_size() const; - private: - int _internal_funcname_size() const; - public: - void clear_funcname(); - ::pg_query::Node* mutable_funcname(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_funcname(); - private: - const ::pg_query::Node& _internal_funcname(int index) const; - ::pg_query::Node* _internal_add_funcname(); - public: - const ::pg_query::Node& funcname(int index) const; - ::pg_query::Node* add_funcname(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - funcname() const; - - // repeated .pg_query.Node parameters = 4 [json_name = "parameters"]; - int parameters_size() const; - private: - int _internal_parameters_size() const; - public: - void clear_parameters(); - ::pg_query::Node* mutable_parameters(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_parameters(); - private: - const ::pg_query::Node& _internal_parameters(int index) const; - ::pg_query::Node* _internal_add_parameters(); - public: - const ::pg_query::Node& parameters(int index) const; - ::pg_query::Node* add_parameters(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - parameters() const; - - // repeated .pg_query.Node options = 6 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // .pg_query.TypeName return_type = 5 [json_name = "returnType"]; - bool has_return_type() const; - private: - bool _internal_has_return_type() const; - public: - void clear_return_type(); - const ::pg_query::TypeName& return_type() const; - PROTOBUF_NODISCARD ::pg_query::TypeName* release_return_type(); - ::pg_query::TypeName* mutable_return_type(); - void set_allocated_return_type(::pg_query::TypeName* return_type); - private: - const ::pg_query::TypeName& _internal_return_type() const; - ::pg_query::TypeName* _internal_mutable_return_type(); - public: - void unsafe_arena_set_allocated_return_type( - ::pg_query::TypeName* return_type); - ::pg_query::TypeName* unsafe_arena_release_return_type(); - - // .pg_query.Node sql_body = 7 [json_name = "sql_body"]; - bool has_sql_body() const; - private: - bool _internal_has_sql_body() const; - public: - void clear_sql_body(); - const ::pg_query::Node& sql_body() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_sql_body(); - ::pg_query::Node* mutable_sql_body(); - void set_allocated_sql_body(::pg_query::Node* sql_body); - private: - const ::pg_query::Node& _internal_sql_body() const; - ::pg_query::Node* _internal_mutable_sql_body(); - public: - void unsafe_arena_set_allocated_sql_body( - ::pg_query::Node* sql_body); - ::pg_query::Node* unsafe_arena_release_sql_body(); - - // bool is_procedure = 1 [json_name = "is_procedure"]; - void clear_is_procedure(); - bool is_procedure() const; - void set_is_procedure(bool value); - private: - bool _internal_is_procedure() const; - void _internal_set_is_procedure(bool value); - public: - - // bool replace = 2 [json_name = "replace"]; - void clear_replace(); - bool replace() const; - void set_replace(bool value); - private: - bool _internal_replace() const; - void _internal_set_replace(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreateFunctionStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > funcname_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > parameters_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::pg_query::TypeName* return_type_; - ::pg_query::Node* sql_body_; - bool is_procedure_; - bool replace_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterFunctionStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterFunctionStmt) */ { - public: - inline AlterFunctionStmt() : AlterFunctionStmt(nullptr) {} - ~AlterFunctionStmt() override; - explicit PROTOBUF_CONSTEXPR AlterFunctionStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterFunctionStmt(const AlterFunctionStmt& from); - AlterFunctionStmt(AlterFunctionStmt&& from) noexcept - : AlterFunctionStmt() { - *this = ::std::move(from); - } - - inline AlterFunctionStmt& operator=(const AlterFunctionStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterFunctionStmt& operator=(AlterFunctionStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterFunctionStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterFunctionStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterFunctionStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 90; - - friend void swap(AlterFunctionStmt& a, AlterFunctionStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterFunctionStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterFunctionStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterFunctionStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterFunctionStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterFunctionStmt& from) { - AlterFunctionStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterFunctionStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterFunctionStmt"; - } - protected: - explicit AlterFunctionStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionsFieldNumber = 3, - kFuncFieldNumber = 2, - kObjtypeFieldNumber = 1, - }; - // repeated .pg_query.Node actions = 3 [json_name = "actions"]; - int actions_size() const; - private: - int _internal_actions_size() const; - public: - void clear_actions(); - ::pg_query::Node* mutable_actions(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_actions(); - private: - const ::pg_query::Node& _internal_actions(int index) const; - ::pg_query::Node* _internal_add_actions(); - public: - const ::pg_query::Node& actions(int index) const; - ::pg_query::Node* add_actions(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - actions() const; - - // .pg_query.ObjectWithArgs func = 2 [json_name = "func"]; - bool has_func() const; - private: - bool _internal_has_func() const; - public: - void clear_func(); - const ::pg_query::ObjectWithArgs& func() const; - PROTOBUF_NODISCARD ::pg_query::ObjectWithArgs* release_func(); - ::pg_query::ObjectWithArgs* mutable_func(); - void set_allocated_func(::pg_query::ObjectWithArgs* func); - private: - const ::pg_query::ObjectWithArgs& _internal_func() const; - ::pg_query::ObjectWithArgs* _internal_mutable_func(); - public: - void unsafe_arena_set_allocated_func( - ::pg_query::ObjectWithArgs* func); - ::pg_query::ObjectWithArgs* unsafe_arena_release_func(); - - // .pg_query.ObjectType objtype = 1 [json_name = "objtype"]; - void clear_objtype(); - ::pg_query::ObjectType objtype() const; - void set_objtype(::pg_query::ObjectType value); - private: - ::pg_query::ObjectType _internal_objtype() const; - void _internal_set_objtype(::pg_query::ObjectType value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterFunctionStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > actions_; - ::pg_query::ObjectWithArgs* func_; - int objtype_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class DoStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.DoStmt) */ { - public: - inline DoStmt() : DoStmt(nullptr) {} - ~DoStmt() override; - explicit PROTOBUF_CONSTEXPR DoStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - DoStmt(const DoStmt& from); - DoStmt(DoStmt&& from) noexcept - : DoStmt() { - *this = ::std::move(from); - } - - inline DoStmt& operator=(const DoStmt& from) { - CopyFrom(from); - return *this; - } - inline DoStmt& operator=(DoStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DoStmt& default_instance() { - return *internal_default_instance(); - } - static inline const DoStmt* internal_default_instance() { - return reinterpret_cast( - &_DoStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 91; - - friend void swap(DoStmt& a, DoStmt& b) { - a.Swap(&b); - } - inline void Swap(DoStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DoStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DoStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DoStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DoStmt& from) { - DoStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DoStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.DoStmt"; - } - protected: - explicit DoStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArgsFieldNumber = 1, - }; - // repeated .pg_query.Node args = 1 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // @@protoc_insertion_point(class_scope:pg_query.DoStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class RenameStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.RenameStmt) */ { - public: - inline RenameStmt() : RenameStmt(nullptr) {} - ~RenameStmt() override; - explicit PROTOBUF_CONSTEXPR RenameStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - RenameStmt(const RenameStmt& from); - RenameStmt(RenameStmt&& from) noexcept - : RenameStmt() { - *this = ::std::move(from); - } - - inline RenameStmt& operator=(const RenameStmt& from) { - CopyFrom(from); - return *this; - } - inline RenameStmt& operator=(RenameStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RenameStmt& default_instance() { - return *internal_default_instance(); - } - static inline const RenameStmt* internal_default_instance() { - return reinterpret_cast( - &_RenameStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 92; - - friend void swap(RenameStmt& a, RenameStmt& b) { - a.Swap(&b); - } - inline void Swap(RenameStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RenameStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RenameStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RenameStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RenameStmt& from) { - RenameStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RenameStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.RenameStmt"; - } - protected: - explicit RenameStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSubnameFieldNumber = 5, - kNewnameFieldNumber = 6, - kRelationFieldNumber = 3, - kObjectFieldNumber = 4, - kRenameTypeFieldNumber = 1, - kRelationTypeFieldNumber = 2, - kBehaviorFieldNumber = 7, - kMissingOkFieldNumber = 8, - }; - // string subname = 5 [json_name = "subname"]; - void clear_subname(); - const std::string& subname() const; - template - void set_subname(ArgT0&& arg0, ArgT... args); - std::string* mutable_subname(); - PROTOBUF_NODISCARD std::string* release_subname(); - void set_allocated_subname(std::string* subname); - private: - const std::string& _internal_subname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_subname(const std::string& value); - std::string* _internal_mutable_subname(); - public: - - // string newname = 6 [json_name = "newname"]; - void clear_newname(); - const std::string& newname() const; - template - void set_newname(ArgT0&& arg0, ArgT... args); - std::string* mutable_newname(); - PROTOBUF_NODISCARD std::string* release_newname(); - void set_allocated_newname(std::string* newname); - private: - const std::string& _internal_newname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_newname(const std::string& value); - std::string* _internal_mutable_newname(); - public: - - // .pg_query.RangeVar relation = 3 [json_name = "relation"]; - bool has_relation() const; - private: - bool _internal_has_relation() const; - public: - void clear_relation(); - const ::pg_query::RangeVar& relation() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_relation(); - ::pg_query::RangeVar* mutable_relation(); - void set_allocated_relation(::pg_query::RangeVar* relation); - private: - const ::pg_query::RangeVar& _internal_relation() const; - ::pg_query::RangeVar* _internal_mutable_relation(); - public: - void unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation); - ::pg_query::RangeVar* unsafe_arena_release_relation(); - - // .pg_query.Node object = 4 [json_name = "object"]; - bool has_object() const; - private: - bool _internal_has_object() const; - public: - void clear_object(); - const ::pg_query::Node& object() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_object(); - ::pg_query::Node* mutable_object(); - void set_allocated_object(::pg_query::Node* object); - private: - const ::pg_query::Node& _internal_object() const; - ::pg_query::Node* _internal_mutable_object(); - public: - void unsafe_arena_set_allocated_object( - ::pg_query::Node* object); - ::pg_query::Node* unsafe_arena_release_object(); - - // .pg_query.ObjectType rename_type = 1 [json_name = "renameType"]; - void clear_rename_type(); - ::pg_query::ObjectType rename_type() const; - void set_rename_type(::pg_query::ObjectType value); - private: - ::pg_query::ObjectType _internal_rename_type() const; - void _internal_set_rename_type(::pg_query::ObjectType value); - public: - - // .pg_query.ObjectType relation_type = 2 [json_name = "relationType"]; - void clear_relation_type(); - ::pg_query::ObjectType relation_type() const; - void set_relation_type(::pg_query::ObjectType value); - private: - ::pg_query::ObjectType _internal_relation_type() const; - void _internal_set_relation_type(::pg_query::ObjectType value); - public: - - // .pg_query.DropBehavior behavior = 7 [json_name = "behavior"]; - void clear_behavior(); - ::pg_query::DropBehavior behavior() const; - void set_behavior(::pg_query::DropBehavior value); - private: - ::pg_query::DropBehavior _internal_behavior() const; - void _internal_set_behavior(::pg_query::DropBehavior value); - public: - - // bool missing_ok = 8 [json_name = "missing_ok"]; - void clear_missing_ok(); - bool missing_ok() const; - void set_missing_ok(bool value); - private: - bool _internal_missing_ok() const; - void _internal_set_missing_ok(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.RenameStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr newname_; - ::pg_query::RangeVar* relation_; - ::pg_query::Node* object_; - int rename_type_; - int relation_type_; - int behavior_; - bool missing_ok_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class RuleStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.RuleStmt) */ { - public: - inline RuleStmt() : RuleStmt(nullptr) {} - ~RuleStmt() override; - explicit PROTOBUF_CONSTEXPR RuleStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - RuleStmt(const RuleStmt& from); - RuleStmt(RuleStmt&& from) noexcept - : RuleStmt() { - *this = ::std::move(from); - } - - inline RuleStmt& operator=(const RuleStmt& from) { - CopyFrom(from); - return *this; - } - inline RuleStmt& operator=(RuleStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RuleStmt& default_instance() { - return *internal_default_instance(); - } - static inline const RuleStmt* internal_default_instance() { - return reinterpret_cast( - &_RuleStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 93; - - friend void swap(RuleStmt& a, RuleStmt& b) { - a.Swap(&b); - } - inline void Swap(RuleStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RuleStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RuleStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RuleStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RuleStmt& from) { - RuleStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RuleStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.RuleStmt"; - } - protected: - explicit RuleStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionsFieldNumber = 6, - kRulenameFieldNumber = 2, - kRelationFieldNumber = 1, - kWhereClauseFieldNumber = 3, - kEventFieldNumber = 4, - kInsteadFieldNumber = 5, - kReplaceFieldNumber = 7, - }; - // repeated .pg_query.Node actions = 6 [json_name = "actions"]; - int actions_size() const; - private: - int _internal_actions_size() const; - public: - void clear_actions(); - ::pg_query::Node* mutable_actions(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_actions(); - private: - const ::pg_query::Node& _internal_actions(int index) const; - ::pg_query::Node* _internal_add_actions(); - public: - const ::pg_query::Node& actions(int index) const; - ::pg_query::Node* add_actions(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - actions() const; - - // string rulename = 2 [json_name = "rulename"]; - void clear_rulename(); - const std::string& rulename() const; - template - void set_rulename(ArgT0&& arg0, ArgT... args); - std::string* mutable_rulename(); - PROTOBUF_NODISCARD std::string* release_rulename(); - void set_allocated_rulename(std::string* rulename); - private: - const std::string& _internal_rulename() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_rulename(const std::string& value); - std::string* _internal_mutable_rulename(); - public: - - // .pg_query.RangeVar relation = 1 [json_name = "relation"]; - bool has_relation() const; - private: - bool _internal_has_relation() const; - public: - void clear_relation(); - const ::pg_query::RangeVar& relation() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_relation(); - ::pg_query::RangeVar* mutable_relation(); - void set_allocated_relation(::pg_query::RangeVar* relation); - private: - const ::pg_query::RangeVar& _internal_relation() const; - ::pg_query::RangeVar* _internal_mutable_relation(); - public: - void unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation); - ::pg_query::RangeVar* unsafe_arena_release_relation(); - - // .pg_query.Node where_clause = 3 [json_name = "whereClause"]; - bool has_where_clause() const; - private: - bool _internal_has_where_clause() const; - public: - void clear_where_clause(); - const ::pg_query::Node& where_clause() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_where_clause(); - ::pg_query::Node* mutable_where_clause(); - void set_allocated_where_clause(::pg_query::Node* where_clause); - private: - const ::pg_query::Node& _internal_where_clause() const; - ::pg_query::Node* _internal_mutable_where_clause(); - public: - void unsafe_arena_set_allocated_where_clause( - ::pg_query::Node* where_clause); - ::pg_query::Node* unsafe_arena_release_where_clause(); - - // .pg_query.CmdType event = 4 [json_name = "event"]; - void clear_event(); - ::pg_query::CmdType event() const; - void set_event(::pg_query::CmdType value); - private: - ::pg_query::CmdType _internal_event() const; - void _internal_set_event(::pg_query::CmdType value); - public: - - // bool instead = 5 [json_name = "instead"]; - void clear_instead(); - bool instead() const; - void set_instead(bool value); - private: - bool _internal_instead() const; - void _internal_set_instead(bool value); - public: - - // bool replace = 7 [json_name = "replace"]; - void clear_replace(); - bool replace() const; - void set_replace(bool value); - private: - bool _internal_replace() const; - void _internal_set_replace(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.RuleStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > actions_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr rulename_; - ::pg_query::RangeVar* relation_; - ::pg_query::Node* where_clause_; - int event_; - bool instead_; - bool replace_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class NotifyStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.NotifyStmt) */ { - public: - inline NotifyStmt() : NotifyStmt(nullptr) {} - ~NotifyStmt() override; - explicit PROTOBUF_CONSTEXPR NotifyStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - NotifyStmt(const NotifyStmt& from); - NotifyStmt(NotifyStmt&& from) noexcept - : NotifyStmt() { - *this = ::std::move(from); - } - - inline NotifyStmt& operator=(const NotifyStmt& from) { - CopyFrom(from); - return *this; - } - inline NotifyStmt& operator=(NotifyStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const NotifyStmt& default_instance() { - return *internal_default_instance(); - } - static inline const NotifyStmt* internal_default_instance() { - return reinterpret_cast( - &_NotifyStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 94; - - friend void swap(NotifyStmt& a, NotifyStmt& b) { - a.Swap(&b); - } - inline void Swap(NotifyStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(NotifyStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - NotifyStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const NotifyStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const NotifyStmt& from) { - NotifyStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(NotifyStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.NotifyStmt"; - } - protected: - explicit NotifyStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kConditionnameFieldNumber = 1, - kPayloadFieldNumber = 2, - }; - // string conditionname = 1 [json_name = "conditionname"]; - void clear_conditionname(); - const std::string& conditionname() const; - template - void set_conditionname(ArgT0&& arg0, ArgT... args); - std::string* mutable_conditionname(); - PROTOBUF_NODISCARD std::string* release_conditionname(); - void set_allocated_conditionname(std::string* conditionname); - private: - const std::string& _internal_conditionname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_conditionname(const std::string& value); - std::string* _internal_mutable_conditionname(); - public: - - // string payload = 2 [json_name = "payload"]; - void clear_payload(); - const std::string& payload() const; - template - void set_payload(ArgT0&& arg0, ArgT... args); - std::string* mutable_payload(); - PROTOBUF_NODISCARD std::string* release_payload(); - void set_allocated_payload(std::string* payload); - private: - const std::string& _internal_payload() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_payload(const std::string& value); - std::string* _internal_mutable_payload(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.NotifyStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr conditionname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ListenStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ListenStmt) */ { - public: - inline ListenStmt() : ListenStmt(nullptr) {} - ~ListenStmt() override; - explicit PROTOBUF_CONSTEXPR ListenStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ListenStmt(const ListenStmt& from); - ListenStmt(ListenStmt&& from) noexcept - : ListenStmt() { - *this = ::std::move(from); - } - - inline ListenStmt& operator=(const ListenStmt& from) { - CopyFrom(from); - return *this; - } - inline ListenStmt& operator=(ListenStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ListenStmt& default_instance() { - return *internal_default_instance(); - } - static inline const ListenStmt* internal_default_instance() { - return reinterpret_cast( - &_ListenStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 95; - - friend void swap(ListenStmt& a, ListenStmt& b) { - a.Swap(&b); - } - inline void Swap(ListenStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ListenStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ListenStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ListenStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ListenStmt& from) { - ListenStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ListenStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ListenStmt"; - } - protected: - explicit ListenStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kConditionnameFieldNumber = 1, - }; - // string conditionname = 1 [json_name = "conditionname"]; - void clear_conditionname(); - const std::string& conditionname() const; - template - void set_conditionname(ArgT0&& arg0, ArgT... args); - std::string* mutable_conditionname(); - PROTOBUF_NODISCARD std::string* release_conditionname(); - void set_allocated_conditionname(std::string* conditionname); - private: - const std::string& _internal_conditionname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_conditionname(const std::string& value); - std::string* _internal_mutable_conditionname(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.ListenStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr conditionname_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class UnlistenStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.UnlistenStmt) */ { - public: - inline UnlistenStmt() : UnlistenStmt(nullptr) {} - ~UnlistenStmt() override; - explicit PROTOBUF_CONSTEXPR UnlistenStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - UnlistenStmt(const UnlistenStmt& from); - UnlistenStmt(UnlistenStmt&& from) noexcept - : UnlistenStmt() { - *this = ::std::move(from); - } - - inline UnlistenStmt& operator=(const UnlistenStmt& from) { - CopyFrom(from); - return *this; - } - inline UnlistenStmt& operator=(UnlistenStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const UnlistenStmt& default_instance() { - return *internal_default_instance(); - } - static inline const UnlistenStmt* internal_default_instance() { - return reinterpret_cast( - &_UnlistenStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 96; - - friend void swap(UnlistenStmt& a, UnlistenStmt& b) { - a.Swap(&b); - } - inline void Swap(UnlistenStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(UnlistenStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - UnlistenStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const UnlistenStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const UnlistenStmt& from) { - UnlistenStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(UnlistenStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.UnlistenStmt"; - } - protected: - explicit UnlistenStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kConditionnameFieldNumber = 1, - }; - // string conditionname = 1 [json_name = "conditionname"]; - void clear_conditionname(); - const std::string& conditionname() const; - template - void set_conditionname(ArgT0&& arg0, ArgT... args); - std::string* mutable_conditionname(); - PROTOBUF_NODISCARD std::string* release_conditionname(); - void set_allocated_conditionname(std::string* conditionname); - private: - const std::string& _internal_conditionname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_conditionname(const std::string& value); - std::string* _internal_mutable_conditionname(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.UnlistenStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr conditionname_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class TransactionStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.TransactionStmt) */ { - public: - inline TransactionStmt() : TransactionStmt(nullptr) {} - ~TransactionStmt() override; - explicit PROTOBUF_CONSTEXPR TransactionStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - TransactionStmt(const TransactionStmt& from); - TransactionStmt(TransactionStmt&& from) noexcept - : TransactionStmt() { - *this = ::std::move(from); - } - - inline TransactionStmt& operator=(const TransactionStmt& from) { - CopyFrom(from); - return *this; - } - inline TransactionStmt& operator=(TransactionStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TransactionStmt& default_instance() { - return *internal_default_instance(); - } - static inline const TransactionStmt* internal_default_instance() { - return reinterpret_cast( - &_TransactionStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 97; - - friend void swap(TransactionStmt& a, TransactionStmt& b) { - a.Swap(&b); - } - inline void Swap(TransactionStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TransactionStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TransactionStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const TransactionStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const TransactionStmt& from) { - TransactionStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TransactionStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.TransactionStmt"; - } - protected: - explicit TransactionStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 2, - kSavepointNameFieldNumber = 3, - kGidFieldNumber = 4, - kKindFieldNumber = 1, - kChainFieldNumber = 5, - }; - // repeated .pg_query.Node options = 2 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string savepoint_name = 3 [json_name = "savepoint_name"]; - void clear_savepoint_name(); - const std::string& savepoint_name() const; - template - void set_savepoint_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_savepoint_name(); - PROTOBUF_NODISCARD std::string* release_savepoint_name(); - void set_allocated_savepoint_name(std::string* savepoint_name); - private: - const std::string& _internal_savepoint_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_savepoint_name(const std::string& value); - std::string* _internal_mutable_savepoint_name(); - public: - - // string gid = 4 [json_name = "gid"]; - void clear_gid(); - const std::string& gid() const; - template - void set_gid(ArgT0&& arg0, ArgT... args); - std::string* mutable_gid(); - PROTOBUF_NODISCARD std::string* release_gid(); - void set_allocated_gid(std::string* gid); - private: - const std::string& _internal_gid() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_gid(const std::string& value); - std::string* _internal_mutable_gid(); - public: - - // .pg_query.TransactionStmtKind kind = 1 [json_name = "kind"]; - void clear_kind(); - ::pg_query::TransactionStmtKind kind() const; - void set_kind(::pg_query::TransactionStmtKind value); - private: - ::pg_query::TransactionStmtKind _internal_kind() const; - void _internal_set_kind(::pg_query::TransactionStmtKind value); - public: - - // bool chain = 5 [json_name = "chain"]; - void clear_chain(); - bool chain() const; - void set_chain(bool value); - private: - bool _internal_chain() const; - void _internal_set_chain(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.TransactionStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr savepoint_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr gid_; - int kind_; - bool chain_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ViewStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ViewStmt) */ { - public: - inline ViewStmt() : ViewStmt(nullptr) {} - ~ViewStmt() override; - explicit PROTOBUF_CONSTEXPR ViewStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ViewStmt(const ViewStmt& from); - ViewStmt(ViewStmt&& from) noexcept - : ViewStmt() { - *this = ::std::move(from); - } - - inline ViewStmt& operator=(const ViewStmt& from) { - CopyFrom(from); - return *this; - } - inline ViewStmt& operator=(ViewStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ViewStmt& default_instance() { - return *internal_default_instance(); - } - static inline const ViewStmt* internal_default_instance() { - return reinterpret_cast( - &_ViewStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 98; - - friend void swap(ViewStmt& a, ViewStmt& b) { - a.Swap(&b); - } - inline void Swap(ViewStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ViewStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ViewStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ViewStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ViewStmt& from) { - ViewStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ViewStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ViewStmt"; - } - protected: - explicit ViewStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAliasesFieldNumber = 2, - kOptionsFieldNumber = 5, - kViewFieldNumber = 1, - kQueryFieldNumber = 3, - kReplaceFieldNumber = 4, - kWithCheckOptionFieldNumber = 6, - }; - // repeated .pg_query.Node aliases = 2 [json_name = "aliases"]; - int aliases_size() const; - private: - int _internal_aliases_size() const; - public: - void clear_aliases(); - ::pg_query::Node* mutable_aliases(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_aliases(); - private: - const ::pg_query::Node& _internal_aliases(int index) const; - ::pg_query::Node* _internal_add_aliases(); - public: - const ::pg_query::Node& aliases(int index) const; - ::pg_query::Node* add_aliases(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - aliases() const; - - // repeated .pg_query.Node options = 5 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // .pg_query.RangeVar view = 1 [json_name = "view"]; - bool has_view() const; - private: - bool _internal_has_view() const; - public: - void clear_view(); - const ::pg_query::RangeVar& view() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_view(); - ::pg_query::RangeVar* mutable_view(); - void set_allocated_view(::pg_query::RangeVar* view); - private: - const ::pg_query::RangeVar& _internal_view() const; - ::pg_query::RangeVar* _internal_mutable_view(); - public: - void unsafe_arena_set_allocated_view( - ::pg_query::RangeVar* view); - ::pg_query::RangeVar* unsafe_arena_release_view(); - - // .pg_query.Node query = 3 [json_name = "query"]; - bool has_query() const; - private: - bool _internal_has_query() const; - public: - void clear_query(); - const ::pg_query::Node& query() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_query(); - ::pg_query::Node* mutable_query(); - void set_allocated_query(::pg_query::Node* query); - private: - const ::pg_query::Node& _internal_query() const; - ::pg_query::Node* _internal_mutable_query(); - public: - void unsafe_arena_set_allocated_query( - ::pg_query::Node* query); - ::pg_query::Node* unsafe_arena_release_query(); - - // bool replace = 4 [json_name = "replace"]; - void clear_replace(); - bool replace() const; - void set_replace(bool value); - private: - bool _internal_replace() const; - void _internal_set_replace(bool value); - public: - - // .pg_query.ViewCheckOption with_check_option = 6 [json_name = "withCheckOption"]; - void clear_with_check_option(); - ::pg_query::ViewCheckOption with_check_option() const; - void set_with_check_option(::pg_query::ViewCheckOption value); - private: - ::pg_query::ViewCheckOption _internal_with_check_option() const; - void _internal_set_with_check_option(::pg_query::ViewCheckOption value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.ViewStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > aliases_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::pg_query::RangeVar* view_; - ::pg_query::Node* query_; - bool replace_; - int with_check_option_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class LoadStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.LoadStmt) */ { - public: - inline LoadStmt() : LoadStmt(nullptr) {} - ~LoadStmt() override; - explicit PROTOBUF_CONSTEXPR LoadStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - LoadStmt(const LoadStmt& from); - LoadStmt(LoadStmt&& from) noexcept - : LoadStmt() { - *this = ::std::move(from); - } - - inline LoadStmt& operator=(const LoadStmt& from) { - CopyFrom(from); - return *this; - } - inline LoadStmt& operator=(LoadStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const LoadStmt& default_instance() { - return *internal_default_instance(); - } - static inline const LoadStmt* internal_default_instance() { - return reinterpret_cast( - &_LoadStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 99; - - friend void swap(LoadStmt& a, LoadStmt& b) { - a.Swap(&b); - } - inline void Swap(LoadStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LoadStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - LoadStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const LoadStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const LoadStmt& from) { - LoadStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(LoadStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.LoadStmt"; - } - protected: - explicit LoadStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFilenameFieldNumber = 1, - }; - // string filename = 1 [json_name = "filename"]; - void clear_filename(); - const std::string& filename() const; - template - void set_filename(ArgT0&& arg0, ArgT... args); - std::string* mutable_filename(); - PROTOBUF_NODISCARD std::string* release_filename(); - void set_allocated_filename(std::string* filename); - private: - const std::string& _internal_filename() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_filename(const std::string& value); - std::string* _internal_mutable_filename(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.LoadStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr filename_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateDomainStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateDomainStmt) */ { - public: - inline CreateDomainStmt() : CreateDomainStmt(nullptr) {} - ~CreateDomainStmt() override; - explicit PROTOBUF_CONSTEXPR CreateDomainStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateDomainStmt(const CreateDomainStmt& from); - CreateDomainStmt(CreateDomainStmt&& from) noexcept - : CreateDomainStmt() { - *this = ::std::move(from); - } - - inline CreateDomainStmt& operator=(const CreateDomainStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateDomainStmt& operator=(CreateDomainStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateDomainStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateDomainStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateDomainStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 100; - - friend void swap(CreateDomainStmt& a, CreateDomainStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateDomainStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateDomainStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateDomainStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateDomainStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateDomainStmt& from) { - CreateDomainStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateDomainStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateDomainStmt"; - } - protected: - explicit CreateDomainStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDomainnameFieldNumber = 1, - kConstraintsFieldNumber = 4, - kTypeNameFieldNumber = 2, - kCollClauseFieldNumber = 3, - }; - // repeated .pg_query.Node domainname = 1 [json_name = "domainname"]; - int domainname_size() const; - private: - int _internal_domainname_size() const; - public: - void clear_domainname(); - ::pg_query::Node* mutable_domainname(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_domainname(); - private: - const ::pg_query::Node& _internal_domainname(int index) const; - ::pg_query::Node* _internal_add_domainname(); - public: - const ::pg_query::Node& domainname(int index) const; - ::pg_query::Node* add_domainname(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - domainname() const; - - // repeated .pg_query.Node constraints = 4 [json_name = "constraints"]; - int constraints_size() const; - private: - int _internal_constraints_size() const; - public: - void clear_constraints(); - ::pg_query::Node* mutable_constraints(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_constraints(); - private: - const ::pg_query::Node& _internal_constraints(int index) const; - ::pg_query::Node* _internal_add_constraints(); - public: - const ::pg_query::Node& constraints(int index) const; - ::pg_query::Node* add_constraints(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - constraints() const; - - // .pg_query.TypeName type_name = 2 [json_name = "typeName"]; - bool has_type_name() const; - private: - bool _internal_has_type_name() const; - public: - void clear_type_name(); - const ::pg_query::TypeName& type_name() const; - PROTOBUF_NODISCARD ::pg_query::TypeName* release_type_name(); - ::pg_query::TypeName* mutable_type_name(); - void set_allocated_type_name(::pg_query::TypeName* type_name); - private: - const ::pg_query::TypeName& _internal_type_name() const; - ::pg_query::TypeName* _internal_mutable_type_name(); - public: - void unsafe_arena_set_allocated_type_name( - ::pg_query::TypeName* type_name); - ::pg_query::TypeName* unsafe_arena_release_type_name(); - - // .pg_query.CollateClause coll_clause = 3 [json_name = "collClause"]; - bool has_coll_clause() const; - private: - bool _internal_has_coll_clause() const; - public: - void clear_coll_clause(); - const ::pg_query::CollateClause& coll_clause() const; - PROTOBUF_NODISCARD ::pg_query::CollateClause* release_coll_clause(); - ::pg_query::CollateClause* mutable_coll_clause(); - void set_allocated_coll_clause(::pg_query::CollateClause* coll_clause); - private: - const ::pg_query::CollateClause& _internal_coll_clause() const; - ::pg_query::CollateClause* _internal_mutable_coll_clause(); - public: - void unsafe_arena_set_allocated_coll_clause( - ::pg_query::CollateClause* coll_clause); - ::pg_query::CollateClause* unsafe_arena_release_coll_clause(); - - // @@protoc_insertion_point(class_scope:pg_query.CreateDomainStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > domainname_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > constraints_; - ::pg_query::TypeName* type_name_; - ::pg_query::CollateClause* coll_clause_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreatedbStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreatedbStmt) */ { - public: - inline CreatedbStmt() : CreatedbStmt(nullptr) {} - ~CreatedbStmt() override; - explicit PROTOBUF_CONSTEXPR CreatedbStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreatedbStmt(const CreatedbStmt& from); - CreatedbStmt(CreatedbStmt&& from) noexcept - : CreatedbStmt() { - *this = ::std::move(from); - } - - inline CreatedbStmt& operator=(const CreatedbStmt& from) { - CopyFrom(from); - return *this; - } - inline CreatedbStmt& operator=(CreatedbStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreatedbStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreatedbStmt* internal_default_instance() { - return reinterpret_cast( - &_CreatedbStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 101; - - friend void swap(CreatedbStmt& a, CreatedbStmt& b) { - a.Swap(&b); - } - inline void Swap(CreatedbStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreatedbStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreatedbStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreatedbStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreatedbStmt& from) { - CreatedbStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreatedbStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreatedbStmt"; - } - protected: - explicit CreatedbStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 2, - kDbnameFieldNumber = 1, - }; - // repeated .pg_query.Node options = 2 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string dbname = 1 [json_name = "dbname"]; - void clear_dbname(); - const std::string& dbname() const; - template - void set_dbname(ArgT0&& arg0, ArgT... args); - std::string* mutable_dbname(); - PROTOBUF_NODISCARD std::string* release_dbname(); - void set_allocated_dbname(std::string* dbname); - private: - const std::string& _internal_dbname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_dbname(const std::string& value); - std::string* _internal_mutable_dbname(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreatedbStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dbname_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class DropdbStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.DropdbStmt) */ { - public: - inline DropdbStmt() : DropdbStmt(nullptr) {} - ~DropdbStmt() override; - explicit PROTOBUF_CONSTEXPR DropdbStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - DropdbStmt(const DropdbStmt& from); - DropdbStmt(DropdbStmt&& from) noexcept - : DropdbStmt() { - *this = ::std::move(from); - } - - inline DropdbStmt& operator=(const DropdbStmt& from) { - CopyFrom(from); - return *this; - } - inline DropdbStmt& operator=(DropdbStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DropdbStmt& default_instance() { - return *internal_default_instance(); - } - static inline const DropdbStmt* internal_default_instance() { - return reinterpret_cast( - &_DropdbStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 102; - - friend void swap(DropdbStmt& a, DropdbStmt& b) { - a.Swap(&b); - } - inline void Swap(DropdbStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DropdbStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DropdbStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DropdbStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DropdbStmt& from) { - DropdbStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DropdbStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.DropdbStmt"; - } - protected: - explicit DropdbStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 3, - kDbnameFieldNumber = 1, - kMissingOkFieldNumber = 2, - }; - // repeated .pg_query.Node options = 3 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string dbname = 1 [json_name = "dbname"]; - void clear_dbname(); - const std::string& dbname() const; - template - void set_dbname(ArgT0&& arg0, ArgT... args); - std::string* mutable_dbname(); - PROTOBUF_NODISCARD std::string* release_dbname(); - void set_allocated_dbname(std::string* dbname); - private: - const std::string& _internal_dbname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_dbname(const std::string& value); - std::string* _internal_mutable_dbname(); - public: - - // bool missing_ok = 2 [json_name = "missing_ok"]; - void clear_missing_ok(); - bool missing_ok() const; - void set_missing_ok(bool value); - private: - bool _internal_missing_ok() const; - void _internal_set_missing_ok(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.DropdbStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dbname_; - bool missing_ok_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class VacuumStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.VacuumStmt) */ { - public: - inline VacuumStmt() : VacuumStmt(nullptr) {} - ~VacuumStmt() override; - explicit PROTOBUF_CONSTEXPR VacuumStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - VacuumStmt(const VacuumStmt& from); - VacuumStmt(VacuumStmt&& from) noexcept - : VacuumStmt() { - *this = ::std::move(from); - } - - inline VacuumStmt& operator=(const VacuumStmt& from) { - CopyFrom(from); - return *this; - } - inline VacuumStmt& operator=(VacuumStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const VacuumStmt& default_instance() { - return *internal_default_instance(); - } - static inline const VacuumStmt* internal_default_instance() { - return reinterpret_cast( - &_VacuumStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 103; - - friend void swap(VacuumStmt& a, VacuumStmt& b) { - a.Swap(&b); - } - inline void Swap(VacuumStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(VacuumStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - VacuumStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const VacuumStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const VacuumStmt& from) { - VacuumStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(VacuumStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.VacuumStmt"; - } - protected: - explicit VacuumStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 1, - kRelsFieldNumber = 2, - kIsVacuumcmdFieldNumber = 3, - }; - // repeated .pg_query.Node options = 1 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // repeated .pg_query.Node rels = 2 [json_name = "rels"]; - int rels_size() const; - private: - int _internal_rels_size() const; - public: - void clear_rels(); - ::pg_query::Node* mutable_rels(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_rels(); - private: - const ::pg_query::Node& _internal_rels(int index) const; - ::pg_query::Node* _internal_add_rels(); - public: - const ::pg_query::Node& rels(int index) const; - ::pg_query::Node* add_rels(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - rels() const; - - // bool is_vacuumcmd = 3 [json_name = "is_vacuumcmd"]; - void clear_is_vacuumcmd(); - bool is_vacuumcmd() const; - void set_is_vacuumcmd(bool value); - private: - bool _internal_is_vacuumcmd() const; - void _internal_set_is_vacuumcmd(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.VacuumStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > rels_; - bool is_vacuumcmd_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ExplainStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ExplainStmt) */ { - public: - inline ExplainStmt() : ExplainStmt(nullptr) {} - ~ExplainStmt() override; - explicit PROTOBUF_CONSTEXPR ExplainStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ExplainStmt(const ExplainStmt& from); - ExplainStmt(ExplainStmt&& from) noexcept - : ExplainStmt() { - *this = ::std::move(from); - } - - inline ExplainStmt& operator=(const ExplainStmt& from) { - CopyFrom(from); - return *this; - } - inline ExplainStmt& operator=(ExplainStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ExplainStmt& default_instance() { - return *internal_default_instance(); - } - static inline const ExplainStmt* internal_default_instance() { - return reinterpret_cast( - &_ExplainStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 104; - - friend void swap(ExplainStmt& a, ExplainStmt& b) { - a.Swap(&b); - } - inline void Swap(ExplainStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ExplainStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ExplainStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ExplainStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ExplainStmt& from) { - ExplainStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ExplainStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ExplainStmt"; - } - protected: - explicit ExplainStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 2, - kQueryFieldNumber = 1, - }; - // repeated .pg_query.Node options = 2 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // .pg_query.Node query = 1 [json_name = "query"]; - bool has_query() const; - private: - bool _internal_has_query() const; - public: - void clear_query(); - const ::pg_query::Node& query() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_query(); - ::pg_query::Node* mutable_query(); - void set_allocated_query(::pg_query::Node* query); - private: - const ::pg_query::Node& _internal_query() const; - ::pg_query::Node* _internal_mutable_query(); - public: - void unsafe_arena_set_allocated_query( - ::pg_query::Node* query); - ::pg_query::Node* unsafe_arena_release_query(); - - // @@protoc_insertion_point(class_scope:pg_query.ExplainStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::pg_query::Node* query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateTableAsStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateTableAsStmt) */ { - public: - inline CreateTableAsStmt() : CreateTableAsStmt(nullptr) {} - ~CreateTableAsStmt() override; - explicit PROTOBUF_CONSTEXPR CreateTableAsStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateTableAsStmt(const CreateTableAsStmt& from); - CreateTableAsStmt(CreateTableAsStmt&& from) noexcept - : CreateTableAsStmt() { - *this = ::std::move(from); - } - - inline CreateTableAsStmt& operator=(const CreateTableAsStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateTableAsStmt& operator=(CreateTableAsStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateTableAsStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateTableAsStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateTableAsStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 105; - - friend void swap(CreateTableAsStmt& a, CreateTableAsStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateTableAsStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateTableAsStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateTableAsStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateTableAsStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateTableAsStmt& from) { - CreateTableAsStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateTableAsStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateTableAsStmt"; - } - protected: - explicit CreateTableAsStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kQueryFieldNumber = 1, - kIntoFieldNumber = 2, - kObjtypeFieldNumber = 3, - kIsSelectIntoFieldNumber = 4, - kIfNotExistsFieldNumber = 5, - }; - // .pg_query.Node query = 1 [json_name = "query"]; - bool has_query() const; - private: - bool _internal_has_query() const; - public: - void clear_query(); - const ::pg_query::Node& query() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_query(); - ::pg_query::Node* mutable_query(); - void set_allocated_query(::pg_query::Node* query); - private: - const ::pg_query::Node& _internal_query() const; - ::pg_query::Node* _internal_mutable_query(); - public: - void unsafe_arena_set_allocated_query( - ::pg_query::Node* query); - ::pg_query::Node* unsafe_arena_release_query(); - - // .pg_query.IntoClause into = 2 [json_name = "into"]; - bool has_into() const; - private: - bool _internal_has_into() const; - public: - void clear_into(); - const ::pg_query::IntoClause& into() const; - PROTOBUF_NODISCARD ::pg_query::IntoClause* release_into(); - ::pg_query::IntoClause* mutable_into(); - void set_allocated_into(::pg_query::IntoClause* into); - private: - const ::pg_query::IntoClause& _internal_into() const; - ::pg_query::IntoClause* _internal_mutable_into(); - public: - void unsafe_arena_set_allocated_into( - ::pg_query::IntoClause* into); - ::pg_query::IntoClause* unsafe_arena_release_into(); - - // .pg_query.ObjectType objtype = 3 [json_name = "objtype"]; - void clear_objtype(); - ::pg_query::ObjectType objtype() const; - void set_objtype(::pg_query::ObjectType value); - private: - ::pg_query::ObjectType _internal_objtype() const; - void _internal_set_objtype(::pg_query::ObjectType value); - public: - - // bool is_select_into = 4 [json_name = "is_select_into"]; - void clear_is_select_into(); - bool is_select_into() const; - void set_is_select_into(bool value); - private: - bool _internal_is_select_into() const; - void _internal_set_is_select_into(bool value); - public: - - // bool if_not_exists = 5 [json_name = "if_not_exists"]; - void clear_if_not_exists(); - bool if_not_exists() const; - void set_if_not_exists(bool value); - private: - bool _internal_if_not_exists() const; - void _internal_set_if_not_exists(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreateTableAsStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* query_; - ::pg_query::IntoClause* into_; - int objtype_; - bool is_select_into_; - bool if_not_exists_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateSeqStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateSeqStmt) */ { - public: - inline CreateSeqStmt() : CreateSeqStmt(nullptr) {} - ~CreateSeqStmt() override; - explicit PROTOBUF_CONSTEXPR CreateSeqStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateSeqStmt(const CreateSeqStmt& from); - CreateSeqStmt(CreateSeqStmt&& from) noexcept - : CreateSeqStmt() { - *this = ::std::move(from); - } - - inline CreateSeqStmt& operator=(const CreateSeqStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateSeqStmt& operator=(CreateSeqStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateSeqStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateSeqStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateSeqStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 106; - - friend void swap(CreateSeqStmt& a, CreateSeqStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateSeqStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateSeqStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateSeqStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateSeqStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateSeqStmt& from) { - CreateSeqStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateSeqStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateSeqStmt"; - } - protected: - explicit CreateSeqStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 2, - kSequenceFieldNumber = 1, - kOwnerIdFieldNumber = 3, - kForIdentityFieldNumber = 4, - kIfNotExistsFieldNumber = 5, - }; - // repeated .pg_query.Node options = 2 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // .pg_query.RangeVar sequence = 1 [json_name = "sequence"]; - bool has_sequence() const; - private: - bool _internal_has_sequence() const; - public: - void clear_sequence(); - const ::pg_query::RangeVar& sequence() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_sequence(); - ::pg_query::RangeVar* mutable_sequence(); - void set_allocated_sequence(::pg_query::RangeVar* sequence); - private: - const ::pg_query::RangeVar& _internal_sequence() const; - ::pg_query::RangeVar* _internal_mutable_sequence(); - public: - void unsafe_arena_set_allocated_sequence( - ::pg_query::RangeVar* sequence); - ::pg_query::RangeVar* unsafe_arena_release_sequence(); - - // uint32 owner_id = 3 [json_name = "ownerId"]; - void clear_owner_id(); - uint32_t owner_id() const; - void set_owner_id(uint32_t value); - private: - uint32_t _internal_owner_id() const; - void _internal_set_owner_id(uint32_t value); - public: - - // bool for_identity = 4 [json_name = "for_identity"]; - void clear_for_identity(); - bool for_identity() const; - void set_for_identity(bool value); - private: - bool _internal_for_identity() const; - void _internal_set_for_identity(bool value); - public: - - // bool if_not_exists = 5 [json_name = "if_not_exists"]; - void clear_if_not_exists(); - bool if_not_exists() const; - void set_if_not_exists(bool value); - private: - bool _internal_if_not_exists() const; - void _internal_set_if_not_exists(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreateSeqStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::pg_query::RangeVar* sequence_; - uint32_t owner_id_; - bool for_identity_; - bool if_not_exists_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterSeqStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterSeqStmt) */ { - public: - inline AlterSeqStmt() : AlterSeqStmt(nullptr) {} - ~AlterSeqStmt() override; - explicit PROTOBUF_CONSTEXPR AlterSeqStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterSeqStmt(const AlterSeqStmt& from); - AlterSeqStmt(AlterSeqStmt&& from) noexcept - : AlterSeqStmt() { - *this = ::std::move(from); - } - - inline AlterSeqStmt& operator=(const AlterSeqStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterSeqStmt& operator=(AlterSeqStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterSeqStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterSeqStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterSeqStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 107; - - friend void swap(AlterSeqStmt& a, AlterSeqStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterSeqStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterSeqStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterSeqStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterSeqStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterSeqStmt& from) { - AlterSeqStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterSeqStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterSeqStmt"; - } - protected: - explicit AlterSeqStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 2, - kSequenceFieldNumber = 1, - kForIdentityFieldNumber = 3, - kMissingOkFieldNumber = 4, - }; - // repeated .pg_query.Node options = 2 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // .pg_query.RangeVar sequence = 1 [json_name = "sequence"]; - bool has_sequence() const; - private: - bool _internal_has_sequence() const; - public: - void clear_sequence(); - const ::pg_query::RangeVar& sequence() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_sequence(); - ::pg_query::RangeVar* mutable_sequence(); - void set_allocated_sequence(::pg_query::RangeVar* sequence); - private: - const ::pg_query::RangeVar& _internal_sequence() const; - ::pg_query::RangeVar* _internal_mutable_sequence(); - public: - void unsafe_arena_set_allocated_sequence( - ::pg_query::RangeVar* sequence); - ::pg_query::RangeVar* unsafe_arena_release_sequence(); - - // bool for_identity = 3 [json_name = "for_identity"]; - void clear_for_identity(); - bool for_identity() const; - void set_for_identity(bool value); - private: - bool _internal_for_identity() const; - void _internal_set_for_identity(bool value); - public: - - // bool missing_ok = 4 [json_name = "missing_ok"]; - void clear_missing_ok(); - bool missing_ok() const; - void set_missing_ok(bool value); - private: - bool _internal_missing_ok() const; - void _internal_set_missing_ok(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterSeqStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::pg_query::RangeVar* sequence_; - bool for_identity_; - bool missing_ok_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class VariableSetStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.VariableSetStmt) */ { - public: - inline VariableSetStmt() : VariableSetStmt(nullptr) {} - ~VariableSetStmt() override; - explicit PROTOBUF_CONSTEXPR VariableSetStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - VariableSetStmt(const VariableSetStmt& from); - VariableSetStmt(VariableSetStmt&& from) noexcept - : VariableSetStmt() { - *this = ::std::move(from); - } - - inline VariableSetStmt& operator=(const VariableSetStmt& from) { - CopyFrom(from); - return *this; - } - inline VariableSetStmt& operator=(VariableSetStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const VariableSetStmt& default_instance() { - return *internal_default_instance(); - } - static inline const VariableSetStmt* internal_default_instance() { - return reinterpret_cast( - &_VariableSetStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 108; - - friend void swap(VariableSetStmt& a, VariableSetStmt& b) { - a.Swap(&b); - } - inline void Swap(VariableSetStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(VariableSetStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - VariableSetStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const VariableSetStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const VariableSetStmt& from) { - VariableSetStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(VariableSetStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.VariableSetStmt"; - } - protected: - explicit VariableSetStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArgsFieldNumber = 3, - kNameFieldNumber = 2, - kKindFieldNumber = 1, - kIsLocalFieldNumber = 4, - }; - // repeated .pg_query.Node args = 3 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // string name = 2 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // .pg_query.VariableSetKind kind = 1 [json_name = "kind"]; - void clear_kind(); - ::pg_query::VariableSetKind kind() const; - void set_kind(::pg_query::VariableSetKind value); - private: - ::pg_query::VariableSetKind _internal_kind() const; - void _internal_set_kind(::pg_query::VariableSetKind value); - public: - - // bool is_local = 4 [json_name = "is_local"]; - void clear_is_local(); - bool is_local() const; - void set_is_local(bool value); - private: - bool _internal_is_local() const; - void _internal_set_is_local(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.VariableSetStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - int kind_; - bool is_local_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class VariableShowStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.VariableShowStmt) */ { - public: - inline VariableShowStmt() : VariableShowStmt(nullptr) {} - ~VariableShowStmt() override; - explicit PROTOBUF_CONSTEXPR VariableShowStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - VariableShowStmt(const VariableShowStmt& from); - VariableShowStmt(VariableShowStmt&& from) noexcept - : VariableShowStmt() { - *this = ::std::move(from); - } - - inline VariableShowStmt& operator=(const VariableShowStmt& from) { - CopyFrom(from); - return *this; - } - inline VariableShowStmt& operator=(VariableShowStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const VariableShowStmt& default_instance() { - return *internal_default_instance(); - } - static inline const VariableShowStmt* internal_default_instance() { - return reinterpret_cast( - &_VariableShowStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 109; - - friend void swap(VariableShowStmt& a, VariableShowStmt& b) { - a.Swap(&b); - } - inline void Swap(VariableShowStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(VariableShowStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - VariableShowStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const VariableShowStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const VariableShowStmt& from) { - VariableShowStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(VariableShowStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.VariableShowStmt"; - } - protected: - explicit VariableShowStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNameFieldNumber = 1, - }; - // string name = 1 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.VariableShowStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class DiscardStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.DiscardStmt) */ { - public: - inline DiscardStmt() : DiscardStmt(nullptr) {} - ~DiscardStmt() override; - explicit PROTOBUF_CONSTEXPR DiscardStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - DiscardStmt(const DiscardStmt& from); - DiscardStmt(DiscardStmt&& from) noexcept - : DiscardStmt() { - *this = ::std::move(from); - } - - inline DiscardStmt& operator=(const DiscardStmt& from) { - CopyFrom(from); - return *this; - } - inline DiscardStmt& operator=(DiscardStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DiscardStmt& default_instance() { - return *internal_default_instance(); - } - static inline const DiscardStmt* internal_default_instance() { - return reinterpret_cast( - &_DiscardStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 110; - - friend void swap(DiscardStmt& a, DiscardStmt& b) { - a.Swap(&b); - } - inline void Swap(DiscardStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DiscardStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DiscardStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DiscardStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DiscardStmt& from) { - DiscardStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DiscardStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.DiscardStmt"; - } - protected: - explicit DiscardStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTargetFieldNumber = 1, - }; - // .pg_query.DiscardMode target = 1 [json_name = "target"]; - void clear_target(); - ::pg_query::DiscardMode target() const; - void set_target(::pg_query::DiscardMode value); - private: - ::pg_query::DiscardMode _internal_target() const; - void _internal_set_target(::pg_query::DiscardMode value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.DiscardStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - int target_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateTrigStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateTrigStmt) */ { - public: - inline CreateTrigStmt() : CreateTrigStmt(nullptr) {} - ~CreateTrigStmt() override; - explicit PROTOBUF_CONSTEXPR CreateTrigStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateTrigStmt(const CreateTrigStmt& from); - CreateTrigStmt(CreateTrigStmt&& from) noexcept - : CreateTrigStmt() { - *this = ::std::move(from); - } - - inline CreateTrigStmt& operator=(const CreateTrigStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateTrigStmt& operator=(CreateTrigStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateTrigStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateTrigStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateTrigStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 111; - - friend void swap(CreateTrigStmt& a, CreateTrigStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateTrigStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateTrigStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateTrigStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateTrigStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateTrigStmt& from) { - CreateTrigStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateTrigStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateTrigStmt"; - } - protected: - explicit CreateTrigStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFuncnameFieldNumber = 5, - kArgsFieldNumber = 6, - kColumnsFieldNumber = 10, - kTransitionRelsFieldNumber = 12, - kTrignameFieldNumber = 3, - kRelationFieldNumber = 4, - kWhenClauseFieldNumber = 11, - kConstrrelFieldNumber = 15, - kReplaceFieldNumber = 1, - kIsconstraintFieldNumber = 2, - kRowFieldNumber = 7, - kDeferrableFieldNumber = 13, - kTimingFieldNumber = 8, - kEventsFieldNumber = 9, - kInitdeferredFieldNumber = 14, - }; - // repeated .pg_query.Node funcname = 5 [json_name = "funcname"]; - int funcname_size() const; - private: - int _internal_funcname_size() const; - public: - void clear_funcname(); - ::pg_query::Node* mutable_funcname(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_funcname(); - private: - const ::pg_query::Node& _internal_funcname(int index) const; - ::pg_query::Node* _internal_add_funcname(); - public: - const ::pg_query::Node& funcname(int index) const; - ::pg_query::Node* add_funcname(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - funcname() const; - - // repeated .pg_query.Node args = 6 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // repeated .pg_query.Node columns = 10 [json_name = "columns"]; - int columns_size() const; - private: - int _internal_columns_size() const; - public: - void clear_columns(); - ::pg_query::Node* mutable_columns(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_columns(); - private: - const ::pg_query::Node& _internal_columns(int index) const; - ::pg_query::Node* _internal_add_columns(); - public: - const ::pg_query::Node& columns(int index) const; - ::pg_query::Node* add_columns(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - columns() const; - - // repeated .pg_query.Node transition_rels = 12 [json_name = "transitionRels"]; - int transition_rels_size() const; - private: - int _internal_transition_rels_size() const; - public: - void clear_transition_rels(); - ::pg_query::Node* mutable_transition_rels(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_transition_rels(); - private: - const ::pg_query::Node& _internal_transition_rels(int index) const; - ::pg_query::Node* _internal_add_transition_rels(); - public: - const ::pg_query::Node& transition_rels(int index) const; - ::pg_query::Node* add_transition_rels(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - transition_rels() const; - - // string trigname = 3 [json_name = "trigname"]; - void clear_trigname(); - const std::string& trigname() const; - template - void set_trigname(ArgT0&& arg0, ArgT... args); - std::string* mutable_trigname(); - PROTOBUF_NODISCARD std::string* release_trigname(); - void set_allocated_trigname(std::string* trigname); - private: - const std::string& _internal_trigname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_trigname(const std::string& value); - std::string* _internal_mutable_trigname(); - public: - - // .pg_query.RangeVar relation = 4 [json_name = "relation"]; - bool has_relation() const; - private: - bool _internal_has_relation() const; - public: - void clear_relation(); - const ::pg_query::RangeVar& relation() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_relation(); - ::pg_query::RangeVar* mutable_relation(); - void set_allocated_relation(::pg_query::RangeVar* relation); - private: - const ::pg_query::RangeVar& _internal_relation() const; - ::pg_query::RangeVar* _internal_mutable_relation(); - public: - void unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation); - ::pg_query::RangeVar* unsafe_arena_release_relation(); - - // .pg_query.Node when_clause = 11 [json_name = "whenClause"]; - bool has_when_clause() const; - private: - bool _internal_has_when_clause() const; - public: - void clear_when_clause(); - const ::pg_query::Node& when_clause() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_when_clause(); - ::pg_query::Node* mutable_when_clause(); - void set_allocated_when_clause(::pg_query::Node* when_clause); - private: - const ::pg_query::Node& _internal_when_clause() const; - ::pg_query::Node* _internal_mutable_when_clause(); - public: - void unsafe_arena_set_allocated_when_clause( - ::pg_query::Node* when_clause); - ::pg_query::Node* unsafe_arena_release_when_clause(); - - // .pg_query.RangeVar constrrel = 15 [json_name = "constrrel"]; - bool has_constrrel() const; - private: - bool _internal_has_constrrel() const; - public: - void clear_constrrel(); - const ::pg_query::RangeVar& constrrel() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_constrrel(); - ::pg_query::RangeVar* mutable_constrrel(); - void set_allocated_constrrel(::pg_query::RangeVar* constrrel); - private: - const ::pg_query::RangeVar& _internal_constrrel() const; - ::pg_query::RangeVar* _internal_mutable_constrrel(); - public: - void unsafe_arena_set_allocated_constrrel( - ::pg_query::RangeVar* constrrel); - ::pg_query::RangeVar* unsafe_arena_release_constrrel(); - - // bool replace = 1 [json_name = "replace"]; - void clear_replace(); - bool replace() const; - void set_replace(bool value); - private: - bool _internal_replace() const; - void _internal_set_replace(bool value); - public: - - // bool isconstraint = 2 [json_name = "isconstraint"]; - void clear_isconstraint(); - bool isconstraint() const; - void set_isconstraint(bool value); - private: - bool _internal_isconstraint() const; - void _internal_set_isconstraint(bool value); - public: - - // bool row = 7 [json_name = "row"]; - void clear_row(); - bool row() const; - void set_row(bool value); - private: - bool _internal_row() const; - void _internal_set_row(bool value); - public: - - // bool deferrable = 13 [json_name = "deferrable"]; - void clear_deferrable(); - bool deferrable() const; - void set_deferrable(bool value); - private: - bool _internal_deferrable() const; - void _internal_set_deferrable(bool value); - public: - - // int32 timing = 8 [json_name = "timing"]; - void clear_timing(); - int32_t timing() const; - void set_timing(int32_t value); - private: - int32_t _internal_timing() const; - void _internal_set_timing(int32_t value); - public: - - // int32 events = 9 [json_name = "events"]; - void clear_events(); - int32_t events() const; - void set_events(int32_t value); - private: - int32_t _internal_events() const; - void _internal_set_events(int32_t value); - public: - - // bool initdeferred = 14 [json_name = "initdeferred"]; - void clear_initdeferred(); - bool initdeferred() const; - void set_initdeferred(bool value); - private: - bool _internal_initdeferred() const; - void _internal_set_initdeferred(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreateTrigStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > funcname_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > columns_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > transition_rels_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr trigname_; - ::pg_query::RangeVar* relation_; - ::pg_query::Node* when_clause_; - ::pg_query::RangeVar* constrrel_; - bool replace_; - bool isconstraint_; - bool row_; - bool deferrable_; - int32_t timing_; - int32_t events_; - bool initdeferred_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreatePLangStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreatePLangStmt) */ { - public: - inline CreatePLangStmt() : CreatePLangStmt(nullptr) {} - ~CreatePLangStmt() override; - explicit PROTOBUF_CONSTEXPR CreatePLangStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreatePLangStmt(const CreatePLangStmt& from); - CreatePLangStmt(CreatePLangStmt&& from) noexcept - : CreatePLangStmt() { - *this = ::std::move(from); - } - - inline CreatePLangStmt& operator=(const CreatePLangStmt& from) { - CopyFrom(from); - return *this; - } - inline CreatePLangStmt& operator=(CreatePLangStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreatePLangStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreatePLangStmt* internal_default_instance() { - return reinterpret_cast( - &_CreatePLangStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 112; - - friend void swap(CreatePLangStmt& a, CreatePLangStmt& b) { - a.Swap(&b); - } - inline void Swap(CreatePLangStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreatePLangStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreatePLangStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreatePLangStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreatePLangStmt& from) { - CreatePLangStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreatePLangStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreatePLangStmt"; - } - protected: - explicit CreatePLangStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPlhandlerFieldNumber = 3, - kPlinlineFieldNumber = 4, - kPlvalidatorFieldNumber = 5, - kPlnameFieldNumber = 2, - kReplaceFieldNumber = 1, - kPltrustedFieldNumber = 6, - }; - // repeated .pg_query.Node plhandler = 3 [json_name = "plhandler"]; - int plhandler_size() const; - private: - int _internal_plhandler_size() const; - public: - void clear_plhandler(); - ::pg_query::Node* mutable_plhandler(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_plhandler(); - private: - const ::pg_query::Node& _internal_plhandler(int index) const; - ::pg_query::Node* _internal_add_plhandler(); - public: - const ::pg_query::Node& plhandler(int index) const; - ::pg_query::Node* add_plhandler(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - plhandler() const; - - // repeated .pg_query.Node plinline = 4 [json_name = "plinline"]; - int plinline_size() const; - private: - int _internal_plinline_size() const; - public: - void clear_plinline(); - ::pg_query::Node* mutable_plinline(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_plinline(); - private: - const ::pg_query::Node& _internal_plinline(int index) const; - ::pg_query::Node* _internal_add_plinline(); - public: - const ::pg_query::Node& plinline(int index) const; - ::pg_query::Node* add_plinline(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - plinline() const; - - // repeated .pg_query.Node plvalidator = 5 [json_name = "plvalidator"]; - int plvalidator_size() const; - private: - int _internal_plvalidator_size() const; - public: - void clear_plvalidator(); - ::pg_query::Node* mutable_plvalidator(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_plvalidator(); - private: - const ::pg_query::Node& _internal_plvalidator(int index) const; - ::pg_query::Node* _internal_add_plvalidator(); - public: - const ::pg_query::Node& plvalidator(int index) const; - ::pg_query::Node* add_plvalidator(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - plvalidator() const; - - // string plname = 2 [json_name = "plname"]; - void clear_plname(); - const std::string& plname() const; - template - void set_plname(ArgT0&& arg0, ArgT... args); - std::string* mutable_plname(); - PROTOBUF_NODISCARD std::string* release_plname(); - void set_allocated_plname(std::string* plname); - private: - const std::string& _internal_plname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_plname(const std::string& value); - std::string* _internal_mutable_plname(); - public: - - // bool replace = 1 [json_name = "replace"]; - void clear_replace(); - bool replace() const; - void set_replace(bool value); - private: - bool _internal_replace() const; - void _internal_set_replace(bool value); - public: - - // bool pltrusted = 6 [json_name = "pltrusted"]; - void clear_pltrusted(); - bool pltrusted() const; - void set_pltrusted(bool value); - private: - bool _internal_pltrusted() const; - void _internal_set_pltrusted(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreatePLangStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > plhandler_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > plinline_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > plvalidator_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr plname_; - bool replace_; - bool pltrusted_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateRoleStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateRoleStmt) */ { - public: - inline CreateRoleStmt() : CreateRoleStmt(nullptr) {} - ~CreateRoleStmt() override; - explicit PROTOBUF_CONSTEXPR CreateRoleStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateRoleStmt(const CreateRoleStmt& from); - CreateRoleStmt(CreateRoleStmt&& from) noexcept - : CreateRoleStmt() { - *this = ::std::move(from); - } - - inline CreateRoleStmt& operator=(const CreateRoleStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateRoleStmt& operator=(CreateRoleStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateRoleStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateRoleStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateRoleStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 113; - - friend void swap(CreateRoleStmt& a, CreateRoleStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateRoleStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateRoleStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateRoleStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateRoleStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateRoleStmt& from) { - CreateRoleStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateRoleStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateRoleStmt"; - } - protected: - explicit CreateRoleStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 3, - kRoleFieldNumber = 2, - kStmtTypeFieldNumber = 1, - }; - // repeated .pg_query.Node options = 3 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string role = 2 [json_name = "role"]; - void clear_role(); - const std::string& role() const; - template - void set_role(ArgT0&& arg0, ArgT... args); - std::string* mutable_role(); - PROTOBUF_NODISCARD std::string* release_role(); - void set_allocated_role(std::string* role); - private: - const std::string& _internal_role() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_role(const std::string& value); - std::string* _internal_mutable_role(); - public: - - // .pg_query.RoleStmtType stmt_type = 1 [json_name = "stmt_type"]; - void clear_stmt_type(); - ::pg_query::RoleStmtType stmt_type() const; - void set_stmt_type(::pg_query::RoleStmtType value); - private: - ::pg_query::RoleStmtType _internal_stmt_type() const; - void _internal_set_stmt_type(::pg_query::RoleStmtType value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreateRoleStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr role_; - int stmt_type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterRoleStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterRoleStmt) */ { - public: - inline AlterRoleStmt() : AlterRoleStmt(nullptr) {} - ~AlterRoleStmt() override; - explicit PROTOBUF_CONSTEXPR AlterRoleStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterRoleStmt(const AlterRoleStmt& from); - AlterRoleStmt(AlterRoleStmt&& from) noexcept - : AlterRoleStmt() { - *this = ::std::move(from); - } - - inline AlterRoleStmt& operator=(const AlterRoleStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterRoleStmt& operator=(AlterRoleStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterRoleStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterRoleStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterRoleStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 114; - - friend void swap(AlterRoleStmt& a, AlterRoleStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterRoleStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterRoleStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterRoleStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterRoleStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterRoleStmt& from) { - AlterRoleStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterRoleStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterRoleStmt"; - } - protected: - explicit AlterRoleStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 2, - kRoleFieldNumber = 1, - kActionFieldNumber = 3, - }; - // repeated .pg_query.Node options = 2 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // .pg_query.RoleSpec role = 1 [json_name = "role"]; - bool has_role() const; - private: - bool _internal_has_role() const; - public: - void clear_role(); - const ::pg_query::RoleSpec& role() const; - PROTOBUF_NODISCARD ::pg_query::RoleSpec* release_role(); - ::pg_query::RoleSpec* mutable_role(); - void set_allocated_role(::pg_query::RoleSpec* role); - private: - const ::pg_query::RoleSpec& _internal_role() const; - ::pg_query::RoleSpec* _internal_mutable_role(); - public: - void unsafe_arena_set_allocated_role( - ::pg_query::RoleSpec* role); - ::pg_query::RoleSpec* unsafe_arena_release_role(); - - // int32 action = 3 [json_name = "action"]; - void clear_action(); - int32_t action() const; - void set_action(int32_t value); - private: - int32_t _internal_action() const; - void _internal_set_action(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterRoleStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::pg_query::RoleSpec* role_; - int32_t action_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class DropRoleStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.DropRoleStmt) */ { - public: - inline DropRoleStmt() : DropRoleStmt(nullptr) {} - ~DropRoleStmt() override; - explicit PROTOBUF_CONSTEXPR DropRoleStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - DropRoleStmt(const DropRoleStmt& from); - DropRoleStmt(DropRoleStmt&& from) noexcept - : DropRoleStmt() { - *this = ::std::move(from); - } - - inline DropRoleStmt& operator=(const DropRoleStmt& from) { - CopyFrom(from); - return *this; - } - inline DropRoleStmt& operator=(DropRoleStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DropRoleStmt& default_instance() { - return *internal_default_instance(); - } - static inline const DropRoleStmt* internal_default_instance() { - return reinterpret_cast( - &_DropRoleStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 115; - - friend void swap(DropRoleStmt& a, DropRoleStmt& b) { - a.Swap(&b); - } - inline void Swap(DropRoleStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DropRoleStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DropRoleStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DropRoleStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DropRoleStmt& from) { - DropRoleStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DropRoleStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.DropRoleStmt"; - } - protected: - explicit DropRoleStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRolesFieldNumber = 1, - kMissingOkFieldNumber = 2, - }; - // repeated .pg_query.Node roles = 1 [json_name = "roles"]; - int roles_size() const; - private: - int _internal_roles_size() const; - public: - void clear_roles(); - ::pg_query::Node* mutable_roles(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_roles(); - private: - const ::pg_query::Node& _internal_roles(int index) const; - ::pg_query::Node* _internal_add_roles(); - public: - const ::pg_query::Node& roles(int index) const; - ::pg_query::Node* add_roles(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - roles() const; - - // bool missing_ok = 2 [json_name = "missing_ok"]; - void clear_missing_ok(); - bool missing_ok() const; - void set_missing_ok(bool value); - private: - bool _internal_missing_ok() const; - void _internal_set_missing_ok(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.DropRoleStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > roles_; - bool missing_ok_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class LockStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.LockStmt) */ { - public: - inline LockStmt() : LockStmt(nullptr) {} - ~LockStmt() override; - explicit PROTOBUF_CONSTEXPR LockStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - LockStmt(const LockStmt& from); - LockStmt(LockStmt&& from) noexcept - : LockStmt() { - *this = ::std::move(from); - } - - inline LockStmt& operator=(const LockStmt& from) { - CopyFrom(from); - return *this; - } - inline LockStmt& operator=(LockStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const LockStmt& default_instance() { - return *internal_default_instance(); - } - static inline const LockStmt* internal_default_instance() { - return reinterpret_cast( - &_LockStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 116; - - friend void swap(LockStmt& a, LockStmt& b) { - a.Swap(&b); - } - inline void Swap(LockStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LockStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - LockStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const LockStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const LockStmt& from) { - LockStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(LockStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.LockStmt"; - } - protected: - explicit LockStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRelationsFieldNumber = 1, - kModeFieldNumber = 2, - kNowaitFieldNumber = 3, - }; - // repeated .pg_query.Node relations = 1 [json_name = "relations"]; - int relations_size() const; - private: - int _internal_relations_size() const; - public: - void clear_relations(); - ::pg_query::Node* mutable_relations(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_relations(); - private: - const ::pg_query::Node& _internal_relations(int index) const; - ::pg_query::Node* _internal_add_relations(); - public: - const ::pg_query::Node& relations(int index) const; - ::pg_query::Node* add_relations(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - relations() const; - - // int32 mode = 2 [json_name = "mode"]; - void clear_mode(); - int32_t mode() const; - void set_mode(int32_t value); - private: - int32_t _internal_mode() const; - void _internal_set_mode(int32_t value); - public: - - // bool nowait = 3 [json_name = "nowait"]; - void clear_nowait(); - bool nowait() const; - void set_nowait(bool value); - private: - bool _internal_nowait() const; - void _internal_set_nowait(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.LockStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > relations_; - int32_t mode_; - bool nowait_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ConstraintsSetStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ConstraintsSetStmt) */ { - public: - inline ConstraintsSetStmt() : ConstraintsSetStmt(nullptr) {} - ~ConstraintsSetStmt() override; - explicit PROTOBUF_CONSTEXPR ConstraintsSetStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConstraintsSetStmt(const ConstraintsSetStmt& from); - ConstraintsSetStmt(ConstraintsSetStmt&& from) noexcept - : ConstraintsSetStmt() { - *this = ::std::move(from); - } - - inline ConstraintsSetStmt& operator=(const ConstraintsSetStmt& from) { - CopyFrom(from); - return *this; - } - inline ConstraintsSetStmt& operator=(ConstraintsSetStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ConstraintsSetStmt& default_instance() { - return *internal_default_instance(); - } - static inline const ConstraintsSetStmt* internal_default_instance() { - return reinterpret_cast( - &_ConstraintsSetStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 117; - - friend void swap(ConstraintsSetStmt& a, ConstraintsSetStmt& b) { - a.Swap(&b); - } - inline void Swap(ConstraintsSetStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConstraintsSetStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConstraintsSetStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ConstraintsSetStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ConstraintsSetStmt& from) { - ConstraintsSetStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ConstraintsSetStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ConstraintsSetStmt"; - } - protected: - explicit ConstraintsSetStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kConstraintsFieldNumber = 1, - kDeferredFieldNumber = 2, - }; - // repeated .pg_query.Node constraints = 1 [json_name = "constraints"]; - int constraints_size() const; - private: - int _internal_constraints_size() const; - public: - void clear_constraints(); - ::pg_query::Node* mutable_constraints(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_constraints(); - private: - const ::pg_query::Node& _internal_constraints(int index) const; - ::pg_query::Node* _internal_add_constraints(); - public: - const ::pg_query::Node& constraints(int index) const; - ::pg_query::Node* add_constraints(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - constraints() const; - - // bool deferred = 2 [json_name = "deferred"]; - void clear_deferred(); - bool deferred() const; - void set_deferred(bool value); - private: - bool _internal_deferred() const; - void _internal_set_deferred(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.ConstraintsSetStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > constraints_; - bool deferred_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ReindexStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ReindexStmt) */ { - public: - inline ReindexStmt() : ReindexStmt(nullptr) {} - ~ReindexStmt() override; - explicit PROTOBUF_CONSTEXPR ReindexStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ReindexStmt(const ReindexStmt& from); - ReindexStmt(ReindexStmt&& from) noexcept - : ReindexStmt() { - *this = ::std::move(from); - } - - inline ReindexStmt& operator=(const ReindexStmt& from) { - CopyFrom(from); - return *this; - } - inline ReindexStmt& operator=(ReindexStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ReindexStmt& default_instance() { - return *internal_default_instance(); - } - static inline const ReindexStmt* internal_default_instance() { - return reinterpret_cast( - &_ReindexStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 118; - - friend void swap(ReindexStmt& a, ReindexStmt& b) { - a.Swap(&b); - } - inline void Swap(ReindexStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ReindexStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ReindexStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ReindexStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ReindexStmt& from) { - ReindexStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ReindexStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ReindexStmt"; - } - protected: - explicit ReindexStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kParamsFieldNumber = 4, - kNameFieldNumber = 3, - kRelationFieldNumber = 2, - kKindFieldNumber = 1, - }; - // repeated .pg_query.Node params = 4 [json_name = "params"]; - int params_size() const; - private: - int _internal_params_size() const; - public: - void clear_params(); - ::pg_query::Node* mutable_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_params(); - private: - const ::pg_query::Node& _internal_params(int index) const; - ::pg_query::Node* _internal_add_params(); - public: - const ::pg_query::Node& params(int index) const; - ::pg_query::Node* add_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - params() const; - - // string name = 3 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // .pg_query.RangeVar relation = 2 [json_name = "relation"]; - bool has_relation() const; - private: - bool _internal_has_relation() const; - public: - void clear_relation(); - const ::pg_query::RangeVar& relation() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_relation(); - ::pg_query::RangeVar* mutable_relation(); - void set_allocated_relation(::pg_query::RangeVar* relation); - private: - const ::pg_query::RangeVar& _internal_relation() const; - ::pg_query::RangeVar* _internal_mutable_relation(); - public: - void unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation); - ::pg_query::RangeVar* unsafe_arena_release_relation(); - - // .pg_query.ReindexObjectType kind = 1 [json_name = "kind"]; - void clear_kind(); - ::pg_query::ReindexObjectType kind() const; - void set_kind(::pg_query::ReindexObjectType value); - private: - ::pg_query::ReindexObjectType _internal_kind() const; - void _internal_set_kind(::pg_query::ReindexObjectType value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.ReindexStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::pg_query::RangeVar* relation_; - int kind_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CheckPointStmt final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:pg_query.CheckPointStmt) */ { - public: - inline CheckPointStmt() : CheckPointStmt(nullptr) {} - explicit PROTOBUF_CONSTEXPR CheckPointStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CheckPointStmt(const CheckPointStmt& from); - CheckPointStmt(CheckPointStmt&& from) noexcept - : CheckPointStmt() { - *this = ::std::move(from); - } - - inline CheckPointStmt& operator=(const CheckPointStmt& from) { - CopyFrom(from); - return *this; - } - inline CheckPointStmt& operator=(CheckPointStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CheckPointStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CheckPointStmt* internal_default_instance() { - return reinterpret_cast( - &_CheckPointStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 119; - - friend void swap(CheckPointStmt& a, CheckPointStmt& b) { - a.Swap(&b); - } - inline void Swap(CheckPointStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CheckPointStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CheckPointStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const CheckPointStmt& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const CheckPointStmt& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CheckPointStmt"; - } - protected: - explicit CheckPointStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:pg_query.CheckPointStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateSchemaStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateSchemaStmt) */ { - public: - inline CreateSchemaStmt() : CreateSchemaStmt(nullptr) {} - ~CreateSchemaStmt() override; - explicit PROTOBUF_CONSTEXPR CreateSchemaStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateSchemaStmt(const CreateSchemaStmt& from); - CreateSchemaStmt(CreateSchemaStmt&& from) noexcept - : CreateSchemaStmt() { - *this = ::std::move(from); - } - - inline CreateSchemaStmt& operator=(const CreateSchemaStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateSchemaStmt& operator=(CreateSchemaStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateSchemaStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateSchemaStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateSchemaStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 120; - - friend void swap(CreateSchemaStmt& a, CreateSchemaStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateSchemaStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateSchemaStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateSchemaStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateSchemaStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateSchemaStmt& from) { - CreateSchemaStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateSchemaStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateSchemaStmt"; - } - protected: - explicit CreateSchemaStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSchemaEltsFieldNumber = 3, - kSchemanameFieldNumber = 1, - kAuthroleFieldNumber = 2, - kIfNotExistsFieldNumber = 4, - }; - // repeated .pg_query.Node schema_elts = 3 [json_name = "schemaElts"]; - int schema_elts_size() const; - private: - int _internal_schema_elts_size() const; - public: - void clear_schema_elts(); - ::pg_query::Node* mutable_schema_elts(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_schema_elts(); - private: - const ::pg_query::Node& _internal_schema_elts(int index) const; - ::pg_query::Node* _internal_add_schema_elts(); - public: - const ::pg_query::Node& schema_elts(int index) const; - ::pg_query::Node* add_schema_elts(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - schema_elts() const; - - // string schemaname = 1 [json_name = "schemaname"]; - void clear_schemaname(); - const std::string& schemaname() const; - template - void set_schemaname(ArgT0&& arg0, ArgT... args); - std::string* mutable_schemaname(); - PROTOBUF_NODISCARD std::string* release_schemaname(); - void set_allocated_schemaname(std::string* schemaname); - private: - const std::string& _internal_schemaname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_schemaname(const std::string& value); - std::string* _internal_mutable_schemaname(); - public: - - // .pg_query.RoleSpec authrole = 2 [json_name = "authrole"]; - bool has_authrole() const; - private: - bool _internal_has_authrole() const; - public: - void clear_authrole(); - const ::pg_query::RoleSpec& authrole() const; - PROTOBUF_NODISCARD ::pg_query::RoleSpec* release_authrole(); - ::pg_query::RoleSpec* mutable_authrole(); - void set_allocated_authrole(::pg_query::RoleSpec* authrole); - private: - const ::pg_query::RoleSpec& _internal_authrole() const; - ::pg_query::RoleSpec* _internal_mutable_authrole(); - public: - void unsafe_arena_set_allocated_authrole( - ::pg_query::RoleSpec* authrole); - ::pg_query::RoleSpec* unsafe_arena_release_authrole(); - - // bool if_not_exists = 4 [json_name = "if_not_exists"]; - void clear_if_not_exists(); - bool if_not_exists() const; - void set_if_not_exists(bool value); - private: - bool _internal_if_not_exists() const; - void _internal_set_if_not_exists(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreateSchemaStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > schema_elts_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schemaname_; - ::pg_query::RoleSpec* authrole_; - bool if_not_exists_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterDatabaseStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterDatabaseStmt) */ { - public: - inline AlterDatabaseStmt() : AlterDatabaseStmt(nullptr) {} - ~AlterDatabaseStmt() override; - explicit PROTOBUF_CONSTEXPR AlterDatabaseStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterDatabaseStmt(const AlterDatabaseStmt& from); - AlterDatabaseStmt(AlterDatabaseStmt&& from) noexcept - : AlterDatabaseStmt() { - *this = ::std::move(from); - } - - inline AlterDatabaseStmt& operator=(const AlterDatabaseStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterDatabaseStmt& operator=(AlterDatabaseStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterDatabaseStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterDatabaseStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterDatabaseStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 121; - - friend void swap(AlterDatabaseStmt& a, AlterDatabaseStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterDatabaseStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterDatabaseStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterDatabaseStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterDatabaseStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterDatabaseStmt& from) { - AlterDatabaseStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterDatabaseStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterDatabaseStmt"; - } - protected: - explicit AlterDatabaseStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 2, - kDbnameFieldNumber = 1, - }; - // repeated .pg_query.Node options = 2 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string dbname = 1 [json_name = "dbname"]; - void clear_dbname(); - const std::string& dbname() const; - template - void set_dbname(ArgT0&& arg0, ArgT... args); - std::string* mutable_dbname(); - PROTOBUF_NODISCARD std::string* release_dbname(); - void set_allocated_dbname(std::string* dbname); - private: - const std::string& _internal_dbname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_dbname(const std::string& value); - std::string* _internal_mutable_dbname(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterDatabaseStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dbname_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterDatabaseRefreshCollStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterDatabaseRefreshCollStmt) */ { - public: - inline AlterDatabaseRefreshCollStmt() : AlterDatabaseRefreshCollStmt(nullptr) {} - ~AlterDatabaseRefreshCollStmt() override; - explicit PROTOBUF_CONSTEXPR AlterDatabaseRefreshCollStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterDatabaseRefreshCollStmt(const AlterDatabaseRefreshCollStmt& from); - AlterDatabaseRefreshCollStmt(AlterDatabaseRefreshCollStmt&& from) noexcept - : AlterDatabaseRefreshCollStmt() { - *this = ::std::move(from); - } - - inline AlterDatabaseRefreshCollStmt& operator=(const AlterDatabaseRefreshCollStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterDatabaseRefreshCollStmt& operator=(AlterDatabaseRefreshCollStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterDatabaseRefreshCollStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterDatabaseRefreshCollStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterDatabaseRefreshCollStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 122; - - friend void swap(AlterDatabaseRefreshCollStmt& a, AlterDatabaseRefreshCollStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterDatabaseRefreshCollStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterDatabaseRefreshCollStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterDatabaseRefreshCollStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterDatabaseRefreshCollStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterDatabaseRefreshCollStmt& from) { - AlterDatabaseRefreshCollStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterDatabaseRefreshCollStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterDatabaseRefreshCollStmt"; - } - protected: - explicit AlterDatabaseRefreshCollStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDbnameFieldNumber = 1, - }; - // string dbname = 1 [json_name = "dbname"]; - void clear_dbname(); - const std::string& dbname() const; - template - void set_dbname(ArgT0&& arg0, ArgT... args); - std::string* mutable_dbname(); - PROTOBUF_NODISCARD std::string* release_dbname(); - void set_allocated_dbname(std::string* dbname); - private: - const std::string& _internal_dbname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_dbname(const std::string& value); - std::string* _internal_mutable_dbname(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterDatabaseRefreshCollStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dbname_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterDatabaseSetStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterDatabaseSetStmt) */ { - public: - inline AlterDatabaseSetStmt() : AlterDatabaseSetStmt(nullptr) {} - ~AlterDatabaseSetStmt() override; - explicit PROTOBUF_CONSTEXPR AlterDatabaseSetStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterDatabaseSetStmt(const AlterDatabaseSetStmt& from); - AlterDatabaseSetStmt(AlterDatabaseSetStmt&& from) noexcept - : AlterDatabaseSetStmt() { - *this = ::std::move(from); - } - - inline AlterDatabaseSetStmt& operator=(const AlterDatabaseSetStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterDatabaseSetStmt& operator=(AlterDatabaseSetStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterDatabaseSetStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterDatabaseSetStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterDatabaseSetStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 123; - - friend void swap(AlterDatabaseSetStmt& a, AlterDatabaseSetStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterDatabaseSetStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterDatabaseSetStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterDatabaseSetStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterDatabaseSetStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterDatabaseSetStmt& from) { - AlterDatabaseSetStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterDatabaseSetStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterDatabaseSetStmt"; - } - protected: - explicit AlterDatabaseSetStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDbnameFieldNumber = 1, - kSetstmtFieldNumber = 2, - }; - // string dbname = 1 [json_name = "dbname"]; - void clear_dbname(); - const std::string& dbname() const; - template - void set_dbname(ArgT0&& arg0, ArgT... args); - std::string* mutable_dbname(); - PROTOBUF_NODISCARD std::string* release_dbname(); - void set_allocated_dbname(std::string* dbname); - private: - const std::string& _internal_dbname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_dbname(const std::string& value); - std::string* _internal_mutable_dbname(); - public: - - // .pg_query.VariableSetStmt setstmt = 2 [json_name = "setstmt"]; - bool has_setstmt() const; - private: - bool _internal_has_setstmt() const; - public: - void clear_setstmt(); - const ::pg_query::VariableSetStmt& setstmt() const; - PROTOBUF_NODISCARD ::pg_query::VariableSetStmt* release_setstmt(); - ::pg_query::VariableSetStmt* mutable_setstmt(); - void set_allocated_setstmt(::pg_query::VariableSetStmt* setstmt); - private: - const ::pg_query::VariableSetStmt& _internal_setstmt() const; - ::pg_query::VariableSetStmt* _internal_mutable_setstmt(); - public: - void unsafe_arena_set_allocated_setstmt( - ::pg_query::VariableSetStmt* setstmt); - ::pg_query::VariableSetStmt* unsafe_arena_release_setstmt(); - - // @@protoc_insertion_point(class_scope:pg_query.AlterDatabaseSetStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dbname_; - ::pg_query::VariableSetStmt* setstmt_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterRoleSetStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterRoleSetStmt) */ { - public: - inline AlterRoleSetStmt() : AlterRoleSetStmt(nullptr) {} - ~AlterRoleSetStmt() override; - explicit PROTOBUF_CONSTEXPR AlterRoleSetStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterRoleSetStmt(const AlterRoleSetStmt& from); - AlterRoleSetStmt(AlterRoleSetStmt&& from) noexcept - : AlterRoleSetStmt() { - *this = ::std::move(from); - } - - inline AlterRoleSetStmt& operator=(const AlterRoleSetStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterRoleSetStmt& operator=(AlterRoleSetStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterRoleSetStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterRoleSetStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterRoleSetStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 124; - - friend void swap(AlterRoleSetStmt& a, AlterRoleSetStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterRoleSetStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterRoleSetStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterRoleSetStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterRoleSetStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterRoleSetStmt& from) { - AlterRoleSetStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterRoleSetStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterRoleSetStmt"; - } - protected: - explicit AlterRoleSetStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDatabaseFieldNumber = 2, - kRoleFieldNumber = 1, - kSetstmtFieldNumber = 3, - }; - // string database = 2 [json_name = "database"]; - void clear_database(); - const std::string& database() const; - template - void set_database(ArgT0&& arg0, ArgT... args); - std::string* mutable_database(); - PROTOBUF_NODISCARD std::string* release_database(); - void set_allocated_database(std::string* database); - private: - const std::string& _internal_database() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_database(const std::string& value); - std::string* _internal_mutable_database(); - public: - - // .pg_query.RoleSpec role = 1 [json_name = "role"]; - bool has_role() const; - private: - bool _internal_has_role() const; - public: - void clear_role(); - const ::pg_query::RoleSpec& role() const; - PROTOBUF_NODISCARD ::pg_query::RoleSpec* release_role(); - ::pg_query::RoleSpec* mutable_role(); - void set_allocated_role(::pg_query::RoleSpec* role); - private: - const ::pg_query::RoleSpec& _internal_role() const; - ::pg_query::RoleSpec* _internal_mutable_role(); - public: - void unsafe_arena_set_allocated_role( - ::pg_query::RoleSpec* role); - ::pg_query::RoleSpec* unsafe_arena_release_role(); - - // .pg_query.VariableSetStmt setstmt = 3 [json_name = "setstmt"]; - bool has_setstmt() const; - private: - bool _internal_has_setstmt() const; - public: - void clear_setstmt(); - const ::pg_query::VariableSetStmt& setstmt() const; - PROTOBUF_NODISCARD ::pg_query::VariableSetStmt* release_setstmt(); - ::pg_query::VariableSetStmt* mutable_setstmt(); - void set_allocated_setstmt(::pg_query::VariableSetStmt* setstmt); - private: - const ::pg_query::VariableSetStmt& _internal_setstmt() const; - ::pg_query::VariableSetStmt* _internal_mutable_setstmt(); - public: - void unsafe_arena_set_allocated_setstmt( - ::pg_query::VariableSetStmt* setstmt); - ::pg_query::VariableSetStmt* unsafe_arena_release_setstmt(); - - // @@protoc_insertion_point(class_scope:pg_query.AlterRoleSetStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_; - ::pg_query::RoleSpec* role_; - ::pg_query::VariableSetStmt* setstmt_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateConversionStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateConversionStmt) */ { - public: - inline CreateConversionStmt() : CreateConversionStmt(nullptr) {} - ~CreateConversionStmt() override; - explicit PROTOBUF_CONSTEXPR CreateConversionStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateConversionStmt(const CreateConversionStmt& from); - CreateConversionStmt(CreateConversionStmt&& from) noexcept - : CreateConversionStmt() { - *this = ::std::move(from); - } - - inline CreateConversionStmt& operator=(const CreateConversionStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateConversionStmt& operator=(CreateConversionStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateConversionStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateConversionStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateConversionStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 125; - - friend void swap(CreateConversionStmt& a, CreateConversionStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateConversionStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateConversionStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateConversionStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateConversionStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateConversionStmt& from) { - CreateConversionStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateConversionStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateConversionStmt"; - } - protected: - explicit CreateConversionStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kConversionNameFieldNumber = 1, - kFuncNameFieldNumber = 4, - kForEncodingNameFieldNumber = 2, - kToEncodingNameFieldNumber = 3, - kDefFieldNumber = 5, - }; - // repeated .pg_query.Node conversion_name = 1 [json_name = "conversion_name"]; - int conversion_name_size() const; - private: - int _internal_conversion_name_size() const; - public: - void clear_conversion_name(); - ::pg_query::Node* mutable_conversion_name(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_conversion_name(); - private: - const ::pg_query::Node& _internal_conversion_name(int index) const; - ::pg_query::Node* _internal_add_conversion_name(); - public: - const ::pg_query::Node& conversion_name(int index) const; - ::pg_query::Node* add_conversion_name(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - conversion_name() const; - - // repeated .pg_query.Node func_name = 4 [json_name = "func_name"]; - int func_name_size() const; - private: - int _internal_func_name_size() const; - public: - void clear_func_name(); - ::pg_query::Node* mutable_func_name(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_func_name(); - private: - const ::pg_query::Node& _internal_func_name(int index) const; - ::pg_query::Node* _internal_add_func_name(); - public: - const ::pg_query::Node& func_name(int index) const; - ::pg_query::Node* add_func_name(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - func_name() const; - - // string for_encoding_name = 2 [json_name = "for_encoding_name"]; - void clear_for_encoding_name(); - const std::string& for_encoding_name() const; - template - void set_for_encoding_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_for_encoding_name(); - PROTOBUF_NODISCARD std::string* release_for_encoding_name(); - void set_allocated_for_encoding_name(std::string* for_encoding_name); - private: - const std::string& _internal_for_encoding_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_for_encoding_name(const std::string& value); - std::string* _internal_mutable_for_encoding_name(); - public: - - // string to_encoding_name = 3 [json_name = "to_encoding_name"]; - void clear_to_encoding_name(); - const std::string& to_encoding_name() const; - template - void set_to_encoding_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_to_encoding_name(); - PROTOBUF_NODISCARD std::string* release_to_encoding_name(); - void set_allocated_to_encoding_name(std::string* to_encoding_name); - private: - const std::string& _internal_to_encoding_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_to_encoding_name(const std::string& value); - std::string* _internal_mutable_to_encoding_name(); - public: - - // bool def = 5 [json_name = "def"]; - void clear_def(); - bool def() const; - void set_def(bool value); - private: - bool _internal_def() const; - void _internal_set_def(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreateConversionStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > conversion_name_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > func_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr for_encoding_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr to_encoding_name_; - bool def_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateCastStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateCastStmt) */ { - public: - inline CreateCastStmt() : CreateCastStmt(nullptr) {} - ~CreateCastStmt() override; - explicit PROTOBUF_CONSTEXPR CreateCastStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateCastStmt(const CreateCastStmt& from); - CreateCastStmt(CreateCastStmt&& from) noexcept - : CreateCastStmt() { - *this = ::std::move(from); - } - - inline CreateCastStmt& operator=(const CreateCastStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateCastStmt& operator=(CreateCastStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateCastStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateCastStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateCastStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 126; - - friend void swap(CreateCastStmt& a, CreateCastStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateCastStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateCastStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateCastStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateCastStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateCastStmt& from) { - CreateCastStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateCastStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateCastStmt"; - } - protected: - explicit CreateCastStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSourcetypeFieldNumber = 1, - kTargettypeFieldNumber = 2, - kFuncFieldNumber = 3, - kContextFieldNumber = 4, - kInoutFieldNumber = 5, - }; - // .pg_query.TypeName sourcetype = 1 [json_name = "sourcetype"]; - bool has_sourcetype() const; - private: - bool _internal_has_sourcetype() const; - public: - void clear_sourcetype(); - const ::pg_query::TypeName& sourcetype() const; - PROTOBUF_NODISCARD ::pg_query::TypeName* release_sourcetype(); - ::pg_query::TypeName* mutable_sourcetype(); - void set_allocated_sourcetype(::pg_query::TypeName* sourcetype); - private: - const ::pg_query::TypeName& _internal_sourcetype() const; - ::pg_query::TypeName* _internal_mutable_sourcetype(); - public: - void unsafe_arena_set_allocated_sourcetype( - ::pg_query::TypeName* sourcetype); - ::pg_query::TypeName* unsafe_arena_release_sourcetype(); - - // .pg_query.TypeName targettype = 2 [json_name = "targettype"]; - bool has_targettype() const; - private: - bool _internal_has_targettype() const; - public: - void clear_targettype(); - const ::pg_query::TypeName& targettype() const; - PROTOBUF_NODISCARD ::pg_query::TypeName* release_targettype(); - ::pg_query::TypeName* mutable_targettype(); - void set_allocated_targettype(::pg_query::TypeName* targettype); - private: - const ::pg_query::TypeName& _internal_targettype() const; - ::pg_query::TypeName* _internal_mutable_targettype(); - public: - void unsafe_arena_set_allocated_targettype( - ::pg_query::TypeName* targettype); - ::pg_query::TypeName* unsafe_arena_release_targettype(); - - // .pg_query.ObjectWithArgs func = 3 [json_name = "func"]; - bool has_func() const; - private: - bool _internal_has_func() const; - public: - void clear_func(); - const ::pg_query::ObjectWithArgs& func() const; - PROTOBUF_NODISCARD ::pg_query::ObjectWithArgs* release_func(); - ::pg_query::ObjectWithArgs* mutable_func(); - void set_allocated_func(::pg_query::ObjectWithArgs* func); - private: - const ::pg_query::ObjectWithArgs& _internal_func() const; - ::pg_query::ObjectWithArgs* _internal_mutable_func(); - public: - void unsafe_arena_set_allocated_func( - ::pg_query::ObjectWithArgs* func); - ::pg_query::ObjectWithArgs* unsafe_arena_release_func(); - - // .pg_query.CoercionContext context = 4 [json_name = "context"]; - void clear_context(); - ::pg_query::CoercionContext context() const; - void set_context(::pg_query::CoercionContext value); - private: - ::pg_query::CoercionContext _internal_context() const; - void _internal_set_context(::pg_query::CoercionContext value); - public: - - // bool inout = 5 [json_name = "inout"]; - void clear_inout(); - bool inout() const; - void set_inout(bool value); - private: - bool _internal_inout() const; - void _internal_set_inout(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreateCastStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::TypeName* sourcetype_; - ::pg_query::TypeName* targettype_; - ::pg_query::ObjectWithArgs* func_; - int context_; - bool inout_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateOpClassStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateOpClassStmt) */ { - public: - inline CreateOpClassStmt() : CreateOpClassStmt(nullptr) {} - ~CreateOpClassStmt() override; - explicit PROTOBUF_CONSTEXPR CreateOpClassStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateOpClassStmt(const CreateOpClassStmt& from); - CreateOpClassStmt(CreateOpClassStmt&& from) noexcept - : CreateOpClassStmt() { - *this = ::std::move(from); - } - - inline CreateOpClassStmt& operator=(const CreateOpClassStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateOpClassStmt& operator=(CreateOpClassStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateOpClassStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateOpClassStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateOpClassStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 127; - - friend void swap(CreateOpClassStmt& a, CreateOpClassStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateOpClassStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateOpClassStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateOpClassStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateOpClassStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateOpClassStmt& from) { - CreateOpClassStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateOpClassStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateOpClassStmt"; - } - protected: - explicit CreateOpClassStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOpclassnameFieldNumber = 1, - kOpfamilynameFieldNumber = 2, - kItemsFieldNumber = 5, - kAmnameFieldNumber = 3, - kDatatypeFieldNumber = 4, - kIsDefaultFieldNumber = 6, - }; - // repeated .pg_query.Node opclassname = 1 [json_name = "opclassname"]; - int opclassname_size() const; - private: - int _internal_opclassname_size() const; - public: - void clear_opclassname(); - ::pg_query::Node* mutable_opclassname(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_opclassname(); - private: - const ::pg_query::Node& _internal_opclassname(int index) const; - ::pg_query::Node* _internal_add_opclassname(); - public: - const ::pg_query::Node& opclassname(int index) const; - ::pg_query::Node* add_opclassname(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - opclassname() const; - - // repeated .pg_query.Node opfamilyname = 2 [json_name = "opfamilyname"]; - int opfamilyname_size() const; - private: - int _internal_opfamilyname_size() const; - public: - void clear_opfamilyname(); - ::pg_query::Node* mutable_opfamilyname(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_opfamilyname(); - private: - const ::pg_query::Node& _internal_opfamilyname(int index) const; - ::pg_query::Node* _internal_add_opfamilyname(); - public: - const ::pg_query::Node& opfamilyname(int index) const; - ::pg_query::Node* add_opfamilyname(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - opfamilyname() const; - - // repeated .pg_query.Node items = 5 [json_name = "items"]; - int items_size() const; - private: - int _internal_items_size() const; - public: - void clear_items(); - ::pg_query::Node* mutable_items(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_items(); - private: - const ::pg_query::Node& _internal_items(int index) const; - ::pg_query::Node* _internal_add_items(); - public: - const ::pg_query::Node& items(int index) const; - ::pg_query::Node* add_items(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - items() const; - - // string amname = 3 [json_name = "amname"]; - void clear_amname(); - const std::string& amname() const; - template - void set_amname(ArgT0&& arg0, ArgT... args); - std::string* mutable_amname(); - PROTOBUF_NODISCARD std::string* release_amname(); - void set_allocated_amname(std::string* amname); - private: - const std::string& _internal_amname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_amname(const std::string& value); - std::string* _internal_mutable_amname(); - public: - - // .pg_query.TypeName datatype = 4 [json_name = "datatype"]; - bool has_datatype() const; - private: - bool _internal_has_datatype() const; - public: - void clear_datatype(); - const ::pg_query::TypeName& datatype() const; - PROTOBUF_NODISCARD ::pg_query::TypeName* release_datatype(); - ::pg_query::TypeName* mutable_datatype(); - void set_allocated_datatype(::pg_query::TypeName* datatype); - private: - const ::pg_query::TypeName& _internal_datatype() const; - ::pg_query::TypeName* _internal_mutable_datatype(); - public: - void unsafe_arena_set_allocated_datatype( - ::pg_query::TypeName* datatype); - ::pg_query::TypeName* unsafe_arena_release_datatype(); - - // bool is_default = 6 [json_name = "isDefault"]; - void clear_is_default(); - bool is_default() const; - void set_is_default(bool value); - private: - bool _internal_is_default() const; - void _internal_set_is_default(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreateOpClassStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > opclassname_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > opfamilyname_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > items_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amname_; - ::pg_query::TypeName* datatype_; - bool is_default_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateOpFamilyStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateOpFamilyStmt) */ { - public: - inline CreateOpFamilyStmt() : CreateOpFamilyStmt(nullptr) {} - ~CreateOpFamilyStmt() override; - explicit PROTOBUF_CONSTEXPR CreateOpFamilyStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateOpFamilyStmt(const CreateOpFamilyStmt& from); - CreateOpFamilyStmt(CreateOpFamilyStmt&& from) noexcept - : CreateOpFamilyStmt() { - *this = ::std::move(from); - } - - inline CreateOpFamilyStmt& operator=(const CreateOpFamilyStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateOpFamilyStmt& operator=(CreateOpFamilyStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateOpFamilyStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateOpFamilyStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateOpFamilyStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 128; - - friend void swap(CreateOpFamilyStmt& a, CreateOpFamilyStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateOpFamilyStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateOpFamilyStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateOpFamilyStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateOpFamilyStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateOpFamilyStmt& from) { - CreateOpFamilyStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateOpFamilyStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateOpFamilyStmt"; - } - protected: - explicit CreateOpFamilyStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOpfamilynameFieldNumber = 1, - kAmnameFieldNumber = 2, - }; - // repeated .pg_query.Node opfamilyname = 1 [json_name = "opfamilyname"]; - int opfamilyname_size() const; - private: - int _internal_opfamilyname_size() const; - public: - void clear_opfamilyname(); - ::pg_query::Node* mutable_opfamilyname(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_opfamilyname(); - private: - const ::pg_query::Node& _internal_opfamilyname(int index) const; - ::pg_query::Node* _internal_add_opfamilyname(); - public: - const ::pg_query::Node& opfamilyname(int index) const; - ::pg_query::Node* add_opfamilyname(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - opfamilyname() const; - - // string amname = 2 [json_name = "amname"]; - void clear_amname(); - const std::string& amname() const; - template - void set_amname(ArgT0&& arg0, ArgT... args); - std::string* mutable_amname(); - PROTOBUF_NODISCARD std::string* release_amname(); - void set_allocated_amname(std::string* amname); - private: - const std::string& _internal_amname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_amname(const std::string& value); - std::string* _internal_mutable_amname(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreateOpFamilyStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > opfamilyname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amname_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterOpFamilyStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterOpFamilyStmt) */ { - public: - inline AlterOpFamilyStmt() : AlterOpFamilyStmt(nullptr) {} - ~AlterOpFamilyStmt() override; - explicit PROTOBUF_CONSTEXPR AlterOpFamilyStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterOpFamilyStmt(const AlterOpFamilyStmt& from); - AlterOpFamilyStmt(AlterOpFamilyStmt&& from) noexcept - : AlterOpFamilyStmt() { - *this = ::std::move(from); - } - - inline AlterOpFamilyStmt& operator=(const AlterOpFamilyStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterOpFamilyStmt& operator=(AlterOpFamilyStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterOpFamilyStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterOpFamilyStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterOpFamilyStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 129; - - friend void swap(AlterOpFamilyStmt& a, AlterOpFamilyStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterOpFamilyStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterOpFamilyStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterOpFamilyStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterOpFamilyStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterOpFamilyStmt& from) { - AlterOpFamilyStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterOpFamilyStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterOpFamilyStmt"; - } - protected: - explicit AlterOpFamilyStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOpfamilynameFieldNumber = 1, - kItemsFieldNumber = 4, - kAmnameFieldNumber = 2, - kIsDropFieldNumber = 3, - }; - // repeated .pg_query.Node opfamilyname = 1 [json_name = "opfamilyname"]; - int opfamilyname_size() const; - private: - int _internal_opfamilyname_size() const; - public: - void clear_opfamilyname(); - ::pg_query::Node* mutable_opfamilyname(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_opfamilyname(); - private: - const ::pg_query::Node& _internal_opfamilyname(int index) const; - ::pg_query::Node* _internal_add_opfamilyname(); - public: - const ::pg_query::Node& opfamilyname(int index) const; - ::pg_query::Node* add_opfamilyname(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - opfamilyname() const; - - // repeated .pg_query.Node items = 4 [json_name = "items"]; - int items_size() const; - private: - int _internal_items_size() const; - public: - void clear_items(); - ::pg_query::Node* mutable_items(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_items(); - private: - const ::pg_query::Node& _internal_items(int index) const; - ::pg_query::Node* _internal_add_items(); - public: - const ::pg_query::Node& items(int index) const; - ::pg_query::Node* add_items(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - items() const; - - // string amname = 2 [json_name = "amname"]; - void clear_amname(); - const std::string& amname() const; - template - void set_amname(ArgT0&& arg0, ArgT... args); - std::string* mutable_amname(); - PROTOBUF_NODISCARD std::string* release_amname(); - void set_allocated_amname(std::string* amname); - private: - const std::string& _internal_amname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_amname(const std::string& value); - std::string* _internal_mutable_amname(); - public: - - // bool is_drop = 3 [json_name = "isDrop"]; - void clear_is_drop(); - bool is_drop() const; - void set_is_drop(bool value); - private: - bool _internal_is_drop() const; - void _internal_set_is_drop(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterOpFamilyStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > opfamilyname_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > items_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amname_; - bool is_drop_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class PrepareStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.PrepareStmt) */ { - public: - inline PrepareStmt() : PrepareStmt(nullptr) {} - ~PrepareStmt() override; - explicit PROTOBUF_CONSTEXPR PrepareStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PrepareStmt(const PrepareStmt& from); - PrepareStmt(PrepareStmt&& from) noexcept - : PrepareStmt() { - *this = ::std::move(from); - } - - inline PrepareStmt& operator=(const PrepareStmt& from) { - CopyFrom(from); - return *this; - } - inline PrepareStmt& operator=(PrepareStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const PrepareStmt& default_instance() { - return *internal_default_instance(); - } - static inline const PrepareStmt* internal_default_instance() { - return reinterpret_cast( - &_PrepareStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 130; - - friend void swap(PrepareStmt& a, PrepareStmt& b) { - a.Swap(&b); - } - inline void Swap(PrepareStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PrepareStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PrepareStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PrepareStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const PrepareStmt& from) { - PrepareStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PrepareStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.PrepareStmt"; - } - protected: - explicit PrepareStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArgtypesFieldNumber = 2, - kNameFieldNumber = 1, - kQueryFieldNumber = 3, - }; - // repeated .pg_query.Node argtypes = 2 [json_name = "argtypes"]; - int argtypes_size() const; - private: - int _internal_argtypes_size() const; - public: - void clear_argtypes(); - ::pg_query::Node* mutable_argtypes(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_argtypes(); - private: - const ::pg_query::Node& _internal_argtypes(int index) const; - ::pg_query::Node* _internal_add_argtypes(); - public: - const ::pg_query::Node& argtypes(int index) const; - ::pg_query::Node* add_argtypes(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - argtypes() const; - - // string name = 1 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // .pg_query.Node query = 3 [json_name = "query"]; - bool has_query() const; - private: - bool _internal_has_query() const; - public: - void clear_query(); - const ::pg_query::Node& query() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_query(); - ::pg_query::Node* mutable_query(); - void set_allocated_query(::pg_query::Node* query); - private: - const ::pg_query::Node& _internal_query() const; - ::pg_query::Node* _internal_mutable_query(); - public: - void unsafe_arena_set_allocated_query( - ::pg_query::Node* query); - ::pg_query::Node* unsafe_arena_release_query(); - - // @@protoc_insertion_point(class_scope:pg_query.PrepareStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > argtypes_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::pg_query::Node* query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ExecuteStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ExecuteStmt) */ { - public: - inline ExecuteStmt() : ExecuteStmt(nullptr) {} - ~ExecuteStmt() override; - explicit PROTOBUF_CONSTEXPR ExecuteStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ExecuteStmt(const ExecuteStmt& from); - ExecuteStmt(ExecuteStmt&& from) noexcept - : ExecuteStmt() { - *this = ::std::move(from); - } - - inline ExecuteStmt& operator=(const ExecuteStmt& from) { - CopyFrom(from); - return *this; - } - inline ExecuteStmt& operator=(ExecuteStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ExecuteStmt& default_instance() { - return *internal_default_instance(); - } - static inline const ExecuteStmt* internal_default_instance() { - return reinterpret_cast( - &_ExecuteStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 131; - - friend void swap(ExecuteStmt& a, ExecuteStmt& b) { - a.Swap(&b); - } - inline void Swap(ExecuteStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ExecuteStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ExecuteStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ExecuteStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ExecuteStmt& from) { - ExecuteStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ExecuteStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ExecuteStmt"; - } - protected: - explicit ExecuteStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kParamsFieldNumber = 2, - kNameFieldNumber = 1, - }; - // repeated .pg_query.Node params = 2 [json_name = "params"]; - int params_size() const; - private: - int _internal_params_size() const; - public: - void clear_params(); - ::pg_query::Node* mutable_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_params(); - private: - const ::pg_query::Node& _internal_params(int index) const; - ::pg_query::Node* _internal_add_params(); - public: - const ::pg_query::Node& params(int index) const; - ::pg_query::Node* add_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - params() const; - - // string name = 1 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.ExecuteStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class DeallocateStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.DeallocateStmt) */ { - public: - inline DeallocateStmt() : DeallocateStmt(nullptr) {} - ~DeallocateStmt() override; - explicit PROTOBUF_CONSTEXPR DeallocateStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - DeallocateStmt(const DeallocateStmt& from); - DeallocateStmt(DeallocateStmt&& from) noexcept - : DeallocateStmt() { - *this = ::std::move(from); - } - - inline DeallocateStmt& operator=(const DeallocateStmt& from) { - CopyFrom(from); - return *this; - } - inline DeallocateStmt& operator=(DeallocateStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DeallocateStmt& default_instance() { - return *internal_default_instance(); - } - static inline const DeallocateStmt* internal_default_instance() { - return reinterpret_cast( - &_DeallocateStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 132; - - friend void swap(DeallocateStmt& a, DeallocateStmt& b) { - a.Swap(&b); - } - inline void Swap(DeallocateStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DeallocateStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DeallocateStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DeallocateStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DeallocateStmt& from) { - DeallocateStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DeallocateStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.DeallocateStmt"; - } - protected: - explicit DeallocateStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNameFieldNumber = 1, - }; - // string name = 1 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.DeallocateStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class DeclareCursorStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.DeclareCursorStmt) */ { - public: - inline DeclareCursorStmt() : DeclareCursorStmt(nullptr) {} - ~DeclareCursorStmt() override; - explicit PROTOBUF_CONSTEXPR DeclareCursorStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - DeclareCursorStmt(const DeclareCursorStmt& from); - DeclareCursorStmt(DeclareCursorStmt&& from) noexcept - : DeclareCursorStmt() { - *this = ::std::move(from); - } - - inline DeclareCursorStmt& operator=(const DeclareCursorStmt& from) { - CopyFrom(from); - return *this; - } - inline DeclareCursorStmt& operator=(DeclareCursorStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DeclareCursorStmt& default_instance() { - return *internal_default_instance(); - } - static inline const DeclareCursorStmt* internal_default_instance() { - return reinterpret_cast( - &_DeclareCursorStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 133; - - friend void swap(DeclareCursorStmt& a, DeclareCursorStmt& b) { - a.Swap(&b); - } - inline void Swap(DeclareCursorStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DeclareCursorStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DeclareCursorStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DeclareCursorStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DeclareCursorStmt& from) { - DeclareCursorStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DeclareCursorStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.DeclareCursorStmt"; - } - protected: - explicit DeclareCursorStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPortalnameFieldNumber = 1, - kQueryFieldNumber = 3, - kOptionsFieldNumber = 2, - }; - // string portalname = 1 [json_name = "portalname"]; - void clear_portalname(); - const std::string& portalname() const; - template - void set_portalname(ArgT0&& arg0, ArgT... args); - std::string* mutable_portalname(); - PROTOBUF_NODISCARD std::string* release_portalname(); - void set_allocated_portalname(std::string* portalname); - private: - const std::string& _internal_portalname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_portalname(const std::string& value); - std::string* _internal_mutable_portalname(); - public: - - // .pg_query.Node query = 3 [json_name = "query"]; - bool has_query() const; - private: - bool _internal_has_query() const; - public: - void clear_query(); - const ::pg_query::Node& query() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_query(); - ::pg_query::Node* mutable_query(); - void set_allocated_query(::pg_query::Node* query); - private: - const ::pg_query::Node& _internal_query() const; - ::pg_query::Node* _internal_mutable_query(); - public: - void unsafe_arena_set_allocated_query( - ::pg_query::Node* query); - ::pg_query::Node* unsafe_arena_release_query(); - - // int32 options = 2 [json_name = "options"]; - void clear_options(); - int32_t options() const; - void set_options(int32_t value); - private: - int32_t _internal_options() const; - void _internal_set_options(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.DeclareCursorStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr portalname_; - ::pg_query::Node* query_; - int32_t options_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateTableSpaceStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateTableSpaceStmt) */ { - public: - inline CreateTableSpaceStmt() : CreateTableSpaceStmt(nullptr) {} - ~CreateTableSpaceStmt() override; - explicit PROTOBUF_CONSTEXPR CreateTableSpaceStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateTableSpaceStmt(const CreateTableSpaceStmt& from); - CreateTableSpaceStmt(CreateTableSpaceStmt&& from) noexcept - : CreateTableSpaceStmt() { - *this = ::std::move(from); - } - - inline CreateTableSpaceStmt& operator=(const CreateTableSpaceStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateTableSpaceStmt& operator=(CreateTableSpaceStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateTableSpaceStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateTableSpaceStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateTableSpaceStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 134; - - friend void swap(CreateTableSpaceStmt& a, CreateTableSpaceStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateTableSpaceStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateTableSpaceStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateTableSpaceStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateTableSpaceStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateTableSpaceStmt& from) { - CreateTableSpaceStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateTableSpaceStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateTableSpaceStmt"; - } - protected: - explicit CreateTableSpaceStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 4, - kTablespacenameFieldNumber = 1, - kLocationFieldNumber = 3, - kOwnerFieldNumber = 2, - }; - // repeated .pg_query.Node options = 4 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string tablespacename = 1 [json_name = "tablespacename"]; - void clear_tablespacename(); - const std::string& tablespacename() const; - template - void set_tablespacename(ArgT0&& arg0, ArgT... args); - std::string* mutable_tablespacename(); - PROTOBUF_NODISCARD std::string* release_tablespacename(); - void set_allocated_tablespacename(std::string* tablespacename); - private: - const std::string& _internal_tablespacename() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_tablespacename(const std::string& value); - std::string* _internal_mutable_tablespacename(); - public: - - // string location = 3 [json_name = "location"]; - void clear_location(); - const std::string& location() const; - template - void set_location(ArgT0&& arg0, ArgT... args); - std::string* mutable_location(); - PROTOBUF_NODISCARD std::string* release_location(); - void set_allocated_location(std::string* location); - private: - const std::string& _internal_location() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location(const std::string& value); - std::string* _internal_mutable_location(); - public: - - // .pg_query.RoleSpec owner = 2 [json_name = "owner"]; - bool has_owner() const; - private: - bool _internal_has_owner() const; - public: - void clear_owner(); - const ::pg_query::RoleSpec& owner() const; - PROTOBUF_NODISCARD ::pg_query::RoleSpec* release_owner(); - ::pg_query::RoleSpec* mutable_owner(); - void set_allocated_owner(::pg_query::RoleSpec* owner); - private: - const ::pg_query::RoleSpec& _internal_owner() const; - ::pg_query::RoleSpec* _internal_mutable_owner(); - public: - void unsafe_arena_set_allocated_owner( - ::pg_query::RoleSpec* owner); - ::pg_query::RoleSpec* unsafe_arena_release_owner(); - - // @@protoc_insertion_point(class_scope:pg_query.CreateTableSpaceStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tablespacename_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_; - ::pg_query::RoleSpec* owner_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class DropTableSpaceStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.DropTableSpaceStmt) */ { - public: - inline DropTableSpaceStmt() : DropTableSpaceStmt(nullptr) {} - ~DropTableSpaceStmt() override; - explicit PROTOBUF_CONSTEXPR DropTableSpaceStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - DropTableSpaceStmt(const DropTableSpaceStmt& from); - DropTableSpaceStmt(DropTableSpaceStmt&& from) noexcept - : DropTableSpaceStmt() { - *this = ::std::move(from); - } - - inline DropTableSpaceStmt& operator=(const DropTableSpaceStmt& from) { - CopyFrom(from); - return *this; - } - inline DropTableSpaceStmt& operator=(DropTableSpaceStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DropTableSpaceStmt& default_instance() { - return *internal_default_instance(); - } - static inline const DropTableSpaceStmt* internal_default_instance() { - return reinterpret_cast( - &_DropTableSpaceStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 135; - - friend void swap(DropTableSpaceStmt& a, DropTableSpaceStmt& b) { - a.Swap(&b); - } - inline void Swap(DropTableSpaceStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DropTableSpaceStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DropTableSpaceStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DropTableSpaceStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DropTableSpaceStmt& from) { - DropTableSpaceStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DropTableSpaceStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.DropTableSpaceStmt"; - } - protected: - explicit DropTableSpaceStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTablespacenameFieldNumber = 1, - kMissingOkFieldNumber = 2, - }; - // string tablespacename = 1 [json_name = "tablespacename"]; - void clear_tablespacename(); - const std::string& tablespacename() const; - template - void set_tablespacename(ArgT0&& arg0, ArgT... args); - std::string* mutable_tablespacename(); - PROTOBUF_NODISCARD std::string* release_tablespacename(); - void set_allocated_tablespacename(std::string* tablespacename); - private: - const std::string& _internal_tablespacename() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_tablespacename(const std::string& value); - std::string* _internal_mutable_tablespacename(); - public: - - // bool missing_ok = 2 [json_name = "missing_ok"]; - void clear_missing_ok(); - bool missing_ok() const; - void set_missing_ok(bool value); - private: - bool _internal_missing_ok() const; - void _internal_set_missing_ok(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.DropTableSpaceStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tablespacename_; - bool missing_ok_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterObjectDependsStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterObjectDependsStmt) */ { - public: - inline AlterObjectDependsStmt() : AlterObjectDependsStmt(nullptr) {} - ~AlterObjectDependsStmt() override; - explicit PROTOBUF_CONSTEXPR AlterObjectDependsStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterObjectDependsStmt(const AlterObjectDependsStmt& from); - AlterObjectDependsStmt(AlterObjectDependsStmt&& from) noexcept - : AlterObjectDependsStmt() { - *this = ::std::move(from); - } - - inline AlterObjectDependsStmt& operator=(const AlterObjectDependsStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterObjectDependsStmt& operator=(AlterObjectDependsStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterObjectDependsStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterObjectDependsStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterObjectDependsStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 136; - - friend void swap(AlterObjectDependsStmt& a, AlterObjectDependsStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterObjectDependsStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterObjectDependsStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterObjectDependsStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterObjectDependsStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterObjectDependsStmt& from) { - AlterObjectDependsStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterObjectDependsStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterObjectDependsStmt"; - } - protected: - explicit AlterObjectDependsStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRelationFieldNumber = 2, - kObjectFieldNumber = 3, - kExtnameFieldNumber = 4, - kObjectTypeFieldNumber = 1, - kRemoveFieldNumber = 5, - }; - // .pg_query.RangeVar relation = 2 [json_name = "relation"]; - bool has_relation() const; - private: - bool _internal_has_relation() const; - public: - void clear_relation(); - const ::pg_query::RangeVar& relation() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_relation(); - ::pg_query::RangeVar* mutable_relation(); - void set_allocated_relation(::pg_query::RangeVar* relation); - private: - const ::pg_query::RangeVar& _internal_relation() const; - ::pg_query::RangeVar* _internal_mutable_relation(); - public: - void unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation); - ::pg_query::RangeVar* unsafe_arena_release_relation(); - - // .pg_query.Node object = 3 [json_name = "object"]; - bool has_object() const; - private: - bool _internal_has_object() const; - public: - void clear_object(); - const ::pg_query::Node& object() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_object(); - ::pg_query::Node* mutable_object(); - void set_allocated_object(::pg_query::Node* object); - private: - const ::pg_query::Node& _internal_object() const; - ::pg_query::Node* _internal_mutable_object(); - public: - void unsafe_arena_set_allocated_object( - ::pg_query::Node* object); - ::pg_query::Node* unsafe_arena_release_object(); - - // .pg_query.String extname = 4 [json_name = "extname"]; - bool has_extname() const; - private: - bool _internal_has_extname() const; - public: - void clear_extname(); - const ::pg_query::String& extname() const; - PROTOBUF_NODISCARD ::pg_query::String* release_extname(); - ::pg_query::String* mutable_extname(); - void set_allocated_extname(::pg_query::String* extname); - private: - const ::pg_query::String& _internal_extname() const; - ::pg_query::String* _internal_mutable_extname(); - public: - void unsafe_arena_set_allocated_extname( - ::pg_query::String* extname); - ::pg_query::String* unsafe_arena_release_extname(); - - // .pg_query.ObjectType object_type = 1 [json_name = "objectType"]; - void clear_object_type(); - ::pg_query::ObjectType object_type() const; - void set_object_type(::pg_query::ObjectType value); - private: - ::pg_query::ObjectType _internal_object_type() const; - void _internal_set_object_type(::pg_query::ObjectType value); - public: - - // bool remove = 5 [json_name = "remove"]; - void clear_remove(); - bool remove() const; - void set_remove(bool value); - private: - bool _internal_remove() const; - void _internal_set_remove(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterObjectDependsStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::RangeVar* relation_; - ::pg_query::Node* object_; - ::pg_query::String* extname_; - int object_type_; - bool remove_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterObjectSchemaStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterObjectSchemaStmt) */ { - public: - inline AlterObjectSchemaStmt() : AlterObjectSchemaStmt(nullptr) {} - ~AlterObjectSchemaStmt() override; - explicit PROTOBUF_CONSTEXPR AlterObjectSchemaStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterObjectSchemaStmt(const AlterObjectSchemaStmt& from); - AlterObjectSchemaStmt(AlterObjectSchemaStmt&& from) noexcept - : AlterObjectSchemaStmt() { - *this = ::std::move(from); - } - - inline AlterObjectSchemaStmt& operator=(const AlterObjectSchemaStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterObjectSchemaStmt& operator=(AlterObjectSchemaStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterObjectSchemaStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterObjectSchemaStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterObjectSchemaStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 137; - - friend void swap(AlterObjectSchemaStmt& a, AlterObjectSchemaStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterObjectSchemaStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterObjectSchemaStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterObjectSchemaStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterObjectSchemaStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterObjectSchemaStmt& from) { - AlterObjectSchemaStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterObjectSchemaStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterObjectSchemaStmt"; - } - protected: - explicit AlterObjectSchemaStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNewschemaFieldNumber = 4, - kRelationFieldNumber = 2, - kObjectFieldNumber = 3, - kObjectTypeFieldNumber = 1, - kMissingOkFieldNumber = 5, - }; - // string newschema = 4 [json_name = "newschema"]; - void clear_newschema(); - const std::string& newschema() const; - template - void set_newschema(ArgT0&& arg0, ArgT... args); - std::string* mutable_newschema(); - PROTOBUF_NODISCARD std::string* release_newschema(); - void set_allocated_newschema(std::string* newschema); - private: - const std::string& _internal_newschema() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_newschema(const std::string& value); - std::string* _internal_mutable_newschema(); - public: - - // .pg_query.RangeVar relation = 2 [json_name = "relation"]; - bool has_relation() const; - private: - bool _internal_has_relation() const; - public: - void clear_relation(); - const ::pg_query::RangeVar& relation() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_relation(); - ::pg_query::RangeVar* mutable_relation(); - void set_allocated_relation(::pg_query::RangeVar* relation); - private: - const ::pg_query::RangeVar& _internal_relation() const; - ::pg_query::RangeVar* _internal_mutable_relation(); - public: - void unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation); - ::pg_query::RangeVar* unsafe_arena_release_relation(); - - // .pg_query.Node object = 3 [json_name = "object"]; - bool has_object() const; - private: - bool _internal_has_object() const; - public: - void clear_object(); - const ::pg_query::Node& object() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_object(); - ::pg_query::Node* mutable_object(); - void set_allocated_object(::pg_query::Node* object); - private: - const ::pg_query::Node& _internal_object() const; - ::pg_query::Node* _internal_mutable_object(); - public: - void unsafe_arena_set_allocated_object( - ::pg_query::Node* object); - ::pg_query::Node* unsafe_arena_release_object(); - - // .pg_query.ObjectType object_type = 1 [json_name = "objectType"]; - void clear_object_type(); - ::pg_query::ObjectType object_type() const; - void set_object_type(::pg_query::ObjectType value); - private: - ::pg_query::ObjectType _internal_object_type() const; - void _internal_set_object_type(::pg_query::ObjectType value); - public: - - // bool missing_ok = 5 [json_name = "missing_ok"]; - void clear_missing_ok(); - bool missing_ok() const; - void set_missing_ok(bool value); - private: - bool _internal_missing_ok() const; - void _internal_set_missing_ok(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterObjectSchemaStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr newschema_; - ::pg_query::RangeVar* relation_; - ::pg_query::Node* object_; - int object_type_; - bool missing_ok_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterOwnerStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterOwnerStmt) */ { - public: - inline AlterOwnerStmt() : AlterOwnerStmt(nullptr) {} - ~AlterOwnerStmt() override; - explicit PROTOBUF_CONSTEXPR AlterOwnerStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterOwnerStmt(const AlterOwnerStmt& from); - AlterOwnerStmt(AlterOwnerStmt&& from) noexcept - : AlterOwnerStmt() { - *this = ::std::move(from); - } - - inline AlterOwnerStmt& operator=(const AlterOwnerStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterOwnerStmt& operator=(AlterOwnerStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterOwnerStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterOwnerStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterOwnerStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 138; - - friend void swap(AlterOwnerStmt& a, AlterOwnerStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterOwnerStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterOwnerStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterOwnerStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterOwnerStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterOwnerStmt& from) { - AlterOwnerStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterOwnerStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterOwnerStmt"; - } - protected: - explicit AlterOwnerStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRelationFieldNumber = 2, - kObjectFieldNumber = 3, - kNewownerFieldNumber = 4, - kObjectTypeFieldNumber = 1, - }; - // .pg_query.RangeVar relation = 2 [json_name = "relation"]; - bool has_relation() const; - private: - bool _internal_has_relation() const; - public: - void clear_relation(); - const ::pg_query::RangeVar& relation() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_relation(); - ::pg_query::RangeVar* mutable_relation(); - void set_allocated_relation(::pg_query::RangeVar* relation); - private: - const ::pg_query::RangeVar& _internal_relation() const; - ::pg_query::RangeVar* _internal_mutable_relation(); - public: - void unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation); - ::pg_query::RangeVar* unsafe_arena_release_relation(); - - // .pg_query.Node object = 3 [json_name = "object"]; - bool has_object() const; - private: - bool _internal_has_object() const; - public: - void clear_object(); - const ::pg_query::Node& object() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_object(); - ::pg_query::Node* mutable_object(); - void set_allocated_object(::pg_query::Node* object); - private: - const ::pg_query::Node& _internal_object() const; - ::pg_query::Node* _internal_mutable_object(); - public: - void unsafe_arena_set_allocated_object( - ::pg_query::Node* object); - ::pg_query::Node* unsafe_arena_release_object(); - - // .pg_query.RoleSpec newowner = 4 [json_name = "newowner"]; - bool has_newowner() const; - private: - bool _internal_has_newowner() const; - public: - void clear_newowner(); - const ::pg_query::RoleSpec& newowner() const; - PROTOBUF_NODISCARD ::pg_query::RoleSpec* release_newowner(); - ::pg_query::RoleSpec* mutable_newowner(); - void set_allocated_newowner(::pg_query::RoleSpec* newowner); - private: - const ::pg_query::RoleSpec& _internal_newowner() const; - ::pg_query::RoleSpec* _internal_mutable_newowner(); - public: - void unsafe_arena_set_allocated_newowner( - ::pg_query::RoleSpec* newowner); - ::pg_query::RoleSpec* unsafe_arena_release_newowner(); - - // .pg_query.ObjectType object_type = 1 [json_name = "objectType"]; - void clear_object_type(); - ::pg_query::ObjectType object_type() const; - void set_object_type(::pg_query::ObjectType value); - private: - ::pg_query::ObjectType _internal_object_type() const; - void _internal_set_object_type(::pg_query::ObjectType value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterOwnerStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::RangeVar* relation_; - ::pg_query::Node* object_; - ::pg_query::RoleSpec* newowner_; - int object_type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterOperatorStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterOperatorStmt) */ { - public: - inline AlterOperatorStmt() : AlterOperatorStmt(nullptr) {} - ~AlterOperatorStmt() override; - explicit PROTOBUF_CONSTEXPR AlterOperatorStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterOperatorStmt(const AlterOperatorStmt& from); - AlterOperatorStmt(AlterOperatorStmt&& from) noexcept - : AlterOperatorStmt() { - *this = ::std::move(from); - } - - inline AlterOperatorStmt& operator=(const AlterOperatorStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterOperatorStmt& operator=(AlterOperatorStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterOperatorStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterOperatorStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterOperatorStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 139; - - friend void swap(AlterOperatorStmt& a, AlterOperatorStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterOperatorStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterOperatorStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterOperatorStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterOperatorStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterOperatorStmt& from) { - AlterOperatorStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterOperatorStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterOperatorStmt"; - } - protected: - explicit AlterOperatorStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 2, - kOpernameFieldNumber = 1, - }; - // repeated .pg_query.Node options = 2 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // .pg_query.ObjectWithArgs opername = 1 [json_name = "opername"]; - bool has_opername() const; - private: - bool _internal_has_opername() const; - public: - void clear_opername(); - const ::pg_query::ObjectWithArgs& opername() const; - PROTOBUF_NODISCARD ::pg_query::ObjectWithArgs* release_opername(); - ::pg_query::ObjectWithArgs* mutable_opername(); - void set_allocated_opername(::pg_query::ObjectWithArgs* opername); - private: - const ::pg_query::ObjectWithArgs& _internal_opername() const; - ::pg_query::ObjectWithArgs* _internal_mutable_opername(); - public: - void unsafe_arena_set_allocated_opername( - ::pg_query::ObjectWithArgs* opername); - ::pg_query::ObjectWithArgs* unsafe_arena_release_opername(); - - // @@protoc_insertion_point(class_scope:pg_query.AlterOperatorStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::pg_query::ObjectWithArgs* opername_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterTypeStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterTypeStmt) */ { - public: - inline AlterTypeStmt() : AlterTypeStmt(nullptr) {} - ~AlterTypeStmt() override; - explicit PROTOBUF_CONSTEXPR AlterTypeStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterTypeStmt(const AlterTypeStmt& from); - AlterTypeStmt(AlterTypeStmt&& from) noexcept - : AlterTypeStmt() { - *this = ::std::move(from); - } - - inline AlterTypeStmt& operator=(const AlterTypeStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterTypeStmt& operator=(AlterTypeStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterTypeStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterTypeStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterTypeStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 140; - - friend void swap(AlterTypeStmt& a, AlterTypeStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterTypeStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterTypeStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterTypeStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterTypeStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterTypeStmt& from) { - AlterTypeStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterTypeStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterTypeStmt"; - } - protected: - explicit AlterTypeStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTypeNameFieldNumber = 1, - kOptionsFieldNumber = 2, - }; - // repeated .pg_query.Node type_name = 1 [json_name = "typeName"]; - int type_name_size() const; - private: - int _internal_type_name_size() const; - public: - void clear_type_name(); - ::pg_query::Node* mutable_type_name(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_type_name(); - private: - const ::pg_query::Node& _internal_type_name(int index) const; - ::pg_query::Node* _internal_add_type_name(); - public: - const ::pg_query::Node& type_name(int index) const; - ::pg_query::Node* add_type_name(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - type_name() const; - - // repeated .pg_query.Node options = 2 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // @@protoc_insertion_point(class_scope:pg_query.AlterTypeStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > type_name_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class DropOwnedStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.DropOwnedStmt) */ { - public: - inline DropOwnedStmt() : DropOwnedStmt(nullptr) {} - ~DropOwnedStmt() override; - explicit PROTOBUF_CONSTEXPR DropOwnedStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - DropOwnedStmt(const DropOwnedStmt& from); - DropOwnedStmt(DropOwnedStmt&& from) noexcept - : DropOwnedStmt() { - *this = ::std::move(from); - } - - inline DropOwnedStmt& operator=(const DropOwnedStmt& from) { - CopyFrom(from); - return *this; - } - inline DropOwnedStmt& operator=(DropOwnedStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DropOwnedStmt& default_instance() { - return *internal_default_instance(); - } - static inline const DropOwnedStmt* internal_default_instance() { - return reinterpret_cast( - &_DropOwnedStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 141; - - friend void swap(DropOwnedStmt& a, DropOwnedStmt& b) { - a.Swap(&b); - } - inline void Swap(DropOwnedStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DropOwnedStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DropOwnedStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DropOwnedStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DropOwnedStmt& from) { - DropOwnedStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DropOwnedStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.DropOwnedStmt"; - } - protected: - explicit DropOwnedStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRolesFieldNumber = 1, - kBehaviorFieldNumber = 2, - }; - // repeated .pg_query.Node roles = 1 [json_name = "roles"]; - int roles_size() const; - private: - int _internal_roles_size() const; - public: - void clear_roles(); - ::pg_query::Node* mutable_roles(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_roles(); - private: - const ::pg_query::Node& _internal_roles(int index) const; - ::pg_query::Node* _internal_add_roles(); - public: - const ::pg_query::Node& roles(int index) const; - ::pg_query::Node* add_roles(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - roles() const; - - // .pg_query.DropBehavior behavior = 2 [json_name = "behavior"]; - void clear_behavior(); - ::pg_query::DropBehavior behavior() const; - void set_behavior(::pg_query::DropBehavior value); - private: - ::pg_query::DropBehavior _internal_behavior() const; - void _internal_set_behavior(::pg_query::DropBehavior value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.DropOwnedStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > roles_; - int behavior_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ReassignOwnedStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ReassignOwnedStmt) */ { - public: - inline ReassignOwnedStmt() : ReassignOwnedStmt(nullptr) {} - ~ReassignOwnedStmt() override; - explicit PROTOBUF_CONSTEXPR ReassignOwnedStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ReassignOwnedStmt(const ReassignOwnedStmt& from); - ReassignOwnedStmt(ReassignOwnedStmt&& from) noexcept - : ReassignOwnedStmt() { - *this = ::std::move(from); - } - - inline ReassignOwnedStmt& operator=(const ReassignOwnedStmt& from) { - CopyFrom(from); - return *this; - } - inline ReassignOwnedStmt& operator=(ReassignOwnedStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ReassignOwnedStmt& default_instance() { - return *internal_default_instance(); - } - static inline const ReassignOwnedStmt* internal_default_instance() { - return reinterpret_cast( - &_ReassignOwnedStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 142; - - friend void swap(ReassignOwnedStmt& a, ReassignOwnedStmt& b) { - a.Swap(&b); - } - inline void Swap(ReassignOwnedStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ReassignOwnedStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ReassignOwnedStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ReassignOwnedStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ReassignOwnedStmt& from) { - ReassignOwnedStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ReassignOwnedStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ReassignOwnedStmt"; - } - protected: - explicit ReassignOwnedStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRolesFieldNumber = 1, - kNewroleFieldNumber = 2, - }; - // repeated .pg_query.Node roles = 1 [json_name = "roles"]; - int roles_size() const; - private: - int _internal_roles_size() const; - public: - void clear_roles(); - ::pg_query::Node* mutable_roles(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_roles(); - private: - const ::pg_query::Node& _internal_roles(int index) const; - ::pg_query::Node* _internal_add_roles(); - public: - const ::pg_query::Node& roles(int index) const; - ::pg_query::Node* add_roles(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - roles() const; - - // .pg_query.RoleSpec newrole = 2 [json_name = "newrole"]; - bool has_newrole() const; - private: - bool _internal_has_newrole() const; - public: - void clear_newrole(); - const ::pg_query::RoleSpec& newrole() const; - PROTOBUF_NODISCARD ::pg_query::RoleSpec* release_newrole(); - ::pg_query::RoleSpec* mutable_newrole(); - void set_allocated_newrole(::pg_query::RoleSpec* newrole); - private: - const ::pg_query::RoleSpec& _internal_newrole() const; - ::pg_query::RoleSpec* _internal_mutable_newrole(); - public: - void unsafe_arena_set_allocated_newrole( - ::pg_query::RoleSpec* newrole); - ::pg_query::RoleSpec* unsafe_arena_release_newrole(); - - // @@protoc_insertion_point(class_scope:pg_query.ReassignOwnedStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > roles_; - ::pg_query::RoleSpec* newrole_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CompositeTypeStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CompositeTypeStmt) */ { - public: - inline CompositeTypeStmt() : CompositeTypeStmt(nullptr) {} - ~CompositeTypeStmt() override; - explicit PROTOBUF_CONSTEXPR CompositeTypeStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CompositeTypeStmt(const CompositeTypeStmt& from); - CompositeTypeStmt(CompositeTypeStmt&& from) noexcept - : CompositeTypeStmt() { - *this = ::std::move(from); - } - - inline CompositeTypeStmt& operator=(const CompositeTypeStmt& from) { - CopyFrom(from); - return *this; - } - inline CompositeTypeStmt& operator=(CompositeTypeStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CompositeTypeStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CompositeTypeStmt* internal_default_instance() { - return reinterpret_cast( - &_CompositeTypeStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 143; - - friend void swap(CompositeTypeStmt& a, CompositeTypeStmt& b) { - a.Swap(&b); - } - inline void Swap(CompositeTypeStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CompositeTypeStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CompositeTypeStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CompositeTypeStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CompositeTypeStmt& from) { - CompositeTypeStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CompositeTypeStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CompositeTypeStmt"; - } - protected: - explicit CompositeTypeStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kColdeflistFieldNumber = 2, - kTypevarFieldNumber = 1, - }; - // repeated .pg_query.Node coldeflist = 2 [json_name = "coldeflist"]; - int coldeflist_size() const; - private: - int _internal_coldeflist_size() const; - public: - void clear_coldeflist(); - ::pg_query::Node* mutable_coldeflist(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_coldeflist(); - private: - const ::pg_query::Node& _internal_coldeflist(int index) const; - ::pg_query::Node* _internal_add_coldeflist(); - public: - const ::pg_query::Node& coldeflist(int index) const; - ::pg_query::Node* add_coldeflist(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - coldeflist() const; - - // .pg_query.RangeVar typevar = 1 [json_name = "typevar"]; - bool has_typevar() const; - private: - bool _internal_has_typevar() const; - public: - void clear_typevar(); - const ::pg_query::RangeVar& typevar() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_typevar(); - ::pg_query::RangeVar* mutable_typevar(); - void set_allocated_typevar(::pg_query::RangeVar* typevar); - private: - const ::pg_query::RangeVar& _internal_typevar() const; - ::pg_query::RangeVar* _internal_mutable_typevar(); - public: - void unsafe_arena_set_allocated_typevar( - ::pg_query::RangeVar* typevar); - ::pg_query::RangeVar* unsafe_arena_release_typevar(); - - // @@protoc_insertion_point(class_scope:pg_query.CompositeTypeStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > coldeflist_; - ::pg_query::RangeVar* typevar_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateEnumStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateEnumStmt) */ { - public: - inline CreateEnumStmt() : CreateEnumStmt(nullptr) {} - ~CreateEnumStmt() override; - explicit PROTOBUF_CONSTEXPR CreateEnumStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateEnumStmt(const CreateEnumStmt& from); - CreateEnumStmt(CreateEnumStmt&& from) noexcept - : CreateEnumStmt() { - *this = ::std::move(from); - } - - inline CreateEnumStmt& operator=(const CreateEnumStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateEnumStmt& operator=(CreateEnumStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateEnumStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateEnumStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateEnumStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 144; - - friend void swap(CreateEnumStmt& a, CreateEnumStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateEnumStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateEnumStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateEnumStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateEnumStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateEnumStmt& from) { - CreateEnumStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateEnumStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateEnumStmt"; - } - protected: - explicit CreateEnumStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTypeNameFieldNumber = 1, - kValsFieldNumber = 2, - }; - // repeated .pg_query.Node type_name = 1 [json_name = "typeName"]; - int type_name_size() const; - private: - int _internal_type_name_size() const; - public: - void clear_type_name(); - ::pg_query::Node* mutable_type_name(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_type_name(); - private: - const ::pg_query::Node& _internal_type_name(int index) const; - ::pg_query::Node* _internal_add_type_name(); - public: - const ::pg_query::Node& type_name(int index) const; - ::pg_query::Node* add_type_name(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - type_name() const; - - // repeated .pg_query.Node vals = 2 [json_name = "vals"]; - int vals_size() const; - private: - int _internal_vals_size() const; - public: - void clear_vals(); - ::pg_query::Node* mutable_vals(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_vals(); - private: - const ::pg_query::Node& _internal_vals(int index) const; - ::pg_query::Node* _internal_add_vals(); - public: - const ::pg_query::Node& vals(int index) const; - ::pg_query::Node* add_vals(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - vals() const; - - // @@protoc_insertion_point(class_scope:pg_query.CreateEnumStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > type_name_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > vals_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateRangeStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateRangeStmt) */ { - public: - inline CreateRangeStmt() : CreateRangeStmt(nullptr) {} - ~CreateRangeStmt() override; - explicit PROTOBUF_CONSTEXPR CreateRangeStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateRangeStmt(const CreateRangeStmt& from); - CreateRangeStmt(CreateRangeStmt&& from) noexcept - : CreateRangeStmt() { - *this = ::std::move(from); - } - - inline CreateRangeStmt& operator=(const CreateRangeStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateRangeStmt& operator=(CreateRangeStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateRangeStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateRangeStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateRangeStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 145; - - friend void swap(CreateRangeStmt& a, CreateRangeStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateRangeStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateRangeStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateRangeStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateRangeStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateRangeStmt& from) { - CreateRangeStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateRangeStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateRangeStmt"; - } - protected: - explicit CreateRangeStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTypeNameFieldNumber = 1, - kParamsFieldNumber = 2, - }; - // repeated .pg_query.Node type_name = 1 [json_name = "typeName"]; - int type_name_size() const; - private: - int _internal_type_name_size() const; - public: - void clear_type_name(); - ::pg_query::Node* mutable_type_name(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_type_name(); - private: - const ::pg_query::Node& _internal_type_name(int index) const; - ::pg_query::Node* _internal_add_type_name(); - public: - const ::pg_query::Node& type_name(int index) const; - ::pg_query::Node* add_type_name(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - type_name() const; - - // repeated .pg_query.Node params = 2 [json_name = "params"]; - int params_size() const; - private: - int _internal_params_size() const; - public: - void clear_params(); - ::pg_query::Node* mutable_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_params(); - private: - const ::pg_query::Node& _internal_params(int index) const; - ::pg_query::Node* _internal_add_params(); - public: - const ::pg_query::Node& params(int index) const; - ::pg_query::Node* add_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - params() const; - - // @@protoc_insertion_point(class_scope:pg_query.CreateRangeStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > type_name_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > params_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterEnumStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterEnumStmt) */ { - public: - inline AlterEnumStmt() : AlterEnumStmt(nullptr) {} - ~AlterEnumStmt() override; - explicit PROTOBUF_CONSTEXPR AlterEnumStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterEnumStmt(const AlterEnumStmt& from); - AlterEnumStmt(AlterEnumStmt&& from) noexcept - : AlterEnumStmt() { - *this = ::std::move(from); - } - - inline AlterEnumStmt& operator=(const AlterEnumStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterEnumStmt& operator=(AlterEnumStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterEnumStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterEnumStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterEnumStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 146; - - friend void swap(AlterEnumStmt& a, AlterEnumStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterEnumStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterEnumStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterEnumStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterEnumStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterEnumStmt& from) { - AlterEnumStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterEnumStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterEnumStmt"; - } - protected: - explicit AlterEnumStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTypeNameFieldNumber = 1, - kOldValFieldNumber = 2, - kNewValFieldNumber = 3, - kNewValNeighborFieldNumber = 4, - kNewValIsAfterFieldNumber = 5, - kSkipIfNewValExistsFieldNumber = 6, - }; - // repeated .pg_query.Node type_name = 1 [json_name = "typeName"]; - int type_name_size() const; - private: - int _internal_type_name_size() const; - public: - void clear_type_name(); - ::pg_query::Node* mutable_type_name(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_type_name(); - private: - const ::pg_query::Node& _internal_type_name(int index) const; - ::pg_query::Node* _internal_add_type_name(); - public: - const ::pg_query::Node& type_name(int index) const; - ::pg_query::Node* add_type_name(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - type_name() const; - - // string old_val = 2 [json_name = "oldVal"]; - void clear_old_val(); - const std::string& old_val() const; - template - void set_old_val(ArgT0&& arg0, ArgT... args); - std::string* mutable_old_val(); - PROTOBUF_NODISCARD std::string* release_old_val(); - void set_allocated_old_val(std::string* old_val); - private: - const std::string& _internal_old_val() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_old_val(const std::string& value); - std::string* _internal_mutable_old_val(); - public: - - // string new_val = 3 [json_name = "newVal"]; - void clear_new_val(); - const std::string& new_val() const; - template - void set_new_val(ArgT0&& arg0, ArgT... args); - std::string* mutable_new_val(); - PROTOBUF_NODISCARD std::string* release_new_val(); - void set_allocated_new_val(std::string* new_val); - private: - const std::string& _internal_new_val() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_new_val(const std::string& value); - std::string* _internal_mutable_new_val(); - public: - - // string new_val_neighbor = 4 [json_name = "newValNeighbor"]; - void clear_new_val_neighbor(); - const std::string& new_val_neighbor() const; - template - void set_new_val_neighbor(ArgT0&& arg0, ArgT... args); - std::string* mutable_new_val_neighbor(); - PROTOBUF_NODISCARD std::string* release_new_val_neighbor(); - void set_allocated_new_val_neighbor(std::string* new_val_neighbor); - private: - const std::string& _internal_new_val_neighbor() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_new_val_neighbor(const std::string& value); - std::string* _internal_mutable_new_val_neighbor(); - public: - - // bool new_val_is_after = 5 [json_name = "newValIsAfter"]; - void clear_new_val_is_after(); - bool new_val_is_after() const; - void set_new_val_is_after(bool value); - private: - bool _internal_new_val_is_after() const; - void _internal_set_new_val_is_after(bool value); - public: - - // bool skip_if_new_val_exists = 6 [json_name = "skipIfNewValExists"]; - void clear_skip_if_new_val_exists(); - bool skip_if_new_val_exists() const; - void set_skip_if_new_val_exists(bool value); - private: - bool _internal_skip_if_new_val_exists() const; - void _internal_set_skip_if_new_val_exists(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterEnumStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > type_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr old_val_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr new_val_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr new_val_neighbor_; - bool new_val_is_after_; - bool skip_if_new_val_exists_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterTSDictionaryStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterTSDictionaryStmt) */ { - public: - inline AlterTSDictionaryStmt() : AlterTSDictionaryStmt(nullptr) {} - ~AlterTSDictionaryStmt() override; - explicit PROTOBUF_CONSTEXPR AlterTSDictionaryStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterTSDictionaryStmt(const AlterTSDictionaryStmt& from); - AlterTSDictionaryStmt(AlterTSDictionaryStmt&& from) noexcept - : AlterTSDictionaryStmt() { - *this = ::std::move(from); - } - - inline AlterTSDictionaryStmt& operator=(const AlterTSDictionaryStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterTSDictionaryStmt& operator=(AlterTSDictionaryStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterTSDictionaryStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterTSDictionaryStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterTSDictionaryStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 147; - - friend void swap(AlterTSDictionaryStmt& a, AlterTSDictionaryStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterTSDictionaryStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterTSDictionaryStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterTSDictionaryStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterTSDictionaryStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterTSDictionaryStmt& from) { - AlterTSDictionaryStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterTSDictionaryStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterTSDictionaryStmt"; - } - protected: - explicit AlterTSDictionaryStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDictnameFieldNumber = 1, - kOptionsFieldNumber = 2, - }; - // repeated .pg_query.Node dictname = 1 [json_name = "dictname"]; - int dictname_size() const; - private: - int _internal_dictname_size() const; - public: - void clear_dictname(); - ::pg_query::Node* mutable_dictname(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_dictname(); - private: - const ::pg_query::Node& _internal_dictname(int index) const; - ::pg_query::Node* _internal_add_dictname(); - public: - const ::pg_query::Node& dictname(int index) const; - ::pg_query::Node* add_dictname(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - dictname() const; - - // repeated .pg_query.Node options = 2 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // @@protoc_insertion_point(class_scope:pg_query.AlterTSDictionaryStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > dictname_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterTSConfigurationStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterTSConfigurationStmt) */ { - public: - inline AlterTSConfigurationStmt() : AlterTSConfigurationStmt(nullptr) {} - ~AlterTSConfigurationStmt() override; - explicit PROTOBUF_CONSTEXPR AlterTSConfigurationStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterTSConfigurationStmt(const AlterTSConfigurationStmt& from); - AlterTSConfigurationStmt(AlterTSConfigurationStmt&& from) noexcept - : AlterTSConfigurationStmt() { - *this = ::std::move(from); - } - - inline AlterTSConfigurationStmt& operator=(const AlterTSConfigurationStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterTSConfigurationStmt& operator=(AlterTSConfigurationStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterTSConfigurationStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterTSConfigurationStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterTSConfigurationStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 148; - - friend void swap(AlterTSConfigurationStmt& a, AlterTSConfigurationStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterTSConfigurationStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterTSConfigurationStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterTSConfigurationStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterTSConfigurationStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterTSConfigurationStmt& from) { - AlterTSConfigurationStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterTSConfigurationStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterTSConfigurationStmt"; - } - protected: - explicit AlterTSConfigurationStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCfgnameFieldNumber = 2, - kTokentypeFieldNumber = 3, - kDictsFieldNumber = 4, - kKindFieldNumber = 1, - kOverrideFieldNumber = 5, - kReplaceFieldNumber = 6, - kMissingOkFieldNumber = 7, - }; - // repeated .pg_query.Node cfgname = 2 [json_name = "cfgname"]; - int cfgname_size() const; - private: - int _internal_cfgname_size() const; - public: - void clear_cfgname(); - ::pg_query::Node* mutable_cfgname(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_cfgname(); - private: - const ::pg_query::Node& _internal_cfgname(int index) const; - ::pg_query::Node* _internal_add_cfgname(); - public: - const ::pg_query::Node& cfgname(int index) const; - ::pg_query::Node* add_cfgname(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - cfgname() const; - - // repeated .pg_query.Node tokentype = 3 [json_name = "tokentype"]; - int tokentype_size() const; - private: - int _internal_tokentype_size() const; - public: - void clear_tokentype(); - ::pg_query::Node* mutable_tokentype(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_tokentype(); - private: - const ::pg_query::Node& _internal_tokentype(int index) const; - ::pg_query::Node* _internal_add_tokentype(); - public: - const ::pg_query::Node& tokentype(int index) const; - ::pg_query::Node* add_tokentype(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - tokentype() const; - - // repeated .pg_query.Node dicts = 4 [json_name = "dicts"]; - int dicts_size() const; - private: - int _internal_dicts_size() const; - public: - void clear_dicts(); - ::pg_query::Node* mutable_dicts(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_dicts(); - private: - const ::pg_query::Node& _internal_dicts(int index) const; - ::pg_query::Node* _internal_add_dicts(); - public: - const ::pg_query::Node& dicts(int index) const; - ::pg_query::Node* add_dicts(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - dicts() const; - - // .pg_query.AlterTSConfigType kind = 1 [json_name = "kind"]; - void clear_kind(); - ::pg_query::AlterTSConfigType kind() const; - void set_kind(::pg_query::AlterTSConfigType value); - private: - ::pg_query::AlterTSConfigType _internal_kind() const; - void _internal_set_kind(::pg_query::AlterTSConfigType value); - public: - - // bool override = 5 [json_name = "override"]; - void clear_override(); - bool override() const; - void set_override(bool value); - private: - bool _internal_override() const; - void _internal_set_override(bool value); - public: - - // bool replace = 6 [json_name = "replace"]; - void clear_replace(); - bool replace() const; - void set_replace(bool value); - private: - bool _internal_replace() const; - void _internal_set_replace(bool value); - public: - - // bool missing_ok = 7 [json_name = "missing_ok"]; - void clear_missing_ok(); - bool missing_ok() const; - void set_missing_ok(bool value); - private: - bool _internal_missing_ok() const; - void _internal_set_missing_ok(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterTSConfigurationStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > cfgname_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > tokentype_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > dicts_; - int kind_; - bool override_; - bool replace_; - bool missing_ok_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateFdwStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateFdwStmt) */ { - public: - inline CreateFdwStmt() : CreateFdwStmt(nullptr) {} - ~CreateFdwStmt() override; - explicit PROTOBUF_CONSTEXPR CreateFdwStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateFdwStmt(const CreateFdwStmt& from); - CreateFdwStmt(CreateFdwStmt&& from) noexcept - : CreateFdwStmt() { - *this = ::std::move(from); - } - - inline CreateFdwStmt& operator=(const CreateFdwStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateFdwStmt& operator=(CreateFdwStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateFdwStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateFdwStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateFdwStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 149; - - friend void swap(CreateFdwStmt& a, CreateFdwStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateFdwStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateFdwStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateFdwStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateFdwStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateFdwStmt& from) { - CreateFdwStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateFdwStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateFdwStmt"; - } - protected: - explicit CreateFdwStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFuncOptionsFieldNumber = 2, - kOptionsFieldNumber = 3, - kFdwnameFieldNumber = 1, - }; - // repeated .pg_query.Node func_options = 2 [json_name = "func_options"]; - int func_options_size() const; - private: - int _internal_func_options_size() const; - public: - void clear_func_options(); - ::pg_query::Node* mutable_func_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_func_options(); - private: - const ::pg_query::Node& _internal_func_options(int index) const; - ::pg_query::Node* _internal_add_func_options(); - public: - const ::pg_query::Node& func_options(int index) const; - ::pg_query::Node* add_func_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - func_options() const; - - // repeated .pg_query.Node options = 3 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string fdwname = 1 [json_name = "fdwname"]; - void clear_fdwname(); - const std::string& fdwname() const; - template - void set_fdwname(ArgT0&& arg0, ArgT... args); - std::string* mutable_fdwname(); - PROTOBUF_NODISCARD std::string* release_fdwname(); - void set_allocated_fdwname(std::string* fdwname); - private: - const std::string& _internal_fdwname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_fdwname(const std::string& value); - std::string* _internal_mutable_fdwname(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreateFdwStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > func_options_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fdwname_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterFdwStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterFdwStmt) */ { - public: - inline AlterFdwStmt() : AlterFdwStmt(nullptr) {} - ~AlterFdwStmt() override; - explicit PROTOBUF_CONSTEXPR AlterFdwStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterFdwStmt(const AlterFdwStmt& from); - AlterFdwStmt(AlterFdwStmt&& from) noexcept - : AlterFdwStmt() { - *this = ::std::move(from); - } - - inline AlterFdwStmt& operator=(const AlterFdwStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterFdwStmt& operator=(AlterFdwStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterFdwStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterFdwStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterFdwStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 150; - - friend void swap(AlterFdwStmt& a, AlterFdwStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterFdwStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterFdwStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterFdwStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterFdwStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterFdwStmt& from) { - AlterFdwStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterFdwStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterFdwStmt"; - } - protected: - explicit AlterFdwStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFuncOptionsFieldNumber = 2, - kOptionsFieldNumber = 3, - kFdwnameFieldNumber = 1, - }; - // repeated .pg_query.Node func_options = 2 [json_name = "func_options"]; - int func_options_size() const; - private: - int _internal_func_options_size() const; - public: - void clear_func_options(); - ::pg_query::Node* mutable_func_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_func_options(); - private: - const ::pg_query::Node& _internal_func_options(int index) const; - ::pg_query::Node* _internal_add_func_options(); - public: - const ::pg_query::Node& func_options(int index) const; - ::pg_query::Node* add_func_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - func_options() const; - - // repeated .pg_query.Node options = 3 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string fdwname = 1 [json_name = "fdwname"]; - void clear_fdwname(); - const std::string& fdwname() const; - template - void set_fdwname(ArgT0&& arg0, ArgT... args); - std::string* mutable_fdwname(); - PROTOBUF_NODISCARD std::string* release_fdwname(); - void set_allocated_fdwname(std::string* fdwname); - private: - const std::string& _internal_fdwname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_fdwname(const std::string& value); - std::string* _internal_mutable_fdwname(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterFdwStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > func_options_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fdwname_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateForeignServerStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateForeignServerStmt) */ { - public: - inline CreateForeignServerStmt() : CreateForeignServerStmt(nullptr) {} - ~CreateForeignServerStmt() override; - explicit PROTOBUF_CONSTEXPR CreateForeignServerStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateForeignServerStmt(const CreateForeignServerStmt& from); - CreateForeignServerStmt(CreateForeignServerStmt&& from) noexcept - : CreateForeignServerStmt() { - *this = ::std::move(from); - } - - inline CreateForeignServerStmt& operator=(const CreateForeignServerStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateForeignServerStmt& operator=(CreateForeignServerStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateForeignServerStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateForeignServerStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateForeignServerStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 151; - - friend void swap(CreateForeignServerStmt& a, CreateForeignServerStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateForeignServerStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateForeignServerStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateForeignServerStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateForeignServerStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateForeignServerStmt& from) { - CreateForeignServerStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateForeignServerStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateForeignServerStmt"; - } - protected: - explicit CreateForeignServerStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 6, - kServernameFieldNumber = 1, - kServertypeFieldNumber = 2, - kVersionFieldNumber = 3, - kFdwnameFieldNumber = 4, - kIfNotExistsFieldNumber = 5, - }; - // repeated .pg_query.Node options = 6 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string servername = 1 [json_name = "servername"]; - void clear_servername(); - const std::string& servername() const; - template - void set_servername(ArgT0&& arg0, ArgT... args); - std::string* mutable_servername(); - PROTOBUF_NODISCARD std::string* release_servername(); - void set_allocated_servername(std::string* servername); - private: - const std::string& _internal_servername() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_servername(const std::string& value); - std::string* _internal_mutable_servername(); - public: - - // string servertype = 2 [json_name = "servertype"]; - void clear_servertype(); - const std::string& servertype() const; - template - void set_servertype(ArgT0&& arg0, ArgT... args); - std::string* mutable_servertype(); - PROTOBUF_NODISCARD std::string* release_servertype(); - void set_allocated_servertype(std::string* servertype); - private: - const std::string& _internal_servertype() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_servertype(const std::string& value); - std::string* _internal_mutable_servertype(); - public: - - // string version = 3 [json_name = "version"]; - void clear_version(); - const std::string& version() const; - template - void set_version(ArgT0&& arg0, ArgT... args); - std::string* mutable_version(); - PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* version); - private: - const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); - std::string* _internal_mutable_version(); - public: - - // string fdwname = 4 [json_name = "fdwname"]; - void clear_fdwname(); - const std::string& fdwname() const; - template - void set_fdwname(ArgT0&& arg0, ArgT... args); - std::string* mutable_fdwname(); - PROTOBUF_NODISCARD std::string* release_fdwname(); - void set_allocated_fdwname(std::string* fdwname); - private: - const std::string& _internal_fdwname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_fdwname(const std::string& value); - std::string* _internal_mutable_fdwname(); - public: - - // bool if_not_exists = 5 [json_name = "if_not_exists"]; - void clear_if_not_exists(); - bool if_not_exists() const; - void set_if_not_exists(bool value); - private: - bool _internal_if_not_exists() const; - void _internal_set_if_not_exists(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreateForeignServerStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr servername_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr servertype_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fdwname_; - bool if_not_exists_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterForeignServerStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterForeignServerStmt) */ { - public: - inline AlterForeignServerStmt() : AlterForeignServerStmt(nullptr) {} - ~AlterForeignServerStmt() override; - explicit PROTOBUF_CONSTEXPR AlterForeignServerStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterForeignServerStmt(const AlterForeignServerStmt& from); - AlterForeignServerStmt(AlterForeignServerStmt&& from) noexcept - : AlterForeignServerStmt() { - *this = ::std::move(from); - } - - inline AlterForeignServerStmt& operator=(const AlterForeignServerStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterForeignServerStmt& operator=(AlterForeignServerStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterForeignServerStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterForeignServerStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterForeignServerStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 152; - - friend void swap(AlterForeignServerStmt& a, AlterForeignServerStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterForeignServerStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterForeignServerStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterForeignServerStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterForeignServerStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterForeignServerStmt& from) { - AlterForeignServerStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterForeignServerStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterForeignServerStmt"; - } - protected: - explicit AlterForeignServerStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 3, - kServernameFieldNumber = 1, - kVersionFieldNumber = 2, - kHasVersionFieldNumber = 4, - }; - // repeated .pg_query.Node options = 3 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string servername = 1 [json_name = "servername"]; - void clear_servername(); - const std::string& servername() const; - template - void set_servername(ArgT0&& arg0, ArgT... args); - std::string* mutable_servername(); - PROTOBUF_NODISCARD std::string* release_servername(); - void set_allocated_servername(std::string* servername); - private: - const std::string& _internal_servername() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_servername(const std::string& value); - std::string* _internal_mutable_servername(); - public: - - // string version = 2 [json_name = "version"]; - void clear_version(); - const std::string& version() const; - template - void set_version(ArgT0&& arg0, ArgT... args); - std::string* mutable_version(); - PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* version); - private: - const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); - std::string* _internal_mutable_version(); - public: - - // bool has_version = 4 [json_name = "has_version"]; - void clear_has_version(); - bool has_version() const; - void set_has_version(bool value); - private: - bool _internal_has_version() const; - void _internal_set_has_version(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterForeignServerStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr servername_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; - bool has_version_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateUserMappingStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateUserMappingStmt) */ { - public: - inline CreateUserMappingStmt() : CreateUserMappingStmt(nullptr) {} - ~CreateUserMappingStmt() override; - explicit PROTOBUF_CONSTEXPR CreateUserMappingStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateUserMappingStmt(const CreateUserMappingStmt& from); - CreateUserMappingStmt(CreateUserMappingStmt&& from) noexcept - : CreateUserMappingStmt() { - *this = ::std::move(from); - } - - inline CreateUserMappingStmt& operator=(const CreateUserMappingStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateUserMappingStmt& operator=(CreateUserMappingStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateUserMappingStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateUserMappingStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateUserMappingStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 153; - - friend void swap(CreateUserMappingStmt& a, CreateUserMappingStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateUserMappingStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateUserMappingStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateUserMappingStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateUserMappingStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateUserMappingStmt& from) { - CreateUserMappingStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateUserMappingStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateUserMappingStmt"; - } - protected: - explicit CreateUserMappingStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 4, - kServernameFieldNumber = 2, - kUserFieldNumber = 1, - kIfNotExistsFieldNumber = 3, - }; - // repeated .pg_query.Node options = 4 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string servername = 2 [json_name = "servername"]; - void clear_servername(); - const std::string& servername() const; - template - void set_servername(ArgT0&& arg0, ArgT... args); - std::string* mutable_servername(); - PROTOBUF_NODISCARD std::string* release_servername(); - void set_allocated_servername(std::string* servername); - private: - const std::string& _internal_servername() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_servername(const std::string& value); - std::string* _internal_mutable_servername(); - public: - - // .pg_query.RoleSpec user = 1 [json_name = "user"]; - bool has_user() const; - private: - bool _internal_has_user() const; - public: - void clear_user(); - const ::pg_query::RoleSpec& user() const; - PROTOBUF_NODISCARD ::pg_query::RoleSpec* release_user(); - ::pg_query::RoleSpec* mutable_user(); - void set_allocated_user(::pg_query::RoleSpec* user); - private: - const ::pg_query::RoleSpec& _internal_user() const; - ::pg_query::RoleSpec* _internal_mutable_user(); - public: - void unsafe_arena_set_allocated_user( - ::pg_query::RoleSpec* user); - ::pg_query::RoleSpec* unsafe_arena_release_user(); - - // bool if_not_exists = 3 [json_name = "if_not_exists"]; - void clear_if_not_exists(); - bool if_not_exists() const; - void set_if_not_exists(bool value); - private: - bool _internal_if_not_exists() const; - void _internal_set_if_not_exists(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreateUserMappingStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr servername_; - ::pg_query::RoleSpec* user_; - bool if_not_exists_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterUserMappingStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterUserMappingStmt) */ { - public: - inline AlterUserMappingStmt() : AlterUserMappingStmt(nullptr) {} - ~AlterUserMappingStmt() override; - explicit PROTOBUF_CONSTEXPR AlterUserMappingStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterUserMappingStmt(const AlterUserMappingStmt& from); - AlterUserMappingStmt(AlterUserMappingStmt&& from) noexcept - : AlterUserMappingStmt() { - *this = ::std::move(from); - } - - inline AlterUserMappingStmt& operator=(const AlterUserMappingStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterUserMappingStmt& operator=(AlterUserMappingStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterUserMappingStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterUserMappingStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterUserMappingStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 154; - - friend void swap(AlterUserMappingStmt& a, AlterUserMappingStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterUserMappingStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterUserMappingStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterUserMappingStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterUserMappingStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterUserMappingStmt& from) { - AlterUserMappingStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterUserMappingStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterUserMappingStmt"; - } - protected: - explicit AlterUserMappingStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 3, - kServernameFieldNumber = 2, - kUserFieldNumber = 1, - }; - // repeated .pg_query.Node options = 3 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string servername = 2 [json_name = "servername"]; - void clear_servername(); - const std::string& servername() const; - template - void set_servername(ArgT0&& arg0, ArgT... args); - std::string* mutable_servername(); - PROTOBUF_NODISCARD std::string* release_servername(); - void set_allocated_servername(std::string* servername); - private: - const std::string& _internal_servername() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_servername(const std::string& value); - std::string* _internal_mutable_servername(); - public: - - // .pg_query.RoleSpec user = 1 [json_name = "user"]; - bool has_user() const; - private: - bool _internal_has_user() const; - public: - void clear_user(); - const ::pg_query::RoleSpec& user() const; - PROTOBUF_NODISCARD ::pg_query::RoleSpec* release_user(); - ::pg_query::RoleSpec* mutable_user(); - void set_allocated_user(::pg_query::RoleSpec* user); - private: - const ::pg_query::RoleSpec& _internal_user() const; - ::pg_query::RoleSpec* _internal_mutable_user(); - public: - void unsafe_arena_set_allocated_user( - ::pg_query::RoleSpec* user); - ::pg_query::RoleSpec* unsafe_arena_release_user(); - - // @@protoc_insertion_point(class_scope:pg_query.AlterUserMappingStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr servername_; - ::pg_query::RoleSpec* user_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class DropUserMappingStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.DropUserMappingStmt) */ { - public: - inline DropUserMappingStmt() : DropUserMappingStmt(nullptr) {} - ~DropUserMappingStmt() override; - explicit PROTOBUF_CONSTEXPR DropUserMappingStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - DropUserMappingStmt(const DropUserMappingStmt& from); - DropUserMappingStmt(DropUserMappingStmt&& from) noexcept - : DropUserMappingStmt() { - *this = ::std::move(from); - } - - inline DropUserMappingStmt& operator=(const DropUserMappingStmt& from) { - CopyFrom(from); - return *this; - } - inline DropUserMappingStmt& operator=(DropUserMappingStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DropUserMappingStmt& default_instance() { - return *internal_default_instance(); - } - static inline const DropUserMappingStmt* internal_default_instance() { - return reinterpret_cast( - &_DropUserMappingStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 155; - - friend void swap(DropUserMappingStmt& a, DropUserMappingStmt& b) { - a.Swap(&b); - } - inline void Swap(DropUserMappingStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DropUserMappingStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DropUserMappingStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DropUserMappingStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DropUserMappingStmt& from) { - DropUserMappingStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DropUserMappingStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.DropUserMappingStmt"; - } - protected: - explicit DropUserMappingStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kServernameFieldNumber = 2, - kUserFieldNumber = 1, - kMissingOkFieldNumber = 3, - }; - // string servername = 2 [json_name = "servername"]; - void clear_servername(); - const std::string& servername() const; - template - void set_servername(ArgT0&& arg0, ArgT... args); - std::string* mutable_servername(); - PROTOBUF_NODISCARD std::string* release_servername(); - void set_allocated_servername(std::string* servername); - private: - const std::string& _internal_servername() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_servername(const std::string& value); - std::string* _internal_mutable_servername(); - public: - - // .pg_query.RoleSpec user = 1 [json_name = "user"]; - bool has_user() const; - private: - bool _internal_has_user() const; - public: - void clear_user(); - const ::pg_query::RoleSpec& user() const; - PROTOBUF_NODISCARD ::pg_query::RoleSpec* release_user(); - ::pg_query::RoleSpec* mutable_user(); - void set_allocated_user(::pg_query::RoleSpec* user); - private: - const ::pg_query::RoleSpec& _internal_user() const; - ::pg_query::RoleSpec* _internal_mutable_user(); - public: - void unsafe_arena_set_allocated_user( - ::pg_query::RoleSpec* user); - ::pg_query::RoleSpec* unsafe_arena_release_user(); - - // bool missing_ok = 3 [json_name = "missing_ok"]; - void clear_missing_ok(); - bool missing_ok() const; - void set_missing_ok(bool value); - private: - bool _internal_missing_ok() const; - void _internal_set_missing_ok(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.DropUserMappingStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr servername_; - ::pg_query::RoleSpec* user_; - bool missing_ok_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterTableSpaceOptionsStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterTableSpaceOptionsStmt) */ { - public: - inline AlterTableSpaceOptionsStmt() : AlterTableSpaceOptionsStmt(nullptr) {} - ~AlterTableSpaceOptionsStmt() override; - explicit PROTOBUF_CONSTEXPR AlterTableSpaceOptionsStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterTableSpaceOptionsStmt(const AlterTableSpaceOptionsStmt& from); - AlterTableSpaceOptionsStmt(AlterTableSpaceOptionsStmt&& from) noexcept - : AlterTableSpaceOptionsStmt() { - *this = ::std::move(from); - } - - inline AlterTableSpaceOptionsStmt& operator=(const AlterTableSpaceOptionsStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterTableSpaceOptionsStmt& operator=(AlterTableSpaceOptionsStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterTableSpaceOptionsStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterTableSpaceOptionsStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterTableSpaceOptionsStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 156; - - friend void swap(AlterTableSpaceOptionsStmt& a, AlterTableSpaceOptionsStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterTableSpaceOptionsStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterTableSpaceOptionsStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterTableSpaceOptionsStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterTableSpaceOptionsStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterTableSpaceOptionsStmt& from) { - AlterTableSpaceOptionsStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterTableSpaceOptionsStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterTableSpaceOptionsStmt"; - } - protected: - explicit AlterTableSpaceOptionsStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 2, - kTablespacenameFieldNumber = 1, - kIsResetFieldNumber = 3, - }; - // repeated .pg_query.Node options = 2 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string tablespacename = 1 [json_name = "tablespacename"]; - void clear_tablespacename(); - const std::string& tablespacename() const; - template - void set_tablespacename(ArgT0&& arg0, ArgT... args); - std::string* mutable_tablespacename(); - PROTOBUF_NODISCARD std::string* release_tablespacename(); - void set_allocated_tablespacename(std::string* tablespacename); - private: - const std::string& _internal_tablespacename() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_tablespacename(const std::string& value); - std::string* _internal_mutable_tablespacename(); - public: - - // bool is_reset = 3 [json_name = "isReset"]; - void clear_is_reset(); - bool is_reset() const; - void set_is_reset(bool value); - private: - bool _internal_is_reset() const; - void _internal_set_is_reset(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterTableSpaceOptionsStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tablespacename_; - bool is_reset_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterTableMoveAllStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterTableMoveAllStmt) */ { - public: - inline AlterTableMoveAllStmt() : AlterTableMoveAllStmt(nullptr) {} - ~AlterTableMoveAllStmt() override; - explicit PROTOBUF_CONSTEXPR AlterTableMoveAllStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterTableMoveAllStmt(const AlterTableMoveAllStmt& from); - AlterTableMoveAllStmt(AlterTableMoveAllStmt&& from) noexcept - : AlterTableMoveAllStmt() { - *this = ::std::move(from); - } - - inline AlterTableMoveAllStmt& operator=(const AlterTableMoveAllStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterTableMoveAllStmt& operator=(AlterTableMoveAllStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterTableMoveAllStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterTableMoveAllStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterTableMoveAllStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 157; - - friend void swap(AlterTableMoveAllStmt& a, AlterTableMoveAllStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterTableMoveAllStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterTableMoveAllStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterTableMoveAllStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterTableMoveAllStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterTableMoveAllStmt& from) { - AlterTableMoveAllStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterTableMoveAllStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterTableMoveAllStmt"; - } - protected: - explicit AlterTableMoveAllStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRolesFieldNumber = 3, - kOrigTablespacenameFieldNumber = 1, - kNewTablespacenameFieldNumber = 4, - kObjtypeFieldNumber = 2, - kNowaitFieldNumber = 5, - }; - // repeated .pg_query.Node roles = 3 [json_name = "roles"]; - int roles_size() const; - private: - int _internal_roles_size() const; - public: - void clear_roles(); - ::pg_query::Node* mutable_roles(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_roles(); - private: - const ::pg_query::Node& _internal_roles(int index) const; - ::pg_query::Node* _internal_add_roles(); - public: - const ::pg_query::Node& roles(int index) const; - ::pg_query::Node* add_roles(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - roles() const; - - // string orig_tablespacename = 1 [json_name = "orig_tablespacename"]; - void clear_orig_tablespacename(); - const std::string& orig_tablespacename() const; - template - void set_orig_tablespacename(ArgT0&& arg0, ArgT... args); - std::string* mutable_orig_tablespacename(); - PROTOBUF_NODISCARD std::string* release_orig_tablespacename(); - void set_allocated_orig_tablespacename(std::string* orig_tablespacename); - private: - const std::string& _internal_orig_tablespacename() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_orig_tablespacename(const std::string& value); - std::string* _internal_mutable_orig_tablespacename(); - public: - - // string new_tablespacename = 4 [json_name = "new_tablespacename"]; - void clear_new_tablespacename(); - const std::string& new_tablespacename() const; - template - void set_new_tablespacename(ArgT0&& arg0, ArgT... args); - std::string* mutable_new_tablespacename(); - PROTOBUF_NODISCARD std::string* release_new_tablespacename(); - void set_allocated_new_tablespacename(std::string* new_tablespacename); - private: - const std::string& _internal_new_tablespacename() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_new_tablespacename(const std::string& value); - std::string* _internal_mutable_new_tablespacename(); - public: - - // .pg_query.ObjectType objtype = 2 [json_name = "objtype"]; - void clear_objtype(); - ::pg_query::ObjectType objtype() const; - void set_objtype(::pg_query::ObjectType value); - private: - ::pg_query::ObjectType _internal_objtype() const; - void _internal_set_objtype(::pg_query::ObjectType value); - public: - - // bool nowait = 5 [json_name = "nowait"]; - void clear_nowait(); - bool nowait() const; - void set_nowait(bool value); - private: - bool _internal_nowait() const; - void _internal_set_nowait(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterTableMoveAllStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > roles_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr orig_tablespacename_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr new_tablespacename_; - int objtype_; - bool nowait_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class SecLabelStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.SecLabelStmt) */ { - public: - inline SecLabelStmt() : SecLabelStmt(nullptr) {} - ~SecLabelStmt() override; - explicit PROTOBUF_CONSTEXPR SecLabelStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SecLabelStmt(const SecLabelStmt& from); - SecLabelStmt(SecLabelStmt&& from) noexcept - : SecLabelStmt() { - *this = ::std::move(from); - } - - inline SecLabelStmt& operator=(const SecLabelStmt& from) { - CopyFrom(from); - return *this; - } - inline SecLabelStmt& operator=(SecLabelStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SecLabelStmt& default_instance() { - return *internal_default_instance(); - } - static inline const SecLabelStmt* internal_default_instance() { - return reinterpret_cast( - &_SecLabelStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 158; - - friend void swap(SecLabelStmt& a, SecLabelStmt& b) { - a.Swap(&b); - } - inline void Swap(SecLabelStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SecLabelStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SecLabelStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SecLabelStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SecLabelStmt& from) { - SecLabelStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SecLabelStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.SecLabelStmt"; - } - protected: - explicit SecLabelStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kProviderFieldNumber = 3, - kLabelFieldNumber = 4, - kObjectFieldNumber = 2, - kObjtypeFieldNumber = 1, - }; - // string provider = 3 [json_name = "provider"]; - void clear_provider(); - const std::string& provider() const; - template - void set_provider(ArgT0&& arg0, ArgT... args); - std::string* mutable_provider(); - PROTOBUF_NODISCARD std::string* release_provider(); - void set_allocated_provider(std::string* provider); - private: - const std::string& _internal_provider() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_provider(const std::string& value); - std::string* _internal_mutable_provider(); - public: - - // string label = 4 [json_name = "label"]; - void clear_label(); - const std::string& label() const; - template - void set_label(ArgT0&& arg0, ArgT... args); - std::string* mutable_label(); - PROTOBUF_NODISCARD std::string* release_label(); - void set_allocated_label(std::string* label); - private: - const std::string& _internal_label() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_label(const std::string& value); - std::string* _internal_mutable_label(); - public: - - // .pg_query.Node object = 2 [json_name = "object"]; - bool has_object() const; - private: - bool _internal_has_object() const; - public: - void clear_object(); - const ::pg_query::Node& object() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_object(); - ::pg_query::Node* mutable_object(); - void set_allocated_object(::pg_query::Node* object); - private: - const ::pg_query::Node& _internal_object() const; - ::pg_query::Node* _internal_mutable_object(); - public: - void unsafe_arena_set_allocated_object( - ::pg_query::Node* object); - ::pg_query::Node* unsafe_arena_release_object(); - - // .pg_query.ObjectType objtype = 1 [json_name = "objtype"]; - void clear_objtype(); - ::pg_query::ObjectType objtype() const; - void set_objtype(::pg_query::ObjectType value); - private: - ::pg_query::ObjectType _internal_objtype() const; - void _internal_set_objtype(::pg_query::ObjectType value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.SecLabelStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr provider_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr label_; - ::pg_query::Node* object_; - int objtype_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateForeignTableStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateForeignTableStmt) */ { - public: - inline CreateForeignTableStmt() : CreateForeignTableStmt(nullptr) {} - ~CreateForeignTableStmt() override; - explicit PROTOBUF_CONSTEXPR CreateForeignTableStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateForeignTableStmt(const CreateForeignTableStmt& from); - CreateForeignTableStmt(CreateForeignTableStmt&& from) noexcept - : CreateForeignTableStmt() { - *this = ::std::move(from); - } - - inline CreateForeignTableStmt& operator=(const CreateForeignTableStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateForeignTableStmt& operator=(CreateForeignTableStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateForeignTableStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateForeignTableStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateForeignTableStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 159; - - friend void swap(CreateForeignTableStmt& a, CreateForeignTableStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateForeignTableStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateForeignTableStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateForeignTableStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateForeignTableStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateForeignTableStmt& from) { - CreateForeignTableStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateForeignTableStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateForeignTableStmt"; - } - protected: - explicit CreateForeignTableStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 3, - kServernameFieldNumber = 2, - kBaseStmtFieldNumber = 1, - }; - // repeated .pg_query.Node options = 3 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string servername = 2 [json_name = "servername"]; - void clear_servername(); - const std::string& servername() const; - template - void set_servername(ArgT0&& arg0, ArgT... args); - std::string* mutable_servername(); - PROTOBUF_NODISCARD std::string* release_servername(); - void set_allocated_servername(std::string* servername); - private: - const std::string& _internal_servername() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_servername(const std::string& value); - std::string* _internal_mutable_servername(); - public: - - // .pg_query.CreateStmt base_stmt = 1 [json_name = "base"]; - bool has_base_stmt() const; - private: - bool _internal_has_base_stmt() const; - public: - void clear_base_stmt(); - const ::pg_query::CreateStmt& base_stmt() const; - PROTOBUF_NODISCARD ::pg_query::CreateStmt* release_base_stmt(); - ::pg_query::CreateStmt* mutable_base_stmt(); - void set_allocated_base_stmt(::pg_query::CreateStmt* base_stmt); - private: - const ::pg_query::CreateStmt& _internal_base_stmt() const; - ::pg_query::CreateStmt* _internal_mutable_base_stmt(); - public: - void unsafe_arena_set_allocated_base_stmt( - ::pg_query::CreateStmt* base_stmt); - ::pg_query::CreateStmt* unsafe_arena_release_base_stmt(); - - // @@protoc_insertion_point(class_scope:pg_query.CreateForeignTableStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr servername_; - ::pg_query::CreateStmt* base_stmt_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ImportForeignSchemaStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ImportForeignSchemaStmt) */ { - public: - inline ImportForeignSchemaStmt() : ImportForeignSchemaStmt(nullptr) {} - ~ImportForeignSchemaStmt() override; - explicit PROTOBUF_CONSTEXPR ImportForeignSchemaStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ImportForeignSchemaStmt(const ImportForeignSchemaStmt& from); - ImportForeignSchemaStmt(ImportForeignSchemaStmt&& from) noexcept - : ImportForeignSchemaStmt() { - *this = ::std::move(from); - } - - inline ImportForeignSchemaStmt& operator=(const ImportForeignSchemaStmt& from) { - CopyFrom(from); - return *this; - } - inline ImportForeignSchemaStmt& operator=(ImportForeignSchemaStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ImportForeignSchemaStmt& default_instance() { - return *internal_default_instance(); - } - static inline const ImportForeignSchemaStmt* internal_default_instance() { - return reinterpret_cast( - &_ImportForeignSchemaStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 160; - - friend void swap(ImportForeignSchemaStmt& a, ImportForeignSchemaStmt& b) { - a.Swap(&b); - } - inline void Swap(ImportForeignSchemaStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ImportForeignSchemaStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ImportForeignSchemaStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ImportForeignSchemaStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ImportForeignSchemaStmt& from) { - ImportForeignSchemaStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ImportForeignSchemaStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ImportForeignSchemaStmt"; - } - protected: - explicit ImportForeignSchemaStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTableListFieldNumber = 5, - kOptionsFieldNumber = 6, - kServerNameFieldNumber = 1, - kRemoteSchemaFieldNumber = 2, - kLocalSchemaFieldNumber = 3, - kListTypeFieldNumber = 4, - }; - // repeated .pg_query.Node table_list = 5 [json_name = "table_list"]; - int table_list_size() const; - private: - int _internal_table_list_size() const; - public: - void clear_table_list(); - ::pg_query::Node* mutable_table_list(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_table_list(); - private: - const ::pg_query::Node& _internal_table_list(int index) const; - ::pg_query::Node* _internal_add_table_list(); - public: - const ::pg_query::Node& table_list(int index) const; - ::pg_query::Node* add_table_list(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - table_list() const; - - // repeated .pg_query.Node options = 6 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string server_name = 1 [json_name = "server_name"]; - void clear_server_name(); - const std::string& server_name() const; - template - void set_server_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_server_name(); - PROTOBUF_NODISCARD std::string* release_server_name(); - void set_allocated_server_name(std::string* server_name); - private: - const std::string& _internal_server_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_server_name(const std::string& value); - std::string* _internal_mutable_server_name(); - public: - - // string remote_schema = 2 [json_name = "remote_schema"]; - void clear_remote_schema(); - const std::string& remote_schema() const; - template - void set_remote_schema(ArgT0&& arg0, ArgT... args); - std::string* mutable_remote_schema(); - PROTOBUF_NODISCARD std::string* release_remote_schema(); - void set_allocated_remote_schema(std::string* remote_schema); - private: - const std::string& _internal_remote_schema() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_remote_schema(const std::string& value); - std::string* _internal_mutable_remote_schema(); - public: - - // string local_schema = 3 [json_name = "local_schema"]; - void clear_local_schema(); - const std::string& local_schema() const; - template - void set_local_schema(ArgT0&& arg0, ArgT... args); - std::string* mutable_local_schema(); - PROTOBUF_NODISCARD std::string* release_local_schema(); - void set_allocated_local_schema(std::string* local_schema); - private: - const std::string& _internal_local_schema() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_local_schema(const std::string& value); - std::string* _internal_mutable_local_schema(); - public: - - // .pg_query.ImportForeignSchemaType list_type = 4 [json_name = "list_type"]; - void clear_list_type(); - ::pg_query::ImportForeignSchemaType list_type() const; - void set_list_type(::pg_query::ImportForeignSchemaType value); - private: - ::pg_query::ImportForeignSchemaType _internal_list_type() const; - void _internal_set_list_type(::pg_query::ImportForeignSchemaType value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.ImportForeignSchemaStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > table_list_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr server_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr remote_schema_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr local_schema_; - int list_type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateExtensionStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateExtensionStmt) */ { - public: - inline CreateExtensionStmt() : CreateExtensionStmt(nullptr) {} - ~CreateExtensionStmt() override; - explicit PROTOBUF_CONSTEXPR CreateExtensionStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateExtensionStmt(const CreateExtensionStmt& from); - CreateExtensionStmt(CreateExtensionStmt&& from) noexcept - : CreateExtensionStmt() { - *this = ::std::move(from); - } - - inline CreateExtensionStmt& operator=(const CreateExtensionStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateExtensionStmt& operator=(CreateExtensionStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateExtensionStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateExtensionStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateExtensionStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 161; - - friend void swap(CreateExtensionStmt& a, CreateExtensionStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateExtensionStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateExtensionStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateExtensionStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateExtensionStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateExtensionStmt& from) { - CreateExtensionStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateExtensionStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateExtensionStmt"; - } - protected: - explicit CreateExtensionStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 3, - kExtnameFieldNumber = 1, - kIfNotExistsFieldNumber = 2, - }; - // repeated .pg_query.Node options = 3 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string extname = 1 [json_name = "extname"]; - void clear_extname(); - const std::string& extname() const; - template - void set_extname(ArgT0&& arg0, ArgT... args); - std::string* mutable_extname(); - PROTOBUF_NODISCARD std::string* release_extname(); - void set_allocated_extname(std::string* extname); - private: - const std::string& _internal_extname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_extname(const std::string& value); - std::string* _internal_mutable_extname(); - public: - - // bool if_not_exists = 2 [json_name = "if_not_exists"]; - void clear_if_not_exists(); - bool if_not_exists() const; - void set_if_not_exists(bool value); - private: - bool _internal_if_not_exists() const; - void _internal_set_if_not_exists(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreateExtensionStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr extname_; - bool if_not_exists_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterExtensionStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterExtensionStmt) */ { - public: - inline AlterExtensionStmt() : AlterExtensionStmt(nullptr) {} - ~AlterExtensionStmt() override; - explicit PROTOBUF_CONSTEXPR AlterExtensionStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterExtensionStmt(const AlterExtensionStmt& from); - AlterExtensionStmt(AlterExtensionStmt&& from) noexcept - : AlterExtensionStmt() { - *this = ::std::move(from); - } - - inline AlterExtensionStmt& operator=(const AlterExtensionStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterExtensionStmt& operator=(AlterExtensionStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterExtensionStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterExtensionStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterExtensionStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 162; - - friend void swap(AlterExtensionStmt& a, AlterExtensionStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterExtensionStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterExtensionStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterExtensionStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterExtensionStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterExtensionStmt& from) { - AlterExtensionStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterExtensionStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterExtensionStmt"; - } - protected: - explicit AlterExtensionStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 2, - kExtnameFieldNumber = 1, - }; - // repeated .pg_query.Node options = 2 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string extname = 1 [json_name = "extname"]; - void clear_extname(); - const std::string& extname() const; - template - void set_extname(ArgT0&& arg0, ArgT... args); - std::string* mutable_extname(); - PROTOBUF_NODISCARD std::string* release_extname(); - void set_allocated_extname(std::string* extname); - private: - const std::string& _internal_extname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_extname(const std::string& value); - std::string* _internal_mutable_extname(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterExtensionStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr extname_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterExtensionContentsStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterExtensionContentsStmt) */ { - public: - inline AlterExtensionContentsStmt() : AlterExtensionContentsStmt(nullptr) {} - ~AlterExtensionContentsStmt() override; - explicit PROTOBUF_CONSTEXPR AlterExtensionContentsStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterExtensionContentsStmt(const AlterExtensionContentsStmt& from); - AlterExtensionContentsStmt(AlterExtensionContentsStmt&& from) noexcept - : AlterExtensionContentsStmt() { - *this = ::std::move(from); - } - - inline AlterExtensionContentsStmt& operator=(const AlterExtensionContentsStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterExtensionContentsStmt& operator=(AlterExtensionContentsStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterExtensionContentsStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterExtensionContentsStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterExtensionContentsStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 163; - - friend void swap(AlterExtensionContentsStmt& a, AlterExtensionContentsStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterExtensionContentsStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterExtensionContentsStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterExtensionContentsStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterExtensionContentsStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterExtensionContentsStmt& from) { - AlterExtensionContentsStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterExtensionContentsStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterExtensionContentsStmt"; - } - protected: - explicit AlterExtensionContentsStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kExtnameFieldNumber = 1, - kObjectFieldNumber = 4, - kActionFieldNumber = 2, - kObjtypeFieldNumber = 3, - }; - // string extname = 1 [json_name = "extname"]; - void clear_extname(); - const std::string& extname() const; - template - void set_extname(ArgT0&& arg0, ArgT... args); - std::string* mutable_extname(); - PROTOBUF_NODISCARD std::string* release_extname(); - void set_allocated_extname(std::string* extname); - private: - const std::string& _internal_extname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_extname(const std::string& value); - std::string* _internal_mutable_extname(); - public: - - // .pg_query.Node object = 4 [json_name = "object"]; - bool has_object() const; - private: - bool _internal_has_object() const; - public: - void clear_object(); - const ::pg_query::Node& object() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_object(); - ::pg_query::Node* mutable_object(); - void set_allocated_object(::pg_query::Node* object); - private: - const ::pg_query::Node& _internal_object() const; - ::pg_query::Node* _internal_mutable_object(); - public: - void unsafe_arena_set_allocated_object( - ::pg_query::Node* object); - ::pg_query::Node* unsafe_arena_release_object(); - - // int32 action = 2 [json_name = "action"]; - void clear_action(); - int32_t action() const; - void set_action(int32_t value); - private: - int32_t _internal_action() const; - void _internal_set_action(int32_t value); - public: - - // .pg_query.ObjectType objtype = 3 [json_name = "objtype"]; - void clear_objtype(); - ::pg_query::ObjectType objtype() const; - void set_objtype(::pg_query::ObjectType value); - private: - ::pg_query::ObjectType _internal_objtype() const; - void _internal_set_objtype(::pg_query::ObjectType value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterExtensionContentsStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr extname_; - ::pg_query::Node* object_; - int32_t action_; - int objtype_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateEventTrigStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateEventTrigStmt) */ { - public: - inline CreateEventTrigStmt() : CreateEventTrigStmt(nullptr) {} - ~CreateEventTrigStmt() override; - explicit PROTOBUF_CONSTEXPR CreateEventTrigStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateEventTrigStmt(const CreateEventTrigStmt& from); - CreateEventTrigStmt(CreateEventTrigStmt&& from) noexcept - : CreateEventTrigStmt() { - *this = ::std::move(from); - } - - inline CreateEventTrigStmt& operator=(const CreateEventTrigStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateEventTrigStmt& operator=(CreateEventTrigStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateEventTrigStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateEventTrigStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateEventTrigStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 164; - - friend void swap(CreateEventTrigStmt& a, CreateEventTrigStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateEventTrigStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateEventTrigStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateEventTrigStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateEventTrigStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateEventTrigStmt& from) { - CreateEventTrigStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateEventTrigStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateEventTrigStmt"; - } - protected: - explicit CreateEventTrigStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kWhenclauseFieldNumber = 3, - kFuncnameFieldNumber = 4, - kTrignameFieldNumber = 1, - kEventnameFieldNumber = 2, - }; - // repeated .pg_query.Node whenclause = 3 [json_name = "whenclause"]; - int whenclause_size() const; - private: - int _internal_whenclause_size() const; - public: - void clear_whenclause(); - ::pg_query::Node* mutable_whenclause(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_whenclause(); - private: - const ::pg_query::Node& _internal_whenclause(int index) const; - ::pg_query::Node* _internal_add_whenclause(); - public: - const ::pg_query::Node& whenclause(int index) const; - ::pg_query::Node* add_whenclause(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - whenclause() const; - - // repeated .pg_query.Node funcname = 4 [json_name = "funcname"]; - int funcname_size() const; - private: - int _internal_funcname_size() const; - public: - void clear_funcname(); - ::pg_query::Node* mutable_funcname(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_funcname(); - private: - const ::pg_query::Node& _internal_funcname(int index) const; - ::pg_query::Node* _internal_add_funcname(); - public: - const ::pg_query::Node& funcname(int index) const; - ::pg_query::Node* add_funcname(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - funcname() const; - - // string trigname = 1 [json_name = "trigname"]; - void clear_trigname(); - const std::string& trigname() const; - template - void set_trigname(ArgT0&& arg0, ArgT... args); - std::string* mutable_trigname(); - PROTOBUF_NODISCARD std::string* release_trigname(); - void set_allocated_trigname(std::string* trigname); - private: - const std::string& _internal_trigname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_trigname(const std::string& value); - std::string* _internal_mutable_trigname(); - public: - - // string eventname = 2 [json_name = "eventname"]; - void clear_eventname(); - const std::string& eventname() const; - template - void set_eventname(ArgT0&& arg0, ArgT... args); - std::string* mutable_eventname(); - PROTOBUF_NODISCARD std::string* release_eventname(); - void set_allocated_eventname(std::string* eventname); - private: - const std::string& _internal_eventname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_eventname(const std::string& value); - std::string* _internal_mutable_eventname(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreateEventTrigStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > whenclause_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > funcname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr trigname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr eventname_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterEventTrigStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterEventTrigStmt) */ { - public: - inline AlterEventTrigStmt() : AlterEventTrigStmt(nullptr) {} - ~AlterEventTrigStmt() override; - explicit PROTOBUF_CONSTEXPR AlterEventTrigStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterEventTrigStmt(const AlterEventTrigStmt& from); - AlterEventTrigStmt(AlterEventTrigStmt&& from) noexcept - : AlterEventTrigStmt() { - *this = ::std::move(from); - } - - inline AlterEventTrigStmt& operator=(const AlterEventTrigStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterEventTrigStmt& operator=(AlterEventTrigStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterEventTrigStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterEventTrigStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterEventTrigStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 165; - - friend void swap(AlterEventTrigStmt& a, AlterEventTrigStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterEventTrigStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterEventTrigStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterEventTrigStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterEventTrigStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterEventTrigStmt& from) { - AlterEventTrigStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterEventTrigStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterEventTrigStmt"; - } - protected: - explicit AlterEventTrigStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTrignameFieldNumber = 1, - kTgenabledFieldNumber = 2, - }; - // string trigname = 1 [json_name = "trigname"]; - void clear_trigname(); - const std::string& trigname() const; - template - void set_trigname(ArgT0&& arg0, ArgT... args); - std::string* mutable_trigname(); - PROTOBUF_NODISCARD std::string* release_trigname(); - void set_allocated_trigname(std::string* trigname); - private: - const std::string& _internal_trigname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_trigname(const std::string& value); - std::string* _internal_mutable_trigname(); - public: - - // string tgenabled = 2 [json_name = "tgenabled"]; - void clear_tgenabled(); - const std::string& tgenabled() const; - template - void set_tgenabled(ArgT0&& arg0, ArgT... args); - std::string* mutable_tgenabled(); - PROTOBUF_NODISCARD std::string* release_tgenabled(); - void set_allocated_tgenabled(std::string* tgenabled); - private: - const std::string& _internal_tgenabled() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_tgenabled(const std::string& value); - std::string* _internal_mutable_tgenabled(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterEventTrigStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr trigname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tgenabled_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class RefreshMatViewStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.RefreshMatViewStmt) */ { - public: - inline RefreshMatViewStmt() : RefreshMatViewStmt(nullptr) {} - ~RefreshMatViewStmt() override; - explicit PROTOBUF_CONSTEXPR RefreshMatViewStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - RefreshMatViewStmt(const RefreshMatViewStmt& from); - RefreshMatViewStmt(RefreshMatViewStmt&& from) noexcept - : RefreshMatViewStmt() { - *this = ::std::move(from); - } - - inline RefreshMatViewStmt& operator=(const RefreshMatViewStmt& from) { - CopyFrom(from); - return *this; - } - inline RefreshMatViewStmt& operator=(RefreshMatViewStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RefreshMatViewStmt& default_instance() { - return *internal_default_instance(); - } - static inline const RefreshMatViewStmt* internal_default_instance() { - return reinterpret_cast( - &_RefreshMatViewStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 166; - - friend void swap(RefreshMatViewStmt& a, RefreshMatViewStmt& b) { - a.Swap(&b); - } - inline void Swap(RefreshMatViewStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RefreshMatViewStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RefreshMatViewStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RefreshMatViewStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RefreshMatViewStmt& from) { - RefreshMatViewStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RefreshMatViewStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.RefreshMatViewStmt"; - } - protected: - explicit RefreshMatViewStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRelationFieldNumber = 3, - kConcurrentFieldNumber = 1, - kSkipDataFieldNumber = 2, - }; - // .pg_query.RangeVar relation = 3 [json_name = "relation"]; - bool has_relation() const; - private: - bool _internal_has_relation() const; - public: - void clear_relation(); - const ::pg_query::RangeVar& relation() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_relation(); - ::pg_query::RangeVar* mutable_relation(); - void set_allocated_relation(::pg_query::RangeVar* relation); - private: - const ::pg_query::RangeVar& _internal_relation() const; - ::pg_query::RangeVar* _internal_mutable_relation(); - public: - void unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation); - ::pg_query::RangeVar* unsafe_arena_release_relation(); - - // bool concurrent = 1 [json_name = "concurrent"]; - void clear_concurrent(); - bool concurrent() const; - void set_concurrent(bool value); - private: - bool _internal_concurrent() const; - void _internal_set_concurrent(bool value); - public: - - // bool skip_data = 2 [json_name = "skipData"]; - void clear_skip_data(); - bool skip_data() const; - void set_skip_data(bool value); - private: - bool _internal_skip_data() const; - void _internal_set_skip_data(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.RefreshMatViewStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::RangeVar* relation_; - bool concurrent_; - bool skip_data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ReplicaIdentityStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ReplicaIdentityStmt) */ { - public: - inline ReplicaIdentityStmt() : ReplicaIdentityStmt(nullptr) {} - ~ReplicaIdentityStmt() override; - explicit PROTOBUF_CONSTEXPR ReplicaIdentityStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ReplicaIdentityStmt(const ReplicaIdentityStmt& from); - ReplicaIdentityStmt(ReplicaIdentityStmt&& from) noexcept - : ReplicaIdentityStmt() { - *this = ::std::move(from); - } - - inline ReplicaIdentityStmt& operator=(const ReplicaIdentityStmt& from) { - CopyFrom(from); - return *this; - } - inline ReplicaIdentityStmt& operator=(ReplicaIdentityStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ReplicaIdentityStmt& default_instance() { - return *internal_default_instance(); - } - static inline const ReplicaIdentityStmt* internal_default_instance() { - return reinterpret_cast( - &_ReplicaIdentityStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 167; - - friend void swap(ReplicaIdentityStmt& a, ReplicaIdentityStmt& b) { - a.Swap(&b); - } - inline void Swap(ReplicaIdentityStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ReplicaIdentityStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ReplicaIdentityStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ReplicaIdentityStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ReplicaIdentityStmt& from) { - ReplicaIdentityStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ReplicaIdentityStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ReplicaIdentityStmt"; - } - protected: - explicit ReplicaIdentityStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIdentityTypeFieldNumber = 1, - kNameFieldNumber = 2, - }; - // string identity_type = 1 [json_name = "identity_type"]; - void clear_identity_type(); - const std::string& identity_type() const; - template - void set_identity_type(ArgT0&& arg0, ArgT... args); - std::string* mutable_identity_type(); - PROTOBUF_NODISCARD std::string* release_identity_type(); - void set_allocated_identity_type(std::string* identity_type); - private: - const std::string& _internal_identity_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_identity_type(const std::string& value); - std::string* _internal_mutable_identity_type(); - public: - - // string name = 2 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.ReplicaIdentityStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr identity_type_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterSystemStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterSystemStmt) */ { - public: - inline AlterSystemStmt() : AlterSystemStmt(nullptr) {} - ~AlterSystemStmt() override; - explicit PROTOBUF_CONSTEXPR AlterSystemStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterSystemStmt(const AlterSystemStmt& from); - AlterSystemStmt(AlterSystemStmt&& from) noexcept - : AlterSystemStmt() { - *this = ::std::move(from); - } - - inline AlterSystemStmt& operator=(const AlterSystemStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterSystemStmt& operator=(AlterSystemStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterSystemStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterSystemStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterSystemStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 168; - - friend void swap(AlterSystemStmt& a, AlterSystemStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterSystemStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterSystemStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterSystemStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterSystemStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterSystemStmt& from) { - AlterSystemStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterSystemStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterSystemStmt"; - } - protected: - explicit AlterSystemStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSetstmtFieldNumber = 1, - }; - // .pg_query.VariableSetStmt setstmt = 1 [json_name = "setstmt"]; - bool has_setstmt() const; - private: - bool _internal_has_setstmt() const; - public: - void clear_setstmt(); - const ::pg_query::VariableSetStmt& setstmt() const; - PROTOBUF_NODISCARD ::pg_query::VariableSetStmt* release_setstmt(); - ::pg_query::VariableSetStmt* mutable_setstmt(); - void set_allocated_setstmt(::pg_query::VariableSetStmt* setstmt); - private: - const ::pg_query::VariableSetStmt& _internal_setstmt() const; - ::pg_query::VariableSetStmt* _internal_mutable_setstmt(); - public: - void unsafe_arena_set_allocated_setstmt( - ::pg_query::VariableSetStmt* setstmt); - ::pg_query::VariableSetStmt* unsafe_arena_release_setstmt(); - - // @@protoc_insertion_point(class_scope:pg_query.AlterSystemStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::VariableSetStmt* setstmt_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreatePolicyStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreatePolicyStmt) */ { - public: - inline CreatePolicyStmt() : CreatePolicyStmt(nullptr) {} - ~CreatePolicyStmt() override; - explicit PROTOBUF_CONSTEXPR CreatePolicyStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreatePolicyStmt(const CreatePolicyStmt& from); - CreatePolicyStmt(CreatePolicyStmt&& from) noexcept - : CreatePolicyStmt() { - *this = ::std::move(from); - } - - inline CreatePolicyStmt& operator=(const CreatePolicyStmt& from) { - CopyFrom(from); - return *this; - } - inline CreatePolicyStmt& operator=(CreatePolicyStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreatePolicyStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreatePolicyStmt* internal_default_instance() { - return reinterpret_cast( - &_CreatePolicyStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 169; - - friend void swap(CreatePolicyStmt& a, CreatePolicyStmt& b) { - a.Swap(&b); - } - inline void Swap(CreatePolicyStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreatePolicyStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreatePolicyStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreatePolicyStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreatePolicyStmt& from) { - CreatePolicyStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreatePolicyStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreatePolicyStmt"; - } - protected: - explicit CreatePolicyStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRolesFieldNumber = 5, - kPolicyNameFieldNumber = 1, - kCmdNameFieldNumber = 3, - kTableFieldNumber = 2, - kQualFieldNumber = 6, - kWithCheckFieldNumber = 7, - kPermissiveFieldNumber = 4, - }; - // repeated .pg_query.Node roles = 5 [json_name = "roles"]; - int roles_size() const; - private: - int _internal_roles_size() const; - public: - void clear_roles(); - ::pg_query::Node* mutable_roles(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_roles(); - private: - const ::pg_query::Node& _internal_roles(int index) const; - ::pg_query::Node* _internal_add_roles(); - public: - const ::pg_query::Node& roles(int index) const; - ::pg_query::Node* add_roles(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - roles() const; - - // string policy_name = 1 [json_name = "policy_name"]; - void clear_policy_name(); - const std::string& policy_name() const; - template - void set_policy_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_policy_name(); - PROTOBUF_NODISCARD std::string* release_policy_name(); - void set_allocated_policy_name(std::string* policy_name); - private: - const std::string& _internal_policy_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_policy_name(const std::string& value); - std::string* _internal_mutable_policy_name(); - public: - - // string cmd_name = 3 [json_name = "cmd_name"]; - void clear_cmd_name(); - const std::string& cmd_name() const; - template - void set_cmd_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_cmd_name(); - PROTOBUF_NODISCARD std::string* release_cmd_name(); - void set_allocated_cmd_name(std::string* cmd_name); - private: - const std::string& _internal_cmd_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_cmd_name(const std::string& value); - std::string* _internal_mutable_cmd_name(); - public: - - // .pg_query.RangeVar table = 2 [json_name = "table"]; - bool has_table() const; - private: - bool _internal_has_table() const; - public: - void clear_table(); - const ::pg_query::RangeVar& table() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_table(); - ::pg_query::RangeVar* mutable_table(); - void set_allocated_table(::pg_query::RangeVar* table); - private: - const ::pg_query::RangeVar& _internal_table() const; - ::pg_query::RangeVar* _internal_mutable_table(); - public: - void unsafe_arena_set_allocated_table( - ::pg_query::RangeVar* table); - ::pg_query::RangeVar* unsafe_arena_release_table(); - - // .pg_query.Node qual = 6 [json_name = "qual"]; - bool has_qual() const; - private: - bool _internal_has_qual() const; - public: - void clear_qual(); - const ::pg_query::Node& qual() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_qual(); - ::pg_query::Node* mutable_qual(); - void set_allocated_qual(::pg_query::Node* qual); - private: - const ::pg_query::Node& _internal_qual() const; - ::pg_query::Node* _internal_mutable_qual(); - public: - void unsafe_arena_set_allocated_qual( - ::pg_query::Node* qual); - ::pg_query::Node* unsafe_arena_release_qual(); - - // .pg_query.Node with_check = 7 [json_name = "with_check"]; - bool has_with_check() const; - private: - bool _internal_has_with_check() const; - public: - void clear_with_check(); - const ::pg_query::Node& with_check() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_with_check(); - ::pg_query::Node* mutable_with_check(); - void set_allocated_with_check(::pg_query::Node* with_check); - private: - const ::pg_query::Node& _internal_with_check() const; - ::pg_query::Node* _internal_mutable_with_check(); - public: - void unsafe_arena_set_allocated_with_check( - ::pg_query::Node* with_check); - ::pg_query::Node* unsafe_arena_release_with_check(); - - // bool permissive = 4 [json_name = "permissive"]; - void clear_permissive(); - bool permissive() const; - void set_permissive(bool value); - private: - bool _internal_permissive() const; - void _internal_set_permissive(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreatePolicyStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > roles_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr policy_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cmd_name_; - ::pg_query::RangeVar* table_; - ::pg_query::Node* qual_; - ::pg_query::Node* with_check_; - bool permissive_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterPolicyStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterPolicyStmt) */ { - public: - inline AlterPolicyStmt() : AlterPolicyStmt(nullptr) {} - ~AlterPolicyStmt() override; - explicit PROTOBUF_CONSTEXPR AlterPolicyStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterPolicyStmt(const AlterPolicyStmt& from); - AlterPolicyStmt(AlterPolicyStmt&& from) noexcept - : AlterPolicyStmt() { - *this = ::std::move(from); - } - - inline AlterPolicyStmt& operator=(const AlterPolicyStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterPolicyStmt& operator=(AlterPolicyStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterPolicyStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterPolicyStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterPolicyStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 170; - - friend void swap(AlterPolicyStmt& a, AlterPolicyStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterPolicyStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterPolicyStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterPolicyStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterPolicyStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterPolicyStmt& from) { - AlterPolicyStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterPolicyStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterPolicyStmt"; - } - protected: - explicit AlterPolicyStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRolesFieldNumber = 3, - kPolicyNameFieldNumber = 1, - kTableFieldNumber = 2, - kQualFieldNumber = 4, - kWithCheckFieldNumber = 5, - }; - // repeated .pg_query.Node roles = 3 [json_name = "roles"]; - int roles_size() const; - private: - int _internal_roles_size() const; - public: - void clear_roles(); - ::pg_query::Node* mutable_roles(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_roles(); - private: - const ::pg_query::Node& _internal_roles(int index) const; - ::pg_query::Node* _internal_add_roles(); - public: - const ::pg_query::Node& roles(int index) const; - ::pg_query::Node* add_roles(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - roles() const; - - // string policy_name = 1 [json_name = "policy_name"]; - void clear_policy_name(); - const std::string& policy_name() const; - template - void set_policy_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_policy_name(); - PROTOBUF_NODISCARD std::string* release_policy_name(); - void set_allocated_policy_name(std::string* policy_name); - private: - const std::string& _internal_policy_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_policy_name(const std::string& value); - std::string* _internal_mutable_policy_name(); - public: - - // .pg_query.RangeVar table = 2 [json_name = "table"]; - bool has_table() const; - private: - bool _internal_has_table() const; - public: - void clear_table(); - const ::pg_query::RangeVar& table() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_table(); - ::pg_query::RangeVar* mutable_table(); - void set_allocated_table(::pg_query::RangeVar* table); - private: - const ::pg_query::RangeVar& _internal_table() const; - ::pg_query::RangeVar* _internal_mutable_table(); - public: - void unsafe_arena_set_allocated_table( - ::pg_query::RangeVar* table); - ::pg_query::RangeVar* unsafe_arena_release_table(); - - // .pg_query.Node qual = 4 [json_name = "qual"]; - bool has_qual() const; - private: - bool _internal_has_qual() const; - public: - void clear_qual(); - const ::pg_query::Node& qual() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_qual(); - ::pg_query::Node* mutable_qual(); - void set_allocated_qual(::pg_query::Node* qual); - private: - const ::pg_query::Node& _internal_qual() const; - ::pg_query::Node* _internal_mutable_qual(); - public: - void unsafe_arena_set_allocated_qual( - ::pg_query::Node* qual); - ::pg_query::Node* unsafe_arena_release_qual(); - - // .pg_query.Node with_check = 5 [json_name = "with_check"]; - bool has_with_check() const; - private: - bool _internal_has_with_check() const; - public: - void clear_with_check(); - const ::pg_query::Node& with_check() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_with_check(); - ::pg_query::Node* mutable_with_check(); - void set_allocated_with_check(::pg_query::Node* with_check); - private: - const ::pg_query::Node& _internal_with_check() const; - ::pg_query::Node* _internal_mutable_with_check(); - public: - void unsafe_arena_set_allocated_with_check( - ::pg_query::Node* with_check); - ::pg_query::Node* unsafe_arena_release_with_check(); - - // @@protoc_insertion_point(class_scope:pg_query.AlterPolicyStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > roles_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr policy_name_; - ::pg_query::RangeVar* table_; - ::pg_query::Node* qual_; - ::pg_query::Node* with_check_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateTransformStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateTransformStmt) */ { - public: - inline CreateTransformStmt() : CreateTransformStmt(nullptr) {} - ~CreateTransformStmt() override; - explicit PROTOBUF_CONSTEXPR CreateTransformStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateTransformStmt(const CreateTransformStmt& from); - CreateTransformStmt(CreateTransformStmt&& from) noexcept - : CreateTransformStmt() { - *this = ::std::move(from); - } - - inline CreateTransformStmt& operator=(const CreateTransformStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateTransformStmt& operator=(CreateTransformStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateTransformStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateTransformStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateTransformStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 171; - - friend void swap(CreateTransformStmt& a, CreateTransformStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateTransformStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateTransformStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateTransformStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateTransformStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateTransformStmt& from) { - CreateTransformStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateTransformStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateTransformStmt"; - } - protected: - explicit CreateTransformStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kLangFieldNumber = 3, - kTypeNameFieldNumber = 2, - kFromsqlFieldNumber = 4, - kTosqlFieldNumber = 5, - kReplaceFieldNumber = 1, - }; - // string lang = 3 [json_name = "lang"]; - void clear_lang(); - const std::string& lang() const; - template - void set_lang(ArgT0&& arg0, ArgT... args); - std::string* mutable_lang(); - PROTOBUF_NODISCARD std::string* release_lang(); - void set_allocated_lang(std::string* lang); - private: - const std::string& _internal_lang() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_lang(const std::string& value); - std::string* _internal_mutable_lang(); - public: - - // .pg_query.TypeName type_name = 2 [json_name = "type_name"]; - bool has_type_name() const; - private: - bool _internal_has_type_name() const; - public: - void clear_type_name(); - const ::pg_query::TypeName& type_name() const; - PROTOBUF_NODISCARD ::pg_query::TypeName* release_type_name(); - ::pg_query::TypeName* mutable_type_name(); - void set_allocated_type_name(::pg_query::TypeName* type_name); - private: - const ::pg_query::TypeName& _internal_type_name() const; - ::pg_query::TypeName* _internal_mutable_type_name(); - public: - void unsafe_arena_set_allocated_type_name( - ::pg_query::TypeName* type_name); - ::pg_query::TypeName* unsafe_arena_release_type_name(); - - // .pg_query.ObjectWithArgs fromsql = 4 [json_name = "fromsql"]; - bool has_fromsql() const; - private: - bool _internal_has_fromsql() const; - public: - void clear_fromsql(); - const ::pg_query::ObjectWithArgs& fromsql() const; - PROTOBUF_NODISCARD ::pg_query::ObjectWithArgs* release_fromsql(); - ::pg_query::ObjectWithArgs* mutable_fromsql(); - void set_allocated_fromsql(::pg_query::ObjectWithArgs* fromsql); - private: - const ::pg_query::ObjectWithArgs& _internal_fromsql() const; - ::pg_query::ObjectWithArgs* _internal_mutable_fromsql(); - public: - void unsafe_arena_set_allocated_fromsql( - ::pg_query::ObjectWithArgs* fromsql); - ::pg_query::ObjectWithArgs* unsafe_arena_release_fromsql(); - - // .pg_query.ObjectWithArgs tosql = 5 [json_name = "tosql"]; - bool has_tosql() const; - private: - bool _internal_has_tosql() const; - public: - void clear_tosql(); - const ::pg_query::ObjectWithArgs& tosql() const; - PROTOBUF_NODISCARD ::pg_query::ObjectWithArgs* release_tosql(); - ::pg_query::ObjectWithArgs* mutable_tosql(); - void set_allocated_tosql(::pg_query::ObjectWithArgs* tosql); - private: - const ::pg_query::ObjectWithArgs& _internal_tosql() const; - ::pg_query::ObjectWithArgs* _internal_mutable_tosql(); - public: - void unsafe_arena_set_allocated_tosql( - ::pg_query::ObjectWithArgs* tosql); - ::pg_query::ObjectWithArgs* unsafe_arena_release_tosql(); - - // bool replace = 1 [json_name = "replace"]; - void clear_replace(); - bool replace() const; - void set_replace(bool value); - private: - bool _internal_replace() const; - void _internal_set_replace(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreateTransformStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr lang_; - ::pg_query::TypeName* type_name_; - ::pg_query::ObjectWithArgs* fromsql_; - ::pg_query::ObjectWithArgs* tosql_; - bool replace_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateAmStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateAmStmt) */ { - public: - inline CreateAmStmt() : CreateAmStmt(nullptr) {} - ~CreateAmStmt() override; - explicit PROTOBUF_CONSTEXPR CreateAmStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateAmStmt(const CreateAmStmt& from); - CreateAmStmt(CreateAmStmt&& from) noexcept - : CreateAmStmt() { - *this = ::std::move(from); - } - - inline CreateAmStmt& operator=(const CreateAmStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateAmStmt& operator=(CreateAmStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateAmStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateAmStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateAmStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 172; - - friend void swap(CreateAmStmt& a, CreateAmStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateAmStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateAmStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateAmStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateAmStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateAmStmt& from) { - CreateAmStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateAmStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateAmStmt"; - } - protected: - explicit CreateAmStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kHandlerNameFieldNumber = 2, - kAmnameFieldNumber = 1, - kAmtypeFieldNumber = 3, - }; - // repeated .pg_query.Node handler_name = 2 [json_name = "handler_name"]; - int handler_name_size() const; - private: - int _internal_handler_name_size() const; - public: - void clear_handler_name(); - ::pg_query::Node* mutable_handler_name(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_handler_name(); - private: - const ::pg_query::Node& _internal_handler_name(int index) const; - ::pg_query::Node* _internal_add_handler_name(); - public: - const ::pg_query::Node& handler_name(int index) const; - ::pg_query::Node* add_handler_name(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - handler_name() const; - - // string amname = 1 [json_name = "amname"]; - void clear_amname(); - const std::string& amname() const; - template - void set_amname(ArgT0&& arg0, ArgT... args); - std::string* mutable_amname(); - PROTOBUF_NODISCARD std::string* release_amname(); - void set_allocated_amname(std::string* amname); - private: - const std::string& _internal_amname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_amname(const std::string& value); - std::string* _internal_mutable_amname(); - public: - - // string amtype = 3 [json_name = "amtype"]; - void clear_amtype(); - const std::string& amtype() const; - template - void set_amtype(ArgT0&& arg0, ArgT... args); - std::string* mutable_amtype(); - PROTOBUF_NODISCARD std::string* release_amtype(); - void set_allocated_amtype(std::string* amtype); - private: - const std::string& _internal_amtype() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_amtype(const std::string& value); - std::string* _internal_mutable_amtype(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreateAmStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > handler_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amtype_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreatePublicationStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreatePublicationStmt) */ { - public: - inline CreatePublicationStmt() : CreatePublicationStmt(nullptr) {} - ~CreatePublicationStmt() override; - explicit PROTOBUF_CONSTEXPR CreatePublicationStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreatePublicationStmt(const CreatePublicationStmt& from); - CreatePublicationStmt(CreatePublicationStmt&& from) noexcept - : CreatePublicationStmt() { - *this = ::std::move(from); - } - - inline CreatePublicationStmt& operator=(const CreatePublicationStmt& from) { - CopyFrom(from); - return *this; - } - inline CreatePublicationStmt& operator=(CreatePublicationStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreatePublicationStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreatePublicationStmt* internal_default_instance() { - return reinterpret_cast( - &_CreatePublicationStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 173; - - friend void swap(CreatePublicationStmt& a, CreatePublicationStmt& b) { - a.Swap(&b); - } - inline void Swap(CreatePublicationStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreatePublicationStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreatePublicationStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreatePublicationStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreatePublicationStmt& from) { - CreatePublicationStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreatePublicationStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreatePublicationStmt"; - } - protected: - explicit CreatePublicationStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 2, - kPubobjectsFieldNumber = 3, - kPubnameFieldNumber = 1, - kForAllTablesFieldNumber = 4, - }; - // repeated .pg_query.Node options = 2 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // repeated .pg_query.Node pubobjects = 3 [json_name = "pubobjects"]; - int pubobjects_size() const; - private: - int _internal_pubobjects_size() const; - public: - void clear_pubobjects(); - ::pg_query::Node* mutable_pubobjects(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_pubobjects(); - private: - const ::pg_query::Node& _internal_pubobjects(int index) const; - ::pg_query::Node* _internal_add_pubobjects(); - public: - const ::pg_query::Node& pubobjects(int index) const; - ::pg_query::Node* add_pubobjects(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - pubobjects() const; - - // string pubname = 1 [json_name = "pubname"]; - void clear_pubname(); - const std::string& pubname() const; - template - void set_pubname(ArgT0&& arg0, ArgT... args); - std::string* mutable_pubname(); - PROTOBUF_NODISCARD std::string* release_pubname(); - void set_allocated_pubname(std::string* pubname); - private: - const std::string& _internal_pubname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_pubname(const std::string& value); - std::string* _internal_mutable_pubname(); - public: - - // bool for_all_tables = 4 [json_name = "for_all_tables"]; - void clear_for_all_tables(); - bool for_all_tables() const; - void set_for_all_tables(bool value); - private: - bool _internal_for_all_tables() const; - void _internal_set_for_all_tables(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreatePublicationStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > pubobjects_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pubname_; - bool for_all_tables_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterPublicationStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterPublicationStmt) */ { - public: - inline AlterPublicationStmt() : AlterPublicationStmt(nullptr) {} - ~AlterPublicationStmt() override; - explicit PROTOBUF_CONSTEXPR AlterPublicationStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterPublicationStmt(const AlterPublicationStmt& from); - AlterPublicationStmt(AlterPublicationStmt&& from) noexcept - : AlterPublicationStmt() { - *this = ::std::move(from); - } - - inline AlterPublicationStmt& operator=(const AlterPublicationStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterPublicationStmt& operator=(AlterPublicationStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterPublicationStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterPublicationStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterPublicationStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 174; - - friend void swap(AlterPublicationStmt& a, AlterPublicationStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterPublicationStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterPublicationStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterPublicationStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterPublicationStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterPublicationStmt& from) { - AlterPublicationStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterPublicationStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterPublicationStmt"; - } - protected: - explicit AlterPublicationStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOptionsFieldNumber = 2, - kPubobjectsFieldNumber = 3, - kPubnameFieldNumber = 1, - kForAllTablesFieldNumber = 4, - kActionFieldNumber = 5, - }; - // repeated .pg_query.Node options = 2 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // repeated .pg_query.Node pubobjects = 3 [json_name = "pubobjects"]; - int pubobjects_size() const; - private: - int _internal_pubobjects_size() const; - public: - void clear_pubobjects(); - ::pg_query::Node* mutable_pubobjects(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_pubobjects(); - private: - const ::pg_query::Node& _internal_pubobjects(int index) const; - ::pg_query::Node* _internal_add_pubobjects(); - public: - const ::pg_query::Node& pubobjects(int index) const; - ::pg_query::Node* add_pubobjects(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - pubobjects() const; - - // string pubname = 1 [json_name = "pubname"]; - void clear_pubname(); - const std::string& pubname() const; - template - void set_pubname(ArgT0&& arg0, ArgT... args); - std::string* mutable_pubname(); - PROTOBUF_NODISCARD std::string* release_pubname(); - void set_allocated_pubname(std::string* pubname); - private: - const std::string& _internal_pubname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_pubname(const std::string& value); - std::string* _internal_mutable_pubname(); - public: - - // bool for_all_tables = 4 [json_name = "for_all_tables"]; - void clear_for_all_tables(); - bool for_all_tables() const; - void set_for_all_tables(bool value); - private: - bool _internal_for_all_tables() const; - void _internal_set_for_all_tables(bool value); - public: - - // .pg_query.AlterPublicationAction action = 5 [json_name = "action"]; - void clear_action(); - ::pg_query::AlterPublicationAction action() const; - void set_action(::pg_query::AlterPublicationAction value); - private: - ::pg_query::AlterPublicationAction _internal_action() const; - void _internal_set_action(::pg_query::AlterPublicationAction value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterPublicationStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > pubobjects_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pubname_; - bool for_all_tables_; - int action_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateSubscriptionStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateSubscriptionStmt) */ { - public: - inline CreateSubscriptionStmt() : CreateSubscriptionStmt(nullptr) {} - ~CreateSubscriptionStmt() override; - explicit PROTOBUF_CONSTEXPR CreateSubscriptionStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateSubscriptionStmt(const CreateSubscriptionStmt& from); - CreateSubscriptionStmt(CreateSubscriptionStmt&& from) noexcept - : CreateSubscriptionStmt() { - *this = ::std::move(from); - } - - inline CreateSubscriptionStmt& operator=(const CreateSubscriptionStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateSubscriptionStmt& operator=(CreateSubscriptionStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateSubscriptionStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateSubscriptionStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateSubscriptionStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 175; - - friend void swap(CreateSubscriptionStmt& a, CreateSubscriptionStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateSubscriptionStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateSubscriptionStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateSubscriptionStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateSubscriptionStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateSubscriptionStmt& from) { - CreateSubscriptionStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateSubscriptionStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateSubscriptionStmt"; - } - protected: - explicit CreateSubscriptionStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPublicationFieldNumber = 3, - kOptionsFieldNumber = 4, - kSubnameFieldNumber = 1, - kConninfoFieldNumber = 2, - }; - // repeated .pg_query.Node publication = 3 [json_name = "publication"]; - int publication_size() const; - private: - int _internal_publication_size() const; - public: - void clear_publication(); - ::pg_query::Node* mutable_publication(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_publication(); - private: - const ::pg_query::Node& _internal_publication(int index) const; - ::pg_query::Node* _internal_add_publication(); - public: - const ::pg_query::Node& publication(int index) const; - ::pg_query::Node* add_publication(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - publication() const; - - // repeated .pg_query.Node options = 4 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string subname = 1 [json_name = "subname"]; - void clear_subname(); - const std::string& subname() const; - template - void set_subname(ArgT0&& arg0, ArgT... args); - std::string* mutable_subname(); - PROTOBUF_NODISCARD std::string* release_subname(); - void set_allocated_subname(std::string* subname); - private: - const std::string& _internal_subname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_subname(const std::string& value); - std::string* _internal_mutable_subname(); - public: - - // string conninfo = 2 [json_name = "conninfo"]; - void clear_conninfo(); - const std::string& conninfo() const; - template - void set_conninfo(ArgT0&& arg0, ArgT... args); - std::string* mutable_conninfo(); - PROTOBUF_NODISCARD std::string* release_conninfo(); - void set_allocated_conninfo(std::string* conninfo); - private: - const std::string& _internal_conninfo() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_conninfo(const std::string& value); - std::string* _internal_mutable_conninfo(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreateSubscriptionStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > publication_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr conninfo_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterSubscriptionStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterSubscriptionStmt) */ { - public: - inline AlterSubscriptionStmt() : AlterSubscriptionStmt(nullptr) {} - ~AlterSubscriptionStmt() override; - explicit PROTOBUF_CONSTEXPR AlterSubscriptionStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterSubscriptionStmt(const AlterSubscriptionStmt& from); - AlterSubscriptionStmt(AlterSubscriptionStmt&& from) noexcept - : AlterSubscriptionStmt() { - *this = ::std::move(from); - } - - inline AlterSubscriptionStmt& operator=(const AlterSubscriptionStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterSubscriptionStmt& operator=(AlterSubscriptionStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterSubscriptionStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterSubscriptionStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterSubscriptionStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 176; - - friend void swap(AlterSubscriptionStmt& a, AlterSubscriptionStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterSubscriptionStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterSubscriptionStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterSubscriptionStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterSubscriptionStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterSubscriptionStmt& from) { - AlterSubscriptionStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterSubscriptionStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterSubscriptionStmt"; - } - protected: - explicit AlterSubscriptionStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPublicationFieldNumber = 4, - kOptionsFieldNumber = 5, - kSubnameFieldNumber = 2, - kConninfoFieldNumber = 3, - kKindFieldNumber = 1, - }; - // repeated .pg_query.Node publication = 4 [json_name = "publication"]; - int publication_size() const; - private: - int _internal_publication_size() const; - public: - void clear_publication(); - ::pg_query::Node* mutable_publication(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_publication(); - private: - const ::pg_query::Node& _internal_publication(int index) const; - ::pg_query::Node* _internal_add_publication(); - public: - const ::pg_query::Node& publication(int index) const; - ::pg_query::Node* add_publication(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - publication() const; - - // repeated .pg_query.Node options = 5 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // string subname = 2 [json_name = "subname"]; - void clear_subname(); - const std::string& subname() const; - template - void set_subname(ArgT0&& arg0, ArgT... args); - std::string* mutable_subname(); - PROTOBUF_NODISCARD std::string* release_subname(); - void set_allocated_subname(std::string* subname); - private: - const std::string& _internal_subname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_subname(const std::string& value); - std::string* _internal_mutable_subname(); - public: - - // string conninfo = 3 [json_name = "conninfo"]; - void clear_conninfo(); - const std::string& conninfo() const; - template - void set_conninfo(ArgT0&& arg0, ArgT... args); - std::string* mutable_conninfo(); - PROTOBUF_NODISCARD std::string* release_conninfo(); - void set_allocated_conninfo(std::string* conninfo); - private: - const std::string& _internal_conninfo() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_conninfo(const std::string& value); - std::string* _internal_mutable_conninfo(); - public: - - // .pg_query.AlterSubscriptionType kind = 1 [json_name = "kind"]; - void clear_kind(); - ::pg_query::AlterSubscriptionType kind() const; - void set_kind(::pg_query::AlterSubscriptionType value); - private: - ::pg_query::AlterSubscriptionType _internal_kind() const; - void _internal_set_kind(::pg_query::AlterSubscriptionType value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterSubscriptionStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > publication_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr conninfo_; - int kind_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class DropSubscriptionStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.DropSubscriptionStmt) */ { - public: - inline DropSubscriptionStmt() : DropSubscriptionStmt(nullptr) {} - ~DropSubscriptionStmt() override; - explicit PROTOBUF_CONSTEXPR DropSubscriptionStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - DropSubscriptionStmt(const DropSubscriptionStmt& from); - DropSubscriptionStmt(DropSubscriptionStmt&& from) noexcept - : DropSubscriptionStmt() { - *this = ::std::move(from); - } - - inline DropSubscriptionStmt& operator=(const DropSubscriptionStmt& from) { - CopyFrom(from); - return *this; - } - inline DropSubscriptionStmt& operator=(DropSubscriptionStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DropSubscriptionStmt& default_instance() { - return *internal_default_instance(); - } - static inline const DropSubscriptionStmt* internal_default_instance() { - return reinterpret_cast( - &_DropSubscriptionStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 177; - - friend void swap(DropSubscriptionStmt& a, DropSubscriptionStmt& b) { - a.Swap(&b); - } - inline void Swap(DropSubscriptionStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DropSubscriptionStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DropSubscriptionStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DropSubscriptionStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DropSubscriptionStmt& from) { - DropSubscriptionStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DropSubscriptionStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.DropSubscriptionStmt"; - } - protected: - explicit DropSubscriptionStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSubnameFieldNumber = 1, - kMissingOkFieldNumber = 2, - kBehaviorFieldNumber = 3, - }; - // string subname = 1 [json_name = "subname"]; - void clear_subname(); - const std::string& subname() const; - template - void set_subname(ArgT0&& arg0, ArgT... args); - std::string* mutable_subname(); - PROTOBUF_NODISCARD std::string* release_subname(); - void set_allocated_subname(std::string* subname); - private: - const std::string& _internal_subname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_subname(const std::string& value); - std::string* _internal_mutable_subname(); - public: - - // bool missing_ok = 2 [json_name = "missing_ok"]; - void clear_missing_ok(); - bool missing_ok() const; - void set_missing_ok(bool value); - private: - bool _internal_missing_ok() const; - void _internal_set_missing_ok(bool value); - public: - - // .pg_query.DropBehavior behavior = 3 [json_name = "behavior"]; - void clear_behavior(); - ::pg_query::DropBehavior behavior() const; - void set_behavior(::pg_query::DropBehavior value); - private: - ::pg_query::DropBehavior _internal_behavior() const; - void _internal_set_behavior(::pg_query::DropBehavior value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.DropSubscriptionStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr subname_; - bool missing_ok_; - int behavior_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateStatsStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateStatsStmt) */ { - public: - inline CreateStatsStmt() : CreateStatsStmt(nullptr) {} - ~CreateStatsStmt() override; - explicit PROTOBUF_CONSTEXPR CreateStatsStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateStatsStmt(const CreateStatsStmt& from); - CreateStatsStmt(CreateStatsStmt&& from) noexcept - : CreateStatsStmt() { - *this = ::std::move(from); - } - - inline CreateStatsStmt& operator=(const CreateStatsStmt& from) { - CopyFrom(from); - return *this; - } - inline CreateStatsStmt& operator=(CreateStatsStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateStatsStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CreateStatsStmt* internal_default_instance() { - return reinterpret_cast( - &_CreateStatsStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 178; - - friend void swap(CreateStatsStmt& a, CreateStatsStmt& b) { - a.Swap(&b); - } - inline void Swap(CreateStatsStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateStatsStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateStatsStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateStatsStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateStatsStmt& from) { - CreateStatsStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateStatsStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateStatsStmt"; - } - protected: - explicit CreateStatsStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDefnamesFieldNumber = 1, - kStatTypesFieldNumber = 2, - kExprsFieldNumber = 3, - kRelationsFieldNumber = 4, - kStxcommentFieldNumber = 5, - kTransformedFieldNumber = 6, - kIfNotExistsFieldNumber = 7, - }; - // repeated .pg_query.Node defnames = 1 [json_name = "defnames"]; - int defnames_size() const; - private: - int _internal_defnames_size() const; - public: - void clear_defnames(); - ::pg_query::Node* mutable_defnames(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_defnames(); - private: - const ::pg_query::Node& _internal_defnames(int index) const; - ::pg_query::Node* _internal_add_defnames(); - public: - const ::pg_query::Node& defnames(int index) const; - ::pg_query::Node* add_defnames(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - defnames() const; - - // repeated .pg_query.Node stat_types = 2 [json_name = "stat_types"]; - int stat_types_size() const; - private: - int _internal_stat_types_size() const; - public: - void clear_stat_types(); - ::pg_query::Node* mutable_stat_types(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_stat_types(); - private: - const ::pg_query::Node& _internal_stat_types(int index) const; - ::pg_query::Node* _internal_add_stat_types(); - public: - const ::pg_query::Node& stat_types(int index) const; - ::pg_query::Node* add_stat_types(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - stat_types() const; - - // repeated .pg_query.Node exprs = 3 [json_name = "exprs"]; - int exprs_size() const; - private: - int _internal_exprs_size() const; - public: - void clear_exprs(); - ::pg_query::Node* mutable_exprs(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_exprs(); - private: - const ::pg_query::Node& _internal_exprs(int index) const; - ::pg_query::Node* _internal_add_exprs(); - public: - const ::pg_query::Node& exprs(int index) const; - ::pg_query::Node* add_exprs(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - exprs() const; - - // repeated .pg_query.Node relations = 4 [json_name = "relations"]; - int relations_size() const; - private: - int _internal_relations_size() const; - public: - void clear_relations(); - ::pg_query::Node* mutable_relations(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_relations(); - private: - const ::pg_query::Node& _internal_relations(int index) const; - ::pg_query::Node* _internal_add_relations(); - public: - const ::pg_query::Node& relations(int index) const; - ::pg_query::Node* add_relations(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - relations() const; - - // string stxcomment = 5 [json_name = "stxcomment"]; - void clear_stxcomment(); - const std::string& stxcomment() const; - template - void set_stxcomment(ArgT0&& arg0, ArgT... args); - std::string* mutable_stxcomment(); - PROTOBUF_NODISCARD std::string* release_stxcomment(); - void set_allocated_stxcomment(std::string* stxcomment); - private: - const std::string& _internal_stxcomment() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_stxcomment(const std::string& value); - std::string* _internal_mutable_stxcomment(); - public: - - // bool transformed = 6 [json_name = "transformed"]; - void clear_transformed(); - bool transformed() const; - void set_transformed(bool value); - private: - bool _internal_transformed() const; - void _internal_set_transformed(bool value); - public: - - // bool if_not_exists = 7 [json_name = "if_not_exists"]; - void clear_if_not_exists(); - bool if_not_exists() const; - void set_if_not_exists(bool value); - private: - bool _internal_if_not_exists() const; - void _internal_set_if_not_exists(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreateStatsStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > defnames_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > stat_types_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > exprs_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > relations_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stxcomment_; - bool transformed_; - bool if_not_exists_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterCollationStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterCollationStmt) */ { - public: - inline AlterCollationStmt() : AlterCollationStmt(nullptr) {} - ~AlterCollationStmt() override; - explicit PROTOBUF_CONSTEXPR AlterCollationStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterCollationStmt(const AlterCollationStmt& from); - AlterCollationStmt(AlterCollationStmt&& from) noexcept - : AlterCollationStmt() { - *this = ::std::move(from); - } - - inline AlterCollationStmt& operator=(const AlterCollationStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterCollationStmt& operator=(AlterCollationStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterCollationStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterCollationStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterCollationStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 179; - - friend void swap(AlterCollationStmt& a, AlterCollationStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterCollationStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterCollationStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterCollationStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterCollationStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterCollationStmt& from) { - AlterCollationStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterCollationStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterCollationStmt"; - } - protected: - explicit AlterCollationStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCollnameFieldNumber = 1, - }; - // repeated .pg_query.Node collname = 1 [json_name = "collname"]; - int collname_size() const; - private: - int _internal_collname_size() const; - public: - void clear_collname(); - ::pg_query::Node* mutable_collname(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_collname(); - private: - const ::pg_query::Node& _internal_collname(int index) const; - ::pg_query::Node* _internal_add_collname(); - public: - const ::pg_query::Node& collname(int index) const; - ::pg_query::Node* add_collname(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - collname() const; - - // @@protoc_insertion_point(class_scope:pg_query.AlterCollationStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > collname_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CallStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CallStmt) */ { - public: - inline CallStmt() : CallStmt(nullptr) {} - ~CallStmt() override; - explicit PROTOBUF_CONSTEXPR CallStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CallStmt(const CallStmt& from); - CallStmt(CallStmt&& from) noexcept - : CallStmt() { - *this = ::std::move(from); - } - - inline CallStmt& operator=(const CallStmt& from) { - CopyFrom(from); - return *this; - } - inline CallStmt& operator=(CallStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CallStmt& default_instance() { - return *internal_default_instance(); - } - static inline const CallStmt* internal_default_instance() { - return reinterpret_cast( - &_CallStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 180; - - friend void swap(CallStmt& a, CallStmt& b) { - a.Swap(&b); - } - inline void Swap(CallStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CallStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CallStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CallStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CallStmt& from) { - CallStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CallStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CallStmt"; - } - protected: - explicit CallStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOutargsFieldNumber = 3, - kFunccallFieldNumber = 1, - kFuncexprFieldNumber = 2, - }; - // repeated .pg_query.Node outargs = 3 [json_name = "outargs"]; - int outargs_size() const; - private: - int _internal_outargs_size() const; - public: - void clear_outargs(); - ::pg_query::Node* mutable_outargs(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_outargs(); - private: - const ::pg_query::Node& _internal_outargs(int index) const; - ::pg_query::Node* _internal_add_outargs(); - public: - const ::pg_query::Node& outargs(int index) const; - ::pg_query::Node* add_outargs(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - outargs() const; - - // .pg_query.FuncCall funccall = 1 [json_name = "funccall"]; - bool has_funccall() const; - private: - bool _internal_has_funccall() const; - public: - void clear_funccall(); - const ::pg_query::FuncCall& funccall() const; - PROTOBUF_NODISCARD ::pg_query::FuncCall* release_funccall(); - ::pg_query::FuncCall* mutable_funccall(); - void set_allocated_funccall(::pg_query::FuncCall* funccall); - private: - const ::pg_query::FuncCall& _internal_funccall() const; - ::pg_query::FuncCall* _internal_mutable_funccall(); - public: - void unsafe_arena_set_allocated_funccall( - ::pg_query::FuncCall* funccall); - ::pg_query::FuncCall* unsafe_arena_release_funccall(); - - // .pg_query.FuncExpr funcexpr = 2 [json_name = "funcexpr"]; - bool has_funcexpr() const; - private: - bool _internal_has_funcexpr() const; - public: - void clear_funcexpr(); - const ::pg_query::FuncExpr& funcexpr() const; - PROTOBUF_NODISCARD ::pg_query::FuncExpr* release_funcexpr(); - ::pg_query::FuncExpr* mutable_funcexpr(); - void set_allocated_funcexpr(::pg_query::FuncExpr* funcexpr); - private: - const ::pg_query::FuncExpr& _internal_funcexpr() const; - ::pg_query::FuncExpr* _internal_mutable_funcexpr(); - public: - void unsafe_arena_set_allocated_funcexpr( - ::pg_query::FuncExpr* funcexpr); - ::pg_query::FuncExpr* unsafe_arena_release_funcexpr(); - - // @@protoc_insertion_point(class_scope:pg_query.CallStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > outargs_; - ::pg_query::FuncCall* funccall_; - ::pg_query::FuncExpr* funcexpr_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AlterStatsStmt final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AlterStatsStmt) */ { - public: - inline AlterStatsStmt() : AlterStatsStmt(nullptr) {} - ~AlterStatsStmt() override; - explicit PROTOBUF_CONSTEXPR AlterStatsStmt(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AlterStatsStmt(const AlterStatsStmt& from); - AlterStatsStmt(AlterStatsStmt&& from) noexcept - : AlterStatsStmt() { - *this = ::std::move(from); - } - - inline AlterStatsStmt& operator=(const AlterStatsStmt& from) { - CopyFrom(from); - return *this; - } - inline AlterStatsStmt& operator=(AlterStatsStmt&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AlterStatsStmt& default_instance() { - return *internal_default_instance(); - } - static inline const AlterStatsStmt* internal_default_instance() { - return reinterpret_cast( - &_AlterStatsStmt_default_instance_); - } - static constexpr int kIndexInFileMessages = - 181; - - friend void swap(AlterStatsStmt& a, AlterStatsStmt& b) { - a.Swap(&b); - } - inline void Swap(AlterStatsStmt* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AlterStatsStmt* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AlterStatsStmt* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AlterStatsStmt& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AlterStatsStmt& from) { - AlterStatsStmt::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AlterStatsStmt* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AlterStatsStmt"; - } - protected: - explicit AlterStatsStmt(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDefnamesFieldNumber = 1, - kStxstattargetFieldNumber = 2, - kMissingOkFieldNumber = 3, - }; - // repeated .pg_query.Node defnames = 1 [json_name = "defnames"]; - int defnames_size() const; - private: - int _internal_defnames_size() const; - public: - void clear_defnames(); - ::pg_query::Node* mutable_defnames(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_defnames(); - private: - const ::pg_query::Node& _internal_defnames(int index) const; - ::pg_query::Node* _internal_add_defnames(); - public: - const ::pg_query::Node& defnames(int index) const; - ::pg_query::Node* add_defnames(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - defnames() const; - - // int32 stxstattarget = 2 [json_name = "stxstattarget"]; - void clear_stxstattarget(); - int32_t stxstattarget() const; - void set_stxstattarget(int32_t value); - private: - int32_t _internal_stxstattarget() const; - void _internal_set_stxstattarget(int32_t value); - public: - - // bool missing_ok = 3 [json_name = "missing_ok"]; - void clear_missing_ok(); - bool missing_ok() const; - void set_missing_ok(bool value); - private: - bool _internal_missing_ok() const; - void _internal_set_missing_ok(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AlterStatsStmt) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > defnames_; - int32_t stxstattarget_; - bool missing_ok_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class A_Expr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.A_Expr) */ { - public: - inline A_Expr() : A_Expr(nullptr) {} - ~A_Expr() override; - explicit PROTOBUF_CONSTEXPR A_Expr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - A_Expr(const A_Expr& from); - A_Expr(A_Expr&& from) noexcept - : A_Expr() { - *this = ::std::move(from); - } - - inline A_Expr& operator=(const A_Expr& from) { - CopyFrom(from); - return *this; - } - inline A_Expr& operator=(A_Expr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const A_Expr& default_instance() { - return *internal_default_instance(); - } - static inline const A_Expr* internal_default_instance() { - return reinterpret_cast( - &_A_Expr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 182; - - friend void swap(A_Expr& a, A_Expr& b) { - a.Swap(&b); - } - inline void Swap(A_Expr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(A_Expr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - A_Expr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const A_Expr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const A_Expr& from) { - A_Expr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(A_Expr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.A_Expr"; - } - protected: - explicit A_Expr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNameFieldNumber = 2, - kLexprFieldNumber = 3, - kRexprFieldNumber = 4, - kKindFieldNumber = 1, - kLocationFieldNumber = 5, - }; - // repeated .pg_query.Node name = 2 [json_name = "name"]; - int name_size() const; - private: - int _internal_name_size() const; - public: - void clear_name(); - ::pg_query::Node* mutable_name(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_name(); - private: - const ::pg_query::Node& _internal_name(int index) const; - ::pg_query::Node* _internal_add_name(); - public: - const ::pg_query::Node& name(int index) const; - ::pg_query::Node* add_name(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - name() const; - - // .pg_query.Node lexpr = 3 [json_name = "lexpr"]; - bool has_lexpr() const; - private: - bool _internal_has_lexpr() const; - public: - void clear_lexpr(); - const ::pg_query::Node& lexpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_lexpr(); - ::pg_query::Node* mutable_lexpr(); - void set_allocated_lexpr(::pg_query::Node* lexpr); - private: - const ::pg_query::Node& _internal_lexpr() const; - ::pg_query::Node* _internal_mutable_lexpr(); - public: - void unsafe_arena_set_allocated_lexpr( - ::pg_query::Node* lexpr); - ::pg_query::Node* unsafe_arena_release_lexpr(); - - // .pg_query.Node rexpr = 4 [json_name = "rexpr"]; - bool has_rexpr() const; - private: - bool _internal_has_rexpr() const; - public: - void clear_rexpr(); - const ::pg_query::Node& rexpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_rexpr(); - ::pg_query::Node* mutable_rexpr(); - void set_allocated_rexpr(::pg_query::Node* rexpr); - private: - const ::pg_query::Node& _internal_rexpr() const; - ::pg_query::Node* _internal_mutable_rexpr(); - public: - void unsafe_arena_set_allocated_rexpr( - ::pg_query::Node* rexpr); - ::pg_query::Node* unsafe_arena_release_rexpr(); - - // .pg_query.A_Expr_Kind kind = 1 [json_name = "kind"]; - void clear_kind(); - ::pg_query::A_Expr_Kind kind() const; - void set_kind(::pg_query::A_Expr_Kind value); - private: - ::pg_query::A_Expr_Kind _internal_kind() const; - void _internal_set_kind(::pg_query::A_Expr_Kind value); - public: - - // int32 location = 5 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.A_Expr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > name_; - ::pg_query::Node* lexpr_; - ::pg_query::Node* rexpr_; - int kind_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ColumnRef final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ColumnRef) */ { - public: - inline ColumnRef() : ColumnRef(nullptr) {} - ~ColumnRef() override; - explicit PROTOBUF_CONSTEXPR ColumnRef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ColumnRef(const ColumnRef& from); - ColumnRef(ColumnRef&& from) noexcept - : ColumnRef() { - *this = ::std::move(from); - } - - inline ColumnRef& operator=(const ColumnRef& from) { - CopyFrom(from); - return *this; - } - inline ColumnRef& operator=(ColumnRef&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ColumnRef& default_instance() { - return *internal_default_instance(); - } - static inline const ColumnRef* internal_default_instance() { - return reinterpret_cast( - &_ColumnRef_default_instance_); - } - static constexpr int kIndexInFileMessages = - 183; - - friend void swap(ColumnRef& a, ColumnRef& b) { - a.Swap(&b); - } - inline void Swap(ColumnRef* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ColumnRef* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ColumnRef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ColumnRef& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ColumnRef& from) { - ColumnRef::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ColumnRef* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ColumnRef"; - } - protected: - explicit ColumnRef(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFieldsFieldNumber = 1, - kLocationFieldNumber = 2, - }; - // repeated .pg_query.Node fields = 1 [json_name = "fields"]; - int fields_size() const; - private: - int _internal_fields_size() const; - public: - void clear_fields(); - ::pg_query::Node* mutable_fields(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_fields(); - private: - const ::pg_query::Node& _internal_fields(int index) const; - ::pg_query::Node* _internal_add_fields(); - public: - const ::pg_query::Node& fields(int index) const; - ::pg_query::Node* add_fields(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - fields() const; - - // int32 location = 2 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.ColumnRef) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > fields_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ParamRef final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ParamRef) */ { - public: - inline ParamRef() : ParamRef(nullptr) {} - ~ParamRef() override; - explicit PROTOBUF_CONSTEXPR ParamRef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ParamRef(const ParamRef& from); - ParamRef(ParamRef&& from) noexcept - : ParamRef() { - *this = ::std::move(from); - } - - inline ParamRef& operator=(const ParamRef& from) { - CopyFrom(from); - return *this; - } - inline ParamRef& operator=(ParamRef&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ParamRef& default_instance() { - return *internal_default_instance(); - } - static inline const ParamRef* internal_default_instance() { - return reinterpret_cast( - &_ParamRef_default_instance_); - } - static constexpr int kIndexInFileMessages = - 184; - - friend void swap(ParamRef& a, ParamRef& b) { - a.Swap(&b); - } - inline void Swap(ParamRef* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ParamRef* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ParamRef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ParamRef& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ParamRef& from) { - ParamRef::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ParamRef* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ParamRef"; - } - protected: - explicit ParamRef(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNumberFieldNumber = 1, - kLocationFieldNumber = 2, - }; - // int32 number = 1 [json_name = "number"]; - void clear_number(); - int32_t number() const; - void set_number(int32_t value); - private: - int32_t _internal_number() const; - void _internal_set_number(int32_t value); - public: - - // int32 location = 2 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.ParamRef) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - int32_t number_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class FuncCall final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.FuncCall) */ { - public: - inline FuncCall() : FuncCall(nullptr) {} - ~FuncCall() override; - explicit PROTOBUF_CONSTEXPR FuncCall(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - FuncCall(const FuncCall& from); - FuncCall(FuncCall&& from) noexcept - : FuncCall() { - *this = ::std::move(from); - } - - inline FuncCall& operator=(const FuncCall& from) { - CopyFrom(from); - return *this; - } - inline FuncCall& operator=(FuncCall&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const FuncCall& default_instance() { - return *internal_default_instance(); - } - static inline const FuncCall* internal_default_instance() { - return reinterpret_cast( - &_FuncCall_default_instance_); - } - static constexpr int kIndexInFileMessages = - 185; - - friend void swap(FuncCall& a, FuncCall& b) { - a.Swap(&b); - } - inline void Swap(FuncCall* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FuncCall* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - FuncCall* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const FuncCall& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const FuncCall& from) { - FuncCall::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FuncCall* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.FuncCall"; - } - protected: - explicit FuncCall(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFuncnameFieldNumber = 1, - kArgsFieldNumber = 2, - kAggOrderFieldNumber = 3, - kAggFilterFieldNumber = 4, - kOverFieldNumber = 5, - kAggWithinGroupFieldNumber = 6, - kAggStarFieldNumber = 7, - kAggDistinctFieldNumber = 8, - kFuncVariadicFieldNumber = 9, - kFuncformatFieldNumber = 10, - kLocationFieldNumber = 11, - }; - // repeated .pg_query.Node funcname = 1 [json_name = "funcname"]; - int funcname_size() const; - private: - int _internal_funcname_size() const; - public: - void clear_funcname(); - ::pg_query::Node* mutable_funcname(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_funcname(); - private: - const ::pg_query::Node& _internal_funcname(int index) const; - ::pg_query::Node* _internal_add_funcname(); - public: - const ::pg_query::Node& funcname(int index) const; - ::pg_query::Node* add_funcname(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - funcname() const; - - // repeated .pg_query.Node args = 2 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // repeated .pg_query.Node agg_order = 3 [json_name = "agg_order"]; - int agg_order_size() const; - private: - int _internal_agg_order_size() const; - public: - void clear_agg_order(); - ::pg_query::Node* mutable_agg_order(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_agg_order(); - private: - const ::pg_query::Node& _internal_agg_order(int index) const; - ::pg_query::Node* _internal_add_agg_order(); - public: - const ::pg_query::Node& agg_order(int index) const; - ::pg_query::Node* add_agg_order(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - agg_order() const; - - // .pg_query.Node agg_filter = 4 [json_name = "agg_filter"]; - bool has_agg_filter() const; - private: - bool _internal_has_agg_filter() const; - public: - void clear_agg_filter(); - const ::pg_query::Node& agg_filter() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_agg_filter(); - ::pg_query::Node* mutable_agg_filter(); - void set_allocated_agg_filter(::pg_query::Node* agg_filter); - private: - const ::pg_query::Node& _internal_agg_filter() const; - ::pg_query::Node* _internal_mutable_agg_filter(); - public: - void unsafe_arena_set_allocated_agg_filter( - ::pg_query::Node* agg_filter); - ::pg_query::Node* unsafe_arena_release_agg_filter(); - - // .pg_query.WindowDef over = 5 [json_name = "over"]; - bool has_over() const; - private: - bool _internal_has_over() const; - public: - void clear_over(); - const ::pg_query::WindowDef& over() const; - PROTOBUF_NODISCARD ::pg_query::WindowDef* release_over(); - ::pg_query::WindowDef* mutable_over(); - void set_allocated_over(::pg_query::WindowDef* over); - private: - const ::pg_query::WindowDef& _internal_over() const; - ::pg_query::WindowDef* _internal_mutable_over(); - public: - void unsafe_arena_set_allocated_over( - ::pg_query::WindowDef* over); - ::pg_query::WindowDef* unsafe_arena_release_over(); - - // bool agg_within_group = 6 [json_name = "agg_within_group"]; - void clear_agg_within_group(); - bool agg_within_group() const; - void set_agg_within_group(bool value); - private: - bool _internal_agg_within_group() const; - void _internal_set_agg_within_group(bool value); - public: - - // bool agg_star = 7 [json_name = "agg_star"]; - void clear_agg_star(); - bool agg_star() const; - void set_agg_star(bool value); - private: - bool _internal_agg_star() const; - void _internal_set_agg_star(bool value); - public: - - // bool agg_distinct = 8 [json_name = "agg_distinct"]; - void clear_agg_distinct(); - bool agg_distinct() const; - void set_agg_distinct(bool value); - private: - bool _internal_agg_distinct() const; - void _internal_set_agg_distinct(bool value); - public: - - // bool func_variadic = 9 [json_name = "func_variadic"]; - void clear_func_variadic(); - bool func_variadic() const; - void set_func_variadic(bool value); - private: - bool _internal_func_variadic() const; - void _internal_set_func_variadic(bool value); - public: - - // .pg_query.CoercionForm funcformat = 10 [json_name = "funcformat"]; - void clear_funcformat(); - ::pg_query::CoercionForm funcformat() const; - void set_funcformat(::pg_query::CoercionForm value); - private: - ::pg_query::CoercionForm _internal_funcformat() const; - void _internal_set_funcformat(::pg_query::CoercionForm value); - public: - - // int32 location = 11 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.FuncCall) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > funcname_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > agg_order_; - ::pg_query::Node* agg_filter_; - ::pg_query::WindowDef* over_; - bool agg_within_group_; - bool agg_star_; - bool agg_distinct_; - bool func_variadic_; - int funcformat_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class A_Star final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:pg_query.A_Star) */ { - public: - inline A_Star() : A_Star(nullptr) {} - explicit PROTOBUF_CONSTEXPR A_Star(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - A_Star(const A_Star& from); - A_Star(A_Star&& from) noexcept - : A_Star() { - *this = ::std::move(from); - } - - inline A_Star& operator=(const A_Star& from) { - CopyFrom(from); - return *this; - } - inline A_Star& operator=(A_Star&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const A_Star& default_instance() { - return *internal_default_instance(); - } - static inline const A_Star* internal_default_instance() { - return reinterpret_cast( - &_A_Star_default_instance_); - } - static constexpr int kIndexInFileMessages = - 186; - - friend void swap(A_Star& a, A_Star& b) { - a.Swap(&b); - } - inline void Swap(A_Star* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(A_Star* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - A_Star* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const A_Star& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const A_Star& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.A_Star"; - } - protected: - explicit A_Star(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:pg_query.A_Star) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class A_Indices final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.A_Indices) */ { - public: - inline A_Indices() : A_Indices(nullptr) {} - ~A_Indices() override; - explicit PROTOBUF_CONSTEXPR A_Indices(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - A_Indices(const A_Indices& from); - A_Indices(A_Indices&& from) noexcept - : A_Indices() { - *this = ::std::move(from); - } - - inline A_Indices& operator=(const A_Indices& from) { - CopyFrom(from); - return *this; - } - inline A_Indices& operator=(A_Indices&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const A_Indices& default_instance() { - return *internal_default_instance(); - } - static inline const A_Indices* internal_default_instance() { - return reinterpret_cast( - &_A_Indices_default_instance_); - } - static constexpr int kIndexInFileMessages = - 187; - - friend void swap(A_Indices& a, A_Indices& b) { - a.Swap(&b); - } - inline void Swap(A_Indices* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(A_Indices* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - A_Indices* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const A_Indices& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const A_Indices& from) { - A_Indices::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(A_Indices* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.A_Indices"; - } - protected: - explicit A_Indices(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kLidxFieldNumber = 2, - kUidxFieldNumber = 3, - kIsSliceFieldNumber = 1, - }; - // .pg_query.Node lidx = 2 [json_name = "lidx"]; - bool has_lidx() const; - private: - bool _internal_has_lidx() const; - public: - void clear_lidx(); - const ::pg_query::Node& lidx() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_lidx(); - ::pg_query::Node* mutable_lidx(); - void set_allocated_lidx(::pg_query::Node* lidx); - private: - const ::pg_query::Node& _internal_lidx() const; - ::pg_query::Node* _internal_mutable_lidx(); - public: - void unsafe_arena_set_allocated_lidx( - ::pg_query::Node* lidx); - ::pg_query::Node* unsafe_arena_release_lidx(); - - // .pg_query.Node uidx = 3 [json_name = "uidx"]; - bool has_uidx() const; - private: - bool _internal_has_uidx() const; - public: - void clear_uidx(); - const ::pg_query::Node& uidx() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_uidx(); - ::pg_query::Node* mutable_uidx(); - void set_allocated_uidx(::pg_query::Node* uidx); - private: - const ::pg_query::Node& _internal_uidx() const; - ::pg_query::Node* _internal_mutable_uidx(); - public: - void unsafe_arena_set_allocated_uidx( - ::pg_query::Node* uidx); - ::pg_query::Node* unsafe_arena_release_uidx(); - - // bool is_slice = 1 [json_name = "is_slice"]; - void clear_is_slice(); - bool is_slice() const; - void set_is_slice(bool value); - private: - bool _internal_is_slice() const; - void _internal_set_is_slice(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.A_Indices) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* lidx_; - ::pg_query::Node* uidx_; - bool is_slice_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class A_Indirection final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.A_Indirection) */ { - public: - inline A_Indirection() : A_Indirection(nullptr) {} - ~A_Indirection() override; - explicit PROTOBUF_CONSTEXPR A_Indirection(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - A_Indirection(const A_Indirection& from); - A_Indirection(A_Indirection&& from) noexcept - : A_Indirection() { - *this = ::std::move(from); - } - - inline A_Indirection& operator=(const A_Indirection& from) { - CopyFrom(from); - return *this; - } - inline A_Indirection& operator=(A_Indirection&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const A_Indirection& default_instance() { - return *internal_default_instance(); - } - static inline const A_Indirection* internal_default_instance() { - return reinterpret_cast( - &_A_Indirection_default_instance_); - } - static constexpr int kIndexInFileMessages = - 188; - - friend void swap(A_Indirection& a, A_Indirection& b) { - a.Swap(&b); - } - inline void Swap(A_Indirection* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(A_Indirection* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - A_Indirection* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const A_Indirection& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const A_Indirection& from) { - A_Indirection::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(A_Indirection* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.A_Indirection"; - } - protected: - explicit A_Indirection(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIndirectionFieldNumber = 2, - kArgFieldNumber = 1, - }; - // repeated .pg_query.Node indirection = 2 [json_name = "indirection"]; - int indirection_size() const; - private: - int _internal_indirection_size() const; - public: - void clear_indirection(); - ::pg_query::Node* mutable_indirection(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_indirection(); - private: - const ::pg_query::Node& _internal_indirection(int index) const; - ::pg_query::Node* _internal_add_indirection(); - public: - const ::pg_query::Node& indirection(int index) const; - ::pg_query::Node* add_indirection(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - indirection() const; - - // .pg_query.Node arg = 1 [json_name = "arg"]; - bool has_arg() const; - private: - bool _internal_has_arg() const; - public: - void clear_arg(); - const ::pg_query::Node& arg() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_arg(); - ::pg_query::Node* mutable_arg(); - void set_allocated_arg(::pg_query::Node* arg); - private: - const ::pg_query::Node& _internal_arg() const; - ::pg_query::Node* _internal_mutable_arg(); - public: - void unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg); - ::pg_query::Node* unsafe_arena_release_arg(); - - // @@protoc_insertion_point(class_scope:pg_query.A_Indirection) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > indirection_; - ::pg_query::Node* arg_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class A_ArrayExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.A_ArrayExpr) */ { - public: - inline A_ArrayExpr() : A_ArrayExpr(nullptr) {} - ~A_ArrayExpr() override; - explicit PROTOBUF_CONSTEXPR A_ArrayExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - A_ArrayExpr(const A_ArrayExpr& from); - A_ArrayExpr(A_ArrayExpr&& from) noexcept - : A_ArrayExpr() { - *this = ::std::move(from); - } - - inline A_ArrayExpr& operator=(const A_ArrayExpr& from) { - CopyFrom(from); - return *this; - } - inline A_ArrayExpr& operator=(A_ArrayExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const A_ArrayExpr& default_instance() { - return *internal_default_instance(); - } - static inline const A_ArrayExpr* internal_default_instance() { - return reinterpret_cast( - &_A_ArrayExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 189; - - friend void swap(A_ArrayExpr& a, A_ArrayExpr& b) { - a.Swap(&b); - } - inline void Swap(A_ArrayExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(A_ArrayExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - A_ArrayExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const A_ArrayExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const A_ArrayExpr& from) { - A_ArrayExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(A_ArrayExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.A_ArrayExpr"; - } - protected: - explicit A_ArrayExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kElementsFieldNumber = 1, - kLocationFieldNumber = 2, - }; - // repeated .pg_query.Node elements = 1 [json_name = "elements"]; - int elements_size() const; - private: - int _internal_elements_size() const; - public: - void clear_elements(); - ::pg_query::Node* mutable_elements(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_elements(); - private: - const ::pg_query::Node& _internal_elements(int index) const; - ::pg_query::Node* _internal_add_elements(); - public: - const ::pg_query::Node& elements(int index) const; - ::pg_query::Node* add_elements(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - elements() const; - - // int32 location = 2 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.A_ArrayExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > elements_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ResTarget final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ResTarget) */ { - public: - inline ResTarget() : ResTarget(nullptr) {} - ~ResTarget() override; - explicit PROTOBUF_CONSTEXPR ResTarget(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ResTarget(const ResTarget& from); - ResTarget(ResTarget&& from) noexcept - : ResTarget() { - *this = ::std::move(from); - } - - inline ResTarget& operator=(const ResTarget& from) { - CopyFrom(from); - return *this; - } - inline ResTarget& operator=(ResTarget&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ResTarget& default_instance() { - return *internal_default_instance(); - } - static inline const ResTarget* internal_default_instance() { - return reinterpret_cast( - &_ResTarget_default_instance_); - } - static constexpr int kIndexInFileMessages = - 190; - - friend void swap(ResTarget& a, ResTarget& b) { - a.Swap(&b); - } - inline void Swap(ResTarget* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ResTarget* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ResTarget* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ResTarget& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ResTarget& from) { - ResTarget::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ResTarget* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ResTarget"; - } - protected: - explicit ResTarget(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIndirectionFieldNumber = 2, - kNameFieldNumber = 1, - kValFieldNumber = 3, - kLocationFieldNumber = 4, - }; - // repeated .pg_query.Node indirection = 2 [json_name = "indirection"]; - int indirection_size() const; - private: - int _internal_indirection_size() const; - public: - void clear_indirection(); - ::pg_query::Node* mutable_indirection(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_indirection(); - private: - const ::pg_query::Node& _internal_indirection(int index) const; - ::pg_query::Node* _internal_add_indirection(); - public: - const ::pg_query::Node& indirection(int index) const; - ::pg_query::Node* add_indirection(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - indirection() const; - - // string name = 1 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // .pg_query.Node val = 3 [json_name = "val"]; - bool has_val() const; - private: - bool _internal_has_val() const; - public: - void clear_val(); - const ::pg_query::Node& val() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_val(); - ::pg_query::Node* mutable_val(); - void set_allocated_val(::pg_query::Node* val); - private: - const ::pg_query::Node& _internal_val() const; - ::pg_query::Node* _internal_mutable_val(); - public: - void unsafe_arena_set_allocated_val( - ::pg_query::Node* val); - ::pg_query::Node* unsafe_arena_release_val(); - - // int32 location = 4 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.ResTarget) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > indirection_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::pg_query::Node* val_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class MultiAssignRef final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.MultiAssignRef) */ { - public: - inline MultiAssignRef() : MultiAssignRef(nullptr) {} - ~MultiAssignRef() override; - explicit PROTOBUF_CONSTEXPR MultiAssignRef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - MultiAssignRef(const MultiAssignRef& from); - MultiAssignRef(MultiAssignRef&& from) noexcept - : MultiAssignRef() { - *this = ::std::move(from); - } - - inline MultiAssignRef& operator=(const MultiAssignRef& from) { - CopyFrom(from); - return *this; - } - inline MultiAssignRef& operator=(MultiAssignRef&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const MultiAssignRef& default_instance() { - return *internal_default_instance(); - } - static inline const MultiAssignRef* internal_default_instance() { - return reinterpret_cast( - &_MultiAssignRef_default_instance_); - } - static constexpr int kIndexInFileMessages = - 191; - - friend void swap(MultiAssignRef& a, MultiAssignRef& b) { - a.Swap(&b); - } - inline void Swap(MultiAssignRef* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MultiAssignRef* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - MultiAssignRef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MultiAssignRef& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const MultiAssignRef& from) { - MultiAssignRef::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MultiAssignRef* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.MultiAssignRef"; - } - protected: - explicit MultiAssignRef(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSourceFieldNumber = 1, - kColnoFieldNumber = 2, - kNcolumnsFieldNumber = 3, - }; - // .pg_query.Node source = 1 [json_name = "source"]; - bool has_source() const; - private: - bool _internal_has_source() const; - public: - void clear_source(); - const ::pg_query::Node& source() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_source(); - ::pg_query::Node* mutable_source(); - void set_allocated_source(::pg_query::Node* source); - private: - const ::pg_query::Node& _internal_source() const; - ::pg_query::Node* _internal_mutable_source(); - public: - void unsafe_arena_set_allocated_source( - ::pg_query::Node* source); - ::pg_query::Node* unsafe_arena_release_source(); - - // int32 colno = 2 [json_name = "colno"]; - void clear_colno(); - int32_t colno() const; - void set_colno(int32_t value); - private: - int32_t _internal_colno() const; - void _internal_set_colno(int32_t value); - public: - - // int32 ncolumns = 3 [json_name = "ncolumns"]; - void clear_ncolumns(); - int32_t ncolumns() const; - void set_ncolumns(int32_t value); - private: - int32_t _internal_ncolumns() const; - void _internal_set_ncolumns(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.MultiAssignRef) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* source_; - int32_t colno_; - int32_t ncolumns_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class TypeCast final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.TypeCast) */ { - public: - inline TypeCast() : TypeCast(nullptr) {} - ~TypeCast() override; - explicit PROTOBUF_CONSTEXPR TypeCast(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - TypeCast(const TypeCast& from); - TypeCast(TypeCast&& from) noexcept - : TypeCast() { - *this = ::std::move(from); - } - - inline TypeCast& operator=(const TypeCast& from) { - CopyFrom(from); - return *this; - } - inline TypeCast& operator=(TypeCast&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TypeCast& default_instance() { - return *internal_default_instance(); - } - static inline const TypeCast* internal_default_instance() { - return reinterpret_cast( - &_TypeCast_default_instance_); - } - static constexpr int kIndexInFileMessages = - 192; - - friend void swap(TypeCast& a, TypeCast& b) { - a.Swap(&b); - } - inline void Swap(TypeCast* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TypeCast* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TypeCast* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const TypeCast& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const TypeCast& from) { - TypeCast::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TypeCast* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.TypeCast"; - } - protected: - explicit TypeCast(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArgFieldNumber = 1, - kTypeNameFieldNumber = 2, - kLocationFieldNumber = 3, - }; - // .pg_query.Node arg = 1 [json_name = "arg"]; - bool has_arg() const; - private: - bool _internal_has_arg() const; - public: - void clear_arg(); - const ::pg_query::Node& arg() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_arg(); - ::pg_query::Node* mutable_arg(); - void set_allocated_arg(::pg_query::Node* arg); - private: - const ::pg_query::Node& _internal_arg() const; - ::pg_query::Node* _internal_mutable_arg(); - public: - void unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg); - ::pg_query::Node* unsafe_arena_release_arg(); - - // .pg_query.TypeName type_name = 2 [json_name = "typeName"]; - bool has_type_name() const; - private: - bool _internal_has_type_name() const; - public: - void clear_type_name(); - const ::pg_query::TypeName& type_name() const; - PROTOBUF_NODISCARD ::pg_query::TypeName* release_type_name(); - ::pg_query::TypeName* mutable_type_name(); - void set_allocated_type_name(::pg_query::TypeName* type_name); - private: - const ::pg_query::TypeName& _internal_type_name() const; - ::pg_query::TypeName* _internal_mutable_type_name(); - public: - void unsafe_arena_set_allocated_type_name( - ::pg_query::TypeName* type_name); - ::pg_query::TypeName* unsafe_arena_release_type_name(); - - // int32 location = 3 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.TypeCast) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* arg_; - ::pg_query::TypeName* type_name_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CollateClause final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CollateClause) */ { - public: - inline CollateClause() : CollateClause(nullptr) {} - ~CollateClause() override; - explicit PROTOBUF_CONSTEXPR CollateClause(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CollateClause(const CollateClause& from); - CollateClause(CollateClause&& from) noexcept - : CollateClause() { - *this = ::std::move(from); - } - - inline CollateClause& operator=(const CollateClause& from) { - CopyFrom(from); - return *this; - } - inline CollateClause& operator=(CollateClause&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CollateClause& default_instance() { - return *internal_default_instance(); - } - static inline const CollateClause* internal_default_instance() { - return reinterpret_cast( - &_CollateClause_default_instance_); - } - static constexpr int kIndexInFileMessages = - 193; - - friend void swap(CollateClause& a, CollateClause& b) { - a.Swap(&b); - } - inline void Swap(CollateClause* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CollateClause* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CollateClause* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CollateClause& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CollateClause& from) { - CollateClause::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CollateClause* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CollateClause"; - } - protected: - explicit CollateClause(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCollnameFieldNumber = 2, - kArgFieldNumber = 1, - kLocationFieldNumber = 3, - }; - // repeated .pg_query.Node collname = 2 [json_name = "collname"]; - int collname_size() const; - private: - int _internal_collname_size() const; - public: - void clear_collname(); - ::pg_query::Node* mutable_collname(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_collname(); - private: - const ::pg_query::Node& _internal_collname(int index) const; - ::pg_query::Node* _internal_add_collname(); - public: - const ::pg_query::Node& collname(int index) const; - ::pg_query::Node* add_collname(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - collname() const; - - // .pg_query.Node arg = 1 [json_name = "arg"]; - bool has_arg() const; - private: - bool _internal_has_arg() const; - public: - void clear_arg(); - const ::pg_query::Node& arg() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_arg(); - ::pg_query::Node* mutable_arg(); - void set_allocated_arg(::pg_query::Node* arg); - private: - const ::pg_query::Node& _internal_arg() const; - ::pg_query::Node* _internal_mutable_arg(); - public: - void unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg); - ::pg_query::Node* unsafe_arena_release_arg(); - - // int32 location = 3 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CollateClause) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > collname_; - ::pg_query::Node* arg_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class SortBy final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.SortBy) */ { - public: - inline SortBy() : SortBy(nullptr) {} - ~SortBy() override; - explicit PROTOBUF_CONSTEXPR SortBy(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SortBy(const SortBy& from); - SortBy(SortBy&& from) noexcept - : SortBy() { - *this = ::std::move(from); - } - - inline SortBy& operator=(const SortBy& from) { - CopyFrom(from); - return *this; - } - inline SortBy& operator=(SortBy&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SortBy& default_instance() { - return *internal_default_instance(); - } - static inline const SortBy* internal_default_instance() { - return reinterpret_cast( - &_SortBy_default_instance_); - } - static constexpr int kIndexInFileMessages = - 194; - - friend void swap(SortBy& a, SortBy& b) { - a.Swap(&b); - } - inline void Swap(SortBy* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SortBy* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SortBy* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SortBy& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SortBy& from) { - SortBy::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SortBy* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.SortBy"; - } - protected: - explicit SortBy(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kUseOpFieldNumber = 4, - kNodeFieldNumber = 1, - kSortbyDirFieldNumber = 2, - kSortbyNullsFieldNumber = 3, - kLocationFieldNumber = 5, - }; - // repeated .pg_query.Node use_op = 4 [json_name = "useOp"]; - int use_op_size() const; - private: - int _internal_use_op_size() const; - public: - void clear_use_op(); - ::pg_query::Node* mutable_use_op(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_use_op(); - private: - const ::pg_query::Node& _internal_use_op(int index) const; - ::pg_query::Node* _internal_add_use_op(); - public: - const ::pg_query::Node& use_op(int index) const; - ::pg_query::Node* add_use_op(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - use_op() const; - - // .pg_query.Node node = 1 [json_name = "node"]; - bool has_node() const; - private: - bool _internal_has_node() const; - public: - void clear_node(); - const ::pg_query::Node& node() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_node(); - ::pg_query::Node* mutable_node(); - void set_allocated_node(::pg_query::Node* node); - private: - const ::pg_query::Node& _internal_node() const; - ::pg_query::Node* _internal_mutable_node(); - public: - void unsafe_arena_set_allocated_node( - ::pg_query::Node* node); - ::pg_query::Node* unsafe_arena_release_node(); - - // .pg_query.SortByDir sortby_dir = 2 [json_name = "sortby_dir"]; - void clear_sortby_dir(); - ::pg_query::SortByDir sortby_dir() const; - void set_sortby_dir(::pg_query::SortByDir value); - private: - ::pg_query::SortByDir _internal_sortby_dir() const; - void _internal_set_sortby_dir(::pg_query::SortByDir value); - public: - - // .pg_query.SortByNulls sortby_nulls = 3 [json_name = "sortby_nulls"]; - void clear_sortby_nulls(); - ::pg_query::SortByNulls sortby_nulls() const; - void set_sortby_nulls(::pg_query::SortByNulls value); - private: - ::pg_query::SortByNulls _internal_sortby_nulls() const; - void _internal_set_sortby_nulls(::pg_query::SortByNulls value); - public: - - // int32 location = 5 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.SortBy) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > use_op_; - ::pg_query::Node* node_; - int sortby_dir_; - int sortby_nulls_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class WindowDef final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.WindowDef) */ { - public: - inline WindowDef() : WindowDef(nullptr) {} - ~WindowDef() override; - explicit PROTOBUF_CONSTEXPR WindowDef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - WindowDef(const WindowDef& from); - WindowDef(WindowDef&& from) noexcept - : WindowDef() { - *this = ::std::move(from); - } - - inline WindowDef& operator=(const WindowDef& from) { - CopyFrom(from); - return *this; - } - inline WindowDef& operator=(WindowDef&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const WindowDef& default_instance() { - return *internal_default_instance(); - } - static inline const WindowDef* internal_default_instance() { - return reinterpret_cast( - &_WindowDef_default_instance_); - } - static constexpr int kIndexInFileMessages = - 195; - - friend void swap(WindowDef& a, WindowDef& b) { - a.Swap(&b); - } - inline void Swap(WindowDef* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(WindowDef* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - WindowDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const WindowDef& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const WindowDef& from) { - WindowDef::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(WindowDef* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.WindowDef"; - } - protected: - explicit WindowDef(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartitionClauseFieldNumber = 3, - kOrderClauseFieldNumber = 4, - kNameFieldNumber = 1, - kRefnameFieldNumber = 2, - kStartOffsetFieldNumber = 6, - kEndOffsetFieldNumber = 7, - kFrameOptionsFieldNumber = 5, - kLocationFieldNumber = 8, - }; - // repeated .pg_query.Node partition_clause = 3 [json_name = "partitionClause"]; - int partition_clause_size() const; - private: - int _internal_partition_clause_size() const; - public: - void clear_partition_clause(); - ::pg_query::Node* mutable_partition_clause(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_partition_clause(); - private: - const ::pg_query::Node& _internal_partition_clause(int index) const; - ::pg_query::Node* _internal_add_partition_clause(); - public: - const ::pg_query::Node& partition_clause(int index) const; - ::pg_query::Node* add_partition_clause(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - partition_clause() const; - - // repeated .pg_query.Node order_clause = 4 [json_name = "orderClause"]; - int order_clause_size() const; - private: - int _internal_order_clause_size() const; - public: - void clear_order_clause(); - ::pg_query::Node* mutable_order_clause(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_order_clause(); - private: - const ::pg_query::Node& _internal_order_clause(int index) const; - ::pg_query::Node* _internal_add_order_clause(); - public: - const ::pg_query::Node& order_clause(int index) const; - ::pg_query::Node* add_order_clause(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - order_clause() const; - - // string name = 1 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // string refname = 2 [json_name = "refname"]; - void clear_refname(); - const std::string& refname() const; - template - void set_refname(ArgT0&& arg0, ArgT... args); - std::string* mutable_refname(); - PROTOBUF_NODISCARD std::string* release_refname(); - void set_allocated_refname(std::string* refname); - private: - const std::string& _internal_refname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_refname(const std::string& value); - std::string* _internal_mutable_refname(); - public: - - // .pg_query.Node start_offset = 6 [json_name = "startOffset"]; - bool has_start_offset() const; - private: - bool _internal_has_start_offset() const; - public: - void clear_start_offset(); - const ::pg_query::Node& start_offset() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_start_offset(); - ::pg_query::Node* mutable_start_offset(); - void set_allocated_start_offset(::pg_query::Node* start_offset); - private: - const ::pg_query::Node& _internal_start_offset() const; - ::pg_query::Node* _internal_mutable_start_offset(); - public: - void unsafe_arena_set_allocated_start_offset( - ::pg_query::Node* start_offset); - ::pg_query::Node* unsafe_arena_release_start_offset(); - - // .pg_query.Node end_offset = 7 [json_name = "endOffset"]; - bool has_end_offset() const; - private: - bool _internal_has_end_offset() const; - public: - void clear_end_offset(); - const ::pg_query::Node& end_offset() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_end_offset(); - ::pg_query::Node* mutable_end_offset(); - void set_allocated_end_offset(::pg_query::Node* end_offset); - private: - const ::pg_query::Node& _internal_end_offset() const; - ::pg_query::Node* _internal_mutable_end_offset(); - public: - void unsafe_arena_set_allocated_end_offset( - ::pg_query::Node* end_offset); - ::pg_query::Node* unsafe_arena_release_end_offset(); - - // int32 frame_options = 5 [json_name = "frameOptions"]; - void clear_frame_options(); - int32_t frame_options() const; - void set_frame_options(int32_t value); - private: - int32_t _internal_frame_options() const; - void _internal_set_frame_options(int32_t value); - public: - - // int32 location = 8 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.WindowDef) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > partition_clause_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > order_clause_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr refname_; - ::pg_query::Node* start_offset_; - ::pg_query::Node* end_offset_; - int32_t frame_options_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class RangeSubselect final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.RangeSubselect) */ { - public: - inline RangeSubselect() : RangeSubselect(nullptr) {} - ~RangeSubselect() override; - explicit PROTOBUF_CONSTEXPR RangeSubselect(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - RangeSubselect(const RangeSubselect& from); - RangeSubselect(RangeSubselect&& from) noexcept - : RangeSubselect() { - *this = ::std::move(from); - } - - inline RangeSubselect& operator=(const RangeSubselect& from) { - CopyFrom(from); - return *this; - } - inline RangeSubselect& operator=(RangeSubselect&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RangeSubselect& default_instance() { - return *internal_default_instance(); - } - static inline const RangeSubselect* internal_default_instance() { - return reinterpret_cast( - &_RangeSubselect_default_instance_); - } - static constexpr int kIndexInFileMessages = - 196; - - friend void swap(RangeSubselect& a, RangeSubselect& b) { - a.Swap(&b); - } - inline void Swap(RangeSubselect* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RangeSubselect* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RangeSubselect* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RangeSubselect& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RangeSubselect& from) { - RangeSubselect::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RangeSubselect* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.RangeSubselect"; - } - protected: - explicit RangeSubselect(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSubqueryFieldNumber = 2, - kAliasFieldNumber = 3, - kLateralFieldNumber = 1, - }; - // .pg_query.Node subquery = 2 [json_name = "subquery"]; - bool has_subquery() const; - private: - bool _internal_has_subquery() const; - public: - void clear_subquery(); - const ::pg_query::Node& subquery() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_subquery(); - ::pg_query::Node* mutable_subquery(); - void set_allocated_subquery(::pg_query::Node* subquery); - private: - const ::pg_query::Node& _internal_subquery() const; - ::pg_query::Node* _internal_mutable_subquery(); - public: - void unsafe_arena_set_allocated_subquery( - ::pg_query::Node* subquery); - ::pg_query::Node* unsafe_arena_release_subquery(); - - // .pg_query.Alias alias = 3 [json_name = "alias"]; - bool has_alias() const; - private: - bool _internal_has_alias() const; - public: - void clear_alias(); - const ::pg_query::Alias& alias() const; - PROTOBUF_NODISCARD ::pg_query::Alias* release_alias(); - ::pg_query::Alias* mutable_alias(); - void set_allocated_alias(::pg_query::Alias* alias); - private: - const ::pg_query::Alias& _internal_alias() const; - ::pg_query::Alias* _internal_mutable_alias(); - public: - void unsafe_arena_set_allocated_alias( - ::pg_query::Alias* alias); - ::pg_query::Alias* unsafe_arena_release_alias(); - - // bool lateral = 1 [json_name = "lateral"]; - void clear_lateral(); - bool lateral() const; - void set_lateral(bool value); - private: - bool _internal_lateral() const; - void _internal_set_lateral(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.RangeSubselect) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* subquery_; - ::pg_query::Alias* alias_; - bool lateral_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class RangeFunction final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.RangeFunction) */ { - public: - inline RangeFunction() : RangeFunction(nullptr) {} - ~RangeFunction() override; - explicit PROTOBUF_CONSTEXPR RangeFunction(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - RangeFunction(const RangeFunction& from); - RangeFunction(RangeFunction&& from) noexcept - : RangeFunction() { - *this = ::std::move(from); - } - - inline RangeFunction& operator=(const RangeFunction& from) { - CopyFrom(from); - return *this; - } - inline RangeFunction& operator=(RangeFunction&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RangeFunction& default_instance() { - return *internal_default_instance(); - } - static inline const RangeFunction* internal_default_instance() { - return reinterpret_cast( - &_RangeFunction_default_instance_); - } - static constexpr int kIndexInFileMessages = - 197; - - friend void swap(RangeFunction& a, RangeFunction& b) { - a.Swap(&b); - } - inline void Swap(RangeFunction* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RangeFunction* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RangeFunction* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RangeFunction& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RangeFunction& from) { - RangeFunction::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RangeFunction* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.RangeFunction"; - } - protected: - explicit RangeFunction(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFunctionsFieldNumber = 4, - kColdeflistFieldNumber = 6, - kAliasFieldNumber = 5, - kLateralFieldNumber = 1, - kOrdinalityFieldNumber = 2, - kIsRowsfromFieldNumber = 3, - }; - // repeated .pg_query.Node functions = 4 [json_name = "functions"]; - int functions_size() const; - private: - int _internal_functions_size() const; - public: - void clear_functions(); - ::pg_query::Node* mutable_functions(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_functions(); - private: - const ::pg_query::Node& _internal_functions(int index) const; - ::pg_query::Node* _internal_add_functions(); - public: - const ::pg_query::Node& functions(int index) const; - ::pg_query::Node* add_functions(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - functions() const; - - // repeated .pg_query.Node coldeflist = 6 [json_name = "coldeflist"]; - int coldeflist_size() const; - private: - int _internal_coldeflist_size() const; - public: - void clear_coldeflist(); - ::pg_query::Node* mutable_coldeflist(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_coldeflist(); - private: - const ::pg_query::Node& _internal_coldeflist(int index) const; - ::pg_query::Node* _internal_add_coldeflist(); - public: - const ::pg_query::Node& coldeflist(int index) const; - ::pg_query::Node* add_coldeflist(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - coldeflist() const; - - // .pg_query.Alias alias = 5 [json_name = "alias"]; - bool has_alias() const; - private: - bool _internal_has_alias() const; - public: - void clear_alias(); - const ::pg_query::Alias& alias() const; - PROTOBUF_NODISCARD ::pg_query::Alias* release_alias(); - ::pg_query::Alias* mutable_alias(); - void set_allocated_alias(::pg_query::Alias* alias); - private: - const ::pg_query::Alias& _internal_alias() const; - ::pg_query::Alias* _internal_mutable_alias(); - public: - void unsafe_arena_set_allocated_alias( - ::pg_query::Alias* alias); - ::pg_query::Alias* unsafe_arena_release_alias(); - - // bool lateral = 1 [json_name = "lateral"]; - void clear_lateral(); - bool lateral() const; - void set_lateral(bool value); - private: - bool _internal_lateral() const; - void _internal_set_lateral(bool value); - public: - - // bool ordinality = 2 [json_name = "ordinality"]; - void clear_ordinality(); - bool ordinality() const; - void set_ordinality(bool value); - private: - bool _internal_ordinality() const; - void _internal_set_ordinality(bool value); - public: - - // bool is_rowsfrom = 3 [json_name = "is_rowsfrom"]; - void clear_is_rowsfrom(); - bool is_rowsfrom() const; - void set_is_rowsfrom(bool value); - private: - bool _internal_is_rowsfrom() const; - void _internal_set_is_rowsfrom(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.RangeFunction) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > functions_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > coldeflist_; - ::pg_query::Alias* alias_; - bool lateral_; - bool ordinality_; - bool is_rowsfrom_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class RangeTableSample final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.RangeTableSample) */ { - public: - inline RangeTableSample() : RangeTableSample(nullptr) {} - ~RangeTableSample() override; - explicit PROTOBUF_CONSTEXPR RangeTableSample(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - RangeTableSample(const RangeTableSample& from); - RangeTableSample(RangeTableSample&& from) noexcept - : RangeTableSample() { - *this = ::std::move(from); - } - - inline RangeTableSample& operator=(const RangeTableSample& from) { - CopyFrom(from); - return *this; - } - inline RangeTableSample& operator=(RangeTableSample&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RangeTableSample& default_instance() { - return *internal_default_instance(); - } - static inline const RangeTableSample* internal_default_instance() { - return reinterpret_cast( - &_RangeTableSample_default_instance_); - } - static constexpr int kIndexInFileMessages = - 198; - - friend void swap(RangeTableSample& a, RangeTableSample& b) { - a.Swap(&b); - } - inline void Swap(RangeTableSample* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RangeTableSample* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RangeTableSample* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RangeTableSample& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RangeTableSample& from) { - RangeTableSample::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RangeTableSample* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.RangeTableSample"; - } - protected: - explicit RangeTableSample(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kMethodFieldNumber = 2, - kArgsFieldNumber = 3, - kRelationFieldNumber = 1, - kRepeatableFieldNumber = 4, - kLocationFieldNumber = 5, - }; - // repeated .pg_query.Node method = 2 [json_name = "method"]; - int method_size() const; - private: - int _internal_method_size() const; - public: - void clear_method(); - ::pg_query::Node* mutable_method(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_method(); - private: - const ::pg_query::Node& _internal_method(int index) const; - ::pg_query::Node* _internal_add_method(); - public: - const ::pg_query::Node& method(int index) const; - ::pg_query::Node* add_method(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - method() const; - - // repeated .pg_query.Node args = 3 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // .pg_query.Node relation = 1 [json_name = "relation"]; - bool has_relation() const; - private: - bool _internal_has_relation() const; - public: - void clear_relation(); - const ::pg_query::Node& relation() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_relation(); - ::pg_query::Node* mutable_relation(); - void set_allocated_relation(::pg_query::Node* relation); - private: - const ::pg_query::Node& _internal_relation() const; - ::pg_query::Node* _internal_mutable_relation(); - public: - void unsafe_arena_set_allocated_relation( - ::pg_query::Node* relation); - ::pg_query::Node* unsafe_arena_release_relation(); - - // .pg_query.Node repeatable = 4 [json_name = "repeatable"]; - bool has_repeatable() const; - private: - bool _internal_has_repeatable() const; - public: - void clear_repeatable(); - const ::pg_query::Node& repeatable() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_repeatable(); - ::pg_query::Node* mutable_repeatable(); - void set_allocated_repeatable(::pg_query::Node* repeatable); - private: - const ::pg_query::Node& _internal_repeatable() const; - ::pg_query::Node* _internal_mutable_repeatable(); - public: - void unsafe_arena_set_allocated_repeatable( - ::pg_query::Node* repeatable); - ::pg_query::Node* unsafe_arena_release_repeatable(); - - // int32 location = 5 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.RangeTableSample) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > method_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - ::pg_query::Node* relation_; - ::pg_query::Node* repeatable_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class RangeTableFunc final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.RangeTableFunc) */ { - public: - inline RangeTableFunc() : RangeTableFunc(nullptr) {} - ~RangeTableFunc() override; - explicit PROTOBUF_CONSTEXPR RangeTableFunc(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - RangeTableFunc(const RangeTableFunc& from); - RangeTableFunc(RangeTableFunc&& from) noexcept - : RangeTableFunc() { - *this = ::std::move(from); - } - - inline RangeTableFunc& operator=(const RangeTableFunc& from) { - CopyFrom(from); - return *this; - } - inline RangeTableFunc& operator=(RangeTableFunc&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RangeTableFunc& default_instance() { - return *internal_default_instance(); - } - static inline const RangeTableFunc* internal_default_instance() { - return reinterpret_cast( - &_RangeTableFunc_default_instance_); - } - static constexpr int kIndexInFileMessages = - 199; - - friend void swap(RangeTableFunc& a, RangeTableFunc& b) { - a.Swap(&b); - } - inline void Swap(RangeTableFunc* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RangeTableFunc* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RangeTableFunc* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RangeTableFunc& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RangeTableFunc& from) { - RangeTableFunc::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RangeTableFunc* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.RangeTableFunc"; - } - protected: - explicit RangeTableFunc(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNamespacesFieldNumber = 4, - kColumnsFieldNumber = 5, - kDocexprFieldNumber = 2, - kRowexprFieldNumber = 3, - kAliasFieldNumber = 6, - kLateralFieldNumber = 1, - kLocationFieldNumber = 7, - }; - // repeated .pg_query.Node namespaces = 4 [json_name = "namespaces"]; - int namespaces_size() const; - private: - int _internal_namespaces_size() const; - public: - void clear_namespaces(); - ::pg_query::Node* mutable_namespaces(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_namespaces(); - private: - const ::pg_query::Node& _internal_namespaces(int index) const; - ::pg_query::Node* _internal_add_namespaces(); - public: - const ::pg_query::Node& namespaces(int index) const; - ::pg_query::Node* add_namespaces(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - namespaces() const; - - // repeated .pg_query.Node columns = 5 [json_name = "columns"]; - int columns_size() const; - private: - int _internal_columns_size() const; - public: - void clear_columns(); - ::pg_query::Node* mutable_columns(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_columns(); - private: - const ::pg_query::Node& _internal_columns(int index) const; - ::pg_query::Node* _internal_add_columns(); - public: - const ::pg_query::Node& columns(int index) const; - ::pg_query::Node* add_columns(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - columns() const; - - // .pg_query.Node docexpr = 2 [json_name = "docexpr"]; - bool has_docexpr() const; - private: - bool _internal_has_docexpr() const; - public: - void clear_docexpr(); - const ::pg_query::Node& docexpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_docexpr(); - ::pg_query::Node* mutable_docexpr(); - void set_allocated_docexpr(::pg_query::Node* docexpr); - private: - const ::pg_query::Node& _internal_docexpr() const; - ::pg_query::Node* _internal_mutable_docexpr(); - public: - void unsafe_arena_set_allocated_docexpr( - ::pg_query::Node* docexpr); - ::pg_query::Node* unsafe_arena_release_docexpr(); - - // .pg_query.Node rowexpr = 3 [json_name = "rowexpr"]; - bool has_rowexpr() const; - private: - bool _internal_has_rowexpr() const; - public: - void clear_rowexpr(); - const ::pg_query::Node& rowexpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_rowexpr(); - ::pg_query::Node* mutable_rowexpr(); - void set_allocated_rowexpr(::pg_query::Node* rowexpr); - private: - const ::pg_query::Node& _internal_rowexpr() const; - ::pg_query::Node* _internal_mutable_rowexpr(); - public: - void unsafe_arena_set_allocated_rowexpr( - ::pg_query::Node* rowexpr); - ::pg_query::Node* unsafe_arena_release_rowexpr(); - - // .pg_query.Alias alias = 6 [json_name = "alias"]; - bool has_alias() const; - private: - bool _internal_has_alias() const; - public: - void clear_alias(); - const ::pg_query::Alias& alias() const; - PROTOBUF_NODISCARD ::pg_query::Alias* release_alias(); - ::pg_query::Alias* mutable_alias(); - void set_allocated_alias(::pg_query::Alias* alias); - private: - const ::pg_query::Alias& _internal_alias() const; - ::pg_query::Alias* _internal_mutable_alias(); - public: - void unsafe_arena_set_allocated_alias( - ::pg_query::Alias* alias); - ::pg_query::Alias* unsafe_arena_release_alias(); - - // bool lateral = 1 [json_name = "lateral"]; - void clear_lateral(); - bool lateral() const; - void set_lateral(bool value); - private: - bool _internal_lateral() const; - void _internal_set_lateral(bool value); - public: - - // int32 location = 7 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.RangeTableFunc) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > namespaces_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > columns_; - ::pg_query::Node* docexpr_; - ::pg_query::Node* rowexpr_; - ::pg_query::Alias* alias_; - bool lateral_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class RangeTableFuncCol final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.RangeTableFuncCol) */ { - public: - inline RangeTableFuncCol() : RangeTableFuncCol(nullptr) {} - ~RangeTableFuncCol() override; - explicit PROTOBUF_CONSTEXPR RangeTableFuncCol(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - RangeTableFuncCol(const RangeTableFuncCol& from); - RangeTableFuncCol(RangeTableFuncCol&& from) noexcept - : RangeTableFuncCol() { - *this = ::std::move(from); - } - - inline RangeTableFuncCol& operator=(const RangeTableFuncCol& from) { - CopyFrom(from); - return *this; - } - inline RangeTableFuncCol& operator=(RangeTableFuncCol&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RangeTableFuncCol& default_instance() { - return *internal_default_instance(); - } - static inline const RangeTableFuncCol* internal_default_instance() { - return reinterpret_cast( - &_RangeTableFuncCol_default_instance_); - } - static constexpr int kIndexInFileMessages = - 200; - - friend void swap(RangeTableFuncCol& a, RangeTableFuncCol& b) { - a.Swap(&b); - } - inline void Swap(RangeTableFuncCol* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RangeTableFuncCol* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RangeTableFuncCol* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RangeTableFuncCol& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RangeTableFuncCol& from) { - RangeTableFuncCol::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RangeTableFuncCol* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.RangeTableFuncCol"; - } - protected: - explicit RangeTableFuncCol(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kColnameFieldNumber = 1, - kTypeNameFieldNumber = 2, - kColexprFieldNumber = 5, - kColdefexprFieldNumber = 6, - kForOrdinalityFieldNumber = 3, - kIsNotNullFieldNumber = 4, - kLocationFieldNumber = 7, - }; - // string colname = 1 [json_name = "colname"]; - void clear_colname(); - const std::string& colname() const; - template - void set_colname(ArgT0&& arg0, ArgT... args); - std::string* mutable_colname(); - PROTOBUF_NODISCARD std::string* release_colname(); - void set_allocated_colname(std::string* colname); - private: - const std::string& _internal_colname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_colname(const std::string& value); - std::string* _internal_mutable_colname(); - public: - - // .pg_query.TypeName type_name = 2 [json_name = "typeName"]; - bool has_type_name() const; - private: - bool _internal_has_type_name() const; - public: - void clear_type_name(); - const ::pg_query::TypeName& type_name() const; - PROTOBUF_NODISCARD ::pg_query::TypeName* release_type_name(); - ::pg_query::TypeName* mutable_type_name(); - void set_allocated_type_name(::pg_query::TypeName* type_name); - private: - const ::pg_query::TypeName& _internal_type_name() const; - ::pg_query::TypeName* _internal_mutable_type_name(); - public: - void unsafe_arena_set_allocated_type_name( - ::pg_query::TypeName* type_name); - ::pg_query::TypeName* unsafe_arena_release_type_name(); - - // .pg_query.Node colexpr = 5 [json_name = "colexpr"]; - bool has_colexpr() const; - private: - bool _internal_has_colexpr() const; - public: - void clear_colexpr(); - const ::pg_query::Node& colexpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_colexpr(); - ::pg_query::Node* mutable_colexpr(); - void set_allocated_colexpr(::pg_query::Node* colexpr); - private: - const ::pg_query::Node& _internal_colexpr() const; - ::pg_query::Node* _internal_mutable_colexpr(); - public: - void unsafe_arena_set_allocated_colexpr( - ::pg_query::Node* colexpr); - ::pg_query::Node* unsafe_arena_release_colexpr(); - - // .pg_query.Node coldefexpr = 6 [json_name = "coldefexpr"]; - bool has_coldefexpr() const; - private: - bool _internal_has_coldefexpr() const; - public: - void clear_coldefexpr(); - const ::pg_query::Node& coldefexpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_coldefexpr(); - ::pg_query::Node* mutable_coldefexpr(); - void set_allocated_coldefexpr(::pg_query::Node* coldefexpr); - private: - const ::pg_query::Node& _internal_coldefexpr() const; - ::pg_query::Node* _internal_mutable_coldefexpr(); - public: - void unsafe_arena_set_allocated_coldefexpr( - ::pg_query::Node* coldefexpr); - ::pg_query::Node* unsafe_arena_release_coldefexpr(); - - // bool for_ordinality = 3 [json_name = "for_ordinality"]; - void clear_for_ordinality(); - bool for_ordinality() const; - void set_for_ordinality(bool value); - private: - bool _internal_for_ordinality() const; - void _internal_set_for_ordinality(bool value); - public: - - // bool is_not_null = 4 [json_name = "is_not_null"]; - void clear_is_not_null(); - bool is_not_null() const; - void set_is_not_null(bool value); - private: - bool _internal_is_not_null() const; - void _internal_set_is_not_null(bool value); - public: - - // int32 location = 7 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.RangeTableFuncCol) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr colname_; - ::pg_query::TypeName* type_name_; - ::pg_query::Node* colexpr_; - ::pg_query::Node* coldefexpr_; - bool for_ordinality_; - bool is_not_null_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class TypeName final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.TypeName) */ { - public: - inline TypeName() : TypeName(nullptr) {} - ~TypeName() override; - explicit PROTOBUF_CONSTEXPR TypeName(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - TypeName(const TypeName& from); - TypeName(TypeName&& from) noexcept - : TypeName() { - *this = ::std::move(from); - } - - inline TypeName& operator=(const TypeName& from) { - CopyFrom(from); - return *this; - } - inline TypeName& operator=(TypeName&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TypeName& default_instance() { - return *internal_default_instance(); - } - static inline const TypeName* internal_default_instance() { - return reinterpret_cast( - &_TypeName_default_instance_); - } - static constexpr int kIndexInFileMessages = - 201; - - friend void swap(TypeName& a, TypeName& b) { - a.Swap(&b); - } - inline void Swap(TypeName* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TypeName* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TypeName* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const TypeName& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const TypeName& from) { - TypeName::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TypeName* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.TypeName"; - } - protected: - explicit TypeName(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNamesFieldNumber = 1, - kTypmodsFieldNumber = 5, - kArrayBoundsFieldNumber = 7, - kTypeOidFieldNumber = 2, - kSetofFieldNumber = 3, - kPctTypeFieldNumber = 4, - kTypemodFieldNumber = 6, - kLocationFieldNumber = 8, - }; - // repeated .pg_query.Node names = 1 [json_name = "names"]; - int names_size() const; - private: - int _internal_names_size() const; - public: - void clear_names(); - ::pg_query::Node* mutable_names(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_names(); - private: - const ::pg_query::Node& _internal_names(int index) const; - ::pg_query::Node* _internal_add_names(); - public: - const ::pg_query::Node& names(int index) const; - ::pg_query::Node* add_names(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - names() const; - - // repeated .pg_query.Node typmods = 5 [json_name = "typmods"]; - int typmods_size() const; - private: - int _internal_typmods_size() const; - public: - void clear_typmods(); - ::pg_query::Node* mutable_typmods(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_typmods(); - private: - const ::pg_query::Node& _internal_typmods(int index) const; - ::pg_query::Node* _internal_add_typmods(); - public: - const ::pg_query::Node& typmods(int index) const; - ::pg_query::Node* add_typmods(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - typmods() const; - - // repeated .pg_query.Node array_bounds = 7 [json_name = "arrayBounds"]; - int array_bounds_size() const; - private: - int _internal_array_bounds_size() const; - public: - void clear_array_bounds(); - ::pg_query::Node* mutable_array_bounds(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_array_bounds(); - private: - const ::pg_query::Node& _internal_array_bounds(int index) const; - ::pg_query::Node* _internal_add_array_bounds(); - public: - const ::pg_query::Node& array_bounds(int index) const; - ::pg_query::Node* add_array_bounds(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - array_bounds() const; - - // uint32 type_oid = 2 [json_name = "typeOid"]; - void clear_type_oid(); - uint32_t type_oid() const; - void set_type_oid(uint32_t value); - private: - uint32_t _internal_type_oid() const; - void _internal_set_type_oid(uint32_t value); - public: - - // bool setof = 3 [json_name = "setof"]; - void clear_setof(); - bool setof() const; - void set_setof(bool value); - private: - bool _internal_setof() const; - void _internal_set_setof(bool value); - public: - - // bool pct_type = 4 [json_name = "pct_type"]; - void clear_pct_type(); - bool pct_type() const; - void set_pct_type(bool value); - private: - bool _internal_pct_type() const; - void _internal_set_pct_type(bool value); - public: - - // int32 typemod = 6 [json_name = "typemod"]; - void clear_typemod(); - int32_t typemod() const; - void set_typemod(int32_t value); - private: - int32_t _internal_typemod() const; - void _internal_set_typemod(int32_t value); - public: - - // int32 location = 8 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.TypeName) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > names_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > typmods_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > array_bounds_; - uint32_t type_oid_; - bool setof_; - bool pct_type_; - int32_t typemod_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ColumnDef final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ColumnDef) */ { - public: - inline ColumnDef() : ColumnDef(nullptr) {} - ~ColumnDef() override; - explicit PROTOBUF_CONSTEXPR ColumnDef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ColumnDef(const ColumnDef& from); - ColumnDef(ColumnDef&& from) noexcept - : ColumnDef() { - *this = ::std::move(from); - } - - inline ColumnDef& operator=(const ColumnDef& from) { - CopyFrom(from); - return *this; - } - inline ColumnDef& operator=(ColumnDef&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ColumnDef& default_instance() { - return *internal_default_instance(); - } - static inline const ColumnDef* internal_default_instance() { - return reinterpret_cast( - &_ColumnDef_default_instance_); - } - static constexpr int kIndexInFileMessages = - 202; - - friend void swap(ColumnDef& a, ColumnDef& b) { - a.Swap(&b); - } - inline void Swap(ColumnDef* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ColumnDef* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ColumnDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ColumnDef& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ColumnDef& from) { - ColumnDef::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ColumnDef* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ColumnDef"; - } - protected: - explicit ColumnDef(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kConstraintsFieldNumber = 16, - kFdwoptionsFieldNumber = 17, - kColnameFieldNumber = 1, - kCompressionFieldNumber = 3, - kStorageFieldNumber = 8, - kIdentityFieldNumber = 11, - kGeneratedFieldNumber = 13, - kTypeNameFieldNumber = 2, - kRawDefaultFieldNumber = 9, - kCookedDefaultFieldNumber = 10, - kIdentitySequenceFieldNumber = 12, - kCollClauseFieldNumber = 14, - kInhcountFieldNumber = 4, - kIsLocalFieldNumber = 5, - kIsNotNullFieldNumber = 6, - kIsFromTypeFieldNumber = 7, - kCollOidFieldNumber = 15, - kLocationFieldNumber = 18, - }; - // repeated .pg_query.Node constraints = 16 [json_name = "constraints"]; - int constraints_size() const; - private: - int _internal_constraints_size() const; - public: - void clear_constraints(); - ::pg_query::Node* mutable_constraints(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_constraints(); - private: - const ::pg_query::Node& _internal_constraints(int index) const; - ::pg_query::Node* _internal_add_constraints(); - public: - const ::pg_query::Node& constraints(int index) const; - ::pg_query::Node* add_constraints(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - constraints() const; - - // repeated .pg_query.Node fdwoptions = 17 [json_name = "fdwoptions"]; - int fdwoptions_size() const; - private: - int _internal_fdwoptions_size() const; - public: - void clear_fdwoptions(); - ::pg_query::Node* mutable_fdwoptions(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_fdwoptions(); - private: - const ::pg_query::Node& _internal_fdwoptions(int index) const; - ::pg_query::Node* _internal_add_fdwoptions(); - public: - const ::pg_query::Node& fdwoptions(int index) const; - ::pg_query::Node* add_fdwoptions(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - fdwoptions() const; - - // string colname = 1 [json_name = "colname"]; - void clear_colname(); - const std::string& colname() const; - template - void set_colname(ArgT0&& arg0, ArgT... args); - std::string* mutable_colname(); - PROTOBUF_NODISCARD std::string* release_colname(); - void set_allocated_colname(std::string* colname); - private: - const std::string& _internal_colname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_colname(const std::string& value); - std::string* _internal_mutable_colname(); - public: - - // string compression = 3 [json_name = "compression"]; - void clear_compression(); - const std::string& compression() const; - template - void set_compression(ArgT0&& arg0, ArgT... args); - std::string* mutable_compression(); - PROTOBUF_NODISCARD std::string* release_compression(); - void set_allocated_compression(std::string* compression); - private: - const std::string& _internal_compression() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_compression(const std::string& value); - std::string* _internal_mutable_compression(); - public: - - // string storage = 8 [json_name = "storage"]; - void clear_storage(); - const std::string& storage() const; - template - void set_storage(ArgT0&& arg0, ArgT... args); - std::string* mutable_storage(); - PROTOBUF_NODISCARD std::string* release_storage(); - void set_allocated_storage(std::string* storage); - private: - const std::string& _internal_storage() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_storage(const std::string& value); - std::string* _internal_mutable_storage(); - public: - - // string identity = 11 [json_name = "identity"]; - void clear_identity(); - const std::string& identity() const; - template - void set_identity(ArgT0&& arg0, ArgT... args); - std::string* mutable_identity(); - PROTOBUF_NODISCARD std::string* release_identity(); - void set_allocated_identity(std::string* identity); - private: - const std::string& _internal_identity() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_identity(const std::string& value); - std::string* _internal_mutable_identity(); - public: - - // string generated = 13 [json_name = "generated"]; - void clear_generated(); - const std::string& generated() const; - template - void set_generated(ArgT0&& arg0, ArgT... args); - std::string* mutable_generated(); - PROTOBUF_NODISCARD std::string* release_generated(); - void set_allocated_generated(std::string* generated); - private: - const std::string& _internal_generated() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_generated(const std::string& value); - std::string* _internal_mutable_generated(); - public: - - // .pg_query.TypeName type_name = 2 [json_name = "typeName"]; - bool has_type_name() const; - private: - bool _internal_has_type_name() const; - public: - void clear_type_name(); - const ::pg_query::TypeName& type_name() const; - PROTOBUF_NODISCARD ::pg_query::TypeName* release_type_name(); - ::pg_query::TypeName* mutable_type_name(); - void set_allocated_type_name(::pg_query::TypeName* type_name); - private: - const ::pg_query::TypeName& _internal_type_name() const; - ::pg_query::TypeName* _internal_mutable_type_name(); - public: - void unsafe_arena_set_allocated_type_name( - ::pg_query::TypeName* type_name); - ::pg_query::TypeName* unsafe_arena_release_type_name(); - - // .pg_query.Node raw_default = 9 [json_name = "raw_default"]; - bool has_raw_default() const; - private: - bool _internal_has_raw_default() const; - public: - void clear_raw_default(); - const ::pg_query::Node& raw_default() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_raw_default(); - ::pg_query::Node* mutable_raw_default(); - void set_allocated_raw_default(::pg_query::Node* raw_default); - private: - const ::pg_query::Node& _internal_raw_default() const; - ::pg_query::Node* _internal_mutable_raw_default(); - public: - void unsafe_arena_set_allocated_raw_default( - ::pg_query::Node* raw_default); - ::pg_query::Node* unsafe_arena_release_raw_default(); - - // .pg_query.Node cooked_default = 10 [json_name = "cooked_default"]; - bool has_cooked_default() const; - private: - bool _internal_has_cooked_default() const; - public: - void clear_cooked_default(); - const ::pg_query::Node& cooked_default() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_cooked_default(); - ::pg_query::Node* mutable_cooked_default(); - void set_allocated_cooked_default(::pg_query::Node* cooked_default); - private: - const ::pg_query::Node& _internal_cooked_default() const; - ::pg_query::Node* _internal_mutable_cooked_default(); - public: - void unsafe_arena_set_allocated_cooked_default( - ::pg_query::Node* cooked_default); - ::pg_query::Node* unsafe_arena_release_cooked_default(); - - // .pg_query.RangeVar identity_sequence = 12 [json_name = "identitySequence"]; - bool has_identity_sequence() const; - private: - bool _internal_has_identity_sequence() const; - public: - void clear_identity_sequence(); - const ::pg_query::RangeVar& identity_sequence() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_identity_sequence(); - ::pg_query::RangeVar* mutable_identity_sequence(); - void set_allocated_identity_sequence(::pg_query::RangeVar* identity_sequence); - private: - const ::pg_query::RangeVar& _internal_identity_sequence() const; - ::pg_query::RangeVar* _internal_mutable_identity_sequence(); - public: - void unsafe_arena_set_allocated_identity_sequence( - ::pg_query::RangeVar* identity_sequence); - ::pg_query::RangeVar* unsafe_arena_release_identity_sequence(); - - // .pg_query.CollateClause coll_clause = 14 [json_name = "collClause"]; - bool has_coll_clause() const; - private: - bool _internal_has_coll_clause() const; - public: - void clear_coll_clause(); - const ::pg_query::CollateClause& coll_clause() const; - PROTOBUF_NODISCARD ::pg_query::CollateClause* release_coll_clause(); - ::pg_query::CollateClause* mutable_coll_clause(); - void set_allocated_coll_clause(::pg_query::CollateClause* coll_clause); - private: - const ::pg_query::CollateClause& _internal_coll_clause() const; - ::pg_query::CollateClause* _internal_mutable_coll_clause(); - public: - void unsafe_arena_set_allocated_coll_clause( - ::pg_query::CollateClause* coll_clause); - ::pg_query::CollateClause* unsafe_arena_release_coll_clause(); - - // int32 inhcount = 4 [json_name = "inhcount"]; - void clear_inhcount(); - int32_t inhcount() const; - void set_inhcount(int32_t value); - private: - int32_t _internal_inhcount() const; - void _internal_set_inhcount(int32_t value); - public: - - // bool is_local = 5 [json_name = "is_local"]; - void clear_is_local(); - bool is_local() const; - void set_is_local(bool value); - private: - bool _internal_is_local() const; - void _internal_set_is_local(bool value); - public: - - // bool is_not_null = 6 [json_name = "is_not_null"]; - void clear_is_not_null(); - bool is_not_null() const; - void set_is_not_null(bool value); - private: - bool _internal_is_not_null() const; - void _internal_set_is_not_null(bool value); - public: - - // bool is_from_type = 7 [json_name = "is_from_type"]; - void clear_is_from_type(); - bool is_from_type() const; - void set_is_from_type(bool value); - private: - bool _internal_is_from_type() const; - void _internal_set_is_from_type(bool value); - public: - - // uint32 coll_oid = 15 [json_name = "collOid"]; - void clear_coll_oid(); - uint32_t coll_oid() const; - void set_coll_oid(uint32_t value); - private: - uint32_t _internal_coll_oid() const; - void _internal_set_coll_oid(uint32_t value); - public: - - // int32 location = 18 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.ColumnDef) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > constraints_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > fdwoptions_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr colname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr compression_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr storage_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr identity_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr generated_; - ::pg_query::TypeName* type_name_; - ::pg_query::Node* raw_default_; - ::pg_query::Node* cooked_default_; - ::pg_query::RangeVar* identity_sequence_; - ::pg_query::CollateClause* coll_clause_; - int32_t inhcount_; - bool is_local_; - bool is_not_null_; - bool is_from_type_; - uint32_t coll_oid_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class IndexElem final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.IndexElem) */ { - public: - inline IndexElem() : IndexElem(nullptr) {} - ~IndexElem() override; - explicit PROTOBUF_CONSTEXPR IndexElem(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - IndexElem(const IndexElem& from); - IndexElem(IndexElem&& from) noexcept - : IndexElem() { - *this = ::std::move(from); - } - - inline IndexElem& operator=(const IndexElem& from) { - CopyFrom(from); - return *this; - } - inline IndexElem& operator=(IndexElem&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const IndexElem& default_instance() { - return *internal_default_instance(); - } - static inline const IndexElem* internal_default_instance() { - return reinterpret_cast( - &_IndexElem_default_instance_); - } - static constexpr int kIndexInFileMessages = - 203; - - friend void swap(IndexElem& a, IndexElem& b) { - a.Swap(&b); - } - inline void Swap(IndexElem* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(IndexElem* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - IndexElem* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const IndexElem& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const IndexElem& from) { - IndexElem::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(IndexElem* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.IndexElem"; - } - protected: - explicit IndexElem(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCollationFieldNumber = 4, - kOpclassFieldNumber = 5, - kOpclassoptsFieldNumber = 6, - kNameFieldNumber = 1, - kIndexcolnameFieldNumber = 3, - kExprFieldNumber = 2, - kOrderingFieldNumber = 7, - kNullsOrderingFieldNumber = 8, - }; - // repeated .pg_query.Node collation = 4 [json_name = "collation"]; - int collation_size() const; - private: - int _internal_collation_size() const; - public: - void clear_collation(); - ::pg_query::Node* mutable_collation(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_collation(); - private: - const ::pg_query::Node& _internal_collation(int index) const; - ::pg_query::Node* _internal_add_collation(); - public: - const ::pg_query::Node& collation(int index) const; - ::pg_query::Node* add_collation(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - collation() const; - - // repeated .pg_query.Node opclass = 5 [json_name = "opclass"]; - int opclass_size() const; - private: - int _internal_opclass_size() const; - public: - void clear_opclass(); - ::pg_query::Node* mutable_opclass(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_opclass(); - private: - const ::pg_query::Node& _internal_opclass(int index) const; - ::pg_query::Node* _internal_add_opclass(); - public: - const ::pg_query::Node& opclass(int index) const; - ::pg_query::Node* add_opclass(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - opclass() const; - - // repeated .pg_query.Node opclassopts = 6 [json_name = "opclassopts"]; - int opclassopts_size() const; - private: - int _internal_opclassopts_size() const; - public: - void clear_opclassopts(); - ::pg_query::Node* mutable_opclassopts(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_opclassopts(); - private: - const ::pg_query::Node& _internal_opclassopts(int index) const; - ::pg_query::Node* _internal_add_opclassopts(); - public: - const ::pg_query::Node& opclassopts(int index) const; - ::pg_query::Node* add_opclassopts(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - opclassopts() const; - - // string name = 1 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // string indexcolname = 3 [json_name = "indexcolname"]; - void clear_indexcolname(); - const std::string& indexcolname() const; - template - void set_indexcolname(ArgT0&& arg0, ArgT... args); - std::string* mutable_indexcolname(); - PROTOBUF_NODISCARD std::string* release_indexcolname(); - void set_allocated_indexcolname(std::string* indexcolname); - private: - const std::string& _internal_indexcolname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_indexcolname(const std::string& value); - std::string* _internal_mutable_indexcolname(); - public: - - // .pg_query.Node expr = 2 [json_name = "expr"]; - bool has_expr() const; - private: - bool _internal_has_expr() const; - public: - void clear_expr(); - const ::pg_query::Node& expr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_expr(); - ::pg_query::Node* mutable_expr(); - void set_allocated_expr(::pg_query::Node* expr); - private: - const ::pg_query::Node& _internal_expr() const; - ::pg_query::Node* _internal_mutable_expr(); - public: - void unsafe_arena_set_allocated_expr( - ::pg_query::Node* expr); - ::pg_query::Node* unsafe_arena_release_expr(); - - // .pg_query.SortByDir ordering = 7 [json_name = "ordering"]; - void clear_ordering(); - ::pg_query::SortByDir ordering() const; - void set_ordering(::pg_query::SortByDir value); - private: - ::pg_query::SortByDir _internal_ordering() const; - void _internal_set_ordering(::pg_query::SortByDir value); - public: - - // .pg_query.SortByNulls nulls_ordering = 8 [json_name = "nulls_ordering"]; - void clear_nulls_ordering(); - ::pg_query::SortByNulls nulls_ordering() const; - void set_nulls_ordering(::pg_query::SortByNulls value); - private: - ::pg_query::SortByNulls _internal_nulls_ordering() const; - void _internal_set_nulls_ordering(::pg_query::SortByNulls value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.IndexElem) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > collation_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > opclass_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > opclassopts_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr indexcolname_; - ::pg_query::Node* expr_; - int ordering_; - int nulls_ordering_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class StatsElem final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.StatsElem) */ { - public: - inline StatsElem() : StatsElem(nullptr) {} - ~StatsElem() override; - explicit PROTOBUF_CONSTEXPR StatsElem(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - StatsElem(const StatsElem& from); - StatsElem(StatsElem&& from) noexcept - : StatsElem() { - *this = ::std::move(from); - } - - inline StatsElem& operator=(const StatsElem& from) { - CopyFrom(from); - return *this; - } - inline StatsElem& operator=(StatsElem&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const StatsElem& default_instance() { - return *internal_default_instance(); - } - static inline const StatsElem* internal_default_instance() { - return reinterpret_cast( - &_StatsElem_default_instance_); - } - static constexpr int kIndexInFileMessages = - 204; - - friend void swap(StatsElem& a, StatsElem& b) { - a.Swap(&b); - } - inline void Swap(StatsElem* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(StatsElem* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - StatsElem* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const StatsElem& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const StatsElem& from) { - StatsElem::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StatsElem* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.StatsElem"; - } - protected: - explicit StatsElem(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNameFieldNumber = 1, - kExprFieldNumber = 2, - }; - // string name = 1 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // .pg_query.Node expr = 2 [json_name = "expr"]; - bool has_expr() const; - private: - bool _internal_has_expr() const; - public: - void clear_expr(); - const ::pg_query::Node& expr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_expr(); - ::pg_query::Node* mutable_expr(); - void set_allocated_expr(::pg_query::Node* expr); - private: - const ::pg_query::Node& _internal_expr() const; - ::pg_query::Node* _internal_mutable_expr(); - public: - void unsafe_arena_set_allocated_expr( - ::pg_query::Node* expr); - ::pg_query::Node* unsafe_arena_release_expr(); - - // @@protoc_insertion_point(class_scope:pg_query.StatsElem) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::pg_query::Node* expr_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class Constraint final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.Constraint) */ { - public: - inline Constraint() : Constraint(nullptr) {} - ~Constraint() override; - explicit PROTOBUF_CONSTEXPR Constraint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Constraint(const Constraint& from); - Constraint(Constraint&& from) noexcept - : Constraint() { - *this = ::std::move(from); - } - - inline Constraint& operator=(const Constraint& from) { - CopyFrom(from); - return *this; - } - inline Constraint& operator=(Constraint&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Constraint& default_instance() { - return *internal_default_instance(); - } - static inline const Constraint* internal_default_instance() { - return reinterpret_cast( - &_Constraint_default_instance_); - } - static constexpr int kIndexInFileMessages = - 205; - - friend void swap(Constraint& a, Constraint& b) { - a.Swap(&b); - } - inline void Swap(Constraint* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Constraint* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Constraint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Constraint& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Constraint& from) { - Constraint::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Constraint* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.Constraint"; - } - protected: - explicit Constraint(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kKeysFieldNumber = 11, - kIncludingFieldNumber = 12, - kExclusionsFieldNumber = 13, - kOptionsFieldNumber = 14, - kFkAttrsFieldNumber = 21, - kPkAttrsFieldNumber = 22, - kFkDelSetColsFieldNumber = 26, - kOldConpfeqopFieldNumber = 27, - kConnameFieldNumber = 2, - kCookedExprFieldNumber = 8, - kGeneratedWhenFieldNumber = 9, - kIndexnameFieldNumber = 15, - kIndexspaceFieldNumber = 16, - kAccessMethodFieldNumber = 18, - kFkMatchtypeFieldNumber = 23, - kFkUpdActionFieldNumber = 24, - kFkDelActionFieldNumber = 25, - kRawExprFieldNumber = 7, - kWhereClauseFieldNumber = 19, - kPktableFieldNumber = 20, - kContypeFieldNumber = 1, - kLocationFieldNumber = 5, - kDeferrableFieldNumber = 3, - kInitdeferredFieldNumber = 4, - kIsNoInheritFieldNumber = 6, - kNullsNotDistinctFieldNumber = 10, - kResetDefaultTblspcFieldNumber = 17, - kSkipValidationFieldNumber = 29, - kInitiallyValidFieldNumber = 30, - kOldPktableOidFieldNumber = 28, - }; - // repeated .pg_query.Node keys = 11 [json_name = "keys"]; - int keys_size() const; - private: - int _internal_keys_size() const; - public: - void clear_keys(); - ::pg_query::Node* mutable_keys(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_keys(); - private: - const ::pg_query::Node& _internal_keys(int index) const; - ::pg_query::Node* _internal_add_keys(); - public: - const ::pg_query::Node& keys(int index) const; - ::pg_query::Node* add_keys(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - keys() const; - - // repeated .pg_query.Node including = 12 [json_name = "including"]; - int including_size() const; - private: - int _internal_including_size() const; - public: - void clear_including(); - ::pg_query::Node* mutable_including(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_including(); - private: - const ::pg_query::Node& _internal_including(int index) const; - ::pg_query::Node* _internal_add_including(); - public: - const ::pg_query::Node& including(int index) const; - ::pg_query::Node* add_including(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - including() const; - - // repeated .pg_query.Node exclusions = 13 [json_name = "exclusions"]; - int exclusions_size() const; - private: - int _internal_exclusions_size() const; - public: - void clear_exclusions(); - ::pg_query::Node* mutable_exclusions(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_exclusions(); - private: - const ::pg_query::Node& _internal_exclusions(int index) const; - ::pg_query::Node* _internal_add_exclusions(); - public: - const ::pg_query::Node& exclusions(int index) const; - ::pg_query::Node* add_exclusions(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - exclusions() const; - - // repeated .pg_query.Node options = 14 [json_name = "options"]; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - ::pg_query::Node* mutable_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_options(); - private: - const ::pg_query::Node& _internal_options(int index) const; - ::pg_query::Node* _internal_add_options(); - public: - const ::pg_query::Node& options(int index) const; - ::pg_query::Node* add_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - options() const; - - // repeated .pg_query.Node fk_attrs = 21 [json_name = "fk_attrs"]; - int fk_attrs_size() const; - private: - int _internal_fk_attrs_size() const; - public: - void clear_fk_attrs(); - ::pg_query::Node* mutable_fk_attrs(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_fk_attrs(); - private: - const ::pg_query::Node& _internal_fk_attrs(int index) const; - ::pg_query::Node* _internal_add_fk_attrs(); - public: - const ::pg_query::Node& fk_attrs(int index) const; - ::pg_query::Node* add_fk_attrs(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - fk_attrs() const; - - // repeated .pg_query.Node pk_attrs = 22 [json_name = "pk_attrs"]; - int pk_attrs_size() const; - private: - int _internal_pk_attrs_size() const; - public: - void clear_pk_attrs(); - ::pg_query::Node* mutable_pk_attrs(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_pk_attrs(); - private: - const ::pg_query::Node& _internal_pk_attrs(int index) const; - ::pg_query::Node* _internal_add_pk_attrs(); - public: - const ::pg_query::Node& pk_attrs(int index) const; - ::pg_query::Node* add_pk_attrs(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - pk_attrs() const; - - // repeated .pg_query.Node fk_del_set_cols = 26 [json_name = "fk_del_set_cols"]; - int fk_del_set_cols_size() const; - private: - int _internal_fk_del_set_cols_size() const; - public: - void clear_fk_del_set_cols(); - ::pg_query::Node* mutable_fk_del_set_cols(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_fk_del_set_cols(); - private: - const ::pg_query::Node& _internal_fk_del_set_cols(int index) const; - ::pg_query::Node* _internal_add_fk_del_set_cols(); - public: - const ::pg_query::Node& fk_del_set_cols(int index) const; - ::pg_query::Node* add_fk_del_set_cols(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - fk_del_set_cols() const; - - // repeated .pg_query.Node old_conpfeqop = 27 [json_name = "old_conpfeqop"]; - int old_conpfeqop_size() const; - private: - int _internal_old_conpfeqop_size() const; - public: - void clear_old_conpfeqop(); - ::pg_query::Node* mutable_old_conpfeqop(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_old_conpfeqop(); - private: - const ::pg_query::Node& _internal_old_conpfeqop(int index) const; - ::pg_query::Node* _internal_add_old_conpfeqop(); - public: - const ::pg_query::Node& old_conpfeqop(int index) const; - ::pg_query::Node* add_old_conpfeqop(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - old_conpfeqop() const; - - // string conname = 2 [json_name = "conname"]; - void clear_conname(); - const std::string& conname() const; - template - void set_conname(ArgT0&& arg0, ArgT... args); - std::string* mutable_conname(); - PROTOBUF_NODISCARD std::string* release_conname(); - void set_allocated_conname(std::string* conname); - private: - const std::string& _internal_conname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_conname(const std::string& value); - std::string* _internal_mutable_conname(); - public: - - // string cooked_expr = 8 [json_name = "cooked_expr"]; - void clear_cooked_expr(); - const std::string& cooked_expr() const; - template - void set_cooked_expr(ArgT0&& arg0, ArgT... args); - std::string* mutable_cooked_expr(); - PROTOBUF_NODISCARD std::string* release_cooked_expr(); - void set_allocated_cooked_expr(std::string* cooked_expr); - private: - const std::string& _internal_cooked_expr() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_cooked_expr(const std::string& value); - std::string* _internal_mutable_cooked_expr(); - public: - - // string generated_when = 9 [json_name = "generated_when"]; - void clear_generated_when(); - const std::string& generated_when() const; - template - void set_generated_when(ArgT0&& arg0, ArgT... args); - std::string* mutable_generated_when(); - PROTOBUF_NODISCARD std::string* release_generated_when(); - void set_allocated_generated_when(std::string* generated_when); - private: - const std::string& _internal_generated_when() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_generated_when(const std::string& value); - std::string* _internal_mutable_generated_when(); - public: - - // string indexname = 15 [json_name = "indexname"]; - void clear_indexname(); - const std::string& indexname() const; - template - void set_indexname(ArgT0&& arg0, ArgT... args); - std::string* mutable_indexname(); - PROTOBUF_NODISCARD std::string* release_indexname(); - void set_allocated_indexname(std::string* indexname); - private: - const std::string& _internal_indexname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_indexname(const std::string& value); - std::string* _internal_mutable_indexname(); - public: - - // string indexspace = 16 [json_name = "indexspace"]; - void clear_indexspace(); - const std::string& indexspace() const; - template - void set_indexspace(ArgT0&& arg0, ArgT... args); - std::string* mutable_indexspace(); - PROTOBUF_NODISCARD std::string* release_indexspace(); - void set_allocated_indexspace(std::string* indexspace); - private: - const std::string& _internal_indexspace() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_indexspace(const std::string& value); - std::string* _internal_mutable_indexspace(); - public: - - // string access_method = 18 [json_name = "access_method"]; - void clear_access_method(); - const std::string& access_method() const; - template - void set_access_method(ArgT0&& arg0, ArgT... args); - std::string* mutable_access_method(); - PROTOBUF_NODISCARD std::string* release_access_method(); - void set_allocated_access_method(std::string* access_method); - private: - const std::string& _internal_access_method() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_access_method(const std::string& value); - std::string* _internal_mutable_access_method(); - public: - - // string fk_matchtype = 23 [json_name = "fk_matchtype"]; - void clear_fk_matchtype(); - const std::string& fk_matchtype() const; - template - void set_fk_matchtype(ArgT0&& arg0, ArgT... args); - std::string* mutable_fk_matchtype(); - PROTOBUF_NODISCARD std::string* release_fk_matchtype(); - void set_allocated_fk_matchtype(std::string* fk_matchtype); - private: - const std::string& _internal_fk_matchtype() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_fk_matchtype(const std::string& value); - std::string* _internal_mutable_fk_matchtype(); - public: - - // string fk_upd_action = 24 [json_name = "fk_upd_action"]; - void clear_fk_upd_action(); - const std::string& fk_upd_action() const; - template - void set_fk_upd_action(ArgT0&& arg0, ArgT... args); - std::string* mutable_fk_upd_action(); - PROTOBUF_NODISCARD std::string* release_fk_upd_action(); - void set_allocated_fk_upd_action(std::string* fk_upd_action); - private: - const std::string& _internal_fk_upd_action() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_fk_upd_action(const std::string& value); - std::string* _internal_mutable_fk_upd_action(); - public: - - // string fk_del_action = 25 [json_name = "fk_del_action"]; - void clear_fk_del_action(); - const std::string& fk_del_action() const; - template - void set_fk_del_action(ArgT0&& arg0, ArgT... args); - std::string* mutable_fk_del_action(); - PROTOBUF_NODISCARD std::string* release_fk_del_action(); - void set_allocated_fk_del_action(std::string* fk_del_action); - private: - const std::string& _internal_fk_del_action() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_fk_del_action(const std::string& value); - std::string* _internal_mutable_fk_del_action(); - public: - - // .pg_query.Node raw_expr = 7 [json_name = "raw_expr"]; - bool has_raw_expr() const; - private: - bool _internal_has_raw_expr() const; - public: - void clear_raw_expr(); - const ::pg_query::Node& raw_expr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_raw_expr(); - ::pg_query::Node* mutable_raw_expr(); - void set_allocated_raw_expr(::pg_query::Node* raw_expr); - private: - const ::pg_query::Node& _internal_raw_expr() const; - ::pg_query::Node* _internal_mutable_raw_expr(); - public: - void unsafe_arena_set_allocated_raw_expr( - ::pg_query::Node* raw_expr); - ::pg_query::Node* unsafe_arena_release_raw_expr(); - - // .pg_query.Node where_clause = 19 [json_name = "where_clause"]; - bool has_where_clause() const; - private: - bool _internal_has_where_clause() const; - public: - void clear_where_clause(); - const ::pg_query::Node& where_clause() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_where_clause(); - ::pg_query::Node* mutable_where_clause(); - void set_allocated_where_clause(::pg_query::Node* where_clause); - private: - const ::pg_query::Node& _internal_where_clause() const; - ::pg_query::Node* _internal_mutable_where_clause(); - public: - void unsafe_arena_set_allocated_where_clause( - ::pg_query::Node* where_clause); - ::pg_query::Node* unsafe_arena_release_where_clause(); - - // .pg_query.RangeVar pktable = 20 [json_name = "pktable"]; - bool has_pktable() const; - private: - bool _internal_has_pktable() const; - public: - void clear_pktable(); - const ::pg_query::RangeVar& pktable() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_pktable(); - ::pg_query::RangeVar* mutable_pktable(); - void set_allocated_pktable(::pg_query::RangeVar* pktable); - private: - const ::pg_query::RangeVar& _internal_pktable() const; - ::pg_query::RangeVar* _internal_mutable_pktable(); - public: - void unsafe_arena_set_allocated_pktable( - ::pg_query::RangeVar* pktable); - ::pg_query::RangeVar* unsafe_arena_release_pktable(); - - // .pg_query.ConstrType contype = 1 [json_name = "contype"]; - void clear_contype(); - ::pg_query::ConstrType contype() const; - void set_contype(::pg_query::ConstrType value); - private: - ::pg_query::ConstrType _internal_contype() const; - void _internal_set_contype(::pg_query::ConstrType value); - public: - - // int32 location = 5 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // bool deferrable = 3 [json_name = "deferrable"]; - void clear_deferrable(); - bool deferrable() const; - void set_deferrable(bool value); - private: - bool _internal_deferrable() const; - void _internal_set_deferrable(bool value); - public: - - // bool initdeferred = 4 [json_name = "initdeferred"]; - void clear_initdeferred(); - bool initdeferred() const; - void set_initdeferred(bool value); - private: - bool _internal_initdeferred() const; - void _internal_set_initdeferred(bool value); - public: - - // bool is_no_inherit = 6 [json_name = "is_no_inherit"]; - void clear_is_no_inherit(); - bool is_no_inherit() const; - void set_is_no_inherit(bool value); - private: - bool _internal_is_no_inherit() const; - void _internal_set_is_no_inherit(bool value); - public: - - // bool nulls_not_distinct = 10 [json_name = "nulls_not_distinct"]; - void clear_nulls_not_distinct(); - bool nulls_not_distinct() const; - void set_nulls_not_distinct(bool value); - private: - bool _internal_nulls_not_distinct() const; - void _internal_set_nulls_not_distinct(bool value); - public: - - // bool reset_default_tblspc = 17 [json_name = "reset_default_tblspc"]; - void clear_reset_default_tblspc(); - bool reset_default_tblspc() const; - void set_reset_default_tblspc(bool value); - private: - bool _internal_reset_default_tblspc() const; - void _internal_set_reset_default_tblspc(bool value); - public: - - // bool skip_validation = 29 [json_name = "skip_validation"]; - void clear_skip_validation(); - bool skip_validation() const; - void set_skip_validation(bool value); - private: - bool _internal_skip_validation() const; - void _internal_set_skip_validation(bool value); - public: - - // bool initially_valid = 30 [json_name = "initially_valid"]; - void clear_initially_valid(); - bool initially_valid() const; - void set_initially_valid(bool value); - private: - bool _internal_initially_valid() const; - void _internal_set_initially_valid(bool value); - public: - - // uint32 old_pktable_oid = 28 [json_name = "old_pktable_oid"]; - void clear_old_pktable_oid(); - uint32_t old_pktable_oid() const; - void set_old_pktable_oid(uint32_t value); - private: - uint32_t _internal_old_pktable_oid() const; - void _internal_set_old_pktable_oid(uint32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.Constraint) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > keys_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > including_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > exclusions_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > options_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > fk_attrs_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > pk_attrs_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > fk_del_set_cols_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > old_conpfeqop_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr conname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cooked_expr_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr generated_when_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr indexname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr indexspace_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr access_method_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fk_matchtype_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fk_upd_action_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fk_del_action_; - ::pg_query::Node* raw_expr_; - ::pg_query::Node* where_clause_; - ::pg_query::RangeVar* pktable_; - int contype_; - int32_t location_; - bool deferrable_; - bool initdeferred_; - bool is_no_inherit_; - bool nulls_not_distinct_; - bool reset_default_tblspc_; - bool skip_validation_; - bool initially_valid_; - uint32_t old_pktable_oid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class DefElem final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.DefElem) */ { - public: - inline DefElem() : DefElem(nullptr) {} - ~DefElem() override; - explicit PROTOBUF_CONSTEXPR DefElem(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - DefElem(const DefElem& from); - DefElem(DefElem&& from) noexcept - : DefElem() { - *this = ::std::move(from); - } - - inline DefElem& operator=(const DefElem& from) { - CopyFrom(from); - return *this; - } - inline DefElem& operator=(DefElem&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DefElem& default_instance() { - return *internal_default_instance(); - } - static inline const DefElem* internal_default_instance() { - return reinterpret_cast( - &_DefElem_default_instance_); - } - static constexpr int kIndexInFileMessages = - 206; - - friend void swap(DefElem& a, DefElem& b) { - a.Swap(&b); - } - inline void Swap(DefElem* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DefElem* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DefElem* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DefElem& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DefElem& from) { - DefElem::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DefElem* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.DefElem"; - } - protected: - explicit DefElem(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDefnamespaceFieldNumber = 1, - kDefnameFieldNumber = 2, - kArgFieldNumber = 3, - kDefactionFieldNumber = 4, - kLocationFieldNumber = 5, - }; - // string defnamespace = 1 [json_name = "defnamespace"]; - void clear_defnamespace(); - const std::string& defnamespace() const; - template - void set_defnamespace(ArgT0&& arg0, ArgT... args); - std::string* mutable_defnamespace(); - PROTOBUF_NODISCARD std::string* release_defnamespace(); - void set_allocated_defnamespace(std::string* defnamespace); - private: - const std::string& _internal_defnamespace() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_defnamespace(const std::string& value); - std::string* _internal_mutable_defnamespace(); - public: - - // string defname = 2 [json_name = "defname"]; - void clear_defname(); - const std::string& defname() const; - template - void set_defname(ArgT0&& arg0, ArgT... args); - std::string* mutable_defname(); - PROTOBUF_NODISCARD std::string* release_defname(); - void set_allocated_defname(std::string* defname); - private: - const std::string& _internal_defname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_defname(const std::string& value); - std::string* _internal_mutable_defname(); - public: - - // .pg_query.Node arg = 3 [json_name = "arg"]; - bool has_arg() const; - private: - bool _internal_has_arg() const; - public: - void clear_arg(); - const ::pg_query::Node& arg() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_arg(); - ::pg_query::Node* mutable_arg(); - void set_allocated_arg(::pg_query::Node* arg); - private: - const ::pg_query::Node& _internal_arg() const; - ::pg_query::Node* _internal_mutable_arg(); - public: - void unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg); - ::pg_query::Node* unsafe_arena_release_arg(); - - // .pg_query.DefElemAction defaction = 4 [json_name = "defaction"]; - void clear_defaction(); - ::pg_query::DefElemAction defaction() const; - void set_defaction(::pg_query::DefElemAction value); - private: - ::pg_query::DefElemAction _internal_defaction() const; - void _internal_set_defaction(::pg_query::DefElemAction value); - public: - - // int32 location = 5 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.DefElem) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr defnamespace_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr defname_; - ::pg_query::Node* arg_; - int defaction_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class RangeTblEntry final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.RangeTblEntry) */ { - public: - inline RangeTblEntry() : RangeTblEntry(nullptr) {} - ~RangeTblEntry() override; - explicit PROTOBUF_CONSTEXPR RangeTblEntry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - RangeTblEntry(const RangeTblEntry& from); - RangeTblEntry(RangeTblEntry&& from) noexcept - : RangeTblEntry() { - *this = ::std::move(from); - } - - inline RangeTblEntry& operator=(const RangeTblEntry& from) { - CopyFrom(from); - return *this; - } - inline RangeTblEntry& operator=(RangeTblEntry&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RangeTblEntry& default_instance() { - return *internal_default_instance(); - } - static inline const RangeTblEntry* internal_default_instance() { - return reinterpret_cast( - &_RangeTblEntry_default_instance_); - } - static constexpr int kIndexInFileMessages = - 207; - - friend void swap(RangeTblEntry& a, RangeTblEntry& b) { - a.Swap(&b); - } - inline void Swap(RangeTblEntry* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RangeTblEntry* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RangeTblEntry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RangeTblEntry& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RangeTblEntry& from) { - RangeTblEntry::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RangeTblEntry* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.RangeTblEntry"; - } - protected: - explicit RangeTblEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kJoinaliasvarsFieldNumber = 10, - kJoinleftcolsFieldNumber = 11, - kJoinrightcolsFieldNumber = 12, - kFunctionsFieldNumber = 14, - kValuesListsFieldNumber = 17, - kColtypesFieldNumber = 21, - kColtypmodsFieldNumber = 22, - kColcollationsFieldNumber = 23, - kSelectedColsFieldNumber = 33, - kInsertedColsFieldNumber = 34, - kUpdatedColsFieldNumber = 35, - kExtraUpdatedColsFieldNumber = 36, - kSecurityQualsFieldNumber = 37, - kRelkindFieldNumber = 3, - kCtenameFieldNumber = 18, - kEnrnameFieldNumber = 24, - kTablesampleFieldNumber = 5, - kSubqueryFieldNumber = 6, - kJoinUsingAliasFieldNumber = 13, - kTablefuncFieldNumber = 16, - kAliasFieldNumber = 26, - kErefFieldNumber = 27, - kRtekindFieldNumber = 1, - kRelidFieldNumber = 2, - kRellockmodeFieldNumber = 4, - kJointypeFieldNumber = 8, - kJoinmergedcolsFieldNumber = 9, - kSecurityBarrierFieldNumber = 7, - kFuncordinalityFieldNumber = 15, - kSelfReferenceFieldNumber = 20, - kLateralFieldNumber = 28, - kEnrtuplesFieldNumber = 25, - kCtelevelsupFieldNumber = 19, - kInhFieldNumber = 29, - kInFromClFieldNumber = 30, - kRequiredPermsFieldNumber = 31, - kCheckAsUserFieldNumber = 32, - }; - // repeated .pg_query.Node joinaliasvars = 10 [json_name = "joinaliasvars"]; - int joinaliasvars_size() const; - private: - int _internal_joinaliasvars_size() const; - public: - void clear_joinaliasvars(); - ::pg_query::Node* mutable_joinaliasvars(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_joinaliasvars(); - private: - const ::pg_query::Node& _internal_joinaliasvars(int index) const; - ::pg_query::Node* _internal_add_joinaliasvars(); - public: - const ::pg_query::Node& joinaliasvars(int index) const; - ::pg_query::Node* add_joinaliasvars(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - joinaliasvars() const; - - // repeated .pg_query.Node joinleftcols = 11 [json_name = "joinleftcols"]; - int joinleftcols_size() const; - private: - int _internal_joinleftcols_size() const; - public: - void clear_joinleftcols(); - ::pg_query::Node* mutable_joinleftcols(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_joinleftcols(); - private: - const ::pg_query::Node& _internal_joinleftcols(int index) const; - ::pg_query::Node* _internal_add_joinleftcols(); - public: - const ::pg_query::Node& joinleftcols(int index) const; - ::pg_query::Node* add_joinleftcols(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - joinleftcols() const; - - // repeated .pg_query.Node joinrightcols = 12 [json_name = "joinrightcols"]; - int joinrightcols_size() const; - private: - int _internal_joinrightcols_size() const; - public: - void clear_joinrightcols(); - ::pg_query::Node* mutable_joinrightcols(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_joinrightcols(); - private: - const ::pg_query::Node& _internal_joinrightcols(int index) const; - ::pg_query::Node* _internal_add_joinrightcols(); - public: - const ::pg_query::Node& joinrightcols(int index) const; - ::pg_query::Node* add_joinrightcols(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - joinrightcols() const; - - // repeated .pg_query.Node functions = 14 [json_name = "functions"]; - int functions_size() const; - private: - int _internal_functions_size() const; - public: - void clear_functions(); - ::pg_query::Node* mutable_functions(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_functions(); - private: - const ::pg_query::Node& _internal_functions(int index) const; - ::pg_query::Node* _internal_add_functions(); - public: - const ::pg_query::Node& functions(int index) const; - ::pg_query::Node* add_functions(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - functions() const; - - // repeated .pg_query.Node values_lists = 17 [json_name = "values_lists"]; - int values_lists_size() const; - private: - int _internal_values_lists_size() const; - public: - void clear_values_lists(); - ::pg_query::Node* mutable_values_lists(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_values_lists(); - private: - const ::pg_query::Node& _internal_values_lists(int index) const; - ::pg_query::Node* _internal_add_values_lists(); - public: - const ::pg_query::Node& values_lists(int index) const; - ::pg_query::Node* add_values_lists(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - values_lists() const; - - // repeated .pg_query.Node coltypes = 21 [json_name = "coltypes"]; - int coltypes_size() const; - private: - int _internal_coltypes_size() const; - public: - void clear_coltypes(); - ::pg_query::Node* mutable_coltypes(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_coltypes(); - private: - const ::pg_query::Node& _internal_coltypes(int index) const; - ::pg_query::Node* _internal_add_coltypes(); - public: - const ::pg_query::Node& coltypes(int index) const; - ::pg_query::Node* add_coltypes(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - coltypes() const; - - // repeated .pg_query.Node coltypmods = 22 [json_name = "coltypmods"]; - int coltypmods_size() const; - private: - int _internal_coltypmods_size() const; - public: - void clear_coltypmods(); - ::pg_query::Node* mutable_coltypmods(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_coltypmods(); - private: - const ::pg_query::Node& _internal_coltypmods(int index) const; - ::pg_query::Node* _internal_add_coltypmods(); - public: - const ::pg_query::Node& coltypmods(int index) const; - ::pg_query::Node* add_coltypmods(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - coltypmods() const; - - // repeated .pg_query.Node colcollations = 23 [json_name = "colcollations"]; - int colcollations_size() const; - private: - int _internal_colcollations_size() const; - public: - void clear_colcollations(); - ::pg_query::Node* mutable_colcollations(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_colcollations(); - private: - const ::pg_query::Node& _internal_colcollations(int index) const; - ::pg_query::Node* _internal_add_colcollations(); - public: - const ::pg_query::Node& colcollations(int index) const; - ::pg_query::Node* add_colcollations(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - colcollations() const; - - // repeated uint64 selected_cols = 33 [json_name = "selectedCols"]; - int selected_cols_size() const; - private: - int _internal_selected_cols_size() const; - public: - void clear_selected_cols(); - private: - uint64_t _internal_selected_cols(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& - _internal_selected_cols() const; - void _internal_add_selected_cols(uint64_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* - _internal_mutable_selected_cols(); - public: - uint64_t selected_cols(int index) const; - void set_selected_cols(int index, uint64_t value); - void add_selected_cols(uint64_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& - selected_cols() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* - mutable_selected_cols(); - - // repeated uint64 inserted_cols = 34 [json_name = "insertedCols"]; - int inserted_cols_size() const; - private: - int _internal_inserted_cols_size() const; - public: - void clear_inserted_cols(); - private: - uint64_t _internal_inserted_cols(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& - _internal_inserted_cols() const; - void _internal_add_inserted_cols(uint64_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* - _internal_mutable_inserted_cols(); - public: - uint64_t inserted_cols(int index) const; - void set_inserted_cols(int index, uint64_t value); - void add_inserted_cols(uint64_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& - inserted_cols() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* - mutable_inserted_cols(); - - // repeated uint64 updated_cols = 35 [json_name = "updatedCols"]; - int updated_cols_size() const; - private: - int _internal_updated_cols_size() const; - public: - void clear_updated_cols(); - private: - uint64_t _internal_updated_cols(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& - _internal_updated_cols() const; - void _internal_add_updated_cols(uint64_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* - _internal_mutable_updated_cols(); - public: - uint64_t updated_cols(int index) const; - void set_updated_cols(int index, uint64_t value); - void add_updated_cols(uint64_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& - updated_cols() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* - mutable_updated_cols(); - - // repeated uint64 extra_updated_cols = 36 [json_name = "extraUpdatedCols"]; - int extra_updated_cols_size() const; - private: - int _internal_extra_updated_cols_size() const; - public: - void clear_extra_updated_cols(); - private: - uint64_t _internal_extra_updated_cols(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& - _internal_extra_updated_cols() const; - void _internal_add_extra_updated_cols(uint64_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* - _internal_mutable_extra_updated_cols(); - public: - uint64_t extra_updated_cols(int index) const; - void set_extra_updated_cols(int index, uint64_t value); - void add_extra_updated_cols(uint64_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& - extra_updated_cols() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* - mutable_extra_updated_cols(); - - // repeated .pg_query.Node security_quals = 37 [json_name = "securityQuals"]; - int security_quals_size() const; - private: - int _internal_security_quals_size() const; - public: - void clear_security_quals(); - ::pg_query::Node* mutable_security_quals(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_security_quals(); - private: - const ::pg_query::Node& _internal_security_quals(int index) const; - ::pg_query::Node* _internal_add_security_quals(); - public: - const ::pg_query::Node& security_quals(int index) const; - ::pg_query::Node* add_security_quals(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - security_quals() const; - - // string relkind = 3 [json_name = "relkind"]; - void clear_relkind(); - const std::string& relkind() const; - template - void set_relkind(ArgT0&& arg0, ArgT... args); - std::string* mutable_relkind(); - PROTOBUF_NODISCARD std::string* release_relkind(); - void set_allocated_relkind(std::string* relkind); - private: - const std::string& _internal_relkind() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_relkind(const std::string& value); - std::string* _internal_mutable_relkind(); - public: - - // string ctename = 18 [json_name = "ctename"]; - void clear_ctename(); - const std::string& ctename() const; - template - void set_ctename(ArgT0&& arg0, ArgT... args); - std::string* mutable_ctename(); - PROTOBUF_NODISCARD std::string* release_ctename(); - void set_allocated_ctename(std::string* ctename); - private: - const std::string& _internal_ctename() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_ctename(const std::string& value); - std::string* _internal_mutable_ctename(); - public: - - // string enrname = 24 [json_name = "enrname"]; - void clear_enrname(); - const std::string& enrname() const; - template - void set_enrname(ArgT0&& arg0, ArgT... args); - std::string* mutable_enrname(); - PROTOBUF_NODISCARD std::string* release_enrname(); - void set_allocated_enrname(std::string* enrname); - private: - const std::string& _internal_enrname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_enrname(const std::string& value); - std::string* _internal_mutable_enrname(); - public: - - // .pg_query.TableSampleClause tablesample = 5 [json_name = "tablesample"]; - bool has_tablesample() const; - private: - bool _internal_has_tablesample() const; - public: - void clear_tablesample(); - const ::pg_query::TableSampleClause& tablesample() const; - PROTOBUF_NODISCARD ::pg_query::TableSampleClause* release_tablesample(); - ::pg_query::TableSampleClause* mutable_tablesample(); - void set_allocated_tablesample(::pg_query::TableSampleClause* tablesample); - private: - const ::pg_query::TableSampleClause& _internal_tablesample() const; - ::pg_query::TableSampleClause* _internal_mutable_tablesample(); - public: - void unsafe_arena_set_allocated_tablesample( - ::pg_query::TableSampleClause* tablesample); - ::pg_query::TableSampleClause* unsafe_arena_release_tablesample(); - - // .pg_query.Query subquery = 6 [json_name = "subquery"]; - bool has_subquery() const; - private: - bool _internal_has_subquery() const; - public: - void clear_subquery(); - const ::pg_query::Query& subquery() const; - PROTOBUF_NODISCARD ::pg_query::Query* release_subquery(); - ::pg_query::Query* mutable_subquery(); - void set_allocated_subquery(::pg_query::Query* subquery); - private: - const ::pg_query::Query& _internal_subquery() const; - ::pg_query::Query* _internal_mutable_subquery(); - public: - void unsafe_arena_set_allocated_subquery( - ::pg_query::Query* subquery); - ::pg_query::Query* unsafe_arena_release_subquery(); - - // .pg_query.Alias join_using_alias = 13 [json_name = "join_using_alias"]; - bool has_join_using_alias() const; - private: - bool _internal_has_join_using_alias() const; - public: - void clear_join_using_alias(); - const ::pg_query::Alias& join_using_alias() const; - PROTOBUF_NODISCARD ::pg_query::Alias* release_join_using_alias(); - ::pg_query::Alias* mutable_join_using_alias(); - void set_allocated_join_using_alias(::pg_query::Alias* join_using_alias); - private: - const ::pg_query::Alias& _internal_join_using_alias() const; - ::pg_query::Alias* _internal_mutable_join_using_alias(); - public: - void unsafe_arena_set_allocated_join_using_alias( - ::pg_query::Alias* join_using_alias); - ::pg_query::Alias* unsafe_arena_release_join_using_alias(); - - // .pg_query.TableFunc tablefunc = 16 [json_name = "tablefunc"]; - bool has_tablefunc() const; - private: - bool _internal_has_tablefunc() const; - public: - void clear_tablefunc(); - const ::pg_query::TableFunc& tablefunc() const; - PROTOBUF_NODISCARD ::pg_query::TableFunc* release_tablefunc(); - ::pg_query::TableFunc* mutable_tablefunc(); - void set_allocated_tablefunc(::pg_query::TableFunc* tablefunc); - private: - const ::pg_query::TableFunc& _internal_tablefunc() const; - ::pg_query::TableFunc* _internal_mutable_tablefunc(); - public: - void unsafe_arena_set_allocated_tablefunc( - ::pg_query::TableFunc* tablefunc); - ::pg_query::TableFunc* unsafe_arena_release_tablefunc(); - - // .pg_query.Alias alias = 26 [json_name = "alias"]; - bool has_alias() const; - private: - bool _internal_has_alias() const; - public: - void clear_alias(); - const ::pg_query::Alias& alias() const; - PROTOBUF_NODISCARD ::pg_query::Alias* release_alias(); - ::pg_query::Alias* mutable_alias(); - void set_allocated_alias(::pg_query::Alias* alias); - private: - const ::pg_query::Alias& _internal_alias() const; - ::pg_query::Alias* _internal_mutable_alias(); - public: - void unsafe_arena_set_allocated_alias( - ::pg_query::Alias* alias); - ::pg_query::Alias* unsafe_arena_release_alias(); - - // .pg_query.Alias eref = 27 [json_name = "eref"]; - bool has_eref() const; - private: - bool _internal_has_eref() const; - public: - void clear_eref(); - const ::pg_query::Alias& eref() const; - PROTOBUF_NODISCARD ::pg_query::Alias* release_eref(); - ::pg_query::Alias* mutable_eref(); - void set_allocated_eref(::pg_query::Alias* eref); - private: - const ::pg_query::Alias& _internal_eref() const; - ::pg_query::Alias* _internal_mutable_eref(); - public: - void unsafe_arena_set_allocated_eref( - ::pg_query::Alias* eref); - ::pg_query::Alias* unsafe_arena_release_eref(); - - // .pg_query.RTEKind rtekind = 1 [json_name = "rtekind"]; - void clear_rtekind(); - ::pg_query::RTEKind rtekind() const; - void set_rtekind(::pg_query::RTEKind value); - private: - ::pg_query::RTEKind _internal_rtekind() const; - void _internal_set_rtekind(::pg_query::RTEKind value); - public: - - // uint32 relid = 2 [json_name = "relid"]; - void clear_relid(); - uint32_t relid() const; - void set_relid(uint32_t value); - private: - uint32_t _internal_relid() const; - void _internal_set_relid(uint32_t value); - public: - - // int32 rellockmode = 4 [json_name = "rellockmode"]; - void clear_rellockmode(); - int32_t rellockmode() const; - void set_rellockmode(int32_t value); - private: - int32_t _internal_rellockmode() const; - void _internal_set_rellockmode(int32_t value); - public: - - // .pg_query.JoinType jointype = 8 [json_name = "jointype"]; - void clear_jointype(); - ::pg_query::JoinType jointype() const; - void set_jointype(::pg_query::JoinType value); - private: - ::pg_query::JoinType _internal_jointype() const; - void _internal_set_jointype(::pg_query::JoinType value); - public: - - // int32 joinmergedcols = 9 [json_name = "joinmergedcols"]; - void clear_joinmergedcols(); - int32_t joinmergedcols() const; - void set_joinmergedcols(int32_t value); - private: - int32_t _internal_joinmergedcols() const; - void _internal_set_joinmergedcols(int32_t value); - public: - - // bool security_barrier = 7 [json_name = "security_barrier"]; - void clear_security_barrier(); - bool security_barrier() const; - void set_security_barrier(bool value); - private: - bool _internal_security_barrier() const; - void _internal_set_security_barrier(bool value); - public: - - // bool funcordinality = 15 [json_name = "funcordinality"]; - void clear_funcordinality(); - bool funcordinality() const; - void set_funcordinality(bool value); - private: - bool _internal_funcordinality() const; - void _internal_set_funcordinality(bool value); - public: - - // bool self_reference = 20 [json_name = "self_reference"]; - void clear_self_reference(); - bool self_reference() const; - void set_self_reference(bool value); - private: - bool _internal_self_reference() const; - void _internal_set_self_reference(bool value); - public: - - // bool lateral = 28 [json_name = "lateral"]; - void clear_lateral(); - bool lateral() const; - void set_lateral(bool value); - private: - bool _internal_lateral() const; - void _internal_set_lateral(bool value); - public: - - // double enrtuples = 25 [json_name = "enrtuples"]; - void clear_enrtuples(); - double enrtuples() const; - void set_enrtuples(double value); - private: - double _internal_enrtuples() const; - void _internal_set_enrtuples(double value); - public: - - // uint32 ctelevelsup = 19 [json_name = "ctelevelsup"]; - void clear_ctelevelsup(); - uint32_t ctelevelsup() const; - void set_ctelevelsup(uint32_t value); - private: - uint32_t _internal_ctelevelsup() const; - void _internal_set_ctelevelsup(uint32_t value); - public: - - // bool inh = 29 [json_name = "inh"]; - void clear_inh(); - bool inh() const; - void set_inh(bool value); - private: - bool _internal_inh() const; - void _internal_set_inh(bool value); - public: - - // bool in_from_cl = 30 [json_name = "inFromCl"]; - void clear_in_from_cl(); - bool in_from_cl() const; - void set_in_from_cl(bool value); - private: - bool _internal_in_from_cl() const; - void _internal_set_in_from_cl(bool value); - public: - - // uint32 required_perms = 31 [json_name = "requiredPerms"]; - void clear_required_perms(); - uint32_t required_perms() const; - void set_required_perms(uint32_t value); - private: - uint32_t _internal_required_perms() const; - void _internal_set_required_perms(uint32_t value); - public: - - // uint32 check_as_user = 32 [json_name = "checkAsUser"]; - void clear_check_as_user(); - uint32_t check_as_user() const; - void set_check_as_user(uint32_t value); - private: - uint32_t _internal_check_as_user() const; - void _internal_set_check_as_user(uint32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.RangeTblEntry) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > joinaliasvars_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > joinleftcols_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > joinrightcols_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > functions_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > values_lists_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > coltypes_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > coltypmods_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > colcollations_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t > selected_cols_; - mutable std::atomic _selected_cols_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t > inserted_cols_; - mutable std::atomic _inserted_cols_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t > updated_cols_; - mutable std::atomic _updated_cols_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t > extra_updated_cols_; - mutable std::atomic _extra_updated_cols_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > security_quals_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr relkind_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ctename_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr enrname_; - ::pg_query::TableSampleClause* tablesample_; - ::pg_query::Query* subquery_; - ::pg_query::Alias* join_using_alias_; - ::pg_query::TableFunc* tablefunc_; - ::pg_query::Alias* alias_; - ::pg_query::Alias* eref_; - int rtekind_; - uint32_t relid_; - int32_t rellockmode_; - int jointype_; - int32_t joinmergedcols_; - bool security_barrier_; - bool funcordinality_; - bool self_reference_; - bool lateral_; - double enrtuples_; - uint32_t ctelevelsup_; - bool inh_; - bool in_from_cl_; - uint32_t required_perms_; - uint32_t check_as_user_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class RangeTblFunction final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.RangeTblFunction) */ { - public: - inline RangeTblFunction() : RangeTblFunction(nullptr) {} - ~RangeTblFunction() override; - explicit PROTOBUF_CONSTEXPR RangeTblFunction(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - RangeTblFunction(const RangeTblFunction& from); - RangeTblFunction(RangeTblFunction&& from) noexcept - : RangeTblFunction() { - *this = ::std::move(from); - } - - inline RangeTblFunction& operator=(const RangeTblFunction& from) { - CopyFrom(from); - return *this; - } - inline RangeTblFunction& operator=(RangeTblFunction&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RangeTblFunction& default_instance() { - return *internal_default_instance(); - } - static inline const RangeTblFunction* internal_default_instance() { - return reinterpret_cast( - &_RangeTblFunction_default_instance_); - } - static constexpr int kIndexInFileMessages = - 208; - - friend void swap(RangeTblFunction& a, RangeTblFunction& b) { - a.Swap(&b); - } - inline void Swap(RangeTblFunction* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RangeTblFunction* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RangeTblFunction* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RangeTblFunction& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RangeTblFunction& from) { - RangeTblFunction::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RangeTblFunction* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.RangeTblFunction"; - } - protected: - explicit RangeTblFunction(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFunccolnamesFieldNumber = 3, - kFunccoltypesFieldNumber = 4, - kFunccoltypmodsFieldNumber = 5, - kFunccolcollationsFieldNumber = 6, - kFuncparamsFieldNumber = 7, - kFuncexprFieldNumber = 1, - kFunccolcountFieldNumber = 2, - }; - // repeated .pg_query.Node funccolnames = 3 [json_name = "funccolnames"]; - int funccolnames_size() const; - private: - int _internal_funccolnames_size() const; - public: - void clear_funccolnames(); - ::pg_query::Node* mutable_funccolnames(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_funccolnames(); - private: - const ::pg_query::Node& _internal_funccolnames(int index) const; - ::pg_query::Node* _internal_add_funccolnames(); - public: - const ::pg_query::Node& funccolnames(int index) const; - ::pg_query::Node* add_funccolnames(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - funccolnames() const; - - // repeated .pg_query.Node funccoltypes = 4 [json_name = "funccoltypes"]; - int funccoltypes_size() const; - private: - int _internal_funccoltypes_size() const; - public: - void clear_funccoltypes(); - ::pg_query::Node* mutable_funccoltypes(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_funccoltypes(); - private: - const ::pg_query::Node& _internal_funccoltypes(int index) const; - ::pg_query::Node* _internal_add_funccoltypes(); - public: - const ::pg_query::Node& funccoltypes(int index) const; - ::pg_query::Node* add_funccoltypes(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - funccoltypes() const; - - // repeated .pg_query.Node funccoltypmods = 5 [json_name = "funccoltypmods"]; - int funccoltypmods_size() const; - private: - int _internal_funccoltypmods_size() const; - public: - void clear_funccoltypmods(); - ::pg_query::Node* mutable_funccoltypmods(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_funccoltypmods(); - private: - const ::pg_query::Node& _internal_funccoltypmods(int index) const; - ::pg_query::Node* _internal_add_funccoltypmods(); - public: - const ::pg_query::Node& funccoltypmods(int index) const; - ::pg_query::Node* add_funccoltypmods(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - funccoltypmods() const; - - // repeated .pg_query.Node funccolcollations = 6 [json_name = "funccolcollations"]; - int funccolcollations_size() const; - private: - int _internal_funccolcollations_size() const; - public: - void clear_funccolcollations(); - ::pg_query::Node* mutable_funccolcollations(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_funccolcollations(); - private: - const ::pg_query::Node& _internal_funccolcollations(int index) const; - ::pg_query::Node* _internal_add_funccolcollations(); - public: - const ::pg_query::Node& funccolcollations(int index) const; - ::pg_query::Node* add_funccolcollations(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - funccolcollations() const; - - // repeated uint64 funcparams = 7 [json_name = "funcparams"]; - int funcparams_size() const; - private: - int _internal_funcparams_size() const; - public: - void clear_funcparams(); - private: - uint64_t _internal_funcparams(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& - _internal_funcparams() const; - void _internal_add_funcparams(uint64_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* - _internal_mutable_funcparams(); - public: - uint64_t funcparams(int index) const; - void set_funcparams(int index, uint64_t value); - void add_funcparams(uint64_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& - funcparams() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* - mutable_funcparams(); - - // .pg_query.Node funcexpr = 1 [json_name = "funcexpr"]; - bool has_funcexpr() const; - private: - bool _internal_has_funcexpr() const; - public: - void clear_funcexpr(); - const ::pg_query::Node& funcexpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_funcexpr(); - ::pg_query::Node* mutable_funcexpr(); - void set_allocated_funcexpr(::pg_query::Node* funcexpr); - private: - const ::pg_query::Node& _internal_funcexpr() const; - ::pg_query::Node* _internal_mutable_funcexpr(); - public: - void unsafe_arena_set_allocated_funcexpr( - ::pg_query::Node* funcexpr); - ::pg_query::Node* unsafe_arena_release_funcexpr(); - - // int32 funccolcount = 2 [json_name = "funccolcount"]; - void clear_funccolcount(); - int32_t funccolcount() const; - void set_funccolcount(int32_t value); - private: - int32_t _internal_funccolcount() const; - void _internal_set_funccolcount(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.RangeTblFunction) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > funccolnames_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > funccoltypes_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > funccoltypmods_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > funccolcollations_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t > funcparams_; - mutable std::atomic _funcparams_cached_byte_size_; - ::pg_query::Node* funcexpr_; - int32_t funccolcount_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class TableSampleClause final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.TableSampleClause) */ { - public: - inline TableSampleClause() : TableSampleClause(nullptr) {} - ~TableSampleClause() override; - explicit PROTOBUF_CONSTEXPR TableSampleClause(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - TableSampleClause(const TableSampleClause& from); - TableSampleClause(TableSampleClause&& from) noexcept - : TableSampleClause() { - *this = ::std::move(from); - } - - inline TableSampleClause& operator=(const TableSampleClause& from) { - CopyFrom(from); - return *this; - } - inline TableSampleClause& operator=(TableSampleClause&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TableSampleClause& default_instance() { - return *internal_default_instance(); - } - static inline const TableSampleClause* internal_default_instance() { - return reinterpret_cast( - &_TableSampleClause_default_instance_); - } - static constexpr int kIndexInFileMessages = - 209; - - friend void swap(TableSampleClause& a, TableSampleClause& b) { - a.Swap(&b); - } - inline void Swap(TableSampleClause* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TableSampleClause* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TableSampleClause* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const TableSampleClause& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const TableSampleClause& from) { - TableSampleClause::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TableSampleClause* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.TableSampleClause"; - } - protected: - explicit TableSampleClause(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kArgsFieldNumber = 2, - kRepeatableFieldNumber = 3, - kTsmhandlerFieldNumber = 1, - }; - // repeated .pg_query.Node args = 2 [json_name = "args"]; - int args_size() const; - private: - int _internal_args_size() const; - public: - void clear_args(); - ::pg_query::Node* mutable_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_args(); - private: - const ::pg_query::Node& _internal_args(int index) const; - ::pg_query::Node* _internal_add_args(); - public: - const ::pg_query::Node& args(int index) const; - ::pg_query::Node* add_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - args() const; - - // .pg_query.Node repeatable = 3 [json_name = "repeatable"]; - bool has_repeatable() const; - private: - bool _internal_has_repeatable() const; - public: - void clear_repeatable(); - const ::pg_query::Node& repeatable() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_repeatable(); - ::pg_query::Node* mutable_repeatable(); - void set_allocated_repeatable(::pg_query::Node* repeatable); - private: - const ::pg_query::Node& _internal_repeatable() const; - ::pg_query::Node* _internal_mutable_repeatable(); - public: - void unsafe_arena_set_allocated_repeatable( - ::pg_query::Node* repeatable); - ::pg_query::Node* unsafe_arena_release_repeatable(); - - // uint32 tsmhandler = 1 [json_name = "tsmhandler"]; - void clear_tsmhandler(); - uint32_t tsmhandler() const; - void set_tsmhandler(uint32_t value); - private: - uint32_t _internal_tsmhandler() const; - void _internal_set_tsmhandler(uint32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.TableSampleClause) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > args_; - ::pg_query::Node* repeatable_; - uint32_t tsmhandler_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class WithCheckOption final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.WithCheckOption) */ { - public: - inline WithCheckOption() : WithCheckOption(nullptr) {} - ~WithCheckOption() override; - explicit PROTOBUF_CONSTEXPR WithCheckOption(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - WithCheckOption(const WithCheckOption& from); - WithCheckOption(WithCheckOption&& from) noexcept - : WithCheckOption() { - *this = ::std::move(from); - } - - inline WithCheckOption& operator=(const WithCheckOption& from) { - CopyFrom(from); - return *this; - } - inline WithCheckOption& operator=(WithCheckOption&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const WithCheckOption& default_instance() { - return *internal_default_instance(); - } - static inline const WithCheckOption* internal_default_instance() { - return reinterpret_cast( - &_WithCheckOption_default_instance_); - } - static constexpr int kIndexInFileMessages = - 210; - - friend void swap(WithCheckOption& a, WithCheckOption& b) { - a.Swap(&b); - } - inline void Swap(WithCheckOption* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(WithCheckOption* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - WithCheckOption* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const WithCheckOption& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const WithCheckOption& from) { - WithCheckOption::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(WithCheckOption* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.WithCheckOption"; - } - protected: - explicit WithCheckOption(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRelnameFieldNumber = 2, - kPolnameFieldNumber = 3, - kQualFieldNumber = 4, - kKindFieldNumber = 1, - kCascadedFieldNumber = 5, - }; - // string relname = 2 [json_name = "relname"]; - void clear_relname(); - const std::string& relname() const; - template - void set_relname(ArgT0&& arg0, ArgT... args); - std::string* mutable_relname(); - PROTOBUF_NODISCARD std::string* release_relname(); - void set_allocated_relname(std::string* relname); - private: - const std::string& _internal_relname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_relname(const std::string& value); - std::string* _internal_mutable_relname(); - public: - - // string polname = 3 [json_name = "polname"]; - void clear_polname(); - const std::string& polname() const; - template - void set_polname(ArgT0&& arg0, ArgT... args); - std::string* mutable_polname(); - PROTOBUF_NODISCARD std::string* release_polname(); - void set_allocated_polname(std::string* polname); - private: - const std::string& _internal_polname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_polname(const std::string& value); - std::string* _internal_mutable_polname(); - public: - - // .pg_query.Node qual = 4 [json_name = "qual"]; - bool has_qual() const; - private: - bool _internal_has_qual() const; - public: - void clear_qual(); - const ::pg_query::Node& qual() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_qual(); - ::pg_query::Node* mutable_qual(); - void set_allocated_qual(::pg_query::Node* qual); - private: - const ::pg_query::Node& _internal_qual() const; - ::pg_query::Node* _internal_mutable_qual(); - public: - void unsafe_arena_set_allocated_qual( - ::pg_query::Node* qual); - ::pg_query::Node* unsafe_arena_release_qual(); - - // .pg_query.WCOKind kind = 1 [json_name = "kind"]; - void clear_kind(); - ::pg_query::WCOKind kind() const; - void set_kind(::pg_query::WCOKind value); - private: - ::pg_query::WCOKind _internal_kind() const; - void _internal_set_kind(::pg_query::WCOKind value); - public: - - // bool cascaded = 5 [json_name = "cascaded"]; - void clear_cascaded(); - bool cascaded() const; - void set_cascaded(bool value); - private: - bool _internal_cascaded() const; - void _internal_set_cascaded(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.WithCheckOption) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr relname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr polname_; - ::pg_query::Node* qual_; - int kind_; - bool cascaded_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class SortGroupClause final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.SortGroupClause) */ { - public: - inline SortGroupClause() : SortGroupClause(nullptr) {} - ~SortGroupClause() override; - explicit PROTOBUF_CONSTEXPR SortGroupClause(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SortGroupClause(const SortGroupClause& from); - SortGroupClause(SortGroupClause&& from) noexcept - : SortGroupClause() { - *this = ::std::move(from); - } - - inline SortGroupClause& operator=(const SortGroupClause& from) { - CopyFrom(from); - return *this; - } - inline SortGroupClause& operator=(SortGroupClause&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SortGroupClause& default_instance() { - return *internal_default_instance(); - } - static inline const SortGroupClause* internal_default_instance() { - return reinterpret_cast( - &_SortGroupClause_default_instance_); - } - static constexpr int kIndexInFileMessages = - 211; - - friend void swap(SortGroupClause& a, SortGroupClause& b) { - a.Swap(&b); - } - inline void Swap(SortGroupClause* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SortGroupClause* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SortGroupClause* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SortGroupClause& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SortGroupClause& from) { - SortGroupClause::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SortGroupClause* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.SortGroupClause"; - } - protected: - explicit SortGroupClause(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTleSortGroupRefFieldNumber = 1, - kEqopFieldNumber = 2, - kSortopFieldNumber = 3, - kNullsFirstFieldNumber = 4, - kHashableFieldNumber = 5, - }; - // uint32 tle_sort_group_ref = 1 [json_name = "tleSortGroupRef"]; - void clear_tle_sort_group_ref(); - uint32_t tle_sort_group_ref() const; - void set_tle_sort_group_ref(uint32_t value); - private: - uint32_t _internal_tle_sort_group_ref() const; - void _internal_set_tle_sort_group_ref(uint32_t value); - public: - - // uint32 eqop = 2 [json_name = "eqop"]; - void clear_eqop(); - uint32_t eqop() const; - void set_eqop(uint32_t value); - private: - uint32_t _internal_eqop() const; - void _internal_set_eqop(uint32_t value); - public: - - // uint32 sortop = 3 [json_name = "sortop"]; - void clear_sortop(); - uint32_t sortop() const; - void set_sortop(uint32_t value); - private: - uint32_t _internal_sortop() const; - void _internal_set_sortop(uint32_t value); - public: - - // bool nulls_first = 4 [json_name = "nulls_first"]; - void clear_nulls_first(); - bool nulls_first() const; - void set_nulls_first(bool value); - private: - bool _internal_nulls_first() const; - void _internal_set_nulls_first(bool value); - public: - - // bool hashable = 5 [json_name = "hashable"]; - void clear_hashable(); - bool hashable() const; - void set_hashable(bool value); - private: - bool _internal_hashable() const; - void _internal_set_hashable(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.SortGroupClause) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - uint32_t tle_sort_group_ref_; - uint32_t eqop_; - uint32_t sortop_; - bool nulls_first_; - bool hashable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class GroupingSet final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.GroupingSet) */ { - public: - inline GroupingSet() : GroupingSet(nullptr) {} - ~GroupingSet() override; - explicit PROTOBUF_CONSTEXPR GroupingSet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - GroupingSet(const GroupingSet& from); - GroupingSet(GroupingSet&& from) noexcept - : GroupingSet() { - *this = ::std::move(from); - } - - inline GroupingSet& operator=(const GroupingSet& from) { - CopyFrom(from); - return *this; - } - inline GroupingSet& operator=(GroupingSet&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GroupingSet& default_instance() { - return *internal_default_instance(); - } - static inline const GroupingSet* internal_default_instance() { - return reinterpret_cast( - &_GroupingSet_default_instance_); - } - static constexpr int kIndexInFileMessages = - 212; - - friend void swap(GroupingSet& a, GroupingSet& b) { - a.Swap(&b); - } - inline void Swap(GroupingSet* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GroupingSet* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GroupingSet* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GroupingSet& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const GroupingSet& from) { - GroupingSet::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GroupingSet* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.GroupingSet"; - } - protected: - explicit GroupingSet(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kContentFieldNumber = 2, - kKindFieldNumber = 1, - kLocationFieldNumber = 3, - }; - // repeated .pg_query.Node content = 2 [json_name = "content"]; - int content_size() const; - private: - int _internal_content_size() const; - public: - void clear_content(); - ::pg_query::Node* mutable_content(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_content(); - private: - const ::pg_query::Node& _internal_content(int index) const; - ::pg_query::Node* _internal_add_content(); - public: - const ::pg_query::Node& content(int index) const; - ::pg_query::Node* add_content(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - content() const; - - // .pg_query.GroupingSetKind kind = 1 [json_name = "kind"]; - void clear_kind(); - ::pg_query::GroupingSetKind kind() const; - void set_kind(::pg_query::GroupingSetKind value); - private: - ::pg_query::GroupingSetKind _internal_kind() const; - void _internal_set_kind(::pg_query::GroupingSetKind value); - public: - - // int32 location = 3 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.GroupingSet) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > content_; - int kind_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class WindowClause final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.WindowClause) */ { - public: - inline WindowClause() : WindowClause(nullptr) {} - ~WindowClause() override; - explicit PROTOBUF_CONSTEXPR WindowClause(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - WindowClause(const WindowClause& from); - WindowClause(WindowClause&& from) noexcept - : WindowClause() { - *this = ::std::move(from); - } - - inline WindowClause& operator=(const WindowClause& from) { - CopyFrom(from); - return *this; - } - inline WindowClause& operator=(WindowClause&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const WindowClause& default_instance() { - return *internal_default_instance(); - } - static inline const WindowClause* internal_default_instance() { - return reinterpret_cast( - &_WindowClause_default_instance_); - } - static constexpr int kIndexInFileMessages = - 213; - - friend void swap(WindowClause& a, WindowClause& b) { - a.Swap(&b); - } - inline void Swap(WindowClause* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(WindowClause* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - WindowClause* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const WindowClause& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const WindowClause& from) { - WindowClause::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(WindowClause* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.WindowClause"; - } - protected: - explicit WindowClause(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartitionClauseFieldNumber = 3, - kOrderClauseFieldNumber = 4, - kRunConditionFieldNumber = 8, - kNameFieldNumber = 1, - kRefnameFieldNumber = 2, - kStartOffsetFieldNumber = 6, - kEndOffsetFieldNumber = 7, - kFrameOptionsFieldNumber = 5, - kStartInRangeFuncFieldNumber = 9, - kEndInRangeFuncFieldNumber = 10, - kInRangeCollFieldNumber = 11, - kInRangeAscFieldNumber = 12, - kInRangeNullsFirstFieldNumber = 13, - kCopiedOrderFieldNumber = 15, - kWinrefFieldNumber = 14, - }; - // repeated .pg_query.Node partition_clause = 3 [json_name = "partitionClause"]; - int partition_clause_size() const; - private: - int _internal_partition_clause_size() const; - public: - void clear_partition_clause(); - ::pg_query::Node* mutable_partition_clause(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_partition_clause(); - private: - const ::pg_query::Node& _internal_partition_clause(int index) const; - ::pg_query::Node* _internal_add_partition_clause(); - public: - const ::pg_query::Node& partition_clause(int index) const; - ::pg_query::Node* add_partition_clause(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - partition_clause() const; - - // repeated .pg_query.Node order_clause = 4 [json_name = "orderClause"]; - int order_clause_size() const; - private: - int _internal_order_clause_size() const; - public: - void clear_order_clause(); - ::pg_query::Node* mutable_order_clause(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_order_clause(); - private: - const ::pg_query::Node& _internal_order_clause(int index) const; - ::pg_query::Node* _internal_add_order_clause(); - public: - const ::pg_query::Node& order_clause(int index) const; - ::pg_query::Node* add_order_clause(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - order_clause() const; - - // repeated .pg_query.Node run_condition = 8 [json_name = "runCondition"]; - int run_condition_size() const; - private: - int _internal_run_condition_size() const; - public: - void clear_run_condition(); - ::pg_query::Node* mutable_run_condition(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_run_condition(); - private: - const ::pg_query::Node& _internal_run_condition(int index) const; - ::pg_query::Node* _internal_add_run_condition(); - public: - const ::pg_query::Node& run_condition(int index) const; - ::pg_query::Node* add_run_condition(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - run_condition() const; - - // string name = 1 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // string refname = 2 [json_name = "refname"]; - void clear_refname(); - const std::string& refname() const; - template - void set_refname(ArgT0&& arg0, ArgT... args); - std::string* mutable_refname(); - PROTOBUF_NODISCARD std::string* release_refname(); - void set_allocated_refname(std::string* refname); - private: - const std::string& _internal_refname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_refname(const std::string& value); - std::string* _internal_mutable_refname(); - public: - - // .pg_query.Node start_offset = 6 [json_name = "startOffset"]; - bool has_start_offset() const; - private: - bool _internal_has_start_offset() const; - public: - void clear_start_offset(); - const ::pg_query::Node& start_offset() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_start_offset(); - ::pg_query::Node* mutable_start_offset(); - void set_allocated_start_offset(::pg_query::Node* start_offset); - private: - const ::pg_query::Node& _internal_start_offset() const; - ::pg_query::Node* _internal_mutable_start_offset(); - public: - void unsafe_arena_set_allocated_start_offset( - ::pg_query::Node* start_offset); - ::pg_query::Node* unsafe_arena_release_start_offset(); - - // .pg_query.Node end_offset = 7 [json_name = "endOffset"]; - bool has_end_offset() const; - private: - bool _internal_has_end_offset() const; - public: - void clear_end_offset(); - const ::pg_query::Node& end_offset() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_end_offset(); - ::pg_query::Node* mutable_end_offset(); - void set_allocated_end_offset(::pg_query::Node* end_offset); - private: - const ::pg_query::Node& _internal_end_offset() const; - ::pg_query::Node* _internal_mutable_end_offset(); - public: - void unsafe_arena_set_allocated_end_offset( - ::pg_query::Node* end_offset); - ::pg_query::Node* unsafe_arena_release_end_offset(); - - // int32 frame_options = 5 [json_name = "frameOptions"]; - void clear_frame_options(); - int32_t frame_options() const; - void set_frame_options(int32_t value); - private: - int32_t _internal_frame_options() const; - void _internal_set_frame_options(int32_t value); - public: - - // uint32 start_in_range_func = 9 [json_name = "startInRangeFunc"]; - void clear_start_in_range_func(); - uint32_t start_in_range_func() const; - void set_start_in_range_func(uint32_t value); - private: - uint32_t _internal_start_in_range_func() const; - void _internal_set_start_in_range_func(uint32_t value); - public: - - // uint32 end_in_range_func = 10 [json_name = "endInRangeFunc"]; - void clear_end_in_range_func(); - uint32_t end_in_range_func() const; - void set_end_in_range_func(uint32_t value); - private: - uint32_t _internal_end_in_range_func() const; - void _internal_set_end_in_range_func(uint32_t value); - public: - - // uint32 in_range_coll = 11 [json_name = "inRangeColl"]; - void clear_in_range_coll(); - uint32_t in_range_coll() const; - void set_in_range_coll(uint32_t value); - private: - uint32_t _internal_in_range_coll() const; - void _internal_set_in_range_coll(uint32_t value); - public: - - // bool in_range_asc = 12 [json_name = "inRangeAsc"]; - void clear_in_range_asc(); - bool in_range_asc() const; - void set_in_range_asc(bool value); - private: - bool _internal_in_range_asc() const; - void _internal_set_in_range_asc(bool value); - public: - - // bool in_range_nulls_first = 13 [json_name = "inRangeNullsFirst"]; - void clear_in_range_nulls_first(); - bool in_range_nulls_first() const; - void set_in_range_nulls_first(bool value); - private: - bool _internal_in_range_nulls_first() const; - void _internal_set_in_range_nulls_first(bool value); - public: - - // bool copied_order = 15 [json_name = "copiedOrder"]; - void clear_copied_order(); - bool copied_order() const; - void set_copied_order(bool value); - private: - bool _internal_copied_order() const; - void _internal_set_copied_order(bool value); - public: - - // uint32 winref = 14 [json_name = "winref"]; - void clear_winref(); - uint32_t winref() const; - void set_winref(uint32_t value); - private: - uint32_t _internal_winref() const; - void _internal_set_winref(uint32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.WindowClause) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > partition_clause_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > order_clause_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > run_condition_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr refname_; - ::pg_query::Node* start_offset_; - ::pg_query::Node* end_offset_; - int32_t frame_options_; - uint32_t start_in_range_func_; - uint32_t end_in_range_func_; - uint32_t in_range_coll_; - bool in_range_asc_; - bool in_range_nulls_first_; - bool copied_order_; - uint32_t winref_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ObjectWithArgs final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ObjectWithArgs) */ { - public: - inline ObjectWithArgs() : ObjectWithArgs(nullptr) {} - ~ObjectWithArgs() override; - explicit PROTOBUF_CONSTEXPR ObjectWithArgs(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ObjectWithArgs(const ObjectWithArgs& from); - ObjectWithArgs(ObjectWithArgs&& from) noexcept - : ObjectWithArgs() { - *this = ::std::move(from); - } - - inline ObjectWithArgs& operator=(const ObjectWithArgs& from) { - CopyFrom(from); - return *this; - } - inline ObjectWithArgs& operator=(ObjectWithArgs&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ObjectWithArgs& default_instance() { - return *internal_default_instance(); - } - static inline const ObjectWithArgs* internal_default_instance() { - return reinterpret_cast( - &_ObjectWithArgs_default_instance_); - } - static constexpr int kIndexInFileMessages = - 214; - - friend void swap(ObjectWithArgs& a, ObjectWithArgs& b) { - a.Swap(&b); - } - inline void Swap(ObjectWithArgs* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ObjectWithArgs* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ObjectWithArgs* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ObjectWithArgs& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ObjectWithArgs& from) { - ObjectWithArgs::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ObjectWithArgs* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ObjectWithArgs"; - } - protected: - explicit ObjectWithArgs(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kObjnameFieldNumber = 1, - kObjargsFieldNumber = 2, - kObjfuncargsFieldNumber = 3, - kArgsUnspecifiedFieldNumber = 4, - }; - // repeated .pg_query.Node objname = 1 [json_name = "objname"]; - int objname_size() const; - private: - int _internal_objname_size() const; - public: - void clear_objname(); - ::pg_query::Node* mutable_objname(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_objname(); - private: - const ::pg_query::Node& _internal_objname(int index) const; - ::pg_query::Node* _internal_add_objname(); - public: - const ::pg_query::Node& objname(int index) const; - ::pg_query::Node* add_objname(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - objname() const; - - // repeated .pg_query.Node objargs = 2 [json_name = "objargs"]; - int objargs_size() const; - private: - int _internal_objargs_size() const; - public: - void clear_objargs(); - ::pg_query::Node* mutable_objargs(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_objargs(); - private: - const ::pg_query::Node& _internal_objargs(int index) const; - ::pg_query::Node* _internal_add_objargs(); - public: - const ::pg_query::Node& objargs(int index) const; - ::pg_query::Node* add_objargs(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - objargs() const; - - // repeated .pg_query.Node objfuncargs = 3 [json_name = "objfuncargs"]; - int objfuncargs_size() const; - private: - int _internal_objfuncargs_size() const; - public: - void clear_objfuncargs(); - ::pg_query::Node* mutable_objfuncargs(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_objfuncargs(); - private: - const ::pg_query::Node& _internal_objfuncargs(int index) const; - ::pg_query::Node* _internal_add_objfuncargs(); - public: - const ::pg_query::Node& objfuncargs(int index) const; - ::pg_query::Node* add_objfuncargs(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - objfuncargs() const; - - // bool args_unspecified = 4 [json_name = "args_unspecified"]; - void clear_args_unspecified(); - bool args_unspecified() const; - void set_args_unspecified(bool value); - private: - bool _internal_args_unspecified() const; - void _internal_set_args_unspecified(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.ObjectWithArgs) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > objname_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > objargs_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > objfuncargs_; - bool args_unspecified_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class AccessPriv final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.AccessPriv) */ { - public: - inline AccessPriv() : AccessPriv(nullptr) {} - ~AccessPriv() override; - explicit PROTOBUF_CONSTEXPR AccessPriv(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AccessPriv(const AccessPriv& from); - AccessPriv(AccessPriv&& from) noexcept - : AccessPriv() { - *this = ::std::move(from); - } - - inline AccessPriv& operator=(const AccessPriv& from) { - CopyFrom(from); - return *this; - } - inline AccessPriv& operator=(AccessPriv&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AccessPriv& default_instance() { - return *internal_default_instance(); - } - static inline const AccessPriv* internal_default_instance() { - return reinterpret_cast( - &_AccessPriv_default_instance_); - } - static constexpr int kIndexInFileMessages = - 215; - - friend void swap(AccessPriv& a, AccessPriv& b) { - a.Swap(&b); - } - inline void Swap(AccessPriv* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AccessPriv* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AccessPriv* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AccessPriv& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AccessPriv& from) { - AccessPriv::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AccessPriv* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.AccessPriv"; - } - protected: - explicit AccessPriv(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kColsFieldNumber = 2, - kPrivNameFieldNumber = 1, - }; - // repeated .pg_query.Node cols = 2 [json_name = "cols"]; - int cols_size() const; - private: - int _internal_cols_size() const; - public: - void clear_cols(); - ::pg_query::Node* mutable_cols(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_cols(); - private: - const ::pg_query::Node& _internal_cols(int index) const; - ::pg_query::Node* _internal_add_cols(); - public: - const ::pg_query::Node& cols(int index) const; - ::pg_query::Node* add_cols(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - cols() const; - - // string priv_name = 1 [json_name = "priv_name"]; - void clear_priv_name(); - const std::string& priv_name() const; - template - void set_priv_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_priv_name(); - PROTOBUF_NODISCARD std::string* release_priv_name(); - void set_allocated_priv_name(std::string* priv_name); - private: - const std::string& _internal_priv_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_priv_name(const std::string& value); - std::string* _internal_mutable_priv_name(); - public: - - // @@protoc_insertion_point(class_scope:pg_query.AccessPriv) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > cols_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr priv_name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateOpClassItem final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CreateOpClassItem) */ { - public: - inline CreateOpClassItem() : CreateOpClassItem(nullptr) {} - ~CreateOpClassItem() override; - explicit PROTOBUF_CONSTEXPR CreateOpClassItem(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CreateOpClassItem(const CreateOpClassItem& from); - CreateOpClassItem(CreateOpClassItem&& from) noexcept - : CreateOpClassItem() { - *this = ::std::move(from); - } - - inline CreateOpClassItem& operator=(const CreateOpClassItem& from) { - CopyFrom(from); - return *this; - } - inline CreateOpClassItem& operator=(CreateOpClassItem&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateOpClassItem& default_instance() { - return *internal_default_instance(); - } - static inline const CreateOpClassItem* internal_default_instance() { - return reinterpret_cast( - &_CreateOpClassItem_default_instance_); - } - static constexpr int kIndexInFileMessages = - 216; - - friend void swap(CreateOpClassItem& a, CreateOpClassItem& b) { - a.Swap(&b); - } - inline void Swap(CreateOpClassItem* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateOpClassItem* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateOpClassItem* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateOpClassItem& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateOpClassItem& from) { - CreateOpClassItem::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateOpClassItem* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CreateOpClassItem"; - } - protected: - explicit CreateOpClassItem(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kOrderFamilyFieldNumber = 4, - kClassArgsFieldNumber = 5, - kNameFieldNumber = 2, - kStoredtypeFieldNumber = 6, - kItemtypeFieldNumber = 1, - kNumberFieldNumber = 3, - }; - // repeated .pg_query.Node order_family = 4 [json_name = "order_family"]; - int order_family_size() const; - private: - int _internal_order_family_size() const; - public: - void clear_order_family(); - ::pg_query::Node* mutable_order_family(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_order_family(); - private: - const ::pg_query::Node& _internal_order_family(int index) const; - ::pg_query::Node* _internal_add_order_family(); - public: - const ::pg_query::Node& order_family(int index) const; - ::pg_query::Node* add_order_family(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - order_family() const; - - // repeated .pg_query.Node class_args = 5 [json_name = "class_args"]; - int class_args_size() const; - private: - int _internal_class_args_size() const; - public: - void clear_class_args(); - ::pg_query::Node* mutable_class_args(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_class_args(); - private: - const ::pg_query::Node& _internal_class_args(int index) const; - ::pg_query::Node* _internal_add_class_args(); - public: - const ::pg_query::Node& class_args(int index) const; - ::pg_query::Node* add_class_args(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - class_args() const; - - // .pg_query.ObjectWithArgs name = 2 [json_name = "name"]; - bool has_name() const; - private: - bool _internal_has_name() const; - public: - void clear_name(); - const ::pg_query::ObjectWithArgs& name() const; - PROTOBUF_NODISCARD ::pg_query::ObjectWithArgs* release_name(); - ::pg_query::ObjectWithArgs* mutable_name(); - void set_allocated_name(::pg_query::ObjectWithArgs* name); - private: - const ::pg_query::ObjectWithArgs& _internal_name() const; - ::pg_query::ObjectWithArgs* _internal_mutable_name(); - public: - void unsafe_arena_set_allocated_name( - ::pg_query::ObjectWithArgs* name); - ::pg_query::ObjectWithArgs* unsafe_arena_release_name(); - - // .pg_query.TypeName storedtype = 6 [json_name = "storedtype"]; - bool has_storedtype() const; - private: - bool _internal_has_storedtype() const; - public: - void clear_storedtype(); - const ::pg_query::TypeName& storedtype() const; - PROTOBUF_NODISCARD ::pg_query::TypeName* release_storedtype(); - ::pg_query::TypeName* mutable_storedtype(); - void set_allocated_storedtype(::pg_query::TypeName* storedtype); - private: - const ::pg_query::TypeName& _internal_storedtype() const; - ::pg_query::TypeName* _internal_mutable_storedtype(); - public: - void unsafe_arena_set_allocated_storedtype( - ::pg_query::TypeName* storedtype); - ::pg_query::TypeName* unsafe_arena_release_storedtype(); - - // int32 itemtype = 1 [json_name = "itemtype"]; - void clear_itemtype(); - int32_t itemtype() const; - void set_itemtype(int32_t value); - private: - int32_t _internal_itemtype() const; - void _internal_set_itemtype(int32_t value); - public: - - // int32 number = 3 [json_name = "number"]; - void clear_number(); - int32_t number() const; - void set_number(int32_t value); - private: - int32_t _internal_number() const; - void _internal_set_number(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CreateOpClassItem) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > order_family_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > class_args_; - ::pg_query::ObjectWithArgs* name_; - ::pg_query::TypeName* storedtype_; - int32_t itemtype_; - int32_t number_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class TableLikeClause final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.TableLikeClause) */ { - public: - inline TableLikeClause() : TableLikeClause(nullptr) {} - ~TableLikeClause() override; - explicit PROTOBUF_CONSTEXPR TableLikeClause(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - TableLikeClause(const TableLikeClause& from); - TableLikeClause(TableLikeClause&& from) noexcept - : TableLikeClause() { - *this = ::std::move(from); - } - - inline TableLikeClause& operator=(const TableLikeClause& from) { - CopyFrom(from); - return *this; - } - inline TableLikeClause& operator=(TableLikeClause&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TableLikeClause& default_instance() { - return *internal_default_instance(); - } - static inline const TableLikeClause* internal_default_instance() { - return reinterpret_cast( - &_TableLikeClause_default_instance_); - } - static constexpr int kIndexInFileMessages = - 217; - - friend void swap(TableLikeClause& a, TableLikeClause& b) { - a.Swap(&b); - } - inline void Swap(TableLikeClause* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TableLikeClause* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TableLikeClause* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const TableLikeClause& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const TableLikeClause& from) { - TableLikeClause::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TableLikeClause* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.TableLikeClause"; - } - protected: - explicit TableLikeClause(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRelationFieldNumber = 1, - kOptionsFieldNumber = 2, - kRelationOidFieldNumber = 3, - }; - // .pg_query.RangeVar relation = 1 [json_name = "relation"]; - bool has_relation() const; - private: - bool _internal_has_relation() const; - public: - void clear_relation(); - const ::pg_query::RangeVar& relation() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_relation(); - ::pg_query::RangeVar* mutable_relation(); - void set_allocated_relation(::pg_query::RangeVar* relation); - private: - const ::pg_query::RangeVar& _internal_relation() const; - ::pg_query::RangeVar* _internal_mutable_relation(); - public: - void unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation); - ::pg_query::RangeVar* unsafe_arena_release_relation(); - - // uint32 options = 2 [json_name = "options"]; - void clear_options(); - uint32_t options() const; - void set_options(uint32_t value); - private: - uint32_t _internal_options() const; - void _internal_set_options(uint32_t value); - public: - - // uint32 relation_oid = 3 [json_name = "relationOid"]; - void clear_relation_oid(); - uint32_t relation_oid() const; - void set_relation_oid(uint32_t value); - private: - uint32_t _internal_relation_oid() const; - void _internal_set_relation_oid(uint32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.TableLikeClause) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::RangeVar* relation_; - uint32_t options_; - uint32_t relation_oid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class FunctionParameter final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.FunctionParameter) */ { - public: - inline FunctionParameter() : FunctionParameter(nullptr) {} - ~FunctionParameter() override; - explicit PROTOBUF_CONSTEXPR FunctionParameter(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - FunctionParameter(const FunctionParameter& from); - FunctionParameter(FunctionParameter&& from) noexcept - : FunctionParameter() { - *this = ::std::move(from); - } - - inline FunctionParameter& operator=(const FunctionParameter& from) { - CopyFrom(from); - return *this; - } - inline FunctionParameter& operator=(FunctionParameter&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const FunctionParameter& default_instance() { - return *internal_default_instance(); - } - static inline const FunctionParameter* internal_default_instance() { - return reinterpret_cast( - &_FunctionParameter_default_instance_); - } - static constexpr int kIndexInFileMessages = - 218; - - friend void swap(FunctionParameter& a, FunctionParameter& b) { - a.Swap(&b); - } - inline void Swap(FunctionParameter* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FunctionParameter* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - FunctionParameter* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const FunctionParameter& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const FunctionParameter& from) { - FunctionParameter::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FunctionParameter* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.FunctionParameter"; - } - protected: - explicit FunctionParameter(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNameFieldNumber = 1, - kArgTypeFieldNumber = 2, - kDefexprFieldNumber = 4, - kModeFieldNumber = 3, - }; - // string name = 1 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // .pg_query.TypeName arg_type = 2 [json_name = "argType"]; - bool has_arg_type() const; - private: - bool _internal_has_arg_type() const; - public: - void clear_arg_type(); - const ::pg_query::TypeName& arg_type() const; - PROTOBUF_NODISCARD ::pg_query::TypeName* release_arg_type(); - ::pg_query::TypeName* mutable_arg_type(); - void set_allocated_arg_type(::pg_query::TypeName* arg_type); - private: - const ::pg_query::TypeName& _internal_arg_type() const; - ::pg_query::TypeName* _internal_mutable_arg_type(); - public: - void unsafe_arena_set_allocated_arg_type( - ::pg_query::TypeName* arg_type); - ::pg_query::TypeName* unsafe_arena_release_arg_type(); - - // .pg_query.Node defexpr = 4 [json_name = "defexpr"]; - bool has_defexpr() const; - private: - bool _internal_has_defexpr() const; - public: - void clear_defexpr(); - const ::pg_query::Node& defexpr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_defexpr(); - ::pg_query::Node* mutable_defexpr(); - void set_allocated_defexpr(::pg_query::Node* defexpr); - private: - const ::pg_query::Node& _internal_defexpr() const; - ::pg_query::Node* _internal_mutable_defexpr(); - public: - void unsafe_arena_set_allocated_defexpr( - ::pg_query::Node* defexpr); - ::pg_query::Node* unsafe_arena_release_defexpr(); - - // .pg_query.FunctionParameterMode mode = 3 [json_name = "mode"]; - void clear_mode(); - ::pg_query::FunctionParameterMode mode() const; - void set_mode(::pg_query::FunctionParameterMode value); - private: - ::pg_query::FunctionParameterMode _internal_mode() const; - void _internal_set_mode(::pg_query::FunctionParameterMode value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.FunctionParameter) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::pg_query::TypeName* arg_type_; - ::pg_query::Node* defexpr_; - int mode_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class LockingClause final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.LockingClause) */ { - public: - inline LockingClause() : LockingClause(nullptr) {} - ~LockingClause() override; - explicit PROTOBUF_CONSTEXPR LockingClause(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - LockingClause(const LockingClause& from); - LockingClause(LockingClause&& from) noexcept - : LockingClause() { - *this = ::std::move(from); - } - - inline LockingClause& operator=(const LockingClause& from) { - CopyFrom(from); - return *this; - } - inline LockingClause& operator=(LockingClause&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const LockingClause& default_instance() { - return *internal_default_instance(); - } - static inline const LockingClause* internal_default_instance() { - return reinterpret_cast( - &_LockingClause_default_instance_); - } - static constexpr int kIndexInFileMessages = - 219; - - friend void swap(LockingClause& a, LockingClause& b) { - a.Swap(&b); - } - inline void Swap(LockingClause* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LockingClause* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - LockingClause* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const LockingClause& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const LockingClause& from) { - LockingClause::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(LockingClause* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.LockingClause"; - } - protected: - explicit LockingClause(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kLockedRelsFieldNumber = 1, - kStrengthFieldNumber = 2, - kWaitPolicyFieldNumber = 3, - }; - // repeated .pg_query.Node locked_rels = 1 [json_name = "lockedRels"]; - int locked_rels_size() const; - private: - int _internal_locked_rels_size() const; - public: - void clear_locked_rels(); - ::pg_query::Node* mutable_locked_rels(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_locked_rels(); - private: - const ::pg_query::Node& _internal_locked_rels(int index) const; - ::pg_query::Node* _internal_add_locked_rels(); - public: - const ::pg_query::Node& locked_rels(int index) const; - ::pg_query::Node* add_locked_rels(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - locked_rels() const; - - // .pg_query.LockClauseStrength strength = 2 [json_name = "strength"]; - void clear_strength(); - ::pg_query::LockClauseStrength strength() const; - void set_strength(::pg_query::LockClauseStrength value); - private: - ::pg_query::LockClauseStrength _internal_strength() const; - void _internal_set_strength(::pg_query::LockClauseStrength value); - public: - - // .pg_query.LockWaitPolicy wait_policy = 3 [json_name = "waitPolicy"]; - void clear_wait_policy(); - ::pg_query::LockWaitPolicy wait_policy() const; - void set_wait_policy(::pg_query::LockWaitPolicy value); - private: - ::pg_query::LockWaitPolicy _internal_wait_policy() const; - void _internal_set_wait_policy(::pg_query::LockWaitPolicy value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.LockingClause) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > locked_rels_; - int strength_; - int wait_policy_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class RowMarkClause final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.RowMarkClause) */ { - public: - inline RowMarkClause() : RowMarkClause(nullptr) {} - ~RowMarkClause() override; - explicit PROTOBUF_CONSTEXPR RowMarkClause(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - RowMarkClause(const RowMarkClause& from); - RowMarkClause(RowMarkClause&& from) noexcept - : RowMarkClause() { - *this = ::std::move(from); - } - - inline RowMarkClause& operator=(const RowMarkClause& from) { - CopyFrom(from); - return *this; - } - inline RowMarkClause& operator=(RowMarkClause&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RowMarkClause& default_instance() { - return *internal_default_instance(); - } - static inline const RowMarkClause* internal_default_instance() { - return reinterpret_cast( - &_RowMarkClause_default_instance_); - } - static constexpr int kIndexInFileMessages = - 220; - - friend void swap(RowMarkClause& a, RowMarkClause& b) { - a.Swap(&b); - } - inline void Swap(RowMarkClause* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RowMarkClause* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RowMarkClause* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RowMarkClause& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RowMarkClause& from) { - RowMarkClause::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RowMarkClause* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.RowMarkClause"; - } - protected: - explicit RowMarkClause(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRtiFieldNumber = 1, - kStrengthFieldNumber = 2, - kWaitPolicyFieldNumber = 3, - kPushedDownFieldNumber = 4, - }; - // uint32 rti = 1 [json_name = "rti"]; - void clear_rti(); - uint32_t rti() const; - void set_rti(uint32_t value); - private: - uint32_t _internal_rti() const; - void _internal_set_rti(uint32_t value); - public: - - // .pg_query.LockClauseStrength strength = 2 [json_name = "strength"]; - void clear_strength(); - ::pg_query::LockClauseStrength strength() const; - void set_strength(::pg_query::LockClauseStrength value); - private: - ::pg_query::LockClauseStrength _internal_strength() const; - void _internal_set_strength(::pg_query::LockClauseStrength value); - public: - - // .pg_query.LockWaitPolicy wait_policy = 3 [json_name = "waitPolicy"]; - void clear_wait_policy(); - ::pg_query::LockWaitPolicy wait_policy() const; - void set_wait_policy(::pg_query::LockWaitPolicy value); - private: - ::pg_query::LockWaitPolicy _internal_wait_policy() const; - void _internal_set_wait_policy(::pg_query::LockWaitPolicy value); - public: - - // bool pushed_down = 4 [json_name = "pushedDown"]; - void clear_pushed_down(); - bool pushed_down() const; - void set_pushed_down(bool value); - private: - bool _internal_pushed_down() const; - void _internal_set_pushed_down(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.RowMarkClause) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - uint32_t rti_; - int strength_; - int wait_policy_; - bool pushed_down_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class XmlSerialize final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.XmlSerialize) */ { - public: - inline XmlSerialize() : XmlSerialize(nullptr) {} - ~XmlSerialize() override; - explicit PROTOBUF_CONSTEXPR XmlSerialize(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - XmlSerialize(const XmlSerialize& from); - XmlSerialize(XmlSerialize&& from) noexcept - : XmlSerialize() { - *this = ::std::move(from); - } - - inline XmlSerialize& operator=(const XmlSerialize& from) { - CopyFrom(from); - return *this; - } - inline XmlSerialize& operator=(XmlSerialize&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const XmlSerialize& default_instance() { - return *internal_default_instance(); - } - static inline const XmlSerialize* internal_default_instance() { - return reinterpret_cast( - &_XmlSerialize_default_instance_); - } - static constexpr int kIndexInFileMessages = - 221; - - friend void swap(XmlSerialize& a, XmlSerialize& b) { - a.Swap(&b); - } - inline void Swap(XmlSerialize* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(XmlSerialize* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - XmlSerialize* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const XmlSerialize& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const XmlSerialize& from) { - XmlSerialize::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(XmlSerialize* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.XmlSerialize"; - } - protected: - explicit XmlSerialize(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kExprFieldNumber = 2, - kTypeNameFieldNumber = 3, - kXmloptionFieldNumber = 1, - kLocationFieldNumber = 4, - }; - // .pg_query.Node expr = 2 [json_name = "expr"]; - bool has_expr() const; - private: - bool _internal_has_expr() const; - public: - void clear_expr(); - const ::pg_query::Node& expr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_expr(); - ::pg_query::Node* mutable_expr(); - void set_allocated_expr(::pg_query::Node* expr); - private: - const ::pg_query::Node& _internal_expr() const; - ::pg_query::Node* _internal_mutable_expr(); - public: - void unsafe_arena_set_allocated_expr( - ::pg_query::Node* expr); - ::pg_query::Node* unsafe_arena_release_expr(); - - // .pg_query.TypeName type_name = 3 [json_name = "typeName"]; - bool has_type_name() const; - private: - bool _internal_has_type_name() const; - public: - void clear_type_name(); - const ::pg_query::TypeName& type_name() const; - PROTOBUF_NODISCARD ::pg_query::TypeName* release_type_name(); - ::pg_query::TypeName* mutable_type_name(); - void set_allocated_type_name(::pg_query::TypeName* type_name); - private: - const ::pg_query::TypeName& _internal_type_name() const; - ::pg_query::TypeName* _internal_mutable_type_name(); - public: - void unsafe_arena_set_allocated_type_name( - ::pg_query::TypeName* type_name); - ::pg_query::TypeName* unsafe_arena_release_type_name(); - - // .pg_query.XmlOptionType xmloption = 1 [json_name = "xmloption"]; - void clear_xmloption(); - ::pg_query::XmlOptionType xmloption() const; - void set_xmloption(::pg_query::XmlOptionType value); - private: - ::pg_query::XmlOptionType _internal_xmloption() const; - void _internal_set_xmloption(::pg_query::XmlOptionType value); - public: - - // int32 location = 4 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.XmlSerialize) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* expr_; - ::pg_query::TypeName* type_name_; - int xmloption_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class WithClause final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.WithClause) */ { - public: - inline WithClause() : WithClause(nullptr) {} - ~WithClause() override; - explicit PROTOBUF_CONSTEXPR WithClause(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - WithClause(const WithClause& from); - WithClause(WithClause&& from) noexcept - : WithClause() { - *this = ::std::move(from); - } - - inline WithClause& operator=(const WithClause& from) { - CopyFrom(from); - return *this; - } - inline WithClause& operator=(WithClause&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const WithClause& default_instance() { - return *internal_default_instance(); - } - static inline const WithClause* internal_default_instance() { - return reinterpret_cast( - &_WithClause_default_instance_); - } - static constexpr int kIndexInFileMessages = - 222; - - friend void swap(WithClause& a, WithClause& b) { - a.Swap(&b); - } - inline void Swap(WithClause* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(WithClause* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - WithClause* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const WithClause& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const WithClause& from) { - WithClause::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(WithClause* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.WithClause"; - } - protected: - explicit WithClause(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCtesFieldNumber = 1, - kRecursiveFieldNumber = 2, - kLocationFieldNumber = 3, - }; - // repeated .pg_query.Node ctes = 1 [json_name = "ctes"]; - int ctes_size() const; - private: - int _internal_ctes_size() const; - public: - void clear_ctes(); - ::pg_query::Node* mutable_ctes(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_ctes(); - private: - const ::pg_query::Node& _internal_ctes(int index) const; - ::pg_query::Node* _internal_add_ctes(); - public: - const ::pg_query::Node& ctes(int index) const; - ::pg_query::Node* add_ctes(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - ctes() const; - - // bool recursive = 2 [json_name = "recursive"]; - void clear_recursive(); - bool recursive() const; - void set_recursive(bool value); - private: - bool _internal_recursive() const; - void _internal_set_recursive(bool value); - public: - - // int32 location = 3 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.WithClause) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > ctes_; - bool recursive_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class InferClause final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.InferClause) */ { - public: - inline InferClause() : InferClause(nullptr) {} - ~InferClause() override; - explicit PROTOBUF_CONSTEXPR InferClause(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - InferClause(const InferClause& from); - InferClause(InferClause&& from) noexcept - : InferClause() { - *this = ::std::move(from); - } - - inline InferClause& operator=(const InferClause& from) { - CopyFrom(from); - return *this; - } - inline InferClause& operator=(InferClause&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const InferClause& default_instance() { - return *internal_default_instance(); - } - static inline const InferClause* internal_default_instance() { - return reinterpret_cast( - &_InferClause_default_instance_); - } - static constexpr int kIndexInFileMessages = - 223; - - friend void swap(InferClause& a, InferClause& b) { - a.Swap(&b); - } - inline void Swap(InferClause* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(InferClause* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - InferClause* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const InferClause& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const InferClause& from) { - InferClause::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(InferClause* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.InferClause"; - } - protected: - explicit InferClause(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIndexElemsFieldNumber = 1, - kConnameFieldNumber = 3, - kWhereClauseFieldNumber = 2, - kLocationFieldNumber = 4, - }; - // repeated .pg_query.Node index_elems = 1 [json_name = "indexElems"]; - int index_elems_size() const; - private: - int _internal_index_elems_size() const; - public: - void clear_index_elems(); - ::pg_query::Node* mutable_index_elems(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_index_elems(); - private: - const ::pg_query::Node& _internal_index_elems(int index) const; - ::pg_query::Node* _internal_add_index_elems(); - public: - const ::pg_query::Node& index_elems(int index) const; - ::pg_query::Node* add_index_elems(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - index_elems() const; - - // string conname = 3 [json_name = "conname"]; - void clear_conname(); - const std::string& conname() const; - template - void set_conname(ArgT0&& arg0, ArgT... args); - std::string* mutable_conname(); - PROTOBUF_NODISCARD std::string* release_conname(); - void set_allocated_conname(std::string* conname); - private: - const std::string& _internal_conname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_conname(const std::string& value); - std::string* _internal_mutable_conname(); - public: - - // .pg_query.Node where_clause = 2 [json_name = "whereClause"]; - bool has_where_clause() const; - private: - bool _internal_has_where_clause() const; - public: - void clear_where_clause(); - const ::pg_query::Node& where_clause() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_where_clause(); - ::pg_query::Node* mutable_where_clause(); - void set_allocated_where_clause(::pg_query::Node* where_clause); - private: - const ::pg_query::Node& _internal_where_clause() const; - ::pg_query::Node* _internal_mutable_where_clause(); - public: - void unsafe_arena_set_allocated_where_clause( - ::pg_query::Node* where_clause); - ::pg_query::Node* unsafe_arena_release_where_clause(); - - // int32 location = 4 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.InferClause) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > index_elems_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr conname_; - ::pg_query::Node* where_clause_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class OnConflictClause final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.OnConflictClause) */ { - public: - inline OnConflictClause() : OnConflictClause(nullptr) {} - ~OnConflictClause() override; - explicit PROTOBUF_CONSTEXPR OnConflictClause(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - OnConflictClause(const OnConflictClause& from); - OnConflictClause(OnConflictClause&& from) noexcept - : OnConflictClause() { - *this = ::std::move(from); - } - - inline OnConflictClause& operator=(const OnConflictClause& from) { - CopyFrom(from); - return *this; - } - inline OnConflictClause& operator=(OnConflictClause&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const OnConflictClause& default_instance() { - return *internal_default_instance(); - } - static inline const OnConflictClause* internal_default_instance() { - return reinterpret_cast( - &_OnConflictClause_default_instance_); - } - static constexpr int kIndexInFileMessages = - 224; - - friend void swap(OnConflictClause& a, OnConflictClause& b) { - a.Swap(&b); - } - inline void Swap(OnConflictClause* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OnConflictClause* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - OnConflictClause* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const OnConflictClause& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const OnConflictClause& from) { - OnConflictClause::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OnConflictClause* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.OnConflictClause"; - } - protected: - explicit OnConflictClause(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTargetListFieldNumber = 3, - kInferFieldNumber = 2, - kWhereClauseFieldNumber = 4, - kActionFieldNumber = 1, - kLocationFieldNumber = 5, - }; - // repeated .pg_query.Node target_list = 3 [json_name = "targetList"]; - int target_list_size() const; - private: - int _internal_target_list_size() const; - public: - void clear_target_list(); - ::pg_query::Node* mutable_target_list(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_target_list(); - private: - const ::pg_query::Node& _internal_target_list(int index) const; - ::pg_query::Node* _internal_add_target_list(); - public: - const ::pg_query::Node& target_list(int index) const; - ::pg_query::Node* add_target_list(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - target_list() const; - - // .pg_query.InferClause infer = 2 [json_name = "infer"]; - bool has_infer() const; - private: - bool _internal_has_infer() const; - public: - void clear_infer(); - const ::pg_query::InferClause& infer() const; - PROTOBUF_NODISCARD ::pg_query::InferClause* release_infer(); - ::pg_query::InferClause* mutable_infer(); - void set_allocated_infer(::pg_query::InferClause* infer); - private: - const ::pg_query::InferClause& _internal_infer() const; - ::pg_query::InferClause* _internal_mutable_infer(); - public: - void unsafe_arena_set_allocated_infer( - ::pg_query::InferClause* infer); - ::pg_query::InferClause* unsafe_arena_release_infer(); - - // .pg_query.Node where_clause = 4 [json_name = "whereClause"]; - bool has_where_clause() const; - private: - bool _internal_has_where_clause() const; - public: - void clear_where_clause(); - const ::pg_query::Node& where_clause() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_where_clause(); - ::pg_query::Node* mutable_where_clause(); - void set_allocated_where_clause(::pg_query::Node* where_clause); - private: - const ::pg_query::Node& _internal_where_clause() const; - ::pg_query::Node* _internal_mutable_where_clause(); - public: - void unsafe_arena_set_allocated_where_clause( - ::pg_query::Node* where_clause); - ::pg_query::Node* unsafe_arena_release_where_clause(); - - // .pg_query.OnConflictAction action = 1 [json_name = "action"]; - void clear_action(); - ::pg_query::OnConflictAction action() const; - void set_action(::pg_query::OnConflictAction value); - private: - ::pg_query::OnConflictAction _internal_action() const; - void _internal_set_action(::pg_query::OnConflictAction value); - public: - - // int32 location = 5 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.OnConflictClause) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > target_list_; - ::pg_query::InferClause* infer_; - ::pg_query::Node* where_clause_; - int action_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CTESearchClause final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CTESearchClause) */ { - public: - inline CTESearchClause() : CTESearchClause(nullptr) {} - ~CTESearchClause() override; - explicit PROTOBUF_CONSTEXPR CTESearchClause(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CTESearchClause(const CTESearchClause& from); - CTESearchClause(CTESearchClause&& from) noexcept - : CTESearchClause() { - *this = ::std::move(from); - } - - inline CTESearchClause& operator=(const CTESearchClause& from) { - CopyFrom(from); - return *this; - } - inline CTESearchClause& operator=(CTESearchClause&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CTESearchClause& default_instance() { - return *internal_default_instance(); - } - static inline const CTESearchClause* internal_default_instance() { - return reinterpret_cast( - &_CTESearchClause_default_instance_); - } - static constexpr int kIndexInFileMessages = - 225; - - friend void swap(CTESearchClause& a, CTESearchClause& b) { - a.Swap(&b); - } - inline void Swap(CTESearchClause* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CTESearchClause* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CTESearchClause* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CTESearchClause& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CTESearchClause& from) { - CTESearchClause::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CTESearchClause* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CTESearchClause"; - } - protected: - explicit CTESearchClause(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSearchColListFieldNumber = 1, - kSearchSeqColumnFieldNumber = 3, - kSearchBreadthFirstFieldNumber = 2, - kLocationFieldNumber = 4, - }; - // repeated .pg_query.Node search_col_list = 1 [json_name = "search_col_list"]; - int search_col_list_size() const; - private: - int _internal_search_col_list_size() const; - public: - void clear_search_col_list(); - ::pg_query::Node* mutable_search_col_list(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_search_col_list(); - private: - const ::pg_query::Node& _internal_search_col_list(int index) const; - ::pg_query::Node* _internal_add_search_col_list(); - public: - const ::pg_query::Node& search_col_list(int index) const; - ::pg_query::Node* add_search_col_list(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - search_col_list() const; - - // string search_seq_column = 3 [json_name = "search_seq_column"]; - void clear_search_seq_column(); - const std::string& search_seq_column() const; - template - void set_search_seq_column(ArgT0&& arg0, ArgT... args); - std::string* mutable_search_seq_column(); - PROTOBUF_NODISCARD std::string* release_search_seq_column(); - void set_allocated_search_seq_column(std::string* search_seq_column); - private: - const std::string& _internal_search_seq_column() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_search_seq_column(const std::string& value); - std::string* _internal_mutable_search_seq_column(); - public: - - // bool search_breadth_first = 2 [json_name = "search_breadth_first"]; - void clear_search_breadth_first(); - bool search_breadth_first() const; - void set_search_breadth_first(bool value); - private: - bool _internal_search_breadth_first() const; - void _internal_set_search_breadth_first(bool value); - public: - - // int32 location = 4 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CTESearchClause) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > search_col_list_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr search_seq_column_; - bool search_breadth_first_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CTECycleClause final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CTECycleClause) */ { - public: - inline CTECycleClause() : CTECycleClause(nullptr) {} - ~CTECycleClause() override; - explicit PROTOBUF_CONSTEXPR CTECycleClause(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CTECycleClause(const CTECycleClause& from); - CTECycleClause(CTECycleClause&& from) noexcept - : CTECycleClause() { - *this = ::std::move(from); - } - - inline CTECycleClause& operator=(const CTECycleClause& from) { - CopyFrom(from); - return *this; - } - inline CTECycleClause& operator=(CTECycleClause&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CTECycleClause& default_instance() { - return *internal_default_instance(); - } - static inline const CTECycleClause* internal_default_instance() { - return reinterpret_cast( - &_CTECycleClause_default_instance_); - } - static constexpr int kIndexInFileMessages = - 226; - - friend void swap(CTECycleClause& a, CTECycleClause& b) { - a.Swap(&b); - } - inline void Swap(CTECycleClause* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CTECycleClause* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CTECycleClause* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CTECycleClause& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CTECycleClause& from) { - CTECycleClause::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CTECycleClause* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CTECycleClause"; - } - protected: - explicit CTECycleClause(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCycleColListFieldNumber = 1, - kCycleMarkColumnFieldNumber = 2, - kCyclePathColumnFieldNumber = 5, - kCycleMarkValueFieldNumber = 3, - kCycleMarkDefaultFieldNumber = 4, - kLocationFieldNumber = 6, - kCycleMarkTypeFieldNumber = 7, - kCycleMarkTypmodFieldNumber = 8, - kCycleMarkCollationFieldNumber = 9, - kCycleMarkNeopFieldNumber = 10, - }; - // repeated .pg_query.Node cycle_col_list = 1 [json_name = "cycle_col_list"]; - int cycle_col_list_size() const; - private: - int _internal_cycle_col_list_size() const; - public: - void clear_cycle_col_list(); - ::pg_query::Node* mutable_cycle_col_list(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_cycle_col_list(); - private: - const ::pg_query::Node& _internal_cycle_col_list(int index) const; - ::pg_query::Node* _internal_add_cycle_col_list(); - public: - const ::pg_query::Node& cycle_col_list(int index) const; - ::pg_query::Node* add_cycle_col_list(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - cycle_col_list() const; - - // string cycle_mark_column = 2 [json_name = "cycle_mark_column"]; - void clear_cycle_mark_column(); - const std::string& cycle_mark_column() const; - template - void set_cycle_mark_column(ArgT0&& arg0, ArgT... args); - std::string* mutable_cycle_mark_column(); - PROTOBUF_NODISCARD std::string* release_cycle_mark_column(); - void set_allocated_cycle_mark_column(std::string* cycle_mark_column); - private: - const std::string& _internal_cycle_mark_column() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_cycle_mark_column(const std::string& value); - std::string* _internal_mutable_cycle_mark_column(); - public: - - // string cycle_path_column = 5 [json_name = "cycle_path_column"]; - void clear_cycle_path_column(); - const std::string& cycle_path_column() const; - template - void set_cycle_path_column(ArgT0&& arg0, ArgT... args); - std::string* mutable_cycle_path_column(); - PROTOBUF_NODISCARD std::string* release_cycle_path_column(); - void set_allocated_cycle_path_column(std::string* cycle_path_column); - private: - const std::string& _internal_cycle_path_column() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_cycle_path_column(const std::string& value); - std::string* _internal_mutable_cycle_path_column(); - public: - - // .pg_query.Node cycle_mark_value = 3 [json_name = "cycle_mark_value"]; - bool has_cycle_mark_value() const; - private: - bool _internal_has_cycle_mark_value() const; - public: - void clear_cycle_mark_value(); - const ::pg_query::Node& cycle_mark_value() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_cycle_mark_value(); - ::pg_query::Node* mutable_cycle_mark_value(); - void set_allocated_cycle_mark_value(::pg_query::Node* cycle_mark_value); - private: - const ::pg_query::Node& _internal_cycle_mark_value() const; - ::pg_query::Node* _internal_mutable_cycle_mark_value(); - public: - void unsafe_arena_set_allocated_cycle_mark_value( - ::pg_query::Node* cycle_mark_value); - ::pg_query::Node* unsafe_arena_release_cycle_mark_value(); - - // .pg_query.Node cycle_mark_default = 4 [json_name = "cycle_mark_default"]; - bool has_cycle_mark_default() const; - private: - bool _internal_has_cycle_mark_default() const; - public: - void clear_cycle_mark_default(); - const ::pg_query::Node& cycle_mark_default() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_cycle_mark_default(); - ::pg_query::Node* mutable_cycle_mark_default(); - void set_allocated_cycle_mark_default(::pg_query::Node* cycle_mark_default); - private: - const ::pg_query::Node& _internal_cycle_mark_default() const; - ::pg_query::Node* _internal_mutable_cycle_mark_default(); - public: - void unsafe_arena_set_allocated_cycle_mark_default( - ::pg_query::Node* cycle_mark_default); - ::pg_query::Node* unsafe_arena_release_cycle_mark_default(); - - // int32 location = 6 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // uint32 cycle_mark_type = 7 [json_name = "cycle_mark_type"]; - void clear_cycle_mark_type(); - uint32_t cycle_mark_type() const; - void set_cycle_mark_type(uint32_t value); - private: - uint32_t _internal_cycle_mark_type() const; - void _internal_set_cycle_mark_type(uint32_t value); - public: - - // int32 cycle_mark_typmod = 8 [json_name = "cycle_mark_typmod"]; - void clear_cycle_mark_typmod(); - int32_t cycle_mark_typmod() const; - void set_cycle_mark_typmod(int32_t value); - private: - int32_t _internal_cycle_mark_typmod() const; - void _internal_set_cycle_mark_typmod(int32_t value); - public: - - // uint32 cycle_mark_collation = 9 [json_name = "cycle_mark_collation"]; - void clear_cycle_mark_collation(); - uint32_t cycle_mark_collation() const; - void set_cycle_mark_collation(uint32_t value); - private: - uint32_t _internal_cycle_mark_collation() const; - void _internal_set_cycle_mark_collation(uint32_t value); - public: - - // uint32 cycle_mark_neop = 10 [json_name = "cycle_mark_neop"]; - void clear_cycle_mark_neop(); - uint32_t cycle_mark_neop() const; - void set_cycle_mark_neop(uint32_t value); - private: - uint32_t _internal_cycle_mark_neop() const; - void _internal_set_cycle_mark_neop(uint32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CTECycleClause) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > cycle_col_list_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cycle_mark_column_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cycle_path_column_; - ::pg_query::Node* cycle_mark_value_; - ::pg_query::Node* cycle_mark_default_; - int32_t location_; - uint32_t cycle_mark_type_; - int32_t cycle_mark_typmod_; - uint32_t cycle_mark_collation_; - uint32_t cycle_mark_neop_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CommonTableExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CommonTableExpr) */ { - public: - inline CommonTableExpr() : CommonTableExpr(nullptr) {} - ~CommonTableExpr() override; - explicit PROTOBUF_CONSTEXPR CommonTableExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CommonTableExpr(const CommonTableExpr& from); - CommonTableExpr(CommonTableExpr&& from) noexcept - : CommonTableExpr() { - *this = ::std::move(from); - } - - inline CommonTableExpr& operator=(const CommonTableExpr& from) { - CopyFrom(from); - return *this; - } - inline CommonTableExpr& operator=(CommonTableExpr&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CommonTableExpr& default_instance() { - return *internal_default_instance(); - } - static inline const CommonTableExpr* internal_default_instance() { - return reinterpret_cast( - &_CommonTableExpr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 227; - - friend void swap(CommonTableExpr& a, CommonTableExpr& b) { - a.Swap(&b); - } - inline void Swap(CommonTableExpr* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CommonTableExpr* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CommonTableExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CommonTableExpr& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CommonTableExpr& from) { - CommonTableExpr::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CommonTableExpr* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CommonTableExpr"; - } - protected: - explicit CommonTableExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAliascolnamesFieldNumber = 2, - kCtecolnamesFieldNumber = 10, - kCtecoltypesFieldNumber = 11, - kCtecoltypmodsFieldNumber = 12, - kCtecolcollationsFieldNumber = 13, - kCtenameFieldNumber = 1, - kCtequeryFieldNumber = 4, - kSearchClauseFieldNumber = 5, - kCycleClauseFieldNumber = 6, - kCtematerializedFieldNumber = 3, - kLocationFieldNumber = 7, - kCterecursiveFieldNumber = 8, - kCterefcountFieldNumber = 9, - }; - // repeated .pg_query.Node aliascolnames = 2 [json_name = "aliascolnames"]; - int aliascolnames_size() const; - private: - int _internal_aliascolnames_size() const; - public: - void clear_aliascolnames(); - ::pg_query::Node* mutable_aliascolnames(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_aliascolnames(); - private: - const ::pg_query::Node& _internal_aliascolnames(int index) const; - ::pg_query::Node* _internal_add_aliascolnames(); - public: - const ::pg_query::Node& aliascolnames(int index) const; - ::pg_query::Node* add_aliascolnames(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - aliascolnames() const; - - // repeated .pg_query.Node ctecolnames = 10 [json_name = "ctecolnames"]; - int ctecolnames_size() const; - private: - int _internal_ctecolnames_size() const; - public: - void clear_ctecolnames(); - ::pg_query::Node* mutable_ctecolnames(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_ctecolnames(); - private: - const ::pg_query::Node& _internal_ctecolnames(int index) const; - ::pg_query::Node* _internal_add_ctecolnames(); - public: - const ::pg_query::Node& ctecolnames(int index) const; - ::pg_query::Node* add_ctecolnames(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - ctecolnames() const; - - // repeated .pg_query.Node ctecoltypes = 11 [json_name = "ctecoltypes"]; - int ctecoltypes_size() const; - private: - int _internal_ctecoltypes_size() const; - public: - void clear_ctecoltypes(); - ::pg_query::Node* mutable_ctecoltypes(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_ctecoltypes(); - private: - const ::pg_query::Node& _internal_ctecoltypes(int index) const; - ::pg_query::Node* _internal_add_ctecoltypes(); - public: - const ::pg_query::Node& ctecoltypes(int index) const; - ::pg_query::Node* add_ctecoltypes(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - ctecoltypes() const; - - // repeated .pg_query.Node ctecoltypmods = 12 [json_name = "ctecoltypmods"]; - int ctecoltypmods_size() const; - private: - int _internal_ctecoltypmods_size() const; - public: - void clear_ctecoltypmods(); - ::pg_query::Node* mutable_ctecoltypmods(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_ctecoltypmods(); - private: - const ::pg_query::Node& _internal_ctecoltypmods(int index) const; - ::pg_query::Node* _internal_add_ctecoltypmods(); - public: - const ::pg_query::Node& ctecoltypmods(int index) const; - ::pg_query::Node* add_ctecoltypmods(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - ctecoltypmods() const; - - // repeated .pg_query.Node ctecolcollations = 13 [json_name = "ctecolcollations"]; - int ctecolcollations_size() const; - private: - int _internal_ctecolcollations_size() const; - public: - void clear_ctecolcollations(); - ::pg_query::Node* mutable_ctecolcollations(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_ctecolcollations(); - private: - const ::pg_query::Node& _internal_ctecolcollations(int index) const; - ::pg_query::Node* _internal_add_ctecolcollations(); - public: - const ::pg_query::Node& ctecolcollations(int index) const; - ::pg_query::Node* add_ctecolcollations(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - ctecolcollations() const; - - // string ctename = 1 [json_name = "ctename"]; - void clear_ctename(); - const std::string& ctename() const; - template - void set_ctename(ArgT0&& arg0, ArgT... args); - std::string* mutable_ctename(); - PROTOBUF_NODISCARD std::string* release_ctename(); - void set_allocated_ctename(std::string* ctename); - private: - const std::string& _internal_ctename() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_ctename(const std::string& value); - std::string* _internal_mutable_ctename(); - public: - - // .pg_query.Node ctequery = 4 [json_name = "ctequery"]; - bool has_ctequery() const; - private: - bool _internal_has_ctequery() const; - public: - void clear_ctequery(); - const ::pg_query::Node& ctequery() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_ctequery(); - ::pg_query::Node* mutable_ctequery(); - void set_allocated_ctequery(::pg_query::Node* ctequery); - private: - const ::pg_query::Node& _internal_ctequery() const; - ::pg_query::Node* _internal_mutable_ctequery(); - public: - void unsafe_arena_set_allocated_ctequery( - ::pg_query::Node* ctequery); - ::pg_query::Node* unsafe_arena_release_ctequery(); - - // .pg_query.CTESearchClause search_clause = 5 [json_name = "search_clause"]; - bool has_search_clause() const; - private: - bool _internal_has_search_clause() const; - public: - void clear_search_clause(); - const ::pg_query::CTESearchClause& search_clause() const; - PROTOBUF_NODISCARD ::pg_query::CTESearchClause* release_search_clause(); - ::pg_query::CTESearchClause* mutable_search_clause(); - void set_allocated_search_clause(::pg_query::CTESearchClause* search_clause); - private: - const ::pg_query::CTESearchClause& _internal_search_clause() const; - ::pg_query::CTESearchClause* _internal_mutable_search_clause(); - public: - void unsafe_arena_set_allocated_search_clause( - ::pg_query::CTESearchClause* search_clause); - ::pg_query::CTESearchClause* unsafe_arena_release_search_clause(); - - // .pg_query.CTECycleClause cycle_clause = 6 [json_name = "cycle_clause"]; - bool has_cycle_clause() const; - private: - bool _internal_has_cycle_clause() const; - public: - void clear_cycle_clause(); - const ::pg_query::CTECycleClause& cycle_clause() const; - PROTOBUF_NODISCARD ::pg_query::CTECycleClause* release_cycle_clause(); - ::pg_query::CTECycleClause* mutable_cycle_clause(); - void set_allocated_cycle_clause(::pg_query::CTECycleClause* cycle_clause); - private: - const ::pg_query::CTECycleClause& _internal_cycle_clause() const; - ::pg_query::CTECycleClause* _internal_mutable_cycle_clause(); - public: - void unsafe_arena_set_allocated_cycle_clause( - ::pg_query::CTECycleClause* cycle_clause); - ::pg_query::CTECycleClause* unsafe_arena_release_cycle_clause(); - - // .pg_query.CTEMaterialize ctematerialized = 3 [json_name = "ctematerialized"]; - void clear_ctematerialized(); - ::pg_query::CTEMaterialize ctematerialized() const; - void set_ctematerialized(::pg_query::CTEMaterialize value); - private: - ::pg_query::CTEMaterialize _internal_ctematerialized() const; - void _internal_set_ctematerialized(::pg_query::CTEMaterialize value); - public: - - // int32 location = 7 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // bool cterecursive = 8 [json_name = "cterecursive"]; - void clear_cterecursive(); - bool cterecursive() const; - void set_cterecursive(bool value); - private: - bool _internal_cterecursive() const; - void _internal_set_cterecursive(bool value); - public: - - // int32 cterefcount = 9 [json_name = "cterefcount"]; - void clear_cterefcount(); - int32_t cterefcount() const; - void set_cterefcount(int32_t value); - private: - int32_t _internal_cterefcount() const; - void _internal_set_cterefcount(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CommonTableExpr) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > aliascolnames_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > ctecolnames_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > ctecoltypes_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > ctecoltypmods_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > ctecolcollations_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ctename_; - ::pg_query::Node* ctequery_; - ::pg_query::CTESearchClause* search_clause_; - ::pg_query::CTECycleClause* cycle_clause_; - int ctematerialized_; - int32_t location_; - bool cterecursive_; - int32_t cterefcount_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class MergeWhenClause final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.MergeWhenClause) */ { - public: - inline MergeWhenClause() : MergeWhenClause(nullptr) {} - ~MergeWhenClause() override; - explicit PROTOBUF_CONSTEXPR MergeWhenClause(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - MergeWhenClause(const MergeWhenClause& from); - MergeWhenClause(MergeWhenClause&& from) noexcept - : MergeWhenClause() { - *this = ::std::move(from); - } - - inline MergeWhenClause& operator=(const MergeWhenClause& from) { - CopyFrom(from); - return *this; - } - inline MergeWhenClause& operator=(MergeWhenClause&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const MergeWhenClause& default_instance() { - return *internal_default_instance(); - } - static inline const MergeWhenClause* internal_default_instance() { - return reinterpret_cast( - &_MergeWhenClause_default_instance_); - } - static constexpr int kIndexInFileMessages = - 228; - - friend void swap(MergeWhenClause& a, MergeWhenClause& b) { - a.Swap(&b); - } - inline void Swap(MergeWhenClause* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MergeWhenClause* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - MergeWhenClause* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const MergeWhenClause& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const MergeWhenClause& from) { - MergeWhenClause::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MergeWhenClause* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.MergeWhenClause"; - } - protected: - explicit MergeWhenClause(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kTargetListFieldNumber = 5, - kValuesFieldNumber = 6, - kConditionFieldNumber = 4, - kMatchedFieldNumber = 1, - kCommandTypeFieldNumber = 2, - kOverrideFieldNumber = 3, - }; - // repeated .pg_query.Node target_list = 5 [json_name = "targetList"]; - int target_list_size() const; - private: - int _internal_target_list_size() const; - public: - void clear_target_list(); - ::pg_query::Node* mutable_target_list(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_target_list(); - private: - const ::pg_query::Node& _internal_target_list(int index) const; - ::pg_query::Node* _internal_add_target_list(); - public: - const ::pg_query::Node& target_list(int index) const; - ::pg_query::Node* add_target_list(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - target_list() const; - - // repeated .pg_query.Node values = 6 [json_name = "values"]; - int values_size() const; - private: - int _internal_values_size() const; - public: - void clear_values(); - ::pg_query::Node* mutable_values(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_values(); - private: - const ::pg_query::Node& _internal_values(int index) const; - ::pg_query::Node* _internal_add_values(); - public: - const ::pg_query::Node& values(int index) const; - ::pg_query::Node* add_values(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - values() const; - - // .pg_query.Node condition = 4 [json_name = "condition"]; - bool has_condition() const; - private: - bool _internal_has_condition() const; - public: - void clear_condition(); - const ::pg_query::Node& condition() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_condition(); - ::pg_query::Node* mutable_condition(); - void set_allocated_condition(::pg_query::Node* condition); - private: - const ::pg_query::Node& _internal_condition() const; - ::pg_query::Node* _internal_mutable_condition(); - public: - void unsafe_arena_set_allocated_condition( - ::pg_query::Node* condition); - ::pg_query::Node* unsafe_arena_release_condition(); - - // bool matched = 1 [json_name = "matched"]; - void clear_matched(); - bool matched() const; - void set_matched(bool value); - private: - bool _internal_matched() const; - void _internal_set_matched(bool value); - public: - - // .pg_query.CmdType command_type = 2 [json_name = "commandType"]; - void clear_command_type(); - ::pg_query::CmdType command_type() const; - void set_command_type(::pg_query::CmdType value); - private: - ::pg_query::CmdType _internal_command_type() const; - void _internal_set_command_type(::pg_query::CmdType value); - public: - - // .pg_query.OverridingKind override = 3 [json_name = "override"]; - void clear_override(); - ::pg_query::OverridingKind override() const; - void set_override(::pg_query::OverridingKind value); - private: - ::pg_query::OverridingKind _internal_override() const; - void _internal_set_override(::pg_query::OverridingKind value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.MergeWhenClause) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > target_list_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > values_; - ::pg_query::Node* condition_; - bool matched_; - int command_type_; - int override_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class RoleSpec final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.RoleSpec) */ { - public: - inline RoleSpec() : RoleSpec(nullptr) {} - ~RoleSpec() override; - explicit PROTOBUF_CONSTEXPR RoleSpec(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - RoleSpec(const RoleSpec& from); - RoleSpec(RoleSpec&& from) noexcept - : RoleSpec() { - *this = ::std::move(from); - } - - inline RoleSpec& operator=(const RoleSpec& from) { - CopyFrom(from); - return *this; - } - inline RoleSpec& operator=(RoleSpec&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RoleSpec& default_instance() { - return *internal_default_instance(); - } - static inline const RoleSpec* internal_default_instance() { - return reinterpret_cast( - &_RoleSpec_default_instance_); - } - static constexpr int kIndexInFileMessages = - 229; - - friend void swap(RoleSpec& a, RoleSpec& b) { - a.Swap(&b); - } - inline void Swap(RoleSpec* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RoleSpec* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RoleSpec* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RoleSpec& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RoleSpec& from) { - RoleSpec::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RoleSpec* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.RoleSpec"; - } - protected: - explicit RoleSpec(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRolenameFieldNumber = 2, - kRoletypeFieldNumber = 1, - kLocationFieldNumber = 3, - }; - // string rolename = 2 [json_name = "rolename"]; - void clear_rolename(); - const std::string& rolename() const; - template - void set_rolename(ArgT0&& arg0, ArgT... args); - std::string* mutable_rolename(); - PROTOBUF_NODISCARD std::string* release_rolename(); - void set_allocated_rolename(std::string* rolename); - private: - const std::string& _internal_rolename() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_rolename(const std::string& value); - std::string* _internal_mutable_rolename(); - public: - - // .pg_query.RoleSpecType roletype = 1 [json_name = "roletype"]; - void clear_roletype(); - ::pg_query::RoleSpecType roletype() const; - void set_roletype(::pg_query::RoleSpecType value); - private: - ::pg_query::RoleSpecType _internal_roletype() const; - void _internal_set_roletype(::pg_query::RoleSpecType value); - public: - - // int32 location = 3 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.RoleSpec) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr rolename_; - int roletype_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class TriggerTransition final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.TriggerTransition) */ { - public: - inline TriggerTransition() : TriggerTransition(nullptr) {} - ~TriggerTransition() override; - explicit PROTOBUF_CONSTEXPR TriggerTransition(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - TriggerTransition(const TriggerTransition& from); - TriggerTransition(TriggerTransition&& from) noexcept - : TriggerTransition() { - *this = ::std::move(from); - } - - inline TriggerTransition& operator=(const TriggerTransition& from) { - CopyFrom(from); - return *this; - } - inline TriggerTransition& operator=(TriggerTransition&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TriggerTransition& default_instance() { - return *internal_default_instance(); - } - static inline const TriggerTransition* internal_default_instance() { - return reinterpret_cast( - &_TriggerTransition_default_instance_); - } - static constexpr int kIndexInFileMessages = - 230; - - friend void swap(TriggerTransition& a, TriggerTransition& b) { - a.Swap(&b); - } - inline void Swap(TriggerTransition* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TriggerTransition* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TriggerTransition* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const TriggerTransition& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const TriggerTransition& from) { - TriggerTransition::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TriggerTransition* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.TriggerTransition"; - } - protected: - explicit TriggerTransition(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNameFieldNumber = 1, - kIsNewFieldNumber = 2, - kIsTableFieldNumber = 3, - }; - // string name = 1 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // bool is_new = 2 [json_name = "isNew"]; - void clear_is_new(); - bool is_new() const; - void set_is_new(bool value); - private: - bool _internal_is_new() const; - void _internal_set_is_new(bool value); - public: - - // bool is_table = 3 [json_name = "isTable"]; - void clear_is_table(); - bool is_table() const; - void set_is_table(bool value); - private: - bool _internal_is_table() const; - void _internal_set_is_table(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.TriggerTransition) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - bool is_new_; - bool is_table_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class PartitionElem final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.PartitionElem) */ { - public: - inline PartitionElem() : PartitionElem(nullptr) {} - ~PartitionElem() override; - explicit PROTOBUF_CONSTEXPR PartitionElem(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PartitionElem(const PartitionElem& from); - PartitionElem(PartitionElem&& from) noexcept - : PartitionElem() { - *this = ::std::move(from); - } - - inline PartitionElem& operator=(const PartitionElem& from) { - CopyFrom(from); - return *this; - } - inline PartitionElem& operator=(PartitionElem&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const PartitionElem& default_instance() { - return *internal_default_instance(); - } - static inline const PartitionElem* internal_default_instance() { - return reinterpret_cast( - &_PartitionElem_default_instance_); - } - static constexpr int kIndexInFileMessages = - 231; - - friend void swap(PartitionElem& a, PartitionElem& b) { - a.Swap(&b); - } - inline void Swap(PartitionElem* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PartitionElem* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PartitionElem* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PartitionElem& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const PartitionElem& from) { - PartitionElem::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PartitionElem* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.PartitionElem"; - } - protected: - explicit PartitionElem(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCollationFieldNumber = 3, - kOpclassFieldNumber = 4, - kNameFieldNumber = 1, - kExprFieldNumber = 2, - kLocationFieldNumber = 5, - }; - // repeated .pg_query.Node collation = 3 [json_name = "collation"]; - int collation_size() const; - private: - int _internal_collation_size() const; - public: - void clear_collation(); - ::pg_query::Node* mutable_collation(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_collation(); - private: - const ::pg_query::Node& _internal_collation(int index) const; - ::pg_query::Node* _internal_add_collation(); - public: - const ::pg_query::Node& collation(int index) const; - ::pg_query::Node* add_collation(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - collation() const; - - // repeated .pg_query.Node opclass = 4 [json_name = "opclass"]; - int opclass_size() const; - private: - int _internal_opclass_size() const; - public: - void clear_opclass(); - ::pg_query::Node* mutable_opclass(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_opclass(); - private: - const ::pg_query::Node& _internal_opclass(int index) const; - ::pg_query::Node* _internal_add_opclass(); - public: - const ::pg_query::Node& opclass(int index) const; - ::pg_query::Node* add_opclass(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - opclass() const; - - // string name = 1 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // .pg_query.Node expr = 2 [json_name = "expr"]; - bool has_expr() const; - private: - bool _internal_has_expr() const; - public: - void clear_expr(); - const ::pg_query::Node& expr() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_expr(); - ::pg_query::Node* mutable_expr(); - void set_allocated_expr(::pg_query::Node* expr); - private: - const ::pg_query::Node& _internal_expr() const; - ::pg_query::Node* _internal_mutable_expr(); - public: - void unsafe_arena_set_allocated_expr( - ::pg_query::Node* expr); - ::pg_query::Node* unsafe_arena_release_expr(); - - // int32 location = 5 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.PartitionElem) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > collation_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > opclass_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::pg_query::Node* expr_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class PartitionSpec final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.PartitionSpec) */ { - public: - inline PartitionSpec() : PartitionSpec(nullptr) {} - ~PartitionSpec() override; - explicit PROTOBUF_CONSTEXPR PartitionSpec(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PartitionSpec(const PartitionSpec& from); - PartitionSpec(PartitionSpec&& from) noexcept - : PartitionSpec() { - *this = ::std::move(from); - } - - inline PartitionSpec& operator=(const PartitionSpec& from) { - CopyFrom(from); - return *this; - } - inline PartitionSpec& operator=(PartitionSpec&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const PartitionSpec& default_instance() { - return *internal_default_instance(); - } - static inline const PartitionSpec* internal_default_instance() { - return reinterpret_cast( - &_PartitionSpec_default_instance_); - } - static constexpr int kIndexInFileMessages = - 232; - - friend void swap(PartitionSpec& a, PartitionSpec& b) { - a.Swap(&b); - } - inline void Swap(PartitionSpec* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PartitionSpec* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PartitionSpec* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PartitionSpec& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const PartitionSpec& from) { - PartitionSpec::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PartitionSpec* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.PartitionSpec"; - } - protected: - explicit PartitionSpec(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartParamsFieldNumber = 2, - kStrategyFieldNumber = 1, - kLocationFieldNumber = 3, - }; - // repeated .pg_query.Node part_params = 2 [json_name = "partParams"]; - int part_params_size() const; - private: - int _internal_part_params_size() const; - public: - void clear_part_params(); - ::pg_query::Node* mutable_part_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_part_params(); - private: - const ::pg_query::Node& _internal_part_params(int index) const; - ::pg_query::Node* _internal_add_part_params(); - public: - const ::pg_query::Node& part_params(int index) const; - ::pg_query::Node* add_part_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - part_params() const; - - // string strategy = 1 [json_name = "strategy"]; - void clear_strategy(); - const std::string& strategy() const; - template - void set_strategy(ArgT0&& arg0, ArgT... args); - std::string* mutable_strategy(); - PROTOBUF_NODISCARD std::string* release_strategy(); - void set_allocated_strategy(std::string* strategy); - private: - const std::string& _internal_strategy() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_strategy(const std::string& value); - std::string* _internal_mutable_strategy(); - public: - - // int32 location = 3 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.PartitionSpec) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > part_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr strategy_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class PartitionBoundSpec final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.PartitionBoundSpec) */ { - public: - inline PartitionBoundSpec() : PartitionBoundSpec(nullptr) {} - ~PartitionBoundSpec() override; - explicit PROTOBUF_CONSTEXPR PartitionBoundSpec(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PartitionBoundSpec(const PartitionBoundSpec& from); - PartitionBoundSpec(PartitionBoundSpec&& from) noexcept - : PartitionBoundSpec() { - *this = ::std::move(from); - } - - inline PartitionBoundSpec& operator=(const PartitionBoundSpec& from) { - CopyFrom(from); - return *this; - } - inline PartitionBoundSpec& operator=(PartitionBoundSpec&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const PartitionBoundSpec& default_instance() { - return *internal_default_instance(); - } - static inline const PartitionBoundSpec* internal_default_instance() { - return reinterpret_cast( - &_PartitionBoundSpec_default_instance_); - } - static constexpr int kIndexInFileMessages = - 233; - - friend void swap(PartitionBoundSpec& a, PartitionBoundSpec& b) { - a.Swap(&b); - } - inline void Swap(PartitionBoundSpec* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PartitionBoundSpec* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PartitionBoundSpec* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PartitionBoundSpec& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const PartitionBoundSpec& from) { - PartitionBoundSpec::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PartitionBoundSpec* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.PartitionBoundSpec"; - } - protected: - explicit PartitionBoundSpec(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kListdatumsFieldNumber = 5, - kLowerdatumsFieldNumber = 6, - kUpperdatumsFieldNumber = 7, - kStrategyFieldNumber = 1, - kIsDefaultFieldNumber = 2, - kModulusFieldNumber = 3, - kRemainderFieldNumber = 4, - kLocationFieldNumber = 8, - }; - // repeated .pg_query.Node listdatums = 5 [json_name = "listdatums"]; - int listdatums_size() const; - private: - int _internal_listdatums_size() const; - public: - void clear_listdatums(); - ::pg_query::Node* mutable_listdatums(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_listdatums(); - private: - const ::pg_query::Node& _internal_listdatums(int index) const; - ::pg_query::Node* _internal_add_listdatums(); - public: - const ::pg_query::Node& listdatums(int index) const; - ::pg_query::Node* add_listdatums(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - listdatums() const; - - // repeated .pg_query.Node lowerdatums = 6 [json_name = "lowerdatums"]; - int lowerdatums_size() const; - private: - int _internal_lowerdatums_size() const; - public: - void clear_lowerdatums(); - ::pg_query::Node* mutable_lowerdatums(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_lowerdatums(); - private: - const ::pg_query::Node& _internal_lowerdatums(int index) const; - ::pg_query::Node* _internal_add_lowerdatums(); - public: - const ::pg_query::Node& lowerdatums(int index) const; - ::pg_query::Node* add_lowerdatums(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - lowerdatums() const; - - // repeated .pg_query.Node upperdatums = 7 [json_name = "upperdatums"]; - int upperdatums_size() const; - private: - int _internal_upperdatums_size() const; - public: - void clear_upperdatums(); - ::pg_query::Node* mutable_upperdatums(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_upperdatums(); - private: - const ::pg_query::Node& _internal_upperdatums(int index) const; - ::pg_query::Node* _internal_add_upperdatums(); - public: - const ::pg_query::Node& upperdatums(int index) const; - ::pg_query::Node* add_upperdatums(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - upperdatums() const; - - // string strategy = 1 [json_name = "strategy"]; - void clear_strategy(); - const std::string& strategy() const; - template - void set_strategy(ArgT0&& arg0, ArgT... args); - std::string* mutable_strategy(); - PROTOBUF_NODISCARD std::string* release_strategy(); - void set_allocated_strategy(std::string* strategy); - private: - const std::string& _internal_strategy() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_strategy(const std::string& value); - std::string* _internal_mutable_strategy(); - public: - - // bool is_default = 2 [json_name = "is_default"]; - void clear_is_default(); - bool is_default() const; - void set_is_default(bool value); - private: - bool _internal_is_default() const; - void _internal_set_is_default(bool value); - public: - - // int32 modulus = 3 [json_name = "modulus"]; - void clear_modulus(); - int32_t modulus() const; - void set_modulus(int32_t value); - private: - int32_t _internal_modulus() const; - void _internal_set_modulus(int32_t value); - public: - - // int32 remainder = 4 [json_name = "remainder"]; - void clear_remainder(); - int32_t remainder() const; - void set_remainder(int32_t value); - private: - int32_t _internal_remainder() const; - void _internal_set_remainder(int32_t value); - public: - - // int32 location = 8 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.PartitionBoundSpec) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > listdatums_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > lowerdatums_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > upperdatums_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr strategy_; - bool is_default_; - int32_t modulus_; - int32_t remainder_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class PartitionRangeDatum final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.PartitionRangeDatum) */ { - public: - inline PartitionRangeDatum() : PartitionRangeDatum(nullptr) {} - ~PartitionRangeDatum() override; - explicit PROTOBUF_CONSTEXPR PartitionRangeDatum(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PartitionRangeDatum(const PartitionRangeDatum& from); - PartitionRangeDatum(PartitionRangeDatum&& from) noexcept - : PartitionRangeDatum() { - *this = ::std::move(from); - } - - inline PartitionRangeDatum& operator=(const PartitionRangeDatum& from) { - CopyFrom(from); - return *this; - } - inline PartitionRangeDatum& operator=(PartitionRangeDatum&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const PartitionRangeDatum& default_instance() { - return *internal_default_instance(); - } - static inline const PartitionRangeDatum* internal_default_instance() { - return reinterpret_cast( - &_PartitionRangeDatum_default_instance_); - } - static constexpr int kIndexInFileMessages = - 234; - - friend void swap(PartitionRangeDatum& a, PartitionRangeDatum& b) { - a.Swap(&b); - } - inline void Swap(PartitionRangeDatum* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PartitionRangeDatum* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PartitionRangeDatum* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PartitionRangeDatum& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const PartitionRangeDatum& from) { - PartitionRangeDatum::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PartitionRangeDatum* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.PartitionRangeDatum"; - } - protected: - explicit PartitionRangeDatum(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kValueFieldNumber = 2, - kKindFieldNumber = 1, - kLocationFieldNumber = 3, - }; - // .pg_query.Node value = 2 [json_name = "value"]; - bool has_value() const; - private: - bool _internal_has_value() const; - public: - void clear_value(); - const ::pg_query::Node& value() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_value(); - ::pg_query::Node* mutable_value(); - void set_allocated_value(::pg_query::Node* value); - private: - const ::pg_query::Node& _internal_value() const; - ::pg_query::Node* _internal_mutable_value(); - public: - void unsafe_arena_set_allocated_value( - ::pg_query::Node* value); - ::pg_query::Node* unsafe_arena_release_value(); - - // .pg_query.PartitionRangeDatumKind kind = 1 [json_name = "kind"]; - void clear_kind(); - ::pg_query::PartitionRangeDatumKind kind() const; - void set_kind(::pg_query::PartitionRangeDatumKind value); - private: - ::pg_query::PartitionRangeDatumKind _internal_kind() const; - void _internal_set_kind(::pg_query::PartitionRangeDatumKind value); - public: - - // int32 location = 3 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.PartitionRangeDatum) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::Node* value_; - int kind_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class PartitionCmd final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.PartitionCmd) */ { - public: - inline PartitionCmd() : PartitionCmd(nullptr) {} - ~PartitionCmd() override; - explicit PROTOBUF_CONSTEXPR PartitionCmd(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PartitionCmd(const PartitionCmd& from); - PartitionCmd(PartitionCmd&& from) noexcept - : PartitionCmd() { - *this = ::std::move(from); - } - - inline PartitionCmd& operator=(const PartitionCmd& from) { - CopyFrom(from); - return *this; - } - inline PartitionCmd& operator=(PartitionCmd&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const PartitionCmd& default_instance() { - return *internal_default_instance(); - } - static inline const PartitionCmd* internal_default_instance() { - return reinterpret_cast( - &_PartitionCmd_default_instance_); - } - static constexpr int kIndexInFileMessages = - 235; - - friend void swap(PartitionCmd& a, PartitionCmd& b) { - a.Swap(&b); - } - inline void Swap(PartitionCmd* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PartitionCmd* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PartitionCmd* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PartitionCmd& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const PartitionCmd& from) { - PartitionCmd::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PartitionCmd* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.PartitionCmd"; - } - protected: - explicit PartitionCmd(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNameFieldNumber = 1, - kBoundFieldNumber = 2, - kConcurrentFieldNumber = 3, - }; - // .pg_query.RangeVar name = 1 [json_name = "name"]; - bool has_name() const; - private: - bool _internal_has_name() const; - public: - void clear_name(); - const ::pg_query::RangeVar& name() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_name(); - ::pg_query::RangeVar* mutable_name(); - void set_allocated_name(::pg_query::RangeVar* name); - private: - const ::pg_query::RangeVar& _internal_name() const; - ::pg_query::RangeVar* _internal_mutable_name(); - public: - void unsafe_arena_set_allocated_name( - ::pg_query::RangeVar* name); - ::pg_query::RangeVar* unsafe_arena_release_name(); - - // .pg_query.PartitionBoundSpec bound = 2 [json_name = "bound"]; - bool has_bound() const; - private: - bool _internal_has_bound() const; - public: - void clear_bound(); - const ::pg_query::PartitionBoundSpec& bound() const; - PROTOBUF_NODISCARD ::pg_query::PartitionBoundSpec* release_bound(); - ::pg_query::PartitionBoundSpec* mutable_bound(); - void set_allocated_bound(::pg_query::PartitionBoundSpec* bound); - private: - const ::pg_query::PartitionBoundSpec& _internal_bound() const; - ::pg_query::PartitionBoundSpec* _internal_mutable_bound(); - public: - void unsafe_arena_set_allocated_bound( - ::pg_query::PartitionBoundSpec* bound); - ::pg_query::PartitionBoundSpec* unsafe_arena_release_bound(); - - // bool concurrent = 3 [json_name = "concurrent"]; - void clear_concurrent(); - bool concurrent() const; - void set_concurrent(bool value); - private: - bool _internal_concurrent() const; - void _internal_set_concurrent(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.PartitionCmd) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::pg_query::RangeVar* name_; - ::pg_query::PartitionBoundSpec* bound_; - bool concurrent_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class VacuumRelation final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.VacuumRelation) */ { - public: - inline VacuumRelation() : VacuumRelation(nullptr) {} - ~VacuumRelation() override; - explicit PROTOBUF_CONSTEXPR VacuumRelation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - VacuumRelation(const VacuumRelation& from); - VacuumRelation(VacuumRelation&& from) noexcept - : VacuumRelation() { - *this = ::std::move(from); - } - - inline VacuumRelation& operator=(const VacuumRelation& from) { - CopyFrom(from); - return *this; - } - inline VacuumRelation& operator=(VacuumRelation&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const VacuumRelation& default_instance() { - return *internal_default_instance(); - } - static inline const VacuumRelation* internal_default_instance() { - return reinterpret_cast( - &_VacuumRelation_default_instance_); - } - static constexpr int kIndexInFileMessages = - 236; - - friend void swap(VacuumRelation& a, VacuumRelation& b) { - a.Swap(&b); - } - inline void Swap(VacuumRelation* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(VacuumRelation* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - VacuumRelation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const VacuumRelation& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const VacuumRelation& from) { - VacuumRelation::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(VacuumRelation* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.VacuumRelation"; - } - protected: - explicit VacuumRelation(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kVaColsFieldNumber = 3, - kRelationFieldNumber = 1, - kOidFieldNumber = 2, - }; - // repeated .pg_query.Node va_cols = 3 [json_name = "va_cols"]; - int va_cols_size() const; - private: - int _internal_va_cols_size() const; - public: - void clear_va_cols(); - ::pg_query::Node* mutable_va_cols(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_va_cols(); - private: - const ::pg_query::Node& _internal_va_cols(int index) const; - ::pg_query::Node* _internal_add_va_cols(); - public: - const ::pg_query::Node& va_cols(int index) const; - ::pg_query::Node* add_va_cols(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - va_cols() const; - - // .pg_query.RangeVar relation = 1 [json_name = "relation"]; - bool has_relation() const; - private: - bool _internal_has_relation() const; - public: - void clear_relation(); - const ::pg_query::RangeVar& relation() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_relation(); - ::pg_query::RangeVar* mutable_relation(); - void set_allocated_relation(::pg_query::RangeVar* relation); - private: - const ::pg_query::RangeVar& _internal_relation() const; - ::pg_query::RangeVar* _internal_mutable_relation(); - public: - void unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation); - ::pg_query::RangeVar* unsafe_arena_release_relation(); - - // uint32 oid = 2 [json_name = "oid"]; - void clear_oid(); - uint32_t oid() const; - void set_oid(uint32_t value); - private: - uint32_t _internal_oid() const; - void _internal_set_oid(uint32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.VacuumRelation) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > va_cols_; - ::pg_query::RangeVar* relation_; - uint32_t oid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class PublicationObjSpec final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.PublicationObjSpec) */ { - public: - inline PublicationObjSpec() : PublicationObjSpec(nullptr) {} - ~PublicationObjSpec() override; - explicit PROTOBUF_CONSTEXPR PublicationObjSpec(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PublicationObjSpec(const PublicationObjSpec& from); - PublicationObjSpec(PublicationObjSpec&& from) noexcept - : PublicationObjSpec() { - *this = ::std::move(from); - } - - inline PublicationObjSpec& operator=(const PublicationObjSpec& from) { - CopyFrom(from); - return *this; - } - inline PublicationObjSpec& operator=(PublicationObjSpec&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const PublicationObjSpec& default_instance() { - return *internal_default_instance(); - } - static inline const PublicationObjSpec* internal_default_instance() { - return reinterpret_cast( - &_PublicationObjSpec_default_instance_); - } - static constexpr int kIndexInFileMessages = - 237; - - friend void swap(PublicationObjSpec& a, PublicationObjSpec& b) { - a.Swap(&b); - } - inline void Swap(PublicationObjSpec* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PublicationObjSpec* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PublicationObjSpec* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PublicationObjSpec& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const PublicationObjSpec& from) { - PublicationObjSpec::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PublicationObjSpec* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.PublicationObjSpec"; - } - protected: - explicit PublicationObjSpec(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNameFieldNumber = 2, - kPubtableFieldNumber = 3, - kPubobjtypeFieldNumber = 1, - kLocationFieldNumber = 4, - }; - // string name = 2 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // .pg_query.PublicationTable pubtable = 3 [json_name = "pubtable"]; - bool has_pubtable() const; - private: - bool _internal_has_pubtable() const; - public: - void clear_pubtable(); - const ::pg_query::PublicationTable& pubtable() const; - PROTOBUF_NODISCARD ::pg_query::PublicationTable* release_pubtable(); - ::pg_query::PublicationTable* mutable_pubtable(); - void set_allocated_pubtable(::pg_query::PublicationTable* pubtable); - private: - const ::pg_query::PublicationTable& _internal_pubtable() const; - ::pg_query::PublicationTable* _internal_mutable_pubtable(); - public: - void unsafe_arena_set_allocated_pubtable( - ::pg_query::PublicationTable* pubtable); - ::pg_query::PublicationTable* unsafe_arena_release_pubtable(); - - // .pg_query.PublicationObjSpecType pubobjtype = 1 [json_name = "pubobjtype"]; - void clear_pubobjtype(); - ::pg_query::PublicationObjSpecType pubobjtype() const; - void set_pubobjtype(::pg_query::PublicationObjSpecType value); - private: - ::pg_query::PublicationObjSpecType _internal_pubobjtype() const; - void _internal_set_pubobjtype(::pg_query::PublicationObjSpecType value); - public: - - // int32 location = 4 [json_name = "location"]; - void clear_location(); - int32_t location() const; - void set_location(int32_t value); - private: - int32_t _internal_location() const; - void _internal_set_location(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.PublicationObjSpec) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::pg_query::PublicationTable* pubtable_; - int pubobjtype_; - int32_t location_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class PublicationTable final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.PublicationTable) */ { - public: - inline PublicationTable() : PublicationTable(nullptr) {} - ~PublicationTable() override; - explicit PROTOBUF_CONSTEXPR PublicationTable(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PublicationTable(const PublicationTable& from); - PublicationTable(PublicationTable&& from) noexcept - : PublicationTable() { - *this = ::std::move(from); - } - - inline PublicationTable& operator=(const PublicationTable& from) { - CopyFrom(from); - return *this; - } - inline PublicationTable& operator=(PublicationTable&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const PublicationTable& default_instance() { - return *internal_default_instance(); - } - static inline const PublicationTable* internal_default_instance() { - return reinterpret_cast( - &_PublicationTable_default_instance_); - } - static constexpr int kIndexInFileMessages = - 238; - - friend void swap(PublicationTable& a, PublicationTable& b) { - a.Swap(&b); - } - inline void Swap(PublicationTable* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PublicationTable* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PublicationTable* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PublicationTable& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const PublicationTable& from) { - PublicationTable::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PublicationTable* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.PublicationTable"; - } - protected: - explicit PublicationTable(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kColumnsFieldNumber = 3, - kRelationFieldNumber = 1, - kWhereClauseFieldNumber = 2, - }; - // repeated .pg_query.Node columns = 3 [json_name = "columns"]; - int columns_size() const; - private: - int _internal_columns_size() const; - public: - void clear_columns(); - ::pg_query::Node* mutable_columns(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* - mutable_columns(); - private: - const ::pg_query::Node& _internal_columns(int index) const; - ::pg_query::Node* _internal_add_columns(); - public: - const ::pg_query::Node& columns(int index) const; - ::pg_query::Node* add_columns(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& - columns() const; - - // .pg_query.RangeVar relation = 1 [json_name = "relation"]; - bool has_relation() const; - private: - bool _internal_has_relation() const; - public: - void clear_relation(); - const ::pg_query::RangeVar& relation() const; - PROTOBUF_NODISCARD ::pg_query::RangeVar* release_relation(); - ::pg_query::RangeVar* mutable_relation(); - void set_allocated_relation(::pg_query::RangeVar* relation); - private: - const ::pg_query::RangeVar& _internal_relation() const; - ::pg_query::RangeVar* _internal_mutable_relation(); - public: - void unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation); - ::pg_query::RangeVar* unsafe_arena_release_relation(); - - // .pg_query.Node where_clause = 2 [json_name = "whereClause"]; - bool has_where_clause() const; - private: - bool _internal_has_where_clause() const; - public: - void clear_where_clause(); - const ::pg_query::Node& where_clause() const; - PROTOBUF_NODISCARD ::pg_query::Node* release_where_clause(); - ::pg_query::Node* mutable_where_clause(); - void set_allocated_where_clause(::pg_query::Node* where_clause); - private: - const ::pg_query::Node& _internal_where_clause() const; - ::pg_query::Node* _internal_mutable_where_clause(); - public: - void unsafe_arena_set_allocated_where_clause( - ::pg_query::Node* where_clause); - ::pg_query::Node* unsafe_arena_release_where_clause(); - - // @@protoc_insertion_point(class_scope:pg_query.PublicationTable) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node > columns_; - ::pg_query::RangeVar* relation_; - ::pg_query::Node* where_clause_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class InlineCodeBlock final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.InlineCodeBlock) */ { - public: - inline InlineCodeBlock() : InlineCodeBlock(nullptr) {} - ~InlineCodeBlock() override; - explicit PROTOBUF_CONSTEXPR InlineCodeBlock(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - InlineCodeBlock(const InlineCodeBlock& from); - InlineCodeBlock(InlineCodeBlock&& from) noexcept - : InlineCodeBlock() { - *this = ::std::move(from); - } - - inline InlineCodeBlock& operator=(const InlineCodeBlock& from) { - CopyFrom(from); - return *this; - } - inline InlineCodeBlock& operator=(InlineCodeBlock&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const InlineCodeBlock& default_instance() { - return *internal_default_instance(); - } - static inline const InlineCodeBlock* internal_default_instance() { - return reinterpret_cast( - &_InlineCodeBlock_default_instance_); - } - static constexpr int kIndexInFileMessages = - 239; - - friend void swap(InlineCodeBlock& a, InlineCodeBlock& b) { - a.Swap(&b); - } - inline void Swap(InlineCodeBlock* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(InlineCodeBlock* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - InlineCodeBlock* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const InlineCodeBlock& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const InlineCodeBlock& from) { - InlineCodeBlock::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(InlineCodeBlock* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.InlineCodeBlock"; - } - protected: - explicit InlineCodeBlock(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSourceTextFieldNumber = 1, - kLangOidFieldNumber = 2, - kLangIsTrustedFieldNumber = 3, - kAtomicFieldNumber = 4, - }; - // string source_text = 1 [json_name = "source_text"]; - void clear_source_text(); - const std::string& source_text() const; - template - void set_source_text(ArgT0&& arg0, ArgT... args); - std::string* mutable_source_text(); - PROTOBUF_NODISCARD std::string* release_source_text(); - void set_allocated_source_text(std::string* source_text); - private: - const std::string& _internal_source_text() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_source_text(const std::string& value); - std::string* _internal_mutable_source_text(); - public: - - // uint32 lang_oid = 2 [json_name = "langOid"]; - void clear_lang_oid(); - uint32_t lang_oid() const; - void set_lang_oid(uint32_t value); - private: - uint32_t _internal_lang_oid() const; - void _internal_set_lang_oid(uint32_t value); - public: - - // bool lang_is_trusted = 3 [json_name = "langIsTrusted"]; - void clear_lang_is_trusted(); - bool lang_is_trusted() const; - void set_lang_is_trusted(bool value); - private: - bool _internal_lang_is_trusted() const; - void _internal_set_lang_is_trusted(bool value); - public: - - // bool atomic = 4 [json_name = "atomic"]; - void clear_atomic(); - bool atomic() const; - void set_atomic(bool value); - private: - bool _internal_atomic() const; - void _internal_set_atomic(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.InlineCodeBlock) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr source_text_; - uint32_t lang_oid_; - bool lang_is_trusted_; - bool atomic_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class CallContext final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.CallContext) */ { - public: - inline CallContext() : CallContext(nullptr) {} - ~CallContext() override; - explicit PROTOBUF_CONSTEXPR CallContext(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CallContext(const CallContext& from); - CallContext(CallContext&& from) noexcept - : CallContext() { - *this = ::std::move(from); - } - - inline CallContext& operator=(const CallContext& from) { - CopyFrom(from); - return *this; - } - inline CallContext& operator=(CallContext&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CallContext& default_instance() { - return *internal_default_instance(); - } - static inline const CallContext* internal_default_instance() { - return reinterpret_cast( - &_CallContext_default_instance_); - } - static constexpr int kIndexInFileMessages = - 240; - - friend void swap(CallContext& a, CallContext& b) { - a.Swap(&b); - } - inline void Swap(CallContext* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CallContext* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CallContext* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CallContext& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CallContext& from) { - CallContext::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CallContext* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.CallContext"; - } - protected: - explicit CallContext(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAtomicFieldNumber = 1, - }; - // bool atomic = 1 [json_name = "atomic"]; - void clear_atomic(); - bool atomic() const; - void set_atomic(bool value); - private: - bool _internal_atomic() const; - void _internal_set_atomic(bool value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.CallContext) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - bool atomic_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// ------------------------------------------------------------------- - -class ScanToken final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:pg_query.ScanToken) */ { - public: - inline ScanToken() : ScanToken(nullptr) {} - ~ScanToken() override; - explicit PROTOBUF_CONSTEXPR ScanToken(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ScanToken(const ScanToken& from); - ScanToken(ScanToken&& from) noexcept - : ScanToken() { - *this = ::std::move(from); - } - - inline ScanToken& operator=(const ScanToken& from) { - CopyFrom(from); - return *this; - } - inline ScanToken& operator=(ScanToken&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ScanToken& default_instance() { - return *internal_default_instance(); - } - static inline const ScanToken* internal_default_instance() { - return reinterpret_cast( - &_ScanToken_default_instance_); - } - static constexpr int kIndexInFileMessages = - 241; - - friend void swap(ScanToken& a, ScanToken& b) { - a.Swap(&b); - } - inline void Swap(ScanToken* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ScanToken* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ScanToken* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ScanToken& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ScanToken& from) { - ScanToken::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ScanToken* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "pg_query.ScanToken"; - } - protected: - explicit ScanToken(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kStartFieldNumber = 1, - kEndFieldNumber = 2, - kTokenFieldNumber = 4, - kKeywordKindFieldNumber = 5, - }; - // int32 start = 1; - void clear_start(); - int32_t start() const; - void set_start(int32_t value); - private: - int32_t _internal_start() const; - void _internal_set_start(int32_t value); - public: - - // int32 end = 2; - void clear_end(); - int32_t end() const; - void set_end(int32_t value); - private: - int32_t _internal_end() const; - void _internal_set_end(int32_t value); - public: - - // .pg_query.Token token = 4; - void clear_token(); - ::pg_query::Token token() const; - void set_token(::pg_query::Token value); - private: - ::pg_query::Token _internal_token() const; - void _internal_set_token(::pg_query::Token value); - public: - - // .pg_query.KeywordKind keyword_kind = 5; - void clear_keyword_kind(); - ::pg_query::KeywordKind keyword_kind() const; - void set_keyword_kind(::pg_query::KeywordKind value); - private: - ::pg_query::KeywordKind _internal_keyword_kind() const; - void _internal_set_keyword_kind(::pg_query::KeywordKind value); - public: - - // @@protoc_insertion_point(class_scope:pg_query.ScanToken) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - int32_t start_; - int32_t end_; - int token_; - int keyword_kind_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protobuf_2fpg_5fquery_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ParseResult - -// int32 version = 1; -inline void ParseResult::clear_version() { - _impl_.version_ = 0; -} -inline int32_t ParseResult::_internal_version() const { - return _impl_.version_; -} -inline int32_t ParseResult::version() const { - // @@protoc_insertion_point(field_get:pg_query.ParseResult.version) - return _internal_version(); -} -inline void ParseResult::_internal_set_version(int32_t value) { - - _impl_.version_ = value; -} -inline void ParseResult::set_version(int32_t value) { - _internal_set_version(value); - // @@protoc_insertion_point(field_set:pg_query.ParseResult.version) -} - -// repeated .pg_query.RawStmt stmts = 2; -inline int ParseResult::_internal_stmts_size() const { - return _impl_.stmts_.size(); -} -inline int ParseResult::stmts_size() const { - return _internal_stmts_size(); -} -inline void ParseResult::clear_stmts() { - _impl_.stmts_.Clear(); -} -inline ::pg_query::RawStmt* ParseResult::mutable_stmts(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.ParseResult.stmts) - return _impl_.stmts_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::RawStmt >* -ParseResult::mutable_stmts() { - // @@protoc_insertion_point(field_mutable_list:pg_query.ParseResult.stmts) - return &_impl_.stmts_; -} -inline const ::pg_query::RawStmt& ParseResult::_internal_stmts(int index) const { - return _impl_.stmts_.Get(index); -} -inline const ::pg_query::RawStmt& ParseResult::stmts(int index) const { - // @@protoc_insertion_point(field_get:pg_query.ParseResult.stmts) - return _internal_stmts(index); -} -inline ::pg_query::RawStmt* ParseResult::_internal_add_stmts() { - return _impl_.stmts_.Add(); -} -inline ::pg_query::RawStmt* ParseResult::add_stmts() { - ::pg_query::RawStmt* _add = _internal_add_stmts(); - // @@protoc_insertion_point(field_add:pg_query.ParseResult.stmts) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::RawStmt >& -ParseResult::stmts() const { - // @@protoc_insertion_point(field_list:pg_query.ParseResult.stmts) - return _impl_.stmts_; -} - -// ------------------------------------------------------------------- - -// ScanResult - -// int32 version = 1; -inline void ScanResult::clear_version() { - _impl_.version_ = 0; -} -inline int32_t ScanResult::_internal_version() const { - return _impl_.version_; -} -inline int32_t ScanResult::version() const { - // @@protoc_insertion_point(field_get:pg_query.ScanResult.version) - return _internal_version(); -} -inline void ScanResult::_internal_set_version(int32_t value) { - - _impl_.version_ = value; -} -inline void ScanResult::set_version(int32_t value) { - _internal_set_version(value); - // @@protoc_insertion_point(field_set:pg_query.ScanResult.version) -} - -// repeated .pg_query.ScanToken tokens = 2; -inline int ScanResult::_internal_tokens_size() const { - return _impl_.tokens_.size(); -} -inline int ScanResult::tokens_size() const { - return _internal_tokens_size(); -} -inline void ScanResult::clear_tokens() { - _impl_.tokens_.Clear(); -} -inline ::pg_query::ScanToken* ScanResult::mutable_tokens(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.ScanResult.tokens) - return _impl_.tokens_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::ScanToken >* -ScanResult::mutable_tokens() { - // @@protoc_insertion_point(field_mutable_list:pg_query.ScanResult.tokens) - return &_impl_.tokens_; -} -inline const ::pg_query::ScanToken& ScanResult::_internal_tokens(int index) const { - return _impl_.tokens_.Get(index); -} -inline const ::pg_query::ScanToken& ScanResult::tokens(int index) const { - // @@protoc_insertion_point(field_get:pg_query.ScanResult.tokens) - return _internal_tokens(index); -} -inline ::pg_query::ScanToken* ScanResult::_internal_add_tokens() { - return _impl_.tokens_.Add(); -} -inline ::pg_query::ScanToken* ScanResult::add_tokens() { - ::pg_query::ScanToken* _add = _internal_add_tokens(); - // @@protoc_insertion_point(field_add:pg_query.ScanResult.tokens) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::ScanToken >& -ScanResult::tokens() const { - // @@protoc_insertion_point(field_list:pg_query.ScanResult.tokens) - return _impl_.tokens_; -} - -// ------------------------------------------------------------------- - -// Node - -// .pg_query.Alias alias = 1 [json_name = "Alias"]; -inline bool Node::_internal_has_alias() const { - return node_case() == kAlias; -} -inline bool Node::has_alias() const { - return _internal_has_alias(); -} -inline void Node::set_has_alias() { - _impl_._oneof_case_[0] = kAlias; -} -inline void Node::clear_alias() { - if (_internal_has_alias()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alias_; - } - clear_has_node(); - } -} -inline ::pg_query::Alias* Node::release_alias() { - // @@protoc_insertion_point(field_release:pg_query.Node.alias) - if (_internal_has_alias()) { - clear_has_node(); - ::pg_query::Alias* temp = _impl_.node_.alias_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alias_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::Alias& Node::_internal_alias() const { - return _internal_has_alias() - ? *_impl_.node_.alias_ - : reinterpret_cast< ::pg_query::Alias&>(::pg_query::_Alias_default_instance_); -} -inline const ::pg_query::Alias& Node::alias() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alias) - return _internal_alias(); -} -inline ::pg_query::Alias* Node::unsafe_arena_release_alias() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alias) - if (_internal_has_alias()) { - clear_has_node(); - ::pg_query::Alias* temp = _impl_.node_.alias_; - _impl_.node_.alias_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alias(::pg_query::Alias* alias) { - clear_node(); - if (alias) { - set_has_alias(); - _impl_.node_.alias_ = alias; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alias) -} -inline ::pg_query::Alias* Node::_internal_mutable_alias() { - if (!_internal_has_alias()) { - clear_node(); - set_has_alias(); - _impl_.node_.alias_ = CreateMaybeMessage< ::pg_query::Alias >(GetArenaForAllocation()); - } - return _impl_.node_.alias_; -} -inline ::pg_query::Alias* Node::mutable_alias() { - ::pg_query::Alias* _msg = _internal_mutable_alias(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alias) - return _msg; -} - -// .pg_query.RangeVar range_var = 2 [json_name = "RangeVar"]; -inline bool Node::_internal_has_range_var() const { - return node_case() == kRangeVar; -} -inline bool Node::has_range_var() const { - return _internal_has_range_var(); -} -inline void Node::set_has_range_var() { - _impl_._oneof_case_[0] = kRangeVar; -} -inline void Node::clear_range_var() { - if (_internal_has_range_var()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.range_var_; - } - clear_has_node(); - } -} -inline ::pg_query::RangeVar* Node::release_range_var() { - // @@protoc_insertion_point(field_release:pg_query.Node.range_var) - if (_internal_has_range_var()) { - clear_has_node(); - ::pg_query::RangeVar* temp = _impl_.node_.range_var_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.range_var_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::RangeVar& Node::_internal_range_var() const { - return _internal_has_range_var() - ? *_impl_.node_.range_var_ - : reinterpret_cast< ::pg_query::RangeVar&>(::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& Node::range_var() const { - // @@protoc_insertion_point(field_get:pg_query.Node.range_var) - return _internal_range_var(); -} -inline ::pg_query::RangeVar* Node::unsafe_arena_release_range_var() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.range_var) - if (_internal_has_range_var()) { - clear_has_node(); - ::pg_query::RangeVar* temp = _impl_.node_.range_var_; - _impl_.node_.range_var_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_range_var(::pg_query::RangeVar* range_var) { - clear_node(); - if (range_var) { - set_has_range_var(); - _impl_.node_.range_var_ = range_var; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.range_var) -} -inline ::pg_query::RangeVar* Node::_internal_mutable_range_var() { - if (!_internal_has_range_var()) { - clear_node(); - set_has_range_var(); - _impl_.node_.range_var_ = CreateMaybeMessage< ::pg_query::RangeVar >(GetArenaForAllocation()); - } - return _impl_.node_.range_var_; -} -inline ::pg_query::RangeVar* Node::mutable_range_var() { - ::pg_query::RangeVar* _msg = _internal_mutable_range_var(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.range_var) - return _msg; -} - -// .pg_query.TableFunc table_func = 3 [json_name = "TableFunc"]; -inline bool Node::_internal_has_table_func() const { - return node_case() == kTableFunc; -} -inline bool Node::has_table_func() const { - return _internal_has_table_func(); -} -inline void Node::set_has_table_func() { - _impl_._oneof_case_[0] = kTableFunc; -} -inline void Node::clear_table_func() { - if (_internal_has_table_func()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.table_func_; - } - clear_has_node(); - } -} -inline ::pg_query::TableFunc* Node::release_table_func() { - // @@protoc_insertion_point(field_release:pg_query.Node.table_func) - if (_internal_has_table_func()) { - clear_has_node(); - ::pg_query::TableFunc* temp = _impl_.node_.table_func_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.table_func_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::TableFunc& Node::_internal_table_func() const { - return _internal_has_table_func() - ? *_impl_.node_.table_func_ - : reinterpret_cast< ::pg_query::TableFunc&>(::pg_query::_TableFunc_default_instance_); -} -inline const ::pg_query::TableFunc& Node::table_func() const { - // @@protoc_insertion_point(field_get:pg_query.Node.table_func) - return _internal_table_func(); -} -inline ::pg_query::TableFunc* Node::unsafe_arena_release_table_func() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.table_func) - if (_internal_has_table_func()) { - clear_has_node(); - ::pg_query::TableFunc* temp = _impl_.node_.table_func_; - _impl_.node_.table_func_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_table_func(::pg_query::TableFunc* table_func) { - clear_node(); - if (table_func) { - set_has_table_func(); - _impl_.node_.table_func_ = table_func; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.table_func) -} -inline ::pg_query::TableFunc* Node::_internal_mutable_table_func() { - if (!_internal_has_table_func()) { - clear_node(); - set_has_table_func(); - _impl_.node_.table_func_ = CreateMaybeMessage< ::pg_query::TableFunc >(GetArenaForAllocation()); - } - return _impl_.node_.table_func_; -} -inline ::pg_query::TableFunc* Node::mutable_table_func() { - ::pg_query::TableFunc* _msg = _internal_mutable_table_func(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.table_func) - return _msg; -} - -// .pg_query.Var var = 4 [json_name = "Var"]; -inline bool Node::_internal_has_var() const { - return node_case() == kVar; -} -inline bool Node::has_var() const { - return _internal_has_var(); -} -inline void Node::set_has_var() { - _impl_._oneof_case_[0] = kVar; -} -inline void Node::clear_var() { - if (_internal_has_var()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.var_; - } - clear_has_node(); - } -} -inline ::pg_query::Var* Node::release_var() { - // @@protoc_insertion_point(field_release:pg_query.Node.var) - if (_internal_has_var()) { - clear_has_node(); - ::pg_query::Var* temp = _impl_.node_.var_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.var_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::Var& Node::_internal_var() const { - return _internal_has_var() - ? *_impl_.node_.var_ - : reinterpret_cast< ::pg_query::Var&>(::pg_query::_Var_default_instance_); -} -inline const ::pg_query::Var& Node::var() const { - // @@protoc_insertion_point(field_get:pg_query.Node.var) - return _internal_var(); -} -inline ::pg_query::Var* Node::unsafe_arena_release_var() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.var) - if (_internal_has_var()) { - clear_has_node(); - ::pg_query::Var* temp = _impl_.node_.var_; - _impl_.node_.var_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_var(::pg_query::Var* var) { - clear_node(); - if (var) { - set_has_var(); - _impl_.node_.var_ = var; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.var) -} -inline ::pg_query::Var* Node::_internal_mutable_var() { - if (!_internal_has_var()) { - clear_node(); - set_has_var(); - _impl_.node_.var_ = CreateMaybeMessage< ::pg_query::Var >(GetArenaForAllocation()); - } - return _impl_.node_.var_; -} -inline ::pg_query::Var* Node::mutable_var() { - ::pg_query::Var* _msg = _internal_mutable_var(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.var) - return _msg; -} - -// .pg_query.Param param = 5 [json_name = "Param"]; -inline bool Node::_internal_has_param() const { - return node_case() == kParam; -} -inline bool Node::has_param() const { - return _internal_has_param(); -} -inline void Node::set_has_param() { - _impl_._oneof_case_[0] = kParam; -} -inline void Node::clear_param() { - if (_internal_has_param()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.param_; - } - clear_has_node(); - } -} -inline ::pg_query::Param* Node::release_param() { - // @@protoc_insertion_point(field_release:pg_query.Node.param) - if (_internal_has_param()) { - clear_has_node(); - ::pg_query::Param* temp = _impl_.node_.param_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.param_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::Param& Node::_internal_param() const { - return _internal_has_param() - ? *_impl_.node_.param_ - : reinterpret_cast< ::pg_query::Param&>(::pg_query::_Param_default_instance_); -} -inline const ::pg_query::Param& Node::param() const { - // @@protoc_insertion_point(field_get:pg_query.Node.param) - return _internal_param(); -} -inline ::pg_query::Param* Node::unsafe_arena_release_param() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.param) - if (_internal_has_param()) { - clear_has_node(); - ::pg_query::Param* temp = _impl_.node_.param_; - _impl_.node_.param_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_param(::pg_query::Param* param) { - clear_node(); - if (param) { - set_has_param(); - _impl_.node_.param_ = param; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.param) -} -inline ::pg_query::Param* Node::_internal_mutable_param() { - if (!_internal_has_param()) { - clear_node(); - set_has_param(); - _impl_.node_.param_ = CreateMaybeMessage< ::pg_query::Param >(GetArenaForAllocation()); - } - return _impl_.node_.param_; -} -inline ::pg_query::Param* Node::mutable_param() { - ::pg_query::Param* _msg = _internal_mutable_param(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.param) - return _msg; -} - -// .pg_query.Aggref aggref = 6 [json_name = "Aggref"]; -inline bool Node::_internal_has_aggref() const { - return node_case() == kAggref; -} -inline bool Node::has_aggref() const { - return _internal_has_aggref(); -} -inline void Node::set_has_aggref() { - _impl_._oneof_case_[0] = kAggref; -} -inline void Node::clear_aggref() { - if (_internal_has_aggref()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.aggref_; - } - clear_has_node(); - } -} -inline ::pg_query::Aggref* Node::release_aggref() { - // @@protoc_insertion_point(field_release:pg_query.Node.aggref) - if (_internal_has_aggref()) { - clear_has_node(); - ::pg_query::Aggref* temp = _impl_.node_.aggref_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.aggref_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::Aggref& Node::_internal_aggref() const { - return _internal_has_aggref() - ? *_impl_.node_.aggref_ - : reinterpret_cast< ::pg_query::Aggref&>(::pg_query::_Aggref_default_instance_); -} -inline const ::pg_query::Aggref& Node::aggref() const { - // @@protoc_insertion_point(field_get:pg_query.Node.aggref) - return _internal_aggref(); -} -inline ::pg_query::Aggref* Node::unsafe_arena_release_aggref() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.aggref) - if (_internal_has_aggref()) { - clear_has_node(); - ::pg_query::Aggref* temp = _impl_.node_.aggref_; - _impl_.node_.aggref_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_aggref(::pg_query::Aggref* aggref) { - clear_node(); - if (aggref) { - set_has_aggref(); - _impl_.node_.aggref_ = aggref; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.aggref) -} -inline ::pg_query::Aggref* Node::_internal_mutable_aggref() { - if (!_internal_has_aggref()) { - clear_node(); - set_has_aggref(); - _impl_.node_.aggref_ = CreateMaybeMessage< ::pg_query::Aggref >(GetArenaForAllocation()); - } - return _impl_.node_.aggref_; -} -inline ::pg_query::Aggref* Node::mutable_aggref() { - ::pg_query::Aggref* _msg = _internal_mutable_aggref(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.aggref) - return _msg; -} - -// .pg_query.GroupingFunc grouping_func = 7 [json_name = "GroupingFunc"]; -inline bool Node::_internal_has_grouping_func() const { - return node_case() == kGroupingFunc; -} -inline bool Node::has_grouping_func() const { - return _internal_has_grouping_func(); -} -inline void Node::set_has_grouping_func() { - _impl_._oneof_case_[0] = kGroupingFunc; -} -inline void Node::clear_grouping_func() { - if (_internal_has_grouping_func()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.grouping_func_; - } - clear_has_node(); - } -} -inline ::pg_query::GroupingFunc* Node::release_grouping_func() { - // @@protoc_insertion_point(field_release:pg_query.Node.grouping_func) - if (_internal_has_grouping_func()) { - clear_has_node(); - ::pg_query::GroupingFunc* temp = _impl_.node_.grouping_func_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.grouping_func_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::GroupingFunc& Node::_internal_grouping_func() const { - return _internal_has_grouping_func() - ? *_impl_.node_.grouping_func_ - : reinterpret_cast< ::pg_query::GroupingFunc&>(::pg_query::_GroupingFunc_default_instance_); -} -inline const ::pg_query::GroupingFunc& Node::grouping_func() const { - // @@protoc_insertion_point(field_get:pg_query.Node.grouping_func) - return _internal_grouping_func(); -} -inline ::pg_query::GroupingFunc* Node::unsafe_arena_release_grouping_func() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.grouping_func) - if (_internal_has_grouping_func()) { - clear_has_node(); - ::pg_query::GroupingFunc* temp = _impl_.node_.grouping_func_; - _impl_.node_.grouping_func_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_grouping_func(::pg_query::GroupingFunc* grouping_func) { - clear_node(); - if (grouping_func) { - set_has_grouping_func(); - _impl_.node_.grouping_func_ = grouping_func; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.grouping_func) -} -inline ::pg_query::GroupingFunc* Node::_internal_mutable_grouping_func() { - if (!_internal_has_grouping_func()) { - clear_node(); - set_has_grouping_func(); - _impl_.node_.grouping_func_ = CreateMaybeMessage< ::pg_query::GroupingFunc >(GetArenaForAllocation()); - } - return _impl_.node_.grouping_func_; -} -inline ::pg_query::GroupingFunc* Node::mutable_grouping_func() { - ::pg_query::GroupingFunc* _msg = _internal_mutable_grouping_func(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.grouping_func) - return _msg; -} - -// .pg_query.WindowFunc window_func = 8 [json_name = "WindowFunc"]; -inline bool Node::_internal_has_window_func() const { - return node_case() == kWindowFunc; -} -inline bool Node::has_window_func() const { - return _internal_has_window_func(); -} -inline void Node::set_has_window_func() { - _impl_._oneof_case_[0] = kWindowFunc; -} -inline void Node::clear_window_func() { - if (_internal_has_window_func()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.window_func_; - } - clear_has_node(); - } -} -inline ::pg_query::WindowFunc* Node::release_window_func() { - // @@protoc_insertion_point(field_release:pg_query.Node.window_func) - if (_internal_has_window_func()) { - clear_has_node(); - ::pg_query::WindowFunc* temp = _impl_.node_.window_func_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.window_func_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::WindowFunc& Node::_internal_window_func() const { - return _internal_has_window_func() - ? *_impl_.node_.window_func_ - : reinterpret_cast< ::pg_query::WindowFunc&>(::pg_query::_WindowFunc_default_instance_); -} -inline const ::pg_query::WindowFunc& Node::window_func() const { - // @@protoc_insertion_point(field_get:pg_query.Node.window_func) - return _internal_window_func(); -} -inline ::pg_query::WindowFunc* Node::unsafe_arena_release_window_func() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.window_func) - if (_internal_has_window_func()) { - clear_has_node(); - ::pg_query::WindowFunc* temp = _impl_.node_.window_func_; - _impl_.node_.window_func_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_window_func(::pg_query::WindowFunc* window_func) { - clear_node(); - if (window_func) { - set_has_window_func(); - _impl_.node_.window_func_ = window_func; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.window_func) -} -inline ::pg_query::WindowFunc* Node::_internal_mutable_window_func() { - if (!_internal_has_window_func()) { - clear_node(); - set_has_window_func(); - _impl_.node_.window_func_ = CreateMaybeMessage< ::pg_query::WindowFunc >(GetArenaForAllocation()); - } - return _impl_.node_.window_func_; -} -inline ::pg_query::WindowFunc* Node::mutable_window_func() { - ::pg_query::WindowFunc* _msg = _internal_mutable_window_func(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.window_func) - return _msg; -} - -// .pg_query.SubscriptingRef subscripting_ref = 9 [json_name = "SubscriptingRef"]; -inline bool Node::_internal_has_subscripting_ref() const { - return node_case() == kSubscriptingRef; -} -inline bool Node::has_subscripting_ref() const { - return _internal_has_subscripting_ref(); -} -inline void Node::set_has_subscripting_ref() { - _impl_._oneof_case_[0] = kSubscriptingRef; -} -inline void Node::clear_subscripting_ref() { - if (_internal_has_subscripting_ref()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.subscripting_ref_; - } - clear_has_node(); - } -} -inline ::pg_query::SubscriptingRef* Node::release_subscripting_ref() { - // @@protoc_insertion_point(field_release:pg_query.Node.subscripting_ref) - if (_internal_has_subscripting_ref()) { - clear_has_node(); - ::pg_query::SubscriptingRef* temp = _impl_.node_.subscripting_ref_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.subscripting_ref_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::SubscriptingRef& Node::_internal_subscripting_ref() const { - return _internal_has_subscripting_ref() - ? *_impl_.node_.subscripting_ref_ - : reinterpret_cast< ::pg_query::SubscriptingRef&>(::pg_query::_SubscriptingRef_default_instance_); -} -inline const ::pg_query::SubscriptingRef& Node::subscripting_ref() const { - // @@protoc_insertion_point(field_get:pg_query.Node.subscripting_ref) - return _internal_subscripting_ref(); -} -inline ::pg_query::SubscriptingRef* Node::unsafe_arena_release_subscripting_ref() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.subscripting_ref) - if (_internal_has_subscripting_ref()) { - clear_has_node(); - ::pg_query::SubscriptingRef* temp = _impl_.node_.subscripting_ref_; - _impl_.node_.subscripting_ref_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_subscripting_ref(::pg_query::SubscriptingRef* subscripting_ref) { - clear_node(); - if (subscripting_ref) { - set_has_subscripting_ref(); - _impl_.node_.subscripting_ref_ = subscripting_ref; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.subscripting_ref) -} -inline ::pg_query::SubscriptingRef* Node::_internal_mutable_subscripting_ref() { - if (!_internal_has_subscripting_ref()) { - clear_node(); - set_has_subscripting_ref(); - _impl_.node_.subscripting_ref_ = CreateMaybeMessage< ::pg_query::SubscriptingRef >(GetArenaForAllocation()); - } - return _impl_.node_.subscripting_ref_; -} -inline ::pg_query::SubscriptingRef* Node::mutable_subscripting_ref() { - ::pg_query::SubscriptingRef* _msg = _internal_mutable_subscripting_ref(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.subscripting_ref) - return _msg; -} - -// .pg_query.FuncExpr func_expr = 10 [json_name = "FuncExpr"]; -inline bool Node::_internal_has_func_expr() const { - return node_case() == kFuncExpr; -} -inline bool Node::has_func_expr() const { - return _internal_has_func_expr(); -} -inline void Node::set_has_func_expr() { - _impl_._oneof_case_[0] = kFuncExpr; -} -inline void Node::clear_func_expr() { - if (_internal_has_func_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.func_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::FuncExpr* Node::release_func_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.func_expr) - if (_internal_has_func_expr()) { - clear_has_node(); - ::pg_query::FuncExpr* temp = _impl_.node_.func_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.func_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::FuncExpr& Node::_internal_func_expr() const { - return _internal_has_func_expr() - ? *_impl_.node_.func_expr_ - : reinterpret_cast< ::pg_query::FuncExpr&>(::pg_query::_FuncExpr_default_instance_); -} -inline const ::pg_query::FuncExpr& Node::func_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.func_expr) - return _internal_func_expr(); -} -inline ::pg_query::FuncExpr* Node::unsafe_arena_release_func_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.func_expr) - if (_internal_has_func_expr()) { - clear_has_node(); - ::pg_query::FuncExpr* temp = _impl_.node_.func_expr_; - _impl_.node_.func_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_func_expr(::pg_query::FuncExpr* func_expr) { - clear_node(); - if (func_expr) { - set_has_func_expr(); - _impl_.node_.func_expr_ = func_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.func_expr) -} -inline ::pg_query::FuncExpr* Node::_internal_mutable_func_expr() { - if (!_internal_has_func_expr()) { - clear_node(); - set_has_func_expr(); - _impl_.node_.func_expr_ = CreateMaybeMessage< ::pg_query::FuncExpr >(GetArenaForAllocation()); - } - return _impl_.node_.func_expr_; -} -inline ::pg_query::FuncExpr* Node::mutable_func_expr() { - ::pg_query::FuncExpr* _msg = _internal_mutable_func_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.func_expr) - return _msg; -} - -// .pg_query.NamedArgExpr named_arg_expr = 11 [json_name = "NamedArgExpr"]; -inline bool Node::_internal_has_named_arg_expr() const { - return node_case() == kNamedArgExpr; -} -inline bool Node::has_named_arg_expr() const { - return _internal_has_named_arg_expr(); -} -inline void Node::set_has_named_arg_expr() { - _impl_._oneof_case_[0] = kNamedArgExpr; -} -inline void Node::clear_named_arg_expr() { - if (_internal_has_named_arg_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.named_arg_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::NamedArgExpr* Node::release_named_arg_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.named_arg_expr) - if (_internal_has_named_arg_expr()) { - clear_has_node(); - ::pg_query::NamedArgExpr* temp = _impl_.node_.named_arg_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.named_arg_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::NamedArgExpr& Node::_internal_named_arg_expr() const { - return _internal_has_named_arg_expr() - ? *_impl_.node_.named_arg_expr_ - : reinterpret_cast< ::pg_query::NamedArgExpr&>(::pg_query::_NamedArgExpr_default_instance_); -} -inline const ::pg_query::NamedArgExpr& Node::named_arg_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.named_arg_expr) - return _internal_named_arg_expr(); -} -inline ::pg_query::NamedArgExpr* Node::unsafe_arena_release_named_arg_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.named_arg_expr) - if (_internal_has_named_arg_expr()) { - clear_has_node(); - ::pg_query::NamedArgExpr* temp = _impl_.node_.named_arg_expr_; - _impl_.node_.named_arg_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_named_arg_expr(::pg_query::NamedArgExpr* named_arg_expr) { - clear_node(); - if (named_arg_expr) { - set_has_named_arg_expr(); - _impl_.node_.named_arg_expr_ = named_arg_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.named_arg_expr) -} -inline ::pg_query::NamedArgExpr* Node::_internal_mutable_named_arg_expr() { - if (!_internal_has_named_arg_expr()) { - clear_node(); - set_has_named_arg_expr(); - _impl_.node_.named_arg_expr_ = CreateMaybeMessage< ::pg_query::NamedArgExpr >(GetArenaForAllocation()); - } - return _impl_.node_.named_arg_expr_; -} -inline ::pg_query::NamedArgExpr* Node::mutable_named_arg_expr() { - ::pg_query::NamedArgExpr* _msg = _internal_mutable_named_arg_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.named_arg_expr) - return _msg; -} - -// .pg_query.OpExpr op_expr = 12 [json_name = "OpExpr"]; -inline bool Node::_internal_has_op_expr() const { - return node_case() == kOpExpr; -} -inline bool Node::has_op_expr() const { - return _internal_has_op_expr(); -} -inline void Node::set_has_op_expr() { - _impl_._oneof_case_[0] = kOpExpr; -} -inline void Node::clear_op_expr() { - if (_internal_has_op_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.op_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::OpExpr* Node::release_op_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.op_expr) - if (_internal_has_op_expr()) { - clear_has_node(); - ::pg_query::OpExpr* temp = _impl_.node_.op_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.op_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::OpExpr& Node::_internal_op_expr() const { - return _internal_has_op_expr() - ? *_impl_.node_.op_expr_ - : reinterpret_cast< ::pg_query::OpExpr&>(::pg_query::_OpExpr_default_instance_); -} -inline const ::pg_query::OpExpr& Node::op_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.op_expr) - return _internal_op_expr(); -} -inline ::pg_query::OpExpr* Node::unsafe_arena_release_op_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.op_expr) - if (_internal_has_op_expr()) { - clear_has_node(); - ::pg_query::OpExpr* temp = _impl_.node_.op_expr_; - _impl_.node_.op_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_op_expr(::pg_query::OpExpr* op_expr) { - clear_node(); - if (op_expr) { - set_has_op_expr(); - _impl_.node_.op_expr_ = op_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.op_expr) -} -inline ::pg_query::OpExpr* Node::_internal_mutable_op_expr() { - if (!_internal_has_op_expr()) { - clear_node(); - set_has_op_expr(); - _impl_.node_.op_expr_ = CreateMaybeMessage< ::pg_query::OpExpr >(GetArenaForAllocation()); - } - return _impl_.node_.op_expr_; -} -inline ::pg_query::OpExpr* Node::mutable_op_expr() { - ::pg_query::OpExpr* _msg = _internal_mutable_op_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.op_expr) - return _msg; -} - -// .pg_query.DistinctExpr distinct_expr = 13 [json_name = "DistinctExpr"]; -inline bool Node::_internal_has_distinct_expr() const { - return node_case() == kDistinctExpr; -} -inline bool Node::has_distinct_expr() const { - return _internal_has_distinct_expr(); -} -inline void Node::set_has_distinct_expr() { - _impl_._oneof_case_[0] = kDistinctExpr; -} -inline void Node::clear_distinct_expr() { - if (_internal_has_distinct_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.distinct_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::DistinctExpr* Node::release_distinct_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.distinct_expr) - if (_internal_has_distinct_expr()) { - clear_has_node(); - ::pg_query::DistinctExpr* temp = _impl_.node_.distinct_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.distinct_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::DistinctExpr& Node::_internal_distinct_expr() const { - return _internal_has_distinct_expr() - ? *_impl_.node_.distinct_expr_ - : reinterpret_cast< ::pg_query::DistinctExpr&>(::pg_query::_DistinctExpr_default_instance_); -} -inline const ::pg_query::DistinctExpr& Node::distinct_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.distinct_expr) - return _internal_distinct_expr(); -} -inline ::pg_query::DistinctExpr* Node::unsafe_arena_release_distinct_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.distinct_expr) - if (_internal_has_distinct_expr()) { - clear_has_node(); - ::pg_query::DistinctExpr* temp = _impl_.node_.distinct_expr_; - _impl_.node_.distinct_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_distinct_expr(::pg_query::DistinctExpr* distinct_expr) { - clear_node(); - if (distinct_expr) { - set_has_distinct_expr(); - _impl_.node_.distinct_expr_ = distinct_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.distinct_expr) -} -inline ::pg_query::DistinctExpr* Node::_internal_mutable_distinct_expr() { - if (!_internal_has_distinct_expr()) { - clear_node(); - set_has_distinct_expr(); - _impl_.node_.distinct_expr_ = CreateMaybeMessage< ::pg_query::DistinctExpr >(GetArenaForAllocation()); - } - return _impl_.node_.distinct_expr_; -} -inline ::pg_query::DistinctExpr* Node::mutable_distinct_expr() { - ::pg_query::DistinctExpr* _msg = _internal_mutable_distinct_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.distinct_expr) - return _msg; -} - -// .pg_query.NullIfExpr null_if_expr = 14 [json_name = "NullIfExpr"]; -inline bool Node::_internal_has_null_if_expr() const { - return node_case() == kNullIfExpr; -} -inline bool Node::has_null_if_expr() const { - return _internal_has_null_if_expr(); -} -inline void Node::set_has_null_if_expr() { - _impl_._oneof_case_[0] = kNullIfExpr; -} -inline void Node::clear_null_if_expr() { - if (_internal_has_null_if_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.null_if_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::NullIfExpr* Node::release_null_if_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.null_if_expr) - if (_internal_has_null_if_expr()) { - clear_has_node(); - ::pg_query::NullIfExpr* temp = _impl_.node_.null_if_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.null_if_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::NullIfExpr& Node::_internal_null_if_expr() const { - return _internal_has_null_if_expr() - ? *_impl_.node_.null_if_expr_ - : reinterpret_cast< ::pg_query::NullIfExpr&>(::pg_query::_NullIfExpr_default_instance_); -} -inline const ::pg_query::NullIfExpr& Node::null_if_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.null_if_expr) - return _internal_null_if_expr(); -} -inline ::pg_query::NullIfExpr* Node::unsafe_arena_release_null_if_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.null_if_expr) - if (_internal_has_null_if_expr()) { - clear_has_node(); - ::pg_query::NullIfExpr* temp = _impl_.node_.null_if_expr_; - _impl_.node_.null_if_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_null_if_expr(::pg_query::NullIfExpr* null_if_expr) { - clear_node(); - if (null_if_expr) { - set_has_null_if_expr(); - _impl_.node_.null_if_expr_ = null_if_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.null_if_expr) -} -inline ::pg_query::NullIfExpr* Node::_internal_mutable_null_if_expr() { - if (!_internal_has_null_if_expr()) { - clear_node(); - set_has_null_if_expr(); - _impl_.node_.null_if_expr_ = CreateMaybeMessage< ::pg_query::NullIfExpr >(GetArenaForAllocation()); - } - return _impl_.node_.null_if_expr_; -} -inline ::pg_query::NullIfExpr* Node::mutable_null_if_expr() { - ::pg_query::NullIfExpr* _msg = _internal_mutable_null_if_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.null_if_expr) - return _msg; -} - -// .pg_query.ScalarArrayOpExpr scalar_array_op_expr = 15 [json_name = "ScalarArrayOpExpr"]; -inline bool Node::_internal_has_scalar_array_op_expr() const { - return node_case() == kScalarArrayOpExpr; -} -inline bool Node::has_scalar_array_op_expr() const { - return _internal_has_scalar_array_op_expr(); -} -inline void Node::set_has_scalar_array_op_expr() { - _impl_._oneof_case_[0] = kScalarArrayOpExpr; -} -inline void Node::clear_scalar_array_op_expr() { - if (_internal_has_scalar_array_op_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.scalar_array_op_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::ScalarArrayOpExpr* Node::release_scalar_array_op_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.scalar_array_op_expr) - if (_internal_has_scalar_array_op_expr()) { - clear_has_node(); - ::pg_query::ScalarArrayOpExpr* temp = _impl_.node_.scalar_array_op_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.scalar_array_op_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::ScalarArrayOpExpr& Node::_internal_scalar_array_op_expr() const { - return _internal_has_scalar_array_op_expr() - ? *_impl_.node_.scalar_array_op_expr_ - : reinterpret_cast< ::pg_query::ScalarArrayOpExpr&>(::pg_query::_ScalarArrayOpExpr_default_instance_); -} -inline const ::pg_query::ScalarArrayOpExpr& Node::scalar_array_op_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.scalar_array_op_expr) - return _internal_scalar_array_op_expr(); -} -inline ::pg_query::ScalarArrayOpExpr* Node::unsafe_arena_release_scalar_array_op_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.scalar_array_op_expr) - if (_internal_has_scalar_array_op_expr()) { - clear_has_node(); - ::pg_query::ScalarArrayOpExpr* temp = _impl_.node_.scalar_array_op_expr_; - _impl_.node_.scalar_array_op_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_scalar_array_op_expr(::pg_query::ScalarArrayOpExpr* scalar_array_op_expr) { - clear_node(); - if (scalar_array_op_expr) { - set_has_scalar_array_op_expr(); - _impl_.node_.scalar_array_op_expr_ = scalar_array_op_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.scalar_array_op_expr) -} -inline ::pg_query::ScalarArrayOpExpr* Node::_internal_mutable_scalar_array_op_expr() { - if (!_internal_has_scalar_array_op_expr()) { - clear_node(); - set_has_scalar_array_op_expr(); - _impl_.node_.scalar_array_op_expr_ = CreateMaybeMessage< ::pg_query::ScalarArrayOpExpr >(GetArenaForAllocation()); - } - return _impl_.node_.scalar_array_op_expr_; -} -inline ::pg_query::ScalarArrayOpExpr* Node::mutable_scalar_array_op_expr() { - ::pg_query::ScalarArrayOpExpr* _msg = _internal_mutable_scalar_array_op_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.scalar_array_op_expr) - return _msg; -} - -// .pg_query.BoolExpr bool_expr = 16 [json_name = "BoolExpr"]; -inline bool Node::_internal_has_bool_expr() const { - return node_case() == kBoolExpr; -} -inline bool Node::has_bool_expr() const { - return _internal_has_bool_expr(); -} -inline void Node::set_has_bool_expr() { - _impl_._oneof_case_[0] = kBoolExpr; -} -inline void Node::clear_bool_expr() { - if (_internal_has_bool_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.bool_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::BoolExpr* Node::release_bool_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.bool_expr) - if (_internal_has_bool_expr()) { - clear_has_node(); - ::pg_query::BoolExpr* temp = _impl_.node_.bool_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.bool_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::BoolExpr& Node::_internal_bool_expr() const { - return _internal_has_bool_expr() - ? *_impl_.node_.bool_expr_ - : reinterpret_cast< ::pg_query::BoolExpr&>(::pg_query::_BoolExpr_default_instance_); -} -inline const ::pg_query::BoolExpr& Node::bool_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.bool_expr) - return _internal_bool_expr(); -} -inline ::pg_query::BoolExpr* Node::unsafe_arena_release_bool_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.bool_expr) - if (_internal_has_bool_expr()) { - clear_has_node(); - ::pg_query::BoolExpr* temp = _impl_.node_.bool_expr_; - _impl_.node_.bool_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_bool_expr(::pg_query::BoolExpr* bool_expr) { - clear_node(); - if (bool_expr) { - set_has_bool_expr(); - _impl_.node_.bool_expr_ = bool_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.bool_expr) -} -inline ::pg_query::BoolExpr* Node::_internal_mutable_bool_expr() { - if (!_internal_has_bool_expr()) { - clear_node(); - set_has_bool_expr(); - _impl_.node_.bool_expr_ = CreateMaybeMessage< ::pg_query::BoolExpr >(GetArenaForAllocation()); - } - return _impl_.node_.bool_expr_; -} -inline ::pg_query::BoolExpr* Node::mutable_bool_expr() { - ::pg_query::BoolExpr* _msg = _internal_mutable_bool_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.bool_expr) - return _msg; -} - -// .pg_query.SubLink sub_link = 17 [json_name = "SubLink"]; -inline bool Node::_internal_has_sub_link() const { - return node_case() == kSubLink; -} -inline bool Node::has_sub_link() const { - return _internal_has_sub_link(); -} -inline void Node::set_has_sub_link() { - _impl_._oneof_case_[0] = kSubLink; -} -inline void Node::clear_sub_link() { - if (_internal_has_sub_link()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.sub_link_; - } - clear_has_node(); - } -} -inline ::pg_query::SubLink* Node::release_sub_link() { - // @@protoc_insertion_point(field_release:pg_query.Node.sub_link) - if (_internal_has_sub_link()) { - clear_has_node(); - ::pg_query::SubLink* temp = _impl_.node_.sub_link_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.sub_link_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::SubLink& Node::_internal_sub_link() const { - return _internal_has_sub_link() - ? *_impl_.node_.sub_link_ - : reinterpret_cast< ::pg_query::SubLink&>(::pg_query::_SubLink_default_instance_); -} -inline const ::pg_query::SubLink& Node::sub_link() const { - // @@protoc_insertion_point(field_get:pg_query.Node.sub_link) - return _internal_sub_link(); -} -inline ::pg_query::SubLink* Node::unsafe_arena_release_sub_link() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.sub_link) - if (_internal_has_sub_link()) { - clear_has_node(); - ::pg_query::SubLink* temp = _impl_.node_.sub_link_; - _impl_.node_.sub_link_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_sub_link(::pg_query::SubLink* sub_link) { - clear_node(); - if (sub_link) { - set_has_sub_link(); - _impl_.node_.sub_link_ = sub_link; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.sub_link) -} -inline ::pg_query::SubLink* Node::_internal_mutable_sub_link() { - if (!_internal_has_sub_link()) { - clear_node(); - set_has_sub_link(); - _impl_.node_.sub_link_ = CreateMaybeMessage< ::pg_query::SubLink >(GetArenaForAllocation()); - } - return _impl_.node_.sub_link_; -} -inline ::pg_query::SubLink* Node::mutable_sub_link() { - ::pg_query::SubLink* _msg = _internal_mutable_sub_link(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.sub_link) - return _msg; -} - -// .pg_query.SubPlan sub_plan = 18 [json_name = "SubPlan"]; -inline bool Node::_internal_has_sub_plan() const { - return node_case() == kSubPlan; -} -inline bool Node::has_sub_plan() const { - return _internal_has_sub_plan(); -} -inline void Node::set_has_sub_plan() { - _impl_._oneof_case_[0] = kSubPlan; -} -inline void Node::clear_sub_plan() { - if (_internal_has_sub_plan()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.sub_plan_; - } - clear_has_node(); - } -} -inline ::pg_query::SubPlan* Node::release_sub_plan() { - // @@protoc_insertion_point(field_release:pg_query.Node.sub_plan) - if (_internal_has_sub_plan()) { - clear_has_node(); - ::pg_query::SubPlan* temp = _impl_.node_.sub_plan_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.sub_plan_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::SubPlan& Node::_internal_sub_plan() const { - return _internal_has_sub_plan() - ? *_impl_.node_.sub_plan_ - : reinterpret_cast< ::pg_query::SubPlan&>(::pg_query::_SubPlan_default_instance_); -} -inline const ::pg_query::SubPlan& Node::sub_plan() const { - // @@protoc_insertion_point(field_get:pg_query.Node.sub_plan) - return _internal_sub_plan(); -} -inline ::pg_query::SubPlan* Node::unsafe_arena_release_sub_plan() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.sub_plan) - if (_internal_has_sub_plan()) { - clear_has_node(); - ::pg_query::SubPlan* temp = _impl_.node_.sub_plan_; - _impl_.node_.sub_plan_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_sub_plan(::pg_query::SubPlan* sub_plan) { - clear_node(); - if (sub_plan) { - set_has_sub_plan(); - _impl_.node_.sub_plan_ = sub_plan; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.sub_plan) -} -inline ::pg_query::SubPlan* Node::_internal_mutable_sub_plan() { - if (!_internal_has_sub_plan()) { - clear_node(); - set_has_sub_plan(); - _impl_.node_.sub_plan_ = CreateMaybeMessage< ::pg_query::SubPlan >(GetArenaForAllocation()); - } - return _impl_.node_.sub_plan_; -} -inline ::pg_query::SubPlan* Node::mutable_sub_plan() { - ::pg_query::SubPlan* _msg = _internal_mutable_sub_plan(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.sub_plan) - return _msg; -} - -// .pg_query.AlternativeSubPlan alternative_sub_plan = 19 [json_name = "AlternativeSubPlan"]; -inline bool Node::_internal_has_alternative_sub_plan() const { - return node_case() == kAlternativeSubPlan; -} -inline bool Node::has_alternative_sub_plan() const { - return _internal_has_alternative_sub_plan(); -} -inline void Node::set_has_alternative_sub_plan() { - _impl_._oneof_case_[0] = kAlternativeSubPlan; -} -inline void Node::clear_alternative_sub_plan() { - if (_internal_has_alternative_sub_plan()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alternative_sub_plan_; - } - clear_has_node(); - } -} -inline ::pg_query::AlternativeSubPlan* Node::release_alternative_sub_plan() { - // @@protoc_insertion_point(field_release:pg_query.Node.alternative_sub_plan) - if (_internal_has_alternative_sub_plan()) { - clear_has_node(); - ::pg_query::AlternativeSubPlan* temp = _impl_.node_.alternative_sub_plan_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alternative_sub_plan_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlternativeSubPlan& Node::_internal_alternative_sub_plan() const { - return _internal_has_alternative_sub_plan() - ? *_impl_.node_.alternative_sub_plan_ - : reinterpret_cast< ::pg_query::AlternativeSubPlan&>(::pg_query::_AlternativeSubPlan_default_instance_); -} -inline const ::pg_query::AlternativeSubPlan& Node::alternative_sub_plan() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alternative_sub_plan) - return _internal_alternative_sub_plan(); -} -inline ::pg_query::AlternativeSubPlan* Node::unsafe_arena_release_alternative_sub_plan() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alternative_sub_plan) - if (_internal_has_alternative_sub_plan()) { - clear_has_node(); - ::pg_query::AlternativeSubPlan* temp = _impl_.node_.alternative_sub_plan_; - _impl_.node_.alternative_sub_plan_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alternative_sub_plan(::pg_query::AlternativeSubPlan* alternative_sub_plan) { - clear_node(); - if (alternative_sub_plan) { - set_has_alternative_sub_plan(); - _impl_.node_.alternative_sub_plan_ = alternative_sub_plan; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alternative_sub_plan) -} -inline ::pg_query::AlternativeSubPlan* Node::_internal_mutable_alternative_sub_plan() { - if (!_internal_has_alternative_sub_plan()) { - clear_node(); - set_has_alternative_sub_plan(); - _impl_.node_.alternative_sub_plan_ = CreateMaybeMessage< ::pg_query::AlternativeSubPlan >(GetArenaForAllocation()); - } - return _impl_.node_.alternative_sub_plan_; -} -inline ::pg_query::AlternativeSubPlan* Node::mutable_alternative_sub_plan() { - ::pg_query::AlternativeSubPlan* _msg = _internal_mutable_alternative_sub_plan(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alternative_sub_plan) - return _msg; -} - -// .pg_query.FieldSelect field_select = 20 [json_name = "FieldSelect"]; -inline bool Node::_internal_has_field_select() const { - return node_case() == kFieldSelect; -} -inline bool Node::has_field_select() const { - return _internal_has_field_select(); -} -inline void Node::set_has_field_select() { - _impl_._oneof_case_[0] = kFieldSelect; -} -inline void Node::clear_field_select() { - if (_internal_has_field_select()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.field_select_; - } - clear_has_node(); - } -} -inline ::pg_query::FieldSelect* Node::release_field_select() { - // @@protoc_insertion_point(field_release:pg_query.Node.field_select) - if (_internal_has_field_select()) { - clear_has_node(); - ::pg_query::FieldSelect* temp = _impl_.node_.field_select_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.field_select_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::FieldSelect& Node::_internal_field_select() const { - return _internal_has_field_select() - ? *_impl_.node_.field_select_ - : reinterpret_cast< ::pg_query::FieldSelect&>(::pg_query::_FieldSelect_default_instance_); -} -inline const ::pg_query::FieldSelect& Node::field_select() const { - // @@protoc_insertion_point(field_get:pg_query.Node.field_select) - return _internal_field_select(); -} -inline ::pg_query::FieldSelect* Node::unsafe_arena_release_field_select() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.field_select) - if (_internal_has_field_select()) { - clear_has_node(); - ::pg_query::FieldSelect* temp = _impl_.node_.field_select_; - _impl_.node_.field_select_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_field_select(::pg_query::FieldSelect* field_select) { - clear_node(); - if (field_select) { - set_has_field_select(); - _impl_.node_.field_select_ = field_select; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.field_select) -} -inline ::pg_query::FieldSelect* Node::_internal_mutable_field_select() { - if (!_internal_has_field_select()) { - clear_node(); - set_has_field_select(); - _impl_.node_.field_select_ = CreateMaybeMessage< ::pg_query::FieldSelect >(GetArenaForAllocation()); - } - return _impl_.node_.field_select_; -} -inline ::pg_query::FieldSelect* Node::mutable_field_select() { - ::pg_query::FieldSelect* _msg = _internal_mutable_field_select(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.field_select) - return _msg; -} - -// .pg_query.FieldStore field_store = 21 [json_name = "FieldStore"]; -inline bool Node::_internal_has_field_store() const { - return node_case() == kFieldStore; -} -inline bool Node::has_field_store() const { - return _internal_has_field_store(); -} -inline void Node::set_has_field_store() { - _impl_._oneof_case_[0] = kFieldStore; -} -inline void Node::clear_field_store() { - if (_internal_has_field_store()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.field_store_; - } - clear_has_node(); - } -} -inline ::pg_query::FieldStore* Node::release_field_store() { - // @@protoc_insertion_point(field_release:pg_query.Node.field_store) - if (_internal_has_field_store()) { - clear_has_node(); - ::pg_query::FieldStore* temp = _impl_.node_.field_store_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.field_store_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::FieldStore& Node::_internal_field_store() const { - return _internal_has_field_store() - ? *_impl_.node_.field_store_ - : reinterpret_cast< ::pg_query::FieldStore&>(::pg_query::_FieldStore_default_instance_); -} -inline const ::pg_query::FieldStore& Node::field_store() const { - // @@protoc_insertion_point(field_get:pg_query.Node.field_store) - return _internal_field_store(); -} -inline ::pg_query::FieldStore* Node::unsafe_arena_release_field_store() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.field_store) - if (_internal_has_field_store()) { - clear_has_node(); - ::pg_query::FieldStore* temp = _impl_.node_.field_store_; - _impl_.node_.field_store_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_field_store(::pg_query::FieldStore* field_store) { - clear_node(); - if (field_store) { - set_has_field_store(); - _impl_.node_.field_store_ = field_store; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.field_store) -} -inline ::pg_query::FieldStore* Node::_internal_mutable_field_store() { - if (!_internal_has_field_store()) { - clear_node(); - set_has_field_store(); - _impl_.node_.field_store_ = CreateMaybeMessage< ::pg_query::FieldStore >(GetArenaForAllocation()); - } - return _impl_.node_.field_store_; -} -inline ::pg_query::FieldStore* Node::mutable_field_store() { - ::pg_query::FieldStore* _msg = _internal_mutable_field_store(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.field_store) - return _msg; -} - -// .pg_query.RelabelType relabel_type = 22 [json_name = "RelabelType"]; -inline bool Node::_internal_has_relabel_type() const { - return node_case() == kRelabelType; -} -inline bool Node::has_relabel_type() const { - return _internal_has_relabel_type(); -} -inline void Node::set_has_relabel_type() { - _impl_._oneof_case_[0] = kRelabelType; -} -inline void Node::clear_relabel_type() { - if (_internal_has_relabel_type()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.relabel_type_; - } - clear_has_node(); - } -} -inline ::pg_query::RelabelType* Node::release_relabel_type() { - // @@protoc_insertion_point(field_release:pg_query.Node.relabel_type) - if (_internal_has_relabel_type()) { - clear_has_node(); - ::pg_query::RelabelType* temp = _impl_.node_.relabel_type_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.relabel_type_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::RelabelType& Node::_internal_relabel_type() const { - return _internal_has_relabel_type() - ? *_impl_.node_.relabel_type_ - : reinterpret_cast< ::pg_query::RelabelType&>(::pg_query::_RelabelType_default_instance_); -} -inline const ::pg_query::RelabelType& Node::relabel_type() const { - // @@protoc_insertion_point(field_get:pg_query.Node.relabel_type) - return _internal_relabel_type(); -} -inline ::pg_query::RelabelType* Node::unsafe_arena_release_relabel_type() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.relabel_type) - if (_internal_has_relabel_type()) { - clear_has_node(); - ::pg_query::RelabelType* temp = _impl_.node_.relabel_type_; - _impl_.node_.relabel_type_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_relabel_type(::pg_query::RelabelType* relabel_type) { - clear_node(); - if (relabel_type) { - set_has_relabel_type(); - _impl_.node_.relabel_type_ = relabel_type; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.relabel_type) -} -inline ::pg_query::RelabelType* Node::_internal_mutable_relabel_type() { - if (!_internal_has_relabel_type()) { - clear_node(); - set_has_relabel_type(); - _impl_.node_.relabel_type_ = CreateMaybeMessage< ::pg_query::RelabelType >(GetArenaForAllocation()); - } - return _impl_.node_.relabel_type_; -} -inline ::pg_query::RelabelType* Node::mutable_relabel_type() { - ::pg_query::RelabelType* _msg = _internal_mutable_relabel_type(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.relabel_type) - return _msg; -} - -// .pg_query.CoerceViaIO coerce_via_io = 23 [json_name = "CoerceViaIO"]; -inline bool Node::_internal_has_coerce_via_io() const { - return node_case() == kCoerceViaIo; -} -inline bool Node::has_coerce_via_io() const { - return _internal_has_coerce_via_io(); -} -inline void Node::set_has_coerce_via_io() { - _impl_._oneof_case_[0] = kCoerceViaIo; -} -inline void Node::clear_coerce_via_io() { - if (_internal_has_coerce_via_io()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.coerce_via_io_; - } - clear_has_node(); - } -} -inline ::pg_query::CoerceViaIO* Node::release_coerce_via_io() { - // @@protoc_insertion_point(field_release:pg_query.Node.coerce_via_io) - if (_internal_has_coerce_via_io()) { - clear_has_node(); - ::pg_query::CoerceViaIO* temp = _impl_.node_.coerce_via_io_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.coerce_via_io_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CoerceViaIO& Node::_internal_coerce_via_io() const { - return _internal_has_coerce_via_io() - ? *_impl_.node_.coerce_via_io_ - : reinterpret_cast< ::pg_query::CoerceViaIO&>(::pg_query::_CoerceViaIO_default_instance_); -} -inline const ::pg_query::CoerceViaIO& Node::coerce_via_io() const { - // @@protoc_insertion_point(field_get:pg_query.Node.coerce_via_io) - return _internal_coerce_via_io(); -} -inline ::pg_query::CoerceViaIO* Node::unsafe_arena_release_coerce_via_io() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.coerce_via_io) - if (_internal_has_coerce_via_io()) { - clear_has_node(); - ::pg_query::CoerceViaIO* temp = _impl_.node_.coerce_via_io_; - _impl_.node_.coerce_via_io_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_coerce_via_io(::pg_query::CoerceViaIO* coerce_via_io) { - clear_node(); - if (coerce_via_io) { - set_has_coerce_via_io(); - _impl_.node_.coerce_via_io_ = coerce_via_io; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.coerce_via_io) -} -inline ::pg_query::CoerceViaIO* Node::_internal_mutable_coerce_via_io() { - if (!_internal_has_coerce_via_io()) { - clear_node(); - set_has_coerce_via_io(); - _impl_.node_.coerce_via_io_ = CreateMaybeMessage< ::pg_query::CoerceViaIO >(GetArenaForAllocation()); - } - return _impl_.node_.coerce_via_io_; -} -inline ::pg_query::CoerceViaIO* Node::mutable_coerce_via_io() { - ::pg_query::CoerceViaIO* _msg = _internal_mutable_coerce_via_io(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.coerce_via_io) - return _msg; -} - -// .pg_query.ArrayCoerceExpr array_coerce_expr = 24 [json_name = "ArrayCoerceExpr"]; -inline bool Node::_internal_has_array_coerce_expr() const { - return node_case() == kArrayCoerceExpr; -} -inline bool Node::has_array_coerce_expr() const { - return _internal_has_array_coerce_expr(); -} -inline void Node::set_has_array_coerce_expr() { - _impl_._oneof_case_[0] = kArrayCoerceExpr; -} -inline void Node::clear_array_coerce_expr() { - if (_internal_has_array_coerce_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.array_coerce_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::ArrayCoerceExpr* Node::release_array_coerce_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.array_coerce_expr) - if (_internal_has_array_coerce_expr()) { - clear_has_node(); - ::pg_query::ArrayCoerceExpr* temp = _impl_.node_.array_coerce_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.array_coerce_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::ArrayCoerceExpr& Node::_internal_array_coerce_expr() const { - return _internal_has_array_coerce_expr() - ? *_impl_.node_.array_coerce_expr_ - : reinterpret_cast< ::pg_query::ArrayCoerceExpr&>(::pg_query::_ArrayCoerceExpr_default_instance_); -} -inline const ::pg_query::ArrayCoerceExpr& Node::array_coerce_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.array_coerce_expr) - return _internal_array_coerce_expr(); -} -inline ::pg_query::ArrayCoerceExpr* Node::unsafe_arena_release_array_coerce_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.array_coerce_expr) - if (_internal_has_array_coerce_expr()) { - clear_has_node(); - ::pg_query::ArrayCoerceExpr* temp = _impl_.node_.array_coerce_expr_; - _impl_.node_.array_coerce_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_array_coerce_expr(::pg_query::ArrayCoerceExpr* array_coerce_expr) { - clear_node(); - if (array_coerce_expr) { - set_has_array_coerce_expr(); - _impl_.node_.array_coerce_expr_ = array_coerce_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.array_coerce_expr) -} -inline ::pg_query::ArrayCoerceExpr* Node::_internal_mutable_array_coerce_expr() { - if (!_internal_has_array_coerce_expr()) { - clear_node(); - set_has_array_coerce_expr(); - _impl_.node_.array_coerce_expr_ = CreateMaybeMessage< ::pg_query::ArrayCoerceExpr >(GetArenaForAllocation()); - } - return _impl_.node_.array_coerce_expr_; -} -inline ::pg_query::ArrayCoerceExpr* Node::mutable_array_coerce_expr() { - ::pg_query::ArrayCoerceExpr* _msg = _internal_mutable_array_coerce_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.array_coerce_expr) - return _msg; -} - -// .pg_query.ConvertRowtypeExpr convert_rowtype_expr = 25 [json_name = "ConvertRowtypeExpr"]; -inline bool Node::_internal_has_convert_rowtype_expr() const { - return node_case() == kConvertRowtypeExpr; -} -inline bool Node::has_convert_rowtype_expr() const { - return _internal_has_convert_rowtype_expr(); -} -inline void Node::set_has_convert_rowtype_expr() { - _impl_._oneof_case_[0] = kConvertRowtypeExpr; -} -inline void Node::clear_convert_rowtype_expr() { - if (_internal_has_convert_rowtype_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.convert_rowtype_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::ConvertRowtypeExpr* Node::release_convert_rowtype_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.convert_rowtype_expr) - if (_internal_has_convert_rowtype_expr()) { - clear_has_node(); - ::pg_query::ConvertRowtypeExpr* temp = _impl_.node_.convert_rowtype_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.convert_rowtype_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::ConvertRowtypeExpr& Node::_internal_convert_rowtype_expr() const { - return _internal_has_convert_rowtype_expr() - ? *_impl_.node_.convert_rowtype_expr_ - : reinterpret_cast< ::pg_query::ConvertRowtypeExpr&>(::pg_query::_ConvertRowtypeExpr_default_instance_); -} -inline const ::pg_query::ConvertRowtypeExpr& Node::convert_rowtype_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.convert_rowtype_expr) - return _internal_convert_rowtype_expr(); -} -inline ::pg_query::ConvertRowtypeExpr* Node::unsafe_arena_release_convert_rowtype_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.convert_rowtype_expr) - if (_internal_has_convert_rowtype_expr()) { - clear_has_node(); - ::pg_query::ConvertRowtypeExpr* temp = _impl_.node_.convert_rowtype_expr_; - _impl_.node_.convert_rowtype_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_convert_rowtype_expr(::pg_query::ConvertRowtypeExpr* convert_rowtype_expr) { - clear_node(); - if (convert_rowtype_expr) { - set_has_convert_rowtype_expr(); - _impl_.node_.convert_rowtype_expr_ = convert_rowtype_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.convert_rowtype_expr) -} -inline ::pg_query::ConvertRowtypeExpr* Node::_internal_mutable_convert_rowtype_expr() { - if (!_internal_has_convert_rowtype_expr()) { - clear_node(); - set_has_convert_rowtype_expr(); - _impl_.node_.convert_rowtype_expr_ = CreateMaybeMessage< ::pg_query::ConvertRowtypeExpr >(GetArenaForAllocation()); - } - return _impl_.node_.convert_rowtype_expr_; -} -inline ::pg_query::ConvertRowtypeExpr* Node::mutable_convert_rowtype_expr() { - ::pg_query::ConvertRowtypeExpr* _msg = _internal_mutable_convert_rowtype_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.convert_rowtype_expr) - return _msg; -} - -// .pg_query.CollateExpr collate_expr = 26 [json_name = "CollateExpr"]; -inline bool Node::_internal_has_collate_expr() const { - return node_case() == kCollateExpr; -} -inline bool Node::has_collate_expr() const { - return _internal_has_collate_expr(); -} -inline void Node::set_has_collate_expr() { - _impl_._oneof_case_[0] = kCollateExpr; -} -inline void Node::clear_collate_expr() { - if (_internal_has_collate_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.collate_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::CollateExpr* Node::release_collate_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.collate_expr) - if (_internal_has_collate_expr()) { - clear_has_node(); - ::pg_query::CollateExpr* temp = _impl_.node_.collate_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.collate_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CollateExpr& Node::_internal_collate_expr() const { - return _internal_has_collate_expr() - ? *_impl_.node_.collate_expr_ - : reinterpret_cast< ::pg_query::CollateExpr&>(::pg_query::_CollateExpr_default_instance_); -} -inline const ::pg_query::CollateExpr& Node::collate_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.collate_expr) - return _internal_collate_expr(); -} -inline ::pg_query::CollateExpr* Node::unsafe_arena_release_collate_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.collate_expr) - if (_internal_has_collate_expr()) { - clear_has_node(); - ::pg_query::CollateExpr* temp = _impl_.node_.collate_expr_; - _impl_.node_.collate_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_collate_expr(::pg_query::CollateExpr* collate_expr) { - clear_node(); - if (collate_expr) { - set_has_collate_expr(); - _impl_.node_.collate_expr_ = collate_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.collate_expr) -} -inline ::pg_query::CollateExpr* Node::_internal_mutable_collate_expr() { - if (!_internal_has_collate_expr()) { - clear_node(); - set_has_collate_expr(); - _impl_.node_.collate_expr_ = CreateMaybeMessage< ::pg_query::CollateExpr >(GetArenaForAllocation()); - } - return _impl_.node_.collate_expr_; -} -inline ::pg_query::CollateExpr* Node::mutable_collate_expr() { - ::pg_query::CollateExpr* _msg = _internal_mutable_collate_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.collate_expr) - return _msg; -} - -// .pg_query.CaseExpr case_expr = 27 [json_name = "CaseExpr"]; -inline bool Node::_internal_has_case_expr() const { - return node_case() == kCaseExpr; -} -inline bool Node::has_case_expr() const { - return _internal_has_case_expr(); -} -inline void Node::set_has_case_expr() { - _impl_._oneof_case_[0] = kCaseExpr; -} -inline void Node::clear_case_expr() { - if (_internal_has_case_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.case_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::CaseExpr* Node::release_case_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.case_expr) - if (_internal_has_case_expr()) { - clear_has_node(); - ::pg_query::CaseExpr* temp = _impl_.node_.case_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.case_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CaseExpr& Node::_internal_case_expr() const { - return _internal_has_case_expr() - ? *_impl_.node_.case_expr_ - : reinterpret_cast< ::pg_query::CaseExpr&>(::pg_query::_CaseExpr_default_instance_); -} -inline const ::pg_query::CaseExpr& Node::case_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.case_expr) - return _internal_case_expr(); -} -inline ::pg_query::CaseExpr* Node::unsafe_arena_release_case_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.case_expr) - if (_internal_has_case_expr()) { - clear_has_node(); - ::pg_query::CaseExpr* temp = _impl_.node_.case_expr_; - _impl_.node_.case_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_case_expr(::pg_query::CaseExpr* case_expr) { - clear_node(); - if (case_expr) { - set_has_case_expr(); - _impl_.node_.case_expr_ = case_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.case_expr) -} -inline ::pg_query::CaseExpr* Node::_internal_mutable_case_expr() { - if (!_internal_has_case_expr()) { - clear_node(); - set_has_case_expr(); - _impl_.node_.case_expr_ = CreateMaybeMessage< ::pg_query::CaseExpr >(GetArenaForAllocation()); - } - return _impl_.node_.case_expr_; -} -inline ::pg_query::CaseExpr* Node::mutable_case_expr() { - ::pg_query::CaseExpr* _msg = _internal_mutable_case_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.case_expr) - return _msg; -} - -// .pg_query.CaseWhen case_when = 28 [json_name = "CaseWhen"]; -inline bool Node::_internal_has_case_when() const { - return node_case() == kCaseWhen; -} -inline bool Node::has_case_when() const { - return _internal_has_case_when(); -} -inline void Node::set_has_case_when() { - _impl_._oneof_case_[0] = kCaseWhen; -} -inline void Node::clear_case_when() { - if (_internal_has_case_when()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.case_when_; - } - clear_has_node(); - } -} -inline ::pg_query::CaseWhen* Node::release_case_when() { - // @@protoc_insertion_point(field_release:pg_query.Node.case_when) - if (_internal_has_case_when()) { - clear_has_node(); - ::pg_query::CaseWhen* temp = _impl_.node_.case_when_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.case_when_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CaseWhen& Node::_internal_case_when() const { - return _internal_has_case_when() - ? *_impl_.node_.case_when_ - : reinterpret_cast< ::pg_query::CaseWhen&>(::pg_query::_CaseWhen_default_instance_); -} -inline const ::pg_query::CaseWhen& Node::case_when() const { - // @@protoc_insertion_point(field_get:pg_query.Node.case_when) - return _internal_case_when(); -} -inline ::pg_query::CaseWhen* Node::unsafe_arena_release_case_when() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.case_when) - if (_internal_has_case_when()) { - clear_has_node(); - ::pg_query::CaseWhen* temp = _impl_.node_.case_when_; - _impl_.node_.case_when_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_case_when(::pg_query::CaseWhen* case_when) { - clear_node(); - if (case_when) { - set_has_case_when(); - _impl_.node_.case_when_ = case_when; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.case_when) -} -inline ::pg_query::CaseWhen* Node::_internal_mutable_case_when() { - if (!_internal_has_case_when()) { - clear_node(); - set_has_case_when(); - _impl_.node_.case_when_ = CreateMaybeMessage< ::pg_query::CaseWhen >(GetArenaForAllocation()); - } - return _impl_.node_.case_when_; -} -inline ::pg_query::CaseWhen* Node::mutable_case_when() { - ::pg_query::CaseWhen* _msg = _internal_mutable_case_when(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.case_when) - return _msg; -} - -// .pg_query.CaseTestExpr case_test_expr = 29 [json_name = "CaseTestExpr"]; -inline bool Node::_internal_has_case_test_expr() const { - return node_case() == kCaseTestExpr; -} -inline bool Node::has_case_test_expr() const { - return _internal_has_case_test_expr(); -} -inline void Node::set_has_case_test_expr() { - _impl_._oneof_case_[0] = kCaseTestExpr; -} -inline void Node::clear_case_test_expr() { - if (_internal_has_case_test_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.case_test_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::CaseTestExpr* Node::release_case_test_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.case_test_expr) - if (_internal_has_case_test_expr()) { - clear_has_node(); - ::pg_query::CaseTestExpr* temp = _impl_.node_.case_test_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.case_test_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CaseTestExpr& Node::_internal_case_test_expr() const { - return _internal_has_case_test_expr() - ? *_impl_.node_.case_test_expr_ - : reinterpret_cast< ::pg_query::CaseTestExpr&>(::pg_query::_CaseTestExpr_default_instance_); -} -inline const ::pg_query::CaseTestExpr& Node::case_test_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.case_test_expr) - return _internal_case_test_expr(); -} -inline ::pg_query::CaseTestExpr* Node::unsafe_arena_release_case_test_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.case_test_expr) - if (_internal_has_case_test_expr()) { - clear_has_node(); - ::pg_query::CaseTestExpr* temp = _impl_.node_.case_test_expr_; - _impl_.node_.case_test_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_case_test_expr(::pg_query::CaseTestExpr* case_test_expr) { - clear_node(); - if (case_test_expr) { - set_has_case_test_expr(); - _impl_.node_.case_test_expr_ = case_test_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.case_test_expr) -} -inline ::pg_query::CaseTestExpr* Node::_internal_mutable_case_test_expr() { - if (!_internal_has_case_test_expr()) { - clear_node(); - set_has_case_test_expr(); - _impl_.node_.case_test_expr_ = CreateMaybeMessage< ::pg_query::CaseTestExpr >(GetArenaForAllocation()); - } - return _impl_.node_.case_test_expr_; -} -inline ::pg_query::CaseTestExpr* Node::mutable_case_test_expr() { - ::pg_query::CaseTestExpr* _msg = _internal_mutable_case_test_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.case_test_expr) - return _msg; -} - -// .pg_query.ArrayExpr array_expr = 30 [json_name = "ArrayExpr"]; -inline bool Node::_internal_has_array_expr() const { - return node_case() == kArrayExpr; -} -inline bool Node::has_array_expr() const { - return _internal_has_array_expr(); -} -inline void Node::set_has_array_expr() { - _impl_._oneof_case_[0] = kArrayExpr; -} -inline void Node::clear_array_expr() { - if (_internal_has_array_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.array_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::ArrayExpr* Node::release_array_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.array_expr) - if (_internal_has_array_expr()) { - clear_has_node(); - ::pg_query::ArrayExpr* temp = _impl_.node_.array_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.array_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::ArrayExpr& Node::_internal_array_expr() const { - return _internal_has_array_expr() - ? *_impl_.node_.array_expr_ - : reinterpret_cast< ::pg_query::ArrayExpr&>(::pg_query::_ArrayExpr_default_instance_); -} -inline const ::pg_query::ArrayExpr& Node::array_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.array_expr) - return _internal_array_expr(); -} -inline ::pg_query::ArrayExpr* Node::unsafe_arena_release_array_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.array_expr) - if (_internal_has_array_expr()) { - clear_has_node(); - ::pg_query::ArrayExpr* temp = _impl_.node_.array_expr_; - _impl_.node_.array_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_array_expr(::pg_query::ArrayExpr* array_expr) { - clear_node(); - if (array_expr) { - set_has_array_expr(); - _impl_.node_.array_expr_ = array_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.array_expr) -} -inline ::pg_query::ArrayExpr* Node::_internal_mutable_array_expr() { - if (!_internal_has_array_expr()) { - clear_node(); - set_has_array_expr(); - _impl_.node_.array_expr_ = CreateMaybeMessage< ::pg_query::ArrayExpr >(GetArenaForAllocation()); - } - return _impl_.node_.array_expr_; -} -inline ::pg_query::ArrayExpr* Node::mutable_array_expr() { - ::pg_query::ArrayExpr* _msg = _internal_mutable_array_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.array_expr) - return _msg; -} - -// .pg_query.RowExpr row_expr = 31 [json_name = "RowExpr"]; -inline bool Node::_internal_has_row_expr() const { - return node_case() == kRowExpr; -} -inline bool Node::has_row_expr() const { - return _internal_has_row_expr(); -} -inline void Node::set_has_row_expr() { - _impl_._oneof_case_[0] = kRowExpr; -} -inline void Node::clear_row_expr() { - if (_internal_has_row_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.row_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::RowExpr* Node::release_row_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.row_expr) - if (_internal_has_row_expr()) { - clear_has_node(); - ::pg_query::RowExpr* temp = _impl_.node_.row_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.row_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::RowExpr& Node::_internal_row_expr() const { - return _internal_has_row_expr() - ? *_impl_.node_.row_expr_ - : reinterpret_cast< ::pg_query::RowExpr&>(::pg_query::_RowExpr_default_instance_); -} -inline const ::pg_query::RowExpr& Node::row_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.row_expr) - return _internal_row_expr(); -} -inline ::pg_query::RowExpr* Node::unsafe_arena_release_row_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.row_expr) - if (_internal_has_row_expr()) { - clear_has_node(); - ::pg_query::RowExpr* temp = _impl_.node_.row_expr_; - _impl_.node_.row_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_row_expr(::pg_query::RowExpr* row_expr) { - clear_node(); - if (row_expr) { - set_has_row_expr(); - _impl_.node_.row_expr_ = row_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.row_expr) -} -inline ::pg_query::RowExpr* Node::_internal_mutable_row_expr() { - if (!_internal_has_row_expr()) { - clear_node(); - set_has_row_expr(); - _impl_.node_.row_expr_ = CreateMaybeMessage< ::pg_query::RowExpr >(GetArenaForAllocation()); - } - return _impl_.node_.row_expr_; -} -inline ::pg_query::RowExpr* Node::mutable_row_expr() { - ::pg_query::RowExpr* _msg = _internal_mutable_row_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.row_expr) - return _msg; -} - -// .pg_query.RowCompareExpr row_compare_expr = 32 [json_name = "RowCompareExpr"]; -inline bool Node::_internal_has_row_compare_expr() const { - return node_case() == kRowCompareExpr; -} -inline bool Node::has_row_compare_expr() const { - return _internal_has_row_compare_expr(); -} -inline void Node::set_has_row_compare_expr() { - _impl_._oneof_case_[0] = kRowCompareExpr; -} -inline void Node::clear_row_compare_expr() { - if (_internal_has_row_compare_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.row_compare_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::RowCompareExpr* Node::release_row_compare_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.row_compare_expr) - if (_internal_has_row_compare_expr()) { - clear_has_node(); - ::pg_query::RowCompareExpr* temp = _impl_.node_.row_compare_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.row_compare_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::RowCompareExpr& Node::_internal_row_compare_expr() const { - return _internal_has_row_compare_expr() - ? *_impl_.node_.row_compare_expr_ - : reinterpret_cast< ::pg_query::RowCompareExpr&>(::pg_query::_RowCompareExpr_default_instance_); -} -inline const ::pg_query::RowCompareExpr& Node::row_compare_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.row_compare_expr) - return _internal_row_compare_expr(); -} -inline ::pg_query::RowCompareExpr* Node::unsafe_arena_release_row_compare_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.row_compare_expr) - if (_internal_has_row_compare_expr()) { - clear_has_node(); - ::pg_query::RowCompareExpr* temp = _impl_.node_.row_compare_expr_; - _impl_.node_.row_compare_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_row_compare_expr(::pg_query::RowCompareExpr* row_compare_expr) { - clear_node(); - if (row_compare_expr) { - set_has_row_compare_expr(); - _impl_.node_.row_compare_expr_ = row_compare_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.row_compare_expr) -} -inline ::pg_query::RowCompareExpr* Node::_internal_mutable_row_compare_expr() { - if (!_internal_has_row_compare_expr()) { - clear_node(); - set_has_row_compare_expr(); - _impl_.node_.row_compare_expr_ = CreateMaybeMessage< ::pg_query::RowCompareExpr >(GetArenaForAllocation()); - } - return _impl_.node_.row_compare_expr_; -} -inline ::pg_query::RowCompareExpr* Node::mutable_row_compare_expr() { - ::pg_query::RowCompareExpr* _msg = _internal_mutable_row_compare_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.row_compare_expr) - return _msg; -} - -// .pg_query.CoalesceExpr coalesce_expr = 33 [json_name = "CoalesceExpr"]; -inline bool Node::_internal_has_coalesce_expr() const { - return node_case() == kCoalesceExpr; -} -inline bool Node::has_coalesce_expr() const { - return _internal_has_coalesce_expr(); -} -inline void Node::set_has_coalesce_expr() { - _impl_._oneof_case_[0] = kCoalesceExpr; -} -inline void Node::clear_coalesce_expr() { - if (_internal_has_coalesce_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.coalesce_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::CoalesceExpr* Node::release_coalesce_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.coalesce_expr) - if (_internal_has_coalesce_expr()) { - clear_has_node(); - ::pg_query::CoalesceExpr* temp = _impl_.node_.coalesce_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.coalesce_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CoalesceExpr& Node::_internal_coalesce_expr() const { - return _internal_has_coalesce_expr() - ? *_impl_.node_.coalesce_expr_ - : reinterpret_cast< ::pg_query::CoalesceExpr&>(::pg_query::_CoalesceExpr_default_instance_); -} -inline const ::pg_query::CoalesceExpr& Node::coalesce_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.coalesce_expr) - return _internal_coalesce_expr(); -} -inline ::pg_query::CoalesceExpr* Node::unsafe_arena_release_coalesce_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.coalesce_expr) - if (_internal_has_coalesce_expr()) { - clear_has_node(); - ::pg_query::CoalesceExpr* temp = _impl_.node_.coalesce_expr_; - _impl_.node_.coalesce_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_coalesce_expr(::pg_query::CoalesceExpr* coalesce_expr) { - clear_node(); - if (coalesce_expr) { - set_has_coalesce_expr(); - _impl_.node_.coalesce_expr_ = coalesce_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.coalesce_expr) -} -inline ::pg_query::CoalesceExpr* Node::_internal_mutable_coalesce_expr() { - if (!_internal_has_coalesce_expr()) { - clear_node(); - set_has_coalesce_expr(); - _impl_.node_.coalesce_expr_ = CreateMaybeMessage< ::pg_query::CoalesceExpr >(GetArenaForAllocation()); - } - return _impl_.node_.coalesce_expr_; -} -inline ::pg_query::CoalesceExpr* Node::mutable_coalesce_expr() { - ::pg_query::CoalesceExpr* _msg = _internal_mutable_coalesce_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.coalesce_expr) - return _msg; -} - -// .pg_query.MinMaxExpr min_max_expr = 34 [json_name = "MinMaxExpr"]; -inline bool Node::_internal_has_min_max_expr() const { - return node_case() == kMinMaxExpr; -} -inline bool Node::has_min_max_expr() const { - return _internal_has_min_max_expr(); -} -inline void Node::set_has_min_max_expr() { - _impl_._oneof_case_[0] = kMinMaxExpr; -} -inline void Node::clear_min_max_expr() { - if (_internal_has_min_max_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.min_max_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::MinMaxExpr* Node::release_min_max_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.min_max_expr) - if (_internal_has_min_max_expr()) { - clear_has_node(); - ::pg_query::MinMaxExpr* temp = _impl_.node_.min_max_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.min_max_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::MinMaxExpr& Node::_internal_min_max_expr() const { - return _internal_has_min_max_expr() - ? *_impl_.node_.min_max_expr_ - : reinterpret_cast< ::pg_query::MinMaxExpr&>(::pg_query::_MinMaxExpr_default_instance_); -} -inline const ::pg_query::MinMaxExpr& Node::min_max_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.min_max_expr) - return _internal_min_max_expr(); -} -inline ::pg_query::MinMaxExpr* Node::unsafe_arena_release_min_max_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.min_max_expr) - if (_internal_has_min_max_expr()) { - clear_has_node(); - ::pg_query::MinMaxExpr* temp = _impl_.node_.min_max_expr_; - _impl_.node_.min_max_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_min_max_expr(::pg_query::MinMaxExpr* min_max_expr) { - clear_node(); - if (min_max_expr) { - set_has_min_max_expr(); - _impl_.node_.min_max_expr_ = min_max_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.min_max_expr) -} -inline ::pg_query::MinMaxExpr* Node::_internal_mutable_min_max_expr() { - if (!_internal_has_min_max_expr()) { - clear_node(); - set_has_min_max_expr(); - _impl_.node_.min_max_expr_ = CreateMaybeMessage< ::pg_query::MinMaxExpr >(GetArenaForAllocation()); - } - return _impl_.node_.min_max_expr_; -} -inline ::pg_query::MinMaxExpr* Node::mutable_min_max_expr() { - ::pg_query::MinMaxExpr* _msg = _internal_mutable_min_max_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.min_max_expr) - return _msg; -} - -// .pg_query.SQLValueFunction sqlvalue_function = 35 [json_name = "SQLValueFunction"]; -inline bool Node::_internal_has_sqlvalue_function() const { - return node_case() == kSqlvalueFunction; -} -inline bool Node::has_sqlvalue_function() const { - return _internal_has_sqlvalue_function(); -} -inline void Node::set_has_sqlvalue_function() { - _impl_._oneof_case_[0] = kSqlvalueFunction; -} -inline void Node::clear_sqlvalue_function() { - if (_internal_has_sqlvalue_function()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.sqlvalue_function_; - } - clear_has_node(); - } -} -inline ::pg_query::SQLValueFunction* Node::release_sqlvalue_function() { - // @@protoc_insertion_point(field_release:pg_query.Node.sqlvalue_function) - if (_internal_has_sqlvalue_function()) { - clear_has_node(); - ::pg_query::SQLValueFunction* temp = _impl_.node_.sqlvalue_function_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.sqlvalue_function_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::SQLValueFunction& Node::_internal_sqlvalue_function() const { - return _internal_has_sqlvalue_function() - ? *_impl_.node_.sqlvalue_function_ - : reinterpret_cast< ::pg_query::SQLValueFunction&>(::pg_query::_SQLValueFunction_default_instance_); -} -inline const ::pg_query::SQLValueFunction& Node::sqlvalue_function() const { - // @@protoc_insertion_point(field_get:pg_query.Node.sqlvalue_function) - return _internal_sqlvalue_function(); -} -inline ::pg_query::SQLValueFunction* Node::unsafe_arena_release_sqlvalue_function() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.sqlvalue_function) - if (_internal_has_sqlvalue_function()) { - clear_has_node(); - ::pg_query::SQLValueFunction* temp = _impl_.node_.sqlvalue_function_; - _impl_.node_.sqlvalue_function_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_sqlvalue_function(::pg_query::SQLValueFunction* sqlvalue_function) { - clear_node(); - if (sqlvalue_function) { - set_has_sqlvalue_function(); - _impl_.node_.sqlvalue_function_ = sqlvalue_function; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.sqlvalue_function) -} -inline ::pg_query::SQLValueFunction* Node::_internal_mutable_sqlvalue_function() { - if (!_internal_has_sqlvalue_function()) { - clear_node(); - set_has_sqlvalue_function(); - _impl_.node_.sqlvalue_function_ = CreateMaybeMessage< ::pg_query::SQLValueFunction >(GetArenaForAllocation()); - } - return _impl_.node_.sqlvalue_function_; -} -inline ::pg_query::SQLValueFunction* Node::mutable_sqlvalue_function() { - ::pg_query::SQLValueFunction* _msg = _internal_mutable_sqlvalue_function(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.sqlvalue_function) - return _msg; -} - -// .pg_query.XmlExpr xml_expr = 36 [json_name = "XmlExpr"]; -inline bool Node::_internal_has_xml_expr() const { - return node_case() == kXmlExpr; -} -inline bool Node::has_xml_expr() const { - return _internal_has_xml_expr(); -} -inline void Node::set_has_xml_expr() { - _impl_._oneof_case_[0] = kXmlExpr; -} -inline void Node::clear_xml_expr() { - if (_internal_has_xml_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.xml_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::XmlExpr* Node::release_xml_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.xml_expr) - if (_internal_has_xml_expr()) { - clear_has_node(); - ::pg_query::XmlExpr* temp = _impl_.node_.xml_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.xml_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::XmlExpr& Node::_internal_xml_expr() const { - return _internal_has_xml_expr() - ? *_impl_.node_.xml_expr_ - : reinterpret_cast< ::pg_query::XmlExpr&>(::pg_query::_XmlExpr_default_instance_); -} -inline const ::pg_query::XmlExpr& Node::xml_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.xml_expr) - return _internal_xml_expr(); -} -inline ::pg_query::XmlExpr* Node::unsafe_arena_release_xml_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.xml_expr) - if (_internal_has_xml_expr()) { - clear_has_node(); - ::pg_query::XmlExpr* temp = _impl_.node_.xml_expr_; - _impl_.node_.xml_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_xml_expr(::pg_query::XmlExpr* xml_expr) { - clear_node(); - if (xml_expr) { - set_has_xml_expr(); - _impl_.node_.xml_expr_ = xml_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.xml_expr) -} -inline ::pg_query::XmlExpr* Node::_internal_mutable_xml_expr() { - if (!_internal_has_xml_expr()) { - clear_node(); - set_has_xml_expr(); - _impl_.node_.xml_expr_ = CreateMaybeMessage< ::pg_query::XmlExpr >(GetArenaForAllocation()); - } - return _impl_.node_.xml_expr_; -} -inline ::pg_query::XmlExpr* Node::mutable_xml_expr() { - ::pg_query::XmlExpr* _msg = _internal_mutable_xml_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.xml_expr) - return _msg; -} - -// .pg_query.NullTest null_test = 37 [json_name = "NullTest"]; -inline bool Node::_internal_has_null_test() const { - return node_case() == kNullTest; -} -inline bool Node::has_null_test() const { - return _internal_has_null_test(); -} -inline void Node::set_has_null_test() { - _impl_._oneof_case_[0] = kNullTest; -} -inline void Node::clear_null_test() { - if (_internal_has_null_test()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.null_test_; - } - clear_has_node(); - } -} -inline ::pg_query::NullTest* Node::release_null_test() { - // @@protoc_insertion_point(field_release:pg_query.Node.null_test) - if (_internal_has_null_test()) { - clear_has_node(); - ::pg_query::NullTest* temp = _impl_.node_.null_test_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.null_test_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::NullTest& Node::_internal_null_test() const { - return _internal_has_null_test() - ? *_impl_.node_.null_test_ - : reinterpret_cast< ::pg_query::NullTest&>(::pg_query::_NullTest_default_instance_); -} -inline const ::pg_query::NullTest& Node::null_test() const { - // @@protoc_insertion_point(field_get:pg_query.Node.null_test) - return _internal_null_test(); -} -inline ::pg_query::NullTest* Node::unsafe_arena_release_null_test() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.null_test) - if (_internal_has_null_test()) { - clear_has_node(); - ::pg_query::NullTest* temp = _impl_.node_.null_test_; - _impl_.node_.null_test_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_null_test(::pg_query::NullTest* null_test) { - clear_node(); - if (null_test) { - set_has_null_test(); - _impl_.node_.null_test_ = null_test; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.null_test) -} -inline ::pg_query::NullTest* Node::_internal_mutable_null_test() { - if (!_internal_has_null_test()) { - clear_node(); - set_has_null_test(); - _impl_.node_.null_test_ = CreateMaybeMessage< ::pg_query::NullTest >(GetArenaForAllocation()); - } - return _impl_.node_.null_test_; -} -inline ::pg_query::NullTest* Node::mutable_null_test() { - ::pg_query::NullTest* _msg = _internal_mutable_null_test(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.null_test) - return _msg; -} - -// .pg_query.BooleanTest boolean_test = 38 [json_name = "BooleanTest"]; -inline bool Node::_internal_has_boolean_test() const { - return node_case() == kBooleanTest; -} -inline bool Node::has_boolean_test() const { - return _internal_has_boolean_test(); -} -inline void Node::set_has_boolean_test() { - _impl_._oneof_case_[0] = kBooleanTest; -} -inline void Node::clear_boolean_test() { - if (_internal_has_boolean_test()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.boolean_test_; - } - clear_has_node(); - } -} -inline ::pg_query::BooleanTest* Node::release_boolean_test() { - // @@protoc_insertion_point(field_release:pg_query.Node.boolean_test) - if (_internal_has_boolean_test()) { - clear_has_node(); - ::pg_query::BooleanTest* temp = _impl_.node_.boolean_test_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.boolean_test_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::BooleanTest& Node::_internal_boolean_test() const { - return _internal_has_boolean_test() - ? *_impl_.node_.boolean_test_ - : reinterpret_cast< ::pg_query::BooleanTest&>(::pg_query::_BooleanTest_default_instance_); -} -inline const ::pg_query::BooleanTest& Node::boolean_test() const { - // @@protoc_insertion_point(field_get:pg_query.Node.boolean_test) - return _internal_boolean_test(); -} -inline ::pg_query::BooleanTest* Node::unsafe_arena_release_boolean_test() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.boolean_test) - if (_internal_has_boolean_test()) { - clear_has_node(); - ::pg_query::BooleanTest* temp = _impl_.node_.boolean_test_; - _impl_.node_.boolean_test_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_boolean_test(::pg_query::BooleanTest* boolean_test) { - clear_node(); - if (boolean_test) { - set_has_boolean_test(); - _impl_.node_.boolean_test_ = boolean_test; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.boolean_test) -} -inline ::pg_query::BooleanTest* Node::_internal_mutable_boolean_test() { - if (!_internal_has_boolean_test()) { - clear_node(); - set_has_boolean_test(); - _impl_.node_.boolean_test_ = CreateMaybeMessage< ::pg_query::BooleanTest >(GetArenaForAllocation()); - } - return _impl_.node_.boolean_test_; -} -inline ::pg_query::BooleanTest* Node::mutable_boolean_test() { - ::pg_query::BooleanTest* _msg = _internal_mutable_boolean_test(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.boolean_test) - return _msg; -} - -// .pg_query.CoerceToDomain coerce_to_domain = 39 [json_name = "CoerceToDomain"]; -inline bool Node::_internal_has_coerce_to_domain() const { - return node_case() == kCoerceToDomain; -} -inline bool Node::has_coerce_to_domain() const { - return _internal_has_coerce_to_domain(); -} -inline void Node::set_has_coerce_to_domain() { - _impl_._oneof_case_[0] = kCoerceToDomain; -} -inline void Node::clear_coerce_to_domain() { - if (_internal_has_coerce_to_domain()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.coerce_to_domain_; - } - clear_has_node(); - } -} -inline ::pg_query::CoerceToDomain* Node::release_coerce_to_domain() { - // @@protoc_insertion_point(field_release:pg_query.Node.coerce_to_domain) - if (_internal_has_coerce_to_domain()) { - clear_has_node(); - ::pg_query::CoerceToDomain* temp = _impl_.node_.coerce_to_domain_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.coerce_to_domain_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CoerceToDomain& Node::_internal_coerce_to_domain() const { - return _internal_has_coerce_to_domain() - ? *_impl_.node_.coerce_to_domain_ - : reinterpret_cast< ::pg_query::CoerceToDomain&>(::pg_query::_CoerceToDomain_default_instance_); -} -inline const ::pg_query::CoerceToDomain& Node::coerce_to_domain() const { - // @@protoc_insertion_point(field_get:pg_query.Node.coerce_to_domain) - return _internal_coerce_to_domain(); -} -inline ::pg_query::CoerceToDomain* Node::unsafe_arena_release_coerce_to_domain() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.coerce_to_domain) - if (_internal_has_coerce_to_domain()) { - clear_has_node(); - ::pg_query::CoerceToDomain* temp = _impl_.node_.coerce_to_domain_; - _impl_.node_.coerce_to_domain_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_coerce_to_domain(::pg_query::CoerceToDomain* coerce_to_domain) { - clear_node(); - if (coerce_to_domain) { - set_has_coerce_to_domain(); - _impl_.node_.coerce_to_domain_ = coerce_to_domain; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.coerce_to_domain) -} -inline ::pg_query::CoerceToDomain* Node::_internal_mutable_coerce_to_domain() { - if (!_internal_has_coerce_to_domain()) { - clear_node(); - set_has_coerce_to_domain(); - _impl_.node_.coerce_to_domain_ = CreateMaybeMessage< ::pg_query::CoerceToDomain >(GetArenaForAllocation()); - } - return _impl_.node_.coerce_to_domain_; -} -inline ::pg_query::CoerceToDomain* Node::mutable_coerce_to_domain() { - ::pg_query::CoerceToDomain* _msg = _internal_mutable_coerce_to_domain(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.coerce_to_domain) - return _msg; -} - -// .pg_query.CoerceToDomainValue coerce_to_domain_value = 40 [json_name = "CoerceToDomainValue"]; -inline bool Node::_internal_has_coerce_to_domain_value() const { - return node_case() == kCoerceToDomainValue; -} -inline bool Node::has_coerce_to_domain_value() const { - return _internal_has_coerce_to_domain_value(); -} -inline void Node::set_has_coerce_to_domain_value() { - _impl_._oneof_case_[0] = kCoerceToDomainValue; -} -inline void Node::clear_coerce_to_domain_value() { - if (_internal_has_coerce_to_domain_value()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.coerce_to_domain_value_; - } - clear_has_node(); - } -} -inline ::pg_query::CoerceToDomainValue* Node::release_coerce_to_domain_value() { - // @@protoc_insertion_point(field_release:pg_query.Node.coerce_to_domain_value) - if (_internal_has_coerce_to_domain_value()) { - clear_has_node(); - ::pg_query::CoerceToDomainValue* temp = _impl_.node_.coerce_to_domain_value_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.coerce_to_domain_value_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CoerceToDomainValue& Node::_internal_coerce_to_domain_value() const { - return _internal_has_coerce_to_domain_value() - ? *_impl_.node_.coerce_to_domain_value_ - : reinterpret_cast< ::pg_query::CoerceToDomainValue&>(::pg_query::_CoerceToDomainValue_default_instance_); -} -inline const ::pg_query::CoerceToDomainValue& Node::coerce_to_domain_value() const { - // @@protoc_insertion_point(field_get:pg_query.Node.coerce_to_domain_value) - return _internal_coerce_to_domain_value(); -} -inline ::pg_query::CoerceToDomainValue* Node::unsafe_arena_release_coerce_to_domain_value() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.coerce_to_domain_value) - if (_internal_has_coerce_to_domain_value()) { - clear_has_node(); - ::pg_query::CoerceToDomainValue* temp = _impl_.node_.coerce_to_domain_value_; - _impl_.node_.coerce_to_domain_value_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_coerce_to_domain_value(::pg_query::CoerceToDomainValue* coerce_to_domain_value) { - clear_node(); - if (coerce_to_domain_value) { - set_has_coerce_to_domain_value(); - _impl_.node_.coerce_to_domain_value_ = coerce_to_domain_value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.coerce_to_domain_value) -} -inline ::pg_query::CoerceToDomainValue* Node::_internal_mutable_coerce_to_domain_value() { - if (!_internal_has_coerce_to_domain_value()) { - clear_node(); - set_has_coerce_to_domain_value(); - _impl_.node_.coerce_to_domain_value_ = CreateMaybeMessage< ::pg_query::CoerceToDomainValue >(GetArenaForAllocation()); - } - return _impl_.node_.coerce_to_domain_value_; -} -inline ::pg_query::CoerceToDomainValue* Node::mutable_coerce_to_domain_value() { - ::pg_query::CoerceToDomainValue* _msg = _internal_mutable_coerce_to_domain_value(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.coerce_to_domain_value) - return _msg; -} - -// .pg_query.SetToDefault set_to_default = 41 [json_name = "SetToDefault"]; -inline bool Node::_internal_has_set_to_default() const { - return node_case() == kSetToDefault; -} -inline bool Node::has_set_to_default() const { - return _internal_has_set_to_default(); -} -inline void Node::set_has_set_to_default() { - _impl_._oneof_case_[0] = kSetToDefault; -} -inline void Node::clear_set_to_default() { - if (_internal_has_set_to_default()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.set_to_default_; - } - clear_has_node(); - } -} -inline ::pg_query::SetToDefault* Node::release_set_to_default() { - // @@protoc_insertion_point(field_release:pg_query.Node.set_to_default) - if (_internal_has_set_to_default()) { - clear_has_node(); - ::pg_query::SetToDefault* temp = _impl_.node_.set_to_default_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.set_to_default_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::SetToDefault& Node::_internal_set_to_default() const { - return _internal_has_set_to_default() - ? *_impl_.node_.set_to_default_ - : reinterpret_cast< ::pg_query::SetToDefault&>(::pg_query::_SetToDefault_default_instance_); -} -inline const ::pg_query::SetToDefault& Node::set_to_default() const { - // @@protoc_insertion_point(field_get:pg_query.Node.set_to_default) - return _internal_set_to_default(); -} -inline ::pg_query::SetToDefault* Node::unsafe_arena_release_set_to_default() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.set_to_default) - if (_internal_has_set_to_default()) { - clear_has_node(); - ::pg_query::SetToDefault* temp = _impl_.node_.set_to_default_; - _impl_.node_.set_to_default_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_set_to_default(::pg_query::SetToDefault* set_to_default) { - clear_node(); - if (set_to_default) { - set_has_set_to_default(); - _impl_.node_.set_to_default_ = set_to_default; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.set_to_default) -} -inline ::pg_query::SetToDefault* Node::_internal_mutable_set_to_default() { - if (!_internal_has_set_to_default()) { - clear_node(); - set_has_set_to_default(); - _impl_.node_.set_to_default_ = CreateMaybeMessage< ::pg_query::SetToDefault >(GetArenaForAllocation()); - } - return _impl_.node_.set_to_default_; -} -inline ::pg_query::SetToDefault* Node::mutable_set_to_default() { - ::pg_query::SetToDefault* _msg = _internal_mutable_set_to_default(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.set_to_default) - return _msg; -} - -// .pg_query.CurrentOfExpr current_of_expr = 42 [json_name = "CurrentOfExpr"]; -inline bool Node::_internal_has_current_of_expr() const { - return node_case() == kCurrentOfExpr; -} -inline bool Node::has_current_of_expr() const { - return _internal_has_current_of_expr(); -} -inline void Node::set_has_current_of_expr() { - _impl_._oneof_case_[0] = kCurrentOfExpr; -} -inline void Node::clear_current_of_expr() { - if (_internal_has_current_of_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.current_of_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::CurrentOfExpr* Node::release_current_of_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.current_of_expr) - if (_internal_has_current_of_expr()) { - clear_has_node(); - ::pg_query::CurrentOfExpr* temp = _impl_.node_.current_of_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.current_of_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CurrentOfExpr& Node::_internal_current_of_expr() const { - return _internal_has_current_of_expr() - ? *_impl_.node_.current_of_expr_ - : reinterpret_cast< ::pg_query::CurrentOfExpr&>(::pg_query::_CurrentOfExpr_default_instance_); -} -inline const ::pg_query::CurrentOfExpr& Node::current_of_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.current_of_expr) - return _internal_current_of_expr(); -} -inline ::pg_query::CurrentOfExpr* Node::unsafe_arena_release_current_of_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.current_of_expr) - if (_internal_has_current_of_expr()) { - clear_has_node(); - ::pg_query::CurrentOfExpr* temp = _impl_.node_.current_of_expr_; - _impl_.node_.current_of_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_current_of_expr(::pg_query::CurrentOfExpr* current_of_expr) { - clear_node(); - if (current_of_expr) { - set_has_current_of_expr(); - _impl_.node_.current_of_expr_ = current_of_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.current_of_expr) -} -inline ::pg_query::CurrentOfExpr* Node::_internal_mutable_current_of_expr() { - if (!_internal_has_current_of_expr()) { - clear_node(); - set_has_current_of_expr(); - _impl_.node_.current_of_expr_ = CreateMaybeMessage< ::pg_query::CurrentOfExpr >(GetArenaForAllocation()); - } - return _impl_.node_.current_of_expr_; -} -inline ::pg_query::CurrentOfExpr* Node::mutable_current_of_expr() { - ::pg_query::CurrentOfExpr* _msg = _internal_mutable_current_of_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.current_of_expr) - return _msg; -} - -// .pg_query.NextValueExpr next_value_expr = 43 [json_name = "NextValueExpr"]; -inline bool Node::_internal_has_next_value_expr() const { - return node_case() == kNextValueExpr; -} -inline bool Node::has_next_value_expr() const { - return _internal_has_next_value_expr(); -} -inline void Node::set_has_next_value_expr() { - _impl_._oneof_case_[0] = kNextValueExpr; -} -inline void Node::clear_next_value_expr() { - if (_internal_has_next_value_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.next_value_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::NextValueExpr* Node::release_next_value_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.next_value_expr) - if (_internal_has_next_value_expr()) { - clear_has_node(); - ::pg_query::NextValueExpr* temp = _impl_.node_.next_value_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.next_value_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::NextValueExpr& Node::_internal_next_value_expr() const { - return _internal_has_next_value_expr() - ? *_impl_.node_.next_value_expr_ - : reinterpret_cast< ::pg_query::NextValueExpr&>(::pg_query::_NextValueExpr_default_instance_); -} -inline const ::pg_query::NextValueExpr& Node::next_value_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.next_value_expr) - return _internal_next_value_expr(); -} -inline ::pg_query::NextValueExpr* Node::unsafe_arena_release_next_value_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.next_value_expr) - if (_internal_has_next_value_expr()) { - clear_has_node(); - ::pg_query::NextValueExpr* temp = _impl_.node_.next_value_expr_; - _impl_.node_.next_value_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_next_value_expr(::pg_query::NextValueExpr* next_value_expr) { - clear_node(); - if (next_value_expr) { - set_has_next_value_expr(); - _impl_.node_.next_value_expr_ = next_value_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.next_value_expr) -} -inline ::pg_query::NextValueExpr* Node::_internal_mutable_next_value_expr() { - if (!_internal_has_next_value_expr()) { - clear_node(); - set_has_next_value_expr(); - _impl_.node_.next_value_expr_ = CreateMaybeMessage< ::pg_query::NextValueExpr >(GetArenaForAllocation()); - } - return _impl_.node_.next_value_expr_; -} -inline ::pg_query::NextValueExpr* Node::mutable_next_value_expr() { - ::pg_query::NextValueExpr* _msg = _internal_mutable_next_value_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.next_value_expr) - return _msg; -} - -// .pg_query.InferenceElem inference_elem = 44 [json_name = "InferenceElem"]; -inline bool Node::_internal_has_inference_elem() const { - return node_case() == kInferenceElem; -} -inline bool Node::has_inference_elem() const { - return _internal_has_inference_elem(); -} -inline void Node::set_has_inference_elem() { - _impl_._oneof_case_[0] = kInferenceElem; -} -inline void Node::clear_inference_elem() { - if (_internal_has_inference_elem()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.inference_elem_; - } - clear_has_node(); - } -} -inline ::pg_query::InferenceElem* Node::release_inference_elem() { - // @@protoc_insertion_point(field_release:pg_query.Node.inference_elem) - if (_internal_has_inference_elem()) { - clear_has_node(); - ::pg_query::InferenceElem* temp = _impl_.node_.inference_elem_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.inference_elem_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::InferenceElem& Node::_internal_inference_elem() const { - return _internal_has_inference_elem() - ? *_impl_.node_.inference_elem_ - : reinterpret_cast< ::pg_query::InferenceElem&>(::pg_query::_InferenceElem_default_instance_); -} -inline const ::pg_query::InferenceElem& Node::inference_elem() const { - // @@protoc_insertion_point(field_get:pg_query.Node.inference_elem) - return _internal_inference_elem(); -} -inline ::pg_query::InferenceElem* Node::unsafe_arena_release_inference_elem() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.inference_elem) - if (_internal_has_inference_elem()) { - clear_has_node(); - ::pg_query::InferenceElem* temp = _impl_.node_.inference_elem_; - _impl_.node_.inference_elem_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_inference_elem(::pg_query::InferenceElem* inference_elem) { - clear_node(); - if (inference_elem) { - set_has_inference_elem(); - _impl_.node_.inference_elem_ = inference_elem; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.inference_elem) -} -inline ::pg_query::InferenceElem* Node::_internal_mutable_inference_elem() { - if (!_internal_has_inference_elem()) { - clear_node(); - set_has_inference_elem(); - _impl_.node_.inference_elem_ = CreateMaybeMessage< ::pg_query::InferenceElem >(GetArenaForAllocation()); - } - return _impl_.node_.inference_elem_; -} -inline ::pg_query::InferenceElem* Node::mutable_inference_elem() { - ::pg_query::InferenceElem* _msg = _internal_mutable_inference_elem(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.inference_elem) - return _msg; -} - -// .pg_query.TargetEntry target_entry = 45 [json_name = "TargetEntry"]; -inline bool Node::_internal_has_target_entry() const { - return node_case() == kTargetEntry; -} -inline bool Node::has_target_entry() const { - return _internal_has_target_entry(); -} -inline void Node::set_has_target_entry() { - _impl_._oneof_case_[0] = kTargetEntry; -} -inline void Node::clear_target_entry() { - if (_internal_has_target_entry()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.target_entry_; - } - clear_has_node(); - } -} -inline ::pg_query::TargetEntry* Node::release_target_entry() { - // @@protoc_insertion_point(field_release:pg_query.Node.target_entry) - if (_internal_has_target_entry()) { - clear_has_node(); - ::pg_query::TargetEntry* temp = _impl_.node_.target_entry_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.target_entry_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::TargetEntry& Node::_internal_target_entry() const { - return _internal_has_target_entry() - ? *_impl_.node_.target_entry_ - : reinterpret_cast< ::pg_query::TargetEntry&>(::pg_query::_TargetEntry_default_instance_); -} -inline const ::pg_query::TargetEntry& Node::target_entry() const { - // @@protoc_insertion_point(field_get:pg_query.Node.target_entry) - return _internal_target_entry(); -} -inline ::pg_query::TargetEntry* Node::unsafe_arena_release_target_entry() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.target_entry) - if (_internal_has_target_entry()) { - clear_has_node(); - ::pg_query::TargetEntry* temp = _impl_.node_.target_entry_; - _impl_.node_.target_entry_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_target_entry(::pg_query::TargetEntry* target_entry) { - clear_node(); - if (target_entry) { - set_has_target_entry(); - _impl_.node_.target_entry_ = target_entry; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.target_entry) -} -inline ::pg_query::TargetEntry* Node::_internal_mutable_target_entry() { - if (!_internal_has_target_entry()) { - clear_node(); - set_has_target_entry(); - _impl_.node_.target_entry_ = CreateMaybeMessage< ::pg_query::TargetEntry >(GetArenaForAllocation()); - } - return _impl_.node_.target_entry_; -} -inline ::pg_query::TargetEntry* Node::mutable_target_entry() { - ::pg_query::TargetEntry* _msg = _internal_mutable_target_entry(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.target_entry) - return _msg; -} - -// .pg_query.RangeTblRef range_tbl_ref = 46 [json_name = "RangeTblRef"]; -inline bool Node::_internal_has_range_tbl_ref() const { - return node_case() == kRangeTblRef; -} -inline bool Node::has_range_tbl_ref() const { - return _internal_has_range_tbl_ref(); -} -inline void Node::set_has_range_tbl_ref() { - _impl_._oneof_case_[0] = kRangeTblRef; -} -inline void Node::clear_range_tbl_ref() { - if (_internal_has_range_tbl_ref()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.range_tbl_ref_; - } - clear_has_node(); - } -} -inline ::pg_query::RangeTblRef* Node::release_range_tbl_ref() { - // @@protoc_insertion_point(field_release:pg_query.Node.range_tbl_ref) - if (_internal_has_range_tbl_ref()) { - clear_has_node(); - ::pg_query::RangeTblRef* temp = _impl_.node_.range_tbl_ref_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.range_tbl_ref_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::RangeTblRef& Node::_internal_range_tbl_ref() const { - return _internal_has_range_tbl_ref() - ? *_impl_.node_.range_tbl_ref_ - : reinterpret_cast< ::pg_query::RangeTblRef&>(::pg_query::_RangeTblRef_default_instance_); -} -inline const ::pg_query::RangeTblRef& Node::range_tbl_ref() const { - // @@protoc_insertion_point(field_get:pg_query.Node.range_tbl_ref) - return _internal_range_tbl_ref(); -} -inline ::pg_query::RangeTblRef* Node::unsafe_arena_release_range_tbl_ref() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.range_tbl_ref) - if (_internal_has_range_tbl_ref()) { - clear_has_node(); - ::pg_query::RangeTblRef* temp = _impl_.node_.range_tbl_ref_; - _impl_.node_.range_tbl_ref_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_range_tbl_ref(::pg_query::RangeTblRef* range_tbl_ref) { - clear_node(); - if (range_tbl_ref) { - set_has_range_tbl_ref(); - _impl_.node_.range_tbl_ref_ = range_tbl_ref; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.range_tbl_ref) -} -inline ::pg_query::RangeTblRef* Node::_internal_mutable_range_tbl_ref() { - if (!_internal_has_range_tbl_ref()) { - clear_node(); - set_has_range_tbl_ref(); - _impl_.node_.range_tbl_ref_ = CreateMaybeMessage< ::pg_query::RangeTblRef >(GetArenaForAllocation()); - } - return _impl_.node_.range_tbl_ref_; -} -inline ::pg_query::RangeTblRef* Node::mutable_range_tbl_ref() { - ::pg_query::RangeTblRef* _msg = _internal_mutable_range_tbl_ref(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.range_tbl_ref) - return _msg; -} - -// .pg_query.JoinExpr join_expr = 47 [json_name = "JoinExpr"]; -inline bool Node::_internal_has_join_expr() const { - return node_case() == kJoinExpr; -} -inline bool Node::has_join_expr() const { - return _internal_has_join_expr(); -} -inline void Node::set_has_join_expr() { - _impl_._oneof_case_[0] = kJoinExpr; -} -inline void Node::clear_join_expr() { - if (_internal_has_join_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.join_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::JoinExpr* Node::release_join_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.join_expr) - if (_internal_has_join_expr()) { - clear_has_node(); - ::pg_query::JoinExpr* temp = _impl_.node_.join_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.join_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::JoinExpr& Node::_internal_join_expr() const { - return _internal_has_join_expr() - ? *_impl_.node_.join_expr_ - : reinterpret_cast< ::pg_query::JoinExpr&>(::pg_query::_JoinExpr_default_instance_); -} -inline const ::pg_query::JoinExpr& Node::join_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.join_expr) - return _internal_join_expr(); -} -inline ::pg_query::JoinExpr* Node::unsafe_arena_release_join_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.join_expr) - if (_internal_has_join_expr()) { - clear_has_node(); - ::pg_query::JoinExpr* temp = _impl_.node_.join_expr_; - _impl_.node_.join_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_join_expr(::pg_query::JoinExpr* join_expr) { - clear_node(); - if (join_expr) { - set_has_join_expr(); - _impl_.node_.join_expr_ = join_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.join_expr) -} -inline ::pg_query::JoinExpr* Node::_internal_mutable_join_expr() { - if (!_internal_has_join_expr()) { - clear_node(); - set_has_join_expr(); - _impl_.node_.join_expr_ = CreateMaybeMessage< ::pg_query::JoinExpr >(GetArenaForAllocation()); - } - return _impl_.node_.join_expr_; -} -inline ::pg_query::JoinExpr* Node::mutable_join_expr() { - ::pg_query::JoinExpr* _msg = _internal_mutable_join_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.join_expr) - return _msg; -} - -// .pg_query.FromExpr from_expr = 48 [json_name = "FromExpr"]; -inline bool Node::_internal_has_from_expr() const { - return node_case() == kFromExpr; -} -inline bool Node::has_from_expr() const { - return _internal_has_from_expr(); -} -inline void Node::set_has_from_expr() { - _impl_._oneof_case_[0] = kFromExpr; -} -inline void Node::clear_from_expr() { - if (_internal_has_from_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.from_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::FromExpr* Node::release_from_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.from_expr) - if (_internal_has_from_expr()) { - clear_has_node(); - ::pg_query::FromExpr* temp = _impl_.node_.from_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.from_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::FromExpr& Node::_internal_from_expr() const { - return _internal_has_from_expr() - ? *_impl_.node_.from_expr_ - : reinterpret_cast< ::pg_query::FromExpr&>(::pg_query::_FromExpr_default_instance_); -} -inline const ::pg_query::FromExpr& Node::from_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.from_expr) - return _internal_from_expr(); -} -inline ::pg_query::FromExpr* Node::unsafe_arena_release_from_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.from_expr) - if (_internal_has_from_expr()) { - clear_has_node(); - ::pg_query::FromExpr* temp = _impl_.node_.from_expr_; - _impl_.node_.from_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_from_expr(::pg_query::FromExpr* from_expr) { - clear_node(); - if (from_expr) { - set_has_from_expr(); - _impl_.node_.from_expr_ = from_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.from_expr) -} -inline ::pg_query::FromExpr* Node::_internal_mutable_from_expr() { - if (!_internal_has_from_expr()) { - clear_node(); - set_has_from_expr(); - _impl_.node_.from_expr_ = CreateMaybeMessage< ::pg_query::FromExpr >(GetArenaForAllocation()); - } - return _impl_.node_.from_expr_; -} -inline ::pg_query::FromExpr* Node::mutable_from_expr() { - ::pg_query::FromExpr* _msg = _internal_mutable_from_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.from_expr) - return _msg; -} - -// .pg_query.OnConflictExpr on_conflict_expr = 49 [json_name = "OnConflictExpr"]; -inline bool Node::_internal_has_on_conflict_expr() const { - return node_case() == kOnConflictExpr; -} -inline bool Node::has_on_conflict_expr() const { - return _internal_has_on_conflict_expr(); -} -inline void Node::set_has_on_conflict_expr() { - _impl_._oneof_case_[0] = kOnConflictExpr; -} -inline void Node::clear_on_conflict_expr() { - if (_internal_has_on_conflict_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.on_conflict_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::OnConflictExpr* Node::release_on_conflict_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.on_conflict_expr) - if (_internal_has_on_conflict_expr()) { - clear_has_node(); - ::pg_query::OnConflictExpr* temp = _impl_.node_.on_conflict_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.on_conflict_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::OnConflictExpr& Node::_internal_on_conflict_expr() const { - return _internal_has_on_conflict_expr() - ? *_impl_.node_.on_conflict_expr_ - : reinterpret_cast< ::pg_query::OnConflictExpr&>(::pg_query::_OnConflictExpr_default_instance_); -} -inline const ::pg_query::OnConflictExpr& Node::on_conflict_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.on_conflict_expr) - return _internal_on_conflict_expr(); -} -inline ::pg_query::OnConflictExpr* Node::unsafe_arena_release_on_conflict_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.on_conflict_expr) - if (_internal_has_on_conflict_expr()) { - clear_has_node(); - ::pg_query::OnConflictExpr* temp = _impl_.node_.on_conflict_expr_; - _impl_.node_.on_conflict_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_on_conflict_expr(::pg_query::OnConflictExpr* on_conflict_expr) { - clear_node(); - if (on_conflict_expr) { - set_has_on_conflict_expr(); - _impl_.node_.on_conflict_expr_ = on_conflict_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.on_conflict_expr) -} -inline ::pg_query::OnConflictExpr* Node::_internal_mutable_on_conflict_expr() { - if (!_internal_has_on_conflict_expr()) { - clear_node(); - set_has_on_conflict_expr(); - _impl_.node_.on_conflict_expr_ = CreateMaybeMessage< ::pg_query::OnConflictExpr >(GetArenaForAllocation()); - } - return _impl_.node_.on_conflict_expr_; -} -inline ::pg_query::OnConflictExpr* Node::mutable_on_conflict_expr() { - ::pg_query::OnConflictExpr* _msg = _internal_mutable_on_conflict_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.on_conflict_expr) - return _msg; -} - -// .pg_query.IntoClause into_clause = 50 [json_name = "IntoClause"]; -inline bool Node::_internal_has_into_clause() const { - return node_case() == kIntoClause; -} -inline bool Node::has_into_clause() const { - return _internal_has_into_clause(); -} -inline void Node::set_has_into_clause() { - _impl_._oneof_case_[0] = kIntoClause; -} -inline void Node::clear_into_clause() { - if (_internal_has_into_clause()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.into_clause_; - } - clear_has_node(); - } -} -inline ::pg_query::IntoClause* Node::release_into_clause() { - // @@protoc_insertion_point(field_release:pg_query.Node.into_clause) - if (_internal_has_into_clause()) { - clear_has_node(); - ::pg_query::IntoClause* temp = _impl_.node_.into_clause_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.into_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::IntoClause& Node::_internal_into_clause() const { - return _internal_has_into_clause() - ? *_impl_.node_.into_clause_ - : reinterpret_cast< ::pg_query::IntoClause&>(::pg_query::_IntoClause_default_instance_); -} -inline const ::pg_query::IntoClause& Node::into_clause() const { - // @@protoc_insertion_point(field_get:pg_query.Node.into_clause) - return _internal_into_clause(); -} -inline ::pg_query::IntoClause* Node::unsafe_arena_release_into_clause() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.into_clause) - if (_internal_has_into_clause()) { - clear_has_node(); - ::pg_query::IntoClause* temp = _impl_.node_.into_clause_; - _impl_.node_.into_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_into_clause(::pg_query::IntoClause* into_clause) { - clear_node(); - if (into_clause) { - set_has_into_clause(); - _impl_.node_.into_clause_ = into_clause; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.into_clause) -} -inline ::pg_query::IntoClause* Node::_internal_mutable_into_clause() { - if (!_internal_has_into_clause()) { - clear_node(); - set_has_into_clause(); - _impl_.node_.into_clause_ = CreateMaybeMessage< ::pg_query::IntoClause >(GetArenaForAllocation()); - } - return _impl_.node_.into_clause_; -} -inline ::pg_query::IntoClause* Node::mutable_into_clause() { - ::pg_query::IntoClause* _msg = _internal_mutable_into_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.into_clause) - return _msg; -} - -// .pg_query.MergeAction merge_action = 51 [json_name = "MergeAction"]; -inline bool Node::_internal_has_merge_action() const { - return node_case() == kMergeAction; -} -inline bool Node::has_merge_action() const { - return _internal_has_merge_action(); -} -inline void Node::set_has_merge_action() { - _impl_._oneof_case_[0] = kMergeAction; -} -inline void Node::clear_merge_action() { - if (_internal_has_merge_action()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.merge_action_; - } - clear_has_node(); - } -} -inline ::pg_query::MergeAction* Node::release_merge_action() { - // @@protoc_insertion_point(field_release:pg_query.Node.merge_action) - if (_internal_has_merge_action()) { - clear_has_node(); - ::pg_query::MergeAction* temp = _impl_.node_.merge_action_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.merge_action_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::MergeAction& Node::_internal_merge_action() const { - return _internal_has_merge_action() - ? *_impl_.node_.merge_action_ - : reinterpret_cast< ::pg_query::MergeAction&>(::pg_query::_MergeAction_default_instance_); -} -inline const ::pg_query::MergeAction& Node::merge_action() const { - // @@protoc_insertion_point(field_get:pg_query.Node.merge_action) - return _internal_merge_action(); -} -inline ::pg_query::MergeAction* Node::unsafe_arena_release_merge_action() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.merge_action) - if (_internal_has_merge_action()) { - clear_has_node(); - ::pg_query::MergeAction* temp = _impl_.node_.merge_action_; - _impl_.node_.merge_action_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_merge_action(::pg_query::MergeAction* merge_action) { - clear_node(); - if (merge_action) { - set_has_merge_action(); - _impl_.node_.merge_action_ = merge_action; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.merge_action) -} -inline ::pg_query::MergeAction* Node::_internal_mutable_merge_action() { - if (!_internal_has_merge_action()) { - clear_node(); - set_has_merge_action(); - _impl_.node_.merge_action_ = CreateMaybeMessage< ::pg_query::MergeAction >(GetArenaForAllocation()); - } - return _impl_.node_.merge_action_; -} -inline ::pg_query::MergeAction* Node::mutable_merge_action() { - ::pg_query::MergeAction* _msg = _internal_mutable_merge_action(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.merge_action) - return _msg; -} - -// .pg_query.RawStmt raw_stmt = 52 [json_name = "RawStmt"]; -inline bool Node::_internal_has_raw_stmt() const { - return node_case() == kRawStmt; -} -inline bool Node::has_raw_stmt() const { - return _internal_has_raw_stmt(); -} -inline void Node::set_has_raw_stmt() { - _impl_._oneof_case_[0] = kRawStmt; -} -inline void Node::clear_raw_stmt() { - if (_internal_has_raw_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.raw_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::RawStmt* Node::release_raw_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.raw_stmt) - if (_internal_has_raw_stmt()) { - clear_has_node(); - ::pg_query::RawStmt* temp = _impl_.node_.raw_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.raw_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::RawStmt& Node::_internal_raw_stmt() const { - return _internal_has_raw_stmt() - ? *_impl_.node_.raw_stmt_ - : reinterpret_cast< ::pg_query::RawStmt&>(::pg_query::_RawStmt_default_instance_); -} -inline const ::pg_query::RawStmt& Node::raw_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.raw_stmt) - return _internal_raw_stmt(); -} -inline ::pg_query::RawStmt* Node::unsafe_arena_release_raw_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.raw_stmt) - if (_internal_has_raw_stmt()) { - clear_has_node(); - ::pg_query::RawStmt* temp = _impl_.node_.raw_stmt_; - _impl_.node_.raw_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_raw_stmt(::pg_query::RawStmt* raw_stmt) { - clear_node(); - if (raw_stmt) { - set_has_raw_stmt(); - _impl_.node_.raw_stmt_ = raw_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.raw_stmt) -} -inline ::pg_query::RawStmt* Node::_internal_mutable_raw_stmt() { - if (!_internal_has_raw_stmt()) { - clear_node(); - set_has_raw_stmt(); - _impl_.node_.raw_stmt_ = CreateMaybeMessage< ::pg_query::RawStmt >(GetArenaForAllocation()); - } - return _impl_.node_.raw_stmt_; -} -inline ::pg_query::RawStmt* Node::mutable_raw_stmt() { - ::pg_query::RawStmt* _msg = _internal_mutable_raw_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.raw_stmt) - return _msg; -} - -// .pg_query.Query query = 53 [json_name = "Query"]; -inline bool Node::_internal_has_query() const { - return node_case() == kQuery; -} -inline bool Node::has_query() const { - return _internal_has_query(); -} -inline void Node::set_has_query() { - _impl_._oneof_case_[0] = kQuery; -} -inline void Node::clear_query() { - if (_internal_has_query()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.query_; - } - clear_has_node(); - } -} -inline ::pg_query::Query* Node::release_query() { - // @@protoc_insertion_point(field_release:pg_query.Node.query) - if (_internal_has_query()) { - clear_has_node(); - ::pg_query::Query* temp = _impl_.node_.query_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.query_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::Query& Node::_internal_query() const { - return _internal_has_query() - ? *_impl_.node_.query_ - : reinterpret_cast< ::pg_query::Query&>(::pg_query::_Query_default_instance_); -} -inline const ::pg_query::Query& Node::query() const { - // @@protoc_insertion_point(field_get:pg_query.Node.query) - return _internal_query(); -} -inline ::pg_query::Query* Node::unsafe_arena_release_query() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.query) - if (_internal_has_query()) { - clear_has_node(); - ::pg_query::Query* temp = _impl_.node_.query_; - _impl_.node_.query_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_query(::pg_query::Query* query) { - clear_node(); - if (query) { - set_has_query(); - _impl_.node_.query_ = query; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.query) -} -inline ::pg_query::Query* Node::_internal_mutable_query() { - if (!_internal_has_query()) { - clear_node(); - set_has_query(); - _impl_.node_.query_ = CreateMaybeMessage< ::pg_query::Query >(GetArenaForAllocation()); - } - return _impl_.node_.query_; -} -inline ::pg_query::Query* Node::mutable_query() { - ::pg_query::Query* _msg = _internal_mutable_query(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.query) - return _msg; -} - -// .pg_query.InsertStmt insert_stmt = 54 [json_name = "InsertStmt"]; -inline bool Node::_internal_has_insert_stmt() const { - return node_case() == kInsertStmt; -} -inline bool Node::has_insert_stmt() const { - return _internal_has_insert_stmt(); -} -inline void Node::set_has_insert_stmt() { - _impl_._oneof_case_[0] = kInsertStmt; -} -inline void Node::clear_insert_stmt() { - if (_internal_has_insert_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.insert_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::InsertStmt* Node::release_insert_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.insert_stmt) - if (_internal_has_insert_stmt()) { - clear_has_node(); - ::pg_query::InsertStmt* temp = _impl_.node_.insert_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.insert_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::InsertStmt& Node::_internal_insert_stmt() const { - return _internal_has_insert_stmt() - ? *_impl_.node_.insert_stmt_ - : reinterpret_cast< ::pg_query::InsertStmt&>(::pg_query::_InsertStmt_default_instance_); -} -inline const ::pg_query::InsertStmt& Node::insert_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.insert_stmt) - return _internal_insert_stmt(); -} -inline ::pg_query::InsertStmt* Node::unsafe_arena_release_insert_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.insert_stmt) - if (_internal_has_insert_stmt()) { - clear_has_node(); - ::pg_query::InsertStmt* temp = _impl_.node_.insert_stmt_; - _impl_.node_.insert_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_insert_stmt(::pg_query::InsertStmt* insert_stmt) { - clear_node(); - if (insert_stmt) { - set_has_insert_stmt(); - _impl_.node_.insert_stmt_ = insert_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.insert_stmt) -} -inline ::pg_query::InsertStmt* Node::_internal_mutable_insert_stmt() { - if (!_internal_has_insert_stmt()) { - clear_node(); - set_has_insert_stmt(); - _impl_.node_.insert_stmt_ = CreateMaybeMessage< ::pg_query::InsertStmt >(GetArenaForAllocation()); - } - return _impl_.node_.insert_stmt_; -} -inline ::pg_query::InsertStmt* Node::mutable_insert_stmt() { - ::pg_query::InsertStmt* _msg = _internal_mutable_insert_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.insert_stmt) - return _msg; -} - -// .pg_query.DeleteStmt delete_stmt = 55 [json_name = "DeleteStmt"]; -inline bool Node::_internal_has_delete_stmt() const { - return node_case() == kDeleteStmt; -} -inline bool Node::has_delete_stmt() const { - return _internal_has_delete_stmt(); -} -inline void Node::set_has_delete_stmt() { - _impl_._oneof_case_[0] = kDeleteStmt; -} -inline void Node::clear_delete_stmt() { - if (_internal_has_delete_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.delete_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::DeleteStmt* Node::release_delete_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.delete_stmt) - if (_internal_has_delete_stmt()) { - clear_has_node(); - ::pg_query::DeleteStmt* temp = _impl_.node_.delete_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.delete_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::DeleteStmt& Node::_internal_delete_stmt() const { - return _internal_has_delete_stmt() - ? *_impl_.node_.delete_stmt_ - : reinterpret_cast< ::pg_query::DeleteStmt&>(::pg_query::_DeleteStmt_default_instance_); -} -inline const ::pg_query::DeleteStmt& Node::delete_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.delete_stmt) - return _internal_delete_stmt(); -} -inline ::pg_query::DeleteStmt* Node::unsafe_arena_release_delete_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.delete_stmt) - if (_internal_has_delete_stmt()) { - clear_has_node(); - ::pg_query::DeleteStmt* temp = _impl_.node_.delete_stmt_; - _impl_.node_.delete_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_delete_stmt(::pg_query::DeleteStmt* delete_stmt) { - clear_node(); - if (delete_stmt) { - set_has_delete_stmt(); - _impl_.node_.delete_stmt_ = delete_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.delete_stmt) -} -inline ::pg_query::DeleteStmt* Node::_internal_mutable_delete_stmt() { - if (!_internal_has_delete_stmt()) { - clear_node(); - set_has_delete_stmt(); - _impl_.node_.delete_stmt_ = CreateMaybeMessage< ::pg_query::DeleteStmt >(GetArenaForAllocation()); - } - return _impl_.node_.delete_stmt_; -} -inline ::pg_query::DeleteStmt* Node::mutable_delete_stmt() { - ::pg_query::DeleteStmt* _msg = _internal_mutable_delete_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.delete_stmt) - return _msg; -} - -// .pg_query.UpdateStmt update_stmt = 56 [json_name = "UpdateStmt"]; -inline bool Node::_internal_has_update_stmt() const { - return node_case() == kUpdateStmt; -} -inline bool Node::has_update_stmt() const { - return _internal_has_update_stmt(); -} -inline void Node::set_has_update_stmt() { - _impl_._oneof_case_[0] = kUpdateStmt; -} -inline void Node::clear_update_stmt() { - if (_internal_has_update_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.update_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::UpdateStmt* Node::release_update_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.update_stmt) - if (_internal_has_update_stmt()) { - clear_has_node(); - ::pg_query::UpdateStmt* temp = _impl_.node_.update_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.update_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::UpdateStmt& Node::_internal_update_stmt() const { - return _internal_has_update_stmt() - ? *_impl_.node_.update_stmt_ - : reinterpret_cast< ::pg_query::UpdateStmt&>(::pg_query::_UpdateStmt_default_instance_); -} -inline const ::pg_query::UpdateStmt& Node::update_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.update_stmt) - return _internal_update_stmt(); -} -inline ::pg_query::UpdateStmt* Node::unsafe_arena_release_update_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.update_stmt) - if (_internal_has_update_stmt()) { - clear_has_node(); - ::pg_query::UpdateStmt* temp = _impl_.node_.update_stmt_; - _impl_.node_.update_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_update_stmt(::pg_query::UpdateStmt* update_stmt) { - clear_node(); - if (update_stmt) { - set_has_update_stmt(); - _impl_.node_.update_stmt_ = update_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.update_stmt) -} -inline ::pg_query::UpdateStmt* Node::_internal_mutable_update_stmt() { - if (!_internal_has_update_stmt()) { - clear_node(); - set_has_update_stmt(); - _impl_.node_.update_stmt_ = CreateMaybeMessage< ::pg_query::UpdateStmt >(GetArenaForAllocation()); - } - return _impl_.node_.update_stmt_; -} -inline ::pg_query::UpdateStmt* Node::mutable_update_stmt() { - ::pg_query::UpdateStmt* _msg = _internal_mutable_update_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.update_stmt) - return _msg; -} - -// .pg_query.MergeStmt merge_stmt = 57 [json_name = "MergeStmt"]; -inline bool Node::_internal_has_merge_stmt() const { - return node_case() == kMergeStmt; -} -inline bool Node::has_merge_stmt() const { - return _internal_has_merge_stmt(); -} -inline void Node::set_has_merge_stmt() { - _impl_._oneof_case_[0] = kMergeStmt; -} -inline void Node::clear_merge_stmt() { - if (_internal_has_merge_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.merge_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::MergeStmt* Node::release_merge_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.merge_stmt) - if (_internal_has_merge_stmt()) { - clear_has_node(); - ::pg_query::MergeStmt* temp = _impl_.node_.merge_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.merge_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::MergeStmt& Node::_internal_merge_stmt() const { - return _internal_has_merge_stmt() - ? *_impl_.node_.merge_stmt_ - : reinterpret_cast< ::pg_query::MergeStmt&>(::pg_query::_MergeStmt_default_instance_); -} -inline const ::pg_query::MergeStmt& Node::merge_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.merge_stmt) - return _internal_merge_stmt(); -} -inline ::pg_query::MergeStmt* Node::unsafe_arena_release_merge_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.merge_stmt) - if (_internal_has_merge_stmt()) { - clear_has_node(); - ::pg_query::MergeStmt* temp = _impl_.node_.merge_stmt_; - _impl_.node_.merge_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_merge_stmt(::pg_query::MergeStmt* merge_stmt) { - clear_node(); - if (merge_stmt) { - set_has_merge_stmt(); - _impl_.node_.merge_stmt_ = merge_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.merge_stmt) -} -inline ::pg_query::MergeStmt* Node::_internal_mutable_merge_stmt() { - if (!_internal_has_merge_stmt()) { - clear_node(); - set_has_merge_stmt(); - _impl_.node_.merge_stmt_ = CreateMaybeMessage< ::pg_query::MergeStmt >(GetArenaForAllocation()); - } - return _impl_.node_.merge_stmt_; -} -inline ::pg_query::MergeStmt* Node::mutable_merge_stmt() { - ::pg_query::MergeStmt* _msg = _internal_mutable_merge_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.merge_stmt) - return _msg; -} - -// .pg_query.SelectStmt select_stmt = 58 [json_name = "SelectStmt"]; -inline bool Node::_internal_has_select_stmt() const { - return node_case() == kSelectStmt; -} -inline bool Node::has_select_stmt() const { - return _internal_has_select_stmt(); -} -inline void Node::set_has_select_stmt() { - _impl_._oneof_case_[0] = kSelectStmt; -} -inline void Node::clear_select_stmt() { - if (_internal_has_select_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.select_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::SelectStmt* Node::release_select_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.select_stmt) - if (_internal_has_select_stmt()) { - clear_has_node(); - ::pg_query::SelectStmt* temp = _impl_.node_.select_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.select_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::SelectStmt& Node::_internal_select_stmt() const { - return _internal_has_select_stmt() - ? *_impl_.node_.select_stmt_ - : reinterpret_cast< ::pg_query::SelectStmt&>(::pg_query::_SelectStmt_default_instance_); -} -inline const ::pg_query::SelectStmt& Node::select_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.select_stmt) - return _internal_select_stmt(); -} -inline ::pg_query::SelectStmt* Node::unsafe_arena_release_select_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.select_stmt) - if (_internal_has_select_stmt()) { - clear_has_node(); - ::pg_query::SelectStmt* temp = _impl_.node_.select_stmt_; - _impl_.node_.select_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_select_stmt(::pg_query::SelectStmt* select_stmt) { - clear_node(); - if (select_stmt) { - set_has_select_stmt(); - _impl_.node_.select_stmt_ = select_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.select_stmt) -} -inline ::pg_query::SelectStmt* Node::_internal_mutable_select_stmt() { - if (!_internal_has_select_stmt()) { - clear_node(); - set_has_select_stmt(); - _impl_.node_.select_stmt_ = CreateMaybeMessage< ::pg_query::SelectStmt >(GetArenaForAllocation()); - } - return _impl_.node_.select_stmt_; -} -inline ::pg_query::SelectStmt* Node::mutable_select_stmt() { - ::pg_query::SelectStmt* _msg = _internal_mutable_select_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.select_stmt) - return _msg; -} - -// .pg_query.ReturnStmt return_stmt = 59 [json_name = "ReturnStmt"]; -inline bool Node::_internal_has_return_stmt() const { - return node_case() == kReturnStmt; -} -inline bool Node::has_return_stmt() const { - return _internal_has_return_stmt(); -} -inline void Node::set_has_return_stmt() { - _impl_._oneof_case_[0] = kReturnStmt; -} -inline void Node::clear_return_stmt() { - if (_internal_has_return_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.return_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::ReturnStmt* Node::release_return_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.return_stmt) - if (_internal_has_return_stmt()) { - clear_has_node(); - ::pg_query::ReturnStmt* temp = _impl_.node_.return_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.return_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::ReturnStmt& Node::_internal_return_stmt() const { - return _internal_has_return_stmt() - ? *_impl_.node_.return_stmt_ - : reinterpret_cast< ::pg_query::ReturnStmt&>(::pg_query::_ReturnStmt_default_instance_); -} -inline const ::pg_query::ReturnStmt& Node::return_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.return_stmt) - return _internal_return_stmt(); -} -inline ::pg_query::ReturnStmt* Node::unsafe_arena_release_return_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.return_stmt) - if (_internal_has_return_stmt()) { - clear_has_node(); - ::pg_query::ReturnStmt* temp = _impl_.node_.return_stmt_; - _impl_.node_.return_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_return_stmt(::pg_query::ReturnStmt* return_stmt) { - clear_node(); - if (return_stmt) { - set_has_return_stmt(); - _impl_.node_.return_stmt_ = return_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.return_stmt) -} -inline ::pg_query::ReturnStmt* Node::_internal_mutable_return_stmt() { - if (!_internal_has_return_stmt()) { - clear_node(); - set_has_return_stmt(); - _impl_.node_.return_stmt_ = CreateMaybeMessage< ::pg_query::ReturnStmt >(GetArenaForAllocation()); - } - return _impl_.node_.return_stmt_; -} -inline ::pg_query::ReturnStmt* Node::mutable_return_stmt() { - ::pg_query::ReturnStmt* _msg = _internal_mutable_return_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.return_stmt) - return _msg; -} - -// .pg_query.PLAssignStmt plassign_stmt = 60 [json_name = "PLAssignStmt"]; -inline bool Node::_internal_has_plassign_stmt() const { - return node_case() == kPlassignStmt; -} -inline bool Node::has_plassign_stmt() const { - return _internal_has_plassign_stmt(); -} -inline void Node::set_has_plassign_stmt() { - _impl_._oneof_case_[0] = kPlassignStmt; -} -inline void Node::clear_plassign_stmt() { - if (_internal_has_plassign_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.plassign_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::PLAssignStmt* Node::release_plassign_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.plassign_stmt) - if (_internal_has_plassign_stmt()) { - clear_has_node(); - ::pg_query::PLAssignStmt* temp = _impl_.node_.plassign_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.plassign_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::PLAssignStmt& Node::_internal_plassign_stmt() const { - return _internal_has_plassign_stmt() - ? *_impl_.node_.plassign_stmt_ - : reinterpret_cast< ::pg_query::PLAssignStmt&>(::pg_query::_PLAssignStmt_default_instance_); -} -inline const ::pg_query::PLAssignStmt& Node::plassign_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.plassign_stmt) - return _internal_plassign_stmt(); -} -inline ::pg_query::PLAssignStmt* Node::unsafe_arena_release_plassign_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.plassign_stmt) - if (_internal_has_plassign_stmt()) { - clear_has_node(); - ::pg_query::PLAssignStmt* temp = _impl_.node_.plassign_stmt_; - _impl_.node_.plassign_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_plassign_stmt(::pg_query::PLAssignStmt* plassign_stmt) { - clear_node(); - if (plassign_stmt) { - set_has_plassign_stmt(); - _impl_.node_.plassign_stmt_ = plassign_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.plassign_stmt) -} -inline ::pg_query::PLAssignStmt* Node::_internal_mutable_plassign_stmt() { - if (!_internal_has_plassign_stmt()) { - clear_node(); - set_has_plassign_stmt(); - _impl_.node_.plassign_stmt_ = CreateMaybeMessage< ::pg_query::PLAssignStmt >(GetArenaForAllocation()); - } - return _impl_.node_.plassign_stmt_; -} -inline ::pg_query::PLAssignStmt* Node::mutable_plassign_stmt() { - ::pg_query::PLAssignStmt* _msg = _internal_mutable_plassign_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.plassign_stmt) - return _msg; -} - -// .pg_query.AlterTableStmt alter_table_stmt = 61 [json_name = "AlterTableStmt"]; -inline bool Node::_internal_has_alter_table_stmt() const { - return node_case() == kAlterTableStmt; -} -inline bool Node::has_alter_table_stmt() const { - return _internal_has_alter_table_stmt(); -} -inline void Node::set_has_alter_table_stmt() { - _impl_._oneof_case_[0] = kAlterTableStmt; -} -inline void Node::clear_alter_table_stmt() { - if (_internal_has_alter_table_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_table_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterTableStmt* Node::release_alter_table_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_table_stmt) - if (_internal_has_alter_table_stmt()) { - clear_has_node(); - ::pg_query::AlterTableStmt* temp = _impl_.node_.alter_table_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_table_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterTableStmt& Node::_internal_alter_table_stmt() const { - return _internal_has_alter_table_stmt() - ? *_impl_.node_.alter_table_stmt_ - : reinterpret_cast< ::pg_query::AlterTableStmt&>(::pg_query::_AlterTableStmt_default_instance_); -} -inline const ::pg_query::AlterTableStmt& Node::alter_table_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_table_stmt) - return _internal_alter_table_stmt(); -} -inline ::pg_query::AlterTableStmt* Node::unsafe_arena_release_alter_table_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_table_stmt) - if (_internal_has_alter_table_stmt()) { - clear_has_node(); - ::pg_query::AlterTableStmt* temp = _impl_.node_.alter_table_stmt_; - _impl_.node_.alter_table_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_table_stmt(::pg_query::AlterTableStmt* alter_table_stmt) { - clear_node(); - if (alter_table_stmt) { - set_has_alter_table_stmt(); - _impl_.node_.alter_table_stmt_ = alter_table_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_table_stmt) -} -inline ::pg_query::AlterTableStmt* Node::_internal_mutable_alter_table_stmt() { - if (!_internal_has_alter_table_stmt()) { - clear_node(); - set_has_alter_table_stmt(); - _impl_.node_.alter_table_stmt_ = CreateMaybeMessage< ::pg_query::AlterTableStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_table_stmt_; -} -inline ::pg_query::AlterTableStmt* Node::mutable_alter_table_stmt() { - ::pg_query::AlterTableStmt* _msg = _internal_mutable_alter_table_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_table_stmt) - return _msg; -} - -// .pg_query.AlterTableCmd alter_table_cmd = 62 [json_name = "AlterTableCmd"]; -inline bool Node::_internal_has_alter_table_cmd() const { - return node_case() == kAlterTableCmd; -} -inline bool Node::has_alter_table_cmd() const { - return _internal_has_alter_table_cmd(); -} -inline void Node::set_has_alter_table_cmd() { - _impl_._oneof_case_[0] = kAlterTableCmd; -} -inline void Node::clear_alter_table_cmd() { - if (_internal_has_alter_table_cmd()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_table_cmd_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterTableCmd* Node::release_alter_table_cmd() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_table_cmd) - if (_internal_has_alter_table_cmd()) { - clear_has_node(); - ::pg_query::AlterTableCmd* temp = _impl_.node_.alter_table_cmd_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_table_cmd_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterTableCmd& Node::_internal_alter_table_cmd() const { - return _internal_has_alter_table_cmd() - ? *_impl_.node_.alter_table_cmd_ - : reinterpret_cast< ::pg_query::AlterTableCmd&>(::pg_query::_AlterTableCmd_default_instance_); -} -inline const ::pg_query::AlterTableCmd& Node::alter_table_cmd() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_table_cmd) - return _internal_alter_table_cmd(); -} -inline ::pg_query::AlterTableCmd* Node::unsafe_arena_release_alter_table_cmd() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_table_cmd) - if (_internal_has_alter_table_cmd()) { - clear_has_node(); - ::pg_query::AlterTableCmd* temp = _impl_.node_.alter_table_cmd_; - _impl_.node_.alter_table_cmd_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_table_cmd(::pg_query::AlterTableCmd* alter_table_cmd) { - clear_node(); - if (alter_table_cmd) { - set_has_alter_table_cmd(); - _impl_.node_.alter_table_cmd_ = alter_table_cmd; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_table_cmd) -} -inline ::pg_query::AlterTableCmd* Node::_internal_mutable_alter_table_cmd() { - if (!_internal_has_alter_table_cmd()) { - clear_node(); - set_has_alter_table_cmd(); - _impl_.node_.alter_table_cmd_ = CreateMaybeMessage< ::pg_query::AlterTableCmd >(GetArenaForAllocation()); - } - return _impl_.node_.alter_table_cmd_; -} -inline ::pg_query::AlterTableCmd* Node::mutable_alter_table_cmd() { - ::pg_query::AlterTableCmd* _msg = _internal_mutable_alter_table_cmd(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_table_cmd) - return _msg; -} - -// .pg_query.AlterDomainStmt alter_domain_stmt = 63 [json_name = "AlterDomainStmt"]; -inline bool Node::_internal_has_alter_domain_stmt() const { - return node_case() == kAlterDomainStmt; -} -inline bool Node::has_alter_domain_stmt() const { - return _internal_has_alter_domain_stmt(); -} -inline void Node::set_has_alter_domain_stmt() { - _impl_._oneof_case_[0] = kAlterDomainStmt; -} -inline void Node::clear_alter_domain_stmt() { - if (_internal_has_alter_domain_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_domain_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterDomainStmt* Node::release_alter_domain_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_domain_stmt) - if (_internal_has_alter_domain_stmt()) { - clear_has_node(); - ::pg_query::AlterDomainStmt* temp = _impl_.node_.alter_domain_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_domain_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterDomainStmt& Node::_internal_alter_domain_stmt() const { - return _internal_has_alter_domain_stmt() - ? *_impl_.node_.alter_domain_stmt_ - : reinterpret_cast< ::pg_query::AlterDomainStmt&>(::pg_query::_AlterDomainStmt_default_instance_); -} -inline const ::pg_query::AlterDomainStmt& Node::alter_domain_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_domain_stmt) - return _internal_alter_domain_stmt(); -} -inline ::pg_query::AlterDomainStmt* Node::unsafe_arena_release_alter_domain_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_domain_stmt) - if (_internal_has_alter_domain_stmt()) { - clear_has_node(); - ::pg_query::AlterDomainStmt* temp = _impl_.node_.alter_domain_stmt_; - _impl_.node_.alter_domain_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_domain_stmt(::pg_query::AlterDomainStmt* alter_domain_stmt) { - clear_node(); - if (alter_domain_stmt) { - set_has_alter_domain_stmt(); - _impl_.node_.alter_domain_stmt_ = alter_domain_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_domain_stmt) -} -inline ::pg_query::AlterDomainStmt* Node::_internal_mutable_alter_domain_stmt() { - if (!_internal_has_alter_domain_stmt()) { - clear_node(); - set_has_alter_domain_stmt(); - _impl_.node_.alter_domain_stmt_ = CreateMaybeMessage< ::pg_query::AlterDomainStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_domain_stmt_; -} -inline ::pg_query::AlterDomainStmt* Node::mutable_alter_domain_stmt() { - ::pg_query::AlterDomainStmt* _msg = _internal_mutable_alter_domain_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_domain_stmt) - return _msg; -} - -// .pg_query.SetOperationStmt set_operation_stmt = 64 [json_name = "SetOperationStmt"]; -inline bool Node::_internal_has_set_operation_stmt() const { - return node_case() == kSetOperationStmt; -} -inline bool Node::has_set_operation_stmt() const { - return _internal_has_set_operation_stmt(); -} -inline void Node::set_has_set_operation_stmt() { - _impl_._oneof_case_[0] = kSetOperationStmt; -} -inline void Node::clear_set_operation_stmt() { - if (_internal_has_set_operation_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.set_operation_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::SetOperationStmt* Node::release_set_operation_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.set_operation_stmt) - if (_internal_has_set_operation_stmt()) { - clear_has_node(); - ::pg_query::SetOperationStmt* temp = _impl_.node_.set_operation_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.set_operation_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::SetOperationStmt& Node::_internal_set_operation_stmt() const { - return _internal_has_set_operation_stmt() - ? *_impl_.node_.set_operation_stmt_ - : reinterpret_cast< ::pg_query::SetOperationStmt&>(::pg_query::_SetOperationStmt_default_instance_); -} -inline const ::pg_query::SetOperationStmt& Node::set_operation_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.set_operation_stmt) - return _internal_set_operation_stmt(); -} -inline ::pg_query::SetOperationStmt* Node::unsafe_arena_release_set_operation_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.set_operation_stmt) - if (_internal_has_set_operation_stmt()) { - clear_has_node(); - ::pg_query::SetOperationStmt* temp = _impl_.node_.set_operation_stmt_; - _impl_.node_.set_operation_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_set_operation_stmt(::pg_query::SetOperationStmt* set_operation_stmt) { - clear_node(); - if (set_operation_stmt) { - set_has_set_operation_stmt(); - _impl_.node_.set_operation_stmt_ = set_operation_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.set_operation_stmt) -} -inline ::pg_query::SetOperationStmt* Node::_internal_mutable_set_operation_stmt() { - if (!_internal_has_set_operation_stmt()) { - clear_node(); - set_has_set_operation_stmt(); - _impl_.node_.set_operation_stmt_ = CreateMaybeMessage< ::pg_query::SetOperationStmt >(GetArenaForAllocation()); - } - return _impl_.node_.set_operation_stmt_; -} -inline ::pg_query::SetOperationStmt* Node::mutable_set_operation_stmt() { - ::pg_query::SetOperationStmt* _msg = _internal_mutable_set_operation_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.set_operation_stmt) - return _msg; -} - -// .pg_query.GrantStmt grant_stmt = 65 [json_name = "GrantStmt"]; -inline bool Node::_internal_has_grant_stmt() const { - return node_case() == kGrantStmt; -} -inline bool Node::has_grant_stmt() const { - return _internal_has_grant_stmt(); -} -inline void Node::set_has_grant_stmt() { - _impl_._oneof_case_[0] = kGrantStmt; -} -inline void Node::clear_grant_stmt() { - if (_internal_has_grant_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.grant_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::GrantStmt* Node::release_grant_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.grant_stmt) - if (_internal_has_grant_stmt()) { - clear_has_node(); - ::pg_query::GrantStmt* temp = _impl_.node_.grant_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.grant_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::GrantStmt& Node::_internal_grant_stmt() const { - return _internal_has_grant_stmt() - ? *_impl_.node_.grant_stmt_ - : reinterpret_cast< ::pg_query::GrantStmt&>(::pg_query::_GrantStmt_default_instance_); -} -inline const ::pg_query::GrantStmt& Node::grant_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.grant_stmt) - return _internal_grant_stmt(); -} -inline ::pg_query::GrantStmt* Node::unsafe_arena_release_grant_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.grant_stmt) - if (_internal_has_grant_stmt()) { - clear_has_node(); - ::pg_query::GrantStmt* temp = _impl_.node_.grant_stmt_; - _impl_.node_.grant_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_grant_stmt(::pg_query::GrantStmt* grant_stmt) { - clear_node(); - if (grant_stmt) { - set_has_grant_stmt(); - _impl_.node_.grant_stmt_ = grant_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.grant_stmt) -} -inline ::pg_query::GrantStmt* Node::_internal_mutable_grant_stmt() { - if (!_internal_has_grant_stmt()) { - clear_node(); - set_has_grant_stmt(); - _impl_.node_.grant_stmt_ = CreateMaybeMessage< ::pg_query::GrantStmt >(GetArenaForAllocation()); - } - return _impl_.node_.grant_stmt_; -} -inline ::pg_query::GrantStmt* Node::mutable_grant_stmt() { - ::pg_query::GrantStmt* _msg = _internal_mutable_grant_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.grant_stmt) - return _msg; -} - -// .pg_query.GrantRoleStmt grant_role_stmt = 66 [json_name = "GrantRoleStmt"]; -inline bool Node::_internal_has_grant_role_stmt() const { - return node_case() == kGrantRoleStmt; -} -inline bool Node::has_grant_role_stmt() const { - return _internal_has_grant_role_stmt(); -} -inline void Node::set_has_grant_role_stmt() { - _impl_._oneof_case_[0] = kGrantRoleStmt; -} -inline void Node::clear_grant_role_stmt() { - if (_internal_has_grant_role_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.grant_role_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::GrantRoleStmt* Node::release_grant_role_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.grant_role_stmt) - if (_internal_has_grant_role_stmt()) { - clear_has_node(); - ::pg_query::GrantRoleStmt* temp = _impl_.node_.grant_role_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.grant_role_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::GrantRoleStmt& Node::_internal_grant_role_stmt() const { - return _internal_has_grant_role_stmt() - ? *_impl_.node_.grant_role_stmt_ - : reinterpret_cast< ::pg_query::GrantRoleStmt&>(::pg_query::_GrantRoleStmt_default_instance_); -} -inline const ::pg_query::GrantRoleStmt& Node::grant_role_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.grant_role_stmt) - return _internal_grant_role_stmt(); -} -inline ::pg_query::GrantRoleStmt* Node::unsafe_arena_release_grant_role_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.grant_role_stmt) - if (_internal_has_grant_role_stmt()) { - clear_has_node(); - ::pg_query::GrantRoleStmt* temp = _impl_.node_.grant_role_stmt_; - _impl_.node_.grant_role_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_grant_role_stmt(::pg_query::GrantRoleStmt* grant_role_stmt) { - clear_node(); - if (grant_role_stmt) { - set_has_grant_role_stmt(); - _impl_.node_.grant_role_stmt_ = grant_role_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.grant_role_stmt) -} -inline ::pg_query::GrantRoleStmt* Node::_internal_mutable_grant_role_stmt() { - if (!_internal_has_grant_role_stmt()) { - clear_node(); - set_has_grant_role_stmt(); - _impl_.node_.grant_role_stmt_ = CreateMaybeMessage< ::pg_query::GrantRoleStmt >(GetArenaForAllocation()); - } - return _impl_.node_.grant_role_stmt_; -} -inline ::pg_query::GrantRoleStmt* Node::mutable_grant_role_stmt() { - ::pg_query::GrantRoleStmt* _msg = _internal_mutable_grant_role_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.grant_role_stmt) - return _msg; -} - -// .pg_query.AlterDefaultPrivilegesStmt alter_default_privileges_stmt = 67 [json_name = "AlterDefaultPrivilegesStmt"]; -inline bool Node::_internal_has_alter_default_privileges_stmt() const { - return node_case() == kAlterDefaultPrivilegesStmt; -} -inline bool Node::has_alter_default_privileges_stmt() const { - return _internal_has_alter_default_privileges_stmt(); -} -inline void Node::set_has_alter_default_privileges_stmt() { - _impl_._oneof_case_[0] = kAlterDefaultPrivilegesStmt; -} -inline void Node::clear_alter_default_privileges_stmt() { - if (_internal_has_alter_default_privileges_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_default_privileges_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterDefaultPrivilegesStmt* Node::release_alter_default_privileges_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_default_privileges_stmt) - if (_internal_has_alter_default_privileges_stmt()) { - clear_has_node(); - ::pg_query::AlterDefaultPrivilegesStmt* temp = _impl_.node_.alter_default_privileges_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_default_privileges_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterDefaultPrivilegesStmt& Node::_internal_alter_default_privileges_stmt() const { - return _internal_has_alter_default_privileges_stmt() - ? *_impl_.node_.alter_default_privileges_stmt_ - : reinterpret_cast< ::pg_query::AlterDefaultPrivilegesStmt&>(::pg_query::_AlterDefaultPrivilegesStmt_default_instance_); -} -inline const ::pg_query::AlterDefaultPrivilegesStmt& Node::alter_default_privileges_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_default_privileges_stmt) - return _internal_alter_default_privileges_stmt(); -} -inline ::pg_query::AlterDefaultPrivilegesStmt* Node::unsafe_arena_release_alter_default_privileges_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_default_privileges_stmt) - if (_internal_has_alter_default_privileges_stmt()) { - clear_has_node(); - ::pg_query::AlterDefaultPrivilegesStmt* temp = _impl_.node_.alter_default_privileges_stmt_; - _impl_.node_.alter_default_privileges_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_default_privileges_stmt(::pg_query::AlterDefaultPrivilegesStmt* alter_default_privileges_stmt) { - clear_node(); - if (alter_default_privileges_stmt) { - set_has_alter_default_privileges_stmt(); - _impl_.node_.alter_default_privileges_stmt_ = alter_default_privileges_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_default_privileges_stmt) -} -inline ::pg_query::AlterDefaultPrivilegesStmt* Node::_internal_mutable_alter_default_privileges_stmt() { - if (!_internal_has_alter_default_privileges_stmt()) { - clear_node(); - set_has_alter_default_privileges_stmt(); - _impl_.node_.alter_default_privileges_stmt_ = CreateMaybeMessage< ::pg_query::AlterDefaultPrivilegesStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_default_privileges_stmt_; -} -inline ::pg_query::AlterDefaultPrivilegesStmt* Node::mutable_alter_default_privileges_stmt() { - ::pg_query::AlterDefaultPrivilegesStmt* _msg = _internal_mutable_alter_default_privileges_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_default_privileges_stmt) - return _msg; -} - -// .pg_query.ClosePortalStmt close_portal_stmt = 68 [json_name = "ClosePortalStmt"]; -inline bool Node::_internal_has_close_portal_stmt() const { - return node_case() == kClosePortalStmt; -} -inline bool Node::has_close_portal_stmt() const { - return _internal_has_close_portal_stmt(); -} -inline void Node::set_has_close_portal_stmt() { - _impl_._oneof_case_[0] = kClosePortalStmt; -} -inline void Node::clear_close_portal_stmt() { - if (_internal_has_close_portal_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.close_portal_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::ClosePortalStmt* Node::release_close_portal_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.close_portal_stmt) - if (_internal_has_close_portal_stmt()) { - clear_has_node(); - ::pg_query::ClosePortalStmt* temp = _impl_.node_.close_portal_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.close_portal_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::ClosePortalStmt& Node::_internal_close_portal_stmt() const { - return _internal_has_close_portal_stmt() - ? *_impl_.node_.close_portal_stmt_ - : reinterpret_cast< ::pg_query::ClosePortalStmt&>(::pg_query::_ClosePortalStmt_default_instance_); -} -inline const ::pg_query::ClosePortalStmt& Node::close_portal_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.close_portal_stmt) - return _internal_close_portal_stmt(); -} -inline ::pg_query::ClosePortalStmt* Node::unsafe_arena_release_close_portal_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.close_portal_stmt) - if (_internal_has_close_portal_stmt()) { - clear_has_node(); - ::pg_query::ClosePortalStmt* temp = _impl_.node_.close_portal_stmt_; - _impl_.node_.close_portal_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_close_portal_stmt(::pg_query::ClosePortalStmt* close_portal_stmt) { - clear_node(); - if (close_portal_stmt) { - set_has_close_portal_stmt(); - _impl_.node_.close_portal_stmt_ = close_portal_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.close_portal_stmt) -} -inline ::pg_query::ClosePortalStmt* Node::_internal_mutable_close_portal_stmt() { - if (!_internal_has_close_portal_stmt()) { - clear_node(); - set_has_close_portal_stmt(); - _impl_.node_.close_portal_stmt_ = CreateMaybeMessage< ::pg_query::ClosePortalStmt >(GetArenaForAllocation()); - } - return _impl_.node_.close_portal_stmt_; -} -inline ::pg_query::ClosePortalStmt* Node::mutable_close_portal_stmt() { - ::pg_query::ClosePortalStmt* _msg = _internal_mutable_close_portal_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.close_portal_stmt) - return _msg; -} - -// .pg_query.ClusterStmt cluster_stmt = 69 [json_name = "ClusterStmt"]; -inline bool Node::_internal_has_cluster_stmt() const { - return node_case() == kClusterStmt; -} -inline bool Node::has_cluster_stmt() const { - return _internal_has_cluster_stmt(); -} -inline void Node::set_has_cluster_stmt() { - _impl_._oneof_case_[0] = kClusterStmt; -} -inline void Node::clear_cluster_stmt() { - if (_internal_has_cluster_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.cluster_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::ClusterStmt* Node::release_cluster_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.cluster_stmt) - if (_internal_has_cluster_stmt()) { - clear_has_node(); - ::pg_query::ClusterStmt* temp = _impl_.node_.cluster_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.cluster_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::ClusterStmt& Node::_internal_cluster_stmt() const { - return _internal_has_cluster_stmt() - ? *_impl_.node_.cluster_stmt_ - : reinterpret_cast< ::pg_query::ClusterStmt&>(::pg_query::_ClusterStmt_default_instance_); -} -inline const ::pg_query::ClusterStmt& Node::cluster_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.cluster_stmt) - return _internal_cluster_stmt(); -} -inline ::pg_query::ClusterStmt* Node::unsafe_arena_release_cluster_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.cluster_stmt) - if (_internal_has_cluster_stmt()) { - clear_has_node(); - ::pg_query::ClusterStmt* temp = _impl_.node_.cluster_stmt_; - _impl_.node_.cluster_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_cluster_stmt(::pg_query::ClusterStmt* cluster_stmt) { - clear_node(); - if (cluster_stmt) { - set_has_cluster_stmt(); - _impl_.node_.cluster_stmt_ = cluster_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.cluster_stmt) -} -inline ::pg_query::ClusterStmt* Node::_internal_mutable_cluster_stmt() { - if (!_internal_has_cluster_stmt()) { - clear_node(); - set_has_cluster_stmt(); - _impl_.node_.cluster_stmt_ = CreateMaybeMessage< ::pg_query::ClusterStmt >(GetArenaForAllocation()); - } - return _impl_.node_.cluster_stmt_; -} -inline ::pg_query::ClusterStmt* Node::mutable_cluster_stmt() { - ::pg_query::ClusterStmt* _msg = _internal_mutable_cluster_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.cluster_stmt) - return _msg; -} - -// .pg_query.CopyStmt copy_stmt = 70 [json_name = "CopyStmt"]; -inline bool Node::_internal_has_copy_stmt() const { - return node_case() == kCopyStmt; -} -inline bool Node::has_copy_stmt() const { - return _internal_has_copy_stmt(); -} -inline void Node::set_has_copy_stmt() { - _impl_._oneof_case_[0] = kCopyStmt; -} -inline void Node::clear_copy_stmt() { - if (_internal_has_copy_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.copy_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CopyStmt* Node::release_copy_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.copy_stmt) - if (_internal_has_copy_stmt()) { - clear_has_node(); - ::pg_query::CopyStmt* temp = _impl_.node_.copy_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.copy_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CopyStmt& Node::_internal_copy_stmt() const { - return _internal_has_copy_stmt() - ? *_impl_.node_.copy_stmt_ - : reinterpret_cast< ::pg_query::CopyStmt&>(::pg_query::_CopyStmt_default_instance_); -} -inline const ::pg_query::CopyStmt& Node::copy_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.copy_stmt) - return _internal_copy_stmt(); -} -inline ::pg_query::CopyStmt* Node::unsafe_arena_release_copy_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.copy_stmt) - if (_internal_has_copy_stmt()) { - clear_has_node(); - ::pg_query::CopyStmt* temp = _impl_.node_.copy_stmt_; - _impl_.node_.copy_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_copy_stmt(::pg_query::CopyStmt* copy_stmt) { - clear_node(); - if (copy_stmt) { - set_has_copy_stmt(); - _impl_.node_.copy_stmt_ = copy_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.copy_stmt) -} -inline ::pg_query::CopyStmt* Node::_internal_mutable_copy_stmt() { - if (!_internal_has_copy_stmt()) { - clear_node(); - set_has_copy_stmt(); - _impl_.node_.copy_stmt_ = CreateMaybeMessage< ::pg_query::CopyStmt >(GetArenaForAllocation()); - } - return _impl_.node_.copy_stmt_; -} -inline ::pg_query::CopyStmt* Node::mutable_copy_stmt() { - ::pg_query::CopyStmt* _msg = _internal_mutable_copy_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.copy_stmt) - return _msg; -} - -// .pg_query.CreateStmt create_stmt = 71 [json_name = "CreateStmt"]; -inline bool Node::_internal_has_create_stmt() const { - return node_case() == kCreateStmt; -} -inline bool Node::has_create_stmt() const { - return _internal_has_create_stmt(); -} -inline void Node::set_has_create_stmt() { - _impl_._oneof_case_[0] = kCreateStmt; -} -inline void Node::clear_create_stmt() { - if (_internal_has_create_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateStmt* Node::release_create_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_stmt) - if (_internal_has_create_stmt()) { - clear_has_node(); - ::pg_query::CreateStmt* temp = _impl_.node_.create_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateStmt& Node::_internal_create_stmt() const { - return _internal_has_create_stmt() - ? *_impl_.node_.create_stmt_ - : reinterpret_cast< ::pg_query::CreateStmt&>(::pg_query::_CreateStmt_default_instance_); -} -inline const ::pg_query::CreateStmt& Node::create_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_stmt) - return _internal_create_stmt(); -} -inline ::pg_query::CreateStmt* Node::unsafe_arena_release_create_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_stmt) - if (_internal_has_create_stmt()) { - clear_has_node(); - ::pg_query::CreateStmt* temp = _impl_.node_.create_stmt_; - _impl_.node_.create_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_stmt(::pg_query::CreateStmt* create_stmt) { - clear_node(); - if (create_stmt) { - set_has_create_stmt(); - _impl_.node_.create_stmt_ = create_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_stmt) -} -inline ::pg_query::CreateStmt* Node::_internal_mutable_create_stmt() { - if (!_internal_has_create_stmt()) { - clear_node(); - set_has_create_stmt(); - _impl_.node_.create_stmt_ = CreateMaybeMessage< ::pg_query::CreateStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_stmt_; -} -inline ::pg_query::CreateStmt* Node::mutable_create_stmt() { - ::pg_query::CreateStmt* _msg = _internal_mutable_create_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_stmt) - return _msg; -} - -// .pg_query.DefineStmt define_stmt = 72 [json_name = "DefineStmt"]; -inline bool Node::_internal_has_define_stmt() const { - return node_case() == kDefineStmt; -} -inline bool Node::has_define_stmt() const { - return _internal_has_define_stmt(); -} -inline void Node::set_has_define_stmt() { - _impl_._oneof_case_[0] = kDefineStmt; -} -inline void Node::clear_define_stmt() { - if (_internal_has_define_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.define_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::DefineStmt* Node::release_define_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.define_stmt) - if (_internal_has_define_stmt()) { - clear_has_node(); - ::pg_query::DefineStmt* temp = _impl_.node_.define_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.define_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::DefineStmt& Node::_internal_define_stmt() const { - return _internal_has_define_stmt() - ? *_impl_.node_.define_stmt_ - : reinterpret_cast< ::pg_query::DefineStmt&>(::pg_query::_DefineStmt_default_instance_); -} -inline const ::pg_query::DefineStmt& Node::define_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.define_stmt) - return _internal_define_stmt(); -} -inline ::pg_query::DefineStmt* Node::unsafe_arena_release_define_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.define_stmt) - if (_internal_has_define_stmt()) { - clear_has_node(); - ::pg_query::DefineStmt* temp = _impl_.node_.define_stmt_; - _impl_.node_.define_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_define_stmt(::pg_query::DefineStmt* define_stmt) { - clear_node(); - if (define_stmt) { - set_has_define_stmt(); - _impl_.node_.define_stmt_ = define_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.define_stmt) -} -inline ::pg_query::DefineStmt* Node::_internal_mutable_define_stmt() { - if (!_internal_has_define_stmt()) { - clear_node(); - set_has_define_stmt(); - _impl_.node_.define_stmt_ = CreateMaybeMessage< ::pg_query::DefineStmt >(GetArenaForAllocation()); - } - return _impl_.node_.define_stmt_; -} -inline ::pg_query::DefineStmt* Node::mutable_define_stmt() { - ::pg_query::DefineStmt* _msg = _internal_mutable_define_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.define_stmt) - return _msg; -} - -// .pg_query.DropStmt drop_stmt = 73 [json_name = "DropStmt"]; -inline bool Node::_internal_has_drop_stmt() const { - return node_case() == kDropStmt; -} -inline bool Node::has_drop_stmt() const { - return _internal_has_drop_stmt(); -} -inline void Node::set_has_drop_stmt() { - _impl_._oneof_case_[0] = kDropStmt; -} -inline void Node::clear_drop_stmt() { - if (_internal_has_drop_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.drop_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::DropStmt* Node::release_drop_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.drop_stmt) - if (_internal_has_drop_stmt()) { - clear_has_node(); - ::pg_query::DropStmt* temp = _impl_.node_.drop_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.drop_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::DropStmt& Node::_internal_drop_stmt() const { - return _internal_has_drop_stmt() - ? *_impl_.node_.drop_stmt_ - : reinterpret_cast< ::pg_query::DropStmt&>(::pg_query::_DropStmt_default_instance_); -} -inline const ::pg_query::DropStmt& Node::drop_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.drop_stmt) - return _internal_drop_stmt(); -} -inline ::pg_query::DropStmt* Node::unsafe_arena_release_drop_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.drop_stmt) - if (_internal_has_drop_stmt()) { - clear_has_node(); - ::pg_query::DropStmt* temp = _impl_.node_.drop_stmt_; - _impl_.node_.drop_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_drop_stmt(::pg_query::DropStmt* drop_stmt) { - clear_node(); - if (drop_stmt) { - set_has_drop_stmt(); - _impl_.node_.drop_stmt_ = drop_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.drop_stmt) -} -inline ::pg_query::DropStmt* Node::_internal_mutable_drop_stmt() { - if (!_internal_has_drop_stmt()) { - clear_node(); - set_has_drop_stmt(); - _impl_.node_.drop_stmt_ = CreateMaybeMessage< ::pg_query::DropStmt >(GetArenaForAllocation()); - } - return _impl_.node_.drop_stmt_; -} -inline ::pg_query::DropStmt* Node::mutable_drop_stmt() { - ::pg_query::DropStmt* _msg = _internal_mutable_drop_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.drop_stmt) - return _msg; -} - -// .pg_query.TruncateStmt truncate_stmt = 74 [json_name = "TruncateStmt"]; -inline bool Node::_internal_has_truncate_stmt() const { - return node_case() == kTruncateStmt; -} -inline bool Node::has_truncate_stmt() const { - return _internal_has_truncate_stmt(); -} -inline void Node::set_has_truncate_stmt() { - _impl_._oneof_case_[0] = kTruncateStmt; -} -inline void Node::clear_truncate_stmt() { - if (_internal_has_truncate_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.truncate_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::TruncateStmt* Node::release_truncate_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.truncate_stmt) - if (_internal_has_truncate_stmt()) { - clear_has_node(); - ::pg_query::TruncateStmt* temp = _impl_.node_.truncate_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.truncate_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::TruncateStmt& Node::_internal_truncate_stmt() const { - return _internal_has_truncate_stmt() - ? *_impl_.node_.truncate_stmt_ - : reinterpret_cast< ::pg_query::TruncateStmt&>(::pg_query::_TruncateStmt_default_instance_); -} -inline const ::pg_query::TruncateStmt& Node::truncate_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.truncate_stmt) - return _internal_truncate_stmt(); -} -inline ::pg_query::TruncateStmt* Node::unsafe_arena_release_truncate_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.truncate_stmt) - if (_internal_has_truncate_stmt()) { - clear_has_node(); - ::pg_query::TruncateStmt* temp = _impl_.node_.truncate_stmt_; - _impl_.node_.truncate_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_truncate_stmt(::pg_query::TruncateStmt* truncate_stmt) { - clear_node(); - if (truncate_stmt) { - set_has_truncate_stmt(); - _impl_.node_.truncate_stmt_ = truncate_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.truncate_stmt) -} -inline ::pg_query::TruncateStmt* Node::_internal_mutable_truncate_stmt() { - if (!_internal_has_truncate_stmt()) { - clear_node(); - set_has_truncate_stmt(); - _impl_.node_.truncate_stmt_ = CreateMaybeMessage< ::pg_query::TruncateStmt >(GetArenaForAllocation()); - } - return _impl_.node_.truncate_stmt_; -} -inline ::pg_query::TruncateStmt* Node::mutable_truncate_stmt() { - ::pg_query::TruncateStmt* _msg = _internal_mutable_truncate_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.truncate_stmt) - return _msg; -} - -// .pg_query.CommentStmt comment_stmt = 75 [json_name = "CommentStmt"]; -inline bool Node::_internal_has_comment_stmt() const { - return node_case() == kCommentStmt; -} -inline bool Node::has_comment_stmt() const { - return _internal_has_comment_stmt(); -} -inline void Node::set_has_comment_stmt() { - _impl_._oneof_case_[0] = kCommentStmt; -} -inline void Node::clear_comment_stmt() { - if (_internal_has_comment_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.comment_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CommentStmt* Node::release_comment_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.comment_stmt) - if (_internal_has_comment_stmt()) { - clear_has_node(); - ::pg_query::CommentStmt* temp = _impl_.node_.comment_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.comment_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CommentStmt& Node::_internal_comment_stmt() const { - return _internal_has_comment_stmt() - ? *_impl_.node_.comment_stmt_ - : reinterpret_cast< ::pg_query::CommentStmt&>(::pg_query::_CommentStmt_default_instance_); -} -inline const ::pg_query::CommentStmt& Node::comment_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.comment_stmt) - return _internal_comment_stmt(); -} -inline ::pg_query::CommentStmt* Node::unsafe_arena_release_comment_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.comment_stmt) - if (_internal_has_comment_stmt()) { - clear_has_node(); - ::pg_query::CommentStmt* temp = _impl_.node_.comment_stmt_; - _impl_.node_.comment_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_comment_stmt(::pg_query::CommentStmt* comment_stmt) { - clear_node(); - if (comment_stmt) { - set_has_comment_stmt(); - _impl_.node_.comment_stmt_ = comment_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.comment_stmt) -} -inline ::pg_query::CommentStmt* Node::_internal_mutable_comment_stmt() { - if (!_internal_has_comment_stmt()) { - clear_node(); - set_has_comment_stmt(); - _impl_.node_.comment_stmt_ = CreateMaybeMessage< ::pg_query::CommentStmt >(GetArenaForAllocation()); - } - return _impl_.node_.comment_stmt_; -} -inline ::pg_query::CommentStmt* Node::mutable_comment_stmt() { - ::pg_query::CommentStmt* _msg = _internal_mutable_comment_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.comment_stmt) - return _msg; -} - -// .pg_query.FetchStmt fetch_stmt = 76 [json_name = "FetchStmt"]; -inline bool Node::_internal_has_fetch_stmt() const { - return node_case() == kFetchStmt; -} -inline bool Node::has_fetch_stmt() const { - return _internal_has_fetch_stmt(); -} -inline void Node::set_has_fetch_stmt() { - _impl_._oneof_case_[0] = kFetchStmt; -} -inline void Node::clear_fetch_stmt() { - if (_internal_has_fetch_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.fetch_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::FetchStmt* Node::release_fetch_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.fetch_stmt) - if (_internal_has_fetch_stmt()) { - clear_has_node(); - ::pg_query::FetchStmt* temp = _impl_.node_.fetch_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.fetch_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::FetchStmt& Node::_internal_fetch_stmt() const { - return _internal_has_fetch_stmt() - ? *_impl_.node_.fetch_stmt_ - : reinterpret_cast< ::pg_query::FetchStmt&>(::pg_query::_FetchStmt_default_instance_); -} -inline const ::pg_query::FetchStmt& Node::fetch_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.fetch_stmt) - return _internal_fetch_stmt(); -} -inline ::pg_query::FetchStmt* Node::unsafe_arena_release_fetch_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.fetch_stmt) - if (_internal_has_fetch_stmt()) { - clear_has_node(); - ::pg_query::FetchStmt* temp = _impl_.node_.fetch_stmt_; - _impl_.node_.fetch_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_fetch_stmt(::pg_query::FetchStmt* fetch_stmt) { - clear_node(); - if (fetch_stmt) { - set_has_fetch_stmt(); - _impl_.node_.fetch_stmt_ = fetch_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.fetch_stmt) -} -inline ::pg_query::FetchStmt* Node::_internal_mutable_fetch_stmt() { - if (!_internal_has_fetch_stmt()) { - clear_node(); - set_has_fetch_stmt(); - _impl_.node_.fetch_stmt_ = CreateMaybeMessage< ::pg_query::FetchStmt >(GetArenaForAllocation()); - } - return _impl_.node_.fetch_stmt_; -} -inline ::pg_query::FetchStmt* Node::mutable_fetch_stmt() { - ::pg_query::FetchStmt* _msg = _internal_mutable_fetch_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.fetch_stmt) - return _msg; -} - -// .pg_query.IndexStmt index_stmt = 77 [json_name = "IndexStmt"]; -inline bool Node::_internal_has_index_stmt() const { - return node_case() == kIndexStmt; -} -inline bool Node::has_index_stmt() const { - return _internal_has_index_stmt(); -} -inline void Node::set_has_index_stmt() { - _impl_._oneof_case_[0] = kIndexStmt; -} -inline void Node::clear_index_stmt() { - if (_internal_has_index_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.index_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::IndexStmt* Node::release_index_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.index_stmt) - if (_internal_has_index_stmt()) { - clear_has_node(); - ::pg_query::IndexStmt* temp = _impl_.node_.index_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.index_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::IndexStmt& Node::_internal_index_stmt() const { - return _internal_has_index_stmt() - ? *_impl_.node_.index_stmt_ - : reinterpret_cast< ::pg_query::IndexStmt&>(::pg_query::_IndexStmt_default_instance_); -} -inline const ::pg_query::IndexStmt& Node::index_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.index_stmt) - return _internal_index_stmt(); -} -inline ::pg_query::IndexStmt* Node::unsafe_arena_release_index_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.index_stmt) - if (_internal_has_index_stmt()) { - clear_has_node(); - ::pg_query::IndexStmt* temp = _impl_.node_.index_stmt_; - _impl_.node_.index_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_index_stmt(::pg_query::IndexStmt* index_stmt) { - clear_node(); - if (index_stmt) { - set_has_index_stmt(); - _impl_.node_.index_stmt_ = index_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.index_stmt) -} -inline ::pg_query::IndexStmt* Node::_internal_mutable_index_stmt() { - if (!_internal_has_index_stmt()) { - clear_node(); - set_has_index_stmt(); - _impl_.node_.index_stmt_ = CreateMaybeMessage< ::pg_query::IndexStmt >(GetArenaForAllocation()); - } - return _impl_.node_.index_stmt_; -} -inline ::pg_query::IndexStmt* Node::mutable_index_stmt() { - ::pg_query::IndexStmt* _msg = _internal_mutable_index_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.index_stmt) - return _msg; -} - -// .pg_query.CreateFunctionStmt create_function_stmt = 78 [json_name = "CreateFunctionStmt"]; -inline bool Node::_internal_has_create_function_stmt() const { - return node_case() == kCreateFunctionStmt; -} -inline bool Node::has_create_function_stmt() const { - return _internal_has_create_function_stmt(); -} -inline void Node::set_has_create_function_stmt() { - _impl_._oneof_case_[0] = kCreateFunctionStmt; -} -inline void Node::clear_create_function_stmt() { - if (_internal_has_create_function_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_function_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateFunctionStmt* Node::release_create_function_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_function_stmt) - if (_internal_has_create_function_stmt()) { - clear_has_node(); - ::pg_query::CreateFunctionStmt* temp = _impl_.node_.create_function_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_function_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateFunctionStmt& Node::_internal_create_function_stmt() const { - return _internal_has_create_function_stmt() - ? *_impl_.node_.create_function_stmt_ - : reinterpret_cast< ::pg_query::CreateFunctionStmt&>(::pg_query::_CreateFunctionStmt_default_instance_); -} -inline const ::pg_query::CreateFunctionStmt& Node::create_function_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_function_stmt) - return _internal_create_function_stmt(); -} -inline ::pg_query::CreateFunctionStmt* Node::unsafe_arena_release_create_function_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_function_stmt) - if (_internal_has_create_function_stmt()) { - clear_has_node(); - ::pg_query::CreateFunctionStmt* temp = _impl_.node_.create_function_stmt_; - _impl_.node_.create_function_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_function_stmt(::pg_query::CreateFunctionStmt* create_function_stmt) { - clear_node(); - if (create_function_stmt) { - set_has_create_function_stmt(); - _impl_.node_.create_function_stmt_ = create_function_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_function_stmt) -} -inline ::pg_query::CreateFunctionStmt* Node::_internal_mutable_create_function_stmt() { - if (!_internal_has_create_function_stmt()) { - clear_node(); - set_has_create_function_stmt(); - _impl_.node_.create_function_stmt_ = CreateMaybeMessage< ::pg_query::CreateFunctionStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_function_stmt_; -} -inline ::pg_query::CreateFunctionStmt* Node::mutable_create_function_stmt() { - ::pg_query::CreateFunctionStmt* _msg = _internal_mutable_create_function_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_function_stmt) - return _msg; -} - -// .pg_query.AlterFunctionStmt alter_function_stmt = 79 [json_name = "AlterFunctionStmt"]; -inline bool Node::_internal_has_alter_function_stmt() const { - return node_case() == kAlterFunctionStmt; -} -inline bool Node::has_alter_function_stmt() const { - return _internal_has_alter_function_stmt(); -} -inline void Node::set_has_alter_function_stmt() { - _impl_._oneof_case_[0] = kAlterFunctionStmt; -} -inline void Node::clear_alter_function_stmt() { - if (_internal_has_alter_function_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_function_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterFunctionStmt* Node::release_alter_function_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_function_stmt) - if (_internal_has_alter_function_stmt()) { - clear_has_node(); - ::pg_query::AlterFunctionStmt* temp = _impl_.node_.alter_function_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_function_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterFunctionStmt& Node::_internal_alter_function_stmt() const { - return _internal_has_alter_function_stmt() - ? *_impl_.node_.alter_function_stmt_ - : reinterpret_cast< ::pg_query::AlterFunctionStmt&>(::pg_query::_AlterFunctionStmt_default_instance_); -} -inline const ::pg_query::AlterFunctionStmt& Node::alter_function_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_function_stmt) - return _internal_alter_function_stmt(); -} -inline ::pg_query::AlterFunctionStmt* Node::unsafe_arena_release_alter_function_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_function_stmt) - if (_internal_has_alter_function_stmt()) { - clear_has_node(); - ::pg_query::AlterFunctionStmt* temp = _impl_.node_.alter_function_stmt_; - _impl_.node_.alter_function_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_function_stmt(::pg_query::AlterFunctionStmt* alter_function_stmt) { - clear_node(); - if (alter_function_stmt) { - set_has_alter_function_stmt(); - _impl_.node_.alter_function_stmt_ = alter_function_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_function_stmt) -} -inline ::pg_query::AlterFunctionStmt* Node::_internal_mutable_alter_function_stmt() { - if (!_internal_has_alter_function_stmt()) { - clear_node(); - set_has_alter_function_stmt(); - _impl_.node_.alter_function_stmt_ = CreateMaybeMessage< ::pg_query::AlterFunctionStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_function_stmt_; -} -inline ::pg_query::AlterFunctionStmt* Node::mutable_alter_function_stmt() { - ::pg_query::AlterFunctionStmt* _msg = _internal_mutable_alter_function_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_function_stmt) - return _msg; -} - -// .pg_query.DoStmt do_stmt = 80 [json_name = "DoStmt"]; -inline bool Node::_internal_has_do_stmt() const { - return node_case() == kDoStmt; -} -inline bool Node::has_do_stmt() const { - return _internal_has_do_stmt(); -} -inline void Node::set_has_do_stmt() { - _impl_._oneof_case_[0] = kDoStmt; -} -inline void Node::clear_do_stmt() { - if (_internal_has_do_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.do_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::DoStmt* Node::release_do_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.do_stmt) - if (_internal_has_do_stmt()) { - clear_has_node(); - ::pg_query::DoStmt* temp = _impl_.node_.do_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.do_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::DoStmt& Node::_internal_do_stmt() const { - return _internal_has_do_stmt() - ? *_impl_.node_.do_stmt_ - : reinterpret_cast< ::pg_query::DoStmt&>(::pg_query::_DoStmt_default_instance_); -} -inline const ::pg_query::DoStmt& Node::do_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.do_stmt) - return _internal_do_stmt(); -} -inline ::pg_query::DoStmt* Node::unsafe_arena_release_do_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.do_stmt) - if (_internal_has_do_stmt()) { - clear_has_node(); - ::pg_query::DoStmt* temp = _impl_.node_.do_stmt_; - _impl_.node_.do_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_do_stmt(::pg_query::DoStmt* do_stmt) { - clear_node(); - if (do_stmt) { - set_has_do_stmt(); - _impl_.node_.do_stmt_ = do_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.do_stmt) -} -inline ::pg_query::DoStmt* Node::_internal_mutable_do_stmt() { - if (!_internal_has_do_stmt()) { - clear_node(); - set_has_do_stmt(); - _impl_.node_.do_stmt_ = CreateMaybeMessage< ::pg_query::DoStmt >(GetArenaForAllocation()); - } - return _impl_.node_.do_stmt_; -} -inline ::pg_query::DoStmt* Node::mutable_do_stmt() { - ::pg_query::DoStmt* _msg = _internal_mutable_do_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.do_stmt) - return _msg; -} - -// .pg_query.RenameStmt rename_stmt = 81 [json_name = "RenameStmt"]; -inline bool Node::_internal_has_rename_stmt() const { - return node_case() == kRenameStmt; -} -inline bool Node::has_rename_stmt() const { - return _internal_has_rename_stmt(); -} -inline void Node::set_has_rename_stmt() { - _impl_._oneof_case_[0] = kRenameStmt; -} -inline void Node::clear_rename_stmt() { - if (_internal_has_rename_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.rename_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::RenameStmt* Node::release_rename_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.rename_stmt) - if (_internal_has_rename_stmt()) { - clear_has_node(); - ::pg_query::RenameStmt* temp = _impl_.node_.rename_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.rename_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::RenameStmt& Node::_internal_rename_stmt() const { - return _internal_has_rename_stmt() - ? *_impl_.node_.rename_stmt_ - : reinterpret_cast< ::pg_query::RenameStmt&>(::pg_query::_RenameStmt_default_instance_); -} -inline const ::pg_query::RenameStmt& Node::rename_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.rename_stmt) - return _internal_rename_stmt(); -} -inline ::pg_query::RenameStmt* Node::unsafe_arena_release_rename_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.rename_stmt) - if (_internal_has_rename_stmt()) { - clear_has_node(); - ::pg_query::RenameStmt* temp = _impl_.node_.rename_stmt_; - _impl_.node_.rename_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_rename_stmt(::pg_query::RenameStmt* rename_stmt) { - clear_node(); - if (rename_stmt) { - set_has_rename_stmt(); - _impl_.node_.rename_stmt_ = rename_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.rename_stmt) -} -inline ::pg_query::RenameStmt* Node::_internal_mutable_rename_stmt() { - if (!_internal_has_rename_stmt()) { - clear_node(); - set_has_rename_stmt(); - _impl_.node_.rename_stmt_ = CreateMaybeMessage< ::pg_query::RenameStmt >(GetArenaForAllocation()); - } - return _impl_.node_.rename_stmt_; -} -inline ::pg_query::RenameStmt* Node::mutable_rename_stmt() { - ::pg_query::RenameStmt* _msg = _internal_mutable_rename_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.rename_stmt) - return _msg; -} - -// .pg_query.RuleStmt rule_stmt = 82 [json_name = "RuleStmt"]; -inline bool Node::_internal_has_rule_stmt() const { - return node_case() == kRuleStmt; -} -inline bool Node::has_rule_stmt() const { - return _internal_has_rule_stmt(); -} -inline void Node::set_has_rule_stmt() { - _impl_._oneof_case_[0] = kRuleStmt; -} -inline void Node::clear_rule_stmt() { - if (_internal_has_rule_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.rule_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::RuleStmt* Node::release_rule_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.rule_stmt) - if (_internal_has_rule_stmt()) { - clear_has_node(); - ::pg_query::RuleStmt* temp = _impl_.node_.rule_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.rule_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::RuleStmt& Node::_internal_rule_stmt() const { - return _internal_has_rule_stmt() - ? *_impl_.node_.rule_stmt_ - : reinterpret_cast< ::pg_query::RuleStmt&>(::pg_query::_RuleStmt_default_instance_); -} -inline const ::pg_query::RuleStmt& Node::rule_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.rule_stmt) - return _internal_rule_stmt(); -} -inline ::pg_query::RuleStmt* Node::unsafe_arena_release_rule_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.rule_stmt) - if (_internal_has_rule_stmt()) { - clear_has_node(); - ::pg_query::RuleStmt* temp = _impl_.node_.rule_stmt_; - _impl_.node_.rule_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_rule_stmt(::pg_query::RuleStmt* rule_stmt) { - clear_node(); - if (rule_stmt) { - set_has_rule_stmt(); - _impl_.node_.rule_stmt_ = rule_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.rule_stmt) -} -inline ::pg_query::RuleStmt* Node::_internal_mutable_rule_stmt() { - if (!_internal_has_rule_stmt()) { - clear_node(); - set_has_rule_stmt(); - _impl_.node_.rule_stmt_ = CreateMaybeMessage< ::pg_query::RuleStmt >(GetArenaForAllocation()); - } - return _impl_.node_.rule_stmt_; -} -inline ::pg_query::RuleStmt* Node::mutable_rule_stmt() { - ::pg_query::RuleStmt* _msg = _internal_mutable_rule_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.rule_stmt) - return _msg; -} - -// .pg_query.NotifyStmt notify_stmt = 83 [json_name = "NotifyStmt"]; -inline bool Node::_internal_has_notify_stmt() const { - return node_case() == kNotifyStmt; -} -inline bool Node::has_notify_stmt() const { - return _internal_has_notify_stmt(); -} -inline void Node::set_has_notify_stmt() { - _impl_._oneof_case_[0] = kNotifyStmt; -} -inline void Node::clear_notify_stmt() { - if (_internal_has_notify_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.notify_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::NotifyStmt* Node::release_notify_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.notify_stmt) - if (_internal_has_notify_stmt()) { - clear_has_node(); - ::pg_query::NotifyStmt* temp = _impl_.node_.notify_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.notify_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::NotifyStmt& Node::_internal_notify_stmt() const { - return _internal_has_notify_stmt() - ? *_impl_.node_.notify_stmt_ - : reinterpret_cast< ::pg_query::NotifyStmt&>(::pg_query::_NotifyStmt_default_instance_); -} -inline const ::pg_query::NotifyStmt& Node::notify_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.notify_stmt) - return _internal_notify_stmt(); -} -inline ::pg_query::NotifyStmt* Node::unsafe_arena_release_notify_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.notify_stmt) - if (_internal_has_notify_stmt()) { - clear_has_node(); - ::pg_query::NotifyStmt* temp = _impl_.node_.notify_stmt_; - _impl_.node_.notify_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_notify_stmt(::pg_query::NotifyStmt* notify_stmt) { - clear_node(); - if (notify_stmt) { - set_has_notify_stmt(); - _impl_.node_.notify_stmt_ = notify_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.notify_stmt) -} -inline ::pg_query::NotifyStmt* Node::_internal_mutable_notify_stmt() { - if (!_internal_has_notify_stmt()) { - clear_node(); - set_has_notify_stmt(); - _impl_.node_.notify_stmt_ = CreateMaybeMessage< ::pg_query::NotifyStmt >(GetArenaForAllocation()); - } - return _impl_.node_.notify_stmt_; -} -inline ::pg_query::NotifyStmt* Node::mutable_notify_stmt() { - ::pg_query::NotifyStmt* _msg = _internal_mutable_notify_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.notify_stmt) - return _msg; -} - -// .pg_query.ListenStmt listen_stmt = 84 [json_name = "ListenStmt"]; -inline bool Node::_internal_has_listen_stmt() const { - return node_case() == kListenStmt; -} -inline bool Node::has_listen_stmt() const { - return _internal_has_listen_stmt(); -} -inline void Node::set_has_listen_stmt() { - _impl_._oneof_case_[0] = kListenStmt; -} -inline void Node::clear_listen_stmt() { - if (_internal_has_listen_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.listen_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::ListenStmt* Node::release_listen_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.listen_stmt) - if (_internal_has_listen_stmt()) { - clear_has_node(); - ::pg_query::ListenStmt* temp = _impl_.node_.listen_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.listen_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::ListenStmt& Node::_internal_listen_stmt() const { - return _internal_has_listen_stmt() - ? *_impl_.node_.listen_stmt_ - : reinterpret_cast< ::pg_query::ListenStmt&>(::pg_query::_ListenStmt_default_instance_); -} -inline const ::pg_query::ListenStmt& Node::listen_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.listen_stmt) - return _internal_listen_stmt(); -} -inline ::pg_query::ListenStmt* Node::unsafe_arena_release_listen_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.listen_stmt) - if (_internal_has_listen_stmt()) { - clear_has_node(); - ::pg_query::ListenStmt* temp = _impl_.node_.listen_stmt_; - _impl_.node_.listen_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_listen_stmt(::pg_query::ListenStmt* listen_stmt) { - clear_node(); - if (listen_stmt) { - set_has_listen_stmt(); - _impl_.node_.listen_stmt_ = listen_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.listen_stmt) -} -inline ::pg_query::ListenStmt* Node::_internal_mutable_listen_stmt() { - if (!_internal_has_listen_stmt()) { - clear_node(); - set_has_listen_stmt(); - _impl_.node_.listen_stmt_ = CreateMaybeMessage< ::pg_query::ListenStmt >(GetArenaForAllocation()); - } - return _impl_.node_.listen_stmt_; -} -inline ::pg_query::ListenStmt* Node::mutable_listen_stmt() { - ::pg_query::ListenStmt* _msg = _internal_mutable_listen_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.listen_stmt) - return _msg; -} - -// .pg_query.UnlistenStmt unlisten_stmt = 85 [json_name = "UnlistenStmt"]; -inline bool Node::_internal_has_unlisten_stmt() const { - return node_case() == kUnlistenStmt; -} -inline bool Node::has_unlisten_stmt() const { - return _internal_has_unlisten_stmt(); -} -inline void Node::set_has_unlisten_stmt() { - _impl_._oneof_case_[0] = kUnlistenStmt; -} -inline void Node::clear_unlisten_stmt() { - if (_internal_has_unlisten_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.unlisten_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::UnlistenStmt* Node::release_unlisten_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.unlisten_stmt) - if (_internal_has_unlisten_stmt()) { - clear_has_node(); - ::pg_query::UnlistenStmt* temp = _impl_.node_.unlisten_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.unlisten_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::UnlistenStmt& Node::_internal_unlisten_stmt() const { - return _internal_has_unlisten_stmt() - ? *_impl_.node_.unlisten_stmt_ - : reinterpret_cast< ::pg_query::UnlistenStmt&>(::pg_query::_UnlistenStmt_default_instance_); -} -inline const ::pg_query::UnlistenStmt& Node::unlisten_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.unlisten_stmt) - return _internal_unlisten_stmt(); -} -inline ::pg_query::UnlistenStmt* Node::unsafe_arena_release_unlisten_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.unlisten_stmt) - if (_internal_has_unlisten_stmt()) { - clear_has_node(); - ::pg_query::UnlistenStmt* temp = _impl_.node_.unlisten_stmt_; - _impl_.node_.unlisten_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_unlisten_stmt(::pg_query::UnlistenStmt* unlisten_stmt) { - clear_node(); - if (unlisten_stmt) { - set_has_unlisten_stmt(); - _impl_.node_.unlisten_stmt_ = unlisten_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.unlisten_stmt) -} -inline ::pg_query::UnlistenStmt* Node::_internal_mutable_unlisten_stmt() { - if (!_internal_has_unlisten_stmt()) { - clear_node(); - set_has_unlisten_stmt(); - _impl_.node_.unlisten_stmt_ = CreateMaybeMessage< ::pg_query::UnlistenStmt >(GetArenaForAllocation()); - } - return _impl_.node_.unlisten_stmt_; -} -inline ::pg_query::UnlistenStmt* Node::mutable_unlisten_stmt() { - ::pg_query::UnlistenStmt* _msg = _internal_mutable_unlisten_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.unlisten_stmt) - return _msg; -} - -// .pg_query.TransactionStmt transaction_stmt = 86 [json_name = "TransactionStmt"]; -inline bool Node::_internal_has_transaction_stmt() const { - return node_case() == kTransactionStmt; -} -inline bool Node::has_transaction_stmt() const { - return _internal_has_transaction_stmt(); -} -inline void Node::set_has_transaction_stmt() { - _impl_._oneof_case_[0] = kTransactionStmt; -} -inline void Node::clear_transaction_stmt() { - if (_internal_has_transaction_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.transaction_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::TransactionStmt* Node::release_transaction_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.transaction_stmt) - if (_internal_has_transaction_stmt()) { - clear_has_node(); - ::pg_query::TransactionStmt* temp = _impl_.node_.transaction_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.transaction_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::TransactionStmt& Node::_internal_transaction_stmt() const { - return _internal_has_transaction_stmt() - ? *_impl_.node_.transaction_stmt_ - : reinterpret_cast< ::pg_query::TransactionStmt&>(::pg_query::_TransactionStmt_default_instance_); -} -inline const ::pg_query::TransactionStmt& Node::transaction_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.transaction_stmt) - return _internal_transaction_stmt(); -} -inline ::pg_query::TransactionStmt* Node::unsafe_arena_release_transaction_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.transaction_stmt) - if (_internal_has_transaction_stmt()) { - clear_has_node(); - ::pg_query::TransactionStmt* temp = _impl_.node_.transaction_stmt_; - _impl_.node_.transaction_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_transaction_stmt(::pg_query::TransactionStmt* transaction_stmt) { - clear_node(); - if (transaction_stmt) { - set_has_transaction_stmt(); - _impl_.node_.transaction_stmt_ = transaction_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.transaction_stmt) -} -inline ::pg_query::TransactionStmt* Node::_internal_mutable_transaction_stmt() { - if (!_internal_has_transaction_stmt()) { - clear_node(); - set_has_transaction_stmt(); - _impl_.node_.transaction_stmt_ = CreateMaybeMessage< ::pg_query::TransactionStmt >(GetArenaForAllocation()); - } - return _impl_.node_.transaction_stmt_; -} -inline ::pg_query::TransactionStmt* Node::mutable_transaction_stmt() { - ::pg_query::TransactionStmt* _msg = _internal_mutable_transaction_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.transaction_stmt) - return _msg; -} - -// .pg_query.ViewStmt view_stmt = 87 [json_name = "ViewStmt"]; -inline bool Node::_internal_has_view_stmt() const { - return node_case() == kViewStmt; -} -inline bool Node::has_view_stmt() const { - return _internal_has_view_stmt(); -} -inline void Node::set_has_view_stmt() { - _impl_._oneof_case_[0] = kViewStmt; -} -inline void Node::clear_view_stmt() { - if (_internal_has_view_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.view_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::ViewStmt* Node::release_view_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.view_stmt) - if (_internal_has_view_stmt()) { - clear_has_node(); - ::pg_query::ViewStmt* temp = _impl_.node_.view_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.view_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::ViewStmt& Node::_internal_view_stmt() const { - return _internal_has_view_stmt() - ? *_impl_.node_.view_stmt_ - : reinterpret_cast< ::pg_query::ViewStmt&>(::pg_query::_ViewStmt_default_instance_); -} -inline const ::pg_query::ViewStmt& Node::view_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.view_stmt) - return _internal_view_stmt(); -} -inline ::pg_query::ViewStmt* Node::unsafe_arena_release_view_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.view_stmt) - if (_internal_has_view_stmt()) { - clear_has_node(); - ::pg_query::ViewStmt* temp = _impl_.node_.view_stmt_; - _impl_.node_.view_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_view_stmt(::pg_query::ViewStmt* view_stmt) { - clear_node(); - if (view_stmt) { - set_has_view_stmt(); - _impl_.node_.view_stmt_ = view_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.view_stmt) -} -inline ::pg_query::ViewStmt* Node::_internal_mutable_view_stmt() { - if (!_internal_has_view_stmt()) { - clear_node(); - set_has_view_stmt(); - _impl_.node_.view_stmt_ = CreateMaybeMessage< ::pg_query::ViewStmt >(GetArenaForAllocation()); - } - return _impl_.node_.view_stmt_; -} -inline ::pg_query::ViewStmt* Node::mutable_view_stmt() { - ::pg_query::ViewStmt* _msg = _internal_mutable_view_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.view_stmt) - return _msg; -} - -// .pg_query.LoadStmt load_stmt = 88 [json_name = "LoadStmt"]; -inline bool Node::_internal_has_load_stmt() const { - return node_case() == kLoadStmt; -} -inline bool Node::has_load_stmt() const { - return _internal_has_load_stmt(); -} -inline void Node::set_has_load_stmt() { - _impl_._oneof_case_[0] = kLoadStmt; -} -inline void Node::clear_load_stmt() { - if (_internal_has_load_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.load_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::LoadStmt* Node::release_load_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.load_stmt) - if (_internal_has_load_stmt()) { - clear_has_node(); - ::pg_query::LoadStmt* temp = _impl_.node_.load_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.load_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::LoadStmt& Node::_internal_load_stmt() const { - return _internal_has_load_stmt() - ? *_impl_.node_.load_stmt_ - : reinterpret_cast< ::pg_query::LoadStmt&>(::pg_query::_LoadStmt_default_instance_); -} -inline const ::pg_query::LoadStmt& Node::load_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.load_stmt) - return _internal_load_stmt(); -} -inline ::pg_query::LoadStmt* Node::unsafe_arena_release_load_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.load_stmt) - if (_internal_has_load_stmt()) { - clear_has_node(); - ::pg_query::LoadStmt* temp = _impl_.node_.load_stmt_; - _impl_.node_.load_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_load_stmt(::pg_query::LoadStmt* load_stmt) { - clear_node(); - if (load_stmt) { - set_has_load_stmt(); - _impl_.node_.load_stmt_ = load_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.load_stmt) -} -inline ::pg_query::LoadStmt* Node::_internal_mutable_load_stmt() { - if (!_internal_has_load_stmt()) { - clear_node(); - set_has_load_stmt(); - _impl_.node_.load_stmt_ = CreateMaybeMessage< ::pg_query::LoadStmt >(GetArenaForAllocation()); - } - return _impl_.node_.load_stmt_; -} -inline ::pg_query::LoadStmt* Node::mutable_load_stmt() { - ::pg_query::LoadStmt* _msg = _internal_mutable_load_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.load_stmt) - return _msg; -} - -// .pg_query.CreateDomainStmt create_domain_stmt = 89 [json_name = "CreateDomainStmt"]; -inline bool Node::_internal_has_create_domain_stmt() const { - return node_case() == kCreateDomainStmt; -} -inline bool Node::has_create_domain_stmt() const { - return _internal_has_create_domain_stmt(); -} -inline void Node::set_has_create_domain_stmt() { - _impl_._oneof_case_[0] = kCreateDomainStmt; -} -inline void Node::clear_create_domain_stmt() { - if (_internal_has_create_domain_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_domain_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateDomainStmt* Node::release_create_domain_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_domain_stmt) - if (_internal_has_create_domain_stmt()) { - clear_has_node(); - ::pg_query::CreateDomainStmt* temp = _impl_.node_.create_domain_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_domain_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateDomainStmt& Node::_internal_create_domain_stmt() const { - return _internal_has_create_domain_stmt() - ? *_impl_.node_.create_domain_stmt_ - : reinterpret_cast< ::pg_query::CreateDomainStmt&>(::pg_query::_CreateDomainStmt_default_instance_); -} -inline const ::pg_query::CreateDomainStmt& Node::create_domain_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_domain_stmt) - return _internal_create_domain_stmt(); -} -inline ::pg_query::CreateDomainStmt* Node::unsafe_arena_release_create_domain_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_domain_stmt) - if (_internal_has_create_domain_stmt()) { - clear_has_node(); - ::pg_query::CreateDomainStmt* temp = _impl_.node_.create_domain_stmt_; - _impl_.node_.create_domain_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_domain_stmt(::pg_query::CreateDomainStmt* create_domain_stmt) { - clear_node(); - if (create_domain_stmt) { - set_has_create_domain_stmt(); - _impl_.node_.create_domain_stmt_ = create_domain_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_domain_stmt) -} -inline ::pg_query::CreateDomainStmt* Node::_internal_mutable_create_domain_stmt() { - if (!_internal_has_create_domain_stmt()) { - clear_node(); - set_has_create_domain_stmt(); - _impl_.node_.create_domain_stmt_ = CreateMaybeMessage< ::pg_query::CreateDomainStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_domain_stmt_; -} -inline ::pg_query::CreateDomainStmt* Node::mutable_create_domain_stmt() { - ::pg_query::CreateDomainStmt* _msg = _internal_mutable_create_domain_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_domain_stmt) - return _msg; -} - -// .pg_query.CreatedbStmt createdb_stmt = 90 [json_name = "CreatedbStmt"]; -inline bool Node::_internal_has_createdb_stmt() const { - return node_case() == kCreatedbStmt; -} -inline bool Node::has_createdb_stmt() const { - return _internal_has_createdb_stmt(); -} -inline void Node::set_has_createdb_stmt() { - _impl_._oneof_case_[0] = kCreatedbStmt; -} -inline void Node::clear_createdb_stmt() { - if (_internal_has_createdb_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.createdb_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreatedbStmt* Node::release_createdb_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.createdb_stmt) - if (_internal_has_createdb_stmt()) { - clear_has_node(); - ::pg_query::CreatedbStmt* temp = _impl_.node_.createdb_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.createdb_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreatedbStmt& Node::_internal_createdb_stmt() const { - return _internal_has_createdb_stmt() - ? *_impl_.node_.createdb_stmt_ - : reinterpret_cast< ::pg_query::CreatedbStmt&>(::pg_query::_CreatedbStmt_default_instance_); -} -inline const ::pg_query::CreatedbStmt& Node::createdb_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.createdb_stmt) - return _internal_createdb_stmt(); -} -inline ::pg_query::CreatedbStmt* Node::unsafe_arena_release_createdb_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.createdb_stmt) - if (_internal_has_createdb_stmt()) { - clear_has_node(); - ::pg_query::CreatedbStmt* temp = _impl_.node_.createdb_stmt_; - _impl_.node_.createdb_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_createdb_stmt(::pg_query::CreatedbStmt* createdb_stmt) { - clear_node(); - if (createdb_stmt) { - set_has_createdb_stmt(); - _impl_.node_.createdb_stmt_ = createdb_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.createdb_stmt) -} -inline ::pg_query::CreatedbStmt* Node::_internal_mutable_createdb_stmt() { - if (!_internal_has_createdb_stmt()) { - clear_node(); - set_has_createdb_stmt(); - _impl_.node_.createdb_stmt_ = CreateMaybeMessage< ::pg_query::CreatedbStmt >(GetArenaForAllocation()); - } - return _impl_.node_.createdb_stmt_; -} -inline ::pg_query::CreatedbStmt* Node::mutable_createdb_stmt() { - ::pg_query::CreatedbStmt* _msg = _internal_mutable_createdb_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.createdb_stmt) - return _msg; -} - -// .pg_query.DropdbStmt dropdb_stmt = 91 [json_name = "DropdbStmt"]; -inline bool Node::_internal_has_dropdb_stmt() const { - return node_case() == kDropdbStmt; -} -inline bool Node::has_dropdb_stmt() const { - return _internal_has_dropdb_stmt(); -} -inline void Node::set_has_dropdb_stmt() { - _impl_._oneof_case_[0] = kDropdbStmt; -} -inline void Node::clear_dropdb_stmt() { - if (_internal_has_dropdb_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.dropdb_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::DropdbStmt* Node::release_dropdb_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.dropdb_stmt) - if (_internal_has_dropdb_stmt()) { - clear_has_node(); - ::pg_query::DropdbStmt* temp = _impl_.node_.dropdb_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.dropdb_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::DropdbStmt& Node::_internal_dropdb_stmt() const { - return _internal_has_dropdb_stmt() - ? *_impl_.node_.dropdb_stmt_ - : reinterpret_cast< ::pg_query::DropdbStmt&>(::pg_query::_DropdbStmt_default_instance_); -} -inline const ::pg_query::DropdbStmt& Node::dropdb_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.dropdb_stmt) - return _internal_dropdb_stmt(); -} -inline ::pg_query::DropdbStmt* Node::unsafe_arena_release_dropdb_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.dropdb_stmt) - if (_internal_has_dropdb_stmt()) { - clear_has_node(); - ::pg_query::DropdbStmt* temp = _impl_.node_.dropdb_stmt_; - _impl_.node_.dropdb_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_dropdb_stmt(::pg_query::DropdbStmt* dropdb_stmt) { - clear_node(); - if (dropdb_stmt) { - set_has_dropdb_stmt(); - _impl_.node_.dropdb_stmt_ = dropdb_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.dropdb_stmt) -} -inline ::pg_query::DropdbStmt* Node::_internal_mutable_dropdb_stmt() { - if (!_internal_has_dropdb_stmt()) { - clear_node(); - set_has_dropdb_stmt(); - _impl_.node_.dropdb_stmt_ = CreateMaybeMessage< ::pg_query::DropdbStmt >(GetArenaForAllocation()); - } - return _impl_.node_.dropdb_stmt_; -} -inline ::pg_query::DropdbStmt* Node::mutable_dropdb_stmt() { - ::pg_query::DropdbStmt* _msg = _internal_mutable_dropdb_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.dropdb_stmt) - return _msg; -} - -// .pg_query.VacuumStmt vacuum_stmt = 92 [json_name = "VacuumStmt"]; -inline bool Node::_internal_has_vacuum_stmt() const { - return node_case() == kVacuumStmt; -} -inline bool Node::has_vacuum_stmt() const { - return _internal_has_vacuum_stmt(); -} -inline void Node::set_has_vacuum_stmt() { - _impl_._oneof_case_[0] = kVacuumStmt; -} -inline void Node::clear_vacuum_stmt() { - if (_internal_has_vacuum_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.vacuum_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::VacuumStmt* Node::release_vacuum_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.vacuum_stmt) - if (_internal_has_vacuum_stmt()) { - clear_has_node(); - ::pg_query::VacuumStmt* temp = _impl_.node_.vacuum_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.vacuum_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::VacuumStmt& Node::_internal_vacuum_stmt() const { - return _internal_has_vacuum_stmt() - ? *_impl_.node_.vacuum_stmt_ - : reinterpret_cast< ::pg_query::VacuumStmt&>(::pg_query::_VacuumStmt_default_instance_); -} -inline const ::pg_query::VacuumStmt& Node::vacuum_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.vacuum_stmt) - return _internal_vacuum_stmt(); -} -inline ::pg_query::VacuumStmt* Node::unsafe_arena_release_vacuum_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.vacuum_stmt) - if (_internal_has_vacuum_stmt()) { - clear_has_node(); - ::pg_query::VacuumStmt* temp = _impl_.node_.vacuum_stmt_; - _impl_.node_.vacuum_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_vacuum_stmt(::pg_query::VacuumStmt* vacuum_stmt) { - clear_node(); - if (vacuum_stmt) { - set_has_vacuum_stmt(); - _impl_.node_.vacuum_stmt_ = vacuum_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.vacuum_stmt) -} -inline ::pg_query::VacuumStmt* Node::_internal_mutable_vacuum_stmt() { - if (!_internal_has_vacuum_stmt()) { - clear_node(); - set_has_vacuum_stmt(); - _impl_.node_.vacuum_stmt_ = CreateMaybeMessage< ::pg_query::VacuumStmt >(GetArenaForAllocation()); - } - return _impl_.node_.vacuum_stmt_; -} -inline ::pg_query::VacuumStmt* Node::mutable_vacuum_stmt() { - ::pg_query::VacuumStmt* _msg = _internal_mutable_vacuum_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.vacuum_stmt) - return _msg; -} - -// .pg_query.ExplainStmt explain_stmt = 93 [json_name = "ExplainStmt"]; -inline bool Node::_internal_has_explain_stmt() const { - return node_case() == kExplainStmt; -} -inline bool Node::has_explain_stmt() const { - return _internal_has_explain_stmt(); -} -inline void Node::set_has_explain_stmt() { - _impl_._oneof_case_[0] = kExplainStmt; -} -inline void Node::clear_explain_stmt() { - if (_internal_has_explain_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.explain_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::ExplainStmt* Node::release_explain_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.explain_stmt) - if (_internal_has_explain_stmt()) { - clear_has_node(); - ::pg_query::ExplainStmt* temp = _impl_.node_.explain_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.explain_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::ExplainStmt& Node::_internal_explain_stmt() const { - return _internal_has_explain_stmt() - ? *_impl_.node_.explain_stmt_ - : reinterpret_cast< ::pg_query::ExplainStmt&>(::pg_query::_ExplainStmt_default_instance_); -} -inline const ::pg_query::ExplainStmt& Node::explain_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.explain_stmt) - return _internal_explain_stmt(); -} -inline ::pg_query::ExplainStmt* Node::unsafe_arena_release_explain_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.explain_stmt) - if (_internal_has_explain_stmt()) { - clear_has_node(); - ::pg_query::ExplainStmt* temp = _impl_.node_.explain_stmt_; - _impl_.node_.explain_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_explain_stmt(::pg_query::ExplainStmt* explain_stmt) { - clear_node(); - if (explain_stmt) { - set_has_explain_stmt(); - _impl_.node_.explain_stmt_ = explain_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.explain_stmt) -} -inline ::pg_query::ExplainStmt* Node::_internal_mutable_explain_stmt() { - if (!_internal_has_explain_stmt()) { - clear_node(); - set_has_explain_stmt(); - _impl_.node_.explain_stmt_ = CreateMaybeMessage< ::pg_query::ExplainStmt >(GetArenaForAllocation()); - } - return _impl_.node_.explain_stmt_; -} -inline ::pg_query::ExplainStmt* Node::mutable_explain_stmt() { - ::pg_query::ExplainStmt* _msg = _internal_mutable_explain_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.explain_stmt) - return _msg; -} - -// .pg_query.CreateTableAsStmt create_table_as_stmt = 94 [json_name = "CreateTableAsStmt"]; -inline bool Node::_internal_has_create_table_as_stmt() const { - return node_case() == kCreateTableAsStmt; -} -inline bool Node::has_create_table_as_stmt() const { - return _internal_has_create_table_as_stmt(); -} -inline void Node::set_has_create_table_as_stmt() { - _impl_._oneof_case_[0] = kCreateTableAsStmt; -} -inline void Node::clear_create_table_as_stmt() { - if (_internal_has_create_table_as_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_table_as_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateTableAsStmt* Node::release_create_table_as_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_table_as_stmt) - if (_internal_has_create_table_as_stmt()) { - clear_has_node(); - ::pg_query::CreateTableAsStmt* temp = _impl_.node_.create_table_as_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_table_as_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateTableAsStmt& Node::_internal_create_table_as_stmt() const { - return _internal_has_create_table_as_stmt() - ? *_impl_.node_.create_table_as_stmt_ - : reinterpret_cast< ::pg_query::CreateTableAsStmt&>(::pg_query::_CreateTableAsStmt_default_instance_); -} -inline const ::pg_query::CreateTableAsStmt& Node::create_table_as_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_table_as_stmt) - return _internal_create_table_as_stmt(); -} -inline ::pg_query::CreateTableAsStmt* Node::unsafe_arena_release_create_table_as_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_table_as_stmt) - if (_internal_has_create_table_as_stmt()) { - clear_has_node(); - ::pg_query::CreateTableAsStmt* temp = _impl_.node_.create_table_as_stmt_; - _impl_.node_.create_table_as_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_table_as_stmt(::pg_query::CreateTableAsStmt* create_table_as_stmt) { - clear_node(); - if (create_table_as_stmt) { - set_has_create_table_as_stmt(); - _impl_.node_.create_table_as_stmt_ = create_table_as_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_table_as_stmt) -} -inline ::pg_query::CreateTableAsStmt* Node::_internal_mutable_create_table_as_stmt() { - if (!_internal_has_create_table_as_stmt()) { - clear_node(); - set_has_create_table_as_stmt(); - _impl_.node_.create_table_as_stmt_ = CreateMaybeMessage< ::pg_query::CreateTableAsStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_table_as_stmt_; -} -inline ::pg_query::CreateTableAsStmt* Node::mutable_create_table_as_stmt() { - ::pg_query::CreateTableAsStmt* _msg = _internal_mutable_create_table_as_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_table_as_stmt) - return _msg; -} - -// .pg_query.CreateSeqStmt create_seq_stmt = 95 [json_name = "CreateSeqStmt"]; -inline bool Node::_internal_has_create_seq_stmt() const { - return node_case() == kCreateSeqStmt; -} -inline bool Node::has_create_seq_stmt() const { - return _internal_has_create_seq_stmt(); -} -inline void Node::set_has_create_seq_stmt() { - _impl_._oneof_case_[0] = kCreateSeqStmt; -} -inline void Node::clear_create_seq_stmt() { - if (_internal_has_create_seq_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_seq_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateSeqStmt* Node::release_create_seq_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_seq_stmt) - if (_internal_has_create_seq_stmt()) { - clear_has_node(); - ::pg_query::CreateSeqStmt* temp = _impl_.node_.create_seq_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_seq_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateSeqStmt& Node::_internal_create_seq_stmt() const { - return _internal_has_create_seq_stmt() - ? *_impl_.node_.create_seq_stmt_ - : reinterpret_cast< ::pg_query::CreateSeqStmt&>(::pg_query::_CreateSeqStmt_default_instance_); -} -inline const ::pg_query::CreateSeqStmt& Node::create_seq_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_seq_stmt) - return _internal_create_seq_stmt(); -} -inline ::pg_query::CreateSeqStmt* Node::unsafe_arena_release_create_seq_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_seq_stmt) - if (_internal_has_create_seq_stmt()) { - clear_has_node(); - ::pg_query::CreateSeqStmt* temp = _impl_.node_.create_seq_stmt_; - _impl_.node_.create_seq_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_seq_stmt(::pg_query::CreateSeqStmt* create_seq_stmt) { - clear_node(); - if (create_seq_stmt) { - set_has_create_seq_stmt(); - _impl_.node_.create_seq_stmt_ = create_seq_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_seq_stmt) -} -inline ::pg_query::CreateSeqStmt* Node::_internal_mutable_create_seq_stmt() { - if (!_internal_has_create_seq_stmt()) { - clear_node(); - set_has_create_seq_stmt(); - _impl_.node_.create_seq_stmt_ = CreateMaybeMessage< ::pg_query::CreateSeqStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_seq_stmt_; -} -inline ::pg_query::CreateSeqStmt* Node::mutable_create_seq_stmt() { - ::pg_query::CreateSeqStmt* _msg = _internal_mutable_create_seq_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_seq_stmt) - return _msg; -} - -// .pg_query.AlterSeqStmt alter_seq_stmt = 96 [json_name = "AlterSeqStmt"]; -inline bool Node::_internal_has_alter_seq_stmt() const { - return node_case() == kAlterSeqStmt; -} -inline bool Node::has_alter_seq_stmt() const { - return _internal_has_alter_seq_stmt(); -} -inline void Node::set_has_alter_seq_stmt() { - _impl_._oneof_case_[0] = kAlterSeqStmt; -} -inline void Node::clear_alter_seq_stmt() { - if (_internal_has_alter_seq_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_seq_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterSeqStmt* Node::release_alter_seq_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_seq_stmt) - if (_internal_has_alter_seq_stmt()) { - clear_has_node(); - ::pg_query::AlterSeqStmt* temp = _impl_.node_.alter_seq_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_seq_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterSeqStmt& Node::_internal_alter_seq_stmt() const { - return _internal_has_alter_seq_stmt() - ? *_impl_.node_.alter_seq_stmt_ - : reinterpret_cast< ::pg_query::AlterSeqStmt&>(::pg_query::_AlterSeqStmt_default_instance_); -} -inline const ::pg_query::AlterSeqStmt& Node::alter_seq_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_seq_stmt) - return _internal_alter_seq_stmt(); -} -inline ::pg_query::AlterSeqStmt* Node::unsafe_arena_release_alter_seq_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_seq_stmt) - if (_internal_has_alter_seq_stmt()) { - clear_has_node(); - ::pg_query::AlterSeqStmt* temp = _impl_.node_.alter_seq_stmt_; - _impl_.node_.alter_seq_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_seq_stmt(::pg_query::AlterSeqStmt* alter_seq_stmt) { - clear_node(); - if (alter_seq_stmt) { - set_has_alter_seq_stmt(); - _impl_.node_.alter_seq_stmt_ = alter_seq_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_seq_stmt) -} -inline ::pg_query::AlterSeqStmt* Node::_internal_mutable_alter_seq_stmt() { - if (!_internal_has_alter_seq_stmt()) { - clear_node(); - set_has_alter_seq_stmt(); - _impl_.node_.alter_seq_stmt_ = CreateMaybeMessage< ::pg_query::AlterSeqStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_seq_stmt_; -} -inline ::pg_query::AlterSeqStmt* Node::mutable_alter_seq_stmt() { - ::pg_query::AlterSeqStmt* _msg = _internal_mutable_alter_seq_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_seq_stmt) - return _msg; -} - -// .pg_query.VariableSetStmt variable_set_stmt = 97 [json_name = "VariableSetStmt"]; -inline bool Node::_internal_has_variable_set_stmt() const { - return node_case() == kVariableSetStmt; -} -inline bool Node::has_variable_set_stmt() const { - return _internal_has_variable_set_stmt(); -} -inline void Node::set_has_variable_set_stmt() { - _impl_._oneof_case_[0] = kVariableSetStmt; -} -inline void Node::clear_variable_set_stmt() { - if (_internal_has_variable_set_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.variable_set_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::VariableSetStmt* Node::release_variable_set_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.variable_set_stmt) - if (_internal_has_variable_set_stmt()) { - clear_has_node(); - ::pg_query::VariableSetStmt* temp = _impl_.node_.variable_set_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.variable_set_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::VariableSetStmt& Node::_internal_variable_set_stmt() const { - return _internal_has_variable_set_stmt() - ? *_impl_.node_.variable_set_stmt_ - : reinterpret_cast< ::pg_query::VariableSetStmt&>(::pg_query::_VariableSetStmt_default_instance_); -} -inline const ::pg_query::VariableSetStmt& Node::variable_set_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.variable_set_stmt) - return _internal_variable_set_stmt(); -} -inline ::pg_query::VariableSetStmt* Node::unsafe_arena_release_variable_set_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.variable_set_stmt) - if (_internal_has_variable_set_stmt()) { - clear_has_node(); - ::pg_query::VariableSetStmt* temp = _impl_.node_.variable_set_stmt_; - _impl_.node_.variable_set_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_variable_set_stmt(::pg_query::VariableSetStmt* variable_set_stmt) { - clear_node(); - if (variable_set_stmt) { - set_has_variable_set_stmt(); - _impl_.node_.variable_set_stmt_ = variable_set_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.variable_set_stmt) -} -inline ::pg_query::VariableSetStmt* Node::_internal_mutable_variable_set_stmt() { - if (!_internal_has_variable_set_stmt()) { - clear_node(); - set_has_variable_set_stmt(); - _impl_.node_.variable_set_stmt_ = CreateMaybeMessage< ::pg_query::VariableSetStmt >(GetArenaForAllocation()); - } - return _impl_.node_.variable_set_stmt_; -} -inline ::pg_query::VariableSetStmt* Node::mutable_variable_set_stmt() { - ::pg_query::VariableSetStmt* _msg = _internal_mutable_variable_set_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.variable_set_stmt) - return _msg; -} - -// .pg_query.VariableShowStmt variable_show_stmt = 98 [json_name = "VariableShowStmt"]; -inline bool Node::_internal_has_variable_show_stmt() const { - return node_case() == kVariableShowStmt; -} -inline bool Node::has_variable_show_stmt() const { - return _internal_has_variable_show_stmt(); -} -inline void Node::set_has_variable_show_stmt() { - _impl_._oneof_case_[0] = kVariableShowStmt; -} -inline void Node::clear_variable_show_stmt() { - if (_internal_has_variable_show_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.variable_show_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::VariableShowStmt* Node::release_variable_show_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.variable_show_stmt) - if (_internal_has_variable_show_stmt()) { - clear_has_node(); - ::pg_query::VariableShowStmt* temp = _impl_.node_.variable_show_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.variable_show_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::VariableShowStmt& Node::_internal_variable_show_stmt() const { - return _internal_has_variable_show_stmt() - ? *_impl_.node_.variable_show_stmt_ - : reinterpret_cast< ::pg_query::VariableShowStmt&>(::pg_query::_VariableShowStmt_default_instance_); -} -inline const ::pg_query::VariableShowStmt& Node::variable_show_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.variable_show_stmt) - return _internal_variable_show_stmt(); -} -inline ::pg_query::VariableShowStmt* Node::unsafe_arena_release_variable_show_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.variable_show_stmt) - if (_internal_has_variable_show_stmt()) { - clear_has_node(); - ::pg_query::VariableShowStmt* temp = _impl_.node_.variable_show_stmt_; - _impl_.node_.variable_show_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_variable_show_stmt(::pg_query::VariableShowStmt* variable_show_stmt) { - clear_node(); - if (variable_show_stmt) { - set_has_variable_show_stmt(); - _impl_.node_.variable_show_stmt_ = variable_show_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.variable_show_stmt) -} -inline ::pg_query::VariableShowStmt* Node::_internal_mutable_variable_show_stmt() { - if (!_internal_has_variable_show_stmt()) { - clear_node(); - set_has_variable_show_stmt(); - _impl_.node_.variable_show_stmt_ = CreateMaybeMessage< ::pg_query::VariableShowStmt >(GetArenaForAllocation()); - } - return _impl_.node_.variable_show_stmt_; -} -inline ::pg_query::VariableShowStmt* Node::mutable_variable_show_stmt() { - ::pg_query::VariableShowStmt* _msg = _internal_mutable_variable_show_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.variable_show_stmt) - return _msg; -} - -// .pg_query.DiscardStmt discard_stmt = 99 [json_name = "DiscardStmt"]; -inline bool Node::_internal_has_discard_stmt() const { - return node_case() == kDiscardStmt; -} -inline bool Node::has_discard_stmt() const { - return _internal_has_discard_stmt(); -} -inline void Node::set_has_discard_stmt() { - _impl_._oneof_case_[0] = kDiscardStmt; -} -inline void Node::clear_discard_stmt() { - if (_internal_has_discard_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.discard_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::DiscardStmt* Node::release_discard_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.discard_stmt) - if (_internal_has_discard_stmt()) { - clear_has_node(); - ::pg_query::DiscardStmt* temp = _impl_.node_.discard_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.discard_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::DiscardStmt& Node::_internal_discard_stmt() const { - return _internal_has_discard_stmt() - ? *_impl_.node_.discard_stmt_ - : reinterpret_cast< ::pg_query::DiscardStmt&>(::pg_query::_DiscardStmt_default_instance_); -} -inline const ::pg_query::DiscardStmt& Node::discard_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.discard_stmt) - return _internal_discard_stmt(); -} -inline ::pg_query::DiscardStmt* Node::unsafe_arena_release_discard_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.discard_stmt) - if (_internal_has_discard_stmt()) { - clear_has_node(); - ::pg_query::DiscardStmt* temp = _impl_.node_.discard_stmt_; - _impl_.node_.discard_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_discard_stmt(::pg_query::DiscardStmt* discard_stmt) { - clear_node(); - if (discard_stmt) { - set_has_discard_stmt(); - _impl_.node_.discard_stmt_ = discard_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.discard_stmt) -} -inline ::pg_query::DiscardStmt* Node::_internal_mutable_discard_stmt() { - if (!_internal_has_discard_stmt()) { - clear_node(); - set_has_discard_stmt(); - _impl_.node_.discard_stmt_ = CreateMaybeMessage< ::pg_query::DiscardStmt >(GetArenaForAllocation()); - } - return _impl_.node_.discard_stmt_; -} -inline ::pg_query::DiscardStmt* Node::mutable_discard_stmt() { - ::pg_query::DiscardStmt* _msg = _internal_mutable_discard_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.discard_stmt) - return _msg; -} - -// .pg_query.CreateTrigStmt create_trig_stmt = 100 [json_name = "CreateTrigStmt"]; -inline bool Node::_internal_has_create_trig_stmt() const { - return node_case() == kCreateTrigStmt; -} -inline bool Node::has_create_trig_stmt() const { - return _internal_has_create_trig_stmt(); -} -inline void Node::set_has_create_trig_stmt() { - _impl_._oneof_case_[0] = kCreateTrigStmt; -} -inline void Node::clear_create_trig_stmt() { - if (_internal_has_create_trig_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_trig_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateTrigStmt* Node::release_create_trig_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_trig_stmt) - if (_internal_has_create_trig_stmt()) { - clear_has_node(); - ::pg_query::CreateTrigStmt* temp = _impl_.node_.create_trig_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_trig_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateTrigStmt& Node::_internal_create_trig_stmt() const { - return _internal_has_create_trig_stmt() - ? *_impl_.node_.create_trig_stmt_ - : reinterpret_cast< ::pg_query::CreateTrigStmt&>(::pg_query::_CreateTrigStmt_default_instance_); -} -inline const ::pg_query::CreateTrigStmt& Node::create_trig_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_trig_stmt) - return _internal_create_trig_stmt(); -} -inline ::pg_query::CreateTrigStmt* Node::unsafe_arena_release_create_trig_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_trig_stmt) - if (_internal_has_create_trig_stmt()) { - clear_has_node(); - ::pg_query::CreateTrigStmt* temp = _impl_.node_.create_trig_stmt_; - _impl_.node_.create_trig_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_trig_stmt(::pg_query::CreateTrigStmt* create_trig_stmt) { - clear_node(); - if (create_trig_stmt) { - set_has_create_trig_stmt(); - _impl_.node_.create_trig_stmt_ = create_trig_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_trig_stmt) -} -inline ::pg_query::CreateTrigStmt* Node::_internal_mutable_create_trig_stmt() { - if (!_internal_has_create_trig_stmt()) { - clear_node(); - set_has_create_trig_stmt(); - _impl_.node_.create_trig_stmt_ = CreateMaybeMessage< ::pg_query::CreateTrigStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_trig_stmt_; -} -inline ::pg_query::CreateTrigStmt* Node::mutable_create_trig_stmt() { - ::pg_query::CreateTrigStmt* _msg = _internal_mutable_create_trig_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_trig_stmt) - return _msg; -} - -// .pg_query.CreatePLangStmt create_plang_stmt = 101 [json_name = "CreatePLangStmt"]; -inline bool Node::_internal_has_create_plang_stmt() const { - return node_case() == kCreatePlangStmt; -} -inline bool Node::has_create_plang_stmt() const { - return _internal_has_create_plang_stmt(); -} -inline void Node::set_has_create_plang_stmt() { - _impl_._oneof_case_[0] = kCreatePlangStmt; -} -inline void Node::clear_create_plang_stmt() { - if (_internal_has_create_plang_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_plang_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreatePLangStmt* Node::release_create_plang_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_plang_stmt) - if (_internal_has_create_plang_stmt()) { - clear_has_node(); - ::pg_query::CreatePLangStmt* temp = _impl_.node_.create_plang_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_plang_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreatePLangStmt& Node::_internal_create_plang_stmt() const { - return _internal_has_create_plang_stmt() - ? *_impl_.node_.create_plang_stmt_ - : reinterpret_cast< ::pg_query::CreatePLangStmt&>(::pg_query::_CreatePLangStmt_default_instance_); -} -inline const ::pg_query::CreatePLangStmt& Node::create_plang_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_plang_stmt) - return _internal_create_plang_stmt(); -} -inline ::pg_query::CreatePLangStmt* Node::unsafe_arena_release_create_plang_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_plang_stmt) - if (_internal_has_create_plang_stmt()) { - clear_has_node(); - ::pg_query::CreatePLangStmt* temp = _impl_.node_.create_plang_stmt_; - _impl_.node_.create_plang_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_plang_stmt(::pg_query::CreatePLangStmt* create_plang_stmt) { - clear_node(); - if (create_plang_stmt) { - set_has_create_plang_stmt(); - _impl_.node_.create_plang_stmt_ = create_plang_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_plang_stmt) -} -inline ::pg_query::CreatePLangStmt* Node::_internal_mutable_create_plang_stmt() { - if (!_internal_has_create_plang_stmt()) { - clear_node(); - set_has_create_plang_stmt(); - _impl_.node_.create_plang_stmt_ = CreateMaybeMessage< ::pg_query::CreatePLangStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_plang_stmt_; -} -inline ::pg_query::CreatePLangStmt* Node::mutable_create_plang_stmt() { - ::pg_query::CreatePLangStmt* _msg = _internal_mutable_create_plang_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_plang_stmt) - return _msg; -} - -// .pg_query.CreateRoleStmt create_role_stmt = 102 [json_name = "CreateRoleStmt"]; -inline bool Node::_internal_has_create_role_stmt() const { - return node_case() == kCreateRoleStmt; -} -inline bool Node::has_create_role_stmt() const { - return _internal_has_create_role_stmt(); -} -inline void Node::set_has_create_role_stmt() { - _impl_._oneof_case_[0] = kCreateRoleStmt; -} -inline void Node::clear_create_role_stmt() { - if (_internal_has_create_role_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_role_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateRoleStmt* Node::release_create_role_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_role_stmt) - if (_internal_has_create_role_stmt()) { - clear_has_node(); - ::pg_query::CreateRoleStmt* temp = _impl_.node_.create_role_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_role_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateRoleStmt& Node::_internal_create_role_stmt() const { - return _internal_has_create_role_stmt() - ? *_impl_.node_.create_role_stmt_ - : reinterpret_cast< ::pg_query::CreateRoleStmt&>(::pg_query::_CreateRoleStmt_default_instance_); -} -inline const ::pg_query::CreateRoleStmt& Node::create_role_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_role_stmt) - return _internal_create_role_stmt(); -} -inline ::pg_query::CreateRoleStmt* Node::unsafe_arena_release_create_role_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_role_stmt) - if (_internal_has_create_role_stmt()) { - clear_has_node(); - ::pg_query::CreateRoleStmt* temp = _impl_.node_.create_role_stmt_; - _impl_.node_.create_role_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_role_stmt(::pg_query::CreateRoleStmt* create_role_stmt) { - clear_node(); - if (create_role_stmt) { - set_has_create_role_stmt(); - _impl_.node_.create_role_stmt_ = create_role_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_role_stmt) -} -inline ::pg_query::CreateRoleStmt* Node::_internal_mutable_create_role_stmt() { - if (!_internal_has_create_role_stmt()) { - clear_node(); - set_has_create_role_stmt(); - _impl_.node_.create_role_stmt_ = CreateMaybeMessage< ::pg_query::CreateRoleStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_role_stmt_; -} -inline ::pg_query::CreateRoleStmt* Node::mutable_create_role_stmt() { - ::pg_query::CreateRoleStmt* _msg = _internal_mutable_create_role_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_role_stmt) - return _msg; -} - -// .pg_query.AlterRoleStmt alter_role_stmt = 103 [json_name = "AlterRoleStmt"]; -inline bool Node::_internal_has_alter_role_stmt() const { - return node_case() == kAlterRoleStmt; -} -inline bool Node::has_alter_role_stmt() const { - return _internal_has_alter_role_stmt(); -} -inline void Node::set_has_alter_role_stmt() { - _impl_._oneof_case_[0] = kAlterRoleStmt; -} -inline void Node::clear_alter_role_stmt() { - if (_internal_has_alter_role_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_role_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterRoleStmt* Node::release_alter_role_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_role_stmt) - if (_internal_has_alter_role_stmt()) { - clear_has_node(); - ::pg_query::AlterRoleStmt* temp = _impl_.node_.alter_role_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_role_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterRoleStmt& Node::_internal_alter_role_stmt() const { - return _internal_has_alter_role_stmt() - ? *_impl_.node_.alter_role_stmt_ - : reinterpret_cast< ::pg_query::AlterRoleStmt&>(::pg_query::_AlterRoleStmt_default_instance_); -} -inline const ::pg_query::AlterRoleStmt& Node::alter_role_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_role_stmt) - return _internal_alter_role_stmt(); -} -inline ::pg_query::AlterRoleStmt* Node::unsafe_arena_release_alter_role_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_role_stmt) - if (_internal_has_alter_role_stmt()) { - clear_has_node(); - ::pg_query::AlterRoleStmt* temp = _impl_.node_.alter_role_stmt_; - _impl_.node_.alter_role_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_role_stmt(::pg_query::AlterRoleStmt* alter_role_stmt) { - clear_node(); - if (alter_role_stmt) { - set_has_alter_role_stmt(); - _impl_.node_.alter_role_stmt_ = alter_role_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_role_stmt) -} -inline ::pg_query::AlterRoleStmt* Node::_internal_mutable_alter_role_stmt() { - if (!_internal_has_alter_role_stmt()) { - clear_node(); - set_has_alter_role_stmt(); - _impl_.node_.alter_role_stmt_ = CreateMaybeMessage< ::pg_query::AlterRoleStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_role_stmt_; -} -inline ::pg_query::AlterRoleStmt* Node::mutable_alter_role_stmt() { - ::pg_query::AlterRoleStmt* _msg = _internal_mutable_alter_role_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_role_stmt) - return _msg; -} - -// .pg_query.DropRoleStmt drop_role_stmt = 104 [json_name = "DropRoleStmt"]; -inline bool Node::_internal_has_drop_role_stmt() const { - return node_case() == kDropRoleStmt; -} -inline bool Node::has_drop_role_stmt() const { - return _internal_has_drop_role_stmt(); -} -inline void Node::set_has_drop_role_stmt() { - _impl_._oneof_case_[0] = kDropRoleStmt; -} -inline void Node::clear_drop_role_stmt() { - if (_internal_has_drop_role_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.drop_role_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::DropRoleStmt* Node::release_drop_role_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.drop_role_stmt) - if (_internal_has_drop_role_stmt()) { - clear_has_node(); - ::pg_query::DropRoleStmt* temp = _impl_.node_.drop_role_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.drop_role_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::DropRoleStmt& Node::_internal_drop_role_stmt() const { - return _internal_has_drop_role_stmt() - ? *_impl_.node_.drop_role_stmt_ - : reinterpret_cast< ::pg_query::DropRoleStmt&>(::pg_query::_DropRoleStmt_default_instance_); -} -inline const ::pg_query::DropRoleStmt& Node::drop_role_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.drop_role_stmt) - return _internal_drop_role_stmt(); -} -inline ::pg_query::DropRoleStmt* Node::unsafe_arena_release_drop_role_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.drop_role_stmt) - if (_internal_has_drop_role_stmt()) { - clear_has_node(); - ::pg_query::DropRoleStmt* temp = _impl_.node_.drop_role_stmt_; - _impl_.node_.drop_role_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_drop_role_stmt(::pg_query::DropRoleStmt* drop_role_stmt) { - clear_node(); - if (drop_role_stmt) { - set_has_drop_role_stmt(); - _impl_.node_.drop_role_stmt_ = drop_role_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.drop_role_stmt) -} -inline ::pg_query::DropRoleStmt* Node::_internal_mutable_drop_role_stmt() { - if (!_internal_has_drop_role_stmt()) { - clear_node(); - set_has_drop_role_stmt(); - _impl_.node_.drop_role_stmt_ = CreateMaybeMessage< ::pg_query::DropRoleStmt >(GetArenaForAllocation()); - } - return _impl_.node_.drop_role_stmt_; -} -inline ::pg_query::DropRoleStmt* Node::mutable_drop_role_stmt() { - ::pg_query::DropRoleStmt* _msg = _internal_mutable_drop_role_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.drop_role_stmt) - return _msg; -} - -// .pg_query.LockStmt lock_stmt = 105 [json_name = "LockStmt"]; -inline bool Node::_internal_has_lock_stmt() const { - return node_case() == kLockStmt; -} -inline bool Node::has_lock_stmt() const { - return _internal_has_lock_stmt(); -} -inline void Node::set_has_lock_stmt() { - _impl_._oneof_case_[0] = kLockStmt; -} -inline void Node::clear_lock_stmt() { - if (_internal_has_lock_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.lock_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::LockStmt* Node::release_lock_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.lock_stmt) - if (_internal_has_lock_stmt()) { - clear_has_node(); - ::pg_query::LockStmt* temp = _impl_.node_.lock_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.lock_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::LockStmt& Node::_internal_lock_stmt() const { - return _internal_has_lock_stmt() - ? *_impl_.node_.lock_stmt_ - : reinterpret_cast< ::pg_query::LockStmt&>(::pg_query::_LockStmt_default_instance_); -} -inline const ::pg_query::LockStmt& Node::lock_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.lock_stmt) - return _internal_lock_stmt(); -} -inline ::pg_query::LockStmt* Node::unsafe_arena_release_lock_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.lock_stmt) - if (_internal_has_lock_stmt()) { - clear_has_node(); - ::pg_query::LockStmt* temp = _impl_.node_.lock_stmt_; - _impl_.node_.lock_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_lock_stmt(::pg_query::LockStmt* lock_stmt) { - clear_node(); - if (lock_stmt) { - set_has_lock_stmt(); - _impl_.node_.lock_stmt_ = lock_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.lock_stmt) -} -inline ::pg_query::LockStmt* Node::_internal_mutable_lock_stmt() { - if (!_internal_has_lock_stmt()) { - clear_node(); - set_has_lock_stmt(); - _impl_.node_.lock_stmt_ = CreateMaybeMessage< ::pg_query::LockStmt >(GetArenaForAllocation()); - } - return _impl_.node_.lock_stmt_; -} -inline ::pg_query::LockStmt* Node::mutable_lock_stmt() { - ::pg_query::LockStmt* _msg = _internal_mutable_lock_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.lock_stmt) - return _msg; -} - -// .pg_query.ConstraintsSetStmt constraints_set_stmt = 106 [json_name = "ConstraintsSetStmt"]; -inline bool Node::_internal_has_constraints_set_stmt() const { - return node_case() == kConstraintsSetStmt; -} -inline bool Node::has_constraints_set_stmt() const { - return _internal_has_constraints_set_stmt(); -} -inline void Node::set_has_constraints_set_stmt() { - _impl_._oneof_case_[0] = kConstraintsSetStmt; -} -inline void Node::clear_constraints_set_stmt() { - if (_internal_has_constraints_set_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.constraints_set_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::ConstraintsSetStmt* Node::release_constraints_set_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.constraints_set_stmt) - if (_internal_has_constraints_set_stmt()) { - clear_has_node(); - ::pg_query::ConstraintsSetStmt* temp = _impl_.node_.constraints_set_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.constraints_set_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::ConstraintsSetStmt& Node::_internal_constraints_set_stmt() const { - return _internal_has_constraints_set_stmt() - ? *_impl_.node_.constraints_set_stmt_ - : reinterpret_cast< ::pg_query::ConstraintsSetStmt&>(::pg_query::_ConstraintsSetStmt_default_instance_); -} -inline const ::pg_query::ConstraintsSetStmt& Node::constraints_set_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.constraints_set_stmt) - return _internal_constraints_set_stmt(); -} -inline ::pg_query::ConstraintsSetStmt* Node::unsafe_arena_release_constraints_set_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.constraints_set_stmt) - if (_internal_has_constraints_set_stmt()) { - clear_has_node(); - ::pg_query::ConstraintsSetStmt* temp = _impl_.node_.constraints_set_stmt_; - _impl_.node_.constraints_set_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_constraints_set_stmt(::pg_query::ConstraintsSetStmt* constraints_set_stmt) { - clear_node(); - if (constraints_set_stmt) { - set_has_constraints_set_stmt(); - _impl_.node_.constraints_set_stmt_ = constraints_set_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.constraints_set_stmt) -} -inline ::pg_query::ConstraintsSetStmt* Node::_internal_mutable_constraints_set_stmt() { - if (!_internal_has_constraints_set_stmt()) { - clear_node(); - set_has_constraints_set_stmt(); - _impl_.node_.constraints_set_stmt_ = CreateMaybeMessage< ::pg_query::ConstraintsSetStmt >(GetArenaForAllocation()); - } - return _impl_.node_.constraints_set_stmt_; -} -inline ::pg_query::ConstraintsSetStmt* Node::mutable_constraints_set_stmt() { - ::pg_query::ConstraintsSetStmt* _msg = _internal_mutable_constraints_set_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.constraints_set_stmt) - return _msg; -} - -// .pg_query.ReindexStmt reindex_stmt = 107 [json_name = "ReindexStmt"]; -inline bool Node::_internal_has_reindex_stmt() const { - return node_case() == kReindexStmt; -} -inline bool Node::has_reindex_stmt() const { - return _internal_has_reindex_stmt(); -} -inline void Node::set_has_reindex_stmt() { - _impl_._oneof_case_[0] = kReindexStmt; -} -inline void Node::clear_reindex_stmt() { - if (_internal_has_reindex_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.reindex_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::ReindexStmt* Node::release_reindex_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.reindex_stmt) - if (_internal_has_reindex_stmt()) { - clear_has_node(); - ::pg_query::ReindexStmt* temp = _impl_.node_.reindex_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.reindex_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::ReindexStmt& Node::_internal_reindex_stmt() const { - return _internal_has_reindex_stmt() - ? *_impl_.node_.reindex_stmt_ - : reinterpret_cast< ::pg_query::ReindexStmt&>(::pg_query::_ReindexStmt_default_instance_); -} -inline const ::pg_query::ReindexStmt& Node::reindex_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.reindex_stmt) - return _internal_reindex_stmt(); -} -inline ::pg_query::ReindexStmt* Node::unsafe_arena_release_reindex_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.reindex_stmt) - if (_internal_has_reindex_stmt()) { - clear_has_node(); - ::pg_query::ReindexStmt* temp = _impl_.node_.reindex_stmt_; - _impl_.node_.reindex_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_reindex_stmt(::pg_query::ReindexStmt* reindex_stmt) { - clear_node(); - if (reindex_stmt) { - set_has_reindex_stmt(); - _impl_.node_.reindex_stmt_ = reindex_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.reindex_stmt) -} -inline ::pg_query::ReindexStmt* Node::_internal_mutable_reindex_stmt() { - if (!_internal_has_reindex_stmt()) { - clear_node(); - set_has_reindex_stmt(); - _impl_.node_.reindex_stmt_ = CreateMaybeMessage< ::pg_query::ReindexStmt >(GetArenaForAllocation()); - } - return _impl_.node_.reindex_stmt_; -} -inline ::pg_query::ReindexStmt* Node::mutable_reindex_stmt() { - ::pg_query::ReindexStmt* _msg = _internal_mutable_reindex_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.reindex_stmt) - return _msg; -} - -// .pg_query.CheckPointStmt check_point_stmt = 108 [json_name = "CheckPointStmt"]; -inline bool Node::_internal_has_check_point_stmt() const { - return node_case() == kCheckPointStmt; -} -inline bool Node::has_check_point_stmt() const { - return _internal_has_check_point_stmt(); -} -inline void Node::set_has_check_point_stmt() { - _impl_._oneof_case_[0] = kCheckPointStmt; -} -inline void Node::clear_check_point_stmt() { - if (_internal_has_check_point_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.check_point_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CheckPointStmt* Node::release_check_point_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.check_point_stmt) - if (_internal_has_check_point_stmt()) { - clear_has_node(); - ::pg_query::CheckPointStmt* temp = _impl_.node_.check_point_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.check_point_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CheckPointStmt& Node::_internal_check_point_stmt() const { - return _internal_has_check_point_stmt() - ? *_impl_.node_.check_point_stmt_ - : reinterpret_cast< ::pg_query::CheckPointStmt&>(::pg_query::_CheckPointStmt_default_instance_); -} -inline const ::pg_query::CheckPointStmt& Node::check_point_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.check_point_stmt) - return _internal_check_point_stmt(); -} -inline ::pg_query::CheckPointStmt* Node::unsafe_arena_release_check_point_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.check_point_stmt) - if (_internal_has_check_point_stmt()) { - clear_has_node(); - ::pg_query::CheckPointStmt* temp = _impl_.node_.check_point_stmt_; - _impl_.node_.check_point_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_check_point_stmt(::pg_query::CheckPointStmt* check_point_stmt) { - clear_node(); - if (check_point_stmt) { - set_has_check_point_stmt(); - _impl_.node_.check_point_stmt_ = check_point_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.check_point_stmt) -} -inline ::pg_query::CheckPointStmt* Node::_internal_mutable_check_point_stmt() { - if (!_internal_has_check_point_stmt()) { - clear_node(); - set_has_check_point_stmt(); - _impl_.node_.check_point_stmt_ = CreateMaybeMessage< ::pg_query::CheckPointStmt >(GetArenaForAllocation()); - } - return _impl_.node_.check_point_stmt_; -} -inline ::pg_query::CheckPointStmt* Node::mutable_check_point_stmt() { - ::pg_query::CheckPointStmt* _msg = _internal_mutable_check_point_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.check_point_stmt) - return _msg; -} - -// .pg_query.CreateSchemaStmt create_schema_stmt = 109 [json_name = "CreateSchemaStmt"]; -inline bool Node::_internal_has_create_schema_stmt() const { - return node_case() == kCreateSchemaStmt; -} -inline bool Node::has_create_schema_stmt() const { - return _internal_has_create_schema_stmt(); -} -inline void Node::set_has_create_schema_stmt() { - _impl_._oneof_case_[0] = kCreateSchemaStmt; -} -inline void Node::clear_create_schema_stmt() { - if (_internal_has_create_schema_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_schema_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateSchemaStmt* Node::release_create_schema_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_schema_stmt) - if (_internal_has_create_schema_stmt()) { - clear_has_node(); - ::pg_query::CreateSchemaStmt* temp = _impl_.node_.create_schema_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_schema_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateSchemaStmt& Node::_internal_create_schema_stmt() const { - return _internal_has_create_schema_stmt() - ? *_impl_.node_.create_schema_stmt_ - : reinterpret_cast< ::pg_query::CreateSchemaStmt&>(::pg_query::_CreateSchemaStmt_default_instance_); -} -inline const ::pg_query::CreateSchemaStmt& Node::create_schema_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_schema_stmt) - return _internal_create_schema_stmt(); -} -inline ::pg_query::CreateSchemaStmt* Node::unsafe_arena_release_create_schema_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_schema_stmt) - if (_internal_has_create_schema_stmt()) { - clear_has_node(); - ::pg_query::CreateSchemaStmt* temp = _impl_.node_.create_schema_stmt_; - _impl_.node_.create_schema_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_schema_stmt(::pg_query::CreateSchemaStmt* create_schema_stmt) { - clear_node(); - if (create_schema_stmt) { - set_has_create_schema_stmt(); - _impl_.node_.create_schema_stmt_ = create_schema_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_schema_stmt) -} -inline ::pg_query::CreateSchemaStmt* Node::_internal_mutable_create_schema_stmt() { - if (!_internal_has_create_schema_stmt()) { - clear_node(); - set_has_create_schema_stmt(); - _impl_.node_.create_schema_stmt_ = CreateMaybeMessage< ::pg_query::CreateSchemaStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_schema_stmt_; -} -inline ::pg_query::CreateSchemaStmt* Node::mutable_create_schema_stmt() { - ::pg_query::CreateSchemaStmt* _msg = _internal_mutable_create_schema_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_schema_stmt) - return _msg; -} - -// .pg_query.AlterDatabaseStmt alter_database_stmt = 110 [json_name = "AlterDatabaseStmt"]; -inline bool Node::_internal_has_alter_database_stmt() const { - return node_case() == kAlterDatabaseStmt; -} -inline bool Node::has_alter_database_stmt() const { - return _internal_has_alter_database_stmt(); -} -inline void Node::set_has_alter_database_stmt() { - _impl_._oneof_case_[0] = kAlterDatabaseStmt; -} -inline void Node::clear_alter_database_stmt() { - if (_internal_has_alter_database_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_database_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterDatabaseStmt* Node::release_alter_database_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_database_stmt) - if (_internal_has_alter_database_stmt()) { - clear_has_node(); - ::pg_query::AlterDatabaseStmt* temp = _impl_.node_.alter_database_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_database_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterDatabaseStmt& Node::_internal_alter_database_stmt() const { - return _internal_has_alter_database_stmt() - ? *_impl_.node_.alter_database_stmt_ - : reinterpret_cast< ::pg_query::AlterDatabaseStmt&>(::pg_query::_AlterDatabaseStmt_default_instance_); -} -inline const ::pg_query::AlterDatabaseStmt& Node::alter_database_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_database_stmt) - return _internal_alter_database_stmt(); -} -inline ::pg_query::AlterDatabaseStmt* Node::unsafe_arena_release_alter_database_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_database_stmt) - if (_internal_has_alter_database_stmt()) { - clear_has_node(); - ::pg_query::AlterDatabaseStmt* temp = _impl_.node_.alter_database_stmt_; - _impl_.node_.alter_database_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_database_stmt(::pg_query::AlterDatabaseStmt* alter_database_stmt) { - clear_node(); - if (alter_database_stmt) { - set_has_alter_database_stmt(); - _impl_.node_.alter_database_stmt_ = alter_database_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_database_stmt) -} -inline ::pg_query::AlterDatabaseStmt* Node::_internal_mutable_alter_database_stmt() { - if (!_internal_has_alter_database_stmt()) { - clear_node(); - set_has_alter_database_stmt(); - _impl_.node_.alter_database_stmt_ = CreateMaybeMessage< ::pg_query::AlterDatabaseStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_database_stmt_; -} -inline ::pg_query::AlterDatabaseStmt* Node::mutable_alter_database_stmt() { - ::pg_query::AlterDatabaseStmt* _msg = _internal_mutable_alter_database_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_database_stmt) - return _msg; -} - -// .pg_query.AlterDatabaseRefreshCollStmt alter_database_refresh_coll_stmt = 111 [json_name = "AlterDatabaseRefreshCollStmt"]; -inline bool Node::_internal_has_alter_database_refresh_coll_stmt() const { - return node_case() == kAlterDatabaseRefreshCollStmt; -} -inline bool Node::has_alter_database_refresh_coll_stmt() const { - return _internal_has_alter_database_refresh_coll_stmt(); -} -inline void Node::set_has_alter_database_refresh_coll_stmt() { - _impl_._oneof_case_[0] = kAlterDatabaseRefreshCollStmt; -} -inline void Node::clear_alter_database_refresh_coll_stmt() { - if (_internal_has_alter_database_refresh_coll_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_database_refresh_coll_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterDatabaseRefreshCollStmt* Node::release_alter_database_refresh_coll_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_database_refresh_coll_stmt) - if (_internal_has_alter_database_refresh_coll_stmt()) { - clear_has_node(); - ::pg_query::AlterDatabaseRefreshCollStmt* temp = _impl_.node_.alter_database_refresh_coll_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_database_refresh_coll_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterDatabaseRefreshCollStmt& Node::_internal_alter_database_refresh_coll_stmt() const { - return _internal_has_alter_database_refresh_coll_stmt() - ? *_impl_.node_.alter_database_refresh_coll_stmt_ - : reinterpret_cast< ::pg_query::AlterDatabaseRefreshCollStmt&>(::pg_query::_AlterDatabaseRefreshCollStmt_default_instance_); -} -inline const ::pg_query::AlterDatabaseRefreshCollStmt& Node::alter_database_refresh_coll_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_database_refresh_coll_stmt) - return _internal_alter_database_refresh_coll_stmt(); -} -inline ::pg_query::AlterDatabaseRefreshCollStmt* Node::unsafe_arena_release_alter_database_refresh_coll_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_database_refresh_coll_stmt) - if (_internal_has_alter_database_refresh_coll_stmt()) { - clear_has_node(); - ::pg_query::AlterDatabaseRefreshCollStmt* temp = _impl_.node_.alter_database_refresh_coll_stmt_; - _impl_.node_.alter_database_refresh_coll_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_database_refresh_coll_stmt(::pg_query::AlterDatabaseRefreshCollStmt* alter_database_refresh_coll_stmt) { - clear_node(); - if (alter_database_refresh_coll_stmt) { - set_has_alter_database_refresh_coll_stmt(); - _impl_.node_.alter_database_refresh_coll_stmt_ = alter_database_refresh_coll_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_database_refresh_coll_stmt) -} -inline ::pg_query::AlterDatabaseRefreshCollStmt* Node::_internal_mutable_alter_database_refresh_coll_stmt() { - if (!_internal_has_alter_database_refresh_coll_stmt()) { - clear_node(); - set_has_alter_database_refresh_coll_stmt(); - _impl_.node_.alter_database_refresh_coll_stmt_ = CreateMaybeMessage< ::pg_query::AlterDatabaseRefreshCollStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_database_refresh_coll_stmt_; -} -inline ::pg_query::AlterDatabaseRefreshCollStmt* Node::mutable_alter_database_refresh_coll_stmt() { - ::pg_query::AlterDatabaseRefreshCollStmt* _msg = _internal_mutable_alter_database_refresh_coll_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_database_refresh_coll_stmt) - return _msg; -} - -// .pg_query.AlterDatabaseSetStmt alter_database_set_stmt = 112 [json_name = "AlterDatabaseSetStmt"]; -inline bool Node::_internal_has_alter_database_set_stmt() const { - return node_case() == kAlterDatabaseSetStmt; -} -inline bool Node::has_alter_database_set_stmt() const { - return _internal_has_alter_database_set_stmt(); -} -inline void Node::set_has_alter_database_set_stmt() { - _impl_._oneof_case_[0] = kAlterDatabaseSetStmt; -} -inline void Node::clear_alter_database_set_stmt() { - if (_internal_has_alter_database_set_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_database_set_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterDatabaseSetStmt* Node::release_alter_database_set_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_database_set_stmt) - if (_internal_has_alter_database_set_stmt()) { - clear_has_node(); - ::pg_query::AlterDatabaseSetStmt* temp = _impl_.node_.alter_database_set_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_database_set_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterDatabaseSetStmt& Node::_internal_alter_database_set_stmt() const { - return _internal_has_alter_database_set_stmt() - ? *_impl_.node_.alter_database_set_stmt_ - : reinterpret_cast< ::pg_query::AlterDatabaseSetStmt&>(::pg_query::_AlterDatabaseSetStmt_default_instance_); -} -inline const ::pg_query::AlterDatabaseSetStmt& Node::alter_database_set_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_database_set_stmt) - return _internal_alter_database_set_stmt(); -} -inline ::pg_query::AlterDatabaseSetStmt* Node::unsafe_arena_release_alter_database_set_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_database_set_stmt) - if (_internal_has_alter_database_set_stmt()) { - clear_has_node(); - ::pg_query::AlterDatabaseSetStmt* temp = _impl_.node_.alter_database_set_stmt_; - _impl_.node_.alter_database_set_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_database_set_stmt(::pg_query::AlterDatabaseSetStmt* alter_database_set_stmt) { - clear_node(); - if (alter_database_set_stmt) { - set_has_alter_database_set_stmt(); - _impl_.node_.alter_database_set_stmt_ = alter_database_set_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_database_set_stmt) -} -inline ::pg_query::AlterDatabaseSetStmt* Node::_internal_mutable_alter_database_set_stmt() { - if (!_internal_has_alter_database_set_stmt()) { - clear_node(); - set_has_alter_database_set_stmt(); - _impl_.node_.alter_database_set_stmt_ = CreateMaybeMessage< ::pg_query::AlterDatabaseSetStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_database_set_stmt_; -} -inline ::pg_query::AlterDatabaseSetStmt* Node::mutable_alter_database_set_stmt() { - ::pg_query::AlterDatabaseSetStmt* _msg = _internal_mutable_alter_database_set_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_database_set_stmt) - return _msg; -} - -// .pg_query.AlterRoleSetStmt alter_role_set_stmt = 113 [json_name = "AlterRoleSetStmt"]; -inline bool Node::_internal_has_alter_role_set_stmt() const { - return node_case() == kAlterRoleSetStmt; -} -inline bool Node::has_alter_role_set_stmt() const { - return _internal_has_alter_role_set_stmt(); -} -inline void Node::set_has_alter_role_set_stmt() { - _impl_._oneof_case_[0] = kAlterRoleSetStmt; -} -inline void Node::clear_alter_role_set_stmt() { - if (_internal_has_alter_role_set_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_role_set_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterRoleSetStmt* Node::release_alter_role_set_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_role_set_stmt) - if (_internal_has_alter_role_set_stmt()) { - clear_has_node(); - ::pg_query::AlterRoleSetStmt* temp = _impl_.node_.alter_role_set_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_role_set_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterRoleSetStmt& Node::_internal_alter_role_set_stmt() const { - return _internal_has_alter_role_set_stmt() - ? *_impl_.node_.alter_role_set_stmt_ - : reinterpret_cast< ::pg_query::AlterRoleSetStmt&>(::pg_query::_AlterRoleSetStmt_default_instance_); -} -inline const ::pg_query::AlterRoleSetStmt& Node::alter_role_set_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_role_set_stmt) - return _internal_alter_role_set_stmt(); -} -inline ::pg_query::AlterRoleSetStmt* Node::unsafe_arena_release_alter_role_set_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_role_set_stmt) - if (_internal_has_alter_role_set_stmt()) { - clear_has_node(); - ::pg_query::AlterRoleSetStmt* temp = _impl_.node_.alter_role_set_stmt_; - _impl_.node_.alter_role_set_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_role_set_stmt(::pg_query::AlterRoleSetStmt* alter_role_set_stmt) { - clear_node(); - if (alter_role_set_stmt) { - set_has_alter_role_set_stmt(); - _impl_.node_.alter_role_set_stmt_ = alter_role_set_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_role_set_stmt) -} -inline ::pg_query::AlterRoleSetStmt* Node::_internal_mutable_alter_role_set_stmt() { - if (!_internal_has_alter_role_set_stmt()) { - clear_node(); - set_has_alter_role_set_stmt(); - _impl_.node_.alter_role_set_stmt_ = CreateMaybeMessage< ::pg_query::AlterRoleSetStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_role_set_stmt_; -} -inline ::pg_query::AlterRoleSetStmt* Node::mutable_alter_role_set_stmt() { - ::pg_query::AlterRoleSetStmt* _msg = _internal_mutable_alter_role_set_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_role_set_stmt) - return _msg; -} - -// .pg_query.CreateConversionStmt create_conversion_stmt = 114 [json_name = "CreateConversionStmt"]; -inline bool Node::_internal_has_create_conversion_stmt() const { - return node_case() == kCreateConversionStmt; -} -inline bool Node::has_create_conversion_stmt() const { - return _internal_has_create_conversion_stmt(); -} -inline void Node::set_has_create_conversion_stmt() { - _impl_._oneof_case_[0] = kCreateConversionStmt; -} -inline void Node::clear_create_conversion_stmt() { - if (_internal_has_create_conversion_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_conversion_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateConversionStmt* Node::release_create_conversion_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_conversion_stmt) - if (_internal_has_create_conversion_stmt()) { - clear_has_node(); - ::pg_query::CreateConversionStmt* temp = _impl_.node_.create_conversion_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_conversion_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateConversionStmt& Node::_internal_create_conversion_stmt() const { - return _internal_has_create_conversion_stmt() - ? *_impl_.node_.create_conversion_stmt_ - : reinterpret_cast< ::pg_query::CreateConversionStmt&>(::pg_query::_CreateConversionStmt_default_instance_); -} -inline const ::pg_query::CreateConversionStmt& Node::create_conversion_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_conversion_stmt) - return _internal_create_conversion_stmt(); -} -inline ::pg_query::CreateConversionStmt* Node::unsafe_arena_release_create_conversion_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_conversion_stmt) - if (_internal_has_create_conversion_stmt()) { - clear_has_node(); - ::pg_query::CreateConversionStmt* temp = _impl_.node_.create_conversion_stmt_; - _impl_.node_.create_conversion_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_conversion_stmt(::pg_query::CreateConversionStmt* create_conversion_stmt) { - clear_node(); - if (create_conversion_stmt) { - set_has_create_conversion_stmt(); - _impl_.node_.create_conversion_stmt_ = create_conversion_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_conversion_stmt) -} -inline ::pg_query::CreateConversionStmt* Node::_internal_mutable_create_conversion_stmt() { - if (!_internal_has_create_conversion_stmt()) { - clear_node(); - set_has_create_conversion_stmt(); - _impl_.node_.create_conversion_stmt_ = CreateMaybeMessage< ::pg_query::CreateConversionStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_conversion_stmt_; -} -inline ::pg_query::CreateConversionStmt* Node::mutable_create_conversion_stmt() { - ::pg_query::CreateConversionStmt* _msg = _internal_mutable_create_conversion_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_conversion_stmt) - return _msg; -} - -// .pg_query.CreateCastStmt create_cast_stmt = 115 [json_name = "CreateCastStmt"]; -inline bool Node::_internal_has_create_cast_stmt() const { - return node_case() == kCreateCastStmt; -} -inline bool Node::has_create_cast_stmt() const { - return _internal_has_create_cast_stmt(); -} -inline void Node::set_has_create_cast_stmt() { - _impl_._oneof_case_[0] = kCreateCastStmt; -} -inline void Node::clear_create_cast_stmt() { - if (_internal_has_create_cast_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_cast_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateCastStmt* Node::release_create_cast_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_cast_stmt) - if (_internal_has_create_cast_stmt()) { - clear_has_node(); - ::pg_query::CreateCastStmt* temp = _impl_.node_.create_cast_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_cast_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateCastStmt& Node::_internal_create_cast_stmt() const { - return _internal_has_create_cast_stmt() - ? *_impl_.node_.create_cast_stmt_ - : reinterpret_cast< ::pg_query::CreateCastStmt&>(::pg_query::_CreateCastStmt_default_instance_); -} -inline const ::pg_query::CreateCastStmt& Node::create_cast_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_cast_stmt) - return _internal_create_cast_stmt(); -} -inline ::pg_query::CreateCastStmt* Node::unsafe_arena_release_create_cast_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_cast_stmt) - if (_internal_has_create_cast_stmt()) { - clear_has_node(); - ::pg_query::CreateCastStmt* temp = _impl_.node_.create_cast_stmt_; - _impl_.node_.create_cast_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_cast_stmt(::pg_query::CreateCastStmt* create_cast_stmt) { - clear_node(); - if (create_cast_stmt) { - set_has_create_cast_stmt(); - _impl_.node_.create_cast_stmt_ = create_cast_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_cast_stmt) -} -inline ::pg_query::CreateCastStmt* Node::_internal_mutable_create_cast_stmt() { - if (!_internal_has_create_cast_stmt()) { - clear_node(); - set_has_create_cast_stmt(); - _impl_.node_.create_cast_stmt_ = CreateMaybeMessage< ::pg_query::CreateCastStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_cast_stmt_; -} -inline ::pg_query::CreateCastStmt* Node::mutable_create_cast_stmt() { - ::pg_query::CreateCastStmt* _msg = _internal_mutable_create_cast_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_cast_stmt) - return _msg; -} - -// .pg_query.CreateOpClassStmt create_op_class_stmt = 116 [json_name = "CreateOpClassStmt"]; -inline bool Node::_internal_has_create_op_class_stmt() const { - return node_case() == kCreateOpClassStmt; -} -inline bool Node::has_create_op_class_stmt() const { - return _internal_has_create_op_class_stmt(); -} -inline void Node::set_has_create_op_class_stmt() { - _impl_._oneof_case_[0] = kCreateOpClassStmt; -} -inline void Node::clear_create_op_class_stmt() { - if (_internal_has_create_op_class_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_op_class_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateOpClassStmt* Node::release_create_op_class_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_op_class_stmt) - if (_internal_has_create_op_class_stmt()) { - clear_has_node(); - ::pg_query::CreateOpClassStmt* temp = _impl_.node_.create_op_class_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_op_class_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateOpClassStmt& Node::_internal_create_op_class_stmt() const { - return _internal_has_create_op_class_stmt() - ? *_impl_.node_.create_op_class_stmt_ - : reinterpret_cast< ::pg_query::CreateOpClassStmt&>(::pg_query::_CreateOpClassStmt_default_instance_); -} -inline const ::pg_query::CreateOpClassStmt& Node::create_op_class_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_op_class_stmt) - return _internal_create_op_class_stmt(); -} -inline ::pg_query::CreateOpClassStmt* Node::unsafe_arena_release_create_op_class_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_op_class_stmt) - if (_internal_has_create_op_class_stmt()) { - clear_has_node(); - ::pg_query::CreateOpClassStmt* temp = _impl_.node_.create_op_class_stmt_; - _impl_.node_.create_op_class_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_op_class_stmt(::pg_query::CreateOpClassStmt* create_op_class_stmt) { - clear_node(); - if (create_op_class_stmt) { - set_has_create_op_class_stmt(); - _impl_.node_.create_op_class_stmt_ = create_op_class_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_op_class_stmt) -} -inline ::pg_query::CreateOpClassStmt* Node::_internal_mutable_create_op_class_stmt() { - if (!_internal_has_create_op_class_stmt()) { - clear_node(); - set_has_create_op_class_stmt(); - _impl_.node_.create_op_class_stmt_ = CreateMaybeMessage< ::pg_query::CreateOpClassStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_op_class_stmt_; -} -inline ::pg_query::CreateOpClassStmt* Node::mutable_create_op_class_stmt() { - ::pg_query::CreateOpClassStmt* _msg = _internal_mutable_create_op_class_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_op_class_stmt) - return _msg; -} - -// .pg_query.CreateOpFamilyStmt create_op_family_stmt = 117 [json_name = "CreateOpFamilyStmt"]; -inline bool Node::_internal_has_create_op_family_stmt() const { - return node_case() == kCreateOpFamilyStmt; -} -inline bool Node::has_create_op_family_stmt() const { - return _internal_has_create_op_family_stmt(); -} -inline void Node::set_has_create_op_family_stmt() { - _impl_._oneof_case_[0] = kCreateOpFamilyStmt; -} -inline void Node::clear_create_op_family_stmt() { - if (_internal_has_create_op_family_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_op_family_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateOpFamilyStmt* Node::release_create_op_family_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_op_family_stmt) - if (_internal_has_create_op_family_stmt()) { - clear_has_node(); - ::pg_query::CreateOpFamilyStmt* temp = _impl_.node_.create_op_family_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_op_family_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateOpFamilyStmt& Node::_internal_create_op_family_stmt() const { - return _internal_has_create_op_family_stmt() - ? *_impl_.node_.create_op_family_stmt_ - : reinterpret_cast< ::pg_query::CreateOpFamilyStmt&>(::pg_query::_CreateOpFamilyStmt_default_instance_); -} -inline const ::pg_query::CreateOpFamilyStmt& Node::create_op_family_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_op_family_stmt) - return _internal_create_op_family_stmt(); -} -inline ::pg_query::CreateOpFamilyStmt* Node::unsafe_arena_release_create_op_family_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_op_family_stmt) - if (_internal_has_create_op_family_stmt()) { - clear_has_node(); - ::pg_query::CreateOpFamilyStmt* temp = _impl_.node_.create_op_family_stmt_; - _impl_.node_.create_op_family_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_op_family_stmt(::pg_query::CreateOpFamilyStmt* create_op_family_stmt) { - clear_node(); - if (create_op_family_stmt) { - set_has_create_op_family_stmt(); - _impl_.node_.create_op_family_stmt_ = create_op_family_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_op_family_stmt) -} -inline ::pg_query::CreateOpFamilyStmt* Node::_internal_mutable_create_op_family_stmt() { - if (!_internal_has_create_op_family_stmt()) { - clear_node(); - set_has_create_op_family_stmt(); - _impl_.node_.create_op_family_stmt_ = CreateMaybeMessage< ::pg_query::CreateOpFamilyStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_op_family_stmt_; -} -inline ::pg_query::CreateOpFamilyStmt* Node::mutable_create_op_family_stmt() { - ::pg_query::CreateOpFamilyStmt* _msg = _internal_mutable_create_op_family_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_op_family_stmt) - return _msg; -} - -// .pg_query.AlterOpFamilyStmt alter_op_family_stmt = 118 [json_name = "AlterOpFamilyStmt"]; -inline bool Node::_internal_has_alter_op_family_stmt() const { - return node_case() == kAlterOpFamilyStmt; -} -inline bool Node::has_alter_op_family_stmt() const { - return _internal_has_alter_op_family_stmt(); -} -inline void Node::set_has_alter_op_family_stmt() { - _impl_._oneof_case_[0] = kAlterOpFamilyStmt; -} -inline void Node::clear_alter_op_family_stmt() { - if (_internal_has_alter_op_family_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_op_family_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterOpFamilyStmt* Node::release_alter_op_family_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_op_family_stmt) - if (_internal_has_alter_op_family_stmt()) { - clear_has_node(); - ::pg_query::AlterOpFamilyStmt* temp = _impl_.node_.alter_op_family_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_op_family_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterOpFamilyStmt& Node::_internal_alter_op_family_stmt() const { - return _internal_has_alter_op_family_stmt() - ? *_impl_.node_.alter_op_family_stmt_ - : reinterpret_cast< ::pg_query::AlterOpFamilyStmt&>(::pg_query::_AlterOpFamilyStmt_default_instance_); -} -inline const ::pg_query::AlterOpFamilyStmt& Node::alter_op_family_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_op_family_stmt) - return _internal_alter_op_family_stmt(); -} -inline ::pg_query::AlterOpFamilyStmt* Node::unsafe_arena_release_alter_op_family_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_op_family_stmt) - if (_internal_has_alter_op_family_stmt()) { - clear_has_node(); - ::pg_query::AlterOpFamilyStmt* temp = _impl_.node_.alter_op_family_stmt_; - _impl_.node_.alter_op_family_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_op_family_stmt(::pg_query::AlterOpFamilyStmt* alter_op_family_stmt) { - clear_node(); - if (alter_op_family_stmt) { - set_has_alter_op_family_stmt(); - _impl_.node_.alter_op_family_stmt_ = alter_op_family_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_op_family_stmt) -} -inline ::pg_query::AlterOpFamilyStmt* Node::_internal_mutable_alter_op_family_stmt() { - if (!_internal_has_alter_op_family_stmt()) { - clear_node(); - set_has_alter_op_family_stmt(); - _impl_.node_.alter_op_family_stmt_ = CreateMaybeMessage< ::pg_query::AlterOpFamilyStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_op_family_stmt_; -} -inline ::pg_query::AlterOpFamilyStmt* Node::mutable_alter_op_family_stmt() { - ::pg_query::AlterOpFamilyStmt* _msg = _internal_mutable_alter_op_family_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_op_family_stmt) - return _msg; -} - -// .pg_query.PrepareStmt prepare_stmt = 119 [json_name = "PrepareStmt"]; -inline bool Node::_internal_has_prepare_stmt() const { - return node_case() == kPrepareStmt; -} -inline bool Node::has_prepare_stmt() const { - return _internal_has_prepare_stmt(); -} -inline void Node::set_has_prepare_stmt() { - _impl_._oneof_case_[0] = kPrepareStmt; -} -inline void Node::clear_prepare_stmt() { - if (_internal_has_prepare_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.prepare_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::PrepareStmt* Node::release_prepare_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.prepare_stmt) - if (_internal_has_prepare_stmt()) { - clear_has_node(); - ::pg_query::PrepareStmt* temp = _impl_.node_.prepare_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.prepare_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::PrepareStmt& Node::_internal_prepare_stmt() const { - return _internal_has_prepare_stmt() - ? *_impl_.node_.prepare_stmt_ - : reinterpret_cast< ::pg_query::PrepareStmt&>(::pg_query::_PrepareStmt_default_instance_); -} -inline const ::pg_query::PrepareStmt& Node::prepare_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.prepare_stmt) - return _internal_prepare_stmt(); -} -inline ::pg_query::PrepareStmt* Node::unsafe_arena_release_prepare_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.prepare_stmt) - if (_internal_has_prepare_stmt()) { - clear_has_node(); - ::pg_query::PrepareStmt* temp = _impl_.node_.prepare_stmt_; - _impl_.node_.prepare_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_prepare_stmt(::pg_query::PrepareStmt* prepare_stmt) { - clear_node(); - if (prepare_stmt) { - set_has_prepare_stmt(); - _impl_.node_.prepare_stmt_ = prepare_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.prepare_stmt) -} -inline ::pg_query::PrepareStmt* Node::_internal_mutable_prepare_stmt() { - if (!_internal_has_prepare_stmt()) { - clear_node(); - set_has_prepare_stmt(); - _impl_.node_.prepare_stmt_ = CreateMaybeMessage< ::pg_query::PrepareStmt >(GetArenaForAllocation()); - } - return _impl_.node_.prepare_stmt_; -} -inline ::pg_query::PrepareStmt* Node::mutable_prepare_stmt() { - ::pg_query::PrepareStmt* _msg = _internal_mutable_prepare_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.prepare_stmt) - return _msg; -} - -// .pg_query.ExecuteStmt execute_stmt = 120 [json_name = "ExecuteStmt"]; -inline bool Node::_internal_has_execute_stmt() const { - return node_case() == kExecuteStmt; -} -inline bool Node::has_execute_stmt() const { - return _internal_has_execute_stmt(); -} -inline void Node::set_has_execute_stmt() { - _impl_._oneof_case_[0] = kExecuteStmt; -} -inline void Node::clear_execute_stmt() { - if (_internal_has_execute_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.execute_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::ExecuteStmt* Node::release_execute_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.execute_stmt) - if (_internal_has_execute_stmt()) { - clear_has_node(); - ::pg_query::ExecuteStmt* temp = _impl_.node_.execute_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.execute_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::ExecuteStmt& Node::_internal_execute_stmt() const { - return _internal_has_execute_stmt() - ? *_impl_.node_.execute_stmt_ - : reinterpret_cast< ::pg_query::ExecuteStmt&>(::pg_query::_ExecuteStmt_default_instance_); -} -inline const ::pg_query::ExecuteStmt& Node::execute_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.execute_stmt) - return _internal_execute_stmt(); -} -inline ::pg_query::ExecuteStmt* Node::unsafe_arena_release_execute_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.execute_stmt) - if (_internal_has_execute_stmt()) { - clear_has_node(); - ::pg_query::ExecuteStmt* temp = _impl_.node_.execute_stmt_; - _impl_.node_.execute_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_execute_stmt(::pg_query::ExecuteStmt* execute_stmt) { - clear_node(); - if (execute_stmt) { - set_has_execute_stmt(); - _impl_.node_.execute_stmt_ = execute_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.execute_stmt) -} -inline ::pg_query::ExecuteStmt* Node::_internal_mutable_execute_stmt() { - if (!_internal_has_execute_stmt()) { - clear_node(); - set_has_execute_stmt(); - _impl_.node_.execute_stmt_ = CreateMaybeMessage< ::pg_query::ExecuteStmt >(GetArenaForAllocation()); - } - return _impl_.node_.execute_stmt_; -} -inline ::pg_query::ExecuteStmt* Node::mutable_execute_stmt() { - ::pg_query::ExecuteStmt* _msg = _internal_mutable_execute_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.execute_stmt) - return _msg; -} - -// .pg_query.DeallocateStmt deallocate_stmt = 121 [json_name = "DeallocateStmt"]; -inline bool Node::_internal_has_deallocate_stmt() const { - return node_case() == kDeallocateStmt; -} -inline bool Node::has_deallocate_stmt() const { - return _internal_has_deallocate_stmt(); -} -inline void Node::set_has_deallocate_stmt() { - _impl_._oneof_case_[0] = kDeallocateStmt; -} -inline void Node::clear_deallocate_stmt() { - if (_internal_has_deallocate_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.deallocate_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::DeallocateStmt* Node::release_deallocate_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.deallocate_stmt) - if (_internal_has_deallocate_stmt()) { - clear_has_node(); - ::pg_query::DeallocateStmt* temp = _impl_.node_.deallocate_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.deallocate_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::DeallocateStmt& Node::_internal_deallocate_stmt() const { - return _internal_has_deallocate_stmt() - ? *_impl_.node_.deallocate_stmt_ - : reinterpret_cast< ::pg_query::DeallocateStmt&>(::pg_query::_DeallocateStmt_default_instance_); -} -inline const ::pg_query::DeallocateStmt& Node::deallocate_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.deallocate_stmt) - return _internal_deallocate_stmt(); -} -inline ::pg_query::DeallocateStmt* Node::unsafe_arena_release_deallocate_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.deallocate_stmt) - if (_internal_has_deallocate_stmt()) { - clear_has_node(); - ::pg_query::DeallocateStmt* temp = _impl_.node_.deallocate_stmt_; - _impl_.node_.deallocate_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_deallocate_stmt(::pg_query::DeallocateStmt* deallocate_stmt) { - clear_node(); - if (deallocate_stmt) { - set_has_deallocate_stmt(); - _impl_.node_.deallocate_stmt_ = deallocate_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.deallocate_stmt) -} -inline ::pg_query::DeallocateStmt* Node::_internal_mutable_deallocate_stmt() { - if (!_internal_has_deallocate_stmt()) { - clear_node(); - set_has_deallocate_stmt(); - _impl_.node_.deallocate_stmt_ = CreateMaybeMessage< ::pg_query::DeallocateStmt >(GetArenaForAllocation()); - } - return _impl_.node_.deallocate_stmt_; -} -inline ::pg_query::DeallocateStmt* Node::mutable_deallocate_stmt() { - ::pg_query::DeallocateStmt* _msg = _internal_mutable_deallocate_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.deallocate_stmt) - return _msg; -} - -// .pg_query.DeclareCursorStmt declare_cursor_stmt = 122 [json_name = "DeclareCursorStmt"]; -inline bool Node::_internal_has_declare_cursor_stmt() const { - return node_case() == kDeclareCursorStmt; -} -inline bool Node::has_declare_cursor_stmt() const { - return _internal_has_declare_cursor_stmt(); -} -inline void Node::set_has_declare_cursor_stmt() { - _impl_._oneof_case_[0] = kDeclareCursorStmt; -} -inline void Node::clear_declare_cursor_stmt() { - if (_internal_has_declare_cursor_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.declare_cursor_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::DeclareCursorStmt* Node::release_declare_cursor_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.declare_cursor_stmt) - if (_internal_has_declare_cursor_stmt()) { - clear_has_node(); - ::pg_query::DeclareCursorStmt* temp = _impl_.node_.declare_cursor_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.declare_cursor_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::DeclareCursorStmt& Node::_internal_declare_cursor_stmt() const { - return _internal_has_declare_cursor_stmt() - ? *_impl_.node_.declare_cursor_stmt_ - : reinterpret_cast< ::pg_query::DeclareCursorStmt&>(::pg_query::_DeclareCursorStmt_default_instance_); -} -inline const ::pg_query::DeclareCursorStmt& Node::declare_cursor_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.declare_cursor_stmt) - return _internal_declare_cursor_stmt(); -} -inline ::pg_query::DeclareCursorStmt* Node::unsafe_arena_release_declare_cursor_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.declare_cursor_stmt) - if (_internal_has_declare_cursor_stmt()) { - clear_has_node(); - ::pg_query::DeclareCursorStmt* temp = _impl_.node_.declare_cursor_stmt_; - _impl_.node_.declare_cursor_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_declare_cursor_stmt(::pg_query::DeclareCursorStmt* declare_cursor_stmt) { - clear_node(); - if (declare_cursor_stmt) { - set_has_declare_cursor_stmt(); - _impl_.node_.declare_cursor_stmt_ = declare_cursor_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.declare_cursor_stmt) -} -inline ::pg_query::DeclareCursorStmt* Node::_internal_mutable_declare_cursor_stmt() { - if (!_internal_has_declare_cursor_stmt()) { - clear_node(); - set_has_declare_cursor_stmt(); - _impl_.node_.declare_cursor_stmt_ = CreateMaybeMessage< ::pg_query::DeclareCursorStmt >(GetArenaForAllocation()); - } - return _impl_.node_.declare_cursor_stmt_; -} -inline ::pg_query::DeclareCursorStmt* Node::mutable_declare_cursor_stmt() { - ::pg_query::DeclareCursorStmt* _msg = _internal_mutable_declare_cursor_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.declare_cursor_stmt) - return _msg; -} - -// .pg_query.CreateTableSpaceStmt create_table_space_stmt = 123 [json_name = "CreateTableSpaceStmt"]; -inline bool Node::_internal_has_create_table_space_stmt() const { - return node_case() == kCreateTableSpaceStmt; -} -inline bool Node::has_create_table_space_stmt() const { - return _internal_has_create_table_space_stmt(); -} -inline void Node::set_has_create_table_space_stmt() { - _impl_._oneof_case_[0] = kCreateTableSpaceStmt; -} -inline void Node::clear_create_table_space_stmt() { - if (_internal_has_create_table_space_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_table_space_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateTableSpaceStmt* Node::release_create_table_space_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_table_space_stmt) - if (_internal_has_create_table_space_stmt()) { - clear_has_node(); - ::pg_query::CreateTableSpaceStmt* temp = _impl_.node_.create_table_space_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_table_space_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateTableSpaceStmt& Node::_internal_create_table_space_stmt() const { - return _internal_has_create_table_space_stmt() - ? *_impl_.node_.create_table_space_stmt_ - : reinterpret_cast< ::pg_query::CreateTableSpaceStmt&>(::pg_query::_CreateTableSpaceStmt_default_instance_); -} -inline const ::pg_query::CreateTableSpaceStmt& Node::create_table_space_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_table_space_stmt) - return _internal_create_table_space_stmt(); -} -inline ::pg_query::CreateTableSpaceStmt* Node::unsafe_arena_release_create_table_space_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_table_space_stmt) - if (_internal_has_create_table_space_stmt()) { - clear_has_node(); - ::pg_query::CreateTableSpaceStmt* temp = _impl_.node_.create_table_space_stmt_; - _impl_.node_.create_table_space_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_table_space_stmt(::pg_query::CreateTableSpaceStmt* create_table_space_stmt) { - clear_node(); - if (create_table_space_stmt) { - set_has_create_table_space_stmt(); - _impl_.node_.create_table_space_stmt_ = create_table_space_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_table_space_stmt) -} -inline ::pg_query::CreateTableSpaceStmt* Node::_internal_mutable_create_table_space_stmt() { - if (!_internal_has_create_table_space_stmt()) { - clear_node(); - set_has_create_table_space_stmt(); - _impl_.node_.create_table_space_stmt_ = CreateMaybeMessage< ::pg_query::CreateTableSpaceStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_table_space_stmt_; -} -inline ::pg_query::CreateTableSpaceStmt* Node::mutable_create_table_space_stmt() { - ::pg_query::CreateTableSpaceStmt* _msg = _internal_mutable_create_table_space_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_table_space_stmt) - return _msg; -} - -// .pg_query.DropTableSpaceStmt drop_table_space_stmt = 124 [json_name = "DropTableSpaceStmt"]; -inline bool Node::_internal_has_drop_table_space_stmt() const { - return node_case() == kDropTableSpaceStmt; -} -inline bool Node::has_drop_table_space_stmt() const { - return _internal_has_drop_table_space_stmt(); -} -inline void Node::set_has_drop_table_space_stmt() { - _impl_._oneof_case_[0] = kDropTableSpaceStmt; -} -inline void Node::clear_drop_table_space_stmt() { - if (_internal_has_drop_table_space_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.drop_table_space_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::DropTableSpaceStmt* Node::release_drop_table_space_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.drop_table_space_stmt) - if (_internal_has_drop_table_space_stmt()) { - clear_has_node(); - ::pg_query::DropTableSpaceStmt* temp = _impl_.node_.drop_table_space_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.drop_table_space_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::DropTableSpaceStmt& Node::_internal_drop_table_space_stmt() const { - return _internal_has_drop_table_space_stmt() - ? *_impl_.node_.drop_table_space_stmt_ - : reinterpret_cast< ::pg_query::DropTableSpaceStmt&>(::pg_query::_DropTableSpaceStmt_default_instance_); -} -inline const ::pg_query::DropTableSpaceStmt& Node::drop_table_space_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.drop_table_space_stmt) - return _internal_drop_table_space_stmt(); -} -inline ::pg_query::DropTableSpaceStmt* Node::unsafe_arena_release_drop_table_space_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.drop_table_space_stmt) - if (_internal_has_drop_table_space_stmt()) { - clear_has_node(); - ::pg_query::DropTableSpaceStmt* temp = _impl_.node_.drop_table_space_stmt_; - _impl_.node_.drop_table_space_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_drop_table_space_stmt(::pg_query::DropTableSpaceStmt* drop_table_space_stmt) { - clear_node(); - if (drop_table_space_stmt) { - set_has_drop_table_space_stmt(); - _impl_.node_.drop_table_space_stmt_ = drop_table_space_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.drop_table_space_stmt) -} -inline ::pg_query::DropTableSpaceStmt* Node::_internal_mutable_drop_table_space_stmt() { - if (!_internal_has_drop_table_space_stmt()) { - clear_node(); - set_has_drop_table_space_stmt(); - _impl_.node_.drop_table_space_stmt_ = CreateMaybeMessage< ::pg_query::DropTableSpaceStmt >(GetArenaForAllocation()); - } - return _impl_.node_.drop_table_space_stmt_; -} -inline ::pg_query::DropTableSpaceStmt* Node::mutable_drop_table_space_stmt() { - ::pg_query::DropTableSpaceStmt* _msg = _internal_mutable_drop_table_space_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.drop_table_space_stmt) - return _msg; -} - -// .pg_query.AlterObjectDependsStmt alter_object_depends_stmt = 125 [json_name = "AlterObjectDependsStmt"]; -inline bool Node::_internal_has_alter_object_depends_stmt() const { - return node_case() == kAlterObjectDependsStmt; -} -inline bool Node::has_alter_object_depends_stmt() const { - return _internal_has_alter_object_depends_stmt(); -} -inline void Node::set_has_alter_object_depends_stmt() { - _impl_._oneof_case_[0] = kAlterObjectDependsStmt; -} -inline void Node::clear_alter_object_depends_stmt() { - if (_internal_has_alter_object_depends_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_object_depends_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterObjectDependsStmt* Node::release_alter_object_depends_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_object_depends_stmt) - if (_internal_has_alter_object_depends_stmt()) { - clear_has_node(); - ::pg_query::AlterObjectDependsStmt* temp = _impl_.node_.alter_object_depends_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_object_depends_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterObjectDependsStmt& Node::_internal_alter_object_depends_stmt() const { - return _internal_has_alter_object_depends_stmt() - ? *_impl_.node_.alter_object_depends_stmt_ - : reinterpret_cast< ::pg_query::AlterObjectDependsStmt&>(::pg_query::_AlterObjectDependsStmt_default_instance_); -} -inline const ::pg_query::AlterObjectDependsStmt& Node::alter_object_depends_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_object_depends_stmt) - return _internal_alter_object_depends_stmt(); -} -inline ::pg_query::AlterObjectDependsStmt* Node::unsafe_arena_release_alter_object_depends_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_object_depends_stmt) - if (_internal_has_alter_object_depends_stmt()) { - clear_has_node(); - ::pg_query::AlterObjectDependsStmt* temp = _impl_.node_.alter_object_depends_stmt_; - _impl_.node_.alter_object_depends_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_object_depends_stmt(::pg_query::AlterObjectDependsStmt* alter_object_depends_stmt) { - clear_node(); - if (alter_object_depends_stmt) { - set_has_alter_object_depends_stmt(); - _impl_.node_.alter_object_depends_stmt_ = alter_object_depends_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_object_depends_stmt) -} -inline ::pg_query::AlterObjectDependsStmt* Node::_internal_mutable_alter_object_depends_stmt() { - if (!_internal_has_alter_object_depends_stmt()) { - clear_node(); - set_has_alter_object_depends_stmt(); - _impl_.node_.alter_object_depends_stmt_ = CreateMaybeMessage< ::pg_query::AlterObjectDependsStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_object_depends_stmt_; -} -inline ::pg_query::AlterObjectDependsStmt* Node::mutable_alter_object_depends_stmt() { - ::pg_query::AlterObjectDependsStmt* _msg = _internal_mutable_alter_object_depends_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_object_depends_stmt) - return _msg; -} - -// .pg_query.AlterObjectSchemaStmt alter_object_schema_stmt = 126 [json_name = "AlterObjectSchemaStmt"]; -inline bool Node::_internal_has_alter_object_schema_stmt() const { - return node_case() == kAlterObjectSchemaStmt; -} -inline bool Node::has_alter_object_schema_stmt() const { - return _internal_has_alter_object_schema_stmt(); -} -inline void Node::set_has_alter_object_schema_stmt() { - _impl_._oneof_case_[0] = kAlterObjectSchemaStmt; -} -inline void Node::clear_alter_object_schema_stmt() { - if (_internal_has_alter_object_schema_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_object_schema_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterObjectSchemaStmt* Node::release_alter_object_schema_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_object_schema_stmt) - if (_internal_has_alter_object_schema_stmt()) { - clear_has_node(); - ::pg_query::AlterObjectSchemaStmt* temp = _impl_.node_.alter_object_schema_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_object_schema_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterObjectSchemaStmt& Node::_internal_alter_object_schema_stmt() const { - return _internal_has_alter_object_schema_stmt() - ? *_impl_.node_.alter_object_schema_stmt_ - : reinterpret_cast< ::pg_query::AlterObjectSchemaStmt&>(::pg_query::_AlterObjectSchemaStmt_default_instance_); -} -inline const ::pg_query::AlterObjectSchemaStmt& Node::alter_object_schema_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_object_schema_stmt) - return _internal_alter_object_schema_stmt(); -} -inline ::pg_query::AlterObjectSchemaStmt* Node::unsafe_arena_release_alter_object_schema_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_object_schema_stmt) - if (_internal_has_alter_object_schema_stmt()) { - clear_has_node(); - ::pg_query::AlterObjectSchemaStmt* temp = _impl_.node_.alter_object_schema_stmt_; - _impl_.node_.alter_object_schema_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_object_schema_stmt(::pg_query::AlterObjectSchemaStmt* alter_object_schema_stmt) { - clear_node(); - if (alter_object_schema_stmt) { - set_has_alter_object_schema_stmt(); - _impl_.node_.alter_object_schema_stmt_ = alter_object_schema_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_object_schema_stmt) -} -inline ::pg_query::AlterObjectSchemaStmt* Node::_internal_mutable_alter_object_schema_stmt() { - if (!_internal_has_alter_object_schema_stmt()) { - clear_node(); - set_has_alter_object_schema_stmt(); - _impl_.node_.alter_object_schema_stmt_ = CreateMaybeMessage< ::pg_query::AlterObjectSchemaStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_object_schema_stmt_; -} -inline ::pg_query::AlterObjectSchemaStmt* Node::mutable_alter_object_schema_stmt() { - ::pg_query::AlterObjectSchemaStmt* _msg = _internal_mutable_alter_object_schema_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_object_schema_stmt) - return _msg; -} - -// .pg_query.AlterOwnerStmt alter_owner_stmt = 127 [json_name = "AlterOwnerStmt"]; -inline bool Node::_internal_has_alter_owner_stmt() const { - return node_case() == kAlterOwnerStmt; -} -inline bool Node::has_alter_owner_stmt() const { - return _internal_has_alter_owner_stmt(); -} -inline void Node::set_has_alter_owner_stmt() { - _impl_._oneof_case_[0] = kAlterOwnerStmt; -} -inline void Node::clear_alter_owner_stmt() { - if (_internal_has_alter_owner_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_owner_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterOwnerStmt* Node::release_alter_owner_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_owner_stmt) - if (_internal_has_alter_owner_stmt()) { - clear_has_node(); - ::pg_query::AlterOwnerStmt* temp = _impl_.node_.alter_owner_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_owner_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterOwnerStmt& Node::_internal_alter_owner_stmt() const { - return _internal_has_alter_owner_stmt() - ? *_impl_.node_.alter_owner_stmt_ - : reinterpret_cast< ::pg_query::AlterOwnerStmt&>(::pg_query::_AlterOwnerStmt_default_instance_); -} -inline const ::pg_query::AlterOwnerStmt& Node::alter_owner_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_owner_stmt) - return _internal_alter_owner_stmt(); -} -inline ::pg_query::AlterOwnerStmt* Node::unsafe_arena_release_alter_owner_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_owner_stmt) - if (_internal_has_alter_owner_stmt()) { - clear_has_node(); - ::pg_query::AlterOwnerStmt* temp = _impl_.node_.alter_owner_stmt_; - _impl_.node_.alter_owner_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_owner_stmt(::pg_query::AlterOwnerStmt* alter_owner_stmt) { - clear_node(); - if (alter_owner_stmt) { - set_has_alter_owner_stmt(); - _impl_.node_.alter_owner_stmt_ = alter_owner_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_owner_stmt) -} -inline ::pg_query::AlterOwnerStmt* Node::_internal_mutable_alter_owner_stmt() { - if (!_internal_has_alter_owner_stmt()) { - clear_node(); - set_has_alter_owner_stmt(); - _impl_.node_.alter_owner_stmt_ = CreateMaybeMessage< ::pg_query::AlterOwnerStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_owner_stmt_; -} -inline ::pg_query::AlterOwnerStmt* Node::mutable_alter_owner_stmt() { - ::pg_query::AlterOwnerStmt* _msg = _internal_mutable_alter_owner_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_owner_stmt) - return _msg; -} - -// .pg_query.AlterOperatorStmt alter_operator_stmt = 128 [json_name = "AlterOperatorStmt"]; -inline bool Node::_internal_has_alter_operator_stmt() const { - return node_case() == kAlterOperatorStmt; -} -inline bool Node::has_alter_operator_stmt() const { - return _internal_has_alter_operator_stmt(); -} -inline void Node::set_has_alter_operator_stmt() { - _impl_._oneof_case_[0] = kAlterOperatorStmt; -} -inline void Node::clear_alter_operator_stmt() { - if (_internal_has_alter_operator_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_operator_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterOperatorStmt* Node::release_alter_operator_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_operator_stmt) - if (_internal_has_alter_operator_stmt()) { - clear_has_node(); - ::pg_query::AlterOperatorStmt* temp = _impl_.node_.alter_operator_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_operator_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterOperatorStmt& Node::_internal_alter_operator_stmt() const { - return _internal_has_alter_operator_stmt() - ? *_impl_.node_.alter_operator_stmt_ - : reinterpret_cast< ::pg_query::AlterOperatorStmt&>(::pg_query::_AlterOperatorStmt_default_instance_); -} -inline const ::pg_query::AlterOperatorStmt& Node::alter_operator_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_operator_stmt) - return _internal_alter_operator_stmt(); -} -inline ::pg_query::AlterOperatorStmt* Node::unsafe_arena_release_alter_operator_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_operator_stmt) - if (_internal_has_alter_operator_stmt()) { - clear_has_node(); - ::pg_query::AlterOperatorStmt* temp = _impl_.node_.alter_operator_stmt_; - _impl_.node_.alter_operator_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_operator_stmt(::pg_query::AlterOperatorStmt* alter_operator_stmt) { - clear_node(); - if (alter_operator_stmt) { - set_has_alter_operator_stmt(); - _impl_.node_.alter_operator_stmt_ = alter_operator_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_operator_stmt) -} -inline ::pg_query::AlterOperatorStmt* Node::_internal_mutable_alter_operator_stmt() { - if (!_internal_has_alter_operator_stmt()) { - clear_node(); - set_has_alter_operator_stmt(); - _impl_.node_.alter_operator_stmt_ = CreateMaybeMessage< ::pg_query::AlterOperatorStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_operator_stmt_; -} -inline ::pg_query::AlterOperatorStmt* Node::mutable_alter_operator_stmt() { - ::pg_query::AlterOperatorStmt* _msg = _internal_mutable_alter_operator_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_operator_stmt) - return _msg; -} - -// .pg_query.AlterTypeStmt alter_type_stmt = 129 [json_name = "AlterTypeStmt"]; -inline bool Node::_internal_has_alter_type_stmt() const { - return node_case() == kAlterTypeStmt; -} -inline bool Node::has_alter_type_stmt() const { - return _internal_has_alter_type_stmt(); -} -inline void Node::set_has_alter_type_stmt() { - _impl_._oneof_case_[0] = kAlterTypeStmt; -} -inline void Node::clear_alter_type_stmt() { - if (_internal_has_alter_type_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_type_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterTypeStmt* Node::release_alter_type_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_type_stmt) - if (_internal_has_alter_type_stmt()) { - clear_has_node(); - ::pg_query::AlterTypeStmt* temp = _impl_.node_.alter_type_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_type_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterTypeStmt& Node::_internal_alter_type_stmt() const { - return _internal_has_alter_type_stmt() - ? *_impl_.node_.alter_type_stmt_ - : reinterpret_cast< ::pg_query::AlterTypeStmt&>(::pg_query::_AlterTypeStmt_default_instance_); -} -inline const ::pg_query::AlterTypeStmt& Node::alter_type_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_type_stmt) - return _internal_alter_type_stmt(); -} -inline ::pg_query::AlterTypeStmt* Node::unsafe_arena_release_alter_type_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_type_stmt) - if (_internal_has_alter_type_stmt()) { - clear_has_node(); - ::pg_query::AlterTypeStmt* temp = _impl_.node_.alter_type_stmt_; - _impl_.node_.alter_type_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_type_stmt(::pg_query::AlterTypeStmt* alter_type_stmt) { - clear_node(); - if (alter_type_stmt) { - set_has_alter_type_stmt(); - _impl_.node_.alter_type_stmt_ = alter_type_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_type_stmt) -} -inline ::pg_query::AlterTypeStmt* Node::_internal_mutable_alter_type_stmt() { - if (!_internal_has_alter_type_stmt()) { - clear_node(); - set_has_alter_type_stmt(); - _impl_.node_.alter_type_stmt_ = CreateMaybeMessage< ::pg_query::AlterTypeStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_type_stmt_; -} -inline ::pg_query::AlterTypeStmt* Node::mutable_alter_type_stmt() { - ::pg_query::AlterTypeStmt* _msg = _internal_mutable_alter_type_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_type_stmt) - return _msg; -} - -// .pg_query.DropOwnedStmt drop_owned_stmt = 130 [json_name = "DropOwnedStmt"]; -inline bool Node::_internal_has_drop_owned_stmt() const { - return node_case() == kDropOwnedStmt; -} -inline bool Node::has_drop_owned_stmt() const { - return _internal_has_drop_owned_stmt(); -} -inline void Node::set_has_drop_owned_stmt() { - _impl_._oneof_case_[0] = kDropOwnedStmt; -} -inline void Node::clear_drop_owned_stmt() { - if (_internal_has_drop_owned_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.drop_owned_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::DropOwnedStmt* Node::release_drop_owned_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.drop_owned_stmt) - if (_internal_has_drop_owned_stmt()) { - clear_has_node(); - ::pg_query::DropOwnedStmt* temp = _impl_.node_.drop_owned_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.drop_owned_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::DropOwnedStmt& Node::_internal_drop_owned_stmt() const { - return _internal_has_drop_owned_stmt() - ? *_impl_.node_.drop_owned_stmt_ - : reinterpret_cast< ::pg_query::DropOwnedStmt&>(::pg_query::_DropOwnedStmt_default_instance_); -} -inline const ::pg_query::DropOwnedStmt& Node::drop_owned_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.drop_owned_stmt) - return _internal_drop_owned_stmt(); -} -inline ::pg_query::DropOwnedStmt* Node::unsafe_arena_release_drop_owned_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.drop_owned_stmt) - if (_internal_has_drop_owned_stmt()) { - clear_has_node(); - ::pg_query::DropOwnedStmt* temp = _impl_.node_.drop_owned_stmt_; - _impl_.node_.drop_owned_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_drop_owned_stmt(::pg_query::DropOwnedStmt* drop_owned_stmt) { - clear_node(); - if (drop_owned_stmt) { - set_has_drop_owned_stmt(); - _impl_.node_.drop_owned_stmt_ = drop_owned_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.drop_owned_stmt) -} -inline ::pg_query::DropOwnedStmt* Node::_internal_mutable_drop_owned_stmt() { - if (!_internal_has_drop_owned_stmt()) { - clear_node(); - set_has_drop_owned_stmt(); - _impl_.node_.drop_owned_stmt_ = CreateMaybeMessage< ::pg_query::DropOwnedStmt >(GetArenaForAllocation()); - } - return _impl_.node_.drop_owned_stmt_; -} -inline ::pg_query::DropOwnedStmt* Node::mutable_drop_owned_stmt() { - ::pg_query::DropOwnedStmt* _msg = _internal_mutable_drop_owned_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.drop_owned_stmt) - return _msg; -} - -// .pg_query.ReassignOwnedStmt reassign_owned_stmt = 131 [json_name = "ReassignOwnedStmt"]; -inline bool Node::_internal_has_reassign_owned_stmt() const { - return node_case() == kReassignOwnedStmt; -} -inline bool Node::has_reassign_owned_stmt() const { - return _internal_has_reassign_owned_stmt(); -} -inline void Node::set_has_reassign_owned_stmt() { - _impl_._oneof_case_[0] = kReassignOwnedStmt; -} -inline void Node::clear_reassign_owned_stmt() { - if (_internal_has_reassign_owned_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.reassign_owned_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::ReassignOwnedStmt* Node::release_reassign_owned_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.reassign_owned_stmt) - if (_internal_has_reassign_owned_stmt()) { - clear_has_node(); - ::pg_query::ReassignOwnedStmt* temp = _impl_.node_.reassign_owned_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.reassign_owned_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::ReassignOwnedStmt& Node::_internal_reassign_owned_stmt() const { - return _internal_has_reassign_owned_stmt() - ? *_impl_.node_.reassign_owned_stmt_ - : reinterpret_cast< ::pg_query::ReassignOwnedStmt&>(::pg_query::_ReassignOwnedStmt_default_instance_); -} -inline const ::pg_query::ReassignOwnedStmt& Node::reassign_owned_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.reassign_owned_stmt) - return _internal_reassign_owned_stmt(); -} -inline ::pg_query::ReassignOwnedStmt* Node::unsafe_arena_release_reassign_owned_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.reassign_owned_stmt) - if (_internal_has_reassign_owned_stmt()) { - clear_has_node(); - ::pg_query::ReassignOwnedStmt* temp = _impl_.node_.reassign_owned_stmt_; - _impl_.node_.reassign_owned_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_reassign_owned_stmt(::pg_query::ReassignOwnedStmt* reassign_owned_stmt) { - clear_node(); - if (reassign_owned_stmt) { - set_has_reassign_owned_stmt(); - _impl_.node_.reassign_owned_stmt_ = reassign_owned_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.reassign_owned_stmt) -} -inline ::pg_query::ReassignOwnedStmt* Node::_internal_mutable_reassign_owned_stmt() { - if (!_internal_has_reassign_owned_stmt()) { - clear_node(); - set_has_reassign_owned_stmt(); - _impl_.node_.reassign_owned_stmt_ = CreateMaybeMessage< ::pg_query::ReassignOwnedStmt >(GetArenaForAllocation()); - } - return _impl_.node_.reassign_owned_stmt_; -} -inline ::pg_query::ReassignOwnedStmt* Node::mutable_reassign_owned_stmt() { - ::pg_query::ReassignOwnedStmt* _msg = _internal_mutable_reassign_owned_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.reassign_owned_stmt) - return _msg; -} - -// .pg_query.CompositeTypeStmt composite_type_stmt = 132 [json_name = "CompositeTypeStmt"]; -inline bool Node::_internal_has_composite_type_stmt() const { - return node_case() == kCompositeTypeStmt; -} -inline bool Node::has_composite_type_stmt() const { - return _internal_has_composite_type_stmt(); -} -inline void Node::set_has_composite_type_stmt() { - _impl_._oneof_case_[0] = kCompositeTypeStmt; -} -inline void Node::clear_composite_type_stmt() { - if (_internal_has_composite_type_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.composite_type_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CompositeTypeStmt* Node::release_composite_type_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.composite_type_stmt) - if (_internal_has_composite_type_stmt()) { - clear_has_node(); - ::pg_query::CompositeTypeStmt* temp = _impl_.node_.composite_type_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.composite_type_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CompositeTypeStmt& Node::_internal_composite_type_stmt() const { - return _internal_has_composite_type_stmt() - ? *_impl_.node_.composite_type_stmt_ - : reinterpret_cast< ::pg_query::CompositeTypeStmt&>(::pg_query::_CompositeTypeStmt_default_instance_); -} -inline const ::pg_query::CompositeTypeStmt& Node::composite_type_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.composite_type_stmt) - return _internal_composite_type_stmt(); -} -inline ::pg_query::CompositeTypeStmt* Node::unsafe_arena_release_composite_type_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.composite_type_stmt) - if (_internal_has_composite_type_stmt()) { - clear_has_node(); - ::pg_query::CompositeTypeStmt* temp = _impl_.node_.composite_type_stmt_; - _impl_.node_.composite_type_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_composite_type_stmt(::pg_query::CompositeTypeStmt* composite_type_stmt) { - clear_node(); - if (composite_type_stmt) { - set_has_composite_type_stmt(); - _impl_.node_.composite_type_stmt_ = composite_type_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.composite_type_stmt) -} -inline ::pg_query::CompositeTypeStmt* Node::_internal_mutable_composite_type_stmt() { - if (!_internal_has_composite_type_stmt()) { - clear_node(); - set_has_composite_type_stmt(); - _impl_.node_.composite_type_stmt_ = CreateMaybeMessage< ::pg_query::CompositeTypeStmt >(GetArenaForAllocation()); - } - return _impl_.node_.composite_type_stmt_; -} -inline ::pg_query::CompositeTypeStmt* Node::mutable_composite_type_stmt() { - ::pg_query::CompositeTypeStmt* _msg = _internal_mutable_composite_type_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.composite_type_stmt) - return _msg; -} - -// .pg_query.CreateEnumStmt create_enum_stmt = 133 [json_name = "CreateEnumStmt"]; -inline bool Node::_internal_has_create_enum_stmt() const { - return node_case() == kCreateEnumStmt; -} -inline bool Node::has_create_enum_stmt() const { - return _internal_has_create_enum_stmt(); -} -inline void Node::set_has_create_enum_stmt() { - _impl_._oneof_case_[0] = kCreateEnumStmt; -} -inline void Node::clear_create_enum_stmt() { - if (_internal_has_create_enum_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_enum_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateEnumStmt* Node::release_create_enum_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_enum_stmt) - if (_internal_has_create_enum_stmt()) { - clear_has_node(); - ::pg_query::CreateEnumStmt* temp = _impl_.node_.create_enum_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_enum_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateEnumStmt& Node::_internal_create_enum_stmt() const { - return _internal_has_create_enum_stmt() - ? *_impl_.node_.create_enum_stmt_ - : reinterpret_cast< ::pg_query::CreateEnumStmt&>(::pg_query::_CreateEnumStmt_default_instance_); -} -inline const ::pg_query::CreateEnumStmt& Node::create_enum_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_enum_stmt) - return _internal_create_enum_stmt(); -} -inline ::pg_query::CreateEnumStmt* Node::unsafe_arena_release_create_enum_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_enum_stmt) - if (_internal_has_create_enum_stmt()) { - clear_has_node(); - ::pg_query::CreateEnumStmt* temp = _impl_.node_.create_enum_stmt_; - _impl_.node_.create_enum_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_enum_stmt(::pg_query::CreateEnumStmt* create_enum_stmt) { - clear_node(); - if (create_enum_stmt) { - set_has_create_enum_stmt(); - _impl_.node_.create_enum_stmt_ = create_enum_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_enum_stmt) -} -inline ::pg_query::CreateEnumStmt* Node::_internal_mutable_create_enum_stmt() { - if (!_internal_has_create_enum_stmt()) { - clear_node(); - set_has_create_enum_stmt(); - _impl_.node_.create_enum_stmt_ = CreateMaybeMessage< ::pg_query::CreateEnumStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_enum_stmt_; -} -inline ::pg_query::CreateEnumStmt* Node::mutable_create_enum_stmt() { - ::pg_query::CreateEnumStmt* _msg = _internal_mutable_create_enum_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_enum_stmt) - return _msg; -} - -// .pg_query.CreateRangeStmt create_range_stmt = 134 [json_name = "CreateRangeStmt"]; -inline bool Node::_internal_has_create_range_stmt() const { - return node_case() == kCreateRangeStmt; -} -inline bool Node::has_create_range_stmt() const { - return _internal_has_create_range_stmt(); -} -inline void Node::set_has_create_range_stmt() { - _impl_._oneof_case_[0] = kCreateRangeStmt; -} -inline void Node::clear_create_range_stmt() { - if (_internal_has_create_range_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_range_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateRangeStmt* Node::release_create_range_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_range_stmt) - if (_internal_has_create_range_stmt()) { - clear_has_node(); - ::pg_query::CreateRangeStmt* temp = _impl_.node_.create_range_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_range_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateRangeStmt& Node::_internal_create_range_stmt() const { - return _internal_has_create_range_stmt() - ? *_impl_.node_.create_range_stmt_ - : reinterpret_cast< ::pg_query::CreateRangeStmt&>(::pg_query::_CreateRangeStmt_default_instance_); -} -inline const ::pg_query::CreateRangeStmt& Node::create_range_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_range_stmt) - return _internal_create_range_stmt(); -} -inline ::pg_query::CreateRangeStmt* Node::unsafe_arena_release_create_range_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_range_stmt) - if (_internal_has_create_range_stmt()) { - clear_has_node(); - ::pg_query::CreateRangeStmt* temp = _impl_.node_.create_range_stmt_; - _impl_.node_.create_range_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_range_stmt(::pg_query::CreateRangeStmt* create_range_stmt) { - clear_node(); - if (create_range_stmt) { - set_has_create_range_stmt(); - _impl_.node_.create_range_stmt_ = create_range_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_range_stmt) -} -inline ::pg_query::CreateRangeStmt* Node::_internal_mutable_create_range_stmt() { - if (!_internal_has_create_range_stmt()) { - clear_node(); - set_has_create_range_stmt(); - _impl_.node_.create_range_stmt_ = CreateMaybeMessage< ::pg_query::CreateRangeStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_range_stmt_; -} -inline ::pg_query::CreateRangeStmt* Node::mutable_create_range_stmt() { - ::pg_query::CreateRangeStmt* _msg = _internal_mutable_create_range_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_range_stmt) - return _msg; -} - -// .pg_query.AlterEnumStmt alter_enum_stmt = 135 [json_name = "AlterEnumStmt"]; -inline bool Node::_internal_has_alter_enum_stmt() const { - return node_case() == kAlterEnumStmt; -} -inline bool Node::has_alter_enum_stmt() const { - return _internal_has_alter_enum_stmt(); -} -inline void Node::set_has_alter_enum_stmt() { - _impl_._oneof_case_[0] = kAlterEnumStmt; -} -inline void Node::clear_alter_enum_stmt() { - if (_internal_has_alter_enum_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_enum_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterEnumStmt* Node::release_alter_enum_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_enum_stmt) - if (_internal_has_alter_enum_stmt()) { - clear_has_node(); - ::pg_query::AlterEnumStmt* temp = _impl_.node_.alter_enum_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_enum_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterEnumStmt& Node::_internal_alter_enum_stmt() const { - return _internal_has_alter_enum_stmt() - ? *_impl_.node_.alter_enum_stmt_ - : reinterpret_cast< ::pg_query::AlterEnumStmt&>(::pg_query::_AlterEnumStmt_default_instance_); -} -inline const ::pg_query::AlterEnumStmt& Node::alter_enum_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_enum_stmt) - return _internal_alter_enum_stmt(); -} -inline ::pg_query::AlterEnumStmt* Node::unsafe_arena_release_alter_enum_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_enum_stmt) - if (_internal_has_alter_enum_stmt()) { - clear_has_node(); - ::pg_query::AlterEnumStmt* temp = _impl_.node_.alter_enum_stmt_; - _impl_.node_.alter_enum_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_enum_stmt(::pg_query::AlterEnumStmt* alter_enum_stmt) { - clear_node(); - if (alter_enum_stmt) { - set_has_alter_enum_stmt(); - _impl_.node_.alter_enum_stmt_ = alter_enum_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_enum_stmt) -} -inline ::pg_query::AlterEnumStmt* Node::_internal_mutable_alter_enum_stmt() { - if (!_internal_has_alter_enum_stmt()) { - clear_node(); - set_has_alter_enum_stmt(); - _impl_.node_.alter_enum_stmt_ = CreateMaybeMessage< ::pg_query::AlterEnumStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_enum_stmt_; -} -inline ::pg_query::AlterEnumStmt* Node::mutable_alter_enum_stmt() { - ::pg_query::AlterEnumStmt* _msg = _internal_mutable_alter_enum_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_enum_stmt) - return _msg; -} - -// .pg_query.AlterTSDictionaryStmt alter_tsdictionary_stmt = 136 [json_name = "AlterTSDictionaryStmt"]; -inline bool Node::_internal_has_alter_tsdictionary_stmt() const { - return node_case() == kAlterTsdictionaryStmt; -} -inline bool Node::has_alter_tsdictionary_stmt() const { - return _internal_has_alter_tsdictionary_stmt(); -} -inline void Node::set_has_alter_tsdictionary_stmt() { - _impl_._oneof_case_[0] = kAlterTsdictionaryStmt; -} -inline void Node::clear_alter_tsdictionary_stmt() { - if (_internal_has_alter_tsdictionary_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_tsdictionary_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterTSDictionaryStmt* Node::release_alter_tsdictionary_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_tsdictionary_stmt) - if (_internal_has_alter_tsdictionary_stmt()) { - clear_has_node(); - ::pg_query::AlterTSDictionaryStmt* temp = _impl_.node_.alter_tsdictionary_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_tsdictionary_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterTSDictionaryStmt& Node::_internal_alter_tsdictionary_stmt() const { - return _internal_has_alter_tsdictionary_stmt() - ? *_impl_.node_.alter_tsdictionary_stmt_ - : reinterpret_cast< ::pg_query::AlterTSDictionaryStmt&>(::pg_query::_AlterTSDictionaryStmt_default_instance_); -} -inline const ::pg_query::AlterTSDictionaryStmt& Node::alter_tsdictionary_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_tsdictionary_stmt) - return _internal_alter_tsdictionary_stmt(); -} -inline ::pg_query::AlterTSDictionaryStmt* Node::unsafe_arena_release_alter_tsdictionary_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_tsdictionary_stmt) - if (_internal_has_alter_tsdictionary_stmt()) { - clear_has_node(); - ::pg_query::AlterTSDictionaryStmt* temp = _impl_.node_.alter_tsdictionary_stmt_; - _impl_.node_.alter_tsdictionary_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_tsdictionary_stmt(::pg_query::AlterTSDictionaryStmt* alter_tsdictionary_stmt) { - clear_node(); - if (alter_tsdictionary_stmt) { - set_has_alter_tsdictionary_stmt(); - _impl_.node_.alter_tsdictionary_stmt_ = alter_tsdictionary_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_tsdictionary_stmt) -} -inline ::pg_query::AlterTSDictionaryStmt* Node::_internal_mutable_alter_tsdictionary_stmt() { - if (!_internal_has_alter_tsdictionary_stmt()) { - clear_node(); - set_has_alter_tsdictionary_stmt(); - _impl_.node_.alter_tsdictionary_stmt_ = CreateMaybeMessage< ::pg_query::AlterTSDictionaryStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_tsdictionary_stmt_; -} -inline ::pg_query::AlterTSDictionaryStmt* Node::mutable_alter_tsdictionary_stmt() { - ::pg_query::AlterTSDictionaryStmt* _msg = _internal_mutable_alter_tsdictionary_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_tsdictionary_stmt) - return _msg; -} - -// .pg_query.AlterTSConfigurationStmt alter_tsconfiguration_stmt = 137 [json_name = "AlterTSConfigurationStmt"]; -inline bool Node::_internal_has_alter_tsconfiguration_stmt() const { - return node_case() == kAlterTsconfigurationStmt; -} -inline bool Node::has_alter_tsconfiguration_stmt() const { - return _internal_has_alter_tsconfiguration_stmt(); -} -inline void Node::set_has_alter_tsconfiguration_stmt() { - _impl_._oneof_case_[0] = kAlterTsconfigurationStmt; -} -inline void Node::clear_alter_tsconfiguration_stmt() { - if (_internal_has_alter_tsconfiguration_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_tsconfiguration_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterTSConfigurationStmt* Node::release_alter_tsconfiguration_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_tsconfiguration_stmt) - if (_internal_has_alter_tsconfiguration_stmt()) { - clear_has_node(); - ::pg_query::AlterTSConfigurationStmt* temp = _impl_.node_.alter_tsconfiguration_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_tsconfiguration_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterTSConfigurationStmt& Node::_internal_alter_tsconfiguration_stmt() const { - return _internal_has_alter_tsconfiguration_stmt() - ? *_impl_.node_.alter_tsconfiguration_stmt_ - : reinterpret_cast< ::pg_query::AlterTSConfigurationStmt&>(::pg_query::_AlterTSConfigurationStmt_default_instance_); -} -inline const ::pg_query::AlterTSConfigurationStmt& Node::alter_tsconfiguration_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_tsconfiguration_stmt) - return _internal_alter_tsconfiguration_stmt(); -} -inline ::pg_query::AlterTSConfigurationStmt* Node::unsafe_arena_release_alter_tsconfiguration_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_tsconfiguration_stmt) - if (_internal_has_alter_tsconfiguration_stmt()) { - clear_has_node(); - ::pg_query::AlterTSConfigurationStmt* temp = _impl_.node_.alter_tsconfiguration_stmt_; - _impl_.node_.alter_tsconfiguration_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_tsconfiguration_stmt(::pg_query::AlterTSConfigurationStmt* alter_tsconfiguration_stmt) { - clear_node(); - if (alter_tsconfiguration_stmt) { - set_has_alter_tsconfiguration_stmt(); - _impl_.node_.alter_tsconfiguration_stmt_ = alter_tsconfiguration_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_tsconfiguration_stmt) -} -inline ::pg_query::AlterTSConfigurationStmt* Node::_internal_mutable_alter_tsconfiguration_stmt() { - if (!_internal_has_alter_tsconfiguration_stmt()) { - clear_node(); - set_has_alter_tsconfiguration_stmt(); - _impl_.node_.alter_tsconfiguration_stmt_ = CreateMaybeMessage< ::pg_query::AlterTSConfigurationStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_tsconfiguration_stmt_; -} -inline ::pg_query::AlterTSConfigurationStmt* Node::mutable_alter_tsconfiguration_stmt() { - ::pg_query::AlterTSConfigurationStmt* _msg = _internal_mutable_alter_tsconfiguration_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_tsconfiguration_stmt) - return _msg; -} - -// .pg_query.CreateFdwStmt create_fdw_stmt = 138 [json_name = "CreateFdwStmt"]; -inline bool Node::_internal_has_create_fdw_stmt() const { - return node_case() == kCreateFdwStmt; -} -inline bool Node::has_create_fdw_stmt() const { - return _internal_has_create_fdw_stmt(); -} -inline void Node::set_has_create_fdw_stmt() { - _impl_._oneof_case_[0] = kCreateFdwStmt; -} -inline void Node::clear_create_fdw_stmt() { - if (_internal_has_create_fdw_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_fdw_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateFdwStmt* Node::release_create_fdw_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_fdw_stmt) - if (_internal_has_create_fdw_stmt()) { - clear_has_node(); - ::pg_query::CreateFdwStmt* temp = _impl_.node_.create_fdw_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_fdw_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateFdwStmt& Node::_internal_create_fdw_stmt() const { - return _internal_has_create_fdw_stmt() - ? *_impl_.node_.create_fdw_stmt_ - : reinterpret_cast< ::pg_query::CreateFdwStmt&>(::pg_query::_CreateFdwStmt_default_instance_); -} -inline const ::pg_query::CreateFdwStmt& Node::create_fdw_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_fdw_stmt) - return _internal_create_fdw_stmt(); -} -inline ::pg_query::CreateFdwStmt* Node::unsafe_arena_release_create_fdw_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_fdw_stmt) - if (_internal_has_create_fdw_stmt()) { - clear_has_node(); - ::pg_query::CreateFdwStmt* temp = _impl_.node_.create_fdw_stmt_; - _impl_.node_.create_fdw_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_fdw_stmt(::pg_query::CreateFdwStmt* create_fdw_stmt) { - clear_node(); - if (create_fdw_stmt) { - set_has_create_fdw_stmt(); - _impl_.node_.create_fdw_stmt_ = create_fdw_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_fdw_stmt) -} -inline ::pg_query::CreateFdwStmt* Node::_internal_mutable_create_fdw_stmt() { - if (!_internal_has_create_fdw_stmt()) { - clear_node(); - set_has_create_fdw_stmt(); - _impl_.node_.create_fdw_stmt_ = CreateMaybeMessage< ::pg_query::CreateFdwStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_fdw_stmt_; -} -inline ::pg_query::CreateFdwStmt* Node::mutable_create_fdw_stmt() { - ::pg_query::CreateFdwStmt* _msg = _internal_mutable_create_fdw_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_fdw_stmt) - return _msg; -} - -// .pg_query.AlterFdwStmt alter_fdw_stmt = 139 [json_name = "AlterFdwStmt"]; -inline bool Node::_internal_has_alter_fdw_stmt() const { - return node_case() == kAlterFdwStmt; -} -inline bool Node::has_alter_fdw_stmt() const { - return _internal_has_alter_fdw_stmt(); -} -inline void Node::set_has_alter_fdw_stmt() { - _impl_._oneof_case_[0] = kAlterFdwStmt; -} -inline void Node::clear_alter_fdw_stmt() { - if (_internal_has_alter_fdw_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_fdw_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterFdwStmt* Node::release_alter_fdw_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_fdw_stmt) - if (_internal_has_alter_fdw_stmt()) { - clear_has_node(); - ::pg_query::AlterFdwStmt* temp = _impl_.node_.alter_fdw_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_fdw_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterFdwStmt& Node::_internal_alter_fdw_stmt() const { - return _internal_has_alter_fdw_stmt() - ? *_impl_.node_.alter_fdw_stmt_ - : reinterpret_cast< ::pg_query::AlterFdwStmt&>(::pg_query::_AlterFdwStmt_default_instance_); -} -inline const ::pg_query::AlterFdwStmt& Node::alter_fdw_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_fdw_stmt) - return _internal_alter_fdw_stmt(); -} -inline ::pg_query::AlterFdwStmt* Node::unsafe_arena_release_alter_fdw_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_fdw_stmt) - if (_internal_has_alter_fdw_stmt()) { - clear_has_node(); - ::pg_query::AlterFdwStmt* temp = _impl_.node_.alter_fdw_stmt_; - _impl_.node_.alter_fdw_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_fdw_stmt(::pg_query::AlterFdwStmt* alter_fdw_stmt) { - clear_node(); - if (alter_fdw_stmt) { - set_has_alter_fdw_stmt(); - _impl_.node_.alter_fdw_stmt_ = alter_fdw_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_fdw_stmt) -} -inline ::pg_query::AlterFdwStmt* Node::_internal_mutable_alter_fdw_stmt() { - if (!_internal_has_alter_fdw_stmt()) { - clear_node(); - set_has_alter_fdw_stmt(); - _impl_.node_.alter_fdw_stmt_ = CreateMaybeMessage< ::pg_query::AlterFdwStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_fdw_stmt_; -} -inline ::pg_query::AlterFdwStmt* Node::mutable_alter_fdw_stmt() { - ::pg_query::AlterFdwStmt* _msg = _internal_mutable_alter_fdw_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_fdw_stmt) - return _msg; -} - -// .pg_query.CreateForeignServerStmt create_foreign_server_stmt = 140 [json_name = "CreateForeignServerStmt"]; -inline bool Node::_internal_has_create_foreign_server_stmt() const { - return node_case() == kCreateForeignServerStmt; -} -inline bool Node::has_create_foreign_server_stmt() const { - return _internal_has_create_foreign_server_stmt(); -} -inline void Node::set_has_create_foreign_server_stmt() { - _impl_._oneof_case_[0] = kCreateForeignServerStmt; -} -inline void Node::clear_create_foreign_server_stmt() { - if (_internal_has_create_foreign_server_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_foreign_server_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateForeignServerStmt* Node::release_create_foreign_server_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_foreign_server_stmt) - if (_internal_has_create_foreign_server_stmt()) { - clear_has_node(); - ::pg_query::CreateForeignServerStmt* temp = _impl_.node_.create_foreign_server_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_foreign_server_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateForeignServerStmt& Node::_internal_create_foreign_server_stmt() const { - return _internal_has_create_foreign_server_stmt() - ? *_impl_.node_.create_foreign_server_stmt_ - : reinterpret_cast< ::pg_query::CreateForeignServerStmt&>(::pg_query::_CreateForeignServerStmt_default_instance_); -} -inline const ::pg_query::CreateForeignServerStmt& Node::create_foreign_server_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_foreign_server_stmt) - return _internal_create_foreign_server_stmt(); -} -inline ::pg_query::CreateForeignServerStmt* Node::unsafe_arena_release_create_foreign_server_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_foreign_server_stmt) - if (_internal_has_create_foreign_server_stmt()) { - clear_has_node(); - ::pg_query::CreateForeignServerStmt* temp = _impl_.node_.create_foreign_server_stmt_; - _impl_.node_.create_foreign_server_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_foreign_server_stmt(::pg_query::CreateForeignServerStmt* create_foreign_server_stmt) { - clear_node(); - if (create_foreign_server_stmt) { - set_has_create_foreign_server_stmt(); - _impl_.node_.create_foreign_server_stmt_ = create_foreign_server_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_foreign_server_stmt) -} -inline ::pg_query::CreateForeignServerStmt* Node::_internal_mutable_create_foreign_server_stmt() { - if (!_internal_has_create_foreign_server_stmt()) { - clear_node(); - set_has_create_foreign_server_stmt(); - _impl_.node_.create_foreign_server_stmt_ = CreateMaybeMessage< ::pg_query::CreateForeignServerStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_foreign_server_stmt_; -} -inline ::pg_query::CreateForeignServerStmt* Node::mutable_create_foreign_server_stmt() { - ::pg_query::CreateForeignServerStmt* _msg = _internal_mutable_create_foreign_server_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_foreign_server_stmt) - return _msg; -} - -// .pg_query.AlterForeignServerStmt alter_foreign_server_stmt = 141 [json_name = "AlterForeignServerStmt"]; -inline bool Node::_internal_has_alter_foreign_server_stmt() const { - return node_case() == kAlterForeignServerStmt; -} -inline bool Node::has_alter_foreign_server_stmt() const { - return _internal_has_alter_foreign_server_stmt(); -} -inline void Node::set_has_alter_foreign_server_stmt() { - _impl_._oneof_case_[0] = kAlterForeignServerStmt; -} -inline void Node::clear_alter_foreign_server_stmt() { - if (_internal_has_alter_foreign_server_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_foreign_server_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterForeignServerStmt* Node::release_alter_foreign_server_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_foreign_server_stmt) - if (_internal_has_alter_foreign_server_stmt()) { - clear_has_node(); - ::pg_query::AlterForeignServerStmt* temp = _impl_.node_.alter_foreign_server_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_foreign_server_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterForeignServerStmt& Node::_internal_alter_foreign_server_stmt() const { - return _internal_has_alter_foreign_server_stmt() - ? *_impl_.node_.alter_foreign_server_stmt_ - : reinterpret_cast< ::pg_query::AlterForeignServerStmt&>(::pg_query::_AlterForeignServerStmt_default_instance_); -} -inline const ::pg_query::AlterForeignServerStmt& Node::alter_foreign_server_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_foreign_server_stmt) - return _internal_alter_foreign_server_stmt(); -} -inline ::pg_query::AlterForeignServerStmt* Node::unsafe_arena_release_alter_foreign_server_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_foreign_server_stmt) - if (_internal_has_alter_foreign_server_stmt()) { - clear_has_node(); - ::pg_query::AlterForeignServerStmt* temp = _impl_.node_.alter_foreign_server_stmt_; - _impl_.node_.alter_foreign_server_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_foreign_server_stmt(::pg_query::AlterForeignServerStmt* alter_foreign_server_stmt) { - clear_node(); - if (alter_foreign_server_stmt) { - set_has_alter_foreign_server_stmt(); - _impl_.node_.alter_foreign_server_stmt_ = alter_foreign_server_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_foreign_server_stmt) -} -inline ::pg_query::AlterForeignServerStmt* Node::_internal_mutable_alter_foreign_server_stmt() { - if (!_internal_has_alter_foreign_server_stmt()) { - clear_node(); - set_has_alter_foreign_server_stmt(); - _impl_.node_.alter_foreign_server_stmt_ = CreateMaybeMessage< ::pg_query::AlterForeignServerStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_foreign_server_stmt_; -} -inline ::pg_query::AlterForeignServerStmt* Node::mutable_alter_foreign_server_stmt() { - ::pg_query::AlterForeignServerStmt* _msg = _internal_mutable_alter_foreign_server_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_foreign_server_stmt) - return _msg; -} - -// .pg_query.CreateUserMappingStmt create_user_mapping_stmt = 142 [json_name = "CreateUserMappingStmt"]; -inline bool Node::_internal_has_create_user_mapping_stmt() const { - return node_case() == kCreateUserMappingStmt; -} -inline bool Node::has_create_user_mapping_stmt() const { - return _internal_has_create_user_mapping_stmt(); -} -inline void Node::set_has_create_user_mapping_stmt() { - _impl_._oneof_case_[0] = kCreateUserMappingStmt; -} -inline void Node::clear_create_user_mapping_stmt() { - if (_internal_has_create_user_mapping_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_user_mapping_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateUserMappingStmt* Node::release_create_user_mapping_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_user_mapping_stmt) - if (_internal_has_create_user_mapping_stmt()) { - clear_has_node(); - ::pg_query::CreateUserMappingStmt* temp = _impl_.node_.create_user_mapping_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_user_mapping_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateUserMappingStmt& Node::_internal_create_user_mapping_stmt() const { - return _internal_has_create_user_mapping_stmt() - ? *_impl_.node_.create_user_mapping_stmt_ - : reinterpret_cast< ::pg_query::CreateUserMappingStmt&>(::pg_query::_CreateUserMappingStmt_default_instance_); -} -inline const ::pg_query::CreateUserMappingStmt& Node::create_user_mapping_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_user_mapping_stmt) - return _internal_create_user_mapping_stmt(); -} -inline ::pg_query::CreateUserMappingStmt* Node::unsafe_arena_release_create_user_mapping_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_user_mapping_stmt) - if (_internal_has_create_user_mapping_stmt()) { - clear_has_node(); - ::pg_query::CreateUserMappingStmt* temp = _impl_.node_.create_user_mapping_stmt_; - _impl_.node_.create_user_mapping_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_user_mapping_stmt(::pg_query::CreateUserMappingStmt* create_user_mapping_stmt) { - clear_node(); - if (create_user_mapping_stmt) { - set_has_create_user_mapping_stmt(); - _impl_.node_.create_user_mapping_stmt_ = create_user_mapping_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_user_mapping_stmt) -} -inline ::pg_query::CreateUserMappingStmt* Node::_internal_mutable_create_user_mapping_stmt() { - if (!_internal_has_create_user_mapping_stmt()) { - clear_node(); - set_has_create_user_mapping_stmt(); - _impl_.node_.create_user_mapping_stmt_ = CreateMaybeMessage< ::pg_query::CreateUserMappingStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_user_mapping_stmt_; -} -inline ::pg_query::CreateUserMappingStmt* Node::mutable_create_user_mapping_stmt() { - ::pg_query::CreateUserMappingStmt* _msg = _internal_mutable_create_user_mapping_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_user_mapping_stmt) - return _msg; -} - -// .pg_query.AlterUserMappingStmt alter_user_mapping_stmt = 143 [json_name = "AlterUserMappingStmt"]; -inline bool Node::_internal_has_alter_user_mapping_stmt() const { - return node_case() == kAlterUserMappingStmt; -} -inline bool Node::has_alter_user_mapping_stmt() const { - return _internal_has_alter_user_mapping_stmt(); -} -inline void Node::set_has_alter_user_mapping_stmt() { - _impl_._oneof_case_[0] = kAlterUserMappingStmt; -} -inline void Node::clear_alter_user_mapping_stmt() { - if (_internal_has_alter_user_mapping_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_user_mapping_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterUserMappingStmt* Node::release_alter_user_mapping_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_user_mapping_stmt) - if (_internal_has_alter_user_mapping_stmt()) { - clear_has_node(); - ::pg_query::AlterUserMappingStmt* temp = _impl_.node_.alter_user_mapping_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_user_mapping_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterUserMappingStmt& Node::_internal_alter_user_mapping_stmt() const { - return _internal_has_alter_user_mapping_stmt() - ? *_impl_.node_.alter_user_mapping_stmt_ - : reinterpret_cast< ::pg_query::AlterUserMappingStmt&>(::pg_query::_AlterUserMappingStmt_default_instance_); -} -inline const ::pg_query::AlterUserMappingStmt& Node::alter_user_mapping_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_user_mapping_stmt) - return _internal_alter_user_mapping_stmt(); -} -inline ::pg_query::AlterUserMappingStmt* Node::unsafe_arena_release_alter_user_mapping_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_user_mapping_stmt) - if (_internal_has_alter_user_mapping_stmt()) { - clear_has_node(); - ::pg_query::AlterUserMappingStmt* temp = _impl_.node_.alter_user_mapping_stmt_; - _impl_.node_.alter_user_mapping_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_user_mapping_stmt(::pg_query::AlterUserMappingStmt* alter_user_mapping_stmt) { - clear_node(); - if (alter_user_mapping_stmt) { - set_has_alter_user_mapping_stmt(); - _impl_.node_.alter_user_mapping_stmt_ = alter_user_mapping_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_user_mapping_stmt) -} -inline ::pg_query::AlterUserMappingStmt* Node::_internal_mutable_alter_user_mapping_stmt() { - if (!_internal_has_alter_user_mapping_stmt()) { - clear_node(); - set_has_alter_user_mapping_stmt(); - _impl_.node_.alter_user_mapping_stmt_ = CreateMaybeMessage< ::pg_query::AlterUserMappingStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_user_mapping_stmt_; -} -inline ::pg_query::AlterUserMappingStmt* Node::mutable_alter_user_mapping_stmt() { - ::pg_query::AlterUserMappingStmt* _msg = _internal_mutable_alter_user_mapping_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_user_mapping_stmt) - return _msg; -} - -// .pg_query.DropUserMappingStmt drop_user_mapping_stmt = 144 [json_name = "DropUserMappingStmt"]; -inline bool Node::_internal_has_drop_user_mapping_stmt() const { - return node_case() == kDropUserMappingStmt; -} -inline bool Node::has_drop_user_mapping_stmt() const { - return _internal_has_drop_user_mapping_stmt(); -} -inline void Node::set_has_drop_user_mapping_stmt() { - _impl_._oneof_case_[0] = kDropUserMappingStmt; -} -inline void Node::clear_drop_user_mapping_stmt() { - if (_internal_has_drop_user_mapping_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.drop_user_mapping_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::DropUserMappingStmt* Node::release_drop_user_mapping_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.drop_user_mapping_stmt) - if (_internal_has_drop_user_mapping_stmt()) { - clear_has_node(); - ::pg_query::DropUserMappingStmt* temp = _impl_.node_.drop_user_mapping_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.drop_user_mapping_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::DropUserMappingStmt& Node::_internal_drop_user_mapping_stmt() const { - return _internal_has_drop_user_mapping_stmt() - ? *_impl_.node_.drop_user_mapping_stmt_ - : reinterpret_cast< ::pg_query::DropUserMappingStmt&>(::pg_query::_DropUserMappingStmt_default_instance_); -} -inline const ::pg_query::DropUserMappingStmt& Node::drop_user_mapping_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.drop_user_mapping_stmt) - return _internal_drop_user_mapping_stmt(); -} -inline ::pg_query::DropUserMappingStmt* Node::unsafe_arena_release_drop_user_mapping_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.drop_user_mapping_stmt) - if (_internal_has_drop_user_mapping_stmt()) { - clear_has_node(); - ::pg_query::DropUserMappingStmt* temp = _impl_.node_.drop_user_mapping_stmt_; - _impl_.node_.drop_user_mapping_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_drop_user_mapping_stmt(::pg_query::DropUserMappingStmt* drop_user_mapping_stmt) { - clear_node(); - if (drop_user_mapping_stmt) { - set_has_drop_user_mapping_stmt(); - _impl_.node_.drop_user_mapping_stmt_ = drop_user_mapping_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.drop_user_mapping_stmt) -} -inline ::pg_query::DropUserMappingStmt* Node::_internal_mutable_drop_user_mapping_stmt() { - if (!_internal_has_drop_user_mapping_stmt()) { - clear_node(); - set_has_drop_user_mapping_stmt(); - _impl_.node_.drop_user_mapping_stmt_ = CreateMaybeMessage< ::pg_query::DropUserMappingStmt >(GetArenaForAllocation()); - } - return _impl_.node_.drop_user_mapping_stmt_; -} -inline ::pg_query::DropUserMappingStmt* Node::mutable_drop_user_mapping_stmt() { - ::pg_query::DropUserMappingStmt* _msg = _internal_mutable_drop_user_mapping_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.drop_user_mapping_stmt) - return _msg; -} - -// .pg_query.AlterTableSpaceOptionsStmt alter_table_space_options_stmt = 145 [json_name = "AlterTableSpaceOptionsStmt"]; -inline bool Node::_internal_has_alter_table_space_options_stmt() const { - return node_case() == kAlterTableSpaceOptionsStmt; -} -inline bool Node::has_alter_table_space_options_stmt() const { - return _internal_has_alter_table_space_options_stmt(); -} -inline void Node::set_has_alter_table_space_options_stmt() { - _impl_._oneof_case_[0] = kAlterTableSpaceOptionsStmt; -} -inline void Node::clear_alter_table_space_options_stmt() { - if (_internal_has_alter_table_space_options_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_table_space_options_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterTableSpaceOptionsStmt* Node::release_alter_table_space_options_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_table_space_options_stmt) - if (_internal_has_alter_table_space_options_stmt()) { - clear_has_node(); - ::pg_query::AlterTableSpaceOptionsStmt* temp = _impl_.node_.alter_table_space_options_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_table_space_options_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterTableSpaceOptionsStmt& Node::_internal_alter_table_space_options_stmt() const { - return _internal_has_alter_table_space_options_stmt() - ? *_impl_.node_.alter_table_space_options_stmt_ - : reinterpret_cast< ::pg_query::AlterTableSpaceOptionsStmt&>(::pg_query::_AlterTableSpaceOptionsStmt_default_instance_); -} -inline const ::pg_query::AlterTableSpaceOptionsStmt& Node::alter_table_space_options_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_table_space_options_stmt) - return _internal_alter_table_space_options_stmt(); -} -inline ::pg_query::AlterTableSpaceOptionsStmt* Node::unsafe_arena_release_alter_table_space_options_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_table_space_options_stmt) - if (_internal_has_alter_table_space_options_stmt()) { - clear_has_node(); - ::pg_query::AlterTableSpaceOptionsStmt* temp = _impl_.node_.alter_table_space_options_stmt_; - _impl_.node_.alter_table_space_options_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_table_space_options_stmt(::pg_query::AlterTableSpaceOptionsStmt* alter_table_space_options_stmt) { - clear_node(); - if (alter_table_space_options_stmt) { - set_has_alter_table_space_options_stmt(); - _impl_.node_.alter_table_space_options_stmt_ = alter_table_space_options_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_table_space_options_stmt) -} -inline ::pg_query::AlterTableSpaceOptionsStmt* Node::_internal_mutable_alter_table_space_options_stmt() { - if (!_internal_has_alter_table_space_options_stmt()) { - clear_node(); - set_has_alter_table_space_options_stmt(); - _impl_.node_.alter_table_space_options_stmt_ = CreateMaybeMessage< ::pg_query::AlterTableSpaceOptionsStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_table_space_options_stmt_; -} -inline ::pg_query::AlterTableSpaceOptionsStmt* Node::mutable_alter_table_space_options_stmt() { - ::pg_query::AlterTableSpaceOptionsStmt* _msg = _internal_mutable_alter_table_space_options_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_table_space_options_stmt) - return _msg; -} - -// .pg_query.AlterTableMoveAllStmt alter_table_move_all_stmt = 146 [json_name = "AlterTableMoveAllStmt"]; -inline bool Node::_internal_has_alter_table_move_all_stmt() const { - return node_case() == kAlterTableMoveAllStmt; -} -inline bool Node::has_alter_table_move_all_stmt() const { - return _internal_has_alter_table_move_all_stmt(); -} -inline void Node::set_has_alter_table_move_all_stmt() { - _impl_._oneof_case_[0] = kAlterTableMoveAllStmt; -} -inline void Node::clear_alter_table_move_all_stmt() { - if (_internal_has_alter_table_move_all_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_table_move_all_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterTableMoveAllStmt* Node::release_alter_table_move_all_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_table_move_all_stmt) - if (_internal_has_alter_table_move_all_stmt()) { - clear_has_node(); - ::pg_query::AlterTableMoveAllStmt* temp = _impl_.node_.alter_table_move_all_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_table_move_all_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterTableMoveAllStmt& Node::_internal_alter_table_move_all_stmt() const { - return _internal_has_alter_table_move_all_stmt() - ? *_impl_.node_.alter_table_move_all_stmt_ - : reinterpret_cast< ::pg_query::AlterTableMoveAllStmt&>(::pg_query::_AlterTableMoveAllStmt_default_instance_); -} -inline const ::pg_query::AlterTableMoveAllStmt& Node::alter_table_move_all_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_table_move_all_stmt) - return _internal_alter_table_move_all_stmt(); -} -inline ::pg_query::AlterTableMoveAllStmt* Node::unsafe_arena_release_alter_table_move_all_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_table_move_all_stmt) - if (_internal_has_alter_table_move_all_stmt()) { - clear_has_node(); - ::pg_query::AlterTableMoveAllStmt* temp = _impl_.node_.alter_table_move_all_stmt_; - _impl_.node_.alter_table_move_all_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_table_move_all_stmt(::pg_query::AlterTableMoveAllStmt* alter_table_move_all_stmt) { - clear_node(); - if (alter_table_move_all_stmt) { - set_has_alter_table_move_all_stmt(); - _impl_.node_.alter_table_move_all_stmt_ = alter_table_move_all_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_table_move_all_stmt) -} -inline ::pg_query::AlterTableMoveAllStmt* Node::_internal_mutable_alter_table_move_all_stmt() { - if (!_internal_has_alter_table_move_all_stmt()) { - clear_node(); - set_has_alter_table_move_all_stmt(); - _impl_.node_.alter_table_move_all_stmt_ = CreateMaybeMessage< ::pg_query::AlterTableMoveAllStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_table_move_all_stmt_; -} -inline ::pg_query::AlterTableMoveAllStmt* Node::mutable_alter_table_move_all_stmt() { - ::pg_query::AlterTableMoveAllStmt* _msg = _internal_mutable_alter_table_move_all_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_table_move_all_stmt) - return _msg; -} - -// .pg_query.SecLabelStmt sec_label_stmt = 147 [json_name = "SecLabelStmt"]; -inline bool Node::_internal_has_sec_label_stmt() const { - return node_case() == kSecLabelStmt; -} -inline bool Node::has_sec_label_stmt() const { - return _internal_has_sec_label_stmt(); -} -inline void Node::set_has_sec_label_stmt() { - _impl_._oneof_case_[0] = kSecLabelStmt; -} -inline void Node::clear_sec_label_stmt() { - if (_internal_has_sec_label_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.sec_label_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::SecLabelStmt* Node::release_sec_label_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.sec_label_stmt) - if (_internal_has_sec_label_stmt()) { - clear_has_node(); - ::pg_query::SecLabelStmt* temp = _impl_.node_.sec_label_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.sec_label_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::SecLabelStmt& Node::_internal_sec_label_stmt() const { - return _internal_has_sec_label_stmt() - ? *_impl_.node_.sec_label_stmt_ - : reinterpret_cast< ::pg_query::SecLabelStmt&>(::pg_query::_SecLabelStmt_default_instance_); -} -inline const ::pg_query::SecLabelStmt& Node::sec_label_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.sec_label_stmt) - return _internal_sec_label_stmt(); -} -inline ::pg_query::SecLabelStmt* Node::unsafe_arena_release_sec_label_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.sec_label_stmt) - if (_internal_has_sec_label_stmt()) { - clear_has_node(); - ::pg_query::SecLabelStmt* temp = _impl_.node_.sec_label_stmt_; - _impl_.node_.sec_label_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_sec_label_stmt(::pg_query::SecLabelStmt* sec_label_stmt) { - clear_node(); - if (sec_label_stmt) { - set_has_sec_label_stmt(); - _impl_.node_.sec_label_stmt_ = sec_label_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.sec_label_stmt) -} -inline ::pg_query::SecLabelStmt* Node::_internal_mutable_sec_label_stmt() { - if (!_internal_has_sec_label_stmt()) { - clear_node(); - set_has_sec_label_stmt(); - _impl_.node_.sec_label_stmt_ = CreateMaybeMessage< ::pg_query::SecLabelStmt >(GetArenaForAllocation()); - } - return _impl_.node_.sec_label_stmt_; -} -inline ::pg_query::SecLabelStmt* Node::mutable_sec_label_stmt() { - ::pg_query::SecLabelStmt* _msg = _internal_mutable_sec_label_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.sec_label_stmt) - return _msg; -} - -// .pg_query.CreateForeignTableStmt create_foreign_table_stmt = 148 [json_name = "CreateForeignTableStmt"]; -inline bool Node::_internal_has_create_foreign_table_stmt() const { - return node_case() == kCreateForeignTableStmt; -} -inline bool Node::has_create_foreign_table_stmt() const { - return _internal_has_create_foreign_table_stmt(); -} -inline void Node::set_has_create_foreign_table_stmt() { - _impl_._oneof_case_[0] = kCreateForeignTableStmt; -} -inline void Node::clear_create_foreign_table_stmt() { - if (_internal_has_create_foreign_table_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_foreign_table_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateForeignTableStmt* Node::release_create_foreign_table_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_foreign_table_stmt) - if (_internal_has_create_foreign_table_stmt()) { - clear_has_node(); - ::pg_query::CreateForeignTableStmt* temp = _impl_.node_.create_foreign_table_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_foreign_table_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateForeignTableStmt& Node::_internal_create_foreign_table_stmt() const { - return _internal_has_create_foreign_table_stmt() - ? *_impl_.node_.create_foreign_table_stmt_ - : reinterpret_cast< ::pg_query::CreateForeignTableStmt&>(::pg_query::_CreateForeignTableStmt_default_instance_); -} -inline const ::pg_query::CreateForeignTableStmt& Node::create_foreign_table_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_foreign_table_stmt) - return _internal_create_foreign_table_stmt(); -} -inline ::pg_query::CreateForeignTableStmt* Node::unsafe_arena_release_create_foreign_table_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_foreign_table_stmt) - if (_internal_has_create_foreign_table_stmt()) { - clear_has_node(); - ::pg_query::CreateForeignTableStmt* temp = _impl_.node_.create_foreign_table_stmt_; - _impl_.node_.create_foreign_table_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_foreign_table_stmt(::pg_query::CreateForeignTableStmt* create_foreign_table_stmt) { - clear_node(); - if (create_foreign_table_stmt) { - set_has_create_foreign_table_stmt(); - _impl_.node_.create_foreign_table_stmt_ = create_foreign_table_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_foreign_table_stmt) -} -inline ::pg_query::CreateForeignTableStmt* Node::_internal_mutable_create_foreign_table_stmt() { - if (!_internal_has_create_foreign_table_stmt()) { - clear_node(); - set_has_create_foreign_table_stmt(); - _impl_.node_.create_foreign_table_stmt_ = CreateMaybeMessage< ::pg_query::CreateForeignTableStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_foreign_table_stmt_; -} -inline ::pg_query::CreateForeignTableStmt* Node::mutable_create_foreign_table_stmt() { - ::pg_query::CreateForeignTableStmt* _msg = _internal_mutable_create_foreign_table_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_foreign_table_stmt) - return _msg; -} - -// .pg_query.ImportForeignSchemaStmt import_foreign_schema_stmt = 149 [json_name = "ImportForeignSchemaStmt"]; -inline bool Node::_internal_has_import_foreign_schema_stmt() const { - return node_case() == kImportForeignSchemaStmt; -} -inline bool Node::has_import_foreign_schema_stmt() const { - return _internal_has_import_foreign_schema_stmt(); -} -inline void Node::set_has_import_foreign_schema_stmt() { - _impl_._oneof_case_[0] = kImportForeignSchemaStmt; -} -inline void Node::clear_import_foreign_schema_stmt() { - if (_internal_has_import_foreign_schema_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.import_foreign_schema_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::ImportForeignSchemaStmt* Node::release_import_foreign_schema_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.import_foreign_schema_stmt) - if (_internal_has_import_foreign_schema_stmt()) { - clear_has_node(); - ::pg_query::ImportForeignSchemaStmt* temp = _impl_.node_.import_foreign_schema_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.import_foreign_schema_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::ImportForeignSchemaStmt& Node::_internal_import_foreign_schema_stmt() const { - return _internal_has_import_foreign_schema_stmt() - ? *_impl_.node_.import_foreign_schema_stmt_ - : reinterpret_cast< ::pg_query::ImportForeignSchemaStmt&>(::pg_query::_ImportForeignSchemaStmt_default_instance_); -} -inline const ::pg_query::ImportForeignSchemaStmt& Node::import_foreign_schema_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.import_foreign_schema_stmt) - return _internal_import_foreign_schema_stmt(); -} -inline ::pg_query::ImportForeignSchemaStmt* Node::unsafe_arena_release_import_foreign_schema_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.import_foreign_schema_stmt) - if (_internal_has_import_foreign_schema_stmt()) { - clear_has_node(); - ::pg_query::ImportForeignSchemaStmt* temp = _impl_.node_.import_foreign_schema_stmt_; - _impl_.node_.import_foreign_schema_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_import_foreign_schema_stmt(::pg_query::ImportForeignSchemaStmt* import_foreign_schema_stmt) { - clear_node(); - if (import_foreign_schema_stmt) { - set_has_import_foreign_schema_stmt(); - _impl_.node_.import_foreign_schema_stmt_ = import_foreign_schema_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.import_foreign_schema_stmt) -} -inline ::pg_query::ImportForeignSchemaStmt* Node::_internal_mutable_import_foreign_schema_stmt() { - if (!_internal_has_import_foreign_schema_stmt()) { - clear_node(); - set_has_import_foreign_schema_stmt(); - _impl_.node_.import_foreign_schema_stmt_ = CreateMaybeMessage< ::pg_query::ImportForeignSchemaStmt >(GetArenaForAllocation()); - } - return _impl_.node_.import_foreign_schema_stmt_; -} -inline ::pg_query::ImportForeignSchemaStmt* Node::mutable_import_foreign_schema_stmt() { - ::pg_query::ImportForeignSchemaStmt* _msg = _internal_mutable_import_foreign_schema_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.import_foreign_schema_stmt) - return _msg; -} - -// .pg_query.CreateExtensionStmt create_extension_stmt = 150 [json_name = "CreateExtensionStmt"]; -inline bool Node::_internal_has_create_extension_stmt() const { - return node_case() == kCreateExtensionStmt; -} -inline bool Node::has_create_extension_stmt() const { - return _internal_has_create_extension_stmt(); -} -inline void Node::set_has_create_extension_stmt() { - _impl_._oneof_case_[0] = kCreateExtensionStmt; -} -inline void Node::clear_create_extension_stmt() { - if (_internal_has_create_extension_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_extension_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateExtensionStmt* Node::release_create_extension_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_extension_stmt) - if (_internal_has_create_extension_stmt()) { - clear_has_node(); - ::pg_query::CreateExtensionStmt* temp = _impl_.node_.create_extension_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_extension_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateExtensionStmt& Node::_internal_create_extension_stmt() const { - return _internal_has_create_extension_stmt() - ? *_impl_.node_.create_extension_stmt_ - : reinterpret_cast< ::pg_query::CreateExtensionStmt&>(::pg_query::_CreateExtensionStmt_default_instance_); -} -inline const ::pg_query::CreateExtensionStmt& Node::create_extension_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_extension_stmt) - return _internal_create_extension_stmt(); -} -inline ::pg_query::CreateExtensionStmt* Node::unsafe_arena_release_create_extension_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_extension_stmt) - if (_internal_has_create_extension_stmt()) { - clear_has_node(); - ::pg_query::CreateExtensionStmt* temp = _impl_.node_.create_extension_stmt_; - _impl_.node_.create_extension_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_extension_stmt(::pg_query::CreateExtensionStmt* create_extension_stmt) { - clear_node(); - if (create_extension_stmt) { - set_has_create_extension_stmt(); - _impl_.node_.create_extension_stmt_ = create_extension_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_extension_stmt) -} -inline ::pg_query::CreateExtensionStmt* Node::_internal_mutable_create_extension_stmt() { - if (!_internal_has_create_extension_stmt()) { - clear_node(); - set_has_create_extension_stmt(); - _impl_.node_.create_extension_stmt_ = CreateMaybeMessage< ::pg_query::CreateExtensionStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_extension_stmt_; -} -inline ::pg_query::CreateExtensionStmt* Node::mutable_create_extension_stmt() { - ::pg_query::CreateExtensionStmt* _msg = _internal_mutable_create_extension_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_extension_stmt) - return _msg; -} - -// .pg_query.AlterExtensionStmt alter_extension_stmt = 151 [json_name = "AlterExtensionStmt"]; -inline bool Node::_internal_has_alter_extension_stmt() const { - return node_case() == kAlterExtensionStmt; -} -inline bool Node::has_alter_extension_stmt() const { - return _internal_has_alter_extension_stmt(); -} -inline void Node::set_has_alter_extension_stmt() { - _impl_._oneof_case_[0] = kAlterExtensionStmt; -} -inline void Node::clear_alter_extension_stmt() { - if (_internal_has_alter_extension_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_extension_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterExtensionStmt* Node::release_alter_extension_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_extension_stmt) - if (_internal_has_alter_extension_stmt()) { - clear_has_node(); - ::pg_query::AlterExtensionStmt* temp = _impl_.node_.alter_extension_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_extension_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterExtensionStmt& Node::_internal_alter_extension_stmt() const { - return _internal_has_alter_extension_stmt() - ? *_impl_.node_.alter_extension_stmt_ - : reinterpret_cast< ::pg_query::AlterExtensionStmt&>(::pg_query::_AlterExtensionStmt_default_instance_); -} -inline const ::pg_query::AlterExtensionStmt& Node::alter_extension_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_extension_stmt) - return _internal_alter_extension_stmt(); -} -inline ::pg_query::AlterExtensionStmt* Node::unsafe_arena_release_alter_extension_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_extension_stmt) - if (_internal_has_alter_extension_stmt()) { - clear_has_node(); - ::pg_query::AlterExtensionStmt* temp = _impl_.node_.alter_extension_stmt_; - _impl_.node_.alter_extension_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_extension_stmt(::pg_query::AlterExtensionStmt* alter_extension_stmt) { - clear_node(); - if (alter_extension_stmt) { - set_has_alter_extension_stmt(); - _impl_.node_.alter_extension_stmt_ = alter_extension_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_extension_stmt) -} -inline ::pg_query::AlterExtensionStmt* Node::_internal_mutable_alter_extension_stmt() { - if (!_internal_has_alter_extension_stmt()) { - clear_node(); - set_has_alter_extension_stmt(); - _impl_.node_.alter_extension_stmt_ = CreateMaybeMessage< ::pg_query::AlterExtensionStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_extension_stmt_; -} -inline ::pg_query::AlterExtensionStmt* Node::mutable_alter_extension_stmt() { - ::pg_query::AlterExtensionStmt* _msg = _internal_mutable_alter_extension_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_extension_stmt) - return _msg; -} - -// .pg_query.AlterExtensionContentsStmt alter_extension_contents_stmt = 152 [json_name = "AlterExtensionContentsStmt"]; -inline bool Node::_internal_has_alter_extension_contents_stmt() const { - return node_case() == kAlterExtensionContentsStmt; -} -inline bool Node::has_alter_extension_contents_stmt() const { - return _internal_has_alter_extension_contents_stmt(); -} -inline void Node::set_has_alter_extension_contents_stmt() { - _impl_._oneof_case_[0] = kAlterExtensionContentsStmt; -} -inline void Node::clear_alter_extension_contents_stmt() { - if (_internal_has_alter_extension_contents_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_extension_contents_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterExtensionContentsStmt* Node::release_alter_extension_contents_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_extension_contents_stmt) - if (_internal_has_alter_extension_contents_stmt()) { - clear_has_node(); - ::pg_query::AlterExtensionContentsStmt* temp = _impl_.node_.alter_extension_contents_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_extension_contents_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterExtensionContentsStmt& Node::_internal_alter_extension_contents_stmt() const { - return _internal_has_alter_extension_contents_stmt() - ? *_impl_.node_.alter_extension_contents_stmt_ - : reinterpret_cast< ::pg_query::AlterExtensionContentsStmt&>(::pg_query::_AlterExtensionContentsStmt_default_instance_); -} -inline const ::pg_query::AlterExtensionContentsStmt& Node::alter_extension_contents_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_extension_contents_stmt) - return _internal_alter_extension_contents_stmt(); -} -inline ::pg_query::AlterExtensionContentsStmt* Node::unsafe_arena_release_alter_extension_contents_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_extension_contents_stmt) - if (_internal_has_alter_extension_contents_stmt()) { - clear_has_node(); - ::pg_query::AlterExtensionContentsStmt* temp = _impl_.node_.alter_extension_contents_stmt_; - _impl_.node_.alter_extension_contents_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_extension_contents_stmt(::pg_query::AlterExtensionContentsStmt* alter_extension_contents_stmt) { - clear_node(); - if (alter_extension_contents_stmt) { - set_has_alter_extension_contents_stmt(); - _impl_.node_.alter_extension_contents_stmt_ = alter_extension_contents_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_extension_contents_stmt) -} -inline ::pg_query::AlterExtensionContentsStmt* Node::_internal_mutable_alter_extension_contents_stmt() { - if (!_internal_has_alter_extension_contents_stmt()) { - clear_node(); - set_has_alter_extension_contents_stmt(); - _impl_.node_.alter_extension_contents_stmt_ = CreateMaybeMessage< ::pg_query::AlterExtensionContentsStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_extension_contents_stmt_; -} -inline ::pg_query::AlterExtensionContentsStmt* Node::mutable_alter_extension_contents_stmt() { - ::pg_query::AlterExtensionContentsStmt* _msg = _internal_mutable_alter_extension_contents_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_extension_contents_stmt) - return _msg; -} - -// .pg_query.CreateEventTrigStmt create_event_trig_stmt = 153 [json_name = "CreateEventTrigStmt"]; -inline bool Node::_internal_has_create_event_trig_stmt() const { - return node_case() == kCreateEventTrigStmt; -} -inline bool Node::has_create_event_trig_stmt() const { - return _internal_has_create_event_trig_stmt(); -} -inline void Node::set_has_create_event_trig_stmt() { - _impl_._oneof_case_[0] = kCreateEventTrigStmt; -} -inline void Node::clear_create_event_trig_stmt() { - if (_internal_has_create_event_trig_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_event_trig_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateEventTrigStmt* Node::release_create_event_trig_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_event_trig_stmt) - if (_internal_has_create_event_trig_stmt()) { - clear_has_node(); - ::pg_query::CreateEventTrigStmt* temp = _impl_.node_.create_event_trig_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_event_trig_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateEventTrigStmt& Node::_internal_create_event_trig_stmt() const { - return _internal_has_create_event_trig_stmt() - ? *_impl_.node_.create_event_trig_stmt_ - : reinterpret_cast< ::pg_query::CreateEventTrigStmt&>(::pg_query::_CreateEventTrigStmt_default_instance_); -} -inline const ::pg_query::CreateEventTrigStmt& Node::create_event_trig_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_event_trig_stmt) - return _internal_create_event_trig_stmt(); -} -inline ::pg_query::CreateEventTrigStmt* Node::unsafe_arena_release_create_event_trig_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_event_trig_stmt) - if (_internal_has_create_event_trig_stmt()) { - clear_has_node(); - ::pg_query::CreateEventTrigStmt* temp = _impl_.node_.create_event_trig_stmt_; - _impl_.node_.create_event_trig_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_event_trig_stmt(::pg_query::CreateEventTrigStmt* create_event_trig_stmt) { - clear_node(); - if (create_event_trig_stmt) { - set_has_create_event_trig_stmt(); - _impl_.node_.create_event_trig_stmt_ = create_event_trig_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_event_trig_stmt) -} -inline ::pg_query::CreateEventTrigStmt* Node::_internal_mutable_create_event_trig_stmt() { - if (!_internal_has_create_event_trig_stmt()) { - clear_node(); - set_has_create_event_trig_stmt(); - _impl_.node_.create_event_trig_stmt_ = CreateMaybeMessage< ::pg_query::CreateEventTrigStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_event_trig_stmt_; -} -inline ::pg_query::CreateEventTrigStmt* Node::mutable_create_event_trig_stmt() { - ::pg_query::CreateEventTrigStmt* _msg = _internal_mutable_create_event_trig_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_event_trig_stmt) - return _msg; -} - -// .pg_query.AlterEventTrigStmt alter_event_trig_stmt = 154 [json_name = "AlterEventTrigStmt"]; -inline bool Node::_internal_has_alter_event_trig_stmt() const { - return node_case() == kAlterEventTrigStmt; -} -inline bool Node::has_alter_event_trig_stmt() const { - return _internal_has_alter_event_trig_stmt(); -} -inline void Node::set_has_alter_event_trig_stmt() { - _impl_._oneof_case_[0] = kAlterEventTrigStmt; -} -inline void Node::clear_alter_event_trig_stmt() { - if (_internal_has_alter_event_trig_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_event_trig_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterEventTrigStmt* Node::release_alter_event_trig_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_event_trig_stmt) - if (_internal_has_alter_event_trig_stmt()) { - clear_has_node(); - ::pg_query::AlterEventTrigStmt* temp = _impl_.node_.alter_event_trig_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_event_trig_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterEventTrigStmt& Node::_internal_alter_event_trig_stmt() const { - return _internal_has_alter_event_trig_stmt() - ? *_impl_.node_.alter_event_trig_stmt_ - : reinterpret_cast< ::pg_query::AlterEventTrigStmt&>(::pg_query::_AlterEventTrigStmt_default_instance_); -} -inline const ::pg_query::AlterEventTrigStmt& Node::alter_event_trig_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_event_trig_stmt) - return _internal_alter_event_trig_stmt(); -} -inline ::pg_query::AlterEventTrigStmt* Node::unsafe_arena_release_alter_event_trig_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_event_trig_stmt) - if (_internal_has_alter_event_trig_stmt()) { - clear_has_node(); - ::pg_query::AlterEventTrigStmt* temp = _impl_.node_.alter_event_trig_stmt_; - _impl_.node_.alter_event_trig_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_event_trig_stmt(::pg_query::AlterEventTrigStmt* alter_event_trig_stmt) { - clear_node(); - if (alter_event_trig_stmt) { - set_has_alter_event_trig_stmt(); - _impl_.node_.alter_event_trig_stmt_ = alter_event_trig_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_event_trig_stmt) -} -inline ::pg_query::AlterEventTrigStmt* Node::_internal_mutable_alter_event_trig_stmt() { - if (!_internal_has_alter_event_trig_stmt()) { - clear_node(); - set_has_alter_event_trig_stmt(); - _impl_.node_.alter_event_trig_stmt_ = CreateMaybeMessage< ::pg_query::AlterEventTrigStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_event_trig_stmt_; -} -inline ::pg_query::AlterEventTrigStmt* Node::mutable_alter_event_trig_stmt() { - ::pg_query::AlterEventTrigStmt* _msg = _internal_mutable_alter_event_trig_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_event_trig_stmt) - return _msg; -} - -// .pg_query.RefreshMatViewStmt refresh_mat_view_stmt = 155 [json_name = "RefreshMatViewStmt"]; -inline bool Node::_internal_has_refresh_mat_view_stmt() const { - return node_case() == kRefreshMatViewStmt; -} -inline bool Node::has_refresh_mat_view_stmt() const { - return _internal_has_refresh_mat_view_stmt(); -} -inline void Node::set_has_refresh_mat_view_stmt() { - _impl_._oneof_case_[0] = kRefreshMatViewStmt; -} -inline void Node::clear_refresh_mat_view_stmt() { - if (_internal_has_refresh_mat_view_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.refresh_mat_view_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::RefreshMatViewStmt* Node::release_refresh_mat_view_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.refresh_mat_view_stmt) - if (_internal_has_refresh_mat_view_stmt()) { - clear_has_node(); - ::pg_query::RefreshMatViewStmt* temp = _impl_.node_.refresh_mat_view_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.refresh_mat_view_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::RefreshMatViewStmt& Node::_internal_refresh_mat_view_stmt() const { - return _internal_has_refresh_mat_view_stmt() - ? *_impl_.node_.refresh_mat_view_stmt_ - : reinterpret_cast< ::pg_query::RefreshMatViewStmt&>(::pg_query::_RefreshMatViewStmt_default_instance_); -} -inline const ::pg_query::RefreshMatViewStmt& Node::refresh_mat_view_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.refresh_mat_view_stmt) - return _internal_refresh_mat_view_stmt(); -} -inline ::pg_query::RefreshMatViewStmt* Node::unsafe_arena_release_refresh_mat_view_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.refresh_mat_view_stmt) - if (_internal_has_refresh_mat_view_stmt()) { - clear_has_node(); - ::pg_query::RefreshMatViewStmt* temp = _impl_.node_.refresh_mat_view_stmt_; - _impl_.node_.refresh_mat_view_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_refresh_mat_view_stmt(::pg_query::RefreshMatViewStmt* refresh_mat_view_stmt) { - clear_node(); - if (refresh_mat_view_stmt) { - set_has_refresh_mat_view_stmt(); - _impl_.node_.refresh_mat_view_stmt_ = refresh_mat_view_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.refresh_mat_view_stmt) -} -inline ::pg_query::RefreshMatViewStmt* Node::_internal_mutable_refresh_mat_view_stmt() { - if (!_internal_has_refresh_mat_view_stmt()) { - clear_node(); - set_has_refresh_mat_view_stmt(); - _impl_.node_.refresh_mat_view_stmt_ = CreateMaybeMessage< ::pg_query::RefreshMatViewStmt >(GetArenaForAllocation()); - } - return _impl_.node_.refresh_mat_view_stmt_; -} -inline ::pg_query::RefreshMatViewStmt* Node::mutable_refresh_mat_view_stmt() { - ::pg_query::RefreshMatViewStmt* _msg = _internal_mutable_refresh_mat_view_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.refresh_mat_view_stmt) - return _msg; -} - -// .pg_query.ReplicaIdentityStmt replica_identity_stmt = 156 [json_name = "ReplicaIdentityStmt"]; -inline bool Node::_internal_has_replica_identity_stmt() const { - return node_case() == kReplicaIdentityStmt; -} -inline bool Node::has_replica_identity_stmt() const { - return _internal_has_replica_identity_stmt(); -} -inline void Node::set_has_replica_identity_stmt() { - _impl_._oneof_case_[0] = kReplicaIdentityStmt; -} -inline void Node::clear_replica_identity_stmt() { - if (_internal_has_replica_identity_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.replica_identity_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::ReplicaIdentityStmt* Node::release_replica_identity_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.replica_identity_stmt) - if (_internal_has_replica_identity_stmt()) { - clear_has_node(); - ::pg_query::ReplicaIdentityStmt* temp = _impl_.node_.replica_identity_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.replica_identity_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::ReplicaIdentityStmt& Node::_internal_replica_identity_stmt() const { - return _internal_has_replica_identity_stmt() - ? *_impl_.node_.replica_identity_stmt_ - : reinterpret_cast< ::pg_query::ReplicaIdentityStmt&>(::pg_query::_ReplicaIdentityStmt_default_instance_); -} -inline const ::pg_query::ReplicaIdentityStmt& Node::replica_identity_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.replica_identity_stmt) - return _internal_replica_identity_stmt(); -} -inline ::pg_query::ReplicaIdentityStmt* Node::unsafe_arena_release_replica_identity_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.replica_identity_stmt) - if (_internal_has_replica_identity_stmt()) { - clear_has_node(); - ::pg_query::ReplicaIdentityStmt* temp = _impl_.node_.replica_identity_stmt_; - _impl_.node_.replica_identity_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_replica_identity_stmt(::pg_query::ReplicaIdentityStmt* replica_identity_stmt) { - clear_node(); - if (replica_identity_stmt) { - set_has_replica_identity_stmt(); - _impl_.node_.replica_identity_stmt_ = replica_identity_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.replica_identity_stmt) -} -inline ::pg_query::ReplicaIdentityStmt* Node::_internal_mutable_replica_identity_stmt() { - if (!_internal_has_replica_identity_stmt()) { - clear_node(); - set_has_replica_identity_stmt(); - _impl_.node_.replica_identity_stmt_ = CreateMaybeMessage< ::pg_query::ReplicaIdentityStmt >(GetArenaForAllocation()); - } - return _impl_.node_.replica_identity_stmt_; -} -inline ::pg_query::ReplicaIdentityStmt* Node::mutable_replica_identity_stmt() { - ::pg_query::ReplicaIdentityStmt* _msg = _internal_mutable_replica_identity_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.replica_identity_stmt) - return _msg; -} - -// .pg_query.AlterSystemStmt alter_system_stmt = 157 [json_name = "AlterSystemStmt"]; -inline bool Node::_internal_has_alter_system_stmt() const { - return node_case() == kAlterSystemStmt; -} -inline bool Node::has_alter_system_stmt() const { - return _internal_has_alter_system_stmt(); -} -inline void Node::set_has_alter_system_stmt() { - _impl_._oneof_case_[0] = kAlterSystemStmt; -} -inline void Node::clear_alter_system_stmt() { - if (_internal_has_alter_system_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_system_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterSystemStmt* Node::release_alter_system_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_system_stmt) - if (_internal_has_alter_system_stmt()) { - clear_has_node(); - ::pg_query::AlterSystemStmt* temp = _impl_.node_.alter_system_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_system_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterSystemStmt& Node::_internal_alter_system_stmt() const { - return _internal_has_alter_system_stmt() - ? *_impl_.node_.alter_system_stmt_ - : reinterpret_cast< ::pg_query::AlterSystemStmt&>(::pg_query::_AlterSystemStmt_default_instance_); -} -inline const ::pg_query::AlterSystemStmt& Node::alter_system_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_system_stmt) - return _internal_alter_system_stmt(); -} -inline ::pg_query::AlterSystemStmt* Node::unsafe_arena_release_alter_system_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_system_stmt) - if (_internal_has_alter_system_stmt()) { - clear_has_node(); - ::pg_query::AlterSystemStmt* temp = _impl_.node_.alter_system_stmt_; - _impl_.node_.alter_system_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_system_stmt(::pg_query::AlterSystemStmt* alter_system_stmt) { - clear_node(); - if (alter_system_stmt) { - set_has_alter_system_stmt(); - _impl_.node_.alter_system_stmt_ = alter_system_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_system_stmt) -} -inline ::pg_query::AlterSystemStmt* Node::_internal_mutable_alter_system_stmt() { - if (!_internal_has_alter_system_stmt()) { - clear_node(); - set_has_alter_system_stmt(); - _impl_.node_.alter_system_stmt_ = CreateMaybeMessage< ::pg_query::AlterSystemStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_system_stmt_; -} -inline ::pg_query::AlterSystemStmt* Node::mutable_alter_system_stmt() { - ::pg_query::AlterSystemStmt* _msg = _internal_mutable_alter_system_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_system_stmt) - return _msg; -} - -// .pg_query.CreatePolicyStmt create_policy_stmt = 158 [json_name = "CreatePolicyStmt"]; -inline bool Node::_internal_has_create_policy_stmt() const { - return node_case() == kCreatePolicyStmt; -} -inline bool Node::has_create_policy_stmt() const { - return _internal_has_create_policy_stmt(); -} -inline void Node::set_has_create_policy_stmt() { - _impl_._oneof_case_[0] = kCreatePolicyStmt; -} -inline void Node::clear_create_policy_stmt() { - if (_internal_has_create_policy_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_policy_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreatePolicyStmt* Node::release_create_policy_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_policy_stmt) - if (_internal_has_create_policy_stmt()) { - clear_has_node(); - ::pg_query::CreatePolicyStmt* temp = _impl_.node_.create_policy_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_policy_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreatePolicyStmt& Node::_internal_create_policy_stmt() const { - return _internal_has_create_policy_stmt() - ? *_impl_.node_.create_policy_stmt_ - : reinterpret_cast< ::pg_query::CreatePolicyStmt&>(::pg_query::_CreatePolicyStmt_default_instance_); -} -inline const ::pg_query::CreatePolicyStmt& Node::create_policy_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_policy_stmt) - return _internal_create_policy_stmt(); -} -inline ::pg_query::CreatePolicyStmt* Node::unsafe_arena_release_create_policy_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_policy_stmt) - if (_internal_has_create_policy_stmt()) { - clear_has_node(); - ::pg_query::CreatePolicyStmt* temp = _impl_.node_.create_policy_stmt_; - _impl_.node_.create_policy_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_policy_stmt(::pg_query::CreatePolicyStmt* create_policy_stmt) { - clear_node(); - if (create_policy_stmt) { - set_has_create_policy_stmt(); - _impl_.node_.create_policy_stmt_ = create_policy_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_policy_stmt) -} -inline ::pg_query::CreatePolicyStmt* Node::_internal_mutable_create_policy_stmt() { - if (!_internal_has_create_policy_stmt()) { - clear_node(); - set_has_create_policy_stmt(); - _impl_.node_.create_policy_stmt_ = CreateMaybeMessage< ::pg_query::CreatePolicyStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_policy_stmt_; -} -inline ::pg_query::CreatePolicyStmt* Node::mutable_create_policy_stmt() { - ::pg_query::CreatePolicyStmt* _msg = _internal_mutable_create_policy_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_policy_stmt) - return _msg; -} - -// .pg_query.AlterPolicyStmt alter_policy_stmt = 159 [json_name = "AlterPolicyStmt"]; -inline bool Node::_internal_has_alter_policy_stmt() const { - return node_case() == kAlterPolicyStmt; -} -inline bool Node::has_alter_policy_stmt() const { - return _internal_has_alter_policy_stmt(); -} -inline void Node::set_has_alter_policy_stmt() { - _impl_._oneof_case_[0] = kAlterPolicyStmt; -} -inline void Node::clear_alter_policy_stmt() { - if (_internal_has_alter_policy_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_policy_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterPolicyStmt* Node::release_alter_policy_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_policy_stmt) - if (_internal_has_alter_policy_stmt()) { - clear_has_node(); - ::pg_query::AlterPolicyStmt* temp = _impl_.node_.alter_policy_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_policy_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterPolicyStmt& Node::_internal_alter_policy_stmt() const { - return _internal_has_alter_policy_stmt() - ? *_impl_.node_.alter_policy_stmt_ - : reinterpret_cast< ::pg_query::AlterPolicyStmt&>(::pg_query::_AlterPolicyStmt_default_instance_); -} -inline const ::pg_query::AlterPolicyStmt& Node::alter_policy_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_policy_stmt) - return _internal_alter_policy_stmt(); -} -inline ::pg_query::AlterPolicyStmt* Node::unsafe_arena_release_alter_policy_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_policy_stmt) - if (_internal_has_alter_policy_stmt()) { - clear_has_node(); - ::pg_query::AlterPolicyStmt* temp = _impl_.node_.alter_policy_stmt_; - _impl_.node_.alter_policy_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_policy_stmt(::pg_query::AlterPolicyStmt* alter_policy_stmt) { - clear_node(); - if (alter_policy_stmt) { - set_has_alter_policy_stmt(); - _impl_.node_.alter_policy_stmt_ = alter_policy_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_policy_stmt) -} -inline ::pg_query::AlterPolicyStmt* Node::_internal_mutable_alter_policy_stmt() { - if (!_internal_has_alter_policy_stmt()) { - clear_node(); - set_has_alter_policy_stmt(); - _impl_.node_.alter_policy_stmt_ = CreateMaybeMessage< ::pg_query::AlterPolicyStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_policy_stmt_; -} -inline ::pg_query::AlterPolicyStmt* Node::mutable_alter_policy_stmt() { - ::pg_query::AlterPolicyStmt* _msg = _internal_mutable_alter_policy_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_policy_stmt) - return _msg; -} - -// .pg_query.CreateTransformStmt create_transform_stmt = 160 [json_name = "CreateTransformStmt"]; -inline bool Node::_internal_has_create_transform_stmt() const { - return node_case() == kCreateTransformStmt; -} -inline bool Node::has_create_transform_stmt() const { - return _internal_has_create_transform_stmt(); -} -inline void Node::set_has_create_transform_stmt() { - _impl_._oneof_case_[0] = kCreateTransformStmt; -} -inline void Node::clear_create_transform_stmt() { - if (_internal_has_create_transform_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_transform_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateTransformStmt* Node::release_create_transform_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_transform_stmt) - if (_internal_has_create_transform_stmt()) { - clear_has_node(); - ::pg_query::CreateTransformStmt* temp = _impl_.node_.create_transform_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_transform_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateTransformStmt& Node::_internal_create_transform_stmt() const { - return _internal_has_create_transform_stmt() - ? *_impl_.node_.create_transform_stmt_ - : reinterpret_cast< ::pg_query::CreateTransformStmt&>(::pg_query::_CreateTransformStmt_default_instance_); -} -inline const ::pg_query::CreateTransformStmt& Node::create_transform_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_transform_stmt) - return _internal_create_transform_stmt(); -} -inline ::pg_query::CreateTransformStmt* Node::unsafe_arena_release_create_transform_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_transform_stmt) - if (_internal_has_create_transform_stmt()) { - clear_has_node(); - ::pg_query::CreateTransformStmt* temp = _impl_.node_.create_transform_stmt_; - _impl_.node_.create_transform_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_transform_stmt(::pg_query::CreateTransformStmt* create_transform_stmt) { - clear_node(); - if (create_transform_stmt) { - set_has_create_transform_stmt(); - _impl_.node_.create_transform_stmt_ = create_transform_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_transform_stmt) -} -inline ::pg_query::CreateTransformStmt* Node::_internal_mutable_create_transform_stmt() { - if (!_internal_has_create_transform_stmt()) { - clear_node(); - set_has_create_transform_stmt(); - _impl_.node_.create_transform_stmt_ = CreateMaybeMessage< ::pg_query::CreateTransformStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_transform_stmt_; -} -inline ::pg_query::CreateTransformStmt* Node::mutable_create_transform_stmt() { - ::pg_query::CreateTransformStmt* _msg = _internal_mutable_create_transform_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_transform_stmt) - return _msg; -} - -// .pg_query.CreateAmStmt create_am_stmt = 161 [json_name = "CreateAmStmt"]; -inline bool Node::_internal_has_create_am_stmt() const { - return node_case() == kCreateAmStmt; -} -inline bool Node::has_create_am_stmt() const { - return _internal_has_create_am_stmt(); -} -inline void Node::set_has_create_am_stmt() { - _impl_._oneof_case_[0] = kCreateAmStmt; -} -inline void Node::clear_create_am_stmt() { - if (_internal_has_create_am_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_am_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateAmStmt* Node::release_create_am_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_am_stmt) - if (_internal_has_create_am_stmt()) { - clear_has_node(); - ::pg_query::CreateAmStmt* temp = _impl_.node_.create_am_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_am_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateAmStmt& Node::_internal_create_am_stmt() const { - return _internal_has_create_am_stmt() - ? *_impl_.node_.create_am_stmt_ - : reinterpret_cast< ::pg_query::CreateAmStmt&>(::pg_query::_CreateAmStmt_default_instance_); -} -inline const ::pg_query::CreateAmStmt& Node::create_am_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_am_stmt) - return _internal_create_am_stmt(); -} -inline ::pg_query::CreateAmStmt* Node::unsafe_arena_release_create_am_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_am_stmt) - if (_internal_has_create_am_stmt()) { - clear_has_node(); - ::pg_query::CreateAmStmt* temp = _impl_.node_.create_am_stmt_; - _impl_.node_.create_am_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_am_stmt(::pg_query::CreateAmStmt* create_am_stmt) { - clear_node(); - if (create_am_stmt) { - set_has_create_am_stmt(); - _impl_.node_.create_am_stmt_ = create_am_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_am_stmt) -} -inline ::pg_query::CreateAmStmt* Node::_internal_mutable_create_am_stmt() { - if (!_internal_has_create_am_stmt()) { - clear_node(); - set_has_create_am_stmt(); - _impl_.node_.create_am_stmt_ = CreateMaybeMessage< ::pg_query::CreateAmStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_am_stmt_; -} -inline ::pg_query::CreateAmStmt* Node::mutable_create_am_stmt() { - ::pg_query::CreateAmStmt* _msg = _internal_mutable_create_am_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_am_stmt) - return _msg; -} - -// .pg_query.CreatePublicationStmt create_publication_stmt = 162 [json_name = "CreatePublicationStmt"]; -inline bool Node::_internal_has_create_publication_stmt() const { - return node_case() == kCreatePublicationStmt; -} -inline bool Node::has_create_publication_stmt() const { - return _internal_has_create_publication_stmt(); -} -inline void Node::set_has_create_publication_stmt() { - _impl_._oneof_case_[0] = kCreatePublicationStmt; -} -inline void Node::clear_create_publication_stmt() { - if (_internal_has_create_publication_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_publication_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreatePublicationStmt* Node::release_create_publication_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_publication_stmt) - if (_internal_has_create_publication_stmt()) { - clear_has_node(); - ::pg_query::CreatePublicationStmt* temp = _impl_.node_.create_publication_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_publication_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreatePublicationStmt& Node::_internal_create_publication_stmt() const { - return _internal_has_create_publication_stmt() - ? *_impl_.node_.create_publication_stmt_ - : reinterpret_cast< ::pg_query::CreatePublicationStmt&>(::pg_query::_CreatePublicationStmt_default_instance_); -} -inline const ::pg_query::CreatePublicationStmt& Node::create_publication_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_publication_stmt) - return _internal_create_publication_stmt(); -} -inline ::pg_query::CreatePublicationStmt* Node::unsafe_arena_release_create_publication_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_publication_stmt) - if (_internal_has_create_publication_stmt()) { - clear_has_node(); - ::pg_query::CreatePublicationStmt* temp = _impl_.node_.create_publication_stmt_; - _impl_.node_.create_publication_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_publication_stmt(::pg_query::CreatePublicationStmt* create_publication_stmt) { - clear_node(); - if (create_publication_stmt) { - set_has_create_publication_stmt(); - _impl_.node_.create_publication_stmt_ = create_publication_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_publication_stmt) -} -inline ::pg_query::CreatePublicationStmt* Node::_internal_mutable_create_publication_stmt() { - if (!_internal_has_create_publication_stmt()) { - clear_node(); - set_has_create_publication_stmt(); - _impl_.node_.create_publication_stmt_ = CreateMaybeMessage< ::pg_query::CreatePublicationStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_publication_stmt_; -} -inline ::pg_query::CreatePublicationStmt* Node::mutable_create_publication_stmt() { - ::pg_query::CreatePublicationStmt* _msg = _internal_mutable_create_publication_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_publication_stmt) - return _msg; -} - -// .pg_query.AlterPublicationStmt alter_publication_stmt = 163 [json_name = "AlterPublicationStmt"]; -inline bool Node::_internal_has_alter_publication_stmt() const { - return node_case() == kAlterPublicationStmt; -} -inline bool Node::has_alter_publication_stmt() const { - return _internal_has_alter_publication_stmt(); -} -inline void Node::set_has_alter_publication_stmt() { - _impl_._oneof_case_[0] = kAlterPublicationStmt; -} -inline void Node::clear_alter_publication_stmt() { - if (_internal_has_alter_publication_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_publication_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterPublicationStmt* Node::release_alter_publication_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_publication_stmt) - if (_internal_has_alter_publication_stmt()) { - clear_has_node(); - ::pg_query::AlterPublicationStmt* temp = _impl_.node_.alter_publication_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_publication_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterPublicationStmt& Node::_internal_alter_publication_stmt() const { - return _internal_has_alter_publication_stmt() - ? *_impl_.node_.alter_publication_stmt_ - : reinterpret_cast< ::pg_query::AlterPublicationStmt&>(::pg_query::_AlterPublicationStmt_default_instance_); -} -inline const ::pg_query::AlterPublicationStmt& Node::alter_publication_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_publication_stmt) - return _internal_alter_publication_stmt(); -} -inline ::pg_query::AlterPublicationStmt* Node::unsafe_arena_release_alter_publication_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_publication_stmt) - if (_internal_has_alter_publication_stmt()) { - clear_has_node(); - ::pg_query::AlterPublicationStmt* temp = _impl_.node_.alter_publication_stmt_; - _impl_.node_.alter_publication_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_publication_stmt(::pg_query::AlterPublicationStmt* alter_publication_stmt) { - clear_node(); - if (alter_publication_stmt) { - set_has_alter_publication_stmt(); - _impl_.node_.alter_publication_stmt_ = alter_publication_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_publication_stmt) -} -inline ::pg_query::AlterPublicationStmt* Node::_internal_mutable_alter_publication_stmt() { - if (!_internal_has_alter_publication_stmt()) { - clear_node(); - set_has_alter_publication_stmt(); - _impl_.node_.alter_publication_stmt_ = CreateMaybeMessage< ::pg_query::AlterPublicationStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_publication_stmt_; -} -inline ::pg_query::AlterPublicationStmt* Node::mutable_alter_publication_stmt() { - ::pg_query::AlterPublicationStmt* _msg = _internal_mutable_alter_publication_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_publication_stmt) - return _msg; -} - -// .pg_query.CreateSubscriptionStmt create_subscription_stmt = 164 [json_name = "CreateSubscriptionStmt"]; -inline bool Node::_internal_has_create_subscription_stmt() const { - return node_case() == kCreateSubscriptionStmt; -} -inline bool Node::has_create_subscription_stmt() const { - return _internal_has_create_subscription_stmt(); -} -inline void Node::set_has_create_subscription_stmt() { - _impl_._oneof_case_[0] = kCreateSubscriptionStmt; -} -inline void Node::clear_create_subscription_stmt() { - if (_internal_has_create_subscription_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_subscription_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateSubscriptionStmt* Node::release_create_subscription_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_subscription_stmt) - if (_internal_has_create_subscription_stmt()) { - clear_has_node(); - ::pg_query::CreateSubscriptionStmt* temp = _impl_.node_.create_subscription_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_subscription_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateSubscriptionStmt& Node::_internal_create_subscription_stmt() const { - return _internal_has_create_subscription_stmt() - ? *_impl_.node_.create_subscription_stmt_ - : reinterpret_cast< ::pg_query::CreateSubscriptionStmt&>(::pg_query::_CreateSubscriptionStmt_default_instance_); -} -inline const ::pg_query::CreateSubscriptionStmt& Node::create_subscription_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_subscription_stmt) - return _internal_create_subscription_stmt(); -} -inline ::pg_query::CreateSubscriptionStmt* Node::unsafe_arena_release_create_subscription_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_subscription_stmt) - if (_internal_has_create_subscription_stmt()) { - clear_has_node(); - ::pg_query::CreateSubscriptionStmt* temp = _impl_.node_.create_subscription_stmt_; - _impl_.node_.create_subscription_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_subscription_stmt(::pg_query::CreateSubscriptionStmt* create_subscription_stmt) { - clear_node(); - if (create_subscription_stmt) { - set_has_create_subscription_stmt(); - _impl_.node_.create_subscription_stmt_ = create_subscription_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_subscription_stmt) -} -inline ::pg_query::CreateSubscriptionStmt* Node::_internal_mutable_create_subscription_stmt() { - if (!_internal_has_create_subscription_stmt()) { - clear_node(); - set_has_create_subscription_stmt(); - _impl_.node_.create_subscription_stmt_ = CreateMaybeMessage< ::pg_query::CreateSubscriptionStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_subscription_stmt_; -} -inline ::pg_query::CreateSubscriptionStmt* Node::mutable_create_subscription_stmt() { - ::pg_query::CreateSubscriptionStmt* _msg = _internal_mutable_create_subscription_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_subscription_stmt) - return _msg; -} - -// .pg_query.AlterSubscriptionStmt alter_subscription_stmt = 165 [json_name = "AlterSubscriptionStmt"]; -inline bool Node::_internal_has_alter_subscription_stmt() const { - return node_case() == kAlterSubscriptionStmt; -} -inline bool Node::has_alter_subscription_stmt() const { - return _internal_has_alter_subscription_stmt(); -} -inline void Node::set_has_alter_subscription_stmt() { - _impl_._oneof_case_[0] = kAlterSubscriptionStmt; -} -inline void Node::clear_alter_subscription_stmt() { - if (_internal_has_alter_subscription_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_subscription_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterSubscriptionStmt* Node::release_alter_subscription_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_subscription_stmt) - if (_internal_has_alter_subscription_stmt()) { - clear_has_node(); - ::pg_query::AlterSubscriptionStmt* temp = _impl_.node_.alter_subscription_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_subscription_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterSubscriptionStmt& Node::_internal_alter_subscription_stmt() const { - return _internal_has_alter_subscription_stmt() - ? *_impl_.node_.alter_subscription_stmt_ - : reinterpret_cast< ::pg_query::AlterSubscriptionStmt&>(::pg_query::_AlterSubscriptionStmt_default_instance_); -} -inline const ::pg_query::AlterSubscriptionStmt& Node::alter_subscription_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_subscription_stmt) - return _internal_alter_subscription_stmt(); -} -inline ::pg_query::AlterSubscriptionStmt* Node::unsafe_arena_release_alter_subscription_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_subscription_stmt) - if (_internal_has_alter_subscription_stmt()) { - clear_has_node(); - ::pg_query::AlterSubscriptionStmt* temp = _impl_.node_.alter_subscription_stmt_; - _impl_.node_.alter_subscription_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_subscription_stmt(::pg_query::AlterSubscriptionStmt* alter_subscription_stmt) { - clear_node(); - if (alter_subscription_stmt) { - set_has_alter_subscription_stmt(); - _impl_.node_.alter_subscription_stmt_ = alter_subscription_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_subscription_stmt) -} -inline ::pg_query::AlterSubscriptionStmt* Node::_internal_mutable_alter_subscription_stmt() { - if (!_internal_has_alter_subscription_stmt()) { - clear_node(); - set_has_alter_subscription_stmt(); - _impl_.node_.alter_subscription_stmt_ = CreateMaybeMessage< ::pg_query::AlterSubscriptionStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_subscription_stmt_; -} -inline ::pg_query::AlterSubscriptionStmt* Node::mutable_alter_subscription_stmt() { - ::pg_query::AlterSubscriptionStmt* _msg = _internal_mutable_alter_subscription_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_subscription_stmt) - return _msg; -} - -// .pg_query.DropSubscriptionStmt drop_subscription_stmt = 166 [json_name = "DropSubscriptionStmt"]; -inline bool Node::_internal_has_drop_subscription_stmt() const { - return node_case() == kDropSubscriptionStmt; -} -inline bool Node::has_drop_subscription_stmt() const { - return _internal_has_drop_subscription_stmt(); -} -inline void Node::set_has_drop_subscription_stmt() { - _impl_._oneof_case_[0] = kDropSubscriptionStmt; -} -inline void Node::clear_drop_subscription_stmt() { - if (_internal_has_drop_subscription_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.drop_subscription_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::DropSubscriptionStmt* Node::release_drop_subscription_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.drop_subscription_stmt) - if (_internal_has_drop_subscription_stmt()) { - clear_has_node(); - ::pg_query::DropSubscriptionStmt* temp = _impl_.node_.drop_subscription_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.drop_subscription_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::DropSubscriptionStmt& Node::_internal_drop_subscription_stmt() const { - return _internal_has_drop_subscription_stmt() - ? *_impl_.node_.drop_subscription_stmt_ - : reinterpret_cast< ::pg_query::DropSubscriptionStmt&>(::pg_query::_DropSubscriptionStmt_default_instance_); -} -inline const ::pg_query::DropSubscriptionStmt& Node::drop_subscription_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.drop_subscription_stmt) - return _internal_drop_subscription_stmt(); -} -inline ::pg_query::DropSubscriptionStmt* Node::unsafe_arena_release_drop_subscription_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.drop_subscription_stmt) - if (_internal_has_drop_subscription_stmt()) { - clear_has_node(); - ::pg_query::DropSubscriptionStmt* temp = _impl_.node_.drop_subscription_stmt_; - _impl_.node_.drop_subscription_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_drop_subscription_stmt(::pg_query::DropSubscriptionStmt* drop_subscription_stmt) { - clear_node(); - if (drop_subscription_stmt) { - set_has_drop_subscription_stmt(); - _impl_.node_.drop_subscription_stmt_ = drop_subscription_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.drop_subscription_stmt) -} -inline ::pg_query::DropSubscriptionStmt* Node::_internal_mutable_drop_subscription_stmt() { - if (!_internal_has_drop_subscription_stmt()) { - clear_node(); - set_has_drop_subscription_stmt(); - _impl_.node_.drop_subscription_stmt_ = CreateMaybeMessage< ::pg_query::DropSubscriptionStmt >(GetArenaForAllocation()); - } - return _impl_.node_.drop_subscription_stmt_; -} -inline ::pg_query::DropSubscriptionStmt* Node::mutable_drop_subscription_stmt() { - ::pg_query::DropSubscriptionStmt* _msg = _internal_mutable_drop_subscription_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.drop_subscription_stmt) - return _msg; -} - -// .pg_query.CreateStatsStmt create_stats_stmt = 167 [json_name = "CreateStatsStmt"]; -inline bool Node::_internal_has_create_stats_stmt() const { - return node_case() == kCreateStatsStmt; -} -inline bool Node::has_create_stats_stmt() const { - return _internal_has_create_stats_stmt(); -} -inline void Node::set_has_create_stats_stmt() { - _impl_._oneof_case_[0] = kCreateStatsStmt; -} -inline void Node::clear_create_stats_stmt() { - if (_internal_has_create_stats_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_stats_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateStatsStmt* Node::release_create_stats_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_stats_stmt) - if (_internal_has_create_stats_stmt()) { - clear_has_node(); - ::pg_query::CreateStatsStmt* temp = _impl_.node_.create_stats_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_stats_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateStatsStmt& Node::_internal_create_stats_stmt() const { - return _internal_has_create_stats_stmt() - ? *_impl_.node_.create_stats_stmt_ - : reinterpret_cast< ::pg_query::CreateStatsStmt&>(::pg_query::_CreateStatsStmt_default_instance_); -} -inline const ::pg_query::CreateStatsStmt& Node::create_stats_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_stats_stmt) - return _internal_create_stats_stmt(); -} -inline ::pg_query::CreateStatsStmt* Node::unsafe_arena_release_create_stats_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_stats_stmt) - if (_internal_has_create_stats_stmt()) { - clear_has_node(); - ::pg_query::CreateStatsStmt* temp = _impl_.node_.create_stats_stmt_; - _impl_.node_.create_stats_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_stats_stmt(::pg_query::CreateStatsStmt* create_stats_stmt) { - clear_node(); - if (create_stats_stmt) { - set_has_create_stats_stmt(); - _impl_.node_.create_stats_stmt_ = create_stats_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_stats_stmt) -} -inline ::pg_query::CreateStatsStmt* Node::_internal_mutable_create_stats_stmt() { - if (!_internal_has_create_stats_stmt()) { - clear_node(); - set_has_create_stats_stmt(); - _impl_.node_.create_stats_stmt_ = CreateMaybeMessage< ::pg_query::CreateStatsStmt >(GetArenaForAllocation()); - } - return _impl_.node_.create_stats_stmt_; -} -inline ::pg_query::CreateStatsStmt* Node::mutable_create_stats_stmt() { - ::pg_query::CreateStatsStmt* _msg = _internal_mutable_create_stats_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_stats_stmt) - return _msg; -} - -// .pg_query.AlterCollationStmt alter_collation_stmt = 168 [json_name = "AlterCollationStmt"]; -inline bool Node::_internal_has_alter_collation_stmt() const { - return node_case() == kAlterCollationStmt; -} -inline bool Node::has_alter_collation_stmt() const { - return _internal_has_alter_collation_stmt(); -} -inline void Node::set_has_alter_collation_stmt() { - _impl_._oneof_case_[0] = kAlterCollationStmt; -} -inline void Node::clear_alter_collation_stmt() { - if (_internal_has_alter_collation_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_collation_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterCollationStmt* Node::release_alter_collation_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_collation_stmt) - if (_internal_has_alter_collation_stmt()) { - clear_has_node(); - ::pg_query::AlterCollationStmt* temp = _impl_.node_.alter_collation_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_collation_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterCollationStmt& Node::_internal_alter_collation_stmt() const { - return _internal_has_alter_collation_stmt() - ? *_impl_.node_.alter_collation_stmt_ - : reinterpret_cast< ::pg_query::AlterCollationStmt&>(::pg_query::_AlterCollationStmt_default_instance_); -} -inline const ::pg_query::AlterCollationStmt& Node::alter_collation_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_collation_stmt) - return _internal_alter_collation_stmt(); -} -inline ::pg_query::AlterCollationStmt* Node::unsafe_arena_release_alter_collation_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_collation_stmt) - if (_internal_has_alter_collation_stmt()) { - clear_has_node(); - ::pg_query::AlterCollationStmt* temp = _impl_.node_.alter_collation_stmt_; - _impl_.node_.alter_collation_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_collation_stmt(::pg_query::AlterCollationStmt* alter_collation_stmt) { - clear_node(); - if (alter_collation_stmt) { - set_has_alter_collation_stmt(); - _impl_.node_.alter_collation_stmt_ = alter_collation_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_collation_stmt) -} -inline ::pg_query::AlterCollationStmt* Node::_internal_mutable_alter_collation_stmt() { - if (!_internal_has_alter_collation_stmt()) { - clear_node(); - set_has_alter_collation_stmt(); - _impl_.node_.alter_collation_stmt_ = CreateMaybeMessage< ::pg_query::AlterCollationStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_collation_stmt_; -} -inline ::pg_query::AlterCollationStmt* Node::mutable_alter_collation_stmt() { - ::pg_query::AlterCollationStmt* _msg = _internal_mutable_alter_collation_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_collation_stmt) - return _msg; -} - -// .pg_query.CallStmt call_stmt = 169 [json_name = "CallStmt"]; -inline bool Node::_internal_has_call_stmt() const { - return node_case() == kCallStmt; -} -inline bool Node::has_call_stmt() const { - return _internal_has_call_stmt(); -} -inline void Node::set_has_call_stmt() { - _impl_._oneof_case_[0] = kCallStmt; -} -inline void Node::clear_call_stmt() { - if (_internal_has_call_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.call_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::CallStmt* Node::release_call_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.call_stmt) - if (_internal_has_call_stmt()) { - clear_has_node(); - ::pg_query::CallStmt* temp = _impl_.node_.call_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.call_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CallStmt& Node::_internal_call_stmt() const { - return _internal_has_call_stmt() - ? *_impl_.node_.call_stmt_ - : reinterpret_cast< ::pg_query::CallStmt&>(::pg_query::_CallStmt_default_instance_); -} -inline const ::pg_query::CallStmt& Node::call_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.call_stmt) - return _internal_call_stmt(); -} -inline ::pg_query::CallStmt* Node::unsafe_arena_release_call_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.call_stmt) - if (_internal_has_call_stmt()) { - clear_has_node(); - ::pg_query::CallStmt* temp = _impl_.node_.call_stmt_; - _impl_.node_.call_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_call_stmt(::pg_query::CallStmt* call_stmt) { - clear_node(); - if (call_stmt) { - set_has_call_stmt(); - _impl_.node_.call_stmt_ = call_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.call_stmt) -} -inline ::pg_query::CallStmt* Node::_internal_mutable_call_stmt() { - if (!_internal_has_call_stmt()) { - clear_node(); - set_has_call_stmt(); - _impl_.node_.call_stmt_ = CreateMaybeMessage< ::pg_query::CallStmt >(GetArenaForAllocation()); - } - return _impl_.node_.call_stmt_; -} -inline ::pg_query::CallStmt* Node::mutable_call_stmt() { - ::pg_query::CallStmt* _msg = _internal_mutable_call_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.call_stmt) - return _msg; -} - -// .pg_query.AlterStatsStmt alter_stats_stmt = 170 [json_name = "AlterStatsStmt"]; -inline bool Node::_internal_has_alter_stats_stmt() const { - return node_case() == kAlterStatsStmt; -} -inline bool Node::has_alter_stats_stmt() const { - return _internal_has_alter_stats_stmt(); -} -inline void Node::set_has_alter_stats_stmt() { - _impl_._oneof_case_[0] = kAlterStatsStmt; -} -inline void Node::clear_alter_stats_stmt() { - if (_internal_has_alter_stats_stmt()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.alter_stats_stmt_; - } - clear_has_node(); - } -} -inline ::pg_query::AlterStatsStmt* Node::release_alter_stats_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Node.alter_stats_stmt) - if (_internal_has_alter_stats_stmt()) { - clear_has_node(); - ::pg_query::AlterStatsStmt* temp = _impl_.node_.alter_stats_stmt_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.alter_stats_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AlterStatsStmt& Node::_internal_alter_stats_stmt() const { - return _internal_has_alter_stats_stmt() - ? *_impl_.node_.alter_stats_stmt_ - : reinterpret_cast< ::pg_query::AlterStatsStmt&>(::pg_query::_AlterStatsStmt_default_instance_); -} -inline const ::pg_query::AlterStatsStmt& Node::alter_stats_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Node.alter_stats_stmt) - return _internal_alter_stats_stmt(); -} -inline ::pg_query::AlterStatsStmt* Node::unsafe_arena_release_alter_stats_stmt() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.alter_stats_stmt) - if (_internal_has_alter_stats_stmt()) { - clear_has_node(); - ::pg_query::AlterStatsStmt* temp = _impl_.node_.alter_stats_stmt_; - _impl_.node_.alter_stats_stmt_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_alter_stats_stmt(::pg_query::AlterStatsStmt* alter_stats_stmt) { - clear_node(); - if (alter_stats_stmt) { - set_has_alter_stats_stmt(); - _impl_.node_.alter_stats_stmt_ = alter_stats_stmt; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.alter_stats_stmt) -} -inline ::pg_query::AlterStatsStmt* Node::_internal_mutable_alter_stats_stmt() { - if (!_internal_has_alter_stats_stmt()) { - clear_node(); - set_has_alter_stats_stmt(); - _impl_.node_.alter_stats_stmt_ = CreateMaybeMessage< ::pg_query::AlterStatsStmt >(GetArenaForAllocation()); - } - return _impl_.node_.alter_stats_stmt_; -} -inline ::pg_query::AlterStatsStmt* Node::mutable_alter_stats_stmt() { - ::pg_query::AlterStatsStmt* _msg = _internal_mutable_alter_stats_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.alter_stats_stmt) - return _msg; -} - -// .pg_query.A_Expr a_expr = 171 [json_name = "A_Expr"]; -inline bool Node::_internal_has_a_expr() const { - return node_case() == kAExpr; -} -inline bool Node::has_a_expr() const { - return _internal_has_a_expr(); -} -inline void Node::set_has_a_expr() { - _impl_._oneof_case_[0] = kAExpr; -} -inline void Node::clear_a_expr() { - if (_internal_has_a_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.a_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::A_Expr* Node::release_a_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.a_expr) - if (_internal_has_a_expr()) { - clear_has_node(); - ::pg_query::A_Expr* temp = _impl_.node_.a_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.a_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::A_Expr& Node::_internal_a_expr() const { - return _internal_has_a_expr() - ? *_impl_.node_.a_expr_ - : reinterpret_cast< ::pg_query::A_Expr&>(::pg_query::_A_Expr_default_instance_); -} -inline const ::pg_query::A_Expr& Node::a_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.a_expr) - return _internal_a_expr(); -} -inline ::pg_query::A_Expr* Node::unsafe_arena_release_a_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.a_expr) - if (_internal_has_a_expr()) { - clear_has_node(); - ::pg_query::A_Expr* temp = _impl_.node_.a_expr_; - _impl_.node_.a_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_a_expr(::pg_query::A_Expr* a_expr) { - clear_node(); - if (a_expr) { - set_has_a_expr(); - _impl_.node_.a_expr_ = a_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.a_expr) -} -inline ::pg_query::A_Expr* Node::_internal_mutable_a_expr() { - if (!_internal_has_a_expr()) { - clear_node(); - set_has_a_expr(); - _impl_.node_.a_expr_ = CreateMaybeMessage< ::pg_query::A_Expr >(GetArenaForAllocation()); - } - return _impl_.node_.a_expr_; -} -inline ::pg_query::A_Expr* Node::mutable_a_expr() { - ::pg_query::A_Expr* _msg = _internal_mutable_a_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.a_expr) - return _msg; -} - -// .pg_query.ColumnRef column_ref = 172 [json_name = "ColumnRef"]; -inline bool Node::_internal_has_column_ref() const { - return node_case() == kColumnRef; -} -inline bool Node::has_column_ref() const { - return _internal_has_column_ref(); -} -inline void Node::set_has_column_ref() { - _impl_._oneof_case_[0] = kColumnRef; -} -inline void Node::clear_column_ref() { - if (_internal_has_column_ref()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.column_ref_; - } - clear_has_node(); - } -} -inline ::pg_query::ColumnRef* Node::release_column_ref() { - // @@protoc_insertion_point(field_release:pg_query.Node.column_ref) - if (_internal_has_column_ref()) { - clear_has_node(); - ::pg_query::ColumnRef* temp = _impl_.node_.column_ref_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.column_ref_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::ColumnRef& Node::_internal_column_ref() const { - return _internal_has_column_ref() - ? *_impl_.node_.column_ref_ - : reinterpret_cast< ::pg_query::ColumnRef&>(::pg_query::_ColumnRef_default_instance_); -} -inline const ::pg_query::ColumnRef& Node::column_ref() const { - // @@protoc_insertion_point(field_get:pg_query.Node.column_ref) - return _internal_column_ref(); -} -inline ::pg_query::ColumnRef* Node::unsafe_arena_release_column_ref() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.column_ref) - if (_internal_has_column_ref()) { - clear_has_node(); - ::pg_query::ColumnRef* temp = _impl_.node_.column_ref_; - _impl_.node_.column_ref_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_column_ref(::pg_query::ColumnRef* column_ref) { - clear_node(); - if (column_ref) { - set_has_column_ref(); - _impl_.node_.column_ref_ = column_ref; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.column_ref) -} -inline ::pg_query::ColumnRef* Node::_internal_mutable_column_ref() { - if (!_internal_has_column_ref()) { - clear_node(); - set_has_column_ref(); - _impl_.node_.column_ref_ = CreateMaybeMessage< ::pg_query::ColumnRef >(GetArenaForAllocation()); - } - return _impl_.node_.column_ref_; -} -inline ::pg_query::ColumnRef* Node::mutable_column_ref() { - ::pg_query::ColumnRef* _msg = _internal_mutable_column_ref(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.column_ref) - return _msg; -} - -// .pg_query.ParamRef param_ref = 173 [json_name = "ParamRef"]; -inline bool Node::_internal_has_param_ref() const { - return node_case() == kParamRef; -} -inline bool Node::has_param_ref() const { - return _internal_has_param_ref(); -} -inline void Node::set_has_param_ref() { - _impl_._oneof_case_[0] = kParamRef; -} -inline void Node::clear_param_ref() { - if (_internal_has_param_ref()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.param_ref_; - } - clear_has_node(); - } -} -inline ::pg_query::ParamRef* Node::release_param_ref() { - // @@protoc_insertion_point(field_release:pg_query.Node.param_ref) - if (_internal_has_param_ref()) { - clear_has_node(); - ::pg_query::ParamRef* temp = _impl_.node_.param_ref_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.param_ref_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::ParamRef& Node::_internal_param_ref() const { - return _internal_has_param_ref() - ? *_impl_.node_.param_ref_ - : reinterpret_cast< ::pg_query::ParamRef&>(::pg_query::_ParamRef_default_instance_); -} -inline const ::pg_query::ParamRef& Node::param_ref() const { - // @@protoc_insertion_point(field_get:pg_query.Node.param_ref) - return _internal_param_ref(); -} -inline ::pg_query::ParamRef* Node::unsafe_arena_release_param_ref() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.param_ref) - if (_internal_has_param_ref()) { - clear_has_node(); - ::pg_query::ParamRef* temp = _impl_.node_.param_ref_; - _impl_.node_.param_ref_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_param_ref(::pg_query::ParamRef* param_ref) { - clear_node(); - if (param_ref) { - set_has_param_ref(); - _impl_.node_.param_ref_ = param_ref; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.param_ref) -} -inline ::pg_query::ParamRef* Node::_internal_mutable_param_ref() { - if (!_internal_has_param_ref()) { - clear_node(); - set_has_param_ref(); - _impl_.node_.param_ref_ = CreateMaybeMessage< ::pg_query::ParamRef >(GetArenaForAllocation()); - } - return _impl_.node_.param_ref_; -} -inline ::pg_query::ParamRef* Node::mutable_param_ref() { - ::pg_query::ParamRef* _msg = _internal_mutable_param_ref(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.param_ref) - return _msg; -} - -// .pg_query.FuncCall func_call = 174 [json_name = "FuncCall"]; -inline bool Node::_internal_has_func_call() const { - return node_case() == kFuncCall; -} -inline bool Node::has_func_call() const { - return _internal_has_func_call(); -} -inline void Node::set_has_func_call() { - _impl_._oneof_case_[0] = kFuncCall; -} -inline void Node::clear_func_call() { - if (_internal_has_func_call()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.func_call_; - } - clear_has_node(); - } -} -inline ::pg_query::FuncCall* Node::release_func_call() { - // @@protoc_insertion_point(field_release:pg_query.Node.func_call) - if (_internal_has_func_call()) { - clear_has_node(); - ::pg_query::FuncCall* temp = _impl_.node_.func_call_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.func_call_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::FuncCall& Node::_internal_func_call() const { - return _internal_has_func_call() - ? *_impl_.node_.func_call_ - : reinterpret_cast< ::pg_query::FuncCall&>(::pg_query::_FuncCall_default_instance_); -} -inline const ::pg_query::FuncCall& Node::func_call() const { - // @@protoc_insertion_point(field_get:pg_query.Node.func_call) - return _internal_func_call(); -} -inline ::pg_query::FuncCall* Node::unsafe_arena_release_func_call() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.func_call) - if (_internal_has_func_call()) { - clear_has_node(); - ::pg_query::FuncCall* temp = _impl_.node_.func_call_; - _impl_.node_.func_call_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_func_call(::pg_query::FuncCall* func_call) { - clear_node(); - if (func_call) { - set_has_func_call(); - _impl_.node_.func_call_ = func_call; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.func_call) -} -inline ::pg_query::FuncCall* Node::_internal_mutable_func_call() { - if (!_internal_has_func_call()) { - clear_node(); - set_has_func_call(); - _impl_.node_.func_call_ = CreateMaybeMessage< ::pg_query::FuncCall >(GetArenaForAllocation()); - } - return _impl_.node_.func_call_; -} -inline ::pg_query::FuncCall* Node::mutable_func_call() { - ::pg_query::FuncCall* _msg = _internal_mutable_func_call(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.func_call) - return _msg; -} - -// .pg_query.A_Star a_star = 175 [json_name = "A_Star"]; -inline bool Node::_internal_has_a_star() const { - return node_case() == kAStar; -} -inline bool Node::has_a_star() const { - return _internal_has_a_star(); -} -inline void Node::set_has_a_star() { - _impl_._oneof_case_[0] = kAStar; -} -inline void Node::clear_a_star() { - if (_internal_has_a_star()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.a_star_; - } - clear_has_node(); - } -} -inline ::pg_query::A_Star* Node::release_a_star() { - // @@protoc_insertion_point(field_release:pg_query.Node.a_star) - if (_internal_has_a_star()) { - clear_has_node(); - ::pg_query::A_Star* temp = _impl_.node_.a_star_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.a_star_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::A_Star& Node::_internal_a_star() const { - return _internal_has_a_star() - ? *_impl_.node_.a_star_ - : reinterpret_cast< ::pg_query::A_Star&>(::pg_query::_A_Star_default_instance_); -} -inline const ::pg_query::A_Star& Node::a_star() const { - // @@protoc_insertion_point(field_get:pg_query.Node.a_star) - return _internal_a_star(); -} -inline ::pg_query::A_Star* Node::unsafe_arena_release_a_star() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.a_star) - if (_internal_has_a_star()) { - clear_has_node(); - ::pg_query::A_Star* temp = _impl_.node_.a_star_; - _impl_.node_.a_star_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_a_star(::pg_query::A_Star* a_star) { - clear_node(); - if (a_star) { - set_has_a_star(); - _impl_.node_.a_star_ = a_star; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.a_star) -} -inline ::pg_query::A_Star* Node::_internal_mutable_a_star() { - if (!_internal_has_a_star()) { - clear_node(); - set_has_a_star(); - _impl_.node_.a_star_ = CreateMaybeMessage< ::pg_query::A_Star >(GetArenaForAllocation()); - } - return _impl_.node_.a_star_; -} -inline ::pg_query::A_Star* Node::mutable_a_star() { - ::pg_query::A_Star* _msg = _internal_mutable_a_star(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.a_star) - return _msg; -} - -// .pg_query.A_Indices a_indices = 176 [json_name = "A_Indices"]; -inline bool Node::_internal_has_a_indices() const { - return node_case() == kAIndices; -} -inline bool Node::has_a_indices() const { - return _internal_has_a_indices(); -} -inline void Node::set_has_a_indices() { - _impl_._oneof_case_[0] = kAIndices; -} -inline void Node::clear_a_indices() { - if (_internal_has_a_indices()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.a_indices_; - } - clear_has_node(); - } -} -inline ::pg_query::A_Indices* Node::release_a_indices() { - // @@protoc_insertion_point(field_release:pg_query.Node.a_indices) - if (_internal_has_a_indices()) { - clear_has_node(); - ::pg_query::A_Indices* temp = _impl_.node_.a_indices_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.a_indices_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::A_Indices& Node::_internal_a_indices() const { - return _internal_has_a_indices() - ? *_impl_.node_.a_indices_ - : reinterpret_cast< ::pg_query::A_Indices&>(::pg_query::_A_Indices_default_instance_); -} -inline const ::pg_query::A_Indices& Node::a_indices() const { - // @@protoc_insertion_point(field_get:pg_query.Node.a_indices) - return _internal_a_indices(); -} -inline ::pg_query::A_Indices* Node::unsafe_arena_release_a_indices() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.a_indices) - if (_internal_has_a_indices()) { - clear_has_node(); - ::pg_query::A_Indices* temp = _impl_.node_.a_indices_; - _impl_.node_.a_indices_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_a_indices(::pg_query::A_Indices* a_indices) { - clear_node(); - if (a_indices) { - set_has_a_indices(); - _impl_.node_.a_indices_ = a_indices; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.a_indices) -} -inline ::pg_query::A_Indices* Node::_internal_mutable_a_indices() { - if (!_internal_has_a_indices()) { - clear_node(); - set_has_a_indices(); - _impl_.node_.a_indices_ = CreateMaybeMessage< ::pg_query::A_Indices >(GetArenaForAllocation()); - } - return _impl_.node_.a_indices_; -} -inline ::pg_query::A_Indices* Node::mutable_a_indices() { - ::pg_query::A_Indices* _msg = _internal_mutable_a_indices(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.a_indices) - return _msg; -} - -// .pg_query.A_Indirection a_indirection = 177 [json_name = "A_Indirection"]; -inline bool Node::_internal_has_a_indirection() const { - return node_case() == kAIndirection; -} -inline bool Node::has_a_indirection() const { - return _internal_has_a_indirection(); -} -inline void Node::set_has_a_indirection() { - _impl_._oneof_case_[0] = kAIndirection; -} -inline void Node::clear_a_indirection() { - if (_internal_has_a_indirection()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.a_indirection_; - } - clear_has_node(); - } -} -inline ::pg_query::A_Indirection* Node::release_a_indirection() { - // @@protoc_insertion_point(field_release:pg_query.Node.a_indirection) - if (_internal_has_a_indirection()) { - clear_has_node(); - ::pg_query::A_Indirection* temp = _impl_.node_.a_indirection_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.a_indirection_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::A_Indirection& Node::_internal_a_indirection() const { - return _internal_has_a_indirection() - ? *_impl_.node_.a_indirection_ - : reinterpret_cast< ::pg_query::A_Indirection&>(::pg_query::_A_Indirection_default_instance_); -} -inline const ::pg_query::A_Indirection& Node::a_indirection() const { - // @@protoc_insertion_point(field_get:pg_query.Node.a_indirection) - return _internal_a_indirection(); -} -inline ::pg_query::A_Indirection* Node::unsafe_arena_release_a_indirection() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.a_indirection) - if (_internal_has_a_indirection()) { - clear_has_node(); - ::pg_query::A_Indirection* temp = _impl_.node_.a_indirection_; - _impl_.node_.a_indirection_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_a_indirection(::pg_query::A_Indirection* a_indirection) { - clear_node(); - if (a_indirection) { - set_has_a_indirection(); - _impl_.node_.a_indirection_ = a_indirection; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.a_indirection) -} -inline ::pg_query::A_Indirection* Node::_internal_mutable_a_indirection() { - if (!_internal_has_a_indirection()) { - clear_node(); - set_has_a_indirection(); - _impl_.node_.a_indirection_ = CreateMaybeMessage< ::pg_query::A_Indirection >(GetArenaForAllocation()); - } - return _impl_.node_.a_indirection_; -} -inline ::pg_query::A_Indirection* Node::mutable_a_indirection() { - ::pg_query::A_Indirection* _msg = _internal_mutable_a_indirection(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.a_indirection) - return _msg; -} - -// .pg_query.A_ArrayExpr a_array_expr = 178 [json_name = "A_ArrayExpr"]; -inline bool Node::_internal_has_a_array_expr() const { - return node_case() == kAArrayExpr; -} -inline bool Node::has_a_array_expr() const { - return _internal_has_a_array_expr(); -} -inline void Node::set_has_a_array_expr() { - _impl_._oneof_case_[0] = kAArrayExpr; -} -inline void Node::clear_a_array_expr() { - if (_internal_has_a_array_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.a_array_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::A_ArrayExpr* Node::release_a_array_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.a_array_expr) - if (_internal_has_a_array_expr()) { - clear_has_node(); - ::pg_query::A_ArrayExpr* temp = _impl_.node_.a_array_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.a_array_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::A_ArrayExpr& Node::_internal_a_array_expr() const { - return _internal_has_a_array_expr() - ? *_impl_.node_.a_array_expr_ - : reinterpret_cast< ::pg_query::A_ArrayExpr&>(::pg_query::_A_ArrayExpr_default_instance_); -} -inline const ::pg_query::A_ArrayExpr& Node::a_array_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.a_array_expr) - return _internal_a_array_expr(); -} -inline ::pg_query::A_ArrayExpr* Node::unsafe_arena_release_a_array_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.a_array_expr) - if (_internal_has_a_array_expr()) { - clear_has_node(); - ::pg_query::A_ArrayExpr* temp = _impl_.node_.a_array_expr_; - _impl_.node_.a_array_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_a_array_expr(::pg_query::A_ArrayExpr* a_array_expr) { - clear_node(); - if (a_array_expr) { - set_has_a_array_expr(); - _impl_.node_.a_array_expr_ = a_array_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.a_array_expr) -} -inline ::pg_query::A_ArrayExpr* Node::_internal_mutable_a_array_expr() { - if (!_internal_has_a_array_expr()) { - clear_node(); - set_has_a_array_expr(); - _impl_.node_.a_array_expr_ = CreateMaybeMessage< ::pg_query::A_ArrayExpr >(GetArenaForAllocation()); - } - return _impl_.node_.a_array_expr_; -} -inline ::pg_query::A_ArrayExpr* Node::mutable_a_array_expr() { - ::pg_query::A_ArrayExpr* _msg = _internal_mutable_a_array_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.a_array_expr) - return _msg; -} - -// .pg_query.ResTarget res_target = 179 [json_name = "ResTarget"]; -inline bool Node::_internal_has_res_target() const { - return node_case() == kResTarget; -} -inline bool Node::has_res_target() const { - return _internal_has_res_target(); -} -inline void Node::set_has_res_target() { - _impl_._oneof_case_[0] = kResTarget; -} -inline void Node::clear_res_target() { - if (_internal_has_res_target()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.res_target_; - } - clear_has_node(); - } -} -inline ::pg_query::ResTarget* Node::release_res_target() { - // @@protoc_insertion_point(field_release:pg_query.Node.res_target) - if (_internal_has_res_target()) { - clear_has_node(); - ::pg_query::ResTarget* temp = _impl_.node_.res_target_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.res_target_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::ResTarget& Node::_internal_res_target() const { - return _internal_has_res_target() - ? *_impl_.node_.res_target_ - : reinterpret_cast< ::pg_query::ResTarget&>(::pg_query::_ResTarget_default_instance_); -} -inline const ::pg_query::ResTarget& Node::res_target() const { - // @@protoc_insertion_point(field_get:pg_query.Node.res_target) - return _internal_res_target(); -} -inline ::pg_query::ResTarget* Node::unsafe_arena_release_res_target() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.res_target) - if (_internal_has_res_target()) { - clear_has_node(); - ::pg_query::ResTarget* temp = _impl_.node_.res_target_; - _impl_.node_.res_target_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_res_target(::pg_query::ResTarget* res_target) { - clear_node(); - if (res_target) { - set_has_res_target(); - _impl_.node_.res_target_ = res_target; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.res_target) -} -inline ::pg_query::ResTarget* Node::_internal_mutable_res_target() { - if (!_internal_has_res_target()) { - clear_node(); - set_has_res_target(); - _impl_.node_.res_target_ = CreateMaybeMessage< ::pg_query::ResTarget >(GetArenaForAllocation()); - } - return _impl_.node_.res_target_; -} -inline ::pg_query::ResTarget* Node::mutable_res_target() { - ::pg_query::ResTarget* _msg = _internal_mutable_res_target(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.res_target) - return _msg; -} - -// .pg_query.MultiAssignRef multi_assign_ref = 180 [json_name = "MultiAssignRef"]; -inline bool Node::_internal_has_multi_assign_ref() const { - return node_case() == kMultiAssignRef; -} -inline bool Node::has_multi_assign_ref() const { - return _internal_has_multi_assign_ref(); -} -inline void Node::set_has_multi_assign_ref() { - _impl_._oneof_case_[0] = kMultiAssignRef; -} -inline void Node::clear_multi_assign_ref() { - if (_internal_has_multi_assign_ref()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.multi_assign_ref_; - } - clear_has_node(); - } -} -inline ::pg_query::MultiAssignRef* Node::release_multi_assign_ref() { - // @@protoc_insertion_point(field_release:pg_query.Node.multi_assign_ref) - if (_internal_has_multi_assign_ref()) { - clear_has_node(); - ::pg_query::MultiAssignRef* temp = _impl_.node_.multi_assign_ref_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.multi_assign_ref_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::MultiAssignRef& Node::_internal_multi_assign_ref() const { - return _internal_has_multi_assign_ref() - ? *_impl_.node_.multi_assign_ref_ - : reinterpret_cast< ::pg_query::MultiAssignRef&>(::pg_query::_MultiAssignRef_default_instance_); -} -inline const ::pg_query::MultiAssignRef& Node::multi_assign_ref() const { - // @@protoc_insertion_point(field_get:pg_query.Node.multi_assign_ref) - return _internal_multi_assign_ref(); -} -inline ::pg_query::MultiAssignRef* Node::unsafe_arena_release_multi_assign_ref() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.multi_assign_ref) - if (_internal_has_multi_assign_ref()) { - clear_has_node(); - ::pg_query::MultiAssignRef* temp = _impl_.node_.multi_assign_ref_; - _impl_.node_.multi_assign_ref_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_multi_assign_ref(::pg_query::MultiAssignRef* multi_assign_ref) { - clear_node(); - if (multi_assign_ref) { - set_has_multi_assign_ref(); - _impl_.node_.multi_assign_ref_ = multi_assign_ref; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.multi_assign_ref) -} -inline ::pg_query::MultiAssignRef* Node::_internal_mutable_multi_assign_ref() { - if (!_internal_has_multi_assign_ref()) { - clear_node(); - set_has_multi_assign_ref(); - _impl_.node_.multi_assign_ref_ = CreateMaybeMessage< ::pg_query::MultiAssignRef >(GetArenaForAllocation()); - } - return _impl_.node_.multi_assign_ref_; -} -inline ::pg_query::MultiAssignRef* Node::mutable_multi_assign_ref() { - ::pg_query::MultiAssignRef* _msg = _internal_mutable_multi_assign_ref(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.multi_assign_ref) - return _msg; -} - -// .pg_query.TypeCast type_cast = 181 [json_name = "TypeCast"]; -inline bool Node::_internal_has_type_cast() const { - return node_case() == kTypeCast; -} -inline bool Node::has_type_cast() const { - return _internal_has_type_cast(); -} -inline void Node::set_has_type_cast() { - _impl_._oneof_case_[0] = kTypeCast; -} -inline void Node::clear_type_cast() { - if (_internal_has_type_cast()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.type_cast_; - } - clear_has_node(); - } -} -inline ::pg_query::TypeCast* Node::release_type_cast() { - // @@protoc_insertion_point(field_release:pg_query.Node.type_cast) - if (_internal_has_type_cast()) { - clear_has_node(); - ::pg_query::TypeCast* temp = _impl_.node_.type_cast_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.type_cast_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::TypeCast& Node::_internal_type_cast() const { - return _internal_has_type_cast() - ? *_impl_.node_.type_cast_ - : reinterpret_cast< ::pg_query::TypeCast&>(::pg_query::_TypeCast_default_instance_); -} -inline const ::pg_query::TypeCast& Node::type_cast() const { - // @@protoc_insertion_point(field_get:pg_query.Node.type_cast) - return _internal_type_cast(); -} -inline ::pg_query::TypeCast* Node::unsafe_arena_release_type_cast() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.type_cast) - if (_internal_has_type_cast()) { - clear_has_node(); - ::pg_query::TypeCast* temp = _impl_.node_.type_cast_; - _impl_.node_.type_cast_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_type_cast(::pg_query::TypeCast* type_cast) { - clear_node(); - if (type_cast) { - set_has_type_cast(); - _impl_.node_.type_cast_ = type_cast; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.type_cast) -} -inline ::pg_query::TypeCast* Node::_internal_mutable_type_cast() { - if (!_internal_has_type_cast()) { - clear_node(); - set_has_type_cast(); - _impl_.node_.type_cast_ = CreateMaybeMessage< ::pg_query::TypeCast >(GetArenaForAllocation()); - } - return _impl_.node_.type_cast_; -} -inline ::pg_query::TypeCast* Node::mutable_type_cast() { - ::pg_query::TypeCast* _msg = _internal_mutable_type_cast(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.type_cast) - return _msg; -} - -// .pg_query.CollateClause collate_clause = 182 [json_name = "CollateClause"]; -inline bool Node::_internal_has_collate_clause() const { - return node_case() == kCollateClause; -} -inline bool Node::has_collate_clause() const { - return _internal_has_collate_clause(); -} -inline void Node::set_has_collate_clause() { - _impl_._oneof_case_[0] = kCollateClause; -} -inline void Node::clear_collate_clause() { - if (_internal_has_collate_clause()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.collate_clause_; - } - clear_has_node(); - } -} -inline ::pg_query::CollateClause* Node::release_collate_clause() { - // @@protoc_insertion_point(field_release:pg_query.Node.collate_clause) - if (_internal_has_collate_clause()) { - clear_has_node(); - ::pg_query::CollateClause* temp = _impl_.node_.collate_clause_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.collate_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CollateClause& Node::_internal_collate_clause() const { - return _internal_has_collate_clause() - ? *_impl_.node_.collate_clause_ - : reinterpret_cast< ::pg_query::CollateClause&>(::pg_query::_CollateClause_default_instance_); -} -inline const ::pg_query::CollateClause& Node::collate_clause() const { - // @@protoc_insertion_point(field_get:pg_query.Node.collate_clause) - return _internal_collate_clause(); -} -inline ::pg_query::CollateClause* Node::unsafe_arena_release_collate_clause() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.collate_clause) - if (_internal_has_collate_clause()) { - clear_has_node(); - ::pg_query::CollateClause* temp = _impl_.node_.collate_clause_; - _impl_.node_.collate_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_collate_clause(::pg_query::CollateClause* collate_clause) { - clear_node(); - if (collate_clause) { - set_has_collate_clause(); - _impl_.node_.collate_clause_ = collate_clause; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.collate_clause) -} -inline ::pg_query::CollateClause* Node::_internal_mutable_collate_clause() { - if (!_internal_has_collate_clause()) { - clear_node(); - set_has_collate_clause(); - _impl_.node_.collate_clause_ = CreateMaybeMessage< ::pg_query::CollateClause >(GetArenaForAllocation()); - } - return _impl_.node_.collate_clause_; -} -inline ::pg_query::CollateClause* Node::mutable_collate_clause() { - ::pg_query::CollateClause* _msg = _internal_mutable_collate_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.collate_clause) - return _msg; -} - -// .pg_query.SortBy sort_by = 183 [json_name = "SortBy"]; -inline bool Node::_internal_has_sort_by() const { - return node_case() == kSortBy; -} -inline bool Node::has_sort_by() const { - return _internal_has_sort_by(); -} -inline void Node::set_has_sort_by() { - _impl_._oneof_case_[0] = kSortBy; -} -inline void Node::clear_sort_by() { - if (_internal_has_sort_by()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.sort_by_; - } - clear_has_node(); - } -} -inline ::pg_query::SortBy* Node::release_sort_by() { - // @@protoc_insertion_point(field_release:pg_query.Node.sort_by) - if (_internal_has_sort_by()) { - clear_has_node(); - ::pg_query::SortBy* temp = _impl_.node_.sort_by_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.sort_by_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::SortBy& Node::_internal_sort_by() const { - return _internal_has_sort_by() - ? *_impl_.node_.sort_by_ - : reinterpret_cast< ::pg_query::SortBy&>(::pg_query::_SortBy_default_instance_); -} -inline const ::pg_query::SortBy& Node::sort_by() const { - // @@protoc_insertion_point(field_get:pg_query.Node.sort_by) - return _internal_sort_by(); -} -inline ::pg_query::SortBy* Node::unsafe_arena_release_sort_by() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.sort_by) - if (_internal_has_sort_by()) { - clear_has_node(); - ::pg_query::SortBy* temp = _impl_.node_.sort_by_; - _impl_.node_.sort_by_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_sort_by(::pg_query::SortBy* sort_by) { - clear_node(); - if (sort_by) { - set_has_sort_by(); - _impl_.node_.sort_by_ = sort_by; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.sort_by) -} -inline ::pg_query::SortBy* Node::_internal_mutable_sort_by() { - if (!_internal_has_sort_by()) { - clear_node(); - set_has_sort_by(); - _impl_.node_.sort_by_ = CreateMaybeMessage< ::pg_query::SortBy >(GetArenaForAllocation()); - } - return _impl_.node_.sort_by_; -} -inline ::pg_query::SortBy* Node::mutable_sort_by() { - ::pg_query::SortBy* _msg = _internal_mutable_sort_by(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.sort_by) - return _msg; -} - -// .pg_query.WindowDef window_def = 184 [json_name = "WindowDef"]; -inline bool Node::_internal_has_window_def() const { - return node_case() == kWindowDef; -} -inline bool Node::has_window_def() const { - return _internal_has_window_def(); -} -inline void Node::set_has_window_def() { - _impl_._oneof_case_[0] = kWindowDef; -} -inline void Node::clear_window_def() { - if (_internal_has_window_def()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.window_def_; - } - clear_has_node(); - } -} -inline ::pg_query::WindowDef* Node::release_window_def() { - // @@protoc_insertion_point(field_release:pg_query.Node.window_def) - if (_internal_has_window_def()) { - clear_has_node(); - ::pg_query::WindowDef* temp = _impl_.node_.window_def_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.window_def_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::WindowDef& Node::_internal_window_def() const { - return _internal_has_window_def() - ? *_impl_.node_.window_def_ - : reinterpret_cast< ::pg_query::WindowDef&>(::pg_query::_WindowDef_default_instance_); -} -inline const ::pg_query::WindowDef& Node::window_def() const { - // @@protoc_insertion_point(field_get:pg_query.Node.window_def) - return _internal_window_def(); -} -inline ::pg_query::WindowDef* Node::unsafe_arena_release_window_def() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.window_def) - if (_internal_has_window_def()) { - clear_has_node(); - ::pg_query::WindowDef* temp = _impl_.node_.window_def_; - _impl_.node_.window_def_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_window_def(::pg_query::WindowDef* window_def) { - clear_node(); - if (window_def) { - set_has_window_def(); - _impl_.node_.window_def_ = window_def; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.window_def) -} -inline ::pg_query::WindowDef* Node::_internal_mutable_window_def() { - if (!_internal_has_window_def()) { - clear_node(); - set_has_window_def(); - _impl_.node_.window_def_ = CreateMaybeMessage< ::pg_query::WindowDef >(GetArenaForAllocation()); - } - return _impl_.node_.window_def_; -} -inline ::pg_query::WindowDef* Node::mutable_window_def() { - ::pg_query::WindowDef* _msg = _internal_mutable_window_def(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.window_def) - return _msg; -} - -// .pg_query.RangeSubselect range_subselect = 185 [json_name = "RangeSubselect"]; -inline bool Node::_internal_has_range_subselect() const { - return node_case() == kRangeSubselect; -} -inline bool Node::has_range_subselect() const { - return _internal_has_range_subselect(); -} -inline void Node::set_has_range_subselect() { - _impl_._oneof_case_[0] = kRangeSubselect; -} -inline void Node::clear_range_subselect() { - if (_internal_has_range_subselect()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.range_subselect_; - } - clear_has_node(); - } -} -inline ::pg_query::RangeSubselect* Node::release_range_subselect() { - // @@protoc_insertion_point(field_release:pg_query.Node.range_subselect) - if (_internal_has_range_subselect()) { - clear_has_node(); - ::pg_query::RangeSubselect* temp = _impl_.node_.range_subselect_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.range_subselect_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::RangeSubselect& Node::_internal_range_subselect() const { - return _internal_has_range_subselect() - ? *_impl_.node_.range_subselect_ - : reinterpret_cast< ::pg_query::RangeSubselect&>(::pg_query::_RangeSubselect_default_instance_); -} -inline const ::pg_query::RangeSubselect& Node::range_subselect() const { - // @@protoc_insertion_point(field_get:pg_query.Node.range_subselect) - return _internal_range_subselect(); -} -inline ::pg_query::RangeSubselect* Node::unsafe_arena_release_range_subselect() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.range_subselect) - if (_internal_has_range_subselect()) { - clear_has_node(); - ::pg_query::RangeSubselect* temp = _impl_.node_.range_subselect_; - _impl_.node_.range_subselect_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_range_subselect(::pg_query::RangeSubselect* range_subselect) { - clear_node(); - if (range_subselect) { - set_has_range_subselect(); - _impl_.node_.range_subselect_ = range_subselect; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.range_subselect) -} -inline ::pg_query::RangeSubselect* Node::_internal_mutable_range_subselect() { - if (!_internal_has_range_subselect()) { - clear_node(); - set_has_range_subselect(); - _impl_.node_.range_subselect_ = CreateMaybeMessage< ::pg_query::RangeSubselect >(GetArenaForAllocation()); - } - return _impl_.node_.range_subselect_; -} -inline ::pg_query::RangeSubselect* Node::mutable_range_subselect() { - ::pg_query::RangeSubselect* _msg = _internal_mutable_range_subselect(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.range_subselect) - return _msg; -} - -// .pg_query.RangeFunction range_function = 186 [json_name = "RangeFunction"]; -inline bool Node::_internal_has_range_function() const { - return node_case() == kRangeFunction; -} -inline bool Node::has_range_function() const { - return _internal_has_range_function(); -} -inline void Node::set_has_range_function() { - _impl_._oneof_case_[0] = kRangeFunction; -} -inline void Node::clear_range_function() { - if (_internal_has_range_function()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.range_function_; - } - clear_has_node(); - } -} -inline ::pg_query::RangeFunction* Node::release_range_function() { - // @@protoc_insertion_point(field_release:pg_query.Node.range_function) - if (_internal_has_range_function()) { - clear_has_node(); - ::pg_query::RangeFunction* temp = _impl_.node_.range_function_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.range_function_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::RangeFunction& Node::_internal_range_function() const { - return _internal_has_range_function() - ? *_impl_.node_.range_function_ - : reinterpret_cast< ::pg_query::RangeFunction&>(::pg_query::_RangeFunction_default_instance_); -} -inline const ::pg_query::RangeFunction& Node::range_function() const { - // @@protoc_insertion_point(field_get:pg_query.Node.range_function) - return _internal_range_function(); -} -inline ::pg_query::RangeFunction* Node::unsafe_arena_release_range_function() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.range_function) - if (_internal_has_range_function()) { - clear_has_node(); - ::pg_query::RangeFunction* temp = _impl_.node_.range_function_; - _impl_.node_.range_function_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_range_function(::pg_query::RangeFunction* range_function) { - clear_node(); - if (range_function) { - set_has_range_function(); - _impl_.node_.range_function_ = range_function; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.range_function) -} -inline ::pg_query::RangeFunction* Node::_internal_mutable_range_function() { - if (!_internal_has_range_function()) { - clear_node(); - set_has_range_function(); - _impl_.node_.range_function_ = CreateMaybeMessage< ::pg_query::RangeFunction >(GetArenaForAllocation()); - } - return _impl_.node_.range_function_; -} -inline ::pg_query::RangeFunction* Node::mutable_range_function() { - ::pg_query::RangeFunction* _msg = _internal_mutable_range_function(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.range_function) - return _msg; -} - -// .pg_query.RangeTableSample range_table_sample = 187 [json_name = "RangeTableSample"]; -inline bool Node::_internal_has_range_table_sample() const { - return node_case() == kRangeTableSample; -} -inline bool Node::has_range_table_sample() const { - return _internal_has_range_table_sample(); -} -inline void Node::set_has_range_table_sample() { - _impl_._oneof_case_[0] = kRangeTableSample; -} -inline void Node::clear_range_table_sample() { - if (_internal_has_range_table_sample()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.range_table_sample_; - } - clear_has_node(); - } -} -inline ::pg_query::RangeTableSample* Node::release_range_table_sample() { - // @@protoc_insertion_point(field_release:pg_query.Node.range_table_sample) - if (_internal_has_range_table_sample()) { - clear_has_node(); - ::pg_query::RangeTableSample* temp = _impl_.node_.range_table_sample_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.range_table_sample_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::RangeTableSample& Node::_internal_range_table_sample() const { - return _internal_has_range_table_sample() - ? *_impl_.node_.range_table_sample_ - : reinterpret_cast< ::pg_query::RangeTableSample&>(::pg_query::_RangeTableSample_default_instance_); -} -inline const ::pg_query::RangeTableSample& Node::range_table_sample() const { - // @@protoc_insertion_point(field_get:pg_query.Node.range_table_sample) - return _internal_range_table_sample(); -} -inline ::pg_query::RangeTableSample* Node::unsafe_arena_release_range_table_sample() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.range_table_sample) - if (_internal_has_range_table_sample()) { - clear_has_node(); - ::pg_query::RangeTableSample* temp = _impl_.node_.range_table_sample_; - _impl_.node_.range_table_sample_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_range_table_sample(::pg_query::RangeTableSample* range_table_sample) { - clear_node(); - if (range_table_sample) { - set_has_range_table_sample(); - _impl_.node_.range_table_sample_ = range_table_sample; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.range_table_sample) -} -inline ::pg_query::RangeTableSample* Node::_internal_mutable_range_table_sample() { - if (!_internal_has_range_table_sample()) { - clear_node(); - set_has_range_table_sample(); - _impl_.node_.range_table_sample_ = CreateMaybeMessage< ::pg_query::RangeTableSample >(GetArenaForAllocation()); - } - return _impl_.node_.range_table_sample_; -} -inline ::pg_query::RangeTableSample* Node::mutable_range_table_sample() { - ::pg_query::RangeTableSample* _msg = _internal_mutable_range_table_sample(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.range_table_sample) - return _msg; -} - -// .pg_query.RangeTableFunc range_table_func = 188 [json_name = "RangeTableFunc"]; -inline bool Node::_internal_has_range_table_func() const { - return node_case() == kRangeTableFunc; -} -inline bool Node::has_range_table_func() const { - return _internal_has_range_table_func(); -} -inline void Node::set_has_range_table_func() { - _impl_._oneof_case_[0] = kRangeTableFunc; -} -inline void Node::clear_range_table_func() { - if (_internal_has_range_table_func()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.range_table_func_; - } - clear_has_node(); - } -} -inline ::pg_query::RangeTableFunc* Node::release_range_table_func() { - // @@protoc_insertion_point(field_release:pg_query.Node.range_table_func) - if (_internal_has_range_table_func()) { - clear_has_node(); - ::pg_query::RangeTableFunc* temp = _impl_.node_.range_table_func_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.range_table_func_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::RangeTableFunc& Node::_internal_range_table_func() const { - return _internal_has_range_table_func() - ? *_impl_.node_.range_table_func_ - : reinterpret_cast< ::pg_query::RangeTableFunc&>(::pg_query::_RangeTableFunc_default_instance_); -} -inline const ::pg_query::RangeTableFunc& Node::range_table_func() const { - // @@protoc_insertion_point(field_get:pg_query.Node.range_table_func) - return _internal_range_table_func(); -} -inline ::pg_query::RangeTableFunc* Node::unsafe_arena_release_range_table_func() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.range_table_func) - if (_internal_has_range_table_func()) { - clear_has_node(); - ::pg_query::RangeTableFunc* temp = _impl_.node_.range_table_func_; - _impl_.node_.range_table_func_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_range_table_func(::pg_query::RangeTableFunc* range_table_func) { - clear_node(); - if (range_table_func) { - set_has_range_table_func(); - _impl_.node_.range_table_func_ = range_table_func; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.range_table_func) -} -inline ::pg_query::RangeTableFunc* Node::_internal_mutable_range_table_func() { - if (!_internal_has_range_table_func()) { - clear_node(); - set_has_range_table_func(); - _impl_.node_.range_table_func_ = CreateMaybeMessage< ::pg_query::RangeTableFunc >(GetArenaForAllocation()); - } - return _impl_.node_.range_table_func_; -} -inline ::pg_query::RangeTableFunc* Node::mutable_range_table_func() { - ::pg_query::RangeTableFunc* _msg = _internal_mutable_range_table_func(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.range_table_func) - return _msg; -} - -// .pg_query.RangeTableFuncCol range_table_func_col = 189 [json_name = "RangeTableFuncCol"]; -inline bool Node::_internal_has_range_table_func_col() const { - return node_case() == kRangeTableFuncCol; -} -inline bool Node::has_range_table_func_col() const { - return _internal_has_range_table_func_col(); -} -inline void Node::set_has_range_table_func_col() { - _impl_._oneof_case_[0] = kRangeTableFuncCol; -} -inline void Node::clear_range_table_func_col() { - if (_internal_has_range_table_func_col()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.range_table_func_col_; - } - clear_has_node(); - } -} -inline ::pg_query::RangeTableFuncCol* Node::release_range_table_func_col() { - // @@protoc_insertion_point(field_release:pg_query.Node.range_table_func_col) - if (_internal_has_range_table_func_col()) { - clear_has_node(); - ::pg_query::RangeTableFuncCol* temp = _impl_.node_.range_table_func_col_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.range_table_func_col_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::RangeTableFuncCol& Node::_internal_range_table_func_col() const { - return _internal_has_range_table_func_col() - ? *_impl_.node_.range_table_func_col_ - : reinterpret_cast< ::pg_query::RangeTableFuncCol&>(::pg_query::_RangeTableFuncCol_default_instance_); -} -inline const ::pg_query::RangeTableFuncCol& Node::range_table_func_col() const { - // @@protoc_insertion_point(field_get:pg_query.Node.range_table_func_col) - return _internal_range_table_func_col(); -} -inline ::pg_query::RangeTableFuncCol* Node::unsafe_arena_release_range_table_func_col() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.range_table_func_col) - if (_internal_has_range_table_func_col()) { - clear_has_node(); - ::pg_query::RangeTableFuncCol* temp = _impl_.node_.range_table_func_col_; - _impl_.node_.range_table_func_col_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_range_table_func_col(::pg_query::RangeTableFuncCol* range_table_func_col) { - clear_node(); - if (range_table_func_col) { - set_has_range_table_func_col(); - _impl_.node_.range_table_func_col_ = range_table_func_col; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.range_table_func_col) -} -inline ::pg_query::RangeTableFuncCol* Node::_internal_mutable_range_table_func_col() { - if (!_internal_has_range_table_func_col()) { - clear_node(); - set_has_range_table_func_col(); - _impl_.node_.range_table_func_col_ = CreateMaybeMessage< ::pg_query::RangeTableFuncCol >(GetArenaForAllocation()); - } - return _impl_.node_.range_table_func_col_; -} -inline ::pg_query::RangeTableFuncCol* Node::mutable_range_table_func_col() { - ::pg_query::RangeTableFuncCol* _msg = _internal_mutable_range_table_func_col(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.range_table_func_col) - return _msg; -} - -// .pg_query.TypeName type_name = 190 [json_name = "TypeName"]; -inline bool Node::_internal_has_type_name() const { - return node_case() == kTypeName; -} -inline bool Node::has_type_name() const { - return _internal_has_type_name(); -} -inline void Node::set_has_type_name() { - _impl_._oneof_case_[0] = kTypeName; -} -inline void Node::clear_type_name() { - if (_internal_has_type_name()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.type_name_; - } - clear_has_node(); - } -} -inline ::pg_query::TypeName* Node::release_type_name() { - // @@protoc_insertion_point(field_release:pg_query.Node.type_name) - if (_internal_has_type_name()) { - clear_has_node(); - ::pg_query::TypeName* temp = _impl_.node_.type_name_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.type_name_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::TypeName& Node::_internal_type_name() const { - return _internal_has_type_name() - ? *_impl_.node_.type_name_ - : reinterpret_cast< ::pg_query::TypeName&>(::pg_query::_TypeName_default_instance_); -} -inline const ::pg_query::TypeName& Node::type_name() const { - // @@protoc_insertion_point(field_get:pg_query.Node.type_name) - return _internal_type_name(); -} -inline ::pg_query::TypeName* Node::unsafe_arena_release_type_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.type_name) - if (_internal_has_type_name()) { - clear_has_node(); - ::pg_query::TypeName* temp = _impl_.node_.type_name_; - _impl_.node_.type_name_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_type_name(::pg_query::TypeName* type_name) { - clear_node(); - if (type_name) { - set_has_type_name(); - _impl_.node_.type_name_ = type_name; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.type_name) -} -inline ::pg_query::TypeName* Node::_internal_mutable_type_name() { - if (!_internal_has_type_name()) { - clear_node(); - set_has_type_name(); - _impl_.node_.type_name_ = CreateMaybeMessage< ::pg_query::TypeName >(GetArenaForAllocation()); - } - return _impl_.node_.type_name_; -} -inline ::pg_query::TypeName* Node::mutable_type_name() { - ::pg_query::TypeName* _msg = _internal_mutable_type_name(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.type_name) - return _msg; -} - -// .pg_query.ColumnDef column_def = 191 [json_name = "ColumnDef"]; -inline bool Node::_internal_has_column_def() const { - return node_case() == kColumnDef; -} -inline bool Node::has_column_def() const { - return _internal_has_column_def(); -} -inline void Node::set_has_column_def() { - _impl_._oneof_case_[0] = kColumnDef; -} -inline void Node::clear_column_def() { - if (_internal_has_column_def()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.column_def_; - } - clear_has_node(); - } -} -inline ::pg_query::ColumnDef* Node::release_column_def() { - // @@protoc_insertion_point(field_release:pg_query.Node.column_def) - if (_internal_has_column_def()) { - clear_has_node(); - ::pg_query::ColumnDef* temp = _impl_.node_.column_def_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.column_def_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::ColumnDef& Node::_internal_column_def() const { - return _internal_has_column_def() - ? *_impl_.node_.column_def_ - : reinterpret_cast< ::pg_query::ColumnDef&>(::pg_query::_ColumnDef_default_instance_); -} -inline const ::pg_query::ColumnDef& Node::column_def() const { - // @@protoc_insertion_point(field_get:pg_query.Node.column_def) - return _internal_column_def(); -} -inline ::pg_query::ColumnDef* Node::unsafe_arena_release_column_def() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.column_def) - if (_internal_has_column_def()) { - clear_has_node(); - ::pg_query::ColumnDef* temp = _impl_.node_.column_def_; - _impl_.node_.column_def_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_column_def(::pg_query::ColumnDef* column_def) { - clear_node(); - if (column_def) { - set_has_column_def(); - _impl_.node_.column_def_ = column_def; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.column_def) -} -inline ::pg_query::ColumnDef* Node::_internal_mutable_column_def() { - if (!_internal_has_column_def()) { - clear_node(); - set_has_column_def(); - _impl_.node_.column_def_ = CreateMaybeMessage< ::pg_query::ColumnDef >(GetArenaForAllocation()); - } - return _impl_.node_.column_def_; -} -inline ::pg_query::ColumnDef* Node::mutable_column_def() { - ::pg_query::ColumnDef* _msg = _internal_mutable_column_def(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.column_def) - return _msg; -} - -// .pg_query.IndexElem index_elem = 192 [json_name = "IndexElem"]; -inline bool Node::_internal_has_index_elem() const { - return node_case() == kIndexElem; -} -inline bool Node::has_index_elem() const { - return _internal_has_index_elem(); -} -inline void Node::set_has_index_elem() { - _impl_._oneof_case_[0] = kIndexElem; -} -inline void Node::clear_index_elem() { - if (_internal_has_index_elem()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.index_elem_; - } - clear_has_node(); - } -} -inline ::pg_query::IndexElem* Node::release_index_elem() { - // @@protoc_insertion_point(field_release:pg_query.Node.index_elem) - if (_internal_has_index_elem()) { - clear_has_node(); - ::pg_query::IndexElem* temp = _impl_.node_.index_elem_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.index_elem_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::IndexElem& Node::_internal_index_elem() const { - return _internal_has_index_elem() - ? *_impl_.node_.index_elem_ - : reinterpret_cast< ::pg_query::IndexElem&>(::pg_query::_IndexElem_default_instance_); -} -inline const ::pg_query::IndexElem& Node::index_elem() const { - // @@protoc_insertion_point(field_get:pg_query.Node.index_elem) - return _internal_index_elem(); -} -inline ::pg_query::IndexElem* Node::unsafe_arena_release_index_elem() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.index_elem) - if (_internal_has_index_elem()) { - clear_has_node(); - ::pg_query::IndexElem* temp = _impl_.node_.index_elem_; - _impl_.node_.index_elem_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_index_elem(::pg_query::IndexElem* index_elem) { - clear_node(); - if (index_elem) { - set_has_index_elem(); - _impl_.node_.index_elem_ = index_elem; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.index_elem) -} -inline ::pg_query::IndexElem* Node::_internal_mutable_index_elem() { - if (!_internal_has_index_elem()) { - clear_node(); - set_has_index_elem(); - _impl_.node_.index_elem_ = CreateMaybeMessage< ::pg_query::IndexElem >(GetArenaForAllocation()); - } - return _impl_.node_.index_elem_; -} -inline ::pg_query::IndexElem* Node::mutable_index_elem() { - ::pg_query::IndexElem* _msg = _internal_mutable_index_elem(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.index_elem) - return _msg; -} - -// .pg_query.StatsElem stats_elem = 193 [json_name = "StatsElem"]; -inline bool Node::_internal_has_stats_elem() const { - return node_case() == kStatsElem; -} -inline bool Node::has_stats_elem() const { - return _internal_has_stats_elem(); -} -inline void Node::set_has_stats_elem() { - _impl_._oneof_case_[0] = kStatsElem; -} -inline void Node::clear_stats_elem() { - if (_internal_has_stats_elem()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.stats_elem_; - } - clear_has_node(); - } -} -inline ::pg_query::StatsElem* Node::release_stats_elem() { - // @@protoc_insertion_point(field_release:pg_query.Node.stats_elem) - if (_internal_has_stats_elem()) { - clear_has_node(); - ::pg_query::StatsElem* temp = _impl_.node_.stats_elem_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.stats_elem_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::StatsElem& Node::_internal_stats_elem() const { - return _internal_has_stats_elem() - ? *_impl_.node_.stats_elem_ - : reinterpret_cast< ::pg_query::StatsElem&>(::pg_query::_StatsElem_default_instance_); -} -inline const ::pg_query::StatsElem& Node::stats_elem() const { - // @@protoc_insertion_point(field_get:pg_query.Node.stats_elem) - return _internal_stats_elem(); -} -inline ::pg_query::StatsElem* Node::unsafe_arena_release_stats_elem() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.stats_elem) - if (_internal_has_stats_elem()) { - clear_has_node(); - ::pg_query::StatsElem* temp = _impl_.node_.stats_elem_; - _impl_.node_.stats_elem_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_stats_elem(::pg_query::StatsElem* stats_elem) { - clear_node(); - if (stats_elem) { - set_has_stats_elem(); - _impl_.node_.stats_elem_ = stats_elem; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.stats_elem) -} -inline ::pg_query::StatsElem* Node::_internal_mutable_stats_elem() { - if (!_internal_has_stats_elem()) { - clear_node(); - set_has_stats_elem(); - _impl_.node_.stats_elem_ = CreateMaybeMessage< ::pg_query::StatsElem >(GetArenaForAllocation()); - } - return _impl_.node_.stats_elem_; -} -inline ::pg_query::StatsElem* Node::mutable_stats_elem() { - ::pg_query::StatsElem* _msg = _internal_mutable_stats_elem(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.stats_elem) - return _msg; -} - -// .pg_query.Constraint constraint = 194 [json_name = "Constraint"]; -inline bool Node::_internal_has_constraint() const { - return node_case() == kConstraint; -} -inline bool Node::has_constraint() const { - return _internal_has_constraint(); -} -inline void Node::set_has_constraint() { - _impl_._oneof_case_[0] = kConstraint; -} -inline void Node::clear_constraint() { - if (_internal_has_constraint()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.constraint_; - } - clear_has_node(); - } -} -inline ::pg_query::Constraint* Node::release_constraint() { - // @@protoc_insertion_point(field_release:pg_query.Node.constraint) - if (_internal_has_constraint()) { - clear_has_node(); - ::pg_query::Constraint* temp = _impl_.node_.constraint_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.constraint_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::Constraint& Node::_internal_constraint() const { - return _internal_has_constraint() - ? *_impl_.node_.constraint_ - : reinterpret_cast< ::pg_query::Constraint&>(::pg_query::_Constraint_default_instance_); -} -inline const ::pg_query::Constraint& Node::constraint() const { - // @@protoc_insertion_point(field_get:pg_query.Node.constraint) - return _internal_constraint(); -} -inline ::pg_query::Constraint* Node::unsafe_arena_release_constraint() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.constraint) - if (_internal_has_constraint()) { - clear_has_node(); - ::pg_query::Constraint* temp = _impl_.node_.constraint_; - _impl_.node_.constraint_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_constraint(::pg_query::Constraint* constraint) { - clear_node(); - if (constraint) { - set_has_constraint(); - _impl_.node_.constraint_ = constraint; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.constraint) -} -inline ::pg_query::Constraint* Node::_internal_mutable_constraint() { - if (!_internal_has_constraint()) { - clear_node(); - set_has_constraint(); - _impl_.node_.constraint_ = CreateMaybeMessage< ::pg_query::Constraint >(GetArenaForAllocation()); - } - return _impl_.node_.constraint_; -} -inline ::pg_query::Constraint* Node::mutable_constraint() { - ::pg_query::Constraint* _msg = _internal_mutable_constraint(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.constraint) - return _msg; -} - -// .pg_query.DefElem def_elem = 195 [json_name = "DefElem"]; -inline bool Node::_internal_has_def_elem() const { - return node_case() == kDefElem; -} -inline bool Node::has_def_elem() const { - return _internal_has_def_elem(); -} -inline void Node::set_has_def_elem() { - _impl_._oneof_case_[0] = kDefElem; -} -inline void Node::clear_def_elem() { - if (_internal_has_def_elem()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.def_elem_; - } - clear_has_node(); - } -} -inline ::pg_query::DefElem* Node::release_def_elem() { - // @@protoc_insertion_point(field_release:pg_query.Node.def_elem) - if (_internal_has_def_elem()) { - clear_has_node(); - ::pg_query::DefElem* temp = _impl_.node_.def_elem_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.def_elem_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::DefElem& Node::_internal_def_elem() const { - return _internal_has_def_elem() - ? *_impl_.node_.def_elem_ - : reinterpret_cast< ::pg_query::DefElem&>(::pg_query::_DefElem_default_instance_); -} -inline const ::pg_query::DefElem& Node::def_elem() const { - // @@protoc_insertion_point(field_get:pg_query.Node.def_elem) - return _internal_def_elem(); -} -inline ::pg_query::DefElem* Node::unsafe_arena_release_def_elem() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.def_elem) - if (_internal_has_def_elem()) { - clear_has_node(); - ::pg_query::DefElem* temp = _impl_.node_.def_elem_; - _impl_.node_.def_elem_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_def_elem(::pg_query::DefElem* def_elem) { - clear_node(); - if (def_elem) { - set_has_def_elem(); - _impl_.node_.def_elem_ = def_elem; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.def_elem) -} -inline ::pg_query::DefElem* Node::_internal_mutable_def_elem() { - if (!_internal_has_def_elem()) { - clear_node(); - set_has_def_elem(); - _impl_.node_.def_elem_ = CreateMaybeMessage< ::pg_query::DefElem >(GetArenaForAllocation()); - } - return _impl_.node_.def_elem_; -} -inline ::pg_query::DefElem* Node::mutable_def_elem() { - ::pg_query::DefElem* _msg = _internal_mutable_def_elem(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.def_elem) - return _msg; -} - -// .pg_query.RangeTblEntry range_tbl_entry = 196 [json_name = "RangeTblEntry"]; -inline bool Node::_internal_has_range_tbl_entry() const { - return node_case() == kRangeTblEntry; -} -inline bool Node::has_range_tbl_entry() const { - return _internal_has_range_tbl_entry(); -} -inline void Node::set_has_range_tbl_entry() { - _impl_._oneof_case_[0] = kRangeTblEntry; -} -inline void Node::clear_range_tbl_entry() { - if (_internal_has_range_tbl_entry()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.range_tbl_entry_; - } - clear_has_node(); - } -} -inline ::pg_query::RangeTblEntry* Node::release_range_tbl_entry() { - // @@protoc_insertion_point(field_release:pg_query.Node.range_tbl_entry) - if (_internal_has_range_tbl_entry()) { - clear_has_node(); - ::pg_query::RangeTblEntry* temp = _impl_.node_.range_tbl_entry_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.range_tbl_entry_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::RangeTblEntry& Node::_internal_range_tbl_entry() const { - return _internal_has_range_tbl_entry() - ? *_impl_.node_.range_tbl_entry_ - : reinterpret_cast< ::pg_query::RangeTblEntry&>(::pg_query::_RangeTblEntry_default_instance_); -} -inline const ::pg_query::RangeTblEntry& Node::range_tbl_entry() const { - // @@protoc_insertion_point(field_get:pg_query.Node.range_tbl_entry) - return _internal_range_tbl_entry(); -} -inline ::pg_query::RangeTblEntry* Node::unsafe_arena_release_range_tbl_entry() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.range_tbl_entry) - if (_internal_has_range_tbl_entry()) { - clear_has_node(); - ::pg_query::RangeTblEntry* temp = _impl_.node_.range_tbl_entry_; - _impl_.node_.range_tbl_entry_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_range_tbl_entry(::pg_query::RangeTblEntry* range_tbl_entry) { - clear_node(); - if (range_tbl_entry) { - set_has_range_tbl_entry(); - _impl_.node_.range_tbl_entry_ = range_tbl_entry; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.range_tbl_entry) -} -inline ::pg_query::RangeTblEntry* Node::_internal_mutable_range_tbl_entry() { - if (!_internal_has_range_tbl_entry()) { - clear_node(); - set_has_range_tbl_entry(); - _impl_.node_.range_tbl_entry_ = CreateMaybeMessage< ::pg_query::RangeTblEntry >(GetArenaForAllocation()); - } - return _impl_.node_.range_tbl_entry_; -} -inline ::pg_query::RangeTblEntry* Node::mutable_range_tbl_entry() { - ::pg_query::RangeTblEntry* _msg = _internal_mutable_range_tbl_entry(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.range_tbl_entry) - return _msg; -} - -// .pg_query.RangeTblFunction range_tbl_function = 197 [json_name = "RangeTblFunction"]; -inline bool Node::_internal_has_range_tbl_function() const { - return node_case() == kRangeTblFunction; -} -inline bool Node::has_range_tbl_function() const { - return _internal_has_range_tbl_function(); -} -inline void Node::set_has_range_tbl_function() { - _impl_._oneof_case_[0] = kRangeTblFunction; -} -inline void Node::clear_range_tbl_function() { - if (_internal_has_range_tbl_function()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.range_tbl_function_; - } - clear_has_node(); - } -} -inline ::pg_query::RangeTblFunction* Node::release_range_tbl_function() { - // @@protoc_insertion_point(field_release:pg_query.Node.range_tbl_function) - if (_internal_has_range_tbl_function()) { - clear_has_node(); - ::pg_query::RangeTblFunction* temp = _impl_.node_.range_tbl_function_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.range_tbl_function_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::RangeTblFunction& Node::_internal_range_tbl_function() const { - return _internal_has_range_tbl_function() - ? *_impl_.node_.range_tbl_function_ - : reinterpret_cast< ::pg_query::RangeTblFunction&>(::pg_query::_RangeTblFunction_default_instance_); -} -inline const ::pg_query::RangeTblFunction& Node::range_tbl_function() const { - // @@protoc_insertion_point(field_get:pg_query.Node.range_tbl_function) - return _internal_range_tbl_function(); -} -inline ::pg_query::RangeTblFunction* Node::unsafe_arena_release_range_tbl_function() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.range_tbl_function) - if (_internal_has_range_tbl_function()) { - clear_has_node(); - ::pg_query::RangeTblFunction* temp = _impl_.node_.range_tbl_function_; - _impl_.node_.range_tbl_function_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_range_tbl_function(::pg_query::RangeTblFunction* range_tbl_function) { - clear_node(); - if (range_tbl_function) { - set_has_range_tbl_function(); - _impl_.node_.range_tbl_function_ = range_tbl_function; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.range_tbl_function) -} -inline ::pg_query::RangeTblFunction* Node::_internal_mutable_range_tbl_function() { - if (!_internal_has_range_tbl_function()) { - clear_node(); - set_has_range_tbl_function(); - _impl_.node_.range_tbl_function_ = CreateMaybeMessage< ::pg_query::RangeTblFunction >(GetArenaForAllocation()); - } - return _impl_.node_.range_tbl_function_; -} -inline ::pg_query::RangeTblFunction* Node::mutable_range_tbl_function() { - ::pg_query::RangeTblFunction* _msg = _internal_mutable_range_tbl_function(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.range_tbl_function) - return _msg; -} - -// .pg_query.TableSampleClause table_sample_clause = 198 [json_name = "TableSampleClause"]; -inline bool Node::_internal_has_table_sample_clause() const { - return node_case() == kTableSampleClause; -} -inline bool Node::has_table_sample_clause() const { - return _internal_has_table_sample_clause(); -} -inline void Node::set_has_table_sample_clause() { - _impl_._oneof_case_[0] = kTableSampleClause; -} -inline void Node::clear_table_sample_clause() { - if (_internal_has_table_sample_clause()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.table_sample_clause_; - } - clear_has_node(); - } -} -inline ::pg_query::TableSampleClause* Node::release_table_sample_clause() { - // @@protoc_insertion_point(field_release:pg_query.Node.table_sample_clause) - if (_internal_has_table_sample_clause()) { - clear_has_node(); - ::pg_query::TableSampleClause* temp = _impl_.node_.table_sample_clause_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.table_sample_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::TableSampleClause& Node::_internal_table_sample_clause() const { - return _internal_has_table_sample_clause() - ? *_impl_.node_.table_sample_clause_ - : reinterpret_cast< ::pg_query::TableSampleClause&>(::pg_query::_TableSampleClause_default_instance_); -} -inline const ::pg_query::TableSampleClause& Node::table_sample_clause() const { - // @@protoc_insertion_point(field_get:pg_query.Node.table_sample_clause) - return _internal_table_sample_clause(); -} -inline ::pg_query::TableSampleClause* Node::unsafe_arena_release_table_sample_clause() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.table_sample_clause) - if (_internal_has_table_sample_clause()) { - clear_has_node(); - ::pg_query::TableSampleClause* temp = _impl_.node_.table_sample_clause_; - _impl_.node_.table_sample_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_table_sample_clause(::pg_query::TableSampleClause* table_sample_clause) { - clear_node(); - if (table_sample_clause) { - set_has_table_sample_clause(); - _impl_.node_.table_sample_clause_ = table_sample_clause; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.table_sample_clause) -} -inline ::pg_query::TableSampleClause* Node::_internal_mutable_table_sample_clause() { - if (!_internal_has_table_sample_clause()) { - clear_node(); - set_has_table_sample_clause(); - _impl_.node_.table_sample_clause_ = CreateMaybeMessage< ::pg_query::TableSampleClause >(GetArenaForAllocation()); - } - return _impl_.node_.table_sample_clause_; -} -inline ::pg_query::TableSampleClause* Node::mutable_table_sample_clause() { - ::pg_query::TableSampleClause* _msg = _internal_mutable_table_sample_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.table_sample_clause) - return _msg; -} - -// .pg_query.WithCheckOption with_check_option = 199 [json_name = "WithCheckOption"]; -inline bool Node::_internal_has_with_check_option() const { - return node_case() == kWithCheckOption; -} -inline bool Node::has_with_check_option() const { - return _internal_has_with_check_option(); -} -inline void Node::set_has_with_check_option() { - _impl_._oneof_case_[0] = kWithCheckOption; -} -inline void Node::clear_with_check_option() { - if (_internal_has_with_check_option()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.with_check_option_; - } - clear_has_node(); - } -} -inline ::pg_query::WithCheckOption* Node::release_with_check_option() { - // @@protoc_insertion_point(field_release:pg_query.Node.with_check_option) - if (_internal_has_with_check_option()) { - clear_has_node(); - ::pg_query::WithCheckOption* temp = _impl_.node_.with_check_option_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.with_check_option_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::WithCheckOption& Node::_internal_with_check_option() const { - return _internal_has_with_check_option() - ? *_impl_.node_.with_check_option_ - : reinterpret_cast< ::pg_query::WithCheckOption&>(::pg_query::_WithCheckOption_default_instance_); -} -inline const ::pg_query::WithCheckOption& Node::with_check_option() const { - // @@protoc_insertion_point(field_get:pg_query.Node.with_check_option) - return _internal_with_check_option(); -} -inline ::pg_query::WithCheckOption* Node::unsafe_arena_release_with_check_option() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.with_check_option) - if (_internal_has_with_check_option()) { - clear_has_node(); - ::pg_query::WithCheckOption* temp = _impl_.node_.with_check_option_; - _impl_.node_.with_check_option_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_with_check_option(::pg_query::WithCheckOption* with_check_option) { - clear_node(); - if (with_check_option) { - set_has_with_check_option(); - _impl_.node_.with_check_option_ = with_check_option; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.with_check_option) -} -inline ::pg_query::WithCheckOption* Node::_internal_mutable_with_check_option() { - if (!_internal_has_with_check_option()) { - clear_node(); - set_has_with_check_option(); - _impl_.node_.with_check_option_ = CreateMaybeMessage< ::pg_query::WithCheckOption >(GetArenaForAllocation()); - } - return _impl_.node_.with_check_option_; -} -inline ::pg_query::WithCheckOption* Node::mutable_with_check_option() { - ::pg_query::WithCheckOption* _msg = _internal_mutable_with_check_option(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.with_check_option) - return _msg; -} - -// .pg_query.SortGroupClause sort_group_clause = 200 [json_name = "SortGroupClause"]; -inline bool Node::_internal_has_sort_group_clause() const { - return node_case() == kSortGroupClause; -} -inline bool Node::has_sort_group_clause() const { - return _internal_has_sort_group_clause(); -} -inline void Node::set_has_sort_group_clause() { - _impl_._oneof_case_[0] = kSortGroupClause; -} -inline void Node::clear_sort_group_clause() { - if (_internal_has_sort_group_clause()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.sort_group_clause_; - } - clear_has_node(); - } -} -inline ::pg_query::SortGroupClause* Node::release_sort_group_clause() { - // @@protoc_insertion_point(field_release:pg_query.Node.sort_group_clause) - if (_internal_has_sort_group_clause()) { - clear_has_node(); - ::pg_query::SortGroupClause* temp = _impl_.node_.sort_group_clause_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.sort_group_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::SortGroupClause& Node::_internal_sort_group_clause() const { - return _internal_has_sort_group_clause() - ? *_impl_.node_.sort_group_clause_ - : reinterpret_cast< ::pg_query::SortGroupClause&>(::pg_query::_SortGroupClause_default_instance_); -} -inline const ::pg_query::SortGroupClause& Node::sort_group_clause() const { - // @@protoc_insertion_point(field_get:pg_query.Node.sort_group_clause) - return _internal_sort_group_clause(); -} -inline ::pg_query::SortGroupClause* Node::unsafe_arena_release_sort_group_clause() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.sort_group_clause) - if (_internal_has_sort_group_clause()) { - clear_has_node(); - ::pg_query::SortGroupClause* temp = _impl_.node_.sort_group_clause_; - _impl_.node_.sort_group_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_sort_group_clause(::pg_query::SortGroupClause* sort_group_clause) { - clear_node(); - if (sort_group_clause) { - set_has_sort_group_clause(); - _impl_.node_.sort_group_clause_ = sort_group_clause; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.sort_group_clause) -} -inline ::pg_query::SortGroupClause* Node::_internal_mutable_sort_group_clause() { - if (!_internal_has_sort_group_clause()) { - clear_node(); - set_has_sort_group_clause(); - _impl_.node_.sort_group_clause_ = CreateMaybeMessage< ::pg_query::SortGroupClause >(GetArenaForAllocation()); - } - return _impl_.node_.sort_group_clause_; -} -inline ::pg_query::SortGroupClause* Node::mutable_sort_group_clause() { - ::pg_query::SortGroupClause* _msg = _internal_mutable_sort_group_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.sort_group_clause) - return _msg; -} - -// .pg_query.GroupingSet grouping_set = 201 [json_name = "GroupingSet"]; -inline bool Node::_internal_has_grouping_set() const { - return node_case() == kGroupingSet; -} -inline bool Node::has_grouping_set() const { - return _internal_has_grouping_set(); -} -inline void Node::set_has_grouping_set() { - _impl_._oneof_case_[0] = kGroupingSet; -} -inline void Node::clear_grouping_set() { - if (_internal_has_grouping_set()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.grouping_set_; - } - clear_has_node(); - } -} -inline ::pg_query::GroupingSet* Node::release_grouping_set() { - // @@protoc_insertion_point(field_release:pg_query.Node.grouping_set) - if (_internal_has_grouping_set()) { - clear_has_node(); - ::pg_query::GroupingSet* temp = _impl_.node_.grouping_set_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.grouping_set_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::GroupingSet& Node::_internal_grouping_set() const { - return _internal_has_grouping_set() - ? *_impl_.node_.grouping_set_ - : reinterpret_cast< ::pg_query::GroupingSet&>(::pg_query::_GroupingSet_default_instance_); -} -inline const ::pg_query::GroupingSet& Node::grouping_set() const { - // @@protoc_insertion_point(field_get:pg_query.Node.grouping_set) - return _internal_grouping_set(); -} -inline ::pg_query::GroupingSet* Node::unsafe_arena_release_grouping_set() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.grouping_set) - if (_internal_has_grouping_set()) { - clear_has_node(); - ::pg_query::GroupingSet* temp = _impl_.node_.grouping_set_; - _impl_.node_.grouping_set_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_grouping_set(::pg_query::GroupingSet* grouping_set) { - clear_node(); - if (grouping_set) { - set_has_grouping_set(); - _impl_.node_.grouping_set_ = grouping_set; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.grouping_set) -} -inline ::pg_query::GroupingSet* Node::_internal_mutable_grouping_set() { - if (!_internal_has_grouping_set()) { - clear_node(); - set_has_grouping_set(); - _impl_.node_.grouping_set_ = CreateMaybeMessage< ::pg_query::GroupingSet >(GetArenaForAllocation()); - } - return _impl_.node_.grouping_set_; -} -inline ::pg_query::GroupingSet* Node::mutable_grouping_set() { - ::pg_query::GroupingSet* _msg = _internal_mutable_grouping_set(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.grouping_set) - return _msg; -} - -// .pg_query.WindowClause window_clause = 202 [json_name = "WindowClause"]; -inline bool Node::_internal_has_window_clause() const { - return node_case() == kWindowClause; -} -inline bool Node::has_window_clause() const { - return _internal_has_window_clause(); -} -inline void Node::set_has_window_clause() { - _impl_._oneof_case_[0] = kWindowClause; -} -inline void Node::clear_window_clause() { - if (_internal_has_window_clause()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.window_clause_; - } - clear_has_node(); - } -} -inline ::pg_query::WindowClause* Node::release_window_clause() { - // @@protoc_insertion_point(field_release:pg_query.Node.window_clause) - if (_internal_has_window_clause()) { - clear_has_node(); - ::pg_query::WindowClause* temp = _impl_.node_.window_clause_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.window_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::WindowClause& Node::_internal_window_clause() const { - return _internal_has_window_clause() - ? *_impl_.node_.window_clause_ - : reinterpret_cast< ::pg_query::WindowClause&>(::pg_query::_WindowClause_default_instance_); -} -inline const ::pg_query::WindowClause& Node::window_clause() const { - // @@protoc_insertion_point(field_get:pg_query.Node.window_clause) - return _internal_window_clause(); -} -inline ::pg_query::WindowClause* Node::unsafe_arena_release_window_clause() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.window_clause) - if (_internal_has_window_clause()) { - clear_has_node(); - ::pg_query::WindowClause* temp = _impl_.node_.window_clause_; - _impl_.node_.window_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_window_clause(::pg_query::WindowClause* window_clause) { - clear_node(); - if (window_clause) { - set_has_window_clause(); - _impl_.node_.window_clause_ = window_clause; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.window_clause) -} -inline ::pg_query::WindowClause* Node::_internal_mutable_window_clause() { - if (!_internal_has_window_clause()) { - clear_node(); - set_has_window_clause(); - _impl_.node_.window_clause_ = CreateMaybeMessage< ::pg_query::WindowClause >(GetArenaForAllocation()); - } - return _impl_.node_.window_clause_; -} -inline ::pg_query::WindowClause* Node::mutable_window_clause() { - ::pg_query::WindowClause* _msg = _internal_mutable_window_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.window_clause) - return _msg; -} - -// .pg_query.ObjectWithArgs object_with_args = 203 [json_name = "ObjectWithArgs"]; -inline bool Node::_internal_has_object_with_args() const { - return node_case() == kObjectWithArgs; -} -inline bool Node::has_object_with_args() const { - return _internal_has_object_with_args(); -} -inline void Node::set_has_object_with_args() { - _impl_._oneof_case_[0] = kObjectWithArgs; -} -inline void Node::clear_object_with_args() { - if (_internal_has_object_with_args()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.object_with_args_; - } - clear_has_node(); - } -} -inline ::pg_query::ObjectWithArgs* Node::release_object_with_args() { - // @@protoc_insertion_point(field_release:pg_query.Node.object_with_args) - if (_internal_has_object_with_args()) { - clear_has_node(); - ::pg_query::ObjectWithArgs* temp = _impl_.node_.object_with_args_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.object_with_args_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::ObjectWithArgs& Node::_internal_object_with_args() const { - return _internal_has_object_with_args() - ? *_impl_.node_.object_with_args_ - : reinterpret_cast< ::pg_query::ObjectWithArgs&>(::pg_query::_ObjectWithArgs_default_instance_); -} -inline const ::pg_query::ObjectWithArgs& Node::object_with_args() const { - // @@protoc_insertion_point(field_get:pg_query.Node.object_with_args) - return _internal_object_with_args(); -} -inline ::pg_query::ObjectWithArgs* Node::unsafe_arena_release_object_with_args() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.object_with_args) - if (_internal_has_object_with_args()) { - clear_has_node(); - ::pg_query::ObjectWithArgs* temp = _impl_.node_.object_with_args_; - _impl_.node_.object_with_args_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_object_with_args(::pg_query::ObjectWithArgs* object_with_args) { - clear_node(); - if (object_with_args) { - set_has_object_with_args(); - _impl_.node_.object_with_args_ = object_with_args; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.object_with_args) -} -inline ::pg_query::ObjectWithArgs* Node::_internal_mutable_object_with_args() { - if (!_internal_has_object_with_args()) { - clear_node(); - set_has_object_with_args(); - _impl_.node_.object_with_args_ = CreateMaybeMessage< ::pg_query::ObjectWithArgs >(GetArenaForAllocation()); - } - return _impl_.node_.object_with_args_; -} -inline ::pg_query::ObjectWithArgs* Node::mutable_object_with_args() { - ::pg_query::ObjectWithArgs* _msg = _internal_mutable_object_with_args(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.object_with_args) - return _msg; -} - -// .pg_query.AccessPriv access_priv = 204 [json_name = "AccessPriv"]; -inline bool Node::_internal_has_access_priv() const { - return node_case() == kAccessPriv; -} -inline bool Node::has_access_priv() const { - return _internal_has_access_priv(); -} -inline void Node::set_has_access_priv() { - _impl_._oneof_case_[0] = kAccessPriv; -} -inline void Node::clear_access_priv() { - if (_internal_has_access_priv()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.access_priv_; - } - clear_has_node(); - } -} -inline ::pg_query::AccessPriv* Node::release_access_priv() { - // @@protoc_insertion_point(field_release:pg_query.Node.access_priv) - if (_internal_has_access_priv()) { - clear_has_node(); - ::pg_query::AccessPriv* temp = _impl_.node_.access_priv_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.access_priv_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::AccessPriv& Node::_internal_access_priv() const { - return _internal_has_access_priv() - ? *_impl_.node_.access_priv_ - : reinterpret_cast< ::pg_query::AccessPriv&>(::pg_query::_AccessPriv_default_instance_); -} -inline const ::pg_query::AccessPriv& Node::access_priv() const { - // @@protoc_insertion_point(field_get:pg_query.Node.access_priv) - return _internal_access_priv(); -} -inline ::pg_query::AccessPriv* Node::unsafe_arena_release_access_priv() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.access_priv) - if (_internal_has_access_priv()) { - clear_has_node(); - ::pg_query::AccessPriv* temp = _impl_.node_.access_priv_; - _impl_.node_.access_priv_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_access_priv(::pg_query::AccessPriv* access_priv) { - clear_node(); - if (access_priv) { - set_has_access_priv(); - _impl_.node_.access_priv_ = access_priv; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.access_priv) -} -inline ::pg_query::AccessPriv* Node::_internal_mutable_access_priv() { - if (!_internal_has_access_priv()) { - clear_node(); - set_has_access_priv(); - _impl_.node_.access_priv_ = CreateMaybeMessage< ::pg_query::AccessPriv >(GetArenaForAllocation()); - } - return _impl_.node_.access_priv_; -} -inline ::pg_query::AccessPriv* Node::mutable_access_priv() { - ::pg_query::AccessPriv* _msg = _internal_mutable_access_priv(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.access_priv) - return _msg; -} - -// .pg_query.CreateOpClassItem create_op_class_item = 205 [json_name = "CreateOpClassItem"]; -inline bool Node::_internal_has_create_op_class_item() const { - return node_case() == kCreateOpClassItem; -} -inline bool Node::has_create_op_class_item() const { - return _internal_has_create_op_class_item(); -} -inline void Node::set_has_create_op_class_item() { - _impl_._oneof_case_[0] = kCreateOpClassItem; -} -inline void Node::clear_create_op_class_item() { - if (_internal_has_create_op_class_item()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.create_op_class_item_; - } - clear_has_node(); - } -} -inline ::pg_query::CreateOpClassItem* Node::release_create_op_class_item() { - // @@protoc_insertion_point(field_release:pg_query.Node.create_op_class_item) - if (_internal_has_create_op_class_item()) { - clear_has_node(); - ::pg_query::CreateOpClassItem* temp = _impl_.node_.create_op_class_item_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.create_op_class_item_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CreateOpClassItem& Node::_internal_create_op_class_item() const { - return _internal_has_create_op_class_item() - ? *_impl_.node_.create_op_class_item_ - : reinterpret_cast< ::pg_query::CreateOpClassItem&>(::pg_query::_CreateOpClassItem_default_instance_); -} -inline const ::pg_query::CreateOpClassItem& Node::create_op_class_item() const { - // @@protoc_insertion_point(field_get:pg_query.Node.create_op_class_item) - return _internal_create_op_class_item(); -} -inline ::pg_query::CreateOpClassItem* Node::unsafe_arena_release_create_op_class_item() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.create_op_class_item) - if (_internal_has_create_op_class_item()) { - clear_has_node(); - ::pg_query::CreateOpClassItem* temp = _impl_.node_.create_op_class_item_; - _impl_.node_.create_op_class_item_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_create_op_class_item(::pg_query::CreateOpClassItem* create_op_class_item) { - clear_node(); - if (create_op_class_item) { - set_has_create_op_class_item(); - _impl_.node_.create_op_class_item_ = create_op_class_item; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.create_op_class_item) -} -inline ::pg_query::CreateOpClassItem* Node::_internal_mutable_create_op_class_item() { - if (!_internal_has_create_op_class_item()) { - clear_node(); - set_has_create_op_class_item(); - _impl_.node_.create_op_class_item_ = CreateMaybeMessage< ::pg_query::CreateOpClassItem >(GetArenaForAllocation()); - } - return _impl_.node_.create_op_class_item_; -} -inline ::pg_query::CreateOpClassItem* Node::mutable_create_op_class_item() { - ::pg_query::CreateOpClassItem* _msg = _internal_mutable_create_op_class_item(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.create_op_class_item) - return _msg; -} - -// .pg_query.TableLikeClause table_like_clause = 206 [json_name = "TableLikeClause"]; -inline bool Node::_internal_has_table_like_clause() const { - return node_case() == kTableLikeClause; -} -inline bool Node::has_table_like_clause() const { - return _internal_has_table_like_clause(); -} -inline void Node::set_has_table_like_clause() { - _impl_._oneof_case_[0] = kTableLikeClause; -} -inline void Node::clear_table_like_clause() { - if (_internal_has_table_like_clause()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.table_like_clause_; - } - clear_has_node(); - } -} -inline ::pg_query::TableLikeClause* Node::release_table_like_clause() { - // @@protoc_insertion_point(field_release:pg_query.Node.table_like_clause) - if (_internal_has_table_like_clause()) { - clear_has_node(); - ::pg_query::TableLikeClause* temp = _impl_.node_.table_like_clause_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.table_like_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::TableLikeClause& Node::_internal_table_like_clause() const { - return _internal_has_table_like_clause() - ? *_impl_.node_.table_like_clause_ - : reinterpret_cast< ::pg_query::TableLikeClause&>(::pg_query::_TableLikeClause_default_instance_); -} -inline const ::pg_query::TableLikeClause& Node::table_like_clause() const { - // @@protoc_insertion_point(field_get:pg_query.Node.table_like_clause) - return _internal_table_like_clause(); -} -inline ::pg_query::TableLikeClause* Node::unsafe_arena_release_table_like_clause() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.table_like_clause) - if (_internal_has_table_like_clause()) { - clear_has_node(); - ::pg_query::TableLikeClause* temp = _impl_.node_.table_like_clause_; - _impl_.node_.table_like_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_table_like_clause(::pg_query::TableLikeClause* table_like_clause) { - clear_node(); - if (table_like_clause) { - set_has_table_like_clause(); - _impl_.node_.table_like_clause_ = table_like_clause; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.table_like_clause) -} -inline ::pg_query::TableLikeClause* Node::_internal_mutable_table_like_clause() { - if (!_internal_has_table_like_clause()) { - clear_node(); - set_has_table_like_clause(); - _impl_.node_.table_like_clause_ = CreateMaybeMessage< ::pg_query::TableLikeClause >(GetArenaForAllocation()); - } - return _impl_.node_.table_like_clause_; -} -inline ::pg_query::TableLikeClause* Node::mutable_table_like_clause() { - ::pg_query::TableLikeClause* _msg = _internal_mutable_table_like_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.table_like_clause) - return _msg; -} - -// .pg_query.FunctionParameter function_parameter = 207 [json_name = "FunctionParameter"]; -inline bool Node::_internal_has_function_parameter() const { - return node_case() == kFunctionParameter; -} -inline bool Node::has_function_parameter() const { - return _internal_has_function_parameter(); -} -inline void Node::set_has_function_parameter() { - _impl_._oneof_case_[0] = kFunctionParameter; -} -inline void Node::clear_function_parameter() { - if (_internal_has_function_parameter()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.function_parameter_; - } - clear_has_node(); - } -} -inline ::pg_query::FunctionParameter* Node::release_function_parameter() { - // @@protoc_insertion_point(field_release:pg_query.Node.function_parameter) - if (_internal_has_function_parameter()) { - clear_has_node(); - ::pg_query::FunctionParameter* temp = _impl_.node_.function_parameter_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.function_parameter_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::FunctionParameter& Node::_internal_function_parameter() const { - return _internal_has_function_parameter() - ? *_impl_.node_.function_parameter_ - : reinterpret_cast< ::pg_query::FunctionParameter&>(::pg_query::_FunctionParameter_default_instance_); -} -inline const ::pg_query::FunctionParameter& Node::function_parameter() const { - // @@protoc_insertion_point(field_get:pg_query.Node.function_parameter) - return _internal_function_parameter(); -} -inline ::pg_query::FunctionParameter* Node::unsafe_arena_release_function_parameter() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.function_parameter) - if (_internal_has_function_parameter()) { - clear_has_node(); - ::pg_query::FunctionParameter* temp = _impl_.node_.function_parameter_; - _impl_.node_.function_parameter_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_function_parameter(::pg_query::FunctionParameter* function_parameter) { - clear_node(); - if (function_parameter) { - set_has_function_parameter(); - _impl_.node_.function_parameter_ = function_parameter; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.function_parameter) -} -inline ::pg_query::FunctionParameter* Node::_internal_mutable_function_parameter() { - if (!_internal_has_function_parameter()) { - clear_node(); - set_has_function_parameter(); - _impl_.node_.function_parameter_ = CreateMaybeMessage< ::pg_query::FunctionParameter >(GetArenaForAllocation()); - } - return _impl_.node_.function_parameter_; -} -inline ::pg_query::FunctionParameter* Node::mutable_function_parameter() { - ::pg_query::FunctionParameter* _msg = _internal_mutable_function_parameter(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.function_parameter) - return _msg; -} - -// .pg_query.LockingClause locking_clause = 208 [json_name = "LockingClause"]; -inline bool Node::_internal_has_locking_clause() const { - return node_case() == kLockingClause; -} -inline bool Node::has_locking_clause() const { - return _internal_has_locking_clause(); -} -inline void Node::set_has_locking_clause() { - _impl_._oneof_case_[0] = kLockingClause; -} -inline void Node::clear_locking_clause() { - if (_internal_has_locking_clause()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.locking_clause_; - } - clear_has_node(); - } -} -inline ::pg_query::LockingClause* Node::release_locking_clause() { - // @@protoc_insertion_point(field_release:pg_query.Node.locking_clause) - if (_internal_has_locking_clause()) { - clear_has_node(); - ::pg_query::LockingClause* temp = _impl_.node_.locking_clause_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.locking_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::LockingClause& Node::_internal_locking_clause() const { - return _internal_has_locking_clause() - ? *_impl_.node_.locking_clause_ - : reinterpret_cast< ::pg_query::LockingClause&>(::pg_query::_LockingClause_default_instance_); -} -inline const ::pg_query::LockingClause& Node::locking_clause() const { - // @@protoc_insertion_point(field_get:pg_query.Node.locking_clause) - return _internal_locking_clause(); -} -inline ::pg_query::LockingClause* Node::unsafe_arena_release_locking_clause() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.locking_clause) - if (_internal_has_locking_clause()) { - clear_has_node(); - ::pg_query::LockingClause* temp = _impl_.node_.locking_clause_; - _impl_.node_.locking_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_locking_clause(::pg_query::LockingClause* locking_clause) { - clear_node(); - if (locking_clause) { - set_has_locking_clause(); - _impl_.node_.locking_clause_ = locking_clause; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.locking_clause) -} -inline ::pg_query::LockingClause* Node::_internal_mutable_locking_clause() { - if (!_internal_has_locking_clause()) { - clear_node(); - set_has_locking_clause(); - _impl_.node_.locking_clause_ = CreateMaybeMessage< ::pg_query::LockingClause >(GetArenaForAllocation()); - } - return _impl_.node_.locking_clause_; -} -inline ::pg_query::LockingClause* Node::mutable_locking_clause() { - ::pg_query::LockingClause* _msg = _internal_mutable_locking_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.locking_clause) - return _msg; -} - -// .pg_query.RowMarkClause row_mark_clause = 209 [json_name = "RowMarkClause"]; -inline bool Node::_internal_has_row_mark_clause() const { - return node_case() == kRowMarkClause; -} -inline bool Node::has_row_mark_clause() const { - return _internal_has_row_mark_clause(); -} -inline void Node::set_has_row_mark_clause() { - _impl_._oneof_case_[0] = kRowMarkClause; -} -inline void Node::clear_row_mark_clause() { - if (_internal_has_row_mark_clause()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.row_mark_clause_; - } - clear_has_node(); - } -} -inline ::pg_query::RowMarkClause* Node::release_row_mark_clause() { - // @@protoc_insertion_point(field_release:pg_query.Node.row_mark_clause) - if (_internal_has_row_mark_clause()) { - clear_has_node(); - ::pg_query::RowMarkClause* temp = _impl_.node_.row_mark_clause_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.row_mark_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::RowMarkClause& Node::_internal_row_mark_clause() const { - return _internal_has_row_mark_clause() - ? *_impl_.node_.row_mark_clause_ - : reinterpret_cast< ::pg_query::RowMarkClause&>(::pg_query::_RowMarkClause_default_instance_); -} -inline const ::pg_query::RowMarkClause& Node::row_mark_clause() const { - // @@protoc_insertion_point(field_get:pg_query.Node.row_mark_clause) - return _internal_row_mark_clause(); -} -inline ::pg_query::RowMarkClause* Node::unsafe_arena_release_row_mark_clause() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.row_mark_clause) - if (_internal_has_row_mark_clause()) { - clear_has_node(); - ::pg_query::RowMarkClause* temp = _impl_.node_.row_mark_clause_; - _impl_.node_.row_mark_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_row_mark_clause(::pg_query::RowMarkClause* row_mark_clause) { - clear_node(); - if (row_mark_clause) { - set_has_row_mark_clause(); - _impl_.node_.row_mark_clause_ = row_mark_clause; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.row_mark_clause) -} -inline ::pg_query::RowMarkClause* Node::_internal_mutable_row_mark_clause() { - if (!_internal_has_row_mark_clause()) { - clear_node(); - set_has_row_mark_clause(); - _impl_.node_.row_mark_clause_ = CreateMaybeMessage< ::pg_query::RowMarkClause >(GetArenaForAllocation()); - } - return _impl_.node_.row_mark_clause_; -} -inline ::pg_query::RowMarkClause* Node::mutable_row_mark_clause() { - ::pg_query::RowMarkClause* _msg = _internal_mutable_row_mark_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.row_mark_clause) - return _msg; -} - -// .pg_query.XmlSerialize xml_serialize = 210 [json_name = "XmlSerialize"]; -inline bool Node::_internal_has_xml_serialize() const { - return node_case() == kXmlSerialize; -} -inline bool Node::has_xml_serialize() const { - return _internal_has_xml_serialize(); -} -inline void Node::set_has_xml_serialize() { - _impl_._oneof_case_[0] = kXmlSerialize; -} -inline void Node::clear_xml_serialize() { - if (_internal_has_xml_serialize()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.xml_serialize_; - } - clear_has_node(); - } -} -inline ::pg_query::XmlSerialize* Node::release_xml_serialize() { - // @@protoc_insertion_point(field_release:pg_query.Node.xml_serialize) - if (_internal_has_xml_serialize()) { - clear_has_node(); - ::pg_query::XmlSerialize* temp = _impl_.node_.xml_serialize_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.xml_serialize_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::XmlSerialize& Node::_internal_xml_serialize() const { - return _internal_has_xml_serialize() - ? *_impl_.node_.xml_serialize_ - : reinterpret_cast< ::pg_query::XmlSerialize&>(::pg_query::_XmlSerialize_default_instance_); -} -inline const ::pg_query::XmlSerialize& Node::xml_serialize() const { - // @@protoc_insertion_point(field_get:pg_query.Node.xml_serialize) - return _internal_xml_serialize(); -} -inline ::pg_query::XmlSerialize* Node::unsafe_arena_release_xml_serialize() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.xml_serialize) - if (_internal_has_xml_serialize()) { - clear_has_node(); - ::pg_query::XmlSerialize* temp = _impl_.node_.xml_serialize_; - _impl_.node_.xml_serialize_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_xml_serialize(::pg_query::XmlSerialize* xml_serialize) { - clear_node(); - if (xml_serialize) { - set_has_xml_serialize(); - _impl_.node_.xml_serialize_ = xml_serialize; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.xml_serialize) -} -inline ::pg_query::XmlSerialize* Node::_internal_mutable_xml_serialize() { - if (!_internal_has_xml_serialize()) { - clear_node(); - set_has_xml_serialize(); - _impl_.node_.xml_serialize_ = CreateMaybeMessage< ::pg_query::XmlSerialize >(GetArenaForAllocation()); - } - return _impl_.node_.xml_serialize_; -} -inline ::pg_query::XmlSerialize* Node::mutable_xml_serialize() { - ::pg_query::XmlSerialize* _msg = _internal_mutable_xml_serialize(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.xml_serialize) - return _msg; -} - -// .pg_query.WithClause with_clause = 211 [json_name = "WithClause"]; -inline bool Node::_internal_has_with_clause() const { - return node_case() == kWithClause; -} -inline bool Node::has_with_clause() const { - return _internal_has_with_clause(); -} -inline void Node::set_has_with_clause() { - _impl_._oneof_case_[0] = kWithClause; -} -inline void Node::clear_with_clause() { - if (_internal_has_with_clause()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.with_clause_; - } - clear_has_node(); - } -} -inline ::pg_query::WithClause* Node::release_with_clause() { - // @@protoc_insertion_point(field_release:pg_query.Node.with_clause) - if (_internal_has_with_clause()) { - clear_has_node(); - ::pg_query::WithClause* temp = _impl_.node_.with_clause_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.with_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::WithClause& Node::_internal_with_clause() const { - return _internal_has_with_clause() - ? *_impl_.node_.with_clause_ - : reinterpret_cast< ::pg_query::WithClause&>(::pg_query::_WithClause_default_instance_); -} -inline const ::pg_query::WithClause& Node::with_clause() const { - // @@protoc_insertion_point(field_get:pg_query.Node.with_clause) - return _internal_with_clause(); -} -inline ::pg_query::WithClause* Node::unsafe_arena_release_with_clause() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.with_clause) - if (_internal_has_with_clause()) { - clear_has_node(); - ::pg_query::WithClause* temp = _impl_.node_.with_clause_; - _impl_.node_.with_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_with_clause(::pg_query::WithClause* with_clause) { - clear_node(); - if (with_clause) { - set_has_with_clause(); - _impl_.node_.with_clause_ = with_clause; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.with_clause) -} -inline ::pg_query::WithClause* Node::_internal_mutable_with_clause() { - if (!_internal_has_with_clause()) { - clear_node(); - set_has_with_clause(); - _impl_.node_.with_clause_ = CreateMaybeMessage< ::pg_query::WithClause >(GetArenaForAllocation()); - } - return _impl_.node_.with_clause_; -} -inline ::pg_query::WithClause* Node::mutable_with_clause() { - ::pg_query::WithClause* _msg = _internal_mutable_with_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.with_clause) - return _msg; -} - -// .pg_query.InferClause infer_clause = 212 [json_name = "InferClause"]; -inline bool Node::_internal_has_infer_clause() const { - return node_case() == kInferClause; -} -inline bool Node::has_infer_clause() const { - return _internal_has_infer_clause(); -} -inline void Node::set_has_infer_clause() { - _impl_._oneof_case_[0] = kInferClause; -} -inline void Node::clear_infer_clause() { - if (_internal_has_infer_clause()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.infer_clause_; - } - clear_has_node(); - } -} -inline ::pg_query::InferClause* Node::release_infer_clause() { - // @@protoc_insertion_point(field_release:pg_query.Node.infer_clause) - if (_internal_has_infer_clause()) { - clear_has_node(); - ::pg_query::InferClause* temp = _impl_.node_.infer_clause_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.infer_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::InferClause& Node::_internal_infer_clause() const { - return _internal_has_infer_clause() - ? *_impl_.node_.infer_clause_ - : reinterpret_cast< ::pg_query::InferClause&>(::pg_query::_InferClause_default_instance_); -} -inline const ::pg_query::InferClause& Node::infer_clause() const { - // @@protoc_insertion_point(field_get:pg_query.Node.infer_clause) - return _internal_infer_clause(); -} -inline ::pg_query::InferClause* Node::unsafe_arena_release_infer_clause() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.infer_clause) - if (_internal_has_infer_clause()) { - clear_has_node(); - ::pg_query::InferClause* temp = _impl_.node_.infer_clause_; - _impl_.node_.infer_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_infer_clause(::pg_query::InferClause* infer_clause) { - clear_node(); - if (infer_clause) { - set_has_infer_clause(); - _impl_.node_.infer_clause_ = infer_clause; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.infer_clause) -} -inline ::pg_query::InferClause* Node::_internal_mutable_infer_clause() { - if (!_internal_has_infer_clause()) { - clear_node(); - set_has_infer_clause(); - _impl_.node_.infer_clause_ = CreateMaybeMessage< ::pg_query::InferClause >(GetArenaForAllocation()); - } - return _impl_.node_.infer_clause_; -} -inline ::pg_query::InferClause* Node::mutable_infer_clause() { - ::pg_query::InferClause* _msg = _internal_mutable_infer_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.infer_clause) - return _msg; -} - -// .pg_query.OnConflictClause on_conflict_clause = 213 [json_name = "OnConflictClause"]; -inline bool Node::_internal_has_on_conflict_clause() const { - return node_case() == kOnConflictClause; -} -inline bool Node::has_on_conflict_clause() const { - return _internal_has_on_conflict_clause(); -} -inline void Node::set_has_on_conflict_clause() { - _impl_._oneof_case_[0] = kOnConflictClause; -} -inline void Node::clear_on_conflict_clause() { - if (_internal_has_on_conflict_clause()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.on_conflict_clause_; - } - clear_has_node(); - } -} -inline ::pg_query::OnConflictClause* Node::release_on_conflict_clause() { - // @@protoc_insertion_point(field_release:pg_query.Node.on_conflict_clause) - if (_internal_has_on_conflict_clause()) { - clear_has_node(); - ::pg_query::OnConflictClause* temp = _impl_.node_.on_conflict_clause_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.on_conflict_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::OnConflictClause& Node::_internal_on_conflict_clause() const { - return _internal_has_on_conflict_clause() - ? *_impl_.node_.on_conflict_clause_ - : reinterpret_cast< ::pg_query::OnConflictClause&>(::pg_query::_OnConflictClause_default_instance_); -} -inline const ::pg_query::OnConflictClause& Node::on_conflict_clause() const { - // @@protoc_insertion_point(field_get:pg_query.Node.on_conflict_clause) - return _internal_on_conflict_clause(); -} -inline ::pg_query::OnConflictClause* Node::unsafe_arena_release_on_conflict_clause() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.on_conflict_clause) - if (_internal_has_on_conflict_clause()) { - clear_has_node(); - ::pg_query::OnConflictClause* temp = _impl_.node_.on_conflict_clause_; - _impl_.node_.on_conflict_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_on_conflict_clause(::pg_query::OnConflictClause* on_conflict_clause) { - clear_node(); - if (on_conflict_clause) { - set_has_on_conflict_clause(); - _impl_.node_.on_conflict_clause_ = on_conflict_clause; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.on_conflict_clause) -} -inline ::pg_query::OnConflictClause* Node::_internal_mutable_on_conflict_clause() { - if (!_internal_has_on_conflict_clause()) { - clear_node(); - set_has_on_conflict_clause(); - _impl_.node_.on_conflict_clause_ = CreateMaybeMessage< ::pg_query::OnConflictClause >(GetArenaForAllocation()); - } - return _impl_.node_.on_conflict_clause_; -} -inline ::pg_query::OnConflictClause* Node::mutable_on_conflict_clause() { - ::pg_query::OnConflictClause* _msg = _internal_mutable_on_conflict_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.on_conflict_clause) - return _msg; -} - -// .pg_query.CTESearchClause ctesearch_clause = 214 [json_name = "CTESearchClause"]; -inline bool Node::_internal_has_ctesearch_clause() const { - return node_case() == kCtesearchClause; -} -inline bool Node::has_ctesearch_clause() const { - return _internal_has_ctesearch_clause(); -} -inline void Node::set_has_ctesearch_clause() { - _impl_._oneof_case_[0] = kCtesearchClause; -} -inline void Node::clear_ctesearch_clause() { - if (_internal_has_ctesearch_clause()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.ctesearch_clause_; - } - clear_has_node(); - } -} -inline ::pg_query::CTESearchClause* Node::release_ctesearch_clause() { - // @@protoc_insertion_point(field_release:pg_query.Node.ctesearch_clause) - if (_internal_has_ctesearch_clause()) { - clear_has_node(); - ::pg_query::CTESearchClause* temp = _impl_.node_.ctesearch_clause_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.ctesearch_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CTESearchClause& Node::_internal_ctesearch_clause() const { - return _internal_has_ctesearch_clause() - ? *_impl_.node_.ctesearch_clause_ - : reinterpret_cast< ::pg_query::CTESearchClause&>(::pg_query::_CTESearchClause_default_instance_); -} -inline const ::pg_query::CTESearchClause& Node::ctesearch_clause() const { - // @@protoc_insertion_point(field_get:pg_query.Node.ctesearch_clause) - return _internal_ctesearch_clause(); -} -inline ::pg_query::CTESearchClause* Node::unsafe_arena_release_ctesearch_clause() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.ctesearch_clause) - if (_internal_has_ctesearch_clause()) { - clear_has_node(); - ::pg_query::CTESearchClause* temp = _impl_.node_.ctesearch_clause_; - _impl_.node_.ctesearch_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_ctesearch_clause(::pg_query::CTESearchClause* ctesearch_clause) { - clear_node(); - if (ctesearch_clause) { - set_has_ctesearch_clause(); - _impl_.node_.ctesearch_clause_ = ctesearch_clause; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.ctesearch_clause) -} -inline ::pg_query::CTESearchClause* Node::_internal_mutable_ctesearch_clause() { - if (!_internal_has_ctesearch_clause()) { - clear_node(); - set_has_ctesearch_clause(); - _impl_.node_.ctesearch_clause_ = CreateMaybeMessage< ::pg_query::CTESearchClause >(GetArenaForAllocation()); - } - return _impl_.node_.ctesearch_clause_; -} -inline ::pg_query::CTESearchClause* Node::mutable_ctesearch_clause() { - ::pg_query::CTESearchClause* _msg = _internal_mutable_ctesearch_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.ctesearch_clause) - return _msg; -} - -// .pg_query.CTECycleClause ctecycle_clause = 215 [json_name = "CTECycleClause"]; -inline bool Node::_internal_has_ctecycle_clause() const { - return node_case() == kCtecycleClause; -} -inline bool Node::has_ctecycle_clause() const { - return _internal_has_ctecycle_clause(); -} -inline void Node::set_has_ctecycle_clause() { - _impl_._oneof_case_[0] = kCtecycleClause; -} -inline void Node::clear_ctecycle_clause() { - if (_internal_has_ctecycle_clause()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.ctecycle_clause_; - } - clear_has_node(); - } -} -inline ::pg_query::CTECycleClause* Node::release_ctecycle_clause() { - // @@protoc_insertion_point(field_release:pg_query.Node.ctecycle_clause) - if (_internal_has_ctecycle_clause()) { - clear_has_node(); - ::pg_query::CTECycleClause* temp = _impl_.node_.ctecycle_clause_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.ctecycle_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CTECycleClause& Node::_internal_ctecycle_clause() const { - return _internal_has_ctecycle_clause() - ? *_impl_.node_.ctecycle_clause_ - : reinterpret_cast< ::pg_query::CTECycleClause&>(::pg_query::_CTECycleClause_default_instance_); -} -inline const ::pg_query::CTECycleClause& Node::ctecycle_clause() const { - // @@protoc_insertion_point(field_get:pg_query.Node.ctecycle_clause) - return _internal_ctecycle_clause(); -} -inline ::pg_query::CTECycleClause* Node::unsafe_arena_release_ctecycle_clause() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.ctecycle_clause) - if (_internal_has_ctecycle_clause()) { - clear_has_node(); - ::pg_query::CTECycleClause* temp = _impl_.node_.ctecycle_clause_; - _impl_.node_.ctecycle_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_ctecycle_clause(::pg_query::CTECycleClause* ctecycle_clause) { - clear_node(); - if (ctecycle_clause) { - set_has_ctecycle_clause(); - _impl_.node_.ctecycle_clause_ = ctecycle_clause; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.ctecycle_clause) -} -inline ::pg_query::CTECycleClause* Node::_internal_mutable_ctecycle_clause() { - if (!_internal_has_ctecycle_clause()) { - clear_node(); - set_has_ctecycle_clause(); - _impl_.node_.ctecycle_clause_ = CreateMaybeMessage< ::pg_query::CTECycleClause >(GetArenaForAllocation()); - } - return _impl_.node_.ctecycle_clause_; -} -inline ::pg_query::CTECycleClause* Node::mutable_ctecycle_clause() { - ::pg_query::CTECycleClause* _msg = _internal_mutable_ctecycle_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.ctecycle_clause) - return _msg; -} - -// .pg_query.CommonTableExpr common_table_expr = 216 [json_name = "CommonTableExpr"]; -inline bool Node::_internal_has_common_table_expr() const { - return node_case() == kCommonTableExpr; -} -inline bool Node::has_common_table_expr() const { - return _internal_has_common_table_expr(); -} -inline void Node::set_has_common_table_expr() { - _impl_._oneof_case_[0] = kCommonTableExpr; -} -inline void Node::clear_common_table_expr() { - if (_internal_has_common_table_expr()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.common_table_expr_; - } - clear_has_node(); - } -} -inline ::pg_query::CommonTableExpr* Node::release_common_table_expr() { - // @@protoc_insertion_point(field_release:pg_query.Node.common_table_expr) - if (_internal_has_common_table_expr()) { - clear_has_node(); - ::pg_query::CommonTableExpr* temp = _impl_.node_.common_table_expr_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.common_table_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CommonTableExpr& Node::_internal_common_table_expr() const { - return _internal_has_common_table_expr() - ? *_impl_.node_.common_table_expr_ - : reinterpret_cast< ::pg_query::CommonTableExpr&>(::pg_query::_CommonTableExpr_default_instance_); -} -inline const ::pg_query::CommonTableExpr& Node::common_table_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Node.common_table_expr) - return _internal_common_table_expr(); -} -inline ::pg_query::CommonTableExpr* Node::unsafe_arena_release_common_table_expr() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.common_table_expr) - if (_internal_has_common_table_expr()) { - clear_has_node(); - ::pg_query::CommonTableExpr* temp = _impl_.node_.common_table_expr_; - _impl_.node_.common_table_expr_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_common_table_expr(::pg_query::CommonTableExpr* common_table_expr) { - clear_node(); - if (common_table_expr) { - set_has_common_table_expr(); - _impl_.node_.common_table_expr_ = common_table_expr; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.common_table_expr) -} -inline ::pg_query::CommonTableExpr* Node::_internal_mutable_common_table_expr() { - if (!_internal_has_common_table_expr()) { - clear_node(); - set_has_common_table_expr(); - _impl_.node_.common_table_expr_ = CreateMaybeMessage< ::pg_query::CommonTableExpr >(GetArenaForAllocation()); - } - return _impl_.node_.common_table_expr_; -} -inline ::pg_query::CommonTableExpr* Node::mutable_common_table_expr() { - ::pg_query::CommonTableExpr* _msg = _internal_mutable_common_table_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.common_table_expr) - return _msg; -} - -// .pg_query.MergeWhenClause merge_when_clause = 217 [json_name = "MergeWhenClause"]; -inline bool Node::_internal_has_merge_when_clause() const { - return node_case() == kMergeWhenClause; -} -inline bool Node::has_merge_when_clause() const { - return _internal_has_merge_when_clause(); -} -inline void Node::set_has_merge_when_clause() { - _impl_._oneof_case_[0] = kMergeWhenClause; -} -inline void Node::clear_merge_when_clause() { - if (_internal_has_merge_when_clause()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.merge_when_clause_; - } - clear_has_node(); - } -} -inline ::pg_query::MergeWhenClause* Node::release_merge_when_clause() { - // @@protoc_insertion_point(field_release:pg_query.Node.merge_when_clause) - if (_internal_has_merge_when_clause()) { - clear_has_node(); - ::pg_query::MergeWhenClause* temp = _impl_.node_.merge_when_clause_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.merge_when_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::MergeWhenClause& Node::_internal_merge_when_clause() const { - return _internal_has_merge_when_clause() - ? *_impl_.node_.merge_when_clause_ - : reinterpret_cast< ::pg_query::MergeWhenClause&>(::pg_query::_MergeWhenClause_default_instance_); -} -inline const ::pg_query::MergeWhenClause& Node::merge_when_clause() const { - // @@protoc_insertion_point(field_get:pg_query.Node.merge_when_clause) - return _internal_merge_when_clause(); -} -inline ::pg_query::MergeWhenClause* Node::unsafe_arena_release_merge_when_clause() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.merge_when_clause) - if (_internal_has_merge_when_clause()) { - clear_has_node(); - ::pg_query::MergeWhenClause* temp = _impl_.node_.merge_when_clause_; - _impl_.node_.merge_when_clause_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_merge_when_clause(::pg_query::MergeWhenClause* merge_when_clause) { - clear_node(); - if (merge_when_clause) { - set_has_merge_when_clause(); - _impl_.node_.merge_when_clause_ = merge_when_clause; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.merge_when_clause) -} -inline ::pg_query::MergeWhenClause* Node::_internal_mutable_merge_when_clause() { - if (!_internal_has_merge_when_clause()) { - clear_node(); - set_has_merge_when_clause(); - _impl_.node_.merge_when_clause_ = CreateMaybeMessage< ::pg_query::MergeWhenClause >(GetArenaForAllocation()); - } - return _impl_.node_.merge_when_clause_; -} -inline ::pg_query::MergeWhenClause* Node::mutable_merge_when_clause() { - ::pg_query::MergeWhenClause* _msg = _internal_mutable_merge_when_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.merge_when_clause) - return _msg; -} - -// .pg_query.RoleSpec role_spec = 218 [json_name = "RoleSpec"]; -inline bool Node::_internal_has_role_spec() const { - return node_case() == kRoleSpec; -} -inline bool Node::has_role_spec() const { - return _internal_has_role_spec(); -} -inline void Node::set_has_role_spec() { - _impl_._oneof_case_[0] = kRoleSpec; -} -inline void Node::clear_role_spec() { - if (_internal_has_role_spec()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.role_spec_; - } - clear_has_node(); - } -} -inline ::pg_query::RoleSpec* Node::release_role_spec() { - // @@protoc_insertion_point(field_release:pg_query.Node.role_spec) - if (_internal_has_role_spec()) { - clear_has_node(); - ::pg_query::RoleSpec* temp = _impl_.node_.role_spec_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.role_spec_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::RoleSpec& Node::_internal_role_spec() const { - return _internal_has_role_spec() - ? *_impl_.node_.role_spec_ - : reinterpret_cast< ::pg_query::RoleSpec&>(::pg_query::_RoleSpec_default_instance_); -} -inline const ::pg_query::RoleSpec& Node::role_spec() const { - // @@protoc_insertion_point(field_get:pg_query.Node.role_spec) - return _internal_role_spec(); -} -inline ::pg_query::RoleSpec* Node::unsafe_arena_release_role_spec() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.role_spec) - if (_internal_has_role_spec()) { - clear_has_node(); - ::pg_query::RoleSpec* temp = _impl_.node_.role_spec_; - _impl_.node_.role_spec_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_role_spec(::pg_query::RoleSpec* role_spec) { - clear_node(); - if (role_spec) { - set_has_role_spec(); - _impl_.node_.role_spec_ = role_spec; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.role_spec) -} -inline ::pg_query::RoleSpec* Node::_internal_mutable_role_spec() { - if (!_internal_has_role_spec()) { - clear_node(); - set_has_role_spec(); - _impl_.node_.role_spec_ = CreateMaybeMessage< ::pg_query::RoleSpec >(GetArenaForAllocation()); - } - return _impl_.node_.role_spec_; -} -inline ::pg_query::RoleSpec* Node::mutable_role_spec() { - ::pg_query::RoleSpec* _msg = _internal_mutable_role_spec(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.role_spec) - return _msg; -} - -// .pg_query.TriggerTransition trigger_transition = 219 [json_name = "TriggerTransition"]; -inline bool Node::_internal_has_trigger_transition() const { - return node_case() == kTriggerTransition; -} -inline bool Node::has_trigger_transition() const { - return _internal_has_trigger_transition(); -} -inline void Node::set_has_trigger_transition() { - _impl_._oneof_case_[0] = kTriggerTransition; -} -inline void Node::clear_trigger_transition() { - if (_internal_has_trigger_transition()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.trigger_transition_; - } - clear_has_node(); - } -} -inline ::pg_query::TriggerTransition* Node::release_trigger_transition() { - // @@protoc_insertion_point(field_release:pg_query.Node.trigger_transition) - if (_internal_has_trigger_transition()) { - clear_has_node(); - ::pg_query::TriggerTransition* temp = _impl_.node_.trigger_transition_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.trigger_transition_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::TriggerTransition& Node::_internal_trigger_transition() const { - return _internal_has_trigger_transition() - ? *_impl_.node_.trigger_transition_ - : reinterpret_cast< ::pg_query::TriggerTransition&>(::pg_query::_TriggerTransition_default_instance_); -} -inline const ::pg_query::TriggerTransition& Node::trigger_transition() const { - // @@protoc_insertion_point(field_get:pg_query.Node.trigger_transition) - return _internal_trigger_transition(); -} -inline ::pg_query::TriggerTransition* Node::unsafe_arena_release_trigger_transition() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.trigger_transition) - if (_internal_has_trigger_transition()) { - clear_has_node(); - ::pg_query::TriggerTransition* temp = _impl_.node_.trigger_transition_; - _impl_.node_.trigger_transition_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_trigger_transition(::pg_query::TriggerTransition* trigger_transition) { - clear_node(); - if (trigger_transition) { - set_has_trigger_transition(); - _impl_.node_.trigger_transition_ = trigger_transition; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.trigger_transition) -} -inline ::pg_query::TriggerTransition* Node::_internal_mutable_trigger_transition() { - if (!_internal_has_trigger_transition()) { - clear_node(); - set_has_trigger_transition(); - _impl_.node_.trigger_transition_ = CreateMaybeMessage< ::pg_query::TriggerTransition >(GetArenaForAllocation()); - } - return _impl_.node_.trigger_transition_; -} -inline ::pg_query::TriggerTransition* Node::mutable_trigger_transition() { - ::pg_query::TriggerTransition* _msg = _internal_mutable_trigger_transition(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.trigger_transition) - return _msg; -} - -// .pg_query.PartitionElem partition_elem = 220 [json_name = "PartitionElem"]; -inline bool Node::_internal_has_partition_elem() const { - return node_case() == kPartitionElem; -} -inline bool Node::has_partition_elem() const { - return _internal_has_partition_elem(); -} -inline void Node::set_has_partition_elem() { - _impl_._oneof_case_[0] = kPartitionElem; -} -inline void Node::clear_partition_elem() { - if (_internal_has_partition_elem()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.partition_elem_; - } - clear_has_node(); - } -} -inline ::pg_query::PartitionElem* Node::release_partition_elem() { - // @@protoc_insertion_point(field_release:pg_query.Node.partition_elem) - if (_internal_has_partition_elem()) { - clear_has_node(); - ::pg_query::PartitionElem* temp = _impl_.node_.partition_elem_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.partition_elem_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::PartitionElem& Node::_internal_partition_elem() const { - return _internal_has_partition_elem() - ? *_impl_.node_.partition_elem_ - : reinterpret_cast< ::pg_query::PartitionElem&>(::pg_query::_PartitionElem_default_instance_); -} -inline const ::pg_query::PartitionElem& Node::partition_elem() const { - // @@protoc_insertion_point(field_get:pg_query.Node.partition_elem) - return _internal_partition_elem(); -} -inline ::pg_query::PartitionElem* Node::unsafe_arena_release_partition_elem() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.partition_elem) - if (_internal_has_partition_elem()) { - clear_has_node(); - ::pg_query::PartitionElem* temp = _impl_.node_.partition_elem_; - _impl_.node_.partition_elem_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_partition_elem(::pg_query::PartitionElem* partition_elem) { - clear_node(); - if (partition_elem) { - set_has_partition_elem(); - _impl_.node_.partition_elem_ = partition_elem; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.partition_elem) -} -inline ::pg_query::PartitionElem* Node::_internal_mutable_partition_elem() { - if (!_internal_has_partition_elem()) { - clear_node(); - set_has_partition_elem(); - _impl_.node_.partition_elem_ = CreateMaybeMessage< ::pg_query::PartitionElem >(GetArenaForAllocation()); - } - return _impl_.node_.partition_elem_; -} -inline ::pg_query::PartitionElem* Node::mutable_partition_elem() { - ::pg_query::PartitionElem* _msg = _internal_mutable_partition_elem(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.partition_elem) - return _msg; -} - -// .pg_query.PartitionSpec partition_spec = 221 [json_name = "PartitionSpec"]; -inline bool Node::_internal_has_partition_spec() const { - return node_case() == kPartitionSpec; -} -inline bool Node::has_partition_spec() const { - return _internal_has_partition_spec(); -} -inline void Node::set_has_partition_spec() { - _impl_._oneof_case_[0] = kPartitionSpec; -} -inline void Node::clear_partition_spec() { - if (_internal_has_partition_spec()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.partition_spec_; - } - clear_has_node(); - } -} -inline ::pg_query::PartitionSpec* Node::release_partition_spec() { - // @@protoc_insertion_point(field_release:pg_query.Node.partition_spec) - if (_internal_has_partition_spec()) { - clear_has_node(); - ::pg_query::PartitionSpec* temp = _impl_.node_.partition_spec_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.partition_spec_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::PartitionSpec& Node::_internal_partition_spec() const { - return _internal_has_partition_spec() - ? *_impl_.node_.partition_spec_ - : reinterpret_cast< ::pg_query::PartitionSpec&>(::pg_query::_PartitionSpec_default_instance_); -} -inline const ::pg_query::PartitionSpec& Node::partition_spec() const { - // @@protoc_insertion_point(field_get:pg_query.Node.partition_spec) - return _internal_partition_spec(); -} -inline ::pg_query::PartitionSpec* Node::unsafe_arena_release_partition_spec() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.partition_spec) - if (_internal_has_partition_spec()) { - clear_has_node(); - ::pg_query::PartitionSpec* temp = _impl_.node_.partition_spec_; - _impl_.node_.partition_spec_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_partition_spec(::pg_query::PartitionSpec* partition_spec) { - clear_node(); - if (partition_spec) { - set_has_partition_spec(); - _impl_.node_.partition_spec_ = partition_spec; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.partition_spec) -} -inline ::pg_query::PartitionSpec* Node::_internal_mutable_partition_spec() { - if (!_internal_has_partition_spec()) { - clear_node(); - set_has_partition_spec(); - _impl_.node_.partition_spec_ = CreateMaybeMessage< ::pg_query::PartitionSpec >(GetArenaForAllocation()); - } - return _impl_.node_.partition_spec_; -} -inline ::pg_query::PartitionSpec* Node::mutable_partition_spec() { - ::pg_query::PartitionSpec* _msg = _internal_mutable_partition_spec(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.partition_spec) - return _msg; -} - -// .pg_query.PartitionBoundSpec partition_bound_spec = 222 [json_name = "PartitionBoundSpec"]; -inline bool Node::_internal_has_partition_bound_spec() const { - return node_case() == kPartitionBoundSpec; -} -inline bool Node::has_partition_bound_spec() const { - return _internal_has_partition_bound_spec(); -} -inline void Node::set_has_partition_bound_spec() { - _impl_._oneof_case_[0] = kPartitionBoundSpec; -} -inline void Node::clear_partition_bound_spec() { - if (_internal_has_partition_bound_spec()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.partition_bound_spec_; - } - clear_has_node(); - } -} -inline ::pg_query::PartitionBoundSpec* Node::release_partition_bound_spec() { - // @@protoc_insertion_point(field_release:pg_query.Node.partition_bound_spec) - if (_internal_has_partition_bound_spec()) { - clear_has_node(); - ::pg_query::PartitionBoundSpec* temp = _impl_.node_.partition_bound_spec_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.partition_bound_spec_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::PartitionBoundSpec& Node::_internal_partition_bound_spec() const { - return _internal_has_partition_bound_spec() - ? *_impl_.node_.partition_bound_spec_ - : reinterpret_cast< ::pg_query::PartitionBoundSpec&>(::pg_query::_PartitionBoundSpec_default_instance_); -} -inline const ::pg_query::PartitionBoundSpec& Node::partition_bound_spec() const { - // @@protoc_insertion_point(field_get:pg_query.Node.partition_bound_spec) - return _internal_partition_bound_spec(); -} -inline ::pg_query::PartitionBoundSpec* Node::unsafe_arena_release_partition_bound_spec() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.partition_bound_spec) - if (_internal_has_partition_bound_spec()) { - clear_has_node(); - ::pg_query::PartitionBoundSpec* temp = _impl_.node_.partition_bound_spec_; - _impl_.node_.partition_bound_spec_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_partition_bound_spec(::pg_query::PartitionBoundSpec* partition_bound_spec) { - clear_node(); - if (partition_bound_spec) { - set_has_partition_bound_spec(); - _impl_.node_.partition_bound_spec_ = partition_bound_spec; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.partition_bound_spec) -} -inline ::pg_query::PartitionBoundSpec* Node::_internal_mutable_partition_bound_spec() { - if (!_internal_has_partition_bound_spec()) { - clear_node(); - set_has_partition_bound_spec(); - _impl_.node_.partition_bound_spec_ = CreateMaybeMessage< ::pg_query::PartitionBoundSpec >(GetArenaForAllocation()); - } - return _impl_.node_.partition_bound_spec_; -} -inline ::pg_query::PartitionBoundSpec* Node::mutable_partition_bound_spec() { - ::pg_query::PartitionBoundSpec* _msg = _internal_mutable_partition_bound_spec(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.partition_bound_spec) - return _msg; -} - -// .pg_query.PartitionRangeDatum partition_range_datum = 223 [json_name = "PartitionRangeDatum"]; -inline bool Node::_internal_has_partition_range_datum() const { - return node_case() == kPartitionRangeDatum; -} -inline bool Node::has_partition_range_datum() const { - return _internal_has_partition_range_datum(); -} -inline void Node::set_has_partition_range_datum() { - _impl_._oneof_case_[0] = kPartitionRangeDatum; -} -inline void Node::clear_partition_range_datum() { - if (_internal_has_partition_range_datum()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.partition_range_datum_; - } - clear_has_node(); - } -} -inline ::pg_query::PartitionRangeDatum* Node::release_partition_range_datum() { - // @@protoc_insertion_point(field_release:pg_query.Node.partition_range_datum) - if (_internal_has_partition_range_datum()) { - clear_has_node(); - ::pg_query::PartitionRangeDatum* temp = _impl_.node_.partition_range_datum_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.partition_range_datum_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::PartitionRangeDatum& Node::_internal_partition_range_datum() const { - return _internal_has_partition_range_datum() - ? *_impl_.node_.partition_range_datum_ - : reinterpret_cast< ::pg_query::PartitionRangeDatum&>(::pg_query::_PartitionRangeDatum_default_instance_); -} -inline const ::pg_query::PartitionRangeDatum& Node::partition_range_datum() const { - // @@protoc_insertion_point(field_get:pg_query.Node.partition_range_datum) - return _internal_partition_range_datum(); -} -inline ::pg_query::PartitionRangeDatum* Node::unsafe_arena_release_partition_range_datum() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.partition_range_datum) - if (_internal_has_partition_range_datum()) { - clear_has_node(); - ::pg_query::PartitionRangeDatum* temp = _impl_.node_.partition_range_datum_; - _impl_.node_.partition_range_datum_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_partition_range_datum(::pg_query::PartitionRangeDatum* partition_range_datum) { - clear_node(); - if (partition_range_datum) { - set_has_partition_range_datum(); - _impl_.node_.partition_range_datum_ = partition_range_datum; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.partition_range_datum) -} -inline ::pg_query::PartitionRangeDatum* Node::_internal_mutable_partition_range_datum() { - if (!_internal_has_partition_range_datum()) { - clear_node(); - set_has_partition_range_datum(); - _impl_.node_.partition_range_datum_ = CreateMaybeMessage< ::pg_query::PartitionRangeDatum >(GetArenaForAllocation()); - } - return _impl_.node_.partition_range_datum_; -} -inline ::pg_query::PartitionRangeDatum* Node::mutable_partition_range_datum() { - ::pg_query::PartitionRangeDatum* _msg = _internal_mutable_partition_range_datum(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.partition_range_datum) - return _msg; -} - -// .pg_query.PartitionCmd partition_cmd = 224 [json_name = "PartitionCmd"]; -inline bool Node::_internal_has_partition_cmd() const { - return node_case() == kPartitionCmd; -} -inline bool Node::has_partition_cmd() const { - return _internal_has_partition_cmd(); -} -inline void Node::set_has_partition_cmd() { - _impl_._oneof_case_[0] = kPartitionCmd; -} -inline void Node::clear_partition_cmd() { - if (_internal_has_partition_cmd()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.partition_cmd_; - } - clear_has_node(); - } -} -inline ::pg_query::PartitionCmd* Node::release_partition_cmd() { - // @@protoc_insertion_point(field_release:pg_query.Node.partition_cmd) - if (_internal_has_partition_cmd()) { - clear_has_node(); - ::pg_query::PartitionCmd* temp = _impl_.node_.partition_cmd_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.partition_cmd_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::PartitionCmd& Node::_internal_partition_cmd() const { - return _internal_has_partition_cmd() - ? *_impl_.node_.partition_cmd_ - : reinterpret_cast< ::pg_query::PartitionCmd&>(::pg_query::_PartitionCmd_default_instance_); -} -inline const ::pg_query::PartitionCmd& Node::partition_cmd() const { - // @@protoc_insertion_point(field_get:pg_query.Node.partition_cmd) - return _internal_partition_cmd(); -} -inline ::pg_query::PartitionCmd* Node::unsafe_arena_release_partition_cmd() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.partition_cmd) - if (_internal_has_partition_cmd()) { - clear_has_node(); - ::pg_query::PartitionCmd* temp = _impl_.node_.partition_cmd_; - _impl_.node_.partition_cmd_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_partition_cmd(::pg_query::PartitionCmd* partition_cmd) { - clear_node(); - if (partition_cmd) { - set_has_partition_cmd(); - _impl_.node_.partition_cmd_ = partition_cmd; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.partition_cmd) -} -inline ::pg_query::PartitionCmd* Node::_internal_mutable_partition_cmd() { - if (!_internal_has_partition_cmd()) { - clear_node(); - set_has_partition_cmd(); - _impl_.node_.partition_cmd_ = CreateMaybeMessage< ::pg_query::PartitionCmd >(GetArenaForAllocation()); - } - return _impl_.node_.partition_cmd_; -} -inline ::pg_query::PartitionCmd* Node::mutable_partition_cmd() { - ::pg_query::PartitionCmd* _msg = _internal_mutable_partition_cmd(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.partition_cmd) - return _msg; -} - -// .pg_query.VacuumRelation vacuum_relation = 225 [json_name = "VacuumRelation"]; -inline bool Node::_internal_has_vacuum_relation() const { - return node_case() == kVacuumRelation; -} -inline bool Node::has_vacuum_relation() const { - return _internal_has_vacuum_relation(); -} -inline void Node::set_has_vacuum_relation() { - _impl_._oneof_case_[0] = kVacuumRelation; -} -inline void Node::clear_vacuum_relation() { - if (_internal_has_vacuum_relation()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.vacuum_relation_; - } - clear_has_node(); - } -} -inline ::pg_query::VacuumRelation* Node::release_vacuum_relation() { - // @@protoc_insertion_point(field_release:pg_query.Node.vacuum_relation) - if (_internal_has_vacuum_relation()) { - clear_has_node(); - ::pg_query::VacuumRelation* temp = _impl_.node_.vacuum_relation_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.vacuum_relation_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::VacuumRelation& Node::_internal_vacuum_relation() const { - return _internal_has_vacuum_relation() - ? *_impl_.node_.vacuum_relation_ - : reinterpret_cast< ::pg_query::VacuumRelation&>(::pg_query::_VacuumRelation_default_instance_); -} -inline const ::pg_query::VacuumRelation& Node::vacuum_relation() const { - // @@protoc_insertion_point(field_get:pg_query.Node.vacuum_relation) - return _internal_vacuum_relation(); -} -inline ::pg_query::VacuumRelation* Node::unsafe_arena_release_vacuum_relation() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.vacuum_relation) - if (_internal_has_vacuum_relation()) { - clear_has_node(); - ::pg_query::VacuumRelation* temp = _impl_.node_.vacuum_relation_; - _impl_.node_.vacuum_relation_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_vacuum_relation(::pg_query::VacuumRelation* vacuum_relation) { - clear_node(); - if (vacuum_relation) { - set_has_vacuum_relation(); - _impl_.node_.vacuum_relation_ = vacuum_relation; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.vacuum_relation) -} -inline ::pg_query::VacuumRelation* Node::_internal_mutable_vacuum_relation() { - if (!_internal_has_vacuum_relation()) { - clear_node(); - set_has_vacuum_relation(); - _impl_.node_.vacuum_relation_ = CreateMaybeMessage< ::pg_query::VacuumRelation >(GetArenaForAllocation()); - } - return _impl_.node_.vacuum_relation_; -} -inline ::pg_query::VacuumRelation* Node::mutable_vacuum_relation() { - ::pg_query::VacuumRelation* _msg = _internal_mutable_vacuum_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.vacuum_relation) - return _msg; -} - -// .pg_query.PublicationObjSpec publication_obj_spec = 226 [json_name = "PublicationObjSpec"]; -inline bool Node::_internal_has_publication_obj_spec() const { - return node_case() == kPublicationObjSpec; -} -inline bool Node::has_publication_obj_spec() const { - return _internal_has_publication_obj_spec(); -} -inline void Node::set_has_publication_obj_spec() { - _impl_._oneof_case_[0] = kPublicationObjSpec; -} -inline void Node::clear_publication_obj_spec() { - if (_internal_has_publication_obj_spec()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.publication_obj_spec_; - } - clear_has_node(); - } -} -inline ::pg_query::PublicationObjSpec* Node::release_publication_obj_spec() { - // @@protoc_insertion_point(field_release:pg_query.Node.publication_obj_spec) - if (_internal_has_publication_obj_spec()) { - clear_has_node(); - ::pg_query::PublicationObjSpec* temp = _impl_.node_.publication_obj_spec_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.publication_obj_spec_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::PublicationObjSpec& Node::_internal_publication_obj_spec() const { - return _internal_has_publication_obj_spec() - ? *_impl_.node_.publication_obj_spec_ - : reinterpret_cast< ::pg_query::PublicationObjSpec&>(::pg_query::_PublicationObjSpec_default_instance_); -} -inline const ::pg_query::PublicationObjSpec& Node::publication_obj_spec() const { - // @@protoc_insertion_point(field_get:pg_query.Node.publication_obj_spec) - return _internal_publication_obj_spec(); -} -inline ::pg_query::PublicationObjSpec* Node::unsafe_arena_release_publication_obj_spec() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.publication_obj_spec) - if (_internal_has_publication_obj_spec()) { - clear_has_node(); - ::pg_query::PublicationObjSpec* temp = _impl_.node_.publication_obj_spec_; - _impl_.node_.publication_obj_spec_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_publication_obj_spec(::pg_query::PublicationObjSpec* publication_obj_spec) { - clear_node(); - if (publication_obj_spec) { - set_has_publication_obj_spec(); - _impl_.node_.publication_obj_spec_ = publication_obj_spec; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.publication_obj_spec) -} -inline ::pg_query::PublicationObjSpec* Node::_internal_mutable_publication_obj_spec() { - if (!_internal_has_publication_obj_spec()) { - clear_node(); - set_has_publication_obj_spec(); - _impl_.node_.publication_obj_spec_ = CreateMaybeMessage< ::pg_query::PublicationObjSpec >(GetArenaForAllocation()); - } - return _impl_.node_.publication_obj_spec_; -} -inline ::pg_query::PublicationObjSpec* Node::mutable_publication_obj_spec() { - ::pg_query::PublicationObjSpec* _msg = _internal_mutable_publication_obj_spec(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.publication_obj_spec) - return _msg; -} - -// .pg_query.PublicationTable publication_table = 227 [json_name = "PublicationTable"]; -inline bool Node::_internal_has_publication_table() const { - return node_case() == kPublicationTable; -} -inline bool Node::has_publication_table() const { - return _internal_has_publication_table(); -} -inline void Node::set_has_publication_table() { - _impl_._oneof_case_[0] = kPublicationTable; -} -inline void Node::clear_publication_table() { - if (_internal_has_publication_table()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.publication_table_; - } - clear_has_node(); - } -} -inline ::pg_query::PublicationTable* Node::release_publication_table() { - // @@protoc_insertion_point(field_release:pg_query.Node.publication_table) - if (_internal_has_publication_table()) { - clear_has_node(); - ::pg_query::PublicationTable* temp = _impl_.node_.publication_table_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.publication_table_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::PublicationTable& Node::_internal_publication_table() const { - return _internal_has_publication_table() - ? *_impl_.node_.publication_table_ - : reinterpret_cast< ::pg_query::PublicationTable&>(::pg_query::_PublicationTable_default_instance_); -} -inline const ::pg_query::PublicationTable& Node::publication_table() const { - // @@protoc_insertion_point(field_get:pg_query.Node.publication_table) - return _internal_publication_table(); -} -inline ::pg_query::PublicationTable* Node::unsafe_arena_release_publication_table() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.publication_table) - if (_internal_has_publication_table()) { - clear_has_node(); - ::pg_query::PublicationTable* temp = _impl_.node_.publication_table_; - _impl_.node_.publication_table_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_publication_table(::pg_query::PublicationTable* publication_table) { - clear_node(); - if (publication_table) { - set_has_publication_table(); - _impl_.node_.publication_table_ = publication_table; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.publication_table) -} -inline ::pg_query::PublicationTable* Node::_internal_mutable_publication_table() { - if (!_internal_has_publication_table()) { - clear_node(); - set_has_publication_table(); - _impl_.node_.publication_table_ = CreateMaybeMessage< ::pg_query::PublicationTable >(GetArenaForAllocation()); - } - return _impl_.node_.publication_table_; -} -inline ::pg_query::PublicationTable* Node::mutable_publication_table() { - ::pg_query::PublicationTable* _msg = _internal_mutable_publication_table(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.publication_table) - return _msg; -} - -// .pg_query.InlineCodeBlock inline_code_block = 228 [json_name = "InlineCodeBlock"]; -inline bool Node::_internal_has_inline_code_block() const { - return node_case() == kInlineCodeBlock; -} -inline bool Node::has_inline_code_block() const { - return _internal_has_inline_code_block(); -} -inline void Node::set_has_inline_code_block() { - _impl_._oneof_case_[0] = kInlineCodeBlock; -} -inline void Node::clear_inline_code_block() { - if (_internal_has_inline_code_block()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.inline_code_block_; - } - clear_has_node(); - } -} -inline ::pg_query::InlineCodeBlock* Node::release_inline_code_block() { - // @@protoc_insertion_point(field_release:pg_query.Node.inline_code_block) - if (_internal_has_inline_code_block()) { - clear_has_node(); - ::pg_query::InlineCodeBlock* temp = _impl_.node_.inline_code_block_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.inline_code_block_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::InlineCodeBlock& Node::_internal_inline_code_block() const { - return _internal_has_inline_code_block() - ? *_impl_.node_.inline_code_block_ - : reinterpret_cast< ::pg_query::InlineCodeBlock&>(::pg_query::_InlineCodeBlock_default_instance_); -} -inline const ::pg_query::InlineCodeBlock& Node::inline_code_block() const { - // @@protoc_insertion_point(field_get:pg_query.Node.inline_code_block) - return _internal_inline_code_block(); -} -inline ::pg_query::InlineCodeBlock* Node::unsafe_arena_release_inline_code_block() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.inline_code_block) - if (_internal_has_inline_code_block()) { - clear_has_node(); - ::pg_query::InlineCodeBlock* temp = _impl_.node_.inline_code_block_; - _impl_.node_.inline_code_block_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_inline_code_block(::pg_query::InlineCodeBlock* inline_code_block) { - clear_node(); - if (inline_code_block) { - set_has_inline_code_block(); - _impl_.node_.inline_code_block_ = inline_code_block; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.inline_code_block) -} -inline ::pg_query::InlineCodeBlock* Node::_internal_mutable_inline_code_block() { - if (!_internal_has_inline_code_block()) { - clear_node(); - set_has_inline_code_block(); - _impl_.node_.inline_code_block_ = CreateMaybeMessage< ::pg_query::InlineCodeBlock >(GetArenaForAllocation()); - } - return _impl_.node_.inline_code_block_; -} -inline ::pg_query::InlineCodeBlock* Node::mutable_inline_code_block() { - ::pg_query::InlineCodeBlock* _msg = _internal_mutable_inline_code_block(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.inline_code_block) - return _msg; -} - -// .pg_query.CallContext call_context = 229 [json_name = "CallContext"]; -inline bool Node::_internal_has_call_context() const { - return node_case() == kCallContext; -} -inline bool Node::has_call_context() const { - return _internal_has_call_context(); -} -inline void Node::set_has_call_context() { - _impl_._oneof_case_[0] = kCallContext; -} -inline void Node::clear_call_context() { - if (_internal_has_call_context()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.call_context_; - } - clear_has_node(); - } -} -inline ::pg_query::CallContext* Node::release_call_context() { - // @@protoc_insertion_point(field_release:pg_query.Node.call_context) - if (_internal_has_call_context()) { - clear_has_node(); - ::pg_query::CallContext* temp = _impl_.node_.call_context_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.call_context_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::CallContext& Node::_internal_call_context() const { - return _internal_has_call_context() - ? *_impl_.node_.call_context_ - : reinterpret_cast< ::pg_query::CallContext&>(::pg_query::_CallContext_default_instance_); -} -inline const ::pg_query::CallContext& Node::call_context() const { - // @@protoc_insertion_point(field_get:pg_query.Node.call_context) - return _internal_call_context(); -} -inline ::pg_query::CallContext* Node::unsafe_arena_release_call_context() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.call_context) - if (_internal_has_call_context()) { - clear_has_node(); - ::pg_query::CallContext* temp = _impl_.node_.call_context_; - _impl_.node_.call_context_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_call_context(::pg_query::CallContext* call_context) { - clear_node(); - if (call_context) { - set_has_call_context(); - _impl_.node_.call_context_ = call_context; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.call_context) -} -inline ::pg_query::CallContext* Node::_internal_mutable_call_context() { - if (!_internal_has_call_context()) { - clear_node(); - set_has_call_context(); - _impl_.node_.call_context_ = CreateMaybeMessage< ::pg_query::CallContext >(GetArenaForAllocation()); - } - return _impl_.node_.call_context_; -} -inline ::pg_query::CallContext* Node::mutable_call_context() { - ::pg_query::CallContext* _msg = _internal_mutable_call_context(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.call_context) - return _msg; -} - -// .pg_query.Integer integer = 230 [json_name = "Integer"]; -inline bool Node::_internal_has_integer() const { - return node_case() == kInteger; -} -inline bool Node::has_integer() const { - return _internal_has_integer(); -} -inline void Node::set_has_integer() { - _impl_._oneof_case_[0] = kInteger; -} -inline void Node::clear_integer() { - if (_internal_has_integer()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.integer_; - } - clear_has_node(); - } -} -inline ::pg_query::Integer* Node::release_integer() { - // @@protoc_insertion_point(field_release:pg_query.Node.integer) - if (_internal_has_integer()) { - clear_has_node(); - ::pg_query::Integer* temp = _impl_.node_.integer_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.integer_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::Integer& Node::_internal_integer() const { - return _internal_has_integer() - ? *_impl_.node_.integer_ - : reinterpret_cast< ::pg_query::Integer&>(::pg_query::_Integer_default_instance_); -} -inline const ::pg_query::Integer& Node::integer() const { - // @@protoc_insertion_point(field_get:pg_query.Node.integer) - return _internal_integer(); -} -inline ::pg_query::Integer* Node::unsafe_arena_release_integer() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.integer) - if (_internal_has_integer()) { - clear_has_node(); - ::pg_query::Integer* temp = _impl_.node_.integer_; - _impl_.node_.integer_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_integer(::pg_query::Integer* integer) { - clear_node(); - if (integer) { - set_has_integer(); - _impl_.node_.integer_ = integer; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.integer) -} -inline ::pg_query::Integer* Node::_internal_mutable_integer() { - if (!_internal_has_integer()) { - clear_node(); - set_has_integer(); - _impl_.node_.integer_ = CreateMaybeMessage< ::pg_query::Integer >(GetArenaForAllocation()); - } - return _impl_.node_.integer_; -} -inline ::pg_query::Integer* Node::mutable_integer() { - ::pg_query::Integer* _msg = _internal_mutable_integer(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.integer) - return _msg; -} - -// .pg_query.Float float = 231 [json_name = "Float"]; -inline bool Node::_internal_has_float_() const { - return node_case() == kFloat; -} -inline bool Node::has_float_() const { - return _internal_has_float_(); -} -inline void Node::set_has_float_() { - _impl_._oneof_case_[0] = kFloat; -} -inline void Node::clear_float_() { - if (_internal_has_float_()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.float__; - } - clear_has_node(); - } -} -inline ::pg_query::Float* Node::release_float_() { - // @@protoc_insertion_point(field_release:pg_query.Node.float) - if (_internal_has_float_()) { - clear_has_node(); - ::pg_query::Float* temp = _impl_.node_.float__; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.float__ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::Float& Node::_internal_float_() const { - return _internal_has_float_() - ? *_impl_.node_.float__ - : reinterpret_cast< ::pg_query::Float&>(::pg_query::_Float_default_instance_); -} -inline const ::pg_query::Float& Node::float_() const { - // @@protoc_insertion_point(field_get:pg_query.Node.float) - return _internal_float_(); -} -inline ::pg_query::Float* Node::unsafe_arena_release_float_() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.float) - if (_internal_has_float_()) { - clear_has_node(); - ::pg_query::Float* temp = _impl_.node_.float__; - _impl_.node_.float__ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_float_(::pg_query::Float* float_) { - clear_node(); - if (float_) { - set_has_float_(); - _impl_.node_.float__ = float_; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.float) -} -inline ::pg_query::Float* Node::_internal_mutable_float_() { - if (!_internal_has_float_()) { - clear_node(); - set_has_float_(); - _impl_.node_.float__ = CreateMaybeMessage< ::pg_query::Float >(GetArenaForAllocation()); - } - return _impl_.node_.float__; -} -inline ::pg_query::Float* Node::mutable_float_() { - ::pg_query::Float* _msg = _internal_mutable_float_(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.float) - return _msg; -} - -// .pg_query.Boolean boolean = 232 [json_name = "Boolean"]; -inline bool Node::_internal_has_boolean() const { - return node_case() == kBoolean; -} -inline bool Node::has_boolean() const { - return _internal_has_boolean(); -} -inline void Node::set_has_boolean() { - _impl_._oneof_case_[0] = kBoolean; -} -inline void Node::clear_boolean() { - if (_internal_has_boolean()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.boolean_; - } - clear_has_node(); - } -} -inline ::pg_query::Boolean* Node::release_boolean() { - // @@protoc_insertion_point(field_release:pg_query.Node.boolean) - if (_internal_has_boolean()) { - clear_has_node(); - ::pg_query::Boolean* temp = _impl_.node_.boolean_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.boolean_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::Boolean& Node::_internal_boolean() const { - return _internal_has_boolean() - ? *_impl_.node_.boolean_ - : reinterpret_cast< ::pg_query::Boolean&>(::pg_query::_Boolean_default_instance_); -} -inline const ::pg_query::Boolean& Node::boolean() const { - // @@protoc_insertion_point(field_get:pg_query.Node.boolean) - return _internal_boolean(); -} -inline ::pg_query::Boolean* Node::unsafe_arena_release_boolean() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.boolean) - if (_internal_has_boolean()) { - clear_has_node(); - ::pg_query::Boolean* temp = _impl_.node_.boolean_; - _impl_.node_.boolean_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_boolean(::pg_query::Boolean* boolean) { - clear_node(); - if (boolean) { - set_has_boolean(); - _impl_.node_.boolean_ = boolean; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.boolean) -} -inline ::pg_query::Boolean* Node::_internal_mutable_boolean() { - if (!_internal_has_boolean()) { - clear_node(); - set_has_boolean(); - _impl_.node_.boolean_ = CreateMaybeMessage< ::pg_query::Boolean >(GetArenaForAllocation()); - } - return _impl_.node_.boolean_; -} -inline ::pg_query::Boolean* Node::mutable_boolean() { - ::pg_query::Boolean* _msg = _internal_mutable_boolean(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.boolean) - return _msg; -} - -// .pg_query.String string = 233 [json_name = "String"]; -inline bool Node::_internal_has_string() const { - return node_case() == kString; -} -inline bool Node::has_string() const { - return _internal_has_string(); -} -inline void Node::set_has_string() { - _impl_._oneof_case_[0] = kString; -} -inline void Node::clear_string() { - if (_internal_has_string()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.string_; - } - clear_has_node(); - } -} -inline ::pg_query::String* Node::release_string() { - // @@protoc_insertion_point(field_release:pg_query.Node.string) - if (_internal_has_string()) { - clear_has_node(); - ::pg_query::String* temp = _impl_.node_.string_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.string_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::String& Node::_internal_string() const { - return _internal_has_string() - ? *_impl_.node_.string_ - : reinterpret_cast< ::pg_query::String&>(::pg_query::_String_default_instance_); -} -inline const ::pg_query::String& Node::string() const { - // @@protoc_insertion_point(field_get:pg_query.Node.string) - return _internal_string(); -} -inline ::pg_query::String* Node::unsafe_arena_release_string() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.string) - if (_internal_has_string()) { - clear_has_node(); - ::pg_query::String* temp = _impl_.node_.string_; - _impl_.node_.string_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_string(::pg_query::String* string) { - clear_node(); - if (string) { - set_has_string(); - _impl_.node_.string_ = string; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.string) -} -inline ::pg_query::String* Node::_internal_mutable_string() { - if (!_internal_has_string()) { - clear_node(); - set_has_string(); - _impl_.node_.string_ = CreateMaybeMessage< ::pg_query::String >(GetArenaForAllocation()); - } - return _impl_.node_.string_; -} -inline ::pg_query::String* Node::mutable_string() { - ::pg_query::String* _msg = _internal_mutable_string(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.string) - return _msg; -} - -// .pg_query.BitString bit_string = 234 [json_name = "BitString"]; -inline bool Node::_internal_has_bit_string() const { - return node_case() == kBitString; -} -inline bool Node::has_bit_string() const { - return _internal_has_bit_string(); -} -inline void Node::set_has_bit_string() { - _impl_._oneof_case_[0] = kBitString; -} -inline void Node::clear_bit_string() { - if (_internal_has_bit_string()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.bit_string_; - } - clear_has_node(); - } -} -inline ::pg_query::BitString* Node::release_bit_string() { - // @@protoc_insertion_point(field_release:pg_query.Node.bit_string) - if (_internal_has_bit_string()) { - clear_has_node(); - ::pg_query::BitString* temp = _impl_.node_.bit_string_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.bit_string_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::BitString& Node::_internal_bit_string() const { - return _internal_has_bit_string() - ? *_impl_.node_.bit_string_ - : reinterpret_cast< ::pg_query::BitString&>(::pg_query::_BitString_default_instance_); -} -inline const ::pg_query::BitString& Node::bit_string() const { - // @@protoc_insertion_point(field_get:pg_query.Node.bit_string) - return _internal_bit_string(); -} -inline ::pg_query::BitString* Node::unsafe_arena_release_bit_string() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.bit_string) - if (_internal_has_bit_string()) { - clear_has_node(); - ::pg_query::BitString* temp = _impl_.node_.bit_string_; - _impl_.node_.bit_string_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_bit_string(::pg_query::BitString* bit_string) { - clear_node(); - if (bit_string) { - set_has_bit_string(); - _impl_.node_.bit_string_ = bit_string; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.bit_string) -} -inline ::pg_query::BitString* Node::_internal_mutable_bit_string() { - if (!_internal_has_bit_string()) { - clear_node(); - set_has_bit_string(); - _impl_.node_.bit_string_ = CreateMaybeMessage< ::pg_query::BitString >(GetArenaForAllocation()); - } - return _impl_.node_.bit_string_; -} -inline ::pg_query::BitString* Node::mutable_bit_string() { - ::pg_query::BitString* _msg = _internal_mutable_bit_string(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.bit_string) - return _msg; -} - -// .pg_query.List list = 235 [json_name = "List"]; -inline bool Node::_internal_has_list() const { - return node_case() == kList; -} -inline bool Node::has_list() const { - return _internal_has_list(); -} -inline void Node::set_has_list() { - _impl_._oneof_case_[0] = kList; -} -inline void Node::clear_list() { - if (_internal_has_list()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.list_; - } - clear_has_node(); - } -} -inline ::pg_query::List* Node::release_list() { - // @@protoc_insertion_point(field_release:pg_query.Node.list) - if (_internal_has_list()) { - clear_has_node(); - ::pg_query::List* temp = _impl_.node_.list_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.list_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::List& Node::_internal_list() const { - return _internal_has_list() - ? *_impl_.node_.list_ - : reinterpret_cast< ::pg_query::List&>(::pg_query::_List_default_instance_); -} -inline const ::pg_query::List& Node::list() const { - // @@protoc_insertion_point(field_get:pg_query.Node.list) - return _internal_list(); -} -inline ::pg_query::List* Node::unsafe_arena_release_list() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.list) - if (_internal_has_list()) { - clear_has_node(); - ::pg_query::List* temp = _impl_.node_.list_; - _impl_.node_.list_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_list(::pg_query::List* list) { - clear_node(); - if (list) { - set_has_list(); - _impl_.node_.list_ = list; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.list) -} -inline ::pg_query::List* Node::_internal_mutable_list() { - if (!_internal_has_list()) { - clear_node(); - set_has_list(); - _impl_.node_.list_ = CreateMaybeMessage< ::pg_query::List >(GetArenaForAllocation()); - } - return _impl_.node_.list_; -} -inline ::pg_query::List* Node::mutable_list() { - ::pg_query::List* _msg = _internal_mutable_list(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.list) - return _msg; -} - -// .pg_query.IntList int_list = 236 [json_name = "IntList"]; -inline bool Node::_internal_has_int_list() const { - return node_case() == kIntList; -} -inline bool Node::has_int_list() const { - return _internal_has_int_list(); -} -inline void Node::set_has_int_list() { - _impl_._oneof_case_[0] = kIntList; -} -inline void Node::clear_int_list() { - if (_internal_has_int_list()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.int_list_; - } - clear_has_node(); - } -} -inline ::pg_query::IntList* Node::release_int_list() { - // @@protoc_insertion_point(field_release:pg_query.Node.int_list) - if (_internal_has_int_list()) { - clear_has_node(); - ::pg_query::IntList* temp = _impl_.node_.int_list_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.int_list_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::IntList& Node::_internal_int_list() const { - return _internal_has_int_list() - ? *_impl_.node_.int_list_ - : reinterpret_cast< ::pg_query::IntList&>(::pg_query::_IntList_default_instance_); -} -inline const ::pg_query::IntList& Node::int_list() const { - // @@protoc_insertion_point(field_get:pg_query.Node.int_list) - return _internal_int_list(); -} -inline ::pg_query::IntList* Node::unsafe_arena_release_int_list() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.int_list) - if (_internal_has_int_list()) { - clear_has_node(); - ::pg_query::IntList* temp = _impl_.node_.int_list_; - _impl_.node_.int_list_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_int_list(::pg_query::IntList* int_list) { - clear_node(); - if (int_list) { - set_has_int_list(); - _impl_.node_.int_list_ = int_list; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.int_list) -} -inline ::pg_query::IntList* Node::_internal_mutable_int_list() { - if (!_internal_has_int_list()) { - clear_node(); - set_has_int_list(); - _impl_.node_.int_list_ = CreateMaybeMessage< ::pg_query::IntList >(GetArenaForAllocation()); - } - return _impl_.node_.int_list_; -} -inline ::pg_query::IntList* Node::mutable_int_list() { - ::pg_query::IntList* _msg = _internal_mutable_int_list(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.int_list) - return _msg; -} - -// .pg_query.OidList oid_list = 237 [json_name = "OidList"]; -inline bool Node::_internal_has_oid_list() const { - return node_case() == kOidList; -} -inline bool Node::has_oid_list() const { - return _internal_has_oid_list(); -} -inline void Node::set_has_oid_list() { - _impl_._oneof_case_[0] = kOidList; -} -inline void Node::clear_oid_list() { - if (_internal_has_oid_list()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.oid_list_; - } - clear_has_node(); - } -} -inline ::pg_query::OidList* Node::release_oid_list() { - // @@protoc_insertion_point(field_release:pg_query.Node.oid_list) - if (_internal_has_oid_list()) { - clear_has_node(); - ::pg_query::OidList* temp = _impl_.node_.oid_list_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.oid_list_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::OidList& Node::_internal_oid_list() const { - return _internal_has_oid_list() - ? *_impl_.node_.oid_list_ - : reinterpret_cast< ::pg_query::OidList&>(::pg_query::_OidList_default_instance_); -} -inline const ::pg_query::OidList& Node::oid_list() const { - // @@protoc_insertion_point(field_get:pg_query.Node.oid_list) - return _internal_oid_list(); -} -inline ::pg_query::OidList* Node::unsafe_arena_release_oid_list() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.oid_list) - if (_internal_has_oid_list()) { - clear_has_node(); - ::pg_query::OidList* temp = _impl_.node_.oid_list_; - _impl_.node_.oid_list_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_oid_list(::pg_query::OidList* oid_list) { - clear_node(); - if (oid_list) { - set_has_oid_list(); - _impl_.node_.oid_list_ = oid_list; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.oid_list) -} -inline ::pg_query::OidList* Node::_internal_mutable_oid_list() { - if (!_internal_has_oid_list()) { - clear_node(); - set_has_oid_list(); - _impl_.node_.oid_list_ = CreateMaybeMessage< ::pg_query::OidList >(GetArenaForAllocation()); - } - return _impl_.node_.oid_list_; -} -inline ::pg_query::OidList* Node::mutable_oid_list() { - ::pg_query::OidList* _msg = _internal_mutable_oid_list(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.oid_list) - return _msg; -} - -// .pg_query.A_Const a_const = 238 [json_name = "A_Const"]; -inline bool Node::_internal_has_a_const() const { - return node_case() == kAConst; -} -inline bool Node::has_a_const() const { - return _internal_has_a_const(); -} -inline void Node::set_has_a_const() { - _impl_._oneof_case_[0] = kAConst; -} -inline void Node::clear_a_const() { - if (_internal_has_a_const()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.node_.a_const_; - } - clear_has_node(); - } -} -inline ::pg_query::A_Const* Node::release_a_const() { - // @@protoc_insertion_point(field_release:pg_query.Node.a_const) - if (_internal_has_a_const()) { - clear_has_node(); - ::pg_query::A_Const* temp = _impl_.node_.a_const_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.node_.a_const_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::A_Const& Node::_internal_a_const() const { - return _internal_has_a_const() - ? *_impl_.node_.a_const_ - : reinterpret_cast< ::pg_query::A_Const&>(::pg_query::_A_Const_default_instance_); -} -inline const ::pg_query::A_Const& Node::a_const() const { - // @@protoc_insertion_point(field_get:pg_query.Node.a_const) - return _internal_a_const(); -} -inline ::pg_query::A_Const* Node::unsafe_arena_release_a_const() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.Node.a_const) - if (_internal_has_a_const()) { - clear_has_node(); - ::pg_query::A_Const* temp = _impl_.node_.a_const_; - _impl_.node_.a_const_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Node::unsafe_arena_set_allocated_a_const(::pg_query::A_Const* a_const) { - clear_node(); - if (a_const) { - set_has_a_const(); - _impl_.node_.a_const_ = a_const; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Node.a_const) -} -inline ::pg_query::A_Const* Node::_internal_mutable_a_const() { - if (!_internal_has_a_const()) { - clear_node(); - set_has_a_const(); - _impl_.node_.a_const_ = CreateMaybeMessage< ::pg_query::A_Const >(GetArenaForAllocation()); - } - return _impl_.node_.a_const_; -} -inline ::pg_query::A_Const* Node::mutable_a_const() { - ::pg_query::A_Const* _msg = _internal_mutable_a_const(); - // @@protoc_insertion_point(field_mutable:pg_query.Node.a_const) - return _msg; -} - -inline bool Node::has_node() const { - return node_case() != NODE_NOT_SET; -} -inline void Node::clear_has_node() { - _impl_._oneof_case_[0] = NODE_NOT_SET; -} -inline Node::NodeCase Node::node_case() const { - return Node::NodeCase(_impl_._oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// Integer - -// int32 ival = 1; -inline void Integer::clear_ival() { - _impl_.ival_ = 0; -} -inline int32_t Integer::_internal_ival() const { - return _impl_.ival_; -} -inline int32_t Integer::ival() const { - // @@protoc_insertion_point(field_get:pg_query.Integer.ival) - return _internal_ival(); -} -inline void Integer::_internal_set_ival(int32_t value) { - - _impl_.ival_ = value; -} -inline void Integer::set_ival(int32_t value) { - _internal_set_ival(value); - // @@protoc_insertion_point(field_set:pg_query.Integer.ival) -} - -// ------------------------------------------------------------------- - -// Float - -// string fval = 1; -inline void Float::clear_fval() { - _impl_.fval_.ClearToEmpty(); -} -inline const std::string& Float::fval() const { - // @@protoc_insertion_point(field_get:pg_query.Float.fval) - return _internal_fval(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Float::set_fval(ArgT0&& arg0, ArgT... args) { - - _impl_.fval_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.Float.fval) -} -inline std::string* Float::mutable_fval() { - std::string* _s = _internal_mutable_fval(); - // @@protoc_insertion_point(field_mutable:pg_query.Float.fval) - return _s; -} -inline const std::string& Float::_internal_fval() const { - return _impl_.fval_.Get(); -} -inline void Float::_internal_set_fval(const std::string& value) { - - _impl_.fval_.Set(value, GetArenaForAllocation()); -} -inline std::string* Float::_internal_mutable_fval() { - - return _impl_.fval_.Mutable(GetArenaForAllocation()); -} -inline std::string* Float::release_fval() { - // @@protoc_insertion_point(field_release:pg_query.Float.fval) - return _impl_.fval_.Release(); -} -inline void Float::set_allocated_fval(std::string* fval) { - if (fval != nullptr) { - - } else { - - } - _impl_.fval_.SetAllocated(fval, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.fval_.IsDefault()) { - _impl_.fval_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.Float.fval) -} - -// ------------------------------------------------------------------- - -// Boolean - -// bool boolval = 1; -inline void Boolean::clear_boolval() { - _impl_.boolval_ = false; -} -inline bool Boolean::_internal_boolval() const { - return _impl_.boolval_; -} -inline bool Boolean::boolval() const { - // @@protoc_insertion_point(field_get:pg_query.Boolean.boolval) - return _internal_boolval(); -} -inline void Boolean::_internal_set_boolval(bool value) { - - _impl_.boolval_ = value; -} -inline void Boolean::set_boolval(bool value) { - _internal_set_boolval(value); - // @@protoc_insertion_point(field_set:pg_query.Boolean.boolval) -} - -// ------------------------------------------------------------------- - -// String - -// string sval = 1; -inline void String::clear_sval() { - _impl_.sval_.ClearToEmpty(); -} -inline const std::string& String::sval() const { - // @@protoc_insertion_point(field_get:pg_query.String.sval) - return _internal_sval(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void String::set_sval(ArgT0&& arg0, ArgT... args) { - - _impl_.sval_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.String.sval) -} -inline std::string* String::mutable_sval() { - std::string* _s = _internal_mutable_sval(); - // @@protoc_insertion_point(field_mutable:pg_query.String.sval) - return _s; -} -inline const std::string& String::_internal_sval() const { - return _impl_.sval_.Get(); -} -inline void String::_internal_set_sval(const std::string& value) { - - _impl_.sval_.Set(value, GetArenaForAllocation()); -} -inline std::string* String::_internal_mutable_sval() { - - return _impl_.sval_.Mutable(GetArenaForAllocation()); -} -inline std::string* String::release_sval() { - // @@protoc_insertion_point(field_release:pg_query.String.sval) - return _impl_.sval_.Release(); -} -inline void String::set_allocated_sval(std::string* sval) { - if (sval != nullptr) { - - } else { - - } - _impl_.sval_.SetAllocated(sval, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.sval_.IsDefault()) { - _impl_.sval_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.String.sval) -} - -// ------------------------------------------------------------------- - -// BitString - -// string bsval = 1; -inline void BitString::clear_bsval() { - _impl_.bsval_.ClearToEmpty(); -} -inline const std::string& BitString::bsval() const { - // @@protoc_insertion_point(field_get:pg_query.BitString.bsval) - return _internal_bsval(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void BitString::set_bsval(ArgT0&& arg0, ArgT... args) { - - _impl_.bsval_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.BitString.bsval) -} -inline std::string* BitString::mutable_bsval() { - std::string* _s = _internal_mutable_bsval(); - // @@protoc_insertion_point(field_mutable:pg_query.BitString.bsval) - return _s; -} -inline const std::string& BitString::_internal_bsval() const { - return _impl_.bsval_.Get(); -} -inline void BitString::_internal_set_bsval(const std::string& value) { - - _impl_.bsval_.Set(value, GetArenaForAllocation()); -} -inline std::string* BitString::_internal_mutable_bsval() { - - return _impl_.bsval_.Mutable(GetArenaForAllocation()); -} -inline std::string* BitString::release_bsval() { - // @@protoc_insertion_point(field_release:pg_query.BitString.bsval) - return _impl_.bsval_.Release(); -} -inline void BitString::set_allocated_bsval(std::string* bsval) { - if (bsval != nullptr) { - - } else { - - } - _impl_.bsval_.SetAllocated(bsval, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.bsval_.IsDefault()) { - _impl_.bsval_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.BitString.bsval) -} - -// ------------------------------------------------------------------- - -// List - -// repeated .pg_query.Node items = 1; -inline int List::_internal_items_size() const { - return _impl_.items_.size(); -} -inline int List::items_size() const { - return _internal_items_size(); -} -inline void List::clear_items() { - _impl_.items_.Clear(); -} -inline ::pg_query::Node* List::mutable_items(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.List.items) - return _impl_.items_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -List::mutable_items() { - // @@protoc_insertion_point(field_mutable_list:pg_query.List.items) - return &_impl_.items_; -} -inline const ::pg_query::Node& List::_internal_items(int index) const { - return _impl_.items_.Get(index); -} -inline const ::pg_query::Node& List::items(int index) const { - // @@protoc_insertion_point(field_get:pg_query.List.items) - return _internal_items(index); -} -inline ::pg_query::Node* List::_internal_add_items() { - return _impl_.items_.Add(); -} -inline ::pg_query::Node* List::add_items() { - ::pg_query::Node* _add = _internal_add_items(); - // @@protoc_insertion_point(field_add:pg_query.List.items) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -List::items() const { - // @@protoc_insertion_point(field_list:pg_query.List.items) - return _impl_.items_; -} - -// ------------------------------------------------------------------- - -// OidList - -// repeated .pg_query.Node items = 1; -inline int OidList::_internal_items_size() const { - return _impl_.items_.size(); -} -inline int OidList::items_size() const { - return _internal_items_size(); -} -inline void OidList::clear_items() { - _impl_.items_.Clear(); -} -inline ::pg_query::Node* OidList::mutable_items(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.OidList.items) - return _impl_.items_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -OidList::mutable_items() { - // @@protoc_insertion_point(field_mutable_list:pg_query.OidList.items) - return &_impl_.items_; -} -inline const ::pg_query::Node& OidList::_internal_items(int index) const { - return _impl_.items_.Get(index); -} -inline const ::pg_query::Node& OidList::items(int index) const { - // @@protoc_insertion_point(field_get:pg_query.OidList.items) - return _internal_items(index); -} -inline ::pg_query::Node* OidList::_internal_add_items() { - return _impl_.items_.Add(); -} -inline ::pg_query::Node* OidList::add_items() { - ::pg_query::Node* _add = _internal_add_items(); - // @@protoc_insertion_point(field_add:pg_query.OidList.items) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -OidList::items() const { - // @@protoc_insertion_point(field_list:pg_query.OidList.items) - return _impl_.items_; -} - -// ------------------------------------------------------------------- - -// IntList - -// repeated .pg_query.Node items = 1; -inline int IntList::_internal_items_size() const { - return _impl_.items_.size(); -} -inline int IntList::items_size() const { - return _internal_items_size(); -} -inline void IntList::clear_items() { - _impl_.items_.Clear(); -} -inline ::pg_query::Node* IntList::mutable_items(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.IntList.items) - return _impl_.items_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -IntList::mutable_items() { - // @@protoc_insertion_point(field_mutable_list:pg_query.IntList.items) - return &_impl_.items_; -} -inline const ::pg_query::Node& IntList::_internal_items(int index) const { - return _impl_.items_.Get(index); -} -inline const ::pg_query::Node& IntList::items(int index) const { - // @@protoc_insertion_point(field_get:pg_query.IntList.items) - return _internal_items(index); -} -inline ::pg_query::Node* IntList::_internal_add_items() { - return _impl_.items_.Add(); -} -inline ::pg_query::Node* IntList::add_items() { - ::pg_query::Node* _add = _internal_add_items(); - // @@protoc_insertion_point(field_add:pg_query.IntList.items) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -IntList::items() const { - // @@protoc_insertion_point(field_list:pg_query.IntList.items) - return _impl_.items_; -} - -// ------------------------------------------------------------------- - -// A_Const - -// .pg_query.Integer ival = 1; -inline bool A_Const::_internal_has_ival() const { - return val_case() == kIval; -} -inline bool A_Const::has_ival() const { - return _internal_has_ival(); -} -inline void A_Const::set_has_ival() { - _impl_._oneof_case_[0] = kIval; -} -inline void A_Const::clear_ival() { - if (_internal_has_ival()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.val_.ival_; - } - clear_has_val(); - } -} -inline ::pg_query::Integer* A_Const::release_ival() { - // @@protoc_insertion_point(field_release:pg_query.A_Const.ival) - if (_internal_has_ival()) { - clear_has_val(); - ::pg_query::Integer* temp = _impl_.val_.ival_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.val_.ival_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::Integer& A_Const::_internal_ival() const { - return _internal_has_ival() - ? *_impl_.val_.ival_ - : reinterpret_cast< ::pg_query::Integer&>(::pg_query::_Integer_default_instance_); -} -inline const ::pg_query::Integer& A_Const::ival() const { - // @@protoc_insertion_point(field_get:pg_query.A_Const.ival) - return _internal_ival(); -} -inline ::pg_query::Integer* A_Const::unsafe_arena_release_ival() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.A_Const.ival) - if (_internal_has_ival()) { - clear_has_val(); - ::pg_query::Integer* temp = _impl_.val_.ival_; - _impl_.val_.ival_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void A_Const::unsafe_arena_set_allocated_ival(::pg_query::Integer* ival) { - clear_val(); - if (ival) { - set_has_ival(); - _impl_.val_.ival_ = ival; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.A_Const.ival) -} -inline ::pg_query::Integer* A_Const::_internal_mutable_ival() { - if (!_internal_has_ival()) { - clear_val(); - set_has_ival(); - _impl_.val_.ival_ = CreateMaybeMessage< ::pg_query::Integer >(GetArenaForAllocation()); - } - return _impl_.val_.ival_; -} -inline ::pg_query::Integer* A_Const::mutable_ival() { - ::pg_query::Integer* _msg = _internal_mutable_ival(); - // @@protoc_insertion_point(field_mutable:pg_query.A_Const.ival) - return _msg; -} - -// .pg_query.Float fval = 2; -inline bool A_Const::_internal_has_fval() const { - return val_case() == kFval; -} -inline bool A_Const::has_fval() const { - return _internal_has_fval(); -} -inline void A_Const::set_has_fval() { - _impl_._oneof_case_[0] = kFval; -} -inline void A_Const::clear_fval() { - if (_internal_has_fval()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.val_.fval_; - } - clear_has_val(); - } -} -inline ::pg_query::Float* A_Const::release_fval() { - // @@protoc_insertion_point(field_release:pg_query.A_Const.fval) - if (_internal_has_fval()) { - clear_has_val(); - ::pg_query::Float* temp = _impl_.val_.fval_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.val_.fval_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::Float& A_Const::_internal_fval() const { - return _internal_has_fval() - ? *_impl_.val_.fval_ - : reinterpret_cast< ::pg_query::Float&>(::pg_query::_Float_default_instance_); -} -inline const ::pg_query::Float& A_Const::fval() const { - // @@protoc_insertion_point(field_get:pg_query.A_Const.fval) - return _internal_fval(); -} -inline ::pg_query::Float* A_Const::unsafe_arena_release_fval() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.A_Const.fval) - if (_internal_has_fval()) { - clear_has_val(); - ::pg_query::Float* temp = _impl_.val_.fval_; - _impl_.val_.fval_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void A_Const::unsafe_arena_set_allocated_fval(::pg_query::Float* fval) { - clear_val(); - if (fval) { - set_has_fval(); - _impl_.val_.fval_ = fval; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.A_Const.fval) -} -inline ::pg_query::Float* A_Const::_internal_mutable_fval() { - if (!_internal_has_fval()) { - clear_val(); - set_has_fval(); - _impl_.val_.fval_ = CreateMaybeMessage< ::pg_query::Float >(GetArenaForAllocation()); - } - return _impl_.val_.fval_; -} -inline ::pg_query::Float* A_Const::mutable_fval() { - ::pg_query::Float* _msg = _internal_mutable_fval(); - // @@protoc_insertion_point(field_mutable:pg_query.A_Const.fval) - return _msg; -} - -// .pg_query.Boolean boolval = 3; -inline bool A_Const::_internal_has_boolval() const { - return val_case() == kBoolval; -} -inline bool A_Const::has_boolval() const { - return _internal_has_boolval(); -} -inline void A_Const::set_has_boolval() { - _impl_._oneof_case_[0] = kBoolval; -} -inline void A_Const::clear_boolval() { - if (_internal_has_boolval()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.val_.boolval_; - } - clear_has_val(); - } -} -inline ::pg_query::Boolean* A_Const::release_boolval() { - // @@protoc_insertion_point(field_release:pg_query.A_Const.boolval) - if (_internal_has_boolval()) { - clear_has_val(); - ::pg_query::Boolean* temp = _impl_.val_.boolval_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.val_.boolval_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::Boolean& A_Const::_internal_boolval() const { - return _internal_has_boolval() - ? *_impl_.val_.boolval_ - : reinterpret_cast< ::pg_query::Boolean&>(::pg_query::_Boolean_default_instance_); -} -inline const ::pg_query::Boolean& A_Const::boolval() const { - // @@protoc_insertion_point(field_get:pg_query.A_Const.boolval) - return _internal_boolval(); -} -inline ::pg_query::Boolean* A_Const::unsafe_arena_release_boolval() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.A_Const.boolval) - if (_internal_has_boolval()) { - clear_has_val(); - ::pg_query::Boolean* temp = _impl_.val_.boolval_; - _impl_.val_.boolval_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void A_Const::unsafe_arena_set_allocated_boolval(::pg_query::Boolean* boolval) { - clear_val(); - if (boolval) { - set_has_boolval(); - _impl_.val_.boolval_ = boolval; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.A_Const.boolval) -} -inline ::pg_query::Boolean* A_Const::_internal_mutable_boolval() { - if (!_internal_has_boolval()) { - clear_val(); - set_has_boolval(); - _impl_.val_.boolval_ = CreateMaybeMessage< ::pg_query::Boolean >(GetArenaForAllocation()); - } - return _impl_.val_.boolval_; -} -inline ::pg_query::Boolean* A_Const::mutable_boolval() { - ::pg_query::Boolean* _msg = _internal_mutable_boolval(); - // @@protoc_insertion_point(field_mutable:pg_query.A_Const.boolval) - return _msg; -} - -// .pg_query.String sval = 4; -inline bool A_Const::_internal_has_sval() const { - return val_case() == kSval; -} -inline bool A_Const::has_sval() const { - return _internal_has_sval(); -} -inline void A_Const::set_has_sval() { - _impl_._oneof_case_[0] = kSval; -} -inline void A_Const::clear_sval() { - if (_internal_has_sval()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.val_.sval_; - } - clear_has_val(); - } -} -inline ::pg_query::String* A_Const::release_sval() { - // @@protoc_insertion_point(field_release:pg_query.A_Const.sval) - if (_internal_has_sval()) { - clear_has_val(); - ::pg_query::String* temp = _impl_.val_.sval_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.val_.sval_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::String& A_Const::_internal_sval() const { - return _internal_has_sval() - ? *_impl_.val_.sval_ - : reinterpret_cast< ::pg_query::String&>(::pg_query::_String_default_instance_); -} -inline const ::pg_query::String& A_Const::sval() const { - // @@protoc_insertion_point(field_get:pg_query.A_Const.sval) - return _internal_sval(); -} -inline ::pg_query::String* A_Const::unsafe_arena_release_sval() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.A_Const.sval) - if (_internal_has_sval()) { - clear_has_val(); - ::pg_query::String* temp = _impl_.val_.sval_; - _impl_.val_.sval_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void A_Const::unsafe_arena_set_allocated_sval(::pg_query::String* sval) { - clear_val(); - if (sval) { - set_has_sval(); - _impl_.val_.sval_ = sval; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.A_Const.sval) -} -inline ::pg_query::String* A_Const::_internal_mutable_sval() { - if (!_internal_has_sval()) { - clear_val(); - set_has_sval(); - _impl_.val_.sval_ = CreateMaybeMessage< ::pg_query::String >(GetArenaForAllocation()); - } - return _impl_.val_.sval_; -} -inline ::pg_query::String* A_Const::mutable_sval() { - ::pg_query::String* _msg = _internal_mutable_sval(); - // @@protoc_insertion_point(field_mutable:pg_query.A_Const.sval) - return _msg; -} - -// .pg_query.BitString bsval = 5; -inline bool A_Const::_internal_has_bsval() const { - return val_case() == kBsval; -} -inline bool A_Const::has_bsval() const { - return _internal_has_bsval(); -} -inline void A_Const::set_has_bsval() { - _impl_._oneof_case_[0] = kBsval; -} -inline void A_Const::clear_bsval() { - if (_internal_has_bsval()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.val_.bsval_; - } - clear_has_val(); - } -} -inline ::pg_query::BitString* A_Const::release_bsval() { - // @@protoc_insertion_point(field_release:pg_query.A_Const.bsval) - if (_internal_has_bsval()) { - clear_has_val(); - ::pg_query::BitString* temp = _impl_.val_.bsval_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - _impl_.val_.bsval_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::pg_query::BitString& A_Const::_internal_bsval() const { - return _internal_has_bsval() - ? *_impl_.val_.bsval_ - : reinterpret_cast< ::pg_query::BitString&>(::pg_query::_BitString_default_instance_); -} -inline const ::pg_query::BitString& A_Const::bsval() const { - // @@protoc_insertion_point(field_get:pg_query.A_Const.bsval) - return _internal_bsval(); -} -inline ::pg_query::BitString* A_Const::unsafe_arena_release_bsval() { - // @@protoc_insertion_point(field_unsafe_arena_release:pg_query.A_Const.bsval) - if (_internal_has_bsval()) { - clear_has_val(); - ::pg_query::BitString* temp = _impl_.val_.bsval_; - _impl_.val_.bsval_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void A_Const::unsafe_arena_set_allocated_bsval(::pg_query::BitString* bsval) { - clear_val(); - if (bsval) { - set_has_bsval(); - _impl_.val_.bsval_ = bsval; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.A_Const.bsval) -} -inline ::pg_query::BitString* A_Const::_internal_mutable_bsval() { - if (!_internal_has_bsval()) { - clear_val(); - set_has_bsval(); - _impl_.val_.bsval_ = CreateMaybeMessage< ::pg_query::BitString >(GetArenaForAllocation()); - } - return _impl_.val_.bsval_; -} -inline ::pg_query::BitString* A_Const::mutable_bsval() { - ::pg_query::BitString* _msg = _internal_mutable_bsval(); - // @@protoc_insertion_point(field_mutable:pg_query.A_Const.bsval) - return _msg; -} - -// bool isnull = 10; -inline void A_Const::clear_isnull() { - _impl_.isnull_ = false; -} -inline bool A_Const::_internal_isnull() const { - return _impl_.isnull_; -} -inline bool A_Const::isnull() const { - // @@protoc_insertion_point(field_get:pg_query.A_Const.isnull) - return _internal_isnull(); -} -inline void A_Const::_internal_set_isnull(bool value) { - - _impl_.isnull_ = value; -} -inline void A_Const::set_isnull(bool value) { - _internal_set_isnull(value); - // @@protoc_insertion_point(field_set:pg_query.A_Const.isnull) -} - -// int32 location = 11; -inline void A_Const::clear_location() { - _impl_.location_ = 0; -} -inline int32_t A_Const::_internal_location() const { - return _impl_.location_; -} -inline int32_t A_Const::location() const { - // @@protoc_insertion_point(field_get:pg_query.A_Const.location) - return _internal_location(); -} -inline void A_Const::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void A_Const::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.A_Const.location) -} - -inline bool A_Const::has_val() const { - return val_case() != VAL_NOT_SET; -} -inline void A_Const::clear_has_val() { - _impl_._oneof_case_[0] = VAL_NOT_SET; -} -inline A_Const::ValCase A_Const::val_case() const { - return A_Const::ValCase(_impl_._oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// Alias - -// string aliasname = 1 [json_name = "aliasname"]; -inline void Alias::clear_aliasname() { - _impl_.aliasname_.ClearToEmpty(); -} -inline const std::string& Alias::aliasname() const { - // @@protoc_insertion_point(field_get:pg_query.Alias.aliasname) - return _internal_aliasname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Alias::set_aliasname(ArgT0&& arg0, ArgT... args) { - - _impl_.aliasname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.Alias.aliasname) -} -inline std::string* Alias::mutable_aliasname() { - std::string* _s = _internal_mutable_aliasname(); - // @@protoc_insertion_point(field_mutable:pg_query.Alias.aliasname) - return _s; -} -inline const std::string& Alias::_internal_aliasname() const { - return _impl_.aliasname_.Get(); -} -inline void Alias::_internal_set_aliasname(const std::string& value) { - - _impl_.aliasname_.Set(value, GetArenaForAllocation()); -} -inline std::string* Alias::_internal_mutable_aliasname() { - - return _impl_.aliasname_.Mutable(GetArenaForAllocation()); -} -inline std::string* Alias::release_aliasname() { - // @@protoc_insertion_point(field_release:pg_query.Alias.aliasname) - return _impl_.aliasname_.Release(); -} -inline void Alias::set_allocated_aliasname(std::string* aliasname) { - if (aliasname != nullptr) { - - } else { - - } - _impl_.aliasname_.SetAllocated(aliasname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.aliasname_.IsDefault()) { - _impl_.aliasname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.Alias.aliasname) -} - -// repeated .pg_query.Node colnames = 2 [json_name = "colnames"]; -inline int Alias::_internal_colnames_size() const { - return _impl_.colnames_.size(); -} -inline int Alias::colnames_size() const { - return _internal_colnames_size(); -} -inline void Alias::clear_colnames() { - _impl_.colnames_.Clear(); -} -inline ::pg_query::Node* Alias::mutable_colnames(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Alias.colnames) - return _impl_.colnames_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Alias::mutable_colnames() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Alias.colnames) - return &_impl_.colnames_; -} -inline const ::pg_query::Node& Alias::_internal_colnames(int index) const { - return _impl_.colnames_.Get(index); -} -inline const ::pg_query::Node& Alias::colnames(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Alias.colnames) - return _internal_colnames(index); -} -inline ::pg_query::Node* Alias::_internal_add_colnames() { - return _impl_.colnames_.Add(); -} -inline ::pg_query::Node* Alias::add_colnames() { - ::pg_query::Node* _add = _internal_add_colnames(); - // @@protoc_insertion_point(field_add:pg_query.Alias.colnames) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Alias::colnames() const { - // @@protoc_insertion_point(field_list:pg_query.Alias.colnames) - return _impl_.colnames_; -} - -// ------------------------------------------------------------------- - -// RangeVar - -// string catalogname = 1 [json_name = "catalogname"]; -inline void RangeVar::clear_catalogname() { - _impl_.catalogname_.ClearToEmpty(); -} -inline const std::string& RangeVar::catalogname() const { - // @@protoc_insertion_point(field_get:pg_query.RangeVar.catalogname) - return _internal_catalogname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void RangeVar::set_catalogname(ArgT0&& arg0, ArgT... args) { - - _impl_.catalogname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.RangeVar.catalogname) -} -inline std::string* RangeVar::mutable_catalogname() { - std::string* _s = _internal_mutable_catalogname(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeVar.catalogname) - return _s; -} -inline const std::string& RangeVar::_internal_catalogname() const { - return _impl_.catalogname_.Get(); -} -inline void RangeVar::_internal_set_catalogname(const std::string& value) { - - _impl_.catalogname_.Set(value, GetArenaForAllocation()); -} -inline std::string* RangeVar::_internal_mutable_catalogname() { - - return _impl_.catalogname_.Mutable(GetArenaForAllocation()); -} -inline std::string* RangeVar::release_catalogname() { - // @@protoc_insertion_point(field_release:pg_query.RangeVar.catalogname) - return _impl_.catalogname_.Release(); -} -inline void RangeVar::set_allocated_catalogname(std::string* catalogname) { - if (catalogname != nullptr) { - - } else { - - } - _impl_.catalogname_.SetAllocated(catalogname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.catalogname_.IsDefault()) { - _impl_.catalogname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeVar.catalogname) -} - -// string schemaname = 2 [json_name = "schemaname"]; -inline void RangeVar::clear_schemaname() { - _impl_.schemaname_.ClearToEmpty(); -} -inline const std::string& RangeVar::schemaname() const { - // @@protoc_insertion_point(field_get:pg_query.RangeVar.schemaname) - return _internal_schemaname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void RangeVar::set_schemaname(ArgT0&& arg0, ArgT... args) { - - _impl_.schemaname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.RangeVar.schemaname) -} -inline std::string* RangeVar::mutable_schemaname() { - std::string* _s = _internal_mutable_schemaname(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeVar.schemaname) - return _s; -} -inline const std::string& RangeVar::_internal_schemaname() const { - return _impl_.schemaname_.Get(); -} -inline void RangeVar::_internal_set_schemaname(const std::string& value) { - - _impl_.schemaname_.Set(value, GetArenaForAllocation()); -} -inline std::string* RangeVar::_internal_mutable_schemaname() { - - return _impl_.schemaname_.Mutable(GetArenaForAllocation()); -} -inline std::string* RangeVar::release_schemaname() { - // @@protoc_insertion_point(field_release:pg_query.RangeVar.schemaname) - return _impl_.schemaname_.Release(); -} -inline void RangeVar::set_allocated_schemaname(std::string* schemaname) { - if (schemaname != nullptr) { - - } else { - - } - _impl_.schemaname_.SetAllocated(schemaname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.schemaname_.IsDefault()) { - _impl_.schemaname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeVar.schemaname) -} - -// string relname = 3 [json_name = "relname"]; -inline void RangeVar::clear_relname() { - _impl_.relname_.ClearToEmpty(); -} -inline const std::string& RangeVar::relname() const { - // @@protoc_insertion_point(field_get:pg_query.RangeVar.relname) - return _internal_relname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void RangeVar::set_relname(ArgT0&& arg0, ArgT... args) { - - _impl_.relname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.RangeVar.relname) -} -inline std::string* RangeVar::mutable_relname() { - std::string* _s = _internal_mutable_relname(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeVar.relname) - return _s; -} -inline const std::string& RangeVar::_internal_relname() const { - return _impl_.relname_.Get(); -} -inline void RangeVar::_internal_set_relname(const std::string& value) { - - _impl_.relname_.Set(value, GetArenaForAllocation()); -} -inline std::string* RangeVar::_internal_mutable_relname() { - - return _impl_.relname_.Mutable(GetArenaForAllocation()); -} -inline std::string* RangeVar::release_relname() { - // @@protoc_insertion_point(field_release:pg_query.RangeVar.relname) - return _impl_.relname_.Release(); -} -inline void RangeVar::set_allocated_relname(std::string* relname) { - if (relname != nullptr) { - - } else { - - } - _impl_.relname_.SetAllocated(relname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.relname_.IsDefault()) { - _impl_.relname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeVar.relname) -} - -// bool inh = 4 [json_name = "inh"]; -inline void RangeVar::clear_inh() { - _impl_.inh_ = false; -} -inline bool RangeVar::_internal_inh() const { - return _impl_.inh_; -} -inline bool RangeVar::inh() const { - // @@protoc_insertion_point(field_get:pg_query.RangeVar.inh) - return _internal_inh(); -} -inline void RangeVar::_internal_set_inh(bool value) { - - _impl_.inh_ = value; -} -inline void RangeVar::set_inh(bool value) { - _internal_set_inh(value); - // @@protoc_insertion_point(field_set:pg_query.RangeVar.inh) -} - -// string relpersistence = 5 [json_name = "relpersistence"]; -inline void RangeVar::clear_relpersistence() { - _impl_.relpersistence_.ClearToEmpty(); -} -inline const std::string& RangeVar::relpersistence() const { - // @@protoc_insertion_point(field_get:pg_query.RangeVar.relpersistence) - return _internal_relpersistence(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void RangeVar::set_relpersistence(ArgT0&& arg0, ArgT... args) { - - _impl_.relpersistence_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.RangeVar.relpersistence) -} -inline std::string* RangeVar::mutable_relpersistence() { - std::string* _s = _internal_mutable_relpersistence(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeVar.relpersistence) - return _s; -} -inline const std::string& RangeVar::_internal_relpersistence() const { - return _impl_.relpersistence_.Get(); -} -inline void RangeVar::_internal_set_relpersistence(const std::string& value) { - - _impl_.relpersistence_.Set(value, GetArenaForAllocation()); -} -inline std::string* RangeVar::_internal_mutable_relpersistence() { - - return _impl_.relpersistence_.Mutable(GetArenaForAllocation()); -} -inline std::string* RangeVar::release_relpersistence() { - // @@protoc_insertion_point(field_release:pg_query.RangeVar.relpersistence) - return _impl_.relpersistence_.Release(); -} -inline void RangeVar::set_allocated_relpersistence(std::string* relpersistence) { - if (relpersistence != nullptr) { - - } else { - - } - _impl_.relpersistence_.SetAllocated(relpersistence, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.relpersistence_.IsDefault()) { - _impl_.relpersistence_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeVar.relpersistence) -} - -// .pg_query.Alias alias = 6 [json_name = "alias"]; -inline bool RangeVar::_internal_has_alias() const { - return this != internal_default_instance() && _impl_.alias_ != nullptr; -} -inline bool RangeVar::has_alias() const { - return _internal_has_alias(); -} -inline void RangeVar::clear_alias() { - if (GetArenaForAllocation() == nullptr && _impl_.alias_ != nullptr) { - delete _impl_.alias_; - } - _impl_.alias_ = nullptr; -} -inline const ::pg_query::Alias& RangeVar::_internal_alias() const { - const ::pg_query::Alias* p = _impl_.alias_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Alias_default_instance_); -} -inline const ::pg_query::Alias& RangeVar::alias() const { - // @@protoc_insertion_point(field_get:pg_query.RangeVar.alias) - return _internal_alias(); -} -inline void RangeVar::unsafe_arena_set_allocated_alias( - ::pg_query::Alias* alias) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.alias_); - } - _impl_.alias_ = alias; - if (alias) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RangeVar.alias) -} -inline ::pg_query::Alias* RangeVar::release_alias() { - - ::pg_query::Alias* temp = _impl_.alias_; - _impl_.alias_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Alias* RangeVar::unsafe_arena_release_alias() { - // @@protoc_insertion_point(field_release:pg_query.RangeVar.alias) - - ::pg_query::Alias* temp = _impl_.alias_; - _impl_.alias_ = nullptr; - return temp; -} -inline ::pg_query::Alias* RangeVar::_internal_mutable_alias() { - - if (_impl_.alias_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Alias>(GetArenaForAllocation()); - _impl_.alias_ = p; - } - return _impl_.alias_; -} -inline ::pg_query::Alias* RangeVar::mutable_alias() { - ::pg_query::Alias* _msg = _internal_mutable_alias(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeVar.alias) - return _msg; -} -inline void RangeVar::set_allocated_alias(::pg_query::Alias* alias) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.alias_; - } - if (alias) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(alias); - if (message_arena != submessage_arena) { - alias = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, alias, submessage_arena); - } - - } else { - - } - _impl_.alias_ = alias; - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeVar.alias) -} - -// int32 location = 7 [json_name = "location"]; -inline void RangeVar::clear_location() { - _impl_.location_ = 0; -} -inline int32_t RangeVar::_internal_location() const { - return _impl_.location_; -} -inline int32_t RangeVar::location() const { - // @@protoc_insertion_point(field_get:pg_query.RangeVar.location) - return _internal_location(); -} -inline void RangeVar::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void RangeVar::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.RangeVar.location) -} - -// ------------------------------------------------------------------- - -// TableFunc - -// repeated .pg_query.Node ns_uris = 1 [json_name = "ns_uris"]; -inline int TableFunc::_internal_ns_uris_size() const { - return _impl_.ns_uris_.size(); -} -inline int TableFunc::ns_uris_size() const { - return _internal_ns_uris_size(); -} -inline void TableFunc::clear_ns_uris() { - _impl_.ns_uris_.Clear(); -} -inline ::pg_query::Node* TableFunc::mutable_ns_uris(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.TableFunc.ns_uris) - return _impl_.ns_uris_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -TableFunc::mutable_ns_uris() { - // @@protoc_insertion_point(field_mutable_list:pg_query.TableFunc.ns_uris) - return &_impl_.ns_uris_; -} -inline const ::pg_query::Node& TableFunc::_internal_ns_uris(int index) const { - return _impl_.ns_uris_.Get(index); -} -inline const ::pg_query::Node& TableFunc::ns_uris(int index) const { - // @@protoc_insertion_point(field_get:pg_query.TableFunc.ns_uris) - return _internal_ns_uris(index); -} -inline ::pg_query::Node* TableFunc::_internal_add_ns_uris() { - return _impl_.ns_uris_.Add(); -} -inline ::pg_query::Node* TableFunc::add_ns_uris() { - ::pg_query::Node* _add = _internal_add_ns_uris(); - // @@protoc_insertion_point(field_add:pg_query.TableFunc.ns_uris) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -TableFunc::ns_uris() const { - // @@protoc_insertion_point(field_list:pg_query.TableFunc.ns_uris) - return _impl_.ns_uris_; -} - -// repeated .pg_query.Node ns_names = 2 [json_name = "ns_names"]; -inline int TableFunc::_internal_ns_names_size() const { - return _impl_.ns_names_.size(); -} -inline int TableFunc::ns_names_size() const { - return _internal_ns_names_size(); -} -inline void TableFunc::clear_ns_names() { - _impl_.ns_names_.Clear(); -} -inline ::pg_query::Node* TableFunc::mutable_ns_names(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.TableFunc.ns_names) - return _impl_.ns_names_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -TableFunc::mutable_ns_names() { - // @@protoc_insertion_point(field_mutable_list:pg_query.TableFunc.ns_names) - return &_impl_.ns_names_; -} -inline const ::pg_query::Node& TableFunc::_internal_ns_names(int index) const { - return _impl_.ns_names_.Get(index); -} -inline const ::pg_query::Node& TableFunc::ns_names(int index) const { - // @@protoc_insertion_point(field_get:pg_query.TableFunc.ns_names) - return _internal_ns_names(index); -} -inline ::pg_query::Node* TableFunc::_internal_add_ns_names() { - return _impl_.ns_names_.Add(); -} -inline ::pg_query::Node* TableFunc::add_ns_names() { - ::pg_query::Node* _add = _internal_add_ns_names(); - // @@protoc_insertion_point(field_add:pg_query.TableFunc.ns_names) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -TableFunc::ns_names() const { - // @@protoc_insertion_point(field_list:pg_query.TableFunc.ns_names) - return _impl_.ns_names_; -} - -// .pg_query.Node docexpr = 3 [json_name = "docexpr"]; -inline bool TableFunc::_internal_has_docexpr() const { - return this != internal_default_instance() && _impl_.docexpr_ != nullptr; -} -inline bool TableFunc::has_docexpr() const { - return _internal_has_docexpr(); -} -inline void TableFunc::clear_docexpr() { - if (GetArenaForAllocation() == nullptr && _impl_.docexpr_ != nullptr) { - delete _impl_.docexpr_; - } - _impl_.docexpr_ = nullptr; -} -inline const ::pg_query::Node& TableFunc::_internal_docexpr() const { - const ::pg_query::Node* p = _impl_.docexpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& TableFunc::docexpr() const { - // @@protoc_insertion_point(field_get:pg_query.TableFunc.docexpr) - return _internal_docexpr(); -} -inline void TableFunc::unsafe_arena_set_allocated_docexpr( - ::pg_query::Node* docexpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.docexpr_); - } - _impl_.docexpr_ = docexpr; - if (docexpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.TableFunc.docexpr) -} -inline ::pg_query::Node* TableFunc::release_docexpr() { - - ::pg_query::Node* temp = _impl_.docexpr_; - _impl_.docexpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* TableFunc::unsafe_arena_release_docexpr() { - // @@protoc_insertion_point(field_release:pg_query.TableFunc.docexpr) - - ::pg_query::Node* temp = _impl_.docexpr_; - _impl_.docexpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* TableFunc::_internal_mutable_docexpr() { - - if (_impl_.docexpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.docexpr_ = p; - } - return _impl_.docexpr_; -} -inline ::pg_query::Node* TableFunc::mutable_docexpr() { - ::pg_query::Node* _msg = _internal_mutable_docexpr(); - // @@protoc_insertion_point(field_mutable:pg_query.TableFunc.docexpr) - return _msg; -} -inline void TableFunc::set_allocated_docexpr(::pg_query::Node* docexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.docexpr_; - } - if (docexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(docexpr); - if (message_arena != submessage_arena) { - docexpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, docexpr, submessage_arena); - } - - } else { - - } - _impl_.docexpr_ = docexpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.TableFunc.docexpr) -} - -// .pg_query.Node rowexpr = 4 [json_name = "rowexpr"]; -inline bool TableFunc::_internal_has_rowexpr() const { - return this != internal_default_instance() && _impl_.rowexpr_ != nullptr; -} -inline bool TableFunc::has_rowexpr() const { - return _internal_has_rowexpr(); -} -inline void TableFunc::clear_rowexpr() { - if (GetArenaForAllocation() == nullptr && _impl_.rowexpr_ != nullptr) { - delete _impl_.rowexpr_; - } - _impl_.rowexpr_ = nullptr; -} -inline const ::pg_query::Node& TableFunc::_internal_rowexpr() const { - const ::pg_query::Node* p = _impl_.rowexpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& TableFunc::rowexpr() const { - // @@protoc_insertion_point(field_get:pg_query.TableFunc.rowexpr) - return _internal_rowexpr(); -} -inline void TableFunc::unsafe_arena_set_allocated_rowexpr( - ::pg_query::Node* rowexpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.rowexpr_); - } - _impl_.rowexpr_ = rowexpr; - if (rowexpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.TableFunc.rowexpr) -} -inline ::pg_query::Node* TableFunc::release_rowexpr() { - - ::pg_query::Node* temp = _impl_.rowexpr_; - _impl_.rowexpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* TableFunc::unsafe_arena_release_rowexpr() { - // @@protoc_insertion_point(field_release:pg_query.TableFunc.rowexpr) - - ::pg_query::Node* temp = _impl_.rowexpr_; - _impl_.rowexpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* TableFunc::_internal_mutable_rowexpr() { - - if (_impl_.rowexpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.rowexpr_ = p; - } - return _impl_.rowexpr_; -} -inline ::pg_query::Node* TableFunc::mutable_rowexpr() { - ::pg_query::Node* _msg = _internal_mutable_rowexpr(); - // @@protoc_insertion_point(field_mutable:pg_query.TableFunc.rowexpr) - return _msg; -} -inline void TableFunc::set_allocated_rowexpr(::pg_query::Node* rowexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.rowexpr_; - } - if (rowexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(rowexpr); - if (message_arena != submessage_arena) { - rowexpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, rowexpr, submessage_arena); - } - - } else { - - } - _impl_.rowexpr_ = rowexpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.TableFunc.rowexpr) -} - -// repeated .pg_query.Node colnames = 5 [json_name = "colnames"]; -inline int TableFunc::_internal_colnames_size() const { - return _impl_.colnames_.size(); -} -inline int TableFunc::colnames_size() const { - return _internal_colnames_size(); -} -inline void TableFunc::clear_colnames() { - _impl_.colnames_.Clear(); -} -inline ::pg_query::Node* TableFunc::mutable_colnames(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.TableFunc.colnames) - return _impl_.colnames_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -TableFunc::mutable_colnames() { - // @@protoc_insertion_point(field_mutable_list:pg_query.TableFunc.colnames) - return &_impl_.colnames_; -} -inline const ::pg_query::Node& TableFunc::_internal_colnames(int index) const { - return _impl_.colnames_.Get(index); -} -inline const ::pg_query::Node& TableFunc::colnames(int index) const { - // @@protoc_insertion_point(field_get:pg_query.TableFunc.colnames) - return _internal_colnames(index); -} -inline ::pg_query::Node* TableFunc::_internal_add_colnames() { - return _impl_.colnames_.Add(); -} -inline ::pg_query::Node* TableFunc::add_colnames() { - ::pg_query::Node* _add = _internal_add_colnames(); - // @@protoc_insertion_point(field_add:pg_query.TableFunc.colnames) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -TableFunc::colnames() const { - // @@protoc_insertion_point(field_list:pg_query.TableFunc.colnames) - return _impl_.colnames_; -} - -// repeated .pg_query.Node coltypes = 6 [json_name = "coltypes"]; -inline int TableFunc::_internal_coltypes_size() const { - return _impl_.coltypes_.size(); -} -inline int TableFunc::coltypes_size() const { - return _internal_coltypes_size(); -} -inline void TableFunc::clear_coltypes() { - _impl_.coltypes_.Clear(); -} -inline ::pg_query::Node* TableFunc::mutable_coltypes(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.TableFunc.coltypes) - return _impl_.coltypes_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -TableFunc::mutable_coltypes() { - // @@protoc_insertion_point(field_mutable_list:pg_query.TableFunc.coltypes) - return &_impl_.coltypes_; -} -inline const ::pg_query::Node& TableFunc::_internal_coltypes(int index) const { - return _impl_.coltypes_.Get(index); -} -inline const ::pg_query::Node& TableFunc::coltypes(int index) const { - // @@protoc_insertion_point(field_get:pg_query.TableFunc.coltypes) - return _internal_coltypes(index); -} -inline ::pg_query::Node* TableFunc::_internal_add_coltypes() { - return _impl_.coltypes_.Add(); -} -inline ::pg_query::Node* TableFunc::add_coltypes() { - ::pg_query::Node* _add = _internal_add_coltypes(); - // @@protoc_insertion_point(field_add:pg_query.TableFunc.coltypes) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -TableFunc::coltypes() const { - // @@protoc_insertion_point(field_list:pg_query.TableFunc.coltypes) - return _impl_.coltypes_; -} - -// repeated .pg_query.Node coltypmods = 7 [json_name = "coltypmods"]; -inline int TableFunc::_internal_coltypmods_size() const { - return _impl_.coltypmods_.size(); -} -inline int TableFunc::coltypmods_size() const { - return _internal_coltypmods_size(); -} -inline void TableFunc::clear_coltypmods() { - _impl_.coltypmods_.Clear(); -} -inline ::pg_query::Node* TableFunc::mutable_coltypmods(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.TableFunc.coltypmods) - return _impl_.coltypmods_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -TableFunc::mutable_coltypmods() { - // @@protoc_insertion_point(field_mutable_list:pg_query.TableFunc.coltypmods) - return &_impl_.coltypmods_; -} -inline const ::pg_query::Node& TableFunc::_internal_coltypmods(int index) const { - return _impl_.coltypmods_.Get(index); -} -inline const ::pg_query::Node& TableFunc::coltypmods(int index) const { - // @@protoc_insertion_point(field_get:pg_query.TableFunc.coltypmods) - return _internal_coltypmods(index); -} -inline ::pg_query::Node* TableFunc::_internal_add_coltypmods() { - return _impl_.coltypmods_.Add(); -} -inline ::pg_query::Node* TableFunc::add_coltypmods() { - ::pg_query::Node* _add = _internal_add_coltypmods(); - // @@protoc_insertion_point(field_add:pg_query.TableFunc.coltypmods) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -TableFunc::coltypmods() const { - // @@protoc_insertion_point(field_list:pg_query.TableFunc.coltypmods) - return _impl_.coltypmods_; -} - -// repeated .pg_query.Node colcollations = 8 [json_name = "colcollations"]; -inline int TableFunc::_internal_colcollations_size() const { - return _impl_.colcollations_.size(); -} -inline int TableFunc::colcollations_size() const { - return _internal_colcollations_size(); -} -inline void TableFunc::clear_colcollations() { - _impl_.colcollations_.Clear(); -} -inline ::pg_query::Node* TableFunc::mutable_colcollations(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.TableFunc.colcollations) - return _impl_.colcollations_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -TableFunc::mutable_colcollations() { - // @@protoc_insertion_point(field_mutable_list:pg_query.TableFunc.colcollations) - return &_impl_.colcollations_; -} -inline const ::pg_query::Node& TableFunc::_internal_colcollations(int index) const { - return _impl_.colcollations_.Get(index); -} -inline const ::pg_query::Node& TableFunc::colcollations(int index) const { - // @@protoc_insertion_point(field_get:pg_query.TableFunc.colcollations) - return _internal_colcollations(index); -} -inline ::pg_query::Node* TableFunc::_internal_add_colcollations() { - return _impl_.colcollations_.Add(); -} -inline ::pg_query::Node* TableFunc::add_colcollations() { - ::pg_query::Node* _add = _internal_add_colcollations(); - // @@protoc_insertion_point(field_add:pg_query.TableFunc.colcollations) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -TableFunc::colcollations() const { - // @@protoc_insertion_point(field_list:pg_query.TableFunc.colcollations) - return _impl_.colcollations_; -} - -// repeated .pg_query.Node colexprs = 9 [json_name = "colexprs"]; -inline int TableFunc::_internal_colexprs_size() const { - return _impl_.colexprs_.size(); -} -inline int TableFunc::colexprs_size() const { - return _internal_colexprs_size(); -} -inline void TableFunc::clear_colexprs() { - _impl_.colexprs_.Clear(); -} -inline ::pg_query::Node* TableFunc::mutable_colexprs(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.TableFunc.colexprs) - return _impl_.colexprs_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -TableFunc::mutable_colexprs() { - // @@protoc_insertion_point(field_mutable_list:pg_query.TableFunc.colexprs) - return &_impl_.colexprs_; -} -inline const ::pg_query::Node& TableFunc::_internal_colexprs(int index) const { - return _impl_.colexprs_.Get(index); -} -inline const ::pg_query::Node& TableFunc::colexprs(int index) const { - // @@protoc_insertion_point(field_get:pg_query.TableFunc.colexprs) - return _internal_colexprs(index); -} -inline ::pg_query::Node* TableFunc::_internal_add_colexprs() { - return _impl_.colexprs_.Add(); -} -inline ::pg_query::Node* TableFunc::add_colexprs() { - ::pg_query::Node* _add = _internal_add_colexprs(); - // @@protoc_insertion_point(field_add:pg_query.TableFunc.colexprs) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -TableFunc::colexprs() const { - // @@protoc_insertion_point(field_list:pg_query.TableFunc.colexprs) - return _impl_.colexprs_; -} - -// repeated .pg_query.Node coldefexprs = 10 [json_name = "coldefexprs"]; -inline int TableFunc::_internal_coldefexprs_size() const { - return _impl_.coldefexprs_.size(); -} -inline int TableFunc::coldefexprs_size() const { - return _internal_coldefexprs_size(); -} -inline void TableFunc::clear_coldefexprs() { - _impl_.coldefexprs_.Clear(); -} -inline ::pg_query::Node* TableFunc::mutable_coldefexprs(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.TableFunc.coldefexprs) - return _impl_.coldefexprs_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -TableFunc::mutable_coldefexprs() { - // @@protoc_insertion_point(field_mutable_list:pg_query.TableFunc.coldefexprs) - return &_impl_.coldefexprs_; -} -inline const ::pg_query::Node& TableFunc::_internal_coldefexprs(int index) const { - return _impl_.coldefexprs_.Get(index); -} -inline const ::pg_query::Node& TableFunc::coldefexprs(int index) const { - // @@protoc_insertion_point(field_get:pg_query.TableFunc.coldefexprs) - return _internal_coldefexprs(index); -} -inline ::pg_query::Node* TableFunc::_internal_add_coldefexprs() { - return _impl_.coldefexprs_.Add(); -} -inline ::pg_query::Node* TableFunc::add_coldefexprs() { - ::pg_query::Node* _add = _internal_add_coldefexprs(); - // @@protoc_insertion_point(field_add:pg_query.TableFunc.coldefexprs) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -TableFunc::coldefexprs() const { - // @@protoc_insertion_point(field_list:pg_query.TableFunc.coldefexprs) - return _impl_.coldefexprs_; -} - -// repeated uint64 notnulls = 11 [json_name = "notnulls"]; -inline int TableFunc::_internal_notnulls_size() const { - return _impl_.notnulls_.size(); -} -inline int TableFunc::notnulls_size() const { - return _internal_notnulls_size(); -} -inline void TableFunc::clear_notnulls() { - _impl_.notnulls_.Clear(); -} -inline uint64_t TableFunc::_internal_notnulls(int index) const { - return _impl_.notnulls_.Get(index); -} -inline uint64_t TableFunc::notnulls(int index) const { - // @@protoc_insertion_point(field_get:pg_query.TableFunc.notnulls) - return _internal_notnulls(index); -} -inline void TableFunc::set_notnulls(int index, uint64_t value) { - _impl_.notnulls_.Set(index, value); - // @@protoc_insertion_point(field_set:pg_query.TableFunc.notnulls) -} -inline void TableFunc::_internal_add_notnulls(uint64_t value) { - _impl_.notnulls_.Add(value); -} -inline void TableFunc::add_notnulls(uint64_t value) { - _internal_add_notnulls(value); - // @@protoc_insertion_point(field_add:pg_query.TableFunc.notnulls) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& -TableFunc::_internal_notnulls() const { - return _impl_.notnulls_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& -TableFunc::notnulls() const { - // @@protoc_insertion_point(field_list:pg_query.TableFunc.notnulls) - return _internal_notnulls(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* -TableFunc::_internal_mutable_notnulls() { - return &_impl_.notnulls_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* -TableFunc::mutable_notnulls() { - // @@protoc_insertion_point(field_mutable_list:pg_query.TableFunc.notnulls) - return _internal_mutable_notnulls(); -} - -// int32 ordinalitycol = 12 [json_name = "ordinalitycol"]; -inline void TableFunc::clear_ordinalitycol() { - _impl_.ordinalitycol_ = 0; -} -inline int32_t TableFunc::_internal_ordinalitycol() const { - return _impl_.ordinalitycol_; -} -inline int32_t TableFunc::ordinalitycol() const { - // @@protoc_insertion_point(field_get:pg_query.TableFunc.ordinalitycol) - return _internal_ordinalitycol(); -} -inline void TableFunc::_internal_set_ordinalitycol(int32_t value) { - - _impl_.ordinalitycol_ = value; -} -inline void TableFunc::set_ordinalitycol(int32_t value) { - _internal_set_ordinalitycol(value); - // @@protoc_insertion_point(field_set:pg_query.TableFunc.ordinalitycol) -} - -// int32 location = 13 [json_name = "location"]; -inline void TableFunc::clear_location() { - _impl_.location_ = 0; -} -inline int32_t TableFunc::_internal_location() const { - return _impl_.location_; -} -inline int32_t TableFunc::location() const { - // @@protoc_insertion_point(field_get:pg_query.TableFunc.location) - return _internal_location(); -} -inline void TableFunc::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void TableFunc::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.TableFunc.location) -} - -// ------------------------------------------------------------------- - -// Var - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool Var::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool Var::has_xpr() const { - return _internal_has_xpr(); -} -inline void Var::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& Var::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& Var::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.Var.xpr) - return _internal_xpr(); -} -inline void Var::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Var.xpr) -} -inline ::pg_query::Node* Var::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* Var::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.Var.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* Var::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* Var::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.Var.xpr) - return _msg; -} -inline void Var::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.Var.xpr) -} - -// int32 varno = 2 [json_name = "varno"]; -inline void Var::clear_varno() { - _impl_.varno_ = 0; -} -inline int32_t Var::_internal_varno() const { - return _impl_.varno_; -} -inline int32_t Var::varno() const { - // @@protoc_insertion_point(field_get:pg_query.Var.varno) - return _internal_varno(); -} -inline void Var::_internal_set_varno(int32_t value) { - - _impl_.varno_ = value; -} -inline void Var::set_varno(int32_t value) { - _internal_set_varno(value); - // @@protoc_insertion_point(field_set:pg_query.Var.varno) -} - -// int32 varattno = 3 [json_name = "varattno"]; -inline void Var::clear_varattno() { - _impl_.varattno_ = 0; -} -inline int32_t Var::_internal_varattno() const { - return _impl_.varattno_; -} -inline int32_t Var::varattno() const { - // @@protoc_insertion_point(field_get:pg_query.Var.varattno) - return _internal_varattno(); -} -inline void Var::_internal_set_varattno(int32_t value) { - - _impl_.varattno_ = value; -} -inline void Var::set_varattno(int32_t value) { - _internal_set_varattno(value); - // @@protoc_insertion_point(field_set:pg_query.Var.varattno) -} - -// uint32 vartype = 4 [json_name = "vartype"]; -inline void Var::clear_vartype() { - _impl_.vartype_ = 0u; -} -inline uint32_t Var::_internal_vartype() const { - return _impl_.vartype_; -} -inline uint32_t Var::vartype() const { - // @@protoc_insertion_point(field_get:pg_query.Var.vartype) - return _internal_vartype(); -} -inline void Var::_internal_set_vartype(uint32_t value) { - - _impl_.vartype_ = value; -} -inline void Var::set_vartype(uint32_t value) { - _internal_set_vartype(value); - // @@protoc_insertion_point(field_set:pg_query.Var.vartype) -} - -// int32 vartypmod = 5 [json_name = "vartypmod"]; -inline void Var::clear_vartypmod() { - _impl_.vartypmod_ = 0; -} -inline int32_t Var::_internal_vartypmod() const { - return _impl_.vartypmod_; -} -inline int32_t Var::vartypmod() const { - // @@protoc_insertion_point(field_get:pg_query.Var.vartypmod) - return _internal_vartypmod(); -} -inline void Var::_internal_set_vartypmod(int32_t value) { - - _impl_.vartypmod_ = value; -} -inline void Var::set_vartypmod(int32_t value) { - _internal_set_vartypmod(value); - // @@protoc_insertion_point(field_set:pg_query.Var.vartypmod) -} - -// uint32 varcollid = 6 [json_name = "varcollid"]; -inline void Var::clear_varcollid() { - _impl_.varcollid_ = 0u; -} -inline uint32_t Var::_internal_varcollid() const { - return _impl_.varcollid_; -} -inline uint32_t Var::varcollid() const { - // @@protoc_insertion_point(field_get:pg_query.Var.varcollid) - return _internal_varcollid(); -} -inline void Var::_internal_set_varcollid(uint32_t value) { - - _impl_.varcollid_ = value; -} -inline void Var::set_varcollid(uint32_t value) { - _internal_set_varcollid(value); - // @@protoc_insertion_point(field_set:pg_query.Var.varcollid) -} - -// uint32 varlevelsup = 7 [json_name = "varlevelsup"]; -inline void Var::clear_varlevelsup() { - _impl_.varlevelsup_ = 0u; -} -inline uint32_t Var::_internal_varlevelsup() const { - return _impl_.varlevelsup_; -} -inline uint32_t Var::varlevelsup() const { - // @@protoc_insertion_point(field_get:pg_query.Var.varlevelsup) - return _internal_varlevelsup(); -} -inline void Var::_internal_set_varlevelsup(uint32_t value) { - - _impl_.varlevelsup_ = value; -} -inline void Var::set_varlevelsup(uint32_t value) { - _internal_set_varlevelsup(value); - // @@protoc_insertion_point(field_set:pg_query.Var.varlevelsup) -} - -// uint32 varnosyn = 8 [json_name = "varnosyn"]; -inline void Var::clear_varnosyn() { - _impl_.varnosyn_ = 0u; -} -inline uint32_t Var::_internal_varnosyn() const { - return _impl_.varnosyn_; -} -inline uint32_t Var::varnosyn() const { - // @@protoc_insertion_point(field_get:pg_query.Var.varnosyn) - return _internal_varnosyn(); -} -inline void Var::_internal_set_varnosyn(uint32_t value) { - - _impl_.varnosyn_ = value; -} -inline void Var::set_varnosyn(uint32_t value) { - _internal_set_varnosyn(value); - // @@protoc_insertion_point(field_set:pg_query.Var.varnosyn) -} - -// int32 varattnosyn = 9 [json_name = "varattnosyn"]; -inline void Var::clear_varattnosyn() { - _impl_.varattnosyn_ = 0; -} -inline int32_t Var::_internal_varattnosyn() const { - return _impl_.varattnosyn_; -} -inline int32_t Var::varattnosyn() const { - // @@protoc_insertion_point(field_get:pg_query.Var.varattnosyn) - return _internal_varattnosyn(); -} -inline void Var::_internal_set_varattnosyn(int32_t value) { - - _impl_.varattnosyn_ = value; -} -inline void Var::set_varattnosyn(int32_t value) { - _internal_set_varattnosyn(value); - // @@protoc_insertion_point(field_set:pg_query.Var.varattnosyn) -} - -// int32 location = 10 [json_name = "location"]; -inline void Var::clear_location() { - _impl_.location_ = 0; -} -inline int32_t Var::_internal_location() const { - return _impl_.location_; -} -inline int32_t Var::location() const { - // @@protoc_insertion_point(field_get:pg_query.Var.location) - return _internal_location(); -} -inline void Var::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void Var::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.Var.location) -} - -// ------------------------------------------------------------------- - -// Param - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool Param::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool Param::has_xpr() const { - return _internal_has_xpr(); -} -inline void Param::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& Param::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& Param::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.Param.xpr) - return _internal_xpr(); -} -inline void Param::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Param.xpr) -} -inline ::pg_query::Node* Param::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* Param::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.Param.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* Param::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* Param::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.Param.xpr) - return _msg; -} -inline void Param::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.Param.xpr) -} - -// .pg_query.ParamKind paramkind = 2 [json_name = "paramkind"]; -inline void Param::clear_paramkind() { - _impl_.paramkind_ = 0; -} -inline ::pg_query::ParamKind Param::_internal_paramkind() const { - return static_cast< ::pg_query::ParamKind >(_impl_.paramkind_); -} -inline ::pg_query::ParamKind Param::paramkind() const { - // @@protoc_insertion_point(field_get:pg_query.Param.paramkind) - return _internal_paramkind(); -} -inline void Param::_internal_set_paramkind(::pg_query::ParamKind value) { - - _impl_.paramkind_ = value; -} -inline void Param::set_paramkind(::pg_query::ParamKind value) { - _internal_set_paramkind(value); - // @@protoc_insertion_point(field_set:pg_query.Param.paramkind) -} - -// int32 paramid = 3 [json_name = "paramid"]; -inline void Param::clear_paramid() { - _impl_.paramid_ = 0; -} -inline int32_t Param::_internal_paramid() const { - return _impl_.paramid_; -} -inline int32_t Param::paramid() const { - // @@protoc_insertion_point(field_get:pg_query.Param.paramid) - return _internal_paramid(); -} -inline void Param::_internal_set_paramid(int32_t value) { - - _impl_.paramid_ = value; -} -inline void Param::set_paramid(int32_t value) { - _internal_set_paramid(value); - // @@protoc_insertion_point(field_set:pg_query.Param.paramid) -} - -// uint32 paramtype = 4 [json_name = "paramtype"]; -inline void Param::clear_paramtype() { - _impl_.paramtype_ = 0u; -} -inline uint32_t Param::_internal_paramtype() const { - return _impl_.paramtype_; -} -inline uint32_t Param::paramtype() const { - // @@protoc_insertion_point(field_get:pg_query.Param.paramtype) - return _internal_paramtype(); -} -inline void Param::_internal_set_paramtype(uint32_t value) { - - _impl_.paramtype_ = value; -} -inline void Param::set_paramtype(uint32_t value) { - _internal_set_paramtype(value); - // @@protoc_insertion_point(field_set:pg_query.Param.paramtype) -} - -// int32 paramtypmod = 5 [json_name = "paramtypmod"]; -inline void Param::clear_paramtypmod() { - _impl_.paramtypmod_ = 0; -} -inline int32_t Param::_internal_paramtypmod() const { - return _impl_.paramtypmod_; -} -inline int32_t Param::paramtypmod() const { - // @@protoc_insertion_point(field_get:pg_query.Param.paramtypmod) - return _internal_paramtypmod(); -} -inline void Param::_internal_set_paramtypmod(int32_t value) { - - _impl_.paramtypmod_ = value; -} -inline void Param::set_paramtypmod(int32_t value) { - _internal_set_paramtypmod(value); - // @@protoc_insertion_point(field_set:pg_query.Param.paramtypmod) -} - -// uint32 paramcollid = 6 [json_name = "paramcollid"]; -inline void Param::clear_paramcollid() { - _impl_.paramcollid_ = 0u; -} -inline uint32_t Param::_internal_paramcollid() const { - return _impl_.paramcollid_; -} -inline uint32_t Param::paramcollid() const { - // @@protoc_insertion_point(field_get:pg_query.Param.paramcollid) - return _internal_paramcollid(); -} -inline void Param::_internal_set_paramcollid(uint32_t value) { - - _impl_.paramcollid_ = value; -} -inline void Param::set_paramcollid(uint32_t value) { - _internal_set_paramcollid(value); - // @@protoc_insertion_point(field_set:pg_query.Param.paramcollid) -} - -// int32 location = 7 [json_name = "location"]; -inline void Param::clear_location() { - _impl_.location_ = 0; -} -inline int32_t Param::_internal_location() const { - return _impl_.location_; -} -inline int32_t Param::location() const { - // @@protoc_insertion_point(field_get:pg_query.Param.location) - return _internal_location(); -} -inline void Param::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void Param::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.Param.location) -} - -// ------------------------------------------------------------------- - -// Aggref - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool Aggref::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool Aggref::has_xpr() const { - return _internal_has_xpr(); -} -inline void Aggref::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& Aggref::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& Aggref::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.Aggref.xpr) - return _internal_xpr(); -} -inline void Aggref::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Aggref.xpr) -} -inline ::pg_query::Node* Aggref::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* Aggref::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.Aggref.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* Aggref::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* Aggref::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.Aggref.xpr) - return _msg; -} -inline void Aggref::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.Aggref.xpr) -} - -// uint32 aggfnoid = 2 [json_name = "aggfnoid"]; -inline void Aggref::clear_aggfnoid() { - _impl_.aggfnoid_ = 0u; -} -inline uint32_t Aggref::_internal_aggfnoid() const { - return _impl_.aggfnoid_; -} -inline uint32_t Aggref::aggfnoid() const { - // @@protoc_insertion_point(field_get:pg_query.Aggref.aggfnoid) - return _internal_aggfnoid(); -} -inline void Aggref::_internal_set_aggfnoid(uint32_t value) { - - _impl_.aggfnoid_ = value; -} -inline void Aggref::set_aggfnoid(uint32_t value) { - _internal_set_aggfnoid(value); - // @@protoc_insertion_point(field_set:pg_query.Aggref.aggfnoid) -} - -// uint32 aggtype = 3 [json_name = "aggtype"]; -inline void Aggref::clear_aggtype() { - _impl_.aggtype_ = 0u; -} -inline uint32_t Aggref::_internal_aggtype() const { - return _impl_.aggtype_; -} -inline uint32_t Aggref::aggtype() const { - // @@protoc_insertion_point(field_get:pg_query.Aggref.aggtype) - return _internal_aggtype(); -} -inline void Aggref::_internal_set_aggtype(uint32_t value) { - - _impl_.aggtype_ = value; -} -inline void Aggref::set_aggtype(uint32_t value) { - _internal_set_aggtype(value); - // @@protoc_insertion_point(field_set:pg_query.Aggref.aggtype) -} - -// uint32 aggcollid = 4 [json_name = "aggcollid"]; -inline void Aggref::clear_aggcollid() { - _impl_.aggcollid_ = 0u; -} -inline uint32_t Aggref::_internal_aggcollid() const { - return _impl_.aggcollid_; -} -inline uint32_t Aggref::aggcollid() const { - // @@protoc_insertion_point(field_get:pg_query.Aggref.aggcollid) - return _internal_aggcollid(); -} -inline void Aggref::_internal_set_aggcollid(uint32_t value) { - - _impl_.aggcollid_ = value; -} -inline void Aggref::set_aggcollid(uint32_t value) { - _internal_set_aggcollid(value); - // @@protoc_insertion_point(field_set:pg_query.Aggref.aggcollid) -} - -// uint32 inputcollid = 5 [json_name = "inputcollid"]; -inline void Aggref::clear_inputcollid() { - _impl_.inputcollid_ = 0u; -} -inline uint32_t Aggref::_internal_inputcollid() const { - return _impl_.inputcollid_; -} -inline uint32_t Aggref::inputcollid() const { - // @@protoc_insertion_point(field_get:pg_query.Aggref.inputcollid) - return _internal_inputcollid(); -} -inline void Aggref::_internal_set_inputcollid(uint32_t value) { - - _impl_.inputcollid_ = value; -} -inline void Aggref::set_inputcollid(uint32_t value) { - _internal_set_inputcollid(value); - // @@protoc_insertion_point(field_set:pg_query.Aggref.inputcollid) -} - -// uint32 aggtranstype = 6 [json_name = "aggtranstype"]; -inline void Aggref::clear_aggtranstype() { - _impl_.aggtranstype_ = 0u; -} -inline uint32_t Aggref::_internal_aggtranstype() const { - return _impl_.aggtranstype_; -} -inline uint32_t Aggref::aggtranstype() const { - // @@protoc_insertion_point(field_get:pg_query.Aggref.aggtranstype) - return _internal_aggtranstype(); -} -inline void Aggref::_internal_set_aggtranstype(uint32_t value) { - - _impl_.aggtranstype_ = value; -} -inline void Aggref::set_aggtranstype(uint32_t value) { - _internal_set_aggtranstype(value); - // @@protoc_insertion_point(field_set:pg_query.Aggref.aggtranstype) -} - -// repeated .pg_query.Node aggargtypes = 7 [json_name = "aggargtypes"]; -inline int Aggref::_internal_aggargtypes_size() const { - return _impl_.aggargtypes_.size(); -} -inline int Aggref::aggargtypes_size() const { - return _internal_aggargtypes_size(); -} -inline void Aggref::clear_aggargtypes() { - _impl_.aggargtypes_.Clear(); -} -inline ::pg_query::Node* Aggref::mutable_aggargtypes(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Aggref.aggargtypes) - return _impl_.aggargtypes_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Aggref::mutable_aggargtypes() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Aggref.aggargtypes) - return &_impl_.aggargtypes_; -} -inline const ::pg_query::Node& Aggref::_internal_aggargtypes(int index) const { - return _impl_.aggargtypes_.Get(index); -} -inline const ::pg_query::Node& Aggref::aggargtypes(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Aggref.aggargtypes) - return _internal_aggargtypes(index); -} -inline ::pg_query::Node* Aggref::_internal_add_aggargtypes() { - return _impl_.aggargtypes_.Add(); -} -inline ::pg_query::Node* Aggref::add_aggargtypes() { - ::pg_query::Node* _add = _internal_add_aggargtypes(); - // @@protoc_insertion_point(field_add:pg_query.Aggref.aggargtypes) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Aggref::aggargtypes() const { - // @@protoc_insertion_point(field_list:pg_query.Aggref.aggargtypes) - return _impl_.aggargtypes_; -} - -// repeated .pg_query.Node aggdirectargs = 8 [json_name = "aggdirectargs"]; -inline int Aggref::_internal_aggdirectargs_size() const { - return _impl_.aggdirectargs_.size(); -} -inline int Aggref::aggdirectargs_size() const { - return _internal_aggdirectargs_size(); -} -inline void Aggref::clear_aggdirectargs() { - _impl_.aggdirectargs_.Clear(); -} -inline ::pg_query::Node* Aggref::mutable_aggdirectargs(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Aggref.aggdirectargs) - return _impl_.aggdirectargs_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Aggref::mutable_aggdirectargs() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Aggref.aggdirectargs) - return &_impl_.aggdirectargs_; -} -inline const ::pg_query::Node& Aggref::_internal_aggdirectargs(int index) const { - return _impl_.aggdirectargs_.Get(index); -} -inline const ::pg_query::Node& Aggref::aggdirectargs(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Aggref.aggdirectargs) - return _internal_aggdirectargs(index); -} -inline ::pg_query::Node* Aggref::_internal_add_aggdirectargs() { - return _impl_.aggdirectargs_.Add(); -} -inline ::pg_query::Node* Aggref::add_aggdirectargs() { - ::pg_query::Node* _add = _internal_add_aggdirectargs(); - // @@protoc_insertion_point(field_add:pg_query.Aggref.aggdirectargs) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Aggref::aggdirectargs() const { - // @@protoc_insertion_point(field_list:pg_query.Aggref.aggdirectargs) - return _impl_.aggdirectargs_; -} - -// repeated .pg_query.Node args = 9 [json_name = "args"]; -inline int Aggref::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int Aggref::args_size() const { - return _internal_args_size(); -} -inline void Aggref::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* Aggref::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Aggref.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Aggref::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Aggref.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& Aggref::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& Aggref::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Aggref.args) - return _internal_args(index); -} -inline ::pg_query::Node* Aggref::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* Aggref::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.Aggref.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Aggref::args() const { - // @@protoc_insertion_point(field_list:pg_query.Aggref.args) - return _impl_.args_; -} - -// repeated .pg_query.Node aggorder = 10 [json_name = "aggorder"]; -inline int Aggref::_internal_aggorder_size() const { - return _impl_.aggorder_.size(); -} -inline int Aggref::aggorder_size() const { - return _internal_aggorder_size(); -} -inline void Aggref::clear_aggorder() { - _impl_.aggorder_.Clear(); -} -inline ::pg_query::Node* Aggref::mutable_aggorder(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Aggref.aggorder) - return _impl_.aggorder_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Aggref::mutable_aggorder() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Aggref.aggorder) - return &_impl_.aggorder_; -} -inline const ::pg_query::Node& Aggref::_internal_aggorder(int index) const { - return _impl_.aggorder_.Get(index); -} -inline const ::pg_query::Node& Aggref::aggorder(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Aggref.aggorder) - return _internal_aggorder(index); -} -inline ::pg_query::Node* Aggref::_internal_add_aggorder() { - return _impl_.aggorder_.Add(); -} -inline ::pg_query::Node* Aggref::add_aggorder() { - ::pg_query::Node* _add = _internal_add_aggorder(); - // @@protoc_insertion_point(field_add:pg_query.Aggref.aggorder) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Aggref::aggorder() const { - // @@protoc_insertion_point(field_list:pg_query.Aggref.aggorder) - return _impl_.aggorder_; -} - -// repeated .pg_query.Node aggdistinct = 11 [json_name = "aggdistinct"]; -inline int Aggref::_internal_aggdistinct_size() const { - return _impl_.aggdistinct_.size(); -} -inline int Aggref::aggdistinct_size() const { - return _internal_aggdistinct_size(); -} -inline void Aggref::clear_aggdistinct() { - _impl_.aggdistinct_.Clear(); -} -inline ::pg_query::Node* Aggref::mutable_aggdistinct(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Aggref.aggdistinct) - return _impl_.aggdistinct_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Aggref::mutable_aggdistinct() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Aggref.aggdistinct) - return &_impl_.aggdistinct_; -} -inline const ::pg_query::Node& Aggref::_internal_aggdistinct(int index) const { - return _impl_.aggdistinct_.Get(index); -} -inline const ::pg_query::Node& Aggref::aggdistinct(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Aggref.aggdistinct) - return _internal_aggdistinct(index); -} -inline ::pg_query::Node* Aggref::_internal_add_aggdistinct() { - return _impl_.aggdistinct_.Add(); -} -inline ::pg_query::Node* Aggref::add_aggdistinct() { - ::pg_query::Node* _add = _internal_add_aggdistinct(); - // @@protoc_insertion_point(field_add:pg_query.Aggref.aggdistinct) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Aggref::aggdistinct() const { - // @@protoc_insertion_point(field_list:pg_query.Aggref.aggdistinct) - return _impl_.aggdistinct_; -} - -// .pg_query.Node aggfilter = 12 [json_name = "aggfilter"]; -inline bool Aggref::_internal_has_aggfilter() const { - return this != internal_default_instance() && _impl_.aggfilter_ != nullptr; -} -inline bool Aggref::has_aggfilter() const { - return _internal_has_aggfilter(); -} -inline void Aggref::clear_aggfilter() { - if (GetArenaForAllocation() == nullptr && _impl_.aggfilter_ != nullptr) { - delete _impl_.aggfilter_; - } - _impl_.aggfilter_ = nullptr; -} -inline const ::pg_query::Node& Aggref::_internal_aggfilter() const { - const ::pg_query::Node* p = _impl_.aggfilter_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& Aggref::aggfilter() const { - // @@protoc_insertion_point(field_get:pg_query.Aggref.aggfilter) - return _internal_aggfilter(); -} -inline void Aggref::unsafe_arena_set_allocated_aggfilter( - ::pg_query::Node* aggfilter) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.aggfilter_); - } - _impl_.aggfilter_ = aggfilter; - if (aggfilter) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Aggref.aggfilter) -} -inline ::pg_query::Node* Aggref::release_aggfilter() { - - ::pg_query::Node* temp = _impl_.aggfilter_; - _impl_.aggfilter_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* Aggref::unsafe_arena_release_aggfilter() { - // @@protoc_insertion_point(field_release:pg_query.Aggref.aggfilter) - - ::pg_query::Node* temp = _impl_.aggfilter_; - _impl_.aggfilter_ = nullptr; - return temp; -} -inline ::pg_query::Node* Aggref::_internal_mutable_aggfilter() { - - if (_impl_.aggfilter_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.aggfilter_ = p; - } - return _impl_.aggfilter_; -} -inline ::pg_query::Node* Aggref::mutable_aggfilter() { - ::pg_query::Node* _msg = _internal_mutable_aggfilter(); - // @@protoc_insertion_point(field_mutable:pg_query.Aggref.aggfilter) - return _msg; -} -inline void Aggref::set_allocated_aggfilter(::pg_query::Node* aggfilter) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.aggfilter_; - } - if (aggfilter) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(aggfilter); - if (message_arena != submessage_arena) { - aggfilter = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, aggfilter, submessage_arena); - } - - } else { - - } - _impl_.aggfilter_ = aggfilter; - // @@protoc_insertion_point(field_set_allocated:pg_query.Aggref.aggfilter) -} - -// bool aggstar = 13 [json_name = "aggstar"]; -inline void Aggref::clear_aggstar() { - _impl_.aggstar_ = false; -} -inline bool Aggref::_internal_aggstar() const { - return _impl_.aggstar_; -} -inline bool Aggref::aggstar() const { - // @@protoc_insertion_point(field_get:pg_query.Aggref.aggstar) - return _internal_aggstar(); -} -inline void Aggref::_internal_set_aggstar(bool value) { - - _impl_.aggstar_ = value; -} -inline void Aggref::set_aggstar(bool value) { - _internal_set_aggstar(value); - // @@protoc_insertion_point(field_set:pg_query.Aggref.aggstar) -} - -// bool aggvariadic = 14 [json_name = "aggvariadic"]; -inline void Aggref::clear_aggvariadic() { - _impl_.aggvariadic_ = false; -} -inline bool Aggref::_internal_aggvariadic() const { - return _impl_.aggvariadic_; -} -inline bool Aggref::aggvariadic() const { - // @@protoc_insertion_point(field_get:pg_query.Aggref.aggvariadic) - return _internal_aggvariadic(); -} -inline void Aggref::_internal_set_aggvariadic(bool value) { - - _impl_.aggvariadic_ = value; -} -inline void Aggref::set_aggvariadic(bool value) { - _internal_set_aggvariadic(value); - // @@protoc_insertion_point(field_set:pg_query.Aggref.aggvariadic) -} - -// string aggkind = 15 [json_name = "aggkind"]; -inline void Aggref::clear_aggkind() { - _impl_.aggkind_.ClearToEmpty(); -} -inline const std::string& Aggref::aggkind() const { - // @@protoc_insertion_point(field_get:pg_query.Aggref.aggkind) - return _internal_aggkind(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Aggref::set_aggkind(ArgT0&& arg0, ArgT... args) { - - _impl_.aggkind_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.Aggref.aggkind) -} -inline std::string* Aggref::mutable_aggkind() { - std::string* _s = _internal_mutable_aggkind(); - // @@protoc_insertion_point(field_mutable:pg_query.Aggref.aggkind) - return _s; -} -inline const std::string& Aggref::_internal_aggkind() const { - return _impl_.aggkind_.Get(); -} -inline void Aggref::_internal_set_aggkind(const std::string& value) { - - _impl_.aggkind_.Set(value, GetArenaForAllocation()); -} -inline std::string* Aggref::_internal_mutable_aggkind() { - - return _impl_.aggkind_.Mutable(GetArenaForAllocation()); -} -inline std::string* Aggref::release_aggkind() { - // @@protoc_insertion_point(field_release:pg_query.Aggref.aggkind) - return _impl_.aggkind_.Release(); -} -inline void Aggref::set_allocated_aggkind(std::string* aggkind) { - if (aggkind != nullptr) { - - } else { - - } - _impl_.aggkind_.SetAllocated(aggkind, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.aggkind_.IsDefault()) { - _impl_.aggkind_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.Aggref.aggkind) -} - -// uint32 agglevelsup = 16 [json_name = "agglevelsup"]; -inline void Aggref::clear_agglevelsup() { - _impl_.agglevelsup_ = 0u; -} -inline uint32_t Aggref::_internal_agglevelsup() const { - return _impl_.agglevelsup_; -} -inline uint32_t Aggref::agglevelsup() const { - // @@protoc_insertion_point(field_get:pg_query.Aggref.agglevelsup) - return _internal_agglevelsup(); -} -inline void Aggref::_internal_set_agglevelsup(uint32_t value) { - - _impl_.agglevelsup_ = value; -} -inline void Aggref::set_agglevelsup(uint32_t value) { - _internal_set_agglevelsup(value); - // @@protoc_insertion_point(field_set:pg_query.Aggref.agglevelsup) -} - -// .pg_query.AggSplit aggsplit = 17 [json_name = "aggsplit"]; -inline void Aggref::clear_aggsplit() { - _impl_.aggsplit_ = 0; -} -inline ::pg_query::AggSplit Aggref::_internal_aggsplit() const { - return static_cast< ::pg_query::AggSplit >(_impl_.aggsplit_); -} -inline ::pg_query::AggSplit Aggref::aggsplit() const { - // @@protoc_insertion_point(field_get:pg_query.Aggref.aggsplit) - return _internal_aggsplit(); -} -inline void Aggref::_internal_set_aggsplit(::pg_query::AggSplit value) { - - _impl_.aggsplit_ = value; -} -inline void Aggref::set_aggsplit(::pg_query::AggSplit value) { - _internal_set_aggsplit(value); - // @@protoc_insertion_point(field_set:pg_query.Aggref.aggsplit) -} - -// int32 aggno = 18 [json_name = "aggno"]; -inline void Aggref::clear_aggno() { - _impl_.aggno_ = 0; -} -inline int32_t Aggref::_internal_aggno() const { - return _impl_.aggno_; -} -inline int32_t Aggref::aggno() const { - // @@protoc_insertion_point(field_get:pg_query.Aggref.aggno) - return _internal_aggno(); -} -inline void Aggref::_internal_set_aggno(int32_t value) { - - _impl_.aggno_ = value; -} -inline void Aggref::set_aggno(int32_t value) { - _internal_set_aggno(value); - // @@protoc_insertion_point(field_set:pg_query.Aggref.aggno) -} - -// int32 aggtransno = 19 [json_name = "aggtransno"]; -inline void Aggref::clear_aggtransno() { - _impl_.aggtransno_ = 0; -} -inline int32_t Aggref::_internal_aggtransno() const { - return _impl_.aggtransno_; -} -inline int32_t Aggref::aggtransno() const { - // @@protoc_insertion_point(field_get:pg_query.Aggref.aggtransno) - return _internal_aggtransno(); -} -inline void Aggref::_internal_set_aggtransno(int32_t value) { - - _impl_.aggtransno_ = value; -} -inline void Aggref::set_aggtransno(int32_t value) { - _internal_set_aggtransno(value); - // @@protoc_insertion_point(field_set:pg_query.Aggref.aggtransno) -} - -// int32 location = 20 [json_name = "location"]; -inline void Aggref::clear_location() { - _impl_.location_ = 0; -} -inline int32_t Aggref::_internal_location() const { - return _impl_.location_; -} -inline int32_t Aggref::location() const { - // @@protoc_insertion_point(field_get:pg_query.Aggref.location) - return _internal_location(); -} -inline void Aggref::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void Aggref::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.Aggref.location) -} - -// ------------------------------------------------------------------- - -// GroupingFunc - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool GroupingFunc::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool GroupingFunc::has_xpr() const { - return _internal_has_xpr(); -} -inline void GroupingFunc::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& GroupingFunc::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& GroupingFunc::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.GroupingFunc.xpr) - return _internal_xpr(); -} -inline void GroupingFunc::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.GroupingFunc.xpr) -} -inline ::pg_query::Node* GroupingFunc::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* GroupingFunc::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.GroupingFunc.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* GroupingFunc::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* GroupingFunc::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.GroupingFunc.xpr) - return _msg; -} -inline void GroupingFunc::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.GroupingFunc.xpr) -} - -// repeated .pg_query.Node args = 2 [json_name = "args"]; -inline int GroupingFunc::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int GroupingFunc::args_size() const { - return _internal_args_size(); -} -inline void GroupingFunc::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* GroupingFunc::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.GroupingFunc.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -GroupingFunc::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.GroupingFunc.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& GroupingFunc::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& GroupingFunc::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.GroupingFunc.args) - return _internal_args(index); -} -inline ::pg_query::Node* GroupingFunc::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* GroupingFunc::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.GroupingFunc.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -GroupingFunc::args() const { - // @@protoc_insertion_point(field_list:pg_query.GroupingFunc.args) - return _impl_.args_; -} - -// repeated .pg_query.Node refs = 3 [json_name = "refs"]; -inline int GroupingFunc::_internal_refs_size() const { - return _impl_.refs_.size(); -} -inline int GroupingFunc::refs_size() const { - return _internal_refs_size(); -} -inline void GroupingFunc::clear_refs() { - _impl_.refs_.Clear(); -} -inline ::pg_query::Node* GroupingFunc::mutable_refs(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.GroupingFunc.refs) - return _impl_.refs_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -GroupingFunc::mutable_refs() { - // @@protoc_insertion_point(field_mutable_list:pg_query.GroupingFunc.refs) - return &_impl_.refs_; -} -inline const ::pg_query::Node& GroupingFunc::_internal_refs(int index) const { - return _impl_.refs_.Get(index); -} -inline const ::pg_query::Node& GroupingFunc::refs(int index) const { - // @@protoc_insertion_point(field_get:pg_query.GroupingFunc.refs) - return _internal_refs(index); -} -inline ::pg_query::Node* GroupingFunc::_internal_add_refs() { - return _impl_.refs_.Add(); -} -inline ::pg_query::Node* GroupingFunc::add_refs() { - ::pg_query::Node* _add = _internal_add_refs(); - // @@protoc_insertion_point(field_add:pg_query.GroupingFunc.refs) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -GroupingFunc::refs() const { - // @@protoc_insertion_point(field_list:pg_query.GroupingFunc.refs) - return _impl_.refs_; -} - -// repeated .pg_query.Node cols = 4 [json_name = "cols"]; -inline int GroupingFunc::_internal_cols_size() const { - return _impl_.cols_.size(); -} -inline int GroupingFunc::cols_size() const { - return _internal_cols_size(); -} -inline void GroupingFunc::clear_cols() { - _impl_.cols_.Clear(); -} -inline ::pg_query::Node* GroupingFunc::mutable_cols(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.GroupingFunc.cols) - return _impl_.cols_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -GroupingFunc::mutable_cols() { - // @@protoc_insertion_point(field_mutable_list:pg_query.GroupingFunc.cols) - return &_impl_.cols_; -} -inline const ::pg_query::Node& GroupingFunc::_internal_cols(int index) const { - return _impl_.cols_.Get(index); -} -inline const ::pg_query::Node& GroupingFunc::cols(int index) const { - // @@protoc_insertion_point(field_get:pg_query.GroupingFunc.cols) - return _internal_cols(index); -} -inline ::pg_query::Node* GroupingFunc::_internal_add_cols() { - return _impl_.cols_.Add(); -} -inline ::pg_query::Node* GroupingFunc::add_cols() { - ::pg_query::Node* _add = _internal_add_cols(); - // @@protoc_insertion_point(field_add:pg_query.GroupingFunc.cols) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -GroupingFunc::cols() const { - // @@protoc_insertion_point(field_list:pg_query.GroupingFunc.cols) - return _impl_.cols_; -} - -// uint32 agglevelsup = 5 [json_name = "agglevelsup"]; -inline void GroupingFunc::clear_agglevelsup() { - _impl_.agglevelsup_ = 0u; -} -inline uint32_t GroupingFunc::_internal_agglevelsup() const { - return _impl_.agglevelsup_; -} -inline uint32_t GroupingFunc::agglevelsup() const { - // @@protoc_insertion_point(field_get:pg_query.GroupingFunc.agglevelsup) - return _internal_agglevelsup(); -} -inline void GroupingFunc::_internal_set_agglevelsup(uint32_t value) { - - _impl_.agglevelsup_ = value; -} -inline void GroupingFunc::set_agglevelsup(uint32_t value) { - _internal_set_agglevelsup(value); - // @@protoc_insertion_point(field_set:pg_query.GroupingFunc.agglevelsup) -} - -// int32 location = 6 [json_name = "location"]; -inline void GroupingFunc::clear_location() { - _impl_.location_ = 0; -} -inline int32_t GroupingFunc::_internal_location() const { - return _impl_.location_; -} -inline int32_t GroupingFunc::location() const { - // @@protoc_insertion_point(field_get:pg_query.GroupingFunc.location) - return _internal_location(); -} -inline void GroupingFunc::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void GroupingFunc::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.GroupingFunc.location) -} - -// ------------------------------------------------------------------- - -// WindowFunc - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool WindowFunc::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool WindowFunc::has_xpr() const { - return _internal_has_xpr(); -} -inline void WindowFunc::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& WindowFunc::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& WindowFunc::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.WindowFunc.xpr) - return _internal_xpr(); -} -inline void WindowFunc::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.WindowFunc.xpr) -} -inline ::pg_query::Node* WindowFunc::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* WindowFunc::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.WindowFunc.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* WindowFunc::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* WindowFunc::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.WindowFunc.xpr) - return _msg; -} -inline void WindowFunc::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.WindowFunc.xpr) -} - -// uint32 winfnoid = 2 [json_name = "winfnoid"]; -inline void WindowFunc::clear_winfnoid() { - _impl_.winfnoid_ = 0u; -} -inline uint32_t WindowFunc::_internal_winfnoid() const { - return _impl_.winfnoid_; -} -inline uint32_t WindowFunc::winfnoid() const { - // @@protoc_insertion_point(field_get:pg_query.WindowFunc.winfnoid) - return _internal_winfnoid(); -} -inline void WindowFunc::_internal_set_winfnoid(uint32_t value) { - - _impl_.winfnoid_ = value; -} -inline void WindowFunc::set_winfnoid(uint32_t value) { - _internal_set_winfnoid(value); - // @@protoc_insertion_point(field_set:pg_query.WindowFunc.winfnoid) -} - -// uint32 wintype = 3 [json_name = "wintype"]; -inline void WindowFunc::clear_wintype() { - _impl_.wintype_ = 0u; -} -inline uint32_t WindowFunc::_internal_wintype() const { - return _impl_.wintype_; -} -inline uint32_t WindowFunc::wintype() const { - // @@protoc_insertion_point(field_get:pg_query.WindowFunc.wintype) - return _internal_wintype(); -} -inline void WindowFunc::_internal_set_wintype(uint32_t value) { - - _impl_.wintype_ = value; -} -inline void WindowFunc::set_wintype(uint32_t value) { - _internal_set_wintype(value); - // @@protoc_insertion_point(field_set:pg_query.WindowFunc.wintype) -} - -// uint32 wincollid = 4 [json_name = "wincollid"]; -inline void WindowFunc::clear_wincollid() { - _impl_.wincollid_ = 0u; -} -inline uint32_t WindowFunc::_internal_wincollid() const { - return _impl_.wincollid_; -} -inline uint32_t WindowFunc::wincollid() const { - // @@protoc_insertion_point(field_get:pg_query.WindowFunc.wincollid) - return _internal_wincollid(); -} -inline void WindowFunc::_internal_set_wincollid(uint32_t value) { - - _impl_.wincollid_ = value; -} -inline void WindowFunc::set_wincollid(uint32_t value) { - _internal_set_wincollid(value); - // @@protoc_insertion_point(field_set:pg_query.WindowFunc.wincollid) -} - -// uint32 inputcollid = 5 [json_name = "inputcollid"]; -inline void WindowFunc::clear_inputcollid() { - _impl_.inputcollid_ = 0u; -} -inline uint32_t WindowFunc::_internal_inputcollid() const { - return _impl_.inputcollid_; -} -inline uint32_t WindowFunc::inputcollid() const { - // @@protoc_insertion_point(field_get:pg_query.WindowFunc.inputcollid) - return _internal_inputcollid(); -} -inline void WindowFunc::_internal_set_inputcollid(uint32_t value) { - - _impl_.inputcollid_ = value; -} -inline void WindowFunc::set_inputcollid(uint32_t value) { - _internal_set_inputcollid(value); - // @@protoc_insertion_point(field_set:pg_query.WindowFunc.inputcollid) -} - -// repeated .pg_query.Node args = 6 [json_name = "args"]; -inline int WindowFunc::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int WindowFunc::args_size() const { - return _internal_args_size(); -} -inline void WindowFunc::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* WindowFunc::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.WindowFunc.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -WindowFunc::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.WindowFunc.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& WindowFunc::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& WindowFunc::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.WindowFunc.args) - return _internal_args(index); -} -inline ::pg_query::Node* WindowFunc::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* WindowFunc::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.WindowFunc.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -WindowFunc::args() const { - // @@protoc_insertion_point(field_list:pg_query.WindowFunc.args) - return _impl_.args_; -} - -// .pg_query.Node aggfilter = 7 [json_name = "aggfilter"]; -inline bool WindowFunc::_internal_has_aggfilter() const { - return this != internal_default_instance() && _impl_.aggfilter_ != nullptr; -} -inline bool WindowFunc::has_aggfilter() const { - return _internal_has_aggfilter(); -} -inline void WindowFunc::clear_aggfilter() { - if (GetArenaForAllocation() == nullptr && _impl_.aggfilter_ != nullptr) { - delete _impl_.aggfilter_; - } - _impl_.aggfilter_ = nullptr; -} -inline const ::pg_query::Node& WindowFunc::_internal_aggfilter() const { - const ::pg_query::Node* p = _impl_.aggfilter_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& WindowFunc::aggfilter() const { - // @@protoc_insertion_point(field_get:pg_query.WindowFunc.aggfilter) - return _internal_aggfilter(); -} -inline void WindowFunc::unsafe_arena_set_allocated_aggfilter( - ::pg_query::Node* aggfilter) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.aggfilter_); - } - _impl_.aggfilter_ = aggfilter; - if (aggfilter) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.WindowFunc.aggfilter) -} -inline ::pg_query::Node* WindowFunc::release_aggfilter() { - - ::pg_query::Node* temp = _impl_.aggfilter_; - _impl_.aggfilter_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* WindowFunc::unsafe_arena_release_aggfilter() { - // @@protoc_insertion_point(field_release:pg_query.WindowFunc.aggfilter) - - ::pg_query::Node* temp = _impl_.aggfilter_; - _impl_.aggfilter_ = nullptr; - return temp; -} -inline ::pg_query::Node* WindowFunc::_internal_mutable_aggfilter() { - - if (_impl_.aggfilter_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.aggfilter_ = p; - } - return _impl_.aggfilter_; -} -inline ::pg_query::Node* WindowFunc::mutable_aggfilter() { - ::pg_query::Node* _msg = _internal_mutable_aggfilter(); - // @@protoc_insertion_point(field_mutable:pg_query.WindowFunc.aggfilter) - return _msg; -} -inline void WindowFunc::set_allocated_aggfilter(::pg_query::Node* aggfilter) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.aggfilter_; - } - if (aggfilter) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(aggfilter); - if (message_arena != submessage_arena) { - aggfilter = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, aggfilter, submessage_arena); - } - - } else { - - } - _impl_.aggfilter_ = aggfilter; - // @@protoc_insertion_point(field_set_allocated:pg_query.WindowFunc.aggfilter) -} - -// uint32 winref = 8 [json_name = "winref"]; -inline void WindowFunc::clear_winref() { - _impl_.winref_ = 0u; -} -inline uint32_t WindowFunc::_internal_winref() const { - return _impl_.winref_; -} -inline uint32_t WindowFunc::winref() const { - // @@protoc_insertion_point(field_get:pg_query.WindowFunc.winref) - return _internal_winref(); -} -inline void WindowFunc::_internal_set_winref(uint32_t value) { - - _impl_.winref_ = value; -} -inline void WindowFunc::set_winref(uint32_t value) { - _internal_set_winref(value); - // @@protoc_insertion_point(field_set:pg_query.WindowFunc.winref) -} - -// bool winstar = 9 [json_name = "winstar"]; -inline void WindowFunc::clear_winstar() { - _impl_.winstar_ = false; -} -inline bool WindowFunc::_internal_winstar() const { - return _impl_.winstar_; -} -inline bool WindowFunc::winstar() const { - // @@protoc_insertion_point(field_get:pg_query.WindowFunc.winstar) - return _internal_winstar(); -} -inline void WindowFunc::_internal_set_winstar(bool value) { - - _impl_.winstar_ = value; -} -inline void WindowFunc::set_winstar(bool value) { - _internal_set_winstar(value); - // @@protoc_insertion_point(field_set:pg_query.WindowFunc.winstar) -} - -// bool winagg = 10 [json_name = "winagg"]; -inline void WindowFunc::clear_winagg() { - _impl_.winagg_ = false; -} -inline bool WindowFunc::_internal_winagg() const { - return _impl_.winagg_; -} -inline bool WindowFunc::winagg() const { - // @@protoc_insertion_point(field_get:pg_query.WindowFunc.winagg) - return _internal_winagg(); -} -inline void WindowFunc::_internal_set_winagg(bool value) { - - _impl_.winagg_ = value; -} -inline void WindowFunc::set_winagg(bool value) { - _internal_set_winagg(value); - // @@protoc_insertion_point(field_set:pg_query.WindowFunc.winagg) -} - -// int32 location = 11 [json_name = "location"]; -inline void WindowFunc::clear_location() { - _impl_.location_ = 0; -} -inline int32_t WindowFunc::_internal_location() const { - return _impl_.location_; -} -inline int32_t WindowFunc::location() const { - // @@protoc_insertion_point(field_get:pg_query.WindowFunc.location) - return _internal_location(); -} -inline void WindowFunc::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void WindowFunc::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.WindowFunc.location) -} - -// ------------------------------------------------------------------- - -// SubscriptingRef - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool SubscriptingRef::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool SubscriptingRef::has_xpr() const { - return _internal_has_xpr(); -} -inline void SubscriptingRef::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& SubscriptingRef::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& SubscriptingRef::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.SubscriptingRef.xpr) - return _internal_xpr(); -} -inline void SubscriptingRef::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SubscriptingRef.xpr) -} -inline ::pg_query::Node* SubscriptingRef::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* SubscriptingRef::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.SubscriptingRef.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* SubscriptingRef::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* SubscriptingRef::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.SubscriptingRef.xpr) - return _msg; -} -inline void SubscriptingRef::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.SubscriptingRef.xpr) -} - -// uint32 refcontainertype = 2 [json_name = "refcontainertype"]; -inline void SubscriptingRef::clear_refcontainertype() { - _impl_.refcontainertype_ = 0u; -} -inline uint32_t SubscriptingRef::_internal_refcontainertype() const { - return _impl_.refcontainertype_; -} -inline uint32_t SubscriptingRef::refcontainertype() const { - // @@protoc_insertion_point(field_get:pg_query.SubscriptingRef.refcontainertype) - return _internal_refcontainertype(); -} -inline void SubscriptingRef::_internal_set_refcontainertype(uint32_t value) { - - _impl_.refcontainertype_ = value; -} -inline void SubscriptingRef::set_refcontainertype(uint32_t value) { - _internal_set_refcontainertype(value); - // @@protoc_insertion_point(field_set:pg_query.SubscriptingRef.refcontainertype) -} - -// uint32 refelemtype = 3 [json_name = "refelemtype"]; -inline void SubscriptingRef::clear_refelemtype() { - _impl_.refelemtype_ = 0u; -} -inline uint32_t SubscriptingRef::_internal_refelemtype() const { - return _impl_.refelemtype_; -} -inline uint32_t SubscriptingRef::refelemtype() const { - // @@protoc_insertion_point(field_get:pg_query.SubscriptingRef.refelemtype) - return _internal_refelemtype(); -} -inline void SubscriptingRef::_internal_set_refelemtype(uint32_t value) { - - _impl_.refelemtype_ = value; -} -inline void SubscriptingRef::set_refelemtype(uint32_t value) { - _internal_set_refelemtype(value); - // @@protoc_insertion_point(field_set:pg_query.SubscriptingRef.refelemtype) -} - -// uint32 refrestype = 4 [json_name = "refrestype"]; -inline void SubscriptingRef::clear_refrestype() { - _impl_.refrestype_ = 0u; -} -inline uint32_t SubscriptingRef::_internal_refrestype() const { - return _impl_.refrestype_; -} -inline uint32_t SubscriptingRef::refrestype() const { - // @@protoc_insertion_point(field_get:pg_query.SubscriptingRef.refrestype) - return _internal_refrestype(); -} -inline void SubscriptingRef::_internal_set_refrestype(uint32_t value) { - - _impl_.refrestype_ = value; -} -inline void SubscriptingRef::set_refrestype(uint32_t value) { - _internal_set_refrestype(value); - // @@protoc_insertion_point(field_set:pg_query.SubscriptingRef.refrestype) -} - -// int32 reftypmod = 5 [json_name = "reftypmod"]; -inline void SubscriptingRef::clear_reftypmod() { - _impl_.reftypmod_ = 0; -} -inline int32_t SubscriptingRef::_internal_reftypmod() const { - return _impl_.reftypmod_; -} -inline int32_t SubscriptingRef::reftypmod() const { - // @@protoc_insertion_point(field_get:pg_query.SubscriptingRef.reftypmod) - return _internal_reftypmod(); -} -inline void SubscriptingRef::_internal_set_reftypmod(int32_t value) { - - _impl_.reftypmod_ = value; -} -inline void SubscriptingRef::set_reftypmod(int32_t value) { - _internal_set_reftypmod(value); - // @@protoc_insertion_point(field_set:pg_query.SubscriptingRef.reftypmod) -} - -// uint32 refcollid = 6 [json_name = "refcollid"]; -inline void SubscriptingRef::clear_refcollid() { - _impl_.refcollid_ = 0u; -} -inline uint32_t SubscriptingRef::_internal_refcollid() const { - return _impl_.refcollid_; -} -inline uint32_t SubscriptingRef::refcollid() const { - // @@protoc_insertion_point(field_get:pg_query.SubscriptingRef.refcollid) - return _internal_refcollid(); -} -inline void SubscriptingRef::_internal_set_refcollid(uint32_t value) { - - _impl_.refcollid_ = value; -} -inline void SubscriptingRef::set_refcollid(uint32_t value) { - _internal_set_refcollid(value); - // @@protoc_insertion_point(field_set:pg_query.SubscriptingRef.refcollid) -} - -// repeated .pg_query.Node refupperindexpr = 7 [json_name = "refupperindexpr"]; -inline int SubscriptingRef::_internal_refupperindexpr_size() const { - return _impl_.refupperindexpr_.size(); -} -inline int SubscriptingRef::refupperindexpr_size() const { - return _internal_refupperindexpr_size(); -} -inline void SubscriptingRef::clear_refupperindexpr() { - _impl_.refupperindexpr_.Clear(); -} -inline ::pg_query::Node* SubscriptingRef::mutable_refupperindexpr(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.SubscriptingRef.refupperindexpr) - return _impl_.refupperindexpr_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -SubscriptingRef::mutable_refupperindexpr() { - // @@protoc_insertion_point(field_mutable_list:pg_query.SubscriptingRef.refupperindexpr) - return &_impl_.refupperindexpr_; -} -inline const ::pg_query::Node& SubscriptingRef::_internal_refupperindexpr(int index) const { - return _impl_.refupperindexpr_.Get(index); -} -inline const ::pg_query::Node& SubscriptingRef::refupperindexpr(int index) const { - // @@protoc_insertion_point(field_get:pg_query.SubscriptingRef.refupperindexpr) - return _internal_refupperindexpr(index); -} -inline ::pg_query::Node* SubscriptingRef::_internal_add_refupperindexpr() { - return _impl_.refupperindexpr_.Add(); -} -inline ::pg_query::Node* SubscriptingRef::add_refupperindexpr() { - ::pg_query::Node* _add = _internal_add_refupperindexpr(); - // @@protoc_insertion_point(field_add:pg_query.SubscriptingRef.refupperindexpr) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -SubscriptingRef::refupperindexpr() const { - // @@protoc_insertion_point(field_list:pg_query.SubscriptingRef.refupperindexpr) - return _impl_.refupperindexpr_; -} - -// repeated .pg_query.Node reflowerindexpr = 8 [json_name = "reflowerindexpr"]; -inline int SubscriptingRef::_internal_reflowerindexpr_size() const { - return _impl_.reflowerindexpr_.size(); -} -inline int SubscriptingRef::reflowerindexpr_size() const { - return _internal_reflowerindexpr_size(); -} -inline void SubscriptingRef::clear_reflowerindexpr() { - _impl_.reflowerindexpr_.Clear(); -} -inline ::pg_query::Node* SubscriptingRef::mutable_reflowerindexpr(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.SubscriptingRef.reflowerindexpr) - return _impl_.reflowerindexpr_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -SubscriptingRef::mutable_reflowerindexpr() { - // @@protoc_insertion_point(field_mutable_list:pg_query.SubscriptingRef.reflowerindexpr) - return &_impl_.reflowerindexpr_; -} -inline const ::pg_query::Node& SubscriptingRef::_internal_reflowerindexpr(int index) const { - return _impl_.reflowerindexpr_.Get(index); -} -inline const ::pg_query::Node& SubscriptingRef::reflowerindexpr(int index) const { - // @@protoc_insertion_point(field_get:pg_query.SubscriptingRef.reflowerindexpr) - return _internal_reflowerindexpr(index); -} -inline ::pg_query::Node* SubscriptingRef::_internal_add_reflowerindexpr() { - return _impl_.reflowerindexpr_.Add(); -} -inline ::pg_query::Node* SubscriptingRef::add_reflowerindexpr() { - ::pg_query::Node* _add = _internal_add_reflowerindexpr(); - // @@protoc_insertion_point(field_add:pg_query.SubscriptingRef.reflowerindexpr) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -SubscriptingRef::reflowerindexpr() const { - // @@protoc_insertion_point(field_list:pg_query.SubscriptingRef.reflowerindexpr) - return _impl_.reflowerindexpr_; -} - -// .pg_query.Node refexpr = 9 [json_name = "refexpr"]; -inline bool SubscriptingRef::_internal_has_refexpr() const { - return this != internal_default_instance() && _impl_.refexpr_ != nullptr; -} -inline bool SubscriptingRef::has_refexpr() const { - return _internal_has_refexpr(); -} -inline void SubscriptingRef::clear_refexpr() { - if (GetArenaForAllocation() == nullptr && _impl_.refexpr_ != nullptr) { - delete _impl_.refexpr_; - } - _impl_.refexpr_ = nullptr; -} -inline const ::pg_query::Node& SubscriptingRef::_internal_refexpr() const { - const ::pg_query::Node* p = _impl_.refexpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& SubscriptingRef::refexpr() const { - // @@protoc_insertion_point(field_get:pg_query.SubscriptingRef.refexpr) - return _internal_refexpr(); -} -inline void SubscriptingRef::unsafe_arena_set_allocated_refexpr( - ::pg_query::Node* refexpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.refexpr_); - } - _impl_.refexpr_ = refexpr; - if (refexpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SubscriptingRef.refexpr) -} -inline ::pg_query::Node* SubscriptingRef::release_refexpr() { - - ::pg_query::Node* temp = _impl_.refexpr_; - _impl_.refexpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* SubscriptingRef::unsafe_arena_release_refexpr() { - // @@protoc_insertion_point(field_release:pg_query.SubscriptingRef.refexpr) - - ::pg_query::Node* temp = _impl_.refexpr_; - _impl_.refexpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* SubscriptingRef::_internal_mutable_refexpr() { - - if (_impl_.refexpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.refexpr_ = p; - } - return _impl_.refexpr_; -} -inline ::pg_query::Node* SubscriptingRef::mutable_refexpr() { - ::pg_query::Node* _msg = _internal_mutable_refexpr(); - // @@protoc_insertion_point(field_mutable:pg_query.SubscriptingRef.refexpr) - return _msg; -} -inline void SubscriptingRef::set_allocated_refexpr(::pg_query::Node* refexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.refexpr_; - } - if (refexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(refexpr); - if (message_arena != submessage_arena) { - refexpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, refexpr, submessage_arena); - } - - } else { - - } - _impl_.refexpr_ = refexpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.SubscriptingRef.refexpr) -} - -// .pg_query.Node refassgnexpr = 10 [json_name = "refassgnexpr"]; -inline bool SubscriptingRef::_internal_has_refassgnexpr() const { - return this != internal_default_instance() && _impl_.refassgnexpr_ != nullptr; -} -inline bool SubscriptingRef::has_refassgnexpr() const { - return _internal_has_refassgnexpr(); -} -inline void SubscriptingRef::clear_refassgnexpr() { - if (GetArenaForAllocation() == nullptr && _impl_.refassgnexpr_ != nullptr) { - delete _impl_.refassgnexpr_; - } - _impl_.refassgnexpr_ = nullptr; -} -inline const ::pg_query::Node& SubscriptingRef::_internal_refassgnexpr() const { - const ::pg_query::Node* p = _impl_.refassgnexpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& SubscriptingRef::refassgnexpr() const { - // @@protoc_insertion_point(field_get:pg_query.SubscriptingRef.refassgnexpr) - return _internal_refassgnexpr(); -} -inline void SubscriptingRef::unsafe_arena_set_allocated_refassgnexpr( - ::pg_query::Node* refassgnexpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.refassgnexpr_); - } - _impl_.refassgnexpr_ = refassgnexpr; - if (refassgnexpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SubscriptingRef.refassgnexpr) -} -inline ::pg_query::Node* SubscriptingRef::release_refassgnexpr() { - - ::pg_query::Node* temp = _impl_.refassgnexpr_; - _impl_.refassgnexpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* SubscriptingRef::unsafe_arena_release_refassgnexpr() { - // @@protoc_insertion_point(field_release:pg_query.SubscriptingRef.refassgnexpr) - - ::pg_query::Node* temp = _impl_.refassgnexpr_; - _impl_.refassgnexpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* SubscriptingRef::_internal_mutable_refassgnexpr() { - - if (_impl_.refassgnexpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.refassgnexpr_ = p; - } - return _impl_.refassgnexpr_; -} -inline ::pg_query::Node* SubscriptingRef::mutable_refassgnexpr() { - ::pg_query::Node* _msg = _internal_mutable_refassgnexpr(); - // @@protoc_insertion_point(field_mutable:pg_query.SubscriptingRef.refassgnexpr) - return _msg; -} -inline void SubscriptingRef::set_allocated_refassgnexpr(::pg_query::Node* refassgnexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.refassgnexpr_; - } - if (refassgnexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(refassgnexpr); - if (message_arena != submessage_arena) { - refassgnexpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, refassgnexpr, submessage_arena); - } - - } else { - - } - _impl_.refassgnexpr_ = refassgnexpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.SubscriptingRef.refassgnexpr) -} - -// ------------------------------------------------------------------- - -// FuncExpr - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool FuncExpr::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool FuncExpr::has_xpr() const { - return _internal_has_xpr(); -} -inline void FuncExpr::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& FuncExpr::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& FuncExpr::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.FuncExpr.xpr) - return _internal_xpr(); -} -inline void FuncExpr::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.FuncExpr.xpr) -} -inline ::pg_query::Node* FuncExpr::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* FuncExpr::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.FuncExpr.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* FuncExpr::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* FuncExpr::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.FuncExpr.xpr) - return _msg; -} -inline void FuncExpr::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.FuncExpr.xpr) -} - -// uint32 funcid = 2 [json_name = "funcid"]; -inline void FuncExpr::clear_funcid() { - _impl_.funcid_ = 0u; -} -inline uint32_t FuncExpr::_internal_funcid() const { - return _impl_.funcid_; -} -inline uint32_t FuncExpr::funcid() const { - // @@protoc_insertion_point(field_get:pg_query.FuncExpr.funcid) - return _internal_funcid(); -} -inline void FuncExpr::_internal_set_funcid(uint32_t value) { - - _impl_.funcid_ = value; -} -inline void FuncExpr::set_funcid(uint32_t value) { - _internal_set_funcid(value); - // @@protoc_insertion_point(field_set:pg_query.FuncExpr.funcid) -} - -// uint32 funcresulttype = 3 [json_name = "funcresulttype"]; -inline void FuncExpr::clear_funcresulttype() { - _impl_.funcresulttype_ = 0u; -} -inline uint32_t FuncExpr::_internal_funcresulttype() const { - return _impl_.funcresulttype_; -} -inline uint32_t FuncExpr::funcresulttype() const { - // @@protoc_insertion_point(field_get:pg_query.FuncExpr.funcresulttype) - return _internal_funcresulttype(); -} -inline void FuncExpr::_internal_set_funcresulttype(uint32_t value) { - - _impl_.funcresulttype_ = value; -} -inline void FuncExpr::set_funcresulttype(uint32_t value) { - _internal_set_funcresulttype(value); - // @@protoc_insertion_point(field_set:pg_query.FuncExpr.funcresulttype) -} - -// bool funcretset = 4 [json_name = "funcretset"]; -inline void FuncExpr::clear_funcretset() { - _impl_.funcretset_ = false; -} -inline bool FuncExpr::_internal_funcretset() const { - return _impl_.funcretset_; -} -inline bool FuncExpr::funcretset() const { - // @@protoc_insertion_point(field_get:pg_query.FuncExpr.funcretset) - return _internal_funcretset(); -} -inline void FuncExpr::_internal_set_funcretset(bool value) { - - _impl_.funcretset_ = value; -} -inline void FuncExpr::set_funcretset(bool value) { - _internal_set_funcretset(value); - // @@protoc_insertion_point(field_set:pg_query.FuncExpr.funcretset) -} - -// bool funcvariadic = 5 [json_name = "funcvariadic"]; -inline void FuncExpr::clear_funcvariadic() { - _impl_.funcvariadic_ = false; -} -inline bool FuncExpr::_internal_funcvariadic() const { - return _impl_.funcvariadic_; -} -inline bool FuncExpr::funcvariadic() const { - // @@protoc_insertion_point(field_get:pg_query.FuncExpr.funcvariadic) - return _internal_funcvariadic(); -} -inline void FuncExpr::_internal_set_funcvariadic(bool value) { - - _impl_.funcvariadic_ = value; -} -inline void FuncExpr::set_funcvariadic(bool value) { - _internal_set_funcvariadic(value); - // @@protoc_insertion_point(field_set:pg_query.FuncExpr.funcvariadic) -} - -// .pg_query.CoercionForm funcformat = 6 [json_name = "funcformat"]; -inline void FuncExpr::clear_funcformat() { - _impl_.funcformat_ = 0; -} -inline ::pg_query::CoercionForm FuncExpr::_internal_funcformat() const { - return static_cast< ::pg_query::CoercionForm >(_impl_.funcformat_); -} -inline ::pg_query::CoercionForm FuncExpr::funcformat() const { - // @@protoc_insertion_point(field_get:pg_query.FuncExpr.funcformat) - return _internal_funcformat(); -} -inline void FuncExpr::_internal_set_funcformat(::pg_query::CoercionForm value) { - - _impl_.funcformat_ = value; -} -inline void FuncExpr::set_funcformat(::pg_query::CoercionForm value) { - _internal_set_funcformat(value); - // @@protoc_insertion_point(field_set:pg_query.FuncExpr.funcformat) -} - -// uint32 funccollid = 7 [json_name = "funccollid"]; -inline void FuncExpr::clear_funccollid() { - _impl_.funccollid_ = 0u; -} -inline uint32_t FuncExpr::_internal_funccollid() const { - return _impl_.funccollid_; -} -inline uint32_t FuncExpr::funccollid() const { - // @@protoc_insertion_point(field_get:pg_query.FuncExpr.funccollid) - return _internal_funccollid(); -} -inline void FuncExpr::_internal_set_funccollid(uint32_t value) { - - _impl_.funccollid_ = value; -} -inline void FuncExpr::set_funccollid(uint32_t value) { - _internal_set_funccollid(value); - // @@protoc_insertion_point(field_set:pg_query.FuncExpr.funccollid) -} - -// uint32 inputcollid = 8 [json_name = "inputcollid"]; -inline void FuncExpr::clear_inputcollid() { - _impl_.inputcollid_ = 0u; -} -inline uint32_t FuncExpr::_internal_inputcollid() const { - return _impl_.inputcollid_; -} -inline uint32_t FuncExpr::inputcollid() const { - // @@protoc_insertion_point(field_get:pg_query.FuncExpr.inputcollid) - return _internal_inputcollid(); -} -inline void FuncExpr::_internal_set_inputcollid(uint32_t value) { - - _impl_.inputcollid_ = value; -} -inline void FuncExpr::set_inputcollid(uint32_t value) { - _internal_set_inputcollid(value); - // @@protoc_insertion_point(field_set:pg_query.FuncExpr.inputcollid) -} - -// repeated .pg_query.Node args = 9 [json_name = "args"]; -inline int FuncExpr::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int FuncExpr::args_size() const { - return _internal_args_size(); -} -inline void FuncExpr::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* FuncExpr::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.FuncExpr.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -FuncExpr::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.FuncExpr.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& FuncExpr::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& FuncExpr::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.FuncExpr.args) - return _internal_args(index); -} -inline ::pg_query::Node* FuncExpr::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* FuncExpr::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.FuncExpr.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -FuncExpr::args() const { - // @@protoc_insertion_point(field_list:pg_query.FuncExpr.args) - return _impl_.args_; -} - -// int32 location = 10 [json_name = "location"]; -inline void FuncExpr::clear_location() { - _impl_.location_ = 0; -} -inline int32_t FuncExpr::_internal_location() const { - return _impl_.location_; -} -inline int32_t FuncExpr::location() const { - // @@protoc_insertion_point(field_get:pg_query.FuncExpr.location) - return _internal_location(); -} -inline void FuncExpr::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void FuncExpr::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.FuncExpr.location) -} - -// ------------------------------------------------------------------- - -// NamedArgExpr - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool NamedArgExpr::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool NamedArgExpr::has_xpr() const { - return _internal_has_xpr(); -} -inline void NamedArgExpr::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& NamedArgExpr::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& NamedArgExpr::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.NamedArgExpr.xpr) - return _internal_xpr(); -} -inline void NamedArgExpr::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.NamedArgExpr.xpr) -} -inline ::pg_query::Node* NamedArgExpr::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* NamedArgExpr::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.NamedArgExpr.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* NamedArgExpr::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* NamedArgExpr::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.NamedArgExpr.xpr) - return _msg; -} -inline void NamedArgExpr::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.NamedArgExpr.xpr) -} - -// .pg_query.Node arg = 2 [json_name = "arg"]; -inline bool NamedArgExpr::_internal_has_arg() const { - return this != internal_default_instance() && _impl_.arg_ != nullptr; -} -inline bool NamedArgExpr::has_arg() const { - return _internal_has_arg(); -} -inline void NamedArgExpr::clear_arg() { - if (GetArenaForAllocation() == nullptr && _impl_.arg_ != nullptr) { - delete _impl_.arg_; - } - _impl_.arg_ = nullptr; -} -inline const ::pg_query::Node& NamedArgExpr::_internal_arg() const { - const ::pg_query::Node* p = _impl_.arg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& NamedArgExpr::arg() const { - // @@protoc_insertion_point(field_get:pg_query.NamedArgExpr.arg) - return _internal_arg(); -} -inline void NamedArgExpr::unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arg_); - } - _impl_.arg_ = arg; - if (arg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.NamedArgExpr.arg) -} -inline ::pg_query::Node* NamedArgExpr::release_arg() { - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* NamedArgExpr::unsafe_arena_release_arg() { - // @@protoc_insertion_point(field_release:pg_query.NamedArgExpr.arg) - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; - return temp; -} -inline ::pg_query::Node* NamedArgExpr::_internal_mutable_arg() { - - if (_impl_.arg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.arg_ = p; - } - return _impl_.arg_; -} -inline ::pg_query::Node* NamedArgExpr::mutable_arg() { - ::pg_query::Node* _msg = _internal_mutable_arg(); - // @@protoc_insertion_point(field_mutable:pg_query.NamedArgExpr.arg) - return _msg; -} -inline void NamedArgExpr::set_allocated_arg(::pg_query::Node* arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.arg_; - } - if (arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(arg); - if (message_arena != submessage_arena) { - arg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, arg, submessage_arena); - } - - } else { - - } - _impl_.arg_ = arg; - // @@protoc_insertion_point(field_set_allocated:pg_query.NamedArgExpr.arg) -} - -// string name = 3 [json_name = "name"]; -inline void NamedArgExpr::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& NamedArgExpr::name() const { - // @@protoc_insertion_point(field_get:pg_query.NamedArgExpr.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void NamedArgExpr::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.NamedArgExpr.name) -} -inline std::string* NamedArgExpr::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.NamedArgExpr.name) - return _s; -} -inline const std::string& NamedArgExpr::_internal_name() const { - return _impl_.name_.Get(); -} -inline void NamedArgExpr::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* NamedArgExpr::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* NamedArgExpr::release_name() { - // @@protoc_insertion_point(field_release:pg_query.NamedArgExpr.name) - return _impl_.name_.Release(); -} -inline void NamedArgExpr::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.NamedArgExpr.name) -} - -// int32 argnumber = 4 [json_name = "argnumber"]; -inline void NamedArgExpr::clear_argnumber() { - _impl_.argnumber_ = 0; -} -inline int32_t NamedArgExpr::_internal_argnumber() const { - return _impl_.argnumber_; -} -inline int32_t NamedArgExpr::argnumber() const { - // @@protoc_insertion_point(field_get:pg_query.NamedArgExpr.argnumber) - return _internal_argnumber(); -} -inline void NamedArgExpr::_internal_set_argnumber(int32_t value) { - - _impl_.argnumber_ = value; -} -inline void NamedArgExpr::set_argnumber(int32_t value) { - _internal_set_argnumber(value); - // @@protoc_insertion_point(field_set:pg_query.NamedArgExpr.argnumber) -} - -// int32 location = 5 [json_name = "location"]; -inline void NamedArgExpr::clear_location() { - _impl_.location_ = 0; -} -inline int32_t NamedArgExpr::_internal_location() const { - return _impl_.location_; -} -inline int32_t NamedArgExpr::location() const { - // @@protoc_insertion_point(field_get:pg_query.NamedArgExpr.location) - return _internal_location(); -} -inline void NamedArgExpr::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void NamedArgExpr::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.NamedArgExpr.location) -} - -// ------------------------------------------------------------------- - -// OpExpr - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool OpExpr::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool OpExpr::has_xpr() const { - return _internal_has_xpr(); -} -inline void OpExpr::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& OpExpr::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& OpExpr::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.OpExpr.xpr) - return _internal_xpr(); -} -inline void OpExpr::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.OpExpr.xpr) -} -inline ::pg_query::Node* OpExpr::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* OpExpr::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.OpExpr.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* OpExpr::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* OpExpr::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.OpExpr.xpr) - return _msg; -} -inline void OpExpr::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.OpExpr.xpr) -} - -// uint32 opno = 2 [json_name = "opno"]; -inline void OpExpr::clear_opno() { - _impl_.opno_ = 0u; -} -inline uint32_t OpExpr::_internal_opno() const { - return _impl_.opno_; -} -inline uint32_t OpExpr::opno() const { - // @@protoc_insertion_point(field_get:pg_query.OpExpr.opno) - return _internal_opno(); -} -inline void OpExpr::_internal_set_opno(uint32_t value) { - - _impl_.opno_ = value; -} -inline void OpExpr::set_opno(uint32_t value) { - _internal_set_opno(value); - // @@protoc_insertion_point(field_set:pg_query.OpExpr.opno) -} - -// uint32 opfuncid = 3 [json_name = "opfuncid"]; -inline void OpExpr::clear_opfuncid() { - _impl_.opfuncid_ = 0u; -} -inline uint32_t OpExpr::_internal_opfuncid() const { - return _impl_.opfuncid_; -} -inline uint32_t OpExpr::opfuncid() const { - // @@protoc_insertion_point(field_get:pg_query.OpExpr.opfuncid) - return _internal_opfuncid(); -} -inline void OpExpr::_internal_set_opfuncid(uint32_t value) { - - _impl_.opfuncid_ = value; -} -inline void OpExpr::set_opfuncid(uint32_t value) { - _internal_set_opfuncid(value); - // @@protoc_insertion_point(field_set:pg_query.OpExpr.opfuncid) -} - -// uint32 opresulttype = 4 [json_name = "opresulttype"]; -inline void OpExpr::clear_opresulttype() { - _impl_.opresulttype_ = 0u; -} -inline uint32_t OpExpr::_internal_opresulttype() const { - return _impl_.opresulttype_; -} -inline uint32_t OpExpr::opresulttype() const { - // @@protoc_insertion_point(field_get:pg_query.OpExpr.opresulttype) - return _internal_opresulttype(); -} -inline void OpExpr::_internal_set_opresulttype(uint32_t value) { - - _impl_.opresulttype_ = value; -} -inline void OpExpr::set_opresulttype(uint32_t value) { - _internal_set_opresulttype(value); - // @@protoc_insertion_point(field_set:pg_query.OpExpr.opresulttype) -} - -// bool opretset = 5 [json_name = "opretset"]; -inline void OpExpr::clear_opretset() { - _impl_.opretset_ = false; -} -inline bool OpExpr::_internal_opretset() const { - return _impl_.opretset_; -} -inline bool OpExpr::opretset() const { - // @@protoc_insertion_point(field_get:pg_query.OpExpr.opretset) - return _internal_opretset(); -} -inline void OpExpr::_internal_set_opretset(bool value) { - - _impl_.opretset_ = value; -} -inline void OpExpr::set_opretset(bool value) { - _internal_set_opretset(value); - // @@protoc_insertion_point(field_set:pg_query.OpExpr.opretset) -} - -// uint32 opcollid = 6 [json_name = "opcollid"]; -inline void OpExpr::clear_opcollid() { - _impl_.opcollid_ = 0u; -} -inline uint32_t OpExpr::_internal_opcollid() const { - return _impl_.opcollid_; -} -inline uint32_t OpExpr::opcollid() const { - // @@protoc_insertion_point(field_get:pg_query.OpExpr.opcollid) - return _internal_opcollid(); -} -inline void OpExpr::_internal_set_opcollid(uint32_t value) { - - _impl_.opcollid_ = value; -} -inline void OpExpr::set_opcollid(uint32_t value) { - _internal_set_opcollid(value); - // @@protoc_insertion_point(field_set:pg_query.OpExpr.opcollid) -} - -// uint32 inputcollid = 7 [json_name = "inputcollid"]; -inline void OpExpr::clear_inputcollid() { - _impl_.inputcollid_ = 0u; -} -inline uint32_t OpExpr::_internal_inputcollid() const { - return _impl_.inputcollid_; -} -inline uint32_t OpExpr::inputcollid() const { - // @@protoc_insertion_point(field_get:pg_query.OpExpr.inputcollid) - return _internal_inputcollid(); -} -inline void OpExpr::_internal_set_inputcollid(uint32_t value) { - - _impl_.inputcollid_ = value; -} -inline void OpExpr::set_inputcollid(uint32_t value) { - _internal_set_inputcollid(value); - // @@protoc_insertion_point(field_set:pg_query.OpExpr.inputcollid) -} - -// repeated .pg_query.Node args = 8 [json_name = "args"]; -inline int OpExpr::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int OpExpr::args_size() const { - return _internal_args_size(); -} -inline void OpExpr::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* OpExpr::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.OpExpr.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -OpExpr::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.OpExpr.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& OpExpr::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& OpExpr::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.OpExpr.args) - return _internal_args(index); -} -inline ::pg_query::Node* OpExpr::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* OpExpr::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.OpExpr.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -OpExpr::args() const { - // @@protoc_insertion_point(field_list:pg_query.OpExpr.args) - return _impl_.args_; -} - -// int32 location = 9 [json_name = "location"]; -inline void OpExpr::clear_location() { - _impl_.location_ = 0; -} -inline int32_t OpExpr::_internal_location() const { - return _impl_.location_; -} -inline int32_t OpExpr::location() const { - // @@protoc_insertion_point(field_get:pg_query.OpExpr.location) - return _internal_location(); -} -inline void OpExpr::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void OpExpr::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.OpExpr.location) -} - -// ------------------------------------------------------------------- - -// DistinctExpr - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool DistinctExpr::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool DistinctExpr::has_xpr() const { - return _internal_has_xpr(); -} -inline void DistinctExpr::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& DistinctExpr::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& DistinctExpr::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.DistinctExpr.xpr) - return _internal_xpr(); -} -inline void DistinctExpr::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.DistinctExpr.xpr) -} -inline ::pg_query::Node* DistinctExpr::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* DistinctExpr::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.DistinctExpr.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* DistinctExpr::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* DistinctExpr::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.DistinctExpr.xpr) - return _msg; -} -inline void DistinctExpr::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.DistinctExpr.xpr) -} - -// uint32 opno = 2 [json_name = "opno"]; -inline void DistinctExpr::clear_opno() { - _impl_.opno_ = 0u; -} -inline uint32_t DistinctExpr::_internal_opno() const { - return _impl_.opno_; -} -inline uint32_t DistinctExpr::opno() const { - // @@protoc_insertion_point(field_get:pg_query.DistinctExpr.opno) - return _internal_opno(); -} -inline void DistinctExpr::_internal_set_opno(uint32_t value) { - - _impl_.opno_ = value; -} -inline void DistinctExpr::set_opno(uint32_t value) { - _internal_set_opno(value); - // @@protoc_insertion_point(field_set:pg_query.DistinctExpr.opno) -} - -// uint32 opfuncid = 3 [json_name = "opfuncid"]; -inline void DistinctExpr::clear_opfuncid() { - _impl_.opfuncid_ = 0u; -} -inline uint32_t DistinctExpr::_internal_opfuncid() const { - return _impl_.opfuncid_; -} -inline uint32_t DistinctExpr::opfuncid() const { - // @@protoc_insertion_point(field_get:pg_query.DistinctExpr.opfuncid) - return _internal_opfuncid(); -} -inline void DistinctExpr::_internal_set_opfuncid(uint32_t value) { - - _impl_.opfuncid_ = value; -} -inline void DistinctExpr::set_opfuncid(uint32_t value) { - _internal_set_opfuncid(value); - // @@protoc_insertion_point(field_set:pg_query.DistinctExpr.opfuncid) -} - -// uint32 opresulttype = 4 [json_name = "opresulttype"]; -inline void DistinctExpr::clear_opresulttype() { - _impl_.opresulttype_ = 0u; -} -inline uint32_t DistinctExpr::_internal_opresulttype() const { - return _impl_.opresulttype_; -} -inline uint32_t DistinctExpr::opresulttype() const { - // @@protoc_insertion_point(field_get:pg_query.DistinctExpr.opresulttype) - return _internal_opresulttype(); -} -inline void DistinctExpr::_internal_set_opresulttype(uint32_t value) { - - _impl_.opresulttype_ = value; -} -inline void DistinctExpr::set_opresulttype(uint32_t value) { - _internal_set_opresulttype(value); - // @@protoc_insertion_point(field_set:pg_query.DistinctExpr.opresulttype) -} - -// bool opretset = 5 [json_name = "opretset"]; -inline void DistinctExpr::clear_opretset() { - _impl_.opretset_ = false; -} -inline bool DistinctExpr::_internal_opretset() const { - return _impl_.opretset_; -} -inline bool DistinctExpr::opretset() const { - // @@protoc_insertion_point(field_get:pg_query.DistinctExpr.opretset) - return _internal_opretset(); -} -inline void DistinctExpr::_internal_set_opretset(bool value) { - - _impl_.opretset_ = value; -} -inline void DistinctExpr::set_opretset(bool value) { - _internal_set_opretset(value); - // @@protoc_insertion_point(field_set:pg_query.DistinctExpr.opretset) -} - -// uint32 opcollid = 6 [json_name = "opcollid"]; -inline void DistinctExpr::clear_opcollid() { - _impl_.opcollid_ = 0u; -} -inline uint32_t DistinctExpr::_internal_opcollid() const { - return _impl_.opcollid_; -} -inline uint32_t DistinctExpr::opcollid() const { - // @@protoc_insertion_point(field_get:pg_query.DistinctExpr.opcollid) - return _internal_opcollid(); -} -inline void DistinctExpr::_internal_set_opcollid(uint32_t value) { - - _impl_.opcollid_ = value; -} -inline void DistinctExpr::set_opcollid(uint32_t value) { - _internal_set_opcollid(value); - // @@protoc_insertion_point(field_set:pg_query.DistinctExpr.opcollid) -} - -// uint32 inputcollid = 7 [json_name = "inputcollid"]; -inline void DistinctExpr::clear_inputcollid() { - _impl_.inputcollid_ = 0u; -} -inline uint32_t DistinctExpr::_internal_inputcollid() const { - return _impl_.inputcollid_; -} -inline uint32_t DistinctExpr::inputcollid() const { - // @@protoc_insertion_point(field_get:pg_query.DistinctExpr.inputcollid) - return _internal_inputcollid(); -} -inline void DistinctExpr::_internal_set_inputcollid(uint32_t value) { - - _impl_.inputcollid_ = value; -} -inline void DistinctExpr::set_inputcollid(uint32_t value) { - _internal_set_inputcollid(value); - // @@protoc_insertion_point(field_set:pg_query.DistinctExpr.inputcollid) -} - -// repeated .pg_query.Node args = 8 [json_name = "args"]; -inline int DistinctExpr::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int DistinctExpr::args_size() const { - return _internal_args_size(); -} -inline void DistinctExpr::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* DistinctExpr::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.DistinctExpr.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -DistinctExpr::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.DistinctExpr.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& DistinctExpr::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& DistinctExpr::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.DistinctExpr.args) - return _internal_args(index); -} -inline ::pg_query::Node* DistinctExpr::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* DistinctExpr::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.DistinctExpr.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -DistinctExpr::args() const { - // @@protoc_insertion_point(field_list:pg_query.DistinctExpr.args) - return _impl_.args_; -} - -// int32 location = 9 [json_name = "location"]; -inline void DistinctExpr::clear_location() { - _impl_.location_ = 0; -} -inline int32_t DistinctExpr::_internal_location() const { - return _impl_.location_; -} -inline int32_t DistinctExpr::location() const { - // @@protoc_insertion_point(field_get:pg_query.DistinctExpr.location) - return _internal_location(); -} -inline void DistinctExpr::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void DistinctExpr::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.DistinctExpr.location) -} - -// ------------------------------------------------------------------- - -// NullIfExpr - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool NullIfExpr::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool NullIfExpr::has_xpr() const { - return _internal_has_xpr(); -} -inline void NullIfExpr::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& NullIfExpr::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& NullIfExpr::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.NullIfExpr.xpr) - return _internal_xpr(); -} -inline void NullIfExpr::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.NullIfExpr.xpr) -} -inline ::pg_query::Node* NullIfExpr::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* NullIfExpr::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.NullIfExpr.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* NullIfExpr::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* NullIfExpr::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.NullIfExpr.xpr) - return _msg; -} -inline void NullIfExpr::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.NullIfExpr.xpr) -} - -// uint32 opno = 2 [json_name = "opno"]; -inline void NullIfExpr::clear_opno() { - _impl_.opno_ = 0u; -} -inline uint32_t NullIfExpr::_internal_opno() const { - return _impl_.opno_; -} -inline uint32_t NullIfExpr::opno() const { - // @@protoc_insertion_point(field_get:pg_query.NullIfExpr.opno) - return _internal_opno(); -} -inline void NullIfExpr::_internal_set_opno(uint32_t value) { - - _impl_.opno_ = value; -} -inline void NullIfExpr::set_opno(uint32_t value) { - _internal_set_opno(value); - // @@protoc_insertion_point(field_set:pg_query.NullIfExpr.opno) -} - -// uint32 opfuncid = 3 [json_name = "opfuncid"]; -inline void NullIfExpr::clear_opfuncid() { - _impl_.opfuncid_ = 0u; -} -inline uint32_t NullIfExpr::_internal_opfuncid() const { - return _impl_.opfuncid_; -} -inline uint32_t NullIfExpr::opfuncid() const { - // @@protoc_insertion_point(field_get:pg_query.NullIfExpr.opfuncid) - return _internal_opfuncid(); -} -inline void NullIfExpr::_internal_set_opfuncid(uint32_t value) { - - _impl_.opfuncid_ = value; -} -inline void NullIfExpr::set_opfuncid(uint32_t value) { - _internal_set_opfuncid(value); - // @@protoc_insertion_point(field_set:pg_query.NullIfExpr.opfuncid) -} - -// uint32 opresulttype = 4 [json_name = "opresulttype"]; -inline void NullIfExpr::clear_opresulttype() { - _impl_.opresulttype_ = 0u; -} -inline uint32_t NullIfExpr::_internal_opresulttype() const { - return _impl_.opresulttype_; -} -inline uint32_t NullIfExpr::opresulttype() const { - // @@protoc_insertion_point(field_get:pg_query.NullIfExpr.opresulttype) - return _internal_opresulttype(); -} -inline void NullIfExpr::_internal_set_opresulttype(uint32_t value) { - - _impl_.opresulttype_ = value; -} -inline void NullIfExpr::set_opresulttype(uint32_t value) { - _internal_set_opresulttype(value); - // @@protoc_insertion_point(field_set:pg_query.NullIfExpr.opresulttype) -} - -// bool opretset = 5 [json_name = "opretset"]; -inline void NullIfExpr::clear_opretset() { - _impl_.opretset_ = false; -} -inline bool NullIfExpr::_internal_opretset() const { - return _impl_.opretset_; -} -inline bool NullIfExpr::opretset() const { - // @@protoc_insertion_point(field_get:pg_query.NullIfExpr.opretset) - return _internal_opretset(); -} -inline void NullIfExpr::_internal_set_opretset(bool value) { - - _impl_.opretset_ = value; -} -inline void NullIfExpr::set_opretset(bool value) { - _internal_set_opretset(value); - // @@protoc_insertion_point(field_set:pg_query.NullIfExpr.opretset) -} - -// uint32 opcollid = 6 [json_name = "opcollid"]; -inline void NullIfExpr::clear_opcollid() { - _impl_.opcollid_ = 0u; -} -inline uint32_t NullIfExpr::_internal_opcollid() const { - return _impl_.opcollid_; -} -inline uint32_t NullIfExpr::opcollid() const { - // @@protoc_insertion_point(field_get:pg_query.NullIfExpr.opcollid) - return _internal_opcollid(); -} -inline void NullIfExpr::_internal_set_opcollid(uint32_t value) { - - _impl_.opcollid_ = value; -} -inline void NullIfExpr::set_opcollid(uint32_t value) { - _internal_set_opcollid(value); - // @@protoc_insertion_point(field_set:pg_query.NullIfExpr.opcollid) -} - -// uint32 inputcollid = 7 [json_name = "inputcollid"]; -inline void NullIfExpr::clear_inputcollid() { - _impl_.inputcollid_ = 0u; -} -inline uint32_t NullIfExpr::_internal_inputcollid() const { - return _impl_.inputcollid_; -} -inline uint32_t NullIfExpr::inputcollid() const { - // @@protoc_insertion_point(field_get:pg_query.NullIfExpr.inputcollid) - return _internal_inputcollid(); -} -inline void NullIfExpr::_internal_set_inputcollid(uint32_t value) { - - _impl_.inputcollid_ = value; -} -inline void NullIfExpr::set_inputcollid(uint32_t value) { - _internal_set_inputcollid(value); - // @@protoc_insertion_point(field_set:pg_query.NullIfExpr.inputcollid) -} - -// repeated .pg_query.Node args = 8 [json_name = "args"]; -inline int NullIfExpr::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int NullIfExpr::args_size() const { - return _internal_args_size(); -} -inline void NullIfExpr::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* NullIfExpr::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.NullIfExpr.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -NullIfExpr::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.NullIfExpr.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& NullIfExpr::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& NullIfExpr::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.NullIfExpr.args) - return _internal_args(index); -} -inline ::pg_query::Node* NullIfExpr::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* NullIfExpr::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.NullIfExpr.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -NullIfExpr::args() const { - // @@protoc_insertion_point(field_list:pg_query.NullIfExpr.args) - return _impl_.args_; -} - -// int32 location = 9 [json_name = "location"]; -inline void NullIfExpr::clear_location() { - _impl_.location_ = 0; -} -inline int32_t NullIfExpr::_internal_location() const { - return _impl_.location_; -} -inline int32_t NullIfExpr::location() const { - // @@protoc_insertion_point(field_get:pg_query.NullIfExpr.location) - return _internal_location(); -} -inline void NullIfExpr::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void NullIfExpr::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.NullIfExpr.location) -} - -// ------------------------------------------------------------------- - -// ScalarArrayOpExpr - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool ScalarArrayOpExpr::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool ScalarArrayOpExpr::has_xpr() const { - return _internal_has_xpr(); -} -inline void ScalarArrayOpExpr::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& ScalarArrayOpExpr::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& ScalarArrayOpExpr::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.ScalarArrayOpExpr.xpr) - return _internal_xpr(); -} -inline void ScalarArrayOpExpr::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.ScalarArrayOpExpr.xpr) -} -inline ::pg_query::Node* ScalarArrayOpExpr::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* ScalarArrayOpExpr::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.ScalarArrayOpExpr.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* ScalarArrayOpExpr::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* ScalarArrayOpExpr::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.ScalarArrayOpExpr.xpr) - return _msg; -} -inline void ScalarArrayOpExpr::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.ScalarArrayOpExpr.xpr) -} - -// uint32 opno = 2 [json_name = "opno"]; -inline void ScalarArrayOpExpr::clear_opno() { - _impl_.opno_ = 0u; -} -inline uint32_t ScalarArrayOpExpr::_internal_opno() const { - return _impl_.opno_; -} -inline uint32_t ScalarArrayOpExpr::opno() const { - // @@protoc_insertion_point(field_get:pg_query.ScalarArrayOpExpr.opno) - return _internal_opno(); -} -inline void ScalarArrayOpExpr::_internal_set_opno(uint32_t value) { - - _impl_.opno_ = value; -} -inline void ScalarArrayOpExpr::set_opno(uint32_t value) { - _internal_set_opno(value); - // @@protoc_insertion_point(field_set:pg_query.ScalarArrayOpExpr.opno) -} - -// uint32 opfuncid = 3 [json_name = "opfuncid"]; -inline void ScalarArrayOpExpr::clear_opfuncid() { - _impl_.opfuncid_ = 0u; -} -inline uint32_t ScalarArrayOpExpr::_internal_opfuncid() const { - return _impl_.opfuncid_; -} -inline uint32_t ScalarArrayOpExpr::opfuncid() const { - // @@protoc_insertion_point(field_get:pg_query.ScalarArrayOpExpr.opfuncid) - return _internal_opfuncid(); -} -inline void ScalarArrayOpExpr::_internal_set_opfuncid(uint32_t value) { - - _impl_.opfuncid_ = value; -} -inline void ScalarArrayOpExpr::set_opfuncid(uint32_t value) { - _internal_set_opfuncid(value); - // @@protoc_insertion_point(field_set:pg_query.ScalarArrayOpExpr.opfuncid) -} - -// uint32 hashfuncid = 4 [json_name = "hashfuncid"]; -inline void ScalarArrayOpExpr::clear_hashfuncid() { - _impl_.hashfuncid_ = 0u; -} -inline uint32_t ScalarArrayOpExpr::_internal_hashfuncid() const { - return _impl_.hashfuncid_; -} -inline uint32_t ScalarArrayOpExpr::hashfuncid() const { - // @@protoc_insertion_point(field_get:pg_query.ScalarArrayOpExpr.hashfuncid) - return _internal_hashfuncid(); -} -inline void ScalarArrayOpExpr::_internal_set_hashfuncid(uint32_t value) { - - _impl_.hashfuncid_ = value; -} -inline void ScalarArrayOpExpr::set_hashfuncid(uint32_t value) { - _internal_set_hashfuncid(value); - // @@protoc_insertion_point(field_set:pg_query.ScalarArrayOpExpr.hashfuncid) -} - -// uint32 negfuncid = 5 [json_name = "negfuncid"]; -inline void ScalarArrayOpExpr::clear_negfuncid() { - _impl_.negfuncid_ = 0u; -} -inline uint32_t ScalarArrayOpExpr::_internal_negfuncid() const { - return _impl_.negfuncid_; -} -inline uint32_t ScalarArrayOpExpr::negfuncid() const { - // @@protoc_insertion_point(field_get:pg_query.ScalarArrayOpExpr.negfuncid) - return _internal_negfuncid(); -} -inline void ScalarArrayOpExpr::_internal_set_negfuncid(uint32_t value) { - - _impl_.negfuncid_ = value; -} -inline void ScalarArrayOpExpr::set_negfuncid(uint32_t value) { - _internal_set_negfuncid(value); - // @@protoc_insertion_point(field_set:pg_query.ScalarArrayOpExpr.negfuncid) -} - -// bool use_or = 6 [json_name = "useOr"]; -inline void ScalarArrayOpExpr::clear_use_or() { - _impl_.use_or_ = false; -} -inline bool ScalarArrayOpExpr::_internal_use_or() const { - return _impl_.use_or_; -} -inline bool ScalarArrayOpExpr::use_or() const { - // @@protoc_insertion_point(field_get:pg_query.ScalarArrayOpExpr.use_or) - return _internal_use_or(); -} -inline void ScalarArrayOpExpr::_internal_set_use_or(bool value) { - - _impl_.use_or_ = value; -} -inline void ScalarArrayOpExpr::set_use_or(bool value) { - _internal_set_use_or(value); - // @@protoc_insertion_point(field_set:pg_query.ScalarArrayOpExpr.use_or) -} - -// uint32 inputcollid = 7 [json_name = "inputcollid"]; -inline void ScalarArrayOpExpr::clear_inputcollid() { - _impl_.inputcollid_ = 0u; -} -inline uint32_t ScalarArrayOpExpr::_internal_inputcollid() const { - return _impl_.inputcollid_; -} -inline uint32_t ScalarArrayOpExpr::inputcollid() const { - // @@protoc_insertion_point(field_get:pg_query.ScalarArrayOpExpr.inputcollid) - return _internal_inputcollid(); -} -inline void ScalarArrayOpExpr::_internal_set_inputcollid(uint32_t value) { - - _impl_.inputcollid_ = value; -} -inline void ScalarArrayOpExpr::set_inputcollid(uint32_t value) { - _internal_set_inputcollid(value); - // @@protoc_insertion_point(field_set:pg_query.ScalarArrayOpExpr.inputcollid) -} - -// repeated .pg_query.Node args = 8 [json_name = "args"]; -inline int ScalarArrayOpExpr::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int ScalarArrayOpExpr::args_size() const { - return _internal_args_size(); -} -inline void ScalarArrayOpExpr::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* ScalarArrayOpExpr::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.ScalarArrayOpExpr.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -ScalarArrayOpExpr::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.ScalarArrayOpExpr.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& ScalarArrayOpExpr::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& ScalarArrayOpExpr::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.ScalarArrayOpExpr.args) - return _internal_args(index); -} -inline ::pg_query::Node* ScalarArrayOpExpr::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* ScalarArrayOpExpr::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.ScalarArrayOpExpr.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -ScalarArrayOpExpr::args() const { - // @@protoc_insertion_point(field_list:pg_query.ScalarArrayOpExpr.args) - return _impl_.args_; -} - -// int32 location = 9 [json_name = "location"]; -inline void ScalarArrayOpExpr::clear_location() { - _impl_.location_ = 0; -} -inline int32_t ScalarArrayOpExpr::_internal_location() const { - return _impl_.location_; -} -inline int32_t ScalarArrayOpExpr::location() const { - // @@protoc_insertion_point(field_get:pg_query.ScalarArrayOpExpr.location) - return _internal_location(); -} -inline void ScalarArrayOpExpr::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void ScalarArrayOpExpr::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.ScalarArrayOpExpr.location) -} - -// ------------------------------------------------------------------- - -// BoolExpr - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool BoolExpr::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool BoolExpr::has_xpr() const { - return _internal_has_xpr(); -} -inline void BoolExpr::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& BoolExpr::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& BoolExpr::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.BoolExpr.xpr) - return _internal_xpr(); -} -inline void BoolExpr::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.BoolExpr.xpr) -} -inline ::pg_query::Node* BoolExpr::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* BoolExpr::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.BoolExpr.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* BoolExpr::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* BoolExpr::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.BoolExpr.xpr) - return _msg; -} -inline void BoolExpr::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.BoolExpr.xpr) -} - -// .pg_query.BoolExprType boolop = 2 [json_name = "boolop"]; -inline void BoolExpr::clear_boolop() { - _impl_.boolop_ = 0; -} -inline ::pg_query::BoolExprType BoolExpr::_internal_boolop() const { - return static_cast< ::pg_query::BoolExprType >(_impl_.boolop_); -} -inline ::pg_query::BoolExprType BoolExpr::boolop() const { - // @@protoc_insertion_point(field_get:pg_query.BoolExpr.boolop) - return _internal_boolop(); -} -inline void BoolExpr::_internal_set_boolop(::pg_query::BoolExprType value) { - - _impl_.boolop_ = value; -} -inline void BoolExpr::set_boolop(::pg_query::BoolExprType value) { - _internal_set_boolop(value); - // @@protoc_insertion_point(field_set:pg_query.BoolExpr.boolop) -} - -// repeated .pg_query.Node args = 3 [json_name = "args"]; -inline int BoolExpr::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int BoolExpr::args_size() const { - return _internal_args_size(); -} -inline void BoolExpr::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* BoolExpr::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.BoolExpr.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -BoolExpr::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.BoolExpr.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& BoolExpr::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& BoolExpr::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.BoolExpr.args) - return _internal_args(index); -} -inline ::pg_query::Node* BoolExpr::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* BoolExpr::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.BoolExpr.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -BoolExpr::args() const { - // @@protoc_insertion_point(field_list:pg_query.BoolExpr.args) - return _impl_.args_; -} - -// int32 location = 4 [json_name = "location"]; -inline void BoolExpr::clear_location() { - _impl_.location_ = 0; -} -inline int32_t BoolExpr::_internal_location() const { - return _impl_.location_; -} -inline int32_t BoolExpr::location() const { - // @@protoc_insertion_point(field_get:pg_query.BoolExpr.location) - return _internal_location(); -} -inline void BoolExpr::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void BoolExpr::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.BoolExpr.location) -} - -// ------------------------------------------------------------------- - -// SubLink - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool SubLink::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool SubLink::has_xpr() const { - return _internal_has_xpr(); -} -inline void SubLink::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& SubLink::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& SubLink::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.SubLink.xpr) - return _internal_xpr(); -} -inline void SubLink::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SubLink.xpr) -} -inline ::pg_query::Node* SubLink::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* SubLink::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.SubLink.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* SubLink::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* SubLink::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.SubLink.xpr) - return _msg; -} -inline void SubLink::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.SubLink.xpr) -} - -// .pg_query.SubLinkType sub_link_type = 2 [json_name = "subLinkType"]; -inline void SubLink::clear_sub_link_type() { - _impl_.sub_link_type_ = 0; -} -inline ::pg_query::SubLinkType SubLink::_internal_sub_link_type() const { - return static_cast< ::pg_query::SubLinkType >(_impl_.sub_link_type_); -} -inline ::pg_query::SubLinkType SubLink::sub_link_type() const { - // @@protoc_insertion_point(field_get:pg_query.SubLink.sub_link_type) - return _internal_sub_link_type(); -} -inline void SubLink::_internal_set_sub_link_type(::pg_query::SubLinkType value) { - - _impl_.sub_link_type_ = value; -} -inline void SubLink::set_sub_link_type(::pg_query::SubLinkType value) { - _internal_set_sub_link_type(value); - // @@protoc_insertion_point(field_set:pg_query.SubLink.sub_link_type) -} - -// int32 sub_link_id = 3 [json_name = "subLinkId"]; -inline void SubLink::clear_sub_link_id() { - _impl_.sub_link_id_ = 0; -} -inline int32_t SubLink::_internal_sub_link_id() const { - return _impl_.sub_link_id_; -} -inline int32_t SubLink::sub_link_id() const { - // @@protoc_insertion_point(field_get:pg_query.SubLink.sub_link_id) - return _internal_sub_link_id(); -} -inline void SubLink::_internal_set_sub_link_id(int32_t value) { - - _impl_.sub_link_id_ = value; -} -inline void SubLink::set_sub_link_id(int32_t value) { - _internal_set_sub_link_id(value); - // @@protoc_insertion_point(field_set:pg_query.SubLink.sub_link_id) -} - -// .pg_query.Node testexpr = 4 [json_name = "testexpr"]; -inline bool SubLink::_internal_has_testexpr() const { - return this != internal_default_instance() && _impl_.testexpr_ != nullptr; -} -inline bool SubLink::has_testexpr() const { - return _internal_has_testexpr(); -} -inline void SubLink::clear_testexpr() { - if (GetArenaForAllocation() == nullptr && _impl_.testexpr_ != nullptr) { - delete _impl_.testexpr_; - } - _impl_.testexpr_ = nullptr; -} -inline const ::pg_query::Node& SubLink::_internal_testexpr() const { - const ::pg_query::Node* p = _impl_.testexpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& SubLink::testexpr() const { - // @@protoc_insertion_point(field_get:pg_query.SubLink.testexpr) - return _internal_testexpr(); -} -inline void SubLink::unsafe_arena_set_allocated_testexpr( - ::pg_query::Node* testexpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.testexpr_); - } - _impl_.testexpr_ = testexpr; - if (testexpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SubLink.testexpr) -} -inline ::pg_query::Node* SubLink::release_testexpr() { - - ::pg_query::Node* temp = _impl_.testexpr_; - _impl_.testexpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* SubLink::unsafe_arena_release_testexpr() { - // @@protoc_insertion_point(field_release:pg_query.SubLink.testexpr) - - ::pg_query::Node* temp = _impl_.testexpr_; - _impl_.testexpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* SubLink::_internal_mutable_testexpr() { - - if (_impl_.testexpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.testexpr_ = p; - } - return _impl_.testexpr_; -} -inline ::pg_query::Node* SubLink::mutable_testexpr() { - ::pg_query::Node* _msg = _internal_mutable_testexpr(); - // @@protoc_insertion_point(field_mutable:pg_query.SubLink.testexpr) - return _msg; -} -inline void SubLink::set_allocated_testexpr(::pg_query::Node* testexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.testexpr_; - } - if (testexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(testexpr); - if (message_arena != submessage_arena) { - testexpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, testexpr, submessage_arena); - } - - } else { - - } - _impl_.testexpr_ = testexpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.SubLink.testexpr) -} - -// repeated .pg_query.Node oper_name = 5 [json_name = "operName"]; -inline int SubLink::_internal_oper_name_size() const { - return _impl_.oper_name_.size(); -} -inline int SubLink::oper_name_size() const { - return _internal_oper_name_size(); -} -inline void SubLink::clear_oper_name() { - _impl_.oper_name_.Clear(); -} -inline ::pg_query::Node* SubLink::mutable_oper_name(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.SubLink.oper_name) - return _impl_.oper_name_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -SubLink::mutable_oper_name() { - // @@protoc_insertion_point(field_mutable_list:pg_query.SubLink.oper_name) - return &_impl_.oper_name_; -} -inline const ::pg_query::Node& SubLink::_internal_oper_name(int index) const { - return _impl_.oper_name_.Get(index); -} -inline const ::pg_query::Node& SubLink::oper_name(int index) const { - // @@protoc_insertion_point(field_get:pg_query.SubLink.oper_name) - return _internal_oper_name(index); -} -inline ::pg_query::Node* SubLink::_internal_add_oper_name() { - return _impl_.oper_name_.Add(); -} -inline ::pg_query::Node* SubLink::add_oper_name() { - ::pg_query::Node* _add = _internal_add_oper_name(); - // @@protoc_insertion_point(field_add:pg_query.SubLink.oper_name) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -SubLink::oper_name() const { - // @@protoc_insertion_point(field_list:pg_query.SubLink.oper_name) - return _impl_.oper_name_; -} - -// .pg_query.Node subselect = 6 [json_name = "subselect"]; -inline bool SubLink::_internal_has_subselect() const { - return this != internal_default_instance() && _impl_.subselect_ != nullptr; -} -inline bool SubLink::has_subselect() const { - return _internal_has_subselect(); -} -inline void SubLink::clear_subselect() { - if (GetArenaForAllocation() == nullptr && _impl_.subselect_ != nullptr) { - delete _impl_.subselect_; - } - _impl_.subselect_ = nullptr; -} -inline const ::pg_query::Node& SubLink::_internal_subselect() const { - const ::pg_query::Node* p = _impl_.subselect_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& SubLink::subselect() const { - // @@protoc_insertion_point(field_get:pg_query.SubLink.subselect) - return _internal_subselect(); -} -inline void SubLink::unsafe_arena_set_allocated_subselect( - ::pg_query::Node* subselect) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.subselect_); - } - _impl_.subselect_ = subselect; - if (subselect) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SubLink.subselect) -} -inline ::pg_query::Node* SubLink::release_subselect() { - - ::pg_query::Node* temp = _impl_.subselect_; - _impl_.subselect_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* SubLink::unsafe_arena_release_subselect() { - // @@protoc_insertion_point(field_release:pg_query.SubLink.subselect) - - ::pg_query::Node* temp = _impl_.subselect_; - _impl_.subselect_ = nullptr; - return temp; -} -inline ::pg_query::Node* SubLink::_internal_mutable_subselect() { - - if (_impl_.subselect_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.subselect_ = p; - } - return _impl_.subselect_; -} -inline ::pg_query::Node* SubLink::mutable_subselect() { - ::pg_query::Node* _msg = _internal_mutable_subselect(); - // @@protoc_insertion_point(field_mutable:pg_query.SubLink.subselect) - return _msg; -} -inline void SubLink::set_allocated_subselect(::pg_query::Node* subselect) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.subselect_; - } - if (subselect) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(subselect); - if (message_arena != submessage_arena) { - subselect = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, subselect, submessage_arena); - } - - } else { - - } - _impl_.subselect_ = subselect; - // @@protoc_insertion_point(field_set_allocated:pg_query.SubLink.subselect) -} - -// int32 location = 7 [json_name = "location"]; -inline void SubLink::clear_location() { - _impl_.location_ = 0; -} -inline int32_t SubLink::_internal_location() const { - return _impl_.location_; -} -inline int32_t SubLink::location() const { - // @@protoc_insertion_point(field_get:pg_query.SubLink.location) - return _internal_location(); -} -inline void SubLink::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void SubLink::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.SubLink.location) -} - -// ------------------------------------------------------------------- - -// SubPlan - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool SubPlan::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool SubPlan::has_xpr() const { - return _internal_has_xpr(); -} -inline void SubPlan::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& SubPlan::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& SubPlan::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.SubPlan.xpr) - return _internal_xpr(); -} -inline void SubPlan::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SubPlan.xpr) -} -inline ::pg_query::Node* SubPlan::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* SubPlan::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.SubPlan.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* SubPlan::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* SubPlan::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.SubPlan.xpr) - return _msg; -} -inline void SubPlan::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.SubPlan.xpr) -} - -// .pg_query.SubLinkType sub_link_type = 2 [json_name = "subLinkType"]; -inline void SubPlan::clear_sub_link_type() { - _impl_.sub_link_type_ = 0; -} -inline ::pg_query::SubLinkType SubPlan::_internal_sub_link_type() const { - return static_cast< ::pg_query::SubLinkType >(_impl_.sub_link_type_); -} -inline ::pg_query::SubLinkType SubPlan::sub_link_type() const { - // @@protoc_insertion_point(field_get:pg_query.SubPlan.sub_link_type) - return _internal_sub_link_type(); -} -inline void SubPlan::_internal_set_sub_link_type(::pg_query::SubLinkType value) { - - _impl_.sub_link_type_ = value; -} -inline void SubPlan::set_sub_link_type(::pg_query::SubLinkType value) { - _internal_set_sub_link_type(value); - // @@protoc_insertion_point(field_set:pg_query.SubPlan.sub_link_type) -} - -// .pg_query.Node testexpr = 3 [json_name = "testexpr"]; -inline bool SubPlan::_internal_has_testexpr() const { - return this != internal_default_instance() && _impl_.testexpr_ != nullptr; -} -inline bool SubPlan::has_testexpr() const { - return _internal_has_testexpr(); -} -inline void SubPlan::clear_testexpr() { - if (GetArenaForAllocation() == nullptr && _impl_.testexpr_ != nullptr) { - delete _impl_.testexpr_; - } - _impl_.testexpr_ = nullptr; -} -inline const ::pg_query::Node& SubPlan::_internal_testexpr() const { - const ::pg_query::Node* p = _impl_.testexpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& SubPlan::testexpr() const { - // @@protoc_insertion_point(field_get:pg_query.SubPlan.testexpr) - return _internal_testexpr(); -} -inline void SubPlan::unsafe_arena_set_allocated_testexpr( - ::pg_query::Node* testexpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.testexpr_); - } - _impl_.testexpr_ = testexpr; - if (testexpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SubPlan.testexpr) -} -inline ::pg_query::Node* SubPlan::release_testexpr() { - - ::pg_query::Node* temp = _impl_.testexpr_; - _impl_.testexpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* SubPlan::unsafe_arena_release_testexpr() { - // @@protoc_insertion_point(field_release:pg_query.SubPlan.testexpr) - - ::pg_query::Node* temp = _impl_.testexpr_; - _impl_.testexpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* SubPlan::_internal_mutable_testexpr() { - - if (_impl_.testexpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.testexpr_ = p; - } - return _impl_.testexpr_; -} -inline ::pg_query::Node* SubPlan::mutable_testexpr() { - ::pg_query::Node* _msg = _internal_mutable_testexpr(); - // @@protoc_insertion_point(field_mutable:pg_query.SubPlan.testexpr) - return _msg; -} -inline void SubPlan::set_allocated_testexpr(::pg_query::Node* testexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.testexpr_; - } - if (testexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(testexpr); - if (message_arena != submessage_arena) { - testexpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, testexpr, submessage_arena); - } - - } else { - - } - _impl_.testexpr_ = testexpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.SubPlan.testexpr) -} - -// repeated .pg_query.Node param_ids = 4 [json_name = "paramIds"]; -inline int SubPlan::_internal_param_ids_size() const { - return _impl_.param_ids_.size(); -} -inline int SubPlan::param_ids_size() const { - return _internal_param_ids_size(); -} -inline void SubPlan::clear_param_ids() { - _impl_.param_ids_.Clear(); -} -inline ::pg_query::Node* SubPlan::mutable_param_ids(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.SubPlan.param_ids) - return _impl_.param_ids_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -SubPlan::mutable_param_ids() { - // @@protoc_insertion_point(field_mutable_list:pg_query.SubPlan.param_ids) - return &_impl_.param_ids_; -} -inline const ::pg_query::Node& SubPlan::_internal_param_ids(int index) const { - return _impl_.param_ids_.Get(index); -} -inline const ::pg_query::Node& SubPlan::param_ids(int index) const { - // @@protoc_insertion_point(field_get:pg_query.SubPlan.param_ids) - return _internal_param_ids(index); -} -inline ::pg_query::Node* SubPlan::_internal_add_param_ids() { - return _impl_.param_ids_.Add(); -} -inline ::pg_query::Node* SubPlan::add_param_ids() { - ::pg_query::Node* _add = _internal_add_param_ids(); - // @@protoc_insertion_point(field_add:pg_query.SubPlan.param_ids) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -SubPlan::param_ids() const { - // @@protoc_insertion_point(field_list:pg_query.SubPlan.param_ids) - return _impl_.param_ids_; -} - -// int32 plan_id = 5 [json_name = "plan_id"]; -inline void SubPlan::clear_plan_id() { - _impl_.plan_id_ = 0; -} -inline int32_t SubPlan::_internal_plan_id() const { - return _impl_.plan_id_; -} -inline int32_t SubPlan::plan_id() const { - // @@protoc_insertion_point(field_get:pg_query.SubPlan.plan_id) - return _internal_plan_id(); -} -inline void SubPlan::_internal_set_plan_id(int32_t value) { - - _impl_.plan_id_ = value; -} -inline void SubPlan::set_plan_id(int32_t value) { - _internal_set_plan_id(value); - // @@protoc_insertion_point(field_set:pg_query.SubPlan.plan_id) -} - -// string plan_name = 6 [json_name = "plan_name"]; -inline void SubPlan::clear_plan_name() { - _impl_.plan_name_.ClearToEmpty(); -} -inline const std::string& SubPlan::plan_name() const { - // @@protoc_insertion_point(field_get:pg_query.SubPlan.plan_name) - return _internal_plan_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void SubPlan::set_plan_name(ArgT0&& arg0, ArgT... args) { - - _impl_.plan_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.SubPlan.plan_name) -} -inline std::string* SubPlan::mutable_plan_name() { - std::string* _s = _internal_mutable_plan_name(); - // @@protoc_insertion_point(field_mutable:pg_query.SubPlan.plan_name) - return _s; -} -inline const std::string& SubPlan::_internal_plan_name() const { - return _impl_.plan_name_.Get(); -} -inline void SubPlan::_internal_set_plan_name(const std::string& value) { - - _impl_.plan_name_.Set(value, GetArenaForAllocation()); -} -inline std::string* SubPlan::_internal_mutable_plan_name() { - - return _impl_.plan_name_.Mutable(GetArenaForAllocation()); -} -inline std::string* SubPlan::release_plan_name() { - // @@protoc_insertion_point(field_release:pg_query.SubPlan.plan_name) - return _impl_.plan_name_.Release(); -} -inline void SubPlan::set_allocated_plan_name(std::string* plan_name) { - if (plan_name != nullptr) { - - } else { - - } - _impl_.plan_name_.SetAllocated(plan_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.plan_name_.IsDefault()) { - _impl_.plan_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.SubPlan.plan_name) -} - -// uint32 first_col_type = 7 [json_name = "firstColType"]; -inline void SubPlan::clear_first_col_type() { - _impl_.first_col_type_ = 0u; -} -inline uint32_t SubPlan::_internal_first_col_type() const { - return _impl_.first_col_type_; -} -inline uint32_t SubPlan::first_col_type() const { - // @@protoc_insertion_point(field_get:pg_query.SubPlan.first_col_type) - return _internal_first_col_type(); -} -inline void SubPlan::_internal_set_first_col_type(uint32_t value) { - - _impl_.first_col_type_ = value; -} -inline void SubPlan::set_first_col_type(uint32_t value) { - _internal_set_first_col_type(value); - // @@protoc_insertion_point(field_set:pg_query.SubPlan.first_col_type) -} - -// int32 first_col_typmod = 8 [json_name = "firstColTypmod"]; -inline void SubPlan::clear_first_col_typmod() { - _impl_.first_col_typmod_ = 0; -} -inline int32_t SubPlan::_internal_first_col_typmod() const { - return _impl_.first_col_typmod_; -} -inline int32_t SubPlan::first_col_typmod() const { - // @@protoc_insertion_point(field_get:pg_query.SubPlan.first_col_typmod) - return _internal_first_col_typmod(); -} -inline void SubPlan::_internal_set_first_col_typmod(int32_t value) { - - _impl_.first_col_typmod_ = value; -} -inline void SubPlan::set_first_col_typmod(int32_t value) { - _internal_set_first_col_typmod(value); - // @@protoc_insertion_point(field_set:pg_query.SubPlan.first_col_typmod) -} - -// uint32 first_col_collation = 9 [json_name = "firstColCollation"]; -inline void SubPlan::clear_first_col_collation() { - _impl_.first_col_collation_ = 0u; -} -inline uint32_t SubPlan::_internal_first_col_collation() const { - return _impl_.first_col_collation_; -} -inline uint32_t SubPlan::first_col_collation() const { - // @@protoc_insertion_point(field_get:pg_query.SubPlan.first_col_collation) - return _internal_first_col_collation(); -} -inline void SubPlan::_internal_set_first_col_collation(uint32_t value) { - - _impl_.first_col_collation_ = value; -} -inline void SubPlan::set_first_col_collation(uint32_t value) { - _internal_set_first_col_collation(value); - // @@protoc_insertion_point(field_set:pg_query.SubPlan.first_col_collation) -} - -// bool use_hash_table = 10 [json_name = "useHashTable"]; -inline void SubPlan::clear_use_hash_table() { - _impl_.use_hash_table_ = false; -} -inline bool SubPlan::_internal_use_hash_table() const { - return _impl_.use_hash_table_; -} -inline bool SubPlan::use_hash_table() const { - // @@protoc_insertion_point(field_get:pg_query.SubPlan.use_hash_table) - return _internal_use_hash_table(); -} -inline void SubPlan::_internal_set_use_hash_table(bool value) { - - _impl_.use_hash_table_ = value; -} -inline void SubPlan::set_use_hash_table(bool value) { - _internal_set_use_hash_table(value); - // @@protoc_insertion_point(field_set:pg_query.SubPlan.use_hash_table) -} - -// bool unknown_eq_false = 11 [json_name = "unknownEqFalse"]; -inline void SubPlan::clear_unknown_eq_false() { - _impl_.unknown_eq_false_ = false; -} -inline bool SubPlan::_internal_unknown_eq_false() const { - return _impl_.unknown_eq_false_; -} -inline bool SubPlan::unknown_eq_false() const { - // @@protoc_insertion_point(field_get:pg_query.SubPlan.unknown_eq_false) - return _internal_unknown_eq_false(); -} -inline void SubPlan::_internal_set_unknown_eq_false(bool value) { - - _impl_.unknown_eq_false_ = value; -} -inline void SubPlan::set_unknown_eq_false(bool value) { - _internal_set_unknown_eq_false(value); - // @@protoc_insertion_point(field_set:pg_query.SubPlan.unknown_eq_false) -} - -// bool parallel_safe = 12 [json_name = "parallel_safe"]; -inline void SubPlan::clear_parallel_safe() { - _impl_.parallel_safe_ = false; -} -inline bool SubPlan::_internal_parallel_safe() const { - return _impl_.parallel_safe_; -} -inline bool SubPlan::parallel_safe() const { - // @@protoc_insertion_point(field_get:pg_query.SubPlan.parallel_safe) - return _internal_parallel_safe(); -} -inline void SubPlan::_internal_set_parallel_safe(bool value) { - - _impl_.parallel_safe_ = value; -} -inline void SubPlan::set_parallel_safe(bool value) { - _internal_set_parallel_safe(value); - // @@protoc_insertion_point(field_set:pg_query.SubPlan.parallel_safe) -} - -// repeated .pg_query.Node set_param = 13 [json_name = "setParam"]; -inline int SubPlan::_internal_set_param_size() const { - return _impl_.set_param_.size(); -} -inline int SubPlan::set_param_size() const { - return _internal_set_param_size(); -} -inline void SubPlan::clear_set_param() { - _impl_.set_param_.Clear(); -} -inline ::pg_query::Node* SubPlan::mutable_set_param(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.SubPlan.set_param) - return _impl_.set_param_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -SubPlan::mutable_set_param() { - // @@protoc_insertion_point(field_mutable_list:pg_query.SubPlan.set_param) - return &_impl_.set_param_; -} -inline const ::pg_query::Node& SubPlan::_internal_set_param(int index) const { - return _impl_.set_param_.Get(index); -} -inline const ::pg_query::Node& SubPlan::set_param(int index) const { - // @@protoc_insertion_point(field_get:pg_query.SubPlan.set_param) - return _internal_set_param(index); -} -inline ::pg_query::Node* SubPlan::_internal_add_set_param() { - return _impl_.set_param_.Add(); -} -inline ::pg_query::Node* SubPlan::add_set_param() { - ::pg_query::Node* _add = _internal_add_set_param(); - // @@protoc_insertion_point(field_add:pg_query.SubPlan.set_param) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -SubPlan::set_param() const { - // @@protoc_insertion_point(field_list:pg_query.SubPlan.set_param) - return _impl_.set_param_; -} - -// repeated .pg_query.Node par_param = 14 [json_name = "parParam"]; -inline int SubPlan::_internal_par_param_size() const { - return _impl_.par_param_.size(); -} -inline int SubPlan::par_param_size() const { - return _internal_par_param_size(); -} -inline void SubPlan::clear_par_param() { - _impl_.par_param_.Clear(); -} -inline ::pg_query::Node* SubPlan::mutable_par_param(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.SubPlan.par_param) - return _impl_.par_param_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -SubPlan::mutable_par_param() { - // @@protoc_insertion_point(field_mutable_list:pg_query.SubPlan.par_param) - return &_impl_.par_param_; -} -inline const ::pg_query::Node& SubPlan::_internal_par_param(int index) const { - return _impl_.par_param_.Get(index); -} -inline const ::pg_query::Node& SubPlan::par_param(int index) const { - // @@protoc_insertion_point(field_get:pg_query.SubPlan.par_param) - return _internal_par_param(index); -} -inline ::pg_query::Node* SubPlan::_internal_add_par_param() { - return _impl_.par_param_.Add(); -} -inline ::pg_query::Node* SubPlan::add_par_param() { - ::pg_query::Node* _add = _internal_add_par_param(); - // @@protoc_insertion_point(field_add:pg_query.SubPlan.par_param) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -SubPlan::par_param() const { - // @@protoc_insertion_point(field_list:pg_query.SubPlan.par_param) - return _impl_.par_param_; -} - -// repeated .pg_query.Node args = 15 [json_name = "args"]; -inline int SubPlan::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int SubPlan::args_size() const { - return _internal_args_size(); -} -inline void SubPlan::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* SubPlan::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.SubPlan.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -SubPlan::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.SubPlan.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& SubPlan::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& SubPlan::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.SubPlan.args) - return _internal_args(index); -} -inline ::pg_query::Node* SubPlan::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* SubPlan::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.SubPlan.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -SubPlan::args() const { - // @@protoc_insertion_point(field_list:pg_query.SubPlan.args) - return _impl_.args_; -} - -// double startup_cost = 16 [json_name = "startup_cost"]; -inline void SubPlan::clear_startup_cost() { - _impl_.startup_cost_ = 0; -} -inline double SubPlan::_internal_startup_cost() const { - return _impl_.startup_cost_; -} -inline double SubPlan::startup_cost() const { - // @@protoc_insertion_point(field_get:pg_query.SubPlan.startup_cost) - return _internal_startup_cost(); -} -inline void SubPlan::_internal_set_startup_cost(double value) { - - _impl_.startup_cost_ = value; -} -inline void SubPlan::set_startup_cost(double value) { - _internal_set_startup_cost(value); - // @@protoc_insertion_point(field_set:pg_query.SubPlan.startup_cost) -} - -// double per_call_cost = 17 [json_name = "per_call_cost"]; -inline void SubPlan::clear_per_call_cost() { - _impl_.per_call_cost_ = 0; -} -inline double SubPlan::_internal_per_call_cost() const { - return _impl_.per_call_cost_; -} -inline double SubPlan::per_call_cost() const { - // @@protoc_insertion_point(field_get:pg_query.SubPlan.per_call_cost) - return _internal_per_call_cost(); -} -inline void SubPlan::_internal_set_per_call_cost(double value) { - - _impl_.per_call_cost_ = value; -} -inline void SubPlan::set_per_call_cost(double value) { - _internal_set_per_call_cost(value); - // @@protoc_insertion_point(field_set:pg_query.SubPlan.per_call_cost) -} - -// ------------------------------------------------------------------- - -// AlternativeSubPlan - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool AlternativeSubPlan::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool AlternativeSubPlan::has_xpr() const { - return _internal_has_xpr(); -} -inline void AlternativeSubPlan::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& AlternativeSubPlan::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& AlternativeSubPlan::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.AlternativeSubPlan.xpr) - return _internal_xpr(); -} -inline void AlternativeSubPlan::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlternativeSubPlan.xpr) -} -inline ::pg_query::Node* AlternativeSubPlan::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* AlternativeSubPlan::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.AlternativeSubPlan.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* AlternativeSubPlan::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* AlternativeSubPlan::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.AlternativeSubPlan.xpr) - return _msg; -} -inline void AlternativeSubPlan::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlternativeSubPlan.xpr) -} - -// repeated .pg_query.Node subplans = 2 [json_name = "subplans"]; -inline int AlternativeSubPlan::_internal_subplans_size() const { - return _impl_.subplans_.size(); -} -inline int AlternativeSubPlan::subplans_size() const { - return _internal_subplans_size(); -} -inline void AlternativeSubPlan::clear_subplans() { - _impl_.subplans_.Clear(); -} -inline ::pg_query::Node* AlternativeSubPlan::mutable_subplans(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlternativeSubPlan.subplans) - return _impl_.subplans_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlternativeSubPlan::mutable_subplans() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlternativeSubPlan.subplans) - return &_impl_.subplans_; -} -inline const ::pg_query::Node& AlternativeSubPlan::_internal_subplans(int index) const { - return _impl_.subplans_.Get(index); -} -inline const ::pg_query::Node& AlternativeSubPlan::subplans(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlternativeSubPlan.subplans) - return _internal_subplans(index); -} -inline ::pg_query::Node* AlternativeSubPlan::_internal_add_subplans() { - return _impl_.subplans_.Add(); -} -inline ::pg_query::Node* AlternativeSubPlan::add_subplans() { - ::pg_query::Node* _add = _internal_add_subplans(); - // @@protoc_insertion_point(field_add:pg_query.AlternativeSubPlan.subplans) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlternativeSubPlan::subplans() const { - // @@protoc_insertion_point(field_list:pg_query.AlternativeSubPlan.subplans) - return _impl_.subplans_; -} - -// ------------------------------------------------------------------- - -// FieldSelect - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool FieldSelect::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool FieldSelect::has_xpr() const { - return _internal_has_xpr(); -} -inline void FieldSelect::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& FieldSelect::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& FieldSelect::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.FieldSelect.xpr) - return _internal_xpr(); -} -inline void FieldSelect::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.FieldSelect.xpr) -} -inline ::pg_query::Node* FieldSelect::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* FieldSelect::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.FieldSelect.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* FieldSelect::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* FieldSelect::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.FieldSelect.xpr) - return _msg; -} -inline void FieldSelect::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.FieldSelect.xpr) -} - -// .pg_query.Node arg = 2 [json_name = "arg"]; -inline bool FieldSelect::_internal_has_arg() const { - return this != internal_default_instance() && _impl_.arg_ != nullptr; -} -inline bool FieldSelect::has_arg() const { - return _internal_has_arg(); -} -inline void FieldSelect::clear_arg() { - if (GetArenaForAllocation() == nullptr && _impl_.arg_ != nullptr) { - delete _impl_.arg_; - } - _impl_.arg_ = nullptr; -} -inline const ::pg_query::Node& FieldSelect::_internal_arg() const { - const ::pg_query::Node* p = _impl_.arg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& FieldSelect::arg() const { - // @@protoc_insertion_point(field_get:pg_query.FieldSelect.arg) - return _internal_arg(); -} -inline void FieldSelect::unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arg_); - } - _impl_.arg_ = arg; - if (arg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.FieldSelect.arg) -} -inline ::pg_query::Node* FieldSelect::release_arg() { - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* FieldSelect::unsafe_arena_release_arg() { - // @@protoc_insertion_point(field_release:pg_query.FieldSelect.arg) - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; - return temp; -} -inline ::pg_query::Node* FieldSelect::_internal_mutable_arg() { - - if (_impl_.arg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.arg_ = p; - } - return _impl_.arg_; -} -inline ::pg_query::Node* FieldSelect::mutable_arg() { - ::pg_query::Node* _msg = _internal_mutable_arg(); - // @@protoc_insertion_point(field_mutable:pg_query.FieldSelect.arg) - return _msg; -} -inline void FieldSelect::set_allocated_arg(::pg_query::Node* arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.arg_; - } - if (arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(arg); - if (message_arena != submessage_arena) { - arg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, arg, submessage_arena); - } - - } else { - - } - _impl_.arg_ = arg; - // @@protoc_insertion_point(field_set_allocated:pg_query.FieldSelect.arg) -} - -// int32 fieldnum = 3 [json_name = "fieldnum"]; -inline void FieldSelect::clear_fieldnum() { - _impl_.fieldnum_ = 0; -} -inline int32_t FieldSelect::_internal_fieldnum() const { - return _impl_.fieldnum_; -} -inline int32_t FieldSelect::fieldnum() const { - // @@protoc_insertion_point(field_get:pg_query.FieldSelect.fieldnum) - return _internal_fieldnum(); -} -inline void FieldSelect::_internal_set_fieldnum(int32_t value) { - - _impl_.fieldnum_ = value; -} -inline void FieldSelect::set_fieldnum(int32_t value) { - _internal_set_fieldnum(value); - // @@protoc_insertion_point(field_set:pg_query.FieldSelect.fieldnum) -} - -// uint32 resulttype = 4 [json_name = "resulttype"]; -inline void FieldSelect::clear_resulttype() { - _impl_.resulttype_ = 0u; -} -inline uint32_t FieldSelect::_internal_resulttype() const { - return _impl_.resulttype_; -} -inline uint32_t FieldSelect::resulttype() const { - // @@protoc_insertion_point(field_get:pg_query.FieldSelect.resulttype) - return _internal_resulttype(); -} -inline void FieldSelect::_internal_set_resulttype(uint32_t value) { - - _impl_.resulttype_ = value; -} -inline void FieldSelect::set_resulttype(uint32_t value) { - _internal_set_resulttype(value); - // @@protoc_insertion_point(field_set:pg_query.FieldSelect.resulttype) -} - -// int32 resulttypmod = 5 [json_name = "resulttypmod"]; -inline void FieldSelect::clear_resulttypmod() { - _impl_.resulttypmod_ = 0; -} -inline int32_t FieldSelect::_internal_resulttypmod() const { - return _impl_.resulttypmod_; -} -inline int32_t FieldSelect::resulttypmod() const { - // @@protoc_insertion_point(field_get:pg_query.FieldSelect.resulttypmod) - return _internal_resulttypmod(); -} -inline void FieldSelect::_internal_set_resulttypmod(int32_t value) { - - _impl_.resulttypmod_ = value; -} -inline void FieldSelect::set_resulttypmod(int32_t value) { - _internal_set_resulttypmod(value); - // @@protoc_insertion_point(field_set:pg_query.FieldSelect.resulttypmod) -} - -// uint32 resultcollid = 6 [json_name = "resultcollid"]; -inline void FieldSelect::clear_resultcollid() { - _impl_.resultcollid_ = 0u; -} -inline uint32_t FieldSelect::_internal_resultcollid() const { - return _impl_.resultcollid_; -} -inline uint32_t FieldSelect::resultcollid() const { - // @@protoc_insertion_point(field_get:pg_query.FieldSelect.resultcollid) - return _internal_resultcollid(); -} -inline void FieldSelect::_internal_set_resultcollid(uint32_t value) { - - _impl_.resultcollid_ = value; -} -inline void FieldSelect::set_resultcollid(uint32_t value) { - _internal_set_resultcollid(value); - // @@protoc_insertion_point(field_set:pg_query.FieldSelect.resultcollid) -} - -// ------------------------------------------------------------------- - -// FieldStore - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool FieldStore::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool FieldStore::has_xpr() const { - return _internal_has_xpr(); -} -inline void FieldStore::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& FieldStore::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& FieldStore::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.FieldStore.xpr) - return _internal_xpr(); -} -inline void FieldStore::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.FieldStore.xpr) -} -inline ::pg_query::Node* FieldStore::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* FieldStore::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.FieldStore.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* FieldStore::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* FieldStore::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.FieldStore.xpr) - return _msg; -} -inline void FieldStore::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.FieldStore.xpr) -} - -// .pg_query.Node arg = 2 [json_name = "arg"]; -inline bool FieldStore::_internal_has_arg() const { - return this != internal_default_instance() && _impl_.arg_ != nullptr; -} -inline bool FieldStore::has_arg() const { - return _internal_has_arg(); -} -inline void FieldStore::clear_arg() { - if (GetArenaForAllocation() == nullptr && _impl_.arg_ != nullptr) { - delete _impl_.arg_; - } - _impl_.arg_ = nullptr; -} -inline const ::pg_query::Node& FieldStore::_internal_arg() const { - const ::pg_query::Node* p = _impl_.arg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& FieldStore::arg() const { - // @@protoc_insertion_point(field_get:pg_query.FieldStore.arg) - return _internal_arg(); -} -inline void FieldStore::unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arg_); - } - _impl_.arg_ = arg; - if (arg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.FieldStore.arg) -} -inline ::pg_query::Node* FieldStore::release_arg() { - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* FieldStore::unsafe_arena_release_arg() { - // @@protoc_insertion_point(field_release:pg_query.FieldStore.arg) - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; - return temp; -} -inline ::pg_query::Node* FieldStore::_internal_mutable_arg() { - - if (_impl_.arg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.arg_ = p; - } - return _impl_.arg_; -} -inline ::pg_query::Node* FieldStore::mutable_arg() { - ::pg_query::Node* _msg = _internal_mutable_arg(); - // @@protoc_insertion_point(field_mutable:pg_query.FieldStore.arg) - return _msg; -} -inline void FieldStore::set_allocated_arg(::pg_query::Node* arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.arg_; - } - if (arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(arg); - if (message_arena != submessage_arena) { - arg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, arg, submessage_arena); - } - - } else { - - } - _impl_.arg_ = arg; - // @@protoc_insertion_point(field_set_allocated:pg_query.FieldStore.arg) -} - -// repeated .pg_query.Node newvals = 3 [json_name = "newvals"]; -inline int FieldStore::_internal_newvals_size() const { - return _impl_.newvals_.size(); -} -inline int FieldStore::newvals_size() const { - return _internal_newvals_size(); -} -inline void FieldStore::clear_newvals() { - _impl_.newvals_.Clear(); -} -inline ::pg_query::Node* FieldStore::mutable_newvals(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.FieldStore.newvals) - return _impl_.newvals_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -FieldStore::mutable_newvals() { - // @@protoc_insertion_point(field_mutable_list:pg_query.FieldStore.newvals) - return &_impl_.newvals_; -} -inline const ::pg_query::Node& FieldStore::_internal_newvals(int index) const { - return _impl_.newvals_.Get(index); -} -inline const ::pg_query::Node& FieldStore::newvals(int index) const { - // @@protoc_insertion_point(field_get:pg_query.FieldStore.newvals) - return _internal_newvals(index); -} -inline ::pg_query::Node* FieldStore::_internal_add_newvals() { - return _impl_.newvals_.Add(); -} -inline ::pg_query::Node* FieldStore::add_newvals() { - ::pg_query::Node* _add = _internal_add_newvals(); - // @@protoc_insertion_point(field_add:pg_query.FieldStore.newvals) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -FieldStore::newvals() const { - // @@protoc_insertion_point(field_list:pg_query.FieldStore.newvals) - return _impl_.newvals_; -} - -// repeated .pg_query.Node fieldnums = 4 [json_name = "fieldnums"]; -inline int FieldStore::_internal_fieldnums_size() const { - return _impl_.fieldnums_.size(); -} -inline int FieldStore::fieldnums_size() const { - return _internal_fieldnums_size(); -} -inline void FieldStore::clear_fieldnums() { - _impl_.fieldnums_.Clear(); -} -inline ::pg_query::Node* FieldStore::mutable_fieldnums(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.FieldStore.fieldnums) - return _impl_.fieldnums_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -FieldStore::mutable_fieldnums() { - // @@protoc_insertion_point(field_mutable_list:pg_query.FieldStore.fieldnums) - return &_impl_.fieldnums_; -} -inline const ::pg_query::Node& FieldStore::_internal_fieldnums(int index) const { - return _impl_.fieldnums_.Get(index); -} -inline const ::pg_query::Node& FieldStore::fieldnums(int index) const { - // @@protoc_insertion_point(field_get:pg_query.FieldStore.fieldnums) - return _internal_fieldnums(index); -} -inline ::pg_query::Node* FieldStore::_internal_add_fieldnums() { - return _impl_.fieldnums_.Add(); -} -inline ::pg_query::Node* FieldStore::add_fieldnums() { - ::pg_query::Node* _add = _internal_add_fieldnums(); - // @@protoc_insertion_point(field_add:pg_query.FieldStore.fieldnums) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -FieldStore::fieldnums() const { - // @@protoc_insertion_point(field_list:pg_query.FieldStore.fieldnums) - return _impl_.fieldnums_; -} - -// uint32 resulttype = 5 [json_name = "resulttype"]; -inline void FieldStore::clear_resulttype() { - _impl_.resulttype_ = 0u; -} -inline uint32_t FieldStore::_internal_resulttype() const { - return _impl_.resulttype_; -} -inline uint32_t FieldStore::resulttype() const { - // @@protoc_insertion_point(field_get:pg_query.FieldStore.resulttype) - return _internal_resulttype(); -} -inline void FieldStore::_internal_set_resulttype(uint32_t value) { - - _impl_.resulttype_ = value; -} -inline void FieldStore::set_resulttype(uint32_t value) { - _internal_set_resulttype(value); - // @@protoc_insertion_point(field_set:pg_query.FieldStore.resulttype) -} - -// ------------------------------------------------------------------- - -// RelabelType - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool RelabelType::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool RelabelType::has_xpr() const { - return _internal_has_xpr(); -} -inline void RelabelType::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& RelabelType::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& RelabelType::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.RelabelType.xpr) - return _internal_xpr(); -} -inline void RelabelType::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RelabelType.xpr) -} -inline ::pg_query::Node* RelabelType::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* RelabelType::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.RelabelType.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* RelabelType::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* RelabelType::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.RelabelType.xpr) - return _msg; -} -inline void RelabelType::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.RelabelType.xpr) -} - -// .pg_query.Node arg = 2 [json_name = "arg"]; -inline bool RelabelType::_internal_has_arg() const { - return this != internal_default_instance() && _impl_.arg_ != nullptr; -} -inline bool RelabelType::has_arg() const { - return _internal_has_arg(); -} -inline void RelabelType::clear_arg() { - if (GetArenaForAllocation() == nullptr && _impl_.arg_ != nullptr) { - delete _impl_.arg_; - } - _impl_.arg_ = nullptr; -} -inline const ::pg_query::Node& RelabelType::_internal_arg() const { - const ::pg_query::Node* p = _impl_.arg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& RelabelType::arg() const { - // @@protoc_insertion_point(field_get:pg_query.RelabelType.arg) - return _internal_arg(); -} -inline void RelabelType::unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arg_); - } - _impl_.arg_ = arg; - if (arg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RelabelType.arg) -} -inline ::pg_query::Node* RelabelType::release_arg() { - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* RelabelType::unsafe_arena_release_arg() { - // @@protoc_insertion_point(field_release:pg_query.RelabelType.arg) - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; - return temp; -} -inline ::pg_query::Node* RelabelType::_internal_mutable_arg() { - - if (_impl_.arg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.arg_ = p; - } - return _impl_.arg_; -} -inline ::pg_query::Node* RelabelType::mutable_arg() { - ::pg_query::Node* _msg = _internal_mutable_arg(); - // @@protoc_insertion_point(field_mutable:pg_query.RelabelType.arg) - return _msg; -} -inline void RelabelType::set_allocated_arg(::pg_query::Node* arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.arg_; - } - if (arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(arg); - if (message_arena != submessage_arena) { - arg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, arg, submessage_arena); - } - - } else { - - } - _impl_.arg_ = arg; - // @@protoc_insertion_point(field_set_allocated:pg_query.RelabelType.arg) -} - -// uint32 resulttype = 3 [json_name = "resulttype"]; -inline void RelabelType::clear_resulttype() { - _impl_.resulttype_ = 0u; -} -inline uint32_t RelabelType::_internal_resulttype() const { - return _impl_.resulttype_; -} -inline uint32_t RelabelType::resulttype() const { - // @@protoc_insertion_point(field_get:pg_query.RelabelType.resulttype) - return _internal_resulttype(); -} -inline void RelabelType::_internal_set_resulttype(uint32_t value) { - - _impl_.resulttype_ = value; -} -inline void RelabelType::set_resulttype(uint32_t value) { - _internal_set_resulttype(value); - // @@protoc_insertion_point(field_set:pg_query.RelabelType.resulttype) -} - -// int32 resulttypmod = 4 [json_name = "resulttypmod"]; -inline void RelabelType::clear_resulttypmod() { - _impl_.resulttypmod_ = 0; -} -inline int32_t RelabelType::_internal_resulttypmod() const { - return _impl_.resulttypmod_; -} -inline int32_t RelabelType::resulttypmod() const { - // @@protoc_insertion_point(field_get:pg_query.RelabelType.resulttypmod) - return _internal_resulttypmod(); -} -inline void RelabelType::_internal_set_resulttypmod(int32_t value) { - - _impl_.resulttypmod_ = value; -} -inline void RelabelType::set_resulttypmod(int32_t value) { - _internal_set_resulttypmod(value); - // @@protoc_insertion_point(field_set:pg_query.RelabelType.resulttypmod) -} - -// uint32 resultcollid = 5 [json_name = "resultcollid"]; -inline void RelabelType::clear_resultcollid() { - _impl_.resultcollid_ = 0u; -} -inline uint32_t RelabelType::_internal_resultcollid() const { - return _impl_.resultcollid_; -} -inline uint32_t RelabelType::resultcollid() const { - // @@protoc_insertion_point(field_get:pg_query.RelabelType.resultcollid) - return _internal_resultcollid(); -} -inline void RelabelType::_internal_set_resultcollid(uint32_t value) { - - _impl_.resultcollid_ = value; -} -inline void RelabelType::set_resultcollid(uint32_t value) { - _internal_set_resultcollid(value); - // @@protoc_insertion_point(field_set:pg_query.RelabelType.resultcollid) -} - -// .pg_query.CoercionForm relabelformat = 6 [json_name = "relabelformat"]; -inline void RelabelType::clear_relabelformat() { - _impl_.relabelformat_ = 0; -} -inline ::pg_query::CoercionForm RelabelType::_internal_relabelformat() const { - return static_cast< ::pg_query::CoercionForm >(_impl_.relabelformat_); -} -inline ::pg_query::CoercionForm RelabelType::relabelformat() const { - // @@protoc_insertion_point(field_get:pg_query.RelabelType.relabelformat) - return _internal_relabelformat(); -} -inline void RelabelType::_internal_set_relabelformat(::pg_query::CoercionForm value) { - - _impl_.relabelformat_ = value; -} -inline void RelabelType::set_relabelformat(::pg_query::CoercionForm value) { - _internal_set_relabelformat(value); - // @@protoc_insertion_point(field_set:pg_query.RelabelType.relabelformat) -} - -// int32 location = 7 [json_name = "location"]; -inline void RelabelType::clear_location() { - _impl_.location_ = 0; -} -inline int32_t RelabelType::_internal_location() const { - return _impl_.location_; -} -inline int32_t RelabelType::location() const { - // @@protoc_insertion_point(field_get:pg_query.RelabelType.location) - return _internal_location(); -} -inline void RelabelType::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void RelabelType::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.RelabelType.location) -} - -// ------------------------------------------------------------------- - -// CoerceViaIO - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool CoerceViaIO::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool CoerceViaIO::has_xpr() const { - return _internal_has_xpr(); -} -inline void CoerceViaIO::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& CoerceViaIO::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CoerceViaIO::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.CoerceViaIO.xpr) - return _internal_xpr(); -} -inline void CoerceViaIO::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CoerceViaIO.xpr) -} -inline ::pg_query::Node* CoerceViaIO::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CoerceViaIO::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.CoerceViaIO.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* CoerceViaIO::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* CoerceViaIO::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.CoerceViaIO.xpr) - return _msg; -} -inline void CoerceViaIO::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.CoerceViaIO.xpr) -} - -// .pg_query.Node arg = 2 [json_name = "arg"]; -inline bool CoerceViaIO::_internal_has_arg() const { - return this != internal_default_instance() && _impl_.arg_ != nullptr; -} -inline bool CoerceViaIO::has_arg() const { - return _internal_has_arg(); -} -inline void CoerceViaIO::clear_arg() { - if (GetArenaForAllocation() == nullptr && _impl_.arg_ != nullptr) { - delete _impl_.arg_; - } - _impl_.arg_ = nullptr; -} -inline const ::pg_query::Node& CoerceViaIO::_internal_arg() const { - const ::pg_query::Node* p = _impl_.arg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CoerceViaIO::arg() const { - // @@protoc_insertion_point(field_get:pg_query.CoerceViaIO.arg) - return _internal_arg(); -} -inline void CoerceViaIO::unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arg_); - } - _impl_.arg_ = arg; - if (arg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CoerceViaIO.arg) -} -inline ::pg_query::Node* CoerceViaIO::release_arg() { - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CoerceViaIO::unsafe_arena_release_arg() { - // @@protoc_insertion_point(field_release:pg_query.CoerceViaIO.arg) - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; - return temp; -} -inline ::pg_query::Node* CoerceViaIO::_internal_mutable_arg() { - - if (_impl_.arg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.arg_ = p; - } - return _impl_.arg_; -} -inline ::pg_query::Node* CoerceViaIO::mutable_arg() { - ::pg_query::Node* _msg = _internal_mutable_arg(); - // @@protoc_insertion_point(field_mutable:pg_query.CoerceViaIO.arg) - return _msg; -} -inline void CoerceViaIO::set_allocated_arg(::pg_query::Node* arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.arg_; - } - if (arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(arg); - if (message_arena != submessage_arena) { - arg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, arg, submessage_arena); - } - - } else { - - } - _impl_.arg_ = arg; - // @@protoc_insertion_point(field_set_allocated:pg_query.CoerceViaIO.arg) -} - -// uint32 resulttype = 3 [json_name = "resulttype"]; -inline void CoerceViaIO::clear_resulttype() { - _impl_.resulttype_ = 0u; -} -inline uint32_t CoerceViaIO::_internal_resulttype() const { - return _impl_.resulttype_; -} -inline uint32_t CoerceViaIO::resulttype() const { - // @@protoc_insertion_point(field_get:pg_query.CoerceViaIO.resulttype) - return _internal_resulttype(); -} -inline void CoerceViaIO::_internal_set_resulttype(uint32_t value) { - - _impl_.resulttype_ = value; -} -inline void CoerceViaIO::set_resulttype(uint32_t value) { - _internal_set_resulttype(value); - // @@protoc_insertion_point(field_set:pg_query.CoerceViaIO.resulttype) -} - -// uint32 resultcollid = 4 [json_name = "resultcollid"]; -inline void CoerceViaIO::clear_resultcollid() { - _impl_.resultcollid_ = 0u; -} -inline uint32_t CoerceViaIO::_internal_resultcollid() const { - return _impl_.resultcollid_; -} -inline uint32_t CoerceViaIO::resultcollid() const { - // @@protoc_insertion_point(field_get:pg_query.CoerceViaIO.resultcollid) - return _internal_resultcollid(); -} -inline void CoerceViaIO::_internal_set_resultcollid(uint32_t value) { - - _impl_.resultcollid_ = value; -} -inline void CoerceViaIO::set_resultcollid(uint32_t value) { - _internal_set_resultcollid(value); - // @@protoc_insertion_point(field_set:pg_query.CoerceViaIO.resultcollid) -} - -// .pg_query.CoercionForm coerceformat = 5 [json_name = "coerceformat"]; -inline void CoerceViaIO::clear_coerceformat() { - _impl_.coerceformat_ = 0; -} -inline ::pg_query::CoercionForm CoerceViaIO::_internal_coerceformat() const { - return static_cast< ::pg_query::CoercionForm >(_impl_.coerceformat_); -} -inline ::pg_query::CoercionForm CoerceViaIO::coerceformat() const { - // @@protoc_insertion_point(field_get:pg_query.CoerceViaIO.coerceformat) - return _internal_coerceformat(); -} -inline void CoerceViaIO::_internal_set_coerceformat(::pg_query::CoercionForm value) { - - _impl_.coerceformat_ = value; -} -inline void CoerceViaIO::set_coerceformat(::pg_query::CoercionForm value) { - _internal_set_coerceformat(value); - // @@protoc_insertion_point(field_set:pg_query.CoerceViaIO.coerceformat) -} - -// int32 location = 6 [json_name = "location"]; -inline void CoerceViaIO::clear_location() { - _impl_.location_ = 0; -} -inline int32_t CoerceViaIO::_internal_location() const { - return _impl_.location_; -} -inline int32_t CoerceViaIO::location() const { - // @@protoc_insertion_point(field_get:pg_query.CoerceViaIO.location) - return _internal_location(); -} -inline void CoerceViaIO::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void CoerceViaIO::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.CoerceViaIO.location) -} - -// ------------------------------------------------------------------- - -// ArrayCoerceExpr - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool ArrayCoerceExpr::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool ArrayCoerceExpr::has_xpr() const { - return _internal_has_xpr(); -} -inline void ArrayCoerceExpr::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& ArrayCoerceExpr::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& ArrayCoerceExpr::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.ArrayCoerceExpr.xpr) - return _internal_xpr(); -} -inline void ArrayCoerceExpr::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.ArrayCoerceExpr.xpr) -} -inline ::pg_query::Node* ArrayCoerceExpr::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* ArrayCoerceExpr::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.ArrayCoerceExpr.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* ArrayCoerceExpr::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* ArrayCoerceExpr::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.ArrayCoerceExpr.xpr) - return _msg; -} -inline void ArrayCoerceExpr::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.ArrayCoerceExpr.xpr) -} - -// .pg_query.Node arg = 2 [json_name = "arg"]; -inline bool ArrayCoerceExpr::_internal_has_arg() const { - return this != internal_default_instance() && _impl_.arg_ != nullptr; -} -inline bool ArrayCoerceExpr::has_arg() const { - return _internal_has_arg(); -} -inline void ArrayCoerceExpr::clear_arg() { - if (GetArenaForAllocation() == nullptr && _impl_.arg_ != nullptr) { - delete _impl_.arg_; - } - _impl_.arg_ = nullptr; -} -inline const ::pg_query::Node& ArrayCoerceExpr::_internal_arg() const { - const ::pg_query::Node* p = _impl_.arg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& ArrayCoerceExpr::arg() const { - // @@protoc_insertion_point(field_get:pg_query.ArrayCoerceExpr.arg) - return _internal_arg(); -} -inline void ArrayCoerceExpr::unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arg_); - } - _impl_.arg_ = arg; - if (arg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.ArrayCoerceExpr.arg) -} -inline ::pg_query::Node* ArrayCoerceExpr::release_arg() { - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* ArrayCoerceExpr::unsafe_arena_release_arg() { - // @@protoc_insertion_point(field_release:pg_query.ArrayCoerceExpr.arg) - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; - return temp; -} -inline ::pg_query::Node* ArrayCoerceExpr::_internal_mutable_arg() { - - if (_impl_.arg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.arg_ = p; - } - return _impl_.arg_; -} -inline ::pg_query::Node* ArrayCoerceExpr::mutable_arg() { - ::pg_query::Node* _msg = _internal_mutable_arg(); - // @@protoc_insertion_point(field_mutable:pg_query.ArrayCoerceExpr.arg) - return _msg; -} -inline void ArrayCoerceExpr::set_allocated_arg(::pg_query::Node* arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.arg_; - } - if (arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(arg); - if (message_arena != submessage_arena) { - arg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, arg, submessage_arena); - } - - } else { - - } - _impl_.arg_ = arg; - // @@protoc_insertion_point(field_set_allocated:pg_query.ArrayCoerceExpr.arg) -} - -// .pg_query.Node elemexpr = 3 [json_name = "elemexpr"]; -inline bool ArrayCoerceExpr::_internal_has_elemexpr() const { - return this != internal_default_instance() && _impl_.elemexpr_ != nullptr; -} -inline bool ArrayCoerceExpr::has_elemexpr() const { - return _internal_has_elemexpr(); -} -inline void ArrayCoerceExpr::clear_elemexpr() { - if (GetArenaForAllocation() == nullptr && _impl_.elemexpr_ != nullptr) { - delete _impl_.elemexpr_; - } - _impl_.elemexpr_ = nullptr; -} -inline const ::pg_query::Node& ArrayCoerceExpr::_internal_elemexpr() const { - const ::pg_query::Node* p = _impl_.elemexpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& ArrayCoerceExpr::elemexpr() const { - // @@protoc_insertion_point(field_get:pg_query.ArrayCoerceExpr.elemexpr) - return _internal_elemexpr(); -} -inline void ArrayCoerceExpr::unsafe_arena_set_allocated_elemexpr( - ::pg_query::Node* elemexpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.elemexpr_); - } - _impl_.elemexpr_ = elemexpr; - if (elemexpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.ArrayCoerceExpr.elemexpr) -} -inline ::pg_query::Node* ArrayCoerceExpr::release_elemexpr() { - - ::pg_query::Node* temp = _impl_.elemexpr_; - _impl_.elemexpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* ArrayCoerceExpr::unsafe_arena_release_elemexpr() { - // @@protoc_insertion_point(field_release:pg_query.ArrayCoerceExpr.elemexpr) - - ::pg_query::Node* temp = _impl_.elemexpr_; - _impl_.elemexpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* ArrayCoerceExpr::_internal_mutable_elemexpr() { - - if (_impl_.elemexpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.elemexpr_ = p; - } - return _impl_.elemexpr_; -} -inline ::pg_query::Node* ArrayCoerceExpr::mutable_elemexpr() { - ::pg_query::Node* _msg = _internal_mutable_elemexpr(); - // @@protoc_insertion_point(field_mutable:pg_query.ArrayCoerceExpr.elemexpr) - return _msg; -} -inline void ArrayCoerceExpr::set_allocated_elemexpr(::pg_query::Node* elemexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.elemexpr_; - } - if (elemexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(elemexpr); - if (message_arena != submessage_arena) { - elemexpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, elemexpr, submessage_arena); - } - - } else { - - } - _impl_.elemexpr_ = elemexpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.ArrayCoerceExpr.elemexpr) -} - -// uint32 resulttype = 4 [json_name = "resulttype"]; -inline void ArrayCoerceExpr::clear_resulttype() { - _impl_.resulttype_ = 0u; -} -inline uint32_t ArrayCoerceExpr::_internal_resulttype() const { - return _impl_.resulttype_; -} -inline uint32_t ArrayCoerceExpr::resulttype() const { - // @@protoc_insertion_point(field_get:pg_query.ArrayCoerceExpr.resulttype) - return _internal_resulttype(); -} -inline void ArrayCoerceExpr::_internal_set_resulttype(uint32_t value) { - - _impl_.resulttype_ = value; -} -inline void ArrayCoerceExpr::set_resulttype(uint32_t value) { - _internal_set_resulttype(value); - // @@protoc_insertion_point(field_set:pg_query.ArrayCoerceExpr.resulttype) -} - -// int32 resulttypmod = 5 [json_name = "resulttypmod"]; -inline void ArrayCoerceExpr::clear_resulttypmod() { - _impl_.resulttypmod_ = 0; -} -inline int32_t ArrayCoerceExpr::_internal_resulttypmod() const { - return _impl_.resulttypmod_; -} -inline int32_t ArrayCoerceExpr::resulttypmod() const { - // @@protoc_insertion_point(field_get:pg_query.ArrayCoerceExpr.resulttypmod) - return _internal_resulttypmod(); -} -inline void ArrayCoerceExpr::_internal_set_resulttypmod(int32_t value) { - - _impl_.resulttypmod_ = value; -} -inline void ArrayCoerceExpr::set_resulttypmod(int32_t value) { - _internal_set_resulttypmod(value); - // @@protoc_insertion_point(field_set:pg_query.ArrayCoerceExpr.resulttypmod) -} - -// uint32 resultcollid = 6 [json_name = "resultcollid"]; -inline void ArrayCoerceExpr::clear_resultcollid() { - _impl_.resultcollid_ = 0u; -} -inline uint32_t ArrayCoerceExpr::_internal_resultcollid() const { - return _impl_.resultcollid_; -} -inline uint32_t ArrayCoerceExpr::resultcollid() const { - // @@protoc_insertion_point(field_get:pg_query.ArrayCoerceExpr.resultcollid) - return _internal_resultcollid(); -} -inline void ArrayCoerceExpr::_internal_set_resultcollid(uint32_t value) { - - _impl_.resultcollid_ = value; -} -inline void ArrayCoerceExpr::set_resultcollid(uint32_t value) { - _internal_set_resultcollid(value); - // @@protoc_insertion_point(field_set:pg_query.ArrayCoerceExpr.resultcollid) -} - -// .pg_query.CoercionForm coerceformat = 7 [json_name = "coerceformat"]; -inline void ArrayCoerceExpr::clear_coerceformat() { - _impl_.coerceformat_ = 0; -} -inline ::pg_query::CoercionForm ArrayCoerceExpr::_internal_coerceformat() const { - return static_cast< ::pg_query::CoercionForm >(_impl_.coerceformat_); -} -inline ::pg_query::CoercionForm ArrayCoerceExpr::coerceformat() const { - // @@protoc_insertion_point(field_get:pg_query.ArrayCoerceExpr.coerceformat) - return _internal_coerceformat(); -} -inline void ArrayCoerceExpr::_internal_set_coerceformat(::pg_query::CoercionForm value) { - - _impl_.coerceformat_ = value; -} -inline void ArrayCoerceExpr::set_coerceformat(::pg_query::CoercionForm value) { - _internal_set_coerceformat(value); - // @@protoc_insertion_point(field_set:pg_query.ArrayCoerceExpr.coerceformat) -} - -// int32 location = 8 [json_name = "location"]; -inline void ArrayCoerceExpr::clear_location() { - _impl_.location_ = 0; -} -inline int32_t ArrayCoerceExpr::_internal_location() const { - return _impl_.location_; -} -inline int32_t ArrayCoerceExpr::location() const { - // @@protoc_insertion_point(field_get:pg_query.ArrayCoerceExpr.location) - return _internal_location(); -} -inline void ArrayCoerceExpr::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void ArrayCoerceExpr::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.ArrayCoerceExpr.location) -} - -// ------------------------------------------------------------------- - -// ConvertRowtypeExpr - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool ConvertRowtypeExpr::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool ConvertRowtypeExpr::has_xpr() const { - return _internal_has_xpr(); -} -inline void ConvertRowtypeExpr::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& ConvertRowtypeExpr::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& ConvertRowtypeExpr::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.ConvertRowtypeExpr.xpr) - return _internal_xpr(); -} -inline void ConvertRowtypeExpr::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.ConvertRowtypeExpr.xpr) -} -inline ::pg_query::Node* ConvertRowtypeExpr::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* ConvertRowtypeExpr::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.ConvertRowtypeExpr.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* ConvertRowtypeExpr::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* ConvertRowtypeExpr::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.ConvertRowtypeExpr.xpr) - return _msg; -} -inline void ConvertRowtypeExpr::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.ConvertRowtypeExpr.xpr) -} - -// .pg_query.Node arg = 2 [json_name = "arg"]; -inline bool ConvertRowtypeExpr::_internal_has_arg() const { - return this != internal_default_instance() && _impl_.arg_ != nullptr; -} -inline bool ConvertRowtypeExpr::has_arg() const { - return _internal_has_arg(); -} -inline void ConvertRowtypeExpr::clear_arg() { - if (GetArenaForAllocation() == nullptr && _impl_.arg_ != nullptr) { - delete _impl_.arg_; - } - _impl_.arg_ = nullptr; -} -inline const ::pg_query::Node& ConvertRowtypeExpr::_internal_arg() const { - const ::pg_query::Node* p = _impl_.arg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& ConvertRowtypeExpr::arg() const { - // @@protoc_insertion_point(field_get:pg_query.ConvertRowtypeExpr.arg) - return _internal_arg(); -} -inline void ConvertRowtypeExpr::unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arg_); - } - _impl_.arg_ = arg; - if (arg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.ConvertRowtypeExpr.arg) -} -inline ::pg_query::Node* ConvertRowtypeExpr::release_arg() { - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* ConvertRowtypeExpr::unsafe_arena_release_arg() { - // @@protoc_insertion_point(field_release:pg_query.ConvertRowtypeExpr.arg) - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; - return temp; -} -inline ::pg_query::Node* ConvertRowtypeExpr::_internal_mutable_arg() { - - if (_impl_.arg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.arg_ = p; - } - return _impl_.arg_; -} -inline ::pg_query::Node* ConvertRowtypeExpr::mutable_arg() { - ::pg_query::Node* _msg = _internal_mutable_arg(); - // @@protoc_insertion_point(field_mutable:pg_query.ConvertRowtypeExpr.arg) - return _msg; -} -inline void ConvertRowtypeExpr::set_allocated_arg(::pg_query::Node* arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.arg_; - } - if (arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(arg); - if (message_arena != submessage_arena) { - arg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, arg, submessage_arena); - } - - } else { - - } - _impl_.arg_ = arg; - // @@protoc_insertion_point(field_set_allocated:pg_query.ConvertRowtypeExpr.arg) -} - -// uint32 resulttype = 3 [json_name = "resulttype"]; -inline void ConvertRowtypeExpr::clear_resulttype() { - _impl_.resulttype_ = 0u; -} -inline uint32_t ConvertRowtypeExpr::_internal_resulttype() const { - return _impl_.resulttype_; -} -inline uint32_t ConvertRowtypeExpr::resulttype() const { - // @@protoc_insertion_point(field_get:pg_query.ConvertRowtypeExpr.resulttype) - return _internal_resulttype(); -} -inline void ConvertRowtypeExpr::_internal_set_resulttype(uint32_t value) { - - _impl_.resulttype_ = value; -} -inline void ConvertRowtypeExpr::set_resulttype(uint32_t value) { - _internal_set_resulttype(value); - // @@protoc_insertion_point(field_set:pg_query.ConvertRowtypeExpr.resulttype) -} - -// .pg_query.CoercionForm convertformat = 4 [json_name = "convertformat"]; -inline void ConvertRowtypeExpr::clear_convertformat() { - _impl_.convertformat_ = 0; -} -inline ::pg_query::CoercionForm ConvertRowtypeExpr::_internal_convertformat() const { - return static_cast< ::pg_query::CoercionForm >(_impl_.convertformat_); -} -inline ::pg_query::CoercionForm ConvertRowtypeExpr::convertformat() const { - // @@protoc_insertion_point(field_get:pg_query.ConvertRowtypeExpr.convertformat) - return _internal_convertformat(); -} -inline void ConvertRowtypeExpr::_internal_set_convertformat(::pg_query::CoercionForm value) { - - _impl_.convertformat_ = value; -} -inline void ConvertRowtypeExpr::set_convertformat(::pg_query::CoercionForm value) { - _internal_set_convertformat(value); - // @@protoc_insertion_point(field_set:pg_query.ConvertRowtypeExpr.convertformat) -} - -// int32 location = 5 [json_name = "location"]; -inline void ConvertRowtypeExpr::clear_location() { - _impl_.location_ = 0; -} -inline int32_t ConvertRowtypeExpr::_internal_location() const { - return _impl_.location_; -} -inline int32_t ConvertRowtypeExpr::location() const { - // @@protoc_insertion_point(field_get:pg_query.ConvertRowtypeExpr.location) - return _internal_location(); -} -inline void ConvertRowtypeExpr::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void ConvertRowtypeExpr::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.ConvertRowtypeExpr.location) -} - -// ------------------------------------------------------------------- - -// CollateExpr - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool CollateExpr::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool CollateExpr::has_xpr() const { - return _internal_has_xpr(); -} -inline void CollateExpr::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& CollateExpr::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CollateExpr::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.CollateExpr.xpr) - return _internal_xpr(); -} -inline void CollateExpr::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CollateExpr.xpr) -} -inline ::pg_query::Node* CollateExpr::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CollateExpr::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.CollateExpr.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* CollateExpr::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* CollateExpr::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.CollateExpr.xpr) - return _msg; -} -inline void CollateExpr::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.CollateExpr.xpr) -} - -// .pg_query.Node arg = 2 [json_name = "arg"]; -inline bool CollateExpr::_internal_has_arg() const { - return this != internal_default_instance() && _impl_.arg_ != nullptr; -} -inline bool CollateExpr::has_arg() const { - return _internal_has_arg(); -} -inline void CollateExpr::clear_arg() { - if (GetArenaForAllocation() == nullptr && _impl_.arg_ != nullptr) { - delete _impl_.arg_; - } - _impl_.arg_ = nullptr; -} -inline const ::pg_query::Node& CollateExpr::_internal_arg() const { - const ::pg_query::Node* p = _impl_.arg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CollateExpr::arg() const { - // @@protoc_insertion_point(field_get:pg_query.CollateExpr.arg) - return _internal_arg(); -} -inline void CollateExpr::unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arg_); - } - _impl_.arg_ = arg; - if (arg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CollateExpr.arg) -} -inline ::pg_query::Node* CollateExpr::release_arg() { - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CollateExpr::unsafe_arena_release_arg() { - // @@protoc_insertion_point(field_release:pg_query.CollateExpr.arg) - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; - return temp; -} -inline ::pg_query::Node* CollateExpr::_internal_mutable_arg() { - - if (_impl_.arg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.arg_ = p; - } - return _impl_.arg_; -} -inline ::pg_query::Node* CollateExpr::mutable_arg() { - ::pg_query::Node* _msg = _internal_mutable_arg(); - // @@protoc_insertion_point(field_mutable:pg_query.CollateExpr.arg) - return _msg; -} -inline void CollateExpr::set_allocated_arg(::pg_query::Node* arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.arg_; - } - if (arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(arg); - if (message_arena != submessage_arena) { - arg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, arg, submessage_arena); - } - - } else { - - } - _impl_.arg_ = arg; - // @@protoc_insertion_point(field_set_allocated:pg_query.CollateExpr.arg) -} - -// uint32 coll_oid = 3 [json_name = "collOid"]; -inline void CollateExpr::clear_coll_oid() { - _impl_.coll_oid_ = 0u; -} -inline uint32_t CollateExpr::_internal_coll_oid() const { - return _impl_.coll_oid_; -} -inline uint32_t CollateExpr::coll_oid() const { - // @@protoc_insertion_point(field_get:pg_query.CollateExpr.coll_oid) - return _internal_coll_oid(); -} -inline void CollateExpr::_internal_set_coll_oid(uint32_t value) { - - _impl_.coll_oid_ = value; -} -inline void CollateExpr::set_coll_oid(uint32_t value) { - _internal_set_coll_oid(value); - // @@protoc_insertion_point(field_set:pg_query.CollateExpr.coll_oid) -} - -// int32 location = 4 [json_name = "location"]; -inline void CollateExpr::clear_location() { - _impl_.location_ = 0; -} -inline int32_t CollateExpr::_internal_location() const { - return _impl_.location_; -} -inline int32_t CollateExpr::location() const { - // @@protoc_insertion_point(field_get:pg_query.CollateExpr.location) - return _internal_location(); -} -inline void CollateExpr::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void CollateExpr::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.CollateExpr.location) -} - -// ------------------------------------------------------------------- - -// CaseExpr - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool CaseExpr::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool CaseExpr::has_xpr() const { - return _internal_has_xpr(); -} -inline void CaseExpr::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& CaseExpr::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CaseExpr::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.CaseExpr.xpr) - return _internal_xpr(); -} -inline void CaseExpr::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CaseExpr.xpr) -} -inline ::pg_query::Node* CaseExpr::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CaseExpr::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.CaseExpr.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* CaseExpr::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* CaseExpr::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.CaseExpr.xpr) - return _msg; -} -inline void CaseExpr::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.CaseExpr.xpr) -} - -// uint32 casetype = 2 [json_name = "casetype"]; -inline void CaseExpr::clear_casetype() { - _impl_.casetype_ = 0u; -} -inline uint32_t CaseExpr::_internal_casetype() const { - return _impl_.casetype_; -} -inline uint32_t CaseExpr::casetype() const { - // @@protoc_insertion_point(field_get:pg_query.CaseExpr.casetype) - return _internal_casetype(); -} -inline void CaseExpr::_internal_set_casetype(uint32_t value) { - - _impl_.casetype_ = value; -} -inline void CaseExpr::set_casetype(uint32_t value) { - _internal_set_casetype(value); - // @@protoc_insertion_point(field_set:pg_query.CaseExpr.casetype) -} - -// uint32 casecollid = 3 [json_name = "casecollid"]; -inline void CaseExpr::clear_casecollid() { - _impl_.casecollid_ = 0u; -} -inline uint32_t CaseExpr::_internal_casecollid() const { - return _impl_.casecollid_; -} -inline uint32_t CaseExpr::casecollid() const { - // @@protoc_insertion_point(field_get:pg_query.CaseExpr.casecollid) - return _internal_casecollid(); -} -inline void CaseExpr::_internal_set_casecollid(uint32_t value) { - - _impl_.casecollid_ = value; -} -inline void CaseExpr::set_casecollid(uint32_t value) { - _internal_set_casecollid(value); - // @@protoc_insertion_point(field_set:pg_query.CaseExpr.casecollid) -} - -// .pg_query.Node arg = 4 [json_name = "arg"]; -inline bool CaseExpr::_internal_has_arg() const { - return this != internal_default_instance() && _impl_.arg_ != nullptr; -} -inline bool CaseExpr::has_arg() const { - return _internal_has_arg(); -} -inline void CaseExpr::clear_arg() { - if (GetArenaForAllocation() == nullptr && _impl_.arg_ != nullptr) { - delete _impl_.arg_; - } - _impl_.arg_ = nullptr; -} -inline const ::pg_query::Node& CaseExpr::_internal_arg() const { - const ::pg_query::Node* p = _impl_.arg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CaseExpr::arg() const { - // @@protoc_insertion_point(field_get:pg_query.CaseExpr.arg) - return _internal_arg(); -} -inline void CaseExpr::unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arg_); - } - _impl_.arg_ = arg; - if (arg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CaseExpr.arg) -} -inline ::pg_query::Node* CaseExpr::release_arg() { - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CaseExpr::unsafe_arena_release_arg() { - // @@protoc_insertion_point(field_release:pg_query.CaseExpr.arg) - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; - return temp; -} -inline ::pg_query::Node* CaseExpr::_internal_mutable_arg() { - - if (_impl_.arg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.arg_ = p; - } - return _impl_.arg_; -} -inline ::pg_query::Node* CaseExpr::mutable_arg() { - ::pg_query::Node* _msg = _internal_mutable_arg(); - // @@protoc_insertion_point(field_mutable:pg_query.CaseExpr.arg) - return _msg; -} -inline void CaseExpr::set_allocated_arg(::pg_query::Node* arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.arg_; - } - if (arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(arg); - if (message_arena != submessage_arena) { - arg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, arg, submessage_arena); - } - - } else { - - } - _impl_.arg_ = arg; - // @@protoc_insertion_point(field_set_allocated:pg_query.CaseExpr.arg) -} - -// repeated .pg_query.Node args = 5 [json_name = "args"]; -inline int CaseExpr::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int CaseExpr::args_size() const { - return _internal_args_size(); -} -inline void CaseExpr::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* CaseExpr::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CaseExpr.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CaseExpr::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CaseExpr.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& CaseExpr::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& CaseExpr::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CaseExpr.args) - return _internal_args(index); -} -inline ::pg_query::Node* CaseExpr::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* CaseExpr::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.CaseExpr.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CaseExpr::args() const { - // @@protoc_insertion_point(field_list:pg_query.CaseExpr.args) - return _impl_.args_; -} - -// .pg_query.Node defresult = 6 [json_name = "defresult"]; -inline bool CaseExpr::_internal_has_defresult() const { - return this != internal_default_instance() && _impl_.defresult_ != nullptr; -} -inline bool CaseExpr::has_defresult() const { - return _internal_has_defresult(); -} -inline void CaseExpr::clear_defresult() { - if (GetArenaForAllocation() == nullptr && _impl_.defresult_ != nullptr) { - delete _impl_.defresult_; - } - _impl_.defresult_ = nullptr; -} -inline const ::pg_query::Node& CaseExpr::_internal_defresult() const { - const ::pg_query::Node* p = _impl_.defresult_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CaseExpr::defresult() const { - // @@protoc_insertion_point(field_get:pg_query.CaseExpr.defresult) - return _internal_defresult(); -} -inline void CaseExpr::unsafe_arena_set_allocated_defresult( - ::pg_query::Node* defresult) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.defresult_); - } - _impl_.defresult_ = defresult; - if (defresult) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CaseExpr.defresult) -} -inline ::pg_query::Node* CaseExpr::release_defresult() { - - ::pg_query::Node* temp = _impl_.defresult_; - _impl_.defresult_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CaseExpr::unsafe_arena_release_defresult() { - // @@protoc_insertion_point(field_release:pg_query.CaseExpr.defresult) - - ::pg_query::Node* temp = _impl_.defresult_; - _impl_.defresult_ = nullptr; - return temp; -} -inline ::pg_query::Node* CaseExpr::_internal_mutable_defresult() { - - if (_impl_.defresult_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.defresult_ = p; - } - return _impl_.defresult_; -} -inline ::pg_query::Node* CaseExpr::mutable_defresult() { - ::pg_query::Node* _msg = _internal_mutable_defresult(); - // @@protoc_insertion_point(field_mutable:pg_query.CaseExpr.defresult) - return _msg; -} -inline void CaseExpr::set_allocated_defresult(::pg_query::Node* defresult) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.defresult_; - } - if (defresult) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(defresult); - if (message_arena != submessage_arena) { - defresult = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, defresult, submessage_arena); - } - - } else { - - } - _impl_.defresult_ = defresult; - // @@protoc_insertion_point(field_set_allocated:pg_query.CaseExpr.defresult) -} - -// int32 location = 7 [json_name = "location"]; -inline void CaseExpr::clear_location() { - _impl_.location_ = 0; -} -inline int32_t CaseExpr::_internal_location() const { - return _impl_.location_; -} -inline int32_t CaseExpr::location() const { - // @@protoc_insertion_point(field_get:pg_query.CaseExpr.location) - return _internal_location(); -} -inline void CaseExpr::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void CaseExpr::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.CaseExpr.location) -} - -// ------------------------------------------------------------------- - -// CaseWhen - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool CaseWhen::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool CaseWhen::has_xpr() const { - return _internal_has_xpr(); -} -inline void CaseWhen::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& CaseWhen::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CaseWhen::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.CaseWhen.xpr) - return _internal_xpr(); -} -inline void CaseWhen::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CaseWhen.xpr) -} -inline ::pg_query::Node* CaseWhen::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CaseWhen::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.CaseWhen.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* CaseWhen::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* CaseWhen::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.CaseWhen.xpr) - return _msg; -} -inline void CaseWhen::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.CaseWhen.xpr) -} - -// .pg_query.Node expr = 2 [json_name = "expr"]; -inline bool CaseWhen::_internal_has_expr() const { - return this != internal_default_instance() && _impl_.expr_ != nullptr; -} -inline bool CaseWhen::has_expr() const { - return _internal_has_expr(); -} -inline void CaseWhen::clear_expr() { - if (GetArenaForAllocation() == nullptr && _impl_.expr_ != nullptr) { - delete _impl_.expr_; - } - _impl_.expr_ = nullptr; -} -inline const ::pg_query::Node& CaseWhen::_internal_expr() const { - const ::pg_query::Node* p = _impl_.expr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CaseWhen::expr() const { - // @@protoc_insertion_point(field_get:pg_query.CaseWhen.expr) - return _internal_expr(); -} -inline void CaseWhen::unsafe_arena_set_allocated_expr( - ::pg_query::Node* expr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.expr_); - } - _impl_.expr_ = expr; - if (expr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CaseWhen.expr) -} -inline ::pg_query::Node* CaseWhen::release_expr() { - - ::pg_query::Node* temp = _impl_.expr_; - _impl_.expr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CaseWhen::unsafe_arena_release_expr() { - // @@protoc_insertion_point(field_release:pg_query.CaseWhen.expr) - - ::pg_query::Node* temp = _impl_.expr_; - _impl_.expr_ = nullptr; - return temp; -} -inline ::pg_query::Node* CaseWhen::_internal_mutable_expr() { - - if (_impl_.expr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.expr_ = p; - } - return _impl_.expr_; -} -inline ::pg_query::Node* CaseWhen::mutable_expr() { - ::pg_query::Node* _msg = _internal_mutable_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.CaseWhen.expr) - return _msg; -} -inline void CaseWhen::set_allocated_expr(::pg_query::Node* expr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.expr_; - } - if (expr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(expr); - if (message_arena != submessage_arena) { - expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, expr, submessage_arena); - } - - } else { - - } - _impl_.expr_ = expr; - // @@protoc_insertion_point(field_set_allocated:pg_query.CaseWhen.expr) -} - -// .pg_query.Node result = 3 [json_name = "result"]; -inline bool CaseWhen::_internal_has_result() const { - return this != internal_default_instance() && _impl_.result_ != nullptr; -} -inline bool CaseWhen::has_result() const { - return _internal_has_result(); -} -inline void CaseWhen::clear_result() { - if (GetArenaForAllocation() == nullptr && _impl_.result_ != nullptr) { - delete _impl_.result_; - } - _impl_.result_ = nullptr; -} -inline const ::pg_query::Node& CaseWhen::_internal_result() const { - const ::pg_query::Node* p = _impl_.result_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CaseWhen::result() const { - // @@protoc_insertion_point(field_get:pg_query.CaseWhen.result) - return _internal_result(); -} -inline void CaseWhen::unsafe_arena_set_allocated_result( - ::pg_query::Node* result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.result_); - } - _impl_.result_ = result; - if (result) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CaseWhen.result) -} -inline ::pg_query::Node* CaseWhen::release_result() { - - ::pg_query::Node* temp = _impl_.result_; - _impl_.result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CaseWhen::unsafe_arena_release_result() { - // @@protoc_insertion_point(field_release:pg_query.CaseWhen.result) - - ::pg_query::Node* temp = _impl_.result_; - _impl_.result_ = nullptr; - return temp; -} -inline ::pg_query::Node* CaseWhen::_internal_mutable_result() { - - if (_impl_.result_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.result_ = p; - } - return _impl_.result_; -} -inline ::pg_query::Node* CaseWhen::mutable_result() { - ::pg_query::Node* _msg = _internal_mutable_result(); - // @@protoc_insertion_point(field_mutable:pg_query.CaseWhen.result) - return _msg; -} -inline void CaseWhen::set_allocated_result(::pg_query::Node* result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.result_; - } - if (result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(result); - if (message_arena != submessage_arena) { - result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, result, submessage_arena); - } - - } else { - - } - _impl_.result_ = result; - // @@protoc_insertion_point(field_set_allocated:pg_query.CaseWhen.result) -} - -// int32 location = 4 [json_name = "location"]; -inline void CaseWhen::clear_location() { - _impl_.location_ = 0; -} -inline int32_t CaseWhen::_internal_location() const { - return _impl_.location_; -} -inline int32_t CaseWhen::location() const { - // @@protoc_insertion_point(field_get:pg_query.CaseWhen.location) - return _internal_location(); -} -inline void CaseWhen::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void CaseWhen::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.CaseWhen.location) -} - -// ------------------------------------------------------------------- - -// CaseTestExpr - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool CaseTestExpr::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool CaseTestExpr::has_xpr() const { - return _internal_has_xpr(); -} -inline void CaseTestExpr::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& CaseTestExpr::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CaseTestExpr::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.CaseTestExpr.xpr) - return _internal_xpr(); -} -inline void CaseTestExpr::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CaseTestExpr.xpr) -} -inline ::pg_query::Node* CaseTestExpr::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CaseTestExpr::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.CaseTestExpr.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* CaseTestExpr::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* CaseTestExpr::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.CaseTestExpr.xpr) - return _msg; -} -inline void CaseTestExpr::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.CaseTestExpr.xpr) -} - -// uint32 type_id = 2 [json_name = "typeId"]; -inline void CaseTestExpr::clear_type_id() { - _impl_.type_id_ = 0u; -} -inline uint32_t CaseTestExpr::_internal_type_id() const { - return _impl_.type_id_; -} -inline uint32_t CaseTestExpr::type_id() const { - // @@protoc_insertion_point(field_get:pg_query.CaseTestExpr.type_id) - return _internal_type_id(); -} -inline void CaseTestExpr::_internal_set_type_id(uint32_t value) { - - _impl_.type_id_ = value; -} -inline void CaseTestExpr::set_type_id(uint32_t value) { - _internal_set_type_id(value); - // @@protoc_insertion_point(field_set:pg_query.CaseTestExpr.type_id) -} - -// int32 type_mod = 3 [json_name = "typeMod"]; -inline void CaseTestExpr::clear_type_mod() { - _impl_.type_mod_ = 0; -} -inline int32_t CaseTestExpr::_internal_type_mod() const { - return _impl_.type_mod_; -} -inline int32_t CaseTestExpr::type_mod() const { - // @@protoc_insertion_point(field_get:pg_query.CaseTestExpr.type_mod) - return _internal_type_mod(); -} -inline void CaseTestExpr::_internal_set_type_mod(int32_t value) { - - _impl_.type_mod_ = value; -} -inline void CaseTestExpr::set_type_mod(int32_t value) { - _internal_set_type_mod(value); - // @@protoc_insertion_point(field_set:pg_query.CaseTestExpr.type_mod) -} - -// uint32 collation = 4 [json_name = "collation"]; -inline void CaseTestExpr::clear_collation() { - _impl_.collation_ = 0u; -} -inline uint32_t CaseTestExpr::_internal_collation() const { - return _impl_.collation_; -} -inline uint32_t CaseTestExpr::collation() const { - // @@protoc_insertion_point(field_get:pg_query.CaseTestExpr.collation) - return _internal_collation(); -} -inline void CaseTestExpr::_internal_set_collation(uint32_t value) { - - _impl_.collation_ = value; -} -inline void CaseTestExpr::set_collation(uint32_t value) { - _internal_set_collation(value); - // @@protoc_insertion_point(field_set:pg_query.CaseTestExpr.collation) -} - -// ------------------------------------------------------------------- - -// ArrayExpr - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool ArrayExpr::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool ArrayExpr::has_xpr() const { - return _internal_has_xpr(); -} -inline void ArrayExpr::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& ArrayExpr::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& ArrayExpr::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.ArrayExpr.xpr) - return _internal_xpr(); -} -inline void ArrayExpr::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.ArrayExpr.xpr) -} -inline ::pg_query::Node* ArrayExpr::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* ArrayExpr::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.ArrayExpr.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* ArrayExpr::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* ArrayExpr::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.ArrayExpr.xpr) - return _msg; -} -inline void ArrayExpr::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.ArrayExpr.xpr) -} - -// uint32 array_typeid = 2 [json_name = "array_typeid"]; -inline void ArrayExpr::clear_array_typeid() { - _impl_.array_typeid_ = 0u; -} -inline uint32_t ArrayExpr::_internal_array_typeid() const { - return _impl_.array_typeid_; -} -inline uint32_t ArrayExpr::array_typeid() const { - // @@protoc_insertion_point(field_get:pg_query.ArrayExpr.array_typeid) - return _internal_array_typeid(); -} -inline void ArrayExpr::_internal_set_array_typeid(uint32_t value) { - - _impl_.array_typeid_ = value; -} -inline void ArrayExpr::set_array_typeid(uint32_t value) { - _internal_set_array_typeid(value); - // @@protoc_insertion_point(field_set:pg_query.ArrayExpr.array_typeid) -} - -// uint32 array_collid = 3 [json_name = "array_collid"]; -inline void ArrayExpr::clear_array_collid() { - _impl_.array_collid_ = 0u; -} -inline uint32_t ArrayExpr::_internal_array_collid() const { - return _impl_.array_collid_; -} -inline uint32_t ArrayExpr::array_collid() const { - // @@protoc_insertion_point(field_get:pg_query.ArrayExpr.array_collid) - return _internal_array_collid(); -} -inline void ArrayExpr::_internal_set_array_collid(uint32_t value) { - - _impl_.array_collid_ = value; -} -inline void ArrayExpr::set_array_collid(uint32_t value) { - _internal_set_array_collid(value); - // @@protoc_insertion_point(field_set:pg_query.ArrayExpr.array_collid) -} - -// uint32 element_typeid = 4 [json_name = "element_typeid"]; -inline void ArrayExpr::clear_element_typeid() { - _impl_.element_typeid_ = 0u; -} -inline uint32_t ArrayExpr::_internal_element_typeid() const { - return _impl_.element_typeid_; -} -inline uint32_t ArrayExpr::element_typeid() const { - // @@protoc_insertion_point(field_get:pg_query.ArrayExpr.element_typeid) - return _internal_element_typeid(); -} -inline void ArrayExpr::_internal_set_element_typeid(uint32_t value) { - - _impl_.element_typeid_ = value; -} -inline void ArrayExpr::set_element_typeid(uint32_t value) { - _internal_set_element_typeid(value); - // @@protoc_insertion_point(field_set:pg_query.ArrayExpr.element_typeid) -} - -// repeated .pg_query.Node elements = 5 [json_name = "elements"]; -inline int ArrayExpr::_internal_elements_size() const { - return _impl_.elements_.size(); -} -inline int ArrayExpr::elements_size() const { - return _internal_elements_size(); -} -inline void ArrayExpr::clear_elements() { - _impl_.elements_.Clear(); -} -inline ::pg_query::Node* ArrayExpr::mutable_elements(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.ArrayExpr.elements) - return _impl_.elements_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -ArrayExpr::mutable_elements() { - // @@protoc_insertion_point(field_mutable_list:pg_query.ArrayExpr.elements) - return &_impl_.elements_; -} -inline const ::pg_query::Node& ArrayExpr::_internal_elements(int index) const { - return _impl_.elements_.Get(index); -} -inline const ::pg_query::Node& ArrayExpr::elements(int index) const { - // @@protoc_insertion_point(field_get:pg_query.ArrayExpr.elements) - return _internal_elements(index); -} -inline ::pg_query::Node* ArrayExpr::_internal_add_elements() { - return _impl_.elements_.Add(); -} -inline ::pg_query::Node* ArrayExpr::add_elements() { - ::pg_query::Node* _add = _internal_add_elements(); - // @@protoc_insertion_point(field_add:pg_query.ArrayExpr.elements) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -ArrayExpr::elements() const { - // @@protoc_insertion_point(field_list:pg_query.ArrayExpr.elements) - return _impl_.elements_; -} - -// bool multidims = 6 [json_name = "multidims"]; -inline void ArrayExpr::clear_multidims() { - _impl_.multidims_ = false; -} -inline bool ArrayExpr::_internal_multidims() const { - return _impl_.multidims_; -} -inline bool ArrayExpr::multidims() const { - // @@protoc_insertion_point(field_get:pg_query.ArrayExpr.multidims) - return _internal_multidims(); -} -inline void ArrayExpr::_internal_set_multidims(bool value) { - - _impl_.multidims_ = value; -} -inline void ArrayExpr::set_multidims(bool value) { - _internal_set_multidims(value); - // @@protoc_insertion_point(field_set:pg_query.ArrayExpr.multidims) -} - -// int32 location = 7 [json_name = "location"]; -inline void ArrayExpr::clear_location() { - _impl_.location_ = 0; -} -inline int32_t ArrayExpr::_internal_location() const { - return _impl_.location_; -} -inline int32_t ArrayExpr::location() const { - // @@protoc_insertion_point(field_get:pg_query.ArrayExpr.location) - return _internal_location(); -} -inline void ArrayExpr::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void ArrayExpr::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.ArrayExpr.location) -} - -// ------------------------------------------------------------------- - -// RowExpr - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool RowExpr::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool RowExpr::has_xpr() const { - return _internal_has_xpr(); -} -inline void RowExpr::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& RowExpr::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& RowExpr::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.RowExpr.xpr) - return _internal_xpr(); -} -inline void RowExpr::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RowExpr.xpr) -} -inline ::pg_query::Node* RowExpr::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* RowExpr::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.RowExpr.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* RowExpr::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* RowExpr::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.RowExpr.xpr) - return _msg; -} -inline void RowExpr::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.RowExpr.xpr) -} - -// repeated .pg_query.Node args = 2 [json_name = "args"]; -inline int RowExpr::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int RowExpr::args_size() const { - return _internal_args_size(); -} -inline void RowExpr::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* RowExpr::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RowExpr.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RowExpr::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RowExpr.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& RowExpr::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& RowExpr::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RowExpr.args) - return _internal_args(index); -} -inline ::pg_query::Node* RowExpr::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* RowExpr::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.RowExpr.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RowExpr::args() const { - // @@protoc_insertion_point(field_list:pg_query.RowExpr.args) - return _impl_.args_; -} - -// uint32 row_typeid = 3 [json_name = "row_typeid"]; -inline void RowExpr::clear_row_typeid() { - _impl_.row_typeid_ = 0u; -} -inline uint32_t RowExpr::_internal_row_typeid() const { - return _impl_.row_typeid_; -} -inline uint32_t RowExpr::row_typeid() const { - // @@protoc_insertion_point(field_get:pg_query.RowExpr.row_typeid) - return _internal_row_typeid(); -} -inline void RowExpr::_internal_set_row_typeid(uint32_t value) { - - _impl_.row_typeid_ = value; -} -inline void RowExpr::set_row_typeid(uint32_t value) { - _internal_set_row_typeid(value); - // @@protoc_insertion_point(field_set:pg_query.RowExpr.row_typeid) -} - -// .pg_query.CoercionForm row_format = 4 [json_name = "row_format"]; -inline void RowExpr::clear_row_format() { - _impl_.row_format_ = 0; -} -inline ::pg_query::CoercionForm RowExpr::_internal_row_format() const { - return static_cast< ::pg_query::CoercionForm >(_impl_.row_format_); -} -inline ::pg_query::CoercionForm RowExpr::row_format() const { - // @@protoc_insertion_point(field_get:pg_query.RowExpr.row_format) - return _internal_row_format(); -} -inline void RowExpr::_internal_set_row_format(::pg_query::CoercionForm value) { - - _impl_.row_format_ = value; -} -inline void RowExpr::set_row_format(::pg_query::CoercionForm value) { - _internal_set_row_format(value); - // @@protoc_insertion_point(field_set:pg_query.RowExpr.row_format) -} - -// repeated .pg_query.Node colnames = 5 [json_name = "colnames"]; -inline int RowExpr::_internal_colnames_size() const { - return _impl_.colnames_.size(); -} -inline int RowExpr::colnames_size() const { - return _internal_colnames_size(); -} -inline void RowExpr::clear_colnames() { - _impl_.colnames_.Clear(); -} -inline ::pg_query::Node* RowExpr::mutable_colnames(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RowExpr.colnames) - return _impl_.colnames_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RowExpr::mutable_colnames() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RowExpr.colnames) - return &_impl_.colnames_; -} -inline const ::pg_query::Node& RowExpr::_internal_colnames(int index) const { - return _impl_.colnames_.Get(index); -} -inline const ::pg_query::Node& RowExpr::colnames(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RowExpr.colnames) - return _internal_colnames(index); -} -inline ::pg_query::Node* RowExpr::_internal_add_colnames() { - return _impl_.colnames_.Add(); -} -inline ::pg_query::Node* RowExpr::add_colnames() { - ::pg_query::Node* _add = _internal_add_colnames(); - // @@protoc_insertion_point(field_add:pg_query.RowExpr.colnames) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RowExpr::colnames() const { - // @@protoc_insertion_point(field_list:pg_query.RowExpr.colnames) - return _impl_.colnames_; -} - -// int32 location = 6 [json_name = "location"]; -inline void RowExpr::clear_location() { - _impl_.location_ = 0; -} -inline int32_t RowExpr::_internal_location() const { - return _impl_.location_; -} -inline int32_t RowExpr::location() const { - // @@protoc_insertion_point(field_get:pg_query.RowExpr.location) - return _internal_location(); -} -inline void RowExpr::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void RowExpr::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.RowExpr.location) -} - -// ------------------------------------------------------------------- - -// RowCompareExpr - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool RowCompareExpr::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool RowCompareExpr::has_xpr() const { - return _internal_has_xpr(); -} -inline void RowCompareExpr::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& RowCompareExpr::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& RowCompareExpr::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.RowCompareExpr.xpr) - return _internal_xpr(); -} -inline void RowCompareExpr::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RowCompareExpr.xpr) -} -inline ::pg_query::Node* RowCompareExpr::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* RowCompareExpr::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.RowCompareExpr.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* RowCompareExpr::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* RowCompareExpr::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.RowCompareExpr.xpr) - return _msg; -} -inline void RowCompareExpr::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.RowCompareExpr.xpr) -} - -// .pg_query.RowCompareType rctype = 2 [json_name = "rctype"]; -inline void RowCompareExpr::clear_rctype() { - _impl_.rctype_ = 0; -} -inline ::pg_query::RowCompareType RowCompareExpr::_internal_rctype() const { - return static_cast< ::pg_query::RowCompareType >(_impl_.rctype_); -} -inline ::pg_query::RowCompareType RowCompareExpr::rctype() const { - // @@protoc_insertion_point(field_get:pg_query.RowCompareExpr.rctype) - return _internal_rctype(); -} -inline void RowCompareExpr::_internal_set_rctype(::pg_query::RowCompareType value) { - - _impl_.rctype_ = value; -} -inline void RowCompareExpr::set_rctype(::pg_query::RowCompareType value) { - _internal_set_rctype(value); - // @@protoc_insertion_point(field_set:pg_query.RowCompareExpr.rctype) -} - -// repeated .pg_query.Node opnos = 3 [json_name = "opnos"]; -inline int RowCompareExpr::_internal_opnos_size() const { - return _impl_.opnos_.size(); -} -inline int RowCompareExpr::opnos_size() const { - return _internal_opnos_size(); -} -inline void RowCompareExpr::clear_opnos() { - _impl_.opnos_.Clear(); -} -inline ::pg_query::Node* RowCompareExpr::mutable_opnos(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RowCompareExpr.opnos) - return _impl_.opnos_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RowCompareExpr::mutable_opnos() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RowCompareExpr.opnos) - return &_impl_.opnos_; -} -inline const ::pg_query::Node& RowCompareExpr::_internal_opnos(int index) const { - return _impl_.opnos_.Get(index); -} -inline const ::pg_query::Node& RowCompareExpr::opnos(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RowCompareExpr.opnos) - return _internal_opnos(index); -} -inline ::pg_query::Node* RowCompareExpr::_internal_add_opnos() { - return _impl_.opnos_.Add(); -} -inline ::pg_query::Node* RowCompareExpr::add_opnos() { - ::pg_query::Node* _add = _internal_add_opnos(); - // @@protoc_insertion_point(field_add:pg_query.RowCompareExpr.opnos) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RowCompareExpr::opnos() const { - // @@protoc_insertion_point(field_list:pg_query.RowCompareExpr.opnos) - return _impl_.opnos_; -} - -// repeated .pg_query.Node opfamilies = 4 [json_name = "opfamilies"]; -inline int RowCompareExpr::_internal_opfamilies_size() const { - return _impl_.opfamilies_.size(); -} -inline int RowCompareExpr::opfamilies_size() const { - return _internal_opfamilies_size(); -} -inline void RowCompareExpr::clear_opfamilies() { - _impl_.opfamilies_.Clear(); -} -inline ::pg_query::Node* RowCompareExpr::mutable_opfamilies(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RowCompareExpr.opfamilies) - return _impl_.opfamilies_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RowCompareExpr::mutable_opfamilies() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RowCompareExpr.opfamilies) - return &_impl_.opfamilies_; -} -inline const ::pg_query::Node& RowCompareExpr::_internal_opfamilies(int index) const { - return _impl_.opfamilies_.Get(index); -} -inline const ::pg_query::Node& RowCompareExpr::opfamilies(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RowCompareExpr.opfamilies) - return _internal_opfamilies(index); -} -inline ::pg_query::Node* RowCompareExpr::_internal_add_opfamilies() { - return _impl_.opfamilies_.Add(); -} -inline ::pg_query::Node* RowCompareExpr::add_opfamilies() { - ::pg_query::Node* _add = _internal_add_opfamilies(); - // @@protoc_insertion_point(field_add:pg_query.RowCompareExpr.opfamilies) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RowCompareExpr::opfamilies() const { - // @@protoc_insertion_point(field_list:pg_query.RowCompareExpr.opfamilies) - return _impl_.opfamilies_; -} - -// repeated .pg_query.Node inputcollids = 5 [json_name = "inputcollids"]; -inline int RowCompareExpr::_internal_inputcollids_size() const { - return _impl_.inputcollids_.size(); -} -inline int RowCompareExpr::inputcollids_size() const { - return _internal_inputcollids_size(); -} -inline void RowCompareExpr::clear_inputcollids() { - _impl_.inputcollids_.Clear(); -} -inline ::pg_query::Node* RowCompareExpr::mutable_inputcollids(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RowCompareExpr.inputcollids) - return _impl_.inputcollids_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RowCompareExpr::mutable_inputcollids() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RowCompareExpr.inputcollids) - return &_impl_.inputcollids_; -} -inline const ::pg_query::Node& RowCompareExpr::_internal_inputcollids(int index) const { - return _impl_.inputcollids_.Get(index); -} -inline const ::pg_query::Node& RowCompareExpr::inputcollids(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RowCompareExpr.inputcollids) - return _internal_inputcollids(index); -} -inline ::pg_query::Node* RowCompareExpr::_internal_add_inputcollids() { - return _impl_.inputcollids_.Add(); -} -inline ::pg_query::Node* RowCompareExpr::add_inputcollids() { - ::pg_query::Node* _add = _internal_add_inputcollids(); - // @@protoc_insertion_point(field_add:pg_query.RowCompareExpr.inputcollids) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RowCompareExpr::inputcollids() const { - // @@protoc_insertion_point(field_list:pg_query.RowCompareExpr.inputcollids) - return _impl_.inputcollids_; -} - -// repeated .pg_query.Node largs = 6 [json_name = "largs"]; -inline int RowCompareExpr::_internal_largs_size() const { - return _impl_.largs_.size(); -} -inline int RowCompareExpr::largs_size() const { - return _internal_largs_size(); -} -inline void RowCompareExpr::clear_largs() { - _impl_.largs_.Clear(); -} -inline ::pg_query::Node* RowCompareExpr::mutable_largs(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RowCompareExpr.largs) - return _impl_.largs_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RowCompareExpr::mutable_largs() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RowCompareExpr.largs) - return &_impl_.largs_; -} -inline const ::pg_query::Node& RowCompareExpr::_internal_largs(int index) const { - return _impl_.largs_.Get(index); -} -inline const ::pg_query::Node& RowCompareExpr::largs(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RowCompareExpr.largs) - return _internal_largs(index); -} -inline ::pg_query::Node* RowCompareExpr::_internal_add_largs() { - return _impl_.largs_.Add(); -} -inline ::pg_query::Node* RowCompareExpr::add_largs() { - ::pg_query::Node* _add = _internal_add_largs(); - // @@protoc_insertion_point(field_add:pg_query.RowCompareExpr.largs) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RowCompareExpr::largs() const { - // @@protoc_insertion_point(field_list:pg_query.RowCompareExpr.largs) - return _impl_.largs_; -} - -// repeated .pg_query.Node rargs = 7 [json_name = "rargs"]; -inline int RowCompareExpr::_internal_rargs_size() const { - return _impl_.rargs_.size(); -} -inline int RowCompareExpr::rargs_size() const { - return _internal_rargs_size(); -} -inline void RowCompareExpr::clear_rargs() { - _impl_.rargs_.Clear(); -} -inline ::pg_query::Node* RowCompareExpr::mutable_rargs(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RowCompareExpr.rargs) - return _impl_.rargs_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RowCompareExpr::mutable_rargs() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RowCompareExpr.rargs) - return &_impl_.rargs_; -} -inline const ::pg_query::Node& RowCompareExpr::_internal_rargs(int index) const { - return _impl_.rargs_.Get(index); -} -inline const ::pg_query::Node& RowCompareExpr::rargs(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RowCompareExpr.rargs) - return _internal_rargs(index); -} -inline ::pg_query::Node* RowCompareExpr::_internal_add_rargs() { - return _impl_.rargs_.Add(); -} -inline ::pg_query::Node* RowCompareExpr::add_rargs() { - ::pg_query::Node* _add = _internal_add_rargs(); - // @@protoc_insertion_point(field_add:pg_query.RowCompareExpr.rargs) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RowCompareExpr::rargs() const { - // @@protoc_insertion_point(field_list:pg_query.RowCompareExpr.rargs) - return _impl_.rargs_; -} - -// ------------------------------------------------------------------- - -// CoalesceExpr - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool CoalesceExpr::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool CoalesceExpr::has_xpr() const { - return _internal_has_xpr(); -} -inline void CoalesceExpr::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& CoalesceExpr::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CoalesceExpr::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.CoalesceExpr.xpr) - return _internal_xpr(); -} -inline void CoalesceExpr::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CoalesceExpr.xpr) -} -inline ::pg_query::Node* CoalesceExpr::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CoalesceExpr::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.CoalesceExpr.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* CoalesceExpr::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* CoalesceExpr::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.CoalesceExpr.xpr) - return _msg; -} -inline void CoalesceExpr::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.CoalesceExpr.xpr) -} - -// uint32 coalescetype = 2 [json_name = "coalescetype"]; -inline void CoalesceExpr::clear_coalescetype() { - _impl_.coalescetype_ = 0u; -} -inline uint32_t CoalesceExpr::_internal_coalescetype() const { - return _impl_.coalescetype_; -} -inline uint32_t CoalesceExpr::coalescetype() const { - // @@protoc_insertion_point(field_get:pg_query.CoalesceExpr.coalescetype) - return _internal_coalescetype(); -} -inline void CoalesceExpr::_internal_set_coalescetype(uint32_t value) { - - _impl_.coalescetype_ = value; -} -inline void CoalesceExpr::set_coalescetype(uint32_t value) { - _internal_set_coalescetype(value); - // @@protoc_insertion_point(field_set:pg_query.CoalesceExpr.coalescetype) -} - -// uint32 coalescecollid = 3 [json_name = "coalescecollid"]; -inline void CoalesceExpr::clear_coalescecollid() { - _impl_.coalescecollid_ = 0u; -} -inline uint32_t CoalesceExpr::_internal_coalescecollid() const { - return _impl_.coalescecollid_; -} -inline uint32_t CoalesceExpr::coalescecollid() const { - // @@protoc_insertion_point(field_get:pg_query.CoalesceExpr.coalescecollid) - return _internal_coalescecollid(); -} -inline void CoalesceExpr::_internal_set_coalescecollid(uint32_t value) { - - _impl_.coalescecollid_ = value; -} -inline void CoalesceExpr::set_coalescecollid(uint32_t value) { - _internal_set_coalescecollid(value); - // @@protoc_insertion_point(field_set:pg_query.CoalesceExpr.coalescecollid) -} - -// repeated .pg_query.Node args = 4 [json_name = "args"]; -inline int CoalesceExpr::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int CoalesceExpr::args_size() const { - return _internal_args_size(); -} -inline void CoalesceExpr::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* CoalesceExpr::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CoalesceExpr.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CoalesceExpr::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CoalesceExpr.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& CoalesceExpr::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& CoalesceExpr::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CoalesceExpr.args) - return _internal_args(index); -} -inline ::pg_query::Node* CoalesceExpr::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* CoalesceExpr::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.CoalesceExpr.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CoalesceExpr::args() const { - // @@protoc_insertion_point(field_list:pg_query.CoalesceExpr.args) - return _impl_.args_; -} - -// int32 location = 5 [json_name = "location"]; -inline void CoalesceExpr::clear_location() { - _impl_.location_ = 0; -} -inline int32_t CoalesceExpr::_internal_location() const { - return _impl_.location_; -} -inline int32_t CoalesceExpr::location() const { - // @@protoc_insertion_point(field_get:pg_query.CoalesceExpr.location) - return _internal_location(); -} -inline void CoalesceExpr::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void CoalesceExpr::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.CoalesceExpr.location) -} - -// ------------------------------------------------------------------- - -// MinMaxExpr - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool MinMaxExpr::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool MinMaxExpr::has_xpr() const { - return _internal_has_xpr(); -} -inline void MinMaxExpr::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& MinMaxExpr::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& MinMaxExpr::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.MinMaxExpr.xpr) - return _internal_xpr(); -} -inline void MinMaxExpr::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.MinMaxExpr.xpr) -} -inline ::pg_query::Node* MinMaxExpr::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* MinMaxExpr::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.MinMaxExpr.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* MinMaxExpr::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* MinMaxExpr::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.MinMaxExpr.xpr) - return _msg; -} -inline void MinMaxExpr::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.MinMaxExpr.xpr) -} - -// uint32 minmaxtype = 2 [json_name = "minmaxtype"]; -inline void MinMaxExpr::clear_minmaxtype() { - _impl_.minmaxtype_ = 0u; -} -inline uint32_t MinMaxExpr::_internal_minmaxtype() const { - return _impl_.minmaxtype_; -} -inline uint32_t MinMaxExpr::minmaxtype() const { - // @@protoc_insertion_point(field_get:pg_query.MinMaxExpr.minmaxtype) - return _internal_minmaxtype(); -} -inline void MinMaxExpr::_internal_set_minmaxtype(uint32_t value) { - - _impl_.minmaxtype_ = value; -} -inline void MinMaxExpr::set_minmaxtype(uint32_t value) { - _internal_set_minmaxtype(value); - // @@protoc_insertion_point(field_set:pg_query.MinMaxExpr.minmaxtype) -} - -// uint32 minmaxcollid = 3 [json_name = "minmaxcollid"]; -inline void MinMaxExpr::clear_minmaxcollid() { - _impl_.minmaxcollid_ = 0u; -} -inline uint32_t MinMaxExpr::_internal_minmaxcollid() const { - return _impl_.minmaxcollid_; -} -inline uint32_t MinMaxExpr::minmaxcollid() const { - // @@protoc_insertion_point(field_get:pg_query.MinMaxExpr.minmaxcollid) - return _internal_minmaxcollid(); -} -inline void MinMaxExpr::_internal_set_minmaxcollid(uint32_t value) { - - _impl_.minmaxcollid_ = value; -} -inline void MinMaxExpr::set_minmaxcollid(uint32_t value) { - _internal_set_minmaxcollid(value); - // @@protoc_insertion_point(field_set:pg_query.MinMaxExpr.minmaxcollid) -} - -// uint32 inputcollid = 4 [json_name = "inputcollid"]; -inline void MinMaxExpr::clear_inputcollid() { - _impl_.inputcollid_ = 0u; -} -inline uint32_t MinMaxExpr::_internal_inputcollid() const { - return _impl_.inputcollid_; -} -inline uint32_t MinMaxExpr::inputcollid() const { - // @@protoc_insertion_point(field_get:pg_query.MinMaxExpr.inputcollid) - return _internal_inputcollid(); -} -inline void MinMaxExpr::_internal_set_inputcollid(uint32_t value) { - - _impl_.inputcollid_ = value; -} -inline void MinMaxExpr::set_inputcollid(uint32_t value) { - _internal_set_inputcollid(value); - // @@protoc_insertion_point(field_set:pg_query.MinMaxExpr.inputcollid) -} - -// .pg_query.MinMaxOp op = 5 [json_name = "op"]; -inline void MinMaxExpr::clear_op() { - _impl_.op_ = 0; -} -inline ::pg_query::MinMaxOp MinMaxExpr::_internal_op() const { - return static_cast< ::pg_query::MinMaxOp >(_impl_.op_); -} -inline ::pg_query::MinMaxOp MinMaxExpr::op() const { - // @@protoc_insertion_point(field_get:pg_query.MinMaxExpr.op) - return _internal_op(); -} -inline void MinMaxExpr::_internal_set_op(::pg_query::MinMaxOp value) { - - _impl_.op_ = value; -} -inline void MinMaxExpr::set_op(::pg_query::MinMaxOp value) { - _internal_set_op(value); - // @@protoc_insertion_point(field_set:pg_query.MinMaxExpr.op) -} - -// repeated .pg_query.Node args = 6 [json_name = "args"]; -inline int MinMaxExpr::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int MinMaxExpr::args_size() const { - return _internal_args_size(); -} -inline void MinMaxExpr::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* MinMaxExpr::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.MinMaxExpr.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -MinMaxExpr::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.MinMaxExpr.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& MinMaxExpr::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& MinMaxExpr::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.MinMaxExpr.args) - return _internal_args(index); -} -inline ::pg_query::Node* MinMaxExpr::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* MinMaxExpr::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.MinMaxExpr.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -MinMaxExpr::args() const { - // @@protoc_insertion_point(field_list:pg_query.MinMaxExpr.args) - return _impl_.args_; -} - -// int32 location = 7 [json_name = "location"]; -inline void MinMaxExpr::clear_location() { - _impl_.location_ = 0; -} -inline int32_t MinMaxExpr::_internal_location() const { - return _impl_.location_; -} -inline int32_t MinMaxExpr::location() const { - // @@protoc_insertion_point(field_get:pg_query.MinMaxExpr.location) - return _internal_location(); -} -inline void MinMaxExpr::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void MinMaxExpr::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.MinMaxExpr.location) -} - -// ------------------------------------------------------------------- - -// SQLValueFunction - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool SQLValueFunction::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool SQLValueFunction::has_xpr() const { - return _internal_has_xpr(); -} -inline void SQLValueFunction::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& SQLValueFunction::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& SQLValueFunction::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.SQLValueFunction.xpr) - return _internal_xpr(); -} -inline void SQLValueFunction::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SQLValueFunction.xpr) -} -inline ::pg_query::Node* SQLValueFunction::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* SQLValueFunction::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.SQLValueFunction.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* SQLValueFunction::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* SQLValueFunction::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.SQLValueFunction.xpr) - return _msg; -} -inline void SQLValueFunction::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.SQLValueFunction.xpr) -} - -// .pg_query.SQLValueFunctionOp op = 2 [json_name = "op"]; -inline void SQLValueFunction::clear_op() { - _impl_.op_ = 0; -} -inline ::pg_query::SQLValueFunctionOp SQLValueFunction::_internal_op() const { - return static_cast< ::pg_query::SQLValueFunctionOp >(_impl_.op_); -} -inline ::pg_query::SQLValueFunctionOp SQLValueFunction::op() const { - // @@protoc_insertion_point(field_get:pg_query.SQLValueFunction.op) - return _internal_op(); -} -inline void SQLValueFunction::_internal_set_op(::pg_query::SQLValueFunctionOp value) { - - _impl_.op_ = value; -} -inline void SQLValueFunction::set_op(::pg_query::SQLValueFunctionOp value) { - _internal_set_op(value); - // @@protoc_insertion_point(field_set:pg_query.SQLValueFunction.op) -} - -// uint32 type = 3 [json_name = "type"]; -inline void SQLValueFunction::clear_type() { - _impl_.type_ = 0u; -} -inline uint32_t SQLValueFunction::_internal_type() const { - return _impl_.type_; -} -inline uint32_t SQLValueFunction::type() const { - // @@protoc_insertion_point(field_get:pg_query.SQLValueFunction.type) - return _internal_type(); -} -inline void SQLValueFunction::_internal_set_type(uint32_t value) { - - _impl_.type_ = value; -} -inline void SQLValueFunction::set_type(uint32_t value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:pg_query.SQLValueFunction.type) -} - -// int32 typmod = 4 [json_name = "typmod"]; -inline void SQLValueFunction::clear_typmod() { - _impl_.typmod_ = 0; -} -inline int32_t SQLValueFunction::_internal_typmod() const { - return _impl_.typmod_; -} -inline int32_t SQLValueFunction::typmod() const { - // @@protoc_insertion_point(field_get:pg_query.SQLValueFunction.typmod) - return _internal_typmod(); -} -inline void SQLValueFunction::_internal_set_typmod(int32_t value) { - - _impl_.typmod_ = value; -} -inline void SQLValueFunction::set_typmod(int32_t value) { - _internal_set_typmod(value); - // @@protoc_insertion_point(field_set:pg_query.SQLValueFunction.typmod) -} - -// int32 location = 5 [json_name = "location"]; -inline void SQLValueFunction::clear_location() { - _impl_.location_ = 0; -} -inline int32_t SQLValueFunction::_internal_location() const { - return _impl_.location_; -} -inline int32_t SQLValueFunction::location() const { - // @@protoc_insertion_point(field_get:pg_query.SQLValueFunction.location) - return _internal_location(); -} -inline void SQLValueFunction::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void SQLValueFunction::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.SQLValueFunction.location) -} - -// ------------------------------------------------------------------- - -// XmlExpr - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool XmlExpr::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool XmlExpr::has_xpr() const { - return _internal_has_xpr(); -} -inline void XmlExpr::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& XmlExpr::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& XmlExpr::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.XmlExpr.xpr) - return _internal_xpr(); -} -inline void XmlExpr::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.XmlExpr.xpr) -} -inline ::pg_query::Node* XmlExpr::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* XmlExpr::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.XmlExpr.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* XmlExpr::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* XmlExpr::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.XmlExpr.xpr) - return _msg; -} -inline void XmlExpr::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.XmlExpr.xpr) -} - -// .pg_query.XmlExprOp op = 2 [json_name = "op"]; -inline void XmlExpr::clear_op() { - _impl_.op_ = 0; -} -inline ::pg_query::XmlExprOp XmlExpr::_internal_op() const { - return static_cast< ::pg_query::XmlExprOp >(_impl_.op_); -} -inline ::pg_query::XmlExprOp XmlExpr::op() const { - // @@protoc_insertion_point(field_get:pg_query.XmlExpr.op) - return _internal_op(); -} -inline void XmlExpr::_internal_set_op(::pg_query::XmlExprOp value) { - - _impl_.op_ = value; -} -inline void XmlExpr::set_op(::pg_query::XmlExprOp value) { - _internal_set_op(value); - // @@protoc_insertion_point(field_set:pg_query.XmlExpr.op) -} - -// string name = 3 [json_name = "name"]; -inline void XmlExpr::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& XmlExpr::name() const { - // @@protoc_insertion_point(field_get:pg_query.XmlExpr.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void XmlExpr::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.XmlExpr.name) -} -inline std::string* XmlExpr::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.XmlExpr.name) - return _s; -} -inline const std::string& XmlExpr::_internal_name() const { - return _impl_.name_.Get(); -} -inline void XmlExpr::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* XmlExpr::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* XmlExpr::release_name() { - // @@protoc_insertion_point(field_release:pg_query.XmlExpr.name) - return _impl_.name_.Release(); -} -inline void XmlExpr::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.XmlExpr.name) -} - -// repeated .pg_query.Node named_args = 4 [json_name = "named_args"]; -inline int XmlExpr::_internal_named_args_size() const { - return _impl_.named_args_.size(); -} -inline int XmlExpr::named_args_size() const { - return _internal_named_args_size(); -} -inline void XmlExpr::clear_named_args() { - _impl_.named_args_.Clear(); -} -inline ::pg_query::Node* XmlExpr::mutable_named_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.XmlExpr.named_args) - return _impl_.named_args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -XmlExpr::mutable_named_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.XmlExpr.named_args) - return &_impl_.named_args_; -} -inline const ::pg_query::Node& XmlExpr::_internal_named_args(int index) const { - return _impl_.named_args_.Get(index); -} -inline const ::pg_query::Node& XmlExpr::named_args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.XmlExpr.named_args) - return _internal_named_args(index); -} -inline ::pg_query::Node* XmlExpr::_internal_add_named_args() { - return _impl_.named_args_.Add(); -} -inline ::pg_query::Node* XmlExpr::add_named_args() { - ::pg_query::Node* _add = _internal_add_named_args(); - // @@protoc_insertion_point(field_add:pg_query.XmlExpr.named_args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -XmlExpr::named_args() const { - // @@protoc_insertion_point(field_list:pg_query.XmlExpr.named_args) - return _impl_.named_args_; -} - -// repeated .pg_query.Node arg_names = 5 [json_name = "arg_names"]; -inline int XmlExpr::_internal_arg_names_size() const { - return _impl_.arg_names_.size(); -} -inline int XmlExpr::arg_names_size() const { - return _internal_arg_names_size(); -} -inline void XmlExpr::clear_arg_names() { - _impl_.arg_names_.Clear(); -} -inline ::pg_query::Node* XmlExpr::mutable_arg_names(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.XmlExpr.arg_names) - return _impl_.arg_names_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -XmlExpr::mutable_arg_names() { - // @@protoc_insertion_point(field_mutable_list:pg_query.XmlExpr.arg_names) - return &_impl_.arg_names_; -} -inline const ::pg_query::Node& XmlExpr::_internal_arg_names(int index) const { - return _impl_.arg_names_.Get(index); -} -inline const ::pg_query::Node& XmlExpr::arg_names(int index) const { - // @@protoc_insertion_point(field_get:pg_query.XmlExpr.arg_names) - return _internal_arg_names(index); -} -inline ::pg_query::Node* XmlExpr::_internal_add_arg_names() { - return _impl_.arg_names_.Add(); -} -inline ::pg_query::Node* XmlExpr::add_arg_names() { - ::pg_query::Node* _add = _internal_add_arg_names(); - // @@protoc_insertion_point(field_add:pg_query.XmlExpr.arg_names) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -XmlExpr::arg_names() const { - // @@protoc_insertion_point(field_list:pg_query.XmlExpr.arg_names) - return _impl_.arg_names_; -} - -// repeated .pg_query.Node args = 6 [json_name = "args"]; -inline int XmlExpr::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int XmlExpr::args_size() const { - return _internal_args_size(); -} -inline void XmlExpr::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* XmlExpr::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.XmlExpr.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -XmlExpr::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.XmlExpr.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& XmlExpr::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& XmlExpr::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.XmlExpr.args) - return _internal_args(index); -} -inline ::pg_query::Node* XmlExpr::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* XmlExpr::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.XmlExpr.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -XmlExpr::args() const { - // @@protoc_insertion_point(field_list:pg_query.XmlExpr.args) - return _impl_.args_; -} - -// .pg_query.XmlOptionType xmloption = 7 [json_name = "xmloption"]; -inline void XmlExpr::clear_xmloption() { - _impl_.xmloption_ = 0; -} -inline ::pg_query::XmlOptionType XmlExpr::_internal_xmloption() const { - return static_cast< ::pg_query::XmlOptionType >(_impl_.xmloption_); -} -inline ::pg_query::XmlOptionType XmlExpr::xmloption() const { - // @@protoc_insertion_point(field_get:pg_query.XmlExpr.xmloption) - return _internal_xmloption(); -} -inline void XmlExpr::_internal_set_xmloption(::pg_query::XmlOptionType value) { - - _impl_.xmloption_ = value; -} -inline void XmlExpr::set_xmloption(::pg_query::XmlOptionType value) { - _internal_set_xmloption(value); - // @@protoc_insertion_point(field_set:pg_query.XmlExpr.xmloption) -} - -// uint32 type = 8 [json_name = "type"]; -inline void XmlExpr::clear_type() { - _impl_.type_ = 0u; -} -inline uint32_t XmlExpr::_internal_type() const { - return _impl_.type_; -} -inline uint32_t XmlExpr::type() const { - // @@protoc_insertion_point(field_get:pg_query.XmlExpr.type) - return _internal_type(); -} -inline void XmlExpr::_internal_set_type(uint32_t value) { - - _impl_.type_ = value; -} -inline void XmlExpr::set_type(uint32_t value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:pg_query.XmlExpr.type) -} - -// int32 typmod = 9 [json_name = "typmod"]; -inline void XmlExpr::clear_typmod() { - _impl_.typmod_ = 0; -} -inline int32_t XmlExpr::_internal_typmod() const { - return _impl_.typmod_; -} -inline int32_t XmlExpr::typmod() const { - // @@protoc_insertion_point(field_get:pg_query.XmlExpr.typmod) - return _internal_typmod(); -} -inline void XmlExpr::_internal_set_typmod(int32_t value) { - - _impl_.typmod_ = value; -} -inline void XmlExpr::set_typmod(int32_t value) { - _internal_set_typmod(value); - // @@protoc_insertion_point(field_set:pg_query.XmlExpr.typmod) -} - -// int32 location = 10 [json_name = "location"]; -inline void XmlExpr::clear_location() { - _impl_.location_ = 0; -} -inline int32_t XmlExpr::_internal_location() const { - return _impl_.location_; -} -inline int32_t XmlExpr::location() const { - // @@protoc_insertion_point(field_get:pg_query.XmlExpr.location) - return _internal_location(); -} -inline void XmlExpr::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void XmlExpr::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.XmlExpr.location) -} - -// ------------------------------------------------------------------- - -// NullTest - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool NullTest::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool NullTest::has_xpr() const { - return _internal_has_xpr(); -} -inline void NullTest::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& NullTest::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& NullTest::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.NullTest.xpr) - return _internal_xpr(); -} -inline void NullTest::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.NullTest.xpr) -} -inline ::pg_query::Node* NullTest::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* NullTest::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.NullTest.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* NullTest::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* NullTest::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.NullTest.xpr) - return _msg; -} -inline void NullTest::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.NullTest.xpr) -} - -// .pg_query.Node arg = 2 [json_name = "arg"]; -inline bool NullTest::_internal_has_arg() const { - return this != internal_default_instance() && _impl_.arg_ != nullptr; -} -inline bool NullTest::has_arg() const { - return _internal_has_arg(); -} -inline void NullTest::clear_arg() { - if (GetArenaForAllocation() == nullptr && _impl_.arg_ != nullptr) { - delete _impl_.arg_; - } - _impl_.arg_ = nullptr; -} -inline const ::pg_query::Node& NullTest::_internal_arg() const { - const ::pg_query::Node* p = _impl_.arg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& NullTest::arg() const { - // @@protoc_insertion_point(field_get:pg_query.NullTest.arg) - return _internal_arg(); -} -inline void NullTest::unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arg_); - } - _impl_.arg_ = arg; - if (arg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.NullTest.arg) -} -inline ::pg_query::Node* NullTest::release_arg() { - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* NullTest::unsafe_arena_release_arg() { - // @@protoc_insertion_point(field_release:pg_query.NullTest.arg) - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; - return temp; -} -inline ::pg_query::Node* NullTest::_internal_mutable_arg() { - - if (_impl_.arg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.arg_ = p; - } - return _impl_.arg_; -} -inline ::pg_query::Node* NullTest::mutable_arg() { - ::pg_query::Node* _msg = _internal_mutable_arg(); - // @@protoc_insertion_point(field_mutable:pg_query.NullTest.arg) - return _msg; -} -inline void NullTest::set_allocated_arg(::pg_query::Node* arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.arg_; - } - if (arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(arg); - if (message_arena != submessage_arena) { - arg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, arg, submessage_arena); - } - - } else { - - } - _impl_.arg_ = arg; - // @@protoc_insertion_point(field_set_allocated:pg_query.NullTest.arg) -} - -// .pg_query.NullTestType nulltesttype = 3 [json_name = "nulltesttype"]; -inline void NullTest::clear_nulltesttype() { - _impl_.nulltesttype_ = 0; -} -inline ::pg_query::NullTestType NullTest::_internal_nulltesttype() const { - return static_cast< ::pg_query::NullTestType >(_impl_.nulltesttype_); -} -inline ::pg_query::NullTestType NullTest::nulltesttype() const { - // @@protoc_insertion_point(field_get:pg_query.NullTest.nulltesttype) - return _internal_nulltesttype(); -} -inline void NullTest::_internal_set_nulltesttype(::pg_query::NullTestType value) { - - _impl_.nulltesttype_ = value; -} -inline void NullTest::set_nulltesttype(::pg_query::NullTestType value) { - _internal_set_nulltesttype(value); - // @@protoc_insertion_point(field_set:pg_query.NullTest.nulltesttype) -} - -// bool argisrow = 4 [json_name = "argisrow"]; -inline void NullTest::clear_argisrow() { - _impl_.argisrow_ = false; -} -inline bool NullTest::_internal_argisrow() const { - return _impl_.argisrow_; -} -inline bool NullTest::argisrow() const { - // @@protoc_insertion_point(field_get:pg_query.NullTest.argisrow) - return _internal_argisrow(); -} -inline void NullTest::_internal_set_argisrow(bool value) { - - _impl_.argisrow_ = value; -} -inline void NullTest::set_argisrow(bool value) { - _internal_set_argisrow(value); - // @@protoc_insertion_point(field_set:pg_query.NullTest.argisrow) -} - -// int32 location = 5 [json_name = "location"]; -inline void NullTest::clear_location() { - _impl_.location_ = 0; -} -inline int32_t NullTest::_internal_location() const { - return _impl_.location_; -} -inline int32_t NullTest::location() const { - // @@protoc_insertion_point(field_get:pg_query.NullTest.location) - return _internal_location(); -} -inline void NullTest::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void NullTest::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.NullTest.location) -} - -// ------------------------------------------------------------------- - -// BooleanTest - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool BooleanTest::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool BooleanTest::has_xpr() const { - return _internal_has_xpr(); -} -inline void BooleanTest::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& BooleanTest::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& BooleanTest::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.BooleanTest.xpr) - return _internal_xpr(); -} -inline void BooleanTest::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.BooleanTest.xpr) -} -inline ::pg_query::Node* BooleanTest::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* BooleanTest::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.BooleanTest.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* BooleanTest::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* BooleanTest::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.BooleanTest.xpr) - return _msg; -} -inline void BooleanTest::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.BooleanTest.xpr) -} - -// .pg_query.Node arg = 2 [json_name = "arg"]; -inline bool BooleanTest::_internal_has_arg() const { - return this != internal_default_instance() && _impl_.arg_ != nullptr; -} -inline bool BooleanTest::has_arg() const { - return _internal_has_arg(); -} -inline void BooleanTest::clear_arg() { - if (GetArenaForAllocation() == nullptr && _impl_.arg_ != nullptr) { - delete _impl_.arg_; - } - _impl_.arg_ = nullptr; -} -inline const ::pg_query::Node& BooleanTest::_internal_arg() const { - const ::pg_query::Node* p = _impl_.arg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& BooleanTest::arg() const { - // @@protoc_insertion_point(field_get:pg_query.BooleanTest.arg) - return _internal_arg(); -} -inline void BooleanTest::unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arg_); - } - _impl_.arg_ = arg; - if (arg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.BooleanTest.arg) -} -inline ::pg_query::Node* BooleanTest::release_arg() { - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* BooleanTest::unsafe_arena_release_arg() { - // @@protoc_insertion_point(field_release:pg_query.BooleanTest.arg) - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; - return temp; -} -inline ::pg_query::Node* BooleanTest::_internal_mutable_arg() { - - if (_impl_.arg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.arg_ = p; - } - return _impl_.arg_; -} -inline ::pg_query::Node* BooleanTest::mutable_arg() { - ::pg_query::Node* _msg = _internal_mutable_arg(); - // @@protoc_insertion_point(field_mutable:pg_query.BooleanTest.arg) - return _msg; -} -inline void BooleanTest::set_allocated_arg(::pg_query::Node* arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.arg_; - } - if (arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(arg); - if (message_arena != submessage_arena) { - arg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, arg, submessage_arena); - } - - } else { - - } - _impl_.arg_ = arg; - // @@protoc_insertion_point(field_set_allocated:pg_query.BooleanTest.arg) -} - -// .pg_query.BoolTestType booltesttype = 3 [json_name = "booltesttype"]; -inline void BooleanTest::clear_booltesttype() { - _impl_.booltesttype_ = 0; -} -inline ::pg_query::BoolTestType BooleanTest::_internal_booltesttype() const { - return static_cast< ::pg_query::BoolTestType >(_impl_.booltesttype_); -} -inline ::pg_query::BoolTestType BooleanTest::booltesttype() const { - // @@protoc_insertion_point(field_get:pg_query.BooleanTest.booltesttype) - return _internal_booltesttype(); -} -inline void BooleanTest::_internal_set_booltesttype(::pg_query::BoolTestType value) { - - _impl_.booltesttype_ = value; -} -inline void BooleanTest::set_booltesttype(::pg_query::BoolTestType value) { - _internal_set_booltesttype(value); - // @@protoc_insertion_point(field_set:pg_query.BooleanTest.booltesttype) -} - -// int32 location = 4 [json_name = "location"]; -inline void BooleanTest::clear_location() { - _impl_.location_ = 0; -} -inline int32_t BooleanTest::_internal_location() const { - return _impl_.location_; -} -inline int32_t BooleanTest::location() const { - // @@protoc_insertion_point(field_get:pg_query.BooleanTest.location) - return _internal_location(); -} -inline void BooleanTest::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void BooleanTest::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.BooleanTest.location) -} - -// ------------------------------------------------------------------- - -// CoerceToDomain - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool CoerceToDomain::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool CoerceToDomain::has_xpr() const { - return _internal_has_xpr(); -} -inline void CoerceToDomain::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& CoerceToDomain::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CoerceToDomain::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.CoerceToDomain.xpr) - return _internal_xpr(); -} -inline void CoerceToDomain::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CoerceToDomain.xpr) -} -inline ::pg_query::Node* CoerceToDomain::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CoerceToDomain::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.CoerceToDomain.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* CoerceToDomain::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* CoerceToDomain::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.CoerceToDomain.xpr) - return _msg; -} -inline void CoerceToDomain::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.CoerceToDomain.xpr) -} - -// .pg_query.Node arg = 2 [json_name = "arg"]; -inline bool CoerceToDomain::_internal_has_arg() const { - return this != internal_default_instance() && _impl_.arg_ != nullptr; -} -inline bool CoerceToDomain::has_arg() const { - return _internal_has_arg(); -} -inline void CoerceToDomain::clear_arg() { - if (GetArenaForAllocation() == nullptr && _impl_.arg_ != nullptr) { - delete _impl_.arg_; - } - _impl_.arg_ = nullptr; -} -inline const ::pg_query::Node& CoerceToDomain::_internal_arg() const { - const ::pg_query::Node* p = _impl_.arg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CoerceToDomain::arg() const { - // @@protoc_insertion_point(field_get:pg_query.CoerceToDomain.arg) - return _internal_arg(); -} -inline void CoerceToDomain::unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arg_); - } - _impl_.arg_ = arg; - if (arg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CoerceToDomain.arg) -} -inline ::pg_query::Node* CoerceToDomain::release_arg() { - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CoerceToDomain::unsafe_arena_release_arg() { - // @@protoc_insertion_point(field_release:pg_query.CoerceToDomain.arg) - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; - return temp; -} -inline ::pg_query::Node* CoerceToDomain::_internal_mutable_arg() { - - if (_impl_.arg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.arg_ = p; - } - return _impl_.arg_; -} -inline ::pg_query::Node* CoerceToDomain::mutable_arg() { - ::pg_query::Node* _msg = _internal_mutable_arg(); - // @@protoc_insertion_point(field_mutable:pg_query.CoerceToDomain.arg) - return _msg; -} -inline void CoerceToDomain::set_allocated_arg(::pg_query::Node* arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.arg_; - } - if (arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(arg); - if (message_arena != submessage_arena) { - arg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, arg, submessage_arena); - } - - } else { - - } - _impl_.arg_ = arg; - // @@protoc_insertion_point(field_set_allocated:pg_query.CoerceToDomain.arg) -} - -// uint32 resulttype = 3 [json_name = "resulttype"]; -inline void CoerceToDomain::clear_resulttype() { - _impl_.resulttype_ = 0u; -} -inline uint32_t CoerceToDomain::_internal_resulttype() const { - return _impl_.resulttype_; -} -inline uint32_t CoerceToDomain::resulttype() const { - // @@protoc_insertion_point(field_get:pg_query.CoerceToDomain.resulttype) - return _internal_resulttype(); -} -inline void CoerceToDomain::_internal_set_resulttype(uint32_t value) { - - _impl_.resulttype_ = value; -} -inline void CoerceToDomain::set_resulttype(uint32_t value) { - _internal_set_resulttype(value); - // @@protoc_insertion_point(field_set:pg_query.CoerceToDomain.resulttype) -} - -// int32 resulttypmod = 4 [json_name = "resulttypmod"]; -inline void CoerceToDomain::clear_resulttypmod() { - _impl_.resulttypmod_ = 0; -} -inline int32_t CoerceToDomain::_internal_resulttypmod() const { - return _impl_.resulttypmod_; -} -inline int32_t CoerceToDomain::resulttypmod() const { - // @@protoc_insertion_point(field_get:pg_query.CoerceToDomain.resulttypmod) - return _internal_resulttypmod(); -} -inline void CoerceToDomain::_internal_set_resulttypmod(int32_t value) { - - _impl_.resulttypmod_ = value; -} -inline void CoerceToDomain::set_resulttypmod(int32_t value) { - _internal_set_resulttypmod(value); - // @@protoc_insertion_point(field_set:pg_query.CoerceToDomain.resulttypmod) -} - -// uint32 resultcollid = 5 [json_name = "resultcollid"]; -inline void CoerceToDomain::clear_resultcollid() { - _impl_.resultcollid_ = 0u; -} -inline uint32_t CoerceToDomain::_internal_resultcollid() const { - return _impl_.resultcollid_; -} -inline uint32_t CoerceToDomain::resultcollid() const { - // @@protoc_insertion_point(field_get:pg_query.CoerceToDomain.resultcollid) - return _internal_resultcollid(); -} -inline void CoerceToDomain::_internal_set_resultcollid(uint32_t value) { - - _impl_.resultcollid_ = value; -} -inline void CoerceToDomain::set_resultcollid(uint32_t value) { - _internal_set_resultcollid(value); - // @@protoc_insertion_point(field_set:pg_query.CoerceToDomain.resultcollid) -} - -// .pg_query.CoercionForm coercionformat = 6 [json_name = "coercionformat"]; -inline void CoerceToDomain::clear_coercionformat() { - _impl_.coercionformat_ = 0; -} -inline ::pg_query::CoercionForm CoerceToDomain::_internal_coercionformat() const { - return static_cast< ::pg_query::CoercionForm >(_impl_.coercionformat_); -} -inline ::pg_query::CoercionForm CoerceToDomain::coercionformat() const { - // @@protoc_insertion_point(field_get:pg_query.CoerceToDomain.coercionformat) - return _internal_coercionformat(); -} -inline void CoerceToDomain::_internal_set_coercionformat(::pg_query::CoercionForm value) { - - _impl_.coercionformat_ = value; -} -inline void CoerceToDomain::set_coercionformat(::pg_query::CoercionForm value) { - _internal_set_coercionformat(value); - // @@protoc_insertion_point(field_set:pg_query.CoerceToDomain.coercionformat) -} - -// int32 location = 7 [json_name = "location"]; -inline void CoerceToDomain::clear_location() { - _impl_.location_ = 0; -} -inline int32_t CoerceToDomain::_internal_location() const { - return _impl_.location_; -} -inline int32_t CoerceToDomain::location() const { - // @@protoc_insertion_point(field_get:pg_query.CoerceToDomain.location) - return _internal_location(); -} -inline void CoerceToDomain::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void CoerceToDomain::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.CoerceToDomain.location) -} - -// ------------------------------------------------------------------- - -// CoerceToDomainValue - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool CoerceToDomainValue::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool CoerceToDomainValue::has_xpr() const { - return _internal_has_xpr(); -} -inline void CoerceToDomainValue::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& CoerceToDomainValue::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CoerceToDomainValue::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.CoerceToDomainValue.xpr) - return _internal_xpr(); -} -inline void CoerceToDomainValue::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CoerceToDomainValue.xpr) -} -inline ::pg_query::Node* CoerceToDomainValue::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CoerceToDomainValue::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.CoerceToDomainValue.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* CoerceToDomainValue::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* CoerceToDomainValue::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.CoerceToDomainValue.xpr) - return _msg; -} -inline void CoerceToDomainValue::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.CoerceToDomainValue.xpr) -} - -// uint32 type_id = 2 [json_name = "typeId"]; -inline void CoerceToDomainValue::clear_type_id() { - _impl_.type_id_ = 0u; -} -inline uint32_t CoerceToDomainValue::_internal_type_id() const { - return _impl_.type_id_; -} -inline uint32_t CoerceToDomainValue::type_id() const { - // @@protoc_insertion_point(field_get:pg_query.CoerceToDomainValue.type_id) - return _internal_type_id(); -} -inline void CoerceToDomainValue::_internal_set_type_id(uint32_t value) { - - _impl_.type_id_ = value; -} -inline void CoerceToDomainValue::set_type_id(uint32_t value) { - _internal_set_type_id(value); - // @@protoc_insertion_point(field_set:pg_query.CoerceToDomainValue.type_id) -} - -// int32 type_mod = 3 [json_name = "typeMod"]; -inline void CoerceToDomainValue::clear_type_mod() { - _impl_.type_mod_ = 0; -} -inline int32_t CoerceToDomainValue::_internal_type_mod() const { - return _impl_.type_mod_; -} -inline int32_t CoerceToDomainValue::type_mod() const { - // @@protoc_insertion_point(field_get:pg_query.CoerceToDomainValue.type_mod) - return _internal_type_mod(); -} -inline void CoerceToDomainValue::_internal_set_type_mod(int32_t value) { - - _impl_.type_mod_ = value; -} -inline void CoerceToDomainValue::set_type_mod(int32_t value) { - _internal_set_type_mod(value); - // @@protoc_insertion_point(field_set:pg_query.CoerceToDomainValue.type_mod) -} - -// uint32 collation = 4 [json_name = "collation"]; -inline void CoerceToDomainValue::clear_collation() { - _impl_.collation_ = 0u; -} -inline uint32_t CoerceToDomainValue::_internal_collation() const { - return _impl_.collation_; -} -inline uint32_t CoerceToDomainValue::collation() const { - // @@protoc_insertion_point(field_get:pg_query.CoerceToDomainValue.collation) - return _internal_collation(); -} -inline void CoerceToDomainValue::_internal_set_collation(uint32_t value) { - - _impl_.collation_ = value; -} -inline void CoerceToDomainValue::set_collation(uint32_t value) { - _internal_set_collation(value); - // @@protoc_insertion_point(field_set:pg_query.CoerceToDomainValue.collation) -} - -// int32 location = 5 [json_name = "location"]; -inline void CoerceToDomainValue::clear_location() { - _impl_.location_ = 0; -} -inline int32_t CoerceToDomainValue::_internal_location() const { - return _impl_.location_; -} -inline int32_t CoerceToDomainValue::location() const { - // @@protoc_insertion_point(field_get:pg_query.CoerceToDomainValue.location) - return _internal_location(); -} -inline void CoerceToDomainValue::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void CoerceToDomainValue::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.CoerceToDomainValue.location) -} - -// ------------------------------------------------------------------- - -// SetToDefault - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool SetToDefault::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool SetToDefault::has_xpr() const { - return _internal_has_xpr(); -} -inline void SetToDefault::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& SetToDefault::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& SetToDefault::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.SetToDefault.xpr) - return _internal_xpr(); -} -inline void SetToDefault::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SetToDefault.xpr) -} -inline ::pg_query::Node* SetToDefault::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* SetToDefault::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.SetToDefault.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* SetToDefault::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* SetToDefault::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.SetToDefault.xpr) - return _msg; -} -inline void SetToDefault::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.SetToDefault.xpr) -} - -// uint32 type_id = 2 [json_name = "typeId"]; -inline void SetToDefault::clear_type_id() { - _impl_.type_id_ = 0u; -} -inline uint32_t SetToDefault::_internal_type_id() const { - return _impl_.type_id_; -} -inline uint32_t SetToDefault::type_id() const { - // @@protoc_insertion_point(field_get:pg_query.SetToDefault.type_id) - return _internal_type_id(); -} -inline void SetToDefault::_internal_set_type_id(uint32_t value) { - - _impl_.type_id_ = value; -} -inline void SetToDefault::set_type_id(uint32_t value) { - _internal_set_type_id(value); - // @@protoc_insertion_point(field_set:pg_query.SetToDefault.type_id) -} - -// int32 type_mod = 3 [json_name = "typeMod"]; -inline void SetToDefault::clear_type_mod() { - _impl_.type_mod_ = 0; -} -inline int32_t SetToDefault::_internal_type_mod() const { - return _impl_.type_mod_; -} -inline int32_t SetToDefault::type_mod() const { - // @@protoc_insertion_point(field_get:pg_query.SetToDefault.type_mod) - return _internal_type_mod(); -} -inline void SetToDefault::_internal_set_type_mod(int32_t value) { - - _impl_.type_mod_ = value; -} -inline void SetToDefault::set_type_mod(int32_t value) { - _internal_set_type_mod(value); - // @@protoc_insertion_point(field_set:pg_query.SetToDefault.type_mod) -} - -// uint32 collation = 4 [json_name = "collation"]; -inline void SetToDefault::clear_collation() { - _impl_.collation_ = 0u; -} -inline uint32_t SetToDefault::_internal_collation() const { - return _impl_.collation_; -} -inline uint32_t SetToDefault::collation() const { - // @@protoc_insertion_point(field_get:pg_query.SetToDefault.collation) - return _internal_collation(); -} -inline void SetToDefault::_internal_set_collation(uint32_t value) { - - _impl_.collation_ = value; -} -inline void SetToDefault::set_collation(uint32_t value) { - _internal_set_collation(value); - // @@protoc_insertion_point(field_set:pg_query.SetToDefault.collation) -} - -// int32 location = 5 [json_name = "location"]; -inline void SetToDefault::clear_location() { - _impl_.location_ = 0; -} -inline int32_t SetToDefault::_internal_location() const { - return _impl_.location_; -} -inline int32_t SetToDefault::location() const { - // @@protoc_insertion_point(field_get:pg_query.SetToDefault.location) - return _internal_location(); -} -inline void SetToDefault::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void SetToDefault::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.SetToDefault.location) -} - -// ------------------------------------------------------------------- - -// CurrentOfExpr - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool CurrentOfExpr::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool CurrentOfExpr::has_xpr() const { - return _internal_has_xpr(); -} -inline void CurrentOfExpr::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& CurrentOfExpr::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CurrentOfExpr::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.CurrentOfExpr.xpr) - return _internal_xpr(); -} -inline void CurrentOfExpr::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CurrentOfExpr.xpr) -} -inline ::pg_query::Node* CurrentOfExpr::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CurrentOfExpr::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.CurrentOfExpr.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* CurrentOfExpr::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* CurrentOfExpr::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.CurrentOfExpr.xpr) - return _msg; -} -inline void CurrentOfExpr::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.CurrentOfExpr.xpr) -} - -// uint32 cvarno = 2 [json_name = "cvarno"]; -inline void CurrentOfExpr::clear_cvarno() { - _impl_.cvarno_ = 0u; -} -inline uint32_t CurrentOfExpr::_internal_cvarno() const { - return _impl_.cvarno_; -} -inline uint32_t CurrentOfExpr::cvarno() const { - // @@protoc_insertion_point(field_get:pg_query.CurrentOfExpr.cvarno) - return _internal_cvarno(); -} -inline void CurrentOfExpr::_internal_set_cvarno(uint32_t value) { - - _impl_.cvarno_ = value; -} -inline void CurrentOfExpr::set_cvarno(uint32_t value) { - _internal_set_cvarno(value); - // @@protoc_insertion_point(field_set:pg_query.CurrentOfExpr.cvarno) -} - -// string cursor_name = 3 [json_name = "cursor_name"]; -inline void CurrentOfExpr::clear_cursor_name() { - _impl_.cursor_name_.ClearToEmpty(); -} -inline const std::string& CurrentOfExpr::cursor_name() const { - // @@protoc_insertion_point(field_get:pg_query.CurrentOfExpr.cursor_name) - return _internal_cursor_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CurrentOfExpr::set_cursor_name(ArgT0&& arg0, ArgT... args) { - - _impl_.cursor_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CurrentOfExpr.cursor_name) -} -inline std::string* CurrentOfExpr::mutable_cursor_name() { - std::string* _s = _internal_mutable_cursor_name(); - // @@protoc_insertion_point(field_mutable:pg_query.CurrentOfExpr.cursor_name) - return _s; -} -inline const std::string& CurrentOfExpr::_internal_cursor_name() const { - return _impl_.cursor_name_.Get(); -} -inline void CurrentOfExpr::_internal_set_cursor_name(const std::string& value) { - - _impl_.cursor_name_.Set(value, GetArenaForAllocation()); -} -inline std::string* CurrentOfExpr::_internal_mutable_cursor_name() { - - return _impl_.cursor_name_.Mutable(GetArenaForAllocation()); -} -inline std::string* CurrentOfExpr::release_cursor_name() { - // @@protoc_insertion_point(field_release:pg_query.CurrentOfExpr.cursor_name) - return _impl_.cursor_name_.Release(); -} -inline void CurrentOfExpr::set_allocated_cursor_name(std::string* cursor_name) { - if (cursor_name != nullptr) { - - } else { - - } - _impl_.cursor_name_.SetAllocated(cursor_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.cursor_name_.IsDefault()) { - _impl_.cursor_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CurrentOfExpr.cursor_name) -} - -// int32 cursor_param = 4 [json_name = "cursor_param"]; -inline void CurrentOfExpr::clear_cursor_param() { - _impl_.cursor_param_ = 0; -} -inline int32_t CurrentOfExpr::_internal_cursor_param() const { - return _impl_.cursor_param_; -} -inline int32_t CurrentOfExpr::cursor_param() const { - // @@protoc_insertion_point(field_get:pg_query.CurrentOfExpr.cursor_param) - return _internal_cursor_param(); -} -inline void CurrentOfExpr::_internal_set_cursor_param(int32_t value) { - - _impl_.cursor_param_ = value; -} -inline void CurrentOfExpr::set_cursor_param(int32_t value) { - _internal_set_cursor_param(value); - // @@protoc_insertion_point(field_set:pg_query.CurrentOfExpr.cursor_param) -} - -// ------------------------------------------------------------------- - -// NextValueExpr - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool NextValueExpr::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool NextValueExpr::has_xpr() const { - return _internal_has_xpr(); -} -inline void NextValueExpr::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& NextValueExpr::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& NextValueExpr::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.NextValueExpr.xpr) - return _internal_xpr(); -} -inline void NextValueExpr::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.NextValueExpr.xpr) -} -inline ::pg_query::Node* NextValueExpr::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* NextValueExpr::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.NextValueExpr.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* NextValueExpr::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* NextValueExpr::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.NextValueExpr.xpr) - return _msg; -} -inline void NextValueExpr::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.NextValueExpr.xpr) -} - -// uint32 seqid = 2 [json_name = "seqid"]; -inline void NextValueExpr::clear_seqid() { - _impl_.seqid_ = 0u; -} -inline uint32_t NextValueExpr::_internal_seqid() const { - return _impl_.seqid_; -} -inline uint32_t NextValueExpr::seqid() const { - // @@protoc_insertion_point(field_get:pg_query.NextValueExpr.seqid) - return _internal_seqid(); -} -inline void NextValueExpr::_internal_set_seqid(uint32_t value) { - - _impl_.seqid_ = value; -} -inline void NextValueExpr::set_seqid(uint32_t value) { - _internal_set_seqid(value); - // @@protoc_insertion_point(field_set:pg_query.NextValueExpr.seqid) -} - -// uint32 type_id = 3 [json_name = "typeId"]; -inline void NextValueExpr::clear_type_id() { - _impl_.type_id_ = 0u; -} -inline uint32_t NextValueExpr::_internal_type_id() const { - return _impl_.type_id_; -} -inline uint32_t NextValueExpr::type_id() const { - // @@protoc_insertion_point(field_get:pg_query.NextValueExpr.type_id) - return _internal_type_id(); -} -inline void NextValueExpr::_internal_set_type_id(uint32_t value) { - - _impl_.type_id_ = value; -} -inline void NextValueExpr::set_type_id(uint32_t value) { - _internal_set_type_id(value); - // @@protoc_insertion_point(field_set:pg_query.NextValueExpr.type_id) -} - -// ------------------------------------------------------------------- - -// InferenceElem - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool InferenceElem::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool InferenceElem::has_xpr() const { - return _internal_has_xpr(); -} -inline void InferenceElem::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& InferenceElem::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& InferenceElem::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.InferenceElem.xpr) - return _internal_xpr(); -} -inline void InferenceElem::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.InferenceElem.xpr) -} -inline ::pg_query::Node* InferenceElem::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* InferenceElem::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.InferenceElem.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* InferenceElem::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* InferenceElem::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.InferenceElem.xpr) - return _msg; -} -inline void InferenceElem::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.InferenceElem.xpr) -} - -// .pg_query.Node expr = 2 [json_name = "expr"]; -inline bool InferenceElem::_internal_has_expr() const { - return this != internal_default_instance() && _impl_.expr_ != nullptr; -} -inline bool InferenceElem::has_expr() const { - return _internal_has_expr(); -} -inline void InferenceElem::clear_expr() { - if (GetArenaForAllocation() == nullptr && _impl_.expr_ != nullptr) { - delete _impl_.expr_; - } - _impl_.expr_ = nullptr; -} -inline const ::pg_query::Node& InferenceElem::_internal_expr() const { - const ::pg_query::Node* p = _impl_.expr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& InferenceElem::expr() const { - // @@protoc_insertion_point(field_get:pg_query.InferenceElem.expr) - return _internal_expr(); -} -inline void InferenceElem::unsafe_arena_set_allocated_expr( - ::pg_query::Node* expr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.expr_); - } - _impl_.expr_ = expr; - if (expr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.InferenceElem.expr) -} -inline ::pg_query::Node* InferenceElem::release_expr() { - - ::pg_query::Node* temp = _impl_.expr_; - _impl_.expr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* InferenceElem::unsafe_arena_release_expr() { - // @@protoc_insertion_point(field_release:pg_query.InferenceElem.expr) - - ::pg_query::Node* temp = _impl_.expr_; - _impl_.expr_ = nullptr; - return temp; -} -inline ::pg_query::Node* InferenceElem::_internal_mutable_expr() { - - if (_impl_.expr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.expr_ = p; - } - return _impl_.expr_; -} -inline ::pg_query::Node* InferenceElem::mutable_expr() { - ::pg_query::Node* _msg = _internal_mutable_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.InferenceElem.expr) - return _msg; -} -inline void InferenceElem::set_allocated_expr(::pg_query::Node* expr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.expr_; - } - if (expr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(expr); - if (message_arena != submessage_arena) { - expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, expr, submessage_arena); - } - - } else { - - } - _impl_.expr_ = expr; - // @@protoc_insertion_point(field_set_allocated:pg_query.InferenceElem.expr) -} - -// uint32 infercollid = 3 [json_name = "infercollid"]; -inline void InferenceElem::clear_infercollid() { - _impl_.infercollid_ = 0u; -} -inline uint32_t InferenceElem::_internal_infercollid() const { - return _impl_.infercollid_; -} -inline uint32_t InferenceElem::infercollid() const { - // @@protoc_insertion_point(field_get:pg_query.InferenceElem.infercollid) - return _internal_infercollid(); -} -inline void InferenceElem::_internal_set_infercollid(uint32_t value) { - - _impl_.infercollid_ = value; -} -inline void InferenceElem::set_infercollid(uint32_t value) { - _internal_set_infercollid(value); - // @@protoc_insertion_point(field_set:pg_query.InferenceElem.infercollid) -} - -// uint32 inferopclass = 4 [json_name = "inferopclass"]; -inline void InferenceElem::clear_inferopclass() { - _impl_.inferopclass_ = 0u; -} -inline uint32_t InferenceElem::_internal_inferopclass() const { - return _impl_.inferopclass_; -} -inline uint32_t InferenceElem::inferopclass() const { - // @@protoc_insertion_point(field_get:pg_query.InferenceElem.inferopclass) - return _internal_inferopclass(); -} -inline void InferenceElem::_internal_set_inferopclass(uint32_t value) { - - _impl_.inferopclass_ = value; -} -inline void InferenceElem::set_inferopclass(uint32_t value) { - _internal_set_inferopclass(value); - // @@protoc_insertion_point(field_set:pg_query.InferenceElem.inferopclass) -} - -// ------------------------------------------------------------------- - -// TargetEntry - -// .pg_query.Node xpr = 1 [json_name = "xpr"]; -inline bool TargetEntry::_internal_has_xpr() const { - return this != internal_default_instance() && _impl_.xpr_ != nullptr; -} -inline bool TargetEntry::has_xpr() const { - return _internal_has_xpr(); -} -inline void TargetEntry::clear_xpr() { - if (GetArenaForAllocation() == nullptr && _impl_.xpr_ != nullptr) { - delete _impl_.xpr_; - } - _impl_.xpr_ = nullptr; -} -inline const ::pg_query::Node& TargetEntry::_internal_xpr() const { - const ::pg_query::Node* p = _impl_.xpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& TargetEntry::xpr() const { - // @@protoc_insertion_point(field_get:pg_query.TargetEntry.xpr) - return _internal_xpr(); -} -inline void TargetEntry::unsafe_arena_set_allocated_xpr( - ::pg_query::Node* xpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xpr_); - } - _impl_.xpr_ = xpr; - if (xpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.TargetEntry.xpr) -} -inline ::pg_query::Node* TargetEntry::release_xpr() { - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* TargetEntry::unsafe_arena_release_xpr() { - // @@protoc_insertion_point(field_release:pg_query.TargetEntry.xpr) - - ::pg_query::Node* temp = _impl_.xpr_; - _impl_.xpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* TargetEntry::_internal_mutable_xpr() { - - if (_impl_.xpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.xpr_ = p; - } - return _impl_.xpr_; -} -inline ::pg_query::Node* TargetEntry::mutable_xpr() { - ::pg_query::Node* _msg = _internal_mutable_xpr(); - // @@protoc_insertion_point(field_mutable:pg_query.TargetEntry.xpr) - return _msg; -} -inline void TargetEntry::set_allocated_xpr(::pg_query::Node* xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.xpr_; - } - if (xpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(xpr); - if (message_arena != submessage_arena) { - xpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, xpr, submessage_arena); - } - - } else { - - } - _impl_.xpr_ = xpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.TargetEntry.xpr) -} - -// .pg_query.Node expr = 2 [json_name = "expr"]; -inline bool TargetEntry::_internal_has_expr() const { - return this != internal_default_instance() && _impl_.expr_ != nullptr; -} -inline bool TargetEntry::has_expr() const { - return _internal_has_expr(); -} -inline void TargetEntry::clear_expr() { - if (GetArenaForAllocation() == nullptr && _impl_.expr_ != nullptr) { - delete _impl_.expr_; - } - _impl_.expr_ = nullptr; -} -inline const ::pg_query::Node& TargetEntry::_internal_expr() const { - const ::pg_query::Node* p = _impl_.expr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& TargetEntry::expr() const { - // @@protoc_insertion_point(field_get:pg_query.TargetEntry.expr) - return _internal_expr(); -} -inline void TargetEntry::unsafe_arena_set_allocated_expr( - ::pg_query::Node* expr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.expr_); - } - _impl_.expr_ = expr; - if (expr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.TargetEntry.expr) -} -inline ::pg_query::Node* TargetEntry::release_expr() { - - ::pg_query::Node* temp = _impl_.expr_; - _impl_.expr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* TargetEntry::unsafe_arena_release_expr() { - // @@protoc_insertion_point(field_release:pg_query.TargetEntry.expr) - - ::pg_query::Node* temp = _impl_.expr_; - _impl_.expr_ = nullptr; - return temp; -} -inline ::pg_query::Node* TargetEntry::_internal_mutable_expr() { - - if (_impl_.expr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.expr_ = p; - } - return _impl_.expr_; -} -inline ::pg_query::Node* TargetEntry::mutable_expr() { - ::pg_query::Node* _msg = _internal_mutable_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.TargetEntry.expr) - return _msg; -} -inline void TargetEntry::set_allocated_expr(::pg_query::Node* expr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.expr_; - } - if (expr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(expr); - if (message_arena != submessage_arena) { - expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, expr, submessage_arena); - } - - } else { - - } - _impl_.expr_ = expr; - // @@protoc_insertion_point(field_set_allocated:pg_query.TargetEntry.expr) -} - -// int32 resno = 3 [json_name = "resno"]; -inline void TargetEntry::clear_resno() { - _impl_.resno_ = 0; -} -inline int32_t TargetEntry::_internal_resno() const { - return _impl_.resno_; -} -inline int32_t TargetEntry::resno() const { - // @@protoc_insertion_point(field_get:pg_query.TargetEntry.resno) - return _internal_resno(); -} -inline void TargetEntry::_internal_set_resno(int32_t value) { - - _impl_.resno_ = value; -} -inline void TargetEntry::set_resno(int32_t value) { - _internal_set_resno(value); - // @@protoc_insertion_point(field_set:pg_query.TargetEntry.resno) -} - -// string resname = 4 [json_name = "resname"]; -inline void TargetEntry::clear_resname() { - _impl_.resname_.ClearToEmpty(); -} -inline const std::string& TargetEntry::resname() const { - // @@protoc_insertion_point(field_get:pg_query.TargetEntry.resname) - return _internal_resname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void TargetEntry::set_resname(ArgT0&& arg0, ArgT... args) { - - _impl_.resname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.TargetEntry.resname) -} -inline std::string* TargetEntry::mutable_resname() { - std::string* _s = _internal_mutable_resname(); - // @@protoc_insertion_point(field_mutable:pg_query.TargetEntry.resname) - return _s; -} -inline const std::string& TargetEntry::_internal_resname() const { - return _impl_.resname_.Get(); -} -inline void TargetEntry::_internal_set_resname(const std::string& value) { - - _impl_.resname_.Set(value, GetArenaForAllocation()); -} -inline std::string* TargetEntry::_internal_mutable_resname() { - - return _impl_.resname_.Mutable(GetArenaForAllocation()); -} -inline std::string* TargetEntry::release_resname() { - // @@protoc_insertion_point(field_release:pg_query.TargetEntry.resname) - return _impl_.resname_.Release(); -} -inline void TargetEntry::set_allocated_resname(std::string* resname) { - if (resname != nullptr) { - - } else { - - } - _impl_.resname_.SetAllocated(resname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.resname_.IsDefault()) { - _impl_.resname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.TargetEntry.resname) -} - -// uint32 ressortgroupref = 5 [json_name = "ressortgroupref"]; -inline void TargetEntry::clear_ressortgroupref() { - _impl_.ressortgroupref_ = 0u; -} -inline uint32_t TargetEntry::_internal_ressortgroupref() const { - return _impl_.ressortgroupref_; -} -inline uint32_t TargetEntry::ressortgroupref() const { - // @@protoc_insertion_point(field_get:pg_query.TargetEntry.ressortgroupref) - return _internal_ressortgroupref(); -} -inline void TargetEntry::_internal_set_ressortgroupref(uint32_t value) { - - _impl_.ressortgroupref_ = value; -} -inline void TargetEntry::set_ressortgroupref(uint32_t value) { - _internal_set_ressortgroupref(value); - // @@protoc_insertion_point(field_set:pg_query.TargetEntry.ressortgroupref) -} - -// uint32 resorigtbl = 6 [json_name = "resorigtbl"]; -inline void TargetEntry::clear_resorigtbl() { - _impl_.resorigtbl_ = 0u; -} -inline uint32_t TargetEntry::_internal_resorigtbl() const { - return _impl_.resorigtbl_; -} -inline uint32_t TargetEntry::resorigtbl() const { - // @@protoc_insertion_point(field_get:pg_query.TargetEntry.resorigtbl) - return _internal_resorigtbl(); -} -inline void TargetEntry::_internal_set_resorigtbl(uint32_t value) { - - _impl_.resorigtbl_ = value; -} -inline void TargetEntry::set_resorigtbl(uint32_t value) { - _internal_set_resorigtbl(value); - // @@protoc_insertion_point(field_set:pg_query.TargetEntry.resorigtbl) -} - -// int32 resorigcol = 7 [json_name = "resorigcol"]; -inline void TargetEntry::clear_resorigcol() { - _impl_.resorigcol_ = 0; -} -inline int32_t TargetEntry::_internal_resorigcol() const { - return _impl_.resorigcol_; -} -inline int32_t TargetEntry::resorigcol() const { - // @@protoc_insertion_point(field_get:pg_query.TargetEntry.resorigcol) - return _internal_resorigcol(); -} -inline void TargetEntry::_internal_set_resorigcol(int32_t value) { - - _impl_.resorigcol_ = value; -} -inline void TargetEntry::set_resorigcol(int32_t value) { - _internal_set_resorigcol(value); - // @@protoc_insertion_point(field_set:pg_query.TargetEntry.resorigcol) -} - -// bool resjunk = 8 [json_name = "resjunk"]; -inline void TargetEntry::clear_resjunk() { - _impl_.resjunk_ = false; -} -inline bool TargetEntry::_internal_resjunk() const { - return _impl_.resjunk_; -} -inline bool TargetEntry::resjunk() const { - // @@protoc_insertion_point(field_get:pg_query.TargetEntry.resjunk) - return _internal_resjunk(); -} -inline void TargetEntry::_internal_set_resjunk(bool value) { - - _impl_.resjunk_ = value; -} -inline void TargetEntry::set_resjunk(bool value) { - _internal_set_resjunk(value); - // @@protoc_insertion_point(field_set:pg_query.TargetEntry.resjunk) -} - -// ------------------------------------------------------------------- - -// RangeTblRef - -// int32 rtindex = 1 [json_name = "rtindex"]; -inline void RangeTblRef::clear_rtindex() { - _impl_.rtindex_ = 0; -} -inline int32_t RangeTblRef::_internal_rtindex() const { - return _impl_.rtindex_; -} -inline int32_t RangeTblRef::rtindex() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblRef.rtindex) - return _internal_rtindex(); -} -inline void RangeTblRef::_internal_set_rtindex(int32_t value) { - - _impl_.rtindex_ = value; -} -inline void RangeTblRef::set_rtindex(int32_t value) { - _internal_set_rtindex(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblRef.rtindex) -} - -// ------------------------------------------------------------------- - -// JoinExpr - -// .pg_query.JoinType jointype = 1 [json_name = "jointype"]; -inline void JoinExpr::clear_jointype() { - _impl_.jointype_ = 0; -} -inline ::pg_query::JoinType JoinExpr::_internal_jointype() const { - return static_cast< ::pg_query::JoinType >(_impl_.jointype_); -} -inline ::pg_query::JoinType JoinExpr::jointype() const { - // @@protoc_insertion_point(field_get:pg_query.JoinExpr.jointype) - return _internal_jointype(); -} -inline void JoinExpr::_internal_set_jointype(::pg_query::JoinType value) { - - _impl_.jointype_ = value; -} -inline void JoinExpr::set_jointype(::pg_query::JoinType value) { - _internal_set_jointype(value); - // @@protoc_insertion_point(field_set:pg_query.JoinExpr.jointype) -} - -// bool is_natural = 2 [json_name = "isNatural"]; -inline void JoinExpr::clear_is_natural() { - _impl_.is_natural_ = false; -} -inline bool JoinExpr::_internal_is_natural() const { - return _impl_.is_natural_; -} -inline bool JoinExpr::is_natural() const { - // @@protoc_insertion_point(field_get:pg_query.JoinExpr.is_natural) - return _internal_is_natural(); -} -inline void JoinExpr::_internal_set_is_natural(bool value) { - - _impl_.is_natural_ = value; -} -inline void JoinExpr::set_is_natural(bool value) { - _internal_set_is_natural(value); - // @@protoc_insertion_point(field_set:pg_query.JoinExpr.is_natural) -} - -// .pg_query.Node larg = 3 [json_name = "larg"]; -inline bool JoinExpr::_internal_has_larg() const { - return this != internal_default_instance() && _impl_.larg_ != nullptr; -} -inline bool JoinExpr::has_larg() const { - return _internal_has_larg(); -} -inline void JoinExpr::clear_larg() { - if (GetArenaForAllocation() == nullptr && _impl_.larg_ != nullptr) { - delete _impl_.larg_; - } - _impl_.larg_ = nullptr; -} -inline const ::pg_query::Node& JoinExpr::_internal_larg() const { - const ::pg_query::Node* p = _impl_.larg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& JoinExpr::larg() const { - // @@protoc_insertion_point(field_get:pg_query.JoinExpr.larg) - return _internal_larg(); -} -inline void JoinExpr::unsafe_arena_set_allocated_larg( - ::pg_query::Node* larg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.larg_); - } - _impl_.larg_ = larg; - if (larg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.JoinExpr.larg) -} -inline ::pg_query::Node* JoinExpr::release_larg() { - - ::pg_query::Node* temp = _impl_.larg_; - _impl_.larg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* JoinExpr::unsafe_arena_release_larg() { - // @@protoc_insertion_point(field_release:pg_query.JoinExpr.larg) - - ::pg_query::Node* temp = _impl_.larg_; - _impl_.larg_ = nullptr; - return temp; -} -inline ::pg_query::Node* JoinExpr::_internal_mutable_larg() { - - if (_impl_.larg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.larg_ = p; - } - return _impl_.larg_; -} -inline ::pg_query::Node* JoinExpr::mutable_larg() { - ::pg_query::Node* _msg = _internal_mutable_larg(); - // @@protoc_insertion_point(field_mutable:pg_query.JoinExpr.larg) - return _msg; -} -inline void JoinExpr::set_allocated_larg(::pg_query::Node* larg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.larg_; - } - if (larg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(larg); - if (message_arena != submessage_arena) { - larg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, larg, submessage_arena); - } - - } else { - - } - _impl_.larg_ = larg; - // @@protoc_insertion_point(field_set_allocated:pg_query.JoinExpr.larg) -} - -// .pg_query.Node rarg = 4 [json_name = "rarg"]; -inline bool JoinExpr::_internal_has_rarg() const { - return this != internal_default_instance() && _impl_.rarg_ != nullptr; -} -inline bool JoinExpr::has_rarg() const { - return _internal_has_rarg(); -} -inline void JoinExpr::clear_rarg() { - if (GetArenaForAllocation() == nullptr && _impl_.rarg_ != nullptr) { - delete _impl_.rarg_; - } - _impl_.rarg_ = nullptr; -} -inline const ::pg_query::Node& JoinExpr::_internal_rarg() const { - const ::pg_query::Node* p = _impl_.rarg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& JoinExpr::rarg() const { - // @@protoc_insertion_point(field_get:pg_query.JoinExpr.rarg) - return _internal_rarg(); -} -inline void JoinExpr::unsafe_arena_set_allocated_rarg( - ::pg_query::Node* rarg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.rarg_); - } - _impl_.rarg_ = rarg; - if (rarg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.JoinExpr.rarg) -} -inline ::pg_query::Node* JoinExpr::release_rarg() { - - ::pg_query::Node* temp = _impl_.rarg_; - _impl_.rarg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* JoinExpr::unsafe_arena_release_rarg() { - // @@protoc_insertion_point(field_release:pg_query.JoinExpr.rarg) - - ::pg_query::Node* temp = _impl_.rarg_; - _impl_.rarg_ = nullptr; - return temp; -} -inline ::pg_query::Node* JoinExpr::_internal_mutable_rarg() { - - if (_impl_.rarg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.rarg_ = p; - } - return _impl_.rarg_; -} -inline ::pg_query::Node* JoinExpr::mutable_rarg() { - ::pg_query::Node* _msg = _internal_mutable_rarg(); - // @@protoc_insertion_point(field_mutable:pg_query.JoinExpr.rarg) - return _msg; -} -inline void JoinExpr::set_allocated_rarg(::pg_query::Node* rarg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.rarg_; - } - if (rarg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(rarg); - if (message_arena != submessage_arena) { - rarg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, rarg, submessage_arena); - } - - } else { - - } - _impl_.rarg_ = rarg; - // @@protoc_insertion_point(field_set_allocated:pg_query.JoinExpr.rarg) -} - -// repeated .pg_query.Node using_clause = 5 [json_name = "usingClause"]; -inline int JoinExpr::_internal_using_clause_size() const { - return _impl_.using_clause_.size(); -} -inline int JoinExpr::using_clause_size() const { - return _internal_using_clause_size(); -} -inline void JoinExpr::clear_using_clause() { - _impl_.using_clause_.Clear(); -} -inline ::pg_query::Node* JoinExpr::mutable_using_clause(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.JoinExpr.using_clause) - return _impl_.using_clause_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -JoinExpr::mutable_using_clause() { - // @@protoc_insertion_point(field_mutable_list:pg_query.JoinExpr.using_clause) - return &_impl_.using_clause_; -} -inline const ::pg_query::Node& JoinExpr::_internal_using_clause(int index) const { - return _impl_.using_clause_.Get(index); -} -inline const ::pg_query::Node& JoinExpr::using_clause(int index) const { - // @@protoc_insertion_point(field_get:pg_query.JoinExpr.using_clause) - return _internal_using_clause(index); -} -inline ::pg_query::Node* JoinExpr::_internal_add_using_clause() { - return _impl_.using_clause_.Add(); -} -inline ::pg_query::Node* JoinExpr::add_using_clause() { - ::pg_query::Node* _add = _internal_add_using_clause(); - // @@protoc_insertion_point(field_add:pg_query.JoinExpr.using_clause) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -JoinExpr::using_clause() const { - // @@protoc_insertion_point(field_list:pg_query.JoinExpr.using_clause) - return _impl_.using_clause_; -} - -// .pg_query.Alias join_using_alias = 6 [json_name = "join_using_alias"]; -inline bool JoinExpr::_internal_has_join_using_alias() const { - return this != internal_default_instance() && _impl_.join_using_alias_ != nullptr; -} -inline bool JoinExpr::has_join_using_alias() const { - return _internal_has_join_using_alias(); -} -inline void JoinExpr::clear_join_using_alias() { - if (GetArenaForAllocation() == nullptr && _impl_.join_using_alias_ != nullptr) { - delete _impl_.join_using_alias_; - } - _impl_.join_using_alias_ = nullptr; -} -inline const ::pg_query::Alias& JoinExpr::_internal_join_using_alias() const { - const ::pg_query::Alias* p = _impl_.join_using_alias_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Alias_default_instance_); -} -inline const ::pg_query::Alias& JoinExpr::join_using_alias() const { - // @@protoc_insertion_point(field_get:pg_query.JoinExpr.join_using_alias) - return _internal_join_using_alias(); -} -inline void JoinExpr::unsafe_arena_set_allocated_join_using_alias( - ::pg_query::Alias* join_using_alias) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.join_using_alias_); - } - _impl_.join_using_alias_ = join_using_alias; - if (join_using_alias) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.JoinExpr.join_using_alias) -} -inline ::pg_query::Alias* JoinExpr::release_join_using_alias() { - - ::pg_query::Alias* temp = _impl_.join_using_alias_; - _impl_.join_using_alias_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Alias* JoinExpr::unsafe_arena_release_join_using_alias() { - // @@protoc_insertion_point(field_release:pg_query.JoinExpr.join_using_alias) - - ::pg_query::Alias* temp = _impl_.join_using_alias_; - _impl_.join_using_alias_ = nullptr; - return temp; -} -inline ::pg_query::Alias* JoinExpr::_internal_mutable_join_using_alias() { - - if (_impl_.join_using_alias_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Alias>(GetArenaForAllocation()); - _impl_.join_using_alias_ = p; - } - return _impl_.join_using_alias_; -} -inline ::pg_query::Alias* JoinExpr::mutable_join_using_alias() { - ::pg_query::Alias* _msg = _internal_mutable_join_using_alias(); - // @@protoc_insertion_point(field_mutable:pg_query.JoinExpr.join_using_alias) - return _msg; -} -inline void JoinExpr::set_allocated_join_using_alias(::pg_query::Alias* join_using_alias) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.join_using_alias_; - } - if (join_using_alias) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(join_using_alias); - if (message_arena != submessage_arena) { - join_using_alias = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, join_using_alias, submessage_arena); - } - - } else { - - } - _impl_.join_using_alias_ = join_using_alias; - // @@protoc_insertion_point(field_set_allocated:pg_query.JoinExpr.join_using_alias) -} - -// .pg_query.Node quals = 7 [json_name = "quals"]; -inline bool JoinExpr::_internal_has_quals() const { - return this != internal_default_instance() && _impl_.quals_ != nullptr; -} -inline bool JoinExpr::has_quals() const { - return _internal_has_quals(); -} -inline void JoinExpr::clear_quals() { - if (GetArenaForAllocation() == nullptr && _impl_.quals_ != nullptr) { - delete _impl_.quals_; - } - _impl_.quals_ = nullptr; -} -inline const ::pg_query::Node& JoinExpr::_internal_quals() const { - const ::pg_query::Node* p = _impl_.quals_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& JoinExpr::quals() const { - // @@protoc_insertion_point(field_get:pg_query.JoinExpr.quals) - return _internal_quals(); -} -inline void JoinExpr::unsafe_arena_set_allocated_quals( - ::pg_query::Node* quals) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.quals_); - } - _impl_.quals_ = quals; - if (quals) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.JoinExpr.quals) -} -inline ::pg_query::Node* JoinExpr::release_quals() { - - ::pg_query::Node* temp = _impl_.quals_; - _impl_.quals_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* JoinExpr::unsafe_arena_release_quals() { - // @@protoc_insertion_point(field_release:pg_query.JoinExpr.quals) - - ::pg_query::Node* temp = _impl_.quals_; - _impl_.quals_ = nullptr; - return temp; -} -inline ::pg_query::Node* JoinExpr::_internal_mutable_quals() { - - if (_impl_.quals_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.quals_ = p; - } - return _impl_.quals_; -} -inline ::pg_query::Node* JoinExpr::mutable_quals() { - ::pg_query::Node* _msg = _internal_mutable_quals(); - // @@protoc_insertion_point(field_mutable:pg_query.JoinExpr.quals) - return _msg; -} -inline void JoinExpr::set_allocated_quals(::pg_query::Node* quals) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.quals_; - } - if (quals) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(quals); - if (message_arena != submessage_arena) { - quals = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, quals, submessage_arena); - } - - } else { - - } - _impl_.quals_ = quals; - // @@protoc_insertion_point(field_set_allocated:pg_query.JoinExpr.quals) -} - -// .pg_query.Alias alias = 8 [json_name = "alias"]; -inline bool JoinExpr::_internal_has_alias() const { - return this != internal_default_instance() && _impl_.alias_ != nullptr; -} -inline bool JoinExpr::has_alias() const { - return _internal_has_alias(); -} -inline void JoinExpr::clear_alias() { - if (GetArenaForAllocation() == nullptr && _impl_.alias_ != nullptr) { - delete _impl_.alias_; - } - _impl_.alias_ = nullptr; -} -inline const ::pg_query::Alias& JoinExpr::_internal_alias() const { - const ::pg_query::Alias* p = _impl_.alias_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Alias_default_instance_); -} -inline const ::pg_query::Alias& JoinExpr::alias() const { - // @@protoc_insertion_point(field_get:pg_query.JoinExpr.alias) - return _internal_alias(); -} -inline void JoinExpr::unsafe_arena_set_allocated_alias( - ::pg_query::Alias* alias) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.alias_); - } - _impl_.alias_ = alias; - if (alias) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.JoinExpr.alias) -} -inline ::pg_query::Alias* JoinExpr::release_alias() { - - ::pg_query::Alias* temp = _impl_.alias_; - _impl_.alias_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Alias* JoinExpr::unsafe_arena_release_alias() { - // @@protoc_insertion_point(field_release:pg_query.JoinExpr.alias) - - ::pg_query::Alias* temp = _impl_.alias_; - _impl_.alias_ = nullptr; - return temp; -} -inline ::pg_query::Alias* JoinExpr::_internal_mutable_alias() { - - if (_impl_.alias_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Alias>(GetArenaForAllocation()); - _impl_.alias_ = p; - } - return _impl_.alias_; -} -inline ::pg_query::Alias* JoinExpr::mutable_alias() { - ::pg_query::Alias* _msg = _internal_mutable_alias(); - // @@protoc_insertion_point(field_mutable:pg_query.JoinExpr.alias) - return _msg; -} -inline void JoinExpr::set_allocated_alias(::pg_query::Alias* alias) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.alias_; - } - if (alias) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(alias); - if (message_arena != submessage_arena) { - alias = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, alias, submessage_arena); - } - - } else { - - } - _impl_.alias_ = alias; - // @@protoc_insertion_point(field_set_allocated:pg_query.JoinExpr.alias) -} - -// int32 rtindex = 9 [json_name = "rtindex"]; -inline void JoinExpr::clear_rtindex() { - _impl_.rtindex_ = 0; -} -inline int32_t JoinExpr::_internal_rtindex() const { - return _impl_.rtindex_; -} -inline int32_t JoinExpr::rtindex() const { - // @@protoc_insertion_point(field_get:pg_query.JoinExpr.rtindex) - return _internal_rtindex(); -} -inline void JoinExpr::_internal_set_rtindex(int32_t value) { - - _impl_.rtindex_ = value; -} -inline void JoinExpr::set_rtindex(int32_t value) { - _internal_set_rtindex(value); - // @@protoc_insertion_point(field_set:pg_query.JoinExpr.rtindex) -} - -// ------------------------------------------------------------------- - -// FromExpr - -// repeated .pg_query.Node fromlist = 1 [json_name = "fromlist"]; -inline int FromExpr::_internal_fromlist_size() const { - return _impl_.fromlist_.size(); -} -inline int FromExpr::fromlist_size() const { - return _internal_fromlist_size(); -} -inline void FromExpr::clear_fromlist() { - _impl_.fromlist_.Clear(); -} -inline ::pg_query::Node* FromExpr::mutable_fromlist(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.FromExpr.fromlist) - return _impl_.fromlist_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -FromExpr::mutable_fromlist() { - // @@protoc_insertion_point(field_mutable_list:pg_query.FromExpr.fromlist) - return &_impl_.fromlist_; -} -inline const ::pg_query::Node& FromExpr::_internal_fromlist(int index) const { - return _impl_.fromlist_.Get(index); -} -inline const ::pg_query::Node& FromExpr::fromlist(int index) const { - // @@protoc_insertion_point(field_get:pg_query.FromExpr.fromlist) - return _internal_fromlist(index); -} -inline ::pg_query::Node* FromExpr::_internal_add_fromlist() { - return _impl_.fromlist_.Add(); -} -inline ::pg_query::Node* FromExpr::add_fromlist() { - ::pg_query::Node* _add = _internal_add_fromlist(); - // @@protoc_insertion_point(field_add:pg_query.FromExpr.fromlist) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -FromExpr::fromlist() const { - // @@protoc_insertion_point(field_list:pg_query.FromExpr.fromlist) - return _impl_.fromlist_; -} - -// .pg_query.Node quals = 2 [json_name = "quals"]; -inline bool FromExpr::_internal_has_quals() const { - return this != internal_default_instance() && _impl_.quals_ != nullptr; -} -inline bool FromExpr::has_quals() const { - return _internal_has_quals(); -} -inline void FromExpr::clear_quals() { - if (GetArenaForAllocation() == nullptr && _impl_.quals_ != nullptr) { - delete _impl_.quals_; - } - _impl_.quals_ = nullptr; -} -inline const ::pg_query::Node& FromExpr::_internal_quals() const { - const ::pg_query::Node* p = _impl_.quals_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& FromExpr::quals() const { - // @@protoc_insertion_point(field_get:pg_query.FromExpr.quals) - return _internal_quals(); -} -inline void FromExpr::unsafe_arena_set_allocated_quals( - ::pg_query::Node* quals) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.quals_); - } - _impl_.quals_ = quals; - if (quals) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.FromExpr.quals) -} -inline ::pg_query::Node* FromExpr::release_quals() { - - ::pg_query::Node* temp = _impl_.quals_; - _impl_.quals_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* FromExpr::unsafe_arena_release_quals() { - // @@protoc_insertion_point(field_release:pg_query.FromExpr.quals) - - ::pg_query::Node* temp = _impl_.quals_; - _impl_.quals_ = nullptr; - return temp; -} -inline ::pg_query::Node* FromExpr::_internal_mutable_quals() { - - if (_impl_.quals_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.quals_ = p; - } - return _impl_.quals_; -} -inline ::pg_query::Node* FromExpr::mutable_quals() { - ::pg_query::Node* _msg = _internal_mutable_quals(); - // @@protoc_insertion_point(field_mutable:pg_query.FromExpr.quals) - return _msg; -} -inline void FromExpr::set_allocated_quals(::pg_query::Node* quals) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.quals_; - } - if (quals) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(quals); - if (message_arena != submessage_arena) { - quals = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, quals, submessage_arena); - } - - } else { - - } - _impl_.quals_ = quals; - // @@protoc_insertion_point(field_set_allocated:pg_query.FromExpr.quals) -} - -// ------------------------------------------------------------------- - -// OnConflictExpr - -// .pg_query.OnConflictAction action = 1 [json_name = "action"]; -inline void OnConflictExpr::clear_action() { - _impl_.action_ = 0; -} -inline ::pg_query::OnConflictAction OnConflictExpr::_internal_action() const { - return static_cast< ::pg_query::OnConflictAction >(_impl_.action_); -} -inline ::pg_query::OnConflictAction OnConflictExpr::action() const { - // @@protoc_insertion_point(field_get:pg_query.OnConflictExpr.action) - return _internal_action(); -} -inline void OnConflictExpr::_internal_set_action(::pg_query::OnConflictAction value) { - - _impl_.action_ = value; -} -inline void OnConflictExpr::set_action(::pg_query::OnConflictAction value) { - _internal_set_action(value); - // @@protoc_insertion_point(field_set:pg_query.OnConflictExpr.action) -} - -// repeated .pg_query.Node arbiter_elems = 2 [json_name = "arbiterElems"]; -inline int OnConflictExpr::_internal_arbiter_elems_size() const { - return _impl_.arbiter_elems_.size(); -} -inline int OnConflictExpr::arbiter_elems_size() const { - return _internal_arbiter_elems_size(); -} -inline void OnConflictExpr::clear_arbiter_elems() { - _impl_.arbiter_elems_.Clear(); -} -inline ::pg_query::Node* OnConflictExpr::mutable_arbiter_elems(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.OnConflictExpr.arbiter_elems) - return _impl_.arbiter_elems_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -OnConflictExpr::mutable_arbiter_elems() { - // @@protoc_insertion_point(field_mutable_list:pg_query.OnConflictExpr.arbiter_elems) - return &_impl_.arbiter_elems_; -} -inline const ::pg_query::Node& OnConflictExpr::_internal_arbiter_elems(int index) const { - return _impl_.arbiter_elems_.Get(index); -} -inline const ::pg_query::Node& OnConflictExpr::arbiter_elems(int index) const { - // @@protoc_insertion_point(field_get:pg_query.OnConflictExpr.arbiter_elems) - return _internal_arbiter_elems(index); -} -inline ::pg_query::Node* OnConflictExpr::_internal_add_arbiter_elems() { - return _impl_.arbiter_elems_.Add(); -} -inline ::pg_query::Node* OnConflictExpr::add_arbiter_elems() { - ::pg_query::Node* _add = _internal_add_arbiter_elems(); - // @@protoc_insertion_point(field_add:pg_query.OnConflictExpr.arbiter_elems) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -OnConflictExpr::arbiter_elems() const { - // @@protoc_insertion_point(field_list:pg_query.OnConflictExpr.arbiter_elems) - return _impl_.arbiter_elems_; -} - -// .pg_query.Node arbiter_where = 3 [json_name = "arbiterWhere"]; -inline bool OnConflictExpr::_internal_has_arbiter_where() const { - return this != internal_default_instance() && _impl_.arbiter_where_ != nullptr; -} -inline bool OnConflictExpr::has_arbiter_where() const { - return _internal_has_arbiter_where(); -} -inline void OnConflictExpr::clear_arbiter_where() { - if (GetArenaForAllocation() == nullptr && _impl_.arbiter_where_ != nullptr) { - delete _impl_.arbiter_where_; - } - _impl_.arbiter_where_ = nullptr; -} -inline const ::pg_query::Node& OnConflictExpr::_internal_arbiter_where() const { - const ::pg_query::Node* p = _impl_.arbiter_where_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& OnConflictExpr::arbiter_where() const { - // @@protoc_insertion_point(field_get:pg_query.OnConflictExpr.arbiter_where) - return _internal_arbiter_where(); -} -inline void OnConflictExpr::unsafe_arena_set_allocated_arbiter_where( - ::pg_query::Node* arbiter_where) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arbiter_where_); - } - _impl_.arbiter_where_ = arbiter_where; - if (arbiter_where) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.OnConflictExpr.arbiter_where) -} -inline ::pg_query::Node* OnConflictExpr::release_arbiter_where() { - - ::pg_query::Node* temp = _impl_.arbiter_where_; - _impl_.arbiter_where_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* OnConflictExpr::unsafe_arena_release_arbiter_where() { - // @@protoc_insertion_point(field_release:pg_query.OnConflictExpr.arbiter_where) - - ::pg_query::Node* temp = _impl_.arbiter_where_; - _impl_.arbiter_where_ = nullptr; - return temp; -} -inline ::pg_query::Node* OnConflictExpr::_internal_mutable_arbiter_where() { - - if (_impl_.arbiter_where_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.arbiter_where_ = p; - } - return _impl_.arbiter_where_; -} -inline ::pg_query::Node* OnConflictExpr::mutable_arbiter_where() { - ::pg_query::Node* _msg = _internal_mutable_arbiter_where(); - // @@protoc_insertion_point(field_mutable:pg_query.OnConflictExpr.arbiter_where) - return _msg; -} -inline void OnConflictExpr::set_allocated_arbiter_where(::pg_query::Node* arbiter_where) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.arbiter_where_; - } - if (arbiter_where) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(arbiter_where); - if (message_arena != submessage_arena) { - arbiter_where = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, arbiter_where, submessage_arena); - } - - } else { - - } - _impl_.arbiter_where_ = arbiter_where; - // @@protoc_insertion_point(field_set_allocated:pg_query.OnConflictExpr.arbiter_where) -} - -// uint32 constraint = 4 [json_name = "constraint"]; -inline void OnConflictExpr::clear_constraint() { - _impl_.constraint_ = 0u; -} -inline uint32_t OnConflictExpr::_internal_constraint() const { - return _impl_.constraint_; -} -inline uint32_t OnConflictExpr::constraint() const { - // @@protoc_insertion_point(field_get:pg_query.OnConflictExpr.constraint) - return _internal_constraint(); -} -inline void OnConflictExpr::_internal_set_constraint(uint32_t value) { - - _impl_.constraint_ = value; -} -inline void OnConflictExpr::set_constraint(uint32_t value) { - _internal_set_constraint(value); - // @@protoc_insertion_point(field_set:pg_query.OnConflictExpr.constraint) -} - -// repeated .pg_query.Node on_conflict_set = 5 [json_name = "onConflictSet"]; -inline int OnConflictExpr::_internal_on_conflict_set_size() const { - return _impl_.on_conflict_set_.size(); -} -inline int OnConflictExpr::on_conflict_set_size() const { - return _internal_on_conflict_set_size(); -} -inline void OnConflictExpr::clear_on_conflict_set() { - _impl_.on_conflict_set_.Clear(); -} -inline ::pg_query::Node* OnConflictExpr::mutable_on_conflict_set(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.OnConflictExpr.on_conflict_set) - return _impl_.on_conflict_set_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -OnConflictExpr::mutable_on_conflict_set() { - // @@protoc_insertion_point(field_mutable_list:pg_query.OnConflictExpr.on_conflict_set) - return &_impl_.on_conflict_set_; -} -inline const ::pg_query::Node& OnConflictExpr::_internal_on_conflict_set(int index) const { - return _impl_.on_conflict_set_.Get(index); -} -inline const ::pg_query::Node& OnConflictExpr::on_conflict_set(int index) const { - // @@protoc_insertion_point(field_get:pg_query.OnConflictExpr.on_conflict_set) - return _internal_on_conflict_set(index); -} -inline ::pg_query::Node* OnConflictExpr::_internal_add_on_conflict_set() { - return _impl_.on_conflict_set_.Add(); -} -inline ::pg_query::Node* OnConflictExpr::add_on_conflict_set() { - ::pg_query::Node* _add = _internal_add_on_conflict_set(); - // @@protoc_insertion_point(field_add:pg_query.OnConflictExpr.on_conflict_set) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -OnConflictExpr::on_conflict_set() const { - // @@protoc_insertion_point(field_list:pg_query.OnConflictExpr.on_conflict_set) - return _impl_.on_conflict_set_; -} - -// .pg_query.Node on_conflict_where = 6 [json_name = "onConflictWhere"]; -inline bool OnConflictExpr::_internal_has_on_conflict_where() const { - return this != internal_default_instance() && _impl_.on_conflict_where_ != nullptr; -} -inline bool OnConflictExpr::has_on_conflict_where() const { - return _internal_has_on_conflict_where(); -} -inline void OnConflictExpr::clear_on_conflict_where() { - if (GetArenaForAllocation() == nullptr && _impl_.on_conflict_where_ != nullptr) { - delete _impl_.on_conflict_where_; - } - _impl_.on_conflict_where_ = nullptr; -} -inline const ::pg_query::Node& OnConflictExpr::_internal_on_conflict_where() const { - const ::pg_query::Node* p = _impl_.on_conflict_where_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& OnConflictExpr::on_conflict_where() const { - // @@protoc_insertion_point(field_get:pg_query.OnConflictExpr.on_conflict_where) - return _internal_on_conflict_where(); -} -inline void OnConflictExpr::unsafe_arena_set_allocated_on_conflict_where( - ::pg_query::Node* on_conflict_where) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.on_conflict_where_); - } - _impl_.on_conflict_where_ = on_conflict_where; - if (on_conflict_where) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.OnConflictExpr.on_conflict_where) -} -inline ::pg_query::Node* OnConflictExpr::release_on_conflict_where() { - - ::pg_query::Node* temp = _impl_.on_conflict_where_; - _impl_.on_conflict_where_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* OnConflictExpr::unsafe_arena_release_on_conflict_where() { - // @@protoc_insertion_point(field_release:pg_query.OnConflictExpr.on_conflict_where) - - ::pg_query::Node* temp = _impl_.on_conflict_where_; - _impl_.on_conflict_where_ = nullptr; - return temp; -} -inline ::pg_query::Node* OnConflictExpr::_internal_mutable_on_conflict_where() { - - if (_impl_.on_conflict_where_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.on_conflict_where_ = p; - } - return _impl_.on_conflict_where_; -} -inline ::pg_query::Node* OnConflictExpr::mutable_on_conflict_where() { - ::pg_query::Node* _msg = _internal_mutable_on_conflict_where(); - // @@protoc_insertion_point(field_mutable:pg_query.OnConflictExpr.on_conflict_where) - return _msg; -} -inline void OnConflictExpr::set_allocated_on_conflict_where(::pg_query::Node* on_conflict_where) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.on_conflict_where_; - } - if (on_conflict_where) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(on_conflict_where); - if (message_arena != submessage_arena) { - on_conflict_where = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, on_conflict_where, submessage_arena); - } - - } else { - - } - _impl_.on_conflict_where_ = on_conflict_where; - // @@protoc_insertion_point(field_set_allocated:pg_query.OnConflictExpr.on_conflict_where) -} - -// int32 excl_rel_index = 7 [json_name = "exclRelIndex"]; -inline void OnConflictExpr::clear_excl_rel_index() { - _impl_.excl_rel_index_ = 0; -} -inline int32_t OnConflictExpr::_internal_excl_rel_index() const { - return _impl_.excl_rel_index_; -} -inline int32_t OnConflictExpr::excl_rel_index() const { - // @@protoc_insertion_point(field_get:pg_query.OnConflictExpr.excl_rel_index) - return _internal_excl_rel_index(); -} -inline void OnConflictExpr::_internal_set_excl_rel_index(int32_t value) { - - _impl_.excl_rel_index_ = value; -} -inline void OnConflictExpr::set_excl_rel_index(int32_t value) { - _internal_set_excl_rel_index(value); - // @@protoc_insertion_point(field_set:pg_query.OnConflictExpr.excl_rel_index) -} - -// repeated .pg_query.Node excl_rel_tlist = 8 [json_name = "exclRelTlist"]; -inline int OnConflictExpr::_internal_excl_rel_tlist_size() const { - return _impl_.excl_rel_tlist_.size(); -} -inline int OnConflictExpr::excl_rel_tlist_size() const { - return _internal_excl_rel_tlist_size(); -} -inline void OnConflictExpr::clear_excl_rel_tlist() { - _impl_.excl_rel_tlist_.Clear(); -} -inline ::pg_query::Node* OnConflictExpr::mutable_excl_rel_tlist(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.OnConflictExpr.excl_rel_tlist) - return _impl_.excl_rel_tlist_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -OnConflictExpr::mutable_excl_rel_tlist() { - // @@protoc_insertion_point(field_mutable_list:pg_query.OnConflictExpr.excl_rel_tlist) - return &_impl_.excl_rel_tlist_; -} -inline const ::pg_query::Node& OnConflictExpr::_internal_excl_rel_tlist(int index) const { - return _impl_.excl_rel_tlist_.Get(index); -} -inline const ::pg_query::Node& OnConflictExpr::excl_rel_tlist(int index) const { - // @@protoc_insertion_point(field_get:pg_query.OnConflictExpr.excl_rel_tlist) - return _internal_excl_rel_tlist(index); -} -inline ::pg_query::Node* OnConflictExpr::_internal_add_excl_rel_tlist() { - return _impl_.excl_rel_tlist_.Add(); -} -inline ::pg_query::Node* OnConflictExpr::add_excl_rel_tlist() { - ::pg_query::Node* _add = _internal_add_excl_rel_tlist(); - // @@protoc_insertion_point(field_add:pg_query.OnConflictExpr.excl_rel_tlist) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -OnConflictExpr::excl_rel_tlist() const { - // @@protoc_insertion_point(field_list:pg_query.OnConflictExpr.excl_rel_tlist) - return _impl_.excl_rel_tlist_; -} - -// ------------------------------------------------------------------- - -// IntoClause - -// .pg_query.RangeVar rel = 1 [json_name = "rel"]; -inline bool IntoClause::_internal_has_rel() const { - return this != internal_default_instance() && _impl_.rel_ != nullptr; -} -inline bool IntoClause::has_rel() const { - return _internal_has_rel(); -} -inline void IntoClause::clear_rel() { - if (GetArenaForAllocation() == nullptr && _impl_.rel_ != nullptr) { - delete _impl_.rel_; - } - _impl_.rel_ = nullptr; -} -inline const ::pg_query::RangeVar& IntoClause::_internal_rel() const { - const ::pg_query::RangeVar* p = _impl_.rel_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& IntoClause::rel() const { - // @@protoc_insertion_point(field_get:pg_query.IntoClause.rel) - return _internal_rel(); -} -inline void IntoClause::unsafe_arena_set_allocated_rel( - ::pg_query::RangeVar* rel) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.rel_); - } - _impl_.rel_ = rel; - if (rel) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.IntoClause.rel) -} -inline ::pg_query::RangeVar* IntoClause::release_rel() { - - ::pg_query::RangeVar* temp = _impl_.rel_; - _impl_.rel_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* IntoClause::unsafe_arena_release_rel() { - // @@protoc_insertion_point(field_release:pg_query.IntoClause.rel) - - ::pg_query::RangeVar* temp = _impl_.rel_; - _impl_.rel_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* IntoClause::_internal_mutable_rel() { - - if (_impl_.rel_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.rel_ = p; - } - return _impl_.rel_; -} -inline ::pg_query::RangeVar* IntoClause::mutable_rel() { - ::pg_query::RangeVar* _msg = _internal_mutable_rel(); - // @@protoc_insertion_point(field_mutable:pg_query.IntoClause.rel) - return _msg; -} -inline void IntoClause::set_allocated_rel(::pg_query::RangeVar* rel) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.rel_; - } - if (rel) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(rel); - if (message_arena != submessage_arena) { - rel = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, rel, submessage_arena); - } - - } else { - - } - _impl_.rel_ = rel; - // @@protoc_insertion_point(field_set_allocated:pg_query.IntoClause.rel) -} - -// repeated .pg_query.Node col_names = 2 [json_name = "colNames"]; -inline int IntoClause::_internal_col_names_size() const { - return _impl_.col_names_.size(); -} -inline int IntoClause::col_names_size() const { - return _internal_col_names_size(); -} -inline void IntoClause::clear_col_names() { - _impl_.col_names_.Clear(); -} -inline ::pg_query::Node* IntoClause::mutable_col_names(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.IntoClause.col_names) - return _impl_.col_names_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -IntoClause::mutable_col_names() { - // @@protoc_insertion_point(field_mutable_list:pg_query.IntoClause.col_names) - return &_impl_.col_names_; -} -inline const ::pg_query::Node& IntoClause::_internal_col_names(int index) const { - return _impl_.col_names_.Get(index); -} -inline const ::pg_query::Node& IntoClause::col_names(int index) const { - // @@protoc_insertion_point(field_get:pg_query.IntoClause.col_names) - return _internal_col_names(index); -} -inline ::pg_query::Node* IntoClause::_internal_add_col_names() { - return _impl_.col_names_.Add(); -} -inline ::pg_query::Node* IntoClause::add_col_names() { - ::pg_query::Node* _add = _internal_add_col_names(); - // @@protoc_insertion_point(field_add:pg_query.IntoClause.col_names) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -IntoClause::col_names() const { - // @@protoc_insertion_point(field_list:pg_query.IntoClause.col_names) - return _impl_.col_names_; -} - -// string access_method = 3 [json_name = "accessMethod"]; -inline void IntoClause::clear_access_method() { - _impl_.access_method_.ClearToEmpty(); -} -inline const std::string& IntoClause::access_method() const { - // @@protoc_insertion_point(field_get:pg_query.IntoClause.access_method) - return _internal_access_method(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void IntoClause::set_access_method(ArgT0&& arg0, ArgT... args) { - - _impl_.access_method_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.IntoClause.access_method) -} -inline std::string* IntoClause::mutable_access_method() { - std::string* _s = _internal_mutable_access_method(); - // @@protoc_insertion_point(field_mutable:pg_query.IntoClause.access_method) - return _s; -} -inline const std::string& IntoClause::_internal_access_method() const { - return _impl_.access_method_.Get(); -} -inline void IntoClause::_internal_set_access_method(const std::string& value) { - - _impl_.access_method_.Set(value, GetArenaForAllocation()); -} -inline std::string* IntoClause::_internal_mutable_access_method() { - - return _impl_.access_method_.Mutable(GetArenaForAllocation()); -} -inline std::string* IntoClause::release_access_method() { - // @@protoc_insertion_point(field_release:pg_query.IntoClause.access_method) - return _impl_.access_method_.Release(); -} -inline void IntoClause::set_allocated_access_method(std::string* access_method) { - if (access_method != nullptr) { - - } else { - - } - _impl_.access_method_.SetAllocated(access_method, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.access_method_.IsDefault()) { - _impl_.access_method_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.IntoClause.access_method) -} - -// repeated .pg_query.Node options = 4 [json_name = "options"]; -inline int IntoClause::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int IntoClause::options_size() const { - return _internal_options_size(); -} -inline void IntoClause::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* IntoClause::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.IntoClause.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -IntoClause::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.IntoClause.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& IntoClause::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& IntoClause::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.IntoClause.options) - return _internal_options(index); -} -inline ::pg_query::Node* IntoClause::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* IntoClause::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.IntoClause.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -IntoClause::options() const { - // @@protoc_insertion_point(field_list:pg_query.IntoClause.options) - return _impl_.options_; -} - -// .pg_query.OnCommitAction on_commit = 5 [json_name = "onCommit"]; -inline void IntoClause::clear_on_commit() { - _impl_.on_commit_ = 0; -} -inline ::pg_query::OnCommitAction IntoClause::_internal_on_commit() const { - return static_cast< ::pg_query::OnCommitAction >(_impl_.on_commit_); -} -inline ::pg_query::OnCommitAction IntoClause::on_commit() const { - // @@protoc_insertion_point(field_get:pg_query.IntoClause.on_commit) - return _internal_on_commit(); -} -inline void IntoClause::_internal_set_on_commit(::pg_query::OnCommitAction value) { - - _impl_.on_commit_ = value; -} -inline void IntoClause::set_on_commit(::pg_query::OnCommitAction value) { - _internal_set_on_commit(value); - // @@protoc_insertion_point(field_set:pg_query.IntoClause.on_commit) -} - -// string table_space_name = 6 [json_name = "tableSpaceName"]; -inline void IntoClause::clear_table_space_name() { - _impl_.table_space_name_.ClearToEmpty(); -} -inline const std::string& IntoClause::table_space_name() const { - // @@protoc_insertion_point(field_get:pg_query.IntoClause.table_space_name) - return _internal_table_space_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void IntoClause::set_table_space_name(ArgT0&& arg0, ArgT... args) { - - _impl_.table_space_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.IntoClause.table_space_name) -} -inline std::string* IntoClause::mutable_table_space_name() { - std::string* _s = _internal_mutable_table_space_name(); - // @@protoc_insertion_point(field_mutable:pg_query.IntoClause.table_space_name) - return _s; -} -inline const std::string& IntoClause::_internal_table_space_name() const { - return _impl_.table_space_name_.Get(); -} -inline void IntoClause::_internal_set_table_space_name(const std::string& value) { - - _impl_.table_space_name_.Set(value, GetArenaForAllocation()); -} -inline std::string* IntoClause::_internal_mutable_table_space_name() { - - return _impl_.table_space_name_.Mutable(GetArenaForAllocation()); -} -inline std::string* IntoClause::release_table_space_name() { - // @@protoc_insertion_point(field_release:pg_query.IntoClause.table_space_name) - return _impl_.table_space_name_.Release(); -} -inline void IntoClause::set_allocated_table_space_name(std::string* table_space_name) { - if (table_space_name != nullptr) { - - } else { - - } - _impl_.table_space_name_.SetAllocated(table_space_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.table_space_name_.IsDefault()) { - _impl_.table_space_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.IntoClause.table_space_name) -} - -// .pg_query.Node view_query = 7 [json_name = "viewQuery"]; -inline bool IntoClause::_internal_has_view_query() const { - return this != internal_default_instance() && _impl_.view_query_ != nullptr; -} -inline bool IntoClause::has_view_query() const { - return _internal_has_view_query(); -} -inline void IntoClause::clear_view_query() { - if (GetArenaForAllocation() == nullptr && _impl_.view_query_ != nullptr) { - delete _impl_.view_query_; - } - _impl_.view_query_ = nullptr; -} -inline const ::pg_query::Node& IntoClause::_internal_view_query() const { - const ::pg_query::Node* p = _impl_.view_query_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& IntoClause::view_query() const { - // @@protoc_insertion_point(field_get:pg_query.IntoClause.view_query) - return _internal_view_query(); -} -inline void IntoClause::unsafe_arena_set_allocated_view_query( - ::pg_query::Node* view_query) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.view_query_); - } - _impl_.view_query_ = view_query; - if (view_query) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.IntoClause.view_query) -} -inline ::pg_query::Node* IntoClause::release_view_query() { - - ::pg_query::Node* temp = _impl_.view_query_; - _impl_.view_query_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* IntoClause::unsafe_arena_release_view_query() { - // @@protoc_insertion_point(field_release:pg_query.IntoClause.view_query) - - ::pg_query::Node* temp = _impl_.view_query_; - _impl_.view_query_ = nullptr; - return temp; -} -inline ::pg_query::Node* IntoClause::_internal_mutable_view_query() { - - if (_impl_.view_query_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.view_query_ = p; - } - return _impl_.view_query_; -} -inline ::pg_query::Node* IntoClause::mutable_view_query() { - ::pg_query::Node* _msg = _internal_mutable_view_query(); - // @@protoc_insertion_point(field_mutable:pg_query.IntoClause.view_query) - return _msg; -} -inline void IntoClause::set_allocated_view_query(::pg_query::Node* view_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.view_query_; - } - if (view_query) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(view_query); - if (message_arena != submessage_arena) { - view_query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, view_query, submessage_arena); - } - - } else { - - } - _impl_.view_query_ = view_query; - // @@protoc_insertion_point(field_set_allocated:pg_query.IntoClause.view_query) -} - -// bool skip_data = 8 [json_name = "skipData"]; -inline void IntoClause::clear_skip_data() { - _impl_.skip_data_ = false; -} -inline bool IntoClause::_internal_skip_data() const { - return _impl_.skip_data_; -} -inline bool IntoClause::skip_data() const { - // @@protoc_insertion_point(field_get:pg_query.IntoClause.skip_data) - return _internal_skip_data(); -} -inline void IntoClause::_internal_set_skip_data(bool value) { - - _impl_.skip_data_ = value; -} -inline void IntoClause::set_skip_data(bool value) { - _internal_set_skip_data(value); - // @@protoc_insertion_point(field_set:pg_query.IntoClause.skip_data) -} - -// ------------------------------------------------------------------- - -// MergeAction - -// bool matched = 1 [json_name = "matched"]; -inline void MergeAction::clear_matched() { - _impl_.matched_ = false; -} -inline bool MergeAction::_internal_matched() const { - return _impl_.matched_; -} -inline bool MergeAction::matched() const { - // @@protoc_insertion_point(field_get:pg_query.MergeAction.matched) - return _internal_matched(); -} -inline void MergeAction::_internal_set_matched(bool value) { - - _impl_.matched_ = value; -} -inline void MergeAction::set_matched(bool value) { - _internal_set_matched(value); - // @@protoc_insertion_point(field_set:pg_query.MergeAction.matched) -} - -// .pg_query.CmdType command_type = 2 [json_name = "commandType"]; -inline void MergeAction::clear_command_type() { - _impl_.command_type_ = 0; -} -inline ::pg_query::CmdType MergeAction::_internal_command_type() const { - return static_cast< ::pg_query::CmdType >(_impl_.command_type_); -} -inline ::pg_query::CmdType MergeAction::command_type() const { - // @@protoc_insertion_point(field_get:pg_query.MergeAction.command_type) - return _internal_command_type(); -} -inline void MergeAction::_internal_set_command_type(::pg_query::CmdType value) { - - _impl_.command_type_ = value; -} -inline void MergeAction::set_command_type(::pg_query::CmdType value) { - _internal_set_command_type(value); - // @@protoc_insertion_point(field_set:pg_query.MergeAction.command_type) -} - -// .pg_query.OverridingKind override = 3 [json_name = "override"]; -inline void MergeAction::clear_override() { - _impl_.override_ = 0; -} -inline ::pg_query::OverridingKind MergeAction::_internal_override() const { - return static_cast< ::pg_query::OverridingKind >(_impl_.override_); -} -inline ::pg_query::OverridingKind MergeAction::override() const { - // @@protoc_insertion_point(field_get:pg_query.MergeAction.override) - return _internal_override(); -} -inline void MergeAction::_internal_set_override(::pg_query::OverridingKind value) { - - _impl_.override_ = value; -} -inline void MergeAction::set_override(::pg_query::OverridingKind value) { - _internal_set_override(value); - // @@protoc_insertion_point(field_set:pg_query.MergeAction.override) -} - -// .pg_query.Node qual = 4 [json_name = "qual"]; -inline bool MergeAction::_internal_has_qual() const { - return this != internal_default_instance() && _impl_.qual_ != nullptr; -} -inline bool MergeAction::has_qual() const { - return _internal_has_qual(); -} -inline void MergeAction::clear_qual() { - if (GetArenaForAllocation() == nullptr && _impl_.qual_ != nullptr) { - delete _impl_.qual_; - } - _impl_.qual_ = nullptr; -} -inline const ::pg_query::Node& MergeAction::_internal_qual() const { - const ::pg_query::Node* p = _impl_.qual_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& MergeAction::qual() const { - // @@protoc_insertion_point(field_get:pg_query.MergeAction.qual) - return _internal_qual(); -} -inline void MergeAction::unsafe_arena_set_allocated_qual( - ::pg_query::Node* qual) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.qual_); - } - _impl_.qual_ = qual; - if (qual) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.MergeAction.qual) -} -inline ::pg_query::Node* MergeAction::release_qual() { - - ::pg_query::Node* temp = _impl_.qual_; - _impl_.qual_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* MergeAction::unsafe_arena_release_qual() { - // @@protoc_insertion_point(field_release:pg_query.MergeAction.qual) - - ::pg_query::Node* temp = _impl_.qual_; - _impl_.qual_ = nullptr; - return temp; -} -inline ::pg_query::Node* MergeAction::_internal_mutable_qual() { - - if (_impl_.qual_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.qual_ = p; - } - return _impl_.qual_; -} -inline ::pg_query::Node* MergeAction::mutable_qual() { - ::pg_query::Node* _msg = _internal_mutable_qual(); - // @@protoc_insertion_point(field_mutable:pg_query.MergeAction.qual) - return _msg; -} -inline void MergeAction::set_allocated_qual(::pg_query::Node* qual) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.qual_; - } - if (qual) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(qual); - if (message_arena != submessage_arena) { - qual = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, qual, submessage_arena); - } - - } else { - - } - _impl_.qual_ = qual; - // @@protoc_insertion_point(field_set_allocated:pg_query.MergeAction.qual) -} - -// repeated .pg_query.Node target_list = 5 [json_name = "targetList"]; -inline int MergeAction::_internal_target_list_size() const { - return _impl_.target_list_.size(); -} -inline int MergeAction::target_list_size() const { - return _internal_target_list_size(); -} -inline void MergeAction::clear_target_list() { - _impl_.target_list_.Clear(); -} -inline ::pg_query::Node* MergeAction::mutable_target_list(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.MergeAction.target_list) - return _impl_.target_list_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -MergeAction::mutable_target_list() { - // @@protoc_insertion_point(field_mutable_list:pg_query.MergeAction.target_list) - return &_impl_.target_list_; -} -inline const ::pg_query::Node& MergeAction::_internal_target_list(int index) const { - return _impl_.target_list_.Get(index); -} -inline const ::pg_query::Node& MergeAction::target_list(int index) const { - // @@protoc_insertion_point(field_get:pg_query.MergeAction.target_list) - return _internal_target_list(index); -} -inline ::pg_query::Node* MergeAction::_internal_add_target_list() { - return _impl_.target_list_.Add(); -} -inline ::pg_query::Node* MergeAction::add_target_list() { - ::pg_query::Node* _add = _internal_add_target_list(); - // @@protoc_insertion_point(field_add:pg_query.MergeAction.target_list) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -MergeAction::target_list() const { - // @@protoc_insertion_point(field_list:pg_query.MergeAction.target_list) - return _impl_.target_list_; -} - -// repeated .pg_query.Node update_colnos = 6 [json_name = "updateColnos"]; -inline int MergeAction::_internal_update_colnos_size() const { - return _impl_.update_colnos_.size(); -} -inline int MergeAction::update_colnos_size() const { - return _internal_update_colnos_size(); -} -inline void MergeAction::clear_update_colnos() { - _impl_.update_colnos_.Clear(); -} -inline ::pg_query::Node* MergeAction::mutable_update_colnos(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.MergeAction.update_colnos) - return _impl_.update_colnos_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -MergeAction::mutable_update_colnos() { - // @@protoc_insertion_point(field_mutable_list:pg_query.MergeAction.update_colnos) - return &_impl_.update_colnos_; -} -inline const ::pg_query::Node& MergeAction::_internal_update_colnos(int index) const { - return _impl_.update_colnos_.Get(index); -} -inline const ::pg_query::Node& MergeAction::update_colnos(int index) const { - // @@protoc_insertion_point(field_get:pg_query.MergeAction.update_colnos) - return _internal_update_colnos(index); -} -inline ::pg_query::Node* MergeAction::_internal_add_update_colnos() { - return _impl_.update_colnos_.Add(); -} -inline ::pg_query::Node* MergeAction::add_update_colnos() { - ::pg_query::Node* _add = _internal_add_update_colnos(); - // @@protoc_insertion_point(field_add:pg_query.MergeAction.update_colnos) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -MergeAction::update_colnos() const { - // @@protoc_insertion_point(field_list:pg_query.MergeAction.update_colnos) - return _impl_.update_colnos_; -} - -// ------------------------------------------------------------------- - -// RawStmt - -// .pg_query.Node stmt = 1 [json_name = "stmt"]; -inline bool RawStmt::_internal_has_stmt() const { - return this != internal_default_instance() && _impl_.stmt_ != nullptr; -} -inline bool RawStmt::has_stmt() const { - return _internal_has_stmt(); -} -inline void RawStmt::clear_stmt() { - if (GetArenaForAllocation() == nullptr && _impl_.stmt_ != nullptr) { - delete _impl_.stmt_; - } - _impl_.stmt_ = nullptr; -} -inline const ::pg_query::Node& RawStmt::_internal_stmt() const { - const ::pg_query::Node* p = _impl_.stmt_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& RawStmt::stmt() const { - // @@protoc_insertion_point(field_get:pg_query.RawStmt.stmt) - return _internal_stmt(); -} -inline void RawStmt::unsafe_arena_set_allocated_stmt( - ::pg_query::Node* stmt) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.stmt_); - } - _impl_.stmt_ = stmt; - if (stmt) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RawStmt.stmt) -} -inline ::pg_query::Node* RawStmt::release_stmt() { - - ::pg_query::Node* temp = _impl_.stmt_; - _impl_.stmt_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* RawStmt::unsafe_arena_release_stmt() { - // @@protoc_insertion_point(field_release:pg_query.RawStmt.stmt) - - ::pg_query::Node* temp = _impl_.stmt_; - _impl_.stmt_ = nullptr; - return temp; -} -inline ::pg_query::Node* RawStmt::_internal_mutable_stmt() { - - if (_impl_.stmt_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.stmt_ = p; - } - return _impl_.stmt_; -} -inline ::pg_query::Node* RawStmt::mutable_stmt() { - ::pg_query::Node* _msg = _internal_mutable_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.RawStmt.stmt) - return _msg; -} -inline void RawStmt::set_allocated_stmt(::pg_query::Node* stmt) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.stmt_; - } - if (stmt) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(stmt); - if (message_arena != submessage_arena) { - stmt = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, stmt, submessage_arena); - } - - } else { - - } - _impl_.stmt_ = stmt; - // @@protoc_insertion_point(field_set_allocated:pg_query.RawStmt.stmt) -} - -// int32 stmt_location = 2 [json_name = "stmt_location"]; -inline void RawStmt::clear_stmt_location() { - _impl_.stmt_location_ = 0; -} -inline int32_t RawStmt::_internal_stmt_location() const { - return _impl_.stmt_location_; -} -inline int32_t RawStmt::stmt_location() const { - // @@protoc_insertion_point(field_get:pg_query.RawStmt.stmt_location) - return _internal_stmt_location(); -} -inline void RawStmt::_internal_set_stmt_location(int32_t value) { - - _impl_.stmt_location_ = value; -} -inline void RawStmt::set_stmt_location(int32_t value) { - _internal_set_stmt_location(value); - // @@protoc_insertion_point(field_set:pg_query.RawStmt.stmt_location) -} - -// int32 stmt_len = 3 [json_name = "stmt_len"]; -inline void RawStmt::clear_stmt_len() { - _impl_.stmt_len_ = 0; -} -inline int32_t RawStmt::_internal_stmt_len() const { - return _impl_.stmt_len_; -} -inline int32_t RawStmt::stmt_len() const { - // @@protoc_insertion_point(field_get:pg_query.RawStmt.stmt_len) - return _internal_stmt_len(); -} -inline void RawStmt::_internal_set_stmt_len(int32_t value) { - - _impl_.stmt_len_ = value; -} -inline void RawStmt::set_stmt_len(int32_t value) { - _internal_set_stmt_len(value); - // @@protoc_insertion_point(field_set:pg_query.RawStmt.stmt_len) -} - -// ------------------------------------------------------------------- - -// Query - -// .pg_query.CmdType command_type = 1 [json_name = "commandType"]; -inline void Query::clear_command_type() { - _impl_.command_type_ = 0; -} -inline ::pg_query::CmdType Query::_internal_command_type() const { - return static_cast< ::pg_query::CmdType >(_impl_.command_type_); -} -inline ::pg_query::CmdType Query::command_type() const { - // @@protoc_insertion_point(field_get:pg_query.Query.command_type) - return _internal_command_type(); -} -inline void Query::_internal_set_command_type(::pg_query::CmdType value) { - - _impl_.command_type_ = value; -} -inline void Query::set_command_type(::pg_query::CmdType value) { - _internal_set_command_type(value); - // @@protoc_insertion_point(field_set:pg_query.Query.command_type) -} - -// .pg_query.QuerySource query_source = 2 [json_name = "querySource"]; -inline void Query::clear_query_source() { - _impl_.query_source_ = 0; -} -inline ::pg_query::QuerySource Query::_internal_query_source() const { - return static_cast< ::pg_query::QuerySource >(_impl_.query_source_); -} -inline ::pg_query::QuerySource Query::query_source() const { - // @@protoc_insertion_point(field_get:pg_query.Query.query_source) - return _internal_query_source(); -} -inline void Query::_internal_set_query_source(::pg_query::QuerySource value) { - - _impl_.query_source_ = value; -} -inline void Query::set_query_source(::pg_query::QuerySource value) { - _internal_set_query_source(value); - // @@protoc_insertion_point(field_set:pg_query.Query.query_source) -} - -// bool can_set_tag = 3 [json_name = "canSetTag"]; -inline void Query::clear_can_set_tag() { - _impl_.can_set_tag_ = false; -} -inline bool Query::_internal_can_set_tag() const { - return _impl_.can_set_tag_; -} -inline bool Query::can_set_tag() const { - // @@protoc_insertion_point(field_get:pg_query.Query.can_set_tag) - return _internal_can_set_tag(); -} -inline void Query::_internal_set_can_set_tag(bool value) { - - _impl_.can_set_tag_ = value; -} -inline void Query::set_can_set_tag(bool value) { - _internal_set_can_set_tag(value); - // @@protoc_insertion_point(field_set:pg_query.Query.can_set_tag) -} - -// .pg_query.Node utility_stmt = 4 [json_name = "utilityStmt"]; -inline bool Query::_internal_has_utility_stmt() const { - return this != internal_default_instance() && _impl_.utility_stmt_ != nullptr; -} -inline bool Query::has_utility_stmt() const { - return _internal_has_utility_stmt(); -} -inline void Query::clear_utility_stmt() { - if (GetArenaForAllocation() == nullptr && _impl_.utility_stmt_ != nullptr) { - delete _impl_.utility_stmt_; - } - _impl_.utility_stmt_ = nullptr; -} -inline const ::pg_query::Node& Query::_internal_utility_stmt() const { - const ::pg_query::Node* p = _impl_.utility_stmt_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& Query::utility_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.Query.utility_stmt) - return _internal_utility_stmt(); -} -inline void Query::unsafe_arena_set_allocated_utility_stmt( - ::pg_query::Node* utility_stmt) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.utility_stmt_); - } - _impl_.utility_stmt_ = utility_stmt; - if (utility_stmt) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Query.utility_stmt) -} -inline ::pg_query::Node* Query::release_utility_stmt() { - - ::pg_query::Node* temp = _impl_.utility_stmt_; - _impl_.utility_stmt_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* Query::unsafe_arena_release_utility_stmt() { - // @@protoc_insertion_point(field_release:pg_query.Query.utility_stmt) - - ::pg_query::Node* temp = _impl_.utility_stmt_; - _impl_.utility_stmt_ = nullptr; - return temp; -} -inline ::pg_query::Node* Query::_internal_mutable_utility_stmt() { - - if (_impl_.utility_stmt_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.utility_stmt_ = p; - } - return _impl_.utility_stmt_; -} -inline ::pg_query::Node* Query::mutable_utility_stmt() { - ::pg_query::Node* _msg = _internal_mutable_utility_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.Query.utility_stmt) - return _msg; -} -inline void Query::set_allocated_utility_stmt(::pg_query::Node* utility_stmt) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.utility_stmt_; - } - if (utility_stmt) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(utility_stmt); - if (message_arena != submessage_arena) { - utility_stmt = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, utility_stmt, submessage_arena); - } - - } else { - - } - _impl_.utility_stmt_ = utility_stmt; - // @@protoc_insertion_point(field_set_allocated:pg_query.Query.utility_stmt) -} - -// int32 result_relation = 5 [json_name = "resultRelation"]; -inline void Query::clear_result_relation() { - _impl_.result_relation_ = 0; -} -inline int32_t Query::_internal_result_relation() const { - return _impl_.result_relation_; -} -inline int32_t Query::result_relation() const { - // @@protoc_insertion_point(field_get:pg_query.Query.result_relation) - return _internal_result_relation(); -} -inline void Query::_internal_set_result_relation(int32_t value) { - - _impl_.result_relation_ = value; -} -inline void Query::set_result_relation(int32_t value) { - _internal_set_result_relation(value); - // @@protoc_insertion_point(field_set:pg_query.Query.result_relation) -} - -// bool has_aggs = 6 [json_name = "hasAggs"]; -inline void Query::clear_has_aggs() { - _impl_.has_aggs_ = false; -} -inline bool Query::_internal_has_aggs() const { - return _impl_.has_aggs_; -} -inline bool Query::has_aggs() const { - // @@protoc_insertion_point(field_get:pg_query.Query.has_aggs) - return _internal_has_aggs(); -} -inline void Query::_internal_set_has_aggs(bool value) { - - _impl_.has_aggs_ = value; -} -inline void Query::set_has_aggs(bool value) { - _internal_set_has_aggs(value); - // @@protoc_insertion_point(field_set:pg_query.Query.has_aggs) -} - -// bool has_window_funcs = 7 [json_name = "hasWindowFuncs"]; -inline void Query::clear_has_window_funcs() { - _impl_.has_window_funcs_ = false; -} -inline bool Query::_internal_has_window_funcs() const { - return _impl_.has_window_funcs_; -} -inline bool Query::has_window_funcs() const { - // @@protoc_insertion_point(field_get:pg_query.Query.has_window_funcs) - return _internal_has_window_funcs(); -} -inline void Query::_internal_set_has_window_funcs(bool value) { - - _impl_.has_window_funcs_ = value; -} -inline void Query::set_has_window_funcs(bool value) { - _internal_set_has_window_funcs(value); - // @@protoc_insertion_point(field_set:pg_query.Query.has_window_funcs) -} - -// bool has_target_srfs = 8 [json_name = "hasTargetSRFs"]; -inline void Query::clear_has_target_srfs() { - _impl_.has_target_srfs_ = false; -} -inline bool Query::_internal_has_target_srfs() const { - return _impl_.has_target_srfs_; -} -inline bool Query::has_target_srfs() const { - // @@protoc_insertion_point(field_get:pg_query.Query.has_target_srfs) - return _internal_has_target_srfs(); -} -inline void Query::_internal_set_has_target_srfs(bool value) { - - _impl_.has_target_srfs_ = value; -} -inline void Query::set_has_target_srfs(bool value) { - _internal_set_has_target_srfs(value); - // @@protoc_insertion_point(field_set:pg_query.Query.has_target_srfs) -} - -// bool has_sub_links = 9 [json_name = "hasSubLinks"]; -inline void Query::clear_has_sub_links() { - _impl_.has_sub_links_ = false; -} -inline bool Query::_internal_has_sub_links() const { - return _impl_.has_sub_links_; -} -inline bool Query::has_sub_links() const { - // @@protoc_insertion_point(field_get:pg_query.Query.has_sub_links) - return _internal_has_sub_links(); -} -inline void Query::_internal_set_has_sub_links(bool value) { - - _impl_.has_sub_links_ = value; -} -inline void Query::set_has_sub_links(bool value) { - _internal_set_has_sub_links(value); - // @@protoc_insertion_point(field_set:pg_query.Query.has_sub_links) -} - -// bool has_distinct_on = 10 [json_name = "hasDistinctOn"]; -inline void Query::clear_has_distinct_on() { - _impl_.has_distinct_on_ = false; -} -inline bool Query::_internal_has_distinct_on() const { - return _impl_.has_distinct_on_; -} -inline bool Query::has_distinct_on() const { - // @@protoc_insertion_point(field_get:pg_query.Query.has_distinct_on) - return _internal_has_distinct_on(); -} -inline void Query::_internal_set_has_distinct_on(bool value) { - - _impl_.has_distinct_on_ = value; -} -inline void Query::set_has_distinct_on(bool value) { - _internal_set_has_distinct_on(value); - // @@protoc_insertion_point(field_set:pg_query.Query.has_distinct_on) -} - -// bool has_recursive = 11 [json_name = "hasRecursive"]; -inline void Query::clear_has_recursive() { - _impl_.has_recursive_ = false; -} -inline bool Query::_internal_has_recursive() const { - return _impl_.has_recursive_; -} -inline bool Query::has_recursive() const { - // @@protoc_insertion_point(field_get:pg_query.Query.has_recursive) - return _internal_has_recursive(); -} -inline void Query::_internal_set_has_recursive(bool value) { - - _impl_.has_recursive_ = value; -} -inline void Query::set_has_recursive(bool value) { - _internal_set_has_recursive(value); - // @@protoc_insertion_point(field_set:pg_query.Query.has_recursive) -} - -// bool has_modifying_cte = 12 [json_name = "hasModifyingCTE"]; -inline void Query::clear_has_modifying_cte() { - _impl_.has_modifying_cte_ = false; -} -inline bool Query::_internal_has_modifying_cte() const { - return _impl_.has_modifying_cte_; -} -inline bool Query::has_modifying_cte() const { - // @@protoc_insertion_point(field_get:pg_query.Query.has_modifying_cte) - return _internal_has_modifying_cte(); -} -inline void Query::_internal_set_has_modifying_cte(bool value) { - - _impl_.has_modifying_cte_ = value; -} -inline void Query::set_has_modifying_cte(bool value) { - _internal_set_has_modifying_cte(value); - // @@protoc_insertion_point(field_set:pg_query.Query.has_modifying_cte) -} - -// bool has_for_update = 13 [json_name = "hasForUpdate"]; -inline void Query::clear_has_for_update() { - _impl_.has_for_update_ = false; -} -inline bool Query::_internal_has_for_update() const { - return _impl_.has_for_update_; -} -inline bool Query::has_for_update() const { - // @@protoc_insertion_point(field_get:pg_query.Query.has_for_update) - return _internal_has_for_update(); -} -inline void Query::_internal_set_has_for_update(bool value) { - - _impl_.has_for_update_ = value; -} -inline void Query::set_has_for_update(bool value) { - _internal_set_has_for_update(value); - // @@protoc_insertion_point(field_set:pg_query.Query.has_for_update) -} - -// bool has_row_security = 14 [json_name = "hasRowSecurity"]; -inline void Query::clear_has_row_security() { - _impl_.has_row_security_ = false; -} -inline bool Query::_internal_has_row_security() const { - return _impl_.has_row_security_; -} -inline bool Query::has_row_security() const { - // @@protoc_insertion_point(field_get:pg_query.Query.has_row_security) - return _internal_has_row_security(); -} -inline void Query::_internal_set_has_row_security(bool value) { - - _impl_.has_row_security_ = value; -} -inline void Query::set_has_row_security(bool value) { - _internal_set_has_row_security(value); - // @@protoc_insertion_point(field_set:pg_query.Query.has_row_security) -} - -// bool is_return = 15 [json_name = "isReturn"]; -inline void Query::clear_is_return() { - _impl_.is_return_ = false; -} -inline bool Query::_internal_is_return() const { - return _impl_.is_return_; -} -inline bool Query::is_return() const { - // @@protoc_insertion_point(field_get:pg_query.Query.is_return) - return _internal_is_return(); -} -inline void Query::_internal_set_is_return(bool value) { - - _impl_.is_return_ = value; -} -inline void Query::set_is_return(bool value) { - _internal_set_is_return(value); - // @@protoc_insertion_point(field_set:pg_query.Query.is_return) -} - -// repeated .pg_query.Node cte_list = 16 [json_name = "cteList"]; -inline int Query::_internal_cte_list_size() const { - return _impl_.cte_list_.size(); -} -inline int Query::cte_list_size() const { - return _internal_cte_list_size(); -} -inline void Query::clear_cte_list() { - _impl_.cte_list_.Clear(); -} -inline ::pg_query::Node* Query::mutable_cte_list(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Query.cte_list) - return _impl_.cte_list_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Query::mutable_cte_list() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Query.cte_list) - return &_impl_.cte_list_; -} -inline const ::pg_query::Node& Query::_internal_cte_list(int index) const { - return _impl_.cte_list_.Get(index); -} -inline const ::pg_query::Node& Query::cte_list(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Query.cte_list) - return _internal_cte_list(index); -} -inline ::pg_query::Node* Query::_internal_add_cte_list() { - return _impl_.cte_list_.Add(); -} -inline ::pg_query::Node* Query::add_cte_list() { - ::pg_query::Node* _add = _internal_add_cte_list(); - // @@protoc_insertion_point(field_add:pg_query.Query.cte_list) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Query::cte_list() const { - // @@protoc_insertion_point(field_list:pg_query.Query.cte_list) - return _impl_.cte_list_; -} - -// repeated .pg_query.Node rtable = 17 [json_name = "rtable"]; -inline int Query::_internal_rtable_size() const { - return _impl_.rtable_.size(); -} -inline int Query::rtable_size() const { - return _internal_rtable_size(); -} -inline void Query::clear_rtable() { - _impl_.rtable_.Clear(); -} -inline ::pg_query::Node* Query::mutable_rtable(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Query.rtable) - return _impl_.rtable_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Query::mutable_rtable() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Query.rtable) - return &_impl_.rtable_; -} -inline const ::pg_query::Node& Query::_internal_rtable(int index) const { - return _impl_.rtable_.Get(index); -} -inline const ::pg_query::Node& Query::rtable(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Query.rtable) - return _internal_rtable(index); -} -inline ::pg_query::Node* Query::_internal_add_rtable() { - return _impl_.rtable_.Add(); -} -inline ::pg_query::Node* Query::add_rtable() { - ::pg_query::Node* _add = _internal_add_rtable(); - // @@protoc_insertion_point(field_add:pg_query.Query.rtable) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Query::rtable() const { - // @@protoc_insertion_point(field_list:pg_query.Query.rtable) - return _impl_.rtable_; -} - -// .pg_query.FromExpr jointree = 18 [json_name = "jointree"]; -inline bool Query::_internal_has_jointree() const { - return this != internal_default_instance() && _impl_.jointree_ != nullptr; -} -inline bool Query::has_jointree() const { - return _internal_has_jointree(); -} -inline void Query::clear_jointree() { - if (GetArenaForAllocation() == nullptr && _impl_.jointree_ != nullptr) { - delete _impl_.jointree_; - } - _impl_.jointree_ = nullptr; -} -inline const ::pg_query::FromExpr& Query::_internal_jointree() const { - const ::pg_query::FromExpr* p = _impl_.jointree_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_FromExpr_default_instance_); -} -inline const ::pg_query::FromExpr& Query::jointree() const { - // @@protoc_insertion_point(field_get:pg_query.Query.jointree) - return _internal_jointree(); -} -inline void Query::unsafe_arena_set_allocated_jointree( - ::pg_query::FromExpr* jointree) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.jointree_); - } - _impl_.jointree_ = jointree; - if (jointree) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Query.jointree) -} -inline ::pg_query::FromExpr* Query::release_jointree() { - - ::pg_query::FromExpr* temp = _impl_.jointree_; - _impl_.jointree_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::FromExpr* Query::unsafe_arena_release_jointree() { - // @@protoc_insertion_point(field_release:pg_query.Query.jointree) - - ::pg_query::FromExpr* temp = _impl_.jointree_; - _impl_.jointree_ = nullptr; - return temp; -} -inline ::pg_query::FromExpr* Query::_internal_mutable_jointree() { - - if (_impl_.jointree_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::FromExpr>(GetArenaForAllocation()); - _impl_.jointree_ = p; - } - return _impl_.jointree_; -} -inline ::pg_query::FromExpr* Query::mutable_jointree() { - ::pg_query::FromExpr* _msg = _internal_mutable_jointree(); - // @@protoc_insertion_point(field_mutable:pg_query.Query.jointree) - return _msg; -} -inline void Query::set_allocated_jointree(::pg_query::FromExpr* jointree) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.jointree_; - } - if (jointree) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(jointree); - if (message_arena != submessage_arena) { - jointree = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, jointree, submessage_arena); - } - - } else { - - } - _impl_.jointree_ = jointree; - // @@protoc_insertion_point(field_set_allocated:pg_query.Query.jointree) -} - -// repeated .pg_query.Node merge_action_list = 19 [json_name = "mergeActionList"]; -inline int Query::_internal_merge_action_list_size() const { - return _impl_.merge_action_list_.size(); -} -inline int Query::merge_action_list_size() const { - return _internal_merge_action_list_size(); -} -inline void Query::clear_merge_action_list() { - _impl_.merge_action_list_.Clear(); -} -inline ::pg_query::Node* Query::mutable_merge_action_list(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Query.merge_action_list) - return _impl_.merge_action_list_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Query::mutable_merge_action_list() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Query.merge_action_list) - return &_impl_.merge_action_list_; -} -inline const ::pg_query::Node& Query::_internal_merge_action_list(int index) const { - return _impl_.merge_action_list_.Get(index); -} -inline const ::pg_query::Node& Query::merge_action_list(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Query.merge_action_list) - return _internal_merge_action_list(index); -} -inline ::pg_query::Node* Query::_internal_add_merge_action_list() { - return _impl_.merge_action_list_.Add(); -} -inline ::pg_query::Node* Query::add_merge_action_list() { - ::pg_query::Node* _add = _internal_add_merge_action_list(); - // @@protoc_insertion_point(field_add:pg_query.Query.merge_action_list) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Query::merge_action_list() const { - // @@protoc_insertion_point(field_list:pg_query.Query.merge_action_list) - return _impl_.merge_action_list_; -} - -// bool merge_use_outer_join = 20 [json_name = "mergeUseOuterJoin"]; -inline void Query::clear_merge_use_outer_join() { - _impl_.merge_use_outer_join_ = false; -} -inline bool Query::_internal_merge_use_outer_join() const { - return _impl_.merge_use_outer_join_; -} -inline bool Query::merge_use_outer_join() const { - // @@protoc_insertion_point(field_get:pg_query.Query.merge_use_outer_join) - return _internal_merge_use_outer_join(); -} -inline void Query::_internal_set_merge_use_outer_join(bool value) { - - _impl_.merge_use_outer_join_ = value; -} -inline void Query::set_merge_use_outer_join(bool value) { - _internal_set_merge_use_outer_join(value); - // @@protoc_insertion_point(field_set:pg_query.Query.merge_use_outer_join) -} - -// repeated .pg_query.Node target_list = 21 [json_name = "targetList"]; -inline int Query::_internal_target_list_size() const { - return _impl_.target_list_.size(); -} -inline int Query::target_list_size() const { - return _internal_target_list_size(); -} -inline void Query::clear_target_list() { - _impl_.target_list_.Clear(); -} -inline ::pg_query::Node* Query::mutable_target_list(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Query.target_list) - return _impl_.target_list_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Query::mutable_target_list() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Query.target_list) - return &_impl_.target_list_; -} -inline const ::pg_query::Node& Query::_internal_target_list(int index) const { - return _impl_.target_list_.Get(index); -} -inline const ::pg_query::Node& Query::target_list(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Query.target_list) - return _internal_target_list(index); -} -inline ::pg_query::Node* Query::_internal_add_target_list() { - return _impl_.target_list_.Add(); -} -inline ::pg_query::Node* Query::add_target_list() { - ::pg_query::Node* _add = _internal_add_target_list(); - // @@protoc_insertion_point(field_add:pg_query.Query.target_list) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Query::target_list() const { - // @@protoc_insertion_point(field_list:pg_query.Query.target_list) - return _impl_.target_list_; -} - -// .pg_query.OverridingKind override = 22 [json_name = "override"]; -inline void Query::clear_override() { - _impl_.override_ = 0; -} -inline ::pg_query::OverridingKind Query::_internal_override() const { - return static_cast< ::pg_query::OverridingKind >(_impl_.override_); -} -inline ::pg_query::OverridingKind Query::override() const { - // @@protoc_insertion_point(field_get:pg_query.Query.override) - return _internal_override(); -} -inline void Query::_internal_set_override(::pg_query::OverridingKind value) { - - _impl_.override_ = value; -} -inline void Query::set_override(::pg_query::OverridingKind value) { - _internal_set_override(value); - // @@protoc_insertion_point(field_set:pg_query.Query.override) -} - -// .pg_query.OnConflictExpr on_conflict = 23 [json_name = "onConflict"]; -inline bool Query::_internal_has_on_conflict() const { - return this != internal_default_instance() && _impl_.on_conflict_ != nullptr; -} -inline bool Query::has_on_conflict() const { - return _internal_has_on_conflict(); -} -inline void Query::clear_on_conflict() { - if (GetArenaForAllocation() == nullptr && _impl_.on_conflict_ != nullptr) { - delete _impl_.on_conflict_; - } - _impl_.on_conflict_ = nullptr; -} -inline const ::pg_query::OnConflictExpr& Query::_internal_on_conflict() const { - const ::pg_query::OnConflictExpr* p = _impl_.on_conflict_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_OnConflictExpr_default_instance_); -} -inline const ::pg_query::OnConflictExpr& Query::on_conflict() const { - // @@protoc_insertion_point(field_get:pg_query.Query.on_conflict) - return _internal_on_conflict(); -} -inline void Query::unsafe_arena_set_allocated_on_conflict( - ::pg_query::OnConflictExpr* on_conflict) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.on_conflict_); - } - _impl_.on_conflict_ = on_conflict; - if (on_conflict) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Query.on_conflict) -} -inline ::pg_query::OnConflictExpr* Query::release_on_conflict() { - - ::pg_query::OnConflictExpr* temp = _impl_.on_conflict_; - _impl_.on_conflict_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::OnConflictExpr* Query::unsafe_arena_release_on_conflict() { - // @@protoc_insertion_point(field_release:pg_query.Query.on_conflict) - - ::pg_query::OnConflictExpr* temp = _impl_.on_conflict_; - _impl_.on_conflict_ = nullptr; - return temp; -} -inline ::pg_query::OnConflictExpr* Query::_internal_mutable_on_conflict() { - - if (_impl_.on_conflict_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::OnConflictExpr>(GetArenaForAllocation()); - _impl_.on_conflict_ = p; - } - return _impl_.on_conflict_; -} -inline ::pg_query::OnConflictExpr* Query::mutable_on_conflict() { - ::pg_query::OnConflictExpr* _msg = _internal_mutable_on_conflict(); - // @@protoc_insertion_point(field_mutable:pg_query.Query.on_conflict) - return _msg; -} -inline void Query::set_allocated_on_conflict(::pg_query::OnConflictExpr* on_conflict) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.on_conflict_; - } - if (on_conflict) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(on_conflict); - if (message_arena != submessage_arena) { - on_conflict = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, on_conflict, submessage_arena); - } - - } else { - - } - _impl_.on_conflict_ = on_conflict; - // @@protoc_insertion_point(field_set_allocated:pg_query.Query.on_conflict) -} - -// repeated .pg_query.Node returning_list = 24 [json_name = "returningList"]; -inline int Query::_internal_returning_list_size() const { - return _impl_.returning_list_.size(); -} -inline int Query::returning_list_size() const { - return _internal_returning_list_size(); -} -inline void Query::clear_returning_list() { - _impl_.returning_list_.Clear(); -} -inline ::pg_query::Node* Query::mutable_returning_list(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Query.returning_list) - return _impl_.returning_list_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Query::mutable_returning_list() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Query.returning_list) - return &_impl_.returning_list_; -} -inline const ::pg_query::Node& Query::_internal_returning_list(int index) const { - return _impl_.returning_list_.Get(index); -} -inline const ::pg_query::Node& Query::returning_list(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Query.returning_list) - return _internal_returning_list(index); -} -inline ::pg_query::Node* Query::_internal_add_returning_list() { - return _impl_.returning_list_.Add(); -} -inline ::pg_query::Node* Query::add_returning_list() { - ::pg_query::Node* _add = _internal_add_returning_list(); - // @@protoc_insertion_point(field_add:pg_query.Query.returning_list) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Query::returning_list() const { - // @@protoc_insertion_point(field_list:pg_query.Query.returning_list) - return _impl_.returning_list_; -} - -// repeated .pg_query.Node group_clause = 25 [json_name = "groupClause"]; -inline int Query::_internal_group_clause_size() const { - return _impl_.group_clause_.size(); -} -inline int Query::group_clause_size() const { - return _internal_group_clause_size(); -} -inline void Query::clear_group_clause() { - _impl_.group_clause_.Clear(); -} -inline ::pg_query::Node* Query::mutable_group_clause(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Query.group_clause) - return _impl_.group_clause_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Query::mutable_group_clause() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Query.group_clause) - return &_impl_.group_clause_; -} -inline const ::pg_query::Node& Query::_internal_group_clause(int index) const { - return _impl_.group_clause_.Get(index); -} -inline const ::pg_query::Node& Query::group_clause(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Query.group_clause) - return _internal_group_clause(index); -} -inline ::pg_query::Node* Query::_internal_add_group_clause() { - return _impl_.group_clause_.Add(); -} -inline ::pg_query::Node* Query::add_group_clause() { - ::pg_query::Node* _add = _internal_add_group_clause(); - // @@protoc_insertion_point(field_add:pg_query.Query.group_clause) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Query::group_clause() const { - // @@protoc_insertion_point(field_list:pg_query.Query.group_clause) - return _impl_.group_clause_; -} - -// bool group_distinct = 26 [json_name = "groupDistinct"]; -inline void Query::clear_group_distinct() { - _impl_.group_distinct_ = false; -} -inline bool Query::_internal_group_distinct() const { - return _impl_.group_distinct_; -} -inline bool Query::group_distinct() const { - // @@protoc_insertion_point(field_get:pg_query.Query.group_distinct) - return _internal_group_distinct(); -} -inline void Query::_internal_set_group_distinct(bool value) { - - _impl_.group_distinct_ = value; -} -inline void Query::set_group_distinct(bool value) { - _internal_set_group_distinct(value); - // @@protoc_insertion_point(field_set:pg_query.Query.group_distinct) -} - -// repeated .pg_query.Node grouping_sets = 27 [json_name = "groupingSets"]; -inline int Query::_internal_grouping_sets_size() const { - return _impl_.grouping_sets_.size(); -} -inline int Query::grouping_sets_size() const { - return _internal_grouping_sets_size(); -} -inline void Query::clear_grouping_sets() { - _impl_.grouping_sets_.Clear(); -} -inline ::pg_query::Node* Query::mutable_grouping_sets(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Query.grouping_sets) - return _impl_.grouping_sets_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Query::mutable_grouping_sets() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Query.grouping_sets) - return &_impl_.grouping_sets_; -} -inline const ::pg_query::Node& Query::_internal_grouping_sets(int index) const { - return _impl_.grouping_sets_.Get(index); -} -inline const ::pg_query::Node& Query::grouping_sets(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Query.grouping_sets) - return _internal_grouping_sets(index); -} -inline ::pg_query::Node* Query::_internal_add_grouping_sets() { - return _impl_.grouping_sets_.Add(); -} -inline ::pg_query::Node* Query::add_grouping_sets() { - ::pg_query::Node* _add = _internal_add_grouping_sets(); - // @@protoc_insertion_point(field_add:pg_query.Query.grouping_sets) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Query::grouping_sets() const { - // @@protoc_insertion_point(field_list:pg_query.Query.grouping_sets) - return _impl_.grouping_sets_; -} - -// .pg_query.Node having_qual = 28 [json_name = "havingQual"]; -inline bool Query::_internal_has_having_qual() const { - return this != internal_default_instance() && _impl_.having_qual_ != nullptr; -} -inline bool Query::has_having_qual() const { - return _internal_has_having_qual(); -} -inline void Query::clear_having_qual() { - if (GetArenaForAllocation() == nullptr && _impl_.having_qual_ != nullptr) { - delete _impl_.having_qual_; - } - _impl_.having_qual_ = nullptr; -} -inline const ::pg_query::Node& Query::_internal_having_qual() const { - const ::pg_query::Node* p = _impl_.having_qual_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& Query::having_qual() const { - // @@protoc_insertion_point(field_get:pg_query.Query.having_qual) - return _internal_having_qual(); -} -inline void Query::unsafe_arena_set_allocated_having_qual( - ::pg_query::Node* having_qual) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.having_qual_); - } - _impl_.having_qual_ = having_qual; - if (having_qual) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Query.having_qual) -} -inline ::pg_query::Node* Query::release_having_qual() { - - ::pg_query::Node* temp = _impl_.having_qual_; - _impl_.having_qual_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* Query::unsafe_arena_release_having_qual() { - // @@protoc_insertion_point(field_release:pg_query.Query.having_qual) - - ::pg_query::Node* temp = _impl_.having_qual_; - _impl_.having_qual_ = nullptr; - return temp; -} -inline ::pg_query::Node* Query::_internal_mutable_having_qual() { - - if (_impl_.having_qual_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.having_qual_ = p; - } - return _impl_.having_qual_; -} -inline ::pg_query::Node* Query::mutable_having_qual() { - ::pg_query::Node* _msg = _internal_mutable_having_qual(); - // @@protoc_insertion_point(field_mutable:pg_query.Query.having_qual) - return _msg; -} -inline void Query::set_allocated_having_qual(::pg_query::Node* having_qual) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.having_qual_; - } - if (having_qual) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(having_qual); - if (message_arena != submessage_arena) { - having_qual = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, having_qual, submessage_arena); - } - - } else { - - } - _impl_.having_qual_ = having_qual; - // @@protoc_insertion_point(field_set_allocated:pg_query.Query.having_qual) -} - -// repeated .pg_query.Node window_clause = 29 [json_name = "windowClause"]; -inline int Query::_internal_window_clause_size() const { - return _impl_.window_clause_.size(); -} -inline int Query::window_clause_size() const { - return _internal_window_clause_size(); -} -inline void Query::clear_window_clause() { - _impl_.window_clause_.Clear(); -} -inline ::pg_query::Node* Query::mutable_window_clause(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Query.window_clause) - return _impl_.window_clause_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Query::mutable_window_clause() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Query.window_clause) - return &_impl_.window_clause_; -} -inline const ::pg_query::Node& Query::_internal_window_clause(int index) const { - return _impl_.window_clause_.Get(index); -} -inline const ::pg_query::Node& Query::window_clause(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Query.window_clause) - return _internal_window_clause(index); -} -inline ::pg_query::Node* Query::_internal_add_window_clause() { - return _impl_.window_clause_.Add(); -} -inline ::pg_query::Node* Query::add_window_clause() { - ::pg_query::Node* _add = _internal_add_window_clause(); - // @@protoc_insertion_point(field_add:pg_query.Query.window_clause) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Query::window_clause() const { - // @@protoc_insertion_point(field_list:pg_query.Query.window_clause) - return _impl_.window_clause_; -} - -// repeated .pg_query.Node distinct_clause = 30 [json_name = "distinctClause"]; -inline int Query::_internal_distinct_clause_size() const { - return _impl_.distinct_clause_.size(); -} -inline int Query::distinct_clause_size() const { - return _internal_distinct_clause_size(); -} -inline void Query::clear_distinct_clause() { - _impl_.distinct_clause_.Clear(); -} -inline ::pg_query::Node* Query::mutable_distinct_clause(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Query.distinct_clause) - return _impl_.distinct_clause_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Query::mutable_distinct_clause() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Query.distinct_clause) - return &_impl_.distinct_clause_; -} -inline const ::pg_query::Node& Query::_internal_distinct_clause(int index) const { - return _impl_.distinct_clause_.Get(index); -} -inline const ::pg_query::Node& Query::distinct_clause(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Query.distinct_clause) - return _internal_distinct_clause(index); -} -inline ::pg_query::Node* Query::_internal_add_distinct_clause() { - return _impl_.distinct_clause_.Add(); -} -inline ::pg_query::Node* Query::add_distinct_clause() { - ::pg_query::Node* _add = _internal_add_distinct_clause(); - // @@protoc_insertion_point(field_add:pg_query.Query.distinct_clause) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Query::distinct_clause() const { - // @@protoc_insertion_point(field_list:pg_query.Query.distinct_clause) - return _impl_.distinct_clause_; -} - -// repeated .pg_query.Node sort_clause = 31 [json_name = "sortClause"]; -inline int Query::_internal_sort_clause_size() const { - return _impl_.sort_clause_.size(); -} -inline int Query::sort_clause_size() const { - return _internal_sort_clause_size(); -} -inline void Query::clear_sort_clause() { - _impl_.sort_clause_.Clear(); -} -inline ::pg_query::Node* Query::mutable_sort_clause(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Query.sort_clause) - return _impl_.sort_clause_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Query::mutable_sort_clause() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Query.sort_clause) - return &_impl_.sort_clause_; -} -inline const ::pg_query::Node& Query::_internal_sort_clause(int index) const { - return _impl_.sort_clause_.Get(index); -} -inline const ::pg_query::Node& Query::sort_clause(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Query.sort_clause) - return _internal_sort_clause(index); -} -inline ::pg_query::Node* Query::_internal_add_sort_clause() { - return _impl_.sort_clause_.Add(); -} -inline ::pg_query::Node* Query::add_sort_clause() { - ::pg_query::Node* _add = _internal_add_sort_clause(); - // @@protoc_insertion_point(field_add:pg_query.Query.sort_clause) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Query::sort_clause() const { - // @@protoc_insertion_point(field_list:pg_query.Query.sort_clause) - return _impl_.sort_clause_; -} - -// .pg_query.Node limit_offset = 32 [json_name = "limitOffset"]; -inline bool Query::_internal_has_limit_offset() const { - return this != internal_default_instance() && _impl_.limit_offset_ != nullptr; -} -inline bool Query::has_limit_offset() const { - return _internal_has_limit_offset(); -} -inline void Query::clear_limit_offset() { - if (GetArenaForAllocation() == nullptr && _impl_.limit_offset_ != nullptr) { - delete _impl_.limit_offset_; - } - _impl_.limit_offset_ = nullptr; -} -inline const ::pg_query::Node& Query::_internal_limit_offset() const { - const ::pg_query::Node* p = _impl_.limit_offset_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& Query::limit_offset() const { - // @@protoc_insertion_point(field_get:pg_query.Query.limit_offset) - return _internal_limit_offset(); -} -inline void Query::unsafe_arena_set_allocated_limit_offset( - ::pg_query::Node* limit_offset) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.limit_offset_); - } - _impl_.limit_offset_ = limit_offset; - if (limit_offset) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Query.limit_offset) -} -inline ::pg_query::Node* Query::release_limit_offset() { - - ::pg_query::Node* temp = _impl_.limit_offset_; - _impl_.limit_offset_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* Query::unsafe_arena_release_limit_offset() { - // @@protoc_insertion_point(field_release:pg_query.Query.limit_offset) - - ::pg_query::Node* temp = _impl_.limit_offset_; - _impl_.limit_offset_ = nullptr; - return temp; -} -inline ::pg_query::Node* Query::_internal_mutable_limit_offset() { - - if (_impl_.limit_offset_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.limit_offset_ = p; - } - return _impl_.limit_offset_; -} -inline ::pg_query::Node* Query::mutable_limit_offset() { - ::pg_query::Node* _msg = _internal_mutable_limit_offset(); - // @@protoc_insertion_point(field_mutable:pg_query.Query.limit_offset) - return _msg; -} -inline void Query::set_allocated_limit_offset(::pg_query::Node* limit_offset) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.limit_offset_; - } - if (limit_offset) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(limit_offset); - if (message_arena != submessage_arena) { - limit_offset = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, limit_offset, submessage_arena); - } - - } else { - - } - _impl_.limit_offset_ = limit_offset; - // @@protoc_insertion_point(field_set_allocated:pg_query.Query.limit_offset) -} - -// .pg_query.Node limit_count = 33 [json_name = "limitCount"]; -inline bool Query::_internal_has_limit_count() const { - return this != internal_default_instance() && _impl_.limit_count_ != nullptr; -} -inline bool Query::has_limit_count() const { - return _internal_has_limit_count(); -} -inline void Query::clear_limit_count() { - if (GetArenaForAllocation() == nullptr && _impl_.limit_count_ != nullptr) { - delete _impl_.limit_count_; - } - _impl_.limit_count_ = nullptr; -} -inline const ::pg_query::Node& Query::_internal_limit_count() const { - const ::pg_query::Node* p = _impl_.limit_count_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& Query::limit_count() const { - // @@protoc_insertion_point(field_get:pg_query.Query.limit_count) - return _internal_limit_count(); -} -inline void Query::unsafe_arena_set_allocated_limit_count( - ::pg_query::Node* limit_count) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.limit_count_); - } - _impl_.limit_count_ = limit_count; - if (limit_count) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Query.limit_count) -} -inline ::pg_query::Node* Query::release_limit_count() { - - ::pg_query::Node* temp = _impl_.limit_count_; - _impl_.limit_count_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* Query::unsafe_arena_release_limit_count() { - // @@protoc_insertion_point(field_release:pg_query.Query.limit_count) - - ::pg_query::Node* temp = _impl_.limit_count_; - _impl_.limit_count_ = nullptr; - return temp; -} -inline ::pg_query::Node* Query::_internal_mutable_limit_count() { - - if (_impl_.limit_count_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.limit_count_ = p; - } - return _impl_.limit_count_; -} -inline ::pg_query::Node* Query::mutable_limit_count() { - ::pg_query::Node* _msg = _internal_mutable_limit_count(); - // @@protoc_insertion_point(field_mutable:pg_query.Query.limit_count) - return _msg; -} -inline void Query::set_allocated_limit_count(::pg_query::Node* limit_count) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.limit_count_; - } - if (limit_count) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(limit_count); - if (message_arena != submessage_arena) { - limit_count = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, limit_count, submessage_arena); - } - - } else { - - } - _impl_.limit_count_ = limit_count; - // @@protoc_insertion_point(field_set_allocated:pg_query.Query.limit_count) -} - -// .pg_query.LimitOption limit_option = 34 [json_name = "limitOption"]; -inline void Query::clear_limit_option() { - _impl_.limit_option_ = 0; -} -inline ::pg_query::LimitOption Query::_internal_limit_option() const { - return static_cast< ::pg_query::LimitOption >(_impl_.limit_option_); -} -inline ::pg_query::LimitOption Query::limit_option() const { - // @@protoc_insertion_point(field_get:pg_query.Query.limit_option) - return _internal_limit_option(); -} -inline void Query::_internal_set_limit_option(::pg_query::LimitOption value) { - - _impl_.limit_option_ = value; -} -inline void Query::set_limit_option(::pg_query::LimitOption value) { - _internal_set_limit_option(value); - // @@protoc_insertion_point(field_set:pg_query.Query.limit_option) -} - -// repeated .pg_query.Node row_marks = 35 [json_name = "rowMarks"]; -inline int Query::_internal_row_marks_size() const { - return _impl_.row_marks_.size(); -} -inline int Query::row_marks_size() const { - return _internal_row_marks_size(); -} -inline void Query::clear_row_marks() { - _impl_.row_marks_.Clear(); -} -inline ::pg_query::Node* Query::mutable_row_marks(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Query.row_marks) - return _impl_.row_marks_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Query::mutable_row_marks() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Query.row_marks) - return &_impl_.row_marks_; -} -inline const ::pg_query::Node& Query::_internal_row_marks(int index) const { - return _impl_.row_marks_.Get(index); -} -inline const ::pg_query::Node& Query::row_marks(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Query.row_marks) - return _internal_row_marks(index); -} -inline ::pg_query::Node* Query::_internal_add_row_marks() { - return _impl_.row_marks_.Add(); -} -inline ::pg_query::Node* Query::add_row_marks() { - ::pg_query::Node* _add = _internal_add_row_marks(); - // @@protoc_insertion_point(field_add:pg_query.Query.row_marks) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Query::row_marks() const { - // @@protoc_insertion_point(field_list:pg_query.Query.row_marks) - return _impl_.row_marks_; -} - -// .pg_query.Node set_operations = 36 [json_name = "setOperations"]; -inline bool Query::_internal_has_set_operations() const { - return this != internal_default_instance() && _impl_.set_operations_ != nullptr; -} -inline bool Query::has_set_operations() const { - return _internal_has_set_operations(); -} -inline void Query::clear_set_operations() { - if (GetArenaForAllocation() == nullptr && _impl_.set_operations_ != nullptr) { - delete _impl_.set_operations_; - } - _impl_.set_operations_ = nullptr; -} -inline const ::pg_query::Node& Query::_internal_set_operations() const { - const ::pg_query::Node* p = _impl_.set_operations_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& Query::set_operations() const { - // @@protoc_insertion_point(field_get:pg_query.Query.set_operations) - return _internal_set_operations(); -} -inline void Query::unsafe_arena_set_allocated_set_operations( - ::pg_query::Node* set_operations) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.set_operations_); - } - _impl_.set_operations_ = set_operations; - if (set_operations) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Query.set_operations) -} -inline ::pg_query::Node* Query::release_set_operations() { - - ::pg_query::Node* temp = _impl_.set_operations_; - _impl_.set_operations_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* Query::unsafe_arena_release_set_operations() { - // @@protoc_insertion_point(field_release:pg_query.Query.set_operations) - - ::pg_query::Node* temp = _impl_.set_operations_; - _impl_.set_operations_ = nullptr; - return temp; -} -inline ::pg_query::Node* Query::_internal_mutable_set_operations() { - - if (_impl_.set_operations_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.set_operations_ = p; - } - return _impl_.set_operations_; -} -inline ::pg_query::Node* Query::mutable_set_operations() { - ::pg_query::Node* _msg = _internal_mutable_set_operations(); - // @@protoc_insertion_point(field_mutable:pg_query.Query.set_operations) - return _msg; -} -inline void Query::set_allocated_set_operations(::pg_query::Node* set_operations) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.set_operations_; - } - if (set_operations) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(set_operations); - if (message_arena != submessage_arena) { - set_operations = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, set_operations, submessage_arena); - } - - } else { - - } - _impl_.set_operations_ = set_operations; - // @@protoc_insertion_point(field_set_allocated:pg_query.Query.set_operations) -} - -// repeated .pg_query.Node constraint_deps = 37 [json_name = "constraintDeps"]; -inline int Query::_internal_constraint_deps_size() const { - return _impl_.constraint_deps_.size(); -} -inline int Query::constraint_deps_size() const { - return _internal_constraint_deps_size(); -} -inline void Query::clear_constraint_deps() { - _impl_.constraint_deps_.Clear(); -} -inline ::pg_query::Node* Query::mutable_constraint_deps(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Query.constraint_deps) - return _impl_.constraint_deps_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Query::mutable_constraint_deps() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Query.constraint_deps) - return &_impl_.constraint_deps_; -} -inline const ::pg_query::Node& Query::_internal_constraint_deps(int index) const { - return _impl_.constraint_deps_.Get(index); -} -inline const ::pg_query::Node& Query::constraint_deps(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Query.constraint_deps) - return _internal_constraint_deps(index); -} -inline ::pg_query::Node* Query::_internal_add_constraint_deps() { - return _impl_.constraint_deps_.Add(); -} -inline ::pg_query::Node* Query::add_constraint_deps() { - ::pg_query::Node* _add = _internal_add_constraint_deps(); - // @@protoc_insertion_point(field_add:pg_query.Query.constraint_deps) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Query::constraint_deps() const { - // @@protoc_insertion_point(field_list:pg_query.Query.constraint_deps) - return _impl_.constraint_deps_; -} - -// repeated .pg_query.Node with_check_options = 38 [json_name = "withCheckOptions"]; -inline int Query::_internal_with_check_options_size() const { - return _impl_.with_check_options_.size(); -} -inline int Query::with_check_options_size() const { - return _internal_with_check_options_size(); -} -inline void Query::clear_with_check_options() { - _impl_.with_check_options_.Clear(); -} -inline ::pg_query::Node* Query::mutable_with_check_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Query.with_check_options) - return _impl_.with_check_options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Query::mutable_with_check_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Query.with_check_options) - return &_impl_.with_check_options_; -} -inline const ::pg_query::Node& Query::_internal_with_check_options(int index) const { - return _impl_.with_check_options_.Get(index); -} -inline const ::pg_query::Node& Query::with_check_options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Query.with_check_options) - return _internal_with_check_options(index); -} -inline ::pg_query::Node* Query::_internal_add_with_check_options() { - return _impl_.with_check_options_.Add(); -} -inline ::pg_query::Node* Query::add_with_check_options() { - ::pg_query::Node* _add = _internal_add_with_check_options(); - // @@protoc_insertion_point(field_add:pg_query.Query.with_check_options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Query::with_check_options() const { - // @@protoc_insertion_point(field_list:pg_query.Query.with_check_options) - return _impl_.with_check_options_; -} - -// int32 stmt_location = 39 [json_name = "stmt_location"]; -inline void Query::clear_stmt_location() { - _impl_.stmt_location_ = 0; -} -inline int32_t Query::_internal_stmt_location() const { - return _impl_.stmt_location_; -} -inline int32_t Query::stmt_location() const { - // @@protoc_insertion_point(field_get:pg_query.Query.stmt_location) - return _internal_stmt_location(); -} -inline void Query::_internal_set_stmt_location(int32_t value) { - - _impl_.stmt_location_ = value; -} -inline void Query::set_stmt_location(int32_t value) { - _internal_set_stmt_location(value); - // @@protoc_insertion_point(field_set:pg_query.Query.stmt_location) -} - -// int32 stmt_len = 40 [json_name = "stmt_len"]; -inline void Query::clear_stmt_len() { - _impl_.stmt_len_ = 0; -} -inline int32_t Query::_internal_stmt_len() const { - return _impl_.stmt_len_; -} -inline int32_t Query::stmt_len() const { - // @@protoc_insertion_point(field_get:pg_query.Query.stmt_len) - return _internal_stmt_len(); -} -inline void Query::_internal_set_stmt_len(int32_t value) { - - _impl_.stmt_len_ = value; -} -inline void Query::set_stmt_len(int32_t value) { - _internal_set_stmt_len(value); - // @@protoc_insertion_point(field_set:pg_query.Query.stmt_len) -} - -// ------------------------------------------------------------------- - -// InsertStmt - -// .pg_query.RangeVar relation = 1 [json_name = "relation"]; -inline bool InsertStmt::_internal_has_relation() const { - return this != internal_default_instance() && _impl_.relation_ != nullptr; -} -inline bool InsertStmt::has_relation() const { - return _internal_has_relation(); -} -inline void InsertStmt::clear_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.relation_ != nullptr) { - delete _impl_.relation_; - } - _impl_.relation_ = nullptr; -} -inline const ::pg_query::RangeVar& InsertStmt::_internal_relation() const { - const ::pg_query::RangeVar* p = _impl_.relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& InsertStmt::relation() const { - // @@protoc_insertion_point(field_get:pg_query.InsertStmt.relation) - return _internal_relation(); -} -inline void InsertStmt::unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.relation_); - } - _impl_.relation_ = relation; - if (relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.InsertStmt.relation) -} -inline ::pg_query::RangeVar* InsertStmt::release_relation() { - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* InsertStmt::unsafe_arena_release_relation() { - // @@protoc_insertion_point(field_release:pg_query.InsertStmt.relation) - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* InsertStmt::_internal_mutable_relation() { - - if (_impl_.relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.relation_ = p; - } - return _impl_.relation_; -} -inline ::pg_query::RangeVar* InsertStmt::mutable_relation() { - ::pg_query::RangeVar* _msg = _internal_mutable_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.InsertStmt.relation) - return _msg; -} -inline void InsertStmt::set_allocated_relation(::pg_query::RangeVar* relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.relation_; - } - if (relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(relation); - if (message_arena != submessage_arena) { - relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, relation, submessage_arena); - } - - } else { - - } - _impl_.relation_ = relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.InsertStmt.relation) -} - -// repeated .pg_query.Node cols = 2 [json_name = "cols"]; -inline int InsertStmt::_internal_cols_size() const { - return _impl_.cols_.size(); -} -inline int InsertStmt::cols_size() const { - return _internal_cols_size(); -} -inline void InsertStmt::clear_cols() { - _impl_.cols_.Clear(); -} -inline ::pg_query::Node* InsertStmt::mutable_cols(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.InsertStmt.cols) - return _impl_.cols_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -InsertStmt::mutable_cols() { - // @@protoc_insertion_point(field_mutable_list:pg_query.InsertStmt.cols) - return &_impl_.cols_; -} -inline const ::pg_query::Node& InsertStmt::_internal_cols(int index) const { - return _impl_.cols_.Get(index); -} -inline const ::pg_query::Node& InsertStmt::cols(int index) const { - // @@protoc_insertion_point(field_get:pg_query.InsertStmt.cols) - return _internal_cols(index); -} -inline ::pg_query::Node* InsertStmt::_internal_add_cols() { - return _impl_.cols_.Add(); -} -inline ::pg_query::Node* InsertStmt::add_cols() { - ::pg_query::Node* _add = _internal_add_cols(); - // @@protoc_insertion_point(field_add:pg_query.InsertStmt.cols) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -InsertStmt::cols() const { - // @@protoc_insertion_point(field_list:pg_query.InsertStmt.cols) - return _impl_.cols_; -} - -// .pg_query.Node select_stmt = 3 [json_name = "selectStmt"]; -inline bool InsertStmt::_internal_has_select_stmt() const { - return this != internal_default_instance() && _impl_.select_stmt_ != nullptr; -} -inline bool InsertStmt::has_select_stmt() const { - return _internal_has_select_stmt(); -} -inline void InsertStmt::clear_select_stmt() { - if (GetArenaForAllocation() == nullptr && _impl_.select_stmt_ != nullptr) { - delete _impl_.select_stmt_; - } - _impl_.select_stmt_ = nullptr; -} -inline const ::pg_query::Node& InsertStmt::_internal_select_stmt() const { - const ::pg_query::Node* p = _impl_.select_stmt_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& InsertStmt::select_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.InsertStmt.select_stmt) - return _internal_select_stmt(); -} -inline void InsertStmt::unsafe_arena_set_allocated_select_stmt( - ::pg_query::Node* select_stmt) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.select_stmt_); - } - _impl_.select_stmt_ = select_stmt; - if (select_stmt) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.InsertStmt.select_stmt) -} -inline ::pg_query::Node* InsertStmt::release_select_stmt() { - - ::pg_query::Node* temp = _impl_.select_stmt_; - _impl_.select_stmt_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* InsertStmt::unsafe_arena_release_select_stmt() { - // @@protoc_insertion_point(field_release:pg_query.InsertStmt.select_stmt) - - ::pg_query::Node* temp = _impl_.select_stmt_; - _impl_.select_stmt_ = nullptr; - return temp; -} -inline ::pg_query::Node* InsertStmt::_internal_mutable_select_stmt() { - - if (_impl_.select_stmt_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.select_stmt_ = p; - } - return _impl_.select_stmt_; -} -inline ::pg_query::Node* InsertStmt::mutable_select_stmt() { - ::pg_query::Node* _msg = _internal_mutable_select_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.InsertStmt.select_stmt) - return _msg; -} -inline void InsertStmt::set_allocated_select_stmt(::pg_query::Node* select_stmt) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.select_stmt_; - } - if (select_stmt) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(select_stmt); - if (message_arena != submessage_arena) { - select_stmt = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, select_stmt, submessage_arena); - } - - } else { - - } - _impl_.select_stmt_ = select_stmt; - // @@protoc_insertion_point(field_set_allocated:pg_query.InsertStmt.select_stmt) -} - -// .pg_query.OnConflictClause on_conflict_clause = 4 [json_name = "onConflictClause"]; -inline bool InsertStmt::_internal_has_on_conflict_clause() const { - return this != internal_default_instance() && _impl_.on_conflict_clause_ != nullptr; -} -inline bool InsertStmt::has_on_conflict_clause() const { - return _internal_has_on_conflict_clause(); -} -inline void InsertStmt::clear_on_conflict_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.on_conflict_clause_ != nullptr) { - delete _impl_.on_conflict_clause_; - } - _impl_.on_conflict_clause_ = nullptr; -} -inline const ::pg_query::OnConflictClause& InsertStmt::_internal_on_conflict_clause() const { - const ::pg_query::OnConflictClause* p = _impl_.on_conflict_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_OnConflictClause_default_instance_); -} -inline const ::pg_query::OnConflictClause& InsertStmt::on_conflict_clause() const { - // @@protoc_insertion_point(field_get:pg_query.InsertStmt.on_conflict_clause) - return _internal_on_conflict_clause(); -} -inline void InsertStmt::unsafe_arena_set_allocated_on_conflict_clause( - ::pg_query::OnConflictClause* on_conflict_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.on_conflict_clause_); - } - _impl_.on_conflict_clause_ = on_conflict_clause; - if (on_conflict_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.InsertStmt.on_conflict_clause) -} -inline ::pg_query::OnConflictClause* InsertStmt::release_on_conflict_clause() { - - ::pg_query::OnConflictClause* temp = _impl_.on_conflict_clause_; - _impl_.on_conflict_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::OnConflictClause* InsertStmt::unsafe_arena_release_on_conflict_clause() { - // @@protoc_insertion_point(field_release:pg_query.InsertStmt.on_conflict_clause) - - ::pg_query::OnConflictClause* temp = _impl_.on_conflict_clause_; - _impl_.on_conflict_clause_ = nullptr; - return temp; -} -inline ::pg_query::OnConflictClause* InsertStmt::_internal_mutable_on_conflict_clause() { - - if (_impl_.on_conflict_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::OnConflictClause>(GetArenaForAllocation()); - _impl_.on_conflict_clause_ = p; - } - return _impl_.on_conflict_clause_; -} -inline ::pg_query::OnConflictClause* InsertStmt::mutable_on_conflict_clause() { - ::pg_query::OnConflictClause* _msg = _internal_mutable_on_conflict_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.InsertStmt.on_conflict_clause) - return _msg; -} -inline void InsertStmt::set_allocated_on_conflict_clause(::pg_query::OnConflictClause* on_conflict_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.on_conflict_clause_; - } - if (on_conflict_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(on_conflict_clause); - if (message_arena != submessage_arena) { - on_conflict_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, on_conflict_clause, submessage_arena); - } - - } else { - - } - _impl_.on_conflict_clause_ = on_conflict_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.InsertStmt.on_conflict_clause) -} - -// repeated .pg_query.Node returning_list = 5 [json_name = "returningList"]; -inline int InsertStmt::_internal_returning_list_size() const { - return _impl_.returning_list_.size(); -} -inline int InsertStmt::returning_list_size() const { - return _internal_returning_list_size(); -} -inline void InsertStmt::clear_returning_list() { - _impl_.returning_list_.Clear(); -} -inline ::pg_query::Node* InsertStmt::mutable_returning_list(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.InsertStmt.returning_list) - return _impl_.returning_list_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -InsertStmt::mutable_returning_list() { - // @@protoc_insertion_point(field_mutable_list:pg_query.InsertStmt.returning_list) - return &_impl_.returning_list_; -} -inline const ::pg_query::Node& InsertStmt::_internal_returning_list(int index) const { - return _impl_.returning_list_.Get(index); -} -inline const ::pg_query::Node& InsertStmt::returning_list(int index) const { - // @@protoc_insertion_point(field_get:pg_query.InsertStmt.returning_list) - return _internal_returning_list(index); -} -inline ::pg_query::Node* InsertStmt::_internal_add_returning_list() { - return _impl_.returning_list_.Add(); -} -inline ::pg_query::Node* InsertStmt::add_returning_list() { - ::pg_query::Node* _add = _internal_add_returning_list(); - // @@protoc_insertion_point(field_add:pg_query.InsertStmt.returning_list) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -InsertStmt::returning_list() const { - // @@protoc_insertion_point(field_list:pg_query.InsertStmt.returning_list) - return _impl_.returning_list_; -} - -// .pg_query.WithClause with_clause = 6 [json_name = "withClause"]; -inline bool InsertStmt::_internal_has_with_clause() const { - return this != internal_default_instance() && _impl_.with_clause_ != nullptr; -} -inline bool InsertStmt::has_with_clause() const { - return _internal_has_with_clause(); -} -inline void InsertStmt::clear_with_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.with_clause_ != nullptr) { - delete _impl_.with_clause_; - } - _impl_.with_clause_ = nullptr; -} -inline const ::pg_query::WithClause& InsertStmt::_internal_with_clause() const { - const ::pg_query::WithClause* p = _impl_.with_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_WithClause_default_instance_); -} -inline const ::pg_query::WithClause& InsertStmt::with_clause() const { - // @@protoc_insertion_point(field_get:pg_query.InsertStmt.with_clause) - return _internal_with_clause(); -} -inline void InsertStmt::unsafe_arena_set_allocated_with_clause( - ::pg_query::WithClause* with_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.with_clause_); - } - _impl_.with_clause_ = with_clause; - if (with_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.InsertStmt.with_clause) -} -inline ::pg_query::WithClause* InsertStmt::release_with_clause() { - - ::pg_query::WithClause* temp = _impl_.with_clause_; - _impl_.with_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::WithClause* InsertStmt::unsafe_arena_release_with_clause() { - // @@protoc_insertion_point(field_release:pg_query.InsertStmt.with_clause) - - ::pg_query::WithClause* temp = _impl_.with_clause_; - _impl_.with_clause_ = nullptr; - return temp; -} -inline ::pg_query::WithClause* InsertStmt::_internal_mutable_with_clause() { - - if (_impl_.with_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::WithClause>(GetArenaForAllocation()); - _impl_.with_clause_ = p; - } - return _impl_.with_clause_; -} -inline ::pg_query::WithClause* InsertStmt::mutable_with_clause() { - ::pg_query::WithClause* _msg = _internal_mutable_with_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.InsertStmt.with_clause) - return _msg; -} -inline void InsertStmt::set_allocated_with_clause(::pg_query::WithClause* with_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.with_clause_; - } - if (with_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(with_clause); - if (message_arena != submessage_arena) { - with_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, with_clause, submessage_arena); - } - - } else { - - } - _impl_.with_clause_ = with_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.InsertStmt.with_clause) -} - -// .pg_query.OverridingKind override = 7 [json_name = "override"]; -inline void InsertStmt::clear_override() { - _impl_.override_ = 0; -} -inline ::pg_query::OverridingKind InsertStmt::_internal_override() const { - return static_cast< ::pg_query::OverridingKind >(_impl_.override_); -} -inline ::pg_query::OverridingKind InsertStmt::override() const { - // @@protoc_insertion_point(field_get:pg_query.InsertStmt.override) - return _internal_override(); -} -inline void InsertStmt::_internal_set_override(::pg_query::OverridingKind value) { - - _impl_.override_ = value; -} -inline void InsertStmt::set_override(::pg_query::OverridingKind value) { - _internal_set_override(value); - // @@protoc_insertion_point(field_set:pg_query.InsertStmt.override) -} - -// ------------------------------------------------------------------- - -// DeleteStmt - -// .pg_query.RangeVar relation = 1 [json_name = "relation"]; -inline bool DeleteStmt::_internal_has_relation() const { - return this != internal_default_instance() && _impl_.relation_ != nullptr; -} -inline bool DeleteStmt::has_relation() const { - return _internal_has_relation(); -} -inline void DeleteStmt::clear_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.relation_ != nullptr) { - delete _impl_.relation_; - } - _impl_.relation_ = nullptr; -} -inline const ::pg_query::RangeVar& DeleteStmt::_internal_relation() const { - const ::pg_query::RangeVar* p = _impl_.relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& DeleteStmt::relation() const { - // @@protoc_insertion_point(field_get:pg_query.DeleteStmt.relation) - return _internal_relation(); -} -inline void DeleteStmt::unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.relation_); - } - _impl_.relation_ = relation; - if (relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.DeleteStmt.relation) -} -inline ::pg_query::RangeVar* DeleteStmt::release_relation() { - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* DeleteStmt::unsafe_arena_release_relation() { - // @@protoc_insertion_point(field_release:pg_query.DeleteStmt.relation) - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* DeleteStmt::_internal_mutable_relation() { - - if (_impl_.relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.relation_ = p; - } - return _impl_.relation_; -} -inline ::pg_query::RangeVar* DeleteStmt::mutable_relation() { - ::pg_query::RangeVar* _msg = _internal_mutable_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.DeleteStmt.relation) - return _msg; -} -inline void DeleteStmt::set_allocated_relation(::pg_query::RangeVar* relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.relation_; - } - if (relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(relation); - if (message_arena != submessage_arena) { - relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, relation, submessage_arena); - } - - } else { - - } - _impl_.relation_ = relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.DeleteStmt.relation) -} - -// repeated .pg_query.Node using_clause = 2 [json_name = "usingClause"]; -inline int DeleteStmt::_internal_using_clause_size() const { - return _impl_.using_clause_.size(); -} -inline int DeleteStmt::using_clause_size() const { - return _internal_using_clause_size(); -} -inline void DeleteStmt::clear_using_clause() { - _impl_.using_clause_.Clear(); -} -inline ::pg_query::Node* DeleteStmt::mutable_using_clause(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.DeleteStmt.using_clause) - return _impl_.using_clause_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -DeleteStmt::mutable_using_clause() { - // @@protoc_insertion_point(field_mutable_list:pg_query.DeleteStmt.using_clause) - return &_impl_.using_clause_; -} -inline const ::pg_query::Node& DeleteStmt::_internal_using_clause(int index) const { - return _impl_.using_clause_.Get(index); -} -inline const ::pg_query::Node& DeleteStmt::using_clause(int index) const { - // @@protoc_insertion_point(field_get:pg_query.DeleteStmt.using_clause) - return _internal_using_clause(index); -} -inline ::pg_query::Node* DeleteStmt::_internal_add_using_clause() { - return _impl_.using_clause_.Add(); -} -inline ::pg_query::Node* DeleteStmt::add_using_clause() { - ::pg_query::Node* _add = _internal_add_using_clause(); - // @@protoc_insertion_point(field_add:pg_query.DeleteStmt.using_clause) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -DeleteStmt::using_clause() const { - // @@protoc_insertion_point(field_list:pg_query.DeleteStmt.using_clause) - return _impl_.using_clause_; -} - -// .pg_query.Node where_clause = 3 [json_name = "whereClause"]; -inline bool DeleteStmt::_internal_has_where_clause() const { - return this != internal_default_instance() && _impl_.where_clause_ != nullptr; -} -inline bool DeleteStmt::has_where_clause() const { - return _internal_has_where_clause(); -} -inline void DeleteStmt::clear_where_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.where_clause_ != nullptr) { - delete _impl_.where_clause_; - } - _impl_.where_clause_ = nullptr; -} -inline const ::pg_query::Node& DeleteStmt::_internal_where_clause() const { - const ::pg_query::Node* p = _impl_.where_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& DeleteStmt::where_clause() const { - // @@protoc_insertion_point(field_get:pg_query.DeleteStmt.where_clause) - return _internal_where_clause(); -} -inline void DeleteStmt::unsafe_arena_set_allocated_where_clause( - ::pg_query::Node* where_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.where_clause_); - } - _impl_.where_clause_ = where_clause; - if (where_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.DeleteStmt.where_clause) -} -inline ::pg_query::Node* DeleteStmt::release_where_clause() { - - ::pg_query::Node* temp = _impl_.where_clause_; - _impl_.where_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* DeleteStmt::unsafe_arena_release_where_clause() { - // @@protoc_insertion_point(field_release:pg_query.DeleteStmt.where_clause) - - ::pg_query::Node* temp = _impl_.where_clause_; - _impl_.where_clause_ = nullptr; - return temp; -} -inline ::pg_query::Node* DeleteStmt::_internal_mutable_where_clause() { - - if (_impl_.where_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.where_clause_ = p; - } - return _impl_.where_clause_; -} -inline ::pg_query::Node* DeleteStmt::mutable_where_clause() { - ::pg_query::Node* _msg = _internal_mutable_where_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.DeleteStmt.where_clause) - return _msg; -} -inline void DeleteStmt::set_allocated_where_clause(::pg_query::Node* where_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.where_clause_; - } - if (where_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(where_clause); - if (message_arena != submessage_arena) { - where_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, where_clause, submessage_arena); - } - - } else { - - } - _impl_.where_clause_ = where_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.DeleteStmt.where_clause) -} - -// repeated .pg_query.Node returning_list = 4 [json_name = "returningList"]; -inline int DeleteStmt::_internal_returning_list_size() const { - return _impl_.returning_list_.size(); -} -inline int DeleteStmt::returning_list_size() const { - return _internal_returning_list_size(); -} -inline void DeleteStmt::clear_returning_list() { - _impl_.returning_list_.Clear(); -} -inline ::pg_query::Node* DeleteStmt::mutable_returning_list(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.DeleteStmt.returning_list) - return _impl_.returning_list_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -DeleteStmt::mutable_returning_list() { - // @@protoc_insertion_point(field_mutable_list:pg_query.DeleteStmt.returning_list) - return &_impl_.returning_list_; -} -inline const ::pg_query::Node& DeleteStmt::_internal_returning_list(int index) const { - return _impl_.returning_list_.Get(index); -} -inline const ::pg_query::Node& DeleteStmt::returning_list(int index) const { - // @@protoc_insertion_point(field_get:pg_query.DeleteStmt.returning_list) - return _internal_returning_list(index); -} -inline ::pg_query::Node* DeleteStmt::_internal_add_returning_list() { - return _impl_.returning_list_.Add(); -} -inline ::pg_query::Node* DeleteStmt::add_returning_list() { - ::pg_query::Node* _add = _internal_add_returning_list(); - // @@protoc_insertion_point(field_add:pg_query.DeleteStmt.returning_list) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -DeleteStmt::returning_list() const { - // @@protoc_insertion_point(field_list:pg_query.DeleteStmt.returning_list) - return _impl_.returning_list_; -} - -// .pg_query.WithClause with_clause = 5 [json_name = "withClause"]; -inline bool DeleteStmt::_internal_has_with_clause() const { - return this != internal_default_instance() && _impl_.with_clause_ != nullptr; -} -inline bool DeleteStmt::has_with_clause() const { - return _internal_has_with_clause(); -} -inline void DeleteStmt::clear_with_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.with_clause_ != nullptr) { - delete _impl_.with_clause_; - } - _impl_.with_clause_ = nullptr; -} -inline const ::pg_query::WithClause& DeleteStmt::_internal_with_clause() const { - const ::pg_query::WithClause* p = _impl_.with_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_WithClause_default_instance_); -} -inline const ::pg_query::WithClause& DeleteStmt::with_clause() const { - // @@protoc_insertion_point(field_get:pg_query.DeleteStmt.with_clause) - return _internal_with_clause(); -} -inline void DeleteStmt::unsafe_arena_set_allocated_with_clause( - ::pg_query::WithClause* with_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.with_clause_); - } - _impl_.with_clause_ = with_clause; - if (with_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.DeleteStmt.with_clause) -} -inline ::pg_query::WithClause* DeleteStmt::release_with_clause() { - - ::pg_query::WithClause* temp = _impl_.with_clause_; - _impl_.with_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::WithClause* DeleteStmt::unsafe_arena_release_with_clause() { - // @@protoc_insertion_point(field_release:pg_query.DeleteStmt.with_clause) - - ::pg_query::WithClause* temp = _impl_.with_clause_; - _impl_.with_clause_ = nullptr; - return temp; -} -inline ::pg_query::WithClause* DeleteStmt::_internal_mutable_with_clause() { - - if (_impl_.with_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::WithClause>(GetArenaForAllocation()); - _impl_.with_clause_ = p; - } - return _impl_.with_clause_; -} -inline ::pg_query::WithClause* DeleteStmt::mutable_with_clause() { - ::pg_query::WithClause* _msg = _internal_mutable_with_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.DeleteStmt.with_clause) - return _msg; -} -inline void DeleteStmt::set_allocated_with_clause(::pg_query::WithClause* with_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.with_clause_; - } - if (with_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(with_clause); - if (message_arena != submessage_arena) { - with_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, with_clause, submessage_arena); - } - - } else { - - } - _impl_.with_clause_ = with_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.DeleteStmt.with_clause) -} - -// ------------------------------------------------------------------- - -// UpdateStmt - -// .pg_query.RangeVar relation = 1 [json_name = "relation"]; -inline bool UpdateStmt::_internal_has_relation() const { - return this != internal_default_instance() && _impl_.relation_ != nullptr; -} -inline bool UpdateStmt::has_relation() const { - return _internal_has_relation(); -} -inline void UpdateStmt::clear_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.relation_ != nullptr) { - delete _impl_.relation_; - } - _impl_.relation_ = nullptr; -} -inline const ::pg_query::RangeVar& UpdateStmt::_internal_relation() const { - const ::pg_query::RangeVar* p = _impl_.relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& UpdateStmt::relation() const { - // @@protoc_insertion_point(field_get:pg_query.UpdateStmt.relation) - return _internal_relation(); -} -inline void UpdateStmt::unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.relation_); - } - _impl_.relation_ = relation; - if (relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.UpdateStmt.relation) -} -inline ::pg_query::RangeVar* UpdateStmt::release_relation() { - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* UpdateStmt::unsafe_arena_release_relation() { - // @@protoc_insertion_point(field_release:pg_query.UpdateStmt.relation) - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* UpdateStmt::_internal_mutable_relation() { - - if (_impl_.relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.relation_ = p; - } - return _impl_.relation_; -} -inline ::pg_query::RangeVar* UpdateStmt::mutable_relation() { - ::pg_query::RangeVar* _msg = _internal_mutable_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.UpdateStmt.relation) - return _msg; -} -inline void UpdateStmt::set_allocated_relation(::pg_query::RangeVar* relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.relation_; - } - if (relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(relation); - if (message_arena != submessage_arena) { - relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, relation, submessage_arena); - } - - } else { - - } - _impl_.relation_ = relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.UpdateStmt.relation) -} - -// repeated .pg_query.Node target_list = 2 [json_name = "targetList"]; -inline int UpdateStmt::_internal_target_list_size() const { - return _impl_.target_list_.size(); -} -inline int UpdateStmt::target_list_size() const { - return _internal_target_list_size(); -} -inline void UpdateStmt::clear_target_list() { - _impl_.target_list_.Clear(); -} -inline ::pg_query::Node* UpdateStmt::mutable_target_list(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.UpdateStmt.target_list) - return _impl_.target_list_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -UpdateStmt::mutable_target_list() { - // @@protoc_insertion_point(field_mutable_list:pg_query.UpdateStmt.target_list) - return &_impl_.target_list_; -} -inline const ::pg_query::Node& UpdateStmt::_internal_target_list(int index) const { - return _impl_.target_list_.Get(index); -} -inline const ::pg_query::Node& UpdateStmt::target_list(int index) const { - // @@protoc_insertion_point(field_get:pg_query.UpdateStmt.target_list) - return _internal_target_list(index); -} -inline ::pg_query::Node* UpdateStmt::_internal_add_target_list() { - return _impl_.target_list_.Add(); -} -inline ::pg_query::Node* UpdateStmt::add_target_list() { - ::pg_query::Node* _add = _internal_add_target_list(); - // @@protoc_insertion_point(field_add:pg_query.UpdateStmt.target_list) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -UpdateStmt::target_list() const { - // @@protoc_insertion_point(field_list:pg_query.UpdateStmt.target_list) - return _impl_.target_list_; -} - -// .pg_query.Node where_clause = 3 [json_name = "whereClause"]; -inline bool UpdateStmt::_internal_has_where_clause() const { - return this != internal_default_instance() && _impl_.where_clause_ != nullptr; -} -inline bool UpdateStmt::has_where_clause() const { - return _internal_has_where_clause(); -} -inline void UpdateStmt::clear_where_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.where_clause_ != nullptr) { - delete _impl_.where_clause_; - } - _impl_.where_clause_ = nullptr; -} -inline const ::pg_query::Node& UpdateStmt::_internal_where_clause() const { - const ::pg_query::Node* p = _impl_.where_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& UpdateStmt::where_clause() const { - // @@protoc_insertion_point(field_get:pg_query.UpdateStmt.where_clause) - return _internal_where_clause(); -} -inline void UpdateStmt::unsafe_arena_set_allocated_where_clause( - ::pg_query::Node* where_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.where_clause_); - } - _impl_.where_clause_ = where_clause; - if (where_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.UpdateStmt.where_clause) -} -inline ::pg_query::Node* UpdateStmt::release_where_clause() { - - ::pg_query::Node* temp = _impl_.where_clause_; - _impl_.where_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* UpdateStmt::unsafe_arena_release_where_clause() { - // @@protoc_insertion_point(field_release:pg_query.UpdateStmt.where_clause) - - ::pg_query::Node* temp = _impl_.where_clause_; - _impl_.where_clause_ = nullptr; - return temp; -} -inline ::pg_query::Node* UpdateStmt::_internal_mutable_where_clause() { - - if (_impl_.where_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.where_clause_ = p; - } - return _impl_.where_clause_; -} -inline ::pg_query::Node* UpdateStmt::mutable_where_clause() { - ::pg_query::Node* _msg = _internal_mutable_where_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.UpdateStmt.where_clause) - return _msg; -} -inline void UpdateStmt::set_allocated_where_clause(::pg_query::Node* where_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.where_clause_; - } - if (where_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(where_clause); - if (message_arena != submessage_arena) { - where_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, where_clause, submessage_arena); - } - - } else { - - } - _impl_.where_clause_ = where_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.UpdateStmt.where_clause) -} - -// repeated .pg_query.Node from_clause = 4 [json_name = "fromClause"]; -inline int UpdateStmt::_internal_from_clause_size() const { - return _impl_.from_clause_.size(); -} -inline int UpdateStmt::from_clause_size() const { - return _internal_from_clause_size(); -} -inline void UpdateStmt::clear_from_clause() { - _impl_.from_clause_.Clear(); -} -inline ::pg_query::Node* UpdateStmt::mutable_from_clause(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.UpdateStmt.from_clause) - return _impl_.from_clause_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -UpdateStmt::mutable_from_clause() { - // @@protoc_insertion_point(field_mutable_list:pg_query.UpdateStmt.from_clause) - return &_impl_.from_clause_; -} -inline const ::pg_query::Node& UpdateStmt::_internal_from_clause(int index) const { - return _impl_.from_clause_.Get(index); -} -inline const ::pg_query::Node& UpdateStmt::from_clause(int index) const { - // @@protoc_insertion_point(field_get:pg_query.UpdateStmt.from_clause) - return _internal_from_clause(index); -} -inline ::pg_query::Node* UpdateStmt::_internal_add_from_clause() { - return _impl_.from_clause_.Add(); -} -inline ::pg_query::Node* UpdateStmt::add_from_clause() { - ::pg_query::Node* _add = _internal_add_from_clause(); - // @@protoc_insertion_point(field_add:pg_query.UpdateStmt.from_clause) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -UpdateStmt::from_clause() const { - // @@protoc_insertion_point(field_list:pg_query.UpdateStmt.from_clause) - return _impl_.from_clause_; -} - -// repeated .pg_query.Node returning_list = 5 [json_name = "returningList"]; -inline int UpdateStmt::_internal_returning_list_size() const { - return _impl_.returning_list_.size(); -} -inline int UpdateStmt::returning_list_size() const { - return _internal_returning_list_size(); -} -inline void UpdateStmt::clear_returning_list() { - _impl_.returning_list_.Clear(); -} -inline ::pg_query::Node* UpdateStmt::mutable_returning_list(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.UpdateStmt.returning_list) - return _impl_.returning_list_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -UpdateStmt::mutable_returning_list() { - // @@protoc_insertion_point(field_mutable_list:pg_query.UpdateStmt.returning_list) - return &_impl_.returning_list_; -} -inline const ::pg_query::Node& UpdateStmt::_internal_returning_list(int index) const { - return _impl_.returning_list_.Get(index); -} -inline const ::pg_query::Node& UpdateStmt::returning_list(int index) const { - // @@protoc_insertion_point(field_get:pg_query.UpdateStmt.returning_list) - return _internal_returning_list(index); -} -inline ::pg_query::Node* UpdateStmt::_internal_add_returning_list() { - return _impl_.returning_list_.Add(); -} -inline ::pg_query::Node* UpdateStmt::add_returning_list() { - ::pg_query::Node* _add = _internal_add_returning_list(); - // @@protoc_insertion_point(field_add:pg_query.UpdateStmt.returning_list) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -UpdateStmt::returning_list() const { - // @@protoc_insertion_point(field_list:pg_query.UpdateStmt.returning_list) - return _impl_.returning_list_; -} - -// .pg_query.WithClause with_clause = 6 [json_name = "withClause"]; -inline bool UpdateStmt::_internal_has_with_clause() const { - return this != internal_default_instance() && _impl_.with_clause_ != nullptr; -} -inline bool UpdateStmt::has_with_clause() const { - return _internal_has_with_clause(); -} -inline void UpdateStmt::clear_with_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.with_clause_ != nullptr) { - delete _impl_.with_clause_; - } - _impl_.with_clause_ = nullptr; -} -inline const ::pg_query::WithClause& UpdateStmt::_internal_with_clause() const { - const ::pg_query::WithClause* p = _impl_.with_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_WithClause_default_instance_); -} -inline const ::pg_query::WithClause& UpdateStmt::with_clause() const { - // @@protoc_insertion_point(field_get:pg_query.UpdateStmt.with_clause) - return _internal_with_clause(); -} -inline void UpdateStmt::unsafe_arena_set_allocated_with_clause( - ::pg_query::WithClause* with_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.with_clause_); - } - _impl_.with_clause_ = with_clause; - if (with_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.UpdateStmt.with_clause) -} -inline ::pg_query::WithClause* UpdateStmt::release_with_clause() { - - ::pg_query::WithClause* temp = _impl_.with_clause_; - _impl_.with_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::WithClause* UpdateStmt::unsafe_arena_release_with_clause() { - // @@protoc_insertion_point(field_release:pg_query.UpdateStmt.with_clause) - - ::pg_query::WithClause* temp = _impl_.with_clause_; - _impl_.with_clause_ = nullptr; - return temp; -} -inline ::pg_query::WithClause* UpdateStmt::_internal_mutable_with_clause() { - - if (_impl_.with_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::WithClause>(GetArenaForAllocation()); - _impl_.with_clause_ = p; - } - return _impl_.with_clause_; -} -inline ::pg_query::WithClause* UpdateStmt::mutable_with_clause() { - ::pg_query::WithClause* _msg = _internal_mutable_with_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.UpdateStmt.with_clause) - return _msg; -} -inline void UpdateStmt::set_allocated_with_clause(::pg_query::WithClause* with_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.with_clause_; - } - if (with_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(with_clause); - if (message_arena != submessage_arena) { - with_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, with_clause, submessage_arena); - } - - } else { - - } - _impl_.with_clause_ = with_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.UpdateStmt.with_clause) -} - -// ------------------------------------------------------------------- - -// MergeStmt - -// .pg_query.RangeVar relation = 1 [json_name = "relation"]; -inline bool MergeStmt::_internal_has_relation() const { - return this != internal_default_instance() && _impl_.relation_ != nullptr; -} -inline bool MergeStmt::has_relation() const { - return _internal_has_relation(); -} -inline void MergeStmt::clear_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.relation_ != nullptr) { - delete _impl_.relation_; - } - _impl_.relation_ = nullptr; -} -inline const ::pg_query::RangeVar& MergeStmt::_internal_relation() const { - const ::pg_query::RangeVar* p = _impl_.relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& MergeStmt::relation() const { - // @@protoc_insertion_point(field_get:pg_query.MergeStmt.relation) - return _internal_relation(); -} -inline void MergeStmt::unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.relation_); - } - _impl_.relation_ = relation; - if (relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.MergeStmt.relation) -} -inline ::pg_query::RangeVar* MergeStmt::release_relation() { - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* MergeStmt::unsafe_arena_release_relation() { - // @@protoc_insertion_point(field_release:pg_query.MergeStmt.relation) - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* MergeStmt::_internal_mutable_relation() { - - if (_impl_.relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.relation_ = p; - } - return _impl_.relation_; -} -inline ::pg_query::RangeVar* MergeStmt::mutable_relation() { - ::pg_query::RangeVar* _msg = _internal_mutable_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.MergeStmt.relation) - return _msg; -} -inline void MergeStmt::set_allocated_relation(::pg_query::RangeVar* relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.relation_; - } - if (relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(relation); - if (message_arena != submessage_arena) { - relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, relation, submessage_arena); - } - - } else { - - } - _impl_.relation_ = relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.MergeStmt.relation) -} - -// .pg_query.Node source_relation = 2 [json_name = "sourceRelation"]; -inline bool MergeStmt::_internal_has_source_relation() const { - return this != internal_default_instance() && _impl_.source_relation_ != nullptr; -} -inline bool MergeStmt::has_source_relation() const { - return _internal_has_source_relation(); -} -inline void MergeStmt::clear_source_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.source_relation_ != nullptr) { - delete _impl_.source_relation_; - } - _impl_.source_relation_ = nullptr; -} -inline const ::pg_query::Node& MergeStmt::_internal_source_relation() const { - const ::pg_query::Node* p = _impl_.source_relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& MergeStmt::source_relation() const { - // @@protoc_insertion_point(field_get:pg_query.MergeStmt.source_relation) - return _internal_source_relation(); -} -inline void MergeStmt::unsafe_arena_set_allocated_source_relation( - ::pg_query::Node* source_relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.source_relation_); - } - _impl_.source_relation_ = source_relation; - if (source_relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.MergeStmt.source_relation) -} -inline ::pg_query::Node* MergeStmt::release_source_relation() { - - ::pg_query::Node* temp = _impl_.source_relation_; - _impl_.source_relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* MergeStmt::unsafe_arena_release_source_relation() { - // @@protoc_insertion_point(field_release:pg_query.MergeStmt.source_relation) - - ::pg_query::Node* temp = _impl_.source_relation_; - _impl_.source_relation_ = nullptr; - return temp; -} -inline ::pg_query::Node* MergeStmt::_internal_mutable_source_relation() { - - if (_impl_.source_relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.source_relation_ = p; - } - return _impl_.source_relation_; -} -inline ::pg_query::Node* MergeStmt::mutable_source_relation() { - ::pg_query::Node* _msg = _internal_mutable_source_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.MergeStmt.source_relation) - return _msg; -} -inline void MergeStmt::set_allocated_source_relation(::pg_query::Node* source_relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.source_relation_; - } - if (source_relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(source_relation); - if (message_arena != submessage_arena) { - source_relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, source_relation, submessage_arena); - } - - } else { - - } - _impl_.source_relation_ = source_relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.MergeStmt.source_relation) -} - -// .pg_query.Node join_condition = 3 [json_name = "joinCondition"]; -inline bool MergeStmt::_internal_has_join_condition() const { - return this != internal_default_instance() && _impl_.join_condition_ != nullptr; -} -inline bool MergeStmt::has_join_condition() const { - return _internal_has_join_condition(); -} -inline void MergeStmt::clear_join_condition() { - if (GetArenaForAllocation() == nullptr && _impl_.join_condition_ != nullptr) { - delete _impl_.join_condition_; - } - _impl_.join_condition_ = nullptr; -} -inline const ::pg_query::Node& MergeStmt::_internal_join_condition() const { - const ::pg_query::Node* p = _impl_.join_condition_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& MergeStmt::join_condition() const { - // @@protoc_insertion_point(field_get:pg_query.MergeStmt.join_condition) - return _internal_join_condition(); -} -inline void MergeStmt::unsafe_arena_set_allocated_join_condition( - ::pg_query::Node* join_condition) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.join_condition_); - } - _impl_.join_condition_ = join_condition; - if (join_condition) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.MergeStmt.join_condition) -} -inline ::pg_query::Node* MergeStmt::release_join_condition() { - - ::pg_query::Node* temp = _impl_.join_condition_; - _impl_.join_condition_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* MergeStmt::unsafe_arena_release_join_condition() { - // @@protoc_insertion_point(field_release:pg_query.MergeStmt.join_condition) - - ::pg_query::Node* temp = _impl_.join_condition_; - _impl_.join_condition_ = nullptr; - return temp; -} -inline ::pg_query::Node* MergeStmt::_internal_mutable_join_condition() { - - if (_impl_.join_condition_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.join_condition_ = p; - } - return _impl_.join_condition_; -} -inline ::pg_query::Node* MergeStmt::mutable_join_condition() { - ::pg_query::Node* _msg = _internal_mutable_join_condition(); - // @@protoc_insertion_point(field_mutable:pg_query.MergeStmt.join_condition) - return _msg; -} -inline void MergeStmt::set_allocated_join_condition(::pg_query::Node* join_condition) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.join_condition_; - } - if (join_condition) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(join_condition); - if (message_arena != submessage_arena) { - join_condition = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, join_condition, submessage_arena); - } - - } else { - - } - _impl_.join_condition_ = join_condition; - // @@protoc_insertion_point(field_set_allocated:pg_query.MergeStmt.join_condition) -} - -// repeated .pg_query.Node merge_when_clauses = 4 [json_name = "mergeWhenClauses"]; -inline int MergeStmt::_internal_merge_when_clauses_size() const { - return _impl_.merge_when_clauses_.size(); -} -inline int MergeStmt::merge_when_clauses_size() const { - return _internal_merge_when_clauses_size(); -} -inline void MergeStmt::clear_merge_when_clauses() { - _impl_.merge_when_clauses_.Clear(); -} -inline ::pg_query::Node* MergeStmt::mutable_merge_when_clauses(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.MergeStmt.merge_when_clauses) - return _impl_.merge_when_clauses_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -MergeStmt::mutable_merge_when_clauses() { - // @@protoc_insertion_point(field_mutable_list:pg_query.MergeStmt.merge_when_clauses) - return &_impl_.merge_when_clauses_; -} -inline const ::pg_query::Node& MergeStmt::_internal_merge_when_clauses(int index) const { - return _impl_.merge_when_clauses_.Get(index); -} -inline const ::pg_query::Node& MergeStmt::merge_when_clauses(int index) const { - // @@protoc_insertion_point(field_get:pg_query.MergeStmt.merge_when_clauses) - return _internal_merge_when_clauses(index); -} -inline ::pg_query::Node* MergeStmt::_internal_add_merge_when_clauses() { - return _impl_.merge_when_clauses_.Add(); -} -inline ::pg_query::Node* MergeStmt::add_merge_when_clauses() { - ::pg_query::Node* _add = _internal_add_merge_when_clauses(); - // @@protoc_insertion_point(field_add:pg_query.MergeStmt.merge_when_clauses) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -MergeStmt::merge_when_clauses() const { - // @@protoc_insertion_point(field_list:pg_query.MergeStmt.merge_when_clauses) - return _impl_.merge_when_clauses_; -} - -// .pg_query.WithClause with_clause = 5 [json_name = "withClause"]; -inline bool MergeStmt::_internal_has_with_clause() const { - return this != internal_default_instance() && _impl_.with_clause_ != nullptr; -} -inline bool MergeStmt::has_with_clause() const { - return _internal_has_with_clause(); -} -inline void MergeStmt::clear_with_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.with_clause_ != nullptr) { - delete _impl_.with_clause_; - } - _impl_.with_clause_ = nullptr; -} -inline const ::pg_query::WithClause& MergeStmt::_internal_with_clause() const { - const ::pg_query::WithClause* p = _impl_.with_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_WithClause_default_instance_); -} -inline const ::pg_query::WithClause& MergeStmt::with_clause() const { - // @@protoc_insertion_point(field_get:pg_query.MergeStmt.with_clause) - return _internal_with_clause(); -} -inline void MergeStmt::unsafe_arena_set_allocated_with_clause( - ::pg_query::WithClause* with_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.with_clause_); - } - _impl_.with_clause_ = with_clause; - if (with_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.MergeStmt.with_clause) -} -inline ::pg_query::WithClause* MergeStmt::release_with_clause() { - - ::pg_query::WithClause* temp = _impl_.with_clause_; - _impl_.with_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::WithClause* MergeStmt::unsafe_arena_release_with_clause() { - // @@protoc_insertion_point(field_release:pg_query.MergeStmt.with_clause) - - ::pg_query::WithClause* temp = _impl_.with_clause_; - _impl_.with_clause_ = nullptr; - return temp; -} -inline ::pg_query::WithClause* MergeStmt::_internal_mutable_with_clause() { - - if (_impl_.with_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::WithClause>(GetArenaForAllocation()); - _impl_.with_clause_ = p; - } - return _impl_.with_clause_; -} -inline ::pg_query::WithClause* MergeStmt::mutable_with_clause() { - ::pg_query::WithClause* _msg = _internal_mutable_with_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.MergeStmt.with_clause) - return _msg; -} -inline void MergeStmt::set_allocated_with_clause(::pg_query::WithClause* with_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.with_clause_; - } - if (with_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(with_clause); - if (message_arena != submessage_arena) { - with_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, with_clause, submessage_arena); - } - - } else { - - } - _impl_.with_clause_ = with_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.MergeStmt.with_clause) -} - -// ------------------------------------------------------------------- - -// SelectStmt - -// repeated .pg_query.Node distinct_clause = 1 [json_name = "distinctClause"]; -inline int SelectStmt::_internal_distinct_clause_size() const { - return _impl_.distinct_clause_.size(); -} -inline int SelectStmt::distinct_clause_size() const { - return _internal_distinct_clause_size(); -} -inline void SelectStmt::clear_distinct_clause() { - _impl_.distinct_clause_.Clear(); -} -inline ::pg_query::Node* SelectStmt::mutable_distinct_clause(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.SelectStmt.distinct_clause) - return _impl_.distinct_clause_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -SelectStmt::mutable_distinct_clause() { - // @@protoc_insertion_point(field_mutable_list:pg_query.SelectStmt.distinct_clause) - return &_impl_.distinct_clause_; -} -inline const ::pg_query::Node& SelectStmt::_internal_distinct_clause(int index) const { - return _impl_.distinct_clause_.Get(index); -} -inline const ::pg_query::Node& SelectStmt::distinct_clause(int index) const { - // @@protoc_insertion_point(field_get:pg_query.SelectStmt.distinct_clause) - return _internal_distinct_clause(index); -} -inline ::pg_query::Node* SelectStmt::_internal_add_distinct_clause() { - return _impl_.distinct_clause_.Add(); -} -inline ::pg_query::Node* SelectStmt::add_distinct_clause() { - ::pg_query::Node* _add = _internal_add_distinct_clause(); - // @@protoc_insertion_point(field_add:pg_query.SelectStmt.distinct_clause) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -SelectStmt::distinct_clause() const { - // @@protoc_insertion_point(field_list:pg_query.SelectStmt.distinct_clause) - return _impl_.distinct_clause_; -} - -// .pg_query.IntoClause into_clause = 2 [json_name = "intoClause"]; -inline bool SelectStmt::_internal_has_into_clause() const { - return this != internal_default_instance() && _impl_.into_clause_ != nullptr; -} -inline bool SelectStmt::has_into_clause() const { - return _internal_has_into_clause(); -} -inline void SelectStmt::clear_into_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.into_clause_ != nullptr) { - delete _impl_.into_clause_; - } - _impl_.into_clause_ = nullptr; -} -inline const ::pg_query::IntoClause& SelectStmt::_internal_into_clause() const { - const ::pg_query::IntoClause* p = _impl_.into_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_IntoClause_default_instance_); -} -inline const ::pg_query::IntoClause& SelectStmt::into_clause() const { - // @@protoc_insertion_point(field_get:pg_query.SelectStmt.into_clause) - return _internal_into_clause(); -} -inline void SelectStmt::unsafe_arena_set_allocated_into_clause( - ::pg_query::IntoClause* into_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.into_clause_); - } - _impl_.into_clause_ = into_clause; - if (into_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SelectStmt.into_clause) -} -inline ::pg_query::IntoClause* SelectStmt::release_into_clause() { - - ::pg_query::IntoClause* temp = _impl_.into_clause_; - _impl_.into_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::IntoClause* SelectStmt::unsafe_arena_release_into_clause() { - // @@protoc_insertion_point(field_release:pg_query.SelectStmt.into_clause) - - ::pg_query::IntoClause* temp = _impl_.into_clause_; - _impl_.into_clause_ = nullptr; - return temp; -} -inline ::pg_query::IntoClause* SelectStmt::_internal_mutable_into_clause() { - - if (_impl_.into_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::IntoClause>(GetArenaForAllocation()); - _impl_.into_clause_ = p; - } - return _impl_.into_clause_; -} -inline ::pg_query::IntoClause* SelectStmt::mutable_into_clause() { - ::pg_query::IntoClause* _msg = _internal_mutable_into_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.SelectStmt.into_clause) - return _msg; -} -inline void SelectStmt::set_allocated_into_clause(::pg_query::IntoClause* into_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.into_clause_; - } - if (into_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(into_clause); - if (message_arena != submessage_arena) { - into_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, into_clause, submessage_arena); - } - - } else { - - } - _impl_.into_clause_ = into_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.SelectStmt.into_clause) -} - -// repeated .pg_query.Node target_list = 3 [json_name = "targetList"]; -inline int SelectStmt::_internal_target_list_size() const { - return _impl_.target_list_.size(); -} -inline int SelectStmt::target_list_size() const { - return _internal_target_list_size(); -} -inline void SelectStmt::clear_target_list() { - _impl_.target_list_.Clear(); -} -inline ::pg_query::Node* SelectStmt::mutable_target_list(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.SelectStmt.target_list) - return _impl_.target_list_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -SelectStmt::mutable_target_list() { - // @@protoc_insertion_point(field_mutable_list:pg_query.SelectStmt.target_list) - return &_impl_.target_list_; -} -inline const ::pg_query::Node& SelectStmt::_internal_target_list(int index) const { - return _impl_.target_list_.Get(index); -} -inline const ::pg_query::Node& SelectStmt::target_list(int index) const { - // @@protoc_insertion_point(field_get:pg_query.SelectStmt.target_list) - return _internal_target_list(index); -} -inline ::pg_query::Node* SelectStmt::_internal_add_target_list() { - return _impl_.target_list_.Add(); -} -inline ::pg_query::Node* SelectStmt::add_target_list() { - ::pg_query::Node* _add = _internal_add_target_list(); - // @@protoc_insertion_point(field_add:pg_query.SelectStmt.target_list) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -SelectStmt::target_list() const { - // @@protoc_insertion_point(field_list:pg_query.SelectStmt.target_list) - return _impl_.target_list_; -} - -// repeated .pg_query.Node from_clause = 4 [json_name = "fromClause"]; -inline int SelectStmt::_internal_from_clause_size() const { - return _impl_.from_clause_.size(); -} -inline int SelectStmt::from_clause_size() const { - return _internal_from_clause_size(); -} -inline void SelectStmt::clear_from_clause() { - _impl_.from_clause_.Clear(); -} -inline ::pg_query::Node* SelectStmt::mutable_from_clause(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.SelectStmt.from_clause) - return _impl_.from_clause_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -SelectStmt::mutable_from_clause() { - // @@protoc_insertion_point(field_mutable_list:pg_query.SelectStmt.from_clause) - return &_impl_.from_clause_; -} -inline const ::pg_query::Node& SelectStmt::_internal_from_clause(int index) const { - return _impl_.from_clause_.Get(index); -} -inline const ::pg_query::Node& SelectStmt::from_clause(int index) const { - // @@protoc_insertion_point(field_get:pg_query.SelectStmt.from_clause) - return _internal_from_clause(index); -} -inline ::pg_query::Node* SelectStmt::_internal_add_from_clause() { - return _impl_.from_clause_.Add(); -} -inline ::pg_query::Node* SelectStmt::add_from_clause() { - ::pg_query::Node* _add = _internal_add_from_clause(); - // @@protoc_insertion_point(field_add:pg_query.SelectStmt.from_clause) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -SelectStmt::from_clause() const { - // @@protoc_insertion_point(field_list:pg_query.SelectStmt.from_clause) - return _impl_.from_clause_; -} - -// .pg_query.Node where_clause = 5 [json_name = "whereClause"]; -inline bool SelectStmt::_internal_has_where_clause() const { - return this != internal_default_instance() && _impl_.where_clause_ != nullptr; -} -inline bool SelectStmt::has_where_clause() const { - return _internal_has_where_clause(); -} -inline void SelectStmt::clear_where_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.where_clause_ != nullptr) { - delete _impl_.where_clause_; - } - _impl_.where_clause_ = nullptr; -} -inline const ::pg_query::Node& SelectStmt::_internal_where_clause() const { - const ::pg_query::Node* p = _impl_.where_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& SelectStmt::where_clause() const { - // @@protoc_insertion_point(field_get:pg_query.SelectStmt.where_clause) - return _internal_where_clause(); -} -inline void SelectStmt::unsafe_arena_set_allocated_where_clause( - ::pg_query::Node* where_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.where_clause_); - } - _impl_.where_clause_ = where_clause; - if (where_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SelectStmt.where_clause) -} -inline ::pg_query::Node* SelectStmt::release_where_clause() { - - ::pg_query::Node* temp = _impl_.where_clause_; - _impl_.where_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* SelectStmt::unsafe_arena_release_where_clause() { - // @@protoc_insertion_point(field_release:pg_query.SelectStmt.where_clause) - - ::pg_query::Node* temp = _impl_.where_clause_; - _impl_.where_clause_ = nullptr; - return temp; -} -inline ::pg_query::Node* SelectStmt::_internal_mutable_where_clause() { - - if (_impl_.where_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.where_clause_ = p; - } - return _impl_.where_clause_; -} -inline ::pg_query::Node* SelectStmt::mutable_where_clause() { - ::pg_query::Node* _msg = _internal_mutable_where_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.SelectStmt.where_clause) - return _msg; -} -inline void SelectStmt::set_allocated_where_clause(::pg_query::Node* where_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.where_clause_; - } - if (where_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(where_clause); - if (message_arena != submessage_arena) { - where_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, where_clause, submessage_arena); - } - - } else { - - } - _impl_.where_clause_ = where_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.SelectStmt.where_clause) -} - -// repeated .pg_query.Node group_clause = 6 [json_name = "groupClause"]; -inline int SelectStmt::_internal_group_clause_size() const { - return _impl_.group_clause_.size(); -} -inline int SelectStmt::group_clause_size() const { - return _internal_group_clause_size(); -} -inline void SelectStmt::clear_group_clause() { - _impl_.group_clause_.Clear(); -} -inline ::pg_query::Node* SelectStmt::mutable_group_clause(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.SelectStmt.group_clause) - return _impl_.group_clause_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -SelectStmt::mutable_group_clause() { - // @@protoc_insertion_point(field_mutable_list:pg_query.SelectStmt.group_clause) - return &_impl_.group_clause_; -} -inline const ::pg_query::Node& SelectStmt::_internal_group_clause(int index) const { - return _impl_.group_clause_.Get(index); -} -inline const ::pg_query::Node& SelectStmt::group_clause(int index) const { - // @@protoc_insertion_point(field_get:pg_query.SelectStmt.group_clause) - return _internal_group_clause(index); -} -inline ::pg_query::Node* SelectStmt::_internal_add_group_clause() { - return _impl_.group_clause_.Add(); -} -inline ::pg_query::Node* SelectStmt::add_group_clause() { - ::pg_query::Node* _add = _internal_add_group_clause(); - // @@protoc_insertion_point(field_add:pg_query.SelectStmt.group_clause) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -SelectStmt::group_clause() const { - // @@protoc_insertion_point(field_list:pg_query.SelectStmt.group_clause) - return _impl_.group_clause_; -} - -// bool group_distinct = 7 [json_name = "groupDistinct"]; -inline void SelectStmt::clear_group_distinct() { - _impl_.group_distinct_ = false; -} -inline bool SelectStmt::_internal_group_distinct() const { - return _impl_.group_distinct_; -} -inline bool SelectStmt::group_distinct() const { - // @@protoc_insertion_point(field_get:pg_query.SelectStmt.group_distinct) - return _internal_group_distinct(); -} -inline void SelectStmt::_internal_set_group_distinct(bool value) { - - _impl_.group_distinct_ = value; -} -inline void SelectStmt::set_group_distinct(bool value) { - _internal_set_group_distinct(value); - // @@protoc_insertion_point(field_set:pg_query.SelectStmt.group_distinct) -} - -// .pg_query.Node having_clause = 8 [json_name = "havingClause"]; -inline bool SelectStmt::_internal_has_having_clause() const { - return this != internal_default_instance() && _impl_.having_clause_ != nullptr; -} -inline bool SelectStmt::has_having_clause() const { - return _internal_has_having_clause(); -} -inline void SelectStmt::clear_having_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.having_clause_ != nullptr) { - delete _impl_.having_clause_; - } - _impl_.having_clause_ = nullptr; -} -inline const ::pg_query::Node& SelectStmt::_internal_having_clause() const { - const ::pg_query::Node* p = _impl_.having_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& SelectStmt::having_clause() const { - // @@protoc_insertion_point(field_get:pg_query.SelectStmt.having_clause) - return _internal_having_clause(); -} -inline void SelectStmt::unsafe_arena_set_allocated_having_clause( - ::pg_query::Node* having_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.having_clause_); - } - _impl_.having_clause_ = having_clause; - if (having_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SelectStmt.having_clause) -} -inline ::pg_query::Node* SelectStmt::release_having_clause() { - - ::pg_query::Node* temp = _impl_.having_clause_; - _impl_.having_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* SelectStmt::unsafe_arena_release_having_clause() { - // @@protoc_insertion_point(field_release:pg_query.SelectStmt.having_clause) - - ::pg_query::Node* temp = _impl_.having_clause_; - _impl_.having_clause_ = nullptr; - return temp; -} -inline ::pg_query::Node* SelectStmt::_internal_mutable_having_clause() { - - if (_impl_.having_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.having_clause_ = p; - } - return _impl_.having_clause_; -} -inline ::pg_query::Node* SelectStmt::mutable_having_clause() { - ::pg_query::Node* _msg = _internal_mutable_having_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.SelectStmt.having_clause) - return _msg; -} -inline void SelectStmt::set_allocated_having_clause(::pg_query::Node* having_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.having_clause_; - } - if (having_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(having_clause); - if (message_arena != submessage_arena) { - having_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, having_clause, submessage_arena); - } - - } else { - - } - _impl_.having_clause_ = having_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.SelectStmt.having_clause) -} - -// repeated .pg_query.Node window_clause = 9 [json_name = "windowClause"]; -inline int SelectStmt::_internal_window_clause_size() const { - return _impl_.window_clause_.size(); -} -inline int SelectStmt::window_clause_size() const { - return _internal_window_clause_size(); -} -inline void SelectStmt::clear_window_clause() { - _impl_.window_clause_.Clear(); -} -inline ::pg_query::Node* SelectStmt::mutable_window_clause(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.SelectStmt.window_clause) - return _impl_.window_clause_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -SelectStmt::mutable_window_clause() { - // @@protoc_insertion_point(field_mutable_list:pg_query.SelectStmt.window_clause) - return &_impl_.window_clause_; -} -inline const ::pg_query::Node& SelectStmt::_internal_window_clause(int index) const { - return _impl_.window_clause_.Get(index); -} -inline const ::pg_query::Node& SelectStmt::window_clause(int index) const { - // @@protoc_insertion_point(field_get:pg_query.SelectStmt.window_clause) - return _internal_window_clause(index); -} -inline ::pg_query::Node* SelectStmt::_internal_add_window_clause() { - return _impl_.window_clause_.Add(); -} -inline ::pg_query::Node* SelectStmt::add_window_clause() { - ::pg_query::Node* _add = _internal_add_window_clause(); - // @@protoc_insertion_point(field_add:pg_query.SelectStmt.window_clause) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -SelectStmt::window_clause() const { - // @@protoc_insertion_point(field_list:pg_query.SelectStmt.window_clause) - return _impl_.window_clause_; -} - -// repeated .pg_query.Node values_lists = 10 [json_name = "valuesLists"]; -inline int SelectStmt::_internal_values_lists_size() const { - return _impl_.values_lists_.size(); -} -inline int SelectStmt::values_lists_size() const { - return _internal_values_lists_size(); -} -inline void SelectStmt::clear_values_lists() { - _impl_.values_lists_.Clear(); -} -inline ::pg_query::Node* SelectStmt::mutable_values_lists(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.SelectStmt.values_lists) - return _impl_.values_lists_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -SelectStmt::mutable_values_lists() { - // @@protoc_insertion_point(field_mutable_list:pg_query.SelectStmt.values_lists) - return &_impl_.values_lists_; -} -inline const ::pg_query::Node& SelectStmt::_internal_values_lists(int index) const { - return _impl_.values_lists_.Get(index); -} -inline const ::pg_query::Node& SelectStmt::values_lists(int index) const { - // @@protoc_insertion_point(field_get:pg_query.SelectStmt.values_lists) - return _internal_values_lists(index); -} -inline ::pg_query::Node* SelectStmt::_internal_add_values_lists() { - return _impl_.values_lists_.Add(); -} -inline ::pg_query::Node* SelectStmt::add_values_lists() { - ::pg_query::Node* _add = _internal_add_values_lists(); - // @@protoc_insertion_point(field_add:pg_query.SelectStmt.values_lists) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -SelectStmt::values_lists() const { - // @@protoc_insertion_point(field_list:pg_query.SelectStmt.values_lists) - return _impl_.values_lists_; -} - -// repeated .pg_query.Node sort_clause = 11 [json_name = "sortClause"]; -inline int SelectStmt::_internal_sort_clause_size() const { - return _impl_.sort_clause_.size(); -} -inline int SelectStmt::sort_clause_size() const { - return _internal_sort_clause_size(); -} -inline void SelectStmt::clear_sort_clause() { - _impl_.sort_clause_.Clear(); -} -inline ::pg_query::Node* SelectStmt::mutable_sort_clause(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.SelectStmt.sort_clause) - return _impl_.sort_clause_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -SelectStmt::mutable_sort_clause() { - // @@protoc_insertion_point(field_mutable_list:pg_query.SelectStmt.sort_clause) - return &_impl_.sort_clause_; -} -inline const ::pg_query::Node& SelectStmt::_internal_sort_clause(int index) const { - return _impl_.sort_clause_.Get(index); -} -inline const ::pg_query::Node& SelectStmt::sort_clause(int index) const { - // @@protoc_insertion_point(field_get:pg_query.SelectStmt.sort_clause) - return _internal_sort_clause(index); -} -inline ::pg_query::Node* SelectStmt::_internal_add_sort_clause() { - return _impl_.sort_clause_.Add(); -} -inline ::pg_query::Node* SelectStmt::add_sort_clause() { - ::pg_query::Node* _add = _internal_add_sort_clause(); - // @@protoc_insertion_point(field_add:pg_query.SelectStmt.sort_clause) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -SelectStmt::sort_clause() const { - // @@protoc_insertion_point(field_list:pg_query.SelectStmt.sort_clause) - return _impl_.sort_clause_; -} - -// .pg_query.Node limit_offset = 12 [json_name = "limitOffset"]; -inline bool SelectStmt::_internal_has_limit_offset() const { - return this != internal_default_instance() && _impl_.limit_offset_ != nullptr; -} -inline bool SelectStmt::has_limit_offset() const { - return _internal_has_limit_offset(); -} -inline void SelectStmt::clear_limit_offset() { - if (GetArenaForAllocation() == nullptr && _impl_.limit_offset_ != nullptr) { - delete _impl_.limit_offset_; - } - _impl_.limit_offset_ = nullptr; -} -inline const ::pg_query::Node& SelectStmt::_internal_limit_offset() const { - const ::pg_query::Node* p = _impl_.limit_offset_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& SelectStmt::limit_offset() const { - // @@protoc_insertion_point(field_get:pg_query.SelectStmt.limit_offset) - return _internal_limit_offset(); -} -inline void SelectStmt::unsafe_arena_set_allocated_limit_offset( - ::pg_query::Node* limit_offset) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.limit_offset_); - } - _impl_.limit_offset_ = limit_offset; - if (limit_offset) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SelectStmt.limit_offset) -} -inline ::pg_query::Node* SelectStmt::release_limit_offset() { - - ::pg_query::Node* temp = _impl_.limit_offset_; - _impl_.limit_offset_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* SelectStmt::unsafe_arena_release_limit_offset() { - // @@protoc_insertion_point(field_release:pg_query.SelectStmt.limit_offset) - - ::pg_query::Node* temp = _impl_.limit_offset_; - _impl_.limit_offset_ = nullptr; - return temp; -} -inline ::pg_query::Node* SelectStmt::_internal_mutable_limit_offset() { - - if (_impl_.limit_offset_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.limit_offset_ = p; - } - return _impl_.limit_offset_; -} -inline ::pg_query::Node* SelectStmt::mutable_limit_offset() { - ::pg_query::Node* _msg = _internal_mutable_limit_offset(); - // @@protoc_insertion_point(field_mutable:pg_query.SelectStmt.limit_offset) - return _msg; -} -inline void SelectStmt::set_allocated_limit_offset(::pg_query::Node* limit_offset) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.limit_offset_; - } - if (limit_offset) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(limit_offset); - if (message_arena != submessage_arena) { - limit_offset = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, limit_offset, submessage_arena); - } - - } else { - - } - _impl_.limit_offset_ = limit_offset; - // @@protoc_insertion_point(field_set_allocated:pg_query.SelectStmt.limit_offset) -} - -// .pg_query.Node limit_count = 13 [json_name = "limitCount"]; -inline bool SelectStmt::_internal_has_limit_count() const { - return this != internal_default_instance() && _impl_.limit_count_ != nullptr; -} -inline bool SelectStmt::has_limit_count() const { - return _internal_has_limit_count(); -} -inline void SelectStmt::clear_limit_count() { - if (GetArenaForAllocation() == nullptr && _impl_.limit_count_ != nullptr) { - delete _impl_.limit_count_; - } - _impl_.limit_count_ = nullptr; -} -inline const ::pg_query::Node& SelectStmt::_internal_limit_count() const { - const ::pg_query::Node* p = _impl_.limit_count_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& SelectStmt::limit_count() const { - // @@protoc_insertion_point(field_get:pg_query.SelectStmt.limit_count) - return _internal_limit_count(); -} -inline void SelectStmt::unsafe_arena_set_allocated_limit_count( - ::pg_query::Node* limit_count) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.limit_count_); - } - _impl_.limit_count_ = limit_count; - if (limit_count) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SelectStmt.limit_count) -} -inline ::pg_query::Node* SelectStmt::release_limit_count() { - - ::pg_query::Node* temp = _impl_.limit_count_; - _impl_.limit_count_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* SelectStmt::unsafe_arena_release_limit_count() { - // @@protoc_insertion_point(field_release:pg_query.SelectStmt.limit_count) - - ::pg_query::Node* temp = _impl_.limit_count_; - _impl_.limit_count_ = nullptr; - return temp; -} -inline ::pg_query::Node* SelectStmt::_internal_mutable_limit_count() { - - if (_impl_.limit_count_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.limit_count_ = p; - } - return _impl_.limit_count_; -} -inline ::pg_query::Node* SelectStmt::mutable_limit_count() { - ::pg_query::Node* _msg = _internal_mutable_limit_count(); - // @@protoc_insertion_point(field_mutable:pg_query.SelectStmt.limit_count) - return _msg; -} -inline void SelectStmt::set_allocated_limit_count(::pg_query::Node* limit_count) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.limit_count_; - } - if (limit_count) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(limit_count); - if (message_arena != submessage_arena) { - limit_count = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, limit_count, submessage_arena); - } - - } else { - - } - _impl_.limit_count_ = limit_count; - // @@protoc_insertion_point(field_set_allocated:pg_query.SelectStmt.limit_count) -} - -// .pg_query.LimitOption limit_option = 14 [json_name = "limitOption"]; -inline void SelectStmt::clear_limit_option() { - _impl_.limit_option_ = 0; -} -inline ::pg_query::LimitOption SelectStmt::_internal_limit_option() const { - return static_cast< ::pg_query::LimitOption >(_impl_.limit_option_); -} -inline ::pg_query::LimitOption SelectStmt::limit_option() const { - // @@protoc_insertion_point(field_get:pg_query.SelectStmt.limit_option) - return _internal_limit_option(); -} -inline void SelectStmt::_internal_set_limit_option(::pg_query::LimitOption value) { - - _impl_.limit_option_ = value; -} -inline void SelectStmt::set_limit_option(::pg_query::LimitOption value) { - _internal_set_limit_option(value); - // @@protoc_insertion_point(field_set:pg_query.SelectStmt.limit_option) -} - -// repeated .pg_query.Node locking_clause = 15 [json_name = "lockingClause"]; -inline int SelectStmt::_internal_locking_clause_size() const { - return _impl_.locking_clause_.size(); -} -inline int SelectStmt::locking_clause_size() const { - return _internal_locking_clause_size(); -} -inline void SelectStmt::clear_locking_clause() { - _impl_.locking_clause_.Clear(); -} -inline ::pg_query::Node* SelectStmt::mutable_locking_clause(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.SelectStmt.locking_clause) - return _impl_.locking_clause_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -SelectStmt::mutable_locking_clause() { - // @@protoc_insertion_point(field_mutable_list:pg_query.SelectStmt.locking_clause) - return &_impl_.locking_clause_; -} -inline const ::pg_query::Node& SelectStmt::_internal_locking_clause(int index) const { - return _impl_.locking_clause_.Get(index); -} -inline const ::pg_query::Node& SelectStmt::locking_clause(int index) const { - // @@protoc_insertion_point(field_get:pg_query.SelectStmt.locking_clause) - return _internal_locking_clause(index); -} -inline ::pg_query::Node* SelectStmt::_internal_add_locking_clause() { - return _impl_.locking_clause_.Add(); -} -inline ::pg_query::Node* SelectStmt::add_locking_clause() { - ::pg_query::Node* _add = _internal_add_locking_clause(); - // @@protoc_insertion_point(field_add:pg_query.SelectStmt.locking_clause) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -SelectStmt::locking_clause() const { - // @@protoc_insertion_point(field_list:pg_query.SelectStmt.locking_clause) - return _impl_.locking_clause_; -} - -// .pg_query.WithClause with_clause = 16 [json_name = "withClause"]; -inline bool SelectStmt::_internal_has_with_clause() const { - return this != internal_default_instance() && _impl_.with_clause_ != nullptr; -} -inline bool SelectStmt::has_with_clause() const { - return _internal_has_with_clause(); -} -inline void SelectStmt::clear_with_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.with_clause_ != nullptr) { - delete _impl_.with_clause_; - } - _impl_.with_clause_ = nullptr; -} -inline const ::pg_query::WithClause& SelectStmt::_internal_with_clause() const { - const ::pg_query::WithClause* p = _impl_.with_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_WithClause_default_instance_); -} -inline const ::pg_query::WithClause& SelectStmt::with_clause() const { - // @@protoc_insertion_point(field_get:pg_query.SelectStmt.with_clause) - return _internal_with_clause(); -} -inline void SelectStmt::unsafe_arena_set_allocated_with_clause( - ::pg_query::WithClause* with_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.with_clause_); - } - _impl_.with_clause_ = with_clause; - if (with_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SelectStmt.with_clause) -} -inline ::pg_query::WithClause* SelectStmt::release_with_clause() { - - ::pg_query::WithClause* temp = _impl_.with_clause_; - _impl_.with_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::WithClause* SelectStmt::unsafe_arena_release_with_clause() { - // @@protoc_insertion_point(field_release:pg_query.SelectStmt.with_clause) - - ::pg_query::WithClause* temp = _impl_.with_clause_; - _impl_.with_clause_ = nullptr; - return temp; -} -inline ::pg_query::WithClause* SelectStmt::_internal_mutable_with_clause() { - - if (_impl_.with_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::WithClause>(GetArenaForAllocation()); - _impl_.with_clause_ = p; - } - return _impl_.with_clause_; -} -inline ::pg_query::WithClause* SelectStmt::mutable_with_clause() { - ::pg_query::WithClause* _msg = _internal_mutable_with_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.SelectStmt.with_clause) - return _msg; -} -inline void SelectStmt::set_allocated_with_clause(::pg_query::WithClause* with_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.with_clause_; - } - if (with_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(with_clause); - if (message_arena != submessage_arena) { - with_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, with_clause, submessage_arena); - } - - } else { - - } - _impl_.with_clause_ = with_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.SelectStmt.with_clause) -} - -// .pg_query.SetOperation op = 17 [json_name = "op"]; -inline void SelectStmt::clear_op() { - _impl_.op_ = 0; -} -inline ::pg_query::SetOperation SelectStmt::_internal_op() const { - return static_cast< ::pg_query::SetOperation >(_impl_.op_); -} -inline ::pg_query::SetOperation SelectStmt::op() const { - // @@protoc_insertion_point(field_get:pg_query.SelectStmt.op) - return _internal_op(); -} -inline void SelectStmt::_internal_set_op(::pg_query::SetOperation value) { - - _impl_.op_ = value; -} -inline void SelectStmt::set_op(::pg_query::SetOperation value) { - _internal_set_op(value); - // @@protoc_insertion_point(field_set:pg_query.SelectStmt.op) -} - -// bool all = 18 [json_name = "all"]; -inline void SelectStmt::clear_all() { - _impl_.all_ = false; -} -inline bool SelectStmt::_internal_all() const { - return _impl_.all_; -} -inline bool SelectStmt::all() const { - // @@protoc_insertion_point(field_get:pg_query.SelectStmt.all) - return _internal_all(); -} -inline void SelectStmt::_internal_set_all(bool value) { - - _impl_.all_ = value; -} -inline void SelectStmt::set_all(bool value) { - _internal_set_all(value); - // @@protoc_insertion_point(field_set:pg_query.SelectStmt.all) -} - -// .pg_query.SelectStmt larg = 19 [json_name = "larg"]; -inline bool SelectStmt::_internal_has_larg() const { - return this != internal_default_instance() && _impl_.larg_ != nullptr; -} -inline bool SelectStmt::has_larg() const { - return _internal_has_larg(); -} -inline void SelectStmt::clear_larg() { - if (GetArenaForAllocation() == nullptr && _impl_.larg_ != nullptr) { - delete _impl_.larg_; - } - _impl_.larg_ = nullptr; -} -inline const ::pg_query::SelectStmt& SelectStmt::_internal_larg() const { - const ::pg_query::SelectStmt* p = _impl_.larg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_SelectStmt_default_instance_); -} -inline const ::pg_query::SelectStmt& SelectStmt::larg() const { - // @@protoc_insertion_point(field_get:pg_query.SelectStmt.larg) - return _internal_larg(); -} -inline void SelectStmt::unsafe_arena_set_allocated_larg( - ::pg_query::SelectStmt* larg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.larg_); - } - _impl_.larg_ = larg; - if (larg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SelectStmt.larg) -} -inline ::pg_query::SelectStmt* SelectStmt::release_larg() { - - ::pg_query::SelectStmt* temp = _impl_.larg_; - _impl_.larg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::SelectStmt* SelectStmt::unsafe_arena_release_larg() { - // @@protoc_insertion_point(field_release:pg_query.SelectStmt.larg) - - ::pg_query::SelectStmt* temp = _impl_.larg_; - _impl_.larg_ = nullptr; - return temp; -} -inline ::pg_query::SelectStmt* SelectStmt::_internal_mutable_larg() { - - if (_impl_.larg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::SelectStmt>(GetArenaForAllocation()); - _impl_.larg_ = p; - } - return _impl_.larg_; -} -inline ::pg_query::SelectStmt* SelectStmt::mutable_larg() { - ::pg_query::SelectStmt* _msg = _internal_mutable_larg(); - // @@protoc_insertion_point(field_mutable:pg_query.SelectStmt.larg) - return _msg; -} -inline void SelectStmt::set_allocated_larg(::pg_query::SelectStmt* larg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.larg_; - } - if (larg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(larg); - if (message_arena != submessage_arena) { - larg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, larg, submessage_arena); - } - - } else { - - } - _impl_.larg_ = larg; - // @@protoc_insertion_point(field_set_allocated:pg_query.SelectStmt.larg) -} - -// .pg_query.SelectStmt rarg = 20 [json_name = "rarg"]; -inline bool SelectStmt::_internal_has_rarg() const { - return this != internal_default_instance() && _impl_.rarg_ != nullptr; -} -inline bool SelectStmt::has_rarg() const { - return _internal_has_rarg(); -} -inline void SelectStmt::clear_rarg() { - if (GetArenaForAllocation() == nullptr && _impl_.rarg_ != nullptr) { - delete _impl_.rarg_; - } - _impl_.rarg_ = nullptr; -} -inline const ::pg_query::SelectStmt& SelectStmt::_internal_rarg() const { - const ::pg_query::SelectStmt* p = _impl_.rarg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_SelectStmt_default_instance_); -} -inline const ::pg_query::SelectStmt& SelectStmt::rarg() const { - // @@protoc_insertion_point(field_get:pg_query.SelectStmt.rarg) - return _internal_rarg(); -} -inline void SelectStmt::unsafe_arena_set_allocated_rarg( - ::pg_query::SelectStmt* rarg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.rarg_); - } - _impl_.rarg_ = rarg; - if (rarg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SelectStmt.rarg) -} -inline ::pg_query::SelectStmt* SelectStmt::release_rarg() { - - ::pg_query::SelectStmt* temp = _impl_.rarg_; - _impl_.rarg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::SelectStmt* SelectStmt::unsafe_arena_release_rarg() { - // @@protoc_insertion_point(field_release:pg_query.SelectStmt.rarg) - - ::pg_query::SelectStmt* temp = _impl_.rarg_; - _impl_.rarg_ = nullptr; - return temp; -} -inline ::pg_query::SelectStmt* SelectStmt::_internal_mutable_rarg() { - - if (_impl_.rarg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::SelectStmt>(GetArenaForAllocation()); - _impl_.rarg_ = p; - } - return _impl_.rarg_; -} -inline ::pg_query::SelectStmt* SelectStmt::mutable_rarg() { - ::pg_query::SelectStmt* _msg = _internal_mutable_rarg(); - // @@protoc_insertion_point(field_mutable:pg_query.SelectStmt.rarg) - return _msg; -} -inline void SelectStmt::set_allocated_rarg(::pg_query::SelectStmt* rarg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.rarg_; - } - if (rarg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(rarg); - if (message_arena != submessage_arena) { - rarg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, rarg, submessage_arena); - } - - } else { - - } - _impl_.rarg_ = rarg; - // @@protoc_insertion_point(field_set_allocated:pg_query.SelectStmt.rarg) -} - -// ------------------------------------------------------------------- - -// ReturnStmt - -// .pg_query.Node returnval = 1 [json_name = "returnval"]; -inline bool ReturnStmt::_internal_has_returnval() const { - return this != internal_default_instance() && _impl_.returnval_ != nullptr; -} -inline bool ReturnStmt::has_returnval() const { - return _internal_has_returnval(); -} -inline void ReturnStmt::clear_returnval() { - if (GetArenaForAllocation() == nullptr && _impl_.returnval_ != nullptr) { - delete _impl_.returnval_; - } - _impl_.returnval_ = nullptr; -} -inline const ::pg_query::Node& ReturnStmt::_internal_returnval() const { - const ::pg_query::Node* p = _impl_.returnval_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& ReturnStmt::returnval() const { - // @@protoc_insertion_point(field_get:pg_query.ReturnStmt.returnval) - return _internal_returnval(); -} -inline void ReturnStmt::unsafe_arena_set_allocated_returnval( - ::pg_query::Node* returnval) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.returnval_); - } - _impl_.returnval_ = returnval; - if (returnval) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.ReturnStmt.returnval) -} -inline ::pg_query::Node* ReturnStmt::release_returnval() { - - ::pg_query::Node* temp = _impl_.returnval_; - _impl_.returnval_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* ReturnStmt::unsafe_arena_release_returnval() { - // @@protoc_insertion_point(field_release:pg_query.ReturnStmt.returnval) - - ::pg_query::Node* temp = _impl_.returnval_; - _impl_.returnval_ = nullptr; - return temp; -} -inline ::pg_query::Node* ReturnStmt::_internal_mutable_returnval() { - - if (_impl_.returnval_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.returnval_ = p; - } - return _impl_.returnval_; -} -inline ::pg_query::Node* ReturnStmt::mutable_returnval() { - ::pg_query::Node* _msg = _internal_mutable_returnval(); - // @@protoc_insertion_point(field_mutable:pg_query.ReturnStmt.returnval) - return _msg; -} -inline void ReturnStmt::set_allocated_returnval(::pg_query::Node* returnval) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.returnval_; - } - if (returnval) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(returnval); - if (message_arena != submessage_arena) { - returnval = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, returnval, submessage_arena); - } - - } else { - - } - _impl_.returnval_ = returnval; - // @@protoc_insertion_point(field_set_allocated:pg_query.ReturnStmt.returnval) -} - -// ------------------------------------------------------------------- - -// PLAssignStmt - -// string name = 1 [json_name = "name"]; -inline void PLAssignStmt::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& PLAssignStmt::name() const { - // @@protoc_insertion_point(field_get:pg_query.PLAssignStmt.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void PLAssignStmt::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.PLAssignStmt.name) -} -inline std::string* PLAssignStmt::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.PLAssignStmt.name) - return _s; -} -inline const std::string& PLAssignStmt::_internal_name() const { - return _impl_.name_.Get(); -} -inline void PLAssignStmt::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* PLAssignStmt::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* PLAssignStmt::release_name() { - // @@protoc_insertion_point(field_release:pg_query.PLAssignStmt.name) - return _impl_.name_.Release(); -} -inline void PLAssignStmt::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.PLAssignStmt.name) -} - -// repeated .pg_query.Node indirection = 2 [json_name = "indirection"]; -inline int PLAssignStmt::_internal_indirection_size() const { - return _impl_.indirection_.size(); -} -inline int PLAssignStmt::indirection_size() const { - return _internal_indirection_size(); -} -inline void PLAssignStmt::clear_indirection() { - _impl_.indirection_.Clear(); -} -inline ::pg_query::Node* PLAssignStmt::mutable_indirection(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.PLAssignStmt.indirection) - return _impl_.indirection_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -PLAssignStmt::mutable_indirection() { - // @@protoc_insertion_point(field_mutable_list:pg_query.PLAssignStmt.indirection) - return &_impl_.indirection_; -} -inline const ::pg_query::Node& PLAssignStmt::_internal_indirection(int index) const { - return _impl_.indirection_.Get(index); -} -inline const ::pg_query::Node& PLAssignStmt::indirection(int index) const { - // @@protoc_insertion_point(field_get:pg_query.PLAssignStmt.indirection) - return _internal_indirection(index); -} -inline ::pg_query::Node* PLAssignStmt::_internal_add_indirection() { - return _impl_.indirection_.Add(); -} -inline ::pg_query::Node* PLAssignStmt::add_indirection() { - ::pg_query::Node* _add = _internal_add_indirection(); - // @@protoc_insertion_point(field_add:pg_query.PLAssignStmt.indirection) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -PLAssignStmt::indirection() const { - // @@protoc_insertion_point(field_list:pg_query.PLAssignStmt.indirection) - return _impl_.indirection_; -} - -// int32 nnames = 3 [json_name = "nnames"]; -inline void PLAssignStmt::clear_nnames() { - _impl_.nnames_ = 0; -} -inline int32_t PLAssignStmt::_internal_nnames() const { - return _impl_.nnames_; -} -inline int32_t PLAssignStmt::nnames() const { - // @@protoc_insertion_point(field_get:pg_query.PLAssignStmt.nnames) - return _internal_nnames(); -} -inline void PLAssignStmt::_internal_set_nnames(int32_t value) { - - _impl_.nnames_ = value; -} -inline void PLAssignStmt::set_nnames(int32_t value) { - _internal_set_nnames(value); - // @@protoc_insertion_point(field_set:pg_query.PLAssignStmt.nnames) -} - -// .pg_query.SelectStmt val = 4 [json_name = "val"]; -inline bool PLAssignStmt::_internal_has_val() const { - return this != internal_default_instance() && _impl_.val_ != nullptr; -} -inline bool PLAssignStmt::has_val() const { - return _internal_has_val(); -} -inline void PLAssignStmt::clear_val() { - if (GetArenaForAllocation() == nullptr && _impl_.val_ != nullptr) { - delete _impl_.val_; - } - _impl_.val_ = nullptr; -} -inline const ::pg_query::SelectStmt& PLAssignStmt::_internal_val() const { - const ::pg_query::SelectStmt* p = _impl_.val_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_SelectStmt_default_instance_); -} -inline const ::pg_query::SelectStmt& PLAssignStmt::val() const { - // @@protoc_insertion_point(field_get:pg_query.PLAssignStmt.val) - return _internal_val(); -} -inline void PLAssignStmt::unsafe_arena_set_allocated_val( - ::pg_query::SelectStmt* val) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.val_); - } - _impl_.val_ = val; - if (val) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.PLAssignStmt.val) -} -inline ::pg_query::SelectStmt* PLAssignStmt::release_val() { - - ::pg_query::SelectStmt* temp = _impl_.val_; - _impl_.val_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::SelectStmt* PLAssignStmt::unsafe_arena_release_val() { - // @@protoc_insertion_point(field_release:pg_query.PLAssignStmt.val) - - ::pg_query::SelectStmt* temp = _impl_.val_; - _impl_.val_ = nullptr; - return temp; -} -inline ::pg_query::SelectStmt* PLAssignStmt::_internal_mutable_val() { - - if (_impl_.val_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::SelectStmt>(GetArenaForAllocation()); - _impl_.val_ = p; - } - return _impl_.val_; -} -inline ::pg_query::SelectStmt* PLAssignStmt::mutable_val() { - ::pg_query::SelectStmt* _msg = _internal_mutable_val(); - // @@protoc_insertion_point(field_mutable:pg_query.PLAssignStmt.val) - return _msg; -} -inline void PLAssignStmt::set_allocated_val(::pg_query::SelectStmt* val) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.val_; - } - if (val) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(val); - if (message_arena != submessage_arena) { - val = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, val, submessage_arena); - } - - } else { - - } - _impl_.val_ = val; - // @@protoc_insertion_point(field_set_allocated:pg_query.PLAssignStmt.val) -} - -// int32 location = 5 [json_name = "location"]; -inline void PLAssignStmt::clear_location() { - _impl_.location_ = 0; -} -inline int32_t PLAssignStmt::_internal_location() const { - return _impl_.location_; -} -inline int32_t PLAssignStmt::location() const { - // @@protoc_insertion_point(field_get:pg_query.PLAssignStmt.location) - return _internal_location(); -} -inline void PLAssignStmt::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void PLAssignStmt::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.PLAssignStmt.location) -} - -// ------------------------------------------------------------------- - -// AlterTableStmt - -// .pg_query.RangeVar relation = 1 [json_name = "relation"]; -inline bool AlterTableStmt::_internal_has_relation() const { - return this != internal_default_instance() && _impl_.relation_ != nullptr; -} -inline bool AlterTableStmt::has_relation() const { - return _internal_has_relation(); -} -inline void AlterTableStmt::clear_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.relation_ != nullptr) { - delete _impl_.relation_; - } - _impl_.relation_ = nullptr; -} -inline const ::pg_query::RangeVar& AlterTableStmt::_internal_relation() const { - const ::pg_query::RangeVar* p = _impl_.relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& AlterTableStmt::relation() const { - // @@protoc_insertion_point(field_get:pg_query.AlterTableStmt.relation) - return _internal_relation(); -} -inline void AlterTableStmt::unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.relation_); - } - _impl_.relation_ = relation; - if (relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterTableStmt.relation) -} -inline ::pg_query::RangeVar* AlterTableStmt::release_relation() { - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* AlterTableStmt::unsafe_arena_release_relation() { - // @@protoc_insertion_point(field_release:pg_query.AlterTableStmt.relation) - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* AlterTableStmt::_internal_mutable_relation() { - - if (_impl_.relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.relation_ = p; - } - return _impl_.relation_; -} -inline ::pg_query::RangeVar* AlterTableStmt::mutable_relation() { - ::pg_query::RangeVar* _msg = _internal_mutable_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterTableStmt.relation) - return _msg; -} -inline void AlterTableStmt::set_allocated_relation(::pg_query::RangeVar* relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.relation_; - } - if (relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(relation); - if (message_arena != submessage_arena) { - relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, relation, submessage_arena); - } - - } else { - - } - _impl_.relation_ = relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterTableStmt.relation) -} - -// repeated .pg_query.Node cmds = 2 [json_name = "cmds"]; -inline int AlterTableStmt::_internal_cmds_size() const { - return _impl_.cmds_.size(); -} -inline int AlterTableStmt::cmds_size() const { - return _internal_cmds_size(); -} -inline void AlterTableStmt::clear_cmds() { - _impl_.cmds_.Clear(); -} -inline ::pg_query::Node* AlterTableStmt::mutable_cmds(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterTableStmt.cmds) - return _impl_.cmds_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterTableStmt::mutable_cmds() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterTableStmt.cmds) - return &_impl_.cmds_; -} -inline const ::pg_query::Node& AlterTableStmt::_internal_cmds(int index) const { - return _impl_.cmds_.Get(index); -} -inline const ::pg_query::Node& AlterTableStmt::cmds(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterTableStmt.cmds) - return _internal_cmds(index); -} -inline ::pg_query::Node* AlterTableStmt::_internal_add_cmds() { - return _impl_.cmds_.Add(); -} -inline ::pg_query::Node* AlterTableStmt::add_cmds() { - ::pg_query::Node* _add = _internal_add_cmds(); - // @@protoc_insertion_point(field_add:pg_query.AlterTableStmt.cmds) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterTableStmt::cmds() const { - // @@protoc_insertion_point(field_list:pg_query.AlterTableStmt.cmds) - return _impl_.cmds_; -} - -// .pg_query.ObjectType objtype = 3 [json_name = "objtype"]; -inline void AlterTableStmt::clear_objtype() { - _impl_.objtype_ = 0; -} -inline ::pg_query::ObjectType AlterTableStmt::_internal_objtype() const { - return static_cast< ::pg_query::ObjectType >(_impl_.objtype_); -} -inline ::pg_query::ObjectType AlterTableStmt::objtype() const { - // @@protoc_insertion_point(field_get:pg_query.AlterTableStmt.objtype) - return _internal_objtype(); -} -inline void AlterTableStmt::_internal_set_objtype(::pg_query::ObjectType value) { - - _impl_.objtype_ = value; -} -inline void AlterTableStmt::set_objtype(::pg_query::ObjectType value) { - _internal_set_objtype(value); - // @@protoc_insertion_point(field_set:pg_query.AlterTableStmt.objtype) -} - -// bool missing_ok = 4 [json_name = "missing_ok"]; -inline void AlterTableStmt::clear_missing_ok() { - _impl_.missing_ok_ = false; -} -inline bool AlterTableStmt::_internal_missing_ok() const { - return _impl_.missing_ok_; -} -inline bool AlterTableStmt::missing_ok() const { - // @@protoc_insertion_point(field_get:pg_query.AlterTableStmt.missing_ok) - return _internal_missing_ok(); -} -inline void AlterTableStmt::_internal_set_missing_ok(bool value) { - - _impl_.missing_ok_ = value; -} -inline void AlterTableStmt::set_missing_ok(bool value) { - _internal_set_missing_ok(value); - // @@protoc_insertion_point(field_set:pg_query.AlterTableStmt.missing_ok) -} - -// ------------------------------------------------------------------- - -// AlterTableCmd - -// .pg_query.AlterTableType subtype = 1 [json_name = "subtype"]; -inline void AlterTableCmd::clear_subtype() { - _impl_.subtype_ = 0; -} -inline ::pg_query::AlterTableType AlterTableCmd::_internal_subtype() const { - return static_cast< ::pg_query::AlterTableType >(_impl_.subtype_); -} -inline ::pg_query::AlterTableType AlterTableCmd::subtype() const { - // @@protoc_insertion_point(field_get:pg_query.AlterTableCmd.subtype) - return _internal_subtype(); -} -inline void AlterTableCmd::_internal_set_subtype(::pg_query::AlterTableType value) { - - _impl_.subtype_ = value; -} -inline void AlterTableCmd::set_subtype(::pg_query::AlterTableType value) { - _internal_set_subtype(value); - // @@protoc_insertion_point(field_set:pg_query.AlterTableCmd.subtype) -} - -// string name = 2 [json_name = "name"]; -inline void AlterTableCmd::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& AlterTableCmd::name() const { - // @@protoc_insertion_point(field_get:pg_query.AlterTableCmd.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterTableCmd::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterTableCmd.name) -} -inline std::string* AlterTableCmd::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterTableCmd.name) - return _s; -} -inline const std::string& AlterTableCmd::_internal_name() const { - return _impl_.name_.Get(); -} -inline void AlterTableCmd::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterTableCmd::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterTableCmd::release_name() { - // @@protoc_insertion_point(field_release:pg_query.AlterTableCmd.name) - return _impl_.name_.Release(); -} -inline void AlterTableCmd::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterTableCmd.name) -} - -// int32 num = 3 [json_name = "num"]; -inline void AlterTableCmd::clear_num() { - _impl_.num_ = 0; -} -inline int32_t AlterTableCmd::_internal_num() const { - return _impl_.num_; -} -inline int32_t AlterTableCmd::num() const { - // @@protoc_insertion_point(field_get:pg_query.AlterTableCmd.num) - return _internal_num(); -} -inline void AlterTableCmd::_internal_set_num(int32_t value) { - - _impl_.num_ = value; -} -inline void AlterTableCmd::set_num(int32_t value) { - _internal_set_num(value); - // @@protoc_insertion_point(field_set:pg_query.AlterTableCmd.num) -} - -// .pg_query.RoleSpec newowner = 4 [json_name = "newowner"]; -inline bool AlterTableCmd::_internal_has_newowner() const { - return this != internal_default_instance() && _impl_.newowner_ != nullptr; -} -inline bool AlterTableCmd::has_newowner() const { - return _internal_has_newowner(); -} -inline void AlterTableCmd::clear_newowner() { - if (GetArenaForAllocation() == nullptr && _impl_.newowner_ != nullptr) { - delete _impl_.newowner_; - } - _impl_.newowner_ = nullptr; -} -inline const ::pg_query::RoleSpec& AlterTableCmd::_internal_newowner() const { - const ::pg_query::RoleSpec* p = _impl_.newowner_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RoleSpec_default_instance_); -} -inline const ::pg_query::RoleSpec& AlterTableCmd::newowner() const { - // @@protoc_insertion_point(field_get:pg_query.AlterTableCmd.newowner) - return _internal_newowner(); -} -inline void AlterTableCmd::unsafe_arena_set_allocated_newowner( - ::pg_query::RoleSpec* newowner) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.newowner_); - } - _impl_.newowner_ = newowner; - if (newowner) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterTableCmd.newowner) -} -inline ::pg_query::RoleSpec* AlterTableCmd::release_newowner() { - - ::pg_query::RoleSpec* temp = _impl_.newowner_; - _impl_.newowner_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RoleSpec* AlterTableCmd::unsafe_arena_release_newowner() { - // @@protoc_insertion_point(field_release:pg_query.AlterTableCmd.newowner) - - ::pg_query::RoleSpec* temp = _impl_.newowner_; - _impl_.newowner_ = nullptr; - return temp; -} -inline ::pg_query::RoleSpec* AlterTableCmd::_internal_mutable_newowner() { - - if (_impl_.newowner_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RoleSpec>(GetArenaForAllocation()); - _impl_.newowner_ = p; - } - return _impl_.newowner_; -} -inline ::pg_query::RoleSpec* AlterTableCmd::mutable_newowner() { - ::pg_query::RoleSpec* _msg = _internal_mutable_newowner(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterTableCmd.newowner) - return _msg; -} -inline void AlterTableCmd::set_allocated_newowner(::pg_query::RoleSpec* newowner) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.newowner_; - } - if (newowner) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(newowner); - if (message_arena != submessage_arena) { - newowner = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, newowner, submessage_arena); - } - - } else { - - } - _impl_.newowner_ = newowner; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterTableCmd.newowner) -} - -// .pg_query.Node def = 5 [json_name = "def"]; -inline bool AlterTableCmd::_internal_has_def() const { - return this != internal_default_instance() && _impl_.def_ != nullptr; -} -inline bool AlterTableCmd::has_def() const { - return _internal_has_def(); -} -inline void AlterTableCmd::clear_def() { - if (GetArenaForAllocation() == nullptr && _impl_.def_ != nullptr) { - delete _impl_.def_; - } - _impl_.def_ = nullptr; -} -inline const ::pg_query::Node& AlterTableCmd::_internal_def() const { - const ::pg_query::Node* p = _impl_.def_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& AlterTableCmd::def() const { - // @@protoc_insertion_point(field_get:pg_query.AlterTableCmd.def) - return _internal_def(); -} -inline void AlterTableCmd::unsafe_arena_set_allocated_def( - ::pg_query::Node* def) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.def_); - } - _impl_.def_ = def; - if (def) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterTableCmd.def) -} -inline ::pg_query::Node* AlterTableCmd::release_def() { - - ::pg_query::Node* temp = _impl_.def_; - _impl_.def_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* AlterTableCmd::unsafe_arena_release_def() { - // @@protoc_insertion_point(field_release:pg_query.AlterTableCmd.def) - - ::pg_query::Node* temp = _impl_.def_; - _impl_.def_ = nullptr; - return temp; -} -inline ::pg_query::Node* AlterTableCmd::_internal_mutable_def() { - - if (_impl_.def_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.def_ = p; - } - return _impl_.def_; -} -inline ::pg_query::Node* AlterTableCmd::mutable_def() { - ::pg_query::Node* _msg = _internal_mutable_def(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterTableCmd.def) - return _msg; -} -inline void AlterTableCmd::set_allocated_def(::pg_query::Node* def) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.def_; - } - if (def) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(def); - if (message_arena != submessage_arena) { - def = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, def, submessage_arena); - } - - } else { - - } - _impl_.def_ = def; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterTableCmd.def) -} - -// .pg_query.DropBehavior behavior = 6 [json_name = "behavior"]; -inline void AlterTableCmd::clear_behavior() { - _impl_.behavior_ = 0; -} -inline ::pg_query::DropBehavior AlterTableCmd::_internal_behavior() const { - return static_cast< ::pg_query::DropBehavior >(_impl_.behavior_); -} -inline ::pg_query::DropBehavior AlterTableCmd::behavior() const { - // @@protoc_insertion_point(field_get:pg_query.AlterTableCmd.behavior) - return _internal_behavior(); -} -inline void AlterTableCmd::_internal_set_behavior(::pg_query::DropBehavior value) { - - _impl_.behavior_ = value; -} -inline void AlterTableCmd::set_behavior(::pg_query::DropBehavior value) { - _internal_set_behavior(value); - // @@protoc_insertion_point(field_set:pg_query.AlterTableCmd.behavior) -} - -// bool missing_ok = 7 [json_name = "missing_ok"]; -inline void AlterTableCmd::clear_missing_ok() { - _impl_.missing_ok_ = false; -} -inline bool AlterTableCmd::_internal_missing_ok() const { - return _impl_.missing_ok_; -} -inline bool AlterTableCmd::missing_ok() const { - // @@protoc_insertion_point(field_get:pg_query.AlterTableCmd.missing_ok) - return _internal_missing_ok(); -} -inline void AlterTableCmd::_internal_set_missing_ok(bool value) { - - _impl_.missing_ok_ = value; -} -inline void AlterTableCmd::set_missing_ok(bool value) { - _internal_set_missing_ok(value); - // @@protoc_insertion_point(field_set:pg_query.AlterTableCmd.missing_ok) -} - -// bool recurse = 8 [json_name = "recurse"]; -inline void AlterTableCmd::clear_recurse() { - _impl_.recurse_ = false; -} -inline bool AlterTableCmd::_internal_recurse() const { - return _impl_.recurse_; -} -inline bool AlterTableCmd::recurse() const { - // @@protoc_insertion_point(field_get:pg_query.AlterTableCmd.recurse) - return _internal_recurse(); -} -inline void AlterTableCmd::_internal_set_recurse(bool value) { - - _impl_.recurse_ = value; -} -inline void AlterTableCmd::set_recurse(bool value) { - _internal_set_recurse(value); - // @@protoc_insertion_point(field_set:pg_query.AlterTableCmd.recurse) -} - -// ------------------------------------------------------------------- - -// AlterDomainStmt - -// string subtype = 1 [json_name = "subtype"]; -inline void AlterDomainStmt::clear_subtype() { - _impl_.subtype_.ClearToEmpty(); -} -inline const std::string& AlterDomainStmt::subtype() const { - // @@protoc_insertion_point(field_get:pg_query.AlterDomainStmt.subtype) - return _internal_subtype(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterDomainStmt::set_subtype(ArgT0&& arg0, ArgT... args) { - - _impl_.subtype_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterDomainStmt.subtype) -} -inline std::string* AlterDomainStmt::mutable_subtype() { - std::string* _s = _internal_mutable_subtype(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterDomainStmt.subtype) - return _s; -} -inline const std::string& AlterDomainStmt::_internal_subtype() const { - return _impl_.subtype_.Get(); -} -inline void AlterDomainStmt::_internal_set_subtype(const std::string& value) { - - _impl_.subtype_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterDomainStmt::_internal_mutable_subtype() { - - return _impl_.subtype_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterDomainStmt::release_subtype() { - // @@protoc_insertion_point(field_release:pg_query.AlterDomainStmt.subtype) - return _impl_.subtype_.Release(); -} -inline void AlterDomainStmt::set_allocated_subtype(std::string* subtype) { - if (subtype != nullptr) { - - } else { - - } - _impl_.subtype_.SetAllocated(subtype, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.subtype_.IsDefault()) { - _impl_.subtype_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterDomainStmt.subtype) -} - -// repeated .pg_query.Node type_name = 2 [json_name = "typeName"]; -inline int AlterDomainStmt::_internal_type_name_size() const { - return _impl_.type_name_.size(); -} -inline int AlterDomainStmt::type_name_size() const { - return _internal_type_name_size(); -} -inline void AlterDomainStmt::clear_type_name() { - _impl_.type_name_.Clear(); -} -inline ::pg_query::Node* AlterDomainStmt::mutable_type_name(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterDomainStmt.type_name) - return _impl_.type_name_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterDomainStmt::mutable_type_name() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterDomainStmt.type_name) - return &_impl_.type_name_; -} -inline const ::pg_query::Node& AlterDomainStmt::_internal_type_name(int index) const { - return _impl_.type_name_.Get(index); -} -inline const ::pg_query::Node& AlterDomainStmt::type_name(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterDomainStmt.type_name) - return _internal_type_name(index); -} -inline ::pg_query::Node* AlterDomainStmt::_internal_add_type_name() { - return _impl_.type_name_.Add(); -} -inline ::pg_query::Node* AlterDomainStmt::add_type_name() { - ::pg_query::Node* _add = _internal_add_type_name(); - // @@protoc_insertion_point(field_add:pg_query.AlterDomainStmt.type_name) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterDomainStmt::type_name() const { - // @@protoc_insertion_point(field_list:pg_query.AlterDomainStmt.type_name) - return _impl_.type_name_; -} - -// string name = 3 [json_name = "name"]; -inline void AlterDomainStmt::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& AlterDomainStmt::name() const { - // @@protoc_insertion_point(field_get:pg_query.AlterDomainStmt.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterDomainStmt::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterDomainStmt.name) -} -inline std::string* AlterDomainStmt::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterDomainStmt.name) - return _s; -} -inline const std::string& AlterDomainStmt::_internal_name() const { - return _impl_.name_.Get(); -} -inline void AlterDomainStmt::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterDomainStmt::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterDomainStmt::release_name() { - // @@protoc_insertion_point(field_release:pg_query.AlterDomainStmt.name) - return _impl_.name_.Release(); -} -inline void AlterDomainStmt::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterDomainStmt.name) -} - -// .pg_query.Node def = 4 [json_name = "def"]; -inline bool AlterDomainStmt::_internal_has_def() const { - return this != internal_default_instance() && _impl_.def_ != nullptr; -} -inline bool AlterDomainStmt::has_def() const { - return _internal_has_def(); -} -inline void AlterDomainStmt::clear_def() { - if (GetArenaForAllocation() == nullptr && _impl_.def_ != nullptr) { - delete _impl_.def_; - } - _impl_.def_ = nullptr; -} -inline const ::pg_query::Node& AlterDomainStmt::_internal_def() const { - const ::pg_query::Node* p = _impl_.def_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& AlterDomainStmt::def() const { - // @@protoc_insertion_point(field_get:pg_query.AlterDomainStmt.def) - return _internal_def(); -} -inline void AlterDomainStmt::unsafe_arena_set_allocated_def( - ::pg_query::Node* def) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.def_); - } - _impl_.def_ = def; - if (def) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterDomainStmt.def) -} -inline ::pg_query::Node* AlterDomainStmt::release_def() { - - ::pg_query::Node* temp = _impl_.def_; - _impl_.def_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* AlterDomainStmt::unsafe_arena_release_def() { - // @@protoc_insertion_point(field_release:pg_query.AlterDomainStmt.def) - - ::pg_query::Node* temp = _impl_.def_; - _impl_.def_ = nullptr; - return temp; -} -inline ::pg_query::Node* AlterDomainStmt::_internal_mutable_def() { - - if (_impl_.def_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.def_ = p; - } - return _impl_.def_; -} -inline ::pg_query::Node* AlterDomainStmt::mutable_def() { - ::pg_query::Node* _msg = _internal_mutable_def(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterDomainStmt.def) - return _msg; -} -inline void AlterDomainStmt::set_allocated_def(::pg_query::Node* def) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.def_; - } - if (def) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(def); - if (message_arena != submessage_arena) { - def = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, def, submessage_arena); - } - - } else { - - } - _impl_.def_ = def; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterDomainStmt.def) -} - -// .pg_query.DropBehavior behavior = 5 [json_name = "behavior"]; -inline void AlterDomainStmt::clear_behavior() { - _impl_.behavior_ = 0; -} -inline ::pg_query::DropBehavior AlterDomainStmt::_internal_behavior() const { - return static_cast< ::pg_query::DropBehavior >(_impl_.behavior_); -} -inline ::pg_query::DropBehavior AlterDomainStmt::behavior() const { - // @@protoc_insertion_point(field_get:pg_query.AlterDomainStmt.behavior) - return _internal_behavior(); -} -inline void AlterDomainStmt::_internal_set_behavior(::pg_query::DropBehavior value) { - - _impl_.behavior_ = value; -} -inline void AlterDomainStmt::set_behavior(::pg_query::DropBehavior value) { - _internal_set_behavior(value); - // @@protoc_insertion_point(field_set:pg_query.AlterDomainStmt.behavior) -} - -// bool missing_ok = 6 [json_name = "missing_ok"]; -inline void AlterDomainStmt::clear_missing_ok() { - _impl_.missing_ok_ = false; -} -inline bool AlterDomainStmt::_internal_missing_ok() const { - return _impl_.missing_ok_; -} -inline bool AlterDomainStmt::missing_ok() const { - // @@protoc_insertion_point(field_get:pg_query.AlterDomainStmt.missing_ok) - return _internal_missing_ok(); -} -inline void AlterDomainStmt::_internal_set_missing_ok(bool value) { - - _impl_.missing_ok_ = value; -} -inline void AlterDomainStmt::set_missing_ok(bool value) { - _internal_set_missing_ok(value); - // @@protoc_insertion_point(field_set:pg_query.AlterDomainStmt.missing_ok) -} - -// ------------------------------------------------------------------- - -// SetOperationStmt - -// .pg_query.SetOperation op = 1 [json_name = "op"]; -inline void SetOperationStmt::clear_op() { - _impl_.op_ = 0; -} -inline ::pg_query::SetOperation SetOperationStmt::_internal_op() const { - return static_cast< ::pg_query::SetOperation >(_impl_.op_); -} -inline ::pg_query::SetOperation SetOperationStmt::op() const { - // @@protoc_insertion_point(field_get:pg_query.SetOperationStmt.op) - return _internal_op(); -} -inline void SetOperationStmt::_internal_set_op(::pg_query::SetOperation value) { - - _impl_.op_ = value; -} -inline void SetOperationStmt::set_op(::pg_query::SetOperation value) { - _internal_set_op(value); - // @@protoc_insertion_point(field_set:pg_query.SetOperationStmt.op) -} - -// bool all = 2 [json_name = "all"]; -inline void SetOperationStmt::clear_all() { - _impl_.all_ = false; -} -inline bool SetOperationStmt::_internal_all() const { - return _impl_.all_; -} -inline bool SetOperationStmt::all() const { - // @@protoc_insertion_point(field_get:pg_query.SetOperationStmt.all) - return _internal_all(); -} -inline void SetOperationStmt::_internal_set_all(bool value) { - - _impl_.all_ = value; -} -inline void SetOperationStmt::set_all(bool value) { - _internal_set_all(value); - // @@protoc_insertion_point(field_set:pg_query.SetOperationStmt.all) -} - -// .pg_query.Node larg = 3 [json_name = "larg"]; -inline bool SetOperationStmt::_internal_has_larg() const { - return this != internal_default_instance() && _impl_.larg_ != nullptr; -} -inline bool SetOperationStmt::has_larg() const { - return _internal_has_larg(); -} -inline void SetOperationStmt::clear_larg() { - if (GetArenaForAllocation() == nullptr && _impl_.larg_ != nullptr) { - delete _impl_.larg_; - } - _impl_.larg_ = nullptr; -} -inline const ::pg_query::Node& SetOperationStmt::_internal_larg() const { - const ::pg_query::Node* p = _impl_.larg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& SetOperationStmt::larg() const { - // @@protoc_insertion_point(field_get:pg_query.SetOperationStmt.larg) - return _internal_larg(); -} -inline void SetOperationStmt::unsafe_arena_set_allocated_larg( - ::pg_query::Node* larg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.larg_); - } - _impl_.larg_ = larg; - if (larg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SetOperationStmt.larg) -} -inline ::pg_query::Node* SetOperationStmt::release_larg() { - - ::pg_query::Node* temp = _impl_.larg_; - _impl_.larg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* SetOperationStmt::unsafe_arena_release_larg() { - // @@protoc_insertion_point(field_release:pg_query.SetOperationStmt.larg) - - ::pg_query::Node* temp = _impl_.larg_; - _impl_.larg_ = nullptr; - return temp; -} -inline ::pg_query::Node* SetOperationStmt::_internal_mutable_larg() { - - if (_impl_.larg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.larg_ = p; - } - return _impl_.larg_; -} -inline ::pg_query::Node* SetOperationStmt::mutable_larg() { - ::pg_query::Node* _msg = _internal_mutable_larg(); - // @@protoc_insertion_point(field_mutable:pg_query.SetOperationStmt.larg) - return _msg; -} -inline void SetOperationStmt::set_allocated_larg(::pg_query::Node* larg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.larg_; - } - if (larg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(larg); - if (message_arena != submessage_arena) { - larg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, larg, submessage_arena); - } - - } else { - - } - _impl_.larg_ = larg; - // @@protoc_insertion_point(field_set_allocated:pg_query.SetOperationStmt.larg) -} - -// .pg_query.Node rarg = 4 [json_name = "rarg"]; -inline bool SetOperationStmt::_internal_has_rarg() const { - return this != internal_default_instance() && _impl_.rarg_ != nullptr; -} -inline bool SetOperationStmt::has_rarg() const { - return _internal_has_rarg(); -} -inline void SetOperationStmt::clear_rarg() { - if (GetArenaForAllocation() == nullptr && _impl_.rarg_ != nullptr) { - delete _impl_.rarg_; - } - _impl_.rarg_ = nullptr; -} -inline const ::pg_query::Node& SetOperationStmt::_internal_rarg() const { - const ::pg_query::Node* p = _impl_.rarg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& SetOperationStmt::rarg() const { - // @@protoc_insertion_point(field_get:pg_query.SetOperationStmt.rarg) - return _internal_rarg(); -} -inline void SetOperationStmt::unsafe_arena_set_allocated_rarg( - ::pg_query::Node* rarg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.rarg_); - } - _impl_.rarg_ = rarg; - if (rarg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SetOperationStmt.rarg) -} -inline ::pg_query::Node* SetOperationStmt::release_rarg() { - - ::pg_query::Node* temp = _impl_.rarg_; - _impl_.rarg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* SetOperationStmt::unsafe_arena_release_rarg() { - // @@protoc_insertion_point(field_release:pg_query.SetOperationStmt.rarg) - - ::pg_query::Node* temp = _impl_.rarg_; - _impl_.rarg_ = nullptr; - return temp; -} -inline ::pg_query::Node* SetOperationStmt::_internal_mutable_rarg() { - - if (_impl_.rarg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.rarg_ = p; - } - return _impl_.rarg_; -} -inline ::pg_query::Node* SetOperationStmt::mutable_rarg() { - ::pg_query::Node* _msg = _internal_mutable_rarg(); - // @@protoc_insertion_point(field_mutable:pg_query.SetOperationStmt.rarg) - return _msg; -} -inline void SetOperationStmt::set_allocated_rarg(::pg_query::Node* rarg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.rarg_; - } - if (rarg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(rarg); - if (message_arena != submessage_arena) { - rarg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, rarg, submessage_arena); - } - - } else { - - } - _impl_.rarg_ = rarg; - // @@protoc_insertion_point(field_set_allocated:pg_query.SetOperationStmt.rarg) -} - -// repeated .pg_query.Node col_types = 5 [json_name = "colTypes"]; -inline int SetOperationStmt::_internal_col_types_size() const { - return _impl_.col_types_.size(); -} -inline int SetOperationStmt::col_types_size() const { - return _internal_col_types_size(); -} -inline void SetOperationStmt::clear_col_types() { - _impl_.col_types_.Clear(); -} -inline ::pg_query::Node* SetOperationStmt::mutable_col_types(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.SetOperationStmt.col_types) - return _impl_.col_types_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -SetOperationStmt::mutable_col_types() { - // @@protoc_insertion_point(field_mutable_list:pg_query.SetOperationStmt.col_types) - return &_impl_.col_types_; -} -inline const ::pg_query::Node& SetOperationStmt::_internal_col_types(int index) const { - return _impl_.col_types_.Get(index); -} -inline const ::pg_query::Node& SetOperationStmt::col_types(int index) const { - // @@protoc_insertion_point(field_get:pg_query.SetOperationStmt.col_types) - return _internal_col_types(index); -} -inline ::pg_query::Node* SetOperationStmt::_internal_add_col_types() { - return _impl_.col_types_.Add(); -} -inline ::pg_query::Node* SetOperationStmt::add_col_types() { - ::pg_query::Node* _add = _internal_add_col_types(); - // @@protoc_insertion_point(field_add:pg_query.SetOperationStmt.col_types) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -SetOperationStmt::col_types() const { - // @@protoc_insertion_point(field_list:pg_query.SetOperationStmt.col_types) - return _impl_.col_types_; -} - -// repeated .pg_query.Node col_typmods = 6 [json_name = "colTypmods"]; -inline int SetOperationStmt::_internal_col_typmods_size() const { - return _impl_.col_typmods_.size(); -} -inline int SetOperationStmt::col_typmods_size() const { - return _internal_col_typmods_size(); -} -inline void SetOperationStmt::clear_col_typmods() { - _impl_.col_typmods_.Clear(); -} -inline ::pg_query::Node* SetOperationStmt::mutable_col_typmods(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.SetOperationStmt.col_typmods) - return _impl_.col_typmods_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -SetOperationStmt::mutable_col_typmods() { - // @@protoc_insertion_point(field_mutable_list:pg_query.SetOperationStmt.col_typmods) - return &_impl_.col_typmods_; -} -inline const ::pg_query::Node& SetOperationStmt::_internal_col_typmods(int index) const { - return _impl_.col_typmods_.Get(index); -} -inline const ::pg_query::Node& SetOperationStmt::col_typmods(int index) const { - // @@protoc_insertion_point(field_get:pg_query.SetOperationStmt.col_typmods) - return _internal_col_typmods(index); -} -inline ::pg_query::Node* SetOperationStmt::_internal_add_col_typmods() { - return _impl_.col_typmods_.Add(); -} -inline ::pg_query::Node* SetOperationStmt::add_col_typmods() { - ::pg_query::Node* _add = _internal_add_col_typmods(); - // @@protoc_insertion_point(field_add:pg_query.SetOperationStmt.col_typmods) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -SetOperationStmt::col_typmods() const { - // @@protoc_insertion_point(field_list:pg_query.SetOperationStmt.col_typmods) - return _impl_.col_typmods_; -} - -// repeated .pg_query.Node col_collations = 7 [json_name = "colCollations"]; -inline int SetOperationStmt::_internal_col_collations_size() const { - return _impl_.col_collations_.size(); -} -inline int SetOperationStmt::col_collations_size() const { - return _internal_col_collations_size(); -} -inline void SetOperationStmt::clear_col_collations() { - _impl_.col_collations_.Clear(); -} -inline ::pg_query::Node* SetOperationStmt::mutable_col_collations(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.SetOperationStmt.col_collations) - return _impl_.col_collations_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -SetOperationStmt::mutable_col_collations() { - // @@protoc_insertion_point(field_mutable_list:pg_query.SetOperationStmt.col_collations) - return &_impl_.col_collations_; -} -inline const ::pg_query::Node& SetOperationStmt::_internal_col_collations(int index) const { - return _impl_.col_collations_.Get(index); -} -inline const ::pg_query::Node& SetOperationStmt::col_collations(int index) const { - // @@protoc_insertion_point(field_get:pg_query.SetOperationStmt.col_collations) - return _internal_col_collations(index); -} -inline ::pg_query::Node* SetOperationStmt::_internal_add_col_collations() { - return _impl_.col_collations_.Add(); -} -inline ::pg_query::Node* SetOperationStmt::add_col_collations() { - ::pg_query::Node* _add = _internal_add_col_collations(); - // @@protoc_insertion_point(field_add:pg_query.SetOperationStmt.col_collations) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -SetOperationStmt::col_collations() const { - // @@protoc_insertion_point(field_list:pg_query.SetOperationStmt.col_collations) - return _impl_.col_collations_; -} - -// repeated .pg_query.Node group_clauses = 8 [json_name = "groupClauses"]; -inline int SetOperationStmt::_internal_group_clauses_size() const { - return _impl_.group_clauses_.size(); -} -inline int SetOperationStmt::group_clauses_size() const { - return _internal_group_clauses_size(); -} -inline void SetOperationStmt::clear_group_clauses() { - _impl_.group_clauses_.Clear(); -} -inline ::pg_query::Node* SetOperationStmt::mutable_group_clauses(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.SetOperationStmt.group_clauses) - return _impl_.group_clauses_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -SetOperationStmt::mutable_group_clauses() { - // @@protoc_insertion_point(field_mutable_list:pg_query.SetOperationStmt.group_clauses) - return &_impl_.group_clauses_; -} -inline const ::pg_query::Node& SetOperationStmt::_internal_group_clauses(int index) const { - return _impl_.group_clauses_.Get(index); -} -inline const ::pg_query::Node& SetOperationStmt::group_clauses(int index) const { - // @@protoc_insertion_point(field_get:pg_query.SetOperationStmt.group_clauses) - return _internal_group_clauses(index); -} -inline ::pg_query::Node* SetOperationStmt::_internal_add_group_clauses() { - return _impl_.group_clauses_.Add(); -} -inline ::pg_query::Node* SetOperationStmt::add_group_clauses() { - ::pg_query::Node* _add = _internal_add_group_clauses(); - // @@protoc_insertion_point(field_add:pg_query.SetOperationStmt.group_clauses) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -SetOperationStmt::group_clauses() const { - // @@protoc_insertion_point(field_list:pg_query.SetOperationStmt.group_clauses) - return _impl_.group_clauses_; -} - -// ------------------------------------------------------------------- - -// GrantStmt - -// bool is_grant = 1 [json_name = "is_grant"]; -inline void GrantStmt::clear_is_grant() { - _impl_.is_grant_ = false; -} -inline bool GrantStmt::_internal_is_grant() const { - return _impl_.is_grant_; -} -inline bool GrantStmt::is_grant() const { - // @@protoc_insertion_point(field_get:pg_query.GrantStmt.is_grant) - return _internal_is_grant(); -} -inline void GrantStmt::_internal_set_is_grant(bool value) { - - _impl_.is_grant_ = value; -} -inline void GrantStmt::set_is_grant(bool value) { - _internal_set_is_grant(value); - // @@protoc_insertion_point(field_set:pg_query.GrantStmt.is_grant) -} - -// .pg_query.GrantTargetType targtype = 2 [json_name = "targtype"]; -inline void GrantStmt::clear_targtype() { - _impl_.targtype_ = 0; -} -inline ::pg_query::GrantTargetType GrantStmt::_internal_targtype() const { - return static_cast< ::pg_query::GrantTargetType >(_impl_.targtype_); -} -inline ::pg_query::GrantTargetType GrantStmt::targtype() const { - // @@protoc_insertion_point(field_get:pg_query.GrantStmt.targtype) - return _internal_targtype(); -} -inline void GrantStmt::_internal_set_targtype(::pg_query::GrantTargetType value) { - - _impl_.targtype_ = value; -} -inline void GrantStmt::set_targtype(::pg_query::GrantTargetType value) { - _internal_set_targtype(value); - // @@protoc_insertion_point(field_set:pg_query.GrantStmt.targtype) -} - -// .pg_query.ObjectType objtype = 3 [json_name = "objtype"]; -inline void GrantStmt::clear_objtype() { - _impl_.objtype_ = 0; -} -inline ::pg_query::ObjectType GrantStmt::_internal_objtype() const { - return static_cast< ::pg_query::ObjectType >(_impl_.objtype_); -} -inline ::pg_query::ObjectType GrantStmt::objtype() const { - // @@protoc_insertion_point(field_get:pg_query.GrantStmt.objtype) - return _internal_objtype(); -} -inline void GrantStmt::_internal_set_objtype(::pg_query::ObjectType value) { - - _impl_.objtype_ = value; -} -inline void GrantStmt::set_objtype(::pg_query::ObjectType value) { - _internal_set_objtype(value); - // @@protoc_insertion_point(field_set:pg_query.GrantStmt.objtype) -} - -// repeated .pg_query.Node objects = 4 [json_name = "objects"]; -inline int GrantStmt::_internal_objects_size() const { - return _impl_.objects_.size(); -} -inline int GrantStmt::objects_size() const { - return _internal_objects_size(); -} -inline void GrantStmt::clear_objects() { - _impl_.objects_.Clear(); -} -inline ::pg_query::Node* GrantStmt::mutable_objects(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.GrantStmt.objects) - return _impl_.objects_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -GrantStmt::mutable_objects() { - // @@protoc_insertion_point(field_mutable_list:pg_query.GrantStmt.objects) - return &_impl_.objects_; -} -inline const ::pg_query::Node& GrantStmt::_internal_objects(int index) const { - return _impl_.objects_.Get(index); -} -inline const ::pg_query::Node& GrantStmt::objects(int index) const { - // @@protoc_insertion_point(field_get:pg_query.GrantStmt.objects) - return _internal_objects(index); -} -inline ::pg_query::Node* GrantStmt::_internal_add_objects() { - return _impl_.objects_.Add(); -} -inline ::pg_query::Node* GrantStmt::add_objects() { - ::pg_query::Node* _add = _internal_add_objects(); - // @@protoc_insertion_point(field_add:pg_query.GrantStmt.objects) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -GrantStmt::objects() const { - // @@protoc_insertion_point(field_list:pg_query.GrantStmt.objects) - return _impl_.objects_; -} - -// repeated .pg_query.Node privileges = 5 [json_name = "privileges"]; -inline int GrantStmt::_internal_privileges_size() const { - return _impl_.privileges_.size(); -} -inline int GrantStmt::privileges_size() const { - return _internal_privileges_size(); -} -inline void GrantStmt::clear_privileges() { - _impl_.privileges_.Clear(); -} -inline ::pg_query::Node* GrantStmt::mutable_privileges(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.GrantStmt.privileges) - return _impl_.privileges_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -GrantStmt::mutable_privileges() { - // @@protoc_insertion_point(field_mutable_list:pg_query.GrantStmt.privileges) - return &_impl_.privileges_; -} -inline const ::pg_query::Node& GrantStmt::_internal_privileges(int index) const { - return _impl_.privileges_.Get(index); -} -inline const ::pg_query::Node& GrantStmt::privileges(int index) const { - // @@protoc_insertion_point(field_get:pg_query.GrantStmt.privileges) - return _internal_privileges(index); -} -inline ::pg_query::Node* GrantStmt::_internal_add_privileges() { - return _impl_.privileges_.Add(); -} -inline ::pg_query::Node* GrantStmt::add_privileges() { - ::pg_query::Node* _add = _internal_add_privileges(); - // @@protoc_insertion_point(field_add:pg_query.GrantStmt.privileges) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -GrantStmt::privileges() const { - // @@protoc_insertion_point(field_list:pg_query.GrantStmt.privileges) - return _impl_.privileges_; -} - -// repeated .pg_query.Node grantees = 6 [json_name = "grantees"]; -inline int GrantStmt::_internal_grantees_size() const { - return _impl_.grantees_.size(); -} -inline int GrantStmt::grantees_size() const { - return _internal_grantees_size(); -} -inline void GrantStmt::clear_grantees() { - _impl_.grantees_.Clear(); -} -inline ::pg_query::Node* GrantStmt::mutable_grantees(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.GrantStmt.grantees) - return _impl_.grantees_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -GrantStmt::mutable_grantees() { - // @@protoc_insertion_point(field_mutable_list:pg_query.GrantStmt.grantees) - return &_impl_.grantees_; -} -inline const ::pg_query::Node& GrantStmt::_internal_grantees(int index) const { - return _impl_.grantees_.Get(index); -} -inline const ::pg_query::Node& GrantStmt::grantees(int index) const { - // @@protoc_insertion_point(field_get:pg_query.GrantStmt.grantees) - return _internal_grantees(index); -} -inline ::pg_query::Node* GrantStmt::_internal_add_grantees() { - return _impl_.grantees_.Add(); -} -inline ::pg_query::Node* GrantStmt::add_grantees() { - ::pg_query::Node* _add = _internal_add_grantees(); - // @@protoc_insertion_point(field_add:pg_query.GrantStmt.grantees) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -GrantStmt::grantees() const { - // @@protoc_insertion_point(field_list:pg_query.GrantStmt.grantees) - return _impl_.grantees_; -} - -// bool grant_option = 7 [json_name = "grant_option"]; -inline void GrantStmt::clear_grant_option() { - _impl_.grant_option_ = false; -} -inline bool GrantStmt::_internal_grant_option() const { - return _impl_.grant_option_; -} -inline bool GrantStmt::grant_option() const { - // @@protoc_insertion_point(field_get:pg_query.GrantStmt.grant_option) - return _internal_grant_option(); -} -inline void GrantStmt::_internal_set_grant_option(bool value) { - - _impl_.grant_option_ = value; -} -inline void GrantStmt::set_grant_option(bool value) { - _internal_set_grant_option(value); - // @@protoc_insertion_point(field_set:pg_query.GrantStmt.grant_option) -} - -// .pg_query.RoleSpec grantor = 8 [json_name = "grantor"]; -inline bool GrantStmt::_internal_has_grantor() const { - return this != internal_default_instance() && _impl_.grantor_ != nullptr; -} -inline bool GrantStmt::has_grantor() const { - return _internal_has_grantor(); -} -inline void GrantStmt::clear_grantor() { - if (GetArenaForAllocation() == nullptr && _impl_.grantor_ != nullptr) { - delete _impl_.grantor_; - } - _impl_.grantor_ = nullptr; -} -inline const ::pg_query::RoleSpec& GrantStmt::_internal_grantor() const { - const ::pg_query::RoleSpec* p = _impl_.grantor_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RoleSpec_default_instance_); -} -inline const ::pg_query::RoleSpec& GrantStmt::grantor() const { - // @@protoc_insertion_point(field_get:pg_query.GrantStmt.grantor) - return _internal_grantor(); -} -inline void GrantStmt::unsafe_arena_set_allocated_grantor( - ::pg_query::RoleSpec* grantor) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.grantor_); - } - _impl_.grantor_ = grantor; - if (grantor) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.GrantStmt.grantor) -} -inline ::pg_query::RoleSpec* GrantStmt::release_grantor() { - - ::pg_query::RoleSpec* temp = _impl_.grantor_; - _impl_.grantor_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RoleSpec* GrantStmt::unsafe_arena_release_grantor() { - // @@protoc_insertion_point(field_release:pg_query.GrantStmt.grantor) - - ::pg_query::RoleSpec* temp = _impl_.grantor_; - _impl_.grantor_ = nullptr; - return temp; -} -inline ::pg_query::RoleSpec* GrantStmt::_internal_mutable_grantor() { - - if (_impl_.grantor_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RoleSpec>(GetArenaForAllocation()); - _impl_.grantor_ = p; - } - return _impl_.grantor_; -} -inline ::pg_query::RoleSpec* GrantStmt::mutable_grantor() { - ::pg_query::RoleSpec* _msg = _internal_mutable_grantor(); - // @@protoc_insertion_point(field_mutable:pg_query.GrantStmt.grantor) - return _msg; -} -inline void GrantStmt::set_allocated_grantor(::pg_query::RoleSpec* grantor) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.grantor_; - } - if (grantor) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(grantor); - if (message_arena != submessage_arena) { - grantor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, grantor, submessage_arena); - } - - } else { - - } - _impl_.grantor_ = grantor; - // @@protoc_insertion_point(field_set_allocated:pg_query.GrantStmt.grantor) -} - -// .pg_query.DropBehavior behavior = 9 [json_name = "behavior"]; -inline void GrantStmt::clear_behavior() { - _impl_.behavior_ = 0; -} -inline ::pg_query::DropBehavior GrantStmt::_internal_behavior() const { - return static_cast< ::pg_query::DropBehavior >(_impl_.behavior_); -} -inline ::pg_query::DropBehavior GrantStmt::behavior() const { - // @@protoc_insertion_point(field_get:pg_query.GrantStmt.behavior) - return _internal_behavior(); -} -inline void GrantStmt::_internal_set_behavior(::pg_query::DropBehavior value) { - - _impl_.behavior_ = value; -} -inline void GrantStmt::set_behavior(::pg_query::DropBehavior value) { - _internal_set_behavior(value); - // @@protoc_insertion_point(field_set:pg_query.GrantStmt.behavior) -} - -// ------------------------------------------------------------------- - -// GrantRoleStmt - -// repeated .pg_query.Node granted_roles = 1 [json_name = "granted_roles"]; -inline int GrantRoleStmt::_internal_granted_roles_size() const { - return _impl_.granted_roles_.size(); -} -inline int GrantRoleStmt::granted_roles_size() const { - return _internal_granted_roles_size(); -} -inline void GrantRoleStmt::clear_granted_roles() { - _impl_.granted_roles_.Clear(); -} -inline ::pg_query::Node* GrantRoleStmt::mutable_granted_roles(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.GrantRoleStmt.granted_roles) - return _impl_.granted_roles_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -GrantRoleStmt::mutable_granted_roles() { - // @@protoc_insertion_point(field_mutable_list:pg_query.GrantRoleStmt.granted_roles) - return &_impl_.granted_roles_; -} -inline const ::pg_query::Node& GrantRoleStmt::_internal_granted_roles(int index) const { - return _impl_.granted_roles_.Get(index); -} -inline const ::pg_query::Node& GrantRoleStmt::granted_roles(int index) const { - // @@protoc_insertion_point(field_get:pg_query.GrantRoleStmt.granted_roles) - return _internal_granted_roles(index); -} -inline ::pg_query::Node* GrantRoleStmt::_internal_add_granted_roles() { - return _impl_.granted_roles_.Add(); -} -inline ::pg_query::Node* GrantRoleStmt::add_granted_roles() { - ::pg_query::Node* _add = _internal_add_granted_roles(); - // @@protoc_insertion_point(field_add:pg_query.GrantRoleStmt.granted_roles) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -GrantRoleStmt::granted_roles() const { - // @@protoc_insertion_point(field_list:pg_query.GrantRoleStmt.granted_roles) - return _impl_.granted_roles_; -} - -// repeated .pg_query.Node grantee_roles = 2 [json_name = "grantee_roles"]; -inline int GrantRoleStmt::_internal_grantee_roles_size() const { - return _impl_.grantee_roles_.size(); -} -inline int GrantRoleStmt::grantee_roles_size() const { - return _internal_grantee_roles_size(); -} -inline void GrantRoleStmt::clear_grantee_roles() { - _impl_.grantee_roles_.Clear(); -} -inline ::pg_query::Node* GrantRoleStmt::mutable_grantee_roles(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.GrantRoleStmt.grantee_roles) - return _impl_.grantee_roles_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -GrantRoleStmt::mutable_grantee_roles() { - // @@protoc_insertion_point(field_mutable_list:pg_query.GrantRoleStmt.grantee_roles) - return &_impl_.grantee_roles_; -} -inline const ::pg_query::Node& GrantRoleStmt::_internal_grantee_roles(int index) const { - return _impl_.grantee_roles_.Get(index); -} -inline const ::pg_query::Node& GrantRoleStmt::grantee_roles(int index) const { - // @@protoc_insertion_point(field_get:pg_query.GrantRoleStmt.grantee_roles) - return _internal_grantee_roles(index); -} -inline ::pg_query::Node* GrantRoleStmt::_internal_add_grantee_roles() { - return _impl_.grantee_roles_.Add(); -} -inline ::pg_query::Node* GrantRoleStmt::add_grantee_roles() { - ::pg_query::Node* _add = _internal_add_grantee_roles(); - // @@protoc_insertion_point(field_add:pg_query.GrantRoleStmt.grantee_roles) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -GrantRoleStmt::grantee_roles() const { - // @@protoc_insertion_point(field_list:pg_query.GrantRoleStmt.grantee_roles) - return _impl_.grantee_roles_; -} - -// bool is_grant = 3 [json_name = "is_grant"]; -inline void GrantRoleStmt::clear_is_grant() { - _impl_.is_grant_ = false; -} -inline bool GrantRoleStmt::_internal_is_grant() const { - return _impl_.is_grant_; -} -inline bool GrantRoleStmt::is_grant() const { - // @@protoc_insertion_point(field_get:pg_query.GrantRoleStmt.is_grant) - return _internal_is_grant(); -} -inline void GrantRoleStmt::_internal_set_is_grant(bool value) { - - _impl_.is_grant_ = value; -} -inline void GrantRoleStmt::set_is_grant(bool value) { - _internal_set_is_grant(value); - // @@protoc_insertion_point(field_set:pg_query.GrantRoleStmt.is_grant) -} - -// bool admin_opt = 4 [json_name = "admin_opt"]; -inline void GrantRoleStmt::clear_admin_opt() { - _impl_.admin_opt_ = false; -} -inline bool GrantRoleStmt::_internal_admin_opt() const { - return _impl_.admin_opt_; -} -inline bool GrantRoleStmt::admin_opt() const { - // @@protoc_insertion_point(field_get:pg_query.GrantRoleStmt.admin_opt) - return _internal_admin_opt(); -} -inline void GrantRoleStmt::_internal_set_admin_opt(bool value) { - - _impl_.admin_opt_ = value; -} -inline void GrantRoleStmt::set_admin_opt(bool value) { - _internal_set_admin_opt(value); - // @@protoc_insertion_point(field_set:pg_query.GrantRoleStmt.admin_opt) -} - -// .pg_query.RoleSpec grantor = 5 [json_name = "grantor"]; -inline bool GrantRoleStmt::_internal_has_grantor() const { - return this != internal_default_instance() && _impl_.grantor_ != nullptr; -} -inline bool GrantRoleStmt::has_grantor() const { - return _internal_has_grantor(); -} -inline void GrantRoleStmt::clear_grantor() { - if (GetArenaForAllocation() == nullptr && _impl_.grantor_ != nullptr) { - delete _impl_.grantor_; - } - _impl_.grantor_ = nullptr; -} -inline const ::pg_query::RoleSpec& GrantRoleStmt::_internal_grantor() const { - const ::pg_query::RoleSpec* p = _impl_.grantor_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RoleSpec_default_instance_); -} -inline const ::pg_query::RoleSpec& GrantRoleStmt::grantor() const { - // @@protoc_insertion_point(field_get:pg_query.GrantRoleStmt.grantor) - return _internal_grantor(); -} -inline void GrantRoleStmt::unsafe_arena_set_allocated_grantor( - ::pg_query::RoleSpec* grantor) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.grantor_); - } - _impl_.grantor_ = grantor; - if (grantor) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.GrantRoleStmt.grantor) -} -inline ::pg_query::RoleSpec* GrantRoleStmt::release_grantor() { - - ::pg_query::RoleSpec* temp = _impl_.grantor_; - _impl_.grantor_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RoleSpec* GrantRoleStmt::unsafe_arena_release_grantor() { - // @@protoc_insertion_point(field_release:pg_query.GrantRoleStmt.grantor) - - ::pg_query::RoleSpec* temp = _impl_.grantor_; - _impl_.grantor_ = nullptr; - return temp; -} -inline ::pg_query::RoleSpec* GrantRoleStmt::_internal_mutable_grantor() { - - if (_impl_.grantor_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RoleSpec>(GetArenaForAllocation()); - _impl_.grantor_ = p; - } - return _impl_.grantor_; -} -inline ::pg_query::RoleSpec* GrantRoleStmt::mutable_grantor() { - ::pg_query::RoleSpec* _msg = _internal_mutable_grantor(); - // @@protoc_insertion_point(field_mutable:pg_query.GrantRoleStmt.grantor) - return _msg; -} -inline void GrantRoleStmt::set_allocated_grantor(::pg_query::RoleSpec* grantor) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.grantor_; - } - if (grantor) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(grantor); - if (message_arena != submessage_arena) { - grantor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, grantor, submessage_arena); - } - - } else { - - } - _impl_.grantor_ = grantor; - // @@protoc_insertion_point(field_set_allocated:pg_query.GrantRoleStmt.grantor) -} - -// .pg_query.DropBehavior behavior = 6 [json_name = "behavior"]; -inline void GrantRoleStmt::clear_behavior() { - _impl_.behavior_ = 0; -} -inline ::pg_query::DropBehavior GrantRoleStmt::_internal_behavior() const { - return static_cast< ::pg_query::DropBehavior >(_impl_.behavior_); -} -inline ::pg_query::DropBehavior GrantRoleStmt::behavior() const { - // @@protoc_insertion_point(field_get:pg_query.GrantRoleStmt.behavior) - return _internal_behavior(); -} -inline void GrantRoleStmt::_internal_set_behavior(::pg_query::DropBehavior value) { - - _impl_.behavior_ = value; -} -inline void GrantRoleStmt::set_behavior(::pg_query::DropBehavior value) { - _internal_set_behavior(value); - // @@protoc_insertion_point(field_set:pg_query.GrantRoleStmt.behavior) -} - -// ------------------------------------------------------------------- - -// AlterDefaultPrivilegesStmt - -// repeated .pg_query.Node options = 1 [json_name = "options"]; -inline int AlterDefaultPrivilegesStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int AlterDefaultPrivilegesStmt::options_size() const { - return _internal_options_size(); -} -inline void AlterDefaultPrivilegesStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* AlterDefaultPrivilegesStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterDefaultPrivilegesStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterDefaultPrivilegesStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterDefaultPrivilegesStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& AlterDefaultPrivilegesStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& AlterDefaultPrivilegesStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterDefaultPrivilegesStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* AlterDefaultPrivilegesStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* AlterDefaultPrivilegesStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.AlterDefaultPrivilegesStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterDefaultPrivilegesStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.AlterDefaultPrivilegesStmt.options) - return _impl_.options_; -} - -// .pg_query.GrantStmt action = 2 [json_name = "action"]; -inline bool AlterDefaultPrivilegesStmt::_internal_has_action() const { - return this != internal_default_instance() && _impl_.action_ != nullptr; -} -inline bool AlterDefaultPrivilegesStmt::has_action() const { - return _internal_has_action(); -} -inline void AlterDefaultPrivilegesStmt::clear_action() { - if (GetArenaForAllocation() == nullptr && _impl_.action_ != nullptr) { - delete _impl_.action_; - } - _impl_.action_ = nullptr; -} -inline const ::pg_query::GrantStmt& AlterDefaultPrivilegesStmt::_internal_action() const { - const ::pg_query::GrantStmt* p = _impl_.action_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_GrantStmt_default_instance_); -} -inline const ::pg_query::GrantStmt& AlterDefaultPrivilegesStmt::action() const { - // @@protoc_insertion_point(field_get:pg_query.AlterDefaultPrivilegesStmt.action) - return _internal_action(); -} -inline void AlterDefaultPrivilegesStmt::unsafe_arena_set_allocated_action( - ::pg_query::GrantStmt* action) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_); - } - _impl_.action_ = action; - if (action) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterDefaultPrivilegesStmt.action) -} -inline ::pg_query::GrantStmt* AlterDefaultPrivilegesStmt::release_action() { - - ::pg_query::GrantStmt* temp = _impl_.action_; - _impl_.action_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::GrantStmt* AlterDefaultPrivilegesStmt::unsafe_arena_release_action() { - // @@protoc_insertion_point(field_release:pg_query.AlterDefaultPrivilegesStmt.action) - - ::pg_query::GrantStmt* temp = _impl_.action_; - _impl_.action_ = nullptr; - return temp; -} -inline ::pg_query::GrantStmt* AlterDefaultPrivilegesStmt::_internal_mutable_action() { - - if (_impl_.action_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::GrantStmt>(GetArenaForAllocation()); - _impl_.action_ = p; - } - return _impl_.action_; -} -inline ::pg_query::GrantStmt* AlterDefaultPrivilegesStmt::mutable_action() { - ::pg_query::GrantStmt* _msg = _internal_mutable_action(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterDefaultPrivilegesStmt.action) - return _msg; -} -inline void AlterDefaultPrivilegesStmt::set_allocated_action(::pg_query::GrantStmt* action) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.action_; - } - if (action) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action); - if (message_arena != submessage_arena) { - action = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action, submessage_arena); - } - - } else { - - } - _impl_.action_ = action; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterDefaultPrivilegesStmt.action) -} - -// ------------------------------------------------------------------- - -// ClosePortalStmt - -// string portalname = 1 [json_name = "portalname"]; -inline void ClosePortalStmt::clear_portalname() { - _impl_.portalname_.ClearToEmpty(); -} -inline const std::string& ClosePortalStmt::portalname() const { - // @@protoc_insertion_point(field_get:pg_query.ClosePortalStmt.portalname) - return _internal_portalname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ClosePortalStmt::set_portalname(ArgT0&& arg0, ArgT... args) { - - _impl_.portalname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.ClosePortalStmt.portalname) -} -inline std::string* ClosePortalStmt::mutable_portalname() { - std::string* _s = _internal_mutable_portalname(); - // @@protoc_insertion_point(field_mutable:pg_query.ClosePortalStmt.portalname) - return _s; -} -inline const std::string& ClosePortalStmt::_internal_portalname() const { - return _impl_.portalname_.Get(); -} -inline void ClosePortalStmt::_internal_set_portalname(const std::string& value) { - - _impl_.portalname_.Set(value, GetArenaForAllocation()); -} -inline std::string* ClosePortalStmt::_internal_mutable_portalname() { - - return _impl_.portalname_.Mutable(GetArenaForAllocation()); -} -inline std::string* ClosePortalStmt::release_portalname() { - // @@protoc_insertion_point(field_release:pg_query.ClosePortalStmt.portalname) - return _impl_.portalname_.Release(); -} -inline void ClosePortalStmt::set_allocated_portalname(std::string* portalname) { - if (portalname != nullptr) { - - } else { - - } - _impl_.portalname_.SetAllocated(portalname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.portalname_.IsDefault()) { - _impl_.portalname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.ClosePortalStmt.portalname) -} - -// ------------------------------------------------------------------- - -// ClusterStmt - -// .pg_query.RangeVar relation = 1 [json_name = "relation"]; -inline bool ClusterStmt::_internal_has_relation() const { - return this != internal_default_instance() && _impl_.relation_ != nullptr; -} -inline bool ClusterStmt::has_relation() const { - return _internal_has_relation(); -} -inline void ClusterStmt::clear_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.relation_ != nullptr) { - delete _impl_.relation_; - } - _impl_.relation_ = nullptr; -} -inline const ::pg_query::RangeVar& ClusterStmt::_internal_relation() const { - const ::pg_query::RangeVar* p = _impl_.relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& ClusterStmt::relation() const { - // @@protoc_insertion_point(field_get:pg_query.ClusterStmt.relation) - return _internal_relation(); -} -inline void ClusterStmt::unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.relation_); - } - _impl_.relation_ = relation; - if (relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.ClusterStmt.relation) -} -inline ::pg_query::RangeVar* ClusterStmt::release_relation() { - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* ClusterStmt::unsafe_arena_release_relation() { - // @@protoc_insertion_point(field_release:pg_query.ClusterStmt.relation) - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* ClusterStmt::_internal_mutable_relation() { - - if (_impl_.relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.relation_ = p; - } - return _impl_.relation_; -} -inline ::pg_query::RangeVar* ClusterStmt::mutable_relation() { - ::pg_query::RangeVar* _msg = _internal_mutable_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.ClusterStmt.relation) - return _msg; -} -inline void ClusterStmt::set_allocated_relation(::pg_query::RangeVar* relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.relation_; - } - if (relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(relation); - if (message_arena != submessage_arena) { - relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, relation, submessage_arena); - } - - } else { - - } - _impl_.relation_ = relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.ClusterStmt.relation) -} - -// string indexname = 2 [json_name = "indexname"]; -inline void ClusterStmt::clear_indexname() { - _impl_.indexname_.ClearToEmpty(); -} -inline const std::string& ClusterStmt::indexname() const { - // @@protoc_insertion_point(field_get:pg_query.ClusterStmt.indexname) - return _internal_indexname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ClusterStmt::set_indexname(ArgT0&& arg0, ArgT... args) { - - _impl_.indexname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.ClusterStmt.indexname) -} -inline std::string* ClusterStmt::mutable_indexname() { - std::string* _s = _internal_mutable_indexname(); - // @@protoc_insertion_point(field_mutable:pg_query.ClusterStmt.indexname) - return _s; -} -inline const std::string& ClusterStmt::_internal_indexname() const { - return _impl_.indexname_.Get(); -} -inline void ClusterStmt::_internal_set_indexname(const std::string& value) { - - _impl_.indexname_.Set(value, GetArenaForAllocation()); -} -inline std::string* ClusterStmt::_internal_mutable_indexname() { - - return _impl_.indexname_.Mutable(GetArenaForAllocation()); -} -inline std::string* ClusterStmt::release_indexname() { - // @@protoc_insertion_point(field_release:pg_query.ClusterStmt.indexname) - return _impl_.indexname_.Release(); -} -inline void ClusterStmt::set_allocated_indexname(std::string* indexname) { - if (indexname != nullptr) { - - } else { - - } - _impl_.indexname_.SetAllocated(indexname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.indexname_.IsDefault()) { - _impl_.indexname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.ClusterStmt.indexname) -} - -// repeated .pg_query.Node params = 3 [json_name = "params"]; -inline int ClusterStmt::_internal_params_size() const { - return _impl_.params_.size(); -} -inline int ClusterStmt::params_size() const { - return _internal_params_size(); -} -inline void ClusterStmt::clear_params() { - _impl_.params_.Clear(); -} -inline ::pg_query::Node* ClusterStmt::mutable_params(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.ClusterStmt.params) - return _impl_.params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -ClusterStmt::mutable_params() { - // @@protoc_insertion_point(field_mutable_list:pg_query.ClusterStmt.params) - return &_impl_.params_; -} -inline const ::pg_query::Node& ClusterStmt::_internal_params(int index) const { - return _impl_.params_.Get(index); -} -inline const ::pg_query::Node& ClusterStmt::params(int index) const { - // @@protoc_insertion_point(field_get:pg_query.ClusterStmt.params) - return _internal_params(index); -} -inline ::pg_query::Node* ClusterStmt::_internal_add_params() { - return _impl_.params_.Add(); -} -inline ::pg_query::Node* ClusterStmt::add_params() { - ::pg_query::Node* _add = _internal_add_params(); - // @@protoc_insertion_point(field_add:pg_query.ClusterStmt.params) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -ClusterStmt::params() const { - // @@protoc_insertion_point(field_list:pg_query.ClusterStmt.params) - return _impl_.params_; -} - -// ------------------------------------------------------------------- - -// CopyStmt - -// .pg_query.RangeVar relation = 1 [json_name = "relation"]; -inline bool CopyStmt::_internal_has_relation() const { - return this != internal_default_instance() && _impl_.relation_ != nullptr; -} -inline bool CopyStmt::has_relation() const { - return _internal_has_relation(); -} -inline void CopyStmt::clear_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.relation_ != nullptr) { - delete _impl_.relation_; - } - _impl_.relation_ = nullptr; -} -inline const ::pg_query::RangeVar& CopyStmt::_internal_relation() const { - const ::pg_query::RangeVar* p = _impl_.relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& CopyStmt::relation() const { - // @@protoc_insertion_point(field_get:pg_query.CopyStmt.relation) - return _internal_relation(); -} -inline void CopyStmt::unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.relation_); - } - _impl_.relation_ = relation; - if (relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CopyStmt.relation) -} -inline ::pg_query::RangeVar* CopyStmt::release_relation() { - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* CopyStmt::unsafe_arena_release_relation() { - // @@protoc_insertion_point(field_release:pg_query.CopyStmt.relation) - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* CopyStmt::_internal_mutable_relation() { - - if (_impl_.relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.relation_ = p; - } - return _impl_.relation_; -} -inline ::pg_query::RangeVar* CopyStmt::mutable_relation() { - ::pg_query::RangeVar* _msg = _internal_mutable_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.CopyStmt.relation) - return _msg; -} -inline void CopyStmt::set_allocated_relation(::pg_query::RangeVar* relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.relation_; - } - if (relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(relation); - if (message_arena != submessage_arena) { - relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, relation, submessage_arena); - } - - } else { - - } - _impl_.relation_ = relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.CopyStmt.relation) -} - -// .pg_query.Node query = 2 [json_name = "query"]; -inline bool CopyStmt::_internal_has_query() const { - return this != internal_default_instance() && _impl_.query_ != nullptr; -} -inline bool CopyStmt::has_query() const { - return _internal_has_query(); -} -inline void CopyStmt::clear_query() { - if (GetArenaForAllocation() == nullptr && _impl_.query_ != nullptr) { - delete _impl_.query_; - } - _impl_.query_ = nullptr; -} -inline const ::pg_query::Node& CopyStmt::_internal_query() const { - const ::pg_query::Node* p = _impl_.query_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CopyStmt::query() const { - // @@protoc_insertion_point(field_get:pg_query.CopyStmt.query) - return _internal_query(); -} -inline void CopyStmt::unsafe_arena_set_allocated_query( - ::pg_query::Node* query) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.query_); - } - _impl_.query_ = query; - if (query) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CopyStmt.query) -} -inline ::pg_query::Node* CopyStmt::release_query() { - - ::pg_query::Node* temp = _impl_.query_; - _impl_.query_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CopyStmt::unsafe_arena_release_query() { - // @@protoc_insertion_point(field_release:pg_query.CopyStmt.query) - - ::pg_query::Node* temp = _impl_.query_; - _impl_.query_ = nullptr; - return temp; -} -inline ::pg_query::Node* CopyStmt::_internal_mutable_query() { - - if (_impl_.query_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.query_ = p; - } - return _impl_.query_; -} -inline ::pg_query::Node* CopyStmt::mutable_query() { - ::pg_query::Node* _msg = _internal_mutable_query(); - // @@protoc_insertion_point(field_mutable:pg_query.CopyStmt.query) - return _msg; -} -inline void CopyStmt::set_allocated_query(::pg_query::Node* query) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.query_; - } - if (query) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(query); - if (message_arena != submessage_arena) { - query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, query, submessage_arena); - } - - } else { - - } - _impl_.query_ = query; - // @@protoc_insertion_point(field_set_allocated:pg_query.CopyStmt.query) -} - -// repeated .pg_query.Node attlist = 3 [json_name = "attlist"]; -inline int CopyStmt::_internal_attlist_size() const { - return _impl_.attlist_.size(); -} -inline int CopyStmt::attlist_size() const { - return _internal_attlist_size(); -} -inline void CopyStmt::clear_attlist() { - _impl_.attlist_.Clear(); -} -inline ::pg_query::Node* CopyStmt::mutable_attlist(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CopyStmt.attlist) - return _impl_.attlist_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CopyStmt::mutable_attlist() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CopyStmt.attlist) - return &_impl_.attlist_; -} -inline const ::pg_query::Node& CopyStmt::_internal_attlist(int index) const { - return _impl_.attlist_.Get(index); -} -inline const ::pg_query::Node& CopyStmt::attlist(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CopyStmt.attlist) - return _internal_attlist(index); -} -inline ::pg_query::Node* CopyStmt::_internal_add_attlist() { - return _impl_.attlist_.Add(); -} -inline ::pg_query::Node* CopyStmt::add_attlist() { - ::pg_query::Node* _add = _internal_add_attlist(); - // @@protoc_insertion_point(field_add:pg_query.CopyStmt.attlist) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CopyStmt::attlist() const { - // @@protoc_insertion_point(field_list:pg_query.CopyStmt.attlist) - return _impl_.attlist_; -} - -// bool is_from = 4 [json_name = "is_from"]; -inline void CopyStmt::clear_is_from() { - _impl_.is_from_ = false; -} -inline bool CopyStmt::_internal_is_from() const { - return _impl_.is_from_; -} -inline bool CopyStmt::is_from() const { - // @@protoc_insertion_point(field_get:pg_query.CopyStmt.is_from) - return _internal_is_from(); -} -inline void CopyStmt::_internal_set_is_from(bool value) { - - _impl_.is_from_ = value; -} -inline void CopyStmt::set_is_from(bool value) { - _internal_set_is_from(value); - // @@protoc_insertion_point(field_set:pg_query.CopyStmt.is_from) -} - -// bool is_program = 5 [json_name = "is_program"]; -inline void CopyStmt::clear_is_program() { - _impl_.is_program_ = false; -} -inline bool CopyStmt::_internal_is_program() const { - return _impl_.is_program_; -} -inline bool CopyStmt::is_program() const { - // @@protoc_insertion_point(field_get:pg_query.CopyStmt.is_program) - return _internal_is_program(); -} -inline void CopyStmt::_internal_set_is_program(bool value) { - - _impl_.is_program_ = value; -} -inline void CopyStmt::set_is_program(bool value) { - _internal_set_is_program(value); - // @@protoc_insertion_point(field_set:pg_query.CopyStmt.is_program) -} - -// string filename = 6 [json_name = "filename"]; -inline void CopyStmt::clear_filename() { - _impl_.filename_.ClearToEmpty(); -} -inline const std::string& CopyStmt::filename() const { - // @@protoc_insertion_point(field_get:pg_query.CopyStmt.filename) - return _internal_filename(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CopyStmt::set_filename(ArgT0&& arg0, ArgT... args) { - - _impl_.filename_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CopyStmt.filename) -} -inline std::string* CopyStmt::mutable_filename() { - std::string* _s = _internal_mutable_filename(); - // @@protoc_insertion_point(field_mutable:pg_query.CopyStmt.filename) - return _s; -} -inline const std::string& CopyStmt::_internal_filename() const { - return _impl_.filename_.Get(); -} -inline void CopyStmt::_internal_set_filename(const std::string& value) { - - _impl_.filename_.Set(value, GetArenaForAllocation()); -} -inline std::string* CopyStmt::_internal_mutable_filename() { - - return _impl_.filename_.Mutable(GetArenaForAllocation()); -} -inline std::string* CopyStmt::release_filename() { - // @@protoc_insertion_point(field_release:pg_query.CopyStmt.filename) - return _impl_.filename_.Release(); -} -inline void CopyStmt::set_allocated_filename(std::string* filename) { - if (filename != nullptr) { - - } else { - - } - _impl_.filename_.SetAllocated(filename, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.filename_.IsDefault()) { - _impl_.filename_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CopyStmt.filename) -} - -// repeated .pg_query.Node options = 7 [json_name = "options"]; -inline int CopyStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int CopyStmt::options_size() const { - return _internal_options_size(); -} -inline void CopyStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* CopyStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CopyStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CopyStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CopyStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& CopyStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& CopyStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CopyStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* CopyStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* CopyStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.CopyStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CopyStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.CopyStmt.options) - return _impl_.options_; -} - -// .pg_query.Node where_clause = 8 [json_name = "whereClause"]; -inline bool CopyStmt::_internal_has_where_clause() const { - return this != internal_default_instance() && _impl_.where_clause_ != nullptr; -} -inline bool CopyStmt::has_where_clause() const { - return _internal_has_where_clause(); -} -inline void CopyStmt::clear_where_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.where_clause_ != nullptr) { - delete _impl_.where_clause_; - } - _impl_.where_clause_ = nullptr; -} -inline const ::pg_query::Node& CopyStmt::_internal_where_clause() const { - const ::pg_query::Node* p = _impl_.where_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CopyStmt::where_clause() const { - // @@protoc_insertion_point(field_get:pg_query.CopyStmt.where_clause) - return _internal_where_clause(); -} -inline void CopyStmt::unsafe_arena_set_allocated_where_clause( - ::pg_query::Node* where_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.where_clause_); - } - _impl_.where_clause_ = where_clause; - if (where_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CopyStmt.where_clause) -} -inline ::pg_query::Node* CopyStmt::release_where_clause() { - - ::pg_query::Node* temp = _impl_.where_clause_; - _impl_.where_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CopyStmt::unsafe_arena_release_where_clause() { - // @@protoc_insertion_point(field_release:pg_query.CopyStmt.where_clause) - - ::pg_query::Node* temp = _impl_.where_clause_; - _impl_.where_clause_ = nullptr; - return temp; -} -inline ::pg_query::Node* CopyStmt::_internal_mutable_where_clause() { - - if (_impl_.where_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.where_clause_ = p; - } - return _impl_.where_clause_; -} -inline ::pg_query::Node* CopyStmt::mutable_where_clause() { - ::pg_query::Node* _msg = _internal_mutable_where_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.CopyStmt.where_clause) - return _msg; -} -inline void CopyStmt::set_allocated_where_clause(::pg_query::Node* where_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.where_clause_; - } - if (where_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(where_clause); - if (message_arena != submessage_arena) { - where_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, where_clause, submessage_arena); - } - - } else { - - } - _impl_.where_clause_ = where_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.CopyStmt.where_clause) -} - -// ------------------------------------------------------------------- - -// CreateStmt - -// .pg_query.RangeVar relation = 1 [json_name = "relation"]; -inline bool CreateStmt::_internal_has_relation() const { - return this != internal_default_instance() && _impl_.relation_ != nullptr; -} -inline bool CreateStmt::has_relation() const { - return _internal_has_relation(); -} -inline void CreateStmt::clear_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.relation_ != nullptr) { - delete _impl_.relation_; - } - _impl_.relation_ = nullptr; -} -inline const ::pg_query::RangeVar& CreateStmt::_internal_relation() const { - const ::pg_query::RangeVar* p = _impl_.relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& CreateStmt::relation() const { - // @@protoc_insertion_point(field_get:pg_query.CreateStmt.relation) - return _internal_relation(); -} -inline void CreateStmt::unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.relation_); - } - _impl_.relation_ = relation; - if (relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateStmt.relation) -} -inline ::pg_query::RangeVar* CreateStmt::release_relation() { - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* CreateStmt::unsafe_arena_release_relation() { - // @@protoc_insertion_point(field_release:pg_query.CreateStmt.relation) - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* CreateStmt::_internal_mutable_relation() { - - if (_impl_.relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.relation_ = p; - } - return _impl_.relation_; -} -inline ::pg_query::RangeVar* CreateStmt::mutable_relation() { - ::pg_query::RangeVar* _msg = _internal_mutable_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateStmt.relation) - return _msg; -} -inline void CreateStmt::set_allocated_relation(::pg_query::RangeVar* relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.relation_; - } - if (relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(relation); - if (message_arena != submessage_arena) { - relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, relation, submessage_arena); - } - - } else { - - } - _impl_.relation_ = relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateStmt.relation) -} - -// repeated .pg_query.Node table_elts = 2 [json_name = "tableElts"]; -inline int CreateStmt::_internal_table_elts_size() const { - return _impl_.table_elts_.size(); -} -inline int CreateStmt::table_elts_size() const { - return _internal_table_elts_size(); -} -inline void CreateStmt::clear_table_elts() { - _impl_.table_elts_.Clear(); -} -inline ::pg_query::Node* CreateStmt::mutable_table_elts(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateStmt.table_elts) - return _impl_.table_elts_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateStmt::mutable_table_elts() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateStmt.table_elts) - return &_impl_.table_elts_; -} -inline const ::pg_query::Node& CreateStmt::_internal_table_elts(int index) const { - return _impl_.table_elts_.Get(index); -} -inline const ::pg_query::Node& CreateStmt::table_elts(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateStmt.table_elts) - return _internal_table_elts(index); -} -inline ::pg_query::Node* CreateStmt::_internal_add_table_elts() { - return _impl_.table_elts_.Add(); -} -inline ::pg_query::Node* CreateStmt::add_table_elts() { - ::pg_query::Node* _add = _internal_add_table_elts(); - // @@protoc_insertion_point(field_add:pg_query.CreateStmt.table_elts) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateStmt::table_elts() const { - // @@protoc_insertion_point(field_list:pg_query.CreateStmt.table_elts) - return _impl_.table_elts_; -} - -// repeated .pg_query.Node inh_relations = 3 [json_name = "inhRelations"]; -inline int CreateStmt::_internal_inh_relations_size() const { - return _impl_.inh_relations_.size(); -} -inline int CreateStmt::inh_relations_size() const { - return _internal_inh_relations_size(); -} -inline void CreateStmt::clear_inh_relations() { - _impl_.inh_relations_.Clear(); -} -inline ::pg_query::Node* CreateStmt::mutable_inh_relations(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateStmt.inh_relations) - return _impl_.inh_relations_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateStmt::mutable_inh_relations() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateStmt.inh_relations) - return &_impl_.inh_relations_; -} -inline const ::pg_query::Node& CreateStmt::_internal_inh_relations(int index) const { - return _impl_.inh_relations_.Get(index); -} -inline const ::pg_query::Node& CreateStmt::inh_relations(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateStmt.inh_relations) - return _internal_inh_relations(index); -} -inline ::pg_query::Node* CreateStmt::_internal_add_inh_relations() { - return _impl_.inh_relations_.Add(); -} -inline ::pg_query::Node* CreateStmt::add_inh_relations() { - ::pg_query::Node* _add = _internal_add_inh_relations(); - // @@protoc_insertion_point(field_add:pg_query.CreateStmt.inh_relations) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateStmt::inh_relations() const { - // @@protoc_insertion_point(field_list:pg_query.CreateStmt.inh_relations) - return _impl_.inh_relations_; -} - -// .pg_query.PartitionBoundSpec partbound = 4 [json_name = "partbound"]; -inline bool CreateStmt::_internal_has_partbound() const { - return this != internal_default_instance() && _impl_.partbound_ != nullptr; -} -inline bool CreateStmt::has_partbound() const { - return _internal_has_partbound(); -} -inline void CreateStmt::clear_partbound() { - if (GetArenaForAllocation() == nullptr && _impl_.partbound_ != nullptr) { - delete _impl_.partbound_; - } - _impl_.partbound_ = nullptr; -} -inline const ::pg_query::PartitionBoundSpec& CreateStmt::_internal_partbound() const { - const ::pg_query::PartitionBoundSpec* p = _impl_.partbound_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_PartitionBoundSpec_default_instance_); -} -inline const ::pg_query::PartitionBoundSpec& CreateStmt::partbound() const { - // @@protoc_insertion_point(field_get:pg_query.CreateStmt.partbound) - return _internal_partbound(); -} -inline void CreateStmt::unsafe_arena_set_allocated_partbound( - ::pg_query::PartitionBoundSpec* partbound) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partbound_); - } - _impl_.partbound_ = partbound; - if (partbound) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateStmt.partbound) -} -inline ::pg_query::PartitionBoundSpec* CreateStmt::release_partbound() { - - ::pg_query::PartitionBoundSpec* temp = _impl_.partbound_; - _impl_.partbound_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::PartitionBoundSpec* CreateStmt::unsafe_arena_release_partbound() { - // @@protoc_insertion_point(field_release:pg_query.CreateStmt.partbound) - - ::pg_query::PartitionBoundSpec* temp = _impl_.partbound_; - _impl_.partbound_ = nullptr; - return temp; -} -inline ::pg_query::PartitionBoundSpec* CreateStmt::_internal_mutable_partbound() { - - if (_impl_.partbound_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::PartitionBoundSpec>(GetArenaForAllocation()); - _impl_.partbound_ = p; - } - return _impl_.partbound_; -} -inline ::pg_query::PartitionBoundSpec* CreateStmt::mutable_partbound() { - ::pg_query::PartitionBoundSpec* _msg = _internal_mutable_partbound(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateStmt.partbound) - return _msg; -} -inline void CreateStmt::set_allocated_partbound(::pg_query::PartitionBoundSpec* partbound) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.partbound_; - } - if (partbound) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(partbound); - if (message_arena != submessage_arena) { - partbound = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, partbound, submessage_arena); - } - - } else { - - } - _impl_.partbound_ = partbound; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateStmt.partbound) -} - -// .pg_query.PartitionSpec partspec = 5 [json_name = "partspec"]; -inline bool CreateStmt::_internal_has_partspec() const { - return this != internal_default_instance() && _impl_.partspec_ != nullptr; -} -inline bool CreateStmt::has_partspec() const { - return _internal_has_partspec(); -} -inline void CreateStmt::clear_partspec() { - if (GetArenaForAllocation() == nullptr && _impl_.partspec_ != nullptr) { - delete _impl_.partspec_; - } - _impl_.partspec_ = nullptr; -} -inline const ::pg_query::PartitionSpec& CreateStmt::_internal_partspec() const { - const ::pg_query::PartitionSpec* p = _impl_.partspec_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_PartitionSpec_default_instance_); -} -inline const ::pg_query::PartitionSpec& CreateStmt::partspec() const { - // @@protoc_insertion_point(field_get:pg_query.CreateStmt.partspec) - return _internal_partspec(); -} -inline void CreateStmt::unsafe_arena_set_allocated_partspec( - ::pg_query::PartitionSpec* partspec) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.partspec_); - } - _impl_.partspec_ = partspec; - if (partspec) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateStmt.partspec) -} -inline ::pg_query::PartitionSpec* CreateStmt::release_partspec() { - - ::pg_query::PartitionSpec* temp = _impl_.partspec_; - _impl_.partspec_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::PartitionSpec* CreateStmt::unsafe_arena_release_partspec() { - // @@protoc_insertion_point(field_release:pg_query.CreateStmt.partspec) - - ::pg_query::PartitionSpec* temp = _impl_.partspec_; - _impl_.partspec_ = nullptr; - return temp; -} -inline ::pg_query::PartitionSpec* CreateStmt::_internal_mutable_partspec() { - - if (_impl_.partspec_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::PartitionSpec>(GetArenaForAllocation()); - _impl_.partspec_ = p; - } - return _impl_.partspec_; -} -inline ::pg_query::PartitionSpec* CreateStmt::mutable_partspec() { - ::pg_query::PartitionSpec* _msg = _internal_mutable_partspec(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateStmt.partspec) - return _msg; -} -inline void CreateStmt::set_allocated_partspec(::pg_query::PartitionSpec* partspec) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.partspec_; - } - if (partspec) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(partspec); - if (message_arena != submessage_arena) { - partspec = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, partspec, submessage_arena); - } - - } else { - - } - _impl_.partspec_ = partspec; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateStmt.partspec) -} - -// .pg_query.TypeName of_typename = 6 [json_name = "ofTypename"]; -inline bool CreateStmt::_internal_has_of_typename() const { - return this != internal_default_instance() && _impl_.of_typename_ != nullptr; -} -inline bool CreateStmt::has_of_typename() const { - return _internal_has_of_typename(); -} -inline void CreateStmt::clear_of_typename() { - if (GetArenaForAllocation() == nullptr && _impl_.of_typename_ != nullptr) { - delete _impl_.of_typename_; - } - _impl_.of_typename_ = nullptr; -} -inline const ::pg_query::TypeName& CreateStmt::_internal_of_typename() const { - const ::pg_query::TypeName* p = _impl_.of_typename_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_TypeName_default_instance_); -} -inline const ::pg_query::TypeName& CreateStmt::of_typename() const { - // @@protoc_insertion_point(field_get:pg_query.CreateStmt.of_typename) - return _internal_of_typename(); -} -inline void CreateStmt::unsafe_arena_set_allocated_of_typename( - ::pg_query::TypeName* of_typename) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.of_typename_); - } - _impl_.of_typename_ = of_typename; - if (of_typename) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateStmt.of_typename) -} -inline ::pg_query::TypeName* CreateStmt::release_of_typename() { - - ::pg_query::TypeName* temp = _impl_.of_typename_; - _impl_.of_typename_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::TypeName* CreateStmt::unsafe_arena_release_of_typename() { - // @@protoc_insertion_point(field_release:pg_query.CreateStmt.of_typename) - - ::pg_query::TypeName* temp = _impl_.of_typename_; - _impl_.of_typename_ = nullptr; - return temp; -} -inline ::pg_query::TypeName* CreateStmt::_internal_mutable_of_typename() { - - if (_impl_.of_typename_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::TypeName>(GetArenaForAllocation()); - _impl_.of_typename_ = p; - } - return _impl_.of_typename_; -} -inline ::pg_query::TypeName* CreateStmt::mutable_of_typename() { - ::pg_query::TypeName* _msg = _internal_mutable_of_typename(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateStmt.of_typename) - return _msg; -} -inline void CreateStmt::set_allocated_of_typename(::pg_query::TypeName* of_typename) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.of_typename_; - } - if (of_typename) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(of_typename); - if (message_arena != submessage_arena) { - of_typename = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, of_typename, submessage_arena); - } - - } else { - - } - _impl_.of_typename_ = of_typename; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateStmt.of_typename) -} - -// repeated .pg_query.Node constraints = 7 [json_name = "constraints"]; -inline int CreateStmt::_internal_constraints_size() const { - return _impl_.constraints_.size(); -} -inline int CreateStmt::constraints_size() const { - return _internal_constraints_size(); -} -inline void CreateStmt::clear_constraints() { - _impl_.constraints_.Clear(); -} -inline ::pg_query::Node* CreateStmt::mutable_constraints(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateStmt.constraints) - return _impl_.constraints_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateStmt::mutable_constraints() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateStmt.constraints) - return &_impl_.constraints_; -} -inline const ::pg_query::Node& CreateStmt::_internal_constraints(int index) const { - return _impl_.constraints_.Get(index); -} -inline const ::pg_query::Node& CreateStmt::constraints(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateStmt.constraints) - return _internal_constraints(index); -} -inline ::pg_query::Node* CreateStmt::_internal_add_constraints() { - return _impl_.constraints_.Add(); -} -inline ::pg_query::Node* CreateStmt::add_constraints() { - ::pg_query::Node* _add = _internal_add_constraints(); - // @@protoc_insertion_point(field_add:pg_query.CreateStmt.constraints) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateStmt::constraints() const { - // @@protoc_insertion_point(field_list:pg_query.CreateStmt.constraints) - return _impl_.constraints_; -} - -// repeated .pg_query.Node options = 8 [json_name = "options"]; -inline int CreateStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int CreateStmt::options_size() const { - return _internal_options_size(); -} -inline void CreateStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* CreateStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& CreateStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& CreateStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* CreateStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* CreateStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.CreateStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.CreateStmt.options) - return _impl_.options_; -} - -// .pg_query.OnCommitAction oncommit = 9 [json_name = "oncommit"]; -inline void CreateStmt::clear_oncommit() { - _impl_.oncommit_ = 0; -} -inline ::pg_query::OnCommitAction CreateStmt::_internal_oncommit() const { - return static_cast< ::pg_query::OnCommitAction >(_impl_.oncommit_); -} -inline ::pg_query::OnCommitAction CreateStmt::oncommit() const { - // @@protoc_insertion_point(field_get:pg_query.CreateStmt.oncommit) - return _internal_oncommit(); -} -inline void CreateStmt::_internal_set_oncommit(::pg_query::OnCommitAction value) { - - _impl_.oncommit_ = value; -} -inline void CreateStmt::set_oncommit(::pg_query::OnCommitAction value) { - _internal_set_oncommit(value); - // @@protoc_insertion_point(field_set:pg_query.CreateStmt.oncommit) -} - -// string tablespacename = 10 [json_name = "tablespacename"]; -inline void CreateStmt::clear_tablespacename() { - _impl_.tablespacename_.ClearToEmpty(); -} -inline const std::string& CreateStmt::tablespacename() const { - // @@protoc_insertion_point(field_get:pg_query.CreateStmt.tablespacename) - return _internal_tablespacename(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateStmt::set_tablespacename(ArgT0&& arg0, ArgT... args) { - - _impl_.tablespacename_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateStmt.tablespacename) -} -inline std::string* CreateStmt::mutable_tablespacename() { - std::string* _s = _internal_mutable_tablespacename(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateStmt.tablespacename) - return _s; -} -inline const std::string& CreateStmt::_internal_tablespacename() const { - return _impl_.tablespacename_.Get(); -} -inline void CreateStmt::_internal_set_tablespacename(const std::string& value) { - - _impl_.tablespacename_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateStmt::_internal_mutable_tablespacename() { - - return _impl_.tablespacename_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateStmt::release_tablespacename() { - // @@protoc_insertion_point(field_release:pg_query.CreateStmt.tablespacename) - return _impl_.tablespacename_.Release(); -} -inline void CreateStmt::set_allocated_tablespacename(std::string* tablespacename) { - if (tablespacename != nullptr) { - - } else { - - } - _impl_.tablespacename_.SetAllocated(tablespacename, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.tablespacename_.IsDefault()) { - _impl_.tablespacename_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateStmt.tablespacename) -} - -// string access_method = 11 [json_name = "accessMethod"]; -inline void CreateStmt::clear_access_method() { - _impl_.access_method_.ClearToEmpty(); -} -inline const std::string& CreateStmt::access_method() const { - // @@protoc_insertion_point(field_get:pg_query.CreateStmt.access_method) - return _internal_access_method(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateStmt::set_access_method(ArgT0&& arg0, ArgT... args) { - - _impl_.access_method_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateStmt.access_method) -} -inline std::string* CreateStmt::mutable_access_method() { - std::string* _s = _internal_mutable_access_method(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateStmt.access_method) - return _s; -} -inline const std::string& CreateStmt::_internal_access_method() const { - return _impl_.access_method_.Get(); -} -inline void CreateStmt::_internal_set_access_method(const std::string& value) { - - _impl_.access_method_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateStmt::_internal_mutable_access_method() { - - return _impl_.access_method_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateStmt::release_access_method() { - // @@protoc_insertion_point(field_release:pg_query.CreateStmt.access_method) - return _impl_.access_method_.Release(); -} -inline void CreateStmt::set_allocated_access_method(std::string* access_method) { - if (access_method != nullptr) { - - } else { - - } - _impl_.access_method_.SetAllocated(access_method, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.access_method_.IsDefault()) { - _impl_.access_method_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateStmt.access_method) -} - -// bool if_not_exists = 12 [json_name = "if_not_exists"]; -inline void CreateStmt::clear_if_not_exists() { - _impl_.if_not_exists_ = false; -} -inline bool CreateStmt::_internal_if_not_exists() const { - return _impl_.if_not_exists_; -} -inline bool CreateStmt::if_not_exists() const { - // @@protoc_insertion_point(field_get:pg_query.CreateStmt.if_not_exists) - return _internal_if_not_exists(); -} -inline void CreateStmt::_internal_set_if_not_exists(bool value) { - - _impl_.if_not_exists_ = value; -} -inline void CreateStmt::set_if_not_exists(bool value) { - _internal_set_if_not_exists(value); - // @@protoc_insertion_point(field_set:pg_query.CreateStmt.if_not_exists) -} - -// ------------------------------------------------------------------- - -// DefineStmt - -// .pg_query.ObjectType kind = 1 [json_name = "kind"]; -inline void DefineStmt::clear_kind() { - _impl_.kind_ = 0; -} -inline ::pg_query::ObjectType DefineStmt::_internal_kind() const { - return static_cast< ::pg_query::ObjectType >(_impl_.kind_); -} -inline ::pg_query::ObjectType DefineStmt::kind() const { - // @@protoc_insertion_point(field_get:pg_query.DefineStmt.kind) - return _internal_kind(); -} -inline void DefineStmt::_internal_set_kind(::pg_query::ObjectType value) { - - _impl_.kind_ = value; -} -inline void DefineStmt::set_kind(::pg_query::ObjectType value) { - _internal_set_kind(value); - // @@protoc_insertion_point(field_set:pg_query.DefineStmt.kind) -} - -// bool oldstyle = 2 [json_name = "oldstyle"]; -inline void DefineStmt::clear_oldstyle() { - _impl_.oldstyle_ = false; -} -inline bool DefineStmt::_internal_oldstyle() const { - return _impl_.oldstyle_; -} -inline bool DefineStmt::oldstyle() const { - // @@protoc_insertion_point(field_get:pg_query.DefineStmt.oldstyle) - return _internal_oldstyle(); -} -inline void DefineStmt::_internal_set_oldstyle(bool value) { - - _impl_.oldstyle_ = value; -} -inline void DefineStmt::set_oldstyle(bool value) { - _internal_set_oldstyle(value); - // @@protoc_insertion_point(field_set:pg_query.DefineStmt.oldstyle) -} - -// repeated .pg_query.Node defnames = 3 [json_name = "defnames"]; -inline int DefineStmt::_internal_defnames_size() const { - return _impl_.defnames_.size(); -} -inline int DefineStmt::defnames_size() const { - return _internal_defnames_size(); -} -inline void DefineStmt::clear_defnames() { - _impl_.defnames_.Clear(); -} -inline ::pg_query::Node* DefineStmt::mutable_defnames(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.DefineStmt.defnames) - return _impl_.defnames_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -DefineStmt::mutable_defnames() { - // @@protoc_insertion_point(field_mutable_list:pg_query.DefineStmt.defnames) - return &_impl_.defnames_; -} -inline const ::pg_query::Node& DefineStmt::_internal_defnames(int index) const { - return _impl_.defnames_.Get(index); -} -inline const ::pg_query::Node& DefineStmt::defnames(int index) const { - // @@protoc_insertion_point(field_get:pg_query.DefineStmt.defnames) - return _internal_defnames(index); -} -inline ::pg_query::Node* DefineStmt::_internal_add_defnames() { - return _impl_.defnames_.Add(); -} -inline ::pg_query::Node* DefineStmt::add_defnames() { - ::pg_query::Node* _add = _internal_add_defnames(); - // @@protoc_insertion_point(field_add:pg_query.DefineStmt.defnames) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -DefineStmt::defnames() const { - // @@protoc_insertion_point(field_list:pg_query.DefineStmt.defnames) - return _impl_.defnames_; -} - -// repeated .pg_query.Node args = 4 [json_name = "args"]; -inline int DefineStmt::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int DefineStmt::args_size() const { - return _internal_args_size(); -} -inline void DefineStmt::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* DefineStmt::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.DefineStmt.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -DefineStmt::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.DefineStmt.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& DefineStmt::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& DefineStmt::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.DefineStmt.args) - return _internal_args(index); -} -inline ::pg_query::Node* DefineStmt::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* DefineStmt::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.DefineStmt.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -DefineStmt::args() const { - // @@protoc_insertion_point(field_list:pg_query.DefineStmt.args) - return _impl_.args_; -} - -// repeated .pg_query.Node definition = 5 [json_name = "definition"]; -inline int DefineStmt::_internal_definition_size() const { - return _impl_.definition_.size(); -} -inline int DefineStmt::definition_size() const { - return _internal_definition_size(); -} -inline void DefineStmt::clear_definition() { - _impl_.definition_.Clear(); -} -inline ::pg_query::Node* DefineStmt::mutable_definition(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.DefineStmt.definition) - return _impl_.definition_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -DefineStmt::mutable_definition() { - // @@protoc_insertion_point(field_mutable_list:pg_query.DefineStmt.definition) - return &_impl_.definition_; -} -inline const ::pg_query::Node& DefineStmt::_internal_definition(int index) const { - return _impl_.definition_.Get(index); -} -inline const ::pg_query::Node& DefineStmt::definition(int index) const { - // @@protoc_insertion_point(field_get:pg_query.DefineStmt.definition) - return _internal_definition(index); -} -inline ::pg_query::Node* DefineStmt::_internal_add_definition() { - return _impl_.definition_.Add(); -} -inline ::pg_query::Node* DefineStmt::add_definition() { - ::pg_query::Node* _add = _internal_add_definition(); - // @@protoc_insertion_point(field_add:pg_query.DefineStmt.definition) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -DefineStmt::definition() const { - // @@protoc_insertion_point(field_list:pg_query.DefineStmt.definition) - return _impl_.definition_; -} - -// bool if_not_exists = 6 [json_name = "if_not_exists"]; -inline void DefineStmt::clear_if_not_exists() { - _impl_.if_not_exists_ = false; -} -inline bool DefineStmt::_internal_if_not_exists() const { - return _impl_.if_not_exists_; -} -inline bool DefineStmt::if_not_exists() const { - // @@protoc_insertion_point(field_get:pg_query.DefineStmt.if_not_exists) - return _internal_if_not_exists(); -} -inline void DefineStmt::_internal_set_if_not_exists(bool value) { - - _impl_.if_not_exists_ = value; -} -inline void DefineStmt::set_if_not_exists(bool value) { - _internal_set_if_not_exists(value); - // @@protoc_insertion_point(field_set:pg_query.DefineStmt.if_not_exists) -} - -// bool replace = 7 [json_name = "replace"]; -inline void DefineStmt::clear_replace() { - _impl_.replace_ = false; -} -inline bool DefineStmt::_internal_replace() const { - return _impl_.replace_; -} -inline bool DefineStmt::replace() const { - // @@protoc_insertion_point(field_get:pg_query.DefineStmt.replace) - return _internal_replace(); -} -inline void DefineStmt::_internal_set_replace(bool value) { - - _impl_.replace_ = value; -} -inline void DefineStmt::set_replace(bool value) { - _internal_set_replace(value); - // @@protoc_insertion_point(field_set:pg_query.DefineStmt.replace) -} - -// ------------------------------------------------------------------- - -// DropStmt - -// repeated .pg_query.Node objects = 1 [json_name = "objects"]; -inline int DropStmt::_internal_objects_size() const { - return _impl_.objects_.size(); -} -inline int DropStmt::objects_size() const { - return _internal_objects_size(); -} -inline void DropStmt::clear_objects() { - _impl_.objects_.Clear(); -} -inline ::pg_query::Node* DropStmt::mutable_objects(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.DropStmt.objects) - return _impl_.objects_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -DropStmt::mutable_objects() { - // @@protoc_insertion_point(field_mutable_list:pg_query.DropStmt.objects) - return &_impl_.objects_; -} -inline const ::pg_query::Node& DropStmt::_internal_objects(int index) const { - return _impl_.objects_.Get(index); -} -inline const ::pg_query::Node& DropStmt::objects(int index) const { - // @@protoc_insertion_point(field_get:pg_query.DropStmt.objects) - return _internal_objects(index); -} -inline ::pg_query::Node* DropStmt::_internal_add_objects() { - return _impl_.objects_.Add(); -} -inline ::pg_query::Node* DropStmt::add_objects() { - ::pg_query::Node* _add = _internal_add_objects(); - // @@protoc_insertion_point(field_add:pg_query.DropStmt.objects) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -DropStmt::objects() const { - // @@protoc_insertion_point(field_list:pg_query.DropStmt.objects) - return _impl_.objects_; -} - -// .pg_query.ObjectType remove_type = 2 [json_name = "removeType"]; -inline void DropStmt::clear_remove_type() { - _impl_.remove_type_ = 0; -} -inline ::pg_query::ObjectType DropStmt::_internal_remove_type() const { - return static_cast< ::pg_query::ObjectType >(_impl_.remove_type_); -} -inline ::pg_query::ObjectType DropStmt::remove_type() const { - // @@protoc_insertion_point(field_get:pg_query.DropStmt.remove_type) - return _internal_remove_type(); -} -inline void DropStmt::_internal_set_remove_type(::pg_query::ObjectType value) { - - _impl_.remove_type_ = value; -} -inline void DropStmt::set_remove_type(::pg_query::ObjectType value) { - _internal_set_remove_type(value); - // @@protoc_insertion_point(field_set:pg_query.DropStmt.remove_type) -} - -// .pg_query.DropBehavior behavior = 3 [json_name = "behavior"]; -inline void DropStmt::clear_behavior() { - _impl_.behavior_ = 0; -} -inline ::pg_query::DropBehavior DropStmt::_internal_behavior() const { - return static_cast< ::pg_query::DropBehavior >(_impl_.behavior_); -} -inline ::pg_query::DropBehavior DropStmt::behavior() const { - // @@protoc_insertion_point(field_get:pg_query.DropStmt.behavior) - return _internal_behavior(); -} -inline void DropStmt::_internal_set_behavior(::pg_query::DropBehavior value) { - - _impl_.behavior_ = value; -} -inline void DropStmt::set_behavior(::pg_query::DropBehavior value) { - _internal_set_behavior(value); - // @@protoc_insertion_point(field_set:pg_query.DropStmt.behavior) -} - -// bool missing_ok = 4 [json_name = "missing_ok"]; -inline void DropStmt::clear_missing_ok() { - _impl_.missing_ok_ = false; -} -inline bool DropStmt::_internal_missing_ok() const { - return _impl_.missing_ok_; -} -inline bool DropStmt::missing_ok() const { - // @@protoc_insertion_point(field_get:pg_query.DropStmt.missing_ok) - return _internal_missing_ok(); -} -inline void DropStmt::_internal_set_missing_ok(bool value) { - - _impl_.missing_ok_ = value; -} -inline void DropStmt::set_missing_ok(bool value) { - _internal_set_missing_ok(value); - // @@protoc_insertion_point(field_set:pg_query.DropStmt.missing_ok) -} - -// bool concurrent = 5 [json_name = "concurrent"]; -inline void DropStmt::clear_concurrent() { - _impl_.concurrent_ = false; -} -inline bool DropStmt::_internal_concurrent() const { - return _impl_.concurrent_; -} -inline bool DropStmt::concurrent() const { - // @@protoc_insertion_point(field_get:pg_query.DropStmt.concurrent) - return _internal_concurrent(); -} -inline void DropStmt::_internal_set_concurrent(bool value) { - - _impl_.concurrent_ = value; -} -inline void DropStmt::set_concurrent(bool value) { - _internal_set_concurrent(value); - // @@protoc_insertion_point(field_set:pg_query.DropStmt.concurrent) -} - -// ------------------------------------------------------------------- - -// TruncateStmt - -// repeated .pg_query.Node relations = 1 [json_name = "relations"]; -inline int TruncateStmt::_internal_relations_size() const { - return _impl_.relations_.size(); -} -inline int TruncateStmt::relations_size() const { - return _internal_relations_size(); -} -inline void TruncateStmt::clear_relations() { - _impl_.relations_.Clear(); -} -inline ::pg_query::Node* TruncateStmt::mutable_relations(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.TruncateStmt.relations) - return _impl_.relations_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -TruncateStmt::mutable_relations() { - // @@protoc_insertion_point(field_mutable_list:pg_query.TruncateStmt.relations) - return &_impl_.relations_; -} -inline const ::pg_query::Node& TruncateStmt::_internal_relations(int index) const { - return _impl_.relations_.Get(index); -} -inline const ::pg_query::Node& TruncateStmt::relations(int index) const { - // @@protoc_insertion_point(field_get:pg_query.TruncateStmt.relations) - return _internal_relations(index); -} -inline ::pg_query::Node* TruncateStmt::_internal_add_relations() { - return _impl_.relations_.Add(); -} -inline ::pg_query::Node* TruncateStmt::add_relations() { - ::pg_query::Node* _add = _internal_add_relations(); - // @@protoc_insertion_point(field_add:pg_query.TruncateStmt.relations) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -TruncateStmt::relations() const { - // @@protoc_insertion_point(field_list:pg_query.TruncateStmt.relations) - return _impl_.relations_; -} - -// bool restart_seqs = 2 [json_name = "restart_seqs"]; -inline void TruncateStmt::clear_restart_seqs() { - _impl_.restart_seqs_ = false; -} -inline bool TruncateStmt::_internal_restart_seqs() const { - return _impl_.restart_seqs_; -} -inline bool TruncateStmt::restart_seqs() const { - // @@protoc_insertion_point(field_get:pg_query.TruncateStmt.restart_seqs) - return _internal_restart_seqs(); -} -inline void TruncateStmt::_internal_set_restart_seqs(bool value) { - - _impl_.restart_seqs_ = value; -} -inline void TruncateStmt::set_restart_seqs(bool value) { - _internal_set_restart_seqs(value); - // @@protoc_insertion_point(field_set:pg_query.TruncateStmt.restart_seqs) -} - -// .pg_query.DropBehavior behavior = 3 [json_name = "behavior"]; -inline void TruncateStmt::clear_behavior() { - _impl_.behavior_ = 0; -} -inline ::pg_query::DropBehavior TruncateStmt::_internal_behavior() const { - return static_cast< ::pg_query::DropBehavior >(_impl_.behavior_); -} -inline ::pg_query::DropBehavior TruncateStmt::behavior() const { - // @@protoc_insertion_point(field_get:pg_query.TruncateStmt.behavior) - return _internal_behavior(); -} -inline void TruncateStmt::_internal_set_behavior(::pg_query::DropBehavior value) { - - _impl_.behavior_ = value; -} -inline void TruncateStmt::set_behavior(::pg_query::DropBehavior value) { - _internal_set_behavior(value); - // @@protoc_insertion_point(field_set:pg_query.TruncateStmt.behavior) -} - -// ------------------------------------------------------------------- - -// CommentStmt - -// .pg_query.ObjectType objtype = 1 [json_name = "objtype"]; -inline void CommentStmt::clear_objtype() { - _impl_.objtype_ = 0; -} -inline ::pg_query::ObjectType CommentStmt::_internal_objtype() const { - return static_cast< ::pg_query::ObjectType >(_impl_.objtype_); -} -inline ::pg_query::ObjectType CommentStmt::objtype() const { - // @@protoc_insertion_point(field_get:pg_query.CommentStmt.objtype) - return _internal_objtype(); -} -inline void CommentStmt::_internal_set_objtype(::pg_query::ObjectType value) { - - _impl_.objtype_ = value; -} -inline void CommentStmt::set_objtype(::pg_query::ObjectType value) { - _internal_set_objtype(value); - // @@protoc_insertion_point(field_set:pg_query.CommentStmt.objtype) -} - -// .pg_query.Node object = 2 [json_name = "object"]; -inline bool CommentStmt::_internal_has_object() const { - return this != internal_default_instance() && _impl_.object_ != nullptr; -} -inline bool CommentStmt::has_object() const { - return _internal_has_object(); -} -inline void CommentStmt::clear_object() { - if (GetArenaForAllocation() == nullptr && _impl_.object_ != nullptr) { - delete _impl_.object_; - } - _impl_.object_ = nullptr; -} -inline const ::pg_query::Node& CommentStmt::_internal_object() const { - const ::pg_query::Node* p = _impl_.object_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CommentStmt::object() const { - // @@protoc_insertion_point(field_get:pg_query.CommentStmt.object) - return _internal_object(); -} -inline void CommentStmt::unsafe_arena_set_allocated_object( - ::pg_query::Node* object) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.object_); - } - _impl_.object_ = object; - if (object) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CommentStmt.object) -} -inline ::pg_query::Node* CommentStmt::release_object() { - - ::pg_query::Node* temp = _impl_.object_; - _impl_.object_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CommentStmt::unsafe_arena_release_object() { - // @@protoc_insertion_point(field_release:pg_query.CommentStmt.object) - - ::pg_query::Node* temp = _impl_.object_; - _impl_.object_ = nullptr; - return temp; -} -inline ::pg_query::Node* CommentStmt::_internal_mutable_object() { - - if (_impl_.object_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.object_ = p; - } - return _impl_.object_; -} -inline ::pg_query::Node* CommentStmt::mutable_object() { - ::pg_query::Node* _msg = _internal_mutable_object(); - // @@protoc_insertion_point(field_mutable:pg_query.CommentStmt.object) - return _msg; -} -inline void CommentStmt::set_allocated_object(::pg_query::Node* object) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.object_; - } - if (object) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(object); - if (message_arena != submessage_arena) { - object = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, object, submessage_arena); - } - - } else { - - } - _impl_.object_ = object; - // @@protoc_insertion_point(field_set_allocated:pg_query.CommentStmt.object) -} - -// string comment = 3 [json_name = "comment"]; -inline void CommentStmt::clear_comment() { - _impl_.comment_.ClearToEmpty(); -} -inline const std::string& CommentStmt::comment() const { - // @@protoc_insertion_point(field_get:pg_query.CommentStmt.comment) - return _internal_comment(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CommentStmt::set_comment(ArgT0&& arg0, ArgT... args) { - - _impl_.comment_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CommentStmt.comment) -} -inline std::string* CommentStmt::mutable_comment() { - std::string* _s = _internal_mutable_comment(); - // @@protoc_insertion_point(field_mutable:pg_query.CommentStmt.comment) - return _s; -} -inline const std::string& CommentStmt::_internal_comment() const { - return _impl_.comment_.Get(); -} -inline void CommentStmt::_internal_set_comment(const std::string& value) { - - _impl_.comment_.Set(value, GetArenaForAllocation()); -} -inline std::string* CommentStmt::_internal_mutable_comment() { - - return _impl_.comment_.Mutable(GetArenaForAllocation()); -} -inline std::string* CommentStmt::release_comment() { - // @@protoc_insertion_point(field_release:pg_query.CommentStmt.comment) - return _impl_.comment_.Release(); -} -inline void CommentStmt::set_allocated_comment(std::string* comment) { - if (comment != nullptr) { - - } else { - - } - _impl_.comment_.SetAllocated(comment, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.comment_.IsDefault()) { - _impl_.comment_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CommentStmt.comment) -} - -// ------------------------------------------------------------------- - -// FetchStmt - -// .pg_query.FetchDirection direction = 1 [json_name = "direction"]; -inline void FetchStmt::clear_direction() { - _impl_.direction_ = 0; -} -inline ::pg_query::FetchDirection FetchStmt::_internal_direction() const { - return static_cast< ::pg_query::FetchDirection >(_impl_.direction_); -} -inline ::pg_query::FetchDirection FetchStmt::direction() const { - // @@protoc_insertion_point(field_get:pg_query.FetchStmt.direction) - return _internal_direction(); -} -inline void FetchStmt::_internal_set_direction(::pg_query::FetchDirection value) { - - _impl_.direction_ = value; -} -inline void FetchStmt::set_direction(::pg_query::FetchDirection value) { - _internal_set_direction(value); - // @@protoc_insertion_point(field_set:pg_query.FetchStmt.direction) -} - -// int64 how_many = 2 [json_name = "howMany"]; -inline void FetchStmt::clear_how_many() { - _impl_.how_many_ = int64_t{0}; -} -inline int64_t FetchStmt::_internal_how_many() const { - return _impl_.how_many_; -} -inline int64_t FetchStmt::how_many() const { - // @@protoc_insertion_point(field_get:pg_query.FetchStmt.how_many) - return _internal_how_many(); -} -inline void FetchStmt::_internal_set_how_many(int64_t value) { - - _impl_.how_many_ = value; -} -inline void FetchStmt::set_how_many(int64_t value) { - _internal_set_how_many(value); - // @@protoc_insertion_point(field_set:pg_query.FetchStmt.how_many) -} - -// string portalname = 3 [json_name = "portalname"]; -inline void FetchStmt::clear_portalname() { - _impl_.portalname_.ClearToEmpty(); -} -inline const std::string& FetchStmt::portalname() const { - // @@protoc_insertion_point(field_get:pg_query.FetchStmt.portalname) - return _internal_portalname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void FetchStmt::set_portalname(ArgT0&& arg0, ArgT... args) { - - _impl_.portalname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.FetchStmt.portalname) -} -inline std::string* FetchStmt::mutable_portalname() { - std::string* _s = _internal_mutable_portalname(); - // @@protoc_insertion_point(field_mutable:pg_query.FetchStmt.portalname) - return _s; -} -inline const std::string& FetchStmt::_internal_portalname() const { - return _impl_.portalname_.Get(); -} -inline void FetchStmt::_internal_set_portalname(const std::string& value) { - - _impl_.portalname_.Set(value, GetArenaForAllocation()); -} -inline std::string* FetchStmt::_internal_mutable_portalname() { - - return _impl_.portalname_.Mutable(GetArenaForAllocation()); -} -inline std::string* FetchStmt::release_portalname() { - // @@protoc_insertion_point(field_release:pg_query.FetchStmt.portalname) - return _impl_.portalname_.Release(); -} -inline void FetchStmt::set_allocated_portalname(std::string* portalname) { - if (portalname != nullptr) { - - } else { - - } - _impl_.portalname_.SetAllocated(portalname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.portalname_.IsDefault()) { - _impl_.portalname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.FetchStmt.portalname) -} - -// bool ismove = 4 [json_name = "ismove"]; -inline void FetchStmt::clear_ismove() { - _impl_.ismove_ = false; -} -inline bool FetchStmt::_internal_ismove() const { - return _impl_.ismove_; -} -inline bool FetchStmt::ismove() const { - // @@protoc_insertion_point(field_get:pg_query.FetchStmt.ismove) - return _internal_ismove(); -} -inline void FetchStmt::_internal_set_ismove(bool value) { - - _impl_.ismove_ = value; -} -inline void FetchStmt::set_ismove(bool value) { - _internal_set_ismove(value); - // @@protoc_insertion_point(field_set:pg_query.FetchStmt.ismove) -} - -// ------------------------------------------------------------------- - -// IndexStmt - -// string idxname = 1 [json_name = "idxname"]; -inline void IndexStmt::clear_idxname() { - _impl_.idxname_.ClearToEmpty(); -} -inline const std::string& IndexStmt::idxname() const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.idxname) - return _internal_idxname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void IndexStmt::set_idxname(ArgT0&& arg0, ArgT... args) { - - _impl_.idxname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.IndexStmt.idxname) -} -inline std::string* IndexStmt::mutable_idxname() { - std::string* _s = _internal_mutable_idxname(); - // @@protoc_insertion_point(field_mutable:pg_query.IndexStmt.idxname) - return _s; -} -inline const std::string& IndexStmt::_internal_idxname() const { - return _impl_.idxname_.Get(); -} -inline void IndexStmt::_internal_set_idxname(const std::string& value) { - - _impl_.idxname_.Set(value, GetArenaForAllocation()); -} -inline std::string* IndexStmt::_internal_mutable_idxname() { - - return _impl_.idxname_.Mutable(GetArenaForAllocation()); -} -inline std::string* IndexStmt::release_idxname() { - // @@protoc_insertion_point(field_release:pg_query.IndexStmt.idxname) - return _impl_.idxname_.Release(); -} -inline void IndexStmt::set_allocated_idxname(std::string* idxname) { - if (idxname != nullptr) { - - } else { - - } - _impl_.idxname_.SetAllocated(idxname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.idxname_.IsDefault()) { - _impl_.idxname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.IndexStmt.idxname) -} - -// .pg_query.RangeVar relation = 2 [json_name = "relation"]; -inline bool IndexStmt::_internal_has_relation() const { - return this != internal_default_instance() && _impl_.relation_ != nullptr; -} -inline bool IndexStmt::has_relation() const { - return _internal_has_relation(); -} -inline void IndexStmt::clear_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.relation_ != nullptr) { - delete _impl_.relation_; - } - _impl_.relation_ = nullptr; -} -inline const ::pg_query::RangeVar& IndexStmt::_internal_relation() const { - const ::pg_query::RangeVar* p = _impl_.relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& IndexStmt::relation() const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.relation) - return _internal_relation(); -} -inline void IndexStmt::unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.relation_); - } - _impl_.relation_ = relation; - if (relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.IndexStmt.relation) -} -inline ::pg_query::RangeVar* IndexStmt::release_relation() { - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* IndexStmt::unsafe_arena_release_relation() { - // @@protoc_insertion_point(field_release:pg_query.IndexStmt.relation) - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* IndexStmt::_internal_mutable_relation() { - - if (_impl_.relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.relation_ = p; - } - return _impl_.relation_; -} -inline ::pg_query::RangeVar* IndexStmt::mutable_relation() { - ::pg_query::RangeVar* _msg = _internal_mutable_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.IndexStmt.relation) - return _msg; -} -inline void IndexStmt::set_allocated_relation(::pg_query::RangeVar* relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.relation_; - } - if (relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(relation); - if (message_arena != submessage_arena) { - relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, relation, submessage_arena); - } - - } else { - - } - _impl_.relation_ = relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.IndexStmt.relation) -} - -// string access_method = 3 [json_name = "accessMethod"]; -inline void IndexStmt::clear_access_method() { - _impl_.access_method_.ClearToEmpty(); -} -inline const std::string& IndexStmt::access_method() const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.access_method) - return _internal_access_method(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void IndexStmt::set_access_method(ArgT0&& arg0, ArgT... args) { - - _impl_.access_method_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.IndexStmt.access_method) -} -inline std::string* IndexStmt::mutable_access_method() { - std::string* _s = _internal_mutable_access_method(); - // @@protoc_insertion_point(field_mutable:pg_query.IndexStmt.access_method) - return _s; -} -inline const std::string& IndexStmt::_internal_access_method() const { - return _impl_.access_method_.Get(); -} -inline void IndexStmt::_internal_set_access_method(const std::string& value) { - - _impl_.access_method_.Set(value, GetArenaForAllocation()); -} -inline std::string* IndexStmt::_internal_mutable_access_method() { - - return _impl_.access_method_.Mutable(GetArenaForAllocation()); -} -inline std::string* IndexStmt::release_access_method() { - // @@protoc_insertion_point(field_release:pg_query.IndexStmt.access_method) - return _impl_.access_method_.Release(); -} -inline void IndexStmt::set_allocated_access_method(std::string* access_method) { - if (access_method != nullptr) { - - } else { - - } - _impl_.access_method_.SetAllocated(access_method, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.access_method_.IsDefault()) { - _impl_.access_method_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.IndexStmt.access_method) -} - -// string table_space = 4 [json_name = "tableSpace"]; -inline void IndexStmt::clear_table_space() { - _impl_.table_space_.ClearToEmpty(); -} -inline const std::string& IndexStmt::table_space() const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.table_space) - return _internal_table_space(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void IndexStmt::set_table_space(ArgT0&& arg0, ArgT... args) { - - _impl_.table_space_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.IndexStmt.table_space) -} -inline std::string* IndexStmt::mutable_table_space() { - std::string* _s = _internal_mutable_table_space(); - // @@protoc_insertion_point(field_mutable:pg_query.IndexStmt.table_space) - return _s; -} -inline const std::string& IndexStmt::_internal_table_space() const { - return _impl_.table_space_.Get(); -} -inline void IndexStmt::_internal_set_table_space(const std::string& value) { - - _impl_.table_space_.Set(value, GetArenaForAllocation()); -} -inline std::string* IndexStmt::_internal_mutable_table_space() { - - return _impl_.table_space_.Mutable(GetArenaForAllocation()); -} -inline std::string* IndexStmt::release_table_space() { - // @@protoc_insertion_point(field_release:pg_query.IndexStmt.table_space) - return _impl_.table_space_.Release(); -} -inline void IndexStmt::set_allocated_table_space(std::string* table_space) { - if (table_space != nullptr) { - - } else { - - } - _impl_.table_space_.SetAllocated(table_space, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.table_space_.IsDefault()) { - _impl_.table_space_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.IndexStmt.table_space) -} - -// repeated .pg_query.Node index_params = 5 [json_name = "indexParams"]; -inline int IndexStmt::_internal_index_params_size() const { - return _impl_.index_params_.size(); -} -inline int IndexStmt::index_params_size() const { - return _internal_index_params_size(); -} -inline void IndexStmt::clear_index_params() { - _impl_.index_params_.Clear(); -} -inline ::pg_query::Node* IndexStmt::mutable_index_params(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.IndexStmt.index_params) - return _impl_.index_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -IndexStmt::mutable_index_params() { - // @@protoc_insertion_point(field_mutable_list:pg_query.IndexStmt.index_params) - return &_impl_.index_params_; -} -inline const ::pg_query::Node& IndexStmt::_internal_index_params(int index) const { - return _impl_.index_params_.Get(index); -} -inline const ::pg_query::Node& IndexStmt::index_params(int index) const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.index_params) - return _internal_index_params(index); -} -inline ::pg_query::Node* IndexStmt::_internal_add_index_params() { - return _impl_.index_params_.Add(); -} -inline ::pg_query::Node* IndexStmt::add_index_params() { - ::pg_query::Node* _add = _internal_add_index_params(); - // @@protoc_insertion_point(field_add:pg_query.IndexStmt.index_params) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -IndexStmt::index_params() const { - // @@protoc_insertion_point(field_list:pg_query.IndexStmt.index_params) - return _impl_.index_params_; -} - -// repeated .pg_query.Node index_including_params = 6 [json_name = "indexIncludingParams"]; -inline int IndexStmt::_internal_index_including_params_size() const { - return _impl_.index_including_params_.size(); -} -inline int IndexStmt::index_including_params_size() const { - return _internal_index_including_params_size(); -} -inline void IndexStmt::clear_index_including_params() { - _impl_.index_including_params_.Clear(); -} -inline ::pg_query::Node* IndexStmt::mutable_index_including_params(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.IndexStmt.index_including_params) - return _impl_.index_including_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -IndexStmt::mutable_index_including_params() { - // @@protoc_insertion_point(field_mutable_list:pg_query.IndexStmt.index_including_params) - return &_impl_.index_including_params_; -} -inline const ::pg_query::Node& IndexStmt::_internal_index_including_params(int index) const { - return _impl_.index_including_params_.Get(index); -} -inline const ::pg_query::Node& IndexStmt::index_including_params(int index) const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.index_including_params) - return _internal_index_including_params(index); -} -inline ::pg_query::Node* IndexStmt::_internal_add_index_including_params() { - return _impl_.index_including_params_.Add(); -} -inline ::pg_query::Node* IndexStmt::add_index_including_params() { - ::pg_query::Node* _add = _internal_add_index_including_params(); - // @@protoc_insertion_point(field_add:pg_query.IndexStmt.index_including_params) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -IndexStmt::index_including_params() const { - // @@protoc_insertion_point(field_list:pg_query.IndexStmt.index_including_params) - return _impl_.index_including_params_; -} - -// repeated .pg_query.Node options = 7 [json_name = "options"]; -inline int IndexStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int IndexStmt::options_size() const { - return _internal_options_size(); -} -inline void IndexStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* IndexStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.IndexStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -IndexStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.IndexStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& IndexStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& IndexStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* IndexStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* IndexStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.IndexStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -IndexStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.IndexStmt.options) - return _impl_.options_; -} - -// .pg_query.Node where_clause = 8 [json_name = "whereClause"]; -inline bool IndexStmt::_internal_has_where_clause() const { - return this != internal_default_instance() && _impl_.where_clause_ != nullptr; -} -inline bool IndexStmt::has_where_clause() const { - return _internal_has_where_clause(); -} -inline void IndexStmt::clear_where_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.where_clause_ != nullptr) { - delete _impl_.where_clause_; - } - _impl_.where_clause_ = nullptr; -} -inline const ::pg_query::Node& IndexStmt::_internal_where_clause() const { - const ::pg_query::Node* p = _impl_.where_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& IndexStmt::where_clause() const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.where_clause) - return _internal_where_clause(); -} -inline void IndexStmt::unsafe_arena_set_allocated_where_clause( - ::pg_query::Node* where_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.where_clause_); - } - _impl_.where_clause_ = where_clause; - if (where_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.IndexStmt.where_clause) -} -inline ::pg_query::Node* IndexStmt::release_where_clause() { - - ::pg_query::Node* temp = _impl_.where_clause_; - _impl_.where_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* IndexStmt::unsafe_arena_release_where_clause() { - // @@protoc_insertion_point(field_release:pg_query.IndexStmt.where_clause) - - ::pg_query::Node* temp = _impl_.where_clause_; - _impl_.where_clause_ = nullptr; - return temp; -} -inline ::pg_query::Node* IndexStmt::_internal_mutable_where_clause() { - - if (_impl_.where_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.where_clause_ = p; - } - return _impl_.where_clause_; -} -inline ::pg_query::Node* IndexStmt::mutable_where_clause() { - ::pg_query::Node* _msg = _internal_mutable_where_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.IndexStmt.where_clause) - return _msg; -} -inline void IndexStmt::set_allocated_where_clause(::pg_query::Node* where_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.where_clause_; - } - if (where_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(where_clause); - if (message_arena != submessage_arena) { - where_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, where_clause, submessage_arena); - } - - } else { - - } - _impl_.where_clause_ = where_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.IndexStmt.where_clause) -} - -// repeated .pg_query.Node exclude_op_names = 9 [json_name = "excludeOpNames"]; -inline int IndexStmt::_internal_exclude_op_names_size() const { - return _impl_.exclude_op_names_.size(); -} -inline int IndexStmt::exclude_op_names_size() const { - return _internal_exclude_op_names_size(); -} -inline void IndexStmt::clear_exclude_op_names() { - _impl_.exclude_op_names_.Clear(); -} -inline ::pg_query::Node* IndexStmt::mutable_exclude_op_names(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.IndexStmt.exclude_op_names) - return _impl_.exclude_op_names_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -IndexStmt::mutable_exclude_op_names() { - // @@protoc_insertion_point(field_mutable_list:pg_query.IndexStmt.exclude_op_names) - return &_impl_.exclude_op_names_; -} -inline const ::pg_query::Node& IndexStmt::_internal_exclude_op_names(int index) const { - return _impl_.exclude_op_names_.Get(index); -} -inline const ::pg_query::Node& IndexStmt::exclude_op_names(int index) const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.exclude_op_names) - return _internal_exclude_op_names(index); -} -inline ::pg_query::Node* IndexStmt::_internal_add_exclude_op_names() { - return _impl_.exclude_op_names_.Add(); -} -inline ::pg_query::Node* IndexStmt::add_exclude_op_names() { - ::pg_query::Node* _add = _internal_add_exclude_op_names(); - // @@protoc_insertion_point(field_add:pg_query.IndexStmt.exclude_op_names) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -IndexStmt::exclude_op_names() const { - // @@protoc_insertion_point(field_list:pg_query.IndexStmt.exclude_op_names) - return _impl_.exclude_op_names_; -} - -// string idxcomment = 10 [json_name = "idxcomment"]; -inline void IndexStmt::clear_idxcomment() { - _impl_.idxcomment_.ClearToEmpty(); -} -inline const std::string& IndexStmt::idxcomment() const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.idxcomment) - return _internal_idxcomment(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void IndexStmt::set_idxcomment(ArgT0&& arg0, ArgT... args) { - - _impl_.idxcomment_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.IndexStmt.idxcomment) -} -inline std::string* IndexStmt::mutable_idxcomment() { - std::string* _s = _internal_mutable_idxcomment(); - // @@protoc_insertion_point(field_mutable:pg_query.IndexStmt.idxcomment) - return _s; -} -inline const std::string& IndexStmt::_internal_idxcomment() const { - return _impl_.idxcomment_.Get(); -} -inline void IndexStmt::_internal_set_idxcomment(const std::string& value) { - - _impl_.idxcomment_.Set(value, GetArenaForAllocation()); -} -inline std::string* IndexStmt::_internal_mutable_idxcomment() { - - return _impl_.idxcomment_.Mutable(GetArenaForAllocation()); -} -inline std::string* IndexStmt::release_idxcomment() { - // @@protoc_insertion_point(field_release:pg_query.IndexStmt.idxcomment) - return _impl_.idxcomment_.Release(); -} -inline void IndexStmt::set_allocated_idxcomment(std::string* idxcomment) { - if (idxcomment != nullptr) { - - } else { - - } - _impl_.idxcomment_.SetAllocated(idxcomment, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.idxcomment_.IsDefault()) { - _impl_.idxcomment_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.IndexStmt.idxcomment) -} - -// uint32 index_oid = 11 [json_name = "indexOid"]; -inline void IndexStmt::clear_index_oid() { - _impl_.index_oid_ = 0u; -} -inline uint32_t IndexStmt::_internal_index_oid() const { - return _impl_.index_oid_; -} -inline uint32_t IndexStmt::index_oid() const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.index_oid) - return _internal_index_oid(); -} -inline void IndexStmt::_internal_set_index_oid(uint32_t value) { - - _impl_.index_oid_ = value; -} -inline void IndexStmt::set_index_oid(uint32_t value) { - _internal_set_index_oid(value); - // @@protoc_insertion_point(field_set:pg_query.IndexStmt.index_oid) -} - -// uint32 old_node = 12 [json_name = "oldNode"]; -inline void IndexStmt::clear_old_node() { - _impl_.old_node_ = 0u; -} -inline uint32_t IndexStmt::_internal_old_node() const { - return _impl_.old_node_; -} -inline uint32_t IndexStmt::old_node() const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.old_node) - return _internal_old_node(); -} -inline void IndexStmt::_internal_set_old_node(uint32_t value) { - - _impl_.old_node_ = value; -} -inline void IndexStmt::set_old_node(uint32_t value) { - _internal_set_old_node(value); - // @@protoc_insertion_point(field_set:pg_query.IndexStmt.old_node) -} - -// uint32 old_create_subid = 13 [json_name = "oldCreateSubid"]; -inline void IndexStmt::clear_old_create_subid() { - _impl_.old_create_subid_ = 0u; -} -inline uint32_t IndexStmt::_internal_old_create_subid() const { - return _impl_.old_create_subid_; -} -inline uint32_t IndexStmt::old_create_subid() const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.old_create_subid) - return _internal_old_create_subid(); -} -inline void IndexStmt::_internal_set_old_create_subid(uint32_t value) { - - _impl_.old_create_subid_ = value; -} -inline void IndexStmt::set_old_create_subid(uint32_t value) { - _internal_set_old_create_subid(value); - // @@protoc_insertion_point(field_set:pg_query.IndexStmt.old_create_subid) -} - -// uint32 old_first_relfilenode_subid = 14 [json_name = "oldFirstRelfilenodeSubid"]; -inline void IndexStmt::clear_old_first_relfilenode_subid() { - _impl_.old_first_relfilenode_subid_ = 0u; -} -inline uint32_t IndexStmt::_internal_old_first_relfilenode_subid() const { - return _impl_.old_first_relfilenode_subid_; -} -inline uint32_t IndexStmt::old_first_relfilenode_subid() const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.old_first_relfilenode_subid) - return _internal_old_first_relfilenode_subid(); -} -inline void IndexStmt::_internal_set_old_first_relfilenode_subid(uint32_t value) { - - _impl_.old_first_relfilenode_subid_ = value; -} -inline void IndexStmt::set_old_first_relfilenode_subid(uint32_t value) { - _internal_set_old_first_relfilenode_subid(value); - // @@protoc_insertion_point(field_set:pg_query.IndexStmt.old_first_relfilenode_subid) -} - -// bool unique = 15 [json_name = "unique"]; -inline void IndexStmt::clear_unique() { - _impl_.unique_ = false; -} -inline bool IndexStmt::_internal_unique() const { - return _impl_.unique_; -} -inline bool IndexStmt::unique() const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.unique) - return _internal_unique(); -} -inline void IndexStmt::_internal_set_unique(bool value) { - - _impl_.unique_ = value; -} -inline void IndexStmt::set_unique(bool value) { - _internal_set_unique(value); - // @@protoc_insertion_point(field_set:pg_query.IndexStmt.unique) -} - -// bool nulls_not_distinct = 16 [json_name = "nulls_not_distinct"]; -inline void IndexStmt::clear_nulls_not_distinct() { - _impl_.nulls_not_distinct_ = false; -} -inline bool IndexStmt::_internal_nulls_not_distinct() const { - return _impl_.nulls_not_distinct_; -} -inline bool IndexStmt::nulls_not_distinct() const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.nulls_not_distinct) - return _internal_nulls_not_distinct(); -} -inline void IndexStmt::_internal_set_nulls_not_distinct(bool value) { - - _impl_.nulls_not_distinct_ = value; -} -inline void IndexStmt::set_nulls_not_distinct(bool value) { - _internal_set_nulls_not_distinct(value); - // @@protoc_insertion_point(field_set:pg_query.IndexStmt.nulls_not_distinct) -} - -// bool primary = 17 [json_name = "primary"]; -inline void IndexStmt::clear_primary() { - _impl_.primary_ = false; -} -inline bool IndexStmt::_internal_primary() const { - return _impl_.primary_; -} -inline bool IndexStmt::primary() const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.primary) - return _internal_primary(); -} -inline void IndexStmt::_internal_set_primary(bool value) { - - _impl_.primary_ = value; -} -inline void IndexStmt::set_primary(bool value) { - _internal_set_primary(value); - // @@protoc_insertion_point(field_set:pg_query.IndexStmt.primary) -} - -// bool isconstraint = 18 [json_name = "isconstraint"]; -inline void IndexStmt::clear_isconstraint() { - _impl_.isconstraint_ = false; -} -inline bool IndexStmt::_internal_isconstraint() const { - return _impl_.isconstraint_; -} -inline bool IndexStmt::isconstraint() const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.isconstraint) - return _internal_isconstraint(); -} -inline void IndexStmt::_internal_set_isconstraint(bool value) { - - _impl_.isconstraint_ = value; -} -inline void IndexStmt::set_isconstraint(bool value) { - _internal_set_isconstraint(value); - // @@protoc_insertion_point(field_set:pg_query.IndexStmt.isconstraint) -} - -// bool deferrable = 19 [json_name = "deferrable"]; -inline void IndexStmt::clear_deferrable() { - _impl_.deferrable_ = false; -} -inline bool IndexStmt::_internal_deferrable() const { - return _impl_.deferrable_; -} -inline bool IndexStmt::deferrable() const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.deferrable) - return _internal_deferrable(); -} -inline void IndexStmt::_internal_set_deferrable(bool value) { - - _impl_.deferrable_ = value; -} -inline void IndexStmt::set_deferrable(bool value) { - _internal_set_deferrable(value); - // @@protoc_insertion_point(field_set:pg_query.IndexStmt.deferrable) -} - -// bool initdeferred = 20 [json_name = "initdeferred"]; -inline void IndexStmt::clear_initdeferred() { - _impl_.initdeferred_ = false; -} -inline bool IndexStmt::_internal_initdeferred() const { - return _impl_.initdeferred_; -} -inline bool IndexStmt::initdeferred() const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.initdeferred) - return _internal_initdeferred(); -} -inline void IndexStmt::_internal_set_initdeferred(bool value) { - - _impl_.initdeferred_ = value; -} -inline void IndexStmt::set_initdeferred(bool value) { - _internal_set_initdeferred(value); - // @@protoc_insertion_point(field_set:pg_query.IndexStmt.initdeferred) -} - -// bool transformed = 21 [json_name = "transformed"]; -inline void IndexStmt::clear_transformed() { - _impl_.transformed_ = false; -} -inline bool IndexStmt::_internal_transformed() const { - return _impl_.transformed_; -} -inline bool IndexStmt::transformed() const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.transformed) - return _internal_transformed(); -} -inline void IndexStmt::_internal_set_transformed(bool value) { - - _impl_.transformed_ = value; -} -inline void IndexStmt::set_transformed(bool value) { - _internal_set_transformed(value); - // @@protoc_insertion_point(field_set:pg_query.IndexStmt.transformed) -} - -// bool concurrent = 22 [json_name = "concurrent"]; -inline void IndexStmt::clear_concurrent() { - _impl_.concurrent_ = false; -} -inline bool IndexStmt::_internal_concurrent() const { - return _impl_.concurrent_; -} -inline bool IndexStmt::concurrent() const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.concurrent) - return _internal_concurrent(); -} -inline void IndexStmt::_internal_set_concurrent(bool value) { - - _impl_.concurrent_ = value; -} -inline void IndexStmt::set_concurrent(bool value) { - _internal_set_concurrent(value); - // @@protoc_insertion_point(field_set:pg_query.IndexStmt.concurrent) -} - -// bool if_not_exists = 23 [json_name = "if_not_exists"]; -inline void IndexStmt::clear_if_not_exists() { - _impl_.if_not_exists_ = false; -} -inline bool IndexStmt::_internal_if_not_exists() const { - return _impl_.if_not_exists_; -} -inline bool IndexStmt::if_not_exists() const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.if_not_exists) - return _internal_if_not_exists(); -} -inline void IndexStmt::_internal_set_if_not_exists(bool value) { - - _impl_.if_not_exists_ = value; -} -inline void IndexStmt::set_if_not_exists(bool value) { - _internal_set_if_not_exists(value); - // @@protoc_insertion_point(field_set:pg_query.IndexStmt.if_not_exists) -} - -// bool reset_default_tblspc = 24 [json_name = "reset_default_tblspc"]; -inline void IndexStmt::clear_reset_default_tblspc() { - _impl_.reset_default_tblspc_ = false; -} -inline bool IndexStmt::_internal_reset_default_tblspc() const { - return _impl_.reset_default_tblspc_; -} -inline bool IndexStmt::reset_default_tblspc() const { - // @@protoc_insertion_point(field_get:pg_query.IndexStmt.reset_default_tblspc) - return _internal_reset_default_tblspc(); -} -inline void IndexStmt::_internal_set_reset_default_tblspc(bool value) { - - _impl_.reset_default_tblspc_ = value; -} -inline void IndexStmt::set_reset_default_tblspc(bool value) { - _internal_set_reset_default_tblspc(value); - // @@protoc_insertion_point(field_set:pg_query.IndexStmt.reset_default_tblspc) -} - -// ------------------------------------------------------------------- - -// CreateFunctionStmt - -// bool is_procedure = 1 [json_name = "is_procedure"]; -inline void CreateFunctionStmt::clear_is_procedure() { - _impl_.is_procedure_ = false; -} -inline bool CreateFunctionStmt::_internal_is_procedure() const { - return _impl_.is_procedure_; -} -inline bool CreateFunctionStmt::is_procedure() const { - // @@protoc_insertion_point(field_get:pg_query.CreateFunctionStmt.is_procedure) - return _internal_is_procedure(); -} -inline void CreateFunctionStmt::_internal_set_is_procedure(bool value) { - - _impl_.is_procedure_ = value; -} -inline void CreateFunctionStmt::set_is_procedure(bool value) { - _internal_set_is_procedure(value); - // @@protoc_insertion_point(field_set:pg_query.CreateFunctionStmt.is_procedure) -} - -// bool replace = 2 [json_name = "replace"]; -inline void CreateFunctionStmt::clear_replace() { - _impl_.replace_ = false; -} -inline bool CreateFunctionStmt::_internal_replace() const { - return _impl_.replace_; -} -inline bool CreateFunctionStmt::replace() const { - // @@protoc_insertion_point(field_get:pg_query.CreateFunctionStmt.replace) - return _internal_replace(); -} -inline void CreateFunctionStmt::_internal_set_replace(bool value) { - - _impl_.replace_ = value; -} -inline void CreateFunctionStmt::set_replace(bool value) { - _internal_set_replace(value); - // @@protoc_insertion_point(field_set:pg_query.CreateFunctionStmt.replace) -} - -// repeated .pg_query.Node funcname = 3 [json_name = "funcname"]; -inline int CreateFunctionStmt::_internal_funcname_size() const { - return _impl_.funcname_.size(); -} -inline int CreateFunctionStmt::funcname_size() const { - return _internal_funcname_size(); -} -inline void CreateFunctionStmt::clear_funcname() { - _impl_.funcname_.Clear(); -} -inline ::pg_query::Node* CreateFunctionStmt::mutable_funcname(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateFunctionStmt.funcname) - return _impl_.funcname_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateFunctionStmt::mutable_funcname() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateFunctionStmt.funcname) - return &_impl_.funcname_; -} -inline const ::pg_query::Node& CreateFunctionStmt::_internal_funcname(int index) const { - return _impl_.funcname_.Get(index); -} -inline const ::pg_query::Node& CreateFunctionStmt::funcname(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateFunctionStmt.funcname) - return _internal_funcname(index); -} -inline ::pg_query::Node* CreateFunctionStmt::_internal_add_funcname() { - return _impl_.funcname_.Add(); -} -inline ::pg_query::Node* CreateFunctionStmt::add_funcname() { - ::pg_query::Node* _add = _internal_add_funcname(); - // @@protoc_insertion_point(field_add:pg_query.CreateFunctionStmt.funcname) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateFunctionStmt::funcname() const { - // @@protoc_insertion_point(field_list:pg_query.CreateFunctionStmt.funcname) - return _impl_.funcname_; -} - -// repeated .pg_query.Node parameters = 4 [json_name = "parameters"]; -inline int CreateFunctionStmt::_internal_parameters_size() const { - return _impl_.parameters_.size(); -} -inline int CreateFunctionStmt::parameters_size() const { - return _internal_parameters_size(); -} -inline void CreateFunctionStmt::clear_parameters() { - _impl_.parameters_.Clear(); -} -inline ::pg_query::Node* CreateFunctionStmt::mutable_parameters(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateFunctionStmt.parameters) - return _impl_.parameters_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateFunctionStmt::mutable_parameters() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateFunctionStmt.parameters) - return &_impl_.parameters_; -} -inline const ::pg_query::Node& CreateFunctionStmt::_internal_parameters(int index) const { - return _impl_.parameters_.Get(index); -} -inline const ::pg_query::Node& CreateFunctionStmt::parameters(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateFunctionStmt.parameters) - return _internal_parameters(index); -} -inline ::pg_query::Node* CreateFunctionStmt::_internal_add_parameters() { - return _impl_.parameters_.Add(); -} -inline ::pg_query::Node* CreateFunctionStmt::add_parameters() { - ::pg_query::Node* _add = _internal_add_parameters(); - // @@protoc_insertion_point(field_add:pg_query.CreateFunctionStmt.parameters) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateFunctionStmt::parameters() const { - // @@protoc_insertion_point(field_list:pg_query.CreateFunctionStmt.parameters) - return _impl_.parameters_; -} - -// .pg_query.TypeName return_type = 5 [json_name = "returnType"]; -inline bool CreateFunctionStmt::_internal_has_return_type() const { - return this != internal_default_instance() && _impl_.return_type_ != nullptr; -} -inline bool CreateFunctionStmt::has_return_type() const { - return _internal_has_return_type(); -} -inline void CreateFunctionStmt::clear_return_type() { - if (GetArenaForAllocation() == nullptr && _impl_.return_type_ != nullptr) { - delete _impl_.return_type_; - } - _impl_.return_type_ = nullptr; -} -inline const ::pg_query::TypeName& CreateFunctionStmt::_internal_return_type() const { - const ::pg_query::TypeName* p = _impl_.return_type_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_TypeName_default_instance_); -} -inline const ::pg_query::TypeName& CreateFunctionStmt::return_type() const { - // @@protoc_insertion_point(field_get:pg_query.CreateFunctionStmt.return_type) - return _internal_return_type(); -} -inline void CreateFunctionStmt::unsafe_arena_set_allocated_return_type( - ::pg_query::TypeName* return_type) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.return_type_); - } - _impl_.return_type_ = return_type; - if (return_type) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateFunctionStmt.return_type) -} -inline ::pg_query::TypeName* CreateFunctionStmt::release_return_type() { - - ::pg_query::TypeName* temp = _impl_.return_type_; - _impl_.return_type_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::TypeName* CreateFunctionStmt::unsafe_arena_release_return_type() { - // @@protoc_insertion_point(field_release:pg_query.CreateFunctionStmt.return_type) - - ::pg_query::TypeName* temp = _impl_.return_type_; - _impl_.return_type_ = nullptr; - return temp; -} -inline ::pg_query::TypeName* CreateFunctionStmt::_internal_mutable_return_type() { - - if (_impl_.return_type_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::TypeName>(GetArenaForAllocation()); - _impl_.return_type_ = p; - } - return _impl_.return_type_; -} -inline ::pg_query::TypeName* CreateFunctionStmt::mutable_return_type() { - ::pg_query::TypeName* _msg = _internal_mutable_return_type(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateFunctionStmt.return_type) - return _msg; -} -inline void CreateFunctionStmt::set_allocated_return_type(::pg_query::TypeName* return_type) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.return_type_; - } - if (return_type) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(return_type); - if (message_arena != submessage_arena) { - return_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, return_type, submessage_arena); - } - - } else { - - } - _impl_.return_type_ = return_type; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateFunctionStmt.return_type) -} - -// repeated .pg_query.Node options = 6 [json_name = "options"]; -inline int CreateFunctionStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int CreateFunctionStmt::options_size() const { - return _internal_options_size(); -} -inline void CreateFunctionStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* CreateFunctionStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateFunctionStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateFunctionStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateFunctionStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& CreateFunctionStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& CreateFunctionStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateFunctionStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* CreateFunctionStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* CreateFunctionStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.CreateFunctionStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateFunctionStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.CreateFunctionStmt.options) - return _impl_.options_; -} - -// .pg_query.Node sql_body = 7 [json_name = "sql_body"]; -inline bool CreateFunctionStmt::_internal_has_sql_body() const { - return this != internal_default_instance() && _impl_.sql_body_ != nullptr; -} -inline bool CreateFunctionStmt::has_sql_body() const { - return _internal_has_sql_body(); -} -inline void CreateFunctionStmt::clear_sql_body() { - if (GetArenaForAllocation() == nullptr && _impl_.sql_body_ != nullptr) { - delete _impl_.sql_body_; - } - _impl_.sql_body_ = nullptr; -} -inline const ::pg_query::Node& CreateFunctionStmt::_internal_sql_body() const { - const ::pg_query::Node* p = _impl_.sql_body_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CreateFunctionStmt::sql_body() const { - // @@protoc_insertion_point(field_get:pg_query.CreateFunctionStmt.sql_body) - return _internal_sql_body(); -} -inline void CreateFunctionStmt::unsafe_arena_set_allocated_sql_body( - ::pg_query::Node* sql_body) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.sql_body_); - } - _impl_.sql_body_ = sql_body; - if (sql_body) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateFunctionStmt.sql_body) -} -inline ::pg_query::Node* CreateFunctionStmt::release_sql_body() { - - ::pg_query::Node* temp = _impl_.sql_body_; - _impl_.sql_body_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CreateFunctionStmt::unsafe_arena_release_sql_body() { - // @@protoc_insertion_point(field_release:pg_query.CreateFunctionStmt.sql_body) - - ::pg_query::Node* temp = _impl_.sql_body_; - _impl_.sql_body_ = nullptr; - return temp; -} -inline ::pg_query::Node* CreateFunctionStmt::_internal_mutable_sql_body() { - - if (_impl_.sql_body_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.sql_body_ = p; - } - return _impl_.sql_body_; -} -inline ::pg_query::Node* CreateFunctionStmt::mutable_sql_body() { - ::pg_query::Node* _msg = _internal_mutable_sql_body(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateFunctionStmt.sql_body) - return _msg; -} -inline void CreateFunctionStmt::set_allocated_sql_body(::pg_query::Node* sql_body) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.sql_body_; - } - if (sql_body) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(sql_body); - if (message_arena != submessage_arena) { - sql_body = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, sql_body, submessage_arena); - } - - } else { - - } - _impl_.sql_body_ = sql_body; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateFunctionStmt.sql_body) -} - -// ------------------------------------------------------------------- - -// AlterFunctionStmt - -// .pg_query.ObjectType objtype = 1 [json_name = "objtype"]; -inline void AlterFunctionStmt::clear_objtype() { - _impl_.objtype_ = 0; -} -inline ::pg_query::ObjectType AlterFunctionStmt::_internal_objtype() const { - return static_cast< ::pg_query::ObjectType >(_impl_.objtype_); -} -inline ::pg_query::ObjectType AlterFunctionStmt::objtype() const { - // @@protoc_insertion_point(field_get:pg_query.AlterFunctionStmt.objtype) - return _internal_objtype(); -} -inline void AlterFunctionStmt::_internal_set_objtype(::pg_query::ObjectType value) { - - _impl_.objtype_ = value; -} -inline void AlterFunctionStmt::set_objtype(::pg_query::ObjectType value) { - _internal_set_objtype(value); - // @@protoc_insertion_point(field_set:pg_query.AlterFunctionStmt.objtype) -} - -// .pg_query.ObjectWithArgs func = 2 [json_name = "func"]; -inline bool AlterFunctionStmt::_internal_has_func() const { - return this != internal_default_instance() && _impl_.func_ != nullptr; -} -inline bool AlterFunctionStmt::has_func() const { - return _internal_has_func(); -} -inline void AlterFunctionStmt::clear_func() { - if (GetArenaForAllocation() == nullptr && _impl_.func_ != nullptr) { - delete _impl_.func_; - } - _impl_.func_ = nullptr; -} -inline const ::pg_query::ObjectWithArgs& AlterFunctionStmt::_internal_func() const { - const ::pg_query::ObjectWithArgs* p = _impl_.func_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_ObjectWithArgs_default_instance_); -} -inline const ::pg_query::ObjectWithArgs& AlterFunctionStmt::func() const { - // @@protoc_insertion_point(field_get:pg_query.AlterFunctionStmt.func) - return _internal_func(); -} -inline void AlterFunctionStmt::unsafe_arena_set_allocated_func( - ::pg_query::ObjectWithArgs* func) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.func_); - } - _impl_.func_ = func; - if (func) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterFunctionStmt.func) -} -inline ::pg_query::ObjectWithArgs* AlterFunctionStmt::release_func() { - - ::pg_query::ObjectWithArgs* temp = _impl_.func_; - _impl_.func_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::ObjectWithArgs* AlterFunctionStmt::unsafe_arena_release_func() { - // @@protoc_insertion_point(field_release:pg_query.AlterFunctionStmt.func) - - ::pg_query::ObjectWithArgs* temp = _impl_.func_; - _impl_.func_ = nullptr; - return temp; -} -inline ::pg_query::ObjectWithArgs* AlterFunctionStmt::_internal_mutable_func() { - - if (_impl_.func_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::ObjectWithArgs>(GetArenaForAllocation()); - _impl_.func_ = p; - } - return _impl_.func_; -} -inline ::pg_query::ObjectWithArgs* AlterFunctionStmt::mutable_func() { - ::pg_query::ObjectWithArgs* _msg = _internal_mutable_func(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterFunctionStmt.func) - return _msg; -} -inline void AlterFunctionStmt::set_allocated_func(::pg_query::ObjectWithArgs* func) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.func_; - } - if (func) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(func); - if (message_arena != submessage_arena) { - func = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, func, submessage_arena); - } - - } else { - - } - _impl_.func_ = func; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterFunctionStmt.func) -} - -// repeated .pg_query.Node actions = 3 [json_name = "actions"]; -inline int AlterFunctionStmt::_internal_actions_size() const { - return _impl_.actions_.size(); -} -inline int AlterFunctionStmt::actions_size() const { - return _internal_actions_size(); -} -inline void AlterFunctionStmt::clear_actions() { - _impl_.actions_.Clear(); -} -inline ::pg_query::Node* AlterFunctionStmt::mutable_actions(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterFunctionStmt.actions) - return _impl_.actions_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterFunctionStmt::mutable_actions() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterFunctionStmt.actions) - return &_impl_.actions_; -} -inline const ::pg_query::Node& AlterFunctionStmt::_internal_actions(int index) const { - return _impl_.actions_.Get(index); -} -inline const ::pg_query::Node& AlterFunctionStmt::actions(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterFunctionStmt.actions) - return _internal_actions(index); -} -inline ::pg_query::Node* AlterFunctionStmt::_internal_add_actions() { - return _impl_.actions_.Add(); -} -inline ::pg_query::Node* AlterFunctionStmt::add_actions() { - ::pg_query::Node* _add = _internal_add_actions(); - // @@protoc_insertion_point(field_add:pg_query.AlterFunctionStmt.actions) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterFunctionStmt::actions() const { - // @@protoc_insertion_point(field_list:pg_query.AlterFunctionStmt.actions) - return _impl_.actions_; -} - -// ------------------------------------------------------------------- - -// DoStmt - -// repeated .pg_query.Node args = 1 [json_name = "args"]; -inline int DoStmt::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int DoStmt::args_size() const { - return _internal_args_size(); -} -inline void DoStmt::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* DoStmt::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.DoStmt.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -DoStmt::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.DoStmt.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& DoStmt::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& DoStmt::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.DoStmt.args) - return _internal_args(index); -} -inline ::pg_query::Node* DoStmt::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* DoStmt::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.DoStmt.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -DoStmt::args() const { - // @@protoc_insertion_point(field_list:pg_query.DoStmt.args) - return _impl_.args_; -} - -// ------------------------------------------------------------------- - -// RenameStmt - -// .pg_query.ObjectType rename_type = 1 [json_name = "renameType"]; -inline void RenameStmt::clear_rename_type() { - _impl_.rename_type_ = 0; -} -inline ::pg_query::ObjectType RenameStmt::_internal_rename_type() const { - return static_cast< ::pg_query::ObjectType >(_impl_.rename_type_); -} -inline ::pg_query::ObjectType RenameStmt::rename_type() const { - // @@protoc_insertion_point(field_get:pg_query.RenameStmt.rename_type) - return _internal_rename_type(); -} -inline void RenameStmt::_internal_set_rename_type(::pg_query::ObjectType value) { - - _impl_.rename_type_ = value; -} -inline void RenameStmt::set_rename_type(::pg_query::ObjectType value) { - _internal_set_rename_type(value); - // @@protoc_insertion_point(field_set:pg_query.RenameStmt.rename_type) -} - -// .pg_query.ObjectType relation_type = 2 [json_name = "relationType"]; -inline void RenameStmt::clear_relation_type() { - _impl_.relation_type_ = 0; -} -inline ::pg_query::ObjectType RenameStmt::_internal_relation_type() const { - return static_cast< ::pg_query::ObjectType >(_impl_.relation_type_); -} -inline ::pg_query::ObjectType RenameStmt::relation_type() const { - // @@protoc_insertion_point(field_get:pg_query.RenameStmt.relation_type) - return _internal_relation_type(); -} -inline void RenameStmt::_internal_set_relation_type(::pg_query::ObjectType value) { - - _impl_.relation_type_ = value; -} -inline void RenameStmt::set_relation_type(::pg_query::ObjectType value) { - _internal_set_relation_type(value); - // @@protoc_insertion_point(field_set:pg_query.RenameStmt.relation_type) -} - -// .pg_query.RangeVar relation = 3 [json_name = "relation"]; -inline bool RenameStmt::_internal_has_relation() const { - return this != internal_default_instance() && _impl_.relation_ != nullptr; -} -inline bool RenameStmt::has_relation() const { - return _internal_has_relation(); -} -inline void RenameStmt::clear_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.relation_ != nullptr) { - delete _impl_.relation_; - } - _impl_.relation_ = nullptr; -} -inline const ::pg_query::RangeVar& RenameStmt::_internal_relation() const { - const ::pg_query::RangeVar* p = _impl_.relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& RenameStmt::relation() const { - // @@protoc_insertion_point(field_get:pg_query.RenameStmt.relation) - return _internal_relation(); -} -inline void RenameStmt::unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.relation_); - } - _impl_.relation_ = relation; - if (relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RenameStmt.relation) -} -inline ::pg_query::RangeVar* RenameStmt::release_relation() { - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* RenameStmt::unsafe_arena_release_relation() { - // @@protoc_insertion_point(field_release:pg_query.RenameStmt.relation) - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* RenameStmt::_internal_mutable_relation() { - - if (_impl_.relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.relation_ = p; - } - return _impl_.relation_; -} -inline ::pg_query::RangeVar* RenameStmt::mutable_relation() { - ::pg_query::RangeVar* _msg = _internal_mutable_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.RenameStmt.relation) - return _msg; -} -inline void RenameStmt::set_allocated_relation(::pg_query::RangeVar* relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.relation_; - } - if (relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(relation); - if (message_arena != submessage_arena) { - relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, relation, submessage_arena); - } - - } else { - - } - _impl_.relation_ = relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.RenameStmt.relation) -} - -// .pg_query.Node object = 4 [json_name = "object"]; -inline bool RenameStmt::_internal_has_object() const { - return this != internal_default_instance() && _impl_.object_ != nullptr; -} -inline bool RenameStmt::has_object() const { - return _internal_has_object(); -} -inline void RenameStmt::clear_object() { - if (GetArenaForAllocation() == nullptr && _impl_.object_ != nullptr) { - delete _impl_.object_; - } - _impl_.object_ = nullptr; -} -inline const ::pg_query::Node& RenameStmt::_internal_object() const { - const ::pg_query::Node* p = _impl_.object_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& RenameStmt::object() const { - // @@protoc_insertion_point(field_get:pg_query.RenameStmt.object) - return _internal_object(); -} -inline void RenameStmt::unsafe_arena_set_allocated_object( - ::pg_query::Node* object) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.object_); - } - _impl_.object_ = object; - if (object) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RenameStmt.object) -} -inline ::pg_query::Node* RenameStmt::release_object() { - - ::pg_query::Node* temp = _impl_.object_; - _impl_.object_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* RenameStmt::unsafe_arena_release_object() { - // @@protoc_insertion_point(field_release:pg_query.RenameStmt.object) - - ::pg_query::Node* temp = _impl_.object_; - _impl_.object_ = nullptr; - return temp; -} -inline ::pg_query::Node* RenameStmt::_internal_mutable_object() { - - if (_impl_.object_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.object_ = p; - } - return _impl_.object_; -} -inline ::pg_query::Node* RenameStmt::mutable_object() { - ::pg_query::Node* _msg = _internal_mutable_object(); - // @@protoc_insertion_point(field_mutable:pg_query.RenameStmt.object) - return _msg; -} -inline void RenameStmt::set_allocated_object(::pg_query::Node* object) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.object_; - } - if (object) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(object); - if (message_arena != submessage_arena) { - object = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, object, submessage_arena); - } - - } else { - - } - _impl_.object_ = object; - // @@protoc_insertion_point(field_set_allocated:pg_query.RenameStmt.object) -} - -// string subname = 5 [json_name = "subname"]; -inline void RenameStmt::clear_subname() { - _impl_.subname_.ClearToEmpty(); -} -inline const std::string& RenameStmt::subname() const { - // @@protoc_insertion_point(field_get:pg_query.RenameStmt.subname) - return _internal_subname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void RenameStmt::set_subname(ArgT0&& arg0, ArgT... args) { - - _impl_.subname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.RenameStmt.subname) -} -inline std::string* RenameStmt::mutable_subname() { - std::string* _s = _internal_mutable_subname(); - // @@protoc_insertion_point(field_mutable:pg_query.RenameStmt.subname) - return _s; -} -inline const std::string& RenameStmt::_internal_subname() const { - return _impl_.subname_.Get(); -} -inline void RenameStmt::_internal_set_subname(const std::string& value) { - - _impl_.subname_.Set(value, GetArenaForAllocation()); -} -inline std::string* RenameStmt::_internal_mutable_subname() { - - return _impl_.subname_.Mutable(GetArenaForAllocation()); -} -inline std::string* RenameStmt::release_subname() { - // @@protoc_insertion_point(field_release:pg_query.RenameStmt.subname) - return _impl_.subname_.Release(); -} -inline void RenameStmt::set_allocated_subname(std::string* subname) { - if (subname != nullptr) { - - } else { - - } - _impl_.subname_.SetAllocated(subname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.subname_.IsDefault()) { - _impl_.subname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.RenameStmt.subname) -} - -// string newname = 6 [json_name = "newname"]; -inline void RenameStmt::clear_newname() { - _impl_.newname_.ClearToEmpty(); -} -inline const std::string& RenameStmt::newname() const { - // @@protoc_insertion_point(field_get:pg_query.RenameStmt.newname) - return _internal_newname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void RenameStmt::set_newname(ArgT0&& arg0, ArgT... args) { - - _impl_.newname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.RenameStmt.newname) -} -inline std::string* RenameStmt::mutable_newname() { - std::string* _s = _internal_mutable_newname(); - // @@protoc_insertion_point(field_mutable:pg_query.RenameStmt.newname) - return _s; -} -inline const std::string& RenameStmt::_internal_newname() const { - return _impl_.newname_.Get(); -} -inline void RenameStmt::_internal_set_newname(const std::string& value) { - - _impl_.newname_.Set(value, GetArenaForAllocation()); -} -inline std::string* RenameStmt::_internal_mutable_newname() { - - return _impl_.newname_.Mutable(GetArenaForAllocation()); -} -inline std::string* RenameStmt::release_newname() { - // @@protoc_insertion_point(field_release:pg_query.RenameStmt.newname) - return _impl_.newname_.Release(); -} -inline void RenameStmt::set_allocated_newname(std::string* newname) { - if (newname != nullptr) { - - } else { - - } - _impl_.newname_.SetAllocated(newname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.newname_.IsDefault()) { - _impl_.newname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.RenameStmt.newname) -} - -// .pg_query.DropBehavior behavior = 7 [json_name = "behavior"]; -inline void RenameStmt::clear_behavior() { - _impl_.behavior_ = 0; -} -inline ::pg_query::DropBehavior RenameStmt::_internal_behavior() const { - return static_cast< ::pg_query::DropBehavior >(_impl_.behavior_); -} -inline ::pg_query::DropBehavior RenameStmt::behavior() const { - // @@protoc_insertion_point(field_get:pg_query.RenameStmt.behavior) - return _internal_behavior(); -} -inline void RenameStmt::_internal_set_behavior(::pg_query::DropBehavior value) { - - _impl_.behavior_ = value; -} -inline void RenameStmt::set_behavior(::pg_query::DropBehavior value) { - _internal_set_behavior(value); - // @@protoc_insertion_point(field_set:pg_query.RenameStmt.behavior) -} - -// bool missing_ok = 8 [json_name = "missing_ok"]; -inline void RenameStmt::clear_missing_ok() { - _impl_.missing_ok_ = false; -} -inline bool RenameStmt::_internal_missing_ok() const { - return _impl_.missing_ok_; -} -inline bool RenameStmt::missing_ok() const { - // @@protoc_insertion_point(field_get:pg_query.RenameStmt.missing_ok) - return _internal_missing_ok(); -} -inline void RenameStmt::_internal_set_missing_ok(bool value) { - - _impl_.missing_ok_ = value; -} -inline void RenameStmt::set_missing_ok(bool value) { - _internal_set_missing_ok(value); - // @@protoc_insertion_point(field_set:pg_query.RenameStmt.missing_ok) -} - -// ------------------------------------------------------------------- - -// RuleStmt - -// .pg_query.RangeVar relation = 1 [json_name = "relation"]; -inline bool RuleStmt::_internal_has_relation() const { - return this != internal_default_instance() && _impl_.relation_ != nullptr; -} -inline bool RuleStmt::has_relation() const { - return _internal_has_relation(); -} -inline void RuleStmt::clear_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.relation_ != nullptr) { - delete _impl_.relation_; - } - _impl_.relation_ = nullptr; -} -inline const ::pg_query::RangeVar& RuleStmt::_internal_relation() const { - const ::pg_query::RangeVar* p = _impl_.relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& RuleStmt::relation() const { - // @@protoc_insertion_point(field_get:pg_query.RuleStmt.relation) - return _internal_relation(); -} -inline void RuleStmt::unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.relation_); - } - _impl_.relation_ = relation; - if (relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RuleStmt.relation) -} -inline ::pg_query::RangeVar* RuleStmt::release_relation() { - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* RuleStmt::unsafe_arena_release_relation() { - // @@protoc_insertion_point(field_release:pg_query.RuleStmt.relation) - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* RuleStmt::_internal_mutable_relation() { - - if (_impl_.relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.relation_ = p; - } - return _impl_.relation_; -} -inline ::pg_query::RangeVar* RuleStmt::mutable_relation() { - ::pg_query::RangeVar* _msg = _internal_mutable_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.RuleStmt.relation) - return _msg; -} -inline void RuleStmt::set_allocated_relation(::pg_query::RangeVar* relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.relation_; - } - if (relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(relation); - if (message_arena != submessage_arena) { - relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, relation, submessage_arena); - } - - } else { - - } - _impl_.relation_ = relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.RuleStmt.relation) -} - -// string rulename = 2 [json_name = "rulename"]; -inline void RuleStmt::clear_rulename() { - _impl_.rulename_.ClearToEmpty(); -} -inline const std::string& RuleStmt::rulename() const { - // @@protoc_insertion_point(field_get:pg_query.RuleStmt.rulename) - return _internal_rulename(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void RuleStmt::set_rulename(ArgT0&& arg0, ArgT... args) { - - _impl_.rulename_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.RuleStmt.rulename) -} -inline std::string* RuleStmt::mutable_rulename() { - std::string* _s = _internal_mutable_rulename(); - // @@protoc_insertion_point(field_mutable:pg_query.RuleStmt.rulename) - return _s; -} -inline const std::string& RuleStmt::_internal_rulename() const { - return _impl_.rulename_.Get(); -} -inline void RuleStmt::_internal_set_rulename(const std::string& value) { - - _impl_.rulename_.Set(value, GetArenaForAllocation()); -} -inline std::string* RuleStmt::_internal_mutable_rulename() { - - return _impl_.rulename_.Mutable(GetArenaForAllocation()); -} -inline std::string* RuleStmt::release_rulename() { - // @@protoc_insertion_point(field_release:pg_query.RuleStmt.rulename) - return _impl_.rulename_.Release(); -} -inline void RuleStmt::set_allocated_rulename(std::string* rulename) { - if (rulename != nullptr) { - - } else { - - } - _impl_.rulename_.SetAllocated(rulename, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.rulename_.IsDefault()) { - _impl_.rulename_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.RuleStmt.rulename) -} - -// .pg_query.Node where_clause = 3 [json_name = "whereClause"]; -inline bool RuleStmt::_internal_has_where_clause() const { - return this != internal_default_instance() && _impl_.where_clause_ != nullptr; -} -inline bool RuleStmt::has_where_clause() const { - return _internal_has_where_clause(); -} -inline void RuleStmt::clear_where_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.where_clause_ != nullptr) { - delete _impl_.where_clause_; - } - _impl_.where_clause_ = nullptr; -} -inline const ::pg_query::Node& RuleStmt::_internal_where_clause() const { - const ::pg_query::Node* p = _impl_.where_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& RuleStmt::where_clause() const { - // @@protoc_insertion_point(field_get:pg_query.RuleStmt.where_clause) - return _internal_where_clause(); -} -inline void RuleStmt::unsafe_arena_set_allocated_where_clause( - ::pg_query::Node* where_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.where_clause_); - } - _impl_.where_clause_ = where_clause; - if (where_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RuleStmt.where_clause) -} -inline ::pg_query::Node* RuleStmt::release_where_clause() { - - ::pg_query::Node* temp = _impl_.where_clause_; - _impl_.where_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* RuleStmt::unsafe_arena_release_where_clause() { - // @@protoc_insertion_point(field_release:pg_query.RuleStmt.where_clause) - - ::pg_query::Node* temp = _impl_.where_clause_; - _impl_.where_clause_ = nullptr; - return temp; -} -inline ::pg_query::Node* RuleStmt::_internal_mutable_where_clause() { - - if (_impl_.where_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.where_clause_ = p; - } - return _impl_.where_clause_; -} -inline ::pg_query::Node* RuleStmt::mutable_where_clause() { - ::pg_query::Node* _msg = _internal_mutable_where_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.RuleStmt.where_clause) - return _msg; -} -inline void RuleStmt::set_allocated_where_clause(::pg_query::Node* where_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.where_clause_; - } - if (where_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(where_clause); - if (message_arena != submessage_arena) { - where_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, where_clause, submessage_arena); - } - - } else { - - } - _impl_.where_clause_ = where_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.RuleStmt.where_clause) -} - -// .pg_query.CmdType event = 4 [json_name = "event"]; -inline void RuleStmt::clear_event() { - _impl_.event_ = 0; -} -inline ::pg_query::CmdType RuleStmt::_internal_event() const { - return static_cast< ::pg_query::CmdType >(_impl_.event_); -} -inline ::pg_query::CmdType RuleStmt::event() const { - // @@protoc_insertion_point(field_get:pg_query.RuleStmt.event) - return _internal_event(); -} -inline void RuleStmt::_internal_set_event(::pg_query::CmdType value) { - - _impl_.event_ = value; -} -inline void RuleStmt::set_event(::pg_query::CmdType value) { - _internal_set_event(value); - // @@protoc_insertion_point(field_set:pg_query.RuleStmt.event) -} - -// bool instead = 5 [json_name = "instead"]; -inline void RuleStmt::clear_instead() { - _impl_.instead_ = false; -} -inline bool RuleStmt::_internal_instead() const { - return _impl_.instead_; -} -inline bool RuleStmt::instead() const { - // @@protoc_insertion_point(field_get:pg_query.RuleStmt.instead) - return _internal_instead(); -} -inline void RuleStmt::_internal_set_instead(bool value) { - - _impl_.instead_ = value; -} -inline void RuleStmt::set_instead(bool value) { - _internal_set_instead(value); - // @@protoc_insertion_point(field_set:pg_query.RuleStmt.instead) -} - -// repeated .pg_query.Node actions = 6 [json_name = "actions"]; -inline int RuleStmt::_internal_actions_size() const { - return _impl_.actions_.size(); -} -inline int RuleStmt::actions_size() const { - return _internal_actions_size(); -} -inline void RuleStmt::clear_actions() { - _impl_.actions_.Clear(); -} -inline ::pg_query::Node* RuleStmt::mutable_actions(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RuleStmt.actions) - return _impl_.actions_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RuleStmt::mutable_actions() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RuleStmt.actions) - return &_impl_.actions_; -} -inline const ::pg_query::Node& RuleStmt::_internal_actions(int index) const { - return _impl_.actions_.Get(index); -} -inline const ::pg_query::Node& RuleStmt::actions(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RuleStmt.actions) - return _internal_actions(index); -} -inline ::pg_query::Node* RuleStmt::_internal_add_actions() { - return _impl_.actions_.Add(); -} -inline ::pg_query::Node* RuleStmt::add_actions() { - ::pg_query::Node* _add = _internal_add_actions(); - // @@protoc_insertion_point(field_add:pg_query.RuleStmt.actions) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RuleStmt::actions() const { - // @@protoc_insertion_point(field_list:pg_query.RuleStmt.actions) - return _impl_.actions_; -} - -// bool replace = 7 [json_name = "replace"]; -inline void RuleStmt::clear_replace() { - _impl_.replace_ = false; -} -inline bool RuleStmt::_internal_replace() const { - return _impl_.replace_; -} -inline bool RuleStmt::replace() const { - // @@protoc_insertion_point(field_get:pg_query.RuleStmt.replace) - return _internal_replace(); -} -inline void RuleStmt::_internal_set_replace(bool value) { - - _impl_.replace_ = value; -} -inline void RuleStmt::set_replace(bool value) { - _internal_set_replace(value); - // @@protoc_insertion_point(field_set:pg_query.RuleStmt.replace) -} - -// ------------------------------------------------------------------- - -// NotifyStmt - -// string conditionname = 1 [json_name = "conditionname"]; -inline void NotifyStmt::clear_conditionname() { - _impl_.conditionname_.ClearToEmpty(); -} -inline const std::string& NotifyStmt::conditionname() const { - // @@protoc_insertion_point(field_get:pg_query.NotifyStmt.conditionname) - return _internal_conditionname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void NotifyStmt::set_conditionname(ArgT0&& arg0, ArgT... args) { - - _impl_.conditionname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.NotifyStmt.conditionname) -} -inline std::string* NotifyStmt::mutable_conditionname() { - std::string* _s = _internal_mutable_conditionname(); - // @@protoc_insertion_point(field_mutable:pg_query.NotifyStmt.conditionname) - return _s; -} -inline const std::string& NotifyStmt::_internal_conditionname() const { - return _impl_.conditionname_.Get(); -} -inline void NotifyStmt::_internal_set_conditionname(const std::string& value) { - - _impl_.conditionname_.Set(value, GetArenaForAllocation()); -} -inline std::string* NotifyStmt::_internal_mutable_conditionname() { - - return _impl_.conditionname_.Mutable(GetArenaForAllocation()); -} -inline std::string* NotifyStmt::release_conditionname() { - // @@protoc_insertion_point(field_release:pg_query.NotifyStmt.conditionname) - return _impl_.conditionname_.Release(); -} -inline void NotifyStmt::set_allocated_conditionname(std::string* conditionname) { - if (conditionname != nullptr) { - - } else { - - } - _impl_.conditionname_.SetAllocated(conditionname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.conditionname_.IsDefault()) { - _impl_.conditionname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.NotifyStmt.conditionname) -} - -// string payload = 2 [json_name = "payload"]; -inline void NotifyStmt::clear_payload() { - _impl_.payload_.ClearToEmpty(); -} -inline const std::string& NotifyStmt::payload() const { - // @@protoc_insertion_point(field_get:pg_query.NotifyStmt.payload) - return _internal_payload(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void NotifyStmt::set_payload(ArgT0&& arg0, ArgT... args) { - - _impl_.payload_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.NotifyStmt.payload) -} -inline std::string* NotifyStmt::mutable_payload() { - std::string* _s = _internal_mutable_payload(); - // @@protoc_insertion_point(field_mutable:pg_query.NotifyStmt.payload) - return _s; -} -inline const std::string& NotifyStmt::_internal_payload() const { - return _impl_.payload_.Get(); -} -inline void NotifyStmt::_internal_set_payload(const std::string& value) { - - _impl_.payload_.Set(value, GetArenaForAllocation()); -} -inline std::string* NotifyStmt::_internal_mutable_payload() { - - return _impl_.payload_.Mutable(GetArenaForAllocation()); -} -inline std::string* NotifyStmt::release_payload() { - // @@protoc_insertion_point(field_release:pg_query.NotifyStmt.payload) - return _impl_.payload_.Release(); -} -inline void NotifyStmt::set_allocated_payload(std::string* payload) { - if (payload != nullptr) { - - } else { - - } - _impl_.payload_.SetAllocated(payload, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.payload_.IsDefault()) { - _impl_.payload_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.NotifyStmt.payload) -} - -// ------------------------------------------------------------------- - -// ListenStmt - -// string conditionname = 1 [json_name = "conditionname"]; -inline void ListenStmt::clear_conditionname() { - _impl_.conditionname_.ClearToEmpty(); -} -inline const std::string& ListenStmt::conditionname() const { - // @@protoc_insertion_point(field_get:pg_query.ListenStmt.conditionname) - return _internal_conditionname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ListenStmt::set_conditionname(ArgT0&& arg0, ArgT... args) { - - _impl_.conditionname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.ListenStmt.conditionname) -} -inline std::string* ListenStmt::mutable_conditionname() { - std::string* _s = _internal_mutable_conditionname(); - // @@protoc_insertion_point(field_mutable:pg_query.ListenStmt.conditionname) - return _s; -} -inline const std::string& ListenStmt::_internal_conditionname() const { - return _impl_.conditionname_.Get(); -} -inline void ListenStmt::_internal_set_conditionname(const std::string& value) { - - _impl_.conditionname_.Set(value, GetArenaForAllocation()); -} -inline std::string* ListenStmt::_internal_mutable_conditionname() { - - return _impl_.conditionname_.Mutable(GetArenaForAllocation()); -} -inline std::string* ListenStmt::release_conditionname() { - // @@protoc_insertion_point(field_release:pg_query.ListenStmt.conditionname) - return _impl_.conditionname_.Release(); -} -inline void ListenStmt::set_allocated_conditionname(std::string* conditionname) { - if (conditionname != nullptr) { - - } else { - - } - _impl_.conditionname_.SetAllocated(conditionname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.conditionname_.IsDefault()) { - _impl_.conditionname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.ListenStmt.conditionname) -} - -// ------------------------------------------------------------------- - -// UnlistenStmt - -// string conditionname = 1 [json_name = "conditionname"]; -inline void UnlistenStmt::clear_conditionname() { - _impl_.conditionname_.ClearToEmpty(); -} -inline const std::string& UnlistenStmt::conditionname() const { - // @@protoc_insertion_point(field_get:pg_query.UnlistenStmt.conditionname) - return _internal_conditionname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void UnlistenStmt::set_conditionname(ArgT0&& arg0, ArgT... args) { - - _impl_.conditionname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.UnlistenStmt.conditionname) -} -inline std::string* UnlistenStmt::mutable_conditionname() { - std::string* _s = _internal_mutable_conditionname(); - // @@protoc_insertion_point(field_mutable:pg_query.UnlistenStmt.conditionname) - return _s; -} -inline const std::string& UnlistenStmt::_internal_conditionname() const { - return _impl_.conditionname_.Get(); -} -inline void UnlistenStmt::_internal_set_conditionname(const std::string& value) { - - _impl_.conditionname_.Set(value, GetArenaForAllocation()); -} -inline std::string* UnlistenStmt::_internal_mutable_conditionname() { - - return _impl_.conditionname_.Mutable(GetArenaForAllocation()); -} -inline std::string* UnlistenStmt::release_conditionname() { - // @@protoc_insertion_point(field_release:pg_query.UnlistenStmt.conditionname) - return _impl_.conditionname_.Release(); -} -inline void UnlistenStmt::set_allocated_conditionname(std::string* conditionname) { - if (conditionname != nullptr) { - - } else { - - } - _impl_.conditionname_.SetAllocated(conditionname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.conditionname_.IsDefault()) { - _impl_.conditionname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.UnlistenStmt.conditionname) -} - -// ------------------------------------------------------------------- - -// TransactionStmt - -// .pg_query.TransactionStmtKind kind = 1 [json_name = "kind"]; -inline void TransactionStmt::clear_kind() { - _impl_.kind_ = 0; -} -inline ::pg_query::TransactionStmtKind TransactionStmt::_internal_kind() const { - return static_cast< ::pg_query::TransactionStmtKind >(_impl_.kind_); -} -inline ::pg_query::TransactionStmtKind TransactionStmt::kind() const { - // @@protoc_insertion_point(field_get:pg_query.TransactionStmt.kind) - return _internal_kind(); -} -inline void TransactionStmt::_internal_set_kind(::pg_query::TransactionStmtKind value) { - - _impl_.kind_ = value; -} -inline void TransactionStmt::set_kind(::pg_query::TransactionStmtKind value) { - _internal_set_kind(value); - // @@protoc_insertion_point(field_set:pg_query.TransactionStmt.kind) -} - -// repeated .pg_query.Node options = 2 [json_name = "options"]; -inline int TransactionStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int TransactionStmt::options_size() const { - return _internal_options_size(); -} -inline void TransactionStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* TransactionStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.TransactionStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -TransactionStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.TransactionStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& TransactionStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& TransactionStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.TransactionStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* TransactionStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* TransactionStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.TransactionStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -TransactionStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.TransactionStmt.options) - return _impl_.options_; -} - -// string savepoint_name = 3 [json_name = "savepoint_name"]; -inline void TransactionStmt::clear_savepoint_name() { - _impl_.savepoint_name_.ClearToEmpty(); -} -inline const std::string& TransactionStmt::savepoint_name() const { - // @@protoc_insertion_point(field_get:pg_query.TransactionStmt.savepoint_name) - return _internal_savepoint_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void TransactionStmt::set_savepoint_name(ArgT0&& arg0, ArgT... args) { - - _impl_.savepoint_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.TransactionStmt.savepoint_name) -} -inline std::string* TransactionStmt::mutable_savepoint_name() { - std::string* _s = _internal_mutable_savepoint_name(); - // @@protoc_insertion_point(field_mutable:pg_query.TransactionStmt.savepoint_name) - return _s; -} -inline const std::string& TransactionStmt::_internal_savepoint_name() const { - return _impl_.savepoint_name_.Get(); -} -inline void TransactionStmt::_internal_set_savepoint_name(const std::string& value) { - - _impl_.savepoint_name_.Set(value, GetArenaForAllocation()); -} -inline std::string* TransactionStmt::_internal_mutable_savepoint_name() { - - return _impl_.savepoint_name_.Mutable(GetArenaForAllocation()); -} -inline std::string* TransactionStmt::release_savepoint_name() { - // @@protoc_insertion_point(field_release:pg_query.TransactionStmt.savepoint_name) - return _impl_.savepoint_name_.Release(); -} -inline void TransactionStmt::set_allocated_savepoint_name(std::string* savepoint_name) { - if (savepoint_name != nullptr) { - - } else { - - } - _impl_.savepoint_name_.SetAllocated(savepoint_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.savepoint_name_.IsDefault()) { - _impl_.savepoint_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.TransactionStmt.savepoint_name) -} - -// string gid = 4 [json_name = "gid"]; -inline void TransactionStmt::clear_gid() { - _impl_.gid_.ClearToEmpty(); -} -inline const std::string& TransactionStmt::gid() const { - // @@protoc_insertion_point(field_get:pg_query.TransactionStmt.gid) - return _internal_gid(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void TransactionStmt::set_gid(ArgT0&& arg0, ArgT... args) { - - _impl_.gid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.TransactionStmt.gid) -} -inline std::string* TransactionStmt::mutable_gid() { - std::string* _s = _internal_mutable_gid(); - // @@protoc_insertion_point(field_mutable:pg_query.TransactionStmt.gid) - return _s; -} -inline const std::string& TransactionStmt::_internal_gid() const { - return _impl_.gid_.Get(); -} -inline void TransactionStmt::_internal_set_gid(const std::string& value) { - - _impl_.gid_.Set(value, GetArenaForAllocation()); -} -inline std::string* TransactionStmt::_internal_mutable_gid() { - - return _impl_.gid_.Mutable(GetArenaForAllocation()); -} -inline std::string* TransactionStmt::release_gid() { - // @@protoc_insertion_point(field_release:pg_query.TransactionStmt.gid) - return _impl_.gid_.Release(); -} -inline void TransactionStmt::set_allocated_gid(std::string* gid) { - if (gid != nullptr) { - - } else { - - } - _impl_.gid_.SetAllocated(gid, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.gid_.IsDefault()) { - _impl_.gid_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.TransactionStmt.gid) -} - -// bool chain = 5 [json_name = "chain"]; -inline void TransactionStmt::clear_chain() { - _impl_.chain_ = false; -} -inline bool TransactionStmt::_internal_chain() const { - return _impl_.chain_; -} -inline bool TransactionStmt::chain() const { - // @@protoc_insertion_point(field_get:pg_query.TransactionStmt.chain) - return _internal_chain(); -} -inline void TransactionStmt::_internal_set_chain(bool value) { - - _impl_.chain_ = value; -} -inline void TransactionStmt::set_chain(bool value) { - _internal_set_chain(value); - // @@protoc_insertion_point(field_set:pg_query.TransactionStmt.chain) -} - -// ------------------------------------------------------------------- - -// ViewStmt - -// .pg_query.RangeVar view = 1 [json_name = "view"]; -inline bool ViewStmt::_internal_has_view() const { - return this != internal_default_instance() && _impl_.view_ != nullptr; -} -inline bool ViewStmt::has_view() const { - return _internal_has_view(); -} -inline void ViewStmt::clear_view() { - if (GetArenaForAllocation() == nullptr && _impl_.view_ != nullptr) { - delete _impl_.view_; - } - _impl_.view_ = nullptr; -} -inline const ::pg_query::RangeVar& ViewStmt::_internal_view() const { - const ::pg_query::RangeVar* p = _impl_.view_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& ViewStmt::view() const { - // @@protoc_insertion_point(field_get:pg_query.ViewStmt.view) - return _internal_view(); -} -inline void ViewStmt::unsafe_arena_set_allocated_view( - ::pg_query::RangeVar* view) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.view_); - } - _impl_.view_ = view; - if (view) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.ViewStmt.view) -} -inline ::pg_query::RangeVar* ViewStmt::release_view() { - - ::pg_query::RangeVar* temp = _impl_.view_; - _impl_.view_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* ViewStmt::unsafe_arena_release_view() { - // @@protoc_insertion_point(field_release:pg_query.ViewStmt.view) - - ::pg_query::RangeVar* temp = _impl_.view_; - _impl_.view_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* ViewStmt::_internal_mutable_view() { - - if (_impl_.view_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.view_ = p; - } - return _impl_.view_; -} -inline ::pg_query::RangeVar* ViewStmt::mutable_view() { - ::pg_query::RangeVar* _msg = _internal_mutable_view(); - // @@protoc_insertion_point(field_mutable:pg_query.ViewStmt.view) - return _msg; -} -inline void ViewStmt::set_allocated_view(::pg_query::RangeVar* view) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.view_; - } - if (view) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(view); - if (message_arena != submessage_arena) { - view = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, view, submessage_arena); - } - - } else { - - } - _impl_.view_ = view; - // @@protoc_insertion_point(field_set_allocated:pg_query.ViewStmt.view) -} - -// repeated .pg_query.Node aliases = 2 [json_name = "aliases"]; -inline int ViewStmt::_internal_aliases_size() const { - return _impl_.aliases_.size(); -} -inline int ViewStmt::aliases_size() const { - return _internal_aliases_size(); -} -inline void ViewStmt::clear_aliases() { - _impl_.aliases_.Clear(); -} -inline ::pg_query::Node* ViewStmt::mutable_aliases(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.ViewStmt.aliases) - return _impl_.aliases_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -ViewStmt::mutable_aliases() { - // @@protoc_insertion_point(field_mutable_list:pg_query.ViewStmt.aliases) - return &_impl_.aliases_; -} -inline const ::pg_query::Node& ViewStmt::_internal_aliases(int index) const { - return _impl_.aliases_.Get(index); -} -inline const ::pg_query::Node& ViewStmt::aliases(int index) const { - // @@protoc_insertion_point(field_get:pg_query.ViewStmt.aliases) - return _internal_aliases(index); -} -inline ::pg_query::Node* ViewStmt::_internal_add_aliases() { - return _impl_.aliases_.Add(); -} -inline ::pg_query::Node* ViewStmt::add_aliases() { - ::pg_query::Node* _add = _internal_add_aliases(); - // @@protoc_insertion_point(field_add:pg_query.ViewStmt.aliases) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -ViewStmt::aliases() const { - // @@protoc_insertion_point(field_list:pg_query.ViewStmt.aliases) - return _impl_.aliases_; -} - -// .pg_query.Node query = 3 [json_name = "query"]; -inline bool ViewStmt::_internal_has_query() const { - return this != internal_default_instance() && _impl_.query_ != nullptr; -} -inline bool ViewStmt::has_query() const { - return _internal_has_query(); -} -inline void ViewStmt::clear_query() { - if (GetArenaForAllocation() == nullptr && _impl_.query_ != nullptr) { - delete _impl_.query_; - } - _impl_.query_ = nullptr; -} -inline const ::pg_query::Node& ViewStmt::_internal_query() const { - const ::pg_query::Node* p = _impl_.query_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& ViewStmt::query() const { - // @@protoc_insertion_point(field_get:pg_query.ViewStmt.query) - return _internal_query(); -} -inline void ViewStmt::unsafe_arena_set_allocated_query( - ::pg_query::Node* query) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.query_); - } - _impl_.query_ = query; - if (query) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.ViewStmt.query) -} -inline ::pg_query::Node* ViewStmt::release_query() { - - ::pg_query::Node* temp = _impl_.query_; - _impl_.query_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* ViewStmt::unsafe_arena_release_query() { - // @@protoc_insertion_point(field_release:pg_query.ViewStmt.query) - - ::pg_query::Node* temp = _impl_.query_; - _impl_.query_ = nullptr; - return temp; -} -inline ::pg_query::Node* ViewStmt::_internal_mutable_query() { - - if (_impl_.query_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.query_ = p; - } - return _impl_.query_; -} -inline ::pg_query::Node* ViewStmt::mutable_query() { - ::pg_query::Node* _msg = _internal_mutable_query(); - // @@protoc_insertion_point(field_mutable:pg_query.ViewStmt.query) - return _msg; -} -inline void ViewStmt::set_allocated_query(::pg_query::Node* query) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.query_; - } - if (query) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(query); - if (message_arena != submessage_arena) { - query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, query, submessage_arena); - } - - } else { - - } - _impl_.query_ = query; - // @@protoc_insertion_point(field_set_allocated:pg_query.ViewStmt.query) -} - -// bool replace = 4 [json_name = "replace"]; -inline void ViewStmt::clear_replace() { - _impl_.replace_ = false; -} -inline bool ViewStmt::_internal_replace() const { - return _impl_.replace_; -} -inline bool ViewStmt::replace() const { - // @@protoc_insertion_point(field_get:pg_query.ViewStmt.replace) - return _internal_replace(); -} -inline void ViewStmt::_internal_set_replace(bool value) { - - _impl_.replace_ = value; -} -inline void ViewStmt::set_replace(bool value) { - _internal_set_replace(value); - // @@protoc_insertion_point(field_set:pg_query.ViewStmt.replace) -} - -// repeated .pg_query.Node options = 5 [json_name = "options"]; -inline int ViewStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int ViewStmt::options_size() const { - return _internal_options_size(); -} -inline void ViewStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* ViewStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.ViewStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -ViewStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.ViewStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& ViewStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& ViewStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.ViewStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* ViewStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* ViewStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.ViewStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -ViewStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.ViewStmt.options) - return _impl_.options_; -} - -// .pg_query.ViewCheckOption with_check_option = 6 [json_name = "withCheckOption"]; -inline void ViewStmt::clear_with_check_option() { - _impl_.with_check_option_ = 0; -} -inline ::pg_query::ViewCheckOption ViewStmt::_internal_with_check_option() const { - return static_cast< ::pg_query::ViewCheckOption >(_impl_.with_check_option_); -} -inline ::pg_query::ViewCheckOption ViewStmt::with_check_option() const { - // @@protoc_insertion_point(field_get:pg_query.ViewStmt.with_check_option) - return _internal_with_check_option(); -} -inline void ViewStmt::_internal_set_with_check_option(::pg_query::ViewCheckOption value) { - - _impl_.with_check_option_ = value; -} -inline void ViewStmt::set_with_check_option(::pg_query::ViewCheckOption value) { - _internal_set_with_check_option(value); - // @@protoc_insertion_point(field_set:pg_query.ViewStmt.with_check_option) -} - -// ------------------------------------------------------------------- - -// LoadStmt - -// string filename = 1 [json_name = "filename"]; -inline void LoadStmt::clear_filename() { - _impl_.filename_.ClearToEmpty(); -} -inline const std::string& LoadStmt::filename() const { - // @@protoc_insertion_point(field_get:pg_query.LoadStmt.filename) - return _internal_filename(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void LoadStmt::set_filename(ArgT0&& arg0, ArgT... args) { - - _impl_.filename_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.LoadStmt.filename) -} -inline std::string* LoadStmt::mutable_filename() { - std::string* _s = _internal_mutable_filename(); - // @@protoc_insertion_point(field_mutable:pg_query.LoadStmt.filename) - return _s; -} -inline const std::string& LoadStmt::_internal_filename() const { - return _impl_.filename_.Get(); -} -inline void LoadStmt::_internal_set_filename(const std::string& value) { - - _impl_.filename_.Set(value, GetArenaForAllocation()); -} -inline std::string* LoadStmt::_internal_mutable_filename() { - - return _impl_.filename_.Mutable(GetArenaForAllocation()); -} -inline std::string* LoadStmt::release_filename() { - // @@protoc_insertion_point(field_release:pg_query.LoadStmt.filename) - return _impl_.filename_.Release(); -} -inline void LoadStmt::set_allocated_filename(std::string* filename) { - if (filename != nullptr) { - - } else { - - } - _impl_.filename_.SetAllocated(filename, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.filename_.IsDefault()) { - _impl_.filename_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.LoadStmt.filename) -} - -// ------------------------------------------------------------------- - -// CreateDomainStmt - -// repeated .pg_query.Node domainname = 1 [json_name = "domainname"]; -inline int CreateDomainStmt::_internal_domainname_size() const { - return _impl_.domainname_.size(); -} -inline int CreateDomainStmt::domainname_size() const { - return _internal_domainname_size(); -} -inline void CreateDomainStmt::clear_domainname() { - _impl_.domainname_.Clear(); -} -inline ::pg_query::Node* CreateDomainStmt::mutable_domainname(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateDomainStmt.domainname) - return _impl_.domainname_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateDomainStmt::mutable_domainname() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateDomainStmt.domainname) - return &_impl_.domainname_; -} -inline const ::pg_query::Node& CreateDomainStmt::_internal_domainname(int index) const { - return _impl_.domainname_.Get(index); -} -inline const ::pg_query::Node& CreateDomainStmt::domainname(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateDomainStmt.domainname) - return _internal_domainname(index); -} -inline ::pg_query::Node* CreateDomainStmt::_internal_add_domainname() { - return _impl_.domainname_.Add(); -} -inline ::pg_query::Node* CreateDomainStmt::add_domainname() { - ::pg_query::Node* _add = _internal_add_domainname(); - // @@protoc_insertion_point(field_add:pg_query.CreateDomainStmt.domainname) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateDomainStmt::domainname() const { - // @@protoc_insertion_point(field_list:pg_query.CreateDomainStmt.domainname) - return _impl_.domainname_; -} - -// .pg_query.TypeName type_name = 2 [json_name = "typeName"]; -inline bool CreateDomainStmt::_internal_has_type_name() const { - return this != internal_default_instance() && _impl_.type_name_ != nullptr; -} -inline bool CreateDomainStmt::has_type_name() const { - return _internal_has_type_name(); -} -inline void CreateDomainStmt::clear_type_name() { - if (GetArenaForAllocation() == nullptr && _impl_.type_name_ != nullptr) { - delete _impl_.type_name_; - } - _impl_.type_name_ = nullptr; -} -inline const ::pg_query::TypeName& CreateDomainStmt::_internal_type_name() const { - const ::pg_query::TypeName* p = _impl_.type_name_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_TypeName_default_instance_); -} -inline const ::pg_query::TypeName& CreateDomainStmt::type_name() const { - // @@protoc_insertion_point(field_get:pg_query.CreateDomainStmt.type_name) - return _internal_type_name(); -} -inline void CreateDomainStmt::unsafe_arena_set_allocated_type_name( - ::pg_query::TypeName* type_name) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.type_name_); - } - _impl_.type_name_ = type_name; - if (type_name) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateDomainStmt.type_name) -} -inline ::pg_query::TypeName* CreateDomainStmt::release_type_name() { - - ::pg_query::TypeName* temp = _impl_.type_name_; - _impl_.type_name_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::TypeName* CreateDomainStmt::unsafe_arena_release_type_name() { - // @@protoc_insertion_point(field_release:pg_query.CreateDomainStmt.type_name) - - ::pg_query::TypeName* temp = _impl_.type_name_; - _impl_.type_name_ = nullptr; - return temp; -} -inline ::pg_query::TypeName* CreateDomainStmt::_internal_mutable_type_name() { - - if (_impl_.type_name_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::TypeName>(GetArenaForAllocation()); - _impl_.type_name_ = p; - } - return _impl_.type_name_; -} -inline ::pg_query::TypeName* CreateDomainStmt::mutable_type_name() { - ::pg_query::TypeName* _msg = _internal_mutable_type_name(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateDomainStmt.type_name) - return _msg; -} -inline void CreateDomainStmt::set_allocated_type_name(::pg_query::TypeName* type_name) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.type_name_; - } - if (type_name) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(type_name); - if (message_arena != submessage_arena) { - type_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, type_name, submessage_arena); - } - - } else { - - } - _impl_.type_name_ = type_name; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateDomainStmt.type_name) -} - -// .pg_query.CollateClause coll_clause = 3 [json_name = "collClause"]; -inline bool CreateDomainStmt::_internal_has_coll_clause() const { - return this != internal_default_instance() && _impl_.coll_clause_ != nullptr; -} -inline bool CreateDomainStmt::has_coll_clause() const { - return _internal_has_coll_clause(); -} -inline void CreateDomainStmt::clear_coll_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.coll_clause_ != nullptr) { - delete _impl_.coll_clause_; - } - _impl_.coll_clause_ = nullptr; -} -inline const ::pg_query::CollateClause& CreateDomainStmt::_internal_coll_clause() const { - const ::pg_query::CollateClause* p = _impl_.coll_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_CollateClause_default_instance_); -} -inline const ::pg_query::CollateClause& CreateDomainStmt::coll_clause() const { - // @@protoc_insertion_point(field_get:pg_query.CreateDomainStmt.coll_clause) - return _internal_coll_clause(); -} -inline void CreateDomainStmt::unsafe_arena_set_allocated_coll_clause( - ::pg_query::CollateClause* coll_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.coll_clause_); - } - _impl_.coll_clause_ = coll_clause; - if (coll_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateDomainStmt.coll_clause) -} -inline ::pg_query::CollateClause* CreateDomainStmt::release_coll_clause() { - - ::pg_query::CollateClause* temp = _impl_.coll_clause_; - _impl_.coll_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::CollateClause* CreateDomainStmt::unsafe_arena_release_coll_clause() { - // @@protoc_insertion_point(field_release:pg_query.CreateDomainStmt.coll_clause) - - ::pg_query::CollateClause* temp = _impl_.coll_clause_; - _impl_.coll_clause_ = nullptr; - return temp; -} -inline ::pg_query::CollateClause* CreateDomainStmt::_internal_mutable_coll_clause() { - - if (_impl_.coll_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::CollateClause>(GetArenaForAllocation()); - _impl_.coll_clause_ = p; - } - return _impl_.coll_clause_; -} -inline ::pg_query::CollateClause* CreateDomainStmt::mutable_coll_clause() { - ::pg_query::CollateClause* _msg = _internal_mutable_coll_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateDomainStmt.coll_clause) - return _msg; -} -inline void CreateDomainStmt::set_allocated_coll_clause(::pg_query::CollateClause* coll_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.coll_clause_; - } - if (coll_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(coll_clause); - if (message_arena != submessage_arena) { - coll_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, coll_clause, submessage_arena); - } - - } else { - - } - _impl_.coll_clause_ = coll_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateDomainStmt.coll_clause) -} - -// repeated .pg_query.Node constraints = 4 [json_name = "constraints"]; -inline int CreateDomainStmt::_internal_constraints_size() const { - return _impl_.constraints_.size(); -} -inline int CreateDomainStmt::constraints_size() const { - return _internal_constraints_size(); -} -inline void CreateDomainStmt::clear_constraints() { - _impl_.constraints_.Clear(); -} -inline ::pg_query::Node* CreateDomainStmt::mutable_constraints(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateDomainStmt.constraints) - return _impl_.constraints_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateDomainStmt::mutable_constraints() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateDomainStmt.constraints) - return &_impl_.constraints_; -} -inline const ::pg_query::Node& CreateDomainStmt::_internal_constraints(int index) const { - return _impl_.constraints_.Get(index); -} -inline const ::pg_query::Node& CreateDomainStmt::constraints(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateDomainStmt.constraints) - return _internal_constraints(index); -} -inline ::pg_query::Node* CreateDomainStmt::_internal_add_constraints() { - return _impl_.constraints_.Add(); -} -inline ::pg_query::Node* CreateDomainStmt::add_constraints() { - ::pg_query::Node* _add = _internal_add_constraints(); - // @@protoc_insertion_point(field_add:pg_query.CreateDomainStmt.constraints) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateDomainStmt::constraints() const { - // @@protoc_insertion_point(field_list:pg_query.CreateDomainStmt.constraints) - return _impl_.constraints_; -} - -// ------------------------------------------------------------------- - -// CreatedbStmt - -// string dbname = 1 [json_name = "dbname"]; -inline void CreatedbStmt::clear_dbname() { - _impl_.dbname_.ClearToEmpty(); -} -inline const std::string& CreatedbStmt::dbname() const { - // @@protoc_insertion_point(field_get:pg_query.CreatedbStmt.dbname) - return _internal_dbname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreatedbStmt::set_dbname(ArgT0&& arg0, ArgT... args) { - - _impl_.dbname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreatedbStmt.dbname) -} -inline std::string* CreatedbStmt::mutable_dbname() { - std::string* _s = _internal_mutable_dbname(); - // @@protoc_insertion_point(field_mutable:pg_query.CreatedbStmt.dbname) - return _s; -} -inline const std::string& CreatedbStmt::_internal_dbname() const { - return _impl_.dbname_.Get(); -} -inline void CreatedbStmt::_internal_set_dbname(const std::string& value) { - - _impl_.dbname_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreatedbStmt::_internal_mutable_dbname() { - - return _impl_.dbname_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreatedbStmt::release_dbname() { - // @@protoc_insertion_point(field_release:pg_query.CreatedbStmt.dbname) - return _impl_.dbname_.Release(); -} -inline void CreatedbStmt::set_allocated_dbname(std::string* dbname) { - if (dbname != nullptr) { - - } else { - - } - _impl_.dbname_.SetAllocated(dbname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.dbname_.IsDefault()) { - _impl_.dbname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreatedbStmt.dbname) -} - -// repeated .pg_query.Node options = 2 [json_name = "options"]; -inline int CreatedbStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int CreatedbStmt::options_size() const { - return _internal_options_size(); -} -inline void CreatedbStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* CreatedbStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreatedbStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreatedbStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreatedbStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& CreatedbStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& CreatedbStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreatedbStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* CreatedbStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* CreatedbStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.CreatedbStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreatedbStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.CreatedbStmt.options) - return _impl_.options_; -} - -// ------------------------------------------------------------------- - -// DropdbStmt - -// string dbname = 1 [json_name = "dbname"]; -inline void DropdbStmt::clear_dbname() { - _impl_.dbname_.ClearToEmpty(); -} -inline const std::string& DropdbStmt::dbname() const { - // @@protoc_insertion_point(field_get:pg_query.DropdbStmt.dbname) - return _internal_dbname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void DropdbStmt::set_dbname(ArgT0&& arg0, ArgT... args) { - - _impl_.dbname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.DropdbStmt.dbname) -} -inline std::string* DropdbStmt::mutable_dbname() { - std::string* _s = _internal_mutable_dbname(); - // @@protoc_insertion_point(field_mutable:pg_query.DropdbStmt.dbname) - return _s; -} -inline const std::string& DropdbStmt::_internal_dbname() const { - return _impl_.dbname_.Get(); -} -inline void DropdbStmt::_internal_set_dbname(const std::string& value) { - - _impl_.dbname_.Set(value, GetArenaForAllocation()); -} -inline std::string* DropdbStmt::_internal_mutable_dbname() { - - return _impl_.dbname_.Mutable(GetArenaForAllocation()); -} -inline std::string* DropdbStmt::release_dbname() { - // @@protoc_insertion_point(field_release:pg_query.DropdbStmt.dbname) - return _impl_.dbname_.Release(); -} -inline void DropdbStmt::set_allocated_dbname(std::string* dbname) { - if (dbname != nullptr) { - - } else { - - } - _impl_.dbname_.SetAllocated(dbname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.dbname_.IsDefault()) { - _impl_.dbname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.DropdbStmt.dbname) -} - -// bool missing_ok = 2 [json_name = "missing_ok"]; -inline void DropdbStmt::clear_missing_ok() { - _impl_.missing_ok_ = false; -} -inline bool DropdbStmt::_internal_missing_ok() const { - return _impl_.missing_ok_; -} -inline bool DropdbStmt::missing_ok() const { - // @@protoc_insertion_point(field_get:pg_query.DropdbStmt.missing_ok) - return _internal_missing_ok(); -} -inline void DropdbStmt::_internal_set_missing_ok(bool value) { - - _impl_.missing_ok_ = value; -} -inline void DropdbStmt::set_missing_ok(bool value) { - _internal_set_missing_ok(value); - // @@protoc_insertion_point(field_set:pg_query.DropdbStmt.missing_ok) -} - -// repeated .pg_query.Node options = 3 [json_name = "options"]; -inline int DropdbStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int DropdbStmt::options_size() const { - return _internal_options_size(); -} -inline void DropdbStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* DropdbStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.DropdbStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -DropdbStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.DropdbStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& DropdbStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& DropdbStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.DropdbStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* DropdbStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* DropdbStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.DropdbStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -DropdbStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.DropdbStmt.options) - return _impl_.options_; -} - -// ------------------------------------------------------------------- - -// VacuumStmt - -// repeated .pg_query.Node options = 1 [json_name = "options"]; -inline int VacuumStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int VacuumStmt::options_size() const { - return _internal_options_size(); -} -inline void VacuumStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* VacuumStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.VacuumStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -VacuumStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.VacuumStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& VacuumStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& VacuumStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.VacuumStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* VacuumStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* VacuumStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.VacuumStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -VacuumStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.VacuumStmt.options) - return _impl_.options_; -} - -// repeated .pg_query.Node rels = 2 [json_name = "rels"]; -inline int VacuumStmt::_internal_rels_size() const { - return _impl_.rels_.size(); -} -inline int VacuumStmt::rels_size() const { - return _internal_rels_size(); -} -inline void VacuumStmt::clear_rels() { - _impl_.rels_.Clear(); -} -inline ::pg_query::Node* VacuumStmt::mutable_rels(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.VacuumStmt.rels) - return _impl_.rels_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -VacuumStmt::mutable_rels() { - // @@protoc_insertion_point(field_mutable_list:pg_query.VacuumStmt.rels) - return &_impl_.rels_; -} -inline const ::pg_query::Node& VacuumStmt::_internal_rels(int index) const { - return _impl_.rels_.Get(index); -} -inline const ::pg_query::Node& VacuumStmt::rels(int index) const { - // @@protoc_insertion_point(field_get:pg_query.VacuumStmt.rels) - return _internal_rels(index); -} -inline ::pg_query::Node* VacuumStmt::_internal_add_rels() { - return _impl_.rels_.Add(); -} -inline ::pg_query::Node* VacuumStmt::add_rels() { - ::pg_query::Node* _add = _internal_add_rels(); - // @@protoc_insertion_point(field_add:pg_query.VacuumStmt.rels) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -VacuumStmt::rels() const { - // @@protoc_insertion_point(field_list:pg_query.VacuumStmt.rels) - return _impl_.rels_; -} - -// bool is_vacuumcmd = 3 [json_name = "is_vacuumcmd"]; -inline void VacuumStmt::clear_is_vacuumcmd() { - _impl_.is_vacuumcmd_ = false; -} -inline bool VacuumStmt::_internal_is_vacuumcmd() const { - return _impl_.is_vacuumcmd_; -} -inline bool VacuumStmt::is_vacuumcmd() const { - // @@protoc_insertion_point(field_get:pg_query.VacuumStmt.is_vacuumcmd) - return _internal_is_vacuumcmd(); -} -inline void VacuumStmt::_internal_set_is_vacuumcmd(bool value) { - - _impl_.is_vacuumcmd_ = value; -} -inline void VacuumStmt::set_is_vacuumcmd(bool value) { - _internal_set_is_vacuumcmd(value); - // @@protoc_insertion_point(field_set:pg_query.VacuumStmt.is_vacuumcmd) -} - -// ------------------------------------------------------------------- - -// ExplainStmt - -// .pg_query.Node query = 1 [json_name = "query"]; -inline bool ExplainStmt::_internal_has_query() const { - return this != internal_default_instance() && _impl_.query_ != nullptr; -} -inline bool ExplainStmt::has_query() const { - return _internal_has_query(); -} -inline void ExplainStmt::clear_query() { - if (GetArenaForAllocation() == nullptr && _impl_.query_ != nullptr) { - delete _impl_.query_; - } - _impl_.query_ = nullptr; -} -inline const ::pg_query::Node& ExplainStmt::_internal_query() const { - const ::pg_query::Node* p = _impl_.query_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& ExplainStmt::query() const { - // @@protoc_insertion_point(field_get:pg_query.ExplainStmt.query) - return _internal_query(); -} -inline void ExplainStmt::unsafe_arena_set_allocated_query( - ::pg_query::Node* query) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.query_); - } - _impl_.query_ = query; - if (query) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.ExplainStmt.query) -} -inline ::pg_query::Node* ExplainStmt::release_query() { - - ::pg_query::Node* temp = _impl_.query_; - _impl_.query_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* ExplainStmt::unsafe_arena_release_query() { - // @@protoc_insertion_point(field_release:pg_query.ExplainStmt.query) - - ::pg_query::Node* temp = _impl_.query_; - _impl_.query_ = nullptr; - return temp; -} -inline ::pg_query::Node* ExplainStmt::_internal_mutable_query() { - - if (_impl_.query_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.query_ = p; - } - return _impl_.query_; -} -inline ::pg_query::Node* ExplainStmt::mutable_query() { - ::pg_query::Node* _msg = _internal_mutable_query(); - // @@protoc_insertion_point(field_mutable:pg_query.ExplainStmt.query) - return _msg; -} -inline void ExplainStmt::set_allocated_query(::pg_query::Node* query) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.query_; - } - if (query) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(query); - if (message_arena != submessage_arena) { - query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, query, submessage_arena); - } - - } else { - - } - _impl_.query_ = query; - // @@protoc_insertion_point(field_set_allocated:pg_query.ExplainStmt.query) -} - -// repeated .pg_query.Node options = 2 [json_name = "options"]; -inline int ExplainStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int ExplainStmt::options_size() const { - return _internal_options_size(); -} -inline void ExplainStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* ExplainStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.ExplainStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -ExplainStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.ExplainStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& ExplainStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& ExplainStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.ExplainStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* ExplainStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* ExplainStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.ExplainStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -ExplainStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.ExplainStmt.options) - return _impl_.options_; -} - -// ------------------------------------------------------------------- - -// CreateTableAsStmt - -// .pg_query.Node query = 1 [json_name = "query"]; -inline bool CreateTableAsStmt::_internal_has_query() const { - return this != internal_default_instance() && _impl_.query_ != nullptr; -} -inline bool CreateTableAsStmt::has_query() const { - return _internal_has_query(); -} -inline void CreateTableAsStmt::clear_query() { - if (GetArenaForAllocation() == nullptr && _impl_.query_ != nullptr) { - delete _impl_.query_; - } - _impl_.query_ = nullptr; -} -inline const ::pg_query::Node& CreateTableAsStmt::_internal_query() const { - const ::pg_query::Node* p = _impl_.query_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CreateTableAsStmt::query() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTableAsStmt.query) - return _internal_query(); -} -inline void CreateTableAsStmt::unsafe_arena_set_allocated_query( - ::pg_query::Node* query) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.query_); - } - _impl_.query_ = query; - if (query) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateTableAsStmt.query) -} -inline ::pg_query::Node* CreateTableAsStmt::release_query() { - - ::pg_query::Node* temp = _impl_.query_; - _impl_.query_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CreateTableAsStmt::unsafe_arena_release_query() { - // @@protoc_insertion_point(field_release:pg_query.CreateTableAsStmt.query) - - ::pg_query::Node* temp = _impl_.query_; - _impl_.query_ = nullptr; - return temp; -} -inline ::pg_query::Node* CreateTableAsStmt::_internal_mutable_query() { - - if (_impl_.query_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.query_ = p; - } - return _impl_.query_; -} -inline ::pg_query::Node* CreateTableAsStmt::mutable_query() { - ::pg_query::Node* _msg = _internal_mutable_query(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateTableAsStmt.query) - return _msg; -} -inline void CreateTableAsStmt::set_allocated_query(::pg_query::Node* query) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.query_; - } - if (query) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(query); - if (message_arena != submessage_arena) { - query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, query, submessage_arena); - } - - } else { - - } - _impl_.query_ = query; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateTableAsStmt.query) -} - -// .pg_query.IntoClause into = 2 [json_name = "into"]; -inline bool CreateTableAsStmt::_internal_has_into() const { - return this != internal_default_instance() && _impl_.into_ != nullptr; -} -inline bool CreateTableAsStmt::has_into() const { - return _internal_has_into(); -} -inline void CreateTableAsStmt::clear_into() { - if (GetArenaForAllocation() == nullptr && _impl_.into_ != nullptr) { - delete _impl_.into_; - } - _impl_.into_ = nullptr; -} -inline const ::pg_query::IntoClause& CreateTableAsStmt::_internal_into() const { - const ::pg_query::IntoClause* p = _impl_.into_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_IntoClause_default_instance_); -} -inline const ::pg_query::IntoClause& CreateTableAsStmt::into() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTableAsStmt.into) - return _internal_into(); -} -inline void CreateTableAsStmt::unsafe_arena_set_allocated_into( - ::pg_query::IntoClause* into) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.into_); - } - _impl_.into_ = into; - if (into) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateTableAsStmt.into) -} -inline ::pg_query::IntoClause* CreateTableAsStmt::release_into() { - - ::pg_query::IntoClause* temp = _impl_.into_; - _impl_.into_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::IntoClause* CreateTableAsStmt::unsafe_arena_release_into() { - // @@protoc_insertion_point(field_release:pg_query.CreateTableAsStmt.into) - - ::pg_query::IntoClause* temp = _impl_.into_; - _impl_.into_ = nullptr; - return temp; -} -inline ::pg_query::IntoClause* CreateTableAsStmt::_internal_mutable_into() { - - if (_impl_.into_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::IntoClause>(GetArenaForAllocation()); - _impl_.into_ = p; - } - return _impl_.into_; -} -inline ::pg_query::IntoClause* CreateTableAsStmt::mutable_into() { - ::pg_query::IntoClause* _msg = _internal_mutable_into(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateTableAsStmt.into) - return _msg; -} -inline void CreateTableAsStmt::set_allocated_into(::pg_query::IntoClause* into) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.into_; - } - if (into) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(into); - if (message_arena != submessage_arena) { - into = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, into, submessage_arena); - } - - } else { - - } - _impl_.into_ = into; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateTableAsStmt.into) -} - -// .pg_query.ObjectType objtype = 3 [json_name = "objtype"]; -inline void CreateTableAsStmt::clear_objtype() { - _impl_.objtype_ = 0; -} -inline ::pg_query::ObjectType CreateTableAsStmt::_internal_objtype() const { - return static_cast< ::pg_query::ObjectType >(_impl_.objtype_); -} -inline ::pg_query::ObjectType CreateTableAsStmt::objtype() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTableAsStmt.objtype) - return _internal_objtype(); -} -inline void CreateTableAsStmt::_internal_set_objtype(::pg_query::ObjectType value) { - - _impl_.objtype_ = value; -} -inline void CreateTableAsStmt::set_objtype(::pg_query::ObjectType value) { - _internal_set_objtype(value); - // @@protoc_insertion_point(field_set:pg_query.CreateTableAsStmt.objtype) -} - -// bool is_select_into = 4 [json_name = "is_select_into"]; -inline void CreateTableAsStmt::clear_is_select_into() { - _impl_.is_select_into_ = false; -} -inline bool CreateTableAsStmt::_internal_is_select_into() const { - return _impl_.is_select_into_; -} -inline bool CreateTableAsStmt::is_select_into() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTableAsStmt.is_select_into) - return _internal_is_select_into(); -} -inline void CreateTableAsStmt::_internal_set_is_select_into(bool value) { - - _impl_.is_select_into_ = value; -} -inline void CreateTableAsStmt::set_is_select_into(bool value) { - _internal_set_is_select_into(value); - // @@protoc_insertion_point(field_set:pg_query.CreateTableAsStmt.is_select_into) -} - -// bool if_not_exists = 5 [json_name = "if_not_exists"]; -inline void CreateTableAsStmt::clear_if_not_exists() { - _impl_.if_not_exists_ = false; -} -inline bool CreateTableAsStmt::_internal_if_not_exists() const { - return _impl_.if_not_exists_; -} -inline bool CreateTableAsStmt::if_not_exists() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTableAsStmt.if_not_exists) - return _internal_if_not_exists(); -} -inline void CreateTableAsStmt::_internal_set_if_not_exists(bool value) { - - _impl_.if_not_exists_ = value; -} -inline void CreateTableAsStmt::set_if_not_exists(bool value) { - _internal_set_if_not_exists(value); - // @@protoc_insertion_point(field_set:pg_query.CreateTableAsStmt.if_not_exists) -} - -// ------------------------------------------------------------------- - -// CreateSeqStmt - -// .pg_query.RangeVar sequence = 1 [json_name = "sequence"]; -inline bool CreateSeqStmt::_internal_has_sequence() const { - return this != internal_default_instance() && _impl_.sequence_ != nullptr; -} -inline bool CreateSeqStmt::has_sequence() const { - return _internal_has_sequence(); -} -inline void CreateSeqStmt::clear_sequence() { - if (GetArenaForAllocation() == nullptr && _impl_.sequence_ != nullptr) { - delete _impl_.sequence_; - } - _impl_.sequence_ = nullptr; -} -inline const ::pg_query::RangeVar& CreateSeqStmt::_internal_sequence() const { - const ::pg_query::RangeVar* p = _impl_.sequence_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& CreateSeqStmt::sequence() const { - // @@protoc_insertion_point(field_get:pg_query.CreateSeqStmt.sequence) - return _internal_sequence(); -} -inline void CreateSeqStmt::unsafe_arena_set_allocated_sequence( - ::pg_query::RangeVar* sequence) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.sequence_); - } - _impl_.sequence_ = sequence; - if (sequence) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateSeqStmt.sequence) -} -inline ::pg_query::RangeVar* CreateSeqStmt::release_sequence() { - - ::pg_query::RangeVar* temp = _impl_.sequence_; - _impl_.sequence_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* CreateSeqStmt::unsafe_arena_release_sequence() { - // @@protoc_insertion_point(field_release:pg_query.CreateSeqStmt.sequence) - - ::pg_query::RangeVar* temp = _impl_.sequence_; - _impl_.sequence_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* CreateSeqStmt::_internal_mutable_sequence() { - - if (_impl_.sequence_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.sequence_ = p; - } - return _impl_.sequence_; -} -inline ::pg_query::RangeVar* CreateSeqStmt::mutable_sequence() { - ::pg_query::RangeVar* _msg = _internal_mutable_sequence(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateSeqStmt.sequence) - return _msg; -} -inline void CreateSeqStmt::set_allocated_sequence(::pg_query::RangeVar* sequence) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.sequence_; - } - if (sequence) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(sequence); - if (message_arena != submessage_arena) { - sequence = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, sequence, submessage_arena); - } - - } else { - - } - _impl_.sequence_ = sequence; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateSeqStmt.sequence) -} - -// repeated .pg_query.Node options = 2 [json_name = "options"]; -inline int CreateSeqStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int CreateSeqStmt::options_size() const { - return _internal_options_size(); -} -inline void CreateSeqStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* CreateSeqStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateSeqStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateSeqStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateSeqStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& CreateSeqStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& CreateSeqStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateSeqStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* CreateSeqStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* CreateSeqStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.CreateSeqStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateSeqStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.CreateSeqStmt.options) - return _impl_.options_; -} - -// uint32 owner_id = 3 [json_name = "ownerId"]; -inline void CreateSeqStmt::clear_owner_id() { - _impl_.owner_id_ = 0u; -} -inline uint32_t CreateSeqStmt::_internal_owner_id() const { - return _impl_.owner_id_; -} -inline uint32_t CreateSeqStmt::owner_id() const { - // @@protoc_insertion_point(field_get:pg_query.CreateSeqStmt.owner_id) - return _internal_owner_id(); -} -inline void CreateSeqStmt::_internal_set_owner_id(uint32_t value) { - - _impl_.owner_id_ = value; -} -inline void CreateSeqStmt::set_owner_id(uint32_t value) { - _internal_set_owner_id(value); - // @@protoc_insertion_point(field_set:pg_query.CreateSeqStmt.owner_id) -} - -// bool for_identity = 4 [json_name = "for_identity"]; -inline void CreateSeqStmt::clear_for_identity() { - _impl_.for_identity_ = false; -} -inline bool CreateSeqStmt::_internal_for_identity() const { - return _impl_.for_identity_; -} -inline bool CreateSeqStmt::for_identity() const { - // @@protoc_insertion_point(field_get:pg_query.CreateSeqStmt.for_identity) - return _internal_for_identity(); -} -inline void CreateSeqStmt::_internal_set_for_identity(bool value) { - - _impl_.for_identity_ = value; -} -inline void CreateSeqStmt::set_for_identity(bool value) { - _internal_set_for_identity(value); - // @@protoc_insertion_point(field_set:pg_query.CreateSeqStmt.for_identity) -} - -// bool if_not_exists = 5 [json_name = "if_not_exists"]; -inline void CreateSeqStmt::clear_if_not_exists() { - _impl_.if_not_exists_ = false; -} -inline bool CreateSeqStmt::_internal_if_not_exists() const { - return _impl_.if_not_exists_; -} -inline bool CreateSeqStmt::if_not_exists() const { - // @@protoc_insertion_point(field_get:pg_query.CreateSeqStmt.if_not_exists) - return _internal_if_not_exists(); -} -inline void CreateSeqStmt::_internal_set_if_not_exists(bool value) { - - _impl_.if_not_exists_ = value; -} -inline void CreateSeqStmt::set_if_not_exists(bool value) { - _internal_set_if_not_exists(value); - // @@protoc_insertion_point(field_set:pg_query.CreateSeqStmt.if_not_exists) -} - -// ------------------------------------------------------------------- - -// AlterSeqStmt - -// .pg_query.RangeVar sequence = 1 [json_name = "sequence"]; -inline bool AlterSeqStmt::_internal_has_sequence() const { - return this != internal_default_instance() && _impl_.sequence_ != nullptr; -} -inline bool AlterSeqStmt::has_sequence() const { - return _internal_has_sequence(); -} -inline void AlterSeqStmt::clear_sequence() { - if (GetArenaForAllocation() == nullptr && _impl_.sequence_ != nullptr) { - delete _impl_.sequence_; - } - _impl_.sequence_ = nullptr; -} -inline const ::pg_query::RangeVar& AlterSeqStmt::_internal_sequence() const { - const ::pg_query::RangeVar* p = _impl_.sequence_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& AlterSeqStmt::sequence() const { - // @@protoc_insertion_point(field_get:pg_query.AlterSeqStmt.sequence) - return _internal_sequence(); -} -inline void AlterSeqStmt::unsafe_arena_set_allocated_sequence( - ::pg_query::RangeVar* sequence) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.sequence_); - } - _impl_.sequence_ = sequence; - if (sequence) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterSeqStmt.sequence) -} -inline ::pg_query::RangeVar* AlterSeqStmt::release_sequence() { - - ::pg_query::RangeVar* temp = _impl_.sequence_; - _impl_.sequence_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* AlterSeqStmt::unsafe_arena_release_sequence() { - // @@protoc_insertion_point(field_release:pg_query.AlterSeqStmt.sequence) - - ::pg_query::RangeVar* temp = _impl_.sequence_; - _impl_.sequence_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* AlterSeqStmt::_internal_mutable_sequence() { - - if (_impl_.sequence_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.sequence_ = p; - } - return _impl_.sequence_; -} -inline ::pg_query::RangeVar* AlterSeqStmt::mutable_sequence() { - ::pg_query::RangeVar* _msg = _internal_mutable_sequence(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterSeqStmt.sequence) - return _msg; -} -inline void AlterSeqStmt::set_allocated_sequence(::pg_query::RangeVar* sequence) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.sequence_; - } - if (sequence) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(sequence); - if (message_arena != submessage_arena) { - sequence = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, sequence, submessage_arena); - } - - } else { - - } - _impl_.sequence_ = sequence; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterSeqStmt.sequence) -} - -// repeated .pg_query.Node options = 2 [json_name = "options"]; -inline int AlterSeqStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int AlterSeqStmt::options_size() const { - return _internal_options_size(); -} -inline void AlterSeqStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* AlterSeqStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterSeqStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterSeqStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterSeqStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& AlterSeqStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& AlterSeqStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterSeqStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* AlterSeqStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* AlterSeqStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.AlterSeqStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterSeqStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.AlterSeqStmt.options) - return _impl_.options_; -} - -// bool for_identity = 3 [json_name = "for_identity"]; -inline void AlterSeqStmt::clear_for_identity() { - _impl_.for_identity_ = false; -} -inline bool AlterSeqStmt::_internal_for_identity() const { - return _impl_.for_identity_; -} -inline bool AlterSeqStmt::for_identity() const { - // @@protoc_insertion_point(field_get:pg_query.AlterSeqStmt.for_identity) - return _internal_for_identity(); -} -inline void AlterSeqStmt::_internal_set_for_identity(bool value) { - - _impl_.for_identity_ = value; -} -inline void AlterSeqStmt::set_for_identity(bool value) { - _internal_set_for_identity(value); - // @@protoc_insertion_point(field_set:pg_query.AlterSeqStmt.for_identity) -} - -// bool missing_ok = 4 [json_name = "missing_ok"]; -inline void AlterSeqStmt::clear_missing_ok() { - _impl_.missing_ok_ = false; -} -inline bool AlterSeqStmt::_internal_missing_ok() const { - return _impl_.missing_ok_; -} -inline bool AlterSeqStmt::missing_ok() const { - // @@protoc_insertion_point(field_get:pg_query.AlterSeqStmt.missing_ok) - return _internal_missing_ok(); -} -inline void AlterSeqStmt::_internal_set_missing_ok(bool value) { - - _impl_.missing_ok_ = value; -} -inline void AlterSeqStmt::set_missing_ok(bool value) { - _internal_set_missing_ok(value); - // @@protoc_insertion_point(field_set:pg_query.AlterSeqStmt.missing_ok) -} - -// ------------------------------------------------------------------- - -// VariableSetStmt - -// .pg_query.VariableSetKind kind = 1 [json_name = "kind"]; -inline void VariableSetStmt::clear_kind() { - _impl_.kind_ = 0; -} -inline ::pg_query::VariableSetKind VariableSetStmt::_internal_kind() const { - return static_cast< ::pg_query::VariableSetKind >(_impl_.kind_); -} -inline ::pg_query::VariableSetKind VariableSetStmt::kind() const { - // @@protoc_insertion_point(field_get:pg_query.VariableSetStmt.kind) - return _internal_kind(); -} -inline void VariableSetStmt::_internal_set_kind(::pg_query::VariableSetKind value) { - - _impl_.kind_ = value; -} -inline void VariableSetStmt::set_kind(::pg_query::VariableSetKind value) { - _internal_set_kind(value); - // @@protoc_insertion_point(field_set:pg_query.VariableSetStmt.kind) -} - -// string name = 2 [json_name = "name"]; -inline void VariableSetStmt::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& VariableSetStmt::name() const { - // @@protoc_insertion_point(field_get:pg_query.VariableSetStmt.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void VariableSetStmt::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.VariableSetStmt.name) -} -inline std::string* VariableSetStmt::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.VariableSetStmt.name) - return _s; -} -inline const std::string& VariableSetStmt::_internal_name() const { - return _impl_.name_.Get(); -} -inline void VariableSetStmt::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* VariableSetStmt::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* VariableSetStmt::release_name() { - // @@protoc_insertion_point(field_release:pg_query.VariableSetStmt.name) - return _impl_.name_.Release(); -} -inline void VariableSetStmt::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.VariableSetStmt.name) -} - -// repeated .pg_query.Node args = 3 [json_name = "args"]; -inline int VariableSetStmt::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int VariableSetStmt::args_size() const { - return _internal_args_size(); -} -inline void VariableSetStmt::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* VariableSetStmt::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.VariableSetStmt.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -VariableSetStmt::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.VariableSetStmt.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& VariableSetStmt::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& VariableSetStmt::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.VariableSetStmt.args) - return _internal_args(index); -} -inline ::pg_query::Node* VariableSetStmt::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* VariableSetStmt::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.VariableSetStmt.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -VariableSetStmt::args() const { - // @@protoc_insertion_point(field_list:pg_query.VariableSetStmt.args) - return _impl_.args_; -} - -// bool is_local = 4 [json_name = "is_local"]; -inline void VariableSetStmt::clear_is_local() { - _impl_.is_local_ = false; -} -inline bool VariableSetStmt::_internal_is_local() const { - return _impl_.is_local_; -} -inline bool VariableSetStmt::is_local() const { - // @@protoc_insertion_point(field_get:pg_query.VariableSetStmt.is_local) - return _internal_is_local(); -} -inline void VariableSetStmt::_internal_set_is_local(bool value) { - - _impl_.is_local_ = value; -} -inline void VariableSetStmt::set_is_local(bool value) { - _internal_set_is_local(value); - // @@protoc_insertion_point(field_set:pg_query.VariableSetStmt.is_local) -} - -// ------------------------------------------------------------------- - -// VariableShowStmt - -// string name = 1 [json_name = "name"]; -inline void VariableShowStmt::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& VariableShowStmt::name() const { - // @@protoc_insertion_point(field_get:pg_query.VariableShowStmt.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void VariableShowStmt::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.VariableShowStmt.name) -} -inline std::string* VariableShowStmt::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.VariableShowStmt.name) - return _s; -} -inline const std::string& VariableShowStmt::_internal_name() const { - return _impl_.name_.Get(); -} -inline void VariableShowStmt::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* VariableShowStmt::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* VariableShowStmt::release_name() { - // @@protoc_insertion_point(field_release:pg_query.VariableShowStmt.name) - return _impl_.name_.Release(); -} -inline void VariableShowStmt::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.VariableShowStmt.name) -} - -// ------------------------------------------------------------------- - -// DiscardStmt - -// .pg_query.DiscardMode target = 1 [json_name = "target"]; -inline void DiscardStmt::clear_target() { - _impl_.target_ = 0; -} -inline ::pg_query::DiscardMode DiscardStmt::_internal_target() const { - return static_cast< ::pg_query::DiscardMode >(_impl_.target_); -} -inline ::pg_query::DiscardMode DiscardStmt::target() const { - // @@protoc_insertion_point(field_get:pg_query.DiscardStmt.target) - return _internal_target(); -} -inline void DiscardStmt::_internal_set_target(::pg_query::DiscardMode value) { - - _impl_.target_ = value; -} -inline void DiscardStmt::set_target(::pg_query::DiscardMode value) { - _internal_set_target(value); - // @@protoc_insertion_point(field_set:pg_query.DiscardStmt.target) -} - -// ------------------------------------------------------------------- - -// CreateTrigStmt - -// bool replace = 1 [json_name = "replace"]; -inline void CreateTrigStmt::clear_replace() { - _impl_.replace_ = false; -} -inline bool CreateTrigStmt::_internal_replace() const { - return _impl_.replace_; -} -inline bool CreateTrigStmt::replace() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTrigStmt.replace) - return _internal_replace(); -} -inline void CreateTrigStmt::_internal_set_replace(bool value) { - - _impl_.replace_ = value; -} -inline void CreateTrigStmt::set_replace(bool value) { - _internal_set_replace(value); - // @@protoc_insertion_point(field_set:pg_query.CreateTrigStmt.replace) -} - -// bool isconstraint = 2 [json_name = "isconstraint"]; -inline void CreateTrigStmt::clear_isconstraint() { - _impl_.isconstraint_ = false; -} -inline bool CreateTrigStmt::_internal_isconstraint() const { - return _impl_.isconstraint_; -} -inline bool CreateTrigStmt::isconstraint() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTrigStmt.isconstraint) - return _internal_isconstraint(); -} -inline void CreateTrigStmt::_internal_set_isconstraint(bool value) { - - _impl_.isconstraint_ = value; -} -inline void CreateTrigStmt::set_isconstraint(bool value) { - _internal_set_isconstraint(value); - // @@protoc_insertion_point(field_set:pg_query.CreateTrigStmt.isconstraint) -} - -// string trigname = 3 [json_name = "trigname"]; -inline void CreateTrigStmt::clear_trigname() { - _impl_.trigname_.ClearToEmpty(); -} -inline const std::string& CreateTrigStmt::trigname() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTrigStmt.trigname) - return _internal_trigname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateTrigStmt::set_trigname(ArgT0&& arg0, ArgT... args) { - - _impl_.trigname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateTrigStmt.trigname) -} -inline std::string* CreateTrigStmt::mutable_trigname() { - std::string* _s = _internal_mutable_trigname(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateTrigStmt.trigname) - return _s; -} -inline const std::string& CreateTrigStmt::_internal_trigname() const { - return _impl_.trigname_.Get(); -} -inline void CreateTrigStmt::_internal_set_trigname(const std::string& value) { - - _impl_.trigname_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateTrigStmt::_internal_mutable_trigname() { - - return _impl_.trigname_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateTrigStmt::release_trigname() { - // @@protoc_insertion_point(field_release:pg_query.CreateTrigStmt.trigname) - return _impl_.trigname_.Release(); -} -inline void CreateTrigStmt::set_allocated_trigname(std::string* trigname) { - if (trigname != nullptr) { - - } else { - - } - _impl_.trigname_.SetAllocated(trigname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.trigname_.IsDefault()) { - _impl_.trigname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateTrigStmt.trigname) -} - -// .pg_query.RangeVar relation = 4 [json_name = "relation"]; -inline bool CreateTrigStmt::_internal_has_relation() const { - return this != internal_default_instance() && _impl_.relation_ != nullptr; -} -inline bool CreateTrigStmt::has_relation() const { - return _internal_has_relation(); -} -inline void CreateTrigStmt::clear_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.relation_ != nullptr) { - delete _impl_.relation_; - } - _impl_.relation_ = nullptr; -} -inline const ::pg_query::RangeVar& CreateTrigStmt::_internal_relation() const { - const ::pg_query::RangeVar* p = _impl_.relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& CreateTrigStmt::relation() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTrigStmt.relation) - return _internal_relation(); -} -inline void CreateTrigStmt::unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.relation_); - } - _impl_.relation_ = relation; - if (relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateTrigStmt.relation) -} -inline ::pg_query::RangeVar* CreateTrigStmt::release_relation() { - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* CreateTrigStmt::unsafe_arena_release_relation() { - // @@protoc_insertion_point(field_release:pg_query.CreateTrigStmt.relation) - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* CreateTrigStmt::_internal_mutable_relation() { - - if (_impl_.relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.relation_ = p; - } - return _impl_.relation_; -} -inline ::pg_query::RangeVar* CreateTrigStmt::mutable_relation() { - ::pg_query::RangeVar* _msg = _internal_mutable_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateTrigStmt.relation) - return _msg; -} -inline void CreateTrigStmt::set_allocated_relation(::pg_query::RangeVar* relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.relation_; - } - if (relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(relation); - if (message_arena != submessage_arena) { - relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, relation, submessage_arena); - } - - } else { - - } - _impl_.relation_ = relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateTrigStmt.relation) -} - -// repeated .pg_query.Node funcname = 5 [json_name = "funcname"]; -inline int CreateTrigStmt::_internal_funcname_size() const { - return _impl_.funcname_.size(); -} -inline int CreateTrigStmt::funcname_size() const { - return _internal_funcname_size(); -} -inline void CreateTrigStmt::clear_funcname() { - _impl_.funcname_.Clear(); -} -inline ::pg_query::Node* CreateTrigStmt::mutable_funcname(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateTrigStmt.funcname) - return _impl_.funcname_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateTrigStmt::mutable_funcname() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateTrigStmt.funcname) - return &_impl_.funcname_; -} -inline const ::pg_query::Node& CreateTrigStmt::_internal_funcname(int index) const { - return _impl_.funcname_.Get(index); -} -inline const ::pg_query::Node& CreateTrigStmt::funcname(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateTrigStmt.funcname) - return _internal_funcname(index); -} -inline ::pg_query::Node* CreateTrigStmt::_internal_add_funcname() { - return _impl_.funcname_.Add(); -} -inline ::pg_query::Node* CreateTrigStmt::add_funcname() { - ::pg_query::Node* _add = _internal_add_funcname(); - // @@protoc_insertion_point(field_add:pg_query.CreateTrigStmt.funcname) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateTrigStmt::funcname() const { - // @@protoc_insertion_point(field_list:pg_query.CreateTrigStmt.funcname) - return _impl_.funcname_; -} - -// repeated .pg_query.Node args = 6 [json_name = "args"]; -inline int CreateTrigStmt::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int CreateTrigStmt::args_size() const { - return _internal_args_size(); -} -inline void CreateTrigStmt::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* CreateTrigStmt::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateTrigStmt.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateTrigStmt::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateTrigStmt.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& CreateTrigStmt::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& CreateTrigStmt::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateTrigStmt.args) - return _internal_args(index); -} -inline ::pg_query::Node* CreateTrigStmt::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* CreateTrigStmt::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.CreateTrigStmt.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateTrigStmt::args() const { - // @@protoc_insertion_point(field_list:pg_query.CreateTrigStmt.args) - return _impl_.args_; -} - -// bool row = 7 [json_name = "row"]; -inline void CreateTrigStmt::clear_row() { - _impl_.row_ = false; -} -inline bool CreateTrigStmt::_internal_row() const { - return _impl_.row_; -} -inline bool CreateTrigStmt::row() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTrigStmt.row) - return _internal_row(); -} -inline void CreateTrigStmt::_internal_set_row(bool value) { - - _impl_.row_ = value; -} -inline void CreateTrigStmt::set_row(bool value) { - _internal_set_row(value); - // @@protoc_insertion_point(field_set:pg_query.CreateTrigStmt.row) -} - -// int32 timing = 8 [json_name = "timing"]; -inline void CreateTrigStmt::clear_timing() { - _impl_.timing_ = 0; -} -inline int32_t CreateTrigStmt::_internal_timing() const { - return _impl_.timing_; -} -inline int32_t CreateTrigStmt::timing() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTrigStmt.timing) - return _internal_timing(); -} -inline void CreateTrigStmt::_internal_set_timing(int32_t value) { - - _impl_.timing_ = value; -} -inline void CreateTrigStmt::set_timing(int32_t value) { - _internal_set_timing(value); - // @@protoc_insertion_point(field_set:pg_query.CreateTrigStmt.timing) -} - -// int32 events = 9 [json_name = "events"]; -inline void CreateTrigStmt::clear_events() { - _impl_.events_ = 0; -} -inline int32_t CreateTrigStmt::_internal_events() const { - return _impl_.events_; -} -inline int32_t CreateTrigStmt::events() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTrigStmt.events) - return _internal_events(); -} -inline void CreateTrigStmt::_internal_set_events(int32_t value) { - - _impl_.events_ = value; -} -inline void CreateTrigStmt::set_events(int32_t value) { - _internal_set_events(value); - // @@protoc_insertion_point(field_set:pg_query.CreateTrigStmt.events) -} - -// repeated .pg_query.Node columns = 10 [json_name = "columns"]; -inline int CreateTrigStmt::_internal_columns_size() const { - return _impl_.columns_.size(); -} -inline int CreateTrigStmt::columns_size() const { - return _internal_columns_size(); -} -inline void CreateTrigStmt::clear_columns() { - _impl_.columns_.Clear(); -} -inline ::pg_query::Node* CreateTrigStmt::mutable_columns(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateTrigStmt.columns) - return _impl_.columns_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateTrigStmt::mutable_columns() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateTrigStmt.columns) - return &_impl_.columns_; -} -inline const ::pg_query::Node& CreateTrigStmt::_internal_columns(int index) const { - return _impl_.columns_.Get(index); -} -inline const ::pg_query::Node& CreateTrigStmt::columns(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateTrigStmt.columns) - return _internal_columns(index); -} -inline ::pg_query::Node* CreateTrigStmt::_internal_add_columns() { - return _impl_.columns_.Add(); -} -inline ::pg_query::Node* CreateTrigStmt::add_columns() { - ::pg_query::Node* _add = _internal_add_columns(); - // @@protoc_insertion_point(field_add:pg_query.CreateTrigStmt.columns) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateTrigStmt::columns() const { - // @@protoc_insertion_point(field_list:pg_query.CreateTrigStmt.columns) - return _impl_.columns_; -} - -// .pg_query.Node when_clause = 11 [json_name = "whenClause"]; -inline bool CreateTrigStmt::_internal_has_when_clause() const { - return this != internal_default_instance() && _impl_.when_clause_ != nullptr; -} -inline bool CreateTrigStmt::has_when_clause() const { - return _internal_has_when_clause(); -} -inline void CreateTrigStmt::clear_when_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.when_clause_ != nullptr) { - delete _impl_.when_clause_; - } - _impl_.when_clause_ = nullptr; -} -inline const ::pg_query::Node& CreateTrigStmt::_internal_when_clause() const { - const ::pg_query::Node* p = _impl_.when_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CreateTrigStmt::when_clause() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTrigStmt.when_clause) - return _internal_when_clause(); -} -inline void CreateTrigStmt::unsafe_arena_set_allocated_when_clause( - ::pg_query::Node* when_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.when_clause_); - } - _impl_.when_clause_ = when_clause; - if (when_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateTrigStmt.when_clause) -} -inline ::pg_query::Node* CreateTrigStmt::release_when_clause() { - - ::pg_query::Node* temp = _impl_.when_clause_; - _impl_.when_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CreateTrigStmt::unsafe_arena_release_when_clause() { - // @@protoc_insertion_point(field_release:pg_query.CreateTrigStmt.when_clause) - - ::pg_query::Node* temp = _impl_.when_clause_; - _impl_.when_clause_ = nullptr; - return temp; -} -inline ::pg_query::Node* CreateTrigStmt::_internal_mutable_when_clause() { - - if (_impl_.when_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.when_clause_ = p; - } - return _impl_.when_clause_; -} -inline ::pg_query::Node* CreateTrigStmt::mutable_when_clause() { - ::pg_query::Node* _msg = _internal_mutable_when_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateTrigStmt.when_clause) - return _msg; -} -inline void CreateTrigStmt::set_allocated_when_clause(::pg_query::Node* when_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.when_clause_; - } - if (when_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(when_clause); - if (message_arena != submessage_arena) { - when_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, when_clause, submessage_arena); - } - - } else { - - } - _impl_.when_clause_ = when_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateTrigStmt.when_clause) -} - -// repeated .pg_query.Node transition_rels = 12 [json_name = "transitionRels"]; -inline int CreateTrigStmt::_internal_transition_rels_size() const { - return _impl_.transition_rels_.size(); -} -inline int CreateTrigStmt::transition_rels_size() const { - return _internal_transition_rels_size(); -} -inline void CreateTrigStmt::clear_transition_rels() { - _impl_.transition_rels_.Clear(); -} -inline ::pg_query::Node* CreateTrigStmt::mutable_transition_rels(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateTrigStmt.transition_rels) - return _impl_.transition_rels_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateTrigStmt::mutable_transition_rels() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateTrigStmt.transition_rels) - return &_impl_.transition_rels_; -} -inline const ::pg_query::Node& CreateTrigStmt::_internal_transition_rels(int index) const { - return _impl_.transition_rels_.Get(index); -} -inline const ::pg_query::Node& CreateTrigStmt::transition_rels(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateTrigStmt.transition_rels) - return _internal_transition_rels(index); -} -inline ::pg_query::Node* CreateTrigStmt::_internal_add_transition_rels() { - return _impl_.transition_rels_.Add(); -} -inline ::pg_query::Node* CreateTrigStmt::add_transition_rels() { - ::pg_query::Node* _add = _internal_add_transition_rels(); - // @@protoc_insertion_point(field_add:pg_query.CreateTrigStmt.transition_rels) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateTrigStmt::transition_rels() const { - // @@protoc_insertion_point(field_list:pg_query.CreateTrigStmt.transition_rels) - return _impl_.transition_rels_; -} - -// bool deferrable = 13 [json_name = "deferrable"]; -inline void CreateTrigStmt::clear_deferrable() { - _impl_.deferrable_ = false; -} -inline bool CreateTrigStmt::_internal_deferrable() const { - return _impl_.deferrable_; -} -inline bool CreateTrigStmt::deferrable() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTrigStmt.deferrable) - return _internal_deferrable(); -} -inline void CreateTrigStmt::_internal_set_deferrable(bool value) { - - _impl_.deferrable_ = value; -} -inline void CreateTrigStmt::set_deferrable(bool value) { - _internal_set_deferrable(value); - // @@protoc_insertion_point(field_set:pg_query.CreateTrigStmt.deferrable) -} - -// bool initdeferred = 14 [json_name = "initdeferred"]; -inline void CreateTrigStmt::clear_initdeferred() { - _impl_.initdeferred_ = false; -} -inline bool CreateTrigStmt::_internal_initdeferred() const { - return _impl_.initdeferred_; -} -inline bool CreateTrigStmt::initdeferred() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTrigStmt.initdeferred) - return _internal_initdeferred(); -} -inline void CreateTrigStmt::_internal_set_initdeferred(bool value) { - - _impl_.initdeferred_ = value; -} -inline void CreateTrigStmt::set_initdeferred(bool value) { - _internal_set_initdeferred(value); - // @@protoc_insertion_point(field_set:pg_query.CreateTrigStmt.initdeferred) -} - -// .pg_query.RangeVar constrrel = 15 [json_name = "constrrel"]; -inline bool CreateTrigStmt::_internal_has_constrrel() const { - return this != internal_default_instance() && _impl_.constrrel_ != nullptr; -} -inline bool CreateTrigStmt::has_constrrel() const { - return _internal_has_constrrel(); -} -inline void CreateTrigStmt::clear_constrrel() { - if (GetArenaForAllocation() == nullptr && _impl_.constrrel_ != nullptr) { - delete _impl_.constrrel_; - } - _impl_.constrrel_ = nullptr; -} -inline const ::pg_query::RangeVar& CreateTrigStmt::_internal_constrrel() const { - const ::pg_query::RangeVar* p = _impl_.constrrel_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& CreateTrigStmt::constrrel() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTrigStmt.constrrel) - return _internal_constrrel(); -} -inline void CreateTrigStmt::unsafe_arena_set_allocated_constrrel( - ::pg_query::RangeVar* constrrel) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.constrrel_); - } - _impl_.constrrel_ = constrrel; - if (constrrel) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateTrigStmt.constrrel) -} -inline ::pg_query::RangeVar* CreateTrigStmt::release_constrrel() { - - ::pg_query::RangeVar* temp = _impl_.constrrel_; - _impl_.constrrel_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* CreateTrigStmt::unsafe_arena_release_constrrel() { - // @@protoc_insertion_point(field_release:pg_query.CreateTrigStmt.constrrel) - - ::pg_query::RangeVar* temp = _impl_.constrrel_; - _impl_.constrrel_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* CreateTrigStmt::_internal_mutable_constrrel() { - - if (_impl_.constrrel_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.constrrel_ = p; - } - return _impl_.constrrel_; -} -inline ::pg_query::RangeVar* CreateTrigStmt::mutable_constrrel() { - ::pg_query::RangeVar* _msg = _internal_mutable_constrrel(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateTrigStmt.constrrel) - return _msg; -} -inline void CreateTrigStmt::set_allocated_constrrel(::pg_query::RangeVar* constrrel) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.constrrel_; - } - if (constrrel) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(constrrel); - if (message_arena != submessage_arena) { - constrrel = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, constrrel, submessage_arena); - } - - } else { - - } - _impl_.constrrel_ = constrrel; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateTrigStmt.constrrel) -} - -// ------------------------------------------------------------------- - -// CreatePLangStmt - -// bool replace = 1 [json_name = "replace"]; -inline void CreatePLangStmt::clear_replace() { - _impl_.replace_ = false; -} -inline bool CreatePLangStmt::_internal_replace() const { - return _impl_.replace_; -} -inline bool CreatePLangStmt::replace() const { - // @@protoc_insertion_point(field_get:pg_query.CreatePLangStmt.replace) - return _internal_replace(); -} -inline void CreatePLangStmt::_internal_set_replace(bool value) { - - _impl_.replace_ = value; -} -inline void CreatePLangStmt::set_replace(bool value) { - _internal_set_replace(value); - // @@protoc_insertion_point(field_set:pg_query.CreatePLangStmt.replace) -} - -// string plname = 2 [json_name = "plname"]; -inline void CreatePLangStmt::clear_plname() { - _impl_.plname_.ClearToEmpty(); -} -inline const std::string& CreatePLangStmt::plname() const { - // @@protoc_insertion_point(field_get:pg_query.CreatePLangStmt.plname) - return _internal_plname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreatePLangStmt::set_plname(ArgT0&& arg0, ArgT... args) { - - _impl_.plname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreatePLangStmt.plname) -} -inline std::string* CreatePLangStmt::mutable_plname() { - std::string* _s = _internal_mutable_plname(); - // @@protoc_insertion_point(field_mutable:pg_query.CreatePLangStmt.plname) - return _s; -} -inline const std::string& CreatePLangStmt::_internal_plname() const { - return _impl_.plname_.Get(); -} -inline void CreatePLangStmt::_internal_set_plname(const std::string& value) { - - _impl_.plname_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreatePLangStmt::_internal_mutable_plname() { - - return _impl_.plname_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreatePLangStmt::release_plname() { - // @@protoc_insertion_point(field_release:pg_query.CreatePLangStmt.plname) - return _impl_.plname_.Release(); -} -inline void CreatePLangStmt::set_allocated_plname(std::string* plname) { - if (plname != nullptr) { - - } else { - - } - _impl_.plname_.SetAllocated(plname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.plname_.IsDefault()) { - _impl_.plname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreatePLangStmt.plname) -} - -// repeated .pg_query.Node plhandler = 3 [json_name = "plhandler"]; -inline int CreatePLangStmt::_internal_plhandler_size() const { - return _impl_.plhandler_.size(); -} -inline int CreatePLangStmt::plhandler_size() const { - return _internal_plhandler_size(); -} -inline void CreatePLangStmt::clear_plhandler() { - _impl_.plhandler_.Clear(); -} -inline ::pg_query::Node* CreatePLangStmt::mutable_plhandler(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreatePLangStmt.plhandler) - return _impl_.plhandler_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreatePLangStmt::mutable_plhandler() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreatePLangStmt.plhandler) - return &_impl_.plhandler_; -} -inline const ::pg_query::Node& CreatePLangStmt::_internal_plhandler(int index) const { - return _impl_.plhandler_.Get(index); -} -inline const ::pg_query::Node& CreatePLangStmt::plhandler(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreatePLangStmt.plhandler) - return _internal_plhandler(index); -} -inline ::pg_query::Node* CreatePLangStmt::_internal_add_plhandler() { - return _impl_.plhandler_.Add(); -} -inline ::pg_query::Node* CreatePLangStmt::add_plhandler() { - ::pg_query::Node* _add = _internal_add_plhandler(); - // @@protoc_insertion_point(field_add:pg_query.CreatePLangStmt.plhandler) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreatePLangStmt::plhandler() const { - // @@protoc_insertion_point(field_list:pg_query.CreatePLangStmt.plhandler) - return _impl_.plhandler_; -} - -// repeated .pg_query.Node plinline = 4 [json_name = "plinline"]; -inline int CreatePLangStmt::_internal_plinline_size() const { - return _impl_.plinline_.size(); -} -inline int CreatePLangStmt::plinline_size() const { - return _internal_plinline_size(); -} -inline void CreatePLangStmt::clear_plinline() { - _impl_.plinline_.Clear(); -} -inline ::pg_query::Node* CreatePLangStmt::mutable_plinline(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreatePLangStmt.plinline) - return _impl_.plinline_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreatePLangStmt::mutable_plinline() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreatePLangStmt.plinline) - return &_impl_.plinline_; -} -inline const ::pg_query::Node& CreatePLangStmt::_internal_plinline(int index) const { - return _impl_.plinline_.Get(index); -} -inline const ::pg_query::Node& CreatePLangStmt::plinline(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreatePLangStmt.plinline) - return _internal_plinline(index); -} -inline ::pg_query::Node* CreatePLangStmt::_internal_add_plinline() { - return _impl_.plinline_.Add(); -} -inline ::pg_query::Node* CreatePLangStmt::add_plinline() { - ::pg_query::Node* _add = _internal_add_plinline(); - // @@protoc_insertion_point(field_add:pg_query.CreatePLangStmt.plinline) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreatePLangStmt::plinline() const { - // @@protoc_insertion_point(field_list:pg_query.CreatePLangStmt.plinline) - return _impl_.plinline_; -} - -// repeated .pg_query.Node plvalidator = 5 [json_name = "plvalidator"]; -inline int CreatePLangStmt::_internal_plvalidator_size() const { - return _impl_.plvalidator_.size(); -} -inline int CreatePLangStmt::plvalidator_size() const { - return _internal_plvalidator_size(); -} -inline void CreatePLangStmt::clear_plvalidator() { - _impl_.plvalidator_.Clear(); -} -inline ::pg_query::Node* CreatePLangStmt::mutable_plvalidator(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreatePLangStmt.plvalidator) - return _impl_.plvalidator_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreatePLangStmt::mutable_plvalidator() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreatePLangStmt.plvalidator) - return &_impl_.plvalidator_; -} -inline const ::pg_query::Node& CreatePLangStmt::_internal_plvalidator(int index) const { - return _impl_.plvalidator_.Get(index); -} -inline const ::pg_query::Node& CreatePLangStmt::plvalidator(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreatePLangStmt.plvalidator) - return _internal_plvalidator(index); -} -inline ::pg_query::Node* CreatePLangStmt::_internal_add_plvalidator() { - return _impl_.plvalidator_.Add(); -} -inline ::pg_query::Node* CreatePLangStmt::add_plvalidator() { - ::pg_query::Node* _add = _internal_add_plvalidator(); - // @@protoc_insertion_point(field_add:pg_query.CreatePLangStmt.plvalidator) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreatePLangStmt::plvalidator() const { - // @@protoc_insertion_point(field_list:pg_query.CreatePLangStmt.plvalidator) - return _impl_.plvalidator_; -} - -// bool pltrusted = 6 [json_name = "pltrusted"]; -inline void CreatePLangStmt::clear_pltrusted() { - _impl_.pltrusted_ = false; -} -inline bool CreatePLangStmt::_internal_pltrusted() const { - return _impl_.pltrusted_; -} -inline bool CreatePLangStmt::pltrusted() const { - // @@protoc_insertion_point(field_get:pg_query.CreatePLangStmt.pltrusted) - return _internal_pltrusted(); -} -inline void CreatePLangStmt::_internal_set_pltrusted(bool value) { - - _impl_.pltrusted_ = value; -} -inline void CreatePLangStmt::set_pltrusted(bool value) { - _internal_set_pltrusted(value); - // @@protoc_insertion_point(field_set:pg_query.CreatePLangStmt.pltrusted) -} - -// ------------------------------------------------------------------- - -// CreateRoleStmt - -// .pg_query.RoleStmtType stmt_type = 1 [json_name = "stmt_type"]; -inline void CreateRoleStmt::clear_stmt_type() { - _impl_.stmt_type_ = 0; -} -inline ::pg_query::RoleStmtType CreateRoleStmt::_internal_stmt_type() const { - return static_cast< ::pg_query::RoleStmtType >(_impl_.stmt_type_); -} -inline ::pg_query::RoleStmtType CreateRoleStmt::stmt_type() const { - // @@protoc_insertion_point(field_get:pg_query.CreateRoleStmt.stmt_type) - return _internal_stmt_type(); -} -inline void CreateRoleStmt::_internal_set_stmt_type(::pg_query::RoleStmtType value) { - - _impl_.stmt_type_ = value; -} -inline void CreateRoleStmt::set_stmt_type(::pg_query::RoleStmtType value) { - _internal_set_stmt_type(value); - // @@protoc_insertion_point(field_set:pg_query.CreateRoleStmt.stmt_type) -} - -// string role = 2 [json_name = "role"]; -inline void CreateRoleStmt::clear_role() { - _impl_.role_.ClearToEmpty(); -} -inline const std::string& CreateRoleStmt::role() const { - // @@protoc_insertion_point(field_get:pg_query.CreateRoleStmt.role) - return _internal_role(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateRoleStmt::set_role(ArgT0&& arg0, ArgT... args) { - - _impl_.role_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateRoleStmt.role) -} -inline std::string* CreateRoleStmt::mutable_role() { - std::string* _s = _internal_mutable_role(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateRoleStmt.role) - return _s; -} -inline const std::string& CreateRoleStmt::_internal_role() const { - return _impl_.role_.Get(); -} -inline void CreateRoleStmt::_internal_set_role(const std::string& value) { - - _impl_.role_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateRoleStmt::_internal_mutable_role() { - - return _impl_.role_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateRoleStmt::release_role() { - // @@protoc_insertion_point(field_release:pg_query.CreateRoleStmt.role) - return _impl_.role_.Release(); -} -inline void CreateRoleStmt::set_allocated_role(std::string* role) { - if (role != nullptr) { - - } else { - - } - _impl_.role_.SetAllocated(role, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.role_.IsDefault()) { - _impl_.role_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateRoleStmt.role) -} - -// repeated .pg_query.Node options = 3 [json_name = "options"]; -inline int CreateRoleStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int CreateRoleStmt::options_size() const { - return _internal_options_size(); -} -inline void CreateRoleStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* CreateRoleStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateRoleStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateRoleStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateRoleStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& CreateRoleStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& CreateRoleStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateRoleStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* CreateRoleStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* CreateRoleStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.CreateRoleStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateRoleStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.CreateRoleStmt.options) - return _impl_.options_; -} - -// ------------------------------------------------------------------- - -// AlterRoleStmt - -// .pg_query.RoleSpec role = 1 [json_name = "role"]; -inline bool AlterRoleStmt::_internal_has_role() const { - return this != internal_default_instance() && _impl_.role_ != nullptr; -} -inline bool AlterRoleStmt::has_role() const { - return _internal_has_role(); -} -inline void AlterRoleStmt::clear_role() { - if (GetArenaForAllocation() == nullptr && _impl_.role_ != nullptr) { - delete _impl_.role_; - } - _impl_.role_ = nullptr; -} -inline const ::pg_query::RoleSpec& AlterRoleStmt::_internal_role() const { - const ::pg_query::RoleSpec* p = _impl_.role_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RoleSpec_default_instance_); -} -inline const ::pg_query::RoleSpec& AlterRoleStmt::role() const { - // @@protoc_insertion_point(field_get:pg_query.AlterRoleStmt.role) - return _internal_role(); -} -inline void AlterRoleStmt::unsafe_arena_set_allocated_role( - ::pg_query::RoleSpec* role) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.role_); - } - _impl_.role_ = role; - if (role) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterRoleStmt.role) -} -inline ::pg_query::RoleSpec* AlterRoleStmt::release_role() { - - ::pg_query::RoleSpec* temp = _impl_.role_; - _impl_.role_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RoleSpec* AlterRoleStmt::unsafe_arena_release_role() { - // @@protoc_insertion_point(field_release:pg_query.AlterRoleStmt.role) - - ::pg_query::RoleSpec* temp = _impl_.role_; - _impl_.role_ = nullptr; - return temp; -} -inline ::pg_query::RoleSpec* AlterRoleStmt::_internal_mutable_role() { - - if (_impl_.role_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RoleSpec>(GetArenaForAllocation()); - _impl_.role_ = p; - } - return _impl_.role_; -} -inline ::pg_query::RoleSpec* AlterRoleStmt::mutable_role() { - ::pg_query::RoleSpec* _msg = _internal_mutable_role(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterRoleStmt.role) - return _msg; -} -inline void AlterRoleStmt::set_allocated_role(::pg_query::RoleSpec* role) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.role_; - } - if (role) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(role); - if (message_arena != submessage_arena) { - role = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, role, submessage_arena); - } - - } else { - - } - _impl_.role_ = role; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterRoleStmt.role) -} - -// repeated .pg_query.Node options = 2 [json_name = "options"]; -inline int AlterRoleStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int AlterRoleStmt::options_size() const { - return _internal_options_size(); -} -inline void AlterRoleStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* AlterRoleStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterRoleStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterRoleStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterRoleStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& AlterRoleStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& AlterRoleStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterRoleStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* AlterRoleStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* AlterRoleStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.AlterRoleStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterRoleStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.AlterRoleStmt.options) - return _impl_.options_; -} - -// int32 action = 3 [json_name = "action"]; -inline void AlterRoleStmt::clear_action() { - _impl_.action_ = 0; -} -inline int32_t AlterRoleStmt::_internal_action() const { - return _impl_.action_; -} -inline int32_t AlterRoleStmt::action() const { - // @@protoc_insertion_point(field_get:pg_query.AlterRoleStmt.action) - return _internal_action(); -} -inline void AlterRoleStmt::_internal_set_action(int32_t value) { - - _impl_.action_ = value; -} -inline void AlterRoleStmt::set_action(int32_t value) { - _internal_set_action(value); - // @@protoc_insertion_point(field_set:pg_query.AlterRoleStmt.action) -} - -// ------------------------------------------------------------------- - -// DropRoleStmt - -// repeated .pg_query.Node roles = 1 [json_name = "roles"]; -inline int DropRoleStmt::_internal_roles_size() const { - return _impl_.roles_.size(); -} -inline int DropRoleStmt::roles_size() const { - return _internal_roles_size(); -} -inline void DropRoleStmt::clear_roles() { - _impl_.roles_.Clear(); -} -inline ::pg_query::Node* DropRoleStmt::mutable_roles(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.DropRoleStmt.roles) - return _impl_.roles_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -DropRoleStmt::mutable_roles() { - // @@protoc_insertion_point(field_mutable_list:pg_query.DropRoleStmt.roles) - return &_impl_.roles_; -} -inline const ::pg_query::Node& DropRoleStmt::_internal_roles(int index) const { - return _impl_.roles_.Get(index); -} -inline const ::pg_query::Node& DropRoleStmt::roles(int index) const { - // @@protoc_insertion_point(field_get:pg_query.DropRoleStmt.roles) - return _internal_roles(index); -} -inline ::pg_query::Node* DropRoleStmt::_internal_add_roles() { - return _impl_.roles_.Add(); -} -inline ::pg_query::Node* DropRoleStmt::add_roles() { - ::pg_query::Node* _add = _internal_add_roles(); - // @@protoc_insertion_point(field_add:pg_query.DropRoleStmt.roles) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -DropRoleStmt::roles() const { - // @@protoc_insertion_point(field_list:pg_query.DropRoleStmt.roles) - return _impl_.roles_; -} - -// bool missing_ok = 2 [json_name = "missing_ok"]; -inline void DropRoleStmt::clear_missing_ok() { - _impl_.missing_ok_ = false; -} -inline bool DropRoleStmt::_internal_missing_ok() const { - return _impl_.missing_ok_; -} -inline bool DropRoleStmt::missing_ok() const { - // @@protoc_insertion_point(field_get:pg_query.DropRoleStmt.missing_ok) - return _internal_missing_ok(); -} -inline void DropRoleStmt::_internal_set_missing_ok(bool value) { - - _impl_.missing_ok_ = value; -} -inline void DropRoleStmt::set_missing_ok(bool value) { - _internal_set_missing_ok(value); - // @@protoc_insertion_point(field_set:pg_query.DropRoleStmt.missing_ok) -} - -// ------------------------------------------------------------------- - -// LockStmt - -// repeated .pg_query.Node relations = 1 [json_name = "relations"]; -inline int LockStmt::_internal_relations_size() const { - return _impl_.relations_.size(); -} -inline int LockStmt::relations_size() const { - return _internal_relations_size(); -} -inline void LockStmt::clear_relations() { - _impl_.relations_.Clear(); -} -inline ::pg_query::Node* LockStmt::mutable_relations(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.LockStmt.relations) - return _impl_.relations_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -LockStmt::mutable_relations() { - // @@protoc_insertion_point(field_mutable_list:pg_query.LockStmt.relations) - return &_impl_.relations_; -} -inline const ::pg_query::Node& LockStmt::_internal_relations(int index) const { - return _impl_.relations_.Get(index); -} -inline const ::pg_query::Node& LockStmt::relations(int index) const { - // @@protoc_insertion_point(field_get:pg_query.LockStmt.relations) - return _internal_relations(index); -} -inline ::pg_query::Node* LockStmt::_internal_add_relations() { - return _impl_.relations_.Add(); -} -inline ::pg_query::Node* LockStmt::add_relations() { - ::pg_query::Node* _add = _internal_add_relations(); - // @@protoc_insertion_point(field_add:pg_query.LockStmt.relations) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -LockStmt::relations() const { - // @@protoc_insertion_point(field_list:pg_query.LockStmt.relations) - return _impl_.relations_; -} - -// int32 mode = 2 [json_name = "mode"]; -inline void LockStmt::clear_mode() { - _impl_.mode_ = 0; -} -inline int32_t LockStmt::_internal_mode() const { - return _impl_.mode_; -} -inline int32_t LockStmt::mode() const { - // @@protoc_insertion_point(field_get:pg_query.LockStmt.mode) - return _internal_mode(); -} -inline void LockStmt::_internal_set_mode(int32_t value) { - - _impl_.mode_ = value; -} -inline void LockStmt::set_mode(int32_t value) { - _internal_set_mode(value); - // @@protoc_insertion_point(field_set:pg_query.LockStmt.mode) -} - -// bool nowait = 3 [json_name = "nowait"]; -inline void LockStmt::clear_nowait() { - _impl_.nowait_ = false; -} -inline bool LockStmt::_internal_nowait() const { - return _impl_.nowait_; -} -inline bool LockStmt::nowait() const { - // @@protoc_insertion_point(field_get:pg_query.LockStmt.nowait) - return _internal_nowait(); -} -inline void LockStmt::_internal_set_nowait(bool value) { - - _impl_.nowait_ = value; -} -inline void LockStmt::set_nowait(bool value) { - _internal_set_nowait(value); - // @@protoc_insertion_point(field_set:pg_query.LockStmt.nowait) -} - -// ------------------------------------------------------------------- - -// ConstraintsSetStmt - -// repeated .pg_query.Node constraints = 1 [json_name = "constraints"]; -inline int ConstraintsSetStmt::_internal_constraints_size() const { - return _impl_.constraints_.size(); -} -inline int ConstraintsSetStmt::constraints_size() const { - return _internal_constraints_size(); -} -inline void ConstraintsSetStmt::clear_constraints() { - _impl_.constraints_.Clear(); -} -inline ::pg_query::Node* ConstraintsSetStmt::mutable_constraints(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.ConstraintsSetStmt.constraints) - return _impl_.constraints_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -ConstraintsSetStmt::mutable_constraints() { - // @@protoc_insertion_point(field_mutable_list:pg_query.ConstraintsSetStmt.constraints) - return &_impl_.constraints_; -} -inline const ::pg_query::Node& ConstraintsSetStmt::_internal_constraints(int index) const { - return _impl_.constraints_.Get(index); -} -inline const ::pg_query::Node& ConstraintsSetStmt::constraints(int index) const { - // @@protoc_insertion_point(field_get:pg_query.ConstraintsSetStmt.constraints) - return _internal_constraints(index); -} -inline ::pg_query::Node* ConstraintsSetStmt::_internal_add_constraints() { - return _impl_.constraints_.Add(); -} -inline ::pg_query::Node* ConstraintsSetStmt::add_constraints() { - ::pg_query::Node* _add = _internal_add_constraints(); - // @@protoc_insertion_point(field_add:pg_query.ConstraintsSetStmt.constraints) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -ConstraintsSetStmt::constraints() const { - // @@protoc_insertion_point(field_list:pg_query.ConstraintsSetStmt.constraints) - return _impl_.constraints_; -} - -// bool deferred = 2 [json_name = "deferred"]; -inline void ConstraintsSetStmt::clear_deferred() { - _impl_.deferred_ = false; -} -inline bool ConstraintsSetStmt::_internal_deferred() const { - return _impl_.deferred_; -} -inline bool ConstraintsSetStmt::deferred() const { - // @@protoc_insertion_point(field_get:pg_query.ConstraintsSetStmt.deferred) - return _internal_deferred(); -} -inline void ConstraintsSetStmt::_internal_set_deferred(bool value) { - - _impl_.deferred_ = value; -} -inline void ConstraintsSetStmt::set_deferred(bool value) { - _internal_set_deferred(value); - // @@protoc_insertion_point(field_set:pg_query.ConstraintsSetStmt.deferred) -} - -// ------------------------------------------------------------------- - -// ReindexStmt - -// .pg_query.ReindexObjectType kind = 1 [json_name = "kind"]; -inline void ReindexStmt::clear_kind() { - _impl_.kind_ = 0; -} -inline ::pg_query::ReindexObjectType ReindexStmt::_internal_kind() const { - return static_cast< ::pg_query::ReindexObjectType >(_impl_.kind_); -} -inline ::pg_query::ReindexObjectType ReindexStmt::kind() const { - // @@protoc_insertion_point(field_get:pg_query.ReindexStmt.kind) - return _internal_kind(); -} -inline void ReindexStmt::_internal_set_kind(::pg_query::ReindexObjectType value) { - - _impl_.kind_ = value; -} -inline void ReindexStmt::set_kind(::pg_query::ReindexObjectType value) { - _internal_set_kind(value); - // @@protoc_insertion_point(field_set:pg_query.ReindexStmt.kind) -} - -// .pg_query.RangeVar relation = 2 [json_name = "relation"]; -inline bool ReindexStmt::_internal_has_relation() const { - return this != internal_default_instance() && _impl_.relation_ != nullptr; -} -inline bool ReindexStmt::has_relation() const { - return _internal_has_relation(); -} -inline void ReindexStmt::clear_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.relation_ != nullptr) { - delete _impl_.relation_; - } - _impl_.relation_ = nullptr; -} -inline const ::pg_query::RangeVar& ReindexStmt::_internal_relation() const { - const ::pg_query::RangeVar* p = _impl_.relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& ReindexStmt::relation() const { - // @@protoc_insertion_point(field_get:pg_query.ReindexStmt.relation) - return _internal_relation(); -} -inline void ReindexStmt::unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.relation_); - } - _impl_.relation_ = relation; - if (relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.ReindexStmt.relation) -} -inline ::pg_query::RangeVar* ReindexStmt::release_relation() { - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* ReindexStmt::unsafe_arena_release_relation() { - // @@protoc_insertion_point(field_release:pg_query.ReindexStmt.relation) - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* ReindexStmt::_internal_mutable_relation() { - - if (_impl_.relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.relation_ = p; - } - return _impl_.relation_; -} -inline ::pg_query::RangeVar* ReindexStmt::mutable_relation() { - ::pg_query::RangeVar* _msg = _internal_mutable_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.ReindexStmt.relation) - return _msg; -} -inline void ReindexStmt::set_allocated_relation(::pg_query::RangeVar* relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.relation_; - } - if (relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(relation); - if (message_arena != submessage_arena) { - relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, relation, submessage_arena); - } - - } else { - - } - _impl_.relation_ = relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.ReindexStmt.relation) -} - -// string name = 3 [json_name = "name"]; -inline void ReindexStmt::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& ReindexStmt::name() const { - // @@protoc_insertion_point(field_get:pg_query.ReindexStmt.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ReindexStmt::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.ReindexStmt.name) -} -inline std::string* ReindexStmt::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.ReindexStmt.name) - return _s; -} -inline const std::string& ReindexStmt::_internal_name() const { - return _impl_.name_.Get(); -} -inline void ReindexStmt::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* ReindexStmt::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* ReindexStmt::release_name() { - // @@protoc_insertion_point(field_release:pg_query.ReindexStmt.name) - return _impl_.name_.Release(); -} -inline void ReindexStmt::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.ReindexStmt.name) -} - -// repeated .pg_query.Node params = 4 [json_name = "params"]; -inline int ReindexStmt::_internal_params_size() const { - return _impl_.params_.size(); -} -inline int ReindexStmt::params_size() const { - return _internal_params_size(); -} -inline void ReindexStmt::clear_params() { - _impl_.params_.Clear(); -} -inline ::pg_query::Node* ReindexStmt::mutable_params(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.ReindexStmt.params) - return _impl_.params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -ReindexStmt::mutable_params() { - // @@protoc_insertion_point(field_mutable_list:pg_query.ReindexStmt.params) - return &_impl_.params_; -} -inline const ::pg_query::Node& ReindexStmt::_internal_params(int index) const { - return _impl_.params_.Get(index); -} -inline const ::pg_query::Node& ReindexStmt::params(int index) const { - // @@protoc_insertion_point(field_get:pg_query.ReindexStmt.params) - return _internal_params(index); -} -inline ::pg_query::Node* ReindexStmt::_internal_add_params() { - return _impl_.params_.Add(); -} -inline ::pg_query::Node* ReindexStmt::add_params() { - ::pg_query::Node* _add = _internal_add_params(); - // @@protoc_insertion_point(field_add:pg_query.ReindexStmt.params) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -ReindexStmt::params() const { - // @@protoc_insertion_point(field_list:pg_query.ReindexStmt.params) - return _impl_.params_; -} - -// ------------------------------------------------------------------- - -// CheckPointStmt - -// ------------------------------------------------------------------- - -// CreateSchemaStmt - -// string schemaname = 1 [json_name = "schemaname"]; -inline void CreateSchemaStmt::clear_schemaname() { - _impl_.schemaname_.ClearToEmpty(); -} -inline const std::string& CreateSchemaStmt::schemaname() const { - // @@protoc_insertion_point(field_get:pg_query.CreateSchemaStmt.schemaname) - return _internal_schemaname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateSchemaStmt::set_schemaname(ArgT0&& arg0, ArgT... args) { - - _impl_.schemaname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateSchemaStmt.schemaname) -} -inline std::string* CreateSchemaStmt::mutable_schemaname() { - std::string* _s = _internal_mutable_schemaname(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateSchemaStmt.schemaname) - return _s; -} -inline const std::string& CreateSchemaStmt::_internal_schemaname() const { - return _impl_.schemaname_.Get(); -} -inline void CreateSchemaStmt::_internal_set_schemaname(const std::string& value) { - - _impl_.schemaname_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateSchemaStmt::_internal_mutable_schemaname() { - - return _impl_.schemaname_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateSchemaStmt::release_schemaname() { - // @@protoc_insertion_point(field_release:pg_query.CreateSchemaStmt.schemaname) - return _impl_.schemaname_.Release(); -} -inline void CreateSchemaStmt::set_allocated_schemaname(std::string* schemaname) { - if (schemaname != nullptr) { - - } else { - - } - _impl_.schemaname_.SetAllocated(schemaname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.schemaname_.IsDefault()) { - _impl_.schemaname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateSchemaStmt.schemaname) -} - -// .pg_query.RoleSpec authrole = 2 [json_name = "authrole"]; -inline bool CreateSchemaStmt::_internal_has_authrole() const { - return this != internal_default_instance() && _impl_.authrole_ != nullptr; -} -inline bool CreateSchemaStmt::has_authrole() const { - return _internal_has_authrole(); -} -inline void CreateSchemaStmt::clear_authrole() { - if (GetArenaForAllocation() == nullptr && _impl_.authrole_ != nullptr) { - delete _impl_.authrole_; - } - _impl_.authrole_ = nullptr; -} -inline const ::pg_query::RoleSpec& CreateSchemaStmt::_internal_authrole() const { - const ::pg_query::RoleSpec* p = _impl_.authrole_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RoleSpec_default_instance_); -} -inline const ::pg_query::RoleSpec& CreateSchemaStmt::authrole() const { - // @@protoc_insertion_point(field_get:pg_query.CreateSchemaStmt.authrole) - return _internal_authrole(); -} -inline void CreateSchemaStmt::unsafe_arena_set_allocated_authrole( - ::pg_query::RoleSpec* authrole) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.authrole_); - } - _impl_.authrole_ = authrole; - if (authrole) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateSchemaStmt.authrole) -} -inline ::pg_query::RoleSpec* CreateSchemaStmt::release_authrole() { - - ::pg_query::RoleSpec* temp = _impl_.authrole_; - _impl_.authrole_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RoleSpec* CreateSchemaStmt::unsafe_arena_release_authrole() { - // @@protoc_insertion_point(field_release:pg_query.CreateSchemaStmt.authrole) - - ::pg_query::RoleSpec* temp = _impl_.authrole_; - _impl_.authrole_ = nullptr; - return temp; -} -inline ::pg_query::RoleSpec* CreateSchemaStmt::_internal_mutable_authrole() { - - if (_impl_.authrole_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RoleSpec>(GetArenaForAllocation()); - _impl_.authrole_ = p; - } - return _impl_.authrole_; -} -inline ::pg_query::RoleSpec* CreateSchemaStmt::mutable_authrole() { - ::pg_query::RoleSpec* _msg = _internal_mutable_authrole(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateSchemaStmt.authrole) - return _msg; -} -inline void CreateSchemaStmt::set_allocated_authrole(::pg_query::RoleSpec* authrole) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.authrole_; - } - if (authrole) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(authrole); - if (message_arena != submessage_arena) { - authrole = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, authrole, submessage_arena); - } - - } else { - - } - _impl_.authrole_ = authrole; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateSchemaStmt.authrole) -} - -// repeated .pg_query.Node schema_elts = 3 [json_name = "schemaElts"]; -inline int CreateSchemaStmt::_internal_schema_elts_size() const { - return _impl_.schema_elts_.size(); -} -inline int CreateSchemaStmt::schema_elts_size() const { - return _internal_schema_elts_size(); -} -inline void CreateSchemaStmt::clear_schema_elts() { - _impl_.schema_elts_.Clear(); -} -inline ::pg_query::Node* CreateSchemaStmt::mutable_schema_elts(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateSchemaStmt.schema_elts) - return _impl_.schema_elts_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateSchemaStmt::mutable_schema_elts() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateSchemaStmt.schema_elts) - return &_impl_.schema_elts_; -} -inline const ::pg_query::Node& CreateSchemaStmt::_internal_schema_elts(int index) const { - return _impl_.schema_elts_.Get(index); -} -inline const ::pg_query::Node& CreateSchemaStmt::schema_elts(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateSchemaStmt.schema_elts) - return _internal_schema_elts(index); -} -inline ::pg_query::Node* CreateSchemaStmt::_internal_add_schema_elts() { - return _impl_.schema_elts_.Add(); -} -inline ::pg_query::Node* CreateSchemaStmt::add_schema_elts() { - ::pg_query::Node* _add = _internal_add_schema_elts(); - // @@protoc_insertion_point(field_add:pg_query.CreateSchemaStmt.schema_elts) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateSchemaStmt::schema_elts() const { - // @@protoc_insertion_point(field_list:pg_query.CreateSchemaStmt.schema_elts) - return _impl_.schema_elts_; -} - -// bool if_not_exists = 4 [json_name = "if_not_exists"]; -inline void CreateSchemaStmt::clear_if_not_exists() { - _impl_.if_not_exists_ = false; -} -inline bool CreateSchemaStmt::_internal_if_not_exists() const { - return _impl_.if_not_exists_; -} -inline bool CreateSchemaStmt::if_not_exists() const { - // @@protoc_insertion_point(field_get:pg_query.CreateSchemaStmt.if_not_exists) - return _internal_if_not_exists(); -} -inline void CreateSchemaStmt::_internal_set_if_not_exists(bool value) { - - _impl_.if_not_exists_ = value; -} -inline void CreateSchemaStmt::set_if_not_exists(bool value) { - _internal_set_if_not_exists(value); - // @@protoc_insertion_point(field_set:pg_query.CreateSchemaStmt.if_not_exists) -} - -// ------------------------------------------------------------------- - -// AlterDatabaseStmt - -// string dbname = 1 [json_name = "dbname"]; -inline void AlterDatabaseStmt::clear_dbname() { - _impl_.dbname_.ClearToEmpty(); -} -inline const std::string& AlterDatabaseStmt::dbname() const { - // @@protoc_insertion_point(field_get:pg_query.AlterDatabaseStmt.dbname) - return _internal_dbname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterDatabaseStmt::set_dbname(ArgT0&& arg0, ArgT... args) { - - _impl_.dbname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterDatabaseStmt.dbname) -} -inline std::string* AlterDatabaseStmt::mutable_dbname() { - std::string* _s = _internal_mutable_dbname(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterDatabaseStmt.dbname) - return _s; -} -inline const std::string& AlterDatabaseStmt::_internal_dbname() const { - return _impl_.dbname_.Get(); -} -inline void AlterDatabaseStmt::_internal_set_dbname(const std::string& value) { - - _impl_.dbname_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterDatabaseStmt::_internal_mutable_dbname() { - - return _impl_.dbname_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterDatabaseStmt::release_dbname() { - // @@protoc_insertion_point(field_release:pg_query.AlterDatabaseStmt.dbname) - return _impl_.dbname_.Release(); -} -inline void AlterDatabaseStmt::set_allocated_dbname(std::string* dbname) { - if (dbname != nullptr) { - - } else { - - } - _impl_.dbname_.SetAllocated(dbname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.dbname_.IsDefault()) { - _impl_.dbname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterDatabaseStmt.dbname) -} - -// repeated .pg_query.Node options = 2 [json_name = "options"]; -inline int AlterDatabaseStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int AlterDatabaseStmt::options_size() const { - return _internal_options_size(); -} -inline void AlterDatabaseStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* AlterDatabaseStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterDatabaseStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterDatabaseStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterDatabaseStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& AlterDatabaseStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& AlterDatabaseStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterDatabaseStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* AlterDatabaseStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* AlterDatabaseStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.AlterDatabaseStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterDatabaseStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.AlterDatabaseStmt.options) - return _impl_.options_; -} - -// ------------------------------------------------------------------- - -// AlterDatabaseRefreshCollStmt - -// string dbname = 1 [json_name = "dbname"]; -inline void AlterDatabaseRefreshCollStmt::clear_dbname() { - _impl_.dbname_.ClearToEmpty(); -} -inline const std::string& AlterDatabaseRefreshCollStmt::dbname() const { - // @@protoc_insertion_point(field_get:pg_query.AlterDatabaseRefreshCollStmt.dbname) - return _internal_dbname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterDatabaseRefreshCollStmt::set_dbname(ArgT0&& arg0, ArgT... args) { - - _impl_.dbname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterDatabaseRefreshCollStmt.dbname) -} -inline std::string* AlterDatabaseRefreshCollStmt::mutable_dbname() { - std::string* _s = _internal_mutable_dbname(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterDatabaseRefreshCollStmt.dbname) - return _s; -} -inline const std::string& AlterDatabaseRefreshCollStmt::_internal_dbname() const { - return _impl_.dbname_.Get(); -} -inline void AlterDatabaseRefreshCollStmt::_internal_set_dbname(const std::string& value) { - - _impl_.dbname_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterDatabaseRefreshCollStmt::_internal_mutable_dbname() { - - return _impl_.dbname_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterDatabaseRefreshCollStmt::release_dbname() { - // @@protoc_insertion_point(field_release:pg_query.AlterDatabaseRefreshCollStmt.dbname) - return _impl_.dbname_.Release(); -} -inline void AlterDatabaseRefreshCollStmt::set_allocated_dbname(std::string* dbname) { - if (dbname != nullptr) { - - } else { - - } - _impl_.dbname_.SetAllocated(dbname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.dbname_.IsDefault()) { - _impl_.dbname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterDatabaseRefreshCollStmt.dbname) -} - -// ------------------------------------------------------------------- - -// AlterDatabaseSetStmt - -// string dbname = 1 [json_name = "dbname"]; -inline void AlterDatabaseSetStmt::clear_dbname() { - _impl_.dbname_.ClearToEmpty(); -} -inline const std::string& AlterDatabaseSetStmt::dbname() const { - // @@protoc_insertion_point(field_get:pg_query.AlterDatabaseSetStmt.dbname) - return _internal_dbname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterDatabaseSetStmt::set_dbname(ArgT0&& arg0, ArgT... args) { - - _impl_.dbname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterDatabaseSetStmt.dbname) -} -inline std::string* AlterDatabaseSetStmt::mutable_dbname() { - std::string* _s = _internal_mutable_dbname(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterDatabaseSetStmt.dbname) - return _s; -} -inline const std::string& AlterDatabaseSetStmt::_internal_dbname() const { - return _impl_.dbname_.Get(); -} -inline void AlterDatabaseSetStmt::_internal_set_dbname(const std::string& value) { - - _impl_.dbname_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterDatabaseSetStmt::_internal_mutable_dbname() { - - return _impl_.dbname_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterDatabaseSetStmt::release_dbname() { - // @@protoc_insertion_point(field_release:pg_query.AlterDatabaseSetStmt.dbname) - return _impl_.dbname_.Release(); -} -inline void AlterDatabaseSetStmt::set_allocated_dbname(std::string* dbname) { - if (dbname != nullptr) { - - } else { - - } - _impl_.dbname_.SetAllocated(dbname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.dbname_.IsDefault()) { - _impl_.dbname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterDatabaseSetStmt.dbname) -} - -// .pg_query.VariableSetStmt setstmt = 2 [json_name = "setstmt"]; -inline bool AlterDatabaseSetStmt::_internal_has_setstmt() const { - return this != internal_default_instance() && _impl_.setstmt_ != nullptr; -} -inline bool AlterDatabaseSetStmt::has_setstmt() const { - return _internal_has_setstmt(); -} -inline void AlterDatabaseSetStmt::clear_setstmt() { - if (GetArenaForAllocation() == nullptr && _impl_.setstmt_ != nullptr) { - delete _impl_.setstmt_; - } - _impl_.setstmt_ = nullptr; -} -inline const ::pg_query::VariableSetStmt& AlterDatabaseSetStmt::_internal_setstmt() const { - const ::pg_query::VariableSetStmt* p = _impl_.setstmt_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_VariableSetStmt_default_instance_); -} -inline const ::pg_query::VariableSetStmt& AlterDatabaseSetStmt::setstmt() const { - // @@protoc_insertion_point(field_get:pg_query.AlterDatabaseSetStmt.setstmt) - return _internal_setstmt(); -} -inline void AlterDatabaseSetStmt::unsafe_arena_set_allocated_setstmt( - ::pg_query::VariableSetStmt* setstmt) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.setstmt_); - } - _impl_.setstmt_ = setstmt; - if (setstmt) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterDatabaseSetStmt.setstmt) -} -inline ::pg_query::VariableSetStmt* AlterDatabaseSetStmt::release_setstmt() { - - ::pg_query::VariableSetStmt* temp = _impl_.setstmt_; - _impl_.setstmt_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::VariableSetStmt* AlterDatabaseSetStmt::unsafe_arena_release_setstmt() { - // @@protoc_insertion_point(field_release:pg_query.AlterDatabaseSetStmt.setstmt) - - ::pg_query::VariableSetStmt* temp = _impl_.setstmt_; - _impl_.setstmt_ = nullptr; - return temp; -} -inline ::pg_query::VariableSetStmt* AlterDatabaseSetStmt::_internal_mutable_setstmt() { - - if (_impl_.setstmt_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::VariableSetStmt>(GetArenaForAllocation()); - _impl_.setstmt_ = p; - } - return _impl_.setstmt_; -} -inline ::pg_query::VariableSetStmt* AlterDatabaseSetStmt::mutable_setstmt() { - ::pg_query::VariableSetStmt* _msg = _internal_mutable_setstmt(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterDatabaseSetStmt.setstmt) - return _msg; -} -inline void AlterDatabaseSetStmt::set_allocated_setstmt(::pg_query::VariableSetStmt* setstmt) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.setstmt_; - } - if (setstmt) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(setstmt); - if (message_arena != submessage_arena) { - setstmt = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, setstmt, submessage_arena); - } - - } else { - - } - _impl_.setstmt_ = setstmt; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterDatabaseSetStmt.setstmt) -} - -// ------------------------------------------------------------------- - -// AlterRoleSetStmt - -// .pg_query.RoleSpec role = 1 [json_name = "role"]; -inline bool AlterRoleSetStmt::_internal_has_role() const { - return this != internal_default_instance() && _impl_.role_ != nullptr; -} -inline bool AlterRoleSetStmt::has_role() const { - return _internal_has_role(); -} -inline void AlterRoleSetStmt::clear_role() { - if (GetArenaForAllocation() == nullptr && _impl_.role_ != nullptr) { - delete _impl_.role_; - } - _impl_.role_ = nullptr; -} -inline const ::pg_query::RoleSpec& AlterRoleSetStmt::_internal_role() const { - const ::pg_query::RoleSpec* p = _impl_.role_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RoleSpec_default_instance_); -} -inline const ::pg_query::RoleSpec& AlterRoleSetStmt::role() const { - // @@protoc_insertion_point(field_get:pg_query.AlterRoleSetStmt.role) - return _internal_role(); -} -inline void AlterRoleSetStmt::unsafe_arena_set_allocated_role( - ::pg_query::RoleSpec* role) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.role_); - } - _impl_.role_ = role; - if (role) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterRoleSetStmt.role) -} -inline ::pg_query::RoleSpec* AlterRoleSetStmt::release_role() { - - ::pg_query::RoleSpec* temp = _impl_.role_; - _impl_.role_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RoleSpec* AlterRoleSetStmt::unsafe_arena_release_role() { - // @@protoc_insertion_point(field_release:pg_query.AlterRoleSetStmt.role) - - ::pg_query::RoleSpec* temp = _impl_.role_; - _impl_.role_ = nullptr; - return temp; -} -inline ::pg_query::RoleSpec* AlterRoleSetStmt::_internal_mutable_role() { - - if (_impl_.role_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RoleSpec>(GetArenaForAllocation()); - _impl_.role_ = p; - } - return _impl_.role_; -} -inline ::pg_query::RoleSpec* AlterRoleSetStmt::mutable_role() { - ::pg_query::RoleSpec* _msg = _internal_mutable_role(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterRoleSetStmt.role) - return _msg; -} -inline void AlterRoleSetStmt::set_allocated_role(::pg_query::RoleSpec* role) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.role_; - } - if (role) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(role); - if (message_arena != submessage_arena) { - role = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, role, submessage_arena); - } - - } else { - - } - _impl_.role_ = role; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterRoleSetStmt.role) -} - -// string database = 2 [json_name = "database"]; -inline void AlterRoleSetStmt::clear_database() { - _impl_.database_.ClearToEmpty(); -} -inline const std::string& AlterRoleSetStmt::database() const { - // @@protoc_insertion_point(field_get:pg_query.AlterRoleSetStmt.database) - return _internal_database(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterRoleSetStmt::set_database(ArgT0&& arg0, ArgT... args) { - - _impl_.database_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterRoleSetStmt.database) -} -inline std::string* AlterRoleSetStmt::mutable_database() { - std::string* _s = _internal_mutable_database(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterRoleSetStmt.database) - return _s; -} -inline const std::string& AlterRoleSetStmt::_internal_database() const { - return _impl_.database_.Get(); -} -inline void AlterRoleSetStmt::_internal_set_database(const std::string& value) { - - _impl_.database_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterRoleSetStmt::_internal_mutable_database() { - - return _impl_.database_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterRoleSetStmt::release_database() { - // @@protoc_insertion_point(field_release:pg_query.AlterRoleSetStmt.database) - return _impl_.database_.Release(); -} -inline void AlterRoleSetStmt::set_allocated_database(std::string* database) { - if (database != nullptr) { - - } else { - - } - _impl_.database_.SetAllocated(database, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.database_.IsDefault()) { - _impl_.database_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterRoleSetStmt.database) -} - -// .pg_query.VariableSetStmt setstmt = 3 [json_name = "setstmt"]; -inline bool AlterRoleSetStmt::_internal_has_setstmt() const { - return this != internal_default_instance() && _impl_.setstmt_ != nullptr; -} -inline bool AlterRoleSetStmt::has_setstmt() const { - return _internal_has_setstmt(); -} -inline void AlterRoleSetStmt::clear_setstmt() { - if (GetArenaForAllocation() == nullptr && _impl_.setstmt_ != nullptr) { - delete _impl_.setstmt_; - } - _impl_.setstmt_ = nullptr; -} -inline const ::pg_query::VariableSetStmt& AlterRoleSetStmt::_internal_setstmt() const { - const ::pg_query::VariableSetStmt* p = _impl_.setstmt_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_VariableSetStmt_default_instance_); -} -inline const ::pg_query::VariableSetStmt& AlterRoleSetStmt::setstmt() const { - // @@protoc_insertion_point(field_get:pg_query.AlterRoleSetStmt.setstmt) - return _internal_setstmt(); -} -inline void AlterRoleSetStmt::unsafe_arena_set_allocated_setstmt( - ::pg_query::VariableSetStmt* setstmt) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.setstmt_); - } - _impl_.setstmt_ = setstmt; - if (setstmt) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterRoleSetStmt.setstmt) -} -inline ::pg_query::VariableSetStmt* AlterRoleSetStmt::release_setstmt() { - - ::pg_query::VariableSetStmt* temp = _impl_.setstmt_; - _impl_.setstmt_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::VariableSetStmt* AlterRoleSetStmt::unsafe_arena_release_setstmt() { - // @@protoc_insertion_point(field_release:pg_query.AlterRoleSetStmt.setstmt) - - ::pg_query::VariableSetStmt* temp = _impl_.setstmt_; - _impl_.setstmt_ = nullptr; - return temp; -} -inline ::pg_query::VariableSetStmt* AlterRoleSetStmt::_internal_mutable_setstmt() { - - if (_impl_.setstmt_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::VariableSetStmt>(GetArenaForAllocation()); - _impl_.setstmt_ = p; - } - return _impl_.setstmt_; -} -inline ::pg_query::VariableSetStmt* AlterRoleSetStmt::mutable_setstmt() { - ::pg_query::VariableSetStmt* _msg = _internal_mutable_setstmt(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterRoleSetStmt.setstmt) - return _msg; -} -inline void AlterRoleSetStmt::set_allocated_setstmt(::pg_query::VariableSetStmt* setstmt) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.setstmt_; - } - if (setstmt) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(setstmt); - if (message_arena != submessage_arena) { - setstmt = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, setstmt, submessage_arena); - } - - } else { - - } - _impl_.setstmt_ = setstmt; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterRoleSetStmt.setstmt) -} - -// ------------------------------------------------------------------- - -// CreateConversionStmt - -// repeated .pg_query.Node conversion_name = 1 [json_name = "conversion_name"]; -inline int CreateConversionStmt::_internal_conversion_name_size() const { - return _impl_.conversion_name_.size(); -} -inline int CreateConversionStmt::conversion_name_size() const { - return _internal_conversion_name_size(); -} -inline void CreateConversionStmt::clear_conversion_name() { - _impl_.conversion_name_.Clear(); -} -inline ::pg_query::Node* CreateConversionStmt::mutable_conversion_name(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateConversionStmt.conversion_name) - return _impl_.conversion_name_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateConversionStmt::mutable_conversion_name() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateConversionStmt.conversion_name) - return &_impl_.conversion_name_; -} -inline const ::pg_query::Node& CreateConversionStmt::_internal_conversion_name(int index) const { - return _impl_.conversion_name_.Get(index); -} -inline const ::pg_query::Node& CreateConversionStmt::conversion_name(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateConversionStmt.conversion_name) - return _internal_conversion_name(index); -} -inline ::pg_query::Node* CreateConversionStmt::_internal_add_conversion_name() { - return _impl_.conversion_name_.Add(); -} -inline ::pg_query::Node* CreateConversionStmt::add_conversion_name() { - ::pg_query::Node* _add = _internal_add_conversion_name(); - // @@protoc_insertion_point(field_add:pg_query.CreateConversionStmt.conversion_name) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateConversionStmt::conversion_name() const { - // @@protoc_insertion_point(field_list:pg_query.CreateConversionStmt.conversion_name) - return _impl_.conversion_name_; -} - -// string for_encoding_name = 2 [json_name = "for_encoding_name"]; -inline void CreateConversionStmt::clear_for_encoding_name() { - _impl_.for_encoding_name_.ClearToEmpty(); -} -inline const std::string& CreateConversionStmt::for_encoding_name() const { - // @@protoc_insertion_point(field_get:pg_query.CreateConversionStmt.for_encoding_name) - return _internal_for_encoding_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateConversionStmt::set_for_encoding_name(ArgT0&& arg0, ArgT... args) { - - _impl_.for_encoding_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateConversionStmt.for_encoding_name) -} -inline std::string* CreateConversionStmt::mutable_for_encoding_name() { - std::string* _s = _internal_mutable_for_encoding_name(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateConversionStmt.for_encoding_name) - return _s; -} -inline const std::string& CreateConversionStmt::_internal_for_encoding_name() const { - return _impl_.for_encoding_name_.Get(); -} -inline void CreateConversionStmt::_internal_set_for_encoding_name(const std::string& value) { - - _impl_.for_encoding_name_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateConversionStmt::_internal_mutable_for_encoding_name() { - - return _impl_.for_encoding_name_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateConversionStmt::release_for_encoding_name() { - // @@protoc_insertion_point(field_release:pg_query.CreateConversionStmt.for_encoding_name) - return _impl_.for_encoding_name_.Release(); -} -inline void CreateConversionStmt::set_allocated_for_encoding_name(std::string* for_encoding_name) { - if (for_encoding_name != nullptr) { - - } else { - - } - _impl_.for_encoding_name_.SetAllocated(for_encoding_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.for_encoding_name_.IsDefault()) { - _impl_.for_encoding_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateConversionStmt.for_encoding_name) -} - -// string to_encoding_name = 3 [json_name = "to_encoding_name"]; -inline void CreateConversionStmt::clear_to_encoding_name() { - _impl_.to_encoding_name_.ClearToEmpty(); -} -inline const std::string& CreateConversionStmt::to_encoding_name() const { - // @@protoc_insertion_point(field_get:pg_query.CreateConversionStmt.to_encoding_name) - return _internal_to_encoding_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateConversionStmt::set_to_encoding_name(ArgT0&& arg0, ArgT... args) { - - _impl_.to_encoding_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateConversionStmt.to_encoding_name) -} -inline std::string* CreateConversionStmt::mutable_to_encoding_name() { - std::string* _s = _internal_mutable_to_encoding_name(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateConversionStmt.to_encoding_name) - return _s; -} -inline const std::string& CreateConversionStmt::_internal_to_encoding_name() const { - return _impl_.to_encoding_name_.Get(); -} -inline void CreateConversionStmt::_internal_set_to_encoding_name(const std::string& value) { - - _impl_.to_encoding_name_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateConversionStmt::_internal_mutable_to_encoding_name() { - - return _impl_.to_encoding_name_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateConversionStmt::release_to_encoding_name() { - // @@protoc_insertion_point(field_release:pg_query.CreateConversionStmt.to_encoding_name) - return _impl_.to_encoding_name_.Release(); -} -inline void CreateConversionStmt::set_allocated_to_encoding_name(std::string* to_encoding_name) { - if (to_encoding_name != nullptr) { - - } else { - - } - _impl_.to_encoding_name_.SetAllocated(to_encoding_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.to_encoding_name_.IsDefault()) { - _impl_.to_encoding_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateConversionStmt.to_encoding_name) -} - -// repeated .pg_query.Node func_name = 4 [json_name = "func_name"]; -inline int CreateConversionStmt::_internal_func_name_size() const { - return _impl_.func_name_.size(); -} -inline int CreateConversionStmt::func_name_size() const { - return _internal_func_name_size(); -} -inline void CreateConversionStmt::clear_func_name() { - _impl_.func_name_.Clear(); -} -inline ::pg_query::Node* CreateConversionStmt::mutable_func_name(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateConversionStmt.func_name) - return _impl_.func_name_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateConversionStmt::mutable_func_name() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateConversionStmt.func_name) - return &_impl_.func_name_; -} -inline const ::pg_query::Node& CreateConversionStmt::_internal_func_name(int index) const { - return _impl_.func_name_.Get(index); -} -inline const ::pg_query::Node& CreateConversionStmt::func_name(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateConversionStmt.func_name) - return _internal_func_name(index); -} -inline ::pg_query::Node* CreateConversionStmt::_internal_add_func_name() { - return _impl_.func_name_.Add(); -} -inline ::pg_query::Node* CreateConversionStmt::add_func_name() { - ::pg_query::Node* _add = _internal_add_func_name(); - // @@protoc_insertion_point(field_add:pg_query.CreateConversionStmt.func_name) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateConversionStmt::func_name() const { - // @@protoc_insertion_point(field_list:pg_query.CreateConversionStmt.func_name) - return _impl_.func_name_; -} - -// bool def = 5 [json_name = "def"]; -inline void CreateConversionStmt::clear_def() { - _impl_.def_ = false; -} -inline bool CreateConversionStmt::_internal_def() const { - return _impl_.def_; -} -inline bool CreateConversionStmt::def() const { - // @@protoc_insertion_point(field_get:pg_query.CreateConversionStmt.def) - return _internal_def(); -} -inline void CreateConversionStmt::_internal_set_def(bool value) { - - _impl_.def_ = value; -} -inline void CreateConversionStmt::set_def(bool value) { - _internal_set_def(value); - // @@protoc_insertion_point(field_set:pg_query.CreateConversionStmt.def) -} - -// ------------------------------------------------------------------- - -// CreateCastStmt - -// .pg_query.TypeName sourcetype = 1 [json_name = "sourcetype"]; -inline bool CreateCastStmt::_internal_has_sourcetype() const { - return this != internal_default_instance() && _impl_.sourcetype_ != nullptr; -} -inline bool CreateCastStmt::has_sourcetype() const { - return _internal_has_sourcetype(); -} -inline void CreateCastStmt::clear_sourcetype() { - if (GetArenaForAllocation() == nullptr && _impl_.sourcetype_ != nullptr) { - delete _impl_.sourcetype_; - } - _impl_.sourcetype_ = nullptr; -} -inline const ::pg_query::TypeName& CreateCastStmt::_internal_sourcetype() const { - const ::pg_query::TypeName* p = _impl_.sourcetype_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_TypeName_default_instance_); -} -inline const ::pg_query::TypeName& CreateCastStmt::sourcetype() const { - // @@protoc_insertion_point(field_get:pg_query.CreateCastStmt.sourcetype) - return _internal_sourcetype(); -} -inline void CreateCastStmt::unsafe_arena_set_allocated_sourcetype( - ::pg_query::TypeName* sourcetype) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.sourcetype_); - } - _impl_.sourcetype_ = sourcetype; - if (sourcetype) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateCastStmt.sourcetype) -} -inline ::pg_query::TypeName* CreateCastStmt::release_sourcetype() { - - ::pg_query::TypeName* temp = _impl_.sourcetype_; - _impl_.sourcetype_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::TypeName* CreateCastStmt::unsafe_arena_release_sourcetype() { - // @@protoc_insertion_point(field_release:pg_query.CreateCastStmt.sourcetype) - - ::pg_query::TypeName* temp = _impl_.sourcetype_; - _impl_.sourcetype_ = nullptr; - return temp; -} -inline ::pg_query::TypeName* CreateCastStmt::_internal_mutable_sourcetype() { - - if (_impl_.sourcetype_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::TypeName>(GetArenaForAllocation()); - _impl_.sourcetype_ = p; - } - return _impl_.sourcetype_; -} -inline ::pg_query::TypeName* CreateCastStmt::mutable_sourcetype() { - ::pg_query::TypeName* _msg = _internal_mutable_sourcetype(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateCastStmt.sourcetype) - return _msg; -} -inline void CreateCastStmt::set_allocated_sourcetype(::pg_query::TypeName* sourcetype) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.sourcetype_; - } - if (sourcetype) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(sourcetype); - if (message_arena != submessage_arena) { - sourcetype = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, sourcetype, submessage_arena); - } - - } else { - - } - _impl_.sourcetype_ = sourcetype; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateCastStmt.sourcetype) -} - -// .pg_query.TypeName targettype = 2 [json_name = "targettype"]; -inline bool CreateCastStmt::_internal_has_targettype() const { - return this != internal_default_instance() && _impl_.targettype_ != nullptr; -} -inline bool CreateCastStmt::has_targettype() const { - return _internal_has_targettype(); -} -inline void CreateCastStmt::clear_targettype() { - if (GetArenaForAllocation() == nullptr && _impl_.targettype_ != nullptr) { - delete _impl_.targettype_; - } - _impl_.targettype_ = nullptr; -} -inline const ::pg_query::TypeName& CreateCastStmt::_internal_targettype() const { - const ::pg_query::TypeName* p = _impl_.targettype_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_TypeName_default_instance_); -} -inline const ::pg_query::TypeName& CreateCastStmt::targettype() const { - // @@protoc_insertion_point(field_get:pg_query.CreateCastStmt.targettype) - return _internal_targettype(); -} -inline void CreateCastStmt::unsafe_arena_set_allocated_targettype( - ::pg_query::TypeName* targettype) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.targettype_); - } - _impl_.targettype_ = targettype; - if (targettype) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateCastStmt.targettype) -} -inline ::pg_query::TypeName* CreateCastStmt::release_targettype() { - - ::pg_query::TypeName* temp = _impl_.targettype_; - _impl_.targettype_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::TypeName* CreateCastStmt::unsafe_arena_release_targettype() { - // @@protoc_insertion_point(field_release:pg_query.CreateCastStmt.targettype) - - ::pg_query::TypeName* temp = _impl_.targettype_; - _impl_.targettype_ = nullptr; - return temp; -} -inline ::pg_query::TypeName* CreateCastStmt::_internal_mutable_targettype() { - - if (_impl_.targettype_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::TypeName>(GetArenaForAllocation()); - _impl_.targettype_ = p; - } - return _impl_.targettype_; -} -inline ::pg_query::TypeName* CreateCastStmt::mutable_targettype() { - ::pg_query::TypeName* _msg = _internal_mutable_targettype(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateCastStmt.targettype) - return _msg; -} -inline void CreateCastStmt::set_allocated_targettype(::pg_query::TypeName* targettype) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.targettype_; - } - if (targettype) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(targettype); - if (message_arena != submessage_arena) { - targettype = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, targettype, submessage_arena); - } - - } else { - - } - _impl_.targettype_ = targettype; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateCastStmt.targettype) -} - -// .pg_query.ObjectWithArgs func = 3 [json_name = "func"]; -inline bool CreateCastStmt::_internal_has_func() const { - return this != internal_default_instance() && _impl_.func_ != nullptr; -} -inline bool CreateCastStmt::has_func() const { - return _internal_has_func(); -} -inline void CreateCastStmt::clear_func() { - if (GetArenaForAllocation() == nullptr && _impl_.func_ != nullptr) { - delete _impl_.func_; - } - _impl_.func_ = nullptr; -} -inline const ::pg_query::ObjectWithArgs& CreateCastStmt::_internal_func() const { - const ::pg_query::ObjectWithArgs* p = _impl_.func_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_ObjectWithArgs_default_instance_); -} -inline const ::pg_query::ObjectWithArgs& CreateCastStmt::func() const { - // @@protoc_insertion_point(field_get:pg_query.CreateCastStmt.func) - return _internal_func(); -} -inline void CreateCastStmt::unsafe_arena_set_allocated_func( - ::pg_query::ObjectWithArgs* func) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.func_); - } - _impl_.func_ = func; - if (func) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateCastStmt.func) -} -inline ::pg_query::ObjectWithArgs* CreateCastStmt::release_func() { - - ::pg_query::ObjectWithArgs* temp = _impl_.func_; - _impl_.func_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::ObjectWithArgs* CreateCastStmt::unsafe_arena_release_func() { - // @@protoc_insertion_point(field_release:pg_query.CreateCastStmt.func) - - ::pg_query::ObjectWithArgs* temp = _impl_.func_; - _impl_.func_ = nullptr; - return temp; -} -inline ::pg_query::ObjectWithArgs* CreateCastStmt::_internal_mutable_func() { - - if (_impl_.func_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::ObjectWithArgs>(GetArenaForAllocation()); - _impl_.func_ = p; - } - return _impl_.func_; -} -inline ::pg_query::ObjectWithArgs* CreateCastStmt::mutable_func() { - ::pg_query::ObjectWithArgs* _msg = _internal_mutable_func(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateCastStmt.func) - return _msg; -} -inline void CreateCastStmt::set_allocated_func(::pg_query::ObjectWithArgs* func) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.func_; - } - if (func) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(func); - if (message_arena != submessage_arena) { - func = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, func, submessage_arena); - } - - } else { - - } - _impl_.func_ = func; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateCastStmt.func) -} - -// .pg_query.CoercionContext context = 4 [json_name = "context"]; -inline void CreateCastStmt::clear_context() { - _impl_.context_ = 0; -} -inline ::pg_query::CoercionContext CreateCastStmt::_internal_context() const { - return static_cast< ::pg_query::CoercionContext >(_impl_.context_); -} -inline ::pg_query::CoercionContext CreateCastStmt::context() const { - // @@protoc_insertion_point(field_get:pg_query.CreateCastStmt.context) - return _internal_context(); -} -inline void CreateCastStmt::_internal_set_context(::pg_query::CoercionContext value) { - - _impl_.context_ = value; -} -inline void CreateCastStmt::set_context(::pg_query::CoercionContext value) { - _internal_set_context(value); - // @@protoc_insertion_point(field_set:pg_query.CreateCastStmt.context) -} - -// bool inout = 5 [json_name = "inout"]; -inline void CreateCastStmt::clear_inout() { - _impl_.inout_ = false; -} -inline bool CreateCastStmt::_internal_inout() const { - return _impl_.inout_; -} -inline bool CreateCastStmt::inout() const { - // @@protoc_insertion_point(field_get:pg_query.CreateCastStmt.inout) - return _internal_inout(); -} -inline void CreateCastStmt::_internal_set_inout(bool value) { - - _impl_.inout_ = value; -} -inline void CreateCastStmt::set_inout(bool value) { - _internal_set_inout(value); - // @@protoc_insertion_point(field_set:pg_query.CreateCastStmt.inout) -} - -// ------------------------------------------------------------------- - -// CreateOpClassStmt - -// repeated .pg_query.Node opclassname = 1 [json_name = "opclassname"]; -inline int CreateOpClassStmt::_internal_opclassname_size() const { - return _impl_.opclassname_.size(); -} -inline int CreateOpClassStmt::opclassname_size() const { - return _internal_opclassname_size(); -} -inline void CreateOpClassStmt::clear_opclassname() { - _impl_.opclassname_.Clear(); -} -inline ::pg_query::Node* CreateOpClassStmt::mutable_opclassname(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateOpClassStmt.opclassname) - return _impl_.opclassname_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateOpClassStmt::mutable_opclassname() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateOpClassStmt.opclassname) - return &_impl_.opclassname_; -} -inline const ::pg_query::Node& CreateOpClassStmt::_internal_opclassname(int index) const { - return _impl_.opclassname_.Get(index); -} -inline const ::pg_query::Node& CreateOpClassStmt::opclassname(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateOpClassStmt.opclassname) - return _internal_opclassname(index); -} -inline ::pg_query::Node* CreateOpClassStmt::_internal_add_opclassname() { - return _impl_.opclassname_.Add(); -} -inline ::pg_query::Node* CreateOpClassStmt::add_opclassname() { - ::pg_query::Node* _add = _internal_add_opclassname(); - // @@protoc_insertion_point(field_add:pg_query.CreateOpClassStmt.opclassname) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateOpClassStmt::opclassname() const { - // @@protoc_insertion_point(field_list:pg_query.CreateOpClassStmt.opclassname) - return _impl_.opclassname_; -} - -// repeated .pg_query.Node opfamilyname = 2 [json_name = "opfamilyname"]; -inline int CreateOpClassStmt::_internal_opfamilyname_size() const { - return _impl_.opfamilyname_.size(); -} -inline int CreateOpClassStmt::opfamilyname_size() const { - return _internal_opfamilyname_size(); -} -inline void CreateOpClassStmt::clear_opfamilyname() { - _impl_.opfamilyname_.Clear(); -} -inline ::pg_query::Node* CreateOpClassStmt::mutable_opfamilyname(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateOpClassStmt.opfamilyname) - return _impl_.opfamilyname_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateOpClassStmt::mutable_opfamilyname() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateOpClassStmt.opfamilyname) - return &_impl_.opfamilyname_; -} -inline const ::pg_query::Node& CreateOpClassStmt::_internal_opfamilyname(int index) const { - return _impl_.opfamilyname_.Get(index); -} -inline const ::pg_query::Node& CreateOpClassStmt::opfamilyname(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateOpClassStmt.opfamilyname) - return _internal_opfamilyname(index); -} -inline ::pg_query::Node* CreateOpClassStmt::_internal_add_opfamilyname() { - return _impl_.opfamilyname_.Add(); -} -inline ::pg_query::Node* CreateOpClassStmt::add_opfamilyname() { - ::pg_query::Node* _add = _internal_add_opfamilyname(); - // @@protoc_insertion_point(field_add:pg_query.CreateOpClassStmt.opfamilyname) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateOpClassStmt::opfamilyname() const { - // @@protoc_insertion_point(field_list:pg_query.CreateOpClassStmt.opfamilyname) - return _impl_.opfamilyname_; -} - -// string amname = 3 [json_name = "amname"]; -inline void CreateOpClassStmt::clear_amname() { - _impl_.amname_.ClearToEmpty(); -} -inline const std::string& CreateOpClassStmt::amname() const { - // @@protoc_insertion_point(field_get:pg_query.CreateOpClassStmt.amname) - return _internal_amname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateOpClassStmt::set_amname(ArgT0&& arg0, ArgT... args) { - - _impl_.amname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateOpClassStmt.amname) -} -inline std::string* CreateOpClassStmt::mutable_amname() { - std::string* _s = _internal_mutable_amname(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateOpClassStmt.amname) - return _s; -} -inline const std::string& CreateOpClassStmt::_internal_amname() const { - return _impl_.amname_.Get(); -} -inline void CreateOpClassStmt::_internal_set_amname(const std::string& value) { - - _impl_.amname_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateOpClassStmt::_internal_mutable_amname() { - - return _impl_.amname_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateOpClassStmt::release_amname() { - // @@protoc_insertion_point(field_release:pg_query.CreateOpClassStmt.amname) - return _impl_.amname_.Release(); -} -inline void CreateOpClassStmt::set_allocated_amname(std::string* amname) { - if (amname != nullptr) { - - } else { - - } - _impl_.amname_.SetAllocated(amname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.amname_.IsDefault()) { - _impl_.amname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateOpClassStmt.amname) -} - -// .pg_query.TypeName datatype = 4 [json_name = "datatype"]; -inline bool CreateOpClassStmt::_internal_has_datatype() const { - return this != internal_default_instance() && _impl_.datatype_ != nullptr; -} -inline bool CreateOpClassStmt::has_datatype() const { - return _internal_has_datatype(); -} -inline void CreateOpClassStmt::clear_datatype() { - if (GetArenaForAllocation() == nullptr && _impl_.datatype_ != nullptr) { - delete _impl_.datatype_; - } - _impl_.datatype_ = nullptr; -} -inline const ::pg_query::TypeName& CreateOpClassStmt::_internal_datatype() const { - const ::pg_query::TypeName* p = _impl_.datatype_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_TypeName_default_instance_); -} -inline const ::pg_query::TypeName& CreateOpClassStmt::datatype() const { - // @@protoc_insertion_point(field_get:pg_query.CreateOpClassStmt.datatype) - return _internal_datatype(); -} -inline void CreateOpClassStmt::unsafe_arena_set_allocated_datatype( - ::pg_query::TypeName* datatype) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.datatype_); - } - _impl_.datatype_ = datatype; - if (datatype) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateOpClassStmt.datatype) -} -inline ::pg_query::TypeName* CreateOpClassStmt::release_datatype() { - - ::pg_query::TypeName* temp = _impl_.datatype_; - _impl_.datatype_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::TypeName* CreateOpClassStmt::unsafe_arena_release_datatype() { - // @@protoc_insertion_point(field_release:pg_query.CreateOpClassStmt.datatype) - - ::pg_query::TypeName* temp = _impl_.datatype_; - _impl_.datatype_ = nullptr; - return temp; -} -inline ::pg_query::TypeName* CreateOpClassStmt::_internal_mutable_datatype() { - - if (_impl_.datatype_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::TypeName>(GetArenaForAllocation()); - _impl_.datatype_ = p; - } - return _impl_.datatype_; -} -inline ::pg_query::TypeName* CreateOpClassStmt::mutable_datatype() { - ::pg_query::TypeName* _msg = _internal_mutable_datatype(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateOpClassStmt.datatype) - return _msg; -} -inline void CreateOpClassStmt::set_allocated_datatype(::pg_query::TypeName* datatype) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.datatype_; - } - if (datatype) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(datatype); - if (message_arena != submessage_arena) { - datatype = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, datatype, submessage_arena); - } - - } else { - - } - _impl_.datatype_ = datatype; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateOpClassStmt.datatype) -} - -// repeated .pg_query.Node items = 5 [json_name = "items"]; -inline int CreateOpClassStmt::_internal_items_size() const { - return _impl_.items_.size(); -} -inline int CreateOpClassStmt::items_size() const { - return _internal_items_size(); -} -inline void CreateOpClassStmt::clear_items() { - _impl_.items_.Clear(); -} -inline ::pg_query::Node* CreateOpClassStmt::mutable_items(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateOpClassStmt.items) - return _impl_.items_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateOpClassStmt::mutable_items() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateOpClassStmt.items) - return &_impl_.items_; -} -inline const ::pg_query::Node& CreateOpClassStmt::_internal_items(int index) const { - return _impl_.items_.Get(index); -} -inline const ::pg_query::Node& CreateOpClassStmt::items(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateOpClassStmt.items) - return _internal_items(index); -} -inline ::pg_query::Node* CreateOpClassStmt::_internal_add_items() { - return _impl_.items_.Add(); -} -inline ::pg_query::Node* CreateOpClassStmt::add_items() { - ::pg_query::Node* _add = _internal_add_items(); - // @@protoc_insertion_point(field_add:pg_query.CreateOpClassStmt.items) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateOpClassStmt::items() const { - // @@protoc_insertion_point(field_list:pg_query.CreateOpClassStmt.items) - return _impl_.items_; -} - -// bool is_default = 6 [json_name = "isDefault"]; -inline void CreateOpClassStmt::clear_is_default() { - _impl_.is_default_ = false; -} -inline bool CreateOpClassStmt::_internal_is_default() const { - return _impl_.is_default_; -} -inline bool CreateOpClassStmt::is_default() const { - // @@protoc_insertion_point(field_get:pg_query.CreateOpClassStmt.is_default) - return _internal_is_default(); -} -inline void CreateOpClassStmt::_internal_set_is_default(bool value) { - - _impl_.is_default_ = value; -} -inline void CreateOpClassStmt::set_is_default(bool value) { - _internal_set_is_default(value); - // @@protoc_insertion_point(field_set:pg_query.CreateOpClassStmt.is_default) -} - -// ------------------------------------------------------------------- - -// CreateOpFamilyStmt - -// repeated .pg_query.Node opfamilyname = 1 [json_name = "opfamilyname"]; -inline int CreateOpFamilyStmt::_internal_opfamilyname_size() const { - return _impl_.opfamilyname_.size(); -} -inline int CreateOpFamilyStmt::opfamilyname_size() const { - return _internal_opfamilyname_size(); -} -inline void CreateOpFamilyStmt::clear_opfamilyname() { - _impl_.opfamilyname_.Clear(); -} -inline ::pg_query::Node* CreateOpFamilyStmt::mutable_opfamilyname(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateOpFamilyStmt.opfamilyname) - return _impl_.opfamilyname_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateOpFamilyStmt::mutable_opfamilyname() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateOpFamilyStmt.opfamilyname) - return &_impl_.opfamilyname_; -} -inline const ::pg_query::Node& CreateOpFamilyStmt::_internal_opfamilyname(int index) const { - return _impl_.opfamilyname_.Get(index); -} -inline const ::pg_query::Node& CreateOpFamilyStmt::opfamilyname(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateOpFamilyStmt.opfamilyname) - return _internal_opfamilyname(index); -} -inline ::pg_query::Node* CreateOpFamilyStmt::_internal_add_opfamilyname() { - return _impl_.opfamilyname_.Add(); -} -inline ::pg_query::Node* CreateOpFamilyStmt::add_opfamilyname() { - ::pg_query::Node* _add = _internal_add_opfamilyname(); - // @@protoc_insertion_point(field_add:pg_query.CreateOpFamilyStmt.opfamilyname) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateOpFamilyStmt::opfamilyname() const { - // @@protoc_insertion_point(field_list:pg_query.CreateOpFamilyStmt.opfamilyname) - return _impl_.opfamilyname_; -} - -// string amname = 2 [json_name = "amname"]; -inline void CreateOpFamilyStmt::clear_amname() { - _impl_.amname_.ClearToEmpty(); -} -inline const std::string& CreateOpFamilyStmt::amname() const { - // @@protoc_insertion_point(field_get:pg_query.CreateOpFamilyStmt.amname) - return _internal_amname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateOpFamilyStmt::set_amname(ArgT0&& arg0, ArgT... args) { - - _impl_.amname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateOpFamilyStmt.amname) -} -inline std::string* CreateOpFamilyStmt::mutable_amname() { - std::string* _s = _internal_mutable_amname(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateOpFamilyStmt.amname) - return _s; -} -inline const std::string& CreateOpFamilyStmt::_internal_amname() const { - return _impl_.amname_.Get(); -} -inline void CreateOpFamilyStmt::_internal_set_amname(const std::string& value) { - - _impl_.amname_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateOpFamilyStmt::_internal_mutable_amname() { - - return _impl_.amname_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateOpFamilyStmt::release_amname() { - // @@protoc_insertion_point(field_release:pg_query.CreateOpFamilyStmt.amname) - return _impl_.amname_.Release(); -} -inline void CreateOpFamilyStmt::set_allocated_amname(std::string* amname) { - if (amname != nullptr) { - - } else { - - } - _impl_.amname_.SetAllocated(amname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.amname_.IsDefault()) { - _impl_.amname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateOpFamilyStmt.amname) -} - -// ------------------------------------------------------------------- - -// AlterOpFamilyStmt - -// repeated .pg_query.Node opfamilyname = 1 [json_name = "opfamilyname"]; -inline int AlterOpFamilyStmt::_internal_opfamilyname_size() const { - return _impl_.opfamilyname_.size(); -} -inline int AlterOpFamilyStmt::opfamilyname_size() const { - return _internal_opfamilyname_size(); -} -inline void AlterOpFamilyStmt::clear_opfamilyname() { - _impl_.opfamilyname_.Clear(); -} -inline ::pg_query::Node* AlterOpFamilyStmt::mutable_opfamilyname(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterOpFamilyStmt.opfamilyname) - return _impl_.opfamilyname_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterOpFamilyStmt::mutable_opfamilyname() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterOpFamilyStmt.opfamilyname) - return &_impl_.opfamilyname_; -} -inline const ::pg_query::Node& AlterOpFamilyStmt::_internal_opfamilyname(int index) const { - return _impl_.opfamilyname_.Get(index); -} -inline const ::pg_query::Node& AlterOpFamilyStmt::opfamilyname(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterOpFamilyStmt.opfamilyname) - return _internal_opfamilyname(index); -} -inline ::pg_query::Node* AlterOpFamilyStmt::_internal_add_opfamilyname() { - return _impl_.opfamilyname_.Add(); -} -inline ::pg_query::Node* AlterOpFamilyStmt::add_opfamilyname() { - ::pg_query::Node* _add = _internal_add_opfamilyname(); - // @@protoc_insertion_point(field_add:pg_query.AlterOpFamilyStmt.opfamilyname) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterOpFamilyStmt::opfamilyname() const { - // @@protoc_insertion_point(field_list:pg_query.AlterOpFamilyStmt.opfamilyname) - return _impl_.opfamilyname_; -} - -// string amname = 2 [json_name = "amname"]; -inline void AlterOpFamilyStmt::clear_amname() { - _impl_.amname_.ClearToEmpty(); -} -inline const std::string& AlterOpFamilyStmt::amname() const { - // @@protoc_insertion_point(field_get:pg_query.AlterOpFamilyStmt.amname) - return _internal_amname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterOpFamilyStmt::set_amname(ArgT0&& arg0, ArgT... args) { - - _impl_.amname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterOpFamilyStmt.amname) -} -inline std::string* AlterOpFamilyStmt::mutable_amname() { - std::string* _s = _internal_mutable_amname(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterOpFamilyStmt.amname) - return _s; -} -inline const std::string& AlterOpFamilyStmt::_internal_amname() const { - return _impl_.amname_.Get(); -} -inline void AlterOpFamilyStmt::_internal_set_amname(const std::string& value) { - - _impl_.amname_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterOpFamilyStmt::_internal_mutable_amname() { - - return _impl_.amname_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterOpFamilyStmt::release_amname() { - // @@protoc_insertion_point(field_release:pg_query.AlterOpFamilyStmt.amname) - return _impl_.amname_.Release(); -} -inline void AlterOpFamilyStmt::set_allocated_amname(std::string* amname) { - if (amname != nullptr) { - - } else { - - } - _impl_.amname_.SetAllocated(amname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.amname_.IsDefault()) { - _impl_.amname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterOpFamilyStmt.amname) -} - -// bool is_drop = 3 [json_name = "isDrop"]; -inline void AlterOpFamilyStmt::clear_is_drop() { - _impl_.is_drop_ = false; -} -inline bool AlterOpFamilyStmt::_internal_is_drop() const { - return _impl_.is_drop_; -} -inline bool AlterOpFamilyStmt::is_drop() const { - // @@protoc_insertion_point(field_get:pg_query.AlterOpFamilyStmt.is_drop) - return _internal_is_drop(); -} -inline void AlterOpFamilyStmt::_internal_set_is_drop(bool value) { - - _impl_.is_drop_ = value; -} -inline void AlterOpFamilyStmt::set_is_drop(bool value) { - _internal_set_is_drop(value); - // @@protoc_insertion_point(field_set:pg_query.AlterOpFamilyStmt.is_drop) -} - -// repeated .pg_query.Node items = 4 [json_name = "items"]; -inline int AlterOpFamilyStmt::_internal_items_size() const { - return _impl_.items_.size(); -} -inline int AlterOpFamilyStmt::items_size() const { - return _internal_items_size(); -} -inline void AlterOpFamilyStmt::clear_items() { - _impl_.items_.Clear(); -} -inline ::pg_query::Node* AlterOpFamilyStmt::mutable_items(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterOpFamilyStmt.items) - return _impl_.items_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterOpFamilyStmt::mutable_items() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterOpFamilyStmt.items) - return &_impl_.items_; -} -inline const ::pg_query::Node& AlterOpFamilyStmt::_internal_items(int index) const { - return _impl_.items_.Get(index); -} -inline const ::pg_query::Node& AlterOpFamilyStmt::items(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterOpFamilyStmt.items) - return _internal_items(index); -} -inline ::pg_query::Node* AlterOpFamilyStmt::_internal_add_items() { - return _impl_.items_.Add(); -} -inline ::pg_query::Node* AlterOpFamilyStmt::add_items() { - ::pg_query::Node* _add = _internal_add_items(); - // @@protoc_insertion_point(field_add:pg_query.AlterOpFamilyStmt.items) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterOpFamilyStmt::items() const { - // @@protoc_insertion_point(field_list:pg_query.AlterOpFamilyStmt.items) - return _impl_.items_; -} - -// ------------------------------------------------------------------- - -// PrepareStmt - -// string name = 1 [json_name = "name"]; -inline void PrepareStmt::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& PrepareStmt::name() const { - // @@protoc_insertion_point(field_get:pg_query.PrepareStmt.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void PrepareStmt::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.PrepareStmt.name) -} -inline std::string* PrepareStmt::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.PrepareStmt.name) - return _s; -} -inline const std::string& PrepareStmt::_internal_name() const { - return _impl_.name_.Get(); -} -inline void PrepareStmt::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* PrepareStmt::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* PrepareStmt::release_name() { - // @@protoc_insertion_point(field_release:pg_query.PrepareStmt.name) - return _impl_.name_.Release(); -} -inline void PrepareStmt::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.PrepareStmt.name) -} - -// repeated .pg_query.Node argtypes = 2 [json_name = "argtypes"]; -inline int PrepareStmt::_internal_argtypes_size() const { - return _impl_.argtypes_.size(); -} -inline int PrepareStmt::argtypes_size() const { - return _internal_argtypes_size(); -} -inline void PrepareStmt::clear_argtypes() { - _impl_.argtypes_.Clear(); -} -inline ::pg_query::Node* PrepareStmt::mutable_argtypes(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.PrepareStmt.argtypes) - return _impl_.argtypes_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -PrepareStmt::mutable_argtypes() { - // @@protoc_insertion_point(field_mutable_list:pg_query.PrepareStmt.argtypes) - return &_impl_.argtypes_; -} -inline const ::pg_query::Node& PrepareStmt::_internal_argtypes(int index) const { - return _impl_.argtypes_.Get(index); -} -inline const ::pg_query::Node& PrepareStmt::argtypes(int index) const { - // @@protoc_insertion_point(field_get:pg_query.PrepareStmt.argtypes) - return _internal_argtypes(index); -} -inline ::pg_query::Node* PrepareStmt::_internal_add_argtypes() { - return _impl_.argtypes_.Add(); -} -inline ::pg_query::Node* PrepareStmt::add_argtypes() { - ::pg_query::Node* _add = _internal_add_argtypes(); - // @@protoc_insertion_point(field_add:pg_query.PrepareStmt.argtypes) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -PrepareStmt::argtypes() const { - // @@protoc_insertion_point(field_list:pg_query.PrepareStmt.argtypes) - return _impl_.argtypes_; -} - -// .pg_query.Node query = 3 [json_name = "query"]; -inline bool PrepareStmt::_internal_has_query() const { - return this != internal_default_instance() && _impl_.query_ != nullptr; -} -inline bool PrepareStmt::has_query() const { - return _internal_has_query(); -} -inline void PrepareStmt::clear_query() { - if (GetArenaForAllocation() == nullptr && _impl_.query_ != nullptr) { - delete _impl_.query_; - } - _impl_.query_ = nullptr; -} -inline const ::pg_query::Node& PrepareStmt::_internal_query() const { - const ::pg_query::Node* p = _impl_.query_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& PrepareStmt::query() const { - // @@protoc_insertion_point(field_get:pg_query.PrepareStmt.query) - return _internal_query(); -} -inline void PrepareStmt::unsafe_arena_set_allocated_query( - ::pg_query::Node* query) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.query_); - } - _impl_.query_ = query; - if (query) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.PrepareStmt.query) -} -inline ::pg_query::Node* PrepareStmt::release_query() { - - ::pg_query::Node* temp = _impl_.query_; - _impl_.query_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* PrepareStmt::unsafe_arena_release_query() { - // @@protoc_insertion_point(field_release:pg_query.PrepareStmt.query) - - ::pg_query::Node* temp = _impl_.query_; - _impl_.query_ = nullptr; - return temp; -} -inline ::pg_query::Node* PrepareStmt::_internal_mutable_query() { - - if (_impl_.query_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.query_ = p; - } - return _impl_.query_; -} -inline ::pg_query::Node* PrepareStmt::mutable_query() { - ::pg_query::Node* _msg = _internal_mutable_query(); - // @@protoc_insertion_point(field_mutable:pg_query.PrepareStmt.query) - return _msg; -} -inline void PrepareStmt::set_allocated_query(::pg_query::Node* query) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.query_; - } - if (query) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(query); - if (message_arena != submessage_arena) { - query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, query, submessage_arena); - } - - } else { - - } - _impl_.query_ = query; - // @@protoc_insertion_point(field_set_allocated:pg_query.PrepareStmt.query) -} - -// ------------------------------------------------------------------- - -// ExecuteStmt - -// string name = 1 [json_name = "name"]; -inline void ExecuteStmt::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& ExecuteStmt::name() const { - // @@protoc_insertion_point(field_get:pg_query.ExecuteStmt.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ExecuteStmt::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.ExecuteStmt.name) -} -inline std::string* ExecuteStmt::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.ExecuteStmt.name) - return _s; -} -inline const std::string& ExecuteStmt::_internal_name() const { - return _impl_.name_.Get(); -} -inline void ExecuteStmt::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* ExecuteStmt::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* ExecuteStmt::release_name() { - // @@protoc_insertion_point(field_release:pg_query.ExecuteStmt.name) - return _impl_.name_.Release(); -} -inline void ExecuteStmt::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.ExecuteStmt.name) -} - -// repeated .pg_query.Node params = 2 [json_name = "params"]; -inline int ExecuteStmt::_internal_params_size() const { - return _impl_.params_.size(); -} -inline int ExecuteStmt::params_size() const { - return _internal_params_size(); -} -inline void ExecuteStmt::clear_params() { - _impl_.params_.Clear(); -} -inline ::pg_query::Node* ExecuteStmt::mutable_params(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.ExecuteStmt.params) - return _impl_.params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -ExecuteStmt::mutable_params() { - // @@protoc_insertion_point(field_mutable_list:pg_query.ExecuteStmt.params) - return &_impl_.params_; -} -inline const ::pg_query::Node& ExecuteStmt::_internal_params(int index) const { - return _impl_.params_.Get(index); -} -inline const ::pg_query::Node& ExecuteStmt::params(int index) const { - // @@protoc_insertion_point(field_get:pg_query.ExecuteStmt.params) - return _internal_params(index); -} -inline ::pg_query::Node* ExecuteStmt::_internal_add_params() { - return _impl_.params_.Add(); -} -inline ::pg_query::Node* ExecuteStmt::add_params() { - ::pg_query::Node* _add = _internal_add_params(); - // @@protoc_insertion_point(field_add:pg_query.ExecuteStmt.params) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -ExecuteStmt::params() const { - // @@protoc_insertion_point(field_list:pg_query.ExecuteStmt.params) - return _impl_.params_; -} - -// ------------------------------------------------------------------- - -// DeallocateStmt - -// string name = 1 [json_name = "name"]; -inline void DeallocateStmt::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& DeallocateStmt::name() const { - // @@protoc_insertion_point(field_get:pg_query.DeallocateStmt.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void DeallocateStmt::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.DeallocateStmt.name) -} -inline std::string* DeallocateStmt::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.DeallocateStmt.name) - return _s; -} -inline const std::string& DeallocateStmt::_internal_name() const { - return _impl_.name_.Get(); -} -inline void DeallocateStmt::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* DeallocateStmt::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* DeallocateStmt::release_name() { - // @@protoc_insertion_point(field_release:pg_query.DeallocateStmt.name) - return _impl_.name_.Release(); -} -inline void DeallocateStmt::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.DeallocateStmt.name) -} - -// ------------------------------------------------------------------- - -// DeclareCursorStmt - -// string portalname = 1 [json_name = "portalname"]; -inline void DeclareCursorStmt::clear_portalname() { - _impl_.portalname_.ClearToEmpty(); -} -inline const std::string& DeclareCursorStmt::portalname() const { - // @@protoc_insertion_point(field_get:pg_query.DeclareCursorStmt.portalname) - return _internal_portalname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void DeclareCursorStmt::set_portalname(ArgT0&& arg0, ArgT... args) { - - _impl_.portalname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.DeclareCursorStmt.portalname) -} -inline std::string* DeclareCursorStmt::mutable_portalname() { - std::string* _s = _internal_mutable_portalname(); - // @@protoc_insertion_point(field_mutable:pg_query.DeclareCursorStmt.portalname) - return _s; -} -inline const std::string& DeclareCursorStmt::_internal_portalname() const { - return _impl_.portalname_.Get(); -} -inline void DeclareCursorStmt::_internal_set_portalname(const std::string& value) { - - _impl_.portalname_.Set(value, GetArenaForAllocation()); -} -inline std::string* DeclareCursorStmt::_internal_mutable_portalname() { - - return _impl_.portalname_.Mutable(GetArenaForAllocation()); -} -inline std::string* DeclareCursorStmt::release_portalname() { - // @@protoc_insertion_point(field_release:pg_query.DeclareCursorStmt.portalname) - return _impl_.portalname_.Release(); -} -inline void DeclareCursorStmt::set_allocated_portalname(std::string* portalname) { - if (portalname != nullptr) { - - } else { - - } - _impl_.portalname_.SetAllocated(portalname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.portalname_.IsDefault()) { - _impl_.portalname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.DeclareCursorStmt.portalname) -} - -// int32 options = 2 [json_name = "options"]; -inline void DeclareCursorStmt::clear_options() { - _impl_.options_ = 0; -} -inline int32_t DeclareCursorStmt::_internal_options() const { - return _impl_.options_; -} -inline int32_t DeclareCursorStmt::options() const { - // @@protoc_insertion_point(field_get:pg_query.DeclareCursorStmt.options) - return _internal_options(); -} -inline void DeclareCursorStmt::_internal_set_options(int32_t value) { - - _impl_.options_ = value; -} -inline void DeclareCursorStmt::set_options(int32_t value) { - _internal_set_options(value); - // @@protoc_insertion_point(field_set:pg_query.DeclareCursorStmt.options) -} - -// .pg_query.Node query = 3 [json_name = "query"]; -inline bool DeclareCursorStmt::_internal_has_query() const { - return this != internal_default_instance() && _impl_.query_ != nullptr; -} -inline bool DeclareCursorStmt::has_query() const { - return _internal_has_query(); -} -inline void DeclareCursorStmt::clear_query() { - if (GetArenaForAllocation() == nullptr && _impl_.query_ != nullptr) { - delete _impl_.query_; - } - _impl_.query_ = nullptr; -} -inline const ::pg_query::Node& DeclareCursorStmt::_internal_query() const { - const ::pg_query::Node* p = _impl_.query_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& DeclareCursorStmt::query() const { - // @@protoc_insertion_point(field_get:pg_query.DeclareCursorStmt.query) - return _internal_query(); -} -inline void DeclareCursorStmt::unsafe_arena_set_allocated_query( - ::pg_query::Node* query) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.query_); - } - _impl_.query_ = query; - if (query) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.DeclareCursorStmt.query) -} -inline ::pg_query::Node* DeclareCursorStmt::release_query() { - - ::pg_query::Node* temp = _impl_.query_; - _impl_.query_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* DeclareCursorStmt::unsafe_arena_release_query() { - // @@protoc_insertion_point(field_release:pg_query.DeclareCursorStmt.query) - - ::pg_query::Node* temp = _impl_.query_; - _impl_.query_ = nullptr; - return temp; -} -inline ::pg_query::Node* DeclareCursorStmt::_internal_mutable_query() { - - if (_impl_.query_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.query_ = p; - } - return _impl_.query_; -} -inline ::pg_query::Node* DeclareCursorStmt::mutable_query() { - ::pg_query::Node* _msg = _internal_mutable_query(); - // @@protoc_insertion_point(field_mutable:pg_query.DeclareCursorStmt.query) - return _msg; -} -inline void DeclareCursorStmt::set_allocated_query(::pg_query::Node* query) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.query_; - } - if (query) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(query); - if (message_arena != submessage_arena) { - query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, query, submessage_arena); - } - - } else { - - } - _impl_.query_ = query; - // @@protoc_insertion_point(field_set_allocated:pg_query.DeclareCursorStmt.query) -} - -// ------------------------------------------------------------------- - -// CreateTableSpaceStmt - -// string tablespacename = 1 [json_name = "tablespacename"]; -inline void CreateTableSpaceStmt::clear_tablespacename() { - _impl_.tablespacename_.ClearToEmpty(); -} -inline const std::string& CreateTableSpaceStmt::tablespacename() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTableSpaceStmt.tablespacename) - return _internal_tablespacename(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateTableSpaceStmt::set_tablespacename(ArgT0&& arg0, ArgT... args) { - - _impl_.tablespacename_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateTableSpaceStmt.tablespacename) -} -inline std::string* CreateTableSpaceStmt::mutable_tablespacename() { - std::string* _s = _internal_mutable_tablespacename(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateTableSpaceStmt.tablespacename) - return _s; -} -inline const std::string& CreateTableSpaceStmt::_internal_tablespacename() const { - return _impl_.tablespacename_.Get(); -} -inline void CreateTableSpaceStmt::_internal_set_tablespacename(const std::string& value) { - - _impl_.tablespacename_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateTableSpaceStmt::_internal_mutable_tablespacename() { - - return _impl_.tablespacename_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateTableSpaceStmt::release_tablespacename() { - // @@protoc_insertion_point(field_release:pg_query.CreateTableSpaceStmt.tablespacename) - return _impl_.tablespacename_.Release(); -} -inline void CreateTableSpaceStmt::set_allocated_tablespacename(std::string* tablespacename) { - if (tablespacename != nullptr) { - - } else { - - } - _impl_.tablespacename_.SetAllocated(tablespacename, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.tablespacename_.IsDefault()) { - _impl_.tablespacename_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateTableSpaceStmt.tablespacename) -} - -// .pg_query.RoleSpec owner = 2 [json_name = "owner"]; -inline bool CreateTableSpaceStmt::_internal_has_owner() const { - return this != internal_default_instance() && _impl_.owner_ != nullptr; -} -inline bool CreateTableSpaceStmt::has_owner() const { - return _internal_has_owner(); -} -inline void CreateTableSpaceStmt::clear_owner() { - if (GetArenaForAllocation() == nullptr && _impl_.owner_ != nullptr) { - delete _impl_.owner_; - } - _impl_.owner_ = nullptr; -} -inline const ::pg_query::RoleSpec& CreateTableSpaceStmt::_internal_owner() const { - const ::pg_query::RoleSpec* p = _impl_.owner_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RoleSpec_default_instance_); -} -inline const ::pg_query::RoleSpec& CreateTableSpaceStmt::owner() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTableSpaceStmt.owner) - return _internal_owner(); -} -inline void CreateTableSpaceStmt::unsafe_arena_set_allocated_owner( - ::pg_query::RoleSpec* owner) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.owner_); - } - _impl_.owner_ = owner; - if (owner) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateTableSpaceStmt.owner) -} -inline ::pg_query::RoleSpec* CreateTableSpaceStmt::release_owner() { - - ::pg_query::RoleSpec* temp = _impl_.owner_; - _impl_.owner_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RoleSpec* CreateTableSpaceStmt::unsafe_arena_release_owner() { - // @@protoc_insertion_point(field_release:pg_query.CreateTableSpaceStmt.owner) - - ::pg_query::RoleSpec* temp = _impl_.owner_; - _impl_.owner_ = nullptr; - return temp; -} -inline ::pg_query::RoleSpec* CreateTableSpaceStmt::_internal_mutable_owner() { - - if (_impl_.owner_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RoleSpec>(GetArenaForAllocation()); - _impl_.owner_ = p; - } - return _impl_.owner_; -} -inline ::pg_query::RoleSpec* CreateTableSpaceStmt::mutable_owner() { - ::pg_query::RoleSpec* _msg = _internal_mutable_owner(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateTableSpaceStmt.owner) - return _msg; -} -inline void CreateTableSpaceStmt::set_allocated_owner(::pg_query::RoleSpec* owner) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.owner_; - } - if (owner) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(owner); - if (message_arena != submessage_arena) { - owner = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, owner, submessage_arena); - } - - } else { - - } - _impl_.owner_ = owner; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateTableSpaceStmt.owner) -} - -// string location = 3 [json_name = "location"]; -inline void CreateTableSpaceStmt::clear_location() { - _impl_.location_.ClearToEmpty(); -} -inline const std::string& CreateTableSpaceStmt::location() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTableSpaceStmt.location) - return _internal_location(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateTableSpaceStmt::set_location(ArgT0&& arg0, ArgT... args) { - - _impl_.location_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateTableSpaceStmt.location) -} -inline std::string* CreateTableSpaceStmt::mutable_location() { - std::string* _s = _internal_mutable_location(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateTableSpaceStmt.location) - return _s; -} -inline const std::string& CreateTableSpaceStmt::_internal_location() const { - return _impl_.location_.Get(); -} -inline void CreateTableSpaceStmt::_internal_set_location(const std::string& value) { - - _impl_.location_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateTableSpaceStmt::_internal_mutable_location() { - - return _impl_.location_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateTableSpaceStmt::release_location() { - // @@protoc_insertion_point(field_release:pg_query.CreateTableSpaceStmt.location) - return _impl_.location_.Release(); -} -inline void CreateTableSpaceStmt::set_allocated_location(std::string* location) { - if (location != nullptr) { - - } else { - - } - _impl_.location_.SetAllocated(location, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.location_.IsDefault()) { - _impl_.location_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateTableSpaceStmt.location) -} - -// repeated .pg_query.Node options = 4 [json_name = "options"]; -inline int CreateTableSpaceStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int CreateTableSpaceStmt::options_size() const { - return _internal_options_size(); -} -inline void CreateTableSpaceStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* CreateTableSpaceStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateTableSpaceStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateTableSpaceStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateTableSpaceStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& CreateTableSpaceStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& CreateTableSpaceStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateTableSpaceStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* CreateTableSpaceStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* CreateTableSpaceStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.CreateTableSpaceStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateTableSpaceStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.CreateTableSpaceStmt.options) - return _impl_.options_; -} - -// ------------------------------------------------------------------- - -// DropTableSpaceStmt - -// string tablespacename = 1 [json_name = "tablespacename"]; -inline void DropTableSpaceStmt::clear_tablespacename() { - _impl_.tablespacename_.ClearToEmpty(); -} -inline const std::string& DropTableSpaceStmt::tablespacename() const { - // @@protoc_insertion_point(field_get:pg_query.DropTableSpaceStmt.tablespacename) - return _internal_tablespacename(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void DropTableSpaceStmt::set_tablespacename(ArgT0&& arg0, ArgT... args) { - - _impl_.tablespacename_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.DropTableSpaceStmt.tablespacename) -} -inline std::string* DropTableSpaceStmt::mutable_tablespacename() { - std::string* _s = _internal_mutable_tablespacename(); - // @@protoc_insertion_point(field_mutable:pg_query.DropTableSpaceStmt.tablespacename) - return _s; -} -inline const std::string& DropTableSpaceStmt::_internal_tablespacename() const { - return _impl_.tablespacename_.Get(); -} -inline void DropTableSpaceStmt::_internal_set_tablespacename(const std::string& value) { - - _impl_.tablespacename_.Set(value, GetArenaForAllocation()); -} -inline std::string* DropTableSpaceStmt::_internal_mutable_tablespacename() { - - return _impl_.tablespacename_.Mutable(GetArenaForAllocation()); -} -inline std::string* DropTableSpaceStmt::release_tablespacename() { - // @@protoc_insertion_point(field_release:pg_query.DropTableSpaceStmt.tablespacename) - return _impl_.tablespacename_.Release(); -} -inline void DropTableSpaceStmt::set_allocated_tablespacename(std::string* tablespacename) { - if (tablespacename != nullptr) { - - } else { - - } - _impl_.tablespacename_.SetAllocated(tablespacename, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.tablespacename_.IsDefault()) { - _impl_.tablespacename_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.DropTableSpaceStmt.tablespacename) -} - -// bool missing_ok = 2 [json_name = "missing_ok"]; -inline void DropTableSpaceStmt::clear_missing_ok() { - _impl_.missing_ok_ = false; -} -inline bool DropTableSpaceStmt::_internal_missing_ok() const { - return _impl_.missing_ok_; -} -inline bool DropTableSpaceStmt::missing_ok() const { - // @@protoc_insertion_point(field_get:pg_query.DropTableSpaceStmt.missing_ok) - return _internal_missing_ok(); -} -inline void DropTableSpaceStmt::_internal_set_missing_ok(bool value) { - - _impl_.missing_ok_ = value; -} -inline void DropTableSpaceStmt::set_missing_ok(bool value) { - _internal_set_missing_ok(value); - // @@protoc_insertion_point(field_set:pg_query.DropTableSpaceStmt.missing_ok) -} - -// ------------------------------------------------------------------- - -// AlterObjectDependsStmt - -// .pg_query.ObjectType object_type = 1 [json_name = "objectType"]; -inline void AlterObjectDependsStmt::clear_object_type() { - _impl_.object_type_ = 0; -} -inline ::pg_query::ObjectType AlterObjectDependsStmt::_internal_object_type() const { - return static_cast< ::pg_query::ObjectType >(_impl_.object_type_); -} -inline ::pg_query::ObjectType AlterObjectDependsStmt::object_type() const { - // @@protoc_insertion_point(field_get:pg_query.AlterObjectDependsStmt.object_type) - return _internal_object_type(); -} -inline void AlterObjectDependsStmt::_internal_set_object_type(::pg_query::ObjectType value) { - - _impl_.object_type_ = value; -} -inline void AlterObjectDependsStmt::set_object_type(::pg_query::ObjectType value) { - _internal_set_object_type(value); - // @@protoc_insertion_point(field_set:pg_query.AlterObjectDependsStmt.object_type) -} - -// .pg_query.RangeVar relation = 2 [json_name = "relation"]; -inline bool AlterObjectDependsStmt::_internal_has_relation() const { - return this != internal_default_instance() && _impl_.relation_ != nullptr; -} -inline bool AlterObjectDependsStmt::has_relation() const { - return _internal_has_relation(); -} -inline void AlterObjectDependsStmt::clear_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.relation_ != nullptr) { - delete _impl_.relation_; - } - _impl_.relation_ = nullptr; -} -inline const ::pg_query::RangeVar& AlterObjectDependsStmt::_internal_relation() const { - const ::pg_query::RangeVar* p = _impl_.relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& AlterObjectDependsStmt::relation() const { - // @@protoc_insertion_point(field_get:pg_query.AlterObjectDependsStmt.relation) - return _internal_relation(); -} -inline void AlterObjectDependsStmt::unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.relation_); - } - _impl_.relation_ = relation; - if (relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterObjectDependsStmt.relation) -} -inline ::pg_query::RangeVar* AlterObjectDependsStmt::release_relation() { - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* AlterObjectDependsStmt::unsafe_arena_release_relation() { - // @@protoc_insertion_point(field_release:pg_query.AlterObjectDependsStmt.relation) - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* AlterObjectDependsStmt::_internal_mutable_relation() { - - if (_impl_.relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.relation_ = p; - } - return _impl_.relation_; -} -inline ::pg_query::RangeVar* AlterObjectDependsStmt::mutable_relation() { - ::pg_query::RangeVar* _msg = _internal_mutable_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterObjectDependsStmt.relation) - return _msg; -} -inline void AlterObjectDependsStmt::set_allocated_relation(::pg_query::RangeVar* relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.relation_; - } - if (relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(relation); - if (message_arena != submessage_arena) { - relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, relation, submessage_arena); - } - - } else { - - } - _impl_.relation_ = relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterObjectDependsStmt.relation) -} - -// .pg_query.Node object = 3 [json_name = "object"]; -inline bool AlterObjectDependsStmt::_internal_has_object() const { - return this != internal_default_instance() && _impl_.object_ != nullptr; -} -inline bool AlterObjectDependsStmt::has_object() const { - return _internal_has_object(); -} -inline void AlterObjectDependsStmt::clear_object() { - if (GetArenaForAllocation() == nullptr && _impl_.object_ != nullptr) { - delete _impl_.object_; - } - _impl_.object_ = nullptr; -} -inline const ::pg_query::Node& AlterObjectDependsStmt::_internal_object() const { - const ::pg_query::Node* p = _impl_.object_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& AlterObjectDependsStmt::object() const { - // @@protoc_insertion_point(field_get:pg_query.AlterObjectDependsStmt.object) - return _internal_object(); -} -inline void AlterObjectDependsStmt::unsafe_arena_set_allocated_object( - ::pg_query::Node* object) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.object_); - } - _impl_.object_ = object; - if (object) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterObjectDependsStmt.object) -} -inline ::pg_query::Node* AlterObjectDependsStmt::release_object() { - - ::pg_query::Node* temp = _impl_.object_; - _impl_.object_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* AlterObjectDependsStmt::unsafe_arena_release_object() { - // @@protoc_insertion_point(field_release:pg_query.AlterObjectDependsStmt.object) - - ::pg_query::Node* temp = _impl_.object_; - _impl_.object_ = nullptr; - return temp; -} -inline ::pg_query::Node* AlterObjectDependsStmt::_internal_mutable_object() { - - if (_impl_.object_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.object_ = p; - } - return _impl_.object_; -} -inline ::pg_query::Node* AlterObjectDependsStmt::mutable_object() { - ::pg_query::Node* _msg = _internal_mutable_object(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterObjectDependsStmt.object) - return _msg; -} -inline void AlterObjectDependsStmt::set_allocated_object(::pg_query::Node* object) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.object_; - } - if (object) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(object); - if (message_arena != submessage_arena) { - object = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, object, submessage_arena); - } - - } else { - - } - _impl_.object_ = object; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterObjectDependsStmt.object) -} - -// .pg_query.String extname = 4 [json_name = "extname"]; -inline bool AlterObjectDependsStmt::_internal_has_extname() const { - return this != internal_default_instance() && _impl_.extname_ != nullptr; -} -inline bool AlterObjectDependsStmt::has_extname() const { - return _internal_has_extname(); -} -inline void AlterObjectDependsStmt::clear_extname() { - if (GetArenaForAllocation() == nullptr && _impl_.extname_ != nullptr) { - delete _impl_.extname_; - } - _impl_.extname_ = nullptr; -} -inline const ::pg_query::String& AlterObjectDependsStmt::_internal_extname() const { - const ::pg_query::String* p = _impl_.extname_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_String_default_instance_); -} -inline const ::pg_query::String& AlterObjectDependsStmt::extname() const { - // @@protoc_insertion_point(field_get:pg_query.AlterObjectDependsStmt.extname) - return _internal_extname(); -} -inline void AlterObjectDependsStmt::unsafe_arena_set_allocated_extname( - ::pg_query::String* extname) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.extname_); - } - _impl_.extname_ = extname; - if (extname) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterObjectDependsStmt.extname) -} -inline ::pg_query::String* AlterObjectDependsStmt::release_extname() { - - ::pg_query::String* temp = _impl_.extname_; - _impl_.extname_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::String* AlterObjectDependsStmt::unsafe_arena_release_extname() { - // @@protoc_insertion_point(field_release:pg_query.AlterObjectDependsStmt.extname) - - ::pg_query::String* temp = _impl_.extname_; - _impl_.extname_ = nullptr; - return temp; -} -inline ::pg_query::String* AlterObjectDependsStmt::_internal_mutable_extname() { - - if (_impl_.extname_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::String>(GetArenaForAllocation()); - _impl_.extname_ = p; - } - return _impl_.extname_; -} -inline ::pg_query::String* AlterObjectDependsStmt::mutable_extname() { - ::pg_query::String* _msg = _internal_mutable_extname(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterObjectDependsStmt.extname) - return _msg; -} -inline void AlterObjectDependsStmt::set_allocated_extname(::pg_query::String* extname) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.extname_; - } - if (extname) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(extname); - if (message_arena != submessage_arena) { - extname = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, extname, submessage_arena); - } - - } else { - - } - _impl_.extname_ = extname; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterObjectDependsStmt.extname) -} - -// bool remove = 5 [json_name = "remove"]; -inline void AlterObjectDependsStmt::clear_remove() { - _impl_.remove_ = false; -} -inline bool AlterObjectDependsStmt::_internal_remove() const { - return _impl_.remove_; -} -inline bool AlterObjectDependsStmt::remove() const { - // @@protoc_insertion_point(field_get:pg_query.AlterObjectDependsStmt.remove) - return _internal_remove(); -} -inline void AlterObjectDependsStmt::_internal_set_remove(bool value) { - - _impl_.remove_ = value; -} -inline void AlterObjectDependsStmt::set_remove(bool value) { - _internal_set_remove(value); - // @@protoc_insertion_point(field_set:pg_query.AlterObjectDependsStmt.remove) -} - -// ------------------------------------------------------------------- - -// AlterObjectSchemaStmt - -// .pg_query.ObjectType object_type = 1 [json_name = "objectType"]; -inline void AlterObjectSchemaStmt::clear_object_type() { - _impl_.object_type_ = 0; -} -inline ::pg_query::ObjectType AlterObjectSchemaStmt::_internal_object_type() const { - return static_cast< ::pg_query::ObjectType >(_impl_.object_type_); -} -inline ::pg_query::ObjectType AlterObjectSchemaStmt::object_type() const { - // @@protoc_insertion_point(field_get:pg_query.AlterObjectSchemaStmt.object_type) - return _internal_object_type(); -} -inline void AlterObjectSchemaStmt::_internal_set_object_type(::pg_query::ObjectType value) { - - _impl_.object_type_ = value; -} -inline void AlterObjectSchemaStmt::set_object_type(::pg_query::ObjectType value) { - _internal_set_object_type(value); - // @@protoc_insertion_point(field_set:pg_query.AlterObjectSchemaStmt.object_type) -} - -// .pg_query.RangeVar relation = 2 [json_name = "relation"]; -inline bool AlterObjectSchemaStmt::_internal_has_relation() const { - return this != internal_default_instance() && _impl_.relation_ != nullptr; -} -inline bool AlterObjectSchemaStmt::has_relation() const { - return _internal_has_relation(); -} -inline void AlterObjectSchemaStmt::clear_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.relation_ != nullptr) { - delete _impl_.relation_; - } - _impl_.relation_ = nullptr; -} -inline const ::pg_query::RangeVar& AlterObjectSchemaStmt::_internal_relation() const { - const ::pg_query::RangeVar* p = _impl_.relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& AlterObjectSchemaStmt::relation() const { - // @@protoc_insertion_point(field_get:pg_query.AlterObjectSchemaStmt.relation) - return _internal_relation(); -} -inline void AlterObjectSchemaStmt::unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.relation_); - } - _impl_.relation_ = relation; - if (relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterObjectSchemaStmt.relation) -} -inline ::pg_query::RangeVar* AlterObjectSchemaStmt::release_relation() { - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* AlterObjectSchemaStmt::unsafe_arena_release_relation() { - // @@protoc_insertion_point(field_release:pg_query.AlterObjectSchemaStmt.relation) - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* AlterObjectSchemaStmt::_internal_mutable_relation() { - - if (_impl_.relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.relation_ = p; - } - return _impl_.relation_; -} -inline ::pg_query::RangeVar* AlterObjectSchemaStmt::mutable_relation() { - ::pg_query::RangeVar* _msg = _internal_mutable_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterObjectSchemaStmt.relation) - return _msg; -} -inline void AlterObjectSchemaStmt::set_allocated_relation(::pg_query::RangeVar* relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.relation_; - } - if (relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(relation); - if (message_arena != submessage_arena) { - relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, relation, submessage_arena); - } - - } else { - - } - _impl_.relation_ = relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterObjectSchemaStmt.relation) -} - -// .pg_query.Node object = 3 [json_name = "object"]; -inline bool AlterObjectSchemaStmt::_internal_has_object() const { - return this != internal_default_instance() && _impl_.object_ != nullptr; -} -inline bool AlterObjectSchemaStmt::has_object() const { - return _internal_has_object(); -} -inline void AlterObjectSchemaStmt::clear_object() { - if (GetArenaForAllocation() == nullptr && _impl_.object_ != nullptr) { - delete _impl_.object_; - } - _impl_.object_ = nullptr; -} -inline const ::pg_query::Node& AlterObjectSchemaStmt::_internal_object() const { - const ::pg_query::Node* p = _impl_.object_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& AlterObjectSchemaStmt::object() const { - // @@protoc_insertion_point(field_get:pg_query.AlterObjectSchemaStmt.object) - return _internal_object(); -} -inline void AlterObjectSchemaStmt::unsafe_arena_set_allocated_object( - ::pg_query::Node* object) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.object_); - } - _impl_.object_ = object; - if (object) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterObjectSchemaStmt.object) -} -inline ::pg_query::Node* AlterObjectSchemaStmt::release_object() { - - ::pg_query::Node* temp = _impl_.object_; - _impl_.object_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* AlterObjectSchemaStmt::unsafe_arena_release_object() { - // @@protoc_insertion_point(field_release:pg_query.AlterObjectSchemaStmt.object) - - ::pg_query::Node* temp = _impl_.object_; - _impl_.object_ = nullptr; - return temp; -} -inline ::pg_query::Node* AlterObjectSchemaStmt::_internal_mutable_object() { - - if (_impl_.object_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.object_ = p; - } - return _impl_.object_; -} -inline ::pg_query::Node* AlterObjectSchemaStmt::mutable_object() { - ::pg_query::Node* _msg = _internal_mutable_object(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterObjectSchemaStmt.object) - return _msg; -} -inline void AlterObjectSchemaStmt::set_allocated_object(::pg_query::Node* object) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.object_; - } - if (object) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(object); - if (message_arena != submessage_arena) { - object = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, object, submessage_arena); - } - - } else { - - } - _impl_.object_ = object; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterObjectSchemaStmt.object) -} - -// string newschema = 4 [json_name = "newschema"]; -inline void AlterObjectSchemaStmt::clear_newschema() { - _impl_.newschema_.ClearToEmpty(); -} -inline const std::string& AlterObjectSchemaStmt::newschema() const { - // @@protoc_insertion_point(field_get:pg_query.AlterObjectSchemaStmt.newschema) - return _internal_newschema(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterObjectSchemaStmt::set_newschema(ArgT0&& arg0, ArgT... args) { - - _impl_.newschema_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterObjectSchemaStmt.newschema) -} -inline std::string* AlterObjectSchemaStmt::mutable_newschema() { - std::string* _s = _internal_mutable_newschema(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterObjectSchemaStmt.newschema) - return _s; -} -inline const std::string& AlterObjectSchemaStmt::_internal_newschema() const { - return _impl_.newschema_.Get(); -} -inline void AlterObjectSchemaStmt::_internal_set_newschema(const std::string& value) { - - _impl_.newschema_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterObjectSchemaStmt::_internal_mutable_newschema() { - - return _impl_.newschema_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterObjectSchemaStmt::release_newschema() { - // @@protoc_insertion_point(field_release:pg_query.AlterObjectSchemaStmt.newschema) - return _impl_.newschema_.Release(); -} -inline void AlterObjectSchemaStmt::set_allocated_newschema(std::string* newschema) { - if (newschema != nullptr) { - - } else { - - } - _impl_.newschema_.SetAllocated(newschema, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.newschema_.IsDefault()) { - _impl_.newschema_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterObjectSchemaStmt.newschema) -} - -// bool missing_ok = 5 [json_name = "missing_ok"]; -inline void AlterObjectSchemaStmt::clear_missing_ok() { - _impl_.missing_ok_ = false; -} -inline bool AlterObjectSchemaStmt::_internal_missing_ok() const { - return _impl_.missing_ok_; -} -inline bool AlterObjectSchemaStmt::missing_ok() const { - // @@protoc_insertion_point(field_get:pg_query.AlterObjectSchemaStmt.missing_ok) - return _internal_missing_ok(); -} -inline void AlterObjectSchemaStmt::_internal_set_missing_ok(bool value) { - - _impl_.missing_ok_ = value; -} -inline void AlterObjectSchemaStmt::set_missing_ok(bool value) { - _internal_set_missing_ok(value); - // @@protoc_insertion_point(field_set:pg_query.AlterObjectSchemaStmt.missing_ok) -} - -// ------------------------------------------------------------------- - -// AlterOwnerStmt - -// .pg_query.ObjectType object_type = 1 [json_name = "objectType"]; -inline void AlterOwnerStmt::clear_object_type() { - _impl_.object_type_ = 0; -} -inline ::pg_query::ObjectType AlterOwnerStmt::_internal_object_type() const { - return static_cast< ::pg_query::ObjectType >(_impl_.object_type_); -} -inline ::pg_query::ObjectType AlterOwnerStmt::object_type() const { - // @@protoc_insertion_point(field_get:pg_query.AlterOwnerStmt.object_type) - return _internal_object_type(); -} -inline void AlterOwnerStmt::_internal_set_object_type(::pg_query::ObjectType value) { - - _impl_.object_type_ = value; -} -inline void AlterOwnerStmt::set_object_type(::pg_query::ObjectType value) { - _internal_set_object_type(value); - // @@protoc_insertion_point(field_set:pg_query.AlterOwnerStmt.object_type) -} - -// .pg_query.RangeVar relation = 2 [json_name = "relation"]; -inline bool AlterOwnerStmt::_internal_has_relation() const { - return this != internal_default_instance() && _impl_.relation_ != nullptr; -} -inline bool AlterOwnerStmt::has_relation() const { - return _internal_has_relation(); -} -inline void AlterOwnerStmt::clear_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.relation_ != nullptr) { - delete _impl_.relation_; - } - _impl_.relation_ = nullptr; -} -inline const ::pg_query::RangeVar& AlterOwnerStmt::_internal_relation() const { - const ::pg_query::RangeVar* p = _impl_.relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& AlterOwnerStmt::relation() const { - // @@protoc_insertion_point(field_get:pg_query.AlterOwnerStmt.relation) - return _internal_relation(); -} -inline void AlterOwnerStmt::unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.relation_); - } - _impl_.relation_ = relation; - if (relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterOwnerStmt.relation) -} -inline ::pg_query::RangeVar* AlterOwnerStmt::release_relation() { - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* AlterOwnerStmt::unsafe_arena_release_relation() { - // @@protoc_insertion_point(field_release:pg_query.AlterOwnerStmt.relation) - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* AlterOwnerStmt::_internal_mutable_relation() { - - if (_impl_.relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.relation_ = p; - } - return _impl_.relation_; -} -inline ::pg_query::RangeVar* AlterOwnerStmt::mutable_relation() { - ::pg_query::RangeVar* _msg = _internal_mutable_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterOwnerStmt.relation) - return _msg; -} -inline void AlterOwnerStmt::set_allocated_relation(::pg_query::RangeVar* relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.relation_; - } - if (relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(relation); - if (message_arena != submessage_arena) { - relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, relation, submessage_arena); - } - - } else { - - } - _impl_.relation_ = relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterOwnerStmt.relation) -} - -// .pg_query.Node object = 3 [json_name = "object"]; -inline bool AlterOwnerStmt::_internal_has_object() const { - return this != internal_default_instance() && _impl_.object_ != nullptr; -} -inline bool AlterOwnerStmt::has_object() const { - return _internal_has_object(); -} -inline void AlterOwnerStmt::clear_object() { - if (GetArenaForAllocation() == nullptr && _impl_.object_ != nullptr) { - delete _impl_.object_; - } - _impl_.object_ = nullptr; -} -inline const ::pg_query::Node& AlterOwnerStmt::_internal_object() const { - const ::pg_query::Node* p = _impl_.object_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& AlterOwnerStmt::object() const { - // @@protoc_insertion_point(field_get:pg_query.AlterOwnerStmt.object) - return _internal_object(); -} -inline void AlterOwnerStmt::unsafe_arena_set_allocated_object( - ::pg_query::Node* object) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.object_); - } - _impl_.object_ = object; - if (object) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterOwnerStmt.object) -} -inline ::pg_query::Node* AlterOwnerStmt::release_object() { - - ::pg_query::Node* temp = _impl_.object_; - _impl_.object_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* AlterOwnerStmt::unsafe_arena_release_object() { - // @@protoc_insertion_point(field_release:pg_query.AlterOwnerStmt.object) - - ::pg_query::Node* temp = _impl_.object_; - _impl_.object_ = nullptr; - return temp; -} -inline ::pg_query::Node* AlterOwnerStmt::_internal_mutable_object() { - - if (_impl_.object_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.object_ = p; - } - return _impl_.object_; -} -inline ::pg_query::Node* AlterOwnerStmt::mutable_object() { - ::pg_query::Node* _msg = _internal_mutable_object(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterOwnerStmt.object) - return _msg; -} -inline void AlterOwnerStmt::set_allocated_object(::pg_query::Node* object) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.object_; - } - if (object) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(object); - if (message_arena != submessage_arena) { - object = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, object, submessage_arena); - } - - } else { - - } - _impl_.object_ = object; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterOwnerStmt.object) -} - -// .pg_query.RoleSpec newowner = 4 [json_name = "newowner"]; -inline bool AlterOwnerStmt::_internal_has_newowner() const { - return this != internal_default_instance() && _impl_.newowner_ != nullptr; -} -inline bool AlterOwnerStmt::has_newowner() const { - return _internal_has_newowner(); -} -inline void AlterOwnerStmt::clear_newowner() { - if (GetArenaForAllocation() == nullptr && _impl_.newowner_ != nullptr) { - delete _impl_.newowner_; - } - _impl_.newowner_ = nullptr; -} -inline const ::pg_query::RoleSpec& AlterOwnerStmt::_internal_newowner() const { - const ::pg_query::RoleSpec* p = _impl_.newowner_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RoleSpec_default_instance_); -} -inline const ::pg_query::RoleSpec& AlterOwnerStmt::newowner() const { - // @@protoc_insertion_point(field_get:pg_query.AlterOwnerStmt.newowner) - return _internal_newowner(); -} -inline void AlterOwnerStmt::unsafe_arena_set_allocated_newowner( - ::pg_query::RoleSpec* newowner) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.newowner_); - } - _impl_.newowner_ = newowner; - if (newowner) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterOwnerStmt.newowner) -} -inline ::pg_query::RoleSpec* AlterOwnerStmt::release_newowner() { - - ::pg_query::RoleSpec* temp = _impl_.newowner_; - _impl_.newowner_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RoleSpec* AlterOwnerStmt::unsafe_arena_release_newowner() { - // @@protoc_insertion_point(field_release:pg_query.AlterOwnerStmt.newowner) - - ::pg_query::RoleSpec* temp = _impl_.newowner_; - _impl_.newowner_ = nullptr; - return temp; -} -inline ::pg_query::RoleSpec* AlterOwnerStmt::_internal_mutable_newowner() { - - if (_impl_.newowner_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RoleSpec>(GetArenaForAllocation()); - _impl_.newowner_ = p; - } - return _impl_.newowner_; -} -inline ::pg_query::RoleSpec* AlterOwnerStmt::mutable_newowner() { - ::pg_query::RoleSpec* _msg = _internal_mutable_newowner(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterOwnerStmt.newowner) - return _msg; -} -inline void AlterOwnerStmt::set_allocated_newowner(::pg_query::RoleSpec* newowner) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.newowner_; - } - if (newowner) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(newowner); - if (message_arena != submessage_arena) { - newowner = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, newowner, submessage_arena); - } - - } else { - - } - _impl_.newowner_ = newowner; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterOwnerStmt.newowner) -} - -// ------------------------------------------------------------------- - -// AlterOperatorStmt - -// .pg_query.ObjectWithArgs opername = 1 [json_name = "opername"]; -inline bool AlterOperatorStmt::_internal_has_opername() const { - return this != internal_default_instance() && _impl_.opername_ != nullptr; -} -inline bool AlterOperatorStmt::has_opername() const { - return _internal_has_opername(); -} -inline void AlterOperatorStmt::clear_opername() { - if (GetArenaForAllocation() == nullptr && _impl_.opername_ != nullptr) { - delete _impl_.opername_; - } - _impl_.opername_ = nullptr; -} -inline const ::pg_query::ObjectWithArgs& AlterOperatorStmt::_internal_opername() const { - const ::pg_query::ObjectWithArgs* p = _impl_.opername_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_ObjectWithArgs_default_instance_); -} -inline const ::pg_query::ObjectWithArgs& AlterOperatorStmt::opername() const { - // @@protoc_insertion_point(field_get:pg_query.AlterOperatorStmt.opername) - return _internal_opername(); -} -inline void AlterOperatorStmt::unsafe_arena_set_allocated_opername( - ::pg_query::ObjectWithArgs* opername) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.opername_); - } - _impl_.opername_ = opername; - if (opername) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterOperatorStmt.opername) -} -inline ::pg_query::ObjectWithArgs* AlterOperatorStmt::release_opername() { - - ::pg_query::ObjectWithArgs* temp = _impl_.opername_; - _impl_.opername_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::ObjectWithArgs* AlterOperatorStmt::unsafe_arena_release_opername() { - // @@protoc_insertion_point(field_release:pg_query.AlterOperatorStmt.opername) - - ::pg_query::ObjectWithArgs* temp = _impl_.opername_; - _impl_.opername_ = nullptr; - return temp; -} -inline ::pg_query::ObjectWithArgs* AlterOperatorStmt::_internal_mutable_opername() { - - if (_impl_.opername_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::ObjectWithArgs>(GetArenaForAllocation()); - _impl_.opername_ = p; - } - return _impl_.opername_; -} -inline ::pg_query::ObjectWithArgs* AlterOperatorStmt::mutable_opername() { - ::pg_query::ObjectWithArgs* _msg = _internal_mutable_opername(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterOperatorStmt.opername) - return _msg; -} -inline void AlterOperatorStmt::set_allocated_opername(::pg_query::ObjectWithArgs* opername) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.opername_; - } - if (opername) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(opername); - if (message_arena != submessage_arena) { - opername = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, opername, submessage_arena); - } - - } else { - - } - _impl_.opername_ = opername; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterOperatorStmt.opername) -} - -// repeated .pg_query.Node options = 2 [json_name = "options"]; -inline int AlterOperatorStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int AlterOperatorStmt::options_size() const { - return _internal_options_size(); -} -inline void AlterOperatorStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* AlterOperatorStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterOperatorStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterOperatorStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterOperatorStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& AlterOperatorStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& AlterOperatorStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterOperatorStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* AlterOperatorStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* AlterOperatorStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.AlterOperatorStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterOperatorStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.AlterOperatorStmt.options) - return _impl_.options_; -} - -// ------------------------------------------------------------------- - -// AlterTypeStmt - -// repeated .pg_query.Node type_name = 1 [json_name = "typeName"]; -inline int AlterTypeStmt::_internal_type_name_size() const { - return _impl_.type_name_.size(); -} -inline int AlterTypeStmt::type_name_size() const { - return _internal_type_name_size(); -} -inline void AlterTypeStmt::clear_type_name() { - _impl_.type_name_.Clear(); -} -inline ::pg_query::Node* AlterTypeStmt::mutable_type_name(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterTypeStmt.type_name) - return _impl_.type_name_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterTypeStmt::mutable_type_name() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterTypeStmt.type_name) - return &_impl_.type_name_; -} -inline const ::pg_query::Node& AlterTypeStmt::_internal_type_name(int index) const { - return _impl_.type_name_.Get(index); -} -inline const ::pg_query::Node& AlterTypeStmt::type_name(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterTypeStmt.type_name) - return _internal_type_name(index); -} -inline ::pg_query::Node* AlterTypeStmt::_internal_add_type_name() { - return _impl_.type_name_.Add(); -} -inline ::pg_query::Node* AlterTypeStmt::add_type_name() { - ::pg_query::Node* _add = _internal_add_type_name(); - // @@protoc_insertion_point(field_add:pg_query.AlterTypeStmt.type_name) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterTypeStmt::type_name() const { - // @@protoc_insertion_point(field_list:pg_query.AlterTypeStmt.type_name) - return _impl_.type_name_; -} - -// repeated .pg_query.Node options = 2 [json_name = "options"]; -inline int AlterTypeStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int AlterTypeStmt::options_size() const { - return _internal_options_size(); -} -inline void AlterTypeStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* AlterTypeStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterTypeStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterTypeStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterTypeStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& AlterTypeStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& AlterTypeStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterTypeStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* AlterTypeStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* AlterTypeStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.AlterTypeStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterTypeStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.AlterTypeStmt.options) - return _impl_.options_; -} - -// ------------------------------------------------------------------- - -// DropOwnedStmt - -// repeated .pg_query.Node roles = 1 [json_name = "roles"]; -inline int DropOwnedStmt::_internal_roles_size() const { - return _impl_.roles_.size(); -} -inline int DropOwnedStmt::roles_size() const { - return _internal_roles_size(); -} -inline void DropOwnedStmt::clear_roles() { - _impl_.roles_.Clear(); -} -inline ::pg_query::Node* DropOwnedStmt::mutable_roles(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.DropOwnedStmt.roles) - return _impl_.roles_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -DropOwnedStmt::mutable_roles() { - // @@protoc_insertion_point(field_mutable_list:pg_query.DropOwnedStmt.roles) - return &_impl_.roles_; -} -inline const ::pg_query::Node& DropOwnedStmt::_internal_roles(int index) const { - return _impl_.roles_.Get(index); -} -inline const ::pg_query::Node& DropOwnedStmt::roles(int index) const { - // @@protoc_insertion_point(field_get:pg_query.DropOwnedStmt.roles) - return _internal_roles(index); -} -inline ::pg_query::Node* DropOwnedStmt::_internal_add_roles() { - return _impl_.roles_.Add(); -} -inline ::pg_query::Node* DropOwnedStmt::add_roles() { - ::pg_query::Node* _add = _internal_add_roles(); - // @@protoc_insertion_point(field_add:pg_query.DropOwnedStmt.roles) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -DropOwnedStmt::roles() const { - // @@protoc_insertion_point(field_list:pg_query.DropOwnedStmt.roles) - return _impl_.roles_; -} - -// .pg_query.DropBehavior behavior = 2 [json_name = "behavior"]; -inline void DropOwnedStmt::clear_behavior() { - _impl_.behavior_ = 0; -} -inline ::pg_query::DropBehavior DropOwnedStmt::_internal_behavior() const { - return static_cast< ::pg_query::DropBehavior >(_impl_.behavior_); -} -inline ::pg_query::DropBehavior DropOwnedStmt::behavior() const { - // @@protoc_insertion_point(field_get:pg_query.DropOwnedStmt.behavior) - return _internal_behavior(); -} -inline void DropOwnedStmt::_internal_set_behavior(::pg_query::DropBehavior value) { - - _impl_.behavior_ = value; -} -inline void DropOwnedStmt::set_behavior(::pg_query::DropBehavior value) { - _internal_set_behavior(value); - // @@protoc_insertion_point(field_set:pg_query.DropOwnedStmt.behavior) -} - -// ------------------------------------------------------------------- - -// ReassignOwnedStmt - -// repeated .pg_query.Node roles = 1 [json_name = "roles"]; -inline int ReassignOwnedStmt::_internal_roles_size() const { - return _impl_.roles_.size(); -} -inline int ReassignOwnedStmt::roles_size() const { - return _internal_roles_size(); -} -inline void ReassignOwnedStmt::clear_roles() { - _impl_.roles_.Clear(); -} -inline ::pg_query::Node* ReassignOwnedStmt::mutable_roles(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.ReassignOwnedStmt.roles) - return _impl_.roles_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -ReassignOwnedStmt::mutable_roles() { - // @@protoc_insertion_point(field_mutable_list:pg_query.ReassignOwnedStmt.roles) - return &_impl_.roles_; -} -inline const ::pg_query::Node& ReassignOwnedStmt::_internal_roles(int index) const { - return _impl_.roles_.Get(index); -} -inline const ::pg_query::Node& ReassignOwnedStmt::roles(int index) const { - // @@protoc_insertion_point(field_get:pg_query.ReassignOwnedStmt.roles) - return _internal_roles(index); -} -inline ::pg_query::Node* ReassignOwnedStmt::_internal_add_roles() { - return _impl_.roles_.Add(); -} -inline ::pg_query::Node* ReassignOwnedStmt::add_roles() { - ::pg_query::Node* _add = _internal_add_roles(); - // @@protoc_insertion_point(field_add:pg_query.ReassignOwnedStmt.roles) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -ReassignOwnedStmt::roles() const { - // @@protoc_insertion_point(field_list:pg_query.ReassignOwnedStmt.roles) - return _impl_.roles_; -} - -// .pg_query.RoleSpec newrole = 2 [json_name = "newrole"]; -inline bool ReassignOwnedStmt::_internal_has_newrole() const { - return this != internal_default_instance() && _impl_.newrole_ != nullptr; -} -inline bool ReassignOwnedStmt::has_newrole() const { - return _internal_has_newrole(); -} -inline void ReassignOwnedStmt::clear_newrole() { - if (GetArenaForAllocation() == nullptr && _impl_.newrole_ != nullptr) { - delete _impl_.newrole_; - } - _impl_.newrole_ = nullptr; -} -inline const ::pg_query::RoleSpec& ReassignOwnedStmt::_internal_newrole() const { - const ::pg_query::RoleSpec* p = _impl_.newrole_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RoleSpec_default_instance_); -} -inline const ::pg_query::RoleSpec& ReassignOwnedStmt::newrole() const { - // @@protoc_insertion_point(field_get:pg_query.ReassignOwnedStmt.newrole) - return _internal_newrole(); -} -inline void ReassignOwnedStmt::unsafe_arena_set_allocated_newrole( - ::pg_query::RoleSpec* newrole) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.newrole_); - } - _impl_.newrole_ = newrole; - if (newrole) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.ReassignOwnedStmt.newrole) -} -inline ::pg_query::RoleSpec* ReassignOwnedStmt::release_newrole() { - - ::pg_query::RoleSpec* temp = _impl_.newrole_; - _impl_.newrole_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RoleSpec* ReassignOwnedStmt::unsafe_arena_release_newrole() { - // @@protoc_insertion_point(field_release:pg_query.ReassignOwnedStmt.newrole) - - ::pg_query::RoleSpec* temp = _impl_.newrole_; - _impl_.newrole_ = nullptr; - return temp; -} -inline ::pg_query::RoleSpec* ReassignOwnedStmt::_internal_mutable_newrole() { - - if (_impl_.newrole_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RoleSpec>(GetArenaForAllocation()); - _impl_.newrole_ = p; - } - return _impl_.newrole_; -} -inline ::pg_query::RoleSpec* ReassignOwnedStmt::mutable_newrole() { - ::pg_query::RoleSpec* _msg = _internal_mutable_newrole(); - // @@protoc_insertion_point(field_mutable:pg_query.ReassignOwnedStmt.newrole) - return _msg; -} -inline void ReassignOwnedStmt::set_allocated_newrole(::pg_query::RoleSpec* newrole) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.newrole_; - } - if (newrole) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(newrole); - if (message_arena != submessage_arena) { - newrole = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, newrole, submessage_arena); - } - - } else { - - } - _impl_.newrole_ = newrole; - // @@protoc_insertion_point(field_set_allocated:pg_query.ReassignOwnedStmt.newrole) -} - -// ------------------------------------------------------------------- - -// CompositeTypeStmt - -// .pg_query.RangeVar typevar = 1 [json_name = "typevar"]; -inline bool CompositeTypeStmt::_internal_has_typevar() const { - return this != internal_default_instance() && _impl_.typevar_ != nullptr; -} -inline bool CompositeTypeStmt::has_typevar() const { - return _internal_has_typevar(); -} -inline void CompositeTypeStmt::clear_typevar() { - if (GetArenaForAllocation() == nullptr && _impl_.typevar_ != nullptr) { - delete _impl_.typevar_; - } - _impl_.typevar_ = nullptr; -} -inline const ::pg_query::RangeVar& CompositeTypeStmt::_internal_typevar() const { - const ::pg_query::RangeVar* p = _impl_.typevar_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& CompositeTypeStmt::typevar() const { - // @@protoc_insertion_point(field_get:pg_query.CompositeTypeStmt.typevar) - return _internal_typevar(); -} -inline void CompositeTypeStmt::unsafe_arena_set_allocated_typevar( - ::pg_query::RangeVar* typevar) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.typevar_); - } - _impl_.typevar_ = typevar; - if (typevar) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CompositeTypeStmt.typevar) -} -inline ::pg_query::RangeVar* CompositeTypeStmt::release_typevar() { - - ::pg_query::RangeVar* temp = _impl_.typevar_; - _impl_.typevar_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* CompositeTypeStmt::unsafe_arena_release_typevar() { - // @@protoc_insertion_point(field_release:pg_query.CompositeTypeStmt.typevar) - - ::pg_query::RangeVar* temp = _impl_.typevar_; - _impl_.typevar_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* CompositeTypeStmt::_internal_mutable_typevar() { - - if (_impl_.typevar_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.typevar_ = p; - } - return _impl_.typevar_; -} -inline ::pg_query::RangeVar* CompositeTypeStmt::mutable_typevar() { - ::pg_query::RangeVar* _msg = _internal_mutable_typevar(); - // @@protoc_insertion_point(field_mutable:pg_query.CompositeTypeStmt.typevar) - return _msg; -} -inline void CompositeTypeStmt::set_allocated_typevar(::pg_query::RangeVar* typevar) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.typevar_; - } - if (typevar) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(typevar); - if (message_arena != submessage_arena) { - typevar = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, typevar, submessage_arena); - } - - } else { - - } - _impl_.typevar_ = typevar; - // @@protoc_insertion_point(field_set_allocated:pg_query.CompositeTypeStmt.typevar) -} - -// repeated .pg_query.Node coldeflist = 2 [json_name = "coldeflist"]; -inline int CompositeTypeStmt::_internal_coldeflist_size() const { - return _impl_.coldeflist_.size(); -} -inline int CompositeTypeStmt::coldeflist_size() const { - return _internal_coldeflist_size(); -} -inline void CompositeTypeStmt::clear_coldeflist() { - _impl_.coldeflist_.Clear(); -} -inline ::pg_query::Node* CompositeTypeStmt::mutable_coldeflist(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CompositeTypeStmt.coldeflist) - return _impl_.coldeflist_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CompositeTypeStmt::mutable_coldeflist() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CompositeTypeStmt.coldeflist) - return &_impl_.coldeflist_; -} -inline const ::pg_query::Node& CompositeTypeStmt::_internal_coldeflist(int index) const { - return _impl_.coldeflist_.Get(index); -} -inline const ::pg_query::Node& CompositeTypeStmt::coldeflist(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CompositeTypeStmt.coldeflist) - return _internal_coldeflist(index); -} -inline ::pg_query::Node* CompositeTypeStmt::_internal_add_coldeflist() { - return _impl_.coldeflist_.Add(); -} -inline ::pg_query::Node* CompositeTypeStmt::add_coldeflist() { - ::pg_query::Node* _add = _internal_add_coldeflist(); - // @@protoc_insertion_point(field_add:pg_query.CompositeTypeStmt.coldeflist) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CompositeTypeStmt::coldeflist() const { - // @@protoc_insertion_point(field_list:pg_query.CompositeTypeStmt.coldeflist) - return _impl_.coldeflist_; -} - -// ------------------------------------------------------------------- - -// CreateEnumStmt - -// repeated .pg_query.Node type_name = 1 [json_name = "typeName"]; -inline int CreateEnumStmt::_internal_type_name_size() const { - return _impl_.type_name_.size(); -} -inline int CreateEnumStmt::type_name_size() const { - return _internal_type_name_size(); -} -inline void CreateEnumStmt::clear_type_name() { - _impl_.type_name_.Clear(); -} -inline ::pg_query::Node* CreateEnumStmt::mutable_type_name(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateEnumStmt.type_name) - return _impl_.type_name_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateEnumStmt::mutable_type_name() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateEnumStmt.type_name) - return &_impl_.type_name_; -} -inline const ::pg_query::Node& CreateEnumStmt::_internal_type_name(int index) const { - return _impl_.type_name_.Get(index); -} -inline const ::pg_query::Node& CreateEnumStmt::type_name(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateEnumStmt.type_name) - return _internal_type_name(index); -} -inline ::pg_query::Node* CreateEnumStmt::_internal_add_type_name() { - return _impl_.type_name_.Add(); -} -inline ::pg_query::Node* CreateEnumStmt::add_type_name() { - ::pg_query::Node* _add = _internal_add_type_name(); - // @@protoc_insertion_point(field_add:pg_query.CreateEnumStmt.type_name) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateEnumStmt::type_name() const { - // @@protoc_insertion_point(field_list:pg_query.CreateEnumStmt.type_name) - return _impl_.type_name_; -} - -// repeated .pg_query.Node vals = 2 [json_name = "vals"]; -inline int CreateEnumStmt::_internal_vals_size() const { - return _impl_.vals_.size(); -} -inline int CreateEnumStmt::vals_size() const { - return _internal_vals_size(); -} -inline void CreateEnumStmt::clear_vals() { - _impl_.vals_.Clear(); -} -inline ::pg_query::Node* CreateEnumStmt::mutable_vals(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateEnumStmt.vals) - return _impl_.vals_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateEnumStmt::mutable_vals() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateEnumStmt.vals) - return &_impl_.vals_; -} -inline const ::pg_query::Node& CreateEnumStmt::_internal_vals(int index) const { - return _impl_.vals_.Get(index); -} -inline const ::pg_query::Node& CreateEnumStmt::vals(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateEnumStmt.vals) - return _internal_vals(index); -} -inline ::pg_query::Node* CreateEnumStmt::_internal_add_vals() { - return _impl_.vals_.Add(); -} -inline ::pg_query::Node* CreateEnumStmt::add_vals() { - ::pg_query::Node* _add = _internal_add_vals(); - // @@protoc_insertion_point(field_add:pg_query.CreateEnumStmt.vals) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateEnumStmt::vals() const { - // @@protoc_insertion_point(field_list:pg_query.CreateEnumStmt.vals) - return _impl_.vals_; -} - -// ------------------------------------------------------------------- - -// CreateRangeStmt - -// repeated .pg_query.Node type_name = 1 [json_name = "typeName"]; -inline int CreateRangeStmt::_internal_type_name_size() const { - return _impl_.type_name_.size(); -} -inline int CreateRangeStmt::type_name_size() const { - return _internal_type_name_size(); -} -inline void CreateRangeStmt::clear_type_name() { - _impl_.type_name_.Clear(); -} -inline ::pg_query::Node* CreateRangeStmt::mutable_type_name(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateRangeStmt.type_name) - return _impl_.type_name_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateRangeStmt::mutable_type_name() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateRangeStmt.type_name) - return &_impl_.type_name_; -} -inline const ::pg_query::Node& CreateRangeStmt::_internal_type_name(int index) const { - return _impl_.type_name_.Get(index); -} -inline const ::pg_query::Node& CreateRangeStmt::type_name(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateRangeStmt.type_name) - return _internal_type_name(index); -} -inline ::pg_query::Node* CreateRangeStmt::_internal_add_type_name() { - return _impl_.type_name_.Add(); -} -inline ::pg_query::Node* CreateRangeStmt::add_type_name() { - ::pg_query::Node* _add = _internal_add_type_name(); - // @@protoc_insertion_point(field_add:pg_query.CreateRangeStmt.type_name) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateRangeStmt::type_name() const { - // @@protoc_insertion_point(field_list:pg_query.CreateRangeStmt.type_name) - return _impl_.type_name_; -} - -// repeated .pg_query.Node params = 2 [json_name = "params"]; -inline int CreateRangeStmt::_internal_params_size() const { - return _impl_.params_.size(); -} -inline int CreateRangeStmt::params_size() const { - return _internal_params_size(); -} -inline void CreateRangeStmt::clear_params() { - _impl_.params_.Clear(); -} -inline ::pg_query::Node* CreateRangeStmt::mutable_params(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateRangeStmt.params) - return _impl_.params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateRangeStmt::mutable_params() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateRangeStmt.params) - return &_impl_.params_; -} -inline const ::pg_query::Node& CreateRangeStmt::_internal_params(int index) const { - return _impl_.params_.Get(index); -} -inline const ::pg_query::Node& CreateRangeStmt::params(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateRangeStmt.params) - return _internal_params(index); -} -inline ::pg_query::Node* CreateRangeStmt::_internal_add_params() { - return _impl_.params_.Add(); -} -inline ::pg_query::Node* CreateRangeStmt::add_params() { - ::pg_query::Node* _add = _internal_add_params(); - // @@protoc_insertion_point(field_add:pg_query.CreateRangeStmt.params) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateRangeStmt::params() const { - // @@protoc_insertion_point(field_list:pg_query.CreateRangeStmt.params) - return _impl_.params_; -} - -// ------------------------------------------------------------------- - -// AlterEnumStmt - -// repeated .pg_query.Node type_name = 1 [json_name = "typeName"]; -inline int AlterEnumStmt::_internal_type_name_size() const { - return _impl_.type_name_.size(); -} -inline int AlterEnumStmt::type_name_size() const { - return _internal_type_name_size(); -} -inline void AlterEnumStmt::clear_type_name() { - _impl_.type_name_.Clear(); -} -inline ::pg_query::Node* AlterEnumStmt::mutable_type_name(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterEnumStmt.type_name) - return _impl_.type_name_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterEnumStmt::mutable_type_name() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterEnumStmt.type_name) - return &_impl_.type_name_; -} -inline const ::pg_query::Node& AlterEnumStmt::_internal_type_name(int index) const { - return _impl_.type_name_.Get(index); -} -inline const ::pg_query::Node& AlterEnumStmt::type_name(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterEnumStmt.type_name) - return _internal_type_name(index); -} -inline ::pg_query::Node* AlterEnumStmt::_internal_add_type_name() { - return _impl_.type_name_.Add(); -} -inline ::pg_query::Node* AlterEnumStmt::add_type_name() { - ::pg_query::Node* _add = _internal_add_type_name(); - // @@protoc_insertion_point(field_add:pg_query.AlterEnumStmt.type_name) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterEnumStmt::type_name() const { - // @@protoc_insertion_point(field_list:pg_query.AlterEnumStmt.type_name) - return _impl_.type_name_; -} - -// string old_val = 2 [json_name = "oldVal"]; -inline void AlterEnumStmt::clear_old_val() { - _impl_.old_val_.ClearToEmpty(); -} -inline const std::string& AlterEnumStmt::old_val() const { - // @@protoc_insertion_point(field_get:pg_query.AlterEnumStmt.old_val) - return _internal_old_val(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterEnumStmt::set_old_val(ArgT0&& arg0, ArgT... args) { - - _impl_.old_val_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterEnumStmt.old_val) -} -inline std::string* AlterEnumStmt::mutable_old_val() { - std::string* _s = _internal_mutable_old_val(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterEnumStmt.old_val) - return _s; -} -inline const std::string& AlterEnumStmt::_internal_old_val() const { - return _impl_.old_val_.Get(); -} -inline void AlterEnumStmt::_internal_set_old_val(const std::string& value) { - - _impl_.old_val_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterEnumStmt::_internal_mutable_old_val() { - - return _impl_.old_val_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterEnumStmt::release_old_val() { - // @@protoc_insertion_point(field_release:pg_query.AlterEnumStmt.old_val) - return _impl_.old_val_.Release(); -} -inline void AlterEnumStmt::set_allocated_old_val(std::string* old_val) { - if (old_val != nullptr) { - - } else { - - } - _impl_.old_val_.SetAllocated(old_val, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.old_val_.IsDefault()) { - _impl_.old_val_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterEnumStmt.old_val) -} - -// string new_val = 3 [json_name = "newVal"]; -inline void AlterEnumStmt::clear_new_val() { - _impl_.new_val_.ClearToEmpty(); -} -inline const std::string& AlterEnumStmt::new_val() const { - // @@protoc_insertion_point(field_get:pg_query.AlterEnumStmt.new_val) - return _internal_new_val(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterEnumStmt::set_new_val(ArgT0&& arg0, ArgT... args) { - - _impl_.new_val_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterEnumStmt.new_val) -} -inline std::string* AlterEnumStmt::mutable_new_val() { - std::string* _s = _internal_mutable_new_val(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterEnumStmt.new_val) - return _s; -} -inline const std::string& AlterEnumStmt::_internal_new_val() const { - return _impl_.new_val_.Get(); -} -inline void AlterEnumStmt::_internal_set_new_val(const std::string& value) { - - _impl_.new_val_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterEnumStmt::_internal_mutable_new_val() { - - return _impl_.new_val_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterEnumStmt::release_new_val() { - // @@protoc_insertion_point(field_release:pg_query.AlterEnumStmt.new_val) - return _impl_.new_val_.Release(); -} -inline void AlterEnumStmt::set_allocated_new_val(std::string* new_val) { - if (new_val != nullptr) { - - } else { - - } - _impl_.new_val_.SetAllocated(new_val, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.new_val_.IsDefault()) { - _impl_.new_val_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterEnumStmt.new_val) -} - -// string new_val_neighbor = 4 [json_name = "newValNeighbor"]; -inline void AlterEnumStmt::clear_new_val_neighbor() { - _impl_.new_val_neighbor_.ClearToEmpty(); -} -inline const std::string& AlterEnumStmt::new_val_neighbor() const { - // @@protoc_insertion_point(field_get:pg_query.AlterEnumStmt.new_val_neighbor) - return _internal_new_val_neighbor(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterEnumStmt::set_new_val_neighbor(ArgT0&& arg0, ArgT... args) { - - _impl_.new_val_neighbor_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterEnumStmt.new_val_neighbor) -} -inline std::string* AlterEnumStmt::mutable_new_val_neighbor() { - std::string* _s = _internal_mutable_new_val_neighbor(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterEnumStmt.new_val_neighbor) - return _s; -} -inline const std::string& AlterEnumStmt::_internal_new_val_neighbor() const { - return _impl_.new_val_neighbor_.Get(); -} -inline void AlterEnumStmt::_internal_set_new_val_neighbor(const std::string& value) { - - _impl_.new_val_neighbor_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterEnumStmt::_internal_mutable_new_val_neighbor() { - - return _impl_.new_val_neighbor_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterEnumStmt::release_new_val_neighbor() { - // @@protoc_insertion_point(field_release:pg_query.AlterEnumStmt.new_val_neighbor) - return _impl_.new_val_neighbor_.Release(); -} -inline void AlterEnumStmt::set_allocated_new_val_neighbor(std::string* new_val_neighbor) { - if (new_val_neighbor != nullptr) { - - } else { - - } - _impl_.new_val_neighbor_.SetAllocated(new_val_neighbor, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.new_val_neighbor_.IsDefault()) { - _impl_.new_val_neighbor_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterEnumStmt.new_val_neighbor) -} - -// bool new_val_is_after = 5 [json_name = "newValIsAfter"]; -inline void AlterEnumStmt::clear_new_val_is_after() { - _impl_.new_val_is_after_ = false; -} -inline bool AlterEnumStmt::_internal_new_val_is_after() const { - return _impl_.new_val_is_after_; -} -inline bool AlterEnumStmt::new_val_is_after() const { - // @@protoc_insertion_point(field_get:pg_query.AlterEnumStmt.new_val_is_after) - return _internal_new_val_is_after(); -} -inline void AlterEnumStmt::_internal_set_new_val_is_after(bool value) { - - _impl_.new_val_is_after_ = value; -} -inline void AlterEnumStmt::set_new_val_is_after(bool value) { - _internal_set_new_val_is_after(value); - // @@protoc_insertion_point(field_set:pg_query.AlterEnumStmt.new_val_is_after) -} - -// bool skip_if_new_val_exists = 6 [json_name = "skipIfNewValExists"]; -inline void AlterEnumStmt::clear_skip_if_new_val_exists() { - _impl_.skip_if_new_val_exists_ = false; -} -inline bool AlterEnumStmt::_internal_skip_if_new_val_exists() const { - return _impl_.skip_if_new_val_exists_; -} -inline bool AlterEnumStmt::skip_if_new_val_exists() const { - // @@protoc_insertion_point(field_get:pg_query.AlterEnumStmt.skip_if_new_val_exists) - return _internal_skip_if_new_val_exists(); -} -inline void AlterEnumStmt::_internal_set_skip_if_new_val_exists(bool value) { - - _impl_.skip_if_new_val_exists_ = value; -} -inline void AlterEnumStmt::set_skip_if_new_val_exists(bool value) { - _internal_set_skip_if_new_val_exists(value); - // @@protoc_insertion_point(field_set:pg_query.AlterEnumStmt.skip_if_new_val_exists) -} - -// ------------------------------------------------------------------- - -// AlterTSDictionaryStmt - -// repeated .pg_query.Node dictname = 1 [json_name = "dictname"]; -inline int AlterTSDictionaryStmt::_internal_dictname_size() const { - return _impl_.dictname_.size(); -} -inline int AlterTSDictionaryStmt::dictname_size() const { - return _internal_dictname_size(); -} -inline void AlterTSDictionaryStmt::clear_dictname() { - _impl_.dictname_.Clear(); -} -inline ::pg_query::Node* AlterTSDictionaryStmt::mutable_dictname(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterTSDictionaryStmt.dictname) - return _impl_.dictname_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterTSDictionaryStmt::mutable_dictname() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterTSDictionaryStmt.dictname) - return &_impl_.dictname_; -} -inline const ::pg_query::Node& AlterTSDictionaryStmt::_internal_dictname(int index) const { - return _impl_.dictname_.Get(index); -} -inline const ::pg_query::Node& AlterTSDictionaryStmt::dictname(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterTSDictionaryStmt.dictname) - return _internal_dictname(index); -} -inline ::pg_query::Node* AlterTSDictionaryStmt::_internal_add_dictname() { - return _impl_.dictname_.Add(); -} -inline ::pg_query::Node* AlterTSDictionaryStmt::add_dictname() { - ::pg_query::Node* _add = _internal_add_dictname(); - // @@protoc_insertion_point(field_add:pg_query.AlterTSDictionaryStmt.dictname) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterTSDictionaryStmt::dictname() const { - // @@protoc_insertion_point(field_list:pg_query.AlterTSDictionaryStmt.dictname) - return _impl_.dictname_; -} - -// repeated .pg_query.Node options = 2 [json_name = "options"]; -inline int AlterTSDictionaryStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int AlterTSDictionaryStmt::options_size() const { - return _internal_options_size(); -} -inline void AlterTSDictionaryStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* AlterTSDictionaryStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterTSDictionaryStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterTSDictionaryStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterTSDictionaryStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& AlterTSDictionaryStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& AlterTSDictionaryStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterTSDictionaryStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* AlterTSDictionaryStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* AlterTSDictionaryStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.AlterTSDictionaryStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterTSDictionaryStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.AlterTSDictionaryStmt.options) - return _impl_.options_; -} - -// ------------------------------------------------------------------- - -// AlterTSConfigurationStmt - -// .pg_query.AlterTSConfigType kind = 1 [json_name = "kind"]; -inline void AlterTSConfigurationStmt::clear_kind() { - _impl_.kind_ = 0; -} -inline ::pg_query::AlterTSConfigType AlterTSConfigurationStmt::_internal_kind() const { - return static_cast< ::pg_query::AlterTSConfigType >(_impl_.kind_); -} -inline ::pg_query::AlterTSConfigType AlterTSConfigurationStmt::kind() const { - // @@protoc_insertion_point(field_get:pg_query.AlterTSConfigurationStmt.kind) - return _internal_kind(); -} -inline void AlterTSConfigurationStmt::_internal_set_kind(::pg_query::AlterTSConfigType value) { - - _impl_.kind_ = value; -} -inline void AlterTSConfigurationStmt::set_kind(::pg_query::AlterTSConfigType value) { - _internal_set_kind(value); - // @@protoc_insertion_point(field_set:pg_query.AlterTSConfigurationStmt.kind) -} - -// repeated .pg_query.Node cfgname = 2 [json_name = "cfgname"]; -inline int AlterTSConfigurationStmt::_internal_cfgname_size() const { - return _impl_.cfgname_.size(); -} -inline int AlterTSConfigurationStmt::cfgname_size() const { - return _internal_cfgname_size(); -} -inline void AlterTSConfigurationStmt::clear_cfgname() { - _impl_.cfgname_.Clear(); -} -inline ::pg_query::Node* AlterTSConfigurationStmt::mutable_cfgname(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterTSConfigurationStmt.cfgname) - return _impl_.cfgname_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterTSConfigurationStmt::mutable_cfgname() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterTSConfigurationStmt.cfgname) - return &_impl_.cfgname_; -} -inline const ::pg_query::Node& AlterTSConfigurationStmt::_internal_cfgname(int index) const { - return _impl_.cfgname_.Get(index); -} -inline const ::pg_query::Node& AlterTSConfigurationStmt::cfgname(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterTSConfigurationStmt.cfgname) - return _internal_cfgname(index); -} -inline ::pg_query::Node* AlterTSConfigurationStmt::_internal_add_cfgname() { - return _impl_.cfgname_.Add(); -} -inline ::pg_query::Node* AlterTSConfigurationStmt::add_cfgname() { - ::pg_query::Node* _add = _internal_add_cfgname(); - // @@protoc_insertion_point(field_add:pg_query.AlterTSConfigurationStmt.cfgname) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterTSConfigurationStmt::cfgname() const { - // @@protoc_insertion_point(field_list:pg_query.AlterTSConfigurationStmt.cfgname) - return _impl_.cfgname_; -} - -// repeated .pg_query.Node tokentype = 3 [json_name = "tokentype"]; -inline int AlterTSConfigurationStmt::_internal_tokentype_size() const { - return _impl_.tokentype_.size(); -} -inline int AlterTSConfigurationStmt::tokentype_size() const { - return _internal_tokentype_size(); -} -inline void AlterTSConfigurationStmt::clear_tokentype() { - _impl_.tokentype_.Clear(); -} -inline ::pg_query::Node* AlterTSConfigurationStmt::mutable_tokentype(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterTSConfigurationStmt.tokentype) - return _impl_.tokentype_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterTSConfigurationStmt::mutable_tokentype() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterTSConfigurationStmt.tokentype) - return &_impl_.tokentype_; -} -inline const ::pg_query::Node& AlterTSConfigurationStmt::_internal_tokentype(int index) const { - return _impl_.tokentype_.Get(index); -} -inline const ::pg_query::Node& AlterTSConfigurationStmt::tokentype(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterTSConfigurationStmt.tokentype) - return _internal_tokentype(index); -} -inline ::pg_query::Node* AlterTSConfigurationStmt::_internal_add_tokentype() { - return _impl_.tokentype_.Add(); -} -inline ::pg_query::Node* AlterTSConfigurationStmt::add_tokentype() { - ::pg_query::Node* _add = _internal_add_tokentype(); - // @@protoc_insertion_point(field_add:pg_query.AlterTSConfigurationStmt.tokentype) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterTSConfigurationStmt::tokentype() const { - // @@protoc_insertion_point(field_list:pg_query.AlterTSConfigurationStmt.tokentype) - return _impl_.tokentype_; -} - -// repeated .pg_query.Node dicts = 4 [json_name = "dicts"]; -inline int AlterTSConfigurationStmt::_internal_dicts_size() const { - return _impl_.dicts_.size(); -} -inline int AlterTSConfigurationStmt::dicts_size() const { - return _internal_dicts_size(); -} -inline void AlterTSConfigurationStmt::clear_dicts() { - _impl_.dicts_.Clear(); -} -inline ::pg_query::Node* AlterTSConfigurationStmt::mutable_dicts(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterTSConfigurationStmt.dicts) - return _impl_.dicts_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterTSConfigurationStmt::mutable_dicts() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterTSConfigurationStmt.dicts) - return &_impl_.dicts_; -} -inline const ::pg_query::Node& AlterTSConfigurationStmt::_internal_dicts(int index) const { - return _impl_.dicts_.Get(index); -} -inline const ::pg_query::Node& AlterTSConfigurationStmt::dicts(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterTSConfigurationStmt.dicts) - return _internal_dicts(index); -} -inline ::pg_query::Node* AlterTSConfigurationStmt::_internal_add_dicts() { - return _impl_.dicts_.Add(); -} -inline ::pg_query::Node* AlterTSConfigurationStmt::add_dicts() { - ::pg_query::Node* _add = _internal_add_dicts(); - // @@protoc_insertion_point(field_add:pg_query.AlterTSConfigurationStmt.dicts) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterTSConfigurationStmt::dicts() const { - // @@protoc_insertion_point(field_list:pg_query.AlterTSConfigurationStmt.dicts) - return _impl_.dicts_; -} - -// bool override = 5 [json_name = "override"]; -inline void AlterTSConfigurationStmt::clear_override() { - _impl_.override_ = false; -} -inline bool AlterTSConfigurationStmt::_internal_override() const { - return _impl_.override_; -} -inline bool AlterTSConfigurationStmt::override() const { - // @@protoc_insertion_point(field_get:pg_query.AlterTSConfigurationStmt.override) - return _internal_override(); -} -inline void AlterTSConfigurationStmt::_internal_set_override(bool value) { - - _impl_.override_ = value; -} -inline void AlterTSConfigurationStmt::set_override(bool value) { - _internal_set_override(value); - // @@protoc_insertion_point(field_set:pg_query.AlterTSConfigurationStmt.override) -} - -// bool replace = 6 [json_name = "replace"]; -inline void AlterTSConfigurationStmt::clear_replace() { - _impl_.replace_ = false; -} -inline bool AlterTSConfigurationStmt::_internal_replace() const { - return _impl_.replace_; -} -inline bool AlterTSConfigurationStmt::replace() const { - // @@protoc_insertion_point(field_get:pg_query.AlterTSConfigurationStmt.replace) - return _internal_replace(); -} -inline void AlterTSConfigurationStmt::_internal_set_replace(bool value) { - - _impl_.replace_ = value; -} -inline void AlterTSConfigurationStmt::set_replace(bool value) { - _internal_set_replace(value); - // @@protoc_insertion_point(field_set:pg_query.AlterTSConfigurationStmt.replace) -} - -// bool missing_ok = 7 [json_name = "missing_ok"]; -inline void AlterTSConfigurationStmt::clear_missing_ok() { - _impl_.missing_ok_ = false; -} -inline bool AlterTSConfigurationStmt::_internal_missing_ok() const { - return _impl_.missing_ok_; -} -inline bool AlterTSConfigurationStmt::missing_ok() const { - // @@protoc_insertion_point(field_get:pg_query.AlterTSConfigurationStmt.missing_ok) - return _internal_missing_ok(); -} -inline void AlterTSConfigurationStmt::_internal_set_missing_ok(bool value) { - - _impl_.missing_ok_ = value; -} -inline void AlterTSConfigurationStmt::set_missing_ok(bool value) { - _internal_set_missing_ok(value); - // @@protoc_insertion_point(field_set:pg_query.AlterTSConfigurationStmt.missing_ok) -} - -// ------------------------------------------------------------------- - -// CreateFdwStmt - -// string fdwname = 1 [json_name = "fdwname"]; -inline void CreateFdwStmt::clear_fdwname() { - _impl_.fdwname_.ClearToEmpty(); -} -inline const std::string& CreateFdwStmt::fdwname() const { - // @@protoc_insertion_point(field_get:pg_query.CreateFdwStmt.fdwname) - return _internal_fdwname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateFdwStmt::set_fdwname(ArgT0&& arg0, ArgT... args) { - - _impl_.fdwname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateFdwStmt.fdwname) -} -inline std::string* CreateFdwStmt::mutable_fdwname() { - std::string* _s = _internal_mutable_fdwname(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateFdwStmt.fdwname) - return _s; -} -inline const std::string& CreateFdwStmt::_internal_fdwname() const { - return _impl_.fdwname_.Get(); -} -inline void CreateFdwStmt::_internal_set_fdwname(const std::string& value) { - - _impl_.fdwname_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateFdwStmt::_internal_mutable_fdwname() { - - return _impl_.fdwname_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateFdwStmt::release_fdwname() { - // @@protoc_insertion_point(field_release:pg_query.CreateFdwStmt.fdwname) - return _impl_.fdwname_.Release(); -} -inline void CreateFdwStmt::set_allocated_fdwname(std::string* fdwname) { - if (fdwname != nullptr) { - - } else { - - } - _impl_.fdwname_.SetAllocated(fdwname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.fdwname_.IsDefault()) { - _impl_.fdwname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateFdwStmt.fdwname) -} - -// repeated .pg_query.Node func_options = 2 [json_name = "func_options"]; -inline int CreateFdwStmt::_internal_func_options_size() const { - return _impl_.func_options_.size(); -} -inline int CreateFdwStmt::func_options_size() const { - return _internal_func_options_size(); -} -inline void CreateFdwStmt::clear_func_options() { - _impl_.func_options_.Clear(); -} -inline ::pg_query::Node* CreateFdwStmt::mutable_func_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateFdwStmt.func_options) - return _impl_.func_options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateFdwStmt::mutable_func_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateFdwStmt.func_options) - return &_impl_.func_options_; -} -inline const ::pg_query::Node& CreateFdwStmt::_internal_func_options(int index) const { - return _impl_.func_options_.Get(index); -} -inline const ::pg_query::Node& CreateFdwStmt::func_options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateFdwStmt.func_options) - return _internal_func_options(index); -} -inline ::pg_query::Node* CreateFdwStmt::_internal_add_func_options() { - return _impl_.func_options_.Add(); -} -inline ::pg_query::Node* CreateFdwStmt::add_func_options() { - ::pg_query::Node* _add = _internal_add_func_options(); - // @@protoc_insertion_point(field_add:pg_query.CreateFdwStmt.func_options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateFdwStmt::func_options() const { - // @@protoc_insertion_point(field_list:pg_query.CreateFdwStmt.func_options) - return _impl_.func_options_; -} - -// repeated .pg_query.Node options = 3 [json_name = "options"]; -inline int CreateFdwStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int CreateFdwStmt::options_size() const { - return _internal_options_size(); -} -inline void CreateFdwStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* CreateFdwStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateFdwStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateFdwStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateFdwStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& CreateFdwStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& CreateFdwStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateFdwStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* CreateFdwStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* CreateFdwStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.CreateFdwStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateFdwStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.CreateFdwStmt.options) - return _impl_.options_; -} - -// ------------------------------------------------------------------- - -// AlterFdwStmt - -// string fdwname = 1 [json_name = "fdwname"]; -inline void AlterFdwStmt::clear_fdwname() { - _impl_.fdwname_.ClearToEmpty(); -} -inline const std::string& AlterFdwStmt::fdwname() const { - // @@protoc_insertion_point(field_get:pg_query.AlterFdwStmt.fdwname) - return _internal_fdwname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterFdwStmt::set_fdwname(ArgT0&& arg0, ArgT... args) { - - _impl_.fdwname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterFdwStmt.fdwname) -} -inline std::string* AlterFdwStmt::mutable_fdwname() { - std::string* _s = _internal_mutable_fdwname(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterFdwStmt.fdwname) - return _s; -} -inline const std::string& AlterFdwStmt::_internal_fdwname() const { - return _impl_.fdwname_.Get(); -} -inline void AlterFdwStmt::_internal_set_fdwname(const std::string& value) { - - _impl_.fdwname_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterFdwStmt::_internal_mutable_fdwname() { - - return _impl_.fdwname_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterFdwStmt::release_fdwname() { - // @@protoc_insertion_point(field_release:pg_query.AlterFdwStmt.fdwname) - return _impl_.fdwname_.Release(); -} -inline void AlterFdwStmt::set_allocated_fdwname(std::string* fdwname) { - if (fdwname != nullptr) { - - } else { - - } - _impl_.fdwname_.SetAllocated(fdwname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.fdwname_.IsDefault()) { - _impl_.fdwname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterFdwStmt.fdwname) -} - -// repeated .pg_query.Node func_options = 2 [json_name = "func_options"]; -inline int AlterFdwStmt::_internal_func_options_size() const { - return _impl_.func_options_.size(); -} -inline int AlterFdwStmt::func_options_size() const { - return _internal_func_options_size(); -} -inline void AlterFdwStmt::clear_func_options() { - _impl_.func_options_.Clear(); -} -inline ::pg_query::Node* AlterFdwStmt::mutable_func_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterFdwStmt.func_options) - return _impl_.func_options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterFdwStmt::mutable_func_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterFdwStmt.func_options) - return &_impl_.func_options_; -} -inline const ::pg_query::Node& AlterFdwStmt::_internal_func_options(int index) const { - return _impl_.func_options_.Get(index); -} -inline const ::pg_query::Node& AlterFdwStmt::func_options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterFdwStmt.func_options) - return _internal_func_options(index); -} -inline ::pg_query::Node* AlterFdwStmt::_internal_add_func_options() { - return _impl_.func_options_.Add(); -} -inline ::pg_query::Node* AlterFdwStmt::add_func_options() { - ::pg_query::Node* _add = _internal_add_func_options(); - // @@protoc_insertion_point(field_add:pg_query.AlterFdwStmt.func_options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterFdwStmt::func_options() const { - // @@protoc_insertion_point(field_list:pg_query.AlterFdwStmt.func_options) - return _impl_.func_options_; -} - -// repeated .pg_query.Node options = 3 [json_name = "options"]; -inline int AlterFdwStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int AlterFdwStmt::options_size() const { - return _internal_options_size(); -} -inline void AlterFdwStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* AlterFdwStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterFdwStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterFdwStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterFdwStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& AlterFdwStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& AlterFdwStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterFdwStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* AlterFdwStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* AlterFdwStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.AlterFdwStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterFdwStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.AlterFdwStmt.options) - return _impl_.options_; -} - -// ------------------------------------------------------------------- - -// CreateForeignServerStmt - -// string servername = 1 [json_name = "servername"]; -inline void CreateForeignServerStmt::clear_servername() { - _impl_.servername_.ClearToEmpty(); -} -inline const std::string& CreateForeignServerStmt::servername() const { - // @@protoc_insertion_point(field_get:pg_query.CreateForeignServerStmt.servername) - return _internal_servername(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateForeignServerStmt::set_servername(ArgT0&& arg0, ArgT... args) { - - _impl_.servername_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateForeignServerStmt.servername) -} -inline std::string* CreateForeignServerStmt::mutable_servername() { - std::string* _s = _internal_mutable_servername(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateForeignServerStmt.servername) - return _s; -} -inline const std::string& CreateForeignServerStmt::_internal_servername() const { - return _impl_.servername_.Get(); -} -inline void CreateForeignServerStmt::_internal_set_servername(const std::string& value) { - - _impl_.servername_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateForeignServerStmt::_internal_mutable_servername() { - - return _impl_.servername_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateForeignServerStmt::release_servername() { - // @@protoc_insertion_point(field_release:pg_query.CreateForeignServerStmt.servername) - return _impl_.servername_.Release(); -} -inline void CreateForeignServerStmt::set_allocated_servername(std::string* servername) { - if (servername != nullptr) { - - } else { - - } - _impl_.servername_.SetAllocated(servername, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.servername_.IsDefault()) { - _impl_.servername_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateForeignServerStmt.servername) -} - -// string servertype = 2 [json_name = "servertype"]; -inline void CreateForeignServerStmt::clear_servertype() { - _impl_.servertype_.ClearToEmpty(); -} -inline const std::string& CreateForeignServerStmt::servertype() const { - // @@protoc_insertion_point(field_get:pg_query.CreateForeignServerStmt.servertype) - return _internal_servertype(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateForeignServerStmt::set_servertype(ArgT0&& arg0, ArgT... args) { - - _impl_.servertype_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateForeignServerStmt.servertype) -} -inline std::string* CreateForeignServerStmt::mutable_servertype() { - std::string* _s = _internal_mutable_servertype(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateForeignServerStmt.servertype) - return _s; -} -inline const std::string& CreateForeignServerStmt::_internal_servertype() const { - return _impl_.servertype_.Get(); -} -inline void CreateForeignServerStmt::_internal_set_servertype(const std::string& value) { - - _impl_.servertype_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateForeignServerStmt::_internal_mutable_servertype() { - - return _impl_.servertype_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateForeignServerStmt::release_servertype() { - // @@protoc_insertion_point(field_release:pg_query.CreateForeignServerStmt.servertype) - return _impl_.servertype_.Release(); -} -inline void CreateForeignServerStmt::set_allocated_servertype(std::string* servertype) { - if (servertype != nullptr) { - - } else { - - } - _impl_.servertype_.SetAllocated(servertype, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.servertype_.IsDefault()) { - _impl_.servertype_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateForeignServerStmt.servertype) -} - -// string version = 3 [json_name = "version"]; -inline void CreateForeignServerStmt::clear_version() { - _impl_.version_.ClearToEmpty(); -} -inline const std::string& CreateForeignServerStmt::version() const { - // @@protoc_insertion_point(field_get:pg_query.CreateForeignServerStmt.version) - return _internal_version(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateForeignServerStmt::set_version(ArgT0&& arg0, ArgT... args) { - - _impl_.version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateForeignServerStmt.version) -} -inline std::string* CreateForeignServerStmt::mutable_version() { - std::string* _s = _internal_mutable_version(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateForeignServerStmt.version) - return _s; -} -inline const std::string& CreateForeignServerStmt::_internal_version() const { - return _impl_.version_.Get(); -} -inline void CreateForeignServerStmt::_internal_set_version(const std::string& value) { - - _impl_.version_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateForeignServerStmt::_internal_mutable_version() { - - return _impl_.version_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateForeignServerStmt::release_version() { - // @@protoc_insertion_point(field_release:pg_query.CreateForeignServerStmt.version) - return _impl_.version_.Release(); -} -inline void CreateForeignServerStmt::set_allocated_version(std::string* version) { - if (version != nullptr) { - - } else { - - } - _impl_.version_.SetAllocated(version, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.version_.IsDefault()) { - _impl_.version_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateForeignServerStmt.version) -} - -// string fdwname = 4 [json_name = "fdwname"]; -inline void CreateForeignServerStmt::clear_fdwname() { - _impl_.fdwname_.ClearToEmpty(); -} -inline const std::string& CreateForeignServerStmt::fdwname() const { - // @@protoc_insertion_point(field_get:pg_query.CreateForeignServerStmt.fdwname) - return _internal_fdwname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateForeignServerStmt::set_fdwname(ArgT0&& arg0, ArgT... args) { - - _impl_.fdwname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateForeignServerStmt.fdwname) -} -inline std::string* CreateForeignServerStmt::mutable_fdwname() { - std::string* _s = _internal_mutable_fdwname(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateForeignServerStmt.fdwname) - return _s; -} -inline const std::string& CreateForeignServerStmt::_internal_fdwname() const { - return _impl_.fdwname_.Get(); -} -inline void CreateForeignServerStmt::_internal_set_fdwname(const std::string& value) { - - _impl_.fdwname_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateForeignServerStmt::_internal_mutable_fdwname() { - - return _impl_.fdwname_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateForeignServerStmt::release_fdwname() { - // @@protoc_insertion_point(field_release:pg_query.CreateForeignServerStmt.fdwname) - return _impl_.fdwname_.Release(); -} -inline void CreateForeignServerStmt::set_allocated_fdwname(std::string* fdwname) { - if (fdwname != nullptr) { - - } else { - - } - _impl_.fdwname_.SetAllocated(fdwname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.fdwname_.IsDefault()) { - _impl_.fdwname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateForeignServerStmt.fdwname) -} - -// bool if_not_exists = 5 [json_name = "if_not_exists"]; -inline void CreateForeignServerStmt::clear_if_not_exists() { - _impl_.if_not_exists_ = false; -} -inline bool CreateForeignServerStmt::_internal_if_not_exists() const { - return _impl_.if_not_exists_; -} -inline bool CreateForeignServerStmt::if_not_exists() const { - // @@protoc_insertion_point(field_get:pg_query.CreateForeignServerStmt.if_not_exists) - return _internal_if_not_exists(); -} -inline void CreateForeignServerStmt::_internal_set_if_not_exists(bool value) { - - _impl_.if_not_exists_ = value; -} -inline void CreateForeignServerStmt::set_if_not_exists(bool value) { - _internal_set_if_not_exists(value); - // @@protoc_insertion_point(field_set:pg_query.CreateForeignServerStmt.if_not_exists) -} - -// repeated .pg_query.Node options = 6 [json_name = "options"]; -inline int CreateForeignServerStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int CreateForeignServerStmt::options_size() const { - return _internal_options_size(); -} -inline void CreateForeignServerStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* CreateForeignServerStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateForeignServerStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateForeignServerStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateForeignServerStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& CreateForeignServerStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& CreateForeignServerStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateForeignServerStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* CreateForeignServerStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* CreateForeignServerStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.CreateForeignServerStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateForeignServerStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.CreateForeignServerStmt.options) - return _impl_.options_; -} - -// ------------------------------------------------------------------- - -// AlterForeignServerStmt - -// string servername = 1 [json_name = "servername"]; -inline void AlterForeignServerStmt::clear_servername() { - _impl_.servername_.ClearToEmpty(); -} -inline const std::string& AlterForeignServerStmt::servername() const { - // @@protoc_insertion_point(field_get:pg_query.AlterForeignServerStmt.servername) - return _internal_servername(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterForeignServerStmt::set_servername(ArgT0&& arg0, ArgT... args) { - - _impl_.servername_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterForeignServerStmt.servername) -} -inline std::string* AlterForeignServerStmt::mutable_servername() { - std::string* _s = _internal_mutable_servername(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterForeignServerStmt.servername) - return _s; -} -inline const std::string& AlterForeignServerStmt::_internal_servername() const { - return _impl_.servername_.Get(); -} -inline void AlterForeignServerStmt::_internal_set_servername(const std::string& value) { - - _impl_.servername_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterForeignServerStmt::_internal_mutable_servername() { - - return _impl_.servername_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterForeignServerStmt::release_servername() { - // @@protoc_insertion_point(field_release:pg_query.AlterForeignServerStmt.servername) - return _impl_.servername_.Release(); -} -inline void AlterForeignServerStmt::set_allocated_servername(std::string* servername) { - if (servername != nullptr) { - - } else { - - } - _impl_.servername_.SetAllocated(servername, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.servername_.IsDefault()) { - _impl_.servername_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterForeignServerStmt.servername) -} - -// string version = 2 [json_name = "version"]; -inline void AlterForeignServerStmt::clear_version() { - _impl_.version_.ClearToEmpty(); -} -inline const std::string& AlterForeignServerStmt::version() const { - // @@protoc_insertion_point(field_get:pg_query.AlterForeignServerStmt.version) - return _internal_version(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterForeignServerStmt::set_version(ArgT0&& arg0, ArgT... args) { - - _impl_.version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterForeignServerStmt.version) -} -inline std::string* AlterForeignServerStmt::mutable_version() { - std::string* _s = _internal_mutable_version(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterForeignServerStmt.version) - return _s; -} -inline const std::string& AlterForeignServerStmt::_internal_version() const { - return _impl_.version_.Get(); -} -inline void AlterForeignServerStmt::_internal_set_version(const std::string& value) { - - _impl_.version_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterForeignServerStmt::_internal_mutable_version() { - - return _impl_.version_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterForeignServerStmt::release_version() { - // @@protoc_insertion_point(field_release:pg_query.AlterForeignServerStmt.version) - return _impl_.version_.Release(); -} -inline void AlterForeignServerStmt::set_allocated_version(std::string* version) { - if (version != nullptr) { - - } else { - - } - _impl_.version_.SetAllocated(version, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.version_.IsDefault()) { - _impl_.version_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterForeignServerStmt.version) -} - -// repeated .pg_query.Node options = 3 [json_name = "options"]; -inline int AlterForeignServerStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int AlterForeignServerStmt::options_size() const { - return _internal_options_size(); -} -inline void AlterForeignServerStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* AlterForeignServerStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterForeignServerStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterForeignServerStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterForeignServerStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& AlterForeignServerStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& AlterForeignServerStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterForeignServerStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* AlterForeignServerStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* AlterForeignServerStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.AlterForeignServerStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterForeignServerStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.AlterForeignServerStmt.options) - return _impl_.options_; -} - -// bool has_version = 4 [json_name = "has_version"]; -inline void AlterForeignServerStmt::clear_has_version() { - _impl_.has_version_ = false; -} -inline bool AlterForeignServerStmt::_internal_has_version() const { - return _impl_.has_version_; -} -inline bool AlterForeignServerStmt::has_version() const { - // @@protoc_insertion_point(field_get:pg_query.AlterForeignServerStmt.has_version) - return _internal_has_version(); -} -inline void AlterForeignServerStmt::_internal_set_has_version(bool value) { - - _impl_.has_version_ = value; -} -inline void AlterForeignServerStmt::set_has_version(bool value) { - _internal_set_has_version(value); - // @@protoc_insertion_point(field_set:pg_query.AlterForeignServerStmt.has_version) -} - -// ------------------------------------------------------------------- - -// CreateUserMappingStmt - -// .pg_query.RoleSpec user = 1 [json_name = "user"]; -inline bool CreateUserMappingStmt::_internal_has_user() const { - return this != internal_default_instance() && _impl_.user_ != nullptr; -} -inline bool CreateUserMappingStmt::has_user() const { - return _internal_has_user(); -} -inline void CreateUserMappingStmt::clear_user() { - if (GetArenaForAllocation() == nullptr && _impl_.user_ != nullptr) { - delete _impl_.user_; - } - _impl_.user_ = nullptr; -} -inline const ::pg_query::RoleSpec& CreateUserMappingStmt::_internal_user() const { - const ::pg_query::RoleSpec* p = _impl_.user_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RoleSpec_default_instance_); -} -inline const ::pg_query::RoleSpec& CreateUserMappingStmt::user() const { - // @@protoc_insertion_point(field_get:pg_query.CreateUserMappingStmt.user) - return _internal_user(); -} -inline void CreateUserMappingStmt::unsafe_arena_set_allocated_user( - ::pg_query::RoleSpec* user) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.user_); - } - _impl_.user_ = user; - if (user) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateUserMappingStmt.user) -} -inline ::pg_query::RoleSpec* CreateUserMappingStmt::release_user() { - - ::pg_query::RoleSpec* temp = _impl_.user_; - _impl_.user_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RoleSpec* CreateUserMappingStmt::unsafe_arena_release_user() { - // @@protoc_insertion_point(field_release:pg_query.CreateUserMappingStmt.user) - - ::pg_query::RoleSpec* temp = _impl_.user_; - _impl_.user_ = nullptr; - return temp; -} -inline ::pg_query::RoleSpec* CreateUserMappingStmt::_internal_mutable_user() { - - if (_impl_.user_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RoleSpec>(GetArenaForAllocation()); - _impl_.user_ = p; - } - return _impl_.user_; -} -inline ::pg_query::RoleSpec* CreateUserMappingStmt::mutable_user() { - ::pg_query::RoleSpec* _msg = _internal_mutable_user(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateUserMappingStmt.user) - return _msg; -} -inline void CreateUserMappingStmt::set_allocated_user(::pg_query::RoleSpec* user) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.user_; - } - if (user) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(user); - if (message_arena != submessage_arena) { - user = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, user, submessage_arena); - } - - } else { - - } - _impl_.user_ = user; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateUserMappingStmt.user) -} - -// string servername = 2 [json_name = "servername"]; -inline void CreateUserMappingStmt::clear_servername() { - _impl_.servername_.ClearToEmpty(); -} -inline const std::string& CreateUserMappingStmt::servername() const { - // @@protoc_insertion_point(field_get:pg_query.CreateUserMappingStmt.servername) - return _internal_servername(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateUserMappingStmt::set_servername(ArgT0&& arg0, ArgT... args) { - - _impl_.servername_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateUserMappingStmt.servername) -} -inline std::string* CreateUserMappingStmt::mutable_servername() { - std::string* _s = _internal_mutable_servername(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateUserMappingStmt.servername) - return _s; -} -inline const std::string& CreateUserMappingStmt::_internal_servername() const { - return _impl_.servername_.Get(); -} -inline void CreateUserMappingStmt::_internal_set_servername(const std::string& value) { - - _impl_.servername_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateUserMappingStmt::_internal_mutable_servername() { - - return _impl_.servername_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateUserMappingStmt::release_servername() { - // @@protoc_insertion_point(field_release:pg_query.CreateUserMappingStmt.servername) - return _impl_.servername_.Release(); -} -inline void CreateUserMappingStmt::set_allocated_servername(std::string* servername) { - if (servername != nullptr) { - - } else { - - } - _impl_.servername_.SetAllocated(servername, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.servername_.IsDefault()) { - _impl_.servername_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateUserMappingStmt.servername) -} - -// bool if_not_exists = 3 [json_name = "if_not_exists"]; -inline void CreateUserMappingStmt::clear_if_not_exists() { - _impl_.if_not_exists_ = false; -} -inline bool CreateUserMappingStmt::_internal_if_not_exists() const { - return _impl_.if_not_exists_; -} -inline bool CreateUserMappingStmt::if_not_exists() const { - // @@protoc_insertion_point(field_get:pg_query.CreateUserMappingStmt.if_not_exists) - return _internal_if_not_exists(); -} -inline void CreateUserMappingStmt::_internal_set_if_not_exists(bool value) { - - _impl_.if_not_exists_ = value; -} -inline void CreateUserMappingStmt::set_if_not_exists(bool value) { - _internal_set_if_not_exists(value); - // @@protoc_insertion_point(field_set:pg_query.CreateUserMappingStmt.if_not_exists) -} - -// repeated .pg_query.Node options = 4 [json_name = "options"]; -inline int CreateUserMappingStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int CreateUserMappingStmt::options_size() const { - return _internal_options_size(); -} -inline void CreateUserMappingStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* CreateUserMappingStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateUserMappingStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateUserMappingStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateUserMappingStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& CreateUserMappingStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& CreateUserMappingStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateUserMappingStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* CreateUserMappingStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* CreateUserMappingStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.CreateUserMappingStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateUserMappingStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.CreateUserMappingStmt.options) - return _impl_.options_; -} - -// ------------------------------------------------------------------- - -// AlterUserMappingStmt - -// .pg_query.RoleSpec user = 1 [json_name = "user"]; -inline bool AlterUserMappingStmt::_internal_has_user() const { - return this != internal_default_instance() && _impl_.user_ != nullptr; -} -inline bool AlterUserMappingStmt::has_user() const { - return _internal_has_user(); -} -inline void AlterUserMappingStmt::clear_user() { - if (GetArenaForAllocation() == nullptr && _impl_.user_ != nullptr) { - delete _impl_.user_; - } - _impl_.user_ = nullptr; -} -inline const ::pg_query::RoleSpec& AlterUserMappingStmt::_internal_user() const { - const ::pg_query::RoleSpec* p = _impl_.user_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RoleSpec_default_instance_); -} -inline const ::pg_query::RoleSpec& AlterUserMappingStmt::user() const { - // @@protoc_insertion_point(field_get:pg_query.AlterUserMappingStmt.user) - return _internal_user(); -} -inline void AlterUserMappingStmt::unsafe_arena_set_allocated_user( - ::pg_query::RoleSpec* user) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.user_); - } - _impl_.user_ = user; - if (user) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterUserMappingStmt.user) -} -inline ::pg_query::RoleSpec* AlterUserMappingStmt::release_user() { - - ::pg_query::RoleSpec* temp = _impl_.user_; - _impl_.user_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RoleSpec* AlterUserMappingStmt::unsafe_arena_release_user() { - // @@protoc_insertion_point(field_release:pg_query.AlterUserMappingStmt.user) - - ::pg_query::RoleSpec* temp = _impl_.user_; - _impl_.user_ = nullptr; - return temp; -} -inline ::pg_query::RoleSpec* AlterUserMappingStmt::_internal_mutable_user() { - - if (_impl_.user_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RoleSpec>(GetArenaForAllocation()); - _impl_.user_ = p; - } - return _impl_.user_; -} -inline ::pg_query::RoleSpec* AlterUserMappingStmt::mutable_user() { - ::pg_query::RoleSpec* _msg = _internal_mutable_user(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterUserMappingStmt.user) - return _msg; -} -inline void AlterUserMappingStmt::set_allocated_user(::pg_query::RoleSpec* user) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.user_; - } - if (user) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(user); - if (message_arena != submessage_arena) { - user = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, user, submessage_arena); - } - - } else { - - } - _impl_.user_ = user; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterUserMappingStmt.user) -} - -// string servername = 2 [json_name = "servername"]; -inline void AlterUserMappingStmt::clear_servername() { - _impl_.servername_.ClearToEmpty(); -} -inline const std::string& AlterUserMappingStmt::servername() const { - // @@protoc_insertion_point(field_get:pg_query.AlterUserMappingStmt.servername) - return _internal_servername(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterUserMappingStmt::set_servername(ArgT0&& arg0, ArgT... args) { - - _impl_.servername_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterUserMappingStmt.servername) -} -inline std::string* AlterUserMappingStmt::mutable_servername() { - std::string* _s = _internal_mutable_servername(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterUserMappingStmt.servername) - return _s; -} -inline const std::string& AlterUserMappingStmt::_internal_servername() const { - return _impl_.servername_.Get(); -} -inline void AlterUserMappingStmt::_internal_set_servername(const std::string& value) { - - _impl_.servername_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterUserMappingStmt::_internal_mutable_servername() { - - return _impl_.servername_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterUserMappingStmt::release_servername() { - // @@protoc_insertion_point(field_release:pg_query.AlterUserMappingStmt.servername) - return _impl_.servername_.Release(); -} -inline void AlterUserMappingStmt::set_allocated_servername(std::string* servername) { - if (servername != nullptr) { - - } else { - - } - _impl_.servername_.SetAllocated(servername, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.servername_.IsDefault()) { - _impl_.servername_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterUserMappingStmt.servername) -} - -// repeated .pg_query.Node options = 3 [json_name = "options"]; -inline int AlterUserMappingStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int AlterUserMappingStmt::options_size() const { - return _internal_options_size(); -} -inline void AlterUserMappingStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* AlterUserMappingStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterUserMappingStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterUserMappingStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterUserMappingStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& AlterUserMappingStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& AlterUserMappingStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterUserMappingStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* AlterUserMappingStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* AlterUserMappingStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.AlterUserMappingStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterUserMappingStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.AlterUserMappingStmt.options) - return _impl_.options_; -} - -// ------------------------------------------------------------------- - -// DropUserMappingStmt - -// .pg_query.RoleSpec user = 1 [json_name = "user"]; -inline bool DropUserMappingStmt::_internal_has_user() const { - return this != internal_default_instance() && _impl_.user_ != nullptr; -} -inline bool DropUserMappingStmt::has_user() const { - return _internal_has_user(); -} -inline void DropUserMappingStmt::clear_user() { - if (GetArenaForAllocation() == nullptr && _impl_.user_ != nullptr) { - delete _impl_.user_; - } - _impl_.user_ = nullptr; -} -inline const ::pg_query::RoleSpec& DropUserMappingStmt::_internal_user() const { - const ::pg_query::RoleSpec* p = _impl_.user_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RoleSpec_default_instance_); -} -inline const ::pg_query::RoleSpec& DropUserMappingStmt::user() const { - // @@protoc_insertion_point(field_get:pg_query.DropUserMappingStmt.user) - return _internal_user(); -} -inline void DropUserMappingStmt::unsafe_arena_set_allocated_user( - ::pg_query::RoleSpec* user) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.user_); - } - _impl_.user_ = user; - if (user) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.DropUserMappingStmt.user) -} -inline ::pg_query::RoleSpec* DropUserMappingStmt::release_user() { - - ::pg_query::RoleSpec* temp = _impl_.user_; - _impl_.user_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RoleSpec* DropUserMappingStmt::unsafe_arena_release_user() { - // @@protoc_insertion_point(field_release:pg_query.DropUserMappingStmt.user) - - ::pg_query::RoleSpec* temp = _impl_.user_; - _impl_.user_ = nullptr; - return temp; -} -inline ::pg_query::RoleSpec* DropUserMappingStmt::_internal_mutable_user() { - - if (_impl_.user_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RoleSpec>(GetArenaForAllocation()); - _impl_.user_ = p; - } - return _impl_.user_; -} -inline ::pg_query::RoleSpec* DropUserMappingStmt::mutable_user() { - ::pg_query::RoleSpec* _msg = _internal_mutable_user(); - // @@protoc_insertion_point(field_mutable:pg_query.DropUserMappingStmt.user) - return _msg; -} -inline void DropUserMappingStmt::set_allocated_user(::pg_query::RoleSpec* user) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.user_; - } - if (user) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(user); - if (message_arena != submessage_arena) { - user = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, user, submessage_arena); - } - - } else { - - } - _impl_.user_ = user; - // @@protoc_insertion_point(field_set_allocated:pg_query.DropUserMappingStmt.user) -} - -// string servername = 2 [json_name = "servername"]; -inline void DropUserMappingStmt::clear_servername() { - _impl_.servername_.ClearToEmpty(); -} -inline const std::string& DropUserMappingStmt::servername() const { - // @@protoc_insertion_point(field_get:pg_query.DropUserMappingStmt.servername) - return _internal_servername(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void DropUserMappingStmt::set_servername(ArgT0&& arg0, ArgT... args) { - - _impl_.servername_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.DropUserMappingStmt.servername) -} -inline std::string* DropUserMappingStmt::mutable_servername() { - std::string* _s = _internal_mutable_servername(); - // @@protoc_insertion_point(field_mutable:pg_query.DropUserMappingStmt.servername) - return _s; -} -inline const std::string& DropUserMappingStmt::_internal_servername() const { - return _impl_.servername_.Get(); -} -inline void DropUserMappingStmt::_internal_set_servername(const std::string& value) { - - _impl_.servername_.Set(value, GetArenaForAllocation()); -} -inline std::string* DropUserMappingStmt::_internal_mutable_servername() { - - return _impl_.servername_.Mutable(GetArenaForAllocation()); -} -inline std::string* DropUserMappingStmt::release_servername() { - // @@protoc_insertion_point(field_release:pg_query.DropUserMappingStmt.servername) - return _impl_.servername_.Release(); -} -inline void DropUserMappingStmt::set_allocated_servername(std::string* servername) { - if (servername != nullptr) { - - } else { - - } - _impl_.servername_.SetAllocated(servername, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.servername_.IsDefault()) { - _impl_.servername_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.DropUserMappingStmt.servername) -} - -// bool missing_ok = 3 [json_name = "missing_ok"]; -inline void DropUserMappingStmt::clear_missing_ok() { - _impl_.missing_ok_ = false; -} -inline bool DropUserMappingStmt::_internal_missing_ok() const { - return _impl_.missing_ok_; -} -inline bool DropUserMappingStmt::missing_ok() const { - // @@protoc_insertion_point(field_get:pg_query.DropUserMappingStmt.missing_ok) - return _internal_missing_ok(); -} -inline void DropUserMappingStmt::_internal_set_missing_ok(bool value) { - - _impl_.missing_ok_ = value; -} -inline void DropUserMappingStmt::set_missing_ok(bool value) { - _internal_set_missing_ok(value); - // @@protoc_insertion_point(field_set:pg_query.DropUserMappingStmt.missing_ok) -} - -// ------------------------------------------------------------------- - -// AlterTableSpaceOptionsStmt - -// string tablespacename = 1 [json_name = "tablespacename"]; -inline void AlterTableSpaceOptionsStmt::clear_tablespacename() { - _impl_.tablespacename_.ClearToEmpty(); -} -inline const std::string& AlterTableSpaceOptionsStmt::tablespacename() const { - // @@protoc_insertion_point(field_get:pg_query.AlterTableSpaceOptionsStmt.tablespacename) - return _internal_tablespacename(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterTableSpaceOptionsStmt::set_tablespacename(ArgT0&& arg0, ArgT... args) { - - _impl_.tablespacename_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterTableSpaceOptionsStmt.tablespacename) -} -inline std::string* AlterTableSpaceOptionsStmt::mutable_tablespacename() { - std::string* _s = _internal_mutable_tablespacename(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterTableSpaceOptionsStmt.tablespacename) - return _s; -} -inline const std::string& AlterTableSpaceOptionsStmt::_internal_tablespacename() const { - return _impl_.tablespacename_.Get(); -} -inline void AlterTableSpaceOptionsStmt::_internal_set_tablespacename(const std::string& value) { - - _impl_.tablespacename_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterTableSpaceOptionsStmt::_internal_mutable_tablespacename() { - - return _impl_.tablespacename_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterTableSpaceOptionsStmt::release_tablespacename() { - // @@protoc_insertion_point(field_release:pg_query.AlterTableSpaceOptionsStmt.tablespacename) - return _impl_.tablespacename_.Release(); -} -inline void AlterTableSpaceOptionsStmt::set_allocated_tablespacename(std::string* tablespacename) { - if (tablespacename != nullptr) { - - } else { - - } - _impl_.tablespacename_.SetAllocated(tablespacename, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.tablespacename_.IsDefault()) { - _impl_.tablespacename_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterTableSpaceOptionsStmt.tablespacename) -} - -// repeated .pg_query.Node options = 2 [json_name = "options"]; -inline int AlterTableSpaceOptionsStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int AlterTableSpaceOptionsStmt::options_size() const { - return _internal_options_size(); -} -inline void AlterTableSpaceOptionsStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* AlterTableSpaceOptionsStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterTableSpaceOptionsStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterTableSpaceOptionsStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterTableSpaceOptionsStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& AlterTableSpaceOptionsStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& AlterTableSpaceOptionsStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterTableSpaceOptionsStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* AlterTableSpaceOptionsStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* AlterTableSpaceOptionsStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.AlterTableSpaceOptionsStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterTableSpaceOptionsStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.AlterTableSpaceOptionsStmt.options) - return _impl_.options_; -} - -// bool is_reset = 3 [json_name = "isReset"]; -inline void AlterTableSpaceOptionsStmt::clear_is_reset() { - _impl_.is_reset_ = false; -} -inline bool AlterTableSpaceOptionsStmt::_internal_is_reset() const { - return _impl_.is_reset_; -} -inline bool AlterTableSpaceOptionsStmt::is_reset() const { - // @@protoc_insertion_point(field_get:pg_query.AlterTableSpaceOptionsStmt.is_reset) - return _internal_is_reset(); -} -inline void AlterTableSpaceOptionsStmt::_internal_set_is_reset(bool value) { - - _impl_.is_reset_ = value; -} -inline void AlterTableSpaceOptionsStmt::set_is_reset(bool value) { - _internal_set_is_reset(value); - // @@protoc_insertion_point(field_set:pg_query.AlterTableSpaceOptionsStmt.is_reset) -} - -// ------------------------------------------------------------------- - -// AlterTableMoveAllStmt - -// string orig_tablespacename = 1 [json_name = "orig_tablespacename"]; -inline void AlterTableMoveAllStmt::clear_orig_tablespacename() { - _impl_.orig_tablespacename_.ClearToEmpty(); -} -inline const std::string& AlterTableMoveAllStmt::orig_tablespacename() const { - // @@protoc_insertion_point(field_get:pg_query.AlterTableMoveAllStmt.orig_tablespacename) - return _internal_orig_tablespacename(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterTableMoveAllStmt::set_orig_tablespacename(ArgT0&& arg0, ArgT... args) { - - _impl_.orig_tablespacename_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterTableMoveAllStmt.orig_tablespacename) -} -inline std::string* AlterTableMoveAllStmt::mutable_orig_tablespacename() { - std::string* _s = _internal_mutable_orig_tablespacename(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterTableMoveAllStmt.orig_tablespacename) - return _s; -} -inline const std::string& AlterTableMoveAllStmt::_internal_orig_tablespacename() const { - return _impl_.orig_tablespacename_.Get(); -} -inline void AlterTableMoveAllStmt::_internal_set_orig_tablespacename(const std::string& value) { - - _impl_.orig_tablespacename_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterTableMoveAllStmt::_internal_mutable_orig_tablespacename() { - - return _impl_.orig_tablespacename_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterTableMoveAllStmt::release_orig_tablespacename() { - // @@protoc_insertion_point(field_release:pg_query.AlterTableMoveAllStmt.orig_tablespacename) - return _impl_.orig_tablespacename_.Release(); -} -inline void AlterTableMoveAllStmt::set_allocated_orig_tablespacename(std::string* orig_tablespacename) { - if (orig_tablespacename != nullptr) { - - } else { - - } - _impl_.orig_tablespacename_.SetAllocated(orig_tablespacename, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.orig_tablespacename_.IsDefault()) { - _impl_.orig_tablespacename_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterTableMoveAllStmt.orig_tablespacename) -} - -// .pg_query.ObjectType objtype = 2 [json_name = "objtype"]; -inline void AlterTableMoveAllStmt::clear_objtype() { - _impl_.objtype_ = 0; -} -inline ::pg_query::ObjectType AlterTableMoveAllStmt::_internal_objtype() const { - return static_cast< ::pg_query::ObjectType >(_impl_.objtype_); -} -inline ::pg_query::ObjectType AlterTableMoveAllStmt::objtype() const { - // @@protoc_insertion_point(field_get:pg_query.AlterTableMoveAllStmt.objtype) - return _internal_objtype(); -} -inline void AlterTableMoveAllStmt::_internal_set_objtype(::pg_query::ObjectType value) { - - _impl_.objtype_ = value; -} -inline void AlterTableMoveAllStmt::set_objtype(::pg_query::ObjectType value) { - _internal_set_objtype(value); - // @@protoc_insertion_point(field_set:pg_query.AlterTableMoveAllStmt.objtype) -} - -// repeated .pg_query.Node roles = 3 [json_name = "roles"]; -inline int AlterTableMoveAllStmt::_internal_roles_size() const { - return _impl_.roles_.size(); -} -inline int AlterTableMoveAllStmt::roles_size() const { - return _internal_roles_size(); -} -inline void AlterTableMoveAllStmt::clear_roles() { - _impl_.roles_.Clear(); -} -inline ::pg_query::Node* AlterTableMoveAllStmt::mutable_roles(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterTableMoveAllStmt.roles) - return _impl_.roles_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterTableMoveAllStmt::mutable_roles() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterTableMoveAllStmt.roles) - return &_impl_.roles_; -} -inline const ::pg_query::Node& AlterTableMoveAllStmt::_internal_roles(int index) const { - return _impl_.roles_.Get(index); -} -inline const ::pg_query::Node& AlterTableMoveAllStmt::roles(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterTableMoveAllStmt.roles) - return _internal_roles(index); -} -inline ::pg_query::Node* AlterTableMoveAllStmt::_internal_add_roles() { - return _impl_.roles_.Add(); -} -inline ::pg_query::Node* AlterTableMoveAllStmt::add_roles() { - ::pg_query::Node* _add = _internal_add_roles(); - // @@protoc_insertion_point(field_add:pg_query.AlterTableMoveAllStmt.roles) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterTableMoveAllStmt::roles() const { - // @@protoc_insertion_point(field_list:pg_query.AlterTableMoveAllStmt.roles) - return _impl_.roles_; -} - -// string new_tablespacename = 4 [json_name = "new_tablespacename"]; -inline void AlterTableMoveAllStmt::clear_new_tablespacename() { - _impl_.new_tablespacename_.ClearToEmpty(); -} -inline const std::string& AlterTableMoveAllStmt::new_tablespacename() const { - // @@protoc_insertion_point(field_get:pg_query.AlterTableMoveAllStmt.new_tablespacename) - return _internal_new_tablespacename(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterTableMoveAllStmt::set_new_tablespacename(ArgT0&& arg0, ArgT... args) { - - _impl_.new_tablespacename_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterTableMoveAllStmt.new_tablespacename) -} -inline std::string* AlterTableMoveAllStmt::mutable_new_tablespacename() { - std::string* _s = _internal_mutable_new_tablespacename(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterTableMoveAllStmt.new_tablespacename) - return _s; -} -inline const std::string& AlterTableMoveAllStmt::_internal_new_tablespacename() const { - return _impl_.new_tablespacename_.Get(); -} -inline void AlterTableMoveAllStmt::_internal_set_new_tablespacename(const std::string& value) { - - _impl_.new_tablespacename_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterTableMoveAllStmt::_internal_mutable_new_tablespacename() { - - return _impl_.new_tablespacename_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterTableMoveAllStmt::release_new_tablespacename() { - // @@protoc_insertion_point(field_release:pg_query.AlterTableMoveAllStmt.new_tablespacename) - return _impl_.new_tablespacename_.Release(); -} -inline void AlterTableMoveAllStmt::set_allocated_new_tablespacename(std::string* new_tablespacename) { - if (new_tablespacename != nullptr) { - - } else { - - } - _impl_.new_tablespacename_.SetAllocated(new_tablespacename, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.new_tablespacename_.IsDefault()) { - _impl_.new_tablespacename_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterTableMoveAllStmt.new_tablespacename) -} - -// bool nowait = 5 [json_name = "nowait"]; -inline void AlterTableMoveAllStmt::clear_nowait() { - _impl_.nowait_ = false; -} -inline bool AlterTableMoveAllStmt::_internal_nowait() const { - return _impl_.nowait_; -} -inline bool AlterTableMoveAllStmt::nowait() const { - // @@protoc_insertion_point(field_get:pg_query.AlterTableMoveAllStmt.nowait) - return _internal_nowait(); -} -inline void AlterTableMoveAllStmt::_internal_set_nowait(bool value) { - - _impl_.nowait_ = value; -} -inline void AlterTableMoveAllStmt::set_nowait(bool value) { - _internal_set_nowait(value); - // @@protoc_insertion_point(field_set:pg_query.AlterTableMoveAllStmt.nowait) -} - -// ------------------------------------------------------------------- - -// SecLabelStmt - -// .pg_query.ObjectType objtype = 1 [json_name = "objtype"]; -inline void SecLabelStmt::clear_objtype() { - _impl_.objtype_ = 0; -} -inline ::pg_query::ObjectType SecLabelStmt::_internal_objtype() const { - return static_cast< ::pg_query::ObjectType >(_impl_.objtype_); -} -inline ::pg_query::ObjectType SecLabelStmt::objtype() const { - // @@protoc_insertion_point(field_get:pg_query.SecLabelStmt.objtype) - return _internal_objtype(); -} -inline void SecLabelStmt::_internal_set_objtype(::pg_query::ObjectType value) { - - _impl_.objtype_ = value; -} -inline void SecLabelStmt::set_objtype(::pg_query::ObjectType value) { - _internal_set_objtype(value); - // @@protoc_insertion_point(field_set:pg_query.SecLabelStmt.objtype) -} - -// .pg_query.Node object = 2 [json_name = "object"]; -inline bool SecLabelStmt::_internal_has_object() const { - return this != internal_default_instance() && _impl_.object_ != nullptr; -} -inline bool SecLabelStmt::has_object() const { - return _internal_has_object(); -} -inline void SecLabelStmt::clear_object() { - if (GetArenaForAllocation() == nullptr && _impl_.object_ != nullptr) { - delete _impl_.object_; - } - _impl_.object_ = nullptr; -} -inline const ::pg_query::Node& SecLabelStmt::_internal_object() const { - const ::pg_query::Node* p = _impl_.object_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& SecLabelStmt::object() const { - // @@protoc_insertion_point(field_get:pg_query.SecLabelStmt.object) - return _internal_object(); -} -inline void SecLabelStmt::unsafe_arena_set_allocated_object( - ::pg_query::Node* object) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.object_); - } - _impl_.object_ = object; - if (object) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SecLabelStmt.object) -} -inline ::pg_query::Node* SecLabelStmt::release_object() { - - ::pg_query::Node* temp = _impl_.object_; - _impl_.object_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* SecLabelStmt::unsafe_arena_release_object() { - // @@protoc_insertion_point(field_release:pg_query.SecLabelStmt.object) - - ::pg_query::Node* temp = _impl_.object_; - _impl_.object_ = nullptr; - return temp; -} -inline ::pg_query::Node* SecLabelStmt::_internal_mutable_object() { - - if (_impl_.object_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.object_ = p; - } - return _impl_.object_; -} -inline ::pg_query::Node* SecLabelStmt::mutable_object() { - ::pg_query::Node* _msg = _internal_mutable_object(); - // @@protoc_insertion_point(field_mutable:pg_query.SecLabelStmt.object) - return _msg; -} -inline void SecLabelStmt::set_allocated_object(::pg_query::Node* object) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.object_; - } - if (object) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(object); - if (message_arena != submessage_arena) { - object = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, object, submessage_arena); - } - - } else { - - } - _impl_.object_ = object; - // @@protoc_insertion_point(field_set_allocated:pg_query.SecLabelStmt.object) -} - -// string provider = 3 [json_name = "provider"]; -inline void SecLabelStmt::clear_provider() { - _impl_.provider_.ClearToEmpty(); -} -inline const std::string& SecLabelStmt::provider() const { - // @@protoc_insertion_point(field_get:pg_query.SecLabelStmt.provider) - return _internal_provider(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void SecLabelStmt::set_provider(ArgT0&& arg0, ArgT... args) { - - _impl_.provider_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.SecLabelStmt.provider) -} -inline std::string* SecLabelStmt::mutable_provider() { - std::string* _s = _internal_mutable_provider(); - // @@protoc_insertion_point(field_mutable:pg_query.SecLabelStmt.provider) - return _s; -} -inline const std::string& SecLabelStmt::_internal_provider() const { - return _impl_.provider_.Get(); -} -inline void SecLabelStmt::_internal_set_provider(const std::string& value) { - - _impl_.provider_.Set(value, GetArenaForAllocation()); -} -inline std::string* SecLabelStmt::_internal_mutable_provider() { - - return _impl_.provider_.Mutable(GetArenaForAllocation()); -} -inline std::string* SecLabelStmt::release_provider() { - // @@protoc_insertion_point(field_release:pg_query.SecLabelStmt.provider) - return _impl_.provider_.Release(); -} -inline void SecLabelStmt::set_allocated_provider(std::string* provider) { - if (provider != nullptr) { - - } else { - - } - _impl_.provider_.SetAllocated(provider, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.provider_.IsDefault()) { - _impl_.provider_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.SecLabelStmt.provider) -} - -// string label = 4 [json_name = "label"]; -inline void SecLabelStmt::clear_label() { - _impl_.label_.ClearToEmpty(); -} -inline const std::string& SecLabelStmt::label() const { - // @@protoc_insertion_point(field_get:pg_query.SecLabelStmt.label) - return _internal_label(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void SecLabelStmt::set_label(ArgT0&& arg0, ArgT... args) { - - _impl_.label_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.SecLabelStmt.label) -} -inline std::string* SecLabelStmt::mutable_label() { - std::string* _s = _internal_mutable_label(); - // @@protoc_insertion_point(field_mutable:pg_query.SecLabelStmt.label) - return _s; -} -inline const std::string& SecLabelStmt::_internal_label() const { - return _impl_.label_.Get(); -} -inline void SecLabelStmt::_internal_set_label(const std::string& value) { - - _impl_.label_.Set(value, GetArenaForAllocation()); -} -inline std::string* SecLabelStmt::_internal_mutable_label() { - - return _impl_.label_.Mutable(GetArenaForAllocation()); -} -inline std::string* SecLabelStmt::release_label() { - // @@protoc_insertion_point(field_release:pg_query.SecLabelStmt.label) - return _impl_.label_.Release(); -} -inline void SecLabelStmt::set_allocated_label(std::string* label) { - if (label != nullptr) { - - } else { - - } - _impl_.label_.SetAllocated(label, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.label_.IsDefault()) { - _impl_.label_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.SecLabelStmt.label) -} - -// ------------------------------------------------------------------- - -// CreateForeignTableStmt - -// .pg_query.CreateStmt base_stmt = 1 [json_name = "base"]; -inline bool CreateForeignTableStmt::_internal_has_base_stmt() const { - return this != internal_default_instance() && _impl_.base_stmt_ != nullptr; -} -inline bool CreateForeignTableStmt::has_base_stmt() const { - return _internal_has_base_stmt(); -} -inline void CreateForeignTableStmt::clear_base_stmt() { - if (GetArenaForAllocation() == nullptr && _impl_.base_stmt_ != nullptr) { - delete _impl_.base_stmt_; - } - _impl_.base_stmt_ = nullptr; -} -inline const ::pg_query::CreateStmt& CreateForeignTableStmt::_internal_base_stmt() const { - const ::pg_query::CreateStmt* p = _impl_.base_stmt_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_CreateStmt_default_instance_); -} -inline const ::pg_query::CreateStmt& CreateForeignTableStmt::base_stmt() const { - // @@protoc_insertion_point(field_get:pg_query.CreateForeignTableStmt.base_stmt) - return _internal_base_stmt(); -} -inline void CreateForeignTableStmt::unsafe_arena_set_allocated_base_stmt( - ::pg_query::CreateStmt* base_stmt) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.base_stmt_); - } - _impl_.base_stmt_ = base_stmt; - if (base_stmt) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateForeignTableStmt.base_stmt) -} -inline ::pg_query::CreateStmt* CreateForeignTableStmt::release_base_stmt() { - - ::pg_query::CreateStmt* temp = _impl_.base_stmt_; - _impl_.base_stmt_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::CreateStmt* CreateForeignTableStmt::unsafe_arena_release_base_stmt() { - // @@protoc_insertion_point(field_release:pg_query.CreateForeignTableStmt.base_stmt) - - ::pg_query::CreateStmt* temp = _impl_.base_stmt_; - _impl_.base_stmt_ = nullptr; - return temp; -} -inline ::pg_query::CreateStmt* CreateForeignTableStmt::_internal_mutable_base_stmt() { - - if (_impl_.base_stmt_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::CreateStmt>(GetArenaForAllocation()); - _impl_.base_stmt_ = p; - } - return _impl_.base_stmt_; -} -inline ::pg_query::CreateStmt* CreateForeignTableStmt::mutable_base_stmt() { - ::pg_query::CreateStmt* _msg = _internal_mutable_base_stmt(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateForeignTableStmt.base_stmt) - return _msg; -} -inline void CreateForeignTableStmt::set_allocated_base_stmt(::pg_query::CreateStmt* base_stmt) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.base_stmt_; - } - if (base_stmt) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(base_stmt); - if (message_arena != submessage_arena) { - base_stmt = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, base_stmt, submessage_arena); - } - - } else { - - } - _impl_.base_stmt_ = base_stmt; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateForeignTableStmt.base_stmt) -} - -// string servername = 2 [json_name = "servername"]; -inline void CreateForeignTableStmt::clear_servername() { - _impl_.servername_.ClearToEmpty(); -} -inline const std::string& CreateForeignTableStmt::servername() const { - // @@protoc_insertion_point(field_get:pg_query.CreateForeignTableStmt.servername) - return _internal_servername(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateForeignTableStmt::set_servername(ArgT0&& arg0, ArgT... args) { - - _impl_.servername_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateForeignTableStmt.servername) -} -inline std::string* CreateForeignTableStmt::mutable_servername() { - std::string* _s = _internal_mutable_servername(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateForeignTableStmt.servername) - return _s; -} -inline const std::string& CreateForeignTableStmt::_internal_servername() const { - return _impl_.servername_.Get(); -} -inline void CreateForeignTableStmt::_internal_set_servername(const std::string& value) { - - _impl_.servername_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateForeignTableStmt::_internal_mutable_servername() { - - return _impl_.servername_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateForeignTableStmt::release_servername() { - // @@protoc_insertion_point(field_release:pg_query.CreateForeignTableStmt.servername) - return _impl_.servername_.Release(); -} -inline void CreateForeignTableStmt::set_allocated_servername(std::string* servername) { - if (servername != nullptr) { - - } else { - - } - _impl_.servername_.SetAllocated(servername, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.servername_.IsDefault()) { - _impl_.servername_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateForeignTableStmt.servername) -} - -// repeated .pg_query.Node options = 3 [json_name = "options"]; -inline int CreateForeignTableStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int CreateForeignTableStmt::options_size() const { - return _internal_options_size(); -} -inline void CreateForeignTableStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* CreateForeignTableStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateForeignTableStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateForeignTableStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateForeignTableStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& CreateForeignTableStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& CreateForeignTableStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateForeignTableStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* CreateForeignTableStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* CreateForeignTableStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.CreateForeignTableStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateForeignTableStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.CreateForeignTableStmt.options) - return _impl_.options_; -} - -// ------------------------------------------------------------------- - -// ImportForeignSchemaStmt - -// string server_name = 1 [json_name = "server_name"]; -inline void ImportForeignSchemaStmt::clear_server_name() { - _impl_.server_name_.ClearToEmpty(); -} -inline const std::string& ImportForeignSchemaStmt::server_name() const { - // @@protoc_insertion_point(field_get:pg_query.ImportForeignSchemaStmt.server_name) - return _internal_server_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ImportForeignSchemaStmt::set_server_name(ArgT0&& arg0, ArgT... args) { - - _impl_.server_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.ImportForeignSchemaStmt.server_name) -} -inline std::string* ImportForeignSchemaStmt::mutable_server_name() { - std::string* _s = _internal_mutable_server_name(); - // @@protoc_insertion_point(field_mutable:pg_query.ImportForeignSchemaStmt.server_name) - return _s; -} -inline const std::string& ImportForeignSchemaStmt::_internal_server_name() const { - return _impl_.server_name_.Get(); -} -inline void ImportForeignSchemaStmt::_internal_set_server_name(const std::string& value) { - - _impl_.server_name_.Set(value, GetArenaForAllocation()); -} -inline std::string* ImportForeignSchemaStmt::_internal_mutable_server_name() { - - return _impl_.server_name_.Mutable(GetArenaForAllocation()); -} -inline std::string* ImportForeignSchemaStmt::release_server_name() { - // @@protoc_insertion_point(field_release:pg_query.ImportForeignSchemaStmt.server_name) - return _impl_.server_name_.Release(); -} -inline void ImportForeignSchemaStmt::set_allocated_server_name(std::string* server_name) { - if (server_name != nullptr) { - - } else { - - } - _impl_.server_name_.SetAllocated(server_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.server_name_.IsDefault()) { - _impl_.server_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.ImportForeignSchemaStmt.server_name) -} - -// string remote_schema = 2 [json_name = "remote_schema"]; -inline void ImportForeignSchemaStmt::clear_remote_schema() { - _impl_.remote_schema_.ClearToEmpty(); -} -inline const std::string& ImportForeignSchemaStmt::remote_schema() const { - // @@protoc_insertion_point(field_get:pg_query.ImportForeignSchemaStmt.remote_schema) - return _internal_remote_schema(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ImportForeignSchemaStmt::set_remote_schema(ArgT0&& arg0, ArgT... args) { - - _impl_.remote_schema_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.ImportForeignSchemaStmt.remote_schema) -} -inline std::string* ImportForeignSchemaStmt::mutable_remote_schema() { - std::string* _s = _internal_mutable_remote_schema(); - // @@protoc_insertion_point(field_mutable:pg_query.ImportForeignSchemaStmt.remote_schema) - return _s; -} -inline const std::string& ImportForeignSchemaStmt::_internal_remote_schema() const { - return _impl_.remote_schema_.Get(); -} -inline void ImportForeignSchemaStmt::_internal_set_remote_schema(const std::string& value) { - - _impl_.remote_schema_.Set(value, GetArenaForAllocation()); -} -inline std::string* ImportForeignSchemaStmt::_internal_mutable_remote_schema() { - - return _impl_.remote_schema_.Mutable(GetArenaForAllocation()); -} -inline std::string* ImportForeignSchemaStmt::release_remote_schema() { - // @@protoc_insertion_point(field_release:pg_query.ImportForeignSchemaStmt.remote_schema) - return _impl_.remote_schema_.Release(); -} -inline void ImportForeignSchemaStmt::set_allocated_remote_schema(std::string* remote_schema) { - if (remote_schema != nullptr) { - - } else { - - } - _impl_.remote_schema_.SetAllocated(remote_schema, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.remote_schema_.IsDefault()) { - _impl_.remote_schema_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.ImportForeignSchemaStmt.remote_schema) -} - -// string local_schema = 3 [json_name = "local_schema"]; -inline void ImportForeignSchemaStmt::clear_local_schema() { - _impl_.local_schema_.ClearToEmpty(); -} -inline const std::string& ImportForeignSchemaStmt::local_schema() const { - // @@protoc_insertion_point(field_get:pg_query.ImportForeignSchemaStmt.local_schema) - return _internal_local_schema(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ImportForeignSchemaStmt::set_local_schema(ArgT0&& arg0, ArgT... args) { - - _impl_.local_schema_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.ImportForeignSchemaStmt.local_schema) -} -inline std::string* ImportForeignSchemaStmt::mutable_local_schema() { - std::string* _s = _internal_mutable_local_schema(); - // @@protoc_insertion_point(field_mutable:pg_query.ImportForeignSchemaStmt.local_schema) - return _s; -} -inline const std::string& ImportForeignSchemaStmt::_internal_local_schema() const { - return _impl_.local_schema_.Get(); -} -inline void ImportForeignSchemaStmt::_internal_set_local_schema(const std::string& value) { - - _impl_.local_schema_.Set(value, GetArenaForAllocation()); -} -inline std::string* ImportForeignSchemaStmt::_internal_mutable_local_schema() { - - return _impl_.local_schema_.Mutable(GetArenaForAllocation()); -} -inline std::string* ImportForeignSchemaStmt::release_local_schema() { - // @@protoc_insertion_point(field_release:pg_query.ImportForeignSchemaStmt.local_schema) - return _impl_.local_schema_.Release(); -} -inline void ImportForeignSchemaStmt::set_allocated_local_schema(std::string* local_schema) { - if (local_schema != nullptr) { - - } else { - - } - _impl_.local_schema_.SetAllocated(local_schema, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.local_schema_.IsDefault()) { - _impl_.local_schema_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.ImportForeignSchemaStmt.local_schema) -} - -// .pg_query.ImportForeignSchemaType list_type = 4 [json_name = "list_type"]; -inline void ImportForeignSchemaStmt::clear_list_type() { - _impl_.list_type_ = 0; -} -inline ::pg_query::ImportForeignSchemaType ImportForeignSchemaStmt::_internal_list_type() const { - return static_cast< ::pg_query::ImportForeignSchemaType >(_impl_.list_type_); -} -inline ::pg_query::ImportForeignSchemaType ImportForeignSchemaStmt::list_type() const { - // @@protoc_insertion_point(field_get:pg_query.ImportForeignSchemaStmt.list_type) - return _internal_list_type(); -} -inline void ImportForeignSchemaStmt::_internal_set_list_type(::pg_query::ImportForeignSchemaType value) { - - _impl_.list_type_ = value; -} -inline void ImportForeignSchemaStmt::set_list_type(::pg_query::ImportForeignSchemaType value) { - _internal_set_list_type(value); - // @@protoc_insertion_point(field_set:pg_query.ImportForeignSchemaStmt.list_type) -} - -// repeated .pg_query.Node table_list = 5 [json_name = "table_list"]; -inline int ImportForeignSchemaStmt::_internal_table_list_size() const { - return _impl_.table_list_.size(); -} -inline int ImportForeignSchemaStmt::table_list_size() const { - return _internal_table_list_size(); -} -inline void ImportForeignSchemaStmt::clear_table_list() { - _impl_.table_list_.Clear(); -} -inline ::pg_query::Node* ImportForeignSchemaStmt::mutable_table_list(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.ImportForeignSchemaStmt.table_list) - return _impl_.table_list_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -ImportForeignSchemaStmt::mutable_table_list() { - // @@protoc_insertion_point(field_mutable_list:pg_query.ImportForeignSchemaStmt.table_list) - return &_impl_.table_list_; -} -inline const ::pg_query::Node& ImportForeignSchemaStmt::_internal_table_list(int index) const { - return _impl_.table_list_.Get(index); -} -inline const ::pg_query::Node& ImportForeignSchemaStmt::table_list(int index) const { - // @@protoc_insertion_point(field_get:pg_query.ImportForeignSchemaStmt.table_list) - return _internal_table_list(index); -} -inline ::pg_query::Node* ImportForeignSchemaStmt::_internal_add_table_list() { - return _impl_.table_list_.Add(); -} -inline ::pg_query::Node* ImportForeignSchemaStmt::add_table_list() { - ::pg_query::Node* _add = _internal_add_table_list(); - // @@protoc_insertion_point(field_add:pg_query.ImportForeignSchemaStmt.table_list) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -ImportForeignSchemaStmt::table_list() const { - // @@protoc_insertion_point(field_list:pg_query.ImportForeignSchemaStmt.table_list) - return _impl_.table_list_; -} - -// repeated .pg_query.Node options = 6 [json_name = "options"]; -inline int ImportForeignSchemaStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int ImportForeignSchemaStmt::options_size() const { - return _internal_options_size(); -} -inline void ImportForeignSchemaStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* ImportForeignSchemaStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.ImportForeignSchemaStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -ImportForeignSchemaStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.ImportForeignSchemaStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& ImportForeignSchemaStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& ImportForeignSchemaStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.ImportForeignSchemaStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* ImportForeignSchemaStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* ImportForeignSchemaStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.ImportForeignSchemaStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -ImportForeignSchemaStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.ImportForeignSchemaStmt.options) - return _impl_.options_; -} - -// ------------------------------------------------------------------- - -// CreateExtensionStmt - -// string extname = 1 [json_name = "extname"]; -inline void CreateExtensionStmt::clear_extname() { - _impl_.extname_.ClearToEmpty(); -} -inline const std::string& CreateExtensionStmt::extname() const { - // @@protoc_insertion_point(field_get:pg_query.CreateExtensionStmt.extname) - return _internal_extname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateExtensionStmt::set_extname(ArgT0&& arg0, ArgT... args) { - - _impl_.extname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateExtensionStmt.extname) -} -inline std::string* CreateExtensionStmt::mutable_extname() { - std::string* _s = _internal_mutable_extname(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateExtensionStmt.extname) - return _s; -} -inline const std::string& CreateExtensionStmt::_internal_extname() const { - return _impl_.extname_.Get(); -} -inline void CreateExtensionStmt::_internal_set_extname(const std::string& value) { - - _impl_.extname_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateExtensionStmt::_internal_mutable_extname() { - - return _impl_.extname_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateExtensionStmt::release_extname() { - // @@protoc_insertion_point(field_release:pg_query.CreateExtensionStmt.extname) - return _impl_.extname_.Release(); -} -inline void CreateExtensionStmt::set_allocated_extname(std::string* extname) { - if (extname != nullptr) { - - } else { - - } - _impl_.extname_.SetAllocated(extname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.extname_.IsDefault()) { - _impl_.extname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateExtensionStmt.extname) -} - -// bool if_not_exists = 2 [json_name = "if_not_exists"]; -inline void CreateExtensionStmt::clear_if_not_exists() { - _impl_.if_not_exists_ = false; -} -inline bool CreateExtensionStmt::_internal_if_not_exists() const { - return _impl_.if_not_exists_; -} -inline bool CreateExtensionStmt::if_not_exists() const { - // @@protoc_insertion_point(field_get:pg_query.CreateExtensionStmt.if_not_exists) - return _internal_if_not_exists(); -} -inline void CreateExtensionStmt::_internal_set_if_not_exists(bool value) { - - _impl_.if_not_exists_ = value; -} -inline void CreateExtensionStmt::set_if_not_exists(bool value) { - _internal_set_if_not_exists(value); - // @@protoc_insertion_point(field_set:pg_query.CreateExtensionStmt.if_not_exists) -} - -// repeated .pg_query.Node options = 3 [json_name = "options"]; -inline int CreateExtensionStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int CreateExtensionStmt::options_size() const { - return _internal_options_size(); -} -inline void CreateExtensionStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* CreateExtensionStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateExtensionStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateExtensionStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateExtensionStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& CreateExtensionStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& CreateExtensionStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateExtensionStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* CreateExtensionStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* CreateExtensionStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.CreateExtensionStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateExtensionStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.CreateExtensionStmt.options) - return _impl_.options_; -} - -// ------------------------------------------------------------------- - -// AlterExtensionStmt - -// string extname = 1 [json_name = "extname"]; -inline void AlterExtensionStmt::clear_extname() { - _impl_.extname_.ClearToEmpty(); -} -inline const std::string& AlterExtensionStmt::extname() const { - // @@protoc_insertion_point(field_get:pg_query.AlterExtensionStmt.extname) - return _internal_extname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterExtensionStmt::set_extname(ArgT0&& arg0, ArgT... args) { - - _impl_.extname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterExtensionStmt.extname) -} -inline std::string* AlterExtensionStmt::mutable_extname() { - std::string* _s = _internal_mutable_extname(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterExtensionStmt.extname) - return _s; -} -inline const std::string& AlterExtensionStmt::_internal_extname() const { - return _impl_.extname_.Get(); -} -inline void AlterExtensionStmt::_internal_set_extname(const std::string& value) { - - _impl_.extname_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterExtensionStmt::_internal_mutable_extname() { - - return _impl_.extname_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterExtensionStmt::release_extname() { - // @@protoc_insertion_point(field_release:pg_query.AlterExtensionStmt.extname) - return _impl_.extname_.Release(); -} -inline void AlterExtensionStmt::set_allocated_extname(std::string* extname) { - if (extname != nullptr) { - - } else { - - } - _impl_.extname_.SetAllocated(extname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.extname_.IsDefault()) { - _impl_.extname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterExtensionStmt.extname) -} - -// repeated .pg_query.Node options = 2 [json_name = "options"]; -inline int AlterExtensionStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int AlterExtensionStmt::options_size() const { - return _internal_options_size(); -} -inline void AlterExtensionStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* AlterExtensionStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterExtensionStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterExtensionStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterExtensionStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& AlterExtensionStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& AlterExtensionStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterExtensionStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* AlterExtensionStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* AlterExtensionStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.AlterExtensionStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterExtensionStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.AlterExtensionStmt.options) - return _impl_.options_; -} - -// ------------------------------------------------------------------- - -// AlterExtensionContentsStmt - -// string extname = 1 [json_name = "extname"]; -inline void AlterExtensionContentsStmt::clear_extname() { - _impl_.extname_.ClearToEmpty(); -} -inline const std::string& AlterExtensionContentsStmt::extname() const { - // @@protoc_insertion_point(field_get:pg_query.AlterExtensionContentsStmt.extname) - return _internal_extname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterExtensionContentsStmt::set_extname(ArgT0&& arg0, ArgT... args) { - - _impl_.extname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterExtensionContentsStmt.extname) -} -inline std::string* AlterExtensionContentsStmt::mutable_extname() { - std::string* _s = _internal_mutable_extname(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterExtensionContentsStmt.extname) - return _s; -} -inline const std::string& AlterExtensionContentsStmt::_internal_extname() const { - return _impl_.extname_.Get(); -} -inline void AlterExtensionContentsStmt::_internal_set_extname(const std::string& value) { - - _impl_.extname_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterExtensionContentsStmt::_internal_mutable_extname() { - - return _impl_.extname_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterExtensionContentsStmt::release_extname() { - // @@protoc_insertion_point(field_release:pg_query.AlterExtensionContentsStmt.extname) - return _impl_.extname_.Release(); -} -inline void AlterExtensionContentsStmt::set_allocated_extname(std::string* extname) { - if (extname != nullptr) { - - } else { - - } - _impl_.extname_.SetAllocated(extname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.extname_.IsDefault()) { - _impl_.extname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterExtensionContentsStmt.extname) -} - -// int32 action = 2 [json_name = "action"]; -inline void AlterExtensionContentsStmt::clear_action() { - _impl_.action_ = 0; -} -inline int32_t AlterExtensionContentsStmt::_internal_action() const { - return _impl_.action_; -} -inline int32_t AlterExtensionContentsStmt::action() const { - // @@protoc_insertion_point(field_get:pg_query.AlterExtensionContentsStmt.action) - return _internal_action(); -} -inline void AlterExtensionContentsStmt::_internal_set_action(int32_t value) { - - _impl_.action_ = value; -} -inline void AlterExtensionContentsStmt::set_action(int32_t value) { - _internal_set_action(value); - // @@protoc_insertion_point(field_set:pg_query.AlterExtensionContentsStmt.action) -} - -// .pg_query.ObjectType objtype = 3 [json_name = "objtype"]; -inline void AlterExtensionContentsStmt::clear_objtype() { - _impl_.objtype_ = 0; -} -inline ::pg_query::ObjectType AlterExtensionContentsStmt::_internal_objtype() const { - return static_cast< ::pg_query::ObjectType >(_impl_.objtype_); -} -inline ::pg_query::ObjectType AlterExtensionContentsStmt::objtype() const { - // @@protoc_insertion_point(field_get:pg_query.AlterExtensionContentsStmt.objtype) - return _internal_objtype(); -} -inline void AlterExtensionContentsStmt::_internal_set_objtype(::pg_query::ObjectType value) { - - _impl_.objtype_ = value; -} -inline void AlterExtensionContentsStmt::set_objtype(::pg_query::ObjectType value) { - _internal_set_objtype(value); - // @@protoc_insertion_point(field_set:pg_query.AlterExtensionContentsStmt.objtype) -} - -// .pg_query.Node object = 4 [json_name = "object"]; -inline bool AlterExtensionContentsStmt::_internal_has_object() const { - return this != internal_default_instance() && _impl_.object_ != nullptr; -} -inline bool AlterExtensionContentsStmt::has_object() const { - return _internal_has_object(); -} -inline void AlterExtensionContentsStmt::clear_object() { - if (GetArenaForAllocation() == nullptr && _impl_.object_ != nullptr) { - delete _impl_.object_; - } - _impl_.object_ = nullptr; -} -inline const ::pg_query::Node& AlterExtensionContentsStmt::_internal_object() const { - const ::pg_query::Node* p = _impl_.object_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& AlterExtensionContentsStmt::object() const { - // @@protoc_insertion_point(field_get:pg_query.AlterExtensionContentsStmt.object) - return _internal_object(); -} -inline void AlterExtensionContentsStmt::unsafe_arena_set_allocated_object( - ::pg_query::Node* object) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.object_); - } - _impl_.object_ = object; - if (object) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterExtensionContentsStmt.object) -} -inline ::pg_query::Node* AlterExtensionContentsStmt::release_object() { - - ::pg_query::Node* temp = _impl_.object_; - _impl_.object_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* AlterExtensionContentsStmt::unsafe_arena_release_object() { - // @@protoc_insertion_point(field_release:pg_query.AlterExtensionContentsStmt.object) - - ::pg_query::Node* temp = _impl_.object_; - _impl_.object_ = nullptr; - return temp; -} -inline ::pg_query::Node* AlterExtensionContentsStmt::_internal_mutable_object() { - - if (_impl_.object_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.object_ = p; - } - return _impl_.object_; -} -inline ::pg_query::Node* AlterExtensionContentsStmt::mutable_object() { - ::pg_query::Node* _msg = _internal_mutable_object(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterExtensionContentsStmt.object) - return _msg; -} -inline void AlterExtensionContentsStmt::set_allocated_object(::pg_query::Node* object) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.object_; - } - if (object) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(object); - if (message_arena != submessage_arena) { - object = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, object, submessage_arena); - } - - } else { - - } - _impl_.object_ = object; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterExtensionContentsStmt.object) -} - -// ------------------------------------------------------------------- - -// CreateEventTrigStmt - -// string trigname = 1 [json_name = "trigname"]; -inline void CreateEventTrigStmt::clear_trigname() { - _impl_.trigname_.ClearToEmpty(); -} -inline const std::string& CreateEventTrigStmt::trigname() const { - // @@protoc_insertion_point(field_get:pg_query.CreateEventTrigStmt.trigname) - return _internal_trigname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateEventTrigStmt::set_trigname(ArgT0&& arg0, ArgT... args) { - - _impl_.trigname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateEventTrigStmt.trigname) -} -inline std::string* CreateEventTrigStmt::mutable_trigname() { - std::string* _s = _internal_mutable_trigname(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateEventTrigStmt.trigname) - return _s; -} -inline const std::string& CreateEventTrigStmt::_internal_trigname() const { - return _impl_.trigname_.Get(); -} -inline void CreateEventTrigStmt::_internal_set_trigname(const std::string& value) { - - _impl_.trigname_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateEventTrigStmt::_internal_mutable_trigname() { - - return _impl_.trigname_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateEventTrigStmt::release_trigname() { - // @@protoc_insertion_point(field_release:pg_query.CreateEventTrigStmt.trigname) - return _impl_.trigname_.Release(); -} -inline void CreateEventTrigStmt::set_allocated_trigname(std::string* trigname) { - if (trigname != nullptr) { - - } else { - - } - _impl_.trigname_.SetAllocated(trigname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.trigname_.IsDefault()) { - _impl_.trigname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateEventTrigStmt.trigname) -} - -// string eventname = 2 [json_name = "eventname"]; -inline void CreateEventTrigStmt::clear_eventname() { - _impl_.eventname_.ClearToEmpty(); -} -inline const std::string& CreateEventTrigStmt::eventname() const { - // @@protoc_insertion_point(field_get:pg_query.CreateEventTrigStmt.eventname) - return _internal_eventname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateEventTrigStmt::set_eventname(ArgT0&& arg0, ArgT... args) { - - _impl_.eventname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateEventTrigStmt.eventname) -} -inline std::string* CreateEventTrigStmt::mutable_eventname() { - std::string* _s = _internal_mutable_eventname(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateEventTrigStmt.eventname) - return _s; -} -inline const std::string& CreateEventTrigStmt::_internal_eventname() const { - return _impl_.eventname_.Get(); -} -inline void CreateEventTrigStmt::_internal_set_eventname(const std::string& value) { - - _impl_.eventname_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateEventTrigStmt::_internal_mutable_eventname() { - - return _impl_.eventname_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateEventTrigStmt::release_eventname() { - // @@protoc_insertion_point(field_release:pg_query.CreateEventTrigStmt.eventname) - return _impl_.eventname_.Release(); -} -inline void CreateEventTrigStmt::set_allocated_eventname(std::string* eventname) { - if (eventname != nullptr) { - - } else { - - } - _impl_.eventname_.SetAllocated(eventname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.eventname_.IsDefault()) { - _impl_.eventname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateEventTrigStmt.eventname) -} - -// repeated .pg_query.Node whenclause = 3 [json_name = "whenclause"]; -inline int CreateEventTrigStmt::_internal_whenclause_size() const { - return _impl_.whenclause_.size(); -} -inline int CreateEventTrigStmt::whenclause_size() const { - return _internal_whenclause_size(); -} -inline void CreateEventTrigStmt::clear_whenclause() { - _impl_.whenclause_.Clear(); -} -inline ::pg_query::Node* CreateEventTrigStmt::mutable_whenclause(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateEventTrigStmt.whenclause) - return _impl_.whenclause_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateEventTrigStmt::mutable_whenclause() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateEventTrigStmt.whenclause) - return &_impl_.whenclause_; -} -inline const ::pg_query::Node& CreateEventTrigStmt::_internal_whenclause(int index) const { - return _impl_.whenclause_.Get(index); -} -inline const ::pg_query::Node& CreateEventTrigStmt::whenclause(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateEventTrigStmt.whenclause) - return _internal_whenclause(index); -} -inline ::pg_query::Node* CreateEventTrigStmt::_internal_add_whenclause() { - return _impl_.whenclause_.Add(); -} -inline ::pg_query::Node* CreateEventTrigStmt::add_whenclause() { - ::pg_query::Node* _add = _internal_add_whenclause(); - // @@protoc_insertion_point(field_add:pg_query.CreateEventTrigStmt.whenclause) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateEventTrigStmt::whenclause() const { - // @@protoc_insertion_point(field_list:pg_query.CreateEventTrigStmt.whenclause) - return _impl_.whenclause_; -} - -// repeated .pg_query.Node funcname = 4 [json_name = "funcname"]; -inline int CreateEventTrigStmt::_internal_funcname_size() const { - return _impl_.funcname_.size(); -} -inline int CreateEventTrigStmt::funcname_size() const { - return _internal_funcname_size(); -} -inline void CreateEventTrigStmt::clear_funcname() { - _impl_.funcname_.Clear(); -} -inline ::pg_query::Node* CreateEventTrigStmt::mutable_funcname(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateEventTrigStmt.funcname) - return _impl_.funcname_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateEventTrigStmt::mutable_funcname() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateEventTrigStmt.funcname) - return &_impl_.funcname_; -} -inline const ::pg_query::Node& CreateEventTrigStmt::_internal_funcname(int index) const { - return _impl_.funcname_.Get(index); -} -inline const ::pg_query::Node& CreateEventTrigStmt::funcname(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateEventTrigStmt.funcname) - return _internal_funcname(index); -} -inline ::pg_query::Node* CreateEventTrigStmt::_internal_add_funcname() { - return _impl_.funcname_.Add(); -} -inline ::pg_query::Node* CreateEventTrigStmt::add_funcname() { - ::pg_query::Node* _add = _internal_add_funcname(); - // @@protoc_insertion_point(field_add:pg_query.CreateEventTrigStmt.funcname) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateEventTrigStmt::funcname() const { - // @@protoc_insertion_point(field_list:pg_query.CreateEventTrigStmt.funcname) - return _impl_.funcname_; -} - -// ------------------------------------------------------------------- - -// AlterEventTrigStmt - -// string trigname = 1 [json_name = "trigname"]; -inline void AlterEventTrigStmt::clear_trigname() { - _impl_.trigname_.ClearToEmpty(); -} -inline const std::string& AlterEventTrigStmt::trigname() const { - // @@protoc_insertion_point(field_get:pg_query.AlterEventTrigStmt.trigname) - return _internal_trigname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterEventTrigStmt::set_trigname(ArgT0&& arg0, ArgT... args) { - - _impl_.trigname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterEventTrigStmt.trigname) -} -inline std::string* AlterEventTrigStmt::mutable_trigname() { - std::string* _s = _internal_mutable_trigname(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterEventTrigStmt.trigname) - return _s; -} -inline const std::string& AlterEventTrigStmt::_internal_trigname() const { - return _impl_.trigname_.Get(); -} -inline void AlterEventTrigStmt::_internal_set_trigname(const std::string& value) { - - _impl_.trigname_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterEventTrigStmt::_internal_mutable_trigname() { - - return _impl_.trigname_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterEventTrigStmt::release_trigname() { - // @@protoc_insertion_point(field_release:pg_query.AlterEventTrigStmt.trigname) - return _impl_.trigname_.Release(); -} -inline void AlterEventTrigStmt::set_allocated_trigname(std::string* trigname) { - if (trigname != nullptr) { - - } else { - - } - _impl_.trigname_.SetAllocated(trigname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.trigname_.IsDefault()) { - _impl_.trigname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterEventTrigStmt.trigname) -} - -// string tgenabled = 2 [json_name = "tgenabled"]; -inline void AlterEventTrigStmt::clear_tgenabled() { - _impl_.tgenabled_.ClearToEmpty(); -} -inline const std::string& AlterEventTrigStmt::tgenabled() const { - // @@protoc_insertion_point(field_get:pg_query.AlterEventTrigStmt.tgenabled) - return _internal_tgenabled(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterEventTrigStmt::set_tgenabled(ArgT0&& arg0, ArgT... args) { - - _impl_.tgenabled_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterEventTrigStmt.tgenabled) -} -inline std::string* AlterEventTrigStmt::mutable_tgenabled() { - std::string* _s = _internal_mutable_tgenabled(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterEventTrigStmt.tgenabled) - return _s; -} -inline const std::string& AlterEventTrigStmt::_internal_tgenabled() const { - return _impl_.tgenabled_.Get(); -} -inline void AlterEventTrigStmt::_internal_set_tgenabled(const std::string& value) { - - _impl_.tgenabled_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterEventTrigStmt::_internal_mutable_tgenabled() { - - return _impl_.tgenabled_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterEventTrigStmt::release_tgenabled() { - // @@protoc_insertion_point(field_release:pg_query.AlterEventTrigStmt.tgenabled) - return _impl_.tgenabled_.Release(); -} -inline void AlterEventTrigStmt::set_allocated_tgenabled(std::string* tgenabled) { - if (tgenabled != nullptr) { - - } else { - - } - _impl_.tgenabled_.SetAllocated(tgenabled, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.tgenabled_.IsDefault()) { - _impl_.tgenabled_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterEventTrigStmt.tgenabled) -} - -// ------------------------------------------------------------------- - -// RefreshMatViewStmt - -// bool concurrent = 1 [json_name = "concurrent"]; -inline void RefreshMatViewStmt::clear_concurrent() { - _impl_.concurrent_ = false; -} -inline bool RefreshMatViewStmt::_internal_concurrent() const { - return _impl_.concurrent_; -} -inline bool RefreshMatViewStmt::concurrent() const { - // @@protoc_insertion_point(field_get:pg_query.RefreshMatViewStmt.concurrent) - return _internal_concurrent(); -} -inline void RefreshMatViewStmt::_internal_set_concurrent(bool value) { - - _impl_.concurrent_ = value; -} -inline void RefreshMatViewStmt::set_concurrent(bool value) { - _internal_set_concurrent(value); - // @@protoc_insertion_point(field_set:pg_query.RefreshMatViewStmt.concurrent) -} - -// bool skip_data = 2 [json_name = "skipData"]; -inline void RefreshMatViewStmt::clear_skip_data() { - _impl_.skip_data_ = false; -} -inline bool RefreshMatViewStmt::_internal_skip_data() const { - return _impl_.skip_data_; -} -inline bool RefreshMatViewStmt::skip_data() const { - // @@protoc_insertion_point(field_get:pg_query.RefreshMatViewStmt.skip_data) - return _internal_skip_data(); -} -inline void RefreshMatViewStmt::_internal_set_skip_data(bool value) { - - _impl_.skip_data_ = value; -} -inline void RefreshMatViewStmt::set_skip_data(bool value) { - _internal_set_skip_data(value); - // @@protoc_insertion_point(field_set:pg_query.RefreshMatViewStmt.skip_data) -} - -// .pg_query.RangeVar relation = 3 [json_name = "relation"]; -inline bool RefreshMatViewStmt::_internal_has_relation() const { - return this != internal_default_instance() && _impl_.relation_ != nullptr; -} -inline bool RefreshMatViewStmt::has_relation() const { - return _internal_has_relation(); -} -inline void RefreshMatViewStmt::clear_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.relation_ != nullptr) { - delete _impl_.relation_; - } - _impl_.relation_ = nullptr; -} -inline const ::pg_query::RangeVar& RefreshMatViewStmt::_internal_relation() const { - const ::pg_query::RangeVar* p = _impl_.relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& RefreshMatViewStmt::relation() const { - // @@protoc_insertion_point(field_get:pg_query.RefreshMatViewStmt.relation) - return _internal_relation(); -} -inline void RefreshMatViewStmt::unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.relation_); - } - _impl_.relation_ = relation; - if (relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RefreshMatViewStmt.relation) -} -inline ::pg_query::RangeVar* RefreshMatViewStmt::release_relation() { - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* RefreshMatViewStmt::unsafe_arena_release_relation() { - // @@protoc_insertion_point(field_release:pg_query.RefreshMatViewStmt.relation) - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* RefreshMatViewStmt::_internal_mutable_relation() { - - if (_impl_.relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.relation_ = p; - } - return _impl_.relation_; -} -inline ::pg_query::RangeVar* RefreshMatViewStmt::mutable_relation() { - ::pg_query::RangeVar* _msg = _internal_mutable_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.RefreshMatViewStmt.relation) - return _msg; -} -inline void RefreshMatViewStmt::set_allocated_relation(::pg_query::RangeVar* relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.relation_; - } - if (relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(relation); - if (message_arena != submessage_arena) { - relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, relation, submessage_arena); - } - - } else { - - } - _impl_.relation_ = relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.RefreshMatViewStmt.relation) -} - -// ------------------------------------------------------------------- - -// ReplicaIdentityStmt - -// string identity_type = 1 [json_name = "identity_type"]; -inline void ReplicaIdentityStmt::clear_identity_type() { - _impl_.identity_type_.ClearToEmpty(); -} -inline const std::string& ReplicaIdentityStmt::identity_type() const { - // @@protoc_insertion_point(field_get:pg_query.ReplicaIdentityStmt.identity_type) - return _internal_identity_type(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ReplicaIdentityStmt::set_identity_type(ArgT0&& arg0, ArgT... args) { - - _impl_.identity_type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.ReplicaIdentityStmt.identity_type) -} -inline std::string* ReplicaIdentityStmt::mutable_identity_type() { - std::string* _s = _internal_mutable_identity_type(); - // @@protoc_insertion_point(field_mutable:pg_query.ReplicaIdentityStmt.identity_type) - return _s; -} -inline const std::string& ReplicaIdentityStmt::_internal_identity_type() const { - return _impl_.identity_type_.Get(); -} -inline void ReplicaIdentityStmt::_internal_set_identity_type(const std::string& value) { - - _impl_.identity_type_.Set(value, GetArenaForAllocation()); -} -inline std::string* ReplicaIdentityStmt::_internal_mutable_identity_type() { - - return _impl_.identity_type_.Mutable(GetArenaForAllocation()); -} -inline std::string* ReplicaIdentityStmt::release_identity_type() { - // @@protoc_insertion_point(field_release:pg_query.ReplicaIdentityStmt.identity_type) - return _impl_.identity_type_.Release(); -} -inline void ReplicaIdentityStmt::set_allocated_identity_type(std::string* identity_type) { - if (identity_type != nullptr) { - - } else { - - } - _impl_.identity_type_.SetAllocated(identity_type, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.identity_type_.IsDefault()) { - _impl_.identity_type_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.ReplicaIdentityStmt.identity_type) -} - -// string name = 2 [json_name = "name"]; -inline void ReplicaIdentityStmt::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& ReplicaIdentityStmt::name() const { - // @@protoc_insertion_point(field_get:pg_query.ReplicaIdentityStmt.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ReplicaIdentityStmt::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.ReplicaIdentityStmt.name) -} -inline std::string* ReplicaIdentityStmt::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.ReplicaIdentityStmt.name) - return _s; -} -inline const std::string& ReplicaIdentityStmt::_internal_name() const { - return _impl_.name_.Get(); -} -inline void ReplicaIdentityStmt::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* ReplicaIdentityStmt::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* ReplicaIdentityStmt::release_name() { - // @@protoc_insertion_point(field_release:pg_query.ReplicaIdentityStmt.name) - return _impl_.name_.Release(); -} -inline void ReplicaIdentityStmt::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.ReplicaIdentityStmt.name) -} - -// ------------------------------------------------------------------- - -// AlterSystemStmt - -// .pg_query.VariableSetStmt setstmt = 1 [json_name = "setstmt"]; -inline bool AlterSystemStmt::_internal_has_setstmt() const { - return this != internal_default_instance() && _impl_.setstmt_ != nullptr; -} -inline bool AlterSystemStmt::has_setstmt() const { - return _internal_has_setstmt(); -} -inline void AlterSystemStmt::clear_setstmt() { - if (GetArenaForAllocation() == nullptr && _impl_.setstmt_ != nullptr) { - delete _impl_.setstmt_; - } - _impl_.setstmt_ = nullptr; -} -inline const ::pg_query::VariableSetStmt& AlterSystemStmt::_internal_setstmt() const { - const ::pg_query::VariableSetStmt* p = _impl_.setstmt_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_VariableSetStmt_default_instance_); -} -inline const ::pg_query::VariableSetStmt& AlterSystemStmt::setstmt() const { - // @@protoc_insertion_point(field_get:pg_query.AlterSystemStmt.setstmt) - return _internal_setstmt(); -} -inline void AlterSystemStmt::unsafe_arena_set_allocated_setstmt( - ::pg_query::VariableSetStmt* setstmt) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.setstmt_); - } - _impl_.setstmt_ = setstmt; - if (setstmt) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterSystemStmt.setstmt) -} -inline ::pg_query::VariableSetStmt* AlterSystemStmt::release_setstmt() { - - ::pg_query::VariableSetStmt* temp = _impl_.setstmt_; - _impl_.setstmt_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::VariableSetStmt* AlterSystemStmt::unsafe_arena_release_setstmt() { - // @@protoc_insertion_point(field_release:pg_query.AlterSystemStmt.setstmt) - - ::pg_query::VariableSetStmt* temp = _impl_.setstmt_; - _impl_.setstmt_ = nullptr; - return temp; -} -inline ::pg_query::VariableSetStmt* AlterSystemStmt::_internal_mutable_setstmt() { - - if (_impl_.setstmt_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::VariableSetStmt>(GetArenaForAllocation()); - _impl_.setstmt_ = p; - } - return _impl_.setstmt_; -} -inline ::pg_query::VariableSetStmt* AlterSystemStmt::mutable_setstmt() { - ::pg_query::VariableSetStmt* _msg = _internal_mutable_setstmt(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterSystemStmt.setstmt) - return _msg; -} -inline void AlterSystemStmt::set_allocated_setstmt(::pg_query::VariableSetStmt* setstmt) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.setstmt_; - } - if (setstmt) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(setstmt); - if (message_arena != submessage_arena) { - setstmt = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, setstmt, submessage_arena); - } - - } else { - - } - _impl_.setstmt_ = setstmt; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterSystemStmt.setstmt) -} - -// ------------------------------------------------------------------- - -// CreatePolicyStmt - -// string policy_name = 1 [json_name = "policy_name"]; -inline void CreatePolicyStmt::clear_policy_name() { - _impl_.policy_name_.ClearToEmpty(); -} -inline const std::string& CreatePolicyStmt::policy_name() const { - // @@protoc_insertion_point(field_get:pg_query.CreatePolicyStmt.policy_name) - return _internal_policy_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreatePolicyStmt::set_policy_name(ArgT0&& arg0, ArgT... args) { - - _impl_.policy_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreatePolicyStmt.policy_name) -} -inline std::string* CreatePolicyStmt::mutable_policy_name() { - std::string* _s = _internal_mutable_policy_name(); - // @@protoc_insertion_point(field_mutable:pg_query.CreatePolicyStmt.policy_name) - return _s; -} -inline const std::string& CreatePolicyStmt::_internal_policy_name() const { - return _impl_.policy_name_.Get(); -} -inline void CreatePolicyStmt::_internal_set_policy_name(const std::string& value) { - - _impl_.policy_name_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreatePolicyStmt::_internal_mutable_policy_name() { - - return _impl_.policy_name_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreatePolicyStmt::release_policy_name() { - // @@protoc_insertion_point(field_release:pg_query.CreatePolicyStmt.policy_name) - return _impl_.policy_name_.Release(); -} -inline void CreatePolicyStmt::set_allocated_policy_name(std::string* policy_name) { - if (policy_name != nullptr) { - - } else { - - } - _impl_.policy_name_.SetAllocated(policy_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.policy_name_.IsDefault()) { - _impl_.policy_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreatePolicyStmt.policy_name) -} - -// .pg_query.RangeVar table = 2 [json_name = "table"]; -inline bool CreatePolicyStmt::_internal_has_table() const { - return this != internal_default_instance() && _impl_.table_ != nullptr; -} -inline bool CreatePolicyStmt::has_table() const { - return _internal_has_table(); -} -inline void CreatePolicyStmt::clear_table() { - if (GetArenaForAllocation() == nullptr && _impl_.table_ != nullptr) { - delete _impl_.table_; - } - _impl_.table_ = nullptr; -} -inline const ::pg_query::RangeVar& CreatePolicyStmt::_internal_table() const { - const ::pg_query::RangeVar* p = _impl_.table_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& CreatePolicyStmt::table() const { - // @@protoc_insertion_point(field_get:pg_query.CreatePolicyStmt.table) - return _internal_table(); -} -inline void CreatePolicyStmt::unsafe_arena_set_allocated_table( - ::pg_query::RangeVar* table) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.table_); - } - _impl_.table_ = table; - if (table) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreatePolicyStmt.table) -} -inline ::pg_query::RangeVar* CreatePolicyStmt::release_table() { - - ::pg_query::RangeVar* temp = _impl_.table_; - _impl_.table_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* CreatePolicyStmt::unsafe_arena_release_table() { - // @@protoc_insertion_point(field_release:pg_query.CreatePolicyStmt.table) - - ::pg_query::RangeVar* temp = _impl_.table_; - _impl_.table_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* CreatePolicyStmt::_internal_mutable_table() { - - if (_impl_.table_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.table_ = p; - } - return _impl_.table_; -} -inline ::pg_query::RangeVar* CreatePolicyStmt::mutable_table() { - ::pg_query::RangeVar* _msg = _internal_mutable_table(); - // @@protoc_insertion_point(field_mutable:pg_query.CreatePolicyStmt.table) - return _msg; -} -inline void CreatePolicyStmt::set_allocated_table(::pg_query::RangeVar* table) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.table_; - } - if (table) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(table); - if (message_arena != submessage_arena) { - table = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, table, submessage_arena); - } - - } else { - - } - _impl_.table_ = table; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreatePolicyStmt.table) -} - -// string cmd_name = 3 [json_name = "cmd_name"]; -inline void CreatePolicyStmt::clear_cmd_name() { - _impl_.cmd_name_.ClearToEmpty(); -} -inline const std::string& CreatePolicyStmt::cmd_name() const { - // @@protoc_insertion_point(field_get:pg_query.CreatePolicyStmt.cmd_name) - return _internal_cmd_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreatePolicyStmt::set_cmd_name(ArgT0&& arg0, ArgT... args) { - - _impl_.cmd_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreatePolicyStmt.cmd_name) -} -inline std::string* CreatePolicyStmt::mutable_cmd_name() { - std::string* _s = _internal_mutable_cmd_name(); - // @@protoc_insertion_point(field_mutable:pg_query.CreatePolicyStmt.cmd_name) - return _s; -} -inline const std::string& CreatePolicyStmt::_internal_cmd_name() const { - return _impl_.cmd_name_.Get(); -} -inline void CreatePolicyStmt::_internal_set_cmd_name(const std::string& value) { - - _impl_.cmd_name_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreatePolicyStmt::_internal_mutable_cmd_name() { - - return _impl_.cmd_name_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreatePolicyStmt::release_cmd_name() { - // @@protoc_insertion_point(field_release:pg_query.CreatePolicyStmt.cmd_name) - return _impl_.cmd_name_.Release(); -} -inline void CreatePolicyStmt::set_allocated_cmd_name(std::string* cmd_name) { - if (cmd_name != nullptr) { - - } else { - - } - _impl_.cmd_name_.SetAllocated(cmd_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.cmd_name_.IsDefault()) { - _impl_.cmd_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreatePolicyStmt.cmd_name) -} - -// bool permissive = 4 [json_name = "permissive"]; -inline void CreatePolicyStmt::clear_permissive() { - _impl_.permissive_ = false; -} -inline bool CreatePolicyStmt::_internal_permissive() const { - return _impl_.permissive_; -} -inline bool CreatePolicyStmt::permissive() const { - // @@protoc_insertion_point(field_get:pg_query.CreatePolicyStmt.permissive) - return _internal_permissive(); -} -inline void CreatePolicyStmt::_internal_set_permissive(bool value) { - - _impl_.permissive_ = value; -} -inline void CreatePolicyStmt::set_permissive(bool value) { - _internal_set_permissive(value); - // @@protoc_insertion_point(field_set:pg_query.CreatePolicyStmt.permissive) -} - -// repeated .pg_query.Node roles = 5 [json_name = "roles"]; -inline int CreatePolicyStmt::_internal_roles_size() const { - return _impl_.roles_.size(); -} -inline int CreatePolicyStmt::roles_size() const { - return _internal_roles_size(); -} -inline void CreatePolicyStmt::clear_roles() { - _impl_.roles_.Clear(); -} -inline ::pg_query::Node* CreatePolicyStmt::mutable_roles(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreatePolicyStmt.roles) - return _impl_.roles_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreatePolicyStmt::mutable_roles() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreatePolicyStmt.roles) - return &_impl_.roles_; -} -inline const ::pg_query::Node& CreatePolicyStmt::_internal_roles(int index) const { - return _impl_.roles_.Get(index); -} -inline const ::pg_query::Node& CreatePolicyStmt::roles(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreatePolicyStmt.roles) - return _internal_roles(index); -} -inline ::pg_query::Node* CreatePolicyStmt::_internal_add_roles() { - return _impl_.roles_.Add(); -} -inline ::pg_query::Node* CreatePolicyStmt::add_roles() { - ::pg_query::Node* _add = _internal_add_roles(); - // @@protoc_insertion_point(field_add:pg_query.CreatePolicyStmt.roles) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreatePolicyStmt::roles() const { - // @@protoc_insertion_point(field_list:pg_query.CreatePolicyStmt.roles) - return _impl_.roles_; -} - -// .pg_query.Node qual = 6 [json_name = "qual"]; -inline bool CreatePolicyStmt::_internal_has_qual() const { - return this != internal_default_instance() && _impl_.qual_ != nullptr; -} -inline bool CreatePolicyStmt::has_qual() const { - return _internal_has_qual(); -} -inline void CreatePolicyStmt::clear_qual() { - if (GetArenaForAllocation() == nullptr && _impl_.qual_ != nullptr) { - delete _impl_.qual_; - } - _impl_.qual_ = nullptr; -} -inline const ::pg_query::Node& CreatePolicyStmt::_internal_qual() const { - const ::pg_query::Node* p = _impl_.qual_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CreatePolicyStmt::qual() const { - // @@protoc_insertion_point(field_get:pg_query.CreatePolicyStmt.qual) - return _internal_qual(); -} -inline void CreatePolicyStmt::unsafe_arena_set_allocated_qual( - ::pg_query::Node* qual) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.qual_); - } - _impl_.qual_ = qual; - if (qual) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreatePolicyStmt.qual) -} -inline ::pg_query::Node* CreatePolicyStmt::release_qual() { - - ::pg_query::Node* temp = _impl_.qual_; - _impl_.qual_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CreatePolicyStmt::unsafe_arena_release_qual() { - // @@protoc_insertion_point(field_release:pg_query.CreatePolicyStmt.qual) - - ::pg_query::Node* temp = _impl_.qual_; - _impl_.qual_ = nullptr; - return temp; -} -inline ::pg_query::Node* CreatePolicyStmt::_internal_mutable_qual() { - - if (_impl_.qual_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.qual_ = p; - } - return _impl_.qual_; -} -inline ::pg_query::Node* CreatePolicyStmt::mutable_qual() { - ::pg_query::Node* _msg = _internal_mutable_qual(); - // @@protoc_insertion_point(field_mutable:pg_query.CreatePolicyStmt.qual) - return _msg; -} -inline void CreatePolicyStmt::set_allocated_qual(::pg_query::Node* qual) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.qual_; - } - if (qual) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(qual); - if (message_arena != submessage_arena) { - qual = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, qual, submessage_arena); - } - - } else { - - } - _impl_.qual_ = qual; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreatePolicyStmt.qual) -} - -// .pg_query.Node with_check = 7 [json_name = "with_check"]; -inline bool CreatePolicyStmt::_internal_has_with_check() const { - return this != internal_default_instance() && _impl_.with_check_ != nullptr; -} -inline bool CreatePolicyStmt::has_with_check() const { - return _internal_has_with_check(); -} -inline void CreatePolicyStmt::clear_with_check() { - if (GetArenaForAllocation() == nullptr && _impl_.with_check_ != nullptr) { - delete _impl_.with_check_; - } - _impl_.with_check_ = nullptr; -} -inline const ::pg_query::Node& CreatePolicyStmt::_internal_with_check() const { - const ::pg_query::Node* p = _impl_.with_check_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CreatePolicyStmt::with_check() const { - // @@protoc_insertion_point(field_get:pg_query.CreatePolicyStmt.with_check) - return _internal_with_check(); -} -inline void CreatePolicyStmt::unsafe_arena_set_allocated_with_check( - ::pg_query::Node* with_check) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.with_check_); - } - _impl_.with_check_ = with_check; - if (with_check) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreatePolicyStmt.with_check) -} -inline ::pg_query::Node* CreatePolicyStmt::release_with_check() { - - ::pg_query::Node* temp = _impl_.with_check_; - _impl_.with_check_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CreatePolicyStmt::unsafe_arena_release_with_check() { - // @@protoc_insertion_point(field_release:pg_query.CreatePolicyStmt.with_check) - - ::pg_query::Node* temp = _impl_.with_check_; - _impl_.with_check_ = nullptr; - return temp; -} -inline ::pg_query::Node* CreatePolicyStmt::_internal_mutable_with_check() { - - if (_impl_.with_check_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.with_check_ = p; - } - return _impl_.with_check_; -} -inline ::pg_query::Node* CreatePolicyStmt::mutable_with_check() { - ::pg_query::Node* _msg = _internal_mutable_with_check(); - // @@protoc_insertion_point(field_mutable:pg_query.CreatePolicyStmt.with_check) - return _msg; -} -inline void CreatePolicyStmt::set_allocated_with_check(::pg_query::Node* with_check) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.with_check_; - } - if (with_check) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(with_check); - if (message_arena != submessage_arena) { - with_check = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, with_check, submessage_arena); - } - - } else { - - } - _impl_.with_check_ = with_check; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreatePolicyStmt.with_check) -} - -// ------------------------------------------------------------------- - -// AlterPolicyStmt - -// string policy_name = 1 [json_name = "policy_name"]; -inline void AlterPolicyStmt::clear_policy_name() { - _impl_.policy_name_.ClearToEmpty(); -} -inline const std::string& AlterPolicyStmt::policy_name() const { - // @@protoc_insertion_point(field_get:pg_query.AlterPolicyStmt.policy_name) - return _internal_policy_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterPolicyStmt::set_policy_name(ArgT0&& arg0, ArgT... args) { - - _impl_.policy_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterPolicyStmt.policy_name) -} -inline std::string* AlterPolicyStmt::mutable_policy_name() { - std::string* _s = _internal_mutable_policy_name(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterPolicyStmt.policy_name) - return _s; -} -inline const std::string& AlterPolicyStmt::_internal_policy_name() const { - return _impl_.policy_name_.Get(); -} -inline void AlterPolicyStmt::_internal_set_policy_name(const std::string& value) { - - _impl_.policy_name_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterPolicyStmt::_internal_mutable_policy_name() { - - return _impl_.policy_name_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterPolicyStmt::release_policy_name() { - // @@protoc_insertion_point(field_release:pg_query.AlterPolicyStmt.policy_name) - return _impl_.policy_name_.Release(); -} -inline void AlterPolicyStmt::set_allocated_policy_name(std::string* policy_name) { - if (policy_name != nullptr) { - - } else { - - } - _impl_.policy_name_.SetAllocated(policy_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.policy_name_.IsDefault()) { - _impl_.policy_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterPolicyStmt.policy_name) -} - -// .pg_query.RangeVar table = 2 [json_name = "table"]; -inline bool AlterPolicyStmt::_internal_has_table() const { - return this != internal_default_instance() && _impl_.table_ != nullptr; -} -inline bool AlterPolicyStmt::has_table() const { - return _internal_has_table(); -} -inline void AlterPolicyStmt::clear_table() { - if (GetArenaForAllocation() == nullptr && _impl_.table_ != nullptr) { - delete _impl_.table_; - } - _impl_.table_ = nullptr; -} -inline const ::pg_query::RangeVar& AlterPolicyStmt::_internal_table() const { - const ::pg_query::RangeVar* p = _impl_.table_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& AlterPolicyStmt::table() const { - // @@protoc_insertion_point(field_get:pg_query.AlterPolicyStmt.table) - return _internal_table(); -} -inline void AlterPolicyStmt::unsafe_arena_set_allocated_table( - ::pg_query::RangeVar* table) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.table_); - } - _impl_.table_ = table; - if (table) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterPolicyStmt.table) -} -inline ::pg_query::RangeVar* AlterPolicyStmt::release_table() { - - ::pg_query::RangeVar* temp = _impl_.table_; - _impl_.table_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* AlterPolicyStmt::unsafe_arena_release_table() { - // @@protoc_insertion_point(field_release:pg_query.AlterPolicyStmt.table) - - ::pg_query::RangeVar* temp = _impl_.table_; - _impl_.table_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* AlterPolicyStmt::_internal_mutable_table() { - - if (_impl_.table_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.table_ = p; - } - return _impl_.table_; -} -inline ::pg_query::RangeVar* AlterPolicyStmt::mutable_table() { - ::pg_query::RangeVar* _msg = _internal_mutable_table(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterPolicyStmt.table) - return _msg; -} -inline void AlterPolicyStmt::set_allocated_table(::pg_query::RangeVar* table) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.table_; - } - if (table) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(table); - if (message_arena != submessage_arena) { - table = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, table, submessage_arena); - } - - } else { - - } - _impl_.table_ = table; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterPolicyStmt.table) -} - -// repeated .pg_query.Node roles = 3 [json_name = "roles"]; -inline int AlterPolicyStmt::_internal_roles_size() const { - return _impl_.roles_.size(); -} -inline int AlterPolicyStmt::roles_size() const { - return _internal_roles_size(); -} -inline void AlterPolicyStmt::clear_roles() { - _impl_.roles_.Clear(); -} -inline ::pg_query::Node* AlterPolicyStmt::mutable_roles(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterPolicyStmt.roles) - return _impl_.roles_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterPolicyStmt::mutable_roles() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterPolicyStmt.roles) - return &_impl_.roles_; -} -inline const ::pg_query::Node& AlterPolicyStmt::_internal_roles(int index) const { - return _impl_.roles_.Get(index); -} -inline const ::pg_query::Node& AlterPolicyStmt::roles(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterPolicyStmt.roles) - return _internal_roles(index); -} -inline ::pg_query::Node* AlterPolicyStmt::_internal_add_roles() { - return _impl_.roles_.Add(); -} -inline ::pg_query::Node* AlterPolicyStmt::add_roles() { - ::pg_query::Node* _add = _internal_add_roles(); - // @@protoc_insertion_point(field_add:pg_query.AlterPolicyStmt.roles) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterPolicyStmt::roles() const { - // @@protoc_insertion_point(field_list:pg_query.AlterPolicyStmt.roles) - return _impl_.roles_; -} - -// .pg_query.Node qual = 4 [json_name = "qual"]; -inline bool AlterPolicyStmt::_internal_has_qual() const { - return this != internal_default_instance() && _impl_.qual_ != nullptr; -} -inline bool AlterPolicyStmt::has_qual() const { - return _internal_has_qual(); -} -inline void AlterPolicyStmt::clear_qual() { - if (GetArenaForAllocation() == nullptr && _impl_.qual_ != nullptr) { - delete _impl_.qual_; - } - _impl_.qual_ = nullptr; -} -inline const ::pg_query::Node& AlterPolicyStmt::_internal_qual() const { - const ::pg_query::Node* p = _impl_.qual_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& AlterPolicyStmt::qual() const { - // @@protoc_insertion_point(field_get:pg_query.AlterPolicyStmt.qual) - return _internal_qual(); -} -inline void AlterPolicyStmt::unsafe_arena_set_allocated_qual( - ::pg_query::Node* qual) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.qual_); - } - _impl_.qual_ = qual; - if (qual) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterPolicyStmt.qual) -} -inline ::pg_query::Node* AlterPolicyStmt::release_qual() { - - ::pg_query::Node* temp = _impl_.qual_; - _impl_.qual_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* AlterPolicyStmt::unsafe_arena_release_qual() { - // @@protoc_insertion_point(field_release:pg_query.AlterPolicyStmt.qual) - - ::pg_query::Node* temp = _impl_.qual_; - _impl_.qual_ = nullptr; - return temp; -} -inline ::pg_query::Node* AlterPolicyStmt::_internal_mutable_qual() { - - if (_impl_.qual_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.qual_ = p; - } - return _impl_.qual_; -} -inline ::pg_query::Node* AlterPolicyStmt::mutable_qual() { - ::pg_query::Node* _msg = _internal_mutable_qual(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterPolicyStmt.qual) - return _msg; -} -inline void AlterPolicyStmt::set_allocated_qual(::pg_query::Node* qual) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.qual_; - } - if (qual) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(qual); - if (message_arena != submessage_arena) { - qual = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, qual, submessage_arena); - } - - } else { - - } - _impl_.qual_ = qual; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterPolicyStmt.qual) -} - -// .pg_query.Node with_check = 5 [json_name = "with_check"]; -inline bool AlterPolicyStmt::_internal_has_with_check() const { - return this != internal_default_instance() && _impl_.with_check_ != nullptr; -} -inline bool AlterPolicyStmt::has_with_check() const { - return _internal_has_with_check(); -} -inline void AlterPolicyStmt::clear_with_check() { - if (GetArenaForAllocation() == nullptr && _impl_.with_check_ != nullptr) { - delete _impl_.with_check_; - } - _impl_.with_check_ = nullptr; -} -inline const ::pg_query::Node& AlterPolicyStmt::_internal_with_check() const { - const ::pg_query::Node* p = _impl_.with_check_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& AlterPolicyStmt::with_check() const { - // @@protoc_insertion_point(field_get:pg_query.AlterPolicyStmt.with_check) - return _internal_with_check(); -} -inline void AlterPolicyStmt::unsafe_arena_set_allocated_with_check( - ::pg_query::Node* with_check) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.with_check_); - } - _impl_.with_check_ = with_check; - if (with_check) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.AlterPolicyStmt.with_check) -} -inline ::pg_query::Node* AlterPolicyStmt::release_with_check() { - - ::pg_query::Node* temp = _impl_.with_check_; - _impl_.with_check_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* AlterPolicyStmt::unsafe_arena_release_with_check() { - // @@protoc_insertion_point(field_release:pg_query.AlterPolicyStmt.with_check) - - ::pg_query::Node* temp = _impl_.with_check_; - _impl_.with_check_ = nullptr; - return temp; -} -inline ::pg_query::Node* AlterPolicyStmt::_internal_mutable_with_check() { - - if (_impl_.with_check_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.with_check_ = p; - } - return _impl_.with_check_; -} -inline ::pg_query::Node* AlterPolicyStmt::mutable_with_check() { - ::pg_query::Node* _msg = _internal_mutable_with_check(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterPolicyStmt.with_check) - return _msg; -} -inline void AlterPolicyStmt::set_allocated_with_check(::pg_query::Node* with_check) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.with_check_; - } - if (with_check) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(with_check); - if (message_arena != submessage_arena) { - with_check = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, with_check, submessage_arena); - } - - } else { - - } - _impl_.with_check_ = with_check; - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterPolicyStmt.with_check) -} - -// ------------------------------------------------------------------- - -// CreateTransformStmt - -// bool replace = 1 [json_name = "replace"]; -inline void CreateTransformStmt::clear_replace() { - _impl_.replace_ = false; -} -inline bool CreateTransformStmt::_internal_replace() const { - return _impl_.replace_; -} -inline bool CreateTransformStmt::replace() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTransformStmt.replace) - return _internal_replace(); -} -inline void CreateTransformStmt::_internal_set_replace(bool value) { - - _impl_.replace_ = value; -} -inline void CreateTransformStmt::set_replace(bool value) { - _internal_set_replace(value); - // @@protoc_insertion_point(field_set:pg_query.CreateTransformStmt.replace) -} - -// .pg_query.TypeName type_name = 2 [json_name = "type_name"]; -inline bool CreateTransformStmt::_internal_has_type_name() const { - return this != internal_default_instance() && _impl_.type_name_ != nullptr; -} -inline bool CreateTransformStmt::has_type_name() const { - return _internal_has_type_name(); -} -inline void CreateTransformStmt::clear_type_name() { - if (GetArenaForAllocation() == nullptr && _impl_.type_name_ != nullptr) { - delete _impl_.type_name_; - } - _impl_.type_name_ = nullptr; -} -inline const ::pg_query::TypeName& CreateTransformStmt::_internal_type_name() const { - const ::pg_query::TypeName* p = _impl_.type_name_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_TypeName_default_instance_); -} -inline const ::pg_query::TypeName& CreateTransformStmt::type_name() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTransformStmt.type_name) - return _internal_type_name(); -} -inline void CreateTransformStmt::unsafe_arena_set_allocated_type_name( - ::pg_query::TypeName* type_name) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.type_name_); - } - _impl_.type_name_ = type_name; - if (type_name) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateTransformStmt.type_name) -} -inline ::pg_query::TypeName* CreateTransformStmt::release_type_name() { - - ::pg_query::TypeName* temp = _impl_.type_name_; - _impl_.type_name_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::TypeName* CreateTransformStmt::unsafe_arena_release_type_name() { - // @@protoc_insertion_point(field_release:pg_query.CreateTransformStmt.type_name) - - ::pg_query::TypeName* temp = _impl_.type_name_; - _impl_.type_name_ = nullptr; - return temp; -} -inline ::pg_query::TypeName* CreateTransformStmt::_internal_mutable_type_name() { - - if (_impl_.type_name_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::TypeName>(GetArenaForAllocation()); - _impl_.type_name_ = p; - } - return _impl_.type_name_; -} -inline ::pg_query::TypeName* CreateTransformStmt::mutable_type_name() { - ::pg_query::TypeName* _msg = _internal_mutable_type_name(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateTransformStmt.type_name) - return _msg; -} -inline void CreateTransformStmt::set_allocated_type_name(::pg_query::TypeName* type_name) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.type_name_; - } - if (type_name) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(type_name); - if (message_arena != submessage_arena) { - type_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, type_name, submessage_arena); - } - - } else { - - } - _impl_.type_name_ = type_name; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateTransformStmt.type_name) -} - -// string lang = 3 [json_name = "lang"]; -inline void CreateTransformStmt::clear_lang() { - _impl_.lang_.ClearToEmpty(); -} -inline const std::string& CreateTransformStmt::lang() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTransformStmt.lang) - return _internal_lang(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateTransformStmt::set_lang(ArgT0&& arg0, ArgT... args) { - - _impl_.lang_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateTransformStmt.lang) -} -inline std::string* CreateTransformStmt::mutable_lang() { - std::string* _s = _internal_mutable_lang(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateTransformStmt.lang) - return _s; -} -inline const std::string& CreateTransformStmt::_internal_lang() const { - return _impl_.lang_.Get(); -} -inline void CreateTransformStmt::_internal_set_lang(const std::string& value) { - - _impl_.lang_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateTransformStmt::_internal_mutable_lang() { - - return _impl_.lang_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateTransformStmt::release_lang() { - // @@protoc_insertion_point(field_release:pg_query.CreateTransformStmt.lang) - return _impl_.lang_.Release(); -} -inline void CreateTransformStmt::set_allocated_lang(std::string* lang) { - if (lang != nullptr) { - - } else { - - } - _impl_.lang_.SetAllocated(lang, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.lang_.IsDefault()) { - _impl_.lang_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateTransformStmt.lang) -} - -// .pg_query.ObjectWithArgs fromsql = 4 [json_name = "fromsql"]; -inline bool CreateTransformStmt::_internal_has_fromsql() const { - return this != internal_default_instance() && _impl_.fromsql_ != nullptr; -} -inline bool CreateTransformStmt::has_fromsql() const { - return _internal_has_fromsql(); -} -inline void CreateTransformStmt::clear_fromsql() { - if (GetArenaForAllocation() == nullptr && _impl_.fromsql_ != nullptr) { - delete _impl_.fromsql_; - } - _impl_.fromsql_ = nullptr; -} -inline const ::pg_query::ObjectWithArgs& CreateTransformStmt::_internal_fromsql() const { - const ::pg_query::ObjectWithArgs* p = _impl_.fromsql_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_ObjectWithArgs_default_instance_); -} -inline const ::pg_query::ObjectWithArgs& CreateTransformStmt::fromsql() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTransformStmt.fromsql) - return _internal_fromsql(); -} -inline void CreateTransformStmt::unsafe_arena_set_allocated_fromsql( - ::pg_query::ObjectWithArgs* fromsql) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.fromsql_); - } - _impl_.fromsql_ = fromsql; - if (fromsql) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateTransformStmt.fromsql) -} -inline ::pg_query::ObjectWithArgs* CreateTransformStmt::release_fromsql() { - - ::pg_query::ObjectWithArgs* temp = _impl_.fromsql_; - _impl_.fromsql_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::ObjectWithArgs* CreateTransformStmt::unsafe_arena_release_fromsql() { - // @@protoc_insertion_point(field_release:pg_query.CreateTransformStmt.fromsql) - - ::pg_query::ObjectWithArgs* temp = _impl_.fromsql_; - _impl_.fromsql_ = nullptr; - return temp; -} -inline ::pg_query::ObjectWithArgs* CreateTransformStmt::_internal_mutable_fromsql() { - - if (_impl_.fromsql_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::ObjectWithArgs>(GetArenaForAllocation()); - _impl_.fromsql_ = p; - } - return _impl_.fromsql_; -} -inline ::pg_query::ObjectWithArgs* CreateTransformStmt::mutable_fromsql() { - ::pg_query::ObjectWithArgs* _msg = _internal_mutable_fromsql(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateTransformStmt.fromsql) - return _msg; -} -inline void CreateTransformStmt::set_allocated_fromsql(::pg_query::ObjectWithArgs* fromsql) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.fromsql_; - } - if (fromsql) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(fromsql); - if (message_arena != submessage_arena) { - fromsql = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, fromsql, submessage_arena); - } - - } else { - - } - _impl_.fromsql_ = fromsql; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateTransformStmt.fromsql) -} - -// .pg_query.ObjectWithArgs tosql = 5 [json_name = "tosql"]; -inline bool CreateTransformStmt::_internal_has_tosql() const { - return this != internal_default_instance() && _impl_.tosql_ != nullptr; -} -inline bool CreateTransformStmt::has_tosql() const { - return _internal_has_tosql(); -} -inline void CreateTransformStmt::clear_tosql() { - if (GetArenaForAllocation() == nullptr && _impl_.tosql_ != nullptr) { - delete _impl_.tosql_; - } - _impl_.tosql_ = nullptr; -} -inline const ::pg_query::ObjectWithArgs& CreateTransformStmt::_internal_tosql() const { - const ::pg_query::ObjectWithArgs* p = _impl_.tosql_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_ObjectWithArgs_default_instance_); -} -inline const ::pg_query::ObjectWithArgs& CreateTransformStmt::tosql() const { - // @@protoc_insertion_point(field_get:pg_query.CreateTransformStmt.tosql) - return _internal_tosql(); -} -inline void CreateTransformStmt::unsafe_arena_set_allocated_tosql( - ::pg_query::ObjectWithArgs* tosql) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.tosql_); - } - _impl_.tosql_ = tosql; - if (tosql) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateTransformStmt.tosql) -} -inline ::pg_query::ObjectWithArgs* CreateTransformStmt::release_tosql() { - - ::pg_query::ObjectWithArgs* temp = _impl_.tosql_; - _impl_.tosql_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::ObjectWithArgs* CreateTransformStmt::unsafe_arena_release_tosql() { - // @@protoc_insertion_point(field_release:pg_query.CreateTransformStmt.tosql) - - ::pg_query::ObjectWithArgs* temp = _impl_.tosql_; - _impl_.tosql_ = nullptr; - return temp; -} -inline ::pg_query::ObjectWithArgs* CreateTransformStmt::_internal_mutable_tosql() { - - if (_impl_.tosql_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::ObjectWithArgs>(GetArenaForAllocation()); - _impl_.tosql_ = p; - } - return _impl_.tosql_; -} -inline ::pg_query::ObjectWithArgs* CreateTransformStmt::mutable_tosql() { - ::pg_query::ObjectWithArgs* _msg = _internal_mutable_tosql(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateTransformStmt.tosql) - return _msg; -} -inline void CreateTransformStmt::set_allocated_tosql(::pg_query::ObjectWithArgs* tosql) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.tosql_; - } - if (tosql) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(tosql); - if (message_arena != submessage_arena) { - tosql = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, tosql, submessage_arena); - } - - } else { - - } - _impl_.tosql_ = tosql; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateTransformStmt.tosql) -} - -// ------------------------------------------------------------------- - -// CreateAmStmt - -// string amname = 1 [json_name = "amname"]; -inline void CreateAmStmt::clear_amname() { - _impl_.amname_.ClearToEmpty(); -} -inline const std::string& CreateAmStmt::amname() const { - // @@protoc_insertion_point(field_get:pg_query.CreateAmStmt.amname) - return _internal_amname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateAmStmt::set_amname(ArgT0&& arg0, ArgT... args) { - - _impl_.amname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateAmStmt.amname) -} -inline std::string* CreateAmStmt::mutable_amname() { - std::string* _s = _internal_mutable_amname(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateAmStmt.amname) - return _s; -} -inline const std::string& CreateAmStmt::_internal_amname() const { - return _impl_.amname_.Get(); -} -inline void CreateAmStmt::_internal_set_amname(const std::string& value) { - - _impl_.amname_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateAmStmt::_internal_mutable_amname() { - - return _impl_.amname_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateAmStmt::release_amname() { - // @@protoc_insertion_point(field_release:pg_query.CreateAmStmt.amname) - return _impl_.amname_.Release(); -} -inline void CreateAmStmt::set_allocated_amname(std::string* amname) { - if (amname != nullptr) { - - } else { - - } - _impl_.amname_.SetAllocated(amname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.amname_.IsDefault()) { - _impl_.amname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateAmStmt.amname) -} - -// repeated .pg_query.Node handler_name = 2 [json_name = "handler_name"]; -inline int CreateAmStmt::_internal_handler_name_size() const { - return _impl_.handler_name_.size(); -} -inline int CreateAmStmt::handler_name_size() const { - return _internal_handler_name_size(); -} -inline void CreateAmStmt::clear_handler_name() { - _impl_.handler_name_.Clear(); -} -inline ::pg_query::Node* CreateAmStmt::mutable_handler_name(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateAmStmt.handler_name) - return _impl_.handler_name_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateAmStmt::mutable_handler_name() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateAmStmt.handler_name) - return &_impl_.handler_name_; -} -inline const ::pg_query::Node& CreateAmStmt::_internal_handler_name(int index) const { - return _impl_.handler_name_.Get(index); -} -inline const ::pg_query::Node& CreateAmStmt::handler_name(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateAmStmt.handler_name) - return _internal_handler_name(index); -} -inline ::pg_query::Node* CreateAmStmt::_internal_add_handler_name() { - return _impl_.handler_name_.Add(); -} -inline ::pg_query::Node* CreateAmStmt::add_handler_name() { - ::pg_query::Node* _add = _internal_add_handler_name(); - // @@protoc_insertion_point(field_add:pg_query.CreateAmStmt.handler_name) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateAmStmt::handler_name() const { - // @@protoc_insertion_point(field_list:pg_query.CreateAmStmt.handler_name) - return _impl_.handler_name_; -} - -// string amtype = 3 [json_name = "amtype"]; -inline void CreateAmStmt::clear_amtype() { - _impl_.amtype_.ClearToEmpty(); -} -inline const std::string& CreateAmStmt::amtype() const { - // @@protoc_insertion_point(field_get:pg_query.CreateAmStmt.amtype) - return _internal_amtype(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateAmStmt::set_amtype(ArgT0&& arg0, ArgT... args) { - - _impl_.amtype_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateAmStmt.amtype) -} -inline std::string* CreateAmStmt::mutable_amtype() { - std::string* _s = _internal_mutable_amtype(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateAmStmt.amtype) - return _s; -} -inline const std::string& CreateAmStmt::_internal_amtype() const { - return _impl_.amtype_.Get(); -} -inline void CreateAmStmt::_internal_set_amtype(const std::string& value) { - - _impl_.amtype_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateAmStmt::_internal_mutable_amtype() { - - return _impl_.amtype_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateAmStmt::release_amtype() { - // @@protoc_insertion_point(field_release:pg_query.CreateAmStmt.amtype) - return _impl_.amtype_.Release(); -} -inline void CreateAmStmt::set_allocated_amtype(std::string* amtype) { - if (amtype != nullptr) { - - } else { - - } - _impl_.amtype_.SetAllocated(amtype, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.amtype_.IsDefault()) { - _impl_.amtype_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateAmStmt.amtype) -} - -// ------------------------------------------------------------------- - -// CreatePublicationStmt - -// string pubname = 1 [json_name = "pubname"]; -inline void CreatePublicationStmt::clear_pubname() { - _impl_.pubname_.ClearToEmpty(); -} -inline const std::string& CreatePublicationStmt::pubname() const { - // @@protoc_insertion_point(field_get:pg_query.CreatePublicationStmt.pubname) - return _internal_pubname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreatePublicationStmt::set_pubname(ArgT0&& arg0, ArgT... args) { - - _impl_.pubname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreatePublicationStmt.pubname) -} -inline std::string* CreatePublicationStmt::mutable_pubname() { - std::string* _s = _internal_mutable_pubname(); - // @@protoc_insertion_point(field_mutable:pg_query.CreatePublicationStmt.pubname) - return _s; -} -inline const std::string& CreatePublicationStmt::_internal_pubname() const { - return _impl_.pubname_.Get(); -} -inline void CreatePublicationStmt::_internal_set_pubname(const std::string& value) { - - _impl_.pubname_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreatePublicationStmt::_internal_mutable_pubname() { - - return _impl_.pubname_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreatePublicationStmt::release_pubname() { - // @@protoc_insertion_point(field_release:pg_query.CreatePublicationStmt.pubname) - return _impl_.pubname_.Release(); -} -inline void CreatePublicationStmt::set_allocated_pubname(std::string* pubname) { - if (pubname != nullptr) { - - } else { - - } - _impl_.pubname_.SetAllocated(pubname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.pubname_.IsDefault()) { - _impl_.pubname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreatePublicationStmt.pubname) -} - -// repeated .pg_query.Node options = 2 [json_name = "options"]; -inline int CreatePublicationStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int CreatePublicationStmt::options_size() const { - return _internal_options_size(); -} -inline void CreatePublicationStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* CreatePublicationStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreatePublicationStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreatePublicationStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreatePublicationStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& CreatePublicationStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& CreatePublicationStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreatePublicationStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* CreatePublicationStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* CreatePublicationStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.CreatePublicationStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreatePublicationStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.CreatePublicationStmt.options) - return _impl_.options_; -} - -// repeated .pg_query.Node pubobjects = 3 [json_name = "pubobjects"]; -inline int CreatePublicationStmt::_internal_pubobjects_size() const { - return _impl_.pubobjects_.size(); -} -inline int CreatePublicationStmt::pubobjects_size() const { - return _internal_pubobjects_size(); -} -inline void CreatePublicationStmt::clear_pubobjects() { - _impl_.pubobjects_.Clear(); -} -inline ::pg_query::Node* CreatePublicationStmt::mutable_pubobjects(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreatePublicationStmt.pubobjects) - return _impl_.pubobjects_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreatePublicationStmt::mutable_pubobjects() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreatePublicationStmt.pubobjects) - return &_impl_.pubobjects_; -} -inline const ::pg_query::Node& CreatePublicationStmt::_internal_pubobjects(int index) const { - return _impl_.pubobjects_.Get(index); -} -inline const ::pg_query::Node& CreatePublicationStmt::pubobjects(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreatePublicationStmt.pubobjects) - return _internal_pubobjects(index); -} -inline ::pg_query::Node* CreatePublicationStmt::_internal_add_pubobjects() { - return _impl_.pubobjects_.Add(); -} -inline ::pg_query::Node* CreatePublicationStmt::add_pubobjects() { - ::pg_query::Node* _add = _internal_add_pubobjects(); - // @@protoc_insertion_point(field_add:pg_query.CreatePublicationStmt.pubobjects) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreatePublicationStmt::pubobjects() const { - // @@protoc_insertion_point(field_list:pg_query.CreatePublicationStmt.pubobjects) - return _impl_.pubobjects_; -} - -// bool for_all_tables = 4 [json_name = "for_all_tables"]; -inline void CreatePublicationStmt::clear_for_all_tables() { - _impl_.for_all_tables_ = false; -} -inline bool CreatePublicationStmt::_internal_for_all_tables() const { - return _impl_.for_all_tables_; -} -inline bool CreatePublicationStmt::for_all_tables() const { - // @@protoc_insertion_point(field_get:pg_query.CreatePublicationStmt.for_all_tables) - return _internal_for_all_tables(); -} -inline void CreatePublicationStmt::_internal_set_for_all_tables(bool value) { - - _impl_.for_all_tables_ = value; -} -inline void CreatePublicationStmt::set_for_all_tables(bool value) { - _internal_set_for_all_tables(value); - // @@protoc_insertion_point(field_set:pg_query.CreatePublicationStmt.for_all_tables) -} - -// ------------------------------------------------------------------- - -// AlterPublicationStmt - -// string pubname = 1 [json_name = "pubname"]; -inline void AlterPublicationStmt::clear_pubname() { - _impl_.pubname_.ClearToEmpty(); -} -inline const std::string& AlterPublicationStmt::pubname() const { - // @@protoc_insertion_point(field_get:pg_query.AlterPublicationStmt.pubname) - return _internal_pubname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterPublicationStmt::set_pubname(ArgT0&& arg0, ArgT... args) { - - _impl_.pubname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterPublicationStmt.pubname) -} -inline std::string* AlterPublicationStmt::mutable_pubname() { - std::string* _s = _internal_mutable_pubname(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterPublicationStmt.pubname) - return _s; -} -inline const std::string& AlterPublicationStmt::_internal_pubname() const { - return _impl_.pubname_.Get(); -} -inline void AlterPublicationStmt::_internal_set_pubname(const std::string& value) { - - _impl_.pubname_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterPublicationStmt::_internal_mutable_pubname() { - - return _impl_.pubname_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterPublicationStmt::release_pubname() { - // @@protoc_insertion_point(field_release:pg_query.AlterPublicationStmt.pubname) - return _impl_.pubname_.Release(); -} -inline void AlterPublicationStmt::set_allocated_pubname(std::string* pubname) { - if (pubname != nullptr) { - - } else { - - } - _impl_.pubname_.SetAllocated(pubname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.pubname_.IsDefault()) { - _impl_.pubname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterPublicationStmt.pubname) -} - -// repeated .pg_query.Node options = 2 [json_name = "options"]; -inline int AlterPublicationStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int AlterPublicationStmt::options_size() const { - return _internal_options_size(); -} -inline void AlterPublicationStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* AlterPublicationStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterPublicationStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterPublicationStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterPublicationStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& AlterPublicationStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& AlterPublicationStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterPublicationStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* AlterPublicationStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* AlterPublicationStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.AlterPublicationStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterPublicationStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.AlterPublicationStmt.options) - return _impl_.options_; -} - -// repeated .pg_query.Node pubobjects = 3 [json_name = "pubobjects"]; -inline int AlterPublicationStmt::_internal_pubobjects_size() const { - return _impl_.pubobjects_.size(); -} -inline int AlterPublicationStmt::pubobjects_size() const { - return _internal_pubobjects_size(); -} -inline void AlterPublicationStmt::clear_pubobjects() { - _impl_.pubobjects_.Clear(); -} -inline ::pg_query::Node* AlterPublicationStmt::mutable_pubobjects(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterPublicationStmt.pubobjects) - return _impl_.pubobjects_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterPublicationStmt::mutable_pubobjects() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterPublicationStmt.pubobjects) - return &_impl_.pubobjects_; -} -inline const ::pg_query::Node& AlterPublicationStmt::_internal_pubobjects(int index) const { - return _impl_.pubobjects_.Get(index); -} -inline const ::pg_query::Node& AlterPublicationStmt::pubobjects(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterPublicationStmt.pubobjects) - return _internal_pubobjects(index); -} -inline ::pg_query::Node* AlterPublicationStmt::_internal_add_pubobjects() { - return _impl_.pubobjects_.Add(); -} -inline ::pg_query::Node* AlterPublicationStmt::add_pubobjects() { - ::pg_query::Node* _add = _internal_add_pubobjects(); - // @@protoc_insertion_point(field_add:pg_query.AlterPublicationStmt.pubobjects) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterPublicationStmt::pubobjects() const { - // @@protoc_insertion_point(field_list:pg_query.AlterPublicationStmt.pubobjects) - return _impl_.pubobjects_; -} - -// bool for_all_tables = 4 [json_name = "for_all_tables"]; -inline void AlterPublicationStmt::clear_for_all_tables() { - _impl_.for_all_tables_ = false; -} -inline bool AlterPublicationStmt::_internal_for_all_tables() const { - return _impl_.for_all_tables_; -} -inline bool AlterPublicationStmt::for_all_tables() const { - // @@protoc_insertion_point(field_get:pg_query.AlterPublicationStmt.for_all_tables) - return _internal_for_all_tables(); -} -inline void AlterPublicationStmt::_internal_set_for_all_tables(bool value) { - - _impl_.for_all_tables_ = value; -} -inline void AlterPublicationStmt::set_for_all_tables(bool value) { - _internal_set_for_all_tables(value); - // @@protoc_insertion_point(field_set:pg_query.AlterPublicationStmt.for_all_tables) -} - -// .pg_query.AlterPublicationAction action = 5 [json_name = "action"]; -inline void AlterPublicationStmt::clear_action() { - _impl_.action_ = 0; -} -inline ::pg_query::AlterPublicationAction AlterPublicationStmt::_internal_action() const { - return static_cast< ::pg_query::AlterPublicationAction >(_impl_.action_); -} -inline ::pg_query::AlterPublicationAction AlterPublicationStmt::action() const { - // @@protoc_insertion_point(field_get:pg_query.AlterPublicationStmt.action) - return _internal_action(); -} -inline void AlterPublicationStmt::_internal_set_action(::pg_query::AlterPublicationAction value) { - - _impl_.action_ = value; -} -inline void AlterPublicationStmt::set_action(::pg_query::AlterPublicationAction value) { - _internal_set_action(value); - // @@protoc_insertion_point(field_set:pg_query.AlterPublicationStmt.action) -} - -// ------------------------------------------------------------------- - -// CreateSubscriptionStmt - -// string subname = 1 [json_name = "subname"]; -inline void CreateSubscriptionStmt::clear_subname() { - _impl_.subname_.ClearToEmpty(); -} -inline const std::string& CreateSubscriptionStmt::subname() const { - // @@protoc_insertion_point(field_get:pg_query.CreateSubscriptionStmt.subname) - return _internal_subname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateSubscriptionStmt::set_subname(ArgT0&& arg0, ArgT... args) { - - _impl_.subname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateSubscriptionStmt.subname) -} -inline std::string* CreateSubscriptionStmt::mutable_subname() { - std::string* _s = _internal_mutable_subname(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateSubscriptionStmt.subname) - return _s; -} -inline const std::string& CreateSubscriptionStmt::_internal_subname() const { - return _impl_.subname_.Get(); -} -inline void CreateSubscriptionStmt::_internal_set_subname(const std::string& value) { - - _impl_.subname_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateSubscriptionStmt::_internal_mutable_subname() { - - return _impl_.subname_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateSubscriptionStmt::release_subname() { - // @@protoc_insertion_point(field_release:pg_query.CreateSubscriptionStmt.subname) - return _impl_.subname_.Release(); -} -inline void CreateSubscriptionStmt::set_allocated_subname(std::string* subname) { - if (subname != nullptr) { - - } else { - - } - _impl_.subname_.SetAllocated(subname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.subname_.IsDefault()) { - _impl_.subname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateSubscriptionStmt.subname) -} - -// string conninfo = 2 [json_name = "conninfo"]; -inline void CreateSubscriptionStmt::clear_conninfo() { - _impl_.conninfo_.ClearToEmpty(); -} -inline const std::string& CreateSubscriptionStmt::conninfo() const { - // @@protoc_insertion_point(field_get:pg_query.CreateSubscriptionStmt.conninfo) - return _internal_conninfo(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateSubscriptionStmt::set_conninfo(ArgT0&& arg0, ArgT... args) { - - _impl_.conninfo_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateSubscriptionStmt.conninfo) -} -inline std::string* CreateSubscriptionStmt::mutable_conninfo() { - std::string* _s = _internal_mutable_conninfo(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateSubscriptionStmt.conninfo) - return _s; -} -inline const std::string& CreateSubscriptionStmt::_internal_conninfo() const { - return _impl_.conninfo_.Get(); -} -inline void CreateSubscriptionStmt::_internal_set_conninfo(const std::string& value) { - - _impl_.conninfo_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateSubscriptionStmt::_internal_mutable_conninfo() { - - return _impl_.conninfo_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateSubscriptionStmt::release_conninfo() { - // @@protoc_insertion_point(field_release:pg_query.CreateSubscriptionStmt.conninfo) - return _impl_.conninfo_.Release(); -} -inline void CreateSubscriptionStmt::set_allocated_conninfo(std::string* conninfo) { - if (conninfo != nullptr) { - - } else { - - } - _impl_.conninfo_.SetAllocated(conninfo, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.conninfo_.IsDefault()) { - _impl_.conninfo_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateSubscriptionStmt.conninfo) -} - -// repeated .pg_query.Node publication = 3 [json_name = "publication"]; -inline int CreateSubscriptionStmt::_internal_publication_size() const { - return _impl_.publication_.size(); -} -inline int CreateSubscriptionStmt::publication_size() const { - return _internal_publication_size(); -} -inline void CreateSubscriptionStmt::clear_publication() { - _impl_.publication_.Clear(); -} -inline ::pg_query::Node* CreateSubscriptionStmt::mutable_publication(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateSubscriptionStmt.publication) - return _impl_.publication_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateSubscriptionStmt::mutable_publication() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateSubscriptionStmt.publication) - return &_impl_.publication_; -} -inline const ::pg_query::Node& CreateSubscriptionStmt::_internal_publication(int index) const { - return _impl_.publication_.Get(index); -} -inline const ::pg_query::Node& CreateSubscriptionStmt::publication(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateSubscriptionStmt.publication) - return _internal_publication(index); -} -inline ::pg_query::Node* CreateSubscriptionStmt::_internal_add_publication() { - return _impl_.publication_.Add(); -} -inline ::pg_query::Node* CreateSubscriptionStmt::add_publication() { - ::pg_query::Node* _add = _internal_add_publication(); - // @@protoc_insertion_point(field_add:pg_query.CreateSubscriptionStmt.publication) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateSubscriptionStmt::publication() const { - // @@protoc_insertion_point(field_list:pg_query.CreateSubscriptionStmt.publication) - return _impl_.publication_; -} - -// repeated .pg_query.Node options = 4 [json_name = "options"]; -inline int CreateSubscriptionStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int CreateSubscriptionStmt::options_size() const { - return _internal_options_size(); -} -inline void CreateSubscriptionStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* CreateSubscriptionStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateSubscriptionStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateSubscriptionStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateSubscriptionStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& CreateSubscriptionStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& CreateSubscriptionStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateSubscriptionStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* CreateSubscriptionStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* CreateSubscriptionStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.CreateSubscriptionStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateSubscriptionStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.CreateSubscriptionStmt.options) - return _impl_.options_; -} - -// ------------------------------------------------------------------- - -// AlterSubscriptionStmt - -// .pg_query.AlterSubscriptionType kind = 1 [json_name = "kind"]; -inline void AlterSubscriptionStmt::clear_kind() { - _impl_.kind_ = 0; -} -inline ::pg_query::AlterSubscriptionType AlterSubscriptionStmt::_internal_kind() const { - return static_cast< ::pg_query::AlterSubscriptionType >(_impl_.kind_); -} -inline ::pg_query::AlterSubscriptionType AlterSubscriptionStmt::kind() const { - // @@protoc_insertion_point(field_get:pg_query.AlterSubscriptionStmt.kind) - return _internal_kind(); -} -inline void AlterSubscriptionStmt::_internal_set_kind(::pg_query::AlterSubscriptionType value) { - - _impl_.kind_ = value; -} -inline void AlterSubscriptionStmt::set_kind(::pg_query::AlterSubscriptionType value) { - _internal_set_kind(value); - // @@protoc_insertion_point(field_set:pg_query.AlterSubscriptionStmt.kind) -} - -// string subname = 2 [json_name = "subname"]; -inline void AlterSubscriptionStmt::clear_subname() { - _impl_.subname_.ClearToEmpty(); -} -inline const std::string& AlterSubscriptionStmt::subname() const { - // @@protoc_insertion_point(field_get:pg_query.AlterSubscriptionStmt.subname) - return _internal_subname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterSubscriptionStmt::set_subname(ArgT0&& arg0, ArgT... args) { - - _impl_.subname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterSubscriptionStmt.subname) -} -inline std::string* AlterSubscriptionStmt::mutable_subname() { - std::string* _s = _internal_mutable_subname(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterSubscriptionStmt.subname) - return _s; -} -inline const std::string& AlterSubscriptionStmt::_internal_subname() const { - return _impl_.subname_.Get(); -} -inline void AlterSubscriptionStmt::_internal_set_subname(const std::string& value) { - - _impl_.subname_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterSubscriptionStmt::_internal_mutable_subname() { - - return _impl_.subname_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterSubscriptionStmt::release_subname() { - // @@protoc_insertion_point(field_release:pg_query.AlterSubscriptionStmt.subname) - return _impl_.subname_.Release(); -} -inline void AlterSubscriptionStmt::set_allocated_subname(std::string* subname) { - if (subname != nullptr) { - - } else { - - } - _impl_.subname_.SetAllocated(subname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.subname_.IsDefault()) { - _impl_.subname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterSubscriptionStmt.subname) -} - -// string conninfo = 3 [json_name = "conninfo"]; -inline void AlterSubscriptionStmt::clear_conninfo() { - _impl_.conninfo_.ClearToEmpty(); -} -inline const std::string& AlterSubscriptionStmt::conninfo() const { - // @@protoc_insertion_point(field_get:pg_query.AlterSubscriptionStmt.conninfo) - return _internal_conninfo(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AlterSubscriptionStmt::set_conninfo(ArgT0&& arg0, ArgT... args) { - - _impl_.conninfo_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AlterSubscriptionStmt.conninfo) -} -inline std::string* AlterSubscriptionStmt::mutable_conninfo() { - std::string* _s = _internal_mutable_conninfo(); - // @@protoc_insertion_point(field_mutable:pg_query.AlterSubscriptionStmt.conninfo) - return _s; -} -inline const std::string& AlterSubscriptionStmt::_internal_conninfo() const { - return _impl_.conninfo_.Get(); -} -inline void AlterSubscriptionStmt::_internal_set_conninfo(const std::string& value) { - - _impl_.conninfo_.Set(value, GetArenaForAllocation()); -} -inline std::string* AlterSubscriptionStmt::_internal_mutable_conninfo() { - - return _impl_.conninfo_.Mutable(GetArenaForAllocation()); -} -inline std::string* AlterSubscriptionStmt::release_conninfo() { - // @@protoc_insertion_point(field_release:pg_query.AlterSubscriptionStmt.conninfo) - return _impl_.conninfo_.Release(); -} -inline void AlterSubscriptionStmt::set_allocated_conninfo(std::string* conninfo) { - if (conninfo != nullptr) { - - } else { - - } - _impl_.conninfo_.SetAllocated(conninfo, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.conninfo_.IsDefault()) { - _impl_.conninfo_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AlterSubscriptionStmt.conninfo) -} - -// repeated .pg_query.Node publication = 4 [json_name = "publication"]; -inline int AlterSubscriptionStmt::_internal_publication_size() const { - return _impl_.publication_.size(); -} -inline int AlterSubscriptionStmt::publication_size() const { - return _internal_publication_size(); -} -inline void AlterSubscriptionStmt::clear_publication() { - _impl_.publication_.Clear(); -} -inline ::pg_query::Node* AlterSubscriptionStmt::mutable_publication(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterSubscriptionStmt.publication) - return _impl_.publication_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterSubscriptionStmt::mutable_publication() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterSubscriptionStmt.publication) - return &_impl_.publication_; -} -inline const ::pg_query::Node& AlterSubscriptionStmt::_internal_publication(int index) const { - return _impl_.publication_.Get(index); -} -inline const ::pg_query::Node& AlterSubscriptionStmt::publication(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterSubscriptionStmt.publication) - return _internal_publication(index); -} -inline ::pg_query::Node* AlterSubscriptionStmt::_internal_add_publication() { - return _impl_.publication_.Add(); -} -inline ::pg_query::Node* AlterSubscriptionStmt::add_publication() { - ::pg_query::Node* _add = _internal_add_publication(); - // @@protoc_insertion_point(field_add:pg_query.AlterSubscriptionStmt.publication) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterSubscriptionStmt::publication() const { - // @@protoc_insertion_point(field_list:pg_query.AlterSubscriptionStmt.publication) - return _impl_.publication_; -} - -// repeated .pg_query.Node options = 5 [json_name = "options"]; -inline int AlterSubscriptionStmt::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int AlterSubscriptionStmt::options_size() const { - return _internal_options_size(); -} -inline void AlterSubscriptionStmt::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* AlterSubscriptionStmt::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterSubscriptionStmt.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterSubscriptionStmt::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterSubscriptionStmt.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& AlterSubscriptionStmt::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& AlterSubscriptionStmt::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterSubscriptionStmt.options) - return _internal_options(index); -} -inline ::pg_query::Node* AlterSubscriptionStmt::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* AlterSubscriptionStmt::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.AlterSubscriptionStmt.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterSubscriptionStmt::options() const { - // @@protoc_insertion_point(field_list:pg_query.AlterSubscriptionStmt.options) - return _impl_.options_; -} - -// ------------------------------------------------------------------- - -// DropSubscriptionStmt - -// string subname = 1 [json_name = "subname"]; -inline void DropSubscriptionStmt::clear_subname() { - _impl_.subname_.ClearToEmpty(); -} -inline const std::string& DropSubscriptionStmt::subname() const { - // @@protoc_insertion_point(field_get:pg_query.DropSubscriptionStmt.subname) - return _internal_subname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void DropSubscriptionStmt::set_subname(ArgT0&& arg0, ArgT... args) { - - _impl_.subname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.DropSubscriptionStmt.subname) -} -inline std::string* DropSubscriptionStmt::mutable_subname() { - std::string* _s = _internal_mutable_subname(); - // @@protoc_insertion_point(field_mutable:pg_query.DropSubscriptionStmt.subname) - return _s; -} -inline const std::string& DropSubscriptionStmt::_internal_subname() const { - return _impl_.subname_.Get(); -} -inline void DropSubscriptionStmt::_internal_set_subname(const std::string& value) { - - _impl_.subname_.Set(value, GetArenaForAllocation()); -} -inline std::string* DropSubscriptionStmt::_internal_mutable_subname() { - - return _impl_.subname_.Mutable(GetArenaForAllocation()); -} -inline std::string* DropSubscriptionStmt::release_subname() { - // @@protoc_insertion_point(field_release:pg_query.DropSubscriptionStmt.subname) - return _impl_.subname_.Release(); -} -inline void DropSubscriptionStmt::set_allocated_subname(std::string* subname) { - if (subname != nullptr) { - - } else { - - } - _impl_.subname_.SetAllocated(subname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.subname_.IsDefault()) { - _impl_.subname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.DropSubscriptionStmt.subname) -} - -// bool missing_ok = 2 [json_name = "missing_ok"]; -inline void DropSubscriptionStmt::clear_missing_ok() { - _impl_.missing_ok_ = false; -} -inline bool DropSubscriptionStmt::_internal_missing_ok() const { - return _impl_.missing_ok_; -} -inline bool DropSubscriptionStmt::missing_ok() const { - // @@protoc_insertion_point(field_get:pg_query.DropSubscriptionStmt.missing_ok) - return _internal_missing_ok(); -} -inline void DropSubscriptionStmt::_internal_set_missing_ok(bool value) { - - _impl_.missing_ok_ = value; -} -inline void DropSubscriptionStmt::set_missing_ok(bool value) { - _internal_set_missing_ok(value); - // @@protoc_insertion_point(field_set:pg_query.DropSubscriptionStmt.missing_ok) -} - -// .pg_query.DropBehavior behavior = 3 [json_name = "behavior"]; -inline void DropSubscriptionStmt::clear_behavior() { - _impl_.behavior_ = 0; -} -inline ::pg_query::DropBehavior DropSubscriptionStmt::_internal_behavior() const { - return static_cast< ::pg_query::DropBehavior >(_impl_.behavior_); -} -inline ::pg_query::DropBehavior DropSubscriptionStmt::behavior() const { - // @@protoc_insertion_point(field_get:pg_query.DropSubscriptionStmt.behavior) - return _internal_behavior(); -} -inline void DropSubscriptionStmt::_internal_set_behavior(::pg_query::DropBehavior value) { - - _impl_.behavior_ = value; -} -inline void DropSubscriptionStmt::set_behavior(::pg_query::DropBehavior value) { - _internal_set_behavior(value); - // @@protoc_insertion_point(field_set:pg_query.DropSubscriptionStmt.behavior) -} - -// ------------------------------------------------------------------- - -// CreateStatsStmt - -// repeated .pg_query.Node defnames = 1 [json_name = "defnames"]; -inline int CreateStatsStmt::_internal_defnames_size() const { - return _impl_.defnames_.size(); -} -inline int CreateStatsStmt::defnames_size() const { - return _internal_defnames_size(); -} -inline void CreateStatsStmt::clear_defnames() { - _impl_.defnames_.Clear(); -} -inline ::pg_query::Node* CreateStatsStmt::mutable_defnames(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateStatsStmt.defnames) - return _impl_.defnames_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateStatsStmt::mutable_defnames() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateStatsStmt.defnames) - return &_impl_.defnames_; -} -inline const ::pg_query::Node& CreateStatsStmt::_internal_defnames(int index) const { - return _impl_.defnames_.Get(index); -} -inline const ::pg_query::Node& CreateStatsStmt::defnames(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateStatsStmt.defnames) - return _internal_defnames(index); -} -inline ::pg_query::Node* CreateStatsStmt::_internal_add_defnames() { - return _impl_.defnames_.Add(); -} -inline ::pg_query::Node* CreateStatsStmt::add_defnames() { - ::pg_query::Node* _add = _internal_add_defnames(); - // @@protoc_insertion_point(field_add:pg_query.CreateStatsStmt.defnames) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateStatsStmt::defnames() const { - // @@protoc_insertion_point(field_list:pg_query.CreateStatsStmt.defnames) - return _impl_.defnames_; -} - -// repeated .pg_query.Node stat_types = 2 [json_name = "stat_types"]; -inline int CreateStatsStmt::_internal_stat_types_size() const { - return _impl_.stat_types_.size(); -} -inline int CreateStatsStmt::stat_types_size() const { - return _internal_stat_types_size(); -} -inline void CreateStatsStmt::clear_stat_types() { - _impl_.stat_types_.Clear(); -} -inline ::pg_query::Node* CreateStatsStmt::mutable_stat_types(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateStatsStmt.stat_types) - return _impl_.stat_types_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateStatsStmt::mutable_stat_types() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateStatsStmt.stat_types) - return &_impl_.stat_types_; -} -inline const ::pg_query::Node& CreateStatsStmt::_internal_stat_types(int index) const { - return _impl_.stat_types_.Get(index); -} -inline const ::pg_query::Node& CreateStatsStmt::stat_types(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateStatsStmt.stat_types) - return _internal_stat_types(index); -} -inline ::pg_query::Node* CreateStatsStmt::_internal_add_stat_types() { - return _impl_.stat_types_.Add(); -} -inline ::pg_query::Node* CreateStatsStmt::add_stat_types() { - ::pg_query::Node* _add = _internal_add_stat_types(); - // @@protoc_insertion_point(field_add:pg_query.CreateStatsStmt.stat_types) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateStatsStmt::stat_types() const { - // @@protoc_insertion_point(field_list:pg_query.CreateStatsStmt.stat_types) - return _impl_.stat_types_; -} - -// repeated .pg_query.Node exprs = 3 [json_name = "exprs"]; -inline int CreateStatsStmt::_internal_exprs_size() const { - return _impl_.exprs_.size(); -} -inline int CreateStatsStmt::exprs_size() const { - return _internal_exprs_size(); -} -inline void CreateStatsStmt::clear_exprs() { - _impl_.exprs_.Clear(); -} -inline ::pg_query::Node* CreateStatsStmt::mutable_exprs(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateStatsStmt.exprs) - return _impl_.exprs_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateStatsStmt::mutable_exprs() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateStatsStmt.exprs) - return &_impl_.exprs_; -} -inline const ::pg_query::Node& CreateStatsStmt::_internal_exprs(int index) const { - return _impl_.exprs_.Get(index); -} -inline const ::pg_query::Node& CreateStatsStmt::exprs(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateStatsStmt.exprs) - return _internal_exprs(index); -} -inline ::pg_query::Node* CreateStatsStmt::_internal_add_exprs() { - return _impl_.exprs_.Add(); -} -inline ::pg_query::Node* CreateStatsStmt::add_exprs() { - ::pg_query::Node* _add = _internal_add_exprs(); - // @@protoc_insertion_point(field_add:pg_query.CreateStatsStmt.exprs) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateStatsStmt::exprs() const { - // @@protoc_insertion_point(field_list:pg_query.CreateStatsStmt.exprs) - return _impl_.exprs_; -} - -// repeated .pg_query.Node relations = 4 [json_name = "relations"]; -inline int CreateStatsStmt::_internal_relations_size() const { - return _impl_.relations_.size(); -} -inline int CreateStatsStmt::relations_size() const { - return _internal_relations_size(); -} -inline void CreateStatsStmt::clear_relations() { - _impl_.relations_.Clear(); -} -inline ::pg_query::Node* CreateStatsStmt::mutable_relations(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateStatsStmt.relations) - return _impl_.relations_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateStatsStmt::mutable_relations() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateStatsStmt.relations) - return &_impl_.relations_; -} -inline const ::pg_query::Node& CreateStatsStmt::_internal_relations(int index) const { - return _impl_.relations_.Get(index); -} -inline const ::pg_query::Node& CreateStatsStmt::relations(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateStatsStmt.relations) - return _internal_relations(index); -} -inline ::pg_query::Node* CreateStatsStmt::_internal_add_relations() { - return _impl_.relations_.Add(); -} -inline ::pg_query::Node* CreateStatsStmt::add_relations() { - ::pg_query::Node* _add = _internal_add_relations(); - // @@protoc_insertion_point(field_add:pg_query.CreateStatsStmt.relations) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateStatsStmt::relations() const { - // @@protoc_insertion_point(field_list:pg_query.CreateStatsStmt.relations) - return _impl_.relations_; -} - -// string stxcomment = 5 [json_name = "stxcomment"]; -inline void CreateStatsStmt::clear_stxcomment() { - _impl_.stxcomment_.ClearToEmpty(); -} -inline const std::string& CreateStatsStmt::stxcomment() const { - // @@protoc_insertion_point(field_get:pg_query.CreateStatsStmt.stxcomment) - return _internal_stxcomment(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CreateStatsStmt::set_stxcomment(ArgT0&& arg0, ArgT... args) { - - _impl_.stxcomment_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CreateStatsStmt.stxcomment) -} -inline std::string* CreateStatsStmt::mutable_stxcomment() { - std::string* _s = _internal_mutable_stxcomment(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateStatsStmt.stxcomment) - return _s; -} -inline const std::string& CreateStatsStmt::_internal_stxcomment() const { - return _impl_.stxcomment_.Get(); -} -inline void CreateStatsStmt::_internal_set_stxcomment(const std::string& value) { - - _impl_.stxcomment_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateStatsStmt::_internal_mutable_stxcomment() { - - return _impl_.stxcomment_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateStatsStmt::release_stxcomment() { - // @@protoc_insertion_point(field_release:pg_query.CreateStatsStmt.stxcomment) - return _impl_.stxcomment_.Release(); -} -inline void CreateStatsStmt::set_allocated_stxcomment(std::string* stxcomment) { - if (stxcomment != nullptr) { - - } else { - - } - _impl_.stxcomment_.SetAllocated(stxcomment, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.stxcomment_.IsDefault()) { - _impl_.stxcomment_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateStatsStmt.stxcomment) -} - -// bool transformed = 6 [json_name = "transformed"]; -inline void CreateStatsStmt::clear_transformed() { - _impl_.transformed_ = false; -} -inline bool CreateStatsStmt::_internal_transformed() const { - return _impl_.transformed_; -} -inline bool CreateStatsStmt::transformed() const { - // @@protoc_insertion_point(field_get:pg_query.CreateStatsStmt.transformed) - return _internal_transformed(); -} -inline void CreateStatsStmt::_internal_set_transformed(bool value) { - - _impl_.transformed_ = value; -} -inline void CreateStatsStmt::set_transformed(bool value) { - _internal_set_transformed(value); - // @@protoc_insertion_point(field_set:pg_query.CreateStatsStmt.transformed) -} - -// bool if_not_exists = 7 [json_name = "if_not_exists"]; -inline void CreateStatsStmt::clear_if_not_exists() { - _impl_.if_not_exists_ = false; -} -inline bool CreateStatsStmt::_internal_if_not_exists() const { - return _impl_.if_not_exists_; -} -inline bool CreateStatsStmt::if_not_exists() const { - // @@protoc_insertion_point(field_get:pg_query.CreateStatsStmt.if_not_exists) - return _internal_if_not_exists(); -} -inline void CreateStatsStmt::_internal_set_if_not_exists(bool value) { - - _impl_.if_not_exists_ = value; -} -inline void CreateStatsStmt::set_if_not_exists(bool value) { - _internal_set_if_not_exists(value); - // @@protoc_insertion_point(field_set:pg_query.CreateStatsStmt.if_not_exists) -} - -// ------------------------------------------------------------------- - -// AlterCollationStmt - -// repeated .pg_query.Node collname = 1 [json_name = "collname"]; -inline int AlterCollationStmt::_internal_collname_size() const { - return _impl_.collname_.size(); -} -inline int AlterCollationStmt::collname_size() const { - return _internal_collname_size(); -} -inline void AlterCollationStmt::clear_collname() { - _impl_.collname_.Clear(); -} -inline ::pg_query::Node* AlterCollationStmt::mutable_collname(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterCollationStmt.collname) - return _impl_.collname_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterCollationStmt::mutable_collname() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterCollationStmt.collname) - return &_impl_.collname_; -} -inline const ::pg_query::Node& AlterCollationStmt::_internal_collname(int index) const { - return _impl_.collname_.Get(index); -} -inline const ::pg_query::Node& AlterCollationStmt::collname(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterCollationStmt.collname) - return _internal_collname(index); -} -inline ::pg_query::Node* AlterCollationStmt::_internal_add_collname() { - return _impl_.collname_.Add(); -} -inline ::pg_query::Node* AlterCollationStmt::add_collname() { - ::pg_query::Node* _add = _internal_add_collname(); - // @@protoc_insertion_point(field_add:pg_query.AlterCollationStmt.collname) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterCollationStmt::collname() const { - // @@protoc_insertion_point(field_list:pg_query.AlterCollationStmt.collname) - return _impl_.collname_; -} - -// ------------------------------------------------------------------- - -// CallStmt - -// .pg_query.FuncCall funccall = 1 [json_name = "funccall"]; -inline bool CallStmt::_internal_has_funccall() const { - return this != internal_default_instance() && _impl_.funccall_ != nullptr; -} -inline bool CallStmt::has_funccall() const { - return _internal_has_funccall(); -} -inline void CallStmt::clear_funccall() { - if (GetArenaForAllocation() == nullptr && _impl_.funccall_ != nullptr) { - delete _impl_.funccall_; - } - _impl_.funccall_ = nullptr; -} -inline const ::pg_query::FuncCall& CallStmt::_internal_funccall() const { - const ::pg_query::FuncCall* p = _impl_.funccall_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_FuncCall_default_instance_); -} -inline const ::pg_query::FuncCall& CallStmt::funccall() const { - // @@protoc_insertion_point(field_get:pg_query.CallStmt.funccall) - return _internal_funccall(); -} -inline void CallStmt::unsafe_arena_set_allocated_funccall( - ::pg_query::FuncCall* funccall) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.funccall_); - } - _impl_.funccall_ = funccall; - if (funccall) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CallStmt.funccall) -} -inline ::pg_query::FuncCall* CallStmt::release_funccall() { - - ::pg_query::FuncCall* temp = _impl_.funccall_; - _impl_.funccall_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::FuncCall* CallStmt::unsafe_arena_release_funccall() { - // @@protoc_insertion_point(field_release:pg_query.CallStmt.funccall) - - ::pg_query::FuncCall* temp = _impl_.funccall_; - _impl_.funccall_ = nullptr; - return temp; -} -inline ::pg_query::FuncCall* CallStmt::_internal_mutable_funccall() { - - if (_impl_.funccall_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::FuncCall>(GetArenaForAllocation()); - _impl_.funccall_ = p; - } - return _impl_.funccall_; -} -inline ::pg_query::FuncCall* CallStmt::mutable_funccall() { - ::pg_query::FuncCall* _msg = _internal_mutable_funccall(); - // @@protoc_insertion_point(field_mutable:pg_query.CallStmt.funccall) - return _msg; -} -inline void CallStmt::set_allocated_funccall(::pg_query::FuncCall* funccall) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.funccall_; - } - if (funccall) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(funccall); - if (message_arena != submessage_arena) { - funccall = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, funccall, submessage_arena); - } - - } else { - - } - _impl_.funccall_ = funccall; - // @@protoc_insertion_point(field_set_allocated:pg_query.CallStmt.funccall) -} - -// .pg_query.FuncExpr funcexpr = 2 [json_name = "funcexpr"]; -inline bool CallStmt::_internal_has_funcexpr() const { - return this != internal_default_instance() && _impl_.funcexpr_ != nullptr; -} -inline bool CallStmt::has_funcexpr() const { - return _internal_has_funcexpr(); -} -inline void CallStmt::clear_funcexpr() { - if (GetArenaForAllocation() == nullptr && _impl_.funcexpr_ != nullptr) { - delete _impl_.funcexpr_; - } - _impl_.funcexpr_ = nullptr; -} -inline const ::pg_query::FuncExpr& CallStmt::_internal_funcexpr() const { - const ::pg_query::FuncExpr* p = _impl_.funcexpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_FuncExpr_default_instance_); -} -inline const ::pg_query::FuncExpr& CallStmt::funcexpr() const { - // @@protoc_insertion_point(field_get:pg_query.CallStmt.funcexpr) - return _internal_funcexpr(); -} -inline void CallStmt::unsafe_arena_set_allocated_funcexpr( - ::pg_query::FuncExpr* funcexpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.funcexpr_); - } - _impl_.funcexpr_ = funcexpr; - if (funcexpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CallStmt.funcexpr) -} -inline ::pg_query::FuncExpr* CallStmt::release_funcexpr() { - - ::pg_query::FuncExpr* temp = _impl_.funcexpr_; - _impl_.funcexpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::FuncExpr* CallStmt::unsafe_arena_release_funcexpr() { - // @@protoc_insertion_point(field_release:pg_query.CallStmt.funcexpr) - - ::pg_query::FuncExpr* temp = _impl_.funcexpr_; - _impl_.funcexpr_ = nullptr; - return temp; -} -inline ::pg_query::FuncExpr* CallStmt::_internal_mutable_funcexpr() { - - if (_impl_.funcexpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::FuncExpr>(GetArenaForAllocation()); - _impl_.funcexpr_ = p; - } - return _impl_.funcexpr_; -} -inline ::pg_query::FuncExpr* CallStmt::mutable_funcexpr() { - ::pg_query::FuncExpr* _msg = _internal_mutable_funcexpr(); - // @@protoc_insertion_point(field_mutable:pg_query.CallStmt.funcexpr) - return _msg; -} -inline void CallStmt::set_allocated_funcexpr(::pg_query::FuncExpr* funcexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.funcexpr_; - } - if (funcexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(funcexpr); - if (message_arena != submessage_arena) { - funcexpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, funcexpr, submessage_arena); - } - - } else { - - } - _impl_.funcexpr_ = funcexpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.CallStmt.funcexpr) -} - -// repeated .pg_query.Node outargs = 3 [json_name = "outargs"]; -inline int CallStmt::_internal_outargs_size() const { - return _impl_.outargs_.size(); -} -inline int CallStmt::outargs_size() const { - return _internal_outargs_size(); -} -inline void CallStmt::clear_outargs() { - _impl_.outargs_.Clear(); -} -inline ::pg_query::Node* CallStmt::mutable_outargs(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CallStmt.outargs) - return _impl_.outargs_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CallStmt::mutable_outargs() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CallStmt.outargs) - return &_impl_.outargs_; -} -inline const ::pg_query::Node& CallStmt::_internal_outargs(int index) const { - return _impl_.outargs_.Get(index); -} -inline const ::pg_query::Node& CallStmt::outargs(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CallStmt.outargs) - return _internal_outargs(index); -} -inline ::pg_query::Node* CallStmt::_internal_add_outargs() { - return _impl_.outargs_.Add(); -} -inline ::pg_query::Node* CallStmt::add_outargs() { - ::pg_query::Node* _add = _internal_add_outargs(); - // @@protoc_insertion_point(field_add:pg_query.CallStmt.outargs) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CallStmt::outargs() const { - // @@protoc_insertion_point(field_list:pg_query.CallStmt.outargs) - return _impl_.outargs_; -} - -// ------------------------------------------------------------------- - -// AlterStatsStmt - -// repeated .pg_query.Node defnames = 1 [json_name = "defnames"]; -inline int AlterStatsStmt::_internal_defnames_size() const { - return _impl_.defnames_.size(); -} -inline int AlterStatsStmt::defnames_size() const { - return _internal_defnames_size(); -} -inline void AlterStatsStmt::clear_defnames() { - _impl_.defnames_.Clear(); -} -inline ::pg_query::Node* AlterStatsStmt::mutable_defnames(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AlterStatsStmt.defnames) - return _impl_.defnames_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AlterStatsStmt::mutable_defnames() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AlterStatsStmt.defnames) - return &_impl_.defnames_; -} -inline const ::pg_query::Node& AlterStatsStmt::_internal_defnames(int index) const { - return _impl_.defnames_.Get(index); -} -inline const ::pg_query::Node& AlterStatsStmt::defnames(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AlterStatsStmt.defnames) - return _internal_defnames(index); -} -inline ::pg_query::Node* AlterStatsStmt::_internal_add_defnames() { - return _impl_.defnames_.Add(); -} -inline ::pg_query::Node* AlterStatsStmt::add_defnames() { - ::pg_query::Node* _add = _internal_add_defnames(); - // @@protoc_insertion_point(field_add:pg_query.AlterStatsStmt.defnames) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AlterStatsStmt::defnames() const { - // @@protoc_insertion_point(field_list:pg_query.AlterStatsStmt.defnames) - return _impl_.defnames_; -} - -// int32 stxstattarget = 2 [json_name = "stxstattarget"]; -inline void AlterStatsStmt::clear_stxstattarget() { - _impl_.stxstattarget_ = 0; -} -inline int32_t AlterStatsStmt::_internal_stxstattarget() const { - return _impl_.stxstattarget_; -} -inline int32_t AlterStatsStmt::stxstattarget() const { - // @@protoc_insertion_point(field_get:pg_query.AlterStatsStmt.stxstattarget) - return _internal_stxstattarget(); -} -inline void AlterStatsStmt::_internal_set_stxstattarget(int32_t value) { - - _impl_.stxstattarget_ = value; -} -inline void AlterStatsStmt::set_stxstattarget(int32_t value) { - _internal_set_stxstattarget(value); - // @@protoc_insertion_point(field_set:pg_query.AlterStatsStmt.stxstattarget) -} - -// bool missing_ok = 3 [json_name = "missing_ok"]; -inline void AlterStatsStmt::clear_missing_ok() { - _impl_.missing_ok_ = false; -} -inline bool AlterStatsStmt::_internal_missing_ok() const { - return _impl_.missing_ok_; -} -inline bool AlterStatsStmt::missing_ok() const { - // @@protoc_insertion_point(field_get:pg_query.AlterStatsStmt.missing_ok) - return _internal_missing_ok(); -} -inline void AlterStatsStmt::_internal_set_missing_ok(bool value) { - - _impl_.missing_ok_ = value; -} -inline void AlterStatsStmt::set_missing_ok(bool value) { - _internal_set_missing_ok(value); - // @@protoc_insertion_point(field_set:pg_query.AlterStatsStmt.missing_ok) -} - -// ------------------------------------------------------------------- - -// A_Expr - -// .pg_query.A_Expr_Kind kind = 1 [json_name = "kind"]; -inline void A_Expr::clear_kind() { - _impl_.kind_ = 0; -} -inline ::pg_query::A_Expr_Kind A_Expr::_internal_kind() const { - return static_cast< ::pg_query::A_Expr_Kind >(_impl_.kind_); -} -inline ::pg_query::A_Expr_Kind A_Expr::kind() const { - // @@protoc_insertion_point(field_get:pg_query.A_Expr.kind) - return _internal_kind(); -} -inline void A_Expr::_internal_set_kind(::pg_query::A_Expr_Kind value) { - - _impl_.kind_ = value; -} -inline void A_Expr::set_kind(::pg_query::A_Expr_Kind value) { - _internal_set_kind(value); - // @@protoc_insertion_point(field_set:pg_query.A_Expr.kind) -} - -// repeated .pg_query.Node name = 2 [json_name = "name"]; -inline int A_Expr::_internal_name_size() const { - return _impl_.name_.size(); -} -inline int A_Expr::name_size() const { - return _internal_name_size(); -} -inline void A_Expr::clear_name() { - _impl_.name_.Clear(); -} -inline ::pg_query::Node* A_Expr::mutable_name(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.A_Expr.name) - return _impl_.name_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -A_Expr::mutable_name() { - // @@protoc_insertion_point(field_mutable_list:pg_query.A_Expr.name) - return &_impl_.name_; -} -inline const ::pg_query::Node& A_Expr::_internal_name(int index) const { - return _impl_.name_.Get(index); -} -inline const ::pg_query::Node& A_Expr::name(int index) const { - // @@protoc_insertion_point(field_get:pg_query.A_Expr.name) - return _internal_name(index); -} -inline ::pg_query::Node* A_Expr::_internal_add_name() { - return _impl_.name_.Add(); -} -inline ::pg_query::Node* A_Expr::add_name() { - ::pg_query::Node* _add = _internal_add_name(); - // @@protoc_insertion_point(field_add:pg_query.A_Expr.name) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -A_Expr::name() const { - // @@protoc_insertion_point(field_list:pg_query.A_Expr.name) - return _impl_.name_; -} - -// .pg_query.Node lexpr = 3 [json_name = "lexpr"]; -inline bool A_Expr::_internal_has_lexpr() const { - return this != internal_default_instance() && _impl_.lexpr_ != nullptr; -} -inline bool A_Expr::has_lexpr() const { - return _internal_has_lexpr(); -} -inline void A_Expr::clear_lexpr() { - if (GetArenaForAllocation() == nullptr && _impl_.lexpr_ != nullptr) { - delete _impl_.lexpr_; - } - _impl_.lexpr_ = nullptr; -} -inline const ::pg_query::Node& A_Expr::_internal_lexpr() const { - const ::pg_query::Node* p = _impl_.lexpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& A_Expr::lexpr() const { - // @@protoc_insertion_point(field_get:pg_query.A_Expr.lexpr) - return _internal_lexpr(); -} -inline void A_Expr::unsafe_arena_set_allocated_lexpr( - ::pg_query::Node* lexpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.lexpr_); - } - _impl_.lexpr_ = lexpr; - if (lexpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.A_Expr.lexpr) -} -inline ::pg_query::Node* A_Expr::release_lexpr() { - - ::pg_query::Node* temp = _impl_.lexpr_; - _impl_.lexpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* A_Expr::unsafe_arena_release_lexpr() { - // @@protoc_insertion_point(field_release:pg_query.A_Expr.lexpr) - - ::pg_query::Node* temp = _impl_.lexpr_; - _impl_.lexpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* A_Expr::_internal_mutable_lexpr() { - - if (_impl_.lexpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.lexpr_ = p; - } - return _impl_.lexpr_; -} -inline ::pg_query::Node* A_Expr::mutable_lexpr() { - ::pg_query::Node* _msg = _internal_mutable_lexpr(); - // @@protoc_insertion_point(field_mutable:pg_query.A_Expr.lexpr) - return _msg; -} -inline void A_Expr::set_allocated_lexpr(::pg_query::Node* lexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.lexpr_; - } - if (lexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(lexpr); - if (message_arena != submessage_arena) { - lexpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, lexpr, submessage_arena); - } - - } else { - - } - _impl_.lexpr_ = lexpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.A_Expr.lexpr) -} - -// .pg_query.Node rexpr = 4 [json_name = "rexpr"]; -inline bool A_Expr::_internal_has_rexpr() const { - return this != internal_default_instance() && _impl_.rexpr_ != nullptr; -} -inline bool A_Expr::has_rexpr() const { - return _internal_has_rexpr(); -} -inline void A_Expr::clear_rexpr() { - if (GetArenaForAllocation() == nullptr && _impl_.rexpr_ != nullptr) { - delete _impl_.rexpr_; - } - _impl_.rexpr_ = nullptr; -} -inline const ::pg_query::Node& A_Expr::_internal_rexpr() const { - const ::pg_query::Node* p = _impl_.rexpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& A_Expr::rexpr() const { - // @@protoc_insertion_point(field_get:pg_query.A_Expr.rexpr) - return _internal_rexpr(); -} -inline void A_Expr::unsafe_arena_set_allocated_rexpr( - ::pg_query::Node* rexpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.rexpr_); - } - _impl_.rexpr_ = rexpr; - if (rexpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.A_Expr.rexpr) -} -inline ::pg_query::Node* A_Expr::release_rexpr() { - - ::pg_query::Node* temp = _impl_.rexpr_; - _impl_.rexpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* A_Expr::unsafe_arena_release_rexpr() { - // @@protoc_insertion_point(field_release:pg_query.A_Expr.rexpr) - - ::pg_query::Node* temp = _impl_.rexpr_; - _impl_.rexpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* A_Expr::_internal_mutable_rexpr() { - - if (_impl_.rexpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.rexpr_ = p; - } - return _impl_.rexpr_; -} -inline ::pg_query::Node* A_Expr::mutable_rexpr() { - ::pg_query::Node* _msg = _internal_mutable_rexpr(); - // @@protoc_insertion_point(field_mutable:pg_query.A_Expr.rexpr) - return _msg; -} -inline void A_Expr::set_allocated_rexpr(::pg_query::Node* rexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.rexpr_; - } - if (rexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(rexpr); - if (message_arena != submessage_arena) { - rexpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, rexpr, submessage_arena); - } - - } else { - - } - _impl_.rexpr_ = rexpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.A_Expr.rexpr) -} - -// int32 location = 5 [json_name = "location"]; -inline void A_Expr::clear_location() { - _impl_.location_ = 0; -} -inline int32_t A_Expr::_internal_location() const { - return _impl_.location_; -} -inline int32_t A_Expr::location() const { - // @@protoc_insertion_point(field_get:pg_query.A_Expr.location) - return _internal_location(); -} -inline void A_Expr::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void A_Expr::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.A_Expr.location) -} - -// ------------------------------------------------------------------- - -// ColumnRef - -// repeated .pg_query.Node fields = 1 [json_name = "fields"]; -inline int ColumnRef::_internal_fields_size() const { - return _impl_.fields_.size(); -} -inline int ColumnRef::fields_size() const { - return _internal_fields_size(); -} -inline void ColumnRef::clear_fields() { - _impl_.fields_.Clear(); -} -inline ::pg_query::Node* ColumnRef::mutable_fields(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.ColumnRef.fields) - return _impl_.fields_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -ColumnRef::mutable_fields() { - // @@protoc_insertion_point(field_mutable_list:pg_query.ColumnRef.fields) - return &_impl_.fields_; -} -inline const ::pg_query::Node& ColumnRef::_internal_fields(int index) const { - return _impl_.fields_.Get(index); -} -inline const ::pg_query::Node& ColumnRef::fields(int index) const { - // @@protoc_insertion_point(field_get:pg_query.ColumnRef.fields) - return _internal_fields(index); -} -inline ::pg_query::Node* ColumnRef::_internal_add_fields() { - return _impl_.fields_.Add(); -} -inline ::pg_query::Node* ColumnRef::add_fields() { - ::pg_query::Node* _add = _internal_add_fields(); - // @@protoc_insertion_point(field_add:pg_query.ColumnRef.fields) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -ColumnRef::fields() const { - // @@protoc_insertion_point(field_list:pg_query.ColumnRef.fields) - return _impl_.fields_; -} - -// int32 location = 2 [json_name = "location"]; -inline void ColumnRef::clear_location() { - _impl_.location_ = 0; -} -inline int32_t ColumnRef::_internal_location() const { - return _impl_.location_; -} -inline int32_t ColumnRef::location() const { - // @@protoc_insertion_point(field_get:pg_query.ColumnRef.location) - return _internal_location(); -} -inline void ColumnRef::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void ColumnRef::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.ColumnRef.location) -} - -// ------------------------------------------------------------------- - -// ParamRef - -// int32 number = 1 [json_name = "number"]; -inline void ParamRef::clear_number() { - _impl_.number_ = 0; -} -inline int32_t ParamRef::_internal_number() const { - return _impl_.number_; -} -inline int32_t ParamRef::number() const { - // @@protoc_insertion_point(field_get:pg_query.ParamRef.number) - return _internal_number(); -} -inline void ParamRef::_internal_set_number(int32_t value) { - - _impl_.number_ = value; -} -inline void ParamRef::set_number(int32_t value) { - _internal_set_number(value); - // @@protoc_insertion_point(field_set:pg_query.ParamRef.number) -} - -// int32 location = 2 [json_name = "location"]; -inline void ParamRef::clear_location() { - _impl_.location_ = 0; -} -inline int32_t ParamRef::_internal_location() const { - return _impl_.location_; -} -inline int32_t ParamRef::location() const { - // @@protoc_insertion_point(field_get:pg_query.ParamRef.location) - return _internal_location(); -} -inline void ParamRef::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void ParamRef::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.ParamRef.location) -} - -// ------------------------------------------------------------------- - -// FuncCall - -// repeated .pg_query.Node funcname = 1 [json_name = "funcname"]; -inline int FuncCall::_internal_funcname_size() const { - return _impl_.funcname_.size(); -} -inline int FuncCall::funcname_size() const { - return _internal_funcname_size(); -} -inline void FuncCall::clear_funcname() { - _impl_.funcname_.Clear(); -} -inline ::pg_query::Node* FuncCall::mutable_funcname(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.FuncCall.funcname) - return _impl_.funcname_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -FuncCall::mutable_funcname() { - // @@protoc_insertion_point(field_mutable_list:pg_query.FuncCall.funcname) - return &_impl_.funcname_; -} -inline const ::pg_query::Node& FuncCall::_internal_funcname(int index) const { - return _impl_.funcname_.Get(index); -} -inline const ::pg_query::Node& FuncCall::funcname(int index) const { - // @@protoc_insertion_point(field_get:pg_query.FuncCall.funcname) - return _internal_funcname(index); -} -inline ::pg_query::Node* FuncCall::_internal_add_funcname() { - return _impl_.funcname_.Add(); -} -inline ::pg_query::Node* FuncCall::add_funcname() { - ::pg_query::Node* _add = _internal_add_funcname(); - // @@protoc_insertion_point(field_add:pg_query.FuncCall.funcname) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -FuncCall::funcname() const { - // @@protoc_insertion_point(field_list:pg_query.FuncCall.funcname) - return _impl_.funcname_; -} - -// repeated .pg_query.Node args = 2 [json_name = "args"]; -inline int FuncCall::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int FuncCall::args_size() const { - return _internal_args_size(); -} -inline void FuncCall::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* FuncCall::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.FuncCall.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -FuncCall::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.FuncCall.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& FuncCall::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& FuncCall::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.FuncCall.args) - return _internal_args(index); -} -inline ::pg_query::Node* FuncCall::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* FuncCall::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.FuncCall.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -FuncCall::args() const { - // @@protoc_insertion_point(field_list:pg_query.FuncCall.args) - return _impl_.args_; -} - -// repeated .pg_query.Node agg_order = 3 [json_name = "agg_order"]; -inline int FuncCall::_internal_agg_order_size() const { - return _impl_.agg_order_.size(); -} -inline int FuncCall::agg_order_size() const { - return _internal_agg_order_size(); -} -inline void FuncCall::clear_agg_order() { - _impl_.agg_order_.Clear(); -} -inline ::pg_query::Node* FuncCall::mutable_agg_order(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.FuncCall.agg_order) - return _impl_.agg_order_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -FuncCall::mutable_agg_order() { - // @@protoc_insertion_point(field_mutable_list:pg_query.FuncCall.agg_order) - return &_impl_.agg_order_; -} -inline const ::pg_query::Node& FuncCall::_internal_agg_order(int index) const { - return _impl_.agg_order_.Get(index); -} -inline const ::pg_query::Node& FuncCall::agg_order(int index) const { - // @@protoc_insertion_point(field_get:pg_query.FuncCall.agg_order) - return _internal_agg_order(index); -} -inline ::pg_query::Node* FuncCall::_internal_add_agg_order() { - return _impl_.agg_order_.Add(); -} -inline ::pg_query::Node* FuncCall::add_agg_order() { - ::pg_query::Node* _add = _internal_add_agg_order(); - // @@protoc_insertion_point(field_add:pg_query.FuncCall.agg_order) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -FuncCall::agg_order() const { - // @@protoc_insertion_point(field_list:pg_query.FuncCall.agg_order) - return _impl_.agg_order_; -} - -// .pg_query.Node agg_filter = 4 [json_name = "agg_filter"]; -inline bool FuncCall::_internal_has_agg_filter() const { - return this != internal_default_instance() && _impl_.agg_filter_ != nullptr; -} -inline bool FuncCall::has_agg_filter() const { - return _internal_has_agg_filter(); -} -inline void FuncCall::clear_agg_filter() { - if (GetArenaForAllocation() == nullptr && _impl_.agg_filter_ != nullptr) { - delete _impl_.agg_filter_; - } - _impl_.agg_filter_ = nullptr; -} -inline const ::pg_query::Node& FuncCall::_internal_agg_filter() const { - const ::pg_query::Node* p = _impl_.agg_filter_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& FuncCall::agg_filter() const { - // @@protoc_insertion_point(field_get:pg_query.FuncCall.agg_filter) - return _internal_agg_filter(); -} -inline void FuncCall::unsafe_arena_set_allocated_agg_filter( - ::pg_query::Node* agg_filter) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.agg_filter_); - } - _impl_.agg_filter_ = agg_filter; - if (agg_filter) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.FuncCall.agg_filter) -} -inline ::pg_query::Node* FuncCall::release_agg_filter() { - - ::pg_query::Node* temp = _impl_.agg_filter_; - _impl_.agg_filter_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* FuncCall::unsafe_arena_release_agg_filter() { - // @@protoc_insertion_point(field_release:pg_query.FuncCall.agg_filter) - - ::pg_query::Node* temp = _impl_.agg_filter_; - _impl_.agg_filter_ = nullptr; - return temp; -} -inline ::pg_query::Node* FuncCall::_internal_mutable_agg_filter() { - - if (_impl_.agg_filter_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.agg_filter_ = p; - } - return _impl_.agg_filter_; -} -inline ::pg_query::Node* FuncCall::mutable_agg_filter() { - ::pg_query::Node* _msg = _internal_mutable_agg_filter(); - // @@protoc_insertion_point(field_mutable:pg_query.FuncCall.agg_filter) - return _msg; -} -inline void FuncCall::set_allocated_agg_filter(::pg_query::Node* agg_filter) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.agg_filter_; - } - if (agg_filter) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(agg_filter); - if (message_arena != submessage_arena) { - agg_filter = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, agg_filter, submessage_arena); - } - - } else { - - } - _impl_.agg_filter_ = agg_filter; - // @@protoc_insertion_point(field_set_allocated:pg_query.FuncCall.agg_filter) -} - -// .pg_query.WindowDef over = 5 [json_name = "over"]; -inline bool FuncCall::_internal_has_over() const { - return this != internal_default_instance() && _impl_.over_ != nullptr; -} -inline bool FuncCall::has_over() const { - return _internal_has_over(); -} -inline void FuncCall::clear_over() { - if (GetArenaForAllocation() == nullptr && _impl_.over_ != nullptr) { - delete _impl_.over_; - } - _impl_.over_ = nullptr; -} -inline const ::pg_query::WindowDef& FuncCall::_internal_over() const { - const ::pg_query::WindowDef* p = _impl_.over_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_WindowDef_default_instance_); -} -inline const ::pg_query::WindowDef& FuncCall::over() const { - // @@protoc_insertion_point(field_get:pg_query.FuncCall.over) - return _internal_over(); -} -inline void FuncCall::unsafe_arena_set_allocated_over( - ::pg_query::WindowDef* over) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.over_); - } - _impl_.over_ = over; - if (over) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.FuncCall.over) -} -inline ::pg_query::WindowDef* FuncCall::release_over() { - - ::pg_query::WindowDef* temp = _impl_.over_; - _impl_.over_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::WindowDef* FuncCall::unsafe_arena_release_over() { - // @@protoc_insertion_point(field_release:pg_query.FuncCall.over) - - ::pg_query::WindowDef* temp = _impl_.over_; - _impl_.over_ = nullptr; - return temp; -} -inline ::pg_query::WindowDef* FuncCall::_internal_mutable_over() { - - if (_impl_.over_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::WindowDef>(GetArenaForAllocation()); - _impl_.over_ = p; - } - return _impl_.over_; -} -inline ::pg_query::WindowDef* FuncCall::mutable_over() { - ::pg_query::WindowDef* _msg = _internal_mutable_over(); - // @@protoc_insertion_point(field_mutable:pg_query.FuncCall.over) - return _msg; -} -inline void FuncCall::set_allocated_over(::pg_query::WindowDef* over) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.over_; - } - if (over) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(over); - if (message_arena != submessage_arena) { - over = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, over, submessage_arena); - } - - } else { - - } - _impl_.over_ = over; - // @@protoc_insertion_point(field_set_allocated:pg_query.FuncCall.over) -} - -// bool agg_within_group = 6 [json_name = "agg_within_group"]; -inline void FuncCall::clear_agg_within_group() { - _impl_.agg_within_group_ = false; -} -inline bool FuncCall::_internal_agg_within_group() const { - return _impl_.agg_within_group_; -} -inline bool FuncCall::agg_within_group() const { - // @@protoc_insertion_point(field_get:pg_query.FuncCall.agg_within_group) - return _internal_agg_within_group(); -} -inline void FuncCall::_internal_set_agg_within_group(bool value) { - - _impl_.agg_within_group_ = value; -} -inline void FuncCall::set_agg_within_group(bool value) { - _internal_set_agg_within_group(value); - // @@protoc_insertion_point(field_set:pg_query.FuncCall.agg_within_group) -} - -// bool agg_star = 7 [json_name = "agg_star"]; -inline void FuncCall::clear_agg_star() { - _impl_.agg_star_ = false; -} -inline bool FuncCall::_internal_agg_star() const { - return _impl_.agg_star_; -} -inline bool FuncCall::agg_star() const { - // @@protoc_insertion_point(field_get:pg_query.FuncCall.agg_star) - return _internal_agg_star(); -} -inline void FuncCall::_internal_set_agg_star(bool value) { - - _impl_.agg_star_ = value; -} -inline void FuncCall::set_agg_star(bool value) { - _internal_set_agg_star(value); - // @@protoc_insertion_point(field_set:pg_query.FuncCall.agg_star) -} - -// bool agg_distinct = 8 [json_name = "agg_distinct"]; -inline void FuncCall::clear_agg_distinct() { - _impl_.agg_distinct_ = false; -} -inline bool FuncCall::_internal_agg_distinct() const { - return _impl_.agg_distinct_; -} -inline bool FuncCall::agg_distinct() const { - // @@protoc_insertion_point(field_get:pg_query.FuncCall.agg_distinct) - return _internal_agg_distinct(); -} -inline void FuncCall::_internal_set_agg_distinct(bool value) { - - _impl_.agg_distinct_ = value; -} -inline void FuncCall::set_agg_distinct(bool value) { - _internal_set_agg_distinct(value); - // @@protoc_insertion_point(field_set:pg_query.FuncCall.agg_distinct) -} - -// bool func_variadic = 9 [json_name = "func_variadic"]; -inline void FuncCall::clear_func_variadic() { - _impl_.func_variadic_ = false; -} -inline bool FuncCall::_internal_func_variadic() const { - return _impl_.func_variadic_; -} -inline bool FuncCall::func_variadic() const { - // @@protoc_insertion_point(field_get:pg_query.FuncCall.func_variadic) - return _internal_func_variadic(); -} -inline void FuncCall::_internal_set_func_variadic(bool value) { - - _impl_.func_variadic_ = value; -} -inline void FuncCall::set_func_variadic(bool value) { - _internal_set_func_variadic(value); - // @@protoc_insertion_point(field_set:pg_query.FuncCall.func_variadic) -} - -// .pg_query.CoercionForm funcformat = 10 [json_name = "funcformat"]; -inline void FuncCall::clear_funcformat() { - _impl_.funcformat_ = 0; -} -inline ::pg_query::CoercionForm FuncCall::_internal_funcformat() const { - return static_cast< ::pg_query::CoercionForm >(_impl_.funcformat_); -} -inline ::pg_query::CoercionForm FuncCall::funcformat() const { - // @@protoc_insertion_point(field_get:pg_query.FuncCall.funcformat) - return _internal_funcformat(); -} -inline void FuncCall::_internal_set_funcformat(::pg_query::CoercionForm value) { - - _impl_.funcformat_ = value; -} -inline void FuncCall::set_funcformat(::pg_query::CoercionForm value) { - _internal_set_funcformat(value); - // @@protoc_insertion_point(field_set:pg_query.FuncCall.funcformat) -} - -// int32 location = 11 [json_name = "location"]; -inline void FuncCall::clear_location() { - _impl_.location_ = 0; -} -inline int32_t FuncCall::_internal_location() const { - return _impl_.location_; -} -inline int32_t FuncCall::location() const { - // @@protoc_insertion_point(field_get:pg_query.FuncCall.location) - return _internal_location(); -} -inline void FuncCall::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void FuncCall::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.FuncCall.location) -} - -// ------------------------------------------------------------------- - -// A_Star - -// ------------------------------------------------------------------- - -// A_Indices - -// bool is_slice = 1 [json_name = "is_slice"]; -inline void A_Indices::clear_is_slice() { - _impl_.is_slice_ = false; -} -inline bool A_Indices::_internal_is_slice() const { - return _impl_.is_slice_; -} -inline bool A_Indices::is_slice() const { - // @@protoc_insertion_point(field_get:pg_query.A_Indices.is_slice) - return _internal_is_slice(); -} -inline void A_Indices::_internal_set_is_slice(bool value) { - - _impl_.is_slice_ = value; -} -inline void A_Indices::set_is_slice(bool value) { - _internal_set_is_slice(value); - // @@protoc_insertion_point(field_set:pg_query.A_Indices.is_slice) -} - -// .pg_query.Node lidx = 2 [json_name = "lidx"]; -inline bool A_Indices::_internal_has_lidx() const { - return this != internal_default_instance() && _impl_.lidx_ != nullptr; -} -inline bool A_Indices::has_lidx() const { - return _internal_has_lidx(); -} -inline void A_Indices::clear_lidx() { - if (GetArenaForAllocation() == nullptr && _impl_.lidx_ != nullptr) { - delete _impl_.lidx_; - } - _impl_.lidx_ = nullptr; -} -inline const ::pg_query::Node& A_Indices::_internal_lidx() const { - const ::pg_query::Node* p = _impl_.lidx_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& A_Indices::lidx() const { - // @@protoc_insertion_point(field_get:pg_query.A_Indices.lidx) - return _internal_lidx(); -} -inline void A_Indices::unsafe_arena_set_allocated_lidx( - ::pg_query::Node* lidx) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.lidx_); - } - _impl_.lidx_ = lidx; - if (lidx) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.A_Indices.lidx) -} -inline ::pg_query::Node* A_Indices::release_lidx() { - - ::pg_query::Node* temp = _impl_.lidx_; - _impl_.lidx_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* A_Indices::unsafe_arena_release_lidx() { - // @@protoc_insertion_point(field_release:pg_query.A_Indices.lidx) - - ::pg_query::Node* temp = _impl_.lidx_; - _impl_.lidx_ = nullptr; - return temp; -} -inline ::pg_query::Node* A_Indices::_internal_mutable_lidx() { - - if (_impl_.lidx_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.lidx_ = p; - } - return _impl_.lidx_; -} -inline ::pg_query::Node* A_Indices::mutable_lidx() { - ::pg_query::Node* _msg = _internal_mutable_lidx(); - // @@protoc_insertion_point(field_mutable:pg_query.A_Indices.lidx) - return _msg; -} -inline void A_Indices::set_allocated_lidx(::pg_query::Node* lidx) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.lidx_; - } - if (lidx) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(lidx); - if (message_arena != submessage_arena) { - lidx = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, lidx, submessage_arena); - } - - } else { - - } - _impl_.lidx_ = lidx; - // @@protoc_insertion_point(field_set_allocated:pg_query.A_Indices.lidx) -} - -// .pg_query.Node uidx = 3 [json_name = "uidx"]; -inline bool A_Indices::_internal_has_uidx() const { - return this != internal_default_instance() && _impl_.uidx_ != nullptr; -} -inline bool A_Indices::has_uidx() const { - return _internal_has_uidx(); -} -inline void A_Indices::clear_uidx() { - if (GetArenaForAllocation() == nullptr && _impl_.uidx_ != nullptr) { - delete _impl_.uidx_; - } - _impl_.uidx_ = nullptr; -} -inline const ::pg_query::Node& A_Indices::_internal_uidx() const { - const ::pg_query::Node* p = _impl_.uidx_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& A_Indices::uidx() const { - // @@protoc_insertion_point(field_get:pg_query.A_Indices.uidx) - return _internal_uidx(); -} -inline void A_Indices::unsafe_arena_set_allocated_uidx( - ::pg_query::Node* uidx) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.uidx_); - } - _impl_.uidx_ = uidx; - if (uidx) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.A_Indices.uidx) -} -inline ::pg_query::Node* A_Indices::release_uidx() { - - ::pg_query::Node* temp = _impl_.uidx_; - _impl_.uidx_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* A_Indices::unsafe_arena_release_uidx() { - // @@protoc_insertion_point(field_release:pg_query.A_Indices.uidx) - - ::pg_query::Node* temp = _impl_.uidx_; - _impl_.uidx_ = nullptr; - return temp; -} -inline ::pg_query::Node* A_Indices::_internal_mutable_uidx() { - - if (_impl_.uidx_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.uidx_ = p; - } - return _impl_.uidx_; -} -inline ::pg_query::Node* A_Indices::mutable_uidx() { - ::pg_query::Node* _msg = _internal_mutable_uidx(); - // @@protoc_insertion_point(field_mutable:pg_query.A_Indices.uidx) - return _msg; -} -inline void A_Indices::set_allocated_uidx(::pg_query::Node* uidx) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.uidx_; - } - if (uidx) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(uidx); - if (message_arena != submessage_arena) { - uidx = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, uidx, submessage_arena); - } - - } else { - - } - _impl_.uidx_ = uidx; - // @@protoc_insertion_point(field_set_allocated:pg_query.A_Indices.uidx) -} - -// ------------------------------------------------------------------- - -// A_Indirection - -// .pg_query.Node arg = 1 [json_name = "arg"]; -inline bool A_Indirection::_internal_has_arg() const { - return this != internal_default_instance() && _impl_.arg_ != nullptr; -} -inline bool A_Indirection::has_arg() const { - return _internal_has_arg(); -} -inline void A_Indirection::clear_arg() { - if (GetArenaForAllocation() == nullptr && _impl_.arg_ != nullptr) { - delete _impl_.arg_; - } - _impl_.arg_ = nullptr; -} -inline const ::pg_query::Node& A_Indirection::_internal_arg() const { - const ::pg_query::Node* p = _impl_.arg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& A_Indirection::arg() const { - // @@protoc_insertion_point(field_get:pg_query.A_Indirection.arg) - return _internal_arg(); -} -inline void A_Indirection::unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arg_); - } - _impl_.arg_ = arg; - if (arg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.A_Indirection.arg) -} -inline ::pg_query::Node* A_Indirection::release_arg() { - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* A_Indirection::unsafe_arena_release_arg() { - // @@protoc_insertion_point(field_release:pg_query.A_Indirection.arg) - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; - return temp; -} -inline ::pg_query::Node* A_Indirection::_internal_mutable_arg() { - - if (_impl_.arg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.arg_ = p; - } - return _impl_.arg_; -} -inline ::pg_query::Node* A_Indirection::mutable_arg() { - ::pg_query::Node* _msg = _internal_mutable_arg(); - // @@protoc_insertion_point(field_mutable:pg_query.A_Indirection.arg) - return _msg; -} -inline void A_Indirection::set_allocated_arg(::pg_query::Node* arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.arg_; - } - if (arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(arg); - if (message_arena != submessage_arena) { - arg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, arg, submessage_arena); - } - - } else { - - } - _impl_.arg_ = arg; - // @@protoc_insertion_point(field_set_allocated:pg_query.A_Indirection.arg) -} - -// repeated .pg_query.Node indirection = 2 [json_name = "indirection"]; -inline int A_Indirection::_internal_indirection_size() const { - return _impl_.indirection_.size(); -} -inline int A_Indirection::indirection_size() const { - return _internal_indirection_size(); -} -inline void A_Indirection::clear_indirection() { - _impl_.indirection_.Clear(); -} -inline ::pg_query::Node* A_Indirection::mutable_indirection(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.A_Indirection.indirection) - return _impl_.indirection_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -A_Indirection::mutable_indirection() { - // @@protoc_insertion_point(field_mutable_list:pg_query.A_Indirection.indirection) - return &_impl_.indirection_; -} -inline const ::pg_query::Node& A_Indirection::_internal_indirection(int index) const { - return _impl_.indirection_.Get(index); -} -inline const ::pg_query::Node& A_Indirection::indirection(int index) const { - // @@protoc_insertion_point(field_get:pg_query.A_Indirection.indirection) - return _internal_indirection(index); -} -inline ::pg_query::Node* A_Indirection::_internal_add_indirection() { - return _impl_.indirection_.Add(); -} -inline ::pg_query::Node* A_Indirection::add_indirection() { - ::pg_query::Node* _add = _internal_add_indirection(); - // @@protoc_insertion_point(field_add:pg_query.A_Indirection.indirection) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -A_Indirection::indirection() const { - // @@protoc_insertion_point(field_list:pg_query.A_Indirection.indirection) - return _impl_.indirection_; -} - -// ------------------------------------------------------------------- - -// A_ArrayExpr - -// repeated .pg_query.Node elements = 1 [json_name = "elements"]; -inline int A_ArrayExpr::_internal_elements_size() const { - return _impl_.elements_.size(); -} -inline int A_ArrayExpr::elements_size() const { - return _internal_elements_size(); -} -inline void A_ArrayExpr::clear_elements() { - _impl_.elements_.Clear(); -} -inline ::pg_query::Node* A_ArrayExpr::mutable_elements(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.A_ArrayExpr.elements) - return _impl_.elements_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -A_ArrayExpr::mutable_elements() { - // @@protoc_insertion_point(field_mutable_list:pg_query.A_ArrayExpr.elements) - return &_impl_.elements_; -} -inline const ::pg_query::Node& A_ArrayExpr::_internal_elements(int index) const { - return _impl_.elements_.Get(index); -} -inline const ::pg_query::Node& A_ArrayExpr::elements(int index) const { - // @@protoc_insertion_point(field_get:pg_query.A_ArrayExpr.elements) - return _internal_elements(index); -} -inline ::pg_query::Node* A_ArrayExpr::_internal_add_elements() { - return _impl_.elements_.Add(); -} -inline ::pg_query::Node* A_ArrayExpr::add_elements() { - ::pg_query::Node* _add = _internal_add_elements(); - // @@protoc_insertion_point(field_add:pg_query.A_ArrayExpr.elements) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -A_ArrayExpr::elements() const { - // @@protoc_insertion_point(field_list:pg_query.A_ArrayExpr.elements) - return _impl_.elements_; -} - -// int32 location = 2 [json_name = "location"]; -inline void A_ArrayExpr::clear_location() { - _impl_.location_ = 0; -} -inline int32_t A_ArrayExpr::_internal_location() const { - return _impl_.location_; -} -inline int32_t A_ArrayExpr::location() const { - // @@protoc_insertion_point(field_get:pg_query.A_ArrayExpr.location) - return _internal_location(); -} -inline void A_ArrayExpr::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void A_ArrayExpr::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.A_ArrayExpr.location) -} - -// ------------------------------------------------------------------- - -// ResTarget - -// string name = 1 [json_name = "name"]; -inline void ResTarget::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& ResTarget::name() const { - // @@protoc_insertion_point(field_get:pg_query.ResTarget.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ResTarget::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.ResTarget.name) -} -inline std::string* ResTarget::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.ResTarget.name) - return _s; -} -inline const std::string& ResTarget::_internal_name() const { - return _impl_.name_.Get(); -} -inline void ResTarget::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* ResTarget::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* ResTarget::release_name() { - // @@protoc_insertion_point(field_release:pg_query.ResTarget.name) - return _impl_.name_.Release(); -} -inline void ResTarget::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.ResTarget.name) -} - -// repeated .pg_query.Node indirection = 2 [json_name = "indirection"]; -inline int ResTarget::_internal_indirection_size() const { - return _impl_.indirection_.size(); -} -inline int ResTarget::indirection_size() const { - return _internal_indirection_size(); -} -inline void ResTarget::clear_indirection() { - _impl_.indirection_.Clear(); -} -inline ::pg_query::Node* ResTarget::mutable_indirection(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.ResTarget.indirection) - return _impl_.indirection_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -ResTarget::mutable_indirection() { - // @@protoc_insertion_point(field_mutable_list:pg_query.ResTarget.indirection) - return &_impl_.indirection_; -} -inline const ::pg_query::Node& ResTarget::_internal_indirection(int index) const { - return _impl_.indirection_.Get(index); -} -inline const ::pg_query::Node& ResTarget::indirection(int index) const { - // @@protoc_insertion_point(field_get:pg_query.ResTarget.indirection) - return _internal_indirection(index); -} -inline ::pg_query::Node* ResTarget::_internal_add_indirection() { - return _impl_.indirection_.Add(); -} -inline ::pg_query::Node* ResTarget::add_indirection() { - ::pg_query::Node* _add = _internal_add_indirection(); - // @@protoc_insertion_point(field_add:pg_query.ResTarget.indirection) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -ResTarget::indirection() const { - // @@protoc_insertion_point(field_list:pg_query.ResTarget.indirection) - return _impl_.indirection_; -} - -// .pg_query.Node val = 3 [json_name = "val"]; -inline bool ResTarget::_internal_has_val() const { - return this != internal_default_instance() && _impl_.val_ != nullptr; -} -inline bool ResTarget::has_val() const { - return _internal_has_val(); -} -inline void ResTarget::clear_val() { - if (GetArenaForAllocation() == nullptr && _impl_.val_ != nullptr) { - delete _impl_.val_; - } - _impl_.val_ = nullptr; -} -inline const ::pg_query::Node& ResTarget::_internal_val() const { - const ::pg_query::Node* p = _impl_.val_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& ResTarget::val() const { - // @@protoc_insertion_point(field_get:pg_query.ResTarget.val) - return _internal_val(); -} -inline void ResTarget::unsafe_arena_set_allocated_val( - ::pg_query::Node* val) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.val_); - } - _impl_.val_ = val; - if (val) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.ResTarget.val) -} -inline ::pg_query::Node* ResTarget::release_val() { - - ::pg_query::Node* temp = _impl_.val_; - _impl_.val_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* ResTarget::unsafe_arena_release_val() { - // @@protoc_insertion_point(field_release:pg_query.ResTarget.val) - - ::pg_query::Node* temp = _impl_.val_; - _impl_.val_ = nullptr; - return temp; -} -inline ::pg_query::Node* ResTarget::_internal_mutable_val() { - - if (_impl_.val_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.val_ = p; - } - return _impl_.val_; -} -inline ::pg_query::Node* ResTarget::mutable_val() { - ::pg_query::Node* _msg = _internal_mutable_val(); - // @@protoc_insertion_point(field_mutable:pg_query.ResTarget.val) - return _msg; -} -inline void ResTarget::set_allocated_val(::pg_query::Node* val) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.val_; - } - if (val) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(val); - if (message_arena != submessage_arena) { - val = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, val, submessage_arena); - } - - } else { - - } - _impl_.val_ = val; - // @@protoc_insertion_point(field_set_allocated:pg_query.ResTarget.val) -} - -// int32 location = 4 [json_name = "location"]; -inline void ResTarget::clear_location() { - _impl_.location_ = 0; -} -inline int32_t ResTarget::_internal_location() const { - return _impl_.location_; -} -inline int32_t ResTarget::location() const { - // @@protoc_insertion_point(field_get:pg_query.ResTarget.location) - return _internal_location(); -} -inline void ResTarget::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void ResTarget::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.ResTarget.location) -} - -// ------------------------------------------------------------------- - -// MultiAssignRef - -// .pg_query.Node source = 1 [json_name = "source"]; -inline bool MultiAssignRef::_internal_has_source() const { - return this != internal_default_instance() && _impl_.source_ != nullptr; -} -inline bool MultiAssignRef::has_source() const { - return _internal_has_source(); -} -inline void MultiAssignRef::clear_source() { - if (GetArenaForAllocation() == nullptr && _impl_.source_ != nullptr) { - delete _impl_.source_; - } - _impl_.source_ = nullptr; -} -inline const ::pg_query::Node& MultiAssignRef::_internal_source() const { - const ::pg_query::Node* p = _impl_.source_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& MultiAssignRef::source() const { - // @@protoc_insertion_point(field_get:pg_query.MultiAssignRef.source) - return _internal_source(); -} -inline void MultiAssignRef::unsafe_arena_set_allocated_source( - ::pg_query::Node* source) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.source_); - } - _impl_.source_ = source; - if (source) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.MultiAssignRef.source) -} -inline ::pg_query::Node* MultiAssignRef::release_source() { - - ::pg_query::Node* temp = _impl_.source_; - _impl_.source_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* MultiAssignRef::unsafe_arena_release_source() { - // @@protoc_insertion_point(field_release:pg_query.MultiAssignRef.source) - - ::pg_query::Node* temp = _impl_.source_; - _impl_.source_ = nullptr; - return temp; -} -inline ::pg_query::Node* MultiAssignRef::_internal_mutable_source() { - - if (_impl_.source_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.source_ = p; - } - return _impl_.source_; -} -inline ::pg_query::Node* MultiAssignRef::mutable_source() { - ::pg_query::Node* _msg = _internal_mutable_source(); - // @@protoc_insertion_point(field_mutable:pg_query.MultiAssignRef.source) - return _msg; -} -inline void MultiAssignRef::set_allocated_source(::pg_query::Node* source) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.source_; - } - if (source) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(source); - if (message_arena != submessage_arena) { - source = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, source, submessage_arena); - } - - } else { - - } - _impl_.source_ = source; - // @@protoc_insertion_point(field_set_allocated:pg_query.MultiAssignRef.source) -} - -// int32 colno = 2 [json_name = "colno"]; -inline void MultiAssignRef::clear_colno() { - _impl_.colno_ = 0; -} -inline int32_t MultiAssignRef::_internal_colno() const { - return _impl_.colno_; -} -inline int32_t MultiAssignRef::colno() const { - // @@protoc_insertion_point(field_get:pg_query.MultiAssignRef.colno) - return _internal_colno(); -} -inline void MultiAssignRef::_internal_set_colno(int32_t value) { - - _impl_.colno_ = value; -} -inline void MultiAssignRef::set_colno(int32_t value) { - _internal_set_colno(value); - // @@protoc_insertion_point(field_set:pg_query.MultiAssignRef.colno) -} - -// int32 ncolumns = 3 [json_name = "ncolumns"]; -inline void MultiAssignRef::clear_ncolumns() { - _impl_.ncolumns_ = 0; -} -inline int32_t MultiAssignRef::_internal_ncolumns() const { - return _impl_.ncolumns_; -} -inline int32_t MultiAssignRef::ncolumns() const { - // @@protoc_insertion_point(field_get:pg_query.MultiAssignRef.ncolumns) - return _internal_ncolumns(); -} -inline void MultiAssignRef::_internal_set_ncolumns(int32_t value) { - - _impl_.ncolumns_ = value; -} -inline void MultiAssignRef::set_ncolumns(int32_t value) { - _internal_set_ncolumns(value); - // @@protoc_insertion_point(field_set:pg_query.MultiAssignRef.ncolumns) -} - -// ------------------------------------------------------------------- - -// TypeCast - -// .pg_query.Node arg = 1 [json_name = "arg"]; -inline bool TypeCast::_internal_has_arg() const { - return this != internal_default_instance() && _impl_.arg_ != nullptr; -} -inline bool TypeCast::has_arg() const { - return _internal_has_arg(); -} -inline void TypeCast::clear_arg() { - if (GetArenaForAllocation() == nullptr && _impl_.arg_ != nullptr) { - delete _impl_.arg_; - } - _impl_.arg_ = nullptr; -} -inline const ::pg_query::Node& TypeCast::_internal_arg() const { - const ::pg_query::Node* p = _impl_.arg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& TypeCast::arg() const { - // @@protoc_insertion_point(field_get:pg_query.TypeCast.arg) - return _internal_arg(); -} -inline void TypeCast::unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arg_); - } - _impl_.arg_ = arg; - if (arg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.TypeCast.arg) -} -inline ::pg_query::Node* TypeCast::release_arg() { - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* TypeCast::unsafe_arena_release_arg() { - // @@protoc_insertion_point(field_release:pg_query.TypeCast.arg) - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; - return temp; -} -inline ::pg_query::Node* TypeCast::_internal_mutable_arg() { - - if (_impl_.arg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.arg_ = p; - } - return _impl_.arg_; -} -inline ::pg_query::Node* TypeCast::mutable_arg() { - ::pg_query::Node* _msg = _internal_mutable_arg(); - // @@protoc_insertion_point(field_mutable:pg_query.TypeCast.arg) - return _msg; -} -inline void TypeCast::set_allocated_arg(::pg_query::Node* arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.arg_; - } - if (arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(arg); - if (message_arena != submessage_arena) { - arg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, arg, submessage_arena); - } - - } else { - - } - _impl_.arg_ = arg; - // @@protoc_insertion_point(field_set_allocated:pg_query.TypeCast.arg) -} - -// .pg_query.TypeName type_name = 2 [json_name = "typeName"]; -inline bool TypeCast::_internal_has_type_name() const { - return this != internal_default_instance() && _impl_.type_name_ != nullptr; -} -inline bool TypeCast::has_type_name() const { - return _internal_has_type_name(); -} -inline void TypeCast::clear_type_name() { - if (GetArenaForAllocation() == nullptr && _impl_.type_name_ != nullptr) { - delete _impl_.type_name_; - } - _impl_.type_name_ = nullptr; -} -inline const ::pg_query::TypeName& TypeCast::_internal_type_name() const { - const ::pg_query::TypeName* p = _impl_.type_name_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_TypeName_default_instance_); -} -inline const ::pg_query::TypeName& TypeCast::type_name() const { - // @@protoc_insertion_point(field_get:pg_query.TypeCast.type_name) - return _internal_type_name(); -} -inline void TypeCast::unsafe_arena_set_allocated_type_name( - ::pg_query::TypeName* type_name) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.type_name_); - } - _impl_.type_name_ = type_name; - if (type_name) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.TypeCast.type_name) -} -inline ::pg_query::TypeName* TypeCast::release_type_name() { - - ::pg_query::TypeName* temp = _impl_.type_name_; - _impl_.type_name_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::TypeName* TypeCast::unsafe_arena_release_type_name() { - // @@protoc_insertion_point(field_release:pg_query.TypeCast.type_name) - - ::pg_query::TypeName* temp = _impl_.type_name_; - _impl_.type_name_ = nullptr; - return temp; -} -inline ::pg_query::TypeName* TypeCast::_internal_mutable_type_name() { - - if (_impl_.type_name_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::TypeName>(GetArenaForAllocation()); - _impl_.type_name_ = p; - } - return _impl_.type_name_; -} -inline ::pg_query::TypeName* TypeCast::mutable_type_name() { - ::pg_query::TypeName* _msg = _internal_mutable_type_name(); - // @@protoc_insertion_point(field_mutable:pg_query.TypeCast.type_name) - return _msg; -} -inline void TypeCast::set_allocated_type_name(::pg_query::TypeName* type_name) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.type_name_; - } - if (type_name) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(type_name); - if (message_arena != submessage_arena) { - type_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, type_name, submessage_arena); - } - - } else { - - } - _impl_.type_name_ = type_name; - // @@protoc_insertion_point(field_set_allocated:pg_query.TypeCast.type_name) -} - -// int32 location = 3 [json_name = "location"]; -inline void TypeCast::clear_location() { - _impl_.location_ = 0; -} -inline int32_t TypeCast::_internal_location() const { - return _impl_.location_; -} -inline int32_t TypeCast::location() const { - // @@protoc_insertion_point(field_get:pg_query.TypeCast.location) - return _internal_location(); -} -inline void TypeCast::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void TypeCast::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.TypeCast.location) -} - -// ------------------------------------------------------------------- - -// CollateClause - -// .pg_query.Node arg = 1 [json_name = "arg"]; -inline bool CollateClause::_internal_has_arg() const { - return this != internal_default_instance() && _impl_.arg_ != nullptr; -} -inline bool CollateClause::has_arg() const { - return _internal_has_arg(); -} -inline void CollateClause::clear_arg() { - if (GetArenaForAllocation() == nullptr && _impl_.arg_ != nullptr) { - delete _impl_.arg_; - } - _impl_.arg_ = nullptr; -} -inline const ::pg_query::Node& CollateClause::_internal_arg() const { - const ::pg_query::Node* p = _impl_.arg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CollateClause::arg() const { - // @@protoc_insertion_point(field_get:pg_query.CollateClause.arg) - return _internal_arg(); -} -inline void CollateClause::unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arg_); - } - _impl_.arg_ = arg; - if (arg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CollateClause.arg) -} -inline ::pg_query::Node* CollateClause::release_arg() { - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CollateClause::unsafe_arena_release_arg() { - // @@protoc_insertion_point(field_release:pg_query.CollateClause.arg) - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; - return temp; -} -inline ::pg_query::Node* CollateClause::_internal_mutable_arg() { - - if (_impl_.arg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.arg_ = p; - } - return _impl_.arg_; -} -inline ::pg_query::Node* CollateClause::mutable_arg() { - ::pg_query::Node* _msg = _internal_mutable_arg(); - // @@protoc_insertion_point(field_mutable:pg_query.CollateClause.arg) - return _msg; -} -inline void CollateClause::set_allocated_arg(::pg_query::Node* arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.arg_; - } - if (arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(arg); - if (message_arena != submessage_arena) { - arg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, arg, submessage_arena); - } - - } else { - - } - _impl_.arg_ = arg; - // @@protoc_insertion_point(field_set_allocated:pg_query.CollateClause.arg) -} - -// repeated .pg_query.Node collname = 2 [json_name = "collname"]; -inline int CollateClause::_internal_collname_size() const { - return _impl_.collname_.size(); -} -inline int CollateClause::collname_size() const { - return _internal_collname_size(); -} -inline void CollateClause::clear_collname() { - _impl_.collname_.Clear(); -} -inline ::pg_query::Node* CollateClause::mutable_collname(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CollateClause.collname) - return _impl_.collname_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CollateClause::mutable_collname() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CollateClause.collname) - return &_impl_.collname_; -} -inline const ::pg_query::Node& CollateClause::_internal_collname(int index) const { - return _impl_.collname_.Get(index); -} -inline const ::pg_query::Node& CollateClause::collname(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CollateClause.collname) - return _internal_collname(index); -} -inline ::pg_query::Node* CollateClause::_internal_add_collname() { - return _impl_.collname_.Add(); -} -inline ::pg_query::Node* CollateClause::add_collname() { - ::pg_query::Node* _add = _internal_add_collname(); - // @@protoc_insertion_point(field_add:pg_query.CollateClause.collname) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CollateClause::collname() const { - // @@protoc_insertion_point(field_list:pg_query.CollateClause.collname) - return _impl_.collname_; -} - -// int32 location = 3 [json_name = "location"]; -inline void CollateClause::clear_location() { - _impl_.location_ = 0; -} -inline int32_t CollateClause::_internal_location() const { - return _impl_.location_; -} -inline int32_t CollateClause::location() const { - // @@protoc_insertion_point(field_get:pg_query.CollateClause.location) - return _internal_location(); -} -inline void CollateClause::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void CollateClause::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.CollateClause.location) -} - -// ------------------------------------------------------------------- - -// SortBy - -// .pg_query.Node node = 1 [json_name = "node"]; -inline bool SortBy::_internal_has_node() const { - return this != internal_default_instance() && _impl_.node_ != nullptr; -} -inline bool SortBy::has_node() const { - return _internal_has_node(); -} -inline void SortBy::clear_node() { - if (GetArenaForAllocation() == nullptr && _impl_.node_ != nullptr) { - delete _impl_.node_; - } - _impl_.node_ = nullptr; -} -inline const ::pg_query::Node& SortBy::_internal_node() const { - const ::pg_query::Node* p = _impl_.node_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& SortBy::node() const { - // @@protoc_insertion_point(field_get:pg_query.SortBy.node) - return _internal_node(); -} -inline void SortBy::unsafe_arena_set_allocated_node( - ::pg_query::Node* node) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.node_); - } - _impl_.node_ = node; - if (node) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.SortBy.node) -} -inline ::pg_query::Node* SortBy::release_node() { - - ::pg_query::Node* temp = _impl_.node_; - _impl_.node_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* SortBy::unsafe_arena_release_node() { - // @@protoc_insertion_point(field_release:pg_query.SortBy.node) - - ::pg_query::Node* temp = _impl_.node_; - _impl_.node_ = nullptr; - return temp; -} -inline ::pg_query::Node* SortBy::_internal_mutable_node() { - - if (_impl_.node_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.node_ = p; - } - return _impl_.node_; -} -inline ::pg_query::Node* SortBy::mutable_node() { - ::pg_query::Node* _msg = _internal_mutable_node(); - // @@protoc_insertion_point(field_mutable:pg_query.SortBy.node) - return _msg; -} -inline void SortBy::set_allocated_node(::pg_query::Node* node) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.node_; - } - if (node) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(node); - if (message_arena != submessage_arena) { - node = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, node, submessage_arena); - } - - } else { - - } - _impl_.node_ = node; - // @@protoc_insertion_point(field_set_allocated:pg_query.SortBy.node) -} - -// .pg_query.SortByDir sortby_dir = 2 [json_name = "sortby_dir"]; -inline void SortBy::clear_sortby_dir() { - _impl_.sortby_dir_ = 0; -} -inline ::pg_query::SortByDir SortBy::_internal_sortby_dir() const { - return static_cast< ::pg_query::SortByDir >(_impl_.sortby_dir_); -} -inline ::pg_query::SortByDir SortBy::sortby_dir() const { - // @@protoc_insertion_point(field_get:pg_query.SortBy.sortby_dir) - return _internal_sortby_dir(); -} -inline void SortBy::_internal_set_sortby_dir(::pg_query::SortByDir value) { - - _impl_.sortby_dir_ = value; -} -inline void SortBy::set_sortby_dir(::pg_query::SortByDir value) { - _internal_set_sortby_dir(value); - // @@protoc_insertion_point(field_set:pg_query.SortBy.sortby_dir) -} - -// .pg_query.SortByNulls sortby_nulls = 3 [json_name = "sortby_nulls"]; -inline void SortBy::clear_sortby_nulls() { - _impl_.sortby_nulls_ = 0; -} -inline ::pg_query::SortByNulls SortBy::_internal_sortby_nulls() const { - return static_cast< ::pg_query::SortByNulls >(_impl_.sortby_nulls_); -} -inline ::pg_query::SortByNulls SortBy::sortby_nulls() const { - // @@protoc_insertion_point(field_get:pg_query.SortBy.sortby_nulls) - return _internal_sortby_nulls(); -} -inline void SortBy::_internal_set_sortby_nulls(::pg_query::SortByNulls value) { - - _impl_.sortby_nulls_ = value; -} -inline void SortBy::set_sortby_nulls(::pg_query::SortByNulls value) { - _internal_set_sortby_nulls(value); - // @@protoc_insertion_point(field_set:pg_query.SortBy.sortby_nulls) -} - -// repeated .pg_query.Node use_op = 4 [json_name = "useOp"]; -inline int SortBy::_internal_use_op_size() const { - return _impl_.use_op_.size(); -} -inline int SortBy::use_op_size() const { - return _internal_use_op_size(); -} -inline void SortBy::clear_use_op() { - _impl_.use_op_.Clear(); -} -inline ::pg_query::Node* SortBy::mutable_use_op(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.SortBy.use_op) - return _impl_.use_op_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -SortBy::mutable_use_op() { - // @@protoc_insertion_point(field_mutable_list:pg_query.SortBy.use_op) - return &_impl_.use_op_; -} -inline const ::pg_query::Node& SortBy::_internal_use_op(int index) const { - return _impl_.use_op_.Get(index); -} -inline const ::pg_query::Node& SortBy::use_op(int index) const { - // @@protoc_insertion_point(field_get:pg_query.SortBy.use_op) - return _internal_use_op(index); -} -inline ::pg_query::Node* SortBy::_internal_add_use_op() { - return _impl_.use_op_.Add(); -} -inline ::pg_query::Node* SortBy::add_use_op() { - ::pg_query::Node* _add = _internal_add_use_op(); - // @@protoc_insertion_point(field_add:pg_query.SortBy.use_op) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -SortBy::use_op() const { - // @@protoc_insertion_point(field_list:pg_query.SortBy.use_op) - return _impl_.use_op_; -} - -// int32 location = 5 [json_name = "location"]; -inline void SortBy::clear_location() { - _impl_.location_ = 0; -} -inline int32_t SortBy::_internal_location() const { - return _impl_.location_; -} -inline int32_t SortBy::location() const { - // @@protoc_insertion_point(field_get:pg_query.SortBy.location) - return _internal_location(); -} -inline void SortBy::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void SortBy::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.SortBy.location) -} - -// ------------------------------------------------------------------- - -// WindowDef - -// string name = 1 [json_name = "name"]; -inline void WindowDef::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& WindowDef::name() const { - // @@protoc_insertion_point(field_get:pg_query.WindowDef.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void WindowDef::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.WindowDef.name) -} -inline std::string* WindowDef::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.WindowDef.name) - return _s; -} -inline const std::string& WindowDef::_internal_name() const { - return _impl_.name_.Get(); -} -inline void WindowDef::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* WindowDef::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* WindowDef::release_name() { - // @@protoc_insertion_point(field_release:pg_query.WindowDef.name) - return _impl_.name_.Release(); -} -inline void WindowDef::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.WindowDef.name) -} - -// string refname = 2 [json_name = "refname"]; -inline void WindowDef::clear_refname() { - _impl_.refname_.ClearToEmpty(); -} -inline const std::string& WindowDef::refname() const { - // @@protoc_insertion_point(field_get:pg_query.WindowDef.refname) - return _internal_refname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void WindowDef::set_refname(ArgT0&& arg0, ArgT... args) { - - _impl_.refname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.WindowDef.refname) -} -inline std::string* WindowDef::mutable_refname() { - std::string* _s = _internal_mutable_refname(); - // @@protoc_insertion_point(field_mutable:pg_query.WindowDef.refname) - return _s; -} -inline const std::string& WindowDef::_internal_refname() const { - return _impl_.refname_.Get(); -} -inline void WindowDef::_internal_set_refname(const std::string& value) { - - _impl_.refname_.Set(value, GetArenaForAllocation()); -} -inline std::string* WindowDef::_internal_mutable_refname() { - - return _impl_.refname_.Mutable(GetArenaForAllocation()); -} -inline std::string* WindowDef::release_refname() { - // @@protoc_insertion_point(field_release:pg_query.WindowDef.refname) - return _impl_.refname_.Release(); -} -inline void WindowDef::set_allocated_refname(std::string* refname) { - if (refname != nullptr) { - - } else { - - } - _impl_.refname_.SetAllocated(refname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.refname_.IsDefault()) { - _impl_.refname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.WindowDef.refname) -} - -// repeated .pg_query.Node partition_clause = 3 [json_name = "partitionClause"]; -inline int WindowDef::_internal_partition_clause_size() const { - return _impl_.partition_clause_.size(); -} -inline int WindowDef::partition_clause_size() const { - return _internal_partition_clause_size(); -} -inline void WindowDef::clear_partition_clause() { - _impl_.partition_clause_.Clear(); -} -inline ::pg_query::Node* WindowDef::mutable_partition_clause(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.WindowDef.partition_clause) - return _impl_.partition_clause_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -WindowDef::mutable_partition_clause() { - // @@protoc_insertion_point(field_mutable_list:pg_query.WindowDef.partition_clause) - return &_impl_.partition_clause_; -} -inline const ::pg_query::Node& WindowDef::_internal_partition_clause(int index) const { - return _impl_.partition_clause_.Get(index); -} -inline const ::pg_query::Node& WindowDef::partition_clause(int index) const { - // @@protoc_insertion_point(field_get:pg_query.WindowDef.partition_clause) - return _internal_partition_clause(index); -} -inline ::pg_query::Node* WindowDef::_internal_add_partition_clause() { - return _impl_.partition_clause_.Add(); -} -inline ::pg_query::Node* WindowDef::add_partition_clause() { - ::pg_query::Node* _add = _internal_add_partition_clause(); - // @@protoc_insertion_point(field_add:pg_query.WindowDef.partition_clause) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -WindowDef::partition_clause() const { - // @@protoc_insertion_point(field_list:pg_query.WindowDef.partition_clause) - return _impl_.partition_clause_; -} - -// repeated .pg_query.Node order_clause = 4 [json_name = "orderClause"]; -inline int WindowDef::_internal_order_clause_size() const { - return _impl_.order_clause_.size(); -} -inline int WindowDef::order_clause_size() const { - return _internal_order_clause_size(); -} -inline void WindowDef::clear_order_clause() { - _impl_.order_clause_.Clear(); -} -inline ::pg_query::Node* WindowDef::mutable_order_clause(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.WindowDef.order_clause) - return _impl_.order_clause_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -WindowDef::mutable_order_clause() { - // @@protoc_insertion_point(field_mutable_list:pg_query.WindowDef.order_clause) - return &_impl_.order_clause_; -} -inline const ::pg_query::Node& WindowDef::_internal_order_clause(int index) const { - return _impl_.order_clause_.Get(index); -} -inline const ::pg_query::Node& WindowDef::order_clause(int index) const { - // @@protoc_insertion_point(field_get:pg_query.WindowDef.order_clause) - return _internal_order_clause(index); -} -inline ::pg_query::Node* WindowDef::_internal_add_order_clause() { - return _impl_.order_clause_.Add(); -} -inline ::pg_query::Node* WindowDef::add_order_clause() { - ::pg_query::Node* _add = _internal_add_order_clause(); - // @@protoc_insertion_point(field_add:pg_query.WindowDef.order_clause) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -WindowDef::order_clause() const { - // @@protoc_insertion_point(field_list:pg_query.WindowDef.order_clause) - return _impl_.order_clause_; -} - -// int32 frame_options = 5 [json_name = "frameOptions"]; -inline void WindowDef::clear_frame_options() { - _impl_.frame_options_ = 0; -} -inline int32_t WindowDef::_internal_frame_options() const { - return _impl_.frame_options_; -} -inline int32_t WindowDef::frame_options() const { - // @@protoc_insertion_point(field_get:pg_query.WindowDef.frame_options) - return _internal_frame_options(); -} -inline void WindowDef::_internal_set_frame_options(int32_t value) { - - _impl_.frame_options_ = value; -} -inline void WindowDef::set_frame_options(int32_t value) { - _internal_set_frame_options(value); - // @@protoc_insertion_point(field_set:pg_query.WindowDef.frame_options) -} - -// .pg_query.Node start_offset = 6 [json_name = "startOffset"]; -inline bool WindowDef::_internal_has_start_offset() const { - return this != internal_default_instance() && _impl_.start_offset_ != nullptr; -} -inline bool WindowDef::has_start_offset() const { - return _internal_has_start_offset(); -} -inline void WindowDef::clear_start_offset() { - if (GetArenaForAllocation() == nullptr && _impl_.start_offset_ != nullptr) { - delete _impl_.start_offset_; - } - _impl_.start_offset_ = nullptr; -} -inline const ::pg_query::Node& WindowDef::_internal_start_offset() const { - const ::pg_query::Node* p = _impl_.start_offset_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& WindowDef::start_offset() const { - // @@protoc_insertion_point(field_get:pg_query.WindowDef.start_offset) - return _internal_start_offset(); -} -inline void WindowDef::unsafe_arena_set_allocated_start_offset( - ::pg_query::Node* start_offset) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.start_offset_); - } - _impl_.start_offset_ = start_offset; - if (start_offset) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.WindowDef.start_offset) -} -inline ::pg_query::Node* WindowDef::release_start_offset() { - - ::pg_query::Node* temp = _impl_.start_offset_; - _impl_.start_offset_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* WindowDef::unsafe_arena_release_start_offset() { - // @@protoc_insertion_point(field_release:pg_query.WindowDef.start_offset) - - ::pg_query::Node* temp = _impl_.start_offset_; - _impl_.start_offset_ = nullptr; - return temp; -} -inline ::pg_query::Node* WindowDef::_internal_mutable_start_offset() { - - if (_impl_.start_offset_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.start_offset_ = p; - } - return _impl_.start_offset_; -} -inline ::pg_query::Node* WindowDef::mutable_start_offset() { - ::pg_query::Node* _msg = _internal_mutable_start_offset(); - // @@protoc_insertion_point(field_mutable:pg_query.WindowDef.start_offset) - return _msg; -} -inline void WindowDef::set_allocated_start_offset(::pg_query::Node* start_offset) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.start_offset_; - } - if (start_offset) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(start_offset); - if (message_arena != submessage_arena) { - start_offset = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, start_offset, submessage_arena); - } - - } else { - - } - _impl_.start_offset_ = start_offset; - // @@protoc_insertion_point(field_set_allocated:pg_query.WindowDef.start_offset) -} - -// .pg_query.Node end_offset = 7 [json_name = "endOffset"]; -inline bool WindowDef::_internal_has_end_offset() const { - return this != internal_default_instance() && _impl_.end_offset_ != nullptr; -} -inline bool WindowDef::has_end_offset() const { - return _internal_has_end_offset(); -} -inline void WindowDef::clear_end_offset() { - if (GetArenaForAllocation() == nullptr && _impl_.end_offset_ != nullptr) { - delete _impl_.end_offset_; - } - _impl_.end_offset_ = nullptr; -} -inline const ::pg_query::Node& WindowDef::_internal_end_offset() const { - const ::pg_query::Node* p = _impl_.end_offset_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& WindowDef::end_offset() const { - // @@protoc_insertion_point(field_get:pg_query.WindowDef.end_offset) - return _internal_end_offset(); -} -inline void WindowDef::unsafe_arena_set_allocated_end_offset( - ::pg_query::Node* end_offset) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.end_offset_); - } - _impl_.end_offset_ = end_offset; - if (end_offset) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.WindowDef.end_offset) -} -inline ::pg_query::Node* WindowDef::release_end_offset() { - - ::pg_query::Node* temp = _impl_.end_offset_; - _impl_.end_offset_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* WindowDef::unsafe_arena_release_end_offset() { - // @@protoc_insertion_point(field_release:pg_query.WindowDef.end_offset) - - ::pg_query::Node* temp = _impl_.end_offset_; - _impl_.end_offset_ = nullptr; - return temp; -} -inline ::pg_query::Node* WindowDef::_internal_mutable_end_offset() { - - if (_impl_.end_offset_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.end_offset_ = p; - } - return _impl_.end_offset_; -} -inline ::pg_query::Node* WindowDef::mutable_end_offset() { - ::pg_query::Node* _msg = _internal_mutable_end_offset(); - // @@protoc_insertion_point(field_mutable:pg_query.WindowDef.end_offset) - return _msg; -} -inline void WindowDef::set_allocated_end_offset(::pg_query::Node* end_offset) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.end_offset_; - } - if (end_offset) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(end_offset); - if (message_arena != submessage_arena) { - end_offset = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, end_offset, submessage_arena); - } - - } else { - - } - _impl_.end_offset_ = end_offset; - // @@protoc_insertion_point(field_set_allocated:pg_query.WindowDef.end_offset) -} - -// int32 location = 8 [json_name = "location"]; -inline void WindowDef::clear_location() { - _impl_.location_ = 0; -} -inline int32_t WindowDef::_internal_location() const { - return _impl_.location_; -} -inline int32_t WindowDef::location() const { - // @@protoc_insertion_point(field_get:pg_query.WindowDef.location) - return _internal_location(); -} -inline void WindowDef::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void WindowDef::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.WindowDef.location) -} - -// ------------------------------------------------------------------- - -// RangeSubselect - -// bool lateral = 1 [json_name = "lateral"]; -inline void RangeSubselect::clear_lateral() { - _impl_.lateral_ = false; -} -inline bool RangeSubselect::_internal_lateral() const { - return _impl_.lateral_; -} -inline bool RangeSubselect::lateral() const { - // @@protoc_insertion_point(field_get:pg_query.RangeSubselect.lateral) - return _internal_lateral(); -} -inline void RangeSubselect::_internal_set_lateral(bool value) { - - _impl_.lateral_ = value; -} -inline void RangeSubselect::set_lateral(bool value) { - _internal_set_lateral(value); - // @@protoc_insertion_point(field_set:pg_query.RangeSubselect.lateral) -} - -// .pg_query.Node subquery = 2 [json_name = "subquery"]; -inline bool RangeSubselect::_internal_has_subquery() const { - return this != internal_default_instance() && _impl_.subquery_ != nullptr; -} -inline bool RangeSubselect::has_subquery() const { - return _internal_has_subquery(); -} -inline void RangeSubselect::clear_subquery() { - if (GetArenaForAllocation() == nullptr && _impl_.subquery_ != nullptr) { - delete _impl_.subquery_; - } - _impl_.subquery_ = nullptr; -} -inline const ::pg_query::Node& RangeSubselect::_internal_subquery() const { - const ::pg_query::Node* p = _impl_.subquery_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& RangeSubselect::subquery() const { - // @@protoc_insertion_point(field_get:pg_query.RangeSubselect.subquery) - return _internal_subquery(); -} -inline void RangeSubselect::unsafe_arena_set_allocated_subquery( - ::pg_query::Node* subquery) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.subquery_); - } - _impl_.subquery_ = subquery; - if (subquery) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RangeSubselect.subquery) -} -inline ::pg_query::Node* RangeSubselect::release_subquery() { - - ::pg_query::Node* temp = _impl_.subquery_; - _impl_.subquery_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* RangeSubselect::unsafe_arena_release_subquery() { - // @@protoc_insertion_point(field_release:pg_query.RangeSubselect.subquery) - - ::pg_query::Node* temp = _impl_.subquery_; - _impl_.subquery_ = nullptr; - return temp; -} -inline ::pg_query::Node* RangeSubselect::_internal_mutable_subquery() { - - if (_impl_.subquery_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.subquery_ = p; - } - return _impl_.subquery_; -} -inline ::pg_query::Node* RangeSubselect::mutable_subquery() { - ::pg_query::Node* _msg = _internal_mutable_subquery(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeSubselect.subquery) - return _msg; -} -inline void RangeSubselect::set_allocated_subquery(::pg_query::Node* subquery) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.subquery_; - } - if (subquery) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(subquery); - if (message_arena != submessage_arena) { - subquery = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, subquery, submessage_arena); - } - - } else { - - } - _impl_.subquery_ = subquery; - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeSubselect.subquery) -} - -// .pg_query.Alias alias = 3 [json_name = "alias"]; -inline bool RangeSubselect::_internal_has_alias() const { - return this != internal_default_instance() && _impl_.alias_ != nullptr; -} -inline bool RangeSubselect::has_alias() const { - return _internal_has_alias(); -} -inline void RangeSubselect::clear_alias() { - if (GetArenaForAllocation() == nullptr && _impl_.alias_ != nullptr) { - delete _impl_.alias_; - } - _impl_.alias_ = nullptr; -} -inline const ::pg_query::Alias& RangeSubselect::_internal_alias() const { - const ::pg_query::Alias* p = _impl_.alias_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Alias_default_instance_); -} -inline const ::pg_query::Alias& RangeSubselect::alias() const { - // @@protoc_insertion_point(field_get:pg_query.RangeSubselect.alias) - return _internal_alias(); -} -inline void RangeSubselect::unsafe_arena_set_allocated_alias( - ::pg_query::Alias* alias) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.alias_); - } - _impl_.alias_ = alias; - if (alias) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RangeSubselect.alias) -} -inline ::pg_query::Alias* RangeSubselect::release_alias() { - - ::pg_query::Alias* temp = _impl_.alias_; - _impl_.alias_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Alias* RangeSubselect::unsafe_arena_release_alias() { - // @@protoc_insertion_point(field_release:pg_query.RangeSubselect.alias) - - ::pg_query::Alias* temp = _impl_.alias_; - _impl_.alias_ = nullptr; - return temp; -} -inline ::pg_query::Alias* RangeSubselect::_internal_mutable_alias() { - - if (_impl_.alias_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Alias>(GetArenaForAllocation()); - _impl_.alias_ = p; - } - return _impl_.alias_; -} -inline ::pg_query::Alias* RangeSubselect::mutable_alias() { - ::pg_query::Alias* _msg = _internal_mutable_alias(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeSubselect.alias) - return _msg; -} -inline void RangeSubselect::set_allocated_alias(::pg_query::Alias* alias) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.alias_; - } - if (alias) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(alias); - if (message_arena != submessage_arena) { - alias = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, alias, submessage_arena); - } - - } else { - - } - _impl_.alias_ = alias; - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeSubselect.alias) -} - -// ------------------------------------------------------------------- - -// RangeFunction - -// bool lateral = 1 [json_name = "lateral"]; -inline void RangeFunction::clear_lateral() { - _impl_.lateral_ = false; -} -inline bool RangeFunction::_internal_lateral() const { - return _impl_.lateral_; -} -inline bool RangeFunction::lateral() const { - // @@protoc_insertion_point(field_get:pg_query.RangeFunction.lateral) - return _internal_lateral(); -} -inline void RangeFunction::_internal_set_lateral(bool value) { - - _impl_.lateral_ = value; -} -inline void RangeFunction::set_lateral(bool value) { - _internal_set_lateral(value); - // @@protoc_insertion_point(field_set:pg_query.RangeFunction.lateral) -} - -// bool ordinality = 2 [json_name = "ordinality"]; -inline void RangeFunction::clear_ordinality() { - _impl_.ordinality_ = false; -} -inline bool RangeFunction::_internal_ordinality() const { - return _impl_.ordinality_; -} -inline bool RangeFunction::ordinality() const { - // @@protoc_insertion_point(field_get:pg_query.RangeFunction.ordinality) - return _internal_ordinality(); -} -inline void RangeFunction::_internal_set_ordinality(bool value) { - - _impl_.ordinality_ = value; -} -inline void RangeFunction::set_ordinality(bool value) { - _internal_set_ordinality(value); - // @@protoc_insertion_point(field_set:pg_query.RangeFunction.ordinality) -} - -// bool is_rowsfrom = 3 [json_name = "is_rowsfrom"]; -inline void RangeFunction::clear_is_rowsfrom() { - _impl_.is_rowsfrom_ = false; -} -inline bool RangeFunction::_internal_is_rowsfrom() const { - return _impl_.is_rowsfrom_; -} -inline bool RangeFunction::is_rowsfrom() const { - // @@protoc_insertion_point(field_get:pg_query.RangeFunction.is_rowsfrom) - return _internal_is_rowsfrom(); -} -inline void RangeFunction::_internal_set_is_rowsfrom(bool value) { - - _impl_.is_rowsfrom_ = value; -} -inline void RangeFunction::set_is_rowsfrom(bool value) { - _internal_set_is_rowsfrom(value); - // @@protoc_insertion_point(field_set:pg_query.RangeFunction.is_rowsfrom) -} - -// repeated .pg_query.Node functions = 4 [json_name = "functions"]; -inline int RangeFunction::_internal_functions_size() const { - return _impl_.functions_.size(); -} -inline int RangeFunction::functions_size() const { - return _internal_functions_size(); -} -inline void RangeFunction::clear_functions() { - _impl_.functions_.Clear(); -} -inline ::pg_query::Node* RangeFunction::mutable_functions(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RangeFunction.functions) - return _impl_.functions_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RangeFunction::mutable_functions() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeFunction.functions) - return &_impl_.functions_; -} -inline const ::pg_query::Node& RangeFunction::_internal_functions(int index) const { - return _impl_.functions_.Get(index); -} -inline const ::pg_query::Node& RangeFunction::functions(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeFunction.functions) - return _internal_functions(index); -} -inline ::pg_query::Node* RangeFunction::_internal_add_functions() { - return _impl_.functions_.Add(); -} -inline ::pg_query::Node* RangeFunction::add_functions() { - ::pg_query::Node* _add = _internal_add_functions(); - // @@protoc_insertion_point(field_add:pg_query.RangeFunction.functions) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RangeFunction::functions() const { - // @@protoc_insertion_point(field_list:pg_query.RangeFunction.functions) - return _impl_.functions_; -} - -// .pg_query.Alias alias = 5 [json_name = "alias"]; -inline bool RangeFunction::_internal_has_alias() const { - return this != internal_default_instance() && _impl_.alias_ != nullptr; -} -inline bool RangeFunction::has_alias() const { - return _internal_has_alias(); -} -inline void RangeFunction::clear_alias() { - if (GetArenaForAllocation() == nullptr && _impl_.alias_ != nullptr) { - delete _impl_.alias_; - } - _impl_.alias_ = nullptr; -} -inline const ::pg_query::Alias& RangeFunction::_internal_alias() const { - const ::pg_query::Alias* p = _impl_.alias_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Alias_default_instance_); -} -inline const ::pg_query::Alias& RangeFunction::alias() const { - // @@protoc_insertion_point(field_get:pg_query.RangeFunction.alias) - return _internal_alias(); -} -inline void RangeFunction::unsafe_arena_set_allocated_alias( - ::pg_query::Alias* alias) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.alias_); - } - _impl_.alias_ = alias; - if (alias) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RangeFunction.alias) -} -inline ::pg_query::Alias* RangeFunction::release_alias() { - - ::pg_query::Alias* temp = _impl_.alias_; - _impl_.alias_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Alias* RangeFunction::unsafe_arena_release_alias() { - // @@protoc_insertion_point(field_release:pg_query.RangeFunction.alias) - - ::pg_query::Alias* temp = _impl_.alias_; - _impl_.alias_ = nullptr; - return temp; -} -inline ::pg_query::Alias* RangeFunction::_internal_mutable_alias() { - - if (_impl_.alias_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Alias>(GetArenaForAllocation()); - _impl_.alias_ = p; - } - return _impl_.alias_; -} -inline ::pg_query::Alias* RangeFunction::mutable_alias() { - ::pg_query::Alias* _msg = _internal_mutable_alias(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeFunction.alias) - return _msg; -} -inline void RangeFunction::set_allocated_alias(::pg_query::Alias* alias) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.alias_; - } - if (alias) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(alias); - if (message_arena != submessage_arena) { - alias = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, alias, submessage_arena); - } - - } else { - - } - _impl_.alias_ = alias; - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeFunction.alias) -} - -// repeated .pg_query.Node coldeflist = 6 [json_name = "coldeflist"]; -inline int RangeFunction::_internal_coldeflist_size() const { - return _impl_.coldeflist_.size(); -} -inline int RangeFunction::coldeflist_size() const { - return _internal_coldeflist_size(); -} -inline void RangeFunction::clear_coldeflist() { - _impl_.coldeflist_.Clear(); -} -inline ::pg_query::Node* RangeFunction::mutable_coldeflist(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RangeFunction.coldeflist) - return _impl_.coldeflist_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RangeFunction::mutable_coldeflist() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeFunction.coldeflist) - return &_impl_.coldeflist_; -} -inline const ::pg_query::Node& RangeFunction::_internal_coldeflist(int index) const { - return _impl_.coldeflist_.Get(index); -} -inline const ::pg_query::Node& RangeFunction::coldeflist(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeFunction.coldeflist) - return _internal_coldeflist(index); -} -inline ::pg_query::Node* RangeFunction::_internal_add_coldeflist() { - return _impl_.coldeflist_.Add(); -} -inline ::pg_query::Node* RangeFunction::add_coldeflist() { - ::pg_query::Node* _add = _internal_add_coldeflist(); - // @@protoc_insertion_point(field_add:pg_query.RangeFunction.coldeflist) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RangeFunction::coldeflist() const { - // @@protoc_insertion_point(field_list:pg_query.RangeFunction.coldeflist) - return _impl_.coldeflist_; -} - -// ------------------------------------------------------------------- - -// RangeTableSample - -// .pg_query.Node relation = 1 [json_name = "relation"]; -inline bool RangeTableSample::_internal_has_relation() const { - return this != internal_default_instance() && _impl_.relation_ != nullptr; -} -inline bool RangeTableSample::has_relation() const { - return _internal_has_relation(); -} -inline void RangeTableSample::clear_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.relation_ != nullptr) { - delete _impl_.relation_; - } - _impl_.relation_ = nullptr; -} -inline const ::pg_query::Node& RangeTableSample::_internal_relation() const { - const ::pg_query::Node* p = _impl_.relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& RangeTableSample::relation() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTableSample.relation) - return _internal_relation(); -} -inline void RangeTableSample::unsafe_arena_set_allocated_relation( - ::pg_query::Node* relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.relation_); - } - _impl_.relation_ = relation; - if (relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RangeTableSample.relation) -} -inline ::pg_query::Node* RangeTableSample::release_relation() { - - ::pg_query::Node* temp = _impl_.relation_; - _impl_.relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* RangeTableSample::unsafe_arena_release_relation() { - // @@protoc_insertion_point(field_release:pg_query.RangeTableSample.relation) - - ::pg_query::Node* temp = _impl_.relation_; - _impl_.relation_ = nullptr; - return temp; -} -inline ::pg_query::Node* RangeTableSample::_internal_mutable_relation() { - - if (_impl_.relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.relation_ = p; - } - return _impl_.relation_; -} -inline ::pg_query::Node* RangeTableSample::mutable_relation() { - ::pg_query::Node* _msg = _internal_mutable_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeTableSample.relation) - return _msg; -} -inline void RangeTableSample::set_allocated_relation(::pg_query::Node* relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.relation_; - } - if (relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(relation); - if (message_arena != submessage_arena) { - relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, relation, submessage_arena); - } - - } else { - - } - _impl_.relation_ = relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeTableSample.relation) -} - -// repeated .pg_query.Node method = 2 [json_name = "method"]; -inline int RangeTableSample::_internal_method_size() const { - return _impl_.method_.size(); -} -inline int RangeTableSample::method_size() const { - return _internal_method_size(); -} -inline void RangeTableSample::clear_method() { - _impl_.method_.Clear(); -} -inline ::pg_query::Node* RangeTableSample::mutable_method(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RangeTableSample.method) - return _impl_.method_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RangeTableSample::mutable_method() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTableSample.method) - return &_impl_.method_; -} -inline const ::pg_query::Node& RangeTableSample::_internal_method(int index) const { - return _impl_.method_.Get(index); -} -inline const ::pg_query::Node& RangeTableSample::method(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTableSample.method) - return _internal_method(index); -} -inline ::pg_query::Node* RangeTableSample::_internal_add_method() { - return _impl_.method_.Add(); -} -inline ::pg_query::Node* RangeTableSample::add_method() { - ::pg_query::Node* _add = _internal_add_method(); - // @@protoc_insertion_point(field_add:pg_query.RangeTableSample.method) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RangeTableSample::method() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTableSample.method) - return _impl_.method_; -} - -// repeated .pg_query.Node args = 3 [json_name = "args"]; -inline int RangeTableSample::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int RangeTableSample::args_size() const { - return _internal_args_size(); -} -inline void RangeTableSample::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* RangeTableSample::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RangeTableSample.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RangeTableSample::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTableSample.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& RangeTableSample::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& RangeTableSample::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTableSample.args) - return _internal_args(index); -} -inline ::pg_query::Node* RangeTableSample::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* RangeTableSample::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.RangeTableSample.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RangeTableSample::args() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTableSample.args) - return _impl_.args_; -} - -// .pg_query.Node repeatable = 4 [json_name = "repeatable"]; -inline bool RangeTableSample::_internal_has_repeatable() const { - return this != internal_default_instance() && _impl_.repeatable_ != nullptr; -} -inline bool RangeTableSample::has_repeatable() const { - return _internal_has_repeatable(); -} -inline void RangeTableSample::clear_repeatable() { - if (GetArenaForAllocation() == nullptr && _impl_.repeatable_ != nullptr) { - delete _impl_.repeatable_; - } - _impl_.repeatable_ = nullptr; -} -inline const ::pg_query::Node& RangeTableSample::_internal_repeatable() const { - const ::pg_query::Node* p = _impl_.repeatable_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& RangeTableSample::repeatable() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTableSample.repeatable) - return _internal_repeatable(); -} -inline void RangeTableSample::unsafe_arena_set_allocated_repeatable( - ::pg_query::Node* repeatable) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.repeatable_); - } - _impl_.repeatable_ = repeatable; - if (repeatable) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RangeTableSample.repeatable) -} -inline ::pg_query::Node* RangeTableSample::release_repeatable() { - - ::pg_query::Node* temp = _impl_.repeatable_; - _impl_.repeatable_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* RangeTableSample::unsafe_arena_release_repeatable() { - // @@protoc_insertion_point(field_release:pg_query.RangeTableSample.repeatable) - - ::pg_query::Node* temp = _impl_.repeatable_; - _impl_.repeatable_ = nullptr; - return temp; -} -inline ::pg_query::Node* RangeTableSample::_internal_mutable_repeatable() { - - if (_impl_.repeatable_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.repeatable_ = p; - } - return _impl_.repeatable_; -} -inline ::pg_query::Node* RangeTableSample::mutable_repeatable() { - ::pg_query::Node* _msg = _internal_mutable_repeatable(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeTableSample.repeatable) - return _msg; -} -inline void RangeTableSample::set_allocated_repeatable(::pg_query::Node* repeatable) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.repeatable_; - } - if (repeatable) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(repeatable); - if (message_arena != submessage_arena) { - repeatable = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, repeatable, submessage_arena); - } - - } else { - - } - _impl_.repeatable_ = repeatable; - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeTableSample.repeatable) -} - -// int32 location = 5 [json_name = "location"]; -inline void RangeTableSample::clear_location() { - _impl_.location_ = 0; -} -inline int32_t RangeTableSample::_internal_location() const { - return _impl_.location_; -} -inline int32_t RangeTableSample::location() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTableSample.location) - return _internal_location(); -} -inline void RangeTableSample::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void RangeTableSample::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTableSample.location) -} - -// ------------------------------------------------------------------- - -// RangeTableFunc - -// bool lateral = 1 [json_name = "lateral"]; -inline void RangeTableFunc::clear_lateral() { - _impl_.lateral_ = false; -} -inline bool RangeTableFunc::_internal_lateral() const { - return _impl_.lateral_; -} -inline bool RangeTableFunc::lateral() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTableFunc.lateral) - return _internal_lateral(); -} -inline void RangeTableFunc::_internal_set_lateral(bool value) { - - _impl_.lateral_ = value; -} -inline void RangeTableFunc::set_lateral(bool value) { - _internal_set_lateral(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTableFunc.lateral) -} - -// .pg_query.Node docexpr = 2 [json_name = "docexpr"]; -inline bool RangeTableFunc::_internal_has_docexpr() const { - return this != internal_default_instance() && _impl_.docexpr_ != nullptr; -} -inline bool RangeTableFunc::has_docexpr() const { - return _internal_has_docexpr(); -} -inline void RangeTableFunc::clear_docexpr() { - if (GetArenaForAllocation() == nullptr && _impl_.docexpr_ != nullptr) { - delete _impl_.docexpr_; - } - _impl_.docexpr_ = nullptr; -} -inline const ::pg_query::Node& RangeTableFunc::_internal_docexpr() const { - const ::pg_query::Node* p = _impl_.docexpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& RangeTableFunc::docexpr() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTableFunc.docexpr) - return _internal_docexpr(); -} -inline void RangeTableFunc::unsafe_arena_set_allocated_docexpr( - ::pg_query::Node* docexpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.docexpr_); - } - _impl_.docexpr_ = docexpr; - if (docexpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RangeTableFunc.docexpr) -} -inline ::pg_query::Node* RangeTableFunc::release_docexpr() { - - ::pg_query::Node* temp = _impl_.docexpr_; - _impl_.docexpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* RangeTableFunc::unsafe_arena_release_docexpr() { - // @@protoc_insertion_point(field_release:pg_query.RangeTableFunc.docexpr) - - ::pg_query::Node* temp = _impl_.docexpr_; - _impl_.docexpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* RangeTableFunc::_internal_mutable_docexpr() { - - if (_impl_.docexpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.docexpr_ = p; - } - return _impl_.docexpr_; -} -inline ::pg_query::Node* RangeTableFunc::mutable_docexpr() { - ::pg_query::Node* _msg = _internal_mutable_docexpr(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeTableFunc.docexpr) - return _msg; -} -inline void RangeTableFunc::set_allocated_docexpr(::pg_query::Node* docexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.docexpr_; - } - if (docexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(docexpr); - if (message_arena != submessage_arena) { - docexpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, docexpr, submessage_arena); - } - - } else { - - } - _impl_.docexpr_ = docexpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeTableFunc.docexpr) -} - -// .pg_query.Node rowexpr = 3 [json_name = "rowexpr"]; -inline bool RangeTableFunc::_internal_has_rowexpr() const { - return this != internal_default_instance() && _impl_.rowexpr_ != nullptr; -} -inline bool RangeTableFunc::has_rowexpr() const { - return _internal_has_rowexpr(); -} -inline void RangeTableFunc::clear_rowexpr() { - if (GetArenaForAllocation() == nullptr && _impl_.rowexpr_ != nullptr) { - delete _impl_.rowexpr_; - } - _impl_.rowexpr_ = nullptr; -} -inline const ::pg_query::Node& RangeTableFunc::_internal_rowexpr() const { - const ::pg_query::Node* p = _impl_.rowexpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& RangeTableFunc::rowexpr() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTableFunc.rowexpr) - return _internal_rowexpr(); -} -inline void RangeTableFunc::unsafe_arena_set_allocated_rowexpr( - ::pg_query::Node* rowexpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.rowexpr_); - } - _impl_.rowexpr_ = rowexpr; - if (rowexpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RangeTableFunc.rowexpr) -} -inline ::pg_query::Node* RangeTableFunc::release_rowexpr() { - - ::pg_query::Node* temp = _impl_.rowexpr_; - _impl_.rowexpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* RangeTableFunc::unsafe_arena_release_rowexpr() { - // @@protoc_insertion_point(field_release:pg_query.RangeTableFunc.rowexpr) - - ::pg_query::Node* temp = _impl_.rowexpr_; - _impl_.rowexpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* RangeTableFunc::_internal_mutable_rowexpr() { - - if (_impl_.rowexpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.rowexpr_ = p; - } - return _impl_.rowexpr_; -} -inline ::pg_query::Node* RangeTableFunc::mutable_rowexpr() { - ::pg_query::Node* _msg = _internal_mutable_rowexpr(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeTableFunc.rowexpr) - return _msg; -} -inline void RangeTableFunc::set_allocated_rowexpr(::pg_query::Node* rowexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.rowexpr_; - } - if (rowexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(rowexpr); - if (message_arena != submessage_arena) { - rowexpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, rowexpr, submessage_arena); - } - - } else { - - } - _impl_.rowexpr_ = rowexpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeTableFunc.rowexpr) -} - -// repeated .pg_query.Node namespaces = 4 [json_name = "namespaces"]; -inline int RangeTableFunc::_internal_namespaces_size() const { - return _impl_.namespaces_.size(); -} -inline int RangeTableFunc::namespaces_size() const { - return _internal_namespaces_size(); -} -inline void RangeTableFunc::clear_namespaces() { - _impl_.namespaces_.Clear(); -} -inline ::pg_query::Node* RangeTableFunc::mutable_namespaces(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RangeTableFunc.namespaces) - return _impl_.namespaces_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RangeTableFunc::mutable_namespaces() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTableFunc.namespaces) - return &_impl_.namespaces_; -} -inline const ::pg_query::Node& RangeTableFunc::_internal_namespaces(int index) const { - return _impl_.namespaces_.Get(index); -} -inline const ::pg_query::Node& RangeTableFunc::namespaces(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTableFunc.namespaces) - return _internal_namespaces(index); -} -inline ::pg_query::Node* RangeTableFunc::_internal_add_namespaces() { - return _impl_.namespaces_.Add(); -} -inline ::pg_query::Node* RangeTableFunc::add_namespaces() { - ::pg_query::Node* _add = _internal_add_namespaces(); - // @@protoc_insertion_point(field_add:pg_query.RangeTableFunc.namespaces) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RangeTableFunc::namespaces() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTableFunc.namespaces) - return _impl_.namespaces_; -} - -// repeated .pg_query.Node columns = 5 [json_name = "columns"]; -inline int RangeTableFunc::_internal_columns_size() const { - return _impl_.columns_.size(); -} -inline int RangeTableFunc::columns_size() const { - return _internal_columns_size(); -} -inline void RangeTableFunc::clear_columns() { - _impl_.columns_.Clear(); -} -inline ::pg_query::Node* RangeTableFunc::mutable_columns(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RangeTableFunc.columns) - return _impl_.columns_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RangeTableFunc::mutable_columns() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTableFunc.columns) - return &_impl_.columns_; -} -inline const ::pg_query::Node& RangeTableFunc::_internal_columns(int index) const { - return _impl_.columns_.Get(index); -} -inline const ::pg_query::Node& RangeTableFunc::columns(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTableFunc.columns) - return _internal_columns(index); -} -inline ::pg_query::Node* RangeTableFunc::_internal_add_columns() { - return _impl_.columns_.Add(); -} -inline ::pg_query::Node* RangeTableFunc::add_columns() { - ::pg_query::Node* _add = _internal_add_columns(); - // @@protoc_insertion_point(field_add:pg_query.RangeTableFunc.columns) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RangeTableFunc::columns() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTableFunc.columns) - return _impl_.columns_; -} - -// .pg_query.Alias alias = 6 [json_name = "alias"]; -inline bool RangeTableFunc::_internal_has_alias() const { - return this != internal_default_instance() && _impl_.alias_ != nullptr; -} -inline bool RangeTableFunc::has_alias() const { - return _internal_has_alias(); -} -inline void RangeTableFunc::clear_alias() { - if (GetArenaForAllocation() == nullptr && _impl_.alias_ != nullptr) { - delete _impl_.alias_; - } - _impl_.alias_ = nullptr; -} -inline const ::pg_query::Alias& RangeTableFunc::_internal_alias() const { - const ::pg_query::Alias* p = _impl_.alias_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Alias_default_instance_); -} -inline const ::pg_query::Alias& RangeTableFunc::alias() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTableFunc.alias) - return _internal_alias(); -} -inline void RangeTableFunc::unsafe_arena_set_allocated_alias( - ::pg_query::Alias* alias) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.alias_); - } - _impl_.alias_ = alias; - if (alias) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RangeTableFunc.alias) -} -inline ::pg_query::Alias* RangeTableFunc::release_alias() { - - ::pg_query::Alias* temp = _impl_.alias_; - _impl_.alias_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Alias* RangeTableFunc::unsafe_arena_release_alias() { - // @@protoc_insertion_point(field_release:pg_query.RangeTableFunc.alias) - - ::pg_query::Alias* temp = _impl_.alias_; - _impl_.alias_ = nullptr; - return temp; -} -inline ::pg_query::Alias* RangeTableFunc::_internal_mutable_alias() { - - if (_impl_.alias_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Alias>(GetArenaForAllocation()); - _impl_.alias_ = p; - } - return _impl_.alias_; -} -inline ::pg_query::Alias* RangeTableFunc::mutable_alias() { - ::pg_query::Alias* _msg = _internal_mutable_alias(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeTableFunc.alias) - return _msg; -} -inline void RangeTableFunc::set_allocated_alias(::pg_query::Alias* alias) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.alias_; - } - if (alias) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(alias); - if (message_arena != submessage_arena) { - alias = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, alias, submessage_arena); - } - - } else { - - } - _impl_.alias_ = alias; - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeTableFunc.alias) -} - -// int32 location = 7 [json_name = "location"]; -inline void RangeTableFunc::clear_location() { - _impl_.location_ = 0; -} -inline int32_t RangeTableFunc::_internal_location() const { - return _impl_.location_; -} -inline int32_t RangeTableFunc::location() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTableFunc.location) - return _internal_location(); -} -inline void RangeTableFunc::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void RangeTableFunc::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTableFunc.location) -} - -// ------------------------------------------------------------------- - -// RangeTableFuncCol - -// string colname = 1 [json_name = "colname"]; -inline void RangeTableFuncCol::clear_colname() { - _impl_.colname_.ClearToEmpty(); -} -inline const std::string& RangeTableFuncCol::colname() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTableFuncCol.colname) - return _internal_colname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void RangeTableFuncCol::set_colname(ArgT0&& arg0, ArgT... args) { - - _impl_.colname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.RangeTableFuncCol.colname) -} -inline std::string* RangeTableFuncCol::mutable_colname() { - std::string* _s = _internal_mutable_colname(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeTableFuncCol.colname) - return _s; -} -inline const std::string& RangeTableFuncCol::_internal_colname() const { - return _impl_.colname_.Get(); -} -inline void RangeTableFuncCol::_internal_set_colname(const std::string& value) { - - _impl_.colname_.Set(value, GetArenaForAllocation()); -} -inline std::string* RangeTableFuncCol::_internal_mutable_colname() { - - return _impl_.colname_.Mutable(GetArenaForAllocation()); -} -inline std::string* RangeTableFuncCol::release_colname() { - // @@protoc_insertion_point(field_release:pg_query.RangeTableFuncCol.colname) - return _impl_.colname_.Release(); -} -inline void RangeTableFuncCol::set_allocated_colname(std::string* colname) { - if (colname != nullptr) { - - } else { - - } - _impl_.colname_.SetAllocated(colname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.colname_.IsDefault()) { - _impl_.colname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeTableFuncCol.colname) -} - -// .pg_query.TypeName type_name = 2 [json_name = "typeName"]; -inline bool RangeTableFuncCol::_internal_has_type_name() const { - return this != internal_default_instance() && _impl_.type_name_ != nullptr; -} -inline bool RangeTableFuncCol::has_type_name() const { - return _internal_has_type_name(); -} -inline void RangeTableFuncCol::clear_type_name() { - if (GetArenaForAllocation() == nullptr && _impl_.type_name_ != nullptr) { - delete _impl_.type_name_; - } - _impl_.type_name_ = nullptr; -} -inline const ::pg_query::TypeName& RangeTableFuncCol::_internal_type_name() const { - const ::pg_query::TypeName* p = _impl_.type_name_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_TypeName_default_instance_); -} -inline const ::pg_query::TypeName& RangeTableFuncCol::type_name() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTableFuncCol.type_name) - return _internal_type_name(); -} -inline void RangeTableFuncCol::unsafe_arena_set_allocated_type_name( - ::pg_query::TypeName* type_name) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.type_name_); - } - _impl_.type_name_ = type_name; - if (type_name) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RangeTableFuncCol.type_name) -} -inline ::pg_query::TypeName* RangeTableFuncCol::release_type_name() { - - ::pg_query::TypeName* temp = _impl_.type_name_; - _impl_.type_name_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::TypeName* RangeTableFuncCol::unsafe_arena_release_type_name() { - // @@protoc_insertion_point(field_release:pg_query.RangeTableFuncCol.type_name) - - ::pg_query::TypeName* temp = _impl_.type_name_; - _impl_.type_name_ = nullptr; - return temp; -} -inline ::pg_query::TypeName* RangeTableFuncCol::_internal_mutable_type_name() { - - if (_impl_.type_name_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::TypeName>(GetArenaForAllocation()); - _impl_.type_name_ = p; - } - return _impl_.type_name_; -} -inline ::pg_query::TypeName* RangeTableFuncCol::mutable_type_name() { - ::pg_query::TypeName* _msg = _internal_mutable_type_name(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeTableFuncCol.type_name) - return _msg; -} -inline void RangeTableFuncCol::set_allocated_type_name(::pg_query::TypeName* type_name) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.type_name_; - } - if (type_name) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(type_name); - if (message_arena != submessage_arena) { - type_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, type_name, submessage_arena); - } - - } else { - - } - _impl_.type_name_ = type_name; - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeTableFuncCol.type_name) -} - -// bool for_ordinality = 3 [json_name = "for_ordinality"]; -inline void RangeTableFuncCol::clear_for_ordinality() { - _impl_.for_ordinality_ = false; -} -inline bool RangeTableFuncCol::_internal_for_ordinality() const { - return _impl_.for_ordinality_; -} -inline bool RangeTableFuncCol::for_ordinality() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTableFuncCol.for_ordinality) - return _internal_for_ordinality(); -} -inline void RangeTableFuncCol::_internal_set_for_ordinality(bool value) { - - _impl_.for_ordinality_ = value; -} -inline void RangeTableFuncCol::set_for_ordinality(bool value) { - _internal_set_for_ordinality(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTableFuncCol.for_ordinality) -} - -// bool is_not_null = 4 [json_name = "is_not_null"]; -inline void RangeTableFuncCol::clear_is_not_null() { - _impl_.is_not_null_ = false; -} -inline bool RangeTableFuncCol::_internal_is_not_null() const { - return _impl_.is_not_null_; -} -inline bool RangeTableFuncCol::is_not_null() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTableFuncCol.is_not_null) - return _internal_is_not_null(); -} -inline void RangeTableFuncCol::_internal_set_is_not_null(bool value) { - - _impl_.is_not_null_ = value; -} -inline void RangeTableFuncCol::set_is_not_null(bool value) { - _internal_set_is_not_null(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTableFuncCol.is_not_null) -} - -// .pg_query.Node colexpr = 5 [json_name = "colexpr"]; -inline bool RangeTableFuncCol::_internal_has_colexpr() const { - return this != internal_default_instance() && _impl_.colexpr_ != nullptr; -} -inline bool RangeTableFuncCol::has_colexpr() const { - return _internal_has_colexpr(); -} -inline void RangeTableFuncCol::clear_colexpr() { - if (GetArenaForAllocation() == nullptr && _impl_.colexpr_ != nullptr) { - delete _impl_.colexpr_; - } - _impl_.colexpr_ = nullptr; -} -inline const ::pg_query::Node& RangeTableFuncCol::_internal_colexpr() const { - const ::pg_query::Node* p = _impl_.colexpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& RangeTableFuncCol::colexpr() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTableFuncCol.colexpr) - return _internal_colexpr(); -} -inline void RangeTableFuncCol::unsafe_arena_set_allocated_colexpr( - ::pg_query::Node* colexpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.colexpr_); - } - _impl_.colexpr_ = colexpr; - if (colexpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RangeTableFuncCol.colexpr) -} -inline ::pg_query::Node* RangeTableFuncCol::release_colexpr() { - - ::pg_query::Node* temp = _impl_.colexpr_; - _impl_.colexpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* RangeTableFuncCol::unsafe_arena_release_colexpr() { - // @@protoc_insertion_point(field_release:pg_query.RangeTableFuncCol.colexpr) - - ::pg_query::Node* temp = _impl_.colexpr_; - _impl_.colexpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* RangeTableFuncCol::_internal_mutable_colexpr() { - - if (_impl_.colexpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.colexpr_ = p; - } - return _impl_.colexpr_; -} -inline ::pg_query::Node* RangeTableFuncCol::mutable_colexpr() { - ::pg_query::Node* _msg = _internal_mutable_colexpr(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeTableFuncCol.colexpr) - return _msg; -} -inline void RangeTableFuncCol::set_allocated_colexpr(::pg_query::Node* colexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.colexpr_; - } - if (colexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(colexpr); - if (message_arena != submessage_arena) { - colexpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, colexpr, submessage_arena); - } - - } else { - - } - _impl_.colexpr_ = colexpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeTableFuncCol.colexpr) -} - -// .pg_query.Node coldefexpr = 6 [json_name = "coldefexpr"]; -inline bool RangeTableFuncCol::_internal_has_coldefexpr() const { - return this != internal_default_instance() && _impl_.coldefexpr_ != nullptr; -} -inline bool RangeTableFuncCol::has_coldefexpr() const { - return _internal_has_coldefexpr(); -} -inline void RangeTableFuncCol::clear_coldefexpr() { - if (GetArenaForAllocation() == nullptr && _impl_.coldefexpr_ != nullptr) { - delete _impl_.coldefexpr_; - } - _impl_.coldefexpr_ = nullptr; -} -inline const ::pg_query::Node& RangeTableFuncCol::_internal_coldefexpr() const { - const ::pg_query::Node* p = _impl_.coldefexpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& RangeTableFuncCol::coldefexpr() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTableFuncCol.coldefexpr) - return _internal_coldefexpr(); -} -inline void RangeTableFuncCol::unsafe_arena_set_allocated_coldefexpr( - ::pg_query::Node* coldefexpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.coldefexpr_); - } - _impl_.coldefexpr_ = coldefexpr; - if (coldefexpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RangeTableFuncCol.coldefexpr) -} -inline ::pg_query::Node* RangeTableFuncCol::release_coldefexpr() { - - ::pg_query::Node* temp = _impl_.coldefexpr_; - _impl_.coldefexpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* RangeTableFuncCol::unsafe_arena_release_coldefexpr() { - // @@protoc_insertion_point(field_release:pg_query.RangeTableFuncCol.coldefexpr) - - ::pg_query::Node* temp = _impl_.coldefexpr_; - _impl_.coldefexpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* RangeTableFuncCol::_internal_mutable_coldefexpr() { - - if (_impl_.coldefexpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.coldefexpr_ = p; - } - return _impl_.coldefexpr_; -} -inline ::pg_query::Node* RangeTableFuncCol::mutable_coldefexpr() { - ::pg_query::Node* _msg = _internal_mutable_coldefexpr(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeTableFuncCol.coldefexpr) - return _msg; -} -inline void RangeTableFuncCol::set_allocated_coldefexpr(::pg_query::Node* coldefexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.coldefexpr_; - } - if (coldefexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(coldefexpr); - if (message_arena != submessage_arena) { - coldefexpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, coldefexpr, submessage_arena); - } - - } else { - - } - _impl_.coldefexpr_ = coldefexpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeTableFuncCol.coldefexpr) -} - -// int32 location = 7 [json_name = "location"]; -inline void RangeTableFuncCol::clear_location() { - _impl_.location_ = 0; -} -inline int32_t RangeTableFuncCol::_internal_location() const { - return _impl_.location_; -} -inline int32_t RangeTableFuncCol::location() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTableFuncCol.location) - return _internal_location(); -} -inline void RangeTableFuncCol::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void RangeTableFuncCol::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTableFuncCol.location) -} - -// ------------------------------------------------------------------- - -// TypeName - -// repeated .pg_query.Node names = 1 [json_name = "names"]; -inline int TypeName::_internal_names_size() const { - return _impl_.names_.size(); -} -inline int TypeName::names_size() const { - return _internal_names_size(); -} -inline void TypeName::clear_names() { - _impl_.names_.Clear(); -} -inline ::pg_query::Node* TypeName::mutable_names(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.TypeName.names) - return _impl_.names_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -TypeName::mutable_names() { - // @@protoc_insertion_point(field_mutable_list:pg_query.TypeName.names) - return &_impl_.names_; -} -inline const ::pg_query::Node& TypeName::_internal_names(int index) const { - return _impl_.names_.Get(index); -} -inline const ::pg_query::Node& TypeName::names(int index) const { - // @@protoc_insertion_point(field_get:pg_query.TypeName.names) - return _internal_names(index); -} -inline ::pg_query::Node* TypeName::_internal_add_names() { - return _impl_.names_.Add(); -} -inline ::pg_query::Node* TypeName::add_names() { - ::pg_query::Node* _add = _internal_add_names(); - // @@protoc_insertion_point(field_add:pg_query.TypeName.names) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -TypeName::names() const { - // @@protoc_insertion_point(field_list:pg_query.TypeName.names) - return _impl_.names_; -} - -// uint32 type_oid = 2 [json_name = "typeOid"]; -inline void TypeName::clear_type_oid() { - _impl_.type_oid_ = 0u; -} -inline uint32_t TypeName::_internal_type_oid() const { - return _impl_.type_oid_; -} -inline uint32_t TypeName::type_oid() const { - // @@protoc_insertion_point(field_get:pg_query.TypeName.type_oid) - return _internal_type_oid(); -} -inline void TypeName::_internal_set_type_oid(uint32_t value) { - - _impl_.type_oid_ = value; -} -inline void TypeName::set_type_oid(uint32_t value) { - _internal_set_type_oid(value); - // @@protoc_insertion_point(field_set:pg_query.TypeName.type_oid) -} - -// bool setof = 3 [json_name = "setof"]; -inline void TypeName::clear_setof() { - _impl_.setof_ = false; -} -inline bool TypeName::_internal_setof() const { - return _impl_.setof_; -} -inline bool TypeName::setof() const { - // @@protoc_insertion_point(field_get:pg_query.TypeName.setof) - return _internal_setof(); -} -inline void TypeName::_internal_set_setof(bool value) { - - _impl_.setof_ = value; -} -inline void TypeName::set_setof(bool value) { - _internal_set_setof(value); - // @@protoc_insertion_point(field_set:pg_query.TypeName.setof) -} - -// bool pct_type = 4 [json_name = "pct_type"]; -inline void TypeName::clear_pct_type() { - _impl_.pct_type_ = false; -} -inline bool TypeName::_internal_pct_type() const { - return _impl_.pct_type_; -} -inline bool TypeName::pct_type() const { - // @@protoc_insertion_point(field_get:pg_query.TypeName.pct_type) - return _internal_pct_type(); -} -inline void TypeName::_internal_set_pct_type(bool value) { - - _impl_.pct_type_ = value; -} -inline void TypeName::set_pct_type(bool value) { - _internal_set_pct_type(value); - // @@protoc_insertion_point(field_set:pg_query.TypeName.pct_type) -} - -// repeated .pg_query.Node typmods = 5 [json_name = "typmods"]; -inline int TypeName::_internal_typmods_size() const { - return _impl_.typmods_.size(); -} -inline int TypeName::typmods_size() const { - return _internal_typmods_size(); -} -inline void TypeName::clear_typmods() { - _impl_.typmods_.Clear(); -} -inline ::pg_query::Node* TypeName::mutable_typmods(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.TypeName.typmods) - return _impl_.typmods_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -TypeName::mutable_typmods() { - // @@protoc_insertion_point(field_mutable_list:pg_query.TypeName.typmods) - return &_impl_.typmods_; -} -inline const ::pg_query::Node& TypeName::_internal_typmods(int index) const { - return _impl_.typmods_.Get(index); -} -inline const ::pg_query::Node& TypeName::typmods(int index) const { - // @@protoc_insertion_point(field_get:pg_query.TypeName.typmods) - return _internal_typmods(index); -} -inline ::pg_query::Node* TypeName::_internal_add_typmods() { - return _impl_.typmods_.Add(); -} -inline ::pg_query::Node* TypeName::add_typmods() { - ::pg_query::Node* _add = _internal_add_typmods(); - // @@protoc_insertion_point(field_add:pg_query.TypeName.typmods) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -TypeName::typmods() const { - // @@protoc_insertion_point(field_list:pg_query.TypeName.typmods) - return _impl_.typmods_; -} - -// int32 typemod = 6 [json_name = "typemod"]; -inline void TypeName::clear_typemod() { - _impl_.typemod_ = 0; -} -inline int32_t TypeName::_internal_typemod() const { - return _impl_.typemod_; -} -inline int32_t TypeName::typemod() const { - // @@protoc_insertion_point(field_get:pg_query.TypeName.typemod) - return _internal_typemod(); -} -inline void TypeName::_internal_set_typemod(int32_t value) { - - _impl_.typemod_ = value; -} -inline void TypeName::set_typemod(int32_t value) { - _internal_set_typemod(value); - // @@protoc_insertion_point(field_set:pg_query.TypeName.typemod) -} - -// repeated .pg_query.Node array_bounds = 7 [json_name = "arrayBounds"]; -inline int TypeName::_internal_array_bounds_size() const { - return _impl_.array_bounds_.size(); -} -inline int TypeName::array_bounds_size() const { - return _internal_array_bounds_size(); -} -inline void TypeName::clear_array_bounds() { - _impl_.array_bounds_.Clear(); -} -inline ::pg_query::Node* TypeName::mutable_array_bounds(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.TypeName.array_bounds) - return _impl_.array_bounds_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -TypeName::mutable_array_bounds() { - // @@protoc_insertion_point(field_mutable_list:pg_query.TypeName.array_bounds) - return &_impl_.array_bounds_; -} -inline const ::pg_query::Node& TypeName::_internal_array_bounds(int index) const { - return _impl_.array_bounds_.Get(index); -} -inline const ::pg_query::Node& TypeName::array_bounds(int index) const { - // @@protoc_insertion_point(field_get:pg_query.TypeName.array_bounds) - return _internal_array_bounds(index); -} -inline ::pg_query::Node* TypeName::_internal_add_array_bounds() { - return _impl_.array_bounds_.Add(); -} -inline ::pg_query::Node* TypeName::add_array_bounds() { - ::pg_query::Node* _add = _internal_add_array_bounds(); - // @@protoc_insertion_point(field_add:pg_query.TypeName.array_bounds) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -TypeName::array_bounds() const { - // @@protoc_insertion_point(field_list:pg_query.TypeName.array_bounds) - return _impl_.array_bounds_; -} - -// int32 location = 8 [json_name = "location"]; -inline void TypeName::clear_location() { - _impl_.location_ = 0; -} -inline int32_t TypeName::_internal_location() const { - return _impl_.location_; -} -inline int32_t TypeName::location() const { - // @@protoc_insertion_point(field_get:pg_query.TypeName.location) - return _internal_location(); -} -inline void TypeName::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void TypeName::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.TypeName.location) -} - -// ------------------------------------------------------------------- - -// ColumnDef - -// string colname = 1 [json_name = "colname"]; -inline void ColumnDef::clear_colname() { - _impl_.colname_.ClearToEmpty(); -} -inline const std::string& ColumnDef::colname() const { - // @@protoc_insertion_point(field_get:pg_query.ColumnDef.colname) - return _internal_colname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ColumnDef::set_colname(ArgT0&& arg0, ArgT... args) { - - _impl_.colname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.ColumnDef.colname) -} -inline std::string* ColumnDef::mutable_colname() { - std::string* _s = _internal_mutable_colname(); - // @@protoc_insertion_point(field_mutable:pg_query.ColumnDef.colname) - return _s; -} -inline const std::string& ColumnDef::_internal_colname() const { - return _impl_.colname_.Get(); -} -inline void ColumnDef::_internal_set_colname(const std::string& value) { - - _impl_.colname_.Set(value, GetArenaForAllocation()); -} -inline std::string* ColumnDef::_internal_mutable_colname() { - - return _impl_.colname_.Mutable(GetArenaForAllocation()); -} -inline std::string* ColumnDef::release_colname() { - // @@protoc_insertion_point(field_release:pg_query.ColumnDef.colname) - return _impl_.colname_.Release(); -} -inline void ColumnDef::set_allocated_colname(std::string* colname) { - if (colname != nullptr) { - - } else { - - } - _impl_.colname_.SetAllocated(colname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.colname_.IsDefault()) { - _impl_.colname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.ColumnDef.colname) -} - -// .pg_query.TypeName type_name = 2 [json_name = "typeName"]; -inline bool ColumnDef::_internal_has_type_name() const { - return this != internal_default_instance() && _impl_.type_name_ != nullptr; -} -inline bool ColumnDef::has_type_name() const { - return _internal_has_type_name(); -} -inline void ColumnDef::clear_type_name() { - if (GetArenaForAllocation() == nullptr && _impl_.type_name_ != nullptr) { - delete _impl_.type_name_; - } - _impl_.type_name_ = nullptr; -} -inline const ::pg_query::TypeName& ColumnDef::_internal_type_name() const { - const ::pg_query::TypeName* p = _impl_.type_name_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_TypeName_default_instance_); -} -inline const ::pg_query::TypeName& ColumnDef::type_name() const { - // @@protoc_insertion_point(field_get:pg_query.ColumnDef.type_name) - return _internal_type_name(); -} -inline void ColumnDef::unsafe_arena_set_allocated_type_name( - ::pg_query::TypeName* type_name) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.type_name_); - } - _impl_.type_name_ = type_name; - if (type_name) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.ColumnDef.type_name) -} -inline ::pg_query::TypeName* ColumnDef::release_type_name() { - - ::pg_query::TypeName* temp = _impl_.type_name_; - _impl_.type_name_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::TypeName* ColumnDef::unsafe_arena_release_type_name() { - // @@protoc_insertion_point(field_release:pg_query.ColumnDef.type_name) - - ::pg_query::TypeName* temp = _impl_.type_name_; - _impl_.type_name_ = nullptr; - return temp; -} -inline ::pg_query::TypeName* ColumnDef::_internal_mutable_type_name() { - - if (_impl_.type_name_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::TypeName>(GetArenaForAllocation()); - _impl_.type_name_ = p; - } - return _impl_.type_name_; -} -inline ::pg_query::TypeName* ColumnDef::mutable_type_name() { - ::pg_query::TypeName* _msg = _internal_mutable_type_name(); - // @@protoc_insertion_point(field_mutable:pg_query.ColumnDef.type_name) - return _msg; -} -inline void ColumnDef::set_allocated_type_name(::pg_query::TypeName* type_name) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.type_name_; - } - if (type_name) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(type_name); - if (message_arena != submessage_arena) { - type_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, type_name, submessage_arena); - } - - } else { - - } - _impl_.type_name_ = type_name; - // @@protoc_insertion_point(field_set_allocated:pg_query.ColumnDef.type_name) -} - -// string compression = 3 [json_name = "compression"]; -inline void ColumnDef::clear_compression() { - _impl_.compression_.ClearToEmpty(); -} -inline const std::string& ColumnDef::compression() const { - // @@protoc_insertion_point(field_get:pg_query.ColumnDef.compression) - return _internal_compression(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ColumnDef::set_compression(ArgT0&& arg0, ArgT... args) { - - _impl_.compression_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.ColumnDef.compression) -} -inline std::string* ColumnDef::mutable_compression() { - std::string* _s = _internal_mutable_compression(); - // @@protoc_insertion_point(field_mutable:pg_query.ColumnDef.compression) - return _s; -} -inline const std::string& ColumnDef::_internal_compression() const { - return _impl_.compression_.Get(); -} -inline void ColumnDef::_internal_set_compression(const std::string& value) { - - _impl_.compression_.Set(value, GetArenaForAllocation()); -} -inline std::string* ColumnDef::_internal_mutable_compression() { - - return _impl_.compression_.Mutable(GetArenaForAllocation()); -} -inline std::string* ColumnDef::release_compression() { - // @@protoc_insertion_point(field_release:pg_query.ColumnDef.compression) - return _impl_.compression_.Release(); -} -inline void ColumnDef::set_allocated_compression(std::string* compression) { - if (compression != nullptr) { - - } else { - - } - _impl_.compression_.SetAllocated(compression, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.compression_.IsDefault()) { - _impl_.compression_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.ColumnDef.compression) -} - -// int32 inhcount = 4 [json_name = "inhcount"]; -inline void ColumnDef::clear_inhcount() { - _impl_.inhcount_ = 0; -} -inline int32_t ColumnDef::_internal_inhcount() const { - return _impl_.inhcount_; -} -inline int32_t ColumnDef::inhcount() const { - // @@protoc_insertion_point(field_get:pg_query.ColumnDef.inhcount) - return _internal_inhcount(); -} -inline void ColumnDef::_internal_set_inhcount(int32_t value) { - - _impl_.inhcount_ = value; -} -inline void ColumnDef::set_inhcount(int32_t value) { - _internal_set_inhcount(value); - // @@protoc_insertion_point(field_set:pg_query.ColumnDef.inhcount) -} - -// bool is_local = 5 [json_name = "is_local"]; -inline void ColumnDef::clear_is_local() { - _impl_.is_local_ = false; -} -inline bool ColumnDef::_internal_is_local() const { - return _impl_.is_local_; -} -inline bool ColumnDef::is_local() const { - // @@protoc_insertion_point(field_get:pg_query.ColumnDef.is_local) - return _internal_is_local(); -} -inline void ColumnDef::_internal_set_is_local(bool value) { - - _impl_.is_local_ = value; -} -inline void ColumnDef::set_is_local(bool value) { - _internal_set_is_local(value); - // @@protoc_insertion_point(field_set:pg_query.ColumnDef.is_local) -} - -// bool is_not_null = 6 [json_name = "is_not_null"]; -inline void ColumnDef::clear_is_not_null() { - _impl_.is_not_null_ = false; -} -inline bool ColumnDef::_internal_is_not_null() const { - return _impl_.is_not_null_; -} -inline bool ColumnDef::is_not_null() const { - // @@protoc_insertion_point(field_get:pg_query.ColumnDef.is_not_null) - return _internal_is_not_null(); -} -inline void ColumnDef::_internal_set_is_not_null(bool value) { - - _impl_.is_not_null_ = value; -} -inline void ColumnDef::set_is_not_null(bool value) { - _internal_set_is_not_null(value); - // @@protoc_insertion_point(field_set:pg_query.ColumnDef.is_not_null) -} - -// bool is_from_type = 7 [json_name = "is_from_type"]; -inline void ColumnDef::clear_is_from_type() { - _impl_.is_from_type_ = false; -} -inline bool ColumnDef::_internal_is_from_type() const { - return _impl_.is_from_type_; -} -inline bool ColumnDef::is_from_type() const { - // @@protoc_insertion_point(field_get:pg_query.ColumnDef.is_from_type) - return _internal_is_from_type(); -} -inline void ColumnDef::_internal_set_is_from_type(bool value) { - - _impl_.is_from_type_ = value; -} -inline void ColumnDef::set_is_from_type(bool value) { - _internal_set_is_from_type(value); - // @@protoc_insertion_point(field_set:pg_query.ColumnDef.is_from_type) -} - -// string storage = 8 [json_name = "storage"]; -inline void ColumnDef::clear_storage() { - _impl_.storage_.ClearToEmpty(); -} -inline const std::string& ColumnDef::storage() const { - // @@protoc_insertion_point(field_get:pg_query.ColumnDef.storage) - return _internal_storage(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ColumnDef::set_storage(ArgT0&& arg0, ArgT... args) { - - _impl_.storage_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.ColumnDef.storage) -} -inline std::string* ColumnDef::mutable_storage() { - std::string* _s = _internal_mutable_storage(); - // @@protoc_insertion_point(field_mutable:pg_query.ColumnDef.storage) - return _s; -} -inline const std::string& ColumnDef::_internal_storage() const { - return _impl_.storage_.Get(); -} -inline void ColumnDef::_internal_set_storage(const std::string& value) { - - _impl_.storage_.Set(value, GetArenaForAllocation()); -} -inline std::string* ColumnDef::_internal_mutable_storage() { - - return _impl_.storage_.Mutable(GetArenaForAllocation()); -} -inline std::string* ColumnDef::release_storage() { - // @@protoc_insertion_point(field_release:pg_query.ColumnDef.storage) - return _impl_.storage_.Release(); -} -inline void ColumnDef::set_allocated_storage(std::string* storage) { - if (storage != nullptr) { - - } else { - - } - _impl_.storage_.SetAllocated(storage, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.storage_.IsDefault()) { - _impl_.storage_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.ColumnDef.storage) -} - -// .pg_query.Node raw_default = 9 [json_name = "raw_default"]; -inline bool ColumnDef::_internal_has_raw_default() const { - return this != internal_default_instance() && _impl_.raw_default_ != nullptr; -} -inline bool ColumnDef::has_raw_default() const { - return _internal_has_raw_default(); -} -inline void ColumnDef::clear_raw_default() { - if (GetArenaForAllocation() == nullptr && _impl_.raw_default_ != nullptr) { - delete _impl_.raw_default_; - } - _impl_.raw_default_ = nullptr; -} -inline const ::pg_query::Node& ColumnDef::_internal_raw_default() const { - const ::pg_query::Node* p = _impl_.raw_default_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& ColumnDef::raw_default() const { - // @@protoc_insertion_point(field_get:pg_query.ColumnDef.raw_default) - return _internal_raw_default(); -} -inline void ColumnDef::unsafe_arena_set_allocated_raw_default( - ::pg_query::Node* raw_default) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.raw_default_); - } - _impl_.raw_default_ = raw_default; - if (raw_default) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.ColumnDef.raw_default) -} -inline ::pg_query::Node* ColumnDef::release_raw_default() { - - ::pg_query::Node* temp = _impl_.raw_default_; - _impl_.raw_default_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* ColumnDef::unsafe_arena_release_raw_default() { - // @@protoc_insertion_point(field_release:pg_query.ColumnDef.raw_default) - - ::pg_query::Node* temp = _impl_.raw_default_; - _impl_.raw_default_ = nullptr; - return temp; -} -inline ::pg_query::Node* ColumnDef::_internal_mutable_raw_default() { - - if (_impl_.raw_default_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.raw_default_ = p; - } - return _impl_.raw_default_; -} -inline ::pg_query::Node* ColumnDef::mutable_raw_default() { - ::pg_query::Node* _msg = _internal_mutable_raw_default(); - // @@protoc_insertion_point(field_mutable:pg_query.ColumnDef.raw_default) - return _msg; -} -inline void ColumnDef::set_allocated_raw_default(::pg_query::Node* raw_default) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.raw_default_; - } - if (raw_default) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(raw_default); - if (message_arena != submessage_arena) { - raw_default = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, raw_default, submessage_arena); - } - - } else { - - } - _impl_.raw_default_ = raw_default; - // @@protoc_insertion_point(field_set_allocated:pg_query.ColumnDef.raw_default) -} - -// .pg_query.Node cooked_default = 10 [json_name = "cooked_default"]; -inline bool ColumnDef::_internal_has_cooked_default() const { - return this != internal_default_instance() && _impl_.cooked_default_ != nullptr; -} -inline bool ColumnDef::has_cooked_default() const { - return _internal_has_cooked_default(); -} -inline void ColumnDef::clear_cooked_default() { - if (GetArenaForAllocation() == nullptr && _impl_.cooked_default_ != nullptr) { - delete _impl_.cooked_default_; - } - _impl_.cooked_default_ = nullptr; -} -inline const ::pg_query::Node& ColumnDef::_internal_cooked_default() const { - const ::pg_query::Node* p = _impl_.cooked_default_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& ColumnDef::cooked_default() const { - // @@protoc_insertion_point(field_get:pg_query.ColumnDef.cooked_default) - return _internal_cooked_default(); -} -inline void ColumnDef::unsafe_arena_set_allocated_cooked_default( - ::pg_query::Node* cooked_default) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.cooked_default_); - } - _impl_.cooked_default_ = cooked_default; - if (cooked_default) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.ColumnDef.cooked_default) -} -inline ::pg_query::Node* ColumnDef::release_cooked_default() { - - ::pg_query::Node* temp = _impl_.cooked_default_; - _impl_.cooked_default_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* ColumnDef::unsafe_arena_release_cooked_default() { - // @@protoc_insertion_point(field_release:pg_query.ColumnDef.cooked_default) - - ::pg_query::Node* temp = _impl_.cooked_default_; - _impl_.cooked_default_ = nullptr; - return temp; -} -inline ::pg_query::Node* ColumnDef::_internal_mutable_cooked_default() { - - if (_impl_.cooked_default_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.cooked_default_ = p; - } - return _impl_.cooked_default_; -} -inline ::pg_query::Node* ColumnDef::mutable_cooked_default() { - ::pg_query::Node* _msg = _internal_mutable_cooked_default(); - // @@protoc_insertion_point(field_mutable:pg_query.ColumnDef.cooked_default) - return _msg; -} -inline void ColumnDef::set_allocated_cooked_default(::pg_query::Node* cooked_default) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.cooked_default_; - } - if (cooked_default) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(cooked_default); - if (message_arena != submessage_arena) { - cooked_default = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, cooked_default, submessage_arena); - } - - } else { - - } - _impl_.cooked_default_ = cooked_default; - // @@protoc_insertion_point(field_set_allocated:pg_query.ColumnDef.cooked_default) -} - -// string identity = 11 [json_name = "identity"]; -inline void ColumnDef::clear_identity() { - _impl_.identity_.ClearToEmpty(); -} -inline const std::string& ColumnDef::identity() const { - // @@protoc_insertion_point(field_get:pg_query.ColumnDef.identity) - return _internal_identity(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ColumnDef::set_identity(ArgT0&& arg0, ArgT... args) { - - _impl_.identity_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.ColumnDef.identity) -} -inline std::string* ColumnDef::mutable_identity() { - std::string* _s = _internal_mutable_identity(); - // @@protoc_insertion_point(field_mutable:pg_query.ColumnDef.identity) - return _s; -} -inline const std::string& ColumnDef::_internal_identity() const { - return _impl_.identity_.Get(); -} -inline void ColumnDef::_internal_set_identity(const std::string& value) { - - _impl_.identity_.Set(value, GetArenaForAllocation()); -} -inline std::string* ColumnDef::_internal_mutable_identity() { - - return _impl_.identity_.Mutable(GetArenaForAllocation()); -} -inline std::string* ColumnDef::release_identity() { - // @@protoc_insertion_point(field_release:pg_query.ColumnDef.identity) - return _impl_.identity_.Release(); -} -inline void ColumnDef::set_allocated_identity(std::string* identity) { - if (identity != nullptr) { - - } else { - - } - _impl_.identity_.SetAllocated(identity, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.identity_.IsDefault()) { - _impl_.identity_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.ColumnDef.identity) -} - -// .pg_query.RangeVar identity_sequence = 12 [json_name = "identitySequence"]; -inline bool ColumnDef::_internal_has_identity_sequence() const { - return this != internal_default_instance() && _impl_.identity_sequence_ != nullptr; -} -inline bool ColumnDef::has_identity_sequence() const { - return _internal_has_identity_sequence(); -} -inline void ColumnDef::clear_identity_sequence() { - if (GetArenaForAllocation() == nullptr && _impl_.identity_sequence_ != nullptr) { - delete _impl_.identity_sequence_; - } - _impl_.identity_sequence_ = nullptr; -} -inline const ::pg_query::RangeVar& ColumnDef::_internal_identity_sequence() const { - const ::pg_query::RangeVar* p = _impl_.identity_sequence_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& ColumnDef::identity_sequence() const { - // @@protoc_insertion_point(field_get:pg_query.ColumnDef.identity_sequence) - return _internal_identity_sequence(); -} -inline void ColumnDef::unsafe_arena_set_allocated_identity_sequence( - ::pg_query::RangeVar* identity_sequence) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.identity_sequence_); - } - _impl_.identity_sequence_ = identity_sequence; - if (identity_sequence) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.ColumnDef.identity_sequence) -} -inline ::pg_query::RangeVar* ColumnDef::release_identity_sequence() { - - ::pg_query::RangeVar* temp = _impl_.identity_sequence_; - _impl_.identity_sequence_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* ColumnDef::unsafe_arena_release_identity_sequence() { - // @@protoc_insertion_point(field_release:pg_query.ColumnDef.identity_sequence) - - ::pg_query::RangeVar* temp = _impl_.identity_sequence_; - _impl_.identity_sequence_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* ColumnDef::_internal_mutable_identity_sequence() { - - if (_impl_.identity_sequence_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.identity_sequence_ = p; - } - return _impl_.identity_sequence_; -} -inline ::pg_query::RangeVar* ColumnDef::mutable_identity_sequence() { - ::pg_query::RangeVar* _msg = _internal_mutable_identity_sequence(); - // @@protoc_insertion_point(field_mutable:pg_query.ColumnDef.identity_sequence) - return _msg; -} -inline void ColumnDef::set_allocated_identity_sequence(::pg_query::RangeVar* identity_sequence) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.identity_sequence_; - } - if (identity_sequence) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(identity_sequence); - if (message_arena != submessage_arena) { - identity_sequence = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, identity_sequence, submessage_arena); - } - - } else { - - } - _impl_.identity_sequence_ = identity_sequence; - // @@protoc_insertion_point(field_set_allocated:pg_query.ColumnDef.identity_sequence) -} - -// string generated = 13 [json_name = "generated"]; -inline void ColumnDef::clear_generated() { - _impl_.generated_.ClearToEmpty(); -} -inline const std::string& ColumnDef::generated() const { - // @@protoc_insertion_point(field_get:pg_query.ColumnDef.generated) - return _internal_generated(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ColumnDef::set_generated(ArgT0&& arg0, ArgT... args) { - - _impl_.generated_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.ColumnDef.generated) -} -inline std::string* ColumnDef::mutable_generated() { - std::string* _s = _internal_mutable_generated(); - // @@protoc_insertion_point(field_mutable:pg_query.ColumnDef.generated) - return _s; -} -inline const std::string& ColumnDef::_internal_generated() const { - return _impl_.generated_.Get(); -} -inline void ColumnDef::_internal_set_generated(const std::string& value) { - - _impl_.generated_.Set(value, GetArenaForAllocation()); -} -inline std::string* ColumnDef::_internal_mutable_generated() { - - return _impl_.generated_.Mutable(GetArenaForAllocation()); -} -inline std::string* ColumnDef::release_generated() { - // @@protoc_insertion_point(field_release:pg_query.ColumnDef.generated) - return _impl_.generated_.Release(); -} -inline void ColumnDef::set_allocated_generated(std::string* generated) { - if (generated != nullptr) { - - } else { - - } - _impl_.generated_.SetAllocated(generated, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.generated_.IsDefault()) { - _impl_.generated_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.ColumnDef.generated) -} - -// .pg_query.CollateClause coll_clause = 14 [json_name = "collClause"]; -inline bool ColumnDef::_internal_has_coll_clause() const { - return this != internal_default_instance() && _impl_.coll_clause_ != nullptr; -} -inline bool ColumnDef::has_coll_clause() const { - return _internal_has_coll_clause(); -} -inline void ColumnDef::clear_coll_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.coll_clause_ != nullptr) { - delete _impl_.coll_clause_; - } - _impl_.coll_clause_ = nullptr; -} -inline const ::pg_query::CollateClause& ColumnDef::_internal_coll_clause() const { - const ::pg_query::CollateClause* p = _impl_.coll_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_CollateClause_default_instance_); -} -inline const ::pg_query::CollateClause& ColumnDef::coll_clause() const { - // @@protoc_insertion_point(field_get:pg_query.ColumnDef.coll_clause) - return _internal_coll_clause(); -} -inline void ColumnDef::unsafe_arena_set_allocated_coll_clause( - ::pg_query::CollateClause* coll_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.coll_clause_); - } - _impl_.coll_clause_ = coll_clause; - if (coll_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.ColumnDef.coll_clause) -} -inline ::pg_query::CollateClause* ColumnDef::release_coll_clause() { - - ::pg_query::CollateClause* temp = _impl_.coll_clause_; - _impl_.coll_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::CollateClause* ColumnDef::unsafe_arena_release_coll_clause() { - // @@protoc_insertion_point(field_release:pg_query.ColumnDef.coll_clause) - - ::pg_query::CollateClause* temp = _impl_.coll_clause_; - _impl_.coll_clause_ = nullptr; - return temp; -} -inline ::pg_query::CollateClause* ColumnDef::_internal_mutable_coll_clause() { - - if (_impl_.coll_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::CollateClause>(GetArenaForAllocation()); - _impl_.coll_clause_ = p; - } - return _impl_.coll_clause_; -} -inline ::pg_query::CollateClause* ColumnDef::mutable_coll_clause() { - ::pg_query::CollateClause* _msg = _internal_mutable_coll_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.ColumnDef.coll_clause) - return _msg; -} -inline void ColumnDef::set_allocated_coll_clause(::pg_query::CollateClause* coll_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.coll_clause_; - } - if (coll_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(coll_clause); - if (message_arena != submessage_arena) { - coll_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, coll_clause, submessage_arena); - } - - } else { - - } - _impl_.coll_clause_ = coll_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.ColumnDef.coll_clause) -} - -// uint32 coll_oid = 15 [json_name = "collOid"]; -inline void ColumnDef::clear_coll_oid() { - _impl_.coll_oid_ = 0u; -} -inline uint32_t ColumnDef::_internal_coll_oid() const { - return _impl_.coll_oid_; -} -inline uint32_t ColumnDef::coll_oid() const { - // @@protoc_insertion_point(field_get:pg_query.ColumnDef.coll_oid) - return _internal_coll_oid(); -} -inline void ColumnDef::_internal_set_coll_oid(uint32_t value) { - - _impl_.coll_oid_ = value; -} -inline void ColumnDef::set_coll_oid(uint32_t value) { - _internal_set_coll_oid(value); - // @@protoc_insertion_point(field_set:pg_query.ColumnDef.coll_oid) -} - -// repeated .pg_query.Node constraints = 16 [json_name = "constraints"]; -inline int ColumnDef::_internal_constraints_size() const { - return _impl_.constraints_.size(); -} -inline int ColumnDef::constraints_size() const { - return _internal_constraints_size(); -} -inline void ColumnDef::clear_constraints() { - _impl_.constraints_.Clear(); -} -inline ::pg_query::Node* ColumnDef::mutable_constraints(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.ColumnDef.constraints) - return _impl_.constraints_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -ColumnDef::mutable_constraints() { - // @@protoc_insertion_point(field_mutable_list:pg_query.ColumnDef.constraints) - return &_impl_.constraints_; -} -inline const ::pg_query::Node& ColumnDef::_internal_constraints(int index) const { - return _impl_.constraints_.Get(index); -} -inline const ::pg_query::Node& ColumnDef::constraints(int index) const { - // @@protoc_insertion_point(field_get:pg_query.ColumnDef.constraints) - return _internal_constraints(index); -} -inline ::pg_query::Node* ColumnDef::_internal_add_constraints() { - return _impl_.constraints_.Add(); -} -inline ::pg_query::Node* ColumnDef::add_constraints() { - ::pg_query::Node* _add = _internal_add_constraints(); - // @@protoc_insertion_point(field_add:pg_query.ColumnDef.constraints) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -ColumnDef::constraints() const { - // @@protoc_insertion_point(field_list:pg_query.ColumnDef.constraints) - return _impl_.constraints_; -} - -// repeated .pg_query.Node fdwoptions = 17 [json_name = "fdwoptions"]; -inline int ColumnDef::_internal_fdwoptions_size() const { - return _impl_.fdwoptions_.size(); -} -inline int ColumnDef::fdwoptions_size() const { - return _internal_fdwoptions_size(); -} -inline void ColumnDef::clear_fdwoptions() { - _impl_.fdwoptions_.Clear(); -} -inline ::pg_query::Node* ColumnDef::mutable_fdwoptions(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.ColumnDef.fdwoptions) - return _impl_.fdwoptions_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -ColumnDef::mutable_fdwoptions() { - // @@protoc_insertion_point(field_mutable_list:pg_query.ColumnDef.fdwoptions) - return &_impl_.fdwoptions_; -} -inline const ::pg_query::Node& ColumnDef::_internal_fdwoptions(int index) const { - return _impl_.fdwoptions_.Get(index); -} -inline const ::pg_query::Node& ColumnDef::fdwoptions(int index) const { - // @@protoc_insertion_point(field_get:pg_query.ColumnDef.fdwoptions) - return _internal_fdwoptions(index); -} -inline ::pg_query::Node* ColumnDef::_internal_add_fdwoptions() { - return _impl_.fdwoptions_.Add(); -} -inline ::pg_query::Node* ColumnDef::add_fdwoptions() { - ::pg_query::Node* _add = _internal_add_fdwoptions(); - // @@protoc_insertion_point(field_add:pg_query.ColumnDef.fdwoptions) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -ColumnDef::fdwoptions() const { - // @@protoc_insertion_point(field_list:pg_query.ColumnDef.fdwoptions) - return _impl_.fdwoptions_; -} - -// int32 location = 18 [json_name = "location"]; -inline void ColumnDef::clear_location() { - _impl_.location_ = 0; -} -inline int32_t ColumnDef::_internal_location() const { - return _impl_.location_; -} -inline int32_t ColumnDef::location() const { - // @@protoc_insertion_point(field_get:pg_query.ColumnDef.location) - return _internal_location(); -} -inline void ColumnDef::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void ColumnDef::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.ColumnDef.location) -} - -// ------------------------------------------------------------------- - -// IndexElem - -// string name = 1 [json_name = "name"]; -inline void IndexElem::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& IndexElem::name() const { - // @@protoc_insertion_point(field_get:pg_query.IndexElem.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void IndexElem::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.IndexElem.name) -} -inline std::string* IndexElem::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.IndexElem.name) - return _s; -} -inline const std::string& IndexElem::_internal_name() const { - return _impl_.name_.Get(); -} -inline void IndexElem::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* IndexElem::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* IndexElem::release_name() { - // @@protoc_insertion_point(field_release:pg_query.IndexElem.name) - return _impl_.name_.Release(); -} -inline void IndexElem::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.IndexElem.name) -} - -// .pg_query.Node expr = 2 [json_name = "expr"]; -inline bool IndexElem::_internal_has_expr() const { - return this != internal_default_instance() && _impl_.expr_ != nullptr; -} -inline bool IndexElem::has_expr() const { - return _internal_has_expr(); -} -inline void IndexElem::clear_expr() { - if (GetArenaForAllocation() == nullptr && _impl_.expr_ != nullptr) { - delete _impl_.expr_; - } - _impl_.expr_ = nullptr; -} -inline const ::pg_query::Node& IndexElem::_internal_expr() const { - const ::pg_query::Node* p = _impl_.expr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& IndexElem::expr() const { - // @@protoc_insertion_point(field_get:pg_query.IndexElem.expr) - return _internal_expr(); -} -inline void IndexElem::unsafe_arena_set_allocated_expr( - ::pg_query::Node* expr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.expr_); - } - _impl_.expr_ = expr; - if (expr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.IndexElem.expr) -} -inline ::pg_query::Node* IndexElem::release_expr() { - - ::pg_query::Node* temp = _impl_.expr_; - _impl_.expr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* IndexElem::unsafe_arena_release_expr() { - // @@protoc_insertion_point(field_release:pg_query.IndexElem.expr) - - ::pg_query::Node* temp = _impl_.expr_; - _impl_.expr_ = nullptr; - return temp; -} -inline ::pg_query::Node* IndexElem::_internal_mutable_expr() { - - if (_impl_.expr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.expr_ = p; - } - return _impl_.expr_; -} -inline ::pg_query::Node* IndexElem::mutable_expr() { - ::pg_query::Node* _msg = _internal_mutable_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.IndexElem.expr) - return _msg; -} -inline void IndexElem::set_allocated_expr(::pg_query::Node* expr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.expr_; - } - if (expr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(expr); - if (message_arena != submessage_arena) { - expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, expr, submessage_arena); - } - - } else { - - } - _impl_.expr_ = expr; - // @@protoc_insertion_point(field_set_allocated:pg_query.IndexElem.expr) -} - -// string indexcolname = 3 [json_name = "indexcolname"]; -inline void IndexElem::clear_indexcolname() { - _impl_.indexcolname_.ClearToEmpty(); -} -inline const std::string& IndexElem::indexcolname() const { - // @@protoc_insertion_point(field_get:pg_query.IndexElem.indexcolname) - return _internal_indexcolname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void IndexElem::set_indexcolname(ArgT0&& arg0, ArgT... args) { - - _impl_.indexcolname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.IndexElem.indexcolname) -} -inline std::string* IndexElem::mutable_indexcolname() { - std::string* _s = _internal_mutable_indexcolname(); - // @@protoc_insertion_point(field_mutable:pg_query.IndexElem.indexcolname) - return _s; -} -inline const std::string& IndexElem::_internal_indexcolname() const { - return _impl_.indexcolname_.Get(); -} -inline void IndexElem::_internal_set_indexcolname(const std::string& value) { - - _impl_.indexcolname_.Set(value, GetArenaForAllocation()); -} -inline std::string* IndexElem::_internal_mutable_indexcolname() { - - return _impl_.indexcolname_.Mutable(GetArenaForAllocation()); -} -inline std::string* IndexElem::release_indexcolname() { - // @@protoc_insertion_point(field_release:pg_query.IndexElem.indexcolname) - return _impl_.indexcolname_.Release(); -} -inline void IndexElem::set_allocated_indexcolname(std::string* indexcolname) { - if (indexcolname != nullptr) { - - } else { - - } - _impl_.indexcolname_.SetAllocated(indexcolname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.indexcolname_.IsDefault()) { - _impl_.indexcolname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.IndexElem.indexcolname) -} - -// repeated .pg_query.Node collation = 4 [json_name = "collation"]; -inline int IndexElem::_internal_collation_size() const { - return _impl_.collation_.size(); -} -inline int IndexElem::collation_size() const { - return _internal_collation_size(); -} -inline void IndexElem::clear_collation() { - _impl_.collation_.Clear(); -} -inline ::pg_query::Node* IndexElem::mutable_collation(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.IndexElem.collation) - return _impl_.collation_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -IndexElem::mutable_collation() { - // @@protoc_insertion_point(field_mutable_list:pg_query.IndexElem.collation) - return &_impl_.collation_; -} -inline const ::pg_query::Node& IndexElem::_internal_collation(int index) const { - return _impl_.collation_.Get(index); -} -inline const ::pg_query::Node& IndexElem::collation(int index) const { - // @@protoc_insertion_point(field_get:pg_query.IndexElem.collation) - return _internal_collation(index); -} -inline ::pg_query::Node* IndexElem::_internal_add_collation() { - return _impl_.collation_.Add(); -} -inline ::pg_query::Node* IndexElem::add_collation() { - ::pg_query::Node* _add = _internal_add_collation(); - // @@protoc_insertion_point(field_add:pg_query.IndexElem.collation) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -IndexElem::collation() const { - // @@protoc_insertion_point(field_list:pg_query.IndexElem.collation) - return _impl_.collation_; -} - -// repeated .pg_query.Node opclass = 5 [json_name = "opclass"]; -inline int IndexElem::_internal_opclass_size() const { - return _impl_.opclass_.size(); -} -inline int IndexElem::opclass_size() const { - return _internal_opclass_size(); -} -inline void IndexElem::clear_opclass() { - _impl_.opclass_.Clear(); -} -inline ::pg_query::Node* IndexElem::mutable_opclass(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.IndexElem.opclass) - return _impl_.opclass_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -IndexElem::mutable_opclass() { - // @@protoc_insertion_point(field_mutable_list:pg_query.IndexElem.opclass) - return &_impl_.opclass_; -} -inline const ::pg_query::Node& IndexElem::_internal_opclass(int index) const { - return _impl_.opclass_.Get(index); -} -inline const ::pg_query::Node& IndexElem::opclass(int index) const { - // @@protoc_insertion_point(field_get:pg_query.IndexElem.opclass) - return _internal_opclass(index); -} -inline ::pg_query::Node* IndexElem::_internal_add_opclass() { - return _impl_.opclass_.Add(); -} -inline ::pg_query::Node* IndexElem::add_opclass() { - ::pg_query::Node* _add = _internal_add_opclass(); - // @@protoc_insertion_point(field_add:pg_query.IndexElem.opclass) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -IndexElem::opclass() const { - // @@protoc_insertion_point(field_list:pg_query.IndexElem.opclass) - return _impl_.opclass_; -} - -// repeated .pg_query.Node opclassopts = 6 [json_name = "opclassopts"]; -inline int IndexElem::_internal_opclassopts_size() const { - return _impl_.opclassopts_.size(); -} -inline int IndexElem::opclassopts_size() const { - return _internal_opclassopts_size(); -} -inline void IndexElem::clear_opclassopts() { - _impl_.opclassopts_.Clear(); -} -inline ::pg_query::Node* IndexElem::mutable_opclassopts(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.IndexElem.opclassopts) - return _impl_.opclassopts_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -IndexElem::mutable_opclassopts() { - // @@protoc_insertion_point(field_mutable_list:pg_query.IndexElem.opclassopts) - return &_impl_.opclassopts_; -} -inline const ::pg_query::Node& IndexElem::_internal_opclassopts(int index) const { - return _impl_.opclassopts_.Get(index); -} -inline const ::pg_query::Node& IndexElem::opclassopts(int index) const { - // @@protoc_insertion_point(field_get:pg_query.IndexElem.opclassopts) - return _internal_opclassopts(index); -} -inline ::pg_query::Node* IndexElem::_internal_add_opclassopts() { - return _impl_.opclassopts_.Add(); -} -inline ::pg_query::Node* IndexElem::add_opclassopts() { - ::pg_query::Node* _add = _internal_add_opclassopts(); - // @@protoc_insertion_point(field_add:pg_query.IndexElem.opclassopts) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -IndexElem::opclassopts() const { - // @@protoc_insertion_point(field_list:pg_query.IndexElem.opclassopts) - return _impl_.opclassopts_; -} - -// .pg_query.SortByDir ordering = 7 [json_name = "ordering"]; -inline void IndexElem::clear_ordering() { - _impl_.ordering_ = 0; -} -inline ::pg_query::SortByDir IndexElem::_internal_ordering() const { - return static_cast< ::pg_query::SortByDir >(_impl_.ordering_); -} -inline ::pg_query::SortByDir IndexElem::ordering() const { - // @@protoc_insertion_point(field_get:pg_query.IndexElem.ordering) - return _internal_ordering(); -} -inline void IndexElem::_internal_set_ordering(::pg_query::SortByDir value) { - - _impl_.ordering_ = value; -} -inline void IndexElem::set_ordering(::pg_query::SortByDir value) { - _internal_set_ordering(value); - // @@protoc_insertion_point(field_set:pg_query.IndexElem.ordering) -} - -// .pg_query.SortByNulls nulls_ordering = 8 [json_name = "nulls_ordering"]; -inline void IndexElem::clear_nulls_ordering() { - _impl_.nulls_ordering_ = 0; -} -inline ::pg_query::SortByNulls IndexElem::_internal_nulls_ordering() const { - return static_cast< ::pg_query::SortByNulls >(_impl_.nulls_ordering_); -} -inline ::pg_query::SortByNulls IndexElem::nulls_ordering() const { - // @@protoc_insertion_point(field_get:pg_query.IndexElem.nulls_ordering) - return _internal_nulls_ordering(); -} -inline void IndexElem::_internal_set_nulls_ordering(::pg_query::SortByNulls value) { - - _impl_.nulls_ordering_ = value; -} -inline void IndexElem::set_nulls_ordering(::pg_query::SortByNulls value) { - _internal_set_nulls_ordering(value); - // @@protoc_insertion_point(field_set:pg_query.IndexElem.nulls_ordering) -} - -// ------------------------------------------------------------------- - -// StatsElem - -// string name = 1 [json_name = "name"]; -inline void StatsElem::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& StatsElem::name() const { - // @@protoc_insertion_point(field_get:pg_query.StatsElem.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void StatsElem::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.StatsElem.name) -} -inline std::string* StatsElem::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.StatsElem.name) - return _s; -} -inline const std::string& StatsElem::_internal_name() const { - return _impl_.name_.Get(); -} -inline void StatsElem::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* StatsElem::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* StatsElem::release_name() { - // @@protoc_insertion_point(field_release:pg_query.StatsElem.name) - return _impl_.name_.Release(); -} -inline void StatsElem::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.StatsElem.name) -} - -// .pg_query.Node expr = 2 [json_name = "expr"]; -inline bool StatsElem::_internal_has_expr() const { - return this != internal_default_instance() && _impl_.expr_ != nullptr; -} -inline bool StatsElem::has_expr() const { - return _internal_has_expr(); -} -inline void StatsElem::clear_expr() { - if (GetArenaForAllocation() == nullptr && _impl_.expr_ != nullptr) { - delete _impl_.expr_; - } - _impl_.expr_ = nullptr; -} -inline const ::pg_query::Node& StatsElem::_internal_expr() const { - const ::pg_query::Node* p = _impl_.expr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& StatsElem::expr() const { - // @@protoc_insertion_point(field_get:pg_query.StatsElem.expr) - return _internal_expr(); -} -inline void StatsElem::unsafe_arena_set_allocated_expr( - ::pg_query::Node* expr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.expr_); - } - _impl_.expr_ = expr; - if (expr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.StatsElem.expr) -} -inline ::pg_query::Node* StatsElem::release_expr() { - - ::pg_query::Node* temp = _impl_.expr_; - _impl_.expr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* StatsElem::unsafe_arena_release_expr() { - // @@protoc_insertion_point(field_release:pg_query.StatsElem.expr) - - ::pg_query::Node* temp = _impl_.expr_; - _impl_.expr_ = nullptr; - return temp; -} -inline ::pg_query::Node* StatsElem::_internal_mutable_expr() { - - if (_impl_.expr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.expr_ = p; - } - return _impl_.expr_; -} -inline ::pg_query::Node* StatsElem::mutable_expr() { - ::pg_query::Node* _msg = _internal_mutable_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.StatsElem.expr) - return _msg; -} -inline void StatsElem::set_allocated_expr(::pg_query::Node* expr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.expr_; - } - if (expr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(expr); - if (message_arena != submessage_arena) { - expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, expr, submessage_arena); - } - - } else { - - } - _impl_.expr_ = expr; - // @@protoc_insertion_point(field_set_allocated:pg_query.StatsElem.expr) -} - -// ------------------------------------------------------------------- - -// Constraint - -// .pg_query.ConstrType contype = 1 [json_name = "contype"]; -inline void Constraint::clear_contype() { - _impl_.contype_ = 0; -} -inline ::pg_query::ConstrType Constraint::_internal_contype() const { - return static_cast< ::pg_query::ConstrType >(_impl_.contype_); -} -inline ::pg_query::ConstrType Constraint::contype() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.contype) - return _internal_contype(); -} -inline void Constraint::_internal_set_contype(::pg_query::ConstrType value) { - - _impl_.contype_ = value; -} -inline void Constraint::set_contype(::pg_query::ConstrType value) { - _internal_set_contype(value); - // @@protoc_insertion_point(field_set:pg_query.Constraint.contype) -} - -// string conname = 2 [json_name = "conname"]; -inline void Constraint::clear_conname() { - _impl_.conname_.ClearToEmpty(); -} -inline const std::string& Constraint::conname() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.conname) - return _internal_conname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Constraint::set_conname(ArgT0&& arg0, ArgT... args) { - - _impl_.conname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.Constraint.conname) -} -inline std::string* Constraint::mutable_conname() { - std::string* _s = _internal_mutable_conname(); - // @@protoc_insertion_point(field_mutable:pg_query.Constraint.conname) - return _s; -} -inline const std::string& Constraint::_internal_conname() const { - return _impl_.conname_.Get(); -} -inline void Constraint::_internal_set_conname(const std::string& value) { - - _impl_.conname_.Set(value, GetArenaForAllocation()); -} -inline std::string* Constraint::_internal_mutable_conname() { - - return _impl_.conname_.Mutable(GetArenaForAllocation()); -} -inline std::string* Constraint::release_conname() { - // @@protoc_insertion_point(field_release:pg_query.Constraint.conname) - return _impl_.conname_.Release(); -} -inline void Constraint::set_allocated_conname(std::string* conname) { - if (conname != nullptr) { - - } else { - - } - _impl_.conname_.SetAllocated(conname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.conname_.IsDefault()) { - _impl_.conname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.Constraint.conname) -} - -// bool deferrable = 3 [json_name = "deferrable"]; -inline void Constraint::clear_deferrable() { - _impl_.deferrable_ = false; -} -inline bool Constraint::_internal_deferrable() const { - return _impl_.deferrable_; -} -inline bool Constraint::deferrable() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.deferrable) - return _internal_deferrable(); -} -inline void Constraint::_internal_set_deferrable(bool value) { - - _impl_.deferrable_ = value; -} -inline void Constraint::set_deferrable(bool value) { - _internal_set_deferrable(value); - // @@protoc_insertion_point(field_set:pg_query.Constraint.deferrable) -} - -// bool initdeferred = 4 [json_name = "initdeferred"]; -inline void Constraint::clear_initdeferred() { - _impl_.initdeferred_ = false; -} -inline bool Constraint::_internal_initdeferred() const { - return _impl_.initdeferred_; -} -inline bool Constraint::initdeferred() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.initdeferred) - return _internal_initdeferred(); -} -inline void Constraint::_internal_set_initdeferred(bool value) { - - _impl_.initdeferred_ = value; -} -inline void Constraint::set_initdeferred(bool value) { - _internal_set_initdeferred(value); - // @@protoc_insertion_point(field_set:pg_query.Constraint.initdeferred) -} - -// int32 location = 5 [json_name = "location"]; -inline void Constraint::clear_location() { - _impl_.location_ = 0; -} -inline int32_t Constraint::_internal_location() const { - return _impl_.location_; -} -inline int32_t Constraint::location() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.location) - return _internal_location(); -} -inline void Constraint::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void Constraint::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.Constraint.location) -} - -// bool is_no_inherit = 6 [json_name = "is_no_inherit"]; -inline void Constraint::clear_is_no_inherit() { - _impl_.is_no_inherit_ = false; -} -inline bool Constraint::_internal_is_no_inherit() const { - return _impl_.is_no_inherit_; -} -inline bool Constraint::is_no_inherit() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.is_no_inherit) - return _internal_is_no_inherit(); -} -inline void Constraint::_internal_set_is_no_inherit(bool value) { - - _impl_.is_no_inherit_ = value; -} -inline void Constraint::set_is_no_inherit(bool value) { - _internal_set_is_no_inherit(value); - // @@protoc_insertion_point(field_set:pg_query.Constraint.is_no_inherit) -} - -// .pg_query.Node raw_expr = 7 [json_name = "raw_expr"]; -inline bool Constraint::_internal_has_raw_expr() const { - return this != internal_default_instance() && _impl_.raw_expr_ != nullptr; -} -inline bool Constraint::has_raw_expr() const { - return _internal_has_raw_expr(); -} -inline void Constraint::clear_raw_expr() { - if (GetArenaForAllocation() == nullptr && _impl_.raw_expr_ != nullptr) { - delete _impl_.raw_expr_; - } - _impl_.raw_expr_ = nullptr; -} -inline const ::pg_query::Node& Constraint::_internal_raw_expr() const { - const ::pg_query::Node* p = _impl_.raw_expr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& Constraint::raw_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.raw_expr) - return _internal_raw_expr(); -} -inline void Constraint::unsafe_arena_set_allocated_raw_expr( - ::pg_query::Node* raw_expr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.raw_expr_); - } - _impl_.raw_expr_ = raw_expr; - if (raw_expr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Constraint.raw_expr) -} -inline ::pg_query::Node* Constraint::release_raw_expr() { - - ::pg_query::Node* temp = _impl_.raw_expr_; - _impl_.raw_expr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* Constraint::unsafe_arena_release_raw_expr() { - // @@protoc_insertion_point(field_release:pg_query.Constraint.raw_expr) - - ::pg_query::Node* temp = _impl_.raw_expr_; - _impl_.raw_expr_ = nullptr; - return temp; -} -inline ::pg_query::Node* Constraint::_internal_mutable_raw_expr() { - - if (_impl_.raw_expr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.raw_expr_ = p; - } - return _impl_.raw_expr_; -} -inline ::pg_query::Node* Constraint::mutable_raw_expr() { - ::pg_query::Node* _msg = _internal_mutable_raw_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Constraint.raw_expr) - return _msg; -} -inline void Constraint::set_allocated_raw_expr(::pg_query::Node* raw_expr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.raw_expr_; - } - if (raw_expr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(raw_expr); - if (message_arena != submessage_arena) { - raw_expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, raw_expr, submessage_arena); - } - - } else { - - } - _impl_.raw_expr_ = raw_expr; - // @@protoc_insertion_point(field_set_allocated:pg_query.Constraint.raw_expr) -} - -// string cooked_expr = 8 [json_name = "cooked_expr"]; -inline void Constraint::clear_cooked_expr() { - _impl_.cooked_expr_.ClearToEmpty(); -} -inline const std::string& Constraint::cooked_expr() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.cooked_expr) - return _internal_cooked_expr(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Constraint::set_cooked_expr(ArgT0&& arg0, ArgT... args) { - - _impl_.cooked_expr_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.Constraint.cooked_expr) -} -inline std::string* Constraint::mutable_cooked_expr() { - std::string* _s = _internal_mutable_cooked_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.Constraint.cooked_expr) - return _s; -} -inline const std::string& Constraint::_internal_cooked_expr() const { - return _impl_.cooked_expr_.Get(); -} -inline void Constraint::_internal_set_cooked_expr(const std::string& value) { - - _impl_.cooked_expr_.Set(value, GetArenaForAllocation()); -} -inline std::string* Constraint::_internal_mutable_cooked_expr() { - - return _impl_.cooked_expr_.Mutable(GetArenaForAllocation()); -} -inline std::string* Constraint::release_cooked_expr() { - // @@protoc_insertion_point(field_release:pg_query.Constraint.cooked_expr) - return _impl_.cooked_expr_.Release(); -} -inline void Constraint::set_allocated_cooked_expr(std::string* cooked_expr) { - if (cooked_expr != nullptr) { - - } else { - - } - _impl_.cooked_expr_.SetAllocated(cooked_expr, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.cooked_expr_.IsDefault()) { - _impl_.cooked_expr_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.Constraint.cooked_expr) -} - -// string generated_when = 9 [json_name = "generated_when"]; -inline void Constraint::clear_generated_when() { - _impl_.generated_when_.ClearToEmpty(); -} -inline const std::string& Constraint::generated_when() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.generated_when) - return _internal_generated_when(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Constraint::set_generated_when(ArgT0&& arg0, ArgT... args) { - - _impl_.generated_when_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.Constraint.generated_when) -} -inline std::string* Constraint::mutable_generated_when() { - std::string* _s = _internal_mutable_generated_when(); - // @@protoc_insertion_point(field_mutable:pg_query.Constraint.generated_when) - return _s; -} -inline const std::string& Constraint::_internal_generated_when() const { - return _impl_.generated_when_.Get(); -} -inline void Constraint::_internal_set_generated_when(const std::string& value) { - - _impl_.generated_when_.Set(value, GetArenaForAllocation()); -} -inline std::string* Constraint::_internal_mutable_generated_when() { - - return _impl_.generated_when_.Mutable(GetArenaForAllocation()); -} -inline std::string* Constraint::release_generated_when() { - // @@protoc_insertion_point(field_release:pg_query.Constraint.generated_when) - return _impl_.generated_when_.Release(); -} -inline void Constraint::set_allocated_generated_when(std::string* generated_when) { - if (generated_when != nullptr) { - - } else { - - } - _impl_.generated_when_.SetAllocated(generated_when, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.generated_when_.IsDefault()) { - _impl_.generated_when_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.Constraint.generated_when) -} - -// bool nulls_not_distinct = 10 [json_name = "nulls_not_distinct"]; -inline void Constraint::clear_nulls_not_distinct() { - _impl_.nulls_not_distinct_ = false; -} -inline bool Constraint::_internal_nulls_not_distinct() const { - return _impl_.nulls_not_distinct_; -} -inline bool Constraint::nulls_not_distinct() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.nulls_not_distinct) - return _internal_nulls_not_distinct(); -} -inline void Constraint::_internal_set_nulls_not_distinct(bool value) { - - _impl_.nulls_not_distinct_ = value; -} -inline void Constraint::set_nulls_not_distinct(bool value) { - _internal_set_nulls_not_distinct(value); - // @@protoc_insertion_point(field_set:pg_query.Constraint.nulls_not_distinct) -} - -// repeated .pg_query.Node keys = 11 [json_name = "keys"]; -inline int Constraint::_internal_keys_size() const { - return _impl_.keys_.size(); -} -inline int Constraint::keys_size() const { - return _internal_keys_size(); -} -inline void Constraint::clear_keys() { - _impl_.keys_.Clear(); -} -inline ::pg_query::Node* Constraint::mutable_keys(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Constraint.keys) - return _impl_.keys_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Constraint::mutable_keys() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Constraint.keys) - return &_impl_.keys_; -} -inline const ::pg_query::Node& Constraint::_internal_keys(int index) const { - return _impl_.keys_.Get(index); -} -inline const ::pg_query::Node& Constraint::keys(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.keys) - return _internal_keys(index); -} -inline ::pg_query::Node* Constraint::_internal_add_keys() { - return _impl_.keys_.Add(); -} -inline ::pg_query::Node* Constraint::add_keys() { - ::pg_query::Node* _add = _internal_add_keys(); - // @@protoc_insertion_point(field_add:pg_query.Constraint.keys) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Constraint::keys() const { - // @@protoc_insertion_point(field_list:pg_query.Constraint.keys) - return _impl_.keys_; -} - -// repeated .pg_query.Node including = 12 [json_name = "including"]; -inline int Constraint::_internal_including_size() const { - return _impl_.including_.size(); -} -inline int Constraint::including_size() const { - return _internal_including_size(); -} -inline void Constraint::clear_including() { - _impl_.including_.Clear(); -} -inline ::pg_query::Node* Constraint::mutable_including(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Constraint.including) - return _impl_.including_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Constraint::mutable_including() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Constraint.including) - return &_impl_.including_; -} -inline const ::pg_query::Node& Constraint::_internal_including(int index) const { - return _impl_.including_.Get(index); -} -inline const ::pg_query::Node& Constraint::including(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.including) - return _internal_including(index); -} -inline ::pg_query::Node* Constraint::_internal_add_including() { - return _impl_.including_.Add(); -} -inline ::pg_query::Node* Constraint::add_including() { - ::pg_query::Node* _add = _internal_add_including(); - // @@protoc_insertion_point(field_add:pg_query.Constraint.including) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Constraint::including() const { - // @@protoc_insertion_point(field_list:pg_query.Constraint.including) - return _impl_.including_; -} - -// repeated .pg_query.Node exclusions = 13 [json_name = "exclusions"]; -inline int Constraint::_internal_exclusions_size() const { - return _impl_.exclusions_.size(); -} -inline int Constraint::exclusions_size() const { - return _internal_exclusions_size(); -} -inline void Constraint::clear_exclusions() { - _impl_.exclusions_.Clear(); -} -inline ::pg_query::Node* Constraint::mutable_exclusions(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Constraint.exclusions) - return _impl_.exclusions_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Constraint::mutable_exclusions() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Constraint.exclusions) - return &_impl_.exclusions_; -} -inline const ::pg_query::Node& Constraint::_internal_exclusions(int index) const { - return _impl_.exclusions_.Get(index); -} -inline const ::pg_query::Node& Constraint::exclusions(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.exclusions) - return _internal_exclusions(index); -} -inline ::pg_query::Node* Constraint::_internal_add_exclusions() { - return _impl_.exclusions_.Add(); -} -inline ::pg_query::Node* Constraint::add_exclusions() { - ::pg_query::Node* _add = _internal_add_exclusions(); - // @@protoc_insertion_point(field_add:pg_query.Constraint.exclusions) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Constraint::exclusions() const { - // @@protoc_insertion_point(field_list:pg_query.Constraint.exclusions) - return _impl_.exclusions_; -} - -// repeated .pg_query.Node options = 14 [json_name = "options"]; -inline int Constraint::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int Constraint::options_size() const { - return _internal_options_size(); -} -inline void Constraint::clear_options() { - _impl_.options_.Clear(); -} -inline ::pg_query::Node* Constraint::mutable_options(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Constraint.options) - return _impl_.options_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Constraint::mutable_options() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Constraint.options) - return &_impl_.options_; -} -inline const ::pg_query::Node& Constraint::_internal_options(int index) const { - return _impl_.options_.Get(index); -} -inline const ::pg_query::Node& Constraint::options(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.options) - return _internal_options(index); -} -inline ::pg_query::Node* Constraint::_internal_add_options() { - return _impl_.options_.Add(); -} -inline ::pg_query::Node* Constraint::add_options() { - ::pg_query::Node* _add = _internal_add_options(); - // @@protoc_insertion_point(field_add:pg_query.Constraint.options) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Constraint::options() const { - // @@protoc_insertion_point(field_list:pg_query.Constraint.options) - return _impl_.options_; -} - -// string indexname = 15 [json_name = "indexname"]; -inline void Constraint::clear_indexname() { - _impl_.indexname_.ClearToEmpty(); -} -inline const std::string& Constraint::indexname() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.indexname) - return _internal_indexname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Constraint::set_indexname(ArgT0&& arg0, ArgT... args) { - - _impl_.indexname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.Constraint.indexname) -} -inline std::string* Constraint::mutable_indexname() { - std::string* _s = _internal_mutable_indexname(); - // @@protoc_insertion_point(field_mutable:pg_query.Constraint.indexname) - return _s; -} -inline const std::string& Constraint::_internal_indexname() const { - return _impl_.indexname_.Get(); -} -inline void Constraint::_internal_set_indexname(const std::string& value) { - - _impl_.indexname_.Set(value, GetArenaForAllocation()); -} -inline std::string* Constraint::_internal_mutable_indexname() { - - return _impl_.indexname_.Mutable(GetArenaForAllocation()); -} -inline std::string* Constraint::release_indexname() { - // @@protoc_insertion_point(field_release:pg_query.Constraint.indexname) - return _impl_.indexname_.Release(); -} -inline void Constraint::set_allocated_indexname(std::string* indexname) { - if (indexname != nullptr) { - - } else { - - } - _impl_.indexname_.SetAllocated(indexname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.indexname_.IsDefault()) { - _impl_.indexname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.Constraint.indexname) -} - -// string indexspace = 16 [json_name = "indexspace"]; -inline void Constraint::clear_indexspace() { - _impl_.indexspace_.ClearToEmpty(); -} -inline const std::string& Constraint::indexspace() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.indexspace) - return _internal_indexspace(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Constraint::set_indexspace(ArgT0&& arg0, ArgT... args) { - - _impl_.indexspace_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.Constraint.indexspace) -} -inline std::string* Constraint::mutable_indexspace() { - std::string* _s = _internal_mutable_indexspace(); - // @@protoc_insertion_point(field_mutable:pg_query.Constraint.indexspace) - return _s; -} -inline const std::string& Constraint::_internal_indexspace() const { - return _impl_.indexspace_.Get(); -} -inline void Constraint::_internal_set_indexspace(const std::string& value) { - - _impl_.indexspace_.Set(value, GetArenaForAllocation()); -} -inline std::string* Constraint::_internal_mutable_indexspace() { - - return _impl_.indexspace_.Mutable(GetArenaForAllocation()); -} -inline std::string* Constraint::release_indexspace() { - // @@protoc_insertion_point(field_release:pg_query.Constraint.indexspace) - return _impl_.indexspace_.Release(); -} -inline void Constraint::set_allocated_indexspace(std::string* indexspace) { - if (indexspace != nullptr) { - - } else { - - } - _impl_.indexspace_.SetAllocated(indexspace, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.indexspace_.IsDefault()) { - _impl_.indexspace_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.Constraint.indexspace) -} - -// bool reset_default_tblspc = 17 [json_name = "reset_default_tblspc"]; -inline void Constraint::clear_reset_default_tblspc() { - _impl_.reset_default_tblspc_ = false; -} -inline bool Constraint::_internal_reset_default_tblspc() const { - return _impl_.reset_default_tblspc_; -} -inline bool Constraint::reset_default_tblspc() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.reset_default_tblspc) - return _internal_reset_default_tblspc(); -} -inline void Constraint::_internal_set_reset_default_tblspc(bool value) { - - _impl_.reset_default_tblspc_ = value; -} -inline void Constraint::set_reset_default_tblspc(bool value) { - _internal_set_reset_default_tblspc(value); - // @@protoc_insertion_point(field_set:pg_query.Constraint.reset_default_tblspc) -} - -// string access_method = 18 [json_name = "access_method"]; -inline void Constraint::clear_access_method() { - _impl_.access_method_.ClearToEmpty(); -} -inline const std::string& Constraint::access_method() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.access_method) - return _internal_access_method(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Constraint::set_access_method(ArgT0&& arg0, ArgT... args) { - - _impl_.access_method_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.Constraint.access_method) -} -inline std::string* Constraint::mutable_access_method() { - std::string* _s = _internal_mutable_access_method(); - // @@protoc_insertion_point(field_mutable:pg_query.Constraint.access_method) - return _s; -} -inline const std::string& Constraint::_internal_access_method() const { - return _impl_.access_method_.Get(); -} -inline void Constraint::_internal_set_access_method(const std::string& value) { - - _impl_.access_method_.Set(value, GetArenaForAllocation()); -} -inline std::string* Constraint::_internal_mutable_access_method() { - - return _impl_.access_method_.Mutable(GetArenaForAllocation()); -} -inline std::string* Constraint::release_access_method() { - // @@protoc_insertion_point(field_release:pg_query.Constraint.access_method) - return _impl_.access_method_.Release(); -} -inline void Constraint::set_allocated_access_method(std::string* access_method) { - if (access_method != nullptr) { - - } else { - - } - _impl_.access_method_.SetAllocated(access_method, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.access_method_.IsDefault()) { - _impl_.access_method_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.Constraint.access_method) -} - -// .pg_query.Node where_clause = 19 [json_name = "where_clause"]; -inline bool Constraint::_internal_has_where_clause() const { - return this != internal_default_instance() && _impl_.where_clause_ != nullptr; -} -inline bool Constraint::has_where_clause() const { - return _internal_has_where_clause(); -} -inline void Constraint::clear_where_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.where_clause_ != nullptr) { - delete _impl_.where_clause_; - } - _impl_.where_clause_ = nullptr; -} -inline const ::pg_query::Node& Constraint::_internal_where_clause() const { - const ::pg_query::Node* p = _impl_.where_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& Constraint::where_clause() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.where_clause) - return _internal_where_clause(); -} -inline void Constraint::unsafe_arena_set_allocated_where_clause( - ::pg_query::Node* where_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.where_clause_); - } - _impl_.where_clause_ = where_clause; - if (where_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Constraint.where_clause) -} -inline ::pg_query::Node* Constraint::release_where_clause() { - - ::pg_query::Node* temp = _impl_.where_clause_; - _impl_.where_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* Constraint::unsafe_arena_release_where_clause() { - // @@protoc_insertion_point(field_release:pg_query.Constraint.where_clause) - - ::pg_query::Node* temp = _impl_.where_clause_; - _impl_.where_clause_ = nullptr; - return temp; -} -inline ::pg_query::Node* Constraint::_internal_mutable_where_clause() { - - if (_impl_.where_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.where_clause_ = p; - } - return _impl_.where_clause_; -} -inline ::pg_query::Node* Constraint::mutable_where_clause() { - ::pg_query::Node* _msg = _internal_mutable_where_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.Constraint.where_clause) - return _msg; -} -inline void Constraint::set_allocated_where_clause(::pg_query::Node* where_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.where_clause_; - } - if (where_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(where_clause); - if (message_arena != submessage_arena) { - where_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, where_clause, submessage_arena); - } - - } else { - - } - _impl_.where_clause_ = where_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.Constraint.where_clause) -} - -// .pg_query.RangeVar pktable = 20 [json_name = "pktable"]; -inline bool Constraint::_internal_has_pktable() const { - return this != internal_default_instance() && _impl_.pktable_ != nullptr; -} -inline bool Constraint::has_pktable() const { - return _internal_has_pktable(); -} -inline void Constraint::clear_pktable() { - if (GetArenaForAllocation() == nullptr && _impl_.pktable_ != nullptr) { - delete _impl_.pktable_; - } - _impl_.pktable_ = nullptr; -} -inline const ::pg_query::RangeVar& Constraint::_internal_pktable() const { - const ::pg_query::RangeVar* p = _impl_.pktable_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& Constraint::pktable() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.pktable) - return _internal_pktable(); -} -inline void Constraint::unsafe_arena_set_allocated_pktable( - ::pg_query::RangeVar* pktable) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pktable_); - } - _impl_.pktable_ = pktable; - if (pktable) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.Constraint.pktable) -} -inline ::pg_query::RangeVar* Constraint::release_pktable() { - - ::pg_query::RangeVar* temp = _impl_.pktable_; - _impl_.pktable_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* Constraint::unsafe_arena_release_pktable() { - // @@protoc_insertion_point(field_release:pg_query.Constraint.pktable) - - ::pg_query::RangeVar* temp = _impl_.pktable_; - _impl_.pktable_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* Constraint::_internal_mutable_pktable() { - - if (_impl_.pktable_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.pktable_ = p; - } - return _impl_.pktable_; -} -inline ::pg_query::RangeVar* Constraint::mutable_pktable() { - ::pg_query::RangeVar* _msg = _internal_mutable_pktable(); - // @@protoc_insertion_point(field_mutable:pg_query.Constraint.pktable) - return _msg; -} -inline void Constraint::set_allocated_pktable(::pg_query::RangeVar* pktable) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.pktable_; - } - if (pktable) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(pktable); - if (message_arena != submessage_arena) { - pktable = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, pktable, submessage_arena); - } - - } else { - - } - _impl_.pktable_ = pktable; - // @@protoc_insertion_point(field_set_allocated:pg_query.Constraint.pktable) -} - -// repeated .pg_query.Node fk_attrs = 21 [json_name = "fk_attrs"]; -inline int Constraint::_internal_fk_attrs_size() const { - return _impl_.fk_attrs_.size(); -} -inline int Constraint::fk_attrs_size() const { - return _internal_fk_attrs_size(); -} -inline void Constraint::clear_fk_attrs() { - _impl_.fk_attrs_.Clear(); -} -inline ::pg_query::Node* Constraint::mutable_fk_attrs(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Constraint.fk_attrs) - return _impl_.fk_attrs_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Constraint::mutable_fk_attrs() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Constraint.fk_attrs) - return &_impl_.fk_attrs_; -} -inline const ::pg_query::Node& Constraint::_internal_fk_attrs(int index) const { - return _impl_.fk_attrs_.Get(index); -} -inline const ::pg_query::Node& Constraint::fk_attrs(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.fk_attrs) - return _internal_fk_attrs(index); -} -inline ::pg_query::Node* Constraint::_internal_add_fk_attrs() { - return _impl_.fk_attrs_.Add(); -} -inline ::pg_query::Node* Constraint::add_fk_attrs() { - ::pg_query::Node* _add = _internal_add_fk_attrs(); - // @@protoc_insertion_point(field_add:pg_query.Constraint.fk_attrs) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Constraint::fk_attrs() const { - // @@protoc_insertion_point(field_list:pg_query.Constraint.fk_attrs) - return _impl_.fk_attrs_; -} - -// repeated .pg_query.Node pk_attrs = 22 [json_name = "pk_attrs"]; -inline int Constraint::_internal_pk_attrs_size() const { - return _impl_.pk_attrs_.size(); -} -inline int Constraint::pk_attrs_size() const { - return _internal_pk_attrs_size(); -} -inline void Constraint::clear_pk_attrs() { - _impl_.pk_attrs_.Clear(); -} -inline ::pg_query::Node* Constraint::mutable_pk_attrs(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Constraint.pk_attrs) - return _impl_.pk_attrs_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Constraint::mutable_pk_attrs() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Constraint.pk_attrs) - return &_impl_.pk_attrs_; -} -inline const ::pg_query::Node& Constraint::_internal_pk_attrs(int index) const { - return _impl_.pk_attrs_.Get(index); -} -inline const ::pg_query::Node& Constraint::pk_attrs(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.pk_attrs) - return _internal_pk_attrs(index); -} -inline ::pg_query::Node* Constraint::_internal_add_pk_attrs() { - return _impl_.pk_attrs_.Add(); -} -inline ::pg_query::Node* Constraint::add_pk_attrs() { - ::pg_query::Node* _add = _internal_add_pk_attrs(); - // @@protoc_insertion_point(field_add:pg_query.Constraint.pk_attrs) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Constraint::pk_attrs() const { - // @@protoc_insertion_point(field_list:pg_query.Constraint.pk_attrs) - return _impl_.pk_attrs_; -} - -// string fk_matchtype = 23 [json_name = "fk_matchtype"]; -inline void Constraint::clear_fk_matchtype() { - _impl_.fk_matchtype_.ClearToEmpty(); -} -inline const std::string& Constraint::fk_matchtype() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.fk_matchtype) - return _internal_fk_matchtype(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Constraint::set_fk_matchtype(ArgT0&& arg0, ArgT... args) { - - _impl_.fk_matchtype_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.Constraint.fk_matchtype) -} -inline std::string* Constraint::mutable_fk_matchtype() { - std::string* _s = _internal_mutable_fk_matchtype(); - // @@protoc_insertion_point(field_mutable:pg_query.Constraint.fk_matchtype) - return _s; -} -inline const std::string& Constraint::_internal_fk_matchtype() const { - return _impl_.fk_matchtype_.Get(); -} -inline void Constraint::_internal_set_fk_matchtype(const std::string& value) { - - _impl_.fk_matchtype_.Set(value, GetArenaForAllocation()); -} -inline std::string* Constraint::_internal_mutable_fk_matchtype() { - - return _impl_.fk_matchtype_.Mutable(GetArenaForAllocation()); -} -inline std::string* Constraint::release_fk_matchtype() { - // @@protoc_insertion_point(field_release:pg_query.Constraint.fk_matchtype) - return _impl_.fk_matchtype_.Release(); -} -inline void Constraint::set_allocated_fk_matchtype(std::string* fk_matchtype) { - if (fk_matchtype != nullptr) { - - } else { - - } - _impl_.fk_matchtype_.SetAllocated(fk_matchtype, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.fk_matchtype_.IsDefault()) { - _impl_.fk_matchtype_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.Constraint.fk_matchtype) -} - -// string fk_upd_action = 24 [json_name = "fk_upd_action"]; -inline void Constraint::clear_fk_upd_action() { - _impl_.fk_upd_action_.ClearToEmpty(); -} -inline const std::string& Constraint::fk_upd_action() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.fk_upd_action) - return _internal_fk_upd_action(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Constraint::set_fk_upd_action(ArgT0&& arg0, ArgT... args) { - - _impl_.fk_upd_action_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.Constraint.fk_upd_action) -} -inline std::string* Constraint::mutable_fk_upd_action() { - std::string* _s = _internal_mutable_fk_upd_action(); - // @@protoc_insertion_point(field_mutable:pg_query.Constraint.fk_upd_action) - return _s; -} -inline const std::string& Constraint::_internal_fk_upd_action() const { - return _impl_.fk_upd_action_.Get(); -} -inline void Constraint::_internal_set_fk_upd_action(const std::string& value) { - - _impl_.fk_upd_action_.Set(value, GetArenaForAllocation()); -} -inline std::string* Constraint::_internal_mutable_fk_upd_action() { - - return _impl_.fk_upd_action_.Mutable(GetArenaForAllocation()); -} -inline std::string* Constraint::release_fk_upd_action() { - // @@protoc_insertion_point(field_release:pg_query.Constraint.fk_upd_action) - return _impl_.fk_upd_action_.Release(); -} -inline void Constraint::set_allocated_fk_upd_action(std::string* fk_upd_action) { - if (fk_upd_action != nullptr) { - - } else { - - } - _impl_.fk_upd_action_.SetAllocated(fk_upd_action, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.fk_upd_action_.IsDefault()) { - _impl_.fk_upd_action_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.Constraint.fk_upd_action) -} - -// string fk_del_action = 25 [json_name = "fk_del_action"]; -inline void Constraint::clear_fk_del_action() { - _impl_.fk_del_action_.ClearToEmpty(); -} -inline const std::string& Constraint::fk_del_action() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.fk_del_action) - return _internal_fk_del_action(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Constraint::set_fk_del_action(ArgT0&& arg0, ArgT... args) { - - _impl_.fk_del_action_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.Constraint.fk_del_action) -} -inline std::string* Constraint::mutable_fk_del_action() { - std::string* _s = _internal_mutable_fk_del_action(); - // @@protoc_insertion_point(field_mutable:pg_query.Constraint.fk_del_action) - return _s; -} -inline const std::string& Constraint::_internal_fk_del_action() const { - return _impl_.fk_del_action_.Get(); -} -inline void Constraint::_internal_set_fk_del_action(const std::string& value) { - - _impl_.fk_del_action_.Set(value, GetArenaForAllocation()); -} -inline std::string* Constraint::_internal_mutable_fk_del_action() { - - return _impl_.fk_del_action_.Mutable(GetArenaForAllocation()); -} -inline std::string* Constraint::release_fk_del_action() { - // @@protoc_insertion_point(field_release:pg_query.Constraint.fk_del_action) - return _impl_.fk_del_action_.Release(); -} -inline void Constraint::set_allocated_fk_del_action(std::string* fk_del_action) { - if (fk_del_action != nullptr) { - - } else { - - } - _impl_.fk_del_action_.SetAllocated(fk_del_action, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.fk_del_action_.IsDefault()) { - _impl_.fk_del_action_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.Constraint.fk_del_action) -} - -// repeated .pg_query.Node fk_del_set_cols = 26 [json_name = "fk_del_set_cols"]; -inline int Constraint::_internal_fk_del_set_cols_size() const { - return _impl_.fk_del_set_cols_.size(); -} -inline int Constraint::fk_del_set_cols_size() const { - return _internal_fk_del_set_cols_size(); -} -inline void Constraint::clear_fk_del_set_cols() { - _impl_.fk_del_set_cols_.Clear(); -} -inline ::pg_query::Node* Constraint::mutable_fk_del_set_cols(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Constraint.fk_del_set_cols) - return _impl_.fk_del_set_cols_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Constraint::mutable_fk_del_set_cols() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Constraint.fk_del_set_cols) - return &_impl_.fk_del_set_cols_; -} -inline const ::pg_query::Node& Constraint::_internal_fk_del_set_cols(int index) const { - return _impl_.fk_del_set_cols_.Get(index); -} -inline const ::pg_query::Node& Constraint::fk_del_set_cols(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.fk_del_set_cols) - return _internal_fk_del_set_cols(index); -} -inline ::pg_query::Node* Constraint::_internal_add_fk_del_set_cols() { - return _impl_.fk_del_set_cols_.Add(); -} -inline ::pg_query::Node* Constraint::add_fk_del_set_cols() { - ::pg_query::Node* _add = _internal_add_fk_del_set_cols(); - // @@protoc_insertion_point(field_add:pg_query.Constraint.fk_del_set_cols) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Constraint::fk_del_set_cols() const { - // @@protoc_insertion_point(field_list:pg_query.Constraint.fk_del_set_cols) - return _impl_.fk_del_set_cols_; -} - -// repeated .pg_query.Node old_conpfeqop = 27 [json_name = "old_conpfeqop"]; -inline int Constraint::_internal_old_conpfeqop_size() const { - return _impl_.old_conpfeqop_.size(); -} -inline int Constraint::old_conpfeqop_size() const { - return _internal_old_conpfeqop_size(); -} -inline void Constraint::clear_old_conpfeqop() { - _impl_.old_conpfeqop_.Clear(); -} -inline ::pg_query::Node* Constraint::mutable_old_conpfeqop(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.Constraint.old_conpfeqop) - return _impl_.old_conpfeqop_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -Constraint::mutable_old_conpfeqop() { - // @@protoc_insertion_point(field_mutable_list:pg_query.Constraint.old_conpfeqop) - return &_impl_.old_conpfeqop_; -} -inline const ::pg_query::Node& Constraint::_internal_old_conpfeqop(int index) const { - return _impl_.old_conpfeqop_.Get(index); -} -inline const ::pg_query::Node& Constraint::old_conpfeqop(int index) const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.old_conpfeqop) - return _internal_old_conpfeqop(index); -} -inline ::pg_query::Node* Constraint::_internal_add_old_conpfeqop() { - return _impl_.old_conpfeqop_.Add(); -} -inline ::pg_query::Node* Constraint::add_old_conpfeqop() { - ::pg_query::Node* _add = _internal_add_old_conpfeqop(); - // @@protoc_insertion_point(field_add:pg_query.Constraint.old_conpfeqop) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -Constraint::old_conpfeqop() const { - // @@protoc_insertion_point(field_list:pg_query.Constraint.old_conpfeqop) - return _impl_.old_conpfeqop_; -} - -// uint32 old_pktable_oid = 28 [json_name = "old_pktable_oid"]; -inline void Constraint::clear_old_pktable_oid() { - _impl_.old_pktable_oid_ = 0u; -} -inline uint32_t Constraint::_internal_old_pktable_oid() const { - return _impl_.old_pktable_oid_; -} -inline uint32_t Constraint::old_pktable_oid() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.old_pktable_oid) - return _internal_old_pktable_oid(); -} -inline void Constraint::_internal_set_old_pktable_oid(uint32_t value) { - - _impl_.old_pktable_oid_ = value; -} -inline void Constraint::set_old_pktable_oid(uint32_t value) { - _internal_set_old_pktable_oid(value); - // @@protoc_insertion_point(field_set:pg_query.Constraint.old_pktable_oid) -} - -// bool skip_validation = 29 [json_name = "skip_validation"]; -inline void Constraint::clear_skip_validation() { - _impl_.skip_validation_ = false; -} -inline bool Constraint::_internal_skip_validation() const { - return _impl_.skip_validation_; -} -inline bool Constraint::skip_validation() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.skip_validation) - return _internal_skip_validation(); -} -inline void Constraint::_internal_set_skip_validation(bool value) { - - _impl_.skip_validation_ = value; -} -inline void Constraint::set_skip_validation(bool value) { - _internal_set_skip_validation(value); - // @@protoc_insertion_point(field_set:pg_query.Constraint.skip_validation) -} - -// bool initially_valid = 30 [json_name = "initially_valid"]; -inline void Constraint::clear_initially_valid() { - _impl_.initially_valid_ = false; -} -inline bool Constraint::_internal_initially_valid() const { - return _impl_.initially_valid_; -} -inline bool Constraint::initially_valid() const { - // @@protoc_insertion_point(field_get:pg_query.Constraint.initially_valid) - return _internal_initially_valid(); -} -inline void Constraint::_internal_set_initially_valid(bool value) { - - _impl_.initially_valid_ = value; -} -inline void Constraint::set_initially_valid(bool value) { - _internal_set_initially_valid(value); - // @@protoc_insertion_point(field_set:pg_query.Constraint.initially_valid) -} - -// ------------------------------------------------------------------- - -// DefElem - -// string defnamespace = 1 [json_name = "defnamespace"]; -inline void DefElem::clear_defnamespace() { - _impl_.defnamespace_.ClearToEmpty(); -} -inline const std::string& DefElem::defnamespace() const { - // @@protoc_insertion_point(field_get:pg_query.DefElem.defnamespace) - return _internal_defnamespace(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void DefElem::set_defnamespace(ArgT0&& arg0, ArgT... args) { - - _impl_.defnamespace_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.DefElem.defnamespace) -} -inline std::string* DefElem::mutable_defnamespace() { - std::string* _s = _internal_mutable_defnamespace(); - // @@protoc_insertion_point(field_mutable:pg_query.DefElem.defnamespace) - return _s; -} -inline const std::string& DefElem::_internal_defnamespace() const { - return _impl_.defnamespace_.Get(); -} -inline void DefElem::_internal_set_defnamespace(const std::string& value) { - - _impl_.defnamespace_.Set(value, GetArenaForAllocation()); -} -inline std::string* DefElem::_internal_mutable_defnamespace() { - - return _impl_.defnamespace_.Mutable(GetArenaForAllocation()); -} -inline std::string* DefElem::release_defnamespace() { - // @@protoc_insertion_point(field_release:pg_query.DefElem.defnamespace) - return _impl_.defnamespace_.Release(); -} -inline void DefElem::set_allocated_defnamespace(std::string* defnamespace) { - if (defnamespace != nullptr) { - - } else { - - } - _impl_.defnamespace_.SetAllocated(defnamespace, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.defnamespace_.IsDefault()) { - _impl_.defnamespace_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.DefElem.defnamespace) -} - -// string defname = 2 [json_name = "defname"]; -inline void DefElem::clear_defname() { - _impl_.defname_.ClearToEmpty(); -} -inline const std::string& DefElem::defname() const { - // @@protoc_insertion_point(field_get:pg_query.DefElem.defname) - return _internal_defname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void DefElem::set_defname(ArgT0&& arg0, ArgT... args) { - - _impl_.defname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.DefElem.defname) -} -inline std::string* DefElem::mutable_defname() { - std::string* _s = _internal_mutable_defname(); - // @@protoc_insertion_point(field_mutable:pg_query.DefElem.defname) - return _s; -} -inline const std::string& DefElem::_internal_defname() const { - return _impl_.defname_.Get(); -} -inline void DefElem::_internal_set_defname(const std::string& value) { - - _impl_.defname_.Set(value, GetArenaForAllocation()); -} -inline std::string* DefElem::_internal_mutable_defname() { - - return _impl_.defname_.Mutable(GetArenaForAllocation()); -} -inline std::string* DefElem::release_defname() { - // @@protoc_insertion_point(field_release:pg_query.DefElem.defname) - return _impl_.defname_.Release(); -} -inline void DefElem::set_allocated_defname(std::string* defname) { - if (defname != nullptr) { - - } else { - - } - _impl_.defname_.SetAllocated(defname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.defname_.IsDefault()) { - _impl_.defname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.DefElem.defname) -} - -// .pg_query.Node arg = 3 [json_name = "arg"]; -inline bool DefElem::_internal_has_arg() const { - return this != internal_default_instance() && _impl_.arg_ != nullptr; -} -inline bool DefElem::has_arg() const { - return _internal_has_arg(); -} -inline void DefElem::clear_arg() { - if (GetArenaForAllocation() == nullptr && _impl_.arg_ != nullptr) { - delete _impl_.arg_; - } - _impl_.arg_ = nullptr; -} -inline const ::pg_query::Node& DefElem::_internal_arg() const { - const ::pg_query::Node* p = _impl_.arg_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& DefElem::arg() const { - // @@protoc_insertion_point(field_get:pg_query.DefElem.arg) - return _internal_arg(); -} -inline void DefElem::unsafe_arena_set_allocated_arg( - ::pg_query::Node* arg) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arg_); - } - _impl_.arg_ = arg; - if (arg) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.DefElem.arg) -} -inline ::pg_query::Node* DefElem::release_arg() { - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* DefElem::unsafe_arena_release_arg() { - // @@protoc_insertion_point(field_release:pg_query.DefElem.arg) - - ::pg_query::Node* temp = _impl_.arg_; - _impl_.arg_ = nullptr; - return temp; -} -inline ::pg_query::Node* DefElem::_internal_mutable_arg() { - - if (_impl_.arg_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.arg_ = p; - } - return _impl_.arg_; -} -inline ::pg_query::Node* DefElem::mutable_arg() { - ::pg_query::Node* _msg = _internal_mutable_arg(); - // @@protoc_insertion_point(field_mutable:pg_query.DefElem.arg) - return _msg; -} -inline void DefElem::set_allocated_arg(::pg_query::Node* arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.arg_; - } - if (arg) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(arg); - if (message_arena != submessage_arena) { - arg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, arg, submessage_arena); - } - - } else { - - } - _impl_.arg_ = arg; - // @@protoc_insertion_point(field_set_allocated:pg_query.DefElem.arg) -} - -// .pg_query.DefElemAction defaction = 4 [json_name = "defaction"]; -inline void DefElem::clear_defaction() { - _impl_.defaction_ = 0; -} -inline ::pg_query::DefElemAction DefElem::_internal_defaction() const { - return static_cast< ::pg_query::DefElemAction >(_impl_.defaction_); -} -inline ::pg_query::DefElemAction DefElem::defaction() const { - // @@protoc_insertion_point(field_get:pg_query.DefElem.defaction) - return _internal_defaction(); -} -inline void DefElem::_internal_set_defaction(::pg_query::DefElemAction value) { - - _impl_.defaction_ = value; -} -inline void DefElem::set_defaction(::pg_query::DefElemAction value) { - _internal_set_defaction(value); - // @@protoc_insertion_point(field_set:pg_query.DefElem.defaction) -} - -// int32 location = 5 [json_name = "location"]; -inline void DefElem::clear_location() { - _impl_.location_ = 0; -} -inline int32_t DefElem::_internal_location() const { - return _impl_.location_; -} -inline int32_t DefElem::location() const { - // @@protoc_insertion_point(field_get:pg_query.DefElem.location) - return _internal_location(); -} -inline void DefElem::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void DefElem::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.DefElem.location) -} - -// ------------------------------------------------------------------- - -// RangeTblEntry - -// .pg_query.RTEKind rtekind = 1 [json_name = "rtekind"]; -inline void RangeTblEntry::clear_rtekind() { - _impl_.rtekind_ = 0; -} -inline ::pg_query::RTEKind RangeTblEntry::_internal_rtekind() const { - return static_cast< ::pg_query::RTEKind >(_impl_.rtekind_); -} -inline ::pg_query::RTEKind RangeTblEntry::rtekind() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.rtekind) - return _internal_rtekind(); -} -inline void RangeTblEntry::_internal_set_rtekind(::pg_query::RTEKind value) { - - _impl_.rtekind_ = value; -} -inline void RangeTblEntry::set_rtekind(::pg_query::RTEKind value) { - _internal_set_rtekind(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.rtekind) -} - -// uint32 relid = 2 [json_name = "relid"]; -inline void RangeTblEntry::clear_relid() { - _impl_.relid_ = 0u; -} -inline uint32_t RangeTblEntry::_internal_relid() const { - return _impl_.relid_; -} -inline uint32_t RangeTblEntry::relid() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.relid) - return _internal_relid(); -} -inline void RangeTblEntry::_internal_set_relid(uint32_t value) { - - _impl_.relid_ = value; -} -inline void RangeTblEntry::set_relid(uint32_t value) { - _internal_set_relid(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.relid) -} - -// string relkind = 3 [json_name = "relkind"]; -inline void RangeTblEntry::clear_relkind() { - _impl_.relkind_.ClearToEmpty(); -} -inline const std::string& RangeTblEntry::relkind() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.relkind) - return _internal_relkind(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void RangeTblEntry::set_relkind(ArgT0&& arg0, ArgT... args) { - - _impl_.relkind_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.relkind) -} -inline std::string* RangeTblEntry::mutable_relkind() { - std::string* _s = _internal_mutable_relkind(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblEntry.relkind) - return _s; -} -inline const std::string& RangeTblEntry::_internal_relkind() const { - return _impl_.relkind_.Get(); -} -inline void RangeTblEntry::_internal_set_relkind(const std::string& value) { - - _impl_.relkind_.Set(value, GetArenaForAllocation()); -} -inline std::string* RangeTblEntry::_internal_mutable_relkind() { - - return _impl_.relkind_.Mutable(GetArenaForAllocation()); -} -inline std::string* RangeTblEntry::release_relkind() { - // @@protoc_insertion_point(field_release:pg_query.RangeTblEntry.relkind) - return _impl_.relkind_.Release(); -} -inline void RangeTblEntry::set_allocated_relkind(std::string* relkind) { - if (relkind != nullptr) { - - } else { - - } - _impl_.relkind_.SetAllocated(relkind, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.relkind_.IsDefault()) { - _impl_.relkind_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeTblEntry.relkind) -} - -// int32 rellockmode = 4 [json_name = "rellockmode"]; -inline void RangeTblEntry::clear_rellockmode() { - _impl_.rellockmode_ = 0; -} -inline int32_t RangeTblEntry::_internal_rellockmode() const { - return _impl_.rellockmode_; -} -inline int32_t RangeTblEntry::rellockmode() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.rellockmode) - return _internal_rellockmode(); -} -inline void RangeTblEntry::_internal_set_rellockmode(int32_t value) { - - _impl_.rellockmode_ = value; -} -inline void RangeTblEntry::set_rellockmode(int32_t value) { - _internal_set_rellockmode(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.rellockmode) -} - -// .pg_query.TableSampleClause tablesample = 5 [json_name = "tablesample"]; -inline bool RangeTblEntry::_internal_has_tablesample() const { - return this != internal_default_instance() && _impl_.tablesample_ != nullptr; -} -inline bool RangeTblEntry::has_tablesample() const { - return _internal_has_tablesample(); -} -inline void RangeTblEntry::clear_tablesample() { - if (GetArenaForAllocation() == nullptr && _impl_.tablesample_ != nullptr) { - delete _impl_.tablesample_; - } - _impl_.tablesample_ = nullptr; -} -inline const ::pg_query::TableSampleClause& RangeTblEntry::_internal_tablesample() const { - const ::pg_query::TableSampleClause* p = _impl_.tablesample_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_TableSampleClause_default_instance_); -} -inline const ::pg_query::TableSampleClause& RangeTblEntry::tablesample() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.tablesample) - return _internal_tablesample(); -} -inline void RangeTblEntry::unsafe_arena_set_allocated_tablesample( - ::pg_query::TableSampleClause* tablesample) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.tablesample_); - } - _impl_.tablesample_ = tablesample; - if (tablesample) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RangeTblEntry.tablesample) -} -inline ::pg_query::TableSampleClause* RangeTblEntry::release_tablesample() { - - ::pg_query::TableSampleClause* temp = _impl_.tablesample_; - _impl_.tablesample_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::TableSampleClause* RangeTblEntry::unsafe_arena_release_tablesample() { - // @@protoc_insertion_point(field_release:pg_query.RangeTblEntry.tablesample) - - ::pg_query::TableSampleClause* temp = _impl_.tablesample_; - _impl_.tablesample_ = nullptr; - return temp; -} -inline ::pg_query::TableSampleClause* RangeTblEntry::_internal_mutable_tablesample() { - - if (_impl_.tablesample_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::TableSampleClause>(GetArenaForAllocation()); - _impl_.tablesample_ = p; - } - return _impl_.tablesample_; -} -inline ::pg_query::TableSampleClause* RangeTblEntry::mutable_tablesample() { - ::pg_query::TableSampleClause* _msg = _internal_mutable_tablesample(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblEntry.tablesample) - return _msg; -} -inline void RangeTblEntry::set_allocated_tablesample(::pg_query::TableSampleClause* tablesample) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.tablesample_; - } - if (tablesample) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(tablesample); - if (message_arena != submessage_arena) { - tablesample = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, tablesample, submessage_arena); - } - - } else { - - } - _impl_.tablesample_ = tablesample; - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeTblEntry.tablesample) -} - -// .pg_query.Query subquery = 6 [json_name = "subquery"]; -inline bool RangeTblEntry::_internal_has_subquery() const { - return this != internal_default_instance() && _impl_.subquery_ != nullptr; -} -inline bool RangeTblEntry::has_subquery() const { - return _internal_has_subquery(); -} -inline void RangeTblEntry::clear_subquery() { - if (GetArenaForAllocation() == nullptr && _impl_.subquery_ != nullptr) { - delete _impl_.subquery_; - } - _impl_.subquery_ = nullptr; -} -inline const ::pg_query::Query& RangeTblEntry::_internal_subquery() const { - const ::pg_query::Query* p = _impl_.subquery_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Query_default_instance_); -} -inline const ::pg_query::Query& RangeTblEntry::subquery() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.subquery) - return _internal_subquery(); -} -inline void RangeTblEntry::unsafe_arena_set_allocated_subquery( - ::pg_query::Query* subquery) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.subquery_); - } - _impl_.subquery_ = subquery; - if (subquery) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RangeTblEntry.subquery) -} -inline ::pg_query::Query* RangeTblEntry::release_subquery() { - - ::pg_query::Query* temp = _impl_.subquery_; - _impl_.subquery_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Query* RangeTblEntry::unsafe_arena_release_subquery() { - // @@protoc_insertion_point(field_release:pg_query.RangeTblEntry.subquery) - - ::pg_query::Query* temp = _impl_.subquery_; - _impl_.subquery_ = nullptr; - return temp; -} -inline ::pg_query::Query* RangeTblEntry::_internal_mutable_subquery() { - - if (_impl_.subquery_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Query>(GetArenaForAllocation()); - _impl_.subquery_ = p; - } - return _impl_.subquery_; -} -inline ::pg_query::Query* RangeTblEntry::mutable_subquery() { - ::pg_query::Query* _msg = _internal_mutable_subquery(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblEntry.subquery) - return _msg; -} -inline void RangeTblEntry::set_allocated_subquery(::pg_query::Query* subquery) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.subquery_; - } - if (subquery) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(subquery); - if (message_arena != submessage_arena) { - subquery = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, subquery, submessage_arena); - } - - } else { - - } - _impl_.subquery_ = subquery; - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeTblEntry.subquery) -} - -// bool security_barrier = 7 [json_name = "security_barrier"]; -inline void RangeTblEntry::clear_security_barrier() { - _impl_.security_barrier_ = false; -} -inline bool RangeTblEntry::_internal_security_barrier() const { - return _impl_.security_barrier_; -} -inline bool RangeTblEntry::security_barrier() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.security_barrier) - return _internal_security_barrier(); -} -inline void RangeTblEntry::_internal_set_security_barrier(bool value) { - - _impl_.security_barrier_ = value; -} -inline void RangeTblEntry::set_security_barrier(bool value) { - _internal_set_security_barrier(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.security_barrier) -} - -// .pg_query.JoinType jointype = 8 [json_name = "jointype"]; -inline void RangeTblEntry::clear_jointype() { - _impl_.jointype_ = 0; -} -inline ::pg_query::JoinType RangeTblEntry::_internal_jointype() const { - return static_cast< ::pg_query::JoinType >(_impl_.jointype_); -} -inline ::pg_query::JoinType RangeTblEntry::jointype() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.jointype) - return _internal_jointype(); -} -inline void RangeTblEntry::_internal_set_jointype(::pg_query::JoinType value) { - - _impl_.jointype_ = value; -} -inline void RangeTblEntry::set_jointype(::pg_query::JoinType value) { - _internal_set_jointype(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.jointype) -} - -// int32 joinmergedcols = 9 [json_name = "joinmergedcols"]; -inline void RangeTblEntry::clear_joinmergedcols() { - _impl_.joinmergedcols_ = 0; -} -inline int32_t RangeTblEntry::_internal_joinmergedcols() const { - return _impl_.joinmergedcols_; -} -inline int32_t RangeTblEntry::joinmergedcols() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.joinmergedcols) - return _internal_joinmergedcols(); -} -inline void RangeTblEntry::_internal_set_joinmergedcols(int32_t value) { - - _impl_.joinmergedcols_ = value; -} -inline void RangeTblEntry::set_joinmergedcols(int32_t value) { - _internal_set_joinmergedcols(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.joinmergedcols) -} - -// repeated .pg_query.Node joinaliasvars = 10 [json_name = "joinaliasvars"]; -inline int RangeTblEntry::_internal_joinaliasvars_size() const { - return _impl_.joinaliasvars_.size(); -} -inline int RangeTblEntry::joinaliasvars_size() const { - return _internal_joinaliasvars_size(); -} -inline void RangeTblEntry::clear_joinaliasvars() { - _impl_.joinaliasvars_.Clear(); -} -inline ::pg_query::Node* RangeTblEntry::mutable_joinaliasvars(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblEntry.joinaliasvars) - return _impl_.joinaliasvars_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RangeTblEntry::mutable_joinaliasvars() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTblEntry.joinaliasvars) - return &_impl_.joinaliasvars_; -} -inline const ::pg_query::Node& RangeTblEntry::_internal_joinaliasvars(int index) const { - return _impl_.joinaliasvars_.Get(index); -} -inline const ::pg_query::Node& RangeTblEntry::joinaliasvars(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.joinaliasvars) - return _internal_joinaliasvars(index); -} -inline ::pg_query::Node* RangeTblEntry::_internal_add_joinaliasvars() { - return _impl_.joinaliasvars_.Add(); -} -inline ::pg_query::Node* RangeTblEntry::add_joinaliasvars() { - ::pg_query::Node* _add = _internal_add_joinaliasvars(); - // @@protoc_insertion_point(field_add:pg_query.RangeTblEntry.joinaliasvars) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RangeTblEntry::joinaliasvars() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTblEntry.joinaliasvars) - return _impl_.joinaliasvars_; -} - -// repeated .pg_query.Node joinleftcols = 11 [json_name = "joinleftcols"]; -inline int RangeTblEntry::_internal_joinleftcols_size() const { - return _impl_.joinleftcols_.size(); -} -inline int RangeTblEntry::joinleftcols_size() const { - return _internal_joinleftcols_size(); -} -inline void RangeTblEntry::clear_joinleftcols() { - _impl_.joinleftcols_.Clear(); -} -inline ::pg_query::Node* RangeTblEntry::mutable_joinleftcols(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblEntry.joinleftcols) - return _impl_.joinleftcols_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RangeTblEntry::mutable_joinleftcols() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTblEntry.joinleftcols) - return &_impl_.joinleftcols_; -} -inline const ::pg_query::Node& RangeTblEntry::_internal_joinleftcols(int index) const { - return _impl_.joinleftcols_.Get(index); -} -inline const ::pg_query::Node& RangeTblEntry::joinleftcols(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.joinleftcols) - return _internal_joinleftcols(index); -} -inline ::pg_query::Node* RangeTblEntry::_internal_add_joinleftcols() { - return _impl_.joinleftcols_.Add(); -} -inline ::pg_query::Node* RangeTblEntry::add_joinleftcols() { - ::pg_query::Node* _add = _internal_add_joinleftcols(); - // @@protoc_insertion_point(field_add:pg_query.RangeTblEntry.joinleftcols) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RangeTblEntry::joinleftcols() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTblEntry.joinleftcols) - return _impl_.joinleftcols_; -} - -// repeated .pg_query.Node joinrightcols = 12 [json_name = "joinrightcols"]; -inline int RangeTblEntry::_internal_joinrightcols_size() const { - return _impl_.joinrightcols_.size(); -} -inline int RangeTblEntry::joinrightcols_size() const { - return _internal_joinrightcols_size(); -} -inline void RangeTblEntry::clear_joinrightcols() { - _impl_.joinrightcols_.Clear(); -} -inline ::pg_query::Node* RangeTblEntry::mutable_joinrightcols(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblEntry.joinrightcols) - return _impl_.joinrightcols_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RangeTblEntry::mutable_joinrightcols() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTblEntry.joinrightcols) - return &_impl_.joinrightcols_; -} -inline const ::pg_query::Node& RangeTblEntry::_internal_joinrightcols(int index) const { - return _impl_.joinrightcols_.Get(index); -} -inline const ::pg_query::Node& RangeTblEntry::joinrightcols(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.joinrightcols) - return _internal_joinrightcols(index); -} -inline ::pg_query::Node* RangeTblEntry::_internal_add_joinrightcols() { - return _impl_.joinrightcols_.Add(); -} -inline ::pg_query::Node* RangeTblEntry::add_joinrightcols() { - ::pg_query::Node* _add = _internal_add_joinrightcols(); - // @@protoc_insertion_point(field_add:pg_query.RangeTblEntry.joinrightcols) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RangeTblEntry::joinrightcols() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTblEntry.joinrightcols) - return _impl_.joinrightcols_; -} - -// .pg_query.Alias join_using_alias = 13 [json_name = "join_using_alias"]; -inline bool RangeTblEntry::_internal_has_join_using_alias() const { - return this != internal_default_instance() && _impl_.join_using_alias_ != nullptr; -} -inline bool RangeTblEntry::has_join_using_alias() const { - return _internal_has_join_using_alias(); -} -inline void RangeTblEntry::clear_join_using_alias() { - if (GetArenaForAllocation() == nullptr && _impl_.join_using_alias_ != nullptr) { - delete _impl_.join_using_alias_; - } - _impl_.join_using_alias_ = nullptr; -} -inline const ::pg_query::Alias& RangeTblEntry::_internal_join_using_alias() const { - const ::pg_query::Alias* p = _impl_.join_using_alias_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Alias_default_instance_); -} -inline const ::pg_query::Alias& RangeTblEntry::join_using_alias() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.join_using_alias) - return _internal_join_using_alias(); -} -inline void RangeTblEntry::unsafe_arena_set_allocated_join_using_alias( - ::pg_query::Alias* join_using_alias) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.join_using_alias_); - } - _impl_.join_using_alias_ = join_using_alias; - if (join_using_alias) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RangeTblEntry.join_using_alias) -} -inline ::pg_query::Alias* RangeTblEntry::release_join_using_alias() { - - ::pg_query::Alias* temp = _impl_.join_using_alias_; - _impl_.join_using_alias_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Alias* RangeTblEntry::unsafe_arena_release_join_using_alias() { - // @@protoc_insertion_point(field_release:pg_query.RangeTblEntry.join_using_alias) - - ::pg_query::Alias* temp = _impl_.join_using_alias_; - _impl_.join_using_alias_ = nullptr; - return temp; -} -inline ::pg_query::Alias* RangeTblEntry::_internal_mutable_join_using_alias() { - - if (_impl_.join_using_alias_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Alias>(GetArenaForAllocation()); - _impl_.join_using_alias_ = p; - } - return _impl_.join_using_alias_; -} -inline ::pg_query::Alias* RangeTblEntry::mutable_join_using_alias() { - ::pg_query::Alias* _msg = _internal_mutable_join_using_alias(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblEntry.join_using_alias) - return _msg; -} -inline void RangeTblEntry::set_allocated_join_using_alias(::pg_query::Alias* join_using_alias) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.join_using_alias_; - } - if (join_using_alias) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(join_using_alias); - if (message_arena != submessage_arena) { - join_using_alias = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, join_using_alias, submessage_arena); - } - - } else { - - } - _impl_.join_using_alias_ = join_using_alias; - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeTblEntry.join_using_alias) -} - -// repeated .pg_query.Node functions = 14 [json_name = "functions"]; -inline int RangeTblEntry::_internal_functions_size() const { - return _impl_.functions_.size(); -} -inline int RangeTblEntry::functions_size() const { - return _internal_functions_size(); -} -inline void RangeTblEntry::clear_functions() { - _impl_.functions_.Clear(); -} -inline ::pg_query::Node* RangeTblEntry::mutable_functions(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblEntry.functions) - return _impl_.functions_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RangeTblEntry::mutable_functions() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTblEntry.functions) - return &_impl_.functions_; -} -inline const ::pg_query::Node& RangeTblEntry::_internal_functions(int index) const { - return _impl_.functions_.Get(index); -} -inline const ::pg_query::Node& RangeTblEntry::functions(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.functions) - return _internal_functions(index); -} -inline ::pg_query::Node* RangeTblEntry::_internal_add_functions() { - return _impl_.functions_.Add(); -} -inline ::pg_query::Node* RangeTblEntry::add_functions() { - ::pg_query::Node* _add = _internal_add_functions(); - // @@protoc_insertion_point(field_add:pg_query.RangeTblEntry.functions) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RangeTblEntry::functions() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTblEntry.functions) - return _impl_.functions_; -} - -// bool funcordinality = 15 [json_name = "funcordinality"]; -inline void RangeTblEntry::clear_funcordinality() { - _impl_.funcordinality_ = false; -} -inline bool RangeTblEntry::_internal_funcordinality() const { - return _impl_.funcordinality_; -} -inline bool RangeTblEntry::funcordinality() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.funcordinality) - return _internal_funcordinality(); -} -inline void RangeTblEntry::_internal_set_funcordinality(bool value) { - - _impl_.funcordinality_ = value; -} -inline void RangeTblEntry::set_funcordinality(bool value) { - _internal_set_funcordinality(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.funcordinality) -} - -// .pg_query.TableFunc tablefunc = 16 [json_name = "tablefunc"]; -inline bool RangeTblEntry::_internal_has_tablefunc() const { - return this != internal_default_instance() && _impl_.tablefunc_ != nullptr; -} -inline bool RangeTblEntry::has_tablefunc() const { - return _internal_has_tablefunc(); -} -inline void RangeTblEntry::clear_tablefunc() { - if (GetArenaForAllocation() == nullptr && _impl_.tablefunc_ != nullptr) { - delete _impl_.tablefunc_; - } - _impl_.tablefunc_ = nullptr; -} -inline const ::pg_query::TableFunc& RangeTblEntry::_internal_tablefunc() const { - const ::pg_query::TableFunc* p = _impl_.tablefunc_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_TableFunc_default_instance_); -} -inline const ::pg_query::TableFunc& RangeTblEntry::tablefunc() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.tablefunc) - return _internal_tablefunc(); -} -inline void RangeTblEntry::unsafe_arena_set_allocated_tablefunc( - ::pg_query::TableFunc* tablefunc) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.tablefunc_); - } - _impl_.tablefunc_ = tablefunc; - if (tablefunc) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RangeTblEntry.tablefunc) -} -inline ::pg_query::TableFunc* RangeTblEntry::release_tablefunc() { - - ::pg_query::TableFunc* temp = _impl_.tablefunc_; - _impl_.tablefunc_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::TableFunc* RangeTblEntry::unsafe_arena_release_tablefunc() { - // @@protoc_insertion_point(field_release:pg_query.RangeTblEntry.tablefunc) - - ::pg_query::TableFunc* temp = _impl_.tablefunc_; - _impl_.tablefunc_ = nullptr; - return temp; -} -inline ::pg_query::TableFunc* RangeTblEntry::_internal_mutable_tablefunc() { - - if (_impl_.tablefunc_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::TableFunc>(GetArenaForAllocation()); - _impl_.tablefunc_ = p; - } - return _impl_.tablefunc_; -} -inline ::pg_query::TableFunc* RangeTblEntry::mutable_tablefunc() { - ::pg_query::TableFunc* _msg = _internal_mutable_tablefunc(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblEntry.tablefunc) - return _msg; -} -inline void RangeTblEntry::set_allocated_tablefunc(::pg_query::TableFunc* tablefunc) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.tablefunc_; - } - if (tablefunc) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(tablefunc); - if (message_arena != submessage_arena) { - tablefunc = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, tablefunc, submessage_arena); - } - - } else { - - } - _impl_.tablefunc_ = tablefunc; - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeTblEntry.tablefunc) -} - -// repeated .pg_query.Node values_lists = 17 [json_name = "values_lists"]; -inline int RangeTblEntry::_internal_values_lists_size() const { - return _impl_.values_lists_.size(); -} -inline int RangeTblEntry::values_lists_size() const { - return _internal_values_lists_size(); -} -inline void RangeTblEntry::clear_values_lists() { - _impl_.values_lists_.Clear(); -} -inline ::pg_query::Node* RangeTblEntry::mutable_values_lists(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblEntry.values_lists) - return _impl_.values_lists_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RangeTblEntry::mutable_values_lists() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTblEntry.values_lists) - return &_impl_.values_lists_; -} -inline const ::pg_query::Node& RangeTblEntry::_internal_values_lists(int index) const { - return _impl_.values_lists_.Get(index); -} -inline const ::pg_query::Node& RangeTblEntry::values_lists(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.values_lists) - return _internal_values_lists(index); -} -inline ::pg_query::Node* RangeTblEntry::_internal_add_values_lists() { - return _impl_.values_lists_.Add(); -} -inline ::pg_query::Node* RangeTblEntry::add_values_lists() { - ::pg_query::Node* _add = _internal_add_values_lists(); - // @@protoc_insertion_point(field_add:pg_query.RangeTblEntry.values_lists) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RangeTblEntry::values_lists() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTblEntry.values_lists) - return _impl_.values_lists_; -} - -// string ctename = 18 [json_name = "ctename"]; -inline void RangeTblEntry::clear_ctename() { - _impl_.ctename_.ClearToEmpty(); -} -inline const std::string& RangeTblEntry::ctename() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.ctename) - return _internal_ctename(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void RangeTblEntry::set_ctename(ArgT0&& arg0, ArgT... args) { - - _impl_.ctename_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.ctename) -} -inline std::string* RangeTblEntry::mutable_ctename() { - std::string* _s = _internal_mutable_ctename(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblEntry.ctename) - return _s; -} -inline const std::string& RangeTblEntry::_internal_ctename() const { - return _impl_.ctename_.Get(); -} -inline void RangeTblEntry::_internal_set_ctename(const std::string& value) { - - _impl_.ctename_.Set(value, GetArenaForAllocation()); -} -inline std::string* RangeTblEntry::_internal_mutable_ctename() { - - return _impl_.ctename_.Mutable(GetArenaForAllocation()); -} -inline std::string* RangeTblEntry::release_ctename() { - // @@protoc_insertion_point(field_release:pg_query.RangeTblEntry.ctename) - return _impl_.ctename_.Release(); -} -inline void RangeTblEntry::set_allocated_ctename(std::string* ctename) { - if (ctename != nullptr) { - - } else { - - } - _impl_.ctename_.SetAllocated(ctename, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.ctename_.IsDefault()) { - _impl_.ctename_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeTblEntry.ctename) -} - -// uint32 ctelevelsup = 19 [json_name = "ctelevelsup"]; -inline void RangeTblEntry::clear_ctelevelsup() { - _impl_.ctelevelsup_ = 0u; -} -inline uint32_t RangeTblEntry::_internal_ctelevelsup() const { - return _impl_.ctelevelsup_; -} -inline uint32_t RangeTblEntry::ctelevelsup() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.ctelevelsup) - return _internal_ctelevelsup(); -} -inline void RangeTblEntry::_internal_set_ctelevelsup(uint32_t value) { - - _impl_.ctelevelsup_ = value; -} -inline void RangeTblEntry::set_ctelevelsup(uint32_t value) { - _internal_set_ctelevelsup(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.ctelevelsup) -} - -// bool self_reference = 20 [json_name = "self_reference"]; -inline void RangeTblEntry::clear_self_reference() { - _impl_.self_reference_ = false; -} -inline bool RangeTblEntry::_internal_self_reference() const { - return _impl_.self_reference_; -} -inline bool RangeTblEntry::self_reference() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.self_reference) - return _internal_self_reference(); -} -inline void RangeTblEntry::_internal_set_self_reference(bool value) { - - _impl_.self_reference_ = value; -} -inline void RangeTblEntry::set_self_reference(bool value) { - _internal_set_self_reference(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.self_reference) -} - -// repeated .pg_query.Node coltypes = 21 [json_name = "coltypes"]; -inline int RangeTblEntry::_internal_coltypes_size() const { - return _impl_.coltypes_.size(); -} -inline int RangeTblEntry::coltypes_size() const { - return _internal_coltypes_size(); -} -inline void RangeTblEntry::clear_coltypes() { - _impl_.coltypes_.Clear(); -} -inline ::pg_query::Node* RangeTblEntry::mutable_coltypes(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblEntry.coltypes) - return _impl_.coltypes_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RangeTblEntry::mutable_coltypes() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTblEntry.coltypes) - return &_impl_.coltypes_; -} -inline const ::pg_query::Node& RangeTblEntry::_internal_coltypes(int index) const { - return _impl_.coltypes_.Get(index); -} -inline const ::pg_query::Node& RangeTblEntry::coltypes(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.coltypes) - return _internal_coltypes(index); -} -inline ::pg_query::Node* RangeTblEntry::_internal_add_coltypes() { - return _impl_.coltypes_.Add(); -} -inline ::pg_query::Node* RangeTblEntry::add_coltypes() { - ::pg_query::Node* _add = _internal_add_coltypes(); - // @@protoc_insertion_point(field_add:pg_query.RangeTblEntry.coltypes) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RangeTblEntry::coltypes() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTblEntry.coltypes) - return _impl_.coltypes_; -} - -// repeated .pg_query.Node coltypmods = 22 [json_name = "coltypmods"]; -inline int RangeTblEntry::_internal_coltypmods_size() const { - return _impl_.coltypmods_.size(); -} -inline int RangeTblEntry::coltypmods_size() const { - return _internal_coltypmods_size(); -} -inline void RangeTblEntry::clear_coltypmods() { - _impl_.coltypmods_.Clear(); -} -inline ::pg_query::Node* RangeTblEntry::mutable_coltypmods(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblEntry.coltypmods) - return _impl_.coltypmods_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RangeTblEntry::mutable_coltypmods() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTblEntry.coltypmods) - return &_impl_.coltypmods_; -} -inline const ::pg_query::Node& RangeTblEntry::_internal_coltypmods(int index) const { - return _impl_.coltypmods_.Get(index); -} -inline const ::pg_query::Node& RangeTblEntry::coltypmods(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.coltypmods) - return _internal_coltypmods(index); -} -inline ::pg_query::Node* RangeTblEntry::_internal_add_coltypmods() { - return _impl_.coltypmods_.Add(); -} -inline ::pg_query::Node* RangeTblEntry::add_coltypmods() { - ::pg_query::Node* _add = _internal_add_coltypmods(); - // @@protoc_insertion_point(field_add:pg_query.RangeTblEntry.coltypmods) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RangeTblEntry::coltypmods() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTblEntry.coltypmods) - return _impl_.coltypmods_; -} - -// repeated .pg_query.Node colcollations = 23 [json_name = "colcollations"]; -inline int RangeTblEntry::_internal_colcollations_size() const { - return _impl_.colcollations_.size(); -} -inline int RangeTblEntry::colcollations_size() const { - return _internal_colcollations_size(); -} -inline void RangeTblEntry::clear_colcollations() { - _impl_.colcollations_.Clear(); -} -inline ::pg_query::Node* RangeTblEntry::mutable_colcollations(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblEntry.colcollations) - return _impl_.colcollations_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RangeTblEntry::mutable_colcollations() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTblEntry.colcollations) - return &_impl_.colcollations_; -} -inline const ::pg_query::Node& RangeTblEntry::_internal_colcollations(int index) const { - return _impl_.colcollations_.Get(index); -} -inline const ::pg_query::Node& RangeTblEntry::colcollations(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.colcollations) - return _internal_colcollations(index); -} -inline ::pg_query::Node* RangeTblEntry::_internal_add_colcollations() { - return _impl_.colcollations_.Add(); -} -inline ::pg_query::Node* RangeTblEntry::add_colcollations() { - ::pg_query::Node* _add = _internal_add_colcollations(); - // @@protoc_insertion_point(field_add:pg_query.RangeTblEntry.colcollations) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RangeTblEntry::colcollations() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTblEntry.colcollations) - return _impl_.colcollations_; -} - -// string enrname = 24 [json_name = "enrname"]; -inline void RangeTblEntry::clear_enrname() { - _impl_.enrname_.ClearToEmpty(); -} -inline const std::string& RangeTblEntry::enrname() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.enrname) - return _internal_enrname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void RangeTblEntry::set_enrname(ArgT0&& arg0, ArgT... args) { - - _impl_.enrname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.enrname) -} -inline std::string* RangeTblEntry::mutable_enrname() { - std::string* _s = _internal_mutable_enrname(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblEntry.enrname) - return _s; -} -inline const std::string& RangeTblEntry::_internal_enrname() const { - return _impl_.enrname_.Get(); -} -inline void RangeTblEntry::_internal_set_enrname(const std::string& value) { - - _impl_.enrname_.Set(value, GetArenaForAllocation()); -} -inline std::string* RangeTblEntry::_internal_mutable_enrname() { - - return _impl_.enrname_.Mutable(GetArenaForAllocation()); -} -inline std::string* RangeTblEntry::release_enrname() { - // @@protoc_insertion_point(field_release:pg_query.RangeTblEntry.enrname) - return _impl_.enrname_.Release(); -} -inline void RangeTblEntry::set_allocated_enrname(std::string* enrname) { - if (enrname != nullptr) { - - } else { - - } - _impl_.enrname_.SetAllocated(enrname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.enrname_.IsDefault()) { - _impl_.enrname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeTblEntry.enrname) -} - -// double enrtuples = 25 [json_name = "enrtuples"]; -inline void RangeTblEntry::clear_enrtuples() { - _impl_.enrtuples_ = 0; -} -inline double RangeTblEntry::_internal_enrtuples() const { - return _impl_.enrtuples_; -} -inline double RangeTblEntry::enrtuples() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.enrtuples) - return _internal_enrtuples(); -} -inline void RangeTblEntry::_internal_set_enrtuples(double value) { - - _impl_.enrtuples_ = value; -} -inline void RangeTblEntry::set_enrtuples(double value) { - _internal_set_enrtuples(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.enrtuples) -} - -// .pg_query.Alias alias = 26 [json_name = "alias"]; -inline bool RangeTblEntry::_internal_has_alias() const { - return this != internal_default_instance() && _impl_.alias_ != nullptr; -} -inline bool RangeTblEntry::has_alias() const { - return _internal_has_alias(); -} -inline void RangeTblEntry::clear_alias() { - if (GetArenaForAllocation() == nullptr && _impl_.alias_ != nullptr) { - delete _impl_.alias_; - } - _impl_.alias_ = nullptr; -} -inline const ::pg_query::Alias& RangeTblEntry::_internal_alias() const { - const ::pg_query::Alias* p = _impl_.alias_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Alias_default_instance_); -} -inline const ::pg_query::Alias& RangeTblEntry::alias() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.alias) - return _internal_alias(); -} -inline void RangeTblEntry::unsafe_arena_set_allocated_alias( - ::pg_query::Alias* alias) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.alias_); - } - _impl_.alias_ = alias; - if (alias) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RangeTblEntry.alias) -} -inline ::pg_query::Alias* RangeTblEntry::release_alias() { - - ::pg_query::Alias* temp = _impl_.alias_; - _impl_.alias_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Alias* RangeTblEntry::unsafe_arena_release_alias() { - // @@protoc_insertion_point(field_release:pg_query.RangeTblEntry.alias) - - ::pg_query::Alias* temp = _impl_.alias_; - _impl_.alias_ = nullptr; - return temp; -} -inline ::pg_query::Alias* RangeTblEntry::_internal_mutable_alias() { - - if (_impl_.alias_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Alias>(GetArenaForAllocation()); - _impl_.alias_ = p; - } - return _impl_.alias_; -} -inline ::pg_query::Alias* RangeTblEntry::mutable_alias() { - ::pg_query::Alias* _msg = _internal_mutable_alias(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblEntry.alias) - return _msg; -} -inline void RangeTblEntry::set_allocated_alias(::pg_query::Alias* alias) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.alias_; - } - if (alias) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(alias); - if (message_arena != submessage_arena) { - alias = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, alias, submessage_arena); - } - - } else { - - } - _impl_.alias_ = alias; - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeTblEntry.alias) -} - -// .pg_query.Alias eref = 27 [json_name = "eref"]; -inline bool RangeTblEntry::_internal_has_eref() const { - return this != internal_default_instance() && _impl_.eref_ != nullptr; -} -inline bool RangeTblEntry::has_eref() const { - return _internal_has_eref(); -} -inline void RangeTblEntry::clear_eref() { - if (GetArenaForAllocation() == nullptr && _impl_.eref_ != nullptr) { - delete _impl_.eref_; - } - _impl_.eref_ = nullptr; -} -inline const ::pg_query::Alias& RangeTblEntry::_internal_eref() const { - const ::pg_query::Alias* p = _impl_.eref_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Alias_default_instance_); -} -inline const ::pg_query::Alias& RangeTblEntry::eref() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.eref) - return _internal_eref(); -} -inline void RangeTblEntry::unsafe_arena_set_allocated_eref( - ::pg_query::Alias* eref) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.eref_); - } - _impl_.eref_ = eref; - if (eref) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RangeTblEntry.eref) -} -inline ::pg_query::Alias* RangeTblEntry::release_eref() { - - ::pg_query::Alias* temp = _impl_.eref_; - _impl_.eref_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Alias* RangeTblEntry::unsafe_arena_release_eref() { - // @@protoc_insertion_point(field_release:pg_query.RangeTblEntry.eref) - - ::pg_query::Alias* temp = _impl_.eref_; - _impl_.eref_ = nullptr; - return temp; -} -inline ::pg_query::Alias* RangeTblEntry::_internal_mutable_eref() { - - if (_impl_.eref_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Alias>(GetArenaForAllocation()); - _impl_.eref_ = p; - } - return _impl_.eref_; -} -inline ::pg_query::Alias* RangeTblEntry::mutable_eref() { - ::pg_query::Alias* _msg = _internal_mutable_eref(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblEntry.eref) - return _msg; -} -inline void RangeTblEntry::set_allocated_eref(::pg_query::Alias* eref) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.eref_; - } - if (eref) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(eref); - if (message_arena != submessage_arena) { - eref = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, eref, submessage_arena); - } - - } else { - - } - _impl_.eref_ = eref; - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeTblEntry.eref) -} - -// bool lateral = 28 [json_name = "lateral"]; -inline void RangeTblEntry::clear_lateral() { - _impl_.lateral_ = false; -} -inline bool RangeTblEntry::_internal_lateral() const { - return _impl_.lateral_; -} -inline bool RangeTblEntry::lateral() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.lateral) - return _internal_lateral(); -} -inline void RangeTblEntry::_internal_set_lateral(bool value) { - - _impl_.lateral_ = value; -} -inline void RangeTblEntry::set_lateral(bool value) { - _internal_set_lateral(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.lateral) -} - -// bool inh = 29 [json_name = "inh"]; -inline void RangeTblEntry::clear_inh() { - _impl_.inh_ = false; -} -inline bool RangeTblEntry::_internal_inh() const { - return _impl_.inh_; -} -inline bool RangeTblEntry::inh() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.inh) - return _internal_inh(); -} -inline void RangeTblEntry::_internal_set_inh(bool value) { - - _impl_.inh_ = value; -} -inline void RangeTblEntry::set_inh(bool value) { - _internal_set_inh(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.inh) -} - -// bool in_from_cl = 30 [json_name = "inFromCl"]; -inline void RangeTblEntry::clear_in_from_cl() { - _impl_.in_from_cl_ = false; -} -inline bool RangeTblEntry::_internal_in_from_cl() const { - return _impl_.in_from_cl_; -} -inline bool RangeTblEntry::in_from_cl() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.in_from_cl) - return _internal_in_from_cl(); -} -inline void RangeTblEntry::_internal_set_in_from_cl(bool value) { - - _impl_.in_from_cl_ = value; -} -inline void RangeTblEntry::set_in_from_cl(bool value) { - _internal_set_in_from_cl(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.in_from_cl) -} - -// uint32 required_perms = 31 [json_name = "requiredPerms"]; -inline void RangeTblEntry::clear_required_perms() { - _impl_.required_perms_ = 0u; -} -inline uint32_t RangeTblEntry::_internal_required_perms() const { - return _impl_.required_perms_; -} -inline uint32_t RangeTblEntry::required_perms() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.required_perms) - return _internal_required_perms(); -} -inline void RangeTblEntry::_internal_set_required_perms(uint32_t value) { - - _impl_.required_perms_ = value; -} -inline void RangeTblEntry::set_required_perms(uint32_t value) { - _internal_set_required_perms(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.required_perms) -} - -// uint32 check_as_user = 32 [json_name = "checkAsUser"]; -inline void RangeTblEntry::clear_check_as_user() { - _impl_.check_as_user_ = 0u; -} -inline uint32_t RangeTblEntry::_internal_check_as_user() const { - return _impl_.check_as_user_; -} -inline uint32_t RangeTblEntry::check_as_user() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.check_as_user) - return _internal_check_as_user(); -} -inline void RangeTblEntry::_internal_set_check_as_user(uint32_t value) { - - _impl_.check_as_user_ = value; -} -inline void RangeTblEntry::set_check_as_user(uint32_t value) { - _internal_set_check_as_user(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.check_as_user) -} - -// repeated uint64 selected_cols = 33 [json_name = "selectedCols"]; -inline int RangeTblEntry::_internal_selected_cols_size() const { - return _impl_.selected_cols_.size(); -} -inline int RangeTblEntry::selected_cols_size() const { - return _internal_selected_cols_size(); -} -inline void RangeTblEntry::clear_selected_cols() { - _impl_.selected_cols_.Clear(); -} -inline uint64_t RangeTblEntry::_internal_selected_cols(int index) const { - return _impl_.selected_cols_.Get(index); -} -inline uint64_t RangeTblEntry::selected_cols(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.selected_cols) - return _internal_selected_cols(index); -} -inline void RangeTblEntry::set_selected_cols(int index, uint64_t value) { - _impl_.selected_cols_.Set(index, value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.selected_cols) -} -inline void RangeTblEntry::_internal_add_selected_cols(uint64_t value) { - _impl_.selected_cols_.Add(value); -} -inline void RangeTblEntry::add_selected_cols(uint64_t value) { - _internal_add_selected_cols(value); - // @@protoc_insertion_point(field_add:pg_query.RangeTblEntry.selected_cols) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& -RangeTblEntry::_internal_selected_cols() const { - return _impl_.selected_cols_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& -RangeTblEntry::selected_cols() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTblEntry.selected_cols) - return _internal_selected_cols(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* -RangeTblEntry::_internal_mutable_selected_cols() { - return &_impl_.selected_cols_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* -RangeTblEntry::mutable_selected_cols() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTblEntry.selected_cols) - return _internal_mutable_selected_cols(); -} - -// repeated uint64 inserted_cols = 34 [json_name = "insertedCols"]; -inline int RangeTblEntry::_internal_inserted_cols_size() const { - return _impl_.inserted_cols_.size(); -} -inline int RangeTblEntry::inserted_cols_size() const { - return _internal_inserted_cols_size(); -} -inline void RangeTblEntry::clear_inserted_cols() { - _impl_.inserted_cols_.Clear(); -} -inline uint64_t RangeTblEntry::_internal_inserted_cols(int index) const { - return _impl_.inserted_cols_.Get(index); -} -inline uint64_t RangeTblEntry::inserted_cols(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.inserted_cols) - return _internal_inserted_cols(index); -} -inline void RangeTblEntry::set_inserted_cols(int index, uint64_t value) { - _impl_.inserted_cols_.Set(index, value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.inserted_cols) -} -inline void RangeTblEntry::_internal_add_inserted_cols(uint64_t value) { - _impl_.inserted_cols_.Add(value); -} -inline void RangeTblEntry::add_inserted_cols(uint64_t value) { - _internal_add_inserted_cols(value); - // @@protoc_insertion_point(field_add:pg_query.RangeTblEntry.inserted_cols) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& -RangeTblEntry::_internal_inserted_cols() const { - return _impl_.inserted_cols_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& -RangeTblEntry::inserted_cols() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTblEntry.inserted_cols) - return _internal_inserted_cols(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* -RangeTblEntry::_internal_mutable_inserted_cols() { - return &_impl_.inserted_cols_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* -RangeTblEntry::mutable_inserted_cols() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTblEntry.inserted_cols) - return _internal_mutable_inserted_cols(); -} - -// repeated uint64 updated_cols = 35 [json_name = "updatedCols"]; -inline int RangeTblEntry::_internal_updated_cols_size() const { - return _impl_.updated_cols_.size(); -} -inline int RangeTblEntry::updated_cols_size() const { - return _internal_updated_cols_size(); -} -inline void RangeTblEntry::clear_updated_cols() { - _impl_.updated_cols_.Clear(); -} -inline uint64_t RangeTblEntry::_internal_updated_cols(int index) const { - return _impl_.updated_cols_.Get(index); -} -inline uint64_t RangeTblEntry::updated_cols(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.updated_cols) - return _internal_updated_cols(index); -} -inline void RangeTblEntry::set_updated_cols(int index, uint64_t value) { - _impl_.updated_cols_.Set(index, value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.updated_cols) -} -inline void RangeTblEntry::_internal_add_updated_cols(uint64_t value) { - _impl_.updated_cols_.Add(value); -} -inline void RangeTblEntry::add_updated_cols(uint64_t value) { - _internal_add_updated_cols(value); - // @@protoc_insertion_point(field_add:pg_query.RangeTblEntry.updated_cols) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& -RangeTblEntry::_internal_updated_cols() const { - return _impl_.updated_cols_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& -RangeTblEntry::updated_cols() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTblEntry.updated_cols) - return _internal_updated_cols(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* -RangeTblEntry::_internal_mutable_updated_cols() { - return &_impl_.updated_cols_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* -RangeTblEntry::mutable_updated_cols() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTblEntry.updated_cols) - return _internal_mutable_updated_cols(); -} - -// repeated uint64 extra_updated_cols = 36 [json_name = "extraUpdatedCols"]; -inline int RangeTblEntry::_internal_extra_updated_cols_size() const { - return _impl_.extra_updated_cols_.size(); -} -inline int RangeTblEntry::extra_updated_cols_size() const { - return _internal_extra_updated_cols_size(); -} -inline void RangeTblEntry::clear_extra_updated_cols() { - _impl_.extra_updated_cols_.Clear(); -} -inline uint64_t RangeTblEntry::_internal_extra_updated_cols(int index) const { - return _impl_.extra_updated_cols_.Get(index); -} -inline uint64_t RangeTblEntry::extra_updated_cols(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.extra_updated_cols) - return _internal_extra_updated_cols(index); -} -inline void RangeTblEntry::set_extra_updated_cols(int index, uint64_t value) { - _impl_.extra_updated_cols_.Set(index, value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblEntry.extra_updated_cols) -} -inline void RangeTblEntry::_internal_add_extra_updated_cols(uint64_t value) { - _impl_.extra_updated_cols_.Add(value); -} -inline void RangeTblEntry::add_extra_updated_cols(uint64_t value) { - _internal_add_extra_updated_cols(value); - // @@protoc_insertion_point(field_add:pg_query.RangeTblEntry.extra_updated_cols) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& -RangeTblEntry::_internal_extra_updated_cols() const { - return _impl_.extra_updated_cols_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& -RangeTblEntry::extra_updated_cols() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTblEntry.extra_updated_cols) - return _internal_extra_updated_cols(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* -RangeTblEntry::_internal_mutable_extra_updated_cols() { - return &_impl_.extra_updated_cols_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* -RangeTblEntry::mutable_extra_updated_cols() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTblEntry.extra_updated_cols) - return _internal_mutable_extra_updated_cols(); -} - -// repeated .pg_query.Node security_quals = 37 [json_name = "securityQuals"]; -inline int RangeTblEntry::_internal_security_quals_size() const { - return _impl_.security_quals_.size(); -} -inline int RangeTblEntry::security_quals_size() const { - return _internal_security_quals_size(); -} -inline void RangeTblEntry::clear_security_quals() { - _impl_.security_quals_.Clear(); -} -inline ::pg_query::Node* RangeTblEntry::mutable_security_quals(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblEntry.security_quals) - return _impl_.security_quals_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RangeTblEntry::mutable_security_quals() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTblEntry.security_quals) - return &_impl_.security_quals_; -} -inline const ::pg_query::Node& RangeTblEntry::_internal_security_quals(int index) const { - return _impl_.security_quals_.Get(index); -} -inline const ::pg_query::Node& RangeTblEntry::security_quals(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblEntry.security_quals) - return _internal_security_quals(index); -} -inline ::pg_query::Node* RangeTblEntry::_internal_add_security_quals() { - return _impl_.security_quals_.Add(); -} -inline ::pg_query::Node* RangeTblEntry::add_security_quals() { - ::pg_query::Node* _add = _internal_add_security_quals(); - // @@protoc_insertion_point(field_add:pg_query.RangeTblEntry.security_quals) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RangeTblEntry::security_quals() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTblEntry.security_quals) - return _impl_.security_quals_; -} - -// ------------------------------------------------------------------- - -// RangeTblFunction - -// .pg_query.Node funcexpr = 1 [json_name = "funcexpr"]; -inline bool RangeTblFunction::_internal_has_funcexpr() const { - return this != internal_default_instance() && _impl_.funcexpr_ != nullptr; -} -inline bool RangeTblFunction::has_funcexpr() const { - return _internal_has_funcexpr(); -} -inline void RangeTblFunction::clear_funcexpr() { - if (GetArenaForAllocation() == nullptr && _impl_.funcexpr_ != nullptr) { - delete _impl_.funcexpr_; - } - _impl_.funcexpr_ = nullptr; -} -inline const ::pg_query::Node& RangeTblFunction::_internal_funcexpr() const { - const ::pg_query::Node* p = _impl_.funcexpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& RangeTblFunction::funcexpr() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblFunction.funcexpr) - return _internal_funcexpr(); -} -inline void RangeTblFunction::unsafe_arena_set_allocated_funcexpr( - ::pg_query::Node* funcexpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.funcexpr_); - } - _impl_.funcexpr_ = funcexpr; - if (funcexpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.RangeTblFunction.funcexpr) -} -inline ::pg_query::Node* RangeTblFunction::release_funcexpr() { - - ::pg_query::Node* temp = _impl_.funcexpr_; - _impl_.funcexpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* RangeTblFunction::unsafe_arena_release_funcexpr() { - // @@protoc_insertion_point(field_release:pg_query.RangeTblFunction.funcexpr) - - ::pg_query::Node* temp = _impl_.funcexpr_; - _impl_.funcexpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* RangeTblFunction::_internal_mutable_funcexpr() { - - if (_impl_.funcexpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.funcexpr_ = p; - } - return _impl_.funcexpr_; -} -inline ::pg_query::Node* RangeTblFunction::mutable_funcexpr() { - ::pg_query::Node* _msg = _internal_mutable_funcexpr(); - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblFunction.funcexpr) - return _msg; -} -inline void RangeTblFunction::set_allocated_funcexpr(::pg_query::Node* funcexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.funcexpr_; - } - if (funcexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(funcexpr); - if (message_arena != submessage_arena) { - funcexpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, funcexpr, submessage_arena); - } - - } else { - - } - _impl_.funcexpr_ = funcexpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.RangeTblFunction.funcexpr) -} - -// int32 funccolcount = 2 [json_name = "funccolcount"]; -inline void RangeTblFunction::clear_funccolcount() { - _impl_.funccolcount_ = 0; -} -inline int32_t RangeTblFunction::_internal_funccolcount() const { - return _impl_.funccolcount_; -} -inline int32_t RangeTblFunction::funccolcount() const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblFunction.funccolcount) - return _internal_funccolcount(); -} -inline void RangeTblFunction::_internal_set_funccolcount(int32_t value) { - - _impl_.funccolcount_ = value; -} -inline void RangeTblFunction::set_funccolcount(int32_t value) { - _internal_set_funccolcount(value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblFunction.funccolcount) -} - -// repeated .pg_query.Node funccolnames = 3 [json_name = "funccolnames"]; -inline int RangeTblFunction::_internal_funccolnames_size() const { - return _impl_.funccolnames_.size(); -} -inline int RangeTblFunction::funccolnames_size() const { - return _internal_funccolnames_size(); -} -inline void RangeTblFunction::clear_funccolnames() { - _impl_.funccolnames_.Clear(); -} -inline ::pg_query::Node* RangeTblFunction::mutable_funccolnames(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblFunction.funccolnames) - return _impl_.funccolnames_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RangeTblFunction::mutable_funccolnames() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTblFunction.funccolnames) - return &_impl_.funccolnames_; -} -inline const ::pg_query::Node& RangeTblFunction::_internal_funccolnames(int index) const { - return _impl_.funccolnames_.Get(index); -} -inline const ::pg_query::Node& RangeTblFunction::funccolnames(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblFunction.funccolnames) - return _internal_funccolnames(index); -} -inline ::pg_query::Node* RangeTblFunction::_internal_add_funccolnames() { - return _impl_.funccolnames_.Add(); -} -inline ::pg_query::Node* RangeTblFunction::add_funccolnames() { - ::pg_query::Node* _add = _internal_add_funccolnames(); - // @@protoc_insertion_point(field_add:pg_query.RangeTblFunction.funccolnames) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RangeTblFunction::funccolnames() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTblFunction.funccolnames) - return _impl_.funccolnames_; -} - -// repeated .pg_query.Node funccoltypes = 4 [json_name = "funccoltypes"]; -inline int RangeTblFunction::_internal_funccoltypes_size() const { - return _impl_.funccoltypes_.size(); -} -inline int RangeTblFunction::funccoltypes_size() const { - return _internal_funccoltypes_size(); -} -inline void RangeTblFunction::clear_funccoltypes() { - _impl_.funccoltypes_.Clear(); -} -inline ::pg_query::Node* RangeTblFunction::mutable_funccoltypes(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblFunction.funccoltypes) - return _impl_.funccoltypes_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RangeTblFunction::mutable_funccoltypes() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTblFunction.funccoltypes) - return &_impl_.funccoltypes_; -} -inline const ::pg_query::Node& RangeTblFunction::_internal_funccoltypes(int index) const { - return _impl_.funccoltypes_.Get(index); -} -inline const ::pg_query::Node& RangeTblFunction::funccoltypes(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblFunction.funccoltypes) - return _internal_funccoltypes(index); -} -inline ::pg_query::Node* RangeTblFunction::_internal_add_funccoltypes() { - return _impl_.funccoltypes_.Add(); -} -inline ::pg_query::Node* RangeTblFunction::add_funccoltypes() { - ::pg_query::Node* _add = _internal_add_funccoltypes(); - // @@protoc_insertion_point(field_add:pg_query.RangeTblFunction.funccoltypes) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RangeTblFunction::funccoltypes() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTblFunction.funccoltypes) - return _impl_.funccoltypes_; -} - -// repeated .pg_query.Node funccoltypmods = 5 [json_name = "funccoltypmods"]; -inline int RangeTblFunction::_internal_funccoltypmods_size() const { - return _impl_.funccoltypmods_.size(); -} -inline int RangeTblFunction::funccoltypmods_size() const { - return _internal_funccoltypmods_size(); -} -inline void RangeTblFunction::clear_funccoltypmods() { - _impl_.funccoltypmods_.Clear(); -} -inline ::pg_query::Node* RangeTblFunction::mutable_funccoltypmods(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblFunction.funccoltypmods) - return _impl_.funccoltypmods_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RangeTblFunction::mutable_funccoltypmods() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTblFunction.funccoltypmods) - return &_impl_.funccoltypmods_; -} -inline const ::pg_query::Node& RangeTblFunction::_internal_funccoltypmods(int index) const { - return _impl_.funccoltypmods_.Get(index); -} -inline const ::pg_query::Node& RangeTblFunction::funccoltypmods(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblFunction.funccoltypmods) - return _internal_funccoltypmods(index); -} -inline ::pg_query::Node* RangeTblFunction::_internal_add_funccoltypmods() { - return _impl_.funccoltypmods_.Add(); -} -inline ::pg_query::Node* RangeTblFunction::add_funccoltypmods() { - ::pg_query::Node* _add = _internal_add_funccoltypmods(); - // @@protoc_insertion_point(field_add:pg_query.RangeTblFunction.funccoltypmods) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RangeTblFunction::funccoltypmods() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTblFunction.funccoltypmods) - return _impl_.funccoltypmods_; -} - -// repeated .pg_query.Node funccolcollations = 6 [json_name = "funccolcollations"]; -inline int RangeTblFunction::_internal_funccolcollations_size() const { - return _impl_.funccolcollations_.size(); -} -inline int RangeTblFunction::funccolcollations_size() const { - return _internal_funccolcollations_size(); -} -inline void RangeTblFunction::clear_funccolcollations() { - _impl_.funccolcollations_.Clear(); -} -inline ::pg_query::Node* RangeTblFunction::mutable_funccolcollations(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.RangeTblFunction.funccolcollations) - return _impl_.funccolcollations_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -RangeTblFunction::mutable_funccolcollations() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTblFunction.funccolcollations) - return &_impl_.funccolcollations_; -} -inline const ::pg_query::Node& RangeTblFunction::_internal_funccolcollations(int index) const { - return _impl_.funccolcollations_.Get(index); -} -inline const ::pg_query::Node& RangeTblFunction::funccolcollations(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblFunction.funccolcollations) - return _internal_funccolcollations(index); -} -inline ::pg_query::Node* RangeTblFunction::_internal_add_funccolcollations() { - return _impl_.funccolcollations_.Add(); -} -inline ::pg_query::Node* RangeTblFunction::add_funccolcollations() { - ::pg_query::Node* _add = _internal_add_funccolcollations(); - // @@protoc_insertion_point(field_add:pg_query.RangeTblFunction.funccolcollations) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -RangeTblFunction::funccolcollations() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTblFunction.funccolcollations) - return _impl_.funccolcollations_; -} - -// repeated uint64 funcparams = 7 [json_name = "funcparams"]; -inline int RangeTblFunction::_internal_funcparams_size() const { - return _impl_.funcparams_.size(); -} -inline int RangeTblFunction::funcparams_size() const { - return _internal_funcparams_size(); -} -inline void RangeTblFunction::clear_funcparams() { - _impl_.funcparams_.Clear(); -} -inline uint64_t RangeTblFunction::_internal_funcparams(int index) const { - return _impl_.funcparams_.Get(index); -} -inline uint64_t RangeTblFunction::funcparams(int index) const { - // @@protoc_insertion_point(field_get:pg_query.RangeTblFunction.funcparams) - return _internal_funcparams(index); -} -inline void RangeTblFunction::set_funcparams(int index, uint64_t value) { - _impl_.funcparams_.Set(index, value); - // @@protoc_insertion_point(field_set:pg_query.RangeTblFunction.funcparams) -} -inline void RangeTblFunction::_internal_add_funcparams(uint64_t value) { - _impl_.funcparams_.Add(value); -} -inline void RangeTblFunction::add_funcparams(uint64_t value) { - _internal_add_funcparams(value); - // @@protoc_insertion_point(field_add:pg_query.RangeTblFunction.funcparams) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& -RangeTblFunction::_internal_funcparams() const { - return _impl_.funcparams_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& -RangeTblFunction::funcparams() const { - // @@protoc_insertion_point(field_list:pg_query.RangeTblFunction.funcparams) - return _internal_funcparams(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* -RangeTblFunction::_internal_mutable_funcparams() { - return &_impl_.funcparams_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* -RangeTblFunction::mutable_funcparams() { - // @@protoc_insertion_point(field_mutable_list:pg_query.RangeTblFunction.funcparams) - return _internal_mutable_funcparams(); -} - -// ------------------------------------------------------------------- - -// TableSampleClause - -// uint32 tsmhandler = 1 [json_name = "tsmhandler"]; -inline void TableSampleClause::clear_tsmhandler() { - _impl_.tsmhandler_ = 0u; -} -inline uint32_t TableSampleClause::_internal_tsmhandler() const { - return _impl_.tsmhandler_; -} -inline uint32_t TableSampleClause::tsmhandler() const { - // @@protoc_insertion_point(field_get:pg_query.TableSampleClause.tsmhandler) - return _internal_tsmhandler(); -} -inline void TableSampleClause::_internal_set_tsmhandler(uint32_t value) { - - _impl_.tsmhandler_ = value; -} -inline void TableSampleClause::set_tsmhandler(uint32_t value) { - _internal_set_tsmhandler(value); - // @@protoc_insertion_point(field_set:pg_query.TableSampleClause.tsmhandler) -} - -// repeated .pg_query.Node args = 2 [json_name = "args"]; -inline int TableSampleClause::_internal_args_size() const { - return _impl_.args_.size(); -} -inline int TableSampleClause::args_size() const { - return _internal_args_size(); -} -inline void TableSampleClause::clear_args() { - _impl_.args_.Clear(); -} -inline ::pg_query::Node* TableSampleClause::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.TableSampleClause.args) - return _impl_.args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -TableSampleClause::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.TableSampleClause.args) - return &_impl_.args_; -} -inline const ::pg_query::Node& TableSampleClause::_internal_args(int index) const { - return _impl_.args_.Get(index); -} -inline const ::pg_query::Node& TableSampleClause::args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.TableSampleClause.args) - return _internal_args(index); -} -inline ::pg_query::Node* TableSampleClause::_internal_add_args() { - return _impl_.args_.Add(); -} -inline ::pg_query::Node* TableSampleClause::add_args() { - ::pg_query::Node* _add = _internal_add_args(); - // @@protoc_insertion_point(field_add:pg_query.TableSampleClause.args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -TableSampleClause::args() const { - // @@protoc_insertion_point(field_list:pg_query.TableSampleClause.args) - return _impl_.args_; -} - -// .pg_query.Node repeatable = 3 [json_name = "repeatable"]; -inline bool TableSampleClause::_internal_has_repeatable() const { - return this != internal_default_instance() && _impl_.repeatable_ != nullptr; -} -inline bool TableSampleClause::has_repeatable() const { - return _internal_has_repeatable(); -} -inline void TableSampleClause::clear_repeatable() { - if (GetArenaForAllocation() == nullptr && _impl_.repeatable_ != nullptr) { - delete _impl_.repeatable_; - } - _impl_.repeatable_ = nullptr; -} -inline const ::pg_query::Node& TableSampleClause::_internal_repeatable() const { - const ::pg_query::Node* p = _impl_.repeatable_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& TableSampleClause::repeatable() const { - // @@protoc_insertion_point(field_get:pg_query.TableSampleClause.repeatable) - return _internal_repeatable(); -} -inline void TableSampleClause::unsafe_arena_set_allocated_repeatable( - ::pg_query::Node* repeatable) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.repeatable_); - } - _impl_.repeatable_ = repeatable; - if (repeatable) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.TableSampleClause.repeatable) -} -inline ::pg_query::Node* TableSampleClause::release_repeatable() { - - ::pg_query::Node* temp = _impl_.repeatable_; - _impl_.repeatable_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* TableSampleClause::unsafe_arena_release_repeatable() { - // @@protoc_insertion_point(field_release:pg_query.TableSampleClause.repeatable) - - ::pg_query::Node* temp = _impl_.repeatable_; - _impl_.repeatable_ = nullptr; - return temp; -} -inline ::pg_query::Node* TableSampleClause::_internal_mutable_repeatable() { - - if (_impl_.repeatable_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.repeatable_ = p; - } - return _impl_.repeatable_; -} -inline ::pg_query::Node* TableSampleClause::mutable_repeatable() { - ::pg_query::Node* _msg = _internal_mutable_repeatable(); - // @@protoc_insertion_point(field_mutable:pg_query.TableSampleClause.repeatable) - return _msg; -} -inline void TableSampleClause::set_allocated_repeatable(::pg_query::Node* repeatable) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.repeatable_; - } - if (repeatable) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(repeatable); - if (message_arena != submessage_arena) { - repeatable = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, repeatable, submessage_arena); - } - - } else { - - } - _impl_.repeatable_ = repeatable; - // @@protoc_insertion_point(field_set_allocated:pg_query.TableSampleClause.repeatable) -} - -// ------------------------------------------------------------------- - -// WithCheckOption - -// .pg_query.WCOKind kind = 1 [json_name = "kind"]; -inline void WithCheckOption::clear_kind() { - _impl_.kind_ = 0; -} -inline ::pg_query::WCOKind WithCheckOption::_internal_kind() const { - return static_cast< ::pg_query::WCOKind >(_impl_.kind_); -} -inline ::pg_query::WCOKind WithCheckOption::kind() const { - // @@protoc_insertion_point(field_get:pg_query.WithCheckOption.kind) - return _internal_kind(); -} -inline void WithCheckOption::_internal_set_kind(::pg_query::WCOKind value) { - - _impl_.kind_ = value; -} -inline void WithCheckOption::set_kind(::pg_query::WCOKind value) { - _internal_set_kind(value); - // @@protoc_insertion_point(field_set:pg_query.WithCheckOption.kind) -} - -// string relname = 2 [json_name = "relname"]; -inline void WithCheckOption::clear_relname() { - _impl_.relname_.ClearToEmpty(); -} -inline const std::string& WithCheckOption::relname() const { - // @@protoc_insertion_point(field_get:pg_query.WithCheckOption.relname) - return _internal_relname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void WithCheckOption::set_relname(ArgT0&& arg0, ArgT... args) { - - _impl_.relname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.WithCheckOption.relname) -} -inline std::string* WithCheckOption::mutable_relname() { - std::string* _s = _internal_mutable_relname(); - // @@protoc_insertion_point(field_mutable:pg_query.WithCheckOption.relname) - return _s; -} -inline const std::string& WithCheckOption::_internal_relname() const { - return _impl_.relname_.Get(); -} -inline void WithCheckOption::_internal_set_relname(const std::string& value) { - - _impl_.relname_.Set(value, GetArenaForAllocation()); -} -inline std::string* WithCheckOption::_internal_mutable_relname() { - - return _impl_.relname_.Mutable(GetArenaForAllocation()); -} -inline std::string* WithCheckOption::release_relname() { - // @@protoc_insertion_point(field_release:pg_query.WithCheckOption.relname) - return _impl_.relname_.Release(); -} -inline void WithCheckOption::set_allocated_relname(std::string* relname) { - if (relname != nullptr) { - - } else { - - } - _impl_.relname_.SetAllocated(relname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.relname_.IsDefault()) { - _impl_.relname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.WithCheckOption.relname) -} - -// string polname = 3 [json_name = "polname"]; -inline void WithCheckOption::clear_polname() { - _impl_.polname_.ClearToEmpty(); -} -inline const std::string& WithCheckOption::polname() const { - // @@protoc_insertion_point(field_get:pg_query.WithCheckOption.polname) - return _internal_polname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void WithCheckOption::set_polname(ArgT0&& arg0, ArgT... args) { - - _impl_.polname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.WithCheckOption.polname) -} -inline std::string* WithCheckOption::mutable_polname() { - std::string* _s = _internal_mutable_polname(); - // @@protoc_insertion_point(field_mutable:pg_query.WithCheckOption.polname) - return _s; -} -inline const std::string& WithCheckOption::_internal_polname() const { - return _impl_.polname_.Get(); -} -inline void WithCheckOption::_internal_set_polname(const std::string& value) { - - _impl_.polname_.Set(value, GetArenaForAllocation()); -} -inline std::string* WithCheckOption::_internal_mutable_polname() { - - return _impl_.polname_.Mutable(GetArenaForAllocation()); -} -inline std::string* WithCheckOption::release_polname() { - // @@protoc_insertion_point(field_release:pg_query.WithCheckOption.polname) - return _impl_.polname_.Release(); -} -inline void WithCheckOption::set_allocated_polname(std::string* polname) { - if (polname != nullptr) { - - } else { - - } - _impl_.polname_.SetAllocated(polname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.polname_.IsDefault()) { - _impl_.polname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.WithCheckOption.polname) -} - -// .pg_query.Node qual = 4 [json_name = "qual"]; -inline bool WithCheckOption::_internal_has_qual() const { - return this != internal_default_instance() && _impl_.qual_ != nullptr; -} -inline bool WithCheckOption::has_qual() const { - return _internal_has_qual(); -} -inline void WithCheckOption::clear_qual() { - if (GetArenaForAllocation() == nullptr && _impl_.qual_ != nullptr) { - delete _impl_.qual_; - } - _impl_.qual_ = nullptr; -} -inline const ::pg_query::Node& WithCheckOption::_internal_qual() const { - const ::pg_query::Node* p = _impl_.qual_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& WithCheckOption::qual() const { - // @@protoc_insertion_point(field_get:pg_query.WithCheckOption.qual) - return _internal_qual(); -} -inline void WithCheckOption::unsafe_arena_set_allocated_qual( - ::pg_query::Node* qual) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.qual_); - } - _impl_.qual_ = qual; - if (qual) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.WithCheckOption.qual) -} -inline ::pg_query::Node* WithCheckOption::release_qual() { - - ::pg_query::Node* temp = _impl_.qual_; - _impl_.qual_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* WithCheckOption::unsafe_arena_release_qual() { - // @@protoc_insertion_point(field_release:pg_query.WithCheckOption.qual) - - ::pg_query::Node* temp = _impl_.qual_; - _impl_.qual_ = nullptr; - return temp; -} -inline ::pg_query::Node* WithCheckOption::_internal_mutable_qual() { - - if (_impl_.qual_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.qual_ = p; - } - return _impl_.qual_; -} -inline ::pg_query::Node* WithCheckOption::mutable_qual() { - ::pg_query::Node* _msg = _internal_mutable_qual(); - // @@protoc_insertion_point(field_mutable:pg_query.WithCheckOption.qual) - return _msg; -} -inline void WithCheckOption::set_allocated_qual(::pg_query::Node* qual) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.qual_; - } - if (qual) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(qual); - if (message_arena != submessage_arena) { - qual = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, qual, submessage_arena); - } - - } else { - - } - _impl_.qual_ = qual; - // @@protoc_insertion_point(field_set_allocated:pg_query.WithCheckOption.qual) -} - -// bool cascaded = 5 [json_name = "cascaded"]; -inline void WithCheckOption::clear_cascaded() { - _impl_.cascaded_ = false; -} -inline bool WithCheckOption::_internal_cascaded() const { - return _impl_.cascaded_; -} -inline bool WithCheckOption::cascaded() const { - // @@protoc_insertion_point(field_get:pg_query.WithCheckOption.cascaded) - return _internal_cascaded(); -} -inline void WithCheckOption::_internal_set_cascaded(bool value) { - - _impl_.cascaded_ = value; -} -inline void WithCheckOption::set_cascaded(bool value) { - _internal_set_cascaded(value); - // @@protoc_insertion_point(field_set:pg_query.WithCheckOption.cascaded) -} - -// ------------------------------------------------------------------- - -// SortGroupClause - -// uint32 tle_sort_group_ref = 1 [json_name = "tleSortGroupRef"]; -inline void SortGroupClause::clear_tle_sort_group_ref() { - _impl_.tle_sort_group_ref_ = 0u; -} -inline uint32_t SortGroupClause::_internal_tle_sort_group_ref() const { - return _impl_.tle_sort_group_ref_; -} -inline uint32_t SortGroupClause::tle_sort_group_ref() const { - // @@protoc_insertion_point(field_get:pg_query.SortGroupClause.tle_sort_group_ref) - return _internal_tle_sort_group_ref(); -} -inline void SortGroupClause::_internal_set_tle_sort_group_ref(uint32_t value) { - - _impl_.tle_sort_group_ref_ = value; -} -inline void SortGroupClause::set_tle_sort_group_ref(uint32_t value) { - _internal_set_tle_sort_group_ref(value); - // @@protoc_insertion_point(field_set:pg_query.SortGroupClause.tle_sort_group_ref) -} - -// uint32 eqop = 2 [json_name = "eqop"]; -inline void SortGroupClause::clear_eqop() { - _impl_.eqop_ = 0u; -} -inline uint32_t SortGroupClause::_internal_eqop() const { - return _impl_.eqop_; -} -inline uint32_t SortGroupClause::eqop() const { - // @@protoc_insertion_point(field_get:pg_query.SortGroupClause.eqop) - return _internal_eqop(); -} -inline void SortGroupClause::_internal_set_eqop(uint32_t value) { - - _impl_.eqop_ = value; -} -inline void SortGroupClause::set_eqop(uint32_t value) { - _internal_set_eqop(value); - // @@protoc_insertion_point(field_set:pg_query.SortGroupClause.eqop) -} - -// uint32 sortop = 3 [json_name = "sortop"]; -inline void SortGroupClause::clear_sortop() { - _impl_.sortop_ = 0u; -} -inline uint32_t SortGroupClause::_internal_sortop() const { - return _impl_.sortop_; -} -inline uint32_t SortGroupClause::sortop() const { - // @@protoc_insertion_point(field_get:pg_query.SortGroupClause.sortop) - return _internal_sortop(); -} -inline void SortGroupClause::_internal_set_sortop(uint32_t value) { - - _impl_.sortop_ = value; -} -inline void SortGroupClause::set_sortop(uint32_t value) { - _internal_set_sortop(value); - // @@protoc_insertion_point(field_set:pg_query.SortGroupClause.sortop) -} - -// bool nulls_first = 4 [json_name = "nulls_first"]; -inline void SortGroupClause::clear_nulls_first() { - _impl_.nulls_first_ = false; -} -inline bool SortGroupClause::_internal_nulls_first() const { - return _impl_.nulls_first_; -} -inline bool SortGroupClause::nulls_first() const { - // @@protoc_insertion_point(field_get:pg_query.SortGroupClause.nulls_first) - return _internal_nulls_first(); -} -inline void SortGroupClause::_internal_set_nulls_first(bool value) { - - _impl_.nulls_first_ = value; -} -inline void SortGroupClause::set_nulls_first(bool value) { - _internal_set_nulls_first(value); - // @@protoc_insertion_point(field_set:pg_query.SortGroupClause.nulls_first) -} - -// bool hashable = 5 [json_name = "hashable"]; -inline void SortGroupClause::clear_hashable() { - _impl_.hashable_ = false; -} -inline bool SortGroupClause::_internal_hashable() const { - return _impl_.hashable_; -} -inline bool SortGroupClause::hashable() const { - // @@protoc_insertion_point(field_get:pg_query.SortGroupClause.hashable) - return _internal_hashable(); -} -inline void SortGroupClause::_internal_set_hashable(bool value) { - - _impl_.hashable_ = value; -} -inline void SortGroupClause::set_hashable(bool value) { - _internal_set_hashable(value); - // @@protoc_insertion_point(field_set:pg_query.SortGroupClause.hashable) -} - -// ------------------------------------------------------------------- - -// GroupingSet - -// .pg_query.GroupingSetKind kind = 1 [json_name = "kind"]; -inline void GroupingSet::clear_kind() { - _impl_.kind_ = 0; -} -inline ::pg_query::GroupingSetKind GroupingSet::_internal_kind() const { - return static_cast< ::pg_query::GroupingSetKind >(_impl_.kind_); -} -inline ::pg_query::GroupingSetKind GroupingSet::kind() const { - // @@protoc_insertion_point(field_get:pg_query.GroupingSet.kind) - return _internal_kind(); -} -inline void GroupingSet::_internal_set_kind(::pg_query::GroupingSetKind value) { - - _impl_.kind_ = value; -} -inline void GroupingSet::set_kind(::pg_query::GroupingSetKind value) { - _internal_set_kind(value); - // @@protoc_insertion_point(field_set:pg_query.GroupingSet.kind) -} - -// repeated .pg_query.Node content = 2 [json_name = "content"]; -inline int GroupingSet::_internal_content_size() const { - return _impl_.content_.size(); -} -inline int GroupingSet::content_size() const { - return _internal_content_size(); -} -inline void GroupingSet::clear_content() { - _impl_.content_.Clear(); -} -inline ::pg_query::Node* GroupingSet::mutable_content(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.GroupingSet.content) - return _impl_.content_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -GroupingSet::mutable_content() { - // @@protoc_insertion_point(field_mutable_list:pg_query.GroupingSet.content) - return &_impl_.content_; -} -inline const ::pg_query::Node& GroupingSet::_internal_content(int index) const { - return _impl_.content_.Get(index); -} -inline const ::pg_query::Node& GroupingSet::content(int index) const { - // @@protoc_insertion_point(field_get:pg_query.GroupingSet.content) - return _internal_content(index); -} -inline ::pg_query::Node* GroupingSet::_internal_add_content() { - return _impl_.content_.Add(); -} -inline ::pg_query::Node* GroupingSet::add_content() { - ::pg_query::Node* _add = _internal_add_content(); - // @@protoc_insertion_point(field_add:pg_query.GroupingSet.content) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -GroupingSet::content() const { - // @@protoc_insertion_point(field_list:pg_query.GroupingSet.content) - return _impl_.content_; -} - -// int32 location = 3 [json_name = "location"]; -inline void GroupingSet::clear_location() { - _impl_.location_ = 0; -} -inline int32_t GroupingSet::_internal_location() const { - return _impl_.location_; -} -inline int32_t GroupingSet::location() const { - // @@protoc_insertion_point(field_get:pg_query.GroupingSet.location) - return _internal_location(); -} -inline void GroupingSet::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void GroupingSet::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.GroupingSet.location) -} - -// ------------------------------------------------------------------- - -// WindowClause - -// string name = 1 [json_name = "name"]; -inline void WindowClause::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& WindowClause::name() const { - // @@protoc_insertion_point(field_get:pg_query.WindowClause.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void WindowClause::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.WindowClause.name) -} -inline std::string* WindowClause::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.WindowClause.name) - return _s; -} -inline const std::string& WindowClause::_internal_name() const { - return _impl_.name_.Get(); -} -inline void WindowClause::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* WindowClause::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* WindowClause::release_name() { - // @@protoc_insertion_point(field_release:pg_query.WindowClause.name) - return _impl_.name_.Release(); -} -inline void WindowClause::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.WindowClause.name) -} - -// string refname = 2 [json_name = "refname"]; -inline void WindowClause::clear_refname() { - _impl_.refname_.ClearToEmpty(); -} -inline const std::string& WindowClause::refname() const { - // @@protoc_insertion_point(field_get:pg_query.WindowClause.refname) - return _internal_refname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void WindowClause::set_refname(ArgT0&& arg0, ArgT... args) { - - _impl_.refname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.WindowClause.refname) -} -inline std::string* WindowClause::mutable_refname() { - std::string* _s = _internal_mutable_refname(); - // @@protoc_insertion_point(field_mutable:pg_query.WindowClause.refname) - return _s; -} -inline const std::string& WindowClause::_internal_refname() const { - return _impl_.refname_.Get(); -} -inline void WindowClause::_internal_set_refname(const std::string& value) { - - _impl_.refname_.Set(value, GetArenaForAllocation()); -} -inline std::string* WindowClause::_internal_mutable_refname() { - - return _impl_.refname_.Mutable(GetArenaForAllocation()); -} -inline std::string* WindowClause::release_refname() { - // @@protoc_insertion_point(field_release:pg_query.WindowClause.refname) - return _impl_.refname_.Release(); -} -inline void WindowClause::set_allocated_refname(std::string* refname) { - if (refname != nullptr) { - - } else { - - } - _impl_.refname_.SetAllocated(refname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.refname_.IsDefault()) { - _impl_.refname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.WindowClause.refname) -} - -// repeated .pg_query.Node partition_clause = 3 [json_name = "partitionClause"]; -inline int WindowClause::_internal_partition_clause_size() const { - return _impl_.partition_clause_.size(); -} -inline int WindowClause::partition_clause_size() const { - return _internal_partition_clause_size(); -} -inline void WindowClause::clear_partition_clause() { - _impl_.partition_clause_.Clear(); -} -inline ::pg_query::Node* WindowClause::mutable_partition_clause(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.WindowClause.partition_clause) - return _impl_.partition_clause_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -WindowClause::mutable_partition_clause() { - // @@protoc_insertion_point(field_mutable_list:pg_query.WindowClause.partition_clause) - return &_impl_.partition_clause_; -} -inline const ::pg_query::Node& WindowClause::_internal_partition_clause(int index) const { - return _impl_.partition_clause_.Get(index); -} -inline const ::pg_query::Node& WindowClause::partition_clause(int index) const { - // @@protoc_insertion_point(field_get:pg_query.WindowClause.partition_clause) - return _internal_partition_clause(index); -} -inline ::pg_query::Node* WindowClause::_internal_add_partition_clause() { - return _impl_.partition_clause_.Add(); -} -inline ::pg_query::Node* WindowClause::add_partition_clause() { - ::pg_query::Node* _add = _internal_add_partition_clause(); - // @@protoc_insertion_point(field_add:pg_query.WindowClause.partition_clause) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -WindowClause::partition_clause() const { - // @@protoc_insertion_point(field_list:pg_query.WindowClause.partition_clause) - return _impl_.partition_clause_; -} - -// repeated .pg_query.Node order_clause = 4 [json_name = "orderClause"]; -inline int WindowClause::_internal_order_clause_size() const { - return _impl_.order_clause_.size(); -} -inline int WindowClause::order_clause_size() const { - return _internal_order_clause_size(); -} -inline void WindowClause::clear_order_clause() { - _impl_.order_clause_.Clear(); -} -inline ::pg_query::Node* WindowClause::mutable_order_clause(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.WindowClause.order_clause) - return _impl_.order_clause_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -WindowClause::mutable_order_clause() { - // @@protoc_insertion_point(field_mutable_list:pg_query.WindowClause.order_clause) - return &_impl_.order_clause_; -} -inline const ::pg_query::Node& WindowClause::_internal_order_clause(int index) const { - return _impl_.order_clause_.Get(index); -} -inline const ::pg_query::Node& WindowClause::order_clause(int index) const { - // @@protoc_insertion_point(field_get:pg_query.WindowClause.order_clause) - return _internal_order_clause(index); -} -inline ::pg_query::Node* WindowClause::_internal_add_order_clause() { - return _impl_.order_clause_.Add(); -} -inline ::pg_query::Node* WindowClause::add_order_clause() { - ::pg_query::Node* _add = _internal_add_order_clause(); - // @@protoc_insertion_point(field_add:pg_query.WindowClause.order_clause) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -WindowClause::order_clause() const { - // @@protoc_insertion_point(field_list:pg_query.WindowClause.order_clause) - return _impl_.order_clause_; -} - -// int32 frame_options = 5 [json_name = "frameOptions"]; -inline void WindowClause::clear_frame_options() { - _impl_.frame_options_ = 0; -} -inline int32_t WindowClause::_internal_frame_options() const { - return _impl_.frame_options_; -} -inline int32_t WindowClause::frame_options() const { - // @@protoc_insertion_point(field_get:pg_query.WindowClause.frame_options) - return _internal_frame_options(); -} -inline void WindowClause::_internal_set_frame_options(int32_t value) { - - _impl_.frame_options_ = value; -} -inline void WindowClause::set_frame_options(int32_t value) { - _internal_set_frame_options(value); - // @@protoc_insertion_point(field_set:pg_query.WindowClause.frame_options) -} - -// .pg_query.Node start_offset = 6 [json_name = "startOffset"]; -inline bool WindowClause::_internal_has_start_offset() const { - return this != internal_default_instance() && _impl_.start_offset_ != nullptr; -} -inline bool WindowClause::has_start_offset() const { - return _internal_has_start_offset(); -} -inline void WindowClause::clear_start_offset() { - if (GetArenaForAllocation() == nullptr && _impl_.start_offset_ != nullptr) { - delete _impl_.start_offset_; - } - _impl_.start_offset_ = nullptr; -} -inline const ::pg_query::Node& WindowClause::_internal_start_offset() const { - const ::pg_query::Node* p = _impl_.start_offset_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& WindowClause::start_offset() const { - // @@protoc_insertion_point(field_get:pg_query.WindowClause.start_offset) - return _internal_start_offset(); -} -inline void WindowClause::unsafe_arena_set_allocated_start_offset( - ::pg_query::Node* start_offset) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.start_offset_); - } - _impl_.start_offset_ = start_offset; - if (start_offset) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.WindowClause.start_offset) -} -inline ::pg_query::Node* WindowClause::release_start_offset() { - - ::pg_query::Node* temp = _impl_.start_offset_; - _impl_.start_offset_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* WindowClause::unsafe_arena_release_start_offset() { - // @@protoc_insertion_point(field_release:pg_query.WindowClause.start_offset) - - ::pg_query::Node* temp = _impl_.start_offset_; - _impl_.start_offset_ = nullptr; - return temp; -} -inline ::pg_query::Node* WindowClause::_internal_mutable_start_offset() { - - if (_impl_.start_offset_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.start_offset_ = p; - } - return _impl_.start_offset_; -} -inline ::pg_query::Node* WindowClause::mutable_start_offset() { - ::pg_query::Node* _msg = _internal_mutable_start_offset(); - // @@protoc_insertion_point(field_mutable:pg_query.WindowClause.start_offset) - return _msg; -} -inline void WindowClause::set_allocated_start_offset(::pg_query::Node* start_offset) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.start_offset_; - } - if (start_offset) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(start_offset); - if (message_arena != submessage_arena) { - start_offset = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, start_offset, submessage_arena); - } - - } else { - - } - _impl_.start_offset_ = start_offset; - // @@protoc_insertion_point(field_set_allocated:pg_query.WindowClause.start_offset) -} - -// .pg_query.Node end_offset = 7 [json_name = "endOffset"]; -inline bool WindowClause::_internal_has_end_offset() const { - return this != internal_default_instance() && _impl_.end_offset_ != nullptr; -} -inline bool WindowClause::has_end_offset() const { - return _internal_has_end_offset(); -} -inline void WindowClause::clear_end_offset() { - if (GetArenaForAllocation() == nullptr && _impl_.end_offset_ != nullptr) { - delete _impl_.end_offset_; - } - _impl_.end_offset_ = nullptr; -} -inline const ::pg_query::Node& WindowClause::_internal_end_offset() const { - const ::pg_query::Node* p = _impl_.end_offset_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& WindowClause::end_offset() const { - // @@protoc_insertion_point(field_get:pg_query.WindowClause.end_offset) - return _internal_end_offset(); -} -inline void WindowClause::unsafe_arena_set_allocated_end_offset( - ::pg_query::Node* end_offset) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.end_offset_); - } - _impl_.end_offset_ = end_offset; - if (end_offset) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.WindowClause.end_offset) -} -inline ::pg_query::Node* WindowClause::release_end_offset() { - - ::pg_query::Node* temp = _impl_.end_offset_; - _impl_.end_offset_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* WindowClause::unsafe_arena_release_end_offset() { - // @@protoc_insertion_point(field_release:pg_query.WindowClause.end_offset) - - ::pg_query::Node* temp = _impl_.end_offset_; - _impl_.end_offset_ = nullptr; - return temp; -} -inline ::pg_query::Node* WindowClause::_internal_mutable_end_offset() { - - if (_impl_.end_offset_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.end_offset_ = p; - } - return _impl_.end_offset_; -} -inline ::pg_query::Node* WindowClause::mutable_end_offset() { - ::pg_query::Node* _msg = _internal_mutable_end_offset(); - // @@protoc_insertion_point(field_mutable:pg_query.WindowClause.end_offset) - return _msg; -} -inline void WindowClause::set_allocated_end_offset(::pg_query::Node* end_offset) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.end_offset_; - } - if (end_offset) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(end_offset); - if (message_arena != submessage_arena) { - end_offset = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, end_offset, submessage_arena); - } - - } else { - - } - _impl_.end_offset_ = end_offset; - // @@protoc_insertion_point(field_set_allocated:pg_query.WindowClause.end_offset) -} - -// repeated .pg_query.Node run_condition = 8 [json_name = "runCondition"]; -inline int WindowClause::_internal_run_condition_size() const { - return _impl_.run_condition_.size(); -} -inline int WindowClause::run_condition_size() const { - return _internal_run_condition_size(); -} -inline void WindowClause::clear_run_condition() { - _impl_.run_condition_.Clear(); -} -inline ::pg_query::Node* WindowClause::mutable_run_condition(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.WindowClause.run_condition) - return _impl_.run_condition_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -WindowClause::mutable_run_condition() { - // @@protoc_insertion_point(field_mutable_list:pg_query.WindowClause.run_condition) - return &_impl_.run_condition_; -} -inline const ::pg_query::Node& WindowClause::_internal_run_condition(int index) const { - return _impl_.run_condition_.Get(index); -} -inline const ::pg_query::Node& WindowClause::run_condition(int index) const { - // @@protoc_insertion_point(field_get:pg_query.WindowClause.run_condition) - return _internal_run_condition(index); -} -inline ::pg_query::Node* WindowClause::_internal_add_run_condition() { - return _impl_.run_condition_.Add(); -} -inline ::pg_query::Node* WindowClause::add_run_condition() { - ::pg_query::Node* _add = _internal_add_run_condition(); - // @@protoc_insertion_point(field_add:pg_query.WindowClause.run_condition) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -WindowClause::run_condition() const { - // @@protoc_insertion_point(field_list:pg_query.WindowClause.run_condition) - return _impl_.run_condition_; -} - -// uint32 start_in_range_func = 9 [json_name = "startInRangeFunc"]; -inline void WindowClause::clear_start_in_range_func() { - _impl_.start_in_range_func_ = 0u; -} -inline uint32_t WindowClause::_internal_start_in_range_func() const { - return _impl_.start_in_range_func_; -} -inline uint32_t WindowClause::start_in_range_func() const { - // @@protoc_insertion_point(field_get:pg_query.WindowClause.start_in_range_func) - return _internal_start_in_range_func(); -} -inline void WindowClause::_internal_set_start_in_range_func(uint32_t value) { - - _impl_.start_in_range_func_ = value; -} -inline void WindowClause::set_start_in_range_func(uint32_t value) { - _internal_set_start_in_range_func(value); - // @@protoc_insertion_point(field_set:pg_query.WindowClause.start_in_range_func) -} - -// uint32 end_in_range_func = 10 [json_name = "endInRangeFunc"]; -inline void WindowClause::clear_end_in_range_func() { - _impl_.end_in_range_func_ = 0u; -} -inline uint32_t WindowClause::_internal_end_in_range_func() const { - return _impl_.end_in_range_func_; -} -inline uint32_t WindowClause::end_in_range_func() const { - // @@protoc_insertion_point(field_get:pg_query.WindowClause.end_in_range_func) - return _internal_end_in_range_func(); -} -inline void WindowClause::_internal_set_end_in_range_func(uint32_t value) { - - _impl_.end_in_range_func_ = value; -} -inline void WindowClause::set_end_in_range_func(uint32_t value) { - _internal_set_end_in_range_func(value); - // @@protoc_insertion_point(field_set:pg_query.WindowClause.end_in_range_func) -} - -// uint32 in_range_coll = 11 [json_name = "inRangeColl"]; -inline void WindowClause::clear_in_range_coll() { - _impl_.in_range_coll_ = 0u; -} -inline uint32_t WindowClause::_internal_in_range_coll() const { - return _impl_.in_range_coll_; -} -inline uint32_t WindowClause::in_range_coll() const { - // @@protoc_insertion_point(field_get:pg_query.WindowClause.in_range_coll) - return _internal_in_range_coll(); -} -inline void WindowClause::_internal_set_in_range_coll(uint32_t value) { - - _impl_.in_range_coll_ = value; -} -inline void WindowClause::set_in_range_coll(uint32_t value) { - _internal_set_in_range_coll(value); - // @@protoc_insertion_point(field_set:pg_query.WindowClause.in_range_coll) -} - -// bool in_range_asc = 12 [json_name = "inRangeAsc"]; -inline void WindowClause::clear_in_range_asc() { - _impl_.in_range_asc_ = false; -} -inline bool WindowClause::_internal_in_range_asc() const { - return _impl_.in_range_asc_; -} -inline bool WindowClause::in_range_asc() const { - // @@protoc_insertion_point(field_get:pg_query.WindowClause.in_range_asc) - return _internal_in_range_asc(); -} -inline void WindowClause::_internal_set_in_range_asc(bool value) { - - _impl_.in_range_asc_ = value; -} -inline void WindowClause::set_in_range_asc(bool value) { - _internal_set_in_range_asc(value); - // @@protoc_insertion_point(field_set:pg_query.WindowClause.in_range_asc) -} - -// bool in_range_nulls_first = 13 [json_name = "inRangeNullsFirst"]; -inline void WindowClause::clear_in_range_nulls_first() { - _impl_.in_range_nulls_first_ = false; -} -inline bool WindowClause::_internal_in_range_nulls_first() const { - return _impl_.in_range_nulls_first_; -} -inline bool WindowClause::in_range_nulls_first() const { - // @@protoc_insertion_point(field_get:pg_query.WindowClause.in_range_nulls_first) - return _internal_in_range_nulls_first(); -} -inline void WindowClause::_internal_set_in_range_nulls_first(bool value) { - - _impl_.in_range_nulls_first_ = value; -} -inline void WindowClause::set_in_range_nulls_first(bool value) { - _internal_set_in_range_nulls_first(value); - // @@protoc_insertion_point(field_set:pg_query.WindowClause.in_range_nulls_first) -} - -// uint32 winref = 14 [json_name = "winref"]; -inline void WindowClause::clear_winref() { - _impl_.winref_ = 0u; -} -inline uint32_t WindowClause::_internal_winref() const { - return _impl_.winref_; -} -inline uint32_t WindowClause::winref() const { - // @@protoc_insertion_point(field_get:pg_query.WindowClause.winref) - return _internal_winref(); -} -inline void WindowClause::_internal_set_winref(uint32_t value) { - - _impl_.winref_ = value; -} -inline void WindowClause::set_winref(uint32_t value) { - _internal_set_winref(value); - // @@protoc_insertion_point(field_set:pg_query.WindowClause.winref) -} - -// bool copied_order = 15 [json_name = "copiedOrder"]; -inline void WindowClause::clear_copied_order() { - _impl_.copied_order_ = false; -} -inline bool WindowClause::_internal_copied_order() const { - return _impl_.copied_order_; -} -inline bool WindowClause::copied_order() const { - // @@protoc_insertion_point(field_get:pg_query.WindowClause.copied_order) - return _internal_copied_order(); -} -inline void WindowClause::_internal_set_copied_order(bool value) { - - _impl_.copied_order_ = value; -} -inline void WindowClause::set_copied_order(bool value) { - _internal_set_copied_order(value); - // @@protoc_insertion_point(field_set:pg_query.WindowClause.copied_order) -} - -// ------------------------------------------------------------------- - -// ObjectWithArgs - -// repeated .pg_query.Node objname = 1 [json_name = "objname"]; -inline int ObjectWithArgs::_internal_objname_size() const { - return _impl_.objname_.size(); -} -inline int ObjectWithArgs::objname_size() const { - return _internal_objname_size(); -} -inline void ObjectWithArgs::clear_objname() { - _impl_.objname_.Clear(); -} -inline ::pg_query::Node* ObjectWithArgs::mutable_objname(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.ObjectWithArgs.objname) - return _impl_.objname_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -ObjectWithArgs::mutable_objname() { - // @@protoc_insertion_point(field_mutable_list:pg_query.ObjectWithArgs.objname) - return &_impl_.objname_; -} -inline const ::pg_query::Node& ObjectWithArgs::_internal_objname(int index) const { - return _impl_.objname_.Get(index); -} -inline const ::pg_query::Node& ObjectWithArgs::objname(int index) const { - // @@protoc_insertion_point(field_get:pg_query.ObjectWithArgs.objname) - return _internal_objname(index); -} -inline ::pg_query::Node* ObjectWithArgs::_internal_add_objname() { - return _impl_.objname_.Add(); -} -inline ::pg_query::Node* ObjectWithArgs::add_objname() { - ::pg_query::Node* _add = _internal_add_objname(); - // @@protoc_insertion_point(field_add:pg_query.ObjectWithArgs.objname) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -ObjectWithArgs::objname() const { - // @@protoc_insertion_point(field_list:pg_query.ObjectWithArgs.objname) - return _impl_.objname_; -} - -// repeated .pg_query.Node objargs = 2 [json_name = "objargs"]; -inline int ObjectWithArgs::_internal_objargs_size() const { - return _impl_.objargs_.size(); -} -inline int ObjectWithArgs::objargs_size() const { - return _internal_objargs_size(); -} -inline void ObjectWithArgs::clear_objargs() { - _impl_.objargs_.Clear(); -} -inline ::pg_query::Node* ObjectWithArgs::mutable_objargs(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.ObjectWithArgs.objargs) - return _impl_.objargs_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -ObjectWithArgs::mutable_objargs() { - // @@protoc_insertion_point(field_mutable_list:pg_query.ObjectWithArgs.objargs) - return &_impl_.objargs_; -} -inline const ::pg_query::Node& ObjectWithArgs::_internal_objargs(int index) const { - return _impl_.objargs_.Get(index); -} -inline const ::pg_query::Node& ObjectWithArgs::objargs(int index) const { - // @@protoc_insertion_point(field_get:pg_query.ObjectWithArgs.objargs) - return _internal_objargs(index); -} -inline ::pg_query::Node* ObjectWithArgs::_internal_add_objargs() { - return _impl_.objargs_.Add(); -} -inline ::pg_query::Node* ObjectWithArgs::add_objargs() { - ::pg_query::Node* _add = _internal_add_objargs(); - // @@protoc_insertion_point(field_add:pg_query.ObjectWithArgs.objargs) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -ObjectWithArgs::objargs() const { - // @@protoc_insertion_point(field_list:pg_query.ObjectWithArgs.objargs) - return _impl_.objargs_; -} - -// repeated .pg_query.Node objfuncargs = 3 [json_name = "objfuncargs"]; -inline int ObjectWithArgs::_internal_objfuncargs_size() const { - return _impl_.objfuncargs_.size(); -} -inline int ObjectWithArgs::objfuncargs_size() const { - return _internal_objfuncargs_size(); -} -inline void ObjectWithArgs::clear_objfuncargs() { - _impl_.objfuncargs_.Clear(); -} -inline ::pg_query::Node* ObjectWithArgs::mutable_objfuncargs(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.ObjectWithArgs.objfuncargs) - return _impl_.objfuncargs_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -ObjectWithArgs::mutable_objfuncargs() { - // @@protoc_insertion_point(field_mutable_list:pg_query.ObjectWithArgs.objfuncargs) - return &_impl_.objfuncargs_; -} -inline const ::pg_query::Node& ObjectWithArgs::_internal_objfuncargs(int index) const { - return _impl_.objfuncargs_.Get(index); -} -inline const ::pg_query::Node& ObjectWithArgs::objfuncargs(int index) const { - // @@protoc_insertion_point(field_get:pg_query.ObjectWithArgs.objfuncargs) - return _internal_objfuncargs(index); -} -inline ::pg_query::Node* ObjectWithArgs::_internal_add_objfuncargs() { - return _impl_.objfuncargs_.Add(); -} -inline ::pg_query::Node* ObjectWithArgs::add_objfuncargs() { - ::pg_query::Node* _add = _internal_add_objfuncargs(); - // @@protoc_insertion_point(field_add:pg_query.ObjectWithArgs.objfuncargs) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -ObjectWithArgs::objfuncargs() const { - // @@protoc_insertion_point(field_list:pg_query.ObjectWithArgs.objfuncargs) - return _impl_.objfuncargs_; -} - -// bool args_unspecified = 4 [json_name = "args_unspecified"]; -inline void ObjectWithArgs::clear_args_unspecified() { - _impl_.args_unspecified_ = false; -} -inline bool ObjectWithArgs::_internal_args_unspecified() const { - return _impl_.args_unspecified_; -} -inline bool ObjectWithArgs::args_unspecified() const { - // @@protoc_insertion_point(field_get:pg_query.ObjectWithArgs.args_unspecified) - return _internal_args_unspecified(); -} -inline void ObjectWithArgs::_internal_set_args_unspecified(bool value) { - - _impl_.args_unspecified_ = value; -} -inline void ObjectWithArgs::set_args_unspecified(bool value) { - _internal_set_args_unspecified(value); - // @@protoc_insertion_point(field_set:pg_query.ObjectWithArgs.args_unspecified) -} - -// ------------------------------------------------------------------- - -// AccessPriv - -// string priv_name = 1 [json_name = "priv_name"]; -inline void AccessPriv::clear_priv_name() { - _impl_.priv_name_.ClearToEmpty(); -} -inline const std::string& AccessPriv::priv_name() const { - // @@protoc_insertion_point(field_get:pg_query.AccessPriv.priv_name) - return _internal_priv_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AccessPriv::set_priv_name(ArgT0&& arg0, ArgT... args) { - - _impl_.priv_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.AccessPriv.priv_name) -} -inline std::string* AccessPriv::mutable_priv_name() { - std::string* _s = _internal_mutable_priv_name(); - // @@protoc_insertion_point(field_mutable:pg_query.AccessPriv.priv_name) - return _s; -} -inline const std::string& AccessPriv::_internal_priv_name() const { - return _impl_.priv_name_.Get(); -} -inline void AccessPriv::_internal_set_priv_name(const std::string& value) { - - _impl_.priv_name_.Set(value, GetArenaForAllocation()); -} -inline std::string* AccessPriv::_internal_mutable_priv_name() { - - return _impl_.priv_name_.Mutable(GetArenaForAllocation()); -} -inline std::string* AccessPriv::release_priv_name() { - // @@protoc_insertion_point(field_release:pg_query.AccessPriv.priv_name) - return _impl_.priv_name_.Release(); -} -inline void AccessPriv::set_allocated_priv_name(std::string* priv_name) { - if (priv_name != nullptr) { - - } else { - - } - _impl_.priv_name_.SetAllocated(priv_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.priv_name_.IsDefault()) { - _impl_.priv_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.AccessPriv.priv_name) -} - -// repeated .pg_query.Node cols = 2 [json_name = "cols"]; -inline int AccessPriv::_internal_cols_size() const { - return _impl_.cols_.size(); -} -inline int AccessPriv::cols_size() const { - return _internal_cols_size(); -} -inline void AccessPriv::clear_cols() { - _impl_.cols_.Clear(); -} -inline ::pg_query::Node* AccessPriv::mutable_cols(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.AccessPriv.cols) - return _impl_.cols_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -AccessPriv::mutable_cols() { - // @@protoc_insertion_point(field_mutable_list:pg_query.AccessPriv.cols) - return &_impl_.cols_; -} -inline const ::pg_query::Node& AccessPriv::_internal_cols(int index) const { - return _impl_.cols_.Get(index); -} -inline const ::pg_query::Node& AccessPriv::cols(int index) const { - // @@protoc_insertion_point(field_get:pg_query.AccessPriv.cols) - return _internal_cols(index); -} -inline ::pg_query::Node* AccessPriv::_internal_add_cols() { - return _impl_.cols_.Add(); -} -inline ::pg_query::Node* AccessPriv::add_cols() { - ::pg_query::Node* _add = _internal_add_cols(); - // @@protoc_insertion_point(field_add:pg_query.AccessPriv.cols) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -AccessPriv::cols() const { - // @@protoc_insertion_point(field_list:pg_query.AccessPriv.cols) - return _impl_.cols_; -} - -// ------------------------------------------------------------------- - -// CreateOpClassItem - -// int32 itemtype = 1 [json_name = "itemtype"]; -inline void CreateOpClassItem::clear_itemtype() { - _impl_.itemtype_ = 0; -} -inline int32_t CreateOpClassItem::_internal_itemtype() const { - return _impl_.itemtype_; -} -inline int32_t CreateOpClassItem::itemtype() const { - // @@protoc_insertion_point(field_get:pg_query.CreateOpClassItem.itemtype) - return _internal_itemtype(); -} -inline void CreateOpClassItem::_internal_set_itemtype(int32_t value) { - - _impl_.itemtype_ = value; -} -inline void CreateOpClassItem::set_itemtype(int32_t value) { - _internal_set_itemtype(value); - // @@protoc_insertion_point(field_set:pg_query.CreateOpClassItem.itemtype) -} - -// .pg_query.ObjectWithArgs name = 2 [json_name = "name"]; -inline bool CreateOpClassItem::_internal_has_name() const { - return this != internal_default_instance() && _impl_.name_ != nullptr; -} -inline bool CreateOpClassItem::has_name() const { - return _internal_has_name(); -} -inline void CreateOpClassItem::clear_name() { - if (GetArenaForAllocation() == nullptr && _impl_.name_ != nullptr) { - delete _impl_.name_; - } - _impl_.name_ = nullptr; -} -inline const ::pg_query::ObjectWithArgs& CreateOpClassItem::_internal_name() const { - const ::pg_query::ObjectWithArgs* p = _impl_.name_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_ObjectWithArgs_default_instance_); -} -inline const ::pg_query::ObjectWithArgs& CreateOpClassItem::name() const { - // @@protoc_insertion_point(field_get:pg_query.CreateOpClassItem.name) - return _internal_name(); -} -inline void CreateOpClassItem::unsafe_arena_set_allocated_name( - ::pg_query::ObjectWithArgs* name) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.name_); - } - _impl_.name_ = name; - if (name) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateOpClassItem.name) -} -inline ::pg_query::ObjectWithArgs* CreateOpClassItem::release_name() { - - ::pg_query::ObjectWithArgs* temp = _impl_.name_; - _impl_.name_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::ObjectWithArgs* CreateOpClassItem::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_release:pg_query.CreateOpClassItem.name) - - ::pg_query::ObjectWithArgs* temp = _impl_.name_; - _impl_.name_ = nullptr; - return temp; -} -inline ::pg_query::ObjectWithArgs* CreateOpClassItem::_internal_mutable_name() { - - if (_impl_.name_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::ObjectWithArgs>(GetArenaForAllocation()); - _impl_.name_ = p; - } - return _impl_.name_; -} -inline ::pg_query::ObjectWithArgs* CreateOpClassItem::mutable_name() { - ::pg_query::ObjectWithArgs* _msg = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateOpClassItem.name) - return _msg; -} -inline void CreateOpClassItem::set_allocated_name(::pg_query::ObjectWithArgs* name) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.name_; - } - if (name) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(name); - if (message_arena != submessage_arena) { - name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, name, submessage_arena); - } - - } else { - - } - _impl_.name_ = name; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateOpClassItem.name) -} - -// int32 number = 3 [json_name = "number"]; -inline void CreateOpClassItem::clear_number() { - _impl_.number_ = 0; -} -inline int32_t CreateOpClassItem::_internal_number() const { - return _impl_.number_; -} -inline int32_t CreateOpClassItem::number() const { - // @@protoc_insertion_point(field_get:pg_query.CreateOpClassItem.number) - return _internal_number(); -} -inline void CreateOpClassItem::_internal_set_number(int32_t value) { - - _impl_.number_ = value; -} -inline void CreateOpClassItem::set_number(int32_t value) { - _internal_set_number(value); - // @@protoc_insertion_point(field_set:pg_query.CreateOpClassItem.number) -} - -// repeated .pg_query.Node order_family = 4 [json_name = "order_family"]; -inline int CreateOpClassItem::_internal_order_family_size() const { - return _impl_.order_family_.size(); -} -inline int CreateOpClassItem::order_family_size() const { - return _internal_order_family_size(); -} -inline void CreateOpClassItem::clear_order_family() { - _impl_.order_family_.Clear(); -} -inline ::pg_query::Node* CreateOpClassItem::mutable_order_family(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateOpClassItem.order_family) - return _impl_.order_family_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateOpClassItem::mutable_order_family() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateOpClassItem.order_family) - return &_impl_.order_family_; -} -inline const ::pg_query::Node& CreateOpClassItem::_internal_order_family(int index) const { - return _impl_.order_family_.Get(index); -} -inline const ::pg_query::Node& CreateOpClassItem::order_family(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateOpClassItem.order_family) - return _internal_order_family(index); -} -inline ::pg_query::Node* CreateOpClassItem::_internal_add_order_family() { - return _impl_.order_family_.Add(); -} -inline ::pg_query::Node* CreateOpClassItem::add_order_family() { - ::pg_query::Node* _add = _internal_add_order_family(); - // @@protoc_insertion_point(field_add:pg_query.CreateOpClassItem.order_family) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateOpClassItem::order_family() const { - // @@protoc_insertion_point(field_list:pg_query.CreateOpClassItem.order_family) - return _impl_.order_family_; -} - -// repeated .pg_query.Node class_args = 5 [json_name = "class_args"]; -inline int CreateOpClassItem::_internal_class_args_size() const { - return _impl_.class_args_.size(); -} -inline int CreateOpClassItem::class_args_size() const { - return _internal_class_args_size(); -} -inline void CreateOpClassItem::clear_class_args() { - _impl_.class_args_.Clear(); -} -inline ::pg_query::Node* CreateOpClassItem::mutable_class_args(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CreateOpClassItem.class_args) - return _impl_.class_args_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CreateOpClassItem::mutable_class_args() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CreateOpClassItem.class_args) - return &_impl_.class_args_; -} -inline const ::pg_query::Node& CreateOpClassItem::_internal_class_args(int index) const { - return _impl_.class_args_.Get(index); -} -inline const ::pg_query::Node& CreateOpClassItem::class_args(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CreateOpClassItem.class_args) - return _internal_class_args(index); -} -inline ::pg_query::Node* CreateOpClassItem::_internal_add_class_args() { - return _impl_.class_args_.Add(); -} -inline ::pg_query::Node* CreateOpClassItem::add_class_args() { - ::pg_query::Node* _add = _internal_add_class_args(); - // @@protoc_insertion_point(field_add:pg_query.CreateOpClassItem.class_args) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CreateOpClassItem::class_args() const { - // @@protoc_insertion_point(field_list:pg_query.CreateOpClassItem.class_args) - return _impl_.class_args_; -} - -// .pg_query.TypeName storedtype = 6 [json_name = "storedtype"]; -inline bool CreateOpClassItem::_internal_has_storedtype() const { - return this != internal_default_instance() && _impl_.storedtype_ != nullptr; -} -inline bool CreateOpClassItem::has_storedtype() const { - return _internal_has_storedtype(); -} -inline void CreateOpClassItem::clear_storedtype() { - if (GetArenaForAllocation() == nullptr && _impl_.storedtype_ != nullptr) { - delete _impl_.storedtype_; - } - _impl_.storedtype_ = nullptr; -} -inline const ::pg_query::TypeName& CreateOpClassItem::_internal_storedtype() const { - const ::pg_query::TypeName* p = _impl_.storedtype_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_TypeName_default_instance_); -} -inline const ::pg_query::TypeName& CreateOpClassItem::storedtype() const { - // @@protoc_insertion_point(field_get:pg_query.CreateOpClassItem.storedtype) - return _internal_storedtype(); -} -inline void CreateOpClassItem::unsafe_arena_set_allocated_storedtype( - ::pg_query::TypeName* storedtype) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.storedtype_); - } - _impl_.storedtype_ = storedtype; - if (storedtype) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CreateOpClassItem.storedtype) -} -inline ::pg_query::TypeName* CreateOpClassItem::release_storedtype() { - - ::pg_query::TypeName* temp = _impl_.storedtype_; - _impl_.storedtype_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::TypeName* CreateOpClassItem::unsafe_arena_release_storedtype() { - // @@protoc_insertion_point(field_release:pg_query.CreateOpClassItem.storedtype) - - ::pg_query::TypeName* temp = _impl_.storedtype_; - _impl_.storedtype_ = nullptr; - return temp; -} -inline ::pg_query::TypeName* CreateOpClassItem::_internal_mutable_storedtype() { - - if (_impl_.storedtype_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::TypeName>(GetArenaForAllocation()); - _impl_.storedtype_ = p; - } - return _impl_.storedtype_; -} -inline ::pg_query::TypeName* CreateOpClassItem::mutable_storedtype() { - ::pg_query::TypeName* _msg = _internal_mutable_storedtype(); - // @@protoc_insertion_point(field_mutable:pg_query.CreateOpClassItem.storedtype) - return _msg; -} -inline void CreateOpClassItem::set_allocated_storedtype(::pg_query::TypeName* storedtype) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.storedtype_; - } - if (storedtype) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(storedtype); - if (message_arena != submessage_arena) { - storedtype = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, storedtype, submessage_arena); - } - - } else { - - } - _impl_.storedtype_ = storedtype; - // @@protoc_insertion_point(field_set_allocated:pg_query.CreateOpClassItem.storedtype) -} - -// ------------------------------------------------------------------- - -// TableLikeClause - -// .pg_query.RangeVar relation = 1 [json_name = "relation"]; -inline bool TableLikeClause::_internal_has_relation() const { - return this != internal_default_instance() && _impl_.relation_ != nullptr; -} -inline bool TableLikeClause::has_relation() const { - return _internal_has_relation(); -} -inline void TableLikeClause::clear_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.relation_ != nullptr) { - delete _impl_.relation_; - } - _impl_.relation_ = nullptr; -} -inline const ::pg_query::RangeVar& TableLikeClause::_internal_relation() const { - const ::pg_query::RangeVar* p = _impl_.relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& TableLikeClause::relation() const { - // @@protoc_insertion_point(field_get:pg_query.TableLikeClause.relation) - return _internal_relation(); -} -inline void TableLikeClause::unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.relation_); - } - _impl_.relation_ = relation; - if (relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.TableLikeClause.relation) -} -inline ::pg_query::RangeVar* TableLikeClause::release_relation() { - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* TableLikeClause::unsafe_arena_release_relation() { - // @@protoc_insertion_point(field_release:pg_query.TableLikeClause.relation) - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* TableLikeClause::_internal_mutable_relation() { - - if (_impl_.relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.relation_ = p; - } - return _impl_.relation_; -} -inline ::pg_query::RangeVar* TableLikeClause::mutable_relation() { - ::pg_query::RangeVar* _msg = _internal_mutable_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.TableLikeClause.relation) - return _msg; -} -inline void TableLikeClause::set_allocated_relation(::pg_query::RangeVar* relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.relation_; - } - if (relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(relation); - if (message_arena != submessage_arena) { - relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, relation, submessage_arena); - } - - } else { - - } - _impl_.relation_ = relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.TableLikeClause.relation) -} - -// uint32 options = 2 [json_name = "options"]; -inline void TableLikeClause::clear_options() { - _impl_.options_ = 0u; -} -inline uint32_t TableLikeClause::_internal_options() const { - return _impl_.options_; -} -inline uint32_t TableLikeClause::options() const { - // @@protoc_insertion_point(field_get:pg_query.TableLikeClause.options) - return _internal_options(); -} -inline void TableLikeClause::_internal_set_options(uint32_t value) { - - _impl_.options_ = value; -} -inline void TableLikeClause::set_options(uint32_t value) { - _internal_set_options(value); - // @@protoc_insertion_point(field_set:pg_query.TableLikeClause.options) -} - -// uint32 relation_oid = 3 [json_name = "relationOid"]; -inline void TableLikeClause::clear_relation_oid() { - _impl_.relation_oid_ = 0u; -} -inline uint32_t TableLikeClause::_internal_relation_oid() const { - return _impl_.relation_oid_; -} -inline uint32_t TableLikeClause::relation_oid() const { - // @@protoc_insertion_point(field_get:pg_query.TableLikeClause.relation_oid) - return _internal_relation_oid(); -} -inline void TableLikeClause::_internal_set_relation_oid(uint32_t value) { - - _impl_.relation_oid_ = value; -} -inline void TableLikeClause::set_relation_oid(uint32_t value) { - _internal_set_relation_oid(value); - // @@protoc_insertion_point(field_set:pg_query.TableLikeClause.relation_oid) -} - -// ------------------------------------------------------------------- - -// FunctionParameter - -// string name = 1 [json_name = "name"]; -inline void FunctionParameter::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& FunctionParameter::name() const { - // @@protoc_insertion_point(field_get:pg_query.FunctionParameter.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void FunctionParameter::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.FunctionParameter.name) -} -inline std::string* FunctionParameter::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.FunctionParameter.name) - return _s; -} -inline const std::string& FunctionParameter::_internal_name() const { - return _impl_.name_.Get(); -} -inline void FunctionParameter::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* FunctionParameter::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* FunctionParameter::release_name() { - // @@protoc_insertion_point(field_release:pg_query.FunctionParameter.name) - return _impl_.name_.Release(); -} -inline void FunctionParameter::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.FunctionParameter.name) -} - -// .pg_query.TypeName arg_type = 2 [json_name = "argType"]; -inline bool FunctionParameter::_internal_has_arg_type() const { - return this != internal_default_instance() && _impl_.arg_type_ != nullptr; -} -inline bool FunctionParameter::has_arg_type() const { - return _internal_has_arg_type(); -} -inline void FunctionParameter::clear_arg_type() { - if (GetArenaForAllocation() == nullptr && _impl_.arg_type_ != nullptr) { - delete _impl_.arg_type_; - } - _impl_.arg_type_ = nullptr; -} -inline const ::pg_query::TypeName& FunctionParameter::_internal_arg_type() const { - const ::pg_query::TypeName* p = _impl_.arg_type_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_TypeName_default_instance_); -} -inline const ::pg_query::TypeName& FunctionParameter::arg_type() const { - // @@protoc_insertion_point(field_get:pg_query.FunctionParameter.arg_type) - return _internal_arg_type(); -} -inline void FunctionParameter::unsafe_arena_set_allocated_arg_type( - ::pg_query::TypeName* arg_type) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arg_type_); - } - _impl_.arg_type_ = arg_type; - if (arg_type) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.FunctionParameter.arg_type) -} -inline ::pg_query::TypeName* FunctionParameter::release_arg_type() { - - ::pg_query::TypeName* temp = _impl_.arg_type_; - _impl_.arg_type_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::TypeName* FunctionParameter::unsafe_arena_release_arg_type() { - // @@protoc_insertion_point(field_release:pg_query.FunctionParameter.arg_type) - - ::pg_query::TypeName* temp = _impl_.arg_type_; - _impl_.arg_type_ = nullptr; - return temp; -} -inline ::pg_query::TypeName* FunctionParameter::_internal_mutable_arg_type() { - - if (_impl_.arg_type_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::TypeName>(GetArenaForAllocation()); - _impl_.arg_type_ = p; - } - return _impl_.arg_type_; -} -inline ::pg_query::TypeName* FunctionParameter::mutable_arg_type() { - ::pg_query::TypeName* _msg = _internal_mutable_arg_type(); - // @@protoc_insertion_point(field_mutable:pg_query.FunctionParameter.arg_type) - return _msg; -} -inline void FunctionParameter::set_allocated_arg_type(::pg_query::TypeName* arg_type) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.arg_type_; - } - if (arg_type) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(arg_type); - if (message_arena != submessage_arena) { - arg_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, arg_type, submessage_arena); - } - - } else { - - } - _impl_.arg_type_ = arg_type; - // @@protoc_insertion_point(field_set_allocated:pg_query.FunctionParameter.arg_type) -} - -// .pg_query.FunctionParameterMode mode = 3 [json_name = "mode"]; -inline void FunctionParameter::clear_mode() { - _impl_.mode_ = 0; -} -inline ::pg_query::FunctionParameterMode FunctionParameter::_internal_mode() const { - return static_cast< ::pg_query::FunctionParameterMode >(_impl_.mode_); -} -inline ::pg_query::FunctionParameterMode FunctionParameter::mode() const { - // @@protoc_insertion_point(field_get:pg_query.FunctionParameter.mode) - return _internal_mode(); -} -inline void FunctionParameter::_internal_set_mode(::pg_query::FunctionParameterMode value) { - - _impl_.mode_ = value; -} -inline void FunctionParameter::set_mode(::pg_query::FunctionParameterMode value) { - _internal_set_mode(value); - // @@protoc_insertion_point(field_set:pg_query.FunctionParameter.mode) -} - -// .pg_query.Node defexpr = 4 [json_name = "defexpr"]; -inline bool FunctionParameter::_internal_has_defexpr() const { - return this != internal_default_instance() && _impl_.defexpr_ != nullptr; -} -inline bool FunctionParameter::has_defexpr() const { - return _internal_has_defexpr(); -} -inline void FunctionParameter::clear_defexpr() { - if (GetArenaForAllocation() == nullptr && _impl_.defexpr_ != nullptr) { - delete _impl_.defexpr_; - } - _impl_.defexpr_ = nullptr; -} -inline const ::pg_query::Node& FunctionParameter::_internal_defexpr() const { - const ::pg_query::Node* p = _impl_.defexpr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& FunctionParameter::defexpr() const { - // @@protoc_insertion_point(field_get:pg_query.FunctionParameter.defexpr) - return _internal_defexpr(); -} -inline void FunctionParameter::unsafe_arena_set_allocated_defexpr( - ::pg_query::Node* defexpr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.defexpr_); - } - _impl_.defexpr_ = defexpr; - if (defexpr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.FunctionParameter.defexpr) -} -inline ::pg_query::Node* FunctionParameter::release_defexpr() { - - ::pg_query::Node* temp = _impl_.defexpr_; - _impl_.defexpr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* FunctionParameter::unsafe_arena_release_defexpr() { - // @@protoc_insertion_point(field_release:pg_query.FunctionParameter.defexpr) - - ::pg_query::Node* temp = _impl_.defexpr_; - _impl_.defexpr_ = nullptr; - return temp; -} -inline ::pg_query::Node* FunctionParameter::_internal_mutable_defexpr() { - - if (_impl_.defexpr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.defexpr_ = p; - } - return _impl_.defexpr_; -} -inline ::pg_query::Node* FunctionParameter::mutable_defexpr() { - ::pg_query::Node* _msg = _internal_mutable_defexpr(); - // @@protoc_insertion_point(field_mutable:pg_query.FunctionParameter.defexpr) - return _msg; -} -inline void FunctionParameter::set_allocated_defexpr(::pg_query::Node* defexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.defexpr_; - } - if (defexpr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(defexpr); - if (message_arena != submessage_arena) { - defexpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, defexpr, submessage_arena); - } - - } else { - - } - _impl_.defexpr_ = defexpr; - // @@protoc_insertion_point(field_set_allocated:pg_query.FunctionParameter.defexpr) -} - -// ------------------------------------------------------------------- - -// LockingClause - -// repeated .pg_query.Node locked_rels = 1 [json_name = "lockedRels"]; -inline int LockingClause::_internal_locked_rels_size() const { - return _impl_.locked_rels_.size(); -} -inline int LockingClause::locked_rels_size() const { - return _internal_locked_rels_size(); -} -inline void LockingClause::clear_locked_rels() { - _impl_.locked_rels_.Clear(); -} -inline ::pg_query::Node* LockingClause::mutable_locked_rels(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.LockingClause.locked_rels) - return _impl_.locked_rels_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -LockingClause::mutable_locked_rels() { - // @@protoc_insertion_point(field_mutable_list:pg_query.LockingClause.locked_rels) - return &_impl_.locked_rels_; -} -inline const ::pg_query::Node& LockingClause::_internal_locked_rels(int index) const { - return _impl_.locked_rels_.Get(index); -} -inline const ::pg_query::Node& LockingClause::locked_rels(int index) const { - // @@protoc_insertion_point(field_get:pg_query.LockingClause.locked_rels) - return _internal_locked_rels(index); -} -inline ::pg_query::Node* LockingClause::_internal_add_locked_rels() { - return _impl_.locked_rels_.Add(); -} -inline ::pg_query::Node* LockingClause::add_locked_rels() { - ::pg_query::Node* _add = _internal_add_locked_rels(); - // @@protoc_insertion_point(field_add:pg_query.LockingClause.locked_rels) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -LockingClause::locked_rels() const { - // @@protoc_insertion_point(field_list:pg_query.LockingClause.locked_rels) - return _impl_.locked_rels_; -} - -// .pg_query.LockClauseStrength strength = 2 [json_name = "strength"]; -inline void LockingClause::clear_strength() { - _impl_.strength_ = 0; -} -inline ::pg_query::LockClauseStrength LockingClause::_internal_strength() const { - return static_cast< ::pg_query::LockClauseStrength >(_impl_.strength_); -} -inline ::pg_query::LockClauseStrength LockingClause::strength() const { - // @@protoc_insertion_point(field_get:pg_query.LockingClause.strength) - return _internal_strength(); -} -inline void LockingClause::_internal_set_strength(::pg_query::LockClauseStrength value) { - - _impl_.strength_ = value; -} -inline void LockingClause::set_strength(::pg_query::LockClauseStrength value) { - _internal_set_strength(value); - // @@protoc_insertion_point(field_set:pg_query.LockingClause.strength) -} - -// .pg_query.LockWaitPolicy wait_policy = 3 [json_name = "waitPolicy"]; -inline void LockingClause::clear_wait_policy() { - _impl_.wait_policy_ = 0; -} -inline ::pg_query::LockWaitPolicy LockingClause::_internal_wait_policy() const { - return static_cast< ::pg_query::LockWaitPolicy >(_impl_.wait_policy_); -} -inline ::pg_query::LockWaitPolicy LockingClause::wait_policy() const { - // @@protoc_insertion_point(field_get:pg_query.LockingClause.wait_policy) - return _internal_wait_policy(); -} -inline void LockingClause::_internal_set_wait_policy(::pg_query::LockWaitPolicy value) { - - _impl_.wait_policy_ = value; -} -inline void LockingClause::set_wait_policy(::pg_query::LockWaitPolicy value) { - _internal_set_wait_policy(value); - // @@protoc_insertion_point(field_set:pg_query.LockingClause.wait_policy) -} - -// ------------------------------------------------------------------- - -// RowMarkClause - -// uint32 rti = 1 [json_name = "rti"]; -inline void RowMarkClause::clear_rti() { - _impl_.rti_ = 0u; -} -inline uint32_t RowMarkClause::_internal_rti() const { - return _impl_.rti_; -} -inline uint32_t RowMarkClause::rti() const { - // @@protoc_insertion_point(field_get:pg_query.RowMarkClause.rti) - return _internal_rti(); -} -inline void RowMarkClause::_internal_set_rti(uint32_t value) { - - _impl_.rti_ = value; -} -inline void RowMarkClause::set_rti(uint32_t value) { - _internal_set_rti(value); - // @@protoc_insertion_point(field_set:pg_query.RowMarkClause.rti) -} - -// .pg_query.LockClauseStrength strength = 2 [json_name = "strength"]; -inline void RowMarkClause::clear_strength() { - _impl_.strength_ = 0; -} -inline ::pg_query::LockClauseStrength RowMarkClause::_internal_strength() const { - return static_cast< ::pg_query::LockClauseStrength >(_impl_.strength_); -} -inline ::pg_query::LockClauseStrength RowMarkClause::strength() const { - // @@protoc_insertion_point(field_get:pg_query.RowMarkClause.strength) - return _internal_strength(); -} -inline void RowMarkClause::_internal_set_strength(::pg_query::LockClauseStrength value) { - - _impl_.strength_ = value; -} -inline void RowMarkClause::set_strength(::pg_query::LockClauseStrength value) { - _internal_set_strength(value); - // @@protoc_insertion_point(field_set:pg_query.RowMarkClause.strength) -} - -// .pg_query.LockWaitPolicy wait_policy = 3 [json_name = "waitPolicy"]; -inline void RowMarkClause::clear_wait_policy() { - _impl_.wait_policy_ = 0; -} -inline ::pg_query::LockWaitPolicy RowMarkClause::_internal_wait_policy() const { - return static_cast< ::pg_query::LockWaitPolicy >(_impl_.wait_policy_); -} -inline ::pg_query::LockWaitPolicy RowMarkClause::wait_policy() const { - // @@protoc_insertion_point(field_get:pg_query.RowMarkClause.wait_policy) - return _internal_wait_policy(); -} -inline void RowMarkClause::_internal_set_wait_policy(::pg_query::LockWaitPolicy value) { - - _impl_.wait_policy_ = value; -} -inline void RowMarkClause::set_wait_policy(::pg_query::LockWaitPolicy value) { - _internal_set_wait_policy(value); - // @@protoc_insertion_point(field_set:pg_query.RowMarkClause.wait_policy) -} - -// bool pushed_down = 4 [json_name = "pushedDown"]; -inline void RowMarkClause::clear_pushed_down() { - _impl_.pushed_down_ = false; -} -inline bool RowMarkClause::_internal_pushed_down() const { - return _impl_.pushed_down_; -} -inline bool RowMarkClause::pushed_down() const { - // @@protoc_insertion_point(field_get:pg_query.RowMarkClause.pushed_down) - return _internal_pushed_down(); -} -inline void RowMarkClause::_internal_set_pushed_down(bool value) { - - _impl_.pushed_down_ = value; -} -inline void RowMarkClause::set_pushed_down(bool value) { - _internal_set_pushed_down(value); - // @@protoc_insertion_point(field_set:pg_query.RowMarkClause.pushed_down) -} - -// ------------------------------------------------------------------- - -// XmlSerialize - -// .pg_query.XmlOptionType xmloption = 1 [json_name = "xmloption"]; -inline void XmlSerialize::clear_xmloption() { - _impl_.xmloption_ = 0; -} -inline ::pg_query::XmlOptionType XmlSerialize::_internal_xmloption() const { - return static_cast< ::pg_query::XmlOptionType >(_impl_.xmloption_); -} -inline ::pg_query::XmlOptionType XmlSerialize::xmloption() const { - // @@protoc_insertion_point(field_get:pg_query.XmlSerialize.xmloption) - return _internal_xmloption(); -} -inline void XmlSerialize::_internal_set_xmloption(::pg_query::XmlOptionType value) { - - _impl_.xmloption_ = value; -} -inline void XmlSerialize::set_xmloption(::pg_query::XmlOptionType value) { - _internal_set_xmloption(value); - // @@protoc_insertion_point(field_set:pg_query.XmlSerialize.xmloption) -} - -// .pg_query.Node expr = 2 [json_name = "expr"]; -inline bool XmlSerialize::_internal_has_expr() const { - return this != internal_default_instance() && _impl_.expr_ != nullptr; -} -inline bool XmlSerialize::has_expr() const { - return _internal_has_expr(); -} -inline void XmlSerialize::clear_expr() { - if (GetArenaForAllocation() == nullptr && _impl_.expr_ != nullptr) { - delete _impl_.expr_; - } - _impl_.expr_ = nullptr; -} -inline const ::pg_query::Node& XmlSerialize::_internal_expr() const { - const ::pg_query::Node* p = _impl_.expr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& XmlSerialize::expr() const { - // @@protoc_insertion_point(field_get:pg_query.XmlSerialize.expr) - return _internal_expr(); -} -inline void XmlSerialize::unsafe_arena_set_allocated_expr( - ::pg_query::Node* expr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.expr_); - } - _impl_.expr_ = expr; - if (expr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.XmlSerialize.expr) -} -inline ::pg_query::Node* XmlSerialize::release_expr() { - - ::pg_query::Node* temp = _impl_.expr_; - _impl_.expr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* XmlSerialize::unsafe_arena_release_expr() { - // @@protoc_insertion_point(field_release:pg_query.XmlSerialize.expr) - - ::pg_query::Node* temp = _impl_.expr_; - _impl_.expr_ = nullptr; - return temp; -} -inline ::pg_query::Node* XmlSerialize::_internal_mutable_expr() { - - if (_impl_.expr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.expr_ = p; - } - return _impl_.expr_; -} -inline ::pg_query::Node* XmlSerialize::mutable_expr() { - ::pg_query::Node* _msg = _internal_mutable_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.XmlSerialize.expr) - return _msg; -} -inline void XmlSerialize::set_allocated_expr(::pg_query::Node* expr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.expr_; - } - if (expr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(expr); - if (message_arena != submessage_arena) { - expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, expr, submessage_arena); - } - - } else { - - } - _impl_.expr_ = expr; - // @@protoc_insertion_point(field_set_allocated:pg_query.XmlSerialize.expr) -} - -// .pg_query.TypeName type_name = 3 [json_name = "typeName"]; -inline bool XmlSerialize::_internal_has_type_name() const { - return this != internal_default_instance() && _impl_.type_name_ != nullptr; -} -inline bool XmlSerialize::has_type_name() const { - return _internal_has_type_name(); -} -inline void XmlSerialize::clear_type_name() { - if (GetArenaForAllocation() == nullptr && _impl_.type_name_ != nullptr) { - delete _impl_.type_name_; - } - _impl_.type_name_ = nullptr; -} -inline const ::pg_query::TypeName& XmlSerialize::_internal_type_name() const { - const ::pg_query::TypeName* p = _impl_.type_name_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_TypeName_default_instance_); -} -inline const ::pg_query::TypeName& XmlSerialize::type_name() const { - // @@protoc_insertion_point(field_get:pg_query.XmlSerialize.type_name) - return _internal_type_name(); -} -inline void XmlSerialize::unsafe_arena_set_allocated_type_name( - ::pg_query::TypeName* type_name) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.type_name_); - } - _impl_.type_name_ = type_name; - if (type_name) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.XmlSerialize.type_name) -} -inline ::pg_query::TypeName* XmlSerialize::release_type_name() { - - ::pg_query::TypeName* temp = _impl_.type_name_; - _impl_.type_name_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::TypeName* XmlSerialize::unsafe_arena_release_type_name() { - // @@protoc_insertion_point(field_release:pg_query.XmlSerialize.type_name) - - ::pg_query::TypeName* temp = _impl_.type_name_; - _impl_.type_name_ = nullptr; - return temp; -} -inline ::pg_query::TypeName* XmlSerialize::_internal_mutable_type_name() { - - if (_impl_.type_name_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::TypeName>(GetArenaForAllocation()); - _impl_.type_name_ = p; - } - return _impl_.type_name_; -} -inline ::pg_query::TypeName* XmlSerialize::mutable_type_name() { - ::pg_query::TypeName* _msg = _internal_mutable_type_name(); - // @@protoc_insertion_point(field_mutable:pg_query.XmlSerialize.type_name) - return _msg; -} -inline void XmlSerialize::set_allocated_type_name(::pg_query::TypeName* type_name) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.type_name_; - } - if (type_name) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(type_name); - if (message_arena != submessage_arena) { - type_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, type_name, submessage_arena); - } - - } else { - - } - _impl_.type_name_ = type_name; - // @@protoc_insertion_point(field_set_allocated:pg_query.XmlSerialize.type_name) -} - -// int32 location = 4 [json_name = "location"]; -inline void XmlSerialize::clear_location() { - _impl_.location_ = 0; -} -inline int32_t XmlSerialize::_internal_location() const { - return _impl_.location_; -} -inline int32_t XmlSerialize::location() const { - // @@protoc_insertion_point(field_get:pg_query.XmlSerialize.location) - return _internal_location(); -} -inline void XmlSerialize::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void XmlSerialize::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.XmlSerialize.location) -} - -// ------------------------------------------------------------------- - -// WithClause - -// repeated .pg_query.Node ctes = 1 [json_name = "ctes"]; -inline int WithClause::_internal_ctes_size() const { - return _impl_.ctes_.size(); -} -inline int WithClause::ctes_size() const { - return _internal_ctes_size(); -} -inline void WithClause::clear_ctes() { - _impl_.ctes_.Clear(); -} -inline ::pg_query::Node* WithClause::mutable_ctes(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.WithClause.ctes) - return _impl_.ctes_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -WithClause::mutable_ctes() { - // @@protoc_insertion_point(field_mutable_list:pg_query.WithClause.ctes) - return &_impl_.ctes_; -} -inline const ::pg_query::Node& WithClause::_internal_ctes(int index) const { - return _impl_.ctes_.Get(index); -} -inline const ::pg_query::Node& WithClause::ctes(int index) const { - // @@protoc_insertion_point(field_get:pg_query.WithClause.ctes) - return _internal_ctes(index); -} -inline ::pg_query::Node* WithClause::_internal_add_ctes() { - return _impl_.ctes_.Add(); -} -inline ::pg_query::Node* WithClause::add_ctes() { - ::pg_query::Node* _add = _internal_add_ctes(); - // @@protoc_insertion_point(field_add:pg_query.WithClause.ctes) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -WithClause::ctes() const { - // @@protoc_insertion_point(field_list:pg_query.WithClause.ctes) - return _impl_.ctes_; -} - -// bool recursive = 2 [json_name = "recursive"]; -inline void WithClause::clear_recursive() { - _impl_.recursive_ = false; -} -inline bool WithClause::_internal_recursive() const { - return _impl_.recursive_; -} -inline bool WithClause::recursive() const { - // @@protoc_insertion_point(field_get:pg_query.WithClause.recursive) - return _internal_recursive(); -} -inline void WithClause::_internal_set_recursive(bool value) { - - _impl_.recursive_ = value; -} -inline void WithClause::set_recursive(bool value) { - _internal_set_recursive(value); - // @@protoc_insertion_point(field_set:pg_query.WithClause.recursive) -} - -// int32 location = 3 [json_name = "location"]; -inline void WithClause::clear_location() { - _impl_.location_ = 0; -} -inline int32_t WithClause::_internal_location() const { - return _impl_.location_; -} -inline int32_t WithClause::location() const { - // @@protoc_insertion_point(field_get:pg_query.WithClause.location) - return _internal_location(); -} -inline void WithClause::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void WithClause::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.WithClause.location) -} - -// ------------------------------------------------------------------- - -// InferClause - -// repeated .pg_query.Node index_elems = 1 [json_name = "indexElems"]; -inline int InferClause::_internal_index_elems_size() const { - return _impl_.index_elems_.size(); -} -inline int InferClause::index_elems_size() const { - return _internal_index_elems_size(); -} -inline void InferClause::clear_index_elems() { - _impl_.index_elems_.Clear(); -} -inline ::pg_query::Node* InferClause::mutable_index_elems(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.InferClause.index_elems) - return _impl_.index_elems_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -InferClause::mutable_index_elems() { - // @@protoc_insertion_point(field_mutable_list:pg_query.InferClause.index_elems) - return &_impl_.index_elems_; -} -inline const ::pg_query::Node& InferClause::_internal_index_elems(int index) const { - return _impl_.index_elems_.Get(index); -} -inline const ::pg_query::Node& InferClause::index_elems(int index) const { - // @@protoc_insertion_point(field_get:pg_query.InferClause.index_elems) - return _internal_index_elems(index); -} -inline ::pg_query::Node* InferClause::_internal_add_index_elems() { - return _impl_.index_elems_.Add(); -} -inline ::pg_query::Node* InferClause::add_index_elems() { - ::pg_query::Node* _add = _internal_add_index_elems(); - // @@protoc_insertion_point(field_add:pg_query.InferClause.index_elems) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -InferClause::index_elems() const { - // @@protoc_insertion_point(field_list:pg_query.InferClause.index_elems) - return _impl_.index_elems_; -} - -// .pg_query.Node where_clause = 2 [json_name = "whereClause"]; -inline bool InferClause::_internal_has_where_clause() const { - return this != internal_default_instance() && _impl_.where_clause_ != nullptr; -} -inline bool InferClause::has_where_clause() const { - return _internal_has_where_clause(); -} -inline void InferClause::clear_where_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.where_clause_ != nullptr) { - delete _impl_.where_clause_; - } - _impl_.where_clause_ = nullptr; -} -inline const ::pg_query::Node& InferClause::_internal_where_clause() const { - const ::pg_query::Node* p = _impl_.where_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& InferClause::where_clause() const { - // @@protoc_insertion_point(field_get:pg_query.InferClause.where_clause) - return _internal_where_clause(); -} -inline void InferClause::unsafe_arena_set_allocated_where_clause( - ::pg_query::Node* where_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.where_clause_); - } - _impl_.where_clause_ = where_clause; - if (where_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.InferClause.where_clause) -} -inline ::pg_query::Node* InferClause::release_where_clause() { - - ::pg_query::Node* temp = _impl_.where_clause_; - _impl_.where_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* InferClause::unsafe_arena_release_where_clause() { - // @@protoc_insertion_point(field_release:pg_query.InferClause.where_clause) - - ::pg_query::Node* temp = _impl_.where_clause_; - _impl_.where_clause_ = nullptr; - return temp; -} -inline ::pg_query::Node* InferClause::_internal_mutable_where_clause() { - - if (_impl_.where_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.where_clause_ = p; - } - return _impl_.where_clause_; -} -inline ::pg_query::Node* InferClause::mutable_where_clause() { - ::pg_query::Node* _msg = _internal_mutable_where_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.InferClause.where_clause) - return _msg; -} -inline void InferClause::set_allocated_where_clause(::pg_query::Node* where_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.where_clause_; - } - if (where_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(where_clause); - if (message_arena != submessage_arena) { - where_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, where_clause, submessage_arena); - } - - } else { - - } - _impl_.where_clause_ = where_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.InferClause.where_clause) -} - -// string conname = 3 [json_name = "conname"]; -inline void InferClause::clear_conname() { - _impl_.conname_.ClearToEmpty(); -} -inline const std::string& InferClause::conname() const { - // @@protoc_insertion_point(field_get:pg_query.InferClause.conname) - return _internal_conname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void InferClause::set_conname(ArgT0&& arg0, ArgT... args) { - - _impl_.conname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.InferClause.conname) -} -inline std::string* InferClause::mutable_conname() { - std::string* _s = _internal_mutable_conname(); - // @@protoc_insertion_point(field_mutable:pg_query.InferClause.conname) - return _s; -} -inline const std::string& InferClause::_internal_conname() const { - return _impl_.conname_.Get(); -} -inline void InferClause::_internal_set_conname(const std::string& value) { - - _impl_.conname_.Set(value, GetArenaForAllocation()); -} -inline std::string* InferClause::_internal_mutable_conname() { - - return _impl_.conname_.Mutable(GetArenaForAllocation()); -} -inline std::string* InferClause::release_conname() { - // @@protoc_insertion_point(field_release:pg_query.InferClause.conname) - return _impl_.conname_.Release(); -} -inline void InferClause::set_allocated_conname(std::string* conname) { - if (conname != nullptr) { - - } else { - - } - _impl_.conname_.SetAllocated(conname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.conname_.IsDefault()) { - _impl_.conname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.InferClause.conname) -} - -// int32 location = 4 [json_name = "location"]; -inline void InferClause::clear_location() { - _impl_.location_ = 0; -} -inline int32_t InferClause::_internal_location() const { - return _impl_.location_; -} -inline int32_t InferClause::location() const { - // @@protoc_insertion_point(field_get:pg_query.InferClause.location) - return _internal_location(); -} -inline void InferClause::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void InferClause::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.InferClause.location) -} - -// ------------------------------------------------------------------- - -// OnConflictClause - -// .pg_query.OnConflictAction action = 1 [json_name = "action"]; -inline void OnConflictClause::clear_action() { - _impl_.action_ = 0; -} -inline ::pg_query::OnConflictAction OnConflictClause::_internal_action() const { - return static_cast< ::pg_query::OnConflictAction >(_impl_.action_); -} -inline ::pg_query::OnConflictAction OnConflictClause::action() const { - // @@protoc_insertion_point(field_get:pg_query.OnConflictClause.action) - return _internal_action(); -} -inline void OnConflictClause::_internal_set_action(::pg_query::OnConflictAction value) { - - _impl_.action_ = value; -} -inline void OnConflictClause::set_action(::pg_query::OnConflictAction value) { - _internal_set_action(value); - // @@protoc_insertion_point(field_set:pg_query.OnConflictClause.action) -} - -// .pg_query.InferClause infer = 2 [json_name = "infer"]; -inline bool OnConflictClause::_internal_has_infer() const { - return this != internal_default_instance() && _impl_.infer_ != nullptr; -} -inline bool OnConflictClause::has_infer() const { - return _internal_has_infer(); -} -inline void OnConflictClause::clear_infer() { - if (GetArenaForAllocation() == nullptr && _impl_.infer_ != nullptr) { - delete _impl_.infer_; - } - _impl_.infer_ = nullptr; -} -inline const ::pg_query::InferClause& OnConflictClause::_internal_infer() const { - const ::pg_query::InferClause* p = _impl_.infer_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_InferClause_default_instance_); -} -inline const ::pg_query::InferClause& OnConflictClause::infer() const { - // @@protoc_insertion_point(field_get:pg_query.OnConflictClause.infer) - return _internal_infer(); -} -inline void OnConflictClause::unsafe_arena_set_allocated_infer( - ::pg_query::InferClause* infer) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.infer_); - } - _impl_.infer_ = infer; - if (infer) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.OnConflictClause.infer) -} -inline ::pg_query::InferClause* OnConflictClause::release_infer() { - - ::pg_query::InferClause* temp = _impl_.infer_; - _impl_.infer_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::InferClause* OnConflictClause::unsafe_arena_release_infer() { - // @@protoc_insertion_point(field_release:pg_query.OnConflictClause.infer) - - ::pg_query::InferClause* temp = _impl_.infer_; - _impl_.infer_ = nullptr; - return temp; -} -inline ::pg_query::InferClause* OnConflictClause::_internal_mutable_infer() { - - if (_impl_.infer_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::InferClause>(GetArenaForAllocation()); - _impl_.infer_ = p; - } - return _impl_.infer_; -} -inline ::pg_query::InferClause* OnConflictClause::mutable_infer() { - ::pg_query::InferClause* _msg = _internal_mutable_infer(); - // @@protoc_insertion_point(field_mutable:pg_query.OnConflictClause.infer) - return _msg; -} -inline void OnConflictClause::set_allocated_infer(::pg_query::InferClause* infer) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.infer_; - } - if (infer) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(infer); - if (message_arena != submessage_arena) { - infer = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, infer, submessage_arena); - } - - } else { - - } - _impl_.infer_ = infer; - // @@protoc_insertion_point(field_set_allocated:pg_query.OnConflictClause.infer) -} - -// repeated .pg_query.Node target_list = 3 [json_name = "targetList"]; -inline int OnConflictClause::_internal_target_list_size() const { - return _impl_.target_list_.size(); -} -inline int OnConflictClause::target_list_size() const { - return _internal_target_list_size(); -} -inline void OnConflictClause::clear_target_list() { - _impl_.target_list_.Clear(); -} -inline ::pg_query::Node* OnConflictClause::mutable_target_list(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.OnConflictClause.target_list) - return _impl_.target_list_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -OnConflictClause::mutable_target_list() { - // @@protoc_insertion_point(field_mutable_list:pg_query.OnConflictClause.target_list) - return &_impl_.target_list_; -} -inline const ::pg_query::Node& OnConflictClause::_internal_target_list(int index) const { - return _impl_.target_list_.Get(index); -} -inline const ::pg_query::Node& OnConflictClause::target_list(int index) const { - // @@protoc_insertion_point(field_get:pg_query.OnConflictClause.target_list) - return _internal_target_list(index); -} -inline ::pg_query::Node* OnConflictClause::_internal_add_target_list() { - return _impl_.target_list_.Add(); -} -inline ::pg_query::Node* OnConflictClause::add_target_list() { - ::pg_query::Node* _add = _internal_add_target_list(); - // @@protoc_insertion_point(field_add:pg_query.OnConflictClause.target_list) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -OnConflictClause::target_list() const { - // @@protoc_insertion_point(field_list:pg_query.OnConflictClause.target_list) - return _impl_.target_list_; -} - -// .pg_query.Node where_clause = 4 [json_name = "whereClause"]; -inline bool OnConflictClause::_internal_has_where_clause() const { - return this != internal_default_instance() && _impl_.where_clause_ != nullptr; -} -inline bool OnConflictClause::has_where_clause() const { - return _internal_has_where_clause(); -} -inline void OnConflictClause::clear_where_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.where_clause_ != nullptr) { - delete _impl_.where_clause_; - } - _impl_.where_clause_ = nullptr; -} -inline const ::pg_query::Node& OnConflictClause::_internal_where_clause() const { - const ::pg_query::Node* p = _impl_.where_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& OnConflictClause::where_clause() const { - // @@protoc_insertion_point(field_get:pg_query.OnConflictClause.where_clause) - return _internal_where_clause(); -} -inline void OnConflictClause::unsafe_arena_set_allocated_where_clause( - ::pg_query::Node* where_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.where_clause_); - } - _impl_.where_clause_ = where_clause; - if (where_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.OnConflictClause.where_clause) -} -inline ::pg_query::Node* OnConflictClause::release_where_clause() { - - ::pg_query::Node* temp = _impl_.where_clause_; - _impl_.where_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* OnConflictClause::unsafe_arena_release_where_clause() { - // @@protoc_insertion_point(field_release:pg_query.OnConflictClause.where_clause) - - ::pg_query::Node* temp = _impl_.where_clause_; - _impl_.where_clause_ = nullptr; - return temp; -} -inline ::pg_query::Node* OnConflictClause::_internal_mutable_where_clause() { - - if (_impl_.where_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.where_clause_ = p; - } - return _impl_.where_clause_; -} -inline ::pg_query::Node* OnConflictClause::mutable_where_clause() { - ::pg_query::Node* _msg = _internal_mutable_where_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.OnConflictClause.where_clause) - return _msg; -} -inline void OnConflictClause::set_allocated_where_clause(::pg_query::Node* where_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.where_clause_; - } - if (where_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(where_clause); - if (message_arena != submessage_arena) { - where_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, where_clause, submessage_arena); - } - - } else { - - } - _impl_.where_clause_ = where_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.OnConflictClause.where_clause) -} - -// int32 location = 5 [json_name = "location"]; -inline void OnConflictClause::clear_location() { - _impl_.location_ = 0; -} -inline int32_t OnConflictClause::_internal_location() const { - return _impl_.location_; -} -inline int32_t OnConflictClause::location() const { - // @@protoc_insertion_point(field_get:pg_query.OnConflictClause.location) - return _internal_location(); -} -inline void OnConflictClause::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void OnConflictClause::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.OnConflictClause.location) -} - -// ------------------------------------------------------------------- - -// CTESearchClause - -// repeated .pg_query.Node search_col_list = 1 [json_name = "search_col_list"]; -inline int CTESearchClause::_internal_search_col_list_size() const { - return _impl_.search_col_list_.size(); -} -inline int CTESearchClause::search_col_list_size() const { - return _internal_search_col_list_size(); -} -inline void CTESearchClause::clear_search_col_list() { - _impl_.search_col_list_.Clear(); -} -inline ::pg_query::Node* CTESearchClause::mutable_search_col_list(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CTESearchClause.search_col_list) - return _impl_.search_col_list_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CTESearchClause::mutable_search_col_list() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CTESearchClause.search_col_list) - return &_impl_.search_col_list_; -} -inline const ::pg_query::Node& CTESearchClause::_internal_search_col_list(int index) const { - return _impl_.search_col_list_.Get(index); -} -inline const ::pg_query::Node& CTESearchClause::search_col_list(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CTESearchClause.search_col_list) - return _internal_search_col_list(index); -} -inline ::pg_query::Node* CTESearchClause::_internal_add_search_col_list() { - return _impl_.search_col_list_.Add(); -} -inline ::pg_query::Node* CTESearchClause::add_search_col_list() { - ::pg_query::Node* _add = _internal_add_search_col_list(); - // @@protoc_insertion_point(field_add:pg_query.CTESearchClause.search_col_list) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CTESearchClause::search_col_list() const { - // @@protoc_insertion_point(field_list:pg_query.CTESearchClause.search_col_list) - return _impl_.search_col_list_; -} - -// bool search_breadth_first = 2 [json_name = "search_breadth_first"]; -inline void CTESearchClause::clear_search_breadth_first() { - _impl_.search_breadth_first_ = false; -} -inline bool CTESearchClause::_internal_search_breadth_first() const { - return _impl_.search_breadth_first_; -} -inline bool CTESearchClause::search_breadth_first() const { - // @@protoc_insertion_point(field_get:pg_query.CTESearchClause.search_breadth_first) - return _internal_search_breadth_first(); -} -inline void CTESearchClause::_internal_set_search_breadth_first(bool value) { - - _impl_.search_breadth_first_ = value; -} -inline void CTESearchClause::set_search_breadth_first(bool value) { - _internal_set_search_breadth_first(value); - // @@protoc_insertion_point(field_set:pg_query.CTESearchClause.search_breadth_first) -} - -// string search_seq_column = 3 [json_name = "search_seq_column"]; -inline void CTESearchClause::clear_search_seq_column() { - _impl_.search_seq_column_.ClearToEmpty(); -} -inline const std::string& CTESearchClause::search_seq_column() const { - // @@protoc_insertion_point(field_get:pg_query.CTESearchClause.search_seq_column) - return _internal_search_seq_column(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CTESearchClause::set_search_seq_column(ArgT0&& arg0, ArgT... args) { - - _impl_.search_seq_column_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CTESearchClause.search_seq_column) -} -inline std::string* CTESearchClause::mutable_search_seq_column() { - std::string* _s = _internal_mutable_search_seq_column(); - // @@protoc_insertion_point(field_mutable:pg_query.CTESearchClause.search_seq_column) - return _s; -} -inline const std::string& CTESearchClause::_internal_search_seq_column() const { - return _impl_.search_seq_column_.Get(); -} -inline void CTESearchClause::_internal_set_search_seq_column(const std::string& value) { - - _impl_.search_seq_column_.Set(value, GetArenaForAllocation()); -} -inline std::string* CTESearchClause::_internal_mutable_search_seq_column() { - - return _impl_.search_seq_column_.Mutable(GetArenaForAllocation()); -} -inline std::string* CTESearchClause::release_search_seq_column() { - // @@protoc_insertion_point(field_release:pg_query.CTESearchClause.search_seq_column) - return _impl_.search_seq_column_.Release(); -} -inline void CTESearchClause::set_allocated_search_seq_column(std::string* search_seq_column) { - if (search_seq_column != nullptr) { - - } else { - - } - _impl_.search_seq_column_.SetAllocated(search_seq_column, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.search_seq_column_.IsDefault()) { - _impl_.search_seq_column_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CTESearchClause.search_seq_column) -} - -// int32 location = 4 [json_name = "location"]; -inline void CTESearchClause::clear_location() { - _impl_.location_ = 0; -} -inline int32_t CTESearchClause::_internal_location() const { - return _impl_.location_; -} -inline int32_t CTESearchClause::location() const { - // @@protoc_insertion_point(field_get:pg_query.CTESearchClause.location) - return _internal_location(); -} -inline void CTESearchClause::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void CTESearchClause::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.CTESearchClause.location) -} - -// ------------------------------------------------------------------- - -// CTECycleClause - -// repeated .pg_query.Node cycle_col_list = 1 [json_name = "cycle_col_list"]; -inline int CTECycleClause::_internal_cycle_col_list_size() const { - return _impl_.cycle_col_list_.size(); -} -inline int CTECycleClause::cycle_col_list_size() const { - return _internal_cycle_col_list_size(); -} -inline void CTECycleClause::clear_cycle_col_list() { - _impl_.cycle_col_list_.Clear(); -} -inline ::pg_query::Node* CTECycleClause::mutable_cycle_col_list(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CTECycleClause.cycle_col_list) - return _impl_.cycle_col_list_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CTECycleClause::mutable_cycle_col_list() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CTECycleClause.cycle_col_list) - return &_impl_.cycle_col_list_; -} -inline const ::pg_query::Node& CTECycleClause::_internal_cycle_col_list(int index) const { - return _impl_.cycle_col_list_.Get(index); -} -inline const ::pg_query::Node& CTECycleClause::cycle_col_list(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CTECycleClause.cycle_col_list) - return _internal_cycle_col_list(index); -} -inline ::pg_query::Node* CTECycleClause::_internal_add_cycle_col_list() { - return _impl_.cycle_col_list_.Add(); -} -inline ::pg_query::Node* CTECycleClause::add_cycle_col_list() { - ::pg_query::Node* _add = _internal_add_cycle_col_list(); - // @@protoc_insertion_point(field_add:pg_query.CTECycleClause.cycle_col_list) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CTECycleClause::cycle_col_list() const { - // @@protoc_insertion_point(field_list:pg_query.CTECycleClause.cycle_col_list) - return _impl_.cycle_col_list_; -} - -// string cycle_mark_column = 2 [json_name = "cycle_mark_column"]; -inline void CTECycleClause::clear_cycle_mark_column() { - _impl_.cycle_mark_column_.ClearToEmpty(); -} -inline const std::string& CTECycleClause::cycle_mark_column() const { - // @@protoc_insertion_point(field_get:pg_query.CTECycleClause.cycle_mark_column) - return _internal_cycle_mark_column(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CTECycleClause::set_cycle_mark_column(ArgT0&& arg0, ArgT... args) { - - _impl_.cycle_mark_column_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CTECycleClause.cycle_mark_column) -} -inline std::string* CTECycleClause::mutable_cycle_mark_column() { - std::string* _s = _internal_mutable_cycle_mark_column(); - // @@protoc_insertion_point(field_mutable:pg_query.CTECycleClause.cycle_mark_column) - return _s; -} -inline const std::string& CTECycleClause::_internal_cycle_mark_column() const { - return _impl_.cycle_mark_column_.Get(); -} -inline void CTECycleClause::_internal_set_cycle_mark_column(const std::string& value) { - - _impl_.cycle_mark_column_.Set(value, GetArenaForAllocation()); -} -inline std::string* CTECycleClause::_internal_mutable_cycle_mark_column() { - - return _impl_.cycle_mark_column_.Mutable(GetArenaForAllocation()); -} -inline std::string* CTECycleClause::release_cycle_mark_column() { - // @@protoc_insertion_point(field_release:pg_query.CTECycleClause.cycle_mark_column) - return _impl_.cycle_mark_column_.Release(); -} -inline void CTECycleClause::set_allocated_cycle_mark_column(std::string* cycle_mark_column) { - if (cycle_mark_column != nullptr) { - - } else { - - } - _impl_.cycle_mark_column_.SetAllocated(cycle_mark_column, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.cycle_mark_column_.IsDefault()) { - _impl_.cycle_mark_column_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CTECycleClause.cycle_mark_column) -} - -// .pg_query.Node cycle_mark_value = 3 [json_name = "cycle_mark_value"]; -inline bool CTECycleClause::_internal_has_cycle_mark_value() const { - return this != internal_default_instance() && _impl_.cycle_mark_value_ != nullptr; -} -inline bool CTECycleClause::has_cycle_mark_value() const { - return _internal_has_cycle_mark_value(); -} -inline void CTECycleClause::clear_cycle_mark_value() { - if (GetArenaForAllocation() == nullptr && _impl_.cycle_mark_value_ != nullptr) { - delete _impl_.cycle_mark_value_; - } - _impl_.cycle_mark_value_ = nullptr; -} -inline const ::pg_query::Node& CTECycleClause::_internal_cycle_mark_value() const { - const ::pg_query::Node* p = _impl_.cycle_mark_value_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CTECycleClause::cycle_mark_value() const { - // @@protoc_insertion_point(field_get:pg_query.CTECycleClause.cycle_mark_value) - return _internal_cycle_mark_value(); -} -inline void CTECycleClause::unsafe_arena_set_allocated_cycle_mark_value( - ::pg_query::Node* cycle_mark_value) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.cycle_mark_value_); - } - _impl_.cycle_mark_value_ = cycle_mark_value; - if (cycle_mark_value) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CTECycleClause.cycle_mark_value) -} -inline ::pg_query::Node* CTECycleClause::release_cycle_mark_value() { - - ::pg_query::Node* temp = _impl_.cycle_mark_value_; - _impl_.cycle_mark_value_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CTECycleClause::unsafe_arena_release_cycle_mark_value() { - // @@protoc_insertion_point(field_release:pg_query.CTECycleClause.cycle_mark_value) - - ::pg_query::Node* temp = _impl_.cycle_mark_value_; - _impl_.cycle_mark_value_ = nullptr; - return temp; -} -inline ::pg_query::Node* CTECycleClause::_internal_mutable_cycle_mark_value() { - - if (_impl_.cycle_mark_value_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.cycle_mark_value_ = p; - } - return _impl_.cycle_mark_value_; -} -inline ::pg_query::Node* CTECycleClause::mutable_cycle_mark_value() { - ::pg_query::Node* _msg = _internal_mutable_cycle_mark_value(); - // @@protoc_insertion_point(field_mutable:pg_query.CTECycleClause.cycle_mark_value) - return _msg; -} -inline void CTECycleClause::set_allocated_cycle_mark_value(::pg_query::Node* cycle_mark_value) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.cycle_mark_value_; - } - if (cycle_mark_value) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(cycle_mark_value); - if (message_arena != submessage_arena) { - cycle_mark_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, cycle_mark_value, submessage_arena); - } - - } else { - - } - _impl_.cycle_mark_value_ = cycle_mark_value; - // @@protoc_insertion_point(field_set_allocated:pg_query.CTECycleClause.cycle_mark_value) -} - -// .pg_query.Node cycle_mark_default = 4 [json_name = "cycle_mark_default"]; -inline bool CTECycleClause::_internal_has_cycle_mark_default() const { - return this != internal_default_instance() && _impl_.cycle_mark_default_ != nullptr; -} -inline bool CTECycleClause::has_cycle_mark_default() const { - return _internal_has_cycle_mark_default(); -} -inline void CTECycleClause::clear_cycle_mark_default() { - if (GetArenaForAllocation() == nullptr && _impl_.cycle_mark_default_ != nullptr) { - delete _impl_.cycle_mark_default_; - } - _impl_.cycle_mark_default_ = nullptr; -} -inline const ::pg_query::Node& CTECycleClause::_internal_cycle_mark_default() const { - const ::pg_query::Node* p = _impl_.cycle_mark_default_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CTECycleClause::cycle_mark_default() const { - // @@protoc_insertion_point(field_get:pg_query.CTECycleClause.cycle_mark_default) - return _internal_cycle_mark_default(); -} -inline void CTECycleClause::unsafe_arena_set_allocated_cycle_mark_default( - ::pg_query::Node* cycle_mark_default) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.cycle_mark_default_); - } - _impl_.cycle_mark_default_ = cycle_mark_default; - if (cycle_mark_default) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CTECycleClause.cycle_mark_default) -} -inline ::pg_query::Node* CTECycleClause::release_cycle_mark_default() { - - ::pg_query::Node* temp = _impl_.cycle_mark_default_; - _impl_.cycle_mark_default_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CTECycleClause::unsafe_arena_release_cycle_mark_default() { - // @@protoc_insertion_point(field_release:pg_query.CTECycleClause.cycle_mark_default) - - ::pg_query::Node* temp = _impl_.cycle_mark_default_; - _impl_.cycle_mark_default_ = nullptr; - return temp; -} -inline ::pg_query::Node* CTECycleClause::_internal_mutable_cycle_mark_default() { - - if (_impl_.cycle_mark_default_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.cycle_mark_default_ = p; - } - return _impl_.cycle_mark_default_; -} -inline ::pg_query::Node* CTECycleClause::mutable_cycle_mark_default() { - ::pg_query::Node* _msg = _internal_mutable_cycle_mark_default(); - // @@protoc_insertion_point(field_mutable:pg_query.CTECycleClause.cycle_mark_default) - return _msg; -} -inline void CTECycleClause::set_allocated_cycle_mark_default(::pg_query::Node* cycle_mark_default) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.cycle_mark_default_; - } - if (cycle_mark_default) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(cycle_mark_default); - if (message_arena != submessage_arena) { - cycle_mark_default = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, cycle_mark_default, submessage_arena); - } - - } else { - - } - _impl_.cycle_mark_default_ = cycle_mark_default; - // @@protoc_insertion_point(field_set_allocated:pg_query.CTECycleClause.cycle_mark_default) -} - -// string cycle_path_column = 5 [json_name = "cycle_path_column"]; -inline void CTECycleClause::clear_cycle_path_column() { - _impl_.cycle_path_column_.ClearToEmpty(); -} -inline const std::string& CTECycleClause::cycle_path_column() const { - // @@protoc_insertion_point(field_get:pg_query.CTECycleClause.cycle_path_column) - return _internal_cycle_path_column(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CTECycleClause::set_cycle_path_column(ArgT0&& arg0, ArgT... args) { - - _impl_.cycle_path_column_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CTECycleClause.cycle_path_column) -} -inline std::string* CTECycleClause::mutable_cycle_path_column() { - std::string* _s = _internal_mutable_cycle_path_column(); - // @@protoc_insertion_point(field_mutable:pg_query.CTECycleClause.cycle_path_column) - return _s; -} -inline const std::string& CTECycleClause::_internal_cycle_path_column() const { - return _impl_.cycle_path_column_.Get(); -} -inline void CTECycleClause::_internal_set_cycle_path_column(const std::string& value) { - - _impl_.cycle_path_column_.Set(value, GetArenaForAllocation()); -} -inline std::string* CTECycleClause::_internal_mutable_cycle_path_column() { - - return _impl_.cycle_path_column_.Mutable(GetArenaForAllocation()); -} -inline std::string* CTECycleClause::release_cycle_path_column() { - // @@protoc_insertion_point(field_release:pg_query.CTECycleClause.cycle_path_column) - return _impl_.cycle_path_column_.Release(); -} -inline void CTECycleClause::set_allocated_cycle_path_column(std::string* cycle_path_column) { - if (cycle_path_column != nullptr) { - - } else { - - } - _impl_.cycle_path_column_.SetAllocated(cycle_path_column, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.cycle_path_column_.IsDefault()) { - _impl_.cycle_path_column_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CTECycleClause.cycle_path_column) -} - -// int32 location = 6 [json_name = "location"]; -inline void CTECycleClause::clear_location() { - _impl_.location_ = 0; -} -inline int32_t CTECycleClause::_internal_location() const { - return _impl_.location_; -} -inline int32_t CTECycleClause::location() const { - // @@protoc_insertion_point(field_get:pg_query.CTECycleClause.location) - return _internal_location(); -} -inline void CTECycleClause::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void CTECycleClause::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.CTECycleClause.location) -} - -// uint32 cycle_mark_type = 7 [json_name = "cycle_mark_type"]; -inline void CTECycleClause::clear_cycle_mark_type() { - _impl_.cycle_mark_type_ = 0u; -} -inline uint32_t CTECycleClause::_internal_cycle_mark_type() const { - return _impl_.cycle_mark_type_; -} -inline uint32_t CTECycleClause::cycle_mark_type() const { - // @@protoc_insertion_point(field_get:pg_query.CTECycleClause.cycle_mark_type) - return _internal_cycle_mark_type(); -} -inline void CTECycleClause::_internal_set_cycle_mark_type(uint32_t value) { - - _impl_.cycle_mark_type_ = value; -} -inline void CTECycleClause::set_cycle_mark_type(uint32_t value) { - _internal_set_cycle_mark_type(value); - // @@protoc_insertion_point(field_set:pg_query.CTECycleClause.cycle_mark_type) -} - -// int32 cycle_mark_typmod = 8 [json_name = "cycle_mark_typmod"]; -inline void CTECycleClause::clear_cycle_mark_typmod() { - _impl_.cycle_mark_typmod_ = 0; -} -inline int32_t CTECycleClause::_internal_cycle_mark_typmod() const { - return _impl_.cycle_mark_typmod_; -} -inline int32_t CTECycleClause::cycle_mark_typmod() const { - // @@protoc_insertion_point(field_get:pg_query.CTECycleClause.cycle_mark_typmod) - return _internal_cycle_mark_typmod(); -} -inline void CTECycleClause::_internal_set_cycle_mark_typmod(int32_t value) { - - _impl_.cycle_mark_typmod_ = value; -} -inline void CTECycleClause::set_cycle_mark_typmod(int32_t value) { - _internal_set_cycle_mark_typmod(value); - // @@protoc_insertion_point(field_set:pg_query.CTECycleClause.cycle_mark_typmod) -} - -// uint32 cycle_mark_collation = 9 [json_name = "cycle_mark_collation"]; -inline void CTECycleClause::clear_cycle_mark_collation() { - _impl_.cycle_mark_collation_ = 0u; -} -inline uint32_t CTECycleClause::_internal_cycle_mark_collation() const { - return _impl_.cycle_mark_collation_; -} -inline uint32_t CTECycleClause::cycle_mark_collation() const { - // @@protoc_insertion_point(field_get:pg_query.CTECycleClause.cycle_mark_collation) - return _internal_cycle_mark_collation(); -} -inline void CTECycleClause::_internal_set_cycle_mark_collation(uint32_t value) { - - _impl_.cycle_mark_collation_ = value; -} -inline void CTECycleClause::set_cycle_mark_collation(uint32_t value) { - _internal_set_cycle_mark_collation(value); - // @@protoc_insertion_point(field_set:pg_query.CTECycleClause.cycle_mark_collation) -} - -// uint32 cycle_mark_neop = 10 [json_name = "cycle_mark_neop"]; -inline void CTECycleClause::clear_cycle_mark_neop() { - _impl_.cycle_mark_neop_ = 0u; -} -inline uint32_t CTECycleClause::_internal_cycle_mark_neop() const { - return _impl_.cycle_mark_neop_; -} -inline uint32_t CTECycleClause::cycle_mark_neop() const { - // @@protoc_insertion_point(field_get:pg_query.CTECycleClause.cycle_mark_neop) - return _internal_cycle_mark_neop(); -} -inline void CTECycleClause::_internal_set_cycle_mark_neop(uint32_t value) { - - _impl_.cycle_mark_neop_ = value; -} -inline void CTECycleClause::set_cycle_mark_neop(uint32_t value) { - _internal_set_cycle_mark_neop(value); - // @@protoc_insertion_point(field_set:pg_query.CTECycleClause.cycle_mark_neop) -} - -// ------------------------------------------------------------------- - -// CommonTableExpr - -// string ctename = 1 [json_name = "ctename"]; -inline void CommonTableExpr::clear_ctename() { - _impl_.ctename_.ClearToEmpty(); -} -inline const std::string& CommonTableExpr::ctename() const { - // @@protoc_insertion_point(field_get:pg_query.CommonTableExpr.ctename) - return _internal_ctename(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CommonTableExpr::set_ctename(ArgT0&& arg0, ArgT... args) { - - _impl_.ctename_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.CommonTableExpr.ctename) -} -inline std::string* CommonTableExpr::mutable_ctename() { - std::string* _s = _internal_mutable_ctename(); - // @@protoc_insertion_point(field_mutable:pg_query.CommonTableExpr.ctename) - return _s; -} -inline const std::string& CommonTableExpr::_internal_ctename() const { - return _impl_.ctename_.Get(); -} -inline void CommonTableExpr::_internal_set_ctename(const std::string& value) { - - _impl_.ctename_.Set(value, GetArenaForAllocation()); -} -inline std::string* CommonTableExpr::_internal_mutable_ctename() { - - return _impl_.ctename_.Mutable(GetArenaForAllocation()); -} -inline std::string* CommonTableExpr::release_ctename() { - // @@protoc_insertion_point(field_release:pg_query.CommonTableExpr.ctename) - return _impl_.ctename_.Release(); -} -inline void CommonTableExpr::set_allocated_ctename(std::string* ctename) { - if (ctename != nullptr) { - - } else { - - } - _impl_.ctename_.SetAllocated(ctename, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.ctename_.IsDefault()) { - _impl_.ctename_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.CommonTableExpr.ctename) -} - -// repeated .pg_query.Node aliascolnames = 2 [json_name = "aliascolnames"]; -inline int CommonTableExpr::_internal_aliascolnames_size() const { - return _impl_.aliascolnames_.size(); -} -inline int CommonTableExpr::aliascolnames_size() const { - return _internal_aliascolnames_size(); -} -inline void CommonTableExpr::clear_aliascolnames() { - _impl_.aliascolnames_.Clear(); -} -inline ::pg_query::Node* CommonTableExpr::mutable_aliascolnames(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CommonTableExpr.aliascolnames) - return _impl_.aliascolnames_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CommonTableExpr::mutable_aliascolnames() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CommonTableExpr.aliascolnames) - return &_impl_.aliascolnames_; -} -inline const ::pg_query::Node& CommonTableExpr::_internal_aliascolnames(int index) const { - return _impl_.aliascolnames_.Get(index); -} -inline const ::pg_query::Node& CommonTableExpr::aliascolnames(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CommonTableExpr.aliascolnames) - return _internal_aliascolnames(index); -} -inline ::pg_query::Node* CommonTableExpr::_internal_add_aliascolnames() { - return _impl_.aliascolnames_.Add(); -} -inline ::pg_query::Node* CommonTableExpr::add_aliascolnames() { - ::pg_query::Node* _add = _internal_add_aliascolnames(); - // @@protoc_insertion_point(field_add:pg_query.CommonTableExpr.aliascolnames) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CommonTableExpr::aliascolnames() const { - // @@protoc_insertion_point(field_list:pg_query.CommonTableExpr.aliascolnames) - return _impl_.aliascolnames_; -} - -// .pg_query.CTEMaterialize ctematerialized = 3 [json_name = "ctematerialized"]; -inline void CommonTableExpr::clear_ctematerialized() { - _impl_.ctematerialized_ = 0; -} -inline ::pg_query::CTEMaterialize CommonTableExpr::_internal_ctematerialized() const { - return static_cast< ::pg_query::CTEMaterialize >(_impl_.ctematerialized_); -} -inline ::pg_query::CTEMaterialize CommonTableExpr::ctematerialized() const { - // @@protoc_insertion_point(field_get:pg_query.CommonTableExpr.ctematerialized) - return _internal_ctematerialized(); -} -inline void CommonTableExpr::_internal_set_ctematerialized(::pg_query::CTEMaterialize value) { - - _impl_.ctematerialized_ = value; -} -inline void CommonTableExpr::set_ctematerialized(::pg_query::CTEMaterialize value) { - _internal_set_ctematerialized(value); - // @@protoc_insertion_point(field_set:pg_query.CommonTableExpr.ctematerialized) -} - -// .pg_query.Node ctequery = 4 [json_name = "ctequery"]; -inline bool CommonTableExpr::_internal_has_ctequery() const { - return this != internal_default_instance() && _impl_.ctequery_ != nullptr; -} -inline bool CommonTableExpr::has_ctequery() const { - return _internal_has_ctequery(); -} -inline void CommonTableExpr::clear_ctequery() { - if (GetArenaForAllocation() == nullptr && _impl_.ctequery_ != nullptr) { - delete _impl_.ctequery_; - } - _impl_.ctequery_ = nullptr; -} -inline const ::pg_query::Node& CommonTableExpr::_internal_ctequery() const { - const ::pg_query::Node* p = _impl_.ctequery_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& CommonTableExpr::ctequery() const { - // @@protoc_insertion_point(field_get:pg_query.CommonTableExpr.ctequery) - return _internal_ctequery(); -} -inline void CommonTableExpr::unsafe_arena_set_allocated_ctequery( - ::pg_query::Node* ctequery) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.ctequery_); - } - _impl_.ctequery_ = ctequery; - if (ctequery) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CommonTableExpr.ctequery) -} -inline ::pg_query::Node* CommonTableExpr::release_ctequery() { - - ::pg_query::Node* temp = _impl_.ctequery_; - _impl_.ctequery_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* CommonTableExpr::unsafe_arena_release_ctequery() { - // @@protoc_insertion_point(field_release:pg_query.CommonTableExpr.ctequery) - - ::pg_query::Node* temp = _impl_.ctequery_; - _impl_.ctequery_ = nullptr; - return temp; -} -inline ::pg_query::Node* CommonTableExpr::_internal_mutable_ctequery() { - - if (_impl_.ctequery_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.ctequery_ = p; - } - return _impl_.ctequery_; -} -inline ::pg_query::Node* CommonTableExpr::mutable_ctequery() { - ::pg_query::Node* _msg = _internal_mutable_ctequery(); - // @@protoc_insertion_point(field_mutable:pg_query.CommonTableExpr.ctequery) - return _msg; -} -inline void CommonTableExpr::set_allocated_ctequery(::pg_query::Node* ctequery) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.ctequery_; - } - if (ctequery) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(ctequery); - if (message_arena != submessage_arena) { - ctequery = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, ctequery, submessage_arena); - } - - } else { - - } - _impl_.ctequery_ = ctequery; - // @@protoc_insertion_point(field_set_allocated:pg_query.CommonTableExpr.ctequery) -} - -// .pg_query.CTESearchClause search_clause = 5 [json_name = "search_clause"]; -inline bool CommonTableExpr::_internal_has_search_clause() const { - return this != internal_default_instance() && _impl_.search_clause_ != nullptr; -} -inline bool CommonTableExpr::has_search_clause() const { - return _internal_has_search_clause(); -} -inline void CommonTableExpr::clear_search_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.search_clause_ != nullptr) { - delete _impl_.search_clause_; - } - _impl_.search_clause_ = nullptr; -} -inline const ::pg_query::CTESearchClause& CommonTableExpr::_internal_search_clause() const { - const ::pg_query::CTESearchClause* p = _impl_.search_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_CTESearchClause_default_instance_); -} -inline const ::pg_query::CTESearchClause& CommonTableExpr::search_clause() const { - // @@protoc_insertion_point(field_get:pg_query.CommonTableExpr.search_clause) - return _internal_search_clause(); -} -inline void CommonTableExpr::unsafe_arena_set_allocated_search_clause( - ::pg_query::CTESearchClause* search_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.search_clause_); - } - _impl_.search_clause_ = search_clause; - if (search_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CommonTableExpr.search_clause) -} -inline ::pg_query::CTESearchClause* CommonTableExpr::release_search_clause() { - - ::pg_query::CTESearchClause* temp = _impl_.search_clause_; - _impl_.search_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::CTESearchClause* CommonTableExpr::unsafe_arena_release_search_clause() { - // @@protoc_insertion_point(field_release:pg_query.CommonTableExpr.search_clause) - - ::pg_query::CTESearchClause* temp = _impl_.search_clause_; - _impl_.search_clause_ = nullptr; - return temp; -} -inline ::pg_query::CTESearchClause* CommonTableExpr::_internal_mutable_search_clause() { - - if (_impl_.search_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::CTESearchClause>(GetArenaForAllocation()); - _impl_.search_clause_ = p; - } - return _impl_.search_clause_; -} -inline ::pg_query::CTESearchClause* CommonTableExpr::mutable_search_clause() { - ::pg_query::CTESearchClause* _msg = _internal_mutable_search_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.CommonTableExpr.search_clause) - return _msg; -} -inline void CommonTableExpr::set_allocated_search_clause(::pg_query::CTESearchClause* search_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.search_clause_; - } - if (search_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(search_clause); - if (message_arena != submessage_arena) { - search_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, search_clause, submessage_arena); - } - - } else { - - } - _impl_.search_clause_ = search_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.CommonTableExpr.search_clause) -} - -// .pg_query.CTECycleClause cycle_clause = 6 [json_name = "cycle_clause"]; -inline bool CommonTableExpr::_internal_has_cycle_clause() const { - return this != internal_default_instance() && _impl_.cycle_clause_ != nullptr; -} -inline bool CommonTableExpr::has_cycle_clause() const { - return _internal_has_cycle_clause(); -} -inline void CommonTableExpr::clear_cycle_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.cycle_clause_ != nullptr) { - delete _impl_.cycle_clause_; - } - _impl_.cycle_clause_ = nullptr; -} -inline const ::pg_query::CTECycleClause& CommonTableExpr::_internal_cycle_clause() const { - const ::pg_query::CTECycleClause* p = _impl_.cycle_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_CTECycleClause_default_instance_); -} -inline const ::pg_query::CTECycleClause& CommonTableExpr::cycle_clause() const { - // @@protoc_insertion_point(field_get:pg_query.CommonTableExpr.cycle_clause) - return _internal_cycle_clause(); -} -inline void CommonTableExpr::unsafe_arena_set_allocated_cycle_clause( - ::pg_query::CTECycleClause* cycle_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.cycle_clause_); - } - _impl_.cycle_clause_ = cycle_clause; - if (cycle_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.CommonTableExpr.cycle_clause) -} -inline ::pg_query::CTECycleClause* CommonTableExpr::release_cycle_clause() { - - ::pg_query::CTECycleClause* temp = _impl_.cycle_clause_; - _impl_.cycle_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::CTECycleClause* CommonTableExpr::unsafe_arena_release_cycle_clause() { - // @@protoc_insertion_point(field_release:pg_query.CommonTableExpr.cycle_clause) - - ::pg_query::CTECycleClause* temp = _impl_.cycle_clause_; - _impl_.cycle_clause_ = nullptr; - return temp; -} -inline ::pg_query::CTECycleClause* CommonTableExpr::_internal_mutable_cycle_clause() { - - if (_impl_.cycle_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::CTECycleClause>(GetArenaForAllocation()); - _impl_.cycle_clause_ = p; - } - return _impl_.cycle_clause_; -} -inline ::pg_query::CTECycleClause* CommonTableExpr::mutable_cycle_clause() { - ::pg_query::CTECycleClause* _msg = _internal_mutable_cycle_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.CommonTableExpr.cycle_clause) - return _msg; -} -inline void CommonTableExpr::set_allocated_cycle_clause(::pg_query::CTECycleClause* cycle_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.cycle_clause_; - } - if (cycle_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(cycle_clause); - if (message_arena != submessage_arena) { - cycle_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, cycle_clause, submessage_arena); - } - - } else { - - } - _impl_.cycle_clause_ = cycle_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.CommonTableExpr.cycle_clause) -} - -// int32 location = 7 [json_name = "location"]; -inline void CommonTableExpr::clear_location() { - _impl_.location_ = 0; -} -inline int32_t CommonTableExpr::_internal_location() const { - return _impl_.location_; -} -inline int32_t CommonTableExpr::location() const { - // @@protoc_insertion_point(field_get:pg_query.CommonTableExpr.location) - return _internal_location(); -} -inline void CommonTableExpr::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void CommonTableExpr::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.CommonTableExpr.location) -} - -// bool cterecursive = 8 [json_name = "cterecursive"]; -inline void CommonTableExpr::clear_cterecursive() { - _impl_.cterecursive_ = false; -} -inline bool CommonTableExpr::_internal_cterecursive() const { - return _impl_.cterecursive_; -} -inline bool CommonTableExpr::cterecursive() const { - // @@protoc_insertion_point(field_get:pg_query.CommonTableExpr.cterecursive) - return _internal_cterecursive(); -} -inline void CommonTableExpr::_internal_set_cterecursive(bool value) { - - _impl_.cterecursive_ = value; -} -inline void CommonTableExpr::set_cterecursive(bool value) { - _internal_set_cterecursive(value); - // @@protoc_insertion_point(field_set:pg_query.CommonTableExpr.cterecursive) -} - -// int32 cterefcount = 9 [json_name = "cterefcount"]; -inline void CommonTableExpr::clear_cterefcount() { - _impl_.cterefcount_ = 0; -} -inline int32_t CommonTableExpr::_internal_cterefcount() const { - return _impl_.cterefcount_; -} -inline int32_t CommonTableExpr::cterefcount() const { - // @@protoc_insertion_point(field_get:pg_query.CommonTableExpr.cterefcount) - return _internal_cterefcount(); -} -inline void CommonTableExpr::_internal_set_cterefcount(int32_t value) { - - _impl_.cterefcount_ = value; -} -inline void CommonTableExpr::set_cterefcount(int32_t value) { - _internal_set_cterefcount(value); - // @@protoc_insertion_point(field_set:pg_query.CommonTableExpr.cterefcount) -} - -// repeated .pg_query.Node ctecolnames = 10 [json_name = "ctecolnames"]; -inline int CommonTableExpr::_internal_ctecolnames_size() const { - return _impl_.ctecolnames_.size(); -} -inline int CommonTableExpr::ctecolnames_size() const { - return _internal_ctecolnames_size(); -} -inline void CommonTableExpr::clear_ctecolnames() { - _impl_.ctecolnames_.Clear(); -} -inline ::pg_query::Node* CommonTableExpr::mutable_ctecolnames(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CommonTableExpr.ctecolnames) - return _impl_.ctecolnames_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CommonTableExpr::mutable_ctecolnames() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CommonTableExpr.ctecolnames) - return &_impl_.ctecolnames_; -} -inline const ::pg_query::Node& CommonTableExpr::_internal_ctecolnames(int index) const { - return _impl_.ctecolnames_.Get(index); -} -inline const ::pg_query::Node& CommonTableExpr::ctecolnames(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CommonTableExpr.ctecolnames) - return _internal_ctecolnames(index); -} -inline ::pg_query::Node* CommonTableExpr::_internal_add_ctecolnames() { - return _impl_.ctecolnames_.Add(); -} -inline ::pg_query::Node* CommonTableExpr::add_ctecolnames() { - ::pg_query::Node* _add = _internal_add_ctecolnames(); - // @@protoc_insertion_point(field_add:pg_query.CommonTableExpr.ctecolnames) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CommonTableExpr::ctecolnames() const { - // @@protoc_insertion_point(field_list:pg_query.CommonTableExpr.ctecolnames) - return _impl_.ctecolnames_; -} - -// repeated .pg_query.Node ctecoltypes = 11 [json_name = "ctecoltypes"]; -inline int CommonTableExpr::_internal_ctecoltypes_size() const { - return _impl_.ctecoltypes_.size(); -} -inline int CommonTableExpr::ctecoltypes_size() const { - return _internal_ctecoltypes_size(); -} -inline void CommonTableExpr::clear_ctecoltypes() { - _impl_.ctecoltypes_.Clear(); -} -inline ::pg_query::Node* CommonTableExpr::mutable_ctecoltypes(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CommonTableExpr.ctecoltypes) - return _impl_.ctecoltypes_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CommonTableExpr::mutable_ctecoltypes() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CommonTableExpr.ctecoltypes) - return &_impl_.ctecoltypes_; -} -inline const ::pg_query::Node& CommonTableExpr::_internal_ctecoltypes(int index) const { - return _impl_.ctecoltypes_.Get(index); -} -inline const ::pg_query::Node& CommonTableExpr::ctecoltypes(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CommonTableExpr.ctecoltypes) - return _internal_ctecoltypes(index); -} -inline ::pg_query::Node* CommonTableExpr::_internal_add_ctecoltypes() { - return _impl_.ctecoltypes_.Add(); -} -inline ::pg_query::Node* CommonTableExpr::add_ctecoltypes() { - ::pg_query::Node* _add = _internal_add_ctecoltypes(); - // @@protoc_insertion_point(field_add:pg_query.CommonTableExpr.ctecoltypes) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CommonTableExpr::ctecoltypes() const { - // @@protoc_insertion_point(field_list:pg_query.CommonTableExpr.ctecoltypes) - return _impl_.ctecoltypes_; -} - -// repeated .pg_query.Node ctecoltypmods = 12 [json_name = "ctecoltypmods"]; -inline int CommonTableExpr::_internal_ctecoltypmods_size() const { - return _impl_.ctecoltypmods_.size(); -} -inline int CommonTableExpr::ctecoltypmods_size() const { - return _internal_ctecoltypmods_size(); -} -inline void CommonTableExpr::clear_ctecoltypmods() { - _impl_.ctecoltypmods_.Clear(); -} -inline ::pg_query::Node* CommonTableExpr::mutable_ctecoltypmods(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CommonTableExpr.ctecoltypmods) - return _impl_.ctecoltypmods_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CommonTableExpr::mutable_ctecoltypmods() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CommonTableExpr.ctecoltypmods) - return &_impl_.ctecoltypmods_; -} -inline const ::pg_query::Node& CommonTableExpr::_internal_ctecoltypmods(int index) const { - return _impl_.ctecoltypmods_.Get(index); -} -inline const ::pg_query::Node& CommonTableExpr::ctecoltypmods(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CommonTableExpr.ctecoltypmods) - return _internal_ctecoltypmods(index); -} -inline ::pg_query::Node* CommonTableExpr::_internal_add_ctecoltypmods() { - return _impl_.ctecoltypmods_.Add(); -} -inline ::pg_query::Node* CommonTableExpr::add_ctecoltypmods() { - ::pg_query::Node* _add = _internal_add_ctecoltypmods(); - // @@protoc_insertion_point(field_add:pg_query.CommonTableExpr.ctecoltypmods) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CommonTableExpr::ctecoltypmods() const { - // @@protoc_insertion_point(field_list:pg_query.CommonTableExpr.ctecoltypmods) - return _impl_.ctecoltypmods_; -} - -// repeated .pg_query.Node ctecolcollations = 13 [json_name = "ctecolcollations"]; -inline int CommonTableExpr::_internal_ctecolcollations_size() const { - return _impl_.ctecolcollations_.size(); -} -inline int CommonTableExpr::ctecolcollations_size() const { - return _internal_ctecolcollations_size(); -} -inline void CommonTableExpr::clear_ctecolcollations() { - _impl_.ctecolcollations_.Clear(); -} -inline ::pg_query::Node* CommonTableExpr::mutable_ctecolcollations(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.CommonTableExpr.ctecolcollations) - return _impl_.ctecolcollations_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -CommonTableExpr::mutable_ctecolcollations() { - // @@protoc_insertion_point(field_mutable_list:pg_query.CommonTableExpr.ctecolcollations) - return &_impl_.ctecolcollations_; -} -inline const ::pg_query::Node& CommonTableExpr::_internal_ctecolcollations(int index) const { - return _impl_.ctecolcollations_.Get(index); -} -inline const ::pg_query::Node& CommonTableExpr::ctecolcollations(int index) const { - // @@protoc_insertion_point(field_get:pg_query.CommonTableExpr.ctecolcollations) - return _internal_ctecolcollations(index); -} -inline ::pg_query::Node* CommonTableExpr::_internal_add_ctecolcollations() { - return _impl_.ctecolcollations_.Add(); -} -inline ::pg_query::Node* CommonTableExpr::add_ctecolcollations() { - ::pg_query::Node* _add = _internal_add_ctecolcollations(); - // @@protoc_insertion_point(field_add:pg_query.CommonTableExpr.ctecolcollations) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -CommonTableExpr::ctecolcollations() const { - // @@protoc_insertion_point(field_list:pg_query.CommonTableExpr.ctecolcollations) - return _impl_.ctecolcollations_; -} - -// ------------------------------------------------------------------- - -// MergeWhenClause - -// bool matched = 1 [json_name = "matched"]; -inline void MergeWhenClause::clear_matched() { - _impl_.matched_ = false; -} -inline bool MergeWhenClause::_internal_matched() const { - return _impl_.matched_; -} -inline bool MergeWhenClause::matched() const { - // @@protoc_insertion_point(field_get:pg_query.MergeWhenClause.matched) - return _internal_matched(); -} -inline void MergeWhenClause::_internal_set_matched(bool value) { - - _impl_.matched_ = value; -} -inline void MergeWhenClause::set_matched(bool value) { - _internal_set_matched(value); - // @@protoc_insertion_point(field_set:pg_query.MergeWhenClause.matched) -} - -// .pg_query.CmdType command_type = 2 [json_name = "commandType"]; -inline void MergeWhenClause::clear_command_type() { - _impl_.command_type_ = 0; -} -inline ::pg_query::CmdType MergeWhenClause::_internal_command_type() const { - return static_cast< ::pg_query::CmdType >(_impl_.command_type_); -} -inline ::pg_query::CmdType MergeWhenClause::command_type() const { - // @@protoc_insertion_point(field_get:pg_query.MergeWhenClause.command_type) - return _internal_command_type(); -} -inline void MergeWhenClause::_internal_set_command_type(::pg_query::CmdType value) { - - _impl_.command_type_ = value; -} -inline void MergeWhenClause::set_command_type(::pg_query::CmdType value) { - _internal_set_command_type(value); - // @@protoc_insertion_point(field_set:pg_query.MergeWhenClause.command_type) -} - -// .pg_query.OverridingKind override = 3 [json_name = "override"]; -inline void MergeWhenClause::clear_override() { - _impl_.override_ = 0; -} -inline ::pg_query::OverridingKind MergeWhenClause::_internal_override() const { - return static_cast< ::pg_query::OverridingKind >(_impl_.override_); -} -inline ::pg_query::OverridingKind MergeWhenClause::override() const { - // @@protoc_insertion_point(field_get:pg_query.MergeWhenClause.override) - return _internal_override(); -} -inline void MergeWhenClause::_internal_set_override(::pg_query::OverridingKind value) { - - _impl_.override_ = value; -} -inline void MergeWhenClause::set_override(::pg_query::OverridingKind value) { - _internal_set_override(value); - // @@protoc_insertion_point(field_set:pg_query.MergeWhenClause.override) -} - -// .pg_query.Node condition = 4 [json_name = "condition"]; -inline bool MergeWhenClause::_internal_has_condition() const { - return this != internal_default_instance() && _impl_.condition_ != nullptr; -} -inline bool MergeWhenClause::has_condition() const { - return _internal_has_condition(); -} -inline void MergeWhenClause::clear_condition() { - if (GetArenaForAllocation() == nullptr && _impl_.condition_ != nullptr) { - delete _impl_.condition_; - } - _impl_.condition_ = nullptr; -} -inline const ::pg_query::Node& MergeWhenClause::_internal_condition() const { - const ::pg_query::Node* p = _impl_.condition_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& MergeWhenClause::condition() const { - // @@protoc_insertion_point(field_get:pg_query.MergeWhenClause.condition) - return _internal_condition(); -} -inline void MergeWhenClause::unsafe_arena_set_allocated_condition( - ::pg_query::Node* condition) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.condition_); - } - _impl_.condition_ = condition; - if (condition) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.MergeWhenClause.condition) -} -inline ::pg_query::Node* MergeWhenClause::release_condition() { - - ::pg_query::Node* temp = _impl_.condition_; - _impl_.condition_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* MergeWhenClause::unsafe_arena_release_condition() { - // @@protoc_insertion_point(field_release:pg_query.MergeWhenClause.condition) - - ::pg_query::Node* temp = _impl_.condition_; - _impl_.condition_ = nullptr; - return temp; -} -inline ::pg_query::Node* MergeWhenClause::_internal_mutable_condition() { - - if (_impl_.condition_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.condition_ = p; - } - return _impl_.condition_; -} -inline ::pg_query::Node* MergeWhenClause::mutable_condition() { - ::pg_query::Node* _msg = _internal_mutable_condition(); - // @@protoc_insertion_point(field_mutable:pg_query.MergeWhenClause.condition) - return _msg; -} -inline void MergeWhenClause::set_allocated_condition(::pg_query::Node* condition) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.condition_; - } - if (condition) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(condition); - if (message_arena != submessage_arena) { - condition = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, condition, submessage_arena); - } - - } else { - - } - _impl_.condition_ = condition; - // @@protoc_insertion_point(field_set_allocated:pg_query.MergeWhenClause.condition) -} - -// repeated .pg_query.Node target_list = 5 [json_name = "targetList"]; -inline int MergeWhenClause::_internal_target_list_size() const { - return _impl_.target_list_.size(); -} -inline int MergeWhenClause::target_list_size() const { - return _internal_target_list_size(); -} -inline void MergeWhenClause::clear_target_list() { - _impl_.target_list_.Clear(); -} -inline ::pg_query::Node* MergeWhenClause::mutable_target_list(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.MergeWhenClause.target_list) - return _impl_.target_list_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -MergeWhenClause::mutable_target_list() { - // @@protoc_insertion_point(field_mutable_list:pg_query.MergeWhenClause.target_list) - return &_impl_.target_list_; -} -inline const ::pg_query::Node& MergeWhenClause::_internal_target_list(int index) const { - return _impl_.target_list_.Get(index); -} -inline const ::pg_query::Node& MergeWhenClause::target_list(int index) const { - // @@protoc_insertion_point(field_get:pg_query.MergeWhenClause.target_list) - return _internal_target_list(index); -} -inline ::pg_query::Node* MergeWhenClause::_internal_add_target_list() { - return _impl_.target_list_.Add(); -} -inline ::pg_query::Node* MergeWhenClause::add_target_list() { - ::pg_query::Node* _add = _internal_add_target_list(); - // @@protoc_insertion_point(field_add:pg_query.MergeWhenClause.target_list) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -MergeWhenClause::target_list() const { - // @@protoc_insertion_point(field_list:pg_query.MergeWhenClause.target_list) - return _impl_.target_list_; -} - -// repeated .pg_query.Node values = 6 [json_name = "values"]; -inline int MergeWhenClause::_internal_values_size() const { - return _impl_.values_.size(); -} -inline int MergeWhenClause::values_size() const { - return _internal_values_size(); -} -inline void MergeWhenClause::clear_values() { - _impl_.values_.Clear(); -} -inline ::pg_query::Node* MergeWhenClause::mutable_values(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.MergeWhenClause.values) - return _impl_.values_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -MergeWhenClause::mutable_values() { - // @@protoc_insertion_point(field_mutable_list:pg_query.MergeWhenClause.values) - return &_impl_.values_; -} -inline const ::pg_query::Node& MergeWhenClause::_internal_values(int index) const { - return _impl_.values_.Get(index); -} -inline const ::pg_query::Node& MergeWhenClause::values(int index) const { - // @@protoc_insertion_point(field_get:pg_query.MergeWhenClause.values) - return _internal_values(index); -} -inline ::pg_query::Node* MergeWhenClause::_internal_add_values() { - return _impl_.values_.Add(); -} -inline ::pg_query::Node* MergeWhenClause::add_values() { - ::pg_query::Node* _add = _internal_add_values(); - // @@protoc_insertion_point(field_add:pg_query.MergeWhenClause.values) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -MergeWhenClause::values() const { - // @@protoc_insertion_point(field_list:pg_query.MergeWhenClause.values) - return _impl_.values_; -} - -// ------------------------------------------------------------------- - -// RoleSpec - -// .pg_query.RoleSpecType roletype = 1 [json_name = "roletype"]; -inline void RoleSpec::clear_roletype() { - _impl_.roletype_ = 0; -} -inline ::pg_query::RoleSpecType RoleSpec::_internal_roletype() const { - return static_cast< ::pg_query::RoleSpecType >(_impl_.roletype_); -} -inline ::pg_query::RoleSpecType RoleSpec::roletype() const { - // @@protoc_insertion_point(field_get:pg_query.RoleSpec.roletype) - return _internal_roletype(); -} -inline void RoleSpec::_internal_set_roletype(::pg_query::RoleSpecType value) { - - _impl_.roletype_ = value; -} -inline void RoleSpec::set_roletype(::pg_query::RoleSpecType value) { - _internal_set_roletype(value); - // @@protoc_insertion_point(field_set:pg_query.RoleSpec.roletype) -} - -// string rolename = 2 [json_name = "rolename"]; -inline void RoleSpec::clear_rolename() { - _impl_.rolename_.ClearToEmpty(); -} -inline const std::string& RoleSpec::rolename() const { - // @@protoc_insertion_point(field_get:pg_query.RoleSpec.rolename) - return _internal_rolename(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void RoleSpec::set_rolename(ArgT0&& arg0, ArgT... args) { - - _impl_.rolename_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.RoleSpec.rolename) -} -inline std::string* RoleSpec::mutable_rolename() { - std::string* _s = _internal_mutable_rolename(); - // @@protoc_insertion_point(field_mutable:pg_query.RoleSpec.rolename) - return _s; -} -inline const std::string& RoleSpec::_internal_rolename() const { - return _impl_.rolename_.Get(); -} -inline void RoleSpec::_internal_set_rolename(const std::string& value) { - - _impl_.rolename_.Set(value, GetArenaForAllocation()); -} -inline std::string* RoleSpec::_internal_mutable_rolename() { - - return _impl_.rolename_.Mutable(GetArenaForAllocation()); -} -inline std::string* RoleSpec::release_rolename() { - // @@protoc_insertion_point(field_release:pg_query.RoleSpec.rolename) - return _impl_.rolename_.Release(); -} -inline void RoleSpec::set_allocated_rolename(std::string* rolename) { - if (rolename != nullptr) { - - } else { - - } - _impl_.rolename_.SetAllocated(rolename, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.rolename_.IsDefault()) { - _impl_.rolename_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.RoleSpec.rolename) -} - -// int32 location = 3 [json_name = "location"]; -inline void RoleSpec::clear_location() { - _impl_.location_ = 0; -} -inline int32_t RoleSpec::_internal_location() const { - return _impl_.location_; -} -inline int32_t RoleSpec::location() const { - // @@protoc_insertion_point(field_get:pg_query.RoleSpec.location) - return _internal_location(); -} -inline void RoleSpec::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void RoleSpec::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.RoleSpec.location) -} - -// ------------------------------------------------------------------- - -// TriggerTransition - -// string name = 1 [json_name = "name"]; -inline void TriggerTransition::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& TriggerTransition::name() const { - // @@protoc_insertion_point(field_get:pg_query.TriggerTransition.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void TriggerTransition::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.TriggerTransition.name) -} -inline std::string* TriggerTransition::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.TriggerTransition.name) - return _s; -} -inline const std::string& TriggerTransition::_internal_name() const { - return _impl_.name_.Get(); -} -inline void TriggerTransition::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* TriggerTransition::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* TriggerTransition::release_name() { - // @@protoc_insertion_point(field_release:pg_query.TriggerTransition.name) - return _impl_.name_.Release(); -} -inline void TriggerTransition::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.TriggerTransition.name) -} - -// bool is_new = 2 [json_name = "isNew"]; -inline void TriggerTransition::clear_is_new() { - _impl_.is_new_ = false; -} -inline bool TriggerTransition::_internal_is_new() const { - return _impl_.is_new_; -} -inline bool TriggerTransition::is_new() const { - // @@protoc_insertion_point(field_get:pg_query.TriggerTransition.is_new) - return _internal_is_new(); -} -inline void TriggerTransition::_internal_set_is_new(bool value) { - - _impl_.is_new_ = value; -} -inline void TriggerTransition::set_is_new(bool value) { - _internal_set_is_new(value); - // @@protoc_insertion_point(field_set:pg_query.TriggerTransition.is_new) -} - -// bool is_table = 3 [json_name = "isTable"]; -inline void TriggerTransition::clear_is_table() { - _impl_.is_table_ = false; -} -inline bool TriggerTransition::_internal_is_table() const { - return _impl_.is_table_; -} -inline bool TriggerTransition::is_table() const { - // @@protoc_insertion_point(field_get:pg_query.TriggerTransition.is_table) - return _internal_is_table(); -} -inline void TriggerTransition::_internal_set_is_table(bool value) { - - _impl_.is_table_ = value; -} -inline void TriggerTransition::set_is_table(bool value) { - _internal_set_is_table(value); - // @@protoc_insertion_point(field_set:pg_query.TriggerTransition.is_table) -} - -// ------------------------------------------------------------------- - -// PartitionElem - -// string name = 1 [json_name = "name"]; -inline void PartitionElem::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& PartitionElem::name() const { - // @@protoc_insertion_point(field_get:pg_query.PartitionElem.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void PartitionElem::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.PartitionElem.name) -} -inline std::string* PartitionElem::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.PartitionElem.name) - return _s; -} -inline const std::string& PartitionElem::_internal_name() const { - return _impl_.name_.Get(); -} -inline void PartitionElem::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* PartitionElem::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* PartitionElem::release_name() { - // @@protoc_insertion_point(field_release:pg_query.PartitionElem.name) - return _impl_.name_.Release(); -} -inline void PartitionElem::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.PartitionElem.name) -} - -// .pg_query.Node expr = 2 [json_name = "expr"]; -inline bool PartitionElem::_internal_has_expr() const { - return this != internal_default_instance() && _impl_.expr_ != nullptr; -} -inline bool PartitionElem::has_expr() const { - return _internal_has_expr(); -} -inline void PartitionElem::clear_expr() { - if (GetArenaForAllocation() == nullptr && _impl_.expr_ != nullptr) { - delete _impl_.expr_; - } - _impl_.expr_ = nullptr; -} -inline const ::pg_query::Node& PartitionElem::_internal_expr() const { - const ::pg_query::Node* p = _impl_.expr_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& PartitionElem::expr() const { - // @@protoc_insertion_point(field_get:pg_query.PartitionElem.expr) - return _internal_expr(); -} -inline void PartitionElem::unsafe_arena_set_allocated_expr( - ::pg_query::Node* expr) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.expr_); - } - _impl_.expr_ = expr; - if (expr) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.PartitionElem.expr) -} -inline ::pg_query::Node* PartitionElem::release_expr() { - - ::pg_query::Node* temp = _impl_.expr_; - _impl_.expr_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* PartitionElem::unsafe_arena_release_expr() { - // @@protoc_insertion_point(field_release:pg_query.PartitionElem.expr) - - ::pg_query::Node* temp = _impl_.expr_; - _impl_.expr_ = nullptr; - return temp; -} -inline ::pg_query::Node* PartitionElem::_internal_mutable_expr() { - - if (_impl_.expr_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.expr_ = p; - } - return _impl_.expr_; -} -inline ::pg_query::Node* PartitionElem::mutable_expr() { - ::pg_query::Node* _msg = _internal_mutable_expr(); - // @@protoc_insertion_point(field_mutable:pg_query.PartitionElem.expr) - return _msg; -} -inline void PartitionElem::set_allocated_expr(::pg_query::Node* expr) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.expr_; - } - if (expr) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(expr); - if (message_arena != submessage_arena) { - expr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, expr, submessage_arena); - } - - } else { - - } - _impl_.expr_ = expr; - // @@protoc_insertion_point(field_set_allocated:pg_query.PartitionElem.expr) -} - -// repeated .pg_query.Node collation = 3 [json_name = "collation"]; -inline int PartitionElem::_internal_collation_size() const { - return _impl_.collation_.size(); -} -inline int PartitionElem::collation_size() const { - return _internal_collation_size(); -} -inline void PartitionElem::clear_collation() { - _impl_.collation_.Clear(); -} -inline ::pg_query::Node* PartitionElem::mutable_collation(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.PartitionElem.collation) - return _impl_.collation_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -PartitionElem::mutable_collation() { - // @@protoc_insertion_point(field_mutable_list:pg_query.PartitionElem.collation) - return &_impl_.collation_; -} -inline const ::pg_query::Node& PartitionElem::_internal_collation(int index) const { - return _impl_.collation_.Get(index); -} -inline const ::pg_query::Node& PartitionElem::collation(int index) const { - // @@protoc_insertion_point(field_get:pg_query.PartitionElem.collation) - return _internal_collation(index); -} -inline ::pg_query::Node* PartitionElem::_internal_add_collation() { - return _impl_.collation_.Add(); -} -inline ::pg_query::Node* PartitionElem::add_collation() { - ::pg_query::Node* _add = _internal_add_collation(); - // @@protoc_insertion_point(field_add:pg_query.PartitionElem.collation) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -PartitionElem::collation() const { - // @@protoc_insertion_point(field_list:pg_query.PartitionElem.collation) - return _impl_.collation_; -} - -// repeated .pg_query.Node opclass = 4 [json_name = "opclass"]; -inline int PartitionElem::_internal_opclass_size() const { - return _impl_.opclass_.size(); -} -inline int PartitionElem::opclass_size() const { - return _internal_opclass_size(); -} -inline void PartitionElem::clear_opclass() { - _impl_.opclass_.Clear(); -} -inline ::pg_query::Node* PartitionElem::mutable_opclass(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.PartitionElem.opclass) - return _impl_.opclass_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -PartitionElem::mutable_opclass() { - // @@protoc_insertion_point(field_mutable_list:pg_query.PartitionElem.opclass) - return &_impl_.opclass_; -} -inline const ::pg_query::Node& PartitionElem::_internal_opclass(int index) const { - return _impl_.opclass_.Get(index); -} -inline const ::pg_query::Node& PartitionElem::opclass(int index) const { - // @@protoc_insertion_point(field_get:pg_query.PartitionElem.opclass) - return _internal_opclass(index); -} -inline ::pg_query::Node* PartitionElem::_internal_add_opclass() { - return _impl_.opclass_.Add(); -} -inline ::pg_query::Node* PartitionElem::add_opclass() { - ::pg_query::Node* _add = _internal_add_opclass(); - // @@protoc_insertion_point(field_add:pg_query.PartitionElem.opclass) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -PartitionElem::opclass() const { - // @@protoc_insertion_point(field_list:pg_query.PartitionElem.opclass) - return _impl_.opclass_; -} - -// int32 location = 5 [json_name = "location"]; -inline void PartitionElem::clear_location() { - _impl_.location_ = 0; -} -inline int32_t PartitionElem::_internal_location() const { - return _impl_.location_; -} -inline int32_t PartitionElem::location() const { - // @@protoc_insertion_point(field_get:pg_query.PartitionElem.location) - return _internal_location(); -} -inline void PartitionElem::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void PartitionElem::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.PartitionElem.location) -} - -// ------------------------------------------------------------------- - -// PartitionSpec - -// string strategy = 1 [json_name = "strategy"]; -inline void PartitionSpec::clear_strategy() { - _impl_.strategy_.ClearToEmpty(); -} -inline const std::string& PartitionSpec::strategy() const { - // @@protoc_insertion_point(field_get:pg_query.PartitionSpec.strategy) - return _internal_strategy(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void PartitionSpec::set_strategy(ArgT0&& arg0, ArgT... args) { - - _impl_.strategy_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.PartitionSpec.strategy) -} -inline std::string* PartitionSpec::mutable_strategy() { - std::string* _s = _internal_mutable_strategy(); - // @@protoc_insertion_point(field_mutable:pg_query.PartitionSpec.strategy) - return _s; -} -inline const std::string& PartitionSpec::_internal_strategy() const { - return _impl_.strategy_.Get(); -} -inline void PartitionSpec::_internal_set_strategy(const std::string& value) { - - _impl_.strategy_.Set(value, GetArenaForAllocation()); -} -inline std::string* PartitionSpec::_internal_mutable_strategy() { - - return _impl_.strategy_.Mutable(GetArenaForAllocation()); -} -inline std::string* PartitionSpec::release_strategy() { - // @@protoc_insertion_point(field_release:pg_query.PartitionSpec.strategy) - return _impl_.strategy_.Release(); -} -inline void PartitionSpec::set_allocated_strategy(std::string* strategy) { - if (strategy != nullptr) { - - } else { - - } - _impl_.strategy_.SetAllocated(strategy, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.strategy_.IsDefault()) { - _impl_.strategy_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.PartitionSpec.strategy) -} - -// repeated .pg_query.Node part_params = 2 [json_name = "partParams"]; -inline int PartitionSpec::_internal_part_params_size() const { - return _impl_.part_params_.size(); -} -inline int PartitionSpec::part_params_size() const { - return _internal_part_params_size(); -} -inline void PartitionSpec::clear_part_params() { - _impl_.part_params_.Clear(); -} -inline ::pg_query::Node* PartitionSpec::mutable_part_params(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.PartitionSpec.part_params) - return _impl_.part_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -PartitionSpec::mutable_part_params() { - // @@protoc_insertion_point(field_mutable_list:pg_query.PartitionSpec.part_params) - return &_impl_.part_params_; -} -inline const ::pg_query::Node& PartitionSpec::_internal_part_params(int index) const { - return _impl_.part_params_.Get(index); -} -inline const ::pg_query::Node& PartitionSpec::part_params(int index) const { - // @@protoc_insertion_point(field_get:pg_query.PartitionSpec.part_params) - return _internal_part_params(index); -} -inline ::pg_query::Node* PartitionSpec::_internal_add_part_params() { - return _impl_.part_params_.Add(); -} -inline ::pg_query::Node* PartitionSpec::add_part_params() { - ::pg_query::Node* _add = _internal_add_part_params(); - // @@protoc_insertion_point(field_add:pg_query.PartitionSpec.part_params) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -PartitionSpec::part_params() const { - // @@protoc_insertion_point(field_list:pg_query.PartitionSpec.part_params) - return _impl_.part_params_; -} - -// int32 location = 3 [json_name = "location"]; -inline void PartitionSpec::clear_location() { - _impl_.location_ = 0; -} -inline int32_t PartitionSpec::_internal_location() const { - return _impl_.location_; -} -inline int32_t PartitionSpec::location() const { - // @@protoc_insertion_point(field_get:pg_query.PartitionSpec.location) - return _internal_location(); -} -inline void PartitionSpec::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void PartitionSpec::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.PartitionSpec.location) -} - -// ------------------------------------------------------------------- - -// PartitionBoundSpec - -// string strategy = 1 [json_name = "strategy"]; -inline void PartitionBoundSpec::clear_strategy() { - _impl_.strategy_.ClearToEmpty(); -} -inline const std::string& PartitionBoundSpec::strategy() const { - // @@protoc_insertion_point(field_get:pg_query.PartitionBoundSpec.strategy) - return _internal_strategy(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void PartitionBoundSpec::set_strategy(ArgT0&& arg0, ArgT... args) { - - _impl_.strategy_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.PartitionBoundSpec.strategy) -} -inline std::string* PartitionBoundSpec::mutable_strategy() { - std::string* _s = _internal_mutable_strategy(); - // @@protoc_insertion_point(field_mutable:pg_query.PartitionBoundSpec.strategy) - return _s; -} -inline const std::string& PartitionBoundSpec::_internal_strategy() const { - return _impl_.strategy_.Get(); -} -inline void PartitionBoundSpec::_internal_set_strategy(const std::string& value) { - - _impl_.strategy_.Set(value, GetArenaForAllocation()); -} -inline std::string* PartitionBoundSpec::_internal_mutable_strategy() { - - return _impl_.strategy_.Mutable(GetArenaForAllocation()); -} -inline std::string* PartitionBoundSpec::release_strategy() { - // @@protoc_insertion_point(field_release:pg_query.PartitionBoundSpec.strategy) - return _impl_.strategy_.Release(); -} -inline void PartitionBoundSpec::set_allocated_strategy(std::string* strategy) { - if (strategy != nullptr) { - - } else { - - } - _impl_.strategy_.SetAllocated(strategy, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.strategy_.IsDefault()) { - _impl_.strategy_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.PartitionBoundSpec.strategy) -} - -// bool is_default = 2 [json_name = "is_default"]; -inline void PartitionBoundSpec::clear_is_default() { - _impl_.is_default_ = false; -} -inline bool PartitionBoundSpec::_internal_is_default() const { - return _impl_.is_default_; -} -inline bool PartitionBoundSpec::is_default() const { - // @@protoc_insertion_point(field_get:pg_query.PartitionBoundSpec.is_default) - return _internal_is_default(); -} -inline void PartitionBoundSpec::_internal_set_is_default(bool value) { - - _impl_.is_default_ = value; -} -inline void PartitionBoundSpec::set_is_default(bool value) { - _internal_set_is_default(value); - // @@protoc_insertion_point(field_set:pg_query.PartitionBoundSpec.is_default) -} - -// int32 modulus = 3 [json_name = "modulus"]; -inline void PartitionBoundSpec::clear_modulus() { - _impl_.modulus_ = 0; -} -inline int32_t PartitionBoundSpec::_internal_modulus() const { - return _impl_.modulus_; -} -inline int32_t PartitionBoundSpec::modulus() const { - // @@protoc_insertion_point(field_get:pg_query.PartitionBoundSpec.modulus) - return _internal_modulus(); -} -inline void PartitionBoundSpec::_internal_set_modulus(int32_t value) { - - _impl_.modulus_ = value; -} -inline void PartitionBoundSpec::set_modulus(int32_t value) { - _internal_set_modulus(value); - // @@protoc_insertion_point(field_set:pg_query.PartitionBoundSpec.modulus) -} - -// int32 remainder = 4 [json_name = "remainder"]; -inline void PartitionBoundSpec::clear_remainder() { - _impl_.remainder_ = 0; -} -inline int32_t PartitionBoundSpec::_internal_remainder() const { - return _impl_.remainder_; -} -inline int32_t PartitionBoundSpec::remainder() const { - // @@protoc_insertion_point(field_get:pg_query.PartitionBoundSpec.remainder) - return _internal_remainder(); -} -inline void PartitionBoundSpec::_internal_set_remainder(int32_t value) { - - _impl_.remainder_ = value; -} -inline void PartitionBoundSpec::set_remainder(int32_t value) { - _internal_set_remainder(value); - // @@protoc_insertion_point(field_set:pg_query.PartitionBoundSpec.remainder) -} - -// repeated .pg_query.Node listdatums = 5 [json_name = "listdatums"]; -inline int PartitionBoundSpec::_internal_listdatums_size() const { - return _impl_.listdatums_.size(); -} -inline int PartitionBoundSpec::listdatums_size() const { - return _internal_listdatums_size(); -} -inline void PartitionBoundSpec::clear_listdatums() { - _impl_.listdatums_.Clear(); -} -inline ::pg_query::Node* PartitionBoundSpec::mutable_listdatums(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.PartitionBoundSpec.listdatums) - return _impl_.listdatums_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -PartitionBoundSpec::mutable_listdatums() { - // @@protoc_insertion_point(field_mutable_list:pg_query.PartitionBoundSpec.listdatums) - return &_impl_.listdatums_; -} -inline const ::pg_query::Node& PartitionBoundSpec::_internal_listdatums(int index) const { - return _impl_.listdatums_.Get(index); -} -inline const ::pg_query::Node& PartitionBoundSpec::listdatums(int index) const { - // @@protoc_insertion_point(field_get:pg_query.PartitionBoundSpec.listdatums) - return _internal_listdatums(index); -} -inline ::pg_query::Node* PartitionBoundSpec::_internal_add_listdatums() { - return _impl_.listdatums_.Add(); -} -inline ::pg_query::Node* PartitionBoundSpec::add_listdatums() { - ::pg_query::Node* _add = _internal_add_listdatums(); - // @@protoc_insertion_point(field_add:pg_query.PartitionBoundSpec.listdatums) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -PartitionBoundSpec::listdatums() const { - // @@protoc_insertion_point(field_list:pg_query.PartitionBoundSpec.listdatums) - return _impl_.listdatums_; -} - -// repeated .pg_query.Node lowerdatums = 6 [json_name = "lowerdatums"]; -inline int PartitionBoundSpec::_internal_lowerdatums_size() const { - return _impl_.lowerdatums_.size(); -} -inline int PartitionBoundSpec::lowerdatums_size() const { - return _internal_lowerdatums_size(); -} -inline void PartitionBoundSpec::clear_lowerdatums() { - _impl_.lowerdatums_.Clear(); -} -inline ::pg_query::Node* PartitionBoundSpec::mutable_lowerdatums(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.PartitionBoundSpec.lowerdatums) - return _impl_.lowerdatums_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -PartitionBoundSpec::mutable_lowerdatums() { - // @@protoc_insertion_point(field_mutable_list:pg_query.PartitionBoundSpec.lowerdatums) - return &_impl_.lowerdatums_; -} -inline const ::pg_query::Node& PartitionBoundSpec::_internal_lowerdatums(int index) const { - return _impl_.lowerdatums_.Get(index); -} -inline const ::pg_query::Node& PartitionBoundSpec::lowerdatums(int index) const { - // @@protoc_insertion_point(field_get:pg_query.PartitionBoundSpec.lowerdatums) - return _internal_lowerdatums(index); -} -inline ::pg_query::Node* PartitionBoundSpec::_internal_add_lowerdatums() { - return _impl_.lowerdatums_.Add(); -} -inline ::pg_query::Node* PartitionBoundSpec::add_lowerdatums() { - ::pg_query::Node* _add = _internal_add_lowerdatums(); - // @@protoc_insertion_point(field_add:pg_query.PartitionBoundSpec.lowerdatums) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -PartitionBoundSpec::lowerdatums() const { - // @@protoc_insertion_point(field_list:pg_query.PartitionBoundSpec.lowerdatums) - return _impl_.lowerdatums_; -} - -// repeated .pg_query.Node upperdatums = 7 [json_name = "upperdatums"]; -inline int PartitionBoundSpec::_internal_upperdatums_size() const { - return _impl_.upperdatums_.size(); -} -inline int PartitionBoundSpec::upperdatums_size() const { - return _internal_upperdatums_size(); -} -inline void PartitionBoundSpec::clear_upperdatums() { - _impl_.upperdatums_.Clear(); -} -inline ::pg_query::Node* PartitionBoundSpec::mutable_upperdatums(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.PartitionBoundSpec.upperdatums) - return _impl_.upperdatums_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -PartitionBoundSpec::mutable_upperdatums() { - // @@protoc_insertion_point(field_mutable_list:pg_query.PartitionBoundSpec.upperdatums) - return &_impl_.upperdatums_; -} -inline const ::pg_query::Node& PartitionBoundSpec::_internal_upperdatums(int index) const { - return _impl_.upperdatums_.Get(index); -} -inline const ::pg_query::Node& PartitionBoundSpec::upperdatums(int index) const { - // @@protoc_insertion_point(field_get:pg_query.PartitionBoundSpec.upperdatums) - return _internal_upperdatums(index); -} -inline ::pg_query::Node* PartitionBoundSpec::_internal_add_upperdatums() { - return _impl_.upperdatums_.Add(); -} -inline ::pg_query::Node* PartitionBoundSpec::add_upperdatums() { - ::pg_query::Node* _add = _internal_add_upperdatums(); - // @@protoc_insertion_point(field_add:pg_query.PartitionBoundSpec.upperdatums) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -PartitionBoundSpec::upperdatums() const { - // @@protoc_insertion_point(field_list:pg_query.PartitionBoundSpec.upperdatums) - return _impl_.upperdatums_; -} - -// int32 location = 8 [json_name = "location"]; -inline void PartitionBoundSpec::clear_location() { - _impl_.location_ = 0; -} -inline int32_t PartitionBoundSpec::_internal_location() const { - return _impl_.location_; -} -inline int32_t PartitionBoundSpec::location() const { - // @@protoc_insertion_point(field_get:pg_query.PartitionBoundSpec.location) - return _internal_location(); -} -inline void PartitionBoundSpec::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void PartitionBoundSpec::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.PartitionBoundSpec.location) -} - -// ------------------------------------------------------------------- - -// PartitionRangeDatum - -// .pg_query.PartitionRangeDatumKind kind = 1 [json_name = "kind"]; -inline void PartitionRangeDatum::clear_kind() { - _impl_.kind_ = 0; -} -inline ::pg_query::PartitionRangeDatumKind PartitionRangeDatum::_internal_kind() const { - return static_cast< ::pg_query::PartitionRangeDatumKind >(_impl_.kind_); -} -inline ::pg_query::PartitionRangeDatumKind PartitionRangeDatum::kind() const { - // @@protoc_insertion_point(field_get:pg_query.PartitionRangeDatum.kind) - return _internal_kind(); -} -inline void PartitionRangeDatum::_internal_set_kind(::pg_query::PartitionRangeDatumKind value) { - - _impl_.kind_ = value; -} -inline void PartitionRangeDatum::set_kind(::pg_query::PartitionRangeDatumKind value) { - _internal_set_kind(value); - // @@protoc_insertion_point(field_set:pg_query.PartitionRangeDatum.kind) -} - -// .pg_query.Node value = 2 [json_name = "value"]; -inline bool PartitionRangeDatum::_internal_has_value() const { - return this != internal_default_instance() && _impl_.value_ != nullptr; -} -inline bool PartitionRangeDatum::has_value() const { - return _internal_has_value(); -} -inline void PartitionRangeDatum::clear_value() { - if (GetArenaForAllocation() == nullptr && _impl_.value_ != nullptr) { - delete _impl_.value_; - } - _impl_.value_ = nullptr; -} -inline const ::pg_query::Node& PartitionRangeDatum::_internal_value() const { - const ::pg_query::Node* p = _impl_.value_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& PartitionRangeDatum::value() const { - // @@protoc_insertion_point(field_get:pg_query.PartitionRangeDatum.value) - return _internal_value(); -} -inline void PartitionRangeDatum::unsafe_arena_set_allocated_value( - ::pg_query::Node* value) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.value_); - } - _impl_.value_ = value; - if (value) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.PartitionRangeDatum.value) -} -inline ::pg_query::Node* PartitionRangeDatum::release_value() { - - ::pg_query::Node* temp = _impl_.value_; - _impl_.value_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* PartitionRangeDatum::unsafe_arena_release_value() { - // @@protoc_insertion_point(field_release:pg_query.PartitionRangeDatum.value) - - ::pg_query::Node* temp = _impl_.value_; - _impl_.value_ = nullptr; - return temp; -} -inline ::pg_query::Node* PartitionRangeDatum::_internal_mutable_value() { - - if (_impl_.value_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.value_ = p; - } - return _impl_.value_; -} -inline ::pg_query::Node* PartitionRangeDatum::mutable_value() { - ::pg_query::Node* _msg = _internal_mutable_value(); - // @@protoc_insertion_point(field_mutable:pg_query.PartitionRangeDatum.value) - return _msg; -} -inline void PartitionRangeDatum::set_allocated_value(::pg_query::Node* value) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.value_; - } - if (value) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(value); - if (message_arena != submessage_arena) { - value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, value, submessage_arena); - } - - } else { - - } - _impl_.value_ = value; - // @@protoc_insertion_point(field_set_allocated:pg_query.PartitionRangeDatum.value) -} - -// int32 location = 3 [json_name = "location"]; -inline void PartitionRangeDatum::clear_location() { - _impl_.location_ = 0; -} -inline int32_t PartitionRangeDatum::_internal_location() const { - return _impl_.location_; -} -inline int32_t PartitionRangeDatum::location() const { - // @@protoc_insertion_point(field_get:pg_query.PartitionRangeDatum.location) - return _internal_location(); -} -inline void PartitionRangeDatum::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void PartitionRangeDatum::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.PartitionRangeDatum.location) -} - -// ------------------------------------------------------------------- - -// PartitionCmd - -// .pg_query.RangeVar name = 1 [json_name = "name"]; -inline bool PartitionCmd::_internal_has_name() const { - return this != internal_default_instance() && _impl_.name_ != nullptr; -} -inline bool PartitionCmd::has_name() const { - return _internal_has_name(); -} -inline void PartitionCmd::clear_name() { - if (GetArenaForAllocation() == nullptr && _impl_.name_ != nullptr) { - delete _impl_.name_; - } - _impl_.name_ = nullptr; -} -inline const ::pg_query::RangeVar& PartitionCmd::_internal_name() const { - const ::pg_query::RangeVar* p = _impl_.name_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& PartitionCmd::name() const { - // @@protoc_insertion_point(field_get:pg_query.PartitionCmd.name) - return _internal_name(); -} -inline void PartitionCmd::unsafe_arena_set_allocated_name( - ::pg_query::RangeVar* name) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.name_); - } - _impl_.name_ = name; - if (name) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.PartitionCmd.name) -} -inline ::pg_query::RangeVar* PartitionCmd::release_name() { - - ::pg_query::RangeVar* temp = _impl_.name_; - _impl_.name_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* PartitionCmd::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_release:pg_query.PartitionCmd.name) - - ::pg_query::RangeVar* temp = _impl_.name_; - _impl_.name_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* PartitionCmd::_internal_mutable_name() { - - if (_impl_.name_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.name_ = p; - } - return _impl_.name_; -} -inline ::pg_query::RangeVar* PartitionCmd::mutable_name() { - ::pg_query::RangeVar* _msg = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.PartitionCmd.name) - return _msg; -} -inline void PartitionCmd::set_allocated_name(::pg_query::RangeVar* name) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.name_; - } - if (name) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(name); - if (message_arena != submessage_arena) { - name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, name, submessage_arena); - } - - } else { - - } - _impl_.name_ = name; - // @@protoc_insertion_point(field_set_allocated:pg_query.PartitionCmd.name) -} - -// .pg_query.PartitionBoundSpec bound = 2 [json_name = "bound"]; -inline bool PartitionCmd::_internal_has_bound() const { - return this != internal_default_instance() && _impl_.bound_ != nullptr; -} -inline bool PartitionCmd::has_bound() const { - return _internal_has_bound(); -} -inline void PartitionCmd::clear_bound() { - if (GetArenaForAllocation() == nullptr && _impl_.bound_ != nullptr) { - delete _impl_.bound_; - } - _impl_.bound_ = nullptr; -} -inline const ::pg_query::PartitionBoundSpec& PartitionCmd::_internal_bound() const { - const ::pg_query::PartitionBoundSpec* p = _impl_.bound_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_PartitionBoundSpec_default_instance_); -} -inline const ::pg_query::PartitionBoundSpec& PartitionCmd::bound() const { - // @@protoc_insertion_point(field_get:pg_query.PartitionCmd.bound) - return _internal_bound(); -} -inline void PartitionCmd::unsafe_arena_set_allocated_bound( - ::pg_query::PartitionBoundSpec* bound) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.bound_); - } - _impl_.bound_ = bound; - if (bound) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.PartitionCmd.bound) -} -inline ::pg_query::PartitionBoundSpec* PartitionCmd::release_bound() { - - ::pg_query::PartitionBoundSpec* temp = _impl_.bound_; - _impl_.bound_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::PartitionBoundSpec* PartitionCmd::unsafe_arena_release_bound() { - // @@protoc_insertion_point(field_release:pg_query.PartitionCmd.bound) - - ::pg_query::PartitionBoundSpec* temp = _impl_.bound_; - _impl_.bound_ = nullptr; - return temp; -} -inline ::pg_query::PartitionBoundSpec* PartitionCmd::_internal_mutable_bound() { - - if (_impl_.bound_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::PartitionBoundSpec>(GetArenaForAllocation()); - _impl_.bound_ = p; - } - return _impl_.bound_; -} -inline ::pg_query::PartitionBoundSpec* PartitionCmd::mutable_bound() { - ::pg_query::PartitionBoundSpec* _msg = _internal_mutable_bound(); - // @@protoc_insertion_point(field_mutable:pg_query.PartitionCmd.bound) - return _msg; -} -inline void PartitionCmd::set_allocated_bound(::pg_query::PartitionBoundSpec* bound) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.bound_; - } - if (bound) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(bound); - if (message_arena != submessage_arena) { - bound = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, bound, submessage_arena); - } - - } else { - - } - _impl_.bound_ = bound; - // @@protoc_insertion_point(field_set_allocated:pg_query.PartitionCmd.bound) -} - -// bool concurrent = 3 [json_name = "concurrent"]; -inline void PartitionCmd::clear_concurrent() { - _impl_.concurrent_ = false; -} -inline bool PartitionCmd::_internal_concurrent() const { - return _impl_.concurrent_; -} -inline bool PartitionCmd::concurrent() const { - // @@protoc_insertion_point(field_get:pg_query.PartitionCmd.concurrent) - return _internal_concurrent(); -} -inline void PartitionCmd::_internal_set_concurrent(bool value) { - - _impl_.concurrent_ = value; -} -inline void PartitionCmd::set_concurrent(bool value) { - _internal_set_concurrent(value); - // @@protoc_insertion_point(field_set:pg_query.PartitionCmd.concurrent) -} - -// ------------------------------------------------------------------- - -// VacuumRelation - -// .pg_query.RangeVar relation = 1 [json_name = "relation"]; -inline bool VacuumRelation::_internal_has_relation() const { - return this != internal_default_instance() && _impl_.relation_ != nullptr; -} -inline bool VacuumRelation::has_relation() const { - return _internal_has_relation(); -} -inline void VacuumRelation::clear_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.relation_ != nullptr) { - delete _impl_.relation_; - } - _impl_.relation_ = nullptr; -} -inline const ::pg_query::RangeVar& VacuumRelation::_internal_relation() const { - const ::pg_query::RangeVar* p = _impl_.relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& VacuumRelation::relation() const { - // @@protoc_insertion_point(field_get:pg_query.VacuumRelation.relation) - return _internal_relation(); -} -inline void VacuumRelation::unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.relation_); - } - _impl_.relation_ = relation; - if (relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.VacuumRelation.relation) -} -inline ::pg_query::RangeVar* VacuumRelation::release_relation() { - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* VacuumRelation::unsafe_arena_release_relation() { - // @@protoc_insertion_point(field_release:pg_query.VacuumRelation.relation) - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* VacuumRelation::_internal_mutable_relation() { - - if (_impl_.relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.relation_ = p; - } - return _impl_.relation_; -} -inline ::pg_query::RangeVar* VacuumRelation::mutable_relation() { - ::pg_query::RangeVar* _msg = _internal_mutable_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.VacuumRelation.relation) - return _msg; -} -inline void VacuumRelation::set_allocated_relation(::pg_query::RangeVar* relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.relation_; - } - if (relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(relation); - if (message_arena != submessage_arena) { - relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, relation, submessage_arena); - } - - } else { - - } - _impl_.relation_ = relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.VacuumRelation.relation) -} - -// uint32 oid = 2 [json_name = "oid"]; -inline void VacuumRelation::clear_oid() { - _impl_.oid_ = 0u; -} -inline uint32_t VacuumRelation::_internal_oid() const { - return _impl_.oid_; -} -inline uint32_t VacuumRelation::oid() const { - // @@protoc_insertion_point(field_get:pg_query.VacuumRelation.oid) - return _internal_oid(); -} -inline void VacuumRelation::_internal_set_oid(uint32_t value) { - - _impl_.oid_ = value; -} -inline void VacuumRelation::set_oid(uint32_t value) { - _internal_set_oid(value); - // @@protoc_insertion_point(field_set:pg_query.VacuumRelation.oid) -} - -// repeated .pg_query.Node va_cols = 3 [json_name = "va_cols"]; -inline int VacuumRelation::_internal_va_cols_size() const { - return _impl_.va_cols_.size(); -} -inline int VacuumRelation::va_cols_size() const { - return _internal_va_cols_size(); -} -inline void VacuumRelation::clear_va_cols() { - _impl_.va_cols_.Clear(); -} -inline ::pg_query::Node* VacuumRelation::mutable_va_cols(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.VacuumRelation.va_cols) - return _impl_.va_cols_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -VacuumRelation::mutable_va_cols() { - // @@protoc_insertion_point(field_mutable_list:pg_query.VacuumRelation.va_cols) - return &_impl_.va_cols_; -} -inline const ::pg_query::Node& VacuumRelation::_internal_va_cols(int index) const { - return _impl_.va_cols_.Get(index); -} -inline const ::pg_query::Node& VacuumRelation::va_cols(int index) const { - // @@protoc_insertion_point(field_get:pg_query.VacuumRelation.va_cols) - return _internal_va_cols(index); -} -inline ::pg_query::Node* VacuumRelation::_internal_add_va_cols() { - return _impl_.va_cols_.Add(); -} -inline ::pg_query::Node* VacuumRelation::add_va_cols() { - ::pg_query::Node* _add = _internal_add_va_cols(); - // @@protoc_insertion_point(field_add:pg_query.VacuumRelation.va_cols) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -VacuumRelation::va_cols() const { - // @@protoc_insertion_point(field_list:pg_query.VacuumRelation.va_cols) - return _impl_.va_cols_; -} - -// ------------------------------------------------------------------- - -// PublicationObjSpec - -// .pg_query.PublicationObjSpecType pubobjtype = 1 [json_name = "pubobjtype"]; -inline void PublicationObjSpec::clear_pubobjtype() { - _impl_.pubobjtype_ = 0; -} -inline ::pg_query::PublicationObjSpecType PublicationObjSpec::_internal_pubobjtype() const { - return static_cast< ::pg_query::PublicationObjSpecType >(_impl_.pubobjtype_); -} -inline ::pg_query::PublicationObjSpecType PublicationObjSpec::pubobjtype() const { - // @@protoc_insertion_point(field_get:pg_query.PublicationObjSpec.pubobjtype) - return _internal_pubobjtype(); -} -inline void PublicationObjSpec::_internal_set_pubobjtype(::pg_query::PublicationObjSpecType value) { - - _impl_.pubobjtype_ = value; -} -inline void PublicationObjSpec::set_pubobjtype(::pg_query::PublicationObjSpecType value) { - _internal_set_pubobjtype(value); - // @@protoc_insertion_point(field_set:pg_query.PublicationObjSpec.pubobjtype) -} - -// string name = 2 [json_name = "name"]; -inline void PublicationObjSpec::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& PublicationObjSpec::name() const { - // @@protoc_insertion_point(field_get:pg_query.PublicationObjSpec.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void PublicationObjSpec::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.PublicationObjSpec.name) -} -inline std::string* PublicationObjSpec::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:pg_query.PublicationObjSpec.name) - return _s; -} -inline const std::string& PublicationObjSpec::_internal_name() const { - return _impl_.name_.Get(); -} -inline void PublicationObjSpec::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* PublicationObjSpec::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* PublicationObjSpec::release_name() { - // @@protoc_insertion_point(field_release:pg_query.PublicationObjSpec.name) - return _impl_.name_.Release(); -} -inline void PublicationObjSpec::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.PublicationObjSpec.name) -} - -// .pg_query.PublicationTable pubtable = 3 [json_name = "pubtable"]; -inline bool PublicationObjSpec::_internal_has_pubtable() const { - return this != internal_default_instance() && _impl_.pubtable_ != nullptr; -} -inline bool PublicationObjSpec::has_pubtable() const { - return _internal_has_pubtable(); -} -inline void PublicationObjSpec::clear_pubtable() { - if (GetArenaForAllocation() == nullptr && _impl_.pubtable_ != nullptr) { - delete _impl_.pubtable_; - } - _impl_.pubtable_ = nullptr; -} -inline const ::pg_query::PublicationTable& PublicationObjSpec::_internal_pubtable() const { - const ::pg_query::PublicationTable* p = _impl_.pubtable_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_PublicationTable_default_instance_); -} -inline const ::pg_query::PublicationTable& PublicationObjSpec::pubtable() const { - // @@protoc_insertion_point(field_get:pg_query.PublicationObjSpec.pubtable) - return _internal_pubtable(); -} -inline void PublicationObjSpec::unsafe_arena_set_allocated_pubtable( - ::pg_query::PublicationTable* pubtable) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pubtable_); - } - _impl_.pubtable_ = pubtable; - if (pubtable) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.PublicationObjSpec.pubtable) -} -inline ::pg_query::PublicationTable* PublicationObjSpec::release_pubtable() { - - ::pg_query::PublicationTable* temp = _impl_.pubtable_; - _impl_.pubtable_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::PublicationTable* PublicationObjSpec::unsafe_arena_release_pubtable() { - // @@protoc_insertion_point(field_release:pg_query.PublicationObjSpec.pubtable) - - ::pg_query::PublicationTable* temp = _impl_.pubtable_; - _impl_.pubtable_ = nullptr; - return temp; -} -inline ::pg_query::PublicationTable* PublicationObjSpec::_internal_mutable_pubtable() { - - if (_impl_.pubtable_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::PublicationTable>(GetArenaForAllocation()); - _impl_.pubtable_ = p; - } - return _impl_.pubtable_; -} -inline ::pg_query::PublicationTable* PublicationObjSpec::mutable_pubtable() { - ::pg_query::PublicationTable* _msg = _internal_mutable_pubtable(); - // @@protoc_insertion_point(field_mutable:pg_query.PublicationObjSpec.pubtable) - return _msg; -} -inline void PublicationObjSpec::set_allocated_pubtable(::pg_query::PublicationTable* pubtable) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.pubtable_; - } - if (pubtable) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(pubtable); - if (message_arena != submessage_arena) { - pubtable = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, pubtable, submessage_arena); - } - - } else { - - } - _impl_.pubtable_ = pubtable; - // @@protoc_insertion_point(field_set_allocated:pg_query.PublicationObjSpec.pubtable) -} - -// int32 location = 4 [json_name = "location"]; -inline void PublicationObjSpec::clear_location() { - _impl_.location_ = 0; -} -inline int32_t PublicationObjSpec::_internal_location() const { - return _impl_.location_; -} -inline int32_t PublicationObjSpec::location() const { - // @@protoc_insertion_point(field_get:pg_query.PublicationObjSpec.location) - return _internal_location(); -} -inline void PublicationObjSpec::_internal_set_location(int32_t value) { - - _impl_.location_ = value; -} -inline void PublicationObjSpec::set_location(int32_t value) { - _internal_set_location(value); - // @@protoc_insertion_point(field_set:pg_query.PublicationObjSpec.location) -} - -// ------------------------------------------------------------------- - -// PublicationTable - -// .pg_query.RangeVar relation = 1 [json_name = "relation"]; -inline bool PublicationTable::_internal_has_relation() const { - return this != internal_default_instance() && _impl_.relation_ != nullptr; -} -inline bool PublicationTable::has_relation() const { - return _internal_has_relation(); -} -inline void PublicationTable::clear_relation() { - if (GetArenaForAllocation() == nullptr && _impl_.relation_ != nullptr) { - delete _impl_.relation_; - } - _impl_.relation_ = nullptr; -} -inline const ::pg_query::RangeVar& PublicationTable::_internal_relation() const { - const ::pg_query::RangeVar* p = _impl_.relation_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_RangeVar_default_instance_); -} -inline const ::pg_query::RangeVar& PublicationTable::relation() const { - // @@protoc_insertion_point(field_get:pg_query.PublicationTable.relation) - return _internal_relation(); -} -inline void PublicationTable::unsafe_arena_set_allocated_relation( - ::pg_query::RangeVar* relation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.relation_); - } - _impl_.relation_ = relation; - if (relation) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.PublicationTable.relation) -} -inline ::pg_query::RangeVar* PublicationTable::release_relation() { - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::RangeVar* PublicationTable::unsafe_arena_release_relation() { - // @@protoc_insertion_point(field_release:pg_query.PublicationTable.relation) - - ::pg_query::RangeVar* temp = _impl_.relation_; - _impl_.relation_ = nullptr; - return temp; -} -inline ::pg_query::RangeVar* PublicationTable::_internal_mutable_relation() { - - if (_impl_.relation_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::RangeVar>(GetArenaForAllocation()); - _impl_.relation_ = p; - } - return _impl_.relation_; -} -inline ::pg_query::RangeVar* PublicationTable::mutable_relation() { - ::pg_query::RangeVar* _msg = _internal_mutable_relation(); - // @@protoc_insertion_point(field_mutable:pg_query.PublicationTable.relation) - return _msg; -} -inline void PublicationTable::set_allocated_relation(::pg_query::RangeVar* relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.relation_; - } - if (relation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(relation); - if (message_arena != submessage_arena) { - relation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, relation, submessage_arena); - } - - } else { - - } - _impl_.relation_ = relation; - // @@protoc_insertion_point(field_set_allocated:pg_query.PublicationTable.relation) -} - -// .pg_query.Node where_clause = 2 [json_name = "whereClause"]; -inline bool PublicationTable::_internal_has_where_clause() const { - return this != internal_default_instance() && _impl_.where_clause_ != nullptr; -} -inline bool PublicationTable::has_where_clause() const { - return _internal_has_where_clause(); -} -inline void PublicationTable::clear_where_clause() { - if (GetArenaForAllocation() == nullptr && _impl_.where_clause_ != nullptr) { - delete _impl_.where_clause_; - } - _impl_.where_clause_ = nullptr; -} -inline const ::pg_query::Node& PublicationTable::_internal_where_clause() const { - const ::pg_query::Node* p = _impl_.where_clause_; - return p != nullptr ? *p : reinterpret_cast( - ::pg_query::_Node_default_instance_); -} -inline const ::pg_query::Node& PublicationTable::where_clause() const { - // @@protoc_insertion_point(field_get:pg_query.PublicationTable.where_clause) - return _internal_where_clause(); -} -inline void PublicationTable::unsafe_arena_set_allocated_where_clause( - ::pg_query::Node* where_clause) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.where_clause_); - } - _impl_.where_clause_ = where_clause; - if (where_clause) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:pg_query.PublicationTable.where_clause) -} -inline ::pg_query::Node* PublicationTable::release_where_clause() { - - ::pg_query::Node* temp = _impl_.where_clause_; - _impl_.where_clause_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::pg_query::Node* PublicationTable::unsafe_arena_release_where_clause() { - // @@protoc_insertion_point(field_release:pg_query.PublicationTable.where_clause) - - ::pg_query::Node* temp = _impl_.where_clause_; - _impl_.where_clause_ = nullptr; - return temp; -} -inline ::pg_query::Node* PublicationTable::_internal_mutable_where_clause() { - - if (_impl_.where_clause_ == nullptr) { - auto* p = CreateMaybeMessage<::pg_query::Node>(GetArenaForAllocation()); - _impl_.where_clause_ = p; - } - return _impl_.where_clause_; -} -inline ::pg_query::Node* PublicationTable::mutable_where_clause() { - ::pg_query::Node* _msg = _internal_mutable_where_clause(); - // @@protoc_insertion_point(field_mutable:pg_query.PublicationTable.where_clause) - return _msg; -} -inline void PublicationTable::set_allocated_where_clause(::pg_query::Node* where_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.where_clause_; - } - if (where_clause) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(where_clause); - if (message_arena != submessage_arena) { - where_clause = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, where_clause, submessage_arena); - } - - } else { - - } - _impl_.where_clause_ = where_clause; - // @@protoc_insertion_point(field_set_allocated:pg_query.PublicationTable.where_clause) -} - -// repeated .pg_query.Node columns = 3 [json_name = "columns"]; -inline int PublicationTable::_internal_columns_size() const { - return _impl_.columns_.size(); -} -inline int PublicationTable::columns_size() const { - return _internal_columns_size(); -} -inline void PublicationTable::clear_columns() { - _impl_.columns_.Clear(); -} -inline ::pg_query::Node* PublicationTable::mutable_columns(int index) { - // @@protoc_insertion_point(field_mutable:pg_query.PublicationTable.columns) - return _impl_.columns_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >* -PublicationTable::mutable_columns() { - // @@protoc_insertion_point(field_mutable_list:pg_query.PublicationTable.columns) - return &_impl_.columns_; -} -inline const ::pg_query::Node& PublicationTable::_internal_columns(int index) const { - return _impl_.columns_.Get(index); -} -inline const ::pg_query::Node& PublicationTable::columns(int index) const { - // @@protoc_insertion_point(field_get:pg_query.PublicationTable.columns) - return _internal_columns(index); -} -inline ::pg_query::Node* PublicationTable::_internal_add_columns() { - return _impl_.columns_.Add(); -} -inline ::pg_query::Node* PublicationTable::add_columns() { - ::pg_query::Node* _add = _internal_add_columns(); - // @@protoc_insertion_point(field_add:pg_query.PublicationTable.columns) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::pg_query::Node >& -PublicationTable::columns() const { - // @@protoc_insertion_point(field_list:pg_query.PublicationTable.columns) - return _impl_.columns_; -} - -// ------------------------------------------------------------------- - -// InlineCodeBlock - -// string source_text = 1 [json_name = "source_text"]; -inline void InlineCodeBlock::clear_source_text() { - _impl_.source_text_.ClearToEmpty(); -} -inline const std::string& InlineCodeBlock::source_text() const { - // @@protoc_insertion_point(field_get:pg_query.InlineCodeBlock.source_text) - return _internal_source_text(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void InlineCodeBlock::set_source_text(ArgT0&& arg0, ArgT... args) { - - _impl_.source_text_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:pg_query.InlineCodeBlock.source_text) -} -inline std::string* InlineCodeBlock::mutable_source_text() { - std::string* _s = _internal_mutable_source_text(); - // @@protoc_insertion_point(field_mutable:pg_query.InlineCodeBlock.source_text) - return _s; -} -inline const std::string& InlineCodeBlock::_internal_source_text() const { - return _impl_.source_text_.Get(); -} -inline void InlineCodeBlock::_internal_set_source_text(const std::string& value) { - - _impl_.source_text_.Set(value, GetArenaForAllocation()); -} -inline std::string* InlineCodeBlock::_internal_mutable_source_text() { - - return _impl_.source_text_.Mutable(GetArenaForAllocation()); -} -inline std::string* InlineCodeBlock::release_source_text() { - // @@protoc_insertion_point(field_release:pg_query.InlineCodeBlock.source_text) - return _impl_.source_text_.Release(); -} -inline void InlineCodeBlock::set_allocated_source_text(std::string* source_text) { - if (source_text != nullptr) { - - } else { - - } - _impl_.source_text_.SetAllocated(source_text, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.source_text_.IsDefault()) { - _impl_.source_text_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:pg_query.InlineCodeBlock.source_text) -} - -// uint32 lang_oid = 2 [json_name = "langOid"]; -inline void InlineCodeBlock::clear_lang_oid() { - _impl_.lang_oid_ = 0u; -} -inline uint32_t InlineCodeBlock::_internal_lang_oid() const { - return _impl_.lang_oid_; -} -inline uint32_t InlineCodeBlock::lang_oid() const { - // @@protoc_insertion_point(field_get:pg_query.InlineCodeBlock.lang_oid) - return _internal_lang_oid(); -} -inline void InlineCodeBlock::_internal_set_lang_oid(uint32_t value) { - - _impl_.lang_oid_ = value; -} -inline void InlineCodeBlock::set_lang_oid(uint32_t value) { - _internal_set_lang_oid(value); - // @@protoc_insertion_point(field_set:pg_query.InlineCodeBlock.lang_oid) -} - -// bool lang_is_trusted = 3 [json_name = "langIsTrusted"]; -inline void InlineCodeBlock::clear_lang_is_trusted() { - _impl_.lang_is_trusted_ = false; -} -inline bool InlineCodeBlock::_internal_lang_is_trusted() const { - return _impl_.lang_is_trusted_; -} -inline bool InlineCodeBlock::lang_is_trusted() const { - // @@protoc_insertion_point(field_get:pg_query.InlineCodeBlock.lang_is_trusted) - return _internal_lang_is_trusted(); -} -inline void InlineCodeBlock::_internal_set_lang_is_trusted(bool value) { - - _impl_.lang_is_trusted_ = value; -} -inline void InlineCodeBlock::set_lang_is_trusted(bool value) { - _internal_set_lang_is_trusted(value); - // @@protoc_insertion_point(field_set:pg_query.InlineCodeBlock.lang_is_trusted) -} - -// bool atomic = 4 [json_name = "atomic"]; -inline void InlineCodeBlock::clear_atomic() { - _impl_.atomic_ = false; -} -inline bool InlineCodeBlock::_internal_atomic() const { - return _impl_.atomic_; -} -inline bool InlineCodeBlock::atomic() const { - // @@protoc_insertion_point(field_get:pg_query.InlineCodeBlock.atomic) - return _internal_atomic(); -} -inline void InlineCodeBlock::_internal_set_atomic(bool value) { - - _impl_.atomic_ = value; -} -inline void InlineCodeBlock::set_atomic(bool value) { - _internal_set_atomic(value); - // @@protoc_insertion_point(field_set:pg_query.InlineCodeBlock.atomic) -} - -// ------------------------------------------------------------------- - -// CallContext - -// bool atomic = 1 [json_name = "atomic"]; -inline void CallContext::clear_atomic() { - _impl_.atomic_ = false; -} -inline bool CallContext::_internal_atomic() const { - return _impl_.atomic_; -} -inline bool CallContext::atomic() const { - // @@protoc_insertion_point(field_get:pg_query.CallContext.atomic) - return _internal_atomic(); -} -inline void CallContext::_internal_set_atomic(bool value) { - - _impl_.atomic_ = value; -} -inline void CallContext::set_atomic(bool value) { - _internal_set_atomic(value); - // @@protoc_insertion_point(field_set:pg_query.CallContext.atomic) -} - -// ------------------------------------------------------------------- - -// ScanToken - -// int32 start = 1; -inline void ScanToken::clear_start() { - _impl_.start_ = 0; -} -inline int32_t ScanToken::_internal_start() const { - return _impl_.start_; -} -inline int32_t ScanToken::start() const { - // @@protoc_insertion_point(field_get:pg_query.ScanToken.start) - return _internal_start(); -} -inline void ScanToken::_internal_set_start(int32_t value) { - - _impl_.start_ = value; -} -inline void ScanToken::set_start(int32_t value) { - _internal_set_start(value); - // @@protoc_insertion_point(field_set:pg_query.ScanToken.start) -} - -// int32 end = 2; -inline void ScanToken::clear_end() { - _impl_.end_ = 0; -} -inline int32_t ScanToken::_internal_end() const { - return _impl_.end_; -} -inline int32_t ScanToken::end() const { - // @@protoc_insertion_point(field_get:pg_query.ScanToken.end) - return _internal_end(); -} -inline void ScanToken::_internal_set_end(int32_t value) { - - _impl_.end_ = value; -} -inline void ScanToken::set_end(int32_t value) { - _internal_set_end(value); - // @@protoc_insertion_point(field_set:pg_query.ScanToken.end) -} - -// .pg_query.Token token = 4; -inline void ScanToken::clear_token() { - _impl_.token_ = 0; -} -inline ::pg_query::Token ScanToken::_internal_token() const { - return static_cast< ::pg_query::Token >(_impl_.token_); -} -inline ::pg_query::Token ScanToken::token() const { - // @@protoc_insertion_point(field_get:pg_query.ScanToken.token) - return _internal_token(); -} -inline void ScanToken::_internal_set_token(::pg_query::Token value) { - - _impl_.token_ = value; -} -inline void ScanToken::set_token(::pg_query::Token value) { - _internal_set_token(value); - // @@protoc_insertion_point(field_set:pg_query.ScanToken.token) -} - -// .pg_query.KeywordKind keyword_kind = 5; -inline void ScanToken::clear_keyword_kind() { - _impl_.keyword_kind_ = 0; -} -inline ::pg_query::KeywordKind ScanToken::_internal_keyword_kind() const { - return static_cast< ::pg_query::KeywordKind >(_impl_.keyword_kind_); -} -inline ::pg_query::KeywordKind ScanToken::keyword_kind() const { - // @@protoc_insertion_point(field_get:pg_query.ScanToken.keyword_kind) - return _internal_keyword_kind(); -} -inline void ScanToken::_internal_set_keyword_kind(::pg_query::KeywordKind value) { - - _impl_.keyword_kind_ = value; -} -inline void ScanToken::set_keyword_kind(::pg_query::KeywordKind value) { - _internal_set_keyword_kind(value); - // @@protoc_insertion_point(field_set:pg_query.ScanToken.keyword_kind) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace pg_query - -PROTOBUF_NAMESPACE_OPEN - -template <> struct is_proto_enum< ::pg_query::OverridingKind> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::OverridingKind>() { - return ::pg_query::OverridingKind_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::QuerySource> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::QuerySource>() { - return ::pg_query::QuerySource_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::SortByDir> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::SortByDir>() { - return ::pg_query::SortByDir_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::SortByNulls> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::SortByNulls>() { - return ::pg_query::SortByNulls_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::SetQuantifier> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::SetQuantifier>() { - return ::pg_query::SetQuantifier_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::A_Expr_Kind> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::A_Expr_Kind>() { - return ::pg_query::A_Expr_Kind_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::RoleSpecType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::RoleSpecType>() { - return ::pg_query::RoleSpecType_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::TableLikeOption> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::TableLikeOption>() { - return ::pg_query::TableLikeOption_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::DefElemAction> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::DefElemAction>() { - return ::pg_query::DefElemAction_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::PartitionRangeDatumKind> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::PartitionRangeDatumKind>() { - return ::pg_query::PartitionRangeDatumKind_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::RTEKind> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::RTEKind>() { - return ::pg_query::RTEKind_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::WCOKind> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::WCOKind>() { - return ::pg_query::WCOKind_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::GroupingSetKind> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::GroupingSetKind>() { - return ::pg_query::GroupingSetKind_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::CTEMaterialize> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::CTEMaterialize>() { - return ::pg_query::CTEMaterialize_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::SetOperation> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::SetOperation>() { - return ::pg_query::SetOperation_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::ObjectType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::ObjectType>() { - return ::pg_query::ObjectType_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::DropBehavior> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::DropBehavior>() { - return ::pg_query::DropBehavior_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::AlterTableType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::AlterTableType>() { - return ::pg_query::AlterTableType_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::GrantTargetType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::GrantTargetType>() { - return ::pg_query::GrantTargetType_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::VariableSetKind> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::VariableSetKind>() { - return ::pg_query::VariableSetKind_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::ConstrType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::ConstrType>() { - return ::pg_query::ConstrType_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::ImportForeignSchemaType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::ImportForeignSchemaType>() { - return ::pg_query::ImportForeignSchemaType_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::RoleStmtType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::RoleStmtType>() { - return ::pg_query::RoleStmtType_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::FetchDirection> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::FetchDirection>() { - return ::pg_query::FetchDirection_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::FunctionParameterMode> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::FunctionParameterMode>() { - return ::pg_query::FunctionParameterMode_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::TransactionStmtKind> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::TransactionStmtKind>() { - return ::pg_query::TransactionStmtKind_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::ViewCheckOption> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::ViewCheckOption>() { - return ::pg_query::ViewCheckOption_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::DiscardMode> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::DiscardMode>() { - return ::pg_query::DiscardMode_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::ReindexObjectType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::ReindexObjectType>() { - return ::pg_query::ReindexObjectType_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::AlterTSConfigType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::AlterTSConfigType>() { - return ::pg_query::AlterTSConfigType_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::PublicationObjSpecType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::PublicationObjSpecType>() { - return ::pg_query::PublicationObjSpecType_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::AlterPublicationAction> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::AlterPublicationAction>() { - return ::pg_query::AlterPublicationAction_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::AlterSubscriptionType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::AlterSubscriptionType>() { - return ::pg_query::AlterSubscriptionType_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::OnCommitAction> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::OnCommitAction>() { - return ::pg_query::OnCommitAction_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::ParamKind> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::ParamKind>() { - return ::pg_query::ParamKind_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::CoercionContext> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::CoercionContext>() { - return ::pg_query::CoercionContext_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::CoercionForm> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::CoercionForm>() { - return ::pg_query::CoercionForm_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::BoolExprType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::BoolExprType>() { - return ::pg_query::BoolExprType_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::SubLinkType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::SubLinkType>() { - return ::pg_query::SubLinkType_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::RowCompareType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::RowCompareType>() { - return ::pg_query::RowCompareType_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::MinMaxOp> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::MinMaxOp>() { - return ::pg_query::MinMaxOp_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::SQLValueFunctionOp> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::SQLValueFunctionOp>() { - return ::pg_query::SQLValueFunctionOp_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::XmlExprOp> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::XmlExprOp>() { - return ::pg_query::XmlExprOp_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::XmlOptionType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::XmlOptionType>() { - return ::pg_query::XmlOptionType_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::NullTestType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::NullTestType>() { - return ::pg_query::NullTestType_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::BoolTestType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::BoolTestType>() { - return ::pg_query::BoolTestType_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::CmdType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::CmdType>() { - return ::pg_query::CmdType_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::JoinType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::JoinType>() { - return ::pg_query::JoinType_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::AggStrategy> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::AggStrategy>() { - return ::pg_query::AggStrategy_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::AggSplit> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::AggSplit>() { - return ::pg_query::AggSplit_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::SetOpCmd> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::SetOpCmd>() { - return ::pg_query::SetOpCmd_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::SetOpStrategy> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::SetOpStrategy>() { - return ::pg_query::SetOpStrategy_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::OnConflictAction> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::OnConflictAction>() { - return ::pg_query::OnConflictAction_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::LimitOption> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::LimitOption>() { - return ::pg_query::LimitOption_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::LockClauseStrength> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::LockClauseStrength>() { - return ::pg_query::LockClauseStrength_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::LockWaitPolicy> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::LockWaitPolicy>() { - return ::pg_query::LockWaitPolicy_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::LockTupleMode> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::LockTupleMode>() { - return ::pg_query::LockTupleMode_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::KeywordKind> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::KeywordKind>() { - return ::pg_query::KeywordKind_descriptor(); -} -template <> struct is_proto_enum< ::pg_query::Token> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::pg_query::Token>() { - return ::pg_query::Token_descriptor(); -} - -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protobuf_2fpg_5fquery_2eproto diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/regex/regex.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/regex/regex.h deleted file mode 100644 index 0455ae806..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/regex/regex.h +++ /dev/null @@ -1,186 +0,0 @@ -#ifndef _REGEX_H_ -#define _REGEX_H_ /* never again */ -/* - * regular expressions - * - * Copyright (c) 1998, 1999 Henry Spencer. All rights reserved. - * - * Development of this software was funded, in part, by Cray Research Inc., - * UUNET Communications Services Inc., Sun Microsystems Inc., and Scriptics - * Corporation, none of whom are responsible for the results. The author - * thanks all of them. - * - * Redistribution and use in source and binary forms -- with or without - * modification -- are permitted for any purpose, provided that - * redistributions in source form retain this entire copyright notice and - * indicate the origin and nature of any modifications. - * - * I'd appreciate being given credit for this package in the documentation - * of software which uses it, but that is not a requirement. - * - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL - * HENRY SPENCER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; - * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR - * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * src/include/regex/regex.h - */ - -/* - * Add your own defines, if needed, here. - */ -#include "mb/pg_wchar.h" - -/* - * interface types etc. - */ - -/* - * regoff_t has to be large enough to hold either off_t or ssize_t, - * and must be signed; it's only a guess that long is suitable. - */ -typedef long regoff_t; - -/* - * other interface types - */ - -/* the biggie, a compiled RE (or rather, a front end to same) */ -typedef struct -{ - int re_magic; /* magic number */ - size_t re_nsub; /* number of subexpressions */ - long re_info; /* bitmask of the following flags: */ -#define REG_UBACKREF 000001 /* has back-reference (\n) */ -#define REG_ULOOKAROUND 000002 /* has lookahead/lookbehind constraint */ -#define REG_UBOUNDS 000004 /* has bounded quantifier ({m,n}) */ -#define REG_UBRACES 000010 /* has { that doesn't begin a quantifier */ -#define REG_UBSALNUM 000020 /* has backslash-alphanumeric in non-ARE */ -#define REG_UPBOTCH 000040 /* has unmatched right paren in ERE (legal - * per spec, but that was a mistake) */ -#define REG_UBBS 000100 /* has backslash within bracket expr */ -#define REG_UNONPOSIX 000200 /* has any construct that extends POSIX */ -#define REG_UUNSPEC 000400 /* has any case disallowed by POSIX, e.g. - * an empty branch */ -#define REG_UUNPORT 001000 /* has numeric character code dependency */ -#define REG_ULOCALE 002000 /* has locale dependency */ -#define REG_UEMPTYMATCH 004000 /* can match a zero-length string */ -#define REG_UIMPOSSIBLE 010000 /* provably cannot match anything */ -#define REG_USHORTEST 020000 /* has non-greedy quantifier */ - int re_csize; /* sizeof(character) */ - char *re_endp; /* backward compatibility kludge */ - Oid re_collation; /* Collation that defines LC_CTYPE behavior */ - /* the rest is opaque pointers to hidden innards */ - char *re_guts; /* `char *' is more portable than `void *' */ - char *re_fns; -} regex_t; - -/* result reporting (may acquire more fields later) */ -typedef struct -{ - regoff_t rm_so; /* start of substring */ - regoff_t rm_eo; /* end of substring */ -} regmatch_t; - -/* supplementary control and reporting */ -typedef struct -{ - regmatch_t rm_extend; /* see REG_EXPECT */ -} rm_detail_t; - - - -/* - * regex compilation flags - */ -#define REG_BASIC 000000 /* BREs (convenience) */ -#define REG_EXTENDED 000001 /* EREs */ -#define REG_ADVF 000002 /* advanced features in EREs */ -#define REG_ADVANCED 000003 /* AREs (which are also EREs) */ -#define REG_QUOTE 000004 /* no special characters, none */ -#define REG_NOSPEC REG_QUOTE /* historical synonym */ -#define REG_ICASE 000010 /* ignore case */ -#define REG_NOSUB 000020 /* caller doesn't need subexpr match data */ -#define REG_EXPANDED 000040 /* expanded format, white space & comments */ -#define REG_NLSTOP 000100 /* \n doesn't match . or [^ ] */ -#define REG_NLANCH 000200 /* ^ matches after \n, $ before */ -#define REG_NEWLINE 000300 /* newlines are line terminators */ -#define REG_PEND 000400 /* ugh -- backward-compatibility hack */ -#define REG_EXPECT 001000 /* report details on partial/limited matches */ -#define REG_BOSONLY 002000 /* temporary kludge for BOS-only matches */ -#define REG_DUMP 004000 /* none of your business :-) */ -#define REG_FAKE 010000 /* none of your business :-) */ -#define REG_PROGRESS 020000 /* none of your business :-) */ - - - -/* - * regex execution flags - */ -#define REG_NOTBOL 0001 /* BOS is not BOL */ -#define REG_NOTEOL 0002 /* EOS is not EOL */ -#define REG_STARTEND 0004 /* backward compatibility kludge */ -#define REG_FTRACE 0010 /* none of your business */ -#define REG_MTRACE 0020 /* none of your business */ -#define REG_SMALL 0040 /* none of your business */ - - -/* - * error reporting - * Be careful if modifying the list of error codes -- the table used by - * regerror() is generated automatically from this file! - */ -#define REG_OKAY 0 /* no errors detected */ -#define REG_NOMATCH 1 /* failed to match */ -#define REG_BADPAT 2 /* invalid regexp */ -#define REG_ECOLLATE 3 /* invalid collating element */ -#define REG_ECTYPE 4 /* invalid character class */ -#define REG_EESCAPE 5 /* invalid escape \ sequence */ -#define REG_ESUBREG 6 /* invalid backreference number */ -#define REG_EBRACK 7 /* brackets [] not balanced */ -#define REG_EPAREN 8 /* parentheses () not balanced */ -#define REG_EBRACE 9 /* braces {} not balanced */ -#define REG_BADBR 10 /* invalid repetition count(s) */ -#define REG_ERANGE 11 /* invalid character range */ -#define REG_ESPACE 12 /* out of memory */ -#define REG_BADRPT 13 /* quantifier operand invalid */ -#define REG_ASSERT 15 /* "can't happen" -- you found a bug */ -#define REG_INVARG 16 /* invalid argument to regex function */ -#define REG_MIXED 17 /* character widths of regex and string differ */ -#define REG_BADOPT 18 /* invalid embedded option */ -#define REG_ETOOBIG 19 /* regular expression is too complex */ -#define REG_ECOLORS 20 /* too many colors */ -#define REG_CANCEL 21 /* operation cancelled */ -/* two specials for debugging and testing */ -#define REG_ATOI 101 /* convert error-code name to number */ -#define REG_ITOA 102 /* convert error-code number to name */ -/* non-error result codes for pg_regprefix */ -#define REG_PREFIX (-1) /* identified a common prefix */ -#define REG_EXACT (-2) /* identified an exact match */ - - - -/* - * the prototypes for exported functions - */ - -/* regcomp.c */ -extern int pg_regcomp(regex_t *, const pg_wchar *, size_t, int, Oid); -extern int pg_regexec(regex_t *, const pg_wchar *, size_t, size_t, rm_detail_t *, size_t, regmatch_t[], int); -extern int pg_regprefix(regex_t *, pg_wchar **, size_t *); -extern void pg_regfree(regex_t *); -extern size_t pg_regerror(int, const regex_t *, char *, size_t); - -/* regexp.c */ -extern regex_t *RE_compile_and_cache(text *text_re, int cflags, Oid collation); -extern bool RE_compile_and_execute(text *text_re, char *dat, int dat_len, - int cflags, Oid collation, - int nmatch, regmatch_t *pmatch); - -#endif /* _REGEX_H_ */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/logicallauncher.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/logicallauncher.h deleted file mode 100644 index f1e2821e2..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/logicallauncher.h +++ /dev/null @@ -1,29 +0,0 @@ -/*------------------------------------------------------------------------- - * - * logicallauncher.h - * Exports for logical replication launcher. - * - * Portions Copyright (c) 2016-2022, PostgreSQL Global Development Group - * - * src/include/replication/logicallauncher.h - * - *------------------------------------------------------------------------- - */ -#ifndef LOGICALLAUNCHER_H -#define LOGICALLAUNCHER_H - -extern PGDLLIMPORT int max_logical_replication_workers; -extern PGDLLIMPORT int max_sync_workers_per_subscription; - -extern void ApplyLauncherRegister(void); -extern void ApplyLauncherMain(Datum main_arg); - -extern Size ApplyLauncherShmemSize(void); -extern void ApplyLauncherShmemInit(void); - -extern void ApplyLauncherWakeupAtCommit(void); -extern void AtEOXact_ApplyLauncher(bool isCommit); - -extern bool IsLogicalLauncher(void); - -#endif /* LOGICALLAUNCHER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/logicalproto.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/logicalproto.h deleted file mode 100644 index a771ab8ff..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/logicalproto.h +++ /dev/null @@ -1,254 +0,0 @@ -/*------------------------------------------------------------------------- - * - * logicalproto.h - * logical replication protocol - * - * Copyright (c) 2015-2022, PostgreSQL Global Development Group - * - * IDENTIFICATION - * src/include/replication/logicalproto.h - * - *------------------------------------------------------------------------- - */ -#ifndef LOGICAL_PROTO_H -#define LOGICAL_PROTO_H - -#include "access/xact.h" -#include "executor/tuptable.h" -#include "replication/reorderbuffer.h" -#include "utils/rel.h" - -/* - * Protocol capabilities - * - * LOGICALREP_PROTO_VERSION_NUM is our native protocol. - * LOGICALREP_PROTO_MAX_VERSION_NUM is the greatest version we can support. - * LOGICALREP_PROTO_MIN_VERSION_NUM is the oldest version we - * have backwards compatibility for. The client requests protocol version at - * connect time. - * - * LOGICALREP_PROTO_STREAM_VERSION_NUM is the minimum protocol version with - * support for streaming large transactions. Introduced in PG14. - * - * LOGICALREP_PROTO_TWOPHASE_VERSION_NUM is the minimum protocol version with - * support for two-phase commit decoding (at prepare time). Introduced in PG15. - */ -#define LOGICALREP_PROTO_MIN_VERSION_NUM 1 -#define LOGICALREP_PROTO_VERSION_NUM 1 -#define LOGICALREP_PROTO_STREAM_VERSION_NUM 2 -#define LOGICALREP_PROTO_TWOPHASE_VERSION_NUM 3 -#define LOGICALREP_PROTO_MAX_VERSION_NUM LOGICALREP_PROTO_TWOPHASE_VERSION_NUM - -/* - * Logical message types - * - * Used by logical replication wire protocol. - * - * Note: though this is an enum, the values are used to identify message types - * in logical replication protocol, which uses a single byte to identify a - * message type. Hence the values should be single-byte wide and preferably - * human-readable characters. - */ -typedef enum LogicalRepMsgType -{ - LOGICAL_REP_MSG_BEGIN = 'B', - LOGICAL_REP_MSG_COMMIT = 'C', - LOGICAL_REP_MSG_ORIGIN = 'O', - LOGICAL_REP_MSG_INSERT = 'I', - LOGICAL_REP_MSG_UPDATE = 'U', - LOGICAL_REP_MSG_DELETE = 'D', - LOGICAL_REP_MSG_TRUNCATE = 'T', - LOGICAL_REP_MSG_RELATION = 'R', - LOGICAL_REP_MSG_TYPE = 'Y', - LOGICAL_REP_MSG_MESSAGE = 'M', - LOGICAL_REP_MSG_BEGIN_PREPARE = 'b', - LOGICAL_REP_MSG_PREPARE = 'P', - LOGICAL_REP_MSG_COMMIT_PREPARED = 'K', - LOGICAL_REP_MSG_ROLLBACK_PREPARED = 'r', - LOGICAL_REP_MSG_STREAM_START = 'S', - LOGICAL_REP_MSG_STREAM_STOP = 'E', - LOGICAL_REP_MSG_STREAM_COMMIT = 'c', - LOGICAL_REP_MSG_STREAM_ABORT = 'A', - LOGICAL_REP_MSG_STREAM_PREPARE = 'p' -} LogicalRepMsgType; - -/* - * This struct stores a tuple received via logical replication. - * Keep in mind that the columns correspond to the *remote* table. - */ -typedef struct LogicalRepTupleData -{ - /* Array of StringInfos, one per column; some may be unused */ - StringInfoData *colvalues; - /* Array of markers for null/unchanged/text/binary, one per column */ - char *colstatus; - /* Length of above arrays */ - int ncols; -} LogicalRepTupleData; - -/* Possible values for LogicalRepTupleData.colstatus[colnum] */ -/* These values are also used in the on-the-wire protocol */ -#define LOGICALREP_COLUMN_NULL 'n' -#define LOGICALREP_COLUMN_UNCHANGED 'u' -#define LOGICALREP_COLUMN_TEXT 't' -#define LOGICALREP_COLUMN_BINARY 'b' /* added in PG14 */ - -typedef uint32 LogicalRepRelId; - -/* Relation information */ -typedef struct LogicalRepRelation -{ - /* Info coming from the remote side. */ - LogicalRepRelId remoteid; /* unique id of the relation */ - char *nspname; /* schema name */ - char *relname; /* relation name */ - int natts; /* number of columns */ - char **attnames; /* column names */ - Oid *atttyps; /* column types */ - char replident; /* replica identity */ - char relkind; /* remote relation kind */ - Bitmapset *attkeys; /* Bitmap of key columns */ -} LogicalRepRelation; - -/* Type mapping info */ -typedef struct LogicalRepTyp -{ - Oid remoteid; /* unique id of the remote type */ - char *nspname; /* schema name of remote type */ - char *typname; /* name of the remote type */ -} LogicalRepTyp; - -/* Transaction info */ -typedef struct LogicalRepBeginData -{ - XLogRecPtr final_lsn; - TimestampTz committime; - TransactionId xid; -} LogicalRepBeginData; - -typedef struct LogicalRepCommitData -{ - XLogRecPtr commit_lsn; - XLogRecPtr end_lsn; - TimestampTz committime; -} LogicalRepCommitData; - -/* - * Prepared transaction protocol information for begin_prepare, and prepare. - */ -typedef struct LogicalRepPreparedTxnData -{ - XLogRecPtr prepare_lsn; - XLogRecPtr end_lsn; - TimestampTz prepare_time; - TransactionId xid; - char gid[GIDSIZE]; -} LogicalRepPreparedTxnData; - -/* - * Prepared transaction protocol information for commit prepared. - */ -typedef struct LogicalRepCommitPreparedTxnData -{ - XLogRecPtr commit_lsn; - XLogRecPtr end_lsn; - TimestampTz commit_time; - TransactionId xid; - char gid[GIDSIZE]; -} LogicalRepCommitPreparedTxnData; - -/* - * Rollback Prepared transaction protocol information. The prepare information - * prepare_end_lsn and prepare_time are used to check if the downstream has - * received this prepared transaction in which case it can apply the rollback, - * otherwise, it can skip the rollback operation. The gid alone is not - * sufficient because the downstream node can have a prepared transaction with - * same identifier. - */ -typedef struct LogicalRepRollbackPreparedTxnData -{ - XLogRecPtr prepare_end_lsn; - XLogRecPtr rollback_end_lsn; - TimestampTz prepare_time; - TimestampTz rollback_time; - TransactionId xid; - char gid[GIDSIZE]; -} LogicalRepRollbackPreparedTxnData; - -extern void logicalrep_write_begin(StringInfo out, ReorderBufferTXN *txn); -extern void logicalrep_read_begin(StringInfo in, - LogicalRepBeginData *begin_data); -extern void logicalrep_write_commit(StringInfo out, ReorderBufferTXN *txn, - XLogRecPtr commit_lsn); -extern void logicalrep_read_commit(StringInfo in, - LogicalRepCommitData *commit_data); -extern void logicalrep_write_begin_prepare(StringInfo out, ReorderBufferTXN *txn); -extern void logicalrep_read_begin_prepare(StringInfo in, - LogicalRepPreparedTxnData *begin_data); -extern void logicalrep_write_prepare(StringInfo out, ReorderBufferTXN *txn, - XLogRecPtr prepare_lsn); -extern void logicalrep_read_prepare(StringInfo in, - LogicalRepPreparedTxnData *prepare_data); -extern void logicalrep_write_commit_prepared(StringInfo out, ReorderBufferTXN *txn, - XLogRecPtr commit_lsn); -extern void logicalrep_read_commit_prepared(StringInfo in, - LogicalRepCommitPreparedTxnData *prepare_data); -extern void logicalrep_write_rollback_prepared(StringInfo out, ReorderBufferTXN *txn, - XLogRecPtr prepare_end_lsn, - TimestampTz prepare_time); -extern void logicalrep_read_rollback_prepared(StringInfo in, - LogicalRepRollbackPreparedTxnData *rollback_data); -extern void logicalrep_write_stream_prepare(StringInfo out, ReorderBufferTXN *txn, - XLogRecPtr prepare_lsn); -extern void logicalrep_read_stream_prepare(StringInfo in, - LogicalRepPreparedTxnData *prepare_data); - -extern void logicalrep_write_origin(StringInfo out, const char *origin, - XLogRecPtr origin_lsn); -extern char *logicalrep_read_origin(StringInfo in, XLogRecPtr *origin_lsn); -extern void logicalrep_write_insert(StringInfo out, TransactionId xid, - Relation rel, - TupleTableSlot *newslot, - bool binary, Bitmapset *columns); -extern LogicalRepRelId logicalrep_read_insert(StringInfo in, LogicalRepTupleData *newtup); -extern void logicalrep_write_update(StringInfo out, TransactionId xid, - Relation rel, - TupleTableSlot *oldslot, - TupleTableSlot *newslot, bool binary, Bitmapset *columns); -extern LogicalRepRelId logicalrep_read_update(StringInfo in, - bool *has_oldtuple, LogicalRepTupleData *oldtup, - LogicalRepTupleData *newtup); -extern void logicalrep_write_delete(StringInfo out, TransactionId xid, - Relation rel, TupleTableSlot *oldtuple, - bool binary); -extern LogicalRepRelId logicalrep_read_delete(StringInfo in, - LogicalRepTupleData *oldtup); -extern void logicalrep_write_truncate(StringInfo out, TransactionId xid, - int nrelids, Oid relids[], - bool cascade, bool restart_seqs); -extern List *logicalrep_read_truncate(StringInfo in, - bool *cascade, bool *restart_seqs); -extern void logicalrep_write_message(StringInfo out, TransactionId xid, XLogRecPtr lsn, - bool transactional, const char *prefix, Size sz, const char *message); -extern void logicalrep_write_rel(StringInfo out, TransactionId xid, - Relation rel, Bitmapset *columns); -extern LogicalRepRelation *logicalrep_read_rel(StringInfo in); -extern void logicalrep_write_typ(StringInfo out, TransactionId xid, - Oid typoid); -extern void logicalrep_read_typ(StringInfo out, LogicalRepTyp *ltyp); -extern void logicalrep_write_stream_start(StringInfo out, TransactionId xid, - bool first_segment); -extern TransactionId logicalrep_read_stream_start(StringInfo in, - bool *first_segment); -extern void logicalrep_write_stream_stop(StringInfo out); -extern void logicalrep_write_stream_commit(StringInfo out, ReorderBufferTXN *txn, - XLogRecPtr commit_lsn); -extern TransactionId logicalrep_read_stream_commit(StringInfo out, - LogicalRepCommitData *commit_data); -extern void logicalrep_write_stream_abort(StringInfo out, TransactionId xid, - TransactionId subxid); -extern void logicalrep_read_stream_abort(StringInfo in, TransactionId *xid, - TransactionId *subxid); -extern char *logicalrep_message_type(LogicalRepMsgType action); - -#endif /* LOGICAL_PROTO_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/logicalworker.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/logicalworker.h deleted file mode 100644 index cd1b6e8af..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/logicalworker.h +++ /dev/null @@ -1,19 +0,0 @@ -/*------------------------------------------------------------------------- - * - * logicalworker.h - * Exports for logical replication workers. - * - * Portions Copyright (c) 2016-2022, PostgreSQL Global Development Group - * - * src/include/replication/logicalworker.h - * - *------------------------------------------------------------------------- - */ -#ifndef LOGICALWORKER_H -#define LOGICALWORKER_H - -extern void ApplyWorkerMain(Datum main_arg); - -extern bool IsLogicalWorker(void); - -#endif /* LOGICALWORKER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/origin.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/origin.h deleted file mode 100644 index 2d1b5e5c2..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/origin.h +++ /dev/null @@ -1,73 +0,0 @@ -/*------------------------------------------------------------------------- - * origin.h - * Exports from replication/logical/origin.c - * - * Copyright (c) 2013-2022, PostgreSQL Global Development Group - * - * src/include/replication/origin.h - *------------------------------------------------------------------------- - */ -#ifndef PG_ORIGIN_H -#define PG_ORIGIN_H - -#include "access/xlog.h" -#include "access/xlogdefs.h" -#include "access/xlogreader.h" -#include "catalog/pg_replication_origin.h" - -typedef struct xl_replorigin_set -{ - XLogRecPtr remote_lsn; - RepOriginId node_id; - bool force; -} xl_replorigin_set; - -typedef struct xl_replorigin_drop -{ - RepOriginId node_id; -} xl_replorigin_drop; - -#define XLOG_REPLORIGIN_SET 0x00 -#define XLOG_REPLORIGIN_DROP 0x10 - -#define InvalidRepOriginId 0 -#define DoNotReplicateId PG_UINT16_MAX - -extern PGDLLIMPORT RepOriginId replorigin_session_origin; -extern PGDLLIMPORT XLogRecPtr replorigin_session_origin_lsn; -extern PGDLLIMPORT TimestampTz replorigin_session_origin_timestamp; - -/* API for querying & manipulating replication origins */ -extern RepOriginId replorigin_by_name(const char *name, bool missing_ok); -extern RepOriginId replorigin_create(const char *name); -extern void replorigin_drop_by_name(const char *name, bool missing_ok, bool nowait); -extern bool replorigin_by_oid(RepOriginId roident, bool missing_ok, - char **roname); - -/* API for querying & manipulating replication progress tracking */ -extern void replorigin_advance(RepOriginId node, - XLogRecPtr remote_commit, - XLogRecPtr local_commit, - bool go_backward, bool wal_log); -extern XLogRecPtr replorigin_get_progress(RepOriginId node, bool flush); - -extern void replorigin_session_advance(XLogRecPtr remote_commit, - XLogRecPtr local_commit); -extern void replorigin_session_setup(RepOriginId node); -extern void replorigin_session_reset(void); -extern XLogRecPtr replorigin_session_get_progress(bool flush); - -/* Checkpoint/Startup integration */ -extern void CheckPointReplicationOrigin(void); -extern void StartupReplicationOrigin(void); - -/* WAL logging */ -extern void replorigin_redo(XLogReaderState *record); -extern void replorigin_desc(StringInfo buf, XLogReaderState *record); -extern const char *replorigin_identify(uint8 info); - -/* shared memory allocation */ -extern Size ReplicationOriginShmemSize(void); -extern void ReplicationOriginShmemInit(void); - -#endif /* PG_ORIGIN_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/reorderbuffer.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/reorderbuffer.h deleted file mode 100644 index 4a01f877e..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/reorderbuffer.h +++ /dev/null @@ -1,685 +0,0 @@ -/* - * reorderbuffer.h - * PostgreSQL logical replay/reorder buffer management. - * - * Copyright (c) 2012-2022, PostgreSQL Global Development Group - * - * src/include/replication/reorderbuffer.h - */ -#ifndef REORDERBUFFER_H -#define REORDERBUFFER_H - -#include "access/htup_details.h" -#include "lib/ilist.h" -#include "storage/sinval.h" -#include "utils/hsearch.h" -#include "utils/relcache.h" -#include "utils/snapshot.h" -#include "utils/timestamp.h" - -extern PGDLLIMPORT int logical_decoding_work_mem; - -/* an individual tuple, stored in one chunk of memory */ -typedef struct ReorderBufferTupleBuf -{ - /* position in preallocated list */ - slist_node node; - - /* tuple header, the interesting bit for users of logical decoding */ - HeapTupleData tuple; - - /* pre-allocated size of tuple buffer, different from tuple size */ - Size alloc_tuple_size; - - /* actual tuple data follows */ -} ReorderBufferTupleBuf; - -/* pointer to the data stored in a TupleBuf */ -#define ReorderBufferTupleBufData(p) \ - ((HeapTupleHeader) MAXALIGN(((char *) p) + sizeof(ReorderBufferTupleBuf))) - -/* - * Types of the change passed to a 'change' callback. - * - * For efficiency and simplicity reasons we want to keep Snapshots, CommandIds - * and ComboCids in the same list with the user visible INSERT/UPDATE/DELETE - * changes. Users of the decoding facilities will never see changes with - * *_INTERNAL_* actions. - * - * The INTERNAL_SPEC_INSERT and INTERNAL_SPEC_CONFIRM, and INTERNAL_SPEC_ABORT - * changes concern "speculative insertions", their confirmation, and abort - * respectively. They're used by INSERT .. ON CONFLICT .. UPDATE. Users of - * logical decoding don't have to care about these. - */ -typedef enum ReorderBufferChangeType -{ - REORDER_BUFFER_CHANGE_INSERT, - REORDER_BUFFER_CHANGE_UPDATE, - REORDER_BUFFER_CHANGE_DELETE, - REORDER_BUFFER_CHANGE_MESSAGE, - REORDER_BUFFER_CHANGE_INVALIDATION, - REORDER_BUFFER_CHANGE_INTERNAL_SNAPSHOT, - REORDER_BUFFER_CHANGE_INTERNAL_COMMAND_ID, - REORDER_BUFFER_CHANGE_INTERNAL_TUPLECID, - REORDER_BUFFER_CHANGE_INTERNAL_SPEC_INSERT, - REORDER_BUFFER_CHANGE_INTERNAL_SPEC_CONFIRM, - REORDER_BUFFER_CHANGE_INTERNAL_SPEC_ABORT, - REORDER_BUFFER_CHANGE_TRUNCATE -} ReorderBufferChangeType; - -/* forward declaration */ -struct ReorderBufferTXN; - -/* - * a single 'change', can be an insert (with one tuple), an update (old, new), - * or a delete (old). - * - * The same struct is also used internally for other purposes but that should - * never be visible outside reorderbuffer.c. - */ -typedef struct ReorderBufferChange -{ - XLogRecPtr lsn; - - /* The type of change. */ - ReorderBufferChangeType action; - - /* Transaction this change belongs to. */ - struct ReorderBufferTXN *txn; - - RepOriginId origin_id; - - /* - * Context data for the change. Which part of the union is valid depends - * on action. - */ - union - { - /* Old, new tuples when action == *_INSERT|UPDATE|DELETE */ - struct - { - /* relation that has been changed */ - RelFileNode relnode; - - /* no previously reassembled toast chunks are necessary anymore */ - bool clear_toast_afterwards; - - /* valid for DELETE || UPDATE */ - ReorderBufferTupleBuf *oldtuple; - /* valid for INSERT || UPDATE */ - ReorderBufferTupleBuf *newtuple; - } tp; - - /* - * Truncate data for REORDER_BUFFER_CHANGE_TRUNCATE representing one - * set of relations to be truncated. - */ - struct - { - Size nrelids; - bool cascade; - bool restart_seqs; - Oid *relids; - } truncate; - - /* Message with arbitrary data. */ - struct - { - char *prefix; - Size message_size; - char *message; - } msg; - - /* New snapshot, set when action == *_INTERNAL_SNAPSHOT */ - Snapshot snapshot; - - /* - * New command id for existing snapshot in a catalog changing tx. Set - * when action == *_INTERNAL_COMMAND_ID. - */ - CommandId command_id; - - /* - * New cid mapping for catalog changing transaction, set when action - * == *_INTERNAL_TUPLECID. - */ - struct - { - RelFileNode node; - ItemPointerData tid; - CommandId cmin; - CommandId cmax; - CommandId combocid; - } tuplecid; - - /* Invalidation. */ - struct - { - uint32 ninvalidations; /* Number of messages */ - SharedInvalidationMessage *invalidations; /* invalidation message */ - } inval; - } data; - - /* - * While in use this is how a change is linked into a transactions, - * otherwise it's the preallocated list. - */ - dlist_node node; -} ReorderBufferChange; - -/* ReorderBufferTXN txn_flags */ -#define RBTXN_HAS_CATALOG_CHANGES 0x0001 -#define RBTXN_IS_SUBXACT 0x0002 -#define RBTXN_IS_SERIALIZED 0x0004 -#define RBTXN_IS_SERIALIZED_CLEAR 0x0008 -#define RBTXN_IS_STREAMED 0x0010 -#define RBTXN_HAS_PARTIAL_CHANGE 0x0020 -#define RBTXN_PREPARE 0x0040 -#define RBTXN_SKIPPED_PREPARE 0x0080 - -/* Does the transaction have catalog changes? */ -#define rbtxn_has_catalog_changes(txn) \ -( \ - ((txn)->txn_flags & RBTXN_HAS_CATALOG_CHANGES) != 0 \ -) - -/* Is the transaction known as a subxact? */ -#define rbtxn_is_known_subxact(txn) \ -( \ - ((txn)->txn_flags & RBTXN_IS_SUBXACT) != 0 \ -) - -/* Has this transaction been spilled to disk? */ -#define rbtxn_is_serialized(txn) \ -( \ - ((txn)->txn_flags & RBTXN_IS_SERIALIZED) != 0 \ -) - -/* Has this transaction ever been spilled to disk? */ -#define rbtxn_is_serialized_clear(txn) \ -( \ - ((txn)->txn_flags & RBTXN_IS_SERIALIZED_CLEAR) != 0 \ -) - -/* Has this transaction contains partial changes? */ -#define rbtxn_has_partial_change(txn) \ -( \ - ((txn)->txn_flags & RBTXN_HAS_PARTIAL_CHANGE) != 0 \ -) - -/* - * Has this transaction been streamed to downstream? - * - * (It's not possible to deduce this from nentries and nentries_mem for - * various reasons. For example, all changes may be in subtransactions in - * which case we'd have nentries==0 for the toplevel one, which would say - * nothing about the streaming. So we maintain this flag, but only for the - * toplevel transaction.) - */ -#define rbtxn_is_streamed(txn) \ -( \ - ((txn)->txn_flags & RBTXN_IS_STREAMED) != 0 \ -) - -/* Has this transaction been prepared? */ -#define rbtxn_prepared(txn) \ -( \ - ((txn)->txn_flags & RBTXN_PREPARE) != 0 \ -) - -/* prepare for this transaction skipped? */ -#define rbtxn_skip_prepared(txn) \ -( \ - ((txn)->txn_flags & RBTXN_SKIPPED_PREPARE) != 0 \ -) - -typedef struct ReorderBufferTXN -{ - /* See above */ - bits32 txn_flags; - - /* The transaction's transaction id, can be a toplevel or sub xid. */ - TransactionId xid; - - /* Xid of top-level transaction, if known */ - TransactionId toplevel_xid; - - /* - * Global transaction id required for identification of prepared - * transactions. - */ - char *gid; - - /* - * LSN of the first data carrying, WAL record with knowledge about this - * xid. This is allowed to *not* be first record adorned with this xid, if - * the previous records aren't relevant for logical decoding. - */ - XLogRecPtr first_lsn; - - /* ---- - * LSN of the record that lead to this xact to be prepared or committed or - * aborted. This can be a - * * plain commit record - * * plain commit record, of a parent transaction - * * prepared tansaction - * * prepared transaction commit - * * plain abort record - * * prepared transaction abort - * - * This can also become set to earlier values than transaction end when - * a transaction is spilled to disk; specifically it's set to the LSN of - * the latest change written to disk so far. - * ---- - */ - XLogRecPtr final_lsn; - - /* - * LSN pointing to the end of the commit record + 1. - */ - XLogRecPtr end_lsn; - - /* Toplevel transaction for this subxact (NULL for top-level). */ - struct ReorderBufferTXN *toptxn; - - /* - * LSN of the last lsn at which snapshot information reside, so we can - * restart decoding from there and fully recover this transaction from - * WAL. - */ - XLogRecPtr restart_decoding_lsn; - - /* origin of the change that caused this transaction */ - RepOriginId origin_id; - XLogRecPtr origin_lsn; - - /* - * Commit or Prepare time, only known when we read the actual commit or - * prepare record. - */ - union - { - TimestampTz commit_time; - TimestampTz prepare_time; - } xact_time; - - /* - * The base snapshot is used to decode all changes until either this - * transaction modifies the catalog, or another catalog-modifying - * transaction commits. - */ - Snapshot base_snapshot; - XLogRecPtr base_snapshot_lsn; - dlist_node base_snapshot_node; /* link in txns_by_base_snapshot_lsn */ - - /* - * Snapshot/CID from the previous streaming run. Only valid for already - * streamed transactions (NULL/InvalidCommandId otherwise). - */ - Snapshot snapshot_now; - CommandId command_id; - - /* - * How many ReorderBufferChange's do we have in this txn. - * - * Changes in subtransactions are *not* included but tracked separately. - */ - uint64 nentries; - - /* - * How many of the above entries are stored in memory in contrast to being - * spilled to disk. - */ - uint64 nentries_mem; - - /* - * List of ReorderBufferChange structs, including new Snapshots, new - * CommandIds and command invalidation messages. - */ - dlist_head changes; - - /* - * List of (relation, ctid) => (cmin, cmax) mappings for catalog tuples. - * Those are always assigned to the toplevel transaction. (Keep track of - * #entries to create a hash of the right size) - */ - dlist_head tuplecids; - uint64 ntuplecids; - - /* - * On-demand built hash for looking up the above values. - */ - HTAB *tuplecid_hash; - - /* - * Hash containing (potentially partial) toast entries. NULL if no toast - * tuples have been found for the current change. - */ - HTAB *toast_hash; - - /* - * non-hierarchical list of subtransactions that are *not* aborted. Only - * used in toplevel transactions. - */ - dlist_head subtxns; - uint32 nsubtxns; - - /* - * Stored cache invalidations. This is not a linked list because we get - * all the invalidations at once. - */ - uint32 ninvalidations; - SharedInvalidationMessage *invalidations; - - /* --- - * Position in one of three lists: - * * list of subtransactions if we are *known* to be subxact - * * list of toplevel xacts (can be an as-yet unknown subxact) - * * list of preallocated ReorderBufferTXNs (if unused) - * --- - */ - dlist_node node; - - /* - * Size of this transaction (changes currently in memory, in bytes). - */ - Size size; - - /* Size of top-transaction including sub-transactions. */ - Size total_size; - - /* If we have detected concurrent abort then ignore future changes. */ - bool concurrent_abort; - - /* - * Private data pointer of the output plugin. - */ - void *output_plugin_private; -} ReorderBufferTXN; - -/* so we can define the callbacks used inside struct ReorderBuffer itself */ -typedef struct ReorderBuffer ReorderBuffer; - -/* change callback signature */ -typedef void (*ReorderBufferApplyChangeCB) (ReorderBuffer *rb, - ReorderBufferTXN *txn, - Relation relation, - ReorderBufferChange *change); - -/* truncate callback signature */ -typedef void (*ReorderBufferApplyTruncateCB) (ReorderBuffer *rb, - ReorderBufferTXN *txn, - int nrelations, - Relation relations[], - ReorderBufferChange *change); - -/* begin callback signature */ -typedef void (*ReorderBufferBeginCB) (ReorderBuffer *rb, - ReorderBufferTXN *txn); - -/* commit callback signature */ -typedef void (*ReorderBufferCommitCB) (ReorderBuffer *rb, - ReorderBufferTXN *txn, - XLogRecPtr commit_lsn); - -/* message callback signature */ -typedef void (*ReorderBufferMessageCB) (ReorderBuffer *rb, - ReorderBufferTXN *txn, - XLogRecPtr message_lsn, - bool transactional, - const char *prefix, Size sz, - const char *message); - -/* begin prepare callback signature */ -typedef void (*ReorderBufferBeginPrepareCB) (ReorderBuffer *rb, - ReorderBufferTXN *txn); - -/* prepare callback signature */ -typedef void (*ReorderBufferPrepareCB) (ReorderBuffer *rb, - ReorderBufferTXN *txn, - XLogRecPtr prepare_lsn); - -/* commit prepared callback signature */ -typedef void (*ReorderBufferCommitPreparedCB) (ReorderBuffer *rb, - ReorderBufferTXN *txn, - XLogRecPtr commit_lsn); - -/* rollback prepared callback signature */ -typedef void (*ReorderBufferRollbackPreparedCB) (ReorderBuffer *rb, - ReorderBufferTXN *txn, - XLogRecPtr prepare_end_lsn, - TimestampTz prepare_time); - -/* start streaming transaction callback signature */ -typedef void (*ReorderBufferStreamStartCB) ( - ReorderBuffer *rb, - ReorderBufferTXN *txn, - XLogRecPtr first_lsn); - -/* stop streaming transaction callback signature */ -typedef void (*ReorderBufferStreamStopCB) ( - ReorderBuffer *rb, - ReorderBufferTXN *txn, - XLogRecPtr last_lsn); - -/* discard streamed transaction callback signature */ -typedef void (*ReorderBufferStreamAbortCB) ( - ReorderBuffer *rb, - ReorderBufferTXN *txn, - XLogRecPtr abort_lsn); - -/* prepare streamed transaction callback signature */ -typedef void (*ReorderBufferStreamPrepareCB) ( - ReorderBuffer *rb, - ReorderBufferTXN *txn, - XLogRecPtr prepare_lsn); - -/* commit streamed transaction callback signature */ -typedef void (*ReorderBufferStreamCommitCB) ( - ReorderBuffer *rb, - ReorderBufferTXN *txn, - XLogRecPtr commit_lsn); - -/* stream change callback signature */ -typedef void (*ReorderBufferStreamChangeCB) ( - ReorderBuffer *rb, - ReorderBufferTXN *txn, - Relation relation, - ReorderBufferChange *change); - -/* stream message callback signature */ -typedef void (*ReorderBufferStreamMessageCB) ( - ReorderBuffer *rb, - ReorderBufferTXN *txn, - XLogRecPtr message_lsn, - bool transactional, - const char *prefix, Size sz, - const char *message); - -/* stream truncate callback signature */ -typedef void (*ReorderBufferStreamTruncateCB) ( - ReorderBuffer *rb, - ReorderBufferTXN *txn, - int nrelations, - Relation relations[], - ReorderBufferChange *change); - -struct ReorderBuffer -{ - /* - * xid => ReorderBufferTXN lookup table - */ - HTAB *by_txn; - - /* - * Transactions that could be a toplevel xact, ordered by LSN of the first - * record bearing that xid. - */ - dlist_head toplevel_by_lsn; - - /* - * Transactions and subtransactions that have a base snapshot, ordered by - * LSN of the record which caused us to first obtain the base snapshot. - * This is not the same as toplevel_by_lsn, because we only set the base - * snapshot on the first logical-decoding-relevant record (eg. heap - * writes), whereas the initial LSN could be set by other operations. - */ - dlist_head txns_by_base_snapshot_lsn; - - /* - * one-entry sized cache for by_txn. Very frequently the same txn gets - * looked up over and over again. - */ - TransactionId by_txn_last_xid; - ReorderBufferTXN *by_txn_last_txn; - - /* - * Callbacks to be called when a transactions commits. - */ - ReorderBufferBeginCB begin; - ReorderBufferApplyChangeCB apply_change; - ReorderBufferApplyTruncateCB apply_truncate; - ReorderBufferCommitCB commit; - ReorderBufferMessageCB message; - - /* - * Callbacks to be called when streaming a transaction at prepare time. - */ - ReorderBufferBeginCB begin_prepare; - ReorderBufferPrepareCB prepare; - ReorderBufferCommitPreparedCB commit_prepared; - ReorderBufferRollbackPreparedCB rollback_prepared; - - /* - * Callbacks to be called when streaming a transaction. - */ - ReorderBufferStreamStartCB stream_start; - ReorderBufferStreamStopCB stream_stop; - ReorderBufferStreamAbortCB stream_abort; - ReorderBufferStreamPrepareCB stream_prepare; - ReorderBufferStreamCommitCB stream_commit; - ReorderBufferStreamChangeCB stream_change; - ReorderBufferStreamMessageCB stream_message; - ReorderBufferStreamTruncateCB stream_truncate; - - /* - * Pointer that will be passed untouched to the callbacks. - */ - void *private_data; - - /* - * Saved output plugin option - */ - bool output_rewrites; - - /* - * Private memory context. - */ - MemoryContext context; - - /* - * Memory contexts for specific types objects - */ - MemoryContext change_context; - MemoryContext txn_context; - MemoryContext tup_context; - - XLogRecPtr current_restart_decoding_lsn; - - /* buffer for disk<->memory conversions */ - char *outbuf; - Size outbufsize; - - /* memory accounting */ - Size size; - - /* - * Statistics about transactions spilled to disk. - * - * A single transaction may be spilled repeatedly, which is why we keep - * two different counters. For spilling, the transaction counter includes - * both toplevel transactions and subtransactions. - */ - int64 spillTxns; /* number of transactions spilled to disk */ - int64 spillCount; /* spill-to-disk invocation counter */ - int64 spillBytes; /* amount of data spilled to disk */ - - /* Statistics about transactions streamed to the decoding output plugin */ - int64 streamTxns; /* number of transactions streamed */ - int64 streamCount; /* streaming invocation counter */ - int64 streamBytes; /* amount of data decoded */ - - /* - * Statistics about all the transactions sent to the decoding output - * plugin - */ - int64 totalTxns; /* total number of transactions sent */ - int64 totalBytes; /* total amount of data decoded */ -}; - - -extern ReorderBuffer *ReorderBufferAllocate(void); -extern void ReorderBufferFree(ReorderBuffer *); - -extern ReorderBufferTupleBuf *ReorderBufferGetTupleBuf(ReorderBuffer *, Size tuple_len); -extern void ReorderBufferReturnTupleBuf(ReorderBuffer *, ReorderBufferTupleBuf *tuple); -extern ReorderBufferChange *ReorderBufferGetChange(ReorderBuffer *); -extern void ReorderBufferReturnChange(ReorderBuffer *, ReorderBufferChange *, bool); - -extern Oid *ReorderBufferGetRelids(ReorderBuffer *, int nrelids); -extern void ReorderBufferReturnRelids(ReorderBuffer *, Oid *relids); - -extern void ReorderBufferQueueChange(ReorderBuffer *, TransactionId, - XLogRecPtr lsn, ReorderBufferChange *, - bool toast_insert); -extern void ReorderBufferQueueMessage(ReorderBuffer *, TransactionId, Snapshot snapshot, XLogRecPtr lsn, - bool transactional, const char *prefix, - Size message_size, const char *message); -extern void ReorderBufferCommit(ReorderBuffer *, TransactionId, - XLogRecPtr commit_lsn, XLogRecPtr end_lsn, - TimestampTz commit_time, RepOriginId origin_id, XLogRecPtr origin_lsn); -extern void ReorderBufferFinishPrepared(ReorderBuffer *rb, TransactionId xid, - XLogRecPtr commit_lsn, XLogRecPtr end_lsn, - XLogRecPtr two_phase_at, - TimestampTz commit_time, - RepOriginId origin_id, XLogRecPtr origin_lsn, - char *gid, bool is_commit); -extern void ReorderBufferAssignChild(ReorderBuffer *, TransactionId, TransactionId, XLogRecPtr commit_lsn); -extern void ReorderBufferCommitChild(ReorderBuffer *, TransactionId, TransactionId, - XLogRecPtr commit_lsn, XLogRecPtr end_lsn); -extern void ReorderBufferAbort(ReorderBuffer *, TransactionId, XLogRecPtr lsn); -extern void ReorderBufferAbortOld(ReorderBuffer *, TransactionId xid); -extern void ReorderBufferForget(ReorderBuffer *, TransactionId, XLogRecPtr lsn); -extern void ReorderBufferInvalidate(ReorderBuffer *, TransactionId, XLogRecPtr lsn); - -extern void ReorderBufferSetBaseSnapshot(ReorderBuffer *, TransactionId, XLogRecPtr lsn, struct SnapshotData *snap); -extern void ReorderBufferAddSnapshot(ReorderBuffer *, TransactionId, XLogRecPtr lsn, struct SnapshotData *snap); -extern void ReorderBufferAddNewCommandId(ReorderBuffer *, TransactionId, XLogRecPtr lsn, - CommandId cid); -extern void ReorderBufferAddNewTupleCids(ReorderBuffer *, TransactionId, XLogRecPtr lsn, - RelFileNode node, ItemPointerData pt, - CommandId cmin, CommandId cmax, CommandId combocid); -extern void ReorderBufferAddInvalidations(ReorderBuffer *, TransactionId, XLogRecPtr lsn, - Size nmsgs, SharedInvalidationMessage *msgs); -extern void ReorderBufferImmediateInvalidation(ReorderBuffer *, uint32 ninvalidations, - SharedInvalidationMessage *invalidations); -extern void ReorderBufferProcessXid(ReorderBuffer *, TransactionId xid, XLogRecPtr lsn); - -extern void ReorderBufferXidSetCatalogChanges(ReorderBuffer *, TransactionId xid, XLogRecPtr lsn); -extern bool ReorderBufferXidHasCatalogChanges(ReorderBuffer *, TransactionId xid); -extern bool ReorderBufferXidHasBaseSnapshot(ReorderBuffer *, TransactionId xid); - -extern bool ReorderBufferRememberPrepareInfo(ReorderBuffer *rb, TransactionId xid, - XLogRecPtr prepare_lsn, XLogRecPtr end_lsn, - TimestampTz prepare_time, - RepOriginId origin_id, XLogRecPtr origin_lsn); -extern void ReorderBufferSkipPrepare(ReorderBuffer *rb, TransactionId xid); -extern void ReorderBufferPrepare(ReorderBuffer *rb, TransactionId xid, char *gid); -extern ReorderBufferTXN *ReorderBufferGetOldestTXN(ReorderBuffer *); -extern TransactionId ReorderBufferGetOldestXmin(ReorderBuffer *rb); - -extern void ReorderBufferSetRestartPoint(ReorderBuffer *, XLogRecPtr ptr); - -extern void StartupReorderBuffer(void); - -#endif diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/slot.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/slot.h deleted file mode 100644 index deba2c4e4..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/slot.h +++ /dev/null @@ -1,230 +0,0 @@ -/*------------------------------------------------------------------------- - * slot.h - * Replication slot management. - * - * Copyright (c) 2012-2022, PostgreSQL Global Development Group - * - *------------------------------------------------------------------------- - */ -#ifndef SLOT_H -#define SLOT_H - -#include "access/xlog.h" -#include "access/xlogreader.h" -#include "storage/condition_variable.h" -#include "storage/lwlock.h" -#include "storage/shmem.h" -#include "storage/spin.h" -#include "replication/walreceiver.h" - -/* - * Behaviour of replication slots, upon release or crash. - * - * Slots marked as PERSISTENT are crash-safe and will not be dropped when - * released. Slots marked as EPHEMERAL will be dropped when released or after - * restarts. Slots marked TEMPORARY will be dropped at the end of a session - * or on error. - * - * EPHEMERAL is used as a not-quite-ready state when creating persistent - * slots. EPHEMERAL slots can be made PERSISTENT by calling - * ReplicationSlotPersist(). For a slot that goes away at the end of a - * session, TEMPORARY is the appropriate choice. - */ -typedef enum ReplicationSlotPersistency -{ - RS_PERSISTENT, - RS_EPHEMERAL, - RS_TEMPORARY -} ReplicationSlotPersistency; - -/* - * On-Disk data of a replication slot, preserved across restarts. - */ -typedef struct ReplicationSlotPersistentData -{ - /* The slot's identifier */ - NameData name; - - /* database the slot is active on */ - Oid database; - - /* - * The slot's behaviour when being dropped (or restored after a crash). - */ - ReplicationSlotPersistency persistency; - - /* - * xmin horizon for data - * - * NB: This may represent a value that hasn't been written to disk yet; - * see notes for effective_xmin, below. - */ - TransactionId xmin; - - /* - * xmin horizon for catalog tuples - * - * NB: This may represent a value that hasn't been written to disk yet; - * see notes for effective_xmin, below. - */ - TransactionId catalog_xmin; - - /* oldest LSN that might be required by this replication slot */ - XLogRecPtr restart_lsn; - - /* restart_lsn is copied here when the slot is invalidated */ - XLogRecPtr invalidated_at; - - /* - * Oldest LSN that the client has acked receipt for. This is used as the - * start_lsn point in case the client doesn't specify one, and also as a - * safety measure to jump forwards in case the client specifies a - * start_lsn that's further in the past than this value. - */ - XLogRecPtr confirmed_flush; - - /* - * LSN at which we enabled two_phase commit for this slot or LSN at which - * we found a consistent point at the time of slot creation. - */ - XLogRecPtr two_phase_at; - - /* - * Allow decoding of prepared transactions? - */ - bool two_phase; - - /* plugin name */ - NameData plugin; -} ReplicationSlotPersistentData; - -/* - * Shared memory state of a single replication slot. - * - * The in-memory data of replication slots follows a locking model based - * on two linked concepts: - * - A replication slot's in_use flag is switched when added or discarded using - * the LWLock ReplicationSlotControlLock, which needs to be hold in exclusive - * mode when updating the flag by the backend owning the slot and doing the - * operation, while readers (concurrent backends not owning the slot) need - * to hold it in shared mode when looking at replication slot data. - * - Individual fields are protected by mutex where only the backend owning - * the slot is authorized to update the fields from its own slot. The - * backend owning the slot does not need to take this lock when reading its - * own fields, while concurrent backends not owning this slot should take the - * lock when reading this slot's data. - */ -typedef struct ReplicationSlot -{ - /* lock, on same cacheline as effective_xmin */ - slock_t mutex; - - /* is this slot defined */ - bool in_use; - - /* Who is streaming out changes for this slot? 0 in unused slots. */ - pid_t active_pid; - - /* any outstanding modifications? */ - bool just_dirtied; - bool dirty; - - /* - * For logical decoding, it's extremely important that we never remove any - * data that's still needed for decoding purposes, even after a crash; - * otherwise, decoding will produce wrong answers. Ordinary streaming - * replication also needs to prevent old row versions from being removed - * too soon, but the worst consequence we might encounter there is - * unwanted query cancellations on the standby. Thus, for logical - * decoding, this value represents the latest xmin that has actually been - * written to disk, whereas for streaming replication, it's just the same - * as the persistent value (data.xmin). - */ - TransactionId effective_xmin; - TransactionId effective_catalog_xmin; - - /* data surviving shutdowns and crashes */ - ReplicationSlotPersistentData data; - - /* is somebody performing io on this slot? */ - LWLock io_in_progress_lock; - - /* Condition variable signaled when active_pid changes */ - ConditionVariable active_cv; - - /* all the remaining data is only used for logical slots */ - - /* - * When the client has confirmed flushes >= candidate_xmin_lsn we can - * advance the catalog xmin. When restart_valid has been passed, - * restart_lsn can be increased. - */ - TransactionId candidate_catalog_xmin; - XLogRecPtr candidate_xmin_lsn; - XLogRecPtr candidate_restart_valid; - XLogRecPtr candidate_restart_lsn; -} ReplicationSlot; - -#define SlotIsPhysical(slot) ((slot)->data.database == InvalidOid) -#define SlotIsLogical(slot) ((slot)->data.database != InvalidOid) - -/* - * Shared memory control area for all of replication slots. - */ -typedef struct ReplicationSlotCtlData -{ - /* - * This array should be declared [FLEXIBLE_ARRAY_MEMBER], but for some - * reason you can't do that in an otherwise-empty struct. - */ - ReplicationSlot replication_slots[1]; -} ReplicationSlotCtlData; - -/* - * Pointers to shared memory - */ -extern PGDLLIMPORT ReplicationSlotCtlData *ReplicationSlotCtl; -extern PGDLLIMPORT ReplicationSlot *MyReplicationSlot; - -/* GUCs */ -extern PGDLLIMPORT int max_replication_slots; - -/* shmem initialization functions */ -extern Size ReplicationSlotsShmemSize(void); -extern void ReplicationSlotsShmemInit(void); - -/* management of individual slots */ -extern void ReplicationSlotCreate(const char *name, bool db_specific, - ReplicationSlotPersistency p, bool two_phase); -extern void ReplicationSlotPersist(void); -extern void ReplicationSlotDrop(const char *name, bool nowait); - -extern void ReplicationSlotAcquire(const char *name, bool nowait); -extern void ReplicationSlotRelease(void); -extern void ReplicationSlotCleanup(void); -extern void ReplicationSlotSave(void); -extern void ReplicationSlotMarkDirty(void); - -/* misc stuff */ -extern void ReplicationSlotInitialize(void); -extern bool ReplicationSlotValidateName(const char *name, int elevel); -extern void ReplicationSlotReserveWal(void); -extern void ReplicationSlotsComputeRequiredXmin(bool already_locked); -extern void ReplicationSlotsComputeRequiredLSN(void); -extern XLogRecPtr ReplicationSlotsComputeLogicalRestartLSN(void); -extern bool ReplicationSlotsCountDBSlots(Oid dboid, int *nslots, int *nactive); -extern void ReplicationSlotsDropDBSlots(Oid dboid); -extern bool InvalidateObsoleteReplicationSlots(XLogSegNo oldestSegno); -extern ReplicationSlot *SearchNamedReplicationSlot(const char *name, bool need_lock); -extern int ReplicationSlotIndex(ReplicationSlot *slot); -extern bool ReplicationSlotName(int index, Name name); -extern void ReplicationSlotNameForTablesync(Oid suboid, Oid relid, char *syncslotname, int szslot); -extern void ReplicationSlotDropAtPubNode(WalReceiverConn *wrconn, char *slotname, bool missing_ok); - -extern void StartupReplicationSlots(void); -extern void CheckPointReplicationSlots(void); - -extern void CheckSlotRequirements(void); -extern void CheckSlotPermissions(void); - -#endif /* SLOT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/syncrep.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/syncrep.h deleted file mode 100644 index 4d7c90b9f..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/syncrep.h +++ /dev/null @@ -1,115 +0,0 @@ -/*------------------------------------------------------------------------- - * - * syncrep.h - * Exports from replication/syncrep.c. - * - * Portions Copyright (c) 2010-2022, PostgreSQL Global Development Group - * - * IDENTIFICATION - * src/include/replication/syncrep.h - * - *------------------------------------------------------------------------- - */ -#ifndef _SYNCREP_H -#define _SYNCREP_H - -#include "access/xlogdefs.h" -#include "utils/guc.h" - -#define SyncRepRequested() \ - (max_wal_senders > 0 && synchronous_commit > SYNCHRONOUS_COMMIT_LOCAL_FLUSH) - -/* SyncRepWaitMode */ -#define SYNC_REP_NO_WAIT (-1) -#define SYNC_REP_WAIT_WRITE 0 -#define SYNC_REP_WAIT_FLUSH 1 -#define SYNC_REP_WAIT_APPLY 2 - -#define NUM_SYNC_REP_WAIT_MODE 3 - -/* syncRepState */ -#define SYNC_REP_NOT_WAITING 0 -#define SYNC_REP_WAITING 1 -#define SYNC_REP_WAIT_COMPLETE 2 - -/* syncrep_method of SyncRepConfigData */ -#define SYNC_REP_PRIORITY 0 -#define SYNC_REP_QUORUM 1 - -/* - * SyncRepGetCandidateStandbys returns an array of these structs, - * one per candidate synchronous walsender. - */ -typedef struct SyncRepStandbyData -{ - /* Copies of relevant fields from WalSnd shared-memory struct */ - pid_t pid; - XLogRecPtr write; - XLogRecPtr flush; - XLogRecPtr apply; - int sync_standby_priority; - /* Index of this walsender in the WalSnd shared-memory array */ - int walsnd_index; - /* This flag indicates whether this struct is about our own process */ - bool is_me; -} SyncRepStandbyData; - -/* - * Struct for the configuration of synchronous replication. - * - * Note: this must be a flat representation that can be held in a single - * chunk of malloc'd memory, so that it can be stored as the "extra" data - * for the synchronous_standby_names GUC. - */ -typedef struct SyncRepConfigData -{ - int config_size; /* total size of this struct, in bytes */ - int num_sync; /* number of sync standbys that we need to - * wait for */ - uint8 syncrep_method; /* method to choose sync standbys */ - int nmembers; /* number of members in the following list */ - /* member_names contains nmembers consecutive nul-terminated C strings */ - char member_names[FLEXIBLE_ARRAY_MEMBER]; -} SyncRepConfigData; - -extern PGDLLIMPORT SyncRepConfigData *SyncRepConfig; - -/* communication variables for parsing synchronous_standby_names GUC */ -extern PGDLLIMPORT SyncRepConfigData *syncrep_parse_result; -extern PGDLLIMPORT char *syncrep_parse_error_msg; - -/* user-settable parameters for synchronous replication */ -extern PGDLLIMPORT char *SyncRepStandbyNames; - -/* called by user backend */ -extern void SyncRepWaitForLSN(XLogRecPtr lsn, bool commit); - -/* called at backend exit */ -extern void SyncRepCleanupAtProcExit(void); - -/* called by wal sender */ -extern void SyncRepInitConfig(void); -extern void SyncRepReleaseWaiters(void); - -/* called by wal sender and user backend */ -extern int SyncRepGetCandidateStandbys(SyncRepStandbyData **standbys); - -/* called by checkpointer */ -extern void SyncRepUpdateSyncStandbysDefined(void); - -/* GUC infrastructure */ -extern bool check_synchronous_standby_names(char **newval, void **extra, GucSource source); -extern void assign_synchronous_standby_names(const char *newval, void *extra); -extern void assign_synchronous_commit(int newval, void *extra); - -/* - * Internal functions for parsing synchronous_standby_names grammar, - * in syncrep_gram.y and syncrep_scanner.l - */ -extern int syncrep_yyparse(void); -extern int syncrep_yylex(void); -extern void syncrep_yyerror(const char *str); -extern void syncrep_scanner_init(const char *query_string); -extern void syncrep_scanner_finish(void); - -#endif /* _SYNCREP_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/walreceiver.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/walreceiver.h deleted file mode 100644 index 81184aa92..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/walreceiver.h +++ /dev/null @@ -1,472 +0,0 @@ -/*------------------------------------------------------------------------- - * - * walreceiver.h - * Exports from replication/walreceiverfuncs.c. - * - * Portions Copyright (c) 2010-2022, PostgreSQL Global Development Group - * - * src/include/replication/walreceiver.h - * - *------------------------------------------------------------------------- - */ -#ifndef _WALRECEIVER_H -#define _WALRECEIVER_H - -#include "access/xlog.h" -#include "access/xlogdefs.h" -#include "getaddrinfo.h" /* for NI_MAXHOST */ -#include "pgtime.h" -#include "port/atomics.h" -#include "replication/logicalproto.h" -#include "replication/walsender.h" -#include "storage/condition_variable.h" -#include "storage/latch.h" -#include "storage/spin.h" -#include "utils/tuplestore.h" - -/* user-settable parameters */ -extern PGDLLIMPORT int wal_receiver_status_interval; -extern PGDLLIMPORT int wal_receiver_timeout; -extern PGDLLIMPORT bool hot_standby_feedback; - -/* - * MAXCONNINFO: maximum size of a connection string. - * - * XXX: Should this move to pg_config_manual.h? - */ -#define MAXCONNINFO 1024 - -/* Can we allow the standby to accept replication connection from another standby? */ -#define AllowCascadeReplication() (EnableHotStandby && max_wal_senders > 0) - -/* - * Values for WalRcv->walRcvState. - */ -typedef enum -{ - WALRCV_STOPPED, /* stopped and mustn't start up again */ - WALRCV_STARTING, /* launched, but the process hasn't - * initialized yet */ - WALRCV_STREAMING, /* walreceiver is streaming */ - WALRCV_WAITING, /* stopped streaming, waiting for orders */ - WALRCV_RESTARTING, /* asked to restart streaming */ - WALRCV_STOPPING /* requested to stop, but still running */ -} WalRcvState; - -/* Shared memory area for management of walreceiver process */ -typedef struct -{ - /* - * PID of currently active walreceiver process, its current state and - * start time (actually, the time at which it was requested to be - * started). - */ - pid_t pid; - WalRcvState walRcvState; - ConditionVariable walRcvStoppedCV; - pg_time_t startTime; - - /* - * receiveStart and receiveStartTLI indicate the first byte position and - * timeline that will be received. When startup process starts the - * walreceiver, it sets these to the point where it wants the streaming to - * begin. - */ - XLogRecPtr receiveStart; - TimeLineID receiveStartTLI; - - /* - * flushedUpto-1 is the last byte position that has already been received, - * and receivedTLI is the timeline it came from. At the first startup of - * walreceiver, these are set to receiveStart and receiveStartTLI. After - * that, walreceiver updates these whenever it flushes the received WAL to - * disk. - */ - XLogRecPtr flushedUpto; - TimeLineID receivedTLI; - - /* - * latestChunkStart is the starting byte position of the current "batch" - * of received WAL. It's actually the same as the previous value of - * flushedUpto before the last flush to disk. Startup process can use - * this to detect whether it's keeping up or not. - */ - XLogRecPtr latestChunkStart; - - /* - * Time of send and receive of any message received. - */ - TimestampTz lastMsgSendTime; - TimestampTz lastMsgReceiptTime; - - /* - * Latest reported end of WAL on the sender - */ - XLogRecPtr latestWalEnd; - TimestampTz latestWalEndTime; - - /* - * connection string; initially set to connect to the primary, and later - * clobbered to hide security-sensitive fields. - */ - char conninfo[MAXCONNINFO]; - - /* - * Host name (this can be a host name, an IP address, or a directory path) - * and port number of the active replication connection. - */ - char sender_host[NI_MAXHOST]; - int sender_port; - - /* - * replication slot name; is also used for walreceiver to connect with the - * primary - */ - char slotname[NAMEDATALEN]; - - /* - * If it's a temporary replication slot, it needs to be recreated when - * connecting. - */ - bool is_temp_slot; - - /* set true once conninfo is ready to display (obfuscated pwds etc) */ - bool ready_to_display; - - /* - * Latch used by startup process to wake up walreceiver after telling it - * where to start streaming (after setting receiveStart and - * receiveStartTLI), and also to tell it to send apply feedback to the - * primary whenever specially marked commit records are applied. This is - * normally mapped to procLatch when walreceiver is running. - */ - Latch *latch; - - slock_t mutex; /* locks shared variables shown above */ - - /* - * Like flushedUpto, but advanced after writing and before flushing, - * without the need to acquire the spin lock. Data can be read by another - * process up to this point, but shouldn't be used for data integrity - * purposes. - */ - pg_atomic_uint64 writtenUpto; - - /* - * force walreceiver reply? This doesn't need to be locked; memory - * barriers for ordering are sufficient. But we do need atomic fetch and - * store semantics, so use sig_atomic_t. - */ - sig_atomic_t force_reply; /* used as a bool */ -} WalRcvData; - -extern PGDLLIMPORT WalRcvData *WalRcv; - -typedef struct -{ - bool logical; /* True if this is logical replication stream, - * false if physical stream. */ - char *slotname; /* Name of the replication slot or NULL. */ - XLogRecPtr startpoint; /* LSN of starting point. */ - - union - { - struct - { - TimeLineID startpointTLI; /* Starting timeline */ - } physical; - struct - { - uint32 proto_version; /* Logical protocol version */ - List *publication_names; /* String list of publications */ - bool binary; /* Ask publisher to use binary */ - bool streaming; /* Streaming of large transactions */ - bool twophase; /* Streaming of two-phase transactions at - * prepare time */ - } logical; - } proto; -} WalRcvStreamOptions; - -struct WalReceiverConn; -typedef struct WalReceiverConn WalReceiverConn; - -/* - * Status of walreceiver query execution. - * - * We only define statuses that are currently used. - */ -typedef enum -{ - WALRCV_ERROR, /* There was error when executing the query. */ - WALRCV_OK_COMMAND, /* Query executed utility or replication - * command. */ - WALRCV_OK_TUPLES, /* Query returned tuples. */ - WALRCV_OK_COPY_IN, /* Query started COPY FROM. */ - WALRCV_OK_COPY_OUT, /* Query started COPY TO. */ - WALRCV_OK_COPY_BOTH /* Query started COPY BOTH replication - * protocol. */ -} WalRcvExecStatus; - -/* - * Return value for walrcv_exec, returns the status of the execution and - * tuples if any. - */ -typedef struct WalRcvExecResult -{ - WalRcvExecStatus status; - int sqlstate; - char *err; - Tuplestorestate *tuplestore; - TupleDesc tupledesc; -} WalRcvExecResult; - -/* WAL receiver - libpqwalreceiver hooks */ - -/* - * walrcv_connect_fn - * - * Establish connection to a cluster. 'logical' is true if the - * connection is logical, and false if the connection is physical. - * 'appname' is a name associated to the connection, to use for example - * with fallback_application_name or application_name. Returns the - * details about the connection established, as defined by - * WalReceiverConn for each WAL receiver module. On error, NULL is - * returned with 'err' including the error generated. - */ -typedef WalReceiverConn *(*walrcv_connect_fn) (const char *conninfo, - bool logical, - const char *appname, - char **err); - -/* - * walrcv_check_conninfo_fn - * - * Parse and validate the connection string given as of 'conninfo'. - */ -typedef void (*walrcv_check_conninfo_fn) (const char *conninfo); - -/* - * walrcv_get_conninfo_fn - * - * Returns a user-displayable conninfo string. Note that any - * security-sensitive fields should be obfuscated. - */ -typedef char *(*walrcv_get_conninfo_fn) (WalReceiverConn *conn); - -/* - * walrcv_get_senderinfo_fn - * - * Provide information of the WAL sender this WAL receiver is connected - * to, as of 'sender_host' for the host of the sender and 'sender_port' - * for its port. - */ -typedef void (*walrcv_get_senderinfo_fn) (WalReceiverConn *conn, - char **sender_host, - int *sender_port); - -/* - * walrcv_identify_system_fn - * - * Run IDENTIFY_SYSTEM on the cluster connected to and validate the - * identity of the cluster. Returns the system ID of the cluster - * connected to. 'primary_tli' is the timeline ID of the sender. - */ -typedef char *(*walrcv_identify_system_fn) (WalReceiverConn *conn, - TimeLineID *primary_tli); - -/* - * walrcv_server_version_fn - * - * Returns the version number of the cluster connected to. - */ -typedef int (*walrcv_server_version_fn) (WalReceiverConn *conn); - -/* - * walrcv_readtimelinehistoryfile_fn - * - * Fetch from cluster the timeline history file for timeline 'tli'. - * Returns the name of the timeline history file as of 'filename', its - * contents as of 'content' and its 'size'. - */ -typedef void (*walrcv_readtimelinehistoryfile_fn) (WalReceiverConn *conn, - TimeLineID tli, - char **filename, - char **content, - int *size); - -/* - * walrcv_startstreaming_fn - * - * Start streaming WAL data from given streaming options. Returns true - * if the connection has switched successfully to copy-both mode and false - * if the server received the command and executed it successfully, but - * didn't switch to copy-mode. - */ -typedef bool (*walrcv_startstreaming_fn) (WalReceiverConn *conn, - const WalRcvStreamOptions *options); - -/* - * walrcv_endstreaming_fn - * - * Stop streaming of WAL data. Returns the next timeline ID of the cluster - * connected to in 'next_tli', or 0 if there was no report. - */ -typedef void (*walrcv_endstreaming_fn) (WalReceiverConn *conn, - TimeLineID *next_tli); - -/* - * walrcv_receive_fn - * - * Receive a message available from the WAL stream. 'buffer' is a pointer - * to a buffer holding the message received. Returns the length of the data, - * 0 if no data is available yet ('wait_fd' is a socket descriptor which can - * be waited on before a retry), and -1 if the cluster ended the COPY. - */ -typedef int (*walrcv_receive_fn) (WalReceiverConn *conn, - char **buffer, - pgsocket *wait_fd); - -/* - * walrcv_send_fn - * - * Send a message of size 'nbytes' to the WAL stream with 'buffer' as - * contents. - */ -typedef void (*walrcv_send_fn) (WalReceiverConn *conn, - const char *buffer, - int nbytes); - -/* - * walrcv_create_slot_fn - * - * Create a new replication slot named 'slotname'. 'temporary' defines - * if the slot is temporary. 'snapshot_action' defines the behavior wanted - * for an exported snapshot (see replication protocol for more details). - * 'lsn' includes the LSN position at which the created slot became - * consistent. Returns the name of the exported snapshot for a logical - * slot, or NULL for a physical slot. - */ -typedef char *(*walrcv_create_slot_fn) (WalReceiverConn *conn, - const char *slotname, - bool temporary, - bool two_phase, - CRSSnapshotAction snapshot_action, - XLogRecPtr *lsn); - -/* - * walrcv_get_backend_pid_fn - * - * Returns the PID of the remote backend process. - */ -typedef pid_t (*walrcv_get_backend_pid_fn) (WalReceiverConn *conn); - -/* - * walrcv_exec_fn - * - * Send generic queries (and commands) to the remote cluster. 'nRetTypes' - * is the expected number of returned attributes, and 'retTypes' an array - * including their type OIDs. Returns the status of the execution and - * tuples if any. - */ -typedef WalRcvExecResult *(*walrcv_exec_fn) (WalReceiverConn *conn, - const char *query, - const int nRetTypes, - const Oid *retTypes); - -/* - * walrcv_disconnect_fn - * - * Disconnect with the cluster. - */ -typedef void (*walrcv_disconnect_fn) (WalReceiverConn *conn); - -typedef struct WalReceiverFunctionsType -{ - walrcv_connect_fn walrcv_connect; - walrcv_check_conninfo_fn walrcv_check_conninfo; - walrcv_get_conninfo_fn walrcv_get_conninfo; - walrcv_get_senderinfo_fn walrcv_get_senderinfo; - walrcv_identify_system_fn walrcv_identify_system; - walrcv_server_version_fn walrcv_server_version; - walrcv_readtimelinehistoryfile_fn walrcv_readtimelinehistoryfile; - walrcv_startstreaming_fn walrcv_startstreaming; - walrcv_endstreaming_fn walrcv_endstreaming; - walrcv_receive_fn walrcv_receive; - walrcv_send_fn walrcv_send; - walrcv_create_slot_fn walrcv_create_slot; - walrcv_get_backend_pid_fn walrcv_get_backend_pid; - walrcv_exec_fn walrcv_exec; - walrcv_disconnect_fn walrcv_disconnect; -} WalReceiverFunctionsType; - -extern PGDLLIMPORT WalReceiverFunctionsType *WalReceiverFunctions; - -#define walrcv_connect(conninfo, logical, appname, err) \ - WalReceiverFunctions->walrcv_connect(conninfo, logical, appname, err) -#define walrcv_check_conninfo(conninfo) \ - WalReceiverFunctions->walrcv_check_conninfo(conninfo) -#define walrcv_get_conninfo(conn) \ - WalReceiverFunctions->walrcv_get_conninfo(conn) -#define walrcv_get_senderinfo(conn, sender_host, sender_port) \ - WalReceiverFunctions->walrcv_get_senderinfo(conn, sender_host, sender_port) -#define walrcv_identify_system(conn, primary_tli) \ - WalReceiverFunctions->walrcv_identify_system(conn, primary_tli) -#define walrcv_server_version(conn) \ - WalReceiverFunctions->walrcv_server_version(conn) -#define walrcv_readtimelinehistoryfile(conn, tli, filename, content, size) \ - WalReceiverFunctions->walrcv_readtimelinehistoryfile(conn, tli, filename, content, size) -#define walrcv_startstreaming(conn, options) \ - WalReceiverFunctions->walrcv_startstreaming(conn, options) -#define walrcv_endstreaming(conn, next_tli) \ - WalReceiverFunctions->walrcv_endstreaming(conn, next_tli) -#define walrcv_receive(conn, buffer, wait_fd) \ - WalReceiverFunctions->walrcv_receive(conn, buffer, wait_fd) -#define walrcv_send(conn, buffer, nbytes) \ - WalReceiverFunctions->walrcv_send(conn, buffer, nbytes) -#define walrcv_create_slot(conn, slotname, temporary, two_phase, snapshot_action, lsn) \ - WalReceiverFunctions->walrcv_create_slot(conn, slotname, temporary, two_phase, snapshot_action, lsn) -#define walrcv_get_backend_pid(conn) \ - WalReceiverFunctions->walrcv_get_backend_pid(conn) -#define walrcv_exec(conn, exec, nRetTypes, retTypes) \ - WalReceiverFunctions->walrcv_exec(conn, exec, nRetTypes, retTypes) -#define walrcv_disconnect(conn) \ - WalReceiverFunctions->walrcv_disconnect(conn) - -static inline void -walrcv_clear_result(WalRcvExecResult *walres) -{ - if (!walres) - return; - - if (walres->err) - pfree(walres->err); - - if (walres->tuplestore) - tuplestore_end(walres->tuplestore); - - if (walres->tupledesc) - FreeTupleDesc(walres->tupledesc); - - pfree(walres); -} - -/* prototypes for functions in walreceiver.c */ -extern void WalReceiverMain(void) pg_attribute_noreturn(); -extern void ProcessWalRcvInterrupts(void); - -/* prototypes for functions in walreceiverfuncs.c */ -extern Size WalRcvShmemSize(void); -extern void WalRcvShmemInit(void); -extern void ShutdownWalRcv(void); -extern bool WalRcvStreaming(void); -extern bool WalRcvRunning(void); -extern void RequestXLogStreaming(TimeLineID tli, XLogRecPtr recptr, - const char *conninfo, const char *slotname, - bool create_temp_slot); -extern XLogRecPtr GetWalRcvFlushRecPtr(XLogRecPtr *latestChunkStart, TimeLineID *receiveTLI); -extern XLogRecPtr GetWalRcvWriteRecPtr(void); -extern int GetReplicationApplyDelay(void); -extern int GetReplicationTransferLatency(void); -extern void WalRcvForceReply(void); - -#endif /* _WALRECEIVER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/walsender.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/walsender.h deleted file mode 100644 index d99a21b07..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/replication/walsender.h +++ /dev/null @@ -1,74 +0,0 @@ -/*------------------------------------------------------------------------- - * - * walsender.h - * Exports from replication/walsender.c. - * - * Portions Copyright (c) 2010-2022, PostgreSQL Global Development Group - * - * src/include/replication/walsender.h - * - *------------------------------------------------------------------------- - */ -#ifndef _WALSENDER_H -#define _WALSENDER_H - -#include - -/* - * What to do with a snapshot in create replication slot command. - */ -typedef enum -{ - CRS_EXPORT_SNAPSHOT, - CRS_NOEXPORT_SNAPSHOT, - CRS_USE_SNAPSHOT -} CRSSnapshotAction; - -/* global state */ -extern PGDLLIMPORT bool am_walsender; -extern PGDLLIMPORT bool am_cascading_walsender; -extern PGDLLIMPORT bool am_db_walsender; -extern PGDLLIMPORT bool wake_wal_senders; - -/* user-settable parameters */ -extern PGDLLIMPORT int max_wal_senders; -extern PGDLLIMPORT int wal_sender_timeout; -extern PGDLLIMPORT bool log_replication_commands; - -extern void InitWalSender(void); -extern bool exec_replication_command(const char *query_string); -extern void WalSndErrorCleanup(void); -extern void WalSndResourceCleanup(bool isCommit); -extern void WalSndSignals(void); -extern Size WalSndShmemSize(void); -extern void WalSndShmemInit(void); -extern void WalSndWakeup(void); -extern void WalSndInitStopping(void); -extern void WalSndWaitStopping(void); -extern void HandleWalSndInitStopping(void); -extern void WalSndRqstFileReload(void); - -/* - * Remember that we want to wakeup walsenders later - * - * This is separated from doing the actual wakeup because the writeout is done - * while holding contended locks. - */ -#define WalSndWakeupRequest() \ - do { wake_wal_senders = true; } while (0) - -/* - * wakeup walsenders if there is work to be done - */ -#define WalSndWakeupProcessRequests() \ - do \ - { \ - if (wake_wal_senders) \ - { \ - wake_wal_senders = false; \ - if (max_wal_senders > 0) \ - WalSndWakeup(); \ - } \ - } while (0) - -#endif /* _WALSENDER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/rewrite/prs2lock.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/rewrite/prs2lock.h deleted file mode 100644 index 6d9848398..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/rewrite/prs2lock.h +++ /dev/null @@ -1,46 +0,0 @@ -/*------------------------------------------------------------------------- - * - * prs2lock.h - * data structures for POSTGRES Rule System II (rewrite rules only) - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/rewrite/prs2lock.h - * - *------------------------------------------------------------------------- - */ -#ifndef PRS2LOCK_H -#define PRS2LOCK_H - -#include "access/attnum.h" -#include "nodes/pg_list.h" - -/* - * RewriteRule - - * holds an info for a rewrite rule - * - */ -typedef struct RewriteRule -{ - Oid ruleId; - CmdType event; - Node *qual; - List *actions; - char enabled; - bool isInstead; -} RewriteRule; - -/* - * RuleLock - - * all rules that apply to a particular relation. Even though we only - * have the rewrite rule system left and these are not really "locks", - * the name is kept for historical reasons. - */ -typedef struct RuleLock -{ - int numLocks; - RewriteRule **rules; -} RuleLock; - -#endif /* PRS2LOCK_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/rewrite/rewriteHandler.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/rewrite/rewriteHandler.h deleted file mode 100644 index 90ecf109a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/rewrite/rewriteHandler.h +++ /dev/null @@ -1,38 +0,0 @@ -/*------------------------------------------------------------------------- - * - * rewriteHandler.h - * External interface to query rewriter. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/rewrite/rewriteHandler.h - * - *------------------------------------------------------------------------- - */ -#ifndef REWRITEHANDLER_H -#define REWRITEHANDLER_H - -#include "nodes/parsenodes.h" -#include "utils/relcache.h" - -extern List *QueryRewrite(Query *parsetree); -extern void AcquireRewriteLocks(Query *parsetree, - bool forExecute, - bool forUpdatePushedDown); - -extern Node *build_column_default(Relation rel, int attrno); - -extern void fill_extraUpdatedCols(RangeTblEntry *target_rte, - Relation target_relation); - -extern Query *get_view_query(Relation view); -extern const char *view_query_is_auto_updatable(Query *viewquery, - bool check_cols); -extern int relation_is_updatable(Oid reloid, - List *outer_reloids, - bool include_triggers, - Bitmapset *include_cols); - -#endif /* REWRITEHANDLER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/rewrite/rewriteManip.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/rewrite/rewriteManip.h deleted file mode 100644 index 98b9b3a28..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/rewrite/rewriteManip.h +++ /dev/null @@ -1,87 +0,0 @@ -/*------------------------------------------------------------------------- - * - * rewriteManip.h - * Querytree manipulation subroutines for query rewriter. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/rewrite/rewriteManip.h - * - *------------------------------------------------------------------------- - */ -#ifndef REWRITEMANIP_H -#define REWRITEMANIP_H - -#include "nodes/parsenodes.h" - -struct AttrMap; /* avoid including attmap.h here */ - - -typedef struct replace_rte_variables_context replace_rte_variables_context; - -typedef Node *(*replace_rte_variables_callback) (Var *var, - replace_rte_variables_context *context); - -struct replace_rte_variables_context -{ - replace_rte_variables_callback callback; /* callback function */ - void *callback_arg; /* context data for callback function */ - int target_varno; /* RTE index to search for */ - int sublevels_up; /* (current) nesting depth */ - bool inserted_sublink; /* have we inserted a SubLink? */ -}; - -typedef enum ReplaceVarsNoMatchOption -{ - REPLACEVARS_REPORT_ERROR, /* throw error if no match */ - REPLACEVARS_CHANGE_VARNO, /* change the Var's varno, nothing else */ - REPLACEVARS_SUBSTITUTE_NULL /* replace with a NULL Const */ -} ReplaceVarsNoMatchOption; - - -extern void OffsetVarNodes(Node *node, int offset, int sublevels_up); -extern void ChangeVarNodes(Node *node, int old_varno, int new_varno, - int sublevels_up); -extern void IncrementVarSublevelsUp(Node *node, int delta_sublevels_up, - int min_sublevels_up); -extern void IncrementVarSublevelsUp_rtable(List *rtable, - int delta_sublevels_up, int min_sublevels_up); - -extern bool rangeTableEntry_used(Node *node, int rt_index, - int sublevels_up); - -extern Query *getInsertSelectQuery(Query *parsetree, Query ***subquery_ptr); - -extern void AddQual(Query *parsetree, Node *qual); -extern void AddInvertedQual(Query *parsetree, Node *qual); - -extern bool contain_aggs_of_level(Node *node, int levelsup); -extern int locate_agg_of_level(Node *node, int levelsup); -extern bool contain_windowfuncs(Node *node); -extern int locate_windowfunc(Node *node); -extern bool checkExprHasSubLink(Node *node); - -extern Node *replace_rte_variables(Node *node, - int target_varno, int sublevels_up, - replace_rte_variables_callback callback, - void *callback_arg, - bool *outer_hasSubLinks); -extern Node *replace_rte_variables_mutator(Node *node, - replace_rte_variables_context *context); - -extern Node *map_variable_attnos(Node *node, - int target_varno, int sublevels_up, - const struct AttrMap *attno_map, - Oid to_rowtype, bool *found_whole_row); - -extern Node *ReplaceVarsFromTargetList(Node *node, - int target_varno, int sublevels_up, - RangeTblEntry *target_rte, - List *targetlist, - ReplaceVarsNoMatchOption nomatch_option, - int nomatch_varno, - bool *outer_hasSubLinks); - -#endif /* REWRITEMANIP_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/rewrite/rewriteSupport.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/rewrite/rewriteSupport.h deleted file mode 100644 index 226ff66f9..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/rewrite/rewriteSupport.h +++ /dev/null @@ -1,26 +0,0 @@ -/*------------------------------------------------------------------------- - * - * rewriteSupport.h - * - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/rewrite/rewriteSupport.h - * - *------------------------------------------------------------------------- - */ -#ifndef REWRITESUPPORT_H -#define REWRITESUPPORT_H - -/* The ON SELECT rule of a view is always named this: */ -#define ViewSelectRuleName "_RETURN" - -extern bool IsDefinedRewriteRule(Oid owningRel, const char *ruleName); - -extern void SetRelationRuleStatus(Oid relationId, bool relHasRules); - -extern Oid get_rewrite_oid(Oid relid, const char *rulename, bool missing_ok); - -#endif /* REWRITESUPPORT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/backendid.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/backendid.h deleted file mode 100644 index 93d5b5080..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/backendid.h +++ /dev/null @@ -1,37 +0,0 @@ -/*------------------------------------------------------------------------- - * - * backendid.h - * POSTGRES backend id communication definitions - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/backendid.h - * - *------------------------------------------------------------------------- - */ -#ifndef BACKENDID_H -#define BACKENDID_H - -/* ---------------- - * -cim 8/17/90 - * ---------------- - */ -typedef int BackendId; /* unique currently active backend identifier */ - -#define InvalidBackendId (-1) - -extern PGDLLIMPORT BackendId MyBackendId; /* backend id of this backend */ - -/* backend id of our parallel session leader, or InvalidBackendId if none */ -extern PGDLLIMPORT BackendId ParallelLeaderBackendId; - -/* - * The BackendId to use for our session's temp relations is normally our own, - * but parallel workers should use their leader's ID. - */ -#define BackendIdForTempRelations() \ - (ParallelLeaderBackendId == InvalidBackendId ? MyBackendId : ParallelLeaderBackendId) - -#endif /* BACKENDID_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/block.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/block.h deleted file mode 100644 index d756e3fda..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/block.h +++ /dev/null @@ -1,115 +0,0 @@ -/*------------------------------------------------------------------------- - * - * block.h - * POSTGRES disk block definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/block.h - * - *------------------------------------------------------------------------- - */ -#ifndef BLOCK_H -#define BLOCK_H - -/* - * BlockNumber: - * - * each data file (heap or index) is divided into postgres disk blocks - * (which may be thought of as the unit of i/o -- a postgres buffer - * contains exactly one disk block). the blocks are numbered - * sequentially, 0 to 0xFFFFFFFE. - * - * InvalidBlockNumber is the same thing as P_NEW in bufmgr.h. - * - * the access methods, the buffer manager and the storage manager are - * more or less the only pieces of code that should be accessing disk - * blocks directly. - */ -typedef uint32 BlockNumber; - -#define InvalidBlockNumber ((BlockNumber) 0xFFFFFFFF) - -#define MaxBlockNumber ((BlockNumber) 0xFFFFFFFE) - -/* - * BlockId: - * - * this is a storage type for BlockNumber. in other words, this type - * is used for on-disk structures (e.g., in HeapTupleData) whereas - * BlockNumber is the type on which calculations are performed (e.g., - * in access method code). - * - * there doesn't appear to be any reason to have separate types except - * for the fact that BlockIds can be SHORTALIGN'd (and therefore any - * structures that contains them, such as ItemPointerData, can also be - * SHORTALIGN'd). this is an important consideration for reducing the - * space requirements of the line pointer (ItemIdData) array on each - * page and the header of each heap or index tuple, so it doesn't seem - * wise to change this without good reason. - */ -typedef struct BlockIdData -{ - uint16 bi_hi; - uint16 bi_lo; -} BlockIdData; - -typedef BlockIdData *BlockId; /* block identifier */ - -/* ---------------- - * support macros - * ---------------- - */ - -/* - * BlockNumberIsValid - * True iff blockNumber is valid. - */ -#define BlockNumberIsValid(blockNumber) \ - ((BlockNumber) (blockNumber) != InvalidBlockNumber) - -/* - * BlockIdIsValid - * True iff the block identifier is valid. - */ -#define BlockIdIsValid(blockId) \ - PointerIsValid(blockId) - -/* - * BlockIdSet - * Sets a block identifier to the specified value. - */ -#define BlockIdSet(blockId, blockNumber) \ -( \ - (blockId)->bi_hi = (blockNumber) >> 16, \ - (blockId)->bi_lo = (blockNumber) & 0xffff \ -) - -/* - * BlockIdCopy - * Copy a block identifier. - */ -#define BlockIdCopy(toBlockId, fromBlockId) \ -( \ - (toBlockId)->bi_hi = (fromBlockId)->bi_hi, \ - (toBlockId)->bi_lo = (fromBlockId)->bi_lo \ -) - -/* - * BlockIdEquals - * Check for block number equality. - */ -#define BlockIdEquals(blockId1, blockId2) \ - ((blockId1)->bi_hi == (blockId2)->bi_hi && \ - (blockId1)->bi_lo == (blockId2)->bi_lo) - -/* - * BlockIdGetBlockNumber - * Retrieve the block number from a block identifier. - */ -#define BlockIdGetBlockNumber(blockId) \ - ((((BlockNumber) (blockId)->bi_hi) << 16) | ((BlockNumber) (blockId)->bi_lo)) - -#endif /* BLOCK_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/buf.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/buf.h deleted file mode 100644 index aec01ca0e..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/buf.h +++ /dev/null @@ -1,46 +0,0 @@ -/*------------------------------------------------------------------------- - * - * buf.h - * Basic buffer manager data types. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/buf.h - * - *------------------------------------------------------------------------- - */ -#ifndef BUF_H -#define BUF_H - -/* - * Buffer identifiers. - * - * Zero is invalid, positive is the index of a shared buffer (1..NBuffers), - * negative is the index of a local buffer (-1 .. -NLocBuffer). - */ -typedef int Buffer; - -#define InvalidBuffer 0 - -/* - * BufferIsInvalid - * True iff the buffer is invalid. - */ -#define BufferIsInvalid(buffer) ((buffer) == InvalidBuffer) - -/* - * BufferIsLocal - * True iff the buffer is local (not visible to other backends). - */ -#define BufferIsLocal(buffer) ((buffer) < 0) - -/* - * Buffer access strategy objects. - * - * BufferAccessStrategyData is private to freelist.c - */ -typedef struct BufferAccessStrategyData *BufferAccessStrategy; - -#endif /* BUF_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/bufmgr.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/bufmgr.h deleted file mode 100644 index 58391406f..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/bufmgr.h +++ /dev/null @@ -1,297 +0,0 @@ -/*------------------------------------------------------------------------- - * - * bufmgr.h - * POSTGRES buffer manager definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/bufmgr.h - * - *------------------------------------------------------------------------- - */ -#ifndef BUFMGR_H -#define BUFMGR_H - -#include "storage/block.h" -#include "storage/buf.h" -#include "storage/bufpage.h" -#include "storage/relfilenode.h" -#include "utils/relcache.h" -#include "utils/snapmgr.h" - -typedef void *Block; - -/* Possible arguments for GetAccessStrategy() */ -typedef enum BufferAccessStrategyType -{ - BAS_NORMAL, /* Normal random access */ - BAS_BULKREAD, /* Large read-only scan (hint bit updates are - * ok) */ - BAS_BULKWRITE, /* Large multi-block write (e.g. COPY IN) */ - BAS_VACUUM /* VACUUM */ -} BufferAccessStrategyType; - -/* Possible modes for ReadBufferExtended() */ -typedef enum -{ - RBM_NORMAL, /* Normal read */ - RBM_ZERO_AND_LOCK, /* Don't read from disk, caller will - * initialize. Also locks the page. */ - RBM_ZERO_AND_CLEANUP_LOCK, /* Like RBM_ZERO_AND_LOCK, but locks the page - * in "cleanup" mode */ - RBM_ZERO_ON_ERROR, /* Read, but return an all-zeros page on error */ - RBM_NORMAL_NO_LOG /* Don't log page as invalid during WAL - * replay; otherwise same as RBM_NORMAL */ -} ReadBufferMode; - -/* - * Type returned by PrefetchBuffer(). - */ -typedef struct PrefetchBufferResult -{ - Buffer recent_buffer; /* If valid, a hit (recheck needed!) */ - bool initiated_io; /* If true, a miss resulting in async I/O */ -} PrefetchBufferResult; - -/* forward declared, to avoid having to expose buf_internals.h here */ -struct WritebackContext; - -/* forward declared, to avoid including smgr.h here */ -struct SMgrRelationData; - -/* in globals.c ... this duplicates miscadmin.h */ -extern PGDLLIMPORT int NBuffers; - -/* in bufmgr.c */ -extern PGDLLIMPORT bool zero_damaged_pages; -extern PGDLLIMPORT int bgwriter_lru_maxpages; -extern PGDLLIMPORT double bgwriter_lru_multiplier; -extern PGDLLIMPORT bool track_io_timing; -extern PGDLLIMPORT int effective_io_concurrency; -extern PGDLLIMPORT int maintenance_io_concurrency; - -extern PGDLLIMPORT int checkpoint_flush_after; -extern PGDLLIMPORT int backend_flush_after; -extern PGDLLIMPORT int bgwriter_flush_after; - -/* in buf_init.c */ -extern PGDLLIMPORT char *BufferBlocks; - -/* in localbuf.c */ -extern PGDLLIMPORT int NLocBuffer; -extern PGDLLIMPORT Block *LocalBufferBlockPointers; -extern PGDLLIMPORT int32 *LocalRefCount; - -/* upper limit for effective_io_concurrency */ -#define MAX_IO_CONCURRENCY 1000 - -/* special block number for ReadBuffer() */ -#define P_NEW InvalidBlockNumber /* grow the file to get a new page */ - -/* - * Buffer content lock modes (mode argument for LockBuffer()) - */ -#define BUFFER_LOCK_UNLOCK 0 -#define BUFFER_LOCK_SHARE 1 -#define BUFFER_LOCK_EXCLUSIVE 2 - -/* - * These routines are beaten on quite heavily, hence the macroization. - */ - -/* - * BufferIsValid - * True iff the given buffer number is valid (either as a shared - * or local buffer). - * - * Note: For a long time this was defined the same as BufferIsPinned, - * that is it would say False if you didn't hold a pin on the buffer. - * I believe this was bogus and served only to mask logic errors. - * Code should always know whether it has a buffer reference, - * independently of the pin state. - * - * Note: For a further long time this was not quite the inverse of the - * BufferIsInvalid() macro, in that it also did sanity checks to verify - * that the buffer number was in range. Most likely, this macro was - * originally intended only to be used in assertions, but its use has - * since expanded quite a bit, and the overhead of making those checks - * even in non-assert-enabled builds can be significant. Thus, we've - * now demoted the range checks to assertions within the macro itself. - */ -#define BufferIsValid(bufnum) \ -( \ - AssertMacro((bufnum) <= NBuffers && (bufnum) >= -NLocBuffer), \ - (bufnum) != InvalidBuffer \ -) - -/* - * BufferGetBlock - * Returns a reference to a disk page image associated with a buffer. - * - * Note: - * Assumes buffer is valid. - */ -#define BufferGetBlock(buffer) \ -( \ - AssertMacro(BufferIsValid(buffer)), \ - BufferIsLocal(buffer) ? \ - LocalBufferBlockPointers[-(buffer) - 1] \ - : \ - (Block) (BufferBlocks + ((Size) ((buffer) - 1)) * BLCKSZ) \ -) - -/* - * BufferGetPageSize - * Returns the page size within a buffer. - * - * Notes: - * Assumes buffer is valid. - * - * The buffer can be a raw disk block and need not contain a valid - * (formatted) disk page. - */ -/* XXX should dig out of buffer descriptor */ -#define BufferGetPageSize(buffer) \ -( \ - AssertMacro(BufferIsValid(buffer)), \ - (Size)BLCKSZ \ -) - -/* - * BufferGetPage - * Returns the page associated with a buffer. - * - * When this is called as part of a scan, there may be a need for a nearby - * call to TestForOldSnapshot(). See the definition of that for details. - */ -#define BufferGetPage(buffer) ((Page)BufferGetBlock(buffer)) - -/* - * prototypes for functions in bufmgr.c - */ -extern PrefetchBufferResult PrefetchSharedBuffer(struct SMgrRelationData *smgr_reln, - ForkNumber forkNum, - BlockNumber blockNum); -extern PrefetchBufferResult PrefetchBuffer(Relation reln, ForkNumber forkNum, - BlockNumber blockNum); -extern bool ReadRecentBuffer(RelFileNode rnode, ForkNumber forkNum, - BlockNumber blockNum, Buffer recent_buffer); -extern Buffer ReadBuffer(Relation reln, BlockNumber blockNum); -extern Buffer ReadBufferExtended(Relation reln, ForkNumber forkNum, - BlockNumber blockNum, ReadBufferMode mode, - BufferAccessStrategy strategy); -extern Buffer ReadBufferWithoutRelcache(RelFileNode rnode, - ForkNumber forkNum, BlockNumber blockNum, - ReadBufferMode mode, BufferAccessStrategy strategy, - bool permanent); -extern void ReleaseBuffer(Buffer buffer); -extern void UnlockReleaseBuffer(Buffer buffer); -extern void MarkBufferDirty(Buffer buffer); -extern void IncrBufferRefCount(Buffer buffer); -extern Buffer ReleaseAndReadBuffer(Buffer buffer, Relation relation, - BlockNumber blockNum); - -extern void InitBufferPool(void); -extern void InitBufferPoolAccess(void); -extern void AtEOXact_Buffers(bool isCommit); -extern void PrintBufferLeakWarning(Buffer buffer); -extern void CheckPointBuffers(int flags); -extern BlockNumber BufferGetBlockNumber(Buffer buffer); -extern BlockNumber RelationGetNumberOfBlocksInFork(Relation relation, - ForkNumber forkNum); -extern void FlushOneBuffer(Buffer buffer); -extern void FlushRelationBuffers(Relation rel); -extern void FlushRelationsAllBuffers(struct SMgrRelationData **smgrs, int nrels); -extern void CreateAndCopyRelationData(RelFileNode src_rnode, - RelFileNode dst_rnode, - bool permanent); -extern void FlushDatabaseBuffers(Oid dbid); -extern void DropRelFileNodeBuffers(struct SMgrRelationData *smgr_reln, ForkNumber *forkNum, - int nforks, BlockNumber *firstDelBlock); -extern void DropRelFileNodesAllBuffers(struct SMgrRelationData **smgr_reln, int nnodes); -extern void DropDatabaseBuffers(Oid dbid); - -#define RelationGetNumberOfBlocks(reln) \ - RelationGetNumberOfBlocksInFork(reln, MAIN_FORKNUM) - -extern bool BufferIsPermanent(Buffer buffer); -extern XLogRecPtr BufferGetLSNAtomic(Buffer buffer); - -#ifdef NOT_USED -extern void PrintPinnedBufs(void); -#endif -extern Size BufferShmemSize(void); -extern void BufferGetTag(Buffer buffer, RelFileNode *rnode, - ForkNumber *forknum, BlockNumber *blknum); - -extern void MarkBufferDirtyHint(Buffer buffer, bool buffer_std); - -extern void UnlockBuffers(void); -extern void LockBuffer(Buffer buffer, int mode); -extern bool ConditionalLockBuffer(Buffer buffer); -extern void LockBufferForCleanup(Buffer buffer); -extern bool ConditionalLockBufferForCleanup(Buffer buffer); -extern bool IsBufferCleanupOK(Buffer buffer); -extern bool HoldingBufferPinThatDelaysRecovery(void); - -extern void AbortBufferIO(void); - -extern void BufmgrCommit(void); -extern bool BgBufferSync(struct WritebackContext *wb_context); - -extern void AtProcExit_LocalBuffers(void); - -extern void TestForOldSnapshot_impl(Snapshot snapshot, Relation relation); - -/* in freelist.c */ -extern BufferAccessStrategy GetAccessStrategy(BufferAccessStrategyType btype); -extern void FreeAccessStrategy(BufferAccessStrategy strategy); - - -/* inline functions */ - -/* - * Although this header file is nominally backend-only, certain frontend - * programs like pg_waldump include it. For compilers that emit static - * inline functions even when they're unused, that leads to unsatisfied - * external references; hence hide these with #ifndef FRONTEND. - */ - -#ifndef FRONTEND - -/* - * Check whether the given snapshot is too old to have safely read the given - * page from the given table. If so, throw a "snapshot too old" error. - * - * This test generally needs to be performed after every BufferGetPage() call - * that is executed as part of a scan. It is not needed for calls made for - * modifying the page (for example, to position to the right place to insert a - * new index tuple or for vacuuming). It may also be omitted where calls to - * lower-level functions will have already performed the test. - * - * Note that a NULL snapshot argument is allowed and causes a fast return - * without error; this is to support call sites which can be called from - * either scans or index modification areas. - * - * For best performance, keep the tests that are fastest and/or most likely to - * exclude a page from old snapshot testing near the front. - */ -static inline void -TestForOldSnapshot(Snapshot snapshot, Relation relation, Page page) -{ - Assert(relation != NULL); - - if (old_snapshot_threshold >= 0 - && (snapshot) != NULL - && ((snapshot)->snapshot_type == SNAPSHOT_MVCC - || (snapshot)->snapshot_type == SNAPSHOT_TOAST) - && !XLogRecPtrIsInvalid((snapshot)->lsn) - && PageGetLSN(page) > (snapshot)->lsn) - TestForOldSnapshot_impl(snapshot, relation); -} - -#endif /* FRONTEND */ - -#endif /* BUFMGR_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/bufpage.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/bufpage.h deleted file mode 100644 index e9f253f2c..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/bufpage.h +++ /dev/null @@ -1,457 +0,0 @@ -/*------------------------------------------------------------------------- - * - * bufpage.h - * Standard POSTGRES buffer page definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/bufpage.h - * - *------------------------------------------------------------------------- - */ -#ifndef BUFPAGE_H -#define BUFPAGE_H - -#include "access/xlogdefs.h" -#include "storage/block.h" -#include "storage/item.h" -#include "storage/off.h" - -/* - * A postgres disk page is an abstraction layered on top of a postgres - * disk block (which is simply a unit of i/o, see block.h). - * - * specifically, while a disk block can be unformatted, a postgres - * disk page is always a slotted page of the form: - * - * +----------------+---------------------------------+ - * | PageHeaderData | linp1 linp2 linp3 ... | - * +-----------+----+---------------------------------+ - * | ... linpN | | - * +-----------+--------------------------------------+ - * | ^ pd_lower | - * | | - * | v pd_upper | - * +-------------+------------------------------------+ - * | | tupleN ... | - * +-------------+------------------+-----------------+ - * | ... tuple3 tuple2 tuple1 | "special space" | - * +--------------------------------+-----------------+ - * ^ pd_special - * - * a page is full when nothing can be added between pd_lower and - * pd_upper. - * - * all blocks written out by an access method must be disk pages. - * - * EXCEPTIONS: - * - * obviously, a page is not formatted before it is initialized by - * a call to PageInit. - * - * NOTES: - * - * linp1..N form an ItemId (line pointer) array. ItemPointers point - * to a physical block number and a logical offset (line pointer - * number) within that block/page. Note that OffsetNumbers - * conventionally start at 1, not 0. - * - * tuple1..N are added "backwards" on the page. Since an ItemPointer - * offset is used to access an ItemId entry rather than an actual - * byte-offset position, tuples can be physically shuffled on a page - * whenever the need arises. This indirection also keeps crash recovery - * relatively simple, because the low-level details of page space - * management can be controlled by standard buffer page code during - * logging, and during recovery. - * - * AM-generic per-page information is kept in PageHeaderData. - * - * AM-specific per-page data (if any) is kept in the area marked "special - * space"; each AM has an "opaque" structure defined somewhere that is - * stored as the page trailer. an access method should always - * initialize its pages with PageInit and then set its own opaque - * fields. - */ - -typedef Pointer Page; - - -/* - * location (byte offset) within a page. - * - * note that this is actually limited to 2^15 because we have limited - * ItemIdData.lp_off and ItemIdData.lp_len to 15 bits (see itemid.h). - */ -typedef uint16 LocationIndex; - - -/* - * For historical reasons, the 64-bit LSN value is stored as two 32-bit - * values. - */ -typedef struct -{ - uint32 xlogid; /* high bits */ - uint32 xrecoff; /* low bits */ -} PageXLogRecPtr; - -#define PageXLogRecPtrGet(val) \ - ((uint64) (val).xlogid << 32 | (val).xrecoff) -#define PageXLogRecPtrSet(ptr, lsn) \ - ((ptr).xlogid = (uint32) ((lsn) >> 32), (ptr).xrecoff = (uint32) (lsn)) - -/* - * disk page organization - * - * space management information generic to any page - * - * pd_lsn - identifies xlog record for last change to this page. - * pd_checksum - page checksum, if set. - * pd_flags - flag bits. - * pd_lower - offset to start of free space. - * pd_upper - offset to end of free space. - * pd_special - offset to start of special space. - * pd_pagesize_version - size in bytes and page layout version number. - * pd_prune_xid - oldest XID among potentially prunable tuples on page. - * - * The LSN is used by the buffer manager to enforce the basic rule of WAL: - * "thou shalt write xlog before data". A dirty buffer cannot be dumped - * to disk until xlog has been flushed at least as far as the page's LSN. - * - * pd_checksum stores the page checksum, if it has been set for this page; - * zero is a valid value for a checksum. If a checksum is not in use then - * we leave the field unset. This will typically mean the field is zero - * though non-zero values may also be present if databases have been - * pg_upgraded from releases prior to 9.3, when the same byte offset was - * used to store the current timelineid when the page was last updated. - * Note that there is no indication on a page as to whether the checksum - * is valid or not, a deliberate design choice which avoids the problem - * of relying on the page contents to decide whether to verify it. Hence - * there are no flag bits relating to checksums. - * - * pd_prune_xid is a hint field that helps determine whether pruning will be - * useful. It is currently unused in index pages. - * - * The page version number and page size are packed together into a single - * uint16 field. This is for historical reasons: before PostgreSQL 7.3, - * there was no concept of a page version number, and doing it this way - * lets us pretend that pre-7.3 databases have page version number zero. - * We constrain page sizes to be multiples of 256, leaving the low eight - * bits available for a version number. - * - * Minimum possible page size is perhaps 64B to fit page header, opaque space - * and a minimal tuple; of course, in reality you want it much bigger, so - * the constraint on pagesize mod 256 is not an important restriction. - * On the high end, we can only support pages up to 32KB because lp_off/lp_len - * are 15 bits. - */ - -typedef struct PageHeaderData -{ - /* XXX LSN is member of *any* block, not only page-organized ones */ - PageXLogRecPtr pd_lsn; /* LSN: next byte after last byte of xlog - * record for last change to this page */ - uint16 pd_checksum; /* checksum */ - uint16 pd_flags; /* flag bits, see below */ - LocationIndex pd_lower; /* offset to start of free space */ - LocationIndex pd_upper; /* offset to end of free space */ - LocationIndex pd_special; /* offset to start of special space */ - uint16 pd_pagesize_version; - TransactionId pd_prune_xid; /* oldest prunable XID, or zero if none */ - ItemIdData pd_linp[FLEXIBLE_ARRAY_MEMBER]; /* line pointer array */ -} PageHeaderData; - -typedef PageHeaderData *PageHeader; - -/* - * pd_flags contains the following flag bits. Undefined bits are initialized - * to zero and may be used in the future. - * - * PD_HAS_FREE_LINES is set if there are any LP_UNUSED line pointers before - * pd_lower. This should be considered a hint rather than the truth, since - * changes to it are not WAL-logged. - * - * PD_PAGE_FULL is set if an UPDATE doesn't find enough free space in the - * page for its new tuple version; this suggests that a prune is needed. - * Again, this is just a hint. - */ -#define PD_HAS_FREE_LINES 0x0001 /* are there any unused line pointers? */ -#define PD_PAGE_FULL 0x0002 /* not enough free space for new tuple? */ -#define PD_ALL_VISIBLE 0x0004 /* all tuples on page are visible to - * everyone */ - -#define PD_VALID_FLAG_BITS 0x0007 /* OR of all valid pd_flags bits */ - -/* - * Page layout version number 0 is for pre-7.3 Postgres releases. - * Releases 7.3 and 7.4 use 1, denoting a new HeapTupleHeader layout. - * Release 8.0 uses 2; it changed the HeapTupleHeader layout again. - * Release 8.1 uses 3; it redefined HeapTupleHeader infomask bits. - * Release 8.3 uses 4; it changed the HeapTupleHeader layout again, and - * added the pd_flags field (by stealing some bits from pd_tli), - * as well as adding the pd_prune_xid field (which enlarges the header). - * - * As of Release 9.3, the checksum version must also be considered when - * handling pages. - */ -#define PG_PAGE_LAYOUT_VERSION 4 -#define PG_DATA_CHECKSUM_VERSION 1 - -/* ---------------------------------------------------------------- - * page support macros - * ---------------------------------------------------------------- - */ - -/* - * PageIsValid - * True iff page is valid. - */ -#define PageIsValid(page) PointerIsValid(page) - -/* - * line pointer(s) do not count as part of header - */ -#define SizeOfPageHeaderData (offsetof(PageHeaderData, pd_linp)) - -/* - * PageIsEmpty - * returns true iff no itemid has been allocated on the page - */ -#define PageIsEmpty(page) \ - (((PageHeader) (page))->pd_lower <= SizeOfPageHeaderData) - -/* - * PageIsNew - * returns true iff page has not been initialized (by PageInit) - */ -#define PageIsNew(page) (((PageHeader) (page))->pd_upper == 0) - -/* - * PageGetItemId - * Returns an item identifier of a page. - */ -#define PageGetItemId(page, offsetNumber) \ - ((ItemId) (&((PageHeader) (page))->pd_linp[(offsetNumber) - 1])) - -/* - * PageGetContents - * To be used in cases where the page does not contain line pointers. - * - * Note: prior to 8.3 this was not guaranteed to yield a MAXALIGN'd result. - * Now it is. Beware of old code that might think the offset to the contents - * is just SizeOfPageHeaderData rather than MAXALIGN(SizeOfPageHeaderData). - */ -#define PageGetContents(page) \ - ((char *) (page) + MAXALIGN(SizeOfPageHeaderData)) - -/* ---------------- - * macros to access page size info - * ---------------- - */ - -/* - * PageSizeIsValid - * True iff the page size is valid. - */ -#define PageSizeIsValid(pageSize) ((pageSize) == BLCKSZ) - -/* - * PageGetPageSize - * Returns the page size of a page. - * - * this can only be called on a formatted page (unlike - * BufferGetPageSize, which can be called on an unformatted page). - * however, it can be called on a page that is not stored in a buffer. - */ -#define PageGetPageSize(page) \ - ((Size) (((PageHeader) (page))->pd_pagesize_version & (uint16) 0xFF00)) - -/* - * PageGetPageLayoutVersion - * Returns the page layout version of a page. - */ -#define PageGetPageLayoutVersion(page) \ - (((PageHeader) (page))->pd_pagesize_version & 0x00FF) - -/* - * PageSetPageSizeAndVersion - * Sets the page size and page layout version number of a page. - * - * We could support setting these two values separately, but there's - * no real need for it at the moment. - */ -#define PageSetPageSizeAndVersion(page, size, version) \ -( \ - AssertMacro(((size) & 0xFF00) == (size)), \ - AssertMacro(((version) & 0x00FF) == (version)), \ - ((PageHeader) (page))->pd_pagesize_version = (size) | (version) \ -) - -/* ---------------- - * page special data macros - * ---------------- - */ -/* - * PageGetSpecialSize - * Returns size of special space on a page. - */ -#define PageGetSpecialSize(page) \ - ((uint16) (PageGetPageSize(page) - ((PageHeader)(page))->pd_special)) - -/* - * Using assertions, validate that the page special pointer is OK. - * - * This is intended to catch use of the pointer before page initialization. - * It is implemented as a function due to the limitations of the MSVC - * compiler, which choked on doing all these tests within another macro. We - * return true so that AssertMacro() can be used while still getting the - * specifics from the macro failure within this function. - */ -static inline bool -PageValidateSpecialPointer(Page page) -{ - Assert(PageIsValid(page)); - Assert(((PageHeader) (page))->pd_special <= BLCKSZ); - Assert(((PageHeader) (page))->pd_special >= SizeOfPageHeaderData); - - return true; -} - -/* - * PageGetSpecialPointer - * Returns pointer to special space on a page. - */ -#define PageGetSpecialPointer(page) \ -( \ - AssertMacro(PageValidateSpecialPointer(page)), \ - (char *) ((char *) (page) + ((PageHeader) (page))->pd_special) \ -) - -/* - * PageGetItem - * Retrieves an item on the given page. - * - * Note: - * This does not change the status of any of the resources passed. - * The semantics may change in the future. - */ -#define PageGetItem(page, itemId) \ -( \ - AssertMacro(PageIsValid(page)), \ - AssertMacro(ItemIdHasStorage(itemId)), \ - (Item)(((char *)(page)) + ItemIdGetOffset(itemId)) \ -) - -/* - * PageGetMaxOffsetNumber - * Returns the maximum offset number used by the given page. - * Since offset numbers are 1-based, this is also the number - * of items on the page. - * - * NOTE: if the page is not initialized (pd_lower == 0), we must - * return zero to ensure sane behavior. Accept double evaluation - * of the argument so that we can ensure this. - */ -#define PageGetMaxOffsetNumber(page) \ - (((PageHeader) (page))->pd_lower <= SizeOfPageHeaderData ? 0 : \ - ((((PageHeader) (page))->pd_lower - SizeOfPageHeaderData) \ - / sizeof(ItemIdData))) - -/* - * Additional macros for access to page headers. (Beware multiple evaluation - * of the arguments!) - */ -#define PageGetLSN(page) \ - PageXLogRecPtrGet(((PageHeader) (page))->pd_lsn) -#define PageSetLSN(page, lsn) \ - PageXLogRecPtrSet(((PageHeader) (page))->pd_lsn, lsn) - -#define PageHasFreeLinePointers(page) \ - (((PageHeader) (page))->pd_flags & PD_HAS_FREE_LINES) -#define PageSetHasFreeLinePointers(page) \ - (((PageHeader) (page))->pd_flags |= PD_HAS_FREE_LINES) -#define PageClearHasFreeLinePointers(page) \ - (((PageHeader) (page))->pd_flags &= ~PD_HAS_FREE_LINES) - -#define PageIsFull(page) \ - (((PageHeader) (page))->pd_flags & PD_PAGE_FULL) -#define PageSetFull(page) \ - (((PageHeader) (page))->pd_flags |= PD_PAGE_FULL) -#define PageClearFull(page) \ - (((PageHeader) (page))->pd_flags &= ~PD_PAGE_FULL) - -#define PageIsAllVisible(page) \ - (((PageHeader) (page))->pd_flags & PD_ALL_VISIBLE) -#define PageSetAllVisible(page) \ - (((PageHeader) (page))->pd_flags |= PD_ALL_VISIBLE) -#define PageClearAllVisible(page) \ - (((PageHeader) (page))->pd_flags &= ~PD_ALL_VISIBLE) - -#define PageSetPrunable(page, xid) \ -do { \ - Assert(TransactionIdIsNormal(xid)); \ - if (!TransactionIdIsValid(((PageHeader) (page))->pd_prune_xid) || \ - TransactionIdPrecedes(xid, ((PageHeader) (page))->pd_prune_xid)) \ - ((PageHeader) (page))->pd_prune_xid = (xid); \ -} while (0) -#define PageClearPrunable(page) \ - (((PageHeader) (page))->pd_prune_xid = InvalidTransactionId) - - -/* ---------------------------------------------------------------- - * extern declarations - * ---------------------------------------------------------------- - */ - -/* flags for PageAddItemExtended() */ -#define PAI_OVERWRITE (1 << 0) -#define PAI_IS_HEAP (1 << 1) - -/* flags for PageIsVerifiedExtended() */ -#define PIV_LOG_WARNING (1 << 0) -#define PIV_REPORT_STAT (1 << 1) - -#define PageAddItem(page, item, size, offsetNumber, overwrite, is_heap) \ - PageAddItemExtended(page, item, size, offsetNumber, \ - ((overwrite) ? PAI_OVERWRITE : 0) | \ - ((is_heap) ? PAI_IS_HEAP : 0)) - -#define PageIsVerified(page, blkno) \ - PageIsVerifiedExtended(page, blkno, \ - PIV_LOG_WARNING | PIV_REPORT_STAT) - -/* - * Check that BLCKSZ is a multiple of sizeof(size_t). In - * PageIsVerifiedExtended(), it is much faster to check if a page is - * full of zeroes using the native word size. Note that this assertion - * is kept within a header to make sure that StaticAssertDecl() works - * across various combinations of platforms and compilers. - */ -StaticAssertDecl(BLCKSZ == ((BLCKSZ / sizeof(size_t)) * sizeof(size_t)), - "BLCKSZ has to be a multiple of sizeof(size_t)"); - -extern void PageInit(Page page, Size pageSize, Size specialSize); -extern bool PageIsVerifiedExtended(Page page, BlockNumber blkno, int flags); -extern OffsetNumber PageAddItemExtended(Page page, Item item, Size size, - OffsetNumber offsetNumber, int flags); -extern Page PageGetTempPage(Page page); -extern Page PageGetTempPageCopy(Page page); -extern Page PageGetTempPageCopySpecial(Page page); -extern void PageRestoreTempPage(Page tempPage, Page oldPage); -extern void PageRepairFragmentation(Page page); -extern void PageTruncateLinePointerArray(Page page); -extern Size PageGetFreeSpace(Page page); -extern Size PageGetFreeSpaceForMultipleTuples(Page page, int ntups); -extern Size PageGetExactFreeSpace(Page page); -extern Size PageGetHeapFreeSpace(Page page); -extern void PageIndexTupleDelete(Page page, OffsetNumber offset); -extern void PageIndexMultiDelete(Page page, OffsetNumber *itemnos, int nitems); -extern void PageIndexTupleDeleteNoCompact(Page page, OffsetNumber offset); -extern bool PageIndexTupleOverwrite(Page page, OffsetNumber offnum, - Item newtup, Size newsize); -extern char *PageSetChecksumCopy(Page page, BlockNumber blkno); -extern void PageSetChecksumInplace(Page page, BlockNumber blkno); - -#endif /* BUFPAGE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/condition_variable.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/condition_variable.h deleted file mode 100644 index e89175ebd..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/condition_variable.h +++ /dev/null @@ -1,73 +0,0 @@ -/*------------------------------------------------------------------------- - * - * condition_variable.h - * Condition variables - * - * A condition variable is a method of waiting until a certain condition - * becomes true. Conventionally, a condition variable supports three - * operations: (1) sleep; (2) signal, which wakes up one process sleeping - * on the condition variable; and (3) broadcast, which wakes up every - * process sleeping on the condition variable. In our implementation, - * condition variables put a process into an interruptible sleep (so it - * can be canceled prior to the fulfillment of the condition) and do not - * use pointers internally (so that they are safe to use within DSMs). - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/condition_variable.h - * - *------------------------------------------------------------------------- - */ -#ifndef CONDITION_VARIABLE_H -#define CONDITION_VARIABLE_H - -#include "storage/proclist_types.h" -#include "storage/spin.h" - -typedef struct -{ - slock_t mutex; /* spinlock protecting the wakeup list */ - proclist_head wakeup; /* list of wake-able processes */ -} ConditionVariable; - -/* - * Pad a condition variable to a power-of-two size so that an array of - * condition variables does not cross a cache line boundary. - */ -#define CV_MINIMAL_SIZE (sizeof(ConditionVariable) <= 16 ? 16 : 32) -typedef union ConditionVariableMinimallyPadded -{ - ConditionVariable cv; - char pad[CV_MINIMAL_SIZE]; -} ConditionVariableMinimallyPadded; - -/* Initialize a condition variable. */ -extern void ConditionVariableInit(ConditionVariable *cv); - -/* - * To sleep on a condition variable, a process should use a loop which first - * checks the condition, exiting the loop if it is met, and then calls - * ConditionVariableSleep. Spurious wakeups are possible, but should be - * infrequent. After exiting the loop, ConditionVariableCancelSleep must - * be called to ensure that the process is no longer in the wait list for - * the condition variable. - */ -extern void ConditionVariableSleep(ConditionVariable *cv, uint32 wait_event_info); -extern bool ConditionVariableTimedSleep(ConditionVariable *cv, long timeout, - uint32 wait_event_info); -extern void ConditionVariableCancelSleep(void); - -/* - * Optionally, ConditionVariablePrepareToSleep can be called before entering - * the test-and-sleep loop described above. Doing so is more efficient if - * at least one sleep is needed, whereas not doing so is more efficient when - * no sleep is needed because the test condition is true the first time. - */ -extern void ConditionVariablePrepareToSleep(ConditionVariable *cv); - -/* Wake up a single waiter (via signal) or all waiters (via broadcast). */ -extern void ConditionVariableSignal(ConditionVariable *cv); -extern void ConditionVariableBroadcast(ConditionVariable *cv); - -#endif /* CONDITION_VARIABLE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/dsm.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/dsm.h deleted file mode 100644 index 4dd6af23a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/dsm.h +++ /dev/null @@ -1,64 +0,0 @@ -/*------------------------------------------------------------------------- - * - * dsm.h - * manage dynamic shared memory segments - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/dsm.h - * - *------------------------------------------------------------------------- - */ -#ifndef DSM_H -#define DSM_H - -#include "storage/dsm_impl.h" - -typedef struct dsm_segment dsm_segment; - -#define DSM_CREATE_NULL_IF_MAXSEGMENTS 0x0001 - -/* A sentinel value for an invalid DSM handle. */ -#define DSM_HANDLE_INVALID 0 - -/* Startup and shutdown functions. */ -struct PGShmemHeader; /* avoid including pg_shmem.h */ -extern void dsm_cleanup_using_control_segment(dsm_handle old_control_handle); -extern void dsm_postmaster_startup(struct PGShmemHeader *); -extern void dsm_backend_shutdown(void); -extern void dsm_detach_all(void); - -extern size_t dsm_estimate_size(void); -extern void dsm_shmem_init(void); - -#ifdef EXEC_BACKEND -extern void dsm_set_control_handle(dsm_handle h); -#endif - -/* Functions that create or remove mappings. */ -extern dsm_segment *dsm_create(Size size, int flags); -extern dsm_segment *dsm_attach(dsm_handle h); -extern void dsm_detach(dsm_segment *seg); - -/* Resource management functions. */ -extern void dsm_pin_mapping(dsm_segment *seg); -extern void dsm_unpin_mapping(dsm_segment *seg); -extern void dsm_pin_segment(dsm_segment *seg); -extern void dsm_unpin_segment(dsm_handle h); -extern dsm_segment *dsm_find_mapping(dsm_handle h); - -/* Informational functions. */ -extern void *dsm_segment_address(dsm_segment *seg); -extern Size dsm_segment_map_length(dsm_segment *seg); -extern dsm_handle dsm_segment_handle(dsm_segment *seg); - -/* Cleanup hooks. */ -typedef void (*on_dsm_detach_callback) (dsm_segment *, Datum arg); -extern void on_dsm_detach(dsm_segment *seg, - on_dsm_detach_callback function, Datum arg); -extern void cancel_on_dsm_detach(dsm_segment *seg, - on_dsm_detach_callback function, Datum arg); -extern void reset_on_dsm_detach(void); - -#endif /* DSM_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/dsm_impl.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/dsm_impl.h deleted file mode 100644 index c51584dc6..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/dsm_impl.h +++ /dev/null @@ -1,76 +0,0 @@ -/*------------------------------------------------------------------------- - * - * dsm_impl.h - * low-level dynamic shared memory primitives - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/dsm_impl.h - * - *------------------------------------------------------------------------- - */ -#ifndef DSM_IMPL_H -#define DSM_IMPL_H - -/* Dynamic shared memory implementations. */ -#define DSM_IMPL_POSIX 1 -#define DSM_IMPL_SYSV 2 -#define DSM_IMPL_WINDOWS 3 -#define DSM_IMPL_MMAP 4 - -/* - * Determine which dynamic shared memory implementations will be supported - * on this platform, and which one will be the default. - */ -#ifdef WIN32 -#define USE_DSM_WINDOWS -#define DEFAULT_DYNAMIC_SHARED_MEMORY_TYPE DSM_IMPL_WINDOWS -#else -#ifdef HAVE_SHM_OPEN -#define USE_DSM_POSIX -#define DEFAULT_DYNAMIC_SHARED_MEMORY_TYPE DSM_IMPL_POSIX -#endif -#define USE_DSM_SYSV -#ifndef DEFAULT_DYNAMIC_SHARED_MEMORY_TYPE -#define DEFAULT_DYNAMIC_SHARED_MEMORY_TYPE DSM_IMPL_SYSV -#endif -#define USE_DSM_MMAP -#endif - -/* GUC. */ -extern PGDLLIMPORT int dynamic_shared_memory_type; -extern PGDLLIMPORT int min_dynamic_shared_memory; - -/* - * Directory for on-disk state. - * - * This is used by all implementations for crash recovery and by the mmap - * implementation for storage. - */ -#define PG_DYNSHMEM_DIR "pg_dynshmem" -#define PG_DYNSHMEM_MMAP_FILE_PREFIX "mmap." - -/* A "name" for a dynamic shared memory segment. */ -typedef uint32 dsm_handle; - -/* All the shared-memory operations we know about. */ -typedef enum -{ - DSM_OP_CREATE, - DSM_OP_ATTACH, - DSM_OP_DETACH, - DSM_OP_DESTROY -} dsm_op; - -/* Create, attach to, detach from, resize, or destroy a segment. */ -extern bool dsm_impl_op(dsm_op op, dsm_handle handle, Size request_size, - void **impl_private, void **mapped_address, Size *mapped_size, - int elevel); - -/* Implementation-dependent actions required to keep segment until shutdown. */ -extern void dsm_impl_pin_segment(dsm_handle handle, void *impl_private, - void **impl_private_pm_handle); -extern void dsm_impl_unpin_segment(dsm_handle handle, void **impl_private); - -#endif /* DSM_IMPL_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/fd.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/fd.h deleted file mode 100644 index 69549b000..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/fd.h +++ /dev/null @@ -1,198 +0,0 @@ -/*------------------------------------------------------------------------- - * - * fd.h - * Virtual file descriptor definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/fd.h - * - *------------------------------------------------------------------------- - */ - -/* - * calls: - * - * File {Close, Read, Write, Size, Sync} - * {Path Name Open, Allocate, Free} File - * - * These are NOT JUST RENAMINGS OF THE UNIX ROUTINES. - * Use them for all file activity... - * - * File fd; - * fd = PathNameOpenFile("foo", O_RDONLY); - * - * AllocateFile(); - * FreeFile(); - * - * Use AllocateFile, not fopen, if you need a stdio file (FILE*); then - * use FreeFile, not fclose, to close it. AVOID using stdio for files - * that you intend to hold open for any length of time, since there is - * no way for them to share kernel file descriptors with other files. - * - * Likewise, use AllocateDir/FreeDir, not opendir/closedir, to allocate - * open directories (DIR*), and OpenTransientFile/CloseTransientFile for an - * unbuffered file descriptor. - * - * If you really can't use any of the above, at least call AcquireExternalFD - * or ReserveExternalFD to report any file descriptors that are held for any - * length of time. Failure to do so risks unnecessary EMFILE errors. - */ -#ifndef FD_H -#define FD_H - -#include - -typedef enum RecoveryInitSyncMethod -{ - RECOVERY_INIT_SYNC_METHOD_FSYNC, - RECOVERY_INIT_SYNC_METHOD_SYNCFS -} RecoveryInitSyncMethod; - -struct iovec; /* avoid including port/pg_iovec.h here */ - -typedef int File; - - -/* GUC parameter */ -extern PGDLLIMPORT int max_files_per_process; -extern PGDLLIMPORT bool data_sync_retry; -extern PGDLLIMPORT int recovery_init_sync_method; - -/* - * This is private to fd.c, but exported for save/restore_backend_variables() - */ -extern PGDLLIMPORT int max_safe_fds; - -/* - * On Windows, we have to interpret EACCES as possibly meaning the same as - * ENOENT, because if a file is unlinked-but-not-yet-gone on that platform, - * that's what you get. Ugh. This code is designed so that we don't - * actually believe these cases are okay without further evidence (namely, - * a pending fsync request getting canceled ... see ProcessSyncRequests). - */ -#ifndef WIN32 -#define FILE_POSSIBLY_DELETED(err) ((err) == ENOENT) -#else -#define FILE_POSSIBLY_DELETED(err) ((err) == ENOENT || (err) == EACCES) -#endif - -/* - * O_DIRECT is not standard, but almost every Unix has it. We translate it - * to the appropriate Windows flag in src/port/open.c. We simulate it with - * fcntl(F_NOCACHE) on macOS inside fd.c's open() wrapper. We use the name - * PG_O_DIRECT rather than defining O_DIRECT in that case (probably not a good - * idea on a Unix). - */ -#if defined(O_DIRECT) -#define PG_O_DIRECT O_DIRECT -#elif defined(F_NOCACHE) -#define PG_O_DIRECT 0x80000000 -#define PG_O_DIRECT_USE_F_NOCACHE -#else -#define PG_O_DIRECT 0 -#endif - -/* - * prototypes for functions in fd.c - */ - -/* Operations on virtual Files --- equivalent to Unix kernel file ops */ -extern File PathNameOpenFile(const char *fileName, int fileFlags); -extern File PathNameOpenFilePerm(const char *fileName, int fileFlags, mode_t fileMode); -extern File OpenTemporaryFile(bool interXact); -extern void FileClose(File file); -extern int FilePrefetch(File file, off_t offset, int amount, uint32 wait_event_info); -extern int FileRead(File file, char *buffer, int amount, off_t offset, uint32 wait_event_info); -extern int FileWrite(File file, char *buffer, int amount, off_t offset, uint32 wait_event_info); -extern int FileSync(File file, uint32 wait_event_info); -extern off_t FileSize(File file); -extern int FileTruncate(File file, off_t offset, uint32 wait_event_info); -extern void FileWriteback(File file, off_t offset, off_t nbytes, uint32 wait_event_info); -extern char *FilePathName(File file); -extern int FileGetRawDesc(File file); -extern int FileGetRawFlags(File file); -extern mode_t FileGetRawMode(File file); - -/* Operations used for sharing named temporary files */ -extern File PathNameCreateTemporaryFile(const char *name, bool error_on_failure); -extern File PathNameOpenTemporaryFile(const char *path, int mode); -extern bool PathNameDeleteTemporaryFile(const char *name, bool error_on_failure); -extern void PathNameCreateTemporaryDir(const char *base, const char *name); -extern void PathNameDeleteTemporaryDir(const char *name); -extern void TempTablespacePath(char *path, Oid tablespace); - -/* Operations that allow use of regular stdio --- USE WITH CAUTION */ -extern FILE *AllocateFile(const char *name, const char *mode); -extern int FreeFile(FILE *file); - -/* Operations that allow use of pipe streams (popen/pclose) */ -extern FILE *OpenPipeStream(const char *command, const char *mode); -extern int ClosePipeStream(FILE *file); - -/* Operations to allow use of the library routines */ -extern DIR *AllocateDir(const char *dirname); -extern struct dirent *ReadDir(DIR *dir, const char *dirname); -extern struct dirent *ReadDirExtended(DIR *dir, const char *dirname, - int elevel); -extern int FreeDir(DIR *dir); - -/* Operations to allow use of a plain kernel FD, with automatic cleanup */ -extern int OpenTransientFile(const char *fileName, int fileFlags); -extern int OpenTransientFilePerm(const char *fileName, int fileFlags, mode_t fileMode); -extern int CloseTransientFile(int fd); - -/* If you've really really gotta have a plain kernel FD, use this */ -extern int BasicOpenFile(const char *fileName, int fileFlags); -extern int BasicOpenFilePerm(const char *fileName, int fileFlags, mode_t fileMode); - -/* Use these for other cases, and also for long-lived BasicOpenFile FDs */ -extern bool AcquireExternalFD(void); -extern void ReserveExternalFD(void); -extern void ReleaseExternalFD(void); - -/* Make a directory with default permissions */ -extern int MakePGDirectory(const char *directoryName); - -/* Miscellaneous support routines */ -extern void InitFileAccess(void); -extern void InitTemporaryFileAccess(void); -extern void set_max_safe_fds(void); -extern void closeAllVfds(void); -extern void SetTempTablespaces(Oid *tableSpaces, int numSpaces); -extern bool TempTablespacesAreSet(void); -extern int GetTempTablespaces(Oid *tableSpaces, int numSpaces); -extern Oid GetNextTempTableSpace(void); -extern void AtEOXact_Files(bool isCommit); -extern void AtEOSubXact_Files(bool isCommit, SubTransactionId mySubid, - SubTransactionId parentSubid); -extern void RemovePgTempFiles(void); -extern void RemovePgTempFilesInDir(const char *tmpdirname, bool missing_ok, - bool unlink_all); -extern bool looks_like_temp_rel_name(const char *name); - -extern int pg_fsync(int fd); -extern int pg_fsync_no_writethrough(int fd); -extern int pg_fsync_writethrough(int fd); -extern int pg_fdatasync(int fd); -extern void pg_flush_data(int fd, off_t offset, off_t amount); -extern ssize_t pg_pwritev_with_retry(int fd, - const struct iovec *iov, - int iovcnt, - off_t offset); -extern int pg_truncate(const char *path, off_t length); -extern void fsync_fname(const char *fname, bool isdir); -extern int fsync_fname_ext(const char *fname, bool isdir, bool ignore_perm, int elevel); -extern int durable_rename(const char *oldfile, const char *newfile, int loglevel); -extern int durable_unlink(const char *fname, int loglevel); -extern int durable_rename_excl(const char *oldfile, const char *newfile, int loglevel); -extern void SyncDataDirectory(void); -extern int data_sync_elevel(int elevel); - -/* Filename components */ -#define PG_TEMP_FILES_DIR "pgsql_tmp" -#define PG_TEMP_FILE_PREFIX "pgsql_tmp" - -#endif /* FD_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/fileset.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/fileset.h deleted file mode 100644 index ad3788471..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/fileset.h +++ /dev/null @@ -1,40 +0,0 @@ -/*------------------------------------------------------------------------- - * - * fileset.h - * Management of named temporary files. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/fileset.h - * - *------------------------------------------------------------------------- - */ - -#ifndef FILESET_H -#define FILESET_H - -#include "storage/fd.h" - -/* - * A set of temporary files. - */ -typedef struct FileSet -{ - pid_t creator_pid; /* PID of the creating process */ - uint32 number; /* per-PID identifier */ - int ntablespaces; /* number of tablespaces to use */ - Oid tablespaces[8]; /* OIDs of tablespaces to use. Assumes that - * it's rare that there more than temp - * tablespaces. */ -} FileSet; - -extern void FileSetInit(FileSet *fileset); -extern File FileSetCreate(FileSet *fileset, const char *name); -extern File FileSetOpen(FileSet *fileset, const char *name, - int mode); -extern bool FileSetDelete(FileSet *fileset, const char *name, - bool error_on_failure); -extern void FileSetDeleteAll(FileSet *fileset); - -#endif diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/ipc.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/ipc.h deleted file mode 100644 index 43843618a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/ipc.h +++ /dev/null @@ -1,84 +0,0 @@ -/*------------------------------------------------------------------------- - * - * ipc.h - * POSTGRES inter-process communication definitions. - * - * This file is misnamed, as it no longer has much of anything directly - * to do with IPC. The functionality here is concerned with managing - * exit-time cleanup for either a postmaster or a backend. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/ipc.h - * - *------------------------------------------------------------------------- - */ -#ifndef IPC_H -#define IPC_H - -typedef void (*pg_on_exit_callback) (int code, Datum arg); -typedef void (*shmem_startup_hook_type) (void); - -/*---------- - * API for handling cleanup that must occur during either ereport(ERROR) - * or ereport(FATAL) exits from a block of code. (Typical examples are - * undoing transient changes to shared-memory state.) - * - * PG_ENSURE_ERROR_CLEANUP(cleanup_function, arg); - * { - * ... code that might throw ereport(ERROR) or ereport(FATAL) ... - * } - * PG_END_ENSURE_ERROR_CLEANUP(cleanup_function, arg); - * - * where the cleanup code is in a function declared per pg_on_exit_callback. - * The Datum value "arg" can carry any information the cleanup function - * needs. - * - * This construct ensures that cleanup_function() will be called during - * either ERROR or FATAL exits. It will not be called on successful - * exit from the controlled code. (If you want it to happen then too, - * call the function yourself from just after the construct.) - * - * Note: the macro arguments are multiply evaluated, so avoid side-effects. - *---------- - */ -#define PG_ENSURE_ERROR_CLEANUP(cleanup_function, arg) \ - do { \ - before_shmem_exit(cleanup_function, arg); \ - PG_TRY() - -#define PG_END_ENSURE_ERROR_CLEANUP(cleanup_function, arg) \ - cancel_before_shmem_exit(cleanup_function, arg); \ - PG_CATCH(); \ - { \ - cancel_before_shmem_exit(cleanup_function, arg); \ - cleanup_function (0, arg); \ - PG_RE_THROW(); \ - } \ - PG_END_TRY(); \ - } while (0) - - -/* ipc.c */ -extern PGDLLIMPORT __thread bool proc_exit_inprogress; -extern PGDLLIMPORT bool shmem_exit_inprogress; - -extern void proc_exit(int code) pg_attribute_noreturn(); -extern void shmem_exit(int code); -extern void on_proc_exit(pg_on_exit_callback function, Datum arg); -extern void on_shmem_exit(pg_on_exit_callback function, Datum arg); -extern void before_shmem_exit(pg_on_exit_callback function, Datum arg); -extern void cancel_before_shmem_exit(pg_on_exit_callback function, Datum arg); -extern void on_exit_reset(void); -extern void check_on_shmem_exit_lists_are_empty(void); - -/* ipci.c */ -extern PGDLLIMPORT shmem_startup_hook_type shmem_startup_hook; - -extern Size CalculateShmemSize(int *num_semaphores); -extern void CreateSharedMemoryAndSemaphores(void); -extern void InitializeShmemGUCs(void); - -#endif /* IPC_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/item.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/item.h deleted file mode 100644 index 6f3eaebc0..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/item.h +++ /dev/null @@ -1,19 +0,0 @@ -/*------------------------------------------------------------------------- - * - * item.h - * POSTGRES disk item definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/item.h - * - *------------------------------------------------------------------------- - */ -#ifndef ITEM_H -#define ITEM_H - -typedef Pointer Item; - -#endif /* ITEM_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/itemid.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/itemid.h deleted file mode 100644 index e33637ff2..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/itemid.h +++ /dev/null @@ -1,184 +0,0 @@ -/*------------------------------------------------------------------------- - * - * itemid.h - * Standard POSTGRES buffer page item identifier/line pointer definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/itemid.h - * - *------------------------------------------------------------------------- - */ -#ifndef ITEMID_H -#define ITEMID_H - -/* - * A line pointer on a buffer page. See buffer page definitions and comments - * for an explanation of how line pointers are used. - * - * In some cases a line pointer is "in use" but does not have any associated - * storage on the page. By convention, lp_len == 0 in every line pointer - * that does not have storage, independently of its lp_flags state. - */ -typedef struct ItemIdData -{ - unsigned lp_off:15, /* offset to tuple (from start of page) */ - lp_flags:2, /* state of line pointer, see below */ - lp_len:15; /* byte length of tuple */ -} ItemIdData; - -typedef ItemIdData *ItemId; - -/* - * lp_flags has these possible states. An UNUSED line pointer is available - * for immediate re-use, the other states are not. - */ -#define LP_UNUSED 0 /* unused (should always have lp_len=0) */ -#define LP_NORMAL 1 /* used (should always have lp_len>0) */ -#define LP_REDIRECT 2 /* HOT redirect (should have lp_len=0) */ -#define LP_DEAD 3 /* dead, may or may not have storage */ - -/* - * Item offsets and lengths are represented by these types when - * they're not actually stored in an ItemIdData. - */ -typedef uint16 ItemOffset; -typedef uint16 ItemLength; - - -/* ---------------- - * support macros - * ---------------- - */ - -/* - * ItemIdGetLength - */ -#define ItemIdGetLength(itemId) \ - ((itemId)->lp_len) - -/* - * ItemIdGetOffset - */ -#define ItemIdGetOffset(itemId) \ - ((itemId)->lp_off) - -/* - * ItemIdGetFlags - */ -#define ItemIdGetFlags(itemId) \ - ((itemId)->lp_flags) - -/* - * ItemIdGetRedirect - * In a REDIRECT pointer, lp_off holds offset number for next line pointer - */ -#define ItemIdGetRedirect(itemId) \ - ((itemId)->lp_off) - -/* - * ItemIdIsValid - * True iff item identifier is valid. - * This is a pretty weak test, probably useful only in Asserts. - */ -#define ItemIdIsValid(itemId) PointerIsValid(itemId) - -/* - * ItemIdIsUsed - * True iff item identifier is in use. - */ -#define ItemIdIsUsed(itemId) \ - ((itemId)->lp_flags != LP_UNUSED) - -/* - * ItemIdIsNormal - * True iff item identifier is in state NORMAL. - */ -#define ItemIdIsNormal(itemId) \ - ((itemId)->lp_flags == LP_NORMAL) - -/* - * ItemIdIsRedirected - * True iff item identifier is in state REDIRECT. - */ -#define ItemIdIsRedirected(itemId) \ - ((itemId)->lp_flags == LP_REDIRECT) - -/* - * ItemIdIsDead - * True iff item identifier is in state DEAD. - */ -#define ItemIdIsDead(itemId) \ - ((itemId)->lp_flags == LP_DEAD) - -/* - * ItemIdHasStorage - * True iff item identifier has associated storage. - */ -#define ItemIdHasStorage(itemId) \ - ((itemId)->lp_len != 0) - -/* - * ItemIdSetUnused - * Set the item identifier to be UNUSED, with no storage. - * Beware of multiple evaluations of itemId! - */ -#define ItemIdSetUnused(itemId) \ -( \ - (itemId)->lp_flags = LP_UNUSED, \ - (itemId)->lp_off = 0, \ - (itemId)->lp_len = 0 \ -) - -/* - * ItemIdSetNormal - * Set the item identifier to be NORMAL, with the specified storage. - * Beware of multiple evaluations of itemId! - */ -#define ItemIdSetNormal(itemId, off, len) \ -( \ - (itemId)->lp_flags = LP_NORMAL, \ - (itemId)->lp_off = (off), \ - (itemId)->lp_len = (len) \ -) - -/* - * ItemIdSetRedirect - * Set the item identifier to be REDIRECT, with the specified link. - * Beware of multiple evaluations of itemId! - */ -#define ItemIdSetRedirect(itemId, link) \ -( \ - (itemId)->lp_flags = LP_REDIRECT, \ - (itemId)->lp_off = (link), \ - (itemId)->lp_len = 0 \ -) - -/* - * ItemIdSetDead - * Set the item identifier to be DEAD, with no storage. - * Beware of multiple evaluations of itemId! - */ -#define ItemIdSetDead(itemId) \ -( \ - (itemId)->lp_flags = LP_DEAD, \ - (itemId)->lp_off = 0, \ - (itemId)->lp_len = 0 \ -) - -/* - * ItemIdMarkDead - * Set the item identifier to be DEAD, keeping its existing storage. - * - * Note: in indexes, this is used as if it were a hint-bit mechanism; - * we trust that multiple processors can do this in parallel and get - * the same result. - */ -#define ItemIdMarkDead(itemId) \ -( \ - (itemId)->lp_flags = LP_DEAD \ -) - -#endif /* ITEMID_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/itemptr.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/itemptr.h deleted file mode 100644 index 81947bc65..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/itemptr.h +++ /dev/null @@ -1,208 +0,0 @@ -/*------------------------------------------------------------------------- - * - * itemptr.h - * POSTGRES disk item pointer definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/itemptr.h - * - *------------------------------------------------------------------------- - */ -#ifndef ITEMPTR_H -#define ITEMPTR_H - -#include "storage/block.h" -#include "storage/off.h" - -/* - * ItemPointer: - * - * This is a pointer to an item within a disk page of a known file - * (for example, a cross-link from an index to its parent table). - * ip_blkid tells us which block, ip_posid tells us which entry in - * the linp (ItemIdData) array we want. - * - * Note: because there is an item pointer in each tuple header and index - * tuple header on disk, it's very important not to waste space with - * structure padding bytes. The struct is designed to be six bytes long - * (it contains three int16 fields) but a few compilers will pad it to - * eight bytes unless coerced. We apply appropriate persuasion where - * possible. If your compiler can't be made to play along, you'll waste - * lots of space. - */ -typedef struct ItemPointerData -{ - BlockIdData ip_blkid; - OffsetNumber ip_posid; -} - -/* If compiler understands packed and aligned pragmas, use those */ -#if defined(pg_attribute_packed) && defined(pg_attribute_aligned) - pg_attribute_packed() - pg_attribute_aligned(2) -#endif -ItemPointerData; - -typedef ItemPointerData *ItemPointer; - -/* ---------------- - * special values used in heap tuples (t_ctid) - * ---------------- - */ - -/* - * If a heap tuple holds a speculative insertion token rather than a real - * TID, ip_posid is set to SpecTokenOffsetNumber, and the token is stored in - * ip_blkid. SpecTokenOffsetNumber must be higher than MaxOffsetNumber, so - * that it can be distinguished from a valid offset number in a regular item - * pointer. - */ -#define SpecTokenOffsetNumber 0xfffe - -/* - * When a tuple is moved to a different partition by UPDATE, the t_ctid of - * the old tuple version is set to this magic value. - */ -#define MovedPartitionsOffsetNumber 0xfffd -#define MovedPartitionsBlockNumber InvalidBlockNumber - - -/* ---------------- - * support macros - * ---------------- - */ - -/* - * ItemPointerIsValid - * True iff the disk item pointer is not NULL. - */ -#define ItemPointerIsValid(pointer) \ - ((bool) (PointerIsValid(pointer) && ((pointer)->ip_posid != 0))) - -/* - * ItemPointerGetBlockNumberNoCheck - * Returns the block number of a disk item pointer. - */ -#define ItemPointerGetBlockNumberNoCheck(pointer) \ -( \ - BlockIdGetBlockNumber(&(pointer)->ip_blkid) \ -) - -/* - * ItemPointerGetBlockNumber - * As above, but verifies that the item pointer looks valid. - */ -#define ItemPointerGetBlockNumber(pointer) \ -( \ - AssertMacro(ItemPointerIsValid(pointer)), \ - ItemPointerGetBlockNumberNoCheck(pointer) \ -) - -/* - * ItemPointerGetOffsetNumberNoCheck - * Returns the offset number of a disk item pointer. - */ -#define ItemPointerGetOffsetNumberNoCheck(pointer) \ -( \ - (pointer)->ip_posid \ -) - -/* - * ItemPointerGetOffsetNumber - * As above, but verifies that the item pointer looks valid. - */ -#define ItemPointerGetOffsetNumber(pointer) \ -( \ - AssertMacro(ItemPointerIsValid(pointer)), \ - ItemPointerGetOffsetNumberNoCheck(pointer) \ -) - -/* - * ItemPointerSet - * Sets a disk item pointer to the specified block and offset. - */ -#define ItemPointerSet(pointer, blockNumber, offNum) \ -( \ - AssertMacro(PointerIsValid(pointer)), \ - BlockIdSet(&((pointer)->ip_blkid), blockNumber), \ - (pointer)->ip_posid = offNum \ -) - -/* - * ItemPointerSetBlockNumber - * Sets a disk item pointer to the specified block. - */ -#define ItemPointerSetBlockNumber(pointer, blockNumber) \ -( \ - AssertMacro(PointerIsValid(pointer)), \ - BlockIdSet(&((pointer)->ip_blkid), blockNumber) \ -) - -/* - * ItemPointerSetOffsetNumber - * Sets a disk item pointer to the specified offset. - */ -#define ItemPointerSetOffsetNumber(pointer, offsetNumber) \ -( \ - AssertMacro(PointerIsValid(pointer)), \ - (pointer)->ip_posid = (offsetNumber) \ -) - -/* - * ItemPointerCopy - * Copies the contents of one disk item pointer to another. - * - * Should there ever be padding in an ItemPointer this would need to be handled - * differently as it's used as hash key. - */ -#define ItemPointerCopy(fromPointer, toPointer) \ -( \ - AssertMacro(PointerIsValid(toPointer)), \ - AssertMacro(PointerIsValid(fromPointer)), \ - *(toPointer) = *(fromPointer) \ -) - -/* - * ItemPointerSetInvalid - * Sets a disk item pointer to be invalid. - */ -#define ItemPointerSetInvalid(pointer) \ -( \ - AssertMacro(PointerIsValid(pointer)), \ - BlockIdSet(&((pointer)->ip_blkid), InvalidBlockNumber), \ - (pointer)->ip_posid = InvalidOffsetNumber \ -) - -/* - * ItemPointerIndicatesMovedPartitions - * True iff the block number indicates the tuple has moved to another - * partition. - */ -#define ItemPointerIndicatesMovedPartitions(pointer) \ -( \ - ItemPointerGetOffsetNumber(pointer) == MovedPartitionsOffsetNumber && \ - ItemPointerGetBlockNumberNoCheck(pointer) == MovedPartitionsBlockNumber \ -) - -/* - * ItemPointerSetMovedPartitions - * Indicate that the item referenced by the itempointer has moved into a - * different partition. - */ -#define ItemPointerSetMovedPartitions(pointer) \ - ItemPointerSet((pointer), MovedPartitionsBlockNumber, MovedPartitionsOffsetNumber) - -/* ---------------- - * externs - * ---------------- - */ - -extern bool ItemPointerEquals(ItemPointer pointer1, ItemPointer pointer2); -extern int32 ItemPointerCompare(ItemPointer arg1, ItemPointer arg2); -extern void ItemPointerInc(ItemPointer pointer); -extern void ItemPointerDec(ItemPointer pointer); - -#endif /* ITEMPTR_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/large_object.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/large_object.h deleted file mode 100644 index b826a7dcd..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/large_object.h +++ /dev/null @@ -1,100 +0,0 @@ -/*------------------------------------------------------------------------- - * - * large_object.h - * Declarations for PostgreSQL large objects. POSTGRES 4.2 supported - * zillions of large objects (internal, external, jaquith, inversion). - * Now we only support inversion. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/large_object.h - * - *------------------------------------------------------------------------- - */ -#ifndef LARGE_OBJECT_H -#define LARGE_OBJECT_H - -#include "utils/snapshot.h" - - -/*---------- - * Data about a currently-open large object. - * - * id is the logical OID of the large object - * snapshot is the snapshot to use for read/write operations - * subid is the subtransaction that opened the desc (or currently owns it) - * offset is the current seek offset within the LO - * flags contains some flag bits - * - * NOTE: as of v11, permission checks are made when the large object is - * opened; therefore IFS_RDLOCK/IFS_WRLOCK indicate that read or write mode - * has been requested *and* the corresponding permission has been checked. - * - * NOTE: before 7.1, we also had to store references to the separate table - * and index of a specific large object. Now they all live in pg_largeobject - * and are accessed via a common relation descriptor. - *---------- - */ -typedef struct LargeObjectDesc -{ - Oid id; /* LO's identifier */ - Snapshot snapshot; /* snapshot to use */ - SubTransactionId subid; /* owning subtransaction ID */ - uint64 offset; /* current seek pointer */ - int flags; /* see flag bits below */ - -/* bits in flags: */ -#define IFS_RDLOCK (1 << 0) /* LO was opened for reading */ -#define IFS_WRLOCK (1 << 1) /* LO was opened for writing */ - -} LargeObjectDesc; - - -/* - * Each "page" (tuple) of a large object can hold this much data - * - * We could set this as high as BLCKSZ less some overhead, but it seems - * better to make it a smaller value, so that not as much space is used - * up when a page-tuple is updated. Note that the value is deliberately - * chosen large enough to trigger the tuple toaster, so that we will - * attempt to compress page tuples in-line. (But they won't be moved off - * unless the user creates a toast-table for pg_largeobject...) - * - * Also, it seems to be a smart move to make the page size be a power of 2, - * since clients will often be written to send data in power-of-2 blocks. - * This avoids unnecessary tuple updates caused by partial-page writes. - * - * NB: Changing LOBLKSIZE requires an initdb. - */ -#define LOBLKSIZE (BLCKSZ / 4) - -/* - * Maximum length in bytes for a large object. To make this larger, we'd - * have to widen pg_largeobject.pageno as well as various internal variables. - */ -#define MAX_LARGE_OBJECT_SIZE ((int64) INT_MAX * LOBLKSIZE) - - -/* - * GUC: backwards-compatibility flag to suppress LO permission checks - */ -extern PGDLLIMPORT bool lo_compat_privileges; - -/* - * Function definitions... - */ - -/* inversion stuff in inv_api.c */ -extern void close_lo_relation(bool isCommit); -extern Oid inv_create(Oid lobjId); -extern LargeObjectDesc *inv_open(Oid lobjId, int flags, MemoryContext mcxt); -extern void inv_close(LargeObjectDesc *obj_desc); -extern int inv_drop(Oid lobjId); -extern int64 inv_seek(LargeObjectDesc *obj_desc, int64 offset, int whence); -extern int64 inv_tell(LargeObjectDesc *obj_desc); -extern int inv_read(LargeObjectDesc *obj_desc, char *buf, int nbytes); -extern int inv_write(LargeObjectDesc *obj_desc, const char *buf, int nbytes); -extern void inv_truncate(LargeObjectDesc *obj_desc, int64 len); - -#endif /* LARGE_OBJECT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/latch.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/latch.h deleted file mode 100644 index 68ab740f1..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/latch.h +++ /dev/null @@ -1,186 +0,0 @@ -/*------------------------------------------------------------------------- - * - * latch.h - * Routines for interprocess latches - * - * A latch is a boolean variable, with operations that let processes sleep - * until it is set. A latch can be set from another process, or a signal - * handler within the same process. - * - * The latch interface is a reliable replacement for the common pattern of - * using pg_usleep() or select() to wait until a signal arrives, where the - * signal handler sets a flag variable. Because on some platforms an - * incoming signal doesn't interrupt sleep, and even on platforms where it - * does there is a race condition if the signal arrives just before - * entering the sleep, the common pattern must periodically wake up and - * poll the flag variable. The pselect() system call was invented to solve - * this problem, but it is not portable enough. Latches are designed to - * overcome these limitations, allowing you to sleep without polling and - * ensuring quick response to signals from other processes. - * - * There are two kinds of latches: local and shared. A local latch is - * initialized by InitLatch, and can only be set from the same process. - * A local latch can be used to wait for a signal to arrive, by calling - * SetLatch in the signal handler. A shared latch resides in shared memory, - * and must be initialized at postmaster startup by InitSharedLatch. Before - * a shared latch can be waited on, it must be associated with a process - * with OwnLatch. Only the process owning the latch can wait on it, but any - * process can set it. - * - * There are three basic operations on a latch: - * - * SetLatch - Sets the latch - * ResetLatch - Clears the latch, allowing it to be set again - * WaitLatch - Waits for the latch to become set - * - * WaitLatch includes a provision for timeouts (which should be avoided - * when possible, as they incur extra overhead) and a provision for - * postmaster child processes to wake up immediately on postmaster death. - * See latch.c for detailed specifications for the exported functions. - * - * The correct pattern to wait for event(s) is: - * - * for (;;) - * { - * ResetLatch(); - * if (work to do) - * Do Stuff(); - * WaitLatch(); - * } - * - * It's important to reset the latch *before* checking if there's work to - * do. Otherwise, if someone sets the latch between the check and the - * ResetLatch call, you will miss it and Wait will incorrectly block. - * - * Another valid coding pattern looks like: - * - * for (;;) - * { - * if (work to do) - * Do Stuff(); // in particular, exit loop if some condition satisfied - * WaitLatch(); - * ResetLatch(); - * } - * - * This is useful to reduce latch traffic if it's expected that the loop's - * termination condition will often be satisfied in the first iteration; - * the cost is an extra loop iteration before blocking when it is not. - * What must be avoided is placing any checks for asynchronous events after - * WaitLatch and before ResetLatch, as that creates a race condition. - * - * To wake up the waiter, you must first set a global flag or something - * else that the wait loop tests in the "if (work to do)" part, and call - * SetLatch *after* that. SetLatch is designed to return quickly if the - * latch is already set. - * - * On some platforms, signals will not interrupt the latch wait primitive - * by themselves. Therefore, it is critical that any signal handler that - * is meant to terminate a WaitLatch wait calls SetLatch. - * - * Note that use of the process latch (PGPROC.procLatch) is generally better - * than an ad-hoc shared latch for signaling auxiliary processes. This is - * because generic signal handlers will call SetLatch on the process latch - * only, so using any latch other than the process latch effectively precludes - * use of any generic handler. - * - * - * WaitEventSets allow to wait for latches being set and additional events - - * postmaster dying and socket readiness of several sockets currently - at the - * same time. On many platforms using a long lived event set is more - * efficient than using WaitLatch or WaitLatchOrSocket. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/latch.h - * - *------------------------------------------------------------------------- - */ -#ifndef LATCH_H -#define LATCH_H - -#include - -/* - * Latch structure should be treated as opaque and only accessed through - * the public functions. It is defined here to allow embedding Latches as - * part of bigger structs. - */ -typedef struct Latch -{ - sig_atomic_t is_set; - sig_atomic_t maybe_sleeping; - bool is_shared; - int owner_pid; -#ifdef WIN32 - HANDLE event; -#endif -} Latch; - -/* - * Bitmasks for events that may wake-up WaitLatch(), WaitLatchOrSocket(), or - * WaitEventSetWait(). - */ -#define WL_LATCH_SET (1 << 0) -#define WL_SOCKET_READABLE (1 << 1) -#define WL_SOCKET_WRITEABLE (1 << 2) -#define WL_TIMEOUT (1 << 3) /* not for WaitEventSetWait() */ -#define WL_POSTMASTER_DEATH (1 << 4) -#define WL_EXIT_ON_PM_DEATH (1 << 5) -#ifdef WIN32 -#define WL_SOCKET_CONNECTED (1 << 6) -#else -/* avoid having to deal with case on platforms not requiring it */ -#define WL_SOCKET_CONNECTED WL_SOCKET_WRITEABLE -#endif -#define WL_SOCKET_CLOSED (1 << 7) -#define WL_SOCKET_MASK (WL_SOCKET_READABLE | \ - WL_SOCKET_WRITEABLE | \ - WL_SOCKET_CONNECTED | \ - WL_SOCKET_CLOSED) - -typedef struct WaitEvent -{ - int pos; /* position in the event data structure */ - uint32 events; /* triggered events */ - pgsocket fd; /* socket fd associated with event */ - void *user_data; /* pointer provided in AddWaitEventToSet */ -#ifdef WIN32 - bool reset; /* Is reset of the event required? */ -#endif -} WaitEvent; - -/* forward declaration to avoid exposing latch.c implementation details */ -typedef struct WaitEventSet WaitEventSet; - -/* - * prototypes for functions in latch.c - */ -extern void InitializeLatchSupport(void); -extern void InitLatch(Latch *latch); -extern void InitSharedLatch(Latch *latch); -extern void OwnLatch(Latch *latch); -extern void DisownLatch(Latch *latch); -extern void SetLatch(Latch *latch); -extern void ResetLatch(Latch *latch); -extern void ShutdownLatchSupport(void); - -extern WaitEventSet *CreateWaitEventSet(MemoryContext context, int nevents); -extern void FreeWaitEventSet(WaitEventSet *set); -extern int AddWaitEventToSet(WaitEventSet *set, uint32 events, pgsocket fd, - Latch *latch, void *user_data); -extern void ModifyWaitEvent(WaitEventSet *set, int pos, uint32 events, Latch *latch); - -extern int WaitEventSetWait(WaitEventSet *set, long timeout, - WaitEvent *occurred_events, int nevents, - uint32 wait_event_info); -extern int WaitLatch(Latch *latch, int wakeEvents, long timeout, - uint32 wait_event_info); -extern int WaitLatchOrSocket(Latch *latch, int wakeEvents, - pgsocket sock, long timeout, uint32 wait_event_info); -extern void InitializeLatchWaitSet(void); -extern int GetNumRegisteredWaitEvents(WaitEventSet *set); -extern bool WaitEventSetCanReportClosed(void); - -#endif /* LATCH_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/lmgr.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/lmgr.h deleted file mode 100644 index be1d2c99a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/lmgr.h +++ /dev/null @@ -1,115 +0,0 @@ -/*------------------------------------------------------------------------- - * - * lmgr.h - * POSTGRES lock manager definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/lmgr.h - * - *------------------------------------------------------------------------- - */ -#ifndef LMGR_H -#define LMGR_H - -#include "lib/stringinfo.h" -#include "storage/itemptr.h" -#include "storage/lock.h" -#include "utils/rel.h" - - -/* XactLockTableWait operations */ -typedef enum XLTW_Oper -{ - XLTW_None, - XLTW_Update, - XLTW_Delete, - XLTW_Lock, - XLTW_LockUpdated, - XLTW_InsertIndex, - XLTW_InsertIndexUnique, - XLTW_FetchUpdated, - XLTW_RecheckExclusionConstr -} XLTW_Oper; - -extern void RelationInitLockInfo(Relation relation); - -/* Lock a relation */ -extern void LockRelationOid(Oid relid, LOCKMODE lockmode); -extern void LockRelationId(LockRelId *relid, LOCKMODE lockmode); -extern bool ConditionalLockRelationOid(Oid relid, LOCKMODE lockmode); -extern void UnlockRelationId(LockRelId *relid, LOCKMODE lockmode); -extern void UnlockRelationOid(Oid relid, LOCKMODE lockmode); - -extern void LockRelation(Relation relation, LOCKMODE lockmode); -extern bool ConditionalLockRelation(Relation relation, LOCKMODE lockmode); -extern void UnlockRelation(Relation relation, LOCKMODE lockmode); -extern bool CheckRelationLockedByMe(Relation relation, LOCKMODE lockmode, - bool orstronger); -extern bool LockHasWaitersRelation(Relation relation, LOCKMODE lockmode); - -extern void LockRelationIdForSession(LockRelId *relid, LOCKMODE lockmode); -extern void UnlockRelationIdForSession(LockRelId *relid, LOCKMODE lockmode); - -/* Lock a relation for extension */ -extern void LockRelationForExtension(Relation relation, LOCKMODE lockmode); -extern void UnlockRelationForExtension(Relation relation, LOCKMODE lockmode); -extern bool ConditionalLockRelationForExtension(Relation relation, - LOCKMODE lockmode); -extern int RelationExtensionLockWaiterCount(Relation relation); - -/* Lock to recompute pg_database.datfrozenxid in the current database */ -extern void LockDatabaseFrozenIds(LOCKMODE lockmode); - -/* Lock a page (currently only used within indexes) */ -extern void LockPage(Relation relation, BlockNumber blkno, LOCKMODE lockmode); -extern bool ConditionalLockPage(Relation relation, BlockNumber blkno, LOCKMODE lockmode); -extern void UnlockPage(Relation relation, BlockNumber blkno, LOCKMODE lockmode); - -/* Lock a tuple (see heap_lock_tuple before assuming you understand this) */ -extern void LockTuple(Relation relation, ItemPointer tid, LOCKMODE lockmode); -extern bool ConditionalLockTuple(Relation relation, ItemPointer tid, - LOCKMODE lockmode); -extern void UnlockTuple(Relation relation, ItemPointer tid, LOCKMODE lockmode); - -/* Lock an XID (used to wait for a transaction to finish) */ -extern void XactLockTableInsert(TransactionId xid); -extern void XactLockTableDelete(TransactionId xid); -extern void XactLockTableWait(TransactionId xid, Relation rel, - ItemPointer ctid, XLTW_Oper oper); -extern bool ConditionalXactLockTableWait(TransactionId xid); - -/* Lock VXIDs, specified by conflicting locktags */ -extern void WaitForLockers(LOCKTAG heaplocktag, LOCKMODE lockmode, bool progress); -extern void WaitForLockersMultiple(List *locktags, LOCKMODE lockmode, bool progress); - -/* Lock an XID for tuple insertion (used to wait for an insertion to finish) */ -extern uint32 SpeculativeInsertionLockAcquire(TransactionId xid); -extern void SpeculativeInsertionLockRelease(TransactionId xid); -extern void SpeculativeInsertionWait(TransactionId xid, uint32 token); - -/* Lock a general object (other than a relation) of the current database */ -extern void LockDatabaseObject(Oid classid, Oid objid, uint16 objsubid, - LOCKMODE lockmode); -extern void UnlockDatabaseObject(Oid classid, Oid objid, uint16 objsubid, - LOCKMODE lockmode); - -/* Lock a shared-across-databases object (other than a relation) */ -extern void LockSharedObject(Oid classid, Oid objid, uint16 objsubid, - LOCKMODE lockmode); -extern void UnlockSharedObject(Oid classid, Oid objid, uint16 objsubid, - LOCKMODE lockmode); - -extern void LockSharedObjectForSession(Oid classid, Oid objid, uint16 objsubid, - LOCKMODE lockmode); -extern void UnlockSharedObjectForSession(Oid classid, Oid objid, uint16 objsubid, - LOCKMODE lockmode); - -/* Describe a locktag for error messages */ -extern void DescribeLockTag(StringInfo buf, const LOCKTAG *tag); - -extern const char *GetLockNameFromTagType(uint16 locktag_type); - -#endif /* LMGR_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/lock.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/lock.h deleted file mode 100644 index e4e1495b2..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/lock.h +++ /dev/null @@ -1,616 +0,0 @@ -/*------------------------------------------------------------------------- - * - * lock.h - * POSTGRES low-level lock mechanism - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/lock.h - * - *------------------------------------------------------------------------- - */ -#ifndef LOCK_H_ -#define LOCK_H_ - -#ifdef FRONTEND -#error "lock.h may not be included from frontend code" -#endif - -#include "storage/backendid.h" -#include "storage/lockdefs.h" -#include "storage/lwlock.h" -#include "storage/shmem.h" -#include "utils/timestamp.h" - -/* struct PGPROC is declared in proc.h, but must forward-reference it */ -typedef struct PGPROC PGPROC; - -typedef struct PROC_QUEUE -{ - SHM_QUEUE links; /* head of list of PGPROC objects */ - int size; /* number of entries in list */ -} PROC_QUEUE; - -/* GUC variables */ -extern PGDLLIMPORT int max_locks_per_xact; - -#ifdef LOCK_DEBUG -extern PGDLLIMPORT int Trace_lock_oidmin; -extern PGDLLIMPORT bool Trace_locks; -extern PGDLLIMPORT bool Trace_userlocks; -extern PGDLLIMPORT int Trace_lock_table; -extern PGDLLIMPORT bool Debug_deadlocks; -#endif /* LOCK_DEBUG */ - - -/* - * Top-level transactions are identified by VirtualTransactionIDs comprising - * PGPROC fields backendId and lxid. For recovered prepared transactions, the - * LocalTransactionId is an ordinary XID; LOCKTAG_VIRTUALTRANSACTION never - * refers to that kind. These are guaranteed unique over the short term, but - * will be reused after a database restart or XID wraparound; hence they - * should never be stored on disk. - * - * Note that struct VirtualTransactionId can not be assumed to be atomically - * assignable as a whole. However, type LocalTransactionId is assumed to - * be atomically assignable, and the backend ID doesn't change often enough - * to be a problem, so we can fetch or assign the two fields separately. - * We deliberately refrain from using the struct within PGPROC, to prevent - * coding errors from trying to use struct assignment with it; instead use - * GET_VXID_FROM_PGPROC(). - */ -typedef struct -{ - BackendId backendId; /* backendId from PGPROC */ - LocalTransactionId localTransactionId; /* lxid from PGPROC */ -} VirtualTransactionId; - -#define InvalidLocalTransactionId 0 -#define LocalTransactionIdIsValid(lxid) ((lxid) != InvalidLocalTransactionId) -#define VirtualTransactionIdIsValid(vxid) \ - (LocalTransactionIdIsValid((vxid).localTransactionId)) -#define VirtualTransactionIdIsRecoveredPreparedXact(vxid) \ - ((vxid).backendId == InvalidBackendId) -#define VirtualTransactionIdEquals(vxid1, vxid2) \ - ((vxid1).backendId == (vxid2).backendId && \ - (vxid1).localTransactionId == (vxid2).localTransactionId) -#define SetInvalidVirtualTransactionId(vxid) \ - ((vxid).backendId = InvalidBackendId, \ - (vxid).localTransactionId = InvalidLocalTransactionId) -#define GET_VXID_FROM_PGPROC(vxid, proc) \ - ((vxid).backendId = (proc).backendId, \ - (vxid).localTransactionId = (proc).lxid) - -/* MAX_LOCKMODES cannot be larger than the # of bits in LOCKMASK */ -#define MAX_LOCKMODES 10 - -#define LOCKBIT_ON(lockmode) (1 << (lockmode)) -#define LOCKBIT_OFF(lockmode) (~(1 << (lockmode))) - - -/* - * This data structure defines the locking semantics associated with a - * "lock method". The semantics specify the meaning of each lock mode - * (by defining which lock modes it conflicts with). - * All of this data is constant and is kept in const tables. - * - * numLockModes -- number of lock modes (READ,WRITE,etc) that - * are defined in this lock method. Must be less than MAX_LOCKMODES. - * - * conflictTab -- this is an array of bitmasks showing lock - * mode conflicts. conflictTab[i] is a mask with the j-th bit - * turned on if lock modes i and j conflict. Lock modes are - * numbered 1..numLockModes; conflictTab[0] is unused. - * - * lockModeNames -- ID strings for debug printouts. - * - * trace_flag -- pointer to GUC trace flag for this lock method. (The - * GUC variable is not constant, but we use "const" here to denote that - * it can't be changed through this reference.) - */ -typedef struct LockMethodData -{ - int numLockModes; - const LOCKMASK *conflictTab; - const char *const *lockModeNames; - const bool *trace_flag; -} LockMethodData; - -typedef const LockMethodData *LockMethod; - -/* - * Lock methods are identified by LOCKMETHODID. (Despite the declaration as - * uint16, we are constrained to 256 lockmethods by the layout of LOCKTAG.) - */ -typedef uint16 LOCKMETHODID; - -/* These identify the known lock methods */ -#define DEFAULT_LOCKMETHOD 1 -#define USER_LOCKMETHOD 2 - -/* - * LOCKTAG is the key information needed to look up a LOCK item in the - * lock hashtable. A LOCKTAG value uniquely identifies a lockable object. - * - * The LockTagType enum defines the different kinds of objects we can lock. - * We can handle up to 256 different LockTagTypes. - */ -typedef enum LockTagType -{ - LOCKTAG_RELATION, /* whole relation */ - LOCKTAG_RELATION_EXTEND, /* the right to extend a relation */ - LOCKTAG_DATABASE_FROZEN_IDS, /* pg_database.datfrozenxid */ - LOCKTAG_PAGE, /* one page of a relation */ - LOCKTAG_TUPLE, /* one physical tuple */ - LOCKTAG_TRANSACTION, /* transaction (for waiting for xact done) */ - LOCKTAG_VIRTUALTRANSACTION, /* virtual transaction (ditto) */ - LOCKTAG_SPECULATIVE_TOKEN, /* speculative insertion Xid and token */ - LOCKTAG_OBJECT, /* non-relation database object */ - LOCKTAG_USERLOCK, /* reserved for old contrib/userlock code */ - LOCKTAG_ADVISORY /* advisory user locks */ -} LockTagType; - -#define LOCKTAG_LAST_TYPE LOCKTAG_ADVISORY - -extern PGDLLIMPORT const char *const LockTagTypeNames[]; - -/* - * The LOCKTAG struct is defined with malice aforethought to fit into 16 - * bytes with no padding. Note that this would need adjustment if we were - * to widen Oid, BlockNumber, or TransactionId to more than 32 bits. - * - * We include lockmethodid in the locktag so that a single hash table in - * shared memory can store locks of different lockmethods. - */ -typedef struct LOCKTAG -{ - uint32 locktag_field1; /* a 32-bit ID field */ - uint32 locktag_field2; /* a 32-bit ID field */ - uint32 locktag_field3; /* a 32-bit ID field */ - uint16 locktag_field4; /* a 16-bit ID field */ - uint8 locktag_type; /* see enum LockTagType */ - uint8 locktag_lockmethodid; /* lockmethod indicator */ -} LOCKTAG; - -/* - * These macros define how we map logical IDs of lockable objects into - * the physical fields of LOCKTAG. Use these to set up LOCKTAG values, - * rather than accessing the fields directly. Note multiple eval of target! - */ - -/* ID info for a relation is DB OID + REL OID; DB OID = 0 if shared */ -#define SET_LOCKTAG_RELATION(locktag,dboid,reloid) \ - ((locktag).locktag_field1 = (dboid), \ - (locktag).locktag_field2 = (reloid), \ - (locktag).locktag_field3 = 0, \ - (locktag).locktag_field4 = 0, \ - (locktag).locktag_type = LOCKTAG_RELATION, \ - (locktag).locktag_lockmethodid = DEFAULT_LOCKMETHOD) - -/* same ID info as RELATION */ -#define SET_LOCKTAG_RELATION_EXTEND(locktag,dboid,reloid) \ - ((locktag).locktag_field1 = (dboid), \ - (locktag).locktag_field2 = (reloid), \ - (locktag).locktag_field3 = 0, \ - (locktag).locktag_field4 = 0, \ - (locktag).locktag_type = LOCKTAG_RELATION_EXTEND, \ - (locktag).locktag_lockmethodid = DEFAULT_LOCKMETHOD) - -/* ID info for frozen IDs is DB OID */ -#define SET_LOCKTAG_DATABASE_FROZEN_IDS(locktag,dboid) \ - ((locktag).locktag_field1 = (dboid), \ - (locktag).locktag_field2 = 0, \ - (locktag).locktag_field3 = 0, \ - (locktag).locktag_field4 = 0, \ - (locktag).locktag_type = LOCKTAG_DATABASE_FROZEN_IDS, \ - (locktag).locktag_lockmethodid = DEFAULT_LOCKMETHOD) - -/* ID info for a page is RELATION info + BlockNumber */ -#define SET_LOCKTAG_PAGE(locktag,dboid,reloid,blocknum) \ - ((locktag).locktag_field1 = (dboid), \ - (locktag).locktag_field2 = (reloid), \ - (locktag).locktag_field3 = (blocknum), \ - (locktag).locktag_field4 = 0, \ - (locktag).locktag_type = LOCKTAG_PAGE, \ - (locktag).locktag_lockmethodid = DEFAULT_LOCKMETHOD) - -/* ID info for a tuple is PAGE info + OffsetNumber */ -#define SET_LOCKTAG_TUPLE(locktag,dboid,reloid,blocknum,offnum) \ - ((locktag).locktag_field1 = (dboid), \ - (locktag).locktag_field2 = (reloid), \ - (locktag).locktag_field3 = (blocknum), \ - (locktag).locktag_field4 = (offnum), \ - (locktag).locktag_type = LOCKTAG_TUPLE, \ - (locktag).locktag_lockmethodid = DEFAULT_LOCKMETHOD) - -/* ID info for a transaction is its TransactionId */ -#define SET_LOCKTAG_TRANSACTION(locktag,xid) \ - ((locktag).locktag_field1 = (xid), \ - (locktag).locktag_field2 = 0, \ - (locktag).locktag_field3 = 0, \ - (locktag).locktag_field4 = 0, \ - (locktag).locktag_type = LOCKTAG_TRANSACTION, \ - (locktag).locktag_lockmethodid = DEFAULT_LOCKMETHOD) - -/* ID info for a virtual transaction is its VirtualTransactionId */ -#define SET_LOCKTAG_VIRTUALTRANSACTION(locktag,vxid) \ - ((locktag).locktag_field1 = (vxid).backendId, \ - (locktag).locktag_field2 = (vxid).localTransactionId, \ - (locktag).locktag_field3 = 0, \ - (locktag).locktag_field4 = 0, \ - (locktag).locktag_type = LOCKTAG_VIRTUALTRANSACTION, \ - (locktag).locktag_lockmethodid = DEFAULT_LOCKMETHOD) - -/* - * ID info for a speculative insert is TRANSACTION info + - * its speculative insert counter. - */ -#define SET_LOCKTAG_SPECULATIVE_INSERTION(locktag,xid,token) \ - ((locktag).locktag_field1 = (xid), \ - (locktag).locktag_field2 = (token), \ - (locktag).locktag_field3 = 0, \ - (locktag).locktag_field4 = 0, \ - (locktag).locktag_type = LOCKTAG_SPECULATIVE_TOKEN, \ - (locktag).locktag_lockmethodid = DEFAULT_LOCKMETHOD) - -/* - * ID info for an object is DB OID + CLASS OID + OBJECT OID + SUBID - * - * Note: object ID has same representation as in pg_depend and - * pg_description, but notice that we are constraining SUBID to 16 bits. - * Also, we use DB OID = 0 for shared objects such as tablespaces. - */ -#define SET_LOCKTAG_OBJECT(locktag,dboid,classoid,objoid,objsubid) \ - ((locktag).locktag_field1 = (dboid), \ - (locktag).locktag_field2 = (classoid), \ - (locktag).locktag_field3 = (objoid), \ - (locktag).locktag_field4 = (objsubid), \ - (locktag).locktag_type = LOCKTAG_OBJECT, \ - (locktag).locktag_lockmethodid = DEFAULT_LOCKMETHOD) - -#define SET_LOCKTAG_ADVISORY(locktag,id1,id2,id3,id4) \ - ((locktag).locktag_field1 = (id1), \ - (locktag).locktag_field2 = (id2), \ - (locktag).locktag_field3 = (id3), \ - (locktag).locktag_field4 = (id4), \ - (locktag).locktag_type = LOCKTAG_ADVISORY, \ - (locktag).locktag_lockmethodid = USER_LOCKMETHOD) - - -/* - * Per-locked-object lock information: - * - * tag -- uniquely identifies the object being locked - * grantMask -- bitmask for all lock types currently granted on this object. - * waitMask -- bitmask for all lock types currently awaited on this object. - * procLocks -- list of PROCLOCK objects for this lock. - * waitProcs -- queue of processes waiting for this lock. - * requested -- count of each lock type currently requested on the lock - * (includes requests already granted!!). - * nRequested -- total requested locks of all types. - * granted -- count of each lock type currently granted on the lock. - * nGranted -- total granted locks of all types. - * - * Note: these counts count 1 for each backend. Internally to a backend, - * there may be multiple grabs on a particular lock, but this is not reflected - * into shared memory. - */ -typedef struct LOCK -{ - /* hash key */ - LOCKTAG tag; /* unique identifier of lockable object */ - - /* data */ - LOCKMASK grantMask; /* bitmask for lock types already granted */ - LOCKMASK waitMask; /* bitmask for lock types awaited */ - SHM_QUEUE procLocks; /* list of PROCLOCK objects assoc. with lock */ - PROC_QUEUE waitProcs; /* list of PGPROC objects waiting on lock */ - int requested[MAX_LOCKMODES]; /* counts of requested locks */ - int nRequested; /* total of requested[] array */ - int granted[MAX_LOCKMODES]; /* counts of granted locks */ - int nGranted; /* total of granted[] array */ -} LOCK; - -#define LOCK_LOCKMETHOD(lock) ((LOCKMETHODID) (lock).tag.locktag_lockmethodid) -#define LOCK_LOCKTAG(lock) ((LockTagType) (lock).tag.locktag_type) - - -/* - * We may have several different backends holding or awaiting locks - * on the same lockable object. We need to store some per-holder/waiter - * information for each such holder (or would-be holder). This is kept in - * a PROCLOCK struct. - * - * PROCLOCKTAG is the key information needed to look up a PROCLOCK item in the - * proclock hashtable. A PROCLOCKTAG value uniquely identifies the combination - * of a lockable object and a holder/waiter for that object. (We can use - * pointers here because the PROCLOCKTAG need only be unique for the lifespan - * of the PROCLOCK, and it will never outlive the lock or the proc.) - * - * Internally to a backend, it is possible for the same lock to be held - * for different purposes: the backend tracks transaction locks separately - * from session locks. However, this is not reflected in the shared-memory - * state: we only track which backend(s) hold the lock. This is OK since a - * backend can never block itself. - * - * The holdMask field shows the already-granted locks represented by this - * proclock. Note that there will be a proclock object, possibly with - * zero holdMask, for any lock that the process is currently waiting on. - * Otherwise, proclock objects whose holdMasks are zero are recycled - * as soon as convenient. - * - * releaseMask is workspace for LockReleaseAll(): it shows the locks due - * to be released during the current call. This must only be examined or - * set by the backend owning the PROCLOCK. - * - * Each PROCLOCK object is linked into lists for both the associated LOCK - * object and the owning PGPROC object. Note that the PROCLOCK is entered - * into these lists as soon as it is created, even if no lock has yet been - * granted. A PGPROC that is waiting for a lock to be granted will also be - * linked into the lock's waitProcs queue. - */ -typedef struct PROCLOCKTAG -{ - /* NB: we assume this struct contains no padding! */ - LOCK *myLock; /* link to per-lockable-object information */ - PGPROC *myProc; /* link to PGPROC of owning backend */ -} PROCLOCKTAG; - -typedef struct PROCLOCK -{ - /* tag */ - PROCLOCKTAG tag; /* unique identifier of proclock object */ - - /* data */ - PGPROC *groupLeader; /* proc's lock group leader, or proc itself */ - LOCKMASK holdMask; /* bitmask for lock types currently held */ - LOCKMASK releaseMask; /* bitmask for lock types to be released */ - SHM_QUEUE lockLink; /* list link in LOCK's list of proclocks */ - SHM_QUEUE procLink; /* list link in PGPROC's list of proclocks */ -} PROCLOCK; - -#define PROCLOCK_LOCKMETHOD(proclock) \ - LOCK_LOCKMETHOD(*((proclock).tag.myLock)) - -/* - * Each backend also maintains a local hash table with information about each - * lock it is currently interested in. In particular the local table counts - * the number of times that lock has been acquired. This allows multiple - * requests for the same lock to be executed without additional accesses to - * shared memory. We also track the number of lock acquisitions per - * ResourceOwner, so that we can release just those locks belonging to a - * particular ResourceOwner. - * - * When holding a lock taken "normally", the lock and proclock fields always - * point to the associated objects in shared memory. However, if we acquired - * the lock via the fast-path mechanism, the lock and proclock fields are set - * to NULL, since there probably aren't any such objects in shared memory. - * (If the lock later gets promoted to normal representation, we may eventually - * update our locallock's lock/proclock fields after finding the shared - * objects.) - * - * Caution: a locallock object can be left over from a failed lock acquisition - * attempt. In this case its lock/proclock fields are untrustworthy, since - * the shared lock object is neither held nor awaited, and hence is available - * to be reclaimed. If nLocks > 0 then these pointers must either be valid or - * NULL, but when nLocks == 0 they should be considered garbage. - */ -typedef struct LOCALLOCKTAG -{ - LOCKTAG lock; /* identifies the lockable object */ - LOCKMODE mode; /* lock mode for this table entry */ -} LOCALLOCKTAG; - -typedef struct LOCALLOCKOWNER -{ - /* - * Note: if owner is NULL then the lock is held on behalf of the session; - * otherwise it is held on behalf of my current transaction. - * - * Must use a forward struct reference to avoid circularity. - */ - struct ResourceOwnerData *owner; - int64 nLocks; /* # of times held by this owner */ -} LOCALLOCKOWNER; - -typedef struct LOCALLOCK -{ - /* tag */ - LOCALLOCKTAG tag; /* unique identifier of locallock entry */ - - /* data */ - uint32 hashcode; /* copy of LOCKTAG's hash value */ - LOCK *lock; /* associated LOCK object, if any */ - PROCLOCK *proclock; /* associated PROCLOCK object, if any */ - int64 nLocks; /* total number of times lock is held */ - int numLockOwners; /* # of relevant ResourceOwners */ - int maxLockOwners; /* allocated size of array */ - LOCALLOCKOWNER *lockOwners; /* dynamically resizable array */ - bool holdsStrongLockCount; /* bumped FastPathStrongRelationLocks */ - bool lockCleared; /* we read all sinval msgs for lock */ -} LOCALLOCK; - -#define LOCALLOCK_LOCKMETHOD(llock) ((llock).tag.lock.locktag_lockmethodid) -#define LOCALLOCK_LOCKTAG(llock) ((LockTagType) (llock).tag.lock.locktag_type) - - -/* - * These structures hold information passed from lmgr internals to the lock - * listing user-level functions (in lockfuncs.c). - */ - -typedef struct LockInstanceData -{ - LOCKTAG locktag; /* tag for locked object */ - LOCKMASK holdMask; /* locks held by this PGPROC */ - LOCKMODE waitLockMode; /* lock awaited by this PGPROC, if any */ - BackendId backend; /* backend ID of this PGPROC */ - LocalTransactionId lxid; /* local transaction ID of this PGPROC */ - TimestampTz waitStart; /* time at which this PGPROC started waiting - * for lock */ - int pid; /* pid of this PGPROC */ - int leaderPid; /* pid of group leader; = pid if no group */ - bool fastpath; /* taken via fastpath? */ -} LockInstanceData; - -typedef struct LockData -{ - int nelements; /* The length of the array */ - LockInstanceData *locks; /* Array of per-PROCLOCK information */ -} LockData; - -typedef struct BlockedProcData -{ - int pid; /* pid of a blocked PGPROC */ - /* Per-PROCLOCK information about PROCLOCKs of the lock the pid awaits */ - /* (these fields refer to indexes in BlockedProcsData.locks[]) */ - int first_lock; /* index of first relevant LockInstanceData */ - int num_locks; /* number of relevant LockInstanceDatas */ - /* PIDs of PGPROCs that are ahead of "pid" in the lock's wait queue */ - /* (these fields refer to indexes in BlockedProcsData.waiter_pids[]) */ - int first_waiter; /* index of first preceding waiter */ - int num_waiters; /* number of preceding waiters */ -} BlockedProcData; - -typedef struct BlockedProcsData -{ - BlockedProcData *procs; /* Array of per-blocked-proc information */ - LockInstanceData *locks; /* Array of per-PROCLOCK information */ - int *waiter_pids; /* Array of PIDs of other blocked PGPROCs */ - int nprocs; /* # of valid entries in procs[] array */ - int maxprocs; /* Allocated length of procs[] array */ - int nlocks; /* # of valid entries in locks[] array */ - int maxlocks; /* Allocated length of locks[] array */ - int npids; /* # of valid entries in waiter_pids[] array */ - int maxpids; /* Allocated length of waiter_pids[] array */ -} BlockedProcsData; - - -/* Result codes for LockAcquire() */ -typedef enum -{ - LOCKACQUIRE_NOT_AVAIL, /* lock not available, and dontWait=true */ - LOCKACQUIRE_OK, /* lock successfully acquired */ - LOCKACQUIRE_ALREADY_HELD, /* incremented count for lock already held */ - LOCKACQUIRE_ALREADY_CLEAR /* incremented count for lock already clear */ -} LockAcquireResult; - -/* Deadlock states identified by DeadLockCheck() */ -typedef enum -{ - DS_NOT_YET_CHECKED, /* no deadlock check has run yet */ - DS_NO_DEADLOCK, /* no deadlock detected */ - DS_SOFT_DEADLOCK, /* deadlock avoided by queue rearrangement */ - DS_HARD_DEADLOCK, /* deadlock, no way out but ERROR */ - DS_BLOCKED_BY_AUTOVACUUM /* no deadlock; queue blocked by autovacuum - * worker */ -} DeadLockState; - -/* - * The lockmgr's shared hash tables are partitioned to reduce contention. - * To determine which partition a given locktag belongs to, compute the tag's - * hash code with LockTagHashCode(), then apply one of these macros. - * NB: NUM_LOCK_PARTITIONS must be a power of 2! - */ -#define LockHashPartition(hashcode) \ - ((hashcode) % NUM_LOCK_PARTITIONS) -#define LockHashPartitionLock(hashcode) \ - (&MainLWLockArray[LOCK_MANAGER_LWLOCK_OFFSET + \ - LockHashPartition(hashcode)].lock) -#define LockHashPartitionLockByIndex(i) \ - (&MainLWLockArray[LOCK_MANAGER_LWLOCK_OFFSET + (i)].lock) - -/* - * The deadlock detector needs to be able to access lockGroupLeader and - * related fields in the PGPROC, so we arrange for those fields to be protected - * by one of the lock hash partition locks. Since the deadlock detector - * acquires all such locks anyway, this makes it safe for it to access these - * fields without doing anything extra. To avoid contention as much as - * possible, we map different PGPROCs to different partition locks. The lock - * used for a given lock group is determined by the group leader's pgprocno. - */ -#define LockHashPartitionLockByProc(leader_pgproc) \ - LockHashPartitionLock((leader_pgproc)->pgprocno) - -/* - * function prototypes - */ -extern void InitLocks(void); -extern LockMethod GetLocksMethodTable(const LOCK *lock); -extern LockMethod GetLockTagsMethodTable(const LOCKTAG *locktag); -extern uint32 LockTagHashCode(const LOCKTAG *locktag); -extern bool DoLockModesConflict(LOCKMODE mode1, LOCKMODE mode2); -extern LockAcquireResult LockAcquire(const LOCKTAG *locktag, - LOCKMODE lockmode, - bool sessionLock, - bool dontWait); -extern LockAcquireResult LockAcquireExtended(const LOCKTAG *locktag, - LOCKMODE lockmode, - bool sessionLock, - bool dontWait, - bool reportMemoryError, - LOCALLOCK **locallockp); -extern void AbortStrongLockAcquire(void); -extern void MarkLockClear(LOCALLOCK *locallock); -extern bool LockRelease(const LOCKTAG *locktag, - LOCKMODE lockmode, bool sessionLock); -extern void LockReleaseAll(LOCKMETHODID lockmethodid, bool allLocks); -extern void LockReleaseSession(LOCKMETHODID lockmethodid); -extern void LockReleaseCurrentOwner(LOCALLOCK **locallocks, int nlocks); -extern void LockReassignCurrentOwner(LOCALLOCK **locallocks, int nlocks); -extern bool LockHeldByMe(const LOCKTAG *locktag, LOCKMODE lockmode); -#ifdef USE_ASSERT_CHECKING -extern HTAB *GetLockMethodLocalHash(void); -#endif -extern bool LockHasWaiters(const LOCKTAG *locktag, - LOCKMODE lockmode, bool sessionLock); -extern VirtualTransactionId *GetLockConflicts(const LOCKTAG *locktag, - LOCKMODE lockmode, int *countp); -extern void AtPrepare_Locks(void); -extern void PostPrepare_Locks(TransactionId xid); -extern bool LockCheckConflicts(LockMethod lockMethodTable, - LOCKMODE lockmode, - LOCK *lock, PROCLOCK *proclock); -extern void GrantLock(LOCK *lock, PROCLOCK *proclock, LOCKMODE lockmode); -extern void GrantAwaitedLock(void); -extern void RemoveFromWaitQueue(PGPROC *proc, uint32 hashcode); -extern Size LockShmemSize(void); -extern LockData *GetLockStatusData(void); -extern BlockedProcsData *GetBlockerStatusData(int blocked_pid); - -extern xl_standby_lock *GetRunningTransactionLocks(int *nlocks); -extern const char *GetLockmodeName(LOCKMETHODID lockmethodid, LOCKMODE mode); - -extern void lock_twophase_recover(TransactionId xid, uint16 info, - void *recdata, uint32 len); -extern void lock_twophase_postcommit(TransactionId xid, uint16 info, - void *recdata, uint32 len); -extern void lock_twophase_postabort(TransactionId xid, uint16 info, - void *recdata, uint32 len); -extern void lock_twophase_standby_recover(TransactionId xid, uint16 info, - void *recdata, uint32 len); - -extern DeadLockState DeadLockCheck(PGPROC *proc); -extern PGPROC *GetBlockingAutoVacuumPgproc(void); -extern void DeadLockReport(void) pg_attribute_noreturn(); -extern void RememberSimpleDeadLock(PGPROC *proc1, - LOCKMODE lockmode, - LOCK *lock, - PGPROC *proc2); -extern void InitDeadLockChecking(void); - -extern int LockWaiterCount(const LOCKTAG *locktag); - -#ifdef LOCK_DEBUG -extern void DumpLocks(PGPROC *proc); -extern void DumpAllLocks(void); -#endif - -/* Lock a VXID (used to wait for a transaction to finish) */ -extern void VirtualXactLockTableInsert(VirtualTransactionId vxid); -extern void VirtualXactLockTableCleanup(void); -extern bool VirtualXactLock(VirtualTransactionId vxid, bool wait); - -#endif /* LOCK_H_ */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/lockdefs.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/lockdefs.h deleted file mode 100644 index 350ddd4da..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/lockdefs.h +++ /dev/null @@ -1,59 +0,0 @@ -/*------------------------------------------------------------------------- - * - * lockdefs.h - * Frontend exposed parts of postgres' low level lock mechanism - * - * The split between lockdefs.h and lock.h is not very principled. This file - * contains definition that have to (indirectly) be available when included by - * FRONTEND code. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/lockdefs.h - * - *------------------------------------------------------------------------- - */ -#ifndef LOCKDEFS_H_ -#define LOCKDEFS_H_ - -/* - * LOCKMODE is an integer (1..N) indicating a lock type. LOCKMASK is a bit - * mask indicating a set of held or requested lock types (the bit 1<lwWaitMode, - * when waiting for lock to become free. Not - * to be used as LWLockAcquire argument */ -} LWLockMode; - - -#ifdef LOCK_DEBUG -extern PGDLLIMPORT bool Trace_lwlocks; -#endif - -extern bool LWLockAcquire(LWLock *lock, LWLockMode mode); -extern bool LWLockConditionalAcquire(LWLock *lock, LWLockMode mode); -extern bool LWLockAcquireOrWait(LWLock *lock, LWLockMode mode); -extern void LWLockRelease(LWLock *lock); -extern void LWLockReleaseClearVar(LWLock *lock, uint64 *valptr, uint64 val); -extern void LWLockReleaseAll(void); -extern bool LWLockHeldByMe(LWLock *lock); -extern bool LWLockAnyHeldByMe(LWLock *lock, int nlocks, size_t stride); -extern bool LWLockHeldByMeInMode(LWLock *lock, LWLockMode mode); - -extern bool LWLockWaitForVar(LWLock *lock, uint64 *valptr, uint64 oldval, uint64 *newval); -extern void LWLockUpdateVar(LWLock *lock, uint64 *valptr, uint64 value); - -extern Size LWLockShmemSize(void); -extern void CreateLWLocks(void); -extern void InitLWLockAccess(void); - -extern const char *GetLWLockIdentifier(uint32 classId, uint16 eventId); - -/* - * Extensions (or core code) can obtain an LWLocks by calling - * RequestNamedLWLockTranche() during postmaster startup. Subsequently, - * call GetNamedLWLockTranche() to obtain a pointer to an array containing - * the number of LWLocks requested. - */ -extern void RequestNamedLWLockTranche(const char *tranche_name, int num_lwlocks); -extern LWLockPadded *GetNamedLWLockTranche(const char *tranche_name); - -/* - * There is another, more flexible method of obtaining lwlocks. First, call - * LWLockNewTrancheId just once to obtain a tranche ID; this allocates from - * a shared counter. Next, each individual process using the tranche should - * call LWLockRegisterTranche() to associate that tranche ID with a name. - * Finally, LWLockInitialize should be called just once per lwlock, passing - * the tranche ID as an argument. - * - * It may seem strange that each process using the tranche must register it - * separately, but dynamic shared memory segments aren't guaranteed to be - * mapped at the same address in all coordinating backends, so storing the - * registration in the main shared memory segment wouldn't work for that case. - */ -extern int LWLockNewTrancheId(void); -extern void LWLockRegisterTranche(int tranche_id, const char *tranche_name); -extern void LWLockInitialize(LWLock *lock, int tranche_id); - -/* - * Every tranche ID less than NUM_INDIVIDUAL_LWLOCKS is reserved; also, - * we reserve additional tranche IDs for builtin tranches not included in - * the set of individual LWLocks. A call to LWLockNewTrancheId will never - * return a value less than LWTRANCHE_FIRST_USER_DEFINED. - */ -typedef enum BuiltinTrancheIds -{ - LWTRANCHE_XACT_BUFFER = NUM_INDIVIDUAL_LWLOCKS, - LWTRANCHE_COMMITTS_BUFFER, - LWTRANCHE_SUBTRANS_BUFFER, - LWTRANCHE_MULTIXACTOFFSET_BUFFER, - LWTRANCHE_MULTIXACTMEMBER_BUFFER, - LWTRANCHE_NOTIFY_BUFFER, - LWTRANCHE_SERIAL_BUFFER, - LWTRANCHE_WAL_INSERT, - LWTRANCHE_BUFFER_CONTENT, - LWTRANCHE_REPLICATION_ORIGIN_STATE, - LWTRANCHE_REPLICATION_SLOT_IO, - LWTRANCHE_LOCK_FASTPATH, - LWTRANCHE_BUFFER_MAPPING, - LWTRANCHE_LOCK_MANAGER, - LWTRANCHE_PREDICATE_LOCK_MANAGER, - LWTRANCHE_PARALLEL_HASH_JOIN, - LWTRANCHE_PARALLEL_QUERY_DSA, - LWTRANCHE_PER_SESSION_DSA, - LWTRANCHE_PER_SESSION_RECORD_TYPE, - LWTRANCHE_PER_SESSION_RECORD_TYPMOD, - LWTRANCHE_SHARED_TUPLESTORE, - LWTRANCHE_SHARED_TIDBITMAP, - LWTRANCHE_PARALLEL_APPEND, - LWTRANCHE_PER_XACT_PREDICATE_LIST, - LWTRANCHE_PGSTATS_DSA, - LWTRANCHE_PGSTATS_HASH, - LWTRANCHE_PGSTATS_DATA, - LWTRANCHE_FIRST_USER_DEFINED -} BuiltinTrancheIds; - -/* - * Prior to PostgreSQL 9.4, we used an enum type called LWLockId to refer - * to LWLocks. New code should instead use LWLock *. However, for the - * convenience of third-party code, we include the following typedef. - */ -typedef LWLock *LWLockId; - -#endif /* LWLOCK_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/lwlocknames.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/lwlocknames.h deleted file mode 100644 index e279f72b0..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/lwlocknames.h +++ /dev/null @@ -1,50 +0,0 @@ -/* autogenerated from src/backend/storage/lmgr/lwlocknames.txt, do not edit */ -/* there is deliberately not an #ifndef LWLOCKNAMES_H here */ - -#define ShmemIndexLock (&MainLWLockArray[1].lock) -#define OidGenLock (&MainLWLockArray[2].lock) -#define XidGenLock (&MainLWLockArray[3].lock) -#define ProcArrayLock (&MainLWLockArray[4].lock) -#define SInvalReadLock (&MainLWLockArray[5].lock) -#define SInvalWriteLock (&MainLWLockArray[6].lock) -#define WALBufMappingLock (&MainLWLockArray[7].lock) -#define WALWriteLock (&MainLWLockArray[8].lock) -#define ControlFileLock (&MainLWLockArray[9].lock) -#define XactSLRULock (&MainLWLockArray[11].lock) -#define SubtransSLRULock (&MainLWLockArray[12].lock) -#define MultiXactGenLock (&MainLWLockArray[13].lock) -#define MultiXactOffsetSLRULock (&MainLWLockArray[14].lock) -#define MultiXactMemberSLRULock (&MainLWLockArray[15].lock) -#define RelCacheInitLock (&MainLWLockArray[16].lock) -#define CheckpointerCommLock (&MainLWLockArray[17].lock) -#define TwoPhaseStateLock (&MainLWLockArray[18].lock) -#define TablespaceCreateLock (&MainLWLockArray[19].lock) -#define BtreeVacuumLock (&MainLWLockArray[20].lock) -#define AddinShmemInitLock (&MainLWLockArray[21].lock) -#define AutovacuumLock (&MainLWLockArray[22].lock) -#define AutovacuumScheduleLock (&MainLWLockArray[23].lock) -#define SyncScanLock (&MainLWLockArray[24].lock) -#define RelationMappingLock (&MainLWLockArray[25].lock) -#define NotifySLRULock (&MainLWLockArray[26].lock) -#define NotifyQueueLock (&MainLWLockArray[27].lock) -#define SerializableXactHashLock (&MainLWLockArray[28].lock) -#define SerializableFinishedListLock (&MainLWLockArray[29].lock) -#define SerializablePredicateListLock (&MainLWLockArray[30].lock) -#define SerialSLRULock (&MainLWLockArray[31].lock) -#define SyncRepLock (&MainLWLockArray[32].lock) -#define BackgroundWorkerLock (&MainLWLockArray[33].lock) -#define DynamicSharedMemoryControlLock (&MainLWLockArray[34].lock) -#define AutoFileLock (&MainLWLockArray[35].lock) -#define ReplicationSlotAllocationLock (&MainLWLockArray[36].lock) -#define ReplicationSlotControlLock (&MainLWLockArray[37].lock) -#define CommitTsSLRULock (&MainLWLockArray[38].lock) -#define CommitTsLock (&MainLWLockArray[39].lock) -#define ReplicationOriginLock (&MainLWLockArray[40].lock) -#define MultiXactTruncationLock (&MainLWLockArray[41].lock) -#define OldSnapshotTimeMapLock (&MainLWLockArray[42].lock) -#define LogicalRepWorkerLock (&MainLWLockArray[43].lock) -#define XactTruncationLock (&MainLWLockArray[44].lock) -#define WrapLimitsVacuumLock (&MainLWLockArray[46].lock) -#define NotifyQueueTailLock (&MainLWLockArray[47].lock) - -#define NUM_INDIVIDUAL_LWLOCKS 48 diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/off.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/off.h deleted file mode 100644 index e6573acad..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/off.h +++ /dev/null @@ -1,57 +0,0 @@ -/*------------------------------------------------------------------------- - * - * off.h - * POSTGRES disk "offset" definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/off.h - * - *------------------------------------------------------------------------- - */ -#ifndef OFF_H -#define OFF_H - -#include "storage/itemid.h" -/* - * OffsetNumber: - * - * this is a 1-based index into the linp (ItemIdData) array in the - * header of each disk page. - */ -typedef uint16 OffsetNumber; - -#define InvalidOffsetNumber ((OffsetNumber) 0) -#define FirstOffsetNumber ((OffsetNumber) 1) -#define MaxOffsetNumber ((OffsetNumber) (BLCKSZ / sizeof(ItemIdData))) - -/* ---------------- - * support macros - * ---------------- - */ - -/* - * OffsetNumberIsValid - * True iff the offset number is valid. - */ -#define OffsetNumberIsValid(offsetNumber) \ - ((bool) ((offsetNumber != InvalidOffsetNumber) && \ - (offsetNumber <= MaxOffsetNumber))) - -/* - * OffsetNumberNext - * OffsetNumberPrev - * Increments/decrements the argument. These macros look pointless - * but they help us disambiguate the different manipulations on - * OffsetNumbers (e.g., sometimes we subtract one from an - * OffsetNumber to move back, and sometimes we do so to form a - * real C array index). - */ -#define OffsetNumberNext(offsetNumber) \ - ((OffsetNumber) (1 + (offsetNumber))) -#define OffsetNumberPrev(offsetNumber) \ - ((OffsetNumber) (-1 + (offsetNumber))) - -#endif /* OFF_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/pg_sema.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/pg_sema.h deleted file mode 100644 index 5ca941ae3..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/pg_sema.h +++ /dev/null @@ -1,61 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_sema.h - * Platform-independent API for semaphores. - * - * PostgreSQL requires counting semaphores (the kind that keep track of - * multiple unlock operations, and will allow an equal number of subsequent - * lock operations before blocking). The underlying implementation is - * not the same on every platform. This file defines the API that must - * be provided by each port. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/pg_sema.h - * - *------------------------------------------------------------------------- - */ -#ifndef PG_SEMA_H -#define PG_SEMA_H - -/* - * struct PGSemaphoreData and pointer type PGSemaphore are the data structure - * representing an individual semaphore. The contents of PGSemaphoreData vary - * across implementations and must never be touched by platform-independent - * code; hence, PGSemaphoreData is declared as an opaque struct here. - * - * However, Windows is sufficiently unlike our other ports that it doesn't - * seem worth insisting on ABI compatibility for Windows too. Hence, on - * that platform just define PGSemaphore as HANDLE. - */ -#ifndef USE_WIN32_SEMAPHORES -typedef struct PGSemaphoreData *PGSemaphore; -#else -typedef HANDLE PGSemaphore; -#endif - - -/* Report amount of shared memory needed */ -extern Size PGSemaphoreShmemSize(int maxSemas); - -/* Module initialization (called during postmaster start or shmem reinit) */ -extern void PGReserveSemaphores(int maxSemas); - -/* Allocate a PGSemaphore structure with initial count 1 */ -extern PGSemaphore PGSemaphoreCreate(void); - -/* Reset a previously-initialized PGSemaphore to have count 0 */ -extern void PGSemaphoreReset(PGSemaphore sema); - -/* Lock a semaphore (decrement count), blocking if count would be < 0 */ -extern void PGSemaphoreLock(PGSemaphore sema); - -/* Unlock a semaphore (increment count) */ -extern void PGSemaphoreUnlock(PGSemaphore sema); - -/* Lock a semaphore only if able to do so without blocking */ -extern bool PGSemaphoreTryLock(PGSemaphore sema); - -#endif /* PG_SEMA_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/pg_shmem.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/pg_shmem.h deleted file mode 100644 index da5962edb..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/pg_shmem.h +++ /dev/null @@ -1,92 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_shmem.h - * Platform-independent API for shared memory support. - * - * Every port is expected to support shared memory with approximately - * SysV-ish semantics; in particular, a memory block is not anonymous - * but has an ID, and we must be able to tell whether there are any - * remaining processes attached to a block of a specified ID. - * - * To simplify life for the SysV implementation, the ID is assumed to - * consist of two unsigned long values (these are key and ID in SysV - * terms). Other platforms may ignore the second value if they need - * only one ID number. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/pg_shmem.h - * - *------------------------------------------------------------------------- - */ -#ifndef PG_SHMEM_H -#define PG_SHMEM_H - -#include "storage/dsm_impl.h" - -typedef struct PGShmemHeader /* standard header for all Postgres shmem */ -{ - int32 magic; /* magic # to identify Postgres segments */ -#define PGShmemMagic 679834894 - pid_t creatorPID; /* PID of creating process (set but unread) */ - Size totalsize; /* total size of segment */ - Size freeoffset; /* offset to first free space */ - dsm_handle dsm_control; /* ID of dynamic shared memory control seg */ - void *index; /* pointer to ShmemIndex table */ -#ifndef WIN32 /* Windows doesn't have useful inode#s */ - dev_t device; /* device data directory is on */ - ino_t inode; /* inode number of data directory */ -#endif -} PGShmemHeader; - -/* GUC variables */ -extern PGDLLIMPORT int shared_memory_type; -extern PGDLLIMPORT int huge_pages; -extern PGDLLIMPORT int huge_page_size; - -/* Possible values for huge_pages */ -typedef enum -{ - HUGE_PAGES_OFF, - HUGE_PAGES_ON, - HUGE_PAGES_TRY -} HugePagesType; - -/* Possible values for shared_memory_type */ -typedef enum -{ - SHMEM_TYPE_WINDOWS, - SHMEM_TYPE_SYSV, - SHMEM_TYPE_MMAP -} PGShmemType; - -#ifndef WIN32 -extern PGDLLIMPORT unsigned long UsedShmemSegID; -#else -extern PGDLLIMPORT HANDLE UsedShmemSegID; -extern PGDLLIMPORT void *ShmemProtectiveRegion; -#endif -extern PGDLLIMPORT void *UsedShmemSegAddr; - -#if !defined(WIN32) && !defined(EXEC_BACKEND) -#define DEFAULT_SHARED_MEMORY_TYPE SHMEM_TYPE_MMAP -#elif !defined(WIN32) -#define DEFAULT_SHARED_MEMORY_TYPE SHMEM_TYPE_SYSV -#else -#define DEFAULT_SHARED_MEMORY_TYPE SHMEM_TYPE_WINDOWS -#endif - -#ifdef EXEC_BACKEND -extern void PGSharedMemoryReAttach(void); -extern void PGSharedMemoryNoReAttach(void); -#endif - -extern PGShmemHeader *PGSharedMemoryCreate(Size size, - PGShmemHeader **shim); -extern bool PGSharedMemoryIsInUse(unsigned long id1, unsigned long id2); -extern void PGSharedMemoryDetach(void); -extern void GetHugePageSize(Size *hugepagesize, int *mmap_flags); - -#endif /* PG_SHMEM_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/pmsignal.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/pmsignal.h deleted file mode 100644 index 58f4ddf47..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/pmsignal.h +++ /dev/null @@ -1,105 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pmsignal.h - * routines for signaling between the postmaster and its child processes - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/pmsignal.h - * - *------------------------------------------------------------------------- - */ -#ifndef PMSIGNAL_H -#define PMSIGNAL_H - -#include - -#ifdef HAVE_SYS_PRCTL_H -#include "sys/prctl.h" -#endif - -#ifdef HAVE_SYS_PROCCTL_H -#include "sys/procctl.h" -#endif - -/* - * Reasons for signaling the postmaster. We can cope with simultaneous - * signals for different reasons. If the same reason is signaled multiple - * times in quick succession, however, the postmaster is likely to observe - * only one notification of it. This is okay for the present uses. - */ -typedef enum -{ - PMSIGNAL_RECOVERY_STARTED, /* recovery has started */ - PMSIGNAL_BEGIN_HOT_STANDBY, /* begin Hot Standby */ - PMSIGNAL_ROTATE_LOGFILE, /* send SIGUSR1 to syslogger to rotate logfile */ - PMSIGNAL_START_AUTOVAC_LAUNCHER, /* start an autovacuum launcher */ - PMSIGNAL_START_AUTOVAC_WORKER, /* start an autovacuum worker */ - PMSIGNAL_BACKGROUND_WORKER_CHANGE, /* background worker state change */ - PMSIGNAL_START_WALRECEIVER, /* start a walreceiver */ - PMSIGNAL_ADVANCE_STATE_MACHINE, /* advance postmaster's state machine */ - - NUM_PMSIGNALS /* Must be last value of enum! */ -} PMSignalReason; - -/* - * Reasons why the postmaster would send SIGQUIT to its children. - */ -typedef enum -{ - PMQUIT_NOT_SENT = 0, /* postmaster hasn't sent SIGQUIT */ - PMQUIT_FOR_CRASH, /* some other backend bought the farm */ - PMQUIT_FOR_STOP /* immediate stop was commanded */ -} QuitSignalReason; - -/* PMSignalData is an opaque struct, details known only within pmsignal.c */ -typedef struct PMSignalData PMSignalData; - -/* - * prototypes for functions in pmsignal.c - */ -extern Size PMSignalShmemSize(void); -extern void PMSignalShmemInit(void); -extern void SendPostmasterSignal(PMSignalReason reason); -extern bool CheckPostmasterSignal(PMSignalReason reason); -extern void SetQuitSignalReason(QuitSignalReason reason); -extern QuitSignalReason GetQuitSignalReason(void); -extern int AssignPostmasterChildSlot(void); -extern bool ReleasePostmasterChildSlot(int slot); -extern bool IsPostmasterChildWalSender(int slot); -extern void MarkPostmasterChildActive(void); -extern void MarkPostmasterChildInactive(void); -extern void MarkPostmasterChildWalSender(void); -extern bool PostmasterIsAliveInternal(void); -extern void PostmasterDeathSignalInit(void); - - -/* - * Do we have a way to ask for a signal on parent death? - * - * If we do, pmsignal.c will set up a signal handler, that sets a flag when - * the parent dies. Checking the flag first makes PostmasterIsAlive() a lot - * cheaper in usual case that the postmaster is alive. - */ -#if (defined(HAVE_SYS_PRCTL_H) && defined(PR_SET_PDEATHSIG)) || \ - (defined(HAVE_SYS_PROCCTL_H) && defined(PROC_PDEATHSIG_CTL)) -#define USE_POSTMASTER_DEATH_SIGNAL -#endif - -#ifdef USE_POSTMASTER_DEATH_SIGNAL -extern PGDLLIMPORT volatile sig_atomic_t postmaster_possibly_dead; - -static inline bool -PostmasterIsAlive(void) -{ - if (likely(!postmaster_possibly_dead)) - return true; - return PostmasterIsAliveInternal(); -} -#else -#define PostmasterIsAlive() PostmasterIsAliveInternal() -#endif - -#endif /* PMSIGNAL_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/predicate.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/predicate.h deleted file mode 100644 index 8dfcb3944..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/predicate.h +++ /dev/null @@ -1,87 +0,0 @@ -/*------------------------------------------------------------------------- - * - * predicate.h - * POSTGRES public predicate locking definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/predicate.h - * - *------------------------------------------------------------------------- - */ -#ifndef PREDICATE_H -#define PREDICATE_H - -#include "storage/lock.h" -#include "utils/relcache.h" -#include "utils/snapshot.h" - - -/* - * GUC variables - */ -extern PGDLLIMPORT int max_predicate_locks_per_xact; -extern PGDLLIMPORT int max_predicate_locks_per_relation; -extern PGDLLIMPORT int max_predicate_locks_per_page; - - -/* Number of SLRU buffers to use for Serial SLRU */ -#define NUM_SERIAL_BUFFERS 16 - -/* - * A handle used for sharing SERIALIZABLEXACT objects between the participants - * in a parallel query. - */ -typedef void *SerializableXactHandle; - -/* - * function prototypes - */ - -/* housekeeping for shared memory predicate lock structures */ -extern void InitPredicateLocks(void); -extern Size PredicateLockShmemSize(void); - -extern void CheckPointPredicate(void); - -/* predicate lock reporting */ -extern bool PageIsPredicateLocked(Relation relation, BlockNumber blkno); - -/* predicate lock maintenance */ -extern Snapshot GetSerializableTransactionSnapshot(Snapshot snapshot); -extern void SetSerializableTransactionSnapshot(Snapshot snapshot, - VirtualTransactionId *sourcevxid, - int sourcepid); -extern void RegisterPredicateLockingXid(TransactionId xid); -extern void PredicateLockRelation(Relation relation, Snapshot snapshot); -extern void PredicateLockPage(Relation relation, BlockNumber blkno, Snapshot snapshot); -extern void PredicateLockTID(Relation relation, ItemPointer tid, Snapshot snapshot, - TransactionId insert_xid); -extern void PredicateLockPageSplit(Relation relation, BlockNumber oldblkno, BlockNumber newblkno); -extern void PredicateLockPageCombine(Relation relation, BlockNumber oldblkno, BlockNumber newblkno); -extern void TransferPredicateLocksToHeapRelation(Relation relation); -extern void ReleasePredicateLocks(bool isCommit, bool isReadOnlySafe); - -/* conflict detection (may also trigger rollback) */ -extern bool CheckForSerializableConflictOutNeeded(Relation relation, Snapshot snapshot); -extern void CheckForSerializableConflictOut(Relation relation, TransactionId xid, Snapshot snapshot); -extern void CheckForSerializableConflictIn(Relation relation, ItemPointer tid, BlockNumber blkno); -extern void CheckTableForSerializableConflictIn(Relation relation); - -/* final rollback checking */ -extern void PreCommit_CheckForSerializationFailure(void); - -/* two-phase commit support */ -extern void AtPrepare_PredicateLocks(void); -extern void PostPrepare_PredicateLocks(TransactionId xid); -extern void PredicateLockTwoPhaseFinish(TransactionId xid, bool isCommit); -extern void predicatelock_twophase_recover(TransactionId xid, uint16 info, - void *recdata, uint32 len); - -/* parallel query support */ -extern SerializableXactHandle ShareSerializableXact(void); -extern void AttachSerializableXact(SerializableXactHandle handle); - -#endif /* PREDICATE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/proc.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/proc.h deleted file mode 100644 index 2579e619e..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/proc.h +++ /dev/null @@ -1,461 +0,0 @@ -/*------------------------------------------------------------------------- - * - * proc.h - * per-process shared memory data structures - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/proc.h - * - *------------------------------------------------------------------------- - */ -#ifndef _PROC_H_ -#define _PROC_H_ - -#include "access/clog.h" -#include "access/xlogdefs.h" -#include "lib/ilist.h" -#include "storage/latch.h" -#include "storage/lock.h" -#include "storage/pg_sema.h" -#include "storage/proclist_types.h" - -/* - * Each backend advertises up to PGPROC_MAX_CACHED_SUBXIDS TransactionIds - * for non-aborted subtransactions of its current top transaction. These - * have to be treated as running XIDs by other backends. - * - * We also keep track of whether the cache overflowed (ie, the transaction has - * generated at least one subtransaction that didn't fit in the cache). - * If none of the caches have overflowed, we can assume that an XID that's not - * listed anywhere in the PGPROC array is not a running transaction. Else we - * have to look at pg_subtrans. - */ -#define PGPROC_MAX_CACHED_SUBXIDS 64 /* XXX guessed-at value */ - -typedef struct XidCacheStatus -{ - /* number of cached subxids, never more than PGPROC_MAX_CACHED_SUBXIDS */ - uint8 count; - /* has PGPROC->subxids overflowed */ - bool overflowed; -} XidCacheStatus; - -struct XidCache -{ - TransactionId xids[PGPROC_MAX_CACHED_SUBXIDS]; -}; - -/* - * Flags for PGPROC->statusFlags and PROC_HDR->statusFlags[] - */ -#define PROC_IS_AUTOVACUUM 0x01 /* is it an autovac worker? */ -#define PROC_IN_VACUUM 0x02 /* currently running lazy vacuum */ -#define PROC_IN_SAFE_IC 0x04 /* currently running CREATE INDEX - * CONCURRENTLY or REINDEX - * CONCURRENTLY on non-expressional, - * non-partial index */ -#define PROC_VACUUM_FOR_WRAPAROUND 0x08 /* set by autovac only */ -#define PROC_IN_LOGICAL_DECODING 0x10 /* currently doing logical - * decoding outside xact */ -#define PROC_AFFECTS_ALL_HORIZONS 0x20 /* this proc's xmin must be - * included in vacuum horizons - * in all databases */ - -/* flags reset at EOXact */ -#define PROC_VACUUM_STATE_MASK \ - (PROC_IN_VACUUM | PROC_IN_SAFE_IC | PROC_VACUUM_FOR_WRAPAROUND) - -/* - * Xmin-related flags. Make sure any flags that affect how the process' Xmin - * value is interpreted by VACUUM are included here. - */ -#define PROC_XMIN_FLAGS (PROC_IN_VACUUM | PROC_IN_SAFE_IC) - -/* - * We allow a small number of "weak" relation locks (AccessShareLock, - * RowShareLock, RowExclusiveLock) to be recorded in the PGPROC structure - * rather than the main lock table. This eases contention on the lock - * manager LWLocks. See storage/lmgr/README for additional details. - */ -#define FP_LOCK_SLOTS_PER_BACKEND 16 - -/* - * An invalid pgprocno. Must be larger than the maximum number of PGPROC - * structures we could possibly have. See comments for MAX_BACKENDS. - */ -#define INVALID_PGPROCNO PG_INT32_MAX - -/* - * Flags for PGPROC.delayChkpt - * - * These flags can be used to delay the start or completion of a checkpoint - * for short periods. A flag is in effect if the corresponding bit is set in - * the PGPROC of any backend. - * - * For our purposes here, a checkpoint has three phases: (1) determine the - * location to which the redo pointer will be moved, (2) write all the - * data durably to disk, and (3) WAL-log the checkpoint. - * - * Setting DELAY_CHKPT_START prevents the system from moving from phase 1 - * to phase 2. This is useful when we are performing a WAL-logged modification - * of data that will be flushed to disk in phase 2. By setting this flag - * before writing WAL and clearing it after we've both written WAL and - * performed the corresponding modification, we ensure that if the WAL record - * is inserted prior to the new redo point, the corresponding data changes will - * also be flushed to disk before the checkpoint can complete. (In the - * extremely common case where the data being modified is in shared buffers - * and we acquire an exclusive content lock on the relevant buffers before - * writing WAL, this mechanism is not needed, because phase 2 will block - * until we release the content lock and then flush the modified data to - * disk.) - * - * Setting DELAY_CHKPT_COMPLETE prevents the system from moving from phase 2 - * to phase 3. This is useful if we are performing a WAL-logged operation that - * might invalidate buffers, such as relation truncation. In this case, we need - * to ensure that any buffers which were invalidated and thus not flushed by - * the checkpoint are actaully destroyed on disk. Replay can cope with a file - * or block that doesn't exist, but not with a block that has the wrong - * contents. - */ -#define DELAY_CHKPT_START (1<<0) -#define DELAY_CHKPT_COMPLETE (1<<1) - -typedef enum -{ - PROC_WAIT_STATUS_OK, - PROC_WAIT_STATUS_WAITING, - PROC_WAIT_STATUS_ERROR, -} ProcWaitStatus; - -/* - * Each backend has a PGPROC struct in shared memory. There is also a list of - * currently-unused PGPROC structs that will be reallocated to new backends. - * - * links: list link for any list the PGPROC is in. When waiting for a lock, - * the PGPROC is linked into that lock's waitProcs queue. A recycled PGPROC - * is linked into ProcGlobal's freeProcs list. - * - * Note: twophase.c also sets up a dummy PGPROC struct for each currently - * prepared transaction. These PGPROCs appear in the ProcArray data structure - * so that the prepared transactions appear to be still running and are - * correctly shown as holding locks. A prepared transaction PGPROC can be - * distinguished from a real one at need by the fact that it has pid == 0. - * The semaphore and lock-activity fields in a prepared-xact PGPROC are unused, - * but its myProcLocks[] lists are valid. - * - * We allow many fields of this struct to be accessed without locks, such as - * delayChkpt and isBackgroundWorker. However, keep in mind that writing - * mirrored ones (see below) requires holding ProcArrayLock or XidGenLock in - * at least shared mode, so that pgxactoff does not change concurrently. - * - * Mirrored fields: - * - * Some fields in PGPROC (see "mirrored in ..." comment) are mirrored into an - * element of more densely packed ProcGlobal arrays. These arrays are indexed - * by PGPROC->pgxactoff. Both copies need to be maintained coherently. - * - * NB: The pgxactoff indexed value can *never* be accessed without holding - * locks. - * - * See PROC_HDR for details. - */ -struct PGPROC -{ - /* proc->links MUST BE FIRST IN STRUCT (see ProcSleep,ProcWakeup,etc) */ - SHM_QUEUE links; /* list link if process is in a list */ - PGPROC **procgloballist; /* procglobal list that owns this PGPROC */ - - PGSemaphore sem; /* ONE semaphore to sleep on */ - ProcWaitStatus waitStatus; - - Latch procLatch; /* generic latch for process */ - - - TransactionId xid; /* id of top-level transaction currently being - * executed by this proc, if running and XID - * is assigned; else InvalidTransactionId. - * mirrored in ProcGlobal->xids[pgxactoff] */ - - TransactionId xmin; /* minimal running XID as it was when we were - * starting our xact, excluding LAZY VACUUM: - * vacuum must not remove tuples deleted by - * xid >= xmin ! */ - - LocalTransactionId lxid; /* local id of top-level transaction currently - * being executed by this proc, if running; - * else InvalidLocalTransactionId */ - int pid; /* Backend's process ID; 0 if prepared xact */ - - int pgxactoff; /* offset into various ProcGlobal->arrays with - * data mirrored from this PGPROC */ - int pgprocno; - - /* These fields are zero while a backend is still starting up: */ - BackendId backendId; /* This backend's backend ID (if assigned) */ - Oid databaseId; /* OID of database this backend is using */ - Oid roleId; /* OID of role using this backend */ - - Oid tempNamespaceId; /* OID of temp schema this backend is - * using */ - - bool isBackgroundWorker; /* true if background worker. */ - - /* - * While in hot standby mode, shows that a conflict signal has been sent - * for the current transaction. Set/cleared while holding ProcArrayLock, - * though not required. Accessed without lock, if needed. - */ - bool recoveryConflictPending; - - /* Info about LWLock the process is currently waiting for, if any. */ - bool lwWaiting; /* true if waiting for an LW lock */ - uint8 lwWaitMode; /* lwlock mode being waited for */ - proclist_node lwWaitLink; /* position in LW lock wait list */ - - /* Support for condition variables. */ - proclist_node cvWaitLink; /* position in CV wait list */ - - /* Info about lock the process is currently waiting for, if any. */ - /* waitLock and waitProcLock are NULL if not currently waiting. */ - LOCK *waitLock; /* Lock object we're sleeping on ... */ - PROCLOCK *waitProcLock; /* Per-holder info for awaited lock */ - LOCKMODE waitLockMode; /* type of lock we're waiting for */ - LOCKMASK heldLocks; /* bitmask for lock types already held on this - * lock object by this backend */ - pg_atomic_uint64 waitStart; /* time at which wait for lock acquisition - * started */ - - int delayChkptFlags; /* for DELAY_CHKPT_* flags */ - - uint8 statusFlags; /* this backend's status flags, see PROC_* - * above. mirrored in - * ProcGlobal->statusFlags[pgxactoff] */ - - /* - * Info to allow us to wait for synchronous replication, if needed. - * waitLSN is InvalidXLogRecPtr if not waiting; set only by user backend. - * syncRepState must not be touched except by owning process or WALSender. - * syncRepLinks used only while holding SyncRepLock. - */ - XLogRecPtr waitLSN; /* waiting for this LSN or higher */ - int syncRepState; /* wait state for sync rep */ - SHM_QUEUE syncRepLinks; /* list link if process is in syncrep queue */ - - /* - * All PROCLOCK objects for locks held or awaited by this backend are - * linked into one of these lists, according to the partition number of - * their lock. - */ - SHM_QUEUE myProcLocks[NUM_LOCK_PARTITIONS]; - - XidCacheStatus subxidStatus; /* mirrored with - * ProcGlobal->subxidStates[i] */ - struct XidCache subxids; /* cache for subtransaction XIDs */ - - /* Support for group XID clearing. */ - /* true, if member of ProcArray group waiting for XID clear */ - bool procArrayGroupMember; - /* next ProcArray group member waiting for XID clear */ - pg_atomic_uint32 procArrayGroupNext; - - /* - * latest transaction id among the transaction's main XID and - * subtransactions - */ - TransactionId procArrayGroupMemberXid; - - uint32 wait_event_info; /* proc's wait information */ - - /* Support for group transaction status update. */ - bool clogGroupMember; /* true, if member of clog group */ - pg_atomic_uint32 clogGroupNext; /* next clog group member */ - TransactionId clogGroupMemberXid; /* transaction id of clog group member */ - XidStatus clogGroupMemberXidStatus; /* transaction status of clog - * group member */ - int clogGroupMemberPage; /* clog page corresponding to - * transaction id of clog group member */ - XLogRecPtr clogGroupMemberLsn; /* WAL location of commit record for clog - * group member */ - - /* Lock manager data, recording fast-path locks taken by this backend. */ - LWLock fpInfoLock; /* protects per-backend fast-path state */ - uint64 fpLockBits; /* lock modes held for each fast-path slot */ - Oid fpRelId[FP_LOCK_SLOTS_PER_BACKEND]; /* slots for rel oids */ - bool fpVXIDLock; /* are we holding a fast-path VXID lock? */ - LocalTransactionId fpLocalTransactionId; /* lxid for fast-path VXID - * lock */ - - /* - * Support for lock groups. Use LockHashPartitionLockByProc on the group - * leader to get the LWLock protecting these fields. - */ - PGPROC *lockGroupLeader; /* lock group leader, if I'm a member */ - dlist_head lockGroupMembers; /* list of members, if I'm a leader */ - dlist_node lockGroupLink; /* my member link, if I'm a member */ -}; - -/* NOTE: "typedef struct PGPROC PGPROC" appears in storage/lock.h. */ - - -extern PGDLLIMPORT PGPROC *MyProc; - -/* - * There is one ProcGlobal struct for the whole database cluster. - * - * Adding/Removing an entry into the procarray requires holding *both* - * ProcArrayLock and XidGenLock in exclusive mode (in that order). Both are - * needed because the dense arrays (see below) are accessed from - * GetNewTransactionId() and GetSnapshotData(), and we don't want to add - * further contention by both using the same lock. Adding/Removing a procarray - * entry is much less frequent. - * - * Some fields in PGPROC are mirrored into more densely packed arrays (e.g. - * xids), with one entry for each backend. These arrays only contain entries - * for PGPROCs that have been added to the shared array with ProcArrayAdd() - * (in contrast to PGPROC array which has unused PGPROCs interspersed). - * - * The dense arrays are indexed by PGPROC->pgxactoff. Any concurrent - * ProcArrayAdd() / ProcArrayRemove() can lead to pgxactoff of a procarray - * member to change. Therefore it is only safe to use PGPROC->pgxactoff to - * access the dense array while holding either ProcArrayLock or XidGenLock. - * - * As long as a PGPROC is in the procarray, the mirrored values need to be - * maintained in both places in a coherent manner. - * - * The denser separate arrays are beneficial for three main reasons: First, to - * allow for as tight loops accessing the data as possible. Second, to prevent - * updates of frequently changing data (e.g. xmin) from invalidating - * cachelines also containing less frequently changing data (e.g. xid, - * statusFlags). Third to condense frequently accessed data into as few - * cachelines as possible. - * - * There are two main reasons to have the data mirrored between these dense - * arrays and PGPROC. First, as explained above, a PGPROC's array entries can - * only be accessed with either ProcArrayLock or XidGenLock held, whereas the - * PGPROC entries do not require that (obviously there may still be locking - * requirements around the individual field, separate from the concerns - * here). That is particularly important for a backend to efficiently checks - * it own values, which it often can safely do without locking. Second, the - * PGPROC fields allow to avoid unnecessary accesses and modification to the - * dense arrays. A backend's own PGPROC is more likely to be in a local cache, - * whereas the cachelines for the dense array will be modified by other - * backends (often removing it from the cache for other cores/sockets). At - * commit/abort time a check of the PGPROC value can avoid accessing/dirtying - * the corresponding array value. - * - * Basically it makes sense to access the PGPROC variable when checking a - * single backend's data, especially when already looking at the PGPROC for - * other reasons already. It makes sense to look at the "dense" arrays if we - * need to look at many / most entries, because we then benefit from the - * reduced indirection and better cross-process cache-ability. - * - * When entering a PGPROC for 2PC transactions with ProcArrayAdd(), the data - * in the dense arrays is initialized from the PGPROC while it already holds - * ProcArrayLock. - */ -typedef struct PROC_HDR -{ - /* Array of PGPROC structures (not including dummies for prepared txns) */ - PGPROC *allProcs; - - /* Array mirroring PGPROC.xid for each PGPROC currently in the procarray */ - TransactionId *xids; - - /* - * Array mirroring PGPROC.subxidStatus for each PGPROC currently in the - * procarray. - */ - XidCacheStatus *subxidStates; - - /* - * Array mirroring PGPROC.statusFlags for each PGPROC currently in the - * procarray. - */ - uint8 *statusFlags; - - /* Length of allProcs array */ - uint32 allProcCount; - /* Head of list of free PGPROC structures */ - PGPROC *freeProcs; - /* Head of list of autovacuum's free PGPROC structures */ - PGPROC *autovacFreeProcs; - /* Head of list of bgworker free PGPROC structures */ - PGPROC *bgworkerFreeProcs; - /* Head of list of walsender free PGPROC structures */ - PGPROC *walsenderFreeProcs; - /* First pgproc waiting for group XID clear */ - pg_atomic_uint32 procArrayGroupFirst; - /* First pgproc waiting for group transaction status update */ - pg_atomic_uint32 clogGroupFirst; - /* WALWriter process's latch */ - Latch *walwriterLatch; - /* Checkpointer process's latch */ - Latch *checkpointerLatch; - /* Current shared estimate of appropriate spins_per_delay value */ - int spins_per_delay; - /* Buffer id of the buffer that Startup process waits for pin on, or -1 */ - int startupBufferPinWaitBufId; -} PROC_HDR; - -extern PGDLLIMPORT PROC_HDR *ProcGlobal; - -extern PGDLLIMPORT PGPROC *PreparedXactProcs; - -/* Accessor for PGPROC given a pgprocno. */ -#define GetPGProcByNumber(n) (&ProcGlobal->allProcs[(n)]) - -/* - * We set aside some extra PGPROC structures for auxiliary processes, - * ie things that aren't full-fledged backends but need shmem access. - * - * Background writer, checkpointer, WAL writer and archiver run during normal - * operation. Startup process and WAL receiver also consume 2 slots, but WAL - * writer is launched only after startup has exited, so we only need 5 slots. - */ -#define NUM_AUXILIARY_PROCS 5 - -/* configurable options */ -extern PGDLLIMPORT int DeadlockTimeout; -extern PGDLLIMPORT int StatementTimeout; -extern PGDLLIMPORT int LockTimeout; -extern PGDLLIMPORT int IdleInTransactionSessionTimeout; -extern PGDLLIMPORT int IdleSessionTimeout; -extern PGDLLIMPORT bool log_lock_waits; - - -/* - * Function Prototypes - */ -extern int ProcGlobalSemas(void); -extern Size ProcGlobalShmemSize(void); -extern void InitProcGlobal(void); -extern void InitProcess(void); -extern void InitProcessPhase2(void); -extern void InitAuxiliaryProcess(void); - -extern void SetStartupBufferPinWaitBufId(int bufid); -extern int GetStartupBufferPinWaitBufId(void); - -extern bool HaveNFreeProcs(int n); -extern void ProcReleaseLocks(bool isCommit); - -extern void ProcQueueInit(PROC_QUEUE *queue); -extern ProcWaitStatus ProcSleep(LOCALLOCK *locallock, LockMethod lockMethodTable); -extern PGPROC *ProcWakeup(PGPROC *proc, ProcWaitStatus waitStatus); -extern void ProcLockWakeup(LockMethod lockMethodTable, LOCK *lock); -extern void CheckDeadLockAlert(void); -extern bool IsWaitingForLock(void); -extern void LockErrorCleanup(void); - -extern void ProcWaitForSignal(uint32 wait_event_info); -extern void ProcSendSignal(int pgprocno); - -extern PGPROC *AuxiliaryPidGetProc(int pid); - -extern void BecomeLockGroupLeader(void); -extern bool BecomeLockGroupMember(PGPROC *leader, int pid); - -#endif /* _PROC_H_ */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/procarray.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/procarray.h deleted file mode 100644 index 1b2cfac5a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/procarray.h +++ /dev/null @@ -1,98 +0,0 @@ -/*------------------------------------------------------------------------- - * - * procarray.h - * POSTGRES process array definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/procarray.h - * - *------------------------------------------------------------------------- - */ -#ifndef PROCARRAY_H -#define PROCARRAY_H - -#include "storage/lock.h" -#include "storage/standby.h" -#include "utils/relcache.h" -#include "utils/snapshot.h" - - -extern Size ProcArrayShmemSize(void); -extern void CreateSharedProcArray(void); -extern void ProcArrayAdd(PGPROC *proc); -extern void ProcArrayRemove(PGPROC *proc, TransactionId latestXid); - -extern void ProcArrayEndTransaction(PGPROC *proc, TransactionId latestXid); -extern void ProcArrayClearTransaction(PGPROC *proc); - -extern void ProcArrayInitRecovery(TransactionId initializedUptoXID); -extern void ProcArrayApplyRecoveryInfo(RunningTransactions running); -extern void ProcArrayApplyXidAssignment(TransactionId topxid, - int nsubxids, TransactionId *subxids); - -extern void RecordKnownAssignedTransactionIds(TransactionId xid); -extern void ExpireTreeKnownAssignedTransactionIds(TransactionId xid, - int nsubxids, TransactionId *subxids, - TransactionId max_xid); -extern void ExpireAllKnownAssignedTransactionIds(void); -extern void ExpireOldKnownAssignedTransactionIds(TransactionId xid); - -extern int GetMaxSnapshotXidCount(void); -extern int GetMaxSnapshotSubxidCount(void); - -extern Snapshot GetSnapshotData(Snapshot snapshot); - -extern bool ProcArrayInstallImportedXmin(TransactionId xmin, - VirtualTransactionId *sourcevxid); -extern bool ProcArrayInstallRestoredXmin(TransactionId xmin, PGPROC *proc); - -extern RunningTransactions GetRunningTransactionData(void); - -extern bool TransactionIdIsInProgress(TransactionId xid); -extern bool TransactionIdIsActive(TransactionId xid); -extern TransactionId GetOldestNonRemovableTransactionId(Relation rel); -extern TransactionId GetOldestTransactionIdConsideredRunning(void); -extern TransactionId GetOldestActiveTransactionId(void); -extern TransactionId GetOldestSafeDecodingTransactionId(bool catalogOnly); -extern void GetReplicationHorizons(TransactionId *slot_xmin, TransactionId *catalog_xmin); - -extern VirtualTransactionId *GetVirtualXIDsDelayingChkpt(int *nvxids, int type); -extern bool HaveVirtualXIDsDelayingChkpt(VirtualTransactionId *vxids, - int nvxids, int type); - -extern PGPROC *BackendPidGetProc(int pid); -extern PGPROC *BackendPidGetProcWithLock(int pid); -extern int BackendXidGetPid(TransactionId xid); -extern bool IsBackendPid(int pid); - -extern VirtualTransactionId *GetCurrentVirtualXIDs(TransactionId limitXmin, - bool excludeXmin0, bool allDbs, int excludeVacuum, - int *nvxids); -extern VirtualTransactionId *GetConflictingVirtualXIDs(TransactionId limitXmin, Oid dbOid); -extern pid_t CancelVirtualTransaction(VirtualTransactionId vxid, ProcSignalReason sigmode); -extern pid_t SignalVirtualTransaction(VirtualTransactionId vxid, ProcSignalReason sigmode, - bool conflictPending); - -extern bool MinimumActiveBackends(int min); -extern int CountDBBackends(Oid databaseid); -extern int CountDBConnections(Oid databaseid); -extern void CancelDBBackends(Oid databaseid, ProcSignalReason sigmode, bool conflictPending); -extern int CountUserBackends(Oid roleid); -extern bool CountOtherDBBackends(Oid databaseId, - int *nbackends, int *nprepared); -extern void TerminateOtherDBBackends(Oid databaseId); - -extern void XidCacheRemoveRunningXids(TransactionId xid, - int nxids, const TransactionId *xids, - TransactionId latestXid); - -extern void ProcArraySetReplicationSlotXmin(TransactionId xmin, - TransactionId catalog_xmin, bool already_locked); - -extern void ProcArrayGetReplicationSlotXmin(TransactionId *xmin, - TransactionId *catalog_xmin); - -#endif /* PROCARRAY_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/proclist_types.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/proclist_types.h deleted file mode 100644 index 523267940..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/proclist_types.h +++ /dev/null @@ -1,51 +0,0 @@ -/*------------------------------------------------------------------------- - * - * proclist_types.h - * doubly-linked lists of pgprocnos - * - * See proclist.h for functions that operate on these types. - * - * Portions Copyright (c) 2016-2022, PostgreSQL Global Development Group - * - * IDENTIFICATION - * src/include/storage/proclist_types.h - *------------------------------------------------------------------------- - */ - -#ifndef PROCLIST_TYPES_H -#define PROCLIST_TYPES_H - -/* - * A node in a doubly-linked list of processes. The link fields contain - * the 0-based PGPROC indexes of the next and previous process, or - * INVALID_PGPROCNO in the next-link of the last node and the prev-link - * of the first node. A node that is currently not in any list - * should have next == prev == 0; this is not a possible state for a node - * that is in a list, because we disallow circularity. - */ -typedef struct proclist_node -{ - int next; /* pgprocno of the next PGPROC */ - int prev; /* pgprocno of the prev PGPROC */ -} proclist_node; - -/* - * Header of a doubly-linked list of PGPROCs, identified by pgprocno. - * An empty list is represented by head == tail == INVALID_PGPROCNO. - */ -typedef struct proclist_head -{ - int head; /* pgprocno of the head PGPROC */ - int tail; /* pgprocno of the tail PGPROC */ -} proclist_head; - -/* - * List iterator allowing some modifications while iterating. - */ -typedef struct proclist_mutable_iter -{ - int cur; /* pgprocno of the current PGPROC */ - int next; /* pgprocno of the next PGPROC */ -} proclist_mutable_iter; - -#endif /* PROCLIST_TYPES_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/procsignal.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/procsignal.h deleted file mode 100644 index ee636900f..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/procsignal.h +++ /dev/null @@ -1,71 +0,0 @@ -/*------------------------------------------------------------------------- - * - * procsignal.h - * Routines for interprocess signaling - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/procsignal.h - * - *------------------------------------------------------------------------- - */ -#ifndef PROCSIGNAL_H -#define PROCSIGNAL_H - -#include "storage/backendid.h" - - -/* - * Reasons for signaling a Postgres child process (a backend or an auxiliary - * process, like checkpointer). We can cope with concurrent signals for different - * reasons. However, if the same reason is signaled multiple times in quick - * succession, the process is likely to observe only one notification of it. - * This is okay for the present uses. - * - * Also, because of race conditions, it's important that all the signals be - * defined so that no harm is done if a process mistakenly receives one. - */ -typedef enum -{ - PROCSIG_CATCHUP_INTERRUPT, /* sinval catchup interrupt */ - PROCSIG_NOTIFY_INTERRUPT, /* listen/notify interrupt */ - PROCSIG_PARALLEL_MESSAGE, /* message from cooperating parallel backend */ - PROCSIG_WALSND_INIT_STOPPING, /* ask walsenders to prepare for shutdown */ - PROCSIG_BARRIER, /* global barrier interrupt */ - PROCSIG_LOG_MEMORY_CONTEXT, /* ask backend to log the memory contexts */ - - /* Recovery conflict reasons */ - PROCSIG_RECOVERY_CONFLICT_DATABASE, - PROCSIG_RECOVERY_CONFLICT_TABLESPACE, - PROCSIG_RECOVERY_CONFLICT_LOCK, - PROCSIG_RECOVERY_CONFLICT_SNAPSHOT, - PROCSIG_RECOVERY_CONFLICT_BUFFERPIN, - PROCSIG_RECOVERY_CONFLICT_STARTUP_DEADLOCK, - - NUM_PROCSIGNALS /* Must be last! */ -} ProcSignalReason; - -typedef enum -{ - PROCSIGNAL_BARRIER_SMGRRELEASE /* ask smgr to close files */ -} ProcSignalBarrierType; - -/* - * prototypes for functions in procsignal.c - */ -extern Size ProcSignalShmemSize(void); -extern void ProcSignalShmemInit(void); - -extern void ProcSignalInit(int pss_idx); -extern int SendProcSignal(pid_t pid, ProcSignalReason reason, - BackendId backendId); - -extern uint64 EmitProcSignalBarrier(ProcSignalBarrierType type); -extern void WaitForProcSignalBarrier(uint64 generation); -extern void ProcessProcSignalBarrier(void); - -extern void procsignal_sigusr1_handler(SIGNAL_ARGS); - -#endif /* PROCSIGNAL_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/relfilenode.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/relfilenode.h deleted file mode 100644 index 4fdc606cc..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/relfilenode.h +++ /dev/null @@ -1,99 +0,0 @@ -/*------------------------------------------------------------------------- - * - * relfilenode.h - * Physical access information for relations. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/relfilenode.h - * - *------------------------------------------------------------------------- - */ -#ifndef RELFILENODE_H -#define RELFILENODE_H - -#include "common/relpath.h" -#include "storage/backendid.h" - -/* - * RelFileNode must provide all that we need to know to physically access - * a relation, with the exception of the backend ID, which can be provided - * separately. Note, however, that a "physical" relation is comprised of - * multiple files on the filesystem, as each fork is stored as a separate - * file, and each fork can be divided into multiple segments. See md.c. - * - * spcNode identifies the tablespace of the relation. It corresponds to - * pg_tablespace.oid. - * - * dbNode identifies the database of the relation. It is zero for - * "shared" relations (those common to all databases of a cluster). - * Nonzero dbNode values correspond to pg_database.oid. - * - * relNode identifies the specific relation. relNode corresponds to - * pg_class.relfilenode (NOT pg_class.oid, because we need to be able - * to assign new physical files to relations in some situations). - * Notice that relNode is only unique within a database in a particular - * tablespace. - * - * Note: spcNode must be GLOBALTABLESPACE_OID if and only if dbNode is - * zero. We support shared relations only in the "global" tablespace. - * - * Note: in pg_class we allow reltablespace == 0 to denote that the - * relation is stored in its database's "default" tablespace (as - * identified by pg_database.dattablespace). However this shorthand - * is NOT allowed in RelFileNode structs --- the real tablespace ID - * must be supplied when setting spcNode. - * - * Note: in pg_class, relfilenode can be zero to denote that the relation - * is a "mapped" relation, whose current true filenode number is available - * from relmapper.c. Again, this case is NOT allowed in RelFileNodes. - * - * Note: various places use RelFileNode in hashtable keys. Therefore, - * there *must not* be any unused padding bytes in this struct. That - * should be safe as long as all the fields are of type Oid. - */ -typedef struct RelFileNode -{ - Oid spcNode; /* tablespace */ - Oid dbNode; /* database */ - Oid relNode; /* relation */ -} RelFileNode; - -/* - * Augmenting a relfilenode with the backend ID provides all the information - * we need to locate the physical storage. The backend ID is InvalidBackendId - * for regular relations (those accessible to more than one backend), or the - * owning backend's ID for backend-local relations. Backend-local relations - * are always transient and removed in case of a database crash; they are - * never WAL-logged or fsync'd. - */ -typedef struct RelFileNodeBackend -{ - RelFileNode node; - BackendId backend; -} RelFileNodeBackend; - -#define RelFileNodeBackendIsTemp(rnode) \ - ((rnode).backend != InvalidBackendId) - -/* - * Note: RelFileNodeEquals and RelFileNodeBackendEquals compare relNode first - * since that is most likely to be different in two unequal RelFileNodes. It - * is probably redundant to compare spcNode if the other fields are found equal, - * but do it anyway to be sure. Likewise for checking the backend ID in - * RelFileNodeBackendEquals. - */ -#define RelFileNodeEquals(node1, node2) \ - ((node1).relNode == (node2).relNode && \ - (node1).dbNode == (node2).dbNode && \ - (node1).spcNode == (node2).spcNode) - -#define RelFileNodeBackendEquals(node1, node2) \ - ((node1).node.relNode == (node2).node.relNode && \ - (node1).node.dbNode == (node2).node.dbNode && \ - (node1).backend == (node2).backend && \ - (node1).node.spcNode == (node2).node.spcNode) - -#endif /* RELFILENODE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/s_lock.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/s_lock.h deleted file mode 100644 index 4d3ffc767..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/s_lock.h +++ /dev/null @@ -1,1110 +0,0 @@ -/*------------------------------------------------------------------------- - * - * s_lock.h - * Hardware-dependent implementation of spinlocks. - * - * NOTE: none of the macros in this file are intended to be called directly. - * Call them through the hardware-independent macros in spin.h. - * - * The following hardware-dependent macros must be provided for each - * supported platform: - * - * void S_INIT_LOCK(slock_t *lock) - * Initialize a spinlock (to the unlocked state). - * - * int S_LOCK(slock_t *lock) - * Acquire a spinlock, waiting if necessary. - * Time out and abort() if unable to acquire the lock in a - * "reasonable" amount of time --- typically ~ 1 minute. - * Should return number of "delays"; see s_lock.c - * - * void S_UNLOCK(slock_t *lock) - * Unlock a previously acquired lock. - * - * bool S_LOCK_FREE(slock_t *lock) - * Tests if the lock is free. Returns true if free, false if locked. - * This does *not* change the state of the lock. - * - * void SPIN_DELAY(void) - * Delay operation to occur inside spinlock wait loop. - * - * Note to implementors: there are default implementations for all these - * macros at the bottom of the file. Check if your platform can use - * these or needs to override them. - * - * Usually, S_LOCK() is implemented in terms of even lower-level macros - * TAS() and TAS_SPIN(): - * - * int TAS(slock_t *lock) - * Atomic test-and-set instruction. Attempt to acquire the lock, - * but do *not* wait. Returns 0 if successful, nonzero if unable - * to acquire the lock. - * - * int TAS_SPIN(slock_t *lock) - * Like TAS(), but this version is used when waiting for a lock - * previously found to be contended. By default, this is the - * same as TAS(), but on some architectures it's better to poll a - * contended lock using an unlocked instruction and retry the - * atomic test-and-set only when it appears free. - * - * TAS() and TAS_SPIN() are NOT part of the API, and should never be called - * directly. - * - * CAUTION: on some platforms TAS() and/or TAS_SPIN() may sometimes report - * failure to acquire a lock even when the lock is not locked. For example, - * on Alpha TAS() will "fail" if interrupted. Therefore a retry loop must - * always be used, even if you are certain the lock is free. - * - * It is the responsibility of these macros to make sure that the compiler - * does not re-order accesses to shared memory to precede the actual lock - * acquisition, or follow the lock release. Prior to PostgreSQL 9.5, this - * was the caller's responsibility, which meant that callers had to use - * volatile-qualified pointers to refer to both the spinlock itself and the - * shared data being accessed within the spinlocked critical section. This - * was notationally awkward, easy to forget (and thus error-prone), and - * prevented some useful compiler optimizations. For these reasons, we - * now require that the macros themselves prevent compiler re-ordering, - * so that the caller doesn't need to take special precautions. - * - * On platforms with weak memory ordering, the TAS(), TAS_SPIN(), and - * S_UNLOCK() macros must further include hardware-level memory fence - * instructions to prevent similar re-ordering at the hardware level. - * TAS() and TAS_SPIN() must guarantee that loads and stores issued after - * the macro are not executed until the lock has been obtained. Conversely, - * S_UNLOCK() must guarantee that loads and stores issued before the macro - * have been executed before the lock is released. - * - * On most supported platforms, TAS() uses a tas() function written - * in assembly language to execute a hardware atomic-test-and-set - * instruction. Equivalent OS-supplied mutex routines could be used too. - * - * If no system-specific TAS() is available (ie, HAVE_SPINLOCKS is not - * defined), then we fall back on an emulation that uses SysV semaphores - * (see spin.c). This emulation will be MUCH MUCH slower than a proper TAS() - * implementation, because of the cost of a kernel call per lock or unlock. - * An old report is that Postgres spends around 40% of its time in semop(2) - * when using the SysV semaphore code. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/s_lock.h - * - *------------------------------------------------------------------------- - */ -#ifndef S_LOCK_H -#define S_LOCK_H - -#ifdef FRONTEND -#error "s_lock.h may not be included from frontend code" -#endif - -#ifdef HAVE_SPINLOCKS /* skip spinlocks if requested */ - -#if defined(__GNUC__) || defined(__INTEL_COMPILER) -/************************************************************************* - * All the gcc inlines - * Gcc consistently defines the CPU as __cpu__. - * Other compilers use __cpu or __cpu__ so we test for both in those cases. - */ - -/*---------- - * Standard gcc asm format (assuming "volatile slock_t *lock"): - - __asm__ __volatile__( - " instruction \n" - " instruction \n" - " instruction \n" -: "=r"(_res), "+m"(*lock) // return register, in/out lock value -: "r"(lock) // lock pointer, in input register -: "memory", "cc"); // show clobbered registers here - - * The output-operands list (after first colon) should always include - * "+m"(*lock), whether or not the asm code actually refers to this - * operand directly. This ensures that gcc believes the value in the - * lock variable is used and set by the asm code. Also, the clobbers - * list (after third colon) should always include "memory"; this prevents - * gcc from thinking it can cache the values of shared-memory fields - * across the asm code. Add "cc" if your asm code changes the condition - * code register, and also list any temp registers the code uses. - *---------- - */ - - -#ifdef __i386__ /* 32-bit i386 */ -#define HAS_TEST_AND_SET - -typedef unsigned char slock_t; - -#define TAS(lock) tas(lock) - -static __inline__ int -tas(volatile slock_t *lock) -{ - register slock_t _res = 1; - - /* - * Use a non-locking test before asserting the bus lock. Note that the - * extra test appears to be a small loss on some x86 platforms and a small - * win on others; it's by no means clear that we should keep it. - * - * When this was last tested, we didn't have separate TAS() and TAS_SPIN() - * macros. Nowadays it probably would be better to do a non-locking test - * in TAS_SPIN() but not in TAS(), like on x86_64, but no-one's done the - * testing to verify that. Without some empirical evidence, better to - * leave it alone. - */ - __asm__ __volatile__( - " cmpb $0,%1 \n" - " jne 1f \n" - " lock \n" - " xchgb %0,%1 \n" - "1: \n" -: "+q"(_res), "+m"(*lock) -: /* no inputs */ -: "memory", "cc"); - return (int) _res; -} - -#define SPIN_DELAY() spin_delay() - -static __inline__ void -spin_delay(void) -{ - /* - * This sequence is equivalent to the PAUSE instruction ("rep" is - * ignored by old IA32 processors if the following instruction is - * not a string operation); the IA-32 Architecture Software - * Developer's Manual, Vol. 3, Section 7.7.2 describes why using - * PAUSE in the inner loop of a spin lock is necessary for good - * performance: - * - * The PAUSE instruction improves the performance of IA-32 - * processors supporting Hyper-Threading Technology when - * executing spin-wait loops and other routines where one - * thread is accessing a shared lock or semaphore in a tight - * polling loop. When executing a spin-wait loop, the - * processor can suffer a severe performance penalty when - * exiting the loop because it detects a possible memory order - * violation and flushes the core processor's pipeline. The - * PAUSE instruction provides a hint to the processor that the - * code sequence is a spin-wait loop. The processor uses this - * hint to avoid the memory order violation and prevent the - * pipeline flush. In addition, the PAUSE instruction - * de-pipelines the spin-wait loop to prevent it from - * consuming execution resources excessively. - */ - __asm__ __volatile__( - " rep; nop \n"); -} - -#endif /* __i386__ */ - - -#ifdef __x86_64__ /* AMD Opteron, Intel EM64T */ -#define HAS_TEST_AND_SET - -typedef unsigned char slock_t; - -#define TAS(lock) tas(lock) - -/* - * On Intel EM64T, it's a win to use a non-locking test before the xchg proper, - * but only when spinning. - * - * See also Implementing Scalable Atomic Locks for Multi-Core Intel(tm) EM64T - * and IA32, by Michael Chynoweth and Mary R. Lee. As of this writing, it is - * available at: - * http://software.intel.com/en-us/articles/implementing-scalable-atomic-locks-for-multi-core-intel-em64t-and-ia32-architectures - */ -#define TAS_SPIN(lock) (*(lock) ? 1 : TAS(lock)) - -static __inline__ int -tas(volatile slock_t *lock) -{ - register slock_t _res = 1; - - __asm__ __volatile__( - " lock \n" - " xchgb %0,%1 \n" -: "+q"(_res), "+m"(*lock) -: /* no inputs */ -: "memory", "cc"); - return (int) _res; -} - -#define SPIN_DELAY() spin_delay() - -static __inline__ void -spin_delay(void) -{ - /* - * Adding a PAUSE in the spin delay loop is demonstrably a no-op on - * Opteron, but it may be of some use on EM64T, so we keep it. - */ - __asm__ __volatile__( - " rep; nop \n"); -} - -#endif /* __x86_64__ */ - - -#if defined(__ia64__) || defined(__ia64) -/* - * Intel Itanium, gcc or Intel's compiler. - * - * Itanium has weak memory ordering, but we rely on the compiler to enforce - * strict ordering of accesses to volatile data. In particular, while the - * xchg instruction implicitly acts as a memory barrier with 'acquire' - * semantics, we do not have an explicit memory fence instruction in the - * S_UNLOCK macro. We use a regular assignment to clear the spinlock, and - * trust that the compiler marks the generated store instruction with the - * ".rel" opcode. - * - * Testing shows that assumption to hold on gcc, although I could not find - * any explicit statement on that in the gcc manual. In Intel's compiler, - * the -m[no-]serialize-volatile option controls that, and testing shows that - * it is enabled by default. - * - * While icc accepts gcc asm blocks on x86[_64], this is not true on ia64 - * (at least not in icc versions before 12.x). So we have to carry a separate - * compiler-intrinsic-based implementation for it. - */ -#define HAS_TEST_AND_SET - -typedef unsigned int slock_t; - -#define TAS(lock) tas(lock) - -/* On IA64, it's a win to use a non-locking test before the xchg proper */ -#define TAS_SPIN(lock) (*(lock) ? 1 : TAS(lock)) - -#ifndef __INTEL_COMPILER - -static __inline__ int -tas(volatile slock_t *lock) -{ - long int ret; - - __asm__ __volatile__( - " xchg4 %0=%1,%2 \n" -: "=r"(ret), "+m"(*lock) -: "r"(1) -: "memory"); - return (int) ret; -} - -#else /* __INTEL_COMPILER */ - -static __inline__ int -tas(volatile slock_t *lock) -{ - int ret; - - ret = _InterlockedExchange(lock,1); /* this is a xchg asm macro */ - - return ret; -} - -/* icc can't use the regular gcc S_UNLOCK() macro either in this case */ -#define S_UNLOCK(lock) \ - do { __memory_barrier(); *(lock) = 0; } while (0) - -#endif /* __INTEL_COMPILER */ -#endif /* __ia64__ || __ia64 */ - - -/* - * On ARM and ARM64, we use __sync_lock_test_and_set(int *, int) if available. - * - * We use the int-width variant of the builtin because it works on more chips - * than other widths. - */ -#if defined(__arm__) || defined(__arm) || defined(__aarch64__) || defined(__aarch64) -#ifdef HAVE_GCC__SYNC_INT32_TAS -#define HAS_TEST_AND_SET - -#define TAS(lock) tas(lock) - -typedef int slock_t; - -static __inline__ int -tas(volatile slock_t *lock) -{ - return __sync_lock_test_and_set(lock, 1); -} - -#define S_UNLOCK(lock) __sync_lock_release(lock) - -/* - * Using an ISB instruction to delay in spinlock loops appears beneficial on - * high-core-count ARM64 processors. It seems mostly a wash for smaller gear, - * and ISB doesn't exist at all on pre-v7 ARM chips. - */ -#if defined(__aarch64__) || defined(__aarch64) - -#define SPIN_DELAY() spin_delay() - -static __inline__ void -spin_delay(void) -{ - __asm__ __volatile__( - " isb; \n"); -} - -#endif /* __aarch64__ || __aarch64 */ -#endif /* HAVE_GCC__SYNC_INT32_TAS */ -#endif /* __arm__ || __arm || __aarch64__ || __aarch64 */ - - -/* S/390 and S/390x Linux (32- and 64-bit zSeries) */ -#if defined(__s390__) || defined(__s390x__) -#define HAS_TEST_AND_SET - -typedef unsigned int slock_t; - -#define TAS(lock) tas(lock) - -static __inline__ int -tas(volatile slock_t *lock) -{ - int _res = 0; - - __asm__ __volatile__( - " cs %0,%3,0(%2) \n" -: "+d"(_res), "+m"(*lock) -: "a"(lock), "d"(1) -: "memory", "cc"); - return _res; -} - -#endif /* __s390__ || __s390x__ */ - - -#if defined(__sparc__) /* Sparc */ -/* - * Solaris has always run sparc processors in TSO (total store) mode, but - * linux didn't use to and the *BSDs still don't. So, be careful about - * acquire/release semantics. The CPU will treat superfluous membars as - * NOPs, so it's just code space. - */ -#define HAS_TEST_AND_SET - -typedef unsigned char slock_t; - -#define TAS(lock) tas(lock) - -static __inline__ int -tas(volatile slock_t *lock) -{ - register slock_t _res; - - /* - * See comment in src/backend/port/tas/sunstudio_sparc.s for why this - * uses "ldstub", and that file uses "cas". gcc currently generates - * sparcv7-targeted binaries, so "cas" use isn't possible. - */ - __asm__ __volatile__( - " ldstub [%2], %0 \n" -: "=r"(_res), "+m"(*lock) -: "r"(lock) -: "memory"); -#if defined(__sparcv7) || defined(__sparc_v7__) - /* - * No stbar or membar available, luckily no actually produced hardware - * requires a barrier. - */ -#elif defined(__sparcv8) || defined(__sparc_v8__) - /* stbar is available (and required for both PSO, RMO), membar isn't */ - __asm__ __volatile__ ("stbar \n":::"memory"); -#else - /* - * #LoadStore (RMO) | #LoadLoad (RMO) together are the appropriate acquire - * barrier for sparcv8+ upwards. - */ - __asm__ __volatile__ ("membar #LoadStore | #LoadLoad \n":::"memory"); -#endif - return (int) _res; -} - -#if defined(__sparcv7) || defined(__sparc_v7__) -/* - * No stbar or membar available, luckily no actually produced hardware - * requires a barrier. We fall through to the default gcc definition of - * S_UNLOCK in this case. - */ -#elif defined(__sparcv8) || defined(__sparc_v8__) -/* stbar is available (and required for both PSO, RMO), membar isn't */ -#define S_UNLOCK(lock) \ -do \ -{ \ - __asm__ __volatile__ ("stbar \n":::"memory"); \ - *((volatile slock_t *) (lock)) = 0; \ -} while (0) -#else -/* - * #LoadStore (RMO) | #StoreStore (RMO, PSO) together are the appropriate - * release barrier for sparcv8+ upwards. - */ -#define S_UNLOCK(lock) \ -do \ -{ \ - __asm__ __volatile__ ("membar #LoadStore | #StoreStore \n":::"memory"); \ - *((volatile slock_t *) (lock)) = 0; \ -} while (0) -#endif - -#endif /* __sparc__ */ - - -/* PowerPC */ -#if defined(__ppc__) || defined(__powerpc__) || defined(__ppc64__) || defined(__powerpc64__) -#define HAS_TEST_AND_SET - -typedef unsigned int slock_t; - -#define TAS(lock) tas(lock) - -/* On PPC, it's a win to use a non-locking test before the lwarx */ -#define TAS_SPIN(lock) (*(lock) ? 1 : TAS(lock)) - -/* - * The second operand of addi can hold a constant zero or a register number, - * hence constraint "=&b" to avoid allocating r0. "b" stands for "address - * base register"; most operands having this register-or-zero property are - * address bases, e.g. the second operand of lwax. - * - * NOTE: per the Enhanced PowerPC Architecture manual, v1.0 dated 7-May-2002, - * an isync is a sufficient synchronization barrier after a lwarx/stwcx loop. - * On newer machines, we can use lwsync instead for better performance. - * - * Ordinarily, we'd code the branches here using GNU-style local symbols, that - * is "1f" referencing "1:" and so on. But some people run gcc on AIX with - * IBM's assembler as backend, and IBM's assembler doesn't do local symbols. - * So hand-code the branch offsets; fortunately, all PPC instructions are - * exactly 4 bytes each, so it's not too hard to count. - */ -static __inline__ int -tas(volatile slock_t *lock) -{ - slock_t _t; - int _res; - - __asm__ __volatile__( -#ifdef USE_PPC_LWARX_MUTEX_HINT -" lwarx %0,0,%3,1 \n" -#else -" lwarx %0,0,%3 \n" -#endif -" cmpwi %0,0 \n" -" bne $+16 \n" /* branch to li %1,1 */ -" addi %0,%0,1 \n" -" stwcx. %0,0,%3 \n" -" beq $+12 \n" /* branch to lwsync/isync */ -" li %1,1 \n" -" b $+12 \n" /* branch to end of asm sequence */ -#ifdef USE_PPC_LWSYNC -" lwsync \n" -#else -" isync \n" -#endif -" li %1,0 \n" - -: "=&b"(_t), "=r"(_res), "+m"(*lock) -: "r"(lock) -: "memory", "cc"); - return _res; -} - -/* - * PowerPC S_UNLOCK is almost standard but requires a "sync" instruction. - * On newer machines, we can use lwsync instead for better performance. - */ -#ifdef USE_PPC_LWSYNC -#define S_UNLOCK(lock) \ -do \ -{ \ - __asm__ __volatile__ (" lwsync \n" ::: "memory"); \ - *((volatile slock_t *) (lock)) = 0; \ -} while (0) -#else -#define S_UNLOCK(lock) \ -do \ -{ \ - __asm__ __volatile__ (" sync \n" ::: "memory"); \ - *((volatile slock_t *) (lock)) = 0; \ -} while (0) -#endif /* USE_PPC_LWSYNC */ - -#endif /* powerpc */ - - -/* Linux Motorola 68k */ -#if (defined(__mc68000__) || defined(__m68k__)) && defined(__linux__) -#define HAS_TEST_AND_SET - -typedef unsigned char slock_t; - -#define TAS(lock) tas(lock) - -static __inline__ int -tas(volatile slock_t *lock) -{ - register int rv; - - __asm__ __volatile__( - " clrl %0 \n" - " tas %1 \n" - " sne %0 \n" -: "=d"(rv), "+m"(*lock) -: /* no inputs */ -: "memory", "cc"); - return rv; -} - -#endif /* (__mc68000__ || __m68k__) && __linux__ */ - - -/* Motorola 88k */ -#if defined(__m88k__) -#define HAS_TEST_AND_SET - -typedef unsigned int slock_t; - -#define TAS(lock) tas(lock) - -static __inline__ int -tas(volatile slock_t *lock) -{ - register slock_t _res = 1; - - __asm__ __volatile__( - " xmem %0, %2, %%r0 \n" -: "+r"(_res), "+m"(*lock) -: "r"(lock) -: "memory"); - return (int) _res; -} - -#endif /* __m88k__ */ - - -/* - * VAXen -- even multiprocessor ones - * (thanks to Tom Ivar Helbekkmo) - */ -#if defined(__vax__) -#define HAS_TEST_AND_SET - -typedef unsigned char slock_t; - -#define TAS(lock) tas(lock) - -static __inline__ int -tas(volatile slock_t *lock) -{ - register int _res; - - __asm__ __volatile__( - " movl $1, %0 \n" - " bbssi $0, (%2), 1f \n" - " clrl %0 \n" - "1: \n" -: "=&r"(_res), "+m"(*lock) -: "r"(lock) -: "memory"); - return _res; -} - -#endif /* __vax__ */ - - -#if defined(__mips__) && !defined(__sgi) /* non-SGI MIPS */ -#define HAS_TEST_AND_SET - -typedef unsigned int slock_t; - -#define TAS(lock) tas(lock) - -/* - * Original MIPS-I processors lacked the LL/SC instructions, but if we are - * so unfortunate as to be running on one of those, we expect that the kernel - * will handle the illegal-instruction traps and emulate them for us. On - * anything newer (and really, MIPS-I is extinct) LL/SC is the only sane - * choice because any other synchronization method must involve a kernel - * call. Unfortunately, many toolchains still default to MIPS-I as the - * codegen target; if the symbol __mips shows that that's the case, we - * have to force the assembler to accept LL/SC. - * - * R10000 and up processors require a separate SYNC, which has the same - * issues as LL/SC. - */ -#if __mips < 2 -#define MIPS_SET_MIPS2 " .set mips2 \n" -#else -#define MIPS_SET_MIPS2 -#endif - -static __inline__ int -tas(volatile slock_t *lock) -{ - register volatile slock_t *_l = lock; - register int _res; - register int _tmp; - - __asm__ __volatile__( - " .set push \n" - MIPS_SET_MIPS2 - " .set noreorder \n" - " .set nomacro \n" - " ll %0, %2 \n" - " or %1, %0, 1 \n" - " sc %1, %2 \n" - " xori %1, 1 \n" - " or %0, %0, %1 \n" - " sync \n" - " .set pop " -: "=&r" (_res), "=&r" (_tmp), "+R" (*_l) -: /* no inputs */ -: "memory"); - return _res; -} - -/* MIPS S_UNLOCK is almost standard but requires a "sync" instruction */ -#define S_UNLOCK(lock) \ -do \ -{ \ - __asm__ __volatile__( \ - " .set push \n" \ - MIPS_SET_MIPS2 \ - " .set noreorder \n" \ - " .set nomacro \n" \ - " sync \n" \ - " .set pop " \ -: /* no outputs */ \ -: /* no inputs */ \ -: "memory"); \ - *((volatile slock_t *) (lock)) = 0; \ -} while (0) - -#endif /* __mips__ && !__sgi */ - - -#if defined(__m32r__) && defined(HAVE_SYS_TAS_H) /* Renesas' M32R */ -#define HAS_TEST_AND_SET - -#include - -typedef int slock_t; - -#define TAS(lock) tas(lock) - -#endif /* __m32r__ */ - - -#if defined(__sh__) /* Renesas' SuperH */ -#define HAS_TEST_AND_SET - -typedef unsigned char slock_t; - -#define TAS(lock) tas(lock) - -static __inline__ int -tas(volatile slock_t *lock) -{ - register int _res; - - /* - * This asm is coded as if %0 could be any register, but actually SuperH - * restricts the target of xor-immediate to be R0. That's handled by - * the "z" constraint on _res. - */ - __asm__ __volatile__( - " tas.b @%2 \n" - " movt %0 \n" - " xor #1,%0 \n" -: "=z"(_res), "+m"(*lock) -: "r"(lock) -: "memory", "t"); - return _res; -} - -#endif /* __sh__ */ - - -/* These live in s_lock.c, but only for gcc */ - - -#if defined(__m68k__) && !defined(__linux__) /* non-Linux Motorola 68k */ -#define HAS_TEST_AND_SET - -typedef unsigned char slock_t; -#endif - - -/* - * If we have no platform-specific knowledge, but we found that the compiler - * provides __sync_lock_test_and_set(), use that. Prefer the int-width - * version over the char-width version if we have both, on the rather dubious - * grounds that that's known to be more likely to work in the ARM ecosystem. - * (But we dealt with ARM above.) - */ -#if !defined(HAS_TEST_AND_SET) - -#if defined(HAVE_GCC__SYNC_INT32_TAS) -#define HAS_TEST_AND_SET - -#define TAS(lock) tas(lock) - -typedef int slock_t; - -static __inline__ int -tas(volatile slock_t *lock) -{ - return __sync_lock_test_and_set(lock, 1); -} - -#define S_UNLOCK(lock) __sync_lock_release(lock) - -#elif defined(HAVE_GCC__SYNC_CHAR_TAS) -#define HAS_TEST_AND_SET - -#define TAS(lock) tas(lock) - -typedef char slock_t; - -static __inline__ int -tas(volatile slock_t *lock) -{ - return __sync_lock_test_and_set(lock, 1); -} - -#define S_UNLOCK(lock) __sync_lock_release(lock) - -#endif /* HAVE_GCC__SYNC_INT32_TAS */ - -#endif /* !defined(HAS_TEST_AND_SET) */ - - -/* - * Default implementation of S_UNLOCK() for gcc/icc. - * - * Note that this implementation is unsafe for any platform that can reorder - * a memory access (either load or store) after a following store. That - * happens not to be possible on x86 and most legacy architectures (some are - * single-processor!), but many modern systems have weaker memory ordering. - * Those that do must define their own version of S_UNLOCK() rather than - * relying on this one. - */ -#if !defined(S_UNLOCK) -#define S_UNLOCK(lock) \ - do { __asm__ __volatile__("" : : : "memory"); *(lock) = 0; } while (0) -#endif - -#endif /* defined(__GNUC__) || defined(__INTEL_COMPILER) */ - - - -/* - * --------------------------------------------------------------------- - * Platforms that use non-gcc inline assembly: - * --------------------------------------------------------------------- - */ - -#if !defined(HAS_TEST_AND_SET) /* We didn't trigger above, let's try here */ - - -#if defined(__hppa) || defined(__hppa__) /* HP PA-RISC, GCC and HP compilers */ -/* - * HP's PA-RISC - * - * See src/backend/port/hpux/tas.c.template for details about LDCWX. Because - * LDCWX requires a 16-byte-aligned address, we declare slock_t as a 16-byte - * struct. The active word in the struct is whichever has the aligned address; - * the other three words just sit at -1. - * - * When using gcc, we can inline the required assembly code. - */ -#define HAS_TEST_AND_SET - -typedef struct -{ - int sema[4]; -} slock_t; - -#define TAS_ACTIVE_WORD(lock) ((volatile int *) (((uintptr_t) (lock) + 15) & ~15)) - -#if defined(__GNUC__) - -static __inline__ int -tas(volatile slock_t *lock) -{ - volatile int *lockword = TAS_ACTIVE_WORD(lock); - register int lockval; - - __asm__ __volatile__( - " ldcwx 0(0,%2),%0 \n" -: "=r"(lockval), "+m"(*lockword) -: "r"(lockword) -: "memory"); - return (lockval == 0); -} - -/* - * The hppa implementation doesn't follow the rules of this files and provides - * a gcc specific implementation outside of the above defined(__GNUC__). It - * does so to avoid duplication between the HP compiler and gcc. So undefine - * the generic fallback S_UNLOCK from above. - */ -#ifdef S_UNLOCK -#undef S_UNLOCK -#endif -#define S_UNLOCK(lock) \ - do { \ - __asm__ __volatile__("" : : : "memory"); \ - *TAS_ACTIVE_WORD(lock) = -1; \ - } while (0) - -#endif /* __GNUC__ */ - -#define S_INIT_LOCK(lock) \ - do { \ - volatile slock_t *lock_ = (lock); \ - lock_->sema[0] = -1; \ - lock_->sema[1] = -1; \ - lock_->sema[2] = -1; \ - lock_->sema[3] = -1; \ - } while (0) - -#define S_LOCK_FREE(lock) (*TAS_ACTIVE_WORD(lock) != 0) - -#endif /* __hppa || __hppa__ */ - - -#if defined(__hpux) && defined(__ia64) && !defined(__GNUC__) -/* - * HP-UX on Itanium, non-gcc/icc compiler - * - * We assume that the compiler enforces strict ordering of loads/stores on - * volatile data (see comments on the gcc-version earlier in this file). - * Note that this assumption does *not* hold if you use the - * +Ovolatile=__unordered option on the HP-UX compiler, so don't do that. - * - * See also Implementing Spinlocks on the Intel Itanium Architecture and - * PA-RISC, by Tor Ekqvist and David Graves, for more information. As of - * this writing, version 1.0 of the manual is available at: - * http://h21007.www2.hp.com/portal/download/files/unprot/itanium/spinlocks.pdf - */ -#define HAS_TEST_AND_SET - -typedef unsigned int slock_t; - -#include -#define TAS(lock) _Asm_xchg(_SZ_W, lock, 1, _LDHINT_NONE) -/* On IA64, it's a win to use a non-locking test before the xchg proper */ -#define TAS_SPIN(lock) (*(lock) ? 1 : TAS(lock)) -#define S_UNLOCK(lock) \ - do { _Asm_mf(); (*(lock)) = 0; } while (0) - -#endif /* HPUX on IA64, non gcc/icc */ - -#if defined(_AIX) /* AIX */ -/* - * AIX (POWER) - */ -#define HAS_TEST_AND_SET - -#include - -typedef int slock_t; - -#define TAS(lock) _check_lock((slock_t *) (lock), 0, 1) -#define S_UNLOCK(lock) _clear_lock((slock_t *) (lock), 0) -#endif /* _AIX */ - - -/* These are in sunstudio_(sparc|x86).s */ - -#if defined(__SUNPRO_C) && (defined(__i386) || defined(__x86_64__) || defined(__sparc__) || defined(__sparc)) -#define HAS_TEST_AND_SET - -#if defined(__i386) || defined(__x86_64__) || defined(__sparcv9) || defined(__sparcv8plus) -typedef unsigned int slock_t; -#else -typedef unsigned char slock_t; -#endif - -extern slock_t pg_atomic_cas(volatile slock_t *lock, slock_t with, - slock_t cmp); - -#define TAS(a) (pg_atomic_cas((a), 1, 0) != 0) -#endif - - -#ifdef _MSC_VER -typedef LONG slock_t; - -#define HAS_TEST_AND_SET -#define TAS(lock) (InterlockedCompareExchange(lock, 1, 0)) - -#define SPIN_DELAY() spin_delay() - -/* If using Visual C++ on Win64, inline assembly is unavailable. - * Use a _mm_pause intrinsic instead of rep nop. - */ -#if defined(_WIN64) -static __forceinline void -spin_delay(void) -{ - _mm_pause(); -} -#else -static __forceinline void -spin_delay(void) -{ - /* See comment for gcc code. Same code, MASM syntax */ - __asm rep nop; -} -#endif - -#include -#pragma intrinsic(_ReadWriteBarrier) - -#define S_UNLOCK(lock) \ - do { _ReadWriteBarrier(); (*(lock)) = 0; } while (0) - -#endif - - -#endif /* !defined(HAS_TEST_AND_SET) */ - - -/* Blow up if we didn't have any way to do spinlocks */ -#ifndef HAS_TEST_AND_SET -#error PostgreSQL does not have native spinlock support on this platform. To continue the compilation, rerun configure using --disable-spinlocks. However, performance will be poor. Please report this to pgsql-bugs@lists.postgresql.org. -#endif - - -#else /* !HAVE_SPINLOCKS */ - - -/* - * Fake spinlock implementation using semaphores --- slow and prone - * to fall foul of kernel limits on number of semaphores, so don't use this - * unless you must! The subroutines appear in spin.c. - */ -typedef int slock_t; - -extern bool s_lock_free_sema(volatile slock_t *lock); -extern void s_unlock_sema(volatile slock_t *lock); -extern void s_init_lock_sema(volatile slock_t *lock, bool nested); -extern int tas_sema(volatile slock_t *lock); - -#define S_LOCK_FREE(lock) s_lock_free_sema(lock) -#define S_UNLOCK(lock) s_unlock_sema(lock) -#define S_INIT_LOCK(lock) s_init_lock_sema(lock, false) -#define TAS(lock) tas_sema(lock) - - -#endif /* HAVE_SPINLOCKS */ - - -/* - * Default Definitions - override these above as needed. - */ - -#if !defined(S_LOCK) -#define S_LOCK(lock) \ - (TAS(lock) ? s_lock((lock), __FILE__, __LINE__, PG_FUNCNAME_MACRO) : 0) -#endif /* S_LOCK */ - -#if !defined(S_LOCK_FREE) -#define S_LOCK_FREE(lock) (*(lock) == 0) -#endif /* S_LOCK_FREE */ - -#if !defined(S_UNLOCK) -/* - * Our default implementation of S_UNLOCK is essentially *(lock) = 0. This - * is unsafe if the platform can reorder a memory access (either load or - * store) after a following store; platforms where this is possible must - * define their own S_UNLOCK. But CPU reordering is not the only concern: - * if we simply defined S_UNLOCK() as an inline macro, the compiler might - * reorder instructions from inside the critical section to occur after the - * lock release. Since the compiler probably can't know what the external - * function s_unlock is doing, putting the same logic there should be adequate. - * A sufficiently-smart globally optimizing compiler could break that - * assumption, though, and the cost of a function call for every spinlock - * release may hurt performance significantly, so we use this implementation - * only for platforms where we don't know of a suitable intrinsic. For the - * most part, those are relatively obscure platform/compiler combinations to - * which the PostgreSQL project does not have access. - */ -#define USE_DEFAULT_S_UNLOCK -extern void s_unlock(volatile slock_t *lock); -#define S_UNLOCK(lock) s_unlock(lock) -#endif /* S_UNLOCK */ - -#if !defined(S_INIT_LOCK) -#define S_INIT_LOCK(lock) S_UNLOCK(lock) -#endif /* S_INIT_LOCK */ - -#if !defined(SPIN_DELAY) -#define SPIN_DELAY() ((void) 0) -#endif /* SPIN_DELAY */ - -#if !defined(TAS) -extern int tas(volatile slock_t *lock); /* in port/.../tas.s, or - * s_lock.c */ - -#define TAS(lock) tas(lock) -#endif /* TAS */ - -#if !defined(TAS_SPIN) -#define TAS_SPIN(lock) TAS(lock) -#endif /* TAS_SPIN */ - -extern PGDLLIMPORT slock_t dummy_spinlock; - -/* - * Platform-independent out-of-line support routines - */ -extern int s_lock(volatile slock_t *lock, const char *file, int line, const char *func); - -/* Support for dynamic adjustment of spins_per_delay */ -#define DEFAULT_SPINS_PER_DELAY 100 - -extern void set_spins_per_delay(int shared_spins_per_delay); -extern int update_spins_per_delay(int shared_spins_per_delay); - -/* - * Support for spin delay which is useful in various places where - * spinlock-like procedures take place. - */ -typedef struct -{ - int spins; - int delays; - int cur_delay; - const char *file; - int line; - const char *func; -} SpinDelayStatus; - -static inline void -init_spin_delay(SpinDelayStatus *status, - const char *file, int line, const char *func) -{ - status->spins = 0; - status->delays = 0; - status->cur_delay = 0; - status->file = file; - status->line = line; - status->func = func; -} - -#define init_local_spin_delay(status) init_spin_delay(status, __FILE__, __LINE__, PG_FUNCNAME_MACRO) -extern void perform_spin_delay(SpinDelayStatus *status); -extern void finish_spin_delay(SpinDelayStatus *status); - -#endif /* S_LOCK_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/sharedfileset.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/sharedfileset.h deleted file mode 100644 index b1cde36d0..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/sharedfileset.h +++ /dev/null @@ -1,37 +0,0 @@ -/*------------------------------------------------------------------------- - * - * sharedfileset.h - * Shared temporary file management. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/sharedfileset.h - * - *------------------------------------------------------------------------- - */ - -#ifndef SHAREDFILESET_H -#define SHAREDFILESET_H - -#include "storage/dsm.h" -#include "storage/fd.h" -#include "storage/fileset.h" -#include "storage/spin.h" - -/* - * A set of temporary files that can be shared by multiple backends. - */ -typedef struct SharedFileSet -{ - FileSet fs; - slock_t mutex; /* mutex protecting the reference count */ - int refcnt; /* number of attached backends */ -} SharedFileSet; - -extern void SharedFileSetInit(SharedFileSet *fileset, dsm_segment *seg); -extern void SharedFileSetAttach(SharedFileSet *fileset, dsm_segment *seg); -extern void SharedFileSetDeleteAll(SharedFileSet *fileset); - -#endif diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/shm_mq.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/shm_mq.h deleted file mode 100644 index b6fe68725..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/shm_mq.h +++ /dev/null @@ -1,86 +0,0 @@ -/*------------------------------------------------------------------------- - * - * shm_mq.h - * single-reader, single-writer shared memory message queue - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/shm_mq.h - * - *------------------------------------------------------------------------- - */ -#ifndef SHM_MQ_H -#define SHM_MQ_H - -#include "postmaster/bgworker.h" -#include "storage/dsm.h" -#include "storage/proc.h" - -/* The queue itself, in shared memory. */ -struct shm_mq; -typedef struct shm_mq shm_mq; - -/* Backend-private state. */ -struct shm_mq_handle; -typedef struct shm_mq_handle shm_mq_handle; - -/* Descriptors for a single write spanning multiple locations. */ -typedef struct -{ - const char *data; - Size len; -} shm_mq_iovec; - -/* Possible results of a send or receive operation. */ -typedef enum -{ - SHM_MQ_SUCCESS, /* Sent or received a message. */ - SHM_MQ_WOULD_BLOCK, /* Not completed; retry later. */ - SHM_MQ_DETACHED /* Other process has detached queue. */ -} shm_mq_result; - -/* - * Primitives to create a queue and set the sender and receiver. - * - * Both the sender and the receiver must be set before any messages are read - * or written, but they need not be set by the same process. Each must be - * set exactly once. - */ -extern shm_mq *shm_mq_create(void *address, Size size); -extern void shm_mq_set_receiver(shm_mq *mq, PGPROC *); -extern void shm_mq_set_sender(shm_mq *mq, PGPROC *); - -/* Accessor methods for sender and receiver. */ -extern PGPROC *shm_mq_get_receiver(shm_mq *); -extern PGPROC *shm_mq_get_sender(shm_mq *); - -/* Set up backend-local queue state. */ -extern shm_mq_handle *shm_mq_attach(shm_mq *mq, dsm_segment *seg, - BackgroundWorkerHandle *handle); - -/* Associate worker handle with shm_mq. */ -extern void shm_mq_set_handle(shm_mq_handle *, BackgroundWorkerHandle *); - -/* Break connection, release handle resources. */ -extern void shm_mq_detach(shm_mq_handle *mqh); - -/* Get the shm_mq from handle. */ -extern shm_mq *shm_mq_get_queue(shm_mq_handle *mqh); - -/* Send or receive messages. */ -extern shm_mq_result shm_mq_send(shm_mq_handle *mqh, - Size nbytes, const void *data, bool nowait, - bool force_flush); -extern shm_mq_result shm_mq_sendv(shm_mq_handle *mqh, shm_mq_iovec *iov, - int iovcnt, bool nowait, bool force_flush); -extern shm_mq_result shm_mq_receive(shm_mq_handle *mqh, - Size *nbytesp, void **datap, bool nowait); - -/* Wait for our counterparty to attach to the queue. */ -extern shm_mq_result shm_mq_wait_for_attach(shm_mq_handle *mqh); - -/* Smallest possible queue. */ -extern PGDLLIMPORT const Size shm_mq_minimum_size; - -#endif /* SHM_MQ_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/shm_toc.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/shm_toc.h deleted file mode 100644 index 153a57cf1..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/shm_toc.h +++ /dev/null @@ -1,58 +0,0 @@ -/*------------------------------------------------------------------------- - * - * shm_toc.h - * shared memory segment table of contents - * - * This is intended to provide a simple way to divide a chunk of shared - * memory (probably dynamic shared memory allocated via dsm_create) into - * a number of regions and keep track of the addresses of those regions or - * key data structures within those regions. This is not intended to - * scale to a large number of keys and will perform poorly if used that - * way; if you need a large number of pointers, store them within some - * other data structure within the segment and only put the pointer to - * the data structure itself in the table of contents. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/shm_toc.h - * - *------------------------------------------------------------------------- - */ -#ifndef SHM_TOC_H -#define SHM_TOC_H - -#include "storage/shmem.h" /* for add_size() */ - -/* shm_toc is an opaque type known only within shm_toc.c */ -typedef struct shm_toc shm_toc; - -extern shm_toc *shm_toc_create(uint64 magic, void *address, Size nbytes); -extern shm_toc *shm_toc_attach(uint64 magic, void *address); -extern void *shm_toc_allocate(shm_toc *toc, Size nbytes); -extern Size shm_toc_freespace(shm_toc *toc); -extern void shm_toc_insert(shm_toc *toc, uint64 key, void *address); -extern void *shm_toc_lookup(shm_toc *toc, uint64 key, bool noError); - -/* - * Tools for estimating how large a chunk of shared memory will be needed - * to store a TOC and its dependent objects. Note: we don't really support - * large numbers of keys, but it's convenient to declare number_of_keys - * as a Size anyway. - */ -typedef struct -{ - Size space_for_chunks; - Size number_of_keys; -} shm_toc_estimator; - -#define shm_toc_initialize_estimator(e) \ - ((e)->space_for_chunks = 0, (e)->number_of_keys = 0) -#define shm_toc_estimate_chunk(e, sz) \ - ((e)->space_for_chunks = add_size((e)->space_for_chunks, BUFFERALIGN(sz))) -#define shm_toc_estimate_keys(e, cnt) \ - ((e)->number_of_keys = add_size((e)->number_of_keys, cnt)) - -extern Size shm_toc_estimate(shm_toc_estimator *e); - -#endif /* SHM_TOC_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/shmem.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/shmem.h deleted file mode 100644 index de9e7c6e7..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/shmem.h +++ /dev/null @@ -1,81 +0,0 @@ -/*------------------------------------------------------------------------- - * - * shmem.h - * shared memory management structures - * - * Historical note: - * A long time ago, Postgres' shared memory region was allowed to be mapped - * at a different address in each process, and shared memory "pointers" were - * passed around as offsets relative to the start of the shared memory region. - * That is no longer the case: each process must map the shared memory region - * at the same address. This means shared memory pointers can be passed - * around directly between different processes. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/shmem.h - * - *------------------------------------------------------------------------- - */ -#ifndef SHMEM_H -#define SHMEM_H - -#include "utils/hsearch.h" - - -/* shmqueue.c */ -typedef struct SHM_QUEUE -{ - struct SHM_QUEUE *prev; - struct SHM_QUEUE *next; -} SHM_QUEUE; - -/* shmem.c */ -extern void InitShmemAccess(void *seghdr); -extern void InitShmemAllocation(void); -extern void *ShmemAlloc(Size size); -extern void *ShmemAllocNoError(Size size); -extern void *ShmemAllocUnlocked(Size size); -extern bool ShmemAddrIsValid(const void *addr); -extern void InitShmemIndex(void); -extern HTAB *ShmemInitHash(const char *name, long init_size, long max_size, - HASHCTL *infoP, int hash_flags); -extern void *ShmemInitStruct(const char *name, Size size, bool *foundPtr); -extern Size add_size(Size s1, Size s2); -extern Size mul_size(Size s1, Size s2); - -/* ipci.c */ -extern void RequestAddinShmemSpace(Size size); - -/* size constants for the shmem index table */ - /* max size of data structure string name */ -#define SHMEM_INDEX_KEYSIZE (48) - /* estimated size of the shmem index table (not a hard limit) */ -#define SHMEM_INDEX_SIZE (64) - -/* this is a hash bucket in the shmem index table */ -typedef struct -{ - char key[SHMEM_INDEX_KEYSIZE]; /* string name */ - void *location; /* location in shared mem */ - Size size; /* # bytes requested for the structure */ - Size allocated_size; /* # bytes actually allocated */ -} ShmemIndexEnt; - -/* - * prototypes for functions in shmqueue.c - */ -extern void SHMQueueInit(SHM_QUEUE *queue); -extern void SHMQueueElemInit(SHM_QUEUE *queue); -extern void SHMQueueDelete(SHM_QUEUE *queue); -extern void SHMQueueInsertBefore(SHM_QUEUE *queue, SHM_QUEUE *elem); -extern void SHMQueueInsertAfter(SHM_QUEUE *queue, SHM_QUEUE *elem); -extern Pointer SHMQueueNext(const SHM_QUEUE *queue, const SHM_QUEUE *curElem, - Size linkOffset); -extern Pointer SHMQueuePrev(const SHM_QUEUE *queue, const SHM_QUEUE *curElem, - Size linkOffset); -extern bool SHMQueueEmpty(const SHM_QUEUE *queue); -extern bool SHMQueueIsDetached(const SHM_QUEUE *queue); - -#endif /* SHMEM_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/sinval.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/sinval.h deleted file mode 100644 index e7cd45658..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/sinval.h +++ /dev/null @@ -1,153 +0,0 @@ -/*------------------------------------------------------------------------- - * - * sinval.h - * POSTGRES shared cache invalidation communication definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/sinval.h - * - *------------------------------------------------------------------------- - */ -#ifndef SINVAL_H -#define SINVAL_H - -#include - -#include "storage/relfilenode.h" - -/* - * We support several types of shared-invalidation messages: - * * invalidate a specific tuple in a specific catcache - * * invalidate all catcache entries from a given system catalog - * * invalidate a relcache entry for a specific logical relation - * * invalidate all relcache entries - * * invalidate an smgr cache entry for a specific physical relation - * * invalidate the mapped-relation mapping for a given database - * * invalidate any saved snapshot that might be used to scan a given relation - * More types could be added if needed. The message type is identified by - * the first "int8" field of the message struct. Zero or positive means a - * specific-catcache inval message (and also serves as the catcache ID field). - * Negative values identify the other message types, as per codes below. - * - * Catcache inval events are initially driven by detecting tuple inserts, - * updates and deletions in system catalogs (see CacheInvalidateHeapTuple). - * An update can generate two inval events, one for the old tuple and one for - * the new, but this is reduced to one event if the tuple's hash key doesn't - * change. Note that the inval events themselves don't actually say whether - * the tuple is being inserted or deleted. Also, since we transmit only a - * hash key, there is a small risk of unnecessary invalidations due to chance - * matches of hash keys. - * - * Note that some system catalogs have multiple caches on them (with different - * indexes). On detecting a tuple invalidation in such a catalog, separate - * catcache inval messages must be generated for each of its caches, since - * the hash keys will generally be different. - * - * Catcache, relcache, and snapshot invalidations are transactional, and so - * are sent to other backends upon commit. Internally to the generating - * backend, they are also processed at CommandCounterIncrement so that later - * commands in the same transaction see the new state. The generating backend - * also has to process them at abort, to flush out any cache state it's loaded - * from no-longer-valid entries. - * - * smgr and relation mapping invalidations are non-transactional: they are - * sent immediately when the underlying file change is made. - */ - -typedef struct -{ - int8 id; /* cache ID --- must be first */ - Oid dbId; /* database ID, or 0 if a shared relation */ - uint32 hashValue; /* hash value of key for this catcache */ -} SharedInvalCatcacheMsg; - -#define SHAREDINVALCATALOG_ID (-1) - -typedef struct -{ - int8 id; /* type field --- must be first */ - Oid dbId; /* database ID, or 0 if a shared catalog */ - Oid catId; /* ID of catalog whose contents are invalid */ -} SharedInvalCatalogMsg; - -#define SHAREDINVALRELCACHE_ID (-2) - -typedef struct -{ - int8 id; /* type field --- must be first */ - Oid dbId; /* database ID, or 0 if a shared relation */ - Oid relId; /* relation ID, or 0 if whole relcache */ -} SharedInvalRelcacheMsg; - -#define SHAREDINVALSMGR_ID (-3) - -typedef struct -{ - /* note: field layout chosen to pack into 16 bytes */ - int8 id; /* type field --- must be first */ - int8 backend_hi; /* high bits of backend ID, if temprel */ - uint16 backend_lo; /* low bits of backend ID, if temprel */ - RelFileNode rnode; /* spcNode, dbNode, relNode */ -} SharedInvalSmgrMsg; - -#define SHAREDINVALRELMAP_ID (-4) - -typedef struct -{ - int8 id; /* type field --- must be first */ - Oid dbId; /* database ID, or 0 for shared catalogs */ -} SharedInvalRelmapMsg; - -#define SHAREDINVALSNAPSHOT_ID (-5) - -typedef struct -{ - int8 id; /* type field --- must be first */ - Oid dbId; /* database ID, or 0 if a shared relation */ - Oid relId; /* relation ID */ -} SharedInvalSnapshotMsg; - -typedef union -{ - int8 id; /* type field --- must be first */ - SharedInvalCatcacheMsg cc; - SharedInvalCatalogMsg cat; - SharedInvalRelcacheMsg rc; - SharedInvalSmgrMsg sm; - SharedInvalRelmapMsg rm; - SharedInvalSnapshotMsg sn; -} SharedInvalidationMessage; - - -/* Counter of messages processed; don't worry about overflow. */ -extern PGDLLIMPORT uint64 SharedInvalidMessageCounter; - -extern PGDLLIMPORT volatile sig_atomic_t catchupInterruptPending; - -extern void SendSharedInvalidMessages(const SharedInvalidationMessage *msgs, - int n); -extern void ReceiveSharedInvalidMessages(void (*invalFunction) (SharedInvalidationMessage *msg), - void (*resetFunction) (void)); - -/* signal handler for catchup events (PROCSIG_CATCHUP_INTERRUPT) */ -extern void HandleCatchupInterrupt(void); - -/* - * enable/disable processing of catchup events directly from signal handler. - * The enable routine first performs processing of any catchup events that - * have occurred since the last disable. - */ -extern void ProcessCatchupInterrupt(void); - -extern int xactGetCommittedInvalidationMessages(SharedInvalidationMessage **msgs, - bool *RelcacheInitFileInval); -extern void ProcessCommittedInvalidationMessages(SharedInvalidationMessage *msgs, - int nmsgs, bool RelcacheInitFileInval, - Oid dbid, Oid tsid); - -extern void LocalExecuteInvalidationMessage(SharedInvalidationMessage *msg); - -#endif /* SINVAL_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/sinvaladt.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/sinvaladt.h deleted file mode 100644 index 91e24189a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/sinvaladt.h +++ /dev/null @@ -1,43 +0,0 @@ -/*------------------------------------------------------------------------- - * - * sinvaladt.h - * POSTGRES shared cache invalidation data manager. - * - * The shared cache invalidation manager is responsible for transmitting - * invalidation messages between backends. Any message sent by any backend - * must be delivered to all already-running backends before it can be - * forgotten. (If we run out of space, we instead deliver a "RESET" - * message to backends that have fallen too far behind.) - * - * The struct type SharedInvalidationMessage, defining the contents of - * a single message, is defined in sinval.h. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/sinvaladt.h - * - *------------------------------------------------------------------------- - */ -#ifndef SINVALADT_H -#define SINVALADT_H - -#include "storage/lock.h" -#include "storage/sinval.h" - -/* - * prototypes for functions in sinvaladt.c - */ -extern Size SInvalShmemSize(void); -extern void CreateSharedInvalidationState(void); -extern void SharedInvalBackendInit(bool sendOnly); -extern PGPROC *BackendIdGetProc(int backendID); -extern void BackendIdGetTransactionIds(int backendID, TransactionId *xid, TransactionId *xmin); - -extern void SIInsertDataEntries(const SharedInvalidationMessage *data, int n); -extern int SIGetDataEntries(SharedInvalidationMessage *data, int datasize); -extern void SICleanupQueue(bool callerHasWriteLock, int minFree); - -extern LocalTransactionId GetNextLocalTransactionId(void); - -#endif /* SINVALADT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/smgr.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/smgr.h deleted file mode 100644 index 6b63c60fb..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/smgr.h +++ /dev/null @@ -1,111 +0,0 @@ -/*------------------------------------------------------------------------- - * - * smgr.h - * storage manager switch public interface declarations. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/smgr.h - * - *------------------------------------------------------------------------- - */ -#ifndef SMGR_H -#define SMGR_H - -#include "lib/ilist.h" -#include "storage/block.h" -#include "storage/relfilenode.h" - -/* - * smgr.c maintains a table of SMgrRelation objects, which are essentially - * cached file handles. An SMgrRelation is created (if not already present) - * by smgropen(), and destroyed by smgrclose(). Note that neither of these - * operations imply I/O, they just create or destroy a hashtable entry. - * (But smgrclose() may release associated resources, such as OS-level file - * descriptors.) - * - * An SMgrRelation may have an "owner", which is just a pointer to it from - * somewhere else; smgr.c will clear this pointer if the SMgrRelation is - * closed. We use this to avoid dangling pointers from relcache to smgr - * without having to make the smgr explicitly aware of relcache. There - * can't be more than one "owner" pointer per SMgrRelation, but that's - * all we need. - * - * SMgrRelations that do not have an "owner" are considered to be transient, - * and are deleted at end of transaction. - */ -typedef struct SMgrRelationData -{ - /* rnode is the hashtable lookup key, so it must be first! */ - RelFileNodeBackend smgr_rnode; /* relation physical identifier */ - - /* pointer to owning pointer, or NULL if none */ - struct SMgrRelationData **smgr_owner; - - /* - * The following fields are reset to InvalidBlockNumber upon a cache flush - * event, and hold the last known size for each fork. This information is - * currently only reliable during recovery, since there is no cache - * invalidation for fork extension. - */ - BlockNumber smgr_targblock; /* current insertion target block */ - BlockNumber smgr_cached_nblocks[MAX_FORKNUM + 1]; /* last known size */ - - /* additional public fields may someday exist here */ - - /* - * Fields below here are intended to be private to smgr.c and its - * submodules. Do not touch them from elsewhere. - */ - int smgr_which; /* storage manager selector */ - - /* - * for md.c; per-fork arrays of the number of open segments - * (md_num_open_segs) and the segments themselves (md_seg_fds). - */ - int md_num_open_segs[MAX_FORKNUM + 1]; - struct _MdfdVec *md_seg_fds[MAX_FORKNUM + 1]; - - /* if unowned, list link in list of all unowned SMgrRelations */ - dlist_node node; -} SMgrRelationData; - -typedef SMgrRelationData *SMgrRelation; - -#define SmgrIsTemp(smgr) \ - RelFileNodeBackendIsTemp((smgr)->smgr_rnode) - -extern void smgrinit(void); -extern SMgrRelation smgropen(RelFileNode rnode, BackendId backend); -extern bool smgrexists(SMgrRelation reln, ForkNumber forknum); -extern void smgrsetowner(SMgrRelation *owner, SMgrRelation reln); -extern void smgrclearowner(SMgrRelation *owner, SMgrRelation reln); -extern void smgrclose(SMgrRelation reln); -extern void smgrcloseall(void); -extern void smgrclosenode(RelFileNodeBackend rnode); -extern void smgrrelease(SMgrRelation reln); -extern void smgrreleaseall(void); -extern void smgrcreate(SMgrRelation reln, ForkNumber forknum, bool isRedo); -extern void smgrdosyncall(SMgrRelation *rels, int nrels); -extern void smgrdounlinkall(SMgrRelation *rels, int nrels, bool isRedo); -extern void smgrextend(SMgrRelation reln, ForkNumber forknum, - BlockNumber blocknum, char *buffer, bool skipFsync); -extern bool smgrprefetch(SMgrRelation reln, ForkNumber forknum, - BlockNumber blocknum); -extern void smgrread(SMgrRelation reln, ForkNumber forknum, - BlockNumber blocknum, char *buffer); -extern void smgrwrite(SMgrRelation reln, ForkNumber forknum, - BlockNumber blocknum, char *buffer, bool skipFsync); -extern void smgrwriteback(SMgrRelation reln, ForkNumber forknum, - BlockNumber blocknum, BlockNumber nblocks); -extern BlockNumber smgrnblocks(SMgrRelation reln, ForkNumber forknum); -extern BlockNumber smgrnblocks_cached(SMgrRelation reln, ForkNumber forknum); -extern void smgrtruncate(SMgrRelation reln, ForkNumber *forknum, - int nforks, BlockNumber *nblocks); -extern void smgrimmedsync(SMgrRelation reln, ForkNumber forknum); -extern void AtEOXact_SMgr(void); -extern bool ProcessBarrierSmgrRelease(void); - -#endif /* SMGR_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/spin.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/spin.h deleted file mode 100644 index 7031f1d2c..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/spin.h +++ /dev/null @@ -1,77 +0,0 @@ -/*------------------------------------------------------------------------- - * - * spin.h - * Hardware-independent implementation of spinlocks. - * - * - * The hardware-independent interface to spinlocks is defined by the - * typedef "slock_t" and these macros: - * - * void SpinLockInit(volatile slock_t *lock) - * Initialize a spinlock (to the unlocked state). - * - * void SpinLockAcquire(volatile slock_t *lock) - * Acquire a spinlock, waiting if necessary. - * Time out and abort() if unable to acquire the lock in a - * "reasonable" amount of time --- typically ~ 1 minute. - * - * void SpinLockRelease(volatile slock_t *lock) - * Unlock a previously acquired lock. - * - * bool SpinLockFree(slock_t *lock) - * Tests if the lock is free. Returns true if free, false if locked. - * This does *not* change the state of the lock. - * - * Callers must beware that the macro argument may be evaluated multiple - * times! - * - * Load and store operations in calling code are guaranteed not to be - * reordered with respect to these operations, because they include a - * compiler barrier. (Before PostgreSQL 9.5, callers needed to use a - * volatile qualifier to access data protected by spinlocks.) - * - * Keep in mind the coding rule that spinlocks must not be held for more - * than a few instructions. In particular, we assume it is not possible - * for a CHECK_FOR_INTERRUPTS() to occur while holding a spinlock, and so - * it is not necessary to do HOLD/RESUME_INTERRUPTS() in these macros. - * - * These macros are implemented in terms of hardware-dependent macros - * supplied by s_lock.h. There is not currently any extra functionality - * added by this header, but there has been in the past and may someday - * be again. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/spin.h - * - *------------------------------------------------------------------------- - */ -#ifndef SPIN_H -#define SPIN_H - -#include "storage/s_lock.h" -#ifndef HAVE_SPINLOCKS -#include "storage/pg_sema.h" -#endif - - -#define SpinLockInit(lock) S_INIT_LOCK(lock) - -#define SpinLockAcquire(lock) S_LOCK(lock) - -#define SpinLockRelease(lock) S_UNLOCK(lock) - -#define SpinLockFree(lock) S_LOCK_FREE(lock) - - -extern int SpinlockSemas(void); -extern Size SpinlockSemaSize(void); - -#ifndef HAVE_SPINLOCKS -extern void SpinlockSemaInit(void); -extern PGDLLIMPORT PGSemaphore *SpinlockSemaArray; -#endif - -#endif /* SPIN_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/standby.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/standby.h deleted file mode 100644 index 6a7763264..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/standby.h +++ /dev/null @@ -1,98 +0,0 @@ -/*------------------------------------------------------------------------- - * - * standby.h - * Definitions for hot standby mode. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/standby.h - * - *------------------------------------------------------------------------- - */ -#ifndef STANDBY_H -#define STANDBY_H - -#include "datatype/timestamp.h" -#include "storage/lock.h" -#include "storage/procsignal.h" -#include "storage/relfilenode.h" -#include "storage/standbydefs.h" - -/* User-settable GUC parameters */ -extern PGDLLIMPORT int vacuum_defer_cleanup_age; -extern PGDLLIMPORT int max_standby_archive_delay; -extern PGDLLIMPORT int max_standby_streaming_delay; -extern PGDLLIMPORT bool log_recovery_conflict_waits; - -extern void InitRecoveryTransactionEnvironment(void); -extern void ShutdownRecoveryTransactionEnvironment(void); - -extern void ResolveRecoveryConflictWithSnapshot(TransactionId latestRemovedXid, - RelFileNode node); -extern void ResolveRecoveryConflictWithSnapshotFullXid(FullTransactionId latestRemovedFullXid, - RelFileNode node); -extern void ResolveRecoveryConflictWithTablespace(Oid tsid); -extern void ResolveRecoveryConflictWithDatabase(Oid dbid); - -extern void ResolveRecoveryConflictWithLock(LOCKTAG locktag, bool logging_conflict); -extern void ResolveRecoveryConflictWithBufferPin(void); -extern void CheckRecoveryConflictDeadlock(void); -extern void StandbyDeadLockHandler(void); -extern void StandbyTimeoutHandler(void); -extern void StandbyLockTimeoutHandler(void); -extern void LogRecoveryConflict(ProcSignalReason reason, TimestampTz wait_start, - TimestampTz cur_ts, VirtualTransactionId *wait_list, - bool still_waiting); - -/* - * Standby Rmgr (RM_STANDBY_ID) - * - * Standby recovery manager exists to perform actions that are required - * to make hot standby work. That includes logging AccessExclusiveLocks taken - * by transactions and running-xacts snapshots. - */ -extern void StandbyAcquireAccessExclusiveLock(TransactionId xid, Oid dbOid, Oid relOid); -extern void StandbyReleaseLockTree(TransactionId xid, - int nsubxids, TransactionId *subxids); -extern void StandbyReleaseAllLocks(void); -extern void StandbyReleaseOldLocks(TransactionId oldxid); - -#define MinSizeOfXactRunningXacts offsetof(xl_running_xacts, xids) - - -/* - * Declarations for GetRunningTransactionData(). Similar to Snapshots, but - * not quite. This has nothing at all to do with visibility on this server, - * so this is completely separate from snapmgr.c and snapmgr.h. - * This data is important for creating the initial snapshot state on a - * standby server. We need lots more information than a normal snapshot, - * hence we use a specific data structure for our needs. This data - * is written to WAL as a separate record immediately after each - * checkpoint. That means that wherever we start a standby from we will - * almost immediately see the data we need to begin executing queries. - */ - -typedef struct RunningTransactionsData -{ - int xcnt; /* # of xact ids in xids[] */ - int subxcnt; /* # of subxact ids in xids[] */ - bool subxid_overflow; /* snapshot overflowed, subxids missing */ - TransactionId nextXid; /* xid from ShmemVariableCache->nextXid */ - TransactionId oldestRunningXid; /* *not* oldestXmin */ - TransactionId latestCompletedXid; /* so we can set xmax */ - - TransactionId *xids; /* array of (sub)xids still running */ -} RunningTransactionsData; - -typedef RunningTransactionsData *RunningTransactions; - -extern void LogAccessExclusiveLock(Oid dbOid, Oid relOid); -extern void LogAccessExclusiveLockPrepare(void); - -extern XLogRecPtr LogStandbySnapshot(void); -extern void LogStandbyInvalidations(int nmsgs, SharedInvalidationMessage *msgs, - bool relcacheInitFileInval); - -#endif /* STANDBY_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/standbydefs.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/standbydefs.h deleted file mode 100644 index c0234b6cf..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/standbydefs.h +++ /dev/null @@ -1,74 +0,0 @@ -/*------------------------------------------------------------------------- - * - * standbydefs.h - * Frontend exposed definitions for hot standby mode. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/standbydefs.h - * - *------------------------------------------------------------------------- - */ -#ifndef STANDBYDEFS_H -#define STANDBYDEFS_H - -#include "access/xlogreader.h" -#include "lib/stringinfo.h" -#include "storage/lockdefs.h" -#include "storage/sinval.h" - -/* Recovery handlers for the Standby Rmgr (RM_STANDBY_ID) */ -extern void standby_redo(XLogReaderState *record); -extern void standby_desc(StringInfo buf, XLogReaderState *record); -extern const char *standby_identify(uint8 info); -extern void standby_desc_invalidations(StringInfo buf, - int nmsgs, SharedInvalidationMessage *msgs, - Oid dbId, Oid tsId, - bool relcacheInitFileInval); - -/* - * XLOG message types - */ -#define XLOG_STANDBY_LOCK 0x00 -#define XLOG_RUNNING_XACTS 0x10 -#define XLOG_INVALIDATIONS 0x20 - -typedef struct xl_standby_locks -{ - int nlocks; /* number of entries in locks array */ - xl_standby_lock locks[FLEXIBLE_ARRAY_MEMBER]; -} xl_standby_locks; - -/* - * When we write running xact data to WAL, we use this structure. - */ -typedef struct xl_running_xacts -{ - int xcnt; /* # of xact ids in xids[] */ - int subxcnt; /* # of subxact ids in xids[] */ - bool subxid_overflow; /* snapshot overflowed, subxids missing */ - TransactionId nextXid; /* xid from ShmemVariableCache->nextXid */ - TransactionId oldestRunningXid; /* *not* oldestXmin */ - TransactionId latestCompletedXid; /* so we can set xmax */ - - TransactionId xids[FLEXIBLE_ARRAY_MEMBER]; -} xl_running_xacts; - -/* - * Invalidations for standby, currently only when transactions without an - * assigned xid commit. - */ -typedef struct xl_invalidations -{ - Oid dbId; /* MyDatabaseId */ - Oid tsId; /* MyDatabaseTableSpace */ - bool relcacheInitFileInval; /* invalidate relcache init files */ - int nmsgs; /* number of shared inval msgs */ - SharedInvalidationMessage msgs[FLEXIBLE_ARRAY_MEMBER]; -} xl_invalidations; - -#define MinSizeOfInvalidations offsetof(xl_invalidations, msgs) - -#endif /* STANDBYDEFS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/sync.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/sync.h deleted file mode 100644 index 9737e1eb6..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/storage/sync.h +++ /dev/null @@ -1,66 +0,0 @@ -/*------------------------------------------------------------------------- - * - * sync.h - * File synchronization management code. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/storage/sync.h - * - *------------------------------------------------------------------------- - */ -#ifndef SYNC_H -#define SYNC_H - -#include "storage/relfilenode.h" - -/* - * Type of sync request. These are used to manage the set of pending - * requests to call a sync handler's sync or unlink functions at the next - * checkpoint. - */ -typedef enum SyncRequestType -{ - SYNC_REQUEST, /* schedule a call of sync function */ - SYNC_UNLINK_REQUEST, /* schedule a call of unlink function */ - SYNC_FORGET_REQUEST, /* forget all calls for a tag */ - SYNC_FILTER_REQUEST /* forget all calls satisfying match fn */ -} SyncRequestType; - -/* - * Which set of functions to use to handle a given request. The values of - * the enumerators must match the indexes of the function table in sync.c. - */ -typedef enum SyncRequestHandler -{ - SYNC_HANDLER_MD = 0, - SYNC_HANDLER_CLOG, - SYNC_HANDLER_COMMIT_TS, - SYNC_HANDLER_MULTIXACT_OFFSET, - SYNC_HANDLER_MULTIXACT_MEMBER, - SYNC_HANDLER_NONE -} SyncRequestHandler; - -/* - * A tag identifying a file. Currently it has the members required for md.c's - * usage, but sync.c has no knowledge of the internal structure, and it is - * liable to change as required by future handlers. - */ -typedef struct FileTag -{ - int16 handler; /* SyncRequestHandler value, saving space */ - int16 forknum; /* ForkNumber, saving space */ - RelFileNode rnode; - uint32 segno; -} FileTag; - -extern void InitSync(void); -extern void SyncPreCheckpoint(void); -extern void SyncPostCheckpoint(void); -extern void ProcessSyncRequests(void); -extern void RememberSyncRequest(const FileTag *ftag, SyncRequestType type); -extern bool RegisterSyncRequest(const FileTag *ftag, SyncRequestType type, - bool retryOnError); - -#endif /* SYNC_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/cmdtag.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/cmdtag.h deleted file mode 100644 index b9e8992a4..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/cmdtag.h +++ /dev/null @@ -1,58 +0,0 @@ -/*------------------------------------------------------------------------- - * - * cmdtag.h - * Declarations for commandtag names and enumeration. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/tcop/cmdtag.h - * - *------------------------------------------------------------------------- - */ -#ifndef CMDTAG_H -#define CMDTAG_H - - -#define PG_CMDTAG(tag, name, evtrgok, rwrok, rowcnt) \ - tag, - -typedef enum CommandTag -{ -#include "tcop/cmdtaglist.h" - COMMAND_TAG_NEXTTAG -} CommandTag; - -#undef PG_CMDTAG - -typedef struct QueryCompletion -{ - CommandTag commandTag; - uint64 nprocessed; -} QueryCompletion; - - -static inline void -SetQueryCompletion(QueryCompletion *qc, CommandTag commandTag, - uint64 nprocessed) -{ - qc->commandTag = commandTag; - qc->nprocessed = nprocessed; -} - -static inline void -CopyQueryCompletion(QueryCompletion *dst, const QueryCompletion *src) -{ - dst->commandTag = src->commandTag; - dst->nprocessed = src->nprocessed; -} - - -extern void InitializeQueryCompletion(QueryCompletion *qc); -extern const char *GetCommandTagName(CommandTag commandTag); -extern bool command_tag_display_rowcount(CommandTag commandTag); -extern bool command_tag_event_trigger_ok(CommandTag commandTag); -extern bool command_tag_table_rewrite_ok(CommandTag commandTag); -extern CommandTag GetCommandTagEnum(const char *tagname); - -#endif /* CMDTAG_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/cmdtaglist.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/cmdtaglist.h deleted file mode 100644 index 9e94f44c5..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/cmdtaglist.h +++ /dev/null @@ -1,218 +0,0 @@ -/*---------------------------------------------------------------------- - * - * cmdtaglist.h - * Command tags - * - * The command tag list is kept in its own source file for possible use - * by automatic tools. The exact representation of a command tag is - * determined by the PG_CMDTAG macro, which is not defined in this file; - * it can be defined by the caller for special purposes. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/tcop/cmdtaglist.h - * - *---------------------------------------------------------------------- - */ - -/* there is deliberately not an #ifndef CMDTAGLIST_H here */ - -/* - * List of command tags. The entries must be sorted alphabetically on their - * textual name, so that we can bsearch on it; see GetCommandTagEnum(). - */ - -/* symbol name, textual name, event_trigger_ok, table_rewrite_ok, rowcount */ -PG_CMDTAG(CMDTAG_UNKNOWN, "???", false, false, false) -PG_CMDTAG(CMDTAG_ALTER_ACCESS_METHOD, "ALTER ACCESS METHOD", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_AGGREGATE, "ALTER AGGREGATE", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_CAST, "ALTER CAST", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_COLLATION, "ALTER COLLATION", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_CONSTRAINT, "ALTER CONSTRAINT", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_CONVERSION, "ALTER CONVERSION", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_DATABASE, "ALTER DATABASE", false, false, false) -PG_CMDTAG(CMDTAG_ALTER_DEFAULT_PRIVILEGES, "ALTER DEFAULT PRIVILEGES", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_DOMAIN, "ALTER DOMAIN", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_EVENT_TRIGGER, "ALTER EVENT TRIGGER", false, false, false) -PG_CMDTAG(CMDTAG_ALTER_EXTENSION, "ALTER EXTENSION", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_FOREIGN_DATA_WRAPPER, "ALTER FOREIGN DATA WRAPPER", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_FOREIGN_TABLE, "ALTER FOREIGN TABLE", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_FUNCTION, "ALTER FUNCTION", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_INDEX, "ALTER INDEX", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_LANGUAGE, "ALTER LANGUAGE", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_LARGE_OBJECT, "ALTER LARGE OBJECT", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_MATERIALIZED_VIEW, "ALTER MATERIALIZED VIEW", true, true, false) -PG_CMDTAG(CMDTAG_ALTER_OPERATOR, "ALTER OPERATOR", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_OPERATOR_CLASS, "ALTER OPERATOR CLASS", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_OPERATOR_FAMILY, "ALTER OPERATOR FAMILY", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_POLICY, "ALTER POLICY", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_PROCEDURE, "ALTER PROCEDURE", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_PUBLICATION, "ALTER PUBLICATION", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_ROLE, "ALTER ROLE", false, false, false) -PG_CMDTAG(CMDTAG_ALTER_ROUTINE, "ALTER ROUTINE", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_RULE, "ALTER RULE", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_SCHEMA, "ALTER SCHEMA", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_SEQUENCE, "ALTER SEQUENCE", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_SERVER, "ALTER SERVER", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_STATISTICS, "ALTER STATISTICS", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_SUBSCRIPTION, "ALTER SUBSCRIPTION", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_SYSTEM, "ALTER SYSTEM", false, false, false) -PG_CMDTAG(CMDTAG_ALTER_TABLE, "ALTER TABLE", true, true, false) -PG_CMDTAG(CMDTAG_ALTER_TABLESPACE, "ALTER TABLESPACE", false, false, false) -PG_CMDTAG(CMDTAG_ALTER_TEXT_SEARCH_CONFIGURATION, "ALTER TEXT SEARCH CONFIGURATION", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_TEXT_SEARCH_DICTIONARY, "ALTER TEXT SEARCH DICTIONARY", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_TEXT_SEARCH_PARSER, "ALTER TEXT SEARCH PARSER", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_TEXT_SEARCH_TEMPLATE, "ALTER TEXT SEARCH TEMPLATE", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_TRANSFORM, "ALTER TRANSFORM", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_TRIGGER, "ALTER TRIGGER", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_TYPE, "ALTER TYPE", true, true, false) -PG_CMDTAG(CMDTAG_ALTER_USER_MAPPING, "ALTER USER MAPPING", true, false, false) -PG_CMDTAG(CMDTAG_ALTER_VIEW, "ALTER VIEW", true, false, false) -PG_CMDTAG(CMDTAG_ANALYZE, "ANALYZE", false, false, false) -PG_CMDTAG(CMDTAG_BEGIN, "BEGIN", false, false, false) -PG_CMDTAG(CMDTAG_CALL, "CALL", false, false, false) -PG_CMDTAG(CMDTAG_CHECKPOINT, "CHECKPOINT", false, false, false) -PG_CMDTAG(CMDTAG_CLOSE, "CLOSE", false, false, false) -PG_CMDTAG(CMDTAG_CLOSE_CURSOR, "CLOSE CURSOR", false, false, false) -PG_CMDTAG(CMDTAG_CLOSE_CURSOR_ALL, "CLOSE CURSOR ALL", false, false, false) -PG_CMDTAG(CMDTAG_CLUSTER, "CLUSTER", false, false, false) -PG_CMDTAG(CMDTAG_COMMENT, "COMMENT", true, false, false) -PG_CMDTAG(CMDTAG_COMMIT, "COMMIT", false, false, false) -PG_CMDTAG(CMDTAG_COMMIT_PREPARED, "COMMIT PREPARED", false, false, false) -PG_CMDTAG(CMDTAG_COPY, "COPY", false, false, true) -PG_CMDTAG(CMDTAG_COPY_FROM, "COPY FROM", false, false, false) -PG_CMDTAG(CMDTAG_CREATE_ACCESS_METHOD, "CREATE ACCESS METHOD", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_AGGREGATE, "CREATE AGGREGATE", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_CAST, "CREATE CAST", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_COLLATION, "CREATE COLLATION", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_CONSTRAINT, "CREATE CONSTRAINT", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_CONVERSION, "CREATE CONVERSION", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_DATABASE, "CREATE DATABASE", false, false, false) -PG_CMDTAG(CMDTAG_CREATE_DOMAIN, "CREATE DOMAIN", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_EVENT_TRIGGER, "CREATE EVENT TRIGGER", false, false, false) -PG_CMDTAG(CMDTAG_CREATE_EXTENSION, "CREATE EXTENSION", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_FOREIGN_DATA_WRAPPER, "CREATE FOREIGN DATA WRAPPER", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_FOREIGN_TABLE, "CREATE FOREIGN TABLE", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_FUNCTION, "CREATE FUNCTION", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_INDEX, "CREATE INDEX", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_LANGUAGE, "CREATE LANGUAGE", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_MATERIALIZED_VIEW, "CREATE MATERIALIZED VIEW", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_OPERATOR, "CREATE OPERATOR", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_OPERATOR_CLASS, "CREATE OPERATOR CLASS", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_OPERATOR_FAMILY, "CREATE OPERATOR FAMILY", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_POLICY, "CREATE POLICY", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_PROCEDURE, "CREATE PROCEDURE", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_PUBLICATION, "CREATE PUBLICATION", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_ROLE, "CREATE ROLE", false, false, false) -PG_CMDTAG(CMDTAG_CREATE_ROUTINE, "CREATE ROUTINE", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_RULE, "CREATE RULE", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_SCHEMA, "CREATE SCHEMA", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_SEQUENCE, "CREATE SEQUENCE", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_SERVER, "CREATE SERVER", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_STATISTICS, "CREATE STATISTICS", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_SUBSCRIPTION, "CREATE SUBSCRIPTION", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_TABLE, "CREATE TABLE", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_TABLE_AS, "CREATE TABLE AS", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_TABLESPACE, "CREATE TABLESPACE", false, false, false) -PG_CMDTAG(CMDTAG_CREATE_TEXT_SEARCH_CONFIGURATION, "CREATE TEXT SEARCH CONFIGURATION", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_TEXT_SEARCH_DICTIONARY, "CREATE TEXT SEARCH DICTIONARY", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_TEXT_SEARCH_PARSER, "CREATE TEXT SEARCH PARSER", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_TEXT_SEARCH_TEMPLATE, "CREATE TEXT SEARCH TEMPLATE", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_TRANSFORM, "CREATE TRANSFORM", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_TRIGGER, "CREATE TRIGGER", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_TYPE, "CREATE TYPE", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_USER_MAPPING, "CREATE USER MAPPING", true, false, false) -PG_CMDTAG(CMDTAG_CREATE_VIEW, "CREATE VIEW", true, false, false) -PG_CMDTAG(CMDTAG_DEALLOCATE, "DEALLOCATE", false, false, false) -PG_CMDTAG(CMDTAG_DEALLOCATE_ALL, "DEALLOCATE ALL", false, false, false) -PG_CMDTAG(CMDTAG_DECLARE_CURSOR, "DECLARE CURSOR", false, false, false) -PG_CMDTAG(CMDTAG_DELETE, "DELETE", false, false, true) -PG_CMDTAG(CMDTAG_DISCARD, "DISCARD", false, false, false) -PG_CMDTAG(CMDTAG_DISCARD_ALL, "DISCARD ALL", false, false, false) -PG_CMDTAG(CMDTAG_DISCARD_PLANS, "DISCARD PLANS", false, false, false) -PG_CMDTAG(CMDTAG_DISCARD_SEQUENCES, "DISCARD SEQUENCES", false, false, false) -PG_CMDTAG(CMDTAG_DISCARD_TEMP, "DISCARD TEMP", false, false, false) -PG_CMDTAG(CMDTAG_DO, "DO", false, false, false) -PG_CMDTAG(CMDTAG_DROP_ACCESS_METHOD, "DROP ACCESS METHOD", true, false, false) -PG_CMDTAG(CMDTAG_DROP_AGGREGATE, "DROP AGGREGATE", true, false, false) -PG_CMDTAG(CMDTAG_DROP_CAST, "DROP CAST", true, false, false) -PG_CMDTAG(CMDTAG_DROP_COLLATION, "DROP COLLATION", true, false, false) -PG_CMDTAG(CMDTAG_DROP_CONSTRAINT, "DROP CONSTRAINT", true, false, false) -PG_CMDTAG(CMDTAG_DROP_CONVERSION, "DROP CONVERSION", true, false, false) -PG_CMDTAG(CMDTAG_DROP_DATABASE, "DROP DATABASE", false, false, false) -PG_CMDTAG(CMDTAG_DROP_DOMAIN, "DROP DOMAIN", true, false, false) -PG_CMDTAG(CMDTAG_DROP_EVENT_TRIGGER, "DROP EVENT TRIGGER", false, false, false) -PG_CMDTAG(CMDTAG_DROP_EXTENSION, "DROP EXTENSION", true, false, false) -PG_CMDTAG(CMDTAG_DROP_FOREIGN_DATA_WRAPPER, "DROP FOREIGN DATA WRAPPER", true, false, false) -PG_CMDTAG(CMDTAG_DROP_FOREIGN_TABLE, "DROP FOREIGN TABLE", true, false, false) -PG_CMDTAG(CMDTAG_DROP_FUNCTION, "DROP FUNCTION", true, false, false) -PG_CMDTAG(CMDTAG_DROP_INDEX, "DROP INDEX", true, false, false) -PG_CMDTAG(CMDTAG_DROP_LANGUAGE, "DROP LANGUAGE", true, false, false) -PG_CMDTAG(CMDTAG_DROP_MATERIALIZED_VIEW, "DROP MATERIALIZED VIEW", true, false, false) -PG_CMDTAG(CMDTAG_DROP_OPERATOR, "DROP OPERATOR", true, false, false) -PG_CMDTAG(CMDTAG_DROP_OPERATOR_CLASS, "DROP OPERATOR CLASS", true, false, false) -PG_CMDTAG(CMDTAG_DROP_OPERATOR_FAMILY, "DROP OPERATOR FAMILY", true, false, false) -PG_CMDTAG(CMDTAG_DROP_OWNED, "DROP OWNED", true, false, false) -PG_CMDTAG(CMDTAG_DROP_POLICY, "DROP POLICY", true, false, false) -PG_CMDTAG(CMDTAG_DROP_PROCEDURE, "DROP PROCEDURE", true, false, false) -PG_CMDTAG(CMDTAG_DROP_PUBLICATION, "DROP PUBLICATION", true, false, false) -PG_CMDTAG(CMDTAG_DROP_ROLE, "DROP ROLE", false, false, false) -PG_CMDTAG(CMDTAG_DROP_ROUTINE, "DROP ROUTINE", true, false, false) -PG_CMDTAG(CMDTAG_DROP_RULE, "DROP RULE", true, false, false) -PG_CMDTAG(CMDTAG_DROP_SCHEMA, "DROP SCHEMA", true, false, false) -PG_CMDTAG(CMDTAG_DROP_SEQUENCE, "DROP SEQUENCE", true, false, false) -PG_CMDTAG(CMDTAG_DROP_SERVER, "DROP SERVER", true, false, false) -PG_CMDTAG(CMDTAG_DROP_STATISTICS, "DROP STATISTICS", true, false, false) -PG_CMDTAG(CMDTAG_DROP_SUBSCRIPTION, "DROP SUBSCRIPTION", true, false, false) -PG_CMDTAG(CMDTAG_DROP_TABLE, "DROP TABLE", true, false, false) -PG_CMDTAG(CMDTAG_DROP_TABLESPACE, "DROP TABLESPACE", false, false, false) -PG_CMDTAG(CMDTAG_DROP_TEXT_SEARCH_CONFIGURATION, "DROP TEXT SEARCH CONFIGURATION", true, false, false) -PG_CMDTAG(CMDTAG_DROP_TEXT_SEARCH_DICTIONARY, "DROP TEXT SEARCH DICTIONARY", true, false, false) -PG_CMDTAG(CMDTAG_DROP_TEXT_SEARCH_PARSER, "DROP TEXT SEARCH PARSER", true, false, false) -PG_CMDTAG(CMDTAG_DROP_TEXT_SEARCH_TEMPLATE, "DROP TEXT SEARCH TEMPLATE", true, false, false) -PG_CMDTAG(CMDTAG_DROP_TRANSFORM, "DROP TRANSFORM", true, false, false) -PG_CMDTAG(CMDTAG_DROP_TRIGGER, "DROP TRIGGER", true, false, false) -PG_CMDTAG(CMDTAG_DROP_TYPE, "DROP TYPE", true, false, false) -PG_CMDTAG(CMDTAG_DROP_USER_MAPPING, "DROP USER MAPPING", true, false, false) -PG_CMDTAG(CMDTAG_DROP_VIEW, "DROP VIEW", true, false, false) -PG_CMDTAG(CMDTAG_EXECUTE, "EXECUTE", false, false, false) -PG_CMDTAG(CMDTAG_EXPLAIN, "EXPLAIN", false, false, false) -PG_CMDTAG(CMDTAG_FETCH, "FETCH", false, false, true) -PG_CMDTAG(CMDTAG_GRANT, "GRANT", true, false, false) -PG_CMDTAG(CMDTAG_GRANT_ROLE, "GRANT ROLE", false, false, false) -PG_CMDTAG(CMDTAG_IMPORT_FOREIGN_SCHEMA, "IMPORT FOREIGN SCHEMA", true, false, false) -PG_CMDTAG(CMDTAG_INSERT, "INSERT", false, false, true) -PG_CMDTAG(CMDTAG_LISTEN, "LISTEN", false, false, false) -PG_CMDTAG(CMDTAG_LOAD, "LOAD", false, false, false) -PG_CMDTAG(CMDTAG_LOCK_TABLE, "LOCK TABLE", false, false, false) -PG_CMDTAG(CMDTAG_MERGE, "MERGE", false, false, true) -PG_CMDTAG(CMDTAG_MOVE, "MOVE", false, false, true) -PG_CMDTAG(CMDTAG_NOTIFY, "NOTIFY", false, false, false) -PG_CMDTAG(CMDTAG_PREPARE, "PREPARE", false, false, false) -PG_CMDTAG(CMDTAG_PREPARE_TRANSACTION, "PREPARE TRANSACTION", false, false, false) -PG_CMDTAG(CMDTAG_REASSIGN_OWNED, "REASSIGN OWNED", false, false, false) -PG_CMDTAG(CMDTAG_REFRESH_MATERIALIZED_VIEW, "REFRESH MATERIALIZED VIEW", true, false, false) -PG_CMDTAG(CMDTAG_REINDEX, "REINDEX", false, false, false) -PG_CMDTAG(CMDTAG_RELEASE, "RELEASE", false, false, false) -PG_CMDTAG(CMDTAG_RESET, "RESET", false, false, false) -PG_CMDTAG(CMDTAG_REVOKE, "REVOKE", true, false, false) -PG_CMDTAG(CMDTAG_REVOKE_ROLE, "REVOKE ROLE", false, false, false) -PG_CMDTAG(CMDTAG_ROLLBACK, "ROLLBACK", false, false, false) -PG_CMDTAG(CMDTAG_ROLLBACK_PREPARED, "ROLLBACK PREPARED", false, false, false) -PG_CMDTAG(CMDTAG_SAVEPOINT, "SAVEPOINT", false, false, false) -PG_CMDTAG(CMDTAG_SECURITY_LABEL, "SECURITY LABEL", true, false, false) -PG_CMDTAG(CMDTAG_SELECT, "SELECT", false, false, true) -PG_CMDTAG(CMDTAG_SELECT_FOR_KEY_SHARE, "SELECT FOR KEY SHARE", false, false, false) -PG_CMDTAG(CMDTAG_SELECT_FOR_NO_KEY_UPDATE, "SELECT FOR NO KEY UPDATE", false, false, false) -PG_CMDTAG(CMDTAG_SELECT_FOR_SHARE, "SELECT FOR SHARE", false, false, false) -PG_CMDTAG(CMDTAG_SELECT_FOR_UPDATE, "SELECT FOR UPDATE", false, false, false) -PG_CMDTAG(CMDTAG_SELECT_INTO, "SELECT INTO", true, false, false) -PG_CMDTAG(CMDTAG_SET, "SET", false, false, false) -PG_CMDTAG(CMDTAG_SET_CONSTRAINTS, "SET CONSTRAINTS", false, false, false) -PG_CMDTAG(CMDTAG_SHOW, "SHOW", false, false, false) -PG_CMDTAG(CMDTAG_START_TRANSACTION, "START TRANSACTION", false, false, false) -PG_CMDTAG(CMDTAG_TRUNCATE_TABLE, "TRUNCATE TABLE", false, false, false) -PG_CMDTAG(CMDTAG_UNLISTEN, "UNLISTEN", false, false, false) -PG_CMDTAG(CMDTAG_UPDATE, "UPDATE", false, false, true) -PG_CMDTAG(CMDTAG_VACUUM, "VACUUM", false, false, false) diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/deparse_utility.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/deparse_utility.h deleted file mode 100644 index 94de13d99..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/deparse_utility.h +++ /dev/null @@ -1,108 +0,0 @@ -/*------------------------------------------------------------------------- - * - * deparse_utility.h - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/tcop/deparse_utility.h - * - *------------------------------------------------------------------------- - */ -#ifndef DEPARSE_UTILITY_H -#define DEPARSE_UTILITY_H - -#include "access/attnum.h" -#include "catalog/objectaddress.h" -#include "nodes/nodes.h" -#include "utils/aclchk_internal.h" - - -/* - * Support for keeping track of collected commands. - */ -typedef enum CollectedCommandType -{ - SCT_Simple, - SCT_AlterTable, - SCT_Grant, - SCT_AlterOpFamily, - SCT_AlterDefaultPrivileges, - SCT_CreateOpClass, - SCT_AlterTSConfig -} CollectedCommandType; - -/* - * For ALTER TABLE commands, we keep a list of the subcommands therein. - */ -typedef struct CollectedATSubcmd -{ - ObjectAddress address; /* affected column, constraint, index, ... */ - Node *parsetree; -} CollectedATSubcmd; - -typedef struct CollectedCommand -{ - CollectedCommandType type; - - bool in_extension; - Node *parsetree; - - union - { - /* most commands */ - struct - { - ObjectAddress address; - ObjectAddress secondaryObject; - } simple; - - /* ALTER TABLE, and internal uses thereof */ - struct - { - Oid objectId; - Oid classId; - List *subcmds; - } alterTable; - - /* GRANT / REVOKE */ - struct - { - InternalGrant *istmt; - } grant; - - /* ALTER OPERATOR FAMILY */ - struct - { - ObjectAddress address; - List *operators; - List *procedures; - } opfam; - - /* CREATE OPERATOR CLASS */ - struct - { - ObjectAddress address; - List *operators; - List *procedures; - } createopc; - - /* ALTER TEXT SEARCH CONFIGURATION ADD/ALTER/DROP MAPPING */ - struct - { - ObjectAddress address; - Oid *dictIds; - int ndicts; - } atscfg; - - /* ALTER DEFAULT PRIVILEGES */ - struct - { - ObjectType objtype; - } defprivs; - } d; - - struct CollectedCommand *parent; /* when nested */ -} CollectedCommand; - -#endif /* DEPARSE_UTILITY_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/dest.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/dest.h deleted file mode 100644 index 3c3eabae6..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/dest.h +++ /dev/null @@ -1,149 +0,0 @@ -/*------------------------------------------------------------------------- - * - * dest.h - * support for communication destinations - * - * Whenever the backend executes a query that returns tuples, the results - * have to go someplace. For example: - * - * - stdout is the destination only when we are running a - * standalone backend (no postmaster) and are returning results - * back to an interactive user. - * - * - a remote process is the destination when we are - * running a backend with a frontend and the frontend executes - * PQexec() or PQfn(). In this case, the results are sent - * to the frontend via the functions in backend/libpq. - * - * - DestNone is the destination when the system executes - * a query internally. The results are discarded. - * - * dest.c defines three functions that implement destination management: - * - * BeginCommand: initialize the destination at start of command. - * CreateDestReceiver: return a pointer to a struct of destination-specific - * receiver functions. - * EndCommand: clean up the destination at end of command. - * - * BeginCommand/EndCommand are executed once per received SQL query. - * - * CreateDestReceiver returns a receiver object appropriate to the specified - * destination. The executor, as well as utility statements that can return - * tuples, are passed the resulting DestReceiver* pointer. Each executor run - * or utility execution calls the receiver's rStartup method, then the - * receiveSlot method (zero or more times), then the rShutdown method. - * The same receiver object may be re-used multiple times; eventually it is - * destroyed by calling its rDestroy method. - * - * In some cases, receiver objects require additional parameters that must - * be passed to them after calling CreateDestReceiver. Since the set of - * parameters varies for different receiver types, this is not handled by - * this module, but by direct calls from the calling code to receiver type - * specific functions. - * - * The DestReceiver object returned by CreateDestReceiver may be a statically - * allocated object (for destination types that require no local state), - * in which case rDestroy is a no-op. Alternatively it can be a palloc'd - * object that has DestReceiver as its first field and contains additional - * fields (see printtup.c for an example). These additional fields are then - * accessible to the DestReceiver functions by casting the DestReceiver* - * pointer passed to them. The palloc'd object is pfree'd by the rDestroy - * method. Note that the caller of CreateDestReceiver should take care to - * do so in a memory context that is long-lived enough for the receiver - * object not to disappear while still needed. - * - * Special provision: None_Receiver is a permanently available receiver - * object for the DestNone destination. This avoids useless creation/destroy - * calls in portal and cursor manipulations. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/tcop/dest.h - * - *------------------------------------------------------------------------- - */ -#ifndef DEST_H -#define DEST_H - -#include "executor/tuptable.h" -#include "tcop/cmdtag.h" - - -/* buffer size to use for command completion tags */ -#define COMPLETION_TAG_BUFSIZE 64 - - -/* ---------------- - * CommandDest is a simplistic means of identifying the desired - * destination. Someday this will probably need to be improved. - * - * Note: only the values DestNone, DestDebug, DestRemote are legal for the - * global variable whereToSendOutput. The other values may be used - * as the destination for individual commands. - * ---------------- - */ -typedef enum -{ - DestNone, /* results are discarded */ - DestDebug, /* results go to debugging output */ - DestRemote, /* results sent to frontend process */ - DestRemoteExecute, /* sent to frontend, in Execute command */ - DestRemoteSimple, /* sent to frontend, w/no catalog access */ - DestSPI, /* results sent to SPI manager */ - DestTuplestore, /* results sent to Tuplestore */ - DestIntoRel, /* results sent to relation (SELECT INTO) */ - DestCopyOut, /* results sent to COPY TO code */ - DestSQLFunction, /* results sent to SQL-language func mgr */ - DestTransientRel, /* results sent to transient relation */ - DestTupleQueue /* results sent to tuple queue */ -} CommandDest; - -/* ---------------- - * DestReceiver is a base type for destination-specific local state. - * In the simplest cases, there is no state info, just the function - * pointers that the executor must call. - * - * Note: the receiveSlot routine must be passed a slot containing a TupleDesc - * identical to the one given to the rStartup routine. It returns bool where - * a "true" value means "continue processing" and a "false" value means - * "stop early, just as if we'd reached the end of the scan". - * ---------------- - */ -typedef struct _DestReceiver DestReceiver; - -struct _DestReceiver -{ - /* Called for each tuple to be output: */ - bool (*receiveSlot) (TupleTableSlot *slot, - DestReceiver *self); - /* Per-executor-run initialization and shutdown: */ - void (*rStartup) (DestReceiver *self, - int operation, - TupleDesc typeinfo); - void (*rShutdown) (DestReceiver *self); - /* Destroy the receiver object itself (if dynamically allocated) */ - void (*rDestroy) (DestReceiver *self); - /* CommandDest code for this receiver */ - CommandDest mydest; - /* Private fields might appear beyond this point... */ -}; - -extern PGDLLIMPORT DestReceiver *None_Receiver; /* permanent receiver for - * DestNone */ - -/* The primary destination management functions */ - -extern void BeginCommand(CommandTag commandTag, CommandDest dest); -extern DestReceiver *CreateDestReceiver(CommandDest dest); -extern void EndCommand(const QueryCompletion *qc, CommandDest dest, - bool force_undecorated_output); -extern void EndReplicationCommand(const char *commandTag); - -/* Additional functions that go with destination management, more or less. */ - -extern void NullCommand(CommandDest dest); -extern void ReadyForQuery(CommandDest dest); - -#endif /* DEST_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/fastpath.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/fastpath.h deleted file mode 100644 index cb15a16a9..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/fastpath.h +++ /dev/null @@ -1,20 +0,0 @@ -/*------------------------------------------------------------------------- - * - * fastpath.h - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/tcop/fastpath.h - * - *------------------------------------------------------------------------- - */ -#ifndef FASTPATH_H -#define FASTPATH_H - -#include "lib/stringinfo.h" - -extern void HandleFunctionRequest(StringInfo msgBuf); - -#endif /* FASTPATH_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/pquery.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/pquery.h deleted file mode 100644 index f9a6882ec..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/pquery.h +++ /dev/null @@ -1,51 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pquery.h - * prototypes for pquery.c. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/tcop/pquery.h - * - *------------------------------------------------------------------------- - */ -#ifndef PQUERY_H -#define PQUERY_H - -#include "nodes/parsenodes.h" -#include "utils/portal.h" - -struct PlannedStmt; /* avoid including plannodes.h here */ - - -extern PGDLLIMPORT Portal ActivePortal; - - -extern PortalStrategy ChoosePortalStrategy(List *stmts); - -extern List *FetchPortalTargetList(Portal portal); - -extern List *FetchStatementTargetList(Node *stmt); - -extern void PortalStart(Portal portal, ParamListInfo params, - int eflags, Snapshot snapshot); - -extern void PortalSetResultFormat(Portal portal, int nFormats, - int16 *formats); - -extern bool PortalRun(Portal portal, long count, bool isTopLevel, - bool run_once, DestReceiver *dest, DestReceiver *altdest, - QueryCompletion *qc); - -extern uint64 PortalRunFetch(Portal portal, - FetchDirection fdirection, - long count, - DestReceiver *dest); - -extern bool PlannedStmtRequiresSnapshot(struct PlannedStmt *pstmt); - -extern void EnsurePortalSnapshotExists(void); - -#endif /* PQUERY_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/tcopprot.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/tcopprot.h deleted file mode 100644 index 84ca54dbc..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/tcopprot.h +++ /dev/null @@ -1,97 +0,0 @@ -/*------------------------------------------------------------------------- - * - * tcopprot.h - * prototypes for postgres.c. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/tcop/tcopprot.h - * - *------------------------------------------------------------------------- - */ -#ifndef TCOPPROT_H -#define TCOPPROT_H - -#include "nodes/params.h" -#include "nodes/parsenodes.h" -#include "nodes/plannodes.h" -#include "storage/procsignal.h" -#include "utils/guc.h" -#include "utils/queryenvironment.h" - - -/* Required daylight between max_stack_depth and the kernel limit, in bytes */ -#define STACK_DEPTH_SLOP (512 * 1024L) - -extern PGDLLIMPORT __thread CommandDest whereToSendOutput; -extern PGDLLIMPORT __thread const char *debug_query_string; -extern PGDLLIMPORT __thread int max_stack_depth; -extern PGDLLIMPORT int PostAuthDelay; -extern PGDLLIMPORT int client_connection_check_interval; - -/* GUC-configurable parameters */ - -typedef enum -{ - LOGSTMT_NONE, /* log no statements */ - LOGSTMT_DDL, /* log data definition statements */ - LOGSTMT_MOD, /* log modification statements, plus DDL */ - LOGSTMT_ALL /* log all statements */ -} LogStmtLevel; - -extern PGDLLIMPORT int log_statement; - -extern List *pg_parse_query(const char *query_string); -extern List *pg_rewrite_query(Query *query); -extern List *pg_analyze_and_rewrite_fixedparams(RawStmt *parsetree, - const char *query_string, - const Oid *paramTypes, int numParams, - QueryEnvironment *queryEnv); -extern List *pg_analyze_and_rewrite_varparams(RawStmt *parsetree, - const char *query_string, - Oid **paramTypes, - int *numParams, - QueryEnvironment *queryEnv); -extern List *pg_analyze_and_rewrite_withcb(RawStmt *parsetree, - const char *query_string, - ParserSetupHook parserSetup, - void *parserSetupArg, - QueryEnvironment *queryEnv); -extern PlannedStmt *pg_plan_query(Query *querytree, const char *query_string, - int cursorOptions, - ParamListInfo boundParams); -extern List *pg_plan_queries(List *querytrees, const char *query_string, - int cursorOptions, - ParamListInfo boundParams); - -extern bool check_max_stack_depth(int *newval, void **extra, GucSource source); -extern void assign_max_stack_depth(int newval, void *extra); - -extern void die(SIGNAL_ARGS); -extern void quickdie(SIGNAL_ARGS) pg_attribute_noreturn(); -extern void StatementCancelHandler(SIGNAL_ARGS); -extern void FloatExceptionHandler(SIGNAL_ARGS) pg_attribute_noreturn(); -extern void RecoveryConflictInterrupt(ProcSignalReason reason); /* called from SIGUSR1 - * handler */ -extern void ProcessClientReadInterrupt(bool blocked); -extern void ProcessClientWriteInterrupt(bool blocked); - -extern void process_postgres_switches(int argc, char *argv[], - GucContext ctx, const char **dbname); -extern void PostgresSingleUserMain(int argc, char *argv[], - const char *username) pg_attribute_noreturn(); -extern void PostgresMain(const char *dbname, - const char *username) pg_attribute_noreturn(); -extern long get_stack_depth_rlimit(void); -extern void ResetUsage(void); -extern void ShowUsage(const char *title); -extern int check_log_duration(char *msec_str, bool was_logged); -extern void set_debug_options(int debug_flag, - GucContext context, GucSource source); -extern bool set_plan_disabling_options(const char *arg, - GucContext context, GucSource source); -extern const char *get_stats_option_name(const char *arg); - -#endif /* TCOPPROT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/utility.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/utility.h deleted file mode 100644 index f9daf5b74..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tcop/utility.h +++ /dev/null @@ -1,112 +0,0 @@ -/*------------------------------------------------------------------------- - * - * utility.h - * prototypes for utility.c. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/tcop/utility.h - * - *------------------------------------------------------------------------- - */ -#ifndef UTILITY_H -#define UTILITY_H - -#include "tcop/cmdtag.h" -#include "tcop/tcopprot.h" - -typedef enum -{ - PROCESS_UTILITY_TOPLEVEL, /* toplevel interactive command */ - PROCESS_UTILITY_QUERY, /* a complete query, but not toplevel */ - PROCESS_UTILITY_QUERY_NONATOMIC, /* a complete query, nonatomic - * execution context */ - PROCESS_UTILITY_SUBCOMMAND /* a portion of a query */ -} ProcessUtilityContext; - -/* Info needed when recursing from ALTER TABLE */ -typedef struct AlterTableUtilityContext -{ - PlannedStmt *pstmt; /* PlannedStmt for outer ALTER TABLE command */ - const char *queryString; /* its query string */ - Oid relid; /* OID of ALTER's target table */ - ParamListInfo params; /* any parameters available to ALTER TABLE */ - QueryEnvironment *queryEnv; /* execution environment for ALTER TABLE */ -} AlterTableUtilityContext; - -/* - * These constants are used to describe the extent to which a particular - * command is read-only. - * - * COMMAND_OK_IN_READ_ONLY_TXN means that the command is permissible even when - * XactReadOnly is set. This bit should be set for commands that don't change - * the state of the database (data or schema) in a way that would affect the - * output of pg_dump. - * - * COMMAND_OK_IN_PARALLEL_MODE means that the command is permissible even - * when in parallel mode. Writing tuples is forbidden, as is anything that - * might confuse cooperating processes. - * - * COMMAND_OK_IN_RECOVERY means that the command is permissible even when in - * recovery. It can't write WAL, nor can it do things that would imperil - * replay of future WAL received from the primary. - */ -#define COMMAND_OK_IN_READ_ONLY_TXN 0x0001 -#define COMMAND_OK_IN_PARALLEL_MODE 0x0002 -#define COMMAND_OK_IN_RECOVERY 0x0004 - -/* - * We say that a command is strictly read-only if it is sufficiently read-only - * for all purposes. For clarity, we also have a constant for commands that are - * in no way read-only. - */ -#define COMMAND_IS_STRICTLY_READ_ONLY \ - (COMMAND_OK_IN_READ_ONLY_TXN | COMMAND_OK_IN_RECOVERY | \ - COMMAND_OK_IN_PARALLEL_MODE) -#define COMMAND_IS_NOT_READ_ONLY 0 - -/* Hook for plugins to get control in ProcessUtility() */ -typedef void (*ProcessUtility_hook_type) (PlannedStmt *pstmt, - const char *queryString, - bool readOnlyTree, - ProcessUtilityContext context, - ParamListInfo params, - QueryEnvironment *queryEnv, - DestReceiver *dest, QueryCompletion *qc); -extern PGDLLIMPORT ProcessUtility_hook_type ProcessUtility_hook; - -extern void ProcessUtility(PlannedStmt *pstmt, const char *queryString, - bool readOnlyTree, - ProcessUtilityContext context, ParamListInfo params, - QueryEnvironment *queryEnv, - DestReceiver *dest, QueryCompletion *qc); -extern void standard_ProcessUtility(PlannedStmt *pstmt, const char *queryString, - bool readOnlyTree, - ProcessUtilityContext context, ParamListInfo params, - QueryEnvironment *queryEnv, - DestReceiver *dest, QueryCompletion *qc); - -extern void ProcessUtilityForAlterTable(Node *stmt, - AlterTableUtilityContext *context); - -extern bool UtilityReturnsTuples(Node *parsetree); - -extern TupleDesc UtilityTupleDescriptor(Node *parsetree); - -extern Query *UtilityContainsQuery(Node *parsetree); - -extern CommandTag CreateCommandTag(Node *parsetree); - -static inline const char * -CreateCommandName(Node *parsetree) -{ - return GetCommandTagName(CreateCommandTag(parsetree)); -} - -extern LogStmtLevel GetCommandLogLevel(Node *parsetree); - -extern bool CommandIsReadOnly(PlannedStmt *pstmt); - -#endif /* UTILITY_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tsearch/ts_cache.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tsearch/ts_cache.h deleted file mode 100644 index 5e4a49ea1..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/tsearch/ts_cache.h +++ /dev/null @@ -1,98 +0,0 @@ -/*------------------------------------------------------------------------- - * - * ts_cache.h - * Tsearch related object caches. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/tsearch/ts_cache.h - * - *------------------------------------------------------------------------- - */ -#ifndef TS_CACHE_H -#define TS_CACHE_H - -#include "utils/guc.h" - - -/* - * All TS*CacheEntry structs must share this common header - * (see InvalidateTSCacheCallBack) - */ -typedef struct TSAnyCacheEntry -{ - Oid objId; - bool isvalid; -} TSAnyCacheEntry; - - -typedef struct TSParserCacheEntry -{ - /* prsId is the hash lookup key and MUST BE FIRST */ - Oid prsId; /* OID of the parser */ - bool isvalid; - - Oid startOid; - Oid tokenOid; - Oid endOid; - Oid headlineOid; - Oid lextypeOid; - - /* - * Pre-set-up fmgr call of most needed parser's methods - */ - FmgrInfo prsstart; - FmgrInfo prstoken; - FmgrInfo prsend; - FmgrInfo prsheadline; -} TSParserCacheEntry; - -typedef struct TSDictionaryCacheEntry -{ - /* dictId is the hash lookup key and MUST BE FIRST */ - Oid dictId; - bool isvalid; - - /* most frequent fmgr call */ - Oid lexizeOid; - FmgrInfo lexize; - - MemoryContext dictCtx; /* memory context to store private data */ - void *dictData; -} TSDictionaryCacheEntry; - -typedef struct -{ - int len; - Oid *dictIds; -} ListDictionary; - -typedef struct -{ - /* cfgId is the hash lookup key and MUST BE FIRST */ - Oid cfgId; - bool isvalid; - - Oid prsId; - - int lenmap; - ListDictionary *map; -} TSConfigCacheEntry; - - -/* - * GUC variable for current configuration - */ -extern PGDLLIMPORT char *TSCurrentConfig; - - -extern TSParserCacheEntry *lookup_ts_parser_cache(Oid prsId); -extern TSDictionaryCacheEntry *lookup_ts_dictionary_cache(Oid dictId); -extern TSConfigCacheEntry *lookup_ts_config_cache(Oid cfgId); - -extern Oid getTSCurrentConfig(bool emitError); -extern bool check_TSCurrentConfig(char **newval, void **extra, GucSource source); -extern void assign_TSCurrentConfig(const char *newval, void *extra); - -#endif /* TS_CACHE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/acl.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/acl.h deleted file mode 100644 index 48f7d72ad..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/acl.h +++ /dev/null @@ -1,333 +0,0 @@ -/*------------------------------------------------------------------------- - * - * acl.h - * Definition of (and support for) access control list data structures. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/acl.h - * - * NOTES - * An ACL array is simply an array of AclItems, representing the union - * of the privileges represented by the individual items. A zero-length - * array represents "no privileges". - * - * The order of items in the array is important as client utilities (in - * particular, pg_dump, though possibly other clients) expect to be able - * to issue GRANTs in the ordering of the items in the array. The reason - * this matters is that GRANTs WITH GRANT OPTION must be before any GRANTs - * which depend on it. This happens naturally in the backend during - * operations as we update ACLs in-place, new items are appended, and - * existing entries are only removed if there's no dependency on them (no - * GRANT can been based on it, or, if there was, those GRANTs are also - * removed). - * - * For backward-compatibility purposes we have to allow null ACL entries - * in system catalogs. A null ACL will be treated as meaning "default - * protection" (i.e., whatever acldefault() returns). - *------------------------------------------------------------------------- - */ -#ifndef ACL_H -#define ACL_H - -#include "access/htup.h" -#include "nodes/parsenodes.h" -#include "parser/parse_node.h" -#include "utils/snapshot.h" - - -/* - * typedef AclMode is declared in parsenodes.h, also the individual privilege - * bit meanings are defined there - */ - -#define ACL_ID_PUBLIC 0 /* placeholder for id in a PUBLIC acl item */ - -/* - * AclItem - * - * Note: must be same size on all platforms, because the size is hardcoded - * in the pg_type.h entry for aclitem. - */ -typedef struct AclItem -{ - Oid ai_grantee; /* ID that this item grants privs to */ - Oid ai_grantor; /* grantor of privs */ - AclMode ai_privs; /* privilege bits */ -} AclItem; - -/* - * The upper 16 bits of the ai_privs field of an AclItem are the grant option - * bits, and the lower 16 bits are the actual privileges. We use "rights" - * to mean the combined grant option and privilege bits fields. - */ -#define ACLITEM_GET_PRIVS(item) ((item).ai_privs & 0xFFFF) -#define ACLITEM_GET_GOPTIONS(item) (((item).ai_privs >> 16) & 0xFFFF) -#define ACLITEM_GET_RIGHTS(item) ((item).ai_privs) - -#define ACL_GRANT_OPTION_FOR(privs) (((AclMode) (privs) & 0xFFFF) << 16) -#define ACL_OPTION_TO_PRIVS(privs) (((AclMode) (privs) >> 16) & 0xFFFF) - -#define ACLITEM_SET_PRIVS(item,privs) \ - ((item).ai_privs = ((item).ai_privs & ~((AclMode) 0xFFFF)) | \ - ((AclMode) (privs) & 0xFFFF)) -#define ACLITEM_SET_GOPTIONS(item,goptions) \ - ((item).ai_privs = ((item).ai_privs & ~(((AclMode) 0xFFFF) << 16)) | \ - (((AclMode) (goptions) & 0xFFFF) << 16)) -#define ACLITEM_SET_RIGHTS(item,rights) \ - ((item).ai_privs = (AclMode) (rights)) - -#define ACLITEM_SET_PRIVS_GOPTIONS(item,privs,goptions) \ - ((item).ai_privs = ((AclMode) (privs) & 0xFFFF) | \ - (((AclMode) (goptions) & 0xFFFF) << 16)) - - -#define ACLITEM_ALL_PRIV_BITS ((AclMode) 0xFFFF) -#define ACLITEM_ALL_GOPTION_BITS ((AclMode) 0xFFFF << 16) - -/* - * Definitions for convenient access to Acl (array of AclItem). - * These are standard PostgreSQL arrays, but are restricted to have one - * dimension and no nulls. We also ignore the lower bound when reading, - * and set it to one when writing. - * - * CAUTION: as of PostgreSQL 7.1, these arrays are toastable (just like all - * other array types). Therefore, be careful to detoast them with the - * macros provided, unless you know for certain that a particular array - * can't have been toasted. - */ - - -/* - * Acl a one-dimensional array of AclItem - */ -typedef struct ArrayType Acl; - -#define ACL_NUM(ACL) (ARR_DIMS(ACL)[0]) -#define ACL_DAT(ACL) ((AclItem *) ARR_DATA_PTR(ACL)) -#define ACL_N_SIZE(N) (ARR_OVERHEAD_NONULLS(1) + ((N) * sizeof(AclItem))) -#define ACL_SIZE(ACL) ARR_SIZE(ACL) - -/* - * fmgr macros for these types - */ -#define DatumGetAclItemP(X) ((AclItem *) DatumGetPointer(X)) -#define PG_GETARG_ACLITEM_P(n) DatumGetAclItemP(PG_GETARG_DATUM(n)) -#define PG_RETURN_ACLITEM_P(x) PG_RETURN_POINTER(x) - -#define DatumGetAclP(X) ((Acl *) PG_DETOAST_DATUM(X)) -#define DatumGetAclPCopy(X) ((Acl *) PG_DETOAST_DATUM_COPY(X)) -#define PG_GETARG_ACL_P(n) DatumGetAclP(PG_GETARG_DATUM(n)) -#define PG_GETARG_ACL_P_COPY(n) DatumGetAclPCopy(PG_GETARG_DATUM(n)) -#define PG_RETURN_ACL_P(x) PG_RETURN_POINTER(x) - -/* - * ACL modification opcodes for aclupdate - */ -#define ACL_MODECHG_ADD 1 -#define ACL_MODECHG_DEL 2 -#define ACL_MODECHG_EQL 3 - -/* - * External representations of the privilege bits --- aclitemin/aclitemout - * represent each possible privilege bit with a distinct 1-character code - */ -#define ACL_INSERT_CHR 'a' /* formerly known as "append" */ -#define ACL_SELECT_CHR 'r' /* formerly known as "read" */ -#define ACL_UPDATE_CHR 'w' /* formerly known as "write" */ -#define ACL_DELETE_CHR 'd' -#define ACL_TRUNCATE_CHR 'D' /* super-delete, as it were */ -#define ACL_REFERENCES_CHR 'x' -#define ACL_TRIGGER_CHR 't' -#define ACL_EXECUTE_CHR 'X' -#define ACL_USAGE_CHR 'U' -#define ACL_CREATE_CHR 'C' -#define ACL_CREATE_TEMP_CHR 'T' -#define ACL_CONNECT_CHR 'c' -#define ACL_SET_CHR 's' -#define ACL_ALTER_SYSTEM_CHR 'A' - -/* string holding all privilege code chars, in order by bitmask position */ -#define ACL_ALL_RIGHTS_STR "arwdDxtXUCTcsA" - -/* - * Bitmasks defining "all rights" for each supported object type - */ -#define ACL_ALL_RIGHTS_COLUMN (ACL_INSERT|ACL_SELECT|ACL_UPDATE|ACL_REFERENCES) -#define ACL_ALL_RIGHTS_RELATION (ACL_INSERT|ACL_SELECT|ACL_UPDATE|ACL_DELETE|ACL_TRUNCATE|ACL_REFERENCES|ACL_TRIGGER) -#define ACL_ALL_RIGHTS_SEQUENCE (ACL_USAGE|ACL_SELECT|ACL_UPDATE) -#define ACL_ALL_RIGHTS_DATABASE (ACL_CREATE|ACL_CREATE_TEMP|ACL_CONNECT) -#define ACL_ALL_RIGHTS_FDW (ACL_USAGE) -#define ACL_ALL_RIGHTS_FOREIGN_SERVER (ACL_USAGE) -#define ACL_ALL_RIGHTS_FUNCTION (ACL_EXECUTE) -#define ACL_ALL_RIGHTS_LANGUAGE (ACL_USAGE) -#define ACL_ALL_RIGHTS_LARGEOBJECT (ACL_SELECT|ACL_UPDATE) -#define ACL_ALL_RIGHTS_PARAMETER_ACL (ACL_SET|ACL_ALTER_SYSTEM) -#define ACL_ALL_RIGHTS_SCHEMA (ACL_USAGE|ACL_CREATE) -#define ACL_ALL_RIGHTS_TABLESPACE (ACL_CREATE) -#define ACL_ALL_RIGHTS_TYPE (ACL_USAGE) - -/* operation codes for pg_*_aclmask */ -typedef enum -{ - ACLMASK_ALL, /* normal case: compute all bits */ - ACLMASK_ANY /* return when result is known nonzero */ -} AclMaskHow; - -/* result codes for pg_*_aclcheck */ -typedef enum -{ - ACLCHECK_OK = 0, - ACLCHECK_NO_PRIV, - ACLCHECK_NOT_OWNER -} AclResult; - - -/* - * routines used internally - */ -extern Acl *acldefault(ObjectType objtype, Oid ownerId); -extern Acl *get_user_default_acl(ObjectType objtype, Oid ownerId, - Oid nsp_oid); -extern void recordDependencyOnNewAcl(Oid classId, Oid objectId, int32 objsubId, - Oid ownerId, Acl *acl); - -extern Acl *aclupdate(const Acl *old_acl, const AclItem *mod_aip, - int modechg, Oid ownerId, DropBehavior behavior); -extern Acl *aclnewowner(const Acl *old_acl, Oid oldOwnerId, Oid newOwnerId); -extern Acl *make_empty_acl(void); -extern Acl *aclcopy(const Acl *orig_acl); -extern Acl *aclconcat(const Acl *left_acl, const Acl *right_acl); -extern Acl *aclmerge(const Acl *left_acl, const Acl *right_acl, Oid ownerId); -extern void aclitemsort(Acl *acl); -extern bool aclequal(const Acl *left_acl, const Acl *right_acl); - -extern AclMode aclmask(const Acl *acl, Oid roleid, Oid ownerId, - AclMode mask, AclMaskHow how); -extern int aclmembers(const Acl *acl, Oid **roleids); - -extern bool has_privs_of_role(Oid member, Oid role); -extern bool is_member_of_role(Oid member, Oid role); -extern bool is_member_of_role_nosuper(Oid member, Oid role); -extern bool is_admin_of_role(Oid member, Oid role); -extern void check_is_member_of_role(Oid member, Oid role); -extern Oid get_role_oid(const char *rolename, bool missing_ok); -extern Oid get_role_oid_or_public(const char *rolename); -extern Oid get_rolespec_oid(const RoleSpec *role, bool missing_ok); -extern void check_rolespec_name(const RoleSpec *role, const char *detail_msg); -extern HeapTuple get_rolespec_tuple(const RoleSpec *role); -extern char *get_rolespec_name(const RoleSpec *role); - -extern void select_best_grantor(Oid roleId, AclMode privileges, - const Acl *acl, Oid ownerId, - Oid *grantorId, AclMode *grantOptions); - -extern void initialize_acl(void); - -/* - * prototypes for functions in aclchk.c - */ -extern void ExecuteGrantStmt(GrantStmt *stmt); -extern void ExecAlterDefaultPrivilegesStmt(ParseState *pstate, AlterDefaultPrivilegesStmt *stmt); - -extern void RemoveRoleFromObjectACL(Oid roleid, Oid classid, Oid objid); - -extern AclMode pg_attribute_aclmask(Oid table_oid, AttrNumber attnum, - Oid roleid, AclMode mask, AclMaskHow how); -extern AclMode pg_attribute_aclmask_ext(Oid table_oid, AttrNumber attnum, - Oid roleid, AclMode mask, - AclMaskHow how, bool *is_missing); -extern AclMode pg_class_aclmask(Oid table_oid, Oid roleid, - AclMode mask, AclMaskHow how); -extern AclMode pg_class_aclmask_ext(Oid table_oid, Oid roleid, - AclMode mask, AclMaskHow how, - bool *is_missing); -extern AclMode pg_database_aclmask(Oid db_oid, Oid roleid, - AclMode mask, AclMaskHow how); -extern AclMode pg_parameter_aclmask(const char *name, Oid roleid, - AclMode mask, AclMaskHow how); -extern AclMode pg_parameter_acl_aclmask(Oid acl_oid, Oid roleid, - AclMode mask, AclMaskHow how); -extern AclMode pg_proc_aclmask(Oid proc_oid, Oid roleid, - AclMode mask, AclMaskHow how); -extern AclMode pg_language_aclmask(Oid lang_oid, Oid roleid, - AclMode mask, AclMaskHow how); -extern AclMode pg_largeobject_aclmask_snapshot(Oid lobj_oid, Oid roleid, - AclMode mask, AclMaskHow how, Snapshot snapshot); -extern AclMode pg_namespace_aclmask(Oid nsp_oid, Oid roleid, - AclMode mask, AclMaskHow how); -extern AclMode pg_tablespace_aclmask(Oid spc_oid, Oid roleid, - AclMode mask, AclMaskHow how); -extern AclMode pg_foreign_data_wrapper_aclmask(Oid fdw_oid, Oid roleid, - AclMode mask, AclMaskHow how); -extern AclMode pg_foreign_server_aclmask(Oid srv_oid, Oid roleid, - AclMode mask, AclMaskHow how); -extern AclMode pg_type_aclmask(Oid type_oid, Oid roleid, - AclMode mask, AclMaskHow how); - -extern AclResult pg_attribute_aclcheck(Oid table_oid, AttrNumber attnum, - Oid roleid, AclMode mode); -extern AclResult pg_attribute_aclcheck_ext(Oid table_oid, AttrNumber attnum, - Oid roleid, AclMode mode, - bool *is_missing); -extern AclResult pg_attribute_aclcheck_all(Oid table_oid, Oid roleid, - AclMode mode, AclMaskHow how); -extern AclResult pg_class_aclcheck(Oid table_oid, Oid roleid, AclMode mode); -extern AclResult pg_class_aclcheck_ext(Oid table_oid, Oid roleid, - AclMode mode, bool *is_missing); -extern AclResult pg_database_aclcheck(Oid db_oid, Oid roleid, AclMode mode); -extern AclResult pg_parameter_aclcheck(const char *name, Oid roleid, - AclMode mode); -extern AclResult pg_parameter_acl_aclcheck(Oid acl_oid, Oid roleid, - AclMode mode); -extern AclResult pg_proc_aclcheck(Oid proc_oid, Oid roleid, AclMode mode); -extern AclResult pg_language_aclcheck(Oid lang_oid, Oid roleid, AclMode mode); -extern AclResult pg_largeobject_aclcheck_snapshot(Oid lang_oid, Oid roleid, - AclMode mode, Snapshot snapshot); -extern AclResult pg_namespace_aclcheck(Oid nsp_oid, Oid roleid, AclMode mode); -extern AclResult pg_tablespace_aclcheck(Oid spc_oid, Oid roleid, AclMode mode); -extern AclResult pg_foreign_data_wrapper_aclcheck(Oid fdw_oid, Oid roleid, AclMode mode); -extern AclResult pg_foreign_server_aclcheck(Oid srv_oid, Oid roleid, AclMode mode); -extern AclResult pg_type_aclcheck(Oid type_oid, Oid roleid, AclMode mode); - -extern void aclcheck_error(AclResult aclerr, ObjectType objtype, - const char *objectname); - -extern void aclcheck_error_col(AclResult aclerr, ObjectType objtype, - const char *objectname, const char *colname); - -extern void aclcheck_error_type(AclResult aclerr, Oid typeOid); - -extern void recordExtObjInitPriv(Oid objoid, Oid classoid); -extern void removeExtObjInitPriv(Oid objoid, Oid classoid); - - -/* ownercheck routines just return true (owner) or false (not) */ -extern bool pg_class_ownercheck(Oid class_oid, Oid roleid); -extern bool pg_type_ownercheck(Oid type_oid, Oid roleid); -extern bool pg_oper_ownercheck(Oid oper_oid, Oid roleid); -extern bool pg_proc_ownercheck(Oid proc_oid, Oid roleid); -extern bool pg_language_ownercheck(Oid lan_oid, Oid roleid); -extern bool pg_largeobject_ownercheck(Oid lobj_oid, Oid roleid); -extern bool pg_namespace_ownercheck(Oid nsp_oid, Oid roleid); -extern bool pg_tablespace_ownercheck(Oid spc_oid, Oid roleid); -extern bool pg_opclass_ownercheck(Oid opc_oid, Oid roleid); -extern bool pg_opfamily_ownercheck(Oid opf_oid, Oid roleid); -extern bool pg_database_ownercheck(Oid db_oid, Oid roleid); -extern bool pg_collation_ownercheck(Oid coll_oid, Oid roleid); -extern bool pg_conversion_ownercheck(Oid conv_oid, Oid roleid); -extern bool pg_ts_dict_ownercheck(Oid dict_oid, Oid roleid); -extern bool pg_ts_config_ownercheck(Oid cfg_oid, Oid roleid); -extern bool pg_foreign_data_wrapper_ownercheck(Oid srv_oid, Oid roleid); -extern bool pg_foreign_server_ownercheck(Oid srv_oid, Oid roleid); -extern bool pg_event_trigger_ownercheck(Oid et_oid, Oid roleid); -extern bool pg_extension_ownercheck(Oid ext_oid, Oid roleid); -extern bool pg_publication_ownercheck(Oid pub_oid, Oid roleid); -extern bool pg_subscription_ownercheck(Oid sub_oid, Oid roleid); -extern bool pg_statistics_object_ownercheck(Oid stat_oid, Oid roleid); -extern bool has_createrole_privilege(Oid roleid); -extern bool has_bypassrls_privilege(Oid roleid); - -#endif /* ACL_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/aclchk_internal.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/aclchk_internal.h deleted file mode 100644 index 361284d8e..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/aclchk_internal.h +++ /dev/null @@ -1,45 +0,0 @@ -/*------------------------------------------------------------------------- - * - * aclchk_internal.h - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/aclchk_internal.h - * - *------------------------------------------------------------------------- - */ -#ifndef ACLCHK_INTERNAL_H -#define ACLCHK_INTERNAL_H - -#include "nodes/parsenodes.h" -#include "nodes/pg_list.h" - -/* - * The information about one Grant/Revoke statement, in internal format: object - * and grantees names have been turned into Oids, the privilege list is an - * AclMode bitmask. If 'privileges' is ACL_NO_RIGHTS (the 0 value) and - * all_privs is true, 'privileges' will be internally set to the right kind of - * ACL_ALL_RIGHTS_*, depending on the object type (NB - this will modify the - * InternalGrant struct!) - * - * Note: 'all_privs' and 'privileges' represent object-level privileges only. - * There might also be column-level privilege specifications, which are - * represented in col_privs (this is a list of untransformed AccessPriv nodes). - * Column privileges are only valid for objtype OBJECT_TABLE. - */ -typedef struct -{ - bool is_grant; - ObjectType objtype; - List *objects; - bool all_privs; - AclMode privileges; - List *col_privs; - List *grantees; - bool grant_option; - DropBehavior behavior; -} InternalGrant; - - -#endif /* ACLCHK_INTERNAL_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/array.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/array.h deleted file mode 100644 index 656c766a9..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/array.h +++ /dev/null @@ -1,464 +0,0 @@ -/*------------------------------------------------------------------------- - * - * array.h - * Declarations for Postgres arrays. - * - * A standard varlena array has the following internal structure: - * - standard varlena header word - * - number of dimensions of the array - * - offset to stored data, or 0 if no nulls bitmap - * - element type OID - * - length of each array axis (C array of int) - * - lower boundary of each dimension (C array of int) - * - bitmap showing locations of nulls (OPTIONAL) - * - whatever is the stored data - * - * The and arrays each have ndim elements. - * - * The may be omitted if the array contains no NULL elements. - * If it is absent, the field is zero and the offset to the - * stored data must be computed on-the-fly. If the bitmap is present, - * is nonzero and is equal to the offset from the array start - * to the first data element (including any alignment padding). The bitmap - * follows the same conventions as tuple null bitmaps, ie, a 1 indicates - * a non-null entry and the LSB of each bitmap byte is used first. - * - * The actual data starts on a MAXALIGN boundary. Individual items in the - * array are aligned as specified by the array element type. They are - * stored in row-major order (last subscript varies most rapidly). - * - * NOTE: it is important that array elements of toastable datatypes NOT be - * toasted, since the tupletoaster won't know they are there. (We could - * support compressed toasted items; only out-of-line items are dangerous. - * However, it seems preferable to store such items uncompressed and allow - * the toaster to compress the whole array as one input.) - * - * - * The OIDVECTOR and INT2VECTOR datatypes are storage-compatible with - * generic arrays, but they support only one-dimensional arrays with no - * nulls (and no null bitmap). They don't support being toasted, either. - * - * There are also some "fixed-length array" datatypes, such as NAME and - * POINT. These are simply a sequence of a fixed number of items each - * of a fixed-length datatype, with no overhead; the item size must be - * a multiple of its alignment requirement, because we do no padding. - * We support subscripting on these types, but array_in() and array_out() - * only work with varlena arrays. - * - * In addition, arrays are a major user of the "expanded object" TOAST - * infrastructure. This allows a varlena array to be converted to a - * separate representation that may include "deconstructed" Datum/isnull - * arrays holding the elements. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/array.h - * - *------------------------------------------------------------------------- - */ -#ifndef ARRAY_H -#define ARRAY_H - -#include "fmgr.h" -#include "utils/expandeddatum.h" - -/* avoid including execnodes.h here */ -struct ExprState; -struct ExprContext; - - -/* - * Maximum number of array subscripts (arbitrary limit) - */ -#define MAXDIM 6 - -/* - * Arrays are varlena objects, so must meet the varlena convention that - * the first int32 of the object contains the total object size in bytes. - * Be sure to use VARSIZE() and SET_VARSIZE() to access it, though! - * - * CAUTION: if you change the header for ordinary arrays you will also - * need to change the headers for oidvector and int2vector! - */ -typedef struct ArrayType -{ - int32 vl_len_; /* varlena header (do not touch directly!) */ - int ndim; /* # of dimensions */ - int32 dataoffset; /* offset to data, or 0 if no bitmap */ - Oid elemtype; /* element type OID */ -} ArrayType; - -/* - * An expanded array is contained within a private memory context (as - * all expanded objects must be) and has a control structure as below. - * - * The expanded array might contain a regular "flat" array if that was the - * original input and we've not modified it significantly. Otherwise, the - * contents are represented by Datum/isnull arrays plus dimensionality and - * type information. We could also have both forms, if we've deconstructed - * the original array for access purposes but not yet changed it. For pass- - * by-reference element types, the Datums would point into the flat array in - * this situation. Once we start modifying array elements, new pass-by-ref - * elements are separately palloc'd within the memory context. - */ -#define EA_MAGIC 689375833 /* ID for debugging crosschecks */ - -typedef struct ExpandedArrayHeader -{ - /* Standard header for expanded objects */ - ExpandedObjectHeader hdr; - - /* Magic value identifying an expanded array (for debugging only) */ - int ea_magic; - - /* Dimensionality info (always valid) */ - int ndims; /* # of dimensions */ - int *dims; /* array dimensions */ - int *lbound; /* index lower bounds for each dimension */ - - /* Element type info (always valid) */ - Oid element_type; /* element type OID */ - int16 typlen; /* needed info about element datatype */ - bool typbyval; - char typalign; - - /* - * If we have a Datum-array representation of the array, it's kept here; - * else dvalues/dnulls are NULL. The dvalues and dnulls arrays are always - * palloc'd within the object private context, but may change size from - * time to time. For pass-by-ref element types, dvalues entries might - * point either into the fstartptr..fendptr area, or to separately - * palloc'd chunks. Elements should always be fully detoasted, as they - * are in the standard flat representation. - * - * Even when dvalues is valid, dnulls can be NULL if there are no null - * elements. - */ - Datum *dvalues; /* array of Datums */ - bool *dnulls; /* array of is-null flags for Datums */ - int dvalueslen; /* allocated length of above arrays */ - int nelems; /* number of valid entries in above arrays */ - - /* - * flat_size is the current space requirement for the flat equivalent of - * the expanded array, if known; otherwise it's 0. We store this to make - * consecutive calls of get_flat_size cheap. - */ - Size flat_size; - - /* - * fvalue points to the flat representation if it is valid, else it is - * NULL. If we have or ever had a flat representation then - * fstartptr/fendptr point to the start and end+1 of its data area; this - * is so that we can tell which Datum pointers point into the flat - * representation rather than being pointers to separately palloc'd data. - */ - ArrayType *fvalue; /* must be a fully detoasted array */ - char *fstartptr; /* start of its data area */ - char *fendptr; /* end+1 of its data area */ -} ExpandedArrayHeader; - -/* - * Functions that can handle either a "flat" varlena array or an expanded - * array use this union to work with their input. Don't refer to "flt"; - * instead, cast to ArrayType. This struct nominally requires 8-byte - * alignment on 64-bit, but it's often used for an ArrayType having 4-byte - * alignment. UBSan complains about referencing "flt" in such cases. - */ -typedef union AnyArrayType -{ - ArrayType flt; - ExpandedArrayHeader xpn; -} AnyArrayType; - -/* - * working state for accumArrayResult() and friends - * note that the input must be scalars (legal array elements) - */ -typedef struct ArrayBuildState -{ - MemoryContext mcontext; /* where all the temp stuff is kept */ - Datum *dvalues; /* array of accumulated Datums */ - bool *dnulls; /* array of is-null flags for Datums */ - int alen; /* allocated length of above arrays */ - int nelems; /* number of valid entries in above arrays */ - Oid element_type; /* data type of the Datums */ - int16 typlen; /* needed info about datatype */ - bool typbyval; - char typalign; - bool private_cxt; /* use private memory context */ -} ArrayBuildState; - -/* - * working state for accumArrayResultArr() and friends - * note that the input must be arrays, and the same array type is returned - */ -typedef struct ArrayBuildStateArr -{ - MemoryContext mcontext; /* where all the temp stuff is kept */ - char *data; /* accumulated data */ - bits8 *nullbitmap; /* bitmap of is-null flags, or NULL if none */ - int abytes; /* allocated length of "data" */ - int nbytes; /* number of bytes used so far */ - int aitems; /* allocated length of bitmap (in elements) */ - int nitems; /* total number of elements in result */ - int ndims; /* current dimensions of result */ - int dims[MAXDIM]; - int lbs[MAXDIM]; - Oid array_type; /* data type of the arrays */ - Oid element_type; /* data type of the array elements */ - bool private_cxt; /* use private memory context */ -} ArrayBuildStateArr; - -/* - * working state for accumArrayResultAny() and friends - * these functions handle both cases - */ -typedef struct ArrayBuildStateAny -{ - /* Exactly one of these is not NULL: */ - ArrayBuildState *scalarstate; - ArrayBuildStateArr *arraystate; -} ArrayBuildStateAny; - -/* - * structure to cache type metadata needed for array manipulation - */ -typedef struct ArrayMetaState -{ - Oid element_type; - int16 typlen; - bool typbyval; - char typalign; - char typdelim; - Oid typioparam; - Oid typiofunc; - FmgrInfo proc; -} ArrayMetaState; - -/* - * private state needed by array_map (here because caller must provide it) - */ -typedef struct ArrayMapState -{ - ArrayMetaState inp_extra; - ArrayMetaState ret_extra; -} ArrayMapState; - -/* ArrayIteratorData is private in arrayfuncs.c */ -typedef struct ArrayIteratorData *ArrayIterator; - -/* fmgr macros for regular varlena array objects */ -#define DatumGetArrayTypeP(X) ((ArrayType *) PG_DETOAST_DATUM(X)) -#define DatumGetArrayTypePCopy(X) ((ArrayType *) PG_DETOAST_DATUM_COPY(X)) -#define PG_GETARG_ARRAYTYPE_P(n) DatumGetArrayTypeP(PG_GETARG_DATUM(n)) -#define PG_GETARG_ARRAYTYPE_P_COPY(n) DatumGetArrayTypePCopy(PG_GETARG_DATUM(n)) -#define PG_RETURN_ARRAYTYPE_P(x) PG_RETURN_POINTER(x) - -/* fmgr macros for expanded array objects */ -#define PG_GETARG_EXPANDED_ARRAY(n) DatumGetExpandedArray(PG_GETARG_DATUM(n)) -#define PG_GETARG_EXPANDED_ARRAYX(n, metacache) \ - DatumGetExpandedArrayX(PG_GETARG_DATUM(n), metacache) -#define PG_RETURN_EXPANDED_ARRAY(x) PG_RETURN_DATUM(EOHPGetRWDatum(&(x)->hdr)) - -/* fmgr macros for AnyArrayType (ie, get either varlena or expanded form) */ -#define PG_GETARG_ANY_ARRAY_P(n) DatumGetAnyArrayP(PG_GETARG_DATUM(n)) - -/* - * Access macros for varlena array header fields. - * - * ARR_DIMS returns a pointer to an array of array dimensions (number of - * elements along the various array axes). - * - * ARR_LBOUND returns a pointer to an array of array lower bounds. - * - * That is: if the third axis of an array has elements 5 through 8, then - * ARR_DIMS(a)[2] == 4 and ARR_LBOUND(a)[2] == 5. - * - * Unlike C, the default lower bound is 1. - */ -#define ARR_SIZE(a) VARSIZE(a) -#define ARR_NDIM(a) ((a)->ndim) -#define ARR_HASNULL(a) ((a)->dataoffset != 0) -#define ARR_ELEMTYPE(a) ((a)->elemtype) - -#define ARR_DIMS(a) \ - ((int *) (((char *) (a)) + sizeof(ArrayType))) -#define ARR_LBOUND(a) \ - ((int *) (((char *) (a)) + sizeof(ArrayType) + \ - sizeof(int) * ARR_NDIM(a))) - -#define ARR_NULLBITMAP(a) \ - (ARR_HASNULL(a) ? \ - (bits8 *) (((char *) (a)) + sizeof(ArrayType) + \ - 2 * sizeof(int) * ARR_NDIM(a)) \ - : (bits8 *) NULL) - -/* - * The total array header size (in bytes) for an array with the specified - * number of dimensions and total number of items. - */ -#define ARR_OVERHEAD_NONULLS(ndims) \ - MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) -#define ARR_OVERHEAD_WITHNULLS(ndims, nitems) \ - MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims) + \ - ((nitems) + 7) / 8) - -#define ARR_DATA_OFFSET(a) \ - (ARR_HASNULL(a) ? (a)->dataoffset : ARR_OVERHEAD_NONULLS(ARR_NDIM(a))) - -/* - * Returns a pointer to the actual array data. - */ -#define ARR_DATA_PTR(a) \ - (((char *) (a)) + ARR_DATA_OFFSET(a)) - -/* - * Macros for working with AnyArrayType inputs. Beware multiple references! - */ -#define AARR_NDIM(a) \ - (VARATT_IS_EXPANDED_HEADER(a) ? \ - (a)->xpn.ndims : ARR_NDIM((ArrayType *) (a))) -#define AARR_HASNULL(a) \ - (VARATT_IS_EXPANDED_HEADER(a) ? \ - ((a)->xpn.dvalues != NULL ? (a)->xpn.dnulls != NULL : ARR_HASNULL((a)->xpn.fvalue)) : \ - ARR_HASNULL((ArrayType *) (a))) -#define AARR_ELEMTYPE(a) \ - (VARATT_IS_EXPANDED_HEADER(a) ? \ - (a)->xpn.element_type : ARR_ELEMTYPE((ArrayType *) (a))) -#define AARR_DIMS(a) \ - (VARATT_IS_EXPANDED_HEADER(a) ? \ - (a)->xpn.dims : ARR_DIMS((ArrayType *) (a))) -#define AARR_LBOUND(a) \ - (VARATT_IS_EXPANDED_HEADER(a) ? \ - (a)->xpn.lbound : ARR_LBOUND((ArrayType *) (a))) - - -/* - * GUC parameter - */ -extern PGDLLIMPORT bool Array_nulls; - -/* - * prototypes for functions defined in arrayfuncs.c - */ -extern void CopyArrayEls(ArrayType *array, - Datum *values, - bool *nulls, - int nitems, - int typlen, - bool typbyval, - char typalign, - bool freedata); - -extern Datum array_get_element(Datum arraydatum, int nSubscripts, int *indx, - int arraytyplen, int elmlen, bool elmbyval, char elmalign, - bool *isNull); -extern Datum array_set_element(Datum arraydatum, int nSubscripts, int *indx, - Datum dataValue, bool isNull, - int arraytyplen, int elmlen, bool elmbyval, char elmalign); -extern Datum array_get_slice(Datum arraydatum, int nSubscripts, - int *upperIndx, int *lowerIndx, - bool *upperProvided, bool *lowerProvided, - int arraytyplen, int elmlen, bool elmbyval, char elmalign); -extern Datum array_set_slice(Datum arraydatum, int nSubscripts, - int *upperIndx, int *lowerIndx, - bool *upperProvided, bool *lowerProvided, - Datum srcArrayDatum, bool isNull, - int arraytyplen, int elmlen, bool elmbyval, char elmalign); - -extern Datum array_ref(ArrayType *array, int nSubscripts, int *indx, - int arraytyplen, int elmlen, bool elmbyval, char elmalign, - bool *isNull); -extern ArrayType *array_set(ArrayType *array, int nSubscripts, int *indx, - Datum dataValue, bool isNull, - int arraytyplen, int elmlen, bool elmbyval, char elmalign); - -extern Datum array_map(Datum arrayd, - struct ExprState *exprstate, struct ExprContext *econtext, - Oid retType, ArrayMapState *amstate); - -extern void array_bitmap_copy(bits8 *destbitmap, int destoffset, - const bits8 *srcbitmap, int srcoffset, - int nitems); - -extern ArrayType *construct_array(Datum *elems, int nelems, - Oid elmtype, - int elmlen, bool elmbyval, char elmalign); -extern ArrayType *construct_md_array(Datum *elems, - bool *nulls, - int ndims, - int *dims, - int *lbs, - Oid elmtype, int elmlen, bool elmbyval, char elmalign); -extern ArrayType *construct_empty_array(Oid elmtype); -extern ExpandedArrayHeader *construct_empty_expanded_array(Oid element_type, - MemoryContext parentcontext, - ArrayMetaState *metacache); -extern void deconstruct_array(ArrayType *array, - Oid elmtype, - int elmlen, bool elmbyval, char elmalign, - Datum **elemsp, bool **nullsp, int *nelemsp); -extern bool array_contains_nulls(ArrayType *array); - -extern ArrayBuildState *initArrayResult(Oid element_type, - MemoryContext rcontext, bool subcontext); -extern ArrayBuildState *accumArrayResult(ArrayBuildState *astate, - Datum dvalue, bool disnull, - Oid element_type, - MemoryContext rcontext); -extern Datum makeArrayResult(ArrayBuildState *astate, - MemoryContext rcontext); -extern Datum makeMdArrayResult(ArrayBuildState *astate, int ndims, - int *dims, int *lbs, MemoryContext rcontext, bool release); - -extern ArrayBuildStateArr *initArrayResultArr(Oid array_type, Oid element_type, - MemoryContext rcontext, bool subcontext); -extern ArrayBuildStateArr *accumArrayResultArr(ArrayBuildStateArr *astate, - Datum dvalue, bool disnull, - Oid array_type, - MemoryContext rcontext); -extern Datum makeArrayResultArr(ArrayBuildStateArr *astate, - MemoryContext rcontext, bool release); - -extern ArrayBuildStateAny *initArrayResultAny(Oid input_type, - MemoryContext rcontext, bool subcontext); -extern ArrayBuildStateAny *accumArrayResultAny(ArrayBuildStateAny *astate, - Datum dvalue, bool disnull, - Oid input_type, - MemoryContext rcontext); -extern Datum makeArrayResultAny(ArrayBuildStateAny *astate, - MemoryContext rcontext, bool release); - -extern ArrayIterator array_create_iterator(ArrayType *arr, int slice_ndim, ArrayMetaState *mstate); -extern bool array_iterate(ArrayIterator iterator, Datum *value, bool *isnull); -extern void array_free_iterator(ArrayIterator iterator); - -/* - * prototypes for functions defined in arrayutils.c - */ - -extern int ArrayGetOffset(int n, const int *dim, const int *lb, const int *indx); -extern int ArrayGetOffset0(int n, const int *tup, const int *scale); -extern int ArrayGetNItems(int ndim, const int *dims); -extern void ArrayCheckBounds(int ndim, const int *dims, const int *lb); -extern void mda_get_range(int n, int *span, const int *st, const int *endp); -extern void mda_get_prod(int n, const int *range, int *prod); -extern void mda_get_offset_values(int n, int *dist, const int *prod, const int *span); -extern int mda_next_tuple(int n, int *curr, const int *span); -extern int32 *ArrayGetIntegerTypmods(ArrayType *arr, int *n); - -/* - * prototypes for functions defined in array_expanded.c - */ -extern Datum expand_array(Datum arraydatum, MemoryContext parentcontext, - ArrayMetaState *metacache); -extern ExpandedArrayHeader *DatumGetExpandedArray(Datum d); -extern ExpandedArrayHeader *DatumGetExpandedArrayX(Datum d, - ArrayMetaState *metacache); -extern AnyArrayType *DatumGetAnyArrayP(Datum d); -extern void deconstruct_expanded_array(ExpandedArrayHeader *eah); - -#endif /* ARRAY_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/backend_progress.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/backend_progress.h deleted file mode 100644 index 47bf8029b..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/backend_progress.h +++ /dev/null @@ -1,44 +0,0 @@ -/* ---------- - * backend_progress.h - * Command progress reporting definition. - * - * Note that this file provides the infrastructure for storing a single - * backend's command progress counters, without ascribing meaning to the - * individual fields. See commands/progress.h and system_views.sql for that. - * - * Copyright (c) 2001-2022, PostgreSQL Global Development Group - * - * src/include/utils/backend_progress.h - * ---------- - */ -#ifndef BACKEND_PROGRESS_H -#define BACKEND_PROGRESS_H - - -/* ---------- - * Command type for progress reporting purposes - * ---------- - */ -typedef enum ProgressCommandType -{ - PROGRESS_COMMAND_INVALID, - PROGRESS_COMMAND_VACUUM, - PROGRESS_COMMAND_ANALYZE, - PROGRESS_COMMAND_CLUSTER, - PROGRESS_COMMAND_CREATE_INDEX, - PROGRESS_COMMAND_BASEBACKUP, - PROGRESS_COMMAND_COPY -} ProgressCommandType; - -#define PGSTAT_NUM_PROGRESS_PARAM 20 - - -extern void pgstat_progress_start_command(ProgressCommandType cmdtype, - Oid relid); -extern void pgstat_progress_update_param(int index, int64 val); -extern void pgstat_progress_update_multi_param(int nparam, const int *index, - const int64 *val); -extern void pgstat_progress_end_command(void); - - -#endif /* BACKEND_PROGRESS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/backend_status.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/backend_status.h deleted file mode 100644 index 7403bca25..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/backend_status.h +++ /dev/null @@ -1,321 +0,0 @@ -/* ---------- - * backend_status.h - * Definitions related to backend status reporting - * - * Copyright (c) 2001-2022, PostgreSQL Global Development Group - * - * src/include/utils/backend_status.h - * ---------- - */ -#ifndef BACKEND_STATUS_H -#define BACKEND_STATUS_H - -#include "datatype/timestamp.h" -#include "libpq/pqcomm.h" -#include "miscadmin.h" /* for BackendType */ -#include "utils/backend_progress.h" - - -/* ---------- - * Backend states - * ---------- - */ -typedef enum BackendState -{ - STATE_UNDEFINED, - STATE_IDLE, - STATE_RUNNING, - STATE_IDLEINTRANSACTION, - STATE_FASTPATH, - STATE_IDLEINTRANSACTION_ABORTED, - STATE_DISABLED -} BackendState; - - -/* ---------- - * Shared-memory data structures - * ---------- - */ - -/* - * PgBackendSSLStatus - * - * For each backend, we keep the SSL status in a separate struct, that - * is only filled in if SSL is enabled. - * - * All char arrays must be null-terminated. - */ -typedef struct PgBackendSSLStatus -{ - /* Information about SSL connection */ - int ssl_bits; - char ssl_version[NAMEDATALEN]; - char ssl_cipher[NAMEDATALEN]; - char ssl_client_dn[NAMEDATALEN]; - - /* - * serial number is max "20 octets" per RFC 5280, so this size should be - * fine - */ - char ssl_client_serial[NAMEDATALEN]; - - char ssl_issuer_dn[NAMEDATALEN]; -} PgBackendSSLStatus; - -/* - * PgBackendGSSStatus - * - * For each backend, we keep the GSS status in a separate struct, that - * is only filled in if GSS is enabled. - * - * All char arrays must be null-terminated. - */ -typedef struct PgBackendGSSStatus -{ - /* Information about GSSAPI connection */ - char gss_princ[NAMEDATALEN]; /* GSSAPI Principal used to auth */ - bool gss_auth; /* If GSSAPI authentication was used */ - bool gss_enc; /* If encryption is being used */ - -} PgBackendGSSStatus; - - -/* ---------- - * PgBackendStatus - * - * Each live backend maintains a PgBackendStatus struct in shared memory - * showing its current activity. (The structs are allocated according to - * BackendId, but that is not critical.) Note that this is unrelated to the - * cumulative stats system (i.e. pgstat.c et al). - * - * Each auxiliary process also maintains a PgBackendStatus struct in shared - * memory. - * ---------- - */ -typedef struct PgBackendStatus -{ - /* - * To avoid locking overhead, we use the following protocol: a backend - * increments st_changecount before modifying its entry, and again after - * finishing a modification. A would-be reader should note the value of - * st_changecount, copy the entry into private memory, then check - * st_changecount again. If the value hasn't changed, and if it's even, - * the copy is valid; otherwise start over. This makes updates cheap - * while reads are potentially expensive, but that's the tradeoff we want. - * - * The above protocol needs memory barriers to ensure that the apparent - * order of execution is as it desires. Otherwise, for example, the CPU - * might rearrange the code so that st_changecount is incremented twice - * before the modification on a machine with weak memory ordering. Hence, - * use the macros defined below for manipulating st_changecount, rather - * than touching it directly. - */ - int st_changecount; - - /* The entry is valid iff st_procpid > 0, unused if st_procpid == 0 */ - int st_procpid; - - /* Type of backends */ - BackendType st_backendType; - - /* Times when current backend, transaction, and activity started */ - TimestampTz st_proc_start_timestamp; - TimestampTz st_xact_start_timestamp; - TimestampTz st_activity_start_timestamp; - TimestampTz st_state_start_timestamp; - - /* Database OID, owning user's OID, connection client address */ - Oid st_databaseid; - Oid st_userid; - SockAddr st_clientaddr; - char *st_clienthostname; /* MUST be null-terminated */ - - /* Information about SSL connection */ - bool st_ssl; - PgBackendSSLStatus *st_sslstatus; - - /* Information about GSSAPI connection */ - bool st_gss; - PgBackendGSSStatus *st_gssstatus; - - /* current state */ - BackendState st_state; - - /* application name; MUST be null-terminated */ - char *st_appname; - - /* - * Current command string; MUST be null-terminated. Note that this string - * possibly is truncated in the middle of a multi-byte character. As - * activity strings are stored more frequently than read, that allows to - * move the cost of correct truncation to the display side. Use - * pgstat_clip_activity() to truncate correctly. - */ - char *st_activity_raw; - - /* - * Command progress reporting. Any command which wishes can advertise - * that it is running by setting st_progress_command, - * st_progress_command_target, and st_progress_param[]. - * st_progress_command_target should be the OID of the relation which the - * command targets (we assume there's just one, as this is meant for - * utility commands), but the meaning of each element in the - * st_progress_param array is command-specific. - */ - ProgressCommandType st_progress_command; - Oid st_progress_command_target; - int64 st_progress_param[PGSTAT_NUM_PROGRESS_PARAM]; - - /* query identifier, optionally computed using post_parse_analyze_hook */ - uint64 st_query_id; -} PgBackendStatus; - - -/* - * Macros to load and store st_changecount with appropriate memory barriers. - * - * Use PGSTAT_BEGIN_WRITE_ACTIVITY() before, and PGSTAT_END_WRITE_ACTIVITY() - * after, modifying the current process's PgBackendStatus data. Note that, - * since there is no mechanism for cleaning up st_changecount after an error, - * THESE MACROS FORM A CRITICAL SECTION. Any error between them will be - * promoted to PANIC, causing a database restart to clean up shared memory! - * Hence, keep the critical section as short and straight-line as possible. - * Aside from being safer, that minimizes the window in which readers will - * have to loop. - * - * Reader logic should follow this sketch: - * - * for (;;) - * { - * int before_ct, after_ct; - * - * pgstat_begin_read_activity(beentry, before_ct); - * ... copy beentry data to local memory ... - * pgstat_end_read_activity(beentry, after_ct); - * if (pgstat_read_activity_complete(before_ct, after_ct)) - * break; - * CHECK_FOR_INTERRUPTS(); - * } - * - * For extra safety, we generally use volatile beentry pointers, although - * the memory barriers should theoretically be sufficient. - */ -#define PGSTAT_BEGIN_WRITE_ACTIVITY(beentry) \ - do { \ - START_CRIT_SECTION(); \ - (beentry)->st_changecount++; \ - pg_write_barrier(); \ - } while (0) - -#define PGSTAT_END_WRITE_ACTIVITY(beentry) \ - do { \ - pg_write_barrier(); \ - (beentry)->st_changecount++; \ - Assert(((beentry)->st_changecount & 1) == 0); \ - END_CRIT_SECTION(); \ - } while (0) - -#define pgstat_begin_read_activity(beentry, before_changecount) \ - do { \ - (before_changecount) = (beentry)->st_changecount; \ - pg_read_barrier(); \ - } while (0) - -#define pgstat_end_read_activity(beentry, after_changecount) \ - do { \ - pg_read_barrier(); \ - (after_changecount) = (beentry)->st_changecount; \ - } while (0) - -#define pgstat_read_activity_complete(before_changecount, after_changecount) \ - ((before_changecount) == (after_changecount) && \ - ((before_changecount) & 1) == 0) - - -/* ---------- - * LocalPgBackendStatus - * - * When we build the backend status array, we use LocalPgBackendStatus to be - * able to add new values to the struct when needed without adding new fields - * to the shared memory. It contains the backend status as a first member. - * ---------- - */ -typedef struct LocalPgBackendStatus -{ - /* - * Local version of the backend status entry. - */ - PgBackendStatus backendStatus; - - /* - * The xid of the current transaction if available, InvalidTransactionId - * if not. - */ - TransactionId backend_xid; - - /* - * The xmin of the current session if available, InvalidTransactionId if - * not. - */ - TransactionId backend_xmin; -} LocalPgBackendStatus; - - -/* ---------- - * GUC parameters - * ---------- - */ -extern PGDLLIMPORT bool pgstat_track_activities; -extern PGDLLIMPORT int pgstat_track_activity_query_size; - - -/* ---------- - * Other global variables - * ---------- - */ -extern PGDLLIMPORT PgBackendStatus *MyBEEntry; - - -/* ---------- - * Functions called from postmaster - * ---------- - */ -extern Size BackendStatusShmemSize(void); -extern void CreateSharedBackendStatus(void); - - -/* ---------- - * Functions called from backends - * ---------- - */ - -/* Initialization functions */ -extern void pgstat_beinit(void); -extern void pgstat_bestart(void); - -extern void pgstat_clear_backend_activity_snapshot(void); - -/* Activity reporting functions */ -extern void pgstat_report_activity(BackendState state, const char *cmd_str); -extern void pgstat_report_query_id(uint64 query_id, bool force); -extern void pgstat_report_tempfile(size_t filesize); -extern void pgstat_report_appname(const char *appname); -extern void pgstat_report_xact_timestamp(TimestampTz tstamp); -extern const char *pgstat_get_backend_current_activity(int pid, bool checkUser); -extern const char *pgstat_get_crashed_backend_activity(int pid, char *buffer, - int buflen); -extern uint64 pgstat_get_my_query_id(void); - - -/* ---------- - * Support functions for the SQL-callable functions to - * generate the pgstat* views. - * ---------- - */ -extern int pgstat_fetch_stat_numbackends(void); -extern PgBackendStatus *pgstat_fetch_stat_beentry(int beid); -extern LocalPgBackendStatus *pgstat_fetch_stat_local_beentry(int beid); -extern char *pgstat_clip_activity(const char *raw_activity); - - -#endif /* BACKEND_STATUS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/builtins.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/builtins.h deleted file mode 100644 index 24d16e8fe..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/builtins.h +++ /dev/null @@ -1,127 +0,0 @@ -/*------------------------------------------------------------------------- - * - * builtins.h - * Declarations for operations on built-in types. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/builtins.h - * - *------------------------------------------------------------------------- - */ -#ifndef BUILTINS_H -#define BUILTINS_H - -#include "fmgr.h" -#include "nodes/nodes.h" -#include "utils/fmgrprotos.h" - -/* Sign + the most decimal digits an 8-byte number could have */ -#define MAXINT8LEN 20 - -/* bool.c */ -extern bool parse_bool(const char *value, bool *result); -extern bool parse_bool_with_len(const char *value, size_t len, bool *result); - -/* domains.c */ -extern void domain_check(Datum value, bool isnull, Oid domainType, - void **extra, MemoryContext mcxt); -extern int errdatatype(Oid datatypeOid); -extern int errdomainconstraint(Oid datatypeOid, const char *conname); - -/* encode.c */ -extern uint64 hex_encode(const char *src, size_t len, char *dst); -extern uint64 hex_decode(const char *src, size_t len, char *dst); - -/* int.c */ -extern int2vector *buildint2vector(const int16 *int2s, int n); - -/* name.c */ -extern void namestrcpy(Name name, const char *str); -extern int namestrcmp(Name name, const char *str); - -/* numutils.c */ -extern int16 pg_strtoint16(const char *s); -extern int32 pg_strtoint32(const char *s); -extern int64 pg_strtoint64(const char *s); -extern int pg_itoa(int16 i, char *a); -extern int pg_ultoa_n(uint32 l, char *a); -extern int pg_ulltoa_n(uint64 l, char *a); -extern int pg_ltoa(int32 l, char *a); -extern int pg_lltoa(int64 ll, char *a); -extern char *pg_ultostr_zeropad(char *str, uint32 value, int32 minwidth); -extern char *pg_ultostr(char *str, uint32 value); - -/* oid.c */ -extern oidvector *buildoidvector(const Oid *oids, int n); -extern Oid oidparse(Node *node); -extern int oid_cmp(const void *p1, const void *p2); - -/* regexp.c */ -extern char *regexp_fixed_prefix(text *text_re, bool case_insensitive, - Oid collation, bool *exact); - -/* ruleutils.c */ -extern PGDLLIMPORT __thread bool quote_all_identifiers; -extern const char *quote_identifier(const char *ident); -extern char *quote_qualified_identifier(const char *qualifier, - const char *ident); -extern void generate_operator_clause(fmStringInfo buf, - const char *leftop, Oid leftoptype, - Oid opoid, - const char *rightop, Oid rightoptype); - -/* varchar.c */ -extern int bpchartruelen(char *s, int len); - -/* popular functions from varlena.c */ -extern text *cstring_to_text(const char *s); -extern text *cstring_to_text_with_len(const char *s, int len); -extern char *text_to_cstring(const text *t); -extern void text_to_cstring_buffer(const text *src, char *dst, size_t dst_len); - -#define CStringGetTextDatum(s) PointerGetDatum(cstring_to_text(s)) -#define TextDatumGetCString(d) text_to_cstring((text *) DatumGetPointer(d)) - -/* xid.c */ -extern int xidComparator(const void *arg1, const void *arg2); -extern int xidLogicalComparator(const void *arg1, const void *arg2); - -/* inet_cidr_ntop.c */ -extern char *pg_inet_cidr_ntop(int af, const void *src, int bits, - char *dst, size_t size); - -/* inet_net_pton.c */ -extern int pg_inet_net_pton(int af, const char *src, - void *dst, size_t size); - -/* network.c */ -extern double convert_network_to_scalar(Datum value, Oid typid, bool *failure); -extern Datum network_scan_first(Datum in); -extern Datum network_scan_last(Datum in); -extern void clean_ipv6_addr(int addr_family, char *addr); - -/* numeric.c */ -extern Datum numeric_float8_no_overflow(PG_FUNCTION_ARGS); - -/* format_type.c */ - -/* Control flags for format_type_extended */ -#define FORMAT_TYPE_TYPEMOD_GIVEN 0x01 /* typemod defined by caller */ -#define FORMAT_TYPE_ALLOW_INVALID 0x02 /* allow invalid types */ -#define FORMAT_TYPE_FORCE_QUALIFY 0x04 /* force qualification of type */ -#define FORMAT_TYPE_INVALID_AS_NULL 0x08 /* NULL if undefined */ -extern char *format_type_extended(Oid type_oid, int32 typemod, bits16 flags); - -extern char *format_type_be(Oid type_oid); -extern char *format_type_be_qualified(Oid type_oid); -extern char *format_type_with_typemod(Oid type_oid, int32 typemod); - -extern int32 type_maximum_size(Oid type_oid, int32 typemod); - -/* quote.c */ -extern char *quote_literal_cstr(const char *rawstr); - -#endif /* BUILTINS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/bytea.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/bytea.h deleted file mode 100644 index c3c9e5470..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/bytea.h +++ /dev/null @@ -1,28 +0,0 @@ -/*------------------------------------------------------------------------- - * - * bytea.h - * Declarations for BYTEA data type support. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/bytea.h - * - *------------------------------------------------------------------------- - */ -#ifndef BYTEA_H -#define BYTEA_H - - - -typedef enum -{ - BYTEA_OUTPUT_ESCAPE, - BYTEA_OUTPUT_HEX -} ByteaOutputType; - -extern PGDLLIMPORT int bytea_output; /* ByteaOutputType, but int for GUC - * enum */ - -#endif /* BYTEA_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/catcache.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/catcache.h deleted file mode 100644 index d81e6fabb..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/catcache.h +++ /dev/null @@ -1,231 +0,0 @@ -/*------------------------------------------------------------------------- - * - * catcache.h - * Low-level catalog cache definitions. - * - * NOTE: every catalog cache must have a corresponding unique index on - * the system table that it caches --- ie, the index must match the keys - * used to do lookups in this cache. All cache fetches are done with - * indexscans (under normal conditions). The index should be unique to - * guarantee that there can only be one matching row for a key combination. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/catcache.h - * - *------------------------------------------------------------------------- - */ -#ifndef CATCACHE_H -#define CATCACHE_H - -#include "access/htup.h" -#include "access/skey.h" -#include "lib/ilist.h" -#include "utils/relcache.h" - -/* - * struct catctup: individual tuple in the cache. - * struct catclist: list of tuples matching a partial key. - * struct catcache: information for managing a cache. - * struct catcacheheader: information for managing all the caches. - */ - -#define CATCACHE_MAXKEYS 4 - - -/* function computing a datum's hash */ -typedef uint32 (*CCHashFN) (Datum datum); - -/* function computing equality of two datums */ -typedef bool (*CCFastEqualFN) (Datum a, Datum b); - -typedef struct catcache -{ - int id; /* cache identifier --- see syscache.h */ - int cc_nbuckets; /* # of hash buckets in this cache */ - TupleDesc cc_tupdesc; /* tuple descriptor (copied from reldesc) */ - dlist_head *cc_bucket; /* hash buckets */ - CCHashFN cc_hashfunc[CATCACHE_MAXKEYS]; /* hash function for each key */ - CCFastEqualFN cc_fastequal[CATCACHE_MAXKEYS]; /* fast equal function for - * each key */ - int cc_keyno[CATCACHE_MAXKEYS]; /* AttrNumber of each key */ - dlist_head cc_lists; /* list of CatCList structs */ - int cc_ntup; /* # of tuples currently in this cache */ - int cc_nkeys; /* # of keys (1..CATCACHE_MAXKEYS) */ - const char *cc_relname; /* name of relation the tuples come from */ - Oid cc_reloid; /* OID of relation the tuples come from */ - Oid cc_indexoid; /* OID of index matching cache keys */ - bool cc_relisshared; /* is relation shared across databases? */ - slist_node cc_next; /* list link */ - ScanKeyData cc_skey[CATCACHE_MAXKEYS]; /* precomputed key info for heap - * scans */ - - /* - * Keep these at the end, so that compiling catcache.c with CATCACHE_STATS - * doesn't break ABI for other modules - */ -#ifdef CATCACHE_STATS - long cc_searches; /* total # searches against this cache */ - long cc_hits; /* # of matches against existing entry */ - long cc_neg_hits; /* # of matches against negative entry */ - long cc_newloads; /* # of successful loads of new entry */ - - /* - * cc_searches - (cc_hits + cc_neg_hits + cc_newloads) is number of failed - * searches, each of which will result in loading a negative entry - */ - long cc_invals; /* # of entries invalidated from cache */ - long cc_lsearches; /* total # list-searches */ - long cc_lhits; /* # of matches against existing lists */ -#endif -} CatCache; - - -typedef struct catctup -{ - int ct_magic; /* for identifying CatCTup entries */ -#define CT_MAGIC 0x57261502 - - uint32 hash_value; /* hash value for this tuple's keys */ - - /* - * Lookup keys for the entry. By-reference datums point into the tuple for - * positive cache entries, and are separately allocated for negative ones. - */ - Datum keys[CATCACHE_MAXKEYS]; - - /* - * Each tuple in a cache is a member of a dlist that stores the elements - * of its hash bucket. We keep each dlist in LRU order to speed repeated - * lookups. - */ - dlist_node cache_elem; /* list member of per-bucket list */ - - /* - * A tuple marked "dead" must not be returned by subsequent searches. - * However, it won't be physically deleted from the cache until its - * refcount goes to zero. (If it's a member of a CatCList, the list's - * refcount must go to zero, too; also, remember to mark the list dead at - * the same time the tuple is marked.) - * - * A negative cache entry is an assertion that there is no tuple matching - * a particular key. This is just as useful as a normal entry so far as - * avoiding catalog searches is concerned. Management of positive and - * negative entries is identical. - */ - int refcount; /* number of active references */ - bool dead; /* dead but not yet removed? */ - bool negative; /* negative cache entry? */ - HeapTupleData tuple; /* tuple management header */ - - /* - * The tuple may also be a member of at most one CatCList. (If a single - * catcache is list-searched with varying numbers of keys, we may have to - * make multiple entries for the same tuple because of this restriction. - * Currently, that's not expected to be common, so we accept the potential - * inefficiency.) - */ - struct catclist *c_list; /* containing CatCList, or NULL if none */ - - CatCache *my_cache; /* link to owning catcache */ - /* properly aligned tuple data follows, unless a negative entry */ -} CatCTup; - - -/* - * A CatCList describes the result of a partial search, ie, a search using - * only the first K key columns of an N-key cache. We store the keys used - * into the keys attribute to represent the stored key set. The CatCList - * object contains links to cache entries for all the table rows satisfying - * the partial key. (Note: none of these will be negative cache entries.) - * - * A CatCList is only a member of a per-cache list; we do not currently - * divide them into hash buckets. - * - * A list marked "dead" must not be returned by subsequent searches. - * However, it won't be physically deleted from the cache until its - * refcount goes to zero. (A list should be marked dead if any of its - * member entries are dead.) - * - * If "ordered" is true then the member tuples appear in the order of the - * cache's underlying index. This will be true in normal operation, but - * might not be true during bootstrap or recovery operations. (namespace.c - * is able to save some cycles when it is true.) - */ -typedef struct catclist -{ - int cl_magic; /* for identifying CatCList entries */ -#define CL_MAGIC 0x52765103 - - uint32 hash_value; /* hash value for lookup keys */ - - dlist_node cache_elem; /* list member of per-catcache list */ - - /* - * Lookup keys for the entry, with the first nkeys elements being valid. - * All by-reference are separately allocated. - */ - Datum keys[CATCACHE_MAXKEYS]; - - int refcount; /* number of active references */ - bool dead; /* dead but not yet removed? */ - bool ordered; /* members listed in index order? */ - short nkeys; /* number of lookup keys specified */ - int n_members; /* number of member tuples */ - CatCache *my_cache; /* link to owning catcache */ - CatCTup *members[FLEXIBLE_ARRAY_MEMBER]; /* members */ -} CatCList; - - -typedef struct catcacheheader -{ - slist_head ch_caches; /* head of list of CatCache structs */ - int ch_ntup; /* # of tuples in all caches */ -} CatCacheHeader; - - -/* this extern duplicates utils/memutils.h... */ -extern PGDLLIMPORT MemoryContext CacheMemoryContext; - -extern void CreateCacheMemoryContext(void); - -extern CatCache *InitCatCache(int id, Oid reloid, Oid indexoid, - int nkeys, const int *key, - int nbuckets); -extern void InitCatCachePhase2(CatCache *cache, bool touch_index); - -extern HeapTuple SearchCatCache(CatCache *cache, - Datum v1, Datum v2, Datum v3, Datum v4); -extern HeapTuple SearchCatCache1(CatCache *cache, - Datum v1); -extern HeapTuple SearchCatCache2(CatCache *cache, - Datum v1, Datum v2); -extern HeapTuple SearchCatCache3(CatCache *cache, - Datum v1, Datum v2, Datum v3); -extern HeapTuple SearchCatCache4(CatCache *cache, - Datum v1, Datum v2, Datum v3, Datum v4); -extern void ReleaseCatCache(HeapTuple tuple); - -extern uint32 GetCatCacheHashValue(CatCache *cache, - Datum v1, Datum v2, - Datum v3, Datum v4); - -extern CatCList *SearchCatCacheList(CatCache *cache, int nkeys, - Datum v1, Datum v2, - Datum v3); -extern void ReleaseCatCacheList(CatCList *list); - -extern void ResetCatalogCaches(void); -extern void CatalogCacheFlushCatalog(Oid catId); -extern void CatCacheInvalidate(CatCache *cache, uint32 hashValue); -extern void PrepareToInvalidateCacheTuple(Relation relation, - HeapTuple tuple, - HeapTuple newtuple, - void (*function) (int, uint32, Oid)); - -extern void PrintCatCacheLeakWarning(HeapTuple tuple); -extern void PrintCatCacheListLeakWarning(CatCList *list); - -#endif /* CATCACHE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/date.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/date.h deleted file mode 100644 index 91ae24254..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/date.h +++ /dev/null @@ -1,90 +0,0 @@ -/*------------------------------------------------------------------------- - * - * date.h - * Definitions for the SQL "date" and "time" types. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/date.h - * - *------------------------------------------------------------------------- - */ -#ifndef DATE_H -#define DATE_H - -#include - -#include "datatype/timestamp.h" -#include "fmgr.h" -#include "pgtime.h" - -typedef int32 DateADT; - -typedef int64 TimeADT; - -typedef struct -{ - TimeADT time; /* all time units other than months and years */ - int32 zone; /* numeric time zone, in seconds */ -} TimeTzADT; - -/* - * Infinity and minus infinity must be the max and min values of DateADT. - */ -#define DATEVAL_NOBEGIN ((DateADT) PG_INT32_MIN) -#define DATEVAL_NOEND ((DateADT) PG_INT32_MAX) - -#define DATE_NOBEGIN(j) ((j) = DATEVAL_NOBEGIN) -#define DATE_IS_NOBEGIN(j) ((j) == DATEVAL_NOBEGIN) -#define DATE_NOEND(j) ((j) = DATEVAL_NOEND) -#define DATE_IS_NOEND(j) ((j) == DATEVAL_NOEND) -#define DATE_NOT_FINITE(j) (DATE_IS_NOBEGIN(j) || DATE_IS_NOEND(j)) - -/* - * Macros for fmgr-callable functions. - * - * For TimeADT, we make use of the same support routines as for int64. - * Therefore TimeADT is pass-by-reference if and only if int64 is! - */ -#define MAX_TIME_PRECISION 6 - -#define DatumGetDateADT(X) ((DateADT) DatumGetInt32(X)) -#define DatumGetTimeADT(X) ((TimeADT) DatumGetInt64(X)) -#define DatumGetTimeTzADTP(X) ((TimeTzADT *) DatumGetPointer(X)) - -#define DateADTGetDatum(X) Int32GetDatum(X) -#define TimeADTGetDatum(X) Int64GetDatum(X) -#define TimeTzADTPGetDatum(X) PointerGetDatum(X) - -#define PG_GETARG_DATEADT(n) DatumGetDateADT(PG_GETARG_DATUM(n)) -#define PG_GETARG_TIMEADT(n) DatumGetTimeADT(PG_GETARG_DATUM(n)) -#define PG_GETARG_TIMETZADT_P(n) DatumGetTimeTzADTP(PG_GETARG_DATUM(n)) - -#define PG_RETURN_DATEADT(x) return DateADTGetDatum(x) -#define PG_RETURN_TIMEADT(x) return TimeADTGetDatum(x) -#define PG_RETURN_TIMETZADT_P(x) return TimeTzADTPGetDatum(x) - - -/* date.c */ -extern int32 anytime_typmod_check(bool istz, int32 typmod); -extern double date2timestamp_no_overflow(DateADT dateVal); -extern Timestamp date2timestamp_opt_overflow(DateADT dateVal, int *overflow); -extern TimestampTz date2timestamptz_opt_overflow(DateADT dateVal, int *overflow); -extern int32 date_cmp_timestamp_internal(DateADT dateVal, Timestamp dt2); -extern int32 date_cmp_timestamptz_internal(DateADT dateVal, TimestampTz dt2); - -extern void EncodeSpecialDate(DateADT dt, char *str); -extern DateADT GetSQLCurrentDate(void); -extern TimeTzADT *GetSQLCurrentTime(int32 typmod); -extern TimeADT GetSQLLocalTime(int32 typmod); -extern int time2tm(TimeADT time, struct pg_tm *tm, fsec_t *fsec); -extern int timetz2tm(TimeTzADT *time, struct pg_tm *tm, fsec_t *fsec, int *tzp); -extern int tm2time(struct pg_tm *tm, fsec_t fsec, TimeADT *result); -extern int tm2timetz(struct pg_tm *tm, fsec_t fsec, int tz, TimeTzADT *result); -extern bool time_overflows(int hour, int min, int sec, fsec_t fsec); -extern bool float_time_overflows(int hour, int min, double sec); -extern void AdjustTimeForTypmod(TimeADT *time, int32 typmod); - -#endif /* DATE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/datetime.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/datetime.h deleted file mode 100644 index 4527e8251..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/datetime.h +++ /dev/null @@ -1,344 +0,0 @@ -/*------------------------------------------------------------------------- - * - * datetime.h - * Definitions for date/time support code. - * The support code is shared with other date data types, - * including date, and time. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/datetime.h - * - *------------------------------------------------------------------------- - */ -#ifndef DATETIME_H -#define DATETIME_H - -#include "nodes/nodes.h" -#include "utils/timestamp.h" - -/* this struct is declared in utils/tzparser.h: */ -struct tzEntry; - - -/* ---------------------------------------------------------------- - * time types + support macros - * - * String definitions for standard time quantities. - * - * These strings are the defaults used to form output time strings. - * Other alternative forms are hardcoded into token tables in datetime.c. - * ---------------------------------------------------------------- - */ - -#define DAGO "ago" -#define DCURRENT "current" -#define EPOCH "epoch" -#define INVALID "invalid" -#define EARLY "-infinity" -#define LATE "infinity" -#define NOW "now" -#define TODAY "today" -#define TOMORROW "tomorrow" -#define YESTERDAY "yesterday" -#define ZULU "zulu" - -#define DMICROSEC "usecond" -#define DMILLISEC "msecond" -#define DSECOND "second" -#define DMINUTE "minute" -#define DHOUR "hour" -#define DDAY "day" -#define DWEEK "week" -#define DMONTH "month" -#define DQUARTER "quarter" -#define DYEAR "year" -#define DDECADE "decade" -#define DCENTURY "century" -#define DMILLENNIUM "millennium" -#define DA_D "ad" -#define DB_C "bc" -#define DTIMEZONE "timezone" - -/* - * Fundamental time field definitions for parsing. - * - * Meridian: am, pm, or 24-hour style. - * Millennium: ad, bc - */ - -#define AM 0 -#define PM 1 -#define HR24 2 - -#define AD 0 -#define BC 1 - -/* - * Field types for time decoding. - * - * Can't have more of these than there are bits in an unsigned int - * since these are turned into bit masks during parsing and decoding. - * - * Furthermore, the values for YEAR, MONTH, DAY, HOUR, MINUTE, SECOND - * must be in the range 0..14 so that the associated bitmasks can fit - * into the left half of an INTERVAL's typmod value. Since those bits - * are stored in typmods, you can't change them without initdb! - */ - -#define RESERV 0 -#define MONTH 1 -#define YEAR 2 -#define DAY 3 -#define JULIAN 4 -#define TZ 5 /* fixed-offset timezone abbreviation */ -#define DTZ 6 /* fixed-offset timezone abbrev, DST */ -#define DYNTZ 7 /* dynamic timezone abbreviation */ -#define IGNORE_DTF 8 -#define AMPM 9 -#define HOUR 10 -#define MINUTE 11 -#define SECOND 12 -#define MILLISECOND 13 -#define MICROSECOND 14 -#define DOY 15 -#define DOW 16 -#define UNITS 17 -#define ADBC 18 -/* these are only for relative dates */ -#define AGO 19 -#define ABS_BEFORE 20 -#define ABS_AFTER 21 -/* generic fields to help with parsing */ -#define ISODATE 22 -#define ISOTIME 23 -/* these are only for parsing intervals */ -#define WEEK 24 -#define DECADE 25 -#define CENTURY 26 -#define MILLENNIUM 27 -/* hack for parsing two-word timezone specs "MET DST" etc */ -#define DTZMOD 28 /* "DST" as a separate word */ -/* reserved for unrecognized string values */ -#define UNKNOWN_FIELD 31 - -/* - * Token field definitions for time parsing and decoding. - * - * Some field type codes (see above) use these as the "value" in datetktbl[]. - * These are also used for bit masks in DecodeDateTime and friends - * so actually restrict them to within [0,31] for now. - * - thomas 97/06/19 - * Not all of these fields are used for masks in DecodeDateTime - * so allow some larger than 31. - thomas 1997-11-17 - * - * Caution: there are undocumented assumptions in the code that most of these - * values are not equal to IGNORE_DTF nor RESERV. Be very careful when - * renumbering values in either of these apparently-independent lists :-( - */ - -#define DTK_NUMBER 0 -#define DTK_STRING 1 - -#define DTK_DATE 2 -#define DTK_TIME 3 -#define DTK_TZ 4 -#define DTK_AGO 5 - -#define DTK_SPECIAL 6 -#define DTK_EARLY 9 -#define DTK_LATE 10 -#define DTK_EPOCH 11 -#define DTK_NOW 12 -#define DTK_YESTERDAY 13 -#define DTK_TODAY 14 -#define DTK_TOMORROW 15 -#define DTK_ZULU 16 - -#define DTK_DELTA 17 -#define DTK_SECOND 18 -#define DTK_MINUTE 19 -#define DTK_HOUR 20 -#define DTK_DAY 21 -#define DTK_WEEK 22 -#define DTK_MONTH 23 -#define DTK_QUARTER 24 -#define DTK_YEAR 25 -#define DTK_DECADE 26 -#define DTK_CENTURY 27 -#define DTK_MILLENNIUM 28 -#define DTK_MILLISEC 29 -#define DTK_MICROSEC 30 -#define DTK_JULIAN 31 - -#define DTK_DOW 32 -#define DTK_DOY 33 -#define DTK_TZ_HOUR 34 -#define DTK_TZ_MINUTE 35 -#define DTK_ISOYEAR 36 -#define DTK_ISODOW 37 - - -/* - * Bit mask definitions for time parsing. - */ - -#define DTK_M(t) (0x01 << (t)) - -/* Convenience: a second, plus any fractional component */ -#define DTK_ALL_SECS_M (DTK_M(SECOND) | DTK_M(MILLISECOND) | DTK_M(MICROSECOND)) -#define DTK_DATE_M (DTK_M(YEAR) | DTK_M(MONTH) | DTK_M(DAY)) -#define DTK_TIME_M (DTK_M(HOUR) | DTK_M(MINUTE) | DTK_ALL_SECS_M) - -/* - * Working buffer size for input and output of interval, timestamp, etc. - * Inputs that need more working space will be rejected early. Longer outputs - * will overrun buffers, so this must suffice for all possible output. As of - * this writing, interval_out() needs the most space at ~90 bytes. - */ -#define MAXDATELEN 128 -/* maximum possible number of fields in a date string */ -#define MAXDATEFIELDS 25 -/* only this many chars are stored in datetktbl */ -#define TOKMAXLEN 10 - -/* keep this struct small; it gets used a lot */ -typedef struct -{ - char token[TOKMAXLEN + 1]; /* always NUL-terminated */ - char type; /* see field type codes above */ - int32 value; /* meaning depends on type */ -} datetkn; - -/* one of its uses is in tables of time zone abbreviations */ -typedef struct TimeZoneAbbrevTable -{ - Size tblsize; /* size in bytes of TimeZoneAbbrevTable */ - int numabbrevs; /* number of entries in abbrevs[] array */ - datetkn abbrevs[FLEXIBLE_ARRAY_MEMBER]; - /* DynamicZoneAbbrev(s) may follow the abbrevs[] array */ -} TimeZoneAbbrevTable; - -/* auxiliary data for a dynamic time zone abbreviation (non-fixed-offset) */ -typedef struct DynamicZoneAbbrev -{ - pg_tz *tz; /* NULL if not yet looked up */ - char zone[FLEXIBLE_ARRAY_MEMBER]; /* NUL-terminated zone name */ -} DynamicZoneAbbrev; - - -/* FMODULO() - * Macro to replace modf(), which is broken on some platforms. - * t = input and remainder - * q = integer part - * u = divisor - */ -#define FMODULO(t,q,u) \ -do { \ - (q) = (((t) < 0) ? ceil((t) / (u)) : floor((t) / (u))); \ - if ((q) != 0) (t) -= rint((q) * (u)); \ -} while(0) - -/* TMODULO() - * Like FMODULO(), but work on the timestamp datatype (now always int64). - * We assume that int64 follows the C99 semantics for division (negative - * quotients truncate towards zero). - */ -#define TMODULO(t,q,u) \ -do { \ - (q) = ((t) / (u)); \ - if ((q) != 0) (t) -= ((q) * (u)); \ -} while(0) - -/* - * Date/time validation - * Include check for leap year. - */ - -extern PGDLLIMPORT const char *const months[]; /* months (3-char - * abbreviations) */ -extern PGDLLIMPORT const char *const days[]; /* days (full names) */ -extern PGDLLIMPORT const int day_tab[2][13]; - -/* - * These are the rules for the Gregorian calendar, which was adopted in 1582. - * However, we use this calculation for all prior years as well because the - * SQL standard specifies use of the Gregorian calendar. This prevents the - * date 1500-02-29 from being stored, even though it is valid in the Julian - * calendar. - */ -#define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) - - -/* - * Datetime input parsing routines (ParseDateTime, DecodeDateTime, etc) - * return zero or a positive value on success. On failure, they return - * one of these negative code values. DateTimeParseError may be used to - * produce a correct ereport. - */ -#define DTERR_BAD_FORMAT (-1) -#define DTERR_FIELD_OVERFLOW (-2) -#define DTERR_MD_FIELD_OVERFLOW (-3) /* triggers hint about DateStyle */ -#define DTERR_INTERVAL_OVERFLOW (-4) -#define DTERR_TZDISP_OVERFLOW (-5) - - -extern void GetCurrentDateTime(struct pg_tm *tm); -extern void GetCurrentTimeUsec(struct pg_tm *tm, fsec_t *fsec, int *tzp); -extern void j2date(int jd, int *year, int *month, int *day); -extern int date2j(int year, int month, int day); - -extern int ParseDateTime(const char *timestr, char *workbuf, size_t buflen, - char **field, int *ftype, - int maxfields, int *numfields); -extern int DecodeDateTime(char **field, int *ftype, - int nf, int *dtype, - struct pg_tm *tm, fsec_t *fsec, int *tzp); -extern int DecodeTimezone(char *str, int *tzp); -extern int DecodeTimeOnly(char **field, int *ftype, - int nf, int *dtype, - struct pg_tm *tm, fsec_t *fsec, int *tzp); -extern int DecodeInterval(char **field, int *ftype, int nf, int range, - int *dtype, struct pg_itm_in *itm_in); -extern int DecodeISO8601Interval(char *str, - int *dtype, struct pg_itm_in *itm_in); - -extern void DateTimeParseError(int dterr, const char *str, - const char *datatype) pg_attribute_noreturn(); - -extern int DetermineTimeZoneOffset(struct pg_tm *tm, pg_tz *tzp); -extern int DetermineTimeZoneAbbrevOffset(struct pg_tm *tm, const char *abbr, pg_tz *tzp); -extern int DetermineTimeZoneAbbrevOffsetTS(TimestampTz ts, const char *abbr, - pg_tz *tzp, int *isdst); - -extern void EncodeDateOnly(struct pg_tm *tm, int style, char *str); -extern void EncodeTimeOnly(struct pg_tm *tm, fsec_t fsec, bool print_tz, int tz, int style, char *str); -extern void EncodeDateTime(struct pg_tm *tm, fsec_t fsec, bool print_tz, int tz, const char *tzn, int style, char *str); -extern void EncodeInterval(struct pg_itm *itm, int style, char *str); -extern void EncodeSpecialTimestamp(Timestamp dt, char *str); - -extern int ValidateDate(int fmask, bool isjulian, bool is2digits, bool bc, - struct pg_tm *tm); - -extern int DecodeTimezoneAbbrev(int field, char *lowtoken, - int *offset, pg_tz **tz); -extern int DecodeSpecial(int field, char *lowtoken, int *val); -extern int DecodeUnits(int field, char *lowtoken, int *val); - -extern int j2day(int jd); - -extern Node *TemporalSimplify(int32 max_precis, Node *node); - -extern bool CheckDateTokenTables(void); - -extern TimeZoneAbbrevTable *ConvertTimeZoneAbbrevs(struct tzEntry *abbrevs, - int n); -extern void InstallTimeZoneAbbrevs(TimeZoneAbbrevTable *tbl); - -extern void AdjustTimestampForTypmod(Timestamp *time, int32 typmod); -extern bool AdjustTimestampForTypmodError(Timestamp *time, int32 typmod, - bool *error); - -#endif /* DATETIME_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/datum.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/datum.h deleted file mode 100644 index d7de961f3..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/datum.h +++ /dev/null @@ -1,76 +0,0 @@ -/*------------------------------------------------------------------------- - * - * datum.h - * POSTGRES Datum (abstract data type) manipulation routines. - * - * These routines are driven by the 'typbyval' and 'typlen' information, - * which must previously have been obtained by the caller for the datatype - * of the Datum. (We do it this way because in most situations the caller - * can look up the info just once and use it for many per-datum operations.) - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/datum.h - * - *------------------------------------------------------------------------- - */ -#ifndef DATUM_H -#define DATUM_H - -/* - * datumGetSize - find the "real" length of a datum - */ -extern Size datumGetSize(Datum value, bool typByVal, int typLen); - -/* - * datumCopy - make a copy of a non-NULL datum. - * - * If the datatype is pass-by-reference, memory is obtained with palloc(). - */ -extern Datum datumCopy(Datum value, bool typByVal, int typLen); - -/* - * datumTransfer - transfer a non-NULL datum into the current memory context. - * - * Differs from datumCopy() in its handling of read-write expanded objects. - */ -extern Datum datumTransfer(Datum value, bool typByVal, int typLen); - -/* - * datumIsEqual - * return true if two datums of the same type are equal, false otherwise. - * - * XXX : See comments in the code for restrictions! - */ -extern bool datumIsEqual(Datum value1, Datum value2, - bool typByVal, int typLen); - -/* - * datum_image_eq - * - * Compares two datums for identical contents, based on byte images. Return - * true if the two datums are equal, false otherwise. - */ -extern bool datum_image_eq(Datum value1, Datum value2, - bool typByVal, int typLen); - -/* - * datum_image_hash - * - * Generates hash value for 'value' based on its bits rather than logical - * value. - */ -extern uint32 datum_image_hash(Datum value, bool typByVal, int typLen); - -/* - * Serialize and restore datums so that we can transfer them to parallel - * workers. - */ -extern Size datumEstimateSpace(Datum value, bool isnull, bool typByVal, - int typLen); -extern void datumSerialize(Datum value, bool isnull, bool typByVal, - int typLen, char **start_address); -extern Datum datumRestore(char **start_address, bool *isnull); - -#endif /* DATUM_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/dsa.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/dsa.h deleted file mode 100644 index 405606fe2..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/dsa.h +++ /dev/null @@ -1,123 +0,0 @@ -/*------------------------------------------------------------------------- - * - * dsa.h - * Dynamic shared memory areas. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * IDENTIFICATION - * src/include/utils/dsa.h - * - *------------------------------------------------------------------------- - */ -#ifndef DSA_H -#define DSA_H - -#include "port/atomics.h" -#include "storage/dsm.h" - -/* The opaque type used for an area. */ -struct dsa_area; -typedef struct dsa_area dsa_area; - -/* - * If this system only uses a 32-bit value for size_t, then use the 32-bit - * implementation of DSA. This limits the amount of DSA that can be created - * to something significantly less than the entire 4GB address space because - * the DSA pointer must encode both a segment identifier and an offset, but - * that shouldn't be a significant limitation in practice. - * - * If this system doesn't support atomic operations on 64-bit values, then - * we fall back to 32-bit dsa_pointer for lack of other options. - * - * For testing purposes, USE_SMALL_DSA_POINTER can be defined to force the use - * of 32-bit dsa_pointer even on systems capable of supporting a 64-bit - * dsa_pointer. - */ -#if SIZEOF_SIZE_T == 4 || !defined(PG_HAVE_ATOMIC_U64_SUPPORT) || \ - defined(USE_SMALL_DSA_POINTER) -#define SIZEOF_DSA_POINTER 4 -#else -#define SIZEOF_DSA_POINTER 8 -#endif - -/* - * The type of 'relative pointers' to memory allocated by a dynamic shared - * area. dsa_pointer values can be shared with other processes, but must be - * converted to backend-local pointers before they can be dereferenced. See - * dsa_get_address. Also, an atomic version and appropriately sized atomic - * operations. - */ -#if SIZEOF_DSA_POINTER == 4 -typedef uint32 dsa_pointer; -typedef pg_atomic_uint32 dsa_pointer_atomic; -#define dsa_pointer_atomic_init pg_atomic_init_u32 -#define dsa_pointer_atomic_read pg_atomic_read_u32 -#define dsa_pointer_atomic_write pg_atomic_write_u32 -#define dsa_pointer_atomic_fetch_add pg_atomic_fetch_add_u32 -#define dsa_pointer_atomic_compare_exchange pg_atomic_compare_exchange_u32 -#define DSA_POINTER_FORMAT "%08x" -#else -typedef uint64 dsa_pointer; -typedef pg_atomic_uint64 dsa_pointer_atomic; -#define dsa_pointer_atomic_init pg_atomic_init_u64 -#define dsa_pointer_atomic_read pg_atomic_read_u64 -#define dsa_pointer_atomic_write pg_atomic_write_u64 -#define dsa_pointer_atomic_fetch_add pg_atomic_fetch_add_u64 -#define dsa_pointer_atomic_compare_exchange pg_atomic_compare_exchange_u64 -#define DSA_POINTER_FORMAT "%016" INT64_MODIFIER "x" -#endif - -/* Flags for dsa_allocate_extended. */ -#define DSA_ALLOC_HUGE 0x01 /* allow huge allocation (> 1 GB) */ -#define DSA_ALLOC_NO_OOM 0x02 /* no failure if out-of-memory */ -#define DSA_ALLOC_ZERO 0x04 /* zero allocated memory */ - -/* A sentinel value for dsa_pointer used to indicate failure to allocate. */ -#define InvalidDsaPointer ((dsa_pointer) 0) - -/* Check if a dsa_pointer value is valid. */ -#define DsaPointerIsValid(x) ((x) != InvalidDsaPointer) - -/* Allocate uninitialized memory with error on out-of-memory. */ -#define dsa_allocate(area, size) \ - dsa_allocate_extended(area, size, 0) - -/* Allocate zero-initialized memory with error on out-of-memory. */ -#define dsa_allocate0(area, size) \ - dsa_allocate_extended(area, size, DSA_ALLOC_ZERO) - -/* - * The type used for dsa_area handles. dsa_handle values can be shared with - * other processes, so that they can attach to them. This provides a way to - * share allocated storage with other processes. - * - * The handle for a dsa_area is currently implemented as the dsm_handle - * for the first DSM segment backing this dynamic storage area, but client - * code shouldn't assume that is true. - */ -typedef dsm_handle dsa_handle; - -extern dsa_area *dsa_create(int tranche_id); -extern dsa_area *dsa_create_in_place(void *place, size_t size, - int tranche_id, dsm_segment *segment); -extern dsa_area *dsa_attach(dsa_handle handle); -extern dsa_area *dsa_attach_in_place(void *place, dsm_segment *segment); -extern void dsa_release_in_place(void *place); -extern void dsa_on_dsm_detach_release_in_place(dsm_segment *, Datum); -extern void dsa_on_shmem_exit_release_in_place(int, Datum); -extern void dsa_pin_mapping(dsa_area *area); -extern void dsa_detach(dsa_area *area); -extern void dsa_pin(dsa_area *area); -extern void dsa_unpin(dsa_area *area); -extern void dsa_set_size_limit(dsa_area *area, size_t limit); -extern size_t dsa_minimum_size(void); -extern dsa_handle dsa_get_handle(dsa_area *area); -extern dsa_pointer dsa_allocate_extended(dsa_area *area, size_t size, int flags); -extern void dsa_free(dsa_area *area, dsa_pointer dp); -extern void *dsa_get_address(dsa_area *area, dsa_pointer dp); -extern void dsa_trim(dsa_area *area); -extern void dsa_dump(dsa_area *area); - -#endif /* DSA_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/dynahash.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/dynahash.h deleted file mode 100644 index 4564fb246..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/dynahash.h +++ /dev/null @@ -1,20 +0,0 @@ -/*------------------------------------------------------------------------- - * - * dynahash.h - * POSTGRES dynahash.h file definitions - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * IDENTIFICATION - * src/include/utils/dynahash.h - * - *------------------------------------------------------------------------- - */ -#ifndef DYNAHASH_H -#define DYNAHASH_H - -extern int my_log2(long num); - -#endif /* DYNAHASH_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/elog.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/elog.h deleted file mode 100644 index 9cfad3d53..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/elog.h +++ /dev/null @@ -1,470 +0,0 @@ -/*------------------------------------------------------------------------- - * - * elog.h - * POSTGRES error reporting/logging definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/elog.h - * - *------------------------------------------------------------------------- - */ -#ifndef ELOG_H -#define ELOG_H - -#include - -/* Error level codes */ -#define DEBUG5 10 /* Debugging messages, in categories of - * decreasing detail. */ -#define DEBUG4 11 -#define DEBUG3 12 -#define DEBUG2 13 -#define DEBUG1 14 /* used by GUC debug_* variables */ -#define LOG 15 /* Server operational messages; sent only to - * server log by default. */ -#define LOG_SERVER_ONLY 16 /* Same as LOG for server reporting, but never - * sent to client. */ -#define COMMERROR LOG_SERVER_ONLY /* Client communication problems; same as - * LOG for server reporting, but never - * sent to client. */ -#define INFO 17 /* Messages specifically requested by user (eg - * VACUUM VERBOSE output); always sent to - * client regardless of client_min_messages, - * but by default not sent to server log. */ -#define NOTICE 18 /* Helpful messages to users about query - * operation; sent to client and not to server - * log by default. */ -#define WARNING 19 /* Warnings. NOTICE is for expected messages - * like implicit sequence creation by SERIAL. - * WARNING is for unexpected messages. */ -#define PGWARNING 19 /* Must equal WARNING; see NOTE below. */ -#define WARNING_CLIENT_ONLY 20 /* Warnings to be sent to client as usual, but - * never to the server log. */ -#define ERROR 21 /* user error - abort transaction; return to - * known state */ -#define PGERROR 21 /* Must equal ERROR; see NOTE below. */ -#define FATAL 22 /* fatal error - abort process */ -#define PANIC 23 /* take down the other backends with me */ - -/* - * NOTE: the alternate names PGWARNING and PGERROR are useful for dealing - * with third-party headers that make other definitions of WARNING and/or - * ERROR. One can, for example, re-define ERROR as PGERROR after including - * such a header. - */ - - -/* macros for representing SQLSTATE strings compactly */ -#define PGSIXBIT(ch) (((ch) - '0') & 0x3F) -#define PGUNSIXBIT(val) (((val) & 0x3F) + '0') - -#define MAKE_SQLSTATE(ch1,ch2,ch3,ch4,ch5) \ - (PGSIXBIT(ch1) + (PGSIXBIT(ch2) << 6) + (PGSIXBIT(ch3) << 12) + \ - (PGSIXBIT(ch4) << 18) + (PGSIXBIT(ch5) << 24)) - -/* These macros depend on the fact that '0' becomes a zero in PGSIXBIT */ -#define ERRCODE_TO_CATEGORY(ec) ((ec) & ((1 << 12) - 1)) -#define ERRCODE_IS_CATEGORY(ec) (((ec) & ~((1 << 12) - 1)) == 0) - -/* SQLSTATE codes for errors are defined in a separate file */ -#include "utils/errcodes.h" - -/* - * Provide a way to prevent "errno" from being accidentally used inside an - * elog() or ereport() invocation. Since we know that some operating systems - * define errno as something involving a function call, we'll put a local - * variable of the same name as that function in the local scope to force a - * compile error. On platforms that don't define errno in that way, nothing - * happens, so we get no warning ... but we can live with that as long as it - * happens on some popular platforms. - */ -#if defined(errno) && defined(__linux__) -#define pg_prevent_errno_in_scope() int __errno_location pg_attribute_unused() -#elif defined(errno) && (defined(__darwin__) || defined(__freebsd__)) -#define pg_prevent_errno_in_scope() int __error pg_attribute_unused() -#else -#define pg_prevent_errno_in_scope() -#endif - - -/*---------- - * New-style error reporting API: to be used in this way: - * ereport(ERROR, - * errcode(ERRCODE_UNDEFINED_CURSOR), - * errmsg("portal \"%s\" not found", stmt->portalname), - * ... other errxxx() fields as needed ...); - * - * The error level is required, and so is a primary error message (errmsg - * or errmsg_internal). All else is optional. errcode() defaults to - * ERRCODE_INTERNAL_ERROR if elevel is ERROR or more, ERRCODE_WARNING - * if elevel is WARNING, or ERRCODE_SUCCESSFUL_COMPLETION if elevel is - * NOTICE or below. - * - * Before Postgres v12, extra parentheses were required around the - * list of auxiliary function calls; that's now optional. - * - * ereport_domain() allows a message domain to be specified, for modules that - * wish to use a different message catalog from the backend's. To avoid having - * one copy of the default text domain per .o file, we define it as NULL here - * and have errstart insert the default text domain. Modules can either use - * ereport_domain() directly, or preferably they can override the TEXTDOMAIN - * macro. - * - * When __builtin_constant_p is available and elevel >= ERROR we make a call - * to errstart_cold() instead of errstart(). This version of the function is - * marked with pg_attribute_cold which will coax supporting compilers into - * generating code which is more optimized towards non-ERROR cases. Because - * we use __builtin_constant_p() in the condition, when elevel is not a - * compile-time constant, or if it is, but it's < ERROR, the compiler has no - * need to generate any code for this branch. It can simply call errstart() - * unconditionally. - * - * If elevel >= ERROR, the call will not return; we try to inform the compiler - * of that via pg_unreachable(). However, no useful optimization effect is - * obtained unless the compiler sees elevel as a compile-time constant, else - * we're just adding code bloat. So, if __builtin_constant_p is available, - * use that to cause the second if() to vanish completely for non-constant - * cases. We avoid using a local variable because it's not necessary and - * prevents gcc from making the unreachability deduction at optlevel -O0. - *---------- - */ -#ifdef HAVE__BUILTIN_CONSTANT_P -#define ereport_domain(elevel, domain, ...) \ - do { \ - pg_prevent_errno_in_scope(); \ - if (__builtin_constant_p(elevel) && (elevel) >= ERROR ? \ - errstart_cold(elevel, domain) : \ - errstart(elevel, domain)) \ - __VA_ARGS__, errfinish(__FILE__, __LINE__, PG_FUNCNAME_MACRO); \ - if (__builtin_constant_p(elevel) && (elevel) >= ERROR) \ - pg_unreachable(); \ - } while(0) -#else /* !HAVE__BUILTIN_CONSTANT_P */ -#define ereport_domain(elevel, domain, ...) \ - do { \ - const int elevel_ = (elevel); \ - pg_prevent_errno_in_scope(); \ - if (errstart(elevel_, domain)) \ - __VA_ARGS__, errfinish(__FILE__, __LINE__, PG_FUNCNAME_MACRO); \ - if (elevel_ >= ERROR) \ - pg_unreachable(); \ - } while(0) -#endif /* HAVE__BUILTIN_CONSTANT_P */ - -#define ereport(elevel, ...) \ - ereport_domain(elevel, TEXTDOMAIN, __VA_ARGS__) - -#define TEXTDOMAIN NULL - -extern bool message_level_is_interesting(int elevel); - -extern bool errstart(int elevel, const char *domain); -extern pg_attribute_cold bool errstart_cold(int elevel, const char *domain); -extern void errfinish(const char *filename, int lineno, const char *funcname); - -extern int errcode(int sqlerrcode); - -extern int errcode_for_file_access(void); -extern int errcode_for_socket_access(void); - -extern int errmsg(const char *fmt,...) pg_attribute_printf(1, 2); -extern int errmsg_internal(const char *fmt,...) pg_attribute_printf(1, 2); - -extern int errmsg_plural(const char *fmt_singular, const char *fmt_plural, - unsigned long n,...) pg_attribute_printf(1, 4) pg_attribute_printf(2, 4); - -extern int errdetail(const char *fmt,...) pg_attribute_printf(1, 2); -extern int errdetail_internal(const char *fmt,...) pg_attribute_printf(1, 2); - -extern int errdetail_log(const char *fmt,...) pg_attribute_printf(1, 2); - -extern int errdetail_log_plural(const char *fmt_singular, - const char *fmt_plural, - unsigned long n,...) pg_attribute_printf(1, 4) pg_attribute_printf(2, 4); - -extern int errdetail_plural(const char *fmt_singular, const char *fmt_plural, - unsigned long n,...) pg_attribute_printf(1, 4) pg_attribute_printf(2, 4); - -extern int errhint(const char *fmt,...) pg_attribute_printf(1, 2); - -extern int errhint_plural(const char *fmt_singular, const char *fmt_plural, - unsigned long n,...) pg_attribute_printf(1, 4) pg_attribute_printf(2, 4); - -/* - * errcontext() is typically called in error context callback functions, not - * within an ereport() invocation. The callback function can be in a different - * module than the ereport() call, so the message domain passed in errstart() - * is not usually the correct domain for translating the context message. - * set_errcontext_domain() first sets the domain to be used, and - * errcontext_msg() passes the actual message. - */ -#define errcontext set_errcontext_domain(TEXTDOMAIN), errcontext_msg - -extern int set_errcontext_domain(const char *domain); - -extern int errcontext_msg(const char *fmt,...) pg_attribute_printf(1, 2); - -extern int errhidestmt(bool hide_stmt); -extern int errhidecontext(bool hide_ctx); - -extern int errbacktrace(void); - -extern int errposition(int cursorpos); - -extern int internalerrposition(int cursorpos); -extern int internalerrquery(const char *query); - -extern int err_generic_string(int field, const char *str); - -extern int geterrcode(void); -extern int geterrposition(void); -extern int getinternalerrposition(void); - - -/*---------- - * Old-style error reporting API: to be used in this way: - * elog(ERROR, "portal \"%s\" not found", stmt->portalname); - *---------- - */ -#define elog(elevel, ...) \ - ereport(elevel, errmsg_internal(__VA_ARGS__)) - - -/* Support for constructing error strings separately from ereport() calls */ - -extern void pre_format_elog_string(int errnumber, const char *domain); -extern char *format_elog_string(const char *fmt,...) pg_attribute_printf(1, 2); - - -/* Support for attaching context information to error reports */ - -typedef struct ErrorContextCallback -{ - struct ErrorContextCallback *previous; - void (*callback) (void *arg); - void *arg; -} ErrorContextCallback; - -extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack; - - -/*---------- - * API for catching ereport(ERROR) exits. Use these macros like so: - * - * PG_TRY(); - * { - * ... code that might throw ereport(ERROR) ... - * } - * PG_CATCH(); - * { - * ... error recovery code ... - * } - * PG_END_TRY(); - * - * (The braces are not actually necessary, but are recommended so that - * pgindent will indent the construct nicely.) The error recovery code - * can either do PG_RE_THROW to propagate the error outwards, or do a - * (sub)transaction abort. Failure to do so may leave the system in an - * inconsistent state for further processing. - * - * For the common case that the error recovery code and the cleanup in the - * normal code path are identical, the following can be used instead: - * - * PG_TRY(); - * { - * ... code that might throw ereport(ERROR) ... - * } - * PG_FINALLY(); - * { - * ... cleanup code ... - * } - * PG_END_TRY(); - * - * The cleanup code will be run in either case, and any error will be rethrown - * afterwards. - * - * You cannot use both PG_CATCH() and PG_FINALLY() in the same - * PG_TRY()/PG_END_TRY() block. - * - * Note: while the system will correctly propagate any new ereport(ERROR) - * occurring in the recovery section, there is a small limit on the number - * of levels this will work for. It's best to keep the error recovery - * section simple enough that it can't generate any new errors, at least - * not before popping the error stack. - * - * Note: an ereport(FATAL) will not be caught by this construct; control will - * exit straight through proc_exit(). Therefore, do NOT put any cleanup - * of non-process-local resources into the error recovery section, at least - * not without taking thought for what will happen during ereport(FATAL). - * The PG_ENSURE_ERROR_CLEANUP macros provided by storage/ipc.h may be - * helpful in such cases. - * - * Note: if a local variable of the function containing PG_TRY is modified - * in the PG_TRY section and used in the PG_CATCH section, that variable - * must be declared "volatile" for POSIX compliance. This is not mere - * pedantry; we have seen bugs from compilers improperly optimizing code - * away when such a variable was not marked. Beware that gcc's -Wclobbered - * warnings are just about entirely useless for catching such oversights. - *---------- - */ -#define PG_TRY() \ - do { \ - sigjmp_buf *_save_exception_stack = PG_exception_stack; \ - ErrorContextCallback *_save_context_stack = error_context_stack; \ - sigjmp_buf _local_sigjmp_buf; \ - bool _do_rethrow = false; \ - if (sigsetjmp(_local_sigjmp_buf, 0) == 0) \ - { \ - PG_exception_stack = &_local_sigjmp_buf - -#define PG_CATCH() \ - } \ - else \ - { \ - PG_exception_stack = _save_exception_stack; \ - error_context_stack = _save_context_stack - -#define PG_FINALLY() \ - } \ - else \ - _do_rethrow = true; \ - { \ - PG_exception_stack = _save_exception_stack; \ - error_context_stack = _save_context_stack - -#define PG_END_TRY() \ - } \ - if (_do_rethrow) \ - PG_RE_THROW(); \ - PG_exception_stack = _save_exception_stack; \ - error_context_stack = _save_context_stack; \ - } while (0) - -/* - * Some compilers understand pg_attribute_noreturn(); for other compilers, - * insert pg_unreachable() so that the compiler gets the point. - */ -#ifdef HAVE_PG_ATTRIBUTE_NORETURN -#define PG_RE_THROW() \ - pg_re_throw() -#else -#define PG_RE_THROW() \ - (pg_re_throw(), pg_unreachable()) -#endif - -extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack; - - -/* Stuff that error handlers might want to use */ - -/* - * ErrorData holds the data accumulated during any one ereport() cycle. - * Any non-NULL pointers must point to palloc'd data. - * (The const pointers are an exception; we assume they point at non-freeable - * constant strings.) - */ -typedef struct ErrorData -{ - int elevel; /* error level */ - bool output_to_server; /* will report to server log? */ - bool output_to_client; /* will report to client? */ - bool hide_stmt; /* true to prevent STATEMENT: inclusion */ - bool hide_ctx; /* true to prevent CONTEXT: inclusion */ - const char *filename; /* __FILE__ of ereport() call */ - int lineno; /* __LINE__ of ereport() call */ - const char *funcname; /* __func__ of ereport() call */ - const char *domain; /* message domain */ - const char *context_domain; /* message domain for context message */ - int sqlerrcode; /* encoded ERRSTATE */ - char *message; /* primary error message (translated) */ - char *detail; /* detail error message */ - char *detail_log; /* detail error message for server log only */ - char *hint; /* hint message */ - char *context; /* context message */ - char *backtrace; /* backtrace */ - const char *message_id; /* primary message's id (original string) */ - char *schema_name; /* name of schema */ - char *table_name; /* name of table */ - char *column_name; /* name of column */ - char *datatype_name; /* name of datatype */ - char *constraint_name; /* name of constraint */ - int cursorpos; /* cursor index into query string */ - int internalpos; /* cursor index into internalquery */ - char *internalquery; /* text of internally-generated query */ - int saved_errno; /* errno at entry */ - - /* context containing associated non-constant strings */ - struct MemoryContextData *assoc_context; -} ErrorData; - -extern void EmitErrorReport(void); -extern ErrorData *CopyErrorData(void); -extern void FreeErrorData(ErrorData *edata); -extern void FlushErrorState(void); -extern void ReThrowError(ErrorData *edata) pg_attribute_noreturn(); -extern void ThrowErrorData(ErrorData *edata); -extern void pg_re_throw(void) pg_attribute_noreturn(); - -extern char *GetErrorContextStack(void); - -/* Hook for intercepting messages before they are sent to the server log */ -typedef void (*emit_log_hook_type) (ErrorData *edata); -extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook; - - -/* GUC-configurable parameters */ - -typedef enum -{ - PGERROR_TERSE, /* single-line error messages */ - PGERROR_DEFAULT, /* recommended style */ - PGERROR_VERBOSE /* all the facts, ma'am */ -} PGErrorVerbosity; - -extern PGDLLIMPORT int Log_error_verbosity; -extern PGDLLIMPORT char *Log_line_prefix; -extern PGDLLIMPORT int Log_destination; -extern PGDLLIMPORT char *Log_destination_string; -extern PGDLLIMPORT bool syslog_sequence_numbers; -extern PGDLLIMPORT bool syslog_split_messages; - -/* Log destination bitmap */ -#define LOG_DESTINATION_STDERR 1 -#define LOG_DESTINATION_SYSLOG 2 -#define LOG_DESTINATION_EVENTLOG 4 -#define LOG_DESTINATION_CSVLOG 8 -#define LOG_DESTINATION_JSONLOG 16 - -/* Other exported functions */ -extern void DebugFileOpen(void); -extern char *unpack_sql_state(int sql_state); -extern bool in_error_recursion_trouble(void); - -/* Common functions shared across destinations */ -extern void reset_formatted_start_time(void); -extern char *get_formatted_start_time(void); -extern char *get_formatted_log_time(void); -extern const char *get_backend_type_for_log(void); -extern bool check_log_of_query(ErrorData *edata); -extern const char *error_severity(int elevel); -extern void write_pipe_chunks(char *data, int len, int dest); - -/* Destination-specific functions */ -extern void write_csvlog(ErrorData *edata); -extern void write_jsonlog(ErrorData *edata); - -#ifdef HAVE_SYSLOG -extern void set_syslog_parameters(const char *ident, int facility); -#endif - -/* - * Write errors to stderr (or by equal means when stderr is - * not available). Used before ereport/elog can be used - * safely (memory context, GUC load etc) - */ -extern void write_stderr(const char *fmt,...) pg_attribute_printf(1, 2); - -#endif /* ELOG_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/errcodes.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/errcodes.h deleted file mode 100644 index a2f604c2f..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/errcodes.h +++ /dev/null @@ -1,354 +0,0 @@ -/* autogenerated from src/backend/utils/errcodes.txt, do not edit */ -/* there is deliberately not an #ifndef ERRCODES_H here */ - -/* Class 00 - Successful Completion */ -#define ERRCODE_SUCCESSFUL_COMPLETION MAKE_SQLSTATE('0','0','0','0','0') - -/* Class 01 - Warning */ -#define ERRCODE_WARNING MAKE_SQLSTATE('0','1','0','0','0') -#define ERRCODE_WARNING_DYNAMIC_RESULT_SETS_RETURNED MAKE_SQLSTATE('0','1','0','0','C') -#define ERRCODE_WARNING_IMPLICIT_ZERO_BIT_PADDING MAKE_SQLSTATE('0','1','0','0','8') -#define ERRCODE_WARNING_NULL_VALUE_ELIMINATED_IN_SET_FUNCTION MAKE_SQLSTATE('0','1','0','0','3') -#define ERRCODE_WARNING_PRIVILEGE_NOT_GRANTED MAKE_SQLSTATE('0','1','0','0','7') -#define ERRCODE_WARNING_PRIVILEGE_NOT_REVOKED MAKE_SQLSTATE('0','1','0','0','6') -#define ERRCODE_WARNING_STRING_DATA_RIGHT_TRUNCATION MAKE_SQLSTATE('0','1','0','0','4') -#define ERRCODE_WARNING_DEPRECATED_FEATURE MAKE_SQLSTATE('0','1','P','0','1') - -/* Class 02 - No Data (this is also a warning class per the SQL standard) */ -#define ERRCODE_NO_DATA MAKE_SQLSTATE('0','2','0','0','0') -#define ERRCODE_NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED MAKE_SQLSTATE('0','2','0','0','1') - -/* Class 03 - SQL Statement Not Yet Complete */ -#define ERRCODE_SQL_STATEMENT_NOT_YET_COMPLETE MAKE_SQLSTATE('0','3','0','0','0') - -/* Class 08 - Connection Exception */ -#define ERRCODE_CONNECTION_EXCEPTION MAKE_SQLSTATE('0','8','0','0','0') -#define ERRCODE_CONNECTION_DOES_NOT_EXIST MAKE_SQLSTATE('0','8','0','0','3') -#define ERRCODE_CONNECTION_FAILURE MAKE_SQLSTATE('0','8','0','0','6') -#define ERRCODE_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION MAKE_SQLSTATE('0','8','0','0','1') -#define ERRCODE_SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION MAKE_SQLSTATE('0','8','0','0','4') -#define ERRCODE_TRANSACTION_RESOLUTION_UNKNOWN MAKE_SQLSTATE('0','8','0','0','7') -#define ERRCODE_PROTOCOL_VIOLATION MAKE_SQLSTATE('0','8','P','0','1') - -/* Class 09 - Triggered Action Exception */ -#define ERRCODE_TRIGGERED_ACTION_EXCEPTION MAKE_SQLSTATE('0','9','0','0','0') - -/* Class 0A - Feature Not Supported */ -#define ERRCODE_FEATURE_NOT_SUPPORTED MAKE_SQLSTATE('0','A','0','0','0') - -/* Class 0B - Invalid Transaction Initiation */ -#define ERRCODE_INVALID_TRANSACTION_INITIATION MAKE_SQLSTATE('0','B','0','0','0') - -/* Class 0F - Locator Exception */ -#define ERRCODE_LOCATOR_EXCEPTION MAKE_SQLSTATE('0','F','0','0','0') -#define ERRCODE_L_E_INVALID_SPECIFICATION MAKE_SQLSTATE('0','F','0','0','1') - -/* Class 0L - Invalid Grantor */ -#define ERRCODE_INVALID_GRANTOR MAKE_SQLSTATE('0','L','0','0','0') -#define ERRCODE_INVALID_GRANT_OPERATION MAKE_SQLSTATE('0','L','P','0','1') - -/* Class 0P - Invalid Role Specification */ -#define ERRCODE_INVALID_ROLE_SPECIFICATION MAKE_SQLSTATE('0','P','0','0','0') - -/* Class 0Z - Diagnostics Exception */ -#define ERRCODE_DIAGNOSTICS_EXCEPTION MAKE_SQLSTATE('0','Z','0','0','0') -#define ERRCODE_STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER MAKE_SQLSTATE('0','Z','0','0','2') - -/* Class 20 - Case Not Found */ -#define ERRCODE_CASE_NOT_FOUND MAKE_SQLSTATE('2','0','0','0','0') - -/* Class 21 - Cardinality Violation */ -#define ERRCODE_CARDINALITY_VIOLATION MAKE_SQLSTATE('2','1','0','0','0') - -/* Class 22 - Data Exception */ -#define ERRCODE_DATA_EXCEPTION MAKE_SQLSTATE('2','2','0','0','0') -#define ERRCODE_ARRAY_ELEMENT_ERROR MAKE_SQLSTATE('2','2','0','2','E') -#define ERRCODE_ARRAY_SUBSCRIPT_ERROR MAKE_SQLSTATE('2','2','0','2','E') -#define ERRCODE_CHARACTER_NOT_IN_REPERTOIRE MAKE_SQLSTATE('2','2','0','2','1') -#define ERRCODE_DATETIME_FIELD_OVERFLOW MAKE_SQLSTATE('2','2','0','0','8') -#define ERRCODE_DATETIME_VALUE_OUT_OF_RANGE MAKE_SQLSTATE('2','2','0','0','8') -#define ERRCODE_DIVISION_BY_ZERO MAKE_SQLSTATE('2','2','0','1','2') -#define ERRCODE_ERROR_IN_ASSIGNMENT MAKE_SQLSTATE('2','2','0','0','5') -#define ERRCODE_ESCAPE_CHARACTER_CONFLICT MAKE_SQLSTATE('2','2','0','0','B') -#define ERRCODE_INDICATOR_OVERFLOW MAKE_SQLSTATE('2','2','0','2','2') -#define ERRCODE_INTERVAL_FIELD_OVERFLOW MAKE_SQLSTATE('2','2','0','1','5') -#define ERRCODE_INVALID_ARGUMENT_FOR_LOG MAKE_SQLSTATE('2','2','0','1','E') -#define ERRCODE_INVALID_ARGUMENT_FOR_NTILE MAKE_SQLSTATE('2','2','0','1','4') -#define ERRCODE_INVALID_ARGUMENT_FOR_NTH_VALUE MAKE_SQLSTATE('2','2','0','1','6') -#define ERRCODE_INVALID_ARGUMENT_FOR_POWER_FUNCTION MAKE_SQLSTATE('2','2','0','1','F') -#define ERRCODE_INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION MAKE_SQLSTATE('2','2','0','1','G') -#define ERRCODE_INVALID_CHARACTER_VALUE_FOR_CAST MAKE_SQLSTATE('2','2','0','1','8') -#define ERRCODE_INVALID_DATETIME_FORMAT MAKE_SQLSTATE('2','2','0','0','7') -#define ERRCODE_INVALID_ESCAPE_CHARACTER MAKE_SQLSTATE('2','2','0','1','9') -#define ERRCODE_INVALID_ESCAPE_OCTET MAKE_SQLSTATE('2','2','0','0','D') -#define ERRCODE_INVALID_ESCAPE_SEQUENCE MAKE_SQLSTATE('2','2','0','2','5') -#define ERRCODE_NONSTANDARD_USE_OF_ESCAPE_CHARACTER MAKE_SQLSTATE('2','2','P','0','6') -#define ERRCODE_INVALID_INDICATOR_PARAMETER_VALUE MAKE_SQLSTATE('2','2','0','1','0') -#define ERRCODE_INVALID_PARAMETER_VALUE MAKE_SQLSTATE('2','2','0','2','3') -#define ERRCODE_INVALID_PRECEDING_OR_FOLLOWING_SIZE MAKE_SQLSTATE('2','2','0','1','3') -#define ERRCODE_INVALID_REGULAR_EXPRESSION MAKE_SQLSTATE('2','2','0','1','B') -#define ERRCODE_INVALID_ROW_COUNT_IN_LIMIT_CLAUSE MAKE_SQLSTATE('2','2','0','1','W') -#define ERRCODE_INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE MAKE_SQLSTATE('2','2','0','1','X') -#define ERRCODE_INVALID_TABLESAMPLE_ARGUMENT MAKE_SQLSTATE('2','2','0','2','H') -#define ERRCODE_INVALID_TABLESAMPLE_REPEAT MAKE_SQLSTATE('2','2','0','2','G') -#define ERRCODE_INVALID_TIME_ZONE_DISPLACEMENT_VALUE MAKE_SQLSTATE('2','2','0','0','9') -#define ERRCODE_INVALID_USE_OF_ESCAPE_CHARACTER MAKE_SQLSTATE('2','2','0','0','C') -#define ERRCODE_MOST_SPECIFIC_TYPE_MISMATCH MAKE_SQLSTATE('2','2','0','0','G') -#define ERRCODE_NULL_VALUE_NOT_ALLOWED MAKE_SQLSTATE('2','2','0','0','4') -#define ERRCODE_NULL_VALUE_NO_INDICATOR_PARAMETER MAKE_SQLSTATE('2','2','0','0','2') -#define ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE MAKE_SQLSTATE('2','2','0','0','3') -#define ERRCODE_SEQUENCE_GENERATOR_LIMIT_EXCEEDED MAKE_SQLSTATE('2','2','0','0','H') -#define ERRCODE_STRING_DATA_LENGTH_MISMATCH MAKE_SQLSTATE('2','2','0','2','6') -#define ERRCODE_STRING_DATA_RIGHT_TRUNCATION MAKE_SQLSTATE('2','2','0','0','1') -#define ERRCODE_SUBSTRING_ERROR MAKE_SQLSTATE('2','2','0','1','1') -#define ERRCODE_TRIM_ERROR MAKE_SQLSTATE('2','2','0','2','7') -#define ERRCODE_UNTERMINATED_C_STRING MAKE_SQLSTATE('2','2','0','2','4') -#define ERRCODE_ZERO_LENGTH_CHARACTER_STRING MAKE_SQLSTATE('2','2','0','0','F') -#define ERRCODE_FLOATING_POINT_EXCEPTION MAKE_SQLSTATE('2','2','P','0','1') -#define ERRCODE_INVALID_TEXT_REPRESENTATION MAKE_SQLSTATE('2','2','P','0','2') -#define ERRCODE_INVALID_BINARY_REPRESENTATION MAKE_SQLSTATE('2','2','P','0','3') -#define ERRCODE_BAD_COPY_FILE_FORMAT MAKE_SQLSTATE('2','2','P','0','4') -#define ERRCODE_UNTRANSLATABLE_CHARACTER MAKE_SQLSTATE('2','2','P','0','5') -#define ERRCODE_NOT_AN_XML_DOCUMENT MAKE_SQLSTATE('2','2','0','0','L') -#define ERRCODE_INVALID_XML_DOCUMENT MAKE_SQLSTATE('2','2','0','0','M') -#define ERRCODE_INVALID_XML_CONTENT MAKE_SQLSTATE('2','2','0','0','N') -#define ERRCODE_INVALID_XML_COMMENT MAKE_SQLSTATE('2','2','0','0','S') -#define ERRCODE_INVALID_XML_PROCESSING_INSTRUCTION MAKE_SQLSTATE('2','2','0','0','T') -#define ERRCODE_DUPLICATE_JSON_OBJECT_KEY_VALUE MAKE_SQLSTATE('2','2','0','3','0') -#define ERRCODE_INVALID_ARGUMENT_FOR_SQL_JSON_DATETIME_FUNCTION MAKE_SQLSTATE('2','2','0','3','1') -#define ERRCODE_INVALID_JSON_TEXT MAKE_SQLSTATE('2','2','0','3','2') -#define ERRCODE_INVALID_SQL_JSON_SUBSCRIPT MAKE_SQLSTATE('2','2','0','3','3') -#define ERRCODE_MORE_THAN_ONE_SQL_JSON_ITEM MAKE_SQLSTATE('2','2','0','3','4') -#define ERRCODE_NO_SQL_JSON_ITEM MAKE_SQLSTATE('2','2','0','3','5') -#define ERRCODE_NON_NUMERIC_SQL_JSON_ITEM MAKE_SQLSTATE('2','2','0','3','6') -#define ERRCODE_NON_UNIQUE_KEYS_IN_A_JSON_OBJECT MAKE_SQLSTATE('2','2','0','3','7') -#define ERRCODE_SINGLETON_SQL_JSON_ITEM_REQUIRED MAKE_SQLSTATE('2','2','0','3','8') -#define ERRCODE_SQL_JSON_ARRAY_NOT_FOUND MAKE_SQLSTATE('2','2','0','3','9') -#define ERRCODE_SQL_JSON_MEMBER_NOT_FOUND MAKE_SQLSTATE('2','2','0','3','A') -#define ERRCODE_SQL_JSON_NUMBER_NOT_FOUND MAKE_SQLSTATE('2','2','0','3','B') -#define ERRCODE_SQL_JSON_OBJECT_NOT_FOUND MAKE_SQLSTATE('2','2','0','3','C') -#define ERRCODE_TOO_MANY_JSON_ARRAY_ELEMENTS MAKE_SQLSTATE('2','2','0','3','D') -#define ERRCODE_TOO_MANY_JSON_OBJECT_MEMBERS MAKE_SQLSTATE('2','2','0','3','E') -#define ERRCODE_SQL_JSON_SCALAR_REQUIRED MAKE_SQLSTATE('2','2','0','3','F') -#define ERRCODE_SQL_JSON_ITEM_CANNOT_BE_CAST_TO_TARGET_TYPE MAKE_SQLSTATE('2','2','0','3','G') - -/* Class 23 - Integrity Constraint Violation */ -#define ERRCODE_INTEGRITY_CONSTRAINT_VIOLATION MAKE_SQLSTATE('2','3','0','0','0') -#define ERRCODE_RESTRICT_VIOLATION MAKE_SQLSTATE('2','3','0','0','1') -#define ERRCODE_NOT_NULL_VIOLATION MAKE_SQLSTATE('2','3','5','0','2') -#define ERRCODE_FOREIGN_KEY_VIOLATION MAKE_SQLSTATE('2','3','5','0','3') -#define ERRCODE_UNIQUE_VIOLATION MAKE_SQLSTATE('2','3','5','0','5') -#define ERRCODE_CHECK_VIOLATION MAKE_SQLSTATE('2','3','5','1','4') -#define ERRCODE_EXCLUSION_VIOLATION MAKE_SQLSTATE('2','3','P','0','1') - -/* Class 24 - Invalid Cursor State */ -#define ERRCODE_INVALID_CURSOR_STATE MAKE_SQLSTATE('2','4','0','0','0') - -/* Class 25 - Invalid Transaction State */ -#define ERRCODE_INVALID_TRANSACTION_STATE MAKE_SQLSTATE('2','5','0','0','0') -#define ERRCODE_ACTIVE_SQL_TRANSACTION MAKE_SQLSTATE('2','5','0','0','1') -#define ERRCODE_BRANCH_TRANSACTION_ALREADY_ACTIVE MAKE_SQLSTATE('2','5','0','0','2') -#define ERRCODE_HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL MAKE_SQLSTATE('2','5','0','0','8') -#define ERRCODE_INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION MAKE_SQLSTATE('2','5','0','0','3') -#define ERRCODE_INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION MAKE_SQLSTATE('2','5','0','0','4') -#define ERRCODE_NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION MAKE_SQLSTATE('2','5','0','0','5') -#define ERRCODE_READ_ONLY_SQL_TRANSACTION MAKE_SQLSTATE('2','5','0','0','6') -#define ERRCODE_SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED MAKE_SQLSTATE('2','5','0','0','7') -#define ERRCODE_NO_ACTIVE_SQL_TRANSACTION MAKE_SQLSTATE('2','5','P','0','1') -#define ERRCODE_IN_FAILED_SQL_TRANSACTION MAKE_SQLSTATE('2','5','P','0','2') -#define ERRCODE_IDLE_IN_TRANSACTION_SESSION_TIMEOUT MAKE_SQLSTATE('2','5','P','0','3') - -/* Class 26 - Invalid SQL Statement Name */ -#define ERRCODE_INVALID_SQL_STATEMENT_NAME MAKE_SQLSTATE('2','6','0','0','0') - -/* Class 27 - Triggered Data Change Violation */ -#define ERRCODE_TRIGGERED_DATA_CHANGE_VIOLATION MAKE_SQLSTATE('2','7','0','0','0') - -/* Class 28 - Invalid Authorization Specification */ -#define ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION MAKE_SQLSTATE('2','8','0','0','0') -#define ERRCODE_INVALID_PASSWORD MAKE_SQLSTATE('2','8','P','0','1') - -/* Class 2B - Dependent Privilege Descriptors Still Exist */ -#define ERRCODE_DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST MAKE_SQLSTATE('2','B','0','0','0') -#define ERRCODE_DEPENDENT_OBJECTS_STILL_EXIST MAKE_SQLSTATE('2','B','P','0','1') - -/* Class 2D - Invalid Transaction Termination */ -#define ERRCODE_INVALID_TRANSACTION_TERMINATION MAKE_SQLSTATE('2','D','0','0','0') - -/* Class 2F - SQL Routine Exception */ -#define ERRCODE_SQL_ROUTINE_EXCEPTION MAKE_SQLSTATE('2','F','0','0','0') -#define ERRCODE_S_R_E_FUNCTION_EXECUTED_NO_RETURN_STATEMENT MAKE_SQLSTATE('2','F','0','0','5') -#define ERRCODE_S_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED MAKE_SQLSTATE('2','F','0','0','2') -#define ERRCODE_S_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED MAKE_SQLSTATE('2','F','0','0','3') -#define ERRCODE_S_R_E_READING_SQL_DATA_NOT_PERMITTED MAKE_SQLSTATE('2','F','0','0','4') - -/* Class 34 - Invalid Cursor Name */ -#define ERRCODE_INVALID_CURSOR_NAME MAKE_SQLSTATE('3','4','0','0','0') - -/* Class 38 - External Routine Exception */ -#define ERRCODE_EXTERNAL_ROUTINE_EXCEPTION MAKE_SQLSTATE('3','8','0','0','0') -#define ERRCODE_E_R_E_CONTAINING_SQL_NOT_PERMITTED MAKE_SQLSTATE('3','8','0','0','1') -#define ERRCODE_E_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED MAKE_SQLSTATE('3','8','0','0','2') -#define ERRCODE_E_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED MAKE_SQLSTATE('3','8','0','0','3') -#define ERRCODE_E_R_E_READING_SQL_DATA_NOT_PERMITTED MAKE_SQLSTATE('3','8','0','0','4') - -/* Class 39 - External Routine Invocation Exception */ -#define ERRCODE_EXTERNAL_ROUTINE_INVOCATION_EXCEPTION MAKE_SQLSTATE('3','9','0','0','0') -#define ERRCODE_E_R_I_E_INVALID_SQLSTATE_RETURNED MAKE_SQLSTATE('3','9','0','0','1') -#define ERRCODE_E_R_I_E_NULL_VALUE_NOT_ALLOWED MAKE_SQLSTATE('3','9','0','0','4') -#define ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED MAKE_SQLSTATE('3','9','P','0','1') -#define ERRCODE_E_R_I_E_SRF_PROTOCOL_VIOLATED MAKE_SQLSTATE('3','9','P','0','2') -#define ERRCODE_E_R_I_E_EVENT_TRIGGER_PROTOCOL_VIOLATED MAKE_SQLSTATE('3','9','P','0','3') - -/* Class 3B - Savepoint Exception */ -#define ERRCODE_SAVEPOINT_EXCEPTION MAKE_SQLSTATE('3','B','0','0','0') -#define ERRCODE_S_E_INVALID_SPECIFICATION MAKE_SQLSTATE('3','B','0','0','1') - -/* Class 3D - Invalid Catalog Name */ -#define ERRCODE_INVALID_CATALOG_NAME MAKE_SQLSTATE('3','D','0','0','0') - -/* Class 3F - Invalid Schema Name */ -#define ERRCODE_INVALID_SCHEMA_NAME MAKE_SQLSTATE('3','F','0','0','0') - -/* Class 40 - Transaction Rollback */ -#define ERRCODE_TRANSACTION_ROLLBACK MAKE_SQLSTATE('4','0','0','0','0') -#define ERRCODE_T_R_INTEGRITY_CONSTRAINT_VIOLATION MAKE_SQLSTATE('4','0','0','0','2') -#define ERRCODE_T_R_SERIALIZATION_FAILURE MAKE_SQLSTATE('4','0','0','0','1') -#define ERRCODE_T_R_STATEMENT_COMPLETION_UNKNOWN MAKE_SQLSTATE('4','0','0','0','3') -#define ERRCODE_T_R_DEADLOCK_DETECTED MAKE_SQLSTATE('4','0','P','0','1') - -/* Class 42 - Syntax Error or Access Rule Violation */ -#define ERRCODE_SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION MAKE_SQLSTATE('4','2','0','0','0') -#define ERRCODE_SYNTAX_ERROR MAKE_SQLSTATE('4','2','6','0','1') -#define ERRCODE_INSUFFICIENT_PRIVILEGE MAKE_SQLSTATE('4','2','5','0','1') -#define ERRCODE_CANNOT_COERCE MAKE_SQLSTATE('4','2','8','4','6') -#define ERRCODE_GROUPING_ERROR MAKE_SQLSTATE('4','2','8','0','3') -#define ERRCODE_WINDOWING_ERROR MAKE_SQLSTATE('4','2','P','2','0') -#define ERRCODE_INVALID_RECURSION MAKE_SQLSTATE('4','2','P','1','9') -#define ERRCODE_INVALID_FOREIGN_KEY MAKE_SQLSTATE('4','2','8','3','0') -#define ERRCODE_INVALID_NAME MAKE_SQLSTATE('4','2','6','0','2') -#define ERRCODE_NAME_TOO_LONG MAKE_SQLSTATE('4','2','6','2','2') -#define ERRCODE_RESERVED_NAME MAKE_SQLSTATE('4','2','9','3','9') -#define ERRCODE_DATATYPE_MISMATCH MAKE_SQLSTATE('4','2','8','0','4') -#define ERRCODE_INDETERMINATE_DATATYPE MAKE_SQLSTATE('4','2','P','1','8') -#define ERRCODE_COLLATION_MISMATCH MAKE_SQLSTATE('4','2','P','2','1') -#define ERRCODE_INDETERMINATE_COLLATION MAKE_SQLSTATE('4','2','P','2','2') -#define ERRCODE_WRONG_OBJECT_TYPE MAKE_SQLSTATE('4','2','8','0','9') -#define ERRCODE_GENERATED_ALWAYS MAKE_SQLSTATE('4','2','8','C','9') -#define ERRCODE_UNDEFINED_COLUMN MAKE_SQLSTATE('4','2','7','0','3') -#define ERRCODE_UNDEFINED_CURSOR MAKE_SQLSTATE('3','4','0','0','0') -#define ERRCODE_UNDEFINED_DATABASE MAKE_SQLSTATE('3','D','0','0','0') -#define ERRCODE_UNDEFINED_FUNCTION MAKE_SQLSTATE('4','2','8','8','3') -#define ERRCODE_UNDEFINED_PSTATEMENT MAKE_SQLSTATE('2','6','0','0','0') -#define ERRCODE_UNDEFINED_SCHEMA MAKE_SQLSTATE('3','F','0','0','0') -#define ERRCODE_UNDEFINED_TABLE MAKE_SQLSTATE('4','2','P','0','1') -#define ERRCODE_UNDEFINED_PARAMETER MAKE_SQLSTATE('4','2','P','0','2') -#define ERRCODE_UNDEFINED_OBJECT MAKE_SQLSTATE('4','2','7','0','4') -#define ERRCODE_DUPLICATE_COLUMN MAKE_SQLSTATE('4','2','7','0','1') -#define ERRCODE_DUPLICATE_CURSOR MAKE_SQLSTATE('4','2','P','0','3') -#define ERRCODE_DUPLICATE_DATABASE MAKE_SQLSTATE('4','2','P','0','4') -#define ERRCODE_DUPLICATE_FUNCTION MAKE_SQLSTATE('4','2','7','2','3') -#define ERRCODE_DUPLICATE_PSTATEMENT MAKE_SQLSTATE('4','2','P','0','5') -#define ERRCODE_DUPLICATE_SCHEMA MAKE_SQLSTATE('4','2','P','0','6') -#define ERRCODE_DUPLICATE_TABLE MAKE_SQLSTATE('4','2','P','0','7') -#define ERRCODE_DUPLICATE_ALIAS MAKE_SQLSTATE('4','2','7','1','2') -#define ERRCODE_DUPLICATE_OBJECT MAKE_SQLSTATE('4','2','7','1','0') -#define ERRCODE_AMBIGUOUS_COLUMN MAKE_SQLSTATE('4','2','7','0','2') -#define ERRCODE_AMBIGUOUS_FUNCTION MAKE_SQLSTATE('4','2','7','2','5') -#define ERRCODE_AMBIGUOUS_PARAMETER MAKE_SQLSTATE('4','2','P','0','8') -#define ERRCODE_AMBIGUOUS_ALIAS MAKE_SQLSTATE('4','2','P','0','9') -#define ERRCODE_INVALID_COLUMN_REFERENCE MAKE_SQLSTATE('4','2','P','1','0') -#define ERRCODE_INVALID_COLUMN_DEFINITION MAKE_SQLSTATE('4','2','6','1','1') -#define ERRCODE_INVALID_CURSOR_DEFINITION MAKE_SQLSTATE('4','2','P','1','1') -#define ERRCODE_INVALID_DATABASE_DEFINITION MAKE_SQLSTATE('4','2','P','1','2') -#define ERRCODE_INVALID_FUNCTION_DEFINITION MAKE_SQLSTATE('4','2','P','1','3') -#define ERRCODE_INVALID_PSTATEMENT_DEFINITION MAKE_SQLSTATE('4','2','P','1','4') -#define ERRCODE_INVALID_SCHEMA_DEFINITION MAKE_SQLSTATE('4','2','P','1','5') -#define ERRCODE_INVALID_TABLE_DEFINITION MAKE_SQLSTATE('4','2','P','1','6') -#define ERRCODE_INVALID_OBJECT_DEFINITION MAKE_SQLSTATE('4','2','P','1','7') - -/* Class 44 - WITH CHECK OPTION Violation */ -#define ERRCODE_WITH_CHECK_OPTION_VIOLATION MAKE_SQLSTATE('4','4','0','0','0') - -/* Class 53 - Insufficient Resources */ -#define ERRCODE_INSUFFICIENT_RESOURCES MAKE_SQLSTATE('5','3','0','0','0') -#define ERRCODE_DISK_FULL MAKE_SQLSTATE('5','3','1','0','0') -#define ERRCODE_OUT_OF_MEMORY MAKE_SQLSTATE('5','3','2','0','0') -#define ERRCODE_TOO_MANY_CONNECTIONS MAKE_SQLSTATE('5','3','3','0','0') -#define ERRCODE_CONFIGURATION_LIMIT_EXCEEDED MAKE_SQLSTATE('5','3','4','0','0') - -/* Class 54 - Program Limit Exceeded */ -#define ERRCODE_PROGRAM_LIMIT_EXCEEDED MAKE_SQLSTATE('5','4','0','0','0') -#define ERRCODE_STATEMENT_TOO_COMPLEX MAKE_SQLSTATE('5','4','0','0','1') -#define ERRCODE_TOO_MANY_COLUMNS MAKE_SQLSTATE('5','4','0','1','1') -#define ERRCODE_TOO_MANY_ARGUMENTS MAKE_SQLSTATE('5','4','0','2','3') - -/* Class 55 - Object Not In Prerequisite State */ -#define ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE MAKE_SQLSTATE('5','5','0','0','0') -#define ERRCODE_OBJECT_IN_USE MAKE_SQLSTATE('5','5','0','0','6') -#define ERRCODE_CANT_CHANGE_RUNTIME_PARAM MAKE_SQLSTATE('5','5','P','0','2') -#define ERRCODE_LOCK_NOT_AVAILABLE MAKE_SQLSTATE('5','5','P','0','3') -#define ERRCODE_UNSAFE_NEW_ENUM_VALUE_USAGE MAKE_SQLSTATE('5','5','P','0','4') - -/* Class 57 - Operator Intervention */ -#define ERRCODE_OPERATOR_INTERVENTION MAKE_SQLSTATE('5','7','0','0','0') -#define ERRCODE_QUERY_CANCELED MAKE_SQLSTATE('5','7','0','1','4') -#define ERRCODE_ADMIN_SHUTDOWN MAKE_SQLSTATE('5','7','P','0','1') -#define ERRCODE_CRASH_SHUTDOWN MAKE_SQLSTATE('5','7','P','0','2') -#define ERRCODE_CANNOT_CONNECT_NOW MAKE_SQLSTATE('5','7','P','0','3') -#define ERRCODE_DATABASE_DROPPED MAKE_SQLSTATE('5','7','P','0','4') -#define ERRCODE_IDLE_SESSION_TIMEOUT MAKE_SQLSTATE('5','7','P','0','5') - -/* Class 58 - System Error (errors external to PostgreSQL itself) */ -#define ERRCODE_SYSTEM_ERROR MAKE_SQLSTATE('5','8','0','0','0') -#define ERRCODE_IO_ERROR MAKE_SQLSTATE('5','8','0','3','0') -#define ERRCODE_UNDEFINED_FILE MAKE_SQLSTATE('5','8','P','0','1') -#define ERRCODE_DUPLICATE_FILE MAKE_SQLSTATE('5','8','P','0','2') - -/* Class 72 - Snapshot Failure */ -#define ERRCODE_SNAPSHOT_TOO_OLD MAKE_SQLSTATE('7','2','0','0','0') - -/* Class F0 - Configuration File Error */ -#define ERRCODE_CONFIG_FILE_ERROR MAKE_SQLSTATE('F','0','0','0','0') -#define ERRCODE_LOCK_FILE_EXISTS MAKE_SQLSTATE('F','0','0','0','1') - -/* Class HV - Foreign Data Wrapper Error (SQL/MED) */ -#define ERRCODE_FDW_ERROR MAKE_SQLSTATE('H','V','0','0','0') -#define ERRCODE_FDW_COLUMN_NAME_NOT_FOUND MAKE_SQLSTATE('H','V','0','0','5') -#define ERRCODE_FDW_DYNAMIC_PARAMETER_VALUE_NEEDED MAKE_SQLSTATE('H','V','0','0','2') -#define ERRCODE_FDW_FUNCTION_SEQUENCE_ERROR MAKE_SQLSTATE('H','V','0','1','0') -#define ERRCODE_FDW_INCONSISTENT_DESCRIPTOR_INFORMATION MAKE_SQLSTATE('H','V','0','2','1') -#define ERRCODE_FDW_INVALID_ATTRIBUTE_VALUE MAKE_SQLSTATE('H','V','0','2','4') -#define ERRCODE_FDW_INVALID_COLUMN_NAME MAKE_SQLSTATE('H','V','0','0','7') -#define ERRCODE_FDW_INVALID_COLUMN_NUMBER MAKE_SQLSTATE('H','V','0','0','8') -#define ERRCODE_FDW_INVALID_DATA_TYPE MAKE_SQLSTATE('H','V','0','0','4') -#define ERRCODE_FDW_INVALID_DATA_TYPE_DESCRIPTORS MAKE_SQLSTATE('H','V','0','0','6') -#define ERRCODE_FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER MAKE_SQLSTATE('H','V','0','9','1') -#define ERRCODE_FDW_INVALID_HANDLE MAKE_SQLSTATE('H','V','0','0','B') -#define ERRCODE_FDW_INVALID_OPTION_INDEX MAKE_SQLSTATE('H','V','0','0','C') -#define ERRCODE_FDW_INVALID_OPTION_NAME MAKE_SQLSTATE('H','V','0','0','D') -#define ERRCODE_FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH MAKE_SQLSTATE('H','V','0','9','0') -#define ERRCODE_FDW_INVALID_STRING_FORMAT MAKE_SQLSTATE('H','V','0','0','A') -#define ERRCODE_FDW_INVALID_USE_OF_NULL_POINTER MAKE_SQLSTATE('H','V','0','0','9') -#define ERRCODE_FDW_TOO_MANY_HANDLES MAKE_SQLSTATE('H','V','0','1','4') -#define ERRCODE_FDW_OUT_OF_MEMORY MAKE_SQLSTATE('H','V','0','0','1') -#define ERRCODE_FDW_NO_SCHEMAS MAKE_SQLSTATE('H','V','0','0','P') -#define ERRCODE_FDW_OPTION_NAME_NOT_FOUND MAKE_SQLSTATE('H','V','0','0','J') -#define ERRCODE_FDW_REPLY_HANDLE MAKE_SQLSTATE('H','V','0','0','K') -#define ERRCODE_FDW_SCHEMA_NOT_FOUND MAKE_SQLSTATE('H','V','0','0','Q') -#define ERRCODE_FDW_TABLE_NOT_FOUND MAKE_SQLSTATE('H','V','0','0','R') -#define ERRCODE_FDW_UNABLE_TO_CREATE_EXECUTION MAKE_SQLSTATE('H','V','0','0','L') -#define ERRCODE_FDW_UNABLE_TO_CREATE_REPLY MAKE_SQLSTATE('H','V','0','0','M') -#define ERRCODE_FDW_UNABLE_TO_ESTABLISH_CONNECTION MAKE_SQLSTATE('H','V','0','0','N') - -/* Class P0 - PL/pgSQL Error */ -#define ERRCODE_PLPGSQL_ERROR MAKE_SQLSTATE('P','0','0','0','0') -#define ERRCODE_RAISE_EXCEPTION MAKE_SQLSTATE('P','0','0','0','1') -#define ERRCODE_NO_DATA_FOUND MAKE_SQLSTATE('P','0','0','0','2') -#define ERRCODE_TOO_MANY_ROWS MAKE_SQLSTATE('P','0','0','0','3') -#define ERRCODE_ASSERT_FAILURE MAKE_SQLSTATE('P','0','0','0','4') - -/* Class XX - Internal Error */ -#define ERRCODE_INTERNAL_ERROR MAKE_SQLSTATE('X','X','0','0','0') -#define ERRCODE_DATA_CORRUPTED MAKE_SQLSTATE('X','X','0','0','1') -#define ERRCODE_INDEX_CORRUPTED MAKE_SQLSTATE('X','X','0','0','2') diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/expandeddatum.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/expandeddatum.h deleted file mode 100644 index ffdb0c45b..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/expandeddatum.h +++ /dev/null @@ -1,159 +0,0 @@ -/*------------------------------------------------------------------------- - * - * expandeddatum.h - * Declarations for access to "expanded" value representations. - * - * Complex data types, particularly container types such as arrays and - * records, usually have on-disk representations that are compact but not - * especially convenient to modify. What's more, when we do modify them, - * having to recopy all the rest of the value can be extremely inefficient. - * Therefore, we provide a notion of an "expanded" representation that is used - * only in memory and is optimized more for computation than storage. - * The format appearing on disk is called the data type's "flattened" - * representation, since it is required to be a contiguous blob of bytes -- - * but the type can have an expanded representation that is not. Data types - * must provide means to translate an expanded representation back to - * flattened form. - * - * An expanded object is meant to survive across multiple operations, but - * not to be enormously long-lived; for example it might be a local variable - * in a PL/pgSQL procedure. So its extra bulk compared to the on-disk format - * is a worthwhile trade-off. - * - * References to expanded objects are a type of TOAST pointer. - * Because of longstanding conventions in Postgres, this means that the - * flattened form of such an object must always be a varlena object. - * Fortunately that's no restriction in practice. - * - * There are actually two kinds of TOAST pointers for expanded objects: - * read-only and read-write pointers. Possession of one of the latter - * authorizes a function to modify the value in-place rather than copying it - * as would normally be required. Functions should always return a read-write - * pointer to any new expanded object they create. Functions that modify an - * argument value in-place must take care that they do not corrupt the old - * value if they fail partway through. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/expandeddatum.h - * - *------------------------------------------------------------------------- - */ -#ifndef EXPANDEDDATUM_H -#define EXPANDEDDATUM_H - -/* Size of an EXTERNAL datum that contains a pointer to an expanded object */ -#define EXPANDED_POINTER_SIZE (VARHDRSZ_EXTERNAL + sizeof(varatt_expanded)) - -/* - * "Methods" that must be provided for any expanded object. - * - * get_flat_size: compute space needed for flattened representation (total, - * including header). - * - * flatten_into: construct flattened representation in the caller-allocated - * space at *result, of size allocated_size (which will always be the result - * of a preceding get_flat_size call; it's passed for cross-checking). - * - * The flattened representation must be a valid in-line, non-compressed, - * 4-byte-header varlena object. - * - * Note: construction of a heap tuple from an expanded datum calls - * get_flat_size twice, so it's worthwhile to make sure that that doesn't - * incur too much overhead. - */ -typedef Size (*EOM_get_flat_size_method) (ExpandedObjectHeader *eohptr); -typedef void (*EOM_flatten_into_method) (ExpandedObjectHeader *eohptr, - void *result, Size allocated_size); - -/* Struct of function pointers for an expanded object's methods */ -typedef struct ExpandedObjectMethods -{ - EOM_get_flat_size_method get_flat_size; - EOM_flatten_into_method flatten_into; -} ExpandedObjectMethods; - -/* - * Every expanded object must contain this header; typically the header - * is embedded in some larger struct that adds type-specific fields. - * - * It is presumed that the header object and all subsidiary data are stored - * in eoh_context, so that the object can be freed by deleting that context, - * or its storage lifespan can be altered by reparenting the context. - * (In principle the object could own additional resources, such as malloc'd - * storage, and use a memory context reset callback to free them upon reset or - * deletion of eoh_context.) - * - * We set up two TOAST pointers within the standard header, one read-write - * and one read-only. This allows functions to return either kind of pointer - * without making an additional allocation, and in particular without worrying - * whether a separately palloc'd object would have sufficient lifespan. - * But note that these pointers are just a convenience; a pointer object - * appearing somewhere else would still be legal. - * - * The typedef declaration for this appears in postgres.h. - */ -struct ExpandedObjectHeader -{ - /* Phony varlena header */ - int32 vl_len_; /* always EOH_HEADER_MAGIC, see below */ - - /* Pointer to methods required for object type */ - const ExpandedObjectMethods *eoh_methods; - - /* Memory context containing this header and subsidiary data */ - MemoryContext eoh_context; - - /* Standard R/W TOAST pointer for this object is kept here */ - char eoh_rw_ptr[EXPANDED_POINTER_SIZE]; - - /* Standard R/O TOAST pointer for this object is kept here */ - char eoh_ro_ptr[EXPANDED_POINTER_SIZE]; -}; - -/* - * Particularly for read-only functions, it is handy to be able to work with - * either regular "flat" varlena inputs or expanded inputs of the same data - * type. To allow determining which case an argument-fetching function has - * returned, the first int32 of an ExpandedObjectHeader always contains -1 - * (EOH_HEADER_MAGIC to the code). This works since no 4-byte-header varlena - * could have that as its first 4 bytes. Caution: we could not reliably tell - * the difference between an ExpandedObjectHeader and a short-header object - * with this trick. However, it works fine if the argument fetching code - * always returns either a 4-byte-header flat object or an expanded object. - */ -#define EOH_HEADER_MAGIC (-1) -#define VARATT_IS_EXPANDED_HEADER(PTR) \ - (((varattrib_4b *) (PTR))->va_4byte.va_header == (uint32) EOH_HEADER_MAGIC) - -/* - * Generic support functions for expanded objects. - * (More of these might be worth inlining later.) - */ - -#define EOHPGetRWDatum(eohptr) PointerGetDatum((eohptr)->eoh_rw_ptr) -#define EOHPGetRODatum(eohptr) PointerGetDatum((eohptr)->eoh_ro_ptr) - -/* Does the Datum represent a writable expanded object? */ -#define DatumIsReadWriteExpandedObject(d, isnull, typlen) \ - (((isnull) || (typlen) != -1) ? false : \ - VARATT_IS_EXTERNAL_EXPANDED_RW(DatumGetPointer(d))) - -#define MakeExpandedObjectReadOnly(d, isnull, typlen) \ - (((isnull) || (typlen) != -1) ? (d) : \ - MakeExpandedObjectReadOnlyInternal(d)) - -extern ExpandedObjectHeader *DatumGetEOHP(Datum d); -extern void EOH_init_header(ExpandedObjectHeader *eohptr, - const ExpandedObjectMethods *methods, - MemoryContext obj_context); -extern Size EOH_get_flat_size(ExpandedObjectHeader *eohptr); -extern void EOH_flatten_into(ExpandedObjectHeader *eohptr, - void *result, Size allocated_size); -extern Datum MakeExpandedObjectReadOnlyInternal(Datum d); -extern Datum TransferExpandedObject(Datum d, MemoryContext new_parent); -extern void DeleteExpandedObject(Datum d); - -#endif /* EXPANDEDDATUM_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/expandedrecord.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/expandedrecord.h deleted file mode 100644 index be60e2ce5..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/expandedrecord.h +++ /dev/null @@ -1,231 +0,0 @@ -/*------------------------------------------------------------------------- - * - * expandedrecord.h - * Declarations for composite expanded objects. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/expandedrecord.h - * - *------------------------------------------------------------------------- - */ -#ifndef EXPANDEDRECORD_H -#define EXPANDEDRECORD_H - -#include "access/htup.h" -#include "access/tupdesc.h" -#include "fmgr.h" -#include "utils/expandeddatum.h" - - -/* - * An expanded record is contained within a private memory context (as - * all expanded objects must be) and has a control structure as below. - * - * The expanded record might contain a regular "flat" tuple if that was the - * original input and we've not modified it. Otherwise, the contents are - * represented by Datum/isnull arrays plus type information. We could also - * have both forms, if we've deconstructed the original tuple for access - * purposes but not yet changed it. For pass-by-reference field types, the - * Datums would point into the flat tuple in this situation. Once we start - * modifying tuple fields, new pass-by-ref fields are separately palloc'd - * within the memory context. - * - * It's possible to build an expanded record that references a "flat" tuple - * stored externally, if the caller can guarantee that that tuple will not - * change for the lifetime of the expanded record. (This frammish is mainly - * meant to avoid unnecessary data copying in trigger functions.) - */ -#define ER_MAGIC 1384727874 /* ID for debugging crosschecks */ - -typedef struct ExpandedRecordHeader -{ - /* Standard header for expanded objects */ - ExpandedObjectHeader hdr; - - /* Magic value identifying an expanded record (for debugging only) */ - int er_magic; - - /* Assorted flag bits */ - int flags; -#define ER_FLAG_FVALUE_VALID 0x0001 /* fvalue is up to date? */ -#define ER_FLAG_FVALUE_ALLOCED 0x0002 /* fvalue is local storage? */ -#define ER_FLAG_DVALUES_VALID 0x0004 /* dvalues/dnulls are up to date? */ -#define ER_FLAG_DVALUES_ALLOCED 0x0008 /* any field values local storage? */ -#define ER_FLAG_HAVE_EXTERNAL 0x0010 /* any field values are external? */ -#define ER_FLAG_TUPDESC_ALLOCED 0x0020 /* tupdesc is local storage? */ -#define ER_FLAG_IS_DOMAIN 0x0040 /* er_decltypeid is domain? */ -#define ER_FLAG_IS_DUMMY 0x0080 /* this header is dummy (see below) */ -/* flag bits that are not to be cleared when replacing tuple data: */ -#define ER_FLAGS_NON_DATA \ - (ER_FLAG_TUPDESC_ALLOCED | ER_FLAG_IS_DOMAIN | ER_FLAG_IS_DUMMY) - - /* Declared type of the record variable (could be a domain type) */ - Oid er_decltypeid; - - /* - * Actual composite type/typmod; never a domain (if ER_FLAG_IS_DOMAIN, - * these identify the composite base type). These will match - * er_tupdesc->tdtypeid/tdtypmod, as well as the header fields of - * composite datums made from or stored in this expanded record. - */ - Oid er_typeid; /* type OID of the composite type */ - int32 er_typmod; /* typmod of the composite type */ - - /* - * Tuple descriptor, if we have one, else NULL. This may point to a - * reference-counted tupdesc originally belonging to the typcache, in - * which case we use a memory context reset callback to release the - * refcount. It can also be locally allocated in this object's private - * context (in which case ER_FLAG_TUPDESC_ALLOCED is set). - */ - TupleDesc er_tupdesc; - - /* - * Unique-within-process identifier for the tupdesc (see typcache.h). This - * field will never be equal to INVALID_TUPLEDESC_IDENTIFIER. - */ - uint64 er_tupdesc_id; - - /* - * If we have a Datum-array representation of the record, it's kept here; - * else ER_FLAG_DVALUES_VALID is not set, and dvalues/dnulls may be NULL - * if they've not yet been allocated. If allocated, the dvalues and - * dnulls arrays are palloc'd within the object private context, and are - * of length matching er_tupdesc->natts. For pass-by-ref field types, - * dvalues entries might point either into the fstartptr..fendptr area, or - * to separately palloc'd chunks. - */ - Datum *dvalues; /* array of Datums */ - bool *dnulls; /* array of is-null flags for Datums */ - int nfields; /* length of above arrays */ - - /* - * flat_size is the current space requirement for the flat equivalent of - * the expanded record, if known; otherwise it's 0. We store this to make - * consecutive calls of get_flat_size cheap. If flat_size is not 0, the - * component values data_len, hoff, and hasnull must be valid too. - */ - Size flat_size; - - Size data_len; /* data len within flat_size */ - int hoff; /* header offset */ - bool hasnull; /* null bitmap needed? */ - - /* - * fvalue points to the flat representation if we have one, else it is - * NULL. If the flat representation is valid (up to date) then - * ER_FLAG_FVALUE_VALID is set. Even if we've outdated the flat - * representation due to changes of user fields, it can still be used to - * fetch system column values. If we have a flat representation then - * fstartptr/fendptr point to the start and end+1 of its data area; this - * is so that we can tell which Datum pointers point into the flat - * representation rather than being pointers to separately palloc'd data. - */ - HeapTuple fvalue; /* might or might not be private storage */ - char *fstartptr; /* start of its data area */ - char *fendptr; /* end+1 of its data area */ - - /* Some operations on the expanded record need a short-lived context */ - MemoryContext er_short_term_cxt; /* short-term memory context */ - - /* Working state for domain checking, used if ER_FLAG_IS_DOMAIN is set */ - struct ExpandedRecordHeader *er_dummy_header; /* dummy record header */ - void *er_domaininfo; /* cache space for domain_check() */ - - /* Callback info (it's active if er_mcb.arg is not NULL) */ - MemoryContextCallback er_mcb; -} ExpandedRecordHeader; - -/* fmgr macros for expanded record objects */ -#define PG_GETARG_EXPANDED_RECORD(n) DatumGetExpandedRecord(PG_GETARG_DATUM(n)) -#define ExpandedRecordGetDatum(erh) EOHPGetRWDatum(&(erh)->hdr) -#define ExpandedRecordGetRODatum(erh) EOHPGetRODatum(&(erh)->hdr) -#define PG_RETURN_EXPANDED_RECORD(x) PG_RETURN_DATUM(ExpandedRecordGetDatum(x)) - -/* assorted other macros */ -#define ExpandedRecordIsEmpty(erh) \ - (((erh)->flags & (ER_FLAG_DVALUES_VALID | ER_FLAG_FVALUE_VALID)) == 0) -#define ExpandedRecordIsDomain(erh) \ - (((erh)->flags & ER_FLAG_IS_DOMAIN) != 0) - -/* this can substitute for TransferExpandedObject() when we already have erh */ -#define TransferExpandedRecord(erh, cxt) \ - MemoryContextSetParent((erh)->hdr.eoh_context, cxt) - -/* information returned by expanded_record_lookup_field() */ -typedef struct ExpandedRecordFieldInfo -{ - int fnumber; /* field's attr number in record */ - Oid ftypeid; /* field's type/typmod info */ - int32 ftypmod; - Oid fcollation; /* field's collation if any */ -} ExpandedRecordFieldInfo; - -/* - * prototypes for functions defined in expandedrecord.c - */ -extern ExpandedRecordHeader *make_expanded_record_from_typeid(Oid type_id, int32 typmod, - MemoryContext parentcontext); -extern ExpandedRecordHeader *make_expanded_record_from_tupdesc(TupleDesc tupdesc, - MemoryContext parentcontext); -extern ExpandedRecordHeader *make_expanded_record_from_exprecord(ExpandedRecordHeader *olderh, - MemoryContext parentcontext); -extern void expanded_record_set_tuple(ExpandedRecordHeader *erh, - HeapTuple tuple, bool copy, bool expand_external); -extern Datum make_expanded_record_from_datum(Datum recorddatum, - MemoryContext parentcontext); -extern TupleDesc expanded_record_fetch_tupdesc(ExpandedRecordHeader *erh); -extern HeapTuple expanded_record_get_tuple(ExpandedRecordHeader *erh); -extern ExpandedRecordHeader *DatumGetExpandedRecord(Datum d); -extern void deconstruct_expanded_record(ExpandedRecordHeader *erh); -extern bool expanded_record_lookup_field(ExpandedRecordHeader *erh, - const char *fieldname, - ExpandedRecordFieldInfo *finfo); -extern Datum expanded_record_fetch_field(ExpandedRecordHeader *erh, int fnumber, - bool *isnull); -extern void expanded_record_set_field_internal(ExpandedRecordHeader *erh, - int fnumber, - Datum newValue, bool isnull, - bool expand_external, - bool check_constraints); -extern void expanded_record_set_fields(ExpandedRecordHeader *erh, - const Datum *newValues, const bool *isnulls, - bool expand_external); - -/* outside code should never call expanded_record_set_field_internal as such */ -#define expanded_record_set_field(erh, fnumber, newValue, isnull, expand_external) \ - expanded_record_set_field_internal(erh, fnumber, newValue, isnull, expand_external, true) - -/* - * Inline-able fast cases. The expanded_record_fetch_xxx functions above - * handle the general cases. - */ - -/* Get the tupdesc for the expanded record's actual type */ -static inline TupleDesc -expanded_record_get_tupdesc(ExpandedRecordHeader *erh) -{ - if (likely(erh->er_tupdesc != NULL)) - return erh->er_tupdesc; - else - return expanded_record_fetch_tupdesc(erh); -} - -/* Get value of record field */ -static inline Datum -expanded_record_get_field(ExpandedRecordHeader *erh, int fnumber, - bool *isnull) -{ - if ((erh->flags & ER_FLAG_DVALUES_VALID) && - likely(fnumber > 0 && fnumber <= erh->nfields)) - { - *isnull = erh->dnulls[fnumber - 1]; - return erh->dvalues[fnumber - 1]; - } - else - return expanded_record_fetch_field(erh, fnumber, isnull); -} - -#endif /* EXPANDEDRECORD_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/float.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/float.h deleted file mode 100644 index 4bf0e3ac0..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/float.h +++ /dev/null @@ -1,356 +0,0 @@ -/*------------------------------------------------------------------------- - * - * float.h - * Definitions for the built-in floating-point types - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * - * IDENTIFICATION - * src/include/utils/float.h - * - *------------------------------------------------------------------------- - */ -#ifndef FLOAT_H -#define FLOAT_H - -#include - -#ifndef M_PI -/* From my RH5.2 gcc math.h file - thomas 2000-04-03 */ -#define M_PI 3.14159265358979323846 -#endif - -/* Radians per degree, a.k.a. PI / 180 */ -#define RADIANS_PER_DEGREE 0.0174532925199432957692 - -/* Visual C++ etc lacks NAN, and won't accept 0.0/0.0. */ -#if defined(WIN32) && !defined(NAN) -static const uint32 nan[2] = {0xffffffff, 0x7fffffff}; - -#define NAN (*(const float8 *) nan) -#endif - -extern PGDLLIMPORT int extra_float_digits; - -/* - * Utility functions in float.c - */ -extern void float_overflow_error(void) pg_attribute_noreturn(); -extern void float_underflow_error(void) pg_attribute_noreturn(); -extern void float_zero_divide_error(void) pg_attribute_noreturn(); -extern int is_infinite(float8 val); -extern float8 float8in_internal(char *num, char **endptr_p, - const char *type_name, const char *orig_string); -extern float8 float8in_internal_opt_error(char *num, char **endptr_p, - const char *type_name, const char *orig_string, - bool *have_error); -extern char *float8out_internal(float8 num); -extern int float4_cmp_internal(float4 a, float4 b); -extern int float8_cmp_internal(float8 a, float8 b); - -/* - * Routines to provide reasonably platform-independent handling of - * infinity and NaN - * - * We assume that isinf() and isnan() are available and work per spec. - * (On some platforms, we have to supply our own; see src/port.) However, - * generating an Infinity or NaN in the first place is less well standardized; - * pre-C99 systems tend not to have C99's INFINITY and NaN macros. We - * centralize our workarounds for this here. - */ - -/* - * The funny placements of the two #pragmas is necessary because of a - * long lived bug in the Microsoft compilers. - * See http://support.microsoft.com/kb/120968/en-us for details - */ -#ifdef _MSC_VER -#pragma warning(disable:4756) -#endif -static inline float4 -get_float4_infinity(void) -{ -#ifdef INFINITY - /* C99 standard way */ - return (float4) INFINITY; -#else -#ifdef _MSC_VER -#pragma warning(default:4756) -#endif - - /* - * On some platforms, HUGE_VAL is an infinity, elsewhere it's just the - * largest normal float8. We assume forcing an overflow will get us a - * true infinity. - */ - return (float4) (HUGE_VAL * HUGE_VAL); -#endif -} - -static inline float8 -get_float8_infinity(void) -{ -#ifdef INFINITY - /* C99 standard way */ - return (float8) INFINITY; -#else - - /* - * On some platforms, HUGE_VAL is an infinity, elsewhere it's just the - * largest normal float8. We assume forcing an overflow will get us a - * true infinity. - */ - return (float8) (HUGE_VAL * HUGE_VAL); -#endif -} - -static inline float4 -get_float4_nan(void) -{ -#ifdef NAN - /* C99 standard way */ - return (float4) NAN; -#else - /* Assume we can get a NAN via zero divide */ - return (float4) (0.0 / 0.0); -#endif -} - -static inline float8 -get_float8_nan(void) -{ - /* (float8) NAN doesn't work on some NetBSD/MIPS releases */ -#if defined(NAN) && !(defined(__NetBSD__) && defined(__mips__)) - /* C99 standard way */ - return (float8) NAN; -#else - /* Assume we can get a NaN via zero divide */ - return (float8) (0.0 / 0.0); -#endif -} - -/* - * Floating-point arithmetic with overflow/underflow reported as errors - * - * There isn't any way to check for underflow of addition/subtraction - * because numbers near the underflow value have already been rounded to - * the point where we can't detect that the two values were originally - * different, e.g. on x86, '1e-45'::float4 == '2e-45'::float4 == - * 1.4013e-45. - */ - -static inline float4 -float4_pl(const float4 val1, const float4 val2) -{ - float4 result; - - result = val1 + val2; - if (unlikely(isinf(result)) && !isinf(val1) && !isinf(val2)) - float_overflow_error(); - - return result; -} - -static inline float8 -float8_pl(const float8 val1, const float8 val2) -{ - float8 result; - - result = val1 + val2; - if (unlikely(isinf(result)) && !isinf(val1) && !isinf(val2)) - float_overflow_error(); - - return result; -} - -static inline float4 -float4_mi(const float4 val1, const float4 val2) -{ - float4 result; - - result = val1 - val2; - if (unlikely(isinf(result)) && !isinf(val1) && !isinf(val2)) - float_overflow_error(); - - return result; -} - -static inline float8 -float8_mi(const float8 val1, const float8 val2) -{ - float8 result; - - result = val1 - val2; - if (unlikely(isinf(result)) && !isinf(val1) && !isinf(val2)) - float_overflow_error(); - - return result; -} - -static inline float4 -float4_mul(const float4 val1, const float4 val2) -{ - float4 result; - - result = val1 * val2; - if (unlikely(isinf(result)) && !isinf(val1) && !isinf(val2)) - float_overflow_error(); - if (unlikely(result == 0.0f) && val1 != 0.0f && val2 != 0.0f) - float_underflow_error(); - - return result; -} - -static inline float8 -float8_mul(const float8 val1, const float8 val2) -{ - float8 result; - - result = val1 * val2; - if (unlikely(isinf(result)) && !isinf(val1) && !isinf(val2)) - float_overflow_error(); - if (unlikely(result == 0.0) && val1 != 0.0 && val2 != 0.0) - float_underflow_error(); - - return result; -} - -static inline float4 -float4_div(const float4 val1, const float4 val2) -{ - float4 result; - - if (unlikely(val2 == 0.0f) && !isnan(val1)) - float_zero_divide_error(); - result = val1 / val2; - if (unlikely(isinf(result)) && !isinf(val1)) - float_overflow_error(); - if (unlikely(result == 0.0f) && val1 != 0.0f && !isinf(val2)) - float_underflow_error(); - - return result; -} - -static inline float8 -float8_div(const float8 val1, const float8 val2) -{ - float8 result; - - if (unlikely(val2 == 0.0) && !isnan(val1)) - float_zero_divide_error(); - result = val1 / val2; - if (unlikely(isinf(result)) && !isinf(val1)) - float_overflow_error(); - if (unlikely(result == 0.0) && val1 != 0.0 && !isinf(val2)) - float_underflow_error(); - - return result; -} - -/* - * Routines for NaN-aware comparisons - * - * We consider all NaNs to be equal and larger than any non-NaN. This is - * somewhat arbitrary; the important thing is to have a consistent sort - * order. - */ - -static inline bool -float4_eq(const float4 val1, const float4 val2) -{ - return isnan(val1) ? isnan(val2) : !isnan(val2) && val1 == val2; -} - -static inline bool -float8_eq(const float8 val1, const float8 val2) -{ - return isnan(val1) ? isnan(val2) : !isnan(val2) && val1 == val2; -} - -static inline bool -float4_ne(const float4 val1, const float4 val2) -{ - return isnan(val1) ? !isnan(val2) : isnan(val2) || val1 != val2; -} - -static inline bool -float8_ne(const float8 val1, const float8 val2) -{ - return isnan(val1) ? !isnan(val2) : isnan(val2) || val1 != val2; -} - -static inline bool -float4_lt(const float4 val1, const float4 val2) -{ - return !isnan(val1) && (isnan(val2) || val1 < val2); -} - -static inline bool -float8_lt(const float8 val1, const float8 val2) -{ - return !isnan(val1) && (isnan(val2) || val1 < val2); -} - -static inline bool -float4_le(const float4 val1, const float4 val2) -{ - return isnan(val2) || (!isnan(val1) && val1 <= val2); -} - -static inline bool -float8_le(const float8 val1, const float8 val2) -{ - return isnan(val2) || (!isnan(val1) && val1 <= val2); -} - -static inline bool -float4_gt(const float4 val1, const float4 val2) -{ - return !isnan(val2) && (isnan(val1) || val1 > val2); -} - -static inline bool -float8_gt(const float8 val1, const float8 val2) -{ - return !isnan(val2) && (isnan(val1) || val1 > val2); -} - -static inline bool -float4_ge(const float4 val1, const float4 val2) -{ - return isnan(val1) || (!isnan(val2) && val1 >= val2); -} - -static inline bool -float8_ge(const float8 val1, const float8 val2) -{ - return isnan(val1) || (!isnan(val2) && val1 >= val2); -} - -static inline float4 -float4_min(const float4 val1, const float4 val2) -{ - return float4_lt(val1, val2) ? val1 : val2; -} - -static inline float8 -float8_min(const float8 val1, const float8 val2) -{ - return float8_lt(val1, val2) ? val1 : val2; -} - -static inline float4 -float4_max(const float4 val1, const float4 val2) -{ - return float4_gt(val1, val2) ? val1 : val2; -} - -static inline float8 -float8_max(const float8 val1, const float8 val2) -{ - return float8_gt(val1, val2) ? val1 : val2; -} - -#endif /* FLOAT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/fmgroids.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/fmgroids.h deleted file mode 100644 index 4cbc374b1..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/fmgroids.h +++ /dev/null @@ -1,3261 +0,0 @@ -/*------------------------------------------------------------------------- - * - * fmgroids.h - * Macros that define the OIDs of built-in functions. - * - * These macros can be used to avoid a catalog lookup when a specific - * fmgr-callable function needs to be referenced. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/utils/Gen_fmgrtab.pl - * - *------------------------------------------------------------------------- - */ -#ifndef FMGROIDS_H -#define FMGROIDS_H - -/* - * Constant macros for the OIDs of entries in pg_proc. - * - * F_XXX macros are named after the proname field; if that is not unique, - * we append the proargtypes field, replacing spaces with underscores. - * For example, we have F_OIDEQ because that proname is unique, but - * F_POW_FLOAT8_FLOAT8 (among others) because that proname is not. - */ -#define F_HEAP_TABLEAM_HANDLER 3 -#define F_BYTEAOUT 31 -#define F_CHAROUT 33 -#define F_NAMEIN 34 -#define F_NAMEOUT 35 -#define F_INT2IN 38 -#define F_INT2OUT 39 -#define F_INT2VECTORIN 40 -#define F_INT2VECTOROUT 41 -#define F_INT4IN 42 -#define F_INT4OUT 43 -#define F_REGPROCIN 44 -#define F_REGPROCOUT 45 -#define F_TEXTIN 46 -#define F_TEXTOUT 47 -#define F_TIDIN 48 -#define F_TIDOUT 49 -#define F_XIDIN 50 -#define F_XIDOUT 51 -#define F_CIDIN 52 -#define F_CIDOUT 53 -#define F_OIDVECTORIN 54 -#define F_OIDVECTOROUT 55 -#define F_BOOLLT 56 -#define F_BOOLGT 57 -#define F_BOOLEQ 60 -#define F_CHAREQ 61 -#define F_NAMEEQ 62 -#define F_INT2EQ 63 -#define F_INT2LT 64 -#define F_INT4EQ 65 -#define F_INT4LT 66 -#define F_TEXTEQ 67 -#define F_XIDEQ 68 -#define F_CIDEQ 69 -#define F_CHARNE 70 -#define F_CHARLE 72 -#define F_CHARGT 73 -#define F_CHARGE 74 -#define F_INT4_CHAR 77 -#define F_CHAR_INT4 78 -#define F_NAMEREGEXEQ 79 -#define F_BOOLNE 84 -#define F_PG_DDL_COMMAND_IN 86 -#define F_PG_DDL_COMMAND_OUT 87 -#define F_PG_DDL_COMMAND_RECV 88 -#define F_VERSION 89 -#define F_PG_DDL_COMMAND_SEND 90 -#define F_EQSEL 101 -#define F_NEQSEL 102 -#define F_SCALARLTSEL 103 -#define F_SCALARGTSEL 104 -#define F_EQJOINSEL 105 -#define F_NEQJOINSEL 106 -#define F_SCALARLTJOINSEL 107 -#define F_SCALARGTJOINSEL 108 -#define F_UNKNOWNIN 109 -#define F_UNKNOWNOUT 110 -#define F_BOX_ABOVE_EQ 115 -#define F_BOX_BELOW_EQ 116 -#define F_POINT_IN 117 -#define F_POINT_OUT 118 -#define F_LSEG_IN 119 -#define F_LSEG_OUT 120 -#define F_PATH_IN 121 -#define F_PATH_OUT 122 -#define F_BOX_IN 123 -#define F_BOX_OUT 124 -#define F_BOX_OVERLAP 125 -#define F_BOX_GE 126 -#define F_BOX_GT 127 -#define F_BOX_EQ 128 -#define F_BOX_LT 129 -#define F_BOX_LE 130 -#define F_POINT_ABOVE 131 -#define F_POINT_LEFT 132 -#define F_POINT_RIGHT 133 -#define F_POINT_BELOW 134 -#define F_POINT_EQ 135 -#define F_ON_PB 136 -#define F_ON_PPATH 137 -#define F_BOX_CENTER 138 -#define F_AREASEL 139 -#define F_AREAJOINSEL 140 -#define F_INT4MUL 141 -#define F_INT4NE 144 -#define F_INT2NE 145 -#define F_INT2GT 146 -#define F_INT4GT 147 -#define F_INT2LE 148 -#define F_INT4LE 149 -#define F_INT4GE 150 -#define F_INT2GE 151 -#define F_INT2MUL 152 -#define F_INT2DIV 153 -#define F_INT4DIV 154 -#define F_INT2MOD 155 -#define F_INT4MOD 156 -#define F_TEXTNE 157 -#define F_INT24EQ 158 -#define F_INT42EQ 159 -#define F_INT24LT 160 -#define F_INT42LT 161 -#define F_INT24GT 162 -#define F_INT42GT 163 -#define F_INT24NE 164 -#define F_INT42NE 165 -#define F_INT24LE 166 -#define F_INT42LE 167 -#define F_INT24GE 168 -#define F_INT42GE 169 -#define F_INT24MUL 170 -#define F_INT42MUL 171 -#define F_INT24DIV 172 -#define F_INT42DIV 173 -#define F_INT2PL 176 -#define F_INT4PL 177 -#define F_INT24PL 178 -#define F_INT42PL 179 -#define F_INT2MI 180 -#define F_INT4MI 181 -#define F_INT24MI 182 -#define F_INT42MI 183 -#define F_OIDEQ 184 -#define F_OIDNE 185 -#define F_BOX_SAME 186 -#define F_BOX_CONTAIN 187 -#define F_BOX_LEFT 188 -#define F_BOX_OVERLEFT 189 -#define F_BOX_OVERRIGHT 190 -#define F_BOX_RIGHT 191 -#define F_BOX_CONTAINED 192 -#define F_BOX_CONTAIN_PT 193 -#define F_PG_NODE_TREE_IN 195 -#define F_PG_NODE_TREE_OUT 196 -#define F_PG_NODE_TREE_RECV 197 -#define F_PG_NODE_TREE_SEND 198 -#define F_FLOAT4IN 200 -#define F_FLOAT4OUT 201 -#define F_FLOAT4MUL 202 -#define F_FLOAT4DIV 203 -#define F_FLOAT4PL 204 -#define F_FLOAT4MI 205 -#define F_FLOAT4UM 206 -#define F_FLOAT4ABS 207 -#define F_FLOAT4_ACCUM 208 -#define F_FLOAT4LARGER 209 -#define F_FLOAT4SMALLER 211 -#define F_INT4UM 212 -#define F_INT2UM 213 -#define F_FLOAT8IN 214 -#define F_FLOAT8OUT 215 -#define F_FLOAT8MUL 216 -#define F_FLOAT8DIV 217 -#define F_FLOAT8PL 218 -#define F_FLOAT8MI 219 -#define F_FLOAT8UM 220 -#define F_FLOAT8ABS 221 -#define F_FLOAT8_ACCUM 222 -#define F_FLOAT8LARGER 223 -#define F_FLOAT8SMALLER 224 -#define F_LSEG_CENTER 225 -#define F_POLY_CENTER 227 -#define F_DROUND 228 -#define F_DTRUNC 229 -#define F_DSQRT 230 -#define F_DCBRT 231 -#define F_DPOW 232 -#define F_DEXP 233 -#define F_DLOG1 234 -#define F_FLOAT8_INT2 235 -#define F_FLOAT4_INT2 236 -#define F_INT2_FLOAT8 237 -#define F_INT2_FLOAT4 238 -#define F_LINE_DISTANCE 239 -#define F_NAMEEQTEXT 240 -#define F_NAMELTTEXT 241 -#define F_NAMELETEXT 242 -#define F_NAMEGETEXT 243 -#define F_NAMEGTTEXT 244 -#define F_NAMENETEXT 245 -#define F_BTNAMETEXTCMP 246 -#define F_TEXTEQNAME 247 -#define F_TEXTLTNAME 248 -#define F_TEXTLENAME 249 -#define F_TEXTGENAME 250 -#define F_TEXTGTNAME 251 -#define F_TEXTNENAME 252 -#define F_BTTEXTNAMECMP 253 -#define F_NAMECONCATOID 266 -#define F_TABLE_AM_HANDLER_IN 267 -#define F_TABLE_AM_HANDLER_OUT 268 -#define F_TIMEOFDAY 274 -#define F_PG_NEXTOID 275 -#define F_FLOAT8_COMBINE 276 -#define F_INTER_SL 277 -#define F_INTER_LB 278 -#define F_FLOAT48MUL 279 -#define F_FLOAT48DIV 280 -#define F_FLOAT48PL 281 -#define F_FLOAT48MI 282 -#define F_FLOAT84MUL 283 -#define F_FLOAT84DIV 284 -#define F_FLOAT84PL 285 -#define F_FLOAT84MI 286 -#define F_FLOAT4EQ 287 -#define F_FLOAT4NE 288 -#define F_FLOAT4LT 289 -#define F_FLOAT4LE 290 -#define F_FLOAT4GT 291 -#define F_FLOAT4GE 292 -#define F_FLOAT8EQ 293 -#define F_FLOAT8NE 294 -#define F_FLOAT8LT 295 -#define F_FLOAT8LE 296 -#define F_FLOAT8GT 297 -#define F_FLOAT8GE 298 -#define F_FLOAT48EQ 299 -#define F_FLOAT48NE 300 -#define F_FLOAT48LT 301 -#define F_FLOAT48LE 302 -#define F_FLOAT48GT 303 -#define F_FLOAT48GE 304 -#define F_FLOAT84EQ 305 -#define F_FLOAT84NE 306 -#define F_FLOAT84LT 307 -#define F_FLOAT84LE 308 -#define F_FLOAT84GT 309 -#define F_FLOAT84GE 310 -#define F_FLOAT8_FLOAT4 311 -#define F_FLOAT4_FLOAT8 312 -#define F_INT4_INT2 313 -#define F_INT2_INT4 314 -#define F_PG_JIT_AVAILABLE 315 -#define F_FLOAT8_INT4 316 -#define F_INT4_FLOAT8 317 -#define F_FLOAT4_INT4 318 -#define F_INT4_FLOAT4 319 -#define F_WIDTH_BUCKET_FLOAT8_FLOAT8_FLOAT8_INT4 320 -#define F_JSON_IN 321 -#define F_JSON_OUT 322 -#define F_JSON_RECV 323 -#define F_JSON_SEND 324 -#define F_INDEX_AM_HANDLER_IN 326 -#define F_INDEX_AM_HANDLER_OUT 327 -#define F_HASHMACADDR8 328 -#define F_HASH_ACLITEM 329 -#define F_BTHANDLER 330 -#define F_HASHHANDLER 331 -#define F_GISTHANDLER 332 -#define F_GINHANDLER 333 -#define F_SPGHANDLER 334 -#define F_BRINHANDLER 335 -#define F_SCALARLESEL 336 -#define F_SCALARGESEL 337 -#define F_AMVALIDATE 338 -#define F_POLY_SAME 339 -#define F_POLY_CONTAIN 340 -#define F_POLY_LEFT 341 -#define F_POLY_OVERLEFT 342 -#define F_POLY_OVERRIGHT 343 -#define F_POLY_RIGHT 344 -#define F_POLY_CONTAINED 345 -#define F_POLY_OVERLAP 346 -#define F_POLY_IN 347 -#define F_POLY_OUT 348 -#define F_BTINT2CMP 350 -#define F_BTINT4CMP 351 -#define F_BTFLOAT4CMP 354 -#define F_BTFLOAT8CMP 355 -#define F_BTOIDCMP 356 -#define F_DIST_BP 357 -#define F_BTCHARCMP 358 -#define F_BTNAMECMP 359 -#define F_BTTEXTCMP 360 -#define F_LSEG_DISTANCE 361 -#define F_LSEG_INTERPT 362 -#define F_DIST_PS 363 -#define F_DIST_PB 364 -#define F_DIST_SB 365 -#define F_CLOSE_PS 366 -#define F_CLOSE_PB 367 -#define F_CLOSE_SB 368 -#define F_ON_PS 369 -#define F_PATH_DISTANCE 370 -#define F_DIST_PPATH 371 -#define F_ON_SB 372 -#define F_INTER_SB 373 -#define F_STRING_TO_ARRAY_TEXT_TEXT_TEXT 376 -#define F_CASH_CMP 377 -#define F_ARRAY_APPEND 378 -#define F_ARRAY_PREPEND 379 -#define F_DIST_SP 380 -#define F_DIST_BS 381 -#define F_BTARRAYCMP 382 -#define F_ARRAY_CAT 383 -#define F_ARRAY_TO_STRING_ANYARRAY_TEXT_TEXT 384 -#define F_SCALARLEJOINSEL 386 -#define F_ARRAY_NE 390 -#define F_ARRAY_LT 391 -#define F_ARRAY_GT 392 -#define F_ARRAY_LE 393 -#define F_STRING_TO_ARRAY_TEXT_TEXT 394 -#define F_ARRAY_TO_STRING_ANYARRAY_TEXT 395 -#define F_ARRAY_GE 396 -#define F_SCALARGEJOINSEL 398 -#define F_HASHMACADDR 399 -#define F_HASHTEXT 400 -#define F_TEXT_BPCHAR 401 -#define F_BTOIDVECTORCMP 404 -#define F_TEXT_NAME 406 -#define F_NAME_TEXT 407 -#define F_BPCHAR_NAME 408 -#define F_NAME_BPCHAR 409 -#define F_DIST_PATHP 421 -#define F_HASHINET 422 -#define F_HASHINT4EXTENDED 425 -#define F_HASH_NUMERIC 432 -#define F_MACADDR_IN 436 -#define F_MACADDR_OUT 437 -#define F_NUM_NULLS 438 -#define F_NUM_NONNULLS 440 -#define F_HASHINT2EXTENDED 441 -#define F_HASHINT8EXTENDED 442 -#define F_HASHFLOAT4EXTENDED 443 -#define F_HASHFLOAT8EXTENDED 444 -#define F_HASHOIDEXTENDED 445 -#define F_HASHCHAREXTENDED 446 -#define F_HASHNAMEEXTENDED 447 -#define F_HASHTEXTEXTENDED 448 -#define F_HASHINT2 449 -#define F_HASHINT4 450 -#define F_HASHFLOAT4 451 -#define F_HASHFLOAT8 452 -#define F_HASHOID 453 -#define F_HASHCHAR 454 -#define F_HASHNAME 455 -#define F_HASHVARLENA 456 -#define F_HASHOIDVECTOR 457 -#define F_TEXT_LARGER 458 -#define F_TEXT_SMALLER 459 -#define F_INT8IN 460 -#define F_INT8OUT 461 -#define F_INT8UM 462 -#define F_INT8PL 463 -#define F_INT8MI 464 -#define F_INT8MUL 465 -#define F_INT8DIV 466 -#define F_INT8EQ 467 -#define F_INT8NE 468 -#define F_INT8LT 469 -#define F_INT8GT 470 -#define F_INT8LE 471 -#define F_INT8GE 472 -#define F_INT84EQ 474 -#define F_INT84NE 475 -#define F_INT84LT 476 -#define F_INT84GT 477 -#define F_INT84LE 478 -#define F_INT84GE 479 -#define F_INT4_INT8 480 -#define F_INT8_INT4 481 -#define F_FLOAT8_INT8 482 -#define F_INT8_FLOAT8 483 -#define F_ARRAY_LARGER 515 -#define F_ARRAY_SMALLER 516 -#define F_ABBREV_INET 598 -#define F_ABBREV_CIDR 599 -#define F_SET_MASKLEN_INET_INT4 605 -#define F_OIDVECTORNE 619 -#define F_HASH_ARRAY 626 -#define F_SET_MASKLEN_CIDR_INT4 635 -#define F_PG_INDEXAM_HAS_PROPERTY 636 -#define F_PG_INDEX_HAS_PROPERTY 637 -#define F_PG_INDEX_COLUMN_HAS_PROPERTY 638 -#define F_FLOAT4_INT8 652 -#define F_INT8_FLOAT4 653 -#define F_NAMELT 655 -#define F_NAMELE 656 -#define F_NAMEGT 657 -#define F_NAMEGE 658 -#define F_NAMENE 659 -#define F_BPCHAR_BPCHAR_INT4_BOOL 668 -#define F_VARCHAR_VARCHAR_INT4_BOOL 669 -#define F_PG_INDEXAM_PROGRESS_PHASENAME 676 -#define F_OIDVECTORLT 677 -#define F_OIDVECTORLE 678 -#define F_OIDVECTOREQ 679 -#define F_OIDVECTORGE 680 -#define F_OIDVECTORGT 681 -#define F_NETWORK 683 -#define F_NETMASK 696 -#define F_MASKLEN 697 -#define F_BROADCAST 698 -#define F_HOST 699 -#define F_DIST_LP 702 -#define F_DIST_LS 704 -#define F_GETPGUSERNAME 710 -#define F_FAMILY 711 -#define F_INT2_INT8 714 -#define F_LO_CREATE 715 -#define F_OIDLT 716 -#define F_OIDLE 717 -#define F_OCTET_LENGTH_BYTEA 720 -#define F_GET_BYTE 721 -#define F_SET_BYTE 722 -#define F_GET_BIT_BYTEA_INT8 723 -#define F_SET_BIT_BYTEA_INT8_INT4 724 -#define F_DIST_PL 725 -#define F_DIST_SL 727 -#define F_DIST_CPOLY 728 -#define F_POLY_DISTANCE 729 -#define F_TEXT_INET 730 -#define F_TEXT_LT 740 -#define F_TEXT_LE 741 -#define F_TEXT_GT 742 -#define F_TEXT_GE 743 -#define F_ARRAY_EQ 744 -#define F_CURRENT_USER 745 -#define F_SESSION_USER 746 -#define F_ARRAY_DIMS 747 -#define F_ARRAY_NDIMS 748 -#define F_OVERLAY_BYTEA_BYTEA_INT4_INT4 749 -#define F_ARRAY_IN 750 -#define F_ARRAY_OUT 751 -#define F_OVERLAY_BYTEA_BYTEA_INT4 752 -#define F_TRUNC_MACADDR 753 -#define F_INT8_INT2 754 -#define F_LO_IMPORT_TEXT 764 -#define F_LO_EXPORT 765 -#define F_INT4INC 766 -#define F_LO_IMPORT_TEXT_OID 767 -#define F_INT4LARGER 768 -#define F_INT4SMALLER 769 -#define F_INT2LARGER 770 -#define F_INT2SMALLER 771 -#define F_HASHVARLENAEXTENDED 772 -#define F_HASHOIDVECTOREXTENDED 776 -#define F_HASH_ACLITEM_EXTENDED 777 -#define F_HASHMACADDREXTENDED 778 -#define F_HASHINETEXTENDED 779 -#define F_HASH_NUMERIC_EXTENDED 780 -#define F_HASHMACADDR8EXTENDED 781 -#define F_HASH_ARRAY_EXTENDED 782 -#define F_DIST_POLYC 785 -#define F_PG_CLIENT_ENCODING 810 -#define F_CURRENT_QUERY 817 -#define F_MACADDR_EQ 830 -#define F_MACADDR_LT 831 -#define F_MACADDR_LE 832 -#define F_MACADDR_GT 833 -#define F_MACADDR_GE 834 -#define F_MACADDR_NE 835 -#define F_MACADDR_CMP 836 -#define F_INT82PL 837 -#define F_INT82MI 838 -#define F_INT82MUL 839 -#define F_INT82DIV 840 -#define F_INT28PL 841 -#define F_BTINT8CMP 842 -#define F_CASH_MUL_FLT4 846 -#define F_CASH_DIV_FLT4 847 -#define F_FLT4_MUL_CASH 848 -#define F_POSITION_TEXT_TEXT 849 -#define F_TEXTLIKE 850 -#define F_TEXTNLIKE 851 -#define F_INT48EQ 852 -#define F_INT48NE 853 -#define F_INT48LT 854 -#define F_INT48GT 855 -#define F_INT48LE 856 -#define F_INT48GE 857 -#define F_NAMELIKE 858 -#define F_NAMENLIKE 859 -#define F_BPCHAR_CHAR 860 -#define F_CURRENT_DATABASE 861 -#define F_INT4_MUL_CASH 862 -#define F_INT2_MUL_CASH 863 -#define F_CASH_MUL_INT4 864 -#define F_CASH_DIV_INT4 865 -#define F_CASH_MUL_INT2 866 -#define F_CASH_DIV_INT2 867 -#define F_STRPOS 868 -#define F_LOWER_TEXT 870 -#define F_UPPER_TEXT 871 -#define F_INITCAP 872 -#define F_LPAD_TEXT_INT4_TEXT 873 -#define F_RPAD_TEXT_INT4_TEXT 874 -#define F_LTRIM_TEXT_TEXT 875 -#define F_RTRIM_TEXT_TEXT 876 -#define F_SUBSTR_TEXT_INT4_INT4 877 -#define F_TRANSLATE 878 -#define F_LPAD_TEXT_INT4 879 -#define F_RPAD_TEXT_INT4 880 -#define F_LTRIM_TEXT 881 -#define F_RTRIM_TEXT 882 -#define F_SUBSTR_TEXT_INT4 883 -#define F_BTRIM_TEXT_TEXT 884 -#define F_BTRIM_TEXT 885 -#define F_CASH_IN 886 -#define F_CASH_OUT 887 -#define F_CASH_EQ 888 -#define F_CASH_NE 889 -#define F_CASH_LT 890 -#define F_CASH_LE 891 -#define F_CASH_GT 892 -#define F_CASH_GE 893 -#define F_CASH_PL 894 -#define F_CASH_MI 895 -#define F_CASH_MUL_FLT8 896 -#define F_CASH_DIV_FLT8 897 -#define F_CASHLARGER 898 -#define F_CASHSMALLER 899 -#define F_INET_IN 910 -#define F_INET_OUT 911 -#define F_FLT8_MUL_CASH 919 -#define F_NETWORK_EQ 920 -#define F_NETWORK_LT 921 -#define F_NETWORK_LE 922 -#define F_NETWORK_GT 923 -#define F_NETWORK_GE 924 -#define F_NETWORK_NE 925 -#define F_NETWORK_CMP 926 -#define F_NETWORK_SUB 927 -#define F_NETWORK_SUBEQ 928 -#define F_NETWORK_SUP 929 -#define F_NETWORK_SUPEQ 930 -#define F_CASH_WORDS 935 -#define F_SUBSTRING_TEXT_INT4_INT4 936 -#define F_SUBSTRING_TEXT_INT4 937 -#define F_GENERATE_SERIES_TIMESTAMP_TIMESTAMP_INTERVAL 938 -#define F_GENERATE_SERIES_TIMESTAMPTZ_TIMESTAMPTZ_INTERVAL 939 -#define F_MOD_INT2_INT2 940 -#define F_MOD_INT4_INT4 941 -#define F_INT28MI 942 -#define F_INT28MUL 943 -#define F_CHAR_TEXT 944 -#define F_INT8MOD 945 -#define F_TEXT_CHAR 946 -#define F_MOD_INT8_INT8 947 -#define F_INT28DIV 948 -#define F_HASHINT8 949 -#define F_LO_OPEN 952 -#define F_LO_CLOSE 953 -#define F_LOREAD 954 -#define F_LOWRITE 955 -#define F_LO_LSEEK 956 -#define F_LO_CREAT 957 -#define F_LO_TELL 958 -#define F_ON_PL 959 -#define F_ON_SL 960 -#define F_CLOSE_PL 961 -#define F_LO_UNLINK 964 -#define F_HASHBPCHAREXTENDED 972 -#define F_PATH_INTER 973 -#define F_AREA_BOX 975 -#define F_WIDTH 976 -#define F_HEIGHT 977 -#define F_BOX_DISTANCE 978 -#define F_AREA_PATH 979 -#define F_BOX_INTERSECT 980 -#define F_DIAGONAL 981 -#define F_PATH_N_LT 982 -#define F_PATH_N_GT 983 -#define F_PATH_N_EQ 984 -#define F_PATH_N_LE 985 -#define F_PATH_N_GE 986 -#define F_PATH_LENGTH 987 -#define F_POINT_NE 988 -#define F_POINT_VERT 989 -#define F_POINT_HORIZ 990 -#define F_POINT_DISTANCE 991 -#define F_SLOPE 992 -#define F_LSEG_POINT_POINT 993 -#define F_LSEG_INTERSECT 994 -#define F_LSEG_PARALLEL 995 -#define F_LSEG_PERP 996 -#define F_LSEG_VERTICAL 997 -#define F_LSEG_HORIZONTAL 998 -#define F_LSEG_EQ 999 -#define F_LO_TRUNCATE 1004 -#define F_TEXTLIKE_SUPPORT 1023 -#define F_TEXTICREGEXEQ_SUPPORT 1024 -#define F_TEXTICLIKE_SUPPORT 1025 -#define F_TIMEZONE_INTERVAL_TIMESTAMPTZ 1026 -#define F_GIST_POINT_COMPRESS 1030 -#define F_ACLITEMIN 1031 -#define F_ACLITEMOUT 1032 -#define F_ACLINSERT 1035 -#define F_ACLREMOVE 1036 -#define F_ACLCONTAINS 1037 -#define F_GETDATABASEENCODING 1039 -#define F_BPCHARIN 1044 -#define F_BPCHAROUT 1045 -#define F_VARCHARIN 1046 -#define F_VARCHAROUT 1047 -#define F_BPCHAREQ 1048 -#define F_BPCHARLT 1049 -#define F_BPCHARLE 1050 -#define F_BPCHARGT 1051 -#define F_BPCHARGE 1052 -#define F_BPCHARNE 1053 -#define F_ACLITEMEQ 1062 -#define F_BPCHAR_LARGER 1063 -#define F_BPCHAR_SMALLER 1064 -#define F_PG_PREPARED_XACT 1065 -#define F_GENERATE_SERIES_INT4_INT4_INT4 1066 -#define F_GENERATE_SERIES_INT4_INT4 1067 -#define F_GENERATE_SERIES_INT8_INT8_INT8 1068 -#define F_GENERATE_SERIES_INT8_INT8 1069 -#define F_BPCHARCMP 1078 -#define F_REGCLASS 1079 -#define F_HASHBPCHAR 1080 -#define F_FORMAT_TYPE 1081 -#define F_DATE_IN 1084 -#define F_DATE_OUT 1085 -#define F_DATE_EQ 1086 -#define F_DATE_LT 1087 -#define F_DATE_LE 1088 -#define F_DATE_GT 1089 -#define F_DATE_GE 1090 -#define F_DATE_NE 1091 -#define F_DATE_CMP 1092 -#define F_TIME_LT 1102 -#define F_TIME_LE 1103 -#define F_TIME_GT 1104 -#define F_TIME_GE 1105 -#define F_TIME_NE 1106 -#define F_TIME_CMP 1107 -#define F_PG_STAT_GET_WAL 1136 -#define F_PG_GET_WAL_REPLAY_PAUSE_STATE 1137 -#define F_DATE_LARGER 1138 -#define F_DATE_SMALLER 1139 -#define F_DATE_MI 1140 -#define F_DATE_PLI 1141 -#define F_DATE_MII 1142 -#define F_TIME_IN 1143 -#define F_TIME_OUT 1144 -#define F_TIME_EQ 1145 -#define F_CIRCLE_ADD_PT 1146 -#define F_CIRCLE_SUB_PT 1147 -#define F_CIRCLE_MUL_PT 1148 -#define F_CIRCLE_DIV_PT 1149 -#define F_TIMESTAMPTZ_IN 1150 -#define F_TIMESTAMPTZ_OUT 1151 -#define F_TIMESTAMPTZ_EQ 1152 -#define F_TIMESTAMPTZ_NE 1153 -#define F_TIMESTAMPTZ_LT 1154 -#define F_TIMESTAMPTZ_LE 1155 -#define F_TIMESTAMPTZ_GE 1156 -#define F_TIMESTAMPTZ_GT 1157 -#define F_TO_TIMESTAMP_FLOAT8 1158 -#define F_TIMEZONE_TEXT_TIMESTAMPTZ 1159 -#define F_INTERVAL_IN 1160 -#define F_INTERVAL_OUT 1161 -#define F_INTERVAL_EQ 1162 -#define F_INTERVAL_NE 1163 -#define F_INTERVAL_LT 1164 -#define F_INTERVAL_LE 1165 -#define F_INTERVAL_GE 1166 -#define F_INTERVAL_GT 1167 -#define F_INTERVAL_UM 1168 -#define F_INTERVAL_PL 1169 -#define F_INTERVAL_MI 1170 -#define F_DATE_PART_TEXT_TIMESTAMPTZ 1171 -#define F_DATE_PART_TEXT_INTERVAL 1172 -#define F_NETWORK_SUBSET_SUPPORT 1173 -#define F_TIMESTAMPTZ_DATE 1174 -#define F_JUSTIFY_HOURS 1175 -#define F_TIMESTAMPTZ_DATE_TIME 1176 -#define F_JSONB_PATH_EXISTS_TZ 1177 -#define F_DATE_TIMESTAMPTZ 1178 -#define F_JSONB_PATH_QUERY_TZ 1179 -#define F_JSONB_PATH_QUERY_ARRAY_TZ 1180 -#define F_AGE_XID 1181 -#define F_TIMESTAMPTZ_MI 1188 -#define F_TIMESTAMPTZ_PL_INTERVAL 1189 -#define F_TIMESTAMPTZ_MI_INTERVAL 1190 -#define F_GENERATE_SUBSCRIPTS_ANYARRAY_INT4_BOOL 1191 -#define F_GENERATE_SUBSCRIPTS_ANYARRAY_INT4 1192 -#define F_ARRAY_FILL_ANYELEMENT__INT4 1193 -#define F_LOG10_FLOAT8 1194 -#define F_TIMESTAMPTZ_SMALLER 1195 -#define F_TIMESTAMPTZ_LARGER 1196 -#define F_INTERVAL_SMALLER 1197 -#define F_INTERVAL_LARGER 1198 -#define F_AGE_TIMESTAMPTZ_TIMESTAMPTZ 1199 -#define F_INTERVAL_INTERVAL_INT4 1200 -#define F_OBJ_DESCRIPTION_OID_NAME 1215 -#define F_COL_DESCRIPTION 1216 -#define F_DATE_TRUNC_TEXT_TIMESTAMPTZ 1217 -#define F_DATE_TRUNC_TEXT_INTERVAL 1218 -#define F_INT8INC 1219 -#define F_INT8ABS 1230 -#define F_INT8LARGER 1236 -#define F_INT8SMALLER 1237 -#define F_TEXTICREGEXEQ 1238 -#define F_TEXTICREGEXNE 1239 -#define F_NAMEICREGEXEQ 1240 -#define F_NAMEICREGEXNE 1241 -#define F_BOOLIN 1242 -#define F_BOOLOUT 1243 -#define F_BYTEAIN 1244 -#define F_CHARIN 1245 -#define F_CHARLT 1246 -#define F_UNIQUE_KEY_RECHECK 1250 -#define F_INT4ABS 1251 -#define F_NAMEREGEXNE 1252 -#define F_INT2ABS 1253 -#define F_TEXTREGEXEQ 1254 -#define F_TEXTREGEXNE 1256 -#define F_TEXTLEN 1257 -#define F_TEXTCAT 1258 -#define F_PG_CHAR_TO_ENCODING 1264 -#define F_TIDNE 1265 -#define F_CIDR_IN 1267 -#define F_PARSE_IDENT 1268 -#define F_PG_COLUMN_SIZE 1269 -#define F_OVERLAPS_TIMETZ_TIMETZ_TIMETZ_TIMETZ 1271 -#define F_DATETIME_PL 1272 -#define F_DATE_PART_TEXT_TIMETZ 1273 -#define F_INT84PL 1274 -#define F_INT84MI 1275 -#define F_INT84MUL 1276 -#define F_INT84DIV 1277 -#define F_INT48PL 1278 -#define F_INT48MI 1279 -#define F_INT48MUL 1280 -#define F_INT48DIV 1281 -#define F_QUOTE_IDENT 1282 -#define F_QUOTE_LITERAL_TEXT 1283 -#define F_DATE_TRUNC_TEXT_TIMESTAMPTZ_TEXT 1284 -#define F_QUOTE_LITERAL_ANYELEMENT 1285 -#define F_ARRAY_FILL_ANYELEMENT__INT4__INT4 1286 -#define F_OID 1287 -#define F_INT8_OID 1288 -#define F_QUOTE_NULLABLE_TEXT 1289 -#define F_QUOTE_NULLABLE_ANYELEMENT 1290 -#define F_SUPPRESS_REDUNDANT_UPDATES_TRIGGER 1291 -#define F_TIDEQ 1292 -#define F_UNNEST_ANYMULTIRANGE 1293 -#define F_CURRTID2 1294 -#define F_JUSTIFY_DAYS 1295 -#define F_TIMEDATE_PL 1296 -#define F_DATETIMETZ_PL 1297 -#define F_TIMETZDATE_PL 1298 -#define F_NOW 1299 -#define F_POSITIONSEL 1300 -#define F_POSITIONJOINSEL 1301 -#define F_CONTSEL 1302 -#define F_CONTJOINSEL 1303 -#define F_OVERLAPS_TIMESTAMPTZ_TIMESTAMPTZ_TIMESTAMPTZ_TIMESTAMPTZ 1304 -#define F_OVERLAPS_TIMESTAMPTZ_INTERVAL_TIMESTAMPTZ_INTERVAL 1305 -#define F_OVERLAPS_TIMESTAMPTZ_TIMESTAMPTZ_TIMESTAMPTZ_INTERVAL 1306 -#define F_OVERLAPS_TIMESTAMPTZ_INTERVAL_TIMESTAMPTZ_TIMESTAMPTZ 1307 -#define F_OVERLAPS_TIME_TIME_TIME_TIME 1308 -#define F_OVERLAPS_TIME_INTERVAL_TIME_INTERVAL 1309 -#define F_OVERLAPS_TIME_TIME_TIME_INTERVAL 1310 -#define F_OVERLAPS_TIME_INTERVAL_TIME_TIME 1311 -#define F_TIMESTAMP_IN 1312 -#define F_TIMESTAMP_OUT 1313 -#define F_TIMESTAMPTZ_CMP 1314 -#define F_INTERVAL_CMP 1315 -#define F_TIME_TIMESTAMP 1316 -#define F_LENGTH_TEXT 1317 -#define F_LENGTH_BPCHAR 1318 -#define F_XIDEQINT4 1319 -#define F_INTERVAL_DIV 1326 -#define F_DLOG10 1339 -#define F_LOG_FLOAT8 1340 -#define F_LN_FLOAT8 1341 -#define F_ROUND_FLOAT8 1342 -#define F_TRUNC_FLOAT8 1343 -#define F_SQRT_FLOAT8 1344 -#define F_CBRT 1345 -#define F_POW_FLOAT8_FLOAT8 1346 -#define F_EXP_FLOAT8 1347 -#define F_OBJ_DESCRIPTION_OID 1348 -#define F_OIDVECTORTYPES 1349 -#define F_TIMETZ_IN 1350 -#define F_TIMETZ_OUT 1351 -#define F_TIMETZ_EQ 1352 -#define F_TIMETZ_NE 1353 -#define F_TIMETZ_LT 1354 -#define F_TIMETZ_LE 1355 -#define F_TIMETZ_GE 1356 -#define F_TIMETZ_GT 1357 -#define F_TIMETZ_CMP 1358 -#define F_TIMESTAMPTZ_DATE_TIMETZ 1359 -#define F_HOSTMASK 1362 -#define F_TEXTREGEXEQ_SUPPORT 1364 -#define F_MAKEACLITEM 1365 -#define F_CHARACTER_LENGTH_BPCHAR 1367 -#define F_POWER_FLOAT8_FLOAT8 1368 -#define F_CHARACTER_LENGTH_TEXT 1369 -#define F_INTERVAL_TIME 1370 -#define F_PG_LOCK_STATUS 1371 -#define F_CHAR_LENGTH_BPCHAR 1372 -#define F_ISFINITE_DATE 1373 -#define F_OCTET_LENGTH_TEXT 1374 -#define F_OCTET_LENGTH_BPCHAR 1375 -#define F_FACTORIAL 1376 -#define F_TIME_LARGER 1377 -#define F_TIME_SMALLER 1378 -#define F_TIMETZ_LARGER 1379 -#define F_TIMETZ_SMALLER 1380 -#define F_CHAR_LENGTH_TEXT 1381 -#define F_DATE_PART_TEXT_DATE 1384 -#define F_DATE_PART_TEXT_TIME 1385 -#define F_AGE_TIMESTAMPTZ 1386 -#define F_PG_GET_CONSTRAINTDEF_OID 1387 -#define F_TIMETZ_TIMESTAMPTZ 1388 -#define F_ISFINITE_TIMESTAMPTZ 1389 -#define F_ISFINITE_INTERVAL 1390 -#define F_PG_STAT_GET_BACKEND_START 1391 -#define F_PG_STAT_GET_BACKEND_CLIENT_ADDR 1392 -#define F_PG_STAT_GET_BACKEND_CLIENT_PORT 1393 -#define F_ABS_FLOAT4 1394 -#define F_ABS_FLOAT8 1395 -#define F_ABS_INT8 1396 -#define F_ABS_INT4 1397 -#define F_ABS_INT2 1398 -#define F_NAME_VARCHAR 1400 -#define F_VARCHAR_NAME 1401 -#define F_CURRENT_SCHEMA 1402 -#define F_CURRENT_SCHEMAS 1403 -#define F_OVERLAY_TEXT_TEXT_INT4_INT4 1404 -#define F_OVERLAY_TEXT_TEXT_INT4 1405 -#define F_ISVERTICAL_POINT_POINT 1406 -#define F_ISHORIZONTAL_POINT_POINT 1407 -#define F_ISPARALLEL_LSEG_LSEG 1408 -#define F_ISPERP_LSEG_LSEG 1409 -#define F_ISVERTICAL_LSEG 1410 -#define F_ISHORIZONTAL_LSEG 1411 -#define F_ISPARALLEL_LINE_LINE 1412 -#define F_ISPERP_LINE_LINE 1413 -#define F_ISVERTICAL_LINE 1414 -#define F_ISHORIZONTAL_LINE 1415 -#define F_POINT_CIRCLE 1416 -#define F_TIME_INTERVAL 1419 -#define F_BOX_POINT_POINT 1421 -#define F_BOX_ADD 1422 -#define F_BOX_SUB 1423 -#define F_BOX_MUL 1424 -#define F_BOX_DIV 1425 -#define F_PATH_CONTAIN_PT 1426 -#define F_CIDR_OUT 1427 -#define F_POLY_CONTAIN_PT 1428 -#define F_PT_CONTAINED_POLY 1429 -#define F_ISCLOSED 1430 -#define F_ISOPEN 1431 -#define F_PATH_NPOINTS 1432 -#define F_PCLOSE 1433 -#define F_POPEN 1434 -#define F_PATH_ADD 1435 -#define F_PATH_ADD_PT 1436 -#define F_PATH_SUB_PT 1437 -#define F_PATH_MUL_PT 1438 -#define F_PATH_DIV_PT 1439 -#define F_POINT_FLOAT8_FLOAT8 1440 -#define F_POINT_ADD 1441 -#define F_POINT_SUB 1442 -#define F_POINT_MUL 1443 -#define F_POINT_DIV 1444 -#define F_POLY_NPOINTS 1445 -#define F_BOX_POLYGON 1446 -#define F_PATH 1447 -#define F_POLYGON_BOX 1448 -#define F_POLYGON_PATH 1449 -#define F_CIRCLE_IN 1450 -#define F_CIRCLE_OUT 1451 -#define F_CIRCLE_SAME 1452 -#define F_CIRCLE_CONTAIN 1453 -#define F_CIRCLE_LEFT 1454 -#define F_CIRCLE_OVERLEFT 1455 -#define F_CIRCLE_OVERRIGHT 1456 -#define F_CIRCLE_RIGHT 1457 -#define F_CIRCLE_CONTAINED 1458 -#define F_CIRCLE_OVERLAP 1459 -#define F_CIRCLE_BELOW 1460 -#define F_CIRCLE_ABOVE 1461 -#define F_CIRCLE_EQ 1462 -#define F_CIRCLE_NE 1463 -#define F_CIRCLE_LT 1464 -#define F_CIRCLE_GT 1465 -#define F_CIRCLE_LE 1466 -#define F_CIRCLE_GE 1467 -#define F_AREA_CIRCLE 1468 -#define F_DIAMETER 1469 -#define F_RADIUS 1470 -#define F_CIRCLE_DISTANCE 1471 -#define F_CIRCLE_CENTER 1472 -#define F_CIRCLE_POINT_FLOAT8 1473 -#define F_CIRCLE_POLYGON 1474 -#define F_POLYGON_INT4_CIRCLE 1475 -#define F_DIST_PC 1476 -#define F_CIRCLE_CONTAIN_PT 1477 -#define F_PT_CONTAINED_CIRCLE 1478 -#define F_CIRCLE_BOX 1479 -#define F_BOX_CIRCLE 1480 -#define F_LOG10_NUMERIC 1481 -#define F_LSEG_NE 1482 -#define F_LSEG_LT 1483 -#define F_LSEG_LE 1484 -#define F_LSEG_GT 1485 -#define F_LSEG_GE 1486 -#define F_LSEG_LENGTH 1487 -#define F_CLOSE_LS 1488 -#define F_CLOSE_LSEG 1489 -#define F_LINE_IN 1490 -#define F_LINE_OUT 1491 -#define F_LINE_EQ 1492 -#define F_LINE 1493 -#define F_LINE_INTERPT 1494 -#define F_LINE_INTERSECT 1495 -#define F_LINE_PARALLEL 1496 -#define F_LINE_PERP 1497 -#define F_LINE_VERTICAL 1498 -#define F_LINE_HORIZONTAL 1499 -#define F_LENGTH_LSEG 1530 -#define F_LENGTH_PATH 1531 -#define F_POINT_LSEG 1532 -#define F_POINT_BOX 1534 -#define F_POINT_POLYGON 1540 -#define F_LSEG_BOX 1541 -#define F_CENTER_BOX 1542 -#define F_CENTER_CIRCLE 1543 -#define F_POLYGON_CIRCLE 1544 -#define F_NPOINTS_PATH 1545 -#define F_NPOINTS_POLYGON 1556 -#define F_BIT_IN 1564 -#define F_BIT_OUT 1565 -#define F_LIKE_TEXT_TEXT 1569 -#define F_NOTLIKE_TEXT_TEXT 1570 -#define F_LIKE_NAME_TEXT 1571 -#define F_NOTLIKE_NAME_TEXT 1572 -#define F_PG_GET_RULEDEF_OID 1573 -#define F_NEXTVAL 1574 -#define F_CURRVAL 1575 -#define F_SETVAL_REGCLASS_INT8 1576 -#define F_VARBIT_IN 1579 -#define F_VARBIT_OUT 1580 -#define F_BITEQ 1581 -#define F_BITNE 1582 -#define F_BITGE 1592 -#define F_BITGT 1593 -#define F_BITLE 1594 -#define F_BITLT 1595 -#define F_BITCMP 1596 -#define F_PG_ENCODING_TO_CHAR 1597 -#define F_RANDOM 1598 -#define F_SETSEED 1599 -#define F_ASIN 1600 -#define F_ACOS 1601 -#define F_ATAN 1602 -#define F_ATAN2 1603 -#define F_SIN 1604 -#define F_COS 1605 -#define F_TAN 1606 -#define F_COT 1607 -#define F_DEGREES 1608 -#define F_RADIANS 1609 -#define F_PI 1610 -#define F_INTERVAL_MUL 1618 -#define F_PG_TYPEOF 1619 -#define F_ASCII 1620 -#define F_CHR 1621 -#define F_REPEAT 1622 -#define F_SIMILAR_ESCAPE 1623 -#define F_MUL_D_INTERVAL 1624 -#define F_BPCHARLIKE 1631 -#define F_BPCHARNLIKE 1632 -#define F_TEXTICLIKE 1633 -#define F_TEXTICNLIKE 1634 -#define F_NAMEICLIKE 1635 -#define F_NAMEICNLIKE 1636 -#define F_LIKE_ESCAPE_TEXT_TEXT 1637 -#define F_OIDGT 1638 -#define F_OIDGE 1639 -#define F_PG_GET_VIEWDEF_TEXT 1640 -#define F_PG_GET_VIEWDEF_OID 1641 -#define F_PG_GET_USERBYID 1642 -#define F_PG_GET_INDEXDEF_OID 1643 -#define F_RI_FKEY_CHECK_INS 1644 -#define F_RI_FKEY_CHECK_UPD 1645 -#define F_RI_FKEY_CASCADE_DEL 1646 -#define F_RI_FKEY_CASCADE_UPD 1647 -#define F_RI_FKEY_RESTRICT_DEL 1648 -#define F_RI_FKEY_RESTRICT_UPD 1649 -#define F_RI_FKEY_SETNULL_DEL 1650 -#define F_RI_FKEY_SETNULL_UPD 1651 -#define F_RI_FKEY_SETDEFAULT_DEL 1652 -#define F_RI_FKEY_SETDEFAULT_UPD 1653 -#define F_RI_FKEY_NOACTION_DEL 1654 -#define F_RI_FKEY_NOACTION_UPD 1655 -#define F_BPCHARICREGEXEQ 1656 -#define F_BPCHARICREGEXNE 1657 -#define F_BPCHARREGEXEQ 1658 -#define F_BPCHARREGEXNE 1659 -#define F_BPCHARICLIKE 1660 -#define F_BPCHARICNLIKE 1661 -#define F_PG_GET_TRIGGERDEF_OID 1662 -#define F_PG_GET_SERIAL_SEQUENCE 1665 -#define F_VARBITEQ 1666 -#define F_VARBITNE 1667 -#define F_VARBITGE 1668 -#define F_VARBITGT 1669 -#define F_VARBITLE 1670 -#define F_VARBITLT 1671 -#define F_VARBITCMP 1672 -#define F_BITAND 1673 -#define F_BITOR 1674 -#define F_BITXOR 1675 -#define F_BITNOT 1676 -#define F_BITSHIFTLEFT 1677 -#define F_BITSHIFTRIGHT 1678 -#define F_BITCAT 1679 -#define F_SUBSTRING_BIT_INT4_INT4 1680 -#define F_LENGTH_BIT 1681 -#define F_OCTET_LENGTH_BIT 1682 -#define F_BIT_INT4_INT4 1683 -#define F_INT4_BIT 1684 -#define F_BIT_BIT_INT4_BOOL 1685 -#define F_PG_GET_KEYWORDS 1686 -#define F_VARBIT 1687 -#define F_TIME_HASH 1688 -#define F_ACLEXPLODE 1689 -#define F_TIME_MI_TIME 1690 -#define F_BOOLLE 1691 -#define F_BOOLGE 1692 -#define F_BTBOOLCMP 1693 -#define F_TIMETZ_HASH 1696 -#define F_INTERVAL_HASH 1697 -#define F_POSITION_BIT_BIT 1698 -#define F_SUBSTRING_BIT_INT4 1699 -#define F_NUMERIC_IN 1701 -#define F_NUMERIC_OUT 1702 -#define F_NUMERIC_NUMERIC_INT4 1703 -#define F_NUMERIC_ABS 1704 -#define F_ABS_NUMERIC 1705 -#define F_SIGN_NUMERIC 1706 -#define F_ROUND_NUMERIC_INT4 1707 -#define F_ROUND_NUMERIC 1708 -#define F_TRUNC_NUMERIC_INT4 1709 -#define F_TRUNC_NUMERIC 1710 -#define F_CEIL_NUMERIC 1711 -#define F_FLOOR_NUMERIC 1712 -#define F_LENGTH_BYTEA_NAME 1713 -#define F_CONVERT_FROM 1714 -#define F_CIDR 1715 -#define F_PG_GET_EXPR_PG_NODE_TREE_OID 1716 -#define F_CONVERT_TO 1717 -#define F_NUMERIC_EQ 1718 -#define F_NUMERIC_NE 1719 -#define F_NUMERIC_GT 1720 -#define F_NUMERIC_GE 1721 -#define F_NUMERIC_LT 1722 -#define F_NUMERIC_LE 1723 -#define F_NUMERIC_ADD 1724 -#define F_NUMERIC_SUB 1725 -#define F_NUMERIC_MUL 1726 -#define F_NUMERIC_DIV 1727 -#define F_MOD_NUMERIC_NUMERIC 1728 -#define F_NUMERIC_MOD 1729 -#define F_SQRT_NUMERIC 1730 -#define F_NUMERIC_SQRT 1731 -#define F_EXP_NUMERIC 1732 -#define F_NUMERIC_EXP 1733 -#define F_LN_NUMERIC 1734 -#define F_NUMERIC_LN 1735 -#define F_LOG_NUMERIC_NUMERIC 1736 -#define F_NUMERIC_LOG 1737 -#define F_POW_NUMERIC_NUMERIC 1738 -#define F_NUMERIC_POWER 1739 -#define F_NUMERIC_INT4 1740 -#define F_LOG_NUMERIC 1741 -#define F_NUMERIC_FLOAT4 1742 -#define F_NUMERIC_FLOAT8 1743 -#define F_INT4_NUMERIC 1744 -#define F_FLOAT4_NUMERIC 1745 -#define F_FLOAT8_NUMERIC 1746 -#define F_TIME_PL_INTERVAL 1747 -#define F_TIME_MI_INTERVAL 1748 -#define F_TIMETZ_PL_INTERVAL 1749 -#define F_TIMETZ_MI_INTERVAL 1750 -#define F_NUMERIC_INC 1764 -#define F_SETVAL_REGCLASS_INT8_BOOL 1765 -#define F_NUMERIC_SMALLER 1766 -#define F_NUMERIC_LARGER 1767 -#define F_TO_CHAR_INTERVAL_TEXT 1768 -#define F_NUMERIC_CMP 1769 -#define F_TO_CHAR_TIMESTAMPTZ_TEXT 1770 -#define F_NUMERIC_UMINUS 1771 -#define F_TO_CHAR_NUMERIC_TEXT 1772 -#define F_TO_CHAR_INT4_TEXT 1773 -#define F_TO_CHAR_INT8_TEXT 1774 -#define F_TO_CHAR_FLOAT4_TEXT 1775 -#define F_TO_CHAR_FLOAT8_TEXT 1776 -#define F_TO_NUMBER 1777 -#define F_TO_TIMESTAMP_TEXT_TEXT 1778 -#define F_INT8_NUMERIC 1779 -#define F_TO_DATE 1780 -#define F_NUMERIC_INT8 1781 -#define F_NUMERIC_INT2 1782 -#define F_INT2_NUMERIC 1783 -#define F_OIDIN 1798 -#define F_OIDOUT 1799 -#define F_BIT_LENGTH_BYTEA 1810 -#define F_BIT_LENGTH_TEXT 1811 -#define F_BIT_LENGTH_BIT 1812 -#define F_CONVERT 1813 -#define F_ICLIKESEL 1814 -#define F_ICNLIKESEL 1815 -#define F_ICLIKEJOINSEL 1816 -#define F_ICNLIKEJOINSEL 1817 -#define F_REGEXEQSEL 1818 -#define F_LIKESEL 1819 -#define F_ICREGEXEQSEL 1820 -#define F_REGEXNESEL 1821 -#define F_NLIKESEL 1822 -#define F_ICREGEXNESEL 1823 -#define F_REGEXEQJOINSEL 1824 -#define F_LIKEJOINSEL 1825 -#define F_ICREGEXEQJOINSEL 1826 -#define F_REGEXNEJOINSEL 1827 -#define F_NLIKEJOINSEL 1828 -#define F_ICREGEXNEJOINSEL 1829 -#define F_FLOAT8_AVG 1830 -#define F_FLOAT8_VAR_SAMP 1831 -#define F_FLOAT8_STDDEV_SAMP 1832 -#define F_NUMERIC_ACCUM 1833 -#define F_INT2_ACCUM 1834 -#define F_INT4_ACCUM 1835 -#define F_INT8_ACCUM 1836 -#define F_NUMERIC_AVG 1837 -#define F_NUMERIC_VAR_SAMP 1838 -#define F_NUMERIC_STDDEV_SAMP 1839 -#define F_INT2_SUM 1840 -#define F_INT4_SUM 1841 -#define F_INT8_SUM 1842 -#define F_INTERVAL_ACCUM 1843 -#define F_INTERVAL_AVG 1844 -#define F_TO_ASCII_TEXT 1845 -#define F_TO_ASCII_TEXT_INT4 1846 -#define F_TO_ASCII_TEXT_NAME 1847 -#define F_INTERVAL_PL_TIME 1848 -#define F_INT28EQ 1850 -#define F_INT28NE 1851 -#define F_INT28LT 1852 -#define F_INT28GT 1853 -#define F_INT28LE 1854 -#define F_INT28GE 1855 -#define F_INT82EQ 1856 -#define F_INT82NE 1857 -#define F_INT82LT 1858 -#define F_INT82GT 1859 -#define F_INT82LE 1860 -#define F_INT82GE 1861 -#define F_INT2AND 1892 -#define F_INT2OR 1893 -#define F_INT2XOR 1894 -#define F_INT2NOT 1895 -#define F_INT2SHL 1896 -#define F_INT2SHR 1897 -#define F_INT4AND 1898 -#define F_INT4OR 1899 -#define F_INT4XOR 1900 -#define F_INT4NOT 1901 -#define F_INT4SHL 1902 -#define F_INT4SHR 1903 -#define F_INT8AND 1904 -#define F_INT8OR 1905 -#define F_INT8XOR 1906 -#define F_INT8NOT 1907 -#define F_INT8SHL 1908 -#define F_INT8SHR 1909 -#define F_INT8UP 1910 -#define F_INT2UP 1911 -#define F_INT4UP 1912 -#define F_FLOAT4UP 1913 -#define F_FLOAT8UP 1914 -#define F_NUMERIC_UPLUS 1915 -#define F_HAS_TABLE_PRIVILEGE_NAME_TEXT_TEXT 1922 -#define F_HAS_TABLE_PRIVILEGE_NAME_OID_TEXT 1923 -#define F_HAS_TABLE_PRIVILEGE_OID_TEXT_TEXT 1924 -#define F_HAS_TABLE_PRIVILEGE_OID_OID_TEXT 1925 -#define F_HAS_TABLE_PRIVILEGE_TEXT_TEXT 1926 -#define F_HAS_TABLE_PRIVILEGE_OID_TEXT 1927 -#define F_PG_STAT_GET_NUMSCANS 1928 -#define F_PG_STAT_GET_TUPLES_RETURNED 1929 -#define F_PG_STAT_GET_TUPLES_FETCHED 1930 -#define F_PG_STAT_GET_TUPLES_INSERTED 1931 -#define F_PG_STAT_GET_TUPLES_UPDATED 1932 -#define F_PG_STAT_GET_TUPLES_DELETED 1933 -#define F_PG_STAT_GET_BLOCKS_FETCHED 1934 -#define F_PG_STAT_GET_BLOCKS_HIT 1935 -#define F_PG_STAT_GET_BACKEND_IDSET 1936 -#define F_PG_STAT_GET_BACKEND_PID 1937 -#define F_PG_STAT_GET_BACKEND_DBID 1938 -#define F_PG_STAT_GET_BACKEND_USERID 1939 -#define F_PG_STAT_GET_BACKEND_ACTIVITY 1940 -#define F_PG_STAT_GET_DB_NUMBACKENDS 1941 -#define F_PG_STAT_GET_DB_XACT_COMMIT 1942 -#define F_PG_STAT_GET_DB_XACT_ROLLBACK 1943 -#define F_PG_STAT_GET_DB_BLOCKS_FETCHED 1944 -#define F_PG_STAT_GET_DB_BLOCKS_HIT 1945 -#define F_ENCODE 1946 -#define F_DECODE 1947 -#define F_BYTEAEQ 1948 -#define F_BYTEALT 1949 -#define F_BYTEALE 1950 -#define F_BYTEAGT 1951 -#define F_BYTEAGE 1952 -#define F_BYTEANE 1953 -#define F_BYTEACMP 1954 -#define F_TIMESTAMP_TIMESTAMP_INT4 1961 -#define F_INT2_AVG_ACCUM 1962 -#define F_INT4_AVG_ACCUM 1963 -#define F_INT8_AVG 1964 -#define F_OIDLARGER 1965 -#define F_OIDSMALLER 1966 -#define F_TIMESTAMPTZ_TIMESTAMPTZ_INT4 1967 -#define F_TIME_TIME_INT4 1968 -#define F_TIMETZ_TIMETZ_INT4 1969 -#define F_PG_STAT_GET_TUPLES_HOT_UPDATED 1972 -#define F_DIV 1973 -#define F_NUMERIC_DIV_TRUNC 1980 -#define F_SIMILAR_TO_ESCAPE_TEXT_TEXT 1986 -#define F_SIMILAR_TO_ESCAPE_TEXT 1987 -#define F_SHOBJ_DESCRIPTION 1993 -#define F_TEXTANYCAT 2003 -#define F_ANYTEXTCAT 2004 -#define F_BYTEALIKE 2005 -#define F_BYTEANLIKE 2006 -#define F_LIKE_BYTEA_BYTEA 2007 -#define F_NOTLIKE_BYTEA_BYTEA 2008 -#define F_LIKE_ESCAPE_BYTEA_BYTEA 2009 -#define F_LENGTH_BYTEA 2010 -#define F_BYTEACAT 2011 -#define F_SUBSTRING_BYTEA_INT4_INT4 2012 -#define F_SUBSTRING_BYTEA_INT4 2013 -#define F_POSITION_BYTEA_BYTEA 2014 -#define F_BTRIM_BYTEA_BYTEA 2015 -#define F_TIME_TIMESTAMPTZ 2019 -#define F_DATE_TRUNC_TEXT_TIMESTAMP 2020 -#define F_DATE_PART_TEXT_TIMESTAMP 2021 -#define F_PG_STAT_GET_ACTIVITY 2022 -#define F_JSONB_PATH_QUERY_FIRST_TZ 2023 -#define F_TIMESTAMP_DATE 2024 -#define F_TIMESTAMP_DATE_TIME 2025 -#define F_PG_BACKEND_PID 2026 -#define F_TIMESTAMP_TIMESTAMPTZ 2027 -#define F_TIMESTAMPTZ_TIMESTAMP 2028 -#define F_DATE_TIMESTAMP 2029 -#define F_JSONB_PATH_MATCH_TZ 2030 -#define F_TIMESTAMP_MI 2031 -#define F_TIMESTAMP_PL_INTERVAL 2032 -#define F_TIMESTAMP_MI_INTERVAL 2033 -#define F_PG_CONF_LOAD_TIME 2034 -#define F_TIMESTAMP_SMALLER 2035 -#define F_TIMESTAMP_LARGER 2036 -#define F_TIMEZONE_TEXT_TIMETZ 2037 -#define F_TIMEZONE_INTERVAL_TIMETZ 2038 -#define F_TIMESTAMP_HASH 2039 -#define F_OVERLAPS_TIMESTAMP_TIMESTAMP_TIMESTAMP_TIMESTAMP 2041 -#define F_OVERLAPS_TIMESTAMP_INTERVAL_TIMESTAMP_INTERVAL 2042 -#define F_OVERLAPS_TIMESTAMP_TIMESTAMP_TIMESTAMP_INTERVAL 2043 -#define F_OVERLAPS_TIMESTAMP_INTERVAL_TIMESTAMP_TIMESTAMP 2044 -#define F_TIMESTAMP_CMP 2045 -#define F_TIME_TIMETZ 2046 -#define F_TIMETZ_TIME 2047 -#define F_ISFINITE_TIMESTAMP 2048 -#define F_TO_CHAR_TIMESTAMP_TEXT 2049 -#define F_MAX_ANYARRAY 2050 -#define F_MIN_ANYARRAY 2051 -#define F_TIMESTAMP_EQ 2052 -#define F_TIMESTAMP_NE 2053 -#define F_TIMESTAMP_LT 2054 -#define F_TIMESTAMP_LE 2055 -#define F_TIMESTAMP_GE 2056 -#define F_TIMESTAMP_GT 2057 -#define F_AGE_TIMESTAMP_TIMESTAMP 2058 -#define F_AGE_TIMESTAMP 2059 -#define F_TIMEZONE_TEXT_TIMESTAMP 2069 -#define F_TIMEZONE_INTERVAL_TIMESTAMP 2070 -#define F_DATE_PL_INTERVAL 2071 -#define F_DATE_MI_INTERVAL 2072 -#define F_SUBSTRING_TEXT_TEXT 2073 -#define F_SUBSTRING_TEXT_TEXT_TEXT 2074 -#define F_BIT_INT8_INT4 2075 -#define F_INT8_BIT 2076 -#define F_CURRENT_SETTING_TEXT 2077 -#define F_SET_CONFIG 2078 -#define F_PG_TABLE_IS_VISIBLE 2079 -#define F_PG_TYPE_IS_VISIBLE 2080 -#define F_PG_FUNCTION_IS_VISIBLE 2081 -#define F_PG_OPERATOR_IS_VISIBLE 2082 -#define F_PG_OPCLASS_IS_VISIBLE 2083 -#define F_PG_SHOW_ALL_SETTINGS 2084 -#define F_SUBSTR_BYTEA_INT4_INT4 2085 -#define F_SUBSTR_BYTEA_INT4 2086 -#define F_REPLACE 2087 -#define F_SPLIT_PART 2088 -#define F_TO_HEX_INT4 2089 -#define F_TO_HEX_INT8 2090 -#define F_ARRAY_LOWER 2091 -#define F_ARRAY_UPPER 2092 -#define F_PG_CONVERSION_IS_VISIBLE 2093 -#define F_PG_STAT_GET_BACKEND_ACTIVITY_START 2094 -#define F_PG_TERMINATE_BACKEND 2096 -#define F_PG_GET_FUNCTIONDEF 2098 -#define F_AVG_INT8 2100 -#define F_AVG_INT4 2101 -#define F_AVG_INT2 2102 -#define F_AVG_NUMERIC 2103 -#define F_AVG_FLOAT4 2104 -#define F_AVG_FLOAT8 2105 -#define F_AVG_INTERVAL 2106 -#define F_SUM_INT8 2107 -#define F_SUM_INT4 2108 -#define F_SUM_INT2 2109 -#define F_SUM_FLOAT4 2110 -#define F_SUM_FLOAT8 2111 -#define F_SUM_MONEY 2112 -#define F_SUM_INTERVAL 2113 -#define F_SUM_NUMERIC 2114 -#define F_MAX_INT8 2115 -#define F_MAX_INT4 2116 -#define F_MAX_INT2 2117 -#define F_MAX_OID 2118 -#define F_MAX_FLOAT4 2119 -#define F_MAX_FLOAT8 2120 -#define F_PG_COLUMN_COMPRESSION 2121 -#define F_MAX_DATE 2122 -#define F_MAX_TIME 2123 -#define F_MAX_TIMETZ 2124 -#define F_MAX_MONEY 2125 -#define F_MAX_TIMESTAMP 2126 -#define F_MAX_TIMESTAMPTZ 2127 -#define F_MAX_INTERVAL 2128 -#define F_MAX_TEXT 2129 -#define F_MAX_NUMERIC 2130 -#define F_MIN_INT8 2131 -#define F_MIN_INT4 2132 -#define F_MIN_INT2 2133 -#define F_MIN_OID 2134 -#define F_MIN_FLOAT4 2135 -#define F_MIN_FLOAT8 2136 -#define F_PG_STAT_FORCE_NEXT_FLUSH 2137 -#define F_MIN_DATE 2138 -#define F_MIN_TIME 2139 -#define F_MIN_TIMETZ 2140 -#define F_MIN_MONEY 2141 -#define F_MIN_TIMESTAMP 2142 -#define F_MIN_TIMESTAMPTZ 2143 -#define F_MIN_INTERVAL 2144 -#define F_MIN_TEXT 2145 -#define F_MIN_NUMERIC 2146 -#define F_COUNT_ANY 2147 -#define F_VARIANCE_INT8 2148 -#define F_VARIANCE_INT4 2149 -#define F_VARIANCE_INT2 2150 -#define F_VARIANCE_FLOAT4 2151 -#define F_VARIANCE_FLOAT8 2152 -#define F_VARIANCE_NUMERIC 2153 -#define F_STDDEV_INT8 2154 -#define F_STDDEV_INT4 2155 -#define F_STDDEV_INT2 2156 -#define F_STDDEV_FLOAT4 2157 -#define F_STDDEV_FLOAT8 2158 -#define F_STDDEV_NUMERIC 2159 -#define F_TEXT_PATTERN_LT 2160 -#define F_TEXT_PATTERN_LE 2161 -#define F_PG_GET_FUNCTION_ARGUMENTS 2162 -#define F_TEXT_PATTERN_GE 2163 -#define F_TEXT_PATTERN_GT 2164 -#define F_PG_GET_FUNCTION_RESULT 2165 -#define F_BTTEXT_PATTERN_CMP 2166 -#define F_CEILING_NUMERIC 2167 -#define F_PG_DATABASE_SIZE_NAME 2168 -#define F_POWER_NUMERIC_NUMERIC 2169 -#define F_WIDTH_BUCKET_NUMERIC_NUMERIC_NUMERIC_INT4 2170 -#define F_PG_CANCEL_BACKEND 2171 -#define F_PG_BACKUP_START 2172 -#define F_BPCHAR_PATTERN_LT 2174 -#define F_BPCHAR_PATTERN_LE 2175 -#define F_ARRAY_LENGTH 2176 -#define F_BPCHAR_PATTERN_GE 2177 -#define F_BPCHAR_PATTERN_GT 2178 -#define F_GIST_POINT_CONSISTENT 2179 -#define F_BTBPCHAR_PATTERN_CMP 2180 -#define F_HAS_SEQUENCE_PRIVILEGE_NAME_TEXT_TEXT 2181 -#define F_HAS_SEQUENCE_PRIVILEGE_NAME_OID_TEXT 2182 -#define F_HAS_SEQUENCE_PRIVILEGE_OID_TEXT_TEXT 2183 -#define F_HAS_SEQUENCE_PRIVILEGE_OID_OID_TEXT 2184 -#define F_HAS_SEQUENCE_PRIVILEGE_TEXT_TEXT 2185 -#define F_HAS_SEQUENCE_PRIVILEGE_OID_TEXT 2186 -#define F_BTINT48CMP 2188 -#define F_BTINT84CMP 2189 -#define F_BTINT24CMP 2190 -#define F_BTINT42CMP 2191 -#define F_BTINT28CMP 2192 -#define F_BTINT82CMP 2193 -#define F_BTFLOAT48CMP 2194 -#define F_BTFLOAT84CMP 2195 -#define F_INET_CLIENT_ADDR 2196 -#define F_INET_CLIENT_PORT 2197 -#define F_INET_SERVER_ADDR 2198 -#define F_INET_SERVER_PORT 2199 -#define F_REGPROCEDUREIN 2212 -#define F_REGPROCEDUREOUT 2213 -#define F_REGOPERIN 2214 -#define F_REGOPEROUT 2215 -#define F_REGOPERATORIN 2216 -#define F_REGOPERATOROUT 2217 -#define F_REGCLASSIN 2218 -#define F_REGCLASSOUT 2219 -#define F_REGTYPEIN 2220 -#define F_REGTYPEOUT 2221 -#define F_PG_STAT_CLEAR_SNAPSHOT 2230 -#define F_PG_GET_FUNCTION_IDENTITY_ARGUMENTS 2232 -#define F_HASHTID 2233 -#define F_HASHTIDEXTENDED 2234 -#define F_BIT_AND_INT2 2236 -#define F_BIT_OR_INT2 2237 -#define F_BIT_AND_INT4 2238 -#define F_BIT_OR_INT4 2239 -#define F_BIT_AND_INT8 2240 -#define F_BIT_OR_INT8 2241 -#define F_BIT_AND_BIT 2242 -#define F_BIT_OR_BIT 2243 -#define F_MAX_BPCHAR 2244 -#define F_MIN_BPCHAR 2245 -#define F_FMGR_INTERNAL_VALIDATOR 2246 -#define F_FMGR_C_VALIDATOR 2247 -#define F_FMGR_SQL_VALIDATOR 2248 -#define F_HAS_DATABASE_PRIVILEGE_NAME_TEXT_TEXT 2250 -#define F_HAS_DATABASE_PRIVILEGE_NAME_OID_TEXT 2251 -#define F_HAS_DATABASE_PRIVILEGE_OID_TEXT_TEXT 2252 -#define F_HAS_DATABASE_PRIVILEGE_OID_OID_TEXT 2253 -#define F_HAS_DATABASE_PRIVILEGE_TEXT_TEXT 2254 -#define F_HAS_DATABASE_PRIVILEGE_OID_TEXT 2255 -#define F_HAS_FUNCTION_PRIVILEGE_NAME_TEXT_TEXT 2256 -#define F_HAS_FUNCTION_PRIVILEGE_NAME_OID_TEXT 2257 -#define F_HAS_FUNCTION_PRIVILEGE_OID_TEXT_TEXT 2258 -#define F_HAS_FUNCTION_PRIVILEGE_OID_OID_TEXT 2259 -#define F_HAS_FUNCTION_PRIVILEGE_TEXT_TEXT 2260 -#define F_HAS_FUNCTION_PRIVILEGE_OID_TEXT 2261 -#define F_HAS_LANGUAGE_PRIVILEGE_NAME_TEXT_TEXT 2262 -#define F_HAS_LANGUAGE_PRIVILEGE_NAME_OID_TEXT 2263 -#define F_HAS_LANGUAGE_PRIVILEGE_OID_TEXT_TEXT 2264 -#define F_HAS_LANGUAGE_PRIVILEGE_OID_OID_TEXT 2265 -#define F_HAS_LANGUAGE_PRIVILEGE_TEXT_TEXT 2266 -#define F_HAS_LANGUAGE_PRIVILEGE_OID_TEXT 2267 -#define F_HAS_SCHEMA_PRIVILEGE_NAME_TEXT_TEXT 2268 -#define F_HAS_SCHEMA_PRIVILEGE_NAME_OID_TEXT 2269 -#define F_HAS_SCHEMA_PRIVILEGE_OID_TEXT_TEXT 2270 -#define F_HAS_SCHEMA_PRIVILEGE_OID_OID_TEXT 2271 -#define F_HAS_SCHEMA_PRIVILEGE_TEXT_TEXT 2272 -#define F_HAS_SCHEMA_PRIVILEGE_OID_TEXT 2273 -#define F_PG_STAT_RESET 2274 -#define F_PG_GET_BACKEND_MEMORY_CONTEXTS 2282 -#define F_REGEXP_REPLACE_TEXT_TEXT_TEXT 2284 -#define F_REGEXP_REPLACE_TEXT_TEXT_TEXT_TEXT 2285 -#define F_PG_TOTAL_RELATION_SIZE 2286 -#define F_PG_SIZE_PRETTY_INT8 2288 -#define F_PG_OPTIONS_TO_TABLE 2289 -#define F_RECORD_IN 2290 -#define F_RECORD_OUT 2291 -#define F_CSTRING_IN 2292 -#define F_CSTRING_OUT 2293 -#define F_ANY_IN 2294 -#define F_ANY_OUT 2295 -#define F_ANYARRAY_IN 2296 -#define F_ANYARRAY_OUT 2297 -#define F_VOID_IN 2298 -#define F_VOID_OUT 2299 -#define F_TRIGGER_IN 2300 -#define F_TRIGGER_OUT 2301 -#define F_LANGUAGE_HANDLER_IN 2302 -#define F_LANGUAGE_HANDLER_OUT 2303 -#define F_INTERNAL_IN 2304 -#define F_INTERNAL_OUT 2305 -#define F_PG_STAT_GET_SLRU 2306 -#define F_PG_STAT_RESET_SLRU 2307 -#define F_CEIL_FLOAT8 2308 -#define F_FLOOR_FLOAT8 2309 -#define F_SIGN_FLOAT8 2310 -#define F_MD5_TEXT 2311 -#define F_ANYELEMENT_IN 2312 -#define F_ANYELEMENT_OUT 2313 -#define F_POSTGRESQL_FDW_VALIDATOR 2316 -#define F_PG_ENCODING_MAX_LENGTH 2319 -#define F_CEILING_FLOAT8 2320 -#define F_MD5_BYTEA 2321 -#define F_PG_TABLESPACE_SIZE_OID 2322 -#define F_PG_TABLESPACE_SIZE_NAME 2323 -#define F_PG_DATABASE_SIZE_OID 2324 -#define F_PG_RELATION_SIZE_REGCLASS 2325 -#define F_UNNEST_ANYARRAY 2331 -#define F_PG_RELATION_SIZE_REGCLASS_TEXT 2332 -#define F_ARRAY_AGG_TRANSFN 2333 -#define F_ARRAY_AGG_FINALFN 2334 -#define F_ARRAY_AGG_ANYNONARRAY 2335 -#define F_DATE_LT_TIMESTAMP 2338 -#define F_DATE_LE_TIMESTAMP 2339 -#define F_DATE_EQ_TIMESTAMP 2340 -#define F_DATE_GT_TIMESTAMP 2341 -#define F_DATE_GE_TIMESTAMP 2342 -#define F_DATE_NE_TIMESTAMP 2343 -#define F_DATE_CMP_TIMESTAMP 2344 -#define F_DATE_LT_TIMESTAMPTZ 2351 -#define F_DATE_LE_TIMESTAMPTZ 2352 -#define F_DATE_EQ_TIMESTAMPTZ 2353 -#define F_DATE_GT_TIMESTAMPTZ 2354 -#define F_DATE_GE_TIMESTAMPTZ 2355 -#define F_DATE_NE_TIMESTAMPTZ 2356 -#define F_DATE_CMP_TIMESTAMPTZ 2357 -#define F_TIMESTAMP_LT_DATE 2364 -#define F_TIMESTAMP_LE_DATE 2365 -#define F_TIMESTAMP_EQ_DATE 2366 -#define F_TIMESTAMP_GT_DATE 2367 -#define F_TIMESTAMP_GE_DATE 2368 -#define F_TIMESTAMP_NE_DATE 2369 -#define F_TIMESTAMP_CMP_DATE 2370 -#define F_TIMESTAMPTZ_LT_DATE 2377 -#define F_TIMESTAMPTZ_LE_DATE 2378 -#define F_TIMESTAMPTZ_EQ_DATE 2379 -#define F_TIMESTAMPTZ_GT_DATE 2380 -#define F_TIMESTAMPTZ_GE_DATE 2381 -#define F_TIMESTAMPTZ_NE_DATE 2382 -#define F_TIMESTAMPTZ_CMP_DATE 2383 -#define F_HAS_TABLESPACE_PRIVILEGE_NAME_TEXT_TEXT 2390 -#define F_HAS_TABLESPACE_PRIVILEGE_NAME_OID_TEXT 2391 -#define F_HAS_TABLESPACE_PRIVILEGE_OID_TEXT_TEXT 2392 -#define F_HAS_TABLESPACE_PRIVILEGE_OID_OID_TEXT 2393 -#define F_HAS_TABLESPACE_PRIVILEGE_TEXT_TEXT 2394 -#define F_HAS_TABLESPACE_PRIVILEGE_OID_TEXT 2395 -#define F_SHELL_IN 2398 -#define F_SHELL_OUT 2399 -#define F_ARRAY_RECV 2400 -#define F_ARRAY_SEND 2401 -#define F_RECORD_RECV 2402 -#define F_RECORD_SEND 2403 -#define F_INT2RECV 2404 -#define F_INT2SEND 2405 -#define F_INT4RECV 2406 -#define F_INT4SEND 2407 -#define F_INT8RECV 2408 -#define F_INT8SEND 2409 -#define F_INT2VECTORRECV 2410 -#define F_INT2VECTORSEND 2411 -#define F_BYTEARECV 2412 -#define F_BYTEASEND 2413 -#define F_TEXTRECV 2414 -#define F_TEXTSEND 2415 -#define F_UNKNOWNRECV 2416 -#define F_UNKNOWNSEND 2417 -#define F_OIDRECV 2418 -#define F_OIDSEND 2419 -#define F_OIDVECTORRECV 2420 -#define F_OIDVECTORSEND 2421 -#define F_NAMERECV 2422 -#define F_NAMESEND 2423 -#define F_FLOAT4RECV 2424 -#define F_FLOAT4SEND 2425 -#define F_FLOAT8RECV 2426 -#define F_FLOAT8SEND 2427 -#define F_POINT_RECV 2428 -#define F_POINT_SEND 2429 -#define F_BPCHARRECV 2430 -#define F_BPCHARSEND 2431 -#define F_VARCHARRECV 2432 -#define F_VARCHARSEND 2433 -#define F_CHARRECV 2434 -#define F_CHARSEND 2435 -#define F_BOOLRECV 2436 -#define F_BOOLSEND 2437 -#define F_TIDRECV 2438 -#define F_TIDSEND 2439 -#define F_XIDRECV 2440 -#define F_XIDSEND 2441 -#define F_CIDRECV 2442 -#define F_CIDSEND 2443 -#define F_REGPROCRECV 2444 -#define F_REGPROCSEND 2445 -#define F_REGPROCEDURERECV 2446 -#define F_REGPROCEDURESEND 2447 -#define F_REGOPERRECV 2448 -#define F_REGOPERSEND 2449 -#define F_REGOPERATORRECV 2450 -#define F_REGOPERATORSEND 2451 -#define F_REGCLASSRECV 2452 -#define F_REGCLASSSEND 2453 -#define F_REGTYPERECV 2454 -#define F_REGTYPESEND 2455 -#define F_BIT_RECV 2456 -#define F_BIT_SEND 2457 -#define F_VARBIT_RECV 2458 -#define F_VARBIT_SEND 2459 -#define F_NUMERIC_RECV 2460 -#define F_NUMERIC_SEND 2461 -#define F_SINH 2462 -#define F_COSH 2463 -#define F_TANH 2464 -#define F_ASINH 2465 -#define F_ACOSH 2466 -#define F_ATANH 2467 -#define F_DATE_RECV 2468 -#define F_DATE_SEND 2469 -#define F_TIME_RECV 2470 -#define F_TIME_SEND 2471 -#define F_TIMETZ_RECV 2472 -#define F_TIMETZ_SEND 2473 -#define F_TIMESTAMP_RECV 2474 -#define F_TIMESTAMP_SEND 2475 -#define F_TIMESTAMPTZ_RECV 2476 -#define F_TIMESTAMPTZ_SEND 2477 -#define F_INTERVAL_RECV 2478 -#define F_INTERVAL_SEND 2479 -#define F_LSEG_RECV 2480 -#define F_LSEG_SEND 2481 -#define F_PATH_RECV 2482 -#define F_PATH_SEND 2483 -#define F_BOX_RECV 2484 -#define F_BOX_SEND 2485 -#define F_POLY_RECV 2486 -#define F_POLY_SEND 2487 -#define F_LINE_RECV 2488 -#define F_LINE_SEND 2489 -#define F_CIRCLE_RECV 2490 -#define F_CIRCLE_SEND 2491 -#define F_CASH_RECV 2492 -#define F_CASH_SEND 2493 -#define F_MACADDR_RECV 2494 -#define F_MACADDR_SEND 2495 -#define F_INET_RECV 2496 -#define F_INET_SEND 2497 -#define F_CIDR_RECV 2498 -#define F_CIDR_SEND 2499 -#define F_CSTRING_RECV 2500 -#define F_CSTRING_SEND 2501 -#define F_ANYARRAY_RECV 2502 -#define F_ANYARRAY_SEND 2503 -#define F_PG_GET_RULEDEF_OID_BOOL 2504 -#define F_PG_GET_VIEWDEF_TEXT_BOOL 2505 -#define F_PG_GET_VIEWDEF_OID_BOOL 2506 -#define F_PG_GET_INDEXDEF_OID_INT4_BOOL 2507 -#define F_PG_GET_CONSTRAINTDEF_OID_BOOL 2508 -#define F_PG_GET_EXPR_PG_NODE_TREE_OID_BOOL 2509 -#define F_PG_PREPARED_STATEMENT 2510 -#define F_PG_CURSOR 2511 -#define F_FLOAT8_VAR_POP 2512 -#define F_FLOAT8_STDDEV_POP 2513 -#define F_NUMERIC_VAR_POP 2514 -#define F_BOOLAND_STATEFUNC 2515 -#define F_BOOLOR_STATEFUNC 2516 -#define F_BOOL_AND 2517 -#define F_BOOL_OR 2518 -#define F_EVERY 2519 -#define F_TIMESTAMP_LT_TIMESTAMPTZ 2520 -#define F_TIMESTAMP_LE_TIMESTAMPTZ 2521 -#define F_TIMESTAMP_EQ_TIMESTAMPTZ 2522 -#define F_TIMESTAMP_GT_TIMESTAMPTZ 2523 -#define F_TIMESTAMP_GE_TIMESTAMPTZ 2524 -#define F_TIMESTAMP_NE_TIMESTAMPTZ 2525 -#define F_TIMESTAMP_CMP_TIMESTAMPTZ 2526 -#define F_TIMESTAMPTZ_LT_TIMESTAMP 2527 -#define F_TIMESTAMPTZ_LE_TIMESTAMP 2528 -#define F_TIMESTAMPTZ_EQ_TIMESTAMP 2529 -#define F_TIMESTAMPTZ_GT_TIMESTAMP 2530 -#define F_TIMESTAMPTZ_GE_TIMESTAMP 2531 -#define F_TIMESTAMPTZ_NE_TIMESTAMP 2532 -#define F_TIMESTAMPTZ_CMP_TIMESTAMP 2533 -#define F_INTERVAL_PL_DATE 2546 -#define F_INTERVAL_PL_TIMETZ 2547 -#define F_INTERVAL_PL_TIMESTAMP 2548 -#define F_INTERVAL_PL_TIMESTAMPTZ 2549 -#define F_INTEGER_PL_DATE 2550 -#define F_PG_TABLESPACE_DATABASES 2556 -#define F_BOOL_INT4 2557 -#define F_INT4_BOOL 2558 -#define F_LASTVAL 2559 -#define F_PG_POSTMASTER_START_TIME 2560 -#define F_PG_BLOCKING_PIDS 2561 -#define F_BOX_BELOW 2562 -#define F_BOX_OVERBELOW 2563 -#define F_BOX_OVERABOVE 2564 -#define F_BOX_ABOVE 2565 -#define F_POLY_BELOW 2566 -#define F_POLY_OVERBELOW 2567 -#define F_POLY_OVERABOVE 2568 -#define F_POLY_ABOVE 2569 -#define F_GIST_BOX_CONSISTENT 2578 -#define F_FLOAT8_JSONB 2580 -#define F_GIST_BOX_PENALTY 2581 -#define F_GIST_BOX_PICKSPLIT 2582 -#define F_GIST_BOX_UNION 2583 -#define F_GIST_BOX_SAME 2584 -#define F_GIST_POLY_CONSISTENT 2585 -#define F_GIST_POLY_COMPRESS 2586 -#define F_CIRCLE_OVERBELOW 2587 -#define F_CIRCLE_OVERABOVE 2588 -#define F_GIST_CIRCLE_CONSISTENT 2591 -#define F_GIST_CIRCLE_COMPRESS 2592 -#define F_NUMERIC_STDDEV_POP 2596 -#define F_DOMAIN_IN 2597 -#define F_DOMAIN_RECV 2598 -#define F_PG_TIMEZONE_ABBREVS 2599 -#define F_XMLEXISTS 2614 -#define F_PG_RELOAD_CONF 2621 -#define F_PG_ROTATE_LOGFILE 2622 -#define F_PG_STAT_FILE_TEXT 2623 -#define F_PG_READ_FILE_TEXT_INT8_INT8 2624 -#define F_PG_LS_DIR_TEXT 2625 -#define F_PG_SLEEP 2626 -#define F_INETNOT 2627 -#define F_INETAND 2628 -#define F_INETOR 2629 -#define F_INETPL 2630 -#define F_INT8PL_INET 2631 -#define F_INETMI_INT8 2632 -#define F_INETMI 2633 -#define F_VAR_SAMP_INT8 2641 -#define F_VAR_SAMP_INT4 2642 -#define F_VAR_SAMP_INT2 2643 -#define F_VAR_SAMP_FLOAT4 2644 -#define F_VAR_SAMP_FLOAT8 2645 -#define F_VAR_SAMP_NUMERIC 2646 -#define F_TRANSACTION_TIMESTAMP 2647 -#define F_STATEMENT_TIMESTAMP 2648 -#define F_CLOCK_TIMESTAMP 2649 -#define F_GIN_CMP_PREFIX 2700 -#define F_PG_HAS_ROLE_NAME_NAME_TEXT 2705 -#define F_PG_HAS_ROLE_NAME_OID_TEXT 2706 -#define F_PG_HAS_ROLE_OID_NAME_TEXT 2707 -#define F_PG_HAS_ROLE_OID_OID_TEXT 2708 -#define F_PG_HAS_ROLE_NAME_TEXT 2709 -#define F_PG_HAS_ROLE_OID_TEXT 2710 -#define F_JUSTIFY_INTERVAL 2711 -#define F_STDDEV_SAMP_INT8 2712 -#define F_STDDEV_SAMP_INT4 2713 -#define F_STDDEV_SAMP_INT2 2714 -#define F_STDDEV_SAMP_FLOAT4 2715 -#define F_STDDEV_SAMP_FLOAT8 2716 -#define F_STDDEV_SAMP_NUMERIC 2717 -#define F_VAR_POP_INT8 2718 -#define F_VAR_POP_INT4 2719 -#define F_VAR_POP_INT2 2720 -#define F_VAR_POP_FLOAT4 2721 -#define F_VAR_POP_FLOAT8 2722 -#define F_VAR_POP_NUMERIC 2723 -#define F_STDDEV_POP_INT8 2724 -#define F_STDDEV_POP_INT4 2725 -#define F_STDDEV_POP_INT2 2726 -#define F_STDDEV_POP_FLOAT4 2727 -#define F_STDDEV_POP_FLOAT8 2728 -#define F_STDDEV_POP_NUMERIC 2729 -#define F_PG_GET_TRIGGERDEF_OID_BOOL 2730 -#define F_ASIND 2731 -#define F_ACOSD 2732 -#define F_ATAND 2733 -#define F_ATAN2D 2734 -#define F_SIND 2735 -#define F_COSD 2736 -#define F_TAND 2737 -#define F_COTD 2738 -#define F_PG_BACKUP_STOP 2739 -#define F_NUMERIC_AVG_SERIALIZE 2740 -#define F_NUMERIC_AVG_DESERIALIZE 2741 -#define F_GINARRAYEXTRACT_ANYARRAY_INTERNAL_INTERNAL 2743 -#define F_GINARRAYCONSISTENT 2744 -#define F_INT8_AVG_ACCUM 2746 -#define F_ARRAYOVERLAP 2747 -#define F_ARRAYCONTAINS 2748 -#define F_ARRAYCONTAINED 2749 -#define F_PG_STAT_GET_DB_TUPLES_RETURNED 2758 -#define F_PG_STAT_GET_DB_TUPLES_FETCHED 2759 -#define F_PG_STAT_GET_DB_TUPLES_INSERTED 2760 -#define F_PG_STAT_GET_DB_TUPLES_UPDATED 2761 -#define F_PG_STAT_GET_DB_TUPLES_DELETED 2762 -#define F_REGEXP_MATCHES_TEXT_TEXT 2763 -#define F_REGEXP_MATCHES_TEXT_TEXT_TEXT 2764 -#define F_REGEXP_SPLIT_TO_TABLE_TEXT_TEXT 2765 -#define F_REGEXP_SPLIT_TO_TABLE_TEXT_TEXT_TEXT 2766 -#define F_REGEXP_SPLIT_TO_ARRAY_TEXT_TEXT 2767 -#define F_REGEXP_SPLIT_TO_ARRAY_TEXT_TEXT_TEXT 2768 -#define F_PG_STAT_GET_BGWRITER_TIMED_CHECKPOINTS 2769 -#define F_PG_STAT_GET_BGWRITER_REQUESTED_CHECKPOINTS 2770 -#define F_PG_STAT_GET_BGWRITER_BUF_WRITTEN_CHECKPOINTS 2771 -#define F_PG_STAT_GET_BGWRITER_BUF_WRITTEN_CLEAN 2772 -#define F_PG_STAT_GET_BGWRITER_MAXWRITTEN_CLEAN 2773 -#define F_GINQUERYARRAYEXTRACT 2774 -#define F_PG_STAT_GET_BUF_WRITTEN_BACKEND 2775 -#define F_ANYNONARRAY_IN 2777 -#define F_ANYNONARRAY_OUT 2778 -#define F_PG_STAT_GET_LAST_VACUUM_TIME 2781 -#define F_PG_STAT_GET_LAST_AUTOVACUUM_TIME 2782 -#define F_PG_STAT_GET_LAST_ANALYZE_TIME 2783 -#define F_PG_STAT_GET_LAST_AUTOANALYZE_TIME 2784 -#define F_INT8_AVG_COMBINE 2785 -#define F_INT8_AVG_SERIALIZE 2786 -#define F_INT8_AVG_DESERIALIZE 2787 -#define F_PG_STAT_GET_BACKEND_WAIT_EVENT_TYPE 2788 -#define F_TIDGT 2790 -#define F_TIDLT 2791 -#define F_TIDGE 2792 -#define F_TIDLE 2793 -#define F_BTTIDCMP 2794 -#define F_TIDLARGER 2795 -#define F_TIDSMALLER 2796 -#define F_MAX_TID 2797 -#define F_MIN_TID 2798 -#define F_COUNT_ 2803 -#define F_INT8INC_ANY 2804 -#define F_INT8INC_FLOAT8_FLOAT8 2805 -#define F_FLOAT8_REGR_ACCUM 2806 -#define F_FLOAT8_REGR_SXX 2807 -#define F_FLOAT8_REGR_SYY 2808 -#define F_FLOAT8_REGR_SXY 2809 -#define F_FLOAT8_REGR_AVGX 2810 -#define F_FLOAT8_REGR_AVGY 2811 -#define F_FLOAT8_REGR_R2 2812 -#define F_FLOAT8_REGR_SLOPE 2813 -#define F_FLOAT8_REGR_INTERCEPT 2814 -#define F_FLOAT8_COVAR_POP 2815 -#define F_FLOAT8_COVAR_SAMP 2816 -#define F_FLOAT8_CORR 2817 -#define F_REGR_COUNT 2818 -#define F_REGR_SXX 2819 -#define F_REGR_SYY 2820 -#define F_REGR_SXY 2821 -#define F_REGR_AVGX 2822 -#define F_REGR_AVGY 2823 -#define F_REGR_R2 2824 -#define F_REGR_SLOPE 2825 -#define F_REGR_INTERCEPT 2826 -#define F_COVAR_POP 2827 -#define F_COVAR_SAMP 2828 -#define F_CORR 2829 -#define F_PG_STAT_GET_DB_BLK_READ_TIME 2844 -#define F_PG_STAT_GET_DB_BLK_WRITE_TIME 2845 -#define F_PG_SWITCH_WAL 2848 -#define F_PG_CURRENT_WAL_LSN 2849 -#define F_PG_WALFILE_NAME_OFFSET 2850 -#define F_PG_WALFILE_NAME 2851 -#define F_PG_CURRENT_WAL_INSERT_LSN 2852 -#define F_PG_STAT_GET_BACKEND_WAIT_EVENT 2853 -#define F_PG_MY_TEMP_SCHEMA 2854 -#define F_PG_IS_OTHER_TEMP_SCHEMA 2855 -#define F_PG_TIMEZONE_NAMES 2856 -#define F_PG_STAT_GET_BACKEND_XACT_START 2857 -#define F_NUMERIC_AVG_ACCUM 2858 -#define F_PG_STAT_GET_BUF_ALLOC 2859 -#define F_PG_STAT_GET_LIVE_TUPLES 2878 -#define F_PG_STAT_GET_DEAD_TUPLES 2879 -#define F_PG_ADVISORY_LOCK_INT8 2880 -#define F_PG_ADVISORY_LOCK_SHARED_INT8 2881 -#define F_PG_TRY_ADVISORY_LOCK_INT8 2882 -#define F_PG_TRY_ADVISORY_LOCK_SHARED_INT8 2883 -#define F_PG_ADVISORY_UNLOCK_INT8 2884 -#define F_PG_ADVISORY_UNLOCK_SHARED_INT8 2885 -#define F_PG_ADVISORY_LOCK_INT4_INT4 2886 -#define F_PG_ADVISORY_LOCK_SHARED_INT4_INT4 2887 -#define F_PG_TRY_ADVISORY_LOCK_INT4_INT4 2888 -#define F_PG_TRY_ADVISORY_LOCK_SHARED_INT4_INT4 2889 -#define F_PG_ADVISORY_UNLOCK_INT4_INT4 2890 -#define F_PG_ADVISORY_UNLOCK_SHARED_INT4_INT4 2891 -#define F_PG_ADVISORY_UNLOCK_ALL 2892 -#define F_XML_IN 2893 -#define F_XML_OUT 2894 -#define F_XMLCOMMENT 2895 -#define F_XML 2896 -#define F_XMLVALIDATE 2897 -#define F_XML_RECV 2898 -#define F_XML_SEND 2899 -#define F_XMLCONCAT2 2900 -#define F_XMLAGG 2901 -#define F_VARBITTYPMODIN 2902 -#define F_INTERVALTYPMODIN 2903 -#define F_INTERVALTYPMODOUT 2904 -#define F_TIMESTAMPTYPMODIN 2905 -#define F_TIMESTAMPTYPMODOUT 2906 -#define F_TIMESTAMPTZTYPMODIN 2907 -#define F_TIMESTAMPTZTYPMODOUT 2908 -#define F_TIMETYPMODIN 2909 -#define F_TIMETYPMODOUT 2910 -#define F_TIMETZTYPMODIN 2911 -#define F_TIMETZTYPMODOUT 2912 -#define F_BPCHARTYPMODIN 2913 -#define F_BPCHARTYPMODOUT 2914 -#define F_VARCHARTYPMODIN 2915 -#define F_VARCHARTYPMODOUT 2916 -#define F_NUMERICTYPMODIN 2917 -#define F_NUMERICTYPMODOUT 2918 -#define F_BITTYPMODIN 2919 -#define F_BITTYPMODOUT 2920 -#define F_VARBITTYPMODOUT 2921 -#define F_TEXT_XML 2922 -#define F_TABLE_TO_XML 2923 -#define F_QUERY_TO_XML 2924 -#define F_CURSOR_TO_XML 2925 -#define F_TABLE_TO_XMLSCHEMA 2926 -#define F_QUERY_TO_XMLSCHEMA 2927 -#define F_CURSOR_TO_XMLSCHEMA 2928 -#define F_TABLE_TO_XML_AND_XMLSCHEMA 2929 -#define F_QUERY_TO_XML_AND_XMLSCHEMA 2930 -#define F_XPATH_TEXT_XML__TEXT 2931 -#define F_XPATH_TEXT_XML 2932 -#define F_SCHEMA_TO_XML 2933 -#define F_SCHEMA_TO_XMLSCHEMA 2934 -#define F_SCHEMA_TO_XML_AND_XMLSCHEMA 2935 -#define F_DATABASE_TO_XML 2936 -#define F_DATABASE_TO_XMLSCHEMA 2937 -#define F_DATABASE_TO_XML_AND_XMLSCHEMA 2938 -#define F_TXID_SNAPSHOT_IN 2939 -#define F_TXID_SNAPSHOT_OUT 2940 -#define F_TXID_SNAPSHOT_RECV 2941 -#define F_TXID_SNAPSHOT_SEND 2942 -#define F_TXID_CURRENT 2943 -#define F_TXID_CURRENT_SNAPSHOT 2944 -#define F_TXID_SNAPSHOT_XMIN 2945 -#define F_TXID_SNAPSHOT_XMAX 2946 -#define F_TXID_SNAPSHOT_XIP 2947 -#define F_TXID_VISIBLE_IN_SNAPSHOT 2948 -#define F_UUID_IN 2952 -#define F_UUID_OUT 2953 -#define F_UUID_LT 2954 -#define F_UUID_LE 2955 -#define F_UUID_EQ 2956 -#define F_UUID_GE 2957 -#define F_UUID_GT 2958 -#define F_UUID_NE 2959 -#define F_UUID_CMP 2960 -#define F_UUID_RECV 2961 -#define F_UUID_SEND 2962 -#define F_UUID_HASH 2963 -#define F_TEXT_BOOL 2971 -#define F_PG_STAT_GET_FUNCTION_CALLS 2978 -#define F_PG_STAT_GET_FUNCTION_TOTAL_TIME 2979 -#define F_PG_STAT_GET_FUNCTION_SELF_TIME 2980 -#define F_RECORD_EQ 2981 -#define F_RECORD_NE 2982 -#define F_RECORD_LT 2983 -#define F_RECORD_GT 2984 -#define F_RECORD_LE 2985 -#define F_RECORD_GE 2986 -#define F_BTRECORDCMP 2987 -#define F_PG_TABLE_SIZE 2997 -#define F_PG_INDEXES_SIZE 2998 -#define F_PG_RELATION_FILENODE 2999 -#define F_HAS_FOREIGN_DATA_WRAPPER_PRIVILEGE_NAME_TEXT_TEXT 3000 -#define F_HAS_FOREIGN_DATA_WRAPPER_PRIVILEGE_NAME_OID_TEXT 3001 -#define F_HAS_FOREIGN_DATA_WRAPPER_PRIVILEGE_OID_TEXT_TEXT 3002 -#define F_HAS_FOREIGN_DATA_WRAPPER_PRIVILEGE_OID_OID_TEXT 3003 -#define F_HAS_FOREIGN_DATA_WRAPPER_PRIVILEGE_TEXT_TEXT 3004 -#define F_HAS_FOREIGN_DATA_WRAPPER_PRIVILEGE_OID_TEXT 3005 -#define F_HAS_SERVER_PRIVILEGE_NAME_TEXT_TEXT 3006 -#define F_HAS_SERVER_PRIVILEGE_NAME_OID_TEXT 3007 -#define F_HAS_SERVER_PRIVILEGE_OID_TEXT_TEXT 3008 -#define F_HAS_SERVER_PRIVILEGE_OID_OID_TEXT 3009 -#define F_HAS_SERVER_PRIVILEGE_TEXT_TEXT 3010 -#define F_HAS_SERVER_PRIVILEGE_OID_TEXT 3011 -#define F_HAS_COLUMN_PRIVILEGE_NAME_TEXT_TEXT_TEXT 3012 -#define F_HAS_COLUMN_PRIVILEGE_NAME_TEXT_INT2_TEXT 3013 -#define F_HAS_COLUMN_PRIVILEGE_NAME_OID_TEXT_TEXT 3014 -#define F_HAS_COLUMN_PRIVILEGE_NAME_OID_INT2_TEXT 3015 -#define F_HAS_COLUMN_PRIVILEGE_OID_TEXT_TEXT_TEXT 3016 -#define F_HAS_COLUMN_PRIVILEGE_OID_TEXT_INT2_TEXT 3017 -#define F_HAS_COLUMN_PRIVILEGE_OID_OID_TEXT_TEXT 3018 -#define F_HAS_COLUMN_PRIVILEGE_OID_OID_INT2_TEXT 3019 -#define F_HAS_COLUMN_PRIVILEGE_TEXT_TEXT_TEXT 3020 -#define F_HAS_COLUMN_PRIVILEGE_TEXT_INT2_TEXT 3021 -#define F_HAS_COLUMN_PRIVILEGE_OID_TEXT_TEXT 3022 -#define F_HAS_COLUMN_PRIVILEGE_OID_INT2_TEXT 3023 -#define F_HAS_ANY_COLUMN_PRIVILEGE_NAME_TEXT_TEXT 3024 -#define F_HAS_ANY_COLUMN_PRIVILEGE_NAME_OID_TEXT 3025 -#define F_HAS_ANY_COLUMN_PRIVILEGE_OID_TEXT_TEXT 3026 -#define F_HAS_ANY_COLUMN_PRIVILEGE_OID_OID_TEXT 3027 -#define F_HAS_ANY_COLUMN_PRIVILEGE_TEXT_TEXT 3028 -#define F_HAS_ANY_COLUMN_PRIVILEGE_OID_TEXT 3029 -#define F_OVERLAY_BIT_BIT_INT4_INT4 3030 -#define F_OVERLAY_BIT_BIT_INT4 3031 -#define F_GET_BIT_BIT_INT4 3032 -#define F_SET_BIT_BIT_INT4_INT4 3033 -#define F_PG_RELATION_FILEPATH 3034 -#define F_PG_LISTENING_CHANNELS 3035 -#define F_PG_NOTIFY 3036 -#define F_PG_STAT_GET_XACT_NUMSCANS 3037 -#define F_PG_STAT_GET_XACT_TUPLES_RETURNED 3038 -#define F_PG_STAT_GET_XACT_TUPLES_FETCHED 3039 -#define F_PG_STAT_GET_XACT_TUPLES_INSERTED 3040 -#define F_PG_STAT_GET_XACT_TUPLES_UPDATED 3041 -#define F_PG_STAT_GET_XACT_TUPLES_DELETED 3042 -#define F_PG_STAT_GET_XACT_TUPLES_HOT_UPDATED 3043 -#define F_PG_STAT_GET_XACT_BLOCKS_FETCHED 3044 -#define F_PG_STAT_GET_XACT_BLOCKS_HIT 3045 -#define F_PG_STAT_GET_XACT_FUNCTION_CALLS 3046 -#define F_PG_STAT_GET_XACT_FUNCTION_TOTAL_TIME 3047 -#define F_PG_STAT_GET_XACT_FUNCTION_SELF_TIME 3048 -#define F_XPATH_EXISTS_TEXT_XML__TEXT 3049 -#define F_XPATH_EXISTS_TEXT_XML 3050 -#define F_XML_IS_WELL_FORMED 3051 -#define F_XML_IS_WELL_FORMED_DOCUMENT 3052 -#define F_XML_IS_WELL_FORMED_CONTENT 3053 -#define F_PG_STAT_GET_VACUUM_COUNT 3054 -#define F_PG_STAT_GET_AUTOVACUUM_COUNT 3055 -#define F_PG_STAT_GET_ANALYZE_COUNT 3056 -#define F_PG_STAT_GET_AUTOANALYZE_COUNT 3057 -#define F_CONCAT 3058 -#define F_CONCAT_WS 3059 -#define F_LEFT 3060 -#define F_RIGHT 3061 -#define F_REVERSE 3062 -#define F_PG_STAT_GET_BUF_FSYNC_BACKEND 3063 -#define F_GIST_POINT_DISTANCE 3064 -#define F_PG_STAT_GET_DB_CONFLICT_TABLESPACE 3065 -#define F_PG_STAT_GET_DB_CONFLICT_LOCK 3066 -#define F_PG_STAT_GET_DB_CONFLICT_SNAPSHOT 3067 -#define F_PG_STAT_GET_DB_CONFLICT_BUFFERPIN 3068 -#define F_PG_STAT_GET_DB_CONFLICT_STARTUP_DEADLOCK 3069 -#define F_PG_STAT_GET_DB_CONFLICT_ALL 3070 -#define F_PG_WAL_REPLAY_PAUSE 3071 -#define F_PG_WAL_REPLAY_RESUME 3072 -#define F_PG_IS_WAL_REPLAY_PAUSED 3073 -#define F_PG_STAT_GET_DB_STAT_RESET_TIME 3074 -#define F_PG_STAT_GET_BGWRITER_STAT_RESET_TIME 3075 -#define F_GINARRAYEXTRACT_ANYARRAY_INTERNAL 3076 -#define F_GIN_EXTRACT_TSVECTOR_TSVECTOR_INTERNAL 3077 -#define F_PG_SEQUENCE_PARAMETERS 3078 -#define F_PG_AVAILABLE_EXTENSIONS 3082 -#define F_PG_AVAILABLE_EXTENSION_VERSIONS 3083 -#define F_PG_EXTENSION_UPDATE_PATHS 3084 -#define F_PG_EXTENSION_CONFIG_DUMP 3086 -#define F_GIN_EXTRACT_TSQUERY_TSQUERY_INTERNAL_INT2_INTERNAL_INTERNAL 3087 -#define F_GIN_TSQUERY_CONSISTENT_INTERNAL_INT2_TSQUERY_INT4_INTERNAL_INTERNAL 3088 -#define F_PG_ADVISORY_XACT_LOCK_INT8 3089 -#define F_PG_ADVISORY_XACT_LOCK_SHARED_INT8 3090 -#define F_PG_TRY_ADVISORY_XACT_LOCK_INT8 3091 -#define F_PG_TRY_ADVISORY_XACT_LOCK_SHARED_INT8 3092 -#define F_PG_ADVISORY_XACT_LOCK_INT4_INT4 3093 -#define F_PG_ADVISORY_XACT_LOCK_SHARED_INT4_INT4 3094 -#define F_PG_TRY_ADVISORY_XACT_LOCK_INT4_INT4 3095 -#define F_PG_TRY_ADVISORY_XACT_LOCK_SHARED_INT4_INT4 3096 -#define F_VARCHAR_SUPPORT 3097 -#define F_PG_CREATE_RESTORE_POINT 3098 -#define F_PG_STAT_GET_WAL_SENDERS 3099 -#define F_ROW_NUMBER 3100 -#define F_RANK_ 3101 -#define F_DENSE_RANK_ 3102 -#define F_PERCENT_RANK_ 3103 -#define F_CUME_DIST_ 3104 -#define F_NTILE 3105 -#define F_LAG_ANYELEMENT 3106 -#define F_LAG_ANYELEMENT_INT4 3107 -#define F_LAG_ANYCOMPATIBLE_INT4_ANYCOMPATIBLE 3108 -#define F_LEAD_ANYELEMENT 3109 -#define F_LEAD_ANYELEMENT_INT4 3110 -#define F_LEAD_ANYCOMPATIBLE_INT4_ANYCOMPATIBLE 3111 -#define F_FIRST_VALUE 3112 -#define F_LAST_VALUE 3113 -#define F_NTH_VALUE 3114 -#define F_FDW_HANDLER_IN 3116 -#define F_FDW_HANDLER_OUT 3117 -#define F_VOID_RECV 3120 -#define F_VOID_SEND 3121 -#define F_BTINT2SORTSUPPORT 3129 -#define F_BTINT4SORTSUPPORT 3130 -#define F_BTINT8SORTSUPPORT 3131 -#define F_BTFLOAT4SORTSUPPORT 3132 -#define F_BTFLOAT8SORTSUPPORT 3133 -#define F_BTOIDSORTSUPPORT 3134 -#define F_BTNAMESORTSUPPORT 3135 -#define F_DATE_SORTSUPPORT 3136 -#define F_TIMESTAMP_SORTSUPPORT 3137 -#define F_HAS_TYPE_PRIVILEGE_NAME_TEXT_TEXT 3138 -#define F_HAS_TYPE_PRIVILEGE_NAME_OID_TEXT 3139 -#define F_HAS_TYPE_PRIVILEGE_OID_TEXT_TEXT 3140 -#define F_HAS_TYPE_PRIVILEGE_OID_OID_TEXT 3141 -#define F_HAS_TYPE_PRIVILEGE_TEXT_TEXT 3142 -#define F_HAS_TYPE_PRIVILEGE_OID_TEXT 3143 -#define F_MACADDR_NOT 3144 -#define F_MACADDR_AND 3145 -#define F_MACADDR_OR 3146 -#define F_PG_STAT_GET_DB_TEMP_FILES 3150 -#define F_PG_STAT_GET_DB_TEMP_BYTES 3151 -#define F_PG_STAT_GET_DB_DEADLOCKS 3152 -#define F_ARRAY_TO_JSON_ANYARRAY 3153 -#define F_ARRAY_TO_JSON_ANYARRAY_BOOL 3154 -#define F_ROW_TO_JSON_RECORD 3155 -#define F_ROW_TO_JSON_RECORD_BOOL 3156 -#define F_NUMERIC_SUPPORT 3157 -#define F_VARBIT_SUPPORT 3158 -#define F_PG_GET_VIEWDEF_OID_INT4 3159 -#define F_PG_STAT_GET_CHECKPOINT_WRITE_TIME 3160 -#define F_PG_STAT_GET_CHECKPOINT_SYNC_TIME 3161 -#define F_PG_COLLATION_FOR 3162 -#define F_PG_TRIGGER_DEPTH 3163 -#define F_PG_WAL_LSN_DIFF 3165 -#define F_PG_SIZE_PRETTY_NUMERIC 3166 -#define F_ARRAY_REMOVE 3167 -#define F_ARRAY_REPLACE 3168 -#define F_RANGESEL 3169 -#define F_LO_LSEEK64 3170 -#define F_LO_TELL64 3171 -#define F_LO_TRUNCATE64 3172 -#define F_JSON_AGG_TRANSFN 3173 -#define F_JSON_AGG_FINALFN 3174 -#define F_JSON_AGG 3175 -#define F_TO_JSON 3176 -#define F_PG_STAT_GET_MOD_SINCE_ANALYZE 3177 -#define F_NUMERIC_SUM 3178 -#define F_CARDINALITY 3179 -#define F_JSON_OBJECT_AGG_TRANSFN 3180 -#define F_RECORD_IMAGE_EQ 3181 -#define F_RECORD_IMAGE_NE 3182 -#define F_RECORD_IMAGE_LT 3183 -#define F_RECORD_IMAGE_GT 3184 -#define F_RECORD_IMAGE_LE 3185 -#define F_RECORD_IMAGE_GE 3186 -#define F_BTRECORDIMAGECMP 3187 -#define F_PG_STAT_GET_ARCHIVER 3195 -#define F_JSON_OBJECT_AGG_FINALFN 3196 -#define F_JSON_OBJECT_AGG 3197 -#define F_JSON_BUILD_ARRAY_ANY 3198 -#define F_JSON_BUILD_ARRAY_ 3199 -#define F_JSON_BUILD_OBJECT_ANY 3200 -#define F_JSON_BUILD_OBJECT_ 3201 -#define F_JSON_OBJECT__TEXT 3202 -#define F_JSON_OBJECT__TEXT__TEXT 3203 -#define F_JSON_TO_RECORD 3204 -#define F_JSON_TO_RECORDSET 3205 -#define F_JSONB_ARRAY_LENGTH 3207 -#define F_JSONB_EACH 3208 -#define F_JSONB_POPULATE_RECORD 3209 -#define F_JSONB_TYPEOF 3210 -#define F_JSONB_OBJECT_FIELD_TEXT 3214 -#define F_JSONB_ARRAY_ELEMENT 3215 -#define F_JSONB_ARRAY_ELEMENT_TEXT 3216 -#define F_JSONB_EXTRACT_PATH 3217 -#define F_WIDTH_BUCKET_ANYCOMPATIBLE_ANYCOMPATIBLEARRAY 3218 -#define F_JSONB_ARRAY_ELEMENTS 3219 -#define F_PG_LSN_IN 3229 -#define F_PG_LSN_OUT 3230 -#define F_PG_LSN_LT 3231 -#define F_PG_LSN_LE 3232 -#define F_PG_LSN_EQ 3233 -#define F_PG_LSN_GE 3234 -#define F_PG_LSN_GT 3235 -#define F_PG_LSN_NE 3236 -#define F_PG_LSN_MI 3237 -#define F_PG_LSN_RECV 3238 -#define F_PG_LSN_SEND 3239 -#define F_PG_LSN_CMP 3251 -#define F_PG_LSN_HASH 3252 -#define F_BTTEXTSORTSUPPORT 3255 -#define F_GENERATE_SERIES_NUMERIC_NUMERIC_NUMERIC 3259 -#define F_GENERATE_SERIES_NUMERIC_NUMERIC 3260 -#define F_JSON_STRIP_NULLS 3261 -#define F_JSONB_STRIP_NULLS 3262 -#define F_JSONB_OBJECT__TEXT 3263 -#define F_JSONB_OBJECT__TEXT__TEXT 3264 -#define F_JSONB_AGG_TRANSFN 3265 -#define F_JSONB_AGG_FINALFN 3266 -#define F_JSONB_AGG 3267 -#define F_JSONB_OBJECT_AGG_TRANSFN 3268 -#define F_JSONB_OBJECT_AGG_FINALFN 3269 -#define F_JSONB_OBJECT_AGG 3270 -#define F_JSONB_BUILD_ARRAY_ANY 3271 -#define F_JSONB_BUILD_ARRAY_ 3272 -#define F_JSONB_BUILD_OBJECT_ANY 3273 -#define F_JSONB_BUILD_OBJECT_ 3274 -#define F_DIST_PPOLY 3275 -#define F_ARRAY_POSITION_ANYCOMPATIBLEARRAY_ANYCOMPATIBLE 3277 -#define F_ARRAY_POSITION_ANYCOMPATIBLEARRAY_ANYCOMPATIBLE_INT4 3278 -#define F_ARRAY_POSITIONS 3279 -#define F_GIST_CIRCLE_DISTANCE 3280 -#define F_SCALE 3281 -#define F_GIST_POINT_FETCH 3282 -#define F_NUMERIC_SORTSUPPORT 3283 -#define F_GIST_POLY_DISTANCE 3288 -#define F_DIST_CPOINT 3290 -#define F_DIST_POLYP 3292 -#define F_PG_READ_FILE_TEXT_INT8_INT8_BOOL 3293 -#define F_CURRENT_SETTING_TEXT_BOOL 3294 -#define F_PG_READ_BINARY_FILE_TEXT_INT8_INT8_BOOL 3295 -#define F_PG_NOTIFICATION_QUEUE_USAGE 3296 -#define F_PG_LS_DIR_TEXT_BOOL_BOOL 3297 -#define F_ROW_SECURITY_ACTIVE_OID 3298 -#define F_ROW_SECURITY_ACTIVE_TEXT 3299 -#define F_UUID_SORTSUPPORT 3300 -#define F_JSONB_CONCAT 3301 -#define F_JSONB_DELETE_JSONB_TEXT 3302 -#define F_JSONB_DELETE_JSONB_INT4 3303 -#define F_JSONB_DELETE_PATH 3304 -#define F_JSONB_SET 3305 -#define F_JSONB_PRETTY 3306 -#define F_PG_STAT_FILE_TEXT_BOOL 3307 -#define F_XIDNEQ 3308 -#define F_XIDNEQINT4 3309 -#define F_TSM_HANDLER_IN 3311 -#define F_TSM_HANDLER_OUT 3312 -#define F_BERNOULLI 3313 -#define F_SYSTEM 3314 -#define F_PG_STAT_GET_WAL_RECEIVER 3317 -#define F_PG_STAT_GET_PROGRESS_INFO 3318 -#define F_TS_FILTER 3319 -#define F_SETWEIGHT_TSVECTOR_CHAR__TEXT 3320 -#define F_TS_DELETE_TSVECTOR_TEXT 3321 -#define F_UNNEST_TSVECTOR 3322 -#define F_TS_DELETE_TSVECTOR__TEXT 3323 -#define F_INT4_AVG_COMBINE 3324 -#define F_INTERVAL_COMBINE 3325 -#define F_TSVECTOR_TO_ARRAY 3326 -#define F_ARRAY_TO_TSVECTOR 3327 -#define F_BPCHAR_SORTSUPPORT 3328 -#define F_PG_SHOW_ALL_FILE_SETTINGS 3329 -#define F_PG_CURRENT_WAL_FLUSH_LSN 3330 -#define F_BYTEA_SORTSUPPORT 3331 -#define F_BTTEXT_PATTERN_SORTSUPPORT 3332 -#define F_BTBPCHAR_PATTERN_SORTSUPPORT 3333 -#define F_PG_SIZE_BYTES 3334 -#define F_NUMERIC_SERIALIZE 3335 -#define F_NUMERIC_DESERIALIZE 3336 -#define F_NUMERIC_AVG_COMBINE 3337 -#define F_NUMERIC_POLY_COMBINE 3338 -#define F_NUMERIC_POLY_SERIALIZE 3339 -#define F_NUMERIC_POLY_DESERIALIZE 3340 -#define F_NUMERIC_COMBINE 3341 -#define F_FLOAT8_REGR_COMBINE 3342 -#define F_JSONB_DELETE_JSONB__TEXT 3343 -#define F_CASH_MUL_INT8 3344 -#define F_CASH_DIV_INT8 3345 -#define F_TXID_CURRENT_IF_ASSIGNED 3348 -#define F_PG_GET_PARTKEYDEF 3352 -#define F_PG_LS_LOGDIR 3353 -#define F_PG_LS_WALDIR 3354 -#define F_PG_NDISTINCT_IN 3355 -#define F_PG_NDISTINCT_OUT 3356 -#define F_PG_NDISTINCT_RECV 3357 -#define F_PG_NDISTINCT_SEND 3358 -#define F_MACADDR_SORTSUPPORT 3359 -#define F_TXID_STATUS 3360 -#define F_PG_SAFE_SNAPSHOT_BLOCKING_PIDS 3376 -#define F_PG_ISOLATION_TEST_SESSION_IS_BLOCKED 3378 -#define F_PG_IDENTIFY_OBJECT_AS_ADDRESS 3382 -#define F_BRIN_MINMAX_OPCINFO 3383 -#define F_BRIN_MINMAX_ADD_VALUE 3384 -#define F_BRIN_MINMAX_CONSISTENT 3385 -#define F_BRIN_MINMAX_UNION 3386 -#define F_INT8_AVG_ACCUM_INV 3387 -#define F_NUMERIC_POLY_SUM 3388 -#define F_NUMERIC_POLY_AVG 3389 -#define F_NUMERIC_POLY_VAR_POP 3390 -#define F_NUMERIC_POLY_VAR_SAMP 3391 -#define F_NUMERIC_POLY_STDDEV_POP 3392 -#define F_NUMERIC_POLY_STDDEV_SAMP 3393 -#define F_REGEXP_MATCH_TEXT_TEXT 3396 -#define F_REGEXP_MATCH_TEXT_TEXT_TEXT 3397 -#define F_INT8_MUL_CASH 3399 -#define F_PG_CONFIG 3400 -#define F_PG_HBA_FILE_RULES 3401 -#define F_PG_STATISTICS_OBJ_IS_VISIBLE 3403 -#define F_PG_DEPENDENCIES_IN 3404 -#define F_PG_DEPENDENCIES_OUT 3405 -#define F_PG_DEPENDENCIES_RECV 3406 -#define F_PG_DEPENDENCIES_SEND 3407 -#define F_PG_GET_PARTITION_CONSTRAINTDEF 3408 -#define F_TIME_HASH_EXTENDED 3409 -#define F_TIMETZ_HASH_EXTENDED 3410 -#define F_TIMESTAMP_HASH_EXTENDED 3411 -#define F_UUID_HASH_EXTENDED 3412 -#define F_PG_LSN_HASH_EXTENDED 3413 -#define F_HASHENUMEXTENDED 3414 -#define F_PG_GET_STATISTICSOBJDEF 3415 -#define F_JSONB_HASH_EXTENDED 3416 -#define F_HASH_RANGE_EXTENDED 3417 -#define F_INTERVAL_HASH_EXTENDED 3418 -#define F_SHA224 3419 -#define F_SHA256 3420 -#define F_SHA384 3421 -#define F_SHA512 3422 -#define F_PG_PARTITION_TREE 3423 -#define F_PG_PARTITION_ROOT 3424 -#define F_PG_PARTITION_ANCESTORS 3425 -#define F_PG_STAT_GET_DB_CHECKSUM_FAILURES 3426 -#define F_PG_MCV_LIST_ITEMS 3427 -#define F_PG_STAT_GET_DB_CHECKSUM_LAST_FAILURE 3428 -#define F_GEN_RANDOM_UUID 3432 -#define F_GTSVECTOR_OPTIONS 3434 -#define F_GIST_POINT_SORTSUPPORT 3435 -#define F_PG_PROMOTE 3436 -#define F_PREFIXSEL 3437 -#define F_PREFIXJOINSEL 3438 -#define F_PG_CONTROL_SYSTEM 3441 -#define F_PG_CONTROL_CHECKPOINT 3442 -#define F_PG_CONTROL_RECOVERY 3443 -#define F_PG_CONTROL_INIT 3444 -#define F_PG_IMPORT_SYSTEM_COLLATIONS 3445 -#define F_MACADDR8_RECV 3446 -#define F_MACADDR8_SEND 3447 -#define F_PG_COLLATION_ACTUAL_VERSION 3448 -#define F_NUMERIC_JSONB 3449 -#define F_INT2_JSONB 3450 -#define F_INT4_JSONB 3451 -#define F_INT8_JSONB 3452 -#define F_FLOAT4_JSONB 3453 -#define F_PG_FILENODE_RELATION 3454 -#define F_LO_FROM_BYTEA 3457 -#define F_LO_GET_OID 3458 -#define F_LO_GET_OID_INT8_INT4 3459 -#define F_LO_PUT 3460 -#define F_MAKE_TIMESTAMP 3461 -#define F_MAKE_TIMESTAMPTZ_INT4_INT4_INT4_INT4_INT4_FLOAT8 3462 -#define F_MAKE_TIMESTAMPTZ_INT4_INT4_INT4_INT4_INT4_FLOAT8_TEXT 3463 -#define F_MAKE_INTERVAL 3464 -#define F_JSONB_ARRAY_ELEMENTS_TEXT 3465 -#define F_SPG_RANGE_QUAD_CONFIG 3469 -#define F_SPG_RANGE_QUAD_CHOOSE 3470 -#define F_SPG_RANGE_QUAD_PICKSPLIT 3471 -#define F_SPG_RANGE_QUAD_INNER_CONSISTENT 3472 -#define F_SPG_RANGE_QUAD_LEAF_CONSISTENT 3473 -#define F_JSONB_POPULATE_RECORDSET 3475 -#define F_TO_REGOPERATOR 3476 -#define F_JSONB_OBJECT_FIELD 3478 -#define F_TO_REGPROCEDURE 3479 -#define F_GIN_COMPARE_JSONB 3480 -#define F_GIN_EXTRACT_JSONB 3482 -#define F_GIN_EXTRACT_JSONB_QUERY 3483 -#define F_GIN_CONSISTENT_JSONB 3484 -#define F_GIN_EXTRACT_JSONB_PATH 3485 -#define F_GIN_EXTRACT_JSONB_QUERY_PATH 3486 -#define F_GIN_CONSISTENT_JSONB_PATH 3487 -#define F_GIN_TRICONSISTENT_JSONB 3488 -#define F_GIN_TRICONSISTENT_JSONB_PATH 3489 -#define F_JSONB_TO_RECORD 3490 -#define F_JSONB_TO_RECORDSET 3491 -#define F_TO_REGOPER 3492 -#define F_TO_REGTYPE 3493 -#define F_TO_REGPROC 3494 -#define F_TO_REGCLASS 3495 -#define F_BOOL_ACCUM 3496 -#define F_BOOL_ACCUM_INV 3497 -#define F_BOOL_ALLTRUE 3498 -#define F_BOOL_ANYTRUE 3499 -#define F_ANYENUM_IN 3504 -#define F_ANYENUM_OUT 3505 -#define F_ENUM_IN 3506 -#define F_ENUM_OUT 3507 -#define F_ENUM_EQ 3508 -#define F_ENUM_NE 3509 -#define F_ENUM_LT 3510 -#define F_ENUM_GT 3511 -#define F_ENUM_LE 3512 -#define F_ENUM_GE 3513 -#define F_ENUM_CMP 3514 -#define F_HASHENUM 3515 -#define F_ENUM_SMALLER 3524 -#define F_ENUM_LARGER 3525 -#define F_MAX_ANYENUM 3526 -#define F_MIN_ANYENUM 3527 -#define F_ENUM_FIRST 3528 -#define F_ENUM_LAST 3529 -#define F_ENUM_RANGE_ANYENUM_ANYENUM 3530 -#define F_ENUM_RANGE_ANYENUM 3531 -#define F_ENUM_RECV 3532 -#define F_ENUM_SEND 3533 -#define F_STRING_AGG_TRANSFN 3535 -#define F_STRING_AGG_FINALFN 3536 -#define F_PG_DESCRIBE_OBJECT 3537 -#define F_STRING_AGG_TEXT_TEXT 3538 -#define F_FORMAT_TEXT_ANY 3539 -#define F_FORMAT_TEXT 3540 -#define F_BYTEA_STRING_AGG_TRANSFN 3543 -#define F_BYTEA_STRING_AGG_FINALFN 3544 -#define F_STRING_AGG_BYTEA_BYTEA 3545 -#define F_INT8DEC 3546 -#define F_INT8DEC_ANY 3547 -#define F_NUMERIC_ACCUM_INV 3548 -#define F_INTERVAL_ACCUM_INV 3549 -#define F_NETWORK_OVERLAP 3551 -#define F_INET_GIST_CONSISTENT 3553 -#define F_INET_GIST_UNION 3554 -#define F_INET_GIST_COMPRESS 3555 -#define F_BOOL_JSONB 3556 -#define F_INET_GIST_PENALTY 3557 -#define F_INET_GIST_PICKSPLIT 3558 -#define F_INET_GIST_SAME 3559 -#define F_NETWORKSEL 3560 -#define F_NETWORKJOINSEL 3561 -#define F_NETWORK_LARGER 3562 -#define F_NETWORK_SMALLER 3563 -#define F_MAX_INET 3564 -#define F_MIN_INET 3565 -#define F_PG_EVENT_TRIGGER_DROPPED_OBJECTS 3566 -#define F_INT2_ACCUM_INV 3567 -#define F_INT4_ACCUM_INV 3568 -#define F_INT8_ACCUM_INV 3569 -#define F_INT2_AVG_ACCUM_INV 3570 -#define F_INT4_AVG_ACCUM_INV 3571 -#define F_INT2INT4_SUM 3572 -#define F_INET_GIST_FETCH 3573 -#define F_PG_LOGICAL_EMIT_MESSAGE_BOOL_TEXT_TEXT 3577 -#define F_PG_LOGICAL_EMIT_MESSAGE_BOOL_TEXT_BYTEA 3578 -#define F_JSONB_INSERT 3579 -#define F_PG_XACT_COMMIT_TIMESTAMP 3581 -#define F_BINARY_UPGRADE_SET_NEXT_PG_TYPE_OID 3582 -#define F_PG_LAST_COMMITTED_XACT 3583 -#define F_BINARY_UPGRADE_SET_NEXT_ARRAY_PG_TYPE_OID 3584 -#define F_BINARY_UPGRADE_SET_NEXT_HEAP_PG_CLASS_OID 3586 -#define F_BINARY_UPGRADE_SET_NEXT_INDEX_PG_CLASS_OID 3587 -#define F_BINARY_UPGRADE_SET_NEXT_TOAST_PG_CLASS_OID 3588 -#define F_BINARY_UPGRADE_SET_NEXT_PG_ENUM_OID 3589 -#define F_BINARY_UPGRADE_SET_NEXT_PG_AUTHID_OID 3590 -#define F_BINARY_UPGRADE_CREATE_EMPTY_EXTENSION 3591 -#define F_EVENT_TRIGGER_IN 3594 -#define F_EVENT_TRIGGER_OUT 3595 -#define F_TSVECTORIN 3610 -#define F_TSVECTOROUT 3611 -#define F_TSQUERYIN 3612 -#define F_TSQUERYOUT 3613 -#define F_TSVECTOR_LT 3616 -#define F_TSVECTOR_LE 3617 -#define F_TSVECTOR_EQ 3618 -#define F_TSVECTOR_NE 3619 -#define F_TSVECTOR_GE 3620 -#define F_TSVECTOR_GT 3621 -#define F_TSVECTOR_CMP 3622 -#define F_STRIP 3623 -#define F_SETWEIGHT_TSVECTOR_CHAR 3624 -#define F_TSVECTOR_CONCAT 3625 -#define F_TS_MATCH_VQ 3634 -#define F_TS_MATCH_QV 3635 -#define F_TSVECTORSEND 3638 -#define F_TSVECTORRECV 3639 -#define F_TSQUERYSEND 3640 -#define F_TSQUERYRECV 3641 -#define F_GTSVECTORIN 3646 -#define F_GTSVECTOROUT 3647 -#define F_GTSVECTOR_COMPRESS 3648 -#define F_GTSVECTOR_DECOMPRESS 3649 -#define F_GTSVECTOR_PICKSPLIT 3650 -#define F_GTSVECTOR_UNION 3651 -#define F_GTSVECTOR_SAME 3652 -#define F_GTSVECTOR_PENALTY 3653 -#define F_GTSVECTOR_CONSISTENT_INTERNAL_TSVECTOR_INT2_OID_INTERNAL 3654 -#define F_GIN_EXTRACT_TSVECTOR_TSVECTOR_INTERNAL_INTERNAL 3656 -#define F_GIN_EXTRACT_TSQUERY_TSVECTOR_INTERNAL_INT2_INTERNAL_INTERNAL_INTERNAL_INTERNAL 3657 -#define F_GIN_TSQUERY_CONSISTENT_INTERNAL_INT2_TSVECTOR_INT4_INTERNAL_INTERNAL_INTERNAL_INTERNAL 3658 -#define F_TSQUERY_LT 3662 -#define F_TSQUERY_LE 3663 -#define F_TSQUERY_EQ 3664 -#define F_TSQUERY_NE 3665 -#define F_TSQUERY_GE 3666 -#define F_TSQUERY_GT 3667 -#define F_TSQUERY_CMP 3668 -#define F_TSQUERY_AND 3669 -#define F_TSQUERY_OR 3670 -#define F_TSQUERY_NOT 3671 -#define F_NUMNODE 3672 -#define F_QUERYTREE 3673 -#define F_TS_REWRITE_TSQUERY_TSQUERY_TSQUERY 3684 -#define F_TS_REWRITE_TSQUERY_TEXT 3685 -#define F_TSMATCHSEL 3686 -#define F_TSMATCHJOINSEL 3687 -#define F_TS_TYPANALYZE 3688 -#define F_TS_STAT_TEXT 3689 -#define F_TS_STAT_TEXT_TEXT 3690 -#define F_TSQ_MCONTAINS 3691 -#define F_TSQ_MCONTAINED 3692 -#define F_GTSQUERY_COMPRESS 3695 -#define F_STARTS_WITH 3696 -#define F_GTSQUERY_PICKSPLIT 3697 -#define F_GTSQUERY_UNION 3698 -#define F_GTSQUERY_SAME 3699 -#define F_GTSQUERY_PENALTY 3700 -#define F_GTSQUERY_CONSISTENT_INTERNAL_TSQUERY_INT2_OID_INTERNAL 3701 -#define F_TS_RANK__FLOAT4_TSVECTOR_TSQUERY_INT4 3703 -#define F_TS_RANK__FLOAT4_TSVECTOR_TSQUERY 3704 -#define F_TS_RANK_TSVECTOR_TSQUERY_INT4 3705 -#define F_TS_RANK_TSVECTOR_TSQUERY 3706 -#define F_TS_RANK_CD__FLOAT4_TSVECTOR_TSQUERY_INT4 3707 -#define F_TS_RANK_CD__FLOAT4_TSVECTOR_TSQUERY 3708 -#define F_TS_RANK_CD_TSVECTOR_TSQUERY_INT4 3709 -#define F_TS_RANK_CD_TSVECTOR_TSQUERY 3710 -#define F_LENGTH_TSVECTOR 3711 -#define F_TS_TOKEN_TYPE_OID 3713 -#define F_TS_TOKEN_TYPE_TEXT 3714 -#define F_TS_PARSE_OID_TEXT 3715 -#define F_TS_PARSE_TEXT_TEXT 3716 -#define F_PRSD_START 3717 -#define F_PRSD_NEXTTOKEN 3718 -#define F_PRSD_END 3719 -#define F_PRSD_HEADLINE 3720 -#define F_PRSD_LEXTYPE 3721 -#define F_TS_LEXIZE 3723 -#define F_GIN_CMP_TSLEXEME 3724 -#define F_DSIMPLE_INIT 3725 -#define F_DSIMPLE_LEXIZE 3726 -#define F_DSYNONYM_INIT 3728 -#define F_DSYNONYM_LEXIZE 3729 -#define F_DISPELL_INIT 3731 -#define F_DISPELL_LEXIZE 3732 -#define F_REGCONFIGIN 3736 -#define F_REGCONFIGOUT 3737 -#define F_REGCONFIGRECV 3738 -#define F_REGCONFIGSEND 3739 -#define F_THESAURUS_INIT 3740 -#define F_THESAURUS_LEXIZE 3741 -#define F_TS_HEADLINE_REGCONFIG_TEXT_TSQUERY_TEXT 3743 -#define F_TS_HEADLINE_REGCONFIG_TEXT_TSQUERY 3744 -#define F_TO_TSVECTOR_REGCONFIG_TEXT 3745 -#define F_TO_TSQUERY_REGCONFIG_TEXT 3746 -#define F_PLAINTO_TSQUERY_REGCONFIG_TEXT 3747 -#define F_TO_TSVECTOR_TEXT 3749 -#define F_TO_TSQUERY_TEXT 3750 -#define F_PLAINTO_TSQUERY_TEXT 3751 -#define F_TSVECTOR_UPDATE_TRIGGER 3752 -#define F_TSVECTOR_UPDATE_TRIGGER_COLUMN 3753 -#define F_TS_HEADLINE_TEXT_TSQUERY_TEXT 3754 -#define F_TS_HEADLINE_TEXT_TSQUERY 3755 -#define F_PG_TS_PARSER_IS_VISIBLE 3756 -#define F_PG_TS_DICT_IS_VISIBLE 3757 -#define F_PG_TS_CONFIG_IS_VISIBLE 3758 -#define F_GET_CURRENT_TS_CONFIG 3759 -#define F_TS_MATCH_TT 3760 -#define F_TS_MATCH_TQ 3761 -#define F_PG_TS_TEMPLATE_IS_VISIBLE 3768 -#define F_REGDICTIONARYIN 3771 -#define F_REGDICTIONARYOUT 3772 -#define F_REGDICTIONARYRECV 3773 -#define F_REGDICTIONARYSEND 3774 -#define F_PG_STAT_RESET_SHARED 3775 -#define F_PG_STAT_RESET_SINGLE_TABLE_COUNTERS 3776 -#define F_PG_STAT_RESET_SINGLE_FUNCTION_COUNTERS 3777 -#define F_PG_TABLESPACE_LOCATION 3778 -#define F_PG_CREATE_PHYSICAL_REPLICATION_SLOT 3779 -#define F_PG_DROP_REPLICATION_SLOT 3780 -#define F_PG_GET_REPLICATION_SLOTS 3781 -#define F_PG_LOGICAL_SLOT_GET_CHANGES 3782 -#define F_PG_LOGICAL_SLOT_GET_BINARY_CHANGES 3783 -#define F_PG_LOGICAL_SLOT_PEEK_CHANGES 3784 -#define F_PG_LOGICAL_SLOT_PEEK_BINARY_CHANGES 3785 -#define F_PG_CREATE_LOGICAL_REPLICATION_SLOT 3786 -#define F_TO_JSONB 3787 -#define F_PG_STAT_GET_SNAPSHOT_TIMESTAMP 3788 -#define F_GIN_CLEAN_PENDING_LIST 3789 -#define F_GTSVECTOR_CONSISTENT_INTERNAL_GTSVECTOR_INT4_OID_INTERNAL 3790 -#define F_GIN_EXTRACT_TSQUERY_TSQUERY_INTERNAL_INT2_INTERNAL_INTERNAL_INTERNAL_INTERNAL 3791 -#define F_GIN_TSQUERY_CONSISTENT_INTERNAL_INT2_TSQUERY_INT4_INTERNAL_INTERNAL_INTERNAL_INTERNAL 3792 -#define F_GTSQUERY_CONSISTENT_INTERNAL_INTERNAL_INT4_OID_INTERNAL 3793 -#define F_INET_SPG_CONFIG 3795 -#define F_INET_SPG_CHOOSE 3796 -#define F_INET_SPG_PICKSPLIT 3797 -#define F_INET_SPG_INNER_CONSISTENT 3798 -#define F_INET_SPG_LEAF_CONSISTENT 3799 -#define F_PG_CURRENT_LOGFILE_ 3800 -#define F_PG_CURRENT_LOGFILE_TEXT 3801 -#define F_JSONB_SEND 3803 -#define F_JSONB_OUT 3804 -#define F_JSONB_RECV 3805 -#define F_JSONB_IN 3806 -#define F_PG_GET_FUNCTION_ARG_DEFAULT 3808 -#define F_PG_EXPORT_SNAPSHOT 3809 -#define F_PG_IS_IN_RECOVERY 3810 -#define F_MONEY_INT4 3811 -#define F_MONEY_INT8 3812 -#define F_PG_COLLATION_IS_VISIBLE 3815 -#define F_ARRAY_TYPANALYZE 3816 -#define F_ARRAYCONTSEL 3817 -#define F_ARRAYCONTJOINSEL 3818 -#define F_PG_GET_MULTIXACT_MEMBERS 3819 -#define F_PG_LAST_WAL_RECEIVE_LSN 3820 -#define F_PG_LAST_WAL_REPLAY_LSN 3821 -#define F_CASH_DIV_CASH 3822 -#define F_NUMERIC_MONEY 3823 -#define F_MONEY_NUMERIC 3824 -#define F_PG_READ_FILE_TEXT 3826 -#define F_PG_READ_BINARY_FILE_TEXT_INT8_INT8 3827 -#define F_PG_READ_BINARY_FILE_TEXT 3828 -#define F_PG_OPFAMILY_IS_VISIBLE 3829 -#define F_PG_LAST_XACT_REPLAY_TIMESTAMP 3830 -#define F_ANYRANGE_IN 3832 -#define F_ANYRANGE_OUT 3833 -#define F_RANGE_IN 3834 -#define F_RANGE_OUT 3835 -#define F_RANGE_RECV 3836 -#define F_RANGE_SEND 3837 -#define F_PG_IDENTIFY_OBJECT 3839 -#define F_INT4RANGE_INT4_INT4 3840 -#define F_INT4RANGE_INT4_INT4_TEXT 3841 -#define F_PG_RELATION_IS_UPDATABLE 3842 -#define F_PG_COLUMN_IS_UPDATABLE 3843 -#define F_NUMRANGE_NUMERIC_NUMERIC 3844 -#define F_NUMRANGE_NUMERIC_NUMERIC_TEXT 3845 -#define F_MAKE_DATE 3846 -#define F_MAKE_TIME 3847 -#define F_LOWER_ANYRANGE 3848 -#define F_UPPER_ANYRANGE 3849 -#define F_ISEMPTY_ANYRANGE 3850 -#define F_LOWER_INC_ANYRANGE 3851 -#define F_UPPER_INC_ANYRANGE 3852 -#define F_LOWER_INF_ANYRANGE 3853 -#define F_UPPER_INF_ANYRANGE 3854 -#define F_RANGE_EQ 3855 -#define F_RANGE_NE 3856 -#define F_RANGE_OVERLAPS 3857 -#define F_RANGE_CONTAINS_ELEM 3858 -#define F_RANGE_CONTAINS 3859 -#define F_ELEM_CONTAINED_BY_RANGE 3860 -#define F_RANGE_CONTAINED_BY 3861 -#define F_RANGE_ADJACENT 3862 -#define F_RANGE_BEFORE 3863 -#define F_RANGE_AFTER 3864 -#define F_RANGE_OVERLEFT 3865 -#define F_RANGE_OVERRIGHT 3866 -#define F_RANGE_UNION 3867 -#define F_RANGE_INTERSECT 3868 -#define F_RANGE_MINUS 3869 -#define F_RANGE_CMP 3870 -#define F_RANGE_LT 3871 -#define F_RANGE_LE 3872 -#define F_RANGE_GE 3873 -#define F_RANGE_GT 3874 -#define F_RANGE_GIST_CONSISTENT 3875 -#define F_RANGE_GIST_UNION 3876 -#define F_PG_REPLICATION_SLOT_ADVANCE 3878 -#define F_RANGE_GIST_PENALTY 3879 -#define F_RANGE_GIST_PICKSPLIT 3880 -#define F_RANGE_GIST_SAME 3881 -#define F_HASH_RANGE 3902 -#define F_INT4RANGE_CANONICAL 3914 -#define F_DATERANGE_CANONICAL 3915 -#define F_RANGE_TYPANALYZE 3916 -#define F_TIMESTAMP_SUPPORT 3917 -#define F_INTERVAL_SUPPORT 3918 -#define F_GINARRAYTRICONSISTENT 3920 -#define F_GIN_TSQUERY_TRICONSISTENT 3921 -#define F_INT4RANGE_SUBDIFF 3922 -#define F_INT8RANGE_SUBDIFF 3923 -#define F_NUMRANGE_SUBDIFF 3924 -#define F_DATERANGE_SUBDIFF 3925 -#define F_INT8RANGE_CANONICAL 3928 -#define F_TSRANGE_SUBDIFF 3929 -#define F_TSTZRANGE_SUBDIFF 3930 -#define F_JSONB_OBJECT_KEYS 3931 -#define F_JSONB_EACH_TEXT 3932 -#define F_TSRANGE_TIMESTAMP_TIMESTAMP 3933 -#define F_TSRANGE_TIMESTAMP_TIMESTAMP_TEXT 3934 -#define F_PG_SLEEP_FOR 3935 -#define F_PG_SLEEP_UNTIL 3936 -#define F_TSTZRANGE_TIMESTAMPTZ_TIMESTAMPTZ 3937 -#define F_TSTZRANGE_TIMESTAMPTZ_TIMESTAMPTZ_TEXT 3938 -#define F_MXID_AGE 3939 -#define F_JSONB_EXTRACT_PATH_TEXT 3940 -#define F_DATERANGE_DATE_DATE 3941 -#define F_DATERANGE_DATE_DATE_TEXT 3942 -#define F_ACLDEFAULT 3943 -#define F_TIME_SUPPORT 3944 -#define F_INT8RANGE_INT8_INT8 3945 -#define F_INT8RANGE_INT8_INT8_TEXT 3946 -#define F_JSON_OBJECT_FIELD 3947 -#define F_JSON_OBJECT_FIELD_TEXT 3948 -#define F_JSON_ARRAY_ELEMENT 3949 -#define F_JSON_ARRAY_ELEMENT_TEXT 3950 -#define F_JSON_EXTRACT_PATH 3951 -#define F_BRIN_SUMMARIZE_NEW_VALUES 3952 -#define F_JSON_EXTRACT_PATH_TEXT 3953 -#define F_PG_GET_OBJECT_ADDRESS 3954 -#define F_JSON_ARRAY_ELEMENTS 3955 -#define F_JSON_ARRAY_LENGTH 3956 -#define F_JSON_OBJECT_KEYS 3957 -#define F_JSON_EACH 3958 -#define F_JSON_EACH_TEXT 3959 -#define F_JSON_POPULATE_RECORD 3960 -#define F_JSON_POPULATE_RECORDSET 3961 -#define F_JSON_TYPEOF 3968 -#define F_JSON_ARRAY_ELEMENTS_TEXT 3969 -#define F_ORDERED_SET_TRANSITION 3970 -#define F_ORDERED_SET_TRANSITION_MULTI 3971 -#define F_PERCENTILE_DISC_FLOAT8_ANYELEMENT 3972 -#define F_PERCENTILE_DISC_FINAL 3973 -#define F_PERCENTILE_CONT_FLOAT8_FLOAT8 3974 -#define F_PERCENTILE_CONT_FLOAT8_FINAL 3975 -#define F_PERCENTILE_CONT_FLOAT8_INTERVAL 3976 -#define F_PERCENTILE_CONT_INTERVAL_FINAL 3977 -#define F_PERCENTILE_DISC__FLOAT8_ANYELEMENT 3978 -#define F_PERCENTILE_DISC_MULTI_FINAL 3979 -#define F_PERCENTILE_CONT__FLOAT8_FLOAT8 3980 -#define F_PERCENTILE_CONT_FLOAT8_MULTI_FINAL 3981 -#define F_PERCENTILE_CONT__FLOAT8_INTERVAL 3982 -#define F_PERCENTILE_CONT_INTERVAL_MULTI_FINAL 3983 -#define F_MODE 3984 -#define F_MODE_FINAL 3985 -#define F_RANK_ANY 3986 -#define F_RANK_FINAL 3987 -#define F_PERCENT_RANK_ANY 3988 -#define F_PERCENT_RANK_FINAL 3989 -#define F_CUME_DIST_ANY 3990 -#define F_CUME_DIST_FINAL 3991 -#define F_DENSE_RANK_ANY 3992 -#define F_DENSE_RANK_FINAL 3993 -#define F_GENERATE_SERIES_INT4_SUPPORT 3994 -#define F_GENERATE_SERIES_INT8_SUPPORT 3995 -#define F_ARRAY_UNNEST_SUPPORT 3996 -#define F_GIST_BOX_DISTANCE 3998 -#define F_BRIN_SUMMARIZE_RANGE 3999 -#define F_JSONPATH_IN 4001 -#define F_JSONPATH_RECV 4002 -#define F_JSONPATH_OUT 4003 -#define F_JSONPATH_SEND 4004 -#define F_JSONB_PATH_EXISTS 4005 -#define F_JSONB_PATH_QUERY 4006 -#define F_JSONB_PATH_QUERY_ARRAY 4007 -#define F_JSONB_PATH_QUERY_FIRST 4008 -#define F_JSONB_PATH_MATCH 4009 -#define F_JSONB_PATH_EXISTS_OPR 4010 -#define F_JSONB_PATH_MATCH_OPR 4011 -#define F_BRIN_DESUMMARIZE_RANGE 4014 -#define F_SPG_QUAD_CONFIG 4018 -#define F_SPG_QUAD_CHOOSE 4019 -#define F_SPG_QUAD_PICKSPLIT 4020 -#define F_SPG_QUAD_INNER_CONSISTENT 4021 -#define F_SPG_QUAD_LEAF_CONSISTENT 4022 -#define F_SPG_KD_CONFIG 4023 -#define F_SPG_KD_CHOOSE 4024 -#define F_SPG_KD_PICKSPLIT 4025 -#define F_SPG_KD_INNER_CONSISTENT 4026 -#define F_SPG_TEXT_CONFIG 4027 -#define F_SPG_TEXT_CHOOSE 4028 -#define F_SPG_TEXT_PICKSPLIT 4029 -#define F_SPG_TEXT_INNER_CONSISTENT 4030 -#define F_SPG_TEXT_LEAF_CONSISTENT 4031 -#define F_PG_SEQUENCE_LAST_VALUE 4032 -#define F_JSONB_NE 4038 -#define F_JSONB_LT 4039 -#define F_JSONB_GT 4040 -#define F_JSONB_LE 4041 -#define F_JSONB_GE 4042 -#define F_JSONB_EQ 4043 -#define F_JSONB_CMP 4044 -#define F_JSONB_HASH 4045 -#define F_JSONB_CONTAINS 4046 -#define F_JSONB_EXISTS 4047 -#define F_JSONB_EXISTS_ANY 4048 -#define F_JSONB_EXISTS_ALL 4049 -#define F_JSONB_CONTAINED 4050 -#define F_ARRAY_AGG_ARRAY_TRANSFN 4051 -#define F_ARRAY_AGG_ARRAY_FINALFN 4052 -#define F_ARRAY_AGG_ANYARRAY 4053 -#define F_RANGE_MERGE_ANYRANGE_ANYRANGE 4057 -#define F_INET_MERGE 4063 -#define F_BOUND_BOX 4067 -#define F_INET_SAME_FAMILY 4071 -#define F_BINARY_UPGRADE_SET_RECORD_INIT_PRIVS 4083 -#define F_REGNAMESPACEIN 4084 -#define F_REGNAMESPACEOUT 4085 -#define F_TO_REGNAMESPACE 4086 -#define F_REGNAMESPACERECV 4087 -#define F_REGNAMESPACESEND 4088 -#define F_BOX_POINT 4091 -#define F_REGROLEOUT 4092 -#define F_TO_REGROLE 4093 -#define F_REGROLERECV 4094 -#define F_REGROLESEND 4095 -#define F_REGROLEIN 4098 -#define F_PG_ROTATE_LOGFILE_OLD 4099 -#define F_PG_READ_FILE_OLD 4100 -#define F_BINARY_UPGRADE_SET_MISSING_VALUE 4101 -#define F_BRIN_INCLUSION_OPCINFO 4105 -#define F_BRIN_INCLUSION_ADD_VALUE 4106 -#define F_BRIN_INCLUSION_CONSISTENT 4107 -#define F_BRIN_INCLUSION_UNION 4108 -#define F_MACADDR8_IN 4110 -#define F_MACADDR8_OUT 4111 -#define F_TRUNC_MACADDR8 4112 -#define F_MACADDR8_EQ 4113 -#define F_MACADDR8_LT 4114 -#define F_MACADDR8_LE 4115 -#define F_MACADDR8_GT 4116 -#define F_MACADDR8_GE 4117 -#define F_MACADDR8_NE 4118 -#define F_MACADDR8_CMP 4119 -#define F_MACADDR8_NOT 4120 -#define F_MACADDR8_AND 4121 -#define F_MACADDR8_OR 4122 -#define F_MACADDR8 4123 -#define F_MACADDR 4124 -#define F_MACADDR8_SET7BIT 4125 -#define F_IN_RANGE_INT8_INT8_INT8_BOOL_BOOL 4126 -#define F_IN_RANGE_INT4_INT4_INT8_BOOL_BOOL 4127 -#define F_IN_RANGE_INT4_INT4_INT4_BOOL_BOOL 4128 -#define F_IN_RANGE_INT4_INT4_INT2_BOOL_BOOL 4129 -#define F_IN_RANGE_INT2_INT2_INT8_BOOL_BOOL 4130 -#define F_IN_RANGE_INT2_INT2_INT4_BOOL_BOOL 4131 -#define F_IN_RANGE_INT2_INT2_INT2_BOOL_BOOL 4132 -#define F_IN_RANGE_DATE_DATE_INTERVAL_BOOL_BOOL 4133 -#define F_IN_RANGE_TIMESTAMP_TIMESTAMP_INTERVAL_BOOL_BOOL 4134 -#define F_IN_RANGE_TIMESTAMPTZ_TIMESTAMPTZ_INTERVAL_BOOL_BOOL 4135 -#define F_IN_RANGE_INTERVAL_INTERVAL_INTERVAL_BOOL_BOOL 4136 -#define F_IN_RANGE_TIME_TIME_INTERVAL_BOOL_BOOL 4137 -#define F_IN_RANGE_TIMETZ_TIMETZ_INTERVAL_BOOL_BOOL 4138 -#define F_IN_RANGE_FLOAT8_FLOAT8_FLOAT8_BOOL_BOOL 4139 -#define F_IN_RANGE_FLOAT4_FLOAT4_FLOAT8_BOOL_BOOL 4140 -#define F_IN_RANGE_NUMERIC_NUMERIC_NUMERIC_BOOL_BOOL 4141 -#define F_PG_LSN_LARGER 4187 -#define F_PG_LSN_SMALLER 4188 -#define F_MAX_PG_LSN 4189 -#define F_MIN_PG_LSN 4190 -#define F_REGCOLLATIONIN 4193 -#define F_REGCOLLATIONOUT 4194 -#define F_TO_REGCOLLATION 4195 -#define F_REGCOLLATIONRECV 4196 -#define F_REGCOLLATIONSEND 4197 -#define F_TS_HEADLINE_REGCONFIG_JSONB_TSQUERY_TEXT 4201 -#define F_TS_HEADLINE_REGCONFIG_JSONB_TSQUERY 4202 -#define F_TS_HEADLINE_JSONB_TSQUERY_TEXT 4203 -#define F_TS_HEADLINE_JSONB_TSQUERY 4204 -#define F_TS_HEADLINE_REGCONFIG_JSON_TSQUERY_TEXT 4205 -#define F_TS_HEADLINE_REGCONFIG_JSON_TSQUERY 4206 -#define F_TS_HEADLINE_JSON_TSQUERY_TEXT 4207 -#define F_TS_HEADLINE_JSON_TSQUERY 4208 -#define F_TO_TSVECTOR_JSONB 4209 -#define F_TO_TSVECTOR_JSON 4210 -#define F_TO_TSVECTOR_REGCONFIG_JSONB 4211 -#define F_TO_TSVECTOR_REGCONFIG_JSON 4212 -#define F_JSONB_TO_TSVECTOR_JSONB_JSONB 4213 -#define F_JSONB_TO_TSVECTOR_REGCONFIG_JSONB_JSONB 4214 -#define F_JSON_TO_TSVECTOR_JSON_JSONB 4215 -#define F_JSON_TO_TSVECTOR_REGCONFIG_JSON_JSONB 4216 -#define F_PG_COPY_PHYSICAL_REPLICATION_SLOT_NAME_NAME_BOOL 4220 -#define F_PG_COPY_PHYSICAL_REPLICATION_SLOT_NAME_NAME 4221 -#define F_PG_COPY_LOGICAL_REPLICATION_SLOT_NAME_NAME_BOOL_NAME 4222 -#define F_PG_COPY_LOGICAL_REPLICATION_SLOT_NAME_NAME_BOOL 4223 -#define F_PG_COPY_LOGICAL_REPLICATION_SLOT_NAME_NAME 4224 -#define F_ANYCOMPATIBLEMULTIRANGE_IN 4226 -#define F_ANYCOMPATIBLEMULTIRANGE_OUT 4227 -#define F_RANGE_MERGE_ANYMULTIRANGE 4228 -#define F_ANYMULTIRANGE_IN 4229 -#define F_ANYMULTIRANGE_OUT 4230 -#define F_MULTIRANGE_IN 4231 -#define F_MULTIRANGE_OUT 4232 -#define F_MULTIRANGE_RECV 4233 -#define F_MULTIRANGE_SEND 4234 -#define F_LOWER_ANYMULTIRANGE 4235 -#define F_UPPER_ANYMULTIRANGE 4236 -#define F_ISEMPTY_ANYMULTIRANGE 4237 -#define F_LOWER_INC_ANYMULTIRANGE 4238 -#define F_UPPER_INC_ANYMULTIRANGE 4239 -#define F_LOWER_INF_ANYMULTIRANGE 4240 -#define F_UPPER_INF_ANYMULTIRANGE 4241 -#define F_MULTIRANGE_TYPANALYZE 4242 -#define F_MULTIRANGESEL 4243 -#define F_MULTIRANGE_EQ 4244 -#define F_MULTIRANGE_NE 4245 -#define F_RANGE_OVERLAPS_MULTIRANGE 4246 -#define F_MULTIRANGE_OVERLAPS_RANGE 4247 -#define F_MULTIRANGE_OVERLAPS_MULTIRANGE 4248 -#define F_MULTIRANGE_CONTAINS_ELEM 4249 -#define F_MULTIRANGE_CONTAINS_RANGE 4250 -#define F_MULTIRANGE_CONTAINS_MULTIRANGE 4251 -#define F_ELEM_CONTAINED_BY_MULTIRANGE 4252 -#define F_RANGE_CONTAINED_BY_MULTIRANGE 4253 -#define F_MULTIRANGE_CONTAINED_BY_MULTIRANGE 4254 -#define F_RANGE_ADJACENT_MULTIRANGE 4255 -#define F_MULTIRANGE_ADJACENT_MULTIRANGE 4256 -#define F_MULTIRANGE_ADJACENT_RANGE 4257 -#define F_RANGE_BEFORE_MULTIRANGE 4258 -#define F_MULTIRANGE_BEFORE_RANGE 4259 -#define F_MULTIRANGE_BEFORE_MULTIRANGE 4260 -#define F_RANGE_AFTER_MULTIRANGE 4261 -#define F_MULTIRANGE_AFTER_RANGE 4262 -#define F_MULTIRANGE_AFTER_MULTIRANGE 4263 -#define F_RANGE_OVERLEFT_MULTIRANGE 4264 -#define F_MULTIRANGE_OVERLEFT_RANGE 4265 -#define F_MULTIRANGE_OVERLEFT_MULTIRANGE 4266 -#define F_RANGE_OVERRIGHT_MULTIRANGE 4267 -#define F_MULTIRANGE_OVERRIGHT_RANGE 4268 -#define F_MULTIRANGE_OVERRIGHT_MULTIRANGE 4269 -#define F_MULTIRANGE_UNION 4270 -#define F_MULTIRANGE_MINUS 4271 -#define F_MULTIRANGE_INTERSECT 4272 -#define F_MULTIRANGE_CMP 4273 -#define F_MULTIRANGE_LT 4274 -#define F_MULTIRANGE_LE 4275 -#define F_MULTIRANGE_GE 4276 -#define F_MULTIRANGE_GT 4277 -#define F_HASH_MULTIRANGE 4278 -#define F_HASH_MULTIRANGE_EXTENDED 4279 -#define F_INT4MULTIRANGE_ 4280 -#define F_INT4MULTIRANGE_INT4RANGE 4281 -#define F_INT4MULTIRANGE__INT4RANGE 4282 -#define F_NUMMULTIRANGE_ 4283 -#define F_NUMMULTIRANGE_NUMRANGE 4284 -#define F_NUMMULTIRANGE__NUMRANGE 4285 -#define F_TSMULTIRANGE_ 4286 -#define F_TSMULTIRANGE_TSRANGE 4287 -#define F_TSMULTIRANGE__TSRANGE 4288 -#define F_TSTZMULTIRANGE_ 4289 -#define F_TSTZMULTIRANGE_TSTZRANGE 4290 -#define F_TSTZMULTIRANGE__TSTZRANGE 4291 -#define F_DATEMULTIRANGE_ 4292 -#define F_DATEMULTIRANGE_DATERANGE 4293 -#define F_DATEMULTIRANGE__DATERANGE 4294 -#define F_INT8MULTIRANGE_ 4295 -#define F_INT8MULTIRANGE_INT8RANGE 4296 -#define F_INT8MULTIRANGE__INT8RANGE 4297 -#define F_MULTIRANGE 4298 -#define F_RANGE_AGG_TRANSFN 4299 -#define F_RANGE_AGG_FINALFN 4300 -#define F_RANGE_AGG_ANYRANGE 4301 -#define F_KOI8R_TO_MIC 4302 -#define F_MIC_TO_KOI8R 4303 -#define F_ISO_TO_MIC 4304 -#define F_MIC_TO_ISO 4305 -#define F_WIN1251_TO_MIC 4306 -#define F_MIC_TO_WIN1251 4307 -#define F_WIN866_TO_MIC 4308 -#define F_MIC_TO_WIN866 4309 -#define F_KOI8R_TO_WIN1251 4310 -#define F_WIN1251_TO_KOI8R 4311 -#define F_KOI8R_TO_WIN866 4312 -#define F_WIN866_TO_KOI8R 4313 -#define F_WIN866_TO_WIN1251 4314 -#define F_WIN1251_TO_WIN866 4315 -#define F_ISO_TO_KOI8R 4316 -#define F_KOI8R_TO_ISO 4317 -#define F_ISO_TO_WIN1251 4318 -#define F_WIN1251_TO_ISO 4319 -#define F_ISO_TO_WIN866 4320 -#define F_WIN866_TO_ISO 4321 -#define F_EUC_CN_TO_MIC 4322 -#define F_MIC_TO_EUC_CN 4323 -#define F_EUC_JP_TO_SJIS 4324 -#define F_SJIS_TO_EUC_JP 4325 -#define F_EUC_JP_TO_MIC 4326 -#define F_SJIS_TO_MIC 4327 -#define F_MIC_TO_EUC_JP 4328 -#define F_MIC_TO_SJIS 4329 -#define F_EUC_KR_TO_MIC 4330 -#define F_MIC_TO_EUC_KR 4331 -#define F_EUC_TW_TO_BIG5 4332 -#define F_BIG5_TO_EUC_TW 4333 -#define F_EUC_TW_TO_MIC 4334 -#define F_BIG5_TO_MIC 4335 -#define F_MIC_TO_EUC_TW 4336 -#define F_MIC_TO_BIG5 4337 -#define F_LATIN2_TO_MIC 4338 -#define F_MIC_TO_LATIN2 4339 -#define F_WIN1250_TO_MIC 4340 -#define F_MIC_TO_WIN1250 4341 -#define F_LATIN2_TO_WIN1250 4342 -#define F_WIN1250_TO_LATIN2 4343 -#define F_LATIN1_TO_MIC 4344 -#define F_MIC_TO_LATIN1 4345 -#define F_LATIN3_TO_MIC 4346 -#define F_MIC_TO_LATIN3 4347 -#define F_LATIN4_TO_MIC 4348 -#define F_MIC_TO_LATIN4 4349 -#define F_NORMALIZE 4350 -#define F_IS_NORMALIZED 4351 -#define F_BIG5_TO_UTF8 4352 -#define F_UTF8_TO_BIG5 4353 -#define F_UTF8_TO_KOI8R 4354 -#define F_KOI8R_TO_UTF8 4355 -#define F_UTF8_TO_KOI8U 4356 -#define F_KOI8U_TO_UTF8 4357 -#define F_UTF8_TO_WIN 4358 -#define F_WIN_TO_UTF8 4359 -#define F_EUC_CN_TO_UTF8 4360 -#define F_UTF8_TO_EUC_CN 4361 -#define F_EUC_JP_TO_UTF8 4362 -#define F_UTF8_TO_EUC_JP 4363 -#define F_EUC_KR_TO_UTF8 4364 -#define F_UTF8_TO_EUC_KR 4365 -#define F_EUC_TW_TO_UTF8 4366 -#define F_UTF8_TO_EUC_TW 4367 -#define F_GB18030_TO_UTF8 4368 -#define F_UTF8_TO_GB18030 4369 -#define F_GBK_TO_UTF8 4370 -#define F_UTF8_TO_GBK 4371 -#define F_UTF8_TO_ISO8859 4372 -#define F_ISO8859_TO_UTF8 4373 -#define F_ISO8859_1_TO_UTF8 4374 -#define F_UTF8_TO_ISO8859_1 4375 -#define F_JOHAB_TO_UTF8 4376 -#define F_UTF8_TO_JOHAB 4377 -#define F_SJIS_TO_UTF8 4378 -#define F_UTF8_TO_SJIS 4379 -#define F_UHC_TO_UTF8 4380 -#define F_UTF8_TO_UHC 4381 -#define F_EUC_JIS_2004_TO_UTF8 4382 -#define F_UTF8_TO_EUC_JIS_2004 4383 -#define F_SHIFT_JIS_2004_TO_UTF8 4384 -#define F_UTF8_TO_SHIFT_JIS_2004 4385 -#define F_EUC_JIS_2004_TO_SHIFT_JIS_2004 4386 -#define F_SHIFT_JIS_2004_TO_EUC_JIS_2004 4387 -#define F_MULTIRANGE_INTERSECT_AGG_TRANSFN 4388 -#define F_RANGE_INTERSECT_AGG_ANYMULTIRANGE 4389 -#define F_BINARY_UPGRADE_SET_NEXT_MULTIRANGE_PG_TYPE_OID 4390 -#define F_BINARY_UPGRADE_SET_NEXT_MULTIRANGE_ARRAY_PG_TYPE_OID 4391 -#define F_RANGE_INTERSECT_AGG_TRANSFN 4401 -#define F_RANGE_INTERSECT_AGG_ANYRANGE 4450 -#define F_RANGE_CONTAINS_MULTIRANGE 4541 -#define F_MULTIRANGE_CONTAINED_BY_RANGE 4542 -#define F_PG_LOG_BACKEND_MEMORY_CONTEXTS 4543 -#define F_BINARY_UPGRADE_SET_NEXT_HEAP_RELFILENODE 4545 -#define F_BINARY_UPGRADE_SET_NEXT_INDEX_RELFILENODE 4546 -#define F_BINARY_UPGRADE_SET_NEXT_TOAST_RELFILENODE 4547 -#define F_BINARY_UPGRADE_SET_NEXT_PG_TABLESPACE_OID 4548 -#define F_PG_EVENT_TRIGGER_TABLE_REWRITE_OID 4566 -#define F_PG_EVENT_TRIGGER_TABLE_REWRITE_REASON 4567 -#define F_PG_EVENT_TRIGGER_DDL_COMMANDS 4568 -#define F_BRIN_BLOOM_OPCINFO 4591 -#define F_BRIN_BLOOM_ADD_VALUE 4592 -#define F_BRIN_BLOOM_CONSISTENT 4593 -#define F_BRIN_BLOOM_UNION 4594 -#define F_BRIN_BLOOM_OPTIONS 4595 -#define F_BRIN_BLOOM_SUMMARY_IN 4596 -#define F_BRIN_BLOOM_SUMMARY_OUT 4597 -#define F_BRIN_BLOOM_SUMMARY_RECV 4598 -#define F_BRIN_BLOOM_SUMMARY_SEND 4599 -#define F_BRIN_MINMAX_MULTI_OPCINFO 4616 -#define F_BRIN_MINMAX_MULTI_ADD_VALUE 4617 -#define F_BRIN_MINMAX_MULTI_CONSISTENT 4618 -#define F_BRIN_MINMAX_MULTI_UNION 4619 -#define F_BRIN_MINMAX_MULTI_OPTIONS 4620 -#define F_BRIN_MINMAX_MULTI_DISTANCE_INT2 4621 -#define F_BRIN_MINMAX_MULTI_DISTANCE_INT4 4622 -#define F_BRIN_MINMAX_MULTI_DISTANCE_INT8 4623 -#define F_BRIN_MINMAX_MULTI_DISTANCE_FLOAT4 4624 -#define F_BRIN_MINMAX_MULTI_DISTANCE_FLOAT8 4625 -#define F_BRIN_MINMAX_MULTI_DISTANCE_NUMERIC 4626 -#define F_BRIN_MINMAX_MULTI_DISTANCE_TID 4627 -#define F_BRIN_MINMAX_MULTI_DISTANCE_UUID 4628 -#define F_BRIN_MINMAX_MULTI_DISTANCE_DATE 4629 -#define F_BRIN_MINMAX_MULTI_DISTANCE_TIME 4630 -#define F_BRIN_MINMAX_MULTI_DISTANCE_INTERVAL 4631 -#define F_BRIN_MINMAX_MULTI_DISTANCE_TIMETZ 4632 -#define F_BRIN_MINMAX_MULTI_DISTANCE_PG_LSN 4633 -#define F_BRIN_MINMAX_MULTI_DISTANCE_MACADDR 4634 -#define F_BRIN_MINMAX_MULTI_DISTANCE_MACADDR8 4635 -#define F_BRIN_MINMAX_MULTI_DISTANCE_INET 4636 -#define F_BRIN_MINMAX_MULTI_DISTANCE_TIMESTAMP 4637 -#define F_BRIN_MINMAX_MULTI_SUMMARY_IN 4638 -#define F_BRIN_MINMAX_MULTI_SUMMARY_OUT 4639 -#define F_BRIN_MINMAX_MULTI_SUMMARY_RECV 4640 -#define F_BRIN_MINMAX_MULTI_SUMMARY_SEND 4641 -#define F_PHRASETO_TSQUERY_TEXT 5001 -#define F_TSQUERY_PHRASE_TSQUERY_TSQUERY 5003 -#define F_TSQUERY_PHRASE_TSQUERY_TSQUERY_INT4 5004 -#define F_PHRASETO_TSQUERY_REGCONFIG_TEXT 5006 -#define F_WEBSEARCH_TO_TSQUERY_REGCONFIG_TEXT 5007 -#define F_WEBSEARCH_TO_TSQUERY_TEXT 5009 -#define F_SPG_BBOX_QUAD_CONFIG 5010 -#define F_SPG_POLY_QUAD_COMPRESS 5011 -#define F_SPG_BOX_QUAD_CONFIG 5012 -#define F_SPG_BOX_QUAD_CHOOSE 5013 -#define F_SPG_BOX_QUAD_PICKSPLIT 5014 -#define F_SPG_BOX_QUAD_INNER_CONSISTENT 5015 -#define F_SPG_BOX_QUAD_LEAF_CONSISTENT 5016 -#define F_PG_MCV_LIST_IN 5018 -#define F_PG_MCV_LIST_OUT 5019 -#define F_PG_MCV_LIST_RECV 5020 -#define F_PG_MCV_LIST_SEND 5021 -#define F_PG_LSN_PLI 5022 -#define F_NUMERIC_PL_PG_LSN 5023 -#define F_PG_LSN_MII 5024 -#define F_SATISFIES_HASH_PARTITION 5028 -#define F_PG_LS_TMPDIR_ 5029 -#define F_PG_LS_TMPDIR_OID 5030 -#define F_PG_LS_ARCHIVE_STATUSDIR 5031 -#define F_NETWORK_SORTSUPPORT 5033 -#define F_XID8LT 5034 -#define F_XID8GT 5035 -#define F_XID8LE 5036 -#define F_XID8GE 5037 -#define F_MATCHINGSEL 5040 -#define F_MATCHINGJOINSEL 5041 -#define F_MIN_SCALE 5042 -#define F_TRIM_SCALE 5043 -#define F_GCD_INT4_INT4 5044 -#define F_GCD_INT8_INT8 5045 -#define F_LCM_INT4_INT4 5046 -#define F_LCM_INT8_INT8 5047 -#define F_GCD_NUMERIC_NUMERIC 5048 -#define F_LCM_NUMERIC_NUMERIC 5049 -#define F_BTVARSTREQUALIMAGE 5050 -#define F_BTEQUALIMAGE 5051 -#define F_PG_GET_SHMEM_ALLOCATIONS 5052 -#define F_PG_STAT_GET_INS_SINCE_VACUUM 5053 -#define F_JSONB_SET_LAX 5054 -#define F_PG_SNAPSHOT_IN 5055 -#define F_PG_SNAPSHOT_OUT 5056 -#define F_PG_SNAPSHOT_RECV 5057 -#define F_PG_SNAPSHOT_SEND 5058 -#define F_PG_CURRENT_XACT_ID 5059 -#define F_PG_CURRENT_XACT_ID_IF_ASSIGNED 5060 -#define F_PG_CURRENT_SNAPSHOT 5061 -#define F_PG_SNAPSHOT_XMIN 5062 -#define F_PG_SNAPSHOT_XMAX 5063 -#define F_PG_SNAPSHOT_XIP 5064 -#define F_PG_VISIBLE_IN_SNAPSHOT 5065 -#define F_PG_XACT_STATUS 5066 -#define F_XID8IN 5070 -#define F_XID 5071 -#define F_XID8OUT 5081 -#define F_XID8RECV 5082 -#define F_XID8SEND 5083 -#define F_XID8EQ 5084 -#define F_XID8NE 5085 -#define F_ANYCOMPATIBLE_IN 5086 -#define F_ANYCOMPATIBLE_OUT 5087 -#define F_ANYCOMPATIBLEARRAY_IN 5088 -#define F_ANYCOMPATIBLEARRAY_OUT 5089 -#define F_ANYCOMPATIBLEARRAY_RECV 5090 -#define F_ANYCOMPATIBLEARRAY_SEND 5091 -#define F_ANYCOMPATIBLENONARRAY_IN 5092 -#define F_ANYCOMPATIBLENONARRAY_OUT 5093 -#define F_ANYCOMPATIBLERANGE_IN 5094 -#define F_ANYCOMPATIBLERANGE_OUT 5095 -#define F_XID8CMP 5096 -#define F_XID8_LARGER 5097 -#define F_XID8_SMALLER 5098 -#define F_MAX_XID8 5099 -#define F_MIN_XID8 5100 -#define F_PG_REPLICATION_ORIGIN_CREATE 6003 -#define F_PG_REPLICATION_ORIGIN_DROP 6004 -#define F_PG_REPLICATION_ORIGIN_OID 6005 -#define F_PG_REPLICATION_ORIGIN_SESSION_SETUP 6006 -#define F_PG_REPLICATION_ORIGIN_SESSION_RESET 6007 -#define F_PG_REPLICATION_ORIGIN_SESSION_IS_SETUP 6008 -#define F_PG_REPLICATION_ORIGIN_SESSION_PROGRESS 6009 -#define F_PG_REPLICATION_ORIGIN_XACT_SETUP 6010 -#define F_PG_REPLICATION_ORIGIN_XACT_RESET 6011 -#define F_PG_REPLICATION_ORIGIN_ADVANCE 6012 -#define F_PG_REPLICATION_ORIGIN_PROGRESS 6013 -#define F_PG_SHOW_REPLICATION_ORIGIN_STATUS 6014 -#define F_JSONB_SUBSCRIPT_HANDLER 6098 -#define F_PG_LSN 6103 -#define F_PG_STAT_GET_SUBSCRIPTION 6118 -#define F_PG_GET_PUBLICATION_TABLES 6119 -#define F_PG_GET_REPLICA_IDENTITY_INDEX 6120 -#define F_PG_RELATION_IS_PUBLISHABLE 6121 -#define F_MULTIRANGE_GIST_CONSISTENT 6154 -#define F_MULTIRANGE_GIST_COMPRESS 6156 -#define F_PG_GET_CATALOG_FOREIGN_KEYS 6159 -#define F_STRING_TO_TABLE_TEXT_TEXT 6160 -#define F_STRING_TO_TABLE_TEXT_TEXT_TEXT 6161 -#define F_BIT_COUNT_BIT 6162 -#define F_BIT_COUNT_BYTEA 6163 -#define F_BIT_XOR_INT2 6164 -#define F_BIT_XOR_INT4 6165 -#define F_BIT_XOR_INT8 6166 -#define F_BIT_XOR_BIT 6167 -#define F_PG_XACT_COMMIT_TIMESTAMP_ORIGIN 6168 -#define F_PG_STAT_GET_REPLICATION_SLOT 6169 -#define F_PG_STAT_RESET_REPLICATION_SLOT 6170 -#define F_TRIM_ARRAY 6172 -#define F_PG_GET_STATISTICSOBJDEF_EXPRESSIONS 6173 -#define F_PG_GET_STATISTICSOBJDEF_COLUMNS 6174 -#define F_DATE_BIN_INTERVAL_TIMESTAMP_TIMESTAMP 6177 -#define F_DATE_BIN_INTERVAL_TIMESTAMPTZ_TIMESTAMPTZ 6178 -#define F_ARRAY_SUBSCRIPT_HANDLER 6179 -#define F_RAW_ARRAY_SUBSCRIPT_HANDLER 6180 -#define F_TS_DEBUG_REGCONFIG_TEXT 6183 -#define F_TS_DEBUG_TEXT 6184 -#define F_PG_STAT_GET_DB_SESSION_TIME 6185 -#define F_PG_STAT_GET_DB_ACTIVE_TIME 6186 -#define F_PG_STAT_GET_DB_IDLE_IN_TRANSACTION_TIME 6187 -#define F_PG_STAT_GET_DB_SESSIONS 6188 -#define F_PG_STAT_GET_DB_SESSIONS_ABANDONED 6189 -#define F_PG_STAT_GET_DB_SESSIONS_FATAL 6190 -#define F_PG_STAT_GET_DB_SESSIONS_KILLED 6191 -#define F_HASH_RECORD 6192 -#define F_HASH_RECORD_EXTENDED 6193 -#define F_LTRIM_BYTEA_BYTEA 6195 -#define F_RTRIM_BYTEA_BYTEA 6196 -#define F_PG_GET_FUNCTION_SQLBODY 6197 -#define F_UNISTR 6198 -#define F_EXTRACT_TEXT_DATE 6199 -#define F_EXTRACT_TEXT_TIME 6200 -#define F_EXTRACT_TEXT_TIMETZ 6201 -#define F_EXTRACT_TEXT_TIMESTAMP 6202 -#define F_EXTRACT_TEXT_TIMESTAMPTZ 6203 -#define F_EXTRACT_TEXT_INTERVAL 6204 -#define F_HAS_PARAMETER_PRIVILEGE_NAME_TEXT_TEXT 6205 -#define F_HAS_PARAMETER_PRIVILEGE_OID_TEXT_TEXT 6206 -#define F_HAS_PARAMETER_PRIVILEGE_TEXT_TEXT 6207 -#define F_PG_GET_WAL_RESOURCE_MANAGERS 6224 -#define F_MULTIRANGE_AGG_TRANSFN 6225 -#define F_MULTIRANGE_AGG_FINALFN 6226 -#define F_RANGE_AGG_ANYMULTIRANGE 6227 -#define F_PG_STAT_HAVE_STATS 6230 -#define F_PG_STAT_GET_SUBSCRIPTION_STATS 6231 -#define F_PG_STAT_RESET_SUBSCRIPTION_STATS 6232 -#define F_WINDOW_ROW_NUMBER_SUPPORT 6233 -#define F_WINDOW_RANK_SUPPORT 6234 -#define F_WINDOW_DENSE_RANK_SUPPORT 6235 -#define F_INT8INC_SUPPORT 6236 -#define F_PG_SETTINGS_GET_FLAGS 6240 -#define F_PG_STOP_MAKING_PINNED_OBJECTS 6241 -#define F_TEXT_STARTS_WITH_SUPPORT 6242 -#define F_PG_STAT_GET_RECOVERY_PREFETCH 6248 -#define F_PG_DATABASE_COLLATION_ACTUAL_VERSION 6249 -#define F_PG_IDENT_FILE_MAPPINGS 6250 -#define F_REGEXP_REPLACE_TEXT_TEXT_TEXT_INT4_INT4_TEXT 6251 -#define F_REGEXP_REPLACE_TEXT_TEXT_TEXT_INT4_INT4 6252 -#define F_REGEXP_REPLACE_TEXT_TEXT_TEXT_INT4 6253 -#define F_REGEXP_COUNT_TEXT_TEXT 6254 -#define F_REGEXP_COUNT_TEXT_TEXT_INT4 6255 -#define F_REGEXP_COUNT_TEXT_TEXT_INT4_TEXT 6256 -#define F_REGEXP_INSTR_TEXT_TEXT 6257 -#define F_REGEXP_INSTR_TEXT_TEXT_INT4 6258 -#define F_REGEXP_INSTR_TEXT_TEXT_INT4_INT4 6259 -#define F_REGEXP_INSTR_TEXT_TEXT_INT4_INT4_INT4 6260 -#define F_REGEXP_INSTR_TEXT_TEXT_INT4_INT4_INT4_TEXT 6261 -#define F_REGEXP_INSTR_TEXT_TEXT_INT4_INT4_INT4_TEXT_INT4 6262 -#define F_REGEXP_LIKE_TEXT_TEXT 6263 -#define F_REGEXP_LIKE_TEXT_TEXT_TEXT 6264 -#define F_REGEXP_SUBSTR_TEXT_TEXT 6265 -#define F_REGEXP_SUBSTR_TEXT_TEXT_INT4 6266 -#define F_REGEXP_SUBSTR_TEXT_TEXT_INT4_INT4 6267 -#define F_REGEXP_SUBSTR_TEXT_TEXT_INT4_INT4_TEXT 6268 -#define F_REGEXP_SUBSTR_TEXT_TEXT_INT4_INT4_TEXT_INT4 6269 -#define F_PG_LS_LOGICALSNAPDIR 6270 -#define F_PG_LS_LOGICALMAPDIR 6271 -#define F_PG_LS_REPLSLOTDIR 6272 - -#endif /* FMGROIDS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/fmgrprotos.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/fmgrprotos.h deleted file mode 100644 index 151e8ddaa..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/fmgrprotos.h +++ /dev/null @@ -1,2829 +0,0 @@ -/*------------------------------------------------------------------------- - * - * fmgrprotos.h - * Prototypes for built-in functions. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * NOTES - * ****************************** - * *** DO NOT EDIT THIS FILE! *** - * ****************************** - * - * It has been GENERATED by src/backend/utils/Gen_fmgrtab.pl - * - *------------------------------------------------------------------------- - */ - -#ifndef FMGRPROTOS_H -#define FMGRPROTOS_H - -#include "fmgr.h" - -extern Datum heap_tableam_handler(PG_FUNCTION_ARGS); -extern Datum byteaout(PG_FUNCTION_ARGS); -extern Datum charout(PG_FUNCTION_ARGS); -extern Datum namein(PG_FUNCTION_ARGS); -extern Datum nameout(PG_FUNCTION_ARGS); -extern Datum int2in(PG_FUNCTION_ARGS); -extern Datum int2out(PG_FUNCTION_ARGS); -extern Datum int2vectorin(PG_FUNCTION_ARGS); -extern Datum int2vectorout(PG_FUNCTION_ARGS); -extern Datum int4in(PG_FUNCTION_ARGS); -extern Datum int4out(PG_FUNCTION_ARGS); -extern Datum regprocin(PG_FUNCTION_ARGS); -extern Datum regprocout(PG_FUNCTION_ARGS); -extern Datum textin(PG_FUNCTION_ARGS); -extern Datum textout(PG_FUNCTION_ARGS); -extern Datum tidin(PG_FUNCTION_ARGS); -extern Datum tidout(PG_FUNCTION_ARGS); -extern Datum xidin(PG_FUNCTION_ARGS); -extern Datum xidout(PG_FUNCTION_ARGS); -extern Datum cidin(PG_FUNCTION_ARGS); -extern Datum cidout(PG_FUNCTION_ARGS); -extern Datum oidvectorin(PG_FUNCTION_ARGS); -extern Datum oidvectorout(PG_FUNCTION_ARGS); -extern Datum boollt(PG_FUNCTION_ARGS); -extern Datum boolgt(PG_FUNCTION_ARGS); -extern Datum booleq(PG_FUNCTION_ARGS); -extern Datum chareq(PG_FUNCTION_ARGS); -extern Datum nameeq(PG_FUNCTION_ARGS); -extern Datum int2eq(PG_FUNCTION_ARGS); -extern Datum int2lt(PG_FUNCTION_ARGS); -extern Datum int4eq(PG_FUNCTION_ARGS); -extern Datum int4lt(PG_FUNCTION_ARGS); -extern Datum texteq(PG_FUNCTION_ARGS); -extern Datum xideq(PG_FUNCTION_ARGS); -extern Datum cideq(PG_FUNCTION_ARGS); -extern Datum charne(PG_FUNCTION_ARGS); -extern Datum charle(PG_FUNCTION_ARGS); -extern Datum chargt(PG_FUNCTION_ARGS); -extern Datum charge(PG_FUNCTION_ARGS); -extern Datum chartoi4(PG_FUNCTION_ARGS); -extern Datum i4tochar(PG_FUNCTION_ARGS); -extern Datum nameregexeq(PG_FUNCTION_ARGS); -extern Datum boolne(PG_FUNCTION_ARGS); -extern Datum pg_ddl_command_in(PG_FUNCTION_ARGS); -extern Datum pg_ddl_command_out(PG_FUNCTION_ARGS); -extern Datum pg_ddl_command_recv(PG_FUNCTION_ARGS); -extern Datum pgsql_version(PG_FUNCTION_ARGS); -extern Datum pg_ddl_command_send(PG_FUNCTION_ARGS); -extern Datum eqsel(PG_FUNCTION_ARGS); -extern Datum neqsel(PG_FUNCTION_ARGS); -extern Datum scalarltsel(PG_FUNCTION_ARGS); -extern Datum scalargtsel(PG_FUNCTION_ARGS); -extern Datum eqjoinsel(PG_FUNCTION_ARGS); -extern Datum neqjoinsel(PG_FUNCTION_ARGS); -extern Datum scalarltjoinsel(PG_FUNCTION_ARGS); -extern Datum scalargtjoinsel(PG_FUNCTION_ARGS); -extern Datum unknownin(PG_FUNCTION_ARGS); -extern Datum unknownout(PG_FUNCTION_ARGS); -extern Datum box_above_eq(PG_FUNCTION_ARGS); -extern Datum box_below_eq(PG_FUNCTION_ARGS); -extern Datum point_in(PG_FUNCTION_ARGS); -extern Datum point_out(PG_FUNCTION_ARGS); -extern Datum lseg_in(PG_FUNCTION_ARGS); -extern Datum lseg_out(PG_FUNCTION_ARGS); -extern Datum path_in(PG_FUNCTION_ARGS); -extern Datum path_out(PG_FUNCTION_ARGS); -extern Datum box_in(PG_FUNCTION_ARGS); -extern Datum box_out(PG_FUNCTION_ARGS); -extern Datum box_overlap(PG_FUNCTION_ARGS); -extern Datum box_ge(PG_FUNCTION_ARGS); -extern Datum box_gt(PG_FUNCTION_ARGS); -extern Datum box_eq(PG_FUNCTION_ARGS); -extern Datum box_lt(PG_FUNCTION_ARGS); -extern Datum box_le(PG_FUNCTION_ARGS); -extern Datum point_above(PG_FUNCTION_ARGS); -extern Datum point_left(PG_FUNCTION_ARGS); -extern Datum point_right(PG_FUNCTION_ARGS); -extern Datum point_below(PG_FUNCTION_ARGS); -extern Datum point_eq(PG_FUNCTION_ARGS); -extern Datum on_pb(PG_FUNCTION_ARGS); -extern Datum on_ppath(PG_FUNCTION_ARGS); -extern Datum box_center(PG_FUNCTION_ARGS); -extern Datum areasel(PG_FUNCTION_ARGS); -extern Datum areajoinsel(PG_FUNCTION_ARGS); -extern Datum int4mul(PG_FUNCTION_ARGS); -extern Datum int4ne(PG_FUNCTION_ARGS); -extern Datum int2ne(PG_FUNCTION_ARGS); -extern Datum int2gt(PG_FUNCTION_ARGS); -extern Datum int4gt(PG_FUNCTION_ARGS); -extern Datum int2le(PG_FUNCTION_ARGS); -extern Datum int4le(PG_FUNCTION_ARGS); -extern Datum int4ge(PG_FUNCTION_ARGS); -extern Datum int2ge(PG_FUNCTION_ARGS); -extern Datum int2mul(PG_FUNCTION_ARGS); -extern Datum int2div(PG_FUNCTION_ARGS); -extern Datum int4div(PG_FUNCTION_ARGS); -extern Datum int2mod(PG_FUNCTION_ARGS); -extern Datum int4mod(PG_FUNCTION_ARGS); -extern Datum textne(PG_FUNCTION_ARGS); -extern Datum int24eq(PG_FUNCTION_ARGS); -extern Datum int42eq(PG_FUNCTION_ARGS); -extern Datum int24lt(PG_FUNCTION_ARGS); -extern Datum int42lt(PG_FUNCTION_ARGS); -extern Datum int24gt(PG_FUNCTION_ARGS); -extern Datum int42gt(PG_FUNCTION_ARGS); -extern Datum int24ne(PG_FUNCTION_ARGS); -extern Datum int42ne(PG_FUNCTION_ARGS); -extern Datum int24le(PG_FUNCTION_ARGS); -extern Datum int42le(PG_FUNCTION_ARGS); -extern Datum int24ge(PG_FUNCTION_ARGS); -extern Datum int42ge(PG_FUNCTION_ARGS); -extern Datum int24mul(PG_FUNCTION_ARGS); -extern Datum int42mul(PG_FUNCTION_ARGS); -extern Datum int24div(PG_FUNCTION_ARGS); -extern Datum int42div(PG_FUNCTION_ARGS); -extern Datum int2pl(PG_FUNCTION_ARGS); -extern Datum int4pl(PG_FUNCTION_ARGS); -extern Datum int24pl(PG_FUNCTION_ARGS); -extern Datum int42pl(PG_FUNCTION_ARGS); -extern Datum int2mi(PG_FUNCTION_ARGS); -extern Datum int4mi(PG_FUNCTION_ARGS); -extern Datum int24mi(PG_FUNCTION_ARGS); -extern Datum int42mi(PG_FUNCTION_ARGS); -extern Datum oideq(PG_FUNCTION_ARGS); -extern Datum oidne(PG_FUNCTION_ARGS); -extern Datum box_same(PG_FUNCTION_ARGS); -extern Datum box_contain(PG_FUNCTION_ARGS); -extern Datum box_left(PG_FUNCTION_ARGS); -extern Datum box_overleft(PG_FUNCTION_ARGS); -extern Datum box_overright(PG_FUNCTION_ARGS); -extern Datum box_right(PG_FUNCTION_ARGS); -extern Datum box_contained(PG_FUNCTION_ARGS); -extern Datum box_contain_pt(PG_FUNCTION_ARGS); -extern Datum pg_node_tree_in(PG_FUNCTION_ARGS); -extern Datum pg_node_tree_out(PG_FUNCTION_ARGS); -extern Datum pg_node_tree_recv(PG_FUNCTION_ARGS); -extern Datum pg_node_tree_send(PG_FUNCTION_ARGS); -extern Datum float4in(PG_FUNCTION_ARGS); -extern Datum float4out(PG_FUNCTION_ARGS); -extern Datum float4mul(PG_FUNCTION_ARGS); -extern Datum float4div(PG_FUNCTION_ARGS); -extern Datum float4pl(PG_FUNCTION_ARGS); -extern Datum float4mi(PG_FUNCTION_ARGS); -extern Datum float4um(PG_FUNCTION_ARGS); -extern Datum float4abs(PG_FUNCTION_ARGS); -extern Datum float4_accum(PG_FUNCTION_ARGS); -extern Datum float4larger(PG_FUNCTION_ARGS); -extern Datum float4smaller(PG_FUNCTION_ARGS); -extern Datum int4um(PG_FUNCTION_ARGS); -extern Datum int2um(PG_FUNCTION_ARGS); -extern Datum float8in(PG_FUNCTION_ARGS); -extern Datum float8out(PG_FUNCTION_ARGS); -extern Datum float8mul(PG_FUNCTION_ARGS); -extern Datum float8div(PG_FUNCTION_ARGS); -extern Datum float8pl(PG_FUNCTION_ARGS); -extern Datum float8mi(PG_FUNCTION_ARGS); -extern Datum float8um(PG_FUNCTION_ARGS); -extern Datum float8abs(PG_FUNCTION_ARGS); -extern Datum float8_accum(PG_FUNCTION_ARGS); -extern Datum float8larger(PG_FUNCTION_ARGS); -extern Datum float8smaller(PG_FUNCTION_ARGS); -extern Datum lseg_center(PG_FUNCTION_ARGS); -extern Datum poly_center(PG_FUNCTION_ARGS); -extern Datum dround(PG_FUNCTION_ARGS); -extern Datum dtrunc(PG_FUNCTION_ARGS); -extern Datum dsqrt(PG_FUNCTION_ARGS); -extern Datum dcbrt(PG_FUNCTION_ARGS); -extern Datum dpow(PG_FUNCTION_ARGS); -extern Datum dexp(PG_FUNCTION_ARGS); -extern Datum dlog1(PG_FUNCTION_ARGS); -extern Datum i2tod(PG_FUNCTION_ARGS); -extern Datum i2tof(PG_FUNCTION_ARGS); -extern Datum dtoi2(PG_FUNCTION_ARGS); -extern Datum ftoi2(PG_FUNCTION_ARGS); -extern Datum line_distance(PG_FUNCTION_ARGS); -extern Datum nameeqtext(PG_FUNCTION_ARGS); -extern Datum namelttext(PG_FUNCTION_ARGS); -extern Datum nameletext(PG_FUNCTION_ARGS); -extern Datum namegetext(PG_FUNCTION_ARGS); -extern Datum namegttext(PG_FUNCTION_ARGS); -extern Datum namenetext(PG_FUNCTION_ARGS); -extern Datum btnametextcmp(PG_FUNCTION_ARGS); -extern Datum texteqname(PG_FUNCTION_ARGS); -extern Datum textltname(PG_FUNCTION_ARGS); -extern Datum textlename(PG_FUNCTION_ARGS); -extern Datum textgename(PG_FUNCTION_ARGS); -extern Datum textgtname(PG_FUNCTION_ARGS); -extern Datum textnename(PG_FUNCTION_ARGS); -extern Datum bttextnamecmp(PG_FUNCTION_ARGS); -extern Datum nameconcatoid(PG_FUNCTION_ARGS); -extern Datum table_am_handler_in(PG_FUNCTION_ARGS); -extern Datum table_am_handler_out(PG_FUNCTION_ARGS); -extern Datum timeofday(PG_FUNCTION_ARGS); -extern Datum pg_nextoid(PG_FUNCTION_ARGS); -extern Datum float8_combine(PG_FUNCTION_ARGS); -extern Datum inter_sl(PG_FUNCTION_ARGS); -extern Datum inter_lb(PG_FUNCTION_ARGS); -extern Datum float48mul(PG_FUNCTION_ARGS); -extern Datum float48div(PG_FUNCTION_ARGS); -extern Datum float48pl(PG_FUNCTION_ARGS); -extern Datum float48mi(PG_FUNCTION_ARGS); -extern Datum float84mul(PG_FUNCTION_ARGS); -extern Datum float84div(PG_FUNCTION_ARGS); -extern Datum float84pl(PG_FUNCTION_ARGS); -extern Datum float84mi(PG_FUNCTION_ARGS); -extern Datum float4eq(PG_FUNCTION_ARGS); -extern Datum float4ne(PG_FUNCTION_ARGS); -extern Datum float4lt(PG_FUNCTION_ARGS); -extern Datum float4le(PG_FUNCTION_ARGS); -extern Datum float4gt(PG_FUNCTION_ARGS); -extern Datum float4ge(PG_FUNCTION_ARGS); -extern Datum float8eq(PG_FUNCTION_ARGS); -extern Datum float8ne(PG_FUNCTION_ARGS); -extern Datum float8lt(PG_FUNCTION_ARGS); -extern Datum float8le(PG_FUNCTION_ARGS); -extern Datum float8gt(PG_FUNCTION_ARGS); -extern Datum float8ge(PG_FUNCTION_ARGS); -extern Datum float48eq(PG_FUNCTION_ARGS); -extern Datum float48ne(PG_FUNCTION_ARGS); -extern Datum float48lt(PG_FUNCTION_ARGS); -extern Datum float48le(PG_FUNCTION_ARGS); -extern Datum float48gt(PG_FUNCTION_ARGS); -extern Datum float48ge(PG_FUNCTION_ARGS); -extern Datum float84eq(PG_FUNCTION_ARGS); -extern Datum float84ne(PG_FUNCTION_ARGS); -extern Datum float84lt(PG_FUNCTION_ARGS); -extern Datum float84le(PG_FUNCTION_ARGS); -extern Datum float84gt(PG_FUNCTION_ARGS); -extern Datum float84ge(PG_FUNCTION_ARGS); -extern Datum ftod(PG_FUNCTION_ARGS); -extern Datum dtof(PG_FUNCTION_ARGS); -extern Datum i2toi4(PG_FUNCTION_ARGS); -extern Datum i4toi2(PG_FUNCTION_ARGS); -extern Datum pg_jit_available(PG_FUNCTION_ARGS); -extern Datum i4tod(PG_FUNCTION_ARGS); -extern Datum dtoi4(PG_FUNCTION_ARGS); -extern Datum i4tof(PG_FUNCTION_ARGS); -extern Datum ftoi4(PG_FUNCTION_ARGS); -extern Datum width_bucket_float8(PG_FUNCTION_ARGS); -extern Datum json_in(PG_FUNCTION_ARGS); -extern Datum json_out(PG_FUNCTION_ARGS); -extern Datum json_recv(PG_FUNCTION_ARGS); -extern Datum json_send(PG_FUNCTION_ARGS); -extern Datum index_am_handler_in(PG_FUNCTION_ARGS); -extern Datum index_am_handler_out(PG_FUNCTION_ARGS); -extern Datum hashmacaddr8(PG_FUNCTION_ARGS); -extern Datum hash_aclitem(PG_FUNCTION_ARGS); -extern Datum bthandler(PG_FUNCTION_ARGS); -extern Datum hashhandler(PG_FUNCTION_ARGS); -extern Datum gisthandler(PG_FUNCTION_ARGS); -extern Datum ginhandler(PG_FUNCTION_ARGS); -extern Datum spghandler(PG_FUNCTION_ARGS); -extern Datum brinhandler(PG_FUNCTION_ARGS); -extern Datum scalarlesel(PG_FUNCTION_ARGS); -extern Datum scalargesel(PG_FUNCTION_ARGS); -extern Datum amvalidate(PG_FUNCTION_ARGS); -extern Datum poly_same(PG_FUNCTION_ARGS); -extern Datum poly_contain(PG_FUNCTION_ARGS); -extern Datum poly_left(PG_FUNCTION_ARGS); -extern Datum poly_overleft(PG_FUNCTION_ARGS); -extern Datum poly_overright(PG_FUNCTION_ARGS); -extern Datum poly_right(PG_FUNCTION_ARGS); -extern Datum poly_contained(PG_FUNCTION_ARGS); -extern Datum poly_overlap(PG_FUNCTION_ARGS); -extern Datum poly_in(PG_FUNCTION_ARGS); -extern Datum poly_out(PG_FUNCTION_ARGS); -extern Datum btint2cmp(PG_FUNCTION_ARGS); -extern Datum btint4cmp(PG_FUNCTION_ARGS); -extern Datum btfloat4cmp(PG_FUNCTION_ARGS); -extern Datum btfloat8cmp(PG_FUNCTION_ARGS); -extern Datum btoidcmp(PG_FUNCTION_ARGS); -extern Datum dist_bp(PG_FUNCTION_ARGS); -extern Datum btcharcmp(PG_FUNCTION_ARGS); -extern Datum btnamecmp(PG_FUNCTION_ARGS); -extern Datum bttextcmp(PG_FUNCTION_ARGS); -extern Datum lseg_distance(PG_FUNCTION_ARGS); -extern Datum lseg_interpt(PG_FUNCTION_ARGS); -extern Datum dist_ps(PG_FUNCTION_ARGS); -extern Datum dist_pb(PG_FUNCTION_ARGS); -extern Datum dist_sb(PG_FUNCTION_ARGS); -extern Datum close_ps(PG_FUNCTION_ARGS); -extern Datum close_pb(PG_FUNCTION_ARGS); -extern Datum close_sb(PG_FUNCTION_ARGS); -extern Datum on_ps(PG_FUNCTION_ARGS); -extern Datum path_distance(PG_FUNCTION_ARGS); -extern Datum dist_ppath(PG_FUNCTION_ARGS); -extern Datum on_sb(PG_FUNCTION_ARGS); -extern Datum inter_sb(PG_FUNCTION_ARGS); -extern Datum text_to_array_null(PG_FUNCTION_ARGS); -extern Datum cash_cmp(PG_FUNCTION_ARGS); -extern Datum array_append(PG_FUNCTION_ARGS); -extern Datum array_prepend(PG_FUNCTION_ARGS); -extern Datum dist_sp(PG_FUNCTION_ARGS); -extern Datum dist_bs(PG_FUNCTION_ARGS); -extern Datum btarraycmp(PG_FUNCTION_ARGS); -extern Datum array_cat(PG_FUNCTION_ARGS); -extern Datum array_to_text_null(PG_FUNCTION_ARGS); -extern Datum scalarlejoinsel(PG_FUNCTION_ARGS); -extern Datum array_ne(PG_FUNCTION_ARGS); -extern Datum array_lt(PG_FUNCTION_ARGS); -extern Datum array_gt(PG_FUNCTION_ARGS); -extern Datum array_le(PG_FUNCTION_ARGS); -extern Datum text_to_array(PG_FUNCTION_ARGS); -extern Datum array_to_text(PG_FUNCTION_ARGS); -extern Datum array_ge(PG_FUNCTION_ARGS); -extern Datum scalargejoinsel(PG_FUNCTION_ARGS); -extern Datum hashmacaddr(PG_FUNCTION_ARGS); -extern Datum hashtext(PG_FUNCTION_ARGS); -extern Datum rtrim1(PG_FUNCTION_ARGS); -extern Datum btoidvectorcmp(PG_FUNCTION_ARGS); -extern Datum name_text(PG_FUNCTION_ARGS); -extern Datum text_name(PG_FUNCTION_ARGS); -extern Datum name_bpchar(PG_FUNCTION_ARGS); -extern Datum bpchar_name(PG_FUNCTION_ARGS); -extern Datum dist_pathp(PG_FUNCTION_ARGS); -extern Datum hashinet(PG_FUNCTION_ARGS); -extern Datum hashint4extended(PG_FUNCTION_ARGS); -extern Datum hash_numeric(PG_FUNCTION_ARGS); -extern Datum macaddr_in(PG_FUNCTION_ARGS); -extern Datum macaddr_out(PG_FUNCTION_ARGS); -extern Datum pg_num_nulls(PG_FUNCTION_ARGS); -extern Datum pg_num_nonnulls(PG_FUNCTION_ARGS); -extern Datum hashint2extended(PG_FUNCTION_ARGS); -extern Datum hashint8extended(PG_FUNCTION_ARGS); -extern Datum hashfloat4extended(PG_FUNCTION_ARGS); -extern Datum hashfloat8extended(PG_FUNCTION_ARGS); -extern Datum hashoidextended(PG_FUNCTION_ARGS); -extern Datum hashcharextended(PG_FUNCTION_ARGS); -extern Datum hashnameextended(PG_FUNCTION_ARGS); -extern Datum hashtextextended(PG_FUNCTION_ARGS); -extern Datum hashint2(PG_FUNCTION_ARGS); -extern Datum hashint4(PG_FUNCTION_ARGS); -extern Datum hashfloat4(PG_FUNCTION_ARGS); -extern Datum hashfloat8(PG_FUNCTION_ARGS); -extern Datum hashoid(PG_FUNCTION_ARGS); -extern Datum hashchar(PG_FUNCTION_ARGS); -extern Datum hashname(PG_FUNCTION_ARGS); -extern Datum hashvarlena(PG_FUNCTION_ARGS); -extern Datum hashoidvector(PG_FUNCTION_ARGS); -extern Datum text_larger(PG_FUNCTION_ARGS); -extern Datum text_smaller(PG_FUNCTION_ARGS); -extern Datum int8in(PG_FUNCTION_ARGS); -extern Datum int8out(PG_FUNCTION_ARGS); -extern Datum int8um(PG_FUNCTION_ARGS); -extern Datum int8pl(PG_FUNCTION_ARGS); -extern Datum int8mi(PG_FUNCTION_ARGS); -extern Datum int8mul(PG_FUNCTION_ARGS); -extern Datum int8div(PG_FUNCTION_ARGS); -extern Datum int8eq(PG_FUNCTION_ARGS); -extern Datum int8ne(PG_FUNCTION_ARGS); -extern Datum int8lt(PG_FUNCTION_ARGS); -extern Datum int8gt(PG_FUNCTION_ARGS); -extern Datum int8le(PG_FUNCTION_ARGS); -extern Datum int8ge(PG_FUNCTION_ARGS); -extern Datum int84eq(PG_FUNCTION_ARGS); -extern Datum int84ne(PG_FUNCTION_ARGS); -extern Datum int84lt(PG_FUNCTION_ARGS); -extern Datum int84gt(PG_FUNCTION_ARGS); -extern Datum int84le(PG_FUNCTION_ARGS); -extern Datum int84ge(PG_FUNCTION_ARGS); -extern Datum int84(PG_FUNCTION_ARGS); -extern Datum int48(PG_FUNCTION_ARGS); -extern Datum i8tod(PG_FUNCTION_ARGS); -extern Datum dtoi8(PG_FUNCTION_ARGS); -extern Datum array_larger(PG_FUNCTION_ARGS); -extern Datum array_smaller(PG_FUNCTION_ARGS); -extern Datum inet_abbrev(PG_FUNCTION_ARGS); -extern Datum cidr_abbrev(PG_FUNCTION_ARGS); -extern Datum inet_set_masklen(PG_FUNCTION_ARGS); -extern Datum oidvectorne(PG_FUNCTION_ARGS); -extern Datum hash_array(PG_FUNCTION_ARGS); -extern Datum cidr_set_masklen(PG_FUNCTION_ARGS); -extern Datum pg_indexam_has_property(PG_FUNCTION_ARGS); -extern Datum pg_index_has_property(PG_FUNCTION_ARGS); -extern Datum pg_index_column_has_property(PG_FUNCTION_ARGS); -extern Datum i8tof(PG_FUNCTION_ARGS); -extern Datum ftoi8(PG_FUNCTION_ARGS); -extern Datum namelt(PG_FUNCTION_ARGS); -extern Datum namele(PG_FUNCTION_ARGS); -extern Datum namegt(PG_FUNCTION_ARGS); -extern Datum namege(PG_FUNCTION_ARGS); -extern Datum namene(PG_FUNCTION_ARGS); -extern Datum bpchar(PG_FUNCTION_ARGS); -extern Datum varchar(PG_FUNCTION_ARGS); -extern Datum pg_indexam_progress_phasename(PG_FUNCTION_ARGS); -extern Datum oidvectorlt(PG_FUNCTION_ARGS); -extern Datum oidvectorle(PG_FUNCTION_ARGS); -extern Datum oidvectoreq(PG_FUNCTION_ARGS); -extern Datum oidvectorge(PG_FUNCTION_ARGS); -extern Datum oidvectorgt(PG_FUNCTION_ARGS); -extern Datum network_network(PG_FUNCTION_ARGS); -extern Datum network_netmask(PG_FUNCTION_ARGS); -extern Datum network_masklen(PG_FUNCTION_ARGS); -extern Datum network_broadcast(PG_FUNCTION_ARGS); -extern Datum network_host(PG_FUNCTION_ARGS); -extern Datum dist_lp(PG_FUNCTION_ARGS); -extern Datum dist_ls(PG_FUNCTION_ARGS); -extern Datum current_user(PG_FUNCTION_ARGS); -extern Datum network_family(PG_FUNCTION_ARGS); -extern Datum int82(PG_FUNCTION_ARGS); -extern Datum be_lo_create(PG_FUNCTION_ARGS); -extern Datum oidlt(PG_FUNCTION_ARGS); -extern Datum oidle(PG_FUNCTION_ARGS); -extern Datum byteaoctetlen(PG_FUNCTION_ARGS); -extern Datum byteaGetByte(PG_FUNCTION_ARGS); -extern Datum byteaSetByte(PG_FUNCTION_ARGS); -extern Datum byteaGetBit(PG_FUNCTION_ARGS); -extern Datum byteaSetBit(PG_FUNCTION_ARGS); -extern Datum dist_pl(PG_FUNCTION_ARGS); -extern Datum dist_sl(PG_FUNCTION_ARGS); -extern Datum dist_cpoly(PG_FUNCTION_ARGS); -extern Datum poly_distance(PG_FUNCTION_ARGS); -extern Datum network_show(PG_FUNCTION_ARGS); -extern Datum text_lt(PG_FUNCTION_ARGS); -extern Datum text_le(PG_FUNCTION_ARGS); -extern Datum text_gt(PG_FUNCTION_ARGS); -extern Datum text_ge(PG_FUNCTION_ARGS); -extern Datum array_eq(PG_FUNCTION_ARGS); -extern Datum session_user(PG_FUNCTION_ARGS); -extern Datum array_dims(PG_FUNCTION_ARGS); -extern Datum array_ndims(PG_FUNCTION_ARGS); -extern Datum byteaoverlay(PG_FUNCTION_ARGS); -extern Datum array_in(PG_FUNCTION_ARGS); -extern Datum array_out(PG_FUNCTION_ARGS); -extern Datum byteaoverlay_no_len(PG_FUNCTION_ARGS); -extern Datum macaddr_trunc(PG_FUNCTION_ARGS); -extern Datum int28(PG_FUNCTION_ARGS); -extern Datum be_lo_import(PG_FUNCTION_ARGS); -extern Datum be_lo_export(PG_FUNCTION_ARGS); -extern Datum int4inc(PG_FUNCTION_ARGS); -extern Datum be_lo_import_with_oid(PG_FUNCTION_ARGS); -extern Datum int4larger(PG_FUNCTION_ARGS); -extern Datum int4smaller(PG_FUNCTION_ARGS); -extern Datum int2larger(PG_FUNCTION_ARGS); -extern Datum int2smaller(PG_FUNCTION_ARGS); -extern Datum hashvarlenaextended(PG_FUNCTION_ARGS); -extern Datum hashoidvectorextended(PG_FUNCTION_ARGS); -extern Datum hash_aclitem_extended(PG_FUNCTION_ARGS); -extern Datum hashmacaddrextended(PG_FUNCTION_ARGS); -extern Datum hashinetextended(PG_FUNCTION_ARGS); -extern Datum hash_numeric_extended(PG_FUNCTION_ARGS); -extern Datum hashmacaddr8extended(PG_FUNCTION_ARGS); -extern Datum hash_array_extended(PG_FUNCTION_ARGS); -extern Datum dist_polyc(PG_FUNCTION_ARGS); -extern Datum pg_client_encoding(PG_FUNCTION_ARGS); -extern Datum current_query(PG_FUNCTION_ARGS); -extern Datum macaddr_eq(PG_FUNCTION_ARGS); -extern Datum macaddr_lt(PG_FUNCTION_ARGS); -extern Datum macaddr_le(PG_FUNCTION_ARGS); -extern Datum macaddr_gt(PG_FUNCTION_ARGS); -extern Datum macaddr_ge(PG_FUNCTION_ARGS); -extern Datum macaddr_ne(PG_FUNCTION_ARGS); -extern Datum macaddr_cmp(PG_FUNCTION_ARGS); -extern Datum int82pl(PG_FUNCTION_ARGS); -extern Datum int82mi(PG_FUNCTION_ARGS); -extern Datum int82mul(PG_FUNCTION_ARGS); -extern Datum int82div(PG_FUNCTION_ARGS); -extern Datum int28pl(PG_FUNCTION_ARGS); -extern Datum btint8cmp(PG_FUNCTION_ARGS); -extern Datum cash_mul_flt4(PG_FUNCTION_ARGS); -extern Datum cash_div_flt4(PG_FUNCTION_ARGS); -extern Datum flt4_mul_cash(PG_FUNCTION_ARGS); -extern Datum textpos(PG_FUNCTION_ARGS); -extern Datum textlike(PG_FUNCTION_ARGS); -extern Datum textnlike(PG_FUNCTION_ARGS); -extern Datum int48eq(PG_FUNCTION_ARGS); -extern Datum int48ne(PG_FUNCTION_ARGS); -extern Datum int48lt(PG_FUNCTION_ARGS); -extern Datum int48gt(PG_FUNCTION_ARGS); -extern Datum int48le(PG_FUNCTION_ARGS); -extern Datum int48ge(PG_FUNCTION_ARGS); -extern Datum namelike(PG_FUNCTION_ARGS); -extern Datum namenlike(PG_FUNCTION_ARGS); -extern Datum char_bpchar(PG_FUNCTION_ARGS); -extern Datum current_database(PG_FUNCTION_ARGS); -extern Datum int4_mul_cash(PG_FUNCTION_ARGS); -extern Datum int2_mul_cash(PG_FUNCTION_ARGS); -extern Datum cash_mul_int4(PG_FUNCTION_ARGS); -extern Datum cash_div_int4(PG_FUNCTION_ARGS); -extern Datum cash_mul_int2(PG_FUNCTION_ARGS); -extern Datum cash_div_int2(PG_FUNCTION_ARGS); -extern Datum lower(PG_FUNCTION_ARGS); -extern Datum upper(PG_FUNCTION_ARGS); -extern Datum initcap(PG_FUNCTION_ARGS); -extern Datum lpad(PG_FUNCTION_ARGS); -extern Datum rpad(PG_FUNCTION_ARGS); -extern Datum ltrim(PG_FUNCTION_ARGS); -extern Datum rtrim(PG_FUNCTION_ARGS); -extern Datum text_substr(PG_FUNCTION_ARGS); -extern Datum translate(PG_FUNCTION_ARGS); -extern Datum ltrim1(PG_FUNCTION_ARGS); -extern Datum text_substr_no_len(PG_FUNCTION_ARGS); -extern Datum btrim(PG_FUNCTION_ARGS); -extern Datum btrim1(PG_FUNCTION_ARGS); -extern Datum cash_in(PG_FUNCTION_ARGS); -extern Datum cash_out(PG_FUNCTION_ARGS); -extern Datum cash_eq(PG_FUNCTION_ARGS); -extern Datum cash_ne(PG_FUNCTION_ARGS); -extern Datum cash_lt(PG_FUNCTION_ARGS); -extern Datum cash_le(PG_FUNCTION_ARGS); -extern Datum cash_gt(PG_FUNCTION_ARGS); -extern Datum cash_ge(PG_FUNCTION_ARGS); -extern Datum cash_pl(PG_FUNCTION_ARGS); -extern Datum cash_mi(PG_FUNCTION_ARGS); -extern Datum cash_mul_flt8(PG_FUNCTION_ARGS); -extern Datum cash_div_flt8(PG_FUNCTION_ARGS); -extern Datum cashlarger(PG_FUNCTION_ARGS); -extern Datum cashsmaller(PG_FUNCTION_ARGS); -extern Datum inet_in(PG_FUNCTION_ARGS); -extern Datum inet_out(PG_FUNCTION_ARGS); -extern Datum flt8_mul_cash(PG_FUNCTION_ARGS); -extern Datum network_eq(PG_FUNCTION_ARGS); -extern Datum network_lt(PG_FUNCTION_ARGS); -extern Datum network_le(PG_FUNCTION_ARGS); -extern Datum network_gt(PG_FUNCTION_ARGS); -extern Datum network_ge(PG_FUNCTION_ARGS); -extern Datum network_ne(PG_FUNCTION_ARGS); -extern Datum network_cmp(PG_FUNCTION_ARGS); -extern Datum network_sub(PG_FUNCTION_ARGS); -extern Datum network_subeq(PG_FUNCTION_ARGS); -extern Datum network_sup(PG_FUNCTION_ARGS); -extern Datum network_supeq(PG_FUNCTION_ARGS); -extern Datum cash_words(PG_FUNCTION_ARGS); -extern Datum generate_series_timestamp(PG_FUNCTION_ARGS); -extern Datum generate_series_timestamptz(PG_FUNCTION_ARGS); -extern Datum int28mi(PG_FUNCTION_ARGS); -extern Datum int28mul(PG_FUNCTION_ARGS); -extern Datum text_char(PG_FUNCTION_ARGS); -extern Datum int8mod(PG_FUNCTION_ARGS); -extern Datum char_text(PG_FUNCTION_ARGS); -extern Datum int28div(PG_FUNCTION_ARGS); -extern Datum hashint8(PG_FUNCTION_ARGS); -extern Datum be_lo_open(PG_FUNCTION_ARGS); -extern Datum be_lo_close(PG_FUNCTION_ARGS); -extern Datum be_loread(PG_FUNCTION_ARGS); -extern Datum be_lowrite(PG_FUNCTION_ARGS); -extern Datum be_lo_lseek(PG_FUNCTION_ARGS); -extern Datum be_lo_creat(PG_FUNCTION_ARGS); -extern Datum be_lo_tell(PG_FUNCTION_ARGS); -extern Datum on_pl(PG_FUNCTION_ARGS); -extern Datum on_sl(PG_FUNCTION_ARGS); -extern Datum close_pl(PG_FUNCTION_ARGS); -extern Datum be_lo_unlink(PG_FUNCTION_ARGS); -extern Datum hashbpcharextended(PG_FUNCTION_ARGS); -extern Datum path_inter(PG_FUNCTION_ARGS); -extern Datum box_area(PG_FUNCTION_ARGS); -extern Datum box_width(PG_FUNCTION_ARGS); -extern Datum box_height(PG_FUNCTION_ARGS); -extern Datum box_distance(PG_FUNCTION_ARGS); -extern Datum path_area(PG_FUNCTION_ARGS); -extern Datum box_intersect(PG_FUNCTION_ARGS); -extern Datum box_diagonal(PG_FUNCTION_ARGS); -extern Datum path_n_lt(PG_FUNCTION_ARGS); -extern Datum path_n_gt(PG_FUNCTION_ARGS); -extern Datum path_n_eq(PG_FUNCTION_ARGS); -extern Datum path_n_le(PG_FUNCTION_ARGS); -extern Datum path_n_ge(PG_FUNCTION_ARGS); -extern Datum path_length(PG_FUNCTION_ARGS); -extern Datum point_ne(PG_FUNCTION_ARGS); -extern Datum point_vert(PG_FUNCTION_ARGS); -extern Datum point_horiz(PG_FUNCTION_ARGS); -extern Datum point_distance(PG_FUNCTION_ARGS); -extern Datum point_slope(PG_FUNCTION_ARGS); -extern Datum lseg_construct(PG_FUNCTION_ARGS); -extern Datum lseg_intersect(PG_FUNCTION_ARGS); -extern Datum lseg_parallel(PG_FUNCTION_ARGS); -extern Datum lseg_perp(PG_FUNCTION_ARGS); -extern Datum lseg_vertical(PG_FUNCTION_ARGS); -extern Datum lseg_horizontal(PG_FUNCTION_ARGS); -extern Datum lseg_eq(PG_FUNCTION_ARGS); -extern Datum be_lo_truncate(PG_FUNCTION_ARGS); -extern Datum textlike_support(PG_FUNCTION_ARGS); -extern Datum texticregexeq_support(PG_FUNCTION_ARGS); -extern Datum texticlike_support(PG_FUNCTION_ARGS); -extern Datum timestamptz_izone(PG_FUNCTION_ARGS); -extern Datum gist_point_compress(PG_FUNCTION_ARGS); -extern Datum aclitemin(PG_FUNCTION_ARGS); -extern Datum aclitemout(PG_FUNCTION_ARGS); -extern Datum aclinsert(PG_FUNCTION_ARGS); -extern Datum aclremove(PG_FUNCTION_ARGS); -extern Datum aclcontains(PG_FUNCTION_ARGS); -extern Datum getdatabaseencoding(PG_FUNCTION_ARGS); -extern Datum bpcharin(PG_FUNCTION_ARGS); -extern Datum bpcharout(PG_FUNCTION_ARGS); -extern Datum varcharin(PG_FUNCTION_ARGS); -extern Datum varcharout(PG_FUNCTION_ARGS); -extern Datum bpchareq(PG_FUNCTION_ARGS); -extern Datum bpcharlt(PG_FUNCTION_ARGS); -extern Datum bpcharle(PG_FUNCTION_ARGS); -extern Datum bpchargt(PG_FUNCTION_ARGS); -extern Datum bpcharge(PG_FUNCTION_ARGS); -extern Datum bpcharne(PG_FUNCTION_ARGS); -extern Datum aclitem_eq(PG_FUNCTION_ARGS); -extern Datum bpchar_larger(PG_FUNCTION_ARGS); -extern Datum bpchar_smaller(PG_FUNCTION_ARGS); -extern Datum pg_prepared_xact(PG_FUNCTION_ARGS); -extern Datum generate_series_step_int4(PG_FUNCTION_ARGS); -extern Datum generate_series_int4(PG_FUNCTION_ARGS); -extern Datum generate_series_step_int8(PG_FUNCTION_ARGS); -extern Datum generate_series_int8(PG_FUNCTION_ARGS); -extern Datum bpcharcmp(PG_FUNCTION_ARGS); -extern Datum text_regclass(PG_FUNCTION_ARGS); -extern Datum hashbpchar(PG_FUNCTION_ARGS); -extern Datum format_type(PG_FUNCTION_ARGS); -extern Datum date_in(PG_FUNCTION_ARGS); -extern Datum date_out(PG_FUNCTION_ARGS); -extern Datum date_eq(PG_FUNCTION_ARGS); -extern Datum date_lt(PG_FUNCTION_ARGS); -extern Datum date_le(PG_FUNCTION_ARGS); -extern Datum date_gt(PG_FUNCTION_ARGS); -extern Datum date_ge(PG_FUNCTION_ARGS); -extern Datum date_ne(PG_FUNCTION_ARGS); -extern Datum date_cmp(PG_FUNCTION_ARGS); -extern Datum time_lt(PG_FUNCTION_ARGS); -extern Datum time_le(PG_FUNCTION_ARGS); -extern Datum time_gt(PG_FUNCTION_ARGS); -extern Datum time_ge(PG_FUNCTION_ARGS); -extern Datum time_ne(PG_FUNCTION_ARGS); -extern Datum time_cmp(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_wal(PG_FUNCTION_ARGS); -extern Datum pg_get_wal_replay_pause_state(PG_FUNCTION_ARGS); -extern Datum date_larger(PG_FUNCTION_ARGS); -extern Datum date_smaller(PG_FUNCTION_ARGS); -extern Datum date_mi(PG_FUNCTION_ARGS); -extern Datum date_pli(PG_FUNCTION_ARGS); -extern Datum date_mii(PG_FUNCTION_ARGS); -extern Datum time_in(PG_FUNCTION_ARGS); -extern Datum time_out(PG_FUNCTION_ARGS); -extern Datum time_eq(PG_FUNCTION_ARGS); -extern Datum circle_add_pt(PG_FUNCTION_ARGS); -extern Datum circle_sub_pt(PG_FUNCTION_ARGS); -extern Datum circle_mul_pt(PG_FUNCTION_ARGS); -extern Datum circle_div_pt(PG_FUNCTION_ARGS); -extern Datum timestamptz_in(PG_FUNCTION_ARGS); -extern Datum timestamptz_out(PG_FUNCTION_ARGS); -extern Datum timestamp_eq(PG_FUNCTION_ARGS); -extern Datum timestamp_ne(PG_FUNCTION_ARGS); -extern Datum timestamp_lt(PG_FUNCTION_ARGS); -extern Datum timestamp_le(PG_FUNCTION_ARGS); -extern Datum timestamp_ge(PG_FUNCTION_ARGS); -extern Datum timestamp_gt(PG_FUNCTION_ARGS); -extern Datum float8_timestamptz(PG_FUNCTION_ARGS); -extern Datum timestamptz_zone(PG_FUNCTION_ARGS); -extern Datum interval_in(PG_FUNCTION_ARGS); -extern Datum interval_out(PG_FUNCTION_ARGS); -extern Datum interval_eq(PG_FUNCTION_ARGS); -extern Datum interval_ne(PG_FUNCTION_ARGS); -extern Datum interval_lt(PG_FUNCTION_ARGS); -extern Datum interval_le(PG_FUNCTION_ARGS); -extern Datum interval_ge(PG_FUNCTION_ARGS); -extern Datum interval_gt(PG_FUNCTION_ARGS); -extern Datum interval_um(PG_FUNCTION_ARGS); -extern Datum interval_pl(PG_FUNCTION_ARGS); -extern Datum interval_mi(PG_FUNCTION_ARGS); -extern Datum timestamptz_part(PG_FUNCTION_ARGS); -extern Datum interval_part(PG_FUNCTION_ARGS); -extern Datum network_subset_support(PG_FUNCTION_ARGS); -extern Datum date_timestamptz(PG_FUNCTION_ARGS); -extern Datum interval_justify_hours(PG_FUNCTION_ARGS); -extern Datum jsonb_path_exists_tz(PG_FUNCTION_ARGS); -extern Datum timestamptz_date(PG_FUNCTION_ARGS); -extern Datum jsonb_path_query_tz(PG_FUNCTION_ARGS); -extern Datum jsonb_path_query_array_tz(PG_FUNCTION_ARGS); -extern Datum xid_age(PG_FUNCTION_ARGS); -extern Datum timestamp_mi(PG_FUNCTION_ARGS); -extern Datum timestamptz_pl_interval(PG_FUNCTION_ARGS); -extern Datum timestamptz_mi_interval(PG_FUNCTION_ARGS); -extern Datum generate_subscripts(PG_FUNCTION_ARGS); -extern Datum generate_subscripts_nodir(PG_FUNCTION_ARGS); -extern Datum array_fill(PG_FUNCTION_ARGS); -extern Datum dlog10(PG_FUNCTION_ARGS); -extern Datum timestamp_smaller(PG_FUNCTION_ARGS); -extern Datum timestamp_larger(PG_FUNCTION_ARGS); -extern Datum interval_smaller(PG_FUNCTION_ARGS); -extern Datum interval_larger(PG_FUNCTION_ARGS); -extern Datum timestamptz_age(PG_FUNCTION_ARGS); -extern Datum interval_scale(PG_FUNCTION_ARGS); -extern Datum timestamptz_trunc(PG_FUNCTION_ARGS); -extern Datum interval_trunc(PG_FUNCTION_ARGS); -extern Datum int8inc(PG_FUNCTION_ARGS); -extern Datum int8abs(PG_FUNCTION_ARGS); -extern Datum int8larger(PG_FUNCTION_ARGS); -extern Datum int8smaller(PG_FUNCTION_ARGS); -extern Datum texticregexeq(PG_FUNCTION_ARGS); -extern Datum texticregexne(PG_FUNCTION_ARGS); -extern Datum nameicregexeq(PG_FUNCTION_ARGS); -extern Datum nameicregexne(PG_FUNCTION_ARGS); -extern Datum boolin(PG_FUNCTION_ARGS); -extern Datum boolout(PG_FUNCTION_ARGS); -extern Datum byteain(PG_FUNCTION_ARGS); -extern Datum charin(PG_FUNCTION_ARGS); -extern Datum charlt(PG_FUNCTION_ARGS); -extern Datum unique_key_recheck(PG_FUNCTION_ARGS); -extern Datum int4abs(PG_FUNCTION_ARGS); -extern Datum nameregexne(PG_FUNCTION_ARGS); -extern Datum int2abs(PG_FUNCTION_ARGS); -extern Datum textregexeq(PG_FUNCTION_ARGS); -extern Datum textregexne(PG_FUNCTION_ARGS); -extern Datum textlen(PG_FUNCTION_ARGS); -extern Datum textcat(PG_FUNCTION_ARGS); -extern Datum PG_char_to_encoding(PG_FUNCTION_ARGS); -extern Datum tidne(PG_FUNCTION_ARGS); -extern Datum cidr_in(PG_FUNCTION_ARGS); -extern Datum parse_ident(PG_FUNCTION_ARGS); -extern Datum pg_column_size(PG_FUNCTION_ARGS); -extern Datum overlaps_timetz(PG_FUNCTION_ARGS); -extern Datum datetime_timestamp(PG_FUNCTION_ARGS); -extern Datum timetz_part(PG_FUNCTION_ARGS); -extern Datum int84pl(PG_FUNCTION_ARGS); -extern Datum int84mi(PG_FUNCTION_ARGS); -extern Datum int84mul(PG_FUNCTION_ARGS); -extern Datum int84div(PG_FUNCTION_ARGS); -extern Datum int48pl(PG_FUNCTION_ARGS); -extern Datum int48mi(PG_FUNCTION_ARGS); -extern Datum int48mul(PG_FUNCTION_ARGS); -extern Datum int48div(PG_FUNCTION_ARGS); -extern Datum quote_ident(PG_FUNCTION_ARGS); -extern Datum quote_literal(PG_FUNCTION_ARGS); -extern Datum timestamptz_trunc_zone(PG_FUNCTION_ARGS); -extern Datum array_fill_with_lower_bounds(PG_FUNCTION_ARGS); -extern Datum i8tooid(PG_FUNCTION_ARGS); -extern Datum oidtoi8(PG_FUNCTION_ARGS); -extern Datum quote_nullable(PG_FUNCTION_ARGS); -extern Datum suppress_redundant_updates_trigger(PG_FUNCTION_ARGS); -extern Datum tideq(PG_FUNCTION_ARGS); -extern Datum multirange_unnest(PG_FUNCTION_ARGS); -extern Datum currtid_byrelname(PG_FUNCTION_ARGS); -extern Datum interval_justify_days(PG_FUNCTION_ARGS); -extern Datum datetimetz_timestamptz(PG_FUNCTION_ARGS); -extern Datum now(PG_FUNCTION_ARGS); -extern Datum positionsel(PG_FUNCTION_ARGS); -extern Datum positionjoinsel(PG_FUNCTION_ARGS); -extern Datum contsel(PG_FUNCTION_ARGS); -extern Datum contjoinsel(PG_FUNCTION_ARGS); -extern Datum overlaps_timestamp(PG_FUNCTION_ARGS); -extern Datum overlaps_time(PG_FUNCTION_ARGS); -extern Datum timestamp_in(PG_FUNCTION_ARGS); -extern Datum timestamp_out(PG_FUNCTION_ARGS); -extern Datum timestamp_cmp(PG_FUNCTION_ARGS); -extern Datum interval_cmp(PG_FUNCTION_ARGS); -extern Datum timestamp_time(PG_FUNCTION_ARGS); -extern Datum bpcharlen(PG_FUNCTION_ARGS); -extern Datum interval_div(PG_FUNCTION_ARGS); -extern Datum oidvectortypes(PG_FUNCTION_ARGS); -extern Datum timetz_in(PG_FUNCTION_ARGS); -extern Datum timetz_out(PG_FUNCTION_ARGS); -extern Datum timetz_eq(PG_FUNCTION_ARGS); -extern Datum timetz_ne(PG_FUNCTION_ARGS); -extern Datum timetz_lt(PG_FUNCTION_ARGS); -extern Datum timetz_le(PG_FUNCTION_ARGS); -extern Datum timetz_ge(PG_FUNCTION_ARGS); -extern Datum timetz_gt(PG_FUNCTION_ARGS); -extern Datum timetz_cmp(PG_FUNCTION_ARGS); -extern Datum network_hostmask(PG_FUNCTION_ARGS); -extern Datum textregexeq_support(PG_FUNCTION_ARGS); -extern Datum makeaclitem(PG_FUNCTION_ARGS); -extern Datum time_interval(PG_FUNCTION_ARGS); -extern Datum pg_lock_status(PG_FUNCTION_ARGS); -extern Datum date_finite(PG_FUNCTION_ARGS); -extern Datum textoctetlen(PG_FUNCTION_ARGS); -extern Datum bpcharoctetlen(PG_FUNCTION_ARGS); -extern Datum numeric_fac(PG_FUNCTION_ARGS); -extern Datum time_larger(PG_FUNCTION_ARGS); -extern Datum time_smaller(PG_FUNCTION_ARGS); -extern Datum timetz_larger(PG_FUNCTION_ARGS); -extern Datum timetz_smaller(PG_FUNCTION_ARGS); -extern Datum time_part(PG_FUNCTION_ARGS); -extern Datum pg_get_constraintdef(PG_FUNCTION_ARGS); -extern Datum timestamptz_timetz(PG_FUNCTION_ARGS); -extern Datum timestamp_finite(PG_FUNCTION_ARGS); -extern Datum interval_finite(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_backend_start(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_backend_client_addr(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_backend_client_port(PG_FUNCTION_ARGS); -extern Datum current_schema(PG_FUNCTION_ARGS); -extern Datum current_schemas(PG_FUNCTION_ARGS); -extern Datum textoverlay(PG_FUNCTION_ARGS); -extern Datum textoverlay_no_len(PG_FUNCTION_ARGS); -extern Datum line_parallel(PG_FUNCTION_ARGS); -extern Datum line_perp(PG_FUNCTION_ARGS); -extern Datum line_vertical(PG_FUNCTION_ARGS); -extern Datum line_horizontal(PG_FUNCTION_ARGS); -extern Datum circle_center(PG_FUNCTION_ARGS); -extern Datum interval_time(PG_FUNCTION_ARGS); -extern Datum points_box(PG_FUNCTION_ARGS); -extern Datum box_add(PG_FUNCTION_ARGS); -extern Datum box_sub(PG_FUNCTION_ARGS); -extern Datum box_mul(PG_FUNCTION_ARGS); -extern Datum box_div(PG_FUNCTION_ARGS); -extern Datum cidr_out(PG_FUNCTION_ARGS); -extern Datum poly_contain_pt(PG_FUNCTION_ARGS); -extern Datum pt_contained_poly(PG_FUNCTION_ARGS); -extern Datum path_isclosed(PG_FUNCTION_ARGS); -extern Datum path_isopen(PG_FUNCTION_ARGS); -extern Datum path_npoints(PG_FUNCTION_ARGS); -extern Datum path_close(PG_FUNCTION_ARGS); -extern Datum path_open(PG_FUNCTION_ARGS); -extern Datum path_add(PG_FUNCTION_ARGS); -extern Datum path_add_pt(PG_FUNCTION_ARGS); -extern Datum path_sub_pt(PG_FUNCTION_ARGS); -extern Datum path_mul_pt(PG_FUNCTION_ARGS); -extern Datum path_div_pt(PG_FUNCTION_ARGS); -extern Datum construct_point(PG_FUNCTION_ARGS); -extern Datum point_add(PG_FUNCTION_ARGS); -extern Datum point_sub(PG_FUNCTION_ARGS); -extern Datum point_mul(PG_FUNCTION_ARGS); -extern Datum point_div(PG_FUNCTION_ARGS); -extern Datum poly_npoints(PG_FUNCTION_ARGS); -extern Datum poly_box(PG_FUNCTION_ARGS); -extern Datum poly_path(PG_FUNCTION_ARGS); -extern Datum box_poly(PG_FUNCTION_ARGS); -extern Datum path_poly(PG_FUNCTION_ARGS); -extern Datum circle_in(PG_FUNCTION_ARGS); -extern Datum circle_out(PG_FUNCTION_ARGS); -extern Datum circle_same(PG_FUNCTION_ARGS); -extern Datum circle_contain(PG_FUNCTION_ARGS); -extern Datum circle_left(PG_FUNCTION_ARGS); -extern Datum circle_overleft(PG_FUNCTION_ARGS); -extern Datum circle_overright(PG_FUNCTION_ARGS); -extern Datum circle_right(PG_FUNCTION_ARGS); -extern Datum circle_contained(PG_FUNCTION_ARGS); -extern Datum circle_overlap(PG_FUNCTION_ARGS); -extern Datum circle_below(PG_FUNCTION_ARGS); -extern Datum circle_above(PG_FUNCTION_ARGS); -extern Datum circle_eq(PG_FUNCTION_ARGS); -extern Datum circle_ne(PG_FUNCTION_ARGS); -extern Datum circle_lt(PG_FUNCTION_ARGS); -extern Datum circle_gt(PG_FUNCTION_ARGS); -extern Datum circle_le(PG_FUNCTION_ARGS); -extern Datum circle_ge(PG_FUNCTION_ARGS); -extern Datum circle_area(PG_FUNCTION_ARGS); -extern Datum circle_diameter(PG_FUNCTION_ARGS); -extern Datum circle_radius(PG_FUNCTION_ARGS); -extern Datum circle_distance(PG_FUNCTION_ARGS); -extern Datum cr_circle(PG_FUNCTION_ARGS); -extern Datum poly_circle(PG_FUNCTION_ARGS); -extern Datum circle_poly(PG_FUNCTION_ARGS); -extern Datum dist_pc(PG_FUNCTION_ARGS); -extern Datum circle_contain_pt(PG_FUNCTION_ARGS); -extern Datum pt_contained_circle(PG_FUNCTION_ARGS); -extern Datum box_circle(PG_FUNCTION_ARGS); -extern Datum circle_box(PG_FUNCTION_ARGS); -extern Datum lseg_ne(PG_FUNCTION_ARGS); -extern Datum lseg_lt(PG_FUNCTION_ARGS); -extern Datum lseg_le(PG_FUNCTION_ARGS); -extern Datum lseg_gt(PG_FUNCTION_ARGS); -extern Datum lseg_ge(PG_FUNCTION_ARGS); -extern Datum lseg_length(PG_FUNCTION_ARGS); -extern Datum close_ls(PG_FUNCTION_ARGS); -extern Datum close_lseg(PG_FUNCTION_ARGS); -extern Datum line_in(PG_FUNCTION_ARGS); -extern Datum line_out(PG_FUNCTION_ARGS); -extern Datum line_eq(PG_FUNCTION_ARGS); -extern Datum line_construct_pp(PG_FUNCTION_ARGS); -extern Datum line_interpt(PG_FUNCTION_ARGS); -extern Datum line_intersect(PG_FUNCTION_ARGS); -extern Datum bit_in(PG_FUNCTION_ARGS); -extern Datum bit_out(PG_FUNCTION_ARGS); -extern Datum pg_get_ruledef(PG_FUNCTION_ARGS); -extern Datum nextval_oid(PG_FUNCTION_ARGS); -extern Datum currval_oid(PG_FUNCTION_ARGS); -extern Datum setval_oid(PG_FUNCTION_ARGS); -extern Datum varbit_in(PG_FUNCTION_ARGS); -extern Datum varbit_out(PG_FUNCTION_ARGS); -extern Datum biteq(PG_FUNCTION_ARGS); -extern Datum bitne(PG_FUNCTION_ARGS); -extern Datum bitge(PG_FUNCTION_ARGS); -extern Datum bitgt(PG_FUNCTION_ARGS); -extern Datum bitle(PG_FUNCTION_ARGS); -extern Datum bitlt(PG_FUNCTION_ARGS); -extern Datum bitcmp(PG_FUNCTION_ARGS); -extern Datum PG_encoding_to_char(PG_FUNCTION_ARGS); -extern Datum drandom(PG_FUNCTION_ARGS); -extern Datum setseed(PG_FUNCTION_ARGS); -extern Datum dasin(PG_FUNCTION_ARGS); -extern Datum dacos(PG_FUNCTION_ARGS); -extern Datum datan(PG_FUNCTION_ARGS); -extern Datum datan2(PG_FUNCTION_ARGS); -extern Datum dsin(PG_FUNCTION_ARGS); -extern Datum dcos(PG_FUNCTION_ARGS); -extern Datum dtan(PG_FUNCTION_ARGS); -extern Datum dcot(PG_FUNCTION_ARGS); -extern Datum degrees(PG_FUNCTION_ARGS); -extern Datum radians(PG_FUNCTION_ARGS); -extern Datum dpi(PG_FUNCTION_ARGS); -extern Datum interval_mul(PG_FUNCTION_ARGS); -extern Datum pg_typeof(PG_FUNCTION_ARGS); -extern Datum ascii(PG_FUNCTION_ARGS); -extern Datum chr(PG_FUNCTION_ARGS); -extern Datum repeat(PG_FUNCTION_ARGS); -extern Datum similar_escape(PG_FUNCTION_ARGS); -extern Datum mul_d_interval(PG_FUNCTION_ARGS); -extern Datum texticlike(PG_FUNCTION_ARGS); -extern Datum texticnlike(PG_FUNCTION_ARGS); -extern Datum nameiclike(PG_FUNCTION_ARGS); -extern Datum nameicnlike(PG_FUNCTION_ARGS); -extern Datum like_escape(PG_FUNCTION_ARGS); -extern Datum oidgt(PG_FUNCTION_ARGS); -extern Datum oidge(PG_FUNCTION_ARGS); -extern Datum pg_get_viewdef_name(PG_FUNCTION_ARGS); -extern Datum pg_get_viewdef(PG_FUNCTION_ARGS); -extern Datum pg_get_userbyid(PG_FUNCTION_ARGS); -extern Datum pg_get_indexdef(PG_FUNCTION_ARGS); -extern Datum RI_FKey_check_ins(PG_FUNCTION_ARGS); -extern Datum RI_FKey_check_upd(PG_FUNCTION_ARGS); -extern Datum RI_FKey_cascade_del(PG_FUNCTION_ARGS); -extern Datum RI_FKey_cascade_upd(PG_FUNCTION_ARGS); -extern Datum RI_FKey_restrict_del(PG_FUNCTION_ARGS); -extern Datum RI_FKey_restrict_upd(PG_FUNCTION_ARGS); -extern Datum RI_FKey_setnull_del(PG_FUNCTION_ARGS); -extern Datum RI_FKey_setnull_upd(PG_FUNCTION_ARGS); -extern Datum RI_FKey_setdefault_del(PG_FUNCTION_ARGS); -extern Datum RI_FKey_setdefault_upd(PG_FUNCTION_ARGS); -extern Datum RI_FKey_noaction_del(PG_FUNCTION_ARGS); -extern Datum RI_FKey_noaction_upd(PG_FUNCTION_ARGS); -extern Datum pg_get_triggerdef(PG_FUNCTION_ARGS); -extern Datum pg_get_serial_sequence(PG_FUNCTION_ARGS); -extern Datum bit_and(PG_FUNCTION_ARGS); -extern Datum bit_or(PG_FUNCTION_ARGS); -extern Datum bitxor(PG_FUNCTION_ARGS); -extern Datum bitnot(PG_FUNCTION_ARGS); -extern Datum bitshiftleft(PG_FUNCTION_ARGS); -extern Datum bitshiftright(PG_FUNCTION_ARGS); -extern Datum bitcat(PG_FUNCTION_ARGS); -extern Datum bitsubstr(PG_FUNCTION_ARGS); -extern Datum bitlength(PG_FUNCTION_ARGS); -extern Datum bitoctetlength(PG_FUNCTION_ARGS); -extern Datum bitfromint4(PG_FUNCTION_ARGS); -extern Datum bittoint4(PG_FUNCTION_ARGS); -extern Datum bit(PG_FUNCTION_ARGS); -extern Datum pg_get_keywords(PG_FUNCTION_ARGS); -extern Datum varbit(PG_FUNCTION_ARGS); -extern Datum time_hash(PG_FUNCTION_ARGS); -extern Datum aclexplode(PG_FUNCTION_ARGS); -extern Datum time_mi_time(PG_FUNCTION_ARGS); -extern Datum boolle(PG_FUNCTION_ARGS); -extern Datum boolge(PG_FUNCTION_ARGS); -extern Datum btboolcmp(PG_FUNCTION_ARGS); -extern Datum timetz_hash(PG_FUNCTION_ARGS); -extern Datum interval_hash(PG_FUNCTION_ARGS); -extern Datum bitposition(PG_FUNCTION_ARGS); -extern Datum bitsubstr_no_len(PG_FUNCTION_ARGS); -extern Datum numeric_in(PG_FUNCTION_ARGS); -extern Datum numeric_out(PG_FUNCTION_ARGS); -extern Datum numeric(PG_FUNCTION_ARGS); -extern Datum numeric_abs(PG_FUNCTION_ARGS); -extern Datum numeric_sign(PG_FUNCTION_ARGS); -extern Datum numeric_round(PG_FUNCTION_ARGS); -extern Datum numeric_trunc(PG_FUNCTION_ARGS); -extern Datum numeric_ceil(PG_FUNCTION_ARGS); -extern Datum numeric_floor(PG_FUNCTION_ARGS); -extern Datum length_in_encoding(PG_FUNCTION_ARGS); -extern Datum pg_convert_from(PG_FUNCTION_ARGS); -extern Datum inet_to_cidr(PG_FUNCTION_ARGS); -extern Datum pg_get_expr(PG_FUNCTION_ARGS); -extern Datum pg_convert_to(PG_FUNCTION_ARGS); -extern Datum numeric_eq(PG_FUNCTION_ARGS); -extern Datum numeric_ne(PG_FUNCTION_ARGS); -extern Datum numeric_gt(PG_FUNCTION_ARGS); -extern Datum numeric_ge(PG_FUNCTION_ARGS); -extern Datum numeric_lt(PG_FUNCTION_ARGS); -extern Datum numeric_le(PG_FUNCTION_ARGS); -extern Datum numeric_add(PG_FUNCTION_ARGS); -extern Datum numeric_sub(PG_FUNCTION_ARGS); -extern Datum numeric_mul(PG_FUNCTION_ARGS); -extern Datum numeric_div(PG_FUNCTION_ARGS); -extern Datum numeric_mod(PG_FUNCTION_ARGS); -extern Datum numeric_sqrt(PG_FUNCTION_ARGS); -extern Datum numeric_exp(PG_FUNCTION_ARGS); -extern Datum numeric_ln(PG_FUNCTION_ARGS); -extern Datum numeric_log(PG_FUNCTION_ARGS); -extern Datum numeric_power(PG_FUNCTION_ARGS); -extern Datum int4_numeric(PG_FUNCTION_ARGS); -extern Datum float4_numeric(PG_FUNCTION_ARGS); -extern Datum float8_numeric(PG_FUNCTION_ARGS); -extern Datum numeric_int4(PG_FUNCTION_ARGS); -extern Datum numeric_float4(PG_FUNCTION_ARGS); -extern Datum numeric_float8(PG_FUNCTION_ARGS); -extern Datum time_pl_interval(PG_FUNCTION_ARGS); -extern Datum time_mi_interval(PG_FUNCTION_ARGS); -extern Datum timetz_pl_interval(PG_FUNCTION_ARGS); -extern Datum timetz_mi_interval(PG_FUNCTION_ARGS); -extern Datum numeric_inc(PG_FUNCTION_ARGS); -extern Datum setval3_oid(PG_FUNCTION_ARGS); -extern Datum numeric_smaller(PG_FUNCTION_ARGS); -extern Datum numeric_larger(PG_FUNCTION_ARGS); -extern Datum interval_to_char(PG_FUNCTION_ARGS); -extern Datum numeric_cmp(PG_FUNCTION_ARGS); -extern Datum timestamptz_to_char(PG_FUNCTION_ARGS); -extern Datum numeric_uminus(PG_FUNCTION_ARGS); -extern Datum numeric_to_char(PG_FUNCTION_ARGS); -extern Datum int4_to_char(PG_FUNCTION_ARGS); -extern Datum int8_to_char(PG_FUNCTION_ARGS); -extern Datum float4_to_char(PG_FUNCTION_ARGS); -extern Datum float8_to_char(PG_FUNCTION_ARGS); -extern Datum numeric_to_number(PG_FUNCTION_ARGS); -extern Datum to_timestamp(PG_FUNCTION_ARGS); -extern Datum numeric_int8(PG_FUNCTION_ARGS); -extern Datum to_date(PG_FUNCTION_ARGS); -extern Datum int8_numeric(PG_FUNCTION_ARGS); -extern Datum int2_numeric(PG_FUNCTION_ARGS); -extern Datum numeric_int2(PG_FUNCTION_ARGS); -extern Datum oidin(PG_FUNCTION_ARGS); -extern Datum oidout(PG_FUNCTION_ARGS); -extern Datum pg_convert(PG_FUNCTION_ARGS); -extern Datum iclikesel(PG_FUNCTION_ARGS); -extern Datum icnlikesel(PG_FUNCTION_ARGS); -extern Datum iclikejoinsel(PG_FUNCTION_ARGS); -extern Datum icnlikejoinsel(PG_FUNCTION_ARGS); -extern Datum regexeqsel(PG_FUNCTION_ARGS); -extern Datum likesel(PG_FUNCTION_ARGS); -extern Datum icregexeqsel(PG_FUNCTION_ARGS); -extern Datum regexnesel(PG_FUNCTION_ARGS); -extern Datum nlikesel(PG_FUNCTION_ARGS); -extern Datum icregexnesel(PG_FUNCTION_ARGS); -extern Datum regexeqjoinsel(PG_FUNCTION_ARGS); -extern Datum likejoinsel(PG_FUNCTION_ARGS); -extern Datum icregexeqjoinsel(PG_FUNCTION_ARGS); -extern Datum regexnejoinsel(PG_FUNCTION_ARGS); -extern Datum nlikejoinsel(PG_FUNCTION_ARGS); -extern Datum icregexnejoinsel(PG_FUNCTION_ARGS); -extern Datum float8_avg(PG_FUNCTION_ARGS); -extern Datum float8_var_samp(PG_FUNCTION_ARGS); -extern Datum float8_stddev_samp(PG_FUNCTION_ARGS); -extern Datum numeric_accum(PG_FUNCTION_ARGS); -extern Datum int2_accum(PG_FUNCTION_ARGS); -extern Datum int4_accum(PG_FUNCTION_ARGS); -extern Datum int8_accum(PG_FUNCTION_ARGS); -extern Datum numeric_avg(PG_FUNCTION_ARGS); -extern Datum numeric_var_samp(PG_FUNCTION_ARGS); -extern Datum numeric_stddev_samp(PG_FUNCTION_ARGS); -extern Datum int2_sum(PG_FUNCTION_ARGS); -extern Datum int4_sum(PG_FUNCTION_ARGS); -extern Datum int8_sum(PG_FUNCTION_ARGS); -extern Datum interval_accum(PG_FUNCTION_ARGS); -extern Datum interval_avg(PG_FUNCTION_ARGS); -extern Datum to_ascii_default(PG_FUNCTION_ARGS); -extern Datum to_ascii_enc(PG_FUNCTION_ARGS); -extern Datum to_ascii_encname(PG_FUNCTION_ARGS); -extern Datum int28eq(PG_FUNCTION_ARGS); -extern Datum int28ne(PG_FUNCTION_ARGS); -extern Datum int28lt(PG_FUNCTION_ARGS); -extern Datum int28gt(PG_FUNCTION_ARGS); -extern Datum int28le(PG_FUNCTION_ARGS); -extern Datum int28ge(PG_FUNCTION_ARGS); -extern Datum int82eq(PG_FUNCTION_ARGS); -extern Datum int82ne(PG_FUNCTION_ARGS); -extern Datum int82lt(PG_FUNCTION_ARGS); -extern Datum int82gt(PG_FUNCTION_ARGS); -extern Datum int82le(PG_FUNCTION_ARGS); -extern Datum int82ge(PG_FUNCTION_ARGS); -extern Datum int2and(PG_FUNCTION_ARGS); -extern Datum int2or(PG_FUNCTION_ARGS); -extern Datum int2xor(PG_FUNCTION_ARGS); -extern Datum int2not(PG_FUNCTION_ARGS); -extern Datum int2shl(PG_FUNCTION_ARGS); -extern Datum int2shr(PG_FUNCTION_ARGS); -extern Datum int4and(PG_FUNCTION_ARGS); -extern Datum int4or(PG_FUNCTION_ARGS); -extern Datum int4xor(PG_FUNCTION_ARGS); -extern Datum int4not(PG_FUNCTION_ARGS); -extern Datum int4shl(PG_FUNCTION_ARGS); -extern Datum int4shr(PG_FUNCTION_ARGS); -extern Datum int8and(PG_FUNCTION_ARGS); -extern Datum int8or(PG_FUNCTION_ARGS); -extern Datum int8xor(PG_FUNCTION_ARGS); -extern Datum int8not(PG_FUNCTION_ARGS); -extern Datum int8shl(PG_FUNCTION_ARGS); -extern Datum int8shr(PG_FUNCTION_ARGS); -extern Datum int8up(PG_FUNCTION_ARGS); -extern Datum int2up(PG_FUNCTION_ARGS); -extern Datum int4up(PG_FUNCTION_ARGS); -extern Datum float4up(PG_FUNCTION_ARGS); -extern Datum float8up(PG_FUNCTION_ARGS); -extern Datum numeric_uplus(PG_FUNCTION_ARGS); -extern Datum has_table_privilege_name_name(PG_FUNCTION_ARGS); -extern Datum has_table_privilege_name_id(PG_FUNCTION_ARGS); -extern Datum has_table_privilege_id_name(PG_FUNCTION_ARGS); -extern Datum has_table_privilege_id_id(PG_FUNCTION_ARGS); -extern Datum has_table_privilege_name(PG_FUNCTION_ARGS); -extern Datum has_table_privilege_id(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_numscans(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_tuples_returned(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_tuples_fetched(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_tuples_inserted(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_tuples_updated(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_tuples_deleted(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_blocks_fetched(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_blocks_hit(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_backend_idset(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_backend_pid(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_backend_dbid(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_backend_userid(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_backend_activity(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_numbackends(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_xact_commit(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_xact_rollback(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_blocks_fetched(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_blocks_hit(PG_FUNCTION_ARGS); -extern Datum binary_encode(PG_FUNCTION_ARGS); -extern Datum binary_decode(PG_FUNCTION_ARGS); -extern Datum byteaeq(PG_FUNCTION_ARGS); -extern Datum bytealt(PG_FUNCTION_ARGS); -extern Datum byteale(PG_FUNCTION_ARGS); -extern Datum byteagt(PG_FUNCTION_ARGS); -extern Datum byteage(PG_FUNCTION_ARGS); -extern Datum byteane(PG_FUNCTION_ARGS); -extern Datum byteacmp(PG_FUNCTION_ARGS); -extern Datum timestamp_scale(PG_FUNCTION_ARGS); -extern Datum int2_avg_accum(PG_FUNCTION_ARGS); -extern Datum int4_avg_accum(PG_FUNCTION_ARGS); -extern Datum int8_avg(PG_FUNCTION_ARGS); -extern Datum oidlarger(PG_FUNCTION_ARGS); -extern Datum oidsmaller(PG_FUNCTION_ARGS); -extern Datum timestamptz_scale(PG_FUNCTION_ARGS); -extern Datum time_scale(PG_FUNCTION_ARGS); -extern Datum timetz_scale(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_tuples_hot_updated(PG_FUNCTION_ARGS); -extern Datum numeric_div_trunc(PG_FUNCTION_ARGS); -extern Datum similar_to_escape_2(PG_FUNCTION_ARGS); -extern Datum similar_to_escape_1(PG_FUNCTION_ARGS); -extern Datum bytealike(PG_FUNCTION_ARGS); -extern Datum byteanlike(PG_FUNCTION_ARGS); -extern Datum like_escape_bytea(PG_FUNCTION_ARGS); -extern Datum byteacat(PG_FUNCTION_ARGS); -extern Datum bytea_substr(PG_FUNCTION_ARGS); -extern Datum bytea_substr_no_len(PG_FUNCTION_ARGS); -extern Datum byteapos(PG_FUNCTION_ARGS); -extern Datum byteatrim(PG_FUNCTION_ARGS); -extern Datum timestamptz_time(PG_FUNCTION_ARGS); -extern Datum timestamp_trunc(PG_FUNCTION_ARGS); -extern Datum timestamp_part(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_activity(PG_FUNCTION_ARGS); -extern Datum jsonb_path_query_first_tz(PG_FUNCTION_ARGS); -extern Datum date_timestamp(PG_FUNCTION_ARGS); -extern Datum pg_backend_pid(PG_FUNCTION_ARGS); -extern Datum timestamptz_timestamp(PG_FUNCTION_ARGS); -extern Datum timestamp_timestamptz(PG_FUNCTION_ARGS); -extern Datum timestamp_date(PG_FUNCTION_ARGS); -extern Datum jsonb_path_match_tz(PG_FUNCTION_ARGS); -extern Datum timestamp_pl_interval(PG_FUNCTION_ARGS); -extern Datum timestamp_mi_interval(PG_FUNCTION_ARGS); -extern Datum pg_conf_load_time(PG_FUNCTION_ARGS); -extern Datum timetz_zone(PG_FUNCTION_ARGS); -extern Datum timetz_izone(PG_FUNCTION_ARGS); -extern Datum timestamp_hash(PG_FUNCTION_ARGS); -extern Datum timetz_time(PG_FUNCTION_ARGS); -extern Datum time_timetz(PG_FUNCTION_ARGS); -extern Datum timestamp_to_char(PG_FUNCTION_ARGS); -extern Datum timestamp_age(PG_FUNCTION_ARGS); -extern Datum timestamp_zone(PG_FUNCTION_ARGS); -extern Datum timestamp_izone(PG_FUNCTION_ARGS); -extern Datum date_pl_interval(PG_FUNCTION_ARGS); -extern Datum date_mi_interval(PG_FUNCTION_ARGS); -extern Datum textregexsubstr(PG_FUNCTION_ARGS); -extern Datum bitfromint8(PG_FUNCTION_ARGS); -extern Datum bittoint8(PG_FUNCTION_ARGS); -extern Datum show_config_by_name(PG_FUNCTION_ARGS); -extern Datum set_config_by_name(PG_FUNCTION_ARGS); -extern Datum pg_table_is_visible(PG_FUNCTION_ARGS); -extern Datum pg_type_is_visible(PG_FUNCTION_ARGS); -extern Datum pg_function_is_visible(PG_FUNCTION_ARGS); -extern Datum pg_operator_is_visible(PG_FUNCTION_ARGS); -extern Datum pg_opclass_is_visible(PG_FUNCTION_ARGS); -extern Datum show_all_settings(PG_FUNCTION_ARGS); -extern Datum replace_text(PG_FUNCTION_ARGS); -extern Datum split_part(PG_FUNCTION_ARGS); -extern Datum to_hex32(PG_FUNCTION_ARGS); -extern Datum to_hex64(PG_FUNCTION_ARGS); -extern Datum array_lower(PG_FUNCTION_ARGS); -extern Datum array_upper(PG_FUNCTION_ARGS); -extern Datum pg_conversion_is_visible(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_backend_activity_start(PG_FUNCTION_ARGS); -extern Datum pg_terminate_backend(PG_FUNCTION_ARGS); -extern Datum pg_get_functiondef(PG_FUNCTION_ARGS); -extern Datum pg_column_compression(PG_FUNCTION_ARGS); -extern Datum pg_stat_force_next_flush(PG_FUNCTION_ARGS); -extern Datum text_pattern_lt(PG_FUNCTION_ARGS); -extern Datum text_pattern_le(PG_FUNCTION_ARGS); -extern Datum pg_get_function_arguments(PG_FUNCTION_ARGS); -extern Datum text_pattern_ge(PG_FUNCTION_ARGS); -extern Datum text_pattern_gt(PG_FUNCTION_ARGS); -extern Datum pg_get_function_result(PG_FUNCTION_ARGS); -extern Datum bttext_pattern_cmp(PG_FUNCTION_ARGS); -extern Datum pg_database_size_name(PG_FUNCTION_ARGS); -extern Datum width_bucket_numeric(PG_FUNCTION_ARGS); -extern Datum pg_cancel_backend(PG_FUNCTION_ARGS); -extern Datum pg_backup_start(PG_FUNCTION_ARGS); -extern Datum bpchar_pattern_lt(PG_FUNCTION_ARGS); -extern Datum bpchar_pattern_le(PG_FUNCTION_ARGS); -extern Datum array_length(PG_FUNCTION_ARGS); -extern Datum bpchar_pattern_ge(PG_FUNCTION_ARGS); -extern Datum bpchar_pattern_gt(PG_FUNCTION_ARGS); -extern Datum gist_point_consistent(PG_FUNCTION_ARGS); -extern Datum btbpchar_pattern_cmp(PG_FUNCTION_ARGS); -extern Datum has_sequence_privilege_name_name(PG_FUNCTION_ARGS); -extern Datum has_sequence_privilege_name_id(PG_FUNCTION_ARGS); -extern Datum has_sequence_privilege_id_name(PG_FUNCTION_ARGS); -extern Datum has_sequence_privilege_id_id(PG_FUNCTION_ARGS); -extern Datum has_sequence_privilege_name(PG_FUNCTION_ARGS); -extern Datum has_sequence_privilege_id(PG_FUNCTION_ARGS); -extern Datum btint48cmp(PG_FUNCTION_ARGS); -extern Datum btint84cmp(PG_FUNCTION_ARGS); -extern Datum btint24cmp(PG_FUNCTION_ARGS); -extern Datum btint42cmp(PG_FUNCTION_ARGS); -extern Datum btint28cmp(PG_FUNCTION_ARGS); -extern Datum btint82cmp(PG_FUNCTION_ARGS); -extern Datum btfloat48cmp(PG_FUNCTION_ARGS); -extern Datum btfloat84cmp(PG_FUNCTION_ARGS); -extern Datum inet_client_addr(PG_FUNCTION_ARGS); -extern Datum inet_client_port(PG_FUNCTION_ARGS); -extern Datum inet_server_addr(PG_FUNCTION_ARGS); -extern Datum inet_server_port(PG_FUNCTION_ARGS); -extern Datum regprocedurein(PG_FUNCTION_ARGS); -extern Datum regprocedureout(PG_FUNCTION_ARGS); -extern Datum regoperin(PG_FUNCTION_ARGS); -extern Datum regoperout(PG_FUNCTION_ARGS); -extern Datum regoperatorin(PG_FUNCTION_ARGS); -extern Datum regoperatorout(PG_FUNCTION_ARGS); -extern Datum regclassin(PG_FUNCTION_ARGS); -extern Datum regclassout(PG_FUNCTION_ARGS); -extern Datum regtypein(PG_FUNCTION_ARGS); -extern Datum regtypeout(PG_FUNCTION_ARGS); -extern Datum pg_stat_clear_snapshot(PG_FUNCTION_ARGS); -extern Datum pg_get_function_identity_arguments(PG_FUNCTION_ARGS); -extern Datum hashtid(PG_FUNCTION_ARGS); -extern Datum hashtidextended(PG_FUNCTION_ARGS); -extern Datum fmgr_internal_validator(PG_FUNCTION_ARGS); -extern Datum fmgr_c_validator(PG_FUNCTION_ARGS); -extern Datum fmgr_sql_validator(PG_FUNCTION_ARGS); -extern Datum has_database_privilege_name_name(PG_FUNCTION_ARGS); -extern Datum has_database_privilege_name_id(PG_FUNCTION_ARGS); -extern Datum has_database_privilege_id_name(PG_FUNCTION_ARGS); -extern Datum has_database_privilege_id_id(PG_FUNCTION_ARGS); -extern Datum has_database_privilege_name(PG_FUNCTION_ARGS); -extern Datum has_database_privilege_id(PG_FUNCTION_ARGS); -extern Datum has_function_privilege_name_name(PG_FUNCTION_ARGS); -extern Datum has_function_privilege_name_id(PG_FUNCTION_ARGS); -extern Datum has_function_privilege_id_name(PG_FUNCTION_ARGS); -extern Datum has_function_privilege_id_id(PG_FUNCTION_ARGS); -extern Datum has_function_privilege_name(PG_FUNCTION_ARGS); -extern Datum has_function_privilege_id(PG_FUNCTION_ARGS); -extern Datum has_language_privilege_name_name(PG_FUNCTION_ARGS); -extern Datum has_language_privilege_name_id(PG_FUNCTION_ARGS); -extern Datum has_language_privilege_id_name(PG_FUNCTION_ARGS); -extern Datum has_language_privilege_id_id(PG_FUNCTION_ARGS); -extern Datum has_language_privilege_name(PG_FUNCTION_ARGS); -extern Datum has_language_privilege_id(PG_FUNCTION_ARGS); -extern Datum has_schema_privilege_name_name(PG_FUNCTION_ARGS); -extern Datum has_schema_privilege_name_id(PG_FUNCTION_ARGS); -extern Datum has_schema_privilege_id_name(PG_FUNCTION_ARGS); -extern Datum has_schema_privilege_id_id(PG_FUNCTION_ARGS); -extern Datum has_schema_privilege_name(PG_FUNCTION_ARGS); -extern Datum has_schema_privilege_id(PG_FUNCTION_ARGS); -extern Datum pg_stat_reset(PG_FUNCTION_ARGS); -extern Datum pg_get_backend_memory_contexts(PG_FUNCTION_ARGS); -extern Datum textregexreplace_noopt(PG_FUNCTION_ARGS); -extern Datum textregexreplace(PG_FUNCTION_ARGS); -extern Datum pg_total_relation_size(PG_FUNCTION_ARGS); -extern Datum pg_size_pretty(PG_FUNCTION_ARGS); -extern Datum pg_options_to_table(PG_FUNCTION_ARGS); -extern Datum record_in(PG_FUNCTION_ARGS); -extern Datum record_out(PG_FUNCTION_ARGS); -extern Datum cstring_in(PG_FUNCTION_ARGS); -extern Datum cstring_out(PG_FUNCTION_ARGS); -extern Datum any_in(PG_FUNCTION_ARGS); -extern Datum any_out(PG_FUNCTION_ARGS); -extern Datum anyarray_in(PG_FUNCTION_ARGS); -extern Datum anyarray_out(PG_FUNCTION_ARGS); -extern Datum void_in(PG_FUNCTION_ARGS); -extern Datum void_out(PG_FUNCTION_ARGS); -extern Datum trigger_in(PG_FUNCTION_ARGS); -extern Datum trigger_out(PG_FUNCTION_ARGS); -extern Datum language_handler_in(PG_FUNCTION_ARGS); -extern Datum language_handler_out(PG_FUNCTION_ARGS); -extern Datum internal_in(PG_FUNCTION_ARGS); -extern Datum internal_out(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_slru(PG_FUNCTION_ARGS); -extern Datum pg_stat_reset_slru(PG_FUNCTION_ARGS); -extern Datum dceil(PG_FUNCTION_ARGS); -extern Datum dfloor(PG_FUNCTION_ARGS); -extern Datum dsign(PG_FUNCTION_ARGS); -extern Datum md5_text(PG_FUNCTION_ARGS); -extern Datum anyelement_in(PG_FUNCTION_ARGS); -extern Datum anyelement_out(PG_FUNCTION_ARGS); -extern Datum postgresql_fdw_validator(PG_FUNCTION_ARGS); -extern Datum pg_encoding_max_length_sql(PG_FUNCTION_ARGS); -extern Datum md5_bytea(PG_FUNCTION_ARGS); -extern Datum pg_tablespace_size_oid(PG_FUNCTION_ARGS); -extern Datum pg_tablespace_size_name(PG_FUNCTION_ARGS); -extern Datum pg_database_size_oid(PG_FUNCTION_ARGS); -extern Datum array_unnest(PG_FUNCTION_ARGS); -extern Datum pg_relation_size(PG_FUNCTION_ARGS); -extern Datum array_agg_transfn(PG_FUNCTION_ARGS); -extern Datum array_agg_finalfn(PG_FUNCTION_ARGS); -extern Datum date_lt_timestamp(PG_FUNCTION_ARGS); -extern Datum date_le_timestamp(PG_FUNCTION_ARGS); -extern Datum date_eq_timestamp(PG_FUNCTION_ARGS); -extern Datum date_gt_timestamp(PG_FUNCTION_ARGS); -extern Datum date_ge_timestamp(PG_FUNCTION_ARGS); -extern Datum date_ne_timestamp(PG_FUNCTION_ARGS); -extern Datum date_cmp_timestamp(PG_FUNCTION_ARGS); -extern Datum date_lt_timestamptz(PG_FUNCTION_ARGS); -extern Datum date_le_timestamptz(PG_FUNCTION_ARGS); -extern Datum date_eq_timestamptz(PG_FUNCTION_ARGS); -extern Datum date_gt_timestamptz(PG_FUNCTION_ARGS); -extern Datum date_ge_timestamptz(PG_FUNCTION_ARGS); -extern Datum date_ne_timestamptz(PG_FUNCTION_ARGS); -extern Datum date_cmp_timestamptz(PG_FUNCTION_ARGS); -extern Datum timestamp_lt_date(PG_FUNCTION_ARGS); -extern Datum timestamp_le_date(PG_FUNCTION_ARGS); -extern Datum timestamp_eq_date(PG_FUNCTION_ARGS); -extern Datum timestamp_gt_date(PG_FUNCTION_ARGS); -extern Datum timestamp_ge_date(PG_FUNCTION_ARGS); -extern Datum timestamp_ne_date(PG_FUNCTION_ARGS); -extern Datum timestamp_cmp_date(PG_FUNCTION_ARGS); -extern Datum timestamptz_lt_date(PG_FUNCTION_ARGS); -extern Datum timestamptz_le_date(PG_FUNCTION_ARGS); -extern Datum timestamptz_eq_date(PG_FUNCTION_ARGS); -extern Datum timestamptz_gt_date(PG_FUNCTION_ARGS); -extern Datum timestamptz_ge_date(PG_FUNCTION_ARGS); -extern Datum timestamptz_ne_date(PG_FUNCTION_ARGS); -extern Datum timestamptz_cmp_date(PG_FUNCTION_ARGS); -extern Datum has_tablespace_privilege_name_name(PG_FUNCTION_ARGS); -extern Datum has_tablespace_privilege_name_id(PG_FUNCTION_ARGS); -extern Datum has_tablespace_privilege_id_name(PG_FUNCTION_ARGS); -extern Datum has_tablespace_privilege_id_id(PG_FUNCTION_ARGS); -extern Datum has_tablespace_privilege_name(PG_FUNCTION_ARGS); -extern Datum has_tablespace_privilege_id(PG_FUNCTION_ARGS); -extern Datum shell_in(PG_FUNCTION_ARGS); -extern Datum shell_out(PG_FUNCTION_ARGS); -extern Datum array_recv(PG_FUNCTION_ARGS); -extern Datum array_send(PG_FUNCTION_ARGS); -extern Datum record_recv(PG_FUNCTION_ARGS); -extern Datum record_send(PG_FUNCTION_ARGS); -extern Datum int2recv(PG_FUNCTION_ARGS); -extern Datum int2send(PG_FUNCTION_ARGS); -extern Datum int4recv(PG_FUNCTION_ARGS); -extern Datum int4send(PG_FUNCTION_ARGS); -extern Datum int8recv(PG_FUNCTION_ARGS); -extern Datum int8send(PG_FUNCTION_ARGS); -extern Datum int2vectorrecv(PG_FUNCTION_ARGS); -extern Datum int2vectorsend(PG_FUNCTION_ARGS); -extern Datum bytearecv(PG_FUNCTION_ARGS); -extern Datum byteasend(PG_FUNCTION_ARGS); -extern Datum textrecv(PG_FUNCTION_ARGS); -extern Datum textsend(PG_FUNCTION_ARGS); -extern Datum unknownrecv(PG_FUNCTION_ARGS); -extern Datum unknownsend(PG_FUNCTION_ARGS); -extern Datum oidrecv(PG_FUNCTION_ARGS); -extern Datum oidsend(PG_FUNCTION_ARGS); -extern Datum oidvectorrecv(PG_FUNCTION_ARGS); -extern Datum oidvectorsend(PG_FUNCTION_ARGS); -extern Datum namerecv(PG_FUNCTION_ARGS); -extern Datum namesend(PG_FUNCTION_ARGS); -extern Datum float4recv(PG_FUNCTION_ARGS); -extern Datum float4send(PG_FUNCTION_ARGS); -extern Datum float8recv(PG_FUNCTION_ARGS); -extern Datum float8send(PG_FUNCTION_ARGS); -extern Datum point_recv(PG_FUNCTION_ARGS); -extern Datum point_send(PG_FUNCTION_ARGS); -extern Datum bpcharrecv(PG_FUNCTION_ARGS); -extern Datum bpcharsend(PG_FUNCTION_ARGS); -extern Datum varcharrecv(PG_FUNCTION_ARGS); -extern Datum varcharsend(PG_FUNCTION_ARGS); -extern Datum charrecv(PG_FUNCTION_ARGS); -extern Datum charsend(PG_FUNCTION_ARGS); -extern Datum boolrecv(PG_FUNCTION_ARGS); -extern Datum boolsend(PG_FUNCTION_ARGS); -extern Datum tidrecv(PG_FUNCTION_ARGS); -extern Datum tidsend(PG_FUNCTION_ARGS); -extern Datum xidrecv(PG_FUNCTION_ARGS); -extern Datum xidsend(PG_FUNCTION_ARGS); -extern Datum cidrecv(PG_FUNCTION_ARGS); -extern Datum cidsend(PG_FUNCTION_ARGS); -extern Datum regprocrecv(PG_FUNCTION_ARGS); -extern Datum regprocsend(PG_FUNCTION_ARGS); -extern Datum regprocedurerecv(PG_FUNCTION_ARGS); -extern Datum regproceduresend(PG_FUNCTION_ARGS); -extern Datum regoperrecv(PG_FUNCTION_ARGS); -extern Datum regopersend(PG_FUNCTION_ARGS); -extern Datum regoperatorrecv(PG_FUNCTION_ARGS); -extern Datum regoperatorsend(PG_FUNCTION_ARGS); -extern Datum regclassrecv(PG_FUNCTION_ARGS); -extern Datum regclasssend(PG_FUNCTION_ARGS); -extern Datum regtyperecv(PG_FUNCTION_ARGS); -extern Datum regtypesend(PG_FUNCTION_ARGS); -extern Datum bit_recv(PG_FUNCTION_ARGS); -extern Datum bit_send(PG_FUNCTION_ARGS); -extern Datum varbit_recv(PG_FUNCTION_ARGS); -extern Datum varbit_send(PG_FUNCTION_ARGS); -extern Datum numeric_recv(PG_FUNCTION_ARGS); -extern Datum numeric_send(PG_FUNCTION_ARGS); -extern Datum dsinh(PG_FUNCTION_ARGS); -extern Datum dcosh(PG_FUNCTION_ARGS); -extern Datum dtanh(PG_FUNCTION_ARGS); -extern Datum dasinh(PG_FUNCTION_ARGS); -extern Datum dacosh(PG_FUNCTION_ARGS); -extern Datum datanh(PG_FUNCTION_ARGS); -extern Datum date_recv(PG_FUNCTION_ARGS); -extern Datum date_send(PG_FUNCTION_ARGS); -extern Datum time_recv(PG_FUNCTION_ARGS); -extern Datum time_send(PG_FUNCTION_ARGS); -extern Datum timetz_recv(PG_FUNCTION_ARGS); -extern Datum timetz_send(PG_FUNCTION_ARGS); -extern Datum timestamp_recv(PG_FUNCTION_ARGS); -extern Datum timestamp_send(PG_FUNCTION_ARGS); -extern Datum timestamptz_recv(PG_FUNCTION_ARGS); -extern Datum timestamptz_send(PG_FUNCTION_ARGS); -extern Datum interval_recv(PG_FUNCTION_ARGS); -extern Datum interval_send(PG_FUNCTION_ARGS); -extern Datum lseg_recv(PG_FUNCTION_ARGS); -extern Datum lseg_send(PG_FUNCTION_ARGS); -extern Datum path_recv(PG_FUNCTION_ARGS); -extern Datum path_send(PG_FUNCTION_ARGS); -extern Datum box_recv(PG_FUNCTION_ARGS); -extern Datum box_send(PG_FUNCTION_ARGS); -extern Datum poly_recv(PG_FUNCTION_ARGS); -extern Datum poly_send(PG_FUNCTION_ARGS); -extern Datum line_recv(PG_FUNCTION_ARGS); -extern Datum line_send(PG_FUNCTION_ARGS); -extern Datum circle_recv(PG_FUNCTION_ARGS); -extern Datum circle_send(PG_FUNCTION_ARGS); -extern Datum cash_recv(PG_FUNCTION_ARGS); -extern Datum cash_send(PG_FUNCTION_ARGS); -extern Datum macaddr_recv(PG_FUNCTION_ARGS); -extern Datum macaddr_send(PG_FUNCTION_ARGS); -extern Datum inet_recv(PG_FUNCTION_ARGS); -extern Datum inet_send(PG_FUNCTION_ARGS); -extern Datum cidr_recv(PG_FUNCTION_ARGS); -extern Datum cidr_send(PG_FUNCTION_ARGS); -extern Datum cstring_recv(PG_FUNCTION_ARGS); -extern Datum cstring_send(PG_FUNCTION_ARGS); -extern Datum anyarray_recv(PG_FUNCTION_ARGS); -extern Datum anyarray_send(PG_FUNCTION_ARGS); -extern Datum pg_get_ruledef_ext(PG_FUNCTION_ARGS); -extern Datum pg_get_viewdef_name_ext(PG_FUNCTION_ARGS); -extern Datum pg_get_viewdef_ext(PG_FUNCTION_ARGS); -extern Datum pg_get_indexdef_ext(PG_FUNCTION_ARGS); -extern Datum pg_get_constraintdef_ext(PG_FUNCTION_ARGS); -extern Datum pg_get_expr_ext(PG_FUNCTION_ARGS); -extern Datum pg_prepared_statement(PG_FUNCTION_ARGS); -extern Datum pg_cursor(PG_FUNCTION_ARGS); -extern Datum float8_var_pop(PG_FUNCTION_ARGS); -extern Datum float8_stddev_pop(PG_FUNCTION_ARGS); -extern Datum numeric_var_pop(PG_FUNCTION_ARGS); -extern Datum booland_statefunc(PG_FUNCTION_ARGS); -extern Datum boolor_statefunc(PG_FUNCTION_ARGS); -extern Datum timestamp_lt_timestamptz(PG_FUNCTION_ARGS); -extern Datum timestamp_le_timestamptz(PG_FUNCTION_ARGS); -extern Datum timestamp_eq_timestamptz(PG_FUNCTION_ARGS); -extern Datum timestamp_gt_timestamptz(PG_FUNCTION_ARGS); -extern Datum timestamp_ge_timestamptz(PG_FUNCTION_ARGS); -extern Datum timestamp_ne_timestamptz(PG_FUNCTION_ARGS); -extern Datum timestamp_cmp_timestamptz(PG_FUNCTION_ARGS); -extern Datum timestamptz_lt_timestamp(PG_FUNCTION_ARGS); -extern Datum timestamptz_le_timestamp(PG_FUNCTION_ARGS); -extern Datum timestamptz_eq_timestamp(PG_FUNCTION_ARGS); -extern Datum timestamptz_gt_timestamp(PG_FUNCTION_ARGS); -extern Datum timestamptz_ge_timestamp(PG_FUNCTION_ARGS); -extern Datum timestamptz_ne_timestamp(PG_FUNCTION_ARGS); -extern Datum timestamptz_cmp_timestamp(PG_FUNCTION_ARGS); -extern Datum pg_tablespace_databases(PG_FUNCTION_ARGS); -extern Datum int4_bool(PG_FUNCTION_ARGS); -extern Datum bool_int4(PG_FUNCTION_ARGS); -extern Datum lastval(PG_FUNCTION_ARGS); -extern Datum pg_postmaster_start_time(PG_FUNCTION_ARGS); -extern Datum pg_blocking_pids(PG_FUNCTION_ARGS); -extern Datum box_below(PG_FUNCTION_ARGS); -extern Datum box_overbelow(PG_FUNCTION_ARGS); -extern Datum box_overabove(PG_FUNCTION_ARGS); -extern Datum box_above(PG_FUNCTION_ARGS); -extern Datum poly_below(PG_FUNCTION_ARGS); -extern Datum poly_overbelow(PG_FUNCTION_ARGS); -extern Datum poly_overabove(PG_FUNCTION_ARGS); -extern Datum poly_above(PG_FUNCTION_ARGS); -extern Datum gist_box_consistent(PG_FUNCTION_ARGS); -extern Datum jsonb_float8(PG_FUNCTION_ARGS); -extern Datum gist_box_penalty(PG_FUNCTION_ARGS); -extern Datum gist_box_picksplit(PG_FUNCTION_ARGS); -extern Datum gist_box_union(PG_FUNCTION_ARGS); -extern Datum gist_box_same(PG_FUNCTION_ARGS); -extern Datum gist_poly_consistent(PG_FUNCTION_ARGS); -extern Datum gist_poly_compress(PG_FUNCTION_ARGS); -extern Datum circle_overbelow(PG_FUNCTION_ARGS); -extern Datum circle_overabove(PG_FUNCTION_ARGS); -extern Datum gist_circle_consistent(PG_FUNCTION_ARGS); -extern Datum gist_circle_compress(PG_FUNCTION_ARGS); -extern Datum numeric_stddev_pop(PG_FUNCTION_ARGS); -extern Datum domain_in(PG_FUNCTION_ARGS); -extern Datum domain_recv(PG_FUNCTION_ARGS); -extern Datum pg_timezone_abbrevs(PG_FUNCTION_ARGS); -extern Datum xmlexists(PG_FUNCTION_ARGS); -extern Datum pg_reload_conf(PG_FUNCTION_ARGS); -extern Datum pg_rotate_logfile_v2(PG_FUNCTION_ARGS); -extern Datum pg_stat_file_1arg(PG_FUNCTION_ARGS); -extern Datum pg_read_file_off_len(PG_FUNCTION_ARGS); -extern Datum pg_ls_dir_1arg(PG_FUNCTION_ARGS); -extern Datum pg_sleep(PG_FUNCTION_ARGS); -extern Datum inetnot(PG_FUNCTION_ARGS); -extern Datum inetand(PG_FUNCTION_ARGS); -extern Datum inetor(PG_FUNCTION_ARGS); -extern Datum inetpl(PG_FUNCTION_ARGS); -extern Datum inetmi_int8(PG_FUNCTION_ARGS); -extern Datum inetmi(PG_FUNCTION_ARGS); -extern Datum statement_timestamp(PG_FUNCTION_ARGS); -extern Datum clock_timestamp(PG_FUNCTION_ARGS); -extern Datum gin_cmp_prefix(PG_FUNCTION_ARGS); -extern Datum pg_has_role_name_name(PG_FUNCTION_ARGS); -extern Datum pg_has_role_name_id(PG_FUNCTION_ARGS); -extern Datum pg_has_role_id_name(PG_FUNCTION_ARGS); -extern Datum pg_has_role_id_id(PG_FUNCTION_ARGS); -extern Datum pg_has_role_name(PG_FUNCTION_ARGS); -extern Datum pg_has_role_id(PG_FUNCTION_ARGS); -extern Datum interval_justify_interval(PG_FUNCTION_ARGS); -extern Datum pg_get_triggerdef_ext(PG_FUNCTION_ARGS); -extern Datum dasind(PG_FUNCTION_ARGS); -extern Datum dacosd(PG_FUNCTION_ARGS); -extern Datum datand(PG_FUNCTION_ARGS); -extern Datum datan2d(PG_FUNCTION_ARGS); -extern Datum dsind(PG_FUNCTION_ARGS); -extern Datum dcosd(PG_FUNCTION_ARGS); -extern Datum dtand(PG_FUNCTION_ARGS); -extern Datum dcotd(PG_FUNCTION_ARGS); -extern Datum pg_backup_stop(PG_FUNCTION_ARGS); -extern Datum numeric_avg_serialize(PG_FUNCTION_ARGS); -extern Datum numeric_avg_deserialize(PG_FUNCTION_ARGS); -extern Datum ginarrayextract(PG_FUNCTION_ARGS); -extern Datum ginarrayconsistent(PG_FUNCTION_ARGS); -extern Datum int8_avg_accum(PG_FUNCTION_ARGS); -extern Datum arrayoverlap(PG_FUNCTION_ARGS); -extern Datum arraycontains(PG_FUNCTION_ARGS); -extern Datum arraycontained(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_tuples_returned(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_tuples_fetched(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_tuples_inserted(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_tuples_updated(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_tuples_deleted(PG_FUNCTION_ARGS); -extern Datum regexp_matches_no_flags(PG_FUNCTION_ARGS); -extern Datum regexp_matches(PG_FUNCTION_ARGS); -extern Datum regexp_split_to_table_no_flags(PG_FUNCTION_ARGS); -extern Datum regexp_split_to_table(PG_FUNCTION_ARGS); -extern Datum regexp_split_to_array_no_flags(PG_FUNCTION_ARGS); -extern Datum regexp_split_to_array(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_bgwriter_timed_checkpoints(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_bgwriter_requested_checkpoints(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_bgwriter_buf_written_checkpoints(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_bgwriter_buf_written_clean(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_bgwriter_maxwritten_clean(PG_FUNCTION_ARGS); -extern Datum ginqueryarrayextract(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_buf_written_backend(PG_FUNCTION_ARGS); -extern Datum anynonarray_in(PG_FUNCTION_ARGS); -extern Datum anynonarray_out(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_last_vacuum_time(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_last_autovacuum_time(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_last_analyze_time(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_last_autoanalyze_time(PG_FUNCTION_ARGS); -extern Datum int8_avg_combine(PG_FUNCTION_ARGS); -extern Datum int8_avg_serialize(PG_FUNCTION_ARGS); -extern Datum int8_avg_deserialize(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_backend_wait_event_type(PG_FUNCTION_ARGS); -extern Datum tidgt(PG_FUNCTION_ARGS); -extern Datum tidlt(PG_FUNCTION_ARGS); -extern Datum tidge(PG_FUNCTION_ARGS); -extern Datum tidle(PG_FUNCTION_ARGS); -extern Datum bttidcmp(PG_FUNCTION_ARGS); -extern Datum tidlarger(PG_FUNCTION_ARGS); -extern Datum tidsmaller(PG_FUNCTION_ARGS); -extern Datum int8inc_any(PG_FUNCTION_ARGS); -extern Datum int8inc_float8_float8(PG_FUNCTION_ARGS); -extern Datum float8_regr_accum(PG_FUNCTION_ARGS); -extern Datum float8_regr_sxx(PG_FUNCTION_ARGS); -extern Datum float8_regr_syy(PG_FUNCTION_ARGS); -extern Datum float8_regr_sxy(PG_FUNCTION_ARGS); -extern Datum float8_regr_avgx(PG_FUNCTION_ARGS); -extern Datum float8_regr_avgy(PG_FUNCTION_ARGS); -extern Datum float8_regr_r2(PG_FUNCTION_ARGS); -extern Datum float8_regr_slope(PG_FUNCTION_ARGS); -extern Datum float8_regr_intercept(PG_FUNCTION_ARGS); -extern Datum float8_covar_pop(PG_FUNCTION_ARGS); -extern Datum float8_covar_samp(PG_FUNCTION_ARGS); -extern Datum float8_corr(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_blk_read_time(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_blk_write_time(PG_FUNCTION_ARGS); -extern Datum pg_switch_wal(PG_FUNCTION_ARGS); -extern Datum pg_current_wal_lsn(PG_FUNCTION_ARGS); -extern Datum pg_walfile_name_offset(PG_FUNCTION_ARGS); -extern Datum pg_walfile_name(PG_FUNCTION_ARGS); -extern Datum pg_current_wal_insert_lsn(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_backend_wait_event(PG_FUNCTION_ARGS); -extern Datum pg_my_temp_schema(PG_FUNCTION_ARGS); -extern Datum pg_is_other_temp_schema(PG_FUNCTION_ARGS); -extern Datum pg_timezone_names(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_backend_xact_start(PG_FUNCTION_ARGS); -extern Datum numeric_avg_accum(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_buf_alloc(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_live_tuples(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_dead_tuples(PG_FUNCTION_ARGS); -extern Datum pg_advisory_lock_int8(PG_FUNCTION_ARGS); -extern Datum pg_advisory_lock_shared_int8(PG_FUNCTION_ARGS); -extern Datum pg_try_advisory_lock_int8(PG_FUNCTION_ARGS); -extern Datum pg_try_advisory_lock_shared_int8(PG_FUNCTION_ARGS); -extern Datum pg_advisory_unlock_int8(PG_FUNCTION_ARGS); -extern Datum pg_advisory_unlock_shared_int8(PG_FUNCTION_ARGS); -extern Datum pg_advisory_lock_int4(PG_FUNCTION_ARGS); -extern Datum pg_advisory_lock_shared_int4(PG_FUNCTION_ARGS); -extern Datum pg_try_advisory_lock_int4(PG_FUNCTION_ARGS); -extern Datum pg_try_advisory_lock_shared_int4(PG_FUNCTION_ARGS); -extern Datum pg_advisory_unlock_int4(PG_FUNCTION_ARGS); -extern Datum pg_advisory_unlock_shared_int4(PG_FUNCTION_ARGS); -extern Datum pg_advisory_unlock_all(PG_FUNCTION_ARGS); -extern Datum xml_in(PG_FUNCTION_ARGS); -extern Datum xml_out(PG_FUNCTION_ARGS); -extern Datum xmlcomment(PG_FUNCTION_ARGS); -extern Datum texttoxml(PG_FUNCTION_ARGS); -extern Datum xmlvalidate(PG_FUNCTION_ARGS); -extern Datum xml_recv(PG_FUNCTION_ARGS); -extern Datum xml_send(PG_FUNCTION_ARGS); -extern Datum xmlconcat2(PG_FUNCTION_ARGS); -extern Datum varbittypmodin(PG_FUNCTION_ARGS); -extern Datum intervaltypmodin(PG_FUNCTION_ARGS); -extern Datum intervaltypmodout(PG_FUNCTION_ARGS); -extern Datum timestamptypmodin(PG_FUNCTION_ARGS); -extern Datum timestamptypmodout(PG_FUNCTION_ARGS); -extern Datum timestamptztypmodin(PG_FUNCTION_ARGS); -extern Datum timestamptztypmodout(PG_FUNCTION_ARGS); -extern Datum timetypmodin(PG_FUNCTION_ARGS); -extern Datum timetypmodout(PG_FUNCTION_ARGS); -extern Datum timetztypmodin(PG_FUNCTION_ARGS); -extern Datum timetztypmodout(PG_FUNCTION_ARGS); -extern Datum bpchartypmodin(PG_FUNCTION_ARGS); -extern Datum bpchartypmodout(PG_FUNCTION_ARGS); -extern Datum varchartypmodin(PG_FUNCTION_ARGS); -extern Datum varchartypmodout(PG_FUNCTION_ARGS); -extern Datum numerictypmodin(PG_FUNCTION_ARGS); -extern Datum numerictypmodout(PG_FUNCTION_ARGS); -extern Datum bittypmodin(PG_FUNCTION_ARGS); -extern Datum bittypmodout(PG_FUNCTION_ARGS); -extern Datum varbittypmodout(PG_FUNCTION_ARGS); -extern Datum xmltotext(PG_FUNCTION_ARGS); -extern Datum table_to_xml(PG_FUNCTION_ARGS); -extern Datum query_to_xml(PG_FUNCTION_ARGS); -extern Datum cursor_to_xml(PG_FUNCTION_ARGS); -extern Datum table_to_xmlschema(PG_FUNCTION_ARGS); -extern Datum query_to_xmlschema(PG_FUNCTION_ARGS); -extern Datum cursor_to_xmlschema(PG_FUNCTION_ARGS); -extern Datum table_to_xml_and_xmlschema(PG_FUNCTION_ARGS); -extern Datum query_to_xml_and_xmlschema(PG_FUNCTION_ARGS); -extern Datum xpath(PG_FUNCTION_ARGS); -extern Datum schema_to_xml(PG_FUNCTION_ARGS); -extern Datum schema_to_xmlschema(PG_FUNCTION_ARGS); -extern Datum schema_to_xml_and_xmlschema(PG_FUNCTION_ARGS); -extern Datum database_to_xml(PG_FUNCTION_ARGS); -extern Datum database_to_xmlschema(PG_FUNCTION_ARGS); -extern Datum database_to_xml_and_xmlschema(PG_FUNCTION_ARGS); -extern Datum pg_snapshot_in(PG_FUNCTION_ARGS); -extern Datum pg_snapshot_out(PG_FUNCTION_ARGS); -extern Datum pg_snapshot_recv(PG_FUNCTION_ARGS); -extern Datum pg_snapshot_send(PG_FUNCTION_ARGS); -extern Datum pg_current_xact_id(PG_FUNCTION_ARGS); -extern Datum pg_current_snapshot(PG_FUNCTION_ARGS); -extern Datum pg_snapshot_xmin(PG_FUNCTION_ARGS); -extern Datum pg_snapshot_xmax(PG_FUNCTION_ARGS); -extern Datum pg_snapshot_xip(PG_FUNCTION_ARGS); -extern Datum pg_visible_in_snapshot(PG_FUNCTION_ARGS); -extern Datum uuid_in(PG_FUNCTION_ARGS); -extern Datum uuid_out(PG_FUNCTION_ARGS); -extern Datum uuid_lt(PG_FUNCTION_ARGS); -extern Datum uuid_le(PG_FUNCTION_ARGS); -extern Datum uuid_eq(PG_FUNCTION_ARGS); -extern Datum uuid_ge(PG_FUNCTION_ARGS); -extern Datum uuid_gt(PG_FUNCTION_ARGS); -extern Datum uuid_ne(PG_FUNCTION_ARGS); -extern Datum uuid_cmp(PG_FUNCTION_ARGS); -extern Datum uuid_recv(PG_FUNCTION_ARGS); -extern Datum uuid_send(PG_FUNCTION_ARGS); -extern Datum uuid_hash(PG_FUNCTION_ARGS); -extern Datum booltext(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_function_calls(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_function_total_time(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_function_self_time(PG_FUNCTION_ARGS); -extern Datum record_eq(PG_FUNCTION_ARGS); -extern Datum record_ne(PG_FUNCTION_ARGS); -extern Datum record_lt(PG_FUNCTION_ARGS); -extern Datum record_gt(PG_FUNCTION_ARGS); -extern Datum record_le(PG_FUNCTION_ARGS); -extern Datum record_ge(PG_FUNCTION_ARGS); -extern Datum btrecordcmp(PG_FUNCTION_ARGS); -extern Datum pg_table_size(PG_FUNCTION_ARGS); -extern Datum pg_indexes_size(PG_FUNCTION_ARGS); -extern Datum pg_relation_filenode(PG_FUNCTION_ARGS); -extern Datum has_foreign_data_wrapper_privilege_name_name(PG_FUNCTION_ARGS); -extern Datum has_foreign_data_wrapper_privilege_name_id(PG_FUNCTION_ARGS); -extern Datum has_foreign_data_wrapper_privilege_id_name(PG_FUNCTION_ARGS); -extern Datum has_foreign_data_wrapper_privilege_id_id(PG_FUNCTION_ARGS); -extern Datum has_foreign_data_wrapper_privilege_name(PG_FUNCTION_ARGS); -extern Datum has_foreign_data_wrapper_privilege_id(PG_FUNCTION_ARGS); -extern Datum has_server_privilege_name_name(PG_FUNCTION_ARGS); -extern Datum has_server_privilege_name_id(PG_FUNCTION_ARGS); -extern Datum has_server_privilege_id_name(PG_FUNCTION_ARGS); -extern Datum has_server_privilege_id_id(PG_FUNCTION_ARGS); -extern Datum has_server_privilege_name(PG_FUNCTION_ARGS); -extern Datum has_server_privilege_id(PG_FUNCTION_ARGS); -extern Datum has_column_privilege_name_name_name(PG_FUNCTION_ARGS); -extern Datum has_column_privilege_name_name_attnum(PG_FUNCTION_ARGS); -extern Datum has_column_privilege_name_id_name(PG_FUNCTION_ARGS); -extern Datum has_column_privilege_name_id_attnum(PG_FUNCTION_ARGS); -extern Datum has_column_privilege_id_name_name(PG_FUNCTION_ARGS); -extern Datum has_column_privilege_id_name_attnum(PG_FUNCTION_ARGS); -extern Datum has_column_privilege_id_id_name(PG_FUNCTION_ARGS); -extern Datum has_column_privilege_id_id_attnum(PG_FUNCTION_ARGS); -extern Datum has_column_privilege_name_name(PG_FUNCTION_ARGS); -extern Datum has_column_privilege_name_attnum(PG_FUNCTION_ARGS); -extern Datum has_column_privilege_id_name(PG_FUNCTION_ARGS); -extern Datum has_column_privilege_id_attnum(PG_FUNCTION_ARGS); -extern Datum has_any_column_privilege_name_name(PG_FUNCTION_ARGS); -extern Datum has_any_column_privilege_name_id(PG_FUNCTION_ARGS); -extern Datum has_any_column_privilege_id_name(PG_FUNCTION_ARGS); -extern Datum has_any_column_privilege_id_id(PG_FUNCTION_ARGS); -extern Datum has_any_column_privilege_name(PG_FUNCTION_ARGS); -extern Datum has_any_column_privilege_id(PG_FUNCTION_ARGS); -extern Datum bitoverlay(PG_FUNCTION_ARGS); -extern Datum bitoverlay_no_len(PG_FUNCTION_ARGS); -extern Datum bitgetbit(PG_FUNCTION_ARGS); -extern Datum bitsetbit(PG_FUNCTION_ARGS); -extern Datum pg_relation_filepath(PG_FUNCTION_ARGS); -extern Datum pg_listening_channels(PG_FUNCTION_ARGS); -extern Datum pg_notify(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_xact_numscans(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_xact_tuples_returned(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_xact_tuples_fetched(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_xact_tuples_inserted(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_xact_tuples_updated(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_xact_tuples_deleted(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_xact_tuples_hot_updated(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_xact_blocks_fetched(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_xact_blocks_hit(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_xact_function_calls(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_xact_function_total_time(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_xact_function_self_time(PG_FUNCTION_ARGS); -extern Datum xpath_exists(PG_FUNCTION_ARGS); -extern Datum xml_is_well_formed(PG_FUNCTION_ARGS); -extern Datum xml_is_well_formed_document(PG_FUNCTION_ARGS); -extern Datum xml_is_well_formed_content(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_vacuum_count(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_autovacuum_count(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_analyze_count(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_autoanalyze_count(PG_FUNCTION_ARGS); -extern Datum text_concat(PG_FUNCTION_ARGS); -extern Datum text_concat_ws(PG_FUNCTION_ARGS); -extern Datum text_left(PG_FUNCTION_ARGS); -extern Datum text_right(PG_FUNCTION_ARGS); -extern Datum text_reverse(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_buf_fsync_backend(PG_FUNCTION_ARGS); -extern Datum gist_point_distance(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_conflict_tablespace(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_conflict_lock(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_conflict_snapshot(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_conflict_bufferpin(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_conflict_startup_deadlock(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_conflict_all(PG_FUNCTION_ARGS); -extern Datum pg_wal_replay_pause(PG_FUNCTION_ARGS); -extern Datum pg_wal_replay_resume(PG_FUNCTION_ARGS); -extern Datum pg_is_wal_replay_paused(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_stat_reset_time(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_bgwriter_stat_reset_time(PG_FUNCTION_ARGS); -extern Datum ginarrayextract_2args(PG_FUNCTION_ARGS); -extern Datum gin_extract_tsvector_2args(PG_FUNCTION_ARGS); -extern Datum pg_sequence_parameters(PG_FUNCTION_ARGS); -extern Datum pg_available_extensions(PG_FUNCTION_ARGS); -extern Datum pg_available_extension_versions(PG_FUNCTION_ARGS); -extern Datum pg_extension_update_paths(PG_FUNCTION_ARGS); -extern Datum pg_extension_config_dump(PG_FUNCTION_ARGS); -extern Datum gin_extract_tsquery_5args(PG_FUNCTION_ARGS); -extern Datum gin_tsquery_consistent_6args(PG_FUNCTION_ARGS); -extern Datum pg_advisory_xact_lock_int8(PG_FUNCTION_ARGS); -extern Datum pg_advisory_xact_lock_shared_int8(PG_FUNCTION_ARGS); -extern Datum pg_try_advisory_xact_lock_int8(PG_FUNCTION_ARGS); -extern Datum pg_try_advisory_xact_lock_shared_int8(PG_FUNCTION_ARGS); -extern Datum pg_advisory_xact_lock_int4(PG_FUNCTION_ARGS); -extern Datum pg_advisory_xact_lock_shared_int4(PG_FUNCTION_ARGS); -extern Datum pg_try_advisory_xact_lock_int4(PG_FUNCTION_ARGS); -extern Datum pg_try_advisory_xact_lock_shared_int4(PG_FUNCTION_ARGS); -extern Datum varchar_support(PG_FUNCTION_ARGS); -extern Datum pg_create_restore_point(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_wal_senders(PG_FUNCTION_ARGS); -extern Datum window_row_number(PG_FUNCTION_ARGS); -extern Datum window_rank(PG_FUNCTION_ARGS); -extern Datum window_dense_rank(PG_FUNCTION_ARGS); -extern Datum window_percent_rank(PG_FUNCTION_ARGS); -extern Datum window_cume_dist(PG_FUNCTION_ARGS); -extern Datum window_ntile(PG_FUNCTION_ARGS); -extern Datum window_lag(PG_FUNCTION_ARGS); -extern Datum window_lag_with_offset(PG_FUNCTION_ARGS); -extern Datum window_lag_with_offset_and_default(PG_FUNCTION_ARGS); -extern Datum window_lead(PG_FUNCTION_ARGS); -extern Datum window_lead_with_offset(PG_FUNCTION_ARGS); -extern Datum window_lead_with_offset_and_default(PG_FUNCTION_ARGS); -extern Datum window_first_value(PG_FUNCTION_ARGS); -extern Datum window_last_value(PG_FUNCTION_ARGS); -extern Datum window_nth_value(PG_FUNCTION_ARGS); -extern Datum fdw_handler_in(PG_FUNCTION_ARGS); -extern Datum fdw_handler_out(PG_FUNCTION_ARGS); -extern Datum void_recv(PG_FUNCTION_ARGS); -extern Datum void_send(PG_FUNCTION_ARGS); -extern Datum btint2sortsupport(PG_FUNCTION_ARGS); -extern Datum btint4sortsupport(PG_FUNCTION_ARGS); -extern Datum btint8sortsupport(PG_FUNCTION_ARGS); -extern Datum btfloat4sortsupport(PG_FUNCTION_ARGS); -extern Datum btfloat8sortsupport(PG_FUNCTION_ARGS); -extern Datum btoidsortsupport(PG_FUNCTION_ARGS); -extern Datum btnamesortsupport(PG_FUNCTION_ARGS); -extern Datum date_sortsupport(PG_FUNCTION_ARGS); -extern Datum timestamp_sortsupport(PG_FUNCTION_ARGS); -extern Datum has_type_privilege_name_name(PG_FUNCTION_ARGS); -extern Datum has_type_privilege_name_id(PG_FUNCTION_ARGS); -extern Datum has_type_privilege_id_name(PG_FUNCTION_ARGS); -extern Datum has_type_privilege_id_id(PG_FUNCTION_ARGS); -extern Datum has_type_privilege_name(PG_FUNCTION_ARGS); -extern Datum has_type_privilege_id(PG_FUNCTION_ARGS); -extern Datum macaddr_not(PG_FUNCTION_ARGS); -extern Datum macaddr_and(PG_FUNCTION_ARGS); -extern Datum macaddr_or(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_temp_files(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_temp_bytes(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_deadlocks(PG_FUNCTION_ARGS); -extern Datum array_to_json(PG_FUNCTION_ARGS); -extern Datum array_to_json_pretty(PG_FUNCTION_ARGS); -extern Datum row_to_json(PG_FUNCTION_ARGS); -extern Datum row_to_json_pretty(PG_FUNCTION_ARGS); -extern Datum numeric_support(PG_FUNCTION_ARGS); -extern Datum varbit_support(PG_FUNCTION_ARGS); -extern Datum pg_get_viewdef_wrap(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_checkpoint_write_time(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_checkpoint_sync_time(PG_FUNCTION_ARGS); -extern Datum pg_collation_for(PG_FUNCTION_ARGS); -extern Datum pg_trigger_depth(PG_FUNCTION_ARGS); -extern Datum pg_wal_lsn_diff(PG_FUNCTION_ARGS); -extern Datum pg_size_pretty_numeric(PG_FUNCTION_ARGS); -extern Datum array_remove(PG_FUNCTION_ARGS); -extern Datum array_replace(PG_FUNCTION_ARGS); -extern Datum rangesel(PG_FUNCTION_ARGS); -extern Datum be_lo_lseek64(PG_FUNCTION_ARGS); -extern Datum be_lo_tell64(PG_FUNCTION_ARGS); -extern Datum be_lo_truncate64(PG_FUNCTION_ARGS); -extern Datum json_agg_transfn(PG_FUNCTION_ARGS); -extern Datum json_agg_finalfn(PG_FUNCTION_ARGS); -extern Datum to_json(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_mod_since_analyze(PG_FUNCTION_ARGS); -extern Datum numeric_sum(PG_FUNCTION_ARGS); -extern Datum array_cardinality(PG_FUNCTION_ARGS); -extern Datum json_object_agg_transfn(PG_FUNCTION_ARGS); -extern Datum record_image_eq(PG_FUNCTION_ARGS); -extern Datum record_image_ne(PG_FUNCTION_ARGS); -extern Datum record_image_lt(PG_FUNCTION_ARGS); -extern Datum record_image_gt(PG_FUNCTION_ARGS); -extern Datum record_image_le(PG_FUNCTION_ARGS); -extern Datum record_image_ge(PG_FUNCTION_ARGS); -extern Datum btrecordimagecmp(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_archiver(PG_FUNCTION_ARGS); -extern Datum json_object_agg_finalfn(PG_FUNCTION_ARGS); -extern Datum json_build_array(PG_FUNCTION_ARGS); -extern Datum json_build_array_noargs(PG_FUNCTION_ARGS); -extern Datum json_build_object(PG_FUNCTION_ARGS); -extern Datum json_build_object_noargs(PG_FUNCTION_ARGS); -extern Datum json_object(PG_FUNCTION_ARGS); -extern Datum json_object_two_arg(PG_FUNCTION_ARGS); -extern Datum json_to_record(PG_FUNCTION_ARGS); -extern Datum json_to_recordset(PG_FUNCTION_ARGS); -extern Datum jsonb_array_length(PG_FUNCTION_ARGS); -extern Datum jsonb_each(PG_FUNCTION_ARGS); -extern Datum jsonb_populate_record(PG_FUNCTION_ARGS); -extern Datum jsonb_typeof(PG_FUNCTION_ARGS); -extern Datum jsonb_object_field_text(PG_FUNCTION_ARGS); -extern Datum jsonb_array_element(PG_FUNCTION_ARGS); -extern Datum jsonb_array_element_text(PG_FUNCTION_ARGS); -extern Datum jsonb_extract_path(PG_FUNCTION_ARGS); -extern Datum width_bucket_array(PG_FUNCTION_ARGS); -extern Datum jsonb_array_elements(PG_FUNCTION_ARGS); -extern Datum pg_lsn_in(PG_FUNCTION_ARGS); -extern Datum pg_lsn_out(PG_FUNCTION_ARGS); -extern Datum pg_lsn_lt(PG_FUNCTION_ARGS); -extern Datum pg_lsn_le(PG_FUNCTION_ARGS); -extern Datum pg_lsn_eq(PG_FUNCTION_ARGS); -extern Datum pg_lsn_ge(PG_FUNCTION_ARGS); -extern Datum pg_lsn_gt(PG_FUNCTION_ARGS); -extern Datum pg_lsn_ne(PG_FUNCTION_ARGS); -extern Datum pg_lsn_mi(PG_FUNCTION_ARGS); -extern Datum pg_lsn_recv(PG_FUNCTION_ARGS); -extern Datum pg_lsn_send(PG_FUNCTION_ARGS); -extern Datum pg_lsn_cmp(PG_FUNCTION_ARGS); -extern Datum pg_lsn_hash(PG_FUNCTION_ARGS); -extern Datum bttextsortsupport(PG_FUNCTION_ARGS); -extern Datum generate_series_step_numeric(PG_FUNCTION_ARGS); -extern Datum generate_series_numeric(PG_FUNCTION_ARGS); -extern Datum json_strip_nulls(PG_FUNCTION_ARGS); -extern Datum jsonb_strip_nulls(PG_FUNCTION_ARGS); -extern Datum jsonb_object(PG_FUNCTION_ARGS); -extern Datum jsonb_object_two_arg(PG_FUNCTION_ARGS); -extern Datum jsonb_agg_transfn(PG_FUNCTION_ARGS); -extern Datum jsonb_agg_finalfn(PG_FUNCTION_ARGS); -extern Datum jsonb_object_agg_transfn(PG_FUNCTION_ARGS); -extern Datum jsonb_object_agg_finalfn(PG_FUNCTION_ARGS); -extern Datum jsonb_build_array(PG_FUNCTION_ARGS); -extern Datum jsonb_build_array_noargs(PG_FUNCTION_ARGS); -extern Datum jsonb_build_object(PG_FUNCTION_ARGS); -extern Datum jsonb_build_object_noargs(PG_FUNCTION_ARGS); -extern Datum dist_ppoly(PG_FUNCTION_ARGS); -extern Datum array_position(PG_FUNCTION_ARGS); -extern Datum array_position_start(PG_FUNCTION_ARGS); -extern Datum array_positions(PG_FUNCTION_ARGS); -extern Datum gist_circle_distance(PG_FUNCTION_ARGS); -extern Datum numeric_scale(PG_FUNCTION_ARGS); -extern Datum gist_point_fetch(PG_FUNCTION_ARGS); -extern Datum numeric_sortsupport(PG_FUNCTION_ARGS); -extern Datum gist_poly_distance(PG_FUNCTION_ARGS); -extern Datum dist_cpoint(PG_FUNCTION_ARGS); -extern Datum dist_polyp(PG_FUNCTION_ARGS); -extern Datum pg_read_file_v2(PG_FUNCTION_ARGS); -extern Datum show_config_by_name_missing_ok(PG_FUNCTION_ARGS); -extern Datum pg_read_binary_file(PG_FUNCTION_ARGS); -extern Datum pg_notification_queue_usage(PG_FUNCTION_ARGS); -extern Datum pg_ls_dir(PG_FUNCTION_ARGS); -extern Datum row_security_active(PG_FUNCTION_ARGS); -extern Datum row_security_active_name(PG_FUNCTION_ARGS); -extern Datum uuid_sortsupport(PG_FUNCTION_ARGS); -extern Datum jsonb_concat(PG_FUNCTION_ARGS); -extern Datum jsonb_delete(PG_FUNCTION_ARGS); -extern Datum jsonb_delete_idx(PG_FUNCTION_ARGS); -extern Datum jsonb_delete_path(PG_FUNCTION_ARGS); -extern Datum jsonb_set(PG_FUNCTION_ARGS); -extern Datum jsonb_pretty(PG_FUNCTION_ARGS); -extern Datum pg_stat_file(PG_FUNCTION_ARGS); -extern Datum xidneq(PG_FUNCTION_ARGS); -extern Datum tsm_handler_in(PG_FUNCTION_ARGS); -extern Datum tsm_handler_out(PG_FUNCTION_ARGS); -extern Datum tsm_bernoulli_handler(PG_FUNCTION_ARGS); -extern Datum tsm_system_handler(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_wal_receiver(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_progress_info(PG_FUNCTION_ARGS); -extern Datum tsvector_filter(PG_FUNCTION_ARGS); -extern Datum tsvector_setweight_by_filter(PG_FUNCTION_ARGS); -extern Datum tsvector_delete_str(PG_FUNCTION_ARGS); -extern Datum tsvector_unnest(PG_FUNCTION_ARGS); -extern Datum tsvector_delete_arr(PG_FUNCTION_ARGS); -extern Datum int4_avg_combine(PG_FUNCTION_ARGS); -extern Datum interval_combine(PG_FUNCTION_ARGS); -extern Datum tsvector_to_array(PG_FUNCTION_ARGS); -extern Datum array_to_tsvector(PG_FUNCTION_ARGS); -extern Datum bpchar_sortsupport(PG_FUNCTION_ARGS); -extern Datum show_all_file_settings(PG_FUNCTION_ARGS); -extern Datum pg_current_wal_flush_lsn(PG_FUNCTION_ARGS); -extern Datum bytea_sortsupport(PG_FUNCTION_ARGS); -extern Datum bttext_pattern_sortsupport(PG_FUNCTION_ARGS); -extern Datum btbpchar_pattern_sortsupport(PG_FUNCTION_ARGS); -extern Datum pg_size_bytes(PG_FUNCTION_ARGS); -extern Datum numeric_serialize(PG_FUNCTION_ARGS); -extern Datum numeric_deserialize(PG_FUNCTION_ARGS); -extern Datum numeric_avg_combine(PG_FUNCTION_ARGS); -extern Datum numeric_poly_combine(PG_FUNCTION_ARGS); -extern Datum numeric_poly_serialize(PG_FUNCTION_ARGS); -extern Datum numeric_poly_deserialize(PG_FUNCTION_ARGS); -extern Datum numeric_combine(PG_FUNCTION_ARGS); -extern Datum float8_regr_combine(PG_FUNCTION_ARGS); -extern Datum jsonb_delete_array(PG_FUNCTION_ARGS); -extern Datum cash_mul_int8(PG_FUNCTION_ARGS); -extern Datum cash_div_int8(PG_FUNCTION_ARGS); -extern Datum pg_current_xact_id_if_assigned(PG_FUNCTION_ARGS); -extern Datum pg_get_partkeydef(PG_FUNCTION_ARGS); -extern Datum pg_ls_logdir(PG_FUNCTION_ARGS); -extern Datum pg_ls_waldir(PG_FUNCTION_ARGS); -extern Datum pg_ndistinct_in(PG_FUNCTION_ARGS); -extern Datum pg_ndistinct_out(PG_FUNCTION_ARGS); -extern Datum pg_ndistinct_recv(PG_FUNCTION_ARGS); -extern Datum pg_ndistinct_send(PG_FUNCTION_ARGS); -extern Datum macaddr_sortsupport(PG_FUNCTION_ARGS); -extern Datum pg_xact_status(PG_FUNCTION_ARGS); -extern Datum pg_safe_snapshot_blocking_pids(PG_FUNCTION_ARGS); -extern Datum pg_isolation_test_session_is_blocked(PG_FUNCTION_ARGS); -extern Datum pg_identify_object_as_address(PG_FUNCTION_ARGS); -extern Datum brin_minmax_opcinfo(PG_FUNCTION_ARGS); -extern Datum brin_minmax_add_value(PG_FUNCTION_ARGS); -extern Datum brin_minmax_consistent(PG_FUNCTION_ARGS); -extern Datum brin_minmax_union(PG_FUNCTION_ARGS); -extern Datum int8_avg_accum_inv(PG_FUNCTION_ARGS); -extern Datum numeric_poly_sum(PG_FUNCTION_ARGS); -extern Datum numeric_poly_avg(PG_FUNCTION_ARGS); -extern Datum numeric_poly_var_pop(PG_FUNCTION_ARGS); -extern Datum numeric_poly_var_samp(PG_FUNCTION_ARGS); -extern Datum numeric_poly_stddev_pop(PG_FUNCTION_ARGS); -extern Datum numeric_poly_stddev_samp(PG_FUNCTION_ARGS); -extern Datum regexp_match_no_flags(PG_FUNCTION_ARGS); -extern Datum regexp_match(PG_FUNCTION_ARGS); -extern Datum int8_mul_cash(PG_FUNCTION_ARGS); -extern Datum pg_config(PG_FUNCTION_ARGS); -extern Datum pg_hba_file_rules(PG_FUNCTION_ARGS); -extern Datum pg_statistics_obj_is_visible(PG_FUNCTION_ARGS); -extern Datum pg_dependencies_in(PG_FUNCTION_ARGS); -extern Datum pg_dependencies_out(PG_FUNCTION_ARGS); -extern Datum pg_dependencies_recv(PG_FUNCTION_ARGS); -extern Datum pg_dependencies_send(PG_FUNCTION_ARGS); -extern Datum pg_get_partition_constraintdef(PG_FUNCTION_ARGS); -extern Datum time_hash_extended(PG_FUNCTION_ARGS); -extern Datum timetz_hash_extended(PG_FUNCTION_ARGS); -extern Datum timestamp_hash_extended(PG_FUNCTION_ARGS); -extern Datum uuid_hash_extended(PG_FUNCTION_ARGS); -extern Datum pg_lsn_hash_extended(PG_FUNCTION_ARGS); -extern Datum hashenumextended(PG_FUNCTION_ARGS); -extern Datum pg_get_statisticsobjdef(PG_FUNCTION_ARGS); -extern Datum jsonb_hash_extended(PG_FUNCTION_ARGS); -extern Datum hash_range_extended(PG_FUNCTION_ARGS); -extern Datum interval_hash_extended(PG_FUNCTION_ARGS); -extern Datum sha224_bytea(PG_FUNCTION_ARGS); -extern Datum sha256_bytea(PG_FUNCTION_ARGS); -extern Datum sha384_bytea(PG_FUNCTION_ARGS); -extern Datum sha512_bytea(PG_FUNCTION_ARGS); -extern Datum pg_partition_tree(PG_FUNCTION_ARGS); -extern Datum pg_partition_root(PG_FUNCTION_ARGS); -extern Datum pg_partition_ancestors(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_checksum_failures(PG_FUNCTION_ARGS); -extern Datum pg_stats_ext_mcvlist_items(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_checksum_last_failure(PG_FUNCTION_ARGS); -extern Datum gen_random_uuid(PG_FUNCTION_ARGS); -extern Datum gtsvector_options(PG_FUNCTION_ARGS); -extern Datum gist_point_sortsupport(PG_FUNCTION_ARGS); -extern Datum pg_promote(PG_FUNCTION_ARGS); -extern Datum prefixsel(PG_FUNCTION_ARGS); -extern Datum prefixjoinsel(PG_FUNCTION_ARGS); -extern Datum pg_control_system(PG_FUNCTION_ARGS); -extern Datum pg_control_checkpoint(PG_FUNCTION_ARGS); -extern Datum pg_control_recovery(PG_FUNCTION_ARGS); -extern Datum pg_control_init(PG_FUNCTION_ARGS); -extern Datum pg_import_system_collations(PG_FUNCTION_ARGS); -extern Datum macaddr8_recv(PG_FUNCTION_ARGS); -extern Datum macaddr8_send(PG_FUNCTION_ARGS); -extern Datum pg_collation_actual_version(PG_FUNCTION_ARGS); -extern Datum jsonb_numeric(PG_FUNCTION_ARGS); -extern Datum jsonb_int2(PG_FUNCTION_ARGS); -extern Datum jsonb_int4(PG_FUNCTION_ARGS); -extern Datum jsonb_int8(PG_FUNCTION_ARGS); -extern Datum jsonb_float4(PG_FUNCTION_ARGS); -extern Datum pg_filenode_relation(PG_FUNCTION_ARGS); -extern Datum be_lo_from_bytea(PG_FUNCTION_ARGS); -extern Datum be_lo_get(PG_FUNCTION_ARGS); -extern Datum be_lo_get_fragment(PG_FUNCTION_ARGS); -extern Datum be_lo_put(PG_FUNCTION_ARGS); -extern Datum make_timestamp(PG_FUNCTION_ARGS); -extern Datum make_timestamptz(PG_FUNCTION_ARGS); -extern Datum make_timestamptz_at_timezone(PG_FUNCTION_ARGS); -extern Datum make_interval(PG_FUNCTION_ARGS); -extern Datum jsonb_array_elements_text(PG_FUNCTION_ARGS); -extern Datum spg_range_quad_config(PG_FUNCTION_ARGS); -extern Datum spg_range_quad_choose(PG_FUNCTION_ARGS); -extern Datum spg_range_quad_picksplit(PG_FUNCTION_ARGS); -extern Datum spg_range_quad_inner_consistent(PG_FUNCTION_ARGS); -extern Datum spg_range_quad_leaf_consistent(PG_FUNCTION_ARGS); -extern Datum jsonb_populate_recordset(PG_FUNCTION_ARGS); -extern Datum to_regoperator(PG_FUNCTION_ARGS); -extern Datum jsonb_object_field(PG_FUNCTION_ARGS); -extern Datum to_regprocedure(PG_FUNCTION_ARGS); -extern Datum gin_compare_jsonb(PG_FUNCTION_ARGS); -extern Datum gin_extract_jsonb(PG_FUNCTION_ARGS); -extern Datum gin_extract_jsonb_query(PG_FUNCTION_ARGS); -extern Datum gin_consistent_jsonb(PG_FUNCTION_ARGS); -extern Datum gin_extract_jsonb_path(PG_FUNCTION_ARGS); -extern Datum gin_extract_jsonb_query_path(PG_FUNCTION_ARGS); -extern Datum gin_consistent_jsonb_path(PG_FUNCTION_ARGS); -extern Datum gin_triconsistent_jsonb(PG_FUNCTION_ARGS); -extern Datum gin_triconsistent_jsonb_path(PG_FUNCTION_ARGS); -extern Datum jsonb_to_record(PG_FUNCTION_ARGS); -extern Datum jsonb_to_recordset(PG_FUNCTION_ARGS); -extern Datum to_regoper(PG_FUNCTION_ARGS); -extern Datum to_regtype(PG_FUNCTION_ARGS); -extern Datum to_regproc(PG_FUNCTION_ARGS); -extern Datum to_regclass(PG_FUNCTION_ARGS); -extern Datum bool_accum(PG_FUNCTION_ARGS); -extern Datum bool_accum_inv(PG_FUNCTION_ARGS); -extern Datum bool_alltrue(PG_FUNCTION_ARGS); -extern Datum bool_anytrue(PG_FUNCTION_ARGS); -extern Datum anyenum_in(PG_FUNCTION_ARGS); -extern Datum anyenum_out(PG_FUNCTION_ARGS); -extern Datum enum_in(PG_FUNCTION_ARGS); -extern Datum enum_out(PG_FUNCTION_ARGS); -extern Datum enum_eq(PG_FUNCTION_ARGS); -extern Datum enum_ne(PG_FUNCTION_ARGS); -extern Datum enum_lt(PG_FUNCTION_ARGS); -extern Datum enum_gt(PG_FUNCTION_ARGS); -extern Datum enum_le(PG_FUNCTION_ARGS); -extern Datum enum_ge(PG_FUNCTION_ARGS); -extern Datum enum_cmp(PG_FUNCTION_ARGS); -extern Datum hashenum(PG_FUNCTION_ARGS); -extern Datum enum_smaller(PG_FUNCTION_ARGS); -extern Datum enum_larger(PG_FUNCTION_ARGS); -extern Datum enum_first(PG_FUNCTION_ARGS); -extern Datum enum_last(PG_FUNCTION_ARGS); -extern Datum enum_range_bounds(PG_FUNCTION_ARGS); -extern Datum enum_range_all(PG_FUNCTION_ARGS); -extern Datum enum_recv(PG_FUNCTION_ARGS); -extern Datum enum_send(PG_FUNCTION_ARGS); -extern Datum string_agg_transfn(PG_FUNCTION_ARGS); -extern Datum string_agg_finalfn(PG_FUNCTION_ARGS); -extern Datum pg_describe_object(PG_FUNCTION_ARGS); -extern Datum text_format(PG_FUNCTION_ARGS); -extern Datum text_format_nv(PG_FUNCTION_ARGS); -extern Datum bytea_string_agg_transfn(PG_FUNCTION_ARGS); -extern Datum bytea_string_agg_finalfn(PG_FUNCTION_ARGS); -extern Datum int8dec(PG_FUNCTION_ARGS); -extern Datum int8dec_any(PG_FUNCTION_ARGS); -extern Datum numeric_accum_inv(PG_FUNCTION_ARGS); -extern Datum interval_accum_inv(PG_FUNCTION_ARGS); -extern Datum network_overlap(PG_FUNCTION_ARGS); -extern Datum inet_gist_consistent(PG_FUNCTION_ARGS); -extern Datum inet_gist_union(PG_FUNCTION_ARGS); -extern Datum inet_gist_compress(PG_FUNCTION_ARGS); -extern Datum jsonb_bool(PG_FUNCTION_ARGS); -extern Datum inet_gist_penalty(PG_FUNCTION_ARGS); -extern Datum inet_gist_picksplit(PG_FUNCTION_ARGS); -extern Datum inet_gist_same(PG_FUNCTION_ARGS); -extern Datum networksel(PG_FUNCTION_ARGS); -extern Datum networkjoinsel(PG_FUNCTION_ARGS); -extern Datum network_larger(PG_FUNCTION_ARGS); -extern Datum network_smaller(PG_FUNCTION_ARGS); -extern Datum pg_event_trigger_dropped_objects(PG_FUNCTION_ARGS); -extern Datum int2_accum_inv(PG_FUNCTION_ARGS); -extern Datum int4_accum_inv(PG_FUNCTION_ARGS); -extern Datum int8_accum_inv(PG_FUNCTION_ARGS); -extern Datum int2_avg_accum_inv(PG_FUNCTION_ARGS); -extern Datum int4_avg_accum_inv(PG_FUNCTION_ARGS); -extern Datum int2int4_sum(PG_FUNCTION_ARGS); -extern Datum inet_gist_fetch(PG_FUNCTION_ARGS); -extern Datum pg_logical_emit_message_text(PG_FUNCTION_ARGS); -extern Datum pg_logical_emit_message_bytea(PG_FUNCTION_ARGS); -extern Datum jsonb_insert(PG_FUNCTION_ARGS); -extern Datum pg_xact_commit_timestamp(PG_FUNCTION_ARGS); -extern Datum binary_upgrade_set_next_pg_type_oid(PG_FUNCTION_ARGS); -extern Datum pg_last_committed_xact(PG_FUNCTION_ARGS); -extern Datum binary_upgrade_set_next_array_pg_type_oid(PG_FUNCTION_ARGS); -extern Datum binary_upgrade_set_next_heap_pg_class_oid(PG_FUNCTION_ARGS); -extern Datum binary_upgrade_set_next_index_pg_class_oid(PG_FUNCTION_ARGS); -extern Datum binary_upgrade_set_next_toast_pg_class_oid(PG_FUNCTION_ARGS); -extern Datum binary_upgrade_set_next_pg_enum_oid(PG_FUNCTION_ARGS); -extern Datum binary_upgrade_set_next_pg_authid_oid(PG_FUNCTION_ARGS); -extern Datum binary_upgrade_create_empty_extension(PG_FUNCTION_ARGS); -extern Datum event_trigger_in(PG_FUNCTION_ARGS); -extern Datum event_trigger_out(PG_FUNCTION_ARGS); -extern Datum tsvectorin(PG_FUNCTION_ARGS); -extern Datum tsvectorout(PG_FUNCTION_ARGS); -extern Datum tsqueryin(PG_FUNCTION_ARGS); -extern Datum tsqueryout(PG_FUNCTION_ARGS); -extern Datum tsvector_lt(PG_FUNCTION_ARGS); -extern Datum tsvector_le(PG_FUNCTION_ARGS); -extern Datum tsvector_eq(PG_FUNCTION_ARGS); -extern Datum tsvector_ne(PG_FUNCTION_ARGS); -extern Datum tsvector_ge(PG_FUNCTION_ARGS); -extern Datum tsvector_gt(PG_FUNCTION_ARGS); -extern Datum tsvector_cmp(PG_FUNCTION_ARGS); -extern Datum tsvector_strip(PG_FUNCTION_ARGS); -extern Datum tsvector_setweight(PG_FUNCTION_ARGS); -extern Datum tsvector_concat(PG_FUNCTION_ARGS); -extern Datum ts_match_vq(PG_FUNCTION_ARGS); -extern Datum ts_match_qv(PG_FUNCTION_ARGS); -extern Datum tsvectorsend(PG_FUNCTION_ARGS); -extern Datum tsvectorrecv(PG_FUNCTION_ARGS); -extern Datum tsquerysend(PG_FUNCTION_ARGS); -extern Datum tsqueryrecv(PG_FUNCTION_ARGS); -extern Datum gtsvectorin(PG_FUNCTION_ARGS); -extern Datum gtsvectorout(PG_FUNCTION_ARGS); -extern Datum gtsvector_compress(PG_FUNCTION_ARGS); -extern Datum gtsvector_decompress(PG_FUNCTION_ARGS); -extern Datum gtsvector_picksplit(PG_FUNCTION_ARGS); -extern Datum gtsvector_union(PG_FUNCTION_ARGS); -extern Datum gtsvector_same(PG_FUNCTION_ARGS); -extern Datum gtsvector_penalty(PG_FUNCTION_ARGS); -extern Datum gtsvector_consistent(PG_FUNCTION_ARGS); -extern Datum gin_extract_tsvector(PG_FUNCTION_ARGS); -extern Datum gin_extract_tsquery(PG_FUNCTION_ARGS); -extern Datum gin_tsquery_consistent(PG_FUNCTION_ARGS); -extern Datum tsquery_lt(PG_FUNCTION_ARGS); -extern Datum tsquery_le(PG_FUNCTION_ARGS); -extern Datum tsquery_eq(PG_FUNCTION_ARGS); -extern Datum tsquery_ne(PG_FUNCTION_ARGS); -extern Datum tsquery_ge(PG_FUNCTION_ARGS); -extern Datum tsquery_gt(PG_FUNCTION_ARGS); -extern Datum tsquery_cmp(PG_FUNCTION_ARGS); -extern Datum tsquery_and(PG_FUNCTION_ARGS); -extern Datum tsquery_or(PG_FUNCTION_ARGS); -extern Datum tsquery_not(PG_FUNCTION_ARGS); -extern Datum tsquery_numnode(PG_FUNCTION_ARGS); -extern Datum tsquerytree(PG_FUNCTION_ARGS); -extern Datum tsquery_rewrite(PG_FUNCTION_ARGS); -extern Datum tsquery_rewrite_query(PG_FUNCTION_ARGS); -extern Datum tsmatchsel(PG_FUNCTION_ARGS); -extern Datum tsmatchjoinsel(PG_FUNCTION_ARGS); -extern Datum ts_typanalyze(PG_FUNCTION_ARGS); -extern Datum ts_stat1(PG_FUNCTION_ARGS); -extern Datum ts_stat2(PG_FUNCTION_ARGS); -extern Datum tsq_mcontains(PG_FUNCTION_ARGS); -extern Datum tsq_mcontained(PG_FUNCTION_ARGS); -extern Datum gtsquery_compress(PG_FUNCTION_ARGS); -extern Datum text_starts_with(PG_FUNCTION_ARGS); -extern Datum gtsquery_picksplit(PG_FUNCTION_ARGS); -extern Datum gtsquery_union(PG_FUNCTION_ARGS); -extern Datum gtsquery_same(PG_FUNCTION_ARGS); -extern Datum gtsquery_penalty(PG_FUNCTION_ARGS); -extern Datum gtsquery_consistent(PG_FUNCTION_ARGS); -extern Datum ts_rank_wttf(PG_FUNCTION_ARGS); -extern Datum ts_rank_wtt(PG_FUNCTION_ARGS); -extern Datum ts_rank_ttf(PG_FUNCTION_ARGS); -extern Datum ts_rank_tt(PG_FUNCTION_ARGS); -extern Datum ts_rankcd_wttf(PG_FUNCTION_ARGS); -extern Datum ts_rankcd_wtt(PG_FUNCTION_ARGS); -extern Datum ts_rankcd_ttf(PG_FUNCTION_ARGS); -extern Datum ts_rankcd_tt(PG_FUNCTION_ARGS); -extern Datum tsvector_length(PG_FUNCTION_ARGS); -extern Datum ts_token_type_byid(PG_FUNCTION_ARGS); -extern Datum ts_token_type_byname(PG_FUNCTION_ARGS); -extern Datum ts_parse_byid(PG_FUNCTION_ARGS); -extern Datum ts_parse_byname(PG_FUNCTION_ARGS); -extern Datum prsd_start(PG_FUNCTION_ARGS); -extern Datum prsd_nexttoken(PG_FUNCTION_ARGS); -extern Datum prsd_end(PG_FUNCTION_ARGS); -extern Datum prsd_headline(PG_FUNCTION_ARGS); -extern Datum prsd_lextype(PG_FUNCTION_ARGS); -extern Datum ts_lexize(PG_FUNCTION_ARGS); -extern Datum gin_cmp_tslexeme(PG_FUNCTION_ARGS); -extern Datum dsimple_init(PG_FUNCTION_ARGS); -extern Datum dsimple_lexize(PG_FUNCTION_ARGS); -extern Datum dsynonym_init(PG_FUNCTION_ARGS); -extern Datum dsynonym_lexize(PG_FUNCTION_ARGS); -extern Datum dispell_init(PG_FUNCTION_ARGS); -extern Datum dispell_lexize(PG_FUNCTION_ARGS); -extern Datum regconfigin(PG_FUNCTION_ARGS); -extern Datum regconfigout(PG_FUNCTION_ARGS); -extern Datum regconfigrecv(PG_FUNCTION_ARGS); -extern Datum regconfigsend(PG_FUNCTION_ARGS); -extern Datum thesaurus_init(PG_FUNCTION_ARGS); -extern Datum thesaurus_lexize(PG_FUNCTION_ARGS); -extern Datum ts_headline_byid_opt(PG_FUNCTION_ARGS); -extern Datum ts_headline_byid(PG_FUNCTION_ARGS); -extern Datum to_tsvector_byid(PG_FUNCTION_ARGS); -extern Datum to_tsquery_byid(PG_FUNCTION_ARGS); -extern Datum plainto_tsquery_byid(PG_FUNCTION_ARGS); -extern Datum to_tsvector(PG_FUNCTION_ARGS); -extern Datum to_tsquery(PG_FUNCTION_ARGS); -extern Datum plainto_tsquery(PG_FUNCTION_ARGS); -extern Datum tsvector_update_trigger_byid(PG_FUNCTION_ARGS); -extern Datum tsvector_update_trigger_bycolumn(PG_FUNCTION_ARGS); -extern Datum ts_headline_opt(PG_FUNCTION_ARGS); -extern Datum ts_headline(PG_FUNCTION_ARGS); -extern Datum pg_ts_parser_is_visible(PG_FUNCTION_ARGS); -extern Datum pg_ts_dict_is_visible(PG_FUNCTION_ARGS); -extern Datum pg_ts_config_is_visible(PG_FUNCTION_ARGS); -extern Datum get_current_ts_config(PG_FUNCTION_ARGS); -extern Datum ts_match_tt(PG_FUNCTION_ARGS); -extern Datum ts_match_tq(PG_FUNCTION_ARGS); -extern Datum pg_ts_template_is_visible(PG_FUNCTION_ARGS); -extern Datum regdictionaryin(PG_FUNCTION_ARGS); -extern Datum regdictionaryout(PG_FUNCTION_ARGS); -extern Datum regdictionaryrecv(PG_FUNCTION_ARGS); -extern Datum regdictionarysend(PG_FUNCTION_ARGS); -extern Datum pg_stat_reset_shared(PG_FUNCTION_ARGS); -extern Datum pg_stat_reset_single_table_counters(PG_FUNCTION_ARGS); -extern Datum pg_stat_reset_single_function_counters(PG_FUNCTION_ARGS); -extern Datum pg_tablespace_location(PG_FUNCTION_ARGS); -extern Datum pg_create_physical_replication_slot(PG_FUNCTION_ARGS); -extern Datum pg_drop_replication_slot(PG_FUNCTION_ARGS); -extern Datum pg_get_replication_slots(PG_FUNCTION_ARGS); -extern Datum pg_logical_slot_get_changes(PG_FUNCTION_ARGS); -extern Datum pg_logical_slot_get_binary_changes(PG_FUNCTION_ARGS); -extern Datum pg_logical_slot_peek_changes(PG_FUNCTION_ARGS); -extern Datum pg_logical_slot_peek_binary_changes(PG_FUNCTION_ARGS); -extern Datum pg_create_logical_replication_slot(PG_FUNCTION_ARGS); -extern Datum to_jsonb(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_snapshot_timestamp(PG_FUNCTION_ARGS); -extern Datum gin_clean_pending_list(PG_FUNCTION_ARGS); -extern Datum gtsvector_consistent_oldsig(PG_FUNCTION_ARGS); -extern Datum gin_extract_tsquery_oldsig(PG_FUNCTION_ARGS); -extern Datum gin_tsquery_consistent_oldsig(PG_FUNCTION_ARGS); -extern Datum gtsquery_consistent_oldsig(PG_FUNCTION_ARGS); -extern Datum inet_spg_config(PG_FUNCTION_ARGS); -extern Datum inet_spg_choose(PG_FUNCTION_ARGS); -extern Datum inet_spg_picksplit(PG_FUNCTION_ARGS); -extern Datum inet_spg_inner_consistent(PG_FUNCTION_ARGS); -extern Datum inet_spg_leaf_consistent(PG_FUNCTION_ARGS); -extern Datum pg_current_logfile(PG_FUNCTION_ARGS); -extern Datum pg_current_logfile_1arg(PG_FUNCTION_ARGS); -extern Datum jsonb_send(PG_FUNCTION_ARGS); -extern Datum jsonb_out(PG_FUNCTION_ARGS); -extern Datum jsonb_recv(PG_FUNCTION_ARGS); -extern Datum jsonb_in(PG_FUNCTION_ARGS); -extern Datum pg_get_function_arg_default(PG_FUNCTION_ARGS); -extern Datum pg_export_snapshot(PG_FUNCTION_ARGS); -extern Datum pg_is_in_recovery(PG_FUNCTION_ARGS); -extern Datum int4_cash(PG_FUNCTION_ARGS); -extern Datum int8_cash(PG_FUNCTION_ARGS); -extern Datum pg_collation_is_visible(PG_FUNCTION_ARGS); -extern Datum array_typanalyze(PG_FUNCTION_ARGS); -extern Datum arraycontsel(PG_FUNCTION_ARGS); -extern Datum arraycontjoinsel(PG_FUNCTION_ARGS); -extern Datum pg_get_multixact_members(PG_FUNCTION_ARGS); -extern Datum pg_last_wal_receive_lsn(PG_FUNCTION_ARGS); -extern Datum pg_last_wal_replay_lsn(PG_FUNCTION_ARGS); -extern Datum cash_div_cash(PG_FUNCTION_ARGS); -extern Datum cash_numeric(PG_FUNCTION_ARGS); -extern Datum numeric_cash(PG_FUNCTION_ARGS); -extern Datum pg_read_file_all(PG_FUNCTION_ARGS); -extern Datum pg_read_binary_file_off_len(PG_FUNCTION_ARGS); -extern Datum pg_read_binary_file_all(PG_FUNCTION_ARGS); -extern Datum pg_opfamily_is_visible(PG_FUNCTION_ARGS); -extern Datum pg_last_xact_replay_timestamp(PG_FUNCTION_ARGS); -extern Datum anyrange_in(PG_FUNCTION_ARGS); -extern Datum anyrange_out(PG_FUNCTION_ARGS); -extern Datum range_in(PG_FUNCTION_ARGS); -extern Datum range_out(PG_FUNCTION_ARGS); -extern Datum range_recv(PG_FUNCTION_ARGS); -extern Datum range_send(PG_FUNCTION_ARGS); -extern Datum pg_identify_object(PG_FUNCTION_ARGS); -extern Datum range_constructor2(PG_FUNCTION_ARGS); -extern Datum range_constructor3(PG_FUNCTION_ARGS); -extern Datum pg_relation_is_updatable(PG_FUNCTION_ARGS); -extern Datum pg_column_is_updatable(PG_FUNCTION_ARGS); -extern Datum make_date(PG_FUNCTION_ARGS); -extern Datum make_time(PG_FUNCTION_ARGS); -extern Datum range_lower(PG_FUNCTION_ARGS); -extern Datum range_upper(PG_FUNCTION_ARGS); -extern Datum range_empty(PG_FUNCTION_ARGS); -extern Datum range_lower_inc(PG_FUNCTION_ARGS); -extern Datum range_upper_inc(PG_FUNCTION_ARGS); -extern Datum range_lower_inf(PG_FUNCTION_ARGS); -extern Datum range_upper_inf(PG_FUNCTION_ARGS); -extern Datum range_eq(PG_FUNCTION_ARGS); -extern Datum range_ne(PG_FUNCTION_ARGS); -extern Datum range_overlaps(PG_FUNCTION_ARGS); -extern Datum range_contains_elem(PG_FUNCTION_ARGS); -extern Datum range_contains(PG_FUNCTION_ARGS); -extern Datum elem_contained_by_range(PG_FUNCTION_ARGS); -extern Datum range_contained_by(PG_FUNCTION_ARGS); -extern Datum range_adjacent(PG_FUNCTION_ARGS); -extern Datum range_before(PG_FUNCTION_ARGS); -extern Datum range_after(PG_FUNCTION_ARGS); -extern Datum range_overleft(PG_FUNCTION_ARGS); -extern Datum range_overright(PG_FUNCTION_ARGS); -extern Datum range_union(PG_FUNCTION_ARGS); -extern Datum range_intersect(PG_FUNCTION_ARGS); -extern Datum range_minus(PG_FUNCTION_ARGS); -extern Datum range_cmp(PG_FUNCTION_ARGS); -extern Datum range_lt(PG_FUNCTION_ARGS); -extern Datum range_le(PG_FUNCTION_ARGS); -extern Datum range_ge(PG_FUNCTION_ARGS); -extern Datum range_gt(PG_FUNCTION_ARGS); -extern Datum range_gist_consistent(PG_FUNCTION_ARGS); -extern Datum range_gist_union(PG_FUNCTION_ARGS); -extern Datum pg_replication_slot_advance(PG_FUNCTION_ARGS); -extern Datum range_gist_penalty(PG_FUNCTION_ARGS); -extern Datum range_gist_picksplit(PG_FUNCTION_ARGS); -extern Datum range_gist_same(PG_FUNCTION_ARGS); -extern Datum hash_range(PG_FUNCTION_ARGS); -extern Datum int4range_canonical(PG_FUNCTION_ARGS); -extern Datum daterange_canonical(PG_FUNCTION_ARGS); -extern Datum range_typanalyze(PG_FUNCTION_ARGS); -extern Datum timestamp_support(PG_FUNCTION_ARGS); -extern Datum interval_support(PG_FUNCTION_ARGS); -extern Datum ginarraytriconsistent(PG_FUNCTION_ARGS); -extern Datum gin_tsquery_triconsistent(PG_FUNCTION_ARGS); -extern Datum int4range_subdiff(PG_FUNCTION_ARGS); -extern Datum int8range_subdiff(PG_FUNCTION_ARGS); -extern Datum numrange_subdiff(PG_FUNCTION_ARGS); -extern Datum daterange_subdiff(PG_FUNCTION_ARGS); -extern Datum int8range_canonical(PG_FUNCTION_ARGS); -extern Datum tsrange_subdiff(PG_FUNCTION_ARGS); -extern Datum tstzrange_subdiff(PG_FUNCTION_ARGS); -extern Datum jsonb_object_keys(PG_FUNCTION_ARGS); -extern Datum jsonb_each_text(PG_FUNCTION_ARGS); -extern Datum mxid_age(PG_FUNCTION_ARGS); -extern Datum jsonb_extract_path_text(PG_FUNCTION_ARGS); -extern Datum acldefault_sql(PG_FUNCTION_ARGS); -extern Datum time_support(PG_FUNCTION_ARGS); -extern Datum json_object_field(PG_FUNCTION_ARGS); -extern Datum json_object_field_text(PG_FUNCTION_ARGS); -extern Datum json_array_element(PG_FUNCTION_ARGS); -extern Datum json_array_element_text(PG_FUNCTION_ARGS); -extern Datum json_extract_path(PG_FUNCTION_ARGS); -extern Datum brin_summarize_new_values(PG_FUNCTION_ARGS); -extern Datum json_extract_path_text(PG_FUNCTION_ARGS); -extern Datum pg_get_object_address(PG_FUNCTION_ARGS); -extern Datum json_array_elements(PG_FUNCTION_ARGS); -extern Datum json_array_length(PG_FUNCTION_ARGS); -extern Datum json_object_keys(PG_FUNCTION_ARGS); -extern Datum json_each(PG_FUNCTION_ARGS); -extern Datum json_each_text(PG_FUNCTION_ARGS); -extern Datum json_populate_record(PG_FUNCTION_ARGS); -extern Datum json_populate_recordset(PG_FUNCTION_ARGS); -extern Datum json_typeof(PG_FUNCTION_ARGS); -extern Datum json_array_elements_text(PG_FUNCTION_ARGS); -extern Datum ordered_set_transition(PG_FUNCTION_ARGS); -extern Datum ordered_set_transition_multi(PG_FUNCTION_ARGS); -extern Datum percentile_disc_final(PG_FUNCTION_ARGS); -extern Datum percentile_cont_float8_final(PG_FUNCTION_ARGS); -extern Datum percentile_cont_interval_final(PG_FUNCTION_ARGS); -extern Datum percentile_disc_multi_final(PG_FUNCTION_ARGS); -extern Datum percentile_cont_float8_multi_final(PG_FUNCTION_ARGS); -extern Datum percentile_cont_interval_multi_final(PG_FUNCTION_ARGS); -extern Datum mode_final(PG_FUNCTION_ARGS); -extern Datum hypothetical_rank_final(PG_FUNCTION_ARGS); -extern Datum hypothetical_percent_rank_final(PG_FUNCTION_ARGS); -extern Datum hypothetical_cume_dist_final(PG_FUNCTION_ARGS); -extern Datum hypothetical_dense_rank_final(PG_FUNCTION_ARGS); -extern Datum generate_series_int4_support(PG_FUNCTION_ARGS); -extern Datum generate_series_int8_support(PG_FUNCTION_ARGS); -extern Datum array_unnest_support(PG_FUNCTION_ARGS); -extern Datum gist_box_distance(PG_FUNCTION_ARGS); -extern Datum brin_summarize_range(PG_FUNCTION_ARGS); -extern Datum jsonpath_in(PG_FUNCTION_ARGS); -extern Datum jsonpath_recv(PG_FUNCTION_ARGS); -extern Datum jsonpath_out(PG_FUNCTION_ARGS); -extern Datum jsonpath_send(PG_FUNCTION_ARGS); -extern Datum jsonb_path_exists(PG_FUNCTION_ARGS); -extern Datum jsonb_path_query(PG_FUNCTION_ARGS); -extern Datum jsonb_path_query_array(PG_FUNCTION_ARGS); -extern Datum jsonb_path_query_first(PG_FUNCTION_ARGS); -extern Datum jsonb_path_match(PG_FUNCTION_ARGS); -extern Datum jsonb_path_exists_opr(PG_FUNCTION_ARGS); -extern Datum jsonb_path_match_opr(PG_FUNCTION_ARGS); -extern Datum brin_desummarize_range(PG_FUNCTION_ARGS); -extern Datum spg_quad_config(PG_FUNCTION_ARGS); -extern Datum spg_quad_choose(PG_FUNCTION_ARGS); -extern Datum spg_quad_picksplit(PG_FUNCTION_ARGS); -extern Datum spg_quad_inner_consistent(PG_FUNCTION_ARGS); -extern Datum spg_quad_leaf_consistent(PG_FUNCTION_ARGS); -extern Datum spg_kd_config(PG_FUNCTION_ARGS); -extern Datum spg_kd_choose(PG_FUNCTION_ARGS); -extern Datum spg_kd_picksplit(PG_FUNCTION_ARGS); -extern Datum spg_kd_inner_consistent(PG_FUNCTION_ARGS); -extern Datum spg_text_config(PG_FUNCTION_ARGS); -extern Datum spg_text_choose(PG_FUNCTION_ARGS); -extern Datum spg_text_picksplit(PG_FUNCTION_ARGS); -extern Datum spg_text_inner_consistent(PG_FUNCTION_ARGS); -extern Datum spg_text_leaf_consistent(PG_FUNCTION_ARGS); -extern Datum pg_sequence_last_value(PG_FUNCTION_ARGS); -extern Datum jsonb_ne(PG_FUNCTION_ARGS); -extern Datum jsonb_lt(PG_FUNCTION_ARGS); -extern Datum jsonb_gt(PG_FUNCTION_ARGS); -extern Datum jsonb_le(PG_FUNCTION_ARGS); -extern Datum jsonb_ge(PG_FUNCTION_ARGS); -extern Datum jsonb_eq(PG_FUNCTION_ARGS); -extern Datum jsonb_cmp(PG_FUNCTION_ARGS); -extern Datum jsonb_hash(PG_FUNCTION_ARGS); -extern Datum jsonb_contains(PG_FUNCTION_ARGS); -extern Datum jsonb_exists(PG_FUNCTION_ARGS); -extern Datum jsonb_exists_any(PG_FUNCTION_ARGS); -extern Datum jsonb_exists_all(PG_FUNCTION_ARGS); -extern Datum jsonb_contained(PG_FUNCTION_ARGS); -extern Datum array_agg_array_transfn(PG_FUNCTION_ARGS); -extern Datum array_agg_array_finalfn(PG_FUNCTION_ARGS); -extern Datum range_merge(PG_FUNCTION_ARGS); -extern Datum inet_merge(PG_FUNCTION_ARGS); -extern Datum boxes_bound_box(PG_FUNCTION_ARGS); -extern Datum inet_same_family(PG_FUNCTION_ARGS); -extern Datum binary_upgrade_set_record_init_privs(PG_FUNCTION_ARGS); -extern Datum regnamespacein(PG_FUNCTION_ARGS); -extern Datum regnamespaceout(PG_FUNCTION_ARGS); -extern Datum to_regnamespace(PG_FUNCTION_ARGS); -extern Datum regnamespacerecv(PG_FUNCTION_ARGS); -extern Datum regnamespacesend(PG_FUNCTION_ARGS); -extern Datum point_box(PG_FUNCTION_ARGS); -extern Datum regroleout(PG_FUNCTION_ARGS); -extern Datum to_regrole(PG_FUNCTION_ARGS); -extern Datum regrolerecv(PG_FUNCTION_ARGS); -extern Datum regrolesend(PG_FUNCTION_ARGS); -extern Datum regrolein(PG_FUNCTION_ARGS); -extern Datum pg_rotate_logfile(PG_FUNCTION_ARGS); -extern Datum pg_read_file(PG_FUNCTION_ARGS); -extern Datum binary_upgrade_set_missing_value(PG_FUNCTION_ARGS); -extern Datum brin_inclusion_opcinfo(PG_FUNCTION_ARGS); -extern Datum brin_inclusion_add_value(PG_FUNCTION_ARGS); -extern Datum brin_inclusion_consistent(PG_FUNCTION_ARGS); -extern Datum brin_inclusion_union(PG_FUNCTION_ARGS); -extern Datum macaddr8_in(PG_FUNCTION_ARGS); -extern Datum macaddr8_out(PG_FUNCTION_ARGS); -extern Datum macaddr8_trunc(PG_FUNCTION_ARGS); -extern Datum macaddr8_eq(PG_FUNCTION_ARGS); -extern Datum macaddr8_lt(PG_FUNCTION_ARGS); -extern Datum macaddr8_le(PG_FUNCTION_ARGS); -extern Datum macaddr8_gt(PG_FUNCTION_ARGS); -extern Datum macaddr8_ge(PG_FUNCTION_ARGS); -extern Datum macaddr8_ne(PG_FUNCTION_ARGS); -extern Datum macaddr8_cmp(PG_FUNCTION_ARGS); -extern Datum macaddr8_not(PG_FUNCTION_ARGS); -extern Datum macaddr8_and(PG_FUNCTION_ARGS); -extern Datum macaddr8_or(PG_FUNCTION_ARGS); -extern Datum macaddrtomacaddr8(PG_FUNCTION_ARGS); -extern Datum macaddr8tomacaddr(PG_FUNCTION_ARGS); -extern Datum macaddr8_set7bit(PG_FUNCTION_ARGS); -extern Datum in_range_int8_int8(PG_FUNCTION_ARGS); -extern Datum in_range_int4_int8(PG_FUNCTION_ARGS); -extern Datum in_range_int4_int4(PG_FUNCTION_ARGS); -extern Datum in_range_int4_int2(PG_FUNCTION_ARGS); -extern Datum in_range_int2_int8(PG_FUNCTION_ARGS); -extern Datum in_range_int2_int4(PG_FUNCTION_ARGS); -extern Datum in_range_int2_int2(PG_FUNCTION_ARGS); -extern Datum in_range_date_interval(PG_FUNCTION_ARGS); -extern Datum in_range_timestamp_interval(PG_FUNCTION_ARGS); -extern Datum in_range_timestamptz_interval(PG_FUNCTION_ARGS); -extern Datum in_range_interval_interval(PG_FUNCTION_ARGS); -extern Datum in_range_time_interval(PG_FUNCTION_ARGS); -extern Datum in_range_timetz_interval(PG_FUNCTION_ARGS); -extern Datum in_range_float8_float8(PG_FUNCTION_ARGS); -extern Datum in_range_float4_float8(PG_FUNCTION_ARGS); -extern Datum in_range_numeric_numeric(PG_FUNCTION_ARGS); -extern Datum pg_lsn_larger(PG_FUNCTION_ARGS); -extern Datum pg_lsn_smaller(PG_FUNCTION_ARGS); -extern Datum regcollationin(PG_FUNCTION_ARGS); -extern Datum regcollationout(PG_FUNCTION_ARGS); -extern Datum to_regcollation(PG_FUNCTION_ARGS); -extern Datum regcollationrecv(PG_FUNCTION_ARGS); -extern Datum regcollationsend(PG_FUNCTION_ARGS); -extern Datum ts_headline_jsonb_byid_opt(PG_FUNCTION_ARGS); -extern Datum ts_headline_jsonb_byid(PG_FUNCTION_ARGS); -extern Datum ts_headline_jsonb_opt(PG_FUNCTION_ARGS); -extern Datum ts_headline_jsonb(PG_FUNCTION_ARGS); -extern Datum ts_headline_json_byid_opt(PG_FUNCTION_ARGS); -extern Datum ts_headline_json_byid(PG_FUNCTION_ARGS); -extern Datum ts_headline_json_opt(PG_FUNCTION_ARGS); -extern Datum ts_headline_json(PG_FUNCTION_ARGS); -extern Datum jsonb_string_to_tsvector(PG_FUNCTION_ARGS); -extern Datum json_string_to_tsvector(PG_FUNCTION_ARGS); -extern Datum jsonb_string_to_tsvector_byid(PG_FUNCTION_ARGS); -extern Datum json_string_to_tsvector_byid(PG_FUNCTION_ARGS); -extern Datum jsonb_to_tsvector(PG_FUNCTION_ARGS); -extern Datum jsonb_to_tsvector_byid(PG_FUNCTION_ARGS); -extern Datum json_to_tsvector(PG_FUNCTION_ARGS); -extern Datum json_to_tsvector_byid(PG_FUNCTION_ARGS); -extern Datum pg_copy_physical_replication_slot_a(PG_FUNCTION_ARGS); -extern Datum pg_copy_physical_replication_slot_b(PG_FUNCTION_ARGS); -extern Datum pg_copy_logical_replication_slot_a(PG_FUNCTION_ARGS); -extern Datum pg_copy_logical_replication_slot_b(PG_FUNCTION_ARGS); -extern Datum pg_copy_logical_replication_slot_c(PG_FUNCTION_ARGS); -extern Datum anycompatiblemultirange_in(PG_FUNCTION_ARGS); -extern Datum anycompatiblemultirange_out(PG_FUNCTION_ARGS); -extern Datum range_merge_from_multirange(PG_FUNCTION_ARGS); -extern Datum anymultirange_in(PG_FUNCTION_ARGS); -extern Datum anymultirange_out(PG_FUNCTION_ARGS); -extern Datum multirange_in(PG_FUNCTION_ARGS); -extern Datum multirange_out(PG_FUNCTION_ARGS); -extern Datum multirange_recv(PG_FUNCTION_ARGS); -extern Datum multirange_send(PG_FUNCTION_ARGS); -extern Datum multirange_lower(PG_FUNCTION_ARGS); -extern Datum multirange_upper(PG_FUNCTION_ARGS); -extern Datum multirange_empty(PG_FUNCTION_ARGS); -extern Datum multirange_lower_inc(PG_FUNCTION_ARGS); -extern Datum multirange_upper_inc(PG_FUNCTION_ARGS); -extern Datum multirange_lower_inf(PG_FUNCTION_ARGS); -extern Datum multirange_upper_inf(PG_FUNCTION_ARGS); -extern Datum multirange_typanalyze(PG_FUNCTION_ARGS); -extern Datum multirangesel(PG_FUNCTION_ARGS); -extern Datum multirange_eq(PG_FUNCTION_ARGS); -extern Datum multirange_ne(PG_FUNCTION_ARGS); -extern Datum range_overlaps_multirange(PG_FUNCTION_ARGS); -extern Datum multirange_overlaps_range(PG_FUNCTION_ARGS); -extern Datum multirange_overlaps_multirange(PG_FUNCTION_ARGS); -extern Datum multirange_contains_elem(PG_FUNCTION_ARGS); -extern Datum multirange_contains_range(PG_FUNCTION_ARGS); -extern Datum multirange_contains_multirange(PG_FUNCTION_ARGS); -extern Datum elem_contained_by_multirange(PG_FUNCTION_ARGS); -extern Datum range_contained_by_multirange(PG_FUNCTION_ARGS); -extern Datum multirange_contained_by_multirange(PG_FUNCTION_ARGS); -extern Datum range_adjacent_multirange(PG_FUNCTION_ARGS); -extern Datum multirange_adjacent_multirange(PG_FUNCTION_ARGS); -extern Datum multirange_adjacent_range(PG_FUNCTION_ARGS); -extern Datum range_before_multirange(PG_FUNCTION_ARGS); -extern Datum multirange_before_range(PG_FUNCTION_ARGS); -extern Datum multirange_before_multirange(PG_FUNCTION_ARGS); -extern Datum range_after_multirange(PG_FUNCTION_ARGS); -extern Datum multirange_after_range(PG_FUNCTION_ARGS); -extern Datum multirange_after_multirange(PG_FUNCTION_ARGS); -extern Datum range_overleft_multirange(PG_FUNCTION_ARGS); -extern Datum multirange_overleft_range(PG_FUNCTION_ARGS); -extern Datum multirange_overleft_multirange(PG_FUNCTION_ARGS); -extern Datum range_overright_multirange(PG_FUNCTION_ARGS); -extern Datum multirange_overright_range(PG_FUNCTION_ARGS); -extern Datum multirange_overright_multirange(PG_FUNCTION_ARGS); -extern Datum multirange_union(PG_FUNCTION_ARGS); -extern Datum multirange_minus(PG_FUNCTION_ARGS); -extern Datum multirange_intersect(PG_FUNCTION_ARGS); -extern Datum multirange_cmp(PG_FUNCTION_ARGS); -extern Datum multirange_lt(PG_FUNCTION_ARGS); -extern Datum multirange_le(PG_FUNCTION_ARGS); -extern Datum multirange_ge(PG_FUNCTION_ARGS); -extern Datum multirange_gt(PG_FUNCTION_ARGS); -extern Datum hash_multirange(PG_FUNCTION_ARGS); -extern Datum hash_multirange_extended(PG_FUNCTION_ARGS); -extern Datum multirange_constructor0(PG_FUNCTION_ARGS); -extern Datum multirange_constructor1(PG_FUNCTION_ARGS); -extern Datum multirange_constructor2(PG_FUNCTION_ARGS); -extern Datum range_agg_transfn(PG_FUNCTION_ARGS); -extern Datum range_agg_finalfn(PG_FUNCTION_ARGS); -extern Datum unicode_normalize_func(PG_FUNCTION_ARGS); -extern Datum unicode_is_normalized(PG_FUNCTION_ARGS); -extern Datum multirange_intersect_agg_transfn(PG_FUNCTION_ARGS); -extern Datum binary_upgrade_set_next_multirange_pg_type_oid(PG_FUNCTION_ARGS); -extern Datum binary_upgrade_set_next_multirange_array_pg_type_oid(PG_FUNCTION_ARGS); -extern Datum range_intersect_agg_transfn(PG_FUNCTION_ARGS); -extern Datum range_contains_multirange(PG_FUNCTION_ARGS); -extern Datum multirange_contained_by_range(PG_FUNCTION_ARGS); -extern Datum pg_log_backend_memory_contexts(PG_FUNCTION_ARGS); -extern Datum binary_upgrade_set_next_heap_relfilenode(PG_FUNCTION_ARGS); -extern Datum binary_upgrade_set_next_index_relfilenode(PG_FUNCTION_ARGS); -extern Datum binary_upgrade_set_next_toast_relfilenode(PG_FUNCTION_ARGS); -extern Datum binary_upgrade_set_next_pg_tablespace_oid(PG_FUNCTION_ARGS); -extern Datum pg_event_trigger_table_rewrite_oid(PG_FUNCTION_ARGS); -extern Datum pg_event_trigger_table_rewrite_reason(PG_FUNCTION_ARGS); -extern Datum pg_event_trigger_ddl_commands(PG_FUNCTION_ARGS); -extern Datum brin_bloom_opcinfo(PG_FUNCTION_ARGS); -extern Datum brin_bloom_add_value(PG_FUNCTION_ARGS); -extern Datum brin_bloom_consistent(PG_FUNCTION_ARGS); -extern Datum brin_bloom_union(PG_FUNCTION_ARGS); -extern Datum brin_bloom_options(PG_FUNCTION_ARGS); -extern Datum brin_bloom_summary_in(PG_FUNCTION_ARGS); -extern Datum brin_bloom_summary_out(PG_FUNCTION_ARGS); -extern Datum brin_bloom_summary_recv(PG_FUNCTION_ARGS); -extern Datum brin_bloom_summary_send(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_opcinfo(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_add_value(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_consistent(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_union(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_options(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_distance_int2(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_distance_int4(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_distance_int8(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_distance_float4(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_distance_float8(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_distance_numeric(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_distance_tid(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_distance_uuid(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_distance_date(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_distance_time(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_distance_interval(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_distance_timetz(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_distance_pg_lsn(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_distance_macaddr(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_distance_macaddr8(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_distance_inet(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_distance_timestamp(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_summary_in(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_summary_out(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_summary_recv(PG_FUNCTION_ARGS); -extern Datum brin_minmax_multi_summary_send(PG_FUNCTION_ARGS); -extern Datum phraseto_tsquery(PG_FUNCTION_ARGS); -extern Datum tsquery_phrase(PG_FUNCTION_ARGS); -extern Datum tsquery_phrase_distance(PG_FUNCTION_ARGS); -extern Datum phraseto_tsquery_byid(PG_FUNCTION_ARGS); -extern Datum websearch_to_tsquery_byid(PG_FUNCTION_ARGS); -extern Datum websearch_to_tsquery(PG_FUNCTION_ARGS); -extern Datum spg_bbox_quad_config(PG_FUNCTION_ARGS); -extern Datum spg_poly_quad_compress(PG_FUNCTION_ARGS); -extern Datum spg_box_quad_config(PG_FUNCTION_ARGS); -extern Datum spg_box_quad_choose(PG_FUNCTION_ARGS); -extern Datum spg_box_quad_picksplit(PG_FUNCTION_ARGS); -extern Datum spg_box_quad_inner_consistent(PG_FUNCTION_ARGS); -extern Datum spg_box_quad_leaf_consistent(PG_FUNCTION_ARGS); -extern Datum pg_mcv_list_in(PG_FUNCTION_ARGS); -extern Datum pg_mcv_list_out(PG_FUNCTION_ARGS); -extern Datum pg_mcv_list_recv(PG_FUNCTION_ARGS); -extern Datum pg_mcv_list_send(PG_FUNCTION_ARGS); -extern Datum pg_lsn_pli(PG_FUNCTION_ARGS); -extern Datum pg_lsn_mii(PG_FUNCTION_ARGS); -extern Datum satisfies_hash_partition(PG_FUNCTION_ARGS); -extern Datum pg_ls_tmpdir_noargs(PG_FUNCTION_ARGS); -extern Datum pg_ls_tmpdir_1arg(PG_FUNCTION_ARGS); -extern Datum pg_ls_archive_statusdir(PG_FUNCTION_ARGS); -extern Datum network_sortsupport(PG_FUNCTION_ARGS); -extern Datum xid8lt(PG_FUNCTION_ARGS); -extern Datum xid8gt(PG_FUNCTION_ARGS); -extern Datum xid8le(PG_FUNCTION_ARGS); -extern Datum xid8ge(PG_FUNCTION_ARGS); -extern Datum matchingsel(PG_FUNCTION_ARGS); -extern Datum matchingjoinsel(PG_FUNCTION_ARGS); -extern Datum numeric_min_scale(PG_FUNCTION_ARGS); -extern Datum numeric_trim_scale(PG_FUNCTION_ARGS); -extern Datum int4gcd(PG_FUNCTION_ARGS); -extern Datum int8gcd(PG_FUNCTION_ARGS); -extern Datum int4lcm(PG_FUNCTION_ARGS); -extern Datum int8lcm(PG_FUNCTION_ARGS); -extern Datum numeric_gcd(PG_FUNCTION_ARGS); -extern Datum numeric_lcm(PG_FUNCTION_ARGS); -extern Datum btvarstrequalimage(PG_FUNCTION_ARGS); -extern Datum btequalimage(PG_FUNCTION_ARGS); -extern Datum pg_get_shmem_allocations(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_ins_since_vacuum(PG_FUNCTION_ARGS); -extern Datum jsonb_set_lax(PG_FUNCTION_ARGS); -extern Datum xid8in(PG_FUNCTION_ARGS); -extern Datum xid8toxid(PG_FUNCTION_ARGS); -extern Datum xid8out(PG_FUNCTION_ARGS); -extern Datum xid8recv(PG_FUNCTION_ARGS); -extern Datum xid8send(PG_FUNCTION_ARGS); -extern Datum xid8eq(PG_FUNCTION_ARGS); -extern Datum xid8ne(PG_FUNCTION_ARGS); -extern Datum anycompatible_in(PG_FUNCTION_ARGS); -extern Datum anycompatible_out(PG_FUNCTION_ARGS); -extern Datum anycompatiblearray_in(PG_FUNCTION_ARGS); -extern Datum anycompatiblearray_out(PG_FUNCTION_ARGS); -extern Datum anycompatiblearray_recv(PG_FUNCTION_ARGS); -extern Datum anycompatiblearray_send(PG_FUNCTION_ARGS); -extern Datum anycompatiblenonarray_in(PG_FUNCTION_ARGS); -extern Datum anycompatiblenonarray_out(PG_FUNCTION_ARGS); -extern Datum anycompatiblerange_in(PG_FUNCTION_ARGS); -extern Datum anycompatiblerange_out(PG_FUNCTION_ARGS); -extern Datum xid8cmp(PG_FUNCTION_ARGS); -extern Datum xid8_larger(PG_FUNCTION_ARGS); -extern Datum xid8_smaller(PG_FUNCTION_ARGS); -extern Datum pg_replication_origin_create(PG_FUNCTION_ARGS); -extern Datum pg_replication_origin_drop(PG_FUNCTION_ARGS); -extern Datum pg_replication_origin_oid(PG_FUNCTION_ARGS); -extern Datum pg_replication_origin_session_setup(PG_FUNCTION_ARGS); -extern Datum pg_replication_origin_session_reset(PG_FUNCTION_ARGS); -extern Datum pg_replication_origin_session_is_setup(PG_FUNCTION_ARGS); -extern Datum pg_replication_origin_session_progress(PG_FUNCTION_ARGS); -extern Datum pg_replication_origin_xact_setup(PG_FUNCTION_ARGS); -extern Datum pg_replication_origin_xact_reset(PG_FUNCTION_ARGS); -extern Datum pg_replication_origin_advance(PG_FUNCTION_ARGS); -extern Datum pg_replication_origin_progress(PG_FUNCTION_ARGS); -extern Datum pg_show_replication_origin_status(PG_FUNCTION_ARGS); -extern Datum jsonb_subscript_handler(PG_FUNCTION_ARGS); -extern Datum numeric_pg_lsn(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_subscription(PG_FUNCTION_ARGS); -extern Datum pg_get_publication_tables(PG_FUNCTION_ARGS); -extern Datum pg_get_replica_identity_index(PG_FUNCTION_ARGS); -extern Datum pg_relation_is_publishable(PG_FUNCTION_ARGS); -extern Datum multirange_gist_consistent(PG_FUNCTION_ARGS); -extern Datum multirange_gist_compress(PG_FUNCTION_ARGS); -extern Datum pg_get_catalog_foreign_keys(PG_FUNCTION_ARGS); -extern Datum text_to_table(PG_FUNCTION_ARGS); -extern Datum text_to_table_null(PG_FUNCTION_ARGS); -extern Datum bit_bit_count(PG_FUNCTION_ARGS); -extern Datum bytea_bit_count(PG_FUNCTION_ARGS); -extern Datum pg_xact_commit_timestamp_origin(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_replication_slot(PG_FUNCTION_ARGS); -extern Datum pg_stat_reset_replication_slot(PG_FUNCTION_ARGS); -extern Datum trim_array(PG_FUNCTION_ARGS); -extern Datum pg_get_statisticsobjdef_expressions(PG_FUNCTION_ARGS); -extern Datum pg_get_statisticsobjdef_columns(PG_FUNCTION_ARGS); -extern Datum timestamp_bin(PG_FUNCTION_ARGS); -extern Datum timestamptz_bin(PG_FUNCTION_ARGS); -extern Datum array_subscript_handler(PG_FUNCTION_ARGS); -extern Datum raw_array_subscript_handler(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_session_time(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_active_time(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_idle_in_transaction_time(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_sessions(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_sessions_abandoned(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_sessions_fatal(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_db_sessions_killed(PG_FUNCTION_ARGS); -extern Datum hash_record(PG_FUNCTION_ARGS); -extern Datum hash_record_extended(PG_FUNCTION_ARGS); -extern Datum bytealtrim(PG_FUNCTION_ARGS); -extern Datum byteartrim(PG_FUNCTION_ARGS); -extern Datum pg_get_function_sqlbody(PG_FUNCTION_ARGS); -extern Datum unistr(PG_FUNCTION_ARGS); -extern Datum extract_date(PG_FUNCTION_ARGS); -extern Datum extract_time(PG_FUNCTION_ARGS); -extern Datum extract_timetz(PG_FUNCTION_ARGS); -extern Datum extract_timestamp(PG_FUNCTION_ARGS); -extern Datum extract_timestamptz(PG_FUNCTION_ARGS); -extern Datum extract_interval(PG_FUNCTION_ARGS); -extern Datum has_parameter_privilege_name_name(PG_FUNCTION_ARGS); -extern Datum has_parameter_privilege_id_name(PG_FUNCTION_ARGS); -extern Datum has_parameter_privilege_name(PG_FUNCTION_ARGS); -extern Datum pg_get_wal_resource_managers(PG_FUNCTION_ARGS); -extern Datum multirange_agg_transfn(PG_FUNCTION_ARGS); -extern Datum pg_stat_have_stats(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_subscription_stats(PG_FUNCTION_ARGS); -extern Datum pg_stat_reset_subscription_stats(PG_FUNCTION_ARGS); -extern Datum window_row_number_support(PG_FUNCTION_ARGS); -extern Datum window_rank_support(PG_FUNCTION_ARGS); -extern Datum window_dense_rank_support(PG_FUNCTION_ARGS); -extern Datum int8inc_support(PG_FUNCTION_ARGS); -extern Datum pg_settings_get_flags(PG_FUNCTION_ARGS); -extern Datum pg_stop_making_pinned_objects(PG_FUNCTION_ARGS); -extern Datum text_starts_with_support(PG_FUNCTION_ARGS); -extern Datum pg_stat_get_recovery_prefetch(PG_FUNCTION_ARGS); -extern Datum pg_database_collation_actual_version(PG_FUNCTION_ARGS); -extern Datum pg_ident_file_mappings(PG_FUNCTION_ARGS); -extern Datum textregexreplace_extended(PG_FUNCTION_ARGS); -extern Datum textregexreplace_extended_no_flags(PG_FUNCTION_ARGS); -extern Datum textregexreplace_extended_no_n(PG_FUNCTION_ARGS); -extern Datum regexp_count_no_start(PG_FUNCTION_ARGS); -extern Datum regexp_count_no_flags(PG_FUNCTION_ARGS); -extern Datum regexp_count(PG_FUNCTION_ARGS); -extern Datum regexp_instr_no_start(PG_FUNCTION_ARGS); -extern Datum regexp_instr_no_n(PG_FUNCTION_ARGS); -extern Datum regexp_instr_no_endoption(PG_FUNCTION_ARGS); -extern Datum regexp_instr_no_flags(PG_FUNCTION_ARGS); -extern Datum regexp_instr_no_subexpr(PG_FUNCTION_ARGS); -extern Datum regexp_instr(PG_FUNCTION_ARGS); -extern Datum regexp_like_no_flags(PG_FUNCTION_ARGS); -extern Datum regexp_like(PG_FUNCTION_ARGS); -extern Datum regexp_substr_no_start(PG_FUNCTION_ARGS); -extern Datum regexp_substr_no_n(PG_FUNCTION_ARGS); -extern Datum regexp_substr_no_flags(PG_FUNCTION_ARGS); -extern Datum regexp_substr_no_subexpr(PG_FUNCTION_ARGS); -extern Datum regexp_substr(PG_FUNCTION_ARGS); -extern Datum pg_ls_logicalsnapdir(PG_FUNCTION_ARGS); -extern Datum pg_ls_logicalmapdir(PG_FUNCTION_ARGS); -extern Datum pg_ls_replslotdir(PG_FUNCTION_ARGS); - -#endif /* FMGRPROTOS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/fmgrtab.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/fmgrtab.h deleted file mode 100644 index 0a5993765..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/fmgrtab.h +++ /dev/null @@ -1,49 +0,0 @@ -/*------------------------------------------------------------------------- - * - * fmgrtab.h - * The function manager's table of internal functions. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/fmgrtab.h - * - *------------------------------------------------------------------------- - */ -#ifndef FMGRTAB_H -#define FMGRTAB_H - -#include "access/transam.h" -#include "fmgr.h" - - -/* - * This table stores info about all the built-in functions (ie, functions - * that are compiled into the Postgres executable). - */ - -typedef struct -{ - Oid foid; /* OID of the function */ - short nargs; /* 0..FUNC_MAX_ARGS, or -1 if variable count */ - bool strict; /* T if function is "strict" */ - bool retset; /* T if function returns a set */ - const char *funcName; /* C name of the function */ - PGFunction func; /* pointer to compiled function */ -} FmgrBuiltin; - -extern PGDLLIMPORT const FmgrBuiltin fmgr_builtins[]; - -extern PGDLLIMPORT const int fmgr_nbuiltins; /* number of entries in table */ - -extern PGDLLIMPORT const Oid fmgr_last_builtin_oid; /* highest function OID in - * table */ - -/* - * Mapping from a builtin function's OID to its index in the fmgr_builtins - * array. This is indexed from 0 through fmgr_last_builtin_oid. - */ -#define InvalidOidBuiltinMapping PG_UINT16_MAX -extern PGDLLIMPORT const uint16 fmgr_builtin_oid_index[]; - -#endif /* FMGRTAB_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/guc.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/guc.h deleted file mode 100644 index 1bec4c234..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/guc.h +++ /dev/null @@ -1,469 +0,0 @@ -/*-------------------------------------------------------------------- - * guc.h - * - * External declarations pertaining to backend/utils/misc/guc.c and - * backend/utils/misc/guc-file.l - * - * Copyright (c) 2000-2022, PostgreSQL Global Development Group - * Written by Peter Eisentraut . - * - * src/include/utils/guc.h - *-------------------------------------------------------------------- - */ -#ifndef GUC_H -#define GUC_H - -#include "nodes/parsenodes.h" -#include "tcop/dest.h" -#include "utils/array.h" - - -/* upper limit for GUC variables measured in kilobytes of memory */ -/* note that various places assume the byte size fits in a "long" variable */ -#if SIZEOF_SIZE_T > 4 && SIZEOF_LONG > 4 -#define MAX_KILOBYTES INT_MAX -#else -#define MAX_KILOBYTES (INT_MAX / 1024) -#endif - -/* - * Automatic configuration file name for ALTER SYSTEM. - * This file will be used to store values of configuration parameters - * set by ALTER SYSTEM command. - */ -#define PG_AUTOCONF_FILENAME "postgresql.auto.conf" - -/* - * Certain options can only be set at certain times. The rules are - * like this: - * - * INTERNAL options cannot be set by the user at all, but only through - * internal processes ("server_version" is an example). These are GUC - * variables only so they can be shown by SHOW, etc. - * - * POSTMASTER options can only be set when the postmaster starts, - * either from the configuration file or the command line. - * - * SIGHUP options can only be set at postmaster startup or by changing - * the configuration file and sending the HUP signal to the postmaster - * or a backend process. (Notice that the signal receipt will not be - * evaluated immediately. The postmaster and the backend check it at a - * certain point in their main loop. It's safer to wait than to read a - * file asynchronously.) - * - * BACKEND and SU_BACKEND options can only be set at postmaster startup, - * from the configuration file, or by client request in the connection - * startup packet (e.g., from libpq's PGOPTIONS variable). SU_BACKEND - * options can be set from the startup packet only when the user is a - * superuser. Furthermore, an already-started backend will ignore changes - * to such an option in the configuration file. The idea is that these - * options are fixed for a given backend once it's started, but they can - * vary across backends. - * - * SUSET options can be set at postmaster startup, with the SIGHUP - * mechanism, or from the startup packet or SQL if you're a superuser. - * - * USERSET options can be set by anyone any time. - */ -typedef enum -{ - PGC_INTERNAL, - PGC_POSTMASTER, - PGC_SIGHUP, - PGC_SU_BACKEND, - PGC_BACKEND, - PGC_SUSET, - PGC_USERSET -} GucContext; - -/* - * The following type records the source of the current setting. A - * new setting can only take effect if the previous setting had the - * same or lower level. (E.g, changing the config file doesn't - * override the postmaster command line.) Tracking the source allows us - * to process sources in any convenient order without affecting results. - * Sources <= PGC_S_OVERRIDE will set the default used by RESET, as well - * as the current value. - * - * PGC_S_INTERACTIVE isn't actually a source value, but is the - * dividing line between "interactive" and "non-interactive" sources for - * error reporting purposes. - * - * PGC_S_TEST is used when testing values to be used later. For example, - * ALTER DATABASE/ROLE tests proposed per-database or per-user defaults this - * way, and CREATE FUNCTION tests proposed function SET clauses this way. - * This is an interactive case, but it needs its own source value because - * some assign hooks need to make different validity checks in this case. - * In particular, references to nonexistent database objects generally - * shouldn't throw hard errors in this case, at most NOTICEs, since the - * objects might exist by the time the setting is used for real. - * - * When setting the value of a non-compile-time-constant PGC_INTERNAL option, - * source == PGC_S_DYNAMIC_DEFAULT should typically be used so that the value - * will show as "default" in pg_settings. If there is a specific reason not - * to want that, use source == PGC_S_OVERRIDE. - * - * NB: see GucSource_Names in guc.c if you change this. - */ -typedef enum -{ - PGC_S_DEFAULT, /* hard-wired default ("boot_val") */ - PGC_S_DYNAMIC_DEFAULT, /* default computed during initialization */ - PGC_S_ENV_VAR, /* postmaster environment variable */ - PGC_S_FILE, /* postgresql.conf */ - PGC_S_ARGV, /* postmaster command line */ - PGC_S_GLOBAL, /* global in-database setting */ - PGC_S_DATABASE, /* per-database setting */ - PGC_S_USER, /* per-user setting */ - PGC_S_DATABASE_USER, /* per-user-and-database setting */ - PGC_S_CLIENT, /* from client connection request */ - PGC_S_OVERRIDE, /* special case to forcibly set default */ - PGC_S_INTERACTIVE, /* dividing line for error reporting */ - PGC_S_TEST, /* test per-database or per-user setting */ - PGC_S_SESSION /* SET command */ -} GucSource; - -/* - * Parsing the configuration file(s) will return a list of name-value pairs - * with source location info. We also abuse this data structure to carry - * error reports about the config files. An entry reporting an error will - * have errmsg != NULL, and might have NULLs for name, value, and/or filename. - * - * If "ignore" is true, don't attempt to apply the item (it might be an error - * report, or an item we determined to be duplicate). "applied" is set true - * if we successfully applied, or could have applied, the setting. - */ -typedef struct ConfigVariable -{ - char *name; - char *value; - char *errmsg; - char *filename; - int sourceline; - bool ignore; - bool applied; - struct ConfigVariable *next; -} ConfigVariable; - -extern bool ParseConfigFile(const char *config_file, bool strict, - const char *calling_file, int calling_lineno, - int depth, int elevel, - ConfigVariable **head_p, ConfigVariable **tail_p); -extern bool ParseConfigFp(FILE *fp, const char *config_file, - int depth, int elevel, - ConfigVariable **head_p, ConfigVariable **tail_p); -extern bool ParseConfigDirectory(const char *includedir, - const char *calling_file, int calling_lineno, - int depth, int elevel, - ConfigVariable **head_p, - ConfigVariable **tail_p); -extern void FreeConfigVariables(ConfigVariable *list); -extern char *DeescapeQuotedString(const char *s); - -/* - * The possible values of an enum variable are specified by an array of - * name-value pairs. The "hidden" flag means the value is accepted but - * won't be displayed when guc.c is asked for a list of acceptable values. - */ -struct config_enum_entry -{ - const char *name; - int val; - bool hidden; -}; - -/* - * Signatures for per-variable check/assign/show hook functions - */ -typedef bool (*GucBoolCheckHook) (bool *newval, void **extra, GucSource source); -typedef bool (*GucIntCheckHook) (int *newval, void **extra, GucSource source); -typedef bool (*GucRealCheckHook) (double *newval, void **extra, GucSource source); -typedef bool (*GucStringCheckHook) (char **newval, void **extra, GucSource source); -typedef bool (*GucEnumCheckHook) (int *newval, void **extra, GucSource source); - -typedef void (*GucBoolAssignHook) (bool newval, void *extra); -typedef void (*GucIntAssignHook) (int newval, void *extra); -typedef void (*GucRealAssignHook) (double newval, void *extra); -typedef void (*GucStringAssignHook) (const char *newval, void *extra); -typedef void (*GucEnumAssignHook) (int newval, void *extra); - -typedef const char *(*GucShowHook) (void); - -/* - * Miscellaneous - */ -typedef enum -{ - /* Types of set_config_option actions */ - GUC_ACTION_SET, /* regular SET command */ - GUC_ACTION_LOCAL, /* SET LOCAL command */ - GUC_ACTION_SAVE /* function SET option, or temp assignment */ -} GucAction; - -#define GUC_QUALIFIER_SEPARATOR '.' - -/* - * bit values in "flags" of a GUC variable - */ -#define GUC_LIST_INPUT 0x0001 /* input can be list format */ -#define GUC_LIST_QUOTE 0x0002 /* double-quote list elements */ -#define GUC_NO_SHOW_ALL 0x0004 /* exclude from SHOW ALL */ -#define GUC_NO_RESET_ALL 0x0008 /* exclude from RESET ALL */ -#define GUC_REPORT 0x0010 /* auto-report changes to client */ -#define GUC_NOT_IN_SAMPLE 0x0020 /* not in postgresql.conf.sample */ -#define GUC_DISALLOW_IN_FILE 0x0040 /* can't set in postgresql.conf */ -#define GUC_CUSTOM_PLACEHOLDER 0x0080 /* placeholder for custom variable */ -#define GUC_SUPERUSER_ONLY 0x0100 /* show only to superusers */ -#define GUC_IS_NAME 0x0200 /* limit string to NAMEDATALEN-1 */ -#define GUC_NOT_WHILE_SEC_REST 0x0400 /* can't set if security restricted */ -#define GUC_DISALLOW_IN_AUTO_FILE 0x0800 /* can't set in - * PG_AUTOCONF_FILENAME */ - -#define GUC_UNIT_KB 0x1000 /* value is in kilobytes */ -#define GUC_UNIT_BLOCKS 0x2000 /* value is in blocks */ -#define GUC_UNIT_XBLOCKS 0x3000 /* value is in xlog blocks */ -#define GUC_UNIT_MB 0x4000 /* value is in megabytes */ -#define GUC_UNIT_BYTE 0x8000 /* value is in bytes */ -#define GUC_UNIT_MEMORY 0xF000 /* mask for size-related units */ - -#define GUC_UNIT_MS 0x10000 /* value is in milliseconds */ -#define GUC_UNIT_S 0x20000 /* value is in seconds */ -#define GUC_UNIT_MIN 0x30000 /* value is in minutes */ -#define GUC_UNIT_TIME 0xF0000 /* mask for time-related units */ - -#define GUC_EXPLAIN 0x100000 /* include in explain */ - -/* - * GUC_RUNTIME_COMPUTED is intended for runtime-computed GUCs that are only - * available via 'postgres -C' if the server is not running. - */ -#define GUC_RUNTIME_COMPUTED 0x200000 - -#define GUC_UNIT (GUC_UNIT_MEMORY | GUC_UNIT_TIME) - - -/* GUC vars that are actually declared in guc.c, rather than elsewhere */ -extern PGDLLIMPORT bool Debug_print_plan; -extern PGDLLIMPORT bool Debug_print_parse; -extern PGDLLIMPORT bool Debug_print_rewritten; -extern PGDLLIMPORT bool Debug_pretty_print; - -extern PGDLLIMPORT bool log_parser_stats; -extern PGDLLIMPORT bool log_planner_stats; -extern PGDLLIMPORT bool log_executor_stats; -extern PGDLLIMPORT bool log_statement_stats; -extern PGDLLIMPORT bool log_btree_build_stats; - -extern PGDLLIMPORT __thread bool check_function_bodies; -extern PGDLLIMPORT bool session_auth_is_superuser; - -extern PGDLLIMPORT bool log_duration; -extern PGDLLIMPORT int log_parameter_max_length; -extern PGDLLIMPORT int log_parameter_max_length_on_error; -extern PGDLLIMPORT int log_min_error_statement; -extern PGDLLIMPORT __thread int log_min_messages; -extern PGDLLIMPORT __thread int client_min_messages; -extern PGDLLIMPORT int log_min_duration_sample; -extern PGDLLIMPORT int log_min_duration_statement; -extern PGDLLIMPORT int log_temp_files; -extern PGDLLIMPORT double log_statement_sample_rate; -extern PGDLLIMPORT double log_xact_sample_rate; -extern PGDLLIMPORT __thread char *backtrace_functions; -extern PGDLLIMPORT __thread char *backtrace_symbol_list; - -extern PGDLLIMPORT int temp_file_limit; - -extern PGDLLIMPORT int num_temp_buffers; - -extern PGDLLIMPORT char *cluster_name; -extern PGDLLIMPORT char *ConfigFileName; -extern PGDLLIMPORT char *HbaFileName; -extern PGDLLIMPORT char *IdentFileName; -extern PGDLLIMPORT char *external_pid_file; - -extern PGDLLIMPORT char *application_name; - -extern PGDLLIMPORT int tcp_keepalives_idle; -extern PGDLLIMPORT int tcp_keepalives_interval; -extern PGDLLIMPORT int tcp_keepalives_count; -extern PGDLLIMPORT int tcp_user_timeout; - -#ifdef TRACE_SORT -extern PGDLLIMPORT bool trace_sort; -#endif - -/* - * Functions exported by guc.c - */ -extern void SetConfigOption(const char *name, const char *value, - GucContext context, GucSource source); - -extern void DefineCustomBoolVariable(const char *name, - const char *short_desc, - const char *long_desc, - bool *valueAddr, - bool bootValue, - GucContext context, - int flags, - GucBoolCheckHook check_hook, - GucBoolAssignHook assign_hook, - GucShowHook show_hook); - -extern void DefineCustomIntVariable(const char *name, - const char *short_desc, - const char *long_desc, - int *valueAddr, - int bootValue, - int minValue, - int maxValue, - GucContext context, - int flags, - GucIntCheckHook check_hook, - GucIntAssignHook assign_hook, - GucShowHook show_hook); - -extern void DefineCustomRealVariable(const char *name, - const char *short_desc, - const char *long_desc, - double *valueAddr, - double bootValue, - double minValue, - double maxValue, - GucContext context, - int flags, - GucRealCheckHook check_hook, - GucRealAssignHook assign_hook, - GucShowHook show_hook); - -extern void DefineCustomStringVariable(const char *name, - const char *short_desc, - const char *long_desc, - char **valueAddr, - const char *bootValue, - GucContext context, - int flags, - GucStringCheckHook check_hook, - GucStringAssignHook assign_hook, - GucShowHook show_hook); - -extern void DefineCustomEnumVariable(const char *name, - const char *short_desc, - const char *long_desc, - int *valueAddr, - int bootValue, - const struct config_enum_entry *options, - GucContext context, - int flags, - GucEnumCheckHook check_hook, - GucEnumAssignHook assign_hook, - GucShowHook show_hook); - -extern void MarkGUCPrefixReserved(const char *className); - -/* old name for MarkGUCPrefixReserved, for backwards compatibility: */ -#define EmitWarningsOnPlaceholders(className) MarkGUCPrefixReserved(className) - -extern const char *GetConfigOption(const char *name, bool missing_ok, - bool restrict_privileged); -extern const char *GetConfigOptionResetString(const char *name); -extern int GetConfigOptionFlags(const char *name, bool missing_ok); -extern void ProcessConfigFile(GucContext context); -extern char *convert_GUC_name_for_parameter_acl(const char *name); -extern bool check_GUC_name_for_parameter_acl(const char *name); -extern void InitializeGUCOptions(void); -extern void InitializeWalConsistencyChecking(void); -extern bool SelectConfigFiles(const char *userDoption, const char *progname); -extern void ResetAllOptions(void); -extern void AtStart_GUC(void); -extern int NewGUCNestLevel(void); -extern void AtEOXact_GUC(bool isCommit, int nestLevel); -extern void BeginReportingGUCOptions(void); -extern void ReportChangedGUCOptions(void); -extern void ParseLongOption(const char *string, char **name, char **value); -extern bool parse_int(const char *value, int *result, int flags, - const char **hintmsg); -extern bool parse_real(const char *value, double *result, int flags, - const char **hintmsg); -extern int set_config_option(const char *name, const char *value, - GucContext context, GucSource source, - GucAction action, bool changeVal, int elevel, - bool is_reload); -extern int set_config_option_ext(const char *name, const char *value, - GucContext context, GucSource source, - Oid srole, - GucAction action, bool changeVal, int elevel, - bool is_reload); -extern void AlterSystemSetConfigFile(AlterSystemStmt *altersysstmt); -extern char *GetConfigOptionByName(const char *name, const char **varname, - bool missing_ok); -extern void GetConfigOptionByNum(int varnum, const char **values, bool *noshow); -extern int GetNumConfigOptions(void); - -extern void SetPGVariable(const char *name, List *args, bool is_local); -extern void GetPGVariable(const char *name, DestReceiver *dest); -extern TupleDesc GetPGVariableResultDesc(const char *name); - -extern void ExecSetVariableStmt(VariableSetStmt *stmt, bool isTopLevel); -extern char *ExtractSetVariableArgs(VariableSetStmt *stmt); - -extern void ProcessGUCArray(ArrayType *array, - GucContext context, GucSource source, GucAction action); -extern ArrayType *GUCArrayAdd(ArrayType *array, const char *name, const char *value); -extern ArrayType *GUCArrayDelete(ArrayType *array, const char *name); -extern ArrayType *GUCArrayReset(ArrayType *array); - -#ifdef EXEC_BACKEND -extern void write_nondefault_variables(GucContext context); -extern void read_nondefault_variables(void); -#endif - -/* GUC serialization */ -extern Size EstimateGUCStateSpace(void); -extern void SerializeGUCState(Size maxsize, char *start_address); -extern void RestoreGUCState(void *gucstate); - -/* Support for messages reported from GUC check hooks */ - -extern PGDLLIMPORT char *GUC_check_errmsg_string; -extern PGDLLIMPORT char *GUC_check_errdetail_string; -extern PGDLLIMPORT char *GUC_check_errhint_string; - -extern void GUC_check_errcode(int sqlerrcode); - -#define GUC_check_errmsg \ - pre_format_elog_string(errno, TEXTDOMAIN), \ - GUC_check_errmsg_string = format_elog_string - -#define GUC_check_errdetail \ - pre_format_elog_string(errno, TEXTDOMAIN), \ - GUC_check_errdetail_string = format_elog_string - -#define GUC_check_errhint \ - pre_format_elog_string(errno, TEXTDOMAIN), \ - GUC_check_errhint_string = format_elog_string - - -/* - * The following functions are not in guc.c, but are declared here to avoid - * having to include guc.h in some widely used headers that it really doesn't - * belong in. - */ - -/* in commands/tablespace.c */ -extern bool check_default_tablespace(char **newval, void **extra, GucSource source); -extern bool check_temp_tablespaces(char **newval, void **extra, GucSource source); -extern void assign_temp_tablespaces(const char *newval, void *extra); - -/* in catalog/namespace.c */ -extern bool check_search_path(char **newval, void **extra, GucSource source); -extern void assign_search_path(const char *newval, void *extra); - -/* in access/transam/xlog.c */ -extern bool check_wal_buffers(int *newval, void **extra, GucSource source); -extern void assign_xlog_sync_method(int new_sync_method, void *extra); - -/* in access/transam/xlogprefetcher.c */ -extern bool check_recovery_prefetch(int *new_value, void **extra, GucSource source); -extern void assign_recovery_prefetch(int new_value, void *extra); - -#endif /* GUC_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/guc_tables.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/guc_tables.h deleted file mode 100644 index 067d82ada..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/guc_tables.h +++ /dev/null @@ -1,276 +0,0 @@ -/*------------------------------------------------------------------------- - * - * guc_tables.h - * Declarations of tables used by GUC. - * - * See src/backend/utils/misc/README for design notes. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * - * src/include/utils/guc_tables.h - * - *------------------------------------------------------------------------- - */ -#ifndef GUC_TABLES_H -#define GUC_TABLES_H 1 - -#include "utils/guc.h" - -/* - * GUC supports these types of variables: - */ -enum config_type -{ - PGC_BOOL, - PGC_INT, - PGC_REAL, - PGC_STRING, - PGC_ENUM -}; - -union config_var_val -{ - bool boolval; - int intval; - double realval; - char *stringval; - int enumval; -}; - -/* - * The actual value of a GUC variable can include a malloc'd opaque struct - * "extra", which is created by its check_hook and used by its assign_hook. - */ -typedef struct config_var_value -{ - union config_var_val val; - void *extra; -} config_var_value; - -/* - * Groupings to help organize all the run-time options for display. - * Be sure this agrees with the way the options are categorized in config.sgml! - */ -enum config_group -{ - UNGROUPED, /* use for options not shown in pg_settings */ - FILE_LOCATIONS, - CONN_AUTH_SETTINGS, - CONN_AUTH_AUTH, - CONN_AUTH_SSL, - RESOURCES_MEM, - RESOURCES_DISK, - RESOURCES_KERNEL, - RESOURCES_VACUUM_DELAY, - RESOURCES_BGWRITER, - RESOURCES_ASYNCHRONOUS, - WAL_SETTINGS, - WAL_CHECKPOINTS, - WAL_ARCHIVING, - WAL_RECOVERY, - WAL_ARCHIVE_RECOVERY, - WAL_RECOVERY_TARGET, - REPLICATION_SENDING, - REPLICATION_PRIMARY, - REPLICATION_STANDBY, - REPLICATION_SUBSCRIBERS, - QUERY_TUNING_METHOD, - QUERY_TUNING_COST, - QUERY_TUNING_GEQO, - QUERY_TUNING_OTHER, - LOGGING_WHERE, - LOGGING_WHEN, - LOGGING_WHAT, - PROCESS_TITLE, - STATS_MONITORING, - STATS_CUMULATIVE, - AUTOVACUUM, - CLIENT_CONN_STATEMENT, - CLIENT_CONN_LOCALE, - CLIENT_CONN_PRELOAD, - CLIENT_CONN_OTHER, - LOCK_MANAGEMENT, - COMPAT_OPTIONS_PREVIOUS, - COMPAT_OPTIONS_CLIENT, - ERROR_HANDLING_OPTIONS, - PRESET_OPTIONS, - CUSTOM_OPTIONS, - DEVELOPER_OPTIONS -}; - -/* - * Stack entry for saving the state a variable had prior to an uncommitted - * transactional change - */ -typedef enum -{ - /* This is almost GucAction, but we need a fourth state for SET+LOCAL */ - GUC_SAVE, /* entry caused by function SET option */ - GUC_SET, /* entry caused by plain SET command */ - GUC_LOCAL, /* entry caused by SET LOCAL command */ - GUC_SET_LOCAL /* entry caused by SET then SET LOCAL */ -} GucStackState; - -typedef struct guc_stack -{ - struct guc_stack *prev; /* previous stack item, if any */ - int nest_level; /* nesting depth at which we made entry */ - GucStackState state; /* see enum above */ - GucSource source; /* source of the prior value */ - /* masked value's source must be PGC_S_SESSION, so no need to store it */ - GucContext scontext; /* context that set the prior value */ - GucContext masked_scontext; /* context that set the masked value */ - Oid srole; /* role that set the prior value */ - Oid masked_srole; /* role that set the masked value */ - config_var_value prior; /* previous value of variable */ - config_var_value masked; /* SET value in a GUC_SET_LOCAL entry */ -} GucStack; - -/* - * Generic fields applicable to all types of variables - * - * The short description should be less than 80 chars in length. Some - * applications may use the long description as well, and will append - * it to the short description. (separated by a newline or '. ') - * - * srole is the role that set the current value, or BOOTSTRAP_SUPERUSERID - * if the value came from an internal source or the config file. Similarly - * for reset_srole (which is usually BOOTSTRAP_SUPERUSERID, but not always). - * - * Note that sourcefile/sourceline are kept here, and not pushed into stacked - * values, although in principle they belong with some stacked value if the - * active value is session- or transaction-local. This is to avoid bloating - * stack entries. We know they are only relevant when source == PGC_S_FILE. - */ -struct config_generic -{ - /* constant fields, must be set correctly in initial value: */ - const char *name; /* name of variable - MUST BE FIRST */ - GucContext context; /* context required to set the variable */ - enum config_group group; /* to help organize variables by function */ - const char *short_desc; /* short desc. of this variable's purpose */ - const char *long_desc; /* long desc. of this variable's purpose */ - int flags; /* flag bits, see guc.h */ - /* variable fields, initialized at runtime: */ - enum config_type vartype; /* type of variable (set only at startup) */ - int status; /* status bits, see below */ - GucSource source; /* source of the current actual value */ - GucSource reset_source; /* source of the reset_value */ - GucContext scontext; /* context that set the current value */ - GucContext reset_scontext; /* context that set the reset value */ - Oid srole; /* role that set the current value */ - Oid reset_srole; /* role that set the reset value */ - GucStack *stack; /* stacked prior values */ - void *extra; /* "extra" pointer for current actual value */ - char *last_reported; /* if variable is GUC_REPORT, value last sent - * to client (NULL if not yet sent) */ - char *sourcefile; /* file current setting is from (NULL if not - * set in config file) */ - int sourceline; /* line in source file */ -}; - -/* bit values in status field */ -#define GUC_IS_IN_FILE 0x0001 /* found it in config file */ -/* - * Caution: the GUC_IS_IN_FILE bit is transient state for ProcessConfigFile. - * Do not assume that its value represents useful information elsewhere. - */ -#define GUC_PENDING_RESTART 0x0002 /* changed value cannot be applied yet */ -#define GUC_NEEDS_REPORT 0x0004 /* new value must be reported to client */ - - -/* GUC records for specific variable types */ - -struct config_bool -{ - struct config_generic gen; - /* constant fields, must be set correctly in initial value: */ - bool *variable; - bool boot_val; - GucBoolCheckHook check_hook; - GucBoolAssignHook assign_hook; - GucShowHook show_hook; - /* variable fields, initialized at runtime: */ - bool reset_val; - void *reset_extra; -}; - -struct config_int -{ - struct config_generic gen; - /* constant fields, must be set correctly in initial value: */ - int *variable; - int boot_val; - int min; - int max; - GucIntCheckHook check_hook; - GucIntAssignHook assign_hook; - GucShowHook show_hook; - /* variable fields, initialized at runtime: */ - int reset_val; - void *reset_extra; -}; - -struct config_real -{ - struct config_generic gen; - /* constant fields, must be set correctly in initial value: */ - double *variable; - double boot_val; - double min; - double max; - GucRealCheckHook check_hook; - GucRealAssignHook assign_hook; - GucShowHook show_hook; - /* variable fields, initialized at runtime: */ - double reset_val; - void *reset_extra; -}; - -struct config_string -{ - struct config_generic gen; - /* constant fields, must be set correctly in initial value: */ - char **variable; - const char *boot_val; - GucStringCheckHook check_hook; - GucStringAssignHook assign_hook; - GucShowHook show_hook; - /* variable fields, initialized at runtime: */ - char *reset_val; - void *reset_extra; -}; - -struct config_enum -{ - struct config_generic gen; - /* constant fields, must be set correctly in initial value: */ - int *variable; - int boot_val; - const struct config_enum_entry *options; - GucEnumCheckHook check_hook; - GucEnumAssignHook assign_hook; - GucShowHook show_hook; - /* variable fields, initialized at runtime: */ - int reset_val; - void *reset_extra; -}; - -/* constant tables corresponding to enums above and in guc.h */ -extern PGDLLIMPORT const char *const config_group_names[]; -extern PGDLLIMPORT const char *const config_type_names[]; -extern PGDLLIMPORT const char *const GucContext_Names[]; -extern PGDLLIMPORT const char *const GucSource_Names[]; - -/* get the current set of variables */ -extern struct config_generic **get_guc_variables(void); - -extern void build_guc_variables(void); - -/* search in enum options */ -extern const char *config_enum_lookup_by_value(struct config_enum *record, int val); -extern bool config_enum_lookup_by_name(struct config_enum *record, - const char *value, int *retval); -extern struct config_generic **get_explain_guc_options(int *num); - -#endif /* GUC_TABLES_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/hsearch.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/hsearch.h deleted file mode 100644 index 854c33124..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/hsearch.h +++ /dev/null @@ -1,153 +0,0 @@ -/*------------------------------------------------------------------------- - * - * hsearch.h - * exported definitions for utils/hash/dynahash.c; see notes therein - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/hsearch.h - * - *------------------------------------------------------------------------- - */ -#ifndef HSEARCH_H -#define HSEARCH_H - - -/* - * Hash functions must have this signature. - */ -typedef uint32 (*HashValueFunc) (const void *key, Size keysize); - -/* - * Key comparison functions must have this signature. Comparison functions - * return zero for match, nonzero for no match. (The comparison function - * definition is designed to allow memcmp() and strncmp() to be used directly - * as key comparison functions.) - */ -typedef int (*HashCompareFunc) (const void *key1, const void *key2, - Size keysize); - -/* - * Key copying functions must have this signature. The return value is not - * used. (The definition is set up to allow memcpy() and strlcpy() to be - * used directly.) - */ -typedef void *(*HashCopyFunc) (void *dest, const void *src, Size keysize); - -/* - * Space allocation function for a hashtable --- designed to match malloc(). - * Note: there is no free function API; can't destroy a hashtable unless you - * use the default allocator. - */ -typedef void *(*HashAllocFunc) (Size request); - -/* - * HASHELEMENT is the private part of a hashtable entry. The caller's data - * follows the HASHELEMENT structure (on a MAXALIGN'd boundary). The hash key - * is expected to be at the start of the caller's hash entry data structure. - */ -typedef struct HASHELEMENT -{ - struct HASHELEMENT *link; /* link to next entry in same bucket */ - uint32 hashvalue; /* hash function result for this entry */ -} HASHELEMENT; - -/* Hash table header struct is an opaque type known only within dynahash.c */ -typedef struct HASHHDR HASHHDR; - -/* Hash table control struct is an opaque type known only within dynahash.c */ -typedef struct HTAB HTAB; - -/* Parameter data structure for hash_create */ -/* Only those fields indicated by hash_flags need be set */ -typedef struct HASHCTL -{ - /* Used if HASH_PARTITION flag is set: */ - long num_partitions; /* # partitions (must be power of 2) */ - /* Used if HASH_SEGMENT flag is set: */ - long ssize; /* segment size */ - /* Used if HASH_DIRSIZE flag is set: */ - long dsize; /* (initial) directory size */ - long max_dsize; /* limit to dsize if dir size is limited */ - /* Used if HASH_ELEM flag is set (which is now required): */ - Size keysize; /* hash key length in bytes */ - Size entrysize; /* total user element size in bytes */ - /* Used if HASH_FUNCTION flag is set: */ - HashValueFunc hash; /* hash function */ - /* Used if HASH_COMPARE flag is set: */ - HashCompareFunc match; /* key comparison function */ - /* Used if HASH_KEYCOPY flag is set: */ - HashCopyFunc keycopy; /* key copying function */ - /* Used if HASH_ALLOC flag is set: */ - HashAllocFunc alloc; /* memory allocator */ - /* Used if HASH_CONTEXT flag is set: */ - MemoryContext hcxt; /* memory context to use for allocations */ - /* Used if HASH_SHARED_MEM flag is set: */ - HASHHDR *hctl; /* location of header in shared mem */ -} HASHCTL; - -/* Flag bits for hash_create; most indicate which parameters are supplied */ -#define HASH_PARTITION 0x0001 /* Hashtable is used w/partitioned locking */ -#define HASH_SEGMENT 0x0002 /* Set segment size */ -#define HASH_DIRSIZE 0x0004 /* Set directory size (initial and max) */ -#define HASH_ELEM 0x0008 /* Set keysize and entrysize (now required!) */ -#define HASH_STRINGS 0x0010 /* Select support functions for string keys */ -#define HASH_BLOBS 0x0020 /* Select support functions for binary keys */ -#define HASH_FUNCTION 0x0040 /* Set user defined hash function */ -#define HASH_COMPARE 0x0080 /* Set user defined comparison function */ -#define HASH_KEYCOPY 0x0100 /* Set user defined key-copying function */ -#define HASH_ALLOC 0x0200 /* Set memory allocator */ -#define HASH_CONTEXT 0x0400 /* Set memory allocation context */ -#define HASH_SHARED_MEM 0x0800 /* Hashtable is in shared memory */ -#define HASH_ATTACH 0x1000 /* Do not initialize hctl */ -#define HASH_FIXED_SIZE 0x2000 /* Initial size is a hard limit */ - -/* max_dsize value to indicate expansible directory */ -#define NO_MAX_DSIZE (-1) - -/* hash_search operations */ -typedef enum -{ - HASH_FIND, - HASH_ENTER, - HASH_REMOVE, - HASH_ENTER_NULL -} HASHACTION; - -/* hash_seq status (should be considered an opaque type by callers) */ -typedef struct -{ - HTAB *hashp; - uint32 curBucket; /* index of current bucket */ - HASHELEMENT *curEntry; /* current entry in bucket */ -} HASH_SEQ_STATUS; - -/* - * prototypes for functions in dynahash.c - */ -extern HTAB *hash_create(const char *tabname, long nelem, - const HASHCTL *info, int flags); -extern void hash_destroy(HTAB *hashp); -extern void hash_stats(const char *where, HTAB *hashp); -extern void *hash_search(HTAB *hashp, const void *keyPtr, HASHACTION action, - bool *foundPtr); -extern uint32 get_hash_value(HTAB *hashp, const void *keyPtr); -extern void *hash_search_with_hash_value(HTAB *hashp, const void *keyPtr, - uint32 hashvalue, HASHACTION action, - bool *foundPtr); -extern bool hash_update_hash_key(HTAB *hashp, void *existingEntry, - const void *newKeyPtr); -extern long hash_get_num_entries(HTAB *hashp); -extern void hash_seq_init(HASH_SEQ_STATUS *status, HTAB *hashp); -extern void *hash_seq_search(HASH_SEQ_STATUS *status); -extern void hash_seq_term(HASH_SEQ_STATUS *status); -extern void hash_freeze(HTAB *hashp); -extern Size hash_estimate_size(long num_entries, Size entrysize); -extern long hash_select_dirsize(long num_entries); -extern Size hash_get_shared_size(HASHCTL *info, int flags); -extern void AtEOXact_HashTables(bool isCommit); -extern void AtEOSubXact_HashTables(bool isCommit, int nestDepth); - -#endif /* HSEARCH_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/inval.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/inval.h deleted file mode 100644 index 0e0323b91..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/inval.h +++ /dev/null @@ -1,68 +0,0 @@ -/*------------------------------------------------------------------------- - * - * inval.h - * POSTGRES cache invalidation dispatcher definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/inval.h - * - *------------------------------------------------------------------------- - */ -#ifndef INVAL_H -#define INVAL_H - -#include "access/htup.h" -#include "storage/relfilenode.h" -#include "utils/relcache.h" - -extern PGDLLIMPORT int debug_discard_caches; - -typedef void (*SyscacheCallbackFunction) (Datum arg, int cacheid, uint32 hashvalue); -typedef void (*RelcacheCallbackFunction) (Datum arg, Oid relid); - - -extern void AcceptInvalidationMessages(void); - -extern void AtEOXact_Inval(bool isCommit); - -extern void AtEOSubXact_Inval(bool isCommit); - -extern void PostPrepare_Inval(void); - -extern void CommandEndInvalidationMessages(void); - -extern void CacheInvalidateHeapTuple(Relation relation, - HeapTuple tuple, - HeapTuple newtuple); - -extern void CacheInvalidateCatalog(Oid catalogId); - -extern void CacheInvalidateRelcache(Relation relation); - -extern void CacheInvalidateRelcacheAll(void); - -extern void CacheInvalidateRelcacheByTuple(HeapTuple classTuple); - -extern void CacheInvalidateRelcacheByRelid(Oid relid); - -extern void CacheInvalidateSmgr(RelFileNodeBackend rnode); - -extern void CacheInvalidateRelmap(Oid databaseId); - -extern void CacheRegisterSyscacheCallback(int cacheid, - SyscacheCallbackFunction func, - Datum arg); - -extern void CacheRegisterRelcacheCallback(RelcacheCallbackFunction func, - Datum arg); - -extern void CallSyscacheCallbacks(int cacheid, uint32 hashvalue); - -extern void InvalidateSystemCaches(void); -extern void InvalidateSystemCachesExtended(bool debug_discard); - -extern void LogLogicalInvalidations(void); -#endif /* INVAL_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/lsyscache.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/lsyscache.h deleted file mode 100644 index b8dd27d4a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/lsyscache.h +++ /dev/null @@ -1,208 +0,0 @@ -/*------------------------------------------------------------------------- - * - * lsyscache.h - * Convenience routines for common queries in the system catalog cache. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/lsyscache.h - * - *------------------------------------------------------------------------- - */ -#ifndef LSYSCACHE_H -#define LSYSCACHE_H - -#include "access/attnum.h" -#include "access/htup.h" -#include "nodes/pg_list.h" - -/* avoid including subscripting.h here */ -struct SubscriptRoutines; - -/* Result list element for get_op_btree_interpretation */ -typedef struct OpBtreeInterpretation -{ - Oid opfamily_id; /* btree opfamily containing operator */ - int strategy; /* its strategy number */ - Oid oplefttype; /* declared left input datatype */ - Oid oprighttype; /* declared right input datatype */ -} OpBtreeInterpretation; - -/* I/O function selector for get_type_io_data */ -typedef enum IOFuncSelector -{ - IOFunc_input, - IOFunc_output, - IOFunc_receive, - IOFunc_send -} IOFuncSelector; - -/* Flag bits for get_attstatsslot */ -#define ATTSTATSSLOT_VALUES 0x01 -#define ATTSTATSSLOT_NUMBERS 0x02 - -/* Result struct for get_attstatsslot */ -typedef struct AttStatsSlot -{ - /* Always filled: */ - Oid staop; /* Actual staop for the found slot */ - Oid stacoll; /* Actual collation for the found slot */ - /* Filled if ATTSTATSSLOT_VALUES is specified: */ - Oid valuetype; /* Actual datatype of the values */ - Datum *values; /* slot's "values" array, or NULL if none */ - int nvalues; /* length of values[], or 0 */ - /* Filled if ATTSTATSSLOT_NUMBERS is specified: */ - float4 *numbers; /* slot's "numbers" array, or NULL if none */ - int nnumbers; /* length of numbers[], or 0 */ - - /* Remaining fields are private to get_attstatsslot/free_attstatsslot */ - void *values_arr; /* palloc'd values array, if any */ - void *numbers_arr; /* palloc'd numbers array, if any */ -} AttStatsSlot; - -/* Hook for plugins to get control in get_attavgwidth() */ -typedef int32 (*get_attavgwidth_hook_type) (Oid relid, AttrNumber attnum); -extern PGDLLIMPORT get_attavgwidth_hook_type get_attavgwidth_hook; - -extern bool op_in_opfamily(Oid opno, Oid opfamily); -extern int get_op_opfamily_strategy(Oid opno, Oid opfamily); -extern Oid get_op_opfamily_sortfamily(Oid opno, Oid opfamily); -extern void get_op_opfamily_properties(Oid opno, Oid opfamily, bool ordering_op, - int *strategy, - Oid *lefttype, - Oid *righttype); -extern Oid get_opfamily_member(Oid opfamily, Oid lefttype, Oid righttype, - int16 strategy); -extern bool get_ordering_op_properties(Oid opno, - Oid *opfamily, Oid *opcintype, int16 *strategy); -extern Oid get_equality_op_for_ordering_op(Oid opno, bool *reverse); -extern Oid get_ordering_op_for_equality_op(Oid opno, bool use_lhs_type); -extern List *get_mergejoin_opfamilies(Oid opno); -extern bool get_compatible_hash_operators(Oid opno, - Oid *lhs_opno, Oid *rhs_opno); -extern bool get_op_hash_functions(Oid opno, - RegProcedure *lhs_procno, RegProcedure *rhs_procno); -extern List *get_op_btree_interpretation(Oid opno); -extern bool equality_ops_are_compatible(Oid opno1, Oid opno2); -extern bool comparison_ops_are_compatible(Oid opno1, Oid opno2); -extern Oid get_opfamily_proc(Oid opfamily, Oid lefttype, Oid righttype, - int16 procnum); -extern char *get_attname(Oid relid, AttrNumber attnum, bool missing_ok); -extern AttrNumber get_attnum(Oid relid, const char *attname); -extern int get_attstattarget(Oid relid, AttrNumber attnum); -extern char get_attgenerated(Oid relid, AttrNumber attnum); -extern Oid get_atttype(Oid relid, AttrNumber attnum); -extern void get_atttypetypmodcoll(Oid relid, AttrNumber attnum, - Oid *typid, int32 *typmod, Oid *collid); -extern Datum get_attoptions(Oid relid, int16 attnum); -extern Oid get_cast_oid(Oid sourcetypeid, Oid targettypeid, bool missing_ok); -extern char *get_collation_name(Oid colloid); -extern bool get_collation_isdeterministic(Oid colloid); -extern char *get_constraint_name(Oid conoid); -extern Oid get_constraint_index(Oid conoid); -extern char *get_language_name(Oid langoid, bool missing_ok); -extern Oid get_opclass_family(Oid opclass); -extern Oid get_opclass_input_type(Oid opclass); -extern bool get_opclass_opfamily_and_input_type(Oid opclass, - Oid *opfamily, Oid *opcintype); -extern RegProcedure get_opcode(Oid opno); -extern char *get_opname(Oid opno); -extern Oid get_op_rettype(Oid opno); -extern void op_input_types(Oid opno, Oid *lefttype, Oid *righttype); -extern bool op_mergejoinable(Oid opno, Oid inputtype); -extern bool op_hashjoinable(Oid opno, Oid inputtype); -extern bool op_strict(Oid opno); -extern char op_volatile(Oid opno); -extern Oid get_commutator(Oid opno); -extern Oid get_negator(Oid opno); -extern RegProcedure get_oprrest(Oid opno); -extern RegProcedure get_oprjoin(Oid opno); -extern char *get_func_name(Oid funcid); -extern Oid get_func_namespace(Oid funcid); -extern Oid get_func_rettype(Oid funcid); -extern int get_func_nargs(Oid funcid); -extern Oid get_func_signature(Oid funcid, Oid **argtypes, int *nargs); -extern Oid get_func_variadictype(Oid funcid); -extern bool get_func_retset(Oid funcid); -extern bool func_strict(Oid funcid); -extern char func_volatile(Oid funcid); -extern char func_parallel(Oid funcid); -extern char get_func_prokind(Oid funcid); -extern bool get_func_leakproof(Oid funcid); -extern RegProcedure get_func_support(Oid funcid); -extern Oid get_relname_relid(const char *relname, Oid relnamespace); -extern char *get_rel_name(Oid relid); -extern Oid get_rel_namespace(Oid relid); -extern Oid get_rel_type_id(Oid relid); -extern char get_rel_relkind(Oid relid); -extern bool get_rel_relispartition(Oid relid); -extern Oid get_rel_tablespace(Oid relid); -extern char get_rel_persistence(Oid relid); -extern Oid get_transform_fromsql(Oid typid, Oid langid, List *trftypes); -extern Oid get_transform_tosql(Oid typid, Oid langid, List *trftypes); -extern bool get_typisdefined(Oid typid); -extern int16 get_typlen(Oid typid); -extern bool get_typbyval(Oid typid); -extern void get_typlenbyval(Oid typid, int16 *typlen, bool *typbyval); -extern void get_typlenbyvalalign(Oid typid, int16 *typlen, bool *typbyval, - char *typalign); -extern Oid getTypeIOParam(HeapTuple typeTuple); -extern void get_type_io_data(Oid typid, - IOFuncSelector which_func, - int16 *typlen, - bool *typbyval, - char *typalign, - char *typdelim, - Oid *typioparam, - Oid *func); -extern char get_typstorage(Oid typid); -extern Node *get_typdefault(Oid typid); -extern char get_typtype(Oid typid); -extern bool type_is_rowtype(Oid typid); -extern bool type_is_enum(Oid typid); -extern bool type_is_range(Oid typid); -extern bool type_is_multirange(Oid typid); -extern void get_type_category_preferred(Oid typid, - char *typcategory, - bool *typispreferred); -extern Oid get_typ_typrelid(Oid typid); -extern Oid get_element_type(Oid typid); -extern Oid get_array_type(Oid typid); -extern Oid get_promoted_array_type(Oid typid); -extern Oid get_base_element_type(Oid typid); -extern void getTypeInputInfo(Oid type, Oid *typInput, Oid *typIOParam); -extern void getTypeOutputInfo(Oid type, Oid *typOutput, bool *typIsVarlena); -extern void getTypeBinaryInputInfo(Oid type, Oid *typReceive, Oid *typIOParam); -extern void getTypeBinaryOutputInfo(Oid type, Oid *typSend, bool *typIsVarlena); -extern Oid get_typmodin(Oid typid); -extern Oid get_typcollation(Oid typid); -extern bool type_is_collatable(Oid typid); -extern RegProcedure get_typsubscript(Oid typid, Oid *typelemp); -extern const struct SubscriptRoutines *getSubscriptingRoutines(Oid typid, - Oid *typelemp); -extern Oid getBaseType(Oid typid); -extern Oid getBaseTypeAndTypmod(Oid typid, int32 *typmod); -extern int32 get_typavgwidth(Oid typid, int32 typmod); -extern int32 get_attavgwidth(Oid relid, AttrNumber attnum); -extern bool get_attstatsslot(AttStatsSlot *sslot, HeapTuple statstuple, - int reqkind, Oid reqop, int flags); -extern void free_attstatsslot(AttStatsSlot *sslot); -extern char *get_namespace_name(Oid nspid); -extern char *get_namespace_name_or_temp(Oid nspid); -extern Oid get_range_subtype(Oid rangeOid); -extern Oid get_range_collation(Oid rangeOid); -extern Oid get_range_multirange(Oid rangeOid); -extern Oid get_multirange_range(Oid multirangeOid); -extern Oid get_index_column_opclass(Oid index_oid, int attno); -extern bool get_index_isreplident(Oid index_oid); -extern bool get_index_isvalid(Oid index_oid); -extern bool get_index_isclustered(Oid index_oid); - -#define type_is_array(typid) (get_element_type(typid) != InvalidOid) -/* type_is_array_domain accepts both plain arrays and domains over arrays */ -#define type_is_array_domain(typid) (get_base_element_type(typid) != InvalidOid) - -#define TypeIsToastable(typid) (get_typstorage(typid) != TYPSTORAGE_PLAIN) - -#endif /* LSYSCACHE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/memdebug.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/memdebug.h deleted file mode 100644 index 6876e0ace..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/memdebug.h +++ /dev/null @@ -1,82 +0,0 @@ -/*------------------------------------------------------------------------- - * - * memdebug.h - * Memory debugging support. - * - * Currently, this file either wraps or substitutes - * empty definitions for Valgrind client request macros we use. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/memdebug.h - * - *------------------------------------------------------------------------- - */ -#ifndef MEMDEBUG_H -#define MEMDEBUG_H - -#ifdef USE_VALGRIND -#include -#else -#define VALGRIND_CHECK_MEM_IS_DEFINED(addr, size) do {} while (0) -#define VALGRIND_CREATE_MEMPOOL(context, redzones, zeroed) do {} while (0) -#define VALGRIND_DESTROY_MEMPOOL(context) do {} while (0) -#define VALGRIND_MAKE_MEM_DEFINED(addr, size) do {} while (0) -#define VALGRIND_MAKE_MEM_NOACCESS(addr, size) do {} while (0) -#define VALGRIND_MAKE_MEM_UNDEFINED(addr, size) do {} while (0) -#define VALGRIND_MEMPOOL_ALLOC(context, addr, size) do {} while (0) -#define VALGRIND_MEMPOOL_FREE(context, addr) do {} while (0) -#define VALGRIND_MEMPOOL_CHANGE(context, optr, nptr, size) do {} while (0) -#endif - - -#ifdef CLOBBER_FREED_MEMORY - -/* Wipe freed memory for debugging purposes */ -static inline void -wipe_mem(void *ptr, size_t size) -{ - VALGRIND_MAKE_MEM_UNDEFINED(ptr, size); - memset(ptr, 0x7F, size); - VALGRIND_MAKE_MEM_NOACCESS(ptr, size); -} - -#endif /* CLOBBER_FREED_MEMORY */ - -#ifdef MEMORY_CONTEXT_CHECKING - -static inline void -set_sentinel(void *base, Size offset) -{ - char *ptr = (char *) base + offset; - - VALGRIND_MAKE_MEM_UNDEFINED(ptr, 1); - *ptr = 0x7E; - VALGRIND_MAKE_MEM_NOACCESS(ptr, 1); -} - -static inline bool -sentinel_ok(const void *base, Size offset) -{ - const char *ptr = (const char *) base + offset; - bool ret; - - VALGRIND_MAKE_MEM_DEFINED(ptr, 1); - ret = *ptr == 0x7E; - VALGRIND_MAKE_MEM_NOACCESS(ptr, 1); - - return ret; -} - -#endif /* MEMORY_CONTEXT_CHECKING */ - -#ifdef RANDOMIZE_ALLOCATED_MEMORY - -void randomize_mem(char *ptr, size_t size); - -#endif /* RANDOMIZE_ALLOCATED_MEMORY */ - - -#endif /* MEMDEBUG_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/memutils.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/memutils.h deleted file mode 100644 index 87882b219..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/memutils.h +++ /dev/null @@ -1,230 +0,0 @@ -/*------------------------------------------------------------------------- - * - * memutils.h - * This file contains declarations for memory allocation utility - * functions. These are functions that are not quite widely used - * enough to justify going in utils/palloc.h, but are still part - * of the API of the memory management subsystem. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/memutils.h - * - *------------------------------------------------------------------------- - */ -#ifndef MEMUTILS_H -#define MEMUTILS_H - -#include "nodes/memnodes.h" - - -/* - * MaxAllocSize, MaxAllocHugeSize - * Quasi-arbitrary limits on size of allocations. - * - * Note: - * There is no guarantee that smaller allocations will succeed, but - * larger requests will be summarily denied. - * - * palloc() enforces MaxAllocSize, chosen to correspond to the limiting size - * of varlena objects under TOAST. See VARSIZE_4B() and related macros in - * postgres.h. Many datatypes assume that any allocatable size can be - * represented in a varlena header. This limit also permits a caller to use - * an "int" variable for an index into or length of an allocation. Callers - * careful to avoid these hazards can access the higher limit with - * MemoryContextAllocHuge(). Both limits permit code to assume that it may - * compute twice an allocation's size without overflow. - */ -#define MaxAllocSize ((Size) 0x3fffffff) /* 1 gigabyte - 1 */ - -#define AllocSizeIsValid(size) ((Size) (size) <= MaxAllocSize) - -#define MaxAllocHugeSize (SIZE_MAX / 2) - -#define AllocHugeSizeIsValid(size) ((Size) (size) <= MaxAllocHugeSize) - - -/* - * Standard top-level memory contexts. - * - * Only TopMemoryContext and ErrorContext are initialized by - * MemoryContextInit() itself. - */ -extern PGDLLIMPORT __thread MemoryContext TopMemoryContext; -extern PGDLLIMPORT __thread MemoryContext ErrorContext; -extern PGDLLIMPORT MemoryContext PostmasterContext; -extern PGDLLIMPORT MemoryContext CacheMemoryContext; -extern PGDLLIMPORT MemoryContext MessageContext; -extern PGDLLIMPORT MemoryContext TopTransactionContext; -extern PGDLLIMPORT MemoryContext CurTransactionContext; - -/* This is a transient link to the active portal's memory context: */ -extern PGDLLIMPORT MemoryContext PortalContext; - -/* Backwards compatibility macro */ -#define MemoryContextResetAndDeleteChildren(ctx) MemoryContextReset(ctx) - - -/* - * Memory-context-type-independent functions in mcxt.c - */ -extern void MemoryContextInit(void); -extern void MemoryContextReset(MemoryContext context); -extern void MemoryContextDelete(MemoryContext context); -extern void MemoryContextResetOnly(MemoryContext context); -extern void MemoryContextResetChildren(MemoryContext context); -extern void MemoryContextDeleteChildren(MemoryContext context); -extern void MemoryContextSetIdentifier(MemoryContext context, const char *id); -extern void MemoryContextSetParent(MemoryContext context, - MemoryContext new_parent); -extern Size GetMemoryChunkSpace(void *pointer); -extern MemoryContext MemoryContextGetParent(MemoryContext context); -extern bool MemoryContextIsEmpty(MemoryContext context); -extern Size MemoryContextMemAllocated(MemoryContext context, bool recurse); -extern void MemoryContextStats(MemoryContext context); -extern void MemoryContextStatsDetail(MemoryContext context, int max_children, - bool print_to_stderr); -extern void MemoryContextAllowInCriticalSection(MemoryContext context, - bool allow); - -#ifdef MEMORY_CONTEXT_CHECKING -extern void MemoryContextCheck(MemoryContext context); -#endif -extern bool MemoryContextContains(MemoryContext context, void *pointer); - -/* Handy macro for copying and assigning context ID ... but note double eval */ -#define MemoryContextCopyAndSetIdentifier(cxt, id) \ - MemoryContextSetIdentifier(cxt, MemoryContextStrdup(cxt, id)) - -/* - * GetMemoryChunkContext - * Given a currently-allocated chunk, determine the context - * it belongs to. - * - * All chunks allocated by any memory context manager are required to be - * preceded by the corresponding MemoryContext stored, without padding, in the - * preceding sizeof(void*) bytes. A currently-allocated chunk must contain a - * backpointer to its owning context. The backpointer is used by pfree() and - * repalloc() to find the context to call. - */ -#ifndef FRONTEND -static inline MemoryContext -GetMemoryChunkContext(void *pointer) -{ - MemoryContext context; - - /* - * Try to detect bogus pointers handed to us, poorly though we can. - * Presumably, a pointer that isn't MAXALIGNED isn't pointing at an - * allocated chunk. - */ - Assert(pointer != NULL); - Assert(pointer == (void *) MAXALIGN(pointer)); - - /* - * OK, it's probably safe to look at the context. - */ - context = *(MemoryContext *) (((char *) pointer) - sizeof(void *)); - - AssertArg(MemoryContextIsValid(context)); - - return context; -} -#endif - -/* - * This routine handles the context-type-independent part of memory - * context creation. It's intended to be called from context-type- - * specific creation routines, and noplace else. - */ -extern void MemoryContextCreate(MemoryContext node, - NodeTag tag, - const MemoryContextMethods *methods, - MemoryContext parent, - const char *name); - -extern void HandleLogMemoryContextInterrupt(void); -extern void ProcessLogMemoryContextInterrupt(void); - -/* - * Memory-context-type-specific functions - */ - -/* aset.c */ -extern MemoryContext AllocSetContextCreateInternal(MemoryContext parent, - const char *name, - Size minContextSize, - Size initBlockSize, - Size maxBlockSize); -extern void AllocSetDeleteFreeList(MemoryContext context); - -/* - * This wrapper macro exists to check for non-constant strings used as context - * names; that's no longer supported. (Use MemoryContextSetIdentifier if you - * want to provide a variable identifier.) - */ -#ifdef HAVE__BUILTIN_CONSTANT_P -#define AllocSetContextCreate(parent, name, ...) \ - (StaticAssertExpr(__builtin_constant_p(name), \ - "memory context names must be constant strings"), \ - AllocSetContextCreateInternal(parent, name, __VA_ARGS__)) -#else -#define AllocSetContextCreate \ - AllocSetContextCreateInternal -#endif - -/* slab.c */ -extern MemoryContext SlabContextCreate(MemoryContext parent, - const char *name, - Size blockSize, - Size chunkSize); - -/* generation.c */ -extern MemoryContext GenerationContextCreate(MemoryContext parent, - const char *name, - Size minContextSize, - Size initBlockSize, - Size maxBlockSize); - -/* - * Recommended default alloc parameters, suitable for "ordinary" contexts - * that might hold quite a lot of data. - */ -#define ALLOCSET_DEFAULT_MINSIZE 0 -#define ALLOCSET_DEFAULT_INITSIZE (8 * 1024) -#define ALLOCSET_DEFAULT_MAXSIZE (8 * 1024 * 1024) -#define ALLOCSET_DEFAULT_SIZES \ - ALLOCSET_DEFAULT_MINSIZE, ALLOCSET_DEFAULT_INITSIZE, ALLOCSET_DEFAULT_MAXSIZE - -/* - * Recommended alloc parameters for "small" contexts that are never expected - * to contain much data (for example, a context to contain a query plan). - */ -#define ALLOCSET_SMALL_MINSIZE 0 -#define ALLOCSET_SMALL_INITSIZE (1 * 1024) -#define ALLOCSET_SMALL_MAXSIZE (8 * 1024) -#define ALLOCSET_SMALL_SIZES \ - ALLOCSET_SMALL_MINSIZE, ALLOCSET_SMALL_INITSIZE, ALLOCSET_SMALL_MAXSIZE - -/* - * Recommended alloc parameters for contexts that should start out small, - * but might sometimes grow big. - */ -#define ALLOCSET_START_SMALL_SIZES \ - ALLOCSET_SMALL_MINSIZE, ALLOCSET_SMALL_INITSIZE, ALLOCSET_DEFAULT_MAXSIZE - - -/* - * Threshold above which a request in an AllocSet context is certain to be - * allocated separately (and thereby have constant allocation overhead). - * Few callers should be interested in this, but tuplesort/tuplestore need - * to know it. - */ -#define ALLOCSET_SEPARATE_THRESHOLD 8192 - -#define SLAB_DEFAULT_BLOCK_SIZE (8 * 1024) -#define SLAB_LARGE_BLOCK_SIZE (8 * 1024 * 1024) - -#endif /* MEMUTILS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/numeric.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/numeric.h deleted file mode 100644 index 3caa74dfe..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/numeric.h +++ /dev/null @@ -1,90 +0,0 @@ -/*------------------------------------------------------------------------- - * - * numeric.h - * Definitions for the exact numeric data type of Postgres - * - * Original coding 1998, Jan Wieck. Heavily revised 2003, Tom Lane. - * - * Copyright (c) 1998-2022, PostgreSQL Global Development Group - * - * src/include/utils/numeric.h - * - *------------------------------------------------------------------------- - */ -#ifndef _PG_NUMERIC_H_ -#define _PG_NUMERIC_H_ - -#include "fmgr.h" - -/* - * Limits on the precision and scale specifiable in a NUMERIC typmod. The - * precision is strictly positive, but the scale may be positive or negative. - * A negative scale implies rounding before the decimal point. - * - * Note that the minimum display scale defined below is zero --- we always - * display all digits before the decimal point, even when the scale is - * negative. - * - * Note that the implementation limits on the precision and display scale of a - * numeric value are much larger --- beware of what you use these for! - */ -#define NUMERIC_MAX_PRECISION 1000 - -#define NUMERIC_MIN_SCALE (-1000) -#define NUMERIC_MAX_SCALE 1000 - -/* - * Internal limits on the scales chosen for calculation results - */ -#define NUMERIC_MAX_DISPLAY_SCALE NUMERIC_MAX_PRECISION -#define NUMERIC_MIN_DISPLAY_SCALE 0 - -#define NUMERIC_MAX_RESULT_SCALE (NUMERIC_MAX_PRECISION * 2) - -/* - * For inherently inexact calculations such as division and square root, - * we try to get at least this many significant digits; the idea is to - * deliver a result no worse than float8 would. - */ -#define NUMERIC_MIN_SIG_DIGITS 16 - -/* The actual contents of Numeric are private to numeric.c */ -struct NumericData; -typedef struct NumericData *Numeric; - -/* - * fmgr interface macros - */ - -#define DatumGetNumeric(X) ((Numeric) PG_DETOAST_DATUM(X)) -#define DatumGetNumericCopy(X) ((Numeric) PG_DETOAST_DATUM_COPY(X)) -#define NumericGetDatum(X) PointerGetDatum(X) -#define PG_GETARG_NUMERIC(n) DatumGetNumeric(PG_GETARG_DATUM(n)) -#define PG_GETARG_NUMERIC_COPY(n) DatumGetNumericCopy(PG_GETARG_DATUM(n)) -#define PG_RETURN_NUMERIC(x) return NumericGetDatum(x) - -/* - * Utility functions in numeric.c - */ -extern bool numeric_is_nan(Numeric num); -extern bool numeric_is_inf(Numeric num); -extern int32 numeric_maximum_size(int32 typmod); -extern char *numeric_out_sci(Numeric num, int scale); -extern char *numeric_normalize(Numeric num); - -extern Numeric int64_to_numeric(int64 val); -extern Numeric int64_div_fast_to_numeric(int64 val1, int log10val2); - -extern Numeric numeric_add_opt_error(Numeric num1, Numeric num2, - bool *have_error); -extern Numeric numeric_sub_opt_error(Numeric num1, Numeric num2, - bool *have_error); -extern Numeric numeric_mul_opt_error(Numeric num1, Numeric num2, - bool *have_error); -extern Numeric numeric_div_opt_error(Numeric num1, Numeric num2, - bool *have_error); -extern Numeric numeric_mod_opt_error(Numeric num1, Numeric num2, - bool *have_error); -extern int32 numeric_int4_opt_error(Numeric num, bool *error); - -#endif /* _PG_NUMERIC_H_ */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/palloc.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/palloc.h deleted file mode 100644 index c39d395c6..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/palloc.h +++ /dev/null @@ -1,158 +0,0 @@ -/*------------------------------------------------------------------------- - * - * palloc.h - * POSTGRES memory allocator definitions. - * - * This file contains the basic memory allocation interface that is - * needed by almost every backend module. It is included directly by - * postgres.h, so the definitions here are automatically available - * everywhere. Keep it lean! - * - * Memory allocation occurs within "contexts". Every chunk obtained from - * palloc()/MemoryContextAlloc() is allocated within a specific context. - * The entire contents of a context can be freed easily and quickly by - * resetting or deleting the context --- this is both faster and less - * prone to memory-leakage bugs than releasing chunks individually. - * We organize contexts into context trees to allow fine-grain control - * over chunk lifetime while preserving the certainty that we will free - * everything that should be freed. See utils/mmgr/README for more info. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/palloc.h - * - *------------------------------------------------------------------------- - */ -#ifndef PALLOC_H -#define PALLOC_H - -/* - * Type MemoryContextData is declared in nodes/memnodes.h. Most users - * of memory allocation should just treat it as an abstract type, so we - * do not provide the struct contents here. - */ -typedef struct MemoryContextData *MemoryContext; - -/* - * A memory context can have callback functions registered on it. Any such - * function will be called once just before the context is next reset or - * deleted. The MemoryContextCallback struct describing such a callback - * typically would be allocated within the context itself, thereby avoiding - * any need to manage it explicitly (the reset/delete action will free it). - */ -typedef void (*MemoryContextCallbackFunction) (void *arg); - -typedef struct MemoryContextCallback -{ - MemoryContextCallbackFunction func; /* function to call */ - void *arg; /* argument to pass it */ - struct MemoryContextCallback *next; /* next in list of callbacks */ -} MemoryContextCallback; - -/* - * CurrentMemoryContext is the default allocation context for palloc(). - * Avoid accessing it directly! Instead, use MemoryContextSwitchTo() - * to change the setting. - */ -extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext; - -/* - * Flags for MemoryContextAllocExtended. - */ -#define MCXT_ALLOC_HUGE 0x01 /* allow huge allocation (> 1 GB) */ -#define MCXT_ALLOC_NO_OOM 0x02 /* no failure if out-of-memory */ -#define MCXT_ALLOC_ZERO 0x04 /* zero allocated memory */ - -/* - * Fundamental memory-allocation operations (more are in utils/memutils.h) - */ -extern void *MemoryContextAlloc(MemoryContext context, Size size); -extern void *MemoryContextAllocZero(MemoryContext context, Size size); -extern void *MemoryContextAllocZeroAligned(MemoryContext context, Size size); -extern void *MemoryContextAllocExtended(MemoryContext context, - Size size, int flags); - -extern void *palloc(Size size); -extern void *palloc0(Size size); -extern void *palloc_extended(Size size, int flags); -extern pg_nodiscard void *repalloc(void *pointer, Size size); -extern void pfree(void *pointer); - -/* - * Variants with easier notation and more type safety - */ - -/* - * Allocate space for one object of type "type" - */ -#define palloc_object(type) ((type *) palloc(sizeof(type))) -#define palloc0_object(type) ((type *) palloc0(sizeof(type))) - -/* - * Allocate space for "count" objects of type "type" - */ -#define palloc_array(type, count) ((type *) palloc(sizeof(type) * (count))) -#define palloc0_array(type, count) ((type *) palloc0(sizeof(type) * (count))) - -/* - * Change size of allocation pointed to by "pointer" to have space for "count" - * objects of type "type" - */ -#define repalloc_array(pointer, type, count) ((type *) repalloc(pointer, sizeof(type) * (count))) - -/* - * The result of palloc() is always word-aligned, so we can skip testing - * alignment of the pointer when deciding which MemSet variant to use. - * Note that this variant does not offer any advantage, and should not be - * used, unless its "sz" argument is a compile-time constant; therefore, the - * issue that it evaluates the argument multiple times isn't a problem in - * practice. - */ -#define palloc0fast(sz) \ - ( MemSetTest(0, sz) ? \ - MemoryContextAllocZeroAligned(CurrentMemoryContext, sz) : \ - MemoryContextAllocZero(CurrentMemoryContext, sz) ) - -/* Higher-limit allocators. */ -extern void *MemoryContextAllocHuge(MemoryContext context, Size size); -extern pg_nodiscard void *repalloc_huge(void *pointer, Size size); - -/* - * Although this header file is nominally backend-only, certain frontend - * programs like pg_controldata include it via postgres.h. For some compilers - * it's necessary to hide the inline definition of MemoryContextSwitchTo in - * this scenario; hence the #ifndef FRONTEND. - */ - -#ifndef FRONTEND -static inline MemoryContext -MemoryContextSwitchTo(MemoryContext context) -{ - MemoryContext old = CurrentMemoryContext; - - CurrentMemoryContext = context; - return old; -} -#endif /* FRONTEND */ - -/* Registration of memory context reset/delete callbacks */ -extern void MemoryContextRegisterResetCallback(MemoryContext context, - MemoryContextCallback *cb); - -/* - * These are like standard strdup() except the copied string is - * allocated in a context, not with malloc(). - */ -extern char *MemoryContextStrdup(MemoryContext context, const char *string); -extern char *pstrdup(const char *in); -extern char *pnstrdup(const char *in, Size len); - -extern char *pchomp(const char *in); - -/* sprintf into a palloc'd buffer --- these are in psprintf.c */ -extern char *psprintf(const char *fmt,...) pg_attribute_printf(1, 2); -extern size_t pvsnprintf(char *buf, size_t len, const char *fmt, va_list args) pg_attribute_printf(3, 0); - -#endif /* PALLOC_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/partcache.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/partcache.h deleted file mode 100644 index 3394e1fcd..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/partcache.h +++ /dev/null @@ -1,102 +0,0 @@ -/*------------------------------------------------------------------------- - * - * partcache.h - * - * Copyright (c) 1996-2022, PostgreSQL Global Development Group - * - * src/include/utils/partcache.h - * - *------------------------------------------------------------------------- - */ -#ifndef PARTCACHE_H -#define PARTCACHE_H - -#include "access/attnum.h" -#include "fmgr.h" -#include "nodes/pg_list.h" -#include "nodes/primnodes.h" -#include "partitioning/partdefs.h" -#include "utils/relcache.h" - -/* - * Information about the partition key of a relation - */ -typedef struct PartitionKeyData -{ - char strategy; /* partitioning strategy */ - int16 partnatts; /* number of columns in the partition key */ - AttrNumber *partattrs; /* attribute numbers of columns in the - * partition key or 0 if it's an expr */ - List *partexprs; /* list of expressions in the partitioning - * key, one for each zero-valued partattrs */ - - Oid *partopfamily; /* OIDs of operator families */ - Oid *partopcintype; /* OIDs of opclass declared input data types */ - FmgrInfo *partsupfunc; /* lookup info for support funcs */ - - /* Partitioning collation per attribute */ - Oid *partcollation; - - /* Type information per attribute */ - Oid *parttypid; - int32 *parttypmod; - int16 *parttyplen; - bool *parttypbyval; - char *parttypalign; - Oid *parttypcoll; -} PartitionKeyData; - - -extern PartitionKey RelationGetPartitionKey(Relation rel); -extern List *RelationGetPartitionQual(Relation rel); -extern Expr *get_partition_qual_relid(Oid relid); - -/* - * PartitionKey inquiry functions - */ -static inline int -get_partition_strategy(PartitionKey key) -{ - return key->strategy; -} - -static inline int -get_partition_natts(PartitionKey key) -{ - return key->partnatts; -} - -static inline List * -get_partition_exprs(PartitionKey key) -{ - return key->partexprs; -} - -/* - * PartitionKey inquiry functions - one column - */ -static inline int16 -get_partition_col_attnum(PartitionKey key, int col) -{ - return key->partattrs[col]; -} - -static inline Oid -get_partition_col_typid(PartitionKey key, int col) -{ - return key->parttypid[col]; -} - -static inline int32 -get_partition_col_typmod(PartitionKey key, int col) -{ - return key->parttypmod[col]; -} - -static inline Oid -get_partition_col_collation(PartitionKey key, int col) -{ - return key->partcollation[col]; -} - -#endif /* PARTCACHE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/pg_locale.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/pg_locale.h deleted file mode 100644 index e7385faef..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/pg_locale.h +++ /dev/null @@ -1,127 +0,0 @@ -/*----------------------------------------------------------------------- - * - * PostgreSQL locale utilities - * - * src/include/utils/pg_locale.h - * - * Copyright (c) 2002-2022, PostgreSQL Global Development Group - * - *----------------------------------------------------------------------- - */ - -#ifndef _PG_LOCALE_ -#define _PG_LOCALE_ - -#if defined(LOCALE_T_IN_XLOCALE) || defined(WCSTOMBS_L_IN_XLOCALE) -#include -#endif -#ifdef USE_ICU -#include -#endif - -#include "utils/guc.h" - -#ifdef USE_ICU -/* - * ucol_strcollUTF8() was introduced in ICU 50, but it is buggy before ICU 53. - * (see - * ) - */ -#if U_ICU_VERSION_MAJOR_NUM >= 53 -#define HAVE_UCOL_STRCOLLUTF8 1 -#else -#undef HAVE_UCOL_STRCOLLUTF8 -#endif -#endif - -/* use for libc locale names */ -#define LOCALE_NAME_BUFLEN 128 - -/* GUC settings */ -extern PGDLLIMPORT char *locale_messages; -extern PGDLLIMPORT char *locale_monetary; -extern PGDLLIMPORT char *locale_numeric; -extern PGDLLIMPORT char *locale_time; - -/* lc_time localization cache */ -extern PGDLLIMPORT char *localized_abbrev_days[]; -extern PGDLLIMPORT char *localized_full_days[]; -extern PGDLLIMPORT char *localized_abbrev_months[]; -extern PGDLLIMPORT char *localized_full_months[]; - - -extern bool check_locale_messages(char **newval, void **extra, GucSource source); -extern void assign_locale_messages(const char *newval, void *extra); -extern bool check_locale_monetary(char **newval, void **extra, GucSource source); -extern void assign_locale_monetary(const char *newval, void *extra); -extern bool check_locale_numeric(char **newval, void **extra, GucSource source); -extern void assign_locale_numeric(const char *newval, void *extra); -extern bool check_locale_time(char **newval, void **extra, GucSource source); -extern void assign_locale_time(const char *newval, void *extra); - -extern bool check_locale(int category, const char *locale, char **canonname); -extern char *pg_perm_setlocale(int category, const char *locale); -extern void check_strxfrm_bug(void); - -extern bool lc_collate_is_c(Oid collation); -extern bool lc_ctype_is_c(Oid collation); - -/* - * Return the POSIX lconv struct (contains number/money formatting - * information) with locale information for all categories. - */ -extern struct lconv *PGLC_localeconv(void); - -extern void cache_locale_time(void); - - -/* - * We define our own wrapper around locale_t so we can keep the same - * function signatures for all builds, while not having to create a - * fake version of the standard type locale_t in the global namespace. - * pg_locale_t is occasionally checked for truth, so make it a pointer. - */ -struct pg_locale_struct -{ - char provider; - bool deterministic; - union - { -#ifdef HAVE_LOCALE_T - locale_t lt; -#endif -#ifdef USE_ICU - struct - { - const char *locale; - UCollator *ucol; - } icu; -#endif - int dummy; /* in case we have neither LOCALE_T nor ICU */ - } info; -}; - -typedef struct pg_locale_struct *pg_locale_t; - -extern PGDLLIMPORT struct pg_locale_struct default_locale; - -extern void make_icu_collator(const char *iculocstr, - struct pg_locale_struct *resultp); - -extern pg_locale_t pg_newlocale_from_collation(Oid collid); - -extern char *get_collation_actual_version(char collprovider, const char *collcollate); - -#ifdef USE_ICU -extern int32_t icu_to_uchar(UChar **buff_uchar, const char *buff, size_t nbytes); -extern int32_t icu_from_uchar(char **result, const UChar *buff_uchar, int32_t len_uchar); -#endif -extern void check_icu_locale(const char *icu_locale); - -/* These functions convert from/to libc's wchar_t, *not* pg_wchar_t */ -extern size_t wchar2char(char *to, const wchar_t *from, size_t tolen, - pg_locale_t locale); -extern size_t char2wchar(wchar_t *to, size_t tolen, - const char *from, size_t fromlen, pg_locale_t locale); - -#endif /* _PG_LOCALE_ */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/pg_lsn.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/pg_lsn.h deleted file mode 100644 index 7b708f107..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/pg_lsn.h +++ /dev/null @@ -1,29 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pg_lsn.h - * Declarations for operations on log sequence numbers (LSNs) of - * PostgreSQL. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/pg_lsn.h - * - *------------------------------------------------------------------------- - */ -#ifndef PG_LSN_H -#define PG_LSN_H - -#include "access/xlogdefs.h" -#include "fmgr.h" - -#define DatumGetLSN(X) ((XLogRecPtr) DatumGetInt64(X)) -#define LSNGetDatum(X) (Int64GetDatum((int64) (X))) - -#define PG_GETARG_LSN(n) DatumGetLSN(PG_GETARG_DATUM(n)) -#define PG_RETURN_LSN(x) return LSNGetDatum(x) - -extern XLogRecPtr pg_lsn_in_internal(const char *str, bool *have_error); - -#endif /* PG_LSN_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/pgstat_internal.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/pgstat_internal.h deleted file mode 100644 index 4b65dfef7..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/pgstat_internal.h +++ /dev/null @@ -1,784 +0,0 @@ -/* ---------- - * pgstat_internal.h - * - * Definitions for the PostgreSQL cumulative statistics system that should - * only be needed by files implementing statistics support (rather than ones - * reporting / querying stats). - * - * Copyright (c) 2001-2022, PostgreSQL Global Development Group - * - * src/include/utils/pgstat_internal.h - * ---------- - */ -#ifndef PGSTAT_INTERNAL_H -#define PGSTAT_INTERNAL_H - - -#include "common/hashfn.h" -#include "lib/dshash.h" -#include "lib/ilist.h" -#include "pgstat.h" -#include "storage/lwlock.h" -#include "utils/dsa.h" - - -/* - * Types related to shared memory storage of statistics. - * - * Per-object statistics are stored in the "shared stats" hashtable. That - * table's entries (PgStatShared_HashEntry) contain a pointer to the actual stats - * data for the object (the size of the stats data varies depending on the - * kind of stats). The table is keyed by PgStat_HashKey. - * - * Once a backend has a reference to a shared stats entry, it increments the - * entry's refcount. Even after stats data is dropped (e.g., due to a DROP - * TABLE), the entry itself can only be deleted once all references have been - * released. - * - * These refcounts, in combination with a backend local hashtable - * (pgStatEntryRefHash, with entries pointing to PgStat_EntryRef) in front of - * the shared hash table, mean that most stats work can happen without - * touching the shared hash table, reducing contention. - * - * Once there are pending stats updates for a table PgStat_EntryRef->pending - * is allocated to contain a working space for as-of-yet-unapplied stats - * updates. Once the stats are flushed, PgStat_EntryRef->pending is freed. - * - * Each stat kind in the shared hash table has a fixed member - * PgStatShared_Common as the first element. - */ - -/* struct for shared statistics hash entry key. */ -typedef struct PgStat_HashKey -{ - PgStat_Kind kind; /* statistics entry kind */ - Oid dboid; /* database ID. InvalidOid for shared objects. */ - Oid objoid; /* object ID, either table or function. */ -} PgStat_HashKey; - -/* - * Shared statistics hash entry. Doesn't itself contain any stats, but points - * to them (with ->body). That allows the stats entries themselves to be of - * variable size. - */ -typedef struct PgStatShared_HashEntry -{ - PgStat_HashKey key; /* hash key */ - - /* - * If dropped is set, backends need to release their references so that - * the memory for the entry can be freed. No new references may be made - * once marked as dropped. - */ - bool dropped; - - /* - * Refcount managing lifetime of the entry itself (as opposed to the - * dshash entry pointing to it). The stats lifetime has to be separate - * from the hash table entry lifetime because we allow backends to point - * to a stats entry without holding a hash table lock (and some other - * reasons). - * - * As long as the entry is not dropped, 1 is added to the refcount - * representing that the entry should not be dropped. In addition each - * backend that has a reference to the entry needs to increment the - * refcount as long as it does. - * - * May only be incremented / decremented while holding at least a shared - * lock on the dshash partition containing the entry. It needs to be an - * atomic variable because multiple backends can increment the refcount - * with just a shared lock. - * - * When the refcount reaches 0 the entry needs to be freed. - */ - pg_atomic_uint32 refcount; - - /* - * Pointer to shared stats. The stats entry always starts with - * PgStatShared_Common, embedded in a larger struct containing the - * PgStat_Kind specific stats fields. - */ - dsa_pointer body; -} PgStatShared_HashEntry; - -/* - * Common header struct for PgStatShm_Stat*Entry. - */ -typedef struct PgStatShared_Common -{ - uint32 magic; /* just a validity cross-check */ - /* lock protecting stats contents (i.e. data following the header) */ - LWLock lock; -} PgStatShared_Common; - -/* - * A backend local reference to a shared stats entry. As long as at least one - * such reference exists, the shared stats entry will not be released. - * - * If there are pending stats update to the shared stats, these are stored in - * ->pending. - */ -typedef struct PgStat_EntryRef -{ - /* - * Pointer to the PgStatShared_HashEntry entry in the shared stats - * hashtable. - */ - PgStatShared_HashEntry *shared_entry; - - /* - * Pointer to the stats data (i.e. PgStatShared_HashEntry->body), resolved - * as a local pointer, to avoid repeated dsa_get_address() calls. - */ - PgStatShared_Common *shared_stats; - - /* - * Pending statistics data that will need to be flushed to shared memory - * stats eventually. Each stats kind utilizing pending data defines what - * format its pending data has and needs to provide a - * PgStat_KindInfo->flush_pending_cb callback to merge pending into shared - * stats. - */ - void *pending; - dlist_node pending_node; /* membership in pgStatPending list */ -} PgStat_EntryRef; - - -/* - * Some stats changes are transactional. To maintain those, a stack of - * PgStat_SubXactStatus entries is maintained, which contain data pertaining - * to the current transaction and its active subtransactions. - */ -typedef struct PgStat_SubXactStatus -{ - int nest_level; /* subtransaction nest level */ - - struct PgStat_SubXactStatus *prev; /* higher-level subxact if any */ - - /* - * Statistics for transactionally dropped objects need to be - * transactionally dropped as well. Collect the stats dropped in the - * current (sub-)transaction and only execute the stats drop when we know - * if the transaction commits/aborts. To handle replicas and crashes, - * stats drops are included in commit / abort records. - */ - dlist_head pending_drops; - int pending_drops_count; - - /* - * Tuple insertion/deletion counts for an open transaction can't be - * propagated into PgStat_TableStatus counters until we know if it is - * going to commit or abort. Hence, we keep these counts in per-subxact - * structs that live in TopTransactionContext. This data structure is - * designed on the assumption that subxacts won't usually modify very many - * tables. - */ - PgStat_TableXactStatus *first; /* head of list for this subxact */ -} PgStat_SubXactStatus; - - -/* - * Metadata for a specific kind of statistics. - */ -typedef struct PgStat_KindInfo -{ - /* - * Do a fixed number of stats objects exist for this kind of stats (e.g. - * bgwriter stats) or not (e.g. tables). - */ - bool fixed_amount:1; - - /* - * Can stats of this kind be accessed from another database? Determines - * whether a stats object gets included in stats snapshots. - */ - bool accessed_across_databases:1; - - /* - * For variable-numbered stats: Identified on-disk using a name, rather - * than PgStat_HashKey. Probably only needed for replication slot stats. - */ - bool named_on_disk:1; - - /* - * The size of an entry in the shared stats hash table (pointed to by - * PgStatShared_HashEntry->body). - */ - uint32 shared_size; - - /* - * The offset/size of statistics inside the shared stats entry. Used when - * [de-]serializing statistics to / from disk respectively. Separate from - * shared_size because [de-]serialization may not include in-memory state - * like lwlocks. - */ - uint32 shared_data_off; - uint32 shared_data_len; - - /* - * The size of the pending data for this kind. E.g. how large - * PgStat_EntryRef->pending is. Used for allocations. - * - * 0 signals that an entry of this kind should never have a pending entry. - */ - uint32 pending_size; - - /* - * For variable-numbered stats: flush pending stats. Required if pending - * data is used. - */ - bool (*flush_pending_cb) (PgStat_EntryRef *sr, bool nowait); - - /* - * For variable-numbered stats: delete pending stats. Optional. - */ - void (*delete_pending_cb) (PgStat_EntryRef *sr); - - /* - * For variable-numbered stats: reset the reset timestamp. Optional. - */ - void (*reset_timestamp_cb) (PgStatShared_Common *header, TimestampTz ts); - - /* - * For variable-numbered stats with named_on_disk. Optional. - */ - void (*to_serialized_name) (const PgStat_HashKey *key, - const PgStatShared_Common *header, NameData *name); - bool (*from_serialized_name) (const NameData *name, PgStat_HashKey *key); - - /* - * For fixed-numbered statistics: Reset All. - */ - void (*reset_all_cb) (TimestampTz ts); - - /* - * For fixed-numbered statistics: Build snapshot for entry - */ - void (*snapshot_cb) (void); - - /* name of the kind of stats */ - const char *const name; -} PgStat_KindInfo; - - -/* - * List of SLRU names that we keep stats for. There is no central registry of - * SLRUs, so we use this fixed list instead. The "other" entry is used for - * all SLRUs without an explicit entry (e.g. SLRUs in extensions). - * - * This is only defined here so that SLRU_NUM_ELEMENTS is known for later type - * definitions. - */ -static const char *const slru_names[] = { - "CommitTs", - "MultiXactMember", - "MultiXactOffset", - "Notify", - "Serial", - "Subtrans", - "Xact", - "other" /* has to be last */ -}; - -#define SLRU_NUM_ELEMENTS lengthof(slru_names) - - -/* ---------- - * Types and definitions for different kinds of fixed-amount stats. - * - * Single-writer stats use the changecount mechanism to achieve low-overhead - * writes - they're obviously more performance critical than reads. Check the - * definition of struct PgBackendStatus for some explanation of the - * changecount mechanism. - * - * Because the obvious implementation of resetting single-writer stats isn't - * compatible with that (another backend needs to write), we don't scribble on - * shared stats while resetting. Instead, just record the current counter - * values in a copy of the stats data, which is protected by ->lock. See - * pgstat_fetch_stat_(archiver|bgwriter|checkpointer) for the reader side. - * - * The only exception to that is the stat_reset_timestamp in these structs, - * which is protected by ->lock, because it has to be written by another - * backend while resetting. - * ---------- - */ - -typedef struct PgStatShared_Archiver -{ - /* lock protects ->reset_offset as well as stats->stat_reset_timestamp */ - LWLock lock; - uint32 changecount; - PgStat_ArchiverStats stats; - PgStat_ArchiverStats reset_offset; -} PgStatShared_Archiver; - -typedef struct PgStatShared_BgWriter -{ - /* lock protects ->reset_offset as well as stats->stat_reset_timestamp */ - LWLock lock; - uint32 changecount; - PgStat_BgWriterStats stats; - PgStat_BgWriterStats reset_offset; -} PgStatShared_BgWriter; - -typedef struct PgStatShared_Checkpointer -{ - /* lock protects ->reset_offset as well as stats->stat_reset_timestamp */ - LWLock lock; - uint32 changecount; - PgStat_CheckpointerStats stats; - PgStat_CheckpointerStats reset_offset; -} PgStatShared_Checkpointer; - -typedef struct PgStatShared_SLRU -{ - /* lock protects ->stats */ - LWLock lock; - PgStat_SLRUStats stats[SLRU_NUM_ELEMENTS]; -} PgStatShared_SLRU; - -typedef struct PgStatShared_Wal -{ - /* lock protects ->stats */ - LWLock lock; - PgStat_WalStats stats; -} PgStatShared_Wal; - - - -/* ---------- - * Types and definitions for different kinds of variable-amount stats. - * - * Each struct has to start with PgStatShared_Common, containing information - * common across the different types of stats. Kind-specific data follows. - * ---------- - */ - -typedef struct PgStatShared_Database -{ - PgStatShared_Common header; - PgStat_StatDBEntry stats; -} PgStatShared_Database; - -typedef struct PgStatShared_Relation -{ - PgStatShared_Common header; - PgStat_StatTabEntry stats; -} PgStatShared_Relation; - -typedef struct PgStatShared_Function -{ - PgStatShared_Common header; - PgStat_StatFuncEntry stats; -} PgStatShared_Function; - -typedef struct PgStatShared_Subscription -{ - PgStatShared_Common header; - PgStat_StatSubEntry stats; -} PgStatShared_Subscription; - -typedef struct PgStatShared_ReplSlot -{ - PgStatShared_Common header; - PgStat_StatReplSlotEntry stats; -} PgStatShared_ReplSlot; - - -/* - * Central shared memory entry for the cumulative stats system. - * - * Fixed amount stats, the dynamic shared memory hash table for - * non-fixed-amount stats, as well as remaining bits and pieces are all - * reached from here. - */ -typedef struct PgStat_ShmemControl -{ - void *raw_dsa_area; - - /* - * Stats for variable-numbered objects are kept in this shared hash table. - * See comment above PgStat_Kind for details. - */ - dshash_table_handle hash_handle; /* shared dbstat hash */ - - /* Has the stats system already been shut down? Just a debugging check. */ - bool is_shutdown; - - /* - * Whenever statistics for dropped objects could not be freed - because - * backends still have references - the dropping backend calls - * pgstat_request_entry_refs_gc() incrementing this counter. Eventually - * that causes backends to run pgstat_gc_entry_refs(), allowing memory to - * be reclaimed. - */ - pg_atomic_uint64 gc_request_count; - - /* - * Stats data for fixed-numbered objects. - */ - PgStatShared_Archiver archiver; - PgStatShared_BgWriter bgwriter; - PgStatShared_Checkpointer checkpointer; - PgStatShared_SLRU slru; - PgStatShared_Wal wal; -} PgStat_ShmemControl; - - -/* - * Cached statistics snapshot - */ -typedef struct PgStat_Snapshot -{ - PgStat_FetchConsistency mode; - - /* time at which snapshot was taken */ - TimestampTz snapshot_timestamp; - - bool fixed_valid[PGSTAT_NUM_KINDS]; - - PgStat_ArchiverStats archiver; - - PgStat_BgWriterStats bgwriter; - - PgStat_CheckpointerStats checkpointer; - - PgStat_SLRUStats slru[SLRU_NUM_ELEMENTS]; - - PgStat_WalStats wal; - - /* to free snapshot in bulk */ - MemoryContext context; - struct pgstat_snapshot_hash *stats; -} PgStat_Snapshot; - - -/* - * Collection of backend-local stats state. - */ -typedef struct PgStat_LocalState -{ - PgStat_ShmemControl *shmem; - dsa_area *dsa; - dshash_table *shared_hash; - - /* the current statistics snapshot */ - PgStat_Snapshot snapshot; -} PgStat_LocalState; - - -/* - * Inline functions defined further below. - */ - -static inline void pgstat_begin_changecount_write(uint32 *cc); -static inline void pgstat_end_changecount_write(uint32 *cc); -static inline uint32 pgstat_begin_changecount_read(uint32 *cc); -static inline bool pgstat_end_changecount_read(uint32 *cc, uint32 cc_before); - -static inline void pgstat_copy_changecounted_stats(void *dst, void *src, size_t len, - uint32 *cc); - -static inline int pgstat_cmp_hash_key(const void *a, const void *b, size_t size, void *arg); -static inline uint32 pgstat_hash_hash_key(const void *d, size_t size, void *arg); -static inline size_t pgstat_get_entry_len(PgStat_Kind kind); -static inline void *pgstat_get_entry_data(PgStat_Kind kind, PgStatShared_Common *entry); - - -/* - * Functions in pgstat.c - */ - -extern const PgStat_KindInfo *pgstat_get_kind_info(PgStat_Kind kind); - -#ifdef USE_ASSERT_CHECKING -extern void pgstat_assert_is_up(void); -#else -#define pgstat_assert_is_up() ((void)true) -#endif - -extern void pgstat_delete_pending_entry(PgStat_EntryRef *entry_ref); -extern PgStat_EntryRef *pgstat_prep_pending_entry(PgStat_Kind kind, Oid dboid, Oid objoid, bool *created_entry); -extern PgStat_EntryRef *pgstat_fetch_pending_entry(PgStat_Kind kind, Oid dboid, Oid objoid); - -extern void *pgstat_fetch_entry(PgStat_Kind kind, Oid dboid, Oid objoid); -extern void pgstat_snapshot_fixed(PgStat_Kind kind); - - -/* - * Functions in pgstat_archiver.c - */ - -extern void pgstat_archiver_reset_all_cb(TimestampTz ts); -extern void pgstat_archiver_snapshot_cb(void); - - -/* - * Functions in pgstat_bgwriter.c - */ - -extern void pgstat_bgwriter_reset_all_cb(TimestampTz ts); -extern void pgstat_bgwriter_snapshot_cb(void); - - -/* - * Functions in pgstat_checkpointer.c - */ - -extern void pgstat_checkpointer_reset_all_cb(TimestampTz ts); -extern void pgstat_checkpointer_snapshot_cb(void); - - -/* - * Functions in pgstat_database.c - */ - -extern void pgstat_report_disconnect(Oid dboid); -extern void pgstat_update_dbstats(TimestampTz ts); -extern void AtEOXact_PgStat_Database(bool isCommit, bool parallel); - -extern PgStat_StatDBEntry *pgstat_prep_database_pending(Oid dboid); -extern void pgstat_reset_database_timestamp(Oid dboid, TimestampTz ts); -extern bool pgstat_database_flush_cb(PgStat_EntryRef *entry_ref, bool nowait); -extern void pgstat_database_reset_timestamp_cb(PgStatShared_Common *header, TimestampTz ts); - - -/* - * Functions in pgstat_function.c - */ - -extern bool pgstat_function_flush_cb(PgStat_EntryRef *entry_ref, bool nowait); - - -/* - * Functions in pgstat_relation.c - */ - -extern void AtEOXact_PgStat_Relations(PgStat_SubXactStatus *xact_state, bool isCommit); -extern void AtEOSubXact_PgStat_Relations(PgStat_SubXactStatus *xact_state, bool isCommit, int nestDepth); -extern void AtPrepare_PgStat_Relations(PgStat_SubXactStatus *xact_state); -extern void PostPrepare_PgStat_Relations(PgStat_SubXactStatus *xact_state); - -extern bool pgstat_relation_flush_cb(PgStat_EntryRef *entry_ref, bool nowait); -extern void pgstat_relation_delete_pending_cb(PgStat_EntryRef *entry_ref); - - -/* - * Functions in pgstat_replslot.c - */ - -extern void pgstat_replslot_reset_timestamp_cb(PgStatShared_Common *header, TimestampTz ts); -extern void pgstat_replslot_to_serialized_name_cb(const PgStat_HashKey *key, const PgStatShared_Common *header, NameData *name); -extern bool pgstat_replslot_from_serialized_name_cb(const NameData *name, PgStat_HashKey *key); - - -/* - * Functions in pgstat_shmem.c - */ - -extern void pgstat_attach_shmem(void); -extern void pgstat_detach_shmem(void); - -extern PgStat_EntryRef *pgstat_get_entry_ref(PgStat_Kind kind, Oid dboid, Oid objoid, - bool create, bool *found); -extern bool pgstat_lock_entry(PgStat_EntryRef *entry_ref, bool nowait); -extern bool pgstat_lock_entry_shared(PgStat_EntryRef *entry_ref, bool nowait); -extern void pgstat_unlock_entry(PgStat_EntryRef *entry_ref); -extern bool pgstat_drop_entry(PgStat_Kind kind, Oid dboid, Oid objoid); -extern void pgstat_drop_all_entries(void); -extern PgStat_EntryRef *pgstat_get_entry_ref_locked(PgStat_Kind kind, Oid dboid, Oid objoid, - bool nowait); -extern void pgstat_reset_entry(PgStat_Kind kind, Oid dboid, Oid objoid, TimestampTz ts); -extern void pgstat_reset_entries_of_kind(PgStat_Kind kind, TimestampTz ts); -extern void pgstat_reset_matching_entries(bool (*do_reset) (PgStatShared_HashEntry *, Datum), - Datum match_data, - TimestampTz ts); - -extern void pgstat_request_entry_refs_gc(void); -extern PgStatShared_Common *pgstat_init_entry(PgStat_Kind kind, - PgStatShared_HashEntry *shhashent); - - -/* - * Functions in pgstat_slru.c - */ - -extern bool pgstat_slru_flush(bool nowait); -extern void pgstat_slru_reset_all_cb(TimestampTz ts); -extern void pgstat_slru_snapshot_cb(void); - - -/* - * Functions in pgstat_wal.c - */ - -extern bool pgstat_flush_wal(bool nowait); -extern void pgstat_init_wal(void); -extern bool pgstat_have_pending_wal(void); - -extern void pgstat_wal_reset_all_cb(TimestampTz ts); -extern void pgstat_wal_snapshot_cb(void); - - -/* - * Functions in pgstat_subscription.c - */ - -extern bool pgstat_subscription_flush_cb(PgStat_EntryRef *entry_ref, bool nowait); -extern void pgstat_subscription_reset_timestamp_cb(PgStatShared_Common *header, TimestampTz ts); - -/* - * Functions in pgstat_xact.c - */ - -extern PgStat_SubXactStatus *pgstat_get_xact_stack_level(int nest_level); -extern void pgstat_drop_transactional(PgStat_Kind kind, Oid dboid, Oid objoid); -extern void pgstat_create_transactional(PgStat_Kind kind, Oid dboid, Oid objoid); - - -/* - * Variables in pgstat.c - */ - -extern PGDLLIMPORT PgStat_LocalState pgStatLocal; - - -/* - * Variables in pgstat_slru.c - */ - -extern PGDLLIMPORT bool have_slrustats; - - -/* - * Implementation of inline functions declared above. - */ - -/* - * Helpers for changecount manipulation. See comments around struct - * PgBackendStatus for details. - */ - -static inline void -pgstat_begin_changecount_write(uint32 *cc) -{ - Assert((*cc & 1) == 0); - - START_CRIT_SECTION(); - (*cc)++; - pg_write_barrier(); -} - -static inline void -pgstat_end_changecount_write(uint32 *cc) -{ - Assert((*cc & 1) == 1); - - pg_write_barrier(); - - (*cc)++; - - END_CRIT_SECTION(); -} - -static inline uint32 -pgstat_begin_changecount_read(uint32 *cc) -{ - uint32 before_cc = *cc; - - CHECK_FOR_INTERRUPTS(); - - pg_read_barrier(); - - return before_cc; -} - -/* - * Returns true if the read succeeded, false if it needs to be repeated. - */ -static inline bool -pgstat_end_changecount_read(uint32 *cc, uint32 before_cc) -{ - uint32 after_cc; - - pg_read_barrier(); - - after_cc = *cc; - - /* was a write in progress when we started? */ - if (before_cc & 1) - return false; - - /* did writes start and complete while we read? */ - return before_cc == after_cc; -} - - -/* - * helper function for PgStat_KindInfo->snapshot_cb - * PgStat_KindInfo->reset_all_cb callbacks. - * - * Copies out the specified memory area following change-count protocol. - */ -static inline void -pgstat_copy_changecounted_stats(void *dst, void *src, size_t len, - uint32 *cc) -{ - uint32 cc_before; - - do - { - cc_before = pgstat_begin_changecount_read(cc); - - memcpy(dst, src, len); - } - while (!pgstat_end_changecount_read(cc, cc_before)); -} - -/* helpers for dshash / simplehash hashtables */ -static inline int -pgstat_cmp_hash_key(const void *a, const void *b, size_t size, void *arg) -{ - AssertArg(size == sizeof(PgStat_HashKey) && arg == NULL); - return memcmp(a, b, sizeof(PgStat_HashKey)); -} - -static inline uint32 -pgstat_hash_hash_key(const void *d, size_t size, void *arg) -{ - const PgStat_HashKey *key = (PgStat_HashKey *) d; - uint32 hash; - - AssertArg(size == sizeof(PgStat_HashKey) && arg == NULL); - - hash = murmurhash32(key->kind); - hash = hash_combine(hash, murmurhash32(key->dboid)); - hash = hash_combine(hash, murmurhash32(key->objoid)); - - return hash; -} - -/* - * The length of the data portion of a shared memory stats entry (i.e. without - * transient data such as refcounts, lwlocks, ...). - */ -static inline size_t -pgstat_get_entry_len(PgStat_Kind kind) -{ - return pgstat_get_kind_info(kind)->shared_data_len; -} - -/* - * Returns a pointer to the data portion of a shared memory stats entry. - */ -static inline void * -pgstat_get_entry_data(PgStat_Kind kind, PgStatShared_Common *entry) -{ - size_t off = pgstat_get_kind_info(kind)->shared_data_off; - - Assert(off != 0 && off < PG_UINT32_MAX); - - return ((char *) (entry)) + off; -} - -#endif /* PGSTAT_INTERNAL_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/pidfile.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/pidfile.h deleted file mode 100644 index 14bfba42a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/pidfile.h +++ /dev/null @@ -1,56 +0,0 @@ -/*------------------------------------------------------------------------- - * - * pidfile.h - * Declarations describing the data directory lock file (postmaster.pid) - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/pidfile.h - * - *------------------------------------------------------------------------- - */ -#ifndef UTILS_PIDFILE_H -#define UTILS_PIDFILE_H - -/* - * As of Postgres 10, the contents of the data-directory lock file are: - * - * line # - * 1 postmaster PID (or negative of a standalone backend's PID) - * 2 data directory path - * 3 postmaster start timestamp (time_t representation) - * 4 port number - * 5 first Unix socket directory path (empty if none) - * 6 first listen_address (IP address or "*"; empty if no TCP port) - * 7 shared memory key (empty on Windows) - * 8 postmaster status (see values below) - * - * Lines 6 and up are added via AddToDataDirLockFile() after initial file - * creation; also, line 5 is initially empty and is changed after the first - * Unix socket is opened. Onlookers should not assume that lines 4 and up - * are filled in any particular order. - * - * Socket lock file(s), if used, have the same contents as lines 1-5, with - * line 5 being their own directory. - */ -#define LOCK_FILE_LINE_PID 1 -#define LOCK_FILE_LINE_DATA_DIR 2 -#define LOCK_FILE_LINE_START_TIME 3 -#define LOCK_FILE_LINE_PORT 4 -#define LOCK_FILE_LINE_SOCKET_DIR 5 -#define LOCK_FILE_LINE_LISTEN_ADDR 6 -#define LOCK_FILE_LINE_SHMEM_KEY 7 -#define LOCK_FILE_LINE_PM_STATUS 8 - -/* - * The PM_STATUS line may contain one of these values. All these strings - * must be the same length, per comments for AddToDataDirLockFile(). - * We pad with spaces as needed to make that true. - */ -#define PM_STATUS_STARTING "starting" /* still starting up */ -#define PM_STATUS_STOPPING "stopping" /* in shutdown sequence */ -#define PM_STATUS_READY "ready " /* ready for connections */ -#define PM_STATUS_STANDBY "standby " /* up, won't accept connections */ - -#endif /* UTILS_PIDFILE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/plancache.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/plancache.h deleted file mode 100644 index 0499635f5..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/plancache.h +++ /dev/null @@ -1,236 +0,0 @@ -/*------------------------------------------------------------------------- - * - * plancache.h - * Plan cache definitions. - * - * See plancache.c for comments. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/plancache.h - * - *------------------------------------------------------------------------- - */ -#ifndef PLANCACHE_H -#define PLANCACHE_H - -#include "access/tupdesc.h" -#include "lib/ilist.h" -#include "nodes/params.h" -#include "tcop/cmdtag.h" -#include "utils/queryenvironment.h" -#include "utils/resowner.h" - - -/* Forward declaration, to avoid including parsenodes.h here */ -struct RawStmt; - -/* possible values for plan_cache_mode */ -typedef enum -{ - PLAN_CACHE_MODE_AUTO, - PLAN_CACHE_MODE_FORCE_GENERIC_PLAN, - PLAN_CACHE_MODE_FORCE_CUSTOM_PLAN -} PlanCacheMode; - -/* GUC parameter */ -extern PGDLLIMPORT int plan_cache_mode; - -#define CACHEDPLANSOURCE_MAGIC 195726186 -#define CACHEDPLAN_MAGIC 953717834 -#define CACHEDEXPR_MAGIC 838275847 - -/* - * CachedPlanSource (which might better have been called CachedQuery) - * represents a SQL query that we expect to use multiple times. It stores - * the query source text, the raw parse tree, and the analyzed-and-rewritten - * query tree, as well as adjunct data. Cache invalidation can happen as a - * result of DDL affecting objects used by the query. In that case we discard - * the analyzed-and-rewritten query tree, and rebuild it when next needed. - * - * An actual execution plan, represented by CachedPlan, is derived from the - * CachedPlanSource when we need to execute the query. The plan could be - * either generic (usable with any set of plan parameters) or custom (for a - * specific set of parameters). plancache.c contains the logic that decides - * which way to do it for any particular execution. If we are using a generic - * cached plan then it is meant to be re-used across multiple executions, so - * callers must always treat CachedPlans as read-only. - * - * Once successfully built and "saved", CachedPlanSources typically live - * for the life of the backend, although they can be dropped explicitly. - * CachedPlans are reference-counted and go away automatically when the last - * reference is dropped. A CachedPlan can outlive the CachedPlanSource it - * was created from. - * - * An "unsaved" CachedPlanSource can be used for generating plans, but it - * lives in transient storage and will not be updated in response to sinval - * events. - * - * CachedPlans made from saved CachedPlanSources are likewise in permanent - * storage, so to avoid memory leaks, the reference-counted references to them - * must be held in permanent data structures or ResourceOwners. CachedPlans - * made from unsaved CachedPlanSources are in children of the caller's - * memory context, so references to them should not be longer-lived than - * that context. (Reference counting is somewhat pro forma in that case, - * though it may be useful if the CachedPlan can be discarded early.) - * - * A CachedPlanSource has two associated memory contexts: one that holds the - * struct itself, the query source text and the raw parse tree, and another - * context that holds the rewritten query tree and associated data. This - * allows the query tree to be discarded easily when it is invalidated. - * - * Some callers wish to use the CachedPlan API even with one-shot queries - * that have no reason to be saved at all. We therefore support a "oneshot" - * variant that does no data copying or invalidation checking. In this case - * there are no separate memory contexts: the CachedPlanSource struct and - * all subsidiary data live in the caller's CurrentMemoryContext, and there - * is no way to free memory short of clearing that entire context. A oneshot - * plan is always treated as unsaved. - * - * Note: the string referenced by commandTag is not subsidiary storage; - * it is assumed to be a compile-time-constant string. As with portals, - * commandTag shall be NULL if and only if the original query string (before - * rewriting) was an empty string. - */ -typedef struct CachedPlanSource -{ - int magic; /* should equal CACHEDPLANSOURCE_MAGIC */ - struct RawStmt *raw_parse_tree; /* output of raw_parser(), or NULL */ - const char *query_string; /* source text of query */ - CommandTag commandTag; /* 'nuff said */ - Oid *param_types; /* array of parameter type OIDs, or NULL */ - int num_params; /* length of param_types array */ - ParserSetupHook parserSetup; /* alternative parameter spec method */ - void *parserSetupArg; - int cursor_options; /* cursor options used for planning */ - bool fixed_result; /* disallow change in result tupdesc? */ - TupleDesc resultDesc; /* result type; NULL = doesn't return tuples */ - MemoryContext context; /* memory context holding all above */ - /* These fields describe the current analyzed-and-rewritten query tree: */ - List *query_list; /* list of Query nodes, or NIL if not valid */ - List *relationOids; /* OIDs of relations the queries depend on */ - List *invalItems; /* other dependencies, as PlanInvalItems */ - struct OverrideSearchPath *search_path; /* search_path used for parsing - * and planning */ - MemoryContext query_context; /* context holding the above, or NULL */ - Oid rewriteRoleId; /* Role ID we did rewriting for */ - bool rewriteRowSecurity; /* row_security used during rewrite */ - bool dependsOnRLS; /* is rewritten query specific to the above? */ - /* If we have a generic plan, this is a reference-counted link to it: */ - struct CachedPlan *gplan; /* generic plan, or NULL if not valid */ - /* Some state flags: */ - bool is_oneshot; /* is it a "oneshot" plan? */ - bool is_complete; /* has CompleteCachedPlan been done? */ - bool is_saved; /* has CachedPlanSource been "saved"? */ - bool is_valid; /* is the query_list currently valid? */ - int generation; /* increments each time we create a plan */ - /* If CachedPlanSource has been saved, it is a member of a global list */ - dlist_node node; /* list link, if is_saved */ - /* State kept to help decide whether to use custom or generic plans: */ - double generic_cost; /* cost of generic plan, or -1 if not known */ - double total_custom_cost; /* total cost of custom plans so far */ - int64 num_custom_plans; /* # of custom plans included in total */ - int64 num_generic_plans; /* # of generic plans */ -} CachedPlanSource; - -/* - * CachedPlan represents an execution plan derived from a CachedPlanSource. - * The reference count includes both the link from the parent CachedPlanSource - * (if any), and any active plan executions, so the plan can be discarded - * exactly when refcount goes to zero. Both the struct itself and the - * subsidiary data live in the context denoted by the context field. - * This makes it easy to free a no-longer-needed cached plan. (However, - * if is_oneshot is true, the context does not belong solely to the CachedPlan - * so no freeing is possible.) - */ -typedef struct CachedPlan -{ - int magic; /* should equal CACHEDPLAN_MAGIC */ - List *stmt_list; /* list of PlannedStmts */ - bool is_oneshot; /* is it a "oneshot" plan? */ - bool is_saved; /* is CachedPlan in a long-lived context? */ - bool is_valid; /* is the stmt_list currently valid? */ - Oid planRoleId; /* Role ID the plan was created for */ - bool dependsOnRole; /* is plan specific to that role? */ - TransactionId saved_xmin; /* if valid, replan when TransactionXmin - * changes from this value */ - int generation; /* parent's generation number for this plan */ - int refcount; /* count of live references to this struct */ - MemoryContext context; /* context containing this CachedPlan */ -} CachedPlan; - -/* - * CachedExpression is a low-overhead mechanism for caching the planned form - * of standalone scalar expressions. While such expressions are not usually - * subject to cache invalidation events, that can happen, for example because - * of replacement of a SQL function that was inlined into the expression. - * The plancache takes care of storing the expression tree and marking it - * invalid if a cache invalidation occurs, but the caller must notice the - * !is_valid status and discard the obsolete expression without reusing it. - * We do not store the original parse tree, only the planned expression; - * this is an optimization based on the assumption that we usually will not - * need to replan for the life of the session. - */ -typedef struct CachedExpression -{ - int magic; /* should equal CACHEDEXPR_MAGIC */ - Node *expr; /* planned form of expression */ - bool is_valid; /* is the expression still valid? */ - /* remaining fields should be treated as private to plancache.c: */ - List *relationOids; /* OIDs of relations the expr depends on */ - List *invalItems; /* other dependencies, as PlanInvalItems */ - MemoryContext context; /* context containing this CachedExpression */ - dlist_node node; /* link in global list of CachedExpressions */ -} CachedExpression; - - -extern void InitPlanCache(void); -extern void ResetPlanCache(void); - -extern CachedPlanSource *CreateCachedPlan(struct RawStmt *raw_parse_tree, - const char *query_string, - CommandTag commandTag); -extern CachedPlanSource *CreateOneShotCachedPlan(struct RawStmt *raw_parse_tree, - const char *query_string, - CommandTag commandTag); -extern void CompleteCachedPlan(CachedPlanSource *plansource, - List *querytree_list, - MemoryContext querytree_context, - Oid *param_types, - int num_params, - ParserSetupHook parserSetup, - void *parserSetupArg, - int cursor_options, - bool fixed_result); - -extern void SaveCachedPlan(CachedPlanSource *plansource); -extern void DropCachedPlan(CachedPlanSource *plansource); - -extern void CachedPlanSetParentContext(CachedPlanSource *plansource, - MemoryContext newcontext); - -extern CachedPlanSource *CopyCachedPlan(CachedPlanSource *plansource); - -extern bool CachedPlanIsValid(CachedPlanSource *plansource); - -extern List *CachedPlanGetTargetList(CachedPlanSource *plansource, - QueryEnvironment *queryEnv); - -extern CachedPlan *GetCachedPlan(CachedPlanSource *plansource, - ParamListInfo boundParams, - ResourceOwner owner, - QueryEnvironment *queryEnv); -extern void ReleaseCachedPlan(CachedPlan *plan, ResourceOwner owner); - -extern bool CachedPlanAllowsSimpleValidityCheck(CachedPlanSource *plansource, - CachedPlan *plan, - ResourceOwner owner); -extern bool CachedPlanIsSimplyValid(CachedPlanSource *plansource, - CachedPlan *plan, - ResourceOwner owner); - -extern CachedExpression *GetCachedExpression(Node *expr); -extern void FreeCachedExpression(CachedExpression *cexpr); - -#endif /* PLANCACHE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/portal.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/portal.h deleted file mode 100644 index aeddbdafe..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/portal.h +++ /dev/null @@ -1,252 +0,0 @@ -/*------------------------------------------------------------------------- - * - * portal.h - * POSTGRES portal definitions. - * - * A portal is an abstraction which represents the execution state of - * a running or runnable query. Portals support both SQL-level CURSORs - * and protocol-level portals. - * - * Scrolling (nonsequential access) and suspension of execution are allowed - * only for portals that contain a single SELECT-type query. We do not want - * to let the client suspend an update-type query partway through! Because - * the query rewriter does not allow arbitrary ON SELECT rewrite rules, - * only queries that were originally update-type could produce multiple - * plan trees; so the restriction to a single query is not a problem - * in practice. - * - * For SQL cursors, we support three kinds of scroll behavior: - * - * (1) Neither NO SCROLL nor SCROLL was specified: to remain backward - * compatible, we allow backward fetches here, unless it would - * impose additional runtime overhead to do so. - * - * (2) NO SCROLL was specified: don't allow any backward fetches. - * - * (3) SCROLL was specified: allow all kinds of backward fetches, even - * if we need to take a performance hit to do so. (The planner sticks - * a Materialize node atop the query plan if needed.) - * - * Case #1 is converted to #2 or #3 by looking at the query itself and - * determining if scrollability can be supported without additional - * overhead. - * - * Protocol-level portals have no nonsequential-fetch API and so the - * distinction doesn't matter for them. They are always initialized - * to look like NO SCROLL cursors. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/portal.h - * - *------------------------------------------------------------------------- - */ -#ifndef PORTAL_H -#define PORTAL_H - -#include "datatype/timestamp.h" -#include "executor/execdesc.h" -#include "tcop/cmdtag.h" -#include "utils/plancache.h" -#include "utils/resowner.h" - -/* - * We have several execution strategies for Portals, depending on what - * query or queries are to be executed. (Note: in all cases, a Portal - * executes just a single source-SQL query, and thus produces just a - * single result from the user's viewpoint. However, the rule rewriter - * may expand the single source query to zero or many actual queries.) - * - * PORTAL_ONE_SELECT: the portal contains one single SELECT query. We run - * the Executor incrementally as results are demanded. This strategy also - * supports holdable cursors (the Executor results can be dumped into a - * tuplestore for access after transaction completion). - * - * PORTAL_ONE_RETURNING: the portal contains a single INSERT/UPDATE/DELETE - * query with a RETURNING clause (plus possibly auxiliary queries added by - * rule rewriting). On first execution, we run the portal to completion - * and dump the primary query's results into the portal tuplestore; the - * results are then returned to the client as demanded. (We can't support - * suspension of the query partway through, because the AFTER TRIGGER code - * can't cope, and also because we don't want to risk failing to execute - * all the auxiliary queries.) - * - * PORTAL_ONE_MOD_WITH: the portal contains one single SELECT query, but - * it has data-modifying CTEs. This is currently treated the same as the - * PORTAL_ONE_RETURNING case because of the possibility of needing to fire - * triggers. It may act more like PORTAL_ONE_SELECT in future. - * - * PORTAL_UTIL_SELECT: the portal contains a utility statement that returns - * a SELECT-like result (for example, EXPLAIN or SHOW). On first execution, - * we run the statement and dump its results into the portal tuplestore; - * the results are then returned to the client as demanded. - * - * PORTAL_MULTI_QUERY: all other cases. Here, we do not support partial - * execution: the portal's queries will be run to completion on first call. - */ -typedef enum PortalStrategy -{ - PORTAL_ONE_SELECT, - PORTAL_ONE_RETURNING, - PORTAL_ONE_MOD_WITH, - PORTAL_UTIL_SELECT, - PORTAL_MULTI_QUERY -} PortalStrategy; - -/* - * A portal is always in one of these states. It is possible to transit - * from ACTIVE back to READY if the query is not run to completion; - * otherwise we never back up in status. - */ -typedef enum PortalStatus -{ - PORTAL_NEW, /* freshly created */ - PORTAL_DEFINED, /* PortalDefineQuery done */ - PORTAL_READY, /* PortalStart complete, can run it */ - PORTAL_ACTIVE, /* portal is running (can't delete it) */ - PORTAL_DONE, /* portal is finished (don't re-run it) */ - PORTAL_FAILED /* portal got error (can't re-run it) */ -} PortalStatus; - -typedef struct PortalData *Portal; - -typedef struct PortalData -{ - /* Bookkeeping data */ - const char *name; /* portal's name */ - const char *prepStmtName; /* source prepared statement (NULL if none) */ - MemoryContext portalContext; /* subsidiary memory for portal */ - ResourceOwner resowner; /* resources owned by portal */ - void (*cleanup) (Portal portal); /* cleanup hook */ - - /* - * State data for remembering which subtransaction(s) the portal was - * created or used in. If the portal is held over from a previous - * transaction, both subxids are InvalidSubTransactionId. Otherwise, - * createSubid is the creating subxact and activeSubid is the last subxact - * in which we ran the portal. - */ - SubTransactionId createSubid; /* the creating subxact */ - SubTransactionId activeSubid; /* the last subxact with activity */ - int createLevel; /* creating subxact's nesting level */ - - /* The query or queries the portal will execute */ - const char *sourceText; /* text of query (as of 8.4, never NULL) */ - CommandTag commandTag; /* command tag for original query */ - QueryCompletion qc; /* command completion data for executed query */ - List *stmts; /* list of PlannedStmts */ - CachedPlan *cplan; /* CachedPlan, if stmts are from one */ - - ParamListInfo portalParams; /* params to pass to query */ - QueryEnvironment *queryEnv; /* environment for query */ - - /* Features/options */ - PortalStrategy strategy; /* see above */ - int cursorOptions; /* DECLARE CURSOR option bits */ - bool run_once; /* portal will only be run once */ - - /* Status data */ - PortalStatus status; /* see above */ - bool portalPinned; /* a pinned portal can't be dropped */ - bool autoHeld; /* was automatically converted from pinned to - * held (see HoldPinnedPortals()) */ - - /* If not NULL, Executor is active; call ExecutorEnd eventually: */ - QueryDesc *queryDesc; /* info needed for executor invocation */ - - /* If portal returns tuples, this is their tupdesc: */ - TupleDesc tupDesc; /* descriptor for result tuples */ - /* and these are the format codes to use for the columns: */ - int16 *formats; /* a format code for each column */ - - /* - * Outermost ActiveSnapshot for execution of the portal's queries. For - * all but a few utility commands, we require such a snapshot to exist. - * This ensures that TOAST references in query results can be detoasted, - * and helps to reduce thrashing of the process's exposed xmin. - */ - Snapshot portalSnapshot; /* active snapshot, or NULL if none */ - - /* - * Where we store tuples for a held cursor or a PORTAL_ONE_RETURNING or - * PORTAL_UTIL_SELECT query. (A cursor held past the end of its - * transaction no longer has any active executor state.) - */ - Tuplestorestate *holdStore; /* store for holdable cursors */ - MemoryContext holdContext; /* memory containing holdStore */ - - /* - * Snapshot under which tuples in the holdStore were read. We must keep a - * reference to this snapshot if there is any possibility that the tuples - * contain TOAST references, because releasing the snapshot could allow - * recently-dead rows to be vacuumed away, along with any toast data - * belonging to them. In the case of a held cursor, we avoid needing to - * keep such a snapshot by forcibly detoasting the data. - */ - Snapshot holdSnapshot; /* registered snapshot, or NULL if none */ - - /* - * atStart, atEnd and portalPos indicate the current cursor position. - * portalPos is zero before the first row, N after fetching N'th row of - * query. After we run off the end, portalPos = # of rows in query, and - * atEnd is true. Note that atStart implies portalPos == 0, but not the - * reverse: we might have backed up only as far as the first row, not to - * the start. Also note that various code inspects atStart and atEnd, but - * only the portal movement routines should touch portalPos. - */ - bool atStart; - bool atEnd; - uint64 portalPos; - - /* Presentation data, primarily used by the pg_cursors system view */ - TimestampTz creation_time; /* time at which this portal was defined */ - bool visible; /* include this portal in pg_cursors? */ -} PortalData; - -/* - * PortalIsValid - * True iff portal is valid. - */ -#define PortalIsValid(p) PointerIsValid(p) - - -/* Prototypes for functions in utils/mmgr/portalmem.c */ -extern void EnablePortalManager(void); -extern bool PreCommit_Portals(bool isPrepare); -extern void AtAbort_Portals(void); -extern void AtCleanup_Portals(void); -extern void PortalErrorCleanup(void); -extern void AtSubCommit_Portals(SubTransactionId mySubid, - SubTransactionId parentSubid, - int parentLevel, - ResourceOwner parentXactOwner); -extern void AtSubAbort_Portals(SubTransactionId mySubid, - SubTransactionId parentSubid, - ResourceOwner myXactOwner, - ResourceOwner parentXactOwner); -extern void AtSubCleanup_Portals(SubTransactionId mySubid); -extern Portal CreatePortal(const char *name, bool allowDup, bool dupSilent); -extern Portal CreateNewPortal(void); -extern void PinPortal(Portal portal); -extern void UnpinPortal(Portal portal); -extern void MarkPortalActive(Portal portal); -extern void MarkPortalDone(Portal portal); -extern void MarkPortalFailed(Portal portal); -extern void PortalDrop(Portal portal, bool isTopCommit); -extern Portal GetPortalByName(const char *name); -extern void PortalDefineQuery(Portal portal, - const char *prepStmtName, - const char *sourceText, - CommandTag commandTag, - List *stmts, - CachedPlan *cplan); -extern PlannedStmt *PortalGetPrimaryStmt(Portal portal); -extern void PortalCreateHoldStore(Portal portal); -extern void PortalHashTableDeleteAll(void); -extern bool ThereAreNoReadyPortals(void); -extern void HoldPinnedPortals(void); -extern void ForgetPortalSnapshots(void); - -#endif /* PORTAL_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/probes.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/probes.h deleted file mode 100644 index 54316d066..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/probes.h +++ /dev/null @@ -1,114 +0,0 @@ -#define TRACE_POSTGRESQL_TRANSACTION_START(INT1) do {} while (0) -#define TRACE_POSTGRESQL_TRANSACTION_START_ENABLED() (0) -#define TRACE_POSTGRESQL_TRANSACTION_COMMIT(INT1) do {} while (0) -#define TRACE_POSTGRESQL_TRANSACTION_COMMIT_ENABLED() (0) -#define TRACE_POSTGRESQL_TRANSACTION_ABORT(INT1) do {} while (0) -#define TRACE_POSTGRESQL_TRANSACTION_ABORT_ENABLED() (0) -#define TRACE_POSTGRESQL_LWLOCK_ACQUIRE(INT1, INT2) do {} while (0) -#define TRACE_POSTGRESQL_LWLOCK_ACQUIRE_ENABLED() (0) -#define TRACE_POSTGRESQL_LWLOCK_RELEASE(INT1) do {} while (0) -#define TRACE_POSTGRESQL_LWLOCK_RELEASE_ENABLED() (0) -#define TRACE_POSTGRESQL_LWLOCK_WAIT_START(INT1, INT2) do {} while (0) -#define TRACE_POSTGRESQL_LWLOCK_WAIT_START_ENABLED() (0) -#define TRACE_POSTGRESQL_LWLOCK_WAIT_DONE(INT1, INT2) do {} while (0) -#define TRACE_POSTGRESQL_LWLOCK_WAIT_DONE_ENABLED() (0) -#define TRACE_POSTGRESQL_LWLOCK_CONDACQUIRE(INT1, INT2) do {} while (0) -#define TRACE_POSTGRESQL_LWLOCK_CONDACQUIRE_ENABLED() (0) -#define TRACE_POSTGRESQL_LWLOCK_CONDACQUIRE_FAIL(INT1, INT2) do {} while (0) -#define TRACE_POSTGRESQL_LWLOCK_CONDACQUIRE_FAIL_ENABLED() (0) -#define TRACE_POSTGRESQL_LWLOCK_ACQUIRE_OR_WAIT(INT1, INT2) do {} while (0) -#define TRACE_POSTGRESQL_LWLOCK_ACQUIRE_OR_WAIT_ENABLED() (0) -#define TRACE_POSTGRESQL_LWLOCK_ACQUIRE_OR_WAIT_FAIL(INT1, INT2) do {} while (0) -#define TRACE_POSTGRESQL_LWLOCK_ACQUIRE_OR_WAIT_FAIL_ENABLED() (0) -#define TRACE_POSTGRESQL_LOCK_WAIT_START(INT1, INT2, INT3, INT4, INT5, INT6) do {} while (0) -#define TRACE_POSTGRESQL_LOCK_WAIT_START_ENABLED() (0) -#define TRACE_POSTGRESQL_LOCK_WAIT_DONE(INT1, INT2, INT3, INT4, INT5, INT6) do {} while (0) -#define TRACE_POSTGRESQL_LOCK_WAIT_DONE_ENABLED() (0) -#define TRACE_POSTGRESQL_QUERY_PARSE_START(INT1) do {} while (0) -#define TRACE_POSTGRESQL_QUERY_PARSE_START_ENABLED() (0) -#define TRACE_POSTGRESQL_QUERY_PARSE_DONE(INT1) do {} while (0) -#define TRACE_POSTGRESQL_QUERY_PARSE_DONE_ENABLED() (0) -#define TRACE_POSTGRESQL_QUERY_REWRITE_START(INT1) do {} while (0) -#define TRACE_POSTGRESQL_QUERY_REWRITE_START_ENABLED() (0) -#define TRACE_POSTGRESQL_QUERY_REWRITE_DONE(INT1) do {} while (0) -#define TRACE_POSTGRESQL_QUERY_REWRITE_DONE_ENABLED() (0) -#define TRACE_POSTGRESQL_QUERY_PLAN_START() do {} while (0) -#define TRACE_POSTGRESQL_QUERY_PLAN_START_ENABLED() (0) -#define TRACE_POSTGRESQL_QUERY_PLAN_DONE() do {} while (0) -#define TRACE_POSTGRESQL_QUERY_PLAN_DONE_ENABLED() (0) -#define TRACE_POSTGRESQL_QUERY_EXECUTE_START() do {} while (0) -#define TRACE_POSTGRESQL_QUERY_EXECUTE_START_ENABLED() (0) -#define TRACE_POSTGRESQL_QUERY_EXECUTE_DONE() do {} while (0) -#define TRACE_POSTGRESQL_QUERY_EXECUTE_DONE_ENABLED() (0) -#define TRACE_POSTGRESQL_QUERY_START(INT1) do {} while (0) -#define TRACE_POSTGRESQL_QUERY_START_ENABLED() (0) -#define TRACE_POSTGRESQL_QUERY_DONE(INT1) do {} while (0) -#define TRACE_POSTGRESQL_QUERY_DONE_ENABLED() (0) -#define TRACE_POSTGRESQL_STATEMENT_STATUS(INT1) do {} while (0) -#define TRACE_POSTGRESQL_STATEMENT_STATUS_ENABLED() (0) -#define TRACE_POSTGRESQL_SORT_START(INT1, INT2, INT3, INT4, INT5, INT6) do {} while (0) -#define TRACE_POSTGRESQL_SORT_START_ENABLED() (0) -#define TRACE_POSTGRESQL_SORT_DONE(INT1, INT2) do {} while (0) -#define TRACE_POSTGRESQL_SORT_DONE_ENABLED() (0) -#define TRACE_POSTGRESQL_BUFFER_READ_START(INT1, INT2, INT3, INT4, INT5, INT6, INT7) do {} while (0) -#define TRACE_POSTGRESQL_BUFFER_READ_START_ENABLED() (0) -#define TRACE_POSTGRESQL_BUFFER_READ_DONE(INT1, INT2, INT3, INT4, INT5, INT6, INT7, INT8) do {} while (0) -#define TRACE_POSTGRESQL_BUFFER_READ_DONE_ENABLED() (0) -#define TRACE_POSTGRESQL_BUFFER_FLUSH_START(INT1, INT2, INT3, INT4, INT5) do {} while (0) -#define TRACE_POSTGRESQL_BUFFER_FLUSH_START_ENABLED() (0) -#define TRACE_POSTGRESQL_BUFFER_FLUSH_DONE(INT1, INT2, INT3, INT4, INT5) do {} while (0) -#define TRACE_POSTGRESQL_BUFFER_FLUSH_DONE_ENABLED() (0) -#define TRACE_POSTGRESQL_BUFFER_CHECKPOINT_START(INT1) do {} while (0) -#define TRACE_POSTGRESQL_BUFFER_CHECKPOINT_START_ENABLED() (0) -#define TRACE_POSTGRESQL_BUFFER_CHECKPOINT_SYNC_START() do {} while (0) -#define TRACE_POSTGRESQL_BUFFER_CHECKPOINT_SYNC_START_ENABLED() (0) -#define TRACE_POSTGRESQL_BUFFER_CHECKPOINT_DONE() do {} while (0) -#define TRACE_POSTGRESQL_BUFFER_CHECKPOINT_DONE_ENABLED() (0) -#define TRACE_POSTGRESQL_BUFFER_SYNC_START(INT1, INT2) do {} while (0) -#define TRACE_POSTGRESQL_BUFFER_SYNC_START_ENABLED() (0) -#define TRACE_POSTGRESQL_BUFFER_SYNC_WRITTEN(INT1) do {} while (0) -#define TRACE_POSTGRESQL_BUFFER_SYNC_WRITTEN_ENABLED() (0) -#define TRACE_POSTGRESQL_BUFFER_SYNC_DONE(INT1, INT2, INT3) do {} while (0) -#define TRACE_POSTGRESQL_BUFFER_SYNC_DONE_ENABLED() (0) -#define TRACE_POSTGRESQL_BUFFER_WRITE_DIRTY_START(INT1, INT2, INT3, INT4, INT5) do {} while (0) -#define TRACE_POSTGRESQL_BUFFER_WRITE_DIRTY_START_ENABLED() (0) -#define TRACE_POSTGRESQL_BUFFER_WRITE_DIRTY_DONE(INT1, INT2, INT3, INT4, INT5) do {} while (0) -#define TRACE_POSTGRESQL_BUFFER_WRITE_DIRTY_DONE_ENABLED() (0) -#define TRACE_POSTGRESQL_DEADLOCK_FOUND() do {} while (0) -#define TRACE_POSTGRESQL_DEADLOCK_FOUND_ENABLED() (0) -#define TRACE_POSTGRESQL_CHECKPOINT_START(INT1) do {} while (0) -#define TRACE_POSTGRESQL_CHECKPOINT_START_ENABLED() (0) -#define TRACE_POSTGRESQL_CHECKPOINT_DONE(INT1, INT2, INT3, INT4, INT5) do {} while (0) -#define TRACE_POSTGRESQL_CHECKPOINT_DONE_ENABLED() (0) -#define TRACE_POSTGRESQL_CLOG_CHECKPOINT_START(INT1) do {} while (0) -#define TRACE_POSTGRESQL_CLOG_CHECKPOINT_START_ENABLED() (0) -#define TRACE_POSTGRESQL_CLOG_CHECKPOINT_DONE(INT1) do {} while (0) -#define TRACE_POSTGRESQL_CLOG_CHECKPOINT_DONE_ENABLED() (0) -#define TRACE_POSTGRESQL_SUBTRANS_CHECKPOINT_START(INT1) do {} while (0) -#define TRACE_POSTGRESQL_SUBTRANS_CHECKPOINT_START_ENABLED() (0) -#define TRACE_POSTGRESQL_SUBTRANS_CHECKPOINT_DONE(INT1) do {} while (0) -#define TRACE_POSTGRESQL_SUBTRANS_CHECKPOINT_DONE_ENABLED() (0) -#define TRACE_POSTGRESQL_MULTIXACT_CHECKPOINT_START(INT1) do {} while (0) -#define TRACE_POSTGRESQL_MULTIXACT_CHECKPOINT_START_ENABLED() (0) -#define TRACE_POSTGRESQL_MULTIXACT_CHECKPOINT_DONE(INT1) do {} while (0) -#define TRACE_POSTGRESQL_MULTIXACT_CHECKPOINT_DONE_ENABLED() (0) -#define TRACE_POSTGRESQL_TWOPHASE_CHECKPOINT_START() do {} while (0) -#define TRACE_POSTGRESQL_TWOPHASE_CHECKPOINT_START_ENABLED() (0) -#define TRACE_POSTGRESQL_TWOPHASE_CHECKPOINT_DONE() do {} while (0) -#define TRACE_POSTGRESQL_TWOPHASE_CHECKPOINT_DONE_ENABLED() (0) -#define TRACE_POSTGRESQL_SMGR_MD_READ_START(INT1, INT2, INT3, INT4, INT5, INT6) do {} while (0) -#define TRACE_POSTGRESQL_SMGR_MD_READ_START_ENABLED() (0) -#define TRACE_POSTGRESQL_SMGR_MD_READ_DONE(INT1, INT2, INT3, INT4, INT5, INT6, INT7, INT8) do {} while (0) -#define TRACE_POSTGRESQL_SMGR_MD_READ_DONE_ENABLED() (0) -#define TRACE_POSTGRESQL_SMGR_MD_WRITE_START(INT1, INT2, INT3, INT4, INT5, INT6) do {} while (0) -#define TRACE_POSTGRESQL_SMGR_MD_WRITE_START_ENABLED() (0) -#define TRACE_POSTGRESQL_SMGR_MD_WRITE_DONE(INT1, INT2, INT3, INT4, INT5, INT6, INT7, INT8) do {} while (0) -#define TRACE_POSTGRESQL_SMGR_MD_WRITE_DONE_ENABLED() (0) -#define TRACE_POSTGRESQL_WAL_INSERT(INT1, INT2) do {} while (0) -#define TRACE_POSTGRESQL_WAL_INSERT_ENABLED() (0) -#define TRACE_POSTGRESQL_WAL_SWITCH() do {} while (0) -#define TRACE_POSTGRESQL_WAL_SWITCH_ENABLED() (0) -#define TRACE_POSTGRESQL_WAL_BUFFER_WRITE_DIRTY_START() do {} while (0) -#define TRACE_POSTGRESQL_WAL_BUFFER_WRITE_DIRTY_START_ENABLED() (0) -#define TRACE_POSTGRESQL_WAL_BUFFER_WRITE_DIRTY_DONE() do {} while (0) -#define TRACE_POSTGRESQL_WAL_BUFFER_WRITE_DIRTY_DONE_ENABLED() (0) diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/ps_status.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/ps_status.h deleted file mode 100644 index bba463591..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/ps_status.h +++ /dev/null @@ -1,25 +0,0 @@ -/*------------------------------------------------------------------------- - * - * ps_status.h - * - * Declarations for backend/utils/misc/ps_status.c - * - * src/include/utils/ps_status.h - * - *------------------------------------------------------------------------- - */ - -#ifndef PS_STATUS_H -#define PS_STATUS_H - -extern PGDLLIMPORT bool update_process_title; - -extern char **save_ps_display_args(int argc, char **argv); - -extern void init_ps_display(const char *fixed_part); - -extern void set_ps_display(const char *activity); - -extern const char *get_ps_display(int *displen); - -#endif /* PS_STATUS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/queryenvironment.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/queryenvironment.h deleted file mode 100644 index 23a16a91d..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/queryenvironment.h +++ /dev/null @@ -1,74 +0,0 @@ -/*------------------------------------------------------------------------- - * - * queryenvironment.h - * Access to functions to mutate the query environment and retrieve the - * actual data related to entries (if any). - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/queryenvironment.h - * - *------------------------------------------------------------------------- - */ -#ifndef QUERYENVIRONMENT_H -#define QUERYENVIRONMENT_H - -#include "access/tupdesc.h" - - -typedef enum EphemeralNameRelationType -{ - ENR_NAMED_TUPLESTORE /* named tuplestore relation; e.g., deltas */ -} EphemeralNameRelationType; - -/* - * Some ephemeral named relations must match some relation (e.g., trigger - * transition tables), so to properly handle cached plans and DDL, we should - * carry the OID of that relation. In other cases an ENR might be independent - * of any relation which is stored in the system catalogs, so we need to be - * able to directly store the TupleDesc. We never need both. - */ -typedef struct EphemeralNamedRelationMetadataData -{ - char *name; /* name used to identify the relation */ - - /* only one of the next two fields should be used */ - Oid reliddesc; /* oid of relation to get tupdesc */ - TupleDesc tupdesc; /* description of result rows */ - - EphemeralNameRelationType enrtype; /* to identify type of relation */ - double enrtuples; /* estimated number of tuples */ -} EphemeralNamedRelationMetadataData; - -typedef EphemeralNamedRelationMetadataData *EphemeralNamedRelationMetadata; - -/* - * Ephemeral Named Relation data; used for parsing named relations not in the - * catalog, like transition tables in AFTER triggers. - */ -typedef struct EphemeralNamedRelationData -{ - EphemeralNamedRelationMetadataData md; - void *reldata; /* structure for execution-time access to data */ -} EphemeralNamedRelationData; - -typedef EphemeralNamedRelationData *EphemeralNamedRelation; - -/* - * This is an opaque structure outside of queryenvironment.c itself. The - * intention is to be able to change the implementation or add new context - * features without needing to change existing code for use of existing - * features. - */ -typedef struct QueryEnvironment QueryEnvironment; - - -extern QueryEnvironment *create_queryEnv(void); -extern EphemeralNamedRelationMetadata get_visible_ENR_metadata(QueryEnvironment *queryEnv, const char *refname); -extern void register_ENR(QueryEnvironment *queryEnv, EphemeralNamedRelation enr); -extern void unregister_ENR(QueryEnvironment *queryEnv, const char *name); -extern EphemeralNamedRelation get_ENR(QueryEnvironment *queryEnv, const char *name); -extern TupleDesc ENRMetadataGetTupDesc(EphemeralNamedRelationMetadata enrmd); - -#endif /* QUERYENVIRONMENT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/queryjumble.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/queryjumble.h deleted file mode 100644 index 3c2d9beab..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/queryjumble.h +++ /dev/null @@ -1,88 +0,0 @@ -/*------------------------------------------------------------------------- - * - * queryjumble.h - * Query normalization and fingerprinting. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * IDENTIFICATION - * src/include/utils/queryjumble.h - * - *------------------------------------------------------------------------- - */ -#ifndef QUERYJUBLE_H -#define QUERYJUBLE_H - -#include "nodes/parsenodes.h" - -#define JUMBLE_SIZE 1024 /* query serialization buffer size */ - -/* - * Struct for tracking locations/lengths of constants during normalization - */ -typedef struct LocationLen -{ - int location; /* start offset in query text */ - int length; /* length in bytes, or -1 to ignore */ -} LocationLen; - -/* - * Working state for computing a query jumble and producing a normalized - * query string - */ -typedef struct JumbleState -{ - /* Jumble of current query tree */ - unsigned char *jumble; - - /* Number of bytes used in jumble[] */ - Size jumble_len; - - /* Array of locations of constants that should be removed */ - LocationLen *clocations; - - /* Allocated length of clocations array */ - int clocations_buf_size; - - /* Current number of valid entries in clocations array */ - int clocations_count; - - /* highest Param id we've seen, in order to start normalization correctly */ - int highest_extern_param_id; -} JumbleState; - -/* Values for the compute_query_id GUC */ -enum ComputeQueryIdType -{ - COMPUTE_QUERY_ID_OFF, - COMPUTE_QUERY_ID_ON, - COMPUTE_QUERY_ID_AUTO, - COMPUTE_QUERY_ID_REGRESS -}; - -/* GUC parameters */ -extern PGDLLIMPORT int compute_query_id; - - -extern const char *CleanQuerytext(const char *query, int *location, int *len); -extern JumbleState *JumbleQuery(Query *query, const char *querytext); -extern void EnableQueryId(void); - -extern PGDLLIMPORT bool query_id_enabled; - -/* - * Returns whether query identifier computation has been enabled, either - * directly in the GUC or by a module when the setting is 'auto'. - */ -static inline bool -IsQueryIdEnabled(void) -{ - if (compute_query_id == COMPUTE_QUERY_ID_OFF) - return false; - if (compute_query_id == COMPUTE_QUERY_ID_ON) - return true; - return query_id_enabled; -} - -#endif /* QUERYJUMBLE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/regproc.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/regproc.h deleted file mode 100644 index a36ceba7a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/regproc.h +++ /dev/null @@ -1,39 +0,0 @@ -/*------------------------------------------------------------------------- - * - * regproc.h - * Functions for the built-in types regproc, regclass, regtype, etc. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/regproc.h - * - *------------------------------------------------------------------------- - */ -#ifndef REGPROC_H -#define REGPROC_H - -#include "nodes/pg_list.h" - -/* Control flags for format_procedure_extended */ -#define FORMAT_PROC_INVALID_AS_NULL 0x01 /* NULL if undefined */ -#define FORMAT_PROC_FORCE_QUALIFY 0x02 /* force qualification */ -extern char *format_procedure_extended(Oid procedure_oid, bits16 flags); - -/* Control flags for format_operator_extended */ -#define FORMAT_OPERATOR_INVALID_AS_NULL 0x01 /* NULL if undefined */ -#define FORMAT_OPERATOR_FORCE_QUALIFY 0x02 /* force qualification */ -extern char *format_operator_extended(Oid operator_oid, bits16 flags); - -extern List *stringToQualifiedNameList(const char *string); -extern char *format_procedure(Oid procedure_oid); -extern char *format_procedure_qualified(Oid procedure_oid); -extern void format_procedure_parts(Oid operator_oid, List **objnames, - List **objargs, bool missing_ok); - -extern char *format_operator(Oid operator_oid); -extern char *format_operator_qualified(Oid operator_oid); -extern void format_operator_parts(Oid operator_oid, List **objnames, - List **objargs, bool missing_ok); - -#endif diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/rel.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/rel.h deleted file mode 100644 index 1896a9a06..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/rel.h +++ /dev/null @@ -1,695 +0,0 @@ -/*------------------------------------------------------------------------- - * - * rel.h - * POSTGRES relation descriptor (a/k/a relcache entry) definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/rel.h - * - *------------------------------------------------------------------------- - */ -#ifndef REL_H -#define REL_H - -#include "access/tupdesc.h" -#include "access/xlog.h" -#include "catalog/pg_class.h" -#include "catalog/pg_index.h" -#include "catalog/pg_publication.h" -#include "nodes/bitmapset.h" -#include "partitioning/partdefs.h" -#include "rewrite/prs2lock.h" -#include "storage/block.h" -#include "storage/relfilenode.h" -#include "storage/smgr.h" -#include "utils/relcache.h" -#include "utils/reltrigger.h" - - -/* - * LockRelId and LockInfo really belong to lmgr.h, but it's more convenient - * to declare them here so we can have a LockInfoData field in a Relation. - */ - -typedef struct LockRelId -{ - Oid relId; /* a relation identifier */ - Oid dbId; /* a database identifier */ -} LockRelId; - -typedef struct LockInfoData -{ - LockRelId lockRelId; -} LockInfoData; - -typedef LockInfoData *LockInfo; - -/* - * Here are the contents of a relation cache entry. - */ - -typedef struct RelationData -{ - RelFileNode rd_node; /* relation physical identifier */ - SMgrRelation rd_smgr; /* cached file handle, or NULL */ - int rd_refcnt; /* reference count */ - BackendId rd_backend; /* owning backend id, if temporary relation */ - bool rd_islocaltemp; /* rel is a temp rel of this session */ - bool rd_isnailed; /* rel is nailed in cache */ - bool rd_isvalid; /* relcache entry is valid */ - bool rd_indexvalid; /* is rd_indexlist valid? (also rd_pkindex and - * rd_replidindex) */ - bool rd_statvalid; /* is rd_statlist valid? */ - - /*---------- - * rd_createSubid is the ID of the highest subtransaction the rel has - * survived into or zero if the rel or its rd_node was created before the - * current top transaction. (IndexStmt.oldNode leads to the case of a new - * rel with an old rd_node.) rd_firstRelfilenodeSubid is the ID of the - * highest subtransaction an rd_node change has survived into or zero if - * rd_node matches the value it had at the start of the current top - * transaction. (Rolling back the subtransaction that - * rd_firstRelfilenodeSubid denotes would restore rd_node to the value it - * had at the start of the current top transaction. Rolling back any - * lower subtransaction would not.) Their accuracy is critical to - * RelationNeedsWAL(). - * - * rd_newRelfilenodeSubid is the ID of the highest subtransaction the - * most-recent relfilenode change has survived into or zero if not changed - * in the current transaction (or we have forgotten changing it). This - * field is accurate when non-zero, but it can be zero when a relation has - * multiple new relfilenodes within a single transaction, with one of them - * occurring in a subsequently aborted subtransaction, e.g. - * BEGIN; - * TRUNCATE t; - * SAVEPOINT save; - * TRUNCATE t; - * ROLLBACK TO save; - * -- rd_newRelfilenodeSubid is now forgotten - * - * If every rd_*Subid field is zero, they are read-only outside - * relcache.c. Files that trigger rd_node changes by updating - * pg_class.reltablespace and/or pg_class.relfilenode call - * RelationAssumeNewRelfilenode() to update rd_*Subid. - * - * rd_droppedSubid is the ID of the highest subtransaction that a drop of - * the rel has survived into. In entries visible outside relcache.c, this - * is always zero. - */ - SubTransactionId rd_createSubid; /* rel was created in current xact */ - SubTransactionId rd_newRelfilenodeSubid; /* highest subxact changing - * rd_node to current value */ - SubTransactionId rd_firstRelfilenodeSubid; /* highest subxact changing - * rd_node to any value */ - SubTransactionId rd_droppedSubid; /* dropped with another Subid set */ - - Form_pg_class rd_rel; /* RELATION tuple */ - TupleDesc rd_att; /* tuple descriptor */ - Oid rd_id; /* relation's object id */ - LockInfoData rd_lockInfo; /* lock mgr's info for locking relation */ - RuleLock *rd_rules; /* rewrite rules */ - MemoryContext rd_rulescxt; /* private memory cxt for rd_rules, if any */ - TriggerDesc *trigdesc; /* Trigger info, or NULL if rel has none */ - /* use "struct" here to avoid needing to include rowsecurity.h: */ - struct RowSecurityDesc *rd_rsdesc; /* row security policies, or NULL */ - - /* data managed by RelationGetFKeyList: */ - List *rd_fkeylist; /* list of ForeignKeyCacheInfo (see below) */ - bool rd_fkeyvalid; /* true if list has been computed */ - - /* data managed by RelationGetPartitionKey: */ - PartitionKey rd_partkey; /* partition key, or NULL */ - MemoryContext rd_partkeycxt; /* private context for rd_partkey, if any */ - - /* data managed by RelationGetPartitionDesc: */ - PartitionDesc rd_partdesc; /* partition descriptor, or NULL */ - MemoryContext rd_pdcxt; /* private context for rd_partdesc, if any */ - - /* Same as above, for partdescs that omit detached partitions */ - PartitionDesc rd_partdesc_nodetached; /* partdesc w/o detached parts */ - MemoryContext rd_pddcxt; /* for rd_partdesc_nodetached, if any */ - - /* - * pg_inherits.xmin of the partition that was excluded in - * rd_partdesc_nodetached. This informs a future user of that partdesc: - * if this value is not in progress for the active snapshot, then the - * partdesc can be used, otherwise they have to build a new one. (This - * matches what find_inheritance_children_extended would do). - */ - TransactionId rd_partdesc_nodetached_xmin; - - /* data managed by RelationGetPartitionQual: */ - List *rd_partcheck; /* partition CHECK quals */ - bool rd_partcheckvalid; /* true if list has been computed */ - MemoryContext rd_partcheckcxt; /* private cxt for rd_partcheck, if any */ - - /* data managed by RelationGetIndexList: */ - List *rd_indexlist; /* list of OIDs of indexes on relation */ - Oid rd_pkindex; /* OID of primary key, if any */ - Oid rd_replidindex; /* OID of replica identity index, if any */ - - /* data managed by RelationGetStatExtList: */ - List *rd_statlist; /* list of OIDs of extended stats */ - - /* data managed by RelationGetIndexAttrBitmap: */ - Bitmapset *rd_indexattr; /* identifies columns used in indexes */ - Bitmapset *rd_keyattr; /* cols that can be ref'd by foreign keys */ - Bitmapset *rd_pkattr; /* cols included in primary key */ - Bitmapset *rd_idattr; /* included in replica identity index */ - - PublicationDesc *rd_pubdesc; /* publication descriptor, or NULL */ - - /* - * rd_options is set whenever rd_rel is loaded into the relcache entry. - * Note that you can NOT look into rd_rel for this data. NULL means "use - * defaults". - */ - bytea *rd_options; /* parsed pg_class.reloptions */ - - /* - * Oid of the handler for this relation. For an index this is a function - * returning IndexAmRoutine, for table like relations a function returning - * TableAmRoutine. This is stored separately from rd_indam, rd_tableam as - * its lookup requires syscache access, but during relcache bootstrap we - * need to be able to initialize rd_tableam without syscache lookups. - */ - Oid rd_amhandler; /* OID of index AM's handler function */ - - /* - * Table access method. - */ - const struct TableAmRoutine *rd_tableam; - - /* These are non-NULL only for an index relation: */ - Form_pg_index rd_index; /* pg_index tuple describing this index */ - /* use "struct" here to avoid needing to include htup.h: */ - struct HeapTupleData *rd_indextuple; /* all of pg_index tuple */ - - /* - * index access support info (used only for an index relation) - * - * Note: only default support procs for each opclass are cached, namely - * those with lefttype and righttype equal to the opclass's opcintype. The - * arrays are indexed by support function number, which is a sufficient - * identifier given that restriction. - */ - MemoryContext rd_indexcxt; /* private memory cxt for this stuff */ - /* use "struct" here to avoid needing to include amapi.h: */ - struct IndexAmRoutine *rd_indam; /* index AM's API struct */ - Oid *rd_opfamily; /* OIDs of op families for each index col */ - Oid *rd_opcintype; /* OIDs of opclass declared input data types */ - RegProcedure *rd_support; /* OIDs of support procedures */ - struct FmgrInfo *rd_supportinfo; /* lookup info for support procedures */ - int16 *rd_indoption; /* per-column AM-specific flags */ - List *rd_indexprs; /* index expression trees, if any */ - List *rd_indpred; /* index predicate tree, if any */ - Oid *rd_exclops; /* OIDs of exclusion operators, if any */ - Oid *rd_exclprocs; /* OIDs of exclusion ops' procs, if any */ - uint16 *rd_exclstrats; /* exclusion ops' strategy numbers, if any */ - Oid *rd_indcollation; /* OIDs of index collations */ - bytea **rd_opcoptions; /* parsed opclass-specific options */ - - /* - * rd_amcache is available for index and table AMs to cache private data - * about the relation. This must be just a cache since it may get reset - * at any time (in particular, it will get reset by a relcache inval - * message for the relation). If used, it must point to a single memory - * chunk palloc'd in CacheMemoryContext, or in rd_indexcxt for an index - * relation. A relcache reset will include freeing that chunk and setting - * rd_amcache = NULL. - */ - void *rd_amcache; /* available for use by index/table AM */ - - /* - * foreign-table support - * - * rd_fdwroutine must point to a single memory chunk palloc'd in - * CacheMemoryContext. It will be freed and reset to NULL on a relcache - * reset. - */ - - /* use "struct" here to avoid needing to include fdwapi.h: */ - struct FdwRoutine *rd_fdwroutine; /* cached function pointers, or NULL */ - - /* - * Hack for CLUSTER, rewriting ALTER TABLE, etc: when writing a new - * version of a table, we need to make any toast pointers inserted into it - * have the existing toast table's OID, not the OID of the transient toast - * table. If rd_toastoid isn't InvalidOid, it is the OID to place in - * toast pointers inserted into this rel. (Note it's set on the new - * version of the main heap, not the toast table itself.) This also - * causes toast_save_datum() to try to preserve toast value OIDs. - */ - Oid rd_toastoid; /* Real TOAST table's OID, or InvalidOid */ - - bool pgstat_enabled; /* should relation stats be counted */ - /* use "struct" here to avoid needing to include pgstat.h: */ - struct PgStat_TableStatus *pgstat_info; /* statistics collection area */ -} RelationData; - - -/* - * ForeignKeyCacheInfo - * Information the relcache can cache about foreign key constraints - * - * This is basically just an image of relevant columns from pg_constraint. - * We make it a subclass of Node so that copyObject() can be used on a list - * of these, but we also ensure it is a "flat" object without substructure, - * so that list_free_deep() is sufficient to free such a list. - * The per-FK-column arrays can be fixed-size because we allow at most - * INDEX_MAX_KEYS columns in a foreign key constraint. - * - * Currently, we mostly cache fields of interest to the planner, but the set - * of fields has already grown the constraint OID for other uses. - */ -typedef struct ForeignKeyCacheInfo -{ - NodeTag type; - Oid conoid; /* oid of the constraint itself */ - Oid conrelid; /* relation constrained by the foreign key */ - Oid confrelid; /* relation referenced by the foreign key */ - int nkeys; /* number of columns in the foreign key */ - /* these arrays each have nkeys valid entries: */ - AttrNumber conkey[INDEX_MAX_KEYS]; /* cols in referencing table */ - AttrNumber confkey[INDEX_MAX_KEYS]; /* cols in referenced table */ - Oid conpfeqop[INDEX_MAX_KEYS]; /* PK = FK operator OIDs */ -} ForeignKeyCacheInfo; - - -/* - * StdRdOptions - * Standard contents of rd_options for heaps. - * - * RelationGetFillFactor() and RelationGetTargetPageFreeSpace() can only - * be applied to relations that use this format or a superset for - * private options data. - */ - /* autovacuum-related reloptions. */ -typedef struct AutoVacOpts -{ - bool enabled; - int vacuum_threshold; - int vacuum_ins_threshold; - int analyze_threshold; - int vacuum_cost_limit; - int freeze_min_age; - int freeze_max_age; - int freeze_table_age; - int multixact_freeze_min_age; - int multixact_freeze_max_age; - int multixact_freeze_table_age; - int log_min_duration; - float8 vacuum_cost_delay; - float8 vacuum_scale_factor; - float8 vacuum_ins_scale_factor; - float8 analyze_scale_factor; -} AutoVacOpts; - -/* StdRdOptions->vacuum_index_cleanup values */ -typedef enum StdRdOptIndexCleanup -{ - STDRD_OPTION_VACUUM_INDEX_CLEANUP_AUTO = 0, - STDRD_OPTION_VACUUM_INDEX_CLEANUP_OFF, - STDRD_OPTION_VACUUM_INDEX_CLEANUP_ON -} StdRdOptIndexCleanup; - -typedef struct StdRdOptions -{ - int32 vl_len_; /* varlena header (do not touch directly!) */ - int fillfactor; /* page fill factor in percent (0..100) */ - int toast_tuple_target; /* target for tuple toasting */ - AutoVacOpts autovacuum; /* autovacuum-related options */ - bool user_catalog_table; /* use as an additional catalog relation */ - int parallel_workers; /* max number of parallel workers */ - StdRdOptIndexCleanup vacuum_index_cleanup; /* controls index vacuuming */ - bool vacuum_truncate; /* enables vacuum to truncate a relation */ -} StdRdOptions; - -#define HEAP_MIN_FILLFACTOR 10 -#define HEAP_DEFAULT_FILLFACTOR 100 - -/* - * RelationGetToastTupleTarget - * Returns the relation's toast_tuple_target. Note multiple eval of argument! - */ -#define RelationGetToastTupleTarget(relation, defaulttarg) \ - ((relation)->rd_options ? \ - ((StdRdOptions *) (relation)->rd_options)->toast_tuple_target : (defaulttarg)) - -/* - * RelationGetFillFactor - * Returns the relation's fillfactor. Note multiple eval of argument! - */ -#define RelationGetFillFactor(relation, defaultff) \ - ((relation)->rd_options ? \ - ((StdRdOptions *) (relation)->rd_options)->fillfactor : (defaultff)) - -/* - * RelationGetTargetPageUsage - * Returns the relation's desired space usage per page in bytes. - */ -#define RelationGetTargetPageUsage(relation, defaultff) \ - (BLCKSZ * RelationGetFillFactor(relation, defaultff) / 100) - -/* - * RelationGetTargetPageFreeSpace - * Returns the relation's desired freespace per page in bytes. - */ -#define RelationGetTargetPageFreeSpace(relation, defaultff) \ - (BLCKSZ * (100 - RelationGetFillFactor(relation, defaultff)) / 100) - -/* - * RelationIsUsedAsCatalogTable - * Returns whether the relation should be treated as a catalog table - * from the pov of logical decoding. Note multiple eval of argument! - */ -#define RelationIsUsedAsCatalogTable(relation) \ - ((relation)->rd_options && \ - ((relation)->rd_rel->relkind == RELKIND_RELATION || \ - (relation)->rd_rel->relkind == RELKIND_MATVIEW) ? \ - ((StdRdOptions *) (relation)->rd_options)->user_catalog_table : false) - -/* - * RelationGetParallelWorkers - * Returns the relation's parallel_workers reloption setting. - * Note multiple eval of argument! - */ -#define RelationGetParallelWorkers(relation, defaultpw) \ - ((relation)->rd_options ? \ - ((StdRdOptions *) (relation)->rd_options)->parallel_workers : (defaultpw)) - -/* ViewOptions->check_option values */ -typedef enum ViewOptCheckOption -{ - VIEW_OPTION_CHECK_OPTION_NOT_SET, - VIEW_OPTION_CHECK_OPTION_LOCAL, - VIEW_OPTION_CHECK_OPTION_CASCADED -} ViewOptCheckOption; - -/* - * ViewOptions - * Contents of rd_options for views - */ -typedef struct ViewOptions -{ - int32 vl_len_; /* varlena header (do not touch directly!) */ - bool security_barrier; - bool security_invoker; - ViewOptCheckOption check_option; -} ViewOptions; - -/* - * RelationIsSecurityView - * Returns whether the relation is security view, or not. Note multiple - * eval of argument! - */ -#define RelationIsSecurityView(relation) \ - (AssertMacro(relation->rd_rel->relkind == RELKIND_VIEW), \ - (relation)->rd_options ? \ - ((ViewOptions *) (relation)->rd_options)->security_barrier : false) - -/* - * RelationHasSecurityInvoker - * Returns true if the relation has the security_invoker property set. - * Note multiple eval of argument! - */ -#define RelationHasSecurityInvoker(relation) \ - (AssertMacro(relation->rd_rel->relkind == RELKIND_VIEW), \ - (relation)->rd_options ? \ - ((ViewOptions *) (relation)->rd_options)->security_invoker : false) - -/* - * RelationHasCheckOption - * Returns true if the relation is a view defined with either the local - * or the cascaded check option. Note multiple eval of argument! - */ -#define RelationHasCheckOption(relation) \ - (AssertMacro(relation->rd_rel->relkind == RELKIND_VIEW), \ - (relation)->rd_options && \ - ((ViewOptions *) (relation)->rd_options)->check_option != \ - VIEW_OPTION_CHECK_OPTION_NOT_SET) - -/* - * RelationHasLocalCheckOption - * Returns true if the relation is a view defined with the local check - * option. Note multiple eval of argument! - */ -#define RelationHasLocalCheckOption(relation) \ - (AssertMacro(relation->rd_rel->relkind == RELKIND_VIEW), \ - (relation)->rd_options && \ - ((ViewOptions *) (relation)->rd_options)->check_option == \ - VIEW_OPTION_CHECK_OPTION_LOCAL) - -/* - * RelationHasCascadedCheckOption - * Returns true if the relation is a view defined with the cascaded check - * option. Note multiple eval of argument! - */ -#define RelationHasCascadedCheckOption(relation) \ - (AssertMacro(relation->rd_rel->relkind == RELKIND_VIEW), \ - (relation)->rd_options && \ - ((ViewOptions *) (relation)->rd_options)->check_option == \ - VIEW_OPTION_CHECK_OPTION_CASCADED) - -/* - * RelationIsValid - * True iff relation descriptor is valid. - */ -#define RelationIsValid(relation) PointerIsValid(relation) - -#define InvalidRelation ((Relation) NULL) - -/* - * RelationHasReferenceCountZero - * True iff relation reference count is zero. - * - * Note: - * Assumes relation descriptor is valid. - */ -#define RelationHasReferenceCountZero(relation) \ - ((bool)((relation)->rd_refcnt == 0)) - -/* - * RelationGetForm - * Returns pg_class tuple for a relation. - * - * Note: - * Assumes relation descriptor is valid. - */ -#define RelationGetForm(relation) ((relation)->rd_rel) - -/* - * RelationGetRelid - * Returns the OID of the relation - */ -#define RelationGetRelid(relation) ((relation)->rd_id) - -/* - * RelationGetNumberOfAttributes - * Returns the total number of attributes in a relation. - */ -#define RelationGetNumberOfAttributes(relation) ((relation)->rd_rel->relnatts) - -/* - * IndexRelationGetNumberOfAttributes - * Returns the number of attributes in an index. - */ -#define IndexRelationGetNumberOfAttributes(relation) \ - ((relation)->rd_index->indnatts) - -/* - * IndexRelationGetNumberOfKeyAttributes - * Returns the number of key attributes in an index. - */ -#define IndexRelationGetNumberOfKeyAttributes(relation) \ - ((relation)->rd_index->indnkeyatts) - -/* - * RelationGetDescr - * Returns tuple descriptor for a relation. - */ -#define RelationGetDescr(relation) ((relation)->rd_att) - -/* - * RelationGetRelationName - * Returns the rel's name. - * - * Note that the name is only unique within the containing namespace. - */ -#define RelationGetRelationName(relation) \ - (NameStr((relation)->rd_rel->relname)) - -/* - * RelationGetNamespace - * Returns the rel's namespace OID. - */ -#define RelationGetNamespace(relation) \ - ((relation)->rd_rel->relnamespace) - -/* - * RelationIsMapped - * True if the relation uses the relfilenode map. Note multiple eval - * of argument! - */ -#define RelationIsMapped(relation) \ - (RELKIND_HAS_STORAGE((relation)->rd_rel->relkind) && \ - ((relation)->rd_rel->relfilenode == InvalidOid)) - -/* - * RelationGetSmgr - * Returns smgr file handle for a relation, opening it if needed. - * - * Very little code is authorized to touch rel->rd_smgr directly. Instead - * use this function to fetch its value. - * - * Note: since a relcache flush can cause the file handle to be closed again, - * it's unwise to hold onto the pointer returned by this function for any - * long period. Recommended practice is to just re-execute RelationGetSmgr - * each time you need to access the SMgrRelation. It's quite cheap in - * comparison to whatever an smgr function is going to do. - */ -static inline SMgrRelation -RelationGetSmgr(Relation rel) -{ - if (unlikely(rel->rd_smgr == NULL)) - smgrsetowner(&(rel->rd_smgr), smgropen(rel->rd_node, rel->rd_backend)); - return rel->rd_smgr; -} - -/* - * RelationCloseSmgr - * Close the relation at the smgr level, if not already done. - * - * Note: smgrclose should unhook from owner pointer, hence the Assert. - */ -#define RelationCloseSmgr(relation) \ - do { \ - if ((relation)->rd_smgr != NULL) \ - { \ - smgrclose((relation)->rd_smgr); \ - Assert((relation)->rd_smgr == NULL); \ - } \ - } while (0) - -/* - * RelationGetTargetBlock - * Fetch relation's current insertion target block. - * - * Returns InvalidBlockNumber if there is no current target block. Note - * that the target block status is discarded on any smgr-level invalidation, - * so there's no need to re-open the smgr handle if it's not currently open. - */ -#define RelationGetTargetBlock(relation) \ - ( (relation)->rd_smgr != NULL ? (relation)->rd_smgr->smgr_targblock : InvalidBlockNumber ) - -/* - * RelationSetTargetBlock - * Set relation's current insertion target block. - */ -#define RelationSetTargetBlock(relation, targblock) \ - do { \ - RelationGetSmgr(relation)->smgr_targblock = (targblock); \ - } while (0) - -/* - * RelationIsPermanent - * True if relation is permanent. - */ -#define RelationIsPermanent(relation) \ - ((relation)->rd_rel->relpersistence == RELPERSISTENCE_PERMANENT) - -/* - * RelationNeedsWAL - * True if relation needs WAL. - * - * Returns false if wal_level = minimal and this relation is created or - * truncated in the current transaction. See "Skipping WAL for New - * RelFileNode" in src/backend/access/transam/README. - */ -#define RelationNeedsWAL(relation) \ - (RelationIsPermanent(relation) && (XLogIsNeeded() || \ - (relation->rd_createSubid == InvalidSubTransactionId && \ - relation->rd_firstRelfilenodeSubid == InvalidSubTransactionId))) - -/* - * RelationUsesLocalBuffers - * True if relation's pages are stored in local buffers. - */ -#define RelationUsesLocalBuffers(relation) \ - ((relation)->rd_rel->relpersistence == RELPERSISTENCE_TEMP) - -/* - * RELATION_IS_LOCAL - * If a rel is either temp or newly created in the current transaction, - * it can be assumed to be accessible only to the current backend. - * This is typically used to decide that we can skip acquiring locks. - * - * Beware of multiple eval of argument - */ -#define RELATION_IS_LOCAL(relation) \ - ((relation)->rd_islocaltemp || \ - (relation)->rd_createSubid != InvalidSubTransactionId) - -/* - * RELATION_IS_OTHER_TEMP - * Test for a temporary relation that belongs to some other session. - * - * Beware of multiple eval of argument - */ -#define RELATION_IS_OTHER_TEMP(relation) \ - ((relation)->rd_rel->relpersistence == RELPERSISTENCE_TEMP && \ - !(relation)->rd_islocaltemp) - - -/* - * RelationIsScannable - * Currently can only be false for a materialized view which has not been - * populated by its query. This is likely to get more complicated later, - * so use a macro which looks like a function. - */ -#define RelationIsScannable(relation) ((relation)->rd_rel->relispopulated) - -/* - * RelationIsPopulated - * Currently, we don't physically distinguish the "populated" and - * "scannable" properties of matviews, but that may change later. - * Hence, use the appropriate one of these macros in code tests. - */ -#define RelationIsPopulated(relation) ((relation)->rd_rel->relispopulated) - -/* - * RelationIsAccessibleInLogicalDecoding - * True if we need to log enough information to have access via - * decoding snapshot. - */ -#define RelationIsAccessibleInLogicalDecoding(relation) \ - (XLogLogicalInfoActive() && \ - RelationNeedsWAL(relation) && \ - (IsCatalogRelation(relation) || RelationIsUsedAsCatalogTable(relation))) - -/* - * RelationIsLogicallyLogged - * True if we need to log enough information to extract the data from the - * WAL stream. - * - * We don't log information for unlogged tables (since they don't WAL log - * anyway), for foreign tables (since they don't WAL log, either), - * and for system tables (their content is hard to make sense of, and - * it would complicate decoding slightly for little gain). Note that we *do* - * log information for user defined catalog tables since they presumably are - * interesting to the user... - */ -#define RelationIsLogicallyLogged(relation) \ - (XLogLogicalInfoActive() && \ - RelationNeedsWAL(relation) && \ - (relation)->rd_rel->relkind != RELKIND_FOREIGN_TABLE && \ - !IsCatalogRelation(relation)) - -/* routines in utils/cache/relcache.c */ -extern void RelationIncrementReferenceCount(Relation rel); -extern void RelationDecrementReferenceCount(Relation rel); - -#endif /* REL_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/relcache.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/relcache.h deleted file mode 100644 index c93d8654b..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/relcache.h +++ /dev/null @@ -1,153 +0,0 @@ -/*------------------------------------------------------------------------- - * - * relcache.h - * Relation descriptor cache definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/relcache.h - * - *------------------------------------------------------------------------- - */ -#ifndef RELCACHE_H -#define RELCACHE_H - -#include "access/tupdesc.h" -#include "nodes/bitmapset.h" - - -/* - * Name of relcache init file(s), used to speed up backend startup - */ -#define RELCACHE_INIT_FILENAME "pg_internal.init" - -typedef struct RelationData *Relation; - -/* ---------------- - * RelationPtr is used in the executor to support index scans - * where we have to keep track of several index relations in an - * array. -cim 9/10/89 - * ---------------- - */ -typedef Relation *RelationPtr; - -/* - * Routines to open (lookup) and close a relcache entry - */ -extern Relation RelationIdGetRelation(Oid relationId); -extern void RelationClose(Relation relation); - -/* - * Routines to compute/retrieve additional cached information - */ -extern List *RelationGetFKeyList(Relation relation); -extern List *RelationGetIndexList(Relation relation); -extern List *RelationGetStatExtList(Relation relation); -extern Oid RelationGetPrimaryKeyIndex(Relation relation); -extern Oid RelationGetReplicaIndex(Relation relation); -extern List *RelationGetIndexExpressions(Relation relation); -extern List *RelationGetDummyIndexExpressions(Relation relation); -extern List *RelationGetIndexPredicate(Relation relation); -extern Datum *RelationGetIndexRawAttOptions(Relation relation); -extern bytea **RelationGetIndexAttOptions(Relation relation, bool copy); - -typedef enum IndexAttrBitmapKind -{ - INDEX_ATTR_BITMAP_ALL, - INDEX_ATTR_BITMAP_KEY, - INDEX_ATTR_BITMAP_PRIMARY_KEY, - INDEX_ATTR_BITMAP_IDENTITY_KEY -} IndexAttrBitmapKind; - -extern Bitmapset *RelationGetIndexAttrBitmap(Relation relation, - IndexAttrBitmapKind attrKind); - -extern Bitmapset *RelationGetIdentityKeyBitmap(Relation relation); - -extern void RelationGetExclusionInfo(Relation indexRelation, - Oid **operators, - Oid **procs, - uint16 **strategies); - -extern void RelationInitIndexAccessInfo(Relation relation); - -/* caller must include pg_publication.h */ -struct PublicationDesc; -extern void RelationBuildPublicationDesc(Relation relation, - struct PublicationDesc *pubdesc); - -extern void RelationInitTableAccessMethod(Relation relation); - -/* - * Routines to support ereport() reports of relation-related errors - */ -extern int errtable(Relation rel); -extern int errtablecol(Relation rel, int attnum); -extern int errtablecolname(Relation rel, const char *colname); -extern int errtableconstraint(Relation rel, const char *conname); - -/* - * Routines for backend startup - */ -extern void RelationCacheInitialize(void); -extern void RelationCacheInitializePhase2(void); -extern void RelationCacheInitializePhase3(void); - -/* - * Routine to create a relcache entry for an about-to-be-created relation - */ -extern Relation RelationBuildLocalRelation(const char *relname, - Oid relnamespace, - TupleDesc tupDesc, - Oid relid, - Oid accessmtd, - Oid relfilenode, - Oid reltablespace, - bool shared_relation, - bool mapped_relation, - char relpersistence, - char relkind); - -/* - * Routines to manage assignment of new relfilenode to a relation - */ -extern void RelationSetNewRelfilenode(Relation relation, char persistence); -extern void RelationAssumeNewRelfilenode(Relation relation); - -/* - * Routines for flushing/rebuilding relcache entries in various scenarios - */ -extern void RelationForgetRelation(Oid rid); - -extern void RelationCacheInvalidateEntry(Oid relationId); - -extern void RelationCacheInvalidate(bool debug_discard); - -extern void RelationCloseSmgrByOid(Oid relationId); - -#ifdef USE_ASSERT_CHECKING -extern void AssertPendingSyncs_RelationCache(void); -#else -#define AssertPendingSyncs_RelationCache() do {} while (0) -#endif -extern void AtEOXact_RelationCache(bool isCommit); -extern void AtEOSubXact_RelationCache(bool isCommit, SubTransactionId mySubid, - SubTransactionId parentSubid); - -/* - * Routines to help manage rebuilding of relcache init files - */ -extern bool RelationIdIsInInitFile(Oid relationId); -extern void RelationCacheInitFilePreInvalidate(void); -extern void RelationCacheInitFilePostInvalidate(void); -extern void RelationCacheInitFileRemove(void); - -/* should be used only by relcache.c and catcache.c */ -extern PGDLLIMPORT bool criticalRelcachesBuilt; - -/* should be used only by relcache.c and postinit.c */ -extern PGDLLIMPORT bool criticalSharedRelcachesBuilt; - -#endif /* RELCACHE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/reltrigger.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/reltrigger.h deleted file mode 100644 index 9bac164a4..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/reltrigger.h +++ /dev/null @@ -1,81 +0,0 @@ -/*------------------------------------------------------------------------- - * - * reltrigger.h - * POSTGRES relation trigger definitions. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/reltrigger.h - * - *------------------------------------------------------------------------- - */ -#ifndef RELTRIGGER_H -#define RELTRIGGER_H - - -/* - * These struct really belongs to trigger.h, but we put it separately so that - * it can be cleanly included in rel.h and other places. - */ - -typedef struct Trigger -{ - Oid tgoid; /* OID of trigger (pg_trigger row) */ - /* Remaining fields are copied from pg_trigger, see pg_trigger.h */ - char *tgname; - Oid tgfoid; - int16 tgtype; - char tgenabled; - bool tgisinternal; - bool tgisclone; - Oid tgconstrrelid; - Oid tgconstrindid; - Oid tgconstraint; - bool tgdeferrable; - bool tginitdeferred; - int16 tgnargs; - int16 tgnattr; - int16 *tgattr; - char **tgargs; - char *tgqual; - char *tgoldtable; - char *tgnewtable; -} Trigger; - -typedef struct TriggerDesc -{ - Trigger *triggers; /* array of Trigger structs */ - int numtriggers; /* number of array entries */ - - /* - * These flags indicate whether the array contains at least one of each - * type of trigger. We use these to skip searching the array if not. - */ - bool trig_insert_before_row; - bool trig_insert_after_row; - bool trig_insert_instead_row; - bool trig_insert_before_statement; - bool trig_insert_after_statement; - bool trig_update_before_row; - bool trig_update_after_row; - bool trig_update_instead_row; - bool trig_update_before_statement; - bool trig_update_after_statement; - bool trig_delete_before_row; - bool trig_delete_after_row; - bool trig_delete_instead_row; - bool trig_delete_before_statement; - bool trig_delete_after_statement; - /* there are no row-level truncate triggers */ - bool trig_truncate_before_statement; - bool trig_truncate_after_statement; - /* Is there at least one trigger specifying each transition relation? */ - bool trig_insert_new_table; - bool trig_update_old_table; - bool trig_update_new_table; - bool trig_delete_old_table; -} TriggerDesc; - -#endif /* RELTRIGGER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/resowner.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/resowner.h deleted file mode 100644 index 4aff7015f..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/resowner.h +++ /dev/null @@ -1,86 +0,0 @@ -/*------------------------------------------------------------------------- - * - * resowner.h - * POSTGRES resource owner definitions. - * - * Query-lifespan resources are tracked by associating them with - * ResourceOwner objects. This provides a simple mechanism for ensuring - * that such resources are freed at the right time. - * See utils/resowner/README for more info. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/resowner.h - * - *------------------------------------------------------------------------- - */ -#ifndef RESOWNER_H -#define RESOWNER_H - - -/* - * ResourceOwner objects are an opaque data structure known only within - * resowner.c. - */ -typedef struct ResourceOwnerData *ResourceOwner; - - -/* - * Globally known ResourceOwners - */ -extern PGDLLIMPORT ResourceOwner CurrentResourceOwner; -extern PGDLLIMPORT ResourceOwner CurTransactionResourceOwner; -extern PGDLLIMPORT ResourceOwner TopTransactionResourceOwner; -extern PGDLLIMPORT ResourceOwner AuxProcessResourceOwner; - -/* - * Resource releasing is done in three phases: pre-locks, locks, and - * post-locks. The pre-lock phase must release any resources that are - * visible to other backends (such as pinned buffers); this ensures that - * when we release a lock that another backend may be waiting on, it will - * see us as being fully out of our transaction. The post-lock phase - * should be used for backend-internal cleanup. - */ -typedef enum -{ - RESOURCE_RELEASE_BEFORE_LOCKS, - RESOURCE_RELEASE_LOCKS, - RESOURCE_RELEASE_AFTER_LOCKS -} ResourceReleasePhase; - -/* - * Dynamically loaded modules can get control during ResourceOwnerRelease - * by providing a callback of this form. - */ -typedef void (*ResourceReleaseCallback) (ResourceReleasePhase phase, - bool isCommit, - bool isTopLevel, - void *arg); - - -/* - * Functions in resowner.c - */ - -/* generic routines */ -extern ResourceOwner ResourceOwnerCreate(ResourceOwner parent, - const char *name); -extern void ResourceOwnerRelease(ResourceOwner owner, - ResourceReleasePhase phase, - bool isCommit, - bool isTopLevel); -extern void ResourceOwnerReleaseAllPlanCacheRefs(ResourceOwner owner); -extern void ResourceOwnerDelete(ResourceOwner owner); -extern ResourceOwner ResourceOwnerGetParent(ResourceOwner owner); -extern void ResourceOwnerNewParent(ResourceOwner owner, - ResourceOwner newparent); -extern void RegisterResourceReleaseCallback(ResourceReleaseCallback callback, - void *arg); -extern void UnregisterResourceReleaseCallback(ResourceReleaseCallback callback, - void *arg); -extern void CreateAuxProcessResourceOwner(void); -extern void ReleaseAuxProcessResources(bool isCommit); - -#endif /* RESOWNER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/rls.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/rls.h deleted file mode 100644 index 75259cc1f..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/rls.h +++ /dev/null @@ -1,50 +0,0 @@ -/*------------------------------------------------------------------------- - * - * rls.h - * Header file for Row Level Security (RLS) utility commands to be used - * with the rowsecurity feature. - * - * Copyright (c) 2007-2022, PostgreSQL Global Development Group - * - * src/include/utils/rls.h - * - *------------------------------------------------------------------------- - */ -#ifndef RLS_H -#define RLS_H - -/* GUC variable */ -extern PGDLLIMPORT bool row_security; - -/* - * Used by callers of check_enable_rls. - * - * RLS could be completely disabled on the tables involved in the query, - * which is the simple case, or it may depend on the current environment - * (the role which is running the query or the value of the row_security - * GUC), or it might be simply enabled as usual. - * - * If RLS isn't on the table involved then RLS_NONE is returned to indicate - * that we don't need to worry about invalidating the query plan for RLS - * reasons. If RLS is on the table, but we are bypassing it for now, then - * we return RLS_NONE_ENV to indicate that, if the environment changes, - * we need to invalidate and replan. Finally, if RLS should be turned on - * for the query, then we return RLS_ENABLED, which means we also need to - * invalidate if the environment changes. - * - * Note that RLS_ENABLED will also be returned if noError is true - * (indicating that the caller simply want to know if RLS should be applied - * for this user but doesn't want an error thrown if it is; this is used - * by other error cases where we're just trying to decide if data from the - * table should be passed back to the user or not). - */ -enum CheckEnableRlsResult -{ - RLS_NONE, - RLS_NONE_ENV, - RLS_ENABLED -}; - -extern int check_enable_rls(Oid relid, Oid checkAsUser, bool noError); - -#endif /* RLS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/ruleutils.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/ruleutils.h deleted file mode 100644 index 7d489718a..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/ruleutils.h +++ /dev/null @@ -1,47 +0,0 @@ -/*------------------------------------------------------------------------- - * - * ruleutils.h - * Declarations for ruleutils.c - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/ruleutils.h - * - *------------------------------------------------------------------------- - */ -#ifndef RULEUTILS_H -#define RULEUTILS_H - -#include "nodes/nodes.h" -#include "nodes/parsenodes.h" -#include "nodes/pg_list.h" - -struct Plan; /* avoid including plannodes.h here */ -struct PlannedStmt; - - -extern char *pg_get_indexdef_string(Oid indexrelid); -extern char *pg_get_indexdef_columns(Oid indexrelid, bool pretty); -extern char *pg_get_querydef(Query *query, bool pretty); - -extern char *pg_get_partkeydef_columns(Oid relid, bool pretty); -extern char *pg_get_partconstrdef_string(Oid partitionId, char *aliasname); - -extern char *pg_get_constraintdef_command(Oid constraintId); -extern char *deparse_expression(Node *expr, List *dpcontext, - bool forceprefix, bool showimplicit); -extern List *deparse_context_for(const char *aliasname, Oid relid); -extern List *deparse_context_for_plan_tree(struct PlannedStmt *pstmt, - List *rtable_names); -extern List *set_deparse_context_plan(List *dpcontext, - struct Plan *plan, List *ancestors); -extern List *select_rtable_names_for_explain(List *rtable, - Bitmapset *rels_used); -extern char *generate_collation_name(Oid collid); -extern char *generate_opclass_name(Oid opclass); -extern char *get_range_partbound_string(List *bound_datums); - -extern char *pg_get_statisticsobjdef_string(Oid statextid); - -#endif /* RULEUTILS_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/sharedtuplestore.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/sharedtuplestore.h deleted file mode 100644 index 79be13d54..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/sharedtuplestore.h +++ /dev/null @@ -1,61 +0,0 @@ -/*------------------------------------------------------------------------- - * - * sharedtuplestore.h - * Simple mechanism for sharing tuples between backends. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/sharedtuplestore.h - * - *------------------------------------------------------------------------- - */ -#ifndef SHAREDTUPLESTORE_H -#define SHAREDTUPLESTORE_H - -#include "access/htup.h" -#include "storage/fd.h" -#include "storage/sharedfileset.h" - -struct SharedTuplestore; -typedef struct SharedTuplestore SharedTuplestore; - -struct SharedTuplestoreAccessor; -typedef struct SharedTuplestoreAccessor SharedTuplestoreAccessor; - -/* - * A flag indicating that the tuplestore will only be scanned once, so backing - * files can be unlinked early. - */ -#define SHARED_TUPLESTORE_SINGLE_PASS 0x01 - -extern size_t sts_estimate(int participants); - -extern SharedTuplestoreAccessor *sts_initialize(SharedTuplestore *sts, - int participants, - int my_participant_number, - size_t meta_data_size, - int flags, - SharedFileSet *fileset, - const char *name); - -extern SharedTuplestoreAccessor *sts_attach(SharedTuplestore *sts, - int my_participant_number, - SharedFileSet *fileset); - -extern void sts_end_write(SharedTuplestoreAccessor *accessor); - -extern void sts_reinitialize(SharedTuplestoreAccessor *accessor); - -extern void sts_begin_parallel_scan(SharedTuplestoreAccessor *accessor); - -extern void sts_end_parallel_scan(SharedTuplestoreAccessor *accessor); - -extern void sts_puttuple(SharedTuplestoreAccessor *accessor, - void *meta_data, - MinimalTuple tuple); - -extern MinimalTuple sts_parallel_scan_next(SharedTuplestoreAccessor *accessor, - void *meta_data); - -#endif /* SHAREDTUPLESTORE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/snapmgr.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/snapmgr.h deleted file mode 100644 index 67b217b1c..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/snapmgr.h +++ /dev/null @@ -1,179 +0,0 @@ -/*------------------------------------------------------------------------- - * - * snapmgr.h - * POSTGRES snapshot manager - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/snapmgr.h - * - *------------------------------------------------------------------------- - */ -#ifndef SNAPMGR_H -#define SNAPMGR_H - -#include "access/transam.h" -#include "utils/relcache.h" -#include "utils/resowner.h" -#include "utils/snapshot.h" - - -/* - * The structure used to map times to TransactionId values for the "snapshot - * too old" feature must have a few entries at the tail to hold old values; - * otherwise the lookup will often fail and the expected early pruning or - * vacuum will not usually occur. It is best if this padding is for a number - * of minutes greater than a thread would normally be stalled, but it's OK if - * early vacuum opportunities are occasionally missed, so there's no need to - * use an extreme value or get too fancy. 10 minutes seems plenty. - */ -#define OLD_SNAPSHOT_PADDING_ENTRIES 10 -#define OLD_SNAPSHOT_TIME_MAP_ENTRIES (old_snapshot_threshold + OLD_SNAPSHOT_PADDING_ENTRIES) - -/* - * Common definition of relation properties that allow early pruning/vacuuming - * when old_snapshot_threshold >= 0. - */ -#define RelationAllowsEarlyPruning(rel) \ -( \ - RelationIsPermanent(rel) && !IsCatalogRelation(rel) \ - && !RelationIsAccessibleInLogicalDecoding(rel) \ -) - -#define EarlyPruningEnabled(rel) (old_snapshot_threshold >= 0 && RelationAllowsEarlyPruning(rel)) - -/* GUC variables */ -extern PGDLLIMPORT int old_snapshot_threshold; - - -extern Size SnapMgrShmemSize(void); -extern void SnapMgrInit(void); -extern TimestampTz GetSnapshotCurrentTimestamp(void); -extern TimestampTz GetOldSnapshotThresholdTimestamp(void); -extern void SnapshotTooOldMagicForTest(void); - -extern PGDLLIMPORT bool FirstSnapshotSet; - -extern PGDLLIMPORT TransactionId TransactionXmin; -extern PGDLLIMPORT TransactionId RecentXmin; - -/* Variables representing various special snapshot semantics */ -extern PGDLLIMPORT SnapshotData SnapshotSelfData; -extern PGDLLIMPORT SnapshotData SnapshotAnyData; -extern PGDLLIMPORT SnapshotData CatalogSnapshotData; - -#define SnapshotSelf (&SnapshotSelfData) -#define SnapshotAny (&SnapshotAnyData) - -/* - * We don't provide a static SnapshotDirty variable because it would be - * non-reentrant. Instead, users of that snapshot type should declare a - * local variable of type SnapshotData, and initialize it with this macro. - */ -#define InitDirtySnapshot(snapshotdata) \ - ((snapshotdata).snapshot_type = SNAPSHOT_DIRTY) - -/* - * Similarly, some initialization is required for a NonVacuumable snapshot. - * The caller must supply the visibility cutoff state to use (c.f. - * GlobalVisTestFor()). - */ -#define InitNonVacuumableSnapshot(snapshotdata, vistestp) \ - ((snapshotdata).snapshot_type = SNAPSHOT_NON_VACUUMABLE, \ - (snapshotdata).vistest = (vistestp)) - -/* - * Similarly, some initialization is required for SnapshotToast. We need - * to set lsn and whenTaken correctly to support snapshot_too_old. - */ -#define InitToastSnapshot(snapshotdata, l, w) \ - ((snapshotdata).snapshot_type = SNAPSHOT_TOAST, \ - (snapshotdata).lsn = (l), \ - (snapshotdata).whenTaken = (w)) - -/* This macro encodes the knowledge of which snapshots are MVCC-safe */ -#define IsMVCCSnapshot(snapshot) \ - ((snapshot)->snapshot_type == SNAPSHOT_MVCC || \ - (snapshot)->snapshot_type == SNAPSHOT_HISTORIC_MVCC) - -static inline bool -OldSnapshotThresholdActive(void) -{ - return old_snapshot_threshold >= 0; -} - -extern Snapshot GetTransactionSnapshot(void); -extern Snapshot GetLatestSnapshot(void); -extern void SnapshotSetCommandId(CommandId curcid); -extern Snapshot GetOldestSnapshot(void); - -extern Snapshot GetCatalogSnapshot(Oid relid); -extern Snapshot GetNonHistoricCatalogSnapshot(Oid relid); -extern void InvalidateCatalogSnapshot(void); -extern void InvalidateCatalogSnapshotConditionally(void); - -extern void PushActiveSnapshot(Snapshot snapshot); -extern void PushActiveSnapshotWithLevel(Snapshot snapshot, int snap_level); -extern void PushCopiedSnapshot(Snapshot snapshot); -extern void UpdateActiveSnapshotCommandId(void); -extern void PopActiveSnapshot(void); -extern Snapshot GetActiveSnapshot(void); -extern bool ActiveSnapshotSet(void); - -extern Snapshot RegisterSnapshot(Snapshot snapshot); -extern void UnregisterSnapshot(Snapshot snapshot); -extern Snapshot RegisterSnapshotOnOwner(Snapshot snapshot, ResourceOwner owner); -extern void UnregisterSnapshotFromOwner(Snapshot snapshot, ResourceOwner owner); - -extern void AtSubCommit_Snapshot(int level); -extern void AtSubAbort_Snapshot(int level); -extern void AtEOXact_Snapshot(bool isCommit, bool resetXmin); - -extern void ImportSnapshot(const char *idstr); -extern bool XactHasExportedSnapshots(void); -extern void DeleteAllExportedSnapshotFiles(void); -extern void WaitForOlderSnapshots(TransactionId limitXmin, bool progress); -extern bool ThereAreNoPriorRegisteredSnapshots(void); -extern bool HaveRegisteredOrActiveSnapshot(void); -extern bool TransactionIdLimitedForOldSnapshots(TransactionId recentXmin, - Relation relation, - TransactionId *limit_xid, - TimestampTz *limit_ts); -extern void SetOldSnapshotThresholdTimestamp(TimestampTz ts, TransactionId xlimit); -extern void MaintainOldSnapshotTimeMapping(TimestampTz whenTaken, - TransactionId xmin); - -extern char *ExportSnapshot(Snapshot snapshot); - -/* - * These live in procarray.c because they're intimately linked to the - * procarray contents, but thematically they better fit into snapmgr.h. - */ -typedef struct GlobalVisState GlobalVisState; -extern GlobalVisState *GlobalVisTestFor(Relation rel); -extern bool GlobalVisTestIsRemovableXid(GlobalVisState *state, TransactionId xid); -extern bool GlobalVisTestIsRemovableFullXid(GlobalVisState *state, FullTransactionId fxid); -extern FullTransactionId GlobalVisTestNonRemovableFullHorizon(GlobalVisState *state); -extern TransactionId GlobalVisTestNonRemovableHorizon(GlobalVisState *state); -extern bool GlobalVisCheckRemovableXid(Relation rel, TransactionId xid); -extern bool GlobalVisCheckRemovableFullXid(Relation rel, FullTransactionId fxid); - -/* - * Utility functions for implementing visibility routines in table AMs. - */ -extern bool XidInMVCCSnapshot(TransactionId xid, Snapshot snapshot); - -/* Support for catalog timetravel for logical decoding */ -struct HTAB; -extern struct HTAB *HistoricSnapshotGetTupleCids(void); -extern void SetupHistoricSnapshot(Snapshot snapshot_now, struct HTAB *tuplecids); -extern void TeardownHistoricSnapshot(bool is_error); -extern bool HistoricSnapshotActive(void); - -extern Size EstimateSnapshotSpace(Snapshot snapshot); -extern void SerializeSnapshot(Snapshot snapshot, char *start_address); -extern Snapshot RestoreSnapshot(char *start_address); -extern void RestoreTransactionSnapshot(Snapshot snapshot, void *source_pgproc); - -#endif /* SNAPMGR_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/snapshot.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/snapshot.h deleted file mode 100644 index 4e96f1afd..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/snapshot.h +++ /dev/null @@ -1,219 +0,0 @@ -/*------------------------------------------------------------------------- - * - * snapshot.h - * POSTGRES snapshot definition - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/snapshot.h - * - *------------------------------------------------------------------------- - */ -#ifndef SNAPSHOT_H -#define SNAPSHOT_H - -#include "access/htup.h" -#include "access/xlogdefs.h" -#include "datatype/timestamp.h" -#include "lib/pairingheap.h" -#include "storage/buf.h" - - -/* - * The different snapshot types. We use SnapshotData structures to represent - * both "regular" (MVCC) snapshots and "special" snapshots that have non-MVCC - * semantics. The specific semantics of a snapshot are encoded by its type. - * - * The behaviour of each type of snapshot should be documented alongside its - * enum value, best in terms that are not specific to an individual table AM. - * - * The reason the snapshot type rather than a callback as it used to be is - * that that allows to use the same snapshot for different table AMs without - * having one callback per AM. - */ -typedef enum SnapshotType -{ - /*------------------------------------------------------------------------- - * A tuple is visible iff the tuple is valid for the given MVCC snapshot. - * - * Here, we consider the effects of: - * - all transactions committed as of the time of the given snapshot - * - previous commands of this transaction - * - * Does _not_ include: - * - transactions shown as in-progress by the snapshot - * - transactions started after the snapshot was taken - * - changes made by the current command - * ------------------------------------------------------------------------- - */ - SNAPSHOT_MVCC = 0, - - /*------------------------------------------------------------------------- - * A tuple is visible iff the tuple is valid "for itself". - * - * Here, we consider the effects of: - * - all committed transactions (as of the current instant) - * - previous commands of this transaction - * - changes made by the current command - * - * Does _not_ include: - * - in-progress transactions (as of the current instant) - * ------------------------------------------------------------------------- - */ - SNAPSHOT_SELF, - - /* - * Any tuple is visible. - */ - SNAPSHOT_ANY, - - /* - * A tuple is visible iff the tuple is valid as a TOAST row. - */ - SNAPSHOT_TOAST, - - /*------------------------------------------------------------------------- - * A tuple is visible iff the tuple is valid including effects of open - * transactions. - * - * Here, we consider the effects of: - * - all committed and in-progress transactions (as of the current instant) - * - previous commands of this transaction - * - changes made by the current command - * - * This is essentially like SNAPSHOT_SELF as far as effects of the current - * transaction and committed/aborted xacts are concerned. However, it - * also includes the effects of other xacts still in progress. - * - * A special hack is that when a snapshot of this type is used to - * determine tuple visibility, the passed-in snapshot struct is used as an - * output argument to return the xids of concurrent xacts that affected - * the tuple. snapshot->xmin is set to the tuple's xmin if that is - * another transaction that's still in progress; or to - * InvalidTransactionId if the tuple's xmin is committed good, committed - * dead, or my own xact. Similarly for snapshot->xmax and the tuple's - * xmax. If the tuple was inserted speculatively, meaning that the - * inserter might still back down on the insertion without aborting the - * whole transaction, the associated token is also returned in - * snapshot->speculativeToken. See also InitDirtySnapshot(). - * ------------------------------------------------------------------------- - */ - SNAPSHOT_DIRTY, - - /* - * A tuple is visible iff it follows the rules of SNAPSHOT_MVCC, but - * supports being called in timetravel context (for decoding catalog - * contents in the context of logical decoding). - */ - SNAPSHOT_HISTORIC_MVCC, - - /* - * A tuple is visible iff the tuple might be visible to some transaction; - * false if it's surely dead to everyone, i.e., vacuumable. - * - * For visibility checks snapshot->min must have been set up with the xmin - * horizon to use. - */ - SNAPSHOT_NON_VACUUMABLE -} SnapshotType; - -typedef struct SnapshotData *Snapshot; - -#define InvalidSnapshot ((Snapshot) NULL) - -/* - * Struct representing all kind of possible snapshots. - * - * There are several different kinds of snapshots: - * * Normal MVCC snapshots - * * MVCC snapshots taken during recovery (in Hot-Standby mode) - * * Historic MVCC snapshots used during logical decoding - * * snapshots passed to HeapTupleSatisfiesDirty() - * * snapshots passed to HeapTupleSatisfiesNonVacuumable() - * * snapshots used for SatisfiesAny, Toast, Self where no members are - * accessed. - * - * TODO: It's probably a good idea to split this struct using a NodeTag - * similar to how parser and executor nodes are handled, with one type for - * each different kind of snapshot to avoid overloading the meaning of - * individual fields. - */ -typedef struct SnapshotData -{ - SnapshotType snapshot_type; /* type of snapshot */ - - /* - * The remaining fields are used only for MVCC snapshots, and are normally - * just zeroes in special snapshots. (But xmin and xmax are used - * specially by HeapTupleSatisfiesDirty, and xmin is used specially by - * HeapTupleSatisfiesNonVacuumable.) - * - * An MVCC snapshot can never see the effects of XIDs >= xmax. It can see - * the effects of all older XIDs except those listed in the snapshot. xmin - * is stored as an optimization to avoid needing to search the XID arrays - * for most tuples. - */ - TransactionId xmin; /* all XID < xmin are visible to me */ - TransactionId xmax; /* all XID >= xmax are invisible to me */ - - /* - * For normal MVCC snapshot this contains the all xact IDs that are in - * progress, unless the snapshot was taken during recovery in which case - * it's empty. For historic MVCC snapshots, the meaning is inverted, i.e. - * it contains *committed* transactions between xmin and xmax. - * - * note: all ids in xip[] satisfy xmin <= xip[i] < xmax - */ - TransactionId *xip; - uint32 xcnt; /* # of xact ids in xip[] */ - - /* - * For non-historic MVCC snapshots, this contains subxact IDs that are in - * progress (and other transactions that are in progress if taken during - * recovery). For historic snapshot it contains *all* xids assigned to the - * replayed transaction, including the toplevel xid. - * - * note: all ids in subxip[] are >= xmin, but we don't bother filtering - * out any that are >= xmax - */ - TransactionId *subxip; - int32 subxcnt; /* # of xact ids in subxip[] */ - bool suboverflowed; /* has the subxip array overflowed? */ - - bool takenDuringRecovery; /* recovery-shaped snapshot? */ - bool copied; /* false if it's a static snapshot */ - - CommandId curcid; /* in my xact, CID < curcid are visible */ - - /* - * An extra return value for HeapTupleSatisfiesDirty, not used in MVCC - * snapshots. - */ - uint32 speculativeToken; - - /* - * For SNAPSHOT_NON_VACUUMABLE (and hopefully more in the future) this is - * used to determine whether row could be vacuumed. - */ - struct GlobalVisState *vistest; - - /* - * Book-keeping information, used by the snapshot manager - */ - uint32 active_count; /* refcount on ActiveSnapshot stack */ - uint32 regd_count; /* refcount on RegisteredSnapshots */ - pairingheap_node ph_node; /* link in the RegisteredSnapshots heap */ - - TimestampTz whenTaken; /* timestamp when snapshot was taken */ - XLogRecPtr lsn; /* position in the WAL stream when taken */ - - /* - * The transaction completion count at the time GetSnapshotData() built - * this snapshot. Allows to avoid re-computing static snapshots when no - * transactions completed since the last GetSnapshotData(). - */ - uint64 snapXactCompletionCount; -} SnapshotData; - -#endif /* SNAPSHOT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/sortsupport.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/sortsupport.h deleted file mode 100644 index 8c36cf8d8..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/sortsupport.h +++ /dev/null @@ -1,391 +0,0 @@ -/*------------------------------------------------------------------------- - * - * sortsupport.h - * Framework for accelerated sorting. - * - * Traditionally, PostgreSQL has implemented sorting by repeatedly invoking - * an SQL-callable comparison function "cmp(x, y) returns int" on pairs of - * values to be compared, where the comparison function is the BTORDER_PROC - * pg_amproc support function of the appropriate btree index opclass. - * - * This file defines alternative APIs that allow sorting to be performed with - * reduced overhead. To support lower-overhead sorting, a btree opclass may - * provide a BTSORTSUPPORT_PROC pg_amproc entry, which must take a single - * argument of type internal and return void. The argument is actually a - * pointer to a SortSupportData struct, which is defined below. - * - * If provided, the BTSORTSUPPORT function will be called during sort setup, - * and it must initialize the provided struct with pointers to function(s) - * that can be called to perform sorting. This API is defined to allow - * multiple acceleration mechanisms to be supported, but no opclass is - * required to provide all of them. The BTSORTSUPPORT function should - * simply not set any function pointers for mechanisms it doesn't support. - * Opclasses that provide BTSORTSUPPORT and don't provide a comparator - * function will have a shim set up by sort support automatically. However, - * opclasses that support the optional additional abbreviated key capability - * must always provide an authoritative comparator used to tie-break - * inconclusive abbreviated comparisons and also used when aborting - * abbreviation. Furthermore, a converter and abort/costing function must be - * provided. - * - * All sort support functions will be passed the address of the - * SortSupportData struct when called, so they can use it to store - * additional private data as needed. In particular, for collation-aware - * datatypes, the ssup_collation field is set before calling BTSORTSUPPORT - * and is available to all support functions. Additional opclass-dependent - * data can be stored using the ssup_extra field. Any such data - * should be allocated in the ssup_cxt memory context. - * - * Note: since pg_amproc functions are indexed by (lefttype, righttype) - * it is possible to associate a BTSORTSUPPORT function with a cross-type - * comparison. This could sensibly be used to provide a fast comparator - * function for such cases, but probably not any other acceleration method. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/sortsupport.h - * - *------------------------------------------------------------------------- - */ -#ifndef SORTSUPPORT_H -#define SORTSUPPORT_H - -#include "access/attnum.h" -#include "utils/relcache.h" - -typedef struct SortSupportData *SortSupport; - -typedef struct SortSupportData -{ - /* - * These fields are initialized before calling the BTSORTSUPPORT function - * and should not be changed later. - */ - MemoryContext ssup_cxt; /* Context containing sort info */ - Oid ssup_collation; /* Collation to use, or InvalidOid */ - - /* - * Additional sorting parameters; but unlike ssup_collation, these can be - * changed after BTSORTSUPPORT is called, so don't use them in selecting - * sort support functions. - */ - bool ssup_reverse; /* descending-order sort? */ - bool ssup_nulls_first; /* sort nulls first? */ - - /* - * These fields are workspace for callers, and should not be touched by - * opclass-specific functions. - */ - AttrNumber ssup_attno; /* column number to sort */ - - /* - * ssup_extra is zeroed before calling the BTSORTSUPPORT function, and is - * not touched subsequently by callers. - */ - void *ssup_extra; /* Workspace for opclass functions */ - - /* - * Function pointers are zeroed before calling the BTSORTSUPPORT function, - * and must be set by it for any acceleration methods it wants to supply. - * The comparator pointer must be set, others are optional. - */ - - /* - * Comparator function has the same API as the traditional btree - * comparison function, ie, return <0, 0, or >0 according as x is less - * than, equal to, or greater than y. Note that x and y are guaranteed - * not null, and there is no way to return null either. - * - * This may be either the authoritative comparator, or the abbreviated - * comparator. Core code may switch this over the initial preference of - * an opclass support function despite originally indicating abbreviation - * was applicable, by assigning the authoritative comparator back. - */ - int (*comparator) (Datum x, Datum y, SortSupport ssup); - - /* - * "Abbreviated key" infrastructure follows. - * - * All callbacks must be set by sortsupport opclasses that make use of - * this optional additional infrastructure (unless for whatever reasons - * the opclass doesn't proceed with abbreviation, in which case - * abbrev_converter must not be set). - * - * This allows opclass authors to supply a conversion routine, used to - * create an alternative representation of the underlying type (an - * "abbreviated key"). This representation must be pass-by-value and - * typically will use some ad-hoc format that only the opclass has - * knowledge of. An alternative comparator, used only with this - * alternative representation must also be provided (which is assigned to - * "comparator"). This representation is a simple approximation of the - * original Datum. It must be possible to compare datums of this - * representation with each other using the supplied alternative - * comparator, and have any non-zero return value be a reliable proxy for - * what a proper comparison would indicate. Returning zero from the - * alternative comparator does not indicate equality, as with a - * conventional support routine 1, though -- it indicates that it wasn't - * possible to determine how the two abbreviated values compared. A - * proper comparison, using "abbrev_full_comparator"/ - * ApplySortAbbrevFullComparator() is therefore required. In many cases - * this results in most or all comparisons only using the cheap - * alternative comparison func, which is typically implemented as code - * that compiles to just a few CPU instructions. CPU cache miss penalties - * are expensive; to get good overall performance, sort infrastructure - * must heavily weigh cache performance. - * - * Opclass authors must consider the final cardinality of abbreviated keys - * when devising an encoding scheme. It's possible for a strategy to work - * better than an alternative strategy with one usage pattern, while the - * reverse might be true for another usage pattern. All of these factors - * must be considered. - */ - - /* - * "abbreviate" concerns whether or not the abbreviated key optimization - * is applicable in principle (that is, the sortsupport routine needs to - * know if its dealing with a key where an abbreviated representation can - * usefully be packed together. Conventionally, this is the leading - * attribute key). Note, however, that in order to determine that - * abbreviation is not in play, the core code always checks whether or not - * the opclass has set abbrev_converter. This is a one way, one time - * message to the opclass. - */ - bool abbreviate; - - /* - * Converter to abbreviated format, from original representation. Core - * code uses this callback to convert from a pass-by-reference "original" - * Datum to a pass-by-value abbreviated key Datum. Note that original is - * guaranteed NOT NULL, because it doesn't make sense to factor NULLness - * into ad-hoc cost model. - * - * abbrev_converter is tested to see if abbreviation is in play. Core - * code may set it to NULL to indicate abbreviation should not be used - * (which is something sortsupport routines need not concern themselves - * with). However, sortsupport routines must not set it when it is - * immediately established that abbreviation should not proceed (e.g., for - * !abbreviate calls, or due to platform-specific impediments to using - * abbreviation). - */ - Datum (*abbrev_converter) (Datum original, SortSupport ssup); - - /* - * abbrev_abort callback allows clients to verify that the current - * strategy is working out, using a sortsupport routine defined ad-hoc - * cost model. If there is a lot of duplicate abbreviated keys in - * practice, it's useful to be able to abandon the strategy before paying - * too high a cost in conversion (perhaps certain opclass-specific - * adaptations are useful too). - */ - bool (*abbrev_abort) (int memtupcount, SortSupport ssup); - - /* - * Full, authoritative comparator for key that an abbreviated - * representation was generated for, used when an abbreviated comparison - * was inconclusive (by calling ApplySortAbbrevFullComparator()), or used - * to replace "comparator" when core system ultimately decides against - * abbreviation. - */ - int (*abbrev_full_comparator) (Datum x, Datum y, SortSupport ssup); -} SortSupportData; - - -/* - * Apply a sort comparator function and return a 3-way comparison result. - * This takes care of handling reverse-sort and NULLs-ordering properly. - */ -static inline int -ApplySortComparator(Datum datum1, bool isNull1, - Datum datum2, bool isNull2, - SortSupport ssup) -{ - int compare; - - if (isNull1) - { - if (isNull2) - compare = 0; /* NULL "=" NULL */ - else if (ssup->ssup_nulls_first) - compare = -1; /* NULL "<" NOT_NULL */ - else - compare = 1; /* NULL ">" NOT_NULL */ - } - else if (isNull2) - { - if (ssup->ssup_nulls_first) - compare = 1; /* NOT_NULL ">" NULL */ - else - compare = -1; /* NOT_NULL "<" NULL */ - } - else - { - compare = ssup->comparator(datum1, datum2, ssup); - if (ssup->ssup_reverse) - INVERT_COMPARE_RESULT(compare); - } - - return compare; -} - -static inline int -ApplyUnsignedSortComparator(Datum datum1, bool isNull1, - Datum datum2, bool isNull2, - SortSupport ssup) -{ - int compare; - - if (isNull1) - { - if (isNull2) - compare = 0; /* NULL "=" NULL */ - else if (ssup->ssup_nulls_first) - compare = -1; /* NULL "<" NOT_NULL */ - else - compare = 1; /* NULL ">" NOT_NULL */ - } - else if (isNull2) - { - if (ssup->ssup_nulls_first) - compare = 1; /* NOT_NULL ">" NULL */ - else - compare = -1; /* NOT_NULL "<" NULL */ - } - else - { - compare = datum1 < datum2 ? -1 : datum1 > datum2 ? 1 : 0; - if (ssup->ssup_reverse) - INVERT_COMPARE_RESULT(compare); - } - - return compare; -} - -#if SIZEOF_DATUM >= 8 -static inline int -ApplySignedSortComparator(Datum datum1, bool isNull1, - Datum datum2, bool isNull2, - SortSupport ssup) -{ - int compare; - - if (isNull1) - { - if (isNull2) - compare = 0; /* NULL "=" NULL */ - else if (ssup->ssup_nulls_first) - compare = -1; /* NULL "<" NOT_NULL */ - else - compare = 1; /* NULL ">" NOT_NULL */ - } - else if (isNull2) - { - if (ssup->ssup_nulls_first) - compare = 1; /* NOT_NULL ">" NULL */ - else - compare = -1; /* NOT_NULL "<" NULL */ - } - else - { - compare = DatumGetInt64(datum1) < DatumGetInt64(datum2) ? -1 : - DatumGetInt64(datum1) > DatumGetInt64(datum2) ? 1 : 0; - if (ssup->ssup_reverse) - INVERT_COMPARE_RESULT(compare); - } - - return compare; -} -#endif - -static inline int -ApplyInt32SortComparator(Datum datum1, bool isNull1, - Datum datum2, bool isNull2, - SortSupport ssup) -{ - int compare; - - if (isNull1) - { - if (isNull2) - compare = 0; /* NULL "=" NULL */ - else if (ssup->ssup_nulls_first) - compare = -1; /* NULL "<" NOT_NULL */ - else - compare = 1; /* NULL ">" NOT_NULL */ - } - else if (isNull2) - { - if (ssup->ssup_nulls_first) - compare = 1; /* NOT_NULL ">" NULL */ - else - compare = -1; /* NOT_NULL "<" NULL */ - } - else - { - compare = DatumGetInt32(datum1) < DatumGetInt32(datum2) ? -1 : - DatumGetInt32(datum1) > DatumGetInt32(datum2) ? 1 : 0; - if (ssup->ssup_reverse) - INVERT_COMPARE_RESULT(compare); - } - - return compare; -} - -/* - * Apply a sort comparator function and return a 3-way comparison using full, - * authoritative comparator. This takes care of handling reverse-sort and - * NULLs-ordering properly. - */ -static inline int -ApplySortAbbrevFullComparator(Datum datum1, bool isNull1, - Datum datum2, bool isNull2, - SortSupport ssup) -{ - int compare; - - if (isNull1) - { - if (isNull2) - compare = 0; /* NULL "=" NULL */ - else if (ssup->ssup_nulls_first) - compare = -1; /* NULL "<" NOT_NULL */ - else - compare = 1; /* NULL ">" NOT_NULL */ - } - else if (isNull2) - { - if (ssup->ssup_nulls_first) - compare = 1; /* NOT_NULL ">" NULL */ - else - compare = -1; /* NOT_NULL "<" NULL */ - } - else - { - compare = ssup->abbrev_full_comparator(datum1, datum2, ssup); - if (ssup->ssup_reverse) - INVERT_COMPARE_RESULT(compare); - } - - return compare; -} - -/* - * Datum comparison functions that we have specialized sort routines for. - * Datatypes that install these as their comparator or abbrevated comparator - * are eligible for faster sorting. - */ -extern int ssup_datum_unsigned_cmp(Datum x, Datum y, SortSupport ssup); -#if SIZEOF_DATUM >= 8 -extern int ssup_datum_signed_cmp(Datum x, Datum y, SortSupport ssup); -#endif -extern int ssup_datum_int32_cmp(Datum x, Datum y, SortSupport ssup); - -/* Other functions in utils/sort/sortsupport.c */ -extern void PrepareSortSupportComparisonShim(Oid cmpFunc, SortSupport ssup); -extern void PrepareSortSupportFromOrderingOp(Oid orderingOp, SortSupport ssup); -extern void PrepareSortSupportFromIndexRel(Relation indexRel, int16 strategy, - SortSupport ssup); -extern void PrepareSortSupportFromGistIndexRel(Relation indexRel, SortSupport ssup); - -#endif /* SORTSUPPORT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/syscache.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/syscache.h deleted file mode 100644 index 4463ea66b..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/syscache.h +++ /dev/null @@ -1,224 +0,0 @@ -/*------------------------------------------------------------------------- - * - * syscache.h - * System catalog cache definitions. - * - * See also lsyscache.h, which provides convenience routines for - * common cache-lookup operations. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/syscache.h - * - *------------------------------------------------------------------------- - */ -#ifndef SYSCACHE_H -#define SYSCACHE_H - -#include "access/attnum.h" -#include "access/htup.h" -/* we intentionally do not include utils/catcache.h here */ - -/* - * SysCache identifiers. - * - * The order of these identifiers must match the order - * of the entries in the array cacheinfo[] in syscache.c. - * Keep them in alphabetical order (renumbering only costs a - * backend rebuild). - */ - -enum SysCacheIdentifier -{ - AGGFNOID = 0, - AMNAME, - AMOID, - AMOPOPID, - AMOPSTRATEGY, - AMPROCNUM, - ATTNAME, - ATTNUM, - AUTHMEMMEMROLE, - AUTHMEMROLEMEM, - AUTHNAME, - AUTHOID, - CASTSOURCETARGET, - CLAAMNAMENSP, - CLAOID, - COLLNAMEENCNSP, - COLLOID, - CONDEFAULT, - CONNAMENSP, - CONSTROID, - CONVOID, - DATABASEOID, - DEFACLROLENSPOBJ, - ENUMOID, - ENUMTYPOIDNAME, - EVENTTRIGGERNAME, - EVENTTRIGGEROID, - FOREIGNDATAWRAPPERNAME, - FOREIGNDATAWRAPPEROID, - FOREIGNSERVERNAME, - FOREIGNSERVEROID, - FOREIGNTABLEREL, - INDEXRELID, - LANGNAME, - LANGOID, - NAMESPACENAME, - NAMESPACEOID, - OPERNAMENSP, - OPEROID, - OPFAMILYAMNAMENSP, - OPFAMILYOID, - PARAMETERACLNAME, - PARAMETERACLOID, - PARTRELID, - PROCNAMEARGSNSP, - PROCOID, - PUBLICATIONNAME, - PUBLICATIONNAMESPACE, - PUBLICATIONNAMESPACEMAP, - PUBLICATIONOID, - PUBLICATIONREL, - PUBLICATIONRELMAP, - RANGEMULTIRANGE, - RANGETYPE, - RELNAMENSP, - RELOID, - REPLORIGIDENT, - REPLORIGNAME, - RULERELNAME, - SEQRELID, - STATEXTDATASTXOID, - STATEXTNAMENSP, - STATEXTOID, - STATRELATTINH, - SUBSCRIPTIONNAME, - SUBSCRIPTIONOID, - SUBSCRIPTIONRELMAP, - TABLESPACEOID, - TRFOID, - TRFTYPELANG, - TSCONFIGMAP, - TSCONFIGNAMENSP, - TSCONFIGOID, - TSDICTNAMENSP, - TSDICTOID, - TSPARSERNAMENSP, - TSPARSEROID, - TSTEMPLATENAMENSP, - TSTEMPLATEOID, - TYPENAMENSP, - TYPEOID, - USERMAPPINGOID, - USERMAPPINGUSERSERVER - -#define SysCacheSize (USERMAPPINGUSERSERVER + 1) -}; - -extern void InitCatalogCache(void); -extern void InitCatalogCachePhase2(void); - -extern HeapTuple SearchSysCache(int cacheId, - Datum key1, Datum key2, Datum key3, Datum key4); - -/* - * The use of argument specific numbers is encouraged. They're faster, and - * insulates the caller from changes in the maximum number of keys. - */ -extern HeapTuple SearchSysCache1(int cacheId, - Datum key1); -extern HeapTuple SearchSysCache2(int cacheId, - Datum key1, Datum key2); -extern HeapTuple SearchSysCache3(int cacheId, - Datum key1, Datum key2, Datum key3); -extern HeapTuple SearchSysCache4(int cacheId, - Datum key1, Datum key2, Datum key3, Datum key4); - -extern void ReleaseSysCache(HeapTuple tuple); - -/* convenience routines */ -extern HeapTuple SearchSysCacheCopy(int cacheId, - Datum key1, Datum key2, Datum key3, Datum key4); -extern bool SearchSysCacheExists(int cacheId, - Datum key1, Datum key2, Datum key3, Datum key4); -extern Oid GetSysCacheOid(int cacheId, AttrNumber oidcol, - Datum key1, Datum key2, Datum key3, Datum key4); - -extern HeapTuple SearchSysCacheAttName(Oid relid, const char *attname); -extern HeapTuple SearchSysCacheCopyAttName(Oid relid, const char *attname); -extern bool SearchSysCacheExistsAttName(Oid relid, const char *attname); - -extern HeapTuple SearchSysCacheAttNum(Oid relid, int16 attnum); -extern HeapTuple SearchSysCacheCopyAttNum(Oid relid, int16 attnum); - -extern Datum SysCacheGetAttr(int cacheId, HeapTuple tup, - AttrNumber attributeNumber, bool *isNull); - -extern uint32 GetSysCacheHashValue(int cacheId, - Datum key1, Datum key2, Datum key3, Datum key4); - -/* list-search interface. Users of this must import catcache.h too */ -struct catclist; -extern struct catclist *SearchSysCacheList(int cacheId, int nkeys, - Datum key1, Datum key2, Datum key3); - -extern void SysCacheInvalidate(int cacheId, uint32 hashValue); - -extern bool RelationInvalidatesSnapshotsOnly(Oid relid); -extern bool RelationHasSysCache(Oid relid); -extern bool RelationSupportsSysCache(Oid relid); - -/* - * The use of the macros below rather than direct calls to the corresponding - * functions is encouraged, as it insulates the caller from changes in the - * maximum number of keys. - */ -#define SearchSysCacheCopy1(cacheId, key1) \ - SearchSysCacheCopy(cacheId, key1, 0, 0, 0) -#define SearchSysCacheCopy2(cacheId, key1, key2) \ - SearchSysCacheCopy(cacheId, key1, key2, 0, 0) -#define SearchSysCacheCopy3(cacheId, key1, key2, key3) \ - SearchSysCacheCopy(cacheId, key1, key2, key3, 0) -#define SearchSysCacheCopy4(cacheId, key1, key2, key3, key4) \ - SearchSysCacheCopy(cacheId, key1, key2, key3, key4) - -#define SearchSysCacheExists1(cacheId, key1) \ - SearchSysCacheExists(cacheId, key1, 0, 0, 0) -#define SearchSysCacheExists2(cacheId, key1, key2) \ - SearchSysCacheExists(cacheId, key1, key2, 0, 0) -#define SearchSysCacheExists3(cacheId, key1, key2, key3) \ - SearchSysCacheExists(cacheId, key1, key2, key3, 0) -#define SearchSysCacheExists4(cacheId, key1, key2, key3, key4) \ - SearchSysCacheExists(cacheId, key1, key2, key3, key4) - -#define GetSysCacheOid1(cacheId, oidcol, key1) \ - GetSysCacheOid(cacheId, oidcol, key1, 0, 0, 0) -#define GetSysCacheOid2(cacheId, oidcol, key1, key2) \ - GetSysCacheOid(cacheId, oidcol, key1, key2, 0, 0) -#define GetSysCacheOid3(cacheId, oidcol, key1, key2, key3) \ - GetSysCacheOid(cacheId, oidcol, key1, key2, key3, 0) -#define GetSysCacheOid4(cacheId, oidcol, key1, key2, key3, key4) \ - GetSysCacheOid(cacheId, oidcol, key1, key2, key3, key4) - -#define GetSysCacheHashValue1(cacheId, key1) \ - GetSysCacheHashValue(cacheId, key1, 0, 0, 0) -#define GetSysCacheHashValue2(cacheId, key1, key2) \ - GetSysCacheHashValue(cacheId, key1, key2, 0, 0) -#define GetSysCacheHashValue3(cacheId, key1, key2, key3) \ - GetSysCacheHashValue(cacheId, key1, key2, key3, 0) -#define GetSysCacheHashValue4(cacheId, key1, key2, key3, key4) \ - GetSysCacheHashValue(cacheId, key1, key2, key3, key4) - -#define SearchSysCacheList1(cacheId, key1) \ - SearchSysCacheList(cacheId, 1, key1, 0, 0) -#define SearchSysCacheList2(cacheId, key1, key2) \ - SearchSysCacheList(cacheId, 2, key1, key2, 0) -#define SearchSysCacheList3(cacheId, key1, key2, key3) \ - SearchSysCacheList(cacheId, 3, key1, key2, key3) - -#define ReleaseSysCacheList(x) ReleaseCatCacheList(x) - -#endif /* SYSCACHE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/timeout.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/timeout.h deleted file mode 100644 index c068986d0..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/timeout.h +++ /dev/null @@ -1,95 +0,0 @@ -/*------------------------------------------------------------------------- - * - * timeout.h - * Routines to multiplex SIGALRM interrupts for multiple timeout reasons. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/timeout.h - * - *------------------------------------------------------------------------- - */ -#ifndef TIMEOUT_H -#define TIMEOUT_H - -#include "datatype/timestamp.h" - -/* - * Identifiers for timeout reasons. Note that in case multiple timeouts - * trigger at the same time, they are serviced in the order of this enum. - */ -typedef enum TimeoutId -{ - /* Predefined timeout reasons */ - STARTUP_PACKET_TIMEOUT, - DEADLOCK_TIMEOUT, - LOCK_TIMEOUT, - STATEMENT_TIMEOUT, - STANDBY_DEADLOCK_TIMEOUT, - STANDBY_TIMEOUT, - STANDBY_LOCK_TIMEOUT, - IDLE_IN_TRANSACTION_SESSION_TIMEOUT, - IDLE_SESSION_TIMEOUT, - IDLE_STATS_UPDATE_TIMEOUT, - CLIENT_CONNECTION_CHECK_TIMEOUT, - STARTUP_PROGRESS_TIMEOUT, - /* First user-definable timeout reason */ - USER_TIMEOUT, - /* Maximum number of timeout reasons */ - MAX_TIMEOUTS = USER_TIMEOUT + 10 -} TimeoutId; - -/* callback function signature */ -typedef void (*timeout_handler_proc) (void); - -/* - * Parameter structure for setting multiple timeouts at once - */ -typedef enum TimeoutType -{ - TMPARAM_AFTER, - TMPARAM_AT, - TMPARAM_EVERY -} TimeoutType; - -typedef struct -{ - TimeoutId id; /* timeout to set */ - TimeoutType type; /* TMPARAM_AFTER or TMPARAM_AT */ - int delay_ms; /* only used for TMPARAM_AFTER/EVERY */ - TimestampTz fin_time; /* only used for TMPARAM_AT */ -} EnableTimeoutParams; - -/* - * Parameter structure for clearing multiple timeouts at once - */ -typedef struct -{ - TimeoutId id; /* timeout to clear */ - bool keep_indicator; /* keep the indicator flag? */ -} DisableTimeoutParams; - -/* timeout setup */ -extern void InitializeTimeouts(void); -extern TimeoutId RegisterTimeout(TimeoutId id, timeout_handler_proc handler); -extern void reschedule_timeouts(void); - -/* timeout operation */ -extern void enable_timeout_after(TimeoutId id, int delay_ms); -extern void enable_timeout_every(TimeoutId id, TimestampTz fin_time, - int delay_ms); -extern void enable_timeout_at(TimeoutId id, TimestampTz fin_time); -extern void enable_timeouts(const EnableTimeoutParams *timeouts, int count); -extern void disable_timeout(TimeoutId id, bool keep_indicator); -extern void disable_timeouts(const DisableTimeoutParams *timeouts, int count); -extern void disable_all_timeouts(bool keep_indicators); - -/* accessors */ -extern bool get_timeout_active(TimeoutId id); -extern bool get_timeout_indicator(TimeoutId id, bool reset_indicator); -extern TimestampTz get_timeout_start_time(TimeoutId id); -extern TimestampTz get_timeout_finish_time(TimeoutId id); - -#endif /* TIMEOUT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/timestamp.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/timestamp.h deleted file mode 100644 index edf3a9731..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/timestamp.h +++ /dev/null @@ -1,117 +0,0 @@ -/*------------------------------------------------------------------------- - * - * timestamp.h - * Definitions for the SQL "timestamp" and "interval" types. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/timestamp.h - * - *------------------------------------------------------------------------- - */ -#ifndef TIMESTAMP_H -#define TIMESTAMP_H - -#include "datatype/timestamp.h" -#include "fmgr.h" -#include "pgtime.h" - - -/* - * Macros for fmgr-callable functions. - * - * For Timestamp, we make use of the same support routines as for int64. - * Therefore Timestamp is pass-by-reference if and only if int64 is! - */ -#define DatumGetTimestamp(X) ((Timestamp) DatumGetInt64(X)) -#define DatumGetTimestampTz(X) ((TimestampTz) DatumGetInt64(X)) -#define DatumGetIntervalP(X) ((Interval *) DatumGetPointer(X)) - -#define TimestampGetDatum(X) Int64GetDatum(X) -#define TimestampTzGetDatum(X) Int64GetDatum(X) -#define IntervalPGetDatum(X) PointerGetDatum(X) - -#define PG_GETARG_TIMESTAMP(n) DatumGetTimestamp(PG_GETARG_DATUM(n)) -#define PG_GETARG_TIMESTAMPTZ(n) DatumGetTimestampTz(PG_GETARG_DATUM(n)) -#define PG_GETARG_INTERVAL_P(n) DatumGetIntervalP(PG_GETARG_DATUM(n)) - -#define PG_RETURN_TIMESTAMP(x) return TimestampGetDatum(x) -#define PG_RETURN_TIMESTAMPTZ(x) return TimestampTzGetDatum(x) -#define PG_RETURN_INTERVAL_P(x) return IntervalPGetDatum(x) - - -#define TIMESTAMP_MASK(b) (1 << (b)) -#define INTERVAL_MASK(b) (1 << (b)) - -/* Macros to handle packing and unpacking the typmod field for intervals */ -#define INTERVAL_FULL_RANGE (0x7FFF) -#define INTERVAL_RANGE_MASK (0x7FFF) -#define INTERVAL_FULL_PRECISION (0xFFFF) -#define INTERVAL_PRECISION_MASK (0xFFFF) -#define INTERVAL_TYPMOD(p,r) ((((r) & INTERVAL_RANGE_MASK) << 16) | ((p) & INTERVAL_PRECISION_MASK)) -#define INTERVAL_PRECISION(t) ((t) & INTERVAL_PRECISION_MASK) -#define INTERVAL_RANGE(t) (((t) >> 16) & INTERVAL_RANGE_MASK) - -#define TimestampTzPlusMilliseconds(tz,ms) ((tz) + ((ms) * (int64) 1000)) - - -/* Set at postmaster start */ -extern PGDLLIMPORT TimestampTz PgStartTime; - -/* Set at configuration reload */ -extern PGDLLIMPORT TimestampTz PgReloadTime; - - -/* Internal routines (not fmgr-callable) */ - -extern int32 anytimestamp_typmod_check(bool istz, int32 typmod); - -extern TimestampTz GetCurrentTimestamp(void); -extern TimestampTz GetSQLCurrentTimestamp(int32 typmod); -extern Timestamp GetSQLLocalTimestamp(int32 typmod); -extern void TimestampDifference(TimestampTz start_time, TimestampTz stop_time, - long *secs, int *microsecs); -extern long TimestampDifferenceMilliseconds(TimestampTz start_time, - TimestampTz stop_time); -extern bool TimestampDifferenceExceeds(TimestampTz start_time, - TimestampTz stop_time, - int msec); - -extern TimestampTz time_t_to_timestamptz(pg_time_t tm); -extern pg_time_t timestamptz_to_time_t(TimestampTz t); - -extern const char *timestamptz_to_str(TimestampTz t); - -extern int tm2timestamp(struct pg_tm *tm, fsec_t fsec, int *tzp, Timestamp *dt); -extern int timestamp2tm(Timestamp dt, int *tzp, struct pg_tm *tm, - fsec_t *fsec, const char **tzn, pg_tz *attimezone); -extern void dt2time(Timestamp dt, int *hour, int *min, int *sec, fsec_t *fsec); - -extern void interval2itm(Interval span, struct pg_itm *itm); -extern int itm2interval(struct pg_itm *itm, Interval *span); -extern int itmin2interval(struct pg_itm_in *itm_in, Interval *span); - -extern Timestamp SetEpochTimestamp(void); -extern void GetEpochTime(struct pg_tm *tm); - -extern int timestamp_cmp_internal(Timestamp dt1, Timestamp dt2); - -/* timestamp comparison works for timestamptz also */ -#define timestamptz_cmp_internal(dt1,dt2) timestamp_cmp_internal(dt1, dt2) - -extern TimestampTz timestamp2timestamptz_opt_overflow(Timestamp timestamp, - int *overflow); -extern int32 timestamp_cmp_timestamptz_internal(Timestamp timestampVal, - TimestampTz dt2); - -extern int isoweek2j(int year, int week); -extern void isoweek2date(int woy, int *year, int *mon, int *mday); -extern void isoweekdate2date(int isoweek, int wday, int *year, int *mon, int *mday); -extern int date2isoweek(int year, int mon, int mday); -extern int date2isoyear(int year, int mon, int mday); -extern int date2isoyearday(int year, int mon, int mday); - -extern bool TimestampTimestampTzRequiresRewrite(void); - -#endif /* TIMESTAMP_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/tuplesort.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/tuplesort.h deleted file mode 100644 index a2eaeabee..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/tuplesort.h +++ /dev/null @@ -1,291 +0,0 @@ -/*------------------------------------------------------------------------- - * - * tuplesort.h - * Generalized tuple sorting routines. - * - * This module handles sorting of heap tuples, index tuples, or single - * Datums (and could easily support other kinds of sortable objects, - * if necessary). It works efficiently for both small and large amounts - * of data. Small amounts are sorted in-memory using qsort(). Large - * amounts are sorted using temporary files and a standard external sort - * algorithm. Parallel sorts use a variant of this external sort - * algorithm, and are typically only used for large amounts of data. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/tuplesort.h - * - *------------------------------------------------------------------------- - */ -#ifndef TUPLESORT_H -#define TUPLESORT_H - -#include "access/itup.h" -#include "executor/tuptable.h" -#include "storage/dsm.h" -#include "utils/relcache.h" - - -/* - * Tuplesortstate and Sharedsort are opaque types whose details are not - * known outside tuplesort.c. - */ -typedef struct Tuplesortstate Tuplesortstate; -typedef struct Sharedsort Sharedsort; - -/* - * Tuplesort parallel coordination state, allocated by each participant in - * local memory. Participant caller initializes everything. See usage notes - * below. - */ -typedef struct SortCoordinateData -{ - /* Worker process? If not, must be leader. */ - bool isWorker; - - /* - * Leader-process-passed number of participants known launched (workers - * set this to -1). Includes state within leader needed for it to - * participate as a worker, if any. - */ - int nParticipants; - - /* Private opaque state (points to shared memory) */ - Sharedsort *sharedsort; -} SortCoordinateData; - -typedef struct SortCoordinateData *SortCoordinate; - -/* - * Data structures for reporting sort statistics. Note that - * TuplesortInstrumentation can't contain any pointers because we - * sometimes put it in shared memory. - * - * The parallel-sort infrastructure relies on having a zero TuplesortMethod - * to indicate that a worker never did anything, so we assign zero to - * SORT_TYPE_STILL_IN_PROGRESS. The other values of this enum can be - * OR'ed together to represent a situation where different workers used - * different methods, so we need a separate bit for each one. Keep the - * NUM_TUPLESORTMETHODS constant in sync with the number of bits! - */ -typedef enum -{ - SORT_TYPE_STILL_IN_PROGRESS = 0, - SORT_TYPE_TOP_N_HEAPSORT = 1 << 0, - SORT_TYPE_QUICKSORT = 1 << 1, - SORT_TYPE_EXTERNAL_SORT = 1 << 2, - SORT_TYPE_EXTERNAL_MERGE = 1 << 3 -} TuplesortMethod; - -#define NUM_TUPLESORTMETHODS 4 - -typedef enum -{ - SORT_SPACE_TYPE_DISK, - SORT_SPACE_TYPE_MEMORY -} TuplesortSpaceType; - -/* Bitwise option flags for tuple sorts */ -#define TUPLESORT_NONE 0 - -/* specifies whether non-sequential access to the sort result is required */ -#define TUPLESORT_RANDOMACCESS (1 << 0) - -/* specifies if the tuplesort is able to support bounded sorts */ -#define TUPLESORT_ALLOWBOUNDED (1 << 1) - -typedef struct TuplesortInstrumentation -{ - TuplesortMethod sortMethod; /* sort algorithm used */ - TuplesortSpaceType spaceType; /* type of space spaceUsed represents */ - int64 spaceUsed; /* space consumption, in kB */ -} TuplesortInstrumentation; - - -/* - * We provide multiple interfaces to what is essentially the same code, - * since different callers have different data to be sorted and want to - * specify the sort key information differently. There are two APIs for - * sorting HeapTuples and two more for sorting IndexTuples. Yet another - * API supports sorting bare Datums. - * - * Serial sort callers should pass NULL for their coordinate argument. - * - * The "heap" API actually stores/sorts MinimalTuples, which means it doesn't - * preserve the system columns (tuple identity and transaction visibility - * info). The sort keys are specified by column numbers within the tuples - * and sort operator OIDs. We save some cycles by passing and returning the - * tuples in TupleTableSlots, rather than forming actual HeapTuples (which'd - * have to be converted to MinimalTuples). This API works well for sorts - * executed as parts of plan trees. - * - * The "cluster" API stores/sorts full HeapTuples including all visibility - * info. The sort keys are specified by reference to a btree index that is - * defined on the relation to be sorted. Note that putheaptuple/getheaptuple - * go with this API, not the "begin_heap" one! - * - * The "index_btree" API stores/sorts IndexTuples (preserving all their - * header fields). The sort keys are specified by a btree index definition. - * - * The "index_hash" API is similar to index_btree, but the tuples are - * actually sorted by their hash codes not the raw data. - * - * Parallel sort callers are required to coordinate multiple tuplesort states - * in a leader process and one or more worker processes. The leader process - * must launch workers, and have each perform an independent "partial" - * tuplesort, typically fed by the parallel heap interface. The leader later - * produces the final output (internally, it merges runs output by workers). - * - * Callers must do the following to perform a sort in parallel using multiple - * worker processes: - * - * 1. Request tuplesort-private shared memory for n workers. Use - * tuplesort_estimate_shared() to get the required size. - * 2. Have leader process initialize allocated shared memory using - * tuplesort_initialize_shared(). Launch workers. - * 3. Initialize a coordinate argument within both the leader process, and - * for each worker process. This has a pointer to the shared - * tuplesort-private structure, as well as some caller-initialized fields. - * Leader's coordinate argument reliably indicates number of workers - * launched (this is unused by workers). - * 4. Begin a tuplesort using some appropriate tuplesort_begin* routine, - * (passing the coordinate argument) within each worker. The workMem - * arguments need not be identical. All other arguments should match - * exactly, though. - * 5. tuplesort_attach_shared() should be called by all workers. Feed tuples - * to each worker, and call tuplesort_performsort() within each when input - * is exhausted. - * 6. Call tuplesort_end() in each worker process. Worker processes can shut - * down once tuplesort_end() returns. - * 7. Begin a tuplesort in the leader using the same tuplesort_begin* - * routine, passing a leader-appropriate coordinate argument (this can - * happen as early as during step 3, actually, since we only need to know - * the number of workers successfully launched). The leader must now wait - * for workers to finish. Caller must use own mechanism for ensuring that - * next step isn't reached until all workers have called and returned from - * tuplesort_performsort(). (Note that it's okay if workers have already - * also called tuplesort_end() by then.) - * 8. Call tuplesort_performsort() in leader. Consume output using the - * appropriate tuplesort_get* routine. Leader can skip this step if - * tuplesort turns out to be unnecessary. - * 9. Call tuplesort_end() in leader. - * - * This division of labor assumes nothing about how input tuples are produced, - * but does require that caller combine the state of multiple tuplesorts for - * any purpose other than producing the final output. For example, callers - * must consider that tuplesort_get_stats() reports on only one worker's role - * in a sort (or the leader's role), and not statistics for the sort as a - * whole. - * - * Note that callers may use the leader process to sort runs as if it was an - * independent worker process (prior to the process performing a leader sort - * to produce the final sorted output). Doing so only requires a second - * "partial" tuplesort within the leader process, initialized like that of a - * worker process. The steps above don't touch on this directly. The only - * difference is that the tuplesort_attach_shared() call is never needed within - * leader process, because the backend as a whole holds the shared fileset - * reference. A worker Tuplesortstate in leader is expected to do exactly the - * same amount of total initial processing work as a worker process - * Tuplesortstate, since the leader process has nothing else to do before - * workers finish. - * - * Note that only a very small amount of memory will be allocated prior to - * the leader state first consuming input, and that workers will free the - * vast majority of their memory upon returning from tuplesort_performsort(). - * Callers can rely on this to arrange for memory to be used in a way that - * respects a workMem-style budget across an entire parallel sort operation. - * - * Callers are responsible for parallel safety in general. However, they - * can at least rely on there being no parallel safety hazards within - * tuplesort, because tuplesort thinks of the sort as several independent - * sorts whose results are combined. Since, in general, the behavior of - * sort operators is immutable, caller need only worry about the parallel - * safety of whatever the process is through which input tuples are - * generated (typically, caller uses a parallel heap scan). - */ - -extern Tuplesortstate *tuplesort_begin_heap(TupleDesc tupDesc, - int nkeys, AttrNumber *attNums, - Oid *sortOperators, Oid *sortCollations, - bool *nullsFirstFlags, - int workMem, SortCoordinate coordinate, - int sortopt); -extern Tuplesortstate *tuplesort_begin_cluster(TupleDesc tupDesc, - Relation indexRel, int workMem, - SortCoordinate coordinate, - int sortopt); -extern Tuplesortstate *tuplesort_begin_index_btree(Relation heapRel, - Relation indexRel, - bool enforceUnique, - bool uniqueNullsNotDistinct, - int workMem, SortCoordinate coordinate, - int sortopt); -extern Tuplesortstate *tuplesort_begin_index_hash(Relation heapRel, - Relation indexRel, - uint32 high_mask, - uint32 low_mask, - uint32 max_buckets, - int workMem, SortCoordinate coordinate, - int sortopt); -extern Tuplesortstate *tuplesort_begin_index_gist(Relation heapRel, - Relation indexRel, - int workMem, SortCoordinate coordinate, - int sortopt); -extern Tuplesortstate *tuplesort_begin_datum(Oid datumType, - Oid sortOperator, Oid sortCollation, - bool nullsFirstFlag, - int workMem, SortCoordinate coordinate, - int sortopt); - -extern void tuplesort_set_bound(Tuplesortstate *state, int64 bound); -extern bool tuplesort_used_bound(Tuplesortstate *state); - -extern void tuplesort_puttupleslot(Tuplesortstate *state, - TupleTableSlot *slot); -extern void tuplesort_putheaptuple(Tuplesortstate *state, HeapTuple tup); -extern void tuplesort_putindextuplevalues(Tuplesortstate *state, - Relation rel, ItemPointer self, - Datum *values, bool *isnull); -extern void tuplesort_putdatum(Tuplesortstate *state, Datum val, - bool isNull); - -extern void tuplesort_performsort(Tuplesortstate *state); - -extern bool tuplesort_gettupleslot(Tuplesortstate *state, bool forward, - bool copy, TupleTableSlot *slot, Datum *abbrev); -extern HeapTuple tuplesort_getheaptuple(Tuplesortstate *state, bool forward); -extern IndexTuple tuplesort_getindextuple(Tuplesortstate *state, bool forward); -extern bool tuplesort_getdatum(Tuplesortstate *state, bool forward, - Datum *val, bool *isNull, Datum *abbrev); - -extern bool tuplesort_skiptuples(Tuplesortstate *state, int64 ntuples, - bool forward); - -extern void tuplesort_end(Tuplesortstate *state); - -extern void tuplesort_reset(Tuplesortstate *state); - -extern void tuplesort_get_stats(Tuplesortstate *state, - TuplesortInstrumentation *stats); -extern const char *tuplesort_method_name(TuplesortMethod m); -extern const char *tuplesort_space_type_name(TuplesortSpaceType t); - -extern int tuplesort_merge_order(int64 allowedMem); - -extern Size tuplesort_estimate_shared(int nworkers); -extern void tuplesort_initialize_shared(Sharedsort *shared, int nWorkers, - dsm_segment *seg); -extern void tuplesort_attach_shared(Sharedsort *shared, dsm_segment *seg); - -/* - * These routines may only be called if TUPLESORT_RANDOMACCESS was specified - * during tuplesort_begin_*. Additionally backwards scan in gettuple/getdatum - * also require TUPLESORT_RANDOMACCESS. Note that parallel sorts do not - * support random access. - */ -extern void tuplesort_rescan(Tuplesortstate *state); -extern void tuplesort_markpos(Tuplesortstate *state); -extern void tuplesort_restorepos(Tuplesortstate *state); - -#endif /* TUPLESORT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/tuplestore.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/tuplestore.h deleted file mode 100644 index 01716fb44..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/tuplestore.h +++ /dev/null @@ -1,91 +0,0 @@ -/*------------------------------------------------------------------------- - * - * tuplestore.h - * Generalized routines for temporary tuple storage. - * - * This module handles temporary storage of tuples for purposes such - * as Materialize nodes, hashjoin batch files, etc. It is essentially - * a dumbed-down version of tuplesort.c; it does no sorting of tuples - * but can only store and regurgitate a sequence of tuples. However, - * because no sort is required, it is allowed to start reading the sequence - * before it has all been written. This is particularly useful for cursors, - * because it allows random access within the already-scanned portion of - * a query without having to process the underlying scan to completion. - * Also, it is possible to support multiple independent read pointers. - * - * A temporary file is used to handle the data if it exceeds the - * space limit specified by the caller. - * - * Beginning in Postgres 8.2, what is stored is just MinimalTuples; - * callers cannot expect valid system columns in regurgitated tuples. - * Also, we have changed the API to return tuples in TupleTableSlots, - * so that there is a check to prevent attempted access to system columns. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/tuplestore.h - * - *------------------------------------------------------------------------- - */ -#ifndef TUPLESTORE_H -#define TUPLESTORE_H - -#include "executor/tuptable.h" - - -/* Tuplestorestate is an opaque type whose details are not known outside - * tuplestore.c. - */ -typedef struct Tuplestorestate Tuplestorestate; - -/* - * Currently we only need to store MinimalTuples, but it would be easy - * to support the same behavior for IndexTuples and/or bare Datums. - */ - -extern Tuplestorestate *tuplestore_begin_heap(bool randomAccess, - bool interXact, - int maxKBytes); - -extern void tuplestore_set_eflags(Tuplestorestate *state, int eflags); - -extern void tuplestore_puttupleslot(Tuplestorestate *state, - TupleTableSlot *slot); -extern void tuplestore_puttuple(Tuplestorestate *state, HeapTuple tuple); -extern void tuplestore_putvalues(Tuplestorestate *state, TupleDesc tdesc, - Datum *values, bool *isnull); - -/* Backwards compatibility macro */ -#define tuplestore_donestoring(state) ((void) 0) - -extern int tuplestore_alloc_read_pointer(Tuplestorestate *state, int eflags); - -extern void tuplestore_select_read_pointer(Tuplestorestate *state, int ptr); - -extern void tuplestore_copy_read_pointer(Tuplestorestate *state, - int srcptr, int destptr); - -extern void tuplestore_trim(Tuplestorestate *state); - -extern bool tuplestore_in_memory(Tuplestorestate *state); - -extern bool tuplestore_gettupleslot(Tuplestorestate *state, bool forward, - bool copy, TupleTableSlot *slot); - -extern bool tuplestore_advance(Tuplestorestate *state, bool forward); - -extern bool tuplestore_skiptuples(Tuplestorestate *state, - int64 ntuples, bool forward); - -extern int64 tuplestore_tuple_count(Tuplestorestate *state); - -extern bool tuplestore_ateof(Tuplestorestate *state); - -extern void tuplestore_rescan(Tuplestorestate *state); - -extern void tuplestore_clear(Tuplestorestate *state); - -extern void tuplestore_end(Tuplestorestate *state); - -#endif /* TUPLESTORE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/typcache.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/typcache.h deleted file mode 100644 index 431ad7f1b..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/typcache.h +++ /dev/null @@ -1,209 +0,0 @@ -/*------------------------------------------------------------------------- - * - * typcache.h - * Type cache definitions. - * - * The type cache exists to speed lookup of certain information about data - * types that is not directly available from a type's pg_type row. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/typcache.h - * - *------------------------------------------------------------------------- - */ -#ifndef TYPCACHE_H -#define TYPCACHE_H - -#include "access/tupdesc.h" -#include "fmgr.h" -#include "storage/dsm.h" -#include "utils/dsa.h" - - -/* DomainConstraintCache is an opaque struct known only within typcache.c */ -typedef struct DomainConstraintCache DomainConstraintCache; - -/* TypeCacheEnumData is an opaque struct known only within typcache.c */ -struct TypeCacheEnumData; - -typedef struct TypeCacheEntry -{ - /* typeId is the hash lookup key and MUST BE FIRST */ - Oid type_id; /* OID of the data type */ - - uint32 type_id_hash; /* hashed value of the OID */ - - /* some subsidiary information copied from the pg_type row */ - int16 typlen; - bool typbyval; - char typalign; - char typstorage; - char typtype; - Oid typrelid; - Oid typsubscript; - Oid typelem; - Oid typcollation; - - /* - * Information obtained from opfamily entries - * - * These will be InvalidOid if no match could be found, or if the - * information hasn't yet been requested. Also note that for array and - * composite types, typcache.c checks that the contained types are - * comparable or hashable before allowing eq_opr etc to become set. - */ - Oid btree_opf; /* the default btree opclass' family */ - Oid btree_opintype; /* the default btree opclass' opcintype */ - Oid hash_opf; /* the default hash opclass' family */ - Oid hash_opintype; /* the default hash opclass' opcintype */ - Oid eq_opr; /* the equality operator */ - Oid lt_opr; /* the less-than operator */ - Oid gt_opr; /* the greater-than operator */ - Oid cmp_proc; /* the btree comparison function */ - Oid hash_proc; /* the hash calculation function */ - Oid hash_extended_proc; /* the extended hash calculation function */ - - /* - * Pre-set-up fmgr call info for the equality operator, the btree - * comparison function, and the hash calculation function. These are kept - * in the type cache to avoid problems with memory leaks in repeated calls - * to functions such as array_eq, array_cmp, hash_array. There is not - * currently a need to maintain call info for the lt_opr or gt_opr. - */ - FmgrInfo eq_opr_finfo; - FmgrInfo cmp_proc_finfo; - FmgrInfo hash_proc_finfo; - FmgrInfo hash_extended_proc_finfo; - - /* - * Tuple descriptor if it's a composite type (row type). NULL if not - * composite or information hasn't yet been requested. (NOTE: this is a - * reference-counted tupledesc.) - * - * To simplify caching dependent info, tupDesc_identifier is an identifier - * for this tupledesc that is unique for the life of the process, and - * changes anytime the tupledesc does. Zero if not yet determined. - */ - TupleDesc tupDesc; - uint64 tupDesc_identifier; - - /* - * Fields computed when TYPECACHE_RANGE_INFO is requested. Zeroes if not - * a range type or information hasn't yet been requested. Note that - * rng_cmp_proc_finfo could be different from the element type's default - * btree comparison function. - */ - struct TypeCacheEntry *rngelemtype; /* range's element type */ - Oid rng_collation; /* collation for comparisons, if any */ - FmgrInfo rng_cmp_proc_finfo; /* comparison function */ - FmgrInfo rng_canonical_finfo; /* canonicalization function, if any */ - FmgrInfo rng_subdiff_finfo; /* difference function, if any */ - - /* - * Fields computed when TYPECACHE_MULTIRANGE_INFO is required. - */ - struct TypeCacheEntry *rngtype; /* multirange's range underlying type */ - - /* - * Domain's base type and typmod if it's a domain type. Zeroes if not - * domain, or if information hasn't been requested. - */ - Oid domainBaseType; - int32 domainBaseTypmod; - - /* - * Domain constraint data if it's a domain type. NULL if not domain, or - * if domain has no constraints, or if information hasn't been requested. - */ - DomainConstraintCache *domainData; - - /* Private data, for internal use of typcache.c only */ - int flags; /* flags about what we've computed */ - - /* - * Private information about an enum type. NULL if not enum or - * information hasn't been requested. - */ - struct TypeCacheEnumData *enumData; - - /* We also maintain a list of all known domain-type cache entries */ - struct TypeCacheEntry *nextDomain; -} TypeCacheEntry; - -/* Bit flags to indicate which fields a given caller needs to have set */ -#define TYPECACHE_EQ_OPR 0x00001 -#define TYPECACHE_LT_OPR 0x00002 -#define TYPECACHE_GT_OPR 0x00004 -#define TYPECACHE_CMP_PROC 0x00008 -#define TYPECACHE_HASH_PROC 0x00010 -#define TYPECACHE_EQ_OPR_FINFO 0x00020 -#define TYPECACHE_CMP_PROC_FINFO 0x00040 -#define TYPECACHE_HASH_PROC_FINFO 0x00080 -#define TYPECACHE_TUPDESC 0x00100 -#define TYPECACHE_BTREE_OPFAMILY 0x00200 -#define TYPECACHE_HASH_OPFAMILY 0x00400 -#define TYPECACHE_RANGE_INFO 0x00800 -#define TYPECACHE_DOMAIN_BASE_INFO 0x01000 -#define TYPECACHE_DOMAIN_CONSTR_INFO 0x02000 -#define TYPECACHE_HASH_EXTENDED_PROC 0x04000 -#define TYPECACHE_HASH_EXTENDED_PROC_FINFO 0x08000 -#define TYPECACHE_MULTIRANGE_INFO 0x10000 - -/* This value will not equal any valid tupledesc identifier, nor 0 */ -#define INVALID_TUPLEDESC_IDENTIFIER ((uint64) 1) - -/* - * Callers wishing to maintain a long-lived reference to a domain's constraint - * set must store it in one of these. Use InitDomainConstraintRef() and - * UpdateDomainConstraintRef() to manage it. Note: DomainConstraintState is - * considered an executable expression type, so it's defined in execnodes.h. - */ -typedef struct DomainConstraintRef -{ - List *constraints; /* list of DomainConstraintState nodes */ - MemoryContext refctx; /* context holding DomainConstraintRef */ - TypeCacheEntry *tcache; /* typcache entry for domain type */ - bool need_exprstate; /* does caller need check_exprstate? */ - - /* Management data --- treat these fields as private to typcache.c */ - DomainConstraintCache *dcc; /* current constraints, or NULL if none */ - MemoryContextCallback callback; /* used to release refcount when done */ -} DomainConstraintRef; - -typedef struct SharedRecordTypmodRegistry SharedRecordTypmodRegistry; - -extern TypeCacheEntry *lookup_type_cache(Oid type_id, int flags); - -extern void InitDomainConstraintRef(Oid type_id, DomainConstraintRef *ref, - MemoryContext refctx, bool need_exprstate); - -extern void UpdateDomainConstraintRef(DomainConstraintRef *ref); - -extern bool DomainHasConstraints(Oid type_id); - -extern TupleDesc lookup_rowtype_tupdesc(Oid type_id, int32 typmod); - -extern TupleDesc lookup_rowtype_tupdesc_noerror(Oid type_id, int32 typmod, - bool noError); - -extern TupleDesc lookup_rowtype_tupdesc_copy(Oid type_id, int32 typmod); - -extern TupleDesc lookup_rowtype_tupdesc_domain(Oid type_id, int32 typmod, - bool noError); - -extern void assign_record_type_typmod(TupleDesc tupDesc); - -extern uint64 assign_record_type_identifier(Oid type_id, int32 typmod); - -extern int compare_values_of_enum(TypeCacheEntry *tcache, Oid arg1, Oid arg2); - -extern size_t SharedRecordTypmodRegistryEstimate(void); - -extern void SharedRecordTypmodRegistryInit(SharedRecordTypmodRegistry *, - dsm_segment *segment, dsa_area *area); - -extern void SharedRecordTypmodRegistryAttach(SharedRecordTypmodRegistry *); - -#endif /* TYPCACHE_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/tzparser.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/tzparser.h deleted file mode 100644 index 015b1773d..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/tzparser.h +++ /dev/null @@ -1,39 +0,0 @@ -/*------------------------------------------------------------------------- - * - * tzparser.h - * Timezone offset file parsing definitions. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/tzparser.h - * - *------------------------------------------------------------------------- - */ -#ifndef TZPARSER_H -#define TZPARSER_H - -#include "utils/datetime.h" - -/* - * The result of parsing a timezone configuration file is an array of - * these structs, in order by abbrev. We export this because datetime.c - * needs it. - */ -typedef struct tzEntry -{ - /* the actual data */ - char *abbrev; /* TZ abbreviation (downcased) */ - char *zone; /* zone name if dynamic abbrev, else NULL */ - /* for a dynamic abbreviation, offset/is_dst are not used */ - int offset; /* offset in seconds from UTC */ - bool is_dst; /* true if a DST abbreviation */ - /* source information (for error messages) */ - int lineno; - const char *filename; -} tzEntry; - - -extern TimeZoneAbbrevTable *load_tzoffsets(const char *filename); - -#endif /* TZPARSER_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/varlena.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/varlena.h deleted file mode 100644 index c45208a20..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/varlena.h +++ /dev/null @@ -1,41 +0,0 @@ -/*------------------------------------------------------------------------- - * - * varlena.h - * Functions for the variable-length built-in types. - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/varlena.h - * - *------------------------------------------------------------------------- - */ -#ifndef VARLENA_H -#define VARLENA_H - -#include "nodes/pg_list.h" -#include "utils/sortsupport.h" - -extern int varstr_cmp(const char *arg1, int len1, const char *arg2, int len2, Oid collid); -extern void varstr_sortsupport(SortSupport ssup, Oid typid, Oid collid); -extern int varstr_levenshtein(const char *source, int slen, - const char *target, int tlen, - int ins_c, int del_c, int sub_c, - bool trusted); -extern int varstr_levenshtein_less_equal(const char *source, int slen, - const char *target, int tlen, - int ins_c, int del_c, int sub_c, - int max_d, bool trusted); -extern List *textToQualifiedNameList(text *textval); -extern bool SplitIdentifierString(char *rawstring, char separator, - List **namelist); -extern bool SplitDirectoriesString(char *rawstring, char separator, - List **namelist); -extern bool SplitGUCList(char *rawstring, char separator, - List **namelist); -extern text *replace_text_regexp(text *src_text, text *pattern_text, - text *replace_text, - int cflags, Oid collation, - int search_start, int n); - -#endif diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/wait_event.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/wait_event.h deleted file mode 100644 index b578e2ec7..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/wait_event.h +++ /dev/null @@ -1,289 +0,0 @@ -/*------------------------------------------------------------------------- - * wait_event.h - * Definitions related to wait event reporting - * - * Copyright (c) 2001-2022, PostgreSQL Global Development Group - * - * src/include/utils/wait_event.h - * ---------- - */ -#ifndef WAIT_EVENT_H -#define WAIT_EVENT_H - - -/* ---------- - * Wait Classes - * ---------- - */ -#define PG_WAIT_LWLOCK 0x01000000U -#define PG_WAIT_LOCK 0x03000000U -#define PG_WAIT_BUFFER_PIN 0x04000000U -#define PG_WAIT_ACTIVITY 0x05000000U -#define PG_WAIT_CLIENT 0x06000000U -#define PG_WAIT_EXTENSION 0x07000000U -#define PG_WAIT_IPC 0x08000000U -#define PG_WAIT_TIMEOUT 0x09000000U -#define PG_WAIT_IO 0x0A000000U - -/* ---------- - * Wait Events - Activity - * - * Use this category when a process is waiting because it has no work to do, - * unless the "Client" or "Timeout" category describes the situation better. - * Typically, this should only be used for background processes. - * ---------- - */ -typedef enum -{ - WAIT_EVENT_ARCHIVER_MAIN = PG_WAIT_ACTIVITY, - WAIT_EVENT_AUTOVACUUM_MAIN, - WAIT_EVENT_BGWRITER_HIBERNATE, - WAIT_EVENT_BGWRITER_MAIN, - WAIT_EVENT_CHECKPOINTER_MAIN, - WAIT_EVENT_LOGICAL_APPLY_MAIN, - WAIT_EVENT_LOGICAL_LAUNCHER_MAIN, - WAIT_EVENT_RECOVERY_WAL_STREAM, - WAIT_EVENT_SYSLOGGER_MAIN, - WAIT_EVENT_WAL_RECEIVER_MAIN, - WAIT_EVENT_WAL_SENDER_MAIN, - WAIT_EVENT_WAL_WRITER_MAIN -} WaitEventActivity; - -/* ---------- - * Wait Events - Client - * - * Use this category when a process is waiting to send data to or receive data - * from the frontend process to which it is connected. This is never used for - * a background process, which has no client connection. - * ---------- - */ -typedef enum -{ - WAIT_EVENT_CLIENT_READ = PG_WAIT_CLIENT, - WAIT_EVENT_CLIENT_WRITE, - WAIT_EVENT_GSS_OPEN_SERVER, - WAIT_EVENT_LIBPQWALRECEIVER_CONNECT, - WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE, - WAIT_EVENT_SSL_OPEN_SERVER, - WAIT_EVENT_WAL_SENDER_WAIT_WAL, - WAIT_EVENT_WAL_SENDER_WRITE_DATA, -} WaitEventClient; - -/* ---------- - * Wait Events - IPC - * - * Use this category when a process cannot complete the work it is doing because - * it is waiting for a notification from another process. - * ---------- - */ -typedef enum -{ - WAIT_EVENT_APPEND_READY = PG_WAIT_IPC, - WAIT_EVENT_ARCHIVE_CLEANUP_COMMAND, - WAIT_EVENT_ARCHIVE_COMMAND, - WAIT_EVENT_BACKEND_TERMINATION, - WAIT_EVENT_BACKUP_WAIT_WAL_ARCHIVE, - WAIT_EVENT_BGWORKER_SHUTDOWN, - WAIT_EVENT_BGWORKER_STARTUP, - WAIT_EVENT_BTREE_PAGE, - WAIT_EVENT_BUFFER_IO, - WAIT_EVENT_CHECKPOINT_DONE, - WAIT_EVENT_CHECKPOINT_START, - WAIT_EVENT_EXECUTE_GATHER, - WAIT_EVENT_HASH_BATCH_ALLOCATE, - WAIT_EVENT_HASH_BATCH_ELECT, - WAIT_EVENT_HASH_BATCH_LOAD, - WAIT_EVENT_HASH_BUILD_ALLOCATE, - WAIT_EVENT_HASH_BUILD_ELECT, - WAIT_EVENT_HASH_BUILD_HASH_INNER, - WAIT_EVENT_HASH_BUILD_HASH_OUTER, - WAIT_EVENT_HASH_GROW_BATCHES_ALLOCATE, - WAIT_EVENT_HASH_GROW_BATCHES_DECIDE, - WAIT_EVENT_HASH_GROW_BATCHES_ELECT, - WAIT_EVENT_HASH_GROW_BATCHES_FINISH, - WAIT_EVENT_HASH_GROW_BATCHES_REPARTITION, - WAIT_EVENT_HASH_GROW_BUCKETS_ALLOCATE, - WAIT_EVENT_HASH_GROW_BUCKETS_ELECT, - WAIT_EVENT_HASH_GROW_BUCKETS_REINSERT, - WAIT_EVENT_LOGICAL_SYNC_DATA, - WAIT_EVENT_LOGICAL_SYNC_STATE_CHANGE, - WAIT_EVENT_MQ_INTERNAL, - WAIT_EVENT_MQ_PUT_MESSAGE, - WAIT_EVENT_MQ_RECEIVE, - WAIT_EVENT_MQ_SEND, - WAIT_EVENT_PARALLEL_BITMAP_SCAN, - WAIT_EVENT_PARALLEL_CREATE_INDEX_SCAN, - WAIT_EVENT_PARALLEL_FINISH, - WAIT_EVENT_PROCARRAY_GROUP_UPDATE, - WAIT_EVENT_PROC_SIGNAL_BARRIER, - WAIT_EVENT_PROMOTE, - WAIT_EVENT_RECOVERY_CONFLICT_SNAPSHOT, - WAIT_EVENT_RECOVERY_CONFLICT_TABLESPACE, - WAIT_EVENT_RECOVERY_END_COMMAND, - WAIT_EVENT_RECOVERY_PAUSE, - WAIT_EVENT_REPLICATION_ORIGIN_DROP, - WAIT_EVENT_REPLICATION_SLOT_DROP, - WAIT_EVENT_RESTORE_COMMAND, - WAIT_EVENT_SAFE_SNAPSHOT, - WAIT_EVENT_SYNC_REP, - WAIT_EVENT_WAL_RECEIVER_EXIT, - WAIT_EVENT_WAL_RECEIVER_WAIT_START, - WAIT_EVENT_XACT_GROUP_UPDATE -} WaitEventIPC; - -/* ---------- - * Wait Events - Timeout - * - * Use this category when a process is waiting for a timeout to expire. - * ---------- - */ -typedef enum -{ - WAIT_EVENT_BASE_BACKUP_THROTTLE = PG_WAIT_TIMEOUT, - WAIT_EVENT_CHECKPOINT_WRITE_DELAY, - WAIT_EVENT_PG_SLEEP, - WAIT_EVENT_RECOVERY_APPLY_DELAY, - WAIT_EVENT_RECOVERY_RETRIEVE_RETRY_INTERVAL, - WAIT_EVENT_REGISTER_SYNC_REQUEST, - WAIT_EVENT_VACUUM_DELAY, - WAIT_EVENT_VACUUM_TRUNCATE -} WaitEventTimeout; - -/* ---------- - * Wait Events - IO - * - * Use this category when a process is waiting for a IO. - * ---------- - */ -typedef enum -{ - WAIT_EVENT_BASEBACKUP_READ = PG_WAIT_IO, - WAIT_EVENT_BASEBACKUP_SYNC, - WAIT_EVENT_BASEBACKUP_WRITE, - WAIT_EVENT_BUFFILE_READ, - WAIT_EVENT_BUFFILE_WRITE, - WAIT_EVENT_BUFFILE_TRUNCATE, - WAIT_EVENT_CONTROL_FILE_READ, - WAIT_EVENT_CONTROL_FILE_SYNC, - WAIT_EVENT_CONTROL_FILE_SYNC_UPDATE, - WAIT_EVENT_CONTROL_FILE_WRITE, - WAIT_EVENT_CONTROL_FILE_WRITE_UPDATE, - WAIT_EVENT_COPY_FILE_READ, - WAIT_EVENT_COPY_FILE_WRITE, - WAIT_EVENT_DATA_FILE_EXTEND, - WAIT_EVENT_DATA_FILE_FLUSH, - WAIT_EVENT_DATA_FILE_IMMEDIATE_SYNC, - WAIT_EVENT_DATA_FILE_PREFETCH, - WAIT_EVENT_DATA_FILE_READ, - WAIT_EVENT_DATA_FILE_SYNC, - WAIT_EVENT_DATA_FILE_TRUNCATE, - WAIT_EVENT_DATA_FILE_WRITE, - WAIT_EVENT_DSM_FILL_ZERO_WRITE, - WAIT_EVENT_LOCK_FILE_ADDTODATADIR_READ, - WAIT_EVENT_LOCK_FILE_ADDTODATADIR_SYNC, - WAIT_EVENT_LOCK_FILE_ADDTODATADIR_WRITE, - WAIT_EVENT_LOCK_FILE_CREATE_READ, - WAIT_EVENT_LOCK_FILE_CREATE_SYNC, - WAIT_EVENT_LOCK_FILE_CREATE_WRITE, - WAIT_EVENT_LOCK_FILE_RECHECKDATADIR_READ, - WAIT_EVENT_LOGICAL_REWRITE_CHECKPOINT_SYNC, - WAIT_EVENT_LOGICAL_REWRITE_MAPPING_SYNC, - WAIT_EVENT_LOGICAL_REWRITE_MAPPING_WRITE, - WAIT_EVENT_LOGICAL_REWRITE_SYNC, - WAIT_EVENT_LOGICAL_REWRITE_TRUNCATE, - WAIT_EVENT_LOGICAL_REWRITE_WRITE, - WAIT_EVENT_RELATION_MAP_READ, - WAIT_EVENT_RELATION_MAP_SYNC, - WAIT_EVENT_RELATION_MAP_WRITE, - WAIT_EVENT_REORDER_BUFFER_READ, - WAIT_EVENT_REORDER_BUFFER_WRITE, - WAIT_EVENT_REORDER_LOGICAL_MAPPING_READ, - WAIT_EVENT_REPLICATION_SLOT_READ, - WAIT_EVENT_REPLICATION_SLOT_RESTORE_SYNC, - WAIT_EVENT_REPLICATION_SLOT_SYNC, - WAIT_EVENT_REPLICATION_SLOT_WRITE, - WAIT_EVENT_SLRU_FLUSH_SYNC, - WAIT_EVENT_SLRU_READ, - WAIT_EVENT_SLRU_SYNC, - WAIT_EVENT_SLRU_WRITE, - WAIT_EVENT_SNAPBUILD_READ, - WAIT_EVENT_SNAPBUILD_SYNC, - WAIT_EVENT_SNAPBUILD_WRITE, - WAIT_EVENT_TIMELINE_HISTORY_FILE_SYNC, - WAIT_EVENT_TIMELINE_HISTORY_FILE_WRITE, - WAIT_EVENT_TIMELINE_HISTORY_READ, - WAIT_EVENT_TIMELINE_HISTORY_SYNC, - WAIT_EVENT_TIMELINE_HISTORY_WRITE, - WAIT_EVENT_TWOPHASE_FILE_READ, - WAIT_EVENT_TWOPHASE_FILE_SYNC, - WAIT_EVENT_TWOPHASE_FILE_WRITE, - WAIT_EVENT_VERSION_FILE_WRITE, - WAIT_EVENT_WALSENDER_TIMELINE_HISTORY_READ, - WAIT_EVENT_WAL_BOOTSTRAP_SYNC, - WAIT_EVENT_WAL_BOOTSTRAP_WRITE, - WAIT_EVENT_WAL_COPY_READ, - WAIT_EVENT_WAL_COPY_SYNC, - WAIT_EVENT_WAL_COPY_WRITE, - WAIT_EVENT_WAL_INIT_SYNC, - WAIT_EVENT_WAL_INIT_WRITE, - WAIT_EVENT_WAL_READ, - WAIT_EVENT_WAL_SYNC, - WAIT_EVENT_WAL_SYNC_METHOD_ASSIGN, - WAIT_EVENT_WAL_WRITE -} WaitEventIO; - - -extern const char *pgstat_get_wait_event(uint32 wait_event_info); -extern const char *pgstat_get_wait_event_type(uint32 wait_event_info); -static inline void pgstat_report_wait_start(uint32 wait_event_info); -static inline void pgstat_report_wait_end(void); -extern void pgstat_set_wait_event_storage(uint32 *wait_event_info); -extern void pgstat_reset_wait_event_storage(void); - -extern PGDLLIMPORT uint32 *my_wait_event_info; - - -/* ---------- - * pgstat_report_wait_start() - - * - * Called from places where server process needs to wait. This is called - * to report wait event information. The wait information is stored - * as 4-bytes where first byte represents the wait event class (type of - * wait, for different types of wait, refer WaitClass) and the next - * 3-bytes represent the actual wait event. Currently 2-bytes are used - * for wait event which is sufficient for current usage, 1-byte is - * reserved for future usage. - * - * Historically we used to make this reporting conditional on - * pgstat_track_activities, but the check for that seems to add more cost - * than it saves. - * - * my_wait_event_info initially points to local memory, making it safe to - * call this before MyProc has been initialized. - * ---------- - */ -static inline void -pgstat_report_wait_start(uint32 wait_event_info) -{ - /* - * Since this is a four-byte field which is always read and written as - * four-bytes, updates are atomic. - */ - *(volatile uint32 *) my_wait_event_info = wait_event_info; -} - -/* ---------- - * pgstat_report_wait_end() - - * - * Called to report end of a wait. - * ---------- - */ -static inline void -pgstat_report_wait_end(void) -{ - /* see pgstat_report_wait_start() */ - *(volatile uint32 *) my_wait_event_info = 0; -} - - -#endif /* WAIT_EVENT_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/xml.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/xml.h deleted file mode 100644 index 6620a6261..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/utils/xml.h +++ /dev/null @@ -1,84 +0,0 @@ -/*------------------------------------------------------------------------- - * - * xml.h - * Declarations for XML data type support. - * - * - * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * src/include/utils/xml.h - * - *------------------------------------------------------------------------- - */ - -#ifndef XML_H -#define XML_H - -#include "executor/tablefunc.h" -#include "fmgr.h" -#include "nodes/execnodes.h" -#include "nodes/primnodes.h" - -typedef struct varlena xmltype; - -typedef enum -{ - XML_STANDALONE_YES, - XML_STANDALONE_NO, - XML_STANDALONE_NO_VALUE, - XML_STANDALONE_OMITTED -} XmlStandaloneType; - -typedef enum -{ - XMLBINARY_BASE64, - XMLBINARY_HEX -} XmlBinaryType; - -typedef enum -{ - PG_XML_STRICTNESS_LEGACY, /* ignore errors unless function result - * indicates error condition */ - PG_XML_STRICTNESS_WELLFORMED, /* ignore non-parser messages */ - PG_XML_STRICTNESS_ALL /* report all notices/warnings/errors */ -} PgXmlStrictness; - -/* struct PgXmlErrorContext is private to xml.c */ -typedef struct PgXmlErrorContext PgXmlErrorContext; - -#define DatumGetXmlP(X) ((xmltype *) PG_DETOAST_DATUM(X)) -#define XmlPGetDatum(X) PointerGetDatum(X) - -#define PG_GETARG_XML_P(n) DatumGetXmlP(PG_GETARG_DATUM(n)) -#define PG_RETURN_XML_P(x) PG_RETURN_POINTER(x) - -extern void pg_xml_init_library(void); -extern PgXmlErrorContext *pg_xml_init(PgXmlStrictness strictness); -extern void pg_xml_done(PgXmlErrorContext *errcxt, bool isError); -extern bool pg_xml_error_occurred(PgXmlErrorContext *errcxt); -extern void xml_ereport(PgXmlErrorContext *errcxt, int level, int sqlcode, - const char *msg); - -extern xmltype *xmlconcat(List *args); -extern xmltype *xmlelement(XmlExpr *xexpr, - Datum *named_argvalue, bool *named_argnull, - Datum *argvalue, bool *argnull); -extern xmltype *xmlparse(text *data, XmlOptionType xmloption, bool preserve_whitespace); -extern xmltype *xmlpi(const char *target, text *arg, bool arg_is_null, bool *result_is_null); -extern xmltype *xmlroot(xmltype *data, text *version, int standalone); -extern bool xml_is_document(xmltype *arg); -extern text *xmltotext_with_xmloption(xmltype *data, XmlOptionType xmloption_arg); -extern char *escape_xml(const char *str); - -extern char *map_sql_identifier_to_xml_name(const char *ident, bool fully_escaped, bool escape_period); -extern char *map_xml_name_to_sql_identifier(const char *name); -extern char *map_sql_value_to_xml_value(Datum value, Oid type, bool xml_escape_strings); - -extern PGDLLIMPORT int xmlbinary; /* XmlBinaryType, but int for guc enum */ - -extern PGDLLIMPORT int xmloption; /* XmlOptionType, but int for guc enum */ - -extern PGDLLIMPORT const TableFuncRoutine XmlTableRoutine; - -#endif /* XML_H */ diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/xxhash.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/xxhash.h deleted file mode 100644 index 4bdd13aae..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/xxhash.h +++ /dev/null @@ -1,5445 +0,0 @@ -/* - * xxHash - Extremely Fast Hash algorithm - * Header File - * Copyright (C) 2012-2020 Yann Collet - * - * BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * You can contact the author at: - * - xxHash homepage: https://www.xxhash.com - * - xxHash source repository: https://github.com/Cyan4973/xxHash - */ -/*! - * @mainpage xxHash - * - * @file xxhash.h - * xxHash prototypes and implementation - */ -/* TODO: update */ -/* Notice extracted from xxHash homepage: - -xxHash is an extremely fast hash algorithm, running at RAM speed limits. -It also successfully passes all tests from the SMHasher suite. - -Comparison (single thread, Windows Seven 32 bits, using SMHasher on a Core 2 Duo @3GHz) - -Name Speed Q.Score Author -xxHash 5.4 GB/s 10 -CrapWow 3.2 GB/s 2 Andrew -MurmurHash 3a 2.7 GB/s 10 Austin Appleby -SpookyHash 2.0 GB/s 10 Bob Jenkins -SBox 1.4 GB/s 9 Bret Mulvey -Lookup3 1.2 GB/s 9 Bob Jenkins -SuperFastHash 1.2 GB/s 1 Paul Hsieh -CityHash64 1.05 GB/s 10 Pike & Alakuijala -FNV 0.55 GB/s 5 Fowler, Noll, Vo -CRC32 0.43 GB/s 9 -MD5-32 0.33 GB/s 10 Ronald L. Rivest -SHA1-32 0.28 GB/s 10 - -Q.Score is a measure of quality of the hash function. -It depends on successfully passing SMHasher test set. -10 is a perfect score. - -Note: SMHasher's CRC32 implementation is not the fastest one. -Other speed-oriented implementations can be faster, -especially in combination with PCLMUL instruction: -https://fastcompression.blogspot.com/2019/03/presenting-xxh3.html?showComment=1552696407071#c3490092340461170735 - -A 64-bit version, named XXH64, is available since r35. -It offers much better speed, but for 64-bit applications only. -Name Speed on 64 bits Speed on 32 bits -XXH64 13.8 GB/s 1.9 GB/s -XXH32 6.8 GB/s 6.0 GB/s -*/ - -#if defined (__cplusplus) -extern "C" { -#endif - -/* **************************** - * INLINE mode - ******************************/ -/*! - * XXH_INLINE_ALL (and XXH_PRIVATE_API) - * Use these build macros to inline xxhash into the target unit. - * Inlining improves performance on small inputs, especially when the length is - * expressed as a compile-time constant: - * - * https://fastcompression.blogspot.com/2018/03/xxhash-for-small-keys-impressive-power.html - * - * It also keeps xxHash symbols private to the unit, so they are not exported. - * - * Usage: - * #define XXH_INLINE_ALL - * #include "xxhash.h" - * - * Do not compile and link xxhash.o as a separate object, as it is not useful. - */ -#if (defined(XXH_INLINE_ALL) || defined(XXH_PRIVATE_API)) \ - && !defined(XXH_INLINE_ALL_31684351384) - /* this section should be traversed only once */ -# define XXH_INLINE_ALL_31684351384 - /* give access to the advanced API, required to compile implementations */ -# undef XXH_STATIC_LINKING_ONLY /* avoid macro redef */ -# define XXH_STATIC_LINKING_ONLY - /* make all functions private */ -# undef XXH_PUBLIC_API -# if defined(__GNUC__) -# define XXH_PUBLIC_API static __inline __attribute__((unused)) -# elif defined (__cplusplus) || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) -# define XXH_PUBLIC_API static inline -# elif defined(_MSC_VER) -# define XXH_PUBLIC_API static __inline -# else - /* note: this version may generate warnings for unused static functions */ -# define XXH_PUBLIC_API static -# endif - - /* - * This part deals with the special case where a unit wants to inline xxHash, - * but "xxhash.h" has previously been included without XXH_INLINE_ALL, such - * as part of some previously included *.h header file. - * Without further action, the new include would just be ignored, - * and functions would effectively _not_ be inlined (silent failure). - * The following macros solve this situation by prefixing all inlined names, - * avoiding naming collision with previous inclusions. - */ -# ifdef XXH_NAMESPACE -# error "XXH_INLINE_ALL with XXH_NAMESPACE is not supported" - /* - * Note: Alternative: #undef all symbols (it's a pretty large list). - * Without #error: it compiles, but functions are actually not inlined. - */ -# endif -# define XXH_NAMESPACE XXH_INLINE_ - /* - * Some identifiers (enums, type names) are not symbols, but they must - * still be renamed to avoid redeclaration. - * Alternative solution: do not redeclare them. - * However, this requires some #ifdefs, and is a more dispersed action. - * Meanwhile, renaming can be achieved in a single block - */ -# define XXH_IPREF(Id) XXH_INLINE_ ## Id -# define XXH_OK XXH_IPREF(XXH_OK) -# define XXH_ERROR XXH_IPREF(XXH_ERROR) -# define XXH_errorcode XXH_IPREF(XXH_errorcode) -# define XXH32_canonical_t XXH_IPREF(XXH32_canonical_t) -# define XXH64_canonical_t XXH_IPREF(XXH64_canonical_t) -# define XXH128_canonical_t XXH_IPREF(XXH128_canonical_t) -# define XXH32_state_s XXH_IPREF(XXH32_state_s) -# define XXH32_state_t XXH_IPREF(XXH32_state_t) -# define XXH64_state_s XXH_IPREF(XXH64_state_s) -# define XXH64_state_t XXH_IPREF(XXH64_state_t) -# define XXH3_state_s XXH_IPREF(XXH3_state_s) -# define XXH3_state_t XXH_IPREF(XXH3_state_t) -# define XXH128_hash_t XXH_IPREF(XXH128_hash_t) - /* Ensure the header is parsed again, even if it was previously included */ -# undef XXHASH_H_5627135585666179 -# undef XXHASH_H_STATIC_13879238742 -#endif /* XXH_INLINE_ALL || XXH_PRIVATE_API */ - - - -/* **************************************************************** - * Stable API - *****************************************************************/ -#ifndef XXHASH_H_5627135585666179 -#define XXHASH_H_5627135585666179 1 - - -/*! - * @defgroup public Public API - * Contains details on the public xxHash functions. - * @{ - */ -/* specific declaration modes for Windows */ -#if !defined(XXH_INLINE_ALL) && !defined(XXH_PRIVATE_API) -# if defined(WIN32) && defined(_MSC_VER) && (defined(XXH_IMPORT) || defined(XXH_EXPORT)) -# ifdef XXH_EXPORT -# define XXH_PUBLIC_API __declspec(dllexport) -# elif XXH_IMPORT -# define XXH_PUBLIC_API __declspec(dllimport) -# endif -# else -# define XXH_PUBLIC_API /* do nothing */ -# endif -#endif - -#ifdef XXH_DOXYGEN -/*! - * @brief Emulate a namespace by transparently prefixing all symbols. - * - * If you want to include _and expose_ xxHash functions from within your own - * library, but also want to avoid symbol collisions with other libraries which - * may also include xxHash, you can use XXH_NAMESPACE to automatically prefix - * any public symbol from xxhash library with the value of XXH_NAMESPACE - * (therefore, avoid empty or numeric values). - * - * Note that no change is required within the calling program as long as it - * includes `xxhash.h`: Regular symbol names will be automatically translated - * by this header. - */ -# define XXH_NAMESPACE /* YOUR NAME HERE */ -# undef XXH_NAMESPACE -#endif - -#ifdef XXH_NAMESPACE -# define XXH_CAT(A,B) A##B -# define XXH_NAME2(A,B) XXH_CAT(A,B) -# define XXH_versionNumber XXH_NAME2(XXH_NAMESPACE, XXH_versionNumber) -/* XXH32 */ -# define XXH32 XXH_NAME2(XXH_NAMESPACE, XXH32) -# define XXH32_createState XXH_NAME2(XXH_NAMESPACE, XXH32_createState) -# define XXH32_freeState XXH_NAME2(XXH_NAMESPACE, XXH32_freeState) -# define XXH32_reset XXH_NAME2(XXH_NAMESPACE, XXH32_reset) -# define XXH32_update XXH_NAME2(XXH_NAMESPACE, XXH32_update) -# define XXH32_digest XXH_NAME2(XXH_NAMESPACE, XXH32_digest) -# define XXH32_copyState XXH_NAME2(XXH_NAMESPACE, XXH32_copyState) -# define XXH32_canonicalFromHash XXH_NAME2(XXH_NAMESPACE, XXH32_canonicalFromHash) -# define XXH32_hashFromCanonical XXH_NAME2(XXH_NAMESPACE, XXH32_hashFromCanonical) -/* XXH64 */ -# define XXH64 XXH_NAME2(XXH_NAMESPACE, XXH64) -# define XXH64_createState XXH_NAME2(XXH_NAMESPACE, XXH64_createState) -# define XXH64_freeState XXH_NAME2(XXH_NAMESPACE, XXH64_freeState) -# define XXH64_reset XXH_NAME2(XXH_NAMESPACE, XXH64_reset) -# define XXH64_update XXH_NAME2(XXH_NAMESPACE, XXH64_update) -# define XXH64_digest XXH_NAME2(XXH_NAMESPACE, XXH64_digest) -# define XXH64_copyState XXH_NAME2(XXH_NAMESPACE, XXH64_copyState) -# define XXH64_canonicalFromHash XXH_NAME2(XXH_NAMESPACE, XXH64_canonicalFromHash) -# define XXH64_hashFromCanonical XXH_NAME2(XXH_NAMESPACE, XXH64_hashFromCanonical) -/* XXH3_64bits */ -# define XXH3_64bits XXH_NAME2(XXH_NAMESPACE, XXH3_64bits) -# define XXH3_64bits_withSecret XXH_NAME2(XXH_NAMESPACE, XXH3_64bits_withSecret) -# define XXH3_64bits_withSeed XXH_NAME2(XXH_NAMESPACE, XXH3_64bits_withSeed) -# define XXH3_createState XXH_NAME2(XXH_NAMESPACE, XXH3_createState) -# define XXH3_freeState XXH_NAME2(XXH_NAMESPACE, XXH3_freeState) -# define XXH3_copyState XXH_NAME2(XXH_NAMESPACE, XXH3_copyState) -# define XXH3_64bits_reset XXH_NAME2(XXH_NAMESPACE, XXH3_64bits_reset) -# define XXH3_64bits_reset_withSeed XXH_NAME2(XXH_NAMESPACE, XXH3_64bits_reset_withSeed) -# define XXH3_64bits_reset_withSecret XXH_NAME2(XXH_NAMESPACE, XXH3_64bits_reset_withSecret) -# define XXH3_64bits_update XXH_NAME2(XXH_NAMESPACE, XXH3_64bits_update) -# define XXH3_64bits_digest XXH_NAME2(XXH_NAMESPACE, XXH3_64bits_digest) -# define XXH3_generateSecret XXH_NAME2(XXH_NAMESPACE, XXH3_generateSecret) -/* XXH3_128bits */ -# define XXH128 XXH_NAME2(XXH_NAMESPACE, XXH128) -# define XXH3_128bits XXH_NAME2(XXH_NAMESPACE, XXH3_128bits) -# define XXH3_128bits_withSeed XXH_NAME2(XXH_NAMESPACE, XXH3_128bits_withSeed) -# define XXH3_128bits_withSecret XXH_NAME2(XXH_NAMESPACE, XXH3_128bits_withSecret) -# define XXH3_128bits_reset XXH_NAME2(XXH_NAMESPACE, XXH3_128bits_reset) -# define XXH3_128bits_reset_withSeed XXH_NAME2(XXH_NAMESPACE, XXH3_128bits_reset_withSeed) -# define XXH3_128bits_reset_withSecret XXH_NAME2(XXH_NAMESPACE, XXH3_128bits_reset_withSecret) -# define XXH3_128bits_update XXH_NAME2(XXH_NAMESPACE, XXH3_128bits_update) -# define XXH3_128bits_digest XXH_NAME2(XXH_NAMESPACE, XXH3_128bits_digest) -# define XXH128_isEqual XXH_NAME2(XXH_NAMESPACE, XXH128_isEqual) -# define XXH128_cmp XXH_NAME2(XXH_NAMESPACE, XXH128_cmp) -# define XXH128_canonicalFromHash XXH_NAME2(XXH_NAMESPACE, XXH128_canonicalFromHash) -# define XXH128_hashFromCanonical XXH_NAME2(XXH_NAMESPACE, XXH128_hashFromCanonical) -#endif - - -/* ************************************* -* Version -***************************************/ -#define XXH_VERSION_MAJOR 0 -#define XXH_VERSION_MINOR 8 -#define XXH_VERSION_RELEASE 0 -#define XXH_VERSION_NUMBER (XXH_VERSION_MAJOR *100*100 + XXH_VERSION_MINOR *100 + XXH_VERSION_RELEASE) - -/*! - * @brief Obtains the xxHash version. - * - * This is only useful when xxHash is compiled as a shared library, as it is - * independent of the version defined in the header. - * - * @return `XXH_VERSION_NUMBER` as of when the function was compiled. - */ -XXH_PUBLIC_API unsigned XXH_versionNumber (void); - - -/* **************************** -* Definitions -******************************/ -#include /* size_t */ -typedef enum { XXH_OK=0, XXH_ERROR } XXH_errorcode; - - -/*-********************************************************************** -* 32-bit hash -************************************************************************/ -#if defined(XXH_DOXYGEN) /* Don't show include */ -/*! - * @brief An unsigned 32-bit integer. - * - * Not necessarily defined to `uint32_t` but functionally equivalent. - */ -typedef uint32_t XXH32_hash_t; -#elif !defined (__VMS) \ - && (defined (__cplusplus) \ - || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) ) -# include - typedef uint32_t XXH32_hash_t; -#else -# include -# if UINT_MAX == 0xFFFFFFFFUL - typedef unsigned int XXH32_hash_t; -# else -# if ULONG_MAX == 0xFFFFFFFFUL - typedef unsigned long XXH32_hash_t; -# else -# error "unsupported platform: need a 32-bit type" -# endif -# endif -#endif - -/*! - * @} - * - * @defgroup xxh32_family XXH32 family - * @ingroup public - * Contains functions used in the classic 32-bit xxHash algorithm. - * - * @note - * XXH32 is considered rather weak by today's standards. - * The @ref xxh3_family provides competitive speed for both 32-bit and 64-bit - * systems, and offers true 64/128 bit hash results. It provides a superior - * level of dispersion, and greatly reduces the risks of collisions. - * - * @see @ref xxh64_family, @ref xxh3_family : Other xxHash families - * @see @ref xxh32_impl for implementation details - * @{ - */ - -/*! - * @brief Calculates the 32-bit hash of @p input using xxHash32. - * - * Speed on Core 2 Duo @ 3 GHz (single thread, SMHasher benchmark): 5.4 GB/s - * - * @param input The block of data to be hashed, at least @p length bytes in size. - * @param length The length of @p input, in bytes. - * @param seed The 32-bit seed to alter the hash's output predictably. - * - * @pre - * The memory between @p input and @p input + @p length must be valid, - * readable, contiguous memory. However, if @p length is `0`, @p input may be - * `NULL`. In C++, this also must be *TriviallyCopyable*. - * - * @return The calculated 32-bit hash value. - * - * @see - * XXH64(), XXH3_64bits_withSeed(), XXH3_128bits_withSeed(), XXH128(): - * Direct equivalents for the other variants of xxHash. - * @see - * XXH32_createState(), XXH32_update(), XXH32_digest(): Streaming version. - */ -XXH_PUBLIC_API XXH32_hash_t XXH32 (const void* input, size_t length, XXH32_hash_t seed); - -/*! - * Streaming functions generate the xxHash value from an incremental input. - * This method is slower than single-call functions, due to state management. - * For small inputs, prefer `XXH32()` and `XXH64()`, which are better optimized. - * - * An XXH state must first be allocated using `XXH*_createState()`. - * - * Start a new hash by initializing the state with a seed using `XXH*_reset()`. - * - * Then, feed the hash state by calling `XXH*_update()` as many times as necessary. - * - * The function returns an error code, with 0 meaning OK, and any other value - * meaning there is an error. - * - * Finally, a hash value can be produced anytime, by using `XXH*_digest()`. - * This function returns the nn-bits hash as an int or long long. - * - * It's still possible to continue inserting input into the hash state after a - * digest, and generate new hash values later on by invoking `XXH*_digest()`. - * - * When done, release the state using `XXH*_freeState()`. - * - * Example code for incrementally hashing a file: - * @code{.c} - * #include - * #include - * #define BUFFER_SIZE 256 - * - * // Note: XXH64 and XXH3 use the same interface. - * XXH32_hash_t - * hashFile(FILE* stream) - * { - * XXH32_state_t* state; - * unsigned char buf[BUFFER_SIZE]; - * size_t amt; - * XXH32_hash_t hash; - * - * state = XXH32_createState(); // Create a state - * assert(state != NULL); // Error check here - * XXH32_reset(state, 0xbaad5eed); // Reset state with our seed - * while ((amt = fread(buf, 1, sizeof(buf), stream)) != 0) { - * XXH32_update(state, buf, amt); // Hash the file in chunks - * } - * hash = XXH32_digest(state); // Finalize the hash - * XXH32_freeState(state); // Clean up - * return hash; - * } - * @endcode - */ - -/*! - * @typedef struct XXH32_state_s XXH32_state_t - * @brief The opaque state struct for the XXH32 streaming API. - * - * @see XXH32_state_s for details. - */ -typedef struct XXH32_state_s XXH32_state_t; - -/*! - * @brief Allocates an @ref XXH32_state_t. - * - * Must be freed with XXH32_freeState(). - * @return An allocated XXH32_state_t on success, `NULL` on failure. - */ -XXH_PUBLIC_API XXH32_state_t* XXH32_createState(void); -/*! - * @brief Frees an @ref XXH32_state_t. - * - * Must be allocated with XXH32_createState(). - * @param statePtr A pointer to an @ref XXH32_state_t allocated with @ref XXH32_createState(). - * @return XXH_OK. - */ -XXH_PUBLIC_API XXH_errorcode XXH32_freeState(XXH32_state_t* statePtr); -/*! - * @brief Copies one @ref XXH32_state_t to another. - * - * @param dst_state The state to copy to. - * @param src_state The state to copy from. - * @pre - * @p dst_state and @p src_state must not be `NULL` and must not overlap. - */ -XXH_PUBLIC_API void XXH32_copyState(XXH32_state_t* dst_state, const XXH32_state_t* src_state); - -/*! - * @brief Resets an @ref XXH32_state_t to begin a new hash. - * - * This function resets and seeds a state. Call it before @ref XXH32_update(). - * - * @param statePtr The state struct to reset. - * @param seed The 32-bit seed to alter the hash result predictably. - * - * @pre - * @p statePtr must not be `NULL`. - * - * @return @ref XXH_OK on success, @ref XXH_ERROR on failure. - */ -XXH_PUBLIC_API XXH_errorcode XXH32_reset (XXH32_state_t* statePtr, XXH32_hash_t seed); - -/*! - * @brief Consumes a block of @p input to an @ref XXH32_state_t. - * - * Call this to incrementally consume blocks of data. - * - * @param statePtr The state struct to update. - * @param input The block of data to be hashed, at least @p length bytes in size. - * @param length The length of @p input, in bytes. - * - * @pre - * @p statePtr must not be `NULL`. - * @pre - * The memory between @p input and @p input + @p length must be valid, - * readable, contiguous memory. However, if @p length is `0`, @p input may be - * `NULL`. In C++, this also must be *TriviallyCopyable*. - * - * @return @ref XXH_OK on success, @ref XXH_ERROR on failure. - */ -XXH_PUBLIC_API XXH_errorcode XXH32_update (XXH32_state_t* statePtr, const void* input, size_t length); - -/*! - * @brief Returns the calculated hash value from an @ref XXH32_state_t. - * - * @note - * Calling XXH32_digest() will not affect @p statePtr, so you can update, - * digest, and update again. - * - * @param statePtr The state struct to calculate the hash from. - * - * @pre - * @p statePtr must not be `NULL`. - * - * @return The calculated xxHash32 value from that state. - */ -XXH_PUBLIC_API XXH32_hash_t XXH32_digest (const XXH32_state_t* statePtr); - -/******* Canonical representation *******/ - -/* - * The default return values from XXH functions are unsigned 32 and 64 bit - * integers. - * This the simplest and fastest format for further post-processing. - * - * However, this leaves open the question of what is the order on the byte level, - * since little and big endian conventions will store the same number differently. - * - * The canonical representation settles this issue by mandating big-endian - * convention, the same convention as human-readable numbers (large digits first). - * - * When writing hash values to storage, sending them over a network, or printing - * them, it's highly recommended to use the canonical representation to ensure - * portability across a wider range of systems, present and future. - * - * The following functions allow transformation of hash values to and from - * canonical format. - */ - -/*! - * @brief Canonical (big endian) representation of @ref XXH32_hash_t. - */ -typedef struct { - unsigned char digest[4]; /*!< Hash bytes, big endian */ -} XXH32_canonical_t; - -/*! - * @brief Converts an @ref XXH32_hash_t to a big endian @ref XXH32_canonical_t. - * - * @param dst The @ref XXH32_canonical_t pointer to be stored to. - * @param hash The @ref XXH32_hash_t to be converted. - * - * @pre - * @p dst must not be `NULL`. - */ -XXH_PUBLIC_API void XXH32_canonicalFromHash(XXH32_canonical_t* dst, XXH32_hash_t hash); - -/*! - * @brief Converts an @ref XXH32_canonical_t to a native @ref XXH32_hash_t. - * - * @param src The @ref XXH32_canonical_t to convert. - * - * @pre - * @p src must not be `NULL`. - * - * @return The converted hash. - */ -XXH_PUBLIC_API XXH32_hash_t XXH32_hashFromCanonical(const XXH32_canonical_t* src); - - -/*! - * @} - * @ingroup public - * @{ - */ - -#ifndef XXH_NO_LONG_LONG -/*-********************************************************************** -* 64-bit hash -************************************************************************/ -#if defined(XXH_DOXYGEN) /* don't include */ -/*! - * @brief An unsigned 64-bit integer. - * - * Not necessarily defined to `uint64_t` but functionally equivalent. - */ -typedef uint64_t XXH64_hash_t; -#elif !defined (__VMS) \ - && (defined (__cplusplus) \ - || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) ) -# include - typedef uint64_t XXH64_hash_t; -#else -# include -# if defined(__LP64__) && ULONG_MAX == 0xFFFFFFFFFFFFFFFFULL - /* LP64 ABI says uint64_t is unsigned long */ - typedef unsigned long XXH64_hash_t; -# else - /* the following type must have a width of 64-bit */ - typedef unsigned long long XXH64_hash_t; -# endif -#endif - -/*! - * @} - * - * @defgroup xxh64_family XXH64 family - * @ingroup public - * @{ - * Contains functions used in the classic 64-bit xxHash algorithm. - * - * @note - * XXH3 provides competitive speed for both 32-bit and 64-bit systems, - * and offers true 64/128 bit hash results. It provides a superior level of - * dispersion, and greatly reduces the risks of collisions. - */ - - -/*! - * @brief Calculates the 64-bit hash of @p input using xxHash64. - * - * This function usually runs faster on 64-bit systems, but slower on 32-bit - * systems (see benchmark). - * - * @param input The block of data to be hashed, at least @p length bytes in size. - * @param length The length of @p input, in bytes. - * @param seed The 64-bit seed to alter the hash's output predictably. - * - * @pre - * The memory between @p input and @p input + @p length must be valid, - * readable, contiguous memory. However, if @p length is `0`, @p input may be - * `NULL`. In C++, this also must be *TriviallyCopyable*. - * - * @return The calculated 64-bit hash. - * - * @see - * XXH32(), XXH3_64bits_withSeed(), XXH3_128bits_withSeed(), XXH128(): - * Direct equivalents for the other variants of xxHash. - * @see - * XXH64_createState(), XXH64_update(), XXH64_digest(): Streaming version. - */ -XXH_PUBLIC_API XXH64_hash_t XXH64(const void* input, size_t length, XXH64_hash_t seed); - -/******* Streaming *******/ -/*! - * @brief The opaque state struct for the XXH64 streaming API. - * - * @see XXH64_state_s for details. - */ -typedef struct XXH64_state_s XXH64_state_t; /* incomplete type */ -XXH_PUBLIC_API XXH64_state_t* XXH64_createState(void); -XXH_PUBLIC_API XXH_errorcode XXH64_freeState(XXH64_state_t* statePtr); -XXH_PUBLIC_API void XXH64_copyState(XXH64_state_t* dst_state, const XXH64_state_t* src_state); - -XXH_PUBLIC_API XXH_errorcode XXH64_reset (XXH64_state_t* statePtr, XXH64_hash_t seed); -XXH_PUBLIC_API XXH_errorcode XXH64_update (XXH64_state_t* statePtr, const void* input, size_t length); -XXH_PUBLIC_API XXH64_hash_t XXH64_digest (const XXH64_state_t* statePtr); - -/******* Canonical representation *******/ -typedef struct { unsigned char digest[sizeof(XXH64_hash_t)]; } XXH64_canonical_t; -XXH_PUBLIC_API void XXH64_canonicalFromHash(XXH64_canonical_t* dst, XXH64_hash_t hash); -XXH_PUBLIC_API XXH64_hash_t XXH64_hashFromCanonical(const XXH64_canonical_t* src); - -/*! - * @} - * ************************************************************************ - * @defgroup xxh3_family XXH3 family - * @ingroup public - * @{ - * - * XXH3 is a more recent hash algorithm featuring: - * - Improved speed for both small and large inputs - * - True 64-bit and 128-bit outputs - * - SIMD acceleration - * - Improved 32-bit viability - * - * Speed analysis methodology is explained here: - * - * https://fastcompression.blogspot.com/2019/03/presenting-xxh3.html - * - * Compared to XXH64, expect XXH3 to run approximately - * ~2x faster on large inputs and >3x faster on small ones, - * exact differences vary depending on platform. - * - * XXH3's speed benefits greatly from SIMD and 64-bit arithmetic, - * but does not require it. - * Any 32-bit and 64-bit targets that can run XXH32 smoothly - * can run XXH3 at competitive speeds, even without vector support. - * Further details are explained in the implementation. - * - * Optimized implementations are provided for AVX512, AVX2, SSE2, NEON, POWER8, - * ZVector and scalar targets. This can be controlled via the XXH_VECTOR macro. - * - * XXH3 implementation is portable: - * it has a generic C90 formulation that can be compiled on any platform, - * all implementations generage exactly the same hash value on all platforms. - * Starting from v0.8.0, it's also labelled "stable", meaning that - * any future version will also generate the same hash value. - * - * XXH3 offers 2 variants, _64bits and _128bits. - * - * When only 64 bits are needed, prefer invoking the _64bits variant, as it - * reduces the amount of mixing, resulting in faster speed on small inputs. - * It's also generally simpler to manipulate a scalar return type than a struct. - * - * The API supports one-shot hashing, streaming mode, and custom secrets. - */ - -/*-********************************************************************** -* XXH3 64-bit variant -************************************************************************/ - -/* XXH3_64bits(): - * default 64-bit variant, using default secret and default seed of 0. - * It's the fastest variant. */ -XXH_PUBLIC_API XXH64_hash_t XXH3_64bits(const void* data, size_t len); - -/* - * XXH3_64bits_withSeed(): - * This variant generates a custom secret on the fly - * based on default secret altered using the `seed` value. - * While this operation is decently fast, note that it's not completely free. - * Note: seed==0 produces the same results as XXH3_64bits(). - */ -XXH_PUBLIC_API XXH64_hash_t XXH3_64bits_withSeed(const void* data, size_t len, XXH64_hash_t seed); - -/*! - * The bare minimum size for a custom secret. - * - * @see - * XXH3_64bits_withSecret(), XXH3_64bits_reset_withSecret(), - * XXH3_128bits_withSecret(), XXH3_128bits_reset_withSecret(). - */ -#define XXH3_SECRET_SIZE_MIN 136 - -/* - * XXH3_64bits_withSecret(): - * It's possible to provide any blob of bytes as a "secret" to generate the hash. - * This makes it more difficult for an external actor to prepare an intentional collision. - * The main condition is that secretSize *must* be large enough (>= XXH3_SECRET_SIZE_MIN). - * However, the quality of produced hash values depends on secret's entropy. - * Technically, the secret must look like a bunch of random bytes. - * Avoid "trivial" or structured data such as repeated sequences or a text document. - * Whenever unsure about the "randomness" of the blob of bytes, - * consider relabelling it as a "custom seed" instead, - * and employ "XXH3_generateSecret()" (see below) - * to generate a high entropy secret derived from the custom seed. - */ -XXH_PUBLIC_API XXH64_hash_t XXH3_64bits_withSecret(const void* data, size_t len, const void* secret, size_t secretSize); - - -/******* Streaming *******/ -/* - * Streaming requires state maintenance. - * This operation costs memory and CPU. - * As a consequence, streaming is slower than one-shot hashing. - * For better performance, prefer one-shot functions whenever applicable. - */ - -/*! - * @brief The state struct for the XXH3 streaming API. - * - * @see XXH3_state_s for details. - */ -typedef struct XXH3_state_s XXH3_state_t; -XXH_PUBLIC_API XXH3_state_t* XXH3_createState(void); -XXH_PUBLIC_API XXH_errorcode XXH3_freeState(XXH3_state_t* statePtr); -XXH_PUBLIC_API void XXH3_copyState(XXH3_state_t* dst_state, const XXH3_state_t* src_state); - -/* - * XXH3_64bits_reset(): - * Initialize with default parameters. - * digest will be equivalent to `XXH3_64bits()`. - */ -XXH_PUBLIC_API XXH_errorcode XXH3_64bits_reset(XXH3_state_t* statePtr); -/* - * XXH3_64bits_reset_withSeed(): - * Generate a custom secret from `seed`, and store it into `statePtr`. - * digest will be equivalent to `XXH3_64bits_withSeed()`. - */ -XXH_PUBLIC_API XXH_errorcode XXH3_64bits_reset_withSeed(XXH3_state_t* statePtr, XXH64_hash_t seed); -/* - * XXH3_64bits_reset_withSecret(): - * `secret` is referenced, it _must outlive_ the hash streaming session. - * Similar to one-shot API, `secretSize` must be >= `XXH3_SECRET_SIZE_MIN`, - * and the quality of produced hash values depends on secret's entropy - * (secret's content should look like a bunch of random bytes). - * When in doubt about the randomness of a candidate `secret`, - * consider employing `XXH3_generateSecret()` instead (see below). - */ -XXH_PUBLIC_API XXH_errorcode XXH3_64bits_reset_withSecret(XXH3_state_t* statePtr, const void* secret, size_t secretSize); - -XXH_PUBLIC_API XXH_errorcode XXH3_64bits_update (XXH3_state_t* statePtr, const void* input, size_t length); -XXH_PUBLIC_API XXH64_hash_t XXH3_64bits_digest (const XXH3_state_t* statePtr); - -/* note : canonical representation of XXH3 is the same as XXH64 - * since they both produce XXH64_hash_t values */ - - -/*-********************************************************************** -* XXH3 128-bit variant -************************************************************************/ - -/*! - * @brief The return value from 128-bit hashes. - * - * Stored in little endian order, although the fields themselves are in native - * endianness. - */ -typedef struct { - XXH64_hash_t low64; /*!< `value & 0xFFFFFFFFFFFFFFFF` */ - XXH64_hash_t high64; /*!< `value >> 64` */ -} XXH128_hash_t; - -XXH_PUBLIC_API XXH128_hash_t XXH3_128bits(const void* data, size_t len); -XXH_PUBLIC_API XXH128_hash_t XXH3_128bits_withSeed(const void* data, size_t len, XXH64_hash_t seed); -XXH_PUBLIC_API XXH128_hash_t XXH3_128bits_withSecret(const void* data, size_t len, const void* secret, size_t secretSize); - -/******* Streaming *******/ -/* - * Streaming requires state maintenance. - * This operation costs memory and CPU. - * As a consequence, streaming is slower than one-shot hashing. - * For better performance, prefer one-shot functions whenever applicable. - * - * XXH3_128bits uses the same XXH3_state_t as XXH3_64bits(). - * Use already declared XXH3_createState() and XXH3_freeState(). - * - * All reset and streaming functions have same meaning as their 64-bit counterpart. - */ - -XXH_PUBLIC_API XXH_errorcode XXH3_128bits_reset(XXH3_state_t* statePtr); -XXH_PUBLIC_API XXH_errorcode XXH3_128bits_reset_withSeed(XXH3_state_t* statePtr, XXH64_hash_t seed); -XXH_PUBLIC_API XXH_errorcode XXH3_128bits_reset_withSecret(XXH3_state_t* statePtr, const void* secret, size_t secretSize); - -XXH_PUBLIC_API XXH_errorcode XXH3_128bits_update (XXH3_state_t* statePtr, const void* input, size_t length); -XXH_PUBLIC_API XXH128_hash_t XXH3_128bits_digest (const XXH3_state_t* statePtr); - -/* Following helper functions make it possible to compare XXH128_hast_t values. - * Since XXH128_hash_t is a structure, this capability is not offered by the language. - * Note: For better performance, these functions can be inlined using XXH_INLINE_ALL */ - -/*! - * XXH128_isEqual(): - * Return: 1 if `h1` and `h2` are equal, 0 if they are not. - */ -XXH_PUBLIC_API int XXH128_isEqual(XXH128_hash_t h1, XXH128_hash_t h2); - -/*! - * XXH128_cmp(): - * - * This comparator is compatible with stdlib's `qsort()`/`bsearch()`. - * - * return: >0 if *h128_1 > *h128_2 - * =0 if *h128_1 == *h128_2 - * <0 if *h128_1 < *h128_2 - */ -XXH_PUBLIC_API int XXH128_cmp(const void* h128_1, const void* h128_2); - - -/******* Canonical representation *******/ -typedef struct { unsigned char digest[sizeof(XXH128_hash_t)]; } XXH128_canonical_t; -XXH_PUBLIC_API void XXH128_canonicalFromHash(XXH128_canonical_t* dst, XXH128_hash_t hash); -XXH_PUBLIC_API XXH128_hash_t XXH128_hashFromCanonical(const XXH128_canonical_t* src); - - -#endif /* XXH_NO_LONG_LONG */ - -/*! - * @} - */ -#endif /* XXHASH_H_5627135585666179 */ - - - -#if defined(XXH_STATIC_LINKING_ONLY) && !defined(XXHASH_H_STATIC_13879238742) -#define XXHASH_H_STATIC_13879238742 -/* **************************************************************************** - * This section contains declarations which are not guaranteed to remain stable. - * They may change in future versions, becoming incompatible with a different - * version of the library. - * These declarations should only be used with static linking. - * Never use them in association with dynamic linking! - ***************************************************************************** */ - -/* - * These definitions are only present to allow static allocation - * of XXH states, on stack or in a struct, for example. - * Never **ever** access their members directly. - */ - -/*! - * @internal - * @brief Structure for XXH32 streaming API. - * - * @note This is only defined when @ref XXH_STATIC_LINKING_ONLY, - * @ref XXH_INLINE_ALL, or @ref XXH_IMPLEMENTATION is defined. Otherwise it is - * an opaque type. This allows fields to safely be changed. - * - * Typedef'd to @ref XXH32_state_t. - * Do not access the members of this struct directly. - * @see XXH64_state_s, XXH3_state_s - */ -struct XXH32_state_s { - XXH32_hash_t total_len_32; /*!< Total length hashed, modulo 2^32 */ - XXH32_hash_t large_len; /*!< Whether the hash is >= 16 (handles @ref total_len_32 overflow) */ - XXH32_hash_t v1; /*!< First accumulator lane */ - XXH32_hash_t v2; /*!< Second accumulator lane */ - XXH32_hash_t v3; /*!< Third accumulator lane */ - XXH32_hash_t v4; /*!< Fourth accumulator lane */ - XXH32_hash_t mem32[4]; /*!< Internal buffer for partial reads. Treated as unsigned char[16]. */ - XXH32_hash_t memsize; /*!< Amount of data in @ref mem32 */ - XXH32_hash_t reserved; /*!< Reserved field. Do not read or write to it, it may be removed. */ -}; /* typedef'd to XXH32_state_t */ - - -#ifndef XXH_NO_LONG_LONG /* defined when there is no 64-bit support */ - -/*! - * @internal - * @brief Structure for XXH64 streaming API. - * - * @note This is only defined when @ref XXH_STATIC_LINKING_ONLY, - * @ref XXH_INLINE_ALL, or @ref XXH_IMPLEMENTATION is defined. Otherwise it is - * an opaque type. This allows fields to safely be changed. - * - * Typedef'd to @ref XXH64_state_t. - * Do not access the members of this struct directly. - * @see XXH32_state_s, XXH3_state_s - */ -struct XXH64_state_s { - XXH64_hash_t total_len; /*!< Total length hashed. This is always 64-bit. */ - XXH64_hash_t v1; /*!< First accumulator lane */ - XXH64_hash_t v2; /*!< Second accumulator lane */ - XXH64_hash_t v3; /*!< Third accumulator lane */ - XXH64_hash_t v4; /*!< Fourth accumulator lane */ - XXH64_hash_t mem64[4]; /*!< Internal buffer for partial reads. Treated as unsigned char[32]. */ - XXH32_hash_t memsize; /*!< Amount of data in @ref mem64 */ - XXH32_hash_t reserved32; /*!< Reserved field, needed for padding anyways*/ - XXH64_hash_t reserved64; /*!< Reserved field. Do not read or write to it, it may be removed. */ -}; /* typedef'd to XXH64_state_t */ - -#if defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11+ */ -# include -# define XXH_ALIGN(n) alignas(n) -#elif defined(__GNUC__) -# define XXH_ALIGN(n) __attribute__ ((aligned(n))) -#elif defined(_MSC_VER) -# define XXH_ALIGN(n) __declspec(align(n)) -#else -# define XXH_ALIGN(n) /* disabled */ -#endif - -/* Old GCC versions only accept the attribute after the type in structures. */ -#if !(defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)) /* C11+ */ \ - && defined(__GNUC__) -# define XXH_ALIGN_MEMBER(align, type) type XXH_ALIGN(align) -#else -# define XXH_ALIGN_MEMBER(align, type) XXH_ALIGN(align) type -#endif - -/*! - * @brief The size of the internal XXH3 buffer. - * - * This is the optimal update size for incremental hashing. - * - * @see XXH3_64b_update(), XXH3_128b_update(). - */ -#define XXH3_INTERNALBUFFER_SIZE 256 - -/*! - * @brief Default size of the secret buffer (and @ref XXH3_kSecret). - * - * This is the size used in @ref XXH3_kSecret and the seeded functions. - * - * Not to be confused with @ref XXH3_SECRET_SIZE_MIN. - */ -#define XXH3_SECRET_DEFAULT_SIZE 192 - -/*! - * @internal - * @brief Structure for XXH3 streaming API. - * - * @note This is only defined when @ref XXH_STATIC_LINKING_ONLY, - * @ref XXH_INLINE_ALL, or @ref XXH_IMPLEMENTATION is defined. Otherwise it is - * an opaque type. This allows fields to safely be changed. - * - * @note **This structure has a strict alignment requirement of 64 bytes.** Do - * not allocate this with `malloc()` or `new`, it will not be sufficiently - * aligned. Use @ref XXH3_createState() and @ref XXH3_freeState(), or stack - * allocation. - * - * Typedef'd to @ref XXH3_state_t. - * Do not access the members of this struct directly. - * - * @see XXH3_INITSTATE() for stack initialization. - * @see XXH3_createState(), XXH3_freeState(). - * @see XXH32_state_s, XXH64_state_s - */ -struct XXH3_state_s { - XXH_ALIGN_MEMBER(64, XXH64_hash_t acc[8]); - /*!< The 8 accumulators. Similar to `vN` in @ref XXH32_state_s::v1 and @ref XXH64_state_s */ - XXH_ALIGN_MEMBER(64, unsigned char customSecret[XXH3_SECRET_DEFAULT_SIZE]); - /*!< Used to store a custom secret generated from a seed. */ - XXH_ALIGN_MEMBER(64, unsigned char buffer[XXH3_INTERNALBUFFER_SIZE]); - /*!< The internal buffer. @see XXH32_state_s::mem32 */ - XXH32_hash_t bufferedSize; - /*!< The amount of memory in @ref buffer, @see XXH32_state_s::memsize */ - XXH32_hash_t reserved32; - /*!< Reserved field. Needed for padding on 64-bit. */ - size_t nbStripesSoFar; - /*!< Number or stripes processed. */ - XXH64_hash_t totalLen; - /*!< Total length hashed. 64-bit even on 32-bit targets. */ - size_t nbStripesPerBlock; - /*!< Number of stripes per block. */ - size_t secretLimit; - /*!< Size of @ref customSecret or @ref extSecret */ - XXH64_hash_t seed; - /*!< Seed for _withSeed variants. Must be zero otherwise, @see XXH3_INITSTATE() */ - XXH64_hash_t reserved64; - /*!< Reserved field. */ - const unsigned char* extSecret; - /*!< Reference to an external secret for the _withSecret variants, NULL - * for other variants. */ - /* note: there may be some padding at the end due to alignment on 64 bytes */ -}; /* typedef'd to XXH3_state_t */ - -#undef XXH_ALIGN_MEMBER - -/*! - * @brief Initializes a stack-allocated `XXH3_state_s`. - * - * When the @ref XXH3_state_t structure is merely emplaced on stack, - * it should be initialized with XXH3_INITSTATE() or a memset() - * in case its first reset uses XXH3_NNbits_reset_withSeed(). - * This init can be omitted if the first reset uses default or _withSecret mode. - * This operation isn't necessary when the state is created with XXH3_createState(). - * Note that this doesn't prepare the state for a streaming operation, - * it's still necessary to use XXH3_NNbits_reset*() afterwards. - */ -#define XXH3_INITSTATE(XXH3_state_ptr) { (XXH3_state_ptr)->seed = 0; } - - -/* === Experimental API === */ -/* Symbols defined below must be considered tied to a specific library version. */ - -/* - * XXH3_generateSecret(): - * - * Derive a high-entropy secret from any user-defined content, named customSeed. - * The generated secret can be used in combination with `*_withSecret()` functions. - * The `_withSecret()` variants are useful to provide a higher level of protection than 64-bit seed, - * as it becomes much more difficult for an external actor to guess how to impact the calculation logic. - * - * The function accepts as input a custom seed of any length and any content, - * and derives from it a high-entropy secret of length XXH3_SECRET_DEFAULT_SIZE - * into an already allocated buffer secretBuffer. - * The generated secret is _always_ XXH_SECRET_DEFAULT_SIZE bytes long. - * - * The generated secret can then be used with any `*_withSecret()` variant. - * Functions `XXH3_128bits_withSecret()`, `XXH3_64bits_withSecret()`, - * `XXH3_128bits_reset_withSecret()` and `XXH3_64bits_reset_withSecret()` - * are part of this list. They all accept a `secret` parameter - * which must be very long for implementation reasons (>= XXH3_SECRET_SIZE_MIN) - * _and_ feature very high entropy (consist of random-looking bytes). - * These conditions can be a high bar to meet, so - * this function can be used to generate a secret of proper quality. - * - * customSeed can be anything. It can have any size, even small ones, - * and its content can be anything, even stupidly "low entropy" source such as a bunch of zeroes. - * The resulting `secret` will nonetheless provide all expected qualities. - * - * Supplying NULL as the customSeed copies the default secret into `secretBuffer`. - * When customSeedSize > 0, supplying NULL as customSeed is undefined behavior. - */ -XXH_PUBLIC_API void XXH3_generateSecret(void* secretBuffer, const void* customSeed, size_t customSeedSize); - - -/* simple short-cut to pre-selected XXH3_128bits variant */ -XXH_PUBLIC_API XXH128_hash_t XXH128(const void* data, size_t len, XXH64_hash_t seed); - - -#endif /* XXH_NO_LONG_LONG */ -#if defined(XXH_INLINE_ALL) || defined(XXH_PRIVATE_API) -# define XXH_IMPLEMENTATION -#endif - -#endif /* defined(XXH_STATIC_LINKING_ONLY) && !defined(XXHASH_H_STATIC_13879238742) */ - - -/* ======================================================================== */ -/* ======================================================================== */ -/* ======================================================================== */ - - -/*-********************************************************************** - * xxHash implementation - *-********************************************************************** - * xxHash's implementation used to be hosted inside xxhash.c. - * - * However, inlining requires implementation to be visible to the compiler, - * hence be included alongside the header. - * Previously, implementation was hosted inside xxhash.c, - * which was then #included when inlining was activated. - * This construction created issues with a few build and install systems, - * as it required xxhash.c to be stored in /include directory. - * - * xxHash implementation is now directly integrated within xxhash.h. - * As a consequence, xxhash.c is no longer needed in /include. - * - * xxhash.c is still available and is still useful. - * In a "normal" setup, when xxhash is not inlined, - * xxhash.h only exposes the prototypes and public symbols, - * while xxhash.c can be built into an object file xxhash.o - * which can then be linked into the final binary. - ************************************************************************/ - -#if ( defined(XXH_INLINE_ALL) || defined(XXH_PRIVATE_API) \ - || defined(XXH_IMPLEMENTATION) ) && !defined(XXH_IMPLEM_13a8737387) -# define XXH_IMPLEM_13a8737387 - -/* ************************************* -* Tuning parameters -***************************************/ - -/*! - * @defgroup tuning Tuning parameters - * @{ - * - * Various macros to control xxHash's behavior. - */ -#ifdef XXH_DOXYGEN -/*! - * @brief Define this to disable 64-bit code. - * - * Useful if only using the @ref xxh32_family and you have a strict C90 compiler. - */ -# define XXH_NO_LONG_LONG -# undef XXH_NO_LONG_LONG /* don't actually */ -/*! - * @brief Controls how unaligned memory is accessed. - * - * By default, access to unaligned memory is controlled by `memcpy()`, which is - * safe and portable. - * - * Unfortunately, on some target/compiler combinations, the generated assembly - * is sub-optimal. - * - * The below switch allow selection of a different access method - * in the search for improved performance. - * - * @par Possible options: - * - * - `XXH_FORCE_MEMORY_ACCESS=0` (default): `memcpy` - * @par - * Use `memcpy()`. Safe and portable. Note that most modern compilers will - * eliminate the function call and treat it as an unaligned access. - * - * - `XXH_FORCE_MEMORY_ACCESS=1`: `__attribute__((packed))` - * @par - * Depends on compiler extensions and is therefore not portable. - * This method is safe _if_ your compiler supports it, - * and *generally* as fast or faster than `memcpy`. - * - * - `XXH_FORCE_MEMORY_ACCESS=2`: Direct cast - * @par - * Casts directly and dereferences. This method doesn't depend on the - * compiler, but it violates the C standard as it directly dereferences an - * unaligned pointer. It can generate buggy code on targets which do not - * support unaligned memory accesses, but in some circumstances, it's the - * only known way to get the most performance. - * - * - `XXH_FORCE_MEMORY_ACCESS=3`: Byteshift - * @par - * Also portable. This can generate the best code on old compilers which don't - * inline small `memcpy()` calls, and it might also be faster on big-endian - * systems which lack a native byteswap instruction. However, some compilers - * will emit literal byteshifts even if the target supports unaligned access. - * . - * - * @warning - * Methods 1 and 2 rely on implementation-defined behavior. Use these with - * care, as what works on one compiler/platform/optimization level may cause - * another to read garbage data or even crash. - * - * See https://stackoverflow.com/a/32095106/646947 for details. - * - * Prefer these methods in priority order (0 > 3 > 1 > 2) - */ -# define XXH_FORCE_MEMORY_ACCESS 0 -/*! - * @def XXH_ACCEPT_NULL_INPUT_POINTER - * @brief Whether to add explicit `NULL` checks. - * - * If the input pointer is `NULL` and the length is non-zero, xxHash's default - * behavior is to dereference it, triggering a segfault. - * - * When this macro is enabled, xxHash actively checks the input for a null pointer. - * If it is, the result for null input pointers is the same as a zero-length input. - */ -# define XXH_ACCEPT_NULL_INPUT_POINTER 0 -/*! - * @def XXH_FORCE_ALIGN_CHECK - * @brief If defined to non-zero, adds a special path for aligned inputs (XXH32() - * and XXH64() only). - * - * This is an important performance trick for architectures without decent - * unaligned memory access performance. - * - * It checks for input alignment, and when conditions are met, uses a "fast - * path" employing direct 32-bit/64-bit reads, resulting in _dramatically - * faster_ read speed. - * - * The check costs one initial branch per hash, which is generally negligible, - * but not zero. - * - * Moreover, it's not useful to generate an additional code path if memory - * access uses the same instruction for both aligned and unaligned - * addresses (e.g. x86 and aarch64). - * - * In these cases, the alignment check can be removed by setting this macro to 0. - * Then the code will always use unaligned memory access. - * Align check is automatically disabled on x86, x64 & arm64, - * which are platforms known to offer good unaligned memory accesses performance. - * - * This option does not affect XXH3 (only XXH32 and XXH64). - */ -# define XXH_FORCE_ALIGN_CHECK 0 - -/*! - * @def XXH_NO_INLINE_HINTS - * @brief When non-zero, sets all functions to `static`. - * - * By default, xxHash tries to force the compiler to inline almost all internal - * functions. - * - * This can usually improve performance due to reduced jumping and improved - * constant folding, but significantly increases the size of the binary which - * might not be favorable. - * - * Additionally, sometimes the forced inlining can be detrimental to performance, - * depending on the architecture. - * - * XXH_NO_INLINE_HINTS marks all internal functions as static, giving the - * compiler full control on whether to inline or not. - * - * When not optimizing (-O0), optimizing for size (-Os, -Oz), or using - * -fno-inline with GCC or Clang, this will automatically be defined. - */ -# define XXH_NO_INLINE_HINTS 0 - -/*! - * @def XXH_REROLL - * @brief Whether to reroll `XXH32_finalize` and `XXH64_finalize`. - * - * For performance, `XXH32_finalize` and `XXH64_finalize` use an unrolled loop - * in the form of a switch statement. - * - * This is not always desirable, as it generates larger code, and depending on - * the architecture, may even be slower - * - * This is automatically defined with `-Os`/`-Oz` on GCC and Clang. - */ -# define XXH_REROLL 0 - -/*! - * @internal - * @brief Redefines old internal names. - * - * For compatibility with code that uses xxHash's internals before the names - * were changed to improve namespacing. There is no other reason to use this. - */ -# define XXH_OLD_NAMES -# undef XXH_OLD_NAMES /* don't actually use, it is ugly. */ -#endif /* XXH_DOXYGEN */ -/*! - * @} - */ - -#ifndef XXH_FORCE_MEMORY_ACCESS /* can be defined externally, on command line for example */ - /* prefer __packed__ structures (method 1) for gcc on armv7 and armv8 */ -# if !defined(__clang__) && ( \ - (defined(__INTEL_COMPILER) && !defined(_WIN32)) || \ - (defined(__GNUC__) && (defined(__ARM_ARCH) && __ARM_ARCH >= 7)) ) -# define XXH_FORCE_MEMORY_ACCESS 1 -# endif -#endif - -#ifndef XXH_ACCEPT_NULL_INPUT_POINTER /* can be defined externally */ -# define XXH_ACCEPT_NULL_INPUT_POINTER 0 -#endif - -#ifndef XXH_FORCE_ALIGN_CHECK /* can be defined externally */ -# if defined(__i386) || defined(__x86_64__) || defined(__aarch64__) \ - || defined(_M_IX86) || defined(_M_X64) || defined(_M_ARM64) /* visual */ -# define XXH_FORCE_ALIGN_CHECK 0 -# else -# define XXH_FORCE_ALIGN_CHECK 1 -# endif -#endif - -#ifndef XXH_NO_INLINE_HINTS -# if defined(__OPTIMIZE_SIZE__) /* -Os, -Oz */ \ - || defined(__NO_INLINE__) /* -O0, -fno-inline */ -# define XXH_NO_INLINE_HINTS 1 -# else -# define XXH_NO_INLINE_HINTS 0 -# endif -#endif - -#ifndef XXH_REROLL -# if defined(__OPTIMIZE_SIZE__) -# define XXH_REROLL 1 -# else -# define XXH_REROLL 0 -# endif -#endif - -/*! - * @defgroup impl Implementation - * @{ - */ - - -/* ************************************* -* Includes & Memory related functions -***************************************/ -/* - * Modify the local functions below should you wish to use - * different memory routines for malloc() and free() - */ -#include - -/*! - * @internal - * @brief Modify this function to use a different routine than malloc(). - */ -static void* XXH_malloc(size_t s) { return malloc(s); } - -/*! - * @internal - * @brief Modify this function to use a different routine than free(). - */ -static void XXH_free(void* p) { free(p); } - -#include - -/*! - * @internal - * @brief Modify this function to use a different routine than memcpy(). - */ -static void* XXH_memcpy(void* dest, const void* src, size_t size) -{ - return memcpy(dest,src,size); -} - -#include /* ULLONG_MAX */ - - -/* ************************************* -* Compiler Specific Options -***************************************/ -#ifdef _MSC_VER /* Visual Studio warning fix */ -# pragma warning(disable : 4127) /* disable: C4127: conditional expression is constant */ -#endif - -#if XXH_NO_INLINE_HINTS /* disable inlining hints */ -# if defined(__GNUC__) -# define XXH_FORCE_INLINE static __attribute__((unused)) -# else -# define XXH_FORCE_INLINE static -# endif -# define XXH_NO_INLINE static -/* enable inlining hints */ -#elif defined(_MSC_VER) /* Visual Studio */ -# define XXH_FORCE_INLINE static __forceinline -# define XXH_NO_INLINE static __declspec(noinline) -#elif defined(__GNUC__) -# define XXH_FORCE_INLINE static __inline__ __attribute__((always_inline, unused)) -# define XXH_NO_INLINE static __attribute__((noinline)) -#elif defined (__cplusplus) \ - || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) /* C99 */ -# define XXH_FORCE_INLINE static inline -# define XXH_NO_INLINE static -#else -# define XXH_FORCE_INLINE static -# define XXH_NO_INLINE static -#endif - - - -/* ************************************* -* Debug -***************************************/ -/*! - * @ingroup tuning - * @def XXH_DEBUGLEVEL - * @brief Sets the debugging level. - * - * XXH_DEBUGLEVEL is expected to be defined externally, typically via the - * compiler's command line options. The value must be a number. - */ -#ifndef XXH_DEBUGLEVEL -# ifdef DEBUGLEVEL /* backwards compat */ -# define XXH_DEBUGLEVEL DEBUGLEVEL -# else -# define XXH_DEBUGLEVEL 0 -# endif -#endif - -#if (XXH_DEBUGLEVEL>=1) -# include /* note: can still be disabled with NDEBUG */ -# define XXH_ASSERT(c) assert(c) -#else -# define XXH_ASSERT(c) ((void)0) -#endif - -/* note: use after variable declarations */ -#define XXH_STATIC_ASSERT(c) do { enum { XXH_sa = 1/(int)(!!(c)) }; } while (0) - - -/* ************************************* -* Basic Types -***************************************/ -#if !defined (__VMS) \ - && (defined (__cplusplus) \ - || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) ) -# include - typedef uint8_t xxh_u8; -#else - typedef unsigned char xxh_u8; -#endif -typedef XXH32_hash_t xxh_u32; - -#ifdef XXH_OLD_NAMES -# define BYTE xxh_u8 -# define U8 xxh_u8 -# define U32 xxh_u32 -#endif - -/* *** Memory access *** */ - -/*! - * @internal - * @fn xxh_u32 XXH_read32(const void* ptr) - * @brief Reads an unaligned 32-bit integer from @p ptr in native endianness. - * - * Affected by @ref XXH_FORCE_MEMORY_ACCESS. - * - * @param ptr The pointer to read from. - * @return The 32-bit native endian integer from the bytes at @p ptr. - */ - -/*! - * @internal - * @fn xxh_u32 XXH_readLE32(const void* ptr) - * @brief Reads an unaligned 32-bit little endian integer from @p ptr. - * - * Affected by @ref XXH_FORCE_MEMORY_ACCESS. - * - * @param ptr The pointer to read from. - * @return The 32-bit little endian integer from the bytes at @p ptr. - */ - -/*! - * @internal - * @fn xxh_u32 XXH_readBE32(const void* ptr) - * @brief Reads an unaligned 32-bit big endian integer from @p ptr. - * - * Affected by @ref XXH_FORCE_MEMORY_ACCESS. - * - * @param ptr The pointer to read from. - * @return The 32-bit big endian integer from the bytes at @p ptr. - */ - -/*! - * @internal - * @fn xxh_u32 XXH_readLE32_align(const void* ptr, XXH_alignment align) - * @brief Like @ref XXH_readLE32(), but has an option for aligned reads. - * - * Affected by @ref XXH_FORCE_MEMORY_ACCESS. - * Note that when @ref XXH_FORCE_ALIGN_CHECK == 0, the @p align parameter is - * always @ref XXH_alignment::XXH_unaligned. - * - * @param ptr The pointer to read from. - * @param align Whether @p ptr is aligned. - * @pre - * If @p align == @ref XXH_alignment::XXH_aligned, @p ptr must be 4 byte - * aligned. - * @return The 32-bit little endian integer from the bytes at @p ptr. - */ - -#if (defined(XXH_FORCE_MEMORY_ACCESS) && (XXH_FORCE_MEMORY_ACCESS==3)) -/* - * Manual byteshift. Best for old compilers which don't inline memcpy. - * We actually directly use XXH_readLE32 and XXH_readBE32. - */ -#elif (defined(XXH_FORCE_MEMORY_ACCESS) && (XXH_FORCE_MEMORY_ACCESS==2)) - -/* - * Force direct memory access. Only works on CPU which support unaligned memory - * access in hardware. - */ -static xxh_u32 XXH_read32(const void* memPtr) { return *(const xxh_u32*) memPtr; } - -#elif (defined(XXH_FORCE_MEMORY_ACCESS) && (XXH_FORCE_MEMORY_ACCESS==1)) - -/* - * __pack instructions are safer but compiler specific, hence potentially - * problematic for some compilers. - * - * Currently only defined for GCC and ICC. - */ -#ifdef XXH_OLD_NAMES -typedef union { xxh_u32 u32; } __attribute__((packed)) unalign; -#endif -static xxh_u32 XXH_read32(const void* ptr) -{ - typedef union { xxh_u32 u32; } __attribute__((packed)) xxh_unalign; - return ((const xxh_unalign*)ptr)->u32; -} - -#else - -/* - * Portable and safe solution. Generally efficient. - * see: https://stackoverflow.com/a/32095106/646947 - */ -static xxh_u32 XXH_read32(const void* memPtr) -{ - xxh_u32 val; - memcpy(&val, memPtr, sizeof(val)); - return val; -} - -#endif /* XXH_FORCE_DIRECT_MEMORY_ACCESS */ - - -/* *** Endianness *** */ -typedef enum { XXH_bigEndian=0, XXH_littleEndian=1 } XXH_endianess; - -/*! - * @ingroup tuning - * @def XXH_CPU_LITTLE_ENDIAN - * @brief Whether the target is little endian. - * - * Defined to 1 if the target is little endian, or 0 if it is big endian. - * It can be defined externally, for example on the compiler command line. - * - * If it is not defined, a runtime check (which is usually constant folded) - * is used instead. - * - * @note - * This is not necessarily defined to an integer constant. - * - * @see XXH_isLittleEndian() for the runtime check. - */ -#ifndef XXH_CPU_LITTLE_ENDIAN -/* - * Try to detect endianness automatically, to avoid the nonstandard behavior - * in `XXH_isLittleEndian()` - */ -# if defined(_WIN32) /* Windows is always little endian */ \ - || defined(__LITTLE_ENDIAN__) \ - || (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) -# define XXH_CPU_LITTLE_ENDIAN 1 -# elif defined(__BIG_ENDIAN__) \ - || (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) -# define XXH_CPU_LITTLE_ENDIAN 0 -# else -/*! - * @internal - * @brief Runtime check for @ref XXH_CPU_LITTLE_ENDIAN. - * - * Most compilers will constant fold this. - */ -static int XXH_isLittleEndian(void) -{ - /* - * Portable and well-defined behavior. - * Don't use static: it is detrimental to performance. - */ - const union { xxh_u32 u; xxh_u8 c[4]; } one = { 1 }; - return one.c[0]; -} -# define XXH_CPU_LITTLE_ENDIAN XXH_isLittleEndian() -# endif -#endif - - - - -/* **************************************** -* Compiler-specific Functions and Macros -******************************************/ -#define XXH_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) - -#ifdef __has_builtin -# define XXH_HAS_BUILTIN(x) __has_builtin(x) -#else -# define XXH_HAS_BUILTIN(x) 0 -#endif - -/*! - * @internal - * @def XXH_rotl32(x,r) - * @brief 32-bit rotate left. - * - * @param x The 32-bit integer to be rotated. - * @param r The number of bits to rotate. - * @pre - * @p r > 0 && @p r < 32 - * @note - * @p x and @p r may be evaluated multiple times. - * @return The rotated result. - */ -#if !defined(NO_CLANG_BUILTIN) && XXH_HAS_BUILTIN(__builtin_rotateleft32) \ - && XXH_HAS_BUILTIN(__builtin_rotateleft64) -# define XXH_rotl32 __builtin_rotateleft32 -# define XXH_rotl64 __builtin_rotateleft64 -/* Note: although _rotl exists for minGW (GCC under windows), performance seems poor */ -#elif defined(_MSC_VER) -# define XXH_rotl32(x,r) _rotl(x,r) -# define XXH_rotl64(x,r) _rotl64(x,r) -#else -# define XXH_rotl32(x,r) (((x) << (r)) | ((x) >> (32 - (r)))) -# define XXH_rotl64(x,r) (((x) << (r)) | ((x) >> (64 - (r)))) -#endif - -/*! - * @internal - * @fn xxh_u32 XXH_swap32(xxh_u32 x) - * @brief A 32-bit byteswap. - * - * @param x The 32-bit integer to byteswap. - * @return @p x, byteswapped. - */ -#if defined(_MSC_VER) /* Visual Studio */ -# define XXH_swap32 _byteswap_ulong -#elif XXH_GCC_VERSION >= 403 -# define XXH_swap32 __builtin_bswap32 -#else -static xxh_u32 XXH_swap32 (xxh_u32 x) -{ - return ((x << 24) & 0xff000000 ) | - ((x << 8) & 0x00ff0000 ) | - ((x >> 8) & 0x0000ff00 ) | - ((x >> 24) & 0x000000ff ); -} -#endif - - -/* *************************** -* Memory reads -*****************************/ - -/*! - * @internal - * @brief Enum to indicate whether a pointer is aligned. - */ -typedef enum { - XXH_aligned, /*!< Aligned */ - XXH_unaligned /*!< Possibly unaligned */ -} XXH_alignment; - -/* - * XXH_FORCE_MEMORY_ACCESS==3 is an endian-independent byteshift load. - * - * This is ideal for older compilers which don't inline memcpy. - */ -#if (defined(XXH_FORCE_MEMORY_ACCESS) && (XXH_FORCE_MEMORY_ACCESS==3)) - -XXH_FORCE_INLINE xxh_u32 XXH_readLE32(const void* memPtr) -{ - const xxh_u8* bytePtr = (const xxh_u8 *)memPtr; - return bytePtr[0] - | ((xxh_u32)bytePtr[1] << 8) - | ((xxh_u32)bytePtr[2] << 16) - | ((xxh_u32)bytePtr[3] << 24); -} - -XXH_FORCE_INLINE xxh_u32 XXH_readBE32(const void* memPtr) -{ - const xxh_u8* bytePtr = (const xxh_u8 *)memPtr; - return bytePtr[3] - | ((xxh_u32)bytePtr[2] << 8) - | ((xxh_u32)bytePtr[1] << 16) - | ((xxh_u32)bytePtr[0] << 24); -} - -#else -XXH_FORCE_INLINE xxh_u32 XXH_readLE32(const void* ptr) -{ - return XXH_CPU_LITTLE_ENDIAN ? XXH_read32(ptr) : XXH_swap32(XXH_read32(ptr)); -} - -static xxh_u32 XXH_readBE32(const void* ptr) -{ - return XXH_CPU_LITTLE_ENDIAN ? XXH_swap32(XXH_read32(ptr)) : XXH_read32(ptr); -} -#endif - -XXH_FORCE_INLINE xxh_u32 -XXH_readLE32_align(const void* ptr, XXH_alignment align) -{ - if (align==XXH_unaligned) { - return XXH_readLE32(ptr); - } else { - return XXH_CPU_LITTLE_ENDIAN ? *(const xxh_u32*)ptr : XXH_swap32(*(const xxh_u32*)ptr); - } -} - - -/* ************************************* -* Misc -***************************************/ -/*! @ingroup public */ -XXH_PUBLIC_API unsigned XXH_versionNumber (void) { return XXH_VERSION_NUMBER; } - - -/* ******************************************************************* -* 32-bit hash functions -*********************************************************************/ -/*! - * @} - * @defgroup xxh32_impl XXH32 implementation - * @ingroup impl - * @{ - */ -static const xxh_u32 XXH_PRIME32_1 = 0x9E3779B1U; /*!< 0b10011110001101110111100110110001 */ -static const xxh_u32 XXH_PRIME32_2 = 0x85EBCA77U; /*!< 0b10000101111010111100101001110111 */ -static const xxh_u32 XXH_PRIME32_3 = 0xC2B2AE3DU; /*!< 0b11000010101100101010111000111101 */ -static const xxh_u32 XXH_PRIME32_4 = 0x27D4EB2FU; /*!< 0b00100111110101001110101100101111 */ -static const xxh_u32 XXH_PRIME32_5 = 0x165667B1U; /*!< 0b00010110010101100110011110110001 */ - -#ifdef XXH_OLD_NAMES -# define PRIME32_1 XXH_PRIME32_1 -# define PRIME32_2 XXH_PRIME32_2 -# define PRIME32_3 XXH_PRIME32_3 -# define PRIME32_4 XXH_PRIME32_4 -# define PRIME32_5 XXH_PRIME32_5 -#endif - -/*! - * @internal - * @brief Normal stripe processing routine. - * - * This shuffles the bits so that any bit from @p input impacts several bits in - * @p acc. - * - * @param acc The accumulator lane. - * @param input The stripe of input to mix. - * @return The mixed accumulator lane. - */ -static xxh_u32 XXH32_round(xxh_u32 acc, xxh_u32 input) -{ - acc += input * XXH_PRIME32_2; - acc = XXH_rotl32(acc, 13); - acc *= XXH_PRIME32_1; -#if defined(__GNUC__) && defined(__SSE4_1__) && !defined(XXH_ENABLE_AUTOVECTORIZE) - /* - * UGLY HACK: - * This inline assembly hack forces acc into a normal register. This is the - * only thing that prevents GCC and Clang from autovectorizing the XXH32 - * loop (pragmas and attributes don't work for some reason) without globally - * disabling SSE4.1. - * - * The reason we want to avoid vectorization is because despite working on - * 4 integers at a time, there are multiple factors slowing XXH32 down on - * SSE4: - * - There's a ridiculous amount of lag from pmulld (10 cycles of latency on - * newer chips!) making it slightly slower to multiply four integers at - * once compared to four integers independently. Even when pmulld was - * fastest, Sandy/Ivy Bridge, it is still not worth it to go into SSE - * just to multiply unless doing a long operation. - * - * - Four instructions are required to rotate, - * movqda tmp, v // not required with VEX encoding - * pslld tmp, 13 // tmp <<= 13 - * psrld v, 19 // x >>= 19 - * por v, tmp // x |= tmp - * compared to one for scalar: - * roll v, 13 // reliably fast across the board - * shldl v, v, 13 // Sandy Bridge and later prefer this for some reason - * - * - Instruction level parallelism is actually more beneficial here because - * the SIMD actually serializes this operation: While v1 is rotating, v2 - * can load data, while v3 can multiply. SSE forces them to operate - * together. - * - * How this hack works: - * __asm__("" // Declare an assembly block but don't declare any instructions - * : // However, as an Input/Output Operand, - * "+r" // constrain a read/write operand (+) as a general purpose register (r). - * (acc) // and set acc as the operand - * ); - * - * Because of the 'r', the compiler has promised that seed will be in a - * general purpose register and the '+' says that it will be 'read/write', - * so it has to assume it has changed. It is like volatile without all the - * loads and stores. - * - * Since the argument has to be in a normal register (not an SSE register), - * each time XXH32_round is called, it is impossible to vectorize. - */ - __asm__("" : "+r" (acc)); -#endif - return acc; -} - -/*! - * @internal - * @brief Mixes all bits to finalize the hash. - * - * The final mix ensures that all input bits have a chance to impact any bit in - * the output digest, resulting in an unbiased distribution. - * - * @param h32 The hash to avalanche. - * @return The avalanched hash. - */ -static xxh_u32 XXH32_avalanche(xxh_u32 h32) -{ - h32 ^= h32 >> 15; - h32 *= XXH_PRIME32_2; - h32 ^= h32 >> 13; - h32 *= XXH_PRIME32_3; - h32 ^= h32 >> 16; - return(h32); -} - -#define XXH_get32bits(p) XXH_readLE32_align(p, align) - -/*! - * @internal - * @brief Processes the last 0-15 bytes of @p ptr. - * - * There may be up to 15 bytes remaining to consume from the input. - * This final stage will digest them to ensure that all input bytes are present - * in the final mix. - * - * @param h32 The hash to finalize. - * @param ptr The pointer to the remaining input. - * @param len The remaining length, modulo 16. - * @param align Whether @p ptr is aligned. - * @return The finalized hash. - */ -static xxh_u32 -XXH32_finalize(xxh_u32 h32, const xxh_u8* ptr, size_t len, XXH_alignment align) -{ -#define XXH_PROCESS1 do { \ - h32 += (*ptr++) * XXH_PRIME32_5; \ - h32 = XXH_rotl32(h32, 11) * XXH_PRIME32_1; \ -} while (0) - -#define XXH_PROCESS4 do { \ - h32 += XXH_get32bits(ptr) * XXH_PRIME32_3; \ - ptr += 4; \ - h32 = XXH_rotl32(h32, 17) * XXH_PRIME32_4; \ -} while (0) - - /* Compact rerolled version */ - if (XXH_REROLL) { - len &= 15; - while (len >= 4) { - XXH_PROCESS4; - len -= 4; - } - while (len > 0) { - XXH_PROCESS1; - --len; - } - return XXH32_avalanche(h32); - } else { - switch(len&15) /* or switch(bEnd - p) */ { - case 12: XXH_PROCESS4; - /* fallthrough */ - case 8: XXH_PROCESS4; - /* fallthrough */ - case 4: XXH_PROCESS4; - return XXH32_avalanche(h32); - - case 13: XXH_PROCESS4; - /* fallthrough */ - case 9: XXH_PROCESS4; - /* fallthrough */ - case 5: XXH_PROCESS4; - XXH_PROCESS1; - return XXH32_avalanche(h32); - - case 14: XXH_PROCESS4; - /* fallthrough */ - case 10: XXH_PROCESS4; - /* fallthrough */ - case 6: XXH_PROCESS4; - XXH_PROCESS1; - XXH_PROCESS1; - return XXH32_avalanche(h32); - - case 15: XXH_PROCESS4; - /* fallthrough */ - case 11: XXH_PROCESS4; - /* fallthrough */ - case 7: XXH_PROCESS4; - /* fallthrough */ - case 3: XXH_PROCESS1; - /* fallthrough */ - case 2: XXH_PROCESS1; - /* fallthrough */ - case 1: XXH_PROCESS1; - /* fallthrough */ - case 0: return XXH32_avalanche(h32); - } - XXH_ASSERT(0); - return h32; /* reaching this point is deemed impossible */ - } -} - -#ifdef XXH_OLD_NAMES -# define PROCESS1 XXH_PROCESS1 -# define PROCESS4 XXH_PROCESS4 -#else -# undef XXH_PROCESS1 -# undef XXH_PROCESS4 -#endif - -/*! - * @internal - * @brief The implementation for @ref XXH32(). - * - * @param input, len, seed Directly passed from @ref XXH32(). - * @param align Whether @p input is aligned. - * @return The calculated hash. - */ -XXH_FORCE_INLINE xxh_u32 -XXH32_endian_align(const xxh_u8* input, size_t len, xxh_u32 seed, XXH_alignment align) -{ - const xxh_u8* bEnd = input + len; - xxh_u32 h32; - -#if defined(XXH_ACCEPT_NULL_INPUT_POINTER) && (XXH_ACCEPT_NULL_INPUT_POINTER>=1) - if (input==NULL) { - len=0; - bEnd=input=(const xxh_u8*)(size_t)16; - } -#endif - - if (len>=16) { - const xxh_u8* const limit = bEnd - 15; - xxh_u32 v1 = seed + XXH_PRIME32_1 + XXH_PRIME32_2; - xxh_u32 v2 = seed + XXH_PRIME32_2; - xxh_u32 v3 = seed + 0; - xxh_u32 v4 = seed - XXH_PRIME32_1; - - do { - v1 = XXH32_round(v1, XXH_get32bits(input)); input += 4; - v2 = XXH32_round(v2, XXH_get32bits(input)); input += 4; - v3 = XXH32_round(v3, XXH_get32bits(input)); input += 4; - v4 = XXH32_round(v4, XXH_get32bits(input)); input += 4; - } while (input < limit); - - h32 = XXH_rotl32(v1, 1) + XXH_rotl32(v2, 7) - + XXH_rotl32(v3, 12) + XXH_rotl32(v4, 18); - } else { - h32 = seed + XXH_PRIME32_5; - } - - h32 += (xxh_u32)len; - - return XXH32_finalize(h32, input, len&15, align); -} - -/*! @ingroup xxh32_family */ -XXH_PUBLIC_API XXH32_hash_t XXH32 (const void* input, size_t len, XXH32_hash_t seed) -{ -#if 0 - /* Simple version, good for code maintenance, but unfortunately slow for small inputs */ - XXH32_state_t state; - XXH32_reset(&state, seed); - XXH32_update(&state, (const xxh_u8*)input, len); - return XXH32_digest(&state); -#else - if (XXH_FORCE_ALIGN_CHECK) { - if ((((size_t)input) & 3) == 0) { /* Input is 4-bytes aligned, leverage the speed benefit */ - return XXH32_endian_align((const xxh_u8*)input, len, seed, XXH_aligned); - } } - - return XXH32_endian_align((const xxh_u8*)input, len, seed, XXH_unaligned); -#endif -} - - - -/******* Hash streaming *******/ -/*! - * @ingroup xxh32_family - */ -XXH_PUBLIC_API XXH32_state_t* XXH32_createState(void) -{ - return (XXH32_state_t*)XXH_malloc(sizeof(XXH32_state_t)); -} -/*! @ingroup xxh32_family */ -XXH_PUBLIC_API XXH_errorcode XXH32_freeState(XXH32_state_t* statePtr) -{ - XXH_free(statePtr); - return XXH_OK; -} - -/*! @ingroup xxh32_family */ -XXH_PUBLIC_API void XXH32_copyState(XXH32_state_t* dstState, const XXH32_state_t* srcState) -{ - memcpy(dstState, srcState, sizeof(*dstState)); -} - -/*! @ingroup xxh32_family */ -XXH_PUBLIC_API XXH_errorcode XXH32_reset(XXH32_state_t* statePtr, XXH32_hash_t seed) -{ - XXH32_state_t state; /* using a local state to memcpy() in order to avoid strict-aliasing warnings */ - memset(&state, 0, sizeof(state)); - state.v1 = seed + XXH_PRIME32_1 + XXH_PRIME32_2; - state.v2 = seed + XXH_PRIME32_2; - state.v3 = seed + 0; - state.v4 = seed - XXH_PRIME32_1; - /* do not write into reserved, planned to be removed in a future version */ - memcpy(statePtr, &state, sizeof(state) - sizeof(state.reserved)); - return XXH_OK; -} - - -/*! @ingroup xxh32_family */ -XXH_PUBLIC_API XXH_errorcode -XXH32_update(XXH32_state_t* state, const void* input, size_t len) -{ - if (input==NULL) -#if defined(XXH_ACCEPT_NULL_INPUT_POINTER) && (XXH_ACCEPT_NULL_INPUT_POINTER>=1) - return XXH_OK; -#else - return XXH_ERROR; -#endif - - { const xxh_u8* p = (const xxh_u8*)input; - const xxh_u8* const bEnd = p + len; - - state->total_len_32 += (XXH32_hash_t)len; - state->large_len |= (XXH32_hash_t)((len>=16) | (state->total_len_32>=16)); - - if (state->memsize + len < 16) { /* fill in tmp buffer */ - XXH_memcpy((xxh_u8*)(state->mem32) + state->memsize, input, len); - state->memsize += (XXH32_hash_t)len; - return XXH_OK; - } - - if (state->memsize) { /* some data left from previous update */ - XXH_memcpy((xxh_u8*)(state->mem32) + state->memsize, input, 16-state->memsize); - { const xxh_u32* p32 = state->mem32; - state->v1 = XXH32_round(state->v1, XXH_readLE32(p32)); p32++; - state->v2 = XXH32_round(state->v2, XXH_readLE32(p32)); p32++; - state->v3 = XXH32_round(state->v3, XXH_readLE32(p32)); p32++; - state->v4 = XXH32_round(state->v4, XXH_readLE32(p32)); - } - p += 16-state->memsize; - state->memsize = 0; - } - - if (p <= bEnd-16) { - const xxh_u8* const limit = bEnd - 16; - xxh_u32 v1 = state->v1; - xxh_u32 v2 = state->v2; - xxh_u32 v3 = state->v3; - xxh_u32 v4 = state->v4; - - do { - v1 = XXH32_round(v1, XXH_readLE32(p)); p+=4; - v2 = XXH32_round(v2, XXH_readLE32(p)); p+=4; - v3 = XXH32_round(v3, XXH_readLE32(p)); p+=4; - v4 = XXH32_round(v4, XXH_readLE32(p)); p+=4; - } while (p<=limit); - - state->v1 = v1; - state->v2 = v2; - state->v3 = v3; - state->v4 = v4; - } - - if (p < bEnd) { - XXH_memcpy(state->mem32, p, (size_t)(bEnd-p)); - state->memsize = (unsigned)(bEnd-p); - } - } - - return XXH_OK; -} - - -/*! @ingroup xxh32_family */ -XXH_PUBLIC_API XXH32_hash_t XXH32_digest(const XXH32_state_t* state) -{ - xxh_u32 h32; - - if (state->large_len) { - h32 = XXH_rotl32(state->v1, 1) - + XXH_rotl32(state->v2, 7) - + XXH_rotl32(state->v3, 12) - + XXH_rotl32(state->v4, 18); - } else { - h32 = state->v3 /* == seed */ + XXH_PRIME32_5; - } - - h32 += state->total_len_32; - - return XXH32_finalize(h32, (const xxh_u8*)state->mem32, state->memsize, XXH_aligned); -} - - -/******* Canonical representation *******/ - -/*! - * @ingroup xxh32_family - * The default return values from XXH functions are unsigned 32 and 64 bit - * integers. - * - * The canonical representation uses big endian convention, the same convention - * as human-readable numbers (large digits first). - * - * This way, hash values can be written into a file or buffer, remaining - * comparable across different systems. - * - * The following functions allow transformation of hash values to and from their - * canonical format. - */ -XXH_PUBLIC_API void XXH32_canonicalFromHash(XXH32_canonical_t* dst, XXH32_hash_t hash) -{ - XXH_STATIC_ASSERT(sizeof(XXH32_canonical_t) == sizeof(XXH32_hash_t)); - if (XXH_CPU_LITTLE_ENDIAN) hash = XXH_swap32(hash); - memcpy(dst, &hash, sizeof(*dst)); -} -/*! @ingroup xxh32_family */ -XXH_PUBLIC_API XXH32_hash_t XXH32_hashFromCanonical(const XXH32_canonical_t* src) -{ - return XXH_readBE32(src); -} - - -#ifndef XXH_NO_LONG_LONG - -/* ******************************************************************* -* 64-bit hash functions -*********************************************************************/ -/*! - * @} - * @ingroup impl - * @{ - */ -/******* Memory access *******/ - -typedef XXH64_hash_t xxh_u64; - -#ifdef XXH_OLD_NAMES -# define U64 xxh_u64 -#endif - -/*! - * XXH_REROLL_XXH64: - * Whether to reroll the XXH64_finalize() loop. - * - * Just like XXH32, we can unroll the XXH64_finalize() loop. This can be a - * performance gain on 64-bit hosts, as only one jump is required. - * - * However, on 32-bit hosts, because arithmetic needs to be done with two 32-bit - * registers, and 64-bit arithmetic needs to be simulated, it isn't beneficial - * to unroll. The code becomes ridiculously large (the largest function in the - * binary on i386!), and rerolling it saves anywhere from 3kB to 20kB. It is - * also slightly faster because it fits into cache better and is more likely - * to be inlined by the compiler. - * - * If XXH_REROLL is defined, this is ignored and the loop is always rerolled. - */ -#ifndef XXH_REROLL_XXH64 -# if (defined(__ILP32__) || defined(_ILP32)) /* ILP32 is often defined on 32-bit GCC family */ \ - || !(defined(__x86_64__) || defined(_M_X64) || defined(_M_AMD64) /* x86-64 */ \ - || defined(_M_ARM64) || defined(__aarch64__) || defined(__arm64__) /* aarch64 */ \ - || defined(__PPC64__) || defined(__PPC64LE__) || defined(__ppc64__) || defined(__powerpc64__) /* ppc64 */ \ - || defined(__mips64__) || defined(__mips64)) /* mips64 */ \ - || (!defined(SIZE_MAX) || SIZE_MAX < ULLONG_MAX) /* check limits */ -# define XXH_REROLL_XXH64 1 -# else -# define XXH_REROLL_XXH64 0 -# endif -#endif /* !defined(XXH_REROLL_XXH64) */ - -#if (defined(XXH_FORCE_MEMORY_ACCESS) && (XXH_FORCE_MEMORY_ACCESS==3)) -/* - * Manual byteshift. Best for old compilers which don't inline memcpy. - * We actually directly use XXH_readLE64 and XXH_readBE64. - */ -#elif (defined(XXH_FORCE_MEMORY_ACCESS) && (XXH_FORCE_MEMORY_ACCESS==2)) - -/* Force direct memory access. Only works on CPU which support unaligned memory access in hardware */ -static xxh_u64 XXH_read64(const void* memPtr) -{ - return *(const xxh_u64*) memPtr; -} - -#elif (defined(XXH_FORCE_MEMORY_ACCESS) && (XXH_FORCE_MEMORY_ACCESS==1)) - -/* - * __pack instructions are safer, but compiler specific, hence potentially - * problematic for some compilers. - * - * Currently only defined for GCC and ICC. - */ -#ifdef XXH_OLD_NAMES -typedef union { xxh_u32 u32; xxh_u64 u64; } __attribute__((packed)) unalign64; -#endif -static xxh_u64 XXH_read64(const void* ptr) -{ - typedef union { xxh_u32 u32; xxh_u64 u64; } __attribute__((packed)) xxh_unalign64; - return ((const xxh_unalign64*)ptr)->u64; -} - -#else - -/* - * Portable and safe solution. Generally efficient. - * see: https://stackoverflow.com/a/32095106/646947 - */ -static xxh_u64 XXH_read64(const void* memPtr) -{ - xxh_u64 val; - memcpy(&val, memPtr, sizeof(val)); - return val; -} - -#endif /* XXH_FORCE_DIRECT_MEMORY_ACCESS */ - -#if defined(_MSC_VER) /* Visual Studio */ -# define XXH_swap64 _byteswap_uint64 -#elif XXH_GCC_VERSION >= 403 -# define XXH_swap64 __builtin_bswap64 -#else -static xxh_u64 XXH_swap64(xxh_u64 x) -{ - return ((x << 56) & 0xff00000000000000ULL) | - ((x << 40) & 0x00ff000000000000ULL) | - ((x << 24) & 0x0000ff0000000000ULL) | - ((x << 8) & 0x000000ff00000000ULL) | - ((x >> 8) & 0x00000000ff000000ULL) | - ((x >> 24) & 0x0000000000ff0000ULL) | - ((x >> 40) & 0x000000000000ff00ULL) | - ((x >> 56) & 0x00000000000000ffULL); -} -#endif - - -/* XXH_FORCE_MEMORY_ACCESS==3 is an endian-independent byteshift load. */ -#if (defined(XXH_FORCE_MEMORY_ACCESS) && (XXH_FORCE_MEMORY_ACCESS==3)) - -XXH_FORCE_INLINE xxh_u64 XXH_readLE64(const void* memPtr) -{ - const xxh_u8* bytePtr = (const xxh_u8 *)memPtr; - return bytePtr[0] - | ((xxh_u64)bytePtr[1] << 8) - | ((xxh_u64)bytePtr[2] << 16) - | ((xxh_u64)bytePtr[3] << 24) - | ((xxh_u64)bytePtr[4] << 32) - | ((xxh_u64)bytePtr[5] << 40) - | ((xxh_u64)bytePtr[6] << 48) - | ((xxh_u64)bytePtr[7] << 56); -} - -XXH_FORCE_INLINE xxh_u64 XXH_readBE64(const void* memPtr) -{ - const xxh_u8* bytePtr = (const xxh_u8 *)memPtr; - return bytePtr[7] - | ((xxh_u64)bytePtr[6] << 8) - | ((xxh_u64)bytePtr[5] << 16) - | ((xxh_u64)bytePtr[4] << 24) - | ((xxh_u64)bytePtr[3] << 32) - | ((xxh_u64)bytePtr[2] << 40) - | ((xxh_u64)bytePtr[1] << 48) - | ((xxh_u64)bytePtr[0] << 56); -} - -#else -XXH_FORCE_INLINE xxh_u64 XXH_readLE64(const void* ptr) -{ - return XXH_CPU_LITTLE_ENDIAN ? XXH_read64(ptr) : XXH_swap64(XXH_read64(ptr)); -} - -static xxh_u64 XXH_readBE64(const void* ptr) -{ - return XXH_CPU_LITTLE_ENDIAN ? XXH_swap64(XXH_read64(ptr)) : XXH_read64(ptr); -} -#endif - -XXH_FORCE_INLINE xxh_u64 -XXH_readLE64_align(const void* ptr, XXH_alignment align) -{ - if (align==XXH_unaligned) - return XXH_readLE64(ptr); - else - return XXH_CPU_LITTLE_ENDIAN ? *(const xxh_u64*)ptr : XXH_swap64(*(const xxh_u64*)ptr); -} - - -/******* xxh64 *******/ -/*! - * @} - * @defgroup xxh64_impl XXH64 implementation - * @ingroup impl - * @{ - */ -static const xxh_u64 XXH_PRIME64_1 = 0x9E3779B185EBCA87ULL; /*!< 0b1001111000110111011110011011000110000101111010111100101010000111 */ -static const xxh_u64 XXH_PRIME64_2 = 0xC2B2AE3D27D4EB4FULL; /*!< 0b1100001010110010101011100011110100100111110101001110101101001111 */ -static const xxh_u64 XXH_PRIME64_3 = 0x165667B19E3779F9ULL; /*!< 0b0001011001010110011001111011000110011110001101110111100111111001 */ -static const xxh_u64 XXH_PRIME64_4 = 0x85EBCA77C2B2AE63ULL; /*!< 0b1000010111101011110010100111011111000010101100101010111001100011 */ -static const xxh_u64 XXH_PRIME64_5 = 0x27D4EB2F165667C5ULL; /*!< 0b0010011111010100111010110010111100010110010101100110011111000101 */ - -#ifdef XXH_OLD_NAMES -# define PRIME64_1 XXH_PRIME64_1 -# define PRIME64_2 XXH_PRIME64_2 -# define PRIME64_3 XXH_PRIME64_3 -# define PRIME64_4 XXH_PRIME64_4 -# define PRIME64_5 XXH_PRIME64_5 -#endif - -static xxh_u64 XXH64_round(xxh_u64 acc, xxh_u64 input) -{ - acc += input * XXH_PRIME64_2; - acc = XXH_rotl64(acc, 31); - acc *= XXH_PRIME64_1; - return acc; -} - -static xxh_u64 XXH64_mergeRound(xxh_u64 acc, xxh_u64 val) -{ - val = XXH64_round(0, val); - acc ^= val; - acc = acc * XXH_PRIME64_1 + XXH_PRIME64_4; - return acc; -} - -static xxh_u64 XXH64_avalanche(xxh_u64 h64) -{ - h64 ^= h64 >> 33; - h64 *= XXH_PRIME64_2; - h64 ^= h64 >> 29; - h64 *= XXH_PRIME64_3; - h64 ^= h64 >> 32; - return h64; -} - - -#define XXH_get64bits(p) XXH_readLE64_align(p, align) - -static xxh_u64 -XXH64_finalize(xxh_u64 h64, const xxh_u8* ptr, size_t len, XXH_alignment align) -{ -#define XXH_PROCESS1_64 do { \ - h64 ^= (*ptr++) * XXH_PRIME64_5; \ - h64 = XXH_rotl64(h64, 11) * XXH_PRIME64_1; \ -} while (0) - -#define XXH_PROCESS4_64 do { \ - h64 ^= (xxh_u64)(XXH_get32bits(ptr)) * XXH_PRIME64_1; \ - ptr += 4; \ - h64 = XXH_rotl64(h64, 23) * XXH_PRIME64_2 + XXH_PRIME64_3; \ -} while (0) - -#define XXH_PROCESS8_64 do { \ - xxh_u64 const k1 = XXH64_round(0, XXH_get64bits(ptr)); \ - ptr += 8; \ - h64 ^= k1; \ - h64 = XXH_rotl64(h64,27) * XXH_PRIME64_1 + XXH_PRIME64_4; \ -} while (0) - - /* Rerolled version for 32-bit targets is faster and much smaller. */ - if (XXH_REROLL || XXH_REROLL_XXH64) { - len &= 31; - while (len >= 8) { - XXH_PROCESS8_64; - len -= 8; - } - if (len >= 4) { - XXH_PROCESS4_64; - len -= 4; - } - while (len > 0) { - XXH_PROCESS1_64; - --len; - } - return XXH64_avalanche(h64); - } else { - switch(len & 31) { - case 24: XXH_PROCESS8_64; - /* fallthrough */ - case 16: XXH_PROCESS8_64; - /* fallthrough */ - case 8: XXH_PROCESS8_64; - return XXH64_avalanche(h64); - - case 28: XXH_PROCESS8_64; - /* fallthrough */ - case 20: XXH_PROCESS8_64; - /* fallthrough */ - case 12: XXH_PROCESS8_64; - /* fallthrough */ - case 4: XXH_PROCESS4_64; - return XXH64_avalanche(h64); - - case 25: XXH_PROCESS8_64; - /* fallthrough */ - case 17: XXH_PROCESS8_64; - /* fallthrough */ - case 9: XXH_PROCESS8_64; - XXH_PROCESS1_64; - return XXH64_avalanche(h64); - - case 29: XXH_PROCESS8_64; - /* fallthrough */ - case 21: XXH_PROCESS8_64; - /* fallthrough */ - case 13: XXH_PROCESS8_64; - /* fallthrough */ - case 5: XXH_PROCESS4_64; - XXH_PROCESS1_64; - return XXH64_avalanche(h64); - - case 26: XXH_PROCESS8_64; - /* fallthrough */ - case 18: XXH_PROCESS8_64; - /* fallthrough */ - case 10: XXH_PROCESS8_64; - XXH_PROCESS1_64; - XXH_PROCESS1_64; - return XXH64_avalanche(h64); - - case 30: XXH_PROCESS8_64; - /* fallthrough */ - case 22: XXH_PROCESS8_64; - /* fallthrough */ - case 14: XXH_PROCESS8_64; - /* fallthrough */ - case 6: XXH_PROCESS4_64; - XXH_PROCESS1_64; - XXH_PROCESS1_64; - return XXH64_avalanche(h64); - - case 27: XXH_PROCESS8_64; - /* fallthrough */ - case 19: XXH_PROCESS8_64; - /* fallthrough */ - case 11: XXH_PROCESS8_64; - XXH_PROCESS1_64; - XXH_PROCESS1_64; - XXH_PROCESS1_64; - return XXH64_avalanche(h64); - - case 31: XXH_PROCESS8_64; - /* fallthrough */ - case 23: XXH_PROCESS8_64; - /* fallthrough */ - case 15: XXH_PROCESS8_64; - /* fallthrough */ - case 7: XXH_PROCESS4_64; - /* fallthrough */ - case 3: XXH_PROCESS1_64; - /* fallthrough */ - case 2: XXH_PROCESS1_64; - /* fallthrough */ - case 1: XXH_PROCESS1_64; - /* fallthrough */ - case 0: return XXH64_avalanche(h64); - } - } - /* impossible to reach */ - XXH_ASSERT(0); - return 0; /* unreachable, but some compilers complain without it */ -} - -#ifdef XXH_OLD_NAMES -# define PROCESS1_64 XXH_PROCESS1_64 -# define PROCESS4_64 XXH_PROCESS4_64 -# define PROCESS8_64 XXH_PROCESS8_64 -#else -# undef XXH_PROCESS1_64 -# undef XXH_PROCESS4_64 -# undef XXH_PROCESS8_64 -#endif - -XXH_FORCE_INLINE xxh_u64 -XXH64_endian_align(const xxh_u8* input, size_t len, xxh_u64 seed, XXH_alignment align) -{ - const xxh_u8* bEnd = input + len; - xxh_u64 h64; - -#if defined(XXH_ACCEPT_NULL_INPUT_POINTER) && (XXH_ACCEPT_NULL_INPUT_POINTER>=1) - if (input==NULL) { - len=0; - bEnd=input=(const xxh_u8*)(size_t)32; - } -#endif - - if (len>=32) { - const xxh_u8* const limit = bEnd - 32; - xxh_u64 v1 = seed + XXH_PRIME64_1 + XXH_PRIME64_2; - xxh_u64 v2 = seed + XXH_PRIME64_2; - xxh_u64 v3 = seed + 0; - xxh_u64 v4 = seed - XXH_PRIME64_1; - - do { - v1 = XXH64_round(v1, XXH_get64bits(input)); input+=8; - v2 = XXH64_round(v2, XXH_get64bits(input)); input+=8; - v3 = XXH64_round(v3, XXH_get64bits(input)); input+=8; - v4 = XXH64_round(v4, XXH_get64bits(input)); input+=8; - } while (input<=limit); - - h64 = XXH_rotl64(v1, 1) + XXH_rotl64(v2, 7) + XXH_rotl64(v3, 12) + XXH_rotl64(v4, 18); - h64 = XXH64_mergeRound(h64, v1); - h64 = XXH64_mergeRound(h64, v2); - h64 = XXH64_mergeRound(h64, v3); - h64 = XXH64_mergeRound(h64, v4); - - } else { - h64 = seed + XXH_PRIME64_5; - } - - h64 += (xxh_u64) len; - - return XXH64_finalize(h64, input, len, align); -} - - -/*! @ingroup xxh64_family */ -XXH_PUBLIC_API XXH64_hash_t XXH64 (const void* input, size_t len, XXH64_hash_t seed) -{ -#if 0 - /* Simple version, good for code maintenance, but unfortunately slow for small inputs */ - XXH64_state_t state; - XXH64_reset(&state, seed); - XXH64_update(&state, (const xxh_u8*)input, len); - return XXH64_digest(&state); -#else - if (XXH_FORCE_ALIGN_CHECK) { - if ((((size_t)input) & 7)==0) { /* Input is aligned, let's leverage the speed advantage */ - return XXH64_endian_align((const xxh_u8*)input, len, seed, XXH_aligned); - } } - - return XXH64_endian_align((const xxh_u8*)input, len, seed, XXH_unaligned); - -#endif -} - -/******* Hash Streaming *******/ - -/*! @ingroup xxh64_family*/ -XXH_PUBLIC_API XXH64_state_t* XXH64_createState(void) -{ - return (XXH64_state_t*)XXH_malloc(sizeof(XXH64_state_t)); -} -/*! @ingroup xxh64_family */ -XXH_PUBLIC_API XXH_errorcode XXH64_freeState(XXH64_state_t* statePtr) -{ - XXH_free(statePtr); - return XXH_OK; -} - -/*! @ingroup xxh64_family */ -XXH_PUBLIC_API void XXH64_copyState(XXH64_state_t* dstState, const XXH64_state_t* srcState) -{ - memcpy(dstState, srcState, sizeof(*dstState)); -} - -/*! @ingroup xxh64_family */ -XXH_PUBLIC_API XXH_errorcode XXH64_reset(XXH64_state_t* statePtr, XXH64_hash_t seed) -{ - XXH64_state_t state; /* use a local state to memcpy() in order to avoid strict-aliasing warnings */ - memset(&state, 0, sizeof(state)); - state.v1 = seed + XXH_PRIME64_1 + XXH_PRIME64_2; - state.v2 = seed + XXH_PRIME64_2; - state.v3 = seed + 0; - state.v4 = seed - XXH_PRIME64_1; - /* do not write into reserved64, might be removed in a future version */ - memcpy(statePtr, &state, sizeof(state) - sizeof(state.reserved64)); - return XXH_OK; -} - -/*! @ingroup xxh64_family */ -XXH_PUBLIC_API XXH_errorcode -XXH64_update (XXH64_state_t* state, const void* input, size_t len) -{ - if (input==NULL) -#if defined(XXH_ACCEPT_NULL_INPUT_POINTER) && (XXH_ACCEPT_NULL_INPUT_POINTER>=1) - return XXH_OK; -#else - return XXH_ERROR; -#endif - - { const xxh_u8* p = (const xxh_u8*)input; - const xxh_u8* const bEnd = p + len; - - state->total_len += len; - - if (state->memsize + len < 32) { /* fill in tmp buffer */ - XXH_memcpy(((xxh_u8*)state->mem64) + state->memsize, input, len); - state->memsize += (xxh_u32)len; - return XXH_OK; - } - - if (state->memsize) { /* tmp buffer is full */ - XXH_memcpy(((xxh_u8*)state->mem64) + state->memsize, input, 32-state->memsize); - state->v1 = XXH64_round(state->v1, XXH_readLE64(state->mem64+0)); - state->v2 = XXH64_round(state->v2, XXH_readLE64(state->mem64+1)); - state->v3 = XXH64_round(state->v3, XXH_readLE64(state->mem64+2)); - state->v4 = XXH64_round(state->v4, XXH_readLE64(state->mem64+3)); - p += 32 - state->memsize; - state->memsize = 0; - } - - if (p+32 <= bEnd) { - const xxh_u8* const limit = bEnd - 32; - xxh_u64 v1 = state->v1; - xxh_u64 v2 = state->v2; - xxh_u64 v3 = state->v3; - xxh_u64 v4 = state->v4; - - do { - v1 = XXH64_round(v1, XXH_readLE64(p)); p+=8; - v2 = XXH64_round(v2, XXH_readLE64(p)); p+=8; - v3 = XXH64_round(v3, XXH_readLE64(p)); p+=8; - v4 = XXH64_round(v4, XXH_readLE64(p)); p+=8; - } while (p<=limit); - - state->v1 = v1; - state->v2 = v2; - state->v3 = v3; - state->v4 = v4; - } - - if (p < bEnd) { - XXH_memcpy(state->mem64, p, (size_t)(bEnd-p)); - state->memsize = (unsigned)(bEnd-p); - } - } - - return XXH_OK; -} - - -/*! @ingroup xxh64_family */ -XXH_PUBLIC_API XXH64_hash_t XXH64_digest(const XXH64_state_t* state) -{ - xxh_u64 h64; - - if (state->total_len >= 32) { - xxh_u64 const v1 = state->v1; - xxh_u64 const v2 = state->v2; - xxh_u64 const v3 = state->v3; - xxh_u64 const v4 = state->v4; - - h64 = XXH_rotl64(v1, 1) + XXH_rotl64(v2, 7) + XXH_rotl64(v3, 12) + XXH_rotl64(v4, 18); - h64 = XXH64_mergeRound(h64, v1); - h64 = XXH64_mergeRound(h64, v2); - h64 = XXH64_mergeRound(h64, v3); - h64 = XXH64_mergeRound(h64, v4); - } else { - h64 = state->v3 /*seed*/ + XXH_PRIME64_5; - } - - h64 += (xxh_u64) state->total_len; - - return XXH64_finalize(h64, (const xxh_u8*)state->mem64, (size_t)state->total_len, XXH_aligned); -} - - -/******* Canonical representation *******/ - -/*! @ingroup xxh64_family */ -XXH_PUBLIC_API void XXH64_canonicalFromHash(XXH64_canonical_t* dst, XXH64_hash_t hash) -{ - XXH_STATIC_ASSERT(sizeof(XXH64_canonical_t) == sizeof(XXH64_hash_t)); - if (XXH_CPU_LITTLE_ENDIAN) hash = XXH_swap64(hash); - memcpy(dst, &hash, sizeof(*dst)); -} - -/*! @ingroup xxh64_family */ -XXH_PUBLIC_API XXH64_hash_t XXH64_hashFromCanonical(const XXH64_canonical_t* src) -{ - return XXH_readBE64(src); -} - - - -/* ********************************************************************* -* XXH3 -* New generation hash designed for speed on small keys and vectorization -************************************************************************ */ -/*! - * @} - * @defgroup xxh3_impl XXH3 implementation - * @ingroup impl - * @{ - */ - -/* === Compiler specifics === */ - -#if ((defined(sun) || defined(__sun)) && __cplusplus) /* Solaris includes __STDC_VERSION__ with C++. Tested with GCC 5.5 */ -# define XXH_RESTRICT /* disable */ -#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* >= C99 */ -# define XXH_RESTRICT restrict -#else -/* Note: it might be useful to define __restrict or __restrict__ for some C++ compilers */ -# define XXH_RESTRICT /* disable */ -#endif - -#if (defined(__GNUC__) && (__GNUC__ >= 3)) \ - || (defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 800)) \ - || defined(__clang__) -# define XXH_likely(x) __builtin_expect(x, 1) -# define XXH_unlikely(x) __builtin_expect(x, 0) -#else -# define XXH_likely(x) (x) -# define XXH_unlikely(x) (x) -#endif - -#if defined(__GNUC__) -# if defined(__AVX2__) -# include -# elif defined(__SSE2__) -# include -# elif defined(__ARM_NEON__) || defined(__ARM_NEON) -# define inline __inline__ /* circumvent a clang bug */ -# include -# undef inline -# endif -#elif defined(_MSC_VER) -# include -#endif - -/* - * One goal of XXH3 is to make it fast on both 32-bit and 64-bit, while - * remaining a true 64-bit/128-bit hash function. - * - * This is done by prioritizing a subset of 64-bit operations that can be - * emulated without too many steps on the average 32-bit machine. - * - * For example, these two lines seem similar, and run equally fast on 64-bit: - * - * xxh_u64 x; - * x ^= (x >> 47); // good - * x ^= (x >> 13); // bad - * - * However, to a 32-bit machine, there is a major difference. - * - * x ^= (x >> 47) looks like this: - * - * x.lo ^= (x.hi >> (47 - 32)); - * - * while x ^= (x >> 13) looks like this: - * - * // note: funnel shifts are not usually cheap. - * x.lo ^= (x.lo >> 13) | (x.hi << (32 - 13)); - * x.hi ^= (x.hi >> 13); - * - * The first one is significantly faster than the second, simply because the - * shift is larger than 32. This means: - * - All the bits we need are in the upper 32 bits, so we can ignore the lower - * 32 bits in the shift. - * - The shift result will always fit in the lower 32 bits, and therefore, - * we can ignore the upper 32 bits in the xor. - * - * Thanks to this optimization, XXH3 only requires these features to be efficient: - * - * - Usable unaligned access - * - A 32-bit or 64-bit ALU - * - If 32-bit, a decent ADC instruction - * - A 32 or 64-bit multiply with a 64-bit result - * - For the 128-bit variant, a decent byteswap helps short inputs. - * - * The first two are already required by XXH32, and almost all 32-bit and 64-bit - * platforms which can run XXH32 can run XXH3 efficiently. - * - * Thumb-1, the classic 16-bit only subset of ARM's instruction set, is one - * notable exception. - * - * First of all, Thumb-1 lacks support for the UMULL instruction which - * performs the important long multiply. This means numerous __aeabi_lmul - * calls. - * - * Second of all, the 8 functional registers are just not enough. - * Setup for __aeabi_lmul, byteshift loads, pointers, and all arithmetic need - * Lo registers, and this shuffling results in thousands more MOVs than A32. - * - * A32 and T32 don't have this limitation. They can access all 14 registers, - * do a 32->64 multiply with UMULL, and the flexible operand allowing free - * shifts is helpful, too. - * - * Therefore, we do a quick sanity check. - * - * If compiling Thumb-1 for a target which supports ARM instructions, we will - * emit a warning, as it is not a "sane" platform to compile for. - * - * Usually, if this happens, it is because of an accident and you probably need - * to specify -march, as you likely meant to compile for a newer architecture. - * - * Credit: large sections of the vectorial and asm source code paths - * have been contributed by @easyaspi314 - */ -#if defined(__thumb__) && !defined(__thumb2__) && defined(__ARM_ARCH_ISA_ARM) -# warning "XXH3 is highly inefficient without ARM or Thumb-2." -#endif - -/* ========================================== - * Vectorization detection - * ========================================== */ - -#ifdef XXH_DOXYGEN -/*! - * @ingroup tuning - * @brief Overrides the vectorization implementation chosen for XXH3. - * - * Can be defined to 0 to disable SIMD or any of the values mentioned in - * @ref XXH_VECTOR_TYPE. - * - * If this is not defined, it uses predefined macros to determine the best - * implementation. - */ -# define XXH_VECTOR XXH_SCALAR -/*! - * @ingroup tuning - * @brief Possible values for @ref XXH_VECTOR. - * - * Note that these are actually implemented as macros. - * - * If this is not defined, it is detected automatically. - * @ref XXH_X86DISPATCH overrides this. - */ -enum XXH_VECTOR_TYPE /* fake enum */ { - XXH_SCALAR = 0, /*!< Portable scalar version */ - XXH_SSE2 = 1, /*!< - * SSE2 for Pentium 4, Opteron, all x86_64. - * - * @note SSE2 is also guaranteed on Windows 10, macOS, and - * Android x86. - */ - XXH_AVX2 = 2, /*!< AVX2 for Haswell and Bulldozer */ - XXH_AVX512 = 3, /*!< AVX512 for Skylake and Icelake */ - XXH_NEON = 4, /*!< NEON for most ARMv7-A and all AArch64 */ - XXH_VSX = 5, /*!< VSX and ZVector for POWER8/z13 (64-bit) */ -}; -/*! - * @ingroup tuning - * @brief Selects the minimum alignment for XXH3's accumulators. - * - * When using SIMD, this should match the alignment reqired for said vector - * type, so, for example, 32 for AVX2. - * - * Default: Auto detected. - */ -# define XXH_ACC_ALIGN 8 -#endif - -/* Actual definition */ -#ifndef XXH_DOXYGEN -# define XXH_SCALAR 0 -# define XXH_SSE2 1 -# define XXH_AVX2 2 -# define XXH_AVX512 3 -# define XXH_NEON 4 -# define XXH_VSX 5 -#endif - -#ifndef XXH_VECTOR /* can be defined on command line */ -# if defined(__AVX512F__) -# define XXH_VECTOR XXH_AVX512 -# elif defined(__AVX2__) -# define XXH_VECTOR XXH_AVX2 -# elif defined(__SSE2__) || defined(_M_AMD64) || defined(_M_X64) || (defined(_M_IX86_FP) && (_M_IX86_FP == 2)) -# define XXH_VECTOR XXH_SSE2 -# elif defined(__GNUC__) /* msvc support maybe later */ \ - && (defined(__ARM_NEON__) || defined(__ARM_NEON)) \ - && (defined(__LITTLE_ENDIAN__) /* We only support little endian NEON */ \ - || (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)) -# define XXH_VECTOR XXH_NEON -# elif (defined(__PPC64__) && defined(__POWER8_VECTOR__)) \ - || (defined(__s390x__) && defined(__VEC__)) \ - && defined(__GNUC__) /* TODO: IBM XL */ -# define XXH_VECTOR XXH_VSX -# else -# define XXH_VECTOR XXH_SCALAR -# endif -#endif - -/* - * Controls the alignment of the accumulator, - * for compatibility with aligned vector loads, which are usually faster. - */ -#ifndef XXH_ACC_ALIGN -# if defined(XXH_X86DISPATCH) -# define XXH_ACC_ALIGN 64 /* for compatibility with avx512 */ -# elif XXH_VECTOR == XXH_SCALAR /* scalar */ -# define XXH_ACC_ALIGN 8 -# elif XXH_VECTOR == XXH_SSE2 /* sse2 */ -# define XXH_ACC_ALIGN 16 -# elif XXH_VECTOR == XXH_AVX2 /* avx2 */ -# define XXH_ACC_ALIGN 32 -# elif XXH_VECTOR == XXH_NEON /* neon */ -# define XXH_ACC_ALIGN 16 -# elif XXH_VECTOR == XXH_VSX /* vsx */ -# define XXH_ACC_ALIGN 16 -# elif XXH_VECTOR == XXH_AVX512 /* avx512 */ -# define XXH_ACC_ALIGN 64 -# endif -#endif - -#if defined(XXH_X86DISPATCH) || XXH_VECTOR == XXH_SSE2 \ - || XXH_VECTOR == XXH_AVX2 || XXH_VECTOR == XXH_AVX512 -# define XXH_SEC_ALIGN XXH_ACC_ALIGN -#else -# define XXH_SEC_ALIGN 8 -#endif - -/* - * UGLY HACK: - * GCC usually generates the best code with -O3 for xxHash. - * - * However, when targeting AVX2, it is overzealous in its unrolling resulting - * in code roughly 3/4 the speed of Clang. - * - * There are other issues, such as GCC splitting _mm256_loadu_si256 into - * _mm_loadu_si128 + _mm256_inserti128_si256. This is an optimization which - * only applies to Sandy and Ivy Bridge... which don't even support AVX2. - * - * That is why when compiling the AVX2 version, it is recommended to use either - * -O2 -mavx2 -march=haswell - * or - * -O2 -mavx2 -mno-avx256-split-unaligned-load - * for decent performance, or to use Clang instead. - * - * Fortunately, we can control the first one with a pragma that forces GCC into - * -O2, but the other one we can't control without "failed to inline always - * inline function due to target mismatch" warnings. - */ -#if XXH_VECTOR == XXH_AVX2 /* AVX2 */ \ - && defined(__GNUC__) && !defined(__clang__) /* GCC, not Clang */ \ - && defined(__OPTIMIZE__) && !defined(__OPTIMIZE_SIZE__) /* respect -O0 and -Os */ -# pragma GCC push_options -# pragma GCC optimize("-O2") -#endif - - -#if XXH_VECTOR == XXH_NEON -/* - * NEON's setup for vmlal_u32 is a little more complicated than it is on - * SSE2, AVX2, and VSX. - * - * While PMULUDQ and VMULEUW both perform a mask, VMLAL.U32 performs an upcast. - * - * To do the same operation, the 128-bit 'Q' register needs to be split into - * two 64-bit 'D' registers, performing this operation:: - * - * [ a | b ] - * | '---------. .--------' | - * | x | - * | .---------' '--------. | - * [ a & 0xFFFFFFFF | b & 0xFFFFFFFF ],[ a >> 32 | b >> 32 ] - * - * Due to significant changes in aarch64, the fastest method for aarch64 is - * completely different than the fastest method for ARMv7-A. - * - * ARMv7-A treats D registers as unions overlaying Q registers, so modifying - * D11 will modify the high half of Q5. This is similar to how modifying AH - * will only affect bits 8-15 of AX on x86. - * - * VZIP takes two registers, and puts even lanes in one register and odd lanes - * in the other. - * - * On ARMv7-A, this strangely modifies both parameters in place instead of - * taking the usual 3-operand form. - * - * Therefore, if we want to do this, we can simply use a D-form VZIP.32 on the - * lower and upper halves of the Q register to end up with the high and low - * halves where we want - all in one instruction. - * - * vzip.32 d10, d11 @ d10 = { d10[0], d11[0] }; d11 = { d10[1], d11[1] } - * - * Unfortunately we need inline assembly for this: Instructions modifying two - * registers at once is not possible in GCC or Clang's IR, and they have to - * create a copy. - * - * aarch64 requires a different approach. - * - * In order to make it easier to write a decent compiler for aarch64, many - * quirks were removed, such as conditional execution. - * - * NEON was also affected by this. - * - * aarch64 cannot access the high bits of a Q-form register, and writes to a - * D-form register zero the high bits, similar to how writes to W-form scalar - * registers (or DWORD registers on x86_64) work. - * - * The formerly free vget_high intrinsics now require a vext (with a few - * exceptions) - * - * Additionally, VZIP was replaced by ZIP1 and ZIP2, which are the equivalent - * of PUNPCKL* and PUNPCKH* in SSE, respectively, in order to only modify one - * operand. - * - * The equivalent of the VZIP.32 on the lower and upper halves would be this - * mess: - * - * ext v2.4s, v0.4s, v0.4s, #2 // v2 = { v0[2], v0[3], v0[0], v0[1] } - * zip1 v1.2s, v0.2s, v2.2s // v1 = { v0[0], v2[0] } - * zip2 v0.2s, v0.2s, v1.2s // v0 = { v0[1], v2[1] } - * - * Instead, we use a literal downcast, vmovn_u64 (XTN), and vshrn_n_u64 (SHRN): - * - * shrn v1.2s, v0.2d, #32 // v1 = (uint32x2_t)(v0 >> 32); - * xtn v0.2s, v0.2d // v0 = (uint32x2_t)(v0 & 0xFFFFFFFF); - * - * This is available on ARMv7-A, but is less efficient than a single VZIP.32. - */ - -/*! - * Function-like macro: - * void XXH_SPLIT_IN_PLACE(uint64x2_t &in, uint32x2_t &outLo, uint32x2_t &outHi) - * { - * outLo = (uint32x2_t)(in & 0xFFFFFFFF); - * outHi = (uint32x2_t)(in >> 32); - * in = UNDEFINED; - * } - */ -# if !defined(XXH_NO_VZIP_HACK) /* define to disable */ \ - && defined(__GNUC__) \ - && !defined(__aarch64__) && !defined(__arm64__) -# define XXH_SPLIT_IN_PLACE(in, outLo, outHi) \ - do { \ - /* Undocumented GCC/Clang operand modifier: %e0 = lower D half, %f0 = upper D half */ \ - /* https://github.com/gcc-mirror/gcc/blob/38cf91e5/gcc/config/arm/arm.c#L22486 */ \ - /* https://github.com/llvm-mirror/llvm/blob/2c4ca683/lib/Target/ARM/ARMAsmPrinter.cpp#L399 */ \ - __asm__("vzip.32 %e0, %f0" : "+w" (in)); \ - (outLo) = vget_low_u32 (vreinterpretq_u32_u64(in)); \ - (outHi) = vget_high_u32(vreinterpretq_u32_u64(in)); \ - } while (0) -# else -# define XXH_SPLIT_IN_PLACE(in, outLo, outHi) \ - do { \ - (outLo) = vmovn_u64 (in); \ - (outHi) = vshrn_n_u64 ((in), 32); \ - } while (0) -# endif -#endif /* XXH_VECTOR == XXH_NEON */ - -/* - * VSX and Z Vector helpers. - * - * This is very messy, and any pull requests to clean this up are welcome. - * - * There are a lot of problems with supporting VSX and s390x, due to - * inconsistent intrinsics, spotty coverage, and multiple endiannesses. - */ -#if XXH_VECTOR == XXH_VSX -# if defined(__s390x__) -# include -# else -/* gcc's altivec.h can have the unwanted consequence to unconditionally - * #define bool, vector, and pixel keywords, - * with bad consequences for programs already using these keywords for other purposes. - * The paragraph defining these macros is skipped when __APPLE_ALTIVEC__ is defined. - * __APPLE_ALTIVEC__ is _generally_ defined automatically by the compiler, - * but it seems that, in some cases, it isn't. - * Force the build macro to be defined, so that keywords are not altered. - */ -# if defined(__GNUC__) && !defined(__APPLE_ALTIVEC__) -# define __APPLE_ALTIVEC__ -# endif -# include -# endif - -typedef __vector unsigned long long xxh_u64x2; -typedef __vector unsigned char xxh_u8x16; -typedef __vector unsigned xxh_u32x4; - -# ifndef XXH_VSX_BE -# if defined(__BIG_ENDIAN__) \ - || (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) -# define XXH_VSX_BE 1 -# elif defined(__VEC_ELEMENT_REG_ORDER__) && __VEC_ELEMENT_REG_ORDER__ == __ORDER_BIG_ENDIAN__ -# warning "-maltivec=be is not recommended. Please use native endianness." -# define XXH_VSX_BE 1 -# else -# define XXH_VSX_BE 0 -# endif -# endif /* !defined(XXH_VSX_BE) */ - -# if XXH_VSX_BE -# if defined(__POWER9_VECTOR__) || (defined(__clang__) && defined(__s390x__)) -# define XXH_vec_revb vec_revb -# else -/*! - * A polyfill for POWER9's vec_revb(). - */ -XXH_FORCE_INLINE xxh_u64x2 XXH_vec_revb(xxh_u64x2 val) -{ - xxh_u8x16 const vByteSwap = { 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01, 0x00, - 0x0F, 0x0E, 0x0D, 0x0C, 0x0B, 0x0A, 0x09, 0x08 }; - return vec_perm(val, val, vByteSwap); -} -# endif -# endif /* XXH_VSX_BE */ - -/*! - * Performs an unaligned vector load and byte swaps it on big endian. - */ -XXH_FORCE_INLINE xxh_u64x2 XXH_vec_loadu(const void *ptr) -{ - xxh_u64x2 ret; - memcpy(&ret, ptr, sizeof(xxh_u64x2)); -# if XXH_VSX_BE - ret = XXH_vec_revb(ret); -# endif - return ret; -} - -/* - * vec_mulo and vec_mule are very problematic intrinsics on PowerPC - * - * These intrinsics weren't added until GCC 8, despite existing for a while, - * and they are endian dependent. Also, their meaning swap depending on version. - * */ -# if defined(__s390x__) - /* s390x is always big endian, no issue on this platform */ -# define XXH_vec_mulo vec_mulo -# define XXH_vec_mule vec_mule -# elif defined(__clang__) && XXH_HAS_BUILTIN(__builtin_altivec_vmuleuw) -/* Clang has a better way to control this, we can just use the builtin which doesn't swap. */ -# define XXH_vec_mulo __builtin_altivec_vmulouw -# define XXH_vec_mule __builtin_altivec_vmuleuw -# else -/* gcc needs inline assembly */ -/* Adapted from https://github.com/google/highwayhash/blob/master/highwayhash/hh_vsx.h. */ -XXH_FORCE_INLINE xxh_u64x2 XXH_vec_mulo(xxh_u32x4 a, xxh_u32x4 b) -{ - xxh_u64x2 result; - __asm__("vmulouw %0, %1, %2" : "=v" (result) : "v" (a), "v" (b)); - return result; -} -XXH_FORCE_INLINE xxh_u64x2 XXH_vec_mule(xxh_u32x4 a, xxh_u32x4 b) -{ - xxh_u64x2 result; - __asm__("vmuleuw %0, %1, %2" : "=v" (result) : "v" (a), "v" (b)); - return result; -} -# endif /* XXH_vec_mulo, XXH_vec_mule */ -#endif /* XXH_VECTOR == XXH_VSX */ - - -/* prefetch - * can be disabled, by declaring XXH_NO_PREFETCH build macro */ -#if defined(XXH_NO_PREFETCH) -# define XXH_PREFETCH(ptr) (void)(ptr) /* disabled */ -#else -# if defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86)) /* _mm_prefetch() not defined outside of x86/x64 */ -# include /* https://msdn.microsoft.com/fr-fr/library/84szxsww(v=vs.90).aspx */ -# define XXH_PREFETCH(ptr) _mm_prefetch((const char*)(ptr), _MM_HINT_T0) -# elif defined(__GNUC__) && ( (__GNUC__ >= 4) || ( (__GNUC__ == 3) && (__GNUC_MINOR__ >= 1) ) ) -# define XXH_PREFETCH(ptr) __builtin_prefetch((ptr), 0 /* rw==read */, 3 /* locality */) -# else -# define XXH_PREFETCH(ptr) (void)(ptr) /* disabled */ -# endif -#endif /* XXH_NO_PREFETCH */ - - -/* ========================================== - * XXH3 default settings - * ========================================== */ - -#define XXH_SECRET_DEFAULT_SIZE 192 /* minimum XXH3_SECRET_SIZE_MIN */ - -#if (XXH_SECRET_DEFAULT_SIZE < XXH3_SECRET_SIZE_MIN) -# error "default keyset is not large enough" -#endif - -/*! Pseudorandom secret taken directly from FARSH. */ -XXH_ALIGN(64) static const xxh_u8 XXH3_kSecret[XXH_SECRET_DEFAULT_SIZE] = { - 0xb8, 0xfe, 0x6c, 0x39, 0x23, 0xa4, 0x4b, 0xbe, 0x7c, 0x01, 0x81, 0x2c, 0xf7, 0x21, 0xad, 0x1c, - 0xde, 0xd4, 0x6d, 0xe9, 0x83, 0x90, 0x97, 0xdb, 0x72, 0x40, 0xa4, 0xa4, 0xb7, 0xb3, 0x67, 0x1f, - 0xcb, 0x79, 0xe6, 0x4e, 0xcc, 0xc0, 0xe5, 0x78, 0x82, 0x5a, 0xd0, 0x7d, 0xcc, 0xff, 0x72, 0x21, - 0xb8, 0x08, 0x46, 0x74, 0xf7, 0x43, 0x24, 0x8e, 0xe0, 0x35, 0x90, 0xe6, 0x81, 0x3a, 0x26, 0x4c, - 0x3c, 0x28, 0x52, 0xbb, 0x91, 0xc3, 0x00, 0xcb, 0x88, 0xd0, 0x65, 0x8b, 0x1b, 0x53, 0x2e, 0xa3, - 0x71, 0x64, 0x48, 0x97, 0xa2, 0x0d, 0xf9, 0x4e, 0x38, 0x19, 0xef, 0x46, 0xa9, 0xde, 0xac, 0xd8, - 0xa8, 0xfa, 0x76, 0x3f, 0xe3, 0x9c, 0x34, 0x3f, 0xf9, 0xdc, 0xbb, 0xc7, 0xc7, 0x0b, 0x4f, 0x1d, - 0x8a, 0x51, 0xe0, 0x4b, 0xcd, 0xb4, 0x59, 0x31, 0xc8, 0x9f, 0x7e, 0xc9, 0xd9, 0x78, 0x73, 0x64, - 0xea, 0xc5, 0xac, 0x83, 0x34, 0xd3, 0xeb, 0xc3, 0xc5, 0x81, 0xa0, 0xff, 0xfa, 0x13, 0x63, 0xeb, - 0x17, 0x0d, 0xdd, 0x51, 0xb7, 0xf0, 0xda, 0x49, 0xd3, 0x16, 0x55, 0x26, 0x29, 0xd4, 0x68, 0x9e, - 0x2b, 0x16, 0xbe, 0x58, 0x7d, 0x47, 0xa1, 0xfc, 0x8f, 0xf8, 0xb8, 0xd1, 0x7a, 0xd0, 0x31, 0xce, - 0x45, 0xcb, 0x3a, 0x8f, 0x95, 0x16, 0x04, 0x28, 0xaf, 0xd7, 0xfb, 0xca, 0xbb, 0x4b, 0x40, 0x7e, -}; - - -#ifdef XXH_OLD_NAMES -# define kSecret XXH3_kSecret -#endif - -#ifdef XXH_DOXYGEN -/*! - * @brief Calculates a 32-bit to 64-bit long multiply. - * - * Implemented as a macro. - * - * Wraps `__emulu` on MSVC x86 because it tends to call `__allmul` when it doesn't - * need to (but it shouldn't need to anyways, it is about 7 instructions to do - * a 64x64 multiply...). Since we know that this will _always_ emit `MULL`, we - * use that instead of the normal method. - * - * If you are compiling for platforms like Thumb-1 and don't have a better option, - * you may also want to write your own long multiply routine here. - * - * @param x, y Numbers to be multiplied - * @return 64-bit product of the low 32 bits of @p x and @p y. - */ -XXH_FORCE_INLINE xxh_u64 -XXH_mult32to64(xxh_u64 x, xxh_u64 y) -{ - return (x & 0xFFFFFFFF) * (y & 0xFFFFFFFF); -} -#elif defined(_MSC_VER) && defined(_M_IX86) -# include -# define XXH_mult32to64(x, y) __emulu((unsigned)(x), (unsigned)(y)) -#else -/* - * Downcast + upcast is usually better than masking on older compilers like - * GCC 4.2 (especially 32-bit ones), all without affecting newer compilers. - * - * The other method, (x & 0xFFFFFFFF) * (y & 0xFFFFFFFF), will AND both operands - * and perform a full 64x64 multiply -- entirely redundant on 32-bit. - */ -# define XXH_mult32to64(x, y) ((xxh_u64)(xxh_u32)(x) * (xxh_u64)(xxh_u32)(y)) -#endif - -/*! - * @brief Calculates a 64->128-bit long multiply. - * - * Uses `__uint128_t` and `_umul128` if available, otherwise uses a scalar - * version. - * - * @param lhs, rhs The 64-bit integers to be multiplied - * @return The 128-bit result represented in an @ref XXH128_hash_t. - */ -static XXH128_hash_t -XXH_mult64to128(xxh_u64 lhs, xxh_u64 rhs) -{ - /* - * GCC/Clang __uint128_t method. - * - * On most 64-bit targets, GCC and Clang define a __uint128_t type. - * This is usually the best way as it usually uses a native long 64-bit - * multiply, such as MULQ on x86_64 or MUL + UMULH on aarch64. - * - * Usually. - * - * Despite being a 32-bit platform, Clang (and emscripten) define this type - * despite not having the arithmetic for it. This results in a laggy - * compiler builtin call which calculates a full 128-bit multiply. - * In that case it is best to use the portable one. - * https://github.com/Cyan4973/xxHash/issues/211#issuecomment-515575677 - */ -#if defined(__GNUC__) && !defined(__wasm__) \ - && defined(__SIZEOF_INT128__) \ - || (defined(_INTEGRAL_MAX_BITS) && _INTEGRAL_MAX_BITS >= 128) - - __uint128_t const product = (__uint128_t)lhs * (__uint128_t)rhs; - XXH128_hash_t r128; - r128.low64 = (xxh_u64)(product); - r128.high64 = (xxh_u64)(product >> 64); - return r128; - - /* - * MSVC for x64's _umul128 method. - * - * xxh_u64 _umul128(xxh_u64 Multiplier, xxh_u64 Multiplicand, xxh_u64 *HighProduct); - * - * This compiles to single operand MUL on x64. - */ -#elif defined(_M_X64) || defined(_M_IA64) - -#ifndef _MSC_VER -# pragma intrinsic(_umul128) -#endif - xxh_u64 product_high; - xxh_u64 const product_low = _umul128(lhs, rhs, &product_high); - XXH128_hash_t r128; - r128.low64 = product_low; - r128.high64 = product_high; - return r128; - -#else - /* - * Portable scalar method. Optimized for 32-bit and 64-bit ALUs. - * - * This is a fast and simple grade school multiply, which is shown below - * with base 10 arithmetic instead of base 0x100000000. - * - * 9 3 // D2 lhs = 93 - * x 7 5 // D2 rhs = 75 - * ---------- - * 1 5 // D2 lo_lo = (93 % 10) * (75 % 10) = 15 - * 4 5 | // D2 hi_lo = (93 / 10) * (75 % 10) = 45 - * 2 1 | // D2 lo_hi = (93 % 10) * (75 / 10) = 21 - * + 6 3 | | // D2 hi_hi = (93 / 10) * (75 / 10) = 63 - * --------- - * 2 7 | // D2 cross = (15 / 10) + (45 % 10) + 21 = 27 - * + 6 7 | | // D2 upper = (27 / 10) + (45 / 10) + 63 = 67 - * --------- - * 6 9 7 5 // D4 res = (27 * 10) + (15 % 10) + (67 * 100) = 6975 - * - * The reasons for adding the products like this are: - * 1. It avoids manual carry tracking. Just like how - * (9 * 9) + 9 + 9 = 99, the same applies with this for UINT64_MAX. - * This avoids a lot of complexity. - * - * 2. It hints for, and on Clang, compiles to, the powerful UMAAL - * instruction available in ARM's Digital Signal Processing extension - * in 32-bit ARMv6 and later, which is shown below: - * - * void UMAAL(xxh_u32 *RdLo, xxh_u32 *RdHi, xxh_u32 Rn, xxh_u32 Rm) - * { - * xxh_u64 product = (xxh_u64)*RdLo * (xxh_u64)*RdHi + Rn + Rm; - * *RdLo = (xxh_u32)(product & 0xFFFFFFFF); - * *RdHi = (xxh_u32)(product >> 32); - * } - * - * This instruction was designed for efficient long multiplication, and - * allows this to be calculated in only 4 instructions at speeds - * comparable to some 64-bit ALUs. - * - * 3. It isn't terrible on other platforms. Usually this will be a couple - * of 32-bit ADD/ADCs. - */ - - /* First calculate all of the cross products. */ - xxh_u64 const lo_lo = XXH_mult32to64(lhs & 0xFFFFFFFF, rhs & 0xFFFFFFFF); - xxh_u64 const hi_lo = XXH_mult32to64(lhs >> 32, rhs & 0xFFFFFFFF); - xxh_u64 const lo_hi = XXH_mult32to64(lhs & 0xFFFFFFFF, rhs >> 32); - xxh_u64 const hi_hi = XXH_mult32to64(lhs >> 32, rhs >> 32); - - /* Now add the products together. These will never overflow. */ - xxh_u64 const cross = (lo_lo >> 32) + (hi_lo & 0xFFFFFFFF) + lo_hi; - xxh_u64 const upper = (hi_lo >> 32) + (cross >> 32) + hi_hi; - xxh_u64 const lower = (cross << 32) | (lo_lo & 0xFFFFFFFF); - - XXH128_hash_t r128; - r128.low64 = lower; - r128.high64 = upper; - return r128; -#endif -} - -/*! - * @brief Calculates a 64-bit to 128-bit multiply, then XOR folds it. - * - * The reason for the separate function is to prevent passing too many structs - * around by value. This will hopefully inline the multiply, but we don't force it. - * - * @param lhs, rhs The 64-bit integers to multiply - * @return The low 64 bits of the product XOR'd by the high 64 bits. - * @see XXH_mult64to128() - */ -static xxh_u64 -XXH3_mul128_fold64(xxh_u64 lhs, xxh_u64 rhs) -{ - XXH128_hash_t product = XXH_mult64to128(lhs, rhs); - return product.low64 ^ product.high64; -} - -/*! Seems to produce slightly better code on GCC for some reason. */ -XXH_FORCE_INLINE xxh_u64 XXH_xorshift64(xxh_u64 v64, int shift) -{ - XXH_ASSERT(0 <= shift && shift < 64); - return v64 ^ (v64 >> shift); -} - -/* - * This is a fast avalanche stage, - * suitable when input bits are already partially mixed - */ -static XXH64_hash_t XXH3_avalanche(xxh_u64 h64) -{ - h64 = XXH_xorshift64(h64, 37); - h64 *= 0x165667919E3779F9ULL; - h64 = XXH_xorshift64(h64, 32); - return h64; -} - -/* - * This is a stronger avalanche, - * inspired by Pelle Evensen's rrmxmx - * preferable when input has not been previously mixed - */ -static XXH64_hash_t XXH3_rrmxmx(xxh_u64 h64, xxh_u64 len) -{ - /* this mix is inspired by Pelle Evensen's rrmxmx */ - h64 ^= XXH_rotl64(h64, 49) ^ XXH_rotl64(h64, 24); - h64 *= 0x9FB21C651E98DF25ULL; - h64 ^= (h64 >> 35) + len ; - h64 *= 0x9FB21C651E98DF25ULL; - return XXH_xorshift64(h64, 28); -} - - -/* ========================================== - * Short keys - * ========================================== - * One of the shortcomings of XXH32 and XXH64 was that their performance was - * sub-optimal on short lengths. It used an iterative algorithm which strongly - * favored lengths that were a multiple of 4 or 8. - * - * Instead of iterating over individual inputs, we use a set of single shot - * functions which piece together a range of lengths and operate in constant time. - * - * Additionally, the number of multiplies has been significantly reduced. This - * reduces latency, especially when emulating 64-bit multiplies on 32-bit. - * - * Depending on the platform, this may or may not be faster than XXH32, but it - * is almost guaranteed to be faster than XXH64. - */ - -/* - * At very short lengths, there isn't enough input to fully hide secrets, or use - * the entire secret. - * - * There is also only a limited amount of mixing we can do before significantly - * impacting performance. - * - * Therefore, we use different sections of the secret and always mix two secret - * samples with an XOR. This should have no effect on performance on the - * seedless or withSeed variants because everything _should_ be constant folded - * by modern compilers. - * - * The XOR mixing hides individual parts of the secret and increases entropy. - * - * This adds an extra layer of strength for custom secrets. - */ -XXH_FORCE_INLINE XXH64_hash_t -XXH3_len_1to3_64b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) -{ - XXH_ASSERT(input != NULL); - XXH_ASSERT(1 <= len && len <= 3); - XXH_ASSERT(secret != NULL); - /* - * len = 1: combined = { input[0], 0x01, input[0], input[0] } - * len = 2: combined = { input[1], 0x02, input[0], input[1] } - * len = 3: combined = { input[2], 0x03, input[0], input[1] } - */ - { xxh_u8 const c1 = input[0]; - xxh_u8 const c2 = input[len >> 1]; - xxh_u8 const c3 = input[len - 1]; - xxh_u32 const combined = ((xxh_u32)c1 << 16) | ((xxh_u32)c2 << 24) - | ((xxh_u32)c3 << 0) | ((xxh_u32)len << 8); - xxh_u64 const bitflip = (XXH_readLE32(secret) ^ XXH_readLE32(secret+4)) + seed; - xxh_u64 const keyed = (xxh_u64)combined ^ bitflip; - return XXH64_avalanche(keyed); - } -} - -XXH_FORCE_INLINE XXH64_hash_t -XXH3_len_4to8_64b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) -{ - XXH_ASSERT(input != NULL); - XXH_ASSERT(secret != NULL); - XXH_ASSERT(4 <= len && len < 8); - seed ^= (xxh_u64)XXH_swap32((xxh_u32)seed) << 32; - { xxh_u32 const input1 = XXH_readLE32(input); - xxh_u32 const input2 = XXH_readLE32(input + len - 4); - xxh_u64 const bitflip = (XXH_readLE64(secret+8) ^ XXH_readLE64(secret+16)) - seed; - xxh_u64 const input64 = input2 + (((xxh_u64)input1) << 32); - xxh_u64 const keyed = input64 ^ bitflip; - return XXH3_rrmxmx(keyed, len); - } -} - -XXH_FORCE_INLINE XXH64_hash_t -XXH3_len_9to16_64b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) -{ - XXH_ASSERT(input != NULL); - XXH_ASSERT(secret != NULL); - XXH_ASSERT(8 <= len && len <= 16); - { xxh_u64 const bitflip1 = (XXH_readLE64(secret+24) ^ XXH_readLE64(secret+32)) + seed; - xxh_u64 const bitflip2 = (XXH_readLE64(secret+40) ^ XXH_readLE64(secret+48)) - seed; - xxh_u64 const input_lo = XXH_readLE64(input) ^ bitflip1; - xxh_u64 const input_hi = XXH_readLE64(input + len - 8) ^ bitflip2; - xxh_u64 const acc = len - + XXH_swap64(input_lo) + input_hi - + XXH3_mul128_fold64(input_lo, input_hi); - return XXH3_avalanche(acc); - } -} - -XXH_FORCE_INLINE XXH64_hash_t -XXH3_len_0to16_64b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) -{ - XXH_ASSERT(len <= 16); - { if (XXH_likely(len > 8)) return XXH3_len_9to16_64b(input, len, secret, seed); - if (XXH_likely(len >= 4)) return XXH3_len_4to8_64b(input, len, secret, seed); - if (len) return XXH3_len_1to3_64b(input, len, secret, seed); - return XXH64_avalanche(seed ^ (XXH_readLE64(secret+56) ^ XXH_readLE64(secret+64))); - } -} - -/* - * DISCLAIMER: There are known *seed-dependent* multicollisions here due to - * multiplication by zero, affecting hashes of lengths 17 to 240. - * - * However, they are very unlikely. - * - * Keep this in mind when using the unseeded XXH3_64bits() variant: As with all - * unseeded non-cryptographic hashes, it does not attempt to defend itself - * against specially crafted inputs, only random inputs. - * - * Compared to classic UMAC where a 1 in 2^31 chance of 4 consecutive bytes - * cancelling out the secret is taken an arbitrary number of times (addressed - * in XXH3_accumulate_512), this collision is very unlikely with random inputs - * and/or proper seeding: - * - * This only has a 1 in 2^63 chance of 8 consecutive bytes cancelling out, in a - * function that is only called up to 16 times per hash with up to 240 bytes of - * input. - * - * This is not too bad for a non-cryptographic hash function, especially with - * only 64 bit outputs. - * - * The 128-bit variant (which trades some speed for strength) is NOT affected - * by this, although it is always a good idea to use a proper seed if you care - * about strength. - */ -XXH_FORCE_INLINE xxh_u64 XXH3_mix16B(const xxh_u8* XXH_RESTRICT input, - const xxh_u8* XXH_RESTRICT secret, xxh_u64 seed64) -{ -#if defined(__GNUC__) && !defined(__clang__) /* GCC, not Clang */ \ - && defined(__i386__) && defined(__SSE2__) /* x86 + SSE2 */ \ - && !defined(XXH_ENABLE_AUTOVECTORIZE) /* Define to disable like XXH32 hack */ - /* - * UGLY HACK: - * GCC for x86 tends to autovectorize the 128-bit multiply, resulting in - * slower code. - * - * By forcing seed64 into a register, we disrupt the cost model and - * cause it to scalarize. See `XXH32_round()` - * - * FIXME: Clang's output is still _much_ faster -- On an AMD Ryzen 3600, - * XXH3_64bits @ len=240 runs at 4.6 GB/s with Clang 9, but 3.3 GB/s on - * GCC 9.2, despite both emitting scalar code. - * - * GCC generates much better scalar code than Clang for the rest of XXH3, - * which is why finding a more optimal codepath is an interest. - */ - __asm__ ("" : "+r" (seed64)); -#endif - { xxh_u64 const input_lo = XXH_readLE64(input); - xxh_u64 const input_hi = XXH_readLE64(input+8); - return XXH3_mul128_fold64( - input_lo ^ (XXH_readLE64(secret) + seed64), - input_hi ^ (XXH_readLE64(secret+8) - seed64) - ); - } -} - -/* For mid range keys, XXH3 uses a Mum-hash variant. */ -XXH_FORCE_INLINE XXH64_hash_t -XXH3_len_17to128_64b(const xxh_u8* XXH_RESTRICT input, size_t len, - const xxh_u8* XXH_RESTRICT secret, size_t secretSize, - XXH64_hash_t seed) -{ - XXH_ASSERT(secretSize >= XXH3_SECRET_SIZE_MIN); (void)secretSize; - XXH_ASSERT(16 < len && len <= 128); - - { xxh_u64 acc = len * XXH_PRIME64_1; - if (len > 32) { - if (len > 64) { - if (len > 96) { - acc += XXH3_mix16B(input+48, secret+96, seed); - acc += XXH3_mix16B(input+len-64, secret+112, seed); - } - acc += XXH3_mix16B(input+32, secret+64, seed); - acc += XXH3_mix16B(input+len-48, secret+80, seed); - } - acc += XXH3_mix16B(input+16, secret+32, seed); - acc += XXH3_mix16B(input+len-32, secret+48, seed); - } - acc += XXH3_mix16B(input+0, secret+0, seed); - acc += XXH3_mix16B(input+len-16, secret+16, seed); - - return XXH3_avalanche(acc); - } -} - -#define XXH3_MIDSIZE_MAX 240 - -XXH_NO_INLINE XXH64_hash_t -XXH3_len_129to240_64b(const xxh_u8* XXH_RESTRICT input, size_t len, - const xxh_u8* XXH_RESTRICT secret, size_t secretSize, - XXH64_hash_t seed) -{ - XXH_ASSERT(secretSize >= XXH3_SECRET_SIZE_MIN); (void)secretSize; - XXH_ASSERT(128 < len && len <= XXH3_MIDSIZE_MAX); - - #define XXH3_MIDSIZE_STARTOFFSET 3 - #define XXH3_MIDSIZE_LASTOFFSET 17 - - { xxh_u64 acc = len * XXH_PRIME64_1; - int const nbRounds = (int)len / 16; - int i; - for (i=0; i<8; i++) { - acc += XXH3_mix16B(input+(16*i), secret+(16*i), seed); - } - acc = XXH3_avalanche(acc); - XXH_ASSERT(nbRounds >= 8); -#if defined(__clang__) /* Clang */ \ - && (defined(__ARM_NEON) || defined(__ARM_NEON__)) /* NEON */ \ - && !defined(XXH_ENABLE_AUTOVECTORIZE) /* Define to disable */ - /* - * UGLY HACK: - * Clang for ARMv7-A tries to vectorize this loop, similar to GCC x86. - * In everywhere else, it uses scalar code. - * - * For 64->128-bit multiplies, even if the NEON was 100% optimal, it - * would still be slower than UMAAL (see XXH_mult64to128). - * - * Unfortunately, Clang doesn't handle the long multiplies properly and - * converts them to the nonexistent "vmulq_u64" intrinsic, which is then - * scalarized into an ugly mess of VMOV.32 instructions. - * - * This mess is difficult to avoid without turning autovectorization - * off completely, but they are usually relatively minor and/or not - * worth it to fix. - * - * This loop is the easiest to fix, as unlike XXH32, this pragma - * _actually works_ because it is a loop vectorization instead of an - * SLP vectorization. - */ - #pragma clang loop vectorize(disable) -#endif - for (i=8 ; i < nbRounds; i++) { - acc += XXH3_mix16B(input+(16*i), secret+(16*(i-8)) + XXH3_MIDSIZE_STARTOFFSET, seed); - } - /* last bytes */ - acc += XXH3_mix16B(input + len - 16, secret + XXH3_SECRET_SIZE_MIN - XXH3_MIDSIZE_LASTOFFSET, seed); - return XXH3_avalanche(acc); - } -} - - -/* ======= Long Keys ======= */ - -#define XXH_STRIPE_LEN 64 -#define XXH_SECRET_CONSUME_RATE 8 /* nb of secret bytes consumed at each accumulation */ -#define XXH_ACC_NB (XXH_STRIPE_LEN / sizeof(xxh_u64)) - -#ifdef XXH_OLD_NAMES -# define STRIPE_LEN XXH_STRIPE_LEN -# define ACC_NB XXH_ACC_NB -#endif - -XXH_FORCE_INLINE void XXH_writeLE64(void* dst, xxh_u64 v64) -{ - if (!XXH_CPU_LITTLE_ENDIAN) v64 = XXH_swap64(v64); - memcpy(dst, &v64, sizeof(v64)); -} - -/* Several intrinsic functions below are supposed to accept __int64 as argument, - * as documented in https://software.intel.com/sites/landingpage/IntrinsicsGuide/ . - * However, several environments do not define __int64 type, - * requiring a workaround. - */ -#if !defined (__VMS) \ - && (defined (__cplusplus) \ - || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) ) - typedef int64_t xxh_i64; -#else - /* the following type must have a width of 64-bit */ - typedef long long xxh_i64; -#endif - -/* - * XXH3_accumulate_512 is the tightest loop for long inputs, and it is the most optimized. - * - * It is a hardened version of UMAC, based off of FARSH's implementation. - * - * This was chosen because it adapts quite well to 32-bit, 64-bit, and SIMD - * implementations, and it is ridiculously fast. - * - * We harden it by mixing the original input to the accumulators as well as the product. - * - * This means that in the (relatively likely) case of a multiply by zero, the - * original input is preserved. - * - * On 128-bit inputs, we swap 64-bit pairs when we add the input to improve - * cross-pollination, as otherwise the upper and lower halves would be - * essentially independent. - * - * This doesn't matter on 64-bit hashes since they all get merged together in - * the end, so we skip the extra step. - * - * Both XXH3_64bits and XXH3_128bits use this subroutine. - */ - -#if (XXH_VECTOR == XXH_AVX512) \ - || (defined(XXH_DISPATCH_AVX512) && XXH_DISPATCH_AVX512 != 0) - -#ifndef XXH_TARGET_AVX512 -# define XXH_TARGET_AVX512 /* disable attribute target */ -#endif - -XXH_FORCE_INLINE XXH_TARGET_AVX512 void -XXH3_accumulate_512_avx512(void* XXH_RESTRICT acc, - const void* XXH_RESTRICT input, - const void* XXH_RESTRICT secret) -{ - XXH_ALIGN(64) __m512i* const xacc = (__m512i *) acc; - XXH_ASSERT((((size_t)acc) & 63) == 0); - XXH_STATIC_ASSERT(XXH_STRIPE_LEN == sizeof(__m512i)); - - { - /* data_vec = input[0]; */ - __m512i const data_vec = _mm512_loadu_si512 (input); - /* key_vec = secret[0]; */ - __m512i const key_vec = _mm512_loadu_si512 (secret); - /* data_key = data_vec ^ key_vec; */ - __m512i const data_key = _mm512_xor_si512 (data_vec, key_vec); - /* data_key_lo = data_key >> 32; */ - __m512i const data_key_lo = _mm512_shuffle_epi32 (data_key, (_MM_PERM_ENUM)_MM_SHUFFLE(0, 3, 0, 1)); - /* product = (data_key & 0xffffffff) * (data_key_lo & 0xffffffff); */ - __m512i const product = _mm512_mul_epu32 (data_key, data_key_lo); - /* xacc[0] += swap(data_vec); */ - __m512i const data_swap = _mm512_shuffle_epi32(data_vec, (_MM_PERM_ENUM)_MM_SHUFFLE(1, 0, 3, 2)); - __m512i const sum = _mm512_add_epi64(*xacc, data_swap); - /* xacc[0] += product; */ - *xacc = _mm512_add_epi64(product, sum); - } -} - -/* - * XXH3_scrambleAcc: Scrambles the accumulators to improve mixing. - * - * Multiplication isn't perfect, as explained by Google in HighwayHash: - * - * // Multiplication mixes/scrambles bytes 0-7 of the 64-bit result to - * // varying degrees. In descending order of goodness, bytes - * // 3 4 2 5 1 6 0 7 have quality 228 224 164 160 100 96 36 32. - * // As expected, the upper and lower bytes are much worse. - * - * Source: https://github.com/google/highwayhash/blob/0aaf66b/highwayhash/hh_avx2.h#L291 - * - * Since our algorithm uses a pseudorandom secret to add some variance into the - * mix, we don't need to (or want to) mix as often or as much as HighwayHash does. - * - * This isn't as tight as XXH3_accumulate, but still written in SIMD to avoid - * extraction. - * - * Both XXH3_64bits and XXH3_128bits use this subroutine. - */ - -XXH_FORCE_INLINE XXH_TARGET_AVX512 void -XXH3_scrambleAcc_avx512(void* XXH_RESTRICT acc, const void* XXH_RESTRICT secret) -{ - XXH_ASSERT((((size_t)acc) & 63) == 0); - XXH_STATIC_ASSERT(XXH_STRIPE_LEN == sizeof(__m512i)); - { XXH_ALIGN(64) __m512i* const xacc = (__m512i*) acc; - const __m512i prime32 = _mm512_set1_epi32((int)XXH_PRIME32_1); - - /* xacc[0] ^= (xacc[0] >> 47) */ - __m512i const acc_vec = *xacc; - __m512i const shifted = _mm512_srli_epi64 (acc_vec, 47); - __m512i const data_vec = _mm512_xor_si512 (acc_vec, shifted); - /* xacc[0] ^= secret; */ - __m512i const key_vec = _mm512_loadu_si512 (secret); - __m512i const data_key = _mm512_xor_si512 (data_vec, key_vec); - - /* xacc[0] *= XXH_PRIME32_1; */ - __m512i const data_key_hi = _mm512_shuffle_epi32 (data_key, (_MM_PERM_ENUM)_MM_SHUFFLE(0, 3, 0, 1)); - __m512i const prod_lo = _mm512_mul_epu32 (data_key, prime32); - __m512i const prod_hi = _mm512_mul_epu32 (data_key_hi, prime32); - *xacc = _mm512_add_epi64(prod_lo, _mm512_slli_epi64(prod_hi, 32)); - } -} - -XXH_FORCE_INLINE XXH_TARGET_AVX512 void -XXH3_initCustomSecret_avx512(void* XXH_RESTRICT customSecret, xxh_u64 seed64) -{ - XXH_STATIC_ASSERT((XXH_SECRET_DEFAULT_SIZE & 63) == 0); - XXH_STATIC_ASSERT(XXH_SEC_ALIGN == 64); - XXH_ASSERT(((size_t)customSecret & 63) == 0); - (void)(&XXH_writeLE64); - { int const nbRounds = XXH_SECRET_DEFAULT_SIZE / sizeof(__m512i); - __m512i const seed = _mm512_mask_set1_epi64(_mm512_set1_epi64((xxh_i64)seed64), 0xAA, -(xxh_i64)seed64); - - XXH_ALIGN(64) const __m512i* const src = (const __m512i*) XXH3_kSecret; - XXH_ALIGN(64) __m512i* const dest = ( __m512i*) customSecret; - int i; - for (i=0; i < nbRounds; ++i) { - /* GCC has a bug, _mm512_stream_load_si512 accepts 'void*', not 'void const*', - * this will warn "discards ‘const’ qualifier". */ - union { - XXH_ALIGN(64) const __m512i* cp; - XXH_ALIGN(64) void* p; - } remote_const_void; - remote_const_void.cp = src + i; - dest[i] = _mm512_add_epi64(_mm512_stream_load_si512(remote_const_void.p), seed); - } } -} - -#endif - -#if (XXH_VECTOR == XXH_AVX2) \ - || (defined(XXH_DISPATCH_AVX2) && XXH_DISPATCH_AVX2 != 0) - -#ifndef XXH_TARGET_AVX2 -# define XXH_TARGET_AVX2 /* disable attribute target */ -#endif - -XXH_FORCE_INLINE XXH_TARGET_AVX2 void -XXH3_accumulate_512_avx2( void* XXH_RESTRICT acc, - const void* XXH_RESTRICT input, - const void* XXH_RESTRICT secret) -{ - XXH_ASSERT((((size_t)acc) & 31) == 0); - { XXH_ALIGN(32) __m256i* const xacc = (__m256i *) acc; - /* Unaligned. This is mainly for pointer arithmetic, and because - * _mm256_loadu_si256 requires a const __m256i * pointer for some reason. */ - const __m256i* const xinput = (const __m256i *) input; - /* Unaligned. This is mainly for pointer arithmetic, and because - * _mm256_loadu_si256 requires a const __m256i * pointer for some reason. */ - const __m256i* const xsecret = (const __m256i *) secret; - - size_t i; - for (i=0; i < XXH_STRIPE_LEN/sizeof(__m256i); i++) { - /* data_vec = xinput[i]; */ - __m256i const data_vec = _mm256_loadu_si256 (xinput+i); - /* key_vec = xsecret[i]; */ - __m256i const key_vec = _mm256_loadu_si256 (xsecret+i); - /* data_key = data_vec ^ key_vec; */ - __m256i const data_key = _mm256_xor_si256 (data_vec, key_vec); - /* data_key_lo = data_key >> 32; */ - __m256i const data_key_lo = _mm256_shuffle_epi32 (data_key, _MM_SHUFFLE(0, 3, 0, 1)); - /* product = (data_key & 0xffffffff) * (data_key_lo & 0xffffffff); */ - __m256i const product = _mm256_mul_epu32 (data_key, data_key_lo); - /* xacc[i] += swap(data_vec); */ - __m256i const data_swap = _mm256_shuffle_epi32(data_vec, _MM_SHUFFLE(1, 0, 3, 2)); - __m256i const sum = _mm256_add_epi64(xacc[i], data_swap); - /* xacc[i] += product; */ - xacc[i] = _mm256_add_epi64(product, sum); - } } -} - -XXH_FORCE_INLINE XXH_TARGET_AVX2 void -XXH3_scrambleAcc_avx2(void* XXH_RESTRICT acc, const void* XXH_RESTRICT secret) -{ - XXH_ASSERT((((size_t)acc) & 31) == 0); - { XXH_ALIGN(32) __m256i* const xacc = (__m256i*) acc; - /* Unaligned. This is mainly for pointer arithmetic, and because - * _mm256_loadu_si256 requires a const __m256i * pointer for some reason. */ - const __m256i* const xsecret = (const __m256i *) secret; - const __m256i prime32 = _mm256_set1_epi32((int)XXH_PRIME32_1); - - size_t i; - for (i=0; i < XXH_STRIPE_LEN/sizeof(__m256i); i++) { - /* xacc[i] ^= (xacc[i] >> 47) */ - __m256i const acc_vec = xacc[i]; - __m256i const shifted = _mm256_srli_epi64 (acc_vec, 47); - __m256i const data_vec = _mm256_xor_si256 (acc_vec, shifted); - /* xacc[i] ^= xsecret; */ - __m256i const key_vec = _mm256_loadu_si256 (xsecret+i); - __m256i const data_key = _mm256_xor_si256 (data_vec, key_vec); - - /* xacc[i] *= XXH_PRIME32_1; */ - __m256i const data_key_hi = _mm256_shuffle_epi32 (data_key, _MM_SHUFFLE(0, 3, 0, 1)); - __m256i const prod_lo = _mm256_mul_epu32 (data_key, prime32); - __m256i const prod_hi = _mm256_mul_epu32 (data_key_hi, prime32); - xacc[i] = _mm256_add_epi64(prod_lo, _mm256_slli_epi64(prod_hi, 32)); - } - } -} - -XXH_FORCE_INLINE XXH_TARGET_AVX2 void XXH3_initCustomSecret_avx2(void* XXH_RESTRICT customSecret, xxh_u64 seed64) -{ - XXH_STATIC_ASSERT((XXH_SECRET_DEFAULT_SIZE & 31) == 0); - XXH_STATIC_ASSERT((XXH_SECRET_DEFAULT_SIZE / sizeof(__m256i)) == 6); - XXH_STATIC_ASSERT(XXH_SEC_ALIGN <= 64); - (void)(&XXH_writeLE64); - XXH_PREFETCH(customSecret); - { __m256i const seed = _mm256_set_epi64x(-(xxh_i64)seed64, (xxh_i64)seed64, -(xxh_i64)seed64, (xxh_i64)seed64); - - XXH_ALIGN(64) const __m256i* const src = (const __m256i*) XXH3_kSecret; - XXH_ALIGN(64) __m256i* dest = ( __m256i*) customSecret; - -# if defined(__GNUC__) || defined(__clang__) - /* - * On GCC & Clang, marking 'dest' as modified will cause the compiler: - * - do not extract the secret from sse registers in the internal loop - * - use less common registers, and avoid pushing these reg into stack - * The asm hack causes Clang to assume that XXH3_kSecretPtr aliases with - * customSecret, and on aarch64, this prevented LDP from merging two - * loads together for free. Putting the loads together before the stores - * properly generates LDP. - */ - __asm__("" : "+r" (dest)); -# endif - - /* GCC -O2 need unroll loop manually */ - dest[0] = _mm256_add_epi64(_mm256_stream_load_si256(src+0), seed); - dest[1] = _mm256_add_epi64(_mm256_stream_load_si256(src+1), seed); - dest[2] = _mm256_add_epi64(_mm256_stream_load_si256(src+2), seed); - dest[3] = _mm256_add_epi64(_mm256_stream_load_si256(src+3), seed); - dest[4] = _mm256_add_epi64(_mm256_stream_load_si256(src+4), seed); - dest[5] = _mm256_add_epi64(_mm256_stream_load_si256(src+5), seed); - } -} - -#endif - -/* x86dispatch always generates SSE2 */ -#if (XXH_VECTOR == XXH_SSE2) || defined(XXH_X86DISPATCH) - -#ifndef XXH_TARGET_SSE2 -# define XXH_TARGET_SSE2 /* disable attribute target */ -#endif - -XXH_FORCE_INLINE XXH_TARGET_SSE2 void -XXH3_accumulate_512_sse2( void* XXH_RESTRICT acc, - const void* XXH_RESTRICT input, - const void* XXH_RESTRICT secret) -{ - /* SSE2 is just a half-scale version of the AVX2 version. */ - XXH_ASSERT((((size_t)acc) & 15) == 0); - { XXH_ALIGN(16) __m128i* const xacc = (__m128i *) acc; - /* Unaligned. This is mainly for pointer arithmetic, and because - * _mm_loadu_si128 requires a const __m128i * pointer for some reason. */ - const __m128i* const xinput = (const __m128i *) input; - /* Unaligned. This is mainly for pointer arithmetic, and because - * _mm_loadu_si128 requires a const __m128i * pointer for some reason. */ - const __m128i* const xsecret = (const __m128i *) secret; - - size_t i; - for (i=0; i < XXH_STRIPE_LEN/sizeof(__m128i); i++) { - /* data_vec = xinput[i]; */ - __m128i const data_vec = _mm_loadu_si128 (xinput+i); - /* key_vec = xsecret[i]; */ - __m128i const key_vec = _mm_loadu_si128 (xsecret+i); - /* data_key = data_vec ^ key_vec; */ - __m128i const data_key = _mm_xor_si128 (data_vec, key_vec); - /* data_key_lo = data_key >> 32; */ - __m128i const data_key_lo = _mm_shuffle_epi32 (data_key, _MM_SHUFFLE(0, 3, 0, 1)); - /* product = (data_key & 0xffffffff) * (data_key_lo & 0xffffffff); */ - __m128i const product = _mm_mul_epu32 (data_key, data_key_lo); - /* xacc[i] += swap(data_vec); */ - __m128i const data_swap = _mm_shuffle_epi32(data_vec, _MM_SHUFFLE(1,0,3,2)); - __m128i const sum = _mm_add_epi64(xacc[i], data_swap); - /* xacc[i] += product; */ - xacc[i] = _mm_add_epi64(product, sum); - } } -} - -XXH_FORCE_INLINE XXH_TARGET_SSE2 void -XXH3_scrambleAcc_sse2(void* XXH_RESTRICT acc, const void* XXH_RESTRICT secret) -{ - XXH_ASSERT((((size_t)acc) & 15) == 0); - { XXH_ALIGN(16) __m128i* const xacc = (__m128i*) acc; - /* Unaligned. This is mainly for pointer arithmetic, and because - * _mm_loadu_si128 requires a const __m128i * pointer for some reason. */ - const __m128i* const xsecret = (const __m128i *) secret; - const __m128i prime32 = _mm_set1_epi32((int)XXH_PRIME32_1); - - size_t i; - for (i=0; i < XXH_STRIPE_LEN/sizeof(__m128i); i++) { - /* xacc[i] ^= (xacc[i] >> 47) */ - __m128i const acc_vec = xacc[i]; - __m128i const shifted = _mm_srli_epi64 (acc_vec, 47); - __m128i const data_vec = _mm_xor_si128 (acc_vec, shifted); - /* xacc[i] ^= xsecret[i]; */ - __m128i const key_vec = _mm_loadu_si128 (xsecret+i); - __m128i const data_key = _mm_xor_si128 (data_vec, key_vec); - - /* xacc[i] *= XXH_PRIME32_1; */ - __m128i const data_key_hi = _mm_shuffle_epi32 (data_key, _MM_SHUFFLE(0, 3, 0, 1)); - __m128i const prod_lo = _mm_mul_epu32 (data_key, prime32); - __m128i const prod_hi = _mm_mul_epu32 (data_key_hi, prime32); - xacc[i] = _mm_add_epi64(prod_lo, _mm_slli_epi64(prod_hi, 32)); - } - } -} - -XXH_FORCE_INLINE XXH_TARGET_SSE2 void XXH3_initCustomSecret_sse2(void* XXH_RESTRICT customSecret, xxh_u64 seed64) -{ - XXH_STATIC_ASSERT((XXH_SECRET_DEFAULT_SIZE & 15) == 0); - (void)(&XXH_writeLE64); - { int const nbRounds = XXH_SECRET_DEFAULT_SIZE / sizeof(__m128i); - -# if defined(_MSC_VER) && defined(_M_IX86) && _MSC_VER < 1900 - // MSVC 32bit mode does not support _mm_set_epi64x before 2015 - XXH_ALIGN(16) const xxh_i64 seed64x2[2] = { (xxh_i64)seed64, -(xxh_i64)seed64 }; - __m128i const seed = _mm_load_si128((__m128i const*)seed64x2); -# else - __m128i const seed = _mm_set_epi64x(-(xxh_i64)seed64, (xxh_i64)seed64); -# endif - int i; - - XXH_ALIGN(64) const float* const src = (float const*) XXH3_kSecret; - XXH_ALIGN(XXH_SEC_ALIGN) __m128i* dest = (__m128i*) customSecret; -# if defined(__GNUC__) || defined(__clang__) - /* - * On GCC & Clang, marking 'dest' as modified will cause the compiler: - * - do not extract the secret from sse registers in the internal loop - * - use less common registers, and avoid pushing these reg into stack - */ - __asm__("" : "+r" (dest)); -# endif - - for (i=0; i < nbRounds; ++i) { - dest[i] = _mm_add_epi64(_mm_castps_si128(_mm_load_ps(src+i*4)), seed); - } } -} - -#endif - -#if (XXH_VECTOR == XXH_NEON) - -XXH_FORCE_INLINE void -XXH3_accumulate_512_neon( void* XXH_RESTRICT acc, - const void* XXH_RESTRICT input, - const void* XXH_RESTRICT secret) -{ - XXH_ASSERT((((size_t)acc) & 15) == 0); - { - XXH_ALIGN(16) uint64x2_t* const xacc = (uint64x2_t *) acc; - /* We don't use a uint32x4_t pointer because it causes bus errors on ARMv7. */ - uint8_t const* const xinput = (const uint8_t *) input; - uint8_t const* const xsecret = (const uint8_t *) secret; - - size_t i; - for (i=0; i < XXH_STRIPE_LEN / sizeof(uint64x2_t); i++) { - /* data_vec = xinput[i]; */ - uint8x16_t data_vec = vld1q_u8(xinput + (i * 16)); - /* key_vec = xsecret[i]; */ - uint8x16_t key_vec = vld1q_u8(xsecret + (i * 16)); - uint64x2_t data_key; - uint32x2_t data_key_lo, data_key_hi; - /* xacc[i] += swap(data_vec); */ - uint64x2_t const data64 = vreinterpretq_u64_u8(data_vec); - uint64x2_t const swapped = vextq_u64(data64, data64, 1); - xacc[i] = vaddq_u64 (xacc[i], swapped); - /* data_key = data_vec ^ key_vec; */ - data_key = vreinterpretq_u64_u8(veorq_u8(data_vec, key_vec)); - /* data_key_lo = (uint32x2_t) (data_key & 0xFFFFFFFF); - * data_key_hi = (uint32x2_t) (data_key >> 32); - * data_key = UNDEFINED; */ - XXH_SPLIT_IN_PLACE(data_key, data_key_lo, data_key_hi); - /* xacc[i] += (uint64x2_t) data_key_lo * (uint64x2_t) data_key_hi; */ - xacc[i] = vmlal_u32 (xacc[i], data_key_lo, data_key_hi); - - } - } -} - -XXH_FORCE_INLINE void -XXH3_scrambleAcc_neon(void* XXH_RESTRICT acc, const void* XXH_RESTRICT secret) -{ - XXH_ASSERT((((size_t)acc) & 15) == 0); - - { uint64x2_t* xacc = (uint64x2_t*) acc; - uint8_t const* xsecret = (uint8_t const*) secret; - uint32x2_t prime = vdup_n_u32 (XXH_PRIME32_1); - - size_t i; - for (i=0; i < XXH_STRIPE_LEN/sizeof(uint64x2_t); i++) { - /* xacc[i] ^= (xacc[i] >> 47); */ - uint64x2_t acc_vec = xacc[i]; - uint64x2_t shifted = vshrq_n_u64 (acc_vec, 47); - uint64x2_t data_vec = veorq_u64 (acc_vec, shifted); - - /* xacc[i] ^= xsecret[i]; */ - uint8x16_t key_vec = vld1q_u8(xsecret + (i * 16)); - uint64x2_t data_key = veorq_u64(data_vec, vreinterpretq_u64_u8(key_vec)); - - /* xacc[i] *= XXH_PRIME32_1 */ - uint32x2_t data_key_lo, data_key_hi; - /* data_key_lo = (uint32x2_t) (xacc[i] & 0xFFFFFFFF); - * data_key_hi = (uint32x2_t) (xacc[i] >> 32); - * xacc[i] = UNDEFINED; */ - XXH_SPLIT_IN_PLACE(data_key, data_key_lo, data_key_hi); - { /* - * prod_hi = (data_key >> 32) * XXH_PRIME32_1; - * - * Avoid vmul_u32 + vshll_n_u32 since Clang 6 and 7 will - * incorrectly "optimize" this: - * tmp = vmul_u32(vmovn_u64(a), vmovn_u64(b)); - * shifted = vshll_n_u32(tmp, 32); - * to this: - * tmp = "vmulq_u64"(a, b); // no such thing! - * shifted = vshlq_n_u64(tmp, 32); - * - * However, unlike SSE, Clang lacks a 64-bit multiply routine - * for NEON, and it scalarizes two 64-bit multiplies instead. - * - * vmull_u32 has the same timing as vmul_u32, and it avoids - * this bug completely. - * See https://bugs.llvm.org/show_bug.cgi?id=39967 - */ - uint64x2_t prod_hi = vmull_u32 (data_key_hi, prime); - /* xacc[i] = prod_hi << 32; */ - xacc[i] = vshlq_n_u64(prod_hi, 32); - /* xacc[i] += (prod_hi & 0xFFFFFFFF) * XXH_PRIME32_1; */ - xacc[i] = vmlal_u32(xacc[i], data_key_lo, prime); - } - } } -} - -#endif - -#if (XXH_VECTOR == XXH_VSX) - -XXH_FORCE_INLINE void -XXH3_accumulate_512_vsx( void* XXH_RESTRICT acc, - const void* XXH_RESTRICT input, - const void* XXH_RESTRICT secret) -{ - xxh_u64x2* const xacc = (xxh_u64x2*) acc; /* presumed aligned */ - xxh_u64x2 const* const xinput = (xxh_u64x2 const*) input; /* no alignment restriction */ - xxh_u64x2 const* const xsecret = (xxh_u64x2 const*) secret; /* no alignment restriction */ - xxh_u64x2 const v32 = { 32, 32 }; - size_t i; - for (i = 0; i < XXH_STRIPE_LEN / sizeof(xxh_u64x2); i++) { - /* data_vec = xinput[i]; */ - xxh_u64x2 const data_vec = XXH_vec_loadu(xinput + i); - /* key_vec = xsecret[i]; */ - xxh_u64x2 const key_vec = XXH_vec_loadu(xsecret + i); - xxh_u64x2 const data_key = data_vec ^ key_vec; - /* shuffled = (data_key << 32) | (data_key >> 32); */ - xxh_u32x4 const shuffled = (xxh_u32x4)vec_rl(data_key, v32); - /* product = ((xxh_u64x2)data_key & 0xFFFFFFFF) * ((xxh_u64x2)shuffled & 0xFFFFFFFF); */ - xxh_u64x2 const product = XXH_vec_mulo((xxh_u32x4)data_key, shuffled); - xacc[i] += product; - - /* swap high and low halves */ -#ifdef __s390x__ - xacc[i] += vec_permi(data_vec, data_vec, 2); -#else - xacc[i] += vec_xxpermdi(data_vec, data_vec, 2); -#endif - } -} - -XXH_FORCE_INLINE void -XXH3_scrambleAcc_vsx(void* XXH_RESTRICT acc, const void* XXH_RESTRICT secret) -{ - XXH_ASSERT((((size_t)acc) & 15) == 0); - - { xxh_u64x2* const xacc = (xxh_u64x2*) acc; - const xxh_u64x2* const xsecret = (const xxh_u64x2*) secret; - /* constants */ - xxh_u64x2 const v32 = { 32, 32 }; - xxh_u64x2 const v47 = { 47, 47 }; - xxh_u32x4 const prime = { XXH_PRIME32_1, XXH_PRIME32_1, XXH_PRIME32_1, XXH_PRIME32_1 }; - size_t i; - for (i = 0; i < XXH_STRIPE_LEN / sizeof(xxh_u64x2); i++) { - /* xacc[i] ^= (xacc[i] >> 47); */ - xxh_u64x2 const acc_vec = xacc[i]; - xxh_u64x2 const data_vec = acc_vec ^ (acc_vec >> v47); - - /* xacc[i] ^= xsecret[i]; */ - xxh_u64x2 const key_vec = XXH_vec_loadu(xsecret + i); - xxh_u64x2 const data_key = data_vec ^ key_vec; - - /* xacc[i] *= XXH_PRIME32_1 */ - /* prod_lo = ((xxh_u64x2)data_key & 0xFFFFFFFF) * ((xxh_u64x2)prime & 0xFFFFFFFF); */ - xxh_u64x2 const prod_even = XXH_vec_mule((xxh_u32x4)data_key, prime); - /* prod_hi = ((xxh_u64x2)data_key >> 32) * ((xxh_u64x2)prime >> 32); */ - xxh_u64x2 const prod_odd = XXH_vec_mulo((xxh_u32x4)data_key, prime); - xacc[i] = prod_odd + (prod_even << v32); - } } -} - -#endif - -/* scalar variants - universal */ - -XXH_FORCE_INLINE void -XXH3_accumulate_512_scalar(void* XXH_RESTRICT acc, - const void* XXH_RESTRICT input, - const void* XXH_RESTRICT secret) -{ - XXH_ALIGN(XXH_ACC_ALIGN) xxh_u64* const xacc = (xxh_u64*) acc; /* presumed aligned */ - const xxh_u8* const xinput = (const xxh_u8*) input; /* no alignment restriction */ - const xxh_u8* const xsecret = (const xxh_u8*) secret; /* no alignment restriction */ - size_t i; - XXH_ASSERT(((size_t)acc & (XXH_ACC_ALIGN-1)) == 0); - for (i=0; i < XXH_ACC_NB; i++) { - xxh_u64 const data_val = XXH_readLE64(xinput + 8*i); - xxh_u64 const data_key = data_val ^ XXH_readLE64(xsecret + i*8); - xacc[i ^ 1] += data_val; /* swap adjacent lanes */ - xacc[i] += XXH_mult32to64(data_key & 0xFFFFFFFF, data_key >> 32); - } -} - -XXH_FORCE_INLINE void -XXH3_scrambleAcc_scalar(void* XXH_RESTRICT acc, const void* XXH_RESTRICT secret) -{ - XXH_ALIGN(XXH_ACC_ALIGN) xxh_u64* const xacc = (xxh_u64*) acc; /* presumed aligned */ - const xxh_u8* const xsecret = (const xxh_u8*) secret; /* no alignment restriction */ - size_t i; - XXH_ASSERT((((size_t)acc) & (XXH_ACC_ALIGN-1)) == 0); - for (i=0; i < XXH_ACC_NB; i++) { - xxh_u64 const key64 = XXH_readLE64(xsecret + 8*i); - xxh_u64 acc64 = xacc[i]; - acc64 = XXH_xorshift64(acc64, 47); - acc64 ^= key64; - acc64 *= XXH_PRIME32_1; - xacc[i] = acc64; - } -} - -XXH_FORCE_INLINE void -XXH3_initCustomSecret_scalar(void* XXH_RESTRICT customSecret, xxh_u64 seed64) -{ - /* - * We need a separate pointer for the hack below, - * which requires a non-const pointer. - * Any decent compiler will optimize this out otherwise. - */ - const xxh_u8* kSecretPtr = XXH3_kSecret; - XXH_STATIC_ASSERT((XXH_SECRET_DEFAULT_SIZE & 15) == 0); - -#if defined(__clang__) && defined(__aarch64__) - /* - * UGLY HACK: - * Clang generates a bunch of MOV/MOVK pairs for aarch64, and they are - * placed sequentially, in order, at the top of the unrolled loop. - * - * While MOVK is great for generating constants (2 cycles for a 64-bit - * constant compared to 4 cycles for LDR), long MOVK chains stall the - * integer pipelines: - * I L S - * MOVK - * MOVK - * MOVK - * MOVK - * ADD - * SUB STR - * STR - * By forcing loads from memory (as the asm line causes Clang to assume - * that XXH3_kSecretPtr has been changed), the pipelines are used more - * efficiently: - * I L S - * LDR - * ADD LDR - * SUB STR - * STR - * XXH3_64bits_withSeed, len == 256, Snapdragon 835 - * without hack: 2654.4 MB/s - * with hack: 3202.9 MB/s - */ - __asm__("" : "+r" (kSecretPtr)); -#endif - /* - * Note: in debug mode, this overrides the asm optimization - * and Clang will emit MOVK chains again. - */ - XXH_ASSERT(kSecretPtr == XXH3_kSecret); - - { int const nbRounds = XXH_SECRET_DEFAULT_SIZE / 16; - int i; - for (i=0; i < nbRounds; i++) { - /* - * The asm hack causes Clang to assume that kSecretPtr aliases with - * customSecret, and on aarch64, this prevented LDP from merging two - * loads together for free. Putting the loads together before the stores - * properly generates LDP. - */ - xxh_u64 lo = XXH_readLE64(kSecretPtr + 16*i) + seed64; - xxh_u64 hi = XXH_readLE64(kSecretPtr + 16*i + 8) - seed64; - XXH_writeLE64((xxh_u8*)customSecret + 16*i, lo); - XXH_writeLE64((xxh_u8*)customSecret + 16*i + 8, hi); - } } -} - - -typedef void (*XXH3_f_accumulate_512)(void* XXH_RESTRICT, const void*, const void*); -typedef void (*XXH3_f_scrambleAcc)(void* XXH_RESTRICT, const void*); -typedef void (*XXH3_f_initCustomSecret)(void* XXH_RESTRICT, xxh_u64); - - -#if (XXH_VECTOR == XXH_AVX512) - -#define XXH3_accumulate_512 XXH3_accumulate_512_avx512 -#define XXH3_scrambleAcc XXH3_scrambleAcc_avx512 -#define XXH3_initCustomSecret XXH3_initCustomSecret_avx512 - -#elif (XXH_VECTOR == XXH_AVX2) - -#define XXH3_accumulate_512 XXH3_accumulate_512_avx2 -#define XXH3_scrambleAcc XXH3_scrambleAcc_avx2 -#define XXH3_initCustomSecret XXH3_initCustomSecret_avx2 - -#elif (XXH_VECTOR == XXH_SSE2) - -#define XXH3_accumulate_512 XXH3_accumulate_512_sse2 -#define XXH3_scrambleAcc XXH3_scrambleAcc_sse2 -#define XXH3_initCustomSecret XXH3_initCustomSecret_sse2 - -#elif (XXH_VECTOR == XXH_NEON) - -#define XXH3_accumulate_512 XXH3_accumulate_512_neon -#define XXH3_scrambleAcc XXH3_scrambleAcc_neon -#define XXH3_initCustomSecret XXH3_initCustomSecret_scalar - -#elif (XXH_VECTOR == XXH_VSX) - -#define XXH3_accumulate_512 XXH3_accumulate_512_vsx -#define XXH3_scrambleAcc XXH3_scrambleAcc_vsx -#define XXH3_initCustomSecret XXH3_initCustomSecret_scalar - -#else /* scalar */ - -#define XXH3_accumulate_512 XXH3_accumulate_512_scalar -#define XXH3_scrambleAcc XXH3_scrambleAcc_scalar -#define XXH3_initCustomSecret XXH3_initCustomSecret_scalar - -#endif - - - -#ifndef XXH_PREFETCH_DIST -# ifdef __clang__ -# define XXH_PREFETCH_DIST 320 -# else -# if (XXH_VECTOR == XXH_AVX512) -# define XXH_PREFETCH_DIST 512 -# else -# define XXH_PREFETCH_DIST 384 -# endif -# endif /* __clang__ */ -#endif /* XXH_PREFETCH_DIST */ - -/* - * XXH3_accumulate() - * Loops over XXH3_accumulate_512(). - * Assumption: nbStripes will not overflow the secret size - */ -XXH_FORCE_INLINE void -XXH3_accumulate( xxh_u64* XXH_RESTRICT acc, - const xxh_u8* XXH_RESTRICT input, - const xxh_u8* XXH_RESTRICT secret, - size_t nbStripes, - XXH3_f_accumulate_512 f_acc512) -{ - size_t n; - for (n = 0; n < nbStripes; n++ ) { - const xxh_u8* const in = input + n*XXH_STRIPE_LEN; - XXH_PREFETCH(in + XXH_PREFETCH_DIST); - f_acc512(acc, - in, - secret + n*XXH_SECRET_CONSUME_RATE); - } -} - -XXH_FORCE_INLINE void -XXH3_hashLong_internal_loop(xxh_u64* XXH_RESTRICT acc, - const xxh_u8* XXH_RESTRICT input, size_t len, - const xxh_u8* XXH_RESTRICT secret, size_t secretSize, - XXH3_f_accumulate_512 f_acc512, - XXH3_f_scrambleAcc f_scramble) -{ - size_t const nbStripesPerBlock = (secretSize - XXH_STRIPE_LEN) / XXH_SECRET_CONSUME_RATE; - size_t const block_len = XXH_STRIPE_LEN * nbStripesPerBlock; - size_t const nb_blocks = (len - 1) / block_len; - - size_t n; - - XXH_ASSERT(secretSize >= XXH3_SECRET_SIZE_MIN); - - for (n = 0; n < nb_blocks; n++) { - XXH3_accumulate(acc, input + n*block_len, secret, nbStripesPerBlock, f_acc512); - f_scramble(acc, secret + secretSize - XXH_STRIPE_LEN); - } - - /* last partial block */ - XXH_ASSERT(len > XXH_STRIPE_LEN); - { size_t const nbStripes = ((len - 1) - (block_len * nb_blocks)) / XXH_STRIPE_LEN; - XXH_ASSERT(nbStripes <= (secretSize / XXH_SECRET_CONSUME_RATE)); - XXH3_accumulate(acc, input + nb_blocks*block_len, secret, nbStripes, f_acc512); - - /* last stripe */ - { const xxh_u8* const p = input + len - XXH_STRIPE_LEN; -#define XXH_SECRET_LASTACC_START 7 /* not aligned on 8, last secret is different from acc & scrambler */ - f_acc512(acc, p, secret + secretSize - XXH_STRIPE_LEN - XXH_SECRET_LASTACC_START); - } } -} - -XXH_FORCE_INLINE xxh_u64 -XXH3_mix2Accs(const xxh_u64* XXH_RESTRICT acc, const xxh_u8* XXH_RESTRICT secret) -{ - return XXH3_mul128_fold64( - acc[0] ^ XXH_readLE64(secret), - acc[1] ^ XXH_readLE64(secret+8) ); -} - -static XXH64_hash_t -XXH3_mergeAccs(const xxh_u64* XXH_RESTRICT acc, const xxh_u8* XXH_RESTRICT secret, xxh_u64 start) -{ - xxh_u64 result64 = start; - size_t i = 0; - - for (i = 0; i < 4; i++) { - result64 += XXH3_mix2Accs(acc+2*i, secret + 16*i); -#if defined(__clang__) /* Clang */ \ - && (defined(__arm__) || defined(__thumb__)) /* ARMv7 */ \ - && (defined(__ARM_NEON) || defined(__ARM_NEON__)) /* NEON */ \ - && !defined(XXH_ENABLE_AUTOVECTORIZE) /* Define to disable */ - /* - * UGLY HACK: - * Prevent autovectorization on Clang ARMv7-a. Exact same problem as - * the one in XXH3_len_129to240_64b. Speeds up shorter keys > 240b. - * XXH3_64bits, len == 256, Snapdragon 835: - * without hack: 2063.7 MB/s - * with hack: 2560.7 MB/s - */ - __asm__("" : "+r" (result64)); -#endif - } - - return XXH3_avalanche(result64); -} - -#define XXH3_INIT_ACC { XXH_PRIME32_3, XXH_PRIME64_1, XXH_PRIME64_2, XXH_PRIME64_3, \ - XXH_PRIME64_4, XXH_PRIME32_2, XXH_PRIME64_5, XXH_PRIME32_1 } - -XXH_FORCE_INLINE XXH64_hash_t -XXH3_hashLong_64b_internal(const void* XXH_RESTRICT input, size_t len, - const void* XXH_RESTRICT secret, size_t secretSize, - XXH3_f_accumulate_512 f_acc512, - XXH3_f_scrambleAcc f_scramble) -{ - XXH_ALIGN(XXH_ACC_ALIGN) xxh_u64 acc[XXH_ACC_NB] = XXH3_INIT_ACC; - - XXH3_hashLong_internal_loop(acc, (const xxh_u8*)input, len, (const xxh_u8*)secret, secretSize, f_acc512, f_scramble); - - /* converge into final hash */ - XXH_STATIC_ASSERT(sizeof(acc) == 64); - /* do not align on 8, so that the secret is different from the accumulator */ -#define XXH_SECRET_MERGEACCS_START 11 - XXH_ASSERT(secretSize >= sizeof(acc) + XXH_SECRET_MERGEACCS_START); - return XXH3_mergeAccs(acc, (const xxh_u8*)secret + XXH_SECRET_MERGEACCS_START, (xxh_u64)len * XXH_PRIME64_1); -} - -/* - * It's important for performance that XXH3_hashLong is not inlined. - */ -XXH_NO_INLINE XXH64_hash_t -XXH3_hashLong_64b_withSecret(const void* XXH_RESTRICT input, size_t len, - XXH64_hash_t seed64, const xxh_u8* XXH_RESTRICT secret, size_t secretLen) -{ - (void)seed64; - return XXH3_hashLong_64b_internal(input, len, secret, secretLen, XXH3_accumulate_512, XXH3_scrambleAcc); -} - -/* - * It's important for performance that XXH3_hashLong is not inlined. - * Since the function is not inlined, the compiler may not be able to understand that, - * in some scenarios, its `secret` argument is actually a compile time constant. - * This variant enforces that the compiler can detect that, - * and uses this opportunity to streamline the generated code for better performance. - */ -XXH_NO_INLINE XXH64_hash_t -XXH3_hashLong_64b_default(const void* XXH_RESTRICT input, size_t len, - XXH64_hash_t seed64, const xxh_u8* XXH_RESTRICT secret, size_t secretLen) -{ - (void)seed64; (void)secret; (void)secretLen; - return XXH3_hashLong_64b_internal(input, len, XXH3_kSecret, sizeof(XXH3_kSecret), XXH3_accumulate_512, XXH3_scrambleAcc); -} - -/* - * XXH3_hashLong_64b_withSeed(): - * Generate a custom key based on alteration of default XXH3_kSecret with the seed, - * and then use this key for long mode hashing. - * - * This operation is decently fast but nonetheless costs a little bit of time. - * Try to avoid it whenever possible (typically when seed==0). - * - * It's important for performance that XXH3_hashLong is not inlined. Not sure - * why (uop cache maybe?), but the difference is large and easily measurable. - */ -XXH_FORCE_INLINE XXH64_hash_t -XXH3_hashLong_64b_withSeed_internal(const void* input, size_t len, - XXH64_hash_t seed, - XXH3_f_accumulate_512 f_acc512, - XXH3_f_scrambleAcc f_scramble, - XXH3_f_initCustomSecret f_initSec) -{ - if (seed == 0) - return XXH3_hashLong_64b_internal(input, len, - XXH3_kSecret, sizeof(XXH3_kSecret), - f_acc512, f_scramble); - { XXH_ALIGN(XXH_SEC_ALIGN) xxh_u8 secret[XXH_SECRET_DEFAULT_SIZE]; - f_initSec(secret, seed); - return XXH3_hashLong_64b_internal(input, len, secret, sizeof(secret), - f_acc512, f_scramble); - } -} - -/* - * It's important for performance that XXH3_hashLong is not inlined. - */ -XXH_NO_INLINE XXH64_hash_t -XXH3_hashLong_64b_withSeed(const void* input, size_t len, - XXH64_hash_t seed, const xxh_u8* secret, size_t secretLen) -{ - (void)secret; (void)secretLen; - return XXH3_hashLong_64b_withSeed_internal(input, len, seed, - XXH3_accumulate_512, XXH3_scrambleAcc, XXH3_initCustomSecret); -} - - -typedef XXH64_hash_t (*XXH3_hashLong64_f)(const void* XXH_RESTRICT, size_t, - XXH64_hash_t, const xxh_u8* XXH_RESTRICT, size_t); - -XXH_FORCE_INLINE XXH64_hash_t -XXH3_64bits_internal(const void* XXH_RESTRICT input, size_t len, - XXH64_hash_t seed64, const void* XXH_RESTRICT secret, size_t secretLen, - XXH3_hashLong64_f f_hashLong) -{ - XXH_ASSERT(secretLen >= XXH3_SECRET_SIZE_MIN); - /* - * If an action is to be taken if `secretLen` condition is not respected, - * it should be done here. - * For now, it's a contract pre-condition. - * Adding a check and a branch here would cost performance at every hash. - * Also, note that function signature doesn't offer room to return an error. - */ - if (len <= 16) - return XXH3_len_0to16_64b((const xxh_u8*)input, len, (const xxh_u8*)secret, seed64); - if (len <= 128) - return XXH3_len_17to128_64b((const xxh_u8*)input, len, (const xxh_u8*)secret, secretLen, seed64); - if (len <= XXH3_MIDSIZE_MAX) - return XXH3_len_129to240_64b((const xxh_u8*)input, len, (const xxh_u8*)secret, secretLen, seed64); - return f_hashLong(input, len, seed64, (const xxh_u8*)secret, secretLen); -} - - -/* === Public entry point === */ - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH64_hash_t XXH3_64bits(const void* input, size_t len) -{ - return XXH3_64bits_internal(input, len, 0, XXH3_kSecret, sizeof(XXH3_kSecret), XXH3_hashLong_64b_default); -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH64_hash_t -XXH3_64bits_withSecret(const void* input, size_t len, const void* secret, size_t secretSize) -{ - return XXH3_64bits_internal(input, len, 0, secret, secretSize, XXH3_hashLong_64b_withSecret); -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH64_hash_t -XXH3_64bits_withSeed(const void* input, size_t len, XXH64_hash_t seed) -{ - return XXH3_64bits_internal(input, len, seed, XXH3_kSecret, sizeof(XXH3_kSecret), XXH3_hashLong_64b_withSeed); -} - - -/* === XXH3 streaming === */ - -/* - * Malloc's a pointer that is always aligned to align. - * - * This must be freed with `XXH_alignedFree()`. - * - * malloc typically guarantees 16 byte alignment on 64-bit systems and 8 byte - * alignment on 32-bit. This isn't enough for the 32 byte aligned loads in AVX2 - * or on 32-bit, the 16 byte aligned loads in SSE2 and NEON. - * - * This underalignment previously caused a rather obvious crash which went - * completely unnoticed due to XXH3_createState() not actually being tested. - * Credit to RedSpah for noticing this bug. - * - * The alignment is done manually: Functions like posix_memalign or _mm_malloc - * are avoided: To maintain portability, we would have to write a fallback - * like this anyways, and besides, testing for the existence of library - * functions without relying on external build tools is impossible. - * - * The method is simple: Overallocate, manually align, and store the offset - * to the original behind the returned pointer. - * - * Align must be a power of 2 and 8 <= align <= 128. - */ -static void* XXH_alignedMalloc(size_t s, size_t align) -{ - XXH_ASSERT(align <= 128 && align >= 8); /* range check */ - XXH_ASSERT((align & (align-1)) == 0); /* power of 2 */ - XXH_ASSERT(s != 0 && s < (s + align)); /* empty/overflow */ - { /* Overallocate to make room for manual realignment and an offset byte */ - xxh_u8* base = (xxh_u8*)XXH_malloc(s + align); - if (base != NULL) { - /* - * Get the offset needed to align this pointer. - * - * Even if the returned pointer is aligned, there will always be - * at least one byte to store the offset to the original pointer. - */ - size_t offset = align - ((size_t)base & (align - 1)); /* base % align */ - /* Add the offset for the now-aligned pointer */ - xxh_u8* ptr = base + offset; - - XXH_ASSERT((size_t)ptr % align == 0); - - /* Store the offset immediately before the returned pointer. */ - ptr[-1] = (xxh_u8)offset; - return ptr; - } - return NULL; - } -} -/* - * Frees an aligned pointer allocated by XXH_alignedMalloc(). Don't pass - * normal malloc'd pointers, XXH_alignedMalloc has a specific data layout. - */ -static void XXH_alignedFree(void* p) -{ - if (p != NULL) { - xxh_u8* ptr = (xxh_u8*)p; - /* Get the offset byte we added in XXH_malloc. */ - xxh_u8 offset = ptr[-1]; - /* Free the original malloc'd pointer */ - xxh_u8* base = ptr - offset; - XXH_free(base); - } -} -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH3_state_t* XXH3_createState(void) -{ - XXH3_state_t* const state = (XXH3_state_t*)XXH_alignedMalloc(sizeof(XXH3_state_t), 64); - if (state==NULL) return NULL; - XXH3_INITSTATE(state); - return state; -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH_errorcode XXH3_freeState(XXH3_state_t* statePtr) -{ - XXH_alignedFree(statePtr); - return XXH_OK; -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API void -XXH3_copyState(XXH3_state_t* dst_state, const XXH3_state_t* src_state) -{ - memcpy(dst_state, src_state, sizeof(*dst_state)); -} - -static void -XXH3_reset_internal(XXH3_state_t* statePtr, - XXH64_hash_t seed, - const void* secret, size_t secretSize) -{ - size_t const initStart = offsetof(XXH3_state_t, bufferedSize); - size_t const initLength = offsetof(XXH3_state_t, nbStripesPerBlock) - initStart; - XXH_ASSERT(offsetof(XXH3_state_t, nbStripesPerBlock) > initStart); - XXH_ASSERT(statePtr != NULL); - /* set members from bufferedSize to nbStripesPerBlock (excluded) to 0 */ - memset((char*)statePtr + initStart, 0, initLength); - statePtr->acc[0] = XXH_PRIME32_3; - statePtr->acc[1] = XXH_PRIME64_1; - statePtr->acc[2] = XXH_PRIME64_2; - statePtr->acc[3] = XXH_PRIME64_3; - statePtr->acc[4] = XXH_PRIME64_4; - statePtr->acc[5] = XXH_PRIME32_2; - statePtr->acc[6] = XXH_PRIME64_5; - statePtr->acc[7] = XXH_PRIME32_1; - statePtr->seed = seed; - statePtr->extSecret = (const unsigned char*)secret; - XXH_ASSERT(secretSize >= XXH3_SECRET_SIZE_MIN); - statePtr->secretLimit = secretSize - XXH_STRIPE_LEN; - statePtr->nbStripesPerBlock = statePtr->secretLimit / XXH_SECRET_CONSUME_RATE; -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH_errorcode -XXH3_64bits_reset(XXH3_state_t* statePtr) -{ - if (statePtr == NULL) return XXH_ERROR; - XXH3_reset_internal(statePtr, 0, XXH3_kSecret, XXH_SECRET_DEFAULT_SIZE); - return XXH_OK; -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH_errorcode -XXH3_64bits_reset_withSecret(XXH3_state_t* statePtr, const void* secret, size_t secretSize) -{ - if (statePtr == NULL) return XXH_ERROR; - XXH3_reset_internal(statePtr, 0, secret, secretSize); - if (secret == NULL) return XXH_ERROR; - if (secretSize < XXH3_SECRET_SIZE_MIN) return XXH_ERROR; - return XXH_OK; -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH_errorcode -XXH3_64bits_reset_withSeed(XXH3_state_t* statePtr, XXH64_hash_t seed) -{ - if (statePtr == NULL) return XXH_ERROR; - if (seed==0) return XXH3_64bits_reset(statePtr); - if (seed != statePtr->seed) XXH3_initCustomSecret(statePtr->customSecret, seed); - XXH3_reset_internal(statePtr, seed, NULL, XXH_SECRET_DEFAULT_SIZE); - return XXH_OK; -} - -/* Note : when XXH3_consumeStripes() is invoked, - * there must be a guarantee that at least one more byte must be consumed from input - * so that the function can blindly consume all stripes using the "normal" secret segment */ -XXH_FORCE_INLINE void -XXH3_consumeStripes(xxh_u64* XXH_RESTRICT acc, - size_t* XXH_RESTRICT nbStripesSoFarPtr, size_t nbStripesPerBlock, - const xxh_u8* XXH_RESTRICT input, size_t nbStripes, - const xxh_u8* XXH_RESTRICT secret, size_t secretLimit, - XXH3_f_accumulate_512 f_acc512, - XXH3_f_scrambleAcc f_scramble) -{ - XXH_ASSERT(nbStripes <= nbStripesPerBlock); /* can handle max 1 scramble per invocation */ - XXH_ASSERT(*nbStripesSoFarPtr < nbStripesPerBlock); - if (nbStripesPerBlock - *nbStripesSoFarPtr <= nbStripes) { - /* need a scrambling operation */ - size_t const nbStripesToEndofBlock = nbStripesPerBlock - *nbStripesSoFarPtr; - size_t const nbStripesAfterBlock = nbStripes - nbStripesToEndofBlock; - XXH3_accumulate(acc, input, secret + nbStripesSoFarPtr[0] * XXH_SECRET_CONSUME_RATE, nbStripesToEndofBlock, f_acc512); - f_scramble(acc, secret + secretLimit); - XXH3_accumulate(acc, input + nbStripesToEndofBlock * XXH_STRIPE_LEN, secret, nbStripesAfterBlock, f_acc512); - *nbStripesSoFarPtr = nbStripesAfterBlock; - } else { - XXH3_accumulate(acc, input, secret + nbStripesSoFarPtr[0] * XXH_SECRET_CONSUME_RATE, nbStripes, f_acc512); - *nbStripesSoFarPtr += nbStripes; - } -} - -/* - * Both XXH3_64bits_update and XXH3_128bits_update use this routine. - */ -XXH_FORCE_INLINE XXH_errorcode -XXH3_update(XXH3_state_t* state, - const xxh_u8* input, size_t len, - XXH3_f_accumulate_512 f_acc512, - XXH3_f_scrambleAcc f_scramble) -{ - if (input==NULL) -#if defined(XXH_ACCEPT_NULL_INPUT_POINTER) && (XXH_ACCEPT_NULL_INPUT_POINTER>=1) - return XXH_OK; -#else - return XXH_ERROR; -#endif - - { const xxh_u8* const bEnd = input + len; - const unsigned char* const secret = (state->extSecret == NULL) ? state->customSecret : state->extSecret; - - state->totalLen += len; - XXH_ASSERT(state->bufferedSize <= XXH3_INTERNALBUFFER_SIZE); - - if (state->bufferedSize + len <= XXH3_INTERNALBUFFER_SIZE) { /* fill in tmp buffer */ - XXH_memcpy(state->buffer + state->bufferedSize, input, len); - state->bufferedSize += (XXH32_hash_t)len; - return XXH_OK; - } - /* total input is now > XXH3_INTERNALBUFFER_SIZE */ - - #define XXH3_INTERNALBUFFER_STRIPES (XXH3_INTERNALBUFFER_SIZE / XXH_STRIPE_LEN) - XXH_STATIC_ASSERT(XXH3_INTERNALBUFFER_SIZE % XXH_STRIPE_LEN == 0); /* clean multiple */ - - /* - * Internal buffer is partially filled (always, except at beginning) - * Complete it, then consume it. - */ - if (state->bufferedSize) { - size_t const loadSize = XXH3_INTERNALBUFFER_SIZE - state->bufferedSize; - XXH_memcpy(state->buffer + state->bufferedSize, input, loadSize); - input += loadSize; - XXH3_consumeStripes(state->acc, - &state->nbStripesSoFar, state->nbStripesPerBlock, - state->buffer, XXH3_INTERNALBUFFER_STRIPES, - secret, state->secretLimit, - f_acc512, f_scramble); - state->bufferedSize = 0; - } - XXH_ASSERT(input < bEnd); - - /* Consume input by a multiple of internal buffer size */ - if (input+XXH3_INTERNALBUFFER_SIZE < bEnd) { - const xxh_u8* const limit = bEnd - XXH3_INTERNALBUFFER_SIZE; - do { - XXH3_consumeStripes(state->acc, - &state->nbStripesSoFar, state->nbStripesPerBlock, - input, XXH3_INTERNALBUFFER_STRIPES, - secret, state->secretLimit, - f_acc512, f_scramble); - input += XXH3_INTERNALBUFFER_SIZE; - } while (inputbuffer + sizeof(state->buffer) - XXH_STRIPE_LEN, input - XXH_STRIPE_LEN, XXH_STRIPE_LEN); - } - XXH_ASSERT(input < bEnd); - - /* Some remaining input (always) : buffer it */ - XXH_memcpy(state->buffer, input, (size_t)(bEnd-input)); - state->bufferedSize = (XXH32_hash_t)(bEnd-input); - } - - return XXH_OK; -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH_errorcode -XXH3_64bits_update(XXH3_state_t* state, const void* input, size_t len) -{ - return XXH3_update(state, (const xxh_u8*)input, len, - XXH3_accumulate_512, XXH3_scrambleAcc); -} - - -XXH_FORCE_INLINE void -XXH3_digest_long (XXH64_hash_t* acc, - const XXH3_state_t* state, - const unsigned char* secret) -{ - /* - * Digest on a local copy. This way, the state remains unaltered, and it can - * continue ingesting more input afterwards. - */ - memcpy(acc, state->acc, sizeof(state->acc)); - if (state->bufferedSize >= XXH_STRIPE_LEN) { - size_t const nbStripes = (state->bufferedSize - 1) / XXH_STRIPE_LEN; - size_t nbStripesSoFar = state->nbStripesSoFar; - XXH3_consumeStripes(acc, - &nbStripesSoFar, state->nbStripesPerBlock, - state->buffer, nbStripes, - secret, state->secretLimit, - XXH3_accumulate_512, XXH3_scrambleAcc); - /* last stripe */ - XXH3_accumulate_512(acc, - state->buffer + state->bufferedSize - XXH_STRIPE_LEN, - secret + state->secretLimit - XXH_SECRET_LASTACC_START); - } else { /* bufferedSize < XXH_STRIPE_LEN */ - xxh_u8 lastStripe[XXH_STRIPE_LEN]; - size_t const catchupSize = XXH_STRIPE_LEN - state->bufferedSize; - XXH_ASSERT(state->bufferedSize > 0); /* there is always some input buffered */ - memcpy(lastStripe, state->buffer + sizeof(state->buffer) - catchupSize, catchupSize); - memcpy(lastStripe + catchupSize, state->buffer, state->bufferedSize); - XXH3_accumulate_512(acc, - lastStripe, - secret + state->secretLimit - XXH_SECRET_LASTACC_START); - } -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH64_hash_t XXH3_64bits_digest (const XXH3_state_t* state) -{ - const unsigned char* const secret = (state->extSecret == NULL) ? state->customSecret : state->extSecret; - if (state->totalLen > XXH3_MIDSIZE_MAX) { - XXH_ALIGN(XXH_ACC_ALIGN) XXH64_hash_t acc[XXH_ACC_NB]; - XXH3_digest_long(acc, state, secret); - return XXH3_mergeAccs(acc, - secret + XXH_SECRET_MERGEACCS_START, - (xxh_u64)state->totalLen * XXH_PRIME64_1); - } - /* totalLen <= XXH3_MIDSIZE_MAX: digesting a short input */ - if (state->seed) - return XXH3_64bits_withSeed(state->buffer, (size_t)state->totalLen, state->seed); - return XXH3_64bits_withSecret(state->buffer, (size_t)(state->totalLen), - secret, state->secretLimit + XXH_STRIPE_LEN); -} - - -#define XXH_MIN(x, y) (((x) > (y)) ? (y) : (x)) - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API void -XXH3_generateSecret(void* secretBuffer, const void* customSeed, size_t customSeedSize) -{ - XXH_ASSERT(secretBuffer != NULL); - if (customSeedSize == 0) { - memcpy(secretBuffer, XXH3_kSecret, XXH_SECRET_DEFAULT_SIZE); - return; - } - XXH_ASSERT(customSeed != NULL); - - { size_t const segmentSize = sizeof(XXH128_hash_t); - size_t const nbSegments = XXH_SECRET_DEFAULT_SIZE / segmentSize; - XXH128_canonical_t scrambler; - XXH64_hash_t seeds[12]; - size_t segnb; - XXH_ASSERT(nbSegments == 12); - XXH_ASSERT(segmentSize * nbSegments == XXH_SECRET_DEFAULT_SIZE); /* exact multiple */ - XXH128_canonicalFromHash(&scrambler, XXH128(customSeed, customSeedSize, 0)); - - /* - * Copy customSeed to seeds[], truncating or repeating as necessary. - */ - { size_t toFill = XXH_MIN(customSeedSize, sizeof(seeds)); - size_t filled = toFill; - memcpy(seeds, customSeed, toFill); - while (filled < sizeof(seeds)) { - toFill = XXH_MIN(filled, sizeof(seeds) - filled); - memcpy((char*)seeds + filled, seeds, toFill); - filled += toFill; - } } - - /* generate secret */ - memcpy(secretBuffer, &scrambler, sizeof(scrambler)); - for (segnb=1; segnb < nbSegments; segnb++) { - size_t const segmentStart = segnb * segmentSize; - XXH128_canonical_t segment; - XXH128_canonicalFromHash(&segment, - XXH128(&scrambler, sizeof(scrambler), XXH_readLE64(seeds + segnb) + segnb) ); - memcpy((char*)secretBuffer + segmentStart, &segment, sizeof(segment)); - } } -} - - -/* ========================================== - * XXH3 128 bits (a.k.a XXH128) - * ========================================== - * XXH3's 128-bit variant has better mixing and strength than the 64-bit variant, - * even without counting the significantly larger output size. - * - * For example, extra steps are taken to avoid the seed-dependent collisions - * in 17-240 byte inputs (See XXH3_mix16B and XXH128_mix32B). - * - * This strength naturally comes at the cost of some speed, especially on short - * lengths. Note that longer hashes are about as fast as the 64-bit version - * due to it using only a slight modification of the 64-bit loop. - * - * XXH128 is also more oriented towards 64-bit machines. It is still extremely - * fast for a _128-bit_ hash on 32-bit (it usually clears XXH64). - */ - -XXH_FORCE_INLINE XXH128_hash_t -XXH3_len_1to3_128b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) -{ - /* A doubled version of 1to3_64b with different constants. */ - XXH_ASSERT(input != NULL); - XXH_ASSERT(1 <= len && len <= 3); - XXH_ASSERT(secret != NULL); - /* - * len = 1: combinedl = { input[0], 0x01, input[0], input[0] } - * len = 2: combinedl = { input[1], 0x02, input[0], input[1] } - * len = 3: combinedl = { input[2], 0x03, input[0], input[1] } - */ - { xxh_u8 const c1 = input[0]; - xxh_u8 const c2 = input[len >> 1]; - xxh_u8 const c3 = input[len - 1]; - xxh_u32 const combinedl = ((xxh_u32)c1 <<16) | ((xxh_u32)c2 << 24) - | ((xxh_u32)c3 << 0) | ((xxh_u32)len << 8); - xxh_u32 const combinedh = XXH_rotl32(XXH_swap32(combinedl), 13); - xxh_u64 const bitflipl = (XXH_readLE32(secret) ^ XXH_readLE32(secret+4)) + seed; - xxh_u64 const bitfliph = (XXH_readLE32(secret+8) ^ XXH_readLE32(secret+12)) - seed; - xxh_u64 const keyed_lo = (xxh_u64)combinedl ^ bitflipl; - xxh_u64 const keyed_hi = (xxh_u64)combinedh ^ bitfliph; - XXH128_hash_t h128; - h128.low64 = XXH64_avalanche(keyed_lo); - h128.high64 = XXH64_avalanche(keyed_hi); - return h128; - } -} - -XXH_FORCE_INLINE XXH128_hash_t -XXH3_len_4to8_128b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) -{ - XXH_ASSERT(input != NULL); - XXH_ASSERT(secret != NULL); - XXH_ASSERT(4 <= len && len <= 8); - seed ^= (xxh_u64)XXH_swap32((xxh_u32)seed) << 32; - { xxh_u32 const input_lo = XXH_readLE32(input); - xxh_u32 const input_hi = XXH_readLE32(input + len - 4); - xxh_u64 const input_64 = input_lo + ((xxh_u64)input_hi << 32); - xxh_u64 const bitflip = (XXH_readLE64(secret+16) ^ XXH_readLE64(secret+24)) + seed; - xxh_u64 const keyed = input_64 ^ bitflip; - - /* Shift len to the left to ensure it is even, this avoids even multiplies. */ - XXH128_hash_t m128 = XXH_mult64to128(keyed, XXH_PRIME64_1 + (len << 2)); - - m128.high64 += (m128.low64 << 1); - m128.low64 ^= (m128.high64 >> 3); - - m128.low64 = XXH_xorshift64(m128.low64, 35); - m128.low64 *= 0x9FB21C651E98DF25ULL; - m128.low64 = XXH_xorshift64(m128.low64, 28); - m128.high64 = XXH3_avalanche(m128.high64); - return m128; - } -} - -XXH_FORCE_INLINE XXH128_hash_t -XXH3_len_9to16_128b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) -{ - XXH_ASSERT(input != NULL); - XXH_ASSERT(secret != NULL); - XXH_ASSERT(9 <= len && len <= 16); - { xxh_u64 const bitflipl = (XXH_readLE64(secret+32) ^ XXH_readLE64(secret+40)) - seed; - xxh_u64 const bitfliph = (XXH_readLE64(secret+48) ^ XXH_readLE64(secret+56)) + seed; - xxh_u64 const input_lo = XXH_readLE64(input); - xxh_u64 input_hi = XXH_readLE64(input + len - 8); - XXH128_hash_t m128 = XXH_mult64to128(input_lo ^ input_hi ^ bitflipl, XXH_PRIME64_1); - /* - * Put len in the middle of m128 to ensure that the length gets mixed to - * both the low and high bits in the 128x64 multiply below. - */ - m128.low64 += (xxh_u64)(len - 1) << 54; - input_hi ^= bitfliph; - /* - * Add the high 32 bits of input_hi to the high 32 bits of m128, then - * add the long product of the low 32 bits of input_hi and XXH_PRIME32_2 to - * the high 64 bits of m128. - * - * The best approach to this operation is different on 32-bit and 64-bit. - */ - if (sizeof(void *) < sizeof(xxh_u64)) { /* 32-bit */ - /* - * 32-bit optimized version, which is more readable. - * - * On 32-bit, it removes an ADC and delays a dependency between the two - * halves of m128.high64, but it generates an extra mask on 64-bit. - */ - m128.high64 += (input_hi & 0xFFFFFFFF00000000ULL) + XXH_mult32to64((xxh_u32)input_hi, XXH_PRIME32_2); - } else { - /* - * 64-bit optimized (albeit more confusing) version. - * - * Uses some properties of addition and multiplication to remove the mask: - * - * Let: - * a = input_hi.lo = (input_hi & 0x00000000FFFFFFFF) - * b = input_hi.hi = (input_hi & 0xFFFFFFFF00000000) - * c = XXH_PRIME32_2 - * - * a + (b * c) - * Inverse Property: x + y - x == y - * a + (b * (1 + c - 1)) - * Distributive Property: x * (y + z) == (x * y) + (x * z) - * a + (b * 1) + (b * (c - 1)) - * Identity Property: x * 1 == x - * a + b + (b * (c - 1)) - * - * Substitute a, b, and c: - * input_hi.hi + input_hi.lo + ((xxh_u64)input_hi.lo * (XXH_PRIME32_2 - 1)) - * - * Since input_hi.hi + input_hi.lo == input_hi, we get this: - * input_hi + ((xxh_u64)input_hi.lo * (XXH_PRIME32_2 - 1)) - */ - m128.high64 += input_hi + XXH_mult32to64((xxh_u32)input_hi, XXH_PRIME32_2 - 1); - } - /* m128 ^= XXH_swap64(m128 >> 64); */ - m128.low64 ^= XXH_swap64(m128.high64); - - { /* 128x64 multiply: h128 = m128 * XXH_PRIME64_2; */ - XXH128_hash_t h128 = XXH_mult64to128(m128.low64, XXH_PRIME64_2); - h128.high64 += m128.high64 * XXH_PRIME64_2; - - h128.low64 = XXH3_avalanche(h128.low64); - h128.high64 = XXH3_avalanche(h128.high64); - return h128; - } } -} - -/* - * Assumption: `secret` size is >= XXH3_SECRET_SIZE_MIN - */ -XXH_FORCE_INLINE XXH128_hash_t -XXH3_len_0to16_128b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) -{ - XXH_ASSERT(len <= 16); - { if (len > 8) return XXH3_len_9to16_128b(input, len, secret, seed); - if (len >= 4) return XXH3_len_4to8_128b(input, len, secret, seed); - if (len) return XXH3_len_1to3_128b(input, len, secret, seed); - { XXH128_hash_t h128; - xxh_u64 const bitflipl = XXH_readLE64(secret+64) ^ XXH_readLE64(secret+72); - xxh_u64 const bitfliph = XXH_readLE64(secret+80) ^ XXH_readLE64(secret+88); - h128.low64 = XXH64_avalanche(seed ^ bitflipl); - h128.high64 = XXH64_avalanche( seed ^ bitfliph); - return h128; - } } -} - -/* - * A bit slower than XXH3_mix16B, but handles multiply by zero better. - */ -XXH_FORCE_INLINE XXH128_hash_t -XXH128_mix32B(XXH128_hash_t acc, const xxh_u8* input_1, const xxh_u8* input_2, - const xxh_u8* secret, XXH64_hash_t seed) -{ - acc.low64 += XXH3_mix16B (input_1, secret+0, seed); - acc.low64 ^= XXH_readLE64(input_2) + XXH_readLE64(input_2 + 8); - acc.high64 += XXH3_mix16B (input_2, secret+16, seed); - acc.high64 ^= XXH_readLE64(input_1) + XXH_readLE64(input_1 + 8); - return acc; -} - - -XXH_FORCE_INLINE XXH128_hash_t -XXH3_len_17to128_128b(const xxh_u8* XXH_RESTRICT input, size_t len, - const xxh_u8* XXH_RESTRICT secret, size_t secretSize, - XXH64_hash_t seed) -{ - XXH_ASSERT(secretSize >= XXH3_SECRET_SIZE_MIN); (void)secretSize; - XXH_ASSERT(16 < len && len <= 128); - - { XXH128_hash_t acc; - acc.low64 = len * XXH_PRIME64_1; - acc.high64 = 0; - if (len > 32) { - if (len > 64) { - if (len > 96) { - acc = XXH128_mix32B(acc, input+48, input+len-64, secret+96, seed); - } - acc = XXH128_mix32B(acc, input+32, input+len-48, secret+64, seed); - } - acc = XXH128_mix32B(acc, input+16, input+len-32, secret+32, seed); - } - acc = XXH128_mix32B(acc, input, input+len-16, secret, seed); - { XXH128_hash_t h128; - h128.low64 = acc.low64 + acc.high64; - h128.high64 = (acc.low64 * XXH_PRIME64_1) - + (acc.high64 * XXH_PRIME64_4) - + ((len - seed) * XXH_PRIME64_2); - h128.low64 = XXH3_avalanche(h128.low64); - h128.high64 = (XXH64_hash_t)0 - XXH3_avalanche(h128.high64); - return h128; - } - } -} - -XXH_NO_INLINE XXH128_hash_t -XXH3_len_129to240_128b(const xxh_u8* XXH_RESTRICT input, size_t len, - const xxh_u8* XXH_RESTRICT secret, size_t secretSize, - XXH64_hash_t seed) -{ - XXH_ASSERT(secretSize >= XXH3_SECRET_SIZE_MIN); (void)secretSize; - XXH_ASSERT(128 < len && len <= XXH3_MIDSIZE_MAX); - - { XXH128_hash_t acc; - int const nbRounds = (int)len / 32; - int i; - acc.low64 = len * XXH_PRIME64_1; - acc.high64 = 0; - for (i=0; i<4; i++) { - acc = XXH128_mix32B(acc, - input + (32 * i), - input + (32 * i) + 16, - secret + (32 * i), - seed); - } - acc.low64 = XXH3_avalanche(acc.low64); - acc.high64 = XXH3_avalanche(acc.high64); - XXH_ASSERT(nbRounds >= 4); - for (i=4 ; i < nbRounds; i++) { - acc = XXH128_mix32B(acc, - input + (32 * i), - input + (32 * i) + 16, - secret + XXH3_MIDSIZE_STARTOFFSET + (32 * (i - 4)), - seed); - } - /* last bytes */ - acc = XXH128_mix32B(acc, - input + len - 16, - input + len - 32, - secret + XXH3_SECRET_SIZE_MIN - XXH3_MIDSIZE_LASTOFFSET - 16, - 0ULL - seed); - - { XXH128_hash_t h128; - h128.low64 = acc.low64 + acc.high64; - h128.high64 = (acc.low64 * XXH_PRIME64_1) - + (acc.high64 * XXH_PRIME64_4) - + ((len - seed) * XXH_PRIME64_2); - h128.low64 = XXH3_avalanche(h128.low64); - h128.high64 = (XXH64_hash_t)0 - XXH3_avalanche(h128.high64); - return h128; - } - } -} - -XXH_FORCE_INLINE XXH128_hash_t -XXH3_hashLong_128b_internal(const void* XXH_RESTRICT input, size_t len, - const xxh_u8* XXH_RESTRICT secret, size_t secretSize, - XXH3_f_accumulate_512 f_acc512, - XXH3_f_scrambleAcc f_scramble) -{ - XXH_ALIGN(XXH_ACC_ALIGN) xxh_u64 acc[XXH_ACC_NB] = XXH3_INIT_ACC; - - XXH3_hashLong_internal_loop(acc, (const xxh_u8*)input, len, secret, secretSize, f_acc512, f_scramble); - - /* converge into final hash */ - XXH_STATIC_ASSERT(sizeof(acc) == 64); - XXH_ASSERT(secretSize >= sizeof(acc) + XXH_SECRET_MERGEACCS_START); - { XXH128_hash_t h128; - h128.low64 = XXH3_mergeAccs(acc, - secret + XXH_SECRET_MERGEACCS_START, - (xxh_u64)len * XXH_PRIME64_1); - h128.high64 = XXH3_mergeAccs(acc, - secret + secretSize - - sizeof(acc) - XXH_SECRET_MERGEACCS_START, - ~((xxh_u64)len * XXH_PRIME64_2)); - return h128; - } -} - -/* - * It's important for performance that XXH3_hashLong is not inlined. - */ -XXH_NO_INLINE XXH128_hash_t -XXH3_hashLong_128b_default(const void* XXH_RESTRICT input, size_t len, - XXH64_hash_t seed64, - const void* XXH_RESTRICT secret, size_t secretLen) -{ - (void)seed64; (void)secret; (void)secretLen; - return XXH3_hashLong_128b_internal(input, len, XXH3_kSecret, sizeof(XXH3_kSecret), - XXH3_accumulate_512, XXH3_scrambleAcc); -} - -/* - * It's important for performance that XXH3_hashLong is not inlined. - */ -XXH_NO_INLINE XXH128_hash_t -XXH3_hashLong_128b_withSecret(const void* XXH_RESTRICT input, size_t len, - XXH64_hash_t seed64, - const void* XXH_RESTRICT secret, size_t secretLen) -{ - (void)seed64; - return XXH3_hashLong_128b_internal(input, len, (const xxh_u8*)secret, secretLen, - XXH3_accumulate_512, XXH3_scrambleAcc); -} - -XXH_FORCE_INLINE XXH128_hash_t -XXH3_hashLong_128b_withSeed_internal(const void* XXH_RESTRICT input, size_t len, - XXH64_hash_t seed64, - XXH3_f_accumulate_512 f_acc512, - XXH3_f_scrambleAcc f_scramble, - XXH3_f_initCustomSecret f_initSec) -{ - if (seed64 == 0) - return XXH3_hashLong_128b_internal(input, len, - XXH3_kSecret, sizeof(XXH3_kSecret), - f_acc512, f_scramble); - { XXH_ALIGN(XXH_SEC_ALIGN) xxh_u8 secret[XXH_SECRET_DEFAULT_SIZE]; - f_initSec(secret, seed64); - return XXH3_hashLong_128b_internal(input, len, (const xxh_u8*)secret, sizeof(secret), - f_acc512, f_scramble); - } -} - -/* - * It's important for performance that XXH3_hashLong is not inlined. - */ -XXH_NO_INLINE XXH128_hash_t -XXH3_hashLong_128b_withSeed(const void* input, size_t len, - XXH64_hash_t seed64, const void* XXH_RESTRICT secret, size_t secretLen) -{ - (void)secret; (void)secretLen; - return XXH3_hashLong_128b_withSeed_internal(input, len, seed64, - XXH3_accumulate_512, XXH3_scrambleAcc, XXH3_initCustomSecret); -} - -typedef XXH128_hash_t (*XXH3_hashLong128_f)(const void* XXH_RESTRICT, size_t, - XXH64_hash_t, const void* XXH_RESTRICT, size_t); - -XXH_FORCE_INLINE XXH128_hash_t -XXH3_128bits_internal(const void* input, size_t len, - XXH64_hash_t seed64, const void* XXH_RESTRICT secret, size_t secretLen, - XXH3_hashLong128_f f_hl128) -{ - XXH_ASSERT(secretLen >= XXH3_SECRET_SIZE_MIN); - /* - * If an action is to be taken if `secret` conditions are not respected, - * it should be done here. - * For now, it's a contract pre-condition. - * Adding a check and a branch here would cost performance at every hash. - */ - if (len <= 16) - return XXH3_len_0to16_128b((const xxh_u8*)input, len, (const xxh_u8*)secret, seed64); - if (len <= 128) - return XXH3_len_17to128_128b((const xxh_u8*)input, len, (const xxh_u8*)secret, secretLen, seed64); - if (len <= XXH3_MIDSIZE_MAX) - return XXH3_len_129to240_128b((const xxh_u8*)input, len, (const xxh_u8*)secret, secretLen, seed64); - return f_hl128(input, len, seed64, secret, secretLen); -} - - -/* === Public XXH128 API === */ - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH128_hash_t XXH3_128bits(const void* input, size_t len) -{ - return XXH3_128bits_internal(input, len, 0, - XXH3_kSecret, sizeof(XXH3_kSecret), - XXH3_hashLong_128b_default); -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH128_hash_t -XXH3_128bits_withSecret(const void* input, size_t len, const void* secret, size_t secretSize) -{ - return XXH3_128bits_internal(input, len, 0, - (const xxh_u8*)secret, secretSize, - XXH3_hashLong_128b_withSecret); -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH128_hash_t -XXH3_128bits_withSeed(const void* input, size_t len, XXH64_hash_t seed) -{ - return XXH3_128bits_internal(input, len, seed, - XXH3_kSecret, sizeof(XXH3_kSecret), - XXH3_hashLong_128b_withSeed); -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH128_hash_t -XXH128(const void* input, size_t len, XXH64_hash_t seed) -{ - return XXH3_128bits_withSeed(input, len, seed); -} - - -/* === XXH3 128-bit streaming === */ - -/* - * All the functions are actually the same as for 64-bit streaming variant. - * The only difference is the finalization routine. - */ - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH_errorcode -XXH3_128bits_reset(XXH3_state_t* statePtr) -{ - if (statePtr == NULL) return XXH_ERROR; - XXH3_reset_internal(statePtr, 0, XXH3_kSecret, XXH_SECRET_DEFAULT_SIZE); - return XXH_OK; -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH_errorcode -XXH3_128bits_reset_withSecret(XXH3_state_t* statePtr, const void* secret, size_t secretSize) -{ - if (statePtr == NULL) return XXH_ERROR; - XXH3_reset_internal(statePtr, 0, secret, secretSize); - if (secret == NULL) return XXH_ERROR; - if (secretSize < XXH3_SECRET_SIZE_MIN) return XXH_ERROR; - return XXH_OK; -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH_errorcode -XXH3_128bits_reset_withSeed(XXH3_state_t* statePtr, XXH64_hash_t seed) -{ - if (statePtr == NULL) return XXH_ERROR; - if (seed==0) return XXH3_128bits_reset(statePtr); - if (seed != statePtr->seed) XXH3_initCustomSecret(statePtr->customSecret, seed); - XXH3_reset_internal(statePtr, seed, NULL, XXH_SECRET_DEFAULT_SIZE); - return XXH_OK; -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH_errorcode -XXH3_128bits_update(XXH3_state_t* state, const void* input, size_t len) -{ - return XXH3_update(state, (const xxh_u8*)input, len, - XXH3_accumulate_512, XXH3_scrambleAcc); -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH128_hash_t XXH3_128bits_digest (const XXH3_state_t* state) -{ - const unsigned char* const secret = (state->extSecret == NULL) ? state->customSecret : state->extSecret; - if (state->totalLen > XXH3_MIDSIZE_MAX) { - XXH_ALIGN(XXH_ACC_ALIGN) XXH64_hash_t acc[XXH_ACC_NB]; - XXH3_digest_long(acc, state, secret); - XXH_ASSERT(state->secretLimit + XXH_STRIPE_LEN >= sizeof(acc) + XXH_SECRET_MERGEACCS_START); - { XXH128_hash_t h128; - h128.low64 = XXH3_mergeAccs(acc, - secret + XXH_SECRET_MERGEACCS_START, - (xxh_u64)state->totalLen * XXH_PRIME64_1); - h128.high64 = XXH3_mergeAccs(acc, - secret + state->secretLimit + XXH_STRIPE_LEN - - sizeof(acc) - XXH_SECRET_MERGEACCS_START, - ~((xxh_u64)state->totalLen * XXH_PRIME64_2)); - return h128; - } - } - /* len <= XXH3_MIDSIZE_MAX : short code */ - if (state->seed) - return XXH3_128bits_withSeed(state->buffer, (size_t)state->totalLen, state->seed); - return XXH3_128bits_withSecret(state->buffer, (size_t)(state->totalLen), - secret, state->secretLimit + XXH_STRIPE_LEN); -} - -/* 128-bit utility functions */ - -#include /* memcmp, memcpy */ - -/* return : 1 is equal, 0 if different */ -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API int XXH128_isEqual(XXH128_hash_t h1, XXH128_hash_t h2) -{ - /* note : XXH128_hash_t is compact, it has no padding byte */ - return !(memcmp(&h1, &h2, sizeof(h1))); -} - -/* This prototype is compatible with stdlib's qsort(). - * return : >0 if *h128_1 > *h128_2 - * <0 if *h128_1 < *h128_2 - * =0 if *h128_1 == *h128_2 */ -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API int XXH128_cmp(const void* h128_1, const void* h128_2) -{ - XXH128_hash_t const h1 = *(const XXH128_hash_t*)h128_1; - XXH128_hash_t const h2 = *(const XXH128_hash_t*)h128_2; - int const hcmp = (h1.high64 > h2.high64) - (h2.high64 > h1.high64); - /* note : bets that, in most cases, hash values are different */ - if (hcmp) return hcmp; - return (h1.low64 > h2.low64) - (h2.low64 > h1.low64); -} - - -/*====== Canonical representation ======*/ -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API void -XXH128_canonicalFromHash(XXH128_canonical_t* dst, XXH128_hash_t hash) -{ - XXH_STATIC_ASSERT(sizeof(XXH128_canonical_t) == sizeof(XXH128_hash_t)); - if (XXH_CPU_LITTLE_ENDIAN) { - hash.high64 = XXH_swap64(hash.high64); - hash.low64 = XXH_swap64(hash.low64); - } - memcpy(dst, &hash.high64, sizeof(hash.high64)); - memcpy((char*)dst + sizeof(hash.high64), &hash.low64, sizeof(hash.low64)); -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH128_hash_t -XXH128_hashFromCanonical(const XXH128_canonical_t* src) -{ - XXH128_hash_t h; - h.high64 = XXH_readBE64(src); - h.low64 = XXH_readBE64(src->digest + 8); - return h; -} - -/* Pop our optimization override from above */ -#if XXH_VECTOR == XXH_AVX2 /* AVX2 */ \ - && defined(__GNUC__) && !defined(__clang__) /* GCC, not Clang */ \ - && defined(__OPTIMIZE__) && !defined(__OPTIMIZE_SIZE__) /* respect -O0 and -Os */ -# pragma GCC pop_options -#endif - -#endif /* XXH_NO_LONG_LONG */ - -/*! - * @} - */ -#endif /* XXH_IMPLEMENTATION */ - - -#if defined (__cplusplus) -} -#endif \ No newline at end of file diff --git a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/xxhash/xxhash.h b/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/xxhash/xxhash.h deleted file mode 100644 index 4bdd13aae..000000000 --- a/vendor/github.com/pganalyze/pg_query_go/v4/parser/include/xxhash/xxhash.h +++ /dev/null @@ -1,5445 +0,0 @@ -/* - * xxHash - Extremely Fast Hash algorithm - * Header File - * Copyright (C) 2012-2020 Yann Collet - * - * BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * You can contact the author at: - * - xxHash homepage: https://www.xxhash.com - * - xxHash source repository: https://github.com/Cyan4973/xxHash - */ -/*! - * @mainpage xxHash - * - * @file xxhash.h - * xxHash prototypes and implementation - */ -/* TODO: update */ -/* Notice extracted from xxHash homepage: - -xxHash is an extremely fast hash algorithm, running at RAM speed limits. -It also successfully passes all tests from the SMHasher suite. - -Comparison (single thread, Windows Seven 32 bits, using SMHasher on a Core 2 Duo @3GHz) - -Name Speed Q.Score Author -xxHash 5.4 GB/s 10 -CrapWow 3.2 GB/s 2 Andrew -MurmurHash 3a 2.7 GB/s 10 Austin Appleby -SpookyHash 2.0 GB/s 10 Bob Jenkins -SBox 1.4 GB/s 9 Bret Mulvey -Lookup3 1.2 GB/s 9 Bob Jenkins -SuperFastHash 1.2 GB/s 1 Paul Hsieh -CityHash64 1.05 GB/s 10 Pike & Alakuijala -FNV 0.55 GB/s 5 Fowler, Noll, Vo -CRC32 0.43 GB/s 9 -MD5-32 0.33 GB/s 10 Ronald L. Rivest -SHA1-32 0.28 GB/s 10 - -Q.Score is a measure of quality of the hash function. -It depends on successfully passing SMHasher test set. -10 is a perfect score. - -Note: SMHasher's CRC32 implementation is not the fastest one. -Other speed-oriented implementations can be faster, -especially in combination with PCLMUL instruction: -https://fastcompression.blogspot.com/2019/03/presenting-xxh3.html?showComment=1552696407071#c3490092340461170735 - -A 64-bit version, named XXH64, is available since r35. -It offers much better speed, but for 64-bit applications only. -Name Speed on 64 bits Speed on 32 bits -XXH64 13.8 GB/s 1.9 GB/s -XXH32 6.8 GB/s 6.0 GB/s -*/ - -#if defined (__cplusplus) -extern "C" { -#endif - -/* **************************** - * INLINE mode - ******************************/ -/*! - * XXH_INLINE_ALL (and XXH_PRIVATE_API) - * Use these build macros to inline xxhash into the target unit. - * Inlining improves performance on small inputs, especially when the length is - * expressed as a compile-time constant: - * - * https://fastcompression.blogspot.com/2018/03/xxhash-for-small-keys-impressive-power.html - * - * It also keeps xxHash symbols private to the unit, so they are not exported. - * - * Usage: - * #define XXH_INLINE_ALL - * #include "xxhash.h" - * - * Do not compile and link xxhash.o as a separate object, as it is not useful. - */ -#if (defined(XXH_INLINE_ALL) || defined(XXH_PRIVATE_API)) \ - && !defined(XXH_INLINE_ALL_31684351384) - /* this section should be traversed only once */ -# define XXH_INLINE_ALL_31684351384 - /* give access to the advanced API, required to compile implementations */ -# undef XXH_STATIC_LINKING_ONLY /* avoid macro redef */ -# define XXH_STATIC_LINKING_ONLY - /* make all functions private */ -# undef XXH_PUBLIC_API -# if defined(__GNUC__) -# define XXH_PUBLIC_API static __inline __attribute__((unused)) -# elif defined (__cplusplus) || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) -# define XXH_PUBLIC_API static inline -# elif defined(_MSC_VER) -# define XXH_PUBLIC_API static __inline -# else - /* note: this version may generate warnings for unused static functions */ -# define XXH_PUBLIC_API static -# endif - - /* - * This part deals with the special case where a unit wants to inline xxHash, - * but "xxhash.h" has previously been included without XXH_INLINE_ALL, such - * as part of some previously included *.h header file. - * Without further action, the new include would just be ignored, - * and functions would effectively _not_ be inlined (silent failure). - * The following macros solve this situation by prefixing all inlined names, - * avoiding naming collision with previous inclusions. - */ -# ifdef XXH_NAMESPACE -# error "XXH_INLINE_ALL with XXH_NAMESPACE is not supported" - /* - * Note: Alternative: #undef all symbols (it's a pretty large list). - * Without #error: it compiles, but functions are actually not inlined. - */ -# endif -# define XXH_NAMESPACE XXH_INLINE_ - /* - * Some identifiers (enums, type names) are not symbols, but they must - * still be renamed to avoid redeclaration. - * Alternative solution: do not redeclare them. - * However, this requires some #ifdefs, and is a more dispersed action. - * Meanwhile, renaming can be achieved in a single block - */ -# define XXH_IPREF(Id) XXH_INLINE_ ## Id -# define XXH_OK XXH_IPREF(XXH_OK) -# define XXH_ERROR XXH_IPREF(XXH_ERROR) -# define XXH_errorcode XXH_IPREF(XXH_errorcode) -# define XXH32_canonical_t XXH_IPREF(XXH32_canonical_t) -# define XXH64_canonical_t XXH_IPREF(XXH64_canonical_t) -# define XXH128_canonical_t XXH_IPREF(XXH128_canonical_t) -# define XXH32_state_s XXH_IPREF(XXH32_state_s) -# define XXH32_state_t XXH_IPREF(XXH32_state_t) -# define XXH64_state_s XXH_IPREF(XXH64_state_s) -# define XXH64_state_t XXH_IPREF(XXH64_state_t) -# define XXH3_state_s XXH_IPREF(XXH3_state_s) -# define XXH3_state_t XXH_IPREF(XXH3_state_t) -# define XXH128_hash_t XXH_IPREF(XXH128_hash_t) - /* Ensure the header is parsed again, even if it was previously included */ -# undef XXHASH_H_5627135585666179 -# undef XXHASH_H_STATIC_13879238742 -#endif /* XXH_INLINE_ALL || XXH_PRIVATE_API */ - - - -/* **************************************************************** - * Stable API - *****************************************************************/ -#ifndef XXHASH_H_5627135585666179 -#define XXHASH_H_5627135585666179 1 - - -/*! - * @defgroup public Public API - * Contains details on the public xxHash functions. - * @{ - */ -/* specific declaration modes for Windows */ -#if !defined(XXH_INLINE_ALL) && !defined(XXH_PRIVATE_API) -# if defined(WIN32) && defined(_MSC_VER) && (defined(XXH_IMPORT) || defined(XXH_EXPORT)) -# ifdef XXH_EXPORT -# define XXH_PUBLIC_API __declspec(dllexport) -# elif XXH_IMPORT -# define XXH_PUBLIC_API __declspec(dllimport) -# endif -# else -# define XXH_PUBLIC_API /* do nothing */ -# endif -#endif - -#ifdef XXH_DOXYGEN -/*! - * @brief Emulate a namespace by transparently prefixing all symbols. - * - * If you want to include _and expose_ xxHash functions from within your own - * library, but also want to avoid symbol collisions with other libraries which - * may also include xxHash, you can use XXH_NAMESPACE to automatically prefix - * any public symbol from xxhash library with the value of XXH_NAMESPACE - * (therefore, avoid empty or numeric values). - * - * Note that no change is required within the calling program as long as it - * includes `xxhash.h`: Regular symbol names will be automatically translated - * by this header. - */ -# define XXH_NAMESPACE /* YOUR NAME HERE */ -# undef XXH_NAMESPACE -#endif - -#ifdef XXH_NAMESPACE -# define XXH_CAT(A,B) A##B -# define XXH_NAME2(A,B) XXH_CAT(A,B) -# define XXH_versionNumber XXH_NAME2(XXH_NAMESPACE, XXH_versionNumber) -/* XXH32 */ -# define XXH32 XXH_NAME2(XXH_NAMESPACE, XXH32) -# define XXH32_createState XXH_NAME2(XXH_NAMESPACE, XXH32_createState) -# define XXH32_freeState XXH_NAME2(XXH_NAMESPACE, XXH32_freeState) -# define XXH32_reset XXH_NAME2(XXH_NAMESPACE, XXH32_reset) -# define XXH32_update XXH_NAME2(XXH_NAMESPACE, XXH32_update) -# define XXH32_digest XXH_NAME2(XXH_NAMESPACE, XXH32_digest) -# define XXH32_copyState XXH_NAME2(XXH_NAMESPACE, XXH32_copyState) -# define XXH32_canonicalFromHash XXH_NAME2(XXH_NAMESPACE, XXH32_canonicalFromHash) -# define XXH32_hashFromCanonical XXH_NAME2(XXH_NAMESPACE, XXH32_hashFromCanonical) -/* XXH64 */ -# define XXH64 XXH_NAME2(XXH_NAMESPACE, XXH64) -# define XXH64_createState XXH_NAME2(XXH_NAMESPACE, XXH64_createState) -# define XXH64_freeState XXH_NAME2(XXH_NAMESPACE, XXH64_freeState) -# define XXH64_reset XXH_NAME2(XXH_NAMESPACE, XXH64_reset) -# define XXH64_update XXH_NAME2(XXH_NAMESPACE, XXH64_update) -# define XXH64_digest XXH_NAME2(XXH_NAMESPACE, XXH64_digest) -# define XXH64_copyState XXH_NAME2(XXH_NAMESPACE, XXH64_copyState) -# define XXH64_canonicalFromHash XXH_NAME2(XXH_NAMESPACE, XXH64_canonicalFromHash) -# define XXH64_hashFromCanonical XXH_NAME2(XXH_NAMESPACE, XXH64_hashFromCanonical) -/* XXH3_64bits */ -# define XXH3_64bits XXH_NAME2(XXH_NAMESPACE, XXH3_64bits) -# define XXH3_64bits_withSecret XXH_NAME2(XXH_NAMESPACE, XXH3_64bits_withSecret) -# define XXH3_64bits_withSeed XXH_NAME2(XXH_NAMESPACE, XXH3_64bits_withSeed) -# define XXH3_createState XXH_NAME2(XXH_NAMESPACE, XXH3_createState) -# define XXH3_freeState XXH_NAME2(XXH_NAMESPACE, XXH3_freeState) -# define XXH3_copyState XXH_NAME2(XXH_NAMESPACE, XXH3_copyState) -# define XXH3_64bits_reset XXH_NAME2(XXH_NAMESPACE, XXH3_64bits_reset) -# define XXH3_64bits_reset_withSeed XXH_NAME2(XXH_NAMESPACE, XXH3_64bits_reset_withSeed) -# define XXH3_64bits_reset_withSecret XXH_NAME2(XXH_NAMESPACE, XXH3_64bits_reset_withSecret) -# define XXH3_64bits_update XXH_NAME2(XXH_NAMESPACE, XXH3_64bits_update) -# define XXH3_64bits_digest XXH_NAME2(XXH_NAMESPACE, XXH3_64bits_digest) -# define XXH3_generateSecret XXH_NAME2(XXH_NAMESPACE, XXH3_generateSecret) -/* XXH3_128bits */ -# define XXH128 XXH_NAME2(XXH_NAMESPACE, XXH128) -# define XXH3_128bits XXH_NAME2(XXH_NAMESPACE, XXH3_128bits) -# define XXH3_128bits_withSeed XXH_NAME2(XXH_NAMESPACE, XXH3_128bits_withSeed) -# define XXH3_128bits_withSecret XXH_NAME2(XXH_NAMESPACE, XXH3_128bits_withSecret) -# define XXH3_128bits_reset XXH_NAME2(XXH_NAMESPACE, XXH3_128bits_reset) -# define XXH3_128bits_reset_withSeed XXH_NAME2(XXH_NAMESPACE, XXH3_128bits_reset_withSeed) -# define XXH3_128bits_reset_withSecret XXH_NAME2(XXH_NAMESPACE, XXH3_128bits_reset_withSecret) -# define XXH3_128bits_update XXH_NAME2(XXH_NAMESPACE, XXH3_128bits_update) -# define XXH3_128bits_digest XXH_NAME2(XXH_NAMESPACE, XXH3_128bits_digest) -# define XXH128_isEqual XXH_NAME2(XXH_NAMESPACE, XXH128_isEqual) -# define XXH128_cmp XXH_NAME2(XXH_NAMESPACE, XXH128_cmp) -# define XXH128_canonicalFromHash XXH_NAME2(XXH_NAMESPACE, XXH128_canonicalFromHash) -# define XXH128_hashFromCanonical XXH_NAME2(XXH_NAMESPACE, XXH128_hashFromCanonical) -#endif - - -/* ************************************* -* Version -***************************************/ -#define XXH_VERSION_MAJOR 0 -#define XXH_VERSION_MINOR 8 -#define XXH_VERSION_RELEASE 0 -#define XXH_VERSION_NUMBER (XXH_VERSION_MAJOR *100*100 + XXH_VERSION_MINOR *100 + XXH_VERSION_RELEASE) - -/*! - * @brief Obtains the xxHash version. - * - * This is only useful when xxHash is compiled as a shared library, as it is - * independent of the version defined in the header. - * - * @return `XXH_VERSION_NUMBER` as of when the function was compiled. - */ -XXH_PUBLIC_API unsigned XXH_versionNumber (void); - - -/* **************************** -* Definitions -******************************/ -#include /* size_t */ -typedef enum { XXH_OK=0, XXH_ERROR } XXH_errorcode; - - -/*-********************************************************************** -* 32-bit hash -************************************************************************/ -#if defined(XXH_DOXYGEN) /* Don't show include */ -/*! - * @brief An unsigned 32-bit integer. - * - * Not necessarily defined to `uint32_t` but functionally equivalent. - */ -typedef uint32_t XXH32_hash_t; -#elif !defined (__VMS) \ - && (defined (__cplusplus) \ - || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) ) -# include - typedef uint32_t XXH32_hash_t; -#else -# include -# if UINT_MAX == 0xFFFFFFFFUL - typedef unsigned int XXH32_hash_t; -# else -# if ULONG_MAX == 0xFFFFFFFFUL - typedef unsigned long XXH32_hash_t; -# else -# error "unsupported platform: need a 32-bit type" -# endif -# endif -#endif - -/*! - * @} - * - * @defgroup xxh32_family XXH32 family - * @ingroup public - * Contains functions used in the classic 32-bit xxHash algorithm. - * - * @note - * XXH32 is considered rather weak by today's standards. - * The @ref xxh3_family provides competitive speed for both 32-bit and 64-bit - * systems, and offers true 64/128 bit hash results. It provides a superior - * level of dispersion, and greatly reduces the risks of collisions. - * - * @see @ref xxh64_family, @ref xxh3_family : Other xxHash families - * @see @ref xxh32_impl for implementation details - * @{ - */ - -/*! - * @brief Calculates the 32-bit hash of @p input using xxHash32. - * - * Speed on Core 2 Duo @ 3 GHz (single thread, SMHasher benchmark): 5.4 GB/s - * - * @param input The block of data to be hashed, at least @p length bytes in size. - * @param length The length of @p input, in bytes. - * @param seed The 32-bit seed to alter the hash's output predictably. - * - * @pre - * The memory between @p input and @p input + @p length must be valid, - * readable, contiguous memory. However, if @p length is `0`, @p input may be - * `NULL`. In C++, this also must be *TriviallyCopyable*. - * - * @return The calculated 32-bit hash value. - * - * @see - * XXH64(), XXH3_64bits_withSeed(), XXH3_128bits_withSeed(), XXH128(): - * Direct equivalents for the other variants of xxHash. - * @see - * XXH32_createState(), XXH32_update(), XXH32_digest(): Streaming version. - */ -XXH_PUBLIC_API XXH32_hash_t XXH32 (const void* input, size_t length, XXH32_hash_t seed); - -/*! - * Streaming functions generate the xxHash value from an incremental input. - * This method is slower than single-call functions, due to state management. - * For small inputs, prefer `XXH32()` and `XXH64()`, which are better optimized. - * - * An XXH state must first be allocated using `XXH*_createState()`. - * - * Start a new hash by initializing the state with a seed using `XXH*_reset()`. - * - * Then, feed the hash state by calling `XXH*_update()` as many times as necessary. - * - * The function returns an error code, with 0 meaning OK, and any other value - * meaning there is an error. - * - * Finally, a hash value can be produced anytime, by using `XXH*_digest()`. - * This function returns the nn-bits hash as an int or long long. - * - * It's still possible to continue inserting input into the hash state after a - * digest, and generate new hash values later on by invoking `XXH*_digest()`. - * - * When done, release the state using `XXH*_freeState()`. - * - * Example code for incrementally hashing a file: - * @code{.c} - * #include - * #include - * #define BUFFER_SIZE 256 - * - * // Note: XXH64 and XXH3 use the same interface. - * XXH32_hash_t - * hashFile(FILE* stream) - * { - * XXH32_state_t* state; - * unsigned char buf[BUFFER_SIZE]; - * size_t amt; - * XXH32_hash_t hash; - * - * state = XXH32_createState(); // Create a state - * assert(state != NULL); // Error check here - * XXH32_reset(state, 0xbaad5eed); // Reset state with our seed - * while ((amt = fread(buf, 1, sizeof(buf), stream)) != 0) { - * XXH32_update(state, buf, amt); // Hash the file in chunks - * } - * hash = XXH32_digest(state); // Finalize the hash - * XXH32_freeState(state); // Clean up - * return hash; - * } - * @endcode - */ - -/*! - * @typedef struct XXH32_state_s XXH32_state_t - * @brief The opaque state struct for the XXH32 streaming API. - * - * @see XXH32_state_s for details. - */ -typedef struct XXH32_state_s XXH32_state_t; - -/*! - * @brief Allocates an @ref XXH32_state_t. - * - * Must be freed with XXH32_freeState(). - * @return An allocated XXH32_state_t on success, `NULL` on failure. - */ -XXH_PUBLIC_API XXH32_state_t* XXH32_createState(void); -/*! - * @brief Frees an @ref XXH32_state_t. - * - * Must be allocated with XXH32_createState(). - * @param statePtr A pointer to an @ref XXH32_state_t allocated with @ref XXH32_createState(). - * @return XXH_OK. - */ -XXH_PUBLIC_API XXH_errorcode XXH32_freeState(XXH32_state_t* statePtr); -/*! - * @brief Copies one @ref XXH32_state_t to another. - * - * @param dst_state The state to copy to. - * @param src_state The state to copy from. - * @pre - * @p dst_state and @p src_state must not be `NULL` and must not overlap. - */ -XXH_PUBLIC_API void XXH32_copyState(XXH32_state_t* dst_state, const XXH32_state_t* src_state); - -/*! - * @brief Resets an @ref XXH32_state_t to begin a new hash. - * - * This function resets and seeds a state. Call it before @ref XXH32_update(). - * - * @param statePtr The state struct to reset. - * @param seed The 32-bit seed to alter the hash result predictably. - * - * @pre - * @p statePtr must not be `NULL`. - * - * @return @ref XXH_OK on success, @ref XXH_ERROR on failure. - */ -XXH_PUBLIC_API XXH_errorcode XXH32_reset (XXH32_state_t* statePtr, XXH32_hash_t seed); - -/*! - * @brief Consumes a block of @p input to an @ref XXH32_state_t. - * - * Call this to incrementally consume blocks of data. - * - * @param statePtr The state struct to update. - * @param input The block of data to be hashed, at least @p length bytes in size. - * @param length The length of @p input, in bytes. - * - * @pre - * @p statePtr must not be `NULL`. - * @pre - * The memory between @p input and @p input + @p length must be valid, - * readable, contiguous memory. However, if @p length is `0`, @p input may be - * `NULL`. In C++, this also must be *TriviallyCopyable*. - * - * @return @ref XXH_OK on success, @ref XXH_ERROR on failure. - */ -XXH_PUBLIC_API XXH_errorcode XXH32_update (XXH32_state_t* statePtr, const void* input, size_t length); - -/*! - * @brief Returns the calculated hash value from an @ref XXH32_state_t. - * - * @note - * Calling XXH32_digest() will not affect @p statePtr, so you can update, - * digest, and update again. - * - * @param statePtr The state struct to calculate the hash from. - * - * @pre - * @p statePtr must not be `NULL`. - * - * @return The calculated xxHash32 value from that state. - */ -XXH_PUBLIC_API XXH32_hash_t XXH32_digest (const XXH32_state_t* statePtr); - -/******* Canonical representation *******/ - -/* - * The default return values from XXH functions are unsigned 32 and 64 bit - * integers. - * This the simplest and fastest format for further post-processing. - * - * However, this leaves open the question of what is the order on the byte level, - * since little and big endian conventions will store the same number differently. - * - * The canonical representation settles this issue by mandating big-endian - * convention, the same convention as human-readable numbers (large digits first). - * - * When writing hash values to storage, sending them over a network, or printing - * them, it's highly recommended to use the canonical representation to ensure - * portability across a wider range of systems, present and future. - * - * The following functions allow transformation of hash values to and from - * canonical format. - */ - -/*! - * @brief Canonical (big endian) representation of @ref XXH32_hash_t. - */ -typedef struct { - unsigned char digest[4]; /*!< Hash bytes, big endian */ -} XXH32_canonical_t; - -/*! - * @brief Converts an @ref XXH32_hash_t to a big endian @ref XXH32_canonical_t. - * - * @param dst The @ref XXH32_canonical_t pointer to be stored to. - * @param hash The @ref XXH32_hash_t to be converted. - * - * @pre - * @p dst must not be `NULL`. - */ -XXH_PUBLIC_API void XXH32_canonicalFromHash(XXH32_canonical_t* dst, XXH32_hash_t hash); - -/*! - * @brief Converts an @ref XXH32_canonical_t to a native @ref XXH32_hash_t. - * - * @param src The @ref XXH32_canonical_t to convert. - * - * @pre - * @p src must not be `NULL`. - * - * @return The converted hash. - */ -XXH_PUBLIC_API XXH32_hash_t XXH32_hashFromCanonical(const XXH32_canonical_t* src); - - -/*! - * @} - * @ingroup public - * @{ - */ - -#ifndef XXH_NO_LONG_LONG -/*-********************************************************************** -* 64-bit hash -************************************************************************/ -#if defined(XXH_DOXYGEN) /* don't include */ -/*! - * @brief An unsigned 64-bit integer. - * - * Not necessarily defined to `uint64_t` but functionally equivalent. - */ -typedef uint64_t XXH64_hash_t; -#elif !defined (__VMS) \ - && (defined (__cplusplus) \ - || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) ) -# include - typedef uint64_t XXH64_hash_t; -#else -# include -# if defined(__LP64__) && ULONG_MAX == 0xFFFFFFFFFFFFFFFFULL - /* LP64 ABI says uint64_t is unsigned long */ - typedef unsigned long XXH64_hash_t; -# else - /* the following type must have a width of 64-bit */ - typedef unsigned long long XXH64_hash_t; -# endif -#endif - -/*! - * @} - * - * @defgroup xxh64_family XXH64 family - * @ingroup public - * @{ - * Contains functions used in the classic 64-bit xxHash algorithm. - * - * @note - * XXH3 provides competitive speed for both 32-bit and 64-bit systems, - * and offers true 64/128 bit hash results. It provides a superior level of - * dispersion, and greatly reduces the risks of collisions. - */ - - -/*! - * @brief Calculates the 64-bit hash of @p input using xxHash64. - * - * This function usually runs faster on 64-bit systems, but slower on 32-bit - * systems (see benchmark). - * - * @param input The block of data to be hashed, at least @p length bytes in size. - * @param length The length of @p input, in bytes. - * @param seed The 64-bit seed to alter the hash's output predictably. - * - * @pre - * The memory between @p input and @p input + @p length must be valid, - * readable, contiguous memory. However, if @p length is `0`, @p input may be - * `NULL`. In C++, this also must be *TriviallyCopyable*. - * - * @return The calculated 64-bit hash. - * - * @see - * XXH32(), XXH3_64bits_withSeed(), XXH3_128bits_withSeed(), XXH128(): - * Direct equivalents for the other variants of xxHash. - * @see - * XXH64_createState(), XXH64_update(), XXH64_digest(): Streaming version. - */ -XXH_PUBLIC_API XXH64_hash_t XXH64(const void* input, size_t length, XXH64_hash_t seed); - -/******* Streaming *******/ -/*! - * @brief The opaque state struct for the XXH64 streaming API. - * - * @see XXH64_state_s for details. - */ -typedef struct XXH64_state_s XXH64_state_t; /* incomplete type */ -XXH_PUBLIC_API XXH64_state_t* XXH64_createState(void); -XXH_PUBLIC_API XXH_errorcode XXH64_freeState(XXH64_state_t* statePtr); -XXH_PUBLIC_API void XXH64_copyState(XXH64_state_t* dst_state, const XXH64_state_t* src_state); - -XXH_PUBLIC_API XXH_errorcode XXH64_reset (XXH64_state_t* statePtr, XXH64_hash_t seed); -XXH_PUBLIC_API XXH_errorcode XXH64_update (XXH64_state_t* statePtr, const void* input, size_t length); -XXH_PUBLIC_API XXH64_hash_t XXH64_digest (const XXH64_state_t* statePtr); - -/******* Canonical representation *******/ -typedef struct { unsigned char digest[sizeof(XXH64_hash_t)]; } XXH64_canonical_t; -XXH_PUBLIC_API void XXH64_canonicalFromHash(XXH64_canonical_t* dst, XXH64_hash_t hash); -XXH_PUBLIC_API XXH64_hash_t XXH64_hashFromCanonical(const XXH64_canonical_t* src); - -/*! - * @} - * ************************************************************************ - * @defgroup xxh3_family XXH3 family - * @ingroup public - * @{ - * - * XXH3 is a more recent hash algorithm featuring: - * - Improved speed for both small and large inputs - * - True 64-bit and 128-bit outputs - * - SIMD acceleration - * - Improved 32-bit viability - * - * Speed analysis methodology is explained here: - * - * https://fastcompression.blogspot.com/2019/03/presenting-xxh3.html - * - * Compared to XXH64, expect XXH3 to run approximately - * ~2x faster on large inputs and >3x faster on small ones, - * exact differences vary depending on platform. - * - * XXH3's speed benefits greatly from SIMD and 64-bit arithmetic, - * but does not require it. - * Any 32-bit and 64-bit targets that can run XXH32 smoothly - * can run XXH3 at competitive speeds, even without vector support. - * Further details are explained in the implementation. - * - * Optimized implementations are provided for AVX512, AVX2, SSE2, NEON, POWER8, - * ZVector and scalar targets. This can be controlled via the XXH_VECTOR macro. - * - * XXH3 implementation is portable: - * it has a generic C90 formulation that can be compiled on any platform, - * all implementations generage exactly the same hash value on all platforms. - * Starting from v0.8.0, it's also labelled "stable", meaning that - * any future version will also generate the same hash value. - * - * XXH3 offers 2 variants, _64bits and _128bits. - * - * When only 64 bits are needed, prefer invoking the _64bits variant, as it - * reduces the amount of mixing, resulting in faster speed on small inputs. - * It's also generally simpler to manipulate a scalar return type than a struct. - * - * The API supports one-shot hashing, streaming mode, and custom secrets. - */ - -/*-********************************************************************** -* XXH3 64-bit variant -************************************************************************/ - -/* XXH3_64bits(): - * default 64-bit variant, using default secret and default seed of 0. - * It's the fastest variant. */ -XXH_PUBLIC_API XXH64_hash_t XXH3_64bits(const void* data, size_t len); - -/* - * XXH3_64bits_withSeed(): - * This variant generates a custom secret on the fly - * based on default secret altered using the `seed` value. - * While this operation is decently fast, note that it's not completely free. - * Note: seed==0 produces the same results as XXH3_64bits(). - */ -XXH_PUBLIC_API XXH64_hash_t XXH3_64bits_withSeed(const void* data, size_t len, XXH64_hash_t seed); - -/*! - * The bare minimum size for a custom secret. - * - * @see - * XXH3_64bits_withSecret(), XXH3_64bits_reset_withSecret(), - * XXH3_128bits_withSecret(), XXH3_128bits_reset_withSecret(). - */ -#define XXH3_SECRET_SIZE_MIN 136 - -/* - * XXH3_64bits_withSecret(): - * It's possible to provide any blob of bytes as a "secret" to generate the hash. - * This makes it more difficult for an external actor to prepare an intentional collision. - * The main condition is that secretSize *must* be large enough (>= XXH3_SECRET_SIZE_MIN). - * However, the quality of produced hash values depends on secret's entropy. - * Technically, the secret must look like a bunch of random bytes. - * Avoid "trivial" or structured data such as repeated sequences or a text document. - * Whenever unsure about the "randomness" of the blob of bytes, - * consider relabelling it as a "custom seed" instead, - * and employ "XXH3_generateSecret()" (see below) - * to generate a high entropy secret derived from the custom seed. - */ -XXH_PUBLIC_API XXH64_hash_t XXH3_64bits_withSecret(const void* data, size_t len, const void* secret, size_t secretSize); - - -/******* Streaming *******/ -/* - * Streaming requires state maintenance. - * This operation costs memory and CPU. - * As a consequence, streaming is slower than one-shot hashing. - * For better performance, prefer one-shot functions whenever applicable. - */ - -/*! - * @brief The state struct for the XXH3 streaming API. - * - * @see XXH3_state_s for details. - */ -typedef struct XXH3_state_s XXH3_state_t; -XXH_PUBLIC_API XXH3_state_t* XXH3_createState(void); -XXH_PUBLIC_API XXH_errorcode XXH3_freeState(XXH3_state_t* statePtr); -XXH_PUBLIC_API void XXH3_copyState(XXH3_state_t* dst_state, const XXH3_state_t* src_state); - -/* - * XXH3_64bits_reset(): - * Initialize with default parameters. - * digest will be equivalent to `XXH3_64bits()`. - */ -XXH_PUBLIC_API XXH_errorcode XXH3_64bits_reset(XXH3_state_t* statePtr); -/* - * XXH3_64bits_reset_withSeed(): - * Generate a custom secret from `seed`, and store it into `statePtr`. - * digest will be equivalent to `XXH3_64bits_withSeed()`. - */ -XXH_PUBLIC_API XXH_errorcode XXH3_64bits_reset_withSeed(XXH3_state_t* statePtr, XXH64_hash_t seed); -/* - * XXH3_64bits_reset_withSecret(): - * `secret` is referenced, it _must outlive_ the hash streaming session. - * Similar to one-shot API, `secretSize` must be >= `XXH3_SECRET_SIZE_MIN`, - * and the quality of produced hash values depends on secret's entropy - * (secret's content should look like a bunch of random bytes). - * When in doubt about the randomness of a candidate `secret`, - * consider employing `XXH3_generateSecret()` instead (see below). - */ -XXH_PUBLIC_API XXH_errorcode XXH3_64bits_reset_withSecret(XXH3_state_t* statePtr, const void* secret, size_t secretSize); - -XXH_PUBLIC_API XXH_errorcode XXH3_64bits_update (XXH3_state_t* statePtr, const void* input, size_t length); -XXH_PUBLIC_API XXH64_hash_t XXH3_64bits_digest (const XXH3_state_t* statePtr); - -/* note : canonical representation of XXH3 is the same as XXH64 - * since they both produce XXH64_hash_t values */ - - -/*-********************************************************************** -* XXH3 128-bit variant -************************************************************************/ - -/*! - * @brief The return value from 128-bit hashes. - * - * Stored in little endian order, although the fields themselves are in native - * endianness. - */ -typedef struct { - XXH64_hash_t low64; /*!< `value & 0xFFFFFFFFFFFFFFFF` */ - XXH64_hash_t high64; /*!< `value >> 64` */ -} XXH128_hash_t; - -XXH_PUBLIC_API XXH128_hash_t XXH3_128bits(const void* data, size_t len); -XXH_PUBLIC_API XXH128_hash_t XXH3_128bits_withSeed(const void* data, size_t len, XXH64_hash_t seed); -XXH_PUBLIC_API XXH128_hash_t XXH3_128bits_withSecret(const void* data, size_t len, const void* secret, size_t secretSize); - -/******* Streaming *******/ -/* - * Streaming requires state maintenance. - * This operation costs memory and CPU. - * As a consequence, streaming is slower than one-shot hashing. - * For better performance, prefer one-shot functions whenever applicable. - * - * XXH3_128bits uses the same XXH3_state_t as XXH3_64bits(). - * Use already declared XXH3_createState() and XXH3_freeState(). - * - * All reset and streaming functions have same meaning as their 64-bit counterpart. - */ - -XXH_PUBLIC_API XXH_errorcode XXH3_128bits_reset(XXH3_state_t* statePtr); -XXH_PUBLIC_API XXH_errorcode XXH3_128bits_reset_withSeed(XXH3_state_t* statePtr, XXH64_hash_t seed); -XXH_PUBLIC_API XXH_errorcode XXH3_128bits_reset_withSecret(XXH3_state_t* statePtr, const void* secret, size_t secretSize); - -XXH_PUBLIC_API XXH_errorcode XXH3_128bits_update (XXH3_state_t* statePtr, const void* input, size_t length); -XXH_PUBLIC_API XXH128_hash_t XXH3_128bits_digest (const XXH3_state_t* statePtr); - -/* Following helper functions make it possible to compare XXH128_hast_t values. - * Since XXH128_hash_t is a structure, this capability is not offered by the language. - * Note: For better performance, these functions can be inlined using XXH_INLINE_ALL */ - -/*! - * XXH128_isEqual(): - * Return: 1 if `h1` and `h2` are equal, 0 if they are not. - */ -XXH_PUBLIC_API int XXH128_isEqual(XXH128_hash_t h1, XXH128_hash_t h2); - -/*! - * XXH128_cmp(): - * - * This comparator is compatible with stdlib's `qsort()`/`bsearch()`. - * - * return: >0 if *h128_1 > *h128_2 - * =0 if *h128_1 == *h128_2 - * <0 if *h128_1 < *h128_2 - */ -XXH_PUBLIC_API int XXH128_cmp(const void* h128_1, const void* h128_2); - - -/******* Canonical representation *******/ -typedef struct { unsigned char digest[sizeof(XXH128_hash_t)]; } XXH128_canonical_t; -XXH_PUBLIC_API void XXH128_canonicalFromHash(XXH128_canonical_t* dst, XXH128_hash_t hash); -XXH_PUBLIC_API XXH128_hash_t XXH128_hashFromCanonical(const XXH128_canonical_t* src); - - -#endif /* XXH_NO_LONG_LONG */ - -/*! - * @} - */ -#endif /* XXHASH_H_5627135585666179 */ - - - -#if defined(XXH_STATIC_LINKING_ONLY) && !defined(XXHASH_H_STATIC_13879238742) -#define XXHASH_H_STATIC_13879238742 -/* **************************************************************************** - * This section contains declarations which are not guaranteed to remain stable. - * They may change in future versions, becoming incompatible with a different - * version of the library. - * These declarations should only be used with static linking. - * Never use them in association with dynamic linking! - ***************************************************************************** */ - -/* - * These definitions are only present to allow static allocation - * of XXH states, on stack or in a struct, for example. - * Never **ever** access their members directly. - */ - -/*! - * @internal - * @brief Structure for XXH32 streaming API. - * - * @note This is only defined when @ref XXH_STATIC_LINKING_ONLY, - * @ref XXH_INLINE_ALL, or @ref XXH_IMPLEMENTATION is defined. Otherwise it is - * an opaque type. This allows fields to safely be changed. - * - * Typedef'd to @ref XXH32_state_t. - * Do not access the members of this struct directly. - * @see XXH64_state_s, XXH3_state_s - */ -struct XXH32_state_s { - XXH32_hash_t total_len_32; /*!< Total length hashed, modulo 2^32 */ - XXH32_hash_t large_len; /*!< Whether the hash is >= 16 (handles @ref total_len_32 overflow) */ - XXH32_hash_t v1; /*!< First accumulator lane */ - XXH32_hash_t v2; /*!< Second accumulator lane */ - XXH32_hash_t v3; /*!< Third accumulator lane */ - XXH32_hash_t v4; /*!< Fourth accumulator lane */ - XXH32_hash_t mem32[4]; /*!< Internal buffer for partial reads. Treated as unsigned char[16]. */ - XXH32_hash_t memsize; /*!< Amount of data in @ref mem32 */ - XXH32_hash_t reserved; /*!< Reserved field. Do not read or write to it, it may be removed. */ -}; /* typedef'd to XXH32_state_t */ - - -#ifndef XXH_NO_LONG_LONG /* defined when there is no 64-bit support */ - -/*! - * @internal - * @brief Structure for XXH64 streaming API. - * - * @note This is only defined when @ref XXH_STATIC_LINKING_ONLY, - * @ref XXH_INLINE_ALL, or @ref XXH_IMPLEMENTATION is defined. Otherwise it is - * an opaque type. This allows fields to safely be changed. - * - * Typedef'd to @ref XXH64_state_t. - * Do not access the members of this struct directly. - * @see XXH32_state_s, XXH3_state_s - */ -struct XXH64_state_s { - XXH64_hash_t total_len; /*!< Total length hashed. This is always 64-bit. */ - XXH64_hash_t v1; /*!< First accumulator lane */ - XXH64_hash_t v2; /*!< Second accumulator lane */ - XXH64_hash_t v3; /*!< Third accumulator lane */ - XXH64_hash_t v4; /*!< Fourth accumulator lane */ - XXH64_hash_t mem64[4]; /*!< Internal buffer for partial reads. Treated as unsigned char[32]. */ - XXH32_hash_t memsize; /*!< Amount of data in @ref mem64 */ - XXH32_hash_t reserved32; /*!< Reserved field, needed for padding anyways*/ - XXH64_hash_t reserved64; /*!< Reserved field. Do not read or write to it, it may be removed. */ -}; /* typedef'd to XXH64_state_t */ - -#if defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11+ */ -# include -# define XXH_ALIGN(n) alignas(n) -#elif defined(__GNUC__) -# define XXH_ALIGN(n) __attribute__ ((aligned(n))) -#elif defined(_MSC_VER) -# define XXH_ALIGN(n) __declspec(align(n)) -#else -# define XXH_ALIGN(n) /* disabled */ -#endif - -/* Old GCC versions only accept the attribute after the type in structures. */ -#if !(defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)) /* C11+ */ \ - && defined(__GNUC__) -# define XXH_ALIGN_MEMBER(align, type) type XXH_ALIGN(align) -#else -# define XXH_ALIGN_MEMBER(align, type) XXH_ALIGN(align) type -#endif - -/*! - * @brief The size of the internal XXH3 buffer. - * - * This is the optimal update size for incremental hashing. - * - * @see XXH3_64b_update(), XXH3_128b_update(). - */ -#define XXH3_INTERNALBUFFER_SIZE 256 - -/*! - * @brief Default size of the secret buffer (and @ref XXH3_kSecret). - * - * This is the size used in @ref XXH3_kSecret and the seeded functions. - * - * Not to be confused with @ref XXH3_SECRET_SIZE_MIN. - */ -#define XXH3_SECRET_DEFAULT_SIZE 192 - -/*! - * @internal - * @brief Structure for XXH3 streaming API. - * - * @note This is only defined when @ref XXH_STATIC_LINKING_ONLY, - * @ref XXH_INLINE_ALL, or @ref XXH_IMPLEMENTATION is defined. Otherwise it is - * an opaque type. This allows fields to safely be changed. - * - * @note **This structure has a strict alignment requirement of 64 bytes.** Do - * not allocate this with `malloc()` or `new`, it will not be sufficiently - * aligned. Use @ref XXH3_createState() and @ref XXH3_freeState(), or stack - * allocation. - * - * Typedef'd to @ref XXH3_state_t. - * Do not access the members of this struct directly. - * - * @see XXH3_INITSTATE() for stack initialization. - * @see XXH3_createState(), XXH3_freeState(). - * @see XXH32_state_s, XXH64_state_s - */ -struct XXH3_state_s { - XXH_ALIGN_MEMBER(64, XXH64_hash_t acc[8]); - /*!< The 8 accumulators. Similar to `vN` in @ref XXH32_state_s::v1 and @ref XXH64_state_s */ - XXH_ALIGN_MEMBER(64, unsigned char customSecret[XXH3_SECRET_DEFAULT_SIZE]); - /*!< Used to store a custom secret generated from a seed. */ - XXH_ALIGN_MEMBER(64, unsigned char buffer[XXH3_INTERNALBUFFER_SIZE]); - /*!< The internal buffer. @see XXH32_state_s::mem32 */ - XXH32_hash_t bufferedSize; - /*!< The amount of memory in @ref buffer, @see XXH32_state_s::memsize */ - XXH32_hash_t reserved32; - /*!< Reserved field. Needed for padding on 64-bit. */ - size_t nbStripesSoFar; - /*!< Number or stripes processed. */ - XXH64_hash_t totalLen; - /*!< Total length hashed. 64-bit even on 32-bit targets. */ - size_t nbStripesPerBlock; - /*!< Number of stripes per block. */ - size_t secretLimit; - /*!< Size of @ref customSecret or @ref extSecret */ - XXH64_hash_t seed; - /*!< Seed for _withSeed variants. Must be zero otherwise, @see XXH3_INITSTATE() */ - XXH64_hash_t reserved64; - /*!< Reserved field. */ - const unsigned char* extSecret; - /*!< Reference to an external secret for the _withSecret variants, NULL - * for other variants. */ - /* note: there may be some padding at the end due to alignment on 64 bytes */ -}; /* typedef'd to XXH3_state_t */ - -#undef XXH_ALIGN_MEMBER - -/*! - * @brief Initializes a stack-allocated `XXH3_state_s`. - * - * When the @ref XXH3_state_t structure is merely emplaced on stack, - * it should be initialized with XXH3_INITSTATE() or a memset() - * in case its first reset uses XXH3_NNbits_reset_withSeed(). - * This init can be omitted if the first reset uses default or _withSecret mode. - * This operation isn't necessary when the state is created with XXH3_createState(). - * Note that this doesn't prepare the state for a streaming operation, - * it's still necessary to use XXH3_NNbits_reset*() afterwards. - */ -#define XXH3_INITSTATE(XXH3_state_ptr) { (XXH3_state_ptr)->seed = 0; } - - -/* === Experimental API === */ -/* Symbols defined below must be considered tied to a specific library version. */ - -/* - * XXH3_generateSecret(): - * - * Derive a high-entropy secret from any user-defined content, named customSeed. - * The generated secret can be used in combination with `*_withSecret()` functions. - * The `_withSecret()` variants are useful to provide a higher level of protection than 64-bit seed, - * as it becomes much more difficult for an external actor to guess how to impact the calculation logic. - * - * The function accepts as input a custom seed of any length and any content, - * and derives from it a high-entropy secret of length XXH3_SECRET_DEFAULT_SIZE - * into an already allocated buffer secretBuffer. - * The generated secret is _always_ XXH_SECRET_DEFAULT_SIZE bytes long. - * - * The generated secret can then be used with any `*_withSecret()` variant. - * Functions `XXH3_128bits_withSecret()`, `XXH3_64bits_withSecret()`, - * `XXH3_128bits_reset_withSecret()` and `XXH3_64bits_reset_withSecret()` - * are part of this list. They all accept a `secret` parameter - * which must be very long for implementation reasons (>= XXH3_SECRET_SIZE_MIN) - * _and_ feature very high entropy (consist of random-looking bytes). - * These conditions can be a high bar to meet, so - * this function can be used to generate a secret of proper quality. - * - * customSeed can be anything. It can have any size, even small ones, - * and its content can be anything, even stupidly "low entropy" source such as a bunch of zeroes. - * The resulting `secret` will nonetheless provide all expected qualities. - * - * Supplying NULL as the customSeed copies the default secret into `secretBuffer`. - * When customSeedSize > 0, supplying NULL as customSeed is undefined behavior. - */ -XXH_PUBLIC_API void XXH3_generateSecret(void* secretBuffer, const void* customSeed, size_t customSeedSize); - - -/* simple short-cut to pre-selected XXH3_128bits variant */ -XXH_PUBLIC_API XXH128_hash_t XXH128(const void* data, size_t len, XXH64_hash_t seed); - - -#endif /* XXH_NO_LONG_LONG */ -#if defined(XXH_INLINE_ALL) || defined(XXH_PRIVATE_API) -# define XXH_IMPLEMENTATION -#endif - -#endif /* defined(XXH_STATIC_LINKING_ONLY) && !defined(XXHASH_H_STATIC_13879238742) */ - - -/* ======================================================================== */ -/* ======================================================================== */ -/* ======================================================================== */ - - -/*-********************************************************************** - * xxHash implementation - *-********************************************************************** - * xxHash's implementation used to be hosted inside xxhash.c. - * - * However, inlining requires implementation to be visible to the compiler, - * hence be included alongside the header. - * Previously, implementation was hosted inside xxhash.c, - * which was then #included when inlining was activated. - * This construction created issues with a few build and install systems, - * as it required xxhash.c to be stored in /include directory. - * - * xxHash implementation is now directly integrated within xxhash.h. - * As a consequence, xxhash.c is no longer needed in /include. - * - * xxhash.c is still available and is still useful. - * In a "normal" setup, when xxhash is not inlined, - * xxhash.h only exposes the prototypes and public symbols, - * while xxhash.c can be built into an object file xxhash.o - * which can then be linked into the final binary. - ************************************************************************/ - -#if ( defined(XXH_INLINE_ALL) || defined(XXH_PRIVATE_API) \ - || defined(XXH_IMPLEMENTATION) ) && !defined(XXH_IMPLEM_13a8737387) -# define XXH_IMPLEM_13a8737387 - -/* ************************************* -* Tuning parameters -***************************************/ - -/*! - * @defgroup tuning Tuning parameters - * @{ - * - * Various macros to control xxHash's behavior. - */ -#ifdef XXH_DOXYGEN -/*! - * @brief Define this to disable 64-bit code. - * - * Useful if only using the @ref xxh32_family and you have a strict C90 compiler. - */ -# define XXH_NO_LONG_LONG -# undef XXH_NO_LONG_LONG /* don't actually */ -/*! - * @brief Controls how unaligned memory is accessed. - * - * By default, access to unaligned memory is controlled by `memcpy()`, which is - * safe and portable. - * - * Unfortunately, on some target/compiler combinations, the generated assembly - * is sub-optimal. - * - * The below switch allow selection of a different access method - * in the search for improved performance. - * - * @par Possible options: - * - * - `XXH_FORCE_MEMORY_ACCESS=0` (default): `memcpy` - * @par - * Use `memcpy()`. Safe and portable. Note that most modern compilers will - * eliminate the function call and treat it as an unaligned access. - * - * - `XXH_FORCE_MEMORY_ACCESS=1`: `__attribute__((packed))` - * @par - * Depends on compiler extensions and is therefore not portable. - * This method is safe _if_ your compiler supports it, - * and *generally* as fast or faster than `memcpy`. - * - * - `XXH_FORCE_MEMORY_ACCESS=2`: Direct cast - * @par - * Casts directly and dereferences. This method doesn't depend on the - * compiler, but it violates the C standard as it directly dereferences an - * unaligned pointer. It can generate buggy code on targets which do not - * support unaligned memory accesses, but in some circumstances, it's the - * only known way to get the most performance. - * - * - `XXH_FORCE_MEMORY_ACCESS=3`: Byteshift - * @par - * Also portable. This can generate the best code on old compilers which don't - * inline small `memcpy()` calls, and it might also be faster on big-endian - * systems which lack a native byteswap instruction. However, some compilers - * will emit literal byteshifts even if the target supports unaligned access. - * . - * - * @warning - * Methods 1 and 2 rely on implementation-defined behavior. Use these with - * care, as what works on one compiler/platform/optimization level may cause - * another to read garbage data or even crash. - * - * See https://stackoverflow.com/a/32095106/646947 for details. - * - * Prefer these methods in priority order (0 > 3 > 1 > 2) - */ -# define XXH_FORCE_MEMORY_ACCESS 0 -/*! - * @def XXH_ACCEPT_NULL_INPUT_POINTER - * @brief Whether to add explicit `NULL` checks. - * - * If the input pointer is `NULL` and the length is non-zero, xxHash's default - * behavior is to dereference it, triggering a segfault. - * - * When this macro is enabled, xxHash actively checks the input for a null pointer. - * If it is, the result for null input pointers is the same as a zero-length input. - */ -# define XXH_ACCEPT_NULL_INPUT_POINTER 0 -/*! - * @def XXH_FORCE_ALIGN_CHECK - * @brief If defined to non-zero, adds a special path for aligned inputs (XXH32() - * and XXH64() only). - * - * This is an important performance trick for architectures without decent - * unaligned memory access performance. - * - * It checks for input alignment, and when conditions are met, uses a "fast - * path" employing direct 32-bit/64-bit reads, resulting in _dramatically - * faster_ read speed. - * - * The check costs one initial branch per hash, which is generally negligible, - * but not zero. - * - * Moreover, it's not useful to generate an additional code path if memory - * access uses the same instruction for both aligned and unaligned - * addresses (e.g. x86 and aarch64). - * - * In these cases, the alignment check can be removed by setting this macro to 0. - * Then the code will always use unaligned memory access. - * Align check is automatically disabled on x86, x64 & arm64, - * which are platforms known to offer good unaligned memory accesses performance. - * - * This option does not affect XXH3 (only XXH32 and XXH64). - */ -# define XXH_FORCE_ALIGN_CHECK 0 - -/*! - * @def XXH_NO_INLINE_HINTS - * @brief When non-zero, sets all functions to `static`. - * - * By default, xxHash tries to force the compiler to inline almost all internal - * functions. - * - * This can usually improve performance due to reduced jumping and improved - * constant folding, but significantly increases the size of the binary which - * might not be favorable. - * - * Additionally, sometimes the forced inlining can be detrimental to performance, - * depending on the architecture. - * - * XXH_NO_INLINE_HINTS marks all internal functions as static, giving the - * compiler full control on whether to inline or not. - * - * When not optimizing (-O0), optimizing for size (-Os, -Oz), or using - * -fno-inline with GCC or Clang, this will automatically be defined. - */ -# define XXH_NO_INLINE_HINTS 0 - -/*! - * @def XXH_REROLL - * @brief Whether to reroll `XXH32_finalize` and `XXH64_finalize`. - * - * For performance, `XXH32_finalize` and `XXH64_finalize` use an unrolled loop - * in the form of a switch statement. - * - * This is not always desirable, as it generates larger code, and depending on - * the architecture, may even be slower - * - * This is automatically defined with `-Os`/`-Oz` on GCC and Clang. - */ -# define XXH_REROLL 0 - -/*! - * @internal - * @brief Redefines old internal names. - * - * For compatibility with code that uses xxHash's internals before the names - * were changed to improve namespacing. There is no other reason to use this. - */ -# define XXH_OLD_NAMES -# undef XXH_OLD_NAMES /* don't actually use, it is ugly. */ -#endif /* XXH_DOXYGEN */ -/*! - * @} - */ - -#ifndef XXH_FORCE_MEMORY_ACCESS /* can be defined externally, on command line for example */ - /* prefer __packed__ structures (method 1) for gcc on armv7 and armv8 */ -# if !defined(__clang__) && ( \ - (defined(__INTEL_COMPILER) && !defined(_WIN32)) || \ - (defined(__GNUC__) && (defined(__ARM_ARCH) && __ARM_ARCH >= 7)) ) -# define XXH_FORCE_MEMORY_ACCESS 1 -# endif -#endif - -#ifndef XXH_ACCEPT_NULL_INPUT_POINTER /* can be defined externally */ -# define XXH_ACCEPT_NULL_INPUT_POINTER 0 -#endif - -#ifndef XXH_FORCE_ALIGN_CHECK /* can be defined externally */ -# if defined(__i386) || defined(__x86_64__) || defined(__aarch64__) \ - || defined(_M_IX86) || defined(_M_X64) || defined(_M_ARM64) /* visual */ -# define XXH_FORCE_ALIGN_CHECK 0 -# else -# define XXH_FORCE_ALIGN_CHECK 1 -# endif -#endif - -#ifndef XXH_NO_INLINE_HINTS -# if defined(__OPTIMIZE_SIZE__) /* -Os, -Oz */ \ - || defined(__NO_INLINE__) /* -O0, -fno-inline */ -# define XXH_NO_INLINE_HINTS 1 -# else -# define XXH_NO_INLINE_HINTS 0 -# endif -#endif - -#ifndef XXH_REROLL -# if defined(__OPTIMIZE_SIZE__) -# define XXH_REROLL 1 -# else -# define XXH_REROLL 0 -# endif -#endif - -/*! - * @defgroup impl Implementation - * @{ - */ - - -/* ************************************* -* Includes & Memory related functions -***************************************/ -/* - * Modify the local functions below should you wish to use - * different memory routines for malloc() and free() - */ -#include - -/*! - * @internal - * @brief Modify this function to use a different routine than malloc(). - */ -static void* XXH_malloc(size_t s) { return malloc(s); } - -/*! - * @internal - * @brief Modify this function to use a different routine than free(). - */ -static void XXH_free(void* p) { free(p); } - -#include - -/*! - * @internal - * @brief Modify this function to use a different routine than memcpy(). - */ -static void* XXH_memcpy(void* dest, const void* src, size_t size) -{ - return memcpy(dest,src,size); -} - -#include /* ULLONG_MAX */ - - -/* ************************************* -* Compiler Specific Options -***************************************/ -#ifdef _MSC_VER /* Visual Studio warning fix */ -# pragma warning(disable : 4127) /* disable: C4127: conditional expression is constant */ -#endif - -#if XXH_NO_INLINE_HINTS /* disable inlining hints */ -# if defined(__GNUC__) -# define XXH_FORCE_INLINE static __attribute__((unused)) -# else -# define XXH_FORCE_INLINE static -# endif -# define XXH_NO_INLINE static -/* enable inlining hints */ -#elif defined(_MSC_VER) /* Visual Studio */ -# define XXH_FORCE_INLINE static __forceinline -# define XXH_NO_INLINE static __declspec(noinline) -#elif defined(__GNUC__) -# define XXH_FORCE_INLINE static __inline__ __attribute__((always_inline, unused)) -# define XXH_NO_INLINE static __attribute__((noinline)) -#elif defined (__cplusplus) \ - || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) /* C99 */ -# define XXH_FORCE_INLINE static inline -# define XXH_NO_INLINE static -#else -# define XXH_FORCE_INLINE static -# define XXH_NO_INLINE static -#endif - - - -/* ************************************* -* Debug -***************************************/ -/*! - * @ingroup tuning - * @def XXH_DEBUGLEVEL - * @brief Sets the debugging level. - * - * XXH_DEBUGLEVEL is expected to be defined externally, typically via the - * compiler's command line options. The value must be a number. - */ -#ifndef XXH_DEBUGLEVEL -# ifdef DEBUGLEVEL /* backwards compat */ -# define XXH_DEBUGLEVEL DEBUGLEVEL -# else -# define XXH_DEBUGLEVEL 0 -# endif -#endif - -#if (XXH_DEBUGLEVEL>=1) -# include /* note: can still be disabled with NDEBUG */ -# define XXH_ASSERT(c) assert(c) -#else -# define XXH_ASSERT(c) ((void)0) -#endif - -/* note: use after variable declarations */ -#define XXH_STATIC_ASSERT(c) do { enum { XXH_sa = 1/(int)(!!(c)) }; } while (0) - - -/* ************************************* -* Basic Types -***************************************/ -#if !defined (__VMS) \ - && (defined (__cplusplus) \ - || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) ) -# include - typedef uint8_t xxh_u8; -#else - typedef unsigned char xxh_u8; -#endif -typedef XXH32_hash_t xxh_u32; - -#ifdef XXH_OLD_NAMES -# define BYTE xxh_u8 -# define U8 xxh_u8 -# define U32 xxh_u32 -#endif - -/* *** Memory access *** */ - -/*! - * @internal - * @fn xxh_u32 XXH_read32(const void* ptr) - * @brief Reads an unaligned 32-bit integer from @p ptr in native endianness. - * - * Affected by @ref XXH_FORCE_MEMORY_ACCESS. - * - * @param ptr The pointer to read from. - * @return The 32-bit native endian integer from the bytes at @p ptr. - */ - -/*! - * @internal - * @fn xxh_u32 XXH_readLE32(const void* ptr) - * @brief Reads an unaligned 32-bit little endian integer from @p ptr. - * - * Affected by @ref XXH_FORCE_MEMORY_ACCESS. - * - * @param ptr The pointer to read from. - * @return The 32-bit little endian integer from the bytes at @p ptr. - */ - -/*! - * @internal - * @fn xxh_u32 XXH_readBE32(const void* ptr) - * @brief Reads an unaligned 32-bit big endian integer from @p ptr. - * - * Affected by @ref XXH_FORCE_MEMORY_ACCESS. - * - * @param ptr The pointer to read from. - * @return The 32-bit big endian integer from the bytes at @p ptr. - */ - -/*! - * @internal - * @fn xxh_u32 XXH_readLE32_align(const void* ptr, XXH_alignment align) - * @brief Like @ref XXH_readLE32(), but has an option for aligned reads. - * - * Affected by @ref XXH_FORCE_MEMORY_ACCESS. - * Note that when @ref XXH_FORCE_ALIGN_CHECK == 0, the @p align parameter is - * always @ref XXH_alignment::XXH_unaligned. - * - * @param ptr The pointer to read from. - * @param align Whether @p ptr is aligned. - * @pre - * If @p align == @ref XXH_alignment::XXH_aligned, @p ptr must be 4 byte - * aligned. - * @return The 32-bit little endian integer from the bytes at @p ptr. - */ - -#if (defined(XXH_FORCE_MEMORY_ACCESS) && (XXH_FORCE_MEMORY_ACCESS==3)) -/* - * Manual byteshift. Best for old compilers which don't inline memcpy. - * We actually directly use XXH_readLE32 and XXH_readBE32. - */ -#elif (defined(XXH_FORCE_MEMORY_ACCESS) && (XXH_FORCE_MEMORY_ACCESS==2)) - -/* - * Force direct memory access. Only works on CPU which support unaligned memory - * access in hardware. - */ -static xxh_u32 XXH_read32(const void* memPtr) { return *(const xxh_u32*) memPtr; } - -#elif (defined(XXH_FORCE_MEMORY_ACCESS) && (XXH_FORCE_MEMORY_ACCESS==1)) - -/* - * __pack instructions are safer but compiler specific, hence potentially - * problematic for some compilers. - * - * Currently only defined for GCC and ICC. - */ -#ifdef XXH_OLD_NAMES -typedef union { xxh_u32 u32; } __attribute__((packed)) unalign; -#endif -static xxh_u32 XXH_read32(const void* ptr) -{ - typedef union { xxh_u32 u32; } __attribute__((packed)) xxh_unalign; - return ((const xxh_unalign*)ptr)->u32; -} - -#else - -/* - * Portable and safe solution. Generally efficient. - * see: https://stackoverflow.com/a/32095106/646947 - */ -static xxh_u32 XXH_read32(const void* memPtr) -{ - xxh_u32 val; - memcpy(&val, memPtr, sizeof(val)); - return val; -} - -#endif /* XXH_FORCE_DIRECT_MEMORY_ACCESS */ - - -/* *** Endianness *** */ -typedef enum { XXH_bigEndian=0, XXH_littleEndian=1 } XXH_endianess; - -/*! - * @ingroup tuning - * @def XXH_CPU_LITTLE_ENDIAN - * @brief Whether the target is little endian. - * - * Defined to 1 if the target is little endian, or 0 if it is big endian. - * It can be defined externally, for example on the compiler command line. - * - * If it is not defined, a runtime check (which is usually constant folded) - * is used instead. - * - * @note - * This is not necessarily defined to an integer constant. - * - * @see XXH_isLittleEndian() for the runtime check. - */ -#ifndef XXH_CPU_LITTLE_ENDIAN -/* - * Try to detect endianness automatically, to avoid the nonstandard behavior - * in `XXH_isLittleEndian()` - */ -# if defined(_WIN32) /* Windows is always little endian */ \ - || defined(__LITTLE_ENDIAN__) \ - || (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) -# define XXH_CPU_LITTLE_ENDIAN 1 -# elif defined(__BIG_ENDIAN__) \ - || (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) -# define XXH_CPU_LITTLE_ENDIAN 0 -# else -/*! - * @internal - * @brief Runtime check for @ref XXH_CPU_LITTLE_ENDIAN. - * - * Most compilers will constant fold this. - */ -static int XXH_isLittleEndian(void) -{ - /* - * Portable and well-defined behavior. - * Don't use static: it is detrimental to performance. - */ - const union { xxh_u32 u; xxh_u8 c[4]; } one = { 1 }; - return one.c[0]; -} -# define XXH_CPU_LITTLE_ENDIAN XXH_isLittleEndian() -# endif -#endif - - - - -/* **************************************** -* Compiler-specific Functions and Macros -******************************************/ -#define XXH_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) - -#ifdef __has_builtin -# define XXH_HAS_BUILTIN(x) __has_builtin(x) -#else -# define XXH_HAS_BUILTIN(x) 0 -#endif - -/*! - * @internal - * @def XXH_rotl32(x,r) - * @brief 32-bit rotate left. - * - * @param x The 32-bit integer to be rotated. - * @param r The number of bits to rotate. - * @pre - * @p r > 0 && @p r < 32 - * @note - * @p x and @p r may be evaluated multiple times. - * @return The rotated result. - */ -#if !defined(NO_CLANG_BUILTIN) && XXH_HAS_BUILTIN(__builtin_rotateleft32) \ - && XXH_HAS_BUILTIN(__builtin_rotateleft64) -# define XXH_rotl32 __builtin_rotateleft32 -# define XXH_rotl64 __builtin_rotateleft64 -/* Note: although _rotl exists for minGW (GCC under windows), performance seems poor */ -#elif defined(_MSC_VER) -# define XXH_rotl32(x,r) _rotl(x,r) -# define XXH_rotl64(x,r) _rotl64(x,r) -#else -# define XXH_rotl32(x,r) (((x) << (r)) | ((x) >> (32 - (r)))) -# define XXH_rotl64(x,r) (((x) << (r)) | ((x) >> (64 - (r)))) -#endif - -/*! - * @internal - * @fn xxh_u32 XXH_swap32(xxh_u32 x) - * @brief A 32-bit byteswap. - * - * @param x The 32-bit integer to byteswap. - * @return @p x, byteswapped. - */ -#if defined(_MSC_VER) /* Visual Studio */ -# define XXH_swap32 _byteswap_ulong -#elif XXH_GCC_VERSION >= 403 -# define XXH_swap32 __builtin_bswap32 -#else -static xxh_u32 XXH_swap32 (xxh_u32 x) -{ - return ((x << 24) & 0xff000000 ) | - ((x << 8) & 0x00ff0000 ) | - ((x >> 8) & 0x0000ff00 ) | - ((x >> 24) & 0x000000ff ); -} -#endif - - -/* *************************** -* Memory reads -*****************************/ - -/*! - * @internal - * @brief Enum to indicate whether a pointer is aligned. - */ -typedef enum { - XXH_aligned, /*!< Aligned */ - XXH_unaligned /*!< Possibly unaligned */ -} XXH_alignment; - -/* - * XXH_FORCE_MEMORY_ACCESS==3 is an endian-independent byteshift load. - * - * This is ideal for older compilers which don't inline memcpy. - */ -#if (defined(XXH_FORCE_MEMORY_ACCESS) && (XXH_FORCE_MEMORY_ACCESS==3)) - -XXH_FORCE_INLINE xxh_u32 XXH_readLE32(const void* memPtr) -{ - const xxh_u8* bytePtr = (const xxh_u8 *)memPtr; - return bytePtr[0] - | ((xxh_u32)bytePtr[1] << 8) - | ((xxh_u32)bytePtr[2] << 16) - | ((xxh_u32)bytePtr[3] << 24); -} - -XXH_FORCE_INLINE xxh_u32 XXH_readBE32(const void* memPtr) -{ - const xxh_u8* bytePtr = (const xxh_u8 *)memPtr; - return bytePtr[3] - | ((xxh_u32)bytePtr[2] << 8) - | ((xxh_u32)bytePtr[1] << 16) - | ((xxh_u32)bytePtr[0] << 24); -} - -#else -XXH_FORCE_INLINE xxh_u32 XXH_readLE32(const void* ptr) -{ - return XXH_CPU_LITTLE_ENDIAN ? XXH_read32(ptr) : XXH_swap32(XXH_read32(ptr)); -} - -static xxh_u32 XXH_readBE32(const void* ptr) -{ - return XXH_CPU_LITTLE_ENDIAN ? XXH_swap32(XXH_read32(ptr)) : XXH_read32(ptr); -} -#endif - -XXH_FORCE_INLINE xxh_u32 -XXH_readLE32_align(const void* ptr, XXH_alignment align) -{ - if (align==XXH_unaligned) { - return XXH_readLE32(ptr); - } else { - return XXH_CPU_LITTLE_ENDIAN ? *(const xxh_u32*)ptr : XXH_swap32(*(const xxh_u32*)ptr); - } -} - - -/* ************************************* -* Misc -***************************************/ -/*! @ingroup public */ -XXH_PUBLIC_API unsigned XXH_versionNumber (void) { return XXH_VERSION_NUMBER; } - - -/* ******************************************************************* -* 32-bit hash functions -*********************************************************************/ -/*! - * @} - * @defgroup xxh32_impl XXH32 implementation - * @ingroup impl - * @{ - */ -static const xxh_u32 XXH_PRIME32_1 = 0x9E3779B1U; /*!< 0b10011110001101110111100110110001 */ -static const xxh_u32 XXH_PRIME32_2 = 0x85EBCA77U; /*!< 0b10000101111010111100101001110111 */ -static const xxh_u32 XXH_PRIME32_3 = 0xC2B2AE3DU; /*!< 0b11000010101100101010111000111101 */ -static const xxh_u32 XXH_PRIME32_4 = 0x27D4EB2FU; /*!< 0b00100111110101001110101100101111 */ -static const xxh_u32 XXH_PRIME32_5 = 0x165667B1U; /*!< 0b00010110010101100110011110110001 */ - -#ifdef XXH_OLD_NAMES -# define PRIME32_1 XXH_PRIME32_1 -# define PRIME32_2 XXH_PRIME32_2 -# define PRIME32_3 XXH_PRIME32_3 -# define PRIME32_4 XXH_PRIME32_4 -# define PRIME32_5 XXH_PRIME32_5 -#endif - -/*! - * @internal - * @brief Normal stripe processing routine. - * - * This shuffles the bits so that any bit from @p input impacts several bits in - * @p acc. - * - * @param acc The accumulator lane. - * @param input The stripe of input to mix. - * @return The mixed accumulator lane. - */ -static xxh_u32 XXH32_round(xxh_u32 acc, xxh_u32 input) -{ - acc += input * XXH_PRIME32_2; - acc = XXH_rotl32(acc, 13); - acc *= XXH_PRIME32_1; -#if defined(__GNUC__) && defined(__SSE4_1__) && !defined(XXH_ENABLE_AUTOVECTORIZE) - /* - * UGLY HACK: - * This inline assembly hack forces acc into a normal register. This is the - * only thing that prevents GCC and Clang from autovectorizing the XXH32 - * loop (pragmas and attributes don't work for some reason) without globally - * disabling SSE4.1. - * - * The reason we want to avoid vectorization is because despite working on - * 4 integers at a time, there are multiple factors slowing XXH32 down on - * SSE4: - * - There's a ridiculous amount of lag from pmulld (10 cycles of latency on - * newer chips!) making it slightly slower to multiply four integers at - * once compared to four integers independently. Even when pmulld was - * fastest, Sandy/Ivy Bridge, it is still not worth it to go into SSE - * just to multiply unless doing a long operation. - * - * - Four instructions are required to rotate, - * movqda tmp, v // not required with VEX encoding - * pslld tmp, 13 // tmp <<= 13 - * psrld v, 19 // x >>= 19 - * por v, tmp // x |= tmp - * compared to one for scalar: - * roll v, 13 // reliably fast across the board - * shldl v, v, 13 // Sandy Bridge and later prefer this for some reason - * - * - Instruction level parallelism is actually more beneficial here because - * the SIMD actually serializes this operation: While v1 is rotating, v2 - * can load data, while v3 can multiply. SSE forces them to operate - * together. - * - * How this hack works: - * __asm__("" // Declare an assembly block but don't declare any instructions - * : // However, as an Input/Output Operand, - * "+r" // constrain a read/write operand (+) as a general purpose register (r). - * (acc) // and set acc as the operand - * ); - * - * Because of the 'r', the compiler has promised that seed will be in a - * general purpose register and the '+' says that it will be 'read/write', - * so it has to assume it has changed. It is like volatile without all the - * loads and stores. - * - * Since the argument has to be in a normal register (not an SSE register), - * each time XXH32_round is called, it is impossible to vectorize. - */ - __asm__("" : "+r" (acc)); -#endif - return acc; -} - -/*! - * @internal - * @brief Mixes all bits to finalize the hash. - * - * The final mix ensures that all input bits have a chance to impact any bit in - * the output digest, resulting in an unbiased distribution. - * - * @param h32 The hash to avalanche. - * @return The avalanched hash. - */ -static xxh_u32 XXH32_avalanche(xxh_u32 h32) -{ - h32 ^= h32 >> 15; - h32 *= XXH_PRIME32_2; - h32 ^= h32 >> 13; - h32 *= XXH_PRIME32_3; - h32 ^= h32 >> 16; - return(h32); -} - -#define XXH_get32bits(p) XXH_readLE32_align(p, align) - -/*! - * @internal - * @brief Processes the last 0-15 bytes of @p ptr. - * - * There may be up to 15 bytes remaining to consume from the input. - * This final stage will digest them to ensure that all input bytes are present - * in the final mix. - * - * @param h32 The hash to finalize. - * @param ptr The pointer to the remaining input. - * @param len The remaining length, modulo 16. - * @param align Whether @p ptr is aligned. - * @return The finalized hash. - */ -static xxh_u32 -XXH32_finalize(xxh_u32 h32, const xxh_u8* ptr, size_t len, XXH_alignment align) -{ -#define XXH_PROCESS1 do { \ - h32 += (*ptr++) * XXH_PRIME32_5; \ - h32 = XXH_rotl32(h32, 11) * XXH_PRIME32_1; \ -} while (0) - -#define XXH_PROCESS4 do { \ - h32 += XXH_get32bits(ptr) * XXH_PRIME32_3; \ - ptr += 4; \ - h32 = XXH_rotl32(h32, 17) * XXH_PRIME32_4; \ -} while (0) - - /* Compact rerolled version */ - if (XXH_REROLL) { - len &= 15; - while (len >= 4) { - XXH_PROCESS4; - len -= 4; - } - while (len > 0) { - XXH_PROCESS1; - --len; - } - return XXH32_avalanche(h32); - } else { - switch(len&15) /* or switch(bEnd - p) */ { - case 12: XXH_PROCESS4; - /* fallthrough */ - case 8: XXH_PROCESS4; - /* fallthrough */ - case 4: XXH_PROCESS4; - return XXH32_avalanche(h32); - - case 13: XXH_PROCESS4; - /* fallthrough */ - case 9: XXH_PROCESS4; - /* fallthrough */ - case 5: XXH_PROCESS4; - XXH_PROCESS1; - return XXH32_avalanche(h32); - - case 14: XXH_PROCESS4; - /* fallthrough */ - case 10: XXH_PROCESS4; - /* fallthrough */ - case 6: XXH_PROCESS4; - XXH_PROCESS1; - XXH_PROCESS1; - return XXH32_avalanche(h32); - - case 15: XXH_PROCESS4; - /* fallthrough */ - case 11: XXH_PROCESS4; - /* fallthrough */ - case 7: XXH_PROCESS4; - /* fallthrough */ - case 3: XXH_PROCESS1; - /* fallthrough */ - case 2: XXH_PROCESS1; - /* fallthrough */ - case 1: XXH_PROCESS1; - /* fallthrough */ - case 0: return XXH32_avalanche(h32); - } - XXH_ASSERT(0); - return h32; /* reaching this point is deemed impossible */ - } -} - -#ifdef XXH_OLD_NAMES -# define PROCESS1 XXH_PROCESS1 -# define PROCESS4 XXH_PROCESS4 -#else -# undef XXH_PROCESS1 -# undef XXH_PROCESS4 -#endif - -/*! - * @internal - * @brief The implementation for @ref XXH32(). - * - * @param input, len, seed Directly passed from @ref XXH32(). - * @param align Whether @p input is aligned. - * @return The calculated hash. - */ -XXH_FORCE_INLINE xxh_u32 -XXH32_endian_align(const xxh_u8* input, size_t len, xxh_u32 seed, XXH_alignment align) -{ - const xxh_u8* bEnd = input + len; - xxh_u32 h32; - -#if defined(XXH_ACCEPT_NULL_INPUT_POINTER) && (XXH_ACCEPT_NULL_INPUT_POINTER>=1) - if (input==NULL) { - len=0; - bEnd=input=(const xxh_u8*)(size_t)16; - } -#endif - - if (len>=16) { - const xxh_u8* const limit = bEnd - 15; - xxh_u32 v1 = seed + XXH_PRIME32_1 + XXH_PRIME32_2; - xxh_u32 v2 = seed + XXH_PRIME32_2; - xxh_u32 v3 = seed + 0; - xxh_u32 v4 = seed - XXH_PRIME32_1; - - do { - v1 = XXH32_round(v1, XXH_get32bits(input)); input += 4; - v2 = XXH32_round(v2, XXH_get32bits(input)); input += 4; - v3 = XXH32_round(v3, XXH_get32bits(input)); input += 4; - v4 = XXH32_round(v4, XXH_get32bits(input)); input += 4; - } while (input < limit); - - h32 = XXH_rotl32(v1, 1) + XXH_rotl32(v2, 7) - + XXH_rotl32(v3, 12) + XXH_rotl32(v4, 18); - } else { - h32 = seed + XXH_PRIME32_5; - } - - h32 += (xxh_u32)len; - - return XXH32_finalize(h32, input, len&15, align); -} - -/*! @ingroup xxh32_family */ -XXH_PUBLIC_API XXH32_hash_t XXH32 (const void* input, size_t len, XXH32_hash_t seed) -{ -#if 0 - /* Simple version, good for code maintenance, but unfortunately slow for small inputs */ - XXH32_state_t state; - XXH32_reset(&state, seed); - XXH32_update(&state, (const xxh_u8*)input, len); - return XXH32_digest(&state); -#else - if (XXH_FORCE_ALIGN_CHECK) { - if ((((size_t)input) & 3) == 0) { /* Input is 4-bytes aligned, leverage the speed benefit */ - return XXH32_endian_align((const xxh_u8*)input, len, seed, XXH_aligned); - } } - - return XXH32_endian_align((const xxh_u8*)input, len, seed, XXH_unaligned); -#endif -} - - - -/******* Hash streaming *******/ -/*! - * @ingroup xxh32_family - */ -XXH_PUBLIC_API XXH32_state_t* XXH32_createState(void) -{ - return (XXH32_state_t*)XXH_malloc(sizeof(XXH32_state_t)); -} -/*! @ingroup xxh32_family */ -XXH_PUBLIC_API XXH_errorcode XXH32_freeState(XXH32_state_t* statePtr) -{ - XXH_free(statePtr); - return XXH_OK; -} - -/*! @ingroup xxh32_family */ -XXH_PUBLIC_API void XXH32_copyState(XXH32_state_t* dstState, const XXH32_state_t* srcState) -{ - memcpy(dstState, srcState, sizeof(*dstState)); -} - -/*! @ingroup xxh32_family */ -XXH_PUBLIC_API XXH_errorcode XXH32_reset(XXH32_state_t* statePtr, XXH32_hash_t seed) -{ - XXH32_state_t state; /* using a local state to memcpy() in order to avoid strict-aliasing warnings */ - memset(&state, 0, sizeof(state)); - state.v1 = seed + XXH_PRIME32_1 + XXH_PRIME32_2; - state.v2 = seed + XXH_PRIME32_2; - state.v3 = seed + 0; - state.v4 = seed - XXH_PRIME32_1; - /* do not write into reserved, planned to be removed in a future version */ - memcpy(statePtr, &state, sizeof(state) - sizeof(state.reserved)); - return XXH_OK; -} - - -/*! @ingroup xxh32_family */ -XXH_PUBLIC_API XXH_errorcode -XXH32_update(XXH32_state_t* state, const void* input, size_t len) -{ - if (input==NULL) -#if defined(XXH_ACCEPT_NULL_INPUT_POINTER) && (XXH_ACCEPT_NULL_INPUT_POINTER>=1) - return XXH_OK; -#else - return XXH_ERROR; -#endif - - { const xxh_u8* p = (const xxh_u8*)input; - const xxh_u8* const bEnd = p + len; - - state->total_len_32 += (XXH32_hash_t)len; - state->large_len |= (XXH32_hash_t)((len>=16) | (state->total_len_32>=16)); - - if (state->memsize + len < 16) { /* fill in tmp buffer */ - XXH_memcpy((xxh_u8*)(state->mem32) + state->memsize, input, len); - state->memsize += (XXH32_hash_t)len; - return XXH_OK; - } - - if (state->memsize) { /* some data left from previous update */ - XXH_memcpy((xxh_u8*)(state->mem32) + state->memsize, input, 16-state->memsize); - { const xxh_u32* p32 = state->mem32; - state->v1 = XXH32_round(state->v1, XXH_readLE32(p32)); p32++; - state->v2 = XXH32_round(state->v2, XXH_readLE32(p32)); p32++; - state->v3 = XXH32_round(state->v3, XXH_readLE32(p32)); p32++; - state->v4 = XXH32_round(state->v4, XXH_readLE32(p32)); - } - p += 16-state->memsize; - state->memsize = 0; - } - - if (p <= bEnd-16) { - const xxh_u8* const limit = bEnd - 16; - xxh_u32 v1 = state->v1; - xxh_u32 v2 = state->v2; - xxh_u32 v3 = state->v3; - xxh_u32 v4 = state->v4; - - do { - v1 = XXH32_round(v1, XXH_readLE32(p)); p+=4; - v2 = XXH32_round(v2, XXH_readLE32(p)); p+=4; - v3 = XXH32_round(v3, XXH_readLE32(p)); p+=4; - v4 = XXH32_round(v4, XXH_readLE32(p)); p+=4; - } while (p<=limit); - - state->v1 = v1; - state->v2 = v2; - state->v3 = v3; - state->v4 = v4; - } - - if (p < bEnd) { - XXH_memcpy(state->mem32, p, (size_t)(bEnd-p)); - state->memsize = (unsigned)(bEnd-p); - } - } - - return XXH_OK; -} - - -/*! @ingroup xxh32_family */ -XXH_PUBLIC_API XXH32_hash_t XXH32_digest(const XXH32_state_t* state) -{ - xxh_u32 h32; - - if (state->large_len) { - h32 = XXH_rotl32(state->v1, 1) - + XXH_rotl32(state->v2, 7) - + XXH_rotl32(state->v3, 12) - + XXH_rotl32(state->v4, 18); - } else { - h32 = state->v3 /* == seed */ + XXH_PRIME32_5; - } - - h32 += state->total_len_32; - - return XXH32_finalize(h32, (const xxh_u8*)state->mem32, state->memsize, XXH_aligned); -} - - -/******* Canonical representation *******/ - -/*! - * @ingroup xxh32_family - * The default return values from XXH functions are unsigned 32 and 64 bit - * integers. - * - * The canonical representation uses big endian convention, the same convention - * as human-readable numbers (large digits first). - * - * This way, hash values can be written into a file or buffer, remaining - * comparable across different systems. - * - * The following functions allow transformation of hash values to and from their - * canonical format. - */ -XXH_PUBLIC_API void XXH32_canonicalFromHash(XXH32_canonical_t* dst, XXH32_hash_t hash) -{ - XXH_STATIC_ASSERT(sizeof(XXH32_canonical_t) == sizeof(XXH32_hash_t)); - if (XXH_CPU_LITTLE_ENDIAN) hash = XXH_swap32(hash); - memcpy(dst, &hash, sizeof(*dst)); -} -/*! @ingroup xxh32_family */ -XXH_PUBLIC_API XXH32_hash_t XXH32_hashFromCanonical(const XXH32_canonical_t* src) -{ - return XXH_readBE32(src); -} - - -#ifndef XXH_NO_LONG_LONG - -/* ******************************************************************* -* 64-bit hash functions -*********************************************************************/ -/*! - * @} - * @ingroup impl - * @{ - */ -/******* Memory access *******/ - -typedef XXH64_hash_t xxh_u64; - -#ifdef XXH_OLD_NAMES -# define U64 xxh_u64 -#endif - -/*! - * XXH_REROLL_XXH64: - * Whether to reroll the XXH64_finalize() loop. - * - * Just like XXH32, we can unroll the XXH64_finalize() loop. This can be a - * performance gain on 64-bit hosts, as only one jump is required. - * - * However, on 32-bit hosts, because arithmetic needs to be done with two 32-bit - * registers, and 64-bit arithmetic needs to be simulated, it isn't beneficial - * to unroll. The code becomes ridiculously large (the largest function in the - * binary on i386!), and rerolling it saves anywhere from 3kB to 20kB. It is - * also slightly faster because it fits into cache better and is more likely - * to be inlined by the compiler. - * - * If XXH_REROLL is defined, this is ignored and the loop is always rerolled. - */ -#ifndef XXH_REROLL_XXH64 -# if (defined(__ILP32__) || defined(_ILP32)) /* ILP32 is often defined on 32-bit GCC family */ \ - || !(defined(__x86_64__) || defined(_M_X64) || defined(_M_AMD64) /* x86-64 */ \ - || defined(_M_ARM64) || defined(__aarch64__) || defined(__arm64__) /* aarch64 */ \ - || defined(__PPC64__) || defined(__PPC64LE__) || defined(__ppc64__) || defined(__powerpc64__) /* ppc64 */ \ - || defined(__mips64__) || defined(__mips64)) /* mips64 */ \ - || (!defined(SIZE_MAX) || SIZE_MAX < ULLONG_MAX) /* check limits */ -# define XXH_REROLL_XXH64 1 -# else -# define XXH_REROLL_XXH64 0 -# endif -#endif /* !defined(XXH_REROLL_XXH64) */ - -#if (defined(XXH_FORCE_MEMORY_ACCESS) && (XXH_FORCE_MEMORY_ACCESS==3)) -/* - * Manual byteshift. Best for old compilers which don't inline memcpy. - * We actually directly use XXH_readLE64 and XXH_readBE64. - */ -#elif (defined(XXH_FORCE_MEMORY_ACCESS) && (XXH_FORCE_MEMORY_ACCESS==2)) - -/* Force direct memory access. Only works on CPU which support unaligned memory access in hardware */ -static xxh_u64 XXH_read64(const void* memPtr) -{ - return *(const xxh_u64*) memPtr; -} - -#elif (defined(XXH_FORCE_MEMORY_ACCESS) && (XXH_FORCE_MEMORY_ACCESS==1)) - -/* - * __pack instructions are safer, but compiler specific, hence potentially - * problematic for some compilers. - * - * Currently only defined for GCC and ICC. - */ -#ifdef XXH_OLD_NAMES -typedef union { xxh_u32 u32; xxh_u64 u64; } __attribute__((packed)) unalign64; -#endif -static xxh_u64 XXH_read64(const void* ptr) -{ - typedef union { xxh_u32 u32; xxh_u64 u64; } __attribute__((packed)) xxh_unalign64; - return ((const xxh_unalign64*)ptr)->u64; -} - -#else - -/* - * Portable and safe solution. Generally efficient. - * see: https://stackoverflow.com/a/32095106/646947 - */ -static xxh_u64 XXH_read64(const void* memPtr) -{ - xxh_u64 val; - memcpy(&val, memPtr, sizeof(val)); - return val; -} - -#endif /* XXH_FORCE_DIRECT_MEMORY_ACCESS */ - -#if defined(_MSC_VER) /* Visual Studio */ -# define XXH_swap64 _byteswap_uint64 -#elif XXH_GCC_VERSION >= 403 -# define XXH_swap64 __builtin_bswap64 -#else -static xxh_u64 XXH_swap64(xxh_u64 x) -{ - return ((x << 56) & 0xff00000000000000ULL) | - ((x << 40) & 0x00ff000000000000ULL) | - ((x << 24) & 0x0000ff0000000000ULL) | - ((x << 8) & 0x000000ff00000000ULL) | - ((x >> 8) & 0x00000000ff000000ULL) | - ((x >> 24) & 0x0000000000ff0000ULL) | - ((x >> 40) & 0x000000000000ff00ULL) | - ((x >> 56) & 0x00000000000000ffULL); -} -#endif - - -/* XXH_FORCE_MEMORY_ACCESS==3 is an endian-independent byteshift load. */ -#if (defined(XXH_FORCE_MEMORY_ACCESS) && (XXH_FORCE_MEMORY_ACCESS==3)) - -XXH_FORCE_INLINE xxh_u64 XXH_readLE64(const void* memPtr) -{ - const xxh_u8* bytePtr = (const xxh_u8 *)memPtr; - return bytePtr[0] - | ((xxh_u64)bytePtr[1] << 8) - | ((xxh_u64)bytePtr[2] << 16) - | ((xxh_u64)bytePtr[3] << 24) - | ((xxh_u64)bytePtr[4] << 32) - | ((xxh_u64)bytePtr[5] << 40) - | ((xxh_u64)bytePtr[6] << 48) - | ((xxh_u64)bytePtr[7] << 56); -} - -XXH_FORCE_INLINE xxh_u64 XXH_readBE64(const void* memPtr) -{ - const xxh_u8* bytePtr = (const xxh_u8 *)memPtr; - return bytePtr[7] - | ((xxh_u64)bytePtr[6] << 8) - | ((xxh_u64)bytePtr[5] << 16) - | ((xxh_u64)bytePtr[4] << 24) - | ((xxh_u64)bytePtr[3] << 32) - | ((xxh_u64)bytePtr[2] << 40) - | ((xxh_u64)bytePtr[1] << 48) - | ((xxh_u64)bytePtr[0] << 56); -} - -#else -XXH_FORCE_INLINE xxh_u64 XXH_readLE64(const void* ptr) -{ - return XXH_CPU_LITTLE_ENDIAN ? XXH_read64(ptr) : XXH_swap64(XXH_read64(ptr)); -} - -static xxh_u64 XXH_readBE64(const void* ptr) -{ - return XXH_CPU_LITTLE_ENDIAN ? XXH_swap64(XXH_read64(ptr)) : XXH_read64(ptr); -} -#endif - -XXH_FORCE_INLINE xxh_u64 -XXH_readLE64_align(const void* ptr, XXH_alignment align) -{ - if (align==XXH_unaligned) - return XXH_readLE64(ptr); - else - return XXH_CPU_LITTLE_ENDIAN ? *(const xxh_u64*)ptr : XXH_swap64(*(const xxh_u64*)ptr); -} - - -/******* xxh64 *******/ -/*! - * @} - * @defgroup xxh64_impl XXH64 implementation - * @ingroup impl - * @{ - */ -static const xxh_u64 XXH_PRIME64_1 = 0x9E3779B185EBCA87ULL; /*!< 0b1001111000110111011110011011000110000101111010111100101010000111 */ -static const xxh_u64 XXH_PRIME64_2 = 0xC2B2AE3D27D4EB4FULL; /*!< 0b1100001010110010101011100011110100100111110101001110101101001111 */ -static const xxh_u64 XXH_PRIME64_3 = 0x165667B19E3779F9ULL; /*!< 0b0001011001010110011001111011000110011110001101110111100111111001 */ -static const xxh_u64 XXH_PRIME64_4 = 0x85EBCA77C2B2AE63ULL; /*!< 0b1000010111101011110010100111011111000010101100101010111001100011 */ -static const xxh_u64 XXH_PRIME64_5 = 0x27D4EB2F165667C5ULL; /*!< 0b0010011111010100111010110010111100010110010101100110011111000101 */ - -#ifdef XXH_OLD_NAMES -# define PRIME64_1 XXH_PRIME64_1 -# define PRIME64_2 XXH_PRIME64_2 -# define PRIME64_3 XXH_PRIME64_3 -# define PRIME64_4 XXH_PRIME64_4 -# define PRIME64_5 XXH_PRIME64_5 -#endif - -static xxh_u64 XXH64_round(xxh_u64 acc, xxh_u64 input) -{ - acc += input * XXH_PRIME64_2; - acc = XXH_rotl64(acc, 31); - acc *= XXH_PRIME64_1; - return acc; -} - -static xxh_u64 XXH64_mergeRound(xxh_u64 acc, xxh_u64 val) -{ - val = XXH64_round(0, val); - acc ^= val; - acc = acc * XXH_PRIME64_1 + XXH_PRIME64_4; - return acc; -} - -static xxh_u64 XXH64_avalanche(xxh_u64 h64) -{ - h64 ^= h64 >> 33; - h64 *= XXH_PRIME64_2; - h64 ^= h64 >> 29; - h64 *= XXH_PRIME64_3; - h64 ^= h64 >> 32; - return h64; -} - - -#define XXH_get64bits(p) XXH_readLE64_align(p, align) - -static xxh_u64 -XXH64_finalize(xxh_u64 h64, const xxh_u8* ptr, size_t len, XXH_alignment align) -{ -#define XXH_PROCESS1_64 do { \ - h64 ^= (*ptr++) * XXH_PRIME64_5; \ - h64 = XXH_rotl64(h64, 11) * XXH_PRIME64_1; \ -} while (0) - -#define XXH_PROCESS4_64 do { \ - h64 ^= (xxh_u64)(XXH_get32bits(ptr)) * XXH_PRIME64_1; \ - ptr += 4; \ - h64 = XXH_rotl64(h64, 23) * XXH_PRIME64_2 + XXH_PRIME64_3; \ -} while (0) - -#define XXH_PROCESS8_64 do { \ - xxh_u64 const k1 = XXH64_round(0, XXH_get64bits(ptr)); \ - ptr += 8; \ - h64 ^= k1; \ - h64 = XXH_rotl64(h64,27) * XXH_PRIME64_1 + XXH_PRIME64_4; \ -} while (0) - - /* Rerolled version for 32-bit targets is faster and much smaller. */ - if (XXH_REROLL || XXH_REROLL_XXH64) { - len &= 31; - while (len >= 8) { - XXH_PROCESS8_64; - len -= 8; - } - if (len >= 4) { - XXH_PROCESS4_64; - len -= 4; - } - while (len > 0) { - XXH_PROCESS1_64; - --len; - } - return XXH64_avalanche(h64); - } else { - switch(len & 31) { - case 24: XXH_PROCESS8_64; - /* fallthrough */ - case 16: XXH_PROCESS8_64; - /* fallthrough */ - case 8: XXH_PROCESS8_64; - return XXH64_avalanche(h64); - - case 28: XXH_PROCESS8_64; - /* fallthrough */ - case 20: XXH_PROCESS8_64; - /* fallthrough */ - case 12: XXH_PROCESS8_64; - /* fallthrough */ - case 4: XXH_PROCESS4_64; - return XXH64_avalanche(h64); - - case 25: XXH_PROCESS8_64; - /* fallthrough */ - case 17: XXH_PROCESS8_64; - /* fallthrough */ - case 9: XXH_PROCESS8_64; - XXH_PROCESS1_64; - return XXH64_avalanche(h64); - - case 29: XXH_PROCESS8_64; - /* fallthrough */ - case 21: XXH_PROCESS8_64; - /* fallthrough */ - case 13: XXH_PROCESS8_64; - /* fallthrough */ - case 5: XXH_PROCESS4_64; - XXH_PROCESS1_64; - return XXH64_avalanche(h64); - - case 26: XXH_PROCESS8_64; - /* fallthrough */ - case 18: XXH_PROCESS8_64; - /* fallthrough */ - case 10: XXH_PROCESS8_64; - XXH_PROCESS1_64; - XXH_PROCESS1_64; - return XXH64_avalanche(h64); - - case 30: XXH_PROCESS8_64; - /* fallthrough */ - case 22: XXH_PROCESS8_64; - /* fallthrough */ - case 14: XXH_PROCESS8_64; - /* fallthrough */ - case 6: XXH_PROCESS4_64; - XXH_PROCESS1_64; - XXH_PROCESS1_64; - return XXH64_avalanche(h64); - - case 27: XXH_PROCESS8_64; - /* fallthrough */ - case 19: XXH_PROCESS8_64; - /* fallthrough */ - case 11: XXH_PROCESS8_64; - XXH_PROCESS1_64; - XXH_PROCESS1_64; - XXH_PROCESS1_64; - return XXH64_avalanche(h64); - - case 31: XXH_PROCESS8_64; - /* fallthrough */ - case 23: XXH_PROCESS8_64; - /* fallthrough */ - case 15: XXH_PROCESS8_64; - /* fallthrough */ - case 7: XXH_PROCESS4_64; - /* fallthrough */ - case 3: XXH_PROCESS1_64; - /* fallthrough */ - case 2: XXH_PROCESS1_64; - /* fallthrough */ - case 1: XXH_PROCESS1_64; - /* fallthrough */ - case 0: return XXH64_avalanche(h64); - } - } - /* impossible to reach */ - XXH_ASSERT(0); - return 0; /* unreachable, but some compilers complain without it */ -} - -#ifdef XXH_OLD_NAMES -# define PROCESS1_64 XXH_PROCESS1_64 -# define PROCESS4_64 XXH_PROCESS4_64 -# define PROCESS8_64 XXH_PROCESS8_64 -#else -# undef XXH_PROCESS1_64 -# undef XXH_PROCESS4_64 -# undef XXH_PROCESS8_64 -#endif - -XXH_FORCE_INLINE xxh_u64 -XXH64_endian_align(const xxh_u8* input, size_t len, xxh_u64 seed, XXH_alignment align) -{ - const xxh_u8* bEnd = input + len; - xxh_u64 h64; - -#if defined(XXH_ACCEPT_NULL_INPUT_POINTER) && (XXH_ACCEPT_NULL_INPUT_POINTER>=1) - if (input==NULL) { - len=0; - bEnd=input=(const xxh_u8*)(size_t)32; - } -#endif - - if (len>=32) { - const xxh_u8* const limit = bEnd - 32; - xxh_u64 v1 = seed + XXH_PRIME64_1 + XXH_PRIME64_2; - xxh_u64 v2 = seed + XXH_PRIME64_2; - xxh_u64 v3 = seed + 0; - xxh_u64 v4 = seed - XXH_PRIME64_1; - - do { - v1 = XXH64_round(v1, XXH_get64bits(input)); input+=8; - v2 = XXH64_round(v2, XXH_get64bits(input)); input+=8; - v3 = XXH64_round(v3, XXH_get64bits(input)); input+=8; - v4 = XXH64_round(v4, XXH_get64bits(input)); input+=8; - } while (input<=limit); - - h64 = XXH_rotl64(v1, 1) + XXH_rotl64(v2, 7) + XXH_rotl64(v3, 12) + XXH_rotl64(v4, 18); - h64 = XXH64_mergeRound(h64, v1); - h64 = XXH64_mergeRound(h64, v2); - h64 = XXH64_mergeRound(h64, v3); - h64 = XXH64_mergeRound(h64, v4); - - } else { - h64 = seed + XXH_PRIME64_5; - } - - h64 += (xxh_u64) len; - - return XXH64_finalize(h64, input, len, align); -} - - -/*! @ingroup xxh64_family */ -XXH_PUBLIC_API XXH64_hash_t XXH64 (const void* input, size_t len, XXH64_hash_t seed) -{ -#if 0 - /* Simple version, good for code maintenance, but unfortunately slow for small inputs */ - XXH64_state_t state; - XXH64_reset(&state, seed); - XXH64_update(&state, (const xxh_u8*)input, len); - return XXH64_digest(&state); -#else - if (XXH_FORCE_ALIGN_CHECK) { - if ((((size_t)input) & 7)==0) { /* Input is aligned, let's leverage the speed advantage */ - return XXH64_endian_align((const xxh_u8*)input, len, seed, XXH_aligned); - } } - - return XXH64_endian_align((const xxh_u8*)input, len, seed, XXH_unaligned); - -#endif -} - -/******* Hash Streaming *******/ - -/*! @ingroup xxh64_family*/ -XXH_PUBLIC_API XXH64_state_t* XXH64_createState(void) -{ - return (XXH64_state_t*)XXH_malloc(sizeof(XXH64_state_t)); -} -/*! @ingroup xxh64_family */ -XXH_PUBLIC_API XXH_errorcode XXH64_freeState(XXH64_state_t* statePtr) -{ - XXH_free(statePtr); - return XXH_OK; -} - -/*! @ingroup xxh64_family */ -XXH_PUBLIC_API void XXH64_copyState(XXH64_state_t* dstState, const XXH64_state_t* srcState) -{ - memcpy(dstState, srcState, sizeof(*dstState)); -} - -/*! @ingroup xxh64_family */ -XXH_PUBLIC_API XXH_errorcode XXH64_reset(XXH64_state_t* statePtr, XXH64_hash_t seed) -{ - XXH64_state_t state; /* use a local state to memcpy() in order to avoid strict-aliasing warnings */ - memset(&state, 0, sizeof(state)); - state.v1 = seed + XXH_PRIME64_1 + XXH_PRIME64_2; - state.v2 = seed + XXH_PRIME64_2; - state.v3 = seed + 0; - state.v4 = seed - XXH_PRIME64_1; - /* do not write into reserved64, might be removed in a future version */ - memcpy(statePtr, &state, sizeof(state) - sizeof(state.reserved64)); - return XXH_OK; -} - -/*! @ingroup xxh64_family */ -XXH_PUBLIC_API XXH_errorcode -XXH64_update (XXH64_state_t* state, const void* input, size_t len) -{ - if (input==NULL) -#if defined(XXH_ACCEPT_NULL_INPUT_POINTER) && (XXH_ACCEPT_NULL_INPUT_POINTER>=1) - return XXH_OK; -#else - return XXH_ERROR; -#endif - - { const xxh_u8* p = (const xxh_u8*)input; - const xxh_u8* const bEnd = p + len; - - state->total_len += len; - - if (state->memsize + len < 32) { /* fill in tmp buffer */ - XXH_memcpy(((xxh_u8*)state->mem64) + state->memsize, input, len); - state->memsize += (xxh_u32)len; - return XXH_OK; - } - - if (state->memsize) { /* tmp buffer is full */ - XXH_memcpy(((xxh_u8*)state->mem64) + state->memsize, input, 32-state->memsize); - state->v1 = XXH64_round(state->v1, XXH_readLE64(state->mem64+0)); - state->v2 = XXH64_round(state->v2, XXH_readLE64(state->mem64+1)); - state->v3 = XXH64_round(state->v3, XXH_readLE64(state->mem64+2)); - state->v4 = XXH64_round(state->v4, XXH_readLE64(state->mem64+3)); - p += 32 - state->memsize; - state->memsize = 0; - } - - if (p+32 <= bEnd) { - const xxh_u8* const limit = bEnd - 32; - xxh_u64 v1 = state->v1; - xxh_u64 v2 = state->v2; - xxh_u64 v3 = state->v3; - xxh_u64 v4 = state->v4; - - do { - v1 = XXH64_round(v1, XXH_readLE64(p)); p+=8; - v2 = XXH64_round(v2, XXH_readLE64(p)); p+=8; - v3 = XXH64_round(v3, XXH_readLE64(p)); p+=8; - v4 = XXH64_round(v4, XXH_readLE64(p)); p+=8; - } while (p<=limit); - - state->v1 = v1; - state->v2 = v2; - state->v3 = v3; - state->v4 = v4; - } - - if (p < bEnd) { - XXH_memcpy(state->mem64, p, (size_t)(bEnd-p)); - state->memsize = (unsigned)(bEnd-p); - } - } - - return XXH_OK; -} - - -/*! @ingroup xxh64_family */ -XXH_PUBLIC_API XXH64_hash_t XXH64_digest(const XXH64_state_t* state) -{ - xxh_u64 h64; - - if (state->total_len >= 32) { - xxh_u64 const v1 = state->v1; - xxh_u64 const v2 = state->v2; - xxh_u64 const v3 = state->v3; - xxh_u64 const v4 = state->v4; - - h64 = XXH_rotl64(v1, 1) + XXH_rotl64(v2, 7) + XXH_rotl64(v3, 12) + XXH_rotl64(v4, 18); - h64 = XXH64_mergeRound(h64, v1); - h64 = XXH64_mergeRound(h64, v2); - h64 = XXH64_mergeRound(h64, v3); - h64 = XXH64_mergeRound(h64, v4); - } else { - h64 = state->v3 /*seed*/ + XXH_PRIME64_5; - } - - h64 += (xxh_u64) state->total_len; - - return XXH64_finalize(h64, (const xxh_u8*)state->mem64, (size_t)state->total_len, XXH_aligned); -} - - -/******* Canonical representation *******/ - -/*! @ingroup xxh64_family */ -XXH_PUBLIC_API void XXH64_canonicalFromHash(XXH64_canonical_t* dst, XXH64_hash_t hash) -{ - XXH_STATIC_ASSERT(sizeof(XXH64_canonical_t) == sizeof(XXH64_hash_t)); - if (XXH_CPU_LITTLE_ENDIAN) hash = XXH_swap64(hash); - memcpy(dst, &hash, sizeof(*dst)); -} - -/*! @ingroup xxh64_family */ -XXH_PUBLIC_API XXH64_hash_t XXH64_hashFromCanonical(const XXH64_canonical_t* src) -{ - return XXH_readBE64(src); -} - - - -/* ********************************************************************* -* XXH3 -* New generation hash designed for speed on small keys and vectorization -************************************************************************ */ -/*! - * @} - * @defgroup xxh3_impl XXH3 implementation - * @ingroup impl - * @{ - */ - -/* === Compiler specifics === */ - -#if ((defined(sun) || defined(__sun)) && __cplusplus) /* Solaris includes __STDC_VERSION__ with C++. Tested with GCC 5.5 */ -# define XXH_RESTRICT /* disable */ -#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* >= C99 */ -# define XXH_RESTRICT restrict -#else -/* Note: it might be useful to define __restrict or __restrict__ for some C++ compilers */ -# define XXH_RESTRICT /* disable */ -#endif - -#if (defined(__GNUC__) && (__GNUC__ >= 3)) \ - || (defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 800)) \ - || defined(__clang__) -# define XXH_likely(x) __builtin_expect(x, 1) -# define XXH_unlikely(x) __builtin_expect(x, 0) -#else -# define XXH_likely(x) (x) -# define XXH_unlikely(x) (x) -#endif - -#if defined(__GNUC__) -# if defined(__AVX2__) -# include -# elif defined(__SSE2__) -# include -# elif defined(__ARM_NEON__) || defined(__ARM_NEON) -# define inline __inline__ /* circumvent a clang bug */ -# include -# undef inline -# endif -#elif defined(_MSC_VER) -# include -#endif - -/* - * One goal of XXH3 is to make it fast on both 32-bit and 64-bit, while - * remaining a true 64-bit/128-bit hash function. - * - * This is done by prioritizing a subset of 64-bit operations that can be - * emulated without too many steps on the average 32-bit machine. - * - * For example, these two lines seem similar, and run equally fast on 64-bit: - * - * xxh_u64 x; - * x ^= (x >> 47); // good - * x ^= (x >> 13); // bad - * - * However, to a 32-bit machine, there is a major difference. - * - * x ^= (x >> 47) looks like this: - * - * x.lo ^= (x.hi >> (47 - 32)); - * - * while x ^= (x >> 13) looks like this: - * - * // note: funnel shifts are not usually cheap. - * x.lo ^= (x.lo >> 13) | (x.hi << (32 - 13)); - * x.hi ^= (x.hi >> 13); - * - * The first one is significantly faster than the second, simply because the - * shift is larger than 32. This means: - * - All the bits we need are in the upper 32 bits, so we can ignore the lower - * 32 bits in the shift. - * - The shift result will always fit in the lower 32 bits, and therefore, - * we can ignore the upper 32 bits in the xor. - * - * Thanks to this optimization, XXH3 only requires these features to be efficient: - * - * - Usable unaligned access - * - A 32-bit or 64-bit ALU - * - If 32-bit, a decent ADC instruction - * - A 32 or 64-bit multiply with a 64-bit result - * - For the 128-bit variant, a decent byteswap helps short inputs. - * - * The first two are already required by XXH32, and almost all 32-bit and 64-bit - * platforms which can run XXH32 can run XXH3 efficiently. - * - * Thumb-1, the classic 16-bit only subset of ARM's instruction set, is one - * notable exception. - * - * First of all, Thumb-1 lacks support for the UMULL instruction which - * performs the important long multiply. This means numerous __aeabi_lmul - * calls. - * - * Second of all, the 8 functional registers are just not enough. - * Setup for __aeabi_lmul, byteshift loads, pointers, and all arithmetic need - * Lo registers, and this shuffling results in thousands more MOVs than A32. - * - * A32 and T32 don't have this limitation. They can access all 14 registers, - * do a 32->64 multiply with UMULL, and the flexible operand allowing free - * shifts is helpful, too. - * - * Therefore, we do a quick sanity check. - * - * If compiling Thumb-1 for a target which supports ARM instructions, we will - * emit a warning, as it is not a "sane" platform to compile for. - * - * Usually, if this happens, it is because of an accident and you probably need - * to specify -march, as you likely meant to compile for a newer architecture. - * - * Credit: large sections of the vectorial and asm source code paths - * have been contributed by @easyaspi314 - */ -#if defined(__thumb__) && !defined(__thumb2__) && defined(__ARM_ARCH_ISA_ARM) -# warning "XXH3 is highly inefficient without ARM or Thumb-2." -#endif - -/* ========================================== - * Vectorization detection - * ========================================== */ - -#ifdef XXH_DOXYGEN -/*! - * @ingroup tuning - * @brief Overrides the vectorization implementation chosen for XXH3. - * - * Can be defined to 0 to disable SIMD or any of the values mentioned in - * @ref XXH_VECTOR_TYPE. - * - * If this is not defined, it uses predefined macros to determine the best - * implementation. - */ -# define XXH_VECTOR XXH_SCALAR -/*! - * @ingroup tuning - * @brief Possible values for @ref XXH_VECTOR. - * - * Note that these are actually implemented as macros. - * - * If this is not defined, it is detected automatically. - * @ref XXH_X86DISPATCH overrides this. - */ -enum XXH_VECTOR_TYPE /* fake enum */ { - XXH_SCALAR = 0, /*!< Portable scalar version */ - XXH_SSE2 = 1, /*!< - * SSE2 for Pentium 4, Opteron, all x86_64. - * - * @note SSE2 is also guaranteed on Windows 10, macOS, and - * Android x86. - */ - XXH_AVX2 = 2, /*!< AVX2 for Haswell and Bulldozer */ - XXH_AVX512 = 3, /*!< AVX512 for Skylake and Icelake */ - XXH_NEON = 4, /*!< NEON for most ARMv7-A and all AArch64 */ - XXH_VSX = 5, /*!< VSX and ZVector for POWER8/z13 (64-bit) */ -}; -/*! - * @ingroup tuning - * @brief Selects the minimum alignment for XXH3's accumulators. - * - * When using SIMD, this should match the alignment reqired for said vector - * type, so, for example, 32 for AVX2. - * - * Default: Auto detected. - */ -# define XXH_ACC_ALIGN 8 -#endif - -/* Actual definition */ -#ifndef XXH_DOXYGEN -# define XXH_SCALAR 0 -# define XXH_SSE2 1 -# define XXH_AVX2 2 -# define XXH_AVX512 3 -# define XXH_NEON 4 -# define XXH_VSX 5 -#endif - -#ifndef XXH_VECTOR /* can be defined on command line */ -# if defined(__AVX512F__) -# define XXH_VECTOR XXH_AVX512 -# elif defined(__AVX2__) -# define XXH_VECTOR XXH_AVX2 -# elif defined(__SSE2__) || defined(_M_AMD64) || defined(_M_X64) || (defined(_M_IX86_FP) && (_M_IX86_FP == 2)) -# define XXH_VECTOR XXH_SSE2 -# elif defined(__GNUC__) /* msvc support maybe later */ \ - && (defined(__ARM_NEON__) || defined(__ARM_NEON)) \ - && (defined(__LITTLE_ENDIAN__) /* We only support little endian NEON */ \ - || (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)) -# define XXH_VECTOR XXH_NEON -# elif (defined(__PPC64__) && defined(__POWER8_VECTOR__)) \ - || (defined(__s390x__) && defined(__VEC__)) \ - && defined(__GNUC__) /* TODO: IBM XL */ -# define XXH_VECTOR XXH_VSX -# else -# define XXH_VECTOR XXH_SCALAR -# endif -#endif - -/* - * Controls the alignment of the accumulator, - * for compatibility with aligned vector loads, which are usually faster. - */ -#ifndef XXH_ACC_ALIGN -# if defined(XXH_X86DISPATCH) -# define XXH_ACC_ALIGN 64 /* for compatibility with avx512 */ -# elif XXH_VECTOR == XXH_SCALAR /* scalar */ -# define XXH_ACC_ALIGN 8 -# elif XXH_VECTOR == XXH_SSE2 /* sse2 */ -# define XXH_ACC_ALIGN 16 -# elif XXH_VECTOR == XXH_AVX2 /* avx2 */ -# define XXH_ACC_ALIGN 32 -# elif XXH_VECTOR == XXH_NEON /* neon */ -# define XXH_ACC_ALIGN 16 -# elif XXH_VECTOR == XXH_VSX /* vsx */ -# define XXH_ACC_ALIGN 16 -# elif XXH_VECTOR == XXH_AVX512 /* avx512 */ -# define XXH_ACC_ALIGN 64 -# endif -#endif - -#if defined(XXH_X86DISPATCH) || XXH_VECTOR == XXH_SSE2 \ - || XXH_VECTOR == XXH_AVX2 || XXH_VECTOR == XXH_AVX512 -# define XXH_SEC_ALIGN XXH_ACC_ALIGN -#else -# define XXH_SEC_ALIGN 8 -#endif - -/* - * UGLY HACK: - * GCC usually generates the best code with -O3 for xxHash. - * - * However, when targeting AVX2, it is overzealous in its unrolling resulting - * in code roughly 3/4 the speed of Clang. - * - * There are other issues, such as GCC splitting _mm256_loadu_si256 into - * _mm_loadu_si128 + _mm256_inserti128_si256. This is an optimization which - * only applies to Sandy and Ivy Bridge... which don't even support AVX2. - * - * That is why when compiling the AVX2 version, it is recommended to use either - * -O2 -mavx2 -march=haswell - * or - * -O2 -mavx2 -mno-avx256-split-unaligned-load - * for decent performance, or to use Clang instead. - * - * Fortunately, we can control the first one with a pragma that forces GCC into - * -O2, but the other one we can't control without "failed to inline always - * inline function due to target mismatch" warnings. - */ -#if XXH_VECTOR == XXH_AVX2 /* AVX2 */ \ - && defined(__GNUC__) && !defined(__clang__) /* GCC, not Clang */ \ - && defined(__OPTIMIZE__) && !defined(__OPTIMIZE_SIZE__) /* respect -O0 and -Os */ -# pragma GCC push_options -# pragma GCC optimize("-O2") -#endif - - -#if XXH_VECTOR == XXH_NEON -/* - * NEON's setup for vmlal_u32 is a little more complicated than it is on - * SSE2, AVX2, and VSX. - * - * While PMULUDQ and VMULEUW both perform a mask, VMLAL.U32 performs an upcast. - * - * To do the same operation, the 128-bit 'Q' register needs to be split into - * two 64-bit 'D' registers, performing this operation:: - * - * [ a | b ] - * | '---------. .--------' | - * | x | - * | .---------' '--------. | - * [ a & 0xFFFFFFFF | b & 0xFFFFFFFF ],[ a >> 32 | b >> 32 ] - * - * Due to significant changes in aarch64, the fastest method for aarch64 is - * completely different than the fastest method for ARMv7-A. - * - * ARMv7-A treats D registers as unions overlaying Q registers, so modifying - * D11 will modify the high half of Q5. This is similar to how modifying AH - * will only affect bits 8-15 of AX on x86. - * - * VZIP takes two registers, and puts even lanes in one register and odd lanes - * in the other. - * - * On ARMv7-A, this strangely modifies both parameters in place instead of - * taking the usual 3-operand form. - * - * Therefore, if we want to do this, we can simply use a D-form VZIP.32 on the - * lower and upper halves of the Q register to end up with the high and low - * halves where we want - all in one instruction. - * - * vzip.32 d10, d11 @ d10 = { d10[0], d11[0] }; d11 = { d10[1], d11[1] } - * - * Unfortunately we need inline assembly for this: Instructions modifying two - * registers at once is not possible in GCC or Clang's IR, and they have to - * create a copy. - * - * aarch64 requires a different approach. - * - * In order to make it easier to write a decent compiler for aarch64, many - * quirks were removed, such as conditional execution. - * - * NEON was also affected by this. - * - * aarch64 cannot access the high bits of a Q-form register, and writes to a - * D-form register zero the high bits, similar to how writes to W-form scalar - * registers (or DWORD registers on x86_64) work. - * - * The formerly free vget_high intrinsics now require a vext (with a few - * exceptions) - * - * Additionally, VZIP was replaced by ZIP1 and ZIP2, which are the equivalent - * of PUNPCKL* and PUNPCKH* in SSE, respectively, in order to only modify one - * operand. - * - * The equivalent of the VZIP.32 on the lower and upper halves would be this - * mess: - * - * ext v2.4s, v0.4s, v0.4s, #2 // v2 = { v0[2], v0[3], v0[0], v0[1] } - * zip1 v1.2s, v0.2s, v2.2s // v1 = { v0[0], v2[0] } - * zip2 v0.2s, v0.2s, v1.2s // v0 = { v0[1], v2[1] } - * - * Instead, we use a literal downcast, vmovn_u64 (XTN), and vshrn_n_u64 (SHRN): - * - * shrn v1.2s, v0.2d, #32 // v1 = (uint32x2_t)(v0 >> 32); - * xtn v0.2s, v0.2d // v0 = (uint32x2_t)(v0 & 0xFFFFFFFF); - * - * This is available on ARMv7-A, but is less efficient than a single VZIP.32. - */ - -/*! - * Function-like macro: - * void XXH_SPLIT_IN_PLACE(uint64x2_t &in, uint32x2_t &outLo, uint32x2_t &outHi) - * { - * outLo = (uint32x2_t)(in & 0xFFFFFFFF); - * outHi = (uint32x2_t)(in >> 32); - * in = UNDEFINED; - * } - */ -# if !defined(XXH_NO_VZIP_HACK) /* define to disable */ \ - && defined(__GNUC__) \ - && !defined(__aarch64__) && !defined(__arm64__) -# define XXH_SPLIT_IN_PLACE(in, outLo, outHi) \ - do { \ - /* Undocumented GCC/Clang operand modifier: %e0 = lower D half, %f0 = upper D half */ \ - /* https://github.com/gcc-mirror/gcc/blob/38cf91e5/gcc/config/arm/arm.c#L22486 */ \ - /* https://github.com/llvm-mirror/llvm/blob/2c4ca683/lib/Target/ARM/ARMAsmPrinter.cpp#L399 */ \ - __asm__("vzip.32 %e0, %f0" : "+w" (in)); \ - (outLo) = vget_low_u32 (vreinterpretq_u32_u64(in)); \ - (outHi) = vget_high_u32(vreinterpretq_u32_u64(in)); \ - } while (0) -# else -# define XXH_SPLIT_IN_PLACE(in, outLo, outHi) \ - do { \ - (outLo) = vmovn_u64 (in); \ - (outHi) = vshrn_n_u64 ((in), 32); \ - } while (0) -# endif -#endif /* XXH_VECTOR == XXH_NEON */ - -/* - * VSX and Z Vector helpers. - * - * This is very messy, and any pull requests to clean this up are welcome. - * - * There are a lot of problems with supporting VSX and s390x, due to - * inconsistent intrinsics, spotty coverage, and multiple endiannesses. - */ -#if XXH_VECTOR == XXH_VSX -# if defined(__s390x__) -# include -# else -/* gcc's altivec.h can have the unwanted consequence to unconditionally - * #define bool, vector, and pixel keywords, - * with bad consequences for programs already using these keywords for other purposes. - * The paragraph defining these macros is skipped when __APPLE_ALTIVEC__ is defined. - * __APPLE_ALTIVEC__ is _generally_ defined automatically by the compiler, - * but it seems that, in some cases, it isn't. - * Force the build macro to be defined, so that keywords are not altered. - */ -# if defined(__GNUC__) && !defined(__APPLE_ALTIVEC__) -# define __APPLE_ALTIVEC__ -# endif -# include -# endif - -typedef __vector unsigned long long xxh_u64x2; -typedef __vector unsigned char xxh_u8x16; -typedef __vector unsigned xxh_u32x4; - -# ifndef XXH_VSX_BE -# if defined(__BIG_ENDIAN__) \ - || (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) -# define XXH_VSX_BE 1 -# elif defined(__VEC_ELEMENT_REG_ORDER__) && __VEC_ELEMENT_REG_ORDER__ == __ORDER_BIG_ENDIAN__ -# warning "-maltivec=be is not recommended. Please use native endianness." -# define XXH_VSX_BE 1 -# else -# define XXH_VSX_BE 0 -# endif -# endif /* !defined(XXH_VSX_BE) */ - -# if XXH_VSX_BE -# if defined(__POWER9_VECTOR__) || (defined(__clang__) && defined(__s390x__)) -# define XXH_vec_revb vec_revb -# else -/*! - * A polyfill for POWER9's vec_revb(). - */ -XXH_FORCE_INLINE xxh_u64x2 XXH_vec_revb(xxh_u64x2 val) -{ - xxh_u8x16 const vByteSwap = { 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01, 0x00, - 0x0F, 0x0E, 0x0D, 0x0C, 0x0B, 0x0A, 0x09, 0x08 }; - return vec_perm(val, val, vByteSwap); -} -# endif -# endif /* XXH_VSX_BE */ - -/*! - * Performs an unaligned vector load and byte swaps it on big endian. - */ -XXH_FORCE_INLINE xxh_u64x2 XXH_vec_loadu(const void *ptr) -{ - xxh_u64x2 ret; - memcpy(&ret, ptr, sizeof(xxh_u64x2)); -# if XXH_VSX_BE - ret = XXH_vec_revb(ret); -# endif - return ret; -} - -/* - * vec_mulo and vec_mule are very problematic intrinsics on PowerPC - * - * These intrinsics weren't added until GCC 8, despite existing for a while, - * and they are endian dependent. Also, their meaning swap depending on version. - * */ -# if defined(__s390x__) - /* s390x is always big endian, no issue on this platform */ -# define XXH_vec_mulo vec_mulo -# define XXH_vec_mule vec_mule -# elif defined(__clang__) && XXH_HAS_BUILTIN(__builtin_altivec_vmuleuw) -/* Clang has a better way to control this, we can just use the builtin which doesn't swap. */ -# define XXH_vec_mulo __builtin_altivec_vmulouw -# define XXH_vec_mule __builtin_altivec_vmuleuw -# else -/* gcc needs inline assembly */ -/* Adapted from https://github.com/google/highwayhash/blob/master/highwayhash/hh_vsx.h. */ -XXH_FORCE_INLINE xxh_u64x2 XXH_vec_mulo(xxh_u32x4 a, xxh_u32x4 b) -{ - xxh_u64x2 result; - __asm__("vmulouw %0, %1, %2" : "=v" (result) : "v" (a), "v" (b)); - return result; -} -XXH_FORCE_INLINE xxh_u64x2 XXH_vec_mule(xxh_u32x4 a, xxh_u32x4 b) -{ - xxh_u64x2 result; - __asm__("vmuleuw %0, %1, %2" : "=v" (result) : "v" (a), "v" (b)); - return result; -} -# endif /* XXH_vec_mulo, XXH_vec_mule */ -#endif /* XXH_VECTOR == XXH_VSX */ - - -/* prefetch - * can be disabled, by declaring XXH_NO_PREFETCH build macro */ -#if defined(XXH_NO_PREFETCH) -# define XXH_PREFETCH(ptr) (void)(ptr) /* disabled */ -#else -# if defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86)) /* _mm_prefetch() not defined outside of x86/x64 */ -# include /* https://msdn.microsoft.com/fr-fr/library/84szxsww(v=vs.90).aspx */ -# define XXH_PREFETCH(ptr) _mm_prefetch((const char*)(ptr), _MM_HINT_T0) -# elif defined(__GNUC__) && ( (__GNUC__ >= 4) || ( (__GNUC__ == 3) && (__GNUC_MINOR__ >= 1) ) ) -# define XXH_PREFETCH(ptr) __builtin_prefetch((ptr), 0 /* rw==read */, 3 /* locality */) -# else -# define XXH_PREFETCH(ptr) (void)(ptr) /* disabled */ -# endif -#endif /* XXH_NO_PREFETCH */ - - -/* ========================================== - * XXH3 default settings - * ========================================== */ - -#define XXH_SECRET_DEFAULT_SIZE 192 /* minimum XXH3_SECRET_SIZE_MIN */ - -#if (XXH_SECRET_DEFAULT_SIZE < XXH3_SECRET_SIZE_MIN) -# error "default keyset is not large enough" -#endif - -/*! Pseudorandom secret taken directly from FARSH. */ -XXH_ALIGN(64) static const xxh_u8 XXH3_kSecret[XXH_SECRET_DEFAULT_SIZE] = { - 0xb8, 0xfe, 0x6c, 0x39, 0x23, 0xa4, 0x4b, 0xbe, 0x7c, 0x01, 0x81, 0x2c, 0xf7, 0x21, 0xad, 0x1c, - 0xde, 0xd4, 0x6d, 0xe9, 0x83, 0x90, 0x97, 0xdb, 0x72, 0x40, 0xa4, 0xa4, 0xb7, 0xb3, 0x67, 0x1f, - 0xcb, 0x79, 0xe6, 0x4e, 0xcc, 0xc0, 0xe5, 0x78, 0x82, 0x5a, 0xd0, 0x7d, 0xcc, 0xff, 0x72, 0x21, - 0xb8, 0x08, 0x46, 0x74, 0xf7, 0x43, 0x24, 0x8e, 0xe0, 0x35, 0x90, 0xe6, 0x81, 0x3a, 0x26, 0x4c, - 0x3c, 0x28, 0x52, 0xbb, 0x91, 0xc3, 0x00, 0xcb, 0x88, 0xd0, 0x65, 0x8b, 0x1b, 0x53, 0x2e, 0xa3, - 0x71, 0x64, 0x48, 0x97, 0xa2, 0x0d, 0xf9, 0x4e, 0x38, 0x19, 0xef, 0x46, 0xa9, 0xde, 0xac, 0xd8, - 0xa8, 0xfa, 0x76, 0x3f, 0xe3, 0x9c, 0x34, 0x3f, 0xf9, 0xdc, 0xbb, 0xc7, 0xc7, 0x0b, 0x4f, 0x1d, - 0x8a, 0x51, 0xe0, 0x4b, 0xcd, 0xb4, 0x59, 0x31, 0xc8, 0x9f, 0x7e, 0xc9, 0xd9, 0x78, 0x73, 0x64, - 0xea, 0xc5, 0xac, 0x83, 0x34, 0xd3, 0xeb, 0xc3, 0xc5, 0x81, 0xa0, 0xff, 0xfa, 0x13, 0x63, 0xeb, - 0x17, 0x0d, 0xdd, 0x51, 0xb7, 0xf0, 0xda, 0x49, 0xd3, 0x16, 0x55, 0x26, 0x29, 0xd4, 0x68, 0x9e, - 0x2b, 0x16, 0xbe, 0x58, 0x7d, 0x47, 0xa1, 0xfc, 0x8f, 0xf8, 0xb8, 0xd1, 0x7a, 0xd0, 0x31, 0xce, - 0x45, 0xcb, 0x3a, 0x8f, 0x95, 0x16, 0x04, 0x28, 0xaf, 0xd7, 0xfb, 0xca, 0xbb, 0x4b, 0x40, 0x7e, -}; - - -#ifdef XXH_OLD_NAMES -# define kSecret XXH3_kSecret -#endif - -#ifdef XXH_DOXYGEN -/*! - * @brief Calculates a 32-bit to 64-bit long multiply. - * - * Implemented as a macro. - * - * Wraps `__emulu` on MSVC x86 because it tends to call `__allmul` when it doesn't - * need to (but it shouldn't need to anyways, it is about 7 instructions to do - * a 64x64 multiply...). Since we know that this will _always_ emit `MULL`, we - * use that instead of the normal method. - * - * If you are compiling for platforms like Thumb-1 and don't have a better option, - * you may also want to write your own long multiply routine here. - * - * @param x, y Numbers to be multiplied - * @return 64-bit product of the low 32 bits of @p x and @p y. - */ -XXH_FORCE_INLINE xxh_u64 -XXH_mult32to64(xxh_u64 x, xxh_u64 y) -{ - return (x & 0xFFFFFFFF) * (y & 0xFFFFFFFF); -} -#elif defined(_MSC_VER) && defined(_M_IX86) -# include -# define XXH_mult32to64(x, y) __emulu((unsigned)(x), (unsigned)(y)) -#else -/* - * Downcast + upcast is usually better than masking on older compilers like - * GCC 4.2 (especially 32-bit ones), all without affecting newer compilers. - * - * The other method, (x & 0xFFFFFFFF) * (y & 0xFFFFFFFF), will AND both operands - * and perform a full 64x64 multiply -- entirely redundant on 32-bit. - */ -# define XXH_mult32to64(x, y) ((xxh_u64)(xxh_u32)(x) * (xxh_u64)(xxh_u32)(y)) -#endif - -/*! - * @brief Calculates a 64->128-bit long multiply. - * - * Uses `__uint128_t` and `_umul128` if available, otherwise uses a scalar - * version. - * - * @param lhs, rhs The 64-bit integers to be multiplied - * @return The 128-bit result represented in an @ref XXH128_hash_t. - */ -static XXH128_hash_t -XXH_mult64to128(xxh_u64 lhs, xxh_u64 rhs) -{ - /* - * GCC/Clang __uint128_t method. - * - * On most 64-bit targets, GCC and Clang define a __uint128_t type. - * This is usually the best way as it usually uses a native long 64-bit - * multiply, such as MULQ on x86_64 or MUL + UMULH on aarch64. - * - * Usually. - * - * Despite being a 32-bit platform, Clang (and emscripten) define this type - * despite not having the arithmetic for it. This results in a laggy - * compiler builtin call which calculates a full 128-bit multiply. - * In that case it is best to use the portable one. - * https://github.com/Cyan4973/xxHash/issues/211#issuecomment-515575677 - */ -#if defined(__GNUC__) && !defined(__wasm__) \ - && defined(__SIZEOF_INT128__) \ - || (defined(_INTEGRAL_MAX_BITS) && _INTEGRAL_MAX_BITS >= 128) - - __uint128_t const product = (__uint128_t)lhs * (__uint128_t)rhs; - XXH128_hash_t r128; - r128.low64 = (xxh_u64)(product); - r128.high64 = (xxh_u64)(product >> 64); - return r128; - - /* - * MSVC for x64's _umul128 method. - * - * xxh_u64 _umul128(xxh_u64 Multiplier, xxh_u64 Multiplicand, xxh_u64 *HighProduct); - * - * This compiles to single operand MUL on x64. - */ -#elif defined(_M_X64) || defined(_M_IA64) - -#ifndef _MSC_VER -# pragma intrinsic(_umul128) -#endif - xxh_u64 product_high; - xxh_u64 const product_low = _umul128(lhs, rhs, &product_high); - XXH128_hash_t r128; - r128.low64 = product_low; - r128.high64 = product_high; - return r128; - -#else - /* - * Portable scalar method. Optimized for 32-bit and 64-bit ALUs. - * - * This is a fast and simple grade school multiply, which is shown below - * with base 10 arithmetic instead of base 0x100000000. - * - * 9 3 // D2 lhs = 93 - * x 7 5 // D2 rhs = 75 - * ---------- - * 1 5 // D2 lo_lo = (93 % 10) * (75 % 10) = 15 - * 4 5 | // D2 hi_lo = (93 / 10) * (75 % 10) = 45 - * 2 1 | // D2 lo_hi = (93 % 10) * (75 / 10) = 21 - * + 6 3 | | // D2 hi_hi = (93 / 10) * (75 / 10) = 63 - * --------- - * 2 7 | // D2 cross = (15 / 10) + (45 % 10) + 21 = 27 - * + 6 7 | | // D2 upper = (27 / 10) + (45 / 10) + 63 = 67 - * --------- - * 6 9 7 5 // D4 res = (27 * 10) + (15 % 10) + (67 * 100) = 6975 - * - * The reasons for adding the products like this are: - * 1. It avoids manual carry tracking. Just like how - * (9 * 9) + 9 + 9 = 99, the same applies with this for UINT64_MAX. - * This avoids a lot of complexity. - * - * 2. It hints for, and on Clang, compiles to, the powerful UMAAL - * instruction available in ARM's Digital Signal Processing extension - * in 32-bit ARMv6 and later, which is shown below: - * - * void UMAAL(xxh_u32 *RdLo, xxh_u32 *RdHi, xxh_u32 Rn, xxh_u32 Rm) - * { - * xxh_u64 product = (xxh_u64)*RdLo * (xxh_u64)*RdHi + Rn + Rm; - * *RdLo = (xxh_u32)(product & 0xFFFFFFFF); - * *RdHi = (xxh_u32)(product >> 32); - * } - * - * This instruction was designed for efficient long multiplication, and - * allows this to be calculated in only 4 instructions at speeds - * comparable to some 64-bit ALUs. - * - * 3. It isn't terrible on other platforms. Usually this will be a couple - * of 32-bit ADD/ADCs. - */ - - /* First calculate all of the cross products. */ - xxh_u64 const lo_lo = XXH_mult32to64(lhs & 0xFFFFFFFF, rhs & 0xFFFFFFFF); - xxh_u64 const hi_lo = XXH_mult32to64(lhs >> 32, rhs & 0xFFFFFFFF); - xxh_u64 const lo_hi = XXH_mult32to64(lhs & 0xFFFFFFFF, rhs >> 32); - xxh_u64 const hi_hi = XXH_mult32to64(lhs >> 32, rhs >> 32); - - /* Now add the products together. These will never overflow. */ - xxh_u64 const cross = (lo_lo >> 32) + (hi_lo & 0xFFFFFFFF) + lo_hi; - xxh_u64 const upper = (hi_lo >> 32) + (cross >> 32) + hi_hi; - xxh_u64 const lower = (cross << 32) | (lo_lo & 0xFFFFFFFF); - - XXH128_hash_t r128; - r128.low64 = lower; - r128.high64 = upper; - return r128; -#endif -} - -/*! - * @brief Calculates a 64-bit to 128-bit multiply, then XOR folds it. - * - * The reason for the separate function is to prevent passing too many structs - * around by value. This will hopefully inline the multiply, but we don't force it. - * - * @param lhs, rhs The 64-bit integers to multiply - * @return The low 64 bits of the product XOR'd by the high 64 bits. - * @see XXH_mult64to128() - */ -static xxh_u64 -XXH3_mul128_fold64(xxh_u64 lhs, xxh_u64 rhs) -{ - XXH128_hash_t product = XXH_mult64to128(lhs, rhs); - return product.low64 ^ product.high64; -} - -/*! Seems to produce slightly better code on GCC for some reason. */ -XXH_FORCE_INLINE xxh_u64 XXH_xorshift64(xxh_u64 v64, int shift) -{ - XXH_ASSERT(0 <= shift && shift < 64); - return v64 ^ (v64 >> shift); -} - -/* - * This is a fast avalanche stage, - * suitable when input bits are already partially mixed - */ -static XXH64_hash_t XXH3_avalanche(xxh_u64 h64) -{ - h64 = XXH_xorshift64(h64, 37); - h64 *= 0x165667919E3779F9ULL; - h64 = XXH_xorshift64(h64, 32); - return h64; -} - -/* - * This is a stronger avalanche, - * inspired by Pelle Evensen's rrmxmx - * preferable when input has not been previously mixed - */ -static XXH64_hash_t XXH3_rrmxmx(xxh_u64 h64, xxh_u64 len) -{ - /* this mix is inspired by Pelle Evensen's rrmxmx */ - h64 ^= XXH_rotl64(h64, 49) ^ XXH_rotl64(h64, 24); - h64 *= 0x9FB21C651E98DF25ULL; - h64 ^= (h64 >> 35) + len ; - h64 *= 0x9FB21C651E98DF25ULL; - return XXH_xorshift64(h64, 28); -} - - -/* ========================================== - * Short keys - * ========================================== - * One of the shortcomings of XXH32 and XXH64 was that their performance was - * sub-optimal on short lengths. It used an iterative algorithm which strongly - * favored lengths that were a multiple of 4 or 8. - * - * Instead of iterating over individual inputs, we use a set of single shot - * functions which piece together a range of lengths and operate in constant time. - * - * Additionally, the number of multiplies has been significantly reduced. This - * reduces latency, especially when emulating 64-bit multiplies on 32-bit. - * - * Depending on the platform, this may or may not be faster than XXH32, but it - * is almost guaranteed to be faster than XXH64. - */ - -/* - * At very short lengths, there isn't enough input to fully hide secrets, or use - * the entire secret. - * - * There is also only a limited amount of mixing we can do before significantly - * impacting performance. - * - * Therefore, we use different sections of the secret and always mix two secret - * samples with an XOR. This should have no effect on performance on the - * seedless or withSeed variants because everything _should_ be constant folded - * by modern compilers. - * - * The XOR mixing hides individual parts of the secret and increases entropy. - * - * This adds an extra layer of strength for custom secrets. - */ -XXH_FORCE_INLINE XXH64_hash_t -XXH3_len_1to3_64b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) -{ - XXH_ASSERT(input != NULL); - XXH_ASSERT(1 <= len && len <= 3); - XXH_ASSERT(secret != NULL); - /* - * len = 1: combined = { input[0], 0x01, input[0], input[0] } - * len = 2: combined = { input[1], 0x02, input[0], input[1] } - * len = 3: combined = { input[2], 0x03, input[0], input[1] } - */ - { xxh_u8 const c1 = input[0]; - xxh_u8 const c2 = input[len >> 1]; - xxh_u8 const c3 = input[len - 1]; - xxh_u32 const combined = ((xxh_u32)c1 << 16) | ((xxh_u32)c2 << 24) - | ((xxh_u32)c3 << 0) | ((xxh_u32)len << 8); - xxh_u64 const bitflip = (XXH_readLE32(secret) ^ XXH_readLE32(secret+4)) + seed; - xxh_u64 const keyed = (xxh_u64)combined ^ bitflip; - return XXH64_avalanche(keyed); - } -} - -XXH_FORCE_INLINE XXH64_hash_t -XXH3_len_4to8_64b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) -{ - XXH_ASSERT(input != NULL); - XXH_ASSERT(secret != NULL); - XXH_ASSERT(4 <= len && len < 8); - seed ^= (xxh_u64)XXH_swap32((xxh_u32)seed) << 32; - { xxh_u32 const input1 = XXH_readLE32(input); - xxh_u32 const input2 = XXH_readLE32(input + len - 4); - xxh_u64 const bitflip = (XXH_readLE64(secret+8) ^ XXH_readLE64(secret+16)) - seed; - xxh_u64 const input64 = input2 + (((xxh_u64)input1) << 32); - xxh_u64 const keyed = input64 ^ bitflip; - return XXH3_rrmxmx(keyed, len); - } -} - -XXH_FORCE_INLINE XXH64_hash_t -XXH3_len_9to16_64b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) -{ - XXH_ASSERT(input != NULL); - XXH_ASSERT(secret != NULL); - XXH_ASSERT(8 <= len && len <= 16); - { xxh_u64 const bitflip1 = (XXH_readLE64(secret+24) ^ XXH_readLE64(secret+32)) + seed; - xxh_u64 const bitflip2 = (XXH_readLE64(secret+40) ^ XXH_readLE64(secret+48)) - seed; - xxh_u64 const input_lo = XXH_readLE64(input) ^ bitflip1; - xxh_u64 const input_hi = XXH_readLE64(input + len - 8) ^ bitflip2; - xxh_u64 const acc = len - + XXH_swap64(input_lo) + input_hi - + XXH3_mul128_fold64(input_lo, input_hi); - return XXH3_avalanche(acc); - } -} - -XXH_FORCE_INLINE XXH64_hash_t -XXH3_len_0to16_64b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) -{ - XXH_ASSERT(len <= 16); - { if (XXH_likely(len > 8)) return XXH3_len_9to16_64b(input, len, secret, seed); - if (XXH_likely(len >= 4)) return XXH3_len_4to8_64b(input, len, secret, seed); - if (len) return XXH3_len_1to3_64b(input, len, secret, seed); - return XXH64_avalanche(seed ^ (XXH_readLE64(secret+56) ^ XXH_readLE64(secret+64))); - } -} - -/* - * DISCLAIMER: There are known *seed-dependent* multicollisions here due to - * multiplication by zero, affecting hashes of lengths 17 to 240. - * - * However, they are very unlikely. - * - * Keep this in mind when using the unseeded XXH3_64bits() variant: As with all - * unseeded non-cryptographic hashes, it does not attempt to defend itself - * against specially crafted inputs, only random inputs. - * - * Compared to classic UMAC where a 1 in 2^31 chance of 4 consecutive bytes - * cancelling out the secret is taken an arbitrary number of times (addressed - * in XXH3_accumulate_512), this collision is very unlikely with random inputs - * and/or proper seeding: - * - * This only has a 1 in 2^63 chance of 8 consecutive bytes cancelling out, in a - * function that is only called up to 16 times per hash with up to 240 bytes of - * input. - * - * This is not too bad for a non-cryptographic hash function, especially with - * only 64 bit outputs. - * - * The 128-bit variant (which trades some speed for strength) is NOT affected - * by this, although it is always a good idea to use a proper seed if you care - * about strength. - */ -XXH_FORCE_INLINE xxh_u64 XXH3_mix16B(const xxh_u8* XXH_RESTRICT input, - const xxh_u8* XXH_RESTRICT secret, xxh_u64 seed64) -{ -#if defined(__GNUC__) && !defined(__clang__) /* GCC, not Clang */ \ - && defined(__i386__) && defined(__SSE2__) /* x86 + SSE2 */ \ - && !defined(XXH_ENABLE_AUTOVECTORIZE) /* Define to disable like XXH32 hack */ - /* - * UGLY HACK: - * GCC for x86 tends to autovectorize the 128-bit multiply, resulting in - * slower code. - * - * By forcing seed64 into a register, we disrupt the cost model and - * cause it to scalarize. See `XXH32_round()` - * - * FIXME: Clang's output is still _much_ faster -- On an AMD Ryzen 3600, - * XXH3_64bits @ len=240 runs at 4.6 GB/s with Clang 9, but 3.3 GB/s on - * GCC 9.2, despite both emitting scalar code. - * - * GCC generates much better scalar code than Clang for the rest of XXH3, - * which is why finding a more optimal codepath is an interest. - */ - __asm__ ("" : "+r" (seed64)); -#endif - { xxh_u64 const input_lo = XXH_readLE64(input); - xxh_u64 const input_hi = XXH_readLE64(input+8); - return XXH3_mul128_fold64( - input_lo ^ (XXH_readLE64(secret) + seed64), - input_hi ^ (XXH_readLE64(secret+8) - seed64) - ); - } -} - -/* For mid range keys, XXH3 uses a Mum-hash variant. */ -XXH_FORCE_INLINE XXH64_hash_t -XXH3_len_17to128_64b(const xxh_u8* XXH_RESTRICT input, size_t len, - const xxh_u8* XXH_RESTRICT secret, size_t secretSize, - XXH64_hash_t seed) -{ - XXH_ASSERT(secretSize >= XXH3_SECRET_SIZE_MIN); (void)secretSize; - XXH_ASSERT(16 < len && len <= 128); - - { xxh_u64 acc = len * XXH_PRIME64_1; - if (len > 32) { - if (len > 64) { - if (len > 96) { - acc += XXH3_mix16B(input+48, secret+96, seed); - acc += XXH3_mix16B(input+len-64, secret+112, seed); - } - acc += XXH3_mix16B(input+32, secret+64, seed); - acc += XXH3_mix16B(input+len-48, secret+80, seed); - } - acc += XXH3_mix16B(input+16, secret+32, seed); - acc += XXH3_mix16B(input+len-32, secret+48, seed); - } - acc += XXH3_mix16B(input+0, secret+0, seed); - acc += XXH3_mix16B(input+len-16, secret+16, seed); - - return XXH3_avalanche(acc); - } -} - -#define XXH3_MIDSIZE_MAX 240 - -XXH_NO_INLINE XXH64_hash_t -XXH3_len_129to240_64b(const xxh_u8* XXH_RESTRICT input, size_t len, - const xxh_u8* XXH_RESTRICT secret, size_t secretSize, - XXH64_hash_t seed) -{ - XXH_ASSERT(secretSize >= XXH3_SECRET_SIZE_MIN); (void)secretSize; - XXH_ASSERT(128 < len && len <= XXH3_MIDSIZE_MAX); - - #define XXH3_MIDSIZE_STARTOFFSET 3 - #define XXH3_MIDSIZE_LASTOFFSET 17 - - { xxh_u64 acc = len * XXH_PRIME64_1; - int const nbRounds = (int)len / 16; - int i; - for (i=0; i<8; i++) { - acc += XXH3_mix16B(input+(16*i), secret+(16*i), seed); - } - acc = XXH3_avalanche(acc); - XXH_ASSERT(nbRounds >= 8); -#if defined(__clang__) /* Clang */ \ - && (defined(__ARM_NEON) || defined(__ARM_NEON__)) /* NEON */ \ - && !defined(XXH_ENABLE_AUTOVECTORIZE) /* Define to disable */ - /* - * UGLY HACK: - * Clang for ARMv7-A tries to vectorize this loop, similar to GCC x86. - * In everywhere else, it uses scalar code. - * - * For 64->128-bit multiplies, even if the NEON was 100% optimal, it - * would still be slower than UMAAL (see XXH_mult64to128). - * - * Unfortunately, Clang doesn't handle the long multiplies properly and - * converts them to the nonexistent "vmulq_u64" intrinsic, which is then - * scalarized into an ugly mess of VMOV.32 instructions. - * - * This mess is difficult to avoid without turning autovectorization - * off completely, but they are usually relatively minor and/or not - * worth it to fix. - * - * This loop is the easiest to fix, as unlike XXH32, this pragma - * _actually works_ because it is a loop vectorization instead of an - * SLP vectorization. - */ - #pragma clang loop vectorize(disable) -#endif - for (i=8 ; i < nbRounds; i++) { - acc += XXH3_mix16B(input+(16*i), secret+(16*(i-8)) + XXH3_MIDSIZE_STARTOFFSET, seed); - } - /* last bytes */ - acc += XXH3_mix16B(input + len - 16, secret + XXH3_SECRET_SIZE_MIN - XXH3_MIDSIZE_LASTOFFSET, seed); - return XXH3_avalanche(acc); - } -} - - -/* ======= Long Keys ======= */ - -#define XXH_STRIPE_LEN 64 -#define XXH_SECRET_CONSUME_RATE 8 /* nb of secret bytes consumed at each accumulation */ -#define XXH_ACC_NB (XXH_STRIPE_LEN / sizeof(xxh_u64)) - -#ifdef XXH_OLD_NAMES -# define STRIPE_LEN XXH_STRIPE_LEN -# define ACC_NB XXH_ACC_NB -#endif - -XXH_FORCE_INLINE void XXH_writeLE64(void* dst, xxh_u64 v64) -{ - if (!XXH_CPU_LITTLE_ENDIAN) v64 = XXH_swap64(v64); - memcpy(dst, &v64, sizeof(v64)); -} - -/* Several intrinsic functions below are supposed to accept __int64 as argument, - * as documented in https://software.intel.com/sites/landingpage/IntrinsicsGuide/ . - * However, several environments do not define __int64 type, - * requiring a workaround. - */ -#if !defined (__VMS) \ - && (defined (__cplusplus) \ - || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) ) - typedef int64_t xxh_i64; -#else - /* the following type must have a width of 64-bit */ - typedef long long xxh_i64; -#endif - -/* - * XXH3_accumulate_512 is the tightest loop for long inputs, and it is the most optimized. - * - * It is a hardened version of UMAC, based off of FARSH's implementation. - * - * This was chosen because it adapts quite well to 32-bit, 64-bit, and SIMD - * implementations, and it is ridiculously fast. - * - * We harden it by mixing the original input to the accumulators as well as the product. - * - * This means that in the (relatively likely) case of a multiply by zero, the - * original input is preserved. - * - * On 128-bit inputs, we swap 64-bit pairs when we add the input to improve - * cross-pollination, as otherwise the upper and lower halves would be - * essentially independent. - * - * This doesn't matter on 64-bit hashes since they all get merged together in - * the end, so we skip the extra step. - * - * Both XXH3_64bits and XXH3_128bits use this subroutine. - */ - -#if (XXH_VECTOR == XXH_AVX512) \ - || (defined(XXH_DISPATCH_AVX512) && XXH_DISPATCH_AVX512 != 0) - -#ifndef XXH_TARGET_AVX512 -# define XXH_TARGET_AVX512 /* disable attribute target */ -#endif - -XXH_FORCE_INLINE XXH_TARGET_AVX512 void -XXH3_accumulate_512_avx512(void* XXH_RESTRICT acc, - const void* XXH_RESTRICT input, - const void* XXH_RESTRICT secret) -{ - XXH_ALIGN(64) __m512i* const xacc = (__m512i *) acc; - XXH_ASSERT((((size_t)acc) & 63) == 0); - XXH_STATIC_ASSERT(XXH_STRIPE_LEN == sizeof(__m512i)); - - { - /* data_vec = input[0]; */ - __m512i const data_vec = _mm512_loadu_si512 (input); - /* key_vec = secret[0]; */ - __m512i const key_vec = _mm512_loadu_si512 (secret); - /* data_key = data_vec ^ key_vec; */ - __m512i const data_key = _mm512_xor_si512 (data_vec, key_vec); - /* data_key_lo = data_key >> 32; */ - __m512i const data_key_lo = _mm512_shuffle_epi32 (data_key, (_MM_PERM_ENUM)_MM_SHUFFLE(0, 3, 0, 1)); - /* product = (data_key & 0xffffffff) * (data_key_lo & 0xffffffff); */ - __m512i const product = _mm512_mul_epu32 (data_key, data_key_lo); - /* xacc[0] += swap(data_vec); */ - __m512i const data_swap = _mm512_shuffle_epi32(data_vec, (_MM_PERM_ENUM)_MM_SHUFFLE(1, 0, 3, 2)); - __m512i const sum = _mm512_add_epi64(*xacc, data_swap); - /* xacc[0] += product; */ - *xacc = _mm512_add_epi64(product, sum); - } -} - -/* - * XXH3_scrambleAcc: Scrambles the accumulators to improve mixing. - * - * Multiplication isn't perfect, as explained by Google in HighwayHash: - * - * // Multiplication mixes/scrambles bytes 0-7 of the 64-bit result to - * // varying degrees. In descending order of goodness, bytes - * // 3 4 2 5 1 6 0 7 have quality 228 224 164 160 100 96 36 32. - * // As expected, the upper and lower bytes are much worse. - * - * Source: https://github.com/google/highwayhash/blob/0aaf66b/highwayhash/hh_avx2.h#L291 - * - * Since our algorithm uses a pseudorandom secret to add some variance into the - * mix, we don't need to (or want to) mix as often or as much as HighwayHash does. - * - * This isn't as tight as XXH3_accumulate, but still written in SIMD to avoid - * extraction. - * - * Both XXH3_64bits and XXH3_128bits use this subroutine. - */ - -XXH_FORCE_INLINE XXH_TARGET_AVX512 void -XXH3_scrambleAcc_avx512(void* XXH_RESTRICT acc, const void* XXH_RESTRICT secret) -{ - XXH_ASSERT((((size_t)acc) & 63) == 0); - XXH_STATIC_ASSERT(XXH_STRIPE_LEN == sizeof(__m512i)); - { XXH_ALIGN(64) __m512i* const xacc = (__m512i*) acc; - const __m512i prime32 = _mm512_set1_epi32((int)XXH_PRIME32_1); - - /* xacc[0] ^= (xacc[0] >> 47) */ - __m512i const acc_vec = *xacc; - __m512i const shifted = _mm512_srli_epi64 (acc_vec, 47); - __m512i const data_vec = _mm512_xor_si512 (acc_vec, shifted); - /* xacc[0] ^= secret; */ - __m512i const key_vec = _mm512_loadu_si512 (secret); - __m512i const data_key = _mm512_xor_si512 (data_vec, key_vec); - - /* xacc[0] *= XXH_PRIME32_1; */ - __m512i const data_key_hi = _mm512_shuffle_epi32 (data_key, (_MM_PERM_ENUM)_MM_SHUFFLE(0, 3, 0, 1)); - __m512i const prod_lo = _mm512_mul_epu32 (data_key, prime32); - __m512i const prod_hi = _mm512_mul_epu32 (data_key_hi, prime32); - *xacc = _mm512_add_epi64(prod_lo, _mm512_slli_epi64(prod_hi, 32)); - } -} - -XXH_FORCE_INLINE XXH_TARGET_AVX512 void -XXH3_initCustomSecret_avx512(void* XXH_RESTRICT customSecret, xxh_u64 seed64) -{ - XXH_STATIC_ASSERT((XXH_SECRET_DEFAULT_SIZE & 63) == 0); - XXH_STATIC_ASSERT(XXH_SEC_ALIGN == 64); - XXH_ASSERT(((size_t)customSecret & 63) == 0); - (void)(&XXH_writeLE64); - { int const nbRounds = XXH_SECRET_DEFAULT_SIZE / sizeof(__m512i); - __m512i const seed = _mm512_mask_set1_epi64(_mm512_set1_epi64((xxh_i64)seed64), 0xAA, -(xxh_i64)seed64); - - XXH_ALIGN(64) const __m512i* const src = (const __m512i*) XXH3_kSecret; - XXH_ALIGN(64) __m512i* const dest = ( __m512i*) customSecret; - int i; - for (i=0; i < nbRounds; ++i) { - /* GCC has a bug, _mm512_stream_load_si512 accepts 'void*', not 'void const*', - * this will warn "discards ‘const’ qualifier". */ - union { - XXH_ALIGN(64) const __m512i* cp; - XXH_ALIGN(64) void* p; - } remote_const_void; - remote_const_void.cp = src + i; - dest[i] = _mm512_add_epi64(_mm512_stream_load_si512(remote_const_void.p), seed); - } } -} - -#endif - -#if (XXH_VECTOR == XXH_AVX2) \ - || (defined(XXH_DISPATCH_AVX2) && XXH_DISPATCH_AVX2 != 0) - -#ifndef XXH_TARGET_AVX2 -# define XXH_TARGET_AVX2 /* disable attribute target */ -#endif - -XXH_FORCE_INLINE XXH_TARGET_AVX2 void -XXH3_accumulate_512_avx2( void* XXH_RESTRICT acc, - const void* XXH_RESTRICT input, - const void* XXH_RESTRICT secret) -{ - XXH_ASSERT((((size_t)acc) & 31) == 0); - { XXH_ALIGN(32) __m256i* const xacc = (__m256i *) acc; - /* Unaligned. This is mainly for pointer arithmetic, and because - * _mm256_loadu_si256 requires a const __m256i * pointer for some reason. */ - const __m256i* const xinput = (const __m256i *) input; - /* Unaligned. This is mainly for pointer arithmetic, and because - * _mm256_loadu_si256 requires a const __m256i * pointer for some reason. */ - const __m256i* const xsecret = (const __m256i *) secret; - - size_t i; - for (i=0; i < XXH_STRIPE_LEN/sizeof(__m256i); i++) { - /* data_vec = xinput[i]; */ - __m256i const data_vec = _mm256_loadu_si256 (xinput+i); - /* key_vec = xsecret[i]; */ - __m256i const key_vec = _mm256_loadu_si256 (xsecret+i); - /* data_key = data_vec ^ key_vec; */ - __m256i const data_key = _mm256_xor_si256 (data_vec, key_vec); - /* data_key_lo = data_key >> 32; */ - __m256i const data_key_lo = _mm256_shuffle_epi32 (data_key, _MM_SHUFFLE(0, 3, 0, 1)); - /* product = (data_key & 0xffffffff) * (data_key_lo & 0xffffffff); */ - __m256i const product = _mm256_mul_epu32 (data_key, data_key_lo); - /* xacc[i] += swap(data_vec); */ - __m256i const data_swap = _mm256_shuffle_epi32(data_vec, _MM_SHUFFLE(1, 0, 3, 2)); - __m256i const sum = _mm256_add_epi64(xacc[i], data_swap); - /* xacc[i] += product; */ - xacc[i] = _mm256_add_epi64(product, sum); - } } -} - -XXH_FORCE_INLINE XXH_TARGET_AVX2 void -XXH3_scrambleAcc_avx2(void* XXH_RESTRICT acc, const void* XXH_RESTRICT secret) -{ - XXH_ASSERT((((size_t)acc) & 31) == 0); - { XXH_ALIGN(32) __m256i* const xacc = (__m256i*) acc; - /* Unaligned. This is mainly for pointer arithmetic, and because - * _mm256_loadu_si256 requires a const __m256i * pointer for some reason. */ - const __m256i* const xsecret = (const __m256i *) secret; - const __m256i prime32 = _mm256_set1_epi32((int)XXH_PRIME32_1); - - size_t i; - for (i=0; i < XXH_STRIPE_LEN/sizeof(__m256i); i++) { - /* xacc[i] ^= (xacc[i] >> 47) */ - __m256i const acc_vec = xacc[i]; - __m256i const shifted = _mm256_srli_epi64 (acc_vec, 47); - __m256i const data_vec = _mm256_xor_si256 (acc_vec, shifted); - /* xacc[i] ^= xsecret; */ - __m256i const key_vec = _mm256_loadu_si256 (xsecret+i); - __m256i const data_key = _mm256_xor_si256 (data_vec, key_vec); - - /* xacc[i] *= XXH_PRIME32_1; */ - __m256i const data_key_hi = _mm256_shuffle_epi32 (data_key, _MM_SHUFFLE(0, 3, 0, 1)); - __m256i const prod_lo = _mm256_mul_epu32 (data_key, prime32); - __m256i const prod_hi = _mm256_mul_epu32 (data_key_hi, prime32); - xacc[i] = _mm256_add_epi64(prod_lo, _mm256_slli_epi64(prod_hi, 32)); - } - } -} - -XXH_FORCE_INLINE XXH_TARGET_AVX2 void XXH3_initCustomSecret_avx2(void* XXH_RESTRICT customSecret, xxh_u64 seed64) -{ - XXH_STATIC_ASSERT((XXH_SECRET_DEFAULT_SIZE & 31) == 0); - XXH_STATIC_ASSERT((XXH_SECRET_DEFAULT_SIZE / sizeof(__m256i)) == 6); - XXH_STATIC_ASSERT(XXH_SEC_ALIGN <= 64); - (void)(&XXH_writeLE64); - XXH_PREFETCH(customSecret); - { __m256i const seed = _mm256_set_epi64x(-(xxh_i64)seed64, (xxh_i64)seed64, -(xxh_i64)seed64, (xxh_i64)seed64); - - XXH_ALIGN(64) const __m256i* const src = (const __m256i*) XXH3_kSecret; - XXH_ALIGN(64) __m256i* dest = ( __m256i*) customSecret; - -# if defined(__GNUC__) || defined(__clang__) - /* - * On GCC & Clang, marking 'dest' as modified will cause the compiler: - * - do not extract the secret from sse registers in the internal loop - * - use less common registers, and avoid pushing these reg into stack - * The asm hack causes Clang to assume that XXH3_kSecretPtr aliases with - * customSecret, and on aarch64, this prevented LDP from merging two - * loads together for free. Putting the loads together before the stores - * properly generates LDP. - */ - __asm__("" : "+r" (dest)); -# endif - - /* GCC -O2 need unroll loop manually */ - dest[0] = _mm256_add_epi64(_mm256_stream_load_si256(src+0), seed); - dest[1] = _mm256_add_epi64(_mm256_stream_load_si256(src+1), seed); - dest[2] = _mm256_add_epi64(_mm256_stream_load_si256(src+2), seed); - dest[3] = _mm256_add_epi64(_mm256_stream_load_si256(src+3), seed); - dest[4] = _mm256_add_epi64(_mm256_stream_load_si256(src+4), seed); - dest[5] = _mm256_add_epi64(_mm256_stream_load_si256(src+5), seed); - } -} - -#endif - -/* x86dispatch always generates SSE2 */ -#if (XXH_VECTOR == XXH_SSE2) || defined(XXH_X86DISPATCH) - -#ifndef XXH_TARGET_SSE2 -# define XXH_TARGET_SSE2 /* disable attribute target */ -#endif - -XXH_FORCE_INLINE XXH_TARGET_SSE2 void -XXH3_accumulate_512_sse2( void* XXH_RESTRICT acc, - const void* XXH_RESTRICT input, - const void* XXH_RESTRICT secret) -{ - /* SSE2 is just a half-scale version of the AVX2 version. */ - XXH_ASSERT((((size_t)acc) & 15) == 0); - { XXH_ALIGN(16) __m128i* const xacc = (__m128i *) acc; - /* Unaligned. This is mainly for pointer arithmetic, and because - * _mm_loadu_si128 requires a const __m128i * pointer for some reason. */ - const __m128i* const xinput = (const __m128i *) input; - /* Unaligned. This is mainly for pointer arithmetic, and because - * _mm_loadu_si128 requires a const __m128i * pointer for some reason. */ - const __m128i* const xsecret = (const __m128i *) secret; - - size_t i; - for (i=0; i < XXH_STRIPE_LEN/sizeof(__m128i); i++) { - /* data_vec = xinput[i]; */ - __m128i const data_vec = _mm_loadu_si128 (xinput+i); - /* key_vec = xsecret[i]; */ - __m128i const key_vec = _mm_loadu_si128 (xsecret+i); - /* data_key = data_vec ^ key_vec; */ - __m128i const data_key = _mm_xor_si128 (data_vec, key_vec); - /* data_key_lo = data_key >> 32; */ - __m128i const data_key_lo = _mm_shuffle_epi32 (data_key, _MM_SHUFFLE(0, 3, 0, 1)); - /* product = (data_key & 0xffffffff) * (data_key_lo & 0xffffffff); */ - __m128i const product = _mm_mul_epu32 (data_key, data_key_lo); - /* xacc[i] += swap(data_vec); */ - __m128i const data_swap = _mm_shuffle_epi32(data_vec, _MM_SHUFFLE(1,0,3,2)); - __m128i const sum = _mm_add_epi64(xacc[i], data_swap); - /* xacc[i] += product; */ - xacc[i] = _mm_add_epi64(product, sum); - } } -} - -XXH_FORCE_INLINE XXH_TARGET_SSE2 void -XXH3_scrambleAcc_sse2(void* XXH_RESTRICT acc, const void* XXH_RESTRICT secret) -{ - XXH_ASSERT((((size_t)acc) & 15) == 0); - { XXH_ALIGN(16) __m128i* const xacc = (__m128i*) acc; - /* Unaligned. This is mainly for pointer arithmetic, and because - * _mm_loadu_si128 requires a const __m128i * pointer for some reason. */ - const __m128i* const xsecret = (const __m128i *) secret; - const __m128i prime32 = _mm_set1_epi32((int)XXH_PRIME32_1); - - size_t i; - for (i=0; i < XXH_STRIPE_LEN/sizeof(__m128i); i++) { - /* xacc[i] ^= (xacc[i] >> 47) */ - __m128i const acc_vec = xacc[i]; - __m128i const shifted = _mm_srli_epi64 (acc_vec, 47); - __m128i const data_vec = _mm_xor_si128 (acc_vec, shifted); - /* xacc[i] ^= xsecret[i]; */ - __m128i const key_vec = _mm_loadu_si128 (xsecret+i); - __m128i const data_key = _mm_xor_si128 (data_vec, key_vec); - - /* xacc[i] *= XXH_PRIME32_1; */ - __m128i const data_key_hi = _mm_shuffle_epi32 (data_key, _MM_SHUFFLE(0, 3, 0, 1)); - __m128i const prod_lo = _mm_mul_epu32 (data_key, prime32); - __m128i const prod_hi = _mm_mul_epu32 (data_key_hi, prime32); - xacc[i] = _mm_add_epi64(prod_lo, _mm_slli_epi64(prod_hi, 32)); - } - } -} - -XXH_FORCE_INLINE XXH_TARGET_SSE2 void XXH3_initCustomSecret_sse2(void* XXH_RESTRICT customSecret, xxh_u64 seed64) -{ - XXH_STATIC_ASSERT((XXH_SECRET_DEFAULT_SIZE & 15) == 0); - (void)(&XXH_writeLE64); - { int const nbRounds = XXH_SECRET_DEFAULT_SIZE / sizeof(__m128i); - -# if defined(_MSC_VER) && defined(_M_IX86) && _MSC_VER < 1900 - // MSVC 32bit mode does not support _mm_set_epi64x before 2015 - XXH_ALIGN(16) const xxh_i64 seed64x2[2] = { (xxh_i64)seed64, -(xxh_i64)seed64 }; - __m128i const seed = _mm_load_si128((__m128i const*)seed64x2); -# else - __m128i const seed = _mm_set_epi64x(-(xxh_i64)seed64, (xxh_i64)seed64); -# endif - int i; - - XXH_ALIGN(64) const float* const src = (float const*) XXH3_kSecret; - XXH_ALIGN(XXH_SEC_ALIGN) __m128i* dest = (__m128i*) customSecret; -# if defined(__GNUC__) || defined(__clang__) - /* - * On GCC & Clang, marking 'dest' as modified will cause the compiler: - * - do not extract the secret from sse registers in the internal loop - * - use less common registers, and avoid pushing these reg into stack - */ - __asm__("" : "+r" (dest)); -# endif - - for (i=0; i < nbRounds; ++i) { - dest[i] = _mm_add_epi64(_mm_castps_si128(_mm_load_ps(src+i*4)), seed); - } } -} - -#endif - -#if (XXH_VECTOR == XXH_NEON) - -XXH_FORCE_INLINE void -XXH3_accumulate_512_neon( void* XXH_RESTRICT acc, - const void* XXH_RESTRICT input, - const void* XXH_RESTRICT secret) -{ - XXH_ASSERT((((size_t)acc) & 15) == 0); - { - XXH_ALIGN(16) uint64x2_t* const xacc = (uint64x2_t *) acc; - /* We don't use a uint32x4_t pointer because it causes bus errors on ARMv7. */ - uint8_t const* const xinput = (const uint8_t *) input; - uint8_t const* const xsecret = (const uint8_t *) secret; - - size_t i; - for (i=0; i < XXH_STRIPE_LEN / sizeof(uint64x2_t); i++) { - /* data_vec = xinput[i]; */ - uint8x16_t data_vec = vld1q_u8(xinput + (i * 16)); - /* key_vec = xsecret[i]; */ - uint8x16_t key_vec = vld1q_u8(xsecret + (i * 16)); - uint64x2_t data_key; - uint32x2_t data_key_lo, data_key_hi; - /* xacc[i] += swap(data_vec); */ - uint64x2_t const data64 = vreinterpretq_u64_u8(data_vec); - uint64x2_t const swapped = vextq_u64(data64, data64, 1); - xacc[i] = vaddq_u64 (xacc[i], swapped); - /* data_key = data_vec ^ key_vec; */ - data_key = vreinterpretq_u64_u8(veorq_u8(data_vec, key_vec)); - /* data_key_lo = (uint32x2_t) (data_key & 0xFFFFFFFF); - * data_key_hi = (uint32x2_t) (data_key >> 32); - * data_key = UNDEFINED; */ - XXH_SPLIT_IN_PLACE(data_key, data_key_lo, data_key_hi); - /* xacc[i] += (uint64x2_t) data_key_lo * (uint64x2_t) data_key_hi; */ - xacc[i] = vmlal_u32 (xacc[i], data_key_lo, data_key_hi); - - } - } -} - -XXH_FORCE_INLINE void -XXH3_scrambleAcc_neon(void* XXH_RESTRICT acc, const void* XXH_RESTRICT secret) -{ - XXH_ASSERT((((size_t)acc) & 15) == 0); - - { uint64x2_t* xacc = (uint64x2_t*) acc; - uint8_t const* xsecret = (uint8_t const*) secret; - uint32x2_t prime = vdup_n_u32 (XXH_PRIME32_1); - - size_t i; - for (i=0; i < XXH_STRIPE_LEN/sizeof(uint64x2_t); i++) { - /* xacc[i] ^= (xacc[i] >> 47); */ - uint64x2_t acc_vec = xacc[i]; - uint64x2_t shifted = vshrq_n_u64 (acc_vec, 47); - uint64x2_t data_vec = veorq_u64 (acc_vec, shifted); - - /* xacc[i] ^= xsecret[i]; */ - uint8x16_t key_vec = vld1q_u8(xsecret + (i * 16)); - uint64x2_t data_key = veorq_u64(data_vec, vreinterpretq_u64_u8(key_vec)); - - /* xacc[i] *= XXH_PRIME32_1 */ - uint32x2_t data_key_lo, data_key_hi; - /* data_key_lo = (uint32x2_t) (xacc[i] & 0xFFFFFFFF); - * data_key_hi = (uint32x2_t) (xacc[i] >> 32); - * xacc[i] = UNDEFINED; */ - XXH_SPLIT_IN_PLACE(data_key, data_key_lo, data_key_hi); - { /* - * prod_hi = (data_key >> 32) * XXH_PRIME32_1; - * - * Avoid vmul_u32 + vshll_n_u32 since Clang 6 and 7 will - * incorrectly "optimize" this: - * tmp = vmul_u32(vmovn_u64(a), vmovn_u64(b)); - * shifted = vshll_n_u32(tmp, 32); - * to this: - * tmp = "vmulq_u64"(a, b); // no such thing! - * shifted = vshlq_n_u64(tmp, 32); - * - * However, unlike SSE, Clang lacks a 64-bit multiply routine - * for NEON, and it scalarizes two 64-bit multiplies instead. - * - * vmull_u32 has the same timing as vmul_u32, and it avoids - * this bug completely. - * See https://bugs.llvm.org/show_bug.cgi?id=39967 - */ - uint64x2_t prod_hi = vmull_u32 (data_key_hi, prime); - /* xacc[i] = prod_hi << 32; */ - xacc[i] = vshlq_n_u64(prod_hi, 32); - /* xacc[i] += (prod_hi & 0xFFFFFFFF) * XXH_PRIME32_1; */ - xacc[i] = vmlal_u32(xacc[i], data_key_lo, prime); - } - } } -} - -#endif - -#if (XXH_VECTOR == XXH_VSX) - -XXH_FORCE_INLINE void -XXH3_accumulate_512_vsx( void* XXH_RESTRICT acc, - const void* XXH_RESTRICT input, - const void* XXH_RESTRICT secret) -{ - xxh_u64x2* const xacc = (xxh_u64x2*) acc; /* presumed aligned */ - xxh_u64x2 const* const xinput = (xxh_u64x2 const*) input; /* no alignment restriction */ - xxh_u64x2 const* const xsecret = (xxh_u64x2 const*) secret; /* no alignment restriction */ - xxh_u64x2 const v32 = { 32, 32 }; - size_t i; - for (i = 0; i < XXH_STRIPE_LEN / sizeof(xxh_u64x2); i++) { - /* data_vec = xinput[i]; */ - xxh_u64x2 const data_vec = XXH_vec_loadu(xinput + i); - /* key_vec = xsecret[i]; */ - xxh_u64x2 const key_vec = XXH_vec_loadu(xsecret + i); - xxh_u64x2 const data_key = data_vec ^ key_vec; - /* shuffled = (data_key << 32) | (data_key >> 32); */ - xxh_u32x4 const shuffled = (xxh_u32x4)vec_rl(data_key, v32); - /* product = ((xxh_u64x2)data_key & 0xFFFFFFFF) * ((xxh_u64x2)shuffled & 0xFFFFFFFF); */ - xxh_u64x2 const product = XXH_vec_mulo((xxh_u32x4)data_key, shuffled); - xacc[i] += product; - - /* swap high and low halves */ -#ifdef __s390x__ - xacc[i] += vec_permi(data_vec, data_vec, 2); -#else - xacc[i] += vec_xxpermdi(data_vec, data_vec, 2); -#endif - } -} - -XXH_FORCE_INLINE void -XXH3_scrambleAcc_vsx(void* XXH_RESTRICT acc, const void* XXH_RESTRICT secret) -{ - XXH_ASSERT((((size_t)acc) & 15) == 0); - - { xxh_u64x2* const xacc = (xxh_u64x2*) acc; - const xxh_u64x2* const xsecret = (const xxh_u64x2*) secret; - /* constants */ - xxh_u64x2 const v32 = { 32, 32 }; - xxh_u64x2 const v47 = { 47, 47 }; - xxh_u32x4 const prime = { XXH_PRIME32_1, XXH_PRIME32_1, XXH_PRIME32_1, XXH_PRIME32_1 }; - size_t i; - for (i = 0; i < XXH_STRIPE_LEN / sizeof(xxh_u64x2); i++) { - /* xacc[i] ^= (xacc[i] >> 47); */ - xxh_u64x2 const acc_vec = xacc[i]; - xxh_u64x2 const data_vec = acc_vec ^ (acc_vec >> v47); - - /* xacc[i] ^= xsecret[i]; */ - xxh_u64x2 const key_vec = XXH_vec_loadu(xsecret + i); - xxh_u64x2 const data_key = data_vec ^ key_vec; - - /* xacc[i] *= XXH_PRIME32_1 */ - /* prod_lo = ((xxh_u64x2)data_key & 0xFFFFFFFF) * ((xxh_u64x2)prime & 0xFFFFFFFF); */ - xxh_u64x2 const prod_even = XXH_vec_mule((xxh_u32x4)data_key, prime); - /* prod_hi = ((xxh_u64x2)data_key >> 32) * ((xxh_u64x2)prime >> 32); */ - xxh_u64x2 const prod_odd = XXH_vec_mulo((xxh_u32x4)data_key, prime); - xacc[i] = prod_odd + (prod_even << v32); - } } -} - -#endif - -/* scalar variants - universal */ - -XXH_FORCE_INLINE void -XXH3_accumulate_512_scalar(void* XXH_RESTRICT acc, - const void* XXH_RESTRICT input, - const void* XXH_RESTRICT secret) -{ - XXH_ALIGN(XXH_ACC_ALIGN) xxh_u64* const xacc = (xxh_u64*) acc; /* presumed aligned */ - const xxh_u8* const xinput = (const xxh_u8*) input; /* no alignment restriction */ - const xxh_u8* const xsecret = (const xxh_u8*) secret; /* no alignment restriction */ - size_t i; - XXH_ASSERT(((size_t)acc & (XXH_ACC_ALIGN-1)) == 0); - for (i=0; i < XXH_ACC_NB; i++) { - xxh_u64 const data_val = XXH_readLE64(xinput + 8*i); - xxh_u64 const data_key = data_val ^ XXH_readLE64(xsecret + i*8); - xacc[i ^ 1] += data_val; /* swap adjacent lanes */ - xacc[i] += XXH_mult32to64(data_key & 0xFFFFFFFF, data_key >> 32); - } -} - -XXH_FORCE_INLINE void -XXH3_scrambleAcc_scalar(void* XXH_RESTRICT acc, const void* XXH_RESTRICT secret) -{ - XXH_ALIGN(XXH_ACC_ALIGN) xxh_u64* const xacc = (xxh_u64*) acc; /* presumed aligned */ - const xxh_u8* const xsecret = (const xxh_u8*) secret; /* no alignment restriction */ - size_t i; - XXH_ASSERT((((size_t)acc) & (XXH_ACC_ALIGN-1)) == 0); - for (i=0; i < XXH_ACC_NB; i++) { - xxh_u64 const key64 = XXH_readLE64(xsecret + 8*i); - xxh_u64 acc64 = xacc[i]; - acc64 = XXH_xorshift64(acc64, 47); - acc64 ^= key64; - acc64 *= XXH_PRIME32_1; - xacc[i] = acc64; - } -} - -XXH_FORCE_INLINE void -XXH3_initCustomSecret_scalar(void* XXH_RESTRICT customSecret, xxh_u64 seed64) -{ - /* - * We need a separate pointer for the hack below, - * which requires a non-const pointer. - * Any decent compiler will optimize this out otherwise. - */ - const xxh_u8* kSecretPtr = XXH3_kSecret; - XXH_STATIC_ASSERT((XXH_SECRET_DEFAULT_SIZE & 15) == 0); - -#if defined(__clang__) && defined(__aarch64__) - /* - * UGLY HACK: - * Clang generates a bunch of MOV/MOVK pairs for aarch64, and they are - * placed sequentially, in order, at the top of the unrolled loop. - * - * While MOVK is great for generating constants (2 cycles for a 64-bit - * constant compared to 4 cycles for LDR), long MOVK chains stall the - * integer pipelines: - * I L S - * MOVK - * MOVK - * MOVK - * MOVK - * ADD - * SUB STR - * STR - * By forcing loads from memory (as the asm line causes Clang to assume - * that XXH3_kSecretPtr has been changed), the pipelines are used more - * efficiently: - * I L S - * LDR - * ADD LDR - * SUB STR - * STR - * XXH3_64bits_withSeed, len == 256, Snapdragon 835 - * without hack: 2654.4 MB/s - * with hack: 3202.9 MB/s - */ - __asm__("" : "+r" (kSecretPtr)); -#endif - /* - * Note: in debug mode, this overrides the asm optimization - * and Clang will emit MOVK chains again. - */ - XXH_ASSERT(kSecretPtr == XXH3_kSecret); - - { int const nbRounds = XXH_SECRET_DEFAULT_SIZE / 16; - int i; - for (i=0; i < nbRounds; i++) { - /* - * The asm hack causes Clang to assume that kSecretPtr aliases with - * customSecret, and on aarch64, this prevented LDP from merging two - * loads together for free. Putting the loads together before the stores - * properly generates LDP. - */ - xxh_u64 lo = XXH_readLE64(kSecretPtr + 16*i) + seed64; - xxh_u64 hi = XXH_readLE64(kSecretPtr + 16*i + 8) - seed64; - XXH_writeLE64((xxh_u8*)customSecret + 16*i, lo); - XXH_writeLE64((xxh_u8*)customSecret + 16*i + 8, hi); - } } -} - - -typedef void (*XXH3_f_accumulate_512)(void* XXH_RESTRICT, const void*, const void*); -typedef void (*XXH3_f_scrambleAcc)(void* XXH_RESTRICT, const void*); -typedef void (*XXH3_f_initCustomSecret)(void* XXH_RESTRICT, xxh_u64); - - -#if (XXH_VECTOR == XXH_AVX512) - -#define XXH3_accumulate_512 XXH3_accumulate_512_avx512 -#define XXH3_scrambleAcc XXH3_scrambleAcc_avx512 -#define XXH3_initCustomSecret XXH3_initCustomSecret_avx512 - -#elif (XXH_VECTOR == XXH_AVX2) - -#define XXH3_accumulate_512 XXH3_accumulate_512_avx2 -#define XXH3_scrambleAcc XXH3_scrambleAcc_avx2 -#define XXH3_initCustomSecret XXH3_initCustomSecret_avx2 - -#elif (XXH_VECTOR == XXH_SSE2) - -#define XXH3_accumulate_512 XXH3_accumulate_512_sse2 -#define XXH3_scrambleAcc XXH3_scrambleAcc_sse2 -#define XXH3_initCustomSecret XXH3_initCustomSecret_sse2 - -#elif (XXH_VECTOR == XXH_NEON) - -#define XXH3_accumulate_512 XXH3_accumulate_512_neon -#define XXH3_scrambleAcc XXH3_scrambleAcc_neon -#define XXH3_initCustomSecret XXH3_initCustomSecret_scalar - -#elif (XXH_VECTOR == XXH_VSX) - -#define XXH3_accumulate_512 XXH3_accumulate_512_vsx -#define XXH3_scrambleAcc XXH3_scrambleAcc_vsx -#define XXH3_initCustomSecret XXH3_initCustomSecret_scalar - -#else /* scalar */ - -#define XXH3_accumulate_512 XXH3_accumulate_512_scalar -#define XXH3_scrambleAcc XXH3_scrambleAcc_scalar -#define XXH3_initCustomSecret XXH3_initCustomSecret_scalar - -#endif - - - -#ifndef XXH_PREFETCH_DIST -# ifdef __clang__ -# define XXH_PREFETCH_DIST 320 -# else -# if (XXH_VECTOR == XXH_AVX512) -# define XXH_PREFETCH_DIST 512 -# else -# define XXH_PREFETCH_DIST 384 -# endif -# endif /* __clang__ */ -#endif /* XXH_PREFETCH_DIST */ - -/* - * XXH3_accumulate() - * Loops over XXH3_accumulate_512(). - * Assumption: nbStripes will not overflow the secret size - */ -XXH_FORCE_INLINE void -XXH3_accumulate( xxh_u64* XXH_RESTRICT acc, - const xxh_u8* XXH_RESTRICT input, - const xxh_u8* XXH_RESTRICT secret, - size_t nbStripes, - XXH3_f_accumulate_512 f_acc512) -{ - size_t n; - for (n = 0; n < nbStripes; n++ ) { - const xxh_u8* const in = input + n*XXH_STRIPE_LEN; - XXH_PREFETCH(in + XXH_PREFETCH_DIST); - f_acc512(acc, - in, - secret + n*XXH_SECRET_CONSUME_RATE); - } -} - -XXH_FORCE_INLINE void -XXH3_hashLong_internal_loop(xxh_u64* XXH_RESTRICT acc, - const xxh_u8* XXH_RESTRICT input, size_t len, - const xxh_u8* XXH_RESTRICT secret, size_t secretSize, - XXH3_f_accumulate_512 f_acc512, - XXH3_f_scrambleAcc f_scramble) -{ - size_t const nbStripesPerBlock = (secretSize - XXH_STRIPE_LEN) / XXH_SECRET_CONSUME_RATE; - size_t const block_len = XXH_STRIPE_LEN * nbStripesPerBlock; - size_t const nb_blocks = (len - 1) / block_len; - - size_t n; - - XXH_ASSERT(secretSize >= XXH3_SECRET_SIZE_MIN); - - for (n = 0; n < nb_blocks; n++) { - XXH3_accumulate(acc, input + n*block_len, secret, nbStripesPerBlock, f_acc512); - f_scramble(acc, secret + secretSize - XXH_STRIPE_LEN); - } - - /* last partial block */ - XXH_ASSERT(len > XXH_STRIPE_LEN); - { size_t const nbStripes = ((len - 1) - (block_len * nb_blocks)) / XXH_STRIPE_LEN; - XXH_ASSERT(nbStripes <= (secretSize / XXH_SECRET_CONSUME_RATE)); - XXH3_accumulate(acc, input + nb_blocks*block_len, secret, nbStripes, f_acc512); - - /* last stripe */ - { const xxh_u8* const p = input + len - XXH_STRIPE_LEN; -#define XXH_SECRET_LASTACC_START 7 /* not aligned on 8, last secret is different from acc & scrambler */ - f_acc512(acc, p, secret + secretSize - XXH_STRIPE_LEN - XXH_SECRET_LASTACC_START); - } } -} - -XXH_FORCE_INLINE xxh_u64 -XXH3_mix2Accs(const xxh_u64* XXH_RESTRICT acc, const xxh_u8* XXH_RESTRICT secret) -{ - return XXH3_mul128_fold64( - acc[0] ^ XXH_readLE64(secret), - acc[1] ^ XXH_readLE64(secret+8) ); -} - -static XXH64_hash_t -XXH3_mergeAccs(const xxh_u64* XXH_RESTRICT acc, const xxh_u8* XXH_RESTRICT secret, xxh_u64 start) -{ - xxh_u64 result64 = start; - size_t i = 0; - - for (i = 0; i < 4; i++) { - result64 += XXH3_mix2Accs(acc+2*i, secret + 16*i); -#if defined(__clang__) /* Clang */ \ - && (defined(__arm__) || defined(__thumb__)) /* ARMv7 */ \ - && (defined(__ARM_NEON) || defined(__ARM_NEON__)) /* NEON */ \ - && !defined(XXH_ENABLE_AUTOVECTORIZE) /* Define to disable */ - /* - * UGLY HACK: - * Prevent autovectorization on Clang ARMv7-a. Exact same problem as - * the one in XXH3_len_129to240_64b. Speeds up shorter keys > 240b. - * XXH3_64bits, len == 256, Snapdragon 835: - * without hack: 2063.7 MB/s - * with hack: 2560.7 MB/s - */ - __asm__("" : "+r" (result64)); -#endif - } - - return XXH3_avalanche(result64); -} - -#define XXH3_INIT_ACC { XXH_PRIME32_3, XXH_PRIME64_1, XXH_PRIME64_2, XXH_PRIME64_3, \ - XXH_PRIME64_4, XXH_PRIME32_2, XXH_PRIME64_5, XXH_PRIME32_1 } - -XXH_FORCE_INLINE XXH64_hash_t -XXH3_hashLong_64b_internal(const void* XXH_RESTRICT input, size_t len, - const void* XXH_RESTRICT secret, size_t secretSize, - XXH3_f_accumulate_512 f_acc512, - XXH3_f_scrambleAcc f_scramble) -{ - XXH_ALIGN(XXH_ACC_ALIGN) xxh_u64 acc[XXH_ACC_NB] = XXH3_INIT_ACC; - - XXH3_hashLong_internal_loop(acc, (const xxh_u8*)input, len, (const xxh_u8*)secret, secretSize, f_acc512, f_scramble); - - /* converge into final hash */ - XXH_STATIC_ASSERT(sizeof(acc) == 64); - /* do not align on 8, so that the secret is different from the accumulator */ -#define XXH_SECRET_MERGEACCS_START 11 - XXH_ASSERT(secretSize >= sizeof(acc) + XXH_SECRET_MERGEACCS_START); - return XXH3_mergeAccs(acc, (const xxh_u8*)secret + XXH_SECRET_MERGEACCS_START, (xxh_u64)len * XXH_PRIME64_1); -} - -/* - * It's important for performance that XXH3_hashLong is not inlined. - */ -XXH_NO_INLINE XXH64_hash_t -XXH3_hashLong_64b_withSecret(const void* XXH_RESTRICT input, size_t len, - XXH64_hash_t seed64, const xxh_u8* XXH_RESTRICT secret, size_t secretLen) -{ - (void)seed64; - return XXH3_hashLong_64b_internal(input, len, secret, secretLen, XXH3_accumulate_512, XXH3_scrambleAcc); -} - -/* - * It's important for performance that XXH3_hashLong is not inlined. - * Since the function is not inlined, the compiler may not be able to understand that, - * in some scenarios, its `secret` argument is actually a compile time constant. - * This variant enforces that the compiler can detect that, - * and uses this opportunity to streamline the generated code for better performance. - */ -XXH_NO_INLINE XXH64_hash_t -XXH3_hashLong_64b_default(const void* XXH_RESTRICT input, size_t len, - XXH64_hash_t seed64, const xxh_u8* XXH_RESTRICT secret, size_t secretLen) -{ - (void)seed64; (void)secret; (void)secretLen; - return XXH3_hashLong_64b_internal(input, len, XXH3_kSecret, sizeof(XXH3_kSecret), XXH3_accumulate_512, XXH3_scrambleAcc); -} - -/* - * XXH3_hashLong_64b_withSeed(): - * Generate a custom key based on alteration of default XXH3_kSecret with the seed, - * and then use this key for long mode hashing. - * - * This operation is decently fast but nonetheless costs a little bit of time. - * Try to avoid it whenever possible (typically when seed==0). - * - * It's important for performance that XXH3_hashLong is not inlined. Not sure - * why (uop cache maybe?), but the difference is large and easily measurable. - */ -XXH_FORCE_INLINE XXH64_hash_t -XXH3_hashLong_64b_withSeed_internal(const void* input, size_t len, - XXH64_hash_t seed, - XXH3_f_accumulate_512 f_acc512, - XXH3_f_scrambleAcc f_scramble, - XXH3_f_initCustomSecret f_initSec) -{ - if (seed == 0) - return XXH3_hashLong_64b_internal(input, len, - XXH3_kSecret, sizeof(XXH3_kSecret), - f_acc512, f_scramble); - { XXH_ALIGN(XXH_SEC_ALIGN) xxh_u8 secret[XXH_SECRET_DEFAULT_SIZE]; - f_initSec(secret, seed); - return XXH3_hashLong_64b_internal(input, len, secret, sizeof(secret), - f_acc512, f_scramble); - } -} - -/* - * It's important for performance that XXH3_hashLong is not inlined. - */ -XXH_NO_INLINE XXH64_hash_t -XXH3_hashLong_64b_withSeed(const void* input, size_t len, - XXH64_hash_t seed, const xxh_u8* secret, size_t secretLen) -{ - (void)secret; (void)secretLen; - return XXH3_hashLong_64b_withSeed_internal(input, len, seed, - XXH3_accumulate_512, XXH3_scrambleAcc, XXH3_initCustomSecret); -} - - -typedef XXH64_hash_t (*XXH3_hashLong64_f)(const void* XXH_RESTRICT, size_t, - XXH64_hash_t, const xxh_u8* XXH_RESTRICT, size_t); - -XXH_FORCE_INLINE XXH64_hash_t -XXH3_64bits_internal(const void* XXH_RESTRICT input, size_t len, - XXH64_hash_t seed64, const void* XXH_RESTRICT secret, size_t secretLen, - XXH3_hashLong64_f f_hashLong) -{ - XXH_ASSERT(secretLen >= XXH3_SECRET_SIZE_MIN); - /* - * If an action is to be taken if `secretLen` condition is not respected, - * it should be done here. - * For now, it's a contract pre-condition. - * Adding a check and a branch here would cost performance at every hash. - * Also, note that function signature doesn't offer room to return an error. - */ - if (len <= 16) - return XXH3_len_0to16_64b((const xxh_u8*)input, len, (const xxh_u8*)secret, seed64); - if (len <= 128) - return XXH3_len_17to128_64b((const xxh_u8*)input, len, (const xxh_u8*)secret, secretLen, seed64); - if (len <= XXH3_MIDSIZE_MAX) - return XXH3_len_129to240_64b((const xxh_u8*)input, len, (const xxh_u8*)secret, secretLen, seed64); - return f_hashLong(input, len, seed64, (const xxh_u8*)secret, secretLen); -} - - -/* === Public entry point === */ - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH64_hash_t XXH3_64bits(const void* input, size_t len) -{ - return XXH3_64bits_internal(input, len, 0, XXH3_kSecret, sizeof(XXH3_kSecret), XXH3_hashLong_64b_default); -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH64_hash_t -XXH3_64bits_withSecret(const void* input, size_t len, const void* secret, size_t secretSize) -{ - return XXH3_64bits_internal(input, len, 0, secret, secretSize, XXH3_hashLong_64b_withSecret); -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH64_hash_t -XXH3_64bits_withSeed(const void* input, size_t len, XXH64_hash_t seed) -{ - return XXH3_64bits_internal(input, len, seed, XXH3_kSecret, sizeof(XXH3_kSecret), XXH3_hashLong_64b_withSeed); -} - - -/* === XXH3 streaming === */ - -/* - * Malloc's a pointer that is always aligned to align. - * - * This must be freed with `XXH_alignedFree()`. - * - * malloc typically guarantees 16 byte alignment on 64-bit systems and 8 byte - * alignment on 32-bit. This isn't enough for the 32 byte aligned loads in AVX2 - * or on 32-bit, the 16 byte aligned loads in SSE2 and NEON. - * - * This underalignment previously caused a rather obvious crash which went - * completely unnoticed due to XXH3_createState() not actually being tested. - * Credit to RedSpah for noticing this bug. - * - * The alignment is done manually: Functions like posix_memalign or _mm_malloc - * are avoided: To maintain portability, we would have to write a fallback - * like this anyways, and besides, testing for the existence of library - * functions without relying on external build tools is impossible. - * - * The method is simple: Overallocate, manually align, and store the offset - * to the original behind the returned pointer. - * - * Align must be a power of 2 and 8 <= align <= 128. - */ -static void* XXH_alignedMalloc(size_t s, size_t align) -{ - XXH_ASSERT(align <= 128 && align >= 8); /* range check */ - XXH_ASSERT((align & (align-1)) == 0); /* power of 2 */ - XXH_ASSERT(s != 0 && s < (s + align)); /* empty/overflow */ - { /* Overallocate to make room for manual realignment and an offset byte */ - xxh_u8* base = (xxh_u8*)XXH_malloc(s + align); - if (base != NULL) { - /* - * Get the offset needed to align this pointer. - * - * Even if the returned pointer is aligned, there will always be - * at least one byte to store the offset to the original pointer. - */ - size_t offset = align - ((size_t)base & (align - 1)); /* base % align */ - /* Add the offset for the now-aligned pointer */ - xxh_u8* ptr = base + offset; - - XXH_ASSERT((size_t)ptr % align == 0); - - /* Store the offset immediately before the returned pointer. */ - ptr[-1] = (xxh_u8)offset; - return ptr; - } - return NULL; - } -} -/* - * Frees an aligned pointer allocated by XXH_alignedMalloc(). Don't pass - * normal malloc'd pointers, XXH_alignedMalloc has a specific data layout. - */ -static void XXH_alignedFree(void* p) -{ - if (p != NULL) { - xxh_u8* ptr = (xxh_u8*)p; - /* Get the offset byte we added in XXH_malloc. */ - xxh_u8 offset = ptr[-1]; - /* Free the original malloc'd pointer */ - xxh_u8* base = ptr - offset; - XXH_free(base); - } -} -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH3_state_t* XXH3_createState(void) -{ - XXH3_state_t* const state = (XXH3_state_t*)XXH_alignedMalloc(sizeof(XXH3_state_t), 64); - if (state==NULL) return NULL; - XXH3_INITSTATE(state); - return state; -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH_errorcode XXH3_freeState(XXH3_state_t* statePtr) -{ - XXH_alignedFree(statePtr); - return XXH_OK; -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API void -XXH3_copyState(XXH3_state_t* dst_state, const XXH3_state_t* src_state) -{ - memcpy(dst_state, src_state, sizeof(*dst_state)); -} - -static void -XXH3_reset_internal(XXH3_state_t* statePtr, - XXH64_hash_t seed, - const void* secret, size_t secretSize) -{ - size_t const initStart = offsetof(XXH3_state_t, bufferedSize); - size_t const initLength = offsetof(XXH3_state_t, nbStripesPerBlock) - initStart; - XXH_ASSERT(offsetof(XXH3_state_t, nbStripesPerBlock) > initStart); - XXH_ASSERT(statePtr != NULL); - /* set members from bufferedSize to nbStripesPerBlock (excluded) to 0 */ - memset((char*)statePtr + initStart, 0, initLength); - statePtr->acc[0] = XXH_PRIME32_3; - statePtr->acc[1] = XXH_PRIME64_1; - statePtr->acc[2] = XXH_PRIME64_2; - statePtr->acc[3] = XXH_PRIME64_3; - statePtr->acc[4] = XXH_PRIME64_4; - statePtr->acc[5] = XXH_PRIME32_2; - statePtr->acc[6] = XXH_PRIME64_5; - statePtr->acc[7] = XXH_PRIME32_1; - statePtr->seed = seed; - statePtr->extSecret = (const unsigned char*)secret; - XXH_ASSERT(secretSize >= XXH3_SECRET_SIZE_MIN); - statePtr->secretLimit = secretSize - XXH_STRIPE_LEN; - statePtr->nbStripesPerBlock = statePtr->secretLimit / XXH_SECRET_CONSUME_RATE; -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH_errorcode -XXH3_64bits_reset(XXH3_state_t* statePtr) -{ - if (statePtr == NULL) return XXH_ERROR; - XXH3_reset_internal(statePtr, 0, XXH3_kSecret, XXH_SECRET_DEFAULT_SIZE); - return XXH_OK; -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH_errorcode -XXH3_64bits_reset_withSecret(XXH3_state_t* statePtr, const void* secret, size_t secretSize) -{ - if (statePtr == NULL) return XXH_ERROR; - XXH3_reset_internal(statePtr, 0, secret, secretSize); - if (secret == NULL) return XXH_ERROR; - if (secretSize < XXH3_SECRET_SIZE_MIN) return XXH_ERROR; - return XXH_OK; -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH_errorcode -XXH3_64bits_reset_withSeed(XXH3_state_t* statePtr, XXH64_hash_t seed) -{ - if (statePtr == NULL) return XXH_ERROR; - if (seed==0) return XXH3_64bits_reset(statePtr); - if (seed != statePtr->seed) XXH3_initCustomSecret(statePtr->customSecret, seed); - XXH3_reset_internal(statePtr, seed, NULL, XXH_SECRET_DEFAULT_SIZE); - return XXH_OK; -} - -/* Note : when XXH3_consumeStripes() is invoked, - * there must be a guarantee that at least one more byte must be consumed from input - * so that the function can blindly consume all stripes using the "normal" secret segment */ -XXH_FORCE_INLINE void -XXH3_consumeStripes(xxh_u64* XXH_RESTRICT acc, - size_t* XXH_RESTRICT nbStripesSoFarPtr, size_t nbStripesPerBlock, - const xxh_u8* XXH_RESTRICT input, size_t nbStripes, - const xxh_u8* XXH_RESTRICT secret, size_t secretLimit, - XXH3_f_accumulate_512 f_acc512, - XXH3_f_scrambleAcc f_scramble) -{ - XXH_ASSERT(nbStripes <= nbStripesPerBlock); /* can handle max 1 scramble per invocation */ - XXH_ASSERT(*nbStripesSoFarPtr < nbStripesPerBlock); - if (nbStripesPerBlock - *nbStripesSoFarPtr <= nbStripes) { - /* need a scrambling operation */ - size_t const nbStripesToEndofBlock = nbStripesPerBlock - *nbStripesSoFarPtr; - size_t const nbStripesAfterBlock = nbStripes - nbStripesToEndofBlock; - XXH3_accumulate(acc, input, secret + nbStripesSoFarPtr[0] * XXH_SECRET_CONSUME_RATE, nbStripesToEndofBlock, f_acc512); - f_scramble(acc, secret + secretLimit); - XXH3_accumulate(acc, input + nbStripesToEndofBlock * XXH_STRIPE_LEN, secret, nbStripesAfterBlock, f_acc512); - *nbStripesSoFarPtr = nbStripesAfterBlock; - } else { - XXH3_accumulate(acc, input, secret + nbStripesSoFarPtr[0] * XXH_SECRET_CONSUME_RATE, nbStripes, f_acc512); - *nbStripesSoFarPtr += nbStripes; - } -} - -/* - * Both XXH3_64bits_update and XXH3_128bits_update use this routine. - */ -XXH_FORCE_INLINE XXH_errorcode -XXH3_update(XXH3_state_t* state, - const xxh_u8* input, size_t len, - XXH3_f_accumulate_512 f_acc512, - XXH3_f_scrambleAcc f_scramble) -{ - if (input==NULL) -#if defined(XXH_ACCEPT_NULL_INPUT_POINTER) && (XXH_ACCEPT_NULL_INPUT_POINTER>=1) - return XXH_OK; -#else - return XXH_ERROR; -#endif - - { const xxh_u8* const bEnd = input + len; - const unsigned char* const secret = (state->extSecret == NULL) ? state->customSecret : state->extSecret; - - state->totalLen += len; - XXH_ASSERT(state->bufferedSize <= XXH3_INTERNALBUFFER_SIZE); - - if (state->bufferedSize + len <= XXH3_INTERNALBUFFER_SIZE) { /* fill in tmp buffer */ - XXH_memcpy(state->buffer + state->bufferedSize, input, len); - state->bufferedSize += (XXH32_hash_t)len; - return XXH_OK; - } - /* total input is now > XXH3_INTERNALBUFFER_SIZE */ - - #define XXH3_INTERNALBUFFER_STRIPES (XXH3_INTERNALBUFFER_SIZE / XXH_STRIPE_LEN) - XXH_STATIC_ASSERT(XXH3_INTERNALBUFFER_SIZE % XXH_STRIPE_LEN == 0); /* clean multiple */ - - /* - * Internal buffer is partially filled (always, except at beginning) - * Complete it, then consume it. - */ - if (state->bufferedSize) { - size_t const loadSize = XXH3_INTERNALBUFFER_SIZE - state->bufferedSize; - XXH_memcpy(state->buffer + state->bufferedSize, input, loadSize); - input += loadSize; - XXH3_consumeStripes(state->acc, - &state->nbStripesSoFar, state->nbStripesPerBlock, - state->buffer, XXH3_INTERNALBUFFER_STRIPES, - secret, state->secretLimit, - f_acc512, f_scramble); - state->bufferedSize = 0; - } - XXH_ASSERT(input < bEnd); - - /* Consume input by a multiple of internal buffer size */ - if (input+XXH3_INTERNALBUFFER_SIZE < bEnd) { - const xxh_u8* const limit = bEnd - XXH3_INTERNALBUFFER_SIZE; - do { - XXH3_consumeStripes(state->acc, - &state->nbStripesSoFar, state->nbStripesPerBlock, - input, XXH3_INTERNALBUFFER_STRIPES, - secret, state->secretLimit, - f_acc512, f_scramble); - input += XXH3_INTERNALBUFFER_SIZE; - } while (inputbuffer + sizeof(state->buffer) - XXH_STRIPE_LEN, input - XXH_STRIPE_LEN, XXH_STRIPE_LEN); - } - XXH_ASSERT(input < bEnd); - - /* Some remaining input (always) : buffer it */ - XXH_memcpy(state->buffer, input, (size_t)(bEnd-input)); - state->bufferedSize = (XXH32_hash_t)(bEnd-input); - } - - return XXH_OK; -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH_errorcode -XXH3_64bits_update(XXH3_state_t* state, const void* input, size_t len) -{ - return XXH3_update(state, (const xxh_u8*)input, len, - XXH3_accumulate_512, XXH3_scrambleAcc); -} - - -XXH_FORCE_INLINE void -XXH3_digest_long (XXH64_hash_t* acc, - const XXH3_state_t* state, - const unsigned char* secret) -{ - /* - * Digest on a local copy. This way, the state remains unaltered, and it can - * continue ingesting more input afterwards. - */ - memcpy(acc, state->acc, sizeof(state->acc)); - if (state->bufferedSize >= XXH_STRIPE_LEN) { - size_t const nbStripes = (state->bufferedSize - 1) / XXH_STRIPE_LEN; - size_t nbStripesSoFar = state->nbStripesSoFar; - XXH3_consumeStripes(acc, - &nbStripesSoFar, state->nbStripesPerBlock, - state->buffer, nbStripes, - secret, state->secretLimit, - XXH3_accumulate_512, XXH3_scrambleAcc); - /* last stripe */ - XXH3_accumulate_512(acc, - state->buffer + state->bufferedSize - XXH_STRIPE_LEN, - secret + state->secretLimit - XXH_SECRET_LASTACC_START); - } else { /* bufferedSize < XXH_STRIPE_LEN */ - xxh_u8 lastStripe[XXH_STRIPE_LEN]; - size_t const catchupSize = XXH_STRIPE_LEN - state->bufferedSize; - XXH_ASSERT(state->bufferedSize > 0); /* there is always some input buffered */ - memcpy(lastStripe, state->buffer + sizeof(state->buffer) - catchupSize, catchupSize); - memcpy(lastStripe + catchupSize, state->buffer, state->bufferedSize); - XXH3_accumulate_512(acc, - lastStripe, - secret + state->secretLimit - XXH_SECRET_LASTACC_START); - } -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH64_hash_t XXH3_64bits_digest (const XXH3_state_t* state) -{ - const unsigned char* const secret = (state->extSecret == NULL) ? state->customSecret : state->extSecret; - if (state->totalLen > XXH3_MIDSIZE_MAX) { - XXH_ALIGN(XXH_ACC_ALIGN) XXH64_hash_t acc[XXH_ACC_NB]; - XXH3_digest_long(acc, state, secret); - return XXH3_mergeAccs(acc, - secret + XXH_SECRET_MERGEACCS_START, - (xxh_u64)state->totalLen * XXH_PRIME64_1); - } - /* totalLen <= XXH3_MIDSIZE_MAX: digesting a short input */ - if (state->seed) - return XXH3_64bits_withSeed(state->buffer, (size_t)state->totalLen, state->seed); - return XXH3_64bits_withSecret(state->buffer, (size_t)(state->totalLen), - secret, state->secretLimit + XXH_STRIPE_LEN); -} - - -#define XXH_MIN(x, y) (((x) > (y)) ? (y) : (x)) - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API void -XXH3_generateSecret(void* secretBuffer, const void* customSeed, size_t customSeedSize) -{ - XXH_ASSERT(secretBuffer != NULL); - if (customSeedSize == 0) { - memcpy(secretBuffer, XXH3_kSecret, XXH_SECRET_DEFAULT_SIZE); - return; - } - XXH_ASSERT(customSeed != NULL); - - { size_t const segmentSize = sizeof(XXH128_hash_t); - size_t const nbSegments = XXH_SECRET_DEFAULT_SIZE / segmentSize; - XXH128_canonical_t scrambler; - XXH64_hash_t seeds[12]; - size_t segnb; - XXH_ASSERT(nbSegments == 12); - XXH_ASSERT(segmentSize * nbSegments == XXH_SECRET_DEFAULT_SIZE); /* exact multiple */ - XXH128_canonicalFromHash(&scrambler, XXH128(customSeed, customSeedSize, 0)); - - /* - * Copy customSeed to seeds[], truncating or repeating as necessary. - */ - { size_t toFill = XXH_MIN(customSeedSize, sizeof(seeds)); - size_t filled = toFill; - memcpy(seeds, customSeed, toFill); - while (filled < sizeof(seeds)) { - toFill = XXH_MIN(filled, sizeof(seeds) - filled); - memcpy((char*)seeds + filled, seeds, toFill); - filled += toFill; - } } - - /* generate secret */ - memcpy(secretBuffer, &scrambler, sizeof(scrambler)); - for (segnb=1; segnb < nbSegments; segnb++) { - size_t const segmentStart = segnb * segmentSize; - XXH128_canonical_t segment; - XXH128_canonicalFromHash(&segment, - XXH128(&scrambler, sizeof(scrambler), XXH_readLE64(seeds + segnb) + segnb) ); - memcpy((char*)secretBuffer + segmentStart, &segment, sizeof(segment)); - } } -} - - -/* ========================================== - * XXH3 128 bits (a.k.a XXH128) - * ========================================== - * XXH3's 128-bit variant has better mixing and strength than the 64-bit variant, - * even without counting the significantly larger output size. - * - * For example, extra steps are taken to avoid the seed-dependent collisions - * in 17-240 byte inputs (See XXH3_mix16B and XXH128_mix32B). - * - * This strength naturally comes at the cost of some speed, especially on short - * lengths. Note that longer hashes are about as fast as the 64-bit version - * due to it using only a slight modification of the 64-bit loop. - * - * XXH128 is also more oriented towards 64-bit machines. It is still extremely - * fast for a _128-bit_ hash on 32-bit (it usually clears XXH64). - */ - -XXH_FORCE_INLINE XXH128_hash_t -XXH3_len_1to3_128b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) -{ - /* A doubled version of 1to3_64b with different constants. */ - XXH_ASSERT(input != NULL); - XXH_ASSERT(1 <= len && len <= 3); - XXH_ASSERT(secret != NULL); - /* - * len = 1: combinedl = { input[0], 0x01, input[0], input[0] } - * len = 2: combinedl = { input[1], 0x02, input[0], input[1] } - * len = 3: combinedl = { input[2], 0x03, input[0], input[1] } - */ - { xxh_u8 const c1 = input[0]; - xxh_u8 const c2 = input[len >> 1]; - xxh_u8 const c3 = input[len - 1]; - xxh_u32 const combinedl = ((xxh_u32)c1 <<16) | ((xxh_u32)c2 << 24) - | ((xxh_u32)c3 << 0) | ((xxh_u32)len << 8); - xxh_u32 const combinedh = XXH_rotl32(XXH_swap32(combinedl), 13); - xxh_u64 const bitflipl = (XXH_readLE32(secret) ^ XXH_readLE32(secret+4)) + seed; - xxh_u64 const bitfliph = (XXH_readLE32(secret+8) ^ XXH_readLE32(secret+12)) - seed; - xxh_u64 const keyed_lo = (xxh_u64)combinedl ^ bitflipl; - xxh_u64 const keyed_hi = (xxh_u64)combinedh ^ bitfliph; - XXH128_hash_t h128; - h128.low64 = XXH64_avalanche(keyed_lo); - h128.high64 = XXH64_avalanche(keyed_hi); - return h128; - } -} - -XXH_FORCE_INLINE XXH128_hash_t -XXH3_len_4to8_128b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) -{ - XXH_ASSERT(input != NULL); - XXH_ASSERT(secret != NULL); - XXH_ASSERT(4 <= len && len <= 8); - seed ^= (xxh_u64)XXH_swap32((xxh_u32)seed) << 32; - { xxh_u32 const input_lo = XXH_readLE32(input); - xxh_u32 const input_hi = XXH_readLE32(input + len - 4); - xxh_u64 const input_64 = input_lo + ((xxh_u64)input_hi << 32); - xxh_u64 const bitflip = (XXH_readLE64(secret+16) ^ XXH_readLE64(secret+24)) + seed; - xxh_u64 const keyed = input_64 ^ bitflip; - - /* Shift len to the left to ensure it is even, this avoids even multiplies. */ - XXH128_hash_t m128 = XXH_mult64to128(keyed, XXH_PRIME64_1 + (len << 2)); - - m128.high64 += (m128.low64 << 1); - m128.low64 ^= (m128.high64 >> 3); - - m128.low64 = XXH_xorshift64(m128.low64, 35); - m128.low64 *= 0x9FB21C651E98DF25ULL; - m128.low64 = XXH_xorshift64(m128.low64, 28); - m128.high64 = XXH3_avalanche(m128.high64); - return m128; - } -} - -XXH_FORCE_INLINE XXH128_hash_t -XXH3_len_9to16_128b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) -{ - XXH_ASSERT(input != NULL); - XXH_ASSERT(secret != NULL); - XXH_ASSERT(9 <= len && len <= 16); - { xxh_u64 const bitflipl = (XXH_readLE64(secret+32) ^ XXH_readLE64(secret+40)) - seed; - xxh_u64 const bitfliph = (XXH_readLE64(secret+48) ^ XXH_readLE64(secret+56)) + seed; - xxh_u64 const input_lo = XXH_readLE64(input); - xxh_u64 input_hi = XXH_readLE64(input + len - 8); - XXH128_hash_t m128 = XXH_mult64to128(input_lo ^ input_hi ^ bitflipl, XXH_PRIME64_1); - /* - * Put len in the middle of m128 to ensure that the length gets mixed to - * both the low and high bits in the 128x64 multiply below. - */ - m128.low64 += (xxh_u64)(len - 1) << 54; - input_hi ^= bitfliph; - /* - * Add the high 32 bits of input_hi to the high 32 bits of m128, then - * add the long product of the low 32 bits of input_hi and XXH_PRIME32_2 to - * the high 64 bits of m128. - * - * The best approach to this operation is different on 32-bit and 64-bit. - */ - if (sizeof(void *) < sizeof(xxh_u64)) { /* 32-bit */ - /* - * 32-bit optimized version, which is more readable. - * - * On 32-bit, it removes an ADC and delays a dependency between the two - * halves of m128.high64, but it generates an extra mask on 64-bit. - */ - m128.high64 += (input_hi & 0xFFFFFFFF00000000ULL) + XXH_mult32to64((xxh_u32)input_hi, XXH_PRIME32_2); - } else { - /* - * 64-bit optimized (albeit more confusing) version. - * - * Uses some properties of addition and multiplication to remove the mask: - * - * Let: - * a = input_hi.lo = (input_hi & 0x00000000FFFFFFFF) - * b = input_hi.hi = (input_hi & 0xFFFFFFFF00000000) - * c = XXH_PRIME32_2 - * - * a + (b * c) - * Inverse Property: x + y - x == y - * a + (b * (1 + c - 1)) - * Distributive Property: x * (y + z) == (x * y) + (x * z) - * a + (b * 1) + (b * (c - 1)) - * Identity Property: x * 1 == x - * a + b + (b * (c - 1)) - * - * Substitute a, b, and c: - * input_hi.hi + input_hi.lo + ((xxh_u64)input_hi.lo * (XXH_PRIME32_2 - 1)) - * - * Since input_hi.hi + input_hi.lo == input_hi, we get this: - * input_hi + ((xxh_u64)input_hi.lo * (XXH_PRIME32_2 - 1)) - */ - m128.high64 += input_hi + XXH_mult32to64((xxh_u32)input_hi, XXH_PRIME32_2 - 1); - } - /* m128 ^= XXH_swap64(m128 >> 64); */ - m128.low64 ^= XXH_swap64(m128.high64); - - { /* 128x64 multiply: h128 = m128 * XXH_PRIME64_2; */ - XXH128_hash_t h128 = XXH_mult64to128(m128.low64, XXH_PRIME64_2); - h128.high64 += m128.high64 * XXH_PRIME64_2; - - h128.low64 = XXH3_avalanche(h128.low64); - h128.high64 = XXH3_avalanche(h128.high64); - return h128; - } } -} - -/* - * Assumption: `secret` size is >= XXH3_SECRET_SIZE_MIN - */ -XXH_FORCE_INLINE XXH128_hash_t -XXH3_len_0to16_128b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) -{ - XXH_ASSERT(len <= 16); - { if (len > 8) return XXH3_len_9to16_128b(input, len, secret, seed); - if (len >= 4) return XXH3_len_4to8_128b(input, len, secret, seed); - if (len) return XXH3_len_1to3_128b(input, len, secret, seed); - { XXH128_hash_t h128; - xxh_u64 const bitflipl = XXH_readLE64(secret+64) ^ XXH_readLE64(secret+72); - xxh_u64 const bitfliph = XXH_readLE64(secret+80) ^ XXH_readLE64(secret+88); - h128.low64 = XXH64_avalanche(seed ^ bitflipl); - h128.high64 = XXH64_avalanche( seed ^ bitfliph); - return h128; - } } -} - -/* - * A bit slower than XXH3_mix16B, but handles multiply by zero better. - */ -XXH_FORCE_INLINE XXH128_hash_t -XXH128_mix32B(XXH128_hash_t acc, const xxh_u8* input_1, const xxh_u8* input_2, - const xxh_u8* secret, XXH64_hash_t seed) -{ - acc.low64 += XXH3_mix16B (input_1, secret+0, seed); - acc.low64 ^= XXH_readLE64(input_2) + XXH_readLE64(input_2 + 8); - acc.high64 += XXH3_mix16B (input_2, secret+16, seed); - acc.high64 ^= XXH_readLE64(input_1) + XXH_readLE64(input_1 + 8); - return acc; -} - - -XXH_FORCE_INLINE XXH128_hash_t -XXH3_len_17to128_128b(const xxh_u8* XXH_RESTRICT input, size_t len, - const xxh_u8* XXH_RESTRICT secret, size_t secretSize, - XXH64_hash_t seed) -{ - XXH_ASSERT(secretSize >= XXH3_SECRET_SIZE_MIN); (void)secretSize; - XXH_ASSERT(16 < len && len <= 128); - - { XXH128_hash_t acc; - acc.low64 = len * XXH_PRIME64_1; - acc.high64 = 0; - if (len > 32) { - if (len > 64) { - if (len > 96) { - acc = XXH128_mix32B(acc, input+48, input+len-64, secret+96, seed); - } - acc = XXH128_mix32B(acc, input+32, input+len-48, secret+64, seed); - } - acc = XXH128_mix32B(acc, input+16, input+len-32, secret+32, seed); - } - acc = XXH128_mix32B(acc, input, input+len-16, secret, seed); - { XXH128_hash_t h128; - h128.low64 = acc.low64 + acc.high64; - h128.high64 = (acc.low64 * XXH_PRIME64_1) - + (acc.high64 * XXH_PRIME64_4) - + ((len - seed) * XXH_PRIME64_2); - h128.low64 = XXH3_avalanche(h128.low64); - h128.high64 = (XXH64_hash_t)0 - XXH3_avalanche(h128.high64); - return h128; - } - } -} - -XXH_NO_INLINE XXH128_hash_t -XXH3_len_129to240_128b(const xxh_u8* XXH_RESTRICT input, size_t len, - const xxh_u8* XXH_RESTRICT secret, size_t secretSize, - XXH64_hash_t seed) -{ - XXH_ASSERT(secretSize >= XXH3_SECRET_SIZE_MIN); (void)secretSize; - XXH_ASSERT(128 < len && len <= XXH3_MIDSIZE_MAX); - - { XXH128_hash_t acc; - int const nbRounds = (int)len / 32; - int i; - acc.low64 = len * XXH_PRIME64_1; - acc.high64 = 0; - for (i=0; i<4; i++) { - acc = XXH128_mix32B(acc, - input + (32 * i), - input + (32 * i) + 16, - secret + (32 * i), - seed); - } - acc.low64 = XXH3_avalanche(acc.low64); - acc.high64 = XXH3_avalanche(acc.high64); - XXH_ASSERT(nbRounds >= 4); - for (i=4 ; i < nbRounds; i++) { - acc = XXH128_mix32B(acc, - input + (32 * i), - input + (32 * i) + 16, - secret + XXH3_MIDSIZE_STARTOFFSET + (32 * (i - 4)), - seed); - } - /* last bytes */ - acc = XXH128_mix32B(acc, - input + len - 16, - input + len - 32, - secret + XXH3_SECRET_SIZE_MIN - XXH3_MIDSIZE_LASTOFFSET - 16, - 0ULL - seed); - - { XXH128_hash_t h128; - h128.low64 = acc.low64 + acc.high64; - h128.high64 = (acc.low64 * XXH_PRIME64_1) - + (acc.high64 * XXH_PRIME64_4) - + ((len - seed) * XXH_PRIME64_2); - h128.low64 = XXH3_avalanche(h128.low64); - h128.high64 = (XXH64_hash_t)0 - XXH3_avalanche(h128.high64); - return h128; - } - } -} - -XXH_FORCE_INLINE XXH128_hash_t -XXH3_hashLong_128b_internal(const void* XXH_RESTRICT input, size_t len, - const xxh_u8* XXH_RESTRICT secret, size_t secretSize, - XXH3_f_accumulate_512 f_acc512, - XXH3_f_scrambleAcc f_scramble) -{ - XXH_ALIGN(XXH_ACC_ALIGN) xxh_u64 acc[XXH_ACC_NB] = XXH3_INIT_ACC; - - XXH3_hashLong_internal_loop(acc, (const xxh_u8*)input, len, secret, secretSize, f_acc512, f_scramble); - - /* converge into final hash */ - XXH_STATIC_ASSERT(sizeof(acc) == 64); - XXH_ASSERT(secretSize >= sizeof(acc) + XXH_SECRET_MERGEACCS_START); - { XXH128_hash_t h128; - h128.low64 = XXH3_mergeAccs(acc, - secret + XXH_SECRET_MERGEACCS_START, - (xxh_u64)len * XXH_PRIME64_1); - h128.high64 = XXH3_mergeAccs(acc, - secret + secretSize - - sizeof(acc) - XXH_SECRET_MERGEACCS_START, - ~((xxh_u64)len * XXH_PRIME64_2)); - return h128; - } -} - -/* - * It's important for performance that XXH3_hashLong is not inlined. - */ -XXH_NO_INLINE XXH128_hash_t -XXH3_hashLong_128b_default(const void* XXH_RESTRICT input, size_t len, - XXH64_hash_t seed64, - const void* XXH_RESTRICT secret, size_t secretLen) -{ - (void)seed64; (void)secret; (void)secretLen; - return XXH3_hashLong_128b_internal(input, len, XXH3_kSecret, sizeof(XXH3_kSecret), - XXH3_accumulate_512, XXH3_scrambleAcc); -} - -/* - * It's important for performance that XXH3_hashLong is not inlined. - */ -XXH_NO_INLINE XXH128_hash_t -XXH3_hashLong_128b_withSecret(const void* XXH_RESTRICT input, size_t len, - XXH64_hash_t seed64, - const void* XXH_RESTRICT secret, size_t secretLen) -{ - (void)seed64; - return XXH3_hashLong_128b_internal(input, len, (const xxh_u8*)secret, secretLen, - XXH3_accumulate_512, XXH3_scrambleAcc); -} - -XXH_FORCE_INLINE XXH128_hash_t -XXH3_hashLong_128b_withSeed_internal(const void* XXH_RESTRICT input, size_t len, - XXH64_hash_t seed64, - XXH3_f_accumulate_512 f_acc512, - XXH3_f_scrambleAcc f_scramble, - XXH3_f_initCustomSecret f_initSec) -{ - if (seed64 == 0) - return XXH3_hashLong_128b_internal(input, len, - XXH3_kSecret, sizeof(XXH3_kSecret), - f_acc512, f_scramble); - { XXH_ALIGN(XXH_SEC_ALIGN) xxh_u8 secret[XXH_SECRET_DEFAULT_SIZE]; - f_initSec(secret, seed64); - return XXH3_hashLong_128b_internal(input, len, (const xxh_u8*)secret, sizeof(secret), - f_acc512, f_scramble); - } -} - -/* - * It's important for performance that XXH3_hashLong is not inlined. - */ -XXH_NO_INLINE XXH128_hash_t -XXH3_hashLong_128b_withSeed(const void* input, size_t len, - XXH64_hash_t seed64, const void* XXH_RESTRICT secret, size_t secretLen) -{ - (void)secret; (void)secretLen; - return XXH3_hashLong_128b_withSeed_internal(input, len, seed64, - XXH3_accumulate_512, XXH3_scrambleAcc, XXH3_initCustomSecret); -} - -typedef XXH128_hash_t (*XXH3_hashLong128_f)(const void* XXH_RESTRICT, size_t, - XXH64_hash_t, const void* XXH_RESTRICT, size_t); - -XXH_FORCE_INLINE XXH128_hash_t -XXH3_128bits_internal(const void* input, size_t len, - XXH64_hash_t seed64, const void* XXH_RESTRICT secret, size_t secretLen, - XXH3_hashLong128_f f_hl128) -{ - XXH_ASSERT(secretLen >= XXH3_SECRET_SIZE_MIN); - /* - * If an action is to be taken if `secret` conditions are not respected, - * it should be done here. - * For now, it's a contract pre-condition. - * Adding a check and a branch here would cost performance at every hash. - */ - if (len <= 16) - return XXH3_len_0to16_128b((const xxh_u8*)input, len, (const xxh_u8*)secret, seed64); - if (len <= 128) - return XXH3_len_17to128_128b((const xxh_u8*)input, len, (const xxh_u8*)secret, secretLen, seed64); - if (len <= XXH3_MIDSIZE_MAX) - return XXH3_len_129to240_128b((const xxh_u8*)input, len, (const xxh_u8*)secret, secretLen, seed64); - return f_hl128(input, len, seed64, secret, secretLen); -} - - -/* === Public XXH128 API === */ - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH128_hash_t XXH3_128bits(const void* input, size_t len) -{ - return XXH3_128bits_internal(input, len, 0, - XXH3_kSecret, sizeof(XXH3_kSecret), - XXH3_hashLong_128b_default); -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH128_hash_t -XXH3_128bits_withSecret(const void* input, size_t len, const void* secret, size_t secretSize) -{ - return XXH3_128bits_internal(input, len, 0, - (const xxh_u8*)secret, secretSize, - XXH3_hashLong_128b_withSecret); -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH128_hash_t -XXH3_128bits_withSeed(const void* input, size_t len, XXH64_hash_t seed) -{ - return XXH3_128bits_internal(input, len, seed, - XXH3_kSecret, sizeof(XXH3_kSecret), - XXH3_hashLong_128b_withSeed); -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH128_hash_t -XXH128(const void* input, size_t len, XXH64_hash_t seed) -{ - return XXH3_128bits_withSeed(input, len, seed); -} - - -/* === XXH3 128-bit streaming === */ - -/* - * All the functions are actually the same as for 64-bit streaming variant. - * The only difference is the finalization routine. - */ - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH_errorcode -XXH3_128bits_reset(XXH3_state_t* statePtr) -{ - if (statePtr == NULL) return XXH_ERROR; - XXH3_reset_internal(statePtr, 0, XXH3_kSecret, XXH_SECRET_DEFAULT_SIZE); - return XXH_OK; -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH_errorcode -XXH3_128bits_reset_withSecret(XXH3_state_t* statePtr, const void* secret, size_t secretSize) -{ - if (statePtr == NULL) return XXH_ERROR; - XXH3_reset_internal(statePtr, 0, secret, secretSize); - if (secret == NULL) return XXH_ERROR; - if (secretSize < XXH3_SECRET_SIZE_MIN) return XXH_ERROR; - return XXH_OK; -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH_errorcode -XXH3_128bits_reset_withSeed(XXH3_state_t* statePtr, XXH64_hash_t seed) -{ - if (statePtr == NULL) return XXH_ERROR; - if (seed==0) return XXH3_128bits_reset(statePtr); - if (seed != statePtr->seed) XXH3_initCustomSecret(statePtr->customSecret, seed); - XXH3_reset_internal(statePtr, seed, NULL, XXH_SECRET_DEFAULT_SIZE); - return XXH_OK; -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH_errorcode -XXH3_128bits_update(XXH3_state_t* state, const void* input, size_t len) -{ - return XXH3_update(state, (const xxh_u8*)input, len, - XXH3_accumulate_512, XXH3_scrambleAcc); -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH128_hash_t XXH3_128bits_digest (const XXH3_state_t* state) -{ - const unsigned char* const secret = (state->extSecret == NULL) ? state->customSecret : state->extSecret; - if (state->totalLen > XXH3_MIDSIZE_MAX) { - XXH_ALIGN(XXH_ACC_ALIGN) XXH64_hash_t acc[XXH_ACC_NB]; - XXH3_digest_long(acc, state, secret); - XXH_ASSERT(state->secretLimit + XXH_STRIPE_LEN >= sizeof(acc) + XXH_SECRET_MERGEACCS_START); - { XXH128_hash_t h128; - h128.low64 = XXH3_mergeAccs(acc, - secret + XXH_SECRET_MERGEACCS_START, - (xxh_u64)state->totalLen * XXH_PRIME64_1); - h128.high64 = XXH3_mergeAccs(acc, - secret + state->secretLimit + XXH_STRIPE_LEN - - sizeof(acc) - XXH_SECRET_MERGEACCS_START, - ~((xxh_u64)state->totalLen * XXH_PRIME64_2)); - return h128; - } - } - /* len <= XXH3_MIDSIZE_MAX : short code */ - if (state->seed) - return XXH3_128bits_withSeed(state->buffer, (size_t)state->totalLen, state->seed); - return XXH3_128bits_withSecret(state->buffer, (size_t)(state->totalLen), - secret, state->secretLimit + XXH_STRIPE_LEN); -} - -/* 128-bit utility functions */ - -#include /* memcmp, memcpy */ - -/* return : 1 is equal, 0 if different */ -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API int XXH128_isEqual(XXH128_hash_t h1, XXH128_hash_t h2) -{ - /* note : XXH128_hash_t is compact, it has no padding byte */ - return !(memcmp(&h1, &h2, sizeof(h1))); -} - -/* This prototype is compatible with stdlib's qsort(). - * return : >0 if *h128_1 > *h128_2 - * <0 if *h128_1 < *h128_2 - * =0 if *h128_1 == *h128_2 */ -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API int XXH128_cmp(const void* h128_1, const void* h128_2) -{ - XXH128_hash_t const h1 = *(const XXH128_hash_t*)h128_1; - XXH128_hash_t const h2 = *(const XXH128_hash_t*)h128_2; - int const hcmp = (h1.high64 > h2.high64) - (h2.high64 > h1.high64); - /* note : bets that, in most cases, hash values are different */ - if (hcmp) return hcmp; - return (h1.low64 > h2.low64) - (h2.low64 > h1.low64); -} - - -/*====== Canonical representation ======*/ -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API void -XXH128_canonicalFromHash(XXH128_canonical_t* dst, XXH128_hash_t hash) -{ - XXH_STATIC_ASSERT(sizeof(XXH128_canonical_t) == sizeof(XXH128_hash_t)); - if (XXH_CPU_LITTLE_ENDIAN) { - hash.high64 = XXH_swap64(hash.high64); - hash.low64 = XXH_swap64(hash.low64); - } - memcpy(dst, &hash.high64, sizeof(hash.high64)); - memcpy((char*)dst + sizeof(hash.high64), &hash.low64, sizeof(hash.low64)); -} - -/*! @ingroup xxh3_family */ -XXH_PUBLIC_API XXH128_hash_t -XXH128_hashFromCanonical(const XXH128_canonical_t* src) -{ - XXH128_hash_t h; - h.high64 = XXH_readBE64(src); - h.low64 = XXH_readBE64(src->digest + 8); - return h; -} - -/* Pop our optimization override from above */ -#if XXH_VECTOR == XXH_AVX2 /* AVX2 */ \ - && defined(__GNUC__) && !defined(__clang__) /* GCC, not Clang */ \ - && defined(__OPTIMIZE__) && !defined(__OPTIMIZE_SIZE__) /* respect -O0 and -Os */ -# pragma GCC pop_options -#endif - -#endif /* XXH_NO_LONG_LONG */ - -/*! - * @} - */ -#endif /* XXH_IMPLEMENTATION */ - - -#if defined (__cplusplus) -} -#endif \ No newline at end of file diff --git a/vendor/github.com/shirou/gopsutil/host/freebsd_headers/utxdb.h b/vendor/github.com/shirou/gopsutil/host/freebsd_headers/utxdb.h deleted file mode 100644 index 912dd0fa1..000000000 --- a/vendor/github.com/shirou/gopsutil/host/freebsd_headers/utxdb.h +++ /dev/null @@ -1,63 +0,0 @@ -/*- - * SPDX-License-Identifier: BSD-2-Clause-FreeBSD - * - * Copyright (c) 2010 Ed Schouten - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $FreeBSD$ - */ - -#ifndef _UTXDB_H_ -#define _UTXDB_H_ - -#include - -#define _PATH_UTX_ACTIVE "/var/run/utx.active" -#define _PATH_UTX_LASTLOGIN "/var/log/utx.lastlogin" -#define _PATH_UTX_LOG "/var/log/utx.log" - -/* - * Entries in struct futx are ordered by how often they are used. In - * utx.log only entries will be written until the last non-zero byte, - * which means we want to put the hostname at the end. Most primitive - * records only store a ut_type and ut_tv, which means we want to store - * those at the front. - */ - -struct utmpx; - -struct futx { - uint8_t fu_type; - uint64_t fu_tv; - char fu_id[8]; - uint32_t fu_pid; - char fu_user[32]; - char fu_line[16]; - char fu_host[128]; -} __packed; - -void utx_to_futx(const struct utmpx *, struct futx *); -struct utmpx *futx_to_utx(const struct futx *); - -#endif /* !_UTXDB_H_ */ diff --git a/vendor/go.opencensus.io/examples/grpc/proto/helloworld.proto b/vendor/go.opencensus.io/examples/grpc/proto/helloworld.proto deleted file mode 100644 index e08f1f57f..000000000 --- a/vendor/go.opencensus.io/examples/grpc/proto/helloworld.proto +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2017, OpenCensus Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -option java_multiple_files = true; -option java_package = "io.grpc.examples.helloworld"; -option java_outer_classname = "HelloWorldProto"; - -package helloworld; - -// The greeting service definition. -service Greeter { - // Sends a greeting - rpc SayHello (HelloRequest) returns (HelloReply) {} -} - -// The request message containing the user's name. -message HelloRequest { - string name = 1; -} - -// The response message containing the greetings -message HelloReply { - string message = 1; -} diff --git a/vendor/go.opencensus.io/internal/testpb/test.proto b/vendor/go.opencensus.io/internal/testpb/test.proto deleted file mode 100644 index b82d128ac..000000000 --- a/vendor/go.opencensus.io/internal/testpb/test.proto +++ /dev/null @@ -1,16 +0,0 @@ -syntax = "proto3"; - -package testpb; - -message FooRequest { - bool fail = 1; - int64 sleep_nanos = 2; -} - -message FooResponse { -} - -service Foo { - rpc Single(FooRequest) returns (FooResponse); - rpc Multiple(stream FooRequest) returns (stream FooResponse); -} diff --git a/vendor/golang.org/x/crypto/chacha20/chacha_arm64.go b/vendor/golang.org/x/crypto/chacha20/chacha_arm64.go index 94c71ac1a..5dfacbb98 100644 --- a/vendor/golang.org/x/crypto/chacha20/chacha_arm64.go +++ b/vendor/golang.org/x/crypto/chacha20/chacha_arm64.go @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build go1.11 && gc && !purego -// +build go1.11,gc,!purego +//go:build gc && !purego +// +build gc,!purego package chacha20 diff --git a/vendor/golang.org/x/crypto/chacha20/chacha_arm64.s b/vendor/golang.org/x/crypto/chacha20/chacha_arm64.s index 63cae9e6f..f1f66230d 100644 --- a/vendor/golang.org/x/crypto/chacha20/chacha_arm64.s +++ b/vendor/golang.org/x/crypto/chacha20/chacha_arm64.s @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build go1.11 && gc && !purego -// +build go1.11,gc,!purego +//go:build gc && !purego +// +build gc,!purego #include "textflag.h" diff --git a/vendor/golang.org/x/crypto/chacha20/chacha_noasm.go b/vendor/golang.org/x/crypto/chacha20/chacha_noasm.go index 025b49897..02ff3d05e 100644 --- a/vendor/golang.org/x/crypto/chacha20/chacha_noasm.go +++ b/vendor/golang.org/x/crypto/chacha20/chacha_noasm.go @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build (!arm64 && !s390x && !ppc64le) || (arm64 && !go1.11) || !gc || purego -// +build !arm64,!s390x,!ppc64le arm64,!go1.11 !gc purego +//go:build (!arm64 && !s390x && !ppc64le) || !gc || purego +// +build !arm64,!s390x,!ppc64le !gc purego package chacha20 diff --git a/vendor/golang.org/x/crypto/cryptobyte/builder.go b/vendor/golang.org/x/crypto/cryptobyte/builder.go index c05ac7d16..cf254f5f1 100644 --- a/vendor/golang.org/x/crypto/cryptobyte/builder.go +++ b/vendor/golang.org/x/crypto/cryptobyte/builder.go @@ -95,6 +95,11 @@ func (b *Builder) AddUint32(v uint32) { b.add(byte(v>>24), byte(v>>16), byte(v>>8), byte(v)) } +// AddUint48 appends a big-endian, 48-bit value to the byte string. +func (b *Builder) AddUint48(v uint64) { + b.add(byte(v>>40), byte(v>>32), byte(v>>24), byte(v>>16), byte(v>>8), byte(v)) +} + // AddUint64 appends a big-endian, 64-bit value to the byte string. func (b *Builder) AddUint64(v uint64) { b.add(byte(v>>56), byte(v>>48), byte(v>>40), byte(v>>32), byte(v>>24), byte(v>>16), byte(v>>8), byte(v)) diff --git a/vendor/golang.org/x/crypto/cryptobyte/string.go b/vendor/golang.org/x/crypto/cryptobyte/string.go index 0531a3d6f..10692a8a3 100644 --- a/vendor/golang.org/x/crypto/cryptobyte/string.go +++ b/vendor/golang.org/x/crypto/cryptobyte/string.go @@ -81,6 +81,17 @@ func (s *String) ReadUint32(out *uint32) bool { return true } +// ReadUint48 decodes a big-endian, 48-bit value into out and advances over it. +// It reports whether the read was successful. +func (s *String) ReadUint48(out *uint64) bool { + v := s.read(6) + if v == nil { + return false + } + *out = uint64(v[0])<<40 | uint64(v[1])<<32 | uint64(v[2])<<24 | uint64(v[3])<<16 | uint64(v[4])<<8 | uint64(v[5]) + return true +} + // ReadUint64 decodes a big-endian, 64-bit value into out and advances over it. // It reports whether the read was successful. func (s *String) ReadUint64(out *uint64) bool { diff --git a/vendor/golang.org/x/net/http2/server.go b/vendor/golang.org/x/net/http2/server.go index 6d5e00887..02c88b6b3 100644 --- a/vendor/golang.org/x/net/http2/server.go +++ b/vendor/golang.org/x/net/http2/server.go @@ -581,9 +581,11 @@ type serverConn struct { advMaxStreams uint32 // our SETTINGS_MAX_CONCURRENT_STREAMS advertised the client curClientStreams uint32 // number of open streams initiated by the client curPushedStreams uint32 // number of open streams initiated by server push + curHandlers uint32 // number of running handler goroutines maxClientStreamID uint32 // max ever seen from client (odd), or 0 if there have been no client requests maxPushPromiseID uint32 // ID of the last push promise (even), or 0 if there have been no pushes streams map[uint32]*stream + unstartedHandlers []unstartedHandler initialStreamSendWindowSize int32 maxFrameSize int32 peerMaxHeaderListSize uint32 // zero means unknown (default) @@ -981,6 +983,8 @@ func (sc *serverConn) serve() { return case gracefulShutdownMsg: sc.startGracefulShutdownInternal() + case handlerDoneMsg: + sc.handlerDone() default: panic("unknown timer") } @@ -1020,6 +1024,7 @@ var ( idleTimerMsg = new(serverMessage) shutdownTimerMsg = new(serverMessage) gracefulShutdownMsg = new(serverMessage) + handlerDoneMsg = new(serverMessage) ) func (sc *serverConn) onSettingsTimer() { sc.sendServeMsg(settingsTimerMsg) } @@ -1892,9 +1897,11 @@ func (st *stream) copyTrailersToHandlerRequest() { // onReadTimeout is run on its own goroutine (from time.AfterFunc) // when the stream's ReadTimeout has fired. func (st *stream) onReadTimeout() { - // Wrap the ErrDeadlineExceeded to avoid callers depending on us - // returning the bare error. - st.body.CloseWithError(fmt.Errorf("%w", os.ErrDeadlineExceeded)) + if st.body != nil { + // Wrap the ErrDeadlineExceeded to avoid callers depending on us + // returning the bare error. + st.body.CloseWithError(fmt.Errorf("%w", os.ErrDeadlineExceeded)) + } } // onWriteTimeout is run on its own goroutine (from time.AfterFunc) @@ -2012,13 +2019,10 @@ func (sc *serverConn) processHeaders(f *MetaHeadersFrame) error { // (in Go 1.8), though. That's a more sane option anyway. if sc.hs.ReadTimeout != 0 { sc.conn.SetReadDeadline(time.Time{}) - if st.body != nil { - st.readDeadline = time.AfterFunc(sc.hs.ReadTimeout, st.onReadTimeout) - } + st.readDeadline = time.AfterFunc(sc.hs.ReadTimeout, st.onReadTimeout) } - go sc.runHandler(rw, req, handler) - return nil + return sc.scheduleHandler(id, rw, req, handler) } func (sc *serverConn) upgradeRequest(req *http.Request) { @@ -2038,6 +2042,10 @@ func (sc *serverConn) upgradeRequest(req *http.Request) { sc.conn.SetReadDeadline(time.Time{}) } + // This is the first request on the connection, + // so start the handler directly rather than going + // through scheduleHandler. + sc.curHandlers++ go sc.runHandler(rw, req, sc.handler.ServeHTTP) } @@ -2278,8 +2286,62 @@ func (sc *serverConn) newResponseWriter(st *stream, req *http.Request) *response return &responseWriter{rws: rws} } +type unstartedHandler struct { + streamID uint32 + rw *responseWriter + req *http.Request + handler func(http.ResponseWriter, *http.Request) +} + +// scheduleHandler starts a handler goroutine, +// or schedules one to start as soon as an existing handler finishes. +func (sc *serverConn) scheduleHandler(streamID uint32, rw *responseWriter, req *http.Request, handler func(http.ResponseWriter, *http.Request)) error { + sc.serveG.check() + maxHandlers := sc.advMaxStreams + if sc.curHandlers < maxHandlers { + sc.curHandlers++ + go sc.runHandler(rw, req, handler) + return nil + } + if len(sc.unstartedHandlers) > int(4*sc.advMaxStreams) { + return sc.countError("too_many_early_resets", ConnectionError(ErrCodeEnhanceYourCalm)) + } + sc.unstartedHandlers = append(sc.unstartedHandlers, unstartedHandler{ + streamID: streamID, + rw: rw, + req: req, + handler: handler, + }) + return nil +} + +func (sc *serverConn) handlerDone() { + sc.serveG.check() + sc.curHandlers-- + i := 0 + maxHandlers := sc.advMaxStreams + for ; i < len(sc.unstartedHandlers); i++ { + u := sc.unstartedHandlers[i] + if sc.streams[u.streamID] == nil { + // This stream was reset before its goroutine had a chance to start. + continue + } + if sc.curHandlers >= maxHandlers { + break + } + sc.curHandlers++ + go sc.runHandler(u.rw, u.req, u.handler) + sc.unstartedHandlers[i] = unstartedHandler{} // don't retain references + } + sc.unstartedHandlers = sc.unstartedHandlers[i:] + if len(sc.unstartedHandlers) == 0 { + sc.unstartedHandlers = nil + } +} + // Run on its own goroutine. func (sc *serverConn) runHandler(rw *responseWriter, req *http.Request, handler func(http.ResponseWriter, *http.Request)) { + defer sc.sendServeMsg(handlerDoneMsg) didPanic := true defer func() { rw.rws.stream.cancelCtx() diff --git a/vendor/golang.org/x/sys/cpu/cpu_riscv64.go b/vendor/golang.org/x/sys/cpu/cpu_riscv64.go index bd6c128af..ff7da60eb 100644 --- a/vendor/golang.org/x/sys/cpu/cpu_riscv64.go +++ b/vendor/golang.org/x/sys/cpu/cpu_riscv64.go @@ -7,6 +7,6 @@ package cpu -const cacheLineSize = 32 +const cacheLineSize = 64 func initOptions() {} diff --git a/vendor/golang.org/x/sys/cpu/hwcap_linux.go b/vendor/golang.org/x/sys/cpu/hwcap_linux.go index 1d9d91f3e..34e49f955 100644 --- a/vendor/golang.org/x/sys/cpu/hwcap_linux.go +++ b/vendor/golang.org/x/sys/cpu/hwcap_linux.go @@ -5,7 +5,7 @@ package cpu import ( - "io/ioutil" + "os" ) const ( @@ -39,7 +39,7 @@ func readHWCAP() error { return nil } - buf, err := ioutil.ReadFile(procAuxv) + buf, err := os.ReadFile(procAuxv) if err != nil { // e.g. on android /proc/self/auxv is not accessible, so silently // ignore the error and leave Initialized = false. On some diff --git a/vendor/golang.org/x/sys/internal/unsafeheader/unsafeheader.go b/vendor/golang.org/x/sys/internal/unsafeheader/unsafeheader.go deleted file mode 100644 index e07899b90..000000000 --- a/vendor/golang.org/x/sys/internal/unsafeheader/unsafeheader.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2020 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package unsafeheader contains header declarations for the Go runtime's -// slice and string implementations. -// -// This package allows x/sys to use types equivalent to -// reflect.SliceHeader and reflect.StringHeader without introducing -// a dependency on the (relatively heavy) "reflect" package. -package unsafeheader - -import ( - "unsafe" -) - -// Slice is the runtime representation of a slice. -// It cannot be used safely or portably and its representation may change in a later release. -type Slice struct { - Data unsafe.Pointer - Len int - Cap int -} - -// String is the runtime representation of a string. -// It cannot be used safely or portably and its representation may change in a later release. -type String struct { - Data unsafe.Pointer - Len int -} diff --git a/vendor/golang.org/x/sys/unix/ptrace_darwin.go b/vendor/golang.org/x/sys/unix/ptrace_darwin.go index 39dba6ca6..463c3eff7 100644 --- a/vendor/golang.org/x/sys/unix/ptrace_darwin.go +++ b/vendor/golang.org/x/sys/unix/ptrace_darwin.go @@ -7,12 +7,6 @@ package unix -import "unsafe" - func ptrace(request int, pid int, addr uintptr, data uintptr) error { return ptrace1(request, pid, addr, data) } - -func ptracePtr(request int, pid int, addr uintptr, data unsafe.Pointer) error { - return ptrace1Ptr(request, pid, addr, data) -} diff --git a/vendor/golang.org/x/sys/unix/ptrace_ios.go b/vendor/golang.org/x/sys/unix/ptrace_ios.go index 9ea66330a..ed0509a01 100644 --- a/vendor/golang.org/x/sys/unix/ptrace_ios.go +++ b/vendor/golang.org/x/sys/unix/ptrace_ios.go @@ -7,12 +7,6 @@ package unix -import "unsafe" - func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { return ENOTSUP } - -func ptracePtr(request int, pid int, addr uintptr, data unsafe.Pointer) (err error) { - return ENOTSUP -} diff --git a/vendor/golang.org/x/sys/unix/syscall_aix.go b/vendor/golang.org/x/sys/unix/syscall_aix.go index 9a6e5acac..e94e6cdac 100644 --- a/vendor/golang.org/x/sys/unix/syscall_aix.go +++ b/vendor/golang.org/x/sys/unix/syscall_aix.go @@ -487,8 +487,6 @@ func Fsync(fd int) error { //sys Unlinkat(dirfd int, path string, flags int) (err error) //sys Ustat(dev int, ubuf *Ustat_t) (err error) //sys write(fd int, p []byte) (n int, err error) -//sys readlen(fd int, p *byte, np int) (n int, err error) = read -//sys writelen(fd int, p *byte, np int) (n int, err error) = write //sys Dup2(oldfd int, newfd int) (err error) //sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = posix_fadvise64 diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin.go b/vendor/golang.org/x/sys/unix/syscall_darwin.go index 135cc3cd7..59542a897 100644 --- a/vendor/golang.org/x/sys/unix/syscall_darwin.go +++ b/vendor/golang.org/x/sys/unix/syscall_darwin.go @@ -644,189 +644,3 @@ func SysctlKinfoProcSlice(name string, args ...int) ([]KinfoProc, error) { //sys write(fd int, p []byte) (n int, err error) //sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) //sys munmap(addr uintptr, length uintptr) (err error) -//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ -//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE - -/* - * Unimplemented - */ -// Profil -// Sigaction -// Sigprocmask -// Getlogin -// Sigpending -// Sigaltstack -// Ioctl -// Reboot -// Execve -// Vfork -// Sbrk -// Sstk -// Ovadvise -// Mincore -// Setitimer -// Swapon -// Select -// Sigsuspend -// Readv -// Writev -// Nfssvc -// Getfh -// Quotactl -// Csops -// Waitid -// Add_profil -// Kdebug_trace -// Sigreturn -// Atsocket -// Kqueue_from_portset_np -// Kqueue_portset -// Getattrlist -// Getdirentriesattr -// Searchfs -// Delete -// Copyfile -// Watchevent -// Waitevent -// Modwatch -// Fsctl -// Initgroups -// Posix_spawn -// Nfsclnt -// Fhopen -// Minherit -// Semsys -// Msgsys -// Shmsys -// Semctl -// Semget -// Semop -// Msgctl -// Msgget -// Msgsnd -// Msgrcv -// Shm_open -// Shm_unlink -// Sem_open -// Sem_close -// Sem_unlink -// Sem_wait -// Sem_trywait -// Sem_post -// Sem_getvalue -// Sem_init -// Sem_destroy -// Open_extended -// Umask_extended -// Stat_extended -// Lstat_extended -// Fstat_extended -// Chmod_extended -// Fchmod_extended -// Access_extended -// Settid -// Gettid -// Setsgroups -// Getsgroups -// Setwgroups -// Getwgroups -// Mkfifo_extended -// Mkdir_extended -// Identitysvc -// Shared_region_check_np -// Shared_region_map_np -// __pthread_mutex_destroy -// __pthread_mutex_init -// __pthread_mutex_lock -// __pthread_mutex_trylock -// __pthread_mutex_unlock -// __pthread_cond_init -// __pthread_cond_destroy -// __pthread_cond_broadcast -// __pthread_cond_signal -// Setsid_with_pid -// __pthread_cond_timedwait -// Aio_fsync -// Aio_return -// Aio_suspend -// Aio_cancel -// Aio_error -// Aio_read -// Aio_write -// Lio_listio -// __pthread_cond_wait -// Iopolicysys -// __pthread_kill -// __pthread_sigmask -// __sigwait -// __disable_threadsignal -// __pthread_markcancel -// __pthread_canceled -// __semwait_signal -// Proc_info -// sendfile -// Stat64_extended -// Lstat64_extended -// Fstat64_extended -// __pthread_chdir -// __pthread_fchdir -// Audit -// Auditon -// Getauid -// Setauid -// Getaudit -// Setaudit -// Getaudit_addr -// Setaudit_addr -// Auditctl -// Bsdthread_create -// Bsdthread_terminate -// Stack_snapshot -// Bsdthread_register -// Workq_open -// Workq_ops -// __mac_execve -// __mac_syscall -// __mac_get_file -// __mac_set_file -// __mac_get_link -// __mac_set_link -// __mac_get_proc -// __mac_set_proc -// __mac_get_fd -// __mac_set_fd -// __mac_get_pid -// __mac_get_lcid -// __mac_get_lctx -// __mac_set_lctx -// Setlcid -// Read_nocancel -// Write_nocancel -// Open_nocancel -// Close_nocancel -// Wait4_nocancel -// Recvmsg_nocancel -// Sendmsg_nocancel -// Recvfrom_nocancel -// Accept_nocancel -// Fcntl_nocancel -// Select_nocancel -// Fsync_nocancel -// Connect_nocancel -// Sigsuspend_nocancel -// Readv_nocancel -// Writev_nocancel -// Sendto_nocancel -// Pread_nocancel -// Pwrite_nocancel -// Waitid_nocancel -// Poll_nocancel -// Msgsnd_nocancel -// Msgrcv_nocancel -// Sem_wait_nocancel -// Aio_suspend_nocancel -// __sigwait_nocancel -// __semwait_signal_nocancel -// __mac_mount -// __mac_get_mount -// __mac_getfsstat diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go b/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go index 9fa879806..b37310ce9 100644 --- a/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go +++ b/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go @@ -47,6 +47,5 @@ func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, //sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT64 //sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64 //sys ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) = SYS_ptrace -//sys ptrace1Ptr(request int, pid int, addr unsafe.Pointer, data uintptr) (err error) = SYS_ptrace //sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64 //sys Statfs(path string, stat *Statfs_t) (err error) = SYS_STATFS64 diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go b/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go index f17b8c526..d51ec9963 100644 --- a/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go +++ b/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go @@ -47,6 +47,5 @@ func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, //sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT //sys Lstat(path string, stat *Stat_t) (err error) //sys ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) = SYS_ptrace -//sys ptrace1Ptr(request int, pid int, addr unsafe.Pointer, data uintptr) (err error) = SYS_ptrace //sys Stat(path string, stat *Stat_t) (err error) //sys Statfs(path string, stat *Statfs_t) (err error) diff --git a/vendor/golang.org/x/sys/unix/syscall_dragonfly.go b/vendor/golang.org/x/sys/unix/syscall_dragonfly.go index d4ce988e7..97cb916f2 100644 --- a/vendor/golang.org/x/sys/unix/syscall_dragonfly.go +++ b/vendor/golang.org/x/sys/unix/syscall_dragonfly.go @@ -343,203 +343,5 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e //sys write(fd int, p []byte) (n int, err error) //sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) //sys munmap(addr uintptr, length uintptr) (err error) -//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ -//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE //sys accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) //sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) - -/* - * Unimplemented - * TODO(jsing): Update this list for DragonFly. - */ -// Profil -// Sigaction -// Sigprocmask -// Getlogin -// Sigpending -// Sigaltstack -// Reboot -// Execve -// Vfork -// Sbrk -// Sstk -// Ovadvise -// Mincore -// Setitimer -// Swapon -// Select -// Sigsuspend -// Readv -// Writev -// Nfssvc -// Getfh -// Quotactl -// Mount -// Csops -// Waitid -// Add_profil -// Kdebug_trace -// Sigreturn -// Atsocket -// Kqueue_from_portset_np -// Kqueue_portset -// Getattrlist -// Setattrlist -// Getdirentriesattr -// Searchfs -// Delete -// Copyfile -// Watchevent -// Waitevent -// Modwatch -// Getxattr -// Fgetxattr -// Setxattr -// Fsetxattr -// Removexattr -// Fremovexattr -// Listxattr -// Flistxattr -// Fsctl -// Initgroups -// Posix_spawn -// Nfsclnt -// Fhopen -// Minherit -// Semsys -// Msgsys -// Shmsys -// Semctl -// Semget -// Semop -// Msgctl -// Msgget -// Msgsnd -// Msgrcv -// Shmat -// Shmctl -// Shmdt -// Shmget -// Shm_open -// Shm_unlink -// Sem_open -// Sem_close -// Sem_unlink -// Sem_wait -// Sem_trywait -// Sem_post -// Sem_getvalue -// Sem_init -// Sem_destroy -// Open_extended -// Umask_extended -// Stat_extended -// Lstat_extended -// Fstat_extended -// Chmod_extended -// Fchmod_extended -// Access_extended -// Settid -// Gettid -// Setsgroups -// Getsgroups -// Setwgroups -// Getwgroups -// Mkfifo_extended -// Mkdir_extended -// Identitysvc -// Shared_region_check_np -// Shared_region_map_np -// __pthread_mutex_destroy -// __pthread_mutex_init -// __pthread_mutex_lock -// __pthread_mutex_trylock -// __pthread_mutex_unlock -// __pthread_cond_init -// __pthread_cond_destroy -// __pthread_cond_broadcast -// __pthread_cond_signal -// Setsid_with_pid -// __pthread_cond_timedwait -// Aio_fsync -// Aio_return -// Aio_suspend -// Aio_cancel -// Aio_error -// Aio_read -// Aio_write -// Lio_listio -// __pthread_cond_wait -// Iopolicysys -// __pthread_kill -// __pthread_sigmask -// __sigwait -// __disable_threadsignal -// __pthread_markcancel -// __pthread_canceled -// __semwait_signal -// Proc_info -// Stat64_extended -// Lstat64_extended -// Fstat64_extended -// __pthread_chdir -// __pthread_fchdir -// Audit -// Auditon -// Getauid -// Setauid -// Getaudit -// Setaudit -// Getaudit_addr -// Setaudit_addr -// Auditctl -// Bsdthread_create -// Bsdthread_terminate -// Stack_snapshot -// Bsdthread_register -// Workq_open -// Workq_ops -// __mac_execve -// __mac_syscall -// __mac_get_file -// __mac_set_file -// __mac_get_link -// __mac_set_link -// __mac_get_proc -// __mac_set_proc -// __mac_get_fd -// __mac_set_fd -// __mac_get_pid -// __mac_get_lcid -// __mac_get_lctx -// __mac_set_lctx -// Setlcid -// Read_nocancel -// Write_nocancel -// Open_nocancel -// Close_nocancel -// Wait4_nocancel -// Recvmsg_nocancel -// Sendmsg_nocancel -// Recvfrom_nocancel -// Accept_nocancel -// Fcntl_nocancel -// Select_nocancel -// Fsync_nocancel -// Connect_nocancel -// Sigsuspend_nocancel -// Readv_nocancel -// Writev_nocancel -// Sendto_nocancel -// Pread_nocancel -// Pwrite_nocancel -// Waitid_nocancel -// Msgsnd_nocancel -// Msgrcv_nocancel -// Sem_wait_nocancel -// Aio_suspend_nocancel -// __sigwait_nocancel -// __semwait_signal_nocancel -// __mac_mount -// __mac_get_mount -// __mac_getfsstat diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd.go b/vendor/golang.org/x/sys/unix/syscall_freebsd.go index afb10106f..64d1bb4db 100644 --- a/vendor/golang.org/x/sys/unix/syscall_freebsd.go +++ b/vendor/golang.org/x/sys/unix/syscall_freebsd.go @@ -449,197 +449,5 @@ func Dup3(oldfd, newfd, flags int) error { //sys write(fd int, p []byte) (n int, err error) //sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) //sys munmap(addr uintptr, length uintptr) (err error) -//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ -//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE //sys accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) //sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) - -/* - * Unimplemented - */ -// Profil -// Sigaction -// Sigprocmask -// Getlogin -// Sigpending -// Sigaltstack -// Ioctl -// Reboot -// Execve -// Vfork -// Sbrk -// Sstk -// Ovadvise -// Mincore -// Setitimer -// Swapon -// Select -// Sigsuspend -// Readv -// Writev -// Nfssvc -// Getfh -// Quotactl -// Mount -// Csops -// Waitid -// Add_profil -// Kdebug_trace -// Sigreturn -// Atsocket -// Kqueue_from_portset_np -// Kqueue_portset -// Getattrlist -// Setattrlist -// Getdents -// Getdirentriesattr -// Searchfs -// Delete -// Copyfile -// Watchevent -// Waitevent -// Modwatch -// Fsctl -// Initgroups -// Posix_spawn -// Nfsclnt -// Fhopen -// Minherit -// Semsys -// Msgsys -// Shmsys -// Semctl -// Semget -// Semop -// Msgctl -// Msgget -// Msgsnd -// Msgrcv -// Shmat -// Shmctl -// Shmdt -// Shmget -// Shm_open -// Shm_unlink -// Sem_open -// Sem_close -// Sem_unlink -// Sem_wait -// Sem_trywait -// Sem_post -// Sem_getvalue -// Sem_init -// Sem_destroy -// Open_extended -// Umask_extended -// Stat_extended -// Lstat_extended -// Fstat_extended -// Chmod_extended -// Fchmod_extended -// Access_extended -// Settid -// Gettid -// Setsgroups -// Getsgroups -// Setwgroups -// Getwgroups -// Mkfifo_extended -// Mkdir_extended -// Identitysvc -// Shared_region_check_np -// Shared_region_map_np -// __pthread_mutex_destroy -// __pthread_mutex_init -// __pthread_mutex_lock -// __pthread_mutex_trylock -// __pthread_mutex_unlock -// __pthread_cond_init -// __pthread_cond_destroy -// __pthread_cond_broadcast -// __pthread_cond_signal -// Setsid_with_pid -// __pthread_cond_timedwait -// Aio_fsync -// Aio_return -// Aio_suspend -// Aio_cancel -// Aio_error -// Aio_read -// Aio_write -// Lio_listio -// __pthread_cond_wait -// Iopolicysys -// __pthread_kill -// __pthread_sigmask -// __sigwait -// __disable_threadsignal -// __pthread_markcancel -// __pthread_canceled -// __semwait_signal -// Proc_info -// Stat64_extended -// Lstat64_extended -// Fstat64_extended -// __pthread_chdir -// __pthread_fchdir -// Audit -// Auditon -// Getauid -// Setauid -// Getaudit -// Setaudit -// Getaudit_addr -// Setaudit_addr -// Auditctl -// Bsdthread_create -// Bsdthread_terminate -// Stack_snapshot -// Bsdthread_register -// Workq_open -// Workq_ops -// __mac_execve -// __mac_syscall -// __mac_get_file -// __mac_set_file -// __mac_get_link -// __mac_set_link -// __mac_get_proc -// __mac_set_proc -// __mac_get_fd -// __mac_set_fd -// __mac_get_pid -// __mac_get_lcid -// __mac_get_lctx -// __mac_set_lctx -// Setlcid -// Read_nocancel -// Write_nocancel -// Open_nocancel -// Close_nocancel -// Wait4_nocancel -// Recvmsg_nocancel -// Sendmsg_nocancel -// Recvfrom_nocancel -// Accept_nocancel -// Fcntl_nocancel -// Select_nocancel -// Fsync_nocancel -// Connect_nocancel -// Sigsuspend_nocancel -// Readv_nocancel -// Writev_nocancel -// Sendto_nocancel -// Pread_nocancel -// Pwrite_nocancel -// Waitid_nocancel -// Poll_nocancel -// Msgsnd_nocancel -// Msgrcv_nocancel -// Sem_wait_nocancel -// Aio_suspend_nocancel -// __sigwait_nocancel -// __semwait_signal_nocancel -// __mac_mount -// __mac_get_mount -// __mac_getfsstat diff --git a/vendor/golang.org/x/sys/unix/syscall_linux.go b/vendor/golang.org/x/sys/unix/syscall_linux.go index 0ba030197..fb4e50224 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux.go @@ -693,10 +693,10 @@ type SockaddrALG struct { func (sa *SockaddrALG) sockaddr() (unsafe.Pointer, _Socklen, error) { // Leave room for NUL byte terminator. - if len(sa.Type) > 13 { + if len(sa.Type) > len(sa.raw.Type)-1 { return nil, 0, EINVAL } - if len(sa.Name) > 63 { + if len(sa.Name) > len(sa.raw.Name)-1 { return nil, 0, EINVAL } @@ -704,17 +704,8 @@ func (sa *SockaddrALG) sockaddr() (unsafe.Pointer, _Socklen, error) { sa.raw.Feat = sa.Feature sa.raw.Mask = sa.Mask - typ, err := ByteSliceFromString(sa.Type) - if err != nil { - return nil, 0, err - } - name, err := ByteSliceFromString(sa.Name) - if err != nil { - return nil, 0, err - } - - copy(sa.raw.Type[:], typ) - copy(sa.raw.Name[:], name) + copy(sa.raw.Type[:], sa.Type) + copy(sa.raw.Name[:], sa.Name) return unsafe.Pointer(&sa.raw), SizeofSockaddrALG, nil } @@ -1988,8 +1979,6 @@ func Signalfd(fd int, sigmask *Sigset_t, flags int) (newfd int, err error) { //sys Unshare(flags int) (err error) //sys write(fd int, p []byte) (n int, err error) //sys exitThread(code int) (err error) = SYS_EXIT -//sys readlen(fd int, p *byte, np int) (n int, err error) = SYS_READ -//sys writelen(fd int, p *byte, np int) (n int, err error) = SYS_WRITE //sys readv(fd int, iovs []Iovec) (n int, err error) = SYS_READV //sys writev(fd int, iovs []Iovec) (n int, err error) = SYS_WRITEV //sys preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) = SYS_PREADV @@ -2493,99 +2482,3 @@ func SchedGetAttr(pid int, flags uint) (*SchedAttr, error) { } return attr, nil } - -/* - * Unimplemented - */ -// AfsSyscall -// ArchPrctl -// Brk -// ClockNanosleep -// ClockSettime -// Clone -// EpollCtlOld -// EpollPwait -// EpollWaitOld -// Execve -// Fork -// Futex -// GetKernelSyms -// GetMempolicy -// GetRobustList -// GetThreadArea -// Getpmsg -// IoCancel -// IoDestroy -// IoGetevents -// IoSetup -// IoSubmit -// IoprioGet -// IoprioSet -// KexecLoad -// LookupDcookie -// Mbind -// MigratePages -// Mincore -// ModifyLdt -// Mount -// MovePages -// MqGetsetattr -// MqNotify -// MqOpen -// MqTimedreceive -// MqTimedsend -// MqUnlink -// Msgctl -// Msgget -// Msgrcv -// Msgsnd -// Nfsservctl -// Personality -// Pselect6 -// Ptrace -// Putpmsg -// Quotactl -// Readahead -// Readv -// RemapFilePages -// RestartSyscall -// RtSigaction -// RtSigpending -// RtSigqueueinfo -// RtSigreturn -// RtSigsuspend -// RtSigtimedwait -// SchedGetPriorityMax -// SchedGetPriorityMin -// SchedGetparam -// SchedGetscheduler -// SchedRrGetInterval -// SchedSetparam -// SchedYield -// Security -// Semctl -// Semget -// Semop -// Semtimedop -// SetMempolicy -// SetRobustList -// SetThreadArea -// SetTidAddress -// Sigaltstack -// Swapoff -// Swapon -// Sysfs -// TimerCreate -// TimerDelete -// TimerGetoverrun -// TimerGettime -// TimerSettime -// Tkill (obsolete) -// Tuxcall -// Umount2 -// Uselib -// Utimensat -// Vfork -// Vhangup -// Vserver -// _Sysctl diff --git a/vendor/golang.org/x/sys/unix/syscall_netbsd.go b/vendor/golang.org/x/sys/unix/syscall_netbsd.go index ddd1ac853..88162099a 100644 --- a/vendor/golang.org/x/sys/unix/syscall_netbsd.go +++ b/vendor/golang.org/x/sys/unix/syscall_netbsd.go @@ -356,8 +356,6 @@ func Statvfs(path string, buf *Statvfs_t) (err error) { //sys write(fd int, p []byte) (n int, err error) //sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) //sys munmap(addr uintptr, length uintptr) (err error) -//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ -//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE //sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) const ( @@ -371,262 +369,3 @@ const ( func mremap(oldaddr uintptr, oldlength uintptr, newlength uintptr, flags int, newaddr uintptr) (uintptr, error) { return mremapNetBSD(oldaddr, oldlength, newaddr, newlength, flags) } - -/* - * Unimplemented - */ -// ____semctl13 -// __clone -// __fhopen40 -// __fhstat40 -// __fhstatvfs140 -// __fstat30 -// __getcwd -// __getfh30 -// __getlogin -// __lstat30 -// __mount50 -// __msgctl13 -// __msync13 -// __ntp_gettime30 -// __posix_chown -// __posix_fchown -// __posix_lchown -// __posix_rename -// __setlogin -// __shmctl13 -// __sigaction_sigtramp -// __sigaltstack14 -// __sigpending14 -// __sigprocmask14 -// __sigsuspend14 -// __sigtimedwait -// __stat30 -// __syscall -// __vfork14 -// _ksem_close -// _ksem_destroy -// _ksem_getvalue -// _ksem_init -// _ksem_open -// _ksem_post -// _ksem_trywait -// _ksem_unlink -// _ksem_wait -// _lwp_continue -// _lwp_create -// _lwp_ctl -// _lwp_detach -// _lwp_exit -// _lwp_getname -// _lwp_getprivate -// _lwp_kill -// _lwp_park -// _lwp_self -// _lwp_setname -// _lwp_setprivate -// _lwp_suspend -// _lwp_unpark -// _lwp_unpark_all -// _lwp_wait -// _lwp_wakeup -// _pset_bind -// _sched_getaffinity -// _sched_getparam -// _sched_setaffinity -// _sched_setparam -// acct -// aio_cancel -// aio_error -// aio_fsync -// aio_read -// aio_return -// aio_suspend -// aio_write -// break -// clock_getres -// clock_gettime -// clock_settime -// compat_09_ogetdomainname -// compat_09_osetdomainname -// compat_09_ouname -// compat_10_omsgsys -// compat_10_osemsys -// compat_10_oshmsys -// compat_12_fstat12 -// compat_12_getdirentries -// compat_12_lstat12 -// compat_12_msync -// compat_12_oreboot -// compat_12_oswapon -// compat_12_stat12 -// compat_13_sigaction13 -// compat_13_sigaltstack13 -// compat_13_sigpending13 -// compat_13_sigprocmask13 -// compat_13_sigreturn13 -// compat_13_sigsuspend13 -// compat_14___semctl -// compat_14_msgctl -// compat_14_shmctl -// compat_16___sigaction14 -// compat_16___sigreturn14 -// compat_20_fhstatfs -// compat_20_fstatfs -// compat_20_getfsstat -// compat_20_statfs -// compat_30___fhstat30 -// compat_30___fstat13 -// compat_30___lstat13 -// compat_30___stat13 -// compat_30_fhopen -// compat_30_fhstat -// compat_30_fhstatvfs1 -// compat_30_getdents -// compat_30_getfh -// compat_30_ntp_gettime -// compat_30_socket -// compat_40_mount -// compat_43_fstat43 -// compat_43_lstat43 -// compat_43_oaccept -// compat_43_ocreat -// compat_43_oftruncate -// compat_43_ogetdirentries -// compat_43_ogetdtablesize -// compat_43_ogethostid -// compat_43_ogethostname -// compat_43_ogetkerninfo -// compat_43_ogetpagesize -// compat_43_ogetpeername -// compat_43_ogetrlimit -// compat_43_ogetsockname -// compat_43_okillpg -// compat_43_olseek -// compat_43_ommap -// compat_43_oquota -// compat_43_orecv -// compat_43_orecvfrom -// compat_43_orecvmsg -// compat_43_osend -// compat_43_osendmsg -// compat_43_osethostid -// compat_43_osethostname -// compat_43_osigblock -// compat_43_osigsetmask -// compat_43_osigstack -// compat_43_osigvec -// compat_43_otruncate -// compat_43_owait -// compat_43_stat43 -// execve -// extattr_delete_fd -// extattr_delete_file -// extattr_delete_link -// extattr_get_fd -// extattr_get_file -// extattr_get_link -// extattr_list_fd -// extattr_list_file -// extattr_list_link -// extattr_set_fd -// extattr_set_file -// extattr_set_link -// extattrctl -// fchroot -// fdatasync -// fgetxattr -// fktrace -// flistxattr -// fork -// fremovexattr -// fsetxattr -// fstatvfs1 -// fsync_range -// getcontext -// getitimer -// getvfsstat -// getxattr -// ktrace -// lchflags -// lchmod -// lfs_bmapv -// lfs_markv -// lfs_segclean -// lfs_segwait -// lgetxattr -// lio_listio -// listxattr -// llistxattr -// lremovexattr -// lseek -// lsetxattr -// lutimes -// madvise -// mincore -// minherit -// modctl -// mq_close -// mq_getattr -// mq_notify -// mq_open -// mq_receive -// mq_send -// mq_setattr -// mq_timedreceive -// mq_timedsend -// mq_unlink -// msgget -// msgrcv -// msgsnd -// nfssvc -// ntp_adjtime -// pmc_control -// pmc_get_info -// pollts -// preadv -// profil -// pselect -// pset_assign -// pset_create -// pset_destroy -// ptrace -// pwritev -// quotactl -// rasctl -// readv -// reboot -// removexattr -// sa_enable -// sa_preempt -// sa_register -// sa_setconcurrency -// sa_stacks -// sa_yield -// sbrk -// sched_yield -// semconfig -// semget -// semop -// setcontext -// setitimer -// setxattr -// shmat -// shmdt -// shmget -// sstk -// statvfs1 -// swapctl -// sysarch -// syscall -// timer_create -// timer_delete -// timer_getoverrun -// timer_gettime -// timer_settime -// undelete -// utrace -// uuidgen -// vadvise -// vfork -// writev diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd.go b/vendor/golang.org/x/sys/unix/syscall_openbsd.go index c5f166a11..6f34479b5 100644 --- a/vendor/golang.org/x/sys/unix/syscall_openbsd.go +++ b/vendor/golang.org/x/sys/unix/syscall_openbsd.go @@ -326,78 +326,4 @@ func Uname(uname *Utsname) error { //sys write(fd int, p []byte) (n int, err error) //sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) //sys munmap(addr uintptr, length uintptr) (err error) -//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ -//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE //sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) - -/* - * Unimplemented - */ -// __getcwd -// __semctl -// __syscall -// __sysctl -// adjfreq -// break -// clock_getres -// clock_gettime -// clock_settime -// closefrom -// execve -// fhopen -// fhstat -// fhstatfs -// fork -// futimens -// getfh -// getgid -// getitimer -// getlogin -// getthrid -// ktrace -// lfs_bmapv -// lfs_markv -// lfs_segclean -// lfs_segwait -// mincore -// minherit -// mount -// mquery -// msgctl -// msgget -// msgrcv -// msgsnd -// nfssvc -// nnpfspioctl -// preadv -// profil -// pwritev -// quotactl -// readv -// reboot -// renameat -// rfork -// sched_yield -// semget -// semop -// setgroups -// setitimer -// setsockopt -// shmat -// shmctl -// shmdt -// shmget -// sigaction -// sigaltstack -// sigpending -// sigprocmask -// sigreturn -// sigsuspend -// sysarch -// syscall -// threxit -// thrsigdivert -// thrsleep -// thrwakeup -// vfork -// writev diff --git a/vendor/golang.org/x/sys/unix/syscall_solaris.go b/vendor/golang.org/x/sys/unix/syscall_solaris.go index 72d23575f..b99cfa134 100644 --- a/vendor/golang.org/x/sys/unix/syscall_solaris.go +++ b/vendor/golang.org/x/sys/unix/syscall_solaris.go @@ -698,24 +698,6 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e //sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) = libsocket.setsockopt //sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) = libsocket.recvfrom -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procread)), 3, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf), 0, 0, 0) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwrite)), 3, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf), 0, 0, 0) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - // Event Ports type fileObjCookie struct { diff --git a/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go b/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go index 44e72edb4..4596d041c 100644 --- a/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go +++ b/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go @@ -192,7 +192,6 @@ func (cmsg *Cmsghdr) SetLen(length int) { //sys fcntl(fd int, cmd int, arg int) (val int, err error) //sys read(fd int, p []byte) (n int, err error) -//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ //sys write(fd int, p []byte) (n int, err error) //sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) = SYS___ACCEPT_A diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux.go b/vendor/golang.org/x/sys/unix/zerrors_linux.go index 0787a043b..f9c7f479b 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux.go @@ -2421,6 +2421,15 @@ const ( PR_PAC_GET_ENABLED_KEYS = 0x3d PR_PAC_RESET_KEYS = 0x36 PR_PAC_SET_ENABLED_KEYS = 0x3c + PR_RISCV_V_GET_CONTROL = 0x46 + PR_RISCV_V_SET_CONTROL = 0x45 + PR_RISCV_V_VSTATE_CTRL_CUR_MASK = 0x3 + PR_RISCV_V_VSTATE_CTRL_DEFAULT = 0x0 + PR_RISCV_V_VSTATE_CTRL_INHERIT = 0x10 + PR_RISCV_V_VSTATE_CTRL_MASK = 0x1f + PR_RISCV_V_VSTATE_CTRL_NEXT_MASK = 0xc + PR_RISCV_V_VSTATE_CTRL_OFF = 0x1 + PR_RISCV_V_VSTATE_CTRL_ON = 0x2 PR_SCHED_CORE = 0x3e PR_SCHED_CORE_CREATE = 0x1 PR_SCHED_CORE_GET = 0x0 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go index cfb143001..30aee00a5 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go @@ -326,10 +326,12 @@ const ( SO_NOFCS = 0x2b SO_OOBINLINE = 0xa SO_PASSCRED = 0x10 + SO_PASSPIDFD = 0x4c SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x11 SO_PEERGROUPS = 0x3b + SO_PEERPIDFD = 0x4d SO_PEERSEC = 0x1f SO_PREFER_BUSY_POLL = 0x45 SO_PROTOCOL = 0x26 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go index df64f2d59..8ebfa5127 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go @@ -327,10 +327,12 @@ const ( SO_NOFCS = 0x2b SO_OOBINLINE = 0xa SO_PASSCRED = 0x10 + SO_PASSPIDFD = 0x4c SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x11 SO_PEERGROUPS = 0x3b + SO_PEERPIDFD = 0x4d SO_PEERSEC = 0x1f SO_PREFER_BUSY_POLL = 0x45 SO_PROTOCOL = 0x26 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go index 3025cd5b2..271a21cdc 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go @@ -333,10 +333,12 @@ const ( SO_NOFCS = 0x2b SO_OOBINLINE = 0xa SO_PASSCRED = 0x10 + SO_PASSPIDFD = 0x4c SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x11 SO_PEERGROUPS = 0x3b + SO_PEERPIDFD = 0x4d SO_PEERSEC = 0x1f SO_PREFER_BUSY_POLL = 0x45 SO_PROTOCOL = 0x26 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go index 09e1ffbef..910c330a3 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go @@ -323,10 +323,12 @@ const ( SO_NOFCS = 0x2b SO_OOBINLINE = 0xa SO_PASSCRED = 0x10 + SO_PASSPIDFD = 0x4c SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x11 SO_PEERGROUPS = 0x3b + SO_PEERPIDFD = 0x4d SO_PEERSEC = 0x1f SO_PREFER_BUSY_POLL = 0x45 SO_PROTOCOL = 0x26 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go index a45723540..a640798c9 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go @@ -118,6 +118,8 @@ const ( IUCLC = 0x200 IXOFF = 0x1000 IXON = 0x400 + LASX_CTX_MAGIC = 0x41535801 + LSX_CTX_MAGIC = 0x53580001 MAP_ANON = 0x20 MAP_ANONYMOUS = 0x20 MAP_DENYWRITE = 0x800 @@ -317,10 +319,12 @@ const ( SO_NOFCS = 0x2b SO_OOBINLINE = 0xa SO_PASSCRED = 0x10 + SO_PASSPIDFD = 0x4c SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x11 SO_PEERGROUPS = 0x3b + SO_PEERPIDFD = 0x4d SO_PEERSEC = 0x1f SO_PREFER_BUSY_POLL = 0x45 SO_PROTOCOL = 0x26 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go index fee7dfb81..0d5925d34 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go @@ -326,10 +326,12 @@ const ( SO_NOFCS = 0x2b SO_OOBINLINE = 0x100 SO_PASSCRED = 0x11 + SO_PASSPIDFD = 0x4c SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x12 SO_PEERGROUPS = 0x3b + SO_PEERPIDFD = 0x4d SO_PEERSEC = 0x1e SO_PREFER_BUSY_POLL = 0x45 SO_PROTOCOL = 0x1028 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go index a5b2373ae..d72a00e0b 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go @@ -326,10 +326,12 @@ const ( SO_NOFCS = 0x2b SO_OOBINLINE = 0x100 SO_PASSCRED = 0x11 + SO_PASSPIDFD = 0x4c SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x12 SO_PEERGROUPS = 0x3b + SO_PEERPIDFD = 0x4d SO_PEERSEC = 0x1e SO_PREFER_BUSY_POLL = 0x45 SO_PROTOCOL = 0x1028 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go index 5dde82c98..02ba129f8 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go @@ -326,10 +326,12 @@ const ( SO_NOFCS = 0x2b SO_OOBINLINE = 0x100 SO_PASSCRED = 0x11 + SO_PASSPIDFD = 0x4c SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x12 SO_PEERGROUPS = 0x3b + SO_PEERPIDFD = 0x4d SO_PEERSEC = 0x1e SO_PREFER_BUSY_POLL = 0x45 SO_PROTOCOL = 0x1028 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go index 2e80ea6b3..8daa6dd96 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go @@ -326,10 +326,12 @@ const ( SO_NOFCS = 0x2b SO_OOBINLINE = 0x100 SO_PASSCRED = 0x11 + SO_PASSPIDFD = 0x4c SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x12 SO_PEERGROUPS = 0x3b + SO_PEERPIDFD = 0x4d SO_PEERSEC = 0x1e SO_PREFER_BUSY_POLL = 0x45 SO_PROTOCOL = 0x1028 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go index a65dcd7cb..63c8fa2f7 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go @@ -381,10 +381,12 @@ const ( SO_NOFCS = 0x2b SO_OOBINLINE = 0xa SO_PASSCRED = 0x14 + SO_PASSPIDFD = 0x4c SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x15 SO_PEERGROUPS = 0x3b + SO_PEERPIDFD = 0x4d SO_PEERSEC = 0x1f SO_PREFER_BUSY_POLL = 0x45 SO_PROTOCOL = 0x26 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go index cbd34e3d8..930799ec1 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go @@ -385,10 +385,12 @@ const ( SO_NOFCS = 0x2b SO_OOBINLINE = 0xa SO_PASSCRED = 0x14 + SO_PASSPIDFD = 0x4c SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x15 SO_PEERGROUPS = 0x3b + SO_PEERPIDFD = 0x4d SO_PEERSEC = 0x1f SO_PREFER_BUSY_POLL = 0x45 SO_PROTOCOL = 0x26 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go index e4afa7a31..8605a7dd7 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go @@ -385,10 +385,12 @@ const ( SO_NOFCS = 0x2b SO_OOBINLINE = 0xa SO_PASSCRED = 0x14 + SO_PASSPIDFD = 0x4c SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x15 SO_PEERGROUPS = 0x3b + SO_PEERPIDFD = 0x4d SO_PEERSEC = 0x1f SO_PREFER_BUSY_POLL = 0x45 SO_PROTOCOL = 0x26 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go index 44f45a039..95a016f1c 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go @@ -314,10 +314,12 @@ const ( SO_NOFCS = 0x2b SO_OOBINLINE = 0xa SO_PASSCRED = 0x10 + SO_PASSPIDFD = 0x4c SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x11 SO_PEERGROUPS = 0x3b + SO_PEERPIDFD = 0x4d SO_PEERSEC = 0x1f SO_PREFER_BUSY_POLL = 0x45 SO_PROTOCOL = 0x26 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go index 74733e260..1ae0108f5 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go @@ -389,10 +389,12 @@ const ( SO_NOFCS = 0x2b SO_OOBINLINE = 0xa SO_PASSCRED = 0x10 + SO_PASSPIDFD = 0x4c SO_PASSSEC = 0x22 SO_PEEK_OFF = 0x2a SO_PEERCRED = 0x11 SO_PEERGROUPS = 0x3b + SO_PEERPIDFD = 0x4d SO_PEERSEC = 0x1f SO_PREFER_BUSY_POLL = 0x45 SO_PROTOCOL = 0x26 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go index f5f3934b1..1bb7c6333 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go @@ -428,10 +428,12 @@ const ( SO_NOFCS = 0x27 SO_OOBINLINE = 0x100 SO_PASSCRED = 0x2 + SO_PASSPIDFD = 0x55 SO_PASSSEC = 0x1f SO_PEEK_OFF = 0x26 SO_PEERCRED = 0x40 SO_PEERGROUPS = 0x3d + SO_PEERPIDFD = 0x56 SO_PEERSEC = 0x1e SO_PREFER_BUSY_POLL = 0x48 SO_PROTOCOL = 0x1028 diff --git a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go index 9a257219d..d1d1d2331 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go @@ -817,28 +817,6 @@ func write(fd int, p []byte) (n int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, er := C.read(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(p))), C.size_t(np)) - n = int(r0) - if r0 == -1 && er != nil { - err = er - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, er := C.write(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(p))), C.size_t(np)) - n = int(r0) - if r0 == -1 && er != nil { - err = er - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Dup2(oldfd int, newfd int) (err error) { r0, er := C.dup2(C.int(oldfd), C.int(newfd)) if r0 == -1 && er != nil { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go index 6de80c20c..f99a18adc 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go @@ -762,28 +762,6 @@ func write(fd int, p []byte) (n int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, e1 := callread(fd, uintptr(unsafe.Pointer(p)), np) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, e1 := callwrite(fd, uintptr(unsafe.Pointer(p)), np) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Dup2(oldfd int, newfd int) (err error) { _, e1 := calldup2(oldfd, newfd) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go index 4037ccf7a..1cad561e9 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go @@ -725,6 +725,12 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { return } +var libc_ioctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) if e1 != 0 { @@ -733,10 +739,6 @@ func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { return } -var libc_ioctl_trampoline_addr uintptr - -//go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib" - // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { @@ -2410,28 +2412,6 @@ var libc_munmap_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Fstat(fd int, stat *Stat_t) (err error) { _, _, e1 := syscall_syscall(libc_fstat64_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) if e1 != 0 { @@ -2521,14 +2501,6 @@ func ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) { return } -func ptrace1Ptr(request int, pid int, addr uintptr, data unsafe.Pointer) (err error) { - _, _, e1 := syscall_syscall6(libc_ptrace_trampoline_addr, uintptr(request), uintptr(pid), addr, uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - var libc_ptrace_trampoline_addr uintptr //go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib" diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s index 4baaed0bc..8b8bb2840 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s @@ -5,703 +5,586 @@ TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fdopendir(SB) - GLOBL ·libc_fdopendir_trampoline_addr(SB), RODATA, $8 DATA ·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB) TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getgroups(SB) - GLOBL ·libc_getgroups_trampoline_addr(SB), RODATA, $8 DATA ·libc_getgroups_trampoline_addr(SB)/8, $libc_getgroups_trampoline<>(SB) TEXT libc_setgroups_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setgroups(SB) - GLOBL ·libc_setgroups_trampoline_addr(SB), RODATA, $8 DATA ·libc_setgroups_trampoline_addr(SB)/8, $libc_setgroups_trampoline<>(SB) TEXT libc_wait4_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_wait4(SB) - GLOBL ·libc_wait4_trampoline_addr(SB), RODATA, $8 DATA ·libc_wait4_trampoline_addr(SB)/8, $libc_wait4_trampoline<>(SB) TEXT libc_accept_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_accept(SB) - GLOBL ·libc_accept_trampoline_addr(SB), RODATA, $8 DATA ·libc_accept_trampoline_addr(SB)/8, $libc_accept_trampoline<>(SB) TEXT libc_bind_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_bind(SB) - GLOBL ·libc_bind_trampoline_addr(SB), RODATA, $8 DATA ·libc_bind_trampoline_addr(SB)/8, $libc_bind_trampoline<>(SB) TEXT libc_connect_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_connect(SB) - GLOBL ·libc_connect_trampoline_addr(SB), RODATA, $8 DATA ·libc_connect_trampoline_addr(SB)/8, $libc_connect_trampoline<>(SB) TEXT libc_socket_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_socket(SB) - GLOBL ·libc_socket_trampoline_addr(SB), RODATA, $8 DATA ·libc_socket_trampoline_addr(SB)/8, $libc_socket_trampoline<>(SB) TEXT libc_getsockopt_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getsockopt(SB) - GLOBL ·libc_getsockopt_trampoline_addr(SB), RODATA, $8 DATA ·libc_getsockopt_trampoline_addr(SB)/8, $libc_getsockopt_trampoline<>(SB) TEXT libc_setsockopt_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setsockopt(SB) - GLOBL ·libc_setsockopt_trampoline_addr(SB), RODATA, $8 DATA ·libc_setsockopt_trampoline_addr(SB)/8, $libc_setsockopt_trampoline<>(SB) TEXT libc_getpeername_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getpeername(SB) - GLOBL ·libc_getpeername_trampoline_addr(SB), RODATA, $8 DATA ·libc_getpeername_trampoline_addr(SB)/8, $libc_getpeername_trampoline<>(SB) TEXT libc_getsockname_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getsockname(SB) - GLOBL ·libc_getsockname_trampoline_addr(SB), RODATA, $8 DATA ·libc_getsockname_trampoline_addr(SB)/8, $libc_getsockname_trampoline<>(SB) TEXT libc_shutdown_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_shutdown(SB) - GLOBL ·libc_shutdown_trampoline_addr(SB), RODATA, $8 DATA ·libc_shutdown_trampoline_addr(SB)/8, $libc_shutdown_trampoline<>(SB) TEXT libc_socketpair_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_socketpair(SB) - GLOBL ·libc_socketpair_trampoline_addr(SB), RODATA, $8 DATA ·libc_socketpair_trampoline_addr(SB)/8, $libc_socketpair_trampoline<>(SB) TEXT libc_recvfrom_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_recvfrom(SB) - GLOBL ·libc_recvfrom_trampoline_addr(SB), RODATA, $8 DATA ·libc_recvfrom_trampoline_addr(SB)/8, $libc_recvfrom_trampoline<>(SB) TEXT libc_sendto_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_sendto(SB) - GLOBL ·libc_sendto_trampoline_addr(SB), RODATA, $8 DATA ·libc_sendto_trampoline_addr(SB)/8, $libc_sendto_trampoline<>(SB) TEXT libc_recvmsg_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_recvmsg(SB) - GLOBL ·libc_recvmsg_trampoline_addr(SB), RODATA, $8 DATA ·libc_recvmsg_trampoline_addr(SB)/8, $libc_recvmsg_trampoline<>(SB) TEXT libc_sendmsg_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_sendmsg(SB) - GLOBL ·libc_sendmsg_trampoline_addr(SB), RODATA, $8 DATA ·libc_sendmsg_trampoline_addr(SB)/8, $libc_sendmsg_trampoline<>(SB) TEXT libc_kevent_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_kevent(SB) - GLOBL ·libc_kevent_trampoline_addr(SB), RODATA, $8 DATA ·libc_kevent_trampoline_addr(SB)/8, $libc_kevent_trampoline<>(SB) TEXT libc_utimes_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_utimes(SB) - GLOBL ·libc_utimes_trampoline_addr(SB), RODATA, $8 DATA ·libc_utimes_trampoline_addr(SB)/8, $libc_utimes_trampoline<>(SB) TEXT libc_futimes_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_futimes(SB) - GLOBL ·libc_futimes_trampoline_addr(SB), RODATA, $8 DATA ·libc_futimes_trampoline_addr(SB)/8, $libc_futimes_trampoline<>(SB) TEXT libc_poll_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_poll(SB) - GLOBL ·libc_poll_trampoline_addr(SB), RODATA, $8 DATA ·libc_poll_trampoline_addr(SB)/8, $libc_poll_trampoline<>(SB) TEXT libc_madvise_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_madvise(SB) - GLOBL ·libc_madvise_trampoline_addr(SB), RODATA, $8 DATA ·libc_madvise_trampoline_addr(SB)/8, $libc_madvise_trampoline<>(SB) TEXT libc_mlock_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_mlock(SB) - GLOBL ·libc_mlock_trampoline_addr(SB), RODATA, $8 DATA ·libc_mlock_trampoline_addr(SB)/8, $libc_mlock_trampoline<>(SB) TEXT libc_mlockall_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_mlockall(SB) - GLOBL ·libc_mlockall_trampoline_addr(SB), RODATA, $8 DATA ·libc_mlockall_trampoline_addr(SB)/8, $libc_mlockall_trampoline<>(SB) TEXT libc_mprotect_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_mprotect(SB) - GLOBL ·libc_mprotect_trampoline_addr(SB), RODATA, $8 DATA ·libc_mprotect_trampoline_addr(SB)/8, $libc_mprotect_trampoline<>(SB) TEXT libc_msync_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_msync(SB) - GLOBL ·libc_msync_trampoline_addr(SB), RODATA, $8 DATA ·libc_msync_trampoline_addr(SB)/8, $libc_msync_trampoline<>(SB) TEXT libc_munlock_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_munlock(SB) - GLOBL ·libc_munlock_trampoline_addr(SB), RODATA, $8 DATA ·libc_munlock_trampoline_addr(SB)/8, $libc_munlock_trampoline<>(SB) TEXT libc_munlockall_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_munlockall(SB) - GLOBL ·libc_munlockall_trampoline_addr(SB), RODATA, $8 DATA ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB) TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_closedir(SB) - GLOBL ·libc_closedir_trampoline_addr(SB), RODATA, $8 DATA ·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB) TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_readdir_r(SB) - GLOBL ·libc_readdir_r_trampoline_addr(SB), RODATA, $8 DATA ·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB) TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_pipe(SB) - GLOBL ·libc_pipe_trampoline_addr(SB), RODATA, $8 DATA ·libc_pipe_trampoline_addr(SB)/8, $libc_pipe_trampoline<>(SB) TEXT libc_getxattr_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getxattr(SB) - GLOBL ·libc_getxattr_trampoline_addr(SB), RODATA, $8 DATA ·libc_getxattr_trampoline_addr(SB)/8, $libc_getxattr_trampoline<>(SB) TEXT libc_fgetxattr_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fgetxattr(SB) - GLOBL ·libc_fgetxattr_trampoline_addr(SB), RODATA, $8 DATA ·libc_fgetxattr_trampoline_addr(SB)/8, $libc_fgetxattr_trampoline<>(SB) TEXT libc_setxattr_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setxattr(SB) - GLOBL ·libc_setxattr_trampoline_addr(SB), RODATA, $8 DATA ·libc_setxattr_trampoline_addr(SB)/8, $libc_setxattr_trampoline<>(SB) TEXT libc_fsetxattr_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fsetxattr(SB) - GLOBL ·libc_fsetxattr_trampoline_addr(SB), RODATA, $8 DATA ·libc_fsetxattr_trampoline_addr(SB)/8, $libc_fsetxattr_trampoline<>(SB) TEXT libc_removexattr_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_removexattr(SB) - GLOBL ·libc_removexattr_trampoline_addr(SB), RODATA, $8 DATA ·libc_removexattr_trampoline_addr(SB)/8, $libc_removexattr_trampoline<>(SB) TEXT libc_fremovexattr_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fremovexattr(SB) - GLOBL ·libc_fremovexattr_trampoline_addr(SB), RODATA, $8 DATA ·libc_fremovexattr_trampoline_addr(SB)/8, $libc_fremovexattr_trampoline<>(SB) TEXT libc_listxattr_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_listxattr(SB) - GLOBL ·libc_listxattr_trampoline_addr(SB), RODATA, $8 DATA ·libc_listxattr_trampoline_addr(SB)/8, $libc_listxattr_trampoline<>(SB) TEXT libc_flistxattr_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_flistxattr(SB) - GLOBL ·libc_flistxattr_trampoline_addr(SB), RODATA, $8 DATA ·libc_flistxattr_trampoline_addr(SB)/8, $libc_flistxattr_trampoline<>(SB) TEXT libc_utimensat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_utimensat(SB) - GLOBL ·libc_utimensat_trampoline_addr(SB), RODATA, $8 DATA ·libc_utimensat_trampoline_addr(SB)/8, $libc_utimensat_trampoline<>(SB) TEXT libc_fcntl_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fcntl(SB) - GLOBL ·libc_fcntl_trampoline_addr(SB), RODATA, $8 DATA ·libc_fcntl_trampoline_addr(SB)/8, $libc_fcntl_trampoline<>(SB) TEXT libc_kill_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_kill(SB) - GLOBL ·libc_kill_trampoline_addr(SB), RODATA, $8 DATA ·libc_kill_trampoline_addr(SB)/8, $libc_kill_trampoline<>(SB) TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_ioctl(SB) - GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $8 DATA ·libc_ioctl_trampoline_addr(SB)/8, $libc_ioctl_trampoline<>(SB) TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_sysctl(SB) - GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) TEXT libc_sendfile_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_sendfile(SB) - GLOBL ·libc_sendfile_trampoline_addr(SB), RODATA, $8 DATA ·libc_sendfile_trampoline_addr(SB)/8, $libc_sendfile_trampoline<>(SB) TEXT libc_shmat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_shmat(SB) - GLOBL ·libc_shmat_trampoline_addr(SB), RODATA, $8 DATA ·libc_shmat_trampoline_addr(SB)/8, $libc_shmat_trampoline<>(SB) TEXT libc_shmctl_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_shmctl(SB) - GLOBL ·libc_shmctl_trampoline_addr(SB), RODATA, $8 DATA ·libc_shmctl_trampoline_addr(SB)/8, $libc_shmctl_trampoline<>(SB) TEXT libc_shmdt_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_shmdt(SB) - GLOBL ·libc_shmdt_trampoline_addr(SB), RODATA, $8 DATA ·libc_shmdt_trampoline_addr(SB)/8, $libc_shmdt_trampoline<>(SB) TEXT libc_shmget_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_shmget(SB) - GLOBL ·libc_shmget_trampoline_addr(SB), RODATA, $8 DATA ·libc_shmget_trampoline_addr(SB)/8, $libc_shmget_trampoline<>(SB) TEXT libc_access_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_access(SB) - GLOBL ·libc_access_trampoline_addr(SB), RODATA, $8 DATA ·libc_access_trampoline_addr(SB)/8, $libc_access_trampoline<>(SB) TEXT libc_adjtime_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_adjtime(SB) - GLOBL ·libc_adjtime_trampoline_addr(SB), RODATA, $8 DATA ·libc_adjtime_trampoline_addr(SB)/8, $libc_adjtime_trampoline<>(SB) TEXT libc_chdir_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_chdir(SB) - GLOBL ·libc_chdir_trampoline_addr(SB), RODATA, $8 DATA ·libc_chdir_trampoline_addr(SB)/8, $libc_chdir_trampoline<>(SB) TEXT libc_chflags_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_chflags(SB) - GLOBL ·libc_chflags_trampoline_addr(SB), RODATA, $8 DATA ·libc_chflags_trampoline_addr(SB)/8, $libc_chflags_trampoline<>(SB) TEXT libc_chmod_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_chmod(SB) - GLOBL ·libc_chmod_trampoline_addr(SB), RODATA, $8 DATA ·libc_chmod_trampoline_addr(SB)/8, $libc_chmod_trampoline<>(SB) TEXT libc_chown_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_chown(SB) - GLOBL ·libc_chown_trampoline_addr(SB), RODATA, $8 DATA ·libc_chown_trampoline_addr(SB)/8, $libc_chown_trampoline<>(SB) TEXT libc_chroot_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_chroot(SB) - GLOBL ·libc_chroot_trampoline_addr(SB), RODATA, $8 DATA ·libc_chroot_trampoline_addr(SB)/8, $libc_chroot_trampoline<>(SB) TEXT libc_clock_gettime_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_clock_gettime(SB) - GLOBL ·libc_clock_gettime_trampoline_addr(SB), RODATA, $8 DATA ·libc_clock_gettime_trampoline_addr(SB)/8, $libc_clock_gettime_trampoline<>(SB) TEXT libc_close_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_close(SB) - GLOBL ·libc_close_trampoline_addr(SB), RODATA, $8 DATA ·libc_close_trampoline_addr(SB)/8, $libc_close_trampoline<>(SB) TEXT libc_clonefile_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_clonefile(SB) - GLOBL ·libc_clonefile_trampoline_addr(SB), RODATA, $8 DATA ·libc_clonefile_trampoline_addr(SB)/8, $libc_clonefile_trampoline<>(SB) TEXT libc_clonefileat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_clonefileat(SB) - GLOBL ·libc_clonefileat_trampoline_addr(SB), RODATA, $8 DATA ·libc_clonefileat_trampoline_addr(SB)/8, $libc_clonefileat_trampoline<>(SB) TEXT libc_dup_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_dup(SB) - GLOBL ·libc_dup_trampoline_addr(SB), RODATA, $8 DATA ·libc_dup_trampoline_addr(SB)/8, $libc_dup_trampoline<>(SB) TEXT libc_dup2_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_dup2(SB) - GLOBL ·libc_dup2_trampoline_addr(SB), RODATA, $8 DATA ·libc_dup2_trampoline_addr(SB)/8, $libc_dup2_trampoline<>(SB) TEXT libc_exchangedata_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_exchangedata(SB) - GLOBL ·libc_exchangedata_trampoline_addr(SB), RODATA, $8 DATA ·libc_exchangedata_trampoline_addr(SB)/8, $libc_exchangedata_trampoline<>(SB) TEXT libc_exit_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_exit(SB) - GLOBL ·libc_exit_trampoline_addr(SB), RODATA, $8 DATA ·libc_exit_trampoline_addr(SB)/8, $libc_exit_trampoline<>(SB) TEXT libc_faccessat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_faccessat(SB) - GLOBL ·libc_faccessat_trampoline_addr(SB), RODATA, $8 DATA ·libc_faccessat_trampoline_addr(SB)/8, $libc_faccessat_trampoline<>(SB) TEXT libc_fchdir_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fchdir(SB) - GLOBL ·libc_fchdir_trampoline_addr(SB), RODATA, $8 DATA ·libc_fchdir_trampoline_addr(SB)/8, $libc_fchdir_trampoline<>(SB) TEXT libc_fchflags_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fchflags(SB) - GLOBL ·libc_fchflags_trampoline_addr(SB), RODATA, $8 DATA ·libc_fchflags_trampoline_addr(SB)/8, $libc_fchflags_trampoline<>(SB) TEXT libc_fchmod_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fchmod(SB) - GLOBL ·libc_fchmod_trampoline_addr(SB), RODATA, $8 DATA ·libc_fchmod_trampoline_addr(SB)/8, $libc_fchmod_trampoline<>(SB) TEXT libc_fchmodat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fchmodat(SB) - GLOBL ·libc_fchmodat_trampoline_addr(SB), RODATA, $8 DATA ·libc_fchmodat_trampoline_addr(SB)/8, $libc_fchmodat_trampoline<>(SB) TEXT libc_fchown_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fchown(SB) - GLOBL ·libc_fchown_trampoline_addr(SB), RODATA, $8 DATA ·libc_fchown_trampoline_addr(SB)/8, $libc_fchown_trampoline<>(SB) TEXT libc_fchownat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fchownat(SB) - GLOBL ·libc_fchownat_trampoline_addr(SB), RODATA, $8 DATA ·libc_fchownat_trampoline_addr(SB)/8, $libc_fchownat_trampoline<>(SB) TEXT libc_fclonefileat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fclonefileat(SB) - GLOBL ·libc_fclonefileat_trampoline_addr(SB), RODATA, $8 DATA ·libc_fclonefileat_trampoline_addr(SB)/8, $libc_fclonefileat_trampoline<>(SB) TEXT libc_flock_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_flock(SB) - GLOBL ·libc_flock_trampoline_addr(SB), RODATA, $8 DATA ·libc_flock_trampoline_addr(SB)/8, $libc_flock_trampoline<>(SB) TEXT libc_fpathconf_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fpathconf(SB) - GLOBL ·libc_fpathconf_trampoline_addr(SB), RODATA, $8 DATA ·libc_fpathconf_trampoline_addr(SB)/8, $libc_fpathconf_trampoline<>(SB) TEXT libc_fsync_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fsync(SB) - GLOBL ·libc_fsync_trampoline_addr(SB), RODATA, $8 DATA ·libc_fsync_trampoline_addr(SB)/8, $libc_fsync_trampoline<>(SB) TEXT libc_ftruncate_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_ftruncate(SB) - GLOBL ·libc_ftruncate_trampoline_addr(SB), RODATA, $8 DATA ·libc_ftruncate_trampoline_addr(SB)/8, $libc_ftruncate_trampoline<>(SB) TEXT libc_getcwd_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getcwd(SB) - GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $8 DATA ·libc_getcwd_trampoline_addr(SB)/8, $libc_getcwd_trampoline<>(SB) TEXT libc_getdtablesize_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getdtablesize(SB) - GLOBL ·libc_getdtablesize_trampoline_addr(SB), RODATA, $8 DATA ·libc_getdtablesize_trampoline_addr(SB)/8, $libc_getdtablesize_trampoline<>(SB) TEXT libc_getegid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getegid(SB) - GLOBL ·libc_getegid_trampoline_addr(SB), RODATA, $8 DATA ·libc_getegid_trampoline_addr(SB)/8, $libc_getegid_trampoline<>(SB) TEXT libc_geteuid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_geteuid(SB) - GLOBL ·libc_geteuid_trampoline_addr(SB), RODATA, $8 DATA ·libc_geteuid_trampoline_addr(SB)/8, $libc_geteuid_trampoline<>(SB) TEXT libc_getgid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getgid(SB) - GLOBL ·libc_getgid_trampoline_addr(SB), RODATA, $8 DATA ·libc_getgid_trampoline_addr(SB)/8, $libc_getgid_trampoline<>(SB) TEXT libc_getpgid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getpgid(SB) - GLOBL ·libc_getpgid_trampoline_addr(SB), RODATA, $8 DATA ·libc_getpgid_trampoline_addr(SB)/8, $libc_getpgid_trampoline<>(SB) TEXT libc_getpgrp_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getpgrp(SB) - GLOBL ·libc_getpgrp_trampoline_addr(SB), RODATA, $8 DATA ·libc_getpgrp_trampoline_addr(SB)/8, $libc_getpgrp_trampoline<>(SB) TEXT libc_getpid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getpid(SB) - GLOBL ·libc_getpid_trampoline_addr(SB), RODATA, $8 DATA ·libc_getpid_trampoline_addr(SB)/8, $libc_getpid_trampoline<>(SB) TEXT libc_getppid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getppid(SB) - GLOBL ·libc_getppid_trampoline_addr(SB), RODATA, $8 DATA ·libc_getppid_trampoline_addr(SB)/8, $libc_getppid_trampoline<>(SB) TEXT libc_getpriority_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getpriority(SB) - GLOBL ·libc_getpriority_trampoline_addr(SB), RODATA, $8 DATA ·libc_getpriority_trampoline_addr(SB)/8, $libc_getpriority_trampoline<>(SB) TEXT libc_getrlimit_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getrlimit(SB) - GLOBL ·libc_getrlimit_trampoline_addr(SB), RODATA, $8 DATA ·libc_getrlimit_trampoline_addr(SB)/8, $libc_getrlimit_trampoline<>(SB) TEXT libc_getrusage_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getrusage(SB) - GLOBL ·libc_getrusage_trampoline_addr(SB), RODATA, $8 DATA ·libc_getrusage_trampoline_addr(SB)/8, $libc_getrusage_trampoline<>(SB) TEXT libc_getsid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getsid(SB) - GLOBL ·libc_getsid_trampoline_addr(SB), RODATA, $8 DATA ·libc_getsid_trampoline_addr(SB)/8, $libc_getsid_trampoline<>(SB) TEXT libc_gettimeofday_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_gettimeofday(SB) - GLOBL ·libc_gettimeofday_trampoline_addr(SB), RODATA, $8 DATA ·libc_gettimeofday_trampoline_addr(SB)/8, $libc_gettimeofday_trampoline<>(SB) TEXT libc_getuid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getuid(SB) - GLOBL ·libc_getuid_trampoline_addr(SB), RODATA, $8 DATA ·libc_getuid_trampoline_addr(SB)/8, $libc_getuid_trampoline<>(SB) TEXT libc_issetugid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_issetugid(SB) - GLOBL ·libc_issetugid_trampoline_addr(SB), RODATA, $8 DATA ·libc_issetugid_trampoline_addr(SB)/8, $libc_issetugid_trampoline<>(SB) TEXT libc_kqueue_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_kqueue(SB) - GLOBL ·libc_kqueue_trampoline_addr(SB), RODATA, $8 DATA ·libc_kqueue_trampoline_addr(SB)/8, $libc_kqueue_trampoline<>(SB) TEXT libc_lchown_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_lchown(SB) - GLOBL ·libc_lchown_trampoline_addr(SB), RODATA, $8 DATA ·libc_lchown_trampoline_addr(SB)/8, $libc_lchown_trampoline<>(SB) TEXT libc_link_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_link(SB) - GLOBL ·libc_link_trampoline_addr(SB), RODATA, $8 DATA ·libc_link_trampoline_addr(SB)/8, $libc_link_trampoline<>(SB) TEXT libc_linkat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_linkat(SB) - GLOBL ·libc_linkat_trampoline_addr(SB), RODATA, $8 DATA ·libc_linkat_trampoline_addr(SB)/8, $libc_linkat_trampoline<>(SB) TEXT libc_listen_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_listen(SB) - GLOBL ·libc_listen_trampoline_addr(SB), RODATA, $8 DATA ·libc_listen_trampoline_addr(SB)/8, $libc_listen_trampoline<>(SB) TEXT libc_mkdir_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_mkdir(SB) - GLOBL ·libc_mkdir_trampoline_addr(SB), RODATA, $8 DATA ·libc_mkdir_trampoline_addr(SB)/8, $libc_mkdir_trampoline<>(SB) TEXT libc_mkdirat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_mkdirat(SB) - GLOBL ·libc_mkdirat_trampoline_addr(SB), RODATA, $8 DATA ·libc_mkdirat_trampoline_addr(SB)/8, $libc_mkdirat_trampoline<>(SB) TEXT libc_mkfifo_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_mkfifo(SB) - GLOBL ·libc_mkfifo_trampoline_addr(SB), RODATA, $8 DATA ·libc_mkfifo_trampoline_addr(SB)/8, $libc_mkfifo_trampoline<>(SB) TEXT libc_mknod_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_mknod(SB) - GLOBL ·libc_mknod_trampoline_addr(SB), RODATA, $8 DATA ·libc_mknod_trampoline_addr(SB)/8, $libc_mknod_trampoline<>(SB) TEXT libc_mount_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_mount(SB) - GLOBL ·libc_mount_trampoline_addr(SB), RODATA, $8 DATA ·libc_mount_trampoline_addr(SB)/8, $libc_mount_trampoline<>(SB) TEXT libc_open_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_open(SB) - GLOBL ·libc_open_trampoline_addr(SB), RODATA, $8 DATA ·libc_open_trampoline_addr(SB)/8, $libc_open_trampoline<>(SB) TEXT libc_openat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_openat(SB) - GLOBL ·libc_openat_trampoline_addr(SB), RODATA, $8 DATA ·libc_openat_trampoline_addr(SB)/8, $libc_openat_trampoline<>(SB) TEXT libc_pathconf_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_pathconf(SB) - GLOBL ·libc_pathconf_trampoline_addr(SB), RODATA, $8 DATA ·libc_pathconf_trampoline_addr(SB)/8, $libc_pathconf_trampoline<>(SB) TEXT libc_pread_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_pread(SB) - GLOBL ·libc_pread_trampoline_addr(SB), RODATA, $8 DATA ·libc_pread_trampoline_addr(SB)/8, $libc_pread_trampoline<>(SB) TEXT libc_pwrite_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_pwrite(SB) - GLOBL ·libc_pwrite_trampoline_addr(SB), RODATA, $8 DATA ·libc_pwrite_trampoline_addr(SB)/8, $libc_pwrite_trampoline<>(SB) TEXT libc_read_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_read(SB) - GLOBL ·libc_read_trampoline_addr(SB), RODATA, $8 DATA ·libc_read_trampoline_addr(SB)/8, $libc_read_trampoline<>(SB) TEXT libc_readlink_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_readlink(SB) - GLOBL ·libc_readlink_trampoline_addr(SB), RODATA, $8 DATA ·libc_readlink_trampoline_addr(SB)/8, $libc_readlink_trampoline<>(SB) TEXT libc_readlinkat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_readlinkat(SB) - GLOBL ·libc_readlinkat_trampoline_addr(SB), RODATA, $8 DATA ·libc_readlinkat_trampoline_addr(SB)/8, $libc_readlinkat_trampoline<>(SB) TEXT libc_rename_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_rename(SB) - GLOBL ·libc_rename_trampoline_addr(SB), RODATA, $8 DATA ·libc_rename_trampoline_addr(SB)/8, $libc_rename_trampoline<>(SB) TEXT libc_renameat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_renameat(SB) - GLOBL ·libc_renameat_trampoline_addr(SB), RODATA, $8 DATA ·libc_renameat_trampoline_addr(SB)/8, $libc_renameat_trampoline<>(SB) TEXT libc_revoke_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_revoke(SB) - GLOBL ·libc_revoke_trampoline_addr(SB), RODATA, $8 DATA ·libc_revoke_trampoline_addr(SB)/8, $libc_revoke_trampoline<>(SB) TEXT libc_rmdir_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_rmdir(SB) - GLOBL ·libc_rmdir_trampoline_addr(SB), RODATA, $8 DATA ·libc_rmdir_trampoline_addr(SB)/8, $libc_rmdir_trampoline<>(SB) TEXT libc_lseek_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_lseek(SB) - GLOBL ·libc_lseek_trampoline_addr(SB), RODATA, $8 DATA ·libc_lseek_trampoline_addr(SB)/8, $libc_lseek_trampoline<>(SB) TEXT libc_select_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_select(SB) - GLOBL ·libc_select_trampoline_addr(SB), RODATA, $8 DATA ·libc_select_trampoline_addr(SB)/8, $libc_select_trampoline<>(SB) @@ -712,192 +595,160 @@ DATA ·libc_setattrlist_trampoline_addr(SB)/8, $libc_setattrlist_trampoline<>(SB TEXT libc_setegid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setegid(SB) - GLOBL ·libc_setegid_trampoline_addr(SB), RODATA, $8 DATA ·libc_setegid_trampoline_addr(SB)/8, $libc_setegid_trampoline<>(SB) TEXT libc_seteuid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_seteuid(SB) - GLOBL ·libc_seteuid_trampoline_addr(SB), RODATA, $8 DATA ·libc_seteuid_trampoline_addr(SB)/8, $libc_seteuid_trampoline<>(SB) TEXT libc_setgid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setgid(SB) - GLOBL ·libc_setgid_trampoline_addr(SB), RODATA, $8 DATA ·libc_setgid_trampoline_addr(SB)/8, $libc_setgid_trampoline<>(SB) TEXT libc_setlogin_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setlogin(SB) - GLOBL ·libc_setlogin_trampoline_addr(SB), RODATA, $8 DATA ·libc_setlogin_trampoline_addr(SB)/8, $libc_setlogin_trampoline<>(SB) TEXT libc_setpgid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setpgid(SB) - GLOBL ·libc_setpgid_trampoline_addr(SB), RODATA, $8 DATA ·libc_setpgid_trampoline_addr(SB)/8, $libc_setpgid_trampoline<>(SB) TEXT libc_setpriority_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setpriority(SB) - GLOBL ·libc_setpriority_trampoline_addr(SB), RODATA, $8 DATA ·libc_setpriority_trampoline_addr(SB)/8, $libc_setpriority_trampoline<>(SB) TEXT libc_setprivexec_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setprivexec(SB) - GLOBL ·libc_setprivexec_trampoline_addr(SB), RODATA, $8 DATA ·libc_setprivexec_trampoline_addr(SB)/8, $libc_setprivexec_trampoline<>(SB) TEXT libc_setregid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setregid(SB) - GLOBL ·libc_setregid_trampoline_addr(SB), RODATA, $8 DATA ·libc_setregid_trampoline_addr(SB)/8, $libc_setregid_trampoline<>(SB) TEXT libc_setreuid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setreuid(SB) - GLOBL ·libc_setreuid_trampoline_addr(SB), RODATA, $8 DATA ·libc_setreuid_trampoline_addr(SB)/8, $libc_setreuid_trampoline<>(SB) TEXT libc_setsid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setsid(SB) - GLOBL ·libc_setsid_trampoline_addr(SB), RODATA, $8 DATA ·libc_setsid_trampoline_addr(SB)/8, $libc_setsid_trampoline<>(SB) TEXT libc_settimeofday_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_settimeofday(SB) - GLOBL ·libc_settimeofday_trampoline_addr(SB), RODATA, $8 DATA ·libc_settimeofday_trampoline_addr(SB)/8, $libc_settimeofday_trampoline<>(SB) TEXT libc_setuid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setuid(SB) - GLOBL ·libc_setuid_trampoline_addr(SB), RODATA, $8 DATA ·libc_setuid_trampoline_addr(SB)/8, $libc_setuid_trampoline<>(SB) TEXT libc_symlink_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_symlink(SB) - GLOBL ·libc_symlink_trampoline_addr(SB), RODATA, $8 DATA ·libc_symlink_trampoline_addr(SB)/8, $libc_symlink_trampoline<>(SB) TEXT libc_symlinkat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_symlinkat(SB) - GLOBL ·libc_symlinkat_trampoline_addr(SB), RODATA, $8 DATA ·libc_symlinkat_trampoline_addr(SB)/8, $libc_symlinkat_trampoline<>(SB) TEXT libc_sync_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_sync(SB) - GLOBL ·libc_sync_trampoline_addr(SB), RODATA, $8 DATA ·libc_sync_trampoline_addr(SB)/8, $libc_sync_trampoline<>(SB) TEXT libc_truncate_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_truncate(SB) - GLOBL ·libc_truncate_trampoline_addr(SB), RODATA, $8 DATA ·libc_truncate_trampoline_addr(SB)/8, $libc_truncate_trampoline<>(SB) TEXT libc_umask_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_umask(SB) - GLOBL ·libc_umask_trampoline_addr(SB), RODATA, $8 DATA ·libc_umask_trampoline_addr(SB)/8, $libc_umask_trampoline<>(SB) TEXT libc_undelete_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_undelete(SB) - GLOBL ·libc_undelete_trampoline_addr(SB), RODATA, $8 DATA ·libc_undelete_trampoline_addr(SB)/8, $libc_undelete_trampoline<>(SB) TEXT libc_unlink_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_unlink(SB) - GLOBL ·libc_unlink_trampoline_addr(SB), RODATA, $8 DATA ·libc_unlink_trampoline_addr(SB)/8, $libc_unlink_trampoline<>(SB) TEXT libc_unlinkat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_unlinkat(SB) - GLOBL ·libc_unlinkat_trampoline_addr(SB), RODATA, $8 DATA ·libc_unlinkat_trampoline_addr(SB)/8, $libc_unlinkat_trampoline<>(SB) TEXT libc_unmount_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_unmount(SB) - GLOBL ·libc_unmount_trampoline_addr(SB), RODATA, $8 DATA ·libc_unmount_trampoline_addr(SB)/8, $libc_unmount_trampoline<>(SB) TEXT libc_write_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_write(SB) - GLOBL ·libc_write_trampoline_addr(SB), RODATA, $8 DATA ·libc_write_trampoline_addr(SB)/8, $libc_write_trampoline<>(SB) TEXT libc_mmap_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_mmap(SB) - GLOBL ·libc_mmap_trampoline_addr(SB), RODATA, $8 DATA ·libc_mmap_trampoline_addr(SB)/8, $libc_mmap_trampoline<>(SB) TEXT libc_munmap_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_munmap(SB) - GLOBL ·libc_munmap_trampoline_addr(SB), RODATA, $8 DATA ·libc_munmap_trampoline_addr(SB)/8, $libc_munmap_trampoline<>(SB) TEXT libc_fstat64_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fstat64(SB) - GLOBL ·libc_fstat64_trampoline_addr(SB), RODATA, $8 DATA ·libc_fstat64_trampoline_addr(SB)/8, $libc_fstat64_trampoline<>(SB) TEXT libc_fstatat64_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fstatat64(SB) - GLOBL ·libc_fstatat64_trampoline_addr(SB), RODATA, $8 DATA ·libc_fstatat64_trampoline_addr(SB)/8, $libc_fstatat64_trampoline<>(SB) TEXT libc_fstatfs64_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fstatfs64(SB) - GLOBL ·libc_fstatfs64_trampoline_addr(SB), RODATA, $8 DATA ·libc_fstatfs64_trampoline_addr(SB)/8, $libc_fstatfs64_trampoline<>(SB) TEXT libc_getfsstat64_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getfsstat64(SB) - GLOBL ·libc_getfsstat64_trampoline_addr(SB), RODATA, $8 DATA ·libc_getfsstat64_trampoline_addr(SB)/8, $libc_getfsstat64_trampoline<>(SB) TEXT libc_lstat64_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_lstat64(SB) - GLOBL ·libc_lstat64_trampoline_addr(SB), RODATA, $8 DATA ·libc_lstat64_trampoline_addr(SB)/8, $libc_lstat64_trampoline<>(SB) TEXT libc_ptrace_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_ptrace(SB) - GLOBL ·libc_ptrace_trampoline_addr(SB), RODATA, $8 DATA ·libc_ptrace_trampoline_addr(SB)/8, $libc_ptrace_trampoline<>(SB) TEXT libc_stat64_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_stat64(SB) - GLOBL ·libc_stat64_trampoline_addr(SB), RODATA, $8 DATA ·libc_stat64_trampoline_addr(SB)/8, $libc_stat64_trampoline<>(SB) TEXT libc_statfs64_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_statfs64(SB) - GLOBL ·libc_statfs64_trampoline_addr(SB), RODATA, $8 DATA ·libc_statfs64_trampoline_addr(SB)/8, $libc_statfs64_trampoline<>(SB) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go index 51d6f3fb2..b18edbd0e 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go @@ -725,6 +725,12 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { return } +var libc_ioctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) if e1 != 0 { @@ -733,10 +739,6 @@ func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { return } -var libc_ioctl_trampoline_addr uintptr - -//go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib" - // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { @@ -2410,28 +2412,6 @@ var libc_munmap_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Fstat(fd int, stat *Stat_t) (err error) { _, _, e1 := syscall_syscall(libc_fstat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) if e1 != 0 { @@ -2521,14 +2501,6 @@ func ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) { return } -func ptrace1Ptr(request int, pid int, addr uintptr, data unsafe.Pointer) (err error) { - _, _, e1 := syscall_syscall6(libc_ptrace_trampoline_addr, uintptr(request), uintptr(pid), addr, uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - var libc_ptrace_trampoline_addr uintptr //go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib" diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s index c3b82c037..08362c1ab 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s @@ -5,703 +5,586 @@ TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fdopendir(SB) - GLOBL ·libc_fdopendir_trampoline_addr(SB), RODATA, $8 DATA ·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB) TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getgroups(SB) - GLOBL ·libc_getgroups_trampoline_addr(SB), RODATA, $8 DATA ·libc_getgroups_trampoline_addr(SB)/8, $libc_getgroups_trampoline<>(SB) TEXT libc_setgroups_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setgroups(SB) - GLOBL ·libc_setgroups_trampoline_addr(SB), RODATA, $8 DATA ·libc_setgroups_trampoline_addr(SB)/8, $libc_setgroups_trampoline<>(SB) TEXT libc_wait4_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_wait4(SB) - GLOBL ·libc_wait4_trampoline_addr(SB), RODATA, $8 DATA ·libc_wait4_trampoline_addr(SB)/8, $libc_wait4_trampoline<>(SB) TEXT libc_accept_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_accept(SB) - GLOBL ·libc_accept_trampoline_addr(SB), RODATA, $8 DATA ·libc_accept_trampoline_addr(SB)/8, $libc_accept_trampoline<>(SB) TEXT libc_bind_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_bind(SB) - GLOBL ·libc_bind_trampoline_addr(SB), RODATA, $8 DATA ·libc_bind_trampoline_addr(SB)/8, $libc_bind_trampoline<>(SB) TEXT libc_connect_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_connect(SB) - GLOBL ·libc_connect_trampoline_addr(SB), RODATA, $8 DATA ·libc_connect_trampoline_addr(SB)/8, $libc_connect_trampoline<>(SB) TEXT libc_socket_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_socket(SB) - GLOBL ·libc_socket_trampoline_addr(SB), RODATA, $8 DATA ·libc_socket_trampoline_addr(SB)/8, $libc_socket_trampoline<>(SB) TEXT libc_getsockopt_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getsockopt(SB) - GLOBL ·libc_getsockopt_trampoline_addr(SB), RODATA, $8 DATA ·libc_getsockopt_trampoline_addr(SB)/8, $libc_getsockopt_trampoline<>(SB) TEXT libc_setsockopt_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setsockopt(SB) - GLOBL ·libc_setsockopt_trampoline_addr(SB), RODATA, $8 DATA ·libc_setsockopt_trampoline_addr(SB)/8, $libc_setsockopt_trampoline<>(SB) TEXT libc_getpeername_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getpeername(SB) - GLOBL ·libc_getpeername_trampoline_addr(SB), RODATA, $8 DATA ·libc_getpeername_trampoline_addr(SB)/8, $libc_getpeername_trampoline<>(SB) TEXT libc_getsockname_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getsockname(SB) - GLOBL ·libc_getsockname_trampoline_addr(SB), RODATA, $8 DATA ·libc_getsockname_trampoline_addr(SB)/8, $libc_getsockname_trampoline<>(SB) TEXT libc_shutdown_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_shutdown(SB) - GLOBL ·libc_shutdown_trampoline_addr(SB), RODATA, $8 DATA ·libc_shutdown_trampoline_addr(SB)/8, $libc_shutdown_trampoline<>(SB) TEXT libc_socketpair_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_socketpair(SB) - GLOBL ·libc_socketpair_trampoline_addr(SB), RODATA, $8 DATA ·libc_socketpair_trampoline_addr(SB)/8, $libc_socketpair_trampoline<>(SB) TEXT libc_recvfrom_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_recvfrom(SB) - GLOBL ·libc_recvfrom_trampoline_addr(SB), RODATA, $8 DATA ·libc_recvfrom_trampoline_addr(SB)/8, $libc_recvfrom_trampoline<>(SB) TEXT libc_sendto_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_sendto(SB) - GLOBL ·libc_sendto_trampoline_addr(SB), RODATA, $8 DATA ·libc_sendto_trampoline_addr(SB)/8, $libc_sendto_trampoline<>(SB) TEXT libc_recvmsg_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_recvmsg(SB) - GLOBL ·libc_recvmsg_trampoline_addr(SB), RODATA, $8 DATA ·libc_recvmsg_trampoline_addr(SB)/8, $libc_recvmsg_trampoline<>(SB) TEXT libc_sendmsg_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_sendmsg(SB) - GLOBL ·libc_sendmsg_trampoline_addr(SB), RODATA, $8 DATA ·libc_sendmsg_trampoline_addr(SB)/8, $libc_sendmsg_trampoline<>(SB) TEXT libc_kevent_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_kevent(SB) - GLOBL ·libc_kevent_trampoline_addr(SB), RODATA, $8 DATA ·libc_kevent_trampoline_addr(SB)/8, $libc_kevent_trampoline<>(SB) TEXT libc_utimes_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_utimes(SB) - GLOBL ·libc_utimes_trampoline_addr(SB), RODATA, $8 DATA ·libc_utimes_trampoline_addr(SB)/8, $libc_utimes_trampoline<>(SB) TEXT libc_futimes_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_futimes(SB) - GLOBL ·libc_futimes_trampoline_addr(SB), RODATA, $8 DATA ·libc_futimes_trampoline_addr(SB)/8, $libc_futimes_trampoline<>(SB) TEXT libc_poll_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_poll(SB) - GLOBL ·libc_poll_trampoline_addr(SB), RODATA, $8 DATA ·libc_poll_trampoline_addr(SB)/8, $libc_poll_trampoline<>(SB) TEXT libc_madvise_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_madvise(SB) - GLOBL ·libc_madvise_trampoline_addr(SB), RODATA, $8 DATA ·libc_madvise_trampoline_addr(SB)/8, $libc_madvise_trampoline<>(SB) TEXT libc_mlock_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_mlock(SB) - GLOBL ·libc_mlock_trampoline_addr(SB), RODATA, $8 DATA ·libc_mlock_trampoline_addr(SB)/8, $libc_mlock_trampoline<>(SB) TEXT libc_mlockall_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_mlockall(SB) - GLOBL ·libc_mlockall_trampoline_addr(SB), RODATA, $8 DATA ·libc_mlockall_trampoline_addr(SB)/8, $libc_mlockall_trampoline<>(SB) TEXT libc_mprotect_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_mprotect(SB) - GLOBL ·libc_mprotect_trampoline_addr(SB), RODATA, $8 DATA ·libc_mprotect_trampoline_addr(SB)/8, $libc_mprotect_trampoline<>(SB) TEXT libc_msync_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_msync(SB) - GLOBL ·libc_msync_trampoline_addr(SB), RODATA, $8 DATA ·libc_msync_trampoline_addr(SB)/8, $libc_msync_trampoline<>(SB) TEXT libc_munlock_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_munlock(SB) - GLOBL ·libc_munlock_trampoline_addr(SB), RODATA, $8 DATA ·libc_munlock_trampoline_addr(SB)/8, $libc_munlock_trampoline<>(SB) TEXT libc_munlockall_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_munlockall(SB) - GLOBL ·libc_munlockall_trampoline_addr(SB), RODATA, $8 DATA ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB) TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_closedir(SB) - GLOBL ·libc_closedir_trampoline_addr(SB), RODATA, $8 DATA ·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB) TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_readdir_r(SB) - GLOBL ·libc_readdir_r_trampoline_addr(SB), RODATA, $8 DATA ·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB) TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_pipe(SB) - GLOBL ·libc_pipe_trampoline_addr(SB), RODATA, $8 DATA ·libc_pipe_trampoline_addr(SB)/8, $libc_pipe_trampoline<>(SB) TEXT libc_getxattr_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getxattr(SB) - GLOBL ·libc_getxattr_trampoline_addr(SB), RODATA, $8 DATA ·libc_getxattr_trampoline_addr(SB)/8, $libc_getxattr_trampoline<>(SB) TEXT libc_fgetxattr_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fgetxattr(SB) - GLOBL ·libc_fgetxattr_trampoline_addr(SB), RODATA, $8 DATA ·libc_fgetxattr_trampoline_addr(SB)/8, $libc_fgetxattr_trampoline<>(SB) TEXT libc_setxattr_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setxattr(SB) - GLOBL ·libc_setxattr_trampoline_addr(SB), RODATA, $8 DATA ·libc_setxattr_trampoline_addr(SB)/8, $libc_setxattr_trampoline<>(SB) TEXT libc_fsetxattr_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fsetxattr(SB) - GLOBL ·libc_fsetxattr_trampoline_addr(SB), RODATA, $8 DATA ·libc_fsetxattr_trampoline_addr(SB)/8, $libc_fsetxattr_trampoline<>(SB) TEXT libc_removexattr_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_removexattr(SB) - GLOBL ·libc_removexattr_trampoline_addr(SB), RODATA, $8 DATA ·libc_removexattr_trampoline_addr(SB)/8, $libc_removexattr_trampoline<>(SB) TEXT libc_fremovexattr_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fremovexattr(SB) - GLOBL ·libc_fremovexattr_trampoline_addr(SB), RODATA, $8 DATA ·libc_fremovexattr_trampoline_addr(SB)/8, $libc_fremovexattr_trampoline<>(SB) TEXT libc_listxattr_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_listxattr(SB) - GLOBL ·libc_listxattr_trampoline_addr(SB), RODATA, $8 DATA ·libc_listxattr_trampoline_addr(SB)/8, $libc_listxattr_trampoline<>(SB) TEXT libc_flistxattr_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_flistxattr(SB) - GLOBL ·libc_flistxattr_trampoline_addr(SB), RODATA, $8 DATA ·libc_flistxattr_trampoline_addr(SB)/8, $libc_flistxattr_trampoline<>(SB) TEXT libc_utimensat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_utimensat(SB) - GLOBL ·libc_utimensat_trampoline_addr(SB), RODATA, $8 DATA ·libc_utimensat_trampoline_addr(SB)/8, $libc_utimensat_trampoline<>(SB) TEXT libc_fcntl_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fcntl(SB) - GLOBL ·libc_fcntl_trampoline_addr(SB), RODATA, $8 DATA ·libc_fcntl_trampoline_addr(SB)/8, $libc_fcntl_trampoline<>(SB) TEXT libc_kill_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_kill(SB) - GLOBL ·libc_kill_trampoline_addr(SB), RODATA, $8 DATA ·libc_kill_trampoline_addr(SB)/8, $libc_kill_trampoline<>(SB) TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_ioctl(SB) - GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $8 DATA ·libc_ioctl_trampoline_addr(SB)/8, $libc_ioctl_trampoline<>(SB) TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_sysctl(SB) - GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) TEXT libc_sendfile_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_sendfile(SB) - GLOBL ·libc_sendfile_trampoline_addr(SB), RODATA, $8 DATA ·libc_sendfile_trampoline_addr(SB)/8, $libc_sendfile_trampoline<>(SB) TEXT libc_shmat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_shmat(SB) - GLOBL ·libc_shmat_trampoline_addr(SB), RODATA, $8 DATA ·libc_shmat_trampoline_addr(SB)/8, $libc_shmat_trampoline<>(SB) TEXT libc_shmctl_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_shmctl(SB) - GLOBL ·libc_shmctl_trampoline_addr(SB), RODATA, $8 DATA ·libc_shmctl_trampoline_addr(SB)/8, $libc_shmctl_trampoline<>(SB) TEXT libc_shmdt_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_shmdt(SB) - GLOBL ·libc_shmdt_trampoline_addr(SB), RODATA, $8 DATA ·libc_shmdt_trampoline_addr(SB)/8, $libc_shmdt_trampoline<>(SB) TEXT libc_shmget_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_shmget(SB) - GLOBL ·libc_shmget_trampoline_addr(SB), RODATA, $8 DATA ·libc_shmget_trampoline_addr(SB)/8, $libc_shmget_trampoline<>(SB) TEXT libc_access_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_access(SB) - GLOBL ·libc_access_trampoline_addr(SB), RODATA, $8 DATA ·libc_access_trampoline_addr(SB)/8, $libc_access_trampoline<>(SB) TEXT libc_adjtime_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_adjtime(SB) - GLOBL ·libc_adjtime_trampoline_addr(SB), RODATA, $8 DATA ·libc_adjtime_trampoline_addr(SB)/8, $libc_adjtime_trampoline<>(SB) TEXT libc_chdir_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_chdir(SB) - GLOBL ·libc_chdir_trampoline_addr(SB), RODATA, $8 DATA ·libc_chdir_trampoline_addr(SB)/8, $libc_chdir_trampoline<>(SB) TEXT libc_chflags_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_chflags(SB) - GLOBL ·libc_chflags_trampoline_addr(SB), RODATA, $8 DATA ·libc_chflags_trampoline_addr(SB)/8, $libc_chflags_trampoline<>(SB) TEXT libc_chmod_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_chmod(SB) - GLOBL ·libc_chmod_trampoline_addr(SB), RODATA, $8 DATA ·libc_chmod_trampoline_addr(SB)/8, $libc_chmod_trampoline<>(SB) TEXT libc_chown_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_chown(SB) - GLOBL ·libc_chown_trampoline_addr(SB), RODATA, $8 DATA ·libc_chown_trampoline_addr(SB)/8, $libc_chown_trampoline<>(SB) TEXT libc_chroot_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_chroot(SB) - GLOBL ·libc_chroot_trampoline_addr(SB), RODATA, $8 DATA ·libc_chroot_trampoline_addr(SB)/8, $libc_chroot_trampoline<>(SB) TEXT libc_clock_gettime_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_clock_gettime(SB) - GLOBL ·libc_clock_gettime_trampoline_addr(SB), RODATA, $8 DATA ·libc_clock_gettime_trampoline_addr(SB)/8, $libc_clock_gettime_trampoline<>(SB) TEXT libc_close_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_close(SB) - GLOBL ·libc_close_trampoline_addr(SB), RODATA, $8 DATA ·libc_close_trampoline_addr(SB)/8, $libc_close_trampoline<>(SB) TEXT libc_clonefile_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_clonefile(SB) - GLOBL ·libc_clonefile_trampoline_addr(SB), RODATA, $8 DATA ·libc_clonefile_trampoline_addr(SB)/8, $libc_clonefile_trampoline<>(SB) TEXT libc_clonefileat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_clonefileat(SB) - GLOBL ·libc_clonefileat_trampoline_addr(SB), RODATA, $8 DATA ·libc_clonefileat_trampoline_addr(SB)/8, $libc_clonefileat_trampoline<>(SB) TEXT libc_dup_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_dup(SB) - GLOBL ·libc_dup_trampoline_addr(SB), RODATA, $8 DATA ·libc_dup_trampoline_addr(SB)/8, $libc_dup_trampoline<>(SB) TEXT libc_dup2_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_dup2(SB) - GLOBL ·libc_dup2_trampoline_addr(SB), RODATA, $8 DATA ·libc_dup2_trampoline_addr(SB)/8, $libc_dup2_trampoline<>(SB) TEXT libc_exchangedata_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_exchangedata(SB) - GLOBL ·libc_exchangedata_trampoline_addr(SB), RODATA, $8 DATA ·libc_exchangedata_trampoline_addr(SB)/8, $libc_exchangedata_trampoline<>(SB) TEXT libc_exit_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_exit(SB) - GLOBL ·libc_exit_trampoline_addr(SB), RODATA, $8 DATA ·libc_exit_trampoline_addr(SB)/8, $libc_exit_trampoline<>(SB) TEXT libc_faccessat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_faccessat(SB) - GLOBL ·libc_faccessat_trampoline_addr(SB), RODATA, $8 DATA ·libc_faccessat_trampoline_addr(SB)/8, $libc_faccessat_trampoline<>(SB) TEXT libc_fchdir_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fchdir(SB) - GLOBL ·libc_fchdir_trampoline_addr(SB), RODATA, $8 DATA ·libc_fchdir_trampoline_addr(SB)/8, $libc_fchdir_trampoline<>(SB) TEXT libc_fchflags_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fchflags(SB) - GLOBL ·libc_fchflags_trampoline_addr(SB), RODATA, $8 DATA ·libc_fchflags_trampoline_addr(SB)/8, $libc_fchflags_trampoline<>(SB) TEXT libc_fchmod_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fchmod(SB) - GLOBL ·libc_fchmod_trampoline_addr(SB), RODATA, $8 DATA ·libc_fchmod_trampoline_addr(SB)/8, $libc_fchmod_trampoline<>(SB) TEXT libc_fchmodat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fchmodat(SB) - GLOBL ·libc_fchmodat_trampoline_addr(SB), RODATA, $8 DATA ·libc_fchmodat_trampoline_addr(SB)/8, $libc_fchmodat_trampoline<>(SB) TEXT libc_fchown_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fchown(SB) - GLOBL ·libc_fchown_trampoline_addr(SB), RODATA, $8 DATA ·libc_fchown_trampoline_addr(SB)/8, $libc_fchown_trampoline<>(SB) TEXT libc_fchownat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fchownat(SB) - GLOBL ·libc_fchownat_trampoline_addr(SB), RODATA, $8 DATA ·libc_fchownat_trampoline_addr(SB)/8, $libc_fchownat_trampoline<>(SB) TEXT libc_fclonefileat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fclonefileat(SB) - GLOBL ·libc_fclonefileat_trampoline_addr(SB), RODATA, $8 DATA ·libc_fclonefileat_trampoline_addr(SB)/8, $libc_fclonefileat_trampoline<>(SB) TEXT libc_flock_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_flock(SB) - GLOBL ·libc_flock_trampoline_addr(SB), RODATA, $8 DATA ·libc_flock_trampoline_addr(SB)/8, $libc_flock_trampoline<>(SB) TEXT libc_fpathconf_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fpathconf(SB) - GLOBL ·libc_fpathconf_trampoline_addr(SB), RODATA, $8 DATA ·libc_fpathconf_trampoline_addr(SB)/8, $libc_fpathconf_trampoline<>(SB) TEXT libc_fsync_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fsync(SB) - GLOBL ·libc_fsync_trampoline_addr(SB), RODATA, $8 DATA ·libc_fsync_trampoline_addr(SB)/8, $libc_fsync_trampoline<>(SB) TEXT libc_ftruncate_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_ftruncate(SB) - GLOBL ·libc_ftruncate_trampoline_addr(SB), RODATA, $8 DATA ·libc_ftruncate_trampoline_addr(SB)/8, $libc_ftruncate_trampoline<>(SB) TEXT libc_getcwd_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getcwd(SB) - GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $8 DATA ·libc_getcwd_trampoline_addr(SB)/8, $libc_getcwd_trampoline<>(SB) TEXT libc_getdtablesize_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getdtablesize(SB) - GLOBL ·libc_getdtablesize_trampoline_addr(SB), RODATA, $8 DATA ·libc_getdtablesize_trampoline_addr(SB)/8, $libc_getdtablesize_trampoline<>(SB) TEXT libc_getegid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getegid(SB) - GLOBL ·libc_getegid_trampoline_addr(SB), RODATA, $8 DATA ·libc_getegid_trampoline_addr(SB)/8, $libc_getegid_trampoline<>(SB) TEXT libc_geteuid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_geteuid(SB) - GLOBL ·libc_geteuid_trampoline_addr(SB), RODATA, $8 DATA ·libc_geteuid_trampoline_addr(SB)/8, $libc_geteuid_trampoline<>(SB) TEXT libc_getgid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getgid(SB) - GLOBL ·libc_getgid_trampoline_addr(SB), RODATA, $8 DATA ·libc_getgid_trampoline_addr(SB)/8, $libc_getgid_trampoline<>(SB) TEXT libc_getpgid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getpgid(SB) - GLOBL ·libc_getpgid_trampoline_addr(SB), RODATA, $8 DATA ·libc_getpgid_trampoline_addr(SB)/8, $libc_getpgid_trampoline<>(SB) TEXT libc_getpgrp_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getpgrp(SB) - GLOBL ·libc_getpgrp_trampoline_addr(SB), RODATA, $8 DATA ·libc_getpgrp_trampoline_addr(SB)/8, $libc_getpgrp_trampoline<>(SB) TEXT libc_getpid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getpid(SB) - GLOBL ·libc_getpid_trampoline_addr(SB), RODATA, $8 DATA ·libc_getpid_trampoline_addr(SB)/8, $libc_getpid_trampoline<>(SB) TEXT libc_getppid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getppid(SB) - GLOBL ·libc_getppid_trampoline_addr(SB), RODATA, $8 DATA ·libc_getppid_trampoline_addr(SB)/8, $libc_getppid_trampoline<>(SB) TEXT libc_getpriority_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getpriority(SB) - GLOBL ·libc_getpriority_trampoline_addr(SB), RODATA, $8 DATA ·libc_getpriority_trampoline_addr(SB)/8, $libc_getpriority_trampoline<>(SB) TEXT libc_getrlimit_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getrlimit(SB) - GLOBL ·libc_getrlimit_trampoline_addr(SB), RODATA, $8 DATA ·libc_getrlimit_trampoline_addr(SB)/8, $libc_getrlimit_trampoline<>(SB) TEXT libc_getrusage_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getrusage(SB) - GLOBL ·libc_getrusage_trampoline_addr(SB), RODATA, $8 DATA ·libc_getrusage_trampoline_addr(SB)/8, $libc_getrusage_trampoline<>(SB) TEXT libc_getsid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getsid(SB) - GLOBL ·libc_getsid_trampoline_addr(SB), RODATA, $8 DATA ·libc_getsid_trampoline_addr(SB)/8, $libc_getsid_trampoline<>(SB) TEXT libc_gettimeofday_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_gettimeofday(SB) - GLOBL ·libc_gettimeofday_trampoline_addr(SB), RODATA, $8 DATA ·libc_gettimeofday_trampoline_addr(SB)/8, $libc_gettimeofday_trampoline<>(SB) TEXT libc_getuid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getuid(SB) - GLOBL ·libc_getuid_trampoline_addr(SB), RODATA, $8 DATA ·libc_getuid_trampoline_addr(SB)/8, $libc_getuid_trampoline<>(SB) TEXT libc_issetugid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_issetugid(SB) - GLOBL ·libc_issetugid_trampoline_addr(SB), RODATA, $8 DATA ·libc_issetugid_trampoline_addr(SB)/8, $libc_issetugid_trampoline<>(SB) TEXT libc_kqueue_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_kqueue(SB) - GLOBL ·libc_kqueue_trampoline_addr(SB), RODATA, $8 DATA ·libc_kqueue_trampoline_addr(SB)/8, $libc_kqueue_trampoline<>(SB) TEXT libc_lchown_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_lchown(SB) - GLOBL ·libc_lchown_trampoline_addr(SB), RODATA, $8 DATA ·libc_lchown_trampoline_addr(SB)/8, $libc_lchown_trampoline<>(SB) TEXT libc_link_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_link(SB) - GLOBL ·libc_link_trampoline_addr(SB), RODATA, $8 DATA ·libc_link_trampoline_addr(SB)/8, $libc_link_trampoline<>(SB) TEXT libc_linkat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_linkat(SB) - GLOBL ·libc_linkat_trampoline_addr(SB), RODATA, $8 DATA ·libc_linkat_trampoline_addr(SB)/8, $libc_linkat_trampoline<>(SB) TEXT libc_listen_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_listen(SB) - GLOBL ·libc_listen_trampoline_addr(SB), RODATA, $8 DATA ·libc_listen_trampoline_addr(SB)/8, $libc_listen_trampoline<>(SB) TEXT libc_mkdir_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_mkdir(SB) - GLOBL ·libc_mkdir_trampoline_addr(SB), RODATA, $8 DATA ·libc_mkdir_trampoline_addr(SB)/8, $libc_mkdir_trampoline<>(SB) TEXT libc_mkdirat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_mkdirat(SB) - GLOBL ·libc_mkdirat_trampoline_addr(SB), RODATA, $8 DATA ·libc_mkdirat_trampoline_addr(SB)/8, $libc_mkdirat_trampoline<>(SB) TEXT libc_mkfifo_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_mkfifo(SB) - GLOBL ·libc_mkfifo_trampoline_addr(SB), RODATA, $8 DATA ·libc_mkfifo_trampoline_addr(SB)/8, $libc_mkfifo_trampoline<>(SB) TEXT libc_mknod_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_mknod(SB) - GLOBL ·libc_mknod_trampoline_addr(SB), RODATA, $8 DATA ·libc_mknod_trampoline_addr(SB)/8, $libc_mknod_trampoline<>(SB) TEXT libc_mount_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_mount(SB) - GLOBL ·libc_mount_trampoline_addr(SB), RODATA, $8 DATA ·libc_mount_trampoline_addr(SB)/8, $libc_mount_trampoline<>(SB) TEXT libc_open_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_open(SB) - GLOBL ·libc_open_trampoline_addr(SB), RODATA, $8 DATA ·libc_open_trampoline_addr(SB)/8, $libc_open_trampoline<>(SB) TEXT libc_openat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_openat(SB) - GLOBL ·libc_openat_trampoline_addr(SB), RODATA, $8 DATA ·libc_openat_trampoline_addr(SB)/8, $libc_openat_trampoline<>(SB) TEXT libc_pathconf_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_pathconf(SB) - GLOBL ·libc_pathconf_trampoline_addr(SB), RODATA, $8 DATA ·libc_pathconf_trampoline_addr(SB)/8, $libc_pathconf_trampoline<>(SB) TEXT libc_pread_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_pread(SB) - GLOBL ·libc_pread_trampoline_addr(SB), RODATA, $8 DATA ·libc_pread_trampoline_addr(SB)/8, $libc_pread_trampoline<>(SB) TEXT libc_pwrite_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_pwrite(SB) - GLOBL ·libc_pwrite_trampoline_addr(SB), RODATA, $8 DATA ·libc_pwrite_trampoline_addr(SB)/8, $libc_pwrite_trampoline<>(SB) TEXT libc_read_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_read(SB) - GLOBL ·libc_read_trampoline_addr(SB), RODATA, $8 DATA ·libc_read_trampoline_addr(SB)/8, $libc_read_trampoline<>(SB) TEXT libc_readlink_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_readlink(SB) - GLOBL ·libc_readlink_trampoline_addr(SB), RODATA, $8 DATA ·libc_readlink_trampoline_addr(SB)/8, $libc_readlink_trampoline<>(SB) TEXT libc_readlinkat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_readlinkat(SB) - GLOBL ·libc_readlinkat_trampoline_addr(SB), RODATA, $8 DATA ·libc_readlinkat_trampoline_addr(SB)/8, $libc_readlinkat_trampoline<>(SB) TEXT libc_rename_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_rename(SB) - GLOBL ·libc_rename_trampoline_addr(SB), RODATA, $8 DATA ·libc_rename_trampoline_addr(SB)/8, $libc_rename_trampoline<>(SB) TEXT libc_renameat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_renameat(SB) - GLOBL ·libc_renameat_trampoline_addr(SB), RODATA, $8 DATA ·libc_renameat_trampoline_addr(SB)/8, $libc_renameat_trampoline<>(SB) TEXT libc_revoke_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_revoke(SB) - GLOBL ·libc_revoke_trampoline_addr(SB), RODATA, $8 DATA ·libc_revoke_trampoline_addr(SB)/8, $libc_revoke_trampoline<>(SB) TEXT libc_rmdir_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_rmdir(SB) - GLOBL ·libc_rmdir_trampoline_addr(SB), RODATA, $8 DATA ·libc_rmdir_trampoline_addr(SB)/8, $libc_rmdir_trampoline<>(SB) TEXT libc_lseek_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_lseek(SB) - GLOBL ·libc_lseek_trampoline_addr(SB), RODATA, $8 DATA ·libc_lseek_trampoline_addr(SB)/8, $libc_lseek_trampoline<>(SB) TEXT libc_select_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_select(SB) - GLOBL ·libc_select_trampoline_addr(SB), RODATA, $8 DATA ·libc_select_trampoline_addr(SB)/8, $libc_select_trampoline<>(SB) @@ -712,192 +595,160 @@ DATA ·libc_setattrlist_trampoline_addr(SB)/8, $libc_setattrlist_trampoline<>(SB TEXT libc_setegid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setegid(SB) - GLOBL ·libc_setegid_trampoline_addr(SB), RODATA, $8 DATA ·libc_setegid_trampoline_addr(SB)/8, $libc_setegid_trampoline<>(SB) TEXT libc_seteuid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_seteuid(SB) - GLOBL ·libc_seteuid_trampoline_addr(SB), RODATA, $8 DATA ·libc_seteuid_trampoline_addr(SB)/8, $libc_seteuid_trampoline<>(SB) TEXT libc_setgid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setgid(SB) - GLOBL ·libc_setgid_trampoline_addr(SB), RODATA, $8 DATA ·libc_setgid_trampoline_addr(SB)/8, $libc_setgid_trampoline<>(SB) TEXT libc_setlogin_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setlogin(SB) - GLOBL ·libc_setlogin_trampoline_addr(SB), RODATA, $8 DATA ·libc_setlogin_trampoline_addr(SB)/8, $libc_setlogin_trampoline<>(SB) TEXT libc_setpgid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setpgid(SB) - GLOBL ·libc_setpgid_trampoline_addr(SB), RODATA, $8 DATA ·libc_setpgid_trampoline_addr(SB)/8, $libc_setpgid_trampoline<>(SB) TEXT libc_setpriority_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setpriority(SB) - GLOBL ·libc_setpriority_trampoline_addr(SB), RODATA, $8 DATA ·libc_setpriority_trampoline_addr(SB)/8, $libc_setpriority_trampoline<>(SB) TEXT libc_setprivexec_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setprivexec(SB) - GLOBL ·libc_setprivexec_trampoline_addr(SB), RODATA, $8 DATA ·libc_setprivexec_trampoline_addr(SB)/8, $libc_setprivexec_trampoline<>(SB) TEXT libc_setregid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setregid(SB) - GLOBL ·libc_setregid_trampoline_addr(SB), RODATA, $8 DATA ·libc_setregid_trampoline_addr(SB)/8, $libc_setregid_trampoline<>(SB) TEXT libc_setreuid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setreuid(SB) - GLOBL ·libc_setreuid_trampoline_addr(SB), RODATA, $8 DATA ·libc_setreuid_trampoline_addr(SB)/8, $libc_setreuid_trampoline<>(SB) TEXT libc_setsid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setsid(SB) - GLOBL ·libc_setsid_trampoline_addr(SB), RODATA, $8 DATA ·libc_setsid_trampoline_addr(SB)/8, $libc_setsid_trampoline<>(SB) TEXT libc_settimeofday_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_settimeofday(SB) - GLOBL ·libc_settimeofday_trampoline_addr(SB), RODATA, $8 DATA ·libc_settimeofday_trampoline_addr(SB)/8, $libc_settimeofday_trampoline<>(SB) TEXT libc_setuid_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_setuid(SB) - GLOBL ·libc_setuid_trampoline_addr(SB), RODATA, $8 DATA ·libc_setuid_trampoline_addr(SB)/8, $libc_setuid_trampoline<>(SB) TEXT libc_symlink_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_symlink(SB) - GLOBL ·libc_symlink_trampoline_addr(SB), RODATA, $8 DATA ·libc_symlink_trampoline_addr(SB)/8, $libc_symlink_trampoline<>(SB) TEXT libc_symlinkat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_symlinkat(SB) - GLOBL ·libc_symlinkat_trampoline_addr(SB), RODATA, $8 DATA ·libc_symlinkat_trampoline_addr(SB)/8, $libc_symlinkat_trampoline<>(SB) TEXT libc_sync_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_sync(SB) - GLOBL ·libc_sync_trampoline_addr(SB), RODATA, $8 DATA ·libc_sync_trampoline_addr(SB)/8, $libc_sync_trampoline<>(SB) TEXT libc_truncate_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_truncate(SB) - GLOBL ·libc_truncate_trampoline_addr(SB), RODATA, $8 DATA ·libc_truncate_trampoline_addr(SB)/8, $libc_truncate_trampoline<>(SB) TEXT libc_umask_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_umask(SB) - GLOBL ·libc_umask_trampoline_addr(SB), RODATA, $8 DATA ·libc_umask_trampoline_addr(SB)/8, $libc_umask_trampoline<>(SB) TEXT libc_undelete_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_undelete(SB) - GLOBL ·libc_undelete_trampoline_addr(SB), RODATA, $8 DATA ·libc_undelete_trampoline_addr(SB)/8, $libc_undelete_trampoline<>(SB) TEXT libc_unlink_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_unlink(SB) - GLOBL ·libc_unlink_trampoline_addr(SB), RODATA, $8 DATA ·libc_unlink_trampoline_addr(SB)/8, $libc_unlink_trampoline<>(SB) TEXT libc_unlinkat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_unlinkat(SB) - GLOBL ·libc_unlinkat_trampoline_addr(SB), RODATA, $8 DATA ·libc_unlinkat_trampoline_addr(SB)/8, $libc_unlinkat_trampoline<>(SB) TEXT libc_unmount_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_unmount(SB) - GLOBL ·libc_unmount_trampoline_addr(SB), RODATA, $8 DATA ·libc_unmount_trampoline_addr(SB)/8, $libc_unmount_trampoline<>(SB) TEXT libc_write_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_write(SB) - GLOBL ·libc_write_trampoline_addr(SB), RODATA, $8 DATA ·libc_write_trampoline_addr(SB)/8, $libc_write_trampoline<>(SB) TEXT libc_mmap_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_mmap(SB) - GLOBL ·libc_mmap_trampoline_addr(SB), RODATA, $8 DATA ·libc_mmap_trampoline_addr(SB)/8, $libc_mmap_trampoline<>(SB) TEXT libc_munmap_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_munmap(SB) - GLOBL ·libc_munmap_trampoline_addr(SB), RODATA, $8 DATA ·libc_munmap_trampoline_addr(SB)/8, $libc_munmap_trampoline<>(SB) TEXT libc_fstat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fstat(SB) - GLOBL ·libc_fstat_trampoline_addr(SB), RODATA, $8 DATA ·libc_fstat_trampoline_addr(SB)/8, $libc_fstat_trampoline<>(SB) TEXT libc_fstatat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fstatat(SB) - GLOBL ·libc_fstatat_trampoline_addr(SB), RODATA, $8 DATA ·libc_fstatat_trampoline_addr(SB)/8, $libc_fstatat_trampoline<>(SB) TEXT libc_fstatfs_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_fstatfs(SB) - GLOBL ·libc_fstatfs_trampoline_addr(SB), RODATA, $8 DATA ·libc_fstatfs_trampoline_addr(SB)/8, $libc_fstatfs_trampoline<>(SB) TEXT libc_getfsstat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_getfsstat(SB) - GLOBL ·libc_getfsstat_trampoline_addr(SB), RODATA, $8 DATA ·libc_getfsstat_trampoline_addr(SB)/8, $libc_getfsstat_trampoline<>(SB) TEXT libc_lstat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_lstat(SB) - GLOBL ·libc_lstat_trampoline_addr(SB), RODATA, $8 DATA ·libc_lstat_trampoline_addr(SB)/8, $libc_lstat_trampoline<>(SB) TEXT libc_ptrace_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_ptrace(SB) - GLOBL ·libc_ptrace_trampoline_addr(SB), RODATA, $8 DATA ·libc_ptrace_trampoline_addr(SB)/8, $libc_ptrace_trampoline<>(SB) TEXT libc_stat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_stat(SB) - GLOBL ·libc_stat_trampoline_addr(SB), RODATA, $8 DATA ·libc_stat_trampoline_addr(SB)/8, $libc_stat_trampoline<>(SB) TEXT libc_statfs_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_statfs(SB) - GLOBL ·libc_statfs_trampoline_addr(SB), RODATA, $8 DATA ·libc_statfs_trampoline_addr(SB)/8, $libc_statfs_trampoline<>(SB) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go index 0eabac7ad..0c67df64a 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go @@ -1642,28 +1642,6 @@ func munmap(addr uintptr, length uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) { r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) nfd = int(r0) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go index ee313eb00..e6e05d145 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go @@ -1862,28 +1862,6 @@ func munmap(addr uintptr, length uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) { r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) nfd = int(r0) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go index 4c986e448..7508accac 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go @@ -1862,28 +1862,6 @@ func munmap(addr uintptr, length uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) { r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) nfd = int(r0) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go index 555216944..7b56aead4 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go @@ -1862,28 +1862,6 @@ func munmap(addr uintptr, length uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) { r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) nfd = int(r0) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go index 67a226fbf..cc623dcaa 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go @@ -1862,28 +1862,6 @@ func munmap(addr uintptr, length uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) { r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) nfd = int(r0) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go index f0b9ddaaa..581849197 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go @@ -1862,28 +1862,6 @@ func munmap(addr uintptr, length uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) { r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) nfd = int(r0) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go index b57c7050d..6be25cd19 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go @@ -40,7 +40,7 @@ func readv(fd int, iovs []Iovec) (n int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procreadv)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -55,7 +55,7 @@ func preadv(fd int, iovs []Iovec, off int64) (n int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpreadv)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -70,7 +70,7 @@ func writev(fd int, iovs []Iovec) (n int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwritev)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -85,7 +85,7 @@ func pwritev(fd int, iovs []Iovec, off int64) (n int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpwritev)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -96,7 +96,7 @@ func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procaccept4)), 4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) fd = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux.go b/vendor/golang.org/x/sys/unix/zsyscall_linux.go index 14ab34a56..1ff3aec74 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux.go @@ -1734,28 +1734,6 @@ func exitThread(code int) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func readv(fd int, iovs []Iovec) (n int, err error) { var _p0 unsafe.Pointer if len(iovs) > 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go index 35f499b32..2df3c5bac 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go @@ -1824,28 +1824,6 @@ func munmap(addr uintptr, length uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go index 3cda65b0d..a60556bab 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go @@ -1824,28 +1824,6 @@ func munmap(addr uintptr, length uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go index 1e1fea902..9f788917a 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go @@ -1824,28 +1824,6 @@ func munmap(addr uintptr, length uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go index 3b77da110..82a4cb2dc 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go @@ -1824,28 +1824,6 @@ func munmap(addr uintptr, length uintptr) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go index 9ab9abf72..66b3b6456 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go @@ -549,6 +549,12 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { return } +var libc_ioctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ioctl ioctl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) if e1 != 0 { @@ -557,10 +563,6 @@ func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { return } -var libc_ioctl_trampoline_addr uintptr - -//go:cgo_import_dynamic libc_ioctl ioctl "libc.so" - // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { @@ -2211,28 +2213,6 @@ var libc_munmap_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go index 915761eab..c5c4cc112 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go @@ -2213,28 +2213,6 @@ var libc_munmap_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go index 8e87fdf15..93bfbb328 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go @@ -549,6 +549,12 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { return } +var libc_ioctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ioctl ioctl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) if e1 != 0 { @@ -557,10 +563,6 @@ func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { return } -var libc_ioctl_trampoline_addr uintptr - -//go:cgo_import_dynamic libc_ioctl ioctl "libc.so" - // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { @@ -2211,28 +2213,6 @@ var libc_munmap_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go index 12a7a2160..a107b8fda 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go @@ -549,6 +549,12 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { return } +var libc_ioctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ioctl ioctl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) if e1 != 0 { @@ -557,10 +563,6 @@ func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { return } -var libc_ioctl_trampoline_addr uintptr - -//go:cgo_import_dynamic libc_ioctl ioctl "libc.so" - // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { @@ -2211,28 +2213,6 @@ var libc_munmap_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go index b19e8aa03..c427de509 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go @@ -549,6 +549,12 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { return } +var libc_ioctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ioctl ioctl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) if e1 != 0 { @@ -557,10 +563,6 @@ func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { return } -var libc_ioctl_trampoline_addr uintptr - -//go:cgo_import_dynamic libc_ioctl ioctl "libc.so" - // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { @@ -2211,28 +2213,6 @@ var libc_munmap_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go index fb99594c9..60c1a99ae 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go @@ -549,6 +549,12 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { return } +var libc_ioctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ioctl ioctl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) if e1 != 0 { @@ -557,10 +563,6 @@ func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { return } -var libc_ioctl_trampoline_addr uintptr - -//go:cgo_import_dynamic libc_ioctl ioctl "libc.so" - // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { @@ -2211,28 +2213,6 @@ var libc_munmap_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go index 32cbbbc52..52eba360f 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go @@ -549,6 +549,12 @@ func ioctl(fd int, req uint, arg uintptr) (err error) { return } +var libc_ioctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ioctl ioctl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) if e1 != 0 { @@ -557,10 +563,6 @@ func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { return } -var libc_ioctl_trampoline_addr uintptr - -//go:cgo_import_dynamic libc_ioctl ioctl "libc.so" - // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { @@ -2211,28 +2213,6 @@ var libc_munmap_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go index 609d1c598..b40189464 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go @@ -436,7 +436,7 @@ func pipe(p *[2]_C_int) (n int, err error) { r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procpipe)), 1, uintptr(unsafe.Pointer(p)), 0, 0, 0, 0, 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -446,7 +446,7 @@ func pipe(p *[2]_C_int) (n int, err error) { func pipe2(p *[2]_C_int, flags int) (err error) { _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procpipe2)), 2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -456,7 +456,7 @@ func pipe2(p *[2]_C_int, flags int) (err error) { func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetsockname)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -471,7 +471,7 @@ func Getcwd(buf []byte) (n int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetcwd)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), 0, 0, 0, 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -482,7 +482,7 @@ func getgroups(ngid int, gid *_Gid_t) (n int, err error) { r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procgetgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -492,7 +492,7 @@ func getgroups(ngid int, gid *_Gid_t) (n int, err error) { func setgroups(ngid int, gid *_Gid_t) (err error) { _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procsetgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -503,7 +503,7 @@ func wait4(pid int32, statusp *_C_int, options int, rusage *Rusage) (wpid int32, r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwait4)), 4, uintptr(pid), uintptr(unsafe.Pointer(statusp)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) wpid = int32(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -518,7 +518,7 @@ func gethostname(buf []byte) (n int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgethostname)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), 0, 0, 0, 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -533,7 +533,7 @@ func utimes(path string, times *[2]Timeval) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procutimes)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -548,7 +548,7 @@ func utimensat(fd int, path string, times *[2]Timespec, flag int) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procutimensat)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flag), 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -559,7 +559,7 @@ func fcntl(fd int, cmd int, arg int) (val int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(arg), 0, 0, 0) val = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -569,7 +569,7 @@ func fcntl(fd int, cmd int, arg int) (val int, err error) { func futimesat(fildes int, path *byte, times *[2]Timeval) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfutimesat)), 3, uintptr(fildes), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)), 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -580,7 +580,7 @@ func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procaccept)), 3, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0) fd = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -591,7 +591,7 @@ func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_recvmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -602,7 +602,7 @@ func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_sendmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -612,7 +612,7 @@ func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { func acct(path *byte) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procacct)), 1, uintptr(unsafe.Pointer(path)), 0, 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -647,7 +647,7 @@ func ioctlRet(fd int, req int, arg uintptr) (ret int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procioctl)), 3, uintptr(fd), uintptr(req), uintptr(arg), 0, 0, 0) ret = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -658,7 +658,7 @@ func ioctlPtrRet(fd int, req int, arg unsafe.Pointer) (ret int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procioctl)), 3, uintptr(fd), uintptr(req), uintptr(arg), 0, 0, 0) ret = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -669,7 +669,7 @@ func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpoll)), 3, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout), 0, 0, 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -684,7 +684,7 @@ func Access(path string, mode uint32) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procAccess)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -694,7 +694,7 @@ func Access(path string, mode uint32) (err error) { func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procAdjtime)), 2, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -709,7 +709,7 @@ func Chdir(path string) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -724,7 +724,7 @@ func Chmod(path string, mode uint32) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChmod)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -739,7 +739,7 @@ func Chown(path string, uid int, gid int) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -754,7 +754,7 @@ func Chroot(path string) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChroot)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -764,7 +764,7 @@ func Chroot(path string) (err error) { func ClockGettime(clockid int32, time *Timespec) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procClockGettime)), 2, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -774,7 +774,7 @@ func ClockGettime(clockid int32, time *Timespec) (err error) { func Close(fd int) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procClose)), 1, uintptr(fd), 0, 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -790,7 +790,7 @@ func Creat(path string, mode uint32) (fd int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procCreat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0) fd = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -801,7 +801,7 @@ func Dup(fd int) (nfd int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procDup)), 1, uintptr(fd), 0, 0, 0, 0, 0) nfd = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -811,7 +811,7 @@ func Dup(fd int) (nfd int, err error) { func Dup2(oldfd int, newfd int) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procDup2)), 2, uintptr(oldfd), uintptr(newfd), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -833,7 +833,7 @@ func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFaccessat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -843,7 +843,7 @@ func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { func Fchdir(fd int) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchdir)), 1, uintptr(fd), 0, 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -853,7 +853,7 @@ func Fchdir(fd int) (err error) { func Fchmod(fd int, mode uint32) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchmod)), 2, uintptr(fd), uintptr(mode), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -868,7 +868,7 @@ func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchmodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -878,7 +878,7 @@ func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { func Fchown(fd int, uid int, gid int) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchown)), 3, uintptr(fd), uintptr(uid), uintptr(gid), 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -893,7 +893,7 @@ func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchownat)), 5, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -903,7 +903,7 @@ func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { func Fdatasync(fd int) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFdatasync)), 1, uintptr(fd), 0, 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -913,7 +913,7 @@ func Fdatasync(fd int) (err error) { func Flock(fd int, how int) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFlock)), 2, uintptr(fd), uintptr(how), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -924,7 +924,7 @@ func Fpathconf(fd int, name int) (val int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFpathconf)), 2, uintptr(fd), uintptr(name), 0, 0, 0, 0) val = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -934,7 +934,7 @@ func Fpathconf(fd int, name int) (val int, err error) { func Fstat(fd int, stat *Stat_t) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstat)), 2, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -949,7 +949,7 @@ func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstatat)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -959,7 +959,7 @@ func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { func Fstatvfs(fd int, vfsstat *Statvfs_t) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstatvfs)), 2, uintptr(fd), uintptr(unsafe.Pointer(vfsstat)), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -974,7 +974,7 @@ func Getdents(fd int, buf []byte, basep *uintptr) (n int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetdents)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1001,7 +1001,7 @@ func Getpgid(pid int) (pgid int, err error) { r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpgid)), 1, uintptr(pid), 0, 0, 0, 0, 0) pgid = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1012,7 +1012,7 @@ func Getpgrp() (pgid int, err error) { r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpgrp)), 0, 0, 0, 0, 0, 0, 0) pgid = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1047,7 +1047,7 @@ func Getpriority(which int, who int) (n int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetpriority)), 2, uintptr(which), uintptr(who), 0, 0, 0, 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1057,7 +1057,7 @@ func Getpriority(which int, who int) (n int, err error) { func Getrlimit(which int, lim *Rlimit) (err error) { _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1067,7 +1067,7 @@ func Getrlimit(which int, lim *Rlimit) (err error) { func Getrusage(who int, rusage *Rusage) (err error) { _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetrusage)), 2, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1078,7 +1078,7 @@ func Getsid(pid int) (sid int, err error) { r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetsid)), 1, uintptr(pid), 0, 0, 0, 0, 0) sid = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1088,7 +1088,7 @@ func Getsid(pid int) (sid int, err error) { func Gettimeofday(tv *Timeval) (err error) { _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGettimeofday)), 1, uintptr(unsafe.Pointer(tv)), 0, 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1106,7 +1106,7 @@ func Getuid() (uid int) { func Kill(pid int, signum syscall.Signal) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procKill)), 2, uintptr(pid), uintptr(signum), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1121,7 +1121,7 @@ func Lchown(path string, uid int, gid int) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLchown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1141,7 +1141,7 @@ func Link(path string, link string) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1151,7 +1151,7 @@ func Link(path string, link string) (err error) { func Listen(s int, backlog int) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_llisten)), 2, uintptr(s), uintptr(backlog), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1166,7 +1166,7 @@ func Lstat(path string, stat *Stat_t) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLstat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1180,7 +1180,7 @@ func Madvise(b []byte, advice int) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMadvise)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(advice), 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1195,7 +1195,7 @@ func Mkdir(path string, mode uint32) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkdir)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1210,7 +1210,7 @@ func Mkdirat(dirfd int, path string, mode uint32) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkdirat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1225,7 +1225,7 @@ func Mkfifo(path string, mode uint32) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkfifo)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1240,7 +1240,7 @@ func Mkfifoat(dirfd int, path string, mode uint32) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkfifoat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1255,7 +1255,7 @@ func Mknod(path string, mode uint32, dev int) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMknod)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1270,7 +1270,7 @@ func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMknodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1284,7 +1284,7 @@ func Mlock(b []byte) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMlock)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1294,7 +1294,7 @@ func Mlock(b []byte) (err error) { func Mlockall(flags int) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMlockall)), 1, uintptr(flags), 0, 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1308,7 +1308,7 @@ func Mprotect(b []byte, prot int) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMprotect)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(prot), 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1322,7 +1322,7 @@ func Msync(b []byte, flags int) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMsync)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(flags), 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1336,7 +1336,7 @@ func Munlock(b []byte) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMunlock)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1346,7 +1346,7 @@ func Munlock(b []byte) (err error) { func Munlockall() (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMunlockall)), 0, 0, 0, 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1356,7 +1356,7 @@ func Munlockall() (err error) { func Nanosleep(time *Timespec, leftover *Timespec) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procNanosleep)), 2, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1372,7 +1372,7 @@ func Open(path string, mode int, perm uint32) (fd int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procOpen)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0, 0) fd = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1388,7 +1388,7 @@ func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procOpenat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) fd = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1404,7 +1404,7 @@ func Pathconf(path string, name int) (val int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPathconf)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0, 0, 0, 0) val = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1414,7 +1414,7 @@ func Pathconf(path string, name int) (val int, err error) { func Pause() (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPause)), 0, 0, 0, 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1429,7 +1429,7 @@ func pread(fd int, p []byte, offset int64) (n int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpread)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1444,7 +1444,7 @@ func pwrite(fd int, p []byte, offset int64) (n int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpwrite)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1459,7 +1459,7 @@ func read(fd int, p []byte) (n int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procread)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1479,7 +1479,7 @@ func Readlink(path string, buf []byte) (n int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procReadlink)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(len(buf)), 0, 0, 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1499,7 +1499,7 @@ func Rename(from string, to string) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRename)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1519,7 +1519,7 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRenameat)), 4, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1534,7 +1534,7 @@ func Rmdir(path string) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRmdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1545,7 +1545,7 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proclseek)), 3, uintptr(fd), uintptr(offset), uintptr(whence), 0, 0, 0) newoffset = int64(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1556,7 +1556,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSelect)), 5, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1566,7 +1566,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err func Setegid(egid int) (err error) { _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetegid)), 1, uintptr(egid), 0, 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1576,7 +1576,7 @@ func Setegid(egid int) (err error) { func Seteuid(euid int) (err error) { _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSeteuid)), 1, uintptr(euid), 0, 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1586,7 +1586,7 @@ func Seteuid(euid int) (err error) { func Setgid(gid int) (err error) { _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetgid)), 1, uintptr(gid), 0, 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1600,7 +1600,7 @@ func Sethostname(p []byte) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSethostname)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1610,7 +1610,7 @@ func Sethostname(p []byte) (err error) { func Setpgid(pid int, pgid int) (err error) { _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetpgid)), 2, uintptr(pid), uintptr(pgid), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1620,7 +1620,7 @@ func Setpgid(pid int, pgid int) (err error) { func Setpriority(which int, who int, prio int) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSetpriority)), 3, uintptr(which), uintptr(who), uintptr(prio), 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1630,7 +1630,7 @@ func Setpriority(which int, who int, prio int) (err error) { func Setregid(rgid int, egid int) (err error) { _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetregid)), 2, uintptr(rgid), uintptr(egid), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1640,7 +1640,7 @@ func Setregid(rgid int, egid int) (err error) { func Setreuid(ruid int, euid int) (err error) { _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetreuid)), 2, uintptr(ruid), uintptr(euid), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1651,7 +1651,7 @@ func Setsid() (pid int, err error) { r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetsid)), 0, 0, 0, 0, 0, 0, 0) pid = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1661,7 +1661,7 @@ func Setsid() (pid int, err error) { func Setuid(uid int) (err error) { _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetuid)), 1, uintptr(uid), 0, 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1671,7 +1671,7 @@ func Setuid(uid int) (err error) { func Shutdown(s int, how int) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procshutdown)), 2, uintptr(s), uintptr(how), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1686,7 +1686,7 @@ func Stat(path string, stat *Stat_t) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procStat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1701,7 +1701,7 @@ func Statvfs(path string, vfsstat *Statvfs_t) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procStatvfs)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(vfsstat)), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1721,7 +1721,7 @@ func Symlink(path string, link string) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSymlink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1731,7 +1731,7 @@ func Symlink(path string, link string) (err error) { func Sync() (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSync)), 0, 0, 0, 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1742,7 +1742,7 @@ func Sysconf(which int) (n int64, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSysconf)), 1, uintptr(which), 0, 0, 0, 0, 0) n = int64(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1753,7 +1753,7 @@ func Times(tms *Tms) (ticks uintptr, err error) { r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procTimes)), 1, uintptr(unsafe.Pointer(tms)), 0, 0, 0, 0, 0) ticks = uintptr(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1768,7 +1768,7 @@ func Truncate(path string, length int64) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procTruncate)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1778,7 +1778,7 @@ func Truncate(path string, length int64) (err error) { func Fsync(fd int) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFsync)), 1, uintptr(fd), 0, 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1788,7 +1788,7 @@ func Fsync(fd int) (err error) { func Ftruncate(fd int, length int64) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFtruncate)), 2, uintptr(fd), uintptr(length), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1806,7 +1806,7 @@ func Umask(mask int) (oldmask int) { func Uname(buf *Utsname) (err error) { _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procUname)), 1, uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1821,7 +1821,7 @@ func Unmount(target string, flags int) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procumount)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1836,7 +1836,7 @@ func Unlink(path string) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlink)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1851,7 +1851,7 @@ func Unlinkat(dirfd int, path string, flags int) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlinkat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1861,7 +1861,7 @@ func Unlinkat(dirfd int, path string, flags int) (err error) { func Ustat(dev int, ubuf *Ustat_t) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUstat)), 2, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1876,7 +1876,7 @@ func Utime(path string, buf *Utimbuf) (err error) { } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUtime)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1886,7 +1886,7 @@ func Utime(path string, buf *Utimbuf) (err error) { func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_bind)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1896,7 +1896,7 @@ func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_connect)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1907,7 +1907,7 @@ func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) ( r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmmap)), 6, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) ret = uintptr(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1917,7 +1917,7 @@ func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) ( func munmap(addr uintptr, length uintptr) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmunmap)), 2, uintptr(addr), uintptr(length), 0, 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1928,7 +1928,7 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsendfile)), 4, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) written = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1942,7 +1942,7 @@ func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) ( } _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_sendto)), 6, uintptr(s), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1953,7 +1953,7 @@ func socket(domain int, typ int, proto int) (fd int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_socket)), 3, uintptr(domain), uintptr(typ), uintptr(proto), 0, 0, 0) fd = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1963,7 +1963,7 @@ func socket(domain int, typ int, proto int) (fd int, err error) { func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&proc__xnet_socketpair)), 4, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1978,7 +1978,7 @@ func write(fd int, p []byte) (n int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwrite)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1988,7 +1988,7 @@ func write(fd int, p []byte) (n int, err error) { func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_getsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -1998,7 +1998,7 @@ func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procgetpeername)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -2008,7 +2008,7 @@ func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsetsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -2023,7 +2023,7 @@ func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Sockl r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procrecvfrom)), 6, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -2034,7 +2034,7 @@ func port_create() (n int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_create)), 0, 0, 0, 0, 0, 0, 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -2045,7 +2045,7 @@ func port_associate(port int, source int, object uintptr, events int, user *byte r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_associate)), 5, uintptr(port), uintptr(source), uintptr(object), uintptr(events), uintptr(unsafe.Pointer(user)), 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -2056,7 +2056,7 @@ func port_dissociate(port int, source int, object uintptr) (n int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_dissociate)), 3, uintptr(port), uintptr(source), uintptr(object), 0, 0, 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -2067,7 +2067,7 @@ func port_get(port int, pe *portEvent, timeout *Timespec) (n int, err error) { r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_get)), 3, uintptr(port), uintptr(unsafe.Pointer(pe)), uintptr(unsafe.Pointer(timeout)), 0, 0, 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -2078,7 +2078,7 @@ func port_getn(port int, pe *portEvent, max uint32, nget *uint32, timeout *Times r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_getn)), 5, uintptr(port), uintptr(unsafe.Pointer(pe)), uintptr(max), uintptr(unsafe.Pointer(nget)), uintptr(unsafe.Pointer(timeout)), 0) n = int(r0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -2088,7 +2088,7 @@ func port_getn(port int, pe *portEvent, max uint32, nget *uint32, timeout *Times func putmsg(fd int, clptr *strbuf, dataptr *strbuf, flags int) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procputmsg)), 4, uintptr(fd), uintptr(unsafe.Pointer(clptr)), uintptr(unsafe.Pointer(dataptr)), uintptr(flags), 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } @@ -2098,7 +2098,7 @@ func putmsg(fd int, clptr *strbuf, dataptr *strbuf, flags int) (err error) { func getmsg(fd int, clptr *strbuf, dataptr *strbuf, flags *int) (err error) { _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetmsg)), 4, uintptr(fd), uintptr(unsafe.Pointer(clptr)), uintptr(unsafe.Pointer(dataptr)), uintptr(unsafe.Pointer(flags)), 0, 0) if e1 != 0 { - err = e1 + err = errnoErr(e1) } return } diff --git a/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go b/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go index c31681743..1d8fe1d4b 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go @@ -40,17 +40,6 @@ func read(fd int, p []byte) (n int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := syscall_syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func write(fd int, p []byte) (n int, err error) { var _p0 unsafe.Pointer if len(p) > 0 { diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go index c9c4ad031..9862853d3 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go @@ -447,4 +447,5 @@ const ( SYS_PROCESS_MRELEASE = 448 SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 + SYS_CACHESTAT = 451 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go index 12ff3417c..8901f0f4e 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go @@ -369,4 +369,5 @@ const ( SYS_PROCESS_MRELEASE = 448 SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 + SYS_CACHESTAT = 451 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go index c3fb5e77a..6902c37ee 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go @@ -411,4 +411,5 @@ const ( SYS_PROCESS_MRELEASE = 448 SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 + SYS_CACHESTAT = 451 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go index 358c847a4..a6d3dff81 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go @@ -314,4 +314,5 @@ const ( SYS_PROCESS_MRELEASE = 448 SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 + SYS_CACHESTAT = 451 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go index 81c4849b1..b18f3f710 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go @@ -308,4 +308,5 @@ const ( SYS_PROCESS_MRELEASE = 448 SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 + SYS_CACHESTAT = 451 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go index 202a57e90..0302e5e3d 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go @@ -431,4 +431,5 @@ const ( SYS_PROCESS_MRELEASE = 4448 SYS_FUTEX_WAITV = 4449 SYS_SET_MEMPOLICY_HOME_NODE = 4450 + SYS_CACHESTAT = 4451 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go index 1fbceb52d..6693ba4a0 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go @@ -361,4 +361,5 @@ const ( SYS_PROCESS_MRELEASE = 5448 SYS_FUTEX_WAITV = 5449 SYS_SET_MEMPOLICY_HOME_NODE = 5450 + SYS_CACHESTAT = 5451 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go index b4ffb7a20..fd93f4987 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go @@ -361,4 +361,5 @@ const ( SYS_PROCESS_MRELEASE = 5448 SYS_FUTEX_WAITV = 5449 SYS_SET_MEMPOLICY_HOME_NODE = 5450 + SYS_CACHESTAT = 5451 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go index 867985f9b..760ddcadc 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go @@ -431,4 +431,5 @@ const ( SYS_PROCESS_MRELEASE = 4448 SYS_FUTEX_WAITV = 4449 SYS_SET_MEMPOLICY_HOME_NODE = 4450 + SYS_CACHESTAT = 4451 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go index a8cce69ed..cff2b2555 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go @@ -438,4 +438,5 @@ const ( SYS_PROCESS_MRELEASE = 448 SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 + SYS_CACHESTAT = 451 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go index d44c5b39d..a4b2405d0 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go @@ -410,4 +410,5 @@ const ( SYS_PROCESS_MRELEASE = 448 SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 + SYS_CACHESTAT = 451 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go index 4214dd9c0..aca54b4e3 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go @@ -410,4 +410,5 @@ const ( SYS_PROCESS_MRELEASE = 448 SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 + SYS_CACHESTAT = 451 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go index ef285c567..9d1738d64 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go @@ -315,4 +315,5 @@ const ( SYS_PROCESS_MRELEASE = 448 SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 + SYS_CACHESTAT = 451 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go index e6ed7d637..022878dc8 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go @@ -376,4 +376,5 @@ const ( SYS_PROCESS_MRELEASE = 448 SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 + SYS_CACHESTAT = 451 ) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go index 92f628ef4..4100a761c 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go @@ -389,4 +389,5 @@ const ( SYS_PROCESS_MRELEASE = 448 SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 + SYS_CACHESTAT = 451 ) diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux.go b/vendor/golang.org/x/sys/unix/ztypes_linux.go index 494493c78..18aa70b42 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux.go @@ -1977,7 +1977,7 @@ const ( NFT_MSG_GETFLOWTABLE = 0x17 NFT_MSG_DELFLOWTABLE = 0x18 NFT_MSG_GETRULE_RESET = 0x19 - NFT_MSG_MAX = 0x21 + NFT_MSG_MAX = 0x22 NFTA_LIST_UNSPEC = 0x0 NFTA_LIST_ELEM = 0x1 NFTA_HOOK_UNSPEC = 0x0 @@ -4499,7 +4499,7 @@ const ( NL80211_ATTR_MAC_HINT = 0xc8 NL80211_ATTR_MAC_MASK = 0xd7 NL80211_ATTR_MAX_AP_ASSOC_STA = 0xca - NL80211_ATTR_MAX = 0x145 + NL80211_ATTR_MAX = 0x146 NL80211_ATTR_MAX_CRIT_PROT_DURATION = 0xb4 NL80211_ATTR_MAX_CSA_COUNTERS = 0xce NL80211_ATTR_MAX_MATCH_SETS = 0x85 @@ -4869,7 +4869,7 @@ const ( NL80211_CMD_LEAVE_IBSS = 0x2c NL80211_CMD_LEAVE_MESH = 0x45 NL80211_CMD_LEAVE_OCB = 0x6d - NL80211_CMD_MAX = 0x99 + NL80211_CMD_MAX = 0x9a NL80211_CMD_MICHAEL_MIC_FAILURE = 0x29 NL80211_CMD_MODIFY_LINK_STA = 0x97 NL80211_CMD_NAN_MATCH = 0x78 @@ -5503,7 +5503,7 @@ const ( NL80211_RATE_INFO_HE_RU_ALLOC_52 = 0x1 NL80211_RATE_INFO_HE_RU_ALLOC_996 = 0x5 NL80211_RATE_INFO_HE_RU_ALLOC = 0x11 - NL80211_RATE_INFO_MAX = 0x16 + NL80211_RATE_INFO_MAX = 0x1d NL80211_RATE_INFO_MCS = 0x2 NL80211_RATE_INFO_SHORT_GI = 0x4 NL80211_RATE_INFO_VHT_MCS = 0x6 diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go index 83c69c119..1b4c97c32 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go @@ -733,6 +733,10 @@ const ( RISCV_HWPROBE_KEY_IMA_EXT_0 = 0x4 RISCV_HWPROBE_IMA_FD = 0x1 RISCV_HWPROBE_IMA_C = 0x2 + RISCV_HWPROBE_IMA_V = 0x4 + RISCV_HWPROBE_EXT_ZBA = 0x8 + RISCV_HWPROBE_EXT_ZBB = 0x10 + RISCV_HWPROBE_EXT_ZBS = 0x20 RISCV_HWPROBE_KEY_CPUPERF_0 = 0x5 RISCV_HWPROBE_MISALIGNED_UNKNOWN = 0x0 RISCV_HWPROBE_MISALIGNED_EMULATED = 0x1 diff --git a/vendor/golang.org/x/sys/windows/exec_windows.go b/vendor/golang.org/x/sys/windows/exec_windows.go index a52e0331d..9cabbb694 100644 --- a/vendor/golang.org/x/sys/windows/exec_windows.go +++ b/vendor/golang.org/x/sys/windows/exec_windows.go @@ -22,7 +22,7 @@ import ( // but only if there is space or tab inside s. func EscapeArg(s string) string { if len(s) == 0 { - return "\"\"" + return `""` } n := len(s) hasSpace := false @@ -35,7 +35,7 @@ func EscapeArg(s string) string { } } if hasSpace { - n += 2 + n += 2 // Reserve space for quotes. } if n == len(s) { return s @@ -82,20 +82,68 @@ func EscapeArg(s string) string { // in CreateProcess's CommandLine argument, CreateService/ChangeServiceConfig's BinaryPathName argument, // or any program that uses CommandLineToArgv. func ComposeCommandLine(args []string) string { - var commandLine string - for i := range args { - if i > 0 { - commandLine += " " + if len(args) == 0 { + return "" + } + + // Per https://learn.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-commandlinetoargvw: + // “This function accepts command lines that contain a program name; the + // program name can be enclosed in quotation marks or not.” + // + // Unfortunately, it provides no means of escaping interior quotation marks + // within that program name, and we have no way to report them here. + prog := args[0] + mustQuote := len(prog) == 0 + for i := 0; i < len(prog); i++ { + c := prog[i] + if c <= ' ' || (c == '"' && i == 0) { + // Force quotes for not only the ASCII space and tab as described in the + // MSDN article, but also ASCII control characters. + // The documentation for CommandLineToArgvW doesn't say what happens when + // the first argument is not a valid program name, but it empirically + // seems to drop unquoted control characters. + mustQuote = true + break + } + } + var commandLine []byte + if mustQuote { + commandLine = make([]byte, 0, len(prog)+2) + commandLine = append(commandLine, '"') + for i := 0; i < len(prog); i++ { + c := prog[i] + if c == '"' { + // This quote would interfere with our surrounding quotes. + // We have no way to report an error, so just strip out + // the offending character instead. + continue + } + commandLine = append(commandLine, c) } - commandLine += EscapeArg(args[i]) + commandLine = append(commandLine, '"') + } else { + if len(args) == 1 { + // args[0] is a valid command line representing itself. + // No need to allocate a new slice or string for it. + return prog + } + commandLine = []byte(prog) } - return commandLine + + for _, arg := range args[1:] { + commandLine = append(commandLine, ' ') + // TODO(bcmills): since we're already appending to a slice, it would be nice + // to avoid the intermediate allocations of EscapeArg. + // Perhaps we can factor out an appendEscapedArg function. + commandLine = append(commandLine, EscapeArg(arg)...) + } + return string(commandLine) } // DecomposeCommandLine breaks apart its argument command line into unescaped parts using CommandLineToArgv, // as gathered from GetCommandLine, QUERY_SERVICE_CONFIG's BinaryPathName argument, or elsewhere that // command lines are passed around. -// DecomposeCommandLine returns error if commandLine contains NUL. +// DecomposeCommandLine returns an error if commandLine contains NUL. func DecomposeCommandLine(commandLine string) ([]string, error) { if len(commandLine) == 0 { return []string{}, nil @@ -105,18 +153,35 @@ func DecomposeCommandLine(commandLine string) ([]string, error) { return nil, errorspkg.New("string with NUL passed to DecomposeCommandLine") } var argc int32 - argv, err := CommandLineToArgv(&utf16CommandLine[0], &argc) + argv, err := commandLineToArgv(&utf16CommandLine[0], &argc) if err != nil { return nil, err } defer LocalFree(Handle(unsafe.Pointer(argv))) + var args []string - for _, v := range (*argv)[:argc] { - args = append(args, UTF16ToString((*v)[:])) + for _, p := range unsafe.Slice(argv, argc) { + args = append(args, UTF16PtrToString(p)) } return args, nil } +// CommandLineToArgv parses a Unicode command line string and sets +// argc to the number of parsed arguments. +// +// The returned memory should be freed using a single call to LocalFree. +// +// Note that although the return type of CommandLineToArgv indicates 8192 +// entries of up to 8192 characters each, the actual count of parsed arguments +// may exceed 8192, and the documentation for CommandLineToArgvW does not mention +// any bound on the lengths of the individual argument strings. +// (See https://go.dev/issue/63236.) +func CommandLineToArgv(cmd *uint16, argc *int32) (argv *[8192]*[8192]uint16, err error) { + argp, err := commandLineToArgv(cmd, argc) + argv = (*[8192]*[8192]uint16)(unsafe.Pointer(argp)) + return argv, err +} + func CloseOnExec(fd Handle) { SetHandleInformation(Handle(fd), HANDLE_FLAG_INHERIT, 0) } diff --git a/vendor/golang.org/x/sys/windows/security_windows.go b/vendor/golang.org/x/sys/windows/security_windows.go index d414ef13b..26be94a8a 100644 --- a/vendor/golang.org/x/sys/windows/security_windows.go +++ b/vendor/golang.org/x/sys/windows/security_windows.go @@ -7,8 +7,6 @@ package windows import ( "syscall" "unsafe" - - "golang.org/x/sys/internal/unsafeheader" ) const ( @@ -1341,21 +1339,14 @@ func (selfRelativeSD *SECURITY_DESCRIPTOR) copySelfRelativeSecurityDescriptor() sdLen = min } - var src []byte - h := (*unsafeheader.Slice)(unsafe.Pointer(&src)) - h.Data = unsafe.Pointer(selfRelativeSD) - h.Len = sdLen - h.Cap = sdLen - + src := unsafe.Slice((*byte)(unsafe.Pointer(selfRelativeSD)), sdLen) + // SECURITY_DESCRIPTOR has pointers in it, which means checkptr expects for it to + // be aligned properly. When we're copying a Windows-allocated struct to a + // Go-allocated one, make sure that the Go allocation is aligned to the + // pointer size. const psize = int(unsafe.Sizeof(uintptr(0))) - - var dst []byte - h = (*unsafeheader.Slice)(unsafe.Pointer(&dst)) alloc := make([]uintptr, (sdLen+psize-1)/psize) - h.Data = (*unsafeheader.Slice)(unsafe.Pointer(&alloc)).Data - h.Len = sdLen - h.Cap = sdLen - + dst := unsafe.Slice((*byte)(unsafe.Pointer(&alloc[0])), sdLen) copy(dst, src) return (*SECURITY_DESCRIPTOR)(unsafe.Pointer(&dst[0])) } diff --git a/vendor/golang.org/x/sys/windows/syscall_windows.go b/vendor/golang.org/x/sys/windows/syscall_windows.go index 67bad0926..35cfc57ca 100644 --- a/vendor/golang.org/x/sys/windows/syscall_windows.go +++ b/vendor/golang.org/x/sys/windows/syscall_windows.go @@ -15,8 +15,6 @@ import ( "time" "unicode/utf16" "unsafe" - - "golang.org/x/sys/internal/unsafeheader" ) type Handle uintptr @@ -240,7 +238,7 @@ func NewCallbackCDecl(fn interface{}) uintptr { //sys SetFileAttributes(name *uint16, attrs uint32) (err error) = kernel32.SetFileAttributesW //sys GetFileAttributesEx(name *uint16, level uint32, info *byte) (err error) = kernel32.GetFileAttributesExW //sys GetCommandLine() (cmd *uint16) = kernel32.GetCommandLineW -//sys CommandLineToArgv(cmd *uint16, argc *int32) (argv *[8192]*[8192]uint16, err error) [failretval==nil] = shell32.CommandLineToArgvW +//sys commandLineToArgv(cmd *uint16, argc *int32) (argv **uint16, err error) [failretval==nil] = shell32.CommandLineToArgvW //sys LocalFree(hmem Handle) (handle Handle, err error) [failretval!=0] //sys LocalAlloc(flags uint32, length uint32) (ptr uintptr, err error) //sys SetHandleInformation(handle Handle, mask uint32, flags uint32) (err error) @@ -299,12 +297,15 @@ func NewCallbackCDecl(fn interface{}) uintptr { //sys RegNotifyChangeKeyValue(key Handle, watchSubtree bool, notifyFilter uint32, event Handle, asynchronous bool) (regerrno error) = advapi32.RegNotifyChangeKeyValue //sys GetCurrentProcessId() (pid uint32) = kernel32.GetCurrentProcessId //sys ProcessIdToSessionId(pid uint32, sessionid *uint32) (err error) = kernel32.ProcessIdToSessionId +//sys ClosePseudoConsole(console Handle) = kernel32.ClosePseudoConsole +//sys createPseudoConsole(size uint32, in Handle, out Handle, flags uint32, pconsole *Handle) (hr error) = kernel32.CreatePseudoConsole //sys GetConsoleMode(console Handle, mode *uint32) (err error) = kernel32.GetConsoleMode //sys SetConsoleMode(console Handle, mode uint32) (err error) = kernel32.SetConsoleMode //sys GetConsoleScreenBufferInfo(console Handle, info *ConsoleScreenBufferInfo) (err error) = kernel32.GetConsoleScreenBufferInfo //sys setConsoleCursorPosition(console Handle, position uint32) (err error) = kernel32.SetConsoleCursorPosition //sys WriteConsole(console Handle, buf *uint16, towrite uint32, written *uint32, reserved *byte) (err error) = kernel32.WriteConsoleW //sys ReadConsole(console Handle, buf *uint16, toread uint32, read *uint32, inputControl *byte) (err error) = kernel32.ReadConsoleW +//sys resizePseudoConsole(pconsole Handle, size uint32) (hr error) = kernel32.ResizePseudoConsole //sys CreateToolhelp32Snapshot(flags uint32, processId uint32) (handle Handle, err error) [failretval==InvalidHandle] = kernel32.CreateToolhelp32Snapshot //sys Module32First(snapshot Handle, moduleEntry *ModuleEntry32) (err error) = kernel32.Module32FirstW //sys Module32Next(snapshot Handle, moduleEntry *ModuleEntry32) (err error) = kernel32.Module32NextW @@ -1667,12 +1668,8 @@ func NewNTUnicodeString(s string) (*NTUnicodeString, error) { // Slice returns a uint16 slice that aliases the data in the NTUnicodeString. func (s *NTUnicodeString) Slice() []uint16 { - var slice []uint16 - hdr := (*unsafeheader.Slice)(unsafe.Pointer(&slice)) - hdr.Data = unsafe.Pointer(s.Buffer) - hdr.Len = int(s.Length) - hdr.Cap = int(s.MaximumLength) - return slice + slice := unsafe.Slice(s.Buffer, s.MaximumLength) + return slice[:s.Length] } func (s *NTUnicodeString) String() string { @@ -1695,12 +1692,8 @@ func NewNTString(s string) (*NTString, error) { // Slice returns a byte slice that aliases the data in the NTString. func (s *NTString) Slice() []byte { - var slice []byte - hdr := (*unsafeheader.Slice)(unsafe.Pointer(&slice)) - hdr.Data = unsafe.Pointer(s.Buffer) - hdr.Len = int(s.Length) - hdr.Cap = int(s.MaximumLength) - return slice + slice := unsafe.Slice(s.Buffer, s.MaximumLength) + return slice[:s.Length] } func (s *NTString) String() string { @@ -1752,10 +1745,7 @@ func LoadResourceData(module, resInfo Handle) (data []byte, err error) { if err != nil { return } - h := (*unsafeheader.Slice)(unsafe.Pointer(&data)) - h.Data = unsafe.Pointer(ptr) - h.Len = int(size) - h.Cap = int(size) + data = unsafe.Slice((*byte)(unsafe.Pointer(ptr)), size) return } @@ -1826,3 +1816,17 @@ type PSAPI_WORKING_SET_EX_INFORMATION struct { // A PSAPI_WORKING_SET_EX_BLOCK union that indicates the attributes of the page at VirtualAddress. VirtualAttributes PSAPI_WORKING_SET_EX_BLOCK } + +// CreatePseudoConsole creates a windows pseudo console. +func CreatePseudoConsole(size Coord, in Handle, out Handle, flags uint32, pconsole *Handle) error { + // We need this wrapper to manually cast Coord to uint32. The autogenerated wrappers only + // accept arguments that can be casted to uintptr, and Coord can't. + return createPseudoConsole(*((*uint32)(unsafe.Pointer(&size))), in, out, flags, pconsole) +} + +// ResizePseudoConsole resizes the internal buffers of the pseudo console to the width and height specified in `size`. +func ResizePseudoConsole(pconsole Handle, size Coord) error { + // We need this wrapper to manually cast Coord to uint32. The autogenerated wrappers only + // accept arguments that can be casted to uintptr, and Coord can't. + return resizePseudoConsole(pconsole, *((*uint32)(unsafe.Pointer(&size)))) +} diff --git a/vendor/golang.org/x/sys/windows/types_windows.go b/vendor/golang.org/x/sys/windows/types_windows.go index 88e62a638..b88dc7c85 100644 --- a/vendor/golang.org/x/sys/windows/types_windows.go +++ b/vendor/golang.org/x/sys/windows/types_windows.go @@ -247,6 +247,7 @@ const ( PROC_THREAD_ATTRIBUTE_MITIGATION_POLICY = 0x00020007 PROC_THREAD_ATTRIBUTE_UMS_THREAD = 0x00030006 PROC_THREAD_ATTRIBUTE_PROTECTION_LEVEL = 0x0002000b + PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE = 0x00020016 ) const ( @@ -2139,6 +2140,12 @@ const ( ENABLE_LVB_GRID_WORLDWIDE = 0x10 ) +// Pseudo console related constants used for the flags parameter to +// CreatePseudoConsole. See: https://learn.microsoft.com/en-us/windows/console/createpseudoconsole +const ( + PSEUDOCONSOLE_INHERIT_CURSOR = 0x1 +) + type Coord struct { X int16 Y int16 diff --git a/vendor/golang.org/x/sys/windows/zsyscall_windows.go b/vendor/golang.org/x/sys/windows/zsyscall_windows.go index 5c385580f..8b1688de4 100644 --- a/vendor/golang.org/x/sys/windows/zsyscall_windows.go +++ b/vendor/golang.org/x/sys/windows/zsyscall_windows.go @@ -188,6 +188,7 @@ var ( procCancelIo = modkernel32.NewProc("CancelIo") procCancelIoEx = modkernel32.NewProc("CancelIoEx") procCloseHandle = modkernel32.NewProc("CloseHandle") + procClosePseudoConsole = modkernel32.NewProc("ClosePseudoConsole") procConnectNamedPipe = modkernel32.NewProc("ConnectNamedPipe") procCreateDirectoryW = modkernel32.NewProc("CreateDirectoryW") procCreateEventExW = modkernel32.NewProc("CreateEventExW") @@ -202,6 +203,7 @@ var ( procCreateNamedPipeW = modkernel32.NewProc("CreateNamedPipeW") procCreatePipe = modkernel32.NewProc("CreatePipe") procCreateProcessW = modkernel32.NewProc("CreateProcessW") + procCreatePseudoConsole = modkernel32.NewProc("CreatePseudoConsole") procCreateSymbolicLinkW = modkernel32.NewProc("CreateSymbolicLinkW") procCreateToolhelp32Snapshot = modkernel32.NewProc("CreateToolhelp32Snapshot") procDefineDosDeviceW = modkernel32.NewProc("DefineDosDeviceW") @@ -328,6 +330,7 @@ var ( procReleaseMutex = modkernel32.NewProc("ReleaseMutex") procRemoveDirectoryW = modkernel32.NewProc("RemoveDirectoryW") procResetEvent = modkernel32.NewProc("ResetEvent") + procResizePseudoConsole = modkernel32.NewProc("ResizePseudoConsole") procResumeThread = modkernel32.NewProc("ResumeThread") procSetCommTimeouts = modkernel32.NewProc("SetCommTimeouts") procSetConsoleCursorPosition = modkernel32.NewProc("SetConsoleCursorPosition") @@ -1633,6 +1636,11 @@ func CloseHandle(handle Handle) (err error) { return } +func ClosePseudoConsole(console Handle) { + syscall.Syscall(procClosePseudoConsole.Addr(), 1, uintptr(console), 0, 0) + return +} + func ConnectNamedPipe(pipe Handle, overlapped *Overlapped) (err error) { r1, _, e1 := syscall.Syscall(procConnectNamedPipe.Addr(), 2, uintptr(pipe), uintptr(unsafe.Pointer(overlapped)), 0) if r1 == 0 { @@ -1762,6 +1770,14 @@ func CreateProcess(appName *uint16, commandLine *uint16, procSecurity *SecurityA return } +func createPseudoConsole(size uint32, in Handle, out Handle, flags uint32, pconsole *Handle) (hr error) { + r0, _, _ := syscall.Syscall6(procCreatePseudoConsole.Addr(), 5, uintptr(size), uintptr(in), uintptr(out), uintptr(flags), uintptr(unsafe.Pointer(pconsole)), 0) + if r0 != 0 { + hr = syscall.Errno(r0) + } + return +} + func CreateSymbolicLink(symlinkfilename *uint16, targetfilename *uint16, flags uint32) (err error) { r1, _, e1 := syscall.Syscall(procCreateSymbolicLinkW.Addr(), 3, uintptr(unsafe.Pointer(symlinkfilename)), uintptr(unsafe.Pointer(targetfilename)), uintptr(flags)) if r1&0xff == 0 { @@ -2862,6 +2878,14 @@ func ResetEvent(event Handle) (err error) { return } +func resizePseudoConsole(pconsole Handle, size uint32) (hr error) { + r0, _, _ := syscall.Syscall(procResizePseudoConsole.Addr(), 2, uintptr(pconsole), uintptr(size), 0) + if r0 != 0 { + hr = syscall.Errno(r0) + } + return +} + func ResumeThread(thread Handle) (ret uint32, err error) { r0, _, e1 := syscall.Syscall(procResumeThread.Addr(), 1, uintptr(thread), 0, 0) ret = uint32(r0) @@ -3820,9 +3844,9 @@ func setupUninstallOEMInf(infFileName *uint16, flags SUOI, reserved uintptr) (er return } -func CommandLineToArgv(cmd *uint16, argc *int32) (argv *[8192]*[8192]uint16, err error) { +func commandLineToArgv(cmd *uint16, argc *int32) (argv **uint16, err error) { r0, _, e1 := syscall.Syscall(procCommandLineToArgvW.Addr(), 2, uintptr(unsafe.Pointer(cmd)), uintptr(unsafe.Pointer(argc)), 0) - argv = (*[8192]*[8192]uint16)(unsafe.Pointer(r0)) + argv = (**uint16)(unsafe.Pointer(r0)) if argv == nil { err = errnoErr(e1) } diff --git a/vendor/google.golang.org/appengine/internal/blobstore/blobstore_service.proto b/vendor/google.golang.org/appengine/internal/blobstore/blobstore_service.proto deleted file mode 100644 index 33b265032..000000000 --- a/vendor/google.golang.org/appengine/internal/blobstore/blobstore_service.proto +++ /dev/null @@ -1,71 +0,0 @@ -syntax = "proto2"; -option go_package = "blobstore"; - -package appengine; - -message BlobstoreServiceError { - enum ErrorCode { - OK = 0; - INTERNAL_ERROR = 1; - URL_TOO_LONG = 2; - PERMISSION_DENIED = 3; - BLOB_NOT_FOUND = 4; - DATA_INDEX_OUT_OF_RANGE = 5; - BLOB_FETCH_SIZE_TOO_LARGE = 6; - ARGUMENT_OUT_OF_RANGE = 8; - INVALID_BLOB_KEY = 9; - } -} - -message CreateUploadURLRequest { - required string success_path = 1; - optional int64 max_upload_size_bytes = 2; - optional int64 max_upload_size_per_blob_bytes = 3; - optional string gs_bucket_name = 4; - optional int32 url_expiry_time_seconds = 5; -} - -message CreateUploadURLResponse { - required string url = 1; -} - -message DeleteBlobRequest { - repeated string blob_key = 1; - optional string token = 2; -} - -message FetchDataRequest { - required string blob_key = 1; - required int64 start_index = 2; - required int64 end_index = 3; -} - -message FetchDataResponse { - required bytes data = 1000 [ctype = CORD]; -} - -message CloneBlobRequest { - required bytes blob_key = 1; - required bytes mime_type = 2; - required bytes target_app_id = 3; -} - -message CloneBlobResponse { - required bytes blob_key = 1; -} - -message DecodeBlobKeyRequest { - repeated string blob_key = 1; -} - -message DecodeBlobKeyResponse { - repeated string decoded = 1; -} - -message CreateEncodedGoogleStorageKeyRequest { - required string filename = 1; -} - -message CreateEncodedGoogleStorageKeyResponse { - required string blob_key = 1; -} diff --git a/vendor/google.golang.org/appengine/internal/capability/capability_service.proto b/vendor/google.golang.org/appengine/internal/capability/capability_service.proto deleted file mode 100644 index 5660ab6ee..000000000 --- a/vendor/google.golang.org/appengine/internal/capability/capability_service.proto +++ /dev/null @@ -1,28 +0,0 @@ -syntax = "proto2"; -option go_package = "capability"; - -package appengine; - -message IsEnabledRequest { - required string package = 1; - repeated string capability = 2; - repeated string call = 3; -} - -message IsEnabledResponse { - enum SummaryStatus { - DEFAULT = 0; - ENABLED = 1; - SCHEDULED_FUTURE = 2; - SCHEDULED_NOW = 3; - DISABLED = 4; - UNKNOWN = 5; - } - optional SummaryStatus summary_status = 1; - - optional int64 time_until_scheduled = 2; -} - -service CapabilityService { - rpc IsEnabled(IsEnabledRequest) returns (IsEnabledResponse) {}; -} diff --git a/vendor/google.golang.org/appengine/internal/channel/channel_service.proto b/vendor/google.golang.org/appengine/internal/channel/channel_service.proto deleted file mode 100644 index 2b5a918ca..000000000 --- a/vendor/google.golang.org/appengine/internal/channel/channel_service.proto +++ /dev/null @@ -1,30 +0,0 @@ -syntax = "proto2"; -option go_package = "channel"; - -package appengine; - -message ChannelServiceError { - enum ErrorCode { - OK = 0; - INTERNAL_ERROR = 1; - INVALID_CHANNEL_KEY = 2; - BAD_MESSAGE = 3; - INVALID_CHANNEL_TOKEN_DURATION = 4; - APPID_ALIAS_REQUIRED = 5; - } -} - -message CreateChannelRequest { - required string application_key = 1; - optional int32 duration_minutes = 2; -} - -message CreateChannelResponse { - optional string token = 2; - optional int32 duration_minutes = 3; -} - -message SendMessageRequest { - required string application_key = 1; - required string message = 2; -} diff --git a/vendor/google.golang.org/appengine/internal/image/images_service.proto b/vendor/google.golang.org/appengine/internal/image/images_service.proto deleted file mode 100644 index f0d2ed5d3..000000000 --- a/vendor/google.golang.org/appengine/internal/image/images_service.proto +++ /dev/null @@ -1,162 +0,0 @@ -syntax = "proto2"; -option go_package = "image"; - -package appengine; - -message ImagesServiceError { - enum ErrorCode { - UNSPECIFIED_ERROR = 1; - BAD_TRANSFORM_DATA = 2; - NOT_IMAGE = 3; - BAD_IMAGE_DATA = 4; - IMAGE_TOO_LARGE = 5; - INVALID_BLOB_KEY = 6; - ACCESS_DENIED = 7; - OBJECT_NOT_FOUND = 8; - } -} - -message ImagesServiceTransform { - enum Type { - RESIZE = 1; - ROTATE = 2; - HORIZONTAL_FLIP = 3; - VERTICAL_FLIP = 4; - CROP = 5; - IM_FEELING_LUCKY = 6; - } -} - -message Transform { - optional int32 width = 1; - optional int32 height = 2; - optional bool crop_to_fit = 11 [default = false]; - optional float crop_offset_x = 12 [default = 0.5]; - optional float crop_offset_y = 13 [default = 0.5]; - - optional int32 rotate = 3 [default = 0]; - - optional bool horizontal_flip = 4 [default = false]; - - optional bool vertical_flip = 5 [default = false]; - - optional float crop_left_x = 6 [default = 0.0]; - optional float crop_top_y = 7 [default = 0.0]; - optional float crop_right_x = 8 [default = 1.0]; - optional float crop_bottom_y = 9 [default = 1.0]; - - optional bool autolevels = 10 [default = false]; - - optional bool allow_stretch = 14 [default = false]; -} - -message ImageData { - required bytes content = 1 [ctype=CORD]; - optional string blob_key = 2; - - optional int32 width = 3; - optional int32 height = 4; -} - -message InputSettings { - enum ORIENTATION_CORRECTION_TYPE { - UNCHANGED_ORIENTATION = 0; - CORRECT_ORIENTATION = 1; - } - optional ORIENTATION_CORRECTION_TYPE correct_exif_orientation = 1 - [default=UNCHANGED_ORIENTATION]; - optional bool parse_metadata = 2 [default=false]; - optional int32 transparent_substitution_rgb = 3; -} - -message OutputSettings { - enum MIME_TYPE { - PNG = 0; - JPEG = 1; - WEBP = 2; - } - - optional MIME_TYPE mime_type = 1 [default=PNG]; - optional int32 quality = 2; -} - -message ImagesTransformRequest { - required ImageData image = 1; - repeated Transform transform = 2; - required OutputSettings output = 3; - optional InputSettings input = 4; -} - -message ImagesTransformResponse { - required ImageData image = 1; - optional string source_metadata = 2; -} - -message CompositeImageOptions { - required int32 source_index = 1; - required int32 x_offset = 2; - required int32 y_offset = 3; - required float opacity = 4; - - enum ANCHOR { - TOP_LEFT = 0; - TOP = 1; - TOP_RIGHT = 2; - LEFT = 3; - CENTER = 4; - RIGHT = 5; - BOTTOM_LEFT = 6; - BOTTOM = 7; - BOTTOM_RIGHT = 8; - } - - required ANCHOR anchor = 5; -} - -message ImagesCanvas { - required int32 width = 1; - required int32 height = 2; - required OutputSettings output = 3; - optional int32 color = 4 [default=-1]; -} - -message ImagesCompositeRequest { - repeated ImageData image = 1; - repeated CompositeImageOptions options = 2; - required ImagesCanvas canvas = 3; -} - -message ImagesCompositeResponse { - required ImageData image = 1; -} - -message ImagesHistogramRequest { - required ImageData image = 1; -} - -message ImagesHistogram { - repeated int32 red = 1; - repeated int32 green = 2; - repeated int32 blue = 3; -} - -message ImagesHistogramResponse { - required ImagesHistogram histogram = 1; -} - -message ImagesGetUrlBaseRequest { - required string blob_key = 1; - - optional bool create_secure_url = 2 [default = false]; -} - -message ImagesGetUrlBaseResponse { - required string url = 1; -} - -message ImagesDeleteUrlBaseRequest { - required string blob_key = 1; -} - -message ImagesDeleteUrlBaseResponse { -} diff --git a/vendor/google.golang.org/appengine/internal/mail/mail_service.proto b/vendor/google.golang.org/appengine/internal/mail/mail_service.proto deleted file mode 100644 index 4e57b7aa5..000000000 --- a/vendor/google.golang.org/appengine/internal/mail/mail_service.proto +++ /dev/null @@ -1,45 +0,0 @@ -syntax = "proto2"; -option go_package = "mail"; - -package appengine; - -message MailServiceError { - enum ErrorCode { - OK = 0; - INTERNAL_ERROR = 1; - BAD_REQUEST = 2; - UNAUTHORIZED_SENDER = 3; - INVALID_ATTACHMENT_TYPE = 4; - INVALID_HEADER_NAME = 5; - INVALID_CONTENT_ID = 6; - } -} - -message MailAttachment { - required string FileName = 1; - required bytes Data = 2; - optional string ContentID = 3; -} - -message MailHeader { - required string name = 1; - required string value = 2; -} - -message MailMessage { - required string Sender = 1; - optional string ReplyTo = 2; - - repeated string To = 3; - repeated string Cc = 4; - repeated string Bcc = 5; - - required string Subject = 6; - - optional string TextBody = 7; - optional string HtmlBody = 8; - - repeated MailAttachment Attachment = 9; - - repeated MailHeader Header = 10; -} diff --git a/vendor/google.golang.org/appengine/internal/memcache/memcache_service.proto b/vendor/google.golang.org/appengine/internal/memcache/memcache_service.proto deleted file mode 100644 index 3802ef938..000000000 --- a/vendor/google.golang.org/appengine/internal/memcache/memcache_service.proto +++ /dev/null @@ -1,174 +0,0 @@ -syntax = "proto2"; -option go_package = "memcache"; - -package appengine; - -message MemcacheServiceError { - enum ErrorCode { - OK = 0; - UNSPECIFIED_ERROR = 1; - NAMESPACE_NOT_SET = 2; - PERMISSION_DENIED = 3; - INVALID_VALUE = 6; - } -} - -message AppOverride { - required string app_id = 1; - - optional int32 num_memcacheg_backends = 2 [deprecated=true]; - optional bool ignore_shardlock = 3 [deprecated=true]; - optional string memcache_pool_hint = 4 [deprecated=true]; - optional bytes memcache_sharding_strategy = 5 [deprecated=true]; -} - -message MemcacheGetRequest { - repeated bytes key = 1; - optional string name_space = 2 [default = ""]; - optional bool for_cas = 4; - optional AppOverride override = 5; - optional bool for_peek = 6 [default = false]; -} - -message ItemTimestamps { - optional int64 expiration_time_sec = 1; - optional int64 last_access_time_sec = 2; - optional int64 delete_lock_time_sec = 3; -} - -message MemcacheGetResponse { - repeated group Item = 1 { - required bytes key = 2; - required bytes value = 3; - optional fixed32 flags = 4; - optional fixed64 cas_id = 5; - optional int32 expires_in_seconds = 6; - optional ItemTimestamps timestamps = 8; - optional bool is_delete_locked = 9; - } -} - -message MemcacheSetRequest { - enum SetPolicy { - SET = 1; - ADD = 2; - REPLACE = 3; - CAS = 4; - } - repeated group Item = 1 { - required bytes key = 2; - required bytes value = 3; - - optional fixed32 flags = 4; - optional SetPolicy set_policy = 5 [default = SET]; - optional fixed32 expiration_time = 6 [default = 0]; - - optional fixed64 cas_id = 8; - optional bool for_cas = 9; - } - optional string name_space = 7 [default = ""]; - optional AppOverride override = 10; -} - -message MemcacheSetResponse { - enum SetStatusCode { - STORED = 1; - NOT_STORED = 2; - ERROR = 3; - EXISTS = 4; - } - repeated SetStatusCode set_status = 1; -} - -message MemcacheDeleteRequest { - repeated group Item = 1 { - required bytes key = 2; - optional fixed32 delete_time = 3 [default = 0]; - } - optional string name_space = 4 [default = ""]; - optional AppOverride override = 5; -} - -message MemcacheDeleteResponse { - enum DeleteStatusCode { - DELETED = 1; - NOT_FOUND = 2; - } - repeated DeleteStatusCode delete_status = 1; -} - -message MemcacheIncrementRequest { - enum Direction { - INCREMENT = 1; - DECREMENT = 2; - } - required bytes key = 1; - optional string name_space = 4 [default = ""]; - - optional uint64 delta = 2 [default = 1]; - optional Direction direction = 3 [default = INCREMENT]; - - optional uint64 initial_value = 5; - optional fixed32 initial_flags = 6; - optional AppOverride override = 7; -} - -message MemcacheIncrementResponse { - enum IncrementStatusCode { - OK = 1; - NOT_CHANGED = 2; - ERROR = 3; - } - - optional uint64 new_value = 1; - optional IncrementStatusCode increment_status = 2; -} - -message MemcacheBatchIncrementRequest { - optional string name_space = 1 [default = ""]; - repeated MemcacheIncrementRequest item = 2; - optional AppOverride override = 3; -} - -message MemcacheBatchIncrementResponse { - repeated MemcacheIncrementResponse item = 1; -} - -message MemcacheFlushRequest { - optional AppOverride override = 1; -} - -message MemcacheFlushResponse { -} - -message MemcacheStatsRequest { - optional AppOverride override = 1; -} - -message MergedNamespaceStats { - required uint64 hits = 1; - required uint64 misses = 2; - required uint64 byte_hits = 3; - - required uint64 items = 4; - required uint64 bytes = 5; - - required fixed32 oldest_item_age = 6; -} - -message MemcacheStatsResponse { - optional MergedNamespaceStats stats = 1; -} - -message MemcacheGrabTailRequest { - required int32 item_count = 1; - optional string name_space = 2 [default = ""]; - optional AppOverride override = 3; -} - -message MemcacheGrabTailResponse { - repeated group Item = 1 { - required bytes value = 2; - optional fixed32 flags = 3; - } -} diff --git a/vendor/google.golang.org/appengine/internal/search/search.proto b/vendor/google.golang.org/appengine/internal/search/search.proto deleted file mode 100644 index 61df6508b..000000000 --- a/vendor/google.golang.org/appengine/internal/search/search.proto +++ /dev/null @@ -1,394 +0,0 @@ -syntax = "proto2"; -option go_package = "search"; - -package search; - -message Scope { - enum Type { - USER_BY_CANONICAL_ID = 1; - USER_BY_EMAIL = 2; - GROUP_BY_CANONICAL_ID = 3; - GROUP_BY_EMAIL = 4; - GROUP_BY_DOMAIN = 5; - ALL_USERS = 6; - ALL_AUTHENTICATED_USERS = 7; - } - - optional Type type = 1; - optional string value = 2; -} - -message Entry { - enum Permission { - READ = 1; - WRITE = 2; - FULL_CONTROL = 3; - } - - optional Scope scope = 1; - optional Permission permission = 2; - optional string display_name = 3; -} - -message AccessControlList { - optional string owner = 1; - repeated Entry entries = 2; -} - -message FieldValue { - enum ContentType { - TEXT = 0; - HTML = 1; - ATOM = 2; - DATE = 3; - NUMBER = 4; - GEO = 5; - } - - optional ContentType type = 1 [default = TEXT]; - - optional string language = 2 [default = "en"]; - - optional string string_value = 3; - - optional group Geo = 4 { - required double lat = 5; - required double lng = 6; - } -} - -message Field { - required string name = 1; - required FieldValue value = 2; -} - -message FieldTypes { - required string name = 1; - repeated FieldValue.ContentType type = 2; -} - -message IndexShardSettings { - repeated int32 prev_num_shards = 1; - required int32 num_shards = 2 [default=1]; - repeated int32 prev_num_shards_search_false = 3; - optional string local_replica = 4 [default = ""]; -} - -message FacetValue { - enum ContentType { - ATOM = 2; - NUMBER = 4; - } - - optional ContentType type = 1 [default = ATOM]; - optional string string_value = 3; -} - -message Facet { - required string name = 1; - required FacetValue value = 2; -} - -message DocumentMetadata { - optional int64 version = 1; - optional int64 committed_st_version = 2; -} - -message Document { - optional string id = 1; - optional string language = 2 [default = "en"]; - repeated Field field = 3; - optional int32 order_id = 4; - optional OrderIdSource order_id_source = 6 [default = SUPPLIED]; - - enum OrderIdSource { - DEFAULTED = 0; - SUPPLIED = 1; - } - - enum Storage { - DISK = 0; - } - - optional Storage storage = 5 [default = DISK]; - repeated Facet facet = 8; -} - -message SearchServiceError { - enum ErrorCode { - OK = 0; - INVALID_REQUEST = 1; - TRANSIENT_ERROR = 2; - INTERNAL_ERROR = 3; - PERMISSION_DENIED = 4; - TIMEOUT = 5; - CONCURRENT_TRANSACTION = 6; - } -} - -message RequestStatus { - required SearchServiceError.ErrorCode code = 1; - optional string error_detail = 2; - optional int32 canonical_code = 3; -} - -message IndexSpec { - required string name = 1; - - enum Consistency { - GLOBAL = 0; - PER_DOCUMENT = 1; - } - optional Consistency consistency = 2 [default = PER_DOCUMENT]; - - optional string namespace = 3; - optional int32 version = 4; - - enum Source { - SEARCH = 0; - DATASTORE = 1; - CLOUD_STORAGE = 2; - } - optional Source source = 5 [default = SEARCH]; - - enum Mode { - PRIORITY = 0; - BACKGROUND = 1; - } - optional Mode mode = 6 [default = PRIORITY]; -} - -message IndexMetadata { - required IndexSpec index_spec = 1; - - repeated FieldTypes field = 2; - - message Storage { - optional int64 amount_used = 1; - optional int64 limit = 2; - } - optional Storage storage = 3; -} - -message IndexDocumentParams { - repeated Document document = 1; - - enum Freshness { - SYNCHRONOUSLY = 0; - WHEN_CONVENIENT = 1; - } - optional Freshness freshness = 2 [default = SYNCHRONOUSLY, deprecated=true]; - - required IndexSpec index_spec = 3; -} - -message IndexDocumentRequest { - required IndexDocumentParams params = 1; - - optional bytes app_id = 3; -} - -message IndexDocumentResponse { - repeated RequestStatus status = 1; - - repeated string doc_id = 2; -} - -message DeleteDocumentParams { - repeated string doc_id = 1; - - required IndexSpec index_spec = 2; -} - -message DeleteDocumentRequest { - required DeleteDocumentParams params = 1; - - optional bytes app_id = 3; -} - -message DeleteDocumentResponse { - repeated RequestStatus status = 1; -} - -message ListDocumentsParams { - required IndexSpec index_spec = 1; - optional string start_doc_id = 2; - optional bool include_start_doc = 3 [default = true]; - optional int32 limit = 4 [default = 100]; - optional bool keys_only = 5; -} - -message ListDocumentsRequest { - required ListDocumentsParams params = 1; - - optional bytes app_id = 2; -} - -message ListDocumentsResponse { - required RequestStatus status = 1; - - repeated Document document = 2; -} - -message ListIndexesParams { - optional bool fetch_schema = 1; - optional int32 limit = 2 [default = 20]; - optional string namespace = 3; - optional string start_index_name = 4; - optional bool include_start_index = 5 [default = true]; - optional string index_name_prefix = 6; - optional int32 offset = 7; - optional IndexSpec.Source source = 8 [default = SEARCH]; -} - -message ListIndexesRequest { - required ListIndexesParams params = 1; - - optional bytes app_id = 3; -} - -message ListIndexesResponse { - required RequestStatus status = 1; - repeated IndexMetadata index_metadata = 2; -} - -message DeleteSchemaParams { - optional IndexSpec.Source source = 1 [default = SEARCH]; - repeated IndexSpec index_spec = 2; -} - -message DeleteSchemaRequest { - required DeleteSchemaParams params = 1; - - optional bytes app_id = 3; -} - -message DeleteSchemaResponse { - repeated RequestStatus status = 1; -} - -message SortSpec { - required string sort_expression = 1; - optional bool sort_descending = 2 [default = true]; - optional string default_value_text = 4; - optional double default_value_numeric = 5; -} - -message ScorerSpec { - enum Scorer { - RESCORING_MATCH_SCORER = 0; - MATCH_SCORER = 2; - } - optional Scorer scorer = 1 [default = MATCH_SCORER]; - - optional int32 limit = 2 [default = 1000]; - optional string match_scorer_parameters = 9; -} - -message FieldSpec { - repeated string name = 1; - - repeated group Expression = 2 { - required string name = 3; - required string expression = 4; - } -} - -message FacetRange { - optional string name = 1; - optional string start = 2; - optional string end = 3; -} - -message FacetRequestParam { - optional int32 value_limit = 1; - repeated FacetRange range = 2; - repeated string value_constraint = 3; -} - -message FacetAutoDetectParam { - optional int32 value_limit = 1 [default = 10]; -} - -message FacetRequest { - required string name = 1; - optional FacetRequestParam params = 2; -} - -message FacetRefinement { - required string name = 1; - optional string value = 2; - - message Range { - optional string start = 1; - optional string end = 2; - } - optional Range range = 3; -} - -message SearchParams { - required IndexSpec index_spec = 1; - required string query = 2; - optional string cursor = 4; - optional int32 offset = 11; - - enum CursorType { - NONE = 0; - SINGLE = 1; - PER_RESULT = 2; - } - optional CursorType cursor_type = 5 [default = NONE]; - - optional int32 limit = 6 [default = 20]; - optional int32 matched_count_accuracy = 7; - repeated SortSpec sort_spec = 8; - optional ScorerSpec scorer_spec = 9; - optional FieldSpec field_spec = 10; - optional bool keys_only = 12; - - enum ParsingMode { - STRICT = 0; - RELAXED = 1; - } - optional ParsingMode parsing_mode = 13 [default = STRICT]; - - optional int32 auto_discover_facet_count = 15 [default = 0]; - repeated FacetRequest include_facet = 16; - repeated FacetRefinement facet_refinement = 17; - optional FacetAutoDetectParam facet_auto_detect_param = 18; - optional int32 facet_depth = 19 [default=1000]; -} - -message SearchRequest { - required SearchParams params = 1; - - optional bytes app_id = 3; -} - -message FacetResultValue { - required string name = 1; - required int32 count = 2; - required FacetRefinement refinement = 3; -} - -message FacetResult { - required string name = 1; - repeated FacetResultValue value = 2; -} - -message SearchResult { - required Document document = 1; - repeated Field expression = 4; - repeated double score = 2; - optional string cursor = 3; -} - -message SearchResponse { - repeated SearchResult result = 1; - required int64 matched_count = 2; - required RequestStatus status = 3; - optional string cursor = 4; - repeated FacetResult facet_result = 5; - - extensions 1000 to 9999; -} diff --git a/vendor/google.golang.org/appengine/internal/socket/socket_service.proto b/vendor/google.golang.org/appengine/internal/socket/socket_service.proto deleted file mode 100644 index 2fcc7953d..000000000 --- a/vendor/google.golang.org/appengine/internal/socket/socket_service.proto +++ /dev/null @@ -1,460 +0,0 @@ -syntax = "proto2"; -option go_package = "socket"; - -package appengine; - -message RemoteSocketServiceError { - enum ErrorCode { - SYSTEM_ERROR = 1; - GAI_ERROR = 2; - FAILURE = 4; - PERMISSION_DENIED = 5; - INVALID_REQUEST = 6; - SOCKET_CLOSED = 7; - } - - enum SystemError { - option allow_alias = true; - - SYS_SUCCESS = 0; - SYS_EPERM = 1; - SYS_ENOENT = 2; - SYS_ESRCH = 3; - SYS_EINTR = 4; - SYS_EIO = 5; - SYS_ENXIO = 6; - SYS_E2BIG = 7; - SYS_ENOEXEC = 8; - SYS_EBADF = 9; - SYS_ECHILD = 10; - SYS_EAGAIN = 11; - SYS_EWOULDBLOCK = 11; - SYS_ENOMEM = 12; - SYS_EACCES = 13; - SYS_EFAULT = 14; - SYS_ENOTBLK = 15; - SYS_EBUSY = 16; - SYS_EEXIST = 17; - SYS_EXDEV = 18; - SYS_ENODEV = 19; - SYS_ENOTDIR = 20; - SYS_EISDIR = 21; - SYS_EINVAL = 22; - SYS_ENFILE = 23; - SYS_EMFILE = 24; - SYS_ENOTTY = 25; - SYS_ETXTBSY = 26; - SYS_EFBIG = 27; - SYS_ENOSPC = 28; - SYS_ESPIPE = 29; - SYS_EROFS = 30; - SYS_EMLINK = 31; - SYS_EPIPE = 32; - SYS_EDOM = 33; - SYS_ERANGE = 34; - SYS_EDEADLK = 35; - SYS_EDEADLOCK = 35; - SYS_ENAMETOOLONG = 36; - SYS_ENOLCK = 37; - SYS_ENOSYS = 38; - SYS_ENOTEMPTY = 39; - SYS_ELOOP = 40; - SYS_ENOMSG = 42; - SYS_EIDRM = 43; - SYS_ECHRNG = 44; - SYS_EL2NSYNC = 45; - SYS_EL3HLT = 46; - SYS_EL3RST = 47; - SYS_ELNRNG = 48; - SYS_EUNATCH = 49; - SYS_ENOCSI = 50; - SYS_EL2HLT = 51; - SYS_EBADE = 52; - SYS_EBADR = 53; - SYS_EXFULL = 54; - SYS_ENOANO = 55; - SYS_EBADRQC = 56; - SYS_EBADSLT = 57; - SYS_EBFONT = 59; - SYS_ENOSTR = 60; - SYS_ENODATA = 61; - SYS_ETIME = 62; - SYS_ENOSR = 63; - SYS_ENONET = 64; - SYS_ENOPKG = 65; - SYS_EREMOTE = 66; - SYS_ENOLINK = 67; - SYS_EADV = 68; - SYS_ESRMNT = 69; - SYS_ECOMM = 70; - SYS_EPROTO = 71; - SYS_EMULTIHOP = 72; - SYS_EDOTDOT = 73; - SYS_EBADMSG = 74; - SYS_EOVERFLOW = 75; - SYS_ENOTUNIQ = 76; - SYS_EBADFD = 77; - SYS_EREMCHG = 78; - SYS_ELIBACC = 79; - SYS_ELIBBAD = 80; - SYS_ELIBSCN = 81; - SYS_ELIBMAX = 82; - SYS_ELIBEXEC = 83; - SYS_EILSEQ = 84; - SYS_ERESTART = 85; - SYS_ESTRPIPE = 86; - SYS_EUSERS = 87; - SYS_ENOTSOCK = 88; - SYS_EDESTADDRREQ = 89; - SYS_EMSGSIZE = 90; - SYS_EPROTOTYPE = 91; - SYS_ENOPROTOOPT = 92; - SYS_EPROTONOSUPPORT = 93; - SYS_ESOCKTNOSUPPORT = 94; - SYS_EOPNOTSUPP = 95; - SYS_ENOTSUP = 95; - SYS_EPFNOSUPPORT = 96; - SYS_EAFNOSUPPORT = 97; - SYS_EADDRINUSE = 98; - SYS_EADDRNOTAVAIL = 99; - SYS_ENETDOWN = 100; - SYS_ENETUNREACH = 101; - SYS_ENETRESET = 102; - SYS_ECONNABORTED = 103; - SYS_ECONNRESET = 104; - SYS_ENOBUFS = 105; - SYS_EISCONN = 106; - SYS_ENOTCONN = 107; - SYS_ESHUTDOWN = 108; - SYS_ETOOMANYREFS = 109; - SYS_ETIMEDOUT = 110; - SYS_ECONNREFUSED = 111; - SYS_EHOSTDOWN = 112; - SYS_EHOSTUNREACH = 113; - SYS_EALREADY = 114; - SYS_EINPROGRESS = 115; - SYS_ESTALE = 116; - SYS_EUCLEAN = 117; - SYS_ENOTNAM = 118; - SYS_ENAVAIL = 119; - SYS_EISNAM = 120; - SYS_EREMOTEIO = 121; - SYS_EDQUOT = 122; - SYS_ENOMEDIUM = 123; - SYS_EMEDIUMTYPE = 124; - SYS_ECANCELED = 125; - SYS_ENOKEY = 126; - SYS_EKEYEXPIRED = 127; - SYS_EKEYREVOKED = 128; - SYS_EKEYREJECTED = 129; - SYS_EOWNERDEAD = 130; - SYS_ENOTRECOVERABLE = 131; - SYS_ERFKILL = 132; - } - - optional int32 system_error = 1 [default=0]; - optional string error_detail = 2; -} - -message AddressPort { - required int32 port = 1; - optional bytes packed_address = 2; - - optional string hostname_hint = 3; -} - - - -message CreateSocketRequest { - enum SocketFamily { - IPv4 = 1; - IPv6 = 2; - } - - enum SocketProtocol { - TCP = 1; - UDP = 2; - } - - required SocketFamily family = 1; - required SocketProtocol protocol = 2; - - repeated SocketOption socket_options = 3; - - optional AddressPort proxy_external_ip = 4; - - optional int32 listen_backlog = 5 [default=0]; - - optional AddressPort remote_ip = 6; - - optional string app_id = 9; - - optional int64 project_id = 10; -} - -message CreateSocketReply { - optional string socket_descriptor = 1; - - optional AddressPort server_address = 3; - - optional AddressPort proxy_external_ip = 4; - - extensions 1000 to max; -} - - - -message BindRequest { - required string socket_descriptor = 1; - required AddressPort proxy_external_ip = 2; -} - -message BindReply { - optional AddressPort proxy_external_ip = 1; -} - - - -message GetSocketNameRequest { - required string socket_descriptor = 1; -} - -message GetSocketNameReply { - optional AddressPort proxy_external_ip = 2; -} - - - -message GetPeerNameRequest { - required string socket_descriptor = 1; -} - -message GetPeerNameReply { - optional AddressPort peer_ip = 2; -} - - -message SocketOption { - - enum SocketOptionLevel { - SOCKET_SOL_IP = 0; - SOCKET_SOL_SOCKET = 1; - SOCKET_SOL_TCP = 6; - SOCKET_SOL_UDP = 17; - } - - enum SocketOptionName { - option allow_alias = true; - - SOCKET_SO_DEBUG = 1; - SOCKET_SO_REUSEADDR = 2; - SOCKET_SO_TYPE = 3; - SOCKET_SO_ERROR = 4; - SOCKET_SO_DONTROUTE = 5; - SOCKET_SO_BROADCAST = 6; - SOCKET_SO_SNDBUF = 7; - SOCKET_SO_RCVBUF = 8; - SOCKET_SO_KEEPALIVE = 9; - SOCKET_SO_OOBINLINE = 10; - SOCKET_SO_LINGER = 13; - SOCKET_SO_RCVTIMEO = 20; - SOCKET_SO_SNDTIMEO = 21; - - SOCKET_IP_TOS = 1; - SOCKET_IP_TTL = 2; - SOCKET_IP_HDRINCL = 3; - SOCKET_IP_OPTIONS = 4; - - SOCKET_TCP_NODELAY = 1; - SOCKET_TCP_MAXSEG = 2; - SOCKET_TCP_CORK = 3; - SOCKET_TCP_KEEPIDLE = 4; - SOCKET_TCP_KEEPINTVL = 5; - SOCKET_TCP_KEEPCNT = 6; - SOCKET_TCP_SYNCNT = 7; - SOCKET_TCP_LINGER2 = 8; - SOCKET_TCP_DEFER_ACCEPT = 9; - SOCKET_TCP_WINDOW_CLAMP = 10; - SOCKET_TCP_INFO = 11; - SOCKET_TCP_QUICKACK = 12; - } - - required SocketOptionLevel level = 1; - required SocketOptionName option = 2; - required bytes value = 3; -} - - -message SetSocketOptionsRequest { - required string socket_descriptor = 1; - repeated SocketOption options = 2; -} - -message SetSocketOptionsReply { -} - -message GetSocketOptionsRequest { - required string socket_descriptor = 1; - repeated SocketOption options = 2; -} - -message GetSocketOptionsReply { - repeated SocketOption options = 2; -} - - -message ConnectRequest { - required string socket_descriptor = 1; - required AddressPort remote_ip = 2; - optional double timeout_seconds = 3 [default=-1]; -} - -message ConnectReply { - optional AddressPort proxy_external_ip = 1; - - extensions 1000 to max; -} - - -message ListenRequest { - required string socket_descriptor = 1; - required int32 backlog = 2; -} - -message ListenReply { -} - - -message AcceptRequest { - required string socket_descriptor = 1; - optional double timeout_seconds = 2 [default=-1]; -} - -message AcceptReply { - optional bytes new_socket_descriptor = 2; - optional AddressPort remote_address = 3; -} - - - -message ShutDownRequest { - enum How { - SOCKET_SHUT_RD = 1; - SOCKET_SHUT_WR = 2; - SOCKET_SHUT_RDWR = 3; - } - required string socket_descriptor = 1; - required How how = 2; - required int64 send_offset = 3; -} - -message ShutDownReply { -} - - - -message CloseRequest { - required string socket_descriptor = 1; - optional int64 send_offset = 2 [default=-1]; -} - -message CloseReply { -} - - - -message SendRequest { - required string socket_descriptor = 1; - required bytes data = 2 [ctype=CORD]; - required int64 stream_offset = 3; - optional int32 flags = 4 [default=0]; - optional AddressPort send_to = 5; - optional double timeout_seconds = 6 [default=-1]; -} - -message SendReply { - optional int32 data_sent = 1; -} - - -message ReceiveRequest { - enum Flags { - MSG_OOB = 1; - MSG_PEEK = 2; - } - required string socket_descriptor = 1; - required int32 data_size = 2; - optional int32 flags = 3 [default=0]; - optional double timeout_seconds = 5 [default=-1]; -} - -message ReceiveReply { - optional int64 stream_offset = 2; - optional bytes data = 3 [ctype=CORD]; - optional AddressPort received_from = 4; - optional int32 buffer_size = 5; -} - - - -message PollEvent { - - enum PollEventFlag { - SOCKET_POLLNONE = 0; - SOCKET_POLLIN = 1; - SOCKET_POLLPRI = 2; - SOCKET_POLLOUT = 4; - SOCKET_POLLERR = 8; - SOCKET_POLLHUP = 16; - SOCKET_POLLNVAL = 32; - SOCKET_POLLRDNORM = 64; - SOCKET_POLLRDBAND = 128; - SOCKET_POLLWRNORM = 256; - SOCKET_POLLWRBAND = 512; - SOCKET_POLLMSG = 1024; - SOCKET_POLLREMOVE = 4096; - SOCKET_POLLRDHUP = 8192; - }; - - required string socket_descriptor = 1; - required int32 requested_events = 2; - required int32 observed_events = 3; -} - -message PollRequest { - repeated PollEvent events = 1; - optional double timeout_seconds = 2 [default=-1]; -} - -message PollReply { - repeated PollEvent events = 2; -} - -message ResolveRequest { - required string name = 1; - repeated CreateSocketRequest.SocketFamily address_families = 2; -} - -message ResolveReply { - enum ErrorCode { - SOCKET_EAI_ADDRFAMILY = 1; - SOCKET_EAI_AGAIN = 2; - SOCKET_EAI_BADFLAGS = 3; - SOCKET_EAI_FAIL = 4; - SOCKET_EAI_FAMILY = 5; - SOCKET_EAI_MEMORY = 6; - SOCKET_EAI_NODATA = 7; - SOCKET_EAI_NONAME = 8; - SOCKET_EAI_SERVICE = 9; - SOCKET_EAI_SOCKTYPE = 10; - SOCKET_EAI_SYSTEM = 11; - SOCKET_EAI_BADHINTS = 12; - SOCKET_EAI_PROTOCOL = 13; - SOCKET_EAI_OVERFLOW = 14; - SOCKET_EAI_MAX = 15; - }; - - repeated bytes packed_address = 2; - optional string canonical_name = 3; - repeated string aliases = 4; -} diff --git a/vendor/google.golang.org/appengine/internal/system/system_service.proto b/vendor/google.golang.org/appengine/internal/system/system_service.proto deleted file mode 100644 index 32c0bf859..000000000 --- a/vendor/google.golang.org/appengine/internal/system/system_service.proto +++ /dev/null @@ -1,49 +0,0 @@ -syntax = "proto2"; -option go_package = "system"; - -package appengine; - -message SystemServiceError { - enum ErrorCode { - OK = 0; - INTERNAL_ERROR = 1; - BACKEND_REQUIRED = 2; - LIMIT_REACHED = 3; - } -} - -message SystemStat { - // Instaneous value of this stat. - optional double current = 1; - - // Average over time, if this stat has an instaneous value. - optional double average1m = 3; - optional double average10m = 4; - - // Total value, if the stat accumulates over time. - optional double total = 2; - - // Rate over time, if this stat accumulates. - optional double rate1m = 5; - optional double rate10m = 6; -} - -message GetSystemStatsRequest { -} - -message GetSystemStatsResponse { - // CPU used by this instance, in mcycles. - optional SystemStat cpu = 1; - - // Physical memory (RAM) used by this instance, in megabytes. - optional SystemStat memory = 2; -} - -message StartBackgroundRequestRequest { -} - -message StartBackgroundRequestResponse { - // Every /_ah/background request will have an X-AppEngine-BackgroundRequest - // header, whose value will be equal to this parameter, the request_id. - optional string request_id = 1; -} diff --git a/vendor/google.golang.org/appengine/internal/taskqueue/taskqueue_service.proto b/vendor/google.golang.org/appengine/internal/taskqueue/taskqueue_service.proto deleted file mode 100644 index 419aaf570..000000000 --- a/vendor/google.golang.org/appengine/internal/taskqueue/taskqueue_service.proto +++ /dev/null @@ -1,342 +0,0 @@ -syntax = "proto2"; -option go_package = "taskqueue"; - -import "google.golang.org/appengine/internal/datastore/datastore_v3.proto"; - -package appengine; - -message TaskQueueServiceError { - enum ErrorCode { - OK = 0; - UNKNOWN_QUEUE = 1; - TRANSIENT_ERROR = 2; - INTERNAL_ERROR = 3; - TASK_TOO_LARGE = 4; - INVALID_TASK_NAME = 5; - INVALID_QUEUE_NAME = 6; - INVALID_URL = 7; - INVALID_QUEUE_RATE = 8; - PERMISSION_DENIED = 9; - TASK_ALREADY_EXISTS = 10; - TOMBSTONED_TASK = 11; - INVALID_ETA = 12; - INVALID_REQUEST = 13; - UNKNOWN_TASK = 14; - TOMBSTONED_QUEUE = 15; - DUPLICATE_TASK_NAME = 16; - SKIPPED = 17; - TOO_MANY_TASKS = 18; - INVALID_PAYLOAD = 19; - INVALID_RETRY_PARAMETERS = 20; - INVALID_QUEUE_MODE = 21; - ACL_LOOKUP_ERROR = 22; - TRANSACTIONAL_REQUEST_TOO_LARGE = 23; - INCORRECT_CREATOR_NAME = 24; - TASK_LEASE_EXPIRED = 25; - QUEUE_PAUSED = 26; - INVALID_TAG = 27; - - // Reserved range for the Datastore error codes. - // Original Datastore error code is shifted by DATASTORE_ERROR offset. - DATASTORE_ERROR = 10000; - } -} - -message TaskPayload { - extensions 10 to max; - option message_set_wire_format = true; -} - -message TaskQueueRetryParameters { - optional int32 retry_limit = 1; - optional int64 age_limit_sec = 2; - - optional double min_backoff_sec = 3 [default = 0.1]; - optional double max_backoff_sec = 4 [default = 3600]; - optional int32 max_doublings = 5 [default = 16]; -} - -message TaskQueueAcl { - repeated bytes user_email = 1; - repeated bytes writer_email = 2; -} - -message TaskQueueHttpHeader { - required bytes key = 1; - required bytes value = 2; -} - -message TaskQueueMode { - enum Mode { - PUSH = 0; - PULL = 1; - } -} - -message TaskQueueAddRequest { - required bytes queue_name = 1; - required bytes task_name = 2; - required int64 eta_usec = 3; - - enum RequestMethod { - GET = 1; - POST = 2; - HEAD = 3; - PUT = 4; - DELETE = 5; - } - optional RequestMethod method = 5 [default=POST]; - - optional bytes url = 4; - - repeated group Header = 6 { - required bytes key = 7; - required bytes value = 8; - } - - optional bytes body = 9 [ctype=CORD]; - optional Transaction transaction = 10; - optional bytes app_id = 11; - - optional group CronTimetable = 12 { - required bytes schedule = 13; - required bytes timezone = 14; - } - - optional bytes description = 15; - optional TaskPayload payload = 16; - optional TaskQueueRetryParameters retry_parameters = 17; - optional TaskQueueMode.Mode mode = 18 [default=PUSH]; - optional bytes tag = 19; -} - -message TaskQueueAddResponse { - optional bytes chosen_task_name = 1; -} - -message TaskQueueBulkAddRequest { - repeated TaskQueueAddRequest add_request = 1; -} - -message TaskQueueBulkAddResponse { - repeated group TaskResult = 1 { - required TaskQueueServiceError.ErrorCode result = 2; - optional bytes chosen_task_name = 3; - } -} - -message TaskQueueDeleteRequest { - required bytes queue_name = 1; - repeated bytes task_name = 2; - optional bytes app_id = 3; -} - -message TaskQueueDeleteResponse { - repeated TaskQueueServiceError.ErrorCode result = 3; -} - -message TaskQueueForceRunRequest { - optional bytes app_id = 1; - required bytes queue_name = 2; - required bytes task_name = 3; -} - -message TaskQueueForceRunResponse { - required TaskQueueServiceError.ErrorCode result = 3; -} - -message TaskQueueUpdateQueueRequest { - optional bytes app_id = 1; - required bytes queue_name = 2; - required double bucket_refill_per_second = 3; - required int32 bucket_capacity = 4; - optional string user_specified_rate = 5; - optional TaskQueueRetryParameters retry_parameters = 6; - optional int32 max_concurrent_requests = 7; - optional TaskQueueMode.Mode mode = 8 [default = PUSH]; - optional TaskQueueAcl acl = 9; - repeated TaskQueueHttpHeader header_override = 10; -} - -message TaskQueueUpdateQueueResponse { -} - -message TaskQueueFetchQueuesRequest { - optional bytes app_id = 1; - required int32 max_rows = 2; -} - -message TaskQueueFetchQueuesResponse { - repeated group Queue = 1 { - required bytes queue_name = 2; - required double bucket_refill_per_second = 3; - required double bucket_capacity = 4; - optional string user_specified_rate = 5; - required bool paused = 6 [default=false]; - optional TaskQueueRetryParameters retry_parameters = 7; - optional int32 max_concurrent_requests = 8; - optional TaskQueueMode.Mode mode = 9 [default = PUSH]; - optional TaskQueueAcl acl = 10; - repeated TaskQueueHttpHeader header_override = 11; - optional string creator_name = 12 [ctype=CORD, default="apphosting"]; - } -} - -message TaskQueueFetchQueueStatsRequest { - optional bytes app_id = 1; - repeated bytes queue_name = 2; - optional int32 max_num_tasks = 3 [default = 0]; -} - -message TaskQueueScannerQueueInfo { - required int64 executed_last_minute = 1; - required int64 executed_last_hour = 2; - required double sampling_duration_seconds = 3; - optional int32 requests_in_flight = 4; - optional double enforced_rate = 5; -} - -message TaskQueueFetchQueueStatsResponse { - repeated group QueueStats = 1 { - required int32 num_tasks = 2; - required int64 oldest_eta_usec = 3; - optional TaskQueueScannerQueueInfo scanner_info = 4; - } -} -message TaskQueuePauseQueueRequest { - required bytes app_id = 1; - required bytes queue_name = 2; - required bool pause = 3; -} - -message TaskQueuePauseQueueResponse { -} - -message TaskQueuePurgeQueueRequest { - optional bytes app_id = 1; - required bytes queue_name = 2; -} - -message TaskQueuePurgeQueueResponse { -} - -message TaskQueueDeleteQueueRequest { - required bytes app_id = 1; - required bytes queue_name = 2; -} - -message TaskQueueDeleteQueueResponse { -} - -message TaskQueueDeleteGroupRequest { - required bytes app_id = 1; -} - -message TaskQueueDeleteGroupResponse { -} - -message TaskQueueQueryTasksRequest { - optional bytes app_id = 1; - required bytes queue_name = 2; - - optional bytes start_task_name = 3; - optional int64 start_eta_usec = 4; - optional bytes start_tag = 6; - optional int32 max_rows = 5 [default = 1]; -} - -message TaskQueueQueryTasksResponse { - repeated group Task = 1 { - required bytes task_name = 2; - required int64 eta_usec = 3; - optional bytes url = 4; - - enum RequestMethod { - GET = 1; - POST = 2; - HEAD = 3; - PUT = 4; - DELETE = 5; - } - optional RequestMethod method = 5; - - optional int32 retry_count = 6 [default=0]; - - repeated group Header = 7 { - required bytes key = 8; - required bytes value = 9; - } - - optional int32 body_size = 10; - optional bytes body = 11 [ctype=CORD]; - required int64 creation_time_usec = 12; - - optional group CronTimetable = 13 { - required bytes schedule = 14; - required bytes timezone = 15; - } - - optional group RunLog = 16 { - required int64 dispatched_usec = 17; - required int64 lag_usec = 18; - required int64 elapsed_usec = 19; - optional int64 response_code = 20; - optional string retry_reason = 27; - } - - optional bytes description = 21; - optional TaskPayload payload = 22; - optional TaskQueueRetryParameters retry_parameters = 23; - optional int64 first_try_usec = 24; - optional bytes tag = 25; - optional int32 execution_count = 26 [default=0]; - } -} - -message TaskQueueFetchTaskRequest { - optional bytes app_id = 1; - required bytes queue_name = 2; - required bytes task_name = 3; -} - -message TaskQueueFetchTaskResponse { - required TaskQueueQueryTasksResponse task = 1; -} - -message TaskQueueUpdateStorageLimitRequest { - required bytes app_id = 1; - required int64 limit = 2; -} - -message TaskQueueUpdateStorageLimitResponse { - required int64 new_limit = 1; -} - -message TaskQueueQueryAndOwnTasksRequest { - required bytes queue_name = 1; - required double lease_seconds = 2; - required int64 max_tasks = 3; - optional bool group_by_tag = 4 [default=false]; - optional bytes tag = 5; -} - -message TaskQueueQueryAndOwnTasksResponse { - repeated group Task = 1 { - required bytes task_name = 2; - required int64 eta_usec = 3; - optional int32 retry_count = 4 [default=0]; - optional bytes body = 5 [ctype=CORD]; - optional bytes tag = 6; - } -} - -message TaskQueueModifyTaskLeaseRequest { - required bytes queue_name = 1; - required bytes task_name = 2; - required int64 eta_usec = 3; - required double lease_seconds = 4; -} - -message TaskQueueModifyTaskLeaseResponse { - required int64 updated_eta_usec = 1; -} diff --git a/vendor/google.golang.org/appengine/internal/user/user_service.proto b/vendor/google.golang.org/appengine/internal/user/user_service.proto deleted file mode 100644 index f3e969346..000000000 --- a/vendor/google.golang.org/appengine/internal/user/user_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -syntax = "proto2"; -option go_package = "user"; - -package appengine; - -message UserServiceError { - enum ErrorCode { - OK = 0; - REDIRECT_URL_TOO_LONG = 1; - NOT_ALLOWED = 2; - OAUTH_INVALID_TOKEN = 3; - OAUTH_INVALID_REQUEST = 4; - OAUTH_ERROR = 5; - } -} - -message CreateLoginURLRequest { - required string destination_url = 1; - optional string auth_domain = 2; - optional string federated_identity = 3 [default = ""]; -} - -message CreateLoginURLResponse { - required string login_url = 1; -} - -message CreateLogoutURLRequest { - required string destination_url = 1; - optional string auth_domain = 2; -} - -message CreateLogoutURLResponse { - required string logout_url = 1; -} - -message GetOAuthUserRequest { - optional string scope = 1; - - repeated string scopes = 2; -} - -message GetOAuthUserResponse { - required string email = 1; - required string user_id = 2; - required string auth_domain = 3; - optional string user_organization = 4 [default = ""]; - optional bool is_admin = 5 [default = false]; - optional string client_id = 6 [default = ""]; - - repeated string scopes = 7; -} - -message CheckOAuthSignatureRequest { -} - -message CheckOAuthSignatureResponse { - required string oauth_consumer_key = 1; -} diff --git a/vendor/google.golang.org/appengine/internal/xmpp/xmpp_service.proto b/vendor/google.golang.org/appengine/internal/xmpp/xmpp_service.proto deleted file mode 100644 index 472d52ebf..000000000 --- a/vendor/google.golang.org/appengine/internal/xmpp/xmpp_service.proto +++ /dev/null @@ -1,83 +0,0 @@ -syntax = "proto2"; -option go_package = "xmpp"; - -package appengine; - -message XmppServiceError { - enum ErrorCode { - UNSPECIFIED_ERROR = 1; - INVALID_JID = 2; - NO_BODY = 3; - INVALID_XML = 4; - INVALID_TYPE = 5; - INVALID_SHOW = 6; - EXCEEDED_MAX_SIZE = 7; - APPID_ALIAS_REQUIRED = 8; - NONDEFAULT_MODULE = 9; - } -} - -message PresenceRequest { - required string jid = 1; - optional string from_jid = 2; -} - -message PresenceResponse { - enum SHOW { - NORMAL = 0; - AWAY = 1; - DO_NOT_DISTURB = 2; - CHAT = 3; - EXTENDED_AWAY = 4; - } - - required bool is_available = 1; - optional SHOW presence = 2; - optional bool valid = 3; -} - -message BulkPresenceRequest { - repeated string jid = 1; - optional string from_jid = 2; -} - -message BulkPresenceResponse { - repeated PresenceResponse presence_response = 1; -} - -message XmppMessageRequest { - repeated string jid = 1; - required string body = 2; - optional bool raw_xml = 3 [ default = false ]; - optional string type = 4 [ default = "chat" ]; - optional string from_jid = 5; -} - -message XmppMessageResponse { - enum XmppMessageStatus { - NO_ERROR = 0; - INVALID_JID = 1; - OTHER_ERROR = 2; - } - - repeated XmppMessageStatus status = 1; -} - -message XmppSendPresenceRequest { - required string jid = 1; - optional string type = 2; - optional string show = 3; - optional string status = 4; - optional string from_jid = 5; -} - -message XmppSendPresenceResponse { -} - -message XmppInviteRequest { - required string jid = 1; - optional string from_jid = 2; -} - -message XmppInviteResponse { -} diff --git a/vendor/google.golang.org/grpc/profiling/proto/service.proto b/vendor/google.golang.org/grpc/profiling/proto/service.proto deleted file mode 100644 index 3f5f8071b..000000000 --- a/vendor/google.golang.org/grpc/profiling/proto/service.proto +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright 2019 gRPC authors. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package grpc.go.profiling.v1alpha; - -// This package defines the proto messages and RPC services exposed by gRPC for -// profiling management. A reference client implementation to interact with -// this service is provided as a command-line application. This service can be -// used to toggle profiling on and off and retrieve stats from a gRPC -// application. -option go_package = "google.golang.org/grpc/profiling/proto"; - -// EnableRequest defines the fields in a /Profiling/Enable method request to -// toggle profiling on and off within a gRPC program. -message EnableRequest { - // Setting this to true will enable profiling. Setting this to false will - // disable profiling. - bool enabled = 1; -} - -// EnableResponse defines the fields in a /Profiling/Enable method response. -message EnableResponse { -} - -// GetStreamStatsRequest defines the fields in a /Profiling/GetStreamStats -// method request to retrieve stream-level stats in a gRPC client/server. -message GetStreamStatsRequest { -} - -// GetStreamStatsResponse defines the fields in a /Profiling/GetStreamStats -// method response. -message GetStreamStatsResponse { - repeated Stat stream_stats = 1; -} - -// A Timer measures the start and end of execution of a component within -// gRPC that's being profiled. It includes a tag and some additional metadata -// to identify itself. -message Timer { - // tags is a comma-separated list of strings used to tag a timer. - string tags = 1; - - // begin_sec and begin_nsec are the start epoch second and nanosecond, - // respectively, of the component profiled by this timer in UTC. begin_nsec - // must be a non-negative integer. - int64 begin_sec = 2; - int32 begin_nsec = 3; - - // end_sec and end_nsec are the end epoch second and nanosecond, - // respectively, of the component profiled by this timer in UTC. end_nsec - // must be a non-negative integer. - int64 end_sec = 4; - int32 end_nsec = 5; - - // go_id is the goroutine ID of the component being profiled. - int64 go_id = 6; -} - -// A Stat is a collection of Timers along with some additional -// metadata to tag and identify itself. -message Stat { - // tags is a comma-separated list of strings used to categorize a stat. - string tags = 1; - - // timers is an array of Timers, each representing a different - // (but possibly overlapping) component within this stat. - repeated Timer timers = 2; - - // metadata is an array of bytes used to uniquely identify a stat with an - // undefined encoding format. For example, the Stats returned by the - // /Profiling/GetStreamStats service use the metadata field to encode the - // connection ID and the stream ID of each query. - bytes metadata = 3; -} - -// The Profiling service exposes functions to remotely manage the gRPC -// profiling behaviour in a program. -service Profiling { - // Enable allows users to toggle profiling on and off remotely. - rpc Enable (EnableRequest) returns (EnableResponse); - - // GetStreamStats is used to retrieve an array of stream-level stats from a - // gRPC client/server. - rpc GetStreamStats (GetStreamStatsRequest) returns (GetStreamStatsResponse); -} diff --git a/vendor/google.golang.org/grpc/reflection/grpc_testing/proto2.proto b/vendor/google.golang.org/grpc/reflection/grpc_testing/proto2.proto deleted file mode 100644 index c90d8098f..000000000 --- a/vendor/google.golang.org/grpc/reflection/grpc_testing/proto2.proto +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2017 gRPC authors. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto2"; - -option go_package = "google.golang.org/grpc/reflection/grpc_testing"; - -package grpc.testing; - -message ToBeExtended { - required int32 foo = 1; - extensions 10 to 30; -} diff --git a/vendor/google.golang.org/grpc/reflection/grpc_testing/proto2_ext.proto b/vendor/google.golang.org/grpc/reflection/grpc_testing/proto2_ext.proto deleted file mode 100644 index 4ba2dc6bc..000000000 --- a/vendor/google.golang.org/grpc/reflection/grpc_testing/proto2_ext.proto +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2017 gRPC authors. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto2"; - -option go_package = "google.golang.org/grpc/reflection/grpc_testing"; - -package grpc.testing; - -import "reflection/grpc_testing/proto2.proto"; -import "reflection/grpc_testing/test.proto"; - -extend ToBeExtended { - optional int32 foo = 13; - optional Extension bar = 17; - optional SearchRequest baz = 19; -} - -message Extension { - optional int32 whatzit = 1; -} diff --git a/vendor/google.golang.org/grpc/reflection/grpc_testing/proto2_ext2.proto b/vendor/google.golang.org/grpc/reflection/grpc_testing/proto2_ext2.proto deleted file mode 100644 index 931154667..000000000 --- a/vendor/google.golang.org/grpc/reflection/grpc_testing/proto2_ext2.proto +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2017 gRPC authors. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto2"; - -option go_package = "google.golang.org/grpc/reflection/grpc_testing"; - -package grpc.testing; - -import "reflection/grpc_testing/proto2.proto"; - -extend ToBeExtended { - optional string frob = 23; - optional AnotherExtension nitz = 29; -} - -message AnotherExtension { - optional int32 whatchamacallit = 1; -} diff --git a/vendor/google.golang.org/grpc/reflection/grpc_testing/test.proto b/vendor/google.golang.org/grpc/reflection/grpc_testing/test.proto deleted file mode 100644 index c4b18de64..000000000 --- a/vendor/google.golang.org/grpc/reflection/grpc_testing/test.proto +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2017 gRPC authors. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -option go_package = "google.golang.org/grpc/reflection/grpc_testing"; - -package grpc.testing; - -message SearchResponse { - message Result { - string url = 1; - string title = 2; - repeated string snippets = 3; - } - repeated Result results = 1; -} - -message SearchRequest { - string query = 1; -} - -service SearchService { - rpc Search(SearchRequest) returns (SearchResponse); - rpc StreamingSearch(stream SearchRequest) returns (stream SearchResponse); -} diff --git a/vendor/google.golang.org/grpc/reflection/grpc_testing_not_regenerate/dynamic.proto b/vendor/google.golang.org/grpc/reflection/grpc_testing_not_regenerate/dynamic.proto deleted file mode 100644 index 5eeba0892..000000000 --- a/vendor/google.golang.org/grpc/reflection/grpc_testing_not_regenerate/dynamic.proto +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -syntax = "proto3"; - -option go_package = "google.golang.org/grpc/reflection/grpc_testing_not_regenerate"; - -package grpc.testing; - -message DynamicRes {} - -message DynamicReq {} - -// DynamicService is used to test reflection on dynamically constructed protocol -// buffer messages. -service DynamicService { - // DynamicMessage1 is a test RPC for dynamically constructed protobufs. - rpc DynamicMessage1(DynamicReq) returns (DynamicRes); -} \ No newline at end of file diff --git a/vendor/google.golang.org/grpc/reflection/grpc_testing_not_regenerate/testv3.proto b/vendor/google.golang.org/grpc/reflection/grpc_testing_not_regenerate/testv3.proto deleted file mode 100644 index 44f93ba8b..000000000 --- a/vendor/google.golang.org/grpc/reflection/grpc_testing_not_regenerate/testv3.proto +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -syntax = "proto3"; - -option go_package = "google.golang.org/grpc/reflection/grpc_testing_not_regenerate"; - -package grpc.testingv3; - -message SearchResponseV3 { - message Result { - string url = 1; - string title = 2; - repeated string snippets = 3; - message Value { - oneof val { - string str = 1; - int64 int = 2; - double real = 3; - } - } - map metadata = 4; - } - enum State { - UNKNOWN = 0; - FRESH = 1; - STALE = 2; - } - repeated Result results = 1; - State state = 2; -} - -message SearchRequestV3 { - string query = 1; -} - -// SearchServiceV3 is used to test grpc server reflection. -service SearchServiceV3 { - // Search is a unary RPC. - rpc Search(SearchRequestV3) returns (SearchResponseV3); - - // StreamingSearch is a streaming RPC. - rpc StreamingSearch(stream SearchRequestV3) returns (stream SearchResponseV3); -} diff --git a/vendor/google.golang.org/grpc/stress/grpc_testing/metrics.proto b/vendor/google.golang.org/grpc/stress/grpc_testing/metrics.proto deleted file mode 100644 index 0197d4d70..000000000 --- a/vendor/google.golang.org/grpc/stress/grpc_testing/metrics.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2015-2016 gRPC authors. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Contains the definitions for a metrics service and the type of metrics -// exposed by the service. -// -// Currently, 'Gauge' (i.e a metric that represents the measured value of -// something at an instant of time) is the only metric type supported by the -// service. -syntax = "proto3"; - -option go_package = "google.golang.org/grpc/stress/grpc_testing"; - -package grpc.testing; - -// Response message containing the gauge name and value -message GaugeResponse { - string name = 1; - oneof value { - int64 long_value = 2; - double double_value = 3; - string string_value = 4; - } -} - -// Request message containing the gauge name -message GaugeRequest { - string name = 1; -} - -message EmptyMessage {} - -service MetricsService { - // Returns the values of all the gauges that are currently being maintained by - // the service - rpc GetAllGauges(EmptyMessage) returns (stream GaugeResponse); - - // Returns the value of one gauge - rpc GetGauge(GaugeRequest) returns (GaugeResponse); -} diff --git a/vendor/google.golang.org/grpc/test/codec_perf/perf.proto b/vendor/google.golang.org/grpc/test/codec_perf/perf.proto deleted file mode 100644 index 7a678d1ca..000000000 --- a/vendor/google.golang.org/grpc/test/codec_perf/perf.proto +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright 2017 gRPC authors. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Messages used for performance tests that may not reference grpc directly for -// reasons of import cycles. -syntax = "proto3"; - -option go_package = "google.golang.org/grpc/test/codec_perf"; - -package codec.perf; - -// Buffer is a message that contains a body of bytes that is used to exercise -// encoding and decoding overheads. -message Buffer { - bytes body = 1; -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/annotations/annotations.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/annotations/annotations.proto deleted file mode 100644 index d022ab378..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/annotations/annotations.proto +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto2"; - -package goproto.protoc.annotations; - -import weak "cmd/protoc-gen-go/testdata/imports/fmt/m.proto"; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/annotations"; - -message AnnotationsTestMessage { - optional string AnnotationsTestField = 1; - - optional fmt.M m = 2 [weak = true]; -} - -enum AnnotationsTestEnum { - ANNOTATIONS_TEST_ENUM_VALUE = 0; -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/comments/comments.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/comments/comments.proto deleted file mode 100644 index 02998ce31..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/comments/comments.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto2"; - -// COMMENT: package goproto.protoc.comments; -package goproto.protoc.comments; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/comments"; - -// COMMENT: Enum1.Leading -enum Enum1 { - // COMMENT: FOO.Leading - FOO = 0; // COMMENT: FOO.InlineTrailing - // COMMENT: BAR.Leading - BAR = 1; - // COMMENT: BAR.Trailing1 - // COMMENT: BAR.Trailing2 - - // COMMENT: Enum1.EndBody -} - -// COMMENT: Message1.Leading -message Message1 { - // COMMENT: Message1A.Leading - message Message1A { - } // COMMENT: Message1A.Trailing - - // COMMENT: Message1B - message Message1B { - } - - // COMMENT: Field1A.Leading - optional string Field1A = 1; // COMMENT: Field1A.Trailing - - // COMMENT: Oneof1A.Leading - oneof Oneof1a { - // COMMENT: Oneof1AField1.Leading - string Oneof1AField1 = 2; // COMMENT: Oneof1AField1.Trailing - } // COMMENT: Oneof1A.Trailing - - extensions 100 to max; -} // COMMENT: Message1.Trailing - -// COMMENT: Extend -extend Message1 { - // COMMENT: Extension.Leading - optional Message1 extension = 100; // COMMENT: Extension.Trailing -} - -// COMMENT: Message2 -message Message2 { - // COMMENT: Message2A - message Message2A { - } - - // COMMENT: Message2B - message Message2B { - } -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/comments/deprecated.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/comments/deprecated.proto deleted file mode 100644 index daac493b1..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/comments/deprecated.proto +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto3"; - -package goproto.protoc.comments; - -option deprecated = true; -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/comments"; - -message DeprecatedMessage { - option deprecated = true; - string deprecated_field = 1 [deprecated=true]; -} - -enum DeprecatedEnum { - option deprecated = true; - DEPRECATED = 0 [deprecated=true]; -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/base/base.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/base/base.proto deleted file mode 100644 index 32d242edf..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/base/base.proto +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto2"; - -package goproto.protoc.extension.base; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/base"; - -message BaseMessage { - optional string field = 1; - extensions 4 to 9; - extensions 16 to max; -} - -message MessageSetWireFormatMessage { - option message_set_wire_format = true; - extensions 100 to max; -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/ext/ext.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/ext/ext.proto deleted file mode 100644 index 5156c1c66..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/ext/ext.proto +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto2"; - -import "cmd/protoc-gen-go/testdata/extensions/base/base.proto"; -import "cmd/protoc-gen-go/testdata/extensions/extra/extra.proto"; - -package goproto.protoc.extension.ext; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/ext"; - -message Message { - optional bytes data = 1; - - message M {} -} - -enum Enum { - ZERO = 0; -} - -// Extend with various types. -extend goproto.protoc.extension.base.BaseMessage { - optional bool extension_bool = 101; - optional Enum extension_enum = 102; - optional int32 extension_int32 = 103; - optional sint32 extension_sint32 = 104; - optional uint32 extension_uint32 = 105; - optional int64 extension_int64 = 106; - optional sint64 extension_sint64 = 107; - optional uint64 extension_uint64 = 108; - optional sfixed32 extension_sfixed32 = 109; - optional fixed32 extension_fixed32 = 110; - optional float extension_float = 111; - optional sfixed64 extension_sfixed64 = 112; - optional fixed64 extension_fixed64 = 113; - optional double extension_double = 114; - optional string extension_string = 115; - optional bytes extension_bytes = 116; - optional Message extension_Message = 117; - optional Message.M extension_MessageM = 118; - optional group ExtensionGroup = 119 { - optional string extension_group = 120; - } -} - -// Extend with a foreign message. -extend goproto.protoc.extension.base.BaseMessage { - optional goproto.protoc.extension.extra.ExtraMessage extra_message = 9; -} - -// Extend in the scope of another type. -message ExtendingMessage { - extend goproto.protoc.extension.base.BaseMessage { - optional string extending_message_string = 200; - optional ExtendingMessageSubmessage extending_message_submessage = 201; - } - message ExtendingMessageSubmessage {} -} - -// Extend with repeated fields. -extend goproto.protoc.extension.base.BaseMessage { - repeated bool repeated_x_bool = 301; - repeated Enum repeated_x_enum = 302; - repeated int32 repeated_x_int32 = 303; - repeated sint32 repeated_x_sint32 = 304; - repeated uint32 repeated_x_uint32 = 305; - repeated int64 repeated_x_int64 = 306; - repeated sint64 repeated_x_sint64 = 307; - repeated uint64 repeated_x_uint64 = 308; - repeated sfixed32 repeated_x_sfixed32 = 309; - repeated fixed32 repeated_x_fixed32 = 310; - repeated float repeated_x_float = 311; - repeated sfixed64 repeated_x_sfixed64 = 312; - repeated fixed64 repeated_x_fixed64 = 313; - repeated double repeated_x_double = 314; - repeated string repeated_x_string = 315; - repeated bytes repeated_x_bytes = 316; - repeated Message repeated_x_Message = 317; - repeated group RepeatedGroup = 318 { - repeated string repeated_x_group = 319; - } -} - -// An extension of an extension. -message Extendable { - extensions 1 to max; -} -extend goproto.protoc.extension.base.BaseMessage { - optional Extendable extendable_field = 400; -} -extend Extendable { - optional string extendable_string_field = 1; -} - -// Message set wire format. -message MessageSetWireFormatExtension { - extend goproto.protoc.extension.base.MessageSetWireFormatMessage { - optional MessageSetWireFormatExtension message_set_extension = 100; - } -} - -// Message set extension, not nested in a message. -extend goproto.protoc.extension.base.MessageSetWireFormatMessage { - optional MessageSetWireFormatExtension message_set_extension = 101; -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/extra/extra.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/extra/extra.proto deleted file mode 100644 index eeea42384..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/extra/extra.proto +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto2"; - -package goproto.protoc.extension.extra; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/extra"; - -message ExtraMessage { - optional bytes data = 1; -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/proto3/ext3.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/proto3/ext3.proto deleted file mode 100644 index 3d48c1fa6..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/proto3/ext3.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto3"; - -import "google/protobuf/descriptor.proto"; - -package goproto.protoc.extension.proto3; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/proto3"; - -message Message {} -enum Enum { ZERO = 0; } - -// The only types proto3 is allowed to extend are descriptor options. -extend google.protobuf.MessageOptions { - bool extension_bool = 1001; - Enum extension_enum = 1002; - int32 extension_int32 = 1003; - sint32 extension_sint32 = 1004; - uint32 extension_uint32 = 1005; - int64 extension_int64 = 1006; - sint64 extension_sint64 = 1007; - uint64 extension_uint64 = 1008; - sfixed32 extension_sfixed32 = 1009; - fixed32 extension_fixed32 = 1010; - float extension_float = 1011; - sfixed64 extension_sfixed64 = 1012; - fixed64 extension_fixed64 = 1013; - double extension_double = 1014; - string extension_string = 1015; - bytes extension_bytes = 1016; - Message extension_Message = 1017; - - repeated bool repeated_extension_bool = 2001; - repeated Enum repeated_extension_enum = 2002; - repeated int32 repeated_extension_int32 = 2003; - repeated sint32 repeated_extension_sint32 = 2004; - repeated uint32 repeated_extension_uint32 = 2005; - repeated int64 repeated_extension_int64 = 2006; - repeated sint64 repeated_extension_sint64 = 2007; - repeated uint64 repeated_extension_uint64 = 2008; - repeated sfixed32 repeated_extension_sfixed32 = 2009; - repeated fixed32 repeated_extension_fixed32 = 2010; - repeated float repeated_extension_float = 2011; - repeated sfixed64 repeated_extension_sfixed64 = 2012; - repeated fixed64 repeated_extension_fixed64 = 2013; - repeated double repeated_extension_double = 2014; - repeated string repeated_extension_string = 2015; - repeated bytes repeated_extension_bytes = 2016; - repeated Message repeated_extension_Message = 2017; -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/fieldnames/fieldnames.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/fieldnames/fieldnames.proto deleted file mode 100644 index 00f6752ed..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/fieldnames/fieldnames.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto2"; - -package goproto.protoc.fieldnames; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/fieldnames"; - -// Assorted edge cases in field name conflict resolution. -// -// Not all (or possibly any) of these behave in an easily-understood fashion. -// This exists to demonstrate the current behavior and catch unintended -// changes in it. -message Message { - // Various CamelCase conversions. - optional string field_one = 1; - optional string FieldTwo = 2; - optional string fieldThree = 3; - optional string field__four = 4; - - // Field names that conflict with standard methods on the message struct. - optional string descriptor = 10; - optional string marshal = 11; - optional string unmarshal = 12; - optional string proto_message = 13; - - // Field names that conflict with each other after CamelCasing. - optional string CamelCase = 20; - optional string CamelCase_ = 21; - optional string camel_case = 22; // conflicts with 20, 21 - optional string CamelCase__ = 23; // conflicts with 21, 21, renamed 22 - - // Field with a getter that conflicts with another field. - optional string get_name = 30; - optional string name = 31; - - // Oneof that conflicts with its first field: The oneof is renamed. - oneof oneof_conflict_a { - string OneofConflictA = 40; - } - - // Oneof that conflicts with its second field: The field is renamed. - oneof oneof_conflict_b { - string oneof_no_conflict = 50; - string OneofConflictB = 51; - } - - // Oneof with a field name that conflicts with a nested message. - oneof oneof_conflict_c { - string oneof_message_conflict = 60; - } - message OneofMessageConflict {} -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/a.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/a.proto deleted file mode 100644 index 621012522..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/a.proto +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto2"; - -package goproto.protoc.import_public; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public"; - -import public "cmd/protoc-gen-go/testdata/import_public/sub/a.proto"; // Different Go package. -import public "cmd/protoc-gen-go/testdata/import_public/b.proto"; // Same Go package. - -message Public { - optional goproto.protoc.import_public.sub.M m = 1; - optional goproto.protoc.import_public.sub.E e = 2; - optional Local local = 3; -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/b.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/b.proto deleted file mode 100644 index f710dcecc..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/b.proto +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto2"; - -package goproto.protoc.import_public; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public"; - -import "cmd/protoc-gen-go/testdata/import_public/sub/a.proto"; - -message Local { - optional goproto.protoc.import_public.sub.M m = 1; - optional goproto.protoc.import_public.sub.E e = 2; -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/c.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/c.proto deleted file mode 100644 index 86b02a389..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/c.proto +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto2"; - -package goproto.protoc.import_public; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public"; - -import "cmd/protoc-gen-go/testdata/import_public/a.proto"; - -message UsingPublicImport { - // Local is declared in b.proto, which is a public import of a.proto. - optional Local local = 1; - // Sub2Message is declared in sub2/a.proto, which is a public import of - // sub/a.proto, which is a public import of a.proto. - optional sub2.Sub2Message sub2 = 2; // declared in sub2/a.proto -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub/a.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub/a.proto deleted file mode 100644 index 9fa4cb853..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub/a.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto2"; - -package goproto.protoc.import_public.sub; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub"; - -import "cmd/protoc-gen-go/testdata/import_public/sub/b.proto"; -import public "cmd/protoc-gen-go/testdata/import_public/sub2/a.proto"; - -message M { - // Field using a type in the same Go package, but a different source file. - optional M2 m2 = 1; - optional string s = 4 [default="default"]; - optional bytes b = 5 [default="default"]; - optional double f = 6 [default=nan]; - - oneof oneof_field { - int32 oneof_int32 = 2; - int64 oneof_int64 = 3; - } - - message Submessage { - enum Submessage_Subenum { - M_SUBMESSAGE_ZERO = 0; - } - - oneof submessage_oneof_field { - int32 submessage_oneof_int32 = 1; - int64 submessage_oneof_int64 = 2; - } - } - - enum Subenum { - M_ZERO = 0; - } - - extensions 100 to max; -} - -extend M { - optional string extension_field = 100; -} - -enum E { - ZERO = 0; -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub/b.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub/b.proto deleted file mode 100644 index 2f1bb5d62..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub/b.proto +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto2"; - -package goproto.protoc.import_public.sub; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub"; - -message M2 { -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub2/a.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub2/a.proto deleted file mode 100644 index ec8aa9099..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub2/a.proto +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto2"; - -package goproto.protoc.import_public.sub2; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub2"; - -message Sub2Message {} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/fmt/m.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/fmt/m.proto deleted file mode 100644 index 580c2b5d9..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/fmt/m.proto +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto3"; -package fmt; -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/fmt"; -message M {} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_1/m1.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_1/m1.proto deleted file mode 100644 index 0c2f3e124..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_1/m1.proto +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto3"; -package test.a; -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_1"; - -message M1 {} - -message M1_1 { - M1 m1 = 1; -} - -enum E1 { - E1_ZERO = 0; -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_1/m2.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_1/m2.proto deleted file mode 100644 index 31aa90961..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_1/m2.proto +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto3"; -package test.a; -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_1"; -message M2 {} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_2/m3.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_2/m3.proto deleted file mode 100644 index c9b3f3466..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_2/m3.proto +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto3"; -package test.a; -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_2"; -message M3 {} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_2/m4.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_2/m4.proto deleted file mode 100644 index 248e07329..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_2/m4.proto +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto3"; -package test.a; -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_2"; -message M4 {} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_b_1/m1.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_b_1/m1.proto deleted file mode 100644 index 77e0fc6e6..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_b_1/m1.proto +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto3"; -package test.b.part1; -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_b_1;beta"; -message M1 {} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_b_1/m2.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_b_1/m2.proto deleted file mode 100644 index ed68630c6..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_b_1/m2.proto +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto3"; -package test.b.part2; -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_b_1;beta"; -message M2 {} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_import_a1m1.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_import_a1m1.proto deleted file mode 100644 index 670e62e2e..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_import_a1m1.proto +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto3"; - -package test; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports"; - -import "cmd/protoc-gen-go/testdata/imports/test_a_1/m1.proto"; - -message A1M1 { - test.a.M1 f = 1; -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_import_a1m2.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_import_a1m2.proto deleted file mode 100644 index 8cef2809e..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_import_a1m2.proto +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto3"; - -package test; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports"; - -import "cmd/protoc-gen-go/testdata/imports/test_a_1/m2.proto"; - -message A1M2 { - test.a.M2 f = 1; -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_import_all.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_import_all.proto deleted file mode 100644 index 3909f2de5..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_import_all.proto +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto3"; - -package test; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports"; - -// test_a_1/m*.proto are in the same Go package and proto package. -// test_a_*/*.proto are in different Go packages, but the same proto package. -// test_b_1/*.proto are in the same Go package, but different proto packages. -// fmt/m.proto has a package name which conflicts with "fmt". -import "cmd/protoc-gen-go/testdata/imports/test_a_1/m1.proto"; -import "cmd/protoc-gen-go/testdata/imports/test_a_1/m2.proto"; -import "cmd/protoc-gen-go/testdata/imports/test_a_2/m3.proto"; // unused in this file -import "cmd/protoc-gen-go/testdata/imports/test_a_2/m4.proto"; // unused in this file -import "cmd/protoc-gen-go/testdata/imports/test_b_1/m1.proto"; -import "cmd/protoc-gen-go/testdata/imports/test_b_1/m2.proto"; -import "cmd/protoc-gen-go/testdata/imports/fmt/m.proto"; - -message All { - test.a.M1 am1 = 1; - test.a.M2 am2 = 2; - test.b.part1.M1 bm1 = 5; - test.b.part2.M2 bm2 = 6; - fmt.M fmt = 7; -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/issue780_oneof_conflict/test.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/issue780_oneof_conflict/test.proto deleted file mode 100644 index d6d269da2..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/issue780_oneof_conflict/test.proto +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2020 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto2"; - -package oneoftest; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/issue780_oneof_conflict"; - -message Foo { - oneof bar { // must be generated as Bar field in Foo struct - string get_bar = 1; - } -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/nopackage/nopackage.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/nopackage/nopackage.proto deleted file mode 100644 index 892bb0662..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/nopackage/nopackage.proto +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto2"; - -// File contains no 'package' statement. - -enum Enum { - ZERO = 0; -} - -message Message { - optional string string_field = 1; - optional Enum enum_field = 2 [default=ZERO]; -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2/enum.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2/enum.proto deleted file mode 100644 index c30c8ecfa..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2/enum.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto2"; - -package goproto.protoc.proto2; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2"; - -// EnumType1 comment. -enum EnumType1 { - // EnumType1_ONE comment. - ONE = 1; - // EnumType1_TWO comment. - TWO = 2; -} - -enum EnumType2 { - option allow_alias = true; - duplicate1 = 1; - duplicate2 = 1; - - reserved "RESERVED1"; - reserved "RESERVED2"; - reserved 2, 3; -} - -message EnumContainerMessage1 { - optional EnumType2 default_duplicate1 = 1 [default=duplicate1]; - optional EnumType2 default_duplicate2 = 2 [default=duplicate2]; - - // NestedEnumType1A comment. - enum NestedEnumType1A { - // NestedEnumType1A_VALUE comment. - NESTED_1A_VALUE = 0; - } - - enum NestedEnumType1B { - NESTED_1B_VALUE = 0; - } - - message EnumContainerMessage2 { - // NestedEnumType2A comment. - enum NestedEnumType2A { - // NestedEnumType2A_VALUE comment. - NESTED_2A_VALUE = 0; - } - - enum NestedEnumType2B { - NESTED_2B_VALUE = 0; - } - } -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2/fields.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2/fields.proto deleted file mode 100644 index f3c4c915e..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2/fields.proto +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto2"; - -package goproto.protoc.proto2; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2"; - -message FieldTestMessage { - optional bool optional_bool = 1; - optional Enum optional_enum = 2; - optional int32 optional_int32 = 3; - optional sint32 optional_sint32 = 4; - optional uint32 optional_uint32 = 5; - optional int64 optional_int64 = 6; - optional sint64 optional_sint64 = 7; - optional uint64 optional_uint64 = 8; - optional sfixed32 optional_sfixed32 = 9; - optional fixed32 optional_fixed32 = 10; - optional float optional_float = 11; - optional sfixed64 optional_sfixed64 = 12; - optional fixed64 optional_fixed64 = 13; - optional double optional_double = 14; - optional string optional_string = 15; - optional bytes optional_bytes = 16; - optional Message optional_Message = 17; - optional group OptionalGroup = 18 { - optional string optional_group = 19; - } - - required bool required_bool = 101; - required Enum required_enum = 102; - required int32 required_int32 = 103; - required sint32 required_sint32 = 104; - required uint32 required_uint32 = 105; - required int64 required_int64 = 106; - required sint64 required_sint64 = 107; - required uint64 required_uint64 = 108; - required sfixed32 required_sfixed32 = 109; - required fixed32 required_fixed32 = 110; - required float required_float = 111; - required sfixed64 required_sfixed64 = 112; - required fixed64 required_fixed64 = 113; - required double required_double = 114; - required string required_string = 115; - required bytes required_bytes = 116; - required Message required_Message = 117; - required group RequiredGroup = 118 { - required string required_group = 119; - } - - repeated bool repeated_bool = 201; - repeated Enum repeated_enum = 202; - repeated int32 repeated_int32 = 203; - repeated sint32 repeated_sint32 = 204; - repeated uint32 repeated_uint32 = 205; - repeated int64 repeated_int64 = 206; - repeated sint64 repeated_sint64 = 207; - repeated uint64 repeated_uint64 = 208; - repeated sfixed32 repeated_sfixed32 = 209; - repeated fixed32 repeated_fixed32 = 210; - repeated float repeated_float = 211; - repeated sfixed64 repeated_sfixed64 = 212; - repeated fixed64 repeated_fixed64 = 213; - repeated double repeated_double = 214; - repeated string repeated_string = 215; - repeated bytes repeated_bytes = 216; - repeated Message repeated_Message = 217; - repeated group RepeatedGroup = 218 { - repeated string repeated_group = 219; - } - - optional bool default_bool = 301 [default=true]; - optional Enum default_enum = 302 [default=ONE]; - optional int32 default_int32 = 303 [default=1]; - optional sint32 default_sint32 = 304 [default=1]; - optional uint32 default_uint32 = 305 [default=1]; - optional int64 default_int64 = 306 [default=1]; - optional sint64 default_sint64 = 307 [default=1]; - optional uint64 default_uint64 = 308 [default=1]; - optional sfixed32 default_sfixed32 = 309 [default=1]; - optional fixed32 default_fixed32 = 310 [default=1]; - optional float default_float = 311 [default=3.14]; - optional sfixed64 default_sfixed64 = 312 [default=1]; - optional fixed64 default_fixed64 = 313 [default=1]; - optional double default_double = 314 [default=3.1415]; - optional string default_string = 315 [default="hello,\"world!\"\n"]; - optional bytes default_bytes = 316 [default="hello,\xde\xad\xbe\xef"]; - - optional string default_zero_string = 350 [default=""]; - optional bytes default_zero_bytes = 351 [default=""]; - - optional float default_float_neginf = 400 [default=-inf]; - optional float default_float_posinf = 401 [default=inf]; - optional float default_float_nan = 402 [default=nan]; - optional double default_double_neginf = 403 [default=-inf]; - optional double default_double_posinf = 404 [default=inf]; - optional double default_double_nan = 405 [default=nan]; - - map map_int32_int64 = 500; - map map_string_message = 501; - map map_fixed64_enum = 502; - - oneof oneof_field { - bool oneof_bool = 601; - Enum oneof_enum = 602; - int32 oneof_int32 = 603; - sint32 oneof_sint32 = 604; - uint32 oneof_uint32 = 605; - int64 oneof_int64 = 606; - sint64 oneof_sint64 = 607; - uint64 oneof_uint64 = 608; - sfixed32 oneof_sfixed32 = 609; - fixed32 oneof_fixed32 = 610; - float oneof_float = 611; - sfixed64 oneof_sfixed64 = 612; - fixed64 oneof_fixed64 = 613; - double oneof_double = 614; - string oneof_string = 615; - bytes oneof_bytes = 616; - Message oneof_Message = 617; - group OneofGroup = 618 { - optional string oneof_group_field = 619; - } - int32 oneof_largest_tag = 536870911; - } - - oneof oneof_two { - int32 oneof_two_1 = 700; - int64 oneof_two_2 = 701; - } - - enum Enum { - ZERO = 0; - ONE = 1; - } - message Message {} - - reserved 10000, 10001; - reserved "TEN_THOUSAND", "TEN_THOUSAND_AND_ONE"; -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2/nested_messages.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2/nested_messages.proto deleted file mode 100644 index e42af75f6..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2/nested_messages.proto +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto2"; - -package goproto.protoc.proto2; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2"; - -message Layer1 { - message Layer2 { - message Layer3 { - } - optional Layer3 l3 = 1; - } - optional Layer2 l2 = 1; - optional Layer2.Layer3 l3 = 2; -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2/proto2.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2/proto2.proto deleted file mode 100644 index 55e052eb1..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2/proto2.proto +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto2"; - -package goproto.protoc.proto2; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2"; - -message Message { - optional int32 i32 = 1; - - optional Message m = 2; -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto3/enum.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto3/enum.proto deleted file mode 100644 index 595af3d91..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto3/enum.proto +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto3"; - -package goproto.protoc.proto3; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto3"; - -enum Enum { - ZERO = 0; - ONE = 1; - TWO = 2; -} diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto3/fields.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto3/fields.proto deleted file mode 100644 index 1dfd7057e..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto3/fields.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto3"; - -package goproto.protoc.proto3; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto3"; - -message FieldTestMessage { - string optional_bool = 1; - Enum optional_enum = 2; - int32 optional_int32 = 3; - sint32 optional_sint32 = 4; - uint32 optional_uint32 = 5; - int64 optional_int64 = 6; - sint64 optional_sint64 = 7; - uint64 optional_uint64 = 8; - sfixed32 optional_sfixed32 = 9; - fixed32 optional_fixed32 = 10; - float optional_float = 11; - sfixed64 optional_sfixed64 = 12; - fixed64 optional_fixed64 = 13; - double optional_double = 14; - string optional_string = 15; - bytes optional_bytes = 16; - Message optional_Message = 17; - - repeated bool repeated_bool = 201; - repeated Enum repeated_enum = 202; - repeated int32 repeated_int32 = 203; - repeated sint32 repeated_sint32 = 204; - repeated uint32 repeated_uint32 = 205; - repeated int64 repeated_int64 = 206; - repeated sint64 repeated_sint64 = 207; - repeated uint64 repeated_uint64 = 208; - repeated sfixed32 repeated_sfixed32 = 209; - repeated fixed32 repeated_fixed32 = 210; - repeated float repeated_float = 211; - repeated sfixed64 repeated_sfixed64 = 212; - repeated fixed64 repeated_fixed64 = 213; - repeated double repeated_double = 214; - repeated string repeated_string = 215; - repeated bytes repeated_bytes = 216; - repeated Message repeated_Message = 217; - - map map_int32_int64 = 500; - map map_string_message = 501; - map map_fixed64_enum = 502; - - enum Enum { ZERO = 0; } - message Message {} -} - diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/retention/options_message.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/retention/options_message.proto deleted file mode 100644 index afa6cd44f..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/retention/options_message.proto +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2020 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto2"; - -package testretention; - -import "google/protobuf/descriptor.proto"; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/retention"; - -// Retention attributes set on fields nested within a message -message OptionsMessage { - optional int32 plain_field = 1; - optional int32 runtime_retention_field = 2 [retention = RETENTION_RUNTIME]; - optional int32 source_retention_field = 3 [retention = RETENTION_SOURCE]; -} - -extend google.protobuf.FileOptions { - optional int32 imported_plain_option = 511807920; - optional int32 imported_runtime_retention_option = 512484074 - [retention = RETENTION_RUNTIME]; - optional int32 imported_source_retention_option = 512645287 - [retention = RETENTION_SOURCE]; -} - -extend google.protobuf.FileOptions { - optional OptionsMessage file_option = 504871168; -} \ No newline at end of file diff --git a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/retention/retention.proto b/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/retention/retention.proto deleted file mode 100644 index e409a132c..000000000 --- a/vendor/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/retention/retention.proto +++ /dev/null @@ -1,176 +0,0 @@ -// Copyright 2020 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -syntax = "proto2"; - -package testretention; - -import "cmd/protoc-gen-go/testdata/retention/options_message.proto"; -import "google/protobuf/descriptor.proto"; - -option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/retention"; - -option (imported_plain_option) = 1; -option (imported_runtime_retention_option) = 2; -option (imported_source_retention_option) = 3; - -// Retention attributes set directly on custom options -extend google.protobuf.FileOptions { - optional int32 plain_option = 505092806; - optional int32 runtime_retention_option = 505039132 - [retention = RETENTION_RUNTIME]; - optional int32 source_retention_option = 504878676 - [retention = RETENTION_SOURCE]; -} - -option (plain_option) = 1; -option (runtime_retention_option) = 2; -option (source_retention_option) = 3; - -option (file_option) = { - plain_field: 1 - runtime_retention_field: 2 - source_retention_field: 3 -}; - -// Retention attribute nested inside a repeated message field -extend google.protobuf.FileOptions { - repeated OptionsMessage repeated_options = 504823570; -} - -option (repeated_options) = { - plain_field: 1 - runtime_retention_field: 2 - source_retention_field: 3 -}; - -extend google.protobuf.ExtensionRangeOptions { - optional OptionsMessage extension_range_option = 504822148; -} - -extend google.protobuf.MessageOptions { - optional OptionsMessage message_option = 504820819; -} - -extend google.protobuf.FieldOptions { - optional OptionsMessage field_option = 504589219; -} - -extend google.protobuf.OneofOptions { - optional OptionsMessage oneof_option = 504479153; -} - -extend google.protobuf.EnumOptions { - optional OptionsMessage enum_option = 504451567; -} - -extend google.protobuf.EnumValueOptions { - optional OptionsMessage enum_entry_option = 504450522; -} - -extend google.protobuf.ServiceOptions { - optional OptionsMessage service_option = 504387709; -} - -extend google.protobuf.MethodOptions { - optional OptionsMessage method_option = 504349420; -} - -message Extendee { - extensions 1, 2; -} - -extend Extendee { - optional int32 i = 1 [(field_option) = { - plain_field: 1 - runtime_retention_field: 2 - source_retention_field: 3 - }]; -} - -message TopLevelMessage { - option (message_option) = { - plain_field: 1 - runtime_retention_field: 2 - source_retention_field: 3 - }; - - message NestedMessage { - option (message_option) = { - plain_field: 1 - runtime_retention_field: 2 - source_retention_field: 3 - }; - } - - enum NestedEnum { - option (enum_option) = { - plain_field: 1 - runtime_retention_field: 2 - source_retention_field: 3 - }; - - NESTED_UNKNOWN = 0; - } - - optional float f = 1 [(field_option) = { - plain_field: 1 - runtime_retention_field: 2 - source_retention_field: 3 - }]; - - oneof o { - option (oneof_option) = { - plain_field: 1 - runtime_retention_field: 2 - source_retention_field: 3 - }; - - int64 i = 2; - } - - extensions 10 to 100 [(extension_range_option) = { - plain_field: 1 - runtime_retention_field: 2 - source_retention_field: 3 - }]; - - extend Extendee { - optional string s = 2 [(field_option) = { - plain_field: 1 - runtime_retention_field: 2 - source_retention_field: 3 - }]; - } -} - -enum TopLevelEnum { - option (enum_option) = { - plain_field: 1 - runtime_retention_field: 2 - source_retention_field: 3 - }; - - TOP_LEVEL_UNKNOWN = 0 [(enum_entry_option) = { - plain_field: 1 - runtime_retention_field: 2 - source_retention_field: 3 - }]; -} - -service Service { - option (service_option) = { - plain_field: 1 - runtime_retention_field: 2 - source_retention_field: 3 - }; - - rpc DoStuff(TopLevelMessage) returns (TopLevelMessage) { - option (method_option) = { - plain_field: 1 - runtime_retention_field: 2 - source_retention_field: 3 - }; - } -} \ No newline at end of file diff --git a/vendor/modules.txt b/vendor/modules.txt index acd95e26c..158eb437d 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -411,7 +411,7 @@ go.opentelemetry.io/proto/otlp/collector/trace/v1 go.opentelemetry.io/proto/otlp/common/v1 go.opentelemetry.io/proto/otlp/resource/v1 go.opentelemetry.io/proto/otlp/trace/v1 -# golang.org/x/crypto v0.13.0 +# golang.org/x/crypto v0.14.0 ## explicit; go 1.17 golang.org/x/crypto/chacha20 golang.org/x/crypto/chacha20poly1305 @@ -423,7 +423,7 @@ golang.org/x/crypto/internal/poly1305 golang.org/x/crypto/pkcs12 golang.org/x/crypto/pkcs12/internal/rc2 golang.org/x/crypto/ssh/terminal -# golang.org/x/net v0.15.0 +# golang.org/x/net v0.17.0 ## explicit; go 1.17 golang.org/x/net/http/httpguts golang.org/x/net/http/httpproxy @@ -445,15 +445,14 @@ golang.org/x/oauth2/jwt ## explicit; go 1.17 golang.org/x/sync/errgroup golang.org/x/sync/semaphore -# golang.org/x/sys v0.12.0 +# golang.org/x/sys v0.13.0 ## explicit; go 1.17 golang.org/x/sys/cpu -golang.org/x/sys/internal/unsafeheader golang.org/x/sys/plan9 golang.org/x/sys/unix golang.org/x/sys/windows golang.org/x/sys/windows/registry -# golang.org/x/term v0.12.0 +# golang.org/x/term v0.13.0 ## explicit; go 1.17 golang.org/x/term # golang.org/x/text v0.13.0